lovable

package module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 12 Imported by: 0

README

go-lovable

Go Reference CI version license imported by

Unofficial Go client for the Lovable API, generated with oapi-codegen from the OpenAPI document Lovable publishes. I am not affiliated with Lovable.

The package is lovable, in the repository root. Everything in client.gen.go is generated. Don't edit it by hand, regenerate it.

Contents

Install

go get github.com/psyb0t/go-lovable

Usage

The client covers projects, publishing, deployments, preview embed URLs, analytics, personal data findings, security scans, workspaces, groups and members. Every endpoint in the spec has a typed method on ClientWithResponses. Responses decode into JSON200 and the other status fields.

package main

import (
	"context"
	"net/http"
	"os"

	"github.com/psyb0t/go-lovable"
)

func main() {
	auth := lovable.WithRequestEditorFn(
		func(_ context.Context, req *http.Request) error {
			req.Header.Set("Lovable-API-Key", os.Getenv("LOVABLE_API_KEY"))

			return nil
		},
	)

	client, err := lovable.NewClientWithResponses(
		"https://api.lovable.dev",
		auth,
	)
	if err != nil {
		panic(err)
	}

	res, err := client.ListWorkspacesWithResponse(
		context.Background(), &lovable.ListWorkspacesParams{},
	)
	if err != nil {
		panic(err)
	}

	if res.JSON200 == nil {
		panic(res.Status())
	}

	_ = res.JSON200.Data
}

The same code is in example_test.go, so make test checks that it compiles.

The full API, with the spec's descriptions as doc comments, is in the Go reference and in go doc github.com/psyb0t/go-lovable.

Required nullable fields use nullable.Nullable[T]: IsNull() checks JSON null, and Get() returns a value and an error. Optional request fields are pointers. HTTP errors do not produce a Go error by themselves: check StatusCode(), the typed status field and Body. Use WithHTTPClient to set timeouts.

Auth

Create a key at lovable.dev/settings/api-keys, export it as LOVABLE_API_KEY, and set Lovable-API-Key in a request editor as above. Keys belong to one workspace. Scopes are projects:read, projects:write, workspaces:read and workspaces:write; write scopes include their matching read scope. Another workspace's resources return 404, and insufficient scopes return 403.

The spec also accepts bearer authentication. Replace the editor with:

auth := lovable.WithRequestEditorFn(
	func(_ context.Context, req *http.Request) error {
		req.Header.Set("Authorization", "Bearer "+os.Getenv("LOVABLE_API_KEY"))

		return nil
	},
)

The base URL is https://api.lovable.dev. Generated paths contain /v1, so leave it out of the base URL. Set the optional LovableVersion operation parameter or Lovable-Version header to a stable version date (YYYY-MM-DD) to pin the API version; without it the server uses the oldest supported stable version. List operations use limit and an opaque cursor. Pass Pagination.NextCursor as Cursor until Pagination.HasMore is false, keeping the same filters. ListProjects requires a WorkspaceId slice. The client does not paginate or retry automatically. Honor Retry-After on 429 responses. Publishing returns 202; poll GetDeploymentWithResponse with backoff and a bounded timeout.

Regenerating

The spec is not committed. make generate downloads the current OpenAPI document into the gitignored api/ directory and regenerates the client:

make generate

gen.go declares the steps, so make generate is just go generate ./...:

  • scripts/fetch-spec.sh downloads https://api.lovable.dev/v1/openapi.yaml to api/openapi.yaml.
  • scripts/fix-nullable-types.sh runs the local YAML-aware patch-spec Go tool, writing api/openapi.fixed.yaml. It changes OpenAPI 3.1 nullable type lists into a concrete type plus nullable: true, removes null enum entries that the generator otherwise emits as the string "<nil>", converts schema example arrays into a singular example and sets the input version to 3.0.3. All operations and example payloads are preserved. Generated descriptions use the repository's directory terminology.
  • oapi-codegen runs with config.yaml. Numbers map to float64, and nullable fields retain JSON null through nullable.Nullable[T].

.github/workflows/regen.yml regenerates daily. Changed clients go through make lint, make test and make sec, up to three repair attempts if needed, and a review. A passing change gets a CHANGELOG entry and a release tag.

Agent integrations

The skill teaches a coding agent how to use go-lovable when it writes Go. It works in any agent that reads .agents/skills/, and installs natively in the clients below.

Claude Code
claude plugin marketplace add psyb0t/agents
claude plugin install go-lovable@psyb0t
Codex
codex plugin marketplace add psyb0t/agents
codex plugin add go-lovable@psyb0t

Codex also picks the skill up with no install in any checkout of this repo.

OpenClaw

Tag pushes publish the skill to ClawHub:

openclaw skills install @psyb0t/go-lovable

Development

Every command runs in the Dockerfile.dev image. The host needs only Docker and Make.

make help      # list targets
make dep       # go mod tidy + vendor
make lint      # shellcheck, shfmt, go fix, golangci-lint
make test      # go test -race
make sec       # gitleaks, govulncheck, semgrep
make generate  # download the spec and regenerate

Run make dep after regeneration when imports change. vendor/ is part of the source distribution. Security scans cover Git history when available; source archives have no history to scan.

License

MIT. The generated code comes from Lovable's published API specification. The specification itself is not redistributed here. It names Lovable's terms and has no license declaration.

Documentation

Overview

Package lovable provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.8.0 DO NOT EDIT.

Package lovable is a Go client for the Lovable API, generated with oapi-codegen from the OpenAPI document Lovable publishes.

Example

This is the README usage example. It requires a real API key.

package main

import (
	"context"
	"net/http"
	"os"

	"github.com/psyb0t/go-lovable"
)

func main() {
	auth := lovable.WithRequestEditorFn(
		func(_ context.Context, req *http.Request) error {
			req.Header.Set("Lovable-API-Key", os.Getenv("LOVABLE_API_KEY"))

			return nil
		},
	)

	client, err := lovable.NewClientWithResponses(
		"https://api.lovable.dev",
		auth,
	)
	if err != nil {
		panic(err)
	}

	res, err := client.ListWorkspacesWithResponse(
		context.Background(), &lovable.ListWorkspacesParams{},
	)
	if err != nil {
		panic(err)
	}

	if res.JSON200 == nil {
		panic(res.Status())
	}

	_ = res.JSON200.Data
}

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateEmbedUrlRequest

func NewCreateEmbedUrlRequest(server string, projectId string, params *CreateEmbedUrlParams, body CreateEmbedUrlJSONRequestBody) (*http.Request, error)

NewCreateEmbedUrlRequest calls the generic CreateEmbedUrl builder with application/json body

func NewCreateEmbedUrlRequestWithBody

func NewCreateEmbedUrlRequestWithBody(server string, projectId string, params *CreateEmbedUrlParams, contentType string, body io.Reader) (*http.Request, error)

NewCreateEmbedUrlRequestWithBody constructs an http.Request for the CreateEmbedUrl method, with any body, and a specified content type

func NewDeleteProjectRequest

func NewDeleteProjectRequest(server string, projectId string, params *DeleteProjectParams) (*http.Request, error)

NewDeleteProjectRequest constructs an http.Request for the DeleteProject method

func NewGetDeploymentRequest

func NewGetDeploymentRequest(server string, projectId string, deploymentId string, params *GetDeploymentParams) (*http.Request, error)

NewGetDeploymentRequest constructs an http.Request for the GetDeployment method

func NewGetProjectAnalyticsBreakdownsRequest

func NewGetProjectAnalyticsBreakdownsRequest(server string, projectId string, params *GetProjectAnalyticsBreakdownsParams) (*http.Request, error)

NewGetProjectAnalyticsBreakdownsRequest constructs an http.Request for the GetProjectAnalyticsBreakdowns method

func NewGetProjectAnalyticsRequest

func NewGetProjectAnalyticsRequest(server string, projectId string, params *GetProjectAnalyticsParams) (*http.Request, error)

NewGetProjectAnalyticsRequest constructs an http.Request for the GetProjectAnalytics method

func NewGetProjectRealtimeAnalyticsRequest

func NewGetProjectRealtimeAnalyticsRequest(server string, projectId string, params *GetProjectRealtimeAnalyticsParams) (*http.Request, error)

NewGetProjectRealtimeAnalyticsRequest constructs an http.Request for the GetProjectRealtimeAnalytics method

func NewGetProjectRequest

func NewGetProjectRequest(server string, projectId string, params *GetProjectParams) (*http.Request, error)

NewGetProjectRequest constructs an http.Request for the GetProject method

func NewGetSecurityInsightsRequest

func NewGetSecurityInsightsRequest(server string, workspaceId string, params *GetSecurityInsightsParams) (*http.Request, error)

NewGetSecurityInsightsRequest constructs an http.Request for the GetSecurityInsights method

func NewGetSecurityScanRequest

func NewGetSecurityScanRequest(server string, projectId string, scanId string, params *GetSecurityScanParams) (*http.Request, error)

NewGetSecurityScanRequest constructs an http.Request for the GetSecurityScan method

func NewGetWorkspaceAnalyticsRequest

func NewGetWorkspaceAnalyticsRequest(server string, workspaceId string, params *GetWorkspaceAnalyticsParams) (*http.Request, error)

NewGetWorkspaceAnalyticsRequest constructs an http.Request for the GetWorkspaceAnalytics method

func NewGetWorkspaceMemberRequest

func NewGetWorkspaceMemberRequest(server string, workspaceId string, userId openapi_types.UUID, params *GetWorkspaceMemberParams) (*http.Request, error)

NewGetWorkspaceMemberRequest constructs an http.Request for the GetWorkspaceMember method

func NewGetWorkspaceRequest

func NewGetWorkspaceRequest(server string, workspaceId string, params *GetWorkspaceParams) (*http.Request, error)

NewGetWorkspaceRequest constructs an http.Request for the GetWorkspace method

func NewListPiiLabelsRequest

func NewListPiiLabelsRequest(server string, projectId string, params *ListPiiLabelsParams) (*http.Request, error)

NewListPiiLabelsRequest constructs an http.Request for the ListPiiLabels method

func NewListProjectCollaboratorsRequest added in v0.2.0

func NewListProjectCollaboratorsRequest(server string, projectId string, params *ListProjectCollaboratorsParams) (*http.Request, error)

NewListProjectCollaboratorsRequest constructs an http.Request for the ListProjectCollaborators method

func NewListProjectsRequest

func NewListProjectsRequest(server string, params *ListProjectsParams) (*http.Request, error)

NewListProjectsRequest constructs an http.Request for the ListProjects method

func NewListSecurityInsightProjectsRequest

func NewListSecurityInsightProjectsRequest(server string, workspaceId string, params *ListSecurityInsightProjectsParams) (*http.Request, error)

NewListSecurityInsightProjectsRequest constructs an http.Request for the ListSecurityInsightProjects method

func NewListSecurityScanFindingsRequest

func NewListSecurityScanFindingsRequest(server string, projectId string, scanId string, params *ListSecurityScanFindingsParams) (*http.Request, error)

NewListSecurityScanFindingsRequest constructs an http.Request for the ListSecurityScanFindings method

func NewListSecurityScansRequest

func NewListSecurityScansRequest(server string, projectId string, params *ListSecurityScansParams) (*http.Request, error)

NewListSecurityScansRequest constructs an http.Request for the ListSecurityScans method

func NewListWorkspaceFoldersRequest added in v0.3.0

func NewListWorkspaceFoldersRequest(server string, workspaceId string, params *ListWorkspaceFoldersParams) (*http.Request, error)

NewListWorkspaceFoldersRequest constructs an http.Request for the ListWorkspaceFolders method

func NewListWorkspaceGroupsRequest

func NewListWorkspaceGroupsRequest(server string, workspaceId string, params *ListWorkspaceGroupsParams) (*http.Request, error)

NewListWorkspaceGroupsRequest constructs an http.Request for the ListWorkspaceGroups method

func NewListWorkspaceMembersRequest

func NewListWorkspaceMembersRequest(server string, workspaceId string, params *ListWorkspaceMembersParams) (*http.Request, error)

NewListWorkspaceMembersRequest constructs an http.Request for the ListWorkspaceMembers method

func NewListWorkspacesRequest

func NewListWorkspacesRequest(server string, params *ListWorkspacesParams) (*http.Request, error)

NewListWorkspacesRequest constructs an http.Request for the ListWorkspaces method

func NewPublishProjectRequest

func NewPublishProjectRequest(server string, projectId string, params *PublishProjectParams, body PublishProjectJSONRequestBody) (*http.Request, error)

NewPublishProjectRequest calls the generic PublishProject builder with application/json body

func NewPublishProjectRequestWithBody

func NewPublishProjectRequestWithBody(server string, projectId string, params *PublishProjectParams, contentType string, body io.Reader) (*http.Request, error)

NewPublishProjectRequestWithBody constructs an http.Request for the PublishProject method, with any body, and a specified content type

func NewUnpublishProjectRequest

func NewUnpublishProjectRequest(server string, projectId string, params *UnpublishProjectParams) (*http.Request, error)

NewUnpublishProjectRequest constructs an http.Request for the UnpublishProject method

func NewUpdateProjectRequest

func NewUpdateProjectRequest(server string, projectId string, params *UpdateProjectParams, body UpdateProjectJSONRequestBody) (*http.Request, error)

NewUpdateProjectRequest calls the generic UpdateProject builder with application/json body

func NewUpdateProjectRequestWithBody

func NewUpdateProjectRequestWithBody(server string, projectId string, params *UpdateProjectParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdateProjectRequestWithBody constructs an http.Request for the UpdateProject method, with any body, and a specified content type

func NewUpdatePublishSettingsRequest

func NewUpdatePublishSettingsRequest(server string, projectId string, params *UpdatePublishSettingsParams, body UpdatePublishSettingsJSONRequestBody) (*http.Request, error)

NewUpdatePublishSettingsRequest calls the generic UpdatePublishSettings builder with application/json body

func NewUpdatePublishSettingsRequestWithBody

func NewUpdatePublishSettingsRequestWithBody(server string, projectId string, params *UpdatePublishSettingsParams, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePublishSettingsRequestWithBody constructs an http.Request for the UpdatePublishSettings method, with any body, and a specified content type

Types

type AnalyticsBreakdownItem

type AnalyticsBreakdownItem struct {
	// Label Name of this item within the breakdown.
	//
	// Example: /pricing
	Label string `json:"label"`

	// Visitors Unique visitor sessions attributed to this item over the requested range. A session can appear under multiple items.
	//
	// Example: 1280
	Visitors int64 `json:"visitors"`
}

AnalyticsBreakdownItem defines model for AnalyticsBreakdownItem.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateEmbedUrl

func (c *Client) CreateEmbedUrl(ctx context.Context, projectId string, params *CreateEmbedUrlParams, body CreateEmbedUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateEmbedUrl Create embed URL

**Plan:** `Business or higher`

**Scope:** `projects:write`

Creates a preview URL valid for one hour that can be loaded in an iframe on one exact HTTPS origin. Visitors do not need a Lovable login. It shows the project's built preview; it does not grant access to the editor or the published app.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/projects/{project_id}/embed-url (the `CreateEmbedUrl` operationId).

func (*Client) CreateEmbedUrlWithBody

func (c *Client) CreateEmbedUrlWithBody(ctx context.Context, projectId string, params *CreateEmbedUrlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

CreateEmbedUrlWithBody Create embed URL

**Plan:** `Business or higher`

**Scope:** `projects:write`

Creates a preview URL valid for one hour that can be loaded in an iframe on one exact HTTPS origin. Visitors do not need a Lovable login. It shows the project's built preview; it does not grant access to the editor or the published app.

Takes any type of body and a specified content type.

Corresponds with POST /v1/projects/{project_id}/embed-url (the `CreateEmbedUrl` operationId).

func (*Client) DeleteProject

func (c *Client) DeleteProject(ctx context.Context, projectId string, params *DeleteProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

DeleteProject Delete project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Deletes a project. Where trash is available the project can be restored from the Lovable editor; otherwise the deletion is permanent and custom domains are disconnected immediately. Deleting a project that is already deleted returns 404 with type project_not_found, so a client retrying a delete whose outcome it does not know should treat that 404 as success.

Corresponds with DELETE /v1/projects/{project_id} (the `DeleteProject` operationId).

func (*Client) GetDeployment

func (c *Client) GetDeployment(ctx context.Context, projectId string, deploymentId string, params *GetDeploymentParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetDeployment Get publish status

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns the status of an async publish started with POST /v1/projects/{project_id}/publish, keyed by the id it returned. Poll until deployment succeeds (url is set) or fails (error_message explains the failure). Poll no more than once every 2 seconds and honor Retry-After on 429 responses.

On failure, use error_class to choose the next action.

| error_class | Action | | --- | --- | | transient | Retry publishing with backoff and a bounded retry limit. | | code | Fix the app code or SQL, then publish again. | | configuration | Fix configuration committed in the project, such as an oversized file, then publish again. | | data | Review the migration against production data. Obtain human approval before changing data, then publish again. | | integration | Repair external credentials, quota, or the connected service, then publish again. | | policy | Ask the workspace administrator to lift the blocking policy or approve the publish. | | internal | Contact Lovable support with the deployment ID. |

If error_class is null or unrecognized, show error_message and contact support instead of automatically retrying.

Corresponds with GET /v1/projects/{project_id}/publish/{deployment_id} (the `GetDeployment` operationId).

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, projectId string, params *GetProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetProject Get project

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns project details.

Corresponds with GET /v1/projects/{project_id} (the `GetProject` operationId).

func (*Client) GetProjectAnalytics

func (c *Client) GetProjectAnalytics(ctx context.Context, projectId string, params *GetProjectAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetProjectAnalytics Get project analytics

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns website traffic for a published project over a date range as a time series. Date ranges are limited to 365 days, or 31 days with one-hour buckets. Some projects retain analytics for 90 days; older buckets are returned with zero values.

Corresponds with GET /v1/projects/{project_id}/analytics (the `GetProjectAnalytics` operationId).

func (*Client) GetProjectAnalyticsBreakdowns

func (c *Client) GetProjectAnalyticsBreakdowns(ctx context.Context, projectId string, params *GetProjectAnalyticsBreakdownsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetProjectAnalyticsBreakdowns Get project analytics breakdowns

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns the top pages, referring domains, device types, and visitor countries for a published project over a range of complete UTC calendar dates, up to 10 items each. Date ranges are limited to 365 days. Some projects retain analytics for 90 days; older days contribute no visitors.

Corresponds with GET /v1/projects/{project_id}/analytics/breakdowns (the `GetProjectAnalyticsBreakdowns` operationId).

func (*Client) GetProjectRealtimeAnalytics

func (c *Client) GetProjectRealtimeAnalytics(ctx context.Context, projectId string, params *GetProjectRealtimeAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetProjectRealtimeAnalytics Get project realtime analytics

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns visitor counts for a published project over the last 30 minutes in one-minute buckets, plus the number of visitors active in the last 5 minutes.

Corresponds with GET /v1/projects/{project_id}/analytics/realtime (the `GetProjectRealtimeAnalytics` operationId).

func (*Client) GetSecurityInsights

func (c *Client) GetSecurityInsights(ctx context.Context, workspaceId string, params *GetSecurityInsightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSecurityInsights Get workspace security insights

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Prioritize security reviews across your workspace. Findings include public apps with security errors, unresolved personal data detections, projects shared with external collaborators, and projects whose owner is no longer an active workspace member.

Returns workspace project and membership counts, project review priorities, and finding types with matching project counts. Requires Security Center access. The review_priority filter applies only to findings; summary counts remain workspace-wide. Finding types requiring personal data detection access are omitted when that feature is unavailable. Project and membership data is eventually consistent and may not immediately reflect recent changes.

Corresponds with GET /v1/workspaces/{workspace_id}/security-center/insights (the `GetSecurityInsights` operationId).

func (*Client) GetSecurityScan

func (c *Client) GetSecurityScan(ctx context.Context, projectId string, scanId string, params *GetSecurityScanParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetSecurityScan Get security scan

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns a security scan's status, timing, and requested checks. Findings are available from GET /v1/projects/{project_id}/security-scans/{scan_id}/findings.

Corresponds with GET /v1/projects/{project_id}/security-scans/{scan_id} (the `GetSecurityScan` operationId).

func (*Client) GetWorkspace

func (c *Client) GetWorkspace(ctx context.Context, workspaceId string, params *GetWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWorkspace Get workspace

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns workspace details, security and publishing policies, seat count, billing period, and default member credit limit. Usage fields are null without permission to view workspace usage. Member details, including roles, are on GET /v1/workspaces/{workspace_id}/members. The num_projects count is eventually consistent and may not immediately reflect project creation or deletion.

Corresponds with GET /v1/workspaces/{workspace_id} (the `GetWorkspace` operationId).

func (*Client) GetWorkspaceAnalytics

func (c *Client) GetWorkspaceAnalytics(ctx context.Context, workspaceId string, params *GetWorkspaceAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWorkspaceAnalytics Get workspace analytics

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns website traffic time series for the workspace, including historical traffic from projects that have since been deleted. The response covers the requested date range without pagination. Date ranges are limited to 365 days, or 31 days with hourly granularity.

Corresponds with GET /v1/workspaces/{workspace_id}/analytics (the `GetWorkspaceAnalytics` operationId).

func (*Client) GetWorkspaceMember

func (c *Client) GetWorkspaceMember(ctx context.Context, workspaceId string, userId openapi_types.UUID, params *GetWorkspaceMemberParams, reqEditors ...RequestEditorFn) (*http.Response, error)

GetWorkspaceMember Get workspace member

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns an active workspace member's profile and join and invitation dates. name is the stored display name, or null when unavailable. Pass the public user UUID returned as user_id by GET /v1/workspaces/{workspace_id}/members. Unknown users and missing or non-active memberships return 404. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.

Corresponds with GET /v1/workspaces/{workspace_id}/members/{user_id} (the `GetWorkspaceMember` operationId).

func (*Client) ListPiiLabels

func (c *Client) ListPiiLabels(ctx context.Context, projectId string, params *ListPiiLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListPiiLabels List personal data findings

**Plan:** `Enterprise`

**Scope:** `projects:read`

Returns findings of personally identifiable information (PII) in the project, newest first, including open, ignored, and fixed findings. Personal data detection must be enabled for the workspace; otherwise this endpoint returns 404.

Corresponds with GET /v1/projects/{project_id}/pii-labels (the `ListPiiLabels` operationId).

func (*Client) ListProjectCollaborators added in v0.2.0

func (c *Client) ListProjectCollaborators(ctx context.Context, projectId string, params *ListProjectCollaboratorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListProjectCollaborators List project collaborators

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns users individually granted access to this project, with their access level. Access through groups, directorys, or a workspace role is not listed, and the owner appears only when they also hold an explicit grant. Excludes pending invitations to email addresses without a Lovable account. Each user_id matches a user_id from GET /v1/workspaces/{workspace_id}/members, where users added only to projects have the role external_collaborator. A newly added collaborator may not appear there immediately.

Corresponds with GET /v1/projects/{project_id}/collaborators (the `ListProjectCollaborators` operationId).

func (*Client) ListProjects

func (c *Client) ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListProjects List projects

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns projects across the selected workspaces in one cursor-paginated list, sorted by last edited time descending then project ID ascending. Projects without a last edit use their update time for ordering; projects with neither sort last. Repeat workspace_id to select up to 10 workspaces. Every selected workspace must pass authorization; any failure rejects the whole request. Workspace-scoped API keys remain limited to their own workspace. Cursors are bound to the selected workspace set and filters. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.

Corresponds with GET /v1/projects (the `ListProjects` operationId).

func (*Client) ListSecurityInsightProjects

func (c *Client) ListSecurityInsightProjects(ctx context.Context, workspaceId string, params *ListSecurityInsightProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSecurityInsightProjects List workspace security project inventory

**Plan:** `Enterprise`

**Scope:** `workspaces:read`

Returns workspace projects with review priorities, security finding counts, activity counts, and publishing details. Use GET /v1/projects/{project_id}/security-scans/{scan_id}/findings for individual findings. Supports search and filters. By default, projects are ordered by most recently edited, or search relevance when query is set. Project and membership data is eventually consistent and may not immediately reflect recent changes.

Corresponds with GET /v1/workspaces/{workspace_id}/security-center/insights/projects (the `ListSecurityInsightProjects` operationId).

func (*Client) ListSecurityScanFindings

func (c *Client) ListSecurityScanFindings(ctx context.Context, projectId string, scanId string, params *ListSecurityScanFindingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSecurityScanFindings List security scan findings

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns a page of findings in the scan snapshot, including results reused from earlier scans and findings marked fixed or ignored. Findings are ordered by scanner_name, ascending, with a stable order within each scanner. Follow pagination.next_cursor until pagination.has_more is false to retrieve the complete snapshot.

Corresponds with GET /v1/projects/{project_id}/security-scans/{scan_id}/findings (the `ListSecurityScanFindings` operationId).

func (*Client) ListSecurityScans

func (c *Client) ListSecurityScans(ctx context.Context, projectId string, params *ListSecurityScansParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListSecurityScans List security scans

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns the project's security scans ordered by start time, newest first. Use GET /v1/projects/{project_id}/security-scans/{scan_id}/findings to retrieve findings.

Corresponds with GET /v1/projects/{project_id}/security-scans (the `ListSecurityScans` operationId).

func (*Client) ListWorkspaceFolders added in v0.3.0

func (c *Client) ListWorkspaceFolders(ctx context.Context, workspaceId string, params *ListWorkspaceFoldersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWorkspaceFolders List workspace folders

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns the workspace's directorys, sorted by name then id. Each project belongs to at most one directory; match a directory's id against the directory_id of GET /v1/projects and GET /v1/workspaces/{workspace_id}/security-center/insights/projects to group projects by directory, and filter either list with directory_id or is_in_directory. Restricted directorys are returned only when the caller created them, was given access to them, or may manage every member's restricted directorys. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.

Corresponds with GET /v1/workspaces/{workspace_id}/folders (the `ListWorkspaceFolders` operationId).

func (*Client) ListWorkspaceGroups

func (c *Client) ListWorkspaceGroups(ctx context.Context, workspaceId string, params *ListWorkspaceGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWorkspaceGroups List workspace groups

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns the workspace's groups, sorted by name. Use a group's id as the id of a type "group" audience_targets entry when publishing a project with audience "custom" via POST or PATCH /v1/projects/{project_id}/publish.

Corresponds with GET /v1/workspaces/{workspace_id}/groups (the `ListWorkspaceGroups` operationId).

func (*Client) ListWorkspaceMembers

func (c *Client) ListWorkspaceMembers(ctx context.Context, workspaceId string, params *ListWorkspaceMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWorkspaceMembers List workspace members

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns accepted workspace members with user_id, type, and name. The name is the stored display name, or null when unavailable. Filter with a repeated role, scim_managed=true|false, and query. Sort with sort_by plus sort_order; with a search query, results default to best matches first, otherwise they are ordered by role precedence, then most recently joined. Cursors are pinned to the filters and sort they were issued under; presenting one with different parameters returns 400. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.

Corresponds with GET /v1/workspaces/{workspace_id}/members (the `ListWorkspaceMembers` operationId).

func (*Client) ListWorkspaces

func (c *Client) ListWorkspaces(ctx context.Context, params *ListWorkspacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

ListWorkspaces List workspaces

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns workspaces accessible to the authenticated client, with cursor pagination. Workspaces are ordered by join date, oldest first. A workspace-scoped API key returns only its workspace. Member details, including roles, are on GET /v1/workspaces/{workspace_id}/members. The num_projects count is eventually consistent and may not immediately reflect project creation or deletion.

Corresponds with GET /v1/workspaces (the `ListWorkspaces` operationId).

func (*Client) PublishProject

func (c *Client) PublishProject(ctx context.Context, projectId string, params *PublishProjectParams, body PublishProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

PublishProject Publish project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Builds and deploys the project. When the workspace blocks publishing on critical security findings, the quick security scan runs on the version being published first, and unresolved findings fail the request with 400 security_critical_findings. Returns 202 with the Deployment representation, status running, and null url and error fields; poll GET /v1/projects/{project_id}/publish/{deployment_id} until deployment finishes. Optionally set audience to choose who can open the published app; project reads report it as publish_audience. Omit audience to keep the current setting. Audience changes apply to the currently published version immediately, before the new deployment finishes. To change access settings without rebuilding, use PATCH /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.

Takes a body of the `application/json` content type.

Corresponds with POST /v1/projects/{project_id}/publish (the `PublishProject` operationId).

func (*Client) PublishProjectWithBody

func (c *Client) PublishProjectWithBody(ctx context.Context, projectId string, params *PublishProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

PublishProjectWithBody Publish project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Builds and deploys the project. When the workspace blocks publishing on critical security findings, the quick security scan runs on the version being published first, and unresolved findings fail the request with 400 security_critical_findings. Returns 202 with the Deployment representation, status running, and null url and error fields; poll GET /v1/projects/{project_id}/publish/{deployment_id} until deployment finishes. Optionally set audience to choose who can open the published app; project reads report it as publish_audience. Omit audience to keep the current setting. Audience changes apply to the currently published version immediately, before the new deployment finishes. To change access settings without rebuilding, use PATCH /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.

Takes any type of body and a specified content type.

Corresponds with POST /v1/projects/{project_id}/publish (the `PublishProject` operationId).

func (*Client) UnpublishProject

func (c *Client) UnpublishProject(ctx context.Context, projectId string, params *UnpublishProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

UnpublishProject Unpublish project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Takes the published app offline. Audience and visibility settings are retained and apply again on the next POST /v1/projects/{project_id}/publish. Returns 204 whether or not the app was online, so a repeated call is safe.

Corresponds with DELETE /v1/projects/{project_id}/publish (the `UnpublishProject` operationId).

func (*Client) UpdateProject

func (c *Client) UpdateProject(ctx context.Context, projectId string, params *UpdateProjectParams, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateProject Update project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Updates project sharing or the human-readable name. The description is generated by the agent and cannot be edited through this endpoint. Omitted fields keep their current values. This does not change access to the published app; use PATCH /v1/projects/{project_id}/publish for that.

Takes a body of the `application/json` content type.

Corresponds with PATCH /v1/projects/{project_id} (the `UpdateProject` operationId).

func (*Client) UpdateProjectWithBody

func (c *Client) UpdateProjectWithBody(ctx context.Context, projectId string, params *UpdateProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdateProjectWithBody Update project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Updates project sharing or the human-readable name. The description is generated by the agent and cannot be edited through this endpoint. Omitted fields keep their current values. This does not change access to the published app; use PATCH /v1/projects/{project_id}/publish for that.

Takes any type of body and a specified content type.

Corresponds with PATCH /v1/projects/{project_id} (the `UpdateProject` operationId).

func (*Client) UpdatePublishSettings

func (c *Client) UpdatePublishSettings(ctx context.Context, projectId string, params *UpdatePublishSettingsParams, body UpdatePublishSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdatePublishSettings Update publish settings

**Plan:** `Business or higher`

**Scope:** `projects:write`

Changes published app access without rebuilding the app. Set audience to public, workspace, or custom; project reads report it as publish_audience. With a custom audience, audience_targets replaces group and user grants and removes workspace-wide access; organization access and email invitations managed in the UI are preserved. Changes take effect immediately. Where an enforced workspace publishing policy decides publishes, a published app that is not public becomes public only through a publish, which also ships the latest saved version: set audience public on POST /v1/projects/{project_id}/publish, since this route answers 409 publish_visibility_requires_publish. Returns the resolved audience and its targets. Read GET /v1/projects/{project_id} for is_published, publish_audience, and publish_audience_targets. To build and publish a new version, use POST /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.

Takes a body of the `application/json` content type.

Corresponds with PATCH /v1/projects/{project_id}/publish (the `UpdatePublishSettings` operationId).

func (*Client) UpdatePublishSettingsWithBody

func (c *Client) UpdatePublishSettingsWithBody(ctx context.Context, projectId string, params *UpdatePublishSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

UpdatePublishSettingsWithBody Update publish settings

**Plan:** `Business or higher`

**Scope:** `projects:write`

Changes published app access without rebuilding the app. Set audience to public, workspace, or custom; project reads report it as publish_audience. With a custom audience, audience_targets replaces group and user grants and removes workspace-wide access; organization access and email invitations managed in the UI are preserved. Changes take effect immediately. Where an enforced workspace publishing policy decides publishes, a published app that is not public becomes public only through a publish, which also ships the latest saved version: set audience public on POST /v1/projects/{project_id}/publish, since this route answers 409 publish_visibility_requires_publish. Returns the resolved audience and its targets. Read GET /v1/projects/{project_id} for is_published, publish_audience, and publish_audience_targets. To build and publish a new version, use POST /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.

Takes any type of body and a specified content type.

Corresponds with PATCH /v1/projects/{project_id}/publish (the `UpdatePublishSettings` operationId).

type ClientInterface

type ClientInterface interface {

	// ListProjects List projects
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns projects across the selected workspaces in one cursor-paginated list, sorted by last edited time descending then project ID ascending. Projects without a last edit use their update time for ordering; projects with neither sort last. Repeat workspace_id to select up to 10 workspaces. Every selected workspace must pass authorization; any failure rejects the whole request. Workspace-scoped API keys remain limited to their own workspace. Cursors are bound to the selected workspace set and filters. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.
	//
	// Corresponds with GET /v1/projects (the `ListProjects` operationId).
	ListProjects(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteProject Delete project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Deletes a project. Where trash is available the project can be restored from the Lovable editor; otherwise the deletion is permanent and custom domains are disconnected immediately. Deleting a project that is already deleted returns 404 with type project_not_found, so a client retrying a delete whose outcome it does not know should treat that 404 as success.
	//
	// Corresponds with DELETE /v1/projects/{project_id} (the `DeleteProject` operationId).
	DeleteProject(ctx context.Context, projectId string, params *DeleteProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProject Get project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns project details.
	//
	// Corresponds with GET /v1/projects/{project_id} (the `GetProject` operationId).
	GetProject(ctx context.Context, projectId string, params *GetProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProjectWithBody Update project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Updates project sharing or the human-readable name. The description is generated by the agent and cannot be edited through this endpoint. Omitted fields keep their current values. This does not change access to the published app; use PATCH /v1/projects/{project_id}/publish for that.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v1/projects/{project_id} (the `UpdateProject` operationId).
	UpdateProjectWithBody(ctx context.Context, projectId string, params *UpdateProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateProject Update project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Updates project sharing or the human-readable name. The description is generated by the agent and cannot be edited through this endpoint. Omitted fields keep their current values. This does not change access to the published app; use PATCH /v1/projects/{project_id}/publish for that.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v1/projects/{project_id} (the `UpdateProject` operationId).
	UpdateProject(ctx context.Context, projectId string, params *UpdateProjectParams, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectAnalytics Get project analytics
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns website traffic for a published project over a date range as a time series. Date ranges are limited to 365 days, or 31 days with one-hour buckets. Some projects retain analytics for 90 days; older buckets are returned with zero values.
	//
	// Corresponds with GET /v1/projects/{project_id}/analytics (the `GetProjectAnalytics` operationId).
	GetProjectAnalytics(ctx context.Context, projectId string, params *GetProjectAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectAnalyticsBreakdowns Get project analytics breakdowns
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns the top pages, referring domains, device types, and visitor countries for a published project over a range of complete UTC calendar dates, up to 10 items each. Date ranges are limited to 365 days. Some projects retain analytics for 90 days; older days contribute no visitors.
	//
	// Corresponds with GET /v1/projects/{project_id}/analytics/breakdowns (the `GetProjectAnalyticsBreakdowns` operationId).
	GetProjectAnalyticsBreakdowns(ctx context.Context, projectId string, params *GetProjectAnalyticsBreakdownsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetProjectRealtimeAnalytics Get project realtime analytics
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns visitor counts for a published project over the last 30 minutes in one-minute buckets, plus the number of visitors active in the last 5 minutes.
	//
	// Corresponds with GET /v1/projects/{project_id}/analytics/realtime (the `GetProjectRealtimeAnalytics` operationId).
	GetProjectRealtimeAnalytics(ctx context.Context, projectId string, params *GetProjectRealtimeAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListProjectCollaborators List project collaborators
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns users individually granted access to this project, with their access level. Access through groups, directorys, or a workspace role is not listed, and the owner appears only when they also hold an explicit grant. Excludes pending invitations to email addresses without a Lovable account. Each user_id matches a user_id from GET /v1/workspaces/{workspace_id}/members, where users added only to projects have the role external_collaborator. A newly added collaborator may not appear there immediately.
	//
	// Corresponds with GET /v1/projects/{project_id}/collaborators (the `ListProjectCollaborators` operationId).
	ListProjectCollaborators(ctx context.Context, projectId string, params *ListProjectCollaboratorsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateEmbedUrlWithBody Create embed URL
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Creates a preview URL valid for one hour that can be loaded in an iframe on one exact HTTPS origin. Visitors do not need a Lovable login. It shows the project's built preview; it does not grant access to the editor or the published app.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/projects/{project_id}/embed-url (the `CreateEmbedUrl` operationId).
	CreateEmbedUrlWithBody(ctx context.Context, projectId string, params *CreateEmbedUrlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateEmbedUrl Create embed URL
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Creates a preview URL valid for one hour that can be loaded in an iframe on one exact HTTPS origin. Visitors do not need a Lovable login. It shows the project's built preview; it does not grant access to the editor or the published app.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/projects/{project_id}/embed-url (the `CreateEmbedUrl` operationId).
	CreateEmbedUrl(ctx context.Context, projectId string, params *CreateEmbedUrlParams, body CreateEmbedUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPiiLabels List personal data findings
	//
	// **Plan:** `Enterprise`
	//
	// **Scope:** `projects:read`
	//
	// Returns findings of personally identifiable information (PII) in the project, newest first, including open, ignored, and fixed findings. Personal data detection must be enabled for the workspace; otherwise this endpoint returns 404.
	//
	// Corresponds with GET /v1/projects/{project_id}/pii-labels (the `ListPiiLabels` operationId).
	ListPiiLabels(ctx context.Context, projectId string, params *ListPiiLabelsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UnpublishProject Unpublish project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Takes the published app offline. Audience and visibility settings are retained and apply again on the next POST /v1/projects/{project_id}/publish. Returns 204 whether or not the app was online, so a repeated call is safe.
	//
	// Corresponds with DELETE /v1/projects/{project_id}/publish (the `UnpublishProject` operationId).
	UnpublishProject(ctx context.Context, projectId string, params *UnpublishProjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePublishSettingsWithBody Update publish settings
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Changes published app access without rebuilding the app. Set audience to public, workspace, or custom; project reads report it as publish_audience. With a custom audience, audience_targets replaces group and user grants and removes workspace-wide access; organization access and email invitations managed in the UI are preserved. Changes take effect immediately. Where an enforced workspace publishing policy decides publishes, a published app that is not public becomes public only through a publish, which also ships the latest saved version: set audience public on POST /v1/projects/{project_id}/publish, since this route answers 409 publish_visibility_requires_publish. Returns the resolved audience and its targets. Read GET /v1/projects/{project_id} for is_published, publish_audience, and publish_audience_targets. To build and publish a new version, use POST /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with PATCH /v1/projects/{project_id}/publish (the `UpdatePublishSettings` operationId).
	UpdatePublishSettingsWithBody(ctx context.Context, projectId string, params *UpdatePublishSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePublishSettings Update publish settings
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Changes published app access without rebuilding the app. Set audience to public, workspace, or custom; project reads report it as publish_audience. With a custom audience, audience_targets replaces group and user grants and removes workspace-wide access; organization access and email invitations managed in the UI are preserved. Changes take effect immediately. Where an enforced workspace publishing policy decides publishes, a published app that is not public becomes public only through a publish, which also ships the latest saved version: set audience public on POST /v1/projects/{project_id}/publish, since this route answers 409 publish_visibility_requires_publish. Returns the resolved audience and its targets. Read GET /v1/projects/{project_id} for is_published, publish_audience, and publish_audience_targets. To build and publish a new version, use POST /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with PATCH /v1/projects/{project_id}/publish (the `UpdatePublishSettings` operationId).
	UpdatePublishSettings(ctx context.Context, projectId string, params *UpdatePublishSettingsParams, body UpdatePublishSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PublishProjectWithBody Publish project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Builds and deploys the project. When the workspace blocks publishing on critical security findings, the quick security scan runs on the version being published first, and unresolved findings fail the request with 400 security_critical_findings. Returns 202 with the Deployment representation, status running, and null url and error fields; poll GET /v1/projects/{project_id}/publish/{deployment_id} until deployment finishes. Optionally set audience to choose who can open the published app; project reads report it as publish_audience. Omit audience to keep the current setting. Audience changes apply to the currently published version immediately, before the new deployment finishes. To change access settings without rebuilding, use PATCH /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.
	//
	// Takes any type of body and a specified content type.
	//
	// Corresponds with POST /v1/projects/{project_id}/publish (the `PublishProject` operationId).
	PublishProjectWithBody(ctx context.Context, projectId string, params *PublishProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PublishProject Publish project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Builds and deploys the project. When the workspace blocks publishing on critical security findings, the quick security scan runs on the version being published first, and unresolved findings fail the request with 400 security_critical_findings. Returns 202 with the Deployment representation, status running, and null url and error fields; poll GET /v1/projects/{project_id}/publish/{deployment_id} until deployment finishes. Optionally set audience to choose who can open the published app; project reads report it as publish_audience. Omit audience to keep the current setting. Audience changes apply to the currently published version immediately, before the new deployment finishes. To change access settings without rebuilding, use PATCH /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.
	//
	// Takes a body of the `application/json` content type.
	//
	// Corresponds with POST /v1/projects/{project_id}/publish (the `PublishProject` operationId).
	PublishProject(ctx context.Context, projectId string, params *PublishProjectParams, body PublishProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDeployment Get publish status
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns the status of an async publish started with POST /v1/projects/{project_id}/publish, keyed by the id it returned. Poll until deployment succeeds (url is set) or fails (error_message explains the failure). Poll no more than once every 2 seconds and honor Retry-After on 429 responses.
	//
	// On failure, use error_class to choose the next action.
	//
	// | error_class | Action |
	// | --- | --- |
	// | transient | Retry publishing with backoff and a bounded retry limit. |
	// | code | Fix the app code or SQL, then publish again. |
	// | configuration | Fix configuration committed in the project, such as an oversized file, then publish again. |
	// | data | Review the migration against production data. Obtain human approval before changing data, then publish again. |
	// | integration | Repair external credentials, quota, or the connected service, then publish again. |
	// | policy | Ask the workspace administrator to lift the blocking policy or approve the publish. |
	// | internal | Contact Lovable support with the deployment ID. |
	//
	// If error_class is null or unrecognized, show error_message and contact support instead of automatically retrying.
	//
	// Corresponds with GET /v1/projects/{project_id}/publish/{deployment_id} (the `GetDeployment` operationId).
	GetDeployment(ctx context.Context, projectId string, deploymentId string, params *GetDeploymentParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSecurityScans List security scans
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns the project's security scans ordered by start time, newest first. Use GET /v1/projects/{project_id}/security-scans/{scan_id}/findings to retrieve findings.
	//
	// Corresponds with GET /v1/projects/{project_id}/security-scans (the `ListSecurityScans` operationId).
	ListSecurityScans(ctx context.Context, projectId string, params *ListSecurityScansParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSecurityScan Get security scan
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns a security scan's status, timing, and requested checks. Findings are available from GET /v1/projects/{project_id}/security-scans/{scan_id}/findings.
	//
	// Corresponds with GET /v1/projects/{project_id}/security-scans/{scan_id} (the `GetSecurityScan` operationId).
	GetSecurityScan(ctx context.Context, projectId string, scanId string, params *GetSecurityScanParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSecurityScanFindings List security scan findings
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns a page of findings in the scan snapshot, including results reused from earlier scans and findings marked fixed or ignored. Findings are ordered by scanner_name, ascending, with a stable order within each scanner. Follow pagination.next_cursor until pagination.has_more is false to retrieve the complete snapshot.
	//
	// Corresponds with GET /v1/projects/{project_id}/security-scans/{scan_id}/findings (the `ListSecurityScanFindings` operationId).
	ListSecurityScanFindings(ctx context.Context, projectId string, scanId string, params *ListSecurityScanFindingsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWorkspaces List workspaces
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns workspaces accessible to the authenticated client, with cursor pagination. Workspaces are ordered by join date, oldest first. A workspace-scoped API key returns only its workspace. Member details, including roles, are on GET /v1/workspaces/{workspace_id}/members. The num_projects count is eventually consistent and may not immediately reflect project creation or deletion.
	//
	// Corresponds with GET /v1/workspaces (the `ListWorkspaces` operationId).
	ListWorkspaces(ctx context.Context, params *ListWorkspacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkspace Get workspace
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns workspace details, security and publishing policies, seat count, billing period, and default member credit limit. Usage fields are null without permission to view workspace usage. Member details, including roles, are on GET /v1/workspaces/{workspace_id}/members. The num_projects count is eventually consistent and may not immediately reflect project creation or deletion.
	//
	// Corresponds with GET /v1/workspaces/{workspace_id} (the `GetWorkspace` operationId).
	GetWorkspace(ctx context.Context, workspaceId string, params *GetWorkspaceParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkspaceAnalytics Get workspace analytics
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns website traffic time series for the workspace, including historical traffic from projects that have since been deleted. The response covers the requested date range without pagination. Date ranges are limited to 365 days, or 31 days with hourly granularity.
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/analytics (the `GetWorkspaceAnalytics` operationId).
	GetWorkspaceAnalytics(ctx context.Context, workspaceId string, params *GetWorkspaceAnalyticsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWorkspaceFolders List workspace folders
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns the workspace's directorys, sorted by name then id. Each project belongs to at most one directory; match a directory's id against the directory_id of GET /v1/projects and GET /v1/workspaces/{workspace_id}/security-center/insights/projects to group projects by directory, and filter either list with directory_id or is_in_directory. Restricted directorys are returned only when the caller created them, was given access to them, or may manage every member's restricted directorys. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/folders (the `ListWorkspaceFolders` operationId).
	ListWorkspaceFolders(ctx context.Context, workspaceId string, params *ListWorkspaceFoldersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWorkspaceGroups List workspace groups
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns the workspace's groups, sorted by name. Use a group's id as the id of a type "group" audience_targets entry when publishing a project with audience "custom" via POST or PATCH /v1/projects/{project_id}/publish.
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/groups (the `ListWorkspaceGroups` operationId).
	ListWorkspaceGroups(ctx context.Context, workspaceId string, params *ListWorkspaceGroupsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListWorkspaceMembers List workspace members
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns accepted workspace members with user_id, type, and name. The name is the stored display name, or null when unavailable. Filter with a repeated role, scim_managed=true|false, and query. Sort with sort_by plus sort_order; with a search query, results default to best matches first, otherwise they are ordered by role precedence, then most recently joined. Cursors are pinned to the filters and sort they were issued under; presenting one with different parameters returns 400. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/members (the `ListWorkspaceMembers` operationId).
	ListWorkspaceMembers(ctx context.Context, workspaceId string, params *ListWorkspaceMembersParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWorkspaceMember Get workspace member
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns an active workspace member's profile and join and invitation dates. name is the stored display name, or null when unavailable. Pass the public user UUID returned as user_id by GET /v1/workspaces/{workspace_id}/members. Unknown users and missing or non-active memberships return 404. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/members/{user_id} (the `GetWorkspaceMember` operationId).
	GetWorkspaceMember(ctx context.Context, workspaceId string, userId openapi_types.UUID, params *GetWorkspaceMemberParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSecurityInsights Get workspace security insights
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Prioritize security reviews across your workspace. Findings include public apps with security errors, unresolved personal data detections, projects shared with external collaborators, and projects whose owner is no longer an active workspace member.
	//
	// Returns workspace project and membership counts, project review priorities, and finding types with matching project counts. Requires Security Center access. The review_priority filter applies only to findings; summary counts remain workspace-wide. Finding types requiring personal data detection access are omitted when that feature is unavailable. Project and membership data is eventually consistent and may not immediately reflect recent changes.
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/security-center/insights (the `GetSecurityInsights` operationId).
	GetSecurityInsights(ctx context.Context, workspaceId string, params *GetSecurityInsightsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListSecurityInsightProjects List workspace security project inventory
	//
	// **Plan:** `Enterprise`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns workspace projects with review priorities, security finding counts, activity counts, and publishing details. Use GET /v1/projects/{project_id}/security-scans/{scan_id}/findings for individual findings. Supports search and filters. By default, projects are ordered by most recently edited, or search relevance when query is set. Project and membership data is eventually consistent and may not immediately reflect recent changes.
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/security-center/insights/projects (the `ListSecurityInsightProjects` operationId).
	ListSecurityInsightProjects(ctx context.Context, workspaceId string, params *ListSecurityInsightProjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateEmbedUrlWithBodyWithResponse

func (c *ClientWithResponses) CreateEmbedUrlWithBodyWithResponse(ctx context.Context, projectId string, params *CreateEmbedUrlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmbedUrlResponse, error)

CreateEmbedUrlWithBodyWithResponse Create embed URL

**Plan:** `Business or higher`

**Scope:** `projects:write`

Creates a preview URL valid for one hour that can be loaded in an iframe on one exact HTTPS origin. Visitors do not need a Lovable login. It shows the project's built preview; it does not grant access to the editor or the published app.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/projects/{project_id}/embed-url (the `CreateEmbedUrl` operationId).

func (*ClientWithResponses) CreateEmbedUrlWithResponse

func (c *ClientWithResponses) CreateEmbedUrlWithResponse(ctx context.Context, projectId string, params *CreateEmbedUrlParams, body CreateEmbedUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmbedUrlResponse, error)

CreateEmbedUrlWithResponse Create embed URL

**Plan:** `Business or higher`

**Scope:** `projects:write`

Creates a preview URL valid for one hour that can be loaded in an iframe on one exact HTTPS origin. Visitors do not need a Lovable login. It shows the project's built preview; it does not grant access to the editor or the published app.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/projects/{project_id}/embed-url (the `CreateEmbedUrl` operationId).

func (*ClientWithResponses) DeleteProjectWithResponse

func (c *ClientWithResponses) DeleteProjectWithResponse(ctx context.Context, projectId string, params *DeleteProjectParams, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)

DeleteProjectWithResponse Delete project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Deletes a project. Where trash is available the project can be restored from the Lovable editor; otherwise the deletion is permanent and custom domains are disconnected immediately. Deleting a project that is already deleted returns 404 with type project_not_found, so a client retrying a delete whose outcome it does not know should treat that 404 as success.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v1/projects/{project_id} (the `DeleteProject` operationId).

func (*ClientWithResponses) GetDeploymentWithResponse

func (c *ClientWithResponses) GetDeploymentWithResponse(ctx context.Context, projectId string, deploymentId string, params *GetDeploymentParams, reqEditors ...RequestEditorFn) (*GetDeploymentResponse, error)

GetDeploymentWithResponse Get publish status

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns the status of an async publish started with POST /v1/projects/{project_id}/publish, keyed by the id it returned. Poll until deployment succeeds (url is set) or fails (error_message explains the failure). Poll no more than once every 2 seconds and honor Retry-After on 429 responses.

On failure, use error_class to choose the next action.

| error_class | Action | | --- | --- | | transient | Retry publishing with backoff and a bounded retry limit. | | code | Fix the app code or SQL, then publish again. | | configuration | Fix configuration committed in the project, such as an oversized file, then publish again. | | data | Review the migration against production data. Obtain human approval before changing data, then publish again. | | integration | Repair external credentials, quota, or the connected service, then publish again. | | policy | Ask the workspace administrator to lift the blocking policy or approve the publish. | | internal | Contact Lovable support with the deployment ID. |

If error_class is null or unrecognized, show error_message and contact support instead of automatically retrying.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects/{project_id}/publish/{deployment_id} (the `GetDeployment` operationId).

func (*ClientWithResponses) GetProjectAnalyticsBreakdownsWithResponse

func (c *ClientWithResponses) GetProjectAnalyticsBreakdownsWithResponse(ctx context.Context, projectId string, params *GetProjectAnalyticsBreakdownsParams, reqEditors ...RequestEditorFn) (*GetProjectAnalyticsBreakdownsResponse, error)

GetProjectAnalyticsBreakdownsWithResponse Get project analytics breakdowns

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns the top pages, referring domains, device types, and visitor countries for a published project over a range of complete UTC calendar dates, up to 10 items each. Date ranges are limited to 365 days. Some projects retain analytics for 90 days; older days contribute no visitors.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects/{project_id}/analytics/breakdowns (the `GetProjectAnalyticsBreakdowns` operationId).

func (*ClientWithResponses) GetProjectAnalyticsWithResponse

func (c *ClientWithResponses) GetProjectAnalyticsWithResponse(ctx context.Context, projectId string, params *GetProjectAnalyticsParams, reqEditors ...RequestEditorFn) (*GetProjectAnalyticsResponse, error)

GetProjectAnalyticsWithResponse Get project analytics

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns website traffic for a published project over a date range as a time series. Date ranges are limited to 365 days, or 31 days with one-hour buckets. Some projects retain analytics for 90 days; older buckets are returned with zero values.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects/{project_id}/analytics (the `GetProjectAnalytics` operationId).

func (*ClientWithResponses) GetProjectRealtimeAnalyticsWithResponse

func (c *ClientWithResponses) GetProjectRealtimeAnalyticsWithResponse(ctx context.Context, projectId string, params *GetProjectRealtimeAnalyticsParams, reqEditors ...RequestEditorFn) (*GetProjectRealtimeAnalyticsResponse, error)

GetProjectRealtimeAnalyticsWithResponse Get project realtime analytics

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns visitor counts for a published project over the last 30 minutes in one-minute buckets, plus the number of visitors active in the last 5 minutes.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects/{project_id}/analytics/realtime (the `GetProjectRealtimeAnalytics` operationId).

func (*ClientWithResponses) GetProjectWithResponse

func (c *ClientWithResponses) GetProjectWithResponse(ctx context.Context, projectId string, params *GetProjectParams, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)

GetProjectWithResponse Get project

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns project details.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects/{project_id} (the `GetProject` operationId).

func (*ClientWithResponses) GetSecurityInsightsWithResponse

func (c *ClientWithResponses) GetSecurityInsightsWithResponse(ctx context.Context, workspaceId string, params *GetSecurityInsightsParams, reqEditors ...RequestEditorFn) (*GetSecurityInsightsResponse, error)

GetSecurityInsightsWithResponse Get workspace security insights

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Prioritize security reviews across your workspace. Findings include public apps with security errors, unresolved personal data detections, projects shared with external collaborators, and projects whose owner is no longer an active workspace member.

Returns workspace project and membership counts, project review priorities, and finding types with matching project counts. Requires Security Center access. The review_priority filter applies only to findings; summary counts remain workspace-wide. Finding types requiring personal data detection access are omitted when that feature is unavailable. Project and membership data is eventually consistent and may not immediately reflect recent changes.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/workspaces/{workspace_id}/security-center/insights (the `GetSecurityInsights` operationId).

func (*ClientWithResponses) GetSecurityScanWithResponse

func (c *ClientWithResponses) GetSecurityScanWithResponse(ctx context.Context, projectId string, scanId string, params *GetSecurityScanParams, reqEditors ...RequestEditorFn) (*GetSecurityScanResponse, error)

GetSecurityScanWithResponse Get security scan

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns a security scan's status, timing, and requested checks. Findings are available from GET /v1/projects/{project_id}/security-scans/{scan_id}/findings.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects/{project_id}/security-scans/{scan_id} (the `GetSecurityScan` operationId).

func (*ClientWithResponses) GetWorkspaceAnalyticsWithResponse

func (c *ClientWithResponses) GetWorkspaceAnalyticsWithResponse(ctx context.Context, workspaceId string, params *GetWorkspaceAnalyticsParams, reqEditors ...RequestEditorFn) (*GetWorkspaceAnalyticsResponse, error)

GetWorkspaceAnalyticsWithResponse Get workspace analytics

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns website traffic time series for the workspace, including historical traffic from projects that have since been deleted. The response covers the requested date range without pagination. Date ranges are limited to 365 days, or 31 days with hourly granularity.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/workspaces/{workspace_id}/analytics (the `GetWorkspaceAnalytics` operationId).

func (*ClientWithResponses) GetWorkspaceMemberWithResponse

func (c *ClientWithResponses) GetWorkspaceMemberWithResponse(ctx context.Context, workspaceId string, userId openapi_types.UUID, params *GetWorkspaceMemberParams, reqEditors ...RequestEditorFn) (*GetWorkspaceMemberResponse, error)

GetWorkspaceMemberWithResponse Get workspace member

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns an active workspace member's profile and join and invitation dates. name is the stored display name, or null when unavailable. Pass the public user UUID returned as user_id by GET /v1/workspaces/{workspace_id}/members. Unknown users and missing or non-active memberships return 404. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/workspaces/{workspace_id}/members/{user_id} (the `GetWorkspaceMember` operationId).

func (*ClientWithResponses) GetWorkspaceWithResponse

func (c *ClientWithResponses) GetWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetWorkspaceParams, reqEditors ...RequestEditorFn) (*GetWorkspaceResponse, error)

GetWorkspaceWithResponse Get workspace

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns workspace details, security and publishing policies, seat count, billing period, and default member credit limit. Usage fields are null without permission to view workspace usage. Member details, including roles, are on GET /v1/workspaces/{workspace_id}/members. The num_projects count is eventually consistent and may not immediately reflect project creation or deletion.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/workspaces/{workspace_id} (the `GetWorkspace` operationId).

func (*ClientWithResponses) ListPiiLabelsWithResponse

func (c *ClientWithResponses) ListPiiLabelsWithResponse(ctx context.Context, projectId string, params *ListPiiLabelsParams, reqEditors ...RequestEditorFn) (*ListPiiLabelsResponse, error)

ListPiiLabelsWithResponse List personal data findings

**Plan:** `Enterprise`

**Scope:** `projects:read`

Returns findings of personally identifiable information (PII) in the project, newest first, including open, ignored, and fixed findings. Personal data detection must be enabled for the workspace; otherwise this endpoint returns 404.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects/{project_id}/pii-labels (the `ListPiiLabels` operationId).

func (*ClientWithResponses) ListProjectCollaboratorsWithResponse added in v0.2.0

func (c *ClientWithResponses) ListProjectCollaboratorsWithResponse(ctx context.Context, projectId string, params *ListProjectCollaboratorsParams, reqEditors ...RequestEditorFn) (*ListProjectCollaboratorsResponse, error)

ListProjectCollaboratorsWithResponse List project collaborators

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns users individually granted access to this project, with their access level. Access through groups, directorys, or a workspace role is not listed, and the owner appears only when they also hold an explicit grant. Excludes pending invitations to email addresses without a Lovable account. Each user_id matches a user_id from GET /v1/workspaces/{workspace_id}/members, where users added only to projects have the role external_collaborator. A newly added collaborator may not appear there immediately.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects/{project_id}/collaborators (the `ListProjectCollaborators` operationId).

func (*ClientWithResponses) ListProjectsWithResponse

func (c *ClientWithResponses) ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error)

ListProjectsWithResponse List projects

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns projects across the selected workspaces in one cursor-paginated list, sorted by last edited time descending then project ID ascending. Projects without a last edit use their update time for ordering; projects with neither sort last. Repeat workspace_id to select up to 10 workspaces. Every selected workspace must pass authorization; any failure rejects the whole request. Workspace-scoped API keys remain limited to their own workspace. Cursors are bound to the selected workspace set and filters. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects (the `ListProjects` operationId).

func (*ClientWithResponses) ListSecurityInsightProjectsWithResponse

func (c *ClientWithResponses) ListSecurityInsightProjectsWithResponse(ctx context.Context, workspaceId string, params *ListSecurityInsightProjectsParams, reqEditors ...RequestEditorFn) (*ListSecurityInsightProjectsResponse, error)

ListSecurityInsightProjectsWithResponse List workspace security project inventory

**Plan:** `Enterprise`

**Scope:** `workspaces:read`

Returns workspace projects with review priorities, security finding counts, activity counts, and publishing details. Use GET /v1/projects/{project_id}/security-scans/{scan_id}/findings for individual findings. Supports search and filters. By default, projects are ordered by most recently edited, or search relevance when query is set. Project and membership data is eventually consistent and may not immediately reflect recent changes.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/workspaces/{workspace_id}/security-center/insights/projects (the `ListSecurityInsightProjects` operationId).

func (*ClientWithResponses) ListSecurityScanFindingsWithResponse

func (c *ClientWithResponses) ListSecurityScanFindingsWithResponse(ctx context.Context, projectId string, scanId string, params *ListSecurityScanFindingsParams, reqEditors ...RequestEditorFn) (*ListSecurityScanFindingsResponse, error)

ListSecurityScanFindingsWithResponse List security scan findings

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns a page of findings in the scan snapshot, including results reused from earlier scans and findings marked fixed or ignored. Findings are ordered by scanner_name, ascending, with a stable order within each scanner. Follow pagination.next_cursor until pagination.has_more is false to retrieve the complete snapshot.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects/{project_id}/security-scans/{scan_id}/findings (the `ListSecurityScanFindings` operationId).

func (*ClientWithResponses) ListSecurityScansWithResponse

func (c *ClientWithResponses) ListSecurityScansWithResponse(ctx context.Context, projectId string, params *ListSecurityScansParams, reqEditors ...RequestEditorFn) (*ListSecurityScansResponse, error)

ListSecurityScansWithResponse List security scans

**Plan:** `Business or higher`

**Scope:** `projects:read`

Returns the project's security scans ordered by start time, newest first. Use GET /v1/projects/{project_id}/security-scans/{scan_id}/findings to retrieve findings.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/projects/{project_id}/security-scans (the `ListSecurityScans` operationId).

func (*ClientWithResponses) ListWorkspaceFoldersWithResponse added in v0.3.0

func (c *ClientWithResponses) ListWorkspaceFoldersWithResponse(ctx context.Context, workspaceId string, params *ListWorkspaceFoldersParams, reqEditors ...RequestEditorFn) (*ListWorkspaceFoldersResponse, error)

ListWorkspaceFoldersWithResponse List workspace folders

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns the workspace's directorys, sorted by name then id. Each project belongs to at most one directory; match a directory's id against the directory_id of GET /v1/projects and GET /v1/workspaces/{workspace_id}/security-center/insights/projects to group projects by directory, and filter either list with directory_id or is_in_directory. Restricted directorys are returned only when the caller created them, was given access to them, or may manage every member's restricted directorys. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/workspaces/{workspace_id}/folders (the `ListWorkspaceFolders` operationId).

func (*ClientWithResponses) ListWorkspaceGroupsWithResponse

func (c *ClientWithResponses) ListWorkspaceGroupsWithResponse(ctx context.Context, workspaceId string, params *ListWorkspaceGroupsParams, reqEditors ...RequestEditorFn) (*ListWorkspaceGroupsResponse, error)

ListWorkspaceGroupsWithResponse List workspace groups

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns the workspace's groups, sorted by name. Use a group's id as the id of a type "group" audience_targets entry when publishing a project with audience "custom" via POST or PATCH /v1/projects/{project_id}/publish.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/workspaces/{workspace_id}/groups (the `ListWorkspaceGroups` operationId).

func (*ClientWithResponses) ListWorkspaceMembersWithResponse

func (c *ClientWithResponses) ListWorkspaceMembersWithResponse(ctx context.Context, workspaceId string, params *ListWorkspaceMembersParams, reqEditors ...RequestEditorFn) (*ListWorkspaceMembersResponse, error)

ListWorkspaceMembersWithResponse List workspace members

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns accepted workspace members with user_id, type, and name. The name is the stored display name, or null when unavailable. Filter with a repeated role, scim_managed=true|false, and query. Sort with sort_by plus sort_order; with a search query, results default to best matches first, otherwise they are ordered by role precedence, then most recently joined. Cursors are pinned to the filters and sort they were issued under; presenting one with different parameters returns 400. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/workspaces/{workspace_id}/members (the `ListWorkspaceMembers` operationId).

func (*ClientWithResponses) ListWorkspacesWithResponse

func (c *ClientWithResponses) ListWorkspacesWithResponse(ctx context.Context, params *ListWorkspacesParams, reqEditors ...RequestEditorFn) (*ListWorkspacesResponse, error)

ListWorkspacesWithResponse List workspaces

**Plan:** `Business or higher`

**Scope:** `workspaces:read`

Returns workspaces accessible to the authenticated client, with cursor pagination. Workspaces are ordered by join date, oldest first. A workspace-scoped API key returns only its workspace. Member details, including roles, are on GET /v1/workspaces/{workspace_id}/members. The num_projects count is eventually consistent and may not immediately reflect project creation or deletion.

Returns a wrapper object for the known response body format(s).

Corresponds with GET /v1/workspaces (the `ListWorkspaces` operationId).

func (*ClientWithResponses) PublishProjectWithBodyWithResponse

func (c *ClientWithResponses) PublishProjectWithBodyWithResponse(ctx context.Context, projectId string, params *PublishProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishProjectResponse, error)

PublishProjectWithBodyWithResponse Publish project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Builds and deploys the project. When the workspace blocks publishing on critical security findings, the quick security scan runs on the version being published first, and unresolved findings fail the request with 400 security_critical_findings. Returns 202 with the Deployment representation, status running, and null url and error fields; poll GET /v1/projects/{project_id}/publish/{deployment_id} until deployment finishes. Optionally set audience to choose who can open the published app; project reads report it as publish_audience. Omit audience to keep the current setting. Audience changes apply to the currently published version immediately, before the new deployment finishes. To change access settings without rebuilding, use PATCH /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/projects/{project_id}/publish (the `PublishProject` operationId).

func (*ClientWithResponses) PublishProjectWithResponse

func (c *ClientWithResponses) PublishProjectWithResponse(ctx context.Context, projectId string, params *PublishProjectParams, body PublishProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishProjectResponse, error)

PublishProjectWithResponse Publish project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Builds and deploys the project. When the workspace blocks publishing on critical security findings, the quick security scan runs on the version being published first, and unresolved findings fail the request with 400 security_critical_findings. Returns 202 with the Deployment representation, status running, and null url and error fields; poll GET /v1/projects/{project_id}/publish/{deployment_id} until deployment finishes. Optionally set audience to choose who can open the published app; project reads report it as publish_audience. Omit audience to keep the current setting. Audience changes apply to the currently published version immediately, before the new deployment finishes. To change access settings without rebuilding, use PATCH /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with POST /v1/projects/{project_id}/publish (the `PublishProject` operationId).

func (*ClientWithResponses) UnpublishProjectWithResponse

func (c *ClientWithResponses) UnpublishProjectWithResponse(ctx context.Context, projectId string, params *UnpublishProjectParams, reqEditors ...RequestEditorFn) (*UnpublishProjectResponse, error)

UnpublishProjectWithResponse Unpublish project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Takes the published app offline. Audience and visibility settings are retained and apply again on the next POST /v1/projects/{project_id}/publish. Returns 204 whether or not the app was online, so a repeated call is safe.

Returns a wrapper object for the known response body format(s).

Corresponds with DELETE /v1/projects/{project_id}/publish (the `UnpublishProject` operationId).

func (*ClientWithResponses) UpdateProjectWithBodyWithResponse

func (c *ClientWithResponses) UpdateProjectWithBodyWithResponse(ctx context.Context, projectId string, params *UpdateProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

UpdateProjectWithBodyWithResponse Update project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Updates project sharing or the human-readable name. The description is generated by the agent and cannot be edited through this endpoint. Omitted fields keep their current values. This does not change access to the published app; use PATCH /v1/projects/{project_id}/publish for that.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/projects/{project_id} (the `UpdateProject` operationId).

func (*ClientWithResponses) UpdateProjectWithResponse

func (c *ClientWithResponses) UpdateProjectWithResponse(ctx context.Context, projectId string, params *UpdateProjectParams, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

UpdateProjectWithResponse Update project

**Plan:** `Business or higher`

**Scope:** `projects:write`

Updates project sharing or the human-readable name. The description is generated by the agent and cannot be edited through this endpoint. Omitted fields keep their current values. This does not change access to the published app; use PATCH /v1/projects/{project_id}/publish for that.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/projects/{project_id} (the `UpdateProject` operationId).

func (*ClientWithResponses) UpdatePublishSettingsWithBodyWithResponse

func (c *ClientWithResponses) UpdatePublishSettingsWithBodyWithResponse(ctx context.Context, projectId string, params *UpdatePublishSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePublishSettingsResponse, error)

UpdatePublishSettingsWithBodyWithResponse Update publish settings

**Plan:** `Business or higher`

**Scope:** `projects:write`

Changes published app access without rebuilding the app. Set audience to public, workspace, or custom; project reads report it as publish_audience. With a custom audience, audience_targets replaces group and user grants and removes workspace-wide access; organization access and email invitations managed in the UI are preserved. Changes take effect immediately. Where an enforced workspace publishing policy decides publishes, a published app that is not public becomes public only through a publish, which also ships the latest saved version: set audience public on POST /v1/projects/{project_id}/publish, since this route answers 409 publish_visibility_requires_publish. Returns the resolved audience and its targets. Read GET /v1/projects/{project_id} for is_published, publish_audience, and publish_audience_targets. To build and publish a new version, use POST /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.

Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/projects/{project_id}/publish (the `UpdatePublishSettings` operationId).

func (*ClientWithResponses) UpdatePublishSettingsWithResponse

func (c *ClientWithResponses) UpdatePublishSettingsWithResponse(ctx context.Context, projectId string, params *UpdatePublishSettingsParams, body UpdatePublishSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePublishSettingsResponse, error)

UpdatePublishSettingsWithResponse Update publish settings

**Plan:** `Business or higher`

**Scope:** `projects:write`

Changes published app access without rebuilding the app. Set audience to public, workspace, or custom; project reads report it as publish_audience. With a custom audience, audience_targets replaces group and user grants and removes workspace-wide access; organization access and email invitations managed in the UI are preserved. Changes take effect immediately. Where an enforced workspace publishing policy decides publishes, a published app that is not public becomes public only through a publish, which also ships the latest saved version: set audience public on POST /v1/projects/{project_id}/publish, since this route answers 409 publish_visibility_requires_publish. Returns the resolved audience and its targets. Read GET /v1/projects/{project_id} for is_published, publish_audience, and publish_audience_targets. To build and publish a new version, use POST /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.

Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).

Corresponds with PATCH /v1/projects/{project_id}/publish (the `UpdatePublishSettings` operationId).

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {

	// ListProjectsWithResponse List projects
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns projects across the selected workspaces in one cursor-paginated list, sorted by last edited time descending then project ID ascending. Projects without a last edit use their update time for ordering; projects with neither sort last. Repeat workspace_id to select up to 10 workspaces. Every selected workspace must pass authorization; any failure rejects the whole request. Workspace-scoped API keys remain limited to their own workspace. Cursors are bound to the selected workspace set and filters. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects (the `ListProjects` operationId).
	ListProjectsWithResponse(ctx context.Context, params *ListProjectsParams, reqEditors ...RequestEditorFn) (*ListProjectsResponse, error)

	// DeleteProjectWithResponse Delete project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Deletes a project. Where trash is available the project can be restored from the Lovable editor; otherwise the deletion is permanent and custom domains are disconnected immediately. Deleting a project that is already deleted returns 404 with type project_not_found, so a client retrying a delete whose outcome it does not know should treat that 404 as success.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v1/projects/{project_id} (the `DeleteProject` operationId).
	DeleteProjectWithResponse(ctx context.Context, projectId string, params *DeleteProjectParams, reqEditors ...RequestEditorFn) (*DeleteProjectResponse, error)

	// GetProjectWithResponse Get project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns project details.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects/{project_id} (the `GetProject` operationId).
	GetProjectWithResponse(ctx context.Context, projectId string, params *GetProjectParams, reqEditors ...RequestEditorFn) (*GetProjectResponse, error)

	// UpdateProjectWithBodyWithResponse Update project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Updates project sharing or the human-readable name. The description is generated by the agent and cannot be edited through this endpoint. Omitted fields keep their current values. This does not change access to the published app; use PATCH /v1/projects/{project_id}/publish for that.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/projects/{project_id} (the `UpdateProject` operationId).
	UpdateProjectWithBodyWithResponse(ctx context.Context, projectId string, params *UpdateProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

	// UpdateProjectWithResponse Update project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Updates project sharing or the human-readable name. The description is generated by the agent and cannot be edited through this endpoint. Omitted fields keep their current values. This does not change access to the published app; use PATCH /v1/projects/{project_id}/publish for that.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/projects/{project_id} (the `UpdateProject` operationId).
	UpdateProjectWithResponse(ctx context.Context, projectId string, params *UpdateProjectParams, body UpdateProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateProjectResponse, error)

	// GetProjectAnalyticsWithResponse Get project analytics
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns website traffic for a published project over a date range as a time series. Date ranges are limited to 365 days, or 31 days with one-hour buckets. Some projects retain analytics for 90 days; older buckets are returned with zero values.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects/{project_id}/analytics (the `GetProjectAnalytics` operationId).
	GetProjectAnalyticsWithResponse(ctx context.Context, projectId string, params *GetProjectAnalyticsParams, reqEditors ...RequestEditorFn) (*GetProjectAnalyticsResponse, error)

	// GetProjectAnalyticsBreakdownsWithResponse Get project analytics breakdowns
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns the top pages, referring domains, device types, and visitor countries for a published project over a range of complete UTC calendar dates, up to 10 items each. Date ranges are limited to 365 days. Some projects retain analytics for 90 days; older days contribute no visitors.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects/{project_id}/analytics/breakdowns (the `GetProjectAnalyticsBreakdowns` operationId).
	GetProjectAnalyticsBreakdownsWithResponse(ctx context.Context, projectId string, params *GetProjectAnalyticsBreakdownsParams, reqEditors ...RequestEditorFn) (*GetProjectAnalyticsBreakdownsResponse, error)

	// GetProjectRealtimeAnalyticsWithResponse Get project realtime analytics
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns visitor counts for a published project over the last 30 minutes in one-minute buckets, plus the number of visitors active in the last 5 minutes.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects/{project_id}/analytics/realtime (the `GetProjectRealtimeAnalytics` operationId).
	GetProjectRealtimeAnalyticsWithResponse(ctx context.Context, projectId string, params *GetProjectRealtimeAnalyticsParams, reqEditors ...RequestEditorFn) (*GetProjectRealtimeAnalyticsResponse, error)

	// ListProjectCollaboratorsWithResponse List project collaborators
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns users individually granted access to this project, with their access level. Access through groups, directorys, or a workspace role is not listed, and the owner appears only when they also hold an explicit grant. Excludes pending invitations to email addresses without a Lovable account. Each user_id matches a user_id from GET /v1/workspaces/{workspace_id}/members, where users added only to projects have the role external_collaborator. A newly added collaborator may not appear there immediately.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects/{project_id}/collaborators (the `ListProjectCollaborators` operationId).
	ListProjectCollaboratorsWithResponse(ctx context.Context, projectId string, params *ListProjectCollaboratorsParams, reqEditors ...RequestEditorFn) (*ListProjectCollaboratorsResponse, error)

	// CreateEmbedUrlWithBodyWithResponse Create embed URL
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Creates a preview URL valid for one hour that can be loaded in an iframe on one exact HTTPS origin. Visitors do not need a Lovable login. It shows the project's built preview; it does not grant access to the editor or the published app.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/projects/{project_id}/embed-url (the `CreateEmbedUrl` operationId).
	CreateEmbedUrlWithBodyWithResponse(ctx context.Context, projectId string, params *CreateEmbedUrlParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEmbedUrlResponse, error)

	// CreateEmbedUrlWithResponse Create embed URL
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Creates a preview URL valid for one hour that can be loaded in an iframe on one exact HTTPS origin. Visitors do not need a Lovable login. It shows the project's built preview; it does not grant access to the editor or the published app.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/projects/{project_id}/embed-url (the `CreateEmbedUrl` operationId).
	CreateEmbedUrlWithResponse(ctx context.Context, projectId string, params *CreateEmbedUrlParams, body CreateEmbedUrlJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEmbedUrlResponse, error)

	// ListPiiLabelsWithResponse List personal data findings
	//
	// **Plan:** `Enterprise`
	//
	// **Scope:** `projects:read`
	//
	// Returns findings of personally identifiable information (PII) in the project, newest first, including open, ignored, and fixed findings. Personal data detection must be enabled for the workspace; otherwise this endpoint returns 404.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects/{project_id}/pii-labels (the `ListPiiLabels` operationId).
	ListPiiLabelsWithResponse(ctx context.Context, projectId string, params *ListPiiLabelsParams, reqEditors ...RequestEditorFn) (*ListPiiLabelsResponse, error)

	// UnpublishProjectWithResponse Unpublish project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Takes the published app offline. Audience and visibility settings are retained and apply again on the next POST /v1/projects/{project_id}/publish. Returns 204 whether or not the app was online, so a repeated call is safe.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with DELETE /v1/projects/{project_id}/publish (the `UnpublishProject` operationId).
	UnpublishProjectWithResponse(ctx context.Context, projectId string, params *UnpublishProjectParams, reqEditors ...RequestEditorFn) (*UnpublishProjectResponse, error)

	// UpdatePublishSettingsWithBodyWithResponse Update publish settings
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Changes published app access without rebuilding the app. Set audience to public, workspace, or custom; project reads report it as publish_audience. With a custom audience, audience_targets replaces group and user grants and removes workspace-wide access; organization access and email invitations managed in the UI are preserved. Changes take effect immediately. Where an enforced workspace publishing policy decides publishes, a published app that is not public becomes public only through a publish, which also ships the latest saved version: set audience public on POST /v1/projects/{project_id}/publish, since this route answers 409 publish_visibility_requires_publish. Returns the resolved audience and its targets. Read GET /v1/projects/{project_id} for is_published, publish_audience, and publish_audience_targets. To build and publish a new version, use POST /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/projects/{project_id}/publish (the `UpdatePublishSettings` operationId).
	UpdatePublishSettingsWithBodyWithResponse(ctx context.Context, projectId string, params *UpdatePublishSettingsParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePublishSettingsResponse, error)

	// UpdatePublishSettingsWithResponse Update publish settings
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Changes published app access without rebuilding the app. Set audience to public, workspace, or custom; project reads report it as publish_audience. With a custom audience, audience_targets replaces group and user grants and removes workspace-wide access; organization access and email invitations managed in the UI are preserved. Changes take effect immediately. Where an enforced workspace publishing policy decides publishes, a published app that is not public becomes public only through a publish, which also ships the latest saved version: set audience public on POST /v1/projects/{project_id}/publish, since this route answers 409 publish_visibility_requires_publish. Returns the resolved audience and its targets. Read GET /v1/projects/{project_id} for is_published, publish_audience, and publish_audience_targets. To build and publish a new version, use POST /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with PATCH /v1/projects/{project_id}/publish (the `UpdatePublishSettings` operationId).
	UpdatePublishSettingsWithResponse(ctx context.Context, projectId string, params *UpdatePublishSettingsParams, body UpdatePublishSettingsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePublishSettingsResponse, error)

	// PublishProjectWithBodyWithResponse Publish project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Builds and deploys the project. When the workspace blocks publishing on critical security findings, the quick security scan runs on the version being published first, and unresolved findings fail the request with 400 security_critical_findings. Returns 202 with the Deployment representation, status running, and null url and error fields; poll GET /v1/projects/{project_id}/publish/{deployment_id} until deployment finishes. Optionally set audience to choose who can open the published app; project reads report it as publish_audience. Omit audience to keep the current setting. Audience changes apply to the currently published version immediately, before the new deployment finishes. To change access settings without rebuilding, use PATCH /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.
	//
	// Takes any type of body and a specified content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/projects/{project_id}/publish (the `PublishProject` operationId).
	PublishProjectWithBodyWithResponse(ctx context.Context, projectId string, params *PublishProjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PublishProjectResponse, error)

	// PublishProjectWithResponse Publish project
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:write`
	//
	// Builds and deploys the project. When the workspace blocks publishing on critical security findings, the quick security scan runs on the version being published first, and unresolved findings fail the request with 400 security_critical_findings. Returns 202 with the Deployment representation, status running, and null url and error fields; poll GET /v1/projects/{project_id}/publish/{deployment_id} until deployment finishes. Optionally set audience to choose who can open the published app; project reads report it as publish_audience. Omit audience to keep the current setting. Audience changes apply to the currently published version immediately, before the new deployment finishes. To change access settings without rebuilding, use PATCH /v1/projects/{project_id}/publish. To take the app offline, use DELETE /v1/projects/{project_id}/publish.
	//
	// Takes a body of the `application/json` content type, and returns a wrapper object for the known response body format(s).
	//
	// Corresponds with POST /v1/projects/{project_id}/publish (the `PublishProject` operationId).
	PublishProjectWithResponse(ctx context.Context, projectId string, params *PublishProjectParams, body PublishProjectJSONRequestBody, reqEditors ...RequestEditorFn) (*PublishProjectResponse, error)

	// GetDeploymentWithResponse Get publish status
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns the status of an async publish started with POST /v1/projects/{project_id}/publish, keyed by the id it returned. Poll until deployment succeeds (url is set) or fails (error_message explains the failure). Poll no more than once every 2 seconds and honor Retry-After on 429 responses.
	//
	// On failure, use error_class to choose the next action.
	//
	// | error_class | Action |
	// | --- | --- |
	// | transient | Retry publishing with backoff and a bounded retry limit. |
	// | code | Fix the app code or SQL, then publish again. |
	// | configuration | Fix configuration committed in the project, such as an oversized file, then publish again. |
	// | data | Review the migration against production data. Obtain human approval before changing data, then publish again. |
	// | integration | Repair external credentials, quota, or the connected service, then publish again. |
	// | policy | Ask the workspace administrator to lift the blocking policy or approve the publish. |
	// | internal | Contact Lovable support with the deployment ID. |
	//
	// If error_class is null or unrecognized, show error_message and contact support instead of automatically retrying.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects/{project_id}/publish/{deployment_id} (the `GetDeployment` operationId).
	GetDeploymentWithResponse(ctx context.Context, projectId string, deploymentId string, params *GetDeploymentParams, reqEditors ...RequestEditorFn) (*GetDeploymentResponse, error)

	// ListSecurityScansWithResponse List security scans
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns the project's security scans ordered by start time, newest first. Use GET /v1/projects/{project_id}/security-scans/{scan_id}/findings to retrieve findings.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects/{project_id}/security-scans (the `ListSecurityScans` operationId).
	ListSecurityScansWithResponse(ctx context.Context, projectId string, params *ListSecurityScansParams, reqEditors ...RequestEditorFn) (*ListSecurityScansResponse, error)

	// GetSecurityScanWithResponse Get security scan
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns a security scan's status, timing, and requested checks. Findings are available from GET /v1/projects/{project_id}/security-scans/{scan_id}/findings.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects/{project_id}/security-scans/{scan_id} (the `GetSecurityScan` operationId).
	GetSecurityScanWithResponse(ctx context.Context, projectId string, scanId string, params *GetSecurityScanParams, reqEditors ...RequestEditorFn) (*GetSecurityScanResponse, error)

	// ListSecurityScanFindingsWithResponse List security scan findings
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `projects:read`
	//
	// Returns a page of findings in the scan snapshot, including results reused from earlier scans and findings marked fixed or ignored. Findings are ordered by scanner_name, ascending, with a stable order within each scanner. Follow pagination.next_cursor until pagination.has_more is false to retrieve the complete snapshot.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/projects/{project_id}/security-scans/{scan_id}/findings (the `ListSecurityScanFindings` operationId).
	ListSecurityScanFindingsWithResponse(ctx context.Context, projectId string, scanId string, params *ListSecurityScanFindingsParams, reqEditors ...RequestEditorFn) (*ListSecurityScanFindingsResponse, error)

	// ListWorkspacesWithResponse List workspaces
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns workspaces accessible to the authenticated client, with cursor pagination. Workspaces are ordered by join date, oldest first. A workspace-scoped API key returns only its workspace. Member details, including roles, are on GET /v1/workspaces/{workspace_id}/members. The num_projects count is eventually consistent and may not immediately reflect project creation or deletion.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/workspaces (the `ListWorkspaces` operationId).
	ListWorkspacesWithResponse(ctx context.Context, params *ListWorkspacesParams, reqEditors ...RequestEditorFn) (*ListWorkspacesResponse, error)

	// GetWorkspaceWithResponse Get workspace
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns workspace details, security and publishing policies, seat count, billing period, and default member credit limit. Usage fields are null without permission to view workspace usage. Member details, including roles, are on GET /v1/workspaces/{workspace_id}/members. The num_projects count is eventually consistent and may not immediately reflect project creation or deletion.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/workspaces/{workspace_id} (the `GetWorkspace` operationId).
	GetWorkspaceWithResponse(ctx context.Context, workspaceId string, params *GetWorkspaceParams, reqEditors ...RequestEditorFn) (*GetWorkspaceResponse, error)

	// GetWorkspaceAnalyticsWithResponse Get workspace analytics
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns website traffic time series for the workspace, including historical traffic from projects that have since been deleted. The response covers the requested date range without pagination. Date ranges are limited to 365 days, or 31 days with hourly granularity.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/analytics (the `GetWorkspaceAnalytics` operationId).
	GetWorkspaceAnalyticsWithResponse(ctx context.Context, workspaceId string, params *GetWorkspaceAnalyticsParams, reqEditors ...RequestEditorFn) (*GetWorkspaceAnalyticsResponse, error)

	// ListWorkspaceFoldersWithResponse List workspace folders
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns the workspace's directorys, sorted by name then id. Each project belongs to at most one directory; match a directory's id against the directory_id of GET /v1/projects and GET /v1/workspaces/{workspace_id}/security-center/insights/projects to group projects by directory, and filter either list with directory_id or is_in_directory. Restricted directorys are returned only when the caller created them, was given access to them, or may manage every member's restricted directorys. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/folders (the `ListWorkspaceFolders` operationId).
	ListWorkspaceFoldersWithResponse(ctx context.Context, workspaceId string, params *ListWorkspaceFoldersParams, reqEditors ...RequestEditorFn) (*ListWorkspaceFoldersResponse, error)

	// ListWorkspaceGroupsWithResponse List workspace groups
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns the workspace's groups, sorted by name. Use a group's id as the id of a type "group" audience_targets entry when publishing a project with audience "custom" via POST or PATCH /v1/projects/{project_id}/publish.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/groups (the `ListWorkspaceGroups` operationId).
	ListWorkspaceGroupsWithResponse(ctx context.Context, workspaceId string, params *ListWorkspaceGroupsParams, reqEditors ...RequestEditorFn) (*ListWorkspaceGroupsResponse, error)

	// ListWorkspaceMembersWithResponse List workspace members
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns accepted workspace members with user_id, type, and name. The name is the stored display name, or null when unavailable. Filter with a repeated role, scim_managed=true|false, and query. Sort with sort_by plus sort_order; with a search query, results default to best matches first, otherwise they are ordered by role precedence, then most recently joined. Cursors are pinned to the filters and sort they were issued under; presenting one with different parameters returns 400. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/members (the `ListWorkspaceMembers` operationId).
	ListWorkspaceMembersWithResponse(ctx context.Context, workspaceId string, params *ListWorkspaceMembersParams, reqEditors ...RequestEditorFn) (*ListWorkspaceMembersResponse, error)

	// GetWorkspaceMemberWithResponse Get workspace member
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns an active workspace member's profile and join and invitation dates. name is the stored display name, or null when unavailable. Pass the public user UUID returned as user_id by GET /v1/workspaces/{workspace_id}/members. Unknown users and missing or non-active memberships return 404. Reads are eventually consistent: recent changes may not appear immediately. Retry the read with backoff if an expected change is missing.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/members/{user_id} (the `GetWorkspaceMember` operationId).
	GetWorkspaceMemberWithResponse(ctx context.Context, workspaceId string, userId openapi_types.UUID, params *GetWorkspaceMemberParams, reqEditors ...RequestEditorFn) (*GetWorkspaceMemberResponse, error)

	// GetSecurityInsightsWithResponse Get workspace security insights
	//
	// **Plan:** `Business or higher`
	//
	// **Scope:** `workspaces:read`
	//
	// Prioritize security reviews across your workspace. Findings include public apps with security errors, unresolved personal data detections, projects shared with external collaborators, and projects whose owner is no longer an active workspace member.
	//
	// Returns workspace project and membership counts, project review priorities, and finding types with matching project counts. Requires Security Center access. The review_priority filter applies only to findings; summary counts remain workspace-wide. Finding types requiring personal data detection access are omitted when that feature is unavailable. Project and membership data is eventually consistent and may not immediately reflect recent changes.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/security-center/insights (the `GetSecurityInsights` operationId).
	GetSecurityInsightsWithResponse(ctx context.Context, workspaceId string, params *GetSecurityInsightsParams, reqEditors ...RequestEditorFn) (*GetSecurityInsightsResponse, error)

	// ListSecurityInsightProjectsWithResponse List workspace security project inventory
	//
	// **Plan:** `Enterprise`
	//
	// **Scope:** `workspaces:read`
	//
	// Returns workspace projects with review priorities, security finding counts, activity counts, and publishing details. Use GET /v1/projects/{project_id}/security-scans/{scan_id}/findings for individual findings. Supports search and filters. By default, projects are ordered by most recently edited, or search relevance when query is set. Project and membership data is eventually consistent and may not immediately reflect recent changes.
	//
	// Returns a wrapper object for the known response body format(s).
	//
	// Corresponds with GET /v1/workspaces/{workspace_id}/security-center/insights/projects (the `ListSecurityInsightProjects` operationId).
	ListSecurityInsightProjectsWithResponse(ctx context.Context, workspaceId string, params *ListSecurityInsightProjectsParams, reqEditors ...RequestEditorFn) (*ListSecurityInsightProjectsResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateEmbedURLRequest

type CreateEmbedURLRequest struct {
	// ParentOrigin HTTPS origin allowed to embed the preview, using a lowercase hostname with no port, trailing slash, path, query, or fragment. The preview URL only loads in an iframe on this origin.
	//
	// Example: https://acme.com
	ParentOrigin string `json:"parent_origin"`
}

CreateEmbedURLRequest defines model for CreateEmbedURLRequest.

type CreateEmbedURLResponse

type CreateEmbedURLResponse struct {
	// EmbedUrl Preview URL for an iframe on parent_origin. It allows visitors to view the built preview without a Lovable login until expires_at.
	//
	// Example: https://acme-landing-page.lovable.app/?__lovable_token=eyJhbGciOiJIUzI1NiJ9
	EmbedUrl string `json:"embed_url"`

	// ExpiresAt When the embed URL token expires and stops loading the preview.
	//
	// Example: 2026-01-15T09:30:00Z
	ExpiresAt time.Time `json:"expires_at"`
}

CreateEmbedURLResponse defines model for CreateEmbedURLResponse.

type CreateEmbedUrlJSONRequestBody

type CreateEmbedUrlJSONRequestBody = CreateEmbedURLRequest

CreateEmbedUrlJSONRequestBody defines body for CreateEmbedUrl for application/json ContentType.

type CreateEmbedUrlParams

type CreateEmbedUrlParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

CreateEmbedUrlParams defines parameters for CreateEmbedUrl.

type CreateEmbedUrlResponse

type CreateEmbedUrlResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *CreateEmbedURLResponse
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *CreateEmbedUrlResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *CreateEmbedUrlResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *CreateEmbedUrlResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *CreateEmbedUrlResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *CreateEmbedUrlResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *CreateEmbedUrlResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *CreateEmbedUrlResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *CreateEmbedUrlResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *CreateEmbedUrlResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *CreateEmbedUrlResponseDefaultHeaders
}

func ParseCreateEmbedUrlResponse

func ParseCreateEmbedUrlResponse(rsp *http.Response) (*CreateEmbedUrlResponse, error)

ParseCreateEmbedUrlResponse parses an HTTP response from a CreateEmbedUrlWithResponse call

func (CreateEmbedUrlResponse) ContentType

func (r CreateEmbedUrlResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (CreateEmbedUrlResponse) GetBody

func (r CreateEmbedUrlResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (CreateEmbedUrlResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (CreateEmbedUrlResponse) GetJSON400

func (r CreateEmbedUrlResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (CreateEmbedUrlResponse) GetJSON401

func (r CreateEmbedUrlResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (CreateEmbedUrlResponse) GetJSON402

func (r CreateEmbedUrlResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (CreateEmbedUrlResponse) GetJSON403

func (r CreateEmbedUrlResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (CreateEmbedUrlResponse) GetJSON404

func (r CreateEmbedUrlResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (CreateEmbedUrlResponse) GetJSON406

func (r CreateEmbedUrlResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (CreateEmbedUrlResponse) GetJSON429

func (r CreateEmbedUrlResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (CreateEmbedUrlResponse) GetJSON503

func (r CreateEmbedUrlResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (CreateEmbedUrlResponse) GetJSONDefault

func (r CreateEmbedUrlResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (CreateEmbedUrlResponse) Status

func (r CreateEmbedUrlResponse) Status() string

Status returns HTTPResponse.Status

func (CreateEmbedUrlResponse) StatusCode

func (r CreateEmbedUrlResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateEmbedUrlResponse200Headers

type CreateEmbedUrlResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

CreateEmbedUrlResponse200Headers the declared response headers of an HTTP 200 response for CreateEmbedUrl

type CreateEmbedUrlResponse400Headers

type CreateEmbedUrlResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

CreateEmbedUrlResponse400Headers the declared response headers of an HTTP 400 response for CreateEmbedUrl

type CreateEmbedUrlResponse401Headers

type CreateEmbedUrlResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

CreateEmbedUrlResponse401Headers the declared response headers of an HTTP 401 response for CreateEmbedUrl

type CreateEmbedUrlResponse402Headers

type CreateEmbedUrlResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

CreateEmbedUrlResponse402Headers the declared response headers of an HTTP 402 response for CreateEmbedUrl

type CreateEmbedUrlResponse403Headers

type CreateEmbedUrlResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

CreateEmbedUrlResponse403Headers the declared response headers of an HTTP 403 response for CreateEmbedUrl

type CreateEmbedUrlResponse404Headers

type CreateEmbedUrlResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

CreateEmbedUrlResponse404Headers the declared response headers of an HTTP 404 response for CreateEmbedUrl

type CreateEmbedUrlResponse406Headers

type CreateEmbedUrlResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

CreateEmbedUrlResponse406Headers the declared response headers of an HTTP 406 response for CreateEmbedUrl

type CreateEmbedUrlResponse429Headers

type CreateEmbedUrlResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

CreateEmbedUrlResponse429Headers the declared response headers of an HTTP 429 response for CreateEmbedUrl

type CreateEmbedUrlResponse503Headers

type CreateEmbedUrlResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

CreateEmbedUrlResponse503Headers the declared response headers of an HTTP 503 response for CreateEmbedUrl

type CreateEmbedUrlResponseDefaultHeaders

type CreateEmbedUrlResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

CreateEmbedUrlResponseDefaultHeaders the declared response headers of an HTTP default response for CreateEmbedUrl

type DeleteProjectParams

type DeleteProjectParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

DeleteProjectParams defines parameters for DeleteProject.

type DeleteProjectResponse

type DeleteProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *DeleteProjectResponse204Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *DeleteProjectResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *DeleteProjectResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *DeleteProjectResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *DeleteProjectResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *DeleteProjectResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *DeleteProjectResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *DeleteProjectResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *DeleteProjectResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *DeleteProjectResponseDefaultHeaders
}

func ParseDeleteProjectResponse

func ParseDeleteProjectResponse(rsp *http.Response) (*DeleteProjectResponse, error)

ParseDeleteProjectResponse parses an HTTP response from a DeleteProjectWithResponse call

func (DeleteProjectResponse) ContentType

func (r DeleteProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (DeleteProjectResponse) GetBody

func (r DeleteProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (DeleteProjectResponse) GetJSON400

func (r DeleteProjectResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (DeleteProjectResponse) GetJSON401

func (r DeleteProjectResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (DeleteProjectResponse) GetJSON402

func (r DeleteProjectResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (DeleteProjectResponse) GetJSON403

func (r DeleteProjectResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (DeleteProjectResponse) GetJSON404

func (r DeleteProjectResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (DeleteProjectResponse) GetJSON406

func (r DeleteProjectResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (DeleteProjectResponse) GetJSON429

func (r DeleteProjectResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (DeleteProjectResponse) GetJSON503

func (r DeleteProjectResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (DeleteProjectResponse) GetJSONDefault

func (r DeleteProjectResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (DeleteProjectResponse) Status

func (r DeleteProjectResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteProjectResponse) StatusCode

func (r DeleteProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteProjectResponse204Headers

type DeleteProjectResponse204Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

DeleteProjectResponse204Headers the declared response headers of an HTTP 204 response for DeleteProject

type DeleteProjectResponse400Headers

type DeleteProjectResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

DeleteProjectResponse400Headers the declared response headers of an HTTP 400 response for DeleteProject

type DeleteProjectResponse401Headers

type DeleteProjectResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

DeleteProjectResponse401Headers the declared response headers of an HTTP 401 response for DeleteProject

type DeleteProjectResponse402Headers

type DeleteProjectResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

DeleteProjectResponse402Headers the declared response headers of an HTTP 402 response for DeleteProject

type DeleteProjectResponse403Headers

type DeleteProjectResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

DeleteProjectResponse403Headers the declared response headers of an HTTP 403 response for DeleteProject

type DeleteProjectResponse404Headers

type DeleteProjectResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

DeleteProjectResponse404Headers the declared response headers of an HTTP 404 response for DeleteProject

type DeleteProjectResponse406Headers

type DeleteProjectResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

DeleteProjectResponse406Headers the declared response headers of an HTTP 406 response for DeleteProject

type DeleteProjectResponse429Headers

type DeleteProjectResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

DeleteProjectResponse429Headers the declared response headers of an HTTP 429 response for DeleteProject

type DeleteProjectResponse503Headers

type DeleteProjectResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

DeleteProjectResponse503Headers the declared response headers of an HTTP 503 response for DeleteProject

type DeleteProjectResponseDefaultHeaders

type DeleteProjectResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

DeleteProjectResponseDefaultHeaders the declared response headers of an HTTP default response for DeleteProject

type Deployment

type Deployment struct {
	// ErrorClass Where to address the failure; see the operation description for the action for each class. Null when no failure category is available. More values may be added; for unknown values, show error_message and contact support instead of automatically retrying.
	//
	// Example: configuration
	ErrorClass nullable.Nullable[DeploymentErrorClass] `json:"error_class"`

	// ErrorMessage Human-readable reason for a deployment failure; null unless the deployment failed.
	//
	// Example: Missing environment variable VITE_API_URL
	ErrorMessage nullable.Nullable[string] `json:"error_message"`

	// Id Deployment ID.
	//
	// Example: c3d4e5f6-a7b8-9012-cdef-345678901234
	Id string `json:"id"`

	// Status Deployment progress. running means the deployment was accepted and has not reported completion. completed means the deployment succeeded and url is set. unknown means the deployment exists but its workflow state has no recognized public mapping; it confirms neither success nor failure. Poll again with backoff and a bounded timeout, then report an indeterminate result if it persists. Unknown or mismatched deployment IDs return HTTP 404. Clients must tolerate new values.
	//
	// Example: completed
	Status DeploymentStatus `json:"status"`

	// Url URL produced by this successful deployment; null until this deployment succeeds, even when an older version is published.
	//
	// Example: https://acme-landing-page.lovable.app
	Url nullable.Nullable[string] `json:"url"`
}

Deployment defines model for Deployment.

type DeploymentErrorClass

type DeploymentErrorClass string

DeploymentErrorClass Where to address the failure; see the operation description for the action for each class. Null when no failure category is available. More values may be added; for unknown values, show error_message and contact support instead of automatically retrying.

Example: configuration

const (
	DeploymentErrorClassCode          DeploymentErrorClass = "code"
	DeploymentErrorClassConfiguration DeploymentErrorClass = "configuration"
	DeploymentErrorClassData          DeploymentErrorClass = "data"
	DeploymentErrorClassIntegration   DeploymentErrorClass = "integration"
	DeploymentErrorClassInternal      DeploymentErrorClass = "internal"
	DeploymentErrorClassPolicy        DeploymentErrorClass = "policy"
	DeploymentErrorClassTransient     DeploymentErrorClass = "transient"
)

Defines values for DeploymentErrorClass.

func (DeploymentErrorClass) Valid

func (e DeploymentErrorClass) Valid() bool

Valid indicates whether the value is a known member of the DeploymentErrorClass enum.

type DeploymentStatus

type DeploymentStatus string

DeploymentStatus Deployment progress. running means the deployment was accepted and has not reported completion. completed means the deployment succeeded and url is set. unknown means the deployment exists but its workflow state has no recognized public mapping; it confirms neither success nor failure. Poll again with backoff and a bounded timeout, then report an indeterminate result if it persists. Unknown or mismatched deployment IDs return HTTP 404. Clients must tolerate new values.

Example: completed

const (
	DeploymentStatusCompleted DeploymentStatus = "completed"
	DeploymentStatusError     DeploymentStatus = "error"
	DeploymentStatusRunning   DeploymentStatus = "running"
	DeploymentStatusUnknown   DeploymentStatus = "unknown"
)

Defines values for DeploymentStatus.

func (DeploymentStatus) Valid

func (e DeploymentStatus) Valid() bool

Valid indicates whether the value is a known member of the DeploymentStatus enum.

type ErrorResponse

type ErrorResponse struct {
	// Detail Human-readable guidance for this occurrence, or null when inapplicable. For invalid_request this is validation failed; the actionable field messages are in errors. Other error types may provide guidance such as re-authentication instructions.
	//
	// Example: validation failed
	Detail nullable.Nullable[string] `json:"detail"`

	// Errors Field-level error details on validation failures; null when no field-level details apply.
	//
	// Example: [{"location":"body.workspace_id","message":"expected string"}]
	Errors nullable.Nullable[[]struct {
		// Location Request field that failed validation, such as body.workspace_id or query.limit; null when the failure has no field location.
		//
		// Example: body.workspace_id
		Location nullable.Nullable[string] `json:"location"`

		// Message Explanation of the validation failure for this field.
		//
		// Example: expected string
		Message string `json:"message"`
	}] `json:"errors"`

	// Props Error-specific metadata, or null when inapplicable. Keys depend on type: security_critical_findings includes finding_refs (an array of strings); retired_version and retired_beta may include migration_url (a string URL). Ignore unrecognized keys.
	//
	// Example: {"finding_refs":["supabase/finding-1"]}
	Props nullable.Nullable[map[string]interface{}] `json:"props"`

	// RequestId Identifier of this request, echoed from the X-Request-Id response header. Quote it when reporting a failure.
	//
	// Example: 4bf92f3577b34da6a3ce929d0e0e4736
	RequestId string `json:"request_id"`

	// Status HTTP status code, echoed in the body.
	//
	// Example: 429
	Status int `json:"status"`

	// Title Human-readable error summary. The wording may change; use type to decide how your application handles the error.
	//
	// Example: Too Many Requests
	Title string `json:"title"`

	// Type Stable machine-readable error type: a snake_case token such as rate_limited, not a URI. Clients may switch on it; new types are additive.
	//
	// Example: rate_limited
	Type string `json:"type"`
}

ErrorResponse Common error response. An operation may document a different response body for a specific status code, such as per-member results for a bulk credit-limit update.

type GetDeploymentParams

type GetDeploymentParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

GetDeploymentParams defines parameters for GetDeployment.

type GetDeploymentResponse

type GetDeploymentResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Deployment
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetDeploymentResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetDeploymentResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetDeploymentResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetDeploymentResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetDeploymentResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetDeploymentResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *GetDeploymentResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetDeploymentResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetDeploymentResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetDeploymentResponseDefaultHeaders
}

func ParseGetDeploymentResponse

func ParseGetDeploymentResponse(rsp *http.Response) (*GetDeploymentResponse, error)

ParseGetDeploymentResponse parses an HTTP response from a GetDeploymentWithResponse call

func (GetDeploymentResponse) ContentType

func (r GetDeploymentResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetDeploymentResponse) GetBody

func (r GetDeploymentResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetDeploymentResponse) GetJSON200

func (r GetDeploymentResponse) GetJSON200() *Deployment

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetDeploymentResponse) GetJSON400

func (r GetDeploymentResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetDeploymentResponse) GetJSON401

func (r GetDeploymentResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetDeploymentResponse) GetJSON402

func (r GetDeploymentResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetDeploymentResponse) GetJSON403

func (r GetDeploymentResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetDeploymentResponse) GetJSON404

func (r GetDeploymentResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetDeploymentResponse) GetJSON406

func (r GetDeploymentResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (GetDeploymentResponse) GetJSON429

func (r GetDeploymentResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetDeploymentResponse) GetJSON503

func (r GetDeploymentResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetDeploymentResponse) GetJSONDefault

func (r GetDeploymentResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetDeploymentResponse) Status

func (r GetDeploymentResponse) Status() string

Status returns HTTPResponse.Status

func (GetDeploymentResponse) StatusCode

func (r GetDeploymentResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDeploymentResponse200Headers

type GetDeploymentResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetDeploymentResponse200Headers the declared response headers of an HTTP 200 response for GetDeployment

type GetDeploymentResponse400Headers

type GetDeploymentResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetDeploymentResponse400Headers the declared response headers of an HTTP 400 response for GetDeployment

type GetDeploymentResponse401Headers

type GetDeploymentResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetDeploymentResponse401Headers the declared response headers of an HTTP 401 response for GetDeployment

type GetDeploymentResponse402Headers

type GetDeploymentResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetDeploymentResponse402Headers the declared response headers of an HTTP 402 response for GetDeployment

type GetDeploymentResponse403Headers

type GetDeploymentResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetDeploymentResponse403Headers the declared response headers of an HTTP 403 response for GetDeployment

type GetDeploymentResponse404Headers

type GetDeploymentResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetDeploymentResponse404Headers the declared response headers of an HTTP 404 response for GetDeployment

type GetDeploymentResponse406Headers

type GetDeploymentResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetDeploymentResponse406Headers the declared response headers of an HTTP 406 response for GetDeployment

type GetDeploymentResponse429Headers

type GetDeploymentResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetDeploymentResponse429Headers the declared response headers of an HTTP 429 response for GetDeployment

type GetDeploymentResponse503Headers

type GetDeploymentResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetDeploymentResponse503Headers the declared response headers of an HTTP 503 response for GetDeployment

type GetDeploymentResponseDefaultHeaders

type GetDeploymentResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetDeploymentResponseDefaultHeaders the declared response headers of an HTTP default response for GetDeployment

type GetProjectAnalyticsBreakdownsParams

type GetProjectAnalyticsBreakdownsParams struct {
	// StartsAt Start of the time range as an RFC 3339 timestamp, such as 2026-04-01T00:00:00Z. Any offset is accepted and converted to UTC; the range covers complete UTC calendar dates from the UTC date of starts_at through the UTC date of ends_at.
	StartsAt time.Time `form:"starts_at" json:"starts_at"`

	// EndsAt End of the time range as an RFC 3339 timestamp, such as 2026-04-08T00:00:00Z. Any offset is accepted and converted to UTC; the range covers complete UTC calendar dates from the UTC date of starts_at through the UTC date of ends_at.
	EndsAt time.Time `form:"ends_at" json:"ends_at"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

GetProjectAnalyticsBreakdownsParams defines parameters for GetProjectAnalyticsBreakdowns.

type GetProjectAnalyticsBreakdownsResponse

type GetProjectAnalyticsBreakdownsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ProjectAnalyticsBreakdowns
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetProjectAnalyticsBreakdownsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetProjectAnalyticsBreakdownsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetProjectAnalyticsBreakdownsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetProjectAnalyticsBreakdownsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetProjectAnalyticsBreakdownsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetProjectAnalyticsBreakdownsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *GetProjectAnalyticsBreakdownsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetProjectAnalyticsBreakdownsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetProjectAnalyticsBreakdownsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetProjectAnalyticsBreakdownsResponseDefaultHeaders
}

func ParseGetProjectAnalyticsBreakdownsResponse

func ParseGetProjectAnalyticsBreakdownsResponse(rsp *http.Response) (*GetProjectAnalyticsBreakdownsResponse, error)

ParseGetProjectAnalyticsBreakdownsResponse parses an HTTP response from a GetProjectAnalyticsBreakdownsWithResponse call

func (GetProjectAnalyticsBreakdownsResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetProjectAnalyticsBreakdownsResponse) GetBody

GetBody returns the raw response body bytes

func (GetProjectAnalyticsBreakdownsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetProjectAnalyticsBreakdownsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetProjectAnalyticsBreakdownsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetProjectAnalyticsBreakdownsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetProjectAnalyticsBreakdownsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetProjectAnalyticsBreakdownsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetProjectAnalyticsBreakdownsResponse) GetJSON406

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (GetProjectAnalyticsBreakdownsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetProjectAnalyticsBreakdownsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetProjectAnalyticsBreakdownsResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetProjectAnalyticsBreakdownsResponse) Status

Status returns HTTPResponse.Status

func (GetProjectAnalyticsBreakdownsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetProjectAnalyticsBreakdownsResponse200Headers

type GetProjectAnalyticsBreakdownsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsBreakdownsResponse200Headers the declared response headers of an HTTP 200 response for GetProjectAnalyticsBreakdowns

type GetProjectAnalyticsBreakdownsResponse400Headers

type GetProjectAnalyticsBreakdownsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsBreakdownsResponse400Headers the declared response headers of an HTTP 400 response for GetProjectAnalyticsBreakdowns

type GetProjectAnalyticsBreakdownsResponse401Headers

type GetProjectAnalyticsBreakdownsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsBreakdownsResponse401Headers the declared response headers of an HTTP 401 response for GetProjectAnalyticsBreakdowns

type GetProjectAnalyticsBreakdownsResponse402Headers

type GetProjectAnalyticsBreakdownsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsBreakdownsResponse402Headers the declared response headers of an HTTP 402 response for GetProjectAnalyticsBreakdowns

type GetProjectAnalyticsBreakdownsResponse403Headers

type GetProjectAnalyticsBreakdownsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsBreakdownsResponse403Headers the declared response headers of an HTTP 403 response for GetProjectAnalyticsBreakdowns

type GetProjectAnalyticsBreakdownsResponse404Headers

type GetProjectAnalyticsBreakdownsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsBreakdownsResponse404Headers the declared response headers of an HTTP 404 response for GetProjectAnalyticsBreakdowns

type GetProjectAnalyticsBreakdownsResponse406Headers

type GetProjectAnalyticsBreakdownsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsBreakdownsResponse406Headers the declared response headers of an HTTP 406 response for GetProjectAnalyticsBreakdowns

type GetProjectAnalyticsBreakdownsResponse429Headers

type GetProjectAnalyticsBreakdownsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsBreakdownsResponse429Headers the declared response headers of an HTTP 429 response for GetProjectAnalyticsBreakdowns

type GetProjectAnalyticsBreakdownsResponse503Headers

type GetProjectAnalyticsBreakdownsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsBreakdownsResponse503Headers the declared response headers of an HTTP 503 response for GetProjectAnalyticsBreakdowns

type GetProjectAnalyticsBreakdownsResponseDefaultHeaders

type GetProjectAnalyticsBreakdownsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsBreakdownsResponseDefaultHeaders the declared response headers of an HTTP default response for GetProjectAnalyticsBreakdowns

type GetProjectAnalyticsParams

type GetProjectAnalyticsParams struct {
	// StartsAt Start of the time range as an RFC 3339 timestamp, such as 2026-04-01T00:00:00Z. Any offset is accepted and converted to UTC before the range is applied.
	StartsAt time.Time `form:"starts_at" json:"starts_at"`

	// EndsAt End of the time range as an RFC 3339 timestamp, such as 2026-04-08T00:00:00Z. Any offset is accepted and converted to UTC before the range is applied.
	EndsAt time.Time `form:"ends_at" json:"ends_at"`

	// Granularity Time-bucket size: hourly or daily. Defaults to daily when omitted; any other value returns 400. Daily buckets cover complete UTC calendar dates from the UTC date of starts_at through the UTC date of ends_at; hourly buckets use the supplied instants inclusively and support at most 31 days.
	Granularity *GetProjectAnalyticsParamsGranularity `form:"granularity,omitempty" json:"granularity,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

GetProjectAnalyticsParams defines parameters for GetProjectAnalytics.

type GetProjectAnalyticsParamsGranularity

type GetProjectAnalyticsParamsGranularity string

GetProjectAnalyticsParamsGranularity defines parameters for GetProjectAnalytics.

const (
	GetProjectAnalyticsParamsGranularityDaily  GetProjectAnalyticsParamsGranularity = "daily"
	GetProjectAnalyticsParamsGranularityHourly GetProjectAnalyticsParamsGranularity = "hourly"
)

Defines values for GetProjectAnalyticsParamsGranularity.

func (GetProjectAnalyticsParamsGranularity) Valid

Valid indicates whether the value is a known member of the GetProjectAnalyticsParamsGranularity enum.

type GetProjectAnalyticsResponse

type GetProjectAnalyticsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ProjectAnalytics
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetProjectAnalyticsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetProjectAnalyticsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetProjectAnalyticsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetProjectAnalyticsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetProjectAnalyticsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetProjectAnalyticsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *GetProjectAnalyticsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetProjectAnalyticsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetProjectAnalyticsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetProjectAnalyticsResponseDefaultHeaders
}

func ParseGetProjectAnalyticsResponse

func ParseGetProjectAnalyticsResponse(rsp *http.Response) (*GetProjectAnalyticsResponse, error)

ParseGetProjectAnalyticsResponse parses an HTTP response from a GetProjectAnalyticsWithResponse call

func (GetProjectAnalyticsResponse) ContentType

func (r GetProjectAnalyticsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetProjectAnalyticsResponse) GetBody

func (r GetProjectAnalyticsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetProjectAnalyticsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetProjectAnalyticsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetProjectAnalyticsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetProjectAnalyticsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetProjectAnalyticsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetProjectAnalyticsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetProjectAnalyticsResponse) GetJSON406

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (GetProjectAnalyticsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetProjectAnalyticsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetProjectAnalyticsResponse) GetJSONDefault

func (r GetProjectAnalyticsResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetProjectAnalyticsResponse) Status

Status returns HTTPResponse.Status

func (GetProjectAnalyticsResponse) StatusCode

func (r GetProjectAnalyticsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectAnalyticsResponse200Headers

type GetProjectAnalyticsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsResponse200Headers the declared response headers of an HTTP 200 response for GetProjectAnalytics

type GetProjectAnalyticsResponse400Headers

type GetProjectAnalyticsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsResponse400Headers the declared response headers of an HTTP 400 response for GetProjectAnalytics

type GetProjectAnalyticsResponse401Headers

type GetProjectAnalyticsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsResponse401Headers the declared response headers of an HTTP 401 response for GetProjectAnalytics

type GetProjectAnalyticsResponse402Headers

type GetProjectAnalyticsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsResponse402Headers the declared response headers of an HTTP 402 response for GetProjectAnalytics

type GetProjectAnalyticsResponse403Headers

type GetProjectAnalyticsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsResponse403Headers the declared response headers of an HTTP 403 response for GetProjectAnalytics

type GetProjectAnalyticsResponse404Headers

type GetProjectAnalyticsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsResponse404Headers the declared response headers of an HTTP 404 response for GetProjectAnalytics

type GetProjectAnalyticsResponse406Headers

type GetProjectAnalyticsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsResponse406Headers the declared response headers of an HTTP 406 response for GetProjectAnalytics

type GetProjectAnalyticsResponse429Headers

type GetProjectAnalyticsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsResponse429Headers the declared response headers of an HTTP 429 response for GetProjectAnalytics

type GetProjectAnalyticsResponse503Headers

type GetProjectAnalyticsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsResponse503Headers the declared response headers of an HTTP 503 response for GetProjectAnalytics

type GetProjectAnalyticsResponseDefaultHeaders

type GetProjectAnalyticsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectAnalyticsResponseDefaultHeaders the declared response headers of an HTTP default response for GetProjectAnalytics

type GetProjectParams

type GetProjectParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

GetProjectParams defines parameters for GetProject.

type GetProjectRealtimeAnalyticsParams

type GetProjectRealtimeAnalyticsParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

GetProjectRealtimeAnalyticsParams defines parameters for GetProjectRealtimeAnalytics.

type GetProjectRealtimeAnalyticsResponse

type GetProjectRealtimeAnalyticsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ProjectRealtimeAnalytics
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetProjectRealtimeAnalyticsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetProjectRealtimeAnalyticsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetProjectRealtimeAnalyticsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetProjectRealtimeAnalyticsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetProjectRealtimeAnalyticsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetProjectRealtimeAnalyticsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *GetProjectRealtimeAnalyticsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetProjectRealtimeAnalyticsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetProjectRealtimeAnalyticsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetProjectRealtimeAnalyticsResponseDefaultHeaders
}

func ParseGetProjectRealtimeAnalyticsResponse

func ParseGetProjectRealtimeAnalyticsResponse(rsp *http.Response) (*GetProjectRealtimeAnalyticsResponse, error)

ParseGetProjectRealtimeAnalyticsResponse parses an HTTP response from a GetProjectRealtimeAnalyticsWithResponse call

func (GetProjectRealtimeAnalyticsResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetProjectRealtimeAnalyticsResponse) GetBody

GetBody returns the raw response body bytes

func (GetProjectRealtimeAnalyticsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetProjectRealtimeAnalyticsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetProjectRealtimeAnalyticsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetProjectRealtimeAnalyticsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetProjectRealtimeAnalyticsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetProjectRealtimeAnalyticsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetProjectRealtimeAnalyticsResponse) GetJSON406

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (GetProjectRealtimeAnalyticsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetProjectRealtimeAnalyticsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetProjectRealtimeAnalyticsResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetProjectRealtimeAnalyticsResponse) Status

Status returns HTTPResponse.Status

func (GetProjectRealtimeAnalyticsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetProjectRealtimeAnalyticsResponse200Headers

type GetProjectRealtimeAnalyticsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectRealtimeAnalyticsResponse200Headers the declared response headers of an HTTP 200 response for GetProjectRealtimeAnalytics

type GetProjectRealtimeAnalyticsResponse400Headers

type GetProjectRealtimeAnalyticsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectRealtimeAnalyticsResponse400Headers the declared response headers of an HTTP 400 response for GetProjectRealtimeAnalytics

type GetProjectRealtimeAnalyticsResponse401Headers

type GetProjectRealtimeAnalyticsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectRealtimeAnalyticsResponse401Headers the declared response headers of an HTTP 401 response for GetProjectRealtimeAnalytics

type GetProjectRealtimeAnalyticsResponse402Headers

type GetProjectRealtimeAnalyticsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectRealtimeAnalyticsResponse402Headers the declared response headers of an HTTP 402 response for GetProjectRealtimeAnalytics

type GetProjectRealtimeAnalyticsResponse403Headers

type GetProjectRealtimeAnalyticsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectRealtimeAnalyticsResponse403Headers the declared response headers of an HTTP 403 response for GetProjectRealtimeAnalytics

type GetProjectRealtimeAnalyticsResponse404Headers

type GetProjectRealtimeAnalyticsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectRealtimeAnalyticsResponse404Headers the declared response headers of an HTTP 404 response for GetProjectRealtimeAnalytics

type GetProjectRealtimeAnalyticsResponse406Headers

type GetProjectRealtimeAnalyticsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectRealtimeAnalyticsResponse406Headers the declared response headers of an HTTP 406 response for GetProjectRealtimeAnalytics

type GetProjectRealtimeAnalyticsResponse429Headers

type GetProjectRealtimeAnalyticsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectRealtimeAnalyticsResponse429Headers the declared response headers of an HTTP 429 response for GetProjectRealtimeAnalytics

type GetProjectRealtimeAnalyticsResponse503Headers

type GetProjectRealtimeAnalyticsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectRealtimeAnalyticsResponse503Headers the declared response headers of an HTTP 503 response for GetProjectRealtimeAnalytics

type GetProjectRealtimeAnalyticsResponseDefaultHeaders

type GetProjectRealtimeAnalyticsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectRealtimeAnalyticsResponseDefaultHeaders the declared response headers of an HTTP default response for GetProjectRealtimeAnalytics

type GetProjectResponse

type GetProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Project
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetProjectResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetProjectResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetProjectResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetProjectResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetProjectResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetProjectResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *GetProjectResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetProjectResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetProjectResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetProjectResponseDefaultHeaders
}

func ParseGetProjectResponse

func ParseGetProjectResponse(rsp *http.Response) (*GetProjectResponse, error)

ParseGetProjectResponse parses an HTTP response from a GetProjectWithResponse call

func (GetProjectResponse) ContentType

func (r GetProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetProjectResponse) GetBody

func (r GetProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetProjectResponse) GetJSON200

func (r GetProjectResponse) GetJSON200() *Project

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetProjectResponse) GetJSON400

func (r GetProjectResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetProjectResponse) GetJSON401

func (r GetProjectResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetProjectResponse) GetJSON402

func (r GetProjectResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetProjectResponse) GetJSON403

func (r GetProjectResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetProjectResponse) GetJSON404

func (r GetProjectResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetProjectResponse) GetJSON406

func (r GetProjectResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (GetProjectResponse) GetJSON429

func (r GetProjectResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetProjectResponse) GetJSON503

func (r GetProjectResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetProjectResponse) GetJSONDefault

func (r GetProjectResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetProjectResponse) Status

func (r GetProjectResponse) Status() string

Status returns HTTPResponse.Status

func (GetProjectResponse) StatusCode

func (r GetProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetProjectResponse200Headers

type GetProjectResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectResponse200Headers the declared response headers of an HTTP 200 response for GetProject

type GetProjectResponse400Headers

type GetProjectResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectResponse400Headers the declared response headers of an HTTP 400 response for GetProject

type GetProjectResponse401Headers

type GetProjectResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectResponse401Headers the declared response headers of an HTTP 401 response for GetProject

type GetProjectResponse402Headers

type GetProjectResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectResponse402Headers the declared response headers of an HTTP 402 response for GetProject

type GetProjectResponse403Headers

type GetProjectResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectResponse403Headers the declared response headers of an HTTP 403 response for GetProject

type GetProjectResponse404Headers

type GetProjectResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectResponse404Headers the declared response headers of an HTTP 404 response for GetProject

type GetProjectResponse406Headers

type GetProjectResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectResponse406Headers the declared response headers of an HTTP 406 response for GetProject

type GetProjectResponse429Headers

type GetProjectResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectResponse429Headers the declared response headers of an HTTP 429 response for GetProject

type GetProjectResponse503Headers

type GetProjectResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectResponse503Headers the declared response headers of an HTTP 503 response for GetProject

type GetProjectResponseDefaultHeaders

type GetProjectResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetProjectResponseDefaultHeaders the declared response headers of an HTTP default response for GetProject

type GetSecurityInsightsParams

type GetSecurityInsightsParams struct {
	// ReviewPriority Filter finding types by review priority. Repeat to include any of the specified priorities; omit to include all. Only findings are filtered; summary counts remain workspace-wide.
	ReviewPriority *[]GetSecurityInsightsParamsReviewPriority `form:"review_priority,omitempty" json:"review_priority,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

GetSecurityInsightsParams defines parameters for GetSecurityInsights.

type GetSecurityInsightsParamsReviewPriority

type GetSecurityInsightsParamsReviewPriority string

GetSecurityInsightsParamsReviewPriority defines parameters for GetSecurityInsights.

const (
	GetSecurityInsightsParamsReviewPriorityNeedsReview       GetSecurityInsightsParamsReviewPriority = "needs_review"
	GetSecurityInsightsParamsReviewPriorityNoReviewNeeded    GetSecurityInsightsParamsReviewPriority = "no_review_needed"
	GetSecurityInsightsParamsReviewPriorityReviewRecommended GetSecurityInsightsParamsReviewPriority = "review_recommended"
)

Defines values for GetSecurityInsightsParamsReviewPriority.

func (GetSecurityInsightsParamsReviewPriority) Valid

Valid indicates whether the value is a known member of the GetSecurityInsightsParamsReviewPriority enum.

type GetSecurityInsightsResponse

type GetSecurityInsightsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorkspaceInsights
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetSecurityInsightsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetSecurityInsightsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetSecurityInsightsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetSecurityInsightsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetSecurityInsightsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetSecurityInsightsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *GetSecurityInsightsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetSecurityInsightsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetSecurityInsightsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetSecurityInsightsResponseDefaultHeaders
}

func ParseGetSecurityInsightsResponse

func ParseGetSecurityInsightsResponse(rsp *http.Response) (*GetSecurityInsightsResponse, error)

ParseGetSecurityInsightsResponse parses an HTTP response from a GetSecurityInsightsWithResponse call

func (GetSecurityInsightsResponse) ContentType

func (r GetSecurityInsightsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSecurityInsightsResponse) GetBody

func (r GetSecurityInsightsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSecurityInsightsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSecurityInsightsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetSecurityInsightsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetSecurityInsightsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetSecurityInsightsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetSecurityInsightsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetSecurityInsightsResponse) GetJSON406

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (GetSecurityInsightsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetSecurityInsightsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetSecurityInsightsResponse) GetJSONDefault

func (r GetSecurityInsightsResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetSecurityInsightsResponse) Status

Status returns HTTPResponse.Status

func (GetSecurityInsightsResponse) StatusCode

func (r GetSecurityInsightsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSecurityInsightsResponse200Headers

type GetSecurityInsightsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityInsightsResponse200Headers the declared response headers of an HTTP 200 response for GetSecurityInsights

type GetSecurityInsightsResponse400Headers

type GetSecurityInsightsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityInsightsResponse400Headers the declared response headers of an HTTP 400 response for GetSecurityInsights

type GetSecurityInsightsResponse401Headers

type GetSecurityInsightsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityInsightsResponse401Headers the declared response headers of an HTTP 401 response for GetSecurityInsights

type GetSecurityInsightsResponse402Headers

type GetSecurityInsightsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityInsightsResponse402Headers the declared response headers of an HTTP 402 response for GetSecurityInsights

type GetSecurityInsightsResponse403Headers

type GetSecurityInsightsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityInsightsResponse403Headers the declared response headers of an HTTP 403 response for GetSecurityInsights

type GetSecurityInsightsResponse404Headers

type GetSecurityInsightsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityInsightsResponse404Headers the declared response headers of an HTTP 404 response for GetSecurityInsights

type GetSecurityInsightsResponse406Headers

type GetSecurityInsightsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityInsightsResponse406Headers the declared response headers of an HTTP 406 response for GetSecurityInsights

type GetSecurityInsightsResponse429Headers

type GetSecurityInsightsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityInsightsResponse429Headers the declared response headers of an HTTP 429 response for GetSecurityInsights

type GetSecurityInsightsResponse503Headers

type GetSecurityInsightsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityInsightsResponse503Headers the declared response headers of an HTTP 503 response for GetSecurityInsights

type GetSecurityInsightsResponseDefaultHeaders

type GetSecurityInsightsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityInsightsResponseDefaultHeaders the declared response headers of an HTTP default response for GetSecurityInsights

type GetSecurityScanParams

type GetSecurityScanParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

GetSecurityScanParams defines parameters for GetSecurityScan.

type GetSecurityScanResponse

type GetSecurityScanResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SecurityScan
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetSecurityScanResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetSecurityScanResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetSecurityScanResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetSecurityScanResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetSecurityScanResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetSecurityScanResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *GetSecurityScanResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetSecurityScanResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetSecurityScanResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetSecurityScanResponseDefaultHeaders
}

func ParseGetSecurityScanResponse

func ParseGetSecurityScanResponse(rsp *http.Response) (*GetSecurityScanResponse, error)

ParseGetSecurityScanResponse parses an HTTP response from a GetSecurityScanWithResponse call

func (GetSecurityScanResponse) ContentType

func (r GetSecurityScanResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetSecurityScanResponse) GetBody

func (r GetSecurityScanResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetSecurityScanResponse) GetJSON200

func (r GetSecurityScanResponse) GetJSON200() *SecurityScan

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetSecurityScanResponse) GetJSON400

func (r GetSecurityScanResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetSecurityScanResponse) GetJSON401

func (r GetSecurityScanResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetSecurityScanResponse) GetJSON402

func (r GetSecurityScanResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetSecurityScanResponse) GetJSON403

func (r GetSecurityScanResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetSecurityScanResponse) GetJSON404

func (r GetSecurityScanResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetSecurityScanResponse) GetJSON406

func (r GetSecurityScanResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (GetSecurityScanResponse) GetJSON429

func (r GetSecurityScanResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetSecurityScanResponse) GetJSON503

func (r GetSecurityScanResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetSecurityScanResponse) GetJSONDefault

func (r GetSecurityScanResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetSecurityScanResponse) Status

func (r GetSecurityScanResponse) Status() string

Status returns HTTPResponse.Status

func (GetSecurityScanResponse) StatusCode

func (r GetSecurityScanResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSecurityScanResponse200Headers

type GetSecurityScanResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityScanResponse200Headers the declared response headers of an HTTP 200 response for GetSecurityScan

type GetSecurityScanResponse400Headers

type GetSecurityScanResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityScanResponse400Headers the declared response headers of an HTTP 400 response for GetSecurityScan

type GetSecurityScanResponse401Headers

type GetSecurityScanResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityScanResponse401Headers the declared response headers of an HTTP 401 response for GetSecurityScan

type GetSecurityScanResponse402Headers

type GetSecurityScanResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityScanResponse402Headers the declared response headers of an HTTP 402 response for GetSecurityScan

type GetSecurityScanResponse403Headers

type GetSecurityScanResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityScanResponse403Headers the declared response headers of an HTTP 403 response for GetSecurityScan

type GetSecurityScanResponse404Headers

type GetSecurityScanResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityScanResponse404Headers the declared response headers of an HTTP 404 response for GetSecurityScan

type GetSecurityScanResponse406Headers

type GetSecurityScanResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityScanResponse406Headers the declared response headers of an HTTP 406 response for GetSecurityScan

type GetSecurityScanResponse429Headers

type GetSecurityScanResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityScanResponse429Headers the declared response headers of an HTTP 429 response for GetSecurityScan

type GetSecurityScanResponse503Headers

type GetSecurityScanResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityScanResponse503Headers the declared response headers of an HTTP 503 response for GetSecurityScan

type GetSecurityScanResponseDefaultHeaders

type GetSecurityScanResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetSecurityScanResponseDefaultHeaders the declared response headers of an HTTP default response for GetSecurityScan

type GetWorkspaceAnalyticsParams

type GetWorkspaceAnalyticsParams struct {
	// StartsAt Start of the time range as an RFC 3339 timestamp, such as 2026-07-01T00:00:00Z. Any offset is accepted and converted to UTC before the range is applied.
	StartsAt time.Time `form:"starts_at" json:"starts_at"`

	// EndsAt End of the time range as an RFC 3339 timestamp, such as 2026-07-08T00:00:00Z. Any offset is accepted and converted to UTC before the range is applied.
	EndsAt time.Time `form:"ends_at" json:"ends_at"`

	// Granularity Time-bucket size: hourly or daily. Defaults to daily when omitted; any other value returns 400. Daily buckets cover complete UTC calendar dates from the UTC date of starts_at through the UTC date of ends_at; hourly buckets use the supplied instants inclusively and support at most 31 days.
	Granularity *GetWorkspaceAnalyticsParamsGranularity `form:"granularity,omitempty" json:"granularity,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

GetWorkspaceAnalyticsParams defines parameters for GetWorkspaceAnalytics.

type GetWorkspaceAnalyticsParamsGranularity

type GetWorkspaceAnalyticsParamsGranularity string

GetWorkspaceAnalyticsParamsGranularity defines parameters for GetWorkspaceAnalytics.

const (
	GetWorkspaceAnalyticsParamsGranularityDaily  GetWorkspaceAnalyticsParamsGranularity = "daily"
	GetWorkspaceAnalyticsParamsGranularityHourly GetWorkspaceAnalyticsParamsGranularity = "hourly"
)

Defines values for GetWorkspaceAnalyticsParamsGranularity.

func (GetWorkspaceAnalyticsParamsGranularity) Valid

Valid indicates whether the value is a known member of the GetWorkspaceAnalyticsParamsGranularity enum.

type GetWorkspaceAnalyticsResponse

type GetWorkspaceAnalyticsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorkspaceAnalytics
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetWorkspaceAnalyticsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetWorkspaceAnalyticsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetWorkspaceAnalyticsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetWorkspaceAnalyticsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetWorkspaceAnalyticsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetWorkspaceAnalyticsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *GetWorkspaceAnalyticsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetWorkspaceAnalyticsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetWorkspaceAnalyticsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetWorkspaceAnalyticsResponseDefaultHeaders
}

func ParseGetWorkspaceAnalyticsResponse

func ParseGetWorkspaceAnalyticsResponse(rsp *http.Response) (*GetWorkspaceAnalyticsResponse, error)

ParseGetWorkspaceAnalyticsResponse parses an HTTP response from a GetWorkspaceAnalyticsWithResponse call

func (GetWorkspaceAnalyticsResponse) ContentType

func (r GetWorkspaceAnalyticsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWorkspaceAnalyticsResponse) GetBody

func (r GetWorkspaceAnalyticsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWorkspaceAnalyticsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWorkspaceAnalyticsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetWorkspaceAnalyticsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetWorkspaceAnalyticsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetWorkspaceAnalyticsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetWorkspaceAnalyticsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetWorkspaceAnalyticsResponse) GetJSON406

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (GetWorkspaceAnalyticsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetWorkspaceAnalyticsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetWorkspaceAnalyticsResponse) GetJSONDefault

func (r GetWorkspaceAnalyticsResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetWorkspaceAnalyticsResponse) Status

Status returns HTTPResponse.Status

func (GetWorkspaceAnalyticsResponse) StatusCode

func (r GetWorkspaceAnalyticsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkspaceAnalyticsResponse200Headers

type GetWorkspaceAnalyticsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceAnalyticsResponse200Headers the declared response headers of an HTTP 200 response for GetWorkspaceAnalytics

type GetWorkspaceAnalyticsResponse400Headers

type GetWorkspaceAnalyticsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceAnalyticsResponse400Headers the declared response headers of an HTTP 400 response for GetWorkspaceAnalytics

type GetWorkspaceAnalyticsResponse401Headers

type GetWorkspaceAnalyticsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceAnalyticsResponse401Headers the declared response headers of an HTTP 401 response for GetWorkspaceAnalytics

type GetWorkspaceAnalyticsResponse402Headers

type GetWorkspaceAnalyticsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceAnalyticsResponse402Headers the declared response headers of an HTTP 402 response for GetWorkspaceAnalytics

type GetWorkspaceAnalyticsResponse403Headers

type GetWorkspaceAnalyticsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceAnalyticsResponse403Headers the declared response headers of an HTTP 403 response for GetWorkspaceAnalytics

type GetWorkspaceAnalyticsResponse404Headers

type GetWorkspaceAnalyticsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceAnalyticsResponse404Headers the declared response headers of an HTTP 404 response for GetWorkspaceAnalytics

type GetWorkspaceAnalyticsResponse406Headers

type GetWorkspaceAnalyticsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceAnalyticsResponse406Headers the declared response headers of an HTTP 406 response for GetWorkspaceAnalytics

type GetWorkspaceAnalyticsResponse429Headers

type GetWorkspaceAnalyticsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceAnalyticsResponse429Headers the declared response headers of an HTTP 429 response for GetWorkspaceAnalytics

type GetWorkspaceAnalyticsResponse503Headers

type GetWorkspaceAnalyticsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceAnalyticsResponse503Headers the declared response headers of an HTTP 503 response for GetWorkspaceAnalytics

type GetWorkspaceAnalyticsResponseDefaultHeaders

type GetWorkspaceAnalyticsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceAnalyticsResponseDefaultHeaders the declared response headers of an HTTP default response for GetWorkspaceAnalytics

type GetWorkspaceMemberParams

type GetWorkspaceMemberParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

GetWorkspaceMemberParams defines parameters for GetWorkspaceMember.

type GetWorkspaceMemberResponse

type GetWorkspaceMemberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorkspaceMemberDetails
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetWorkspaceMemberResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetWorkspaceMemberResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetWorkspaceMemberResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetWorkspaceMemberResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetWorkspaceMemberResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetWorkspaceMemberResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *GetWorkspaceMemberResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetWorkspaceMemberResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetWorkspaceMemberResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetWorkspaceMemberResponseDefaultHeaders
}

func ParseGetWorkspaceMemberResponse

func ParseGetWorkspaceMemberResponse(rsp *http.Response) (*GetWorkspaceMemberResponse, error)

ParseGetWorkspaceMemberResponse parses an HTTP response from a GetWorkspaceMemberWithResponse call

func (GetWorkspaceMemberResponse) ContentType

func (r GetWorkspaceMemberResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWorkspaceMemberResponse) GetBody

func (r GetWorkspaceMemberResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWorkspaceMemberResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWorkspaceMemberResponse) GetJSON400

func (r GetWorkspaceMemberResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetWorkspaceMemberResponse) GetJSON401

func (r GetWorkspaceMemberResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetWorkspaceMemberResponse) GetJSON402

func (r GetWorkspaceMemberResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetWorkspaceMemberResponse) GetJSON403

func (r GetWorkspaceMemberResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetWorkspaceMemberResponse) GetJSON404

func (r GetWorkspaceMemberResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetWorkspaceMemberResponse) GetJSON406

func (r GetWorkspaceMemberResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (GetWorkspaceMemberResponse) GetJSON429

func (r GetWorkspaceMemberResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetWorkspaceMemberResponse) GetJSON503

func (r GetWorkspaceMemberResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetWorkspaceMemberResponse) GetJSONDefault

func (r GetWorkspaceMemberResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetWorkspaceMemberResponse) Status

Status returns HTTPResponse.Status

func (GetWorkspaceMemberResponse) StatusCode

func (r GetWorkspaceMemberResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkspaceMemberResponse200Headers

type GetWorkspaceMemberResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceMemberResponse200Headers the declared response headers of an HTTP 200 response for GetWorkspaceMember

type GetWorkspaceMemberResponse400Headers

type GetWorkspaceMemberResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceMemberResponse400Headers the declared response headers of an HTTP 400 response for GetWorkspaceMember

type GetWorkspaceMemberResponse401Headers

type GetWorkspaceMemberResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceMemberResponse401Headers the declared response headers of an HTTP 401 response for GetWorkspaceMember

type GetWorkspaceMemberResponse402Headers

type GetWorkspaceMemberResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceMemberResponse402Headers the declared response headers of an HTTP 402 response for GetWorkspaceMember

type GetWorkspaceMemberResponse403Headers

type GetWorkspaceMemberResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceMemberResponse403Headers the declared response headers of an HTTP 403 response for GetWorkspaceMember

type GetWorkspaceMemberResponse404Headers

type GetWorkspaceMemberResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceMemberResponse404Headers the declared response headers of an HTTP 404 response for GetWorkspaceMember

type GetWorkspaceMemberResponse406Headers

type GetWorkspaceMemberResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceMemberResponse406Headers the declared response headers of an HTTP 406 response for GetWorkspaceMember

type GetWorkspaceMemberResponse429Headers

type GetWorkspaceMemberResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceMemberResponse429Headers the declared response headers of an HTTP 429 response for GetWorkspaceMember

type GetWorkspaceMemberResponse503Headers

type GetWorkspaceMemberResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceMemberResponse503Headers the declared response headers of an HTTP 503 response for GetWorkspaceMember

type GetWorkspaceMemberResponseDefaultHeaders

type GetWorkspaceMemberResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceMemberResponseDefaultHeaders the declared response headers of an HTTP default response for GetWorkspaceMember

type GetWorkspaceParams

type GetWorkspaceParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

GetWorkspaceParams defines parameters for GetWorkspace.

type GetWorkspaceResponse

type GetWorkspaceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Workspace
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *GetWorkspaceResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *GetWorkspaceResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *GetWorkspaceResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *GetWorkspaceResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *GetWorkspaceResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *GetWorkspaceResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *GetWorkspaceResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *GetWorkspaceResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *GetWorkspaceResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *GetWorkspaceResponseDefaultHeaders
}

func ParseGetWorkspaceResponse

func ParseGetWorkspaceResponse(rsp *http.Response) (*GetWorkspaceResponse, error)

ParseGetWorkspaceResponse parses an HTTP response from a GetWorkspaceWithResponse call

func (GetWorkspaceResponse) ContentType

func (r GetWorkspaceResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (GetWorkspaceResponse) GetBody

func (r GetWorkspaceResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (GetWorkspaceResponse) GetJSON200

func (r GetWorkspaceResponse) GetJSON200() *Workspace

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (GetWorkspaceResponse) GetJSON400

func (r GetWorkspaceResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (GetWorkspaceResponse) GetJSON401

func (r GetWorkspaceResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (GetWorkspaceResponse) GetJSON402

func (r GetWorkspaceResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (GetWorkspaceResponse) GetJSON403

func (r GetWorkspaceResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (GetWorkspaceResponse) GetJSON404

func (r GetWorkspaceResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (GetWorkspaceResponse) GetJSON406

func (r GetWorkspaceResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (GetWorkspaceResponse) GetJSON429

func (r GetWorkspaceResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (GetWorkspaceResponse) GetJSON503

func (r GetWorkspaceResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (GetWorkspaceResponse) GetJSONDefault

func (r GetWorkspaceResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (GetWorkspaceResponse) Status

func (r GetWorkspaceResponse) Status() string

Status returns HTTPResponse.Status

func (GetWorkspaceResponse) StatusCode

func (r GetWorkspaceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetWorkspaceResponse200Headers

type GetWorkspaceResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceResponse200Headers the declared response headers of an HTTP 200 response for GetWorkspace

type GetWorkspaceResponse400Headers

type GetWorkspaceResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceResponse400Headers the declared response headers of an HTTP 400 response for GetWorkspace

type GetWorkspaceResponse401Headers

type GetWorkspaceResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceResponse401Headers the declared response headers of an HTTP 401 response for GetWorkspace

type GetWorkspaceResponse402Headers

type GetWorkspaceResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceResponse402Headers the declared response headers of an HTTP 402 response for GetWorkspace

type GetWorkspaceResponse403Headers

type GetWorkspaceResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceResponse403Headers the declared response headers of an HTTP 403 response for GetWorkspace

type GetWorkspaceResponse404Headers

type GetWorkspaceResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceResponse404Headers the declared response headers of an HTTP 404 response for GetWorkspace

type GetWorkspaceResponse406Headers

type GetWorkspaceResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceResponse406Headers the declared response headers of an HTTP 406 response for GetWorkspace

type GetWorkspaceResponse429Headers

type GetWorkspaceResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceResponse429Headers the declared response headers of an HTTP 429 response for GetWorkspace

type GetWorkspaceResponse503Headers

type GetWorkspaceResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceResponse503Headers the declared response headers of an HTTP 503 response for GetWorkspace

type GetWorkspaceResponseDefaultHeaders

type GetWorkspaceResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

GetWorkspaceResponseDefaultHeaders the declared response headers of an HTTP default response for GetWorkspace

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListPiiLabelsParams

type ListPiiLabelsParams struct {
	// Limit Maximum number of items to return per page.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

ListPiiLabelsParams defines parameters for ListPiiLabels.

type ListPiiLabelsResponse

type ListPiiLabelsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PiiLabelPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListPiiLabelsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListPiiLabelsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListPiiLabelsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *ListPiiLabelsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListPiiLabelsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListPiiLabelsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *ListPiiLabelsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListPiiLabelsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListPiiLabelsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListPiiLabelsResponseDefaultHeaders
}

func ParseListPiiLabelsResponse

func ParseListPiiLabelsResponse(rsp *http.Response) (*ListPiiLabelsResponse, error)

ParseListPiiLabelsResponse parses an HTTP response from a ListPiiLabelsWithResponse call

func (ListPiiLabelsResponse) ContentType

func (r ListPiiLabelsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListPiiLabelsResponse) GetBody

func (r ListPiiLabelsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListPiiLabelsResponse) GetJSON200

func (r ListPiiLabelsResponse) GetJSON200() *PiiLabelPage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListPiiLabelsResponse) GetJSON400

func (r ListPiiLabelsResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListPiiLabelsResponse) GetJSON401

func (r ListPiiLabelsResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListPiiLabelsResponse) GetJSON402

func (r ListPiiLabelsResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListPiiLabelsResponse) GetJSON403

func (r ListPiiLabelsResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListPiiLabelsResponse) GetJSON404

func (r ListPiiLabelsResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListPiiLabelsResponse) GetJSON406

func (r ListPiiLabelsResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (ListPiiLabelsResponse) GetJSON429

func (r ListPiiLabelsResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListPiiLabelsResponse) GetJSON503

func (r ListPiiLabelsResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListPiiLabelsResponse) GetJSONDefault

func (r ListPiiLabelsResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListPiiLabelsResponse) Status

func (r ListPiiLabelsResponse) Status() string

Status returns HTTPResponse.Status

func (ListPiiLabelsResponse) StatusCode

func (r ListPiiLabelsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPiiLabelsResponse200Headers

type ListPiiLabelsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListPiiLabelsResponse200Headers the declared response headers of an HTTP 200 response for ListPiiLabels

type ListPiiLabelsResponse400Headers

type ListPiiLabelsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListPiiLabelsResponse400Headers the declared response headers of an HTTP 400 response for ListPiiLabels

type ListPiiLabelsResponse401Headers

type ListPiiLabelsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListPiiLabelsResponse401Headers the declared response headers of an HTTP 401 response for ListPiiLabels

type ListPiiLabelsResponse402Headers

type ListPiiLabelsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListPiiLabelsResponse402Headers the declared response headers of an HTTP 402 response for ListPiiLabels

type ListPiiLabelsResponse403Headers

type ListPiiLabelsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListPiiLabelsResponse403Headers the declared response headers of an HTTP 403 response for ListPiiLabels

type ListPiiLabelsResponse404Headers

type ListPiiLabelsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListPiiLabelsResponse404Headers the declared response headers of an HTTP 404 response for ListPiiLabels

type ListPiiLabelsResponse406Headers

type ListPiiLabelsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListPiiLabelsResponse406Headers the declared response headers of an HTTP 406 response for ListPiiLabels

type ListPiiLabelsResponse429Headers

type ListPiiLabelsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListPiiLabelsResponse429Headers the declared response headers of an HTTP 429 response for ListPiiLabels

type ListPiiLabelsResponse503Headers

type ListPiiLabelsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListPiiLabelsResponse503Headers the declared response headers of an HTTP 503 response for ListPiiLabels

type ListPiiLabelsResponseDefaultHeaders

type ListPiiLabelsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListPiiLabelsResponseDefaultHeaders the declared response headers of an HTTP default response for ListPiiLabels

type ListProjectCollaboratorsParams added in v0.2.0

type ListProjectCollaboratorsParams struct {
	// Limit Maximum number of items to return per page.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

ListProjectCollaboratorsParams defines parameters for ListProjectCollaborators.

type ListProjectCollaboratorsResponse added in v0.2.0

type ListProjectCollaboratorsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ProjectCollaboratorPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListProjectCollaboratorsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListProjectCollaboratorsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListProjectCollaboratorsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *ListProjectCollaboratorsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListProjectCollaboratorsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListProjectCollaboratorsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *ListProjectCollaboratorsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListProjectCollaboratorsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListProjectCollaboratorsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListProjectCollaboratorsResponseDefaultHeaders
}

func ParseListProjectCollaboratorsResponse added in v0.2.0

func ParseListProjectCollaboratorsResponse(rsp *http.Response) (*ListProjectCollaboratorsResponse, error)

ParseListProjectCollaboratorsResponse parses an HTTP response from a ListProjectCollaboratorsWithResponse call

func (ListProjectCollaboratorsResponse) ContentType added in v0.2.0

func (r ListProjectCollaboratorsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListProjectCollaboratorsResponse) GetBody added in v0.2.0

func (r ListProjectCollaboratorsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListProjectCollaboratorsResponse) GetJSON200 added in v0.2.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListProjectCollaboratorsResponse) GetJSON400 added in v0.2.0

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListProjectCollaboratorsResponse) GetJSON401 added in v0.2.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListProjectCollaboratorsResponse) GetJSON402 added in v0.2.0

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListProjectCollaboratorsResponse) GetJSON403 added in v0.2.0

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListProjectCollaboratorsResponse) GetJSON404 added in v0.2.0

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListProjectCollaboratorsResponse) GetJSON406 added in v0.2.0

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (ListProjectCollaboratorsResponse) GetJSON429 added in v0.2.0

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListProjectCollaboratorsResponse) GetJSON503 added in v0.2.0

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListProjectCollaboratorsResponse) GetJSONDefault added in v0.2.0

func (r ListProjectCollaboratorsResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListProjectCollaboratorsResponse) Status added in v0.2.0

Status returns HTTPResponse.Status

func (ListProjectCollaboratorsResponse) StatusCode added in v0.2.0

func (r ListProjectCollaboratorsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectCollaboratorsResponse200Headers added in v0.2.0

type ListProjectCollaboratorsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectCollaboratorsResponse200Headers the declared response headers of an HTTP 200 response for ListProjectCollaborators

type ListProjectCollaboratorsResponse400Headers added in v0.2.0

type ListProjectCollaboratorsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectCollaboratorsResponse400Headers the declared response headers of an HTTP 400 response for ListProjectCollaborators

type ListProjectCollaboratorsResponse401Headers added in v0.2.0

type ListProjectCollaboratorsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectCollaboratorsResponse401Headers the declared response headers of an HTTP 401 response for ListProjectCollaborators

type ListProjectCollaboratorsResponse402Headers added in v0.2.0

type ListProjectCollaboratorsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectCollaboratorsResponse402Headers the declared response headers of an HTTP 402 response for ListProjectCollaborators

type ListProjectCollaboratorsResponse403Headers added in v0.2.0

type ListProjectCollaboratorsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectCollaboratorsResponse403Headers the declared response headers of an HTTP 403 response for ListProjectCollaborators

type ListProjectCollaboratorsResponse404Headers added in v0.2.0

type ListProjectCollaboratorsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectCollaboratorsResponse404Headers the declared response headers of an HTTP 404 response for ListProjectCollaborators

type ListProjectCollaboratorsResponse406Headers added in v0.2.0

type ListProjectCollaboratorsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectCollaboratorsResponse406Headers the declared response headers of an HTTP 406 response for ListProjectCollaborators

type ListProjectCollaboratorsResponse429Headers added in v0.2.0

type ListProjectCollaboratorsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectCollaboratorsResponse429Headers the declared response headers of an HTTP 429 response for ListProjectCollaborators

type ListProjectCollaboratorsResponse503Headers added in v0.2.0

type ListProjectCollaboratorsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectCollaboratorsResponse503Headers the declared response headers of an HTTP 503 response for ListProjectCollaborators

type ListProjectCollaboratorsResponseDefaultHeaders added in v0.2.0

type ListProjectCollaboratorsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectCollaboratorsResponseDefaultHeaders the declared response headers of an HTTP default response for ListProjectCollaborators

type ListProjectsParams

type ListProjectsParams struct {
	// WorkspaceId Workspace IDs to list projects from. Repeat the parameter to select up to 10 workspaces; duplicates are ignored. Every workspace must be accessible to the caller. Workspace-scoped API keys can select only their own workspace.
	WorkspaceId []string `form:"workspace_id" json:"workspace_id"`

	// Visibility Filter by the visibility field. Repeat to match any of the values. Omit to include every level you can access.
	Visibility *[]ListProjectsParamsVisibility `form:"visibility,omitempty" json:"visibility,omitempty"`

	// IsPublished Filter by whether the project is published. Omit for no filter.
	IsPublished *bool `form:"is_published,omitempty" json:"is_published,omitempty"`

	// PublishAudience Filter published projects by the publish_audience field, resolved the same way the response resolves it, including the workspace default. Repeat to match any value. Omit for no filter. Requires is_published to be true or omitted.
	PublishAudience *[]ListProjectsParamsPublishAudience `form:"publish_audience,omitempty" json:"publish_audience,omitempty"`

	// FolderId Filter by the directory_id field: projects placed directly in the directory, not those in directorys nested inside it. Repeat to match any of the directorys, for example a directory and its children from GET /v1/workspaces/{workspace_id}/directorys. Omit for no filter.
	FolderId *[]string `form:"folder_id,omitempty" json:"folder_id,omitempty"`

	// IsInFolder Filter by whether the project is in a directory. false selects projects whose directory_id is null. Omit for no filter. Cannot be false when directory_id is set.
	IsInFolder *bool `form:"is_in_folder,omitempty" json:"is_in_folder,omitempty"`

	// Query Search project names, generated descriptions, and owner names or email addresses. Terms shorter than 3 characters are ignored.
	Query *string `form:"query,omitempty" json:"query,omitempty"`

	// Limit Maximum number of items to return per page.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

ListProjectsParams defines parameters for ListProjects.

type ListProjectsParamsPublishAudience

type ListProjectsParamsPublishAudience string

ListProjectsParamsPublishAudience defines parameters for ListProjects.

const (
	ListProjectsParamsPublishAudienceCustom    ListProjectsParamsPublishAudience = "custom"
	ListProjectsParamsPublishAudiencePublic    ListProjectsParamsPublishAudience = "public"
	ListProjectsParamsPublishAudienceWorkspace ListProjectsParamsPublishAudience = "workspace"
)

Defines values for ListProjectsParamsPublishAudience.

func (ListProjectsParamsPublishAudience) Valid

Valid indicates whether the value is a known member of the ListProjectsParamsPublishAudience enum.

type ListProjectsParamsVisibility

type ListProjectsParamsVisibility string

ListProjectsParamsVisibility defines parameters for ListProjects.

const (
	ListProjectsParamsVisibilityRestricted    ListProjectsParamsVisibility = "restricted"
	ListProjectsParamsVisibilityWorkspaceEdit ListProjectsParamsVisibility = "workspace_edit"
	ListProjectsParamsVisibilityWorkspaceView ListProjectsParamsVisibility = "workspace_view"
)

Defines values for ListProjectsParamsVisibility.

func (ListProjectsParamsVisibility) Valid

Valid indicates whether the value is a known member of the ListProjectsParamsVisibility enum.

type ListProjectsResponse

type ListProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *ProjectSummaryPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListProjectsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListProjectsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListProjectsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *ListProjectsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListProjectsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListProjectsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *ListProjectsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListProjectsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListProjectsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListProjectsResponseDefaultHeaders
}

func ParseListProjectsResponse

func ParseListProjectsResponse(rsp *http.Response) (*ListProjectsResponse, error)

ParseListProjectsResponse parses an HTTP response from a ListProjectsWithResponse call

func (ListProjectsResponse) ContentType

func (r ListProjectsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListProjectsResponse) GetBody

func (r ListProjectsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListProjectsResponse) GetJSON200

func (r ListProjectsResponse) GetJSON200() *ProjectSummaryPage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListProjectsResponse) GetJSON400

func (r ListProjectsResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListProjectsResponse) GetJSON401

func (r ListProjectsResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListProjectsResponse) GetJSON402

func (r ListProjectsResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListProjectsResponse) GetJSON403

func (r ListProjectsResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListProjectsResponse) GetJSON404

func (r ListProjectsResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListProjectsResponse) GetJSON406

func (r ListProjectsResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (ListProjectsResponse) GetJSON429

func (r ListProjectsResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListProjectsResponse) GetJSON503

func (r ListProjectsResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListProjectsResponse) GetJSONDefault

func (r ListProjectsResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListProjectsResponse) Status

func (r ListProjectsResponse) Status() string

Status returns HTTPResponse.Status

func (ListProjectsResponse) StatusCode

func (r ListProjectsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListProjectsResponse200Headers

type ListProjectsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectsResponse200Headers the declared response headers of an HTTP 200 response for ListProjects

type ListProjectsResponse400Headers

type ListProjectsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectsResponse400Headers the declared response headers of an HTTP 400 response for ListProjects

type ListProjectsResponse401Headers

type ListProjectsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectsResponse401Headers the declared response headers of an HTTP 401 response for ListProjects

type ListProjectsResponse402Headers

type ListProjectsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectsResponse402Headers the declared response headers of an HTTP 402 response for ListProjects

type ListProjectsResponse403Headers

type ListProjectsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectsResponse403Headers the declared response headers of an HTTP 403 response for ListProjects

type ListProjectsResponse404Headers

type ListProjectsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectsResponse404Headers the declared response headers of an HTTP 404 response for ListProjects

type ListProjectsResponse406Headers

type ListProjectsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectsResponse406Headers the declared response headers of an HTTP 406 response for ListProjects

type ListProjectsResponse429Headers

type ListProjectsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectsResponse429Headers the declared response headers of an HTTP 429 response for ListProjects

type ListProjectsResponse503Headers

type ListProjectsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectsResponse503Headers the declared response headers of an HTTP 503 response for ListProjects

type ListProjectsResponseDefaultHeaders

type ListProjectsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListProjectsResponseDefaultHeaders the declared response headers of an HTTP default response for ListProjects

type ListSecurityInsightProjectsParams

type ListSecurityInsightProjectsParams struct {
	// Limit Maximum number of items to return per page.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Query Free-text search across project name and owner. Terms shorter than 3 characters are ignored. A full project ID matches that project exactly.
	Query *string `form:"query,omitempty" json:"query,omitempty"`

	// SortBy Sort field. Omit for the default order: most recently edited first, or best matches first when query is set. Ties break by project id unless noted. review_priority: unscored projects last in both directions, ties by risk score. name: projects without a name first ascending and last descending. publish_audience: ranks not published, then workspace, custom, public. last_edited_at: falls back to the last update time. risk_factor_count, open_pii_finding_count, external_access_rank: missing counts as 0, ties by name; external_access_rank ranks external collaborators above shared users, publicly published apps, then none; open_pii_finding_count returns 402 when personal data detection is not available on the workspace plan. edits_* and visitors_*: missing counts as 0. last_security_scan_at: never scanned last in both directions. relevance: requires query, ties by last update time.
	SortBy *ListSecurityInsightProjectsParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"`

	// SortOrder Direction for sort_by. Defaults to descending. Requires sort_by.
	SortOrder *ListSecurityInsightProjectsParamsSortOrder `form:"sort_order,omitempty" json:"sort_order,omitempty"`

	// ActivityGroup Filter by the activity_group field: time since the last edit, or last update for projects never edited, using 14-day and 60-day boundaries. Repeat to match any value. Omit for no filter.
	ActivityGroup *[]ListSecurityInsightProjectsParamsActivityGroup `form:"activity_group,omitempty" json:"activity_group,omitempty"`

	// IsPublished Filter by whether the project is published. Omit for no filter.
	IsPublished *bool `form:"is_published,omitempty" json:"is_published,omitempty"`

	// Visibility Filter by the visibility field. Repeat to match any of the values. Omit for no filter.
	Visibility *[]ListSecurityInsightProjectsParamsVisibility `form:"visibility,omitempty" json:"visibility,omitempty"`

	// HasPii Filter by the has_pii signal. false selects projects without detected personal data. Omit for no filter. Returns 402 when personal data detection is not available on the workspace plan.
	HasPii *bool `form:"has_pii,omitempty" json:"has_pii,omitempty"`

	// HasConnectors Filter by whether the project has a connected service. false selects projects without one. Omit for no filter.
	HasConnectors *bool `form:"has_connectors,omitempty" json:"has_connectors,omitempty"`

	// PublishAudience Filter published projects by the publish_audience field. Repeat to match any value. Omit for no filter. Requires is_published to be true or omitted.
	PublishAudience *[]ListSecurityInsightProjectsParamsPublishAudience `form:"publish_audience,omitempty" json:"publish_audience,omitempty"`

	// ReviewPriority Filter by Security Center review priority. Repeat to match any selected priority; unscored matches projects not yet scored. Omit to include every project.
	ReviewPriority *[]ListSecurityInsightProjectsParamsReviewPriority `form:"review_priority,omitempty" json:"review_priority,omitempty"`

	// FindingTypeId Finding type IDs returned by GET /v1/workspaces/{workspace_id}/security-center/insights. Finding filters use the same category rules as project_count in that response. A project matching a more specific related type is excluded from the broader type. Repeat to match any selected type. Unknown IDs return 400. Types that depend on personal data detection return 402 when that feature is not available on the workspace plan.
	FindingTypeId *[]string `form:"finding_type_id,omitempty" json:"finding_type_id,omitempty"`

	// FolderId Filter by the directory_id field: projects placed directly in the directory, not those in directorys nested inside it. Repeat to match any of the directorys, for example a directory and its children from GET /v1/workspaces/{workspace_id}/directorys. Omit for no filter.
	FolderId *[]string `form:"folder_id,omitempty" json:"folder_id,omitempty"`

	// IsInFolder Filter by whether the project is in a directory. false selects projects whose directory_id is null. Omit for no filter. Cannot be false when directory_id is set.
	IsInFolder *bool `form:"is_in_folder,omitempty" json:"is_in_folder,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

ListSecurityInsightProjectsParams defines parameters for ListSecurityInsightProjects.

type ListSecurityInsightProjectsParamsActivityGroup

type ListSecurityInsightProjectsParamsActivityGroup string

ListSecurityInsightProjectsParamsActivityGroup defines parameters for ListSecurityInsightProjects.

const (
	ListSecurityInsightProjectsParamsActivityGroupLast14Days ListSecurityInsightProjectsParamsActivityGroup = "last_14_days"
	ListSecurityInsightProjectsParamsActivityGroupLast60Days ListSecurityInsightProjectsParamsActivityGroup = "last_60_days"
	ListSecurityInsightProjectsParamsActivityGroupOlder      ListSecurityInsightProjectsParamsActivityGroup = "older"
)

Defines values for ListSecurityInsightProjectsParamsActivityGroup.

func (ListSecurityInsightProjectsParamsActivityGroup) Valid

Valid indicates whether the value is a known member of the ListSecurityInsightProjectsParamsActivityGroup enum.

type ListSecurityInsightProjectsParamsPublishAudience

type ListSecurityInsightProjectsParamsPublishAudience string

ListSecurityInsightProjectsParamsPublishAudience defines parameters for ListSecurityInsightProjects.

const (
	ListSecurityInsightProjectsParamsPublishAudienceCustom    ListSecurityInsightProjectsParamsPublishAudience = "custom"
	ListSecurityInsightProjectsParamsPublishAudiencePublic    ListSecurityInsightProjectsParamsPublishAudience = "public"
	ListSecurityInsightProjectsParamsPublishAudienceWorkspace ListSecurityInsightProjectsParamsPublishAudience = "workspace"
)

Defines values for ListSecurityInsightProjectsParamsPublishAudience.

func (ListSecurityInsightProjectsParamsPublishAudience) Valid

Valid indicates whether the value is a known member of the ListSecurityInsightProjectsParamsPublishAudience enum.

type ListSecurityInsightProjectsParamsReviewPriority

type ListSecurityInsightProjectsParamsReviewPriority string

ListSecurityInsightProjectsParamsReviewPriority defines parameters for ListSecurityInsightProjects.

const (
	ListSecurityInsightProjectsParamsReviewPriorityNeedsReview       ListSecurityInsightProjectsParamsReviewPriority = "needs_review"
	ListSecurityInsightProjectsParamsReviewPriorityNoReviewNeeded    ListSecurityInsightProjectsParamsReviewPriority = "no_review_needed"
	ListSecurityInsightProjectsParamsReviewPriorityReviewRecommended ListSecurityInsightProjectsParamsReviewPriority = "review_recommended"
	ListSecurityInsightProjectsParamsReviewPriorityUnscored          ListSecurityInsightProjectsParamsReviewPriority = "unscored"
)

Defines values for ListSecurityInsightProjectsParamsReviewPriority.

func (ListSecurityInsightProjectsParamsReviewPriority) Valid

Valid indicates whether the value is a known member of the ListSecurityInsightProjectsParamsReviewPriority enum.

type ListSecurityInsightProjectsParamsSortBy

type ListSecurityInsightProjectsParamsSortBy string

ListSecurityInsightProjectsParamsSortBy defines parameters for ListSecurityInsightProjects.

const (
	ListSecurityInsightProjectsParamsSortByEdits24h            ListSecurityInsightProjectsParamsSortBy = "edits_24h"
	ListSecurityInsightProjectsParamsSortByEdits30d            ListSecurityInsightProjectsParamsSortBy = "edits_30d"
	ListSecurityInsightProjectsParamsSortByEdits7d             ListSecurityInsightProjectsParamsSortBy = "edits_7d"
	ListSecurityInsightProjectsParamsSortByExternalAccessRank  ListSecurityInsightProjectsParamsSortBy = "external_access_rank"
	ListSecurityInsightProjectsParamsSortByLastEditedAt        ListSecurityInsightProjectsParamsSortBy = "last_edited_at"
	ListSecurityInsightProjectsParamsSortByLastSecurityScanAt  ListSecurityInsightProjectsParamsSortBy = "last_security_scan_at"
	ListSecurityInsightProjectsParamsSortByName                ListSecurityInsightProjectsParamsSortBy = "name"
	ListSecurityInsightProjectsParamsSortByOpenPiiFindingCount ListSecurityInsightProjectsParamsSortBy = "open_pii_finding_count"
	ListSecurityInsightProjectsParamsSortByPublishAudience     ListSecurityInsightProjectsParamsSortBy = "publish_audience"
	ListSecurityInsightProjectsParamsSortByRelevance           ListSecurityInsightProjectsParamsSortBy = "relevance"
	ListSecurityInsightProjectsParamsSortByReviewPriority      ListSecurityInsightProjectsParamsSortBy = "review_priority"
	ListSecurityInsightProjectsParamsSortByRiskFactorCount     ListSecurityInsightProjectsParamsSortBy = "risk_factor_count"
	ListSecurityInsightProjectsParamsSortByVisitors24h         ListSecurityInsightProjectsParamsSortBy = "visitors_24h"
	ListSecurityInsightProjectsParamsSortByVisitors30d         ListSecurityInsightProjectsParamsSortBy = "visitors_30d"
	ListSecurityInsightProjectsParamsSortByVisitors7d          ListSecurityInsightProjectsParamsSortBy = "visitors_7d"
)

Defines values for ListSecurityInsightProjectsParamsSortBy.

func (ListSecurityInsightProjectsParamsSortBy) Valid

Valid indicates whether the value is a known member of the ListSecurityInsightProjectsParamsSortBy enum.

type ListSecurityInsightProjectsParamsSortOrder

type ListSecurityInsightProjectsParamsSortOrder string

ListSecurityInsightProjectsParamsSortOrder defines parameters for ListSecurityInsightProjects.

const (
	ListSecurityInsightProjectsParamsSortOrderAsc  ListSecurityInsightProjectsParamsSortOrder = "asc"
	ListSecurityInsightProjectsParamsSortOrderDesc ListSecurityInsightProjectsParamsSortOrder = "desc"
)

Defines values for ListSecurityInsightProjectsParamsSortOrder.

func (ListSecurityInsightProjectsParamsSortOrder) Valid

Valid indicates whether the value is a known member of the ListSecurityInsightProjectsParamsSortOrder enum.

type ListSecurityInsightProjectsParamsVisibility

type ListSecurityInsightProjectsParamsVisibility string

ListSecurityInsightProjectsParamsVisibility defines parameters for ListSecurityInsightProjects.

const (
	ListSecurityInsightProjectsParamsVisibilityRestricted    ListSecurityInsightProjectsParamsVisibility = "restricted"
	ListSecurityInsightProjectsParamsVisibilityWorkspaceEdit ListSecurityInsightProjectsParamsVisibility = "workspace_edit"
	ListSecurityInsightProjectsParamsVisibilityWorkspaceView ListSecurityInsightProjectsParamsVisibility = "workspace_view"
)

Defines values for ListSecurityInsightProjectsParamsVisibility.

func (ListSecurityInsightProjectsParamsVisibility) Valid

Valid indicates whether the value is a known member of the ListSecurityInsightProjectsParamsVisibility enum.

type ListSecurityInsightProjectsResponse

type ListSecurityInsightProjectsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorkspaceInsightsProjectPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListSecurityInsightProjectsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListSecurityInsightProjectsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListSecurityInsightProjectsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *ListSecurityInsightProjectsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListSecurityInsightProjectsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListSecurityInsightProjectsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *ListSecurityInsightProjectsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSecurityInsightProjectsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListSecurityInsightProjectsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListSecurityInsightProjectsResponseDefaultHeaders
}

func ParseListSecurityInsightProjectsResponse

func ParseListSecurityInsightProjectsResponse(rsp *http.Response) (*ListSecurityInsightProjectsResponse, error)

ParseListSecurityInsightProjectsResponse parses an HTTP response from a ListSecurityInsightProjectsWithResponse call

func (ListSecurityInsightProjectsResponse) ContentType

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSecurityInsightProjectsResponse) GetBody

GetBody returns the raw response body bytes

func (ListSecurityInsightProjectsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSecurityInsightProjectsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSecurityInsightProjectsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListSecurityInsightProjectsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListSecurityInsightProjectsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListSecurityInsightProjectsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListSecurityInsightProjectsResponse) GetJSON406

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (ListSecurityInsightProjectsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListSecurityInsightProjectsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListSecurityInsightProjectsResponse) GetJSONDefault

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListSecurityInsightProjectsResponse) Status

Status returns HTTPResponse.Status

func (ListSecurityInsightProjectsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type ListSecurityInsightProjectsResponse200Headers

type ListSecurityInsightProjectsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityInsightProjectsResponse200Headers the declared response headers of an HTTP 200 response for ListSecurityInsightProjects

type ListSecurityInsightProjectsResponse400Headers

type ListSecurityInsightProjectsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityInsightProjectsResponse400Headers the declared response headers of an HTTP 400 response for ListSecurityInsightProjects

type ListSecurityInsightProjectsResponse401Headers

type ListSecurityInsightProjectsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityInsightProjectsResponse401Headers the declared response headers of an HTTP 401 response for ListSecurityInsightProjects

type ListSecurityInsightProjectsResponse402Headers

type ListSecurityInsightProjectsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityInsightProjectsResponse402Headers the declared response headers of an HTTP 402 response for ListSecurityInsightProjects

type ListSecurityInsightProjectsResponse403Headers

type ListSecurityInsightProjectsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityInsightProjectsResponse403Headers the declared response headers of an HTTP 403 response for ListSecurityInsightProjects

type ListSecurityInsightProjectsResponse404Headers

type ListSecurityInsightProjectsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityInsightProjectsResponse404Headers the declared response headers of an HTTP 404 response for ListSecurityInsightProjects

type ListSecurityInsightProjectsResponse406Headers

type ListSecurityInsightProjectsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityInsightProjectsResponse406Headers the declared response headers of an HTTP 406 response for ListSecurityInsightProjects

type ListSecurityInsightProjectsResponse429Headers

type ListSecurityInsightProjectsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityInsightProjectsResponse429Headers the declared response headers of an HTTP 429 response for ListSecurityInsightProjects

type ListSecurityInsightProjectsResponse503Headers

type ListSecurityInsightProjectsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityInsightProjectsResponse503Headers the declared response headers of an HTTP 503 response for ListSecurityInsightProjects

type ListSecurityInsightProjectsResponseDefaultHeaders

type ListSecurityInsightProjectsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityInsightProjectsResponseDefaultHeaders the declared response headers of an HTTP default response for ListSecurityInsightProjects

type ListSecurityScanFindingsParams

type ListSecurityScanFindingsParams struct {
	// Limit Maximum number of items to return per page.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

ListSecurityScanFindingsParams defines parameters for ListSecurityScanFindings.

type ListSecurityScanFindingsResponse

type ListSecurityScanFindingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SecurityFindingPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListSecurityScanFindingsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListSecurityScanFindingsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListSecurityScanFindingsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *ListSecurityScanFindingsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListSecurityScanFindingsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListSecurityScanFindingsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *ListSecurityScanFindingsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSecurityScanFindingsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListSecurityScanFindingsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListSecurityScanFindingsResponseDefaultHeaders
}

func ParseListSecurityScanFindingsResponse

func ParseListSecurityScanFindingsResponse(rsp *http.Response) (*ListSecurityScanFindingsResponse, error)

ParseListSecurityScanFindingsResponse parses an HTTP response from a ListSecurityScanFindingsWithResponse call

func (ListSecurityScanFindingsResponse) ContentType

func (r ListSecurityScanFindingsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSecurityScanFindingsResponse) GetBody

func (r ListSecurityScanFindingsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSecurityScanFindingsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSecurityScanFindingsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSecurityScanFindingsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListSecurityScanFindingsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListSecurityScanFindingsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListSecurityScanFindingsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListSecurityScanFindingsResponse) GetJSON406

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (ListSecurityScanFindingsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListSecurityScanFindingsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListSecurityScanFindingsResponse) GetJSONDefault

func (r ListSecurityScanFindingsResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListSecurityScanFindingsResponse) Status

Status returns HTTPResponse.Status

func (ListSecurityScanFindingsResponse) StatusCode

func (r ListSecurityScanFindingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSecurityScanFindingsResponse200Headers

type ListSecurityScanFindingsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScanFindingsResponse200Headers the declared response headers of an HTTP 200 response for ListSecurityScanFindings

type ListSecurityScanFindingsResponse400Headers

type ListSecurityScanFindingsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScanFindingsResponse400Headers the declared response headers of an HTTP 400 response for ListSecurityScanFindings

type ListSecurityScanFindingsResponse401Headers

type ListSecurityScanFindingsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScanFindingsResponse401Headers the declared response headers of an HTTP 401 response for ListSecurityScanFindings

type ListSecurityScanFindingsResponse402Headers

type ListSecurityScanFindingsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScanFindingsResponse402Headers the declared response headers of an HTTP 402 response for ListSecurityScanFindings

type ListSecurityScanFindingsResponse403Headers

type ListSecurityScanFindingsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScanFindingsResponse403Headers the declared response headers of an HTTP 403 response for ListSecurityScanFindings

type ListSecurityScanFindingsResponse404Headers

type ListSecurityScanFindingsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScanFindingsResponse404Headers the declared response headers of an HTTP 404 response for ListSecurityScanFindings

type ListSecurityScanFindingsResponse406Headers

type ListSecurityScanFindingsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScanFindingsResponse406Headers the declared response headers of an HTTP 406 response for ListSecurityScanFindings

type ListSecurityScanFindingsResponse429Headers

type ListSecurityScanFindingsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScanFindingsResponse429Headers the declared response headers of an HTTP 429 response for ListSecurityScanFindings

type ListSecurityScanFindingsResponse503Headers

type ListSecurityScanFindingsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScanFindingsResponse503Headers the declared response headers of an HTTP 503 response for ListSecurityScanFindings

type ListSecurityScanFindingsResponseDefaultHeaders

type ListSecurityScanFindingsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScanFindingsResponseDefaultHeaders the declared response headers of an HTTP default response for ListSecurityScanFindings

type ListSecurityScansParams

type ListSecurityScansParams struct {
	// Limit Maximum number of items to return per page.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

ListSecurityScansParams defines parameters for ListSecurityScans.

type ListSecurityScansResponse

type ListSecurityScansResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *SecurityScanPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListSecurityScansResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListSecurityScansResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListSecurityScansResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *ListSecurityScansResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListSecurityScansResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListSecurityScansResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *ListSecurityScansResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListSecurityScansResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListSecurityScansResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListSecurityScansResponseDefaultHeaders
}

func ParseListSecurityScansResponse

func ParseListSecurityScansResponse(rsp *http.Response) (*ListSecurityScansResponse, error)

ParseListSecurityScansResponse parses an HTTP response from a ListSecurityScansWithResponse call

func (ListSecurityScansResponse) ContentType

func (r ListSecurityScansResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListSecurityScansResponse) GetBody

func (r ListSecurityScansResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListSecurityScansResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListSecurityScansResponse) GetJSON400

func (r ListSecurityScansResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListSecurityScansResponse) GetJSON401

func (r ListSecurityScansResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListSecurityScansResponse) GetJSON402

func (r ListSecurityScansResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListSecurityScansResponse) GetJSON403

func (r ListSecurityScansResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListSecurityScansResponse) GetJSON404

func (r ListSecurityScansResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListSecurityScansResponse) GetJSON406

func (r ListSecurityScansResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (ListSecurityScansResponse) GetJSON429

func (r ListSecurityScansResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListSecurityScansResponse) GetJSON503

func (r ListSecurityScansResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListSecurityScansResponse) GetJSONDefault

func (r ListSecurityScansResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListSecurityScansResponse) Status

func (r ListSecurityScansResponse) Status() string

Status returns HTTPResponse.Status

func (ListSecurityScansResponse) StatusCode

func (r ListSecurityScansResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListSecurityScansResponse200Headers

type ListSecurityScansResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScansResponse200Headers the declared response headers of an HTTP 200 response for ListSecurityScans

type ListSecurityScansResponse400Headers

type ListSecurityScansResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScansResponse400Headers the declared response headers of an HTTP 400 response for ListSecurityScans

type ListSecurityScansResponse401Headers

type ListSecurityScansResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScansResponse401Headers the declared response headers of an HTTP 401 response for ListSecurityScans

type ListSecurityScansResponse402Headers

type ListSecurityScansResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScansResponse402Headers the declared response headers of an HTTP 402 response for ListSecurityScans

type ListSecurityScansResponse403Headers

type ListSecurityScansResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScansResponse403Headers the declared response headers of an HTTP 403 response for ListSecurityScans

type ListSecurityScansResponse404Headers

type ListSecurityScansResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScansResponse404Headers the declared response headers of an HTTP 404 response for ListSecurityScans

type ListSecurityScansResponse406Headers

type ListSecurityScansResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScansResponse406Headers the declared response headers of an HTTP 406 response for ListSecurityScans

type ListSecurityScansResponse429Headers

type ListSecurityScansResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScansResponse429Headers the declared response headers of an HTTP 429 response for ListSecurityScans

type ListSecurityScansResponse503Headers

type ListSecurityScansResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScansResponse503Headers the declared response headers of an HTTP 503 response for ListSecurityScans

type ListSecurityScansResponseDefaultHeaders

type ListSecurityScansResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListSecurityScansResponseDefaultHeaders the declared response headers of an HTTP default response for ListSecurityScans

type ListWorkspaceFoldersParams added in v0.3.0

type ListWorkspaceFoldersParams struct {
	// Limit Maximum number of items to return per page.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

ListWorkspaceFoldersParams defines parameters for ListWorkspaceFolders.

type ListWorkspaceFoldersResponse added in v0.3.0

type ListWorkspaceFoldersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorkspaceFolderPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWorkspaceFoldersResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListWorkspaceFoldersResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListWorkspaceFoldersResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *ListWorkspaceFoldersResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListWorkspaceFoldersResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListWorkspaceFoldersResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *ListWorkspaceFoldersResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWorkspaceFoldersResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWorkspaceFoldersResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListWorkspaceFoldersResponseDefaultHeaders
}

func ParseListWorkspaceFoldersResponse added in v0.3.0

func ParseListWorkspaceFoldersResponse(rsp *http.Response) (*ListWorkspaceFoldersResponse, error)

ParseListWorkspaceFoldersResponse parses an HTTP response from a ListWorkspaceFoldersWithResponse call

func (ListWorkspaceFoldersResponse) ContentType added in v0.3.0

func (r ListWorkspaceFoldersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWorkspaceFoldersResponse) GetBody added in v0.3.0

func (r ListWorkspaceFoldersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWorkspaceFoldersResponse) GetJSON200 added in v0.3.0

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWorkspaceFoldersResponse) GetJSON400 added in v0.3.0

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListWorkspaceFoldersResponse) GetJSON401 added in v0.3.0

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWorkspaceFoldersResponse) GetJSON402 added in v0.3.0

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWorkspaceFoldersResponse) GetJSON403 added in v0.3.0

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWorkspaceFoldersResponse) GetJSON404 added in v0.3.0

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListWorkspaceFoldersResponse) GetJSON406 added in v0.3.0

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (ListWorkspaceFoldersResponse) GetJSON429 added in v0.3.0

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWorkspaceFoldersResponse) GetJSON503 added in v0.3.0

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWorkspaceFoldersResponse) GetJSONDefault added in v0.3.0

func (r ListWorkspaceFoldersResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListWorkspaceFoldersResponse) Status added in v0.3.0

Status returns HTTPResponse.Status

func (ListWorkspaceFoldersResponse) StatusCode added in v0.3.0

func (r ListWorkspaceFoldersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWorkspaceFoldersResponse200Headers added in v0.3.0

type ListWorkspaceFoldersResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceFoldersResponse200Headers the declared response headers of an HTTP 200 response for ListWorkspaceFolders

type ListWorkspaceFoldersResponse400Headers added in v0.3.0

type ListWorkspaceFoldersResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceFoldersResponse400Headers the declared response headers of an HTTP 400 response for ListWorkspaceFolders

type ListWorkspaceFoldersResponse401Headers added in v0.3.0

type ListWorkspaceFoldersResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceFoldersResponse401Headers the declared response headers of an HTTP 401 response for ListWorkspaceFolders

type ListWorkspaceFoldersResponse402Headers added in v0.3.0

type ListWorkspaceFoldersResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceFoldersResponse402Headers the declared response headers of an HTTP 402 response for ListWorkspaceFolders

type ListWorkspaceFoldersResponse403Headers added in v0.3.0

type ListWorkspaceFoldersResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceFoldersResponse403Headers the declared response headers of an HTTP 403 response for ListWorkspaceFolders

type ListWorkspaceFoldersResponse404Headers added in v0.3.0

type ListWorkspaceFoldersResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceFoldersResponse404Headers the declared response headers of an HTTP 404 response for ListWorkspaceFolders

type ListWorkspaceFoldersResponse406Headers added in v0.3.0

type ListWorkspaceFoldersResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceFoldersResponse406Headers the declared response headers of an HTTP 406 response for ListWorkspaceFolders

type ListWorkspaceFoldersResponse429Headers added in v0.3.0

type ListWorkspaceFoldersResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceFoldersResponse429Headers the declared response headers of an HTTP 429 response for ListWorkspaceFolders

type ListWorkspaceFoldersResponse503Headers added in v0.3.0

type ListWorkspaceFoldersResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceFoldersResponse503Headers the declared response headers of an HTTP 503 response for ListWorkspaceFolders

type ListWorkspaceFoldersResponseDefaultHeaders added in v0.3.0

type ListWorkspaceFoldersResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceFoldersResponseDefaultHeaders the declared response headers of an HTTP default response for ListWorkspaceFolders

type ListWorkspaceGroupsParams

type ListWorkspaceGroupsParams struct {
	// Limit Maximum number of items to return per page.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

ListWorkspaceGroupsParams defines parameters for ListWorkspaceGroups.

type ListWorkspaceGroupsResponse

type ListWorkspaceGroupsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorkspaceGroupPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWorkspaceGroupsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListWorkspaceGroupsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListWorkspaceGroupsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *ListWorkspaceGroupsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListWorkspaceGroupsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListWorkspaceGroupsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *ListWorkspaceGroupsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWorkspaceGroupsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWorkspaceGroupsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListWorkspaceGroupsResponseDefaultHeaders
}

func ParseListWorkspaceGroupsResponse

func ParseListWorkspaceGroupsResponse(rsp *http.Response) (*ListWorkspaceGroupsResponse, error)

ParseListWorkspaceGroupsResponse parses an HTTP response from a ListWorkspaceGroupsWithResponse call

func (ListWorkspaceGroupsResponse) ContentType

func (r ListWorkspaceGroupsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWorkspaceGroupsResponse) GetBody

func (r ListWorkspaceGroupsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWorkspaceGroupsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWorkspaceGroupsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListWorkspaceGroupsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWorkspaceGroupsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWorkspaceGroupsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWorkspaceGroupsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListWorkspaceGroupsResponse) GetJSON406

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (ListWorkspaceGroupsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWorkspaceGroupsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWorkspaceGroupsResponse) GetJSONDefault

func (r ListWorkspaceGroupsResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListWorkspaceGroupsResponse) Status

Status returns HTTPResponse.Status

func (ListWorkspaceGroupsResponse) StatusCode

func (r ListWorkspaceGroupsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWorkspaceGroupsResponse200Headers

type ListWorkspaceGroupsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceGroupsResponse200Headers the declared response headers of an HTTP 200 response for ListWorkspaceGroups

type ListWorkspaceGroupsResponse400Headers

type ListWorkspaceGroupsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceGroupsResponse400Headers the declared response headers of an HTTP 400 response for ListWorkspaceGroups

type ListWorkspaceGroupsResponse401Headers

type ListWorkspaceGroupsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceGroupsResponse401Headers the declared response headers of an HTTP 401 response for ListWorkspaceGroups

type ListWorkspaceGroupsResponse402Headers

type ListWorkspaceGroupsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceGroupsResponse402Headers the declared response headers of an HTTP 402 response for ListWorkspaceGroups

type ListWorkspaceGroupsResponse403Headers

type ListWorkspaceGroupsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceGroupsResponse403Headers the declared response headers of an HTTP 403 response for ListWorkspaceGroups

type ListWorkspaceGroupsResponse404Headers

type ListWorkspaceGroupsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceGroupsResponse404Headers the declared response headers of an HTTP 404 response for ListWorkspaceGroups

type ListWorkspaceGroupsResponse406Headers

type ListWorkspaceGroupsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceGroupsResponse406Headers the declared response headers of an HTTP 406 response for ListWorkspaceGroups

type ListWorkspaceGroupsResponse429Headers

type ListWorkspaceGroupsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceGroupsResponse429Headers the declared response headers of an HTTP 429 response for ListWorkspaceGroups

type ListWorkspaceGroupsResponse503Headers

type ListWorkspaceGroupsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceGroupsResponse503Headers the declared response headers of an HTTP 503 response for ListWorkspaceGroups

type ListWorkspaceGroupsResponseDefaultHeaders

type ListWorkspaceGroupsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceGroupsResponseDefaultHeaders the declared response headers of an HTTP default response for ListWorkspaceGroups

type ListWorkspaceMembersParams

type ListWorkspaceMembersParams struct {
	// Limit Maximum number of items to return per page.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// Query Search by display name, username, or email. Terms shorter than 3 characters are ignored.
	Query *string `form:"query,omitempty" json:"query,omitempty"`

	// Role Filter by the role returned in the response. The legacy values owner, admin, editor, member, viewer, and collaborator remain accepted aliases; member and editor both select workspace_editor. Repeat to match any of the values. Omit to include every role.
	Role *[]ListWorkspaceMembersParamsRole `form:"role,omitempty" json:"role,omitempty"`

	// SortBy Sort field. Omit for the default order: role precedence (workspace_owner, workspace_admin, workspace_editor, external_collaborator, workspace_viewer), then most recently joined; with query set, best matches first. name sorts case-insensitively by the returned name, with null names first ascending and last descending. display_name is an alias for name, with identical ordering and interchangeable cursors. joined_at falls back to the invitation time. role sorts by role precedence. relevance ranks by match score and requires query; ties break by most recent join. Other ties break by membership id.
	SortBy *ListWorkspaceMembersParamsSortBy `form:"sort_by,omitempty" json:"sort_by,omitempty"`

	// SortOrder Direction for sort_by. Defaults to descending. Requires sort_by.
	SortOrder *ListWorkspaceMembersParamsSortOrder `form:"sort_order,omitempty" json:"sort_order,omitempty"`

	// ScimManaged Filter by SCIM (System for Cross-domain Identity Management) provisioning: true returns only members provisioned by the identity provider, false only members added another way. Omit to include both.
	ScimManaged *bool `form:"scim_managed,omitempty" json:"scim_managed,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

ListWorkspaceMembersParams defines parameters for ListWorkspaceMembers.

type ListWorkspaceMembersParamsRole

type ListWorkspaceMembersParamsRole string

ListWorkspaceMembersParamsRole defines parameters for ListWorkspaceMembers.

const (
	ListWorkspaceMembersParamsRoleAdmin                ListWorkspaceMembersParamsRole = "admin"
	ListWorkspaceMembersParamsRoleCollaborator         ListWorkspaceMembersParamsRole = "collaborator"
	ListWorkspaceMembersParamsRoleEditor               ListWorkspaceMembersParamsRole = "editor"
	ListWorkspaceMembersParamsRoleExternalCollaborator ListWorkspaceMembersParamsRole = "external_collaborator"
	ListWorkspaceMembersParamsRoleMember               ListWorkspaceMembersParamsRole = "member"
	ListWorkspaceMembersParamsRoleOwner                ListWorkspaceMembersParamsRole = "owner"
	ListWorkspaceMembersParamsRoleViewer               ListWorkspaceMembersParamsRole = "viewer"
	ListWorkspaceMembersParamsRoleWorkspaceAdmin       ListWorkspaceMembersParamsRole = "workspace_admin"
	ListWorkspaceMembersParamsRoleWorkspaceEditor      ListWorkspaceMembersParamsRole = "workspace_editor"
	ListWorkspaceMembersParamsRoleWorkspaceOwner       ListWorkspaceMembersParamsRole = "workspace_owner"
	ListWorkspaceMembersParamsRoleWorkspaceViewer      ListWorkspaceMembersParamsRole = "workspace_viewer"
)

Defines values for ListWorkspaceMembersParamsRole.

func (ListWorkspaceMembersParamsRole) Valid

Valid indicates whether the value is a known member of the ListWorkspaceMembersParamsRole enum.

type ListWorkspaceMembersParamsSortBy

type ListWorkspaceMembersParamsSortBy string

ListWorkspaceMembersParamsSortBy defines parameters for ListWorkspaceMembers.

const (
	ListWorkspaceMembersParamsSortByDisplayName ListWorkspaceMembersParamsSortBy = "display_name"
	ListWorkspaceMembersParamsSortByJoinedAt    ListWorkspaceMembersParamsSortBy = "joined_at"
	ListWorkspaceMembersParamsSortByName        ListWorkspaceMembersParamsSortBy = "name"
	ListWorkspaceMembersParamsSortByRelevance   ListWorkspaceMembersParamsSortBy = "relevance"
	ListWorkspaceMembersParamsSortByRole        ListWorkspaceMembersParamsSortBy = "role"
)

Defines values for ListWorkspaceMembersParamsSortBy.

func (ListWorkspaceMembersParamsSortBy) Valid

Valid indicates whether the value is a known member of the ListWorkspaceMembersParamsSortBy enum.

type ListWorkspaceMembersParamsSortOrder

type ListWorkspaceMembersParamsSortOrder string

ListWorkspaceMembersParamsSortOrder defines parameters for ListWorkspaceMembers.

const (
	ListWorkspaceMembersParamsSortOrderAsc  ListWorkspaceMembersParamsSortOrder = "asc"
	ListWorkspaceMembersParamsSortOrderDesc ListWorkspaceMembersParamsSortOrder = "desc"
)

Defines values for ListWorkspaceMembersParamsSortOrder.

func (ListWorkspaceMembersParamsSortOrder) Valid

Valid indicates whether the value is a known member of the ListWorkspaceMembersParamsSortOrder enum.

type ListWorkspaceMembersResponse

type ListWorkspaceMembersResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorkspaceMemberPage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWorkspaceMembersResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListWorkspaceMembersResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListWorkspaceMembersResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *ListWorkspaceMembersResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListWorkspaceMembersResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *ListWorkspaceMembersResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *ListWorkspaceMembersResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWorkspaceMembersResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWorkspaceMembersResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListWorkspaceMembersResponseDefaultHeaders
}

func ParseListWorkspaceMembersResponse

func ParseListWorkspaceMembersResponse(rsp *http.Response) (*ListWorkspaceMembersResponse, error)

ParseListWorkspaceMembersResponse parses an HTTP response from a ListWorkspaceMembersWithResponse call

func (ListWorkspaceMembersResponse) ContentType

func (r ListWorkspaceMembersResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWorkspaceMembersResponse) GetBody

func (r ListWorkspaceMembersResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWorkspaceMembersResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWorkspaceMembersResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListWorkspaceMembersResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWorkspaceMembersResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWorkspaceMembersResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWorkspaceMembersResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (ListWorkspaceMembersResponse) GetJSON406

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (ListWorkspaceMembersResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWorkspaceMembersResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWorkspaceMembersResponse) GetJSONDefault

func (r ListWorkspaceMembersResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListWorkspaceMembersResponse) Status

Status returns HTTPResponse.Status

func (ListWorkspaceMembersResponse) StatusCode

func (r ListWorkspaceMembersResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWorkspaceMembersResponse200Headers

type ListWorkspaceMembersResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceMembersResponse200Headers the declared response headers of an HTTP 200 response for ListWorkspaceMembers

type ListWorkspaceMembersResponse400Headers

type ListWorkspaceMembersResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceMembersResponse400Headers the declared response headers of an HTTP 400 response for ListWorkspaceMembers

type ListWorkspaceMembersResponse401Headers

type ListWorkspaceMembersResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceMembersResponse401Headers the declared response headers of an HTTP 401 response for ListWorkspaceMembers

type ListWorkspaceMembersResponse402Headers

type ListWorkspaceMembersResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceMembersResponse402Headers the declared response headers of an HTTP 402 response for ListWorkspaceMembers

type ListWorkspaceMembersResponse403Headers

type ListWorkspaceMembersResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceMembersResponse403Headers the declared response headers of an HTTP 403 response for ListWorkspaceMembers

type ListWorkspaceMembersResponse404Headers

type ListWorkspaceMembersResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceMembersResponse404Headers the declared response headers of an HTTP 404 response for ListWorkspaceMembers

type ListWorkspaceMembersResponse406Headers

type ListWorkspaceMembersResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceMembersResponse406Headers the declared response headers of an HTTP 406 response for ListWorkspaceMembers

type ListWorkspaceMembersResponse429Headers

type ListWorkspaceMembersResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceMembersResponse429Headers the declared response headers of an HTTP 429 response for ListWorkspaceMembers

type ListWorkspaceMembersResponse503Headers

type ListWorkspaceMembersResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceMembersResponse503Headers the declared response headers of an HTTP 503 response for ListWorkspaceMembers

type ListWorkspaceMembersResponseDefaultHeaders

type ListWorkspaceMembersResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspaceMembersResponseDefaultHeaders the declared response headers of an HTTP default response for ListWorkspaceMembers

type ListWorkspacesParams

type ListWorkspacesParams struct {
	// Limit Maximum number of items to return per page.
	Limit *int64 `form:"limit,omitempty" json:"limit,omitempty"`

	// Cursor Pass pagination.next_cursor from the previous response to fetch the next page. Omit for the first page; keep the same filters and sort order across pages.
	Cursor *string `form:"cursor,omitempty" json:"cursor,omitempty"`

	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

ListWorkspacesParams defines parameters for ListWorkspaces.

type ListWorkspacesResponse

type ListWorkspacesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *WorkspacePage
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *ListWorkspacesResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *ListWorkspacesResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *ListWorkspacesResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *ListWorkspacesResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *ListWorkspacesResponse403Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *ListWorkspacesResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *ListWorkspacesResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *ListWorkspacesResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *ListWorkspacesResponseDefaultHeaders
}

func ParseListWorkspacesResponse

func ParseListWorkspacesResponse(rsp *http.Response) (*ListWorkspacesResponse, error)

ParseListWorkspacesResponse parses an HTTP response from a ListWorkspacesWithResponse call

func (ListWorkspacesResponse) ContentType

func (r ListWorkspacesResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (ListWorkspacesResponse) GetBody

func (r ListWorkspacesResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (ListWorkspacesResponse) GetJSON200

func (r ListWorkspacesResponse) GetJSON200() *WorkspacePage

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (ListWorkspacesResponse) GetJSON400

func (r ListWorkspacesResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (ListWorkspacesResponse) GetJSON401

func (r ListWorkspacesResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (ListWorkspacesResponse) GetJSON402

func (r ListWorkspacesResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (ListWorkspacesResponse) GetJSON403

func (r ListWorkspacesResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (ListWorkspacesResponse) GetJSON406

func (r ListWorkspacesResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (ListWorkspacesResponse) GetJSON429

func (r ListWorkspacesResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (ListWorkspacesResponse) GetJSON503

func (r ListWorkspacesResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (ListWorkspacesResponse) GetJSONDefault

func (r ListWorkspacesResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (ListWorkspacesResponse) Status

func (r ListWorkspacesResponse) Status() string

Status returns HTTPResponse.Status

func (ListWorkspacesResponse) StatusCode

func (r ListWorkspacesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListWorkspacesResponse200Headers

type ListWorkspacesResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspacesResponse200Headers the declared response headers of an HTTP 200 response for ListWorkspaces

type ListWorkspacesResponse400Headers

type ListWorkspacesResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspacesResponse400Headers the declared response headers of an HTTP 400 response for ListWorkspaces

type ListWorkspacesResponse401Headers

type ListWorkspacesResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspacesResponse401Headers the declared response headers of an HTTP 401 response for ListWorkspaces

type ListWorkspacesResponse402Headers

type ListWorkspacesResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspacesResponse402Headers the declared response headers of an HTTP 402 response for ListWorkspaces

type ListWorkspacesResponse403Headers

type ListWorkspacesResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspacesResponse403Headers the declared response headers of an HTTP 403 response for ListWorkspaces

type ListWorkspacesResponse406Headers

type ListWorkspacesResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspacesResponse406Headers the declared response headers of an HTTP 406 response for ListWorkspaces

type ListWorkspacesResponse429Headers

type ListWorkspacesResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspacesResponse429Headers the declared response headers of an HTTP 429 response for ListWorkspaces

type ListWorkspacesResponse503Headers

type ListWorkspacesResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspacesResponse503Headers the declared response headers of an HTTP 503 response for ListWorkspaces

type ListWorkspacesResponseDefaultHeaders

type ListWorkspacesResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

ListWorkspacesResponseDefaultHeaders the declared response headers of an HTTP default response for ListWorkspaces

type LovableBeta

type LovableBeta = string

LovableBeta defines model for LovableBeta.

type LovableVersion

type LovableVersion = string

LovableVersion defines model for LovableVersion.

type Pagination

type Pagination struct {
	// HasMore Whether more results are available beyond this page.
	//
	// Example: true
	HasMore bool `json:"has_more"`

	// NextCursor Pass this value as the cursor query parameter to fetch the next page. Treat it as an opaque string; null when there are no more results.
	//
	// Example: eyJ2IjoxLCJpZCI6InByal8wMWp3M2s5In0
	NextCursor nullable.Nullable[string] `json:"next_cursor"`
}

Pagination defines model for Pagination.

type PiiLabel

type PiiLabel struct {
	// FoundAt When the label was recorded.
	//
	// Example: 2026-01-15T09:30:00Z
	FoundAt time.Time `json:"found_at"`

	// Id Unique ID for this personal data finding.
	//
	// Example: pii_01jw3k9m2xq8r5v0c7d4e6f2gh
	Id string `json:"id"`

	// Quote Sample of the detected value; null when not recorded. May contain unmasked personal data.
	//
	// Example: alex@example.com
	Quote nullable.Nullable[string] `json:"quote"`

	// Source Where personal data was detected. More values may be added; clients must tolerate unknown values.
	//
	// Example: chat
	Source PiiLabelSource `json:"source"`

	// Status Review state of the personal data finding. A resolved finding indicates that the flagged content was redacted or removed. More values may be added; clients must tolerate unknown values.
	//
	// Example: open
	Status PiiLabelStatus `json:"status"`
}

PiiLabel defines model for PiiLabel.

type PiiLabelPage

type PiiLabelPage struct {
	// Data Items in this page. Empty when there are none.
	Data       []PiiLabel `json:"data"`
	Pagination Pagination `json:"pagination"`
}

PiiLabelPage defines model for PiiLabelPage.

type PiiLabelSource

type PiiLabelSource string

PiiLabelSource Where personal data was detected. More values may be added; clients must tolerate unknown values.

Example: chat

const (
	PiiLabelSourceChat         PiiLabelSource = "chat"
	PiiLabelSourceCloudSql     PiiLabelSource = "cloud_sql"
	PiiLabelSourceCloudStorage PiiLabelSource = "cloud_storage"
	PiiLabelSourceConnector    PiiLabelSource = "connector"
	PiiLabelSourceUpload       PiiLabelSource = "upload"
)

Defines values for PiiLabelSource.

func (PiiLabelSource) Valid

func (e PiiLabelSource) Valid() bool

Valid indicates whether the value is a known member of the PiiLabelSource enum.

type PiiLabelStatus

type PiiLabelStatus string

PiiLabelStatus Review state of the personal data finding. A resolved finding indicates that the flagged content was redacted or removed. More values may be added; clients must tolerate unknown values.

Example: open

const (
	PiiLabelStatusFixed   PiiLabelStatus = "fixed"
	PiiLabelStatusIgnored PiiLabelStatus = "ignored"
	PiiLabelStatusOpen    PiiLabelStatus = "open"
)

Defines values for PiiLabelStatus.

func (PiiLabelStatus) Valid

func (e PiiLabelStatus) Valid() bool

Valid indicates whether the value is a known member of the PiiLabelStatus enum.

type Project

type Project struct {
	// CreatedAt When the project was created; null when unavailable.
	//
	// Example: 2026-01-15T09:30:00Z
	CreatedAt nullable.Nullable[time.Time] `json:"created_at"`

	// Description AI-written summary of what the project does; null until the agent has completed a response for the project.
	//
	// Example: A landing page for Acme with a hero, features, and pricing.
	Description nullable.Nullable[string] `json:"description"`

	// FolderId ID of the directory the project is in; null when it is in none. A project is in at most one directory, and a directory can be nested in another. Folder names and nesting come from GET /v1/workspaces/{workspace_id}/directorys.
	//
	// Example: fold_01jw3k9m2xq8r5v0c7d4e6f2gh
	FolderId nullable.Nullable[string] `json:"folder_id"`

	// Id Project ID.
	//
	// Example: prj_01jw3k9m2xq8r5v0c7d4e6f2gh
	Id string `json:"id"`

	// IsPublished Whether the project is published.
	//
	// Example: true
	IsPublished bool `json:"is_published"`

	// IsRemix Whether the project was created by remixing another project. The source project is not identified.
	//
	// Example: false
	IsRemix bool `json:"is_remix"`

	// LastEditedAt When the project last received an edit or a user chat message; null when neither has happened.
	//
	// Example: 2026-01-15T09:30:00Z
	LastEditedAt nullable.Nullable[time.Time] `json:"last_edited_at"`

	// LatestCommitSha SHA of the latest commit; null before the first commit.
	//
	// Example: a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0
	LatestCommitSha nullable.Nullable[string] `json:"latest_commit_sha"`

	// LatestScreenshotUrl URL of the latest screenshot; null until one has been captured.
	//
	// Example: https://screenshot2.lovable.dev/acme-landing-page.png
	LatestScreenshotUrl nullable.Nullable[string] `json:"latest_screenshot_url"`

	// Name Human-readable project name; null when none is set.
	//
	// Example: Acme Landing Page
	Name nullable.Nullable[string] `json:"name"`

	// OwnerId Project owner user UUID, matching the OAuth subject for clients using derived UUIDs. Null when unavailable.
	//
	// Example: 404666c6-b533-5d2c-9768-c425bf40559b
	OwnerId nullable.Nullable[string] `json:"owner_id"`

	// PreviewUrl URL of the project's main preview. Serves the latest successful preview build at the same address across commits; it is not pinned to a commit or draft. Uses the workspace's branded hostname unless the project opts out, and may change when branding changes. Null when the environment has no preview host; a URL does not mean a preview build is ready. Contains no authentication token; opening it requires a Lovable login unless the project is publicly remixable. To embed it from a third-party origin, use POST /v1/projects/{project_id}/embed-url.
	//
	// Example: https://id-preview--fa8b85cf-b9ff-4f1c-989a-74c32d1326f4.lovable.app
	PreviewUrl nullable.Nullable[string] `json:"preview_url"`

	// PublishAudience Who can open the published app: the audience set via POST or PATCH /v1/projects/{project_id}/publish; null while the app is not published. More values may be added; clients must tolerate unknown values.
	//
	// Example: public
	PublishAudience nullable.Nullable[ProjectPublishAudience] `json:"publish_audience"`

	// PublishAudienceTargets Groups and users who can open the published app when publish_audience is custom; empty for other audiences and while the app is offline. Users granted through invitations or organization membership are included; organization-wide access and pending email invitations are not listed.
	//
	// Example: [{"id":"grp_01jw3k9m2xq8r5v0c7d4e6f2gh","type":"group"}]
	PublishAudienceTargets []PublishAudienceGrant `json:"publish_audience_targets"`

	// Visibility Who can open the project in the Lovable editor. restricted: only the project owner, invited collaborators, and the workspace owner (Business or Enterprise). workspace_edit: every workspace member, at the access level their workspace role grants. workspace_view: every workspace member, with the access their workspace role grants capped at read; explicit project, directory, and group grants still permit editing (Business or Enterprise). Null when no setting is stored. Published app access is configured separately via publish_audience. More values may be added; clients must tolerate unknown values.
	//
	// Example: workspace_edit
	Visibility nullable.Nullable[ProjectVisibility] `json:"visibility"`

	// WorkspaceId Workspace the project belongs to.
	//
	// Example: workspace_01jw3k9m2xq8r5v0c7d4e6f2gh
	WorkspaceId string `json:"workspace_id"`
}

Project defines model for Project.

type ProjectAnalytics

type ProjectAnalytics struct {
	TimeSeries TimeSeriesGroup `json:"time_series"`
}

ProjectAnalytics defines model for ProjectAnalytics.

type ProjectAnalyticsBreakdowns

type ProjectAnalyticsBreakdowns struct {
	// Countries Top visitor countries by visitor sessions, up to 10 items ordered from highest to lowest. Unknown means the country could not be determined.
	//
	// Example: [{"label":"United States","visitors":540}]
	Countries []AnalyticsBreakdownItem `json:"countries"`

	// Devices Top device types by visitor sessions, up to 10 items ordered from highest to lowest.
	//
	// Example: [{"label":"Desktop","visitors":820}]
	Devices []AnalyticsBreakdownItem `json:"devices"`

	// Pages Top page paths by visitor sessions, up to 10 items ordered from highest to lowest.
	//
	// Example: [{"label":"/pricing","visitors":1280}]
	Pages []AnalyticsBreakdownItem `json:"pages"`

	// Sources Top referring domains by visitor sessions, up to 10 items ordered from highest to lowest. Direct means no referring domain was recorded.
	//
	// Example: [{"label":"google.com","visitors":640}]
	Sources []AnalyticsBreakdownItem `json:"sources"`
}

ProjectAnalyticsBreakdowns defines model for ProjectAnalyticsBreakdowns.

type ProjectCollaborator added in v0.2.0

type ProjectCollaborator struct {
	// AcceptedAt When the user accepted the project invitation. Null when no acceptance time is recorded, including pending invitations.
	//
	// Example: 2026-01-15T09:30:00Z
	AcceptedAt nullable.Nullable[time.Time] `json:"accepted_at"`

	// AccessLevel Access level granted to this collaborator.
	//
	// Example: admin
	AccessLevel ProjectCollaboratorAccessLevel `json:"access_level"`

	// Email Collaborator email address. Uses the workspace membership email when available, otherwise the account email. Null when unavailable.
	//
	// Example: jane.cooper@acme.com
	Email nullable.Nullable[string] `json:"email"`

	// InvitedAt When the user was invited to the project. Null when no invitation time is recorded.
	//
	// Example: 2026-01-15T09:30:00Z
	InvitedAt nullable.Nullable[time.Time] `json:"invited_at"`

	// InvitedByUserId User UUID of the inviter. Null when no inviter is recorded.
	//
	// Example: 404666c6-b533-5d2c-9768-c425bf40559b
	InvitedByUserId nullable.Nullable[string] `json:"invited_by_user_id"`

	// IsInternal Whether the collaborator belongs to the project's workspace or has an email address on a domain verified by that workspace. Internal refers to the customer's workspace, not Lovable staff.
	//
	// Example: true
	IsInternal bool `json:"is_internal"`

	// IsWorkspaceMember Whether the collaborator holds a workspace role in the project's workspace. False for users added only to projects, who appear in the workspace members list with the role external_collaborator.
	//
	// Example: true
	IsWorkspaceMember bool `json:"is_workspace_member"`

	// LastAccessedAt When the collaborator last accessed this project, from the most recent project or preview auth token mint (session-start granularity, not per page view). Any authenticated open of the project surface counts, including a published-site open by a collaborator. Always present, so an access review can tell 'never accessed' from a missing field. Null when no access is recorded under the current grant: an access that predates invited_at belongs to a revoked grant and reports as null.
	//
	// Example: 2026-01-20T14:05:00Z
	LastAccessedAt nullable.Nullable[time.Time] `json:"last_accessed_at"`

	// Name Collaborator display name, falling back to the email address. Null when neither is available.
	//
	// Example: Jane Cooper
	Name nullable.Nullable[string] `json:"name"`

	// UserId User UUID of the collaborator. Matches user_id in GET /v1/workspaces/{workspace_id}/members and the OAuth subject for clients using derived UUIDs.
	//
	// Example: 404666c6-b533-5d2c-9768-c425bf40559b
	UserId string `json:"user_id"`
}

ProjectCollaborator defines model for ProjectCollaborator.

type ProjectCollaboratorAccessLevel added in v0.2.0

type ProjectCollaboratorAccessLevel string

ProjectCollaboratorAccessLevel Access level granted to this collaborator.

Example: admin

const (
	ProjectCollaboratorAccessLevelAdmin ProjectCollaboratorAccessLevel = "admin"
	ProjectCollaboratorAccessLevelNone  ProjectCollaboratorAccessLevel = "none"
	ProjectCollaboratorAccessLevelOwner ProjectCollaboratorAccessLevel = "owner"
	ProjectCollaboratorAccessLevelRead  ProjectCollaboratorAccessLevel = "read"
	ProjectCollaboratorAccessLevelWrite ProjectCollaboratorAccessLevel = "write"
)

Defines values for ProjectCollaboratorAccessLevel.

func (ProjectCollaboratorAccessLevel) Valid added in v0.2.0

Valid indicates whether the value is a known member of the ProjectCollaboratorAccessLevel enum.

type ProjectCollaboratorPage added in v0.2.0

type ProjectCollaboratorPage struct {
	// Data Items in this page. Empty when there are none.
	Data       []ProjectCollaborator `json:"data"`
	Pagination Pagination            `json:"pagination"`
}

ProjectCollaboratorPage defines model for ProjectCollaboratorPage.

type ProjectPublishAudience

type ProjectPublishAudience string

ProjectPublishAudience Who can open the published app: the audience set via POST or PATCH /v1/projects/{project_id}/publish; null while the app is not published. More values may be added; clients must tolerate unknown values.

Example: public

const (
	ProjectPublishAudienceCustom    ProjectPublishAudience = "custom"
	ProjectPublishAudiencePublic    ProjectPublishAudience = "public"
	ProjectPublishAudienceWorkspace ProjectPublishAudience = "workspace"
)

Defines values for ProjectPublishAudience.

func (ProjectPublishAudience) Valid

func (e ProjectPublishAudience) Valid() bool

Valid indicates whether the value is a known member of the ProjectPublishAudience enum.

type ProjectRealtimeAnalytics

type ProjectRealtimeAnalytics struct {
	// Buckets One-minute buckets over the last 30 minutes, ordered oldest first. Minutes without visits are not included.
	//
	// Example: [{"timestamp":"2026-01-15T00:00:00Z","visitors":42}]
	Buckets []RealtimeDataPoint `json:"buckets"`

	// CurrentVisitors Unique visitor sessions with a page view in the last 5 minutes.
	//
	// Example: 12
	CurrentVisitors int64 `json:"current_visitors"`
}

ProjectRealtimeAnalytics defines model for ProjectRealtimeAnalytics.

type ProjectSummary

type ProjectSummary struct {
	// CreatedAt When the project was created; null when unavailable.
	//
	// Example: 2026-01-15T09:30:00Z
	CreatedAt nullable.Nullable[time.Time] `json:"created_at"`

	// Description AI-written summary of what the project does; null until the agent has completed a response for the project.
	//
	// Example: A landing page for Acme with a hero, features, and pricing.
	Description nullable.Nullable[string] `json:"description"`

	// FolderId ID of the directory the project is in; null when it is in none. A project is in at most one directory, and a directory can be nested in another. Folder names and nesting come from GET /v1/workspaces/{workspace_id}/directorys.
	//
	// Example: fold_01jw3k9m2xq8r5v0c7d4e6f2gh
	FolderId nullable.Nullable[string] `json:"folder_id"`

	// Id Project ID.
	//
	// Example: prj_01jw3k9m2xq8r5v0c7d4e6f2gh
	Id string `json:"id"`

	// IsPublished Whether the project is published.
	//
	// Example: true
	IsPublished bool `json:"is_published"`

	// LastEditedAt When the project last received an edit or a user chat message; null when neither has happened.
	//
	// Example: 2026-01-15T09:30:00Z
	LastEditedAt nullable.Nullable[time.Time] `json:"last_edited_at"`

	// LatestScreenshotUrl URL of the latest screenshot; null until one has been captured.
	//
	// Example: https://screenshot2.lovable.dev/acme-landing-page.png
	LatestScreenshotUrl nullable.Nullable[string] `json:"latest_screenshot_url"`

	// Name Human-readable project name; null when none is set.
	//
	// Example: Acme Landing Page
	Name nullable.Nullable[string] `json:"name"`

	// OwnerId Project owner user UUID, matching the OAuth subject for clients using derived UUIDs. Null when unavailable.
	//
	// Example: 404666c6-b533-5d2c-9768-c425bf40559b
	OwnerId nullable.Nullable[string] `json:"owner_id"`

	// PublishAudience Who can open the published app: the audience set via POST or PATCH /v1/projects/{project_id}/publish; null while the app is not published. More values may be added; clients must tolerate unknown values.
	//
	// Example: public
	PublishAudience nullable.Nullable[ProjectSummaryPublishAudience] `json:"publish_audience"`

	// Visibility Who can open the project in the Lovable editor. restricted: only the project owner, invited collaborators, and the workspace owner (Business or Enterprise). workspace_edit: every workspace member, at the access level their workspace role grants. workspace_view: every workspace member, with the access their workspace role grants capped at read; explicit project, directory, and group grants still permit editing (Business or Enterprise). Null when no setting is stored. Published app access is configured separately via publish_audience. More values may be added; clients must tolerate unknown values.
	//
	// Example: workspace_edit
	Visibility nullable.Nullable[ProjectSummaryVisibility] `json:"visibility"`

	// WorkspaceId Workspace the project belongs to.
	//
	// Example: workspace_01jw3k9m2xq8r5v0c7d4e6f2gh
	WorkspaceId string `json:"workspace_id"`
}

ProjectSummary defines model for ProjectSummary.

type ProjectSummaryPage

type ProjectSummaryPage struct {
	// Data Items in this page. Empty when there are none.
	Data       []ProjectSummary `json:"data"`
	Pagination Pagination       `json:"pagination"`
}

ProjectSummaryPage defines model for ProjectSummaryPage.

type ProjectSummaryPublishAudience

type ProjectSummaryPublishAudience string

ProjectSummaryPublishAudience Who can open the published app: the audience set via POST or PATCH /v1/projects/{project_id}/publish; null while the app is not published. More values may be added; clients must tolerate unknown values.

Example: public

const (
	ProjectSummaryPublishAudienceCustom    ProjectSummaryPublishAudience = "custom"
	ProjectSummaryPublishAudiencePublic    ProjectSummaryPublishAudience = "public"
	ProjectSummaryPublishAudienceWorkspace ProjectSummaryPublishAudience = "workspace"
)

Defines values for ProjectSummaryPublishAudience.

func (ProjectSummaryPublishAudience) Valid

Valid indicates whether the value is a known member of the ProjectSummaryPublishAudience enum.

type ProjectSummaryVisibility

type ProjectSummaryVisibility string

ProjectSummaryVisibility Who can open the project in the Lovable editor. restricted: only the project owner, invited collaborators, and the workspace owner (Business or Enterprise). workspace_edit: every workspace member, at the access level their workspace role grants. workspace_view: every workspace member, with the access their workspace role grants capped at read; explicit project, directory, and group grants still permit editing (Business or Enterprise). Null when no setting is stored. Published app access is configured separately via publish_audience. More values may be added; clients must tolerate unknown values.

Example: workspace_edit

const (
	ProjectSummaryVisibilityRestricted    ProjectSummaryVisibility = "restricted"
	ProjectSummaryVisibilityWorkspaceEdit ProjectSummaryVisibility = "workspace_edit"
	ProjectSummaryVisibilityWorkspaceView ProjectSummaryVisibility = "workspace_view"
)

Defines values for ProjectSummaryVisibility.

func (ProjectSummaryVisibility) Valid

func (e ProjectSummaryVisibility) Valid() bool

Valid indicates whether the value is a known member of the ProjectSummaryVisibility enum.

type ProjectVisibility

type ProjectVisibility string

ProjectVisibility Who can open the project in the Lovable editor. restricted: only the project owner, invited collaborators, and the workspace owner (Business or Enterprise). workspace_edit: every workspace member, at the access level their workspace role grants. workspace_view: every workspace member, with the access their workspace role grants capped at read; explicit project, directory, and group grants still permit editing (Business or Enterprise). Null when no setting is stored. Published app access is configured separately via publish_audience. More values may be added; clients must tolerate unknown values.

Example: workspace_edit

const (
	ProjectVisibilityRestricted    ProjectVisibility = "restricted"
	ProjectVisibilityWorkspaceEdit ProjectVisibility = "workspace_edit"
	ProjectVisibilityWorkspaceView ProjectVisibility = "workspace_view"
)

Defines values for ProjectVisibility.

func (ProjectVisibility) Valid

func (e ProjectVisibility) Valid() bool

Valid indicates whether the value is a known member of the ProjectVisibility enum.

type PublishAudienceGrant

type PublishAudienceGrant struct {
	// Id Group ID as returned by GET /v1/workspaces/{workspace_id}/groups, or the user's UUID as other responses report it.
	//
	// Example: grp_01jw3k9m2xq8r5v0c7d4e6f2gh
	Id string `json:"id"`

	// Type Target type. Users are reported but cannot yet be set through audience_targets.
	//
	// Example: group
	Type PublishAudienceGrantType `json:"type"`
}

PublishAudienceGrant defines model for PublishAudienceGrant.

type PublishAudienceGrantType

type PublishAudienceGrantType string

PublishAudienceGrantType Target type. Users are reported but cannot yet be set through audience_targets.

Example: group

const (
	PublishAudienceGrantTypeGroup PublishAudienceGrantType = "group"
	PublishAudienceGrantTypeUser  PublishAudienceGrantType = "user"
)

Defines values for PublishAudienceGrantType.

func (PublishAudienceGrantType) Valid

func (e PublishAudienceGrantType) Valid() bool

Valid indicates whether the value is a known member of the PublishAudienceGrantType enum.

type PublishAudienceTarget

type PublishAudienceTarget struct {
	// Id Group ID, as returned by GET /v1/workspaces/{workspace_id}/groups.
	//
	// Example: grp_01jw3k9m2xq8r5v0c7d4e6f2gh
	Id string `json:"id"`

	// Type Audience target type. Only group targets are supported.
	//
	// Example: group
	Type PublishAudienceTargetType `json:"type"`
}

PublishAudienceTarget defines model for PublishAudienceTarget.

type PublishAudienceTargetType

type PublishAudienceTargetType string

PublishAudienceTargetType Audience target type. Only group targets are supported.

Example: group

const (
	PublishAudienceTargetTypeGroup PublishAudienceTargetType = "group"
)

Defines values for PublishAudienceTargetType.

func (PublishAudienceTargetType) Valid

func (e PublishAudienceTargetType) Valid() bool

Valid indicates whether the value is a known member of the PublishAudienceTargetType enum.

type PublishProjectJSONRequestBody

type PublishProjectJSONRequestBody = PublishProjectRequest

PublishProjectJSONRequestBody defines body for PublishProject for application/json ContentType.

type PublishProjectParams

type PublishProjectParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

PublishProjectParams defines parameters for PublishProject.

type PublishProjectRequest

type PublishProjectRequest struct {
	// Audience Who can open the published app; project reads report this value as publish_audience. A custom audience can include existing grants managed in the UI. Omit to keep the current setting.
	//
	// Example: custom
	Audience *PublishProjectRequestAudience `json:"audience,omitempty"`

	// AudienceTargets Groups who can open the app; allowed only with audience custom. Providing a list replaces all group and user grants and removes workspace-wide access; an empty list removes those grants. Existing organization access and email invitations managed in the UI are preserved. Omit to preserve saved targets across audience changes. Targets are inactive outside custom mode. Null is not accepted.
	//
	// Example: [{"id":"grp_01jw3k9m2xq8r5v0c7d4e6f2gh","type":"group"}]
	AudienceTargets *[]PublishAudienceTarget `json:"audience_targets,omitempty"`

	// Name Slug for the managed published URL: acme-landing-page gives https://acme-landing-page.lovable.app. Custom domains and workspace branding can change the hostname.
	//
	// Example: acme-landing-page
	Name *string `json:"name,omitempty"`
}

PublishProjectRequest defines model for PublishProjectRequest.

type PublishProjectRequestAudience

type PublishProjectRequestAudience string

PublishProjectRequestAudience Who can open the published app; project reads report this value as publish_audience. A custom audience can include existing grants managed in the UI. Omit to keep the current setting.

Example: custom

const (
	PublishProjectRequestAudienceCustom    PublishProjectRequestAudience = "custom"
	PublishProjectRequestAudiencePublic    PublishProjectRequestAudience = "public"
	PublishProjectRequestAudienceWorkspace PublishProjectRequestAudience = "workspace"
)

Defines values for PublishProjectRequestAudience.

func (PublishProjectRequestAudience) Valid

Valid indicates whether the value is a known member of the PublishProjectRequestAudience enum.

type PublishProjectResponse

type PublishProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON202 the response for an HTTP 202 `application/json` response
	JSON202 *Deployment
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers202 the parsed response headers for an HTTP 202 response
	Headers202 *PublishProjectResponse202Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *PublishProjectResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *PublishProjectResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *PublishProjectResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *PublishProjectResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *PublishProjectResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *PublishProjectResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *PublishProjectResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *PublishProjectResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *PublishProjectResponseDefaultHeaders
}

func ParsePublishProjectResponse

func ParsePublishProjectResponse(rsp *http.Response) (*PublishProjectResponse, error)

ParsePublishProjectResponse parses an HTTP response from a PublishProjectWithResponse call

func (PublishProjectResponse) ContentType

func (r PublishProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (PublishProjectResponse) GetBody

func (r PublishProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (PublishProjectResponse) GetJSON202

func (r PublishProjectResponse) GetJSON202() *Deployment

GetJSON202 returns the response for an HTTP 202 `application/json` response

func (PublishProjectResponse) GetJSON400

func (r PublishProjectResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (PublishProjectResponse) GetJSON401

func (r PublishProjectResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (PublishProjectResponse) GetJSON402

func (r PublishProjectResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (PublishProjectResponse) GetJSON403

func (r PublishProjectResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (PublishProjectResponse) GetJSON404

func (r PublishProjectResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (PublishProjectResponse) GetJSON406

func (r PublishProjectResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (PublishProjectResponse) GetJSON429

func (r PublishProjectResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (PublishProjectResponse) GetJSON503

func (r PublishProjectResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (PublishProjectResponse) GetJSONDefault

func (r PublishProjectResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (PublishProjectResponse) Status

func (r PublishProjectResponse) Status() string

Status returns HTTPResponse.Status

func (PublishProjectResponse) StatusCode

func (r PublishProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PublishProjectResponse202Headers

type PublishProjectResponse202Headers struct {
	Location                          *string
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

PublishProjectResponse202Headers the declared response headers of an HTTP 202 response for PublishProject

type PublishProjectResponse400Headers

type PublishProjectResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

PublishProjectResponse400Headers the declared response headers of an HTTP 400 response for PublishProject

type PublishProjectResponse401Headers

type PublishProjectResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

PublishProjectResponse401Headers the declared response headers of an HTTP 401 response for PublishProject

type PublishProjectResponse402Headers

type PublishProjectResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

PublishProjectResponse402Headers the declared response headers of an HTTP 402 response for PublishProject

type PublishProjectResponse403Headers

type PublishProjectResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

PublishProjectResponse403Headers the declared response headers of an HTTP 403 response for PublishProject

type PublishProjectResponse404Headers

type PublishProjectResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

PublishProjectResponse404Headers the declared response headers of an HTTP 404 response for PublishProject

type PublishProjectResponse406Headers

type PublishProjectResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

PublishProjectResponse406Headers the declared response headers of an HTTP 406 response for PublishProject

type PublishProjectResponse429Headers

type PublishProjectResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

PublishProjectResponse429Headers the declared response headers of an HTTP 429 response for PublishProject

type PublishProjectResponse503Headers

type PublishProjectResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

PublishProjectResponse503Headers the declared response headers of an HTTP 503 response for PublishProject

type PublishProjectResponseDefaultHeaders

type PublishProjectResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

PublishProjectResponseDefaultHeaders the declared response headers of an HTTP default response for PublishProject

type PublishSettings

type PublishSettings struct {
	// Audience Who can open the published app; project reads report this value as publish_audience. More values may be added; clients must tolerate unknown values.
	//
	// Example: custom
	Audience PublishSettingsAudience `json:"audience"`

	// AudienceTargets Saved groups and users, including while the app is offline or the audience is not custom. These targets grant access only in custom mode. Users granted through invitations or organization membership are included; organization-wide access and pending email invitations are not listed. This read projection is not a writable target list; only groups can be supplied in audience_targets.
	//
	// Example: [{"id":"grp_01jw3k9m2xq8r5v0c7d4e6f2gh","type":"group"}]
	AudienceTargets []PublishAudienceGrant `json:"audience_targets"`
}

PublishSettings defines model for PublishSettings.

type PublishSettingsAudience

type PublishSettingsAudience string

PublishSettingsAudience Who can open the published app; project reads report this value as publish_audience. More values may be added; clients must tolerate unknown values.

Example: custom

const (
	PublishSettingsAudienceCustom    PublishSettingsAudience = "custom"
	PublishSettingsAudiencePublic    PublishSettingsAudience = "public"
	PublishSettingsAudienceWorkspace PublishSettingsAudience = "workspace"
)

Defines values for PublishSettingsAudience.

func (PublishSettingsAudience) Valid

func (e PublishSettingsAudience) Valid() bool

Valid indicates whether the value is a known member of the PublishSettingsAudience enum.

type RealtimeDataPoint

type RealtimeDataPoint struct {
	// Timestamp Bucket start in RFC 3339 format, UTC.
	//
	// Example: 2026-01-15T00:00:00Z
	Timestamp time.Time `json:"timestamp"`

	// Visitors Unique visitor sessions with a page view in this minute. A session can appear in multiple buckets.
	//
	// Example: 42
	Visitors int64 `json:"visitors"`
}

RealtimeDataPoint defines model for RealtimeDataPoint.

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type SecurityFinding

type SecurityFinding struct {
	// Category Finding category; null when the scanner reports none.
	//
	// Example: data_exposure
	Category nullable.Nullable[string] `json:"category"`

	// CreatedAt When this finding was first recorded, UTC.
	//
	// Example: 2026-01-15T09:30:00Z
	CreatedAt time.Time `json:"created_at"`

	// Description Human-readable summary of the finding; null when the scanner reports none.
	//
	// Example: A public table has row-level security disabled, exposing all rows to anonymous clients.
	Description nullable.Nullable[string] `json:"description"`

	// Id Stable identifier for this finding.
	//
	// Example: b2c3d4e5-f6a7-8901-bcde-f23456789012
	Id string `json:"id"`

	// Level Severity reported by the scanner. More values may be added; clients must tolerate unknown values.
	//
	// Example: error
	Level SecurityFindingLevel `json:"level"`

	// Name Short finding title.
	//
	// Example: Row-level security disabled on a public table
	Name string `json:"name"`

	// ScannerName Name of the scanner that produced this finding.
	//
	// Example: agent_security
	ScannerName string `json:"scanner_name"`

	// Status Review state of the security finding. suppressed means every deep-scan check the finding cites is turned off for the project: hidden, not resolved. More values may be added; clients must tolerate unknown values.
	//
	// Example: open
	Status SecurityFindingStatus `json:"status"`

	// UpdatedAt When this finding was last updated, UTC.
	//
	// Example: 2026-01-15T09:30:00Z
	UpdatedAt time.Time `json:"updated_at"`
}

SecurityFinding defines model for SecurityFinding.

type SecurityFindingLevel

type SecurityFindingLevel string

SecurityFindingLevel Severity reported by the scanner. More values may be added; clients must tolerate unknown values.

Example: error

const (
	SecurityFindingLevelError SecurityFindingLevel = "error"
	SecurityFindingLevelInfo  SecurityFindingLevel = "info"
	SecurityFindingLevelWarn  SecurityFindingLevel = "warn"
)

Defines values for SecurityFindingLevel.

func (SecurityFindingLevel) Valid

func (e SecurityFindingLevel) Valid() bool

Valid indicates whether the value is a known member of the SecurityFindingLevel enum.

type SecurityFindingPage

type SecurityFindingPage struct {
	// Data Items in this page. Empty when there are none.
	Data       []SecurityFinding `json:"data"`
	Pagination Pagination        `json:"pagination"`
}

SecurityFindingPage defines model for SecurityFindingPage.

type SecurityFindingStatus

type SecurityFindingStatus string

SecurityFindingStatus Review state of the security finding. suppressed means every deep-scan check the finding cites is turned off for the project: hidden, not resolved. More values may be added; clients must tolerate unknown values.

Example: open

const (
	SecurityFindingStatusFixed      SecurityFindingStatus = "fixed"
	SecurityFindingStatusIgnored    SecurityFindingStatus = "ignored"
	SecurityFindingStatusOpen       SecurityFindingStatus = "open"
	SecurityFindingStatusSuppressed SecurityFindingStatus = "suppressed"
)

Defines values for SecurityFindingStatus.

func (SecurityFindingStatus) Valid

func (e SecurityFindingStatus) Valid() bool

Valid indicates whether the value is a known member of the SecurityFindingStatus enum.

type SecurityScan

type SecurityScan struct {
	// CommitSha Git commit SHA of the project when the scan started; null when unavailable.
	//
	// Example: 9fceb02d0ae598e95dc970b74767f19372d61af8
	CommitSha nullable.Nullable[string] `json:"commit_sha"`

	// FinishedAt When the scan finished, UTC; null while still running.
	//
	// Example: 2026-01-15T09:30:00Z
	FinishedAt nullable.Nullable[time.Time] `json:"finished_at"`

	// Id Security scan ID.
	//
	// Example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
	Id string `json:"id"`

	// RequestedScanners Identifiers of the security checks requested for this scan.
	//
	// Example: ["agent_security"]
	RequestedScanners []string `json:"requested_scanners"`

	// StartedAt When the scan started, UTC.
	//
	// Example: 2026-01-15T09:30:00Z
	StartedAt time.Time `json:"started_at"`

	// Status Overall scan state. Finishing a scan does not mean that no security issues were found. More values may be added; clients must tolerate unknown values.
	//
	// Example: completed
	Status SecurityScanStatus `json:"status"`
}

SecurityScan defines model for SecurityScan.

type SecurityScanPage

type SecurityScanPage struct {
	// Data Items in this page. Empty when there are none.
	Data       []SecurityScan `json:"data"`
	Pagination Pagination     `json:"pagination"`
}

SecurityScanPage defines model for SecurityScanPage.

type SecurityScanStatus

type SecurityScanStatus string

SecurityScanStatus Overall scan state. Finishing a scan does not mean that no security issues were found. More values may be added; clients must tolerate unknown values.

Example: completed

const (
	SecurityScanStatusCompleted SecurityScanStatus = "completed"
	SecurityScanStatusFailed    SecurityScanStatus = "failed"
	SecurityScanStatusRunning   SecurityScanStatus = "running"
)

Defines values for SecurityScanStatus.

func (SecurityScanStatus) Valid

func (e SecurityScanStatus) Valid() bool

Valid indicates whether the value is a known member of the SecurityScanStatus enum.

type TimeSeriesData

type TimeSeriesData struct {
	// Data Values ordered by bucket start time. Bucket size is set by granularity; future buckets are not included.
	//
	// Example: [{"timestamp":"2026-01-15T00:00:00Z","value":1280}]
	Data []TimeSeriesDataPoint `json:"data"`

	// Label Metric identifier, e.g. "session_duration".
	//
	// Example: visitors
	Label string `json:"label"`

	// Total Aggregate over the requested range. The unit and calculation (sum, ratio, or average) are defined by the parent metric.
	//
	// Example: 1280
	Total float64 `json:"total"`
}

TimeSeriesData defines model for TimeSeriesData.

type TimeSeriesDataPoint

type TimeSeriesDataPoint struct {
	// Timestamp Bucket start in RFC 3339 format, UTC.
	//
	// Example: 2026-01-15T00:00:00Z
	Timestamp time.Time `json:"timestamp"`

	// Value Metric value for this bucket, in the unit defined by the parent metric.
	//
	// Example: 1280
	Value float64 `json:"value"`
}

TimeSeriesDataPoint defines model for TimeSeriesDataPoint.

type TimeSeriesGroup

type TimeSeriesGroup struct {
	BounceRate        TimeSeriesData `json:"bounce_rate"`
	Pageviews         TimeSeriesData `json:"pageviews"`
	PageviewsPerVisit TimeSeriesData `json:"pageviews_per_visit"`
	SessionDuration   TimeSeriesData `json:"session_duration"`
	Visitors          TimeSeriesData `json:"visitors"`
}

TimeSeriesGroup defines model for TimeSeriesGroup.

type UnpublishProjectParams

type UnpublishProjectParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

UnpublishProjectParams defines parameters for UnpublishProject.

type UnpublishProjectResponse

type UnpublishProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers204 the parsed response headers for an HTTP 204 response
	Headers204 *UnpublishProjectResponse204Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *UnpublishProjectResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *UnpublishProjectResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *UnpublishProjectResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *UnpublishProjectResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *UnpublishProjectResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *UnpublishProjectResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UnpublishProjectResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *UnpublishProjectResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *UnpublishProjectResponseDefaultHeaders
}

func ParseUnpublishProjectResponse

func ParseUnpublishProjectResponse(rsp *http.Response) (*UnpublishProjectResponse, error)

ParseUnpublishProjectResponse parses an HTTP response from a UnpublishProjectWithResponse call

func (UnpublishProjectResponse) ContentType

func (r UnpublishProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UnpublishProjectResponse) GetBody

func (r UnpublishProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UnpublishProjectResponse) GetJSON400

func (r UnpublishProjectResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UnpublishProjectResponse) GetJSON401

func (r UnpublishProjectResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UnpublishProjectResponse) GetJSON402

func (r UnpublishProjectResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (UnpublishProjectResponse) GetJSON403

func (r UnpublishProjectResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UnpublishProjectResponse) GetJSON404

func (r UnpublishProjectResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UnpublishProjectResponse) GetJSON406

func (r UnpublishProjectResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (UnpublishProjectResponse) GetJSON429

func (r UnpublishProjectResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (UnpublishProjectResponse) GetJSON503

func (r UnpublishProjectResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (UnpublishProjectResponse) GetJSONDefault

func (r UnpublishProjectResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UnpublishProjectResponse) Status

func (r UnpublishProjectResponse) Status() string

Status returns HTTPResponse.Status

func (UnpublishProjectResponse) StatusCode

func (r UnpublishProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UnpublishProjectResponse204Headers

type UnpublishProjectResponse204Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UnpublishProjectResponse204Headers the declared response headers of an HTTP 204 response for UnpublishProject

type UnpublishProjectResponse400Headers

type UnpublishProjectResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UnpublishProjectResponse400Headers the declared response headers of an HTTP 400 response for UnpublishProject

type UnpublishProjectResponse401Headers

type UnpublishProjectResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UnpublishProjectResponse401Headers the declared response headers of an HTTP 401 response for UnpublishProject

type UnpublishProjectResponse402Headers

type UnpublishProjectResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UnpublishProjectResponse402Headers the declared response headers of an HTTP 402 response for UnpublishProject

type UnpublishProjectResponse403Headers

type UnpublishProjectResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UnpublishProjectResponse403Headers the declared response headers of an HTTP 403 response for UnpublishProject

type UnpublishProjectResponse404Headers

type UnpublishProjectResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UnpublishProjectResponse404Headers the declared response headers of an HTTP 404 response for UnpublishProject

type UnpublishProjectResponse406Headers

type UnpublishProjectResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UnpublishProjectResponse406Headers the declared response headers of an HTTP 406 response for UnpublishProject

type UnpublishProjectResponse429Headers

type UnpublishProjectResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UnpublishProjectResponse429Headers the declared response headers of an HTTP 429 response for UnpublishProject

type UnpublishProjectResponse503Headers

type UnpublishProjectResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UnpublishProjectResponse503Headers the declared response headers of an HTTP 503 response for UnpublishProject

type UnpublishProjectResponseDefaultHeaders

type UnpublishProjectResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UnpublishProjectResponseDefaultHeaders the declared response headers of an HTTP default response for UnpublishProject

type UpdateProjectJSONRequestBody

type UpdateProjectJSONRequestBody = UpdateProjectRequest

UpdateProjectJSONRequestBody defines body for UpdateProject for application/json ContentType.

type UpdateProjectParams

type UpdateProjectParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

UpdateProjectParams defines parameters for UpdateProject.

type UpdateProjectRequest

type UpdateProjectRequest struct {
	// Name Project display name, 1-100 Unicode code points. Must contain a non-whitespace character. Allows Unicode letters, combining marks, numbers, space separators (Zs), punctuation - _ . ' · & ( ) [ ] | , ! : ‘ ’, and the zero-width non-joiner/joiner U+200C/U+200D. Other characters (including 🚀, tabs, and line breaks), links, recognized domain names, and IP addresses are rejected. Leading and trailing spaces are preserved. Omit to keep the current name.
	//
	// Example: Acme Landing Page
	Name *string `json:"name,omitempty"`

	// Visibility Who can open the project in the Lovable editor. restricted: only the project owner, invited collaborators, and the workspace owner (Business or Enterprise). workspace_edit: every workspace member, at the access level their workspace role grants. workspace_view: every workspace member, with the access their workspace role grants capped at read; explicit project, directory, and group grants still permit editing (Business or Enterprise). Published app access is configured separately via publish_audience. Omit to keep the current setting.
	//
	// Example: workspace_edit
	Visibility *UpdateProjectRequestVisibility `json:"visibility,omitempty"`
}

UpdateProjectRequest defines model for UpdateProjectRequest.

type UpdateProjectRequestVisibility

type UpdateProjectRequestVisibility string

UpdateProjectRequestVisibility Who can open the project in the Lovable editor. restricted: only the project owner, invited collaborators, and the workspace owner (Business or Enterprise). workspace_edit: every workspace member, at the access level their workspace role grants. workspace_view: every workspace member, with the access their workspace role grants capped at read; explicit project, directory, and group grants still permit editing (Business or Enterprise). Published app access is configured separately via publish_audience. Omit to keep the current setting.

Example: workspace_edit

const (
	UpdateProjectRequestVisibilityRestricted    UpdateProjectRequestVisibility = "restricted"
	UpdateProjectRequestVisibilityWorkspaceEdit UpdateProjectRequestVisibility = "workspace_edit"
	UpdateProjectRequestVisibilityWorkspaceView UpdateProjectRequestVisibility = "workspace_view"
)

Defines values for UpdateProjectRequestVisibility.

func (UpdateProjectRequestVisibility) Valid

Valid indicates whether the value is a known member of the UpdateProjectRequestVisibility enum.

type UpdateProjectResponse

type UpdateProjectResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *Project
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdateProjectResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *UpdateProjectResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *UpdateProjectResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *UpdateProjectResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *UpdateProjectResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *UpdateProjectResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *UpdateProjectResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdateProjectResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *UpdateProjectResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *UpdateProjectResponseDefaultHeaders
}

func ParseUpdateProjectResponse

func ParseUpdateProjectResponse(rsp *http.Response) (*UpdateProjectResponse, error)

ParseUpdateProjectResponse parses an HTTP response from a UpdateProjectWithResponse call

func (UpdateProjectResponse) ContentType

func (r UpdateProjectResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdateProjectResponse) GetBody

func (r UpdateProjectResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdateProjectResponse) GetJSON200

func (r UpdateProjectResponse) GetJSON200() *Project

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdateProjectResponse) GetJSON400

func (r UpdateProjectResponse) GetJSON400() *ErrorResponse

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdateProjectResponse) GetJSON401

func (r UpdateProjectResponse) GetJSON401() *ErrorResponse

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdateProjectResponse) GetJSON402

func (r UpdateProjectResponse) GetJSON402() *ErrorResponse

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (UpdateProjectResponse) GetJSON403

func (r UpdateProjectResponse) GetJSON403() *ErrorResponse

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdateProjectResponse) GetJSON404

func (r UpdateProjectResponse) GetJSON404() *ErrorResponse

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdateProjectResponse) GetJSON406

func (r UpdateProjectResponse) GetJSON406() *ErrorResponse

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (UpdateProjectResponse) GetJSON429

func (r UpdateProjectResponse) GetJSON429() *ErrorResponse

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (UpdateProjectResponse) GetJSON503

func (r UpdateProjectResponse) GetJSON503() *ErrorResponse

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (UpdateProjectResponse) GetJSONDefault

func (r UpdateProjectResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdateProjectResponse) Status

func (r UpdateProjectResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateProjectResponse) StatusCode

func (r UpdateProjectResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateProjectResponse200Headers

type UpdateProjectResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdateProjectResponse200Headers the declared response headers of an HTTP 200 response for UpdateProject

type UpdateProjectResponse400Headers

type UpdateProjectResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdateProjectResponse400Headers the declared response headers of an HTTP 400 response for UpdateProject

type UpdateProjectResponse401Headers

type UpdateProjectResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdateProjectResponse401Headers the declared response headers of an HTTP 401 response for UpdateProject

type UpdateProjectResponse402Headers

type UpdateProjectResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdateProjectResponse402Headers the declared response headers of an HTTP 402 response for UpdateProject

type UpdateProjectResponse403Headers

type UpdateProjectResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdateProjectResponse403Headers the declared response headers of an HTTP 403 response for UpdateProject

type UpdateProjectResponse404Headers

type UpdateProjectResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdateProjectResponse404Headers the declared response headers of an HTTP 404 response for UpdateProject

type UpdateProjectResponse406Headers

type UpdateProjectResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdateProjectResponse406Headers the declared response headers of an HTTP 406 response for UpdateProject

type UpdateProjectResponse429Headers

type UpdateProjectResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdateProjectResponse429Headers the declared response headers of an HTTP 429 response for UpdateProject

type UpdateProjectResponse503Headers

type UpdateProjectResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdateProjectResponse503Headers the declared response headers of an HTTP 503 response for UpdateProject

type UpdateProjectResponseDefaultHeaders

type UpdateProjectResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdateProjectResponseDefaultHeaders the declared response headers of an HTTP default response for UpdateProject

type UpdatePublishSettingsJSONRequestBody

type UpdatePublishSettingsJSONRequestBody = UpdatePublishSettingsRequest

UpdatePublishSettingsJSONRequestBody defines body for UpdatePublishSettings for application/json ContentType.

type UpdatePublishSettingsParams

type UpdatePublishSettingsParams struct {
	// LovableVersion Stable API version to serve, as a YYYY-MM-DD date. Omit for the oldest supported stable version, currently 2026-09-11.
	LovableVersion *LovableVersion `json:"Lovable-Version,omitempty"`

	// LovableBeta Comma-separated beta revision strings to enable on top of the stable version.
	LovableBeta *LovableBeta `json:"Lovable-Beta,omitempty"`
}

UpdatePublishSettingsParams defines parameters for UpdatePublishSettings.

type UpdatePublishSettingsRequest

type UpdatePublishSettingsRequest struct {
	// Audience Who can open the published app; project reads report this value as publish_audience. A custom audience can include existing grants managed in the UI. Omit to leave the audience unchanged, including while the app is unpublished.
	//
	// Example: custom
	Audience *UpdatePublishSettingsRequestAudience `json:"audience,omitempty"`

	// AudienceTargets Groups who can open the app; allowed only when the supplied or current audience is custom. Providing a list replaces all group and user grants and removes workspace-wide access; an empty list removes those grants. Existing organization access and email invitations managed in the UI are preserved. Omit to preserve saved targets across audience changes. Targets are inactive outside custom mode. Null is not accepted.
	//
	// Example: [{"id":"grp_01jw3k9m2xq8r5v0c7d4e6f2gh","type":"group"}]
	AudienceTargets *[]PublishAudienceTarget `json:"audience_targets,omitempty"`
}

UpdatePublishSettingsRequest defines model for UpdatePublishSettingsRequest.

type UpdatePublishSettingsRequestAudience

type UpdatePublishSettingsRequestAudience string

UpdatePublishSettingsRequestAudience Who can open the published app; project reads report this value as publish_audience. A custom audience can include existing grants managed in the UI. Omit to leave the audience unchanged, including while the app is unpublished.

Example: custom

const (
	UpdatePublishSettingsRequestAudienceCustom    UpdatePublishSettingsRequestAudience = "custom"
	UpdatePublishSettingsRequestAudiencePublic    UpdatePublishSettingsRequestAudience = "public"
	UpdatePublishSettingsRequestAudienceWorkspace UpdatePublishSettingsRequestAudience = "workspace"
)

Defines values for UpdatePublishSettingsRequestAudience.

func (UpdatePublishSettingsRequestAudience) Valid

Valid indicates whether the value is a known member of the UpdatePublishSettingsRequestAudience enum.

type UpdatePublishSettingsResponse

type UpdatePublishSettingsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	// JSON200 the response for an HTTP 200 `application/json` response
	JSON200 *PublishSettings
	// JSON400 the response for an HTTP 400 `application/json` response
	JSON400 *ErrorResponse
	// JSON401 the response for an HTTP 401 `application/json` response
	JSON401 *ErrorResponse
	// JSON402 the response for an HTTP 402 `application/json` response
	JSON402 *ErrorResponse
	// JSON403 the response for an HTTP 403 `application/json` response
	JSON403 *ErrorResponse
	// JSON404 the response for an HTTP 404 `application/json` response
	JSON404 *ErrorResponse
	// JSON406 the response for an HTTP 406 `application/json` response
	JSON406 *ErrorResponse
	// JSON429 the response for an HTTP 429 `application/json` response
	JSON429 *ErrorResponse
	// JSON503 the response for an HTTP 503 `application/json` response
	JSON503 *ErrorResponse
	// JSONDefault the response for an HTTP default `application/json` response
	JSONDefault *ErrorResponse
	// Headers200 the parsed response headers for an HTTP 200 response
	Headers200 *UpdatePublishSettingsResponse200Headers
	// Headers400 the parsed response headers for an HTTP 400 response
	Headers400 *UpdatePublishSettingsResponse400Headers
	// Headers401 the parsed response headers for an HTTP 401 response
	Headers401 *UpdatePublishSettingsResponse401Headers
	// Headers402 the parsed response headers for an HTTP 402 response
	Headers402 *UpdatePublishSettingsResponse402Headers
	// Headers403 the parsed response headers for an HTTP 403 response
	Headers403 *UpdatePublishSettingsResponse403Headers
	// Headers404 the parsed response headers for an HTTP 404 response
	Headers404 *UpdatePublishSettingsResponse404Headers
	// Headers406 the parsed response headers for an HTTP 406 response
	Headers406 *UpdatePublishSettingsResponse406Headers
	// Headers429 the parsed response headers for an HTTP 429 response
	Headers429 *UpdatePublishSettingsResponse429Headers
	// Headers503 the parsed response headers for an HTTP 503 response
	Headers503 *UpdatePublishSettingsResponse503Headers
	// HeadersDefault the parsed response headers for an HTTP default response
	HeadersDefault *UpdatePublishSettingsResponseDefaultHeaders
}

func ParseUpdatePublishSettingsResponse

func ParseUpdatePublishSettingsResponse(rsp *http.Response) (*UpdatePublishSettingsResponse, error)

ParseUpdatePublishSettingsResponse parses an HTTP response from a UpdatePublishSettingsWithResponse call

func (UpdatePublishSettingsResponse) ContentType

func (r UpdatePublishSettingsResponse) ContentType() string

ContentType is a convenience method to retrieve the Content-Type value from the HTTP response headers

func (UpdatePublishSettingsResponse) GetBody

func (r UpdatePublishSettingsResponse) GetBody() []byte

GetBody returns the raw response body bytes

func (UpdatePublishSettingsResponse) GetJSON200

GetJSON200 returns the response for an HTTP 200 `application/json` response

func (UpdatePublishSettingsResponse) GetJSON400

GetJSON400 returns the response for an HTTP 400 `application/json` response

func (UpdatePublishSettingsResponse) GetJSON401

GetJSON401 returns the response for an HTTP 401 `application/json` response

func (UpdatePublishSettingsResponse) GetJSON402

GetJSON402 returns the response for an HTTP 402 `application/json` response

func (UpdatePublishSettingsResponse) GetJSON403

GetJSON403 returns the response for an HTTP 403 `application/json` response

func (UpdatePublishSettingsResponse) GetJSON404

GetJSON404 returns the response for an HTTP 404 `application/json` response

func (UpdatePublishSettingsResponse) GetJSON406

GetJSON406 returns the response for an HTTP 406 `application/json` response

func (UpdatePublishSettingsResponse) GetJSON429

GetJSON429 returns the response for an HTTP 429 `application/json` response

func (UpdatePublishSettingsResponse) GetJSON503

GetJSON503 returns the response for an HTTP 503 `application/json` response

func (UpdatePublishSettingsResponse) GetJSONDefault

func (r UpdatePublishSettingsResponse) GetJSONDefault() *ErrorResponse

GetJSONDefault returns the response for an HTTP default `application/json` response

func (UpdatePublishSettingsResponse) Status

Status returns HTTPResponse.Status

func (UpdatePublishSettingsResponse) StatusCode

func (r UpdatePublishSettingsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePublishSettingsResponse200Headers

type UpdatePublishSettingsResponse200Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdatePublishSettingsResponse200Headers the declared response headers of an HTTP 200 response for UpdatePublishSettings

type UpdatePublishSettingsResponse400Headers

type UpdatePublishSettingsResponse400Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdatePublishSettingsResponse400Headers the declared response headers of an HTTP 400 response for UpdatePublishSettings

type UpdatePublishSettingsResponse401Headers

type UpdatePublishSettingsResponse401Headers struct {
	WWWAuthenticate                   *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdatePublishSettingsResponse401Headers the declared response headers of an HTTP 401 response for UpdatePublishSettings

type UpdatePublishSettingsResponse402Headers

type UpdatePublishSettingsResponse402Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdatePublishSettingsResponse402Headers the declared response headers of an HTTP 402 response for UpdatePublishSettings

type UpdatePublishSettingsResponse403Headers

type UpdatePublishSettingsResponse403Headers struct {
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdatePublishSettingsResponse403Headers the declared response headers of an HTTP 403 response for UpdatePublishSettings

type UpdatePublishSettingsResponse404Headers

type UpdatePublishSettingsResponse404Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdatePublishSettingsResponse404Headers the declared response headers of an HTTP 404 response for UpdatePublishSettings

type UpdatePublishSettingsResponse406Headers

type UpdatePublishSettingsResponse406Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdatePublishSettingsResponse406Headers the declared response headers of an HTTP 406 response for UpdatePublishSettings

type UpdatePublishSettingsResponse429Headers

type UpdatePublishSettingsResponse429Headers struct {
	RetryAfter                        *int
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdatePublishSettingsResponse429Headers the declared response headers of an HTTP 429 response for UpdatePublishSettings

type UpdatePublishSettingsResponse503Headers

type UpdatePublishSettingsResponse503Headers struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdatePublishSettingsResponse503Headers the declared response headers of an HTTP 503 response for UpdatePublishSettings

type UpdatePublishSettingsResponseDefaultHeaders

type UpdatePublishSettingsResponseDefaultHeaders struct {
	LovableBeta                       *string
	LovableVersion                    *string
	XLovableUnknownQueryParams        *string
	XLovableUnknownQueryParamsOmitted *int
	XRateLimitLimit                   *int
	XRateLimitRemaining               *int
	XRateLimitReset                   *int
	XRequestId                        *string
}

UpdatePublishSettingsResponseDefaultHeaders the declared response headers of an HTTP default response for UpdatePublishSettings

type Workspace

type Workspace struct {
	// BillingPeriodEndsAt Exclusive end of the current billing period. Null when no billing period is recorded or when the caller lacks permission to view workspace usage.
	//
	// Example: 2026-02-01T00:00:00Z
	BillingPeriodEndsAt nullable.Nullable[time.Time] `json:"billing_period_ends_at"`

	// BillingPeriodStartsAt Inclusive start of the current billing period. Null when no billing period is recorded or when the caller lacks permission to view workspace usage.
	//
	// Example: 2026-01-01T00:00:00Z
	BillingPeriodStartsAt nullable.Nullable[time.Time] `json:"billing_period_starts_at"`

	// CreatedAt When the workspace was created.
	//
	// Example: 2026-01-15T09:30:00Z
	CreatedAt time.Time `json:"created_at"`

	// DefaultMonthlyMemberCreditLimit Default monthly build-credit limit for members without an explicit per-member limit. Null when unset or when the caller lacks permission to view workspace usage. Active higher temporary limits can override it.
	//
	// Example: 500
	DefaultMonthlyMemberCreditLimit nullable.Nullable[float64] `json:"default_monthly_member_credit_limit"`

	// DefaultProjectVisibility Default editor visibility for new projects, separate from published app access. workspace_edit: every workspace member, at the access level their workspace role grants. restricted: only the project owner, invited collaborators, and the workspace owner; requires Business or Enterprise, otherwise new projects fall back to workspace_edit. Null when no default is configured. More values may be added; clients must tolerate unknown values.
	//
	// Example: workspace_edit
	DefaultProjectVisibility nullable.Nullable[WorkspaceDefaultProjectVisibility] `json:"default_project_visibility"`

	// Description Workspace description; null when none is set.
	//
	// Example: Marketing site and internal tools for Acme.
	Description nullable.Nullable[string] `json:"description"`

	// EnablePii Whether scanning for personally identifiable information (PII), such as names and email addresses, is enabled for workspace projects.
	//
	// Example: true
	EnablePii bool `json:"enable_pii"`

	// EnforceSso Whether workspace members are required to sign in through single sign-on (SSO).
	//
	// Example: true
	EnforceSso bool `json:"enforce_sso"`

	// Id Workspace ID.
	//
	// Example: workspace_01jw3k9m2xq8r5v0c7d4e6f2gh
	Id string `json:"id"`

	// ImageUrl Workspace image URL; null when none is set.
	//
	// Example: https://lovable.dev/cdn/workspaces/acme/avatar.png
	ImageUrl nullable.Nullable[string] `json:"image_url"`

	// Name Workspace display name.
	//
	// Example: Acme Inc
	Name string `json:"name"`

	// NumProjects Number of projects in the workspace.
	//
	// Example: 12
	NumProjects int64 `json:"num_projects"`

	// NumSeats Configured maximum number of workspace seats. Null when no positive workspace-specific seat limit is configured or when the caller lacks permission to view workspace usage.
	//
	// Example: 25
	NumSeats nullable.Nullable[int64] `json:"num_seats"`

	// Plan Plan tier. More values may be added; clients must tolerate unknown values.
	//
	// Example: pro
	Plan WorkspacePlan `json:"plan"`

	// PublishingPolicy Policy limiting who can view published apps or preventing publishing altogether; null when no audience restriction is configured. More values may be added; clients must tolerate unknown values.
	//
	// Example: workspace_only
	PublishingPolicy nullable.Nullable[WorkspacePublishingPolicy] `json:"publishing_policy"`

	// UpdatedAt When the workspace was last updated.
	//
	// Example: 2026-01-15T09:30:00Z
	UpdatedAt time.Time `json:"updated_at"`
}

Workspace defines model for Workspace.

type WorkspaceAnalytics

type WorkspaceAnalytics struct {
	TimeSeries TimeSeriesGroup `json:"time_series"`
}

WorkspaceAnalytics defines model for WorkspaceAnalytics.

type WorkspaceDefaultProjectVisibility

type WorkspaceDefaultProjectVisibility string

WorkspaceDefaultProjectVisibility Default editor visibility for new projects, separate from published app access. workspace_edit: every workspace member, at the access level their workspace role grants. restricted: only the project owner, invited collaborators, and the workspace owner; requires Business or Enterprise, otherwise new projects fall back to workspace_edit. Null when no default is configured. More values may be added; clients must tolerate unknown values.

Example: workspace_edit

const (
	WorkspaceDefaultProjectVisibilityRestricted    WorkspaceDefaultProjectVisibility = "restricted"
	WorkspaceDefaultProjectVisibilityWorkspaceEdit WorkspaceDefaultProjectVisibility = "workspace_edit"
	WorkspaceDefaultProjectVisibilityWorkspaceView WorkspaceDefaultProjectVisibility = "workspace_view"
)

Defines values for WorkspaceDefaultProjectVisibility.

func (WorkspaceDefaultProjectVisibility) Valid

Valid indicates whether the value is a known member of the WorkspaceDefaultProjectVisibility enum.

type WorkspaceFolder added in v0.3.0

type WorkspaceFolder struct {
	// CreatedAt When the directory was created.
	//
	// Example: 2026-01-15T09:30:00Z
	CreatedAt time.Time `json:"created_at"`

	// Id Folder ID. Matches the directory_id of projects in the directory.
	//
	// Example: fold_01jw3k9m2xq8r5v0c7d4e6f2gh
	Id string `json:"id"`

	// Name Folder name.
	//
	// Example: Finance apps
	Name string `json:"name"`

	// ParentId ID of the directory this directory is nested in; null for a top-level directory.
	//
	// Example: fold_01jw3k9m2xq8r5v0c7d4e6f2gh
	ParentId nullable.Nullable[string] `json:"parent_id"`

	// UpdatedAt When the directory was last renamed, moved, or had its visibility changed.
	//
	// Example: 2026-01-15T09:30:00Z
	UpdatedAt time.Time `json:"updated_at"`
}

WorkspaceFolder defines model for WorkspaceFolder.

type WorkspaceFolderPage added in v0.3.0

type WorkspaceFolderPage struct {
	// Data Items in this page. Empty when there are none.
	Data       []WorkspaceFolder `json:"data"`
	Pagination Pagination        `json:"pagination"`
}

WorkspaceFolderPage defines model for WorkspaceFolderPage.

type WorkspaceGroup

type WorkspaceGroup struct {
	// CreatedAt When the group was created.
	//
	// Example: 2026-01-15T09:30:00Z
	CreatedAt time.Time `json:"created_at"`

	// Description Group description; null when none is set.
	//
	// Example: Platform and infrastructure engineers
	Description nullable.Nullable[string] `json:"description"`

	// Id Group ID. Use as the id of a type "group" audience_targets entry when publishing with audience "custom" via POST or PATCH /v1/projects/{project_id}/publish.
	//
	// Example: engineering_workspace_01jw3k9m2xq8r5v0c7d4e6f2gh
	Id string `json:"id"`

	// MemberCount Number of members in the group: active members, pending members, and invited users who have not signed up yet.
	//
	// Example: 12
	MemberCount int64 `json:"member_count"`

	// Name Group display name, unique within the workspace.
	//
	// Example: Engineering
	Name string `json:"name"`

	// ScimExternalId External ID assigned by the SCIM identity provider; null on groups that are not SCIM-provisioned.
	//
	// Example: 00g1a2b3c4D5E6F7g8h9
	ScimExternalId nullable.Nullable[string] `json:"scim_external_id"`

	// UpdatedAt When the group was last updated.
	//
	// Example: 2026-01-15T09:30:00Z
	UpdatedAt time.Time `json:"updated_at"`

	// WorkspaceId Workspace the group belongs to.
	//
	// Example: workspace_01jw3k9m2xq8r5v0c7d4e6f2gh
	WorkspaceId string `json:"workspace_id"`
}

WorkspaceGroup defines model for WorkspaceGroup.

type WorkspaceGroupPage

type WorkspaceGroupPage struct {
	// Data Items in this page. Empty when there are none.
	Data       []WorkspaceGroup `json:"data"`
	Pagination Pagination       `json:"pagination"`
}

WorkspaceGroupPage defines model for WorkspaceGroupPage.

type WorkspaceInsights

type WorkspaceInsights struct {
	// AsOf Timestamp indicating the freshness of workspace review-priority data. Individual projects may have newer results. Null when unavailable. This is not a security scan completion time.
	//
	// Example: 2026-01-15T09:30:00Z
	AsOf nullable.Nullable[time.Time] `json:"as_of"`

	// Findings Finding types and their matching project counts, including types with zero matches, ordered by higher review priority first. Related conditions may be combined under a more specific finding. A project can appear under multiple finding types. Types requiring personal data detection access are left out when that feature is unavailable. Empty when no types are included.
	//
	// Example: [{"category":"exposure","description":"Publicly published projects with error-level security findings.","id":"public_security_exposure","project_count":12,"review_priority":"needs_review","title":"Public app with security errors"}]
	Findings []WorkspaceInsightsFinding `json:"findings"`
	Summary  WorkspaceInsightsSummary   `json:"summary"`
}

WorkspaceInsights defines model for WorkspaceInsights.

type WorkspaceInsightsActivityFreshness

type WorkspaceInsightsActivityFreshness struct {
	// EditsAsOf Latest data timestamp used by the stored edit counts on this page; null when unavailable.
	//
	// Example: 2026-01-15T09:30:00Z
	EditsAsOf nullable.Nullable[time.Time] `json:"edits_as_of"`

	// VisitorsAsOf Latest data timestamp used by stored visitor counts on this page; null when counts are retrieved live or no timestamp is available.
	//
	// Example: 2026-01-15T09:30:00Z
	VisitorsAsOf nullable.Nullable[time.Time] `json:"visitors_as_of"`
}

WorkspaceInsightsActivityFreshness defines model for WorkspaceInsightsActivityFreshness.

type WorkspaceInsightsEdgeFunction

type WorkspaceInsightsEdgeFunction struct {
	// Name Name of a backend function deployed for this project.
	//
	// Example: send-welcome-email
	Name string `json:"name"`
}

WorkspaceInsightsEdgeFunction defines model for WorkspaceInsightsEdgeFunction.

type WorkspaceInsightsFinding

type WorkspaceInsightsFinding struct {
	// Category Finding category. More values may be added; clients must tolerate unknown values.
	//
	// Example: exposure
	Category WorkspaceInsightsFindingCategory `json:"category"`

	// Description Explanation of the condition represented by this finding type.
	//
	// Example: Publicly published projects with error-level security findings.
	Description string `json:"description"`

	// Id Stable identifier for the finding type. Use as finding_type_id on GET /v1/workspaces/{workspace_id}/security-center/insights/projects to list matching projects; that endpoint requires Enterprise.
	//
	// Example: public_security_exposure
	Id string `json:"id"`

	// ProjectCount Number of distinct projects represented by this finding type. Counts across finding types can overlap and must not be summed to obtain a unique project total.
	//
	// Example: 12
	ProjectCount int64 `json:"project_count"`

	// ReviewPriority Review priority assigned to this finding type. May differ from an individual scan finding's severity, its UI badge, or a project's overall review priority. More values may be added; clients must tolerate unknown values.
	//
	// Example: needs_review
	ReviewPriority WorkspaceInsightsFindingReviewPriority `json:"review_priority"`

	// Title Short display name for the finding type. Use id for programmatic matching.
	//
	// Example: Public app with security errors
	Title string `json:"title"`
}

WorkspaceInsightsFinding defines model for WorkspaceInsightsFinding.

type WorkspaceInsightsFindingCategory

type WorkspaceInsightsFindingCategory string

WorkspaceInsightsFindingCategory Finding category. More values may be added; clients must tolerate unknown values.

Example: exposure

const (
	WorkspaceInsightsFindingCategoryAccess       WorkspaceInsightsFindingCategory = "access"
	WorkspaceInsightsFindingCategoryCredentials  WorkspaceInsightsFindingCategory = "credentials"
	WorkspaceInsightsFindingCategoryData         WorkspaceInsightsFindingCategory = "data"
	WorkspaceInsightsFindingCategoryExposure     WorkspaceInsightsFindingCategory = "exposure"
	WorkspaceInsightsFindingCategoryIntegrations WorkspaceInsightsFindingCategory = "integrations"
	WorkspaceInsightsFindingCategoryRuntime      WorkspaceInsightsFindingCategory = "runtime"
	WorkspaceInsightsFindingCategorySecurity     WorkspaceInsightsFindingCategory = "security"
)

Defines values for WorkspaceInsightsFindingCategory.

func (WorkspaceInsightsFindingCategory) Valid

Valid indicates whether the value is a known member of the WorkspaceInsightsFindingCategory enum.

type WorkspaceInsightsFindingReviewPriority

type WorkspaceInsightsFindingReviewPriority string

WorkspaceInsightsFindingReviewPriority Review priority assigned to this finding type. May differ from an individual scan finding's severity, its UI badge, or a project's overall review priority. More values may be added; clients must tolerate unknown values.

Example: needs_review

const (
	WorkspaceInsightsFindingReviewPriorityNeedsReview       WorkspaceInsightsFindingReviewPriority = "needs_review"
	WorkspaceInsightsFindingReviewPriorityNoReviewNeeded    WorkspaceInsightsFindingReviewPriority = "no_review_needed"
	WorkspaceInsightsFindingReviewPriorityReviewRecommended WorkspaceInsightsFindingReviewPriority = "review_recommended"
)

Defines values for WorkspaceInsightsFindingReviewPriority.

func (WorkspaceInsightsFindingReviewPriority) Valid

Valid indicates whether the value is a known member of the WorkspaceInsightsFindingReviewPriority enum.

type WorkspaceInsightsOwner

type WorkspaceInsightsOwner struct {
	// DisplayName Project owner's display name; null when unavailable.
	//
	// Example: Jane Cooper
	DisplayName nullable.Nullable[string] `json:"display_name"`
}

WorkspaceInsightsOwner defines model for WorkspaceInsightsOwner.

type WorkspaceInsightsProject

type WorkspaceInsightsProject struct {
	// ActivityGroup Last-edit recency, using 14-day and 60-day boundaries; null when the project was never edited. More values may be added; clients must tolerate unknown values.
	//
	// Example: last_14_days
	ActivityGroup nullable.Nullable[WorkspaceInsightsProjectActivityGroup] `json:"activity_group"`

	// Connectors Names of services connected to the project; empty when there are none.
	//
	// Example: ["supabase","stripe"]
	Connectors []string `json:"connectors"`

	// Description AI-written summary of what the project does; null until the agent has completed a response for the project.
	//
	// Example: A single-page marketing site with a hero, feature grid, and signup form.
	Description nullable.Nullable[string] `json:"description"`

	// EdgeFunctions Backend functions deployed for the project; empty when there are none.
	//
	// Example: [{"name":"send-welcome-email"}]
	EdgeFunctions []WorkspaceInsightsEdgeFunction `json:"edge_functions"`

	// EditCount Total edits over the project's lifetime.
	//
	// Example: 128
	EditCount int64 `json:"edit_count"`

	// Edits24h Edits in the last 24 hours.
	//
	// Example: 4
	Edits24h int64 `json:"edits_24h"`

	// Edits30d Edits in the last 30 days.
	//
	// Example: 67
	Edits30d int64 `json:"edits_30d"`

	// Edits7d Edits in the last 7 days.
	//
	// Example: 21
	Edits7d int64 `json:"edits_7d"`

	// FolderId ID of the directory the project is in; null when it is in none. A project is in at most one directory, and a directory can be nested in another. Folder names and nesting come from GET /v1/workspaces/{workspace_id}/directorys.
	//
	// Example: fold_01jw3k9m2xq8r5v0c7d4e6f2gh
	FolderId nullable.Nullable[string] `json:"folder_id"`

	// Id Project ID.
	//
	// Example: prj_01jw3k9m2xq8r5v0c7d4e6f2gh
	Id string `json:"id"`

	// IsPublished Whether the project is published.
	//
	// Example: true
	IsPublished bool `json:"is_published"`

	// LastEditedAt When the project was last edited; null when it never was.
	//
	// Example: 2026-01-15T09:30:00Z
	LastEditedAt nullable.Nullable[time.Time] `json:"last_edited_at"`

	// LastSecurityScanAt Completion time of the latest completed security scan; null when no scan has completed.
	//
	// Example: 2026-01-15T09:30:00Z
	LastSecurityScanAt nullable.Nullable[time.Time] `json:"last_security_scan_at"`

	// MatchedReason Condition matching the finding_type_id filter when exactly one finding type is selected; null otherwise.
	MatchedReason WorkspaceInsightsReason `json:"matched_reason"`

	// MessageCount Agent message usage charged to credit funds for this project during the current UTC calendar month.
	//
	// Example: 56
	MessageCount int64 `json:"message_count"`

	// Name Human-readable project name; null when none is set.
	//
	// Example: Acme Landing Page
	Name nullable.Nullable[string] `json:"name"`

	// Owner Project owner; null when the project has no active owner.
	Owner WorkspaceInsightsOwner `json:"owner"`

	// PublishAudience Who can open the published site: the audience set via POST or PATCH /v1/projects/{project_id}/publish; null while the site is not published. More values may be added; clients must tolerate unknown values.
	//
	// Example: public
	PublishAudience nullable.Nullable[WorkspaceInsightsProjectPublishAudience] `json:"publish_audience"`

	// ReviewPriority Security Center review priority, or unscored when the project has not yet been scored; null when no priority is available. A lower priority does not guarantee the absence of security issues. More values may be added; clients must tolerate unknown values.
	//
	// Example: needs_review
	ReviewPriority nullable.Nullable[WorkspaceInsightsProjectReviewPriority] `json:"review_priority"`

	// ReviewPriorityExplanation Conditions contributing to the project's review priority. Not every scoring input is listed, and related conditions may be combined under a more specific explanation.
	//
	// Example: [{"category":"data","detail":"A public table exposes personal data to anonymous callers.","id":"public_pii_exposure","label":"Public PII exposure","review_priority":"needs_review"}]
	ReviewPriorityExplanation []WorkspaceInsightsReason `json:"review_priority_explanation"`

	// Url Current published app URL; null when the project is unpublished or its URL is unavailable.
	//
	// Example: https://acme-landing-page.lovable.app
	Url nullable.Nullable[string] `json:"url"`

	// Visibility Who can open the project in the Lovable editor. restricted: only the project owner, invited collaborators, and the workspace owner (Business or Enterprise). workspace_edit: every workspace member, at the access level their workspace role grants. workspace_view: every workspace member, with the access their workspace role grants capped at read; explicit project, directory, and group grants still permit editing (Business or Enterprise). Published app access is configured separately via publish_audience. More values may be added; clients must tolerate unknown values.
	//
	// Example: workspace_edit
	Visibility nullable.Nullable[WorkspaceInsightsProjectVisibility] `json:"visibility"`

	// Visitors24h Unique visitors in the last 24 hours.
	//
	// Example: 35
	Visitors24h int64 `json:"visitors_24h"`

	// Visitors30d Unique visitors in the last 30 days.
	//
	// Example: 840
	Visitors30d int64 `json:"visitors_30d"`

	// Visitors7d Unique visitors in the last 7 days.
	//
	// Example: 210
	Visitors7d int64 `json:"visitors_7d"`
}

WorkspaceInsightsProject defines model for WorkspaceInsightsProject.

type WorkspaceInsightsProjectActivityGroup

type WorkspaceInsightsProjectActivityGroup string

WorkspaceInsightsProjectActivityGroup Last-edit recency, using 14-day and 60-day boundaries; null when the project was never edited. More values may be added; clients must tolerate unknown values.

Example: last_14_days

const (
	WorkspaceInsightsProjectActivityGroupLast14Days WorkspaceInsightsProjectActivityGroup = "last_14_days"
	WorkspaceInsightsProjectActivityGroupLast60Days WorkspaceInsightsProjectActivityGroup = "last_60_days"
	WorkspaceInsightsProjectActivityGroupOlder      WorkspaceInsightsProjectActivityGroup = "older"
)

Defines values for WorkspaceInsightsProjectActivityGroup.

func (WorkspaceInsightsProjectActivityGroup) Valid

Valid indicates whether the value is a known member of the WorkspaceInsightsProjectActivityGroup enum.

type WorkspaceInsightsProjectPage

type WorkspaceInsightsProjectPage struct {
	// ActivityAsOf Data timestamps for the edit and visitor counts on this page; null when none are available.
	ActivityAsOf WorkspaceInsightsActivityFreshness `json:"activity_as_of"`

	// AppliedFinding Finding type used as a filter when exactly one finding_type_id is selected; null otherwise. project_count equals the total matching projects after all filters are applied.
	AppliedFinding WorkspaceInsightsFinding `json:"applied_finding"`

	// AsOf Timestamp indicating the freshness of workspace review-priority data. Individual projects may have newer results. Null when unavailable; not a security scan completion time.
	//
	// Example: 2026-01-15T09:30:00Z
	AsOf nullable.Nullable[time.Time] `json:"as_of"`

	// Data Items in this page. Empty when there are none.
	Data       []WorkspaceInsightsProject `json:"data"`
	Pagination Pagination                 `json:"pagination"`

	// Total Total matching projects across all pages.
	//
	// Example: 42
	Total int64 `json:"total"`
}

WorkspaceInsightsProjectPage defines model for WorkspaceInsightsProjectPage.

type WorkspaceInsightsProjectPublishAudience

type WorkspaceInsightsProjectPublishAudience string

WorkspaceInsightsProjectPublishAudience Who can open the published site: the audience set via POST or PATCH /v1/projects/{project_id}/publish; null while the site is not published. More values may be added; clients must tolerate unknown values.

Example: public

const (
	WorkspaceInsightsProjectPublishAudienceCustom    WorkspaceInsightsProjectPublishAudience = "custom"
	WorkspaceInsightsProjectPublishAudiencePublic    WorkspaceInsightsProjectPublishAudience = "public"
	WorkspaceInsightsProjectPublishAudienceWorkspace WorkspaceInsightsProjectPublishAudience = "workspace"
)

Defines values for WorkspaceInsightsProjectPublishAudience.

func (WorkspaceInsightsProjectPublishAudience) Valid

Valid indicates whether the value is a known member of the WorkspaceInsightsProjectPublishAudience enum.

type WorkspaceInsightsProjectReviewPriority

type WorkspaceInsightsProjectReviewPriority string

WorkspaceInsightsProjectReviewPriority Security Center review priority, or unscored when the project has not yet been scored; null when no priority is available. A lower priority does not guarantee the absence of security issues. More values may be added; clients must tolerate unknown values.

Example: needs_review

const (
	WorkspaceInsightsProjectReviewPriorityNeedsReview       WorkspaceInsightsProjectReviewPriority = "needs_review"
	WorkspaceInsightsProjectReviewPriorityNoReviewNeeded    WorkspaceInsightsProjectReviewPriority = "no_review_needed"
	WorkspaceInsightsProjectReviewPriorityReviewRecommended WorkspaceInsightsProjectReviewPriority = "review_recommended"
	WorkspaceInsightsProjectReviewPriorityUnscored          WorkspaceInsightsProjectReviewPriority = "unscored"
)

Defines values for WorkspaceInsightsProjectReviewPriority.

func (WorkspaceInsightsProjectReviewPriority) Valid

Valid indicates whether the value is a known member of the WorkspaceInsightsProjectReviewPriority enum.

type WorkspaceInsightsProjectVisibility

type WorkspaceInsightsProjectVisibility string

WorkspaceInsightsProjectVisibility Who can open the project in the Lovable editor. restricted: only the project owner, invited collaborators, and the workspace owner (Business or Enterprise). workspace_edit: every workspace member, at the access level their workspace role grants. workspace_view: every workspace member, with the access their workspace role grants capped at read; explicit project, directory, and group grants still permit editing (Business or Enterprise). Published app access is configured separately via publish_audience. More values may be added; clients must tolerate unknown values.

Example: workspace_edit

const (
	WorkspaceInsightsProjectVisibilityRestricted    WorkspaceInsightsProjectVisibility = "restricted"
	WorkspaceInsightsProjectVisibilityWorkspaceEdit WorkspaceInsightsProjectVisibility = "workspace_edit"
	WorkspaceInsightsProjectVisibilityWorkspaceView WorkspaceInsightsProjectVisibility = "workspace_view"
)

Defines values for WorkspaceInsightsProjectVisibility.

func (WorkspaceInsightsProjectVisibility) Valid

Valid indicates whether the value is a known member of the WorkspaceInsightsProjectVisibility enum.

type WorkspaceInsightsReason

type WorkspaceInsightsReason struct {
	// Category Topic of the condition contributing to the review priority. More values may be added; clients must tolerate unknown values.
	//
	// Example: data
	Category WorkspaceInsightsReasonCategory `json:"category"`

	// Detail Explanation of how this condition contributes to the project's review priority.
	//
	// Example: A public table exposes personal data to anonymous callers.
	Detail string `json:"detail"`

	// Id Stable identifier for the condition contributing to this project's review priority.
	//
	// Example: public_pii_exposure
	Id string `json:"id"`

	// Label Short display name for this condition. Use id for programmatic matching.
	//
	// Example: Public PII exposure
	Label string `json:"label"`

	// ReviewPriority Review priority assigned to this condition. May differ from the project's overall priority. More values may be added; clients must tolerate unknown values.
	//
	// Example: needs_review
	ReviewPriority WorkspaceInsightsReasonReviewPriority `json:"review_priority"`

	// Values Counts relevant to this condition; counts that do not apply are null. Null when the condition carries no counts.
	Values WorkspaceInsightsReasonValues `json:"values"`
}

WorkspaceInsightsReason defines model for WorkspaceInsightsReason.

type WorkspaceInsightsReasonCategory

type WorkspaceInsightsReasonCategory string

WorkspaceInsightsReasonCategory Topic of the condition contributing to the review priority. More values may be added; clients must tolerate unknown values.

Example: data

const (
	WorkspaceInsightsReasonCategoryAccess       WorkspaceInsightsReasonCategory = "access"
	WorkspaceInsightsReasonCategoryCredentials  WorkspaceInsightsReasonCategory = "credentials"
	WorkspaceInsightsReasonCategoryData         WorkspaceInsightsReasonCategory = "data"
	WorkspaceInsightsReasonCategoryExposure     WorkspaceInsightsReasonCategory = "exposure"
	WorkspaceInsightsReasonCategoryIntegrations WorkspaceInsightsReasonCategory = "integrations"
	WorkspaceInsightsReasonCategoryRuntime      WorkspaceInsightsReasonCategory = "runtime"
	WorkspaceInsightsReasonCategorySecurity     WorkspaceInsightsReasonCategory = "security"
)

Defines values for WorkspaceInsightsReasonCategory.

func (WorkspaceInsightsReasonCategory) Valid

Valid indicates whether the value is a known member of the WorkspaceInsightsReasonCategory enum.

type WorkspaceInsightsReasonReviewPriority

type WorkspaceInsightsReasonReviewPriority string

WorkspaceInsightsReasonReviewPriority Review priority assigned to this condition. May differ from the project's overall priority. More values may be added; clients must tolerate unknown values.

Example: needs_review

const (
	WorkspaceInsightsReasonReviewPriorityNeedsReview       WorkspaceInsightsReasonReviewPriority = "needs_review"
	WorkspaceInsightsReasonReviewPriorityNoReviewNeeded    WorkspaceInsightsReasonReviewPriority = "no_review_needed"
	WorkspaceInsightsReasonReviewPriorityReviewRecommended WorkspaceInsightsReasonReviewPriority = "review_recommended"
)

Defines values for WorkspaceInsightsReasonReviewPriority.

func (WorkspaceInsightsReasonReviewPriority) Valid

Valid indicates whether the value is a known member of the WorkspaceInsightsReasonReviewPriority enum.

type WorkspaceInsightsReasonValues

type WorkspaceInsightsReasonValues struct {
	// ConnectorCount Number of configured connectors.
	//
	// Example: 2
	ConnectorCount nullable.Nullable[int64] `json:"connector_count"`

	// EdgeFunctionCount Number of deployed edge functions.
	//
	// Example: 3
	EdgeFunctionCount nullable.Nullable[int64] `json:"edge_function_count"`

	// ErrorCount Number of error-level security issues; findings grouped into one family count once.
	//
	// Example: 2
	ErrorCount nullable.Nullable[int64] `json:"error_count"`

	// InfoCount Number of info-level security issues; findings grouped into one family count once.
	//
	// Example: 8
	InfoCount nullable.Nullable[int64] `json:"info_count"`

	// OpenPiiFindingCount Number of open PII findings.
	//
	// Example: 3
	OpenPiiFindingCount nullable.Nullable[int64] `json:"open_pii_finding_count"`

	// SecretCount Number of stored project secrets.
	//
	// Example: 4
	SecretCount nullable.Nullable[int64] `json:"secret_count"`

	// SharedUserCount Number of users the project is shared with.
	//
	// Example: 6
	SharedUserCount nullable.Nullable[int64] `json:"shared_user_count"`

	// WarningCount Number of warning-level security issues; findings grouped into one family count once.
	//
	// Example: 5
	WarningCount nullable.Nullable[int64] `json:"warning_count"`
}

WorkspaceInsightsReasonValues defines model for WorkspaceInsightsReasonValues.

type WorkspaceInsightsReviewPriority

type WorkspaceInsightsReviewPriority struct {
	// NeedsReview Projects assigned high review priority, shown as "High" in Security Center.
	//
	// Example: 3
	NeedsReview int64 `json:"needs_review"`

	// NoReviewNeeded Projects assigned low review priority, shown as "Low" in Security Center. This classification does not guarantee that a project has no security issues.
	//
	// Example: 12
	NoReviewNeeded int64 `json:"no_review_needed"`

	// ReviewRecommended Projects assigned medium review priority, shown as "Medium" in Security Center.
	//
	// Example: 5
	ReviewRecommended int64 `json:"review_recommended"`
}

WorkspaceInsightsReviewPriority defines model for WorkspaceInsightsReviewPriority.

type WorkspaceInsightsStat

type WorkspaceInsightsStat struct {
	// Delta30d Number of items in the current count that were created or joined within the last 30 days, as defined by the metric. This is not a net change from the count 30 days ago.
	//
	// Example: 3
	Delta30d int64 `json:"delta_30d"`

	// DeltaWindow Display label for the reporting period used by delta_30d. Currently "30 days".
	//
	// Example: 30 days
	DeltaWindow string `json:"delta_window"`

	// Value Current count for this metric.
	//
	// Example: 42
	Value int64 `json:"value"`
}

WorkspaceInsightsStat defines model for WorkspaceInsightsStat.

type WorkspaceInsightsSummary

type WorkspaceInsightsSummary struct {
	ExternallyPublished WorkspaceInsightsStat           `json:"externally_published"`
	Risk                WorkspaceInsightsReviewPriority `json:"risk"`
	TotalProjects       WorkspaceInsightsStat           `json:"total_projects"`
	WorkspaceMembers    WorkspaceInsightsStat           `json:"workspace_members"`
}

WorkspaceInsightsSummary defines model for WorkspaceInsightsSummary.

type WorkspaceMember

type WorkspaceMember struct {
	// Email Member email address in this workspace; null when unavailable.
	//
	// Example: jane.cooper@acme.com
	Email nullable.Nullable[openapi_types.Email] `json:"email"`

	// JoinedAt When the member joined the workspace; null when no join time is recorded.
	//
	// Example: 2026-01-15T09:30:00Z
	JoinedAt nullable.Nullable[time.Time] `json:"joined_at"`

	// Name Member display name; null when unavailable.
	//
	// Example: Jane Cooper
	Name nullable.Nullable[string] `json:"name"`

	// Role Workspace access role. external_collaborator identifies a user with access to specific projects, rather than workspace membership. More values may be added; clients must tolerate unknown values.
	//
	// Example: workspace_admin
	Role WorkspaceMemberRole `json:"role"`

	// Type Identity type. Currently user; clients must tolerate unknown values.
	//
	// Example: user
	Type WorkspaceMemberType `json:"type"`

	// UserId Public UUID identifying the user.
	//
	// Example: 404666c6-b533-5d2c-9768-c425bf40559b
	UserId openapi_types.UUID `json:"user_id"`
}

WorkspaceMember defines model for WorkspaceMember.

type WorkspaceMemberDetails

type WorkspaceMemberDetails struct {
	// Email Member email address; null when unavailable.
	//
	// Example: member@example.com
	Email nullable.Nullable[string] `json:"email"`

	// Name Member display name in this workspace; null when unavailable.
	//
	// Example: Example Member
	Name nullable.Nullable[string] `json:"name"`

	// Role Workspace access role, with the same values as the member list. external_collaborator identifies a user with access to specific projects, rather than workspace membership. More values may be added; clients must tolerate unknown values.
	//
	// Example: workspace_admin
	Role WorkspaceMemberDetailsRole `json:"role"`

	// Type Identity type. Currently user; clients must tolerate unknown values.
	//
	// Example: user
	Type WorkspaceMemberDetailsType `json:"type"`

	// UserId Public user UUID for this member.
	//
	// Example: 404666c6-b533-5d2c-9768-c425bf40559b
	UserId openapi_types.UUID `json:"user_id"`

	// WorkspaceId Workspace the membership belongs to.
	//
	// Example: workspace_01jw3k9m2xq8r5v0c7d4e6f2gh
	WorkspaceId string `json:"workspace_id"`
}

WorkspaceMemberDetails defines model for WorkspaceMemberDetails.

type WorkspaceMemberDetailsRole added in v0.2.0

type WorkspaceMemberDetailsRole string

WorkspaceMemberDetailsRole Workspace access role, with the same values as the member list. external_collaborator identifies a user with access to specific projects, rather than workspace membership. More values may be added; clients must tolerate unknown values.

Example: workspace_admin

const (
	WorkspaceMemberDetailsRoleExternalCollaborator WorkspaceMemberDetailsRole = "external_collaborator"
	WorkspaceMemberDetailsRoleWorkspaceAdmin       WorkspaceMemberDetailsRole = "workspace_admin"
	WorkspaceMemberDetailsRoleWorkspaceEditor      WorkspaceMemberDetailsRole = "workspace_editor"
	WorkspaceMemberDetailsRoleWorkspaceOwner       WorkspaceMemberDetailsRole = "workspace_owner"
	WorkspaceMemberDetailsRoleWorkspaceViewer      WorkspaceMemberDetailsRole = "workspace_viewer"
)

Defines values for WorkspaceMemberDetailsRole.

func (WorkspaceMemberDetailsRole) Valid added in v0.2.0

func (e WorkspaceMemberDetailsRole) Valid() bool

Valid indicates whether the value is a known member of the WorkspaceMemberDetailsRole enum.

type WorkspaceMemberDetailsType

type WorkspaceMemberDetailsType string

WorkspaceMemberDetailsType Identity type. Currently user; clients must tolerate unknown values.

Example: user

const (
	WorkspaceMemberDetailsTypeUser WorkspaceMemberDetailsType = "user"
)

Defines values for WorkspaceMemberDetailsType.

func (WorkspaceMemberDetailsType) Valid

func (e WorkspaceMemberDetailsType) Valid() bool

Valid indicates whether the value is a known member of the WorkspaceMemberDetailsType enum.

type WorkspaceMemberPage

type WorkspaceMemberPage struct {
	// Data Items in this page. Empty when there are none.
	Data       []WorkspaceMember `json:"data"`
	Pagination Pagination        `json:"pagination"`
}

WorkspaceMemberPage defines model for WorkspaceMemberPage.

type WorkspaceMemberRole

type WorkspaceMemberRole string

WorkspaceMemberRole Workspace access role. external_collaborator identifies a user with access to specific projects, rather than workspace membership. More values may be added; clients must tolerate unknown values.

Example: workspace_admin

const (
	WorkspaceMemberRoleExternalCollaborator WorkspaceMemberRole = "external_collaborator"
	WorkspaceMemberRoleWorkspaceAdmin       WorkspaceMemberRole = "workspace_admin"
	WorkspaceMemberRoleWorkspaceEditor      WorkspaceMemberRole = "workspace_editor"
	WorkspaceMemberRoleWorkspaceOwner       WorkspaceMemberRole = "workspace_owner"
	WorkspaceMemberRoleWorkspaceViewer      WorkspaceMemberRole = "workspace_viewer"
)

Defines values for WorkspaceMemberRole.

func (WorkspaceMemberRole) Valid

func (e WorkspaceMemberRole) Valid() bool

Valid indicates whether the value is a known member of the WorkspaceMemberRole enum.

type WorkspaceMemberType

type WorkspaceMemberType string

WorkspaceMemberType Identity type. Currently user; clients must tolerate unknown values.

Example: user

const (
	WorkspaceMemberTypeUser WorkspaceMemberType = "user"
)

Defines values for WorkspaceMemberType.

func (WorkspaceMemberType) Valid

func (e WorkspaceMemberType) Valid() bool

Valid indicates whether the value is a known member of the WorkspaceMemberType enum.

type WorkspacePage

type WorkspacePage struct {
	// Data Workspaces the user is a member of. Empty when there are none.
	Data       []WorkspaceSummary `json:"data"`
	Pagination Pagination         `json:"pagination"`
}

WorkspacePage defines model for WorkspacePage.

type WorkspacePlan

type WorkspacePlan string

WorkspacePlan Plan tier. More values may be added; clients must tolerate unknown values.

Example: pro

const (
	WorkspacePlanBusiness   WorkspacePlan = "business"
	WorkspacePlanEnterprise WorkspacePlan = "enterprise"
	WorkspacePlanFree       WorkspacePlan = "free"
	WorkspacePlanPro        WorkspacePlan = "pro"
)

Defines values for WorkspacePlan.

func (WorkspacePlan) Valid

func (e WorkspacePlan) Valid() bool

Valid indicates whether the value is a known member of the WorkspacePlan enum.

type WorkspacePublishingPolicy

type WorkspacePublishingPolicy string

WorkspacePublishingPolicy Policy limiting who can view published apps or preventing publishing altogether; null when no audience restriction is configured. More values may be added; clients must tolerate unknown values.

Example: workspace_only

const (
	WorkspacePublishingPolicyDisabled      WorkspacePublishingPolicy = "disabled"
	WorkspacePublishingPolicyOrgOnly       WorkspacePublishingPolicy = "org_only"
	WorkspacePublishingPolicyWorkspaceOnly WorkspacePublishingPolicy = "workspace_only"
)

Defines values for WorkspacePublishingPolicy.

func (WorkspacePublishingPolicy) Valid

func (e WorkspacePublishingPolicy) Valid() bool

Valid indicates whether the value is a known member of the WorkspacePublishingPolicy enum.

type WorkspaceSummary

type WorkspaceSummary struct {
	// CreatedAt When the workspace was created.
	//
	// Example: 2026-01-15T09:30:00Z
	CreatedAt time.Time `json:"created_at"`

	// Description Workspace description; null when none is set.
	//
	// Example: Marketing site and internal tools for Acme.
	Description nullable.Nullable[string] `json:"description"`

	// Id Workspace ID.
	//
	// Example: workspace_01jw3k9m2xq8r5v0c7d4e6f2gh
	Id string `json:"id"`

	// ImageUrl Workspace image URL; null when none is set.
	//
	// Example: https://lovable.dev/cdn/workspaces/acme/avatar.png
	ImageUrl nullable.Nullable[string] `json:"image_url"`

	// Name Workspace display name.
	//
	// Example: Acme Inc
	Name string `json:"name"`

	// NumProjects Number of projects in the workspace.
	//
	// Example: 12
	NumProjects int64 `json:"num_projects"`

	// Plan Plan tier. More values may be added; clients must tolerate unknown values.
	//
	// Example: pro
	Plan WorkspaceSummaryPlan `json:"plan"`

	// UpdatedAt When the workspace was last updated.
	//
	// Example: 2026-01-15T09:30:00Z
	UpdatedAt time.Time `json:"updated_at"`
}

WorkspaceSummary defines model for WorkspaceSummary.

type WorkspaceSummaryPlan

type WorkspaceSummaryPlan string

WorkspaceSummaryPlan Plan tier. More values may be added; clients must tolerate unknown values.

Example: pro

const (
	WorkspaceSummaryPlanBusiness   WorkspaceSummaryPlan = "business"
	WorkspaceSummaryPlanEnterprise WorkspaceSummaryPlan = "enterprise"
	WorkspaceSummaryPlanFree       WorkspaceSummaryPlan = "free"
	WorkspaceSummaryPlanPro        WorkspaceSummaryPlan = "pro"
)

Defines values for WorkspaceSummaryPlan.

func (WorkspaceSummaryPlan) Valid

func (e WorkspaceSummaryPlan) Valid() bool

Valid indicates whether the value is a known member of the WorkspaceSummaryPlan enum.

Directories

Path Synopsis
internal
cmd/patch-spec command
Command patch-spec converts Lovable's OpenAPI 3.1 schemas for oapi-codegen.
Command patch-spec converts Lovable's OpenAPI 3.1 schemas for oapi-codegen.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL