@lovable.dev/sdk 1.7.0 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -57,7 +57,7 @@ interface paths {
57
57
  /**
58
58
  * Query workspace audit logs
59
59
  * @deprecated
60
- * @description Deprecated compatibility alias. Prefer GET /v1beta/workspaces/{workspace_id}/audit-logs.
60
+ * @description Deprecated compatibility alias. Pass workspace_id as a query parameter.
61
61
  */
62
62
  get: operations["get-v1-audit-logs"];
63
63
  put?: never;
@@ -1168,6 +1168,26 @@ interface paths {
1168
1168
  patch?: never;
1169
1169
  trace?: never;
1170
1170
  };
1171
+ "/v1/remix-jobs/{job_id}": {
1172
+ parameters: {
1173
+ query?: never;
1174
+ header?: never;
1175
+ path?: never;
1176
+ cookie?: never;
1177
+ };
1178
+ /**
1179
+ * Get remix job
1180
+ * @description Returns the status of an async remix started with POST /v1/projects, keyed by the job_id it returned. Poll until status is completed (result.project_id is set) or error (error_message explains the failure). Poll no more than once every 2 seconds and honor Retry-After on 429 responses. Jobs remain queryable while Temporal retains the workflow history; after retention expires this route returns 404. Reusing the same job_id is idempotent and returns the same terminal result.
1181
+ */
1182
+ get: operations["get-v1-remix-jobs-job_id"];
1183
+ put?: never;
1184
+ post?: never;
1185
+ delete?: never;
1186
+ options?: never;
1187
+ head?: never;
1188
+ patch?: never;
1189
+ trace?: never;
1190
+ };
1171
1191
  "/v1/security-scans": {
1172
1192
  parameters: {
1173
1193
  query?: never;
@@ -1806,6 +1826,26 @@ interface paths {
1806
1826
  patch?: never;
1807
1827
  trace?: never;
1808
1828
  };
1829
+ "/v1/workspaces/{workspace_id}/groups": {
1830
+ parameters: {
1831
+ query?: never;
1832
+ header?: never;
1833
+ path?: never;
1834
+ cookie?: never;
1835
+ };
1836
+ /**
1837
+ * List workspace groups
1838
+ * @description Returns the workspace's groups, sorted by name. Use a group's id as the target id of a type "group" audience entry when publishing a project with visibility "custom" via POST or PATCH /v1/projects/{project_id}/publish.
1839
+ */
1840
+ get: operations["get-v1-workspaces-workspace_id-groups"];
1841
+ put?: never;
1842
+ post?: never;
1843
+ delete?: never;
1844
+ options?: never;
1845
+ head?: never;
1846
+ patch?: never;
1847
+ trace?: never;
1848
+ };
1809
1849
  "/v1/workspaces/{workspace_id}/knowledge": {
1810
1850
  parameters: {
1811
1851
  query?: never;
@@ -1999,94 +2039,6 @@ interface paths {
1999
2039
  patch?: never;
2000
2040
  trace?: never;
2001
2041
  };
2002
- "/v1beta/projects/{project_id}/cloud": {
2003
- parameters: {
2004
- query?: never;
2005
- header?: never;
2006
- path?: never;
2007
- cookie?: never;
2008
- };
2009
- /**
2010
- * Get project cloud telemetry (Preview)
2011
- * @description Returns cloud telemetry for a project's database, matching the editor's Cloud settings panel: disk-space usage, compute instance tier, lifecycle status and pause state, region, Postgres version, and resource-pressure alerts. Values are platform measurements cached for up to a few minutes; disk.timestamp reports when the platform measured it. Individual fields are omitted while their lookup is temporarily unavailable.
2012
- *
2013
- * This operation is in public preview (beta) and served under `/v1beta`. Request and response shapes may change before it graduates to the stable `/v1` surface.
2014
- */
2015
- get: operations["get-v1beta-projects-project_id-cloud"];
2016
- put?: never;
2017
- post?: never;
2018
- delete?: never;
2019
- options?: never;
2020
- head?: never;
2021
- patch?: never;
2022
- trace?: never;
2023
- };
2024
- "/v1beta/workspaces/{workspace_id}/audit-logs": {
2025
- parameters: {
2026
- query?: never;
2027
- header?: never;
2028
- path?: never;
2029
- cookie?: never;
2030
- };
2031
- /**
2032
- * Query workspace audit logs (Preview)
2033
- * @description Returns workspace audit log entries newest first (event timestamp descending, event ID as the cursor tie-breaker), paginated via an opaque cursor. Pagination and total-count behavior may change before this operation graduates to the stable surface.
2034
- *
2035
- * This operation is in public preview (beta) and served under `/v1beta`. Request and response shapes may change before it graduates to the stable `/v1` surface.
2036
- */
2037
- get: operations["get-v1beta-workspaces-workspace_id-audit-logs"];
2038
- put?: never;
2039
- post?: never;
2040
- delete?: never;
2041
- options?: never;
2042
- head?: never;
2043
- patch?: never;
2044
- trace?: never;
2045
- };
2046
- "/v1beta/workspaces/{workspace_id}/message-exports": {
2047
- parameters: {
2048
- query?: never;
2049
- header?: never;
2050
- path?: never;
2051
- cookie?: never;
2052
- };
2053
- get?: never;
2054
- put?: never;
2055
- /**
2056
- * Export workspace messages (Preview)
2057
- * @description Allows workspace admins and owners to start a one-off export of user-authored messages from the current main chat history of projects visible to them. Project and user filters may be combined; when both are supplied, only messages matching both are exported. The export defaults to the preceding 90 days and is delivered as a ZIP containing JSONL. Poll the returned export ID; completed files expire after seven days. Filter options and delivery metadata may change before graduation.
2058
- *
2059
- * This operation is in public preview (beta) and served under `/v1beta`. Request and response shapes may change before it graduates to the stable `/v1` surface.
2060
- */
2061
- post: operations["post-v1beta-workspaces-workspace_id-message-exports"];
2062
- delete?: never;
2063
- options?: never;
2064
- head?: never;
2065
- patch?: never;
2066
- trace?: never;
2067
- };
2068
- "/v1beta/workspaces/{workspace_id}/message-exports/{export_id}": {
2069
- parameters: {
2070
- query?: never;
2071
- header?: never;
2072
- path?: never;
2073
- cookie?: never;
2074
- };
2075
- /**
2076
- * Get message export (Preview)
2077
- * @description Returns an admin or owner's export status and a one-hour signed download URL when the export is complete and unexpired. Status and download metadata may change before graduation.
2078
- *
2079
- * This operation is in public preview (beta) and served under `/v1beta`. Request and response shapes may change before it graduates to the stable `/v1` surface.
2080
- */
2081
- get: operations["get-v1beta-workspaces-workspace_id-message-exports-export_id"];
2082
- put?: never;
2083
- post?: never;
2084
- delete?: never;
2085
- options?: never;
2086
- head?: never;
2087
- patch?: never;
2088
- trace?: never;
2089
- };
2090
2042
  }
2091
2043
  interface components {
2092
2044
  schemas: {
@@ -2107,7 +2059,7 @@ interface components {
2107
2059
  creator: components["schemas"]["Creator"];
2108
2060
  display_name: string;
2109
2061
  documentation_url: string;
2110
- /** @description True when at least one client exists for this connector in the workspace */
2062
+ /** @description True when at least one client or provisioned app exists for this connector in the workspace */
2111
2063
  has_clients: boolean;
2112
2064
  id: string;
2113
2065
  is_enabled_for_workspace: boolean;
@@ -2214,6 +2166,12 @@ interface components {
2214
2166
  /** @description Pagination cursors for fetching adjacent pages. */
2215
2167
  pagination: components["schemas"]["Pagination"];
2216
2168
  };
2169
+ CursorListResponseV1WorkspaceGroup: {
2170
+ /** @description Items in this page. */
2171
+ data: components["schemas"]["V1WorkspaceGroup"][] | null;
2172
+ /** @description Pagination cursors for fetching adjacent pages. */
2173
+ pagination: components["schemas"]["Pagination"];
2174
+ };
2217
2175
  CursorListResponseV1WorkspaceMember: {
2218
2176
  /** @description Items in this page. */
2219
2177
  data: components["schemas"]["V1WorkspaceMember"][] | null;
@@ -2442,7 +2400,7 @@ interface components {
2442
2400
  next_cursor: string | null;
2443
2401
  };
2444
2402
  ProjectAnalyticsResponse: {
2445
- /** @description Sessions attributed to their first eligible page view within the requested window. Includes search_ai as the union of search and ai; do not sum it with those channels. */
2403
+ /** @description Sessions attributed to their first eligible page view within the requested window. Includes search_ai as the union of search and ai; do not sum it with those channels. Missing channel keys mean unavailable, not zero traffic. */
2446
2404
  channels?: {
2447
2405
  [key: string]: components["schemas"]["ChannelAnalytics"];
2448
2406
  };
@@ -2866,8 +2824,10 @@ interface components {
2866
2824
  * @example true
2867
2825
  */
2868
2826
  include_custom_knowledge?: boolean;
2827
+ /** @description Copy project Files. Defaults to false. Requires edit access to the original project; view-only access or a public remix link is not enough. Omitted or false skips Files; true returns 403 without edit access. */
2828
+ include_files?: boolean;
2869
2829
  /**
2870
- * @description Whether remix-style creation should include chat history
2830
+ * @description Copy chat history. Defaults to false. Requires edit access to the original project; view-only access or a public remix link is not enough.
2871
2831
  * @example true
2872
2832
  */
2873
2833
  include_history?: boolean;
@@ -2955,6 +2915,18 @@ interface components {
2955
2915
  /** @description Published project URL. Set once status is completed. */
2956
2916
  url?: string;
2957
2917
  };
2918
+ PublicV1RemixJobOutputBody: {
2919
+ /** @description Machine-readable failure cause, present only for recognized failures */
2920
+ error_code?: string;
2921
+ /** @description Safe failure summary when the remix job fails */
2922
+ error_message?: string;
2923
+ /** @description Remix result, present when completed */
2924
+ result?: components["schemas"]["V1RemixProgressResult"];
2925
+ /** @description Job status: preparing, running, completed, or error. More values may be added; clients must tolerate unknown values. */
2926
+ status: string;
2927
+ /** @description Current step details when available */
2928
+ step?: components["schemas"]["RemixJobStepInfo"];
2929
+ };
2958
2930
  PublicV1SendMessageInputBody: {
2959
2931
  /**
2960
2932
  * @description Continuation override: force (skip cache TTL and token checks), fresh_build (force prompt rebuild), or allow_expired_cache (skip cache TTL only)
@@ -3170,6 +3142,8 @@ interface components {
3170
3142
  app_visitors_7d?: number;
3171
3143
  category?: string;
3172
3144
  /** Format: date-time */
3145
+ commit_time?: string;
3146
+ /** Format: date-time */
3173
3147
  created_at?: string;
3174
3148
  created_by?: string;
3175
3149
  /** Format: date-time */
@@ -3262,14 +3236,14 @@ interface components {
3262
3236
  documentation_url: string;
3263
3237
  /** @description True when at least one connection exists for this connector in the workspace */
3264
3238
  has_connections: boolean;
3265
- /** @description True when at least one of this connector's available auth methods would meter a new connection against the workspace's credits */
3266
- has_metered_option?: boolean;
3267
3239
  id: string;
3268
3240
  is_enabled_for_workspace: boolean;
3269
3241
  /** @description True when the connector is gated behind a feature flag rollout */
3270
3242
  is_new?: boolean;
3271
3243
  /** @description Optional HTTPS logo URL */
3272
3244
  logo_url?: string;
3245
+ /** @description Provider pricing page; set for metered connectors */
3246
+ pricing_url?: string;
3273
3247
  promotion?: components["schemas"]["StandardConnectorPromotion"];
3274
3248
  /** @description Search keywords (empty array when none) */
3275
3249
  searchTags: string[];
@@ -3280,6 +3254,8 @@ interface components {
3280
3254
  * @enum {string}
3281
3255
  */
3282
3256
  source?: "native" | "user_defined";
3257
+ /** @description True when the connector receives provider webhooks and delivers them to the connection's inbound project */
3258
+ supports_inbound?: boolean;
3283
3259
  terms_url?: string;
3284
3260
  /**
3285
3261
  * @description Product vendor for catalog filtering
@@ -3392,6 +3368,8 @@ interface components {
3392
3368
  cost_credits?: number;
3393
3369
  /** @description Associated edit ID */
3394
3370
  edit_id?: string;
3371
+ /** @description Why the turn failed, only present when status is error */
3372
+ error?: components["schemas"]["V1MessageError"];
3395
3373
  /** @description AI response message ID */
3396
3374
  message_id: string;
3397
3375
  /** @description AI response status (awaiting_input, completed, stopped, error) */
@@ -3423,6 +3401,8 @@ interface components {
3423
3401
  token?: string;
3424
3402
  /** @description MCP server URL (required for direct and network_transport connections; optional only for legacy relay fields) */
3425
3403
  url?: string;
3404
+ /** @description Route all traffic to this custom MCP server through Lovable's published static egress IP ranges */
3405
+ use_egress_proxy?: boolean;
3426
3406
  };
3427
3407
  V1AvailableConnectorEntry: {
3428
3408
  /** @description Category (e.g. Development, Design) */
@@ -3547,12 +3527,12 @@ interface components {
3547
3527
  /** @description Database server/storage breakdown. Interval buckets only. */
3548
3528
  database_breakdown?: components["schemas"]["V1WorkspaceUsageDatabaseBreakdown"][] | null;
3549
3529
  /**
3550
- * @description Member display name. Present on member-attributed rows (group_by=member, or a query filtered to one user_id) when the caller also holds the members:read scope.
3530
+ * @description Member display name. Present on member-attributed rows (group_by=member, or a query filtered to one user_id).
3551
3531
  * @example Jane Cooper
3552
3532
  */
3553
3533
  display_name?: string;
3554
3534
  /**
3555
- * @description Member email as stored on the workspace membership (not the user's primary/personal email). Present on member-attributed rows when the caller also holds the members:read scope.
3535
+ * @description Member email as stored on the workspace membership (not the user's primary/personal email). Present on member-attributed rows.
3556
3536
  * @example jane.cooper@acme.com
3557
3537
  */
3558
3538
  email?: string;
@@ -4133,58 +4113,11 @@ interface components {
4133
4113
  /** @description Pagination metadata */
4134
4114
  pagination: components["schemas"]["Pagination"];
4135
4115
  };
4136
- V1MessageExportStatus: {
4137
- /**
4138
- * Format: int64
4139
- * @description Compressed archive size in bytes.
4140
- * @example 10485760
4141
- */
4142
- archive_size_bytes?: number;
4143
- /**
4144
- * Format: date-time
4145
- * @description When the export reached a terminal state.
4146
- * @example 2026-01-15T09:32:10Z
4147
- */
4148
- completed_at?: string;
4149
- /**
4150
- * Format: date-time
4151
- * @description When the export was requested.
4152
- * @example 2026-01-15T09:30:00Z
4153
- */
4154
- created_at: string;
4155
- /**
4156
- * @description One-hour signed URL for the ZIP archive, present while a completed export has not expired.
4157
- * @example https://storage.googleapis.com/lovable-message-exports/0195b2c3-6a7d-4f3e-9a1b-2c3d4e5f6a7b.zip?X-Goog-Expires=3600
4158
- */
4159
- download_url?: string;
4160
- /**
4161
- * Format: date-time
4162
- * @description When the completed file is deleted.
4163
- * @example 2026-01-22T09:32:10Z
4164
- */
4165
- expires_at?: string;
4166
- /**
4167
- * @description Export ID.
4168
- * @example 0195b2c3-6a7d-4f3e-9a1b-2c3d4e5f6a7b
4169
- */
4170
- export_id: string;
4171
- /**
4172
- * Format: int64
4173
- * @description Number of messages in a completed export.
4174
- * @example 4821
4175
- */
4176
- message_count?: number;
4177
- /**
4178
- * Format: int64
4179
- * @description Number of projects represented in a completed export.
4180
- * @example 12
4181
- */
4182
- project_count?: number;
4183
- /**
4184
- * @description Current export status.
4185
- * @enum {string}
4186
- */
4187
- status: "running" | "completed" | "failed" | "expired";
4116
+ V1MessageError: {
4117
+ /** @description Stable error code identifying the failure (e.g. PRIMARY_LLM_REQUEST_REJECTED) */
4118
+ code: string;
4119
+ /** @description Sanitized human-readable explanation of the failure */
4120
+ message: string;
4188
4121
  };
4189
4122
  V1MessageListItem: {
4190
4123
  /** @description Message text content */
@@ -4216,6 +4149,8 @@ interface components {
4216
4149
  created_at: string;
4217
4150
  /** @description Associated edit ID, if any */
4218
4151
  edit_id?: string;
4152
+ /** @description Why the turn failed, only present for assistant messages when status is error */
4153
+ error?: components["schemas"]["V1MessageError"];
4219
4154
  /** @description Message ID */
4220
4155
  message_id: string;
4221
4156
  /** @description Why the queue is paused (user, hitl_tool, out_of_credits, server_error) */
@@ -4240,109 +4175,6 @@ interface components {
4240
4175
  /** @description Project IDs to move into the folder */
4241
4176
  project_ids: string[] | null;
4242
4177
  };
4243
- V1ProjectCloudBody: {
4244
- /** @description Disk-space telemetry. Omitted while the measurement is temporarily unavailable; retry later. */
4245
- disk?: components["schemas"]["V1ProjectCloudDisk"];
4246
- /**
4247
- * @description Cloud environment these values describe.
4248
- * @example production
4249
- */
4250
- environment: string;
4251
- /**
4252
- * @description Current compute instance tier code.
4253
- * @enum {string}
4254
- */
4255
- instance_tier: "xs" | "s" | "m" | "ml" | "l" | "xl" | "xxl";
4256
- /**
4257
- * @description Human-readable tier name as shown in the editor (Tiny, Mini, Small, Medium, Large, X-Large, 2X-Large).
4258
- * @example Small
4259
- */
4260
- instance_tier_label: string;
4261
- /** @description Why the instance was paused (e.g. credit_limit), when recorded. Only present on paused instances. */
4262
- pause_reason?: string;
4263
- /**
4264
- * @description Postgres major/minor version. Omitted while the lookup is temporarily unavailable.
4265
- * @example 17.4
4266
- */
4267
- postgres_version?: string;
4268
- /**
4269
- * @description Region the database runs in. Omitted while the lookup is temporarily unavailable.
4270
- * @example us-east-1
4271
- */
4272
- region?: string;
4273
- /** @description CPU/memory/disk-IO pressure alerts over the trailing window. Omitted while the lookup is temporarily unavailable. */
4274
- resource_pressure?: components["schemas"]["V1ProjectCloudResourcePressure"];
4275
- /**
4276
- * @description Database instance lifecycle status. INACTIVE means paused. Cached for up to a minute; omitted while the lookup is temporarily unavailable.
4277
- * @enum {string}
4278
- */
4279
- status?: "OK" | "RESIZING" | "UPGRADING" | "RESTARTING" | "COMING_UP" | "RESTORING" | "UNHEALTHY" | "INACTIVE" | "PAUSING" | "UNKNOWN" | "";
4280
- /**
4281
- * @description True when a user (or the platform) explicitly paused this cloud instance.
4282
- * @example false
4283
- */
4284
- user_paused: boolean;
4285
- };
4286
- V1ProjectCloudDisk: {
4287
- /**
4288
- * Format: int64
4289
- * @description Provisioned size of the database volume in bytes.
4290
- * @example 8589934592
4291
- */
4292
- size_bytes: number;
4293
- /**
4294
- * Format: date-time
4295
- * @description When the platform measured these values. Measurements refresh periodically; use this to judge data age.
4296
- * @example 2026-01-15T09:30:00Z
4297
- */
4298
- timestamp: string;
4299
- /**
4300
- * Format: int64
4301
- * @description Bytes used on the database volume, as last measured by the platform. Measures the whole managed volume, so it exceeds what SQL-level views (e.g. pg_database_size) can see.
4302
- * @example 1073741824
4303
- */
4304
- used_bytes: number;
4305
- };
4306
- V1ProjectCloudResourcePressure: {
4307
- /** @description Per-resource pressure signals. Alerts reset when the instance is resized. */
4308
- resources: components["schemas"]["V1ProjectCloudResourceSignal"][] | null;
4309
- /**
4310
- * Format: int64
4311
- * @description Size of the trailing window these signals cover.
4312
- * @example 24
4313
- */
4314
- window_hours: number;
4315
- };
4316
- V1ProjectCloudResourceSignal: {
4317
- /**
4318
- * Format: int64
4319
- * @description Hours within the window that raised a pressure alert.
4320
- * @example 3
4321
- */
4322
- alert_hours: number;
4323
- /**
4324
- * @description Human-readable resource name.
4325
- * @example CPU
4326
- */
4327
- label: string;
4328
- /**
4329
- * Format: date-time
4330
- * @description Most recent pressure alert in the window, if any.
4331
- * @example 2026-01-15T09:30:00Z
4332
- */
4333
- latest_alert_at?: string;
4334
- /**
4335
- * Format: double
4336
- * @description Reported value of the most recent alert, if any.
4337
- * @example 95.5
4338
- */
4339
- latest_value?: number;
4340
- /**
4341
- * @description Resource under pressure: cpu, memory, or disk_io.
4342
- * @example cpu
4343
- */
4344
- resource_type: string;
4345
- };
4346
4178
  V1ProjectCollaborator: {
4347
4179
  /**
4348
4180
  * Format: date-time
@@ -4542,7 +4374,9 @@ interface components {
4542
4374
  description?: string;
4543
4375
  /** @description Copy custom knowledge (instructions) to the new project */
4544
4376
  include_custom_knowledge?: boolean;
4545
- /** @description Copy chat history to the new project */
4377
+ /** @description Copy project Files. Defaults to false. Requires edit access to the original project; view-only access or a public remix link is not enough. Omitted or false skips Files; true returns 403 without edit access. */
4378
+ include_files?: boolean;
4379
+ /** @description Copy chat history. Defaults to false. Requires edit access to the original project; view-only access or a public remix link is not enough. */
4546
4380
  include_history?: boolean;
4547
4381
  /** @description Initial headless chat message to send after remix */
4548
4382
  initial_message?: string;
@@ -4828,40 +4662,6 @@ interface components {
4828
4662
  /** @description Knowledge content (markdown). Max 10,000 characters. */
4829
4663
  content: string;
4830
4664
  };
4831
- V1StartMessageExportInputBody: {
4832
- /**
4833
- * @description Exclusive RFC3339 end time. Defaults to the request time.
4834
- * @example 2026-02-01T00:00:00Z
4835
- */
4836
- end_date?: string;
4837
- /**
4838
- * @description Export only messages from this project. The project must be visible to the caller. May be combined with user_id; both filters must match.
4839
- * @example prj_01jw3k9m2xq8r5v0c7d4e6f2gh
4840
- */
4841
- project_id?: string;
4842
- /**
4843
- * @description Inclusive RFC3339 start time. Defaults to 90 days before end_date.
4844
- * @example 2026-01-01T00:00:00Z
4845
- */
4846
- start_date?: string;
4847
- /**
4848
- * @description Export only messages sent by this user. May be combined with project_id; both filters must match.
4849
- * @example Xy7Kd2Lm9Qp4Rt6Vw8Zc1Bn3Fh5
4850
- */
4851
- user_id?: string;
4852
- };
4853
- V1StartMessageExportOutputBody: {
4854
- /**
4855
- * @description Export ID used to poll status.
4856
- * @example 0195b2c3-6a7d-4f3e-9a1b-2c3d4e5f6a7b
4857
- */
4858
- export_id: string;
4859
- /**
4860
- * @description Initial export status (running).
4861
- * @enum {string}
4862
- */
4863
- status: "running";
4864
- };
4865
4665
  V1TriggerSecurityScanInputBody: {
4866
4666
  /** @description Project ID */
4867
4667
  project_id: string;
@@ -5132,6 +4932,51 @@ interface components {
5132
4932
  */
5133
4933
  remaining: number;
5134
4934
  };
4935
+ V1WorkspaceGroup: {
4936
+ /**
4937
+ * Format: date-time
4938
+ * @description When the group was created.
4939
+ * @example 2026-01-15T09:30:00Z
4940
+ */
4941
+ created_at: string;
4942
+ /**
4943
+ * @description Group description. Absent when not set.
4944
+ * @example Platform and infrastructure engineers
4945
+ */
4946
+ description?: string;
4947
+ /**
4948
+ * @description Group ID. Use as the target id of a type "group" audience entry when publishing with visibility "custom" via POST or PATCH /v1/projects/{project_id}/publish.
4949
+ * @example engineering_workspace_01jw3k9m2xq8r5v0c7d4e6f2gh
4950
+ */
4951
+ id: string;
4952
+ /**
4953
+ * Format: int64
4954
+ * @description Number of members in the group: active members, pending members, and invited users who have not signed up yet.
4955
+ * @example 12
4956
+ */
4957
+ member_count: number;
4958
+ /**
4959
+ * @description Group display name, unique within the workspace.
4960
+ * @example Engineering
4961
+ */
4962
+ name: string;
4963
+ /**
4964
+ * @description External ID assigned by the SCIM identity provider. Present only on SCIM-provisioned groups.
4965
+ * @example 00g1a2b3c4D5E6F7g8h9
4966
+ */
4967
+ scim_external_id?: string;
4968
+ /**
4969
+ * Format: date-time
4970
+ * @description When the group was last updated.
4971
+ * @example 2026-01-15T09:30:00Z
4972
+ */
4973
+ updated_at: string;
4974
+ /**
4975
+ * @description Workspace the group belongs to.
4976
+ * @example workspace_01jw3k9m2xq8r5v0c7d4e6f2gh
4977
+ */
4978
+ workspace_id: string;
4979
+ };
5135
4980
  V1WorkspaceInsightsActivityFreshness: {
5136
4981
  /**
5137
4982
  * Format: date-time
@@ -5661,6 +5506,8 @@ interface components {
5661
5506
  * @example jane.cooper@acme.com
5662
5507
  */
5663
5508
  email?: string;
5509
+ /** @description Groups the member belongs to, sorted by group name. Never truncated: a member in many groups returns all of them, so response size scales with group membership. Present whenever the request asks for include=groups, empty for a member in no groups; absent otherwise. */
5510
+ groups?: components["schemas"]["V1WorkspaceMemberGroup"][];
5664
5511
  /**
5665
5512
  * Format: date-time
5666
5513
  * @description When the user was invited.
@@ -5695,6 +5542,18 @@ interface components {
5695
5542
  */
5696
5543
  workspace_id: string;
5697
5544
  };
5545
+ V1WorkspaceMemberGroup: {
5546
+ /**
5547
+ * @description Group ID, as returned by GET /v1/workspaces/{workspace_id}/groups.
5548
+ * @example engineering_workspace_01jw3k9m2xq8r5v0c7d4e6f2gh
5549
+ */
5550
+ id: string;
5551
+ /**
5552
+ * @description Group display name.
5553
+ * @example Engineering
5554
+ */
5555
+ name: string;
5556
+ };
5698
5557
  V1WorkspaceSettingsBody: {
5699
5558
  /**
5700
5559
  * Format: date-time
@@ -6025,6 +5884,11 @@ interface components {
6025
5884
  skill: components["schemas"]["V1WorkspaceSkillDTO"];
6026
5885
  };
6027
5886
  VisibilityChangeInfo: {
5887
+ /**
5888
+ * Format: date-time
5889
+ * @description Firestore commit time of the visibility write; the project's revision token for client caches
5890
+ */
5891
+ commit_time?: string;
6028
5892
  /** @enum {string} */
6029
5893
  new_visibility: "public" | "private" | "draft" | "workspace_view";
6030
5894
  /** @enum {string} */
@@ -6703,6 +6567,8 @@ interface operations {
6703
6567
  sort_order?: "asc" | "desc";
6704
6568
  /** @description Filter by SCIM provisioning status. Empty = all members, 'managed' = only SCIM-provisioned members, 'unmanaged' = only members not managed by SCIM. */
6705
6569
  scim_managed?: "managed" | "unmanaged";
6570
+ /** @description Comma-separated optional expansions. Valid values: groups. Unknown values return 400, but a misspelled parameter *name* is ignored rather than rejected (the response carries X-Lovable-Unknown-Query-Params), so check the header if an expansion you asked for is missing. Expansions cost extra reads, so each response field is absent unless asked for. */
6571
+ include?: string;
6706
6572
  };
6707
6573
  header?: never;
6708
6574
  path?: never;
@@ -7047,7 +6913,7 @@ interface operations {
7047
6913
  /** @description Filter by project type. library returns design-system libraries; template returns non-library templates. */
7048
6914
  type?: "" | "project" | "library" | "template" | "all";
7049
6915
  /** @description Search query */
7050
- q?: string;
6916
+ query?: string;
7051
6917
  /** @description Maximum number of projects to return */
7052
6918
  limit?: number;
7053
6919
  /** @description Opaque pagination cursor returned by the previous page */
@@ -7118,6 +6984,7 @@ interface operations {
7118
6984
  /** @description Accepted */
7119
6985
  202: {
7120
6986
  headers: {
6987
+ Location?: string;
7121
6988
  [name: string]: unknown;
7122
6989
  };
7123
6990
  content: {
@@ -7242,10 +7109,6 @@ interface operations {
7242
7109
  start_date?: string;
7243
7110
  /** @description End date in RFC 3339 format (e.g. 2026-04-08T00:00:00Z). Required when series=historical. */
7244
7111
  end_date?: string;
7245
- /** @description Deprecated alias for start_date. */
7246
- startDate?: string;
7247
- /** @description Deprecated alias for end_date. */
7248
- endDate?: string;
7249
7112
  /** @description Time bucket size for series=historical: hourly or daily (default: daily). */
7250
7113
  granularity?: string;
7251
7114
  };
@@ -8325,6 +8188,38 @@ interface operations {
8325
8188
  };
8326
8189
  };
8327
8190
  };
8191
+ "get-v1-remix-jobs-job_id": {
8192
+ parameters: {
8193
+ query?: never;
8194
+ header?: never;
8195
+ path: {
8196
+ /** @description Remix job ID returned by POST /v1/projects */
8197
+ job_id: string;
8198
+ };
8199
+ cookie?: never;
8200
+ };
8201
+ requestBody?: never;
8202
+ responses: {
8203
+ /** @description OK */
8204
+ 200: {
8205
+ headers: {
8206
+ [name: string]: unknown;
8207
+ };
8208
+ content: {
8209
+ "application/json": components["schemas"]["PublicV1RemixJobOutputBody"];
8210
+ };
8211
+ };
8212
+ /** @description Error */
8213
+ default: {
8214
+ headers: {
8215
+ [name: string]: unknown;
8216
+ };
8217
+ content: {
8218
+ "application/problem+json": components["schemas"]["ErrorModel"];
8219
+ };
8220
+ };
8221
+ };
8222
+ };
8328
8223
  "get-v1-security-scans": {
8329
8224
  parameters: {
8330
8225
  query: {
@@ -8803,10 +8698,6 @@ interface operations {
8803
8698
  start_date?: string;
8804
8699
  /** @description End date in RFC 3339 format (e.g. 2026-07-08T00:00:00Z). Required. */
8805
8700
  end_date?: string;
8806
- /** @description Deprecated alias for start_date. */
8807
- startDate?: string;
8808
- /** @description Deprecated alias for end_date. */
8809
- endDate?: string;
8810
8701
  /** @description Time bucket size: hourly or daily (default: daily) */
8811
8702
  granularity?: "hourly" | "daily";
8812
8703
  };
@@ -9607,6 +9498,43 @@ interface operations {
9607
9498
  };
9608
9499
  };
9609
9500
  };
9501
+ "get-v1-workspaces-workspace_id-groups": {
9502
+ parameters: {
9503
+ query?: {
9504
+ /** @description Maximum number of items to return */
9505
+ limit?: number;
9506
+ /** @description Opaque pagination cursor returned by the previous page */
9507
+ cursor?: string;
9508
+ };
9509
+ header?: never;
9510
+ path: {
9511
+ /** @description Workspace ID */
9512
+ workspace_id: string;
9513
+ };
9514
+ cookie?: never;
9515
+ };
9516
+ requestBody?: never;
9517
+ responses: {
9518
+ /** @description OK */
9519
+ 200: {
9520
+ headers: {
9521
+ [name: string]: unknown;
9522
+ };
9523
+ content: {
9524
+ "application/json": components["schemas"]["CursorListResponseV1WorkspaceGroup"];
9525
+ };
9526
+ };
9527
+ /** @description Error */
9528
+ default: {
9529
+ headers: {
9530
+ [name: string]: unknown;
9531
+ };
9532
+ content: {
9533
+ "application/problem+json": components["schemas"]["ErrorModel"];
9534
+ };
9535
+ };
9536
+ };
9537
+ };
9610
9538
  "get-v1-workspaces-workspace_id-knowledge": {
9611
9539
  parameters: {
9612
9540
  query?: never;
@@ -9694,6 +9622,8 @@ interface operations {
9694
9622
  sort_order?: "asc" | "desc";
9695
9623
  /** @description Filter by SCIM provisioning status. Empty = all members, 'managed' = only SCIM-provisioned members, 'unmanaged' = only members not managed by SCIM. */
9696
9624
  scim_managed?: "managed" | "unmanaged";
9625
+ /** @description Comma-separated optional expansions. Valid values: groups. Unknown values return 400, but a misspelled parameter *name* is ignored rather than rejected (the response carries X-Lovable-Unknown-Query-Params), so check the header if an expansion you asked for is missing. Expansions cost extra reads, so each response field is absent unless asked for. */
9626
+ include?: string;
9697
9627
  };
9698
9628
  header?: never;
9699
9629
  path: {
@@ -9749,16 +9679,16 @@ interface operations {
9749
9679
  sort_by?: "name" | "created_at" | "last_edited_at" | "last_viewed_at" | "relevance" | "most_visitors_24h" | "most_visitors_7d" | "most_visitors_30d" | "most_edited_24h" | "most_edited_7d" | "most_edited_30d" | "trending" | "risk" | "design_system_published";
9750
9680
  /** @description Sort order */
9751
9681
  sort_order?: "asc" | "desc";
9752
- /** @description Maximum number of projects to return */
9753
- limit?: number;
9754
- /** @description Offset for pagination */
9755
- offset?: number;
9756
9682
  /** @description Only return projects viewed by the current user */
9757
9683
  viewed_by_me?: boolean;
9758
9684
  /** @description Group results by activity tier: active (14d), inactive (60d), dead */
9759
9685
  group_by_activity?: boolean;
9760
9686
  /** @description Which fields to search: empty for all (default), 'name' for project name only */
9761
9687
  search_fields?: "" | "name";
9688
+ /** @description Maximum number of projects to return */
9689
+ limit?: number;
9690
+ /** @description Offset for pagination */
9691
+ offset?: number;
9762
9692
  };
9763
9693
  header?: never;
9764
9694
  path: {
@@ -10170,160 +10100,6 @@ interface operations {
10170
10100
  };
10171
10101
  };
10172
10102
  };
10173
- "get-v1beta-projects-project_id-cloud": {
10174
- parameters: {
10175
- query?: {
10176
- /** @description Cloud environment to read. Defaults to production. */
10177
- environment?: "production" | "development";
10178
- };
10179
- header?: never;
10180
- path: {
10181
- /** @description Project ID */
10182
- project_id: string;
10183
- };
10184
- cookie?: never;
10185
- };
10186
- requestBody?: never;
10187
- responses: {
10188
- /** @description OK */
10189
- 200: {
10190
- headers: {
10191
- [name: string]: unknown;
10192
- };
10193
- content: {
10194
- "application/json": components["schemas"]["V1ProjectCloudBody"];
10195
- };
10196
- };
10197
- /** @description Error */
10198
- default: {
10199
- headers: {
10200
- [name: string]: unknown;
10201
- };
10202
- content: {
10203
- "application/problem+json": components["schemas"]["ErrorModel"];
10204
- };
10205
- };
10206
- };
10207
- };
10208
- "get-v1beta-workspaces-workspace_id-audit-logs": {
10209
- parameters: {
10210
- query?: {
10211
- /** @description Maximum results per page. */
10212
- limit?: number;
10213
- /** @description Opaque cursor returned by a previous page; omit for the first page. */
10214
- cursor?: string;
10215
- /** @description Comma-separated audit-log action filter (exact match, e.g. workspace.member.added). */
10216
- actions?: string;
10217
- /** @description Comma-separated list of actor user IDs to filter by. */
10218
- actor_ids?: string;
10219
- /** @description Comma-separated list of target resource IDs to filter by. */
10220
- target_ids?: string;
10221
- /** @description Token-based search on target_id and target_display_name. Minimum 3 characters. */
10222
- search?: string;
10223
- /** @description RFC3339 inclusive start of the time range. Defaults to 30 days ago. When paginating with cursor, pass an explicit start_date so the default lower bound does not drift between pages. */
10224
- start_date?: string;
10225
- /** @description RFC3339 inclusive end of the time range. Defaults to now. */
10226
- end_date?: string;
10227
- };
10228
- header?: never;
10229
- path: {
10230
- /** @description Workspace ID */
10231
- workspace_id: string;
10232
- };
10233
- cookie?: never;
10234
- };
10235
- requestBody?: never;
10236
- responses: {
10237
- /** @description OK */
10238
- 200: {
10239
- headers: {
10240
- [name: string]: unknown;
10241
- };
10242
- content: {
10243
- "application/json": components["schemas"]["V1WorkspaceAuditLogsBody"];
10244
- };
10245
- };
10246
- /** @description Error */
10247
- default: {
10248
- headers: {
10249
- [name: string]: unknown;
10250
- };
10251
- content: {
10252
- "application/problem+json": components["schemas"]["ErrorModel"];
10253
- };
10254
- };
10255
- };
10256
- };
10257
- "post-v1beta-workspaces-workspace_id-message-exports": {
10258
- parameters: {
10259
- query?: never;
10260
- header?: never;
10261
- path: {
10262
- /** @description Workspace ID */
10263
- workspace_id: string;
10264
- };
10265
- cookie?: never;
10266
- };
10267
- requestBody: {
10268
- content: {
10269
- "application/json": components["schemas"]["V1StartMessageExportInputBody"];
10270
- };
10271
- };
10272
- responses: {
10273
- /** @description Accepted */
10274
- 202: {
10275
- headers: {
10276
- [name: string]: unknown;
10277
- };
10278
- content: {
10279
- "application/json": components["schemas"]["V1StartMessageExportOutputBody"];
10280
- };
10281
- };
10282
- /** @description Error */
10283
- default: {
10284
- headers: {
10285
- [name: string]: unknown;
10286
- };
10287
- content: {
10288
- "application/problem+json": components["schemas"]["ErrorModel"];
10289
- };
10290
- };
10291
- };
10292
- };
10293
- "get-v1beta-workspaces-workspace_id-message-exports-export_id": {
10294
- parameters: {
10295
- query?: never;
10296
- header?: never;
10297
- path: {
10298
- /** @description Workspace ID */
10299
- workspace_id: string;
10300
- /** @description Export ID returned when the export was started. */
10301
- export_id: string;
10302
- };
10303
- cookie?: never;
10304
- };
10305
- requestBody?: never;
10306
- responses: {
10307
- /** @description OK */
10308
- 200: {
10309
- headers: {
10310
- [name: string]: unknown;
10311
- };
10312
- content: {
10313
- "application/json": components["schemas"]["V1MessageExportStatus"];
10314
- };
10315
- };
10316
- /** @description Error */
10317
- default: {
10318
- headers: {
10319
- [name: string]: unknown;
10320
- };
10321
- content: {
10322
- "application/problem+json": components["schemas"]["ErrorModel"];
10323
- };
10324
- };
10325
- };
10326
- };
10327
10103
  }
10328
10104
  //#endregion
10329
10105
  //#region src/types.d.ts
@@ -10574,6 +10350,7 @@ interface RemixProjectOptions {
10574
10350
  messageId?: string;
10575
10351
  remixMode?: RemixMode;
10576
10352
  includeHistory?: boolean;
10353
+ includeFiles?: boolean;
10577
10354
  includeCustomKnowledge?: boolean;
10578
10355
  initialMessage?: string;
10579
10356
  description?: string;
@@ -10626,7 +10403,6 @@ interface GetMessageOptions {
10626
10403
  waitSeconds?: number;
10627
10404
  }
10628
10405
  interface ListProjectsOptions {
10629
- /** Full-text search; mapped to `q` on the wire. */
10630
10406
  query?: string;
10631
10407
  visibility?: ListProjectsQuery["visibility"];
10632
10408
  publish_status?: ListProjectsQuery["publish_status"];
@@ -10936,9 +10712,9 @@ declare class LovableClient {
10936
10712
  /**
10937
10713
  * Wait for a remix operation to complete.
10938
10714
  *
10939
- * Polls the remix progress endpoint until the job reaches "completed" or "error" status.
10715
+ * Polls the remix job endpoint until the job reaches "completed" or "error" status.
10940
10716
  *
10941
- * @param sourceProjectId - The source project ID (used for the progress endpoint)
10717
+ * @param sourceProjectId - The source project ID. Kept for backward compatibility; the public job endpoint is keyed by job ID.
10942
10718
  * @param jobId - The job ID returned by `remixProject()`
10943
10719
  * @param options.pollInterval - Time between polls in ms (default: 2000)
10944
10720
  * @param options.timeout - Maximum time to wait in ms (default: 300000 = 5 minutes)