@lovable.dev/sdk 1.2.2 → 1.2.3

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
@@ -1305,7 +1305,7 @@ interface paths {
1305
1305
  };
1306
1306
  /**
1307
1307
  * List workspaces
1308
- * @description Returns workspaces the authenticated user belongs to. Use data and pagination for new clients; workspaces remains as a compatibility alias.
1308
+ * @description Returns workspaces the authenticated user belongs to with cursor pagination.
1309
1309
  */
1310
1310
  get: operations["get-v1-workspaces"];
1311
1311
  put?: never;
@@ -1734,11 +1734,6 @@ interface components {
1734
1734
  */
1735
1735
  who_can_create: "editors_and_admins" | "admins_only";
1736
1736
  };
1737
- AppUserConnectorSetting: {
1738
- enabled: boolean;
1739
- name: string;
1740
- who_can_create?: string;
1741
- };
1742
1737
  CommonSeamlessConnectorCreator: {
1743
1738
  name: string;
1744
1739
  url: string;
@@ -1768,8 +1763,8 @@ interface components {
1768
1763
  data: components["schemas"]["PublicV1ConnectorItem"][] | null;
1769
1764
  pagination: components["schemas"]["Pagination"];
1770
1765
  };
1771
- CursorListResponseSearchProjectItem: {
1772
- data: components["schemas"]["SearchProjectItem"][] | null;
1766
+ CursorListResponsePublicV1ProjectListItem: {
1767
+ data: components["schemas"]["PublicV1ProjectListItem"][] | null;
1773
1768
  pagination: components["schemas"]["Pagination"];
1774
1769
  };
1775
1770
  CursorListResponseV1AvailableConnectorEntry: {
@@ -1815,17 +1810,6 @@ interface components {
1815
1810
  content: string;
1816
1811
  type: string;
1817
1812
  };
1818
- DisputeVoidedGrant: {
1819
- /** Format: int64 */
1820
- amount: number;
1821
- applicability: string;
1822
- category: string;
1823
- currency: string;
1824
- grant_id: string;
1825
- grant_type: string;
1826
- /** Format: int64 */
1827
- price_per_credit_hundredths: number;
1828
- };
1829
1813
  ErrorDetail: {
1830
1814
  /** @description Where the error occurred, e.g. 'body.items[3].tags' or 'path.thing-id' */
1831
1815
  location?: string;
@@ -1912,12 +1896,6 @@ interface components {
1912
1896
  /** @description Caller's role in the workspace */
1913
1897
  role: string;
1914
1898
  };
1915
- GetUserWorkspaceBody: {
1916
- /** @description Current user's membership details */
1917
- current_member?: components["schemas"]["WorkspaceMembershipResponse"];
1918
- /** @description The workspace details */
1919
- workspace: components["schemas"]["Workspace"];
1920
- };
1921
1899
  GitFileEntry: {
1922
1900
  binary: boolean;
1923
1901
  path: string;
@@ -1996,34 +1974,12 @@ interface components {
1996
1974
  name: string;
1997
1975
  url: string;
1998
1976
  };
1999
- MCPConnectorSetting: {
2000
- enabled: boolean;
2001
- name: string;
2002
- };
2003
1977
  Pagination: {
2004
1978
  /** @description Whether more results are available beyond this page */
2005
1979
  has_more: boolean;
2006
1980
  /** @description Cursor for the next page; null when there are no more results */
2007
1981
  next_cursor: string | null;
2008
1982
  };
2009
- PendingDisputeAdjustment: {
2010
- currency: string;
2011
- /** Format: int64 */
2012
- customer_balance_debit_amount: number;
2013
- customer_id: string;
2014
- invoice_id: string;
2015
- voided_grants: components["schemas"]["DisputeVoidedGrant"][] | null;
2016
- };
2017
- PendingRefundAdjustment: Record<string, never>;
2018
- ProjectAccessEntry: {
2019
- /** Format: date-time */
2020
- accepted_at?: string;
2021
- /** Format: date-time */
2022
- invited_at: string;
2023
- invited_by: string;
2024
- /** @enum {string} */
2025
- level: "owner" | "admin" | "write" | "read" | "none";
2026
- };
2027
1983
  ProjectAnalyticsResponse: {
2028
1984
  lists: components["schemas"]["ListsGroup"];
2029
1985
  timeSeries: components["schemas"]["TimeSeriesGroup"];
@@ -2171,6 +2127,12 @@ interface components {
2171
2127
  /** @description Project ID */
2172
2128
  project_id: string;
2173
2129
  };
2130
+ PublicV1GetWorkspaceBody: {
2131
+ /** @description Caller's membership in this workspace. */
2132
+ current_member?: components["schemas"]["PublicV1WorkspaceMember"];
2133
+ /** @description Workspace details. */
2134
+ workspace: components["schemas"]["PublicV1Workspace"];
2135
+ };
2174
2136
  PublicV1GitFilesResponse: {
2175
2137
  data: components["schemas"]["GitFileEntryLite"][] | null;
2176
2138
  pagination: components["schemas"]["Pagination"];
@@ -2220,6 +2182,57 @@ interface components {
2220
2182
  /** @description Project ID */
2221
2183
  project_id: string;
2222
2184
  };
2185
+ PublicV1ProjectListItem: {
2186
+ /**
2187
+ * Format: date-time
2188
+ * @description When the project was created.
2189
+ */
2190
+ created_at?: string;
2191
+ /** @description Project description. */
2192
+ description?: string;
2193
+ /** @description Human-readable project name. */
2194
+ display_name?: string;
2195
+ /** @description Folder the project belongs to, if any. */
2196
+ folder_id?: string;
2197
+ /** @description Project ID. */
2198
+ id: string;
2199
+ /** @description Whether the project is published. */
2200
+ is_published?: boolean;
2201
+ /** @description Whether the project is a template. */
2202
+ is_template?: boolean;
2203
+ /**
2204
+ * Format: date-time
2205
+ * @description When the project was last edited.
2206
+ */
2207
+ last_edited_at?: string;
2208
+ /** @description URL of the latest screenshot. */
2209
+ latest_screenshot_url?: string;
2210
+ /** @description Project slug. */
2211
+ name?: string;
2212
+ /** @description Open Graph image URL. */
2213
+ og_image_url?: string;
2214
+ /** @description Project type. */
2215
+ project_type?: string;
2216
+ /** @description Published visibility. */
2217
+ publish_visibility?: string;
2218
+ /** @description Project status: in_progress, completed, or failed. */
2219
+ status?: string;
2220
+ /** @description Project tech stack. */
2221
+ tech_stack?: string;
2222
+ /**
2223
+ * Format: date-time
2224
+ * @description When the project was last updated.
2225
+ */
2226
+ updated_at?: string;
2227
+ /** @description Published project URL. */
2228
+ url?: string;
2229
+ /** @description Project owner user ID. */
2230
+ user_id?: string;
2231
+ /** @description Project visibility: draft, private, workspace_view, or public. */
2232
+ visibility?: string;
2233
+ /** @description Workspace the project belongs to. */
2234
+ workspace_id: string;
2235
+ };
2223
2236
  PublicV1ProjectRemixInputBody: {
2224
2237
  /** @description Project description */
2225
2238
  description?: string;
@@ -2278,6 +2291,76 @@ interface components {
2278
2291
  /** @description Project ID */
2279
2292
  project_id: string;
2280
2293
  };
2294
+ PublicV1Workspace: {
2295
+ /**
2296
+ * Format: date-time
2297
+ * @description When the workspace was created.
2298
+ */
2299
+ created_at?: string;
2300
+ /** @description Workspace description. */
2301
+ description?: string;
2302
+ /** @description Workspace ID. */
2303
+ id: string;
2304
+ /** @description Workspace image URL. */
2305
+ image_url?: string;
2306
+ /** @description Workspace display name. */
2307
+ name: string;
2308
+ /**
2309
+ * Format: int64
2310
+ * @description Number of projects in the workspace.
2311
+ */
2312
+ num_projects: number;
2313
+ /** @description Plan tier: free, pro, biz, or enterprise. */
2314
+ plan: string;
2315
+ /**
2316
+ * Format: date-time
2317
+ * @description When the workspace was last updated.
2318
+ */
2319
+ updated_at?: string;
2320
+ };
2321
+ PublicV1WorkspaceMember: {
2322
+ /**
2323
+ * Format: date-time
2324
+ * @description When the caller joined the workspace.
2325
+ */
2326
+ joined_at?: string;
2327
+ /**
2328
+ * @description Caller's role in the workspace.
2329
+ * @enum {string}
2330
+ */
2331
+ role: "none" | "owner" | "admin" | "member" | "viewer" | "collaborator" | "invited";
2332
+ /** @description Caller's user ID. */
2333
+ user_id: string;
2334
+ };
2335
+ PublicV1WorkspaceWithMembership: {
2336
+ /**
2337
+ * Format: date-time
2338
+ * @description When the workspace was created.
2339
+ */
2340
+ created_at?: string;
2341
+ /** @description Workspace description. */
2342
+ description?: string;
2343
+ /** @description Workspace ID. */
2344
+ id: string;
2345
+ /** @description Workspace image URL. */
2346
+ image_url?: string;
2347
+ /** @description Caller's membership in this workspace. */
2348
+ membership?: components["schemas"]["PublicV1WorkspaceMember"];
2349
+ /** @description Workspace display name. */
2350
+ name: string;
2351
+ /**
2352
+ * Format: int64
2353
+ * @description Number of projects in the workspace.
2354
+ */
2355
+ num_projects: number;
2356
+ /** @description Plan tier: free, pro, biz, or enterprise. */
2357
+ plan: string;
2358
+ /**
2359
+ * Format: date-time
2360
+ * @description When the workspace was last updated.
2361
+ */
2362
+ updated_at?: string;
2363
+ };
2281
2364
  RemixJobStepInfo: {
2282
2365
  integration_name?: string;
2283
2366
  status?: string;
@@ -2301,10 +2384,6 @@ interface components {
2301
2384
  short_description: string;
2302
2385
  toolIntegrationName?: string;
2303
2386
  };
2304
- SeamlessConnectorSetting: {
2305
- enabled: boolean;
2306
- name: string;
2307
- };
2308
2387
  SearchProjectItem: {
2309
2388
  /** Format: date-time */
2310
2389
  abandoned_at?: string;
@@ -2453,11 +2532,6 @@ interface components {
2453
2532
  /** Format: date-time */
2454
2533
  until: string;
2455
2534
  };
2456
- StandardConnectorSetting: {
2457
- enabled: boolean;
2458
- name: string;
2459
- who_can_create?: string;
2460
- };
2461
2535
  TemplateProjectResponse: {
2462
2536
  /** @description Project description */
2463
2537
  description: string;
@@ -2644,33 +2718,60 @@ interface components {
2644
2718
  visibility?: string;
2645
2719
  };
2646
2720
  V1CreateProjectResponse: {
2647
- /** @description AI-generated project description */
2721
+ /**
2722
+ * Format: date-time
2723
+ * @description When the project was created.
2724
+ */
2725
+ created_at?: string;
2726
+ /** @description Project description. */
2648
2727
  description?: string;
2649
- /** @description Project display name */
2728
+ /** @description Human-readable project name. */
2650
2729
  display_name?: string;
2651
2730
  /** @description Static-preview URL with a short-lived (1h) signed token (?__lovable_token=…) that loads the preview in an iframe or a direct open without an in-iframe Lovable login. Grants static-preview access only; to permit a specific third-party framing origin, mint an origin-bound token via POST /v1/projects/{project_id}/embed-url. */
2652
2731
  embed_url?: string;
2653
- /** @description Project ID */
2732
+ /** @description Folder the project belongs to, if any. */
2733
+ folder_id?: string;
2734
+ /** @description Project ID. */
2654
2735
  id: string;
2655
- /** @description Whether the project is published */
2736
+ /** @description Whether the project is published. */
2656
2737
  is_published?: boolean;
2738
+ /** @description Whether the project is a template. */
2739
+ is_template?: boolean;
2740
+ /**
2741
+ * Format: date-time
2742
+ * @description When the project was last edited.
2743
+ */
2744
+ last_edited_at?: string;
2657
2745
  /** @description SHA of the latest commit */
2658
2746
  latest_commit_sha?: string;
2659
- /** @description URL of the latest screenshot */
2747
+ /** @description URL of the latest screenshot. */
2660
2748
  latest_screenshot_url?: string;
2661
2749
  /** @description User message ID, present when initial_message was provided */
2662
2750
  message_id?: string;
2663
- /** @description Project slug */
2751
+ /** @description Project slug. */
2664
2752
  name?: string;
2665
- /** @description Project status: in_progress, completed, failed */
2753
+ /** @description Open Graph image URL. */
2754
+ og_image_url?: string;
2755
+ /** @description Project type. */
2756
+ project_type?: string;
2757
+ /** @description Published visibility. */
2758
+ publish_visibility?: string;
2759
+ /** @description Project status: in_progress, completed, or failed. */
2666
2760
  status?: string;
2667
- /** @description Technology stack (default: vite) */
2761
+ /** @description Project tech stack. */
2668
2762
  tech_stack?: string;
2669
- /** @description Published project URL */
2763
+ /**
2764
+ * Format: date-time
2765
+ * @description When the project was last updated.
2766
+ */
2767
+ updated_at?: string;
2768
+ /** @description Published project URL. */
2670
2769
  url?: string;
2671
- /** @description Project visibility: draft, private, workspace_view, public */
2770
+ /** @description Project owner user ID. */
2771
+ user_id?: string;
2772
+ /** @description Project visibility: draft, private, workspace_view, or public. */
2672
2773
  visibility?: string;
2673
- /** @description Workspace ID */
2774
+ /** @description Workspace the project belongs to. */
2674
2775
  workspace_id: string;
2675
2776
  };
2676
2777
  V1CreateVariantInputBody: {
@@ -2914,11 +3015,9 @@ interface components {
2914
3015
  };
2915
3016
  V1ListWorkspacesBody: {
2916
3017
  /** @description Workspaces the user is a member of */
2917
- data: components["schemas"]["WorkspaceWithMembership"][] | null;
3018
+ data: components["schemas"]["PublicV1WorkspaceWithMembership"][] | null;
2918
3019
  /** @description Pagination metadata */
2919
3020
  pagination: components["schemas"]["Pagination"];
2920
- /** @description Deprecated compatibility field. Use data instead. */
2921
- workspaces: components["schemas"]["WorkspaceWithMembership"][] | null;
2922
3021
  };
2923
3022
  V1MessageListItem: {
2924
3023
  /** @description Message text content */
@@ -3021,31 +3120,58 @@ interface components {
3021
3120
  total: number;
3022
3121
  };
3023
3122
  V1ProjectResponse: {
3024
- /** @description AI-generated project description */
3123
+ /**
3124
+ * Format: date-time
3125
+ * @description When the project was created.
3126
+ */
3127
+ created_at?: string;
3128
+ /** @description Project description. */
3025
3129
  description?: string;
3026
- /** @description Project display name */
3130
+ /** @description Human-readable project name. */
3027
3131
  display_name?: string;
3028
3132
  /** @description Static-preview URL with a short-lived (1h) signed token (?__lovable_token=…) that loads the preview in an iframe or a direct open without an in-iframe Lovable login. Grants static-preview access only; to permit a specific third-party framing origin, mint an origin-bound token via POST /v1/projects/{project_id}/embed-url. */
3029
3133
  embed_url?: string;
3030
- /** @description Project ID */
3134
+ /** @description Folder the project belongs to, if any. */
3135
+ folder_id?: string;
3136
+ /** @description Project ID. */
3031
3137
  id: string;
3032
- /** @description Whether the project is published */
3138
+ /** @description Whether the project is published. */
3033
3139
  is_published?: boolean;
3140
+ /** @description Whether the project is a template. */
3141
+ is_template?: boolean;
3142
+ /**
3143
+ * Format: date-time
3144
+ * @description When the project was last edited.
3145
+ */
3146
+ last_edited_at?: string;
3034
3147
  /** @description SHA of the latest commit */
3035
3148
  latest_commit_sha?: string;
3036
- /** @description URL of the latest screenshot */
3149
+ /** @description URL of the latest screenshot. */
3037
3150
  latest_screenshot_url?: string;
3038
- /** @description Project slug */
3151
+ /** @description Project slug. */
3039
3152
  name?: string;
3040
- /** @description Project status: in_progress, completed, failed */
3153
+ /** @description Open Graph image URL. */
3154
+ og_image_url?: string;
3155
+ /** @description Project type. */
3156
+ project_type?: string;
3157
+ /** @description Published visibility. */
3158
+ publish_visibility?: string;
3159
+ /** @description Project status: in_progress, completed, or failed. */
3041
3160
  status?: string;
3042
- /** @description Technology stack (default: vite) */
3161
+ /** @description Project tech stack. */
3043
3162
  tech_stack?: string;
3044
- /** @description Published project URL */
3163
+ /**
3164
+ * Format: date-time
3165
+ * @description When the project was last updated.
3166
+ */
3167
+ updated_at?: string;
3168
+ /** @description Published project URL. */
3045
3169
  url?: string;
3046
- /** @description Project visibility: draft, private, workspace_view, public */
3170
+ /** @description Project owner user ID. */
3171
+ user_id?: string;
3172
+ /** @description Project visibility: draft, private, workspace_view, or public. */
3047
3173
  visibility?: string;
3048
- /** @description Workspace ID */
3174
+ /** @description Workspace the project belongs to. */
3049
3175
  workspace_id: string;
3050
3176
  };
3051
3177
  V1ProjectSkillDTO: {
@@ -3894,404 +4020,6 @@ interface components {
3894
4020
  previous_visibility?: "public" | "private" | "draft" | "workspace_view";
3895
4021
  project_id: string;
3896
4022
  };
3897
- Workspace: {
3898
- /** Format: int64 */
3899
- abandoned_projects_threshold_days?: number;
3900
- aikido_pentest_enabled?: boolean;
3901
- allow_public_member_profiles?: boolean;
3902
- always_redact_pii?: boolean;
3903
- announcement_banner?: components["schemas"]["WorkspaceAnnouncementBanner"];
3904
- app_user_connector_settings?: components["schemas"]["AppUserConnectorSetting"][] | null;
3905
- auto_delete_abandoned_projects_enabled?: boolean;
3906
- /** Format: date-time */
3907
- auto_delete_enabled_at?: string;
3908
- /** Format: int64 */
3909
- auto_delete_grace_days?: number;
3910
- /** Format: double */
3911
- backend_total_used_in_billing_period: number;
3912
- banner_url?: string;
3913
- /** Format: double */
3914
- billing_period_credits_limit: number;
3915
- /** Format: double */
3916
- billing_period_credits_used: number;
3917
- /** Format: date-time */
3918
- billing_period_end_date?: string;
3919
- /** Format: date-time */
3920
- billing_period_start_date?: string;
3921
- block_publish_on_critical_findings?: boolean;
3922
- block_publish_on_pii?: boolean;
3923
- branded_app_url_cert_pack_id?: string;
3924
- branded_app_url_failure_reason?: string;
3925
- branded_app_url_slug?: string;
3926
- branded_app_url_status?: string;
3927
- cloud_block_bucket_creation?: boolean;
3928
- cloud_block_database_creation?: boolean;
3929
- cloud_block_public_buckets?: boolean;
3930
- /** Format: date-time */
3931
- created_at: string;
3932
- custom_branded_domain?: string;
3933
- custom_branded_domain_dcv_txt_name?: string;
3934
- custom_branded_domain_dcv_txt_value?: string;
3935
- custom_branded_domain_failure_reason?: string;
3936
- custom_branded_domain_status?: string;
3937
- custom_branded_hostname_id?: string;
3938
- data_opt_out?: boolean;
3939
- default_cloud_region?: string;
3940
- default_library_id?: string;
3941
- /** Format: double */
3942
- default_monthly_member_credit_limit: number | null;
3943
- /** @enum {string} */
3944
- default_project_publish_visibility?: "public" | "private";
3945
- /** @enum {string} */
3946
- default_project_visibility?: "public" | "private" | "draft" | "workspace_view";
3947
- default_template_id?: string;
3948
- delegated_domain?: string;
3949
- delegated_domain_status?: string;
3950
- /** Format: date-time */
3951
- deleted_at?: string;
3952
- deleted_by?: string;
3953
- deletion_event_id?: string;
3954
- description?: string;
3955
- disable_code_download?: boolean;
3956
- disable_external_publish_invites?: boolean;
3957
- disable_figma_import?: boolean;
3958
- disable_named_previews?: boolean;
3959
- disable_share_preview?: boolean;
3960
- editor_can_invite?: boolean;
3961
- editor_can_transfer_project?: boolean;
3962
- egress_allowlist?: string[] | null;
3963
- egress_mode?: string;
3964
- enable_pii?: boolean;
3965
- enforce_sso?: boolean;
3966
- enterprise_relay_client_ids?: string[] | null;
3967
- enterprise_relay_enabled?: boolean;
3968
- exclude_from_cross_project_sharing?: boolean;
3969
- exclude_from_discovery?: boolean;
3970
- experimental_features: components["schemas"]["WorkspaceExperimentalFeatures"];
3971
- /** @enum {string} */
3972
- external_collaborator_level?: "all" | "none" | "viewer" | "editor";
3973
- external_publish_permission_level?: string;
3974
- /** Format: int64 */
3975
- followers_count: number;
3976
- /** Format: date-time */
3977
- hard_delete_in_progress_at?: string;
3978
- /** Format: date-time */
3979
- hard_deleted_at?: string;
3980
- id: string;
3981
- image_url?: string;
3982
- invite_links_disabled?: boolean;
3983
- /** Format: date-time */
3984
- invited_at?: string;
3985
- is_personal?: boolean;
3986
- is_temporary_edu?: boolean;
3987
- /** Format: date-time */
3988
- joined_at?: string;
3989
- /** Format: date-time */
3990
- last_rollover_period: string | null;
3991
- /** Format: date-time */
3992
- last_subscription_event_at?: string;
3993
- local_mcp_enabled?: boolean;
3994
- lovable_mcp_server_enabled?: boolean;
3995
- mcp_connector_settings?: components["schemas"]["MCPConnectorSetting"][] | null;
3996
- mcp_enabled?: boolean;
3997
- /** Format: date-time */
3998
- migrated_to_unified_billing_at?: string;
3999
- name: string;
4000
- /** Format: date-time */
4001
- next_monthly_credit_grant_date?: string;
4002
- /** Format: int64 */
4003
- num_projects: number;
4004
- /** Format: int64 */
4005
- num_seats?: number;
4006
- owner_id?: string;
4007
- /** @enum {string} */
4008
- payment_provider?: "stripe" | "apple" | "gcp_marketplace" | "microsoft_marketplace";
4009
- pending_dispute_adjustments?: {
4010
- [key: string]: components["schemas"]["PendingDisputeAdjustment"];
4011
- };
4012
- pending_refund_adjustments?: {
4013
- [key: string]: components["schemas"]["PendingRefundAdjustment"];
4014
- };
4015
- /** @enum {string} */
4016
- pii_live_chat_mode?: "off" | "detect_only" | "prompt" | "block";
4017
- /** @enum {string} */
4018
- plan?: "free" | "inactive" | "pro_0" | "pro_1" | "pro_2" | "pro_3" | "pro_4" | "pro_5" | "pro_6" | "pro_7" | "pro_8" | "pro_9" | "pro_10" | "pro_11" | "biz_1" | "biz_2" | "biz_3" | "biz_4" | "biz_5" | "biz_6" | "biz_7" | "biz_8" | "biz_9" | "biz_10" | "biz_11" | "enterprise" | "ambassador" | "ktlo" | "ktlo_1" | "ktlo_2" | "model_partner" | "teams_1" | "teams_2" | "teams_3" | "teams_4" | "teams_5" | "teams_6" | "teams_7" | "teams_8" | "teams_9" | "teams_10" | "teams_11";
4019
- plan_scheduled?: string;
4020
- /** Format: date-time */
4021
- plan_scheduled_event_at?: string;
4022
- /** Format: date-time */
4023
- plan_scheduled_updated_at?: string;
4024
- plan_type?: string;
4025
- plan_type_scheduled?: string;
4026
- /** @enum {string} */
4027
- publishing_policy?: "workspace_only" | "disabled";
4028
- reauth?: boolean;
4029
- received_tax_id_bonus?: boolean;
4030
- referral_code?: string;
4031
- /** Format: int64 */
4032
- referral_count: number;
4033
- referral_disabled?: boolean;
4034
- require_customer_pam_approval?: boolean;
4035
- require_security_scan_before_publish?: boolean;
4036
- require_workspace_editor_for_project_editing?: boolean;
4037
- sandbox_provider_url?: string;
4038
- seamless_connector_settings?: components["schemas"]["SeamlessConnectorSetting"][] | null;
4039
- /** @enum {string} */
4040
- security_auto_fix_mode?: "off" | "workspace_published_projects" | "externally_published_projects" | "published_projects" | "all_projects";
4041
- share_sample_data_with_llms?: boolean;
4042
- short_referral_code?: string;
4043
- sso_provider_id?: string;
4044
- /** Format: int64 */
4045
- sso_session_duration?: number;
4046
- standard_connector_settings?: components["schemas"]["StandardConnectorSetting"][] | null;
4047
- subscription_currency?: string;
4048
- /** @enum {string} */
4049
- subscription_status?: "active" | "past_due" | "canceled" | "trialing" | "incomplete" | "incomplete_expired" | "unpaid" | "paused";
4050
- /** Format: date-time */
4051
- subscription_status_changed_at?: string;
4052
- /** Format: date-time */
4053
- topup_credits_purchased_at?: string;
4054
- /** Format: date-time */
4055
- updated_at: string;
4056
- use_edu_openai_routing?: boolean;
4057
- username?: string;
4058
- verified_email_jit?: boolean;
4059
- /** @enum {string} */
4060
- verified_email_jit_role?: "none" | "owner" | "admin" | "member" | "viewer" | "collaborator" | "invited";
4061
- };
4062
- WorkspaceAnnouncementBanner: {
4063
- allow_dismissal: boolean;
4064
- color?: string;
4065
- enabled: boolean;
4066
- text?: string;
4067
- text_color?: string;
4068
- /** Format: date-time */
4069
- updated_at?: string;
4070
- };
4071
- WorkspaceExperimentalFeatures: {
4072
- custom_enterprise_git_sync?: boolean;
4073
- gitsync_github?: boolean;
4074
- lovable_ai?: boolean;
4075
- lovable_cloud?: boolean;
4076
- partner_perm_1?: boolean;
4077
- partner_perm_2?: boolean;
4078
- partner_perm_3?: boolean;
4079
- partner_perm_4?: boolean;
4080
- scim?: boolean;
4081
- shopify?: boolean;
4082
- unified_billing?: boolean;
4083
- };
4084
- WorkspaceMembership: {
4085
- email: string;
4086
- /** Format: date-time */
4087
- invited_at: string;
4088
- /** Format: date-time */
4089
- joined_at?: string;
4090
- /** Format: double */
4091
- monthly_credit_limit: number | null;
4092
- project_access?: {
4093
- [key: string]: components["schemas"]["ProjectAccessEntry"];
4094
- };
4095
- /** @enum {string} */
4096
- role: "none" | "owner" | "admin" | "member" | "viewer" | "collaborator" | "invited";
4097
- /** Format: date-time */
4098
- role_changed_at?: string;
4099
- scim_external_id?: string;
4100
- user_id: string;
4101
- workspace_id: string;
4102
- };
4103
- WorkspaceMembershipResponse: {
4104
- display_name?: string;
4105
- email?: string;
4106
- has_project_access: boolean;
4107
- /** Format: date-time */
4108
- invited_at?: string;
4109
- /** Format: date-time */
4110
- joined_at?: string;
4111
- /** Format: double */
4112
- monthly_credit_limit?: number;
4113
- project_access?: {
4114
- [key: string]: components["schemas"]["ProjectAccessEntry"];
4115
- };
4116
- /** @enum {string} */
4117
- role: "none" | "owner" | "admin" | "member" | "viewer" | "collaborator" | "invited";
4118
- /** Format: date-time */
4119
- role_changed_at?: string;
4120
- row_id?: string;
4121
- scim_external_id?: string;
4122
- /** Format: double */
4123
- total_credits_used?: number;
4124
- /** Format: double */
4125
- total_credits_used_in_billing_period?: number;
4126
- user_id: string;
4127
- username: string;
4128
- };
4129
- WorkspaceWithMembership: {
4130
- /** Format: int64 */
4131
- abandoned_projects_threshold_days?: number;
4132
- aikido_pentest_enabled?: boolean;
4133
- allow_public_member_profiles?: boolean;
4134
- always_redact_pii?: boolean;
4135
- announcement_banner?: components["schemas"]["WorkspaceAnnouncementBanner"];
4136
- app_user_connector_settings?: components["schemas"]["AppUserConnectorSetting"][] | null;
4137
- auto_delete_abandoned_projects_enabled?: boolean;
4138
- /** Format: date-time */
4139
- auto_delete_enabled_at?: string;
4140
- /** Format: int64 */
4141
- auto_delete_grace_days?: number;
4142
- /** Format: double */
4143
- backend_total_used_in_billing_period: number;
4144
- banner_url?: string;
4145
- /** Format: double */
4146
- billing_period_credits_limit: number;
4147
- /** Format: double */
4148
- billing_period_credits_used: number;
4149
- /** Format: date-time */
4150
- billing_period_end_date?: string;
4151
- /** Format: date-time */
4152
- billing_period_start_date?: string;
4153
- block_publish_on_critical_findings?: boolean;
4154
- block_publish_on_pii?: boolean;
4155
- branded_app_url_cert_pack_id?: string;
4156
- branded_app_url_failure_reason?: string;
4157
- branded_app_url_slug?: string;
4158
- branded_app_url_status?: string;
4159
- cloud_block_bucket_creation?: boolean;
4160
- cloud_block_database_creation?: boolean;
4161
- cloud_block_public_buckets?: boolean;
4162
- /** Format: date-time */
4163
- created_at: string;
4164
- custom_branded_domain?: string;
4165
- custom_branded_domain_dcv_txt_name?: string;
4166
- custom_branded_domain_dcv_txt_value?: string;
4167
- custom_branded_domain_failure_reason?: string;
4168
- custom_branded_domain_status?: string;
4169
- custom_branded_hostname_id?: string;
4170
- data_opt_out?: boolean;
4171
- default_cloud_region?: string;
4172
- default_library_id?: string;
4173
- /** Format: double */
4174
- default_monthly_member_credit_limit: number | null;
4175
- /** @enum {string} */
4176
- default_project_publish_visibility?: "public" | "private";
4177
- /** @enum {string} */
4178
- default_project_visibility?: "public" | "private" | "draft" | "workspace_view";
4179
- default_template_id?: string;
4180
- delegated_domain?: string;
4181
- delegated_domain_status?: string;
4182
- /** Format: date-time */
4183
- deleted_at?: string;
4184
- deleted_by?: string;
4185
- deletion_event_id?: string;
4186
- description?: string;
4187
- disable_code_download?: boolean;
4188
- disable_external_publish_invites?: boolean;
4189
- disable_figma_import?: boolean;
4190
- disable_named_previews?: boolean;
4191
- disable_share_preview?: boolean;
4192
- editor_can_invite?: boolean;
4193
- editor_can_transfer_project?: boolean;
4194
- egress_allowlist?: string[] | null;
4195
- egress_mode?: string;
4196
- enable_pii?: boolean;
4197
- enforce_sso?: boolean;
4198
- enterprise_relay_client_ids?: string[] | null;
4199
- enterprise_relay_enabled?: boolean;
4200
- exclude_from_cross_project_sharing?: boolean;
4201
- exclude_from_discovery?: boolean;
4202
- experimental_features: components["schemas"]["WorkspaceExperimentalFeatures"];
4203
- /** @enum {string} */
4204
- external_collaborator_level?: "all" | "none" | "viewer" | "editor";
4205
- external_publish_permission_level?: string;
4206
- /** Format: int64 */
4207
- followers_count: number;
4208
- /** Format: date-time */
4209
- hard_delete_in_progress_at?: string;
4210
- /** Format: date-time */
4211
- hard_deleted_at?: string;
4212
- id: string;
4213
- image_url?: string;
4214
- invite_links_disabled?: boolean;
4215
- /** Format: date-time */
4216
- invited_at?: string;
4217
- is_personal?: boolean;
4218
- is_temporary_edu?: boolean;
4219
- /** Format: date-time */
4220
- joined_at?: string;
4221
- /** Format: date-time */
4222
- last_rollover_period: string | null;
4223
- /** Format: date-time */
4224
- last_subscription_event_at?: string;
4225
- local_mcp_enabled?: boolean;
4226
- lovable_mcp_server_enabled?: boolean;
4227
- mcp_connector_settings?: components["schemas"]["MCPConnectorSetting"][] | null;
4228
- mcp_enabled?: boolean;
4229
- membership: components["schemas"]["WorkspaceMembership"];
4230
- /** Format: date-time */
4231
- migrated_to_unified_billing_at?: string;
4232
- name: string;
4233
- /** Format: date-time */
4234
- next_monthly_credit_grant_date?: string;
4235
- /** Format: int64 */
4236
- num_projects: number;
4237
- /** Format: int64 */
4238
- num_seats?: number;
4239
- owner_id?: string;
4240
- /** @enum {string} */
4241
- payment_provider?: "stripe" | "apple" | "gcp_marketplace" | "microsoft_marketplace";
4242
- pending_dispute_adjustments?: {
4243
- [key: string]: components["schemas"]["PendingDisputeAdjustment"];
4244
- };
4245
- pending_refund_adjustments?: {
4246
- [key: string]: components["schemas"]["PendingRefundAdjustment"];
4247
- };
4248
- /** @enum {string} */
4249
- pii_live_chat_mode?: "off" | "detect_only" | "prompt" | "block";
4250
- /** @enum {string} */
4251
- plan?: "free" | "inactive" | "pro_0" | "pro_1" | "pro_2" | "pro_3" | "pro_4" | "pro_5" | "pro_6" | "pro_7" | "pro_8" | "pro_9" | "pro_10" | "pro_11" | "biz_1" | "biz_2" | "biz_3" | "biz_4" | "biz_5" | "biz_6" | "biz_7" | "biz_8" | "biz_9" | "biz_10" | "biz_11" | "enterprise" | "ambassador" | "ktlo" | "ktlo_1" | "ktlo_2" | "model_partner" | "teams_1" | "teams_2" | "teams_3" | "teams_4" | "teams_5" | "teams_6" | "teams_7" | "teams_8" | "teams_9" | "teams_10" | "teams_11";
4252
- plan_scheduled?: string;
4253
- /** Format: date-time */
4254
- plan_scheduled_event_at?: string;
4255
- /** Format: date-time */
4256
- plan_scheduled_updated_at?: string;
4257
- plan_type?: string;
4258
- plan_type_scheduled?: string;
4259
- /** @enum {string} */
4260
- publishing_policy?: "workspace_only" | "disabled";
4261
- reauth?: boolean;
4262
- received_tax_id_bonus?: boolean;
4263
- referral_code?: string;
4264
- /** Format: int64 */
4265
- referral_count: number;
4266
- referral_disabled?: boolean;
4267
- require_customer_pam_approval?: boolean;
4268
- require_security_scan_before_publish?: boolean;
4269
- require_workspace_editor_for_project_editing?: boolean;
4270
- sandbox_provider_url?: string;
4271
- seamless_connector_settings?: components["schemas"]["SeamlessConnectorSetting"][] | null;
4272
- /** @enum {string} */
4273
- security_auto_fix_mode?: "off" | "workspace_published_projects" | "externally_published_projects" | "published_projects" | "all_projects";
4274
- share_sample_data_with_llms?: boolean;
4275
- short_referral_code?: string;
4276
- sso_provider_id?: string;
4277
- /** Format: int64 */
4278
- sso_session_duration?: number;
4279
- standard_connector_settings?: components["schemas"]["StandardConnectorSetting"][] | null;
4280
- subscription_currency?: string;
4281
- /** @enum {string} */
4282
- subscription_status?: "active" | "past_due" | "canceled" | "trialing" | "incomplete" | "incomplete_expired" | "unpaid" | "paused";
4283
- /** Format: date-time */
4284
- subscription_status_changed_at?: string;
4285
- /** Format: date-time */
4286
- topup_credits_purchased_at?: string;
4287
- /** Format: date-time */
4288
- updated_at: string;
4289
- use_edu_openai_routing?: boolean;
4290
- username?: string;
4291
- verified_email_jit?: boolean;
4292
- /** @enum {string} */
4293
- verified_email_jit_role?: "none" | "owner" | "admin" | "member" | "viewer" | "collaborator" | "invited";
4294
- };
4295
4023
  };
4296
4024
  responses: never;
4297
4025
  parameters: never;
@@ -5382,8 +5110,6 @@ interface operations {
5382
5110
  query: {
5383
5111
  /** @description Workspace ID */
5384
5112
  workspace_id: string;
5385
- /** @description Include per-project risk rollup fields when enabled for the workspace */
5386
- include_risk?: boolean;
5387
5113
  /** @description Filter by project creator user ID */
5388
5114
  user_id?: string;
5389
5115
  /** @description Filter by visibility */
@@ -5419,7 +5145,7 @@ interface operations {
5419
5145
  [name: string]: unknown;
5420
5146
  };
5421
5147
  content: {
5422
- "application/json": components["schemas"]["CursorListResponseSearchProjectItem"];
5148
+ "application/json": components["schemas"]["CursorListResponsePublicV1ProjectListItem"];
5423
5149
  };
5424
5150
  };
5425
5151
  /** @description Error */
@@ -6902,7 +6628,7 @@ interface operations {
6902
6628
  [name: string]: unknown;
6903
6629
  };
6904
6630
  content: {
6905
- "application/json": components["schemas"]["GetUserWorkspaceBody"];
6631
+ "application/json": components["schemas"]["PublicV1GetWorkspaceBody"];
6906
6632
  };
6907
6633
  };
6908
6634
  /** @description Error */
@@ -7755,9 +7481,11 @@ type ListProjectsQuery = NonNullable<paths["/v1/projects"]["get"]["parameters"][
7755
7481
  type ListConnectorsQuery = NonNullable<paths["/v1/connectors"]["get"]["parameters"]["query"]>;
7756
7482
  type MeWorkspace = Schemas["GetMeWorkspace"];
7757
7483
  type MeResponse = Schemas["GetMeOutputBody"];
7758
- type WorkspaceMembership = Schemas["WorkspaceMembership"];
7759
- type WorkspaceWithMembership = Schemas["WorkspaceWithMembership"];
7760
- type GetWorkspacesResponse = Schemas["V1ListWorkspacesBody"];
7484
+ type WorkspaceMembership = Schemas["PublicV1WorkspaceMember"];
7485
+ type WorkspaceWithMembership = Schemas["PublicV1WorkspaceWithMembership"];
7486
+ type GetWorkspacesResponse = Schemas["V1ListWorkspacesBody"] & {
7487
+ workspaces: WorkspaceWithMembership[];
7488
+ };
7761
7489
  type MemberRole = WorkspaceMembership["role"];
7762
7490
  type ProjectResponse = Schemas["V1ProjectResponse"];
7763
7491
  type CreateProjectResponse = Schemas["PublicV1CreateProjectResponse"] & {
@@ -7766,14 +7494,14 @@ type CreateProjectResponse = Schemas["PublicV1CreateProjectResponse"] & {
7766
7494
  type CreateProjectBody = Omit<Schemas["PublicV1ProjectCreateInputBody"], "workspace_id">;
7767
7495
  type UpdateProjectOptions = Schemas["PublicV1PatchProjectBody"];
7768
7496
  type EmbedURLResponse = Schemas["V1CreateEmbedURLOutputBody"];
7769
- type ListProjectItem = Schemas["SearchProjectItem"];
7770
- type ListProjectsResponse = Schemas["CursorListResponseSearchProjectItem"] & {
7497
+ type ListProjectItem = Schemas["PublicV1ProjectListItem"];
7498
+ type ListProjectsResponse = Schemas["CursorListResponsePublicV1ProjectListItem"] & {
7771
7499
  projects: ListProjectItem[] | null;
7772
7500
  total?: number;
7773
7501
  has_more?: boolean;
7774
7502
  };
7775
7503
  type MoveProjectsToFolderResponse = Schemas["AddProjectsToFolderResult"];
7776
- type ProjectVisibility = NonNullable<ListProjectItem["visibility"]>;
7504
+ type ProjectVisibility = "public" | "private" | "draft" | "workspace_view";
7777
7505
  type ProjectPatchVisibility = NonNullable<UpdateProjectOptions["visibility"]>;
7778
7506
  type SendMessageResponse = Schemas["V1SendMessageOutputBody"];
7779
7507
  type GetMessageResponse = Schemas["V1MessageResponse"];
@@ -8063,7 +7791,6 @@ interface ListProjectsOptions {
8063
7791
  folder_ids?: ListProjectsQuery["folder_ids"];
8064
7792
  user_id?: ListProjectsQuery["user_id"];
8065
7793
  type?: ListProjectsQuery["type"];
8066
- include_risk?: ListProjectsQuery["include_risk"];
8067
7794
  search_fields?: ListProjectsQuery["search_fields"];
8068
7795
  viewed_by_me?: ListProjectsQuery["viewed_by_me"];
8069
7796
  cursor?: ListProjectsQuery["cursor"];
@@ -8115,130 +7842,14 @@ declare class LovableClient {
8115
7842
  * Get a specific workspace by ID
8116
7843
  */
8117
7844
  getWorkspace(workspaceId: string): Promise<{
8118
- abandoned_projects_threshold_days?: number;
8119
- aikido_pentest_enabled?: boolean;
8120
- allow_public_member_profiles?: boolean;
8121
- always_redact_pii?: boolean;
8122
- announcement_banner?: components["schemas"]["WorkspaceAnnouncementBanner"];
8123
- app_user_connector_settings?: components["schemas"]["AppUserConnectorSetting"][] | null;
8124
- auto_delete_abandoned_projects_enabled?: boolean;
8125
- auto_delete_enabled_at?: string;
8126
- auto_delete_grace_days?: number;
8127
- backend_total_used_in_billing_period: number;
8128
- banner_url?: string;
8129
- billing_period_credits_limit: number;
8130
- billing_period_credits_used: number;
8131
- billing_period_end_date?: string;
8132
- billing_period_start_date?: string;
8133
- block_publish_on_critical_findings?: boolean;
8134
- block_publish_on_pii?: boolean;
8135
- branded_app_url_cert_pack_id?: string;
8136
- branded_app_url_failure_reason?: string;
8137
- branded_app_url_slug?: string;
8138
- branded_app_url_status?: string;
8139
- cloud_block_bucket_creation?: boolean;
8140
- cloud_block_database_creation?: boolean;
8141
- cloud_block_public_buckets?: boolean;
8142
- created_at: string;
8143
- custom_branded_domain?: string;
8144
- custom_branded_domain_dcv_txt_name?: string;
8145
- custom_branded_domain_dcv_txt_value?: string;
8146
- custom_branded_domain_failure_reason?: string;
8147
- custom_branded_domain_status?: string;
8148
- custom_branded_hostname_id?: string;
8149
- data_opt_out?: boolean;
8150
- default_cloud_region?: string;
8151
- default_library_id?: string;
8152
- default_monthly_member_credit_limit: number | null;
8153
- default_project_publish_visibility?: "public" | "private";
8154
- default_project_visibility?: "public" | "private" | "draft" | "workspace_view";
8155
- default_template_id?: string;
8156
- delegated_domain?: string;
8157
- delegated_domain_status?: string;
8158
- deleted_at?: string;
8159
- deleted_by?: string;
8160
- deletion_event_id?: string;
7845
+ created_at?: string;
8161
7846
  description?: string;
8162
- disable_code_download?: boolean;
8163
- disable_external_publish_invites?: boolean;
8164
- disable_figma_import?: boolean;
8165
- disable_named_previews?: boolean;
8166
- disable_share_preview?: boolean;
8167
- editor_can_invite?: boolean;
8168
- editor_can_transfer_project?: boolean;
8169
- egress_allowlist?: string[] | null;
8170
- egress_mode?: string;
8171
- enable_pii?: boolean;
8172
- enforce_sso?: boolean;
8173
- enterprise_relay_client_ids?: string[] | null;
8174
- enterprise_relay_enabled?: boolean;
8175
- exclude_from_cross_project_sharing?: boolean;
8176
- exclude_from_discovery?: boolean;
8177
- experimental_features: components["schemas"]["WorkspaceExperimentalFeatures"];
8178
- external_collaborator_level?: "all" | "none" | "viewer" | "editor";
8179
- external_publish_permission_level?: string;
8180
- followers_count: number;
8181
- hard_delete_in_progress_at?: string;
8182
- hard_deleted_at?: string;
8183
7847
  id: string;
8184
7848
  image_url?: string;
8185
- invite_links_disabled?: boolean;
8186
- invited_at?: string;
8187
- is_personal?: boolean;
8188
- is_temporary_edu?: boolean;
8189
- joined_at?: string;
8190
- last_rollover_period: string | null;
8191
- last_subscription_event_at?: string;
8192
- local_mcp_enabled?: boolean;
8193
- lovable_mcp_server_enabled?: boolean;
8194
- mcp_connector_settings?: components["schemas"]["MCPConnectorSetting"][] | null;
8195
- mcp_enabled?: boolean;
8196
- migrated_to_unified_billing_at?: string;
8197
7849
  name: string;
8198
- next_monthly_credit_grant_date?: string;
8199
7850
  num_projects: number;
8200
- num_seats?: number;
8201
- owner_id?: string;
8202
- payment_provider?: "stripe" | "apple" | "gcp_marketplace" | "microsoft_marketplace";
8203
- pending_dispute_adjustments?: {
8204
- [key: string]: components["schemas"]["PendingDisputeAdjustment"];
8205
- };
8206
- pending_refund_adjustments?: {
8207
- [key: string]: components["schemas"]["PendingRefundAdjustment"];
8208
- };
8209
- pii_live_chat_mode?: "off" | "detect_only" | "prompt" | "block";
8210
- plan?: "free" | "inactive" | "pro_0" | "pro_1" | "pro_2" | "pro_3" | "pro_4" | "pro_5" | "pro_6" | "pro_7" | "pro_8" | "pro_9" | "pro_10" | "pro_11" | "biz_1" | "biz_2" | "biz_3" | "biz_4" | "biz_5" | "biz_6" | "biz_7" | "biz_8" | "biz_9" | "biz_10" | "biz_11" | "enterprise" | "ambassador" | "ktlo" | "ktlo_1" | "ktlo_2" | "model_partner" | "teams_1" | "teams_2" | "teams_3" | "teams_4" | "teams_5" | "teams_6" | "teams_7" | "teams_8" | "teams_9" | "teams_10" | "teams_11";
8211
- plan_scheduled?: string;
8212
- plan_scheduled_event_at?: string;
8213
- plan_scheduled_updated_at?: string;
8214
- plan_type?: string;
8215
- plan_type_scheduled?: string;
8216
- publishing_policy?: "workspace_only" | "disabled";
8217
- reauth?: boolean;
8218
- received_tax_id_bonus?: boolean;
8219
- referral_code?: string;
8220
- referral_count: number;
8221
- referral_disabled?: boolean;
8222
- require_customer_pam_approval?: boolean;
8223
- require_security_scan_before_publish?: boolean;
8224
- require_workspace_editor_for_project_editing?: boolean;
8225
- sandbox_provider_url?: string;
8226
- seamless_connector_settings?: components["schemas"]["SeamlessConnectorSetting"][] | null;
8227
- security_auto_fix_mode?: "off" | "workspace_published_projects" | "externally_published_projects" | "published_projects" | "all_projects";
8228
- share_sample_data_with_llms?: boolean;
8229
- short_referral_code?: string;
8230
- sso_provider_id?: string;
8231
- sso_session_duration?: number;
8232
- standard_connector_settings?: components["schemas"]["StandardConnectorSetting"][] | null;
8233
- subscription_currency?: string;
8234
- subscription_status?: "active" | "past_due" | "canceled" | "trialing" | "incomplete" | "incomplete_expired" | "unpaid" | "paused";
8235
- subscription_status_changed_at?: string;
8236
- topup_credits_purchased_at?: string;
8237
- updated_at: string;
8238
- use_edu_openai_routing?: boolean;
8239
- username?: string;
8240
- verified_email_jit?: boolean;
8241
- verified_email_jit_role?: "none" | "owner" | "admin" | "member" | "viewer" | "collaborator" | "invited";
7851
+ plan: string;
7852
+ updated_at?: string;
8242
7853
  }>;
8243
7854
  /**
8244
7855
  * List projects in a workspace.