@lovable.dev/sdk 1.4.1 → 1.7.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/schemas.js CHANGED
@@ -1,10 +1,6 @@
1
1
  import * as z$1 from "zod";
2
2
  import { z } from "zod";
3
3
  //#region src/generated/zod/zod.gen.ts
4
- const CommonSeamlessConnectorCreatorSchema = z$1.object({
5
- name: z$1.string(),
6
- url: z$1.string()
7
- });
8
4
  const CommonSeamlessConnectorFeatureSchema = z$1.object({
9
5
  body: z$1.string().optional(),
10
6
  items: z$1.array(z$1.string()).nullable(),
@@ -18,38 +14,12 @@ const CommonSeamlessConnectorPermissionSchema = z$1.object({
18
14
  is_primary: z$1.boolean().optional(),
19
15
  name: z$1.string()
20
16
  });
21
- const CreatorSchema = z$1.object({
17
+ const CompanyCreatorSchema = z$1.object({
18
+ logo_url: z$1.string().optional(),
22
19
  name: z$1.string(),
20
+ type: z$1.enum(["company"]),
23
21
  url: z$1.string()
24
22
  });
25
- const AppUserConnectorApiSchema = z$1.object({
26
- can_restrict_to_admins: z$1.boolean(),
27
- categories: z$1.array(z$1.enum([
28
- "ecommerce",
29
- "marketing",
30
- "productivity",
31
- "sales",
32
- "support",
33
- "other",
34
- "messaging",
35
- "coming_soon",
36
- "development",
37
- "payments",
38
- "custom"
39
- ])),
40
- creator: CreatorSchema,
41
- display_name: z$1.string(),
42
- documentation_url: z$1.string(),
43
- features: z$1.string(),
44
- has_clients: z$1.boolean(),
45
- id: z$1.string(),
46
- is_enabled_for_workspace: z$1.boolean(),
47
- long_description: z$1.string(),
48
- search_tags: z$1.array(z$1.string()),
49
- short_description: z$1.string(),
50
- terms_url: z$1.string().optional(),
51
- who_can_create: z$1.enum(["editors_and_admins", "admins_only"])
52
- });
53
23
  const DiffLineSchema = z$1.object({
54
24
  content: z$1.string(),
55
25
  type: z$1.string()
@@ -74,19 +44,12 @@ const ErrorModelSchema = z$1.object({
74
44
  title: z$1.string().optional(),
75
45
  type: z$1.string().optional()
76
46
  });
77
- const FeatureDescriptionSchema = z$1.object({
78
- body: z$1.string().optional(),
79
- items: z$1.array(z$1.string()).nullable(),
80
- title: z$1.string()
81
- });
82
- const GetMeCapabilitiesSchema = z$1.object({ project_variants: z$1.boolean() });
83
47
  const GetMeWorkspaceSchema = z$1.object({
84
48
  id: z$1.string(),
85
49
  name: z$1.string(),
86
50
  role: z$1.string()
87
51
  });
88
52
  const GetMeOutputBodySchema = z$1.object({
89
- capabilities: GetMeCapabilitiesSchema.optional(),
90
53
  email: z$1.string(),
91
54
  id: z$1.string(),
92
55
  name: z$1.string(),
@@ -122,14 +85,19 @@ const ListDataSchema = z$1.object({
122
85
  data: z$1.array(ListDataPointSchema).nullable(),
123
86
  label: z$1.string()
124
87
  });
88
+ const ChannelListsGroupSchema = z$1.object({
89
+ page: ListDataSchema,
90
+ source: ListDataSchema
91
+ });
125
92
  const ListsGroupSchema = z$1.object({
126
93
  country: ListDataSchema,
127
94
  device: ListDataSchema,
128
95
  page: ListDataSchema,
129
96
  source: ListDataSchema
130
97
  });
131
- const McpConnectorCreatorStructSchema = z$1.object({
98
+ const LovableCreatorSchema = z$1.object({
132
99
  name: z$1.string(),
100
+ type: z$1.enum(["lovable"]),
133
101
  url: z$1.string()
134
102
  });
135
103
  const PaginationSchema = z$1.object({
@@ -186,7 +154,6 @@ const CursorListResponsePublicV1ConnectorItemSchema = z$1.object({
186
154
  const PublicV1CreateProjectResponseSchema = z$1.object({
187
155
  description: z$1.string().optional(),
188
156
  display_name: z$1.string().optional(),
189
- embed_url: z$1.string().optional(),
190
157
  id: z$1.string().optional(),
191
158
  is_published: z$1.boolean().optional(),
192
159
  job_id: z$1.string().optional(),
@@ -194,6 +161,7 @@ const PublicV1CreateProjectResponseSchema = z$1.object({
194
161
  latest_screenshot_url: z$1.string().optional(),
195
162
  message_id: z$1.string().optional(),
196
163
  name: z$1.string().optional(),
164
+ preview_url: z$1.string().optional(),
197
165
  status: z$1.string().optional(),
198
166
  url: z$1.string().optional(),
199
167
  visibility: z$1.string().optional(),
@@ -210,6 +178,7 @@ const PublicV1GitFilesResponseSchema = z$1.object({
210
178
  ref: z$1.string()
211
179
  });
212
180
  const PublicV1PatchProjectBodySchema = z$1.object({
181
+ description: z$1.string().max(1e5).optional(),
213
182
  display_name: z$1.string().optional(),
214
183
  visibility: z$1.enum([
215
184
  "draft",
@@ -227,9 +196,9 @@ const PublicV1ProjectListItemSchema = z$1.object({
227
196
  description: z$1.string().optional(),
228
197
  display_name: z$1.string().optional(),
229
198
  folder_id: z$1.string().optional(),
199
+ generated_description: z$1.string().optional(),
230
200
  id: z$1.string(),
231
201
  is_published: z$1.boolean().optional(),
232
- is_template: z$1.boolean().optional(),
233
202
  last_edited_at: z$1.iso.datetime().optional(),
234
203
  latest_screenshot_url: z$1.string().optional(),
235
204
  name: z$1.string().optional(),
@@ -261,6 +230,38 @@ const PublicV1ProjectRemixInputBodySchema = z$1.object({
261
230
  source_project_id: z$1.string().min(1).regex(/.*\S.*/),
262
231
  workspace_id: z$1.string()
263
232
  });
233
+ const PublicV1PublishAudienceTargetSchema = z$1.object({
234
+ id: z$1.string().min(1),
235
+ type: z$1.enum(["group", "user"])
236
+ });
237
+ const PublicV1PublishProjectInputBodySchema = z$1.object({
238
+ audience: z$1.array(PublicV1PublishAudienceTargetSchema).max(100).nullish(),
239
+ name: z$1.string().optional(),
240
+ visibility: z$1.enum([
241
+ "public",
242
+ "workspace",
243
+ "custom"
244
+ ]).optional()
245
+ });
246
+ const PublicV1PublishProjectResponseSchema = z$1.object({
247
+ deployment_id: z$1.string().optional(),
248
+ status: z$1.string(),
249
+ url: z$1.string().optional(),
250
+ visibility: z$1.string()
251
+ });
252
+ const PublicV1PublishStatusResponseSchema = z$1.object({
253
+ deployment_id: z$1.string(),
254
+ error_class: z$1.string().optional(),
255
+ error_code: z$1.string().optional(),
256
+ error_message: z$1.string().optional(),
257
+ status: z$1.enum([
258
+ "running",
259
+ "completed",
260
+ "error",
261
+ "unknown"
262
+ ]),
263
+ url: z$1.string().optional()
264
+ });
264
265
  const PublicV1SetProjectKnowledgeInputBodySchema = z$1.object({
265
266
  content: z$1.string(),
266
267
  project_id: z$1.string()
@@ -269,6 +270,20 @@ const PublicV1SetProjectSkillEnabledInputBodySchema = z$1.object({
269
270
  enabled: z$1.boolean(),
270
271
  project_id: z$1.string()
271
272
  });
273
+ const PublicV1UpdatePublishSettingsInputBodySchema = z$1.object({
274
+ audience: z$1.array(PublicV1PublishAudienceTargetSchema).max(100).nullish(),
275
+ is_published: z$1.boolean().optional(),
276
+ visibility: z$1.enum([
277
+ "public",
278
+ "workspace",
279
+ "custom"
280
+ ]).optional()
281
+ });
282
+ const PublicV1UpdatePublishSettingsResponseSchema = z$1.object({
283
+ is_published: z$1.boolean(),
284
+ url: z$1.string().optional(),
285
+ visibility: z$1.string()
286
+ });
272
287
  const PublicV1WorkspaceSchema = z$1.object({
273
288
  created_at: z$1.iso.datetime().optional(),
274
289
  description: z$1.string().optional(),
@@ -281,15 +296,7 @@ const PublicV1WorkspaceSchema = z$1.object({
281
296
  });
282
297
  const PublicV1WorkspaceMemberSchema = z$1.object({
283
298
  joined_at: z$1.iso.datetime().optional(),
284
- role: z$1.enum([
285
- "none",
286
- "owner",
287
- "admin",
288
- "member",
289
- "viewer",
290
- "collaborator",
291
- "invited"
292
- ]),
299
+ role: z$1.string(),
293
300
  user_id: z$1.string()
294
301
  });
295
302
  const PublicV1GetWorkspaceBodySchema = z$1.object({
@@ -307,28 +314,22 @@ const PublicV1WorkspaceWithMembershipSchema = z$1.object({
307
314
  plan: z$1.string(),
308
315
  updated_at: z$1.iso.datetime().optional()
309
316
  });
317
+ const RemixJobFailureSchema = z$1.object({
318
+ code: z$1.string().optional(),
319
+ failed_step: z$1.string(),
320
+ message: z$1.string()
321
+ });
310
322
  const RemixJobStepInfoSchema = z$1.object({
323
+ failure: RemixJobFailureSchema.optional(),
311
324
  integration_name: z$1.string().optional(),
312
325
  status: z$1.string().optional(),
313
326
  step: z$1.string()
314
327
  });
315
- const SeamlessConnectorApiSchema = z$1.object({
316
- alias: z$1.string().optional(),
317
- categories: z$1.array(z$1.string()).nullable(),
318
- creator: CommonSeamlessConnectorCreatorSchema,
319
- description: z$1.string(),
320
- display_name: z$1.string(),
321
- documentation_url: z$1.string(),
322
- features: z$1.array(CommonSeamlessConnectorFeatureSchema).nullish(),
323
- id: z$1.string(),
324
- is_enabled_for_workspace: z$1.boolean(),
325
- level: z$1.string(),
326
- logo_id: z$1.string().optional(),
327
- manual_connect_hint: z$1.string().optional(),
328
- permissions: z$1.array(CommonSeamlessConnectorPermissionSchema).nullable(),
329
- searchTags: z$1.array(z$1.string()).nullish(),
330
- short_description: z$1.string(),
331
- toolIntegrationName: z$1.string().optional()
328
+ const RemixWarningSchema = z$1.object({
329
+ code: z$1.enum(["edge_functions_not_deployed", "integration_skipped"]),
330
+ failed_edge_functions: z$1.array(z$1.string()).nullish(),
331
+ reason: z$1.string().optional(),
332
+ skipped_integration: z$1.string().optional()
332
333
  });
333
334
  const SearchProjectItemSchema = z$1.object({
334
335
  abandoned_at: z$1.iso.datetime().optional(),
@@ -405,48 +406,6 @@ const StandardConnectorPromotionSchema = z$1.object({
405
406
  message: z$1.string(),
406
407
  until: z$1.iso.datetime()
407
408
  });
408
- const StandardConnectorApiSchema = z$1.object({
409
- can_be_managed: z$1.boolean(),
410
- can_restrict_to_admins: z$1.boolean(),
411
- categories: z$1.array(z$1.enum([
412
- "ecommerce",
413
- "marketing",
414
- "productivity",
415
- "sales",
416
- "support",
417
- "other",
418
- "messaging",
419
- "coming_soon",
420
- "development",
421
- "payments",
422
- "custom"
423
- ])),
424
- coming_soon: z$1.boolean().optional(),
425
- connection_scope: z$1.enum(["project", "workspace"]),
426
- creator: CreatorSchema,
427
- data_scope: z$1.enum(["organization", "individual"]),
428
- description: z$1.string(),
429
- display_name: z$1.string(),
430
- documentation_url: z$1.string(),
431
- features: z$1.array(FeatureDescriptionSchema).nullish(),
432
- has_connections: z$1.boolean(),
433
- id: z$1.string(),
434
- is_enabled_for_workspace: z$1.boolean(),
435
- is_new: z$1.boolean().optional(),
436
- logo_id: z$1.string(),
437
- promotion: StandardConnectorPromotionSchema.optional(),
438
- searchTags: z$1.array(z$1.string()),
439
- short_description: z$1.string(),
440
- single_connection: z$1.boolean().optional(),
441
- source: z$1.enum(["native", "user_defined"]).optional(),
442
- terms_url: z$1.string().optional(),
443
- vendor: z$1.enum([
444
- "google",
445
- "microsoft",
446
- "aws"
447
- ]).optional(),
448
- who_can_create: z$1.enum(["editors_and_admins", "admins_only"])
449
- });
450
409
  const TemplateProjectResponseSchema = z$1.object({
451
410
  description: z$1.string(),
452
411
  id: z$1.string(),
@@ -467,6 +426,17 @@ const TimeSeriesDataSchema = z$1.object({
467
426
  label: z$1.string(),
468
427
  total: z$1.number()
469
428
  });
429
+ const ChannelTimeSeriesGroupSchema = z$1.object({
430
+ bounceRate: TimeSeriesDataSchema,
431
+ pageviews: TimeSeriesDataSchema,
432
+ pageviewsPerVisit: TimeSeriesDataSchema,
433
+ sessionDuration: TimeSeriesDataSchema,
434
+ visitors: TimeSeriesDataSchema
435
+ });
436
+ const ChannelAnalyticsSchema = z$1.object({
437
+ lists: ChannelListsGroupSchema,
438
+ timeSeries: ChannelTimeSeriesGroupSchema
439
+ });
470
440
  const TimeSeriesGroupSchema = z$1.object({
471
441
  bounceRate: TimeSeriesDataSchema,
472
442
  pageviews: TimeSeriesDataSchema,
@@ -475,18 +445,76 @@ const TimeSeriesGroupSchema = z$1.object({
475
445
  visitors: TimeSeriesDataSchema
476
446
  });
477
447
  const ProjectAnalyticsResponseSchema = z$1.object({
448
+ channels: z$1.record(z$1.string(), ChannelAnalyticsSchema).optional(),
449
+ channelsSource: z$1.enum(["legacy", "user_app_events"]).optional(),
478
450
  lists: ListsGroupSchema,
479
451
  timeSeries: TimeSeriesGroupSchema
480
452
  });
481
453
  const ToolDisplayDataSchema = z$1.object({
454
+ default_preference: z$1.enum([
455
+ "never_ask",
456
+ "ask",
457
+ "disable"
458
+ ]).optional(),
482
459
  description: z$1.string(),
483
460
  input_schema: z$1.unknown().optional(),
484
- name: z$1.string()
461
+ name: z$1.string(),
462
+ title: z$1.string().optional()
463
+ });
464
+ const TrendDataPointSchema = z$1.object({
465
+ time: z$1.string(),
466
+ visits: z$1.number()
467
+ });
468
+ const ProjectTrendResponseSchema = z$1.object({
469
+ currentVisitors: z$1.number(),
470
+ data: z$1.array(TrendDataPointSchema).nullable()
471
+ });
472
+ const PublicV1ProjectAnalyticsBodySchema = z$1.object({
473
+ lists: ListsGroupSchema.optional(),
474
+ timeSeries: TimeSeriesGroupSchema.optional(),
475
+ trend: ProjectTrendResponseSchema.optional()
476
+ });
477
+ const UserCreatorSchema = z$1.object({
478
+ type: z$1.enum(["user"]),
479
+ user_id: z$1.string()
480
+ });
481
+ const CreatorSchema = z$1.discriminatedUnion("type", [
482
+ LovableCreatorSchema.extend({ type: z$1.literal("lovable") }),
483
+ UserCreatorSchema.extend({ type: z$1.literal("user") }),
484
+ CompanyCreatorSchema.extend({ type: z$1.literal("company") })
485
+ ]);
486
+ const AppUserConnectorApiSchema = z$1.object({
487
+ can_restrict_to_admins: z$1.boolean(),
488
+ categories: z$1.array(z$1.enum([
489
+ "ecommerce",
490
+ "marketing",
491
+ "productivity",
492
+ "sales",
493
+ "support",
494
+ "other",
495
+ "messaging",
496
+ "development",
497
+ "payments",
498
+ "security",
499
+ "custom"
500
+ ])),
501
+ creator: CreatorSchema,
502
+ display_name: z$1.string(),
503
+ documentation_url: z$1.string(),
504
+ has_clients: z$1.boolean(),
505
+ id: z$1.string(),
506
+ is_enabled_for_workspace: z$1.boolean(),
507
+ long_description: z$1.string(),
508
+ search_tags: z$1.array(z$1.string()),
509
+ short_description: z$1.string(),
510
+ terms_url: z$1.string().optional(),
511
+ who_can_create: z$1.enum(["editors_and_admins", "admins_only"])
485
512
  });
486
513
  const McpConnectorSchema = z$1.object({
487
514
  app_mcp_auth_method: z$1.string().optional(),
488
515
  app_mcp_project_id: z$1.string().optional(),
489
516
  app_mcp_server_id: z$1.string().optional(),
517
+ app_site_url: z$1.string().optional(),
490
518
  category: z$1.enum([
491
519
  "ecommerce",
492
520
  "marketing",
@@ -495,15 +523,15 @@ const McpConnectorSchema = z$1.object({
495
523
  "support",
496
524
  "other",
497
525
  "messaging",
498
- "coming_soon",
499
526
  "development",
500
527
  "payments",
528
+ "security",
501
529
  "custom"
502
530
  ]),
503
531
  connect_interaction: z$1.enum(["desktop_app_download"]).optional(),
504
532
  connection_id: z$1.string().optional(),
505
533
  connector_id: z$1.string().optional(),
506
- creator: McpConnectorCreatorStructSchema,
534
+ creator: CreatorSchema,
507
535
  custom_url_hint: z$1.string().optional(),
508
536
  display_name: z$1.string(),
509
537
  documentation_url: z$1.string().optional(),
@@ -530,13 +558,63 @@ const McpConnectorSchema = z$1.object({
530
558
  url: z$1.string().optional(),
531
559
  url_placeholder: z$1.string().optional()
532
560
  });
533
- const TrendDataPointSchema = z$1.object({
534
- time: z$1.string(),
535
- visits: z$1.number()
561
+ const SeamlessConnectorApiSchema = z$1.object({
562
+ alias: z$1.string().optional(),
563
+ categories: z$1.array(z$1.string()).nullable(),
564
+ creator: CreatorSchema,
565
+ description: z$1.string(),
566
+ display_name: z$1.string(),
567
+ documentation_url: z$1.string(),
568
+ features: z$1.array(CommonSeamlessConnectorFeatureSchema).nullish(),
569
+ id: z$1.string(),
570
+ is_enabled_for_workspace: z$1.boolean(),
571
+ level: z$1.string(),
572
+ manual_connect_hint: z$1.string().optional(),
573
+ permissions: z$1.array(CommonSeamlessConnectorPermissionSchema).nullable(),
574
+ searchTags: z$1.array(z$1.string()).nullish(),
575
+ short_description: z$1.string(),
576
+ toolIntegrationName: z$1.string().optional()
536
577
  });
537
- const ProjectTrendResponseSchema = z$1.object({
538
- currentVisitors: z$1.number(),
539
- data: z$1.array(TrendDataPointSchema).nullable()
578
+ const StandardConnectorApiSchema = z$1.object({
579
+ can_restrict_to_admins: z$1.boolean(),
580
+ categories: z$1.array(z$1.enum([
581
+ "ecommerce",
582
+ "marketing",
583
+ "productivity",
584
+ "sales",
585
+ "support",
586
+ "other",
587
+ "messaging",
588
+ "development",
589
+ "payments",
590
+ "security",
591
+ "custom"
592
+ ])),
593
+ connection_scope: z$1.enum(["project", "workspace"]),
594
+ creator: CreatorSchema,
595
+ data_scope: z$1.enum(["organization", "individual"]),
596
+ description: z$1.string(),
597
+ display_name: z$1.string(),
598
+ documentation_url: z$1.string(),
599
+ has_connections: z$1.boolean(),
600
+ has_metered_option: z$1.boolean().optional(),
601
+ id: z$1.string(),
602
+ is_enabled_for_workspace: z$1.boolean(),
603
+ is_new: z$1.boolean().optional(),
604
+ logo_url: z$1.string().optional(),
605
+ promotion: StandardConnectorPromotionSchema.optional(),
606
+ searchTags: z$1.array(z$1.string()),
607
+ short_description: z$1.string(),
608
+ single_connection: z$1.boolean().optional(),
609
+ source: z$1.enum(["native", "user_defined"]).optional(),
610
+ terms_url: z$1.string().optional(),
611
+ vendor: z$1.enum([
612
+ "google",
613
+ "microsoft",
614
+ "aws",
615
+ "meta"
616
+ ]).optional(),
617
+ who_can_create: z$1.enum(["editors_and_admins", "admins_only"])
540
618
  });
541
619
  const V1AddConnectorInputBodySchema = z$1.object({
542
620
  auth_type: z$1.enum(["none", "bearer_token"]),
@@ -573,18 +651,36 @@ const V1AiResponseSummarySchema = z$1.object({
573
651
  status: z$1.string(),
574
652
  summary: z$1.string().optional()
575
653
  });
654
+ const V1BillingCreditLimitRowSchema = z$1.object({
655
+ monthly_credit_limit: z$1.number().optional(),
656
+ user_id: z$1.string()
657
+ });
658
+ const V1BillingCreditLimitsBodySchema = z$1.object({
659
+ data: z$1.array(V1BillingCreditLimitRowSchema).nullable(),
660
+ default_monthly_credit_limit: z$1.number().optional(),
661
+ pagination: PaginationSchema
662
+ });
576
663
  const V1BillingPeriodSchema = z$1.object({
577
664
  end: z$1.iso.datetime(),
578
665
  start: z$1.iso.datetime()
579
666
  });
667
+ const V1BillingUsagePeriodSchema = z$1.object({
668
+ end: z$1.string(),
669
+ group_by: z$1.string().optional(),
670
+ interval: z$1.string().optional(),
671
+ start: z$1.string()
672
+ });
580
673
  const V1BulkMemberCreditLimitItemSchema = z$1.object({
674
+ email: z$1.string().optional(),
581
675
  monthly_credit_limit: z$1.number().gte(0).nullable(),
582
- user_id: z$1.string()
676
+ user_id: z$1.string().optional()
583
677
  });
678
+ const V1BillingBulkSetMemberCreditLimitInputBodySchema = z$1.object({ members: z$1.array(V1BulkMemberCreditLimitItemSchema).min(1).max(1e3) });
584
679
  const V1BulkMemberCreditLimitResultSchema = z$1.object({
680
+ email: z$1.string().optional(),
585
681
  error: z$1.string().optional(),
586
682
  status: z$1.string(),
587
- user_id: z$1.string()
683
+ user_id: z$1.string().optional()
588
684
  });
589
685
  const V1BulkSetMemberCreditLimitInputBodySchema = z$1.object({
590
686
  members: z$1.array(V1BulkMemberCreditLimitItemSchema).min(1).max(50),
@@ -622,17 +718,17 @@ const V1CreateProjectResponseSchema = z$1.object({
622
718
  created_at: z$1.iso.datetime().optional(),
623
719
  description: z$1.string().optional(),
624
720
  display_name: z$1.string().optional(),
625
- embed_url: z$1.string().optional(),
626
721
  folder_id: z$1.string().optional(),
722
+ generated_description: z$1.string().optional(),
627
723
  id: z$1.string(),
628
724
  is_published: z$1.boolean().optional(),
629
- is_template: z$1.boolean().optional(),
630
725
  last_edited_at: z$1.iso.datetime().optional(),
631
726
  latest_commit_sha: z$1.string().optional(),
632
727
  latest_screenshot_url: z$1.string().optional(),
633
728
  message_id: z$1.string().optional(),
634
729
  name: z$1.string().optional(),
635
730
  og_image_url: z$1.string().optional(),
731
+ preview_url: z$1.string().optional(),
636
732
  project_type: z$1.string().optional(),
637
733
  publish_visibility: z$1.string().optional(),
638
734
  status: z$1.string().optional(),
@@ -699,17 +795,18 @@ const V1EditSummarySchema = z$1.object({
699
795
  status: z$1.string(),
700
796
  type: z$1.string()
701
797
  });
702
- const PublicV1GetEditsOutputBodySchema = z$1.object({
798
+ const CursorListResponseV1EditSummarySchema = z$1.object({
703
799
  data: z$1.array(V1EditSummarySchema).nullable(),
704
- edits: z$1.array(V1EditSummarySchema).nullable(),
705
- has_more: z$1.boolean(),
706
800
  pagination: PaginationSchema
707
801
  });
708
802
  const V1EnableDatabaseOutputBodySchema = z$1.object({
709
803
  enabled: z$1.boolean(),
710
804
  stack: z$1.string()
711
805
  });
712
- const V1EphemeralFileUploadUrlInputBodySchema = z$1.object({ content_type: z$1.string().optional() });
806
+ const V1EphemeralFileUploadUrlInputBodySchema = z$1.object({
807
+ content_type: z$1.string().optional(),
808
+ workspace_id: z$1.string().optional()
809
+ });
713
810
  const V1FileUploadUrlOutputBodySchema = z$1.object({
714
811
  file_id: z$1.string(),
715
812
  headers: z$1.record(z$1.string(), z$1.string()).optional(),
@@ -766,6 +863,22 @@ const V1ListWorkspacesBodySchema = z$1.object({
766
863
  data: z$1.array(PublicV1WorkspaceWithMembershipSchema).nullable(),
767
864
  pagination: PaginationSchema
768
865
  });
866
+ const V1MessageExportStatusSchema = z$1.object({
867
+ archive_size_bytes: z$1.number().optional(),
868
+ completed_at: z$1.iso.datetime().optional(),
869
+ created_at: z$1.iso.datetime(),
870
+ download_url: z$1.string().optional(),
871
+ expires_at: z$1.iso.datetime().optional(),
872
+ export_id: z$1.string(),
873
+ message_count: z$1.number().optional(),
874
+ project_count: z$1.number().optional(),
875
+ status: z$1.enum([
876
+ "running",
877
+ "completed",
878
+ "failed",
879
+ "expired"
880
+ ])
881
+ });
769
882
  const V1MessageListItemSchema = z$1.object({
770
883
  content: z$1.string(),
771
884
  created_at: z$1.string(),
@@ -799,6 +912,54 @@ const V1MessageResponseSchema = z$1.object({
799
912
  summary: z$1.string().optional()
800
913
  });
801
914
  const V1MoveProjectsToFolderInputBodySchema = z$1.object({ project_ids: z$1.array(z$1.string()).min(1).max(30).nullable() });
915
+ const V1ProjectCloudDiskSchema = z$1.object({
916
+ size_bytes: z$1.number(),
917
+ timestamp: z$1.iso.datetime(),
918
+ used_bytes: z$1.number()
919
+ });
920
+ const V1ProjectCloudResourceSignalSchema = z$1.object({
921
+ alert_hours: z$1.number(),
922
+ label: z$1.string(),
923
+ latest_alert_at: z$1.iso.datetime().optional(),
924
+ latest_value: z$1.number().optional(),
925
+ resource_type: z$1.string()
926
+ });
927
+ const V1ProjectCloudResourcePressureSchema = z$1.object({
928
+ resources: z$1.array(V1ProjectCloudResourceSignalSchema).nullable(),
929
+ window_hours: z$1.number()
930
+ });
931
+ const V1ProjectCloudBodySchema = z$1.object({
932
+ disk: V1ProjectCloudDiskSchema.optional(),
933
+ environment: z$1.string(),
934
+ instance_tier: z$1.enum([
935
+ "xs",
936
+ "s",
937
+ "m",
938
+ "ml",
939
+ "l",
940
+ "xl",
941
+ "xxl"
942
+ ]),
943
+ instance_tier_label: z$1.string(),
944
+ pause_reason: z$1.string().optional(),
945
+ postgres_version: z$1.string().optional(),
946
+ region: z$1.string().optional(),
947
+ resource_pressure: V1ProjectCloudResourcePressureSchema.optional(),
948
+ status: z$1.enum([
949
+ "OK",
950
+ "RESIZING",
951
+ "UPGRADING",
952
+ "RESTARTING",
953
+ "COMING_UP",
954
+ "RESTORING",
955
+ "UNHEALTHY",
956
+ "INACTIVE",
957
+ "PAUSING",
958
+ "UNKNOWN",
959
+ ""
960
+ ]).optional(),
961
+ user_paused: z$1.boolean()
962
+ });
802
963
  const V1ProjectCollaboratorSchema = z$1.object({
803
964
  accepted_at: z$1.iso.datetime().optional(),
804
965
  access_level: z$1.enum([
@@ -831,16 +992,16 @@ const V1ProjectResponseSchema = z$1.object({
831
992
  created_at: z$1.iso.datetime().optional(),
832
993
  description: z$1.string().optional(),
833
994
  display_name: z$1.string().optional(),
834
- embed_url: z$1.string().optional(),
835
995
  folder_id: z$1.string().optional(),
996
+ generated_description: z$1.string().optional(),
836
997
  id: z$1.string(),
837
998
  is_published: z$1.boolean().optional(),
838
- is_template: z$1.boolean().optional(),
839
999
  last_edited_at: z$1.iso.datetime().optional(),
840
1000
  latest_commit_sha: z$1.string().optional(),
841
1001
  latest_screenshot_url: z$1.string().optional(),
842
1002
  name: z$1.string().optional(),
843
1003
  og_image_url: z$1.string().optional(),
1004
+ preview_url: z$1.string().optional(),
844
1005
  project_type: z$1.string().optional(),
845
1006
  publish_visibility: z$1.string().optional(),
846
1007
  status: z$1.string().optional(),
@@ -879,7 +1040,10 @@ const V1RemixInitInputBodySchema = z$1.object({
879
1040
  workspace_id: z$1.string()
880
1041
  });
881
1042
  const V1RemixInitOutputBodySchema = z$1.object({ job_id: z$1.string() });
882
- const V1RemixProgressResultSchema = z$1.object({ project_id: z$1.string() });
1043
+ const V1RemixProgressResultSchema = z$1.object({
1044
+ project_id: z$1.string(),
1045
+ warnings: z$1.array(RemixWarningSchema).nullish()
1046
+ });
883
1047
  const V1RemixProgressOutputBodySchema = z$1.object({
884
1048
  error_code: z$1.string().optional(),
885
1049
  error_message: z$1.string().optional(),
@@ -890,7 +1054,6 @@ const V1RemixProgressOutputBodySchema = z$1.object({
890
1054
  const V1RemoveConnectorOutputBodySchema = z$1.object({ success: z$1.boolean() });
891
1055
  const V1SecurityFindingSchema = z$1.object({
892
1056
  category: z$1.string().optional(),
893
- connector_id: z$1.string().optional(),
894
1057
  created_at: z$1.iso.datetime(),
895
1058
  description: z$1.string().optional(),
896
1059
  details: z$1.string().optional(),
@@ -906,6 +1069,12 @@ const V1SecurityFindingSchema = z$1.object({
906
1069
  status: z$1.string(),
907
1070
  updated_at: z$1.iso.datetime()
908
1071
  });
1072
+ const V1SecurityScanActorSchema = z$1.object({
1073
+ email: z$1.string().optional(),
1074
+ id: z$1.string().optional(),
1075
+ name: z$1.string().optional(),
1076
+ type: z$1.string()
1077
+ });
909
1078
  const V1SecurityScanSummarySchema = z$1.object({
910
1079
  commit_sha: z$1.string().optional(),
911
1080
  finished_at: z$1.iso.datetime().optional(),
@@ -914,7 +1083,7 @@ const V1SecurityScanSummarySchema = z$1.object({
914
1083
  started_at: z$1.iso.datetime(),
915
1084
  status: z$1.string(),
916
1085
  trigger_source: z$1.string(),
917
- triggered_by: z$1.string().optional()
1086
+ triggered_by: V1SecurityScanActorSchema
918
1087
  });
919
1088
  const CursorListResponseV1SecurityScanSummarySchema = z$1.object({
920
1089
  data: z$1.array(V1SecurityScanSummarySchema).nullable(),
@@ -936,6 +1105,7 @@ const V1GetSecurityScanOutputBodySchema = z$1.object({
936
1105
  });
937
1106
  const V1SelectedLibrarySchema = z$1.object({ project_id: z$1.string() });
938
1107
  const V1SendMessageOutputBodySchema = z$1.object({
1108
+ agent_version: z$1.string().optional(),
939
1109
  message_id: z$1.string(),
940
1110
  status: z$1.string(),
941
1111
  thread_id: z$1.string()
@@ -953,6 +1123,16 @@ const V1SetProjectVisibilityInputBodySchema = z$1.object({ visibility: z$1.enum(
953
1123
  ]) });
954
1124
  const V1SetProjectVisibilityOutputBodySchema = z$1.object({ visibility: z$1.string() });
955
1125
  const V1SetWorkspaceKnowledgeInputBodySchema = z$1.object({ content: z$1.string() });
1126
+ const V1StartMessageExportInputBodySchema = z$1.object({
1127
+ end_date: z$1.string().optional(),
1128
+ project_id: z$1.string().optional(),
1129
+ start_date: z$1.string().optional(),
1130
+ user_id: z$1.string().optional()
1131
+ });
1132
+ const V1StartMessageExportOutputBodySchema = z$1.object({
1133
+ export_id: z$1.string(),
1134
+ status: z$1.enum(["running"])
1135
+ });
956
1136
  const V1TriggerSecurityScanInputBodySchema = z$1.object({ project_id: z$1.string() });
957
1137
  const V1TriggerSecurityScanResponseBodySchema = z$1.object({
958
1138
  message: z$1.string().optional(),
@@ -977,7 +1157,12 @@ const PublicV1ProjectCreateInputBodySchema = z$1.object({
977
1157
  source_project_id: z$1.string().regex(/^\s*$/).nullish(),
978
1158
  tech_stack: z$1.string().optional(),
979
1159
  template_project_id: z$1.string().optional(),
980
- visibility: z$1.string().optional(),
1160
+ visibility: z$1.enum([
1161
+ "draft",
1162
+ "private",
1163
+ "public",
1164
+ "workspace_view"
1165
+ ]).optional(),
981
1166
  workspace_id: z$1.string()
982
1167
  });
983
1168
  const PublicV1SendMessageInputBodySchema = z$1.object({
@@ -988,10 +1173,10 @@ const PublicV1SendMessageInputBodySchema = z$1.object({
988
1173
  ]).optional(),
989
1174
  ephemeral_files: z$1.array(V1UnscopedFileSchema).nullish(),
990
1175
  files: z$1.array(V1UnscopedFileSchema).nullish(),
1176
+ max_iterations: z$1.coerce.number().gte(1).lte(50).optional(),
991
1177
  message: z$1.string().min(1).max(1e5),
992
1178
  plan_mode: z$1.boolean().optional(),
993
- project_id: z$1.string(),
994
- variant_id: z$1.string().optional()
1179
+ project_id: z$1.string()
995
1180
  });
996
1181
  const V1CreateProjectInputBodySchema = z$1.object({
997
1182
  description: z$1.string().min(1),
@@ -1004,7 +1189,12 @@ const V1CreateProjectInputBodySchema = z$1.object({
1004
1189
  selected_libraries: z$1.array(V1SelectedLibrarySchema).nullish(),
1005
1190
  tech_stack: z$1.string().optional(),
1006
1191
  template_project_id: z$1.string().optional(),
1007
- visibility: z$1.string().optional()
1192
+ visibility: z$1.enum([
1193
+ "draft",
1194
+ "private",
1195
+ "public",
1196
+ "workspace_view"
1197
+ ]).optional()
1008
1198
  });
1009
1199
  const V1SendMessageInputBodySchema = z$1.object({
1010
1200
  continuation: z$1.enum([
@@ -1014,9 +1204,9 @@ const V1SendMessageInputBodySchema = z$1.object({
1014
1204
  ]).optional(),
1015
1205
  ephemeral_files: z$1.array(V1UnscopedFileSchema).nullish(),
1016
1206
  files: z$1.array(V1UnscopedFileSchema).nullish(),
1207
+ max_iterations: z$1.coerce.number().gte(1).lte(50).optional(),
1017
1208
  message: z$1.string().min(1).max(1e5),
1018
- plan_mode: z$1.boolean().optional(),
1019
- variant_id: z$1.string().optional()
1209
+ plan_mode: z$1.boolean().optional()
1020
1210
  });
1021
1211
  const V1UpdateMemberCreditLimitInputBodySchema = z$1.object({
1022
1212
  monthly_credit_limit: z$1.number().gte(0).nullish(),
@@ -1026,6 +1216,7 @@ const V1UpdateWorkspaceSettingsInputBodySchema = z$1.object({
1026
1216
  default_monthly_member_credit_limit: z$1.number().gte(0).nullish(),
1027
1217
  workspace_id: z$1.string()
1028
1218
  });
1219
+ const V1UpdateWorkspaceSettingsNestedInputBodySchema = z$1.object({ default_monthly_member_credit_limit: z$1.number().gte(0).nullish() });
1029
1220
  const V1UsagePeriodSchema = z$1.object({
1030
1221
  end: z$1.string(),
1031
1222
  granularity: z$1.string().optional(),
@@ -1033,9 +1224,11 @@ const V1UsagePeriodSchema = z$1.object({
1033
1224
  });
1034
1225
  const V1WorkspaceAuditLogEntrySchema = z$1.object({
1035
1226
  action: z$1.string(),
1227
+ action_description: z$1.string(),
1036
1228
  actor_display_name: z$1.string().optional(),
1037
1229
  actor_id: z$1.string(),
1038
1230
  actor_type: z$1.string().optional(),
1231
+ client_platform: z$1.string().optional(),
1039
1232
  details: z$1.record(z$1.string(), z$1.unknown()).optional(),
1040
1233
  id: z$1.string(),
1041
1234
  ip_address: z$1.string().optional(),
@@ -1079,26 +1272,12 @@ const V1WorkspaceCreditsBodySchema = z$1.object({
1079
1272
  total_granted: z$1.number(),
1080
1273
  total_remaining: z$1.number()
1081
1274
  });
1082
- const V1WorkspaceMemberSchema = z$1.object({
1083
- display_name: z$1.string().optional(),
1084
- email: z$1.string().optional(),
1085
- invited_at: z$1.iso.datetime().optional(),
1086
- joined_at: z$1.iso.datetime().optional(),
1087
- monthly_credit_limit: z$1.number().optional(),
1088
- role: z$1.string(),
1089
- user_id: z$1.string(),
1090
- workspace_id: z$1.string()
1091
- });
1092
- const CursorListResponseV1WorkspaceMemberSchema = z$1.object({
1093
- data: z$1.array(V1WorkspaceMemberSchema).nullable(),
1094
- pagination: PaginationSchema
1095
- });
1096
- const V1WorkspaceSecurityActivityFreshnessSchema = z$1.object({
1275
+ const V1WorkspaceInsightsActivityFreshnessSchema = z$1.object({
1097
1276
  edits_as_of: z$1.iso.datetime().optional(),
1098
1277
  visitors_as_of: z$1.iso.datetime().optional()
1099
1278
  });
1100
- const V1WorkspaceSecurityEdgeFunctionSchema = z$1.object({ name: z$1.string() });
1101
- const V1WorkspaceSecurityFindingSchema = z$1.object({
1279
+ const V1WorkspaceInsightsEdgeFunctionSchema = z$1.object({ name: z$1.string() });
1280
+ const V1WorkspaceInsightsFindingSchema = z$1.object({
1102
1281
  category: z$1.string(),
1103
1282
  description: z$1.string(),
1104
1283
  id: z$1.string(),
@@ -1106,8 +1285,8 @@ const V1WorkspaceSecurityFindingSchema = z$1.object({
1106
1285
  severity: z$1.string(),
1107
1286
  title: z$1.string()
1108
1287
  });
1109
- const V1WorkspaceSecurityOwnerSchema = z$1.object({ display_name: z$1.string().optional() });
1110
- const V1WorkspaceSecurityReasonValuesSchema = z$1.object({
1288
+ const V1WorkspaceInsightsOwnerSchema = z$1.object({ display_name: z$1.string().optional() });
1289
+ const V1WorkspaceInsightsReasonValuesSchema = z$1.object({
1111
1290
  connector_count: z$1.number().optional(),
1112
1291
  edge_function_count: z$1.number().optional(),
1113
1292
  error_count: z$1.number().optional(),
@@ -1117,20 +1296,20 @@ const V1WorkspaceSecurityReasonValuesSchema = z$1.object({
1117
1296
  shared_user_count: z$1.number().optional(),
1118
1297
  warning_count: z$1.number().optional()
1119
1298
  });
1120
- const V1WorkspaceSecurityReasonSchema = z$1.object({
1299
+ const V1WorkspaceInsightsReasonSchema = z$1.object({
1121
1300
  category: z$1.string(),
1122
1301
  detail: z$1.string(),
1123
1302
  id: z$1.string(),
1124
1303
  label: z$1.string(),
1125
1304
  severity: z$1.string(),
1126
- values: V1WorkspaceSecurityReasonValuesSchema.optional()
1305
+ values: V1WorkspaceInsightsReasonValuesSchema.optional()
1127
1306
  });
1128
- const V1WorkspaceSecurityReviewPrioritySchema = z$1.object({
1307
+ const V1WorkspaceInsightsReviewPrioritySchema = z$1.object({
1129
1308
  needs_review: z$1.number(),
1130
1309
  no_review_needed: z$1.number(),
1131
1310
  review_recommended: z$1.number()
1132
1311
  });
1133
- const V1WorkspaceSecuritySignalsSchema = z$1.object({
1312
+ const V1WorkspaceInsightsSignalsSchema = z$1.object({
1134
1313
  chat_attachment_count: z$1.number(),
1135
1314
  connector_count: z$1.number(),
1136
1315
  edge_function_count: z$1.number(),
@@ -1161,12 +1340,12 @@ const V1WorkspaceSecuritySignalsSchema = z$1.object({
1161
1340
  supply_chain_warning_count: z$1.number(),
1162
1341
  warning_count: z$1.number()
1163
1342
  });
1164
- const V1WorkspaceSecurityProjectSchema = z$1.object({
1343
+ const V1WorkspaceInsightsProjectSchema = z$1.object({
1165
1344
  activity_group: z$1.string().optional(),
1166
1345
  connectors: z$1.array(z$1.string()).nullish(),
1167
1346
  description: z$1.string().optional(),
1168
1347
  display_name: z$1.string().optional(),
1169
- edge_functions: z$1.array(V1WorkspaceSecurityEdgeFunctionSchema).nullish(),
1348
+ edge_functions: z$1.array(V1WorkspaceInsightsEdgeFunctionSchema).nullish(),
1170
1349
  edit_count: z$1.number(),
1171
1350
  edits_24h: z$1.number(),
1172
1351
  edits_30d: z$1.number(),
@@ -1176,44 +1355,58 @@ const V1WorkspaceSecurityProjectSchema = z$1.object({
1176
1355
  is_published: z$1.boolean().optional(),
1177
1356
  last_edited_at: z$1.iso.datetime().optional(),
1178
1357
  last_security_scan_at: z$1.iso.datetime().optional(),
1179
- matched_reason: V1WorkspaceSecurityReasonSchema.optional(),
1358
+ matched_reason: V1WorkspaceInsightsReasonSchema.optional(),
1180
1359
  message_count: z$1.number(),
1181
1360
  name: z$1.string().optional(),
1182
1361
  og_image_url: z$1.string().optional(),
1183
- owner: V1WorkspaceSecurityOwnerSchema.optional(),
1362
+ owner: V1WorkspaceInsightsOwnerSchema.optional(),
1184
1363
  publish_visibility: z$1.string().optional(),
1185
1364
  review_priority: z$1.string().optional(),
1186
- review_priority_explanation: z$1.array(V1WorkspaceSecurityReasonSchema).nullable(),
1187
- signals: V1WorkspaceSecuritySignalsSchema,
1365
+ review_priority_explanation: z$1.array(V1WorkspaceInsightsReasonSchema).nullable(),
1366
+ signals: V1WorkspaceInsightsSignalsSchema,
1188
1367
  url: z$1.string().optional(),
1189
1368
  visibility: z$1.string().optional(),
1190
1369
  visitors_24h: z$1.number(),
1191
1370
  visitors_30d: z$1.number(),
1192
1371
  visitors_7d: z$1.number()
1193
1372
  });
1194
- const V1WorkspaceSecurityProjectsBodySchema = z$1.object({
1195
- activity_as_of: V1WorkspaceSecurityActivityFreshnessSchema.optional(),
1196
- applied_finding: V1WorkspaceSecurityFindingSchema.optional(),
1373
+ const V1WorkspaceInsightsProjectsBodySchema = z$1.object({
1374
+ activity_as_of: V1WorkspaceInsightsActivityFreshnessSchema.optional(),
1375
+ applied_finding: V1WorkspaceInsightsFindingSchema.optional(),
1197
1376
  as_of: z$1.iso.datetime().optional(),
1198
- data: z$1.array(V1WorkspaceSecurityProjectSchema).nullable(),
1377
+ data: z$1.array(V1WorkspaceInsightsProjectSchema).nullable(),
1199
1378
  pagination: PaginationSchema,
1200
1379
  total: z$1.number()
1201
1380
  });
1202
- const V1WorkspaceSecurityStatSchema = z$1.object({
1381
+ const V1WorkspaceInsightsStatSchema = z$1.object({
1203
1382
  delta_30d: z$1.number(),
1204
1383
  delta_window: z$1.string(),
1205
1384
  value: z$1.number()
1206
1385
  });
1207
- const V1WorkspaceSecuritySummarySchema = z$1.object({
1208
- externally_published: V1WorkspaceSecurityStatSchema,
1209
- risk: V1WorkspaceSecurityReviewPrioritySchema,
1210
- total_projects: V1WorkspaceSecurityStatSchema,
1211
- workspace_members: V1WorkspaceSecurityStatSchema
1386
+ const V1WorkspaceInsightsSummarySchema = z$1.object({
1387
+ externally_published: V1WorkspaceInsightsStatSchema,
1388
+ risk: V1WorkspaceInsightsReviewPrioritySchema,
1389
+ total_projects: V1WorkspaceInsightsStatSchema,
1390
+ workspace_members: V1WorkspaceInsightsStatSchema
1212
1391
  });
1213
- const V1WorkspaceSecurityDashboardBodySchema = z$1.object({
1392
+ const V1WorkspaceInsightsBodySchema = z$1.object({
1214
1393
  as_of: z$1.iso.datetime().optional(),
1215
- findings: z$1.array(V1WorkspaceSecurityFindingSchema).nullable(),
1216
- summary: V1WorkspaceSecuritySummarySchema
1394
+ findings: z$1.array(V1WorkspaceInsightsFindingSchema).nullable(),
1395
+ summary: V1WorkspaceInsightsSummarySchema
1396
+ });
1397
+ const V1WorkspaceMemberSchema = z$1.object({
1398
+ display_name: z$1.string().optional(),
1399
+ email: z$1.string().optional(),
1400
+ invited_at: z$1.iso.datetime().optional(),
1401
+ joined_at: z$1.iso.datetime().optional(),
1402
+ monthly_credit_limit: z$1.number().optional(),
1403
+ role: z$1.string(),
1404
+ user_id: z$1.string(),
1405
+ workspace_id: z$1.string()
1406
+ });
1407
+ const CursorListResponseV1WorkspaceMemberSchema = z$1.object({
1408
+ data: z$1.array(V1WorkspaceMemberSchema).nullable(),
1409
+ pagination: PaginationSchema
1217
1410
  });
1218
1411
  const V1WorkspaceSettingsBodySchema = z$1.object({
1219
1412
  billing_period_end_date: z$1.iso.datetime().optional(),
@@ -1256,6 +1449,11 @@ const V1WorkspaceUsageBreakdownBodySchema = z$1.object({
1256
1449
  member_count: z$1.number(),
1257
1450
  pagination: PaginationSchema
1258
1451
  });
1452
+ const V1WorkspaceUsageConnectorBreakdownSchema = z$1.object({
1453
+ credits: z$1.number(),
1454
+ key: z$1.string(),
1455
+ label: z$1.string()
1456
+ });
1259
1457
  const V1WorkspaceUsageDatabaseBreakdownSchema = z$1.object({
1260
1458
  credits: z$1.number(),
1261
1459
  key: z$1.enum(["database_server", "database_storage"]),
@@ -1266,12 +1464,41 @@ const V1WorkspaceUsageGatewayModelSchema = z$1.object({
1266
1464
  name: z$1.string(),
1267
1465
  provider: z$1.string()
1268
1466
  });
1467
+ const V1BillingUsageRowSchema = z$1.object({
1468
+ build: z$1.number(),
1469
+ connectors: z$1.number(),
1470
+ connectors_breakdown: z$1.array(V1WorkspaceUsageConnectorBreakdownSchema).nullish(),
1471
+ database: z$1.number(),
1472
+ database_breakdown: z$1.array(V1WorkspaceUsageDatabaseBreakdownSchema).nullish(),
1473
+ display_name: z$1.string().optional(),
1474
+ email: z$1.string().optional(),
1475
+ functions: z$1.number(),
1476
+ gateway: z$1.number(),
1477
+ gateway_models: z$1.array(V1WorkspaceUsageGatewayModelSchema).nullish(),
1478
+ network: z$1.number(),
1479
+ period_end: z$1.string().optional(),
1480
+ period_start: z$1.string().optional(),
1481
+ project_id: z$1.string().optional(),
1482
+ realtime: z$1.number(),
1483
+ run: z$1.number(),
1484
+ storage: z$1.number(),
1485
+ total: z$1.number(),
1486
+ user_id: z$1.string().optional()
1487
+ });
1488
+ const V1BillingUsageBodySchema = z$1.object({
1489
+ data: z$1.array(V1BillingUsageRowSchema).nullable(),
1490
+ entity_count: z$1.number().optional(),
1491
+ pagination: PaginationSchema,
1492
+ period: V1BillingUsagePeriodSchema,
1493
+ workspace_total: z$1.number()
1494
+ });
1269
1495
  const V1WorkspaceUsageMeBodySchema = z$1.object({
1270
1496
  credits_used: z$1.number(),
1271
1497
  monthly_credit_limit: z$1.number().optional()
1272
1498
  });
1273
1499
  const V1WorkspaceUsageProjectRowSchema = z$1.object({
1274
1500
  build: z$1.number(),
1501
+ connectors: z$1.number(),
1275
1502
  database: z$1.number(),
1276
1503
  functions: z$1.number(),
1277
1504
  gateway: z$1.number(),
@@ -1291,6 +1518,8 @@ const V1WorkspaceUsageProjectsBodySchema = z$1.object({
1291
1518
  });
1292
1519
  const V1WorkspaceUsageTimeseriesBucketSchema = z$1.object({
1293
1520
  build: z$1.number(),
1521
+ connectors: z$1.number(),
1522
+ connectors_breakdown: z$1.array(V1WorkspaceUsageConnectorBreakdownSchema).nullable(),
1294
1523
  database: z$1.number(),
1295
1524
  database_breakdown: z$1.array(V1WorkspaceUsageDatabaseBreakdownSchema).nullable(),
1296
1525
  functions: z$1.number(),
@@ -1337,6 +1566,7 @@ const AddProjectsToFolderResultSchema = z$1.object({
1337
1566
  total_requested: z$1.number(),
1338
1567
  visibility_updated: z$1.array(VisibilityChangeInfoSchema).nullable()
1339
1568
  });
1569
+ const WorkspaceAnalyticsResponseSchema = z$1.object({ timeSeries: TimeSeriesGroupSchema });
1340
1570
  //#endregion
1341
1571
  //#region src/schemas.ts
1342
1572
  /** @deprecated Renamed to CursorListResponsePublicV1ProjectListItemSchema. */
@@ -1354,6 +1584,6 @@ const WorkspaceWithMembershipSchema = PublicV1WorkspaceWithMembershipSchema;
1354
1584
  const V1DatabaseQueryOutputBodySchema = z.object({ rows: z.array(z.record(z.string(), z.unknown())).nullable() });
1355
1585
  const V1DatabaseQueryOutputBodyWritableSchema = z.object({ rows: z.array(z.record(z.string(), z.unknown())).nullable() });
1356
1586
  //#endregion
1357
- export { AddProjectsToFolderResultSchema, AppUserConnectorApiSchema, CommonSeamlessConnectorCreatorSchema, CommonSeamlessConnectorFeatureSchema, CommonSeamlessConnectorPermissionSchema, CreatorSchema, CursorListResponseProjectPiiFindingDtoSchema, CursorListResponsePublicV1ConnectorItemSchema, CursorListResponsePublicV1ProjectListItemSchema, CursorListResponseSearchProjectItemSchema, CursorListResponseV1MessageListItemSchema, CursorListResponseV1ProjectCollaboratorSchema, CursorListResponseV1ProjectSkillDtoSchema, CursorListResponseV1SecurityScanSummarySchema, CursorListResponseV1WorkspaceMemberSchema, DiffHunkSchema, DiffLineSchema, ErrorDetailSchema, ErrorModelSchema, FeatureDescriptionSchema, GetAvailableLibraryProjectsPublicV1OutputBodySchema, GetAvailableTemplateProjectsPublicV1OutputBodySchema, GetMeCapabilitiesSchema, GetMeOutputBodySchema, GetMeWorkspaceSchema, GetUserWorkspaceBodySchema, GitFileEntryLiteSchema, GitFileEntrySchema, LibraryProjectResponseSchema, ListDataPointSchema, ListDataSchema, ListsGroupSchema, McpConnectorCreatorStructSchema, McpConnectorSchema, PaginationSchema, ProjectAnalyticsResponseSchema, ProjectFileInfoSchema, ProjectPiiFindingDtoSchema, ProjectTrendResponseSchema, PublicV1ConnectorItemSchema, PublicV1CreateProjectResponseSchema, PublicV1DeployProjectInputBodySchema, PublicV1EnableDatabaseInputBodySchema, PublicV1GetEditsOutputBodySchema, PublicV1GetWorkspaceBodySchema, PublicV1GitFilesResponseSchema, PublicV1PatchProjectBodySchema, PublicV1ProjectCreateInputBodySchema, PublicV1ProjectFileUploadUrlInputBodySchema, PublicV1ProjectListItemSchema, PublicV1ProjectRemixInputBodySchema, PublicV1SendMessageInputBodySchema, PublicV1SetProjectKnowledgeInputBodySchema, PublicV1SetProjectSkillEnabledInputBodySchema, PublicV1WorkspaceMemberSchema, PublicV1WorkspaceSchema, PublicV1WorkspaceWithMembershipSchema, RemixJobStepInfoSchema, SeamlessConnectorApiSchema, SearchProjectItemSchema, SearchWorkspaceProjectsResponseSchema, SkippedProjectInfoSchema, StandardConnectorApiSchema, StandardConnectorPromotionSchema, TemplateProjectResponseSchema, TimeSeriesDataPointSchema, TimeSeriesDataSchema, TimeSeriesGroupSchema, ToolDisplayDataSchema, TrendDataPointSchema, V1AddConnectorInputBodySchema, V1AiResponseSummarySchema, V1AvailableConnectorEntrySchema, V1AwaitingInputSummarySchema, V1BillingPeriodSchema, V1BulkMemberCreditLimitItemSchema, V1BulkMemberCreditLimitResultSchema, V1BulkSetMemberCreditLimitInputBodySchema, V1BulkSetMemberCreditLimitOutputBodySchema, V1ConnectionItemSchema, V1ConnectorResponseSchema, V1CreateEmbedUrlInputBodySchema, V1CreateEmbedUrlOutputBodySchema, V1CreateProjectInputBodySchema, V1CreateProjectResponseSchema, V1CreateVariantInputBodySchema, V1CreateVariantOutputBodySchema, V1CreditHistoryEntrySchema, V1DatabaseQueryOutputBodySchema, V1DatabaseQueryOutputBodyWritableSchema, V1DeleteWorkspaceSkillOutputBodySchema, V1DeployProjectInputBodySchema, V1DeployProjectOutputBodySchema, V1DiffEntrySchema, V1DiffResponseSchema, V1EditSummarySchema, V1EnableDatabaseOutputBodySchema, V1EphemeralFileUploadUrlInputBodySchema, V1FileUploadUrlOutputBodySchema, V1GetDatabaseStatusOutputBodySchema, V1GetEditsOutputBodySchema, V1GetSecurityScanOutputBodySchema, V1GetWorkspaceSkillOutputBodySchema, V1KnowledgeResponseSchema, V1ListAppUserConnectorsResponseSchema, V1ListAvailableConnectorsOutputBodySchema, V1ListConnectionsResponseSchema, V1ListConnectorsOutputBodySchema, V1ListMcpConnectorsResponseSchema, V1ListMessagesOutputBodySchema, V1ListProjectSkillsOutputBodySchema, V1ListSeamlessConnectorsResponseSchema, V1ListStandardConnectorsResponseSchema, V1ListWorkspaceSkillsOutputBodySchema, V1ListWorkspacesBodySchema, V1MessageListItemSchema, V1MessageResponseSchema, V1MoveProjectsToFolderInputBodySchema, V1ProjectCollaboratorSchema, V1ProjectFileUploadUrlInputBodySchema, V1ProjectGitFilesResponseSchema, V1ProjectResponseSchema, V1ProjectSkillDtoSchema, V1RemixInitInputBodySchema, V1RemixInitOutputBodySchema, V1RemixProgressOutputBodySchema, V1RemixProgressResultSchema, V1RemoveConnectorOutputBodySchema, V1SecurityFindingSchema, V1SecurityScanSummarySchema, V1SecurityScannerRunSchema, V1SelectedLibrarySchema, V1SendMessageInputBodySchema, V1SendMessageOutputBodySchema, V1SetFolderVisibilityInputBodySchema, V1SetFolderVisibilityOutputBodySchema, V1SetProjectKnowledgeInputBodySchema, V1SetProjectSkillEnabledInputBodySchema, V1SetProjectSkillEnabledOutputBodySchema, V1SetProjectVisibilityInputBodySchema, V1SetProjectVisibilityOutputBodySchema, V1SetWorkspaceKnowledgeInputBodySchema, V1TriggerSecurityScanInputBodySchema, V1TriggerSecurityScanResponseBodySchema, V1UnscopedFileSchema, V1UpdateMemberCreditLimitInputBodySchema, V1UpdateWorkspaceSettingsInputBodySchema, V1UsagePeriodSchema, V1WorkspaceAuditLogEntrySchema, V1WorkspaceAuditLogsBodySchema, V1WorkspaceCreditHistoryBodySchema, V1WorkspaceCreditsBodySchema, V1WorkspaceCreditsExpiringGrantSchema, V1WorkspaceCreditsGrantTypeBalanceSchema, V1WorkspaceMemberSchema, V1WorkspaceSecurityActivityFreshnessSchema, V1WorkspaceSecurityDashboardBodySchema, V1WorkspaceSecurityEdgeFunctionSchema, V1WorkspaceSecurityFindingSchema, V1WorkspaceSecurityOwnerSchema, V1WorkspaceSecurityProjectSchema, V1WorkspaceSecurityProjectsBodySchema, V1WorkspaceSecurityReasonSchema, V1WorkspaceSecurityReasonValuesSchema, V1WorkspaceSecurityReviewPrioritySchema, V1WorkspaceSecuritySignalsSchema, V1WorkspaceSecurityStatSchema, V1WorkspaceSecuritySummarySchema, V1WorkspaceSettingsBodySchema, V1WorkspaceSkillDtoSchema, V1WorkspaceUsageBreakdownBodySchema, V1WorkspaceUsageBreakdownEntrySchema, V1WorkspaceUsageDatabaseBreakdownSchema, V1WorkspaceUsageGatewayModelSchema, V1WorkspaceUsageMeBodySchema, V1WorkspaceUsageProjectRowSchema, V1WorkspaceUsageProjectsBodySchema, V1WorkspaceUsageTimeseriesBodySchema, V1WorkspaceUsageTimeseriesBucketSchema, V1WriteWorkspaceSkillInputBodySchema, V1WriteWorkspaceSkillOutputBodySchema, VisibilityChangeInfoSchema, WorkspaceMembershipResponseSchema, WorkspaceMembershipSchema, WorkspaceSchema, WorkspaceWithMembershipSchema };
1587
+ export { AddProjectsToFolderResultSchema, AppUserConnectorApiSchema, ChannelAnalyticsSchema, ChannelListsGroupSchema, ChannelTimeSeriesGroupSchema, CommonSeamlessConnectorFeatureSchema, CommonSeamlessConnectorPermissionSchema, CompanyCreatorSchema, CreatorSchema, CursorListResponseProjectPiiFindingDtoSchema, CursorListResponsePublicV1ConnectorItemSchema, CursorListResponsePublicV1ProjectListItemSchema, CursorListResponseSearchProjectItemSchema, CursorListResponseV1EditSummarySchema, CursorListResponseV1MessageListItemSchema, CursorListResponseV1ProjectCollaboratorSchema, CursorListResponseV1ProjectSkillDtoSchema, CursorListResponseV1SecurityScanSummarySchema, CursorListResponseV1WorkspaceMemberSchema, DiffHunkSchema, DiffLineSchema, ErrorDetailSchema, ErrorModelSchema, GetAvailableLibraryProjectsPublicV1OutputBodySchema, GetAvailableTemplateProjectsPublicV1OutputBodySchema, GetMeOutputBodySchema, GetMeWorkspaceSchema, GetUserWorkspaceBodySchema, GitFileEntryLiteSchema, GitFileEntrySchema, LibraryProjectResponseSchema, ListDataPointSchema, ListDataSchema, ListsGroupSchema, LovableCreatorSchema, McpConnectorSchema, PaginationSchema, ProjectAnalyticsResponseSchema, ProjectFileInfoSchema, ProjectPiiFindingDtoSchema, ProjectTrendResponseSchema, PublicV1ConnectorItemSchema, PublicV1CreateProjectResponseSchema, PublicV1DeployProjectInputBodySchema, PublicV1EnableDatabaseInputBodySchema, PublicV1GetWorkspaceBodySchema, PublicV1GitFilesResponseSchema, PublicV1PatchProjectBodySchema, PublicV1ProjectAnalyticsBodySchema, PublicV1ProjectCreateInputBodySchema, PublicV1ProjectFileUploadUrlInputBodySchema, PublicV1ProjectListItemSchema, PublicV1ProjectRemixInputBodySchema, PublicV1PublishAudienceTargetSchema, PublicV1PublishProjectInputBodySchema, PublicV1PublishProjectResponseSchema, PublicV1PublishStatusResponseSchema, PublicV1SendMessageInputBodySchema, PublicV1SetProjectKnowledgeInputBodySchema, PublicV1SetProjectSkillEnabledInputBodySchema, PublicV1UpdatePublishSettingsInputBodySchema, PublicV1UpdatePublishSettingsResponseSchema, PublicV1WorkspaceMemberSchema, PublicV1WorkspaceSchema, PublicV1WorkspaceWithMembershipSchema, RemixJobFailureSchema, RemixJobStepInfoSchema, RemixWarningSchema, SeamlessConnectorApiSchema, SearchProjectItemSchema, SearchWorkspaceProjectsResponseSchema, SkippedProjectInfoSchema, StandardConnectorApiSchema, StandardConnectorPromotionSchema, TemplateProjectResponseSchema, TimeSeriesDataPointSchema, TimeSeriesDataSchema, TimeSeriesGroupSchema, ToolDisplayDataSchema, TrendDataPointSchema, UserCreatorSchema, V1AddConnectorInputBodySchema, V1AiResponseSummarySchema, V1AvailableConnectorEntrySchema, V1AwaitingInputSummarySchema, V1BillingBulkSetMemberCreditLimitInputBodySchema, V1BillingCreditLimitRowSchema, V1BillingCreditLimitsBodySchema, V1BillingPeriodSchema, V1BillingUsageBodySchema, V1BillingUsagePeriodSchema, V1BillingUsageRowSchema, V1BulkMemberCreditLimitItemSchema, V1BulkMemberCreditLimitResultSchema, V1BulkSetMemberCreditLimitInputBodySchema, V1BulkSetMemberCreditLimitOutputBodySchema, V1ConnectionItemSchema, V1ConnectorResponseSchema, V1CreateEmbedUrlInputBodySchema, V1CreateEmbedUrlOutputBodySchema, V1CreateProjectInputBodySchema, V1CreateProjectResponseSchema, V1CreateVariantInputBodySchema, V1CreateVariantOutputBodySchema, V1CreditHistoryEntrySchema, V1DatabaseQueryOutputBodySchema, V1DatabaseQueryOutputBodyWritableSchema, V1DeleteWorkspaceSkillOutputBodySchema, V1DeployProjectInputBodySchema, V1DeployProjectOutputBodySchema, V1DiffEntrySchema, V1DiffResponseSchema, V1EditSummarySchema, V1EnableDatabaseOutputBodySchema, V1EphemeralFileUploadUrlInputBodySchema, V1FileUploadUrlOutputBodySchema, V1GetDatabaseStatusOutputBodySchema, V1GetEditsOutputBodySchema, V1GetSecurityScanOutputBodySchema, V1GetWorkspaceSkillOutputBodySchema, V1KnowledgeResponseSchema, V1ListAppUserConnectorsResponseSchema, V1ListAvailableConnectorsOutputBodySchema, V1ListConnectionsResponseSchema, V1ListConnectorsOutputBodySchema, V1ListMcpConnectorsResponseSchema, V1ListMessagesOutputBodySchema, V1ListProjectSkillsOutputBodySchema, V1ListSeamlessConnectorsResponseSchema, V1ListStandardConnectorsResponseSchema, V1ListWorkspaceSkillsOutputBodySchema, V1ListWorkspacesBodySchema, V1MessageExportStatusSchema, V1MessageListItemSchema, V1MessageResponseSchema, V1MoveProjectsToFolderInputBodySchema, V1ProjectCloudBodySchema, V1ProjectCloudDiskSchema, V1ProjectCloudResourcePressureSchema, V1ProjectCloudResourceSignalSchema, V1ProjectCollaboratorSchema, V1ProjectFileUploadUrlInputBodySchema, V1ProjectGitFilesResponseSchema, V1ProjectResponseSchema, V1ProjectSkillDtoSchema, V1RemixInitInputBodySchema, V1RemixInitOutputBodySchema, V1RemixProgressOutputBodySchema, V1RemixProgressResultSchema, V1RemoveConnectorOutputBodySchema, V1SecurityFindingSchema, V1SecurityScanActorSchema, V1SecurityScanSummarySchema, V1SecurityScannerRunSchema, V1SelectedLibrarySchema, V1SendMessageInputBodySchema, V1SendMessageOutputBodySchema, V1SetFolderVisibilityInputBodySchema, V1SetFolderVisibilityOutputBodySchema, V1SetProjectKnowledgeInputBodySchema, V1SetProjectSkillEnabledInputBodySchema, V1SetProjectSkillEnabledOutputBodySchema, V1SetProjectVisibilityInputBodySchema, V1SetProjectVisibilityOutputBodySchema, V1SetWorkspaceKnowledgeInputBodySchema, V1StartMessageExportInputBodySchema, V1StartMessageExportOutputBodySchema, V1TriggerSecurityScanInputBodySchema, V1TriggerSecurityScanResponseBodySchema, V1UnscopedFileSchema, V1UpdateMemberCreditLimitInputBodySchema, V1UpdateWorkspaceSettingsInputBodySchema, V1UpdateWorkspaceSettingsNestedInputBodySchema, V1UsagePeriodSchema, V1WorkspaceAuditLogEntrySchema, V1WorkspaceAuditLogsBodySchema, V1WorkspaceCreditHistoryBodySchema, V1WorkspaceCreditsBodySchema, V1WorkspaceCreditsExpiringGrantSchema, V1WorkspaceCreditsGrantTypeBalanceSchema, V1WorkspaceInsightsActivityFreshnessSchema, V1WorkspaceInsightsBodySchema, V1WorkspaceInsightsEdgeFunctionSchema, V1WorkspaceInsightsFindingSchema, V1WorkspaceInsightsOwnerSchema, V1WorkspaceInsightsProjectSchema, V1WorkspaceInsightsProjectsBodySchema, V1WorkspaceInsightsReasonSchema, V1WorkspaceInsightsReasonValuesSchema, V1WorkspaceInsightsReviewPrioritySchema, V1WorkspaceInsightsSignalsSchema, V1WorkspaceInsightsStatSchema, V1WorkspaceInsightsSummarySchema, V1WorkspaceMemberSchema, V1WorkspaceSettingsBodySchema, V1WorkspaceSkillDtoSchema, V1WorkspaceUsageBreakdownBodySchema, V1WorkspaceUsageBreakdownEntrySchema, V1WorkspaceUsageConnectorBreakdownSchema, V1WorkspaceUsageDatabaseBreakdownSchema, V1WorkspaceUsageGatewayModelSchema, V1WorkspaceUsageMeBodySchema, V1WorkspaceUsageProjectRowSchema, V1WorkspaceUsageProjectsBodySchema, V1WorkspaceUsageTimeseriesBodySchema, V1WorkspaceUsageTimeseriesBucketSchema, V1WriteWorkspaceSkillInputBodySchema, V1WriteWorkspaceSkillOutputBodySchema, VisibilityChangeInfoSchema, WorkspaceAnalyticsResponseSchema, WorkspaceMembershipResponseSchema, WorkspaceMembershipSchema, WorkspaceSchema, WorkspaceWithMembershipSchema };
1358
1588
 
1359
1589
  //# sourceMappingURL=schemas.js.map