@lovable.dev/sdk 1.7.0 → 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 +232 -456
- package/dist/index.js +20 -15
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +106 -111
- package/dist/schemas.js +50 -86
- package/dist/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +26 -20
- package/src/generated/paths.ts +229 -453
- package/src/generated/version.ts +1 -1
- package/src/generated/zod/zod.gen.ts +54 -92
- package/src/types.ts +2 -8
package/src/generated/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by scripts/generate-public-paths.mjs — do not edit.
|
|
2
|
-
export const SDK_VERSION = "1.7.
|
|
2
|
+
export const SDK_VERSION = "1.7.5";
|
|
@@ -256,6 +256,7 @@ export const PublicV1ProjectRemixInputBodySchema = z.object({
|
|
|
256
256
|
description: z.string().min(1).optional(),
|
|
257
257
|
display_name: z.string().optional(),
|
|
258
258
|
include_custom_knowledge: z.boolean().optional(),
|
|
259
|
+
include_files: z.boolean().optional(),
|
|
259
260
|
include_history: z.boolean().optional(),
|
|
260
261
|
initial_message: z.string().optional(),
|
|
261
262
|
message_id: z.string().optional(),
|
|
@@ -392,6 +393,7 @@ export const SearchProjectItemSchema = z.object({
|
|
|
392
393
|
app_visitors_30d: z.number().optional(),
|
|
393
394
|
app_visitors_7d: z.number().optional(),
|
|
394
395
|
category: z.string().optional(),
|
|
396
|
+
commit_time: z.iso.datetime().optional(),
|
|
395
397
|
created_at: z.iso.datetime().optional(),
|
|
396
398
|
created_by: z.string().optional(),
|
|
397
399
|
deleted_at: z.iso.datetime().optional(),
|
|
@@ -669,16 +671,17 @@ export const StandardConnectorApiSchema = z.object({
|
|
|
669
671
|
display_name: z.string(),
|
|
670
672
|
documentation_url: z.string(),
|
|
671
673
|
has_connections: z.boolean(),
|
|
672
|
-
has_metered_option: z.boolean().optional(),
|
|
673
674
|
id: z.string(),
|
|
674
675
|
is_enabled_for_workspace: z.boolean(),
|
|
675
676
|
is_new: z.boolean().optional(),
|
|
676
677
|
logo_url: z.string().optional(),
|
|
678
|
+
pricing_url: z.string().optional(),
|
|
677
679
|
promotion: StandardConnectorPromotionSchema.optional(),
|
|
678
680
|
searchTags: z.array(z.string()),
|
|
679
681
|
short_description: z.string(),
|
|
680
682
|
single_connection: z.boolean().optional(),
|
|
681
683
|
source: z.enum(['native', 'user_defined']).optional(),
|
|
684
|
+
supports_inbound: z.boolean().optional(),
|
|
682
685
|
terms_url: z.string().optional(),
|
|
683
686
|
vendor: z.enum([
|
|
684
687
|
'google',
|
|
@@ -699,7 +702,8 @@ export const V1AddConnectorInputBodySchema = z.object({
|
|
|
699
702
|
relay_client_id: z.string().optional(),
|
|
700
703
|
relay_service_name: z.string().optional(),
|
|
701
704
|
token: z.string().optional(),
|
|
702
|
-
url: z.string().optional()
|
|
705
|
+
url: z.string().optional(),
|
|
706
|
+
use_egress_proxy: z.boolean().optional()
|
|
703
707
|
});
|
|
704
708
|
|
|
705
709
|
export const V1AvailableConnectorEntrySchema = z.object({
|
|
@@ -717,17 +721,6 @@ export const V1AwaitingInputSummarySchema = z.object({
|
|
|
717
721
|
prev_session_id: z.string().optional()
|
|
718
722
|
});
|
|
719
723
|
|
|
720
|
-
export const V1AiResponseSummarySchema = z.object({
|
|
721
|
-
awaiting_input: V1AwaitingInputSummarySchema.optional(),
|
|
722
|
-
commit_sha: z.string().optional(),
|
|
723
|
-
content: z.string(),
|
|
724
|
-
cost_credits: z.number().optional(),
|
|
725
|
-
edit_id: z.string().optional(),
|
|
726
|
-
message_id: z.string(),
|
|
727
|
-
status: z.string(),
|
|
728
|
-
summary: z.string().optional()
|
|
729
|
-
});
|
|
730
|
-
|
|
731
724
|
export const V1BillingCreditLimitRowSchema = z.object({
|
|
732
725
|
monthly_credit_limit: z.number().optional(),
|
|
733
726
|
user_id: z.string()
|
|
@@ -990,21 +983,21 @@ export const V1ListWorkspacesBodySchema = z.object({
|
|
|
990
983
|
pagination: PaginationSchema
|
|
991
984
|
});
|
|
992
985
|
|
|
993
|
-
export const
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
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()
|
|
1008
1001
|
});
|
|
1009
1002
|
|
|
1010
1003
|
export const V1MessageListItemSchema = z.object({
|
|
@@ -1033,6 +1026,7 @@ export const V1MessageResponseSchema = z.object({
|
|
|
1033
1026
|
cost_credits: z.number().optional(),
|
|
1034
1027
|
created_at: z.string(),
|
|
1035
1028
|
edit_id: z.string().optional(),
|
|
1029
|
+
error: V1MessageErrorSchema.optional(),
|
|
1036
1030
|
message_id: z.string(),
|
|
1037
1031
|
queue_pause_reason: z.string().optional(),
|
|
1038
1032
|
queue_paused: z.boolean().optional(),
|
|
@@ -1047,58 +1041,6 @@ export const V1MoveProjectsToFolderInputBodySchema = z.object({
|
|
|
1047
1041
|
project_ids: z.array(z.string()).min(1).max(30).nullable()
|
|
1048
1042
|
});
|
|
1049
1043
|
|
|
1050
|
-
export const V1ProjectCloudDiskSchema = z.object({
|
|
1051
|
-
size_bytes: z.number(),
|
|
1052
|
-
timestamp: z.iso.datetime(),
|
|
1053
|
-
used_bytes: z.number()
|
|
1054
|
-
});
|
|
1055
|
-
|
|
1056
|
-
export const V1ProjectCloudResourceSignalSchema = z.object({
|
|
1057
|
-
alert_hours: z.number(),
|
|
1058
|
-
label: z.string(),
|
|
1059
|
-
latest_alert_at: z.iso.datetime().optional(),
|
|
1060
|
-
latest_value: z.number().optional(),
|
|
1061
|
-
resource_type: z.string()
|
|
1062
|
-
});
|
|
1063
|
-
|
|
1064
|
-
export const V1ProjectCloudResourcePressureSchema = z.object({
|
|
1065
|
-
resources: z.array(V1ProjectCloudResourceSignalSchema).nullable(),
|
|
1066
|
-
window_hours: z.number()
|
|
1067
|
-
});
|
|
1068
|
-
|
|
1069
|
-
export const V1ProjectCloudBodySchema = z.object({
|
|
1070
|
-
disk: V1ProjectCloudDiskSchema.optional(),
|
|
1071
|
-
environment: z.string(),
|
|
1072
|
-
instance_tier: z.enum([
|
|
1073
|
-
'xs',
|
|
1074
|
-
's',
|
|
1075
|
-
'm',
|
|
1076
|
-
'ml',
|
|
1077
|
-
'l',
|
|
1078
|
-
'xl',
|
|
1079
|
-
'xxl'
|
|
1080
|
-
]),
|
|
1081
|
-
instance_tier_label: z.string(),
|
|
1082
|
-
pause_reason: z.string().optional(),
|
|
1083
|
-
postgres_version: z.string().optional(),
|
|
1084
|
-
region: z.string().optional(),
|
|
1085
|
-
resource_pressure: V1ProjectCloudResourcePressureSchema.optional(),
|
|
1086
|
-
status: z.enum([
|
|
1087
|
-
'OK',
|
|
1088
|
-
'RESIZING',
|
|
1089
|
-
'UPGRADING',
|
|
1090
|
-
'RESTARTING',
|
|
1091
|
-
'COMING_UP',
|
|
1092
|
-
'RESTORING',
|
|
1093
|
-
'UNHEALTHY',
|
|
1094
|
-
'INACTIVE',
|
|
1095
|
-
'PAUSING',
|
|
1096
|
-
'UNKNOWN',
|
|
1097
|
-
''
|
|
1098
|
-
]).optional(),
|
|
1099
|
-
user_paused: z.boolean()
|
|
1100
|
-
});
|
|
1101
|
-
|
|
1102
1044
|
export const V1ProjectCollaboratorSchema = z.object({
|
|
1103
1045
|
accepted_at: z.iso.datetime().optional(),
|
|
1104
1046
|
access_level: z.enum([
|
|
@@ -1179,6 +1121,7 @@ export const V1ListProjectSkillsOutputBodySchema = z.object({
|
|
|
1179
1121
|
export const V1RemixInitInputBodySchema = z.object({
|
|
1180
1122
|
description: z.string().optional(),
|
|
1181
1123
|
include_custom_knowledge: z.boolean().optional(),
|
|
1124
|
+
include_files: z.boolean().optional(),
|
|
1182
1125
|
include_history: z.boolean().optional(),
|
|
1183
1126
|
initial_message: z.string().optional(),
|
|
1184
1127
|
message_id: z.string().optional(),
|
|
@@ -1198,6 +1141,14 @@ export const V1RemixProgressResultSchema = z.object({
|
|
|
1198
1141
|
warnings: z.array(RemixWarningSchema).nullish()
|
|
1199
1142
|
});
|
|
1200
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
|
+
|
|
1201
1152
|
export const V1RemixProgressOutputBodySchema = z.object({
|
|
1202
1153
|
error_code: z.string().optional(),
|
|
1203
1154
|
error_message: z.string().optional(),
|
|
@@ -1315,18 +1266,6 @@ export const V1SetWorkspaceKnowledgeInputBodySchema = z.object({
|
|
|
1315
1266
|
content: z.string()
|
|
1316
1267
|
});
|
|
1317
1268
|
|
|
1318
|
-
export const V1StartMessageExportInputBodySchema = z.object({
|
|
1319
|
-
end_date: z.string().optional(),
|
|
1320
|
-
project_id: z.string().optional(),
|
|
1321
|
-
start_date: z.string().optional(),
|
|
1322
|
-
user_id: z.string().optional()
|
|
1323
|
-
});
|
|
1324
|
-
|
|
1325
|
-
export const V1StartMessageExportOutputBodySchema = z.object({
|
|
1326
|
-
export_id: z.string(),
|
|
1327
|
-
status: z.enum(['running'])
|
|
1328
|
-
});
|
|
1329
|
-
|
|
1330
1269
|
export const V1TriggerSecurityScanInputBodySchema = z.object({
|
|
1331
1270
|
project_id: z.string()
|
|
1332
1271
|
});
|
|
@@ -1487,6 +1426,22 @@ export const V1WorkspaceCreditsBodySchema = z.object({
|
|
|
1487
1426
|
total_remaining: z.number()
|
|
1488
1427
|
});
|
|
1489
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
|
+
|
|
1490
1445
|
export const V1WorkspaceInsightsActivityFreshnessSchema = z.object({
|
|
1491
1446
|
edits_as_of: z.iso.datetime().optional(),
|
|
1492
1447
|
visitors_as_of: z.iso.datetime().optional()
|
|
@@ -1626,9 +1581,15 @@ export const V1WorkspaceInsightsBodySchema = z.object({
|
|
|
1626
1581
|
summary: V1WorkspaceInsightsSummarySchema
|
|
1627
1582
|
});
|
|
1628
1583
|
|
|
1584
|
+
export const V1WorkspaceMemberGroupSchema = z.object({
|
|
1585
|
+
id: z.string(),
|
|
1586
|
+
name: z.string()
|
|
1587
|
+
});
|
|
1588
|
+
|
|
1629
1589
|
export const V1WorkspaceMemberSchema = z.object({
|
|
1630
1590
|
display_name: z.string().optional(),
|
|
1631
1591
|
email: z.string().optional(),
|
|
1592
|
+
groups: z.array(V1WorkspaceMemberGroupSchema).optional(),
|
|
1632
1593
|
invited_at: z.iso.datetime().optional(),
|
|
1633
1594
|
joined_at: z.iso.datetime().optional(),
|
|
1634
1595
|
monthly_credit_limit: z.number().optional(),
|
|
@@ -1801,6 +1762,7 @@ export const V1WriteWorkspaceSkillOutputBodySchema = z.object({
|
|
|
1801
1762
|
});
|
|
1802
1763
|
|
|
1803
1764
|
export const VisibilityChangeInfoSchema = z.object({
|
|
1765
|
+
commit_time: z.iso.datetime().optional(),
|
|
1804
1766
|
new_visibility: z.enum([
|
|
1805
1767
|
'public',
|
|
1806
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"];
|