@lovable.dev/sdk 1.2.3 → 1.4.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 +259 -287
- package/dist/index.js +2 -48
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +65 -65
- package/dist/schemas.js +40 -36
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +10 -54
- package/src/generated/paths.ts +256 -257
- package/src/generated/zod/zod.gen.ts +46 -36
- package/src/index.ts +0 -6
- package/src/types.ts +1 -15
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
|
|
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;
|
|
@@ -444,6 +380,50 @@ interface paths {
|
|
|
444
380
|
patch?: never;
|
|
445
381
|
trace?: never;
|
|
446
382
|
};
|
|
383
|
+
"/v1/members/bulk-set-credit-limit": {
|
|
384
|
+
parameters: {
|
|
385
|
+
query?: never;
|
|
386
|
+
header?: never;
|
|
387
|
+
path?: never;
|
|
388
|
+
cookie?: never;
|
|
389
|
+
};
|
|
390
|
+
get?: never;
|
|
391
|
+
put?: never;
|
|
392
|
+
/**
|
|
393
|
+
* Bulk-set member credit limits (Preview)
|
|
394
|
+
* @description Sets or clears the monthly credit limit for up to 50 members in one request. Returns HTTP 200 with a per-member result; an individual failure does not fail the request. Pass workspace_id in the request body.
|
|
395
|
+
*
|
|
396
|
+
* This operation is in public preview (beta): send `X-Enable-Beta: true` on every request. Requests without the header are rejected with HTTP 400 and type `beta_required` in the standard error envelope. Request and response shapes may change before the operation graduates to the stable surface.
|
|
397
|
+
*/
|
|
398
|
+
post: operations["post-v1-members-bulk-set-credit-limit"];
|
|
399
|
+
delete?: never;
|
|
400
|
+
options?: never;
|
|
401
|
+
head?: never;
|
|
402
|
+
patch?: never;
|
|
403
|
+
trace?: never;
|
|
404
|
+
};
|
|
405
|
+
"/v1/members/{user_id}": {
|
|
406
|
+
parameters: {
|
|
407
|
+
query?: never;
|
|
408
|
+
header?: never;
|
|
409
|
+
path?: never;
|
|
410
|
+
cookie?: never;
|
|
411
|
+
};
|
|
412
|
+
get?: never;
|
|
413
|
+
put?: never;
|
|
414
|
+
post?: never;
|
|
415
|
+
delete?: never;
|
|
416
|
+
options?: never;
|
|
417
|
+
head?: never;
|
|
418
|
+
/**
|
|
419
|
+
* Update a member's credit limit (Preview)
|
|
420
|
+
* @description Sets or clears a workspace member's monthly credit limit. Pass workspace_id in the request body and the member's user_id in the path.
|
|
421
|
+
*
|
|
422
|
+
* This operation is in public preview (beta): send `X-Enable-Beta: true` on every request. Requests without the header are rejected with HTTP 400 and type `beta_required` in the standard error envelope. Request and response shapes may change before the operation graduates to the stable surface.
|
|
423
|
+
*/
|
|
424
|
+
patch: operations["patch-v1-members-user_id"];
|
|
425
|
+
trace?: never;
|
|
426
|
+
};
|
|
447
427
|
"/v1/messages": {
|
|
448
428
|
parameters: {
|
|
449
429
|
query?: never;
|
|
@@ -1165,7 +1145,13 @@ interface paths {
|
|
|
1165
1145
|
delete?: never;
|
|
1166
1146
|
options?: never;
|
|
1167
1147
|
head?: never;
|
|
1168
|
-
|
|
1148
|
+
/**
|
|
1149
|
+
* Update workspace settings (Preview)
|
|
1150
|
+
* @description Updates writable workspace settings. Currently supports the default per-member monthly credit limit. Pass workspace_id in the request body.
|
|
1151
|
+
*
|
|
1152
|
+
* This operation is in public preview (beta): send `X-Enable-Beta: true` on every request. Requests without the header are rejected with HTTP 400 and type `beta_required` in the standard error envelope. Request and response shapes may change before the operation graduates to the stable surface.
|
|
1153
|
+
*/
|
|
1154
|
+
patch: operations["patch-v1-settings"];
|
|
1169
1155
|
trace?: never;
|
|
1170
1156
|
};
|
|
1171
1157
|
"/v1/skills": {
|
|
@@ -1346,7 +1332,7 @@ interface paths {
|
|
|
1346
1332
|
/**
|
|
1347
1333
|
* Browse available connectors
|
|
1348
1334
|
* @deprecated
|
|
1349
|
-
* @description Deprecated compatibility alias. Prefer GET /v1/
|
|
1335
|
+
* @description Deprecated compatibility alias. Prefer GET /v1/connectors?workspace_id=...
|
|
1350
1336
|
*/
|
|
1351
1337
|
get: operations["get-v1-workspaces-workspace_id-available-connectors"];
|
|
1352
1338
|
put?: never;
|
|
@@ -1409,7 +1395,7 @@ interface paths {
|
|
|
1409
1395
|
/**
|
|
1410
1396
|
* List connections
|
|
1411
1397
|
* @deprecated
|
|
1412
|
-
* @description Deprecated compatibility
|
|
1398
|
+
* @description Deprecated compatibility endpoint.
|
|
1413
1399
|
*/
|
|
1414
1400
|
get: operations["get-v1-workspaces-workspace_id-connections"];
|
|
1415
1401
|
put?: never;
|
|
@@ -1437,7 +1423,7 @@ interface paths {
|
|
|
1437
1423
|
/**
|
|
1438
1424
|
* Add connector
|
|
1439
1425
|
* @deprecated
|
|
1440
|
-
* @description Deprecated compatibility
|
|
1426
|
+
* @description Deprecated compatibility endpoint.
|
|
1441
1427
|
*/
|
|
1442
1428
|
post: operations["post-v1-workspaces-workspace_id-connectors"];
|
|
1443
1429
|
delete?: never;
|
|
@@ -1767,14 +1753,6 @@ interface components {
|
|
|
1767
1753
|
data: components["schemas"]["PublicV1ProjectListItem"][] | null;
|
|
1768
1754
|
pagination: components["schemas"]["Pagination"];
|
|
1769
1755
|
};
|
|
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
1756
|
CursorListResponseV1MessageListItem: {
|
|
1779
1757
|
data: components["schemas"]["V1MessageListItem"][] | null;
|
|
1780
1758
|
pagination: components["schemas"]["Pagination"];
|
|
@@ -2030,36 +2008,7 @@ interface components {
|
|
|
2030
2008
|
currentVisitors: number;
|
|
2031
2009
|
data: components["schemas"]["TrendDataPoint"][] | null;
|
|
2032
2010
|
};
|
|
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
2011
|
PublicV1ConnectorItem: {
|
|
2061
|
-
/** @description Authentication type, when available */
|
|
2062
|
-
auth_type?: string;
|
|
2063
2012
|
/** @description Connector categories */
|
|
2064
2013
|
categories?: string[] | null;
|
|
2065
2014
|
/** @description Connector category */
|
|
@@ -2076,16 +2025,18 @@ interface components {
|
|
|
2076
2025
|
is_connected?: boolean;
|
|
2077
2026
|
/** @description Whether the connector is enabled for this workspace, when available */
|
|
2078
2027
|
is_enabled_for_workspace?: boolean;
|
|
2079
|
-
/** @description
|
|
2080
|
-
|
|
2028
|
+
/** @description Lovable settings page where this connector can be set up */
|
|
2029
|
+
settings_url?: string;
|
|
2081
2030
|
/** @description Short connector description */
|
|
2082
2031
|
short_description?: string;
|
|
2083
2032
|
/** @description Connection status, when available */
|
|
2084
2033
|
status?: string;
|
|
2085
2034
|
/** @description Connector summary */
|
|
2086
2035
|
summary?: string;
|
|
2087
|
-
/** @description
|
|
2036
|
+
/** @description Deprecated: first entry of types. Use types instead. */
|
|
2088
2037
|
type: string;
|
|
2038
|
+
/** @description Connector types this connector supports: standard, seamless, app-user, mcp */
|
|
2039
|
+
types?: string[];
|
|
2089
2040
|
};
|
|
2090
2041
|
PublicV1CreateProjectResponse: {
|
|
2091
2042
|
/** @description AI-generated project description */
|
|
@@ -2127,6 +2078,16 @@ interface components {
|
|
|
2127
2078
|
/** @description Project ID */
|
|
2128
2079
|
project_id: string;
|
|
2129
2080
|
};
|
|
2081
|
+
PublicV1GetEditsOutputBody: {
|
|
2082
|
+
/** @description List of edits */
|
|
2083
|
+
data: components["schemas"]["V1EditSummary"][] | null;
|
|
2084
|
+
/** @description Deprecated: use data. Legacy edits list kept for backward compatibility */
|
|
2085
|
+
edits: components["schemas"]["V1EditSummary"][] | null;
|
|
2086
|
+
/** @description Deprecated: use pagination.has_more */
|
|
2087
|
+
has_more: boolean;
|
|
2088
|
+
/** @description Cursor pagination metadata */
|
|
2089
|
+
pagination: components["schemas"]["Pagination"];
|
|
2090
|
+
};
|
|
2130
2091
|
PublicV1GetWorkspaceBody: {
|
|
2131
2092
|
/** @description Caller's membership in this workspace. */
|
|
2132
2093
|
current_member?: components["schemas"]["PublicV1WorkspaceMember"];
|
|
@@ -2473,8 +2434,6 @@ interface components {
|
|
|
2473
2434
|
reason: string;
|
|
2474
2435
|
};
|
|
2475
2436
|
StandardConnectorAPI: {
|
|
2476
|
-
/** @enum {string} */
|
|
2477
|
-
auth_type: "APIKEY" | "OAUTH2" | "OAUTH2_CLIENT_CREDENTIALS" | "WIF" | "STEPS";
|
|
2478
2437
|
can_be_managed: boolean;
|
|
2479
2438
|
/** @description True when the workspace plan allows restricting connection creation to admins (Business and Enterprise) */
|
|
2480
2439
|
can_restrict_to_admins: boolean;
|
|
@@ -2650,6 +2609,48 @@ interface components {
|
|
|
2650
2609
|
*/
|
|
2651
2610
|
start: string;
|
|
2652
2611
|
};
|
|
2612
|
+
V1BulkMemberCreditLimitItem: {
|
|
2613
|
+
/**
|
|
2614
|
+
* Format: double
|
|
2615
|
+
* @description A number (0 blocks all spend) to set the cap, or null to clear it (the member inherits the workspace default).
|
|
2616
|
+
*/
|
|
2617
|
+
monthly_credit_limit: number | null;
|
|
2618
|
+
/** @description Member user_id (from GET /v1/members; active members only). */
|
|
2619
|
+
user_id: string;
|
|
2620
|
+
};
|
|
2621
|
+
V1BulkMemberCreditLimitResult: {
|
|
2622
|
+
/** @description Failure reason when status is error. */
|
|
2623
|
+
error?: string;
|
|
2624
|
+
/** @description success or error. */
|
|
2625
|
+
status: string;
|
|
2626
|
+
/** @description The member this result is for. */
|
|
2627
|
+
user_id: string;
|
|
2628
|
+
};
|
|
2629
|
+
V1BulkSetMemberCreditLimitInputBody: {
|
|
2630
|
+
/** @description Per-member limits to apply (1-50 entries). Use the workspace default (PATCH /v1/settings) to cap everyone at once. */
|
|
2631
|
+
members: components["schemas"]["V1BulkMemberCreditLimitItem"][];
|
|
2632
|
+
/** @description Workspace ID. */
|
|
2633
|
+
workspace_id: string;
|
|
2634
|
+
};
|
|
2635
|
+
V1BulkSetMemberCreditLimitOutputBody: {
|
|
2636
|
+
/**
|
|
2637
|
+
* Format: int64
|
|
2638
|
+
* @description Number that failed (see per-item error).
|
|
2639
|
+
*/
|
|
2640
|
+
failed: number;
|
|
2641
|
+
/** @description Per-member outcome, in request order. */
|
|
2642
|
+
results: components["schemas"]["V1BulkMemberCreditLimitResult"][] | null;
|
|
2643
|
+
/**
|
|
2644
|
+
* Format: int64
|
|
2645
|
+
* @description Number applied successfully.
|
|
2646
|
+
*/
|
|
2647
|
+
successful: number;
|
|
2648
|
+
/**
|
|
2649
|
+
* Format: int64
|
|
2650
|
+
* @description Number of members in the request.
|
|
2651
|
+
*/
|
|
2652
|
+
total: number;
|
|
2653
|
+
};
|
|
2653
2654
|
V1ConnectionItem: {
|
|
2654
2655
|
/** @description Connector type (e.g. google_drive, stripe) */
|
|
2655
2656
|
connector_id: string;
|
|
@@ -2843,7 +2844,6 @@ interface components {
|
|
|
2843
2844
|
};
|
|
2844
2845
|
V1DiffResponse: {
|
|
2845
2846
|
diffs: components["schemas"]["V1DiffEntry"][] | null;
|
|
2846
|
-
error?: string;
|
|
2847
2847
|
};
|
|
2848
2848
|
V1EditSummary: {
|
|
2849
2849
|
/** @description Commit message */
|
|
@@ -3384,6 +3384,24 @@ interface components {
|
|
|
3384
3384
|
/** @description File type (e.g. user_upload) */
|
|
3385
3385
|
type?: string;
|
|
3386
3386
|
};
|
|
3387
|
+
V1UpdateMemberCreditLimitInputBody: {
|
|
3388
|
+
/**
|
|
3389
|
+
* Format: double
|
|
3390
|
+
* @description The member's monthly credit cap. Send a number >= 0 (0 blocks all spend) to set it, or null to clear it (the member then inherits the workspace default).
|
|
3391
|
+
*/
|
|
3392
|
+
monthly_credit_limit?: number | null;
|
|
3393
|
+
/** @description Workspace ID. */
|
|
3394
|
+
workspace_id: string;
|
|
3395
|
+
};
|
|
3396
|
+
V1UpdateWorkspaceSettingsInputBody: {
|
|
3397
|
+
/**
|
|
3398
|
+
* Format: double
|
|
3399
|
+
* @description Default monthly credit cap applied to each member without an explicit per-member limit. Send a number >= 0 (0 blocks all member spend) to set it, or null to clear it (members are then bounded only by the workspace balance).
|
|
3400
|
+
*/
|
|
3401
|
+
default_monthly_member_credit_limit?: number | null;
|
|
3402
|
+
/** @description Workspace ID. */
|
|
3403
|
+
workspace_id: string;
|
|
3404
|
+
};
|
|
3387
3405
|
V1UsagePeriod: {
|
|
3388
3406
|
/** @description Inclusive end of the covered window (YYYY-MM-DD, UTC). */
|
|
3389
3407
|
end: string;
|
|
@@ -3522,6 +3540,11 @@ interface components {
|
|
|
3522
3540
|
* @description When the user accepted the invitation. Absent on pending invites.
|
|
3523
3541
|
*/
|
|
3524
3542
|
joined_at?: string;
|
|
3543
|
+
/**
|
|
3544
|
+
* Format: double
|
|
3545
|
+
* @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.
|
|
3546
|
+
*/
|
|
3547
|
+
monthly_credit_limit?: number;
|
|
3525
3548
|
/** @description Workspace role. One of: owner, admin, member, viewer, collaborator. */
|
|
3526
3549
|
role: string;
|
|
3527
3550
|
/** @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 +3789,11 @@ interface components {
|
|
|
3766
3789
|
* @description Start of the current billing period.
|
|
3767
3790
|
*/
|
|
3768
3791
|
billing_period_start_date?: string;
|
|
3792
|
+
/**
|
|
3793
|
+
* Format: double
|
|
3794
|
+
* @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.
|
|
3795
|
+
*/
|
|
3796
|
+
default_monthly_member_credit_limit?: number;
|
|
3769
3797
|
/** @description Default visibility applied to new projects. One of: public, private, draft. Absent means the workspace effective default of private. */
|
|
3770
3798
|
default_project_visibility?: string;
|
|
3771
3799
|
/** @description Whether PII scanning is enabled across project resources. */
|
|
@@ -4149,42 +4177,6 @@ interface operations {
|
|
|
4149
4177
|
};
|
|
4150
4178
|
};
|
|
4151
4179
|
};
|
|
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
4180
|
"get-v1-collaborators": {
|
|
4189
4181
|
parameters: {
|
|
4190
4182
|
query: {
|
|
@@ -4224,44 +4216,6 @@ interface operations {
|
|
|
4224
4216
|
};
|
|
4225
4217
|
};
|
|
4226
4218
|
};
|
|
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
4219
|
"get-v1-connectors": {
|
|
4266
4220
|
parameters: {
|
|
4267
4221
|
query: {
|
|
@@ -4302,74 +4256,6 @@ interface operations {
|
|
|
4302
4256
|
};
|
|
4303
4257
|
};
|
|
4304
4258
|
};
|
|
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
4259
|
"get-v1-credit-history": {
|
|
4374
4260
|
parameters: {
|
|
4375
4261
|
query: {
|
|
@@ -4551,7 +4437,9 @@ interface operations {
|
|
|
4551
4437
|
project_id: string;
|
|
4552
4438
|
/** @description Maximum number of edits to return */
|
|
4553
4439
|
limit?: number;
|
|
4554
|
-
/** @description
|
|
4440
|
+
/** @description Opaque pagination cursor returned by the previous page */
|
|
4441
|
+
cursor?: string;
|
|
4442
|
+
/** @description Deprecated: use cursor. ISO 8601 timestamp to fetch edits older than */
|
|
4555
4443
|
before?: string;
|
|
4556
4444
|
};
|
|
4557
4445
|
header?: never;
|
|
@@ -4566,7 +4454,7 @@ interface operations {
|
|
|
4566
4454
|
[name: string]: unknown;
|
|
4567
4455
|
};
|
|
4568
4456
|
content: {
|
|
4569
|
-
"application/json": components["schemas"]["
|
|
4457
|
+
"application/json": components["schemas"]["PublicV1GetEditsOutputBody"];
|
|
4570
4458
|
};
|
|
4571
4459
|
};
|
|
4572
4460
|
/** @description Error */
|
|
@@ -4872,6 +4760,81 @@ interface operations {
|
|
|
4872
4760
|
};
|
|
4873
4761
|
};
|
|
4874
4762
|
};
|
|
4763
|
+
"post-v1-members-bulk-set-credit-limit": {
|
|
4764
|
+
parameters: {
|
|
4765
|
+
query?: never;
|
|
4766
|
+
header: {
|
|
4767
|
+
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
4768
|
+
"X-Enable-Beta": "true";
|
|
4769
|
+
};
|
|
4770
|
+
path?: never;
|
|
4771
|
+
cookie?: never;
|
|
4772
|
+
};
|
|
4773
|
+
requestBody: {
|
|
4774
|
+
content: {
|
|
4775
|
+
"application/json": components["schemas"]["V1BulkSetMemberCreditLimitInputBody"];
|
|
4776
|
+
};
|
|
4777
|
+
};
|
|
4778
|
+
responses: {
|
|
4779
|
+
/** @description OK */
|
|
4780
|
+
200: {
|
|
4781
|
+
headers: {
|
|
4782
|
+
[name: string]: unknown;
|
|
4783
|
+
};
|
|
4784
|
+
content: {
|
|
4785
|
+
"application/json": components["schemas"]["V1BulkSetMemberCreditLimitOutputBody"];
|
|
4786
|
+
};
|
|
4787
|
+
};
|
|
4788
|
+
/** @description Error */
|
|
4789
|
+
default: {
|
|
4790
|
+
headers: {
|
|
4791
|
+
[name: string]: unknown;
|
|
4792
|
+
};
|
|
4793
|
+
content: {
|
|
4794
|
+
"application/problem+json": components["schemas"]["ErrorModel"];
|
|
4795
|
+
};
|
|
4796
|
+
};
|
|
4797
|
+
};
|
|
4798
|
+
};
|
|
4799
|
+
"patch-v1-members-user_id": {
|
|
4800
|
+
parameters: {
|
|
4801
|
+
query?: never;
|
|
4802
|
+
header: {
|
|
4803
|
+
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
4804
|
+
"X-Enable-Beta": "true";
|
|
4805
|
+
};
|
|
4806
|
+
path: {
|
|
4807
|
+
/** @description User ID of the member to update (the user_id returned by GET /v1/members; active members only). */
|
|
4808
|
+
user_id: string;
|
|
4809
|
+
};
|
|
4810
|
+
cookie?: never;
|
|
4811
|
+
};
|
|
4812
|
+
requestBody: {
|
|
4813
|
+
content: {
|
|
4814
|
+
"application/json": components["schemas"]["V1UpdateMemberCreditLimitInputBody"];
|
|
4815
|
+
};
|
|
4816
|
+
};
|
|
4817
|
+
responses: {
|
|
4818
|
+
/** @description OK */
|
|
4819
|
+
200: {
|
|
4820
|
+
headers: {
|
|
4821
|
+
[name: string]: unknown;
|
|
4822
|
+
};
|
|
4823
|
+
content: {
|
|
4824
|
+
"application/json": components["schemas"]["V1WorkspaceMember"];
|
|
4825
|
+
};
|
|
4826
|
+
};
|
|
4827
|
+
/** @description Error */
|
|
4828
|
+
default: {
|
|
4829
|
+
headers: {
|
|
4830
|
+
[name: string]: unknown;
|
|
4831
|
+
};
|
|
4832
|
+
content: {
|
|
4833
|
+
"application/problem+json": components["schemas"]["ErrorModel"];
|
|
4834
|
+
};
|
|
4835
|
+
};
|
|
4836
|
+
};
|
|
4837
|
+
};
|
|
4875
4838
|
"get-v1-messages": {
|
|
4876
4839
|
parameters: {
|
|
4877
4840
|
query: {
|
|
@@ -6328,6 +6291,42 @@ interface operations {
|
|
|
6328
6291
|
};
|
|
6329
6292
|
};
|
|
6330
6293
|
};
|
|
6294
|
+
"patch-v1-settings": {
|
|
6295
|
+
parameters: {
|
|
6296
|
+
query?: never;
|
|
6297
|
+
header: {
|
|
6298
|
+
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
6299
|
+
"X-Enable-Beta": "true";
|
|
6300
|
+
};
|
|
6301
|
+
path?: never;
|
|
6302
|
+
cookie?: never;
|
|
6303
|
+
};
|
|
6304
|
+
requestBody: {
|
|
6305
|
+
content: {
|
|
6306
|
+
"application/json": components["schemas"]["V1UpdateWorkspaceSettingsInputBody"];
|
|
6307
|
+
};
|
|
6308
|
+
};
|
|
6309
|
+
responses: {
|
|
6310
|
+
/** @description OK */
|
|
6311
|
+
200: {
|
|
6312
|
+
headers: {
|
|
6313
|
+
[name: string]: unknown;
|
|
6314
|
+
};
|
|
6315
|
+
content: {
|
|
6316
|
+
"application/json": components["schemas"]["V1WorkspaceSettingsBody"];
|
|
6317
|
+
};
|
|
6318
|
+
};
|
|
6319
|
+
/** @description Error */
|
|
6320
|
+
default: {
|
|
6321
|
+
headers: {
|
|
6322
|
+
[name: string]: unknown;
|
|
6323
|
+
};
|
|
6324
|
+
content: {
|
|
6325
|
+
"application/problem+json": components["schemas"]["ErrorModel"];
|
|
6326
|
+
};
|
|
6327
|
+
};
|
|
6328
|
+
};
|
|
6329
|
+
};
|
|
6331
6330
|
"get-v1-skills": {
|
|
6332
6331
|
parameters: {
|
|
6333
6332
|
query: {
|
|
@@ -7553,7 +7552,7 @@ type GitFilesResponse = Schemas["PublicV1GitFilesResponse"] & {
|
|
|
7553
7552
|
files: GitFileEntry[];
|
|
7554
7553
|
};
|
|
7555
7554
|
type EditSummary = Schemas["V1EditSummary"];
|
|
7556
|
-
type EditsResponse = Schemas["
|
|
7555
|
+
type EditsResponse = Schemas["PublicV1GetEditsOutputBody"];
|
|
7557
7556
|
type LibraryProjectResponse = Record<string, unknown>;
|
|
7558
7557
|
type TemplateProjectResponse = Record<string, unknown>;
|
|
7559
7558
|
type ListLibraryProjectsResponse = {
|
|
@@ -7566,24 +7565,15 @@ type ListTemplateProjectsResponse = {
|
|
|
7566
7565
|
total?: number;
|
|
7567
7566
|
has_more?: boolean;
|
|
7568
7567
|
};
|
|
7569
|
-
type ConnectorResponse = Schemas["V1ConnectorResponse"];
|
|
7570
|
-
type AvailableConnectorEntry = Schemas["V1AvailableConnectorEntry"];
|
|
7571
|
-
type AddConnectorBody = Omit<Schemas["PublicV1AddConnectorBody"], "workspace_id">;
|
|
7572
7568
|
type ConnectorItem = Schemas["PublicV1ConnectorItem"];
|
|
7573
7569
|
type StandardConnectorItem = ConnectorItem;
|
|
7574
7570
|
type SeamlessConnectorItem = ConnectorItem;
|
|
7575
7571
|
type MCPConnectorItem = ConnectorItem;
|
|
7576
|
-
type ConnectionItem = Schemas["V1ConnectionItem"];
|
|
7577
7572
|
type ListConnectorsResponse = Omit<Schemas["CursorListResponsePublicV1ConnectorItem"], "data"> & {
|
|
7578
7573
|
data: ConnectorItem[];
|
|
7579
7574
|
connectors: ConnectorItem[];
|
|
7580
7575
|
has_more: boolean;
|
|
7581
7576
|
};
|
|
7582
|
-
type ListAvailableConnectorsResponse = Omit<Schemas["CursorListResponseV1AvailableConnectorEntry"], "data"> & {
|
|
7583
|
-
data: AvailableConnectorEntry[];
|
|
7584
|
-
catalog: AvailableConnectorEntry[];
|
|
7585
|
-
has_more: boolean;
|
|
7586
|
-
};
|
|
7587
7577
|
type ListStandardConnectorsResponse = Omit<ListConnectorsResponse, "connectors"> & {
|
|
7588
7578
|
connectors: StandardConnectorItem[];
|
|
7589
7579
|
};
|
|
@@ -7594,11 +7584,6 @@ type ListMCPConnectorsResponse = Omit<ListConnectorsResponse, "connectors"> & Pa
|
|
|
7594
7584
|
data: MCPConnectorItem[];
|
|
7595
7585
|
connectors: MCPConnectorItem[];
|
|
7596
7586
|
};
|
|
7597
|
-
type ListConnectionsResponse = Omit<Schemas["CursorListResponseV1ConnectionItem"], "data"> & {
|
|
7598
|
-
data: ConnectionItem[];
|
|
7599
|
-
connections: ConnectionItem[];
|
|
7600
|
-
has_more: boolean;
|
|
7601
|
-
};
|
|
7602
7587
|
type TimeSeriesDataPoint = Schemas["TimeSeriesDataPoint"];
|
|
7603
7588
|
type TimeSeriesData = Schemas["TimeSeriesData"];
|
|
7604
7589
|
type ListDataPoint = Schemas["ListDataPoint"];
|
|
@@ -8015,6 +8000,7 @@ declare class LovableClient {
|
|
|
8015
8000
|
listEdits(projectId: string, params?: {
|
|
8016
8001
|
limit?: number;
|
|
8017
8002
|
before?: string;
|
|
8003
|
+
cursor?: string;
|
|
8018
8004
|
}): Promise<EditsResponse>;
|
|
8019
8005
|
/** Get an ephemeral presigned URL for uploading a file before a project exists. */
|
|
8020
8006
|
getFileUploadUrl(params: {
|
|
@@ -8043,26 +8029,12 @@ declare class LovableClient {
|
|
|
8043
8029
|
listTemplateProjects(workspaceId: string, options?: ListOffsetPaginationOptions): Promise<ListTemplateProjectsResponse>;
|
|
8044
8030
|
/** List all connectors in a workspace. */
|
|
8045
8031
|
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
8032
|
/** List standard (OAuth-based) connectors in a workspace. */
|
|
8055
8033
|
listStandardConnectors(workspaceId: string, options?: ListCursorPaginationOptions): Promise<ListStandardConnectorsResponse>;
|
|
8056
8034
|
/** List seamless (zero-config) connectors in a workspace. */
|
|
8057
8035
|
listSeamlessConnectors(workspaceId: string, options?: ListCursorPaginationOptions): Promise<ListSeamlessConnectorsResponse>;
|
|
8058
8036
|
/** List MCP connectors in a workspace. */
|
|
8059
8037
|
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
8038
|
/** Get historical analytics for a published project. */
|
|
8067
8039
|
getProjectAnalytics(projectId: string, params: {
|
|
8068
8040
|
startDate: string;
|
|
@@ -8152,5 +8124,5 @@ declare class LovableClient {
|
|
|
8152
8124
|
waitForProjectPublished(projectId: string, options?: WaitOptions): Promise<ProjectResponse>;
|
|
8153
8125
|
}
|
|
8154
8126
|
//#endregion
|
|
8155
|
-
export {
|
|
8127
|
+
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
8128
|
//# sourceMappingURL=index.d.ts.map
|