@lovable.dev/sdk 1.6.1 → 1.7.5
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/README.md +9 -2
- package/dist/index.d.ts +1602 -655
- package/dist/index.js +33 -14
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +596 -316
- package/dist/schemas.js +181 -190
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +40 -20
- package/src/generated/paths.ts +1599 -652
- package/src/generated/version.ts +2 -0
- package/src/generated/zod/zod.gen.ts +194 -201
- package/src/types.ts +2 -8
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import * as z from 'zod';
|
|
4
4
|
|
|
5
|
-
export const CommonSeamlessConnectorCreatorSchema = z.object({
|
|
6
|
-
name: z.string(),
|
|
7
|
-
url: z.string()
|
|
8
|
-
});
|
|
9
|
-
|
|
10
5
|
export const CommonSeamlessConnectorFeatureSchema = z.object({
|
|
11
6
|
body: z.string().optional(),
|
|
12
7
|
items: z.array(z.string()).nullable(),
|
|
@@ -22,39 +17,13 @@ export const CommonSeamlessConnectorPermissionSchema = z.object({
|
|
|
22
17
|
name: z.string()
|
|
23
18
|
});
|
|
24
19
|
|
|
25
|
-
export const
|
|
20
|
+
export const CompanyCreatorSchema = z.object({
|
|
21
|
+
logo_url: z.string().optional(),
|
|
26
22
|
name: z.string(),
|
|
23
|
+
type: z.enum(['company']),
|
|
27
24
|
url: z.string()
|
|
28
25
|
});
|
|
29
26
|
|
|
30
|
-
export const AppUserConnectorApiSchema = z.object({
|
|
31
|
-
can_restrict_to_admins: z.boolean(),
|
|
32
|
-
categories: z.array(z.enum([
|
|
33
|
-
'ecommerce',
|
|
34
|
-
'marketing',
|
|
35
|
-
'productivity',
|
|
36
|
-
'sales',
|
|
37
|
-
'support',
|
|
38
|
-
'other',
|
|
39
|
-
'messaging',
|
|
40
|
-
'development',
|
|
41
|
-
'payments',
|
|
42
|
-
'security',
|
|
43
|
-
'custom'
|
|
44
|
-
])),
|
|
45
|
-
creator: CreatorSchema,
|
|
46
|
-
display_name: z.string(),
|
|
47
|
-
documentation_url: z.string(),
|
|
48
|
-
has_clients: z.boolean(),
|
|
49
|
-
id: z.string(),
|
|
50
|
-
is_enabled_for_workspace: z.boolean(),
|
|
51
|
-
long_description: z.string(),
|
|
52
|
-
search_tags: z.array(z.string()),
|
|
53
|
-
short_description: z.string(),
|
|
54
|
-
terms_url: z.string().optional(),
|
|
55
|
-
who_can_create: z.enum(['editors_and_admins', 'admins_only'])
|
|
56
|
-
});
|
|
57
|
-
|
|
58
27
|
export const DiffLineSchema = z.object({
|
|
59
28
|
content: z.string(),
|
|
60
29
|
type: z.string()
|
|
@@ -132,6 +101,11 @@ export const ListDataSchema = z.object({
|
|
|
132
101
|
label: z.string()
|
|
133
102
|
});
|
|
134
103
|
|
|
104
|
+
export const ChannelListsGroupSchema = z.object({
|
|
105
|
+
page: ListDataSchema,
|
|
106
|
+
source: ListDataSchema
|
|
107
|
+
});
|
|
108
|
+
|
|
135
109
|
export const ListsGroupSchema = z.object({
|
|
136
110
|
country: ListDataSchema,
|
|
137
111
|
device: ListDataSchema,
|
|
@@ -139,8 +113,9 @@ export const ListsGroupSchema = z.object({
|
|
|
139
113
|
source: ListDataSchema
|
|
140
114
|
});
|
|
141
115
|
|
|
142
|
-
export const
|
|
116
|
+
export const LovableCreatorSchema = z.object({
|
|
143
117
|
name: z.string(),
|
|
118
|
+
type: z.enum(['lovable']),
|
|
144
119
|
url: z.string()
|
|
145
120
|
});
|
|
146
121
|
|
|
@@ -281,6 +256,7 @@ export const PublicV1ProjectRemixInputBodySchema = z.object({
|
|
|
281
256
|
description: z.string().min(1).optional(),
|
|
282
257
|
display_name: z.string().optional(),
|
|
283
258
|
include_custom_knowledge: z.boolean().optional(),
|
|
259
|
+
include_files: z.boolean().optional(),
|
|
284
260
|
include_history: z.boolean().optional(),
|
|
285
261
|
initial_message: z.string().optional(),
|
|
286
262
|
message_id: z.string().optional(),
|
|
@@ -401,26 +377,10 @@ export const RemixJobStepInfoSchema = z.object({
|
|
|
401
377
|
});
|
|
402
378
|
|
|
403
379
|
export const RemixWarningSchema = z.object({
|
|
404
|
-
code: z.enum(['edge_functions_not_deployed']),
|
|
405
|
-
failed_edge_functions: z.array(z.string()).nullish()
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
export const SeamlessConnectorApiSchema = z.object({
|
|
409
|
-
alias: z.string().optional(),
|
|
410
|
-
categories: z.array(z.string()).nullable(),
|
|
411
|
-
creator: CommonSeamlessConnectorCreatorSchema,
|
|
412
|
-
description: z.string(),
|
|
413
|
-
display_name: z.string(),
|
|
414
|
-
documentation_url: z.string(),
|
|
415
|
-
features: z.array(CommonSeamlessConnectorFeatureSchema).nullish(),
|
|
416
|
-
id: z.string(),
|
|
417
|
-
is_enabled_for_workspace: z.boolean(),
|
|
418
|
-
level: z.string(),
|
|
419
|
-
manual_connect_hint: z.string().optional(),
|
|
420
|
-
permissions: z.array(CommonSeamlessConnectorPermissionSchema).nullable(),
|
|
421
|
-
searchTags: z.array(z.string()).nullish(),
|
|
422
|
-
short_description: z.string(),
|
|
423
|
-
toolIntegrationName: z.string().optional()
|
|
380
|
+
code: z.enum(['edge_functions_not_deployed', 'integration_skipped']),
|
|
381
|
+
failed_edge_functions: z.array(z.string()).nullish(),
|
|
382
|
+
reason: z.string().optional(),
|
|
383
|
+
skipped_integration: z.string().optional()
|
|
424
384
|
});
|
|
425
385
|
|
|
426
386
|
export const SearchProjectItemSchema = z.object({
|
|
@@ -433,6 +393,7 @@ export const SearchProjectItemSchema = z.object({
|
|
|
433
393
|
app_visitors_30d: z.number().optional(),
|
|
434
394
|
app_visitors_7d: z.number().optional(),
|
|
435
395
|
category: z.string().optional(),
|
|
396
|
+
commit_time: z.iso.datetime().optional(),
|
|
436
397
|
created_at: z.iso.datetime().optional(),
|
|
437
398
|
created_by: z.string().optional(),
|
|
438
399
|
deleted_at: z.iso.datetime().optional(),
|
|
@@ -502,47 +463,6 @@ export const StandardConnectorPromotionSchema = z.object({
|
|
|
502
463
|
until: z.iso.datetime()
|
|
503
464
|
});
|
|
504
465
|
|
|
505
|
-
export const StandardConnectorApiSchema = z.object({
|
|
506
|
-
can_restrict_to_admins: z.boolean(),
|
|
507
|
-
categories: z.array(z.enum([
|
|
508
|
-
'ecommerce',
|
|
509
|
-
'marketing',
|
|
510
|
-
'productivity',
|
|
511
|
-
'sales',
|
|
512
|
-
'support',
|
|
513
|
-
'other',
|
|
514
|
-
'messaging',
|
|
515
|
-
'development',
|
|
516
|
-
'payments',
|
|
517
|
-
'security',
|
|
518
|
-
'custom'
|
|
519
|
-
])),
|
|
520
|
-
connection_scope: z.enum(['project', 'workspace']),
|
|
521
|
-
creator: CreatorSchema,
|
|
522
|
-
data_scope: z.enum(['organization', 'individual']),
|
|
523
|
-
description: z.string(),
|
|
524
|
-
display_name: z.string(),
|
|
525
|
-
documentation_url: z.string(),
|
|
526
|
-
has_connections: z.boolean(),
|
|
527
|
-
has_metered_option: z.boolean().optional(),
|
|
528
|
-
id: z.string(),
|
|
529
|
-
is_enabled_for_workspace: z.boolean(),
|
|
530
|
-
is_new: z.boolean().optional(),
|
|
531
|
-
promotion: StandardConnectorPromotionSchema.optional(),
|
|
532
|
-
searchTags: z.array(z.string()),
|
|
533
|
-
short_description: z.string(),
|
|
534
|
-
single_connection: z.boolean().optional(),
|
|
535
|
-
source: z.enum(['native', 'user_defined']).optional(),
|
|
536
|
-
terms_url: z.string().optional(),
|
|
537
|
-
vendor: z.enum([
|
|
538
|
-
'google',
|
|
539
|
-
'microsoft',
|
|
540
|
-
'aws',
|
|
541
|
-
'meta'
|
|
542
|
-
]).optional(),
|
|
543
|
-
who_can_create: z.enum(['editors_and_admins', 'admins_only'])
|
|
544
|
-
});
|
|
545
|
-
|
|
546
466
|
export const TemplateProjectResponseSchema = z.object({
|
|
547
467
|
description: z.string(),
|
|
548
468
|
id: z.string(),
|
|
@@ -567,6 +487,19 @@ export const TimeSeriesDataSchema = z.object({
|
|
|
567
487
|
total: z.number()
|
|
568
488
|
});
|
|
569
489
|
|
|
490
|
+
export const ChannelTimeSeriesGroupSchema = z.object({
|
|
491
|
+
bounceRate: TimeSeriesDataSchema,
|
|
492
|
+
pageviews: TimeSeriesDataSchema,
|
|
493
|
+
pageviewsPerVisit: TimeSeriesDataSchema,
|
|
494
|
+
sessionDuration: TimeSeriesDataSchema,
|
|
495
|
+
visitors: TimeSeriesDataSchema
|
|
496
|
+
});
|
|
497
|
+
|
|
498
|
+
export const ChannelAnalyticsSchema = z.object({
|
|
499
|
+
lists: ChannelListsGroupSchema,
|
|
500
|
+
timeSeries: ChannelTimeSeriesGroupSchema
|
|
501
|
+
});
|
|
502
|
+
|
|
570
503
|
export const TimeSeriesGroupSchema = z.object({
|
|
571
504
|
bounceRate: TimeSeriesDataSchema,
|
|
572
505
|
pageviews: TimeSeriesDataSchema,
|
|
@@ -576,6 +509,8 @@ export const TimeSeriesGroupSchema = z.object({
|
|
|
576
509
|
});
|
|
577
510
|
|
|
578
511
|
export const ProjectAnalyticsResponseSchema = z.object({
|
|
512
|
+
channels: z.record(z.string(), ChannelAnalyticsSchema).optional(),
|
|
513
|
+
channelsSource: z.enum(['legacy', 'user_app_events']).optional(),
|
|
579
514
|
lists: ListsGroupSchema,
|
|
580
515
|
timeSeries: TimeSeriesGroupSchema
|
|
581
516
|
});
|
|
@@ -592,6 +527,61 @@ export const ToolDisplayDataSchema = z.object({
|
|
|
592
527
|
title: z.string().optional()
|
|
593
528
|
});
|
|
594
529
|
|
|
530
|
+
export const TrendDataPointSchema = z.object({
|
|
531
|
+
time: z.string(),
|
|
532
|
+
visits: z.number()
|
|
533
|
+
});
|
|
534
|
+
|
|
535
|
+
export const ProjectTrendResponseSchema = z.object({
|
|
536
|
+
currentVisitors: z.number(),
|
|
537
|
+
data: z.array(TrendDataPointSchema).nullable()
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
export const PublicV1ProjectAnalyticsBodySchema = z.object({
|
|
541
|
+
lists: ListsGroupSchema.optional(),
|
|
542
|
+
timeSeries: TimeSeriesGroupSchema.optional(),
|
|
543
|
+
trend: ProjectTrendResponseSchema.optional()
|
|
544
|
+
});
|
|
545
|
+
|
|
546
|
+
export const UserCreatorSchema = z.object({
|
|
547
|
+
type: z.enum(['user']),
|
|
548
|
+
user_id: z.string()
|
|
549
|
+
});
|
|
550
|
+
|
|
551
|
+
export const CreatorSchema = z.discriminatedUnion('type', [
|
|
552
|
+
LovableCreatorSchema.extend({ type: z.literal('lovable') }),
|
|
553
|
+
UserCreatorSchema.extend({ type: z.literal('user') }),
|
|
554
|
+
CompanyCreatorSchema.extend({ type: z.literal('company') })
|
|
555
|
+
]);
|
|
556
|
+
|
|
557
|
+
export const AppUserConnectorApiSchema = z.object({
|
|
558
|
+
can_restrict_to_admins: z.boolean(),
|
|
559
|
+
categories: z.array(z.enum([
|
|
560
|
+
'ecommerce',
|
|
561
|
+
'marketing',
|
|
562
|
+
'productivity',
|
|
563
|
+
'sales',
|
|
564
|
+
'support',
|
|
565
|
+
'other',
|
|
566
|
+
'messaging',
|
|
567
|
+
'development',
|
|
568
|
+
'payments',
|
|
569
|
+
'security',
|
|
570
|
+
'custom'
|
|
571
|
+
])),
|
|
572
|
+
creator: CreatorSchema,
|
|
573
|
+
display_name: z.string(),
|
|
574
|
+
documentation_url: z.string(),
|
|
575
|
+
has_clients: z.boolean(),
|
|
576
|
+
id: z.string(),
|
|
577
|
+
is_enabled_for_workspace: z.boolean(),
|
|
578
|
+
long_description: z.string(),
|
|
579
|
+
search_tags: z.array(z.string()),
|
|
580
|
+
short_description: z.string(),
|
|
581
|
+
terms_url: z.string().optional(),
|
|
582
|
+
who_can_create: z.enum(['editors_and_admins', 'admins_only'])
|
|
583
|
+
});
|
|
584
|
+
|
|
595
585
|
export const McpConnectorSchema = z.object({
|
|
596
586
|
app_mcp_auth_method: z.string().optional(),
|
|
597
587
|
app_mcp_project_id: z.string().optional(),
|
|
@@ -613,7 +603,7 @@ export const McpConnectorSchema = z.object({
|
|
|
613
603
|
connect_interaction: z.enum(['desktop_app_download']).optional(),
|
|
614
604
|
connection_id: z.string().optional(),
|
|
615
605
|
connector_id: z.string().optional(),
|
|
616
|
-
creator:
|
|
606
|
+
creator: CreatorSchema,
|
|
617
607
|
custom_url_hint: z.string().optional(),
|
|
618
608
|
display_name: z.string(),
|
|
619
609
|
documentation_url: z.string().optional(),
|
|
@@ -641,20 +631,65 @@ export const McpConnectorSchema = z.object({
|
|
|
641
631
|
url_placeholder: z.string().optional()
|
|
642
632
|
});
|
|
643
633
|
|
|
644
|
-
export const
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
634
|
+
export const SeamlessConnectorApiSchema = z.object({
|
|
635
|
+
alias: z.string().optional(),
|
|
636
|
+
categories: z.array(z.string()).nullable(),
|
|
637
|
+
creator: CreatorSchema,
|
|
638
|
+
description: z.string(),
|
|
639
|
+
display_name: z.string(),
|
|
640
|
+
documentation_url: z.string(),
|
|
641
|
+
features: z.array(CommonSeamlessConnectorFeatureSchema).nullish(),
|
|
642
|
+
id: z.string(),
|
|
643
|
+
is_enabled_for_workspace: z.boolean(),
|
|
644
|
+
level: z.string(),
|
|
645
|
+
manual_connect_hint: z.string().optional(),
|
|
646
|
+
permissions: z.array(CommonSeamlessConnectorPermissionSchema).nullable(),
|
|
647
|
+
searchTags: z.array(z.string()).nullish(),
|
|
648
|
+
short_description: z.string(),
|
|
649
|
+
toolIntegrationName: z.string().optional()
|
|
652
650
|
});
|
|
653
651
|
|
|
654
|
-
export const
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
652
|
+
export const StandardConnectorApiSchema = z.object({
|
|
653
|
+
can_restrict_to_admins: z.boolean(),
|
|
654
|
+
categories: z.array(z.enum([
|
|
655
|
+
'ecommerce',
|
|
656
|
+
'marketing',
|
|
657
|
+
'productivity',
|
|
658
|
+
'sales',
|
|
659
|
+
'support',
|
|
660
|
+
'other',
|
|
661
|
+
'messaging',
|
|
662
|
+
'development',
|
|
663
|
+
'payments',
|
|
664
|
+
'security',
|
|
665
|
+
'custom'
|
|
666
|
+
])),
|
|
667
|
+
connection_scope: z.enum(['project', 'workspace']),
|
|
668
|
+
creator: CreatorSchema,
|
|
669
|
+
data_scope: z.enum(['organization', 'individual']),
|
|
670
|
+
description: z.string(),
|
|
671
|
+
display_name: z.string(),
|
|
672
|
+
documentation_url: z.string(),
|
|
673
|
+
has_connections: z.boolean(),
|
|
674
|
+
id: z.string(),
|
|
675
|
+
is_enabled_for_workspace: z.boolean(),
|
|
676
|
+
is_new: z.boolean().optional(),
|
|
677
|
+
logo_url: z.string().optional(),
|
|
678
|
+
pricing_url: z.string().optional(),
|
|
679
|
+
promotion: StandardConnectorPromotionSchema.optional(),
|
|
680
|
+
searchTags: z.array(z.string()),
|
|
681
|
+
short_description: z.string(),
|
|
682
|
+
single_connection: z.boolean().optional(),
|
|
683
|
+
source: z.enum(['native', 'user_defined']).optional(),
|
|
684
|
+
supports_inbound: z.boolean().optional(),
|
|
685
|
+
terms_url: z.string().optional(),
|
|
686
|
+
vendor: z.enum([
|
|
687
|
+
'google',
|
|
688
|
+
'microsoft',
|
|
689
|
+
'aws',
|
|
690
|
+
'meta'
|
|
691
|
+
]).optional(),
|
|
692
|
+
who_can_create: z.enum(['editors_and_admins', 'admins_only'])
|
|
658
693
|
});
|
|
659
694
|
|
|
660
695
|
export const V1AddConnectorInputBodySchema = z.object({
|
|
@@ -667,7 +702,8 @@ export const V1AddConnectorInputBodySchema = z.object({
|
|
|
667
702
|
relay_client_id: z.string().optional(),
|
|
668
703
|
relay_service_name: z.string().optional(),
|
|
669
704
|
token: z.string().optional(),
|
|
670
|
-
url: z.string().optional()
|
|
705
|
+
url: z.string().optional(),
|
|
706
|
+
use_egress_proxy: z.boolean().optional()
|
|
671
707
|
});
|
|
672
708
|
|
|
673
709
|
export const V1AvailableConnectorEntrySchema = z.object({
|
|
@@ -685,17 +721,6 @@ export const V1AwaitingInputSummarySchema = z.object({
|
|
|
685
721
|
prev_session_id: z.string().optional()
|
|
686
722
|
});
|
|
687
723
|
|
|
688
|
-
export const V1AiResponseSummarySchema = z.object({
|
|
689
|
-
awaiting_input: V1AwaitingInputSummarySchema.optional(),
|
|
690
|
-
commit_sha: z.string().optional(),
|
|
691
|
-
content: z.string(),
|
|
692
|
-
cost_credits: z.number().optional(),
|
|
693
|
-
edit_id: z.string().optional(),
|
|
694
|
-
message_id: z.string(),
|
|
695
|
-
status: z.string(),
|
|
696
|
-
summary: z.string().optional()
|
|
697
|
-
});
|
|
698
|
-
|
|
699
724
|
export const V1BillingCreditLimitRowSchema = z.object({
|
|
700
725
|
monthly_credit_limit: z.number().optional(),
|
|
701
726
|
user_id: z.string()
|
|
@@ -958,21 +983,21 @@ export const V1ListWorkspacesBodySchema = z.object({
|
|
|
958
983
|
pagination: PaginationSchema
|
|
959
984
|
});
|
|
960
985
|
|
|
961
|
-
export const
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
986
|
+
export const V1MessageErrorSchema = z.object({
|
|
987
|
+
code: z.string(),
|
|
988
|
+
message: z.string()
|
|
989
|
+
});
|
|
990
|
+
|
|
991
|
+
export const V1AiResponseSummarySchema = z.object({
|
|
992
|
+
awaiting_input: V1AwaitingInputSummarySchema.optional(),
|
|
993
|
+
commit_sha: z.string().optional(),
|
|
994
|
+
content: z.string(),
|
|
995
|
+
cost_credits: z.number().optional(),
|
|
996
|
+
edit_id: z.string().optional(),
|
|
997
|
+
error: V1MessageErrorSchema.optional(),
|
|
998
|
+
message_id: z.string(),
|
|
999
|
+
status: z.string(),
|
|
1000
|
+
summary: z.string().optional()
|
|
976
1001
|
});
|
|
977
1002
|
|
|
978
1003
|
export const V1MessageListItemSchema = z.object({
|
|
@@ -1001,6 +1026,7 @@ export const V1MessageResponseSchema = z.object({
|
|
|
1001
1026
|
cost_credits: z.number().optional(),
|
|
1002
1027
|
created_at: z.string(),
|
|
1003
1028
|
edit_id: z.string().optional(),
|
|
1029
|
+
error: V1MessageErrorSchema.optional(),
|
|
1004
1030
|
message_id: z.string(),
|
|
1005
1031
|
queue_pause_reason: z.string().optional(),
|
|
1006
1032
|
queue_paused: z.boolean().optional(),
|
|
@@ -1015,58 +1041,6 @@ export const V1MoveProjectsToFolderInputBodySchema = z.object({
|
|
|
1015
1041
|
project_ids: z.array(z.string()).min(1).max(30).nullable()
|
|
1016
1042
|
});
|
|
1017
1043
|
|
|
1018
|
-
export const V1ProjectCloudDiskSchema = z.object({
|
|
1019
|
-
size_bytes: z.number(),
|
|
1020
|
-
timestamp: z.iso.datetime(),
|
|
1021
|
-
used_bytes: z.number()
|
|
1022
|
-
});
|
|
1023
|
-
|
|
1024
|
-
export const V1ProjectCloudResourceSignalSchema = z.object({
|
|
1025
|
-
alert_hours: z.number(),
|
|
1026
|
-
label: z.string(),
|
|
1027
|
-
latest_alert_at: z.iso.datetime().optional(),
|
|
1028
|
-
latest_value: z.number().optional(),
|
|
1029
|
-
resource_type: z.string()
|
|
1030
|
-
});
|
|
1031
|
-
|
|
1032
|
-
export const V1ProjectCloudResourcePressureSchema = z.object({
|
|
1033
|
-
resources: z.array(V1ProjectCloudResourceSignalSchema).nullable(),
|
|
1034
|
-
window_hours: z.number()
|
|
1035
|
-
});
|
|
1036
|
-
|
|
1037
|
-
export const V1ProjectCloudBodySchema = z.object({
|
|
1038
|
-
disk: V1ProjectCloudDiskSchema.optional(),
|
|
1039
|
-
environment: z.string(),
|
|
1040
|
-
instance_tier: z.enum([
|
|
1041
|
-
'xs',
|
|
1042
|
-
's',
|
|
1043
|
-
'm',
|
|
1044
|
-
'ml',
|
|
1045
|
-
'l',
|
|
1046
|
-
'xl',
|
|
1047
|
-
'xxl'
|
|
1048
|
-
]),
|
|
1049
|
-
instance_tier_label: z.string(),
|
|
1050
|
-
pause_reason: z.string().optional(),
|
|
1051
|
-
postgres_version: z.string().optional(),
|
|
1052
|
-
region: z.string().optional(),
|
|
1053
|
-
resource_pressure: V1ProjectCloudResourcePressureSchema.optional(),
|
|
1054
|
-
status: z.enum([
|
|
1055
|
-
'OK',
|
|
1056
|
-
'RESIZING',
|
|
1057
|
-
'UPGRADING',
|
|
1058
|
-
'RESTARTING',
|
|
1059
|
-
'COMING_UP',
|
|
1060
|
-
'RESTORING',
|
|
1061
|
-
'UNHEALTHY',
|
|
1062
|
-
'INACTIVE',
|
|
1063
|
-
'PAUSING',
|
|
1064
|
-
'UNKNOWN',
|
|
1065
|
-
''
|
|
1066
|
-
]).optional(),
|
|
1067
|
-
user_paused: z.boolean()
|
|
1068
|
-
});
|
|
1069
|
-
|
|
1070
1044
|
export const V1ProjectCollaboratorSchema = z.object({
|
|
1071
1045
|
accepted_at: z.iso.datetime().optional(),
|
|
1072
1046
|
access_level: z.enum([
|
|
@@ -1147,6 +1121,7 @@ export const V1ListProjectSkillsOutputBodySchema = z.object({
|
|
|
1147
1121
|
export const V1RemixInitInputBodySchema = z.object({
|
|
1148
1122
|
description: z.string().optional(),
|
|
1149
1123
|
include_custom_knowledge: z.boolean().optional(),
|
|
1124
|
+
include_files: z.boolean().optional(),
|
|
1150
1125
|
include_history: z.boolean().optional(),
|
|
1151
1126
|
initial_message: z.string().optional(),
|
|
1152
1127
|
message_id: z.string().optional(),
|
|
@@ -1166,6 +1141,14 @@ export const V1RemixProgressResultSchema = z.object({
|
|
|
1166
1141
|
warnings: z.array(RemixWarningSchema).nullish()
|
|
1167
1142
|
});
|
|
1168
1143
|
|
|
1144
|
+
export const PublicV1RemixJobOutputBodySchema = z.object({
|
|
1145
|
+
error_code: z.string().optional(),
|
|
1146
|
+
error_message: z.string().optional(),
|
|
1147
|
+
result: V1RemixProgressResultSchema.optional(),
|
|
1148
|
+
status: z.string(),
|
|
1149
|
+
step: RemixJobStepInfoSchema.optional()
|
|
1150
|
+
});
|
|
1151
|
+
|
|
1169
1152
|
export const V1RemixProgressOutputBodySchema = z.object({
|
|
1170
1153
|
error_code: z.string().optional(),
|
|
1171
1154
|
error_message: z.string().optional(),
|
|
@@ -1180,7 +1163,6 @@ export const V1RemoveConnectorOutputBodySchema = z.object({
|
|
|
1180
1163
|
|
|
1181
1164
|
export const V1SecurityFindingSchema = z.object({
|
|
1182
1165
|
category: z.string().optional(),
|
|
1183
|
-
connector_id: z.string().optional(),
|
|
1184
1166
|
created_at: z.iso.datetime(),
|
|
1185
1167
|
description: z.string().optional(),
|
|
1186
1168
|
details: z.string().optional(),
|
|
@@ -1284,18 +1266,6 @@ export const V1SetWorkspaceKnowledgeInputBodySchema = z.object({
|
|
|
1284
1266
|
content: z.string()
|
|
1285
1267
|
});
|
|
1286
1268
|
|
|
1287
|
-
export const V1StartMessageExportInputBodySchema = z.object({
|
|
1288
|
-
end_date: z.string().optional(),
|
|
1289
|
-
project_id: z.string().optional(),
|
|
1290
|
-
start_date: z.string().optional(),
|
|
1291
|
-
user_id: z.string().optional()
|
|
1292
|
-
});
|
|
1293
|
-
|
|
1294
|
-
export const V1StartMessageExportOutputBodySchema = z.object({
|
|
1295
|
-
export_id: z.string(),
|
|
1296
|
-
status: z.enum(['running'])
|
|
1297
|
-
});
|
|
1298
|
-
|
|
1299
1269
|
export const V1TriggerSecurityScanInputBodySchema = z.object({
|
|
1300
1270
|
project_id: z.string()
|
|
1301
1271
|
});
|
|
@@ -1456,6 +1426,22 @@ export const V1WorkspaceCreditsBodySchema = z.object({
|
|
|
1456
1426
|
total_remaining: z.number()
|
|
1457
1427
|
});
|
|
1458
1428
|
|
|
1429
|
+
export const V1WorkspaceGroupSchema = z.object({
|
|
1430
|
+
created_at: z.iso.datetime(),
|
|
1431
|
+
description: z.string().optional(),
|
|
1432
|
+
id: z.string(),
|
|
1433
|
+
member_count: z.number(),
|
|
1434
|
+
name: z.string(),
|
|
1435
|
+
scim_external_id: z.string().optional(),
|
|
1436
|
+
updated_at: z.iso.datetime(),
|
|
1437
|
+
workspace_id: z.string()
|
|
1438
|
+
});
|
|
1439
|
+
|
|
1440
|
+
export const CursorListResponseV1WorkspaceGroupSchema = z.object({
|
|
1441
|
+
data: z.array(V1WorkspaceGroupSchema).nullable(),
|
|
1442
|
+
pagination: PaginationSchema
|
|
1443
|
+
});
|
|
1444
|
+
|
|
1459
1445
|
export const V1WorkspaceInsightsActivityFreshnessSchema = z.object({
|
|
1460
1446
|
edits_as_of: z.iso.datetime().optional(),
|
|
1461
1447
|
visitors_as_of: z.iso.datetime().optional()
|
|
@@ -1595,9 +1581,15 @@ export const V1WorkspaceInsightsBodySchema = z.object({
|
|
|
1595
1581
|
summary: V1WorkspaceInsightsSummarySchema
|
|
1596
1582
|
});
|
|
1597
1583
|
|
|
1584
|
+
export const V1WorkspaceMemberGroupSchema = z.object({
|
|
1585
|
+
id: z.string(),
|
|
1586
|
+
name: z.string()
|
|
1587
|
+
});
|
|
1588
|
+
|
|
1598
1589
|
export const V1WorkspaceMemberSchema = z.object({
|
|
1599
1590
|
display_name: z.string().optional(),
|
|
1600
1591
|
email: z.string().optional(),
|
|
1592
|
+
groups: z.array(V1WorkspaceMemberGroupSchema).optional(),
|
|
1601
1593
|
invited_at: z.iso.datetime().optional(),
|
|
1602
1594
|
joined_at: z.iso.datetime().optional(),
|
|
1603
1595
|
monthly_credit_limit: z.number().optional(),
|
|
@@ -1770,6 +1762,7 @@ export const V1WriteWorkspaceSkillOutputBodySchema = z.object({
|
|
|
1770
1762
|
});
|
|
1771
1763
|
|
|
1772
1764
|
export const VisibilityChangeInfoSchema = z.object({
|
|
1765
|
+
commit_time: z.iso.datetime().optional(),
|
|
1773
1766
|
new_visibility: z.enum([
|
|
1774
1767
|
'public',
|
|
1775
1768
|
'private',
|
package/src/types.ts
CHANGED
|
@@ -191,13 +191,7 @@ export type ProjectAnalyticsTrendResponse = Schemas["ProjectTrendResponse"];
|
|
|
191
191
|
export type RemixJobStepInfo = Schemas["RemixJobStepInfo"];
|
|
192
192
|
export type RemixInitResponse = { job_id: string };
|
|
193
193
|
export type RemixProgressResult = Schemas["V1RemixProgressResult"];
|
|
194
|
-
export type RemixProgressResponse =
|
|
195
|
-
status: string;
|
|
196
|
-
step?: RemixJobStepInfo;
|
|
197
|
-
result?: RemixProgressResult;
|
|
198
|
-
error_message?: string;
|
|
199
|
-
error_code?: string;
|
|
200
|
-
};
|
|
194
|
+
export type RemixProgressResponse = Schemas["PublicV1RemixJobOutputBody"];
|
|
201
195
|
|
|
202
196
|
// The V1 spec types `status` as plain string. The Go handler returns one of
|
|
203
197
|
// these five values — keep the narrow union here as an SDK-side aid for
|
|
@@ -374,6 +368,7 @@ export interface RemixProjectOptions {
|
|
|
374
368
|
messageId?: string;
|
|
375
369
|
remixMode?: RemixMode;
|
|
376
370
|
includeHistory?: boolean;
|
|
371
|
+
includeFiles?: boolean;
|
|
377
372
|
includeCustomKnowledge?: boolean;
|
|
378
373
|
initialMessage?: string;
|
|
379
374
|
description?: string;
|
|
@@ -433,7 +428,6 @@ export interface GetMessageOptions {
|
|
|
433
428
|
}
|
|
434
429
|
|
|
435
430
|
export interface ListProjectsOptions {
|
|
436
|
-
/** Full-text search; mapped to `q` on the wire. */
|
|
437
431
|
query?: string;
|
|
438
432
|
visibility?: ListProjectsQuery["visibility"];
|
|
439
433
|
publish_status?: ListProjectsQuery["publish_status"];
|