@lovable.dev/sdk 1.2.3 → 1.3.0

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
@@ -67,26 +67,6 @@ interface paths {
67
67
  patch?: never;
68
68
  trace?: never;
69
69
  };
70
- "/v1/available-connectors": {
71
- parameters: {
72
- query?: never;
73
- header?: never;
74
- path?: never;
75
- cookie?: never;
76
- };
77
- /**
78
- * Browse available connectors
79
- * @description Returns available connector templates that can be added to a workspace in catalog order.
80
- */
81
- get: operations["get-v1-available-connectors"];
82
- put?: never;
83
- post?: never;
84
- delete?: never;
85
- options?: never;
86
- head?: never;
87
- patch?: never;
88
- trace?: never;
89
- };
90
70
  "/v1/collaborators": {
91
71
  parameters: {
92
72
  query?: never;
@@ -109,26 +89,6 @@ interface paths {
109
89
  patch?: never;
110
90
  trace?: never;
111
91
  };
112
- "/v1/connections": {
113
- parameters: {
114
- query?: never;
115
- header?: never;
116
- path?: never;
117
- cookie?: never;
118
- };
119
- /**
120
- * List connections
121
- * @description Returns authenticated connector connections in a workspace, sorted by created_at then connection ID.
122
- */
123
- get: operations["get-v1-connections"];
124
- put?: never;
125
- post?: never;
126
- delete?: never;
127
- options?: never;
128
- head?: never;
129
- patch?: never;
130
- trace?: never;
131
- };
132
92
  "/v1/connectors": {
133
93
  parameters: {
134
94
  query?: never;
@@ -138,36 +98,12 @@ interface paths {
138
98
  };
139
99
  /**
140
100
  * List connectors
141
- * @description Returns connectors for a workspace in family order (standard, seamless, app-user, mcp), using each family's stable catalog order. Filter with type=standard,seamless,app-user,mcp and status=connected.
101
+ * @description Returns connectors for a workspace, one item per connector. A connector offered as several types (e.g. standard and mcp) is returned once with every type in its types array, workspace connection state, and a settings page link where it can be set up. Ordered by type (standard, seamless, app-user, mcp), then each type's stable catalog order. Filter with type=standard,seamless,app-user,mcp and status=connected.
142
102
  */
143
103
  get: operations["get-v1-connectors"];
144
104
  put?: never;
145
- /**
146
- * Add connector
147
- * @description Adds an MCP connector to a workspace. Pass workspace_id in the request body.
148
- */
149
- post: operations["post-v1-connectors"];
150
- delete?: never;
151
- options?: never;
152
- head?: never;
153
- patch?: never;
154
- trace?: never;
155
- };
156
- "/v1/connectors/{connector_id}": {
157
- parameters: {
158
- query?: never;
159
- header?: never;
160
- path?: never;
161
- cookie?: never;
162
- };
163
- get?: never;
164
- put?: never;
165
105
  post?: never;
166
- /**
167
- * Remove connector
168
- * @description Removes an MCP connector from a workspace. Pass workspace_id as a query parameter.
169
- */
170
- delete: operations["delete-v1-connectors-connector_id"];
106
+ delete?: never;
171
107
  options?: never;
172
108
  head?: never;
173
109
  patch?: never;
@@ -1346,7 +1282,7 @@ interface paths {
1346
1282
  /**
1347
1283
  * Browse available connectors
1348
1284
  * @deprecated
1349
- * @description Deprecated compatibility alias. Prefer GET /v1/available-connectors?workspace_id=...
1285
+ * @description Deprecated compatibility alias. Prefer GET /v1/connectors?workspace_id=...
1350
1286
  */
1351
1287
  get: operations["get-v1-workspaces-workspace_id-available-connectors"];
1352
1288
  put?: never;
@@ -1409,7 +1345,7 @@ interface paths {
1409
1345
  /**
1410
1346
  * List connections
1411
1347
  * @deprecated
1412
- * @description Deprecated compatibility alias. Prefer GET /v1/connections?workspace_id=...
1348
+ * @description Deprecated compatibility endpoint.
1413
1349
  */
1414
1350
  get: operations["get-v1-workspaces-workspace_id-connections"];
1415
1351
  put?: never;
@@ -1437,7 +1373,7 @@ interface paths {
1437
1373
  /**
1438
1374
  * Add connector
1439
1375
  * @deprecated
1440
- * @description Deprecated compatibility alias. Prefer POST /v1/connectors with workspace_id in the request body.
1376
+ * @description Deprecated compatibility endpoint.
1441
1377
  */
1442
1378
  post: operations["post-v1-workspaces-workspace_id-connectors"];
1443
1379
  delete?: never;
@@ -1767,14 +1703,6 @@ interface components {
1767
1703
  data: components["schemas"]["PublicV1ProjectListItem"][] | null;
1768
1704
  pagination: components["schemas"]["Pagination"];
1769
1705
  };
1770
- CursorListResponseV1AvailableConnectorEntry: {
1771
- data: components["schemas"]["V1AvailableConnectorEntry"][] | null;
1772
- pagination: components["schemas"]["Pagination"];
1773
- };
1774
- CursorListResponseV1ConnectionItem: {
1775
- data: components["schemas"]["V1ConnectionItem"][] | null;
1776
- pagination: components["schemas"]["Pagination"];
1777
- };
1778
1706
  CursorListResponseV1MessageListItem: {
1779
1707
  data: components["schemas"]["V1MessageListItem"][] | null;
1780
1708
  pagination: components["schemas"]["Pagination"];
@@ -2030,36 +1958,7 @@ interface components {
2030
1958
  currentVisitors: number;
2031
1959
  data: components["schemas"]["TrendDataPoint"][] | null;
2032
1960
  };
2033
- PublicV1AddConnectorBody: {
2034
- /**
2035
- * @description Authentication type
2036
- * @enum {string}
2037
- */
2038
- auth_type: "none" | "bearer_token";
2039
- /** @description Catalog connector ID */
2040
- connector_id?: string;
2041
- /** @description Display name for this connector */
2042
- name: string;
2043
- /** @description Enterprise connectivity endpoint ID */
2044
- network_transport_endpoint_id?: string;
2045
- /** @description Enterprise connectivity profile ID */
2046
- network_transport_profile_id?: string;
2047
- /** @description Enterprise connectivity transport type */
2048
- network_transport_type?: string;
2049
- /** @description Enterprise relay client ID */
2050
- relay_client_id?: string;
2051
- /** @description Target service name in relay client route table */
2052
- relay_service_name?: string;
2053
- /** @description Bearer token */
2054
- token?: string;
2055
- /** @description MCP server URL. Required unless relay_client_id is provided */
2056
- url?: string;
2057
- /** @description Workspace ID */
2058
- workspace_id: string;
2059
- };
2060
1961
  PublicV1ConnectorItem: {
2061
- /** @description Authentication type, when available */
2062
- auth_type?: string;
2063
1962
  /** @description Connector categories */
2064
1963
  categories?: string[] | null;
2065
1964
  /** @description Connector category */
@@ -2076,16 +1975,18 @@ interface components {
2076
1975
  is_connected?: boolean;
2077
1976
  /** @description Whether the connector is enabled for this workspace, when available */
2078
1977
  is_enabled_for_workspace?: boolean;
2079
- /** @description Whether this connector requires a custom URL */
2080
- requires_custom_url?: boolean;
1978
+ /** @description Lovable settings page where this connector can be set up */
1979
+ settings_url?: string;
2081
1980
  /** @description Short connector description */
2082
1981
  short_description?: string;
2083
1982
  /** @description Connection status, when available */
2084
1983
  status?: string;
2085
1984
  /** @description Connector summary */
2086
1985
  summary?: string;
2087
- /** @description Connector type: standard, seamless, app-user, or mcp */
1986
+ /** @description Deprecated: first entry of types. Use types instead. */
2088
1987
  type: string;
1988
+ /** @description Connector types this connector supports: standard, seamless, app-user, mcp */
1989
+ types?: string[];
2089
1990
  };
2090
1991
  PublicV1CreateProjectResponse: {
2091
1992
  /** @description AI-generated project description */
@@ -2473,8 +2374,6 @@ interface components {
2473
2374
  reason: string;
2474
2375
  };
2475
2376
  StandardConnectorAPI: {
2476
- /** @enum {string} */
2477
- auth_type: "APIKEY" | "OAUTH2" | "OAUTH2_CLIENT_CREDENTIALS" | "WIF" | "STEPS";
2478
2377
  can_be_managed: boolean;
2479
2378
  /** @description True when the workspace plan allows restricting connection creation to admins (Business and Enterprise) */
2480
2379
  can_restrict_to_admins: boolean;
@@ -3522,6 +3421,11 @@ interface components {
3522
3421
  * @description When the user accepted the invitation. Absent on pending invites.
3523
3422
  */
3524
3423
  joined_at?: string;
3424
+ /**
3425
+ * Format: double
3426
+ * @description Explicit monthly credit cap for this member. Absent means no per-member cap is set and the workspace default applies. Visible for yourself; visible for other members only with permission to view member usage.
3427
+ */
3428
+ monthly_credit_limit?: number;
3525
3429
  /** @description Workspace role. One of: owner, admin, member, viewer, collaborator. */
3526
3430
  role: string;
3527
3431
  /** @description Stable opaque identifier for the entry. For active members this is the user ID; for pending invites this is the Spanner-generated membership row id (never an email-derived value). */
@@ -3766,6 +3670,11 @@ interface components {
3766
3670
  * @description Start of the current billing period.
3767
3671
  */
3768
3672
  billing_period_start_date?: string;
3673
+ /**
3674
+ * Format: double
3675
+ * @description Default monthly credit cap applied to each member who has no explicit per-member limit. Absent when unset (members are bounded only by the workspace balance) or when the caller lacks permission to view workspace usage.
3676
+ */
3677
+ default_monthly_member_credit_limit?: number;
3769
3678
  /** @description Default visibility applied to new projects. One of: public, private, draft. Absent means the workspace effective default of private. */
3770
3679
  default_project_visibility?: string;
3771
3680
  /** @description Whether PII scanning is enabled across project resources. */
@@ -4149,42 +4058,6 @@ interface operations {
4149
4058
  };
4150
4059
  };
4151
4060
  };
4152
- "get-v1-available-connectors": {
4153
- parameters: {
4154
- query: {
4155
- /** @description Workspace ID */
4156
- workspace_id: string;
4157
- /** @description Maximum number of items to return */
4158
- limit?: number;
4159
- /** @description Opaque pagination cursor returned by the previous page */
4160
- cursor?: string;
4161
- };
4162
- header?: never;
4163
- path?: never;
4164
- cookie?: never;
4165
- };
4166
- requestBody?: never;
4167
- responses: {
4168
- /** @description OK */
4169
- 200: {
4170
- headers: {
4171
- [name: string]: unknown;
4172
- };
4173
- content: {
4174
- "application/json": components["schemas"]["CursorListResponseV1AvailableConnectorEntry"];
4175
- };
4176
- };
4177
- /** @description Error */
4178
- default: {
4179
- headers: {
4180
- [name: string]: unknown;
4181
- };
4182
- content: {
4183
- "application/problem+json": components["schemas"]["ErrorModel"];
4184
- };
4185
- };
4186
- };
4187
- };
4188
4061
  "get-v1-collaborators": {
4189
4062
  parameters: {
4190
4063
  query: {
@@ -4224,44 +4097,6 @@ interface operations {
4224
4097
  };
4225
4098
  };
4226
4099
  };
4227
- "get-v1-connections": {
4228
- parameters: {
4229
- query: {
4230
- /** @description Workspace ID */
4231
- workspace_id: string;
4232
- /** @description Optional connector ID filter */
4233
- connector_id?: string;
4234
- /** @description Maximum number of items to return */
4235
- limit?: number;
4236
- /** @description Opaque pagination cursor returned by the previous page */
4237
- cursor?: string;
4238
- };
4239
- header?: never;
4240
- path?: never;
4241
- cookie?: never;
4242
- };
4243
- requestBody?: never;
4244
- responses: {
4245
- /** @description OK */
4246
- 200: {
4247
- headers: {
4248
- [name: string]: unknown;
4249
- };
4250
- content: {
4251
- "application/json": components["schemas"]["CursorListResponseV1ConnectionItem"];
4252
- };
4253
- };
4254
- /** @description Error */
4255
- default: {
4256
- headers: {
4257
- [name: string]: unknown;
4258
- };
4259
- content: {
4260
- "application/problem+json": components["schemas"]["ErrorModel"];
4261
- };
4262
- };
4263
- };
4264
- };
4265
4100
  "get-v1-connectors": {
4266
4101
  parameters: {
4267
4102
  query: {
@@ -4302,74 +4137,6 @@ interface operations {
4302
4137
  };
4303
4138
  };
4304
4139
  };
4305
- "post-v1-connectors": {
4306
- parameters: {
4307
- query?: never;
4308
- header?: never;
4309
- path?: never;
4310
- cookie?: never;
4311
- };
4312
- requestBody: {
4313
- content: {
4314
- "application/json": components["schemas"]["PublicV1AddConnectorBody"];
4315
- };
4316
- };
4317
- responses: {
4318
- /** @description Created */
4319
- 201: {
4320
- headers: {
4321
- [name: string]: unknown;
4322
- };
4323
- content: {
4324
- "application/json": components["schemas"]["V1ConnectorResponse"];
4325
- };
4326
- };
4327
- /** @description Error */
4328
- default: {
4329
- headers: {
4330
- [name: string]: unknown;
4331
- };
4332
- content: {
4333
- "application/problem+json": components["schemas"]["ErrorModel"];
4334
- };
4335
- };
4336
- };
4337
- };
4338
- "delete-v1-connectors-connector_id": {
4339
- parameters: {
4340
- query: {
4341
- /** @description Workspace ID */
4342
- workspace_id: string;
4343
- };
4344
- header?: never;
4345
- path: {
4346
- /** @description Connector ID */
4347
- connector_id: string;
4348
- };
4349
- cookie?: never;
4350
- };
4351
- requestBody?: never;
4352
- responses: {
4353
- /** @description OK */
4354
- 200: {
4355
- headers: {
4356
- [name: string]: unknown;
4357
- };
4358
- content: {
4359
- "application/json": components["schemas"]["V1RemoveConnectorOutputBody"];
4360
- };
4361
- };
4362
- /** @description Error */
4363
- default: {
4364
- headers: {
4365
- [name: string]: unknown;
4366
- };
4367
- content: {
4368
- "application/problem+json": components["schemas"]["ErrorModel"];
4369
- };
4370
- };
4371
- };
4372
- };
4373
4140
  "get-v1-credit-history": {
4374
4141
  parameters: {
4375
4142
  query: {
@@ -7566,24 +7333,15 @@ type ListTemplateProjectsResponse = {
7566
7333
  total?: number;
7567
7334
  has_more?: boolean;
7568
7335
  };
7569
- type ConnectorResponse = Schemas["V1ConnectorResponse"];
7570
- type AvailableConnectorEntry = Schemas["V1AvailableConnectorEntry"];
7571
- type AddConnectorBody = Omit<Schemas["PublicV1AddConnectorBody"], "workspace_id">;
7572
7336
  type ConnectorItem = Schemas["PublicV1ConnectorItem"];
7573
7337
  type StandardConnectorItem = ConnectorItem;
7574
7338
  type SeamlessConnectorItem = ConnectorItem;
7575
7339
  type MCPConnectorItem = ConnectorItem;
7576
- type ConnectionItem = Schemas["V1ConnectionItem"];
7577
7340
  type ListConnectorsResponse = Omit<Schemas["CursorListResponsePublicV1ConnectorItem"], "data"> & {
7578
7341
  data: ConnectorItem[];
7579
7342
  connectors: ConnectorItem[];
7580
7343
  has_more: boolean;
7581
7344
  };
7582
- type ListAvailableConnectorsResponse = Omit<Schemas["CursorListResponseV1AvailableConnectorEntry"], "data"> & {
7583
- data: AvailableConnectorEntry[];
7584
- catalog: AvailableConnectorEntry[];
7585
- has_more: boolean;
7586
- };
7587
7345
  type ListStandardConnectorsResponse = Omit<ListConnectorsResponse, "connectors"> & {
7588
7346
  connectors: StandardConnectorItem[];
7589
7347
  };
@@ -7594,11 +7352,6 @@ type ListMCPConnectorsResponse = Omit<ListConnectorsResponse, "connectors"> & Pa
7594
7352
  data: MCPConnectorItem[];
7595
7353
  connectors: MCPConnectorItem[];
7596
7354
  };
7597
- type ListConnectionsResponse = Omit<Schemas["CursorListResponseV1ConnectionItem"], "data"> & {
7598
- data: ConnectionItem[];
7599
- connections: ConnectionItem[];
7600
- has_more: boolean;
7601
- };
7602
7355
  type TimeSeriesDataPoint = Schemas["TimeSeriesDataPoint"];
7603
7356
  type TimeSeriesData = Schemas["TimeSeriesData"];
7604
7357
  type ListDataPoint = Schemas["ListDataPoint"];
@@ -8043,26 +7796,12 @@ declare class LovableClient {
8043
7796
  listTemplateProjects(workspaceId: string, options?: ListOffsetPaginationOptions): Promise<ListTemplateProjectsResponse>;
8044
7797
  /** List all connectors in a workspace. */
8045
7798
  listConnectors(workspaceId: string, options?: ListConnectorsOptions): Promise<ListConnectorsResponse>;
8046
- /** Add a connector to a workspace. The server URL is tested before saving. */
8047
- addConnector(workspaceId: string, body: AddConnectorBody): Promise<ConnectorResponse>;
8048
- /** Remove a connector from a workspace. */
8049
- removeConnector(workspaceId: string, connectorId: string): Promise<{
8050
- success: boolean;
8051
- }>;
8052
- /** Browse available connector templates. */
8053
- listAvailableConnectors(workspaceId: string, options?: ListCursorPaginationOptions): Promise<ListAvailableConnectorsResponse>;
8054
7799
  /** List standard (OAuth-based) connectors in a workspace. */
8055
7800
  listStandardConnectors(workspaceId: string, options?: ListCursorPaginationOptions): Promise<ListStandardConnectorsResponse>;
8056
7801
  /** List seamless (zero-config) connectors in a workspace. */
8057
7802
  listSeamlessConnectors(workspaceId: string, options?: ListCursorPaginationOptions): Promise<ListSeamlessConnectorsResponse>;
8058
7803
  /** List MCP connectors in a workspace. */
8059
7804
  listMCPConnectors(workspaceId: string, options?: ListCursorPaginationOptions): Promise<ListMCPConnectorsResponse>;
8060
- /** List authenticated connections (accounts) in a workspace. */
8061
- listConnections(workspaceId: string, params?: {
8062
- connector_id?: string;
8063
- limit?: number;
8064
- cursor?: string;
8065
- }): Promise<ListConnectionsResponse>;
8066
7805
  /** Get historical analytics for a published project. */
8067
7806
  getProjectAnalytics(projectId: string, params: {
8068
7807
  startDate: string;
@@ -8152,5 +7891,5 @@ declare class LovableClient {
8152
7891
  waitForProjectPublished(projectId: string, options?: WaitOptions): Promise<ProjectResponse>;
8153
7892
  }
8154
7893
  //#endregion
8155
- export { type AddConnectorBody, ApiError, type AvailableConnectorEntry, type ChatMessageOptions, type ChatRequest, type ChatResponse, type ChatResponseOptions, type ConnectionItem, type ConnectorItem, type ConnectorResponse, type ContinuationOverride, type CreateProjectBody, type CreateProjectOptions, type CreateProjectResponse, type CreateVariantOptions, type CreateVariantResponse, type CursorPaginationOptions, type DatabaseQueryResult, type DatabaseStatus, type DeploymentResponse, type DiffEntry, type DiffHunk, type DiffLine, type EditSummary, type EditsResponse, type EmbedURLResponse, type EnableDatabaseResult, type FileInput, type FileUploadUrlResponse, type GetMessageResponse, type GetWorkspacesResponse, type GitDiffResponse, type GitFileEntry, type GitFilesResponse, type KnowledgeResponse, type LibraryProjectResponse, type ListAvailableConnectorsResponse, type ListConnectionsResponse, type ListConnectorsOptions, type ListConnectorsResponse, type ListCursorPaginationOptions, type ListData, type ListDataPoint, type ListHybridPaginationOptions, type ListLibraryProjectsResponse, type ListMCPConnectorsResponse, type ListMessagesOptions, type ListMessagesResponse, type ListOffsetPaginationOptions, type ListPaginationOptions, type ListProjectItem, type ListProjectsOptions, type ListProjectsResponse, type ListSeamlessConnectorsResponse, type ListStandardConnectorsResponse, type ListTemplateProjectsResponse, LovableClient, type LovableClientOptions, type LovableError, type MCPConnectorItem, type MeResponse, type MeWorkspace, type MemberRole, type MessageCompletionOptions, type MessageCompletionResult, type MessageSummary, type ProjectAnalyticsResponse, type ProjectAnalyticsTrendResponse, type ProjectResponse, type ProjectStatus, type ProjectVisibility, type RateLimitInfo, type RemixJobStatus, type RemixJobStep, type RemixJobStepInfo, type RemixMode, type RemixProjectOptions, type RemixResult, type RemixWaitOptions, type SeamlessConnectorItem, type SendMessageResponse, type StandardConnectorItem, type TemplateProjectResponse, type TimeSeriesData, type TimeSeriesDataPoint, type TrendDataPoint, type UnscopedFile, type WaitOptions, type WorkspaceMembership, type WorkspaceWithMembership };
7894
+ export { ApiError, type ChatMessageOptions, type ChatRequest, type ChatResponse, type ChatResponseOptions, type ConnectorItem, type ContinuationOverride, type CreateProjectBody, type CreateProjectOptions, type CreateProjectResponse, type CreateVariantOptions, type CreateVariantResponse, type CursorPaginationOptions, type DatabaseQueryResult, type DatabaseStatus, type DeploymentResponse, type DiffEntry, type DiffHunk, type DiffLine, type EditSummary, type EditsResponse, type EmbedURLResponse, type EnableDatabaseResult, type FileInput, type FileUploadUrlResponse, type GetMessageResponse, type GetWorkspacesResponse, type GitDiffResponse, type GitFileEntry, type GitFilesResponse, type KnowledgeResponse, type LibraryProjectResponse, type ListConnectorsOptions, type ListConnectorsResponse, type ListCursorPaginationOptions, type ListData, type ListDataPoint, type ListHybridPaginationOptions, type ListLibraryProjectsResponse, type ListMCPConnectorsResponse, type ListMessagesOptions, type ListMessagesResponse, type ListOffsetPaginationOptions, type ListPaginationOptions, type ListProjectItem, type ListProjectsOptions, type ListProjectsResponse, type ListSeamlessConnectorsResponse, type ListStandardConnectorsResponse, type ListTemplateProjectsResponse, LovableClient, type LovableClientOptions, type LovableError, type MCPConnectorItem, type MeResponse, type MeWorkspace, type MemberRole, type MessageCompletionOptions, type MessageCompletionResult, type MessageSummary, type ProjectAnalyticsResponse, type ProjectAnalyticsTrendResponse, type ProjectResponse, type ProjectStatus, type ProjectVisibility, type RateLimitInfo, type RemixJobStatus, type RemixJobStep, type RemixJobStepInfo, type RemixMode, type RemixProjectOptions, type RemixResult, type RemixWaitOptions, type SeamlessConnectorItem, type SendMessageResponse, type StandardConnectorItem, type TemplateProjectResponse, type TimeSeriesData, type TimeSeriesDataPoint, type TrendDataPoint, type UnscopedFile, type WaitOptions, type WorkspaceMembership, type WorkspaceWithMembership };
8156
7895
  //# sourceMappingURL=index.d.ts.map
package/dist/index.js CHANGED
@@ -815,37 +815,6 @@ var LovableClient = class {
815
815
  has_more: cursorHasMore(data)
816
816
  };
817
817
  }
818
- /** Add a connector to a workspace. The server URL is tested before saving. */
819
- async addConnector(workspaceId, body) {
820
- const { data } = await this.typed.POST("/v1/connectors", { body: {
821
- ...body,
822
- workspace_id: workspaceId
823
- } });
824
- return data;
825
- }
826
- /** Remove a connector from a workspace. */
827
- async removeConnector(workspaceId, connectorId) {
828
- const { data } = await this.typed.DELETE("/v1/connectors/{connector_id}", { params: {
829
- path: { connector_id: connectorId },
830
- query: { workspace_id: workspaceId }
831
- } });
832
- return data;
833
- }
834
- /** Browse available connector templates. */
835
- async listAvailableConnectors(workspaceId, options = {}) {
836
- const { data } = await this.typed.GET("/v1/available-connectors", { params: { query: {
837
- workspace_id: workspaceId,
838
- limit: options.limit,
839
- cursor: options.cursor
840
- } } });
841
- const catalog = data.catalog ?? data.data ?? [];
842
- return {
843
- ...data,
844
- data: catalog,
845
- catalog,
846
- has_more: cursorHasMore(data)
847
- };
848
- }
849
818
  /** List standard (OAuth-based) connectors in a workspace. */
850
819
  async listStandardConnectors(workspaceId, options = {}) {
851
820
  const { data } = await this.typed.GET("/v1/connectors", { params: { query: {
@@ -894,22 +863,6 @@ var LovableClient = class {
894
863
  has_more: cursorHasMore(data)
895
864
  };
896
865
  }
897
- /** List authenticated connections (accounts) in a workspace. */
898
- async listConnections(workspaceId, params = {}) {
899
- const { data } = await this.typed.GET("/v1/connections", { params: { query: {
900
- workspace_id: workspaceId,
901
- connector_id: params.connector_id,
902
- limit: params.limit,
903
- cursor: params.cursor
904
- } } });
905
- const connections = data.data ?? [];
906
- return {
907
- ...data,
908
- data: connections,
909
- connections,
910
- has_more: cursorHasMore(data)
911
- };
912
- }
913
866
  /** Get historical analytics for a published project. */
914
867
  async getProjectAnalytics(projectId, params) {
915
868
  const { data } = await this.typed.GET("/v1/analytics", { params: { query: {