@lovable.dev/sdk 1.3.0 → 1.4.1
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 +255 -117
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +58 -2
- package/dist/schemas.js +35 -5
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +10 -2
- package/src/generated/paths.ts +253 -116
- package/src/generated/zod/zod.gen.ts +41 -2
- package/src/types.ts +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -53,10 +53,8 @@ interface paths {
|
|
|
53
53
|
cookie?: never;
|
|
54
54
|
};
|
|
55
55
|
/**
|
|
56
|
-
* Query workspace audit logs
|
|
56
|
+
* Query workspace audit logs
|
|
57
57
|
* @description Returns workspace audit log entries newest first (event timestamp descending, event ID as the cursor tie-breaker), paginated via an opaque cursor. Pass workspace_id as a query parameter.
|
|
58
|
-
*
|
|
59
|
-
* 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.
|
|
60
58
|
*/
|
|
61
59
|
get: operations["get-v1-audit-logs"];
|
|
62
60
|
put?: never;
|
|
@@ -75,10 +73,8 @@ interface paths {
|
|
|
75
73
|
cookie?: never;
|
|
76
74
|
};
|
|
77
75
|
/**
|
|
78
|
-
* List project collaborators
|
|
76
|
+
* List project collaborators
|
|
79
77
|
* @description Returns the users with direct access to this project. Pass project_id as a query parameter.
|
|
80
|
-
*
|
|
81
|
-
* 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.
|
|
82
78
|
*/
|
|
83
79
|
get: operations["get-v1-collaborators"];
|
|
84
80
|
put?: never;
|
|
@@ -117,10 +113,8 @@ interface paths {
|
|
|
117
113
|
cookie?: never;
|
|
118
114
|
};
|
|
119
115
|
/**
|
|
120
|
-
* Get workspace credit history
|
|
116
|
+
* Get workspace credit history
|
|
121
117
|
* @description Returns the workspace's credit grant, expiry, adjustment, and conversion history, ordered by occurred_at descending with entry ID as the cursor tie-breaker. Pass workspace_id as a query parameter.
|
|
122
|
-
*
|
|
123
|
-
* 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.
|
|
124
118
|
*/
|
|
125
119
|
get: operations["get-v1-credit-history"];
|
|
126
120
|
put?: never;
|
|
@@ -139,10 +133,8 @@ interface paths {
|
|
|
139
133
|
cookie?: never;
|
|
140
134
|
};
|
|
141
135
|
/**
|
|
142
|
-
* Get workspace credit balance
|
|
136
|
+
* Get workspace credit balance
|
|
143
137
|
* @description Returns the workspace's aggregated credit balance, daily limit, billing-period usage, expiring grants, and per-bucket balances. Pass workspace_id as a query parameter.
|
|
144
|
-
*
|
|
145
|
-
* 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.
|
|
146
138
|
*/
|
|
147
139
|
get: operations["get-v1-credits"];
|
|
148
140
|
put?: never;
|
|
@@ -366,10 +358,8 @@ interface paths {
|
|
|
366
358
|
cookie?: never;
|
|
367
359
|
};
|
|
368
360
|
/**
|
|
369
|
-
* List workspace members
|
|
361
|
+
* List workspace members
|
|
370
362
|
* @description Returns a paginated list of workspace members, filtered by role and status. Pass workspace_id as a query parameter.
|
|
371
|
-
*
|
|
372
|
-
* 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.
|
|
373
363
|
*/
|
|
374
364
|
get: operations["get-v1-members"];
|
|
375
365
|
put?: never;
|
|
@@ -380,6 +370,46 @@ interface paths {
|
|
|
380
370
|
patch?: never;
|
|
381
371
|
trace?: never;
|
|
382
372
|
};
|
|
373
|
+
"/v1/members/bulk-set-credit-limit": {
|
|
374
|
+
parameters: {
|
|
375
|
+
query?: never;
|
|
376
|
+
header?: never;
|
|
377
|
+
path?: never;
|
|
378
|
+
cookie?: never;
|
|
379
|
+
};
|
|
380
|
+
get?: never;
|
|
381
|
+
put?: never;
|
|
382
|
+
/**
|
|
383
|
+
* Bulk-set member credit limits
|
|
384
|
+
* @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.
|
|
385
|
+
*/
|
|
386
|
+
post: operations["post-v1-members-bulk-set-credit-limit"];
|
|
387
|
+
delete?: never;
|
|
388
|
+
options?: never;
|
|
389
|
+
head?: never;
|
|
390
|
+
patch?: never;
|
|
391
|
+
trace?: never;
|
|
392
|
+
};
|
|
393
|
+
"/v1/members/{user_id}": {
|
|
394
|
+
parameters: {
|
|
395
|
+
query?: never;
|
|
396
|
+
header?: never;
|
|
397
|
+
path?: never;
|
|
398
|
+
cookie?: never;
|
|
399
|
+
};
|
|
400
|
+
get?: never;
|
|
401
|
+
put?: never;
|
|
402
|
+
post?: never;
|
|
403
|
+
delete?: never;
|
|
404
|
+
options?: never;
|
|
405
|
+
head?: never;
|
|
406
|
+
/**
|
|
407
|
+
* Update a member's credit limit
|
|
408
|
+
* @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.
|
|
409
|
+
*/
|
|
410
|
+
patch: operations["patch-v1-members-user_id"];
|
|
411
|
+
trace?: never;
|
|
412
|
+
};
|
|
383
413
|
"/v1/messages": {
|
|
384
414
|
parameters: {
|
|
385
415
|
query?: never;
|
|
@@ -473,10 +503,8 @@ interface paths {
|
|
|
473
503
|
cookie?: never;
|
|
474
504
|
};
|
|
475
505
|
/**
|
|
476
|
-
* List PII labels
|
|
506
|
+
* List PII labels
|
|
477
507
|
* @description Returns PII labels detected for the project, newest first. Pass project_id as a query parameter.
|
|
478
|
-
*
|
|
479
|
-
* 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.
|
|
480
508
|
*/
|
|
481
509
|
get: operations["get-v1-pii-labels"];
|
|
482
510
|
put?: never;
|
|
@@ -996,10 +1024,8 @@ interface paths {
|
|
|
996
1024
|
cookie?: never;
|
|
997
1025
|
};
|
|
998
1026
|
/**
|
|
999
|
-
* Get workspace security overview
|
|
1027
|
+
* Get workspace security overview
|
|
1000
1028
|
* @description Returns the workspace security summary. Pass workspace_id as a query parameter.
|
|
1001
|
-
*
|
|
1002
|
-
* 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.
|
|
1003
1029
|
*/
|
|
1004
1030
|
get: operations["get-v1-security-dashboard"];
|
|
1005
1031
|
put?: never;
|
|
@@ -1018,10 +1044,8 @@ interface paths {
|
|
|
1018
1044
|
cookie?: never;
|
|
1019
1045
|
};
|
|
1020
1046
|
/**
|
|
1021
|
-
* List workspace security project inventory
|
|
1047
|
+
* List workspace security project inventory
|
|
1022
1048
|
* @description Returns the review-priority-ranked project inventory for the workspace, sorted by the selected sort_by (default last_edited, or relevance when query is set) with offset-based paging behind the cursor. Pass workspace_id as a query parameter.
|
|
1023
|
-
*
|
|
1024
|
-
* 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.
|
|
1025
1049
|
*/
|
|
1026
1050
|
get: operations["get-v1-security-dashboard-projects"];
|
|
1027
1051
|
put?: never;
|
|
@@ -1040,18 +1064,14 @@ interface paths {
|
|
|
1040
1064
|
cookie?: never;
|
|
1041
1065
|
};
|
|
1042
1066
|
/**
|
|
1043
|
-
* List security scans
|
|
1067
|
+
* List security scans
|
|
1044
1068
|
* @description Returns the project's security scan invocations, newest first. Pass project_id as a query parameter.
|
|
1045
|
-
*
|
|
1046
|
-
* 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.
|
|
1047
1069
|
*/
|
|
1048
1070
|
get: operations["get-v1-security-scans"];
|
|
1049
1071
|
put?: never;
|
|
1050
1072
|
/**
|
|
1051
|
-
* Trigger security scan
|
|
1073
|
+
* Trigger security scan
|
|
1052
1074
|
* @description Starts a security scan for the project's latest commit and returns a scan_id. Pass project_id in the request body.
|
|
1053
|
-
*
|
|
1054
|
-
* 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.
|
|
1055
1075
|
*/
|
|
1056
1076
|
post: operations["post-v1-security-scans"];
|
|
1057
1077
|
delete?: never;
|
|
@@ -1068,10 +1088,8 @@ interface paths {
|
|
|
1068
1088
|
cookie?: never;
|
|
1069
1089
|
};
|
|
1070
1090
|
/**
|
|
1071
|
-
* Get security scan
|
|
1091
|
+
* Get security scan
|
|
1072
1092
|
* @description Returns a single security scan invocation with per-scanner run details and findings. Pass project_id as a query parameter.
|
|
1073
|
-
*
|
|
1074
|
-
* 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.
|
|
1075
1093
|
*/
|
|
1076
1094
|
get: operations["get-v1-security-scans-scan_id"];
|
|
1077
1095
|
put?: never;
|
|
@@ -1090,10 +1108,8 @@ interface paths {
|
|
|
1090
1108
|
cookie?: never;
|
|
1091
1109
|
};
|
|
1092
1110
|
/**
|
|
1093
|
-
* Get workspace settings
|
|
1111
|
+
* Get workspace settings
|
|
1094
1112
|
* @description Returns a curated subset of the workspace's settings. Pass workspace_id as a query parameter.
|
|
1095
|
-
*
|
|
1096
|
-
* 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.
|
|
1097
1113
|
*/
|
|
1098
1114
|
get: operations["get-v1-settings"];
|
|
1099
1115
|
put?: never;
|
|
@@ -1101,7 +1117,11 @@ interface paths {
|
|
|
1101
1117
|
delete?: never;
|
|
1102
1118
|
options?: never;
|
|
1103
1119
|
head?: never;
|
|
1104
|
-
|
|
1120
|
+
/**
|
|
1121
|
+
* Update workspace settings
|
|
1122
|
+
* @description Updates writable workspace settings. Currently supports the default per-member monthly credit limit. Pass workspace_id in the request body.
|
|
1123
|
+
*/
|
|
1124
|
+
patch: operations["patch-v1-settings"];
|
|
1105
1125
|
trace?: never;
|
|
1106
1126
|
};
|
|
1107
1127
|
"/v1/skills": {
|
|
@@ -1152,10 +1172,8 @@ interface paths {
|
|
|
1152
1172
|
cookie?: never;
|
|
1153
1173
|
};
|
|
1154
1174
|
/**
|
|
1155
|
-
* Get workspace usage breakdown
|
|
1175
|
+
* Get workspace usage breakdown
|
|
1156
1176
|
* @description Returns per-member credit usage rows, ordered by the selected sort_by field (default total_credits_used_in_billing_period descending) with offset-based paging behind the cursor. Pass workspace_id as a query parameter.
|
|
1157
|
-
*
|
|
1158
|
-
* 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.
|
|
1159
1177
|
*/
|
|
1160
1178
|
get: operations["get-v1-usage-breakdown"];
|
|
1161
1179
|
put?: never;
|
|
@@ -1174,10 +1192,8 @@ interface paths {
|
|
|
1174
1192
|
cookie?: never;
|
|
1175
1193
|
};
|
|
1176
1194
|
/**
|
|
1177
|
-
* Get caller's workspace usage
|
|
1195
|
+
* Get caller's workspace usage
|
|
1178
1196
|
* @description Returns the calling user's own credit usage in the workspace for the current calendar month. Pass workspace_id as a query parameter.
|
|
1179
|
-
*
|
|
1180
|
-
* 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.
|
|
1181
1197
|
*/
|
|
1182
1198
|
get: operations["get-v1-usage-me"];
|
|
1183
1199
|
put?: never;
|
|
@@ -1196,10 +1212,8 @@ interface paths {
|
|
|
1196
1212
|
cookie?: never;
|
|
1197
1213
|
};
|
|
1198
1214
|
/**
|
|
1199
|
-
* Get workspace usage by project
|
|
1215
|
+
* Get workspace usage by project
|
|
1200
1216
|
* @description Returns per-project credit usage for a time window, ordered by total credits descending with project ID ascending as the cursor tie-breaker. Pass workspace_id as a query parameter.
|
|
1201
|
-
*
|
|
1202
|
-
* 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.
|
|
1203
1217
|
*/
|
|
1204
1218
|
get: operations["get-v1-usage-projects"];
|
|
1205
1219
|
put?: never;
|
|
@@ -1218,10 +1232,8 @@ interface paths {
|
|
|
1218
1232
|
cookie?: never;
|
|
1219
1233
|
};
|
|
1220
1234
|
/**
|
|
1221
|
-
* Get workspace usage time series
|
|
1235
|
+
* Get workspace usage time series
|
|
1222
1236
|
* @description Returns historical credit usage bucketed by day, week, or month, ordered by period_start ascending. Pass workspace_id as a query parameter.
|
|
1223
|
-
*
|
|
1224
|
-
* 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.
|
|
1225
1237
|
*/
|
|
1226
1238
|
get: operations["get-v1-usage-timeseries"];
|
|
1227
1239
|
put?: never;
|
|
@@ -2028,6 +2040,16 @@ interface components {
|
|
|
2028
2040
|
/** @description Project ID */
|
|
2029
2041
|
project_id: string;
|
|
2030
2042
|
};
|
|
2043
|
+
PublicV1GetEditsOutputBody: {
|
|
2044
|
+
/** @description List of edits */
|
|
2045
|
+
data: components["schemas"]["V1EditSummary"][] | null;
|
|
2046
|
+
/** @description Deprecated: use data. Legacy edits list kept for backward compatibility */
|
|
2047
|
+
edits: components["schemas"]["V1EditSummary"][] | null;
|
|
2048
|
+
/** @description Deprecated: use pagination.has_more */
|
|
2049
|
+
has_more: boolean;
|
|
2050
|
+
/** @description Cursor pagination metadata */
|
|
2051
|
+
pagination: components["schemas"]["Pagination"];
|
|
2052
|
+
};
|
|
2031
2053
|
PublicV1GetWorkspaceBody: {
|
|
2032
2054
|
/** @description Caller's membership in this workspace. */
|
|
2033
2055
|
current_member?: components["schemas"]["PublicV1WorkspaceMember"];
|
|
@@ -2549,6 +2571,48 @@ interface components {
|
|
|
2549
2571
|
*/
|
|
2550
2572
|
start: string;
|
|
2551
2573
|
};
|
|
2574
|
+
V1BulkMemberCreditLimitItem: {
|
|
2575
|
+
/**
|
|
2576
|
+
* Format: double
|
|
2577
|
+
* @description A number (0 blocks all spend) to set the cap, or null to clear it (the member inherits the workspace default).
|
|
2578
|
+
*/
|
|
2579
|
+
monthly_credit_limit: number | null;
|
|
2580
|
+
/** @description Member user_id (from GET /v1/members; active members only). */
|
|
2581
|
+
user_id: string;
|
|
2582
|
+
};
|
|
2583
|
+
V1BulkMemberCreditLimitResult: {
|
|
2584
|
+
/** @description Failure reason when status is error. */
|
|
2585
|
+
error?: string;
|
|
2586
|
+
/** @description success or error. */
|
|
2587
|
+
status: string;
|
|
2588
|
+
/** @description The member this result is for. */
|
|
2589
|
+
user_id: string;
|
|
2590
|
+
};
|
|
2591
|
+
V1BulkSetMemberCreditLimitInputBody: {
|
|
2592
|
+
/** @description Per-member limits to apply (1-50 entries). Use the workspace default (PATCH /v1/settings) to cap everyone at once. */
|
|
2593
|
+
members: components["schemas"]["V1BulkMemberCreditLimitItem"][];
|
|
2594
|
+
/** @description Workspace ID. */
|
|
2595
|
+
workspace_id: string;
|
|
2596
|
+
};
|
|
2597
|
+
V1BulkSetMemberCreditLimitOutputBody: {
|
|
2598
|
+
/**
|
|
2599
|
+
* Format: int64
|
|
2600
|
+
* @description Number that failed (see per-item error).
|
|
2601
|
+
*/
|
|
2602
|
+
failed: number;
|
|
2603
|
+
/** @description Per-member outcome, in request order. */
|
|
2604
|
+
results: components["schemas"]["V1BulkMemberCreditLimitResult"][] | null;
|
|
2605
|
+
/**
|
|
2606
|
+
* Format: int64
|
|
2607
|
+
* @description Number applied successfully.
|
|
2608
|
+
*/
|
|
2609
|
+
successful: number;
|
|
2610
|
+
/**
|
|
2611
|
+
* Format: int64
|
|
2612
|
+
* @description Number of members in the request.
|
|
2613
|
+
*/
|
|
2614
|
+
total: number;
|
|
2615
|
+
};
|
|
2552
2616
|
V1ConnectionItem: {
|
|
2553
2617
|
/** @description Connector type (e.g. google_drive, stripe) */
|
|
2554
2618
|
connector_id: string;
|
|
@@ -2742,7 +2806,6 @@ interface components {
|
|
|
2742
2806
|
};
|
|
2743
2807
|
V1DiffResponse: {
|
|
2744
2808
|
diffs: components["schemas"]["V1DiffEntry"][] | null;
|
|
2745
|
-
error?: string;
|
|
2746
2809
|
};
|
|
2747
2810
|
V1EditSummary: {
|
|
2748
2811
|
/** @description Commit message */
|
|
@@ -3283,6 +3346,24 @@ interface components {
|
|
|
3283
3346
|
/** @description File type (e.g. user_upload) */
|
|
3284
3347
|
type?: string;
|
|
3285
3348
|
};
|
|
3349
|
+
V1UpdateMemberCreditLimitInputBody: {
|
|
3350
|
+
/**
|
|
3351
|
+
* Format: double
|
|
3352
|
+
* @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).
|
|
3353
|
+
*/
|
|
3354
|
+
monthly_credit_limit?: number | null;
|
|
3355
|
+
/** @description Workspace ID. */
|
|
3356
|
+
workspace_id: string;
|
|
3357
|
+
};
|
|
3358
|
+
V1UpdateWorkspaceSettingsInputBody: {
|
|
3359
|
+
/**
|
|
3360
|
+
* Format: double
|
|
3361
|
+
* @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).
|
|
3362
|
+
*/
|
|
3363
|
+
default_monthly_member_credit_limit?: number | null;
|
|
3364
|
+
/** @description Workspace ID. */
|
|
3365
|
+
workspace_id: string;
|
|
3366
|
+
};
|
|
3286
3367
|
V1UsagePeriod: {
|
|
3287
3368
|
/** @description Inclusive end of the covered window (YYYY-MM-DD, UTC). */
|
|
3288
3369
|
end: string;
|
|
@@ -4029,10 +4110,7 @@ interface operations {
|
|
|
4029
4110
|
/** @description RFC3339 inclusive end of the time range. Defaults to now. */
|
|
4030
4111
|
end_date?: string;
|
|
4031
4112
|
};
|
|
4032
|
-
header
|
|
4033
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
4034
|
-
"X-Enable-Beta": "true";
|
|
4035
|
-
};
|
|
4113
|
+
header?: never;
|
|
4036
4114
|
path?: never;
|
|
4037
4115
|
cookie?: never;
|
|
4038
4116
|
};
|
|
@@ -4068,10 +4146,7 @@ interface operations {
|
|
|
4068
4146
|
/** @description Opaque pagination cursor returned by the previous page */
|
|
4069
4147
|
cursor?: string;
|
|
4070
4148
|
};
|
|
4071
|
-
header
|
|
4072
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
4073
|
-
"X-Enable-Beta": "true";
|
|
4074
|
-
};
|
|
4149
|
+
header?: never;
|
|
4075
4150
|
path?: never;
|
|
4076
4151
|
cookie?: never;
|
|
4077
4152
|
};
|
|
@@ -4149,10 +4224,7 @@ interface operations {
|
|
|
4149
4224
|
/** @description Opaque pagination cursor returned by the previous page */
|
|
4150
4225
|
cursor?: string;
|
|
4151
4226
|
};
|
|
4152
|
-
header
|
|
4153
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
4154
|
-
"X-Enable-Beta": "true";
|
|
4155
|
-
};
|
|
4227
|
+
header?: never;
|
|
4156
4228
|
path?: never;
|
|
4157
4229
|
cookie?: never;
|
|
4158
4230
|
};
|
|
@@ -4184,10 +4256,7 @@ interface operations {
|
|
|
4184
4256
|
/** @description Workspace ID */
|
|
4185
4257
|
workspace_id: string;
|
|
4186
4258
|
};
|
|
4187
|
-
header
|
|
4188
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
4189
|
-
"X-Enable-Beta": "true";
|
|
4190
|
-
};
|
|
4259
|
+
header?: never;
|
|
4191
4260
|
path?: never;
|
|
4192
4261
|
cookie?: never;
|
|
4193
4262
|
};
|
|
@@ -4318,7 +4387,9 @@ interface operations {
|
|
|
4318
4387
|
project_id: string;
|
|
4319
4388
|
/** @description Maximum number of edits to return */
|
|
4320
4389
|
limit?: number;
|
|
4321
|
-
/** @description
|
|
4390
|
+
/** @description Opaque pagination cursor returned by the previous page */
|
|
4391
|
+
cursor?: string;
|
|
4392
|
+
/** @description Deprecated: use cursor. ISO 8601 timestamp to fetch edits older than */
|
|
4322
4393
|
before?: string;
|
|
4323
4394
|
};
|
|
4324
4395
|
header?: never;
|
|
@@ -4333,7 +4404,7 @@ interface operations {
|
|
|
4333
4404
|
[name: string]: unknown;
|
|
4334
4405
|
};
|
|
4335
4406
|
content: {
|
|
4336
|
-
"application/json": components["schemas"]["
|
|
4407
|
+
"application/json": components["schemas"]["PublicV1GetEditsOutputBody"];
|
|
4337
4408
|
};
|
|
4338
4409
|
};
|
|
4339
4410
|
/** @description Error */
|
|
@@ -4610,10 +4681,7 @@ interface operations {
|
|
|
4610
4681
|
/** @description Filter by SCIM provisioning status. Empty = all members, 'managed' = only SCIM-provisioned members, 'unmanaged' = only members not managed by SCIM. */
|
|
4611
4682
|
scim_managed?: "managed" | "unmanaged";
|
|
4612
4683
|
};
|
|
4613
|
-
header
|
|
4614
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
4615
|
-
"X-Enable-Beta": "true";
|
|
4616
|
-
};
|
|
4684
|
+
header?: never;
|
|
4617
4685
|
path?: never;
|
|
4618
4686
|
cookie?: never;
|
|
4619
4687
|
};
|
|
@@ -4639,6 +4707,75 @@ interface operations {
|
|
|
4639
4707
|
};
|
|
4640
4708
|
};
|
|
4641
4709
|
};
|
|
4710
|
+
"post-v1-members-bulk-set-credit-limit": {
|
|
4711
|
+
parameters: {
|
|
4712
|
+
query?: never;
|
|
4713
|
+
header?: never;
|
|
4714
|
+
path?: never;
|
|
4715
|
+
cookie?: never;
|
|
4716
|
+
};
|
|
4717
|
+
requestBody: {
|
|
4718
|
+
content: {
|
|
4719
|
+
"application/json": components["schemas"]["V1BulkSetMemberCreditLimitInputBody"];
|
|
4720
|
+
};
|
|
4721
|
+
};
|
|
4722
|
+
responses: {
|
|
4723
|
+
/** @description OK */
|
|
4724
|
+
200: {
|
|
4725
|
+
headers: {
|
|
4726
|
+
[name: string]: unknown;
|
|
4727
|
+
};
|
|
4728
|
+
content: {
|
|
4729
|
+
"application/json": components["schemas"]["V1BulkSetMemberCreditLimitOutputBody"];
|
|
4730
|
+
};
|
|
4731
|
+
};
|
|
4732
|
+
/** @description Error */
|
|
4733
|
+
default: {
|
|
4734
|
+
headers: {
|
|
4735
|
+
[name: string]: unknown;
|
|
4736
|
+
};
|
|
4737
|
+
content: {
|
|
4738
|
+
"application/problem+json": components["schemas"]["ErrorModel"];
|
|
4739
|
+
};
|
|
4740
|
+
};
|
|
4741
|
+
};
|
|
4742
|
+
};
|
|
4743
|
+
"patch-v1-members-user_id": {
|
|
4744
|
+
parameters: {
|
|
4745
|
+
query?: never;
|
|
4746
|
+
header?: never;
|
|
4747
|
+
path: {
|
|
4748
|
+
/** @description User ID of the member to update (the user_id returned by GET /v1/members; active members only). */
|
|
4749
|
+
user_id: string;
|
|
4750
|
+
};
|
|
4751
|
+
cookie?: never;
|
|
4752
|
+
};
|
|
4753
|
+
requestBody: {
|
|
4754
|
+
content: {
|
|
4755
|
+
"application/json": components["schemas"]["V1UpdateMemberCreditLimitInputBody"];
|
|
4756
|
+
};
|
|
4757
|
+
};
|
|
4758
|
+
responses: {
|
|
4759
|
+
/** @description OK */
|
|
4760
|
+
200: {
|
|
4761
|
+
headers: {
|
|
4762
|
+
[name: string]: unknown;
|
|
4763
|
+
};
|
|
4764
|
+
content: {
|
|
4765
|
+
"application/json": components["schemas"]["V1WorkspaceMember"];
|
|
4766
|
+
};
|
|
4767
|
+
};
|
|
4768
|
+
/** @description Error */
|
|
4769
|
+
default: {
|
|
4770
|
+
headers: {
|
|
4771
|
+
[name: string]: unknown;
|
|
4772
|
+
};
|
|
4773
|
+
content: {
|
|
4774
|
+
"application/problem+json": components["schemas"]["ErrorModel"];
|
|
4775
|
+
};
|
|
4776
|
+
};
|
|
4777
|
+
};
|
|
4778
|
+
};
|
|
4642
4779
|
"get-v1-messages": {
|
|
4643
4780
|
parameters: {
|
|
4644
4781
|
query: {
|
|
@@ -4810,10 +4947,7 @@ interface operations {
|
|
|
4810
4947
|
/** @description Opaque cursor returned by a previous page; omit for the first page */
|
|
4811
4948
|
cursor?: string;
|
|
4812
4949
|
};
|
|
4813
|
-
header
|
|
4814
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
4815
|
-
"X-Enable-Beta": "true";
|
|
4816
|
-
};
|
|
4950
|
+
header?: never;
|
|
4817
4951
|
path?: never;
|
|
4818
4952
|
cookie?: never;
|
|
4819
4953
|
};
|
|
@@ -5859,10 +5993,7 @@ interface operations {
|
|
|
5859
5993
|
/** @description Repeat to keep only findings at these review priorities (needs_review=critical, review_recommended=high+medium, no_review_needed=low+minimal). Omit for all. */
|
|
5860
5994
|
severity?: ("needs_review" | "review_recommended" | "no_review_needed")[] | null;
|
|
5861
5995
|
};
|
|
5862
|
-
header
|
|
5863
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
5864
|
-
"X-Enable-Beta": "true";
|
|
5865
|
-
};
|
|
5996
|
+
header?: never;
|
|
5866
5997
|
path?: never;
|
|
5867
5998
|
cookie?: never;
|
|
5868
5999
|
};
|
|
@@ -5918,10 +6049,7 @@ interface operations {
|
|
|
5918
6049
|
/** @description Repeat to filter to projects matching any of the listed catalog findings (e.g. public_pii_exposure, abandoned_published). Unknown finding ids return 400. */
|
|
5919
6050
|
finding_id?: string[] | null;
|
|
5920
6051
|
};
|
|
5921
|
-
header
|
|
5922
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
5923
|
-
"X-Enable-Beta": "true";
|
|
5924
|
-
};
|
|
6052
|
+
header?: never;
|
|
5925
6053
|
path?: never;
|
|
5926
6054
|
cookie?: never;
|
|
5927
6055
|
};
|
|
@@ -5957,10 +6085,7 @@ interface operations {
|
|
|
5957
6085
|
/** @description Opaque cursor from a prior response */
|
|
5958
6086
|
cursor?: string;
|
|
5959
6087
|
};
|
|
5960
|
-
header
|
|
5961
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
5962
|
-
"X-Enable-Beta": "true";
|
|
5963
|
-
};
|
|
6088
|
+
header?: never;
|
|
5964
6089
|
path?: never;
|
|
5965
6090
|
cookie?: never;
|
|
5966
6091
|
};
|
|
@@ -5989,10 +6114,7 @@ interface operations {
|
|
|
5989
6114
|
"post-v1-security-scans": {
|
|
5990
6115
|
parameters: {
|
|
5991
6116
|
query?: never;
|
|
5992
|
-
header
|
|
5993
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
5994
|
-
"X-Enable-Beta": "true";
|
|
5995
|
-
};
|
|
6117
|
+
header?: never;
|
|
5996
6118
|
path?: never;
|
|
5997
6119
|
cookie?: never;
|
|
5998
6120
|
};
|
|
@@ -6028,10 +6150,7 @@ interface operations {
|
|
|
6028
6150
|
/** @description Project ID */
|
|
6029
6151
|
project_id: string;
|
|
6030
6152
|
};
|
|
6031
|
-
header
|
|
6032
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
6033
|
-
"X-Enable-Beta": "true";
|
|
6034
|
-
};
|
|
6153
|
+
header?: never;
|
|
6035
6154
|
path: {
|
|
6036
6155
|
/** @description Scan invocation ID from the list endpoint */
|
|
6037
6156
|
scan_id: string;
|
|
@@ -6066,10 +6185,7 @@ interface operations {
|
|
|
6066
6185
|
/** @description Workspace ID */
|
|
6067
6186
|
workspace_id: string;
|
|
6068
6187
|
};
|
|
6069
|
-
header
|
|
6070
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
6071
|
-
"X-Enable-Beta": "true";
|
|
6072
|
-
};
|
|
6188
|
+
header?: never;
|
|
6073
6189
|
path?: never;
|
|
6074
6190
|
cookie?: never;
|
|
6075
6191
|
};
|
|
@@ -6095,6 +6211,39 @@ interface operations {
|
|
|
6095
6211
|
};
|
|
6096
6212
|
};
|
|
6097
6213
|
};
|
|
6214
|
+
"patch-v1-settings": {
|
|
6215
|
+
parameters: {
|
|
6216
|
+
query?: never;
|
|
6217
|
+
header?: never;
|
|
6218
|
+
path?: never;
|
|
6219
|
+
cookie?: never;
|
|
6220
|
+
};
|
|
6221
|
+
requestBody: {
|
|
6222
|
+
content: {
|
|
6223
|
+
"application/json": components["schemas"]["V1UpdateWorkspaceSettingsInputBody"];
|
|
6224
|
+
};
|
|
6225
|
+
};
|
|
6226
|
+
responses: {
|
|
6227
|
+
/** @description OK */
|
|
6228
|
+
200: {
|
|
6229
|
+
headers: {
|
|
6230
|
+
[name: string]: unknown;
|
|
6231
|
+
};
|
|
6232
|
+
content: {
|
|
6233
|
+
"application/json": components["schemas"]["V1WorkspaceSettingsBody"];
|
|
6234
|
+
};
|
|
6235
|
+
};
|
|
6236
|
+
/** @description Error */
|
|
6237
|
+
default: {
|
|
6238
|
+
headers: {
|
|
6239
|
+
[name: string]: unknown;
|
|
6240
|
+
};
|
|
6241
|
+
content: {
|
|
6242
|
+
"application/problem+json": components["schemas"]["ErrorModel"];
|
|
6243
|
+
};
|
|
6244
|
+
};
|
|
6245
|
+
};
|
|
6246
|
+
};
|
|
6098
6247
|
"get-v1-skills": {
|
|
6099
6248
|
parameters: {
|
|
6100
6249
|
query: {
|
|
@@ -6183,10 +6332,7 @@ interface operations {
|
|
|
6183
6332
|
/** @description Opaque pagination cursor returned by the previous page */
|
|
6184
6333
|
cursor?: string;
|
|
6185
6334
|
};
|
|
6186
|
-
header
|
|
6187
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
6188
|
-
"X-Enable-Beta": "true";
|
|
6189
|
-
};
|
|
6335
|
+
header?: never;
|
|
6190
6336
|
path?: never;
|
|
6191
6337
|
cookie?: never;
|
|
6192
6338
|
};
|
|
@@ -6218,10 +6364,7 @@ interface operations {
|
|
|
6218
6364
|
/** @description Workspace ID */
|
|
6219
6365
|
workspace_id: string;
|
|
6220
6366
|
};
|
|
6221
|
-
header
|
|
6222
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
6223
|
-
"X-Enable-Beta": "true";
|
|
6224
|
-
};
|
|
6367
|
+
header?: never;
|
|
6225
6368
|
path?: never;
|
|
6226
6369
|
cookie?: never;
|
|
6227
6370
|
};
|
|
@@ -6263,10 +6406,7 @@ interface operations {
|
|
|
6263
6406
|
/** @description Opaque pagination cursor returned by the previous page */
|
|
6264
6407
|
cursor?: string;
|
|
6265
6408
|
};
|
|
6266
|
-
header
|
|
6267
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
6268
|
-
"X-Enable-Beta": "true";
|
|
6269
|
-
};
|
|
6409
|
+
header?: never;
|
|
6270
6410
|
path?: never;
|
|
6271
6411
|
cookie?: never;
|
|
6272
6412
|
};
|
|
@@ -6314,10 +6454,7 @@ interface operations {
|
|
|
6314
6454
|
/** @description Opaque pagination cursor returned by the previous page */
|
|
6315
6455
|
cursor?: string;
|
|
6316
6456
|
};
|
|
6317
|
-
header
|
|
6318
|
-
/** @description Required for public preview endpoints. Set to true on every request. */
|
|
6319
|
-
"X-Enable-Beta": "true";
|
|
6320
|
-
};
|
|
6457
|
+
header?: never;
|
|
6321
6458
|
path?: never;
|
|
6322
6459
|
cookie?: never;
|
|
6323
6460
|
};
|
|
@@ -7320,7 +7457,7 @@ type GitFilesResponse = Schemas["PublicV1GitFilesResponse"] & {
|
|
|
7320
7457
|
files: GitFileEntry[];
|
|
7321
7458
|
};
|
|
7322
7459
|
type EditSummary = Schemas["V1EditSummary"];
|
|
7323
|
-
type EditsResponse = Schemas["
|
|
7460
|
+
type EditsResponse = Schemas["PublicV1GetEditsOutputBody"];
|
|
7324
7461
|
type LibraryProjectResponse = Record<string, unknown>;
|
|
7325
7462
|
type TemplateProjectResponse = Record<string, unknown>;
|
|
7326
7463
|
type ListLibraryProjectsResponse = {
|
|
@@ -7768,6 +7905,7 @@ declare class LovableClient {
|
|
|
7768
7905
|
listEdits(projectId: string, params?: {
|
|
7769
7906
|
limit?: number;
|
|
7770
7907
|
before?: string;
|
|
7908
|
+
cursor?: string;
|
|
7771
7909
|
}): Promise<EditsResponse>;
|
|
7772
7910
|
/** Get an ephemeral presigned URL for uploading a file before a project exists. */
|
|
7773
7911
|
getFileUploadUrl(params: {
|
package/dist/index.js
CHANGED
|
@@ -729,7 +729,8 @@ var LovableClient = class {
|
|
|
729
729
|
const { data } = await this.typed.GET("/v1/edits", { params: { query: {
|
|
730
730
|
project_id: projectId,
|
|
731
731
|
limit: params?.limit,
|
|
732
|
-
before: params?.before
|
|
732
|
+
before: params?.before,
|
|
733
|
+
cursor: params?.cursor
|
|
733
734
|
} } });
|
|
734
735
|
return data;
|
|
735
736
|
}
|