@lovable.dev/sdk 1.9.0 → 1.9.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.
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/generate-public-paths.mjs — do not edit.
2
- export const SDK_VERSION = "1.9.0";
2
+ export const SDK_VERSION = "1.9.1";
@@ -245,7 +245,6 @@ export const PublicV1GitFilesResponseSchema = z.object({
245
245
  });
246
246
 
247
247
  export const PiiLabelSchema = z.object({
248
- chat_message_id: z.string().optional(),
249
248
  chat_upload_id: z.string().optional(),
250
249
  connector_id: z.string().optional(),
251
250
  found_at: z.iso.datetime(),
@@ -260,7 +259,6 @@ export const PiiLabelSchema = z.object({
260
259
  'very_likely'
261
260
  ]).optional(),
262
261
  quote: z.string().optional(),
263
- scan_id: z.string().optional(),
264
262
  sensitivity: z.enum([
265
263
  'low',
266
264
  'mid',
@@ -326,8 +324,6 @@ export const ProjectSummarySchema = z.object({
326
324
  'completed',
327
325
  'failed'
328
326
  ]).optional(),
329
- tech_stack: z.string().optional(),
330
- updated_at: z.iso.datetime().optional(),
331
327
  url: z.string().optional(),
332
328
  user_id: z.string().optional(),
333
329
  visibility: z.enum([
@@ -408,6 +404,49 @@ export const DeploymentSchema = z.object({
408
404
  url: z.string().optional()
409
405
  });
410
406
 
407
+ export const SecurityFindingSchema = z.object({
408
+ category: z.string().optional(),
409
+ created_at: z.iso.datetime(),
410
+ description: z.string().optional(),
411
+ finding_id: z.string(),
412
+ level: z.enum([
413
+ 'error',
414
+ 'warn',
415
+ 'info'
416
+ ]),
417
+ name: z.string(),
418
+ scanner_name: z.string(),
419
+ status: z.enum([
420
+ 'open',
421
+ 'fixed',
422
+ 'ignored'
423
+ ]),
424
+ updated_at: z.iso.datetime()
425
+ });
426
+
427
+ export const SecurityScanSchema = z.object({
428
+ commit_sha: z.string().optional(),
429
+ finished_at: z.iso.datetime().optional(),
430
+ requested_scanners: z.array(z.string()).nullable(),
431
+ scan_id: z.string(),
432
+ started_at: z.iso.datetime(),
433
+ status: z.enum([
434
+ 'running',
435
+ 'completed',
436
+ 'failed'
437
+ ])
438
+ });
439
+
440
+ export const SecurityScanPageSchema = z.object({
441
+ data: z.array(SecurityScanSchema).nullable(),
442
+ pagination: PaginationSchema
443
+ });
444
+
445
+ export const SecurityScanDetailSchema = z.object({
446
+ findings: z.array(SecurityFindingSchema).nullable(),
447
+ scan: SecurityScanSchema
448
+ });
449
+
411
450
  export const PublicV1SetProjectKnowledgeInputBodySchema = z.object({
412
451
  content: z.string(),
413
452
  project_id: z.string()
@@ -872,19 +911,6 @@ export const V1AwaitingInputSummarySchema = z.object({
872
911
  tool_id: z.string().optional()
873
912
  });
874
913
 
875
- export const MemberCreditLimitSchema = z.object({
876
- monthly_credit_limit: z.number().optional(),
877
- temporary_limit_expires_at: z.iso.datetime().optional(),
878
- temporary_monthly_credit_limit: z.number().optional(),
879
- user_id: z.string()
880
- });
881
-
882
- export const CreditLimitPageSchema = z.object({
883
- data: z.array(MemberCreditLimitSchema).nullable(),
884
- default_monthly_credit_limit: z.number().optional(),
885
- pagination: PaginationSchema
886
- });
887
-
888
914
  export const BillingPeriodSchema = z.object({
889
915
  end: z.iso.datetime(),
890
916
  start: z.iso.datetime()
@@ -901,18 +927,14 @@ export const CreditUsagePeriodSchema = z.object({
901
927
  start: z.string()
902
928
  });
903
929
 
904
- export const MemberCreditLimitUpdateSchema = z.object({
930
+ export const V1BulkMemberCreditLimitItemSchema = z.object({
905
931
  duration: z.enum(['permanent', 'current_period']).optional(),
906
932
  email: z.string().optional(),
907
933
  monthly_credit_limit: z.number().gte(0).nullable(),
908
934
  user_id: z.string().optional()
909
935
  });
910
936
 
911
- export const SetMemberCreditLimitsRequestSchema = z.object({
912
- members: z.array(MemberCreditLimitUpdateSchema).min(1).max(1000)
913
- });
914
-
915
- export const MemberCreditLimitResultSchema = z.object({
937
+ export const V1BulkMemberCreditLimitResultSchema = z.object({
916
938
  approved_until: z.iso.datetime().optional(),
917
939
  duration: z.enum(['current_period']).optional(),
918
940
  email: z.string().optional(),
@@ -922,13 +944,13 @@ export const MemberCreditLimitResultSchema = z.object({
922
944
  });
923
945
 
924
946
  export const V1BulkSetMemberCreditLimitInputBodySchema = z.object({
925
- members: z.array(MemberCreditLimitUpdateSchema).min(1).max(50),
947
+ members: z.array(V1BulkMemberCreditLimitItemSchema).min(1).max(50),
926
948
  workspace_id: z.string()
927
949
  });
928
950
 
929
- export const SetMemberCreditLimitsResponseSchema = z.object({
951
+ export const V1BulkSetMemberCreditLimitOutputBodySchema = z.object({
930
952
  failed: z.number(),
931
- results: z.array(MemberCreditLimitResultSchema).nullable(),
953
+ results: z.array(V1BulkMemberCreditLimitResultSchema).nullable(),
932
954
  successful: z.number(),
933
955
  total: z.number()
934
956
  });
@@ -987,8 +1009,6 @@ export const V1CreateProjectResponseSchema = z.object({
987
1009
  'completed',
988
1010
  'failed'
989
1011
  ]).optional(),
990
- tech_stack: z.string().optional(),
991
- updated_at: z.iso.datetime().optional(),
992
1012
  url: z.string().optional(),
993
1013
  user_id: z.string().optional(),
994
1014
  visibility: z.enum([
@@ -1289,8 +1309,6 @@ export const ProjectSchema = z.object({
1289
1309
  'completed',
1290
1310
  'failed'
1291
1311
  ]).optional(),
1292
- tech_stack: z.string().optional(),
1293
- updated_at: z.iso.datetime().optional(),
1294
1312
  url: z.string().optional(),
1295
1313
  user_id: z.string().optional(),
1296
1314
  visibility: z.enum([
@@ -1338,29 +1356,28 @@ export const V1RemixInitOutputBodySchema = z.object({
1338
1356
  job_id: z.string()
1339
1357
  });
1340
1358
 
1341
- export const RemixResultSchema = z.object({
1359
+ export const V1RemixProgressResultSchema = z.object({
1342
1360
  project_id: z.string(),
1343
1361
  warnings: z.array(RemixWarningSchema).nullish()
1344
1362
  });
1345
1363
 
1346
- export const RemixJobSchema = z.object({
1364
+ export const PublicV1RemixJobOutputBodySchema = z.object({
1347
1365
  error_code: z.string().optional(),
1348
1366
  error_message: z.string().optional(),
1349
- result: RemixResultSchema.optional(),
1367
+ result: V1RemixProgressResultSchema.optional(),
1350
1368
  status: z.enum([
1351
1369
  'preparing',
1352
1370
  'running',
1353
1371
  'completed',
1354
1372
  'error',
1355
1373
  'unknown'
1356
- ]),
1357
- step: RemixJobStepInfoSchema.optional()
1374
+ ])
1358
1375
  });
1359
1376
 
1360
1377
  export const V1RemixProgressOutputBodySchema = z.object({
1361
1378
  error_code: z.string().optional(),
1362
1379
  error_message: z.string().optional(),
1363
- result: RemixResultSchema.optional(),
1380
+ result: V1RemixProgressResultSchema.optional(),
1364
1381
  status: z.string(),
1365
1382
  step: RemixJobStepInfoSchema.optional()
1366
1383
  });
@@ -1369,7 +1386,7 @@ export const V1RemoveConnectorOutputBodySchema = z.object({
1369
1386
  success: z.boolean()
1370
1387
  });
1371
1388
 
1372
- export const SecurityFindingSchema = z.object({
1389
+ export const V1SecurityFindingSchema = z.object({
1373
1390
  category: z.string().optional(),
1374
1391
  created_at: z.iso.datetime(),
1375
1392
  description: z.string().optional(),
@@ -1395,14 +1412,14 @@ export const SecurityFindingSchema = z.object({
1395
1412
  updated_at: z.iso.datetime()
1396
1413
  });
1397
1414
 
1398
- export const SecurityScanActorSchema = z.object({
1415
+ export const V1SecurityScanActorSchema = z.object({
1399
1416
  email: z.string().optional(),
1400
1417
  id: z.string().optional(),
1401
1418
  name: z.string().optional(),
1402
1419
  type: z.enum(['user', 'system'])
1403
1420
  });
1404
1421
 
1405
- export const SecurityScanSchema = z.object({
1422
+ export const V1SecurityScanSummarySchema = z.object({
1406
1423
  commit_sha: z.string().optional(),
1407
1424
  finished_at: z.iso.datetime().optional(),
1408
1425
  requested_scanners: z.array(z.string()).nullable(),
@@ -1425,15 +1442,15 @@ export const SecurityScanSchema = z.object({
1425
1442
  'enterprise_batch',
1426
1443
  'gitsync_pull'
1427
1444
  ]),
1428
- triggered_by: SecurityScanActorSchema
1445
+ triggered_by: V1SecurityScanActorSchema
1429
1446
  });
1430
1447
 
1431
- export const SecurityScanPageSchema = z.object({
1432
- data: z.array(SecurityScanSchema).nullable(),
1448
+ export const CursorListResponseV1SecurityScanSummarySchema = z.object({
1449
+ data: z.array(V1SecurityScanSummarySchema).nullable(),
1433
1450
  pagination: PaginationSchema
1434
1451
  });
1435
1452
 
1436
- export const SecurityScannerRunSchema = z.object({
1453
+ export const V1SecurityScannerRunSchema = z.object({
1437
1454
  commit_sha: z.string().optional(),
1438
1455
  error_message: z.string().optional(),
1439
1456
  finished_at: z.iso.datetime().optional(),
@@ -1447,10 +1464,10 @@ export const SecurityScannerRunSchema = z.object({
1447
1464
  ])
1448
1465
  });
1449
1466
 
1450
- export const SecurityScanDetailSchema = z.object({
1451
- findings: z.array(SecurityFindingSchema).nullable(),
1452
- scan: SecurityScanSchema,
1453
- scanner_runs: z.array(SecurityScannerRunSchema).nullable()
1467
+ export const V1GetSecurityScanOutputBodySchema = z.object({
1468
+ findings: z.array(V1SecurityFindingSchema).nullable(),
1469
+ scan: V1SecurityScanSummarySchema,
1470
+ scanner_runs: z.array(V1SecurityScannerRunSchema).nullable()
1454
1471
  });
1455
1472
 
1456
1473
  export const V1SelectedLibrarySchema = z.object({
@@ -1505,7 +1522,7 @@ export const V1TriggerSecurityScanInputBodySchema = z.object({
1505
1522
  project_id: z.string()
1506
1523
  });
1507
1524
 
1508
- export const TriggerSecurityScanResponseSchema = z.object({
1525
+ export const V1TriggerSecurityScanResponseBodySchema = z.object({
1509
1526
  message: z.string().optional(),
1510
1527
  scan_id: z.string(),
1511
1528
  status: z.enum([
@@ -1599,10 +1616,6 @@ export const V1UpdateWorkspaceSettingsInputBodySchema = z.object({
1599
1616
  workspace_id: z.string()
1600
1617
  });
1601
1618
 
1602
- export const UpdateWorkspaceSettingsRequestSchema = z.object({
1603
- default_monthly_member_credit_limit: z.number().gte(0).nullish()
1604
- });
1605
-
1606
1619
  export const V1UsagePeriodSchema = z.object({
1607
1620
  end: z.string(),
1608
1621
  granularity: z.string().optional(),
@@ -1,5 +1,4 @@
1
- // Deprecated aliases for the Zod schemas renamed when the public OpenAPI
2
- // document adopted stable component names. Removed in the next major release.
1
+ // Compatibility aliases retained until the next major release.
3
2
 
4
3
  import {
5
4
  AnalyticsBreakdownGroupSchema,
@@ -14,7 +13,6 @@ import {
14
13
  CreditGrantTypeBalanceSchema,
15
14
  CreditHistoryEntrySchema,
16
15
  CreditHistoryPageSchema,
17
- CreditLimitPageSchema,
18
16
  CreditUsageEntrySchema,
19
17
  CreditUsagePageSchema,
20
18
  CreditUsagePeriodSchema,
@@ -25,9 +23,6 @@ import {
25
23
  ExpiringCreditGrantSchema,
26
24
  GatewayModelUsageSchema,
27
25
  GetWorkspaceResponseSchema,
28
- MemberCreditLimitResultSchema,
29
- MemberCreditLimitSchema,
30
- MemberCreditLimitUpdateSchema,
31
26
  PiiLabelPageSchema,
32
27
  PiiLabelSchema,
33
28
  ProjectAnalyticsSchema,
@@ -40,20 +35,16 @@ import {
40
35
  PublishProjectRequestSchema,
41
36
  PublishProjectResponseSchema,
42
37
  PublishSettingsSchema,
43
- RemixJobSchema,
44
- RemixResultSchema,
45
- SecurityFindingSchema,
46
- SecurityScanActorSchema,
47
- SecurityScanDetailSchema,
48
- SecurityScanPageSchema,
49
- SecurityScanSchema,
50
- SecurityScannerRunSchema,
51
- SetMemberCreditLimitsRequestSchema,
52
- SetMemberCreditLimitsResponseSchema,
53
- TriggerSecurityScanResponseSchema,
38
+ PublicV1RemixJobOutputBodySchema,
39
+ V1RemixProgressResultSchema,
54
40
  UpdateProjectRequestSchema,
55
41
  UpdatePublishSettingsRequestSchema,
56
- UpdateWorkspaceSettingsRequestSchema,
42
+ V1BulkMemberCreditLimitItemSchema,
43
+ V1BulkMemberCreditLimitResultSchema,
44
+ V1BulkSetMemberCreditLimitOutputBodySchema,
45
+ V1SecurityScanActorSchema,
46
+ V1SecurityScannerRunSchema,
47
+ V1TriggerSecurityScanResponseBodySchema,
57
48
  WorkspaceAnalyticsSchema,
58
49
  WorkspaceGroupPageSchema,
59
50
  WorkspaceGroupSchema,
@@ -86,8 +77,6 @@ export const CursorListResponsePublicV1PiiLabelSchema = PiiLabelPageSchema;
86
77
  export const CursorListResponsePublicV1ProjectListItemSchema = ProjectSummaryPageSchema;
87
78
  /** @deprecated Renamed to ProjectCollaboratorPageSchema. */
88
79
  export const CursorListResponseV1ProjectCollaboratorSchema = ProjectCollaboratorPageSchema;
89
- /** @deprecated Renamed to SecurityScanPageSchema. */
90
- export const CursorListResponseV1SecurityScanSummarySchema = SecurityScanPageSchema;
91
80
  /** @deprecated Renamed to WorkspaceGroupPageSchema. */
92
81
  export const CursorListResponseV1WorkspaceGroupSchema = WorkspaceGroupPageSchema;
93
82
  /** @deprecated Renamed to WorkspaceMemberPageSchema. */
@@ -122,8 +111,8 @@ export const PublicV1PublishProjectInputBodySchema = PublishProjectRequestSchema
122
111
  export const PublicV1PublishProjectResponseSchema = PublishProjectResponseSchema;
123
112
  /** @deprecated Renamed to DeploymentSchema. */
124
113
  export const PublicV1PublishStatusResponseSchema = DeploymentSchema;
125
- /** @deprecated Renamed to RemixJobSchema. */
126
- export const PublicV1RemixJobOutputBodySchema = RemixJobSchema;
114
+ /** @deprecated Retained for legacy endpoints. */
115
+ export const RemixJobSchema = PublicV1RemixJobOutputBodySchema;
127
116
  /** @deprecated Renamed to UpdatePublishSettingsRequestSchema. */
128
117
  export const PublicV1UpdatePublishSettingsInputBodySchema = UpdatePublishSettingsRequestSchema;
129
118
  /** @deprecated Renamed to PublishSettingsSchema. */
@@ -134,12 +123,6 @@ export const PublicV1WorkspaceMemberSchema = WorkspaceMembershipSchema;
134
123
  export const PublicV1WorkspaceSchema = WorkspaceSchema;
135
124
  /** @deprecated Renamed to WorkspaceWithMembershipSchema. */
136
125
  export const PublicV1WorkspaceWithMembershipSchema = WorkspaceWithMembershipSchema;
137
- /** @deprecated Renamed to SetMemberCreditLimitsRequestSchema. */
138
- export const V1BillingBulkSetMemberCreditLimitInputBodySchema = SetMemberCreditLimitsRequestSchema;
139
- /** @deprecated Renamed to MemberCreditLimitSchema. */
140
- export const V1BillingCreditLimitRowSchema = MemberCreditLimitSchema;
141
- /** @deprecated Renamed to CreditLimitPageSchema. */
142
- export const V1BillingCreditLimitsBodySchema = CreditLimitPageSchema;
143
126
  /** @deprecated Renamed to BillingPeriodSchema. */
144
127
  export const V1BillingPeriodSchema = BillingPeriodSchema;
145
128
  /** @deprecated Renamed to CreditUsagePageSchema. */
@@ -148,40 +131,32 @@ export const V1BillingUsageBodySchema = CreditUsagePageSchema;
148
131
  export const V1BillingUsagePeriodSchema = CreditUsagePeriodSchema;
149
132
  /** @deprecated Renamed to CreditUsageEntrySchema. */
150
133
  export const V1BillingUsageRowSchema = CreditUsageEntrySchema;
151
- /** @deprecated Renamed to MemberCreditLimitUpdateSchema. */
152
- export const V1BulkMemberCreditLimitItemSchema = MemberCreditLimitUpdateSchema;
153
- /** @deprecated Renamed to MemberCreditLimitResultSchema. */
154
- export const V1BulkMemberCreditLimitResultSchema = MemberCreditLimitResultSchema;
155
- /** @deprecated Renamed to SetMemberCreditLimitsResponseSchema. */
156
- export const V1BulkSetMemberCreditLimitOutputBodySchema = SetMemberCreditLimitsResponseSchema;
134
+ /** @deprecated Retained for legacy endpoints. */
135
+ export const MemberCreditLimitUpdateSchema = V1BulkMemberCreditLimitItemSchema;
136
+ /** @deprecated Retained for legacy endpoints. */
137
+ export const MemberCreditLimitResultSchema = V1BulkMemberCreditLimitResultSchema;
138
+ /** @deprecated Retained for legacy endpoints. */
139
+ export const SetMemberCreditLimitsResponseSchema = V1BulkSetMemberCreditLimitOutputBodySchema;
157
140
  /** @deprecated Renamed to CreateEmbedUrlRequestSchema. */
158
141
  export const V1CreateEmbedUrlInputBodySchema = CreateEmbedUrlRequestSchema;
159
142
  /** @deprecated Renamed to CreateEmbedUrlResponseSchema. */
160
143
  export const V1CreateEmbedUrlOutputBodySchema = CreateEmbedUrlResponseSchema;
161
144
  /** @deprecated Renamed to CreditHistoryEntrySchema. */
162
145
  export const V1CreditHistoryEntrySchema = CreditHistoryEntrySchema;
163
- /** @deprecated Renamed to SecurityScanDetailSchema. */
164
- export const V1GetSecurityScanOutputBodySchema = SecurityScanDetailSchema;
165
146
  /** @deprecated Renamed to WorkspacePageSchema. */
166
147
  export const V1ListWorkspacesBodySchema = WorkspacePageSchema;
167
148
  /** @deprecated Renamed to ProjectCollaboratorSchema. */
168
149
  export const V1ProjectCollaboratorSchema = ProjectCollaboratorSchema;
169
150
  /** @deprecated Renamed to ProjectSchema. */
170
151
  export const V1ProjectResponseSchema = ProjectSchema;
171
- /** @deprecated Renamed to RemixResultSchema. */
172
- export const V1RemixProgressResultSchema = RemixResultSchema;
173
- /** @deprecated Renamed to SecurityFindingSchema. */
174
- export const V1SecurityFindingSchema = SecurityFindingSchema;
175
- /** @deprecated Renamed to SecurityScanActorSchema. */
176
- export const V1SecurityScanActorSchema = SecurityScanActorSchema;
177
- /** @deprecated Renamed to SecurityScanSchema. */
178
- export const V1SecurityScanSummarySchema = SecurityScanSchema;
179
- /** @deprecated Renamed to SecurityScannerRunSchema. */
180
- export const V1SecurityScannerRunSchema = SecurityScannerRunSchema;
181
- /** @deprecated Renamed to TriggerSecurityScanResponseSchema. */
182
- export const V1TriggerSecurityScanResponseBodySchema = TriggerSecurityScanResponseSchema;
183
- /** @deprecated Renamed to UpdateWorkspaceSettingsRequestSchema. */
184
- export const V1UpdateWorkspaceSettingsNestedInputBodySchema = UpdateWorkspaceSettingsRequestSchema;
152
+ /** @deprecated Retained for legacy endpoints. */
153
+ export const RemixResultSchema = V1RemixProgressResultSchema;
154
+ /** @deprecated Retained for legacy endpoints. */
155
+ export const SecurityScanActorSchema = V1SecurityScanActorSchema;
156
+ /** @deprecated Retained for legacy endpoints. */
157
+ export const SecurityScannerRunSchema = V1SecurityScannerRunSchema;
158
+ /** @deprecated Retained for legacy endpoints. */
159
+ export const TriggerSecurityScanResponseSchema = V1TriggerSecurityScanResponseBodySchema;
185
160
  /** @deprecated Renamed to CreditHistoryPageSchema. */
186
161
  export const V1WorkspaceCreditHistoryBodySchema = CreditHistoryPageSchema;
187
162
  /** @deprecated Renamed to CreditBalanceSchema. */
package/src/types.ts CHANGED
@@ -191,8 +191,8 @@ export type ProjectAnalyticsTrendResponse = Schemas["AnalyticsTrend"];
191
191
 
192
192
  export type RemixJobStepInfo = Schemas["RemixJobStepInfo"];
193
193
  export type RemixInitResponse = { job_id: string };
194
- export type RemixProgressResult = Schemas["RemixResult"];
195
- export type RemixProgressResponse = Schemas["RemixJob"];
194
+ export type RemixProgressResult = Schemas["V1RemixProgressResult"];
195
+ export type RemixProgressResponse = Schemas["PublicV1RemixJobOutputBody"];
196
196
 
197
197
  // The V1 spec types `status` as plain string. The Go handler returns one of
198
198
  // these five values — keep the narrow union here as an SDK-side aid for
@@ -386,6 +386,7 @@ export interface RemixResult {
386
386
  export interface RemixWaitOptions {
387
387
  pollInterval?: number;
388
388
  timeout?: number;
389
+ /** The optional step argument is retained for callback compatibility; the API no longer returns it. */
389
390
  onProgress?: (status: RemixJobStatus, step?: RemixJobStepInfo) => void;
390
391
  }
391
392
 
@@ -435,10 +436,8 @@ export interface ListProjectsOptions {
435
436
  visibility?: ListProjectsQuery["visibility"];
436
437
  publish_status?: ListProjectsQuery["publish_status"];
437
438
  folder_id?: ListProjectsQuery["folder_id"];
438
- folder_ids?: ListProjectsQuery["folder_ids"];
439
439
  user_id?: ListProjectsQuery["user_id"];
440
440
  type?: ListProjectsQuery["type"];
441
- search_fields?: ListProjectsQuery["search_fields"];
442
441
  viewed_by_me?: ListProjectsQuery["viewed_by_me"];
443
442
  cursor?: ListProjectsQuery["cursor"];
444
443
  limit?: ListProjectsQuery["limit"];