@renai-labs/sdk 0.1.1 → 0.1.3
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/generated/@tanstack/react-query.gen.d.ts +322 -2
- package/dist/generated/@tanstack/react-query.gen.js +508 -1
- package/dist/generated/internal/types.gen.d.ts +4 -0
- package/dist/generated/sdk.gen.d.ts +146 -2
- package/dist/generated/sdk.gen.js +346 -1
- package/dist/generated/types.gen.d.ts +1850 -436
- package/dist/generated/zod.gen.d.ts +4097 -79
- package/dist/generated/zod.gen.js +555 -9
- package/package.json +1 -1
|
@@ -45,6 +45,63 @@ export const zPermissionConfig = z.union([
|
|
|
45
45
|
}),
|
|
46
46
|
z.enum(["allow", "deny", "ask"]),
|
|
47
47
|
]);
|
|
48
|
+
export const zBlueprintReplayRef = z.object({
|
|
49
|
+
replayId: z.string(),
|
|
50
|
+
});
|
|
51
|
+
export const zBlueprintMcpRef = z.object({
|
|
52
|
+
mcpId: z.string(),
|
|
53
|
+
});
|
|
54
|
+
export const zBlueprintSkillRef = z.object({
|
|
55
|
+
skillId: z.string(),
|
|
56
|
+
versionId: z.string().nullable(),
|
|
57
|
+
});
|
|
58
|
+
export const zBlueprintAgentRef = z.object({
|
|
59
|
+
agentId: z.string(),
|
|
60
|
+
versionId: z.string().nullable(),
|
|
61
|
+
});
|
|
62
|
+
export const zBlueprintProjectEntry = z.object({
|
|
63
|
+
name: z.string(),
|
|
64
|
+
description: z.string().nullable(),
|
|
65
|
+
permission: zPermissionConfig,
|
|
66
|
+
parentId: z.string().nullish().default(null),
|
|
67
|
+
agents: z.array(z.object({
|
|
68
|
+
agentId: z.string(),
|
|
69
|
+
type: z.enum(["primary", "subagent", "all"]),
|
|
70
|
+
})),
|
|
71
|
+
cronTriggers: z.array(z.object({
|
|
72
|
+
inputMessage: z.string(),
|
|
73
|
+
schedule: z.string(),
|
|
74
|
+
timezone: z.string().nullable(),
|
|
75
|
+
cronTriggerId: z.string(),
|
|
76
|
+
agentId: z.string(),
|
|
77
|
+
})),
|
|
78
|
+
});
|
|
79
|
+
export const zBlueprintTemplate = z.object({
|
|
80
|
+
schemaVersion: z.literal(1),
|
|
81
|
+
projects: z.array(zBlueprintProjectEntry),
|
|
82
|
+
agents: z.array(zBlueprintAgentRef),
|
|
83
|
+
skills: z.array(zBlueprintSkillRef),
|
|
84
|
+
mcps: z.array(zBlueprintMcpRef),
|
|
85
|
+
replays: z.array(zBlueprintReplayRef),
|
|
86
|
+
});
|
|
87
|
+
export const zWebsiteMetadata = z.object({
|
|
88
|
+
title: z.string().optional(),
|
|
89
|
+
description: z.string().optional(),
|
|
90
|
+
longDescription: z.string().optional(),
|
|
91
|
+
image: z.url().optional(),
|
|
92
|
+
favicon: z.url().optional(),
|
|
93
|
+
supportUrl: z.url().optional(),
|
|
94
|
+
privacyPolicyUrl: z.url().optional(),
|
|
95
|
+
});
|
|
96
|
+
export const zBlueprintPublicView = z.object({
|
|
97
|
+
id: z.string(),
|
|
98
|
+
slug: z.string(),
|
|
99
|
+
name: z.string(),
|
|
100
|
+
description: z.string().nullable(),
|
|
101
|
+
websiteMetadata: zWebsiteMetadata.nullable(),
|
|
102
|
+
publisherId: z.string(),
|
|
103
|
+
template: zBlueprintTemplate,
|
|
104
|
+
});
|
|
48
105
|
export const zReplayPresignDownloadResponse = z.object({
|
|
49
106
|
url: z.string(),
|
|
50
107
|
expiresAt: z.iso
|
|
@@ -285,15 +342,6 @@ export const zSkillVersion = z.object({
|
|
|
285
342
|
requiredCredentials: z.array(zRequiredCredential),
|
|
286
343
|
releaseNotes: z.string().nullable(),
|
|
287
344
|
});
|
|
288
|
-
export const zWebsiteMetadata = z.object({
|
|
289
|
-
title: z.string().optional(),
|
|
290
|
-
description: z.string().optional(),
|
|
291
|
-
longDescription: z.string().optional(),
|
|
292
|
-
image: z.url().optional(),
|
|
293
|
-
favicon: z.url().optional(),
|
|
294
|
-
supportUrl: z.url().optional(),
|
|
295
|
-
privacyPolicyUrl: z.url().optional(),
|
|
296
|
-
});
|
|
297
345
|
export const zRepository = z.object({
|
|
298
346
|
url: z.url().optional(),
|
|
299
347
|
source: z.string().optional(),
|
|
@@ -309,6 +357,7 @@ export const zSkill = z.object({
|
|
|
309
357
|
orgId: z.string(),
|
|
310
358
|
userId: z.string().nullable(),
|
|
311
359
|
publisherId: z.string().nullable(),
|
|
360
|
+
parentId: z.string().nullable(),
|
|
312
361
|
websiteMetadata: zWebsiteMetadata.nullable(),
|
|
313
362
|
sortOrder: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
|
|
314
363
|
popularityScore: z.int().gte(-9007199254740991).lte(9007199254740991).nullable(),
|
|
@@ -325,6 +374,11 @@ export const zSkill = z.object({
|
|
|
325
374
|
.datetime()
|
|
326
375
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
327
376
|
.nullable(),
|
|
377
|
+
deprecatedAt: z.iso
|
|
378
|
+
.datetime()
|
|
379
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
380
|
+
.nullable(),
|
|
381
|
+
deprecationMessage: z.string().nullable(),
|
|
328
382
|
tags: z.array(z.string()).optional().default([]),
|
|
329
383
|
});
|
|
330
384
|
export const zSessionVolumeRef = z.object({
|
|
@@ -397,6 +451,12 @@ export const zAuthRequirements = z.object({
|
|
|
397
451
|
mcps: z.array(zAuthRequirementMcp),
|
|
398
452
|
envs: z.array(zAuthRequirementEnv),
|
|
399
453
|
});
|
|
454
|
+
export const zSessionMessagesPage = z.object({
|
|
455
|
+
items: z.array(zReplayMessage),
|
|
456
|
+
pageNumber: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
457
|
+
pageSize: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
458
|
+
total: z.int().gte(-9007199254740991).lte(9007199254740991),
|
|
459
|
+
});
|
|
400
460
|
export const zOpencodeSession = z.object({
|
|
401
461
|
id: z.string(),
|
|
402
462
|
createdById: z.string(),
|
|
@@ -459,6 +519,7 @@ export const zReplay = z.object({
|
|
|
459
519
|
sessionId: z.string(),
|
|
460
520
|
publisherId: z.string().nullable(),
|
|
461
521
|
slug: z.string(),
|
|
522
|
+
shareToken: z.string().nullable(),
|
|
462
523
|
websiteMetadata: zWebsiteMetadata.nullable(),
|
|
463
524
|
createdAt: z.iso
|
|
464
525
|
.datetime()
|
|
@@ -470,6 +531,34 @@ export const zReplay = z.object({
|
|
|
470
531
|
.datetime()
|
|
471
532
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
472
533
|
.nullable(),
|
|
534
|
+
deprecatedAt: z.iso
|
|
535
|
+
.datetime()
|
|
536
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
537
|
+
.nullable(),
|
|
538
|
+
deprecationMessage: z.string().nullable(),
|
|
539
|
+
});
|
|
540
|
+
export const zPublisher = z.object({
|
|
541
|
+
id: z.string(),
|
|
542
|
+
organizationId: z.string().nullable(),
|
|
543
|
+
slug: z.string(),
|
|
544
|
+
name: z.string(),
|
|
545
|
+
description: z.string().nullable(),
|
|
546
|
+
avatar: z.string().nullable(),
|
|
547
|
+
url: z.string().nullable(),
|
|
548
|
+
isVerified: z.boolean(),
|
|
549
|
+
createdAt: z.iso
|
|
550
|
+
.datetime()
|
|
551
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
552
|
+
updatedAt: z.iso
|
|
553
|
+
.datetime()
|
|
554
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
555
|
+
archivedAt: z.iso
|
|
556
|
+
.datetime()
|
|
557
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
558
|
+
.nullable(),
|
|
559
|
+
});
|
|
560
|
+
export const zPublisherMe = z.object({
|
|
561
|
+
org: zPublisher.nullable(),
|
|
473
562
|
});
|
|
474
563
|
export const zProjectMemoryStore = z.object({
|
|
475
564
|
id: z.string(),
|
|
@@ -550,6 +639,7 @@ export const zPodSandboxStatusResponse = z.union([
|
|
|
550
639
|
z.object({
|
|
551
640
|
status: z.literal("provisioning"),
|
|
552
641
|
workflowId: z.string(),
|
|
642
|
+
phase: z.enum(["loading", "resuming", "provisioning", "bootstrapping", "finalizing"]),
|
|
553
643
|
}),
|
|
554
644
|
z.object({
|
|
555
645
|
status: z.literal("ready"),
|
|
@@ -655,11 +745,16 @@ export const zOnboardingStart = z.object({
|
|
|
655
745
|
projectId: z.string(),
|
|
656
746
|
sessionId: z.string(),
|
|
657
747
|
});
|
|
748
|
+
export const zModelPricing = z.object({
|
|
749
|
+
input_usd_per_million_tokens: z.number(),
|
|
750
|
+
output_usd_per_million_tokens: z.number(),
|
|
751
|
+
});
|
|
658
752
|
export const zModelEntry = z.object({
|
|
659
753
|
key: z.string(),
|
|
660
754
|
name: z.string(),
|
|
661
755
|
description: z.string(),
|
|
662
756
|
size: z.enum(["large", "medium", "small"]).optional(),
|
|
757
|
+
pricing: zModelPricing.optional(),
|
|
663
758
|
});
|
|
664
759
|
export const zModelProvider = z.object({
|
|
665
760
|
key: z.string(),
|
|
@@ -778,6 +873,11 @@ export const zMcp = z.object({
|
|
|
778
873
|
.datetime()
|
|
779
874
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
780
875
|
.nullable(),
|
|
876
|
+
deprecatedAt: z.iso
|
|
877
|
+
.datetime()
|
|
878
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
879
|
+
.nullable(),
|
|
880
|
+
deprecationMessage: z.string().nullable(),
|
|
781
881
|
tags: z.array(z.string()).optional().default([]),
|
|
782
882
|
});
|
|
783
883
|
export const zGithubInstallationResponse = z.object({
|
|
@@ -940,6 +1040,51 @@ export const zDashboardResponse = z.object({
|
|
|
940
1040
|
})),
|
|
941
1041
|
period: z.enum(["7d", "30d", "90d"]),
|
|
942
1042
|
});
|
|
1043
|
+
export const zBlueprintInstallReport = z.object({
|
|
1044
|
+
projects: z.array(z.string()),
|
|
1045
|
+
agents: z.array(z.string()),
|
|
1046
|
+
skills: z.array(z.string()),
|
|
1047
|
+
mcps: z.array(z.string()),
|
|
1048
|
+
skipped: z.array(z.object({
|
|
1049
|
+
kind: z.enum(["skill", "agent", "mcp"]),
|
|
1050
|
+
sourceId: z.string(),
|
|
1051
|
+
reason: z.string(),
|
|
1052
|
+
})),
|
|
1053
|
+
});
|
|
1054
|
+
export const zBlueprintSelection = z.object({
|
|
1055
|
+
projectIds: z.array(z.string()).optional().default([]),
|
|
1056
|
+
agentIds: z.array(z.string()).optional().default([]),
|
|
1057
|
+
skillIds: z.array(z.string()).optional().default([]),
|
|
1058
|
+
mcpIds: z.array(z.string()).optional().default([]),
|
|
1059
|
+
replayIds: z.array(z.string()).optional().default([]),
|
|
1060
|
+
cronTriggerIds: z.array(z.string()).optional().default([]),
|
|
1061
|
+
});
|
|
1062
|
+
export const zBlueprint = z.object({
|
|
1063
|
+
id: z.string(),
|
|
1064
|
+
slug: z.string(),
|
|
1065
|
+
name: z.string(),
|
|
1066
|
+
description: z.string().nullable(),
|
|
1067
|
+
orgId: z.string(),
|
|
1068
|
+
userId: z.string().nullable(),
|
|
1069
|
+
publisherId: z.string().nullable(),
|
|
1070
|
+
template: zBlueprintTemplate,
|
|
1071
|
+
websiteMetadata: zWebsiteMetadata.nullable(),
|
|
1072
|
+
createdAt: z.iso
|
|
1073
|
+
.datetime()
|
|
1074
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
1075
|
+
updatedAt: z.iso
|
|
1076
|
+
.datetime()
|
|
1077
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
1078
|
+
archivedAt: z.iso
|
|
1079
|
+
.datetime()
|
|
1080
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
1081
|
+
.nullable(),
|
|
1082
|
+
deprecatedAt: z.iso
|
|
1083
|
+
.datetime()
|
|
1084
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
1085
|
+
.nullable(),
|
|
1086
|
+
deprecationMessage: z.string().nullable(),
|
|
1087
|
+
});
|
|
943
1088
|
export const zAgentVersion = z.object({
|
|
944
1089
|
id: z.string(),
|
|
945
1090
|
agentId: z.string(),
|
|
@@ -969,6 +1114,30 @@ export const zSearchResult = z.object({
|
|
|
969
1114
|
.datetime()
|
|
970
1115
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/),
|
|
971
1116
|
});
|
|
1117
|
+
export const zAgentLatestVersion = z.object({
|
|
1118
|
+
id: z.string(),
|
|
1119
|
+
agentId: z.string(),
|
|
1120
|
+
version: z.string().regex(/^\d+\.\d+\.\d+$/),
|
|
1121
|
+
skills: z.array(z.object({
|
|
1122
|
+
skillId: z.string(),
|
|
1123
|
+
skillVersionId: z.string().nullish().default(null),
|
|
1124
|
+
skill: z.object({
|
|
1125
|
+
id: z.string(),
|
|
1126
|
+
slug: z.string(),
|
|
1127
|
+
name: z.string(),
|
|
1128
|
+
icon: z.string().nullable(),
|
|
1129
|
+
}),
|
|
1130
|
+
})),
|
|
1131
|
+
mcps: z.array(z.object({
|
|
1132
|
+
mcpId: z.string(),
|
|
1133
|
+
mcp: z.object({
|
|
1134
|
+
id: z.string(),
|
|
1135
|
+
slug: z.string(),
|
|
1136
|
+
name: z.string(),
|
|
1137
|
+
icon: z.string().nullable(),
|
|
1138
|
+
}),
|
|
1139
|
+
})),
|
|
1140
|
+
});
|
|
972
1141
|
export const zAgent = z.object({
|
|
973
1142
|
id: z.string(),
|
|
974
1143
|
slug: z.string(),
|
|
@@ -977,6 +1146,7 @@ export const zAgent = z.object({
|
|
|
977
1146
|
orgId: z.string(),
|
|
978
1147
|
userId: z.string().nullable(),
|
|
979
1148
|
publisherId: z.string().nullable(),
|
|
1149
|
+
parentId: z.string().nullable(),
|
|
980
1150
|
websiteMetadata: zWebsiteMetadata.nullable(),
|
|
981
1151
|
latestVersionId: z.string().nullable(),
|
|
982
1152
|
createdAt: z.iso
|
|
@@ -989,6 +1159,12 @@ export const zAgent = z.object({
|
|
|
989
1159
|
.datetime()
|
|
990
1160
|
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
991
1161
|
.nullable(),
|
|
1162
|
+
deprecatedAt: z.iso
|
|
1163
|
+
.datetime()
|
|
1164
|
+
.regex(/^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$/)
|
|
1165
|
+
.nullable(),
|
|
1166
|
+
deprecationMessage: z.string().nullable(),
|
|
1167
|
+
latestVersion: zAgentLatestVersion.nullish(),
|
|
992
1168
|
});
|
|
993
1169
|
/**
|
|
994
1170
|
* Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
|
|
@@ -1007,6 +1183,28 @@ export const zAgentCreateBody = z.object({
|
|
|
1007
1183
|
name: z.string().min(1).max(256),
|
|
1008
1184
|
icon: z.string().nullish().default(null),
|
|
1009
1185
|
tags: z.array(z.string()).optional(),
|
|
1186
|
+
version: z
|
|
1187
|
+
.union([z.string(), z.enum(["major", "minor", "patch"])])
|
|
1188
|
+
.optional()
|
|
1189
|
+
.default("patch"),
|
|
1190
|
+
description: z.string().optional().default(""),
|
|
1191
|
+
prompt: z.string().optional().default(""),
|
|
1192
|
+
model: z.string().nullish().default(null),
|
|
1193
|
+
permission: zPermissionConfig.optional(),
|
|
1194
|
+
skills: z
|
|
1195
|
+
.array(z.object({
|
|
1196
|
+
skillId: z.string(),
|
|
1197
|
+
skillVersionId: z.string().nullish().default(null),
|
|
1198
|
+
}))
|
|
1199
|
+
.optional()
|
|
1200
|
+
.default([]),
|
|
1201
|
+
mcps: z
|
|
1202
|
+
.array(z.object({
|
|
1203
|
+
mcpId: z.string(),
|
|
1204
|
+
}))
|
|
1205
|
+
.optional()
|
|
1206
|
+
.default([]),
|
|
1207
|
+
releaseNotes: z.string().max(4096).optional(),
|
|
1010
1208
|
});
|
|
1011
1209
|
export const zAgentCreateQuery = z.object({
|
|
1012
1210
|
scope: z.enum(["user"]).optional(),
|
|
@@ -1058,6 +1256,7 @@ export const zAgentGetResponse = zAgent;
|
|
|
1058
1256
|
export const zAgentUpdateBody = z.object({
|
|
1059
1257
|
name: z.string().optional(),
|
|
1060
1258
|
icon: z.string().nullish(),
|
|
1259
|
+
websiteMetadata: zWebsiteMetadata.nullish(),
|
|
1061
1260
|
tags: z.array(z.string()).optional(),
|
|
1062
1261
|
});
|
|
1063
1262
|
export const zAgentUpdatePath = z.object({
|
|
@@ -1080,6 +1279,39 @@ export const zAgentArchiveQuery = z.object({
|
|
|
1080
1279
|
* Archived agent
|
|
1081
1280
|
*/
|
|
1082
1281
|
export const zAgentArchiveResponse = zAgent;
|
|
1282
|
+
export const zAgentPublishPath = z.object({
|
|
1283
|
+
id: z.string().regex(/^agt_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1284
|
+
});
|
|
1285
|
+
export const zAgentPublishQuery = z.object({
|
|
1286
|
+
scope: z.enum(["user"]).optional(),
|
|
1287
|
+
});
|
|
1288
|
+
/**
|
|
1289
|
+
* Published agent
|
|
1290
|
+
*/
|
|
1291
|
+
export const zAgentPublishResponse = zAgent;
|
|
1292
|
+
export const zAgentDeprecateBody = z.object({
|
|
1293
|
+
message: z.string().nullish(),
|
|
1294
|
+
});
|
|
1295
|
+
export const zAgentDeprecatePath = z.object({
|
|
1296
|
+
id: z.string().regex(/^agt_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1297
|
+
});
|
|
1298
|
+
export const zAgentDeprecateQuery = z.object({
|
|
1299
|
+
scope: z.enum(["user"]).optional(),
|
|
1300
|
+
});
|
|
1301
|
+
/**
|
|
1302
|
+
* Deprecated agent
|
|
1303
|
+
*/
|
|
1304
|
+
export const zAgentDeprecateResponse = zAgent;
|
|
1305
|
+
export const zAgentUndeprecatePath = z.object({
|
|
1306
|
+
id: z.string().regex(/^agt_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1307
|
+
});
|
|
1308
|
+
export const zAgentUndeprecateQuery = z.object({
|
|
1309
|
+
scope: z.enum(["user"]).optional(),
|
|
1310
|
+
});
|
|
1311
|
+
/**
|
|
1312
|
+
* Undeprecated agent
|
|
1313
|
+
*/
|
|
1314
|
+
export const zAgentUndeprecateResponse = zAgent;
|
|
1083
1315
|
export const zAgentVersionListPath = z.object({
|
|
1084
1316
|
id: z.string().regex(/^agt_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1085
1317
|
});
|
|
@@ -1148,6 +1380,108 @@ export const zAgentVersionArchiveQuery = z.object({
|
|
|
1148
1380
|
* Archived agent version
|
|
1149
1381
|
*/
|
|
1150
1382
|
export const zAgentVersionArchiveResponse = zAgentVersion;
|
|
1383
|
+
export const zBlueprintListQuery = z.object({
|
|
1384
|
+
scope: z.enum(["user"]).optional(),
|
|
1385
|
+
limit: z.number().gte(1).lte(1000).optional(),
|
|
1386
|
+
offset: z.number().gte(0).optional(),
|
|
1387
|
+
});
|
|
1388
|
+
/**
|
|
1389
|
+
* List of blueprints
|
|
1390
|
+
*/
|
|
1391
|
+
export const zBlueprintListResponse = z.array(zBlueprint);
|
|
1392
|
+
export const zBlueprintCreateBody = z.object({
|
|
1393
|
+
name: z.string().min(1).max(256),
|
|
1394
|
+
description: z.string().optional().default(""),
|
|
1395
|
+
websiteMetadata: zWebsiteMetadata.nullish().default(null),
|
|
1396
|
+
selection: zBlueprintSelection,
|
|
1397
|
+
});
|
|
1398
|
+
export const zBlueprintCreateQuery = z.object({
|
|
1399
|
+
scope: z.enum(["user"]).optional(),
|
|
1400
|
+
});
|
|
1401
|
+
/**
|
|
1402
|
+
* Created blueprint
|
|
1403
|
+
*/
|
|
1404
|
+
export const zBlueprintCreateResponse = zBlueprint;
|
|
1405
|
+
export const zBlueprintInstallBody = z.object({
|
|
1406
|
+
source: z.string().min(1),
|
|
1407
|
+
podId: z.string().regex(/^pod_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1408
|
+
});
|
|
1409
|
+
export const zBlueprintInstallQuery = z.object({
|
|
1410
|
+
scope: z.enum(["user"]).optional(),
|
|
1411
|
+
});
|
|
1412
|
+
/**
|
|
1413
|
+
* Install report
|
|
1414
|
+
*/
|
|
1415
|
+
export const zBlueprintInstallResponse = zBlueprintInstallReport;
|
|
1416
|
+
export const zBlueprintGetPath = z.object({
|
|
1417
|
+
id: z.string().regex(/^blp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1418
|
+
});
|
|
1419
|
+
export const zBlueprintGetQuery = z.object({
|
|
1420
|
+
scope: z.enum(["user"]).optional(),
|
|
1421
|
+
});
|
|
1422
|
+
/**
|
|
1423
|
+
* Blueprint details
|
|
1424
|
+
*/
|
|
1425
|
+
export const zBlueprintGetResponse = zBlueprint;
|
|
1426
|
+
export const zBlueprintUpdateBody = z.object({
|
|
1427
|
+
name: z.string().min(1).max(256).optional(),
|
|
1428
|
+
description: z.string().optional(),
|
|
1429
|
+
websiteMetadata: zWebsiteMetadata.nullish(),
|
|
1430
|
+
selection: zBlueprintSelection.optional(),
|
|
1431
|
+
});
|
|
1432
|
+
export const zBlueprintUpdatePath = z.object({
|
|
1433
|
+
id: z.string().regex(/^blp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1434
|
+
});
|
|
1435
|
+
export const zBlueprintUpdateQuery = z.object({
|
|
1436
|
+
scope: z.enum(["user"]).optional(),
|
|
1437
|
+
});
|
|
1438
|
+
/**
|
|
1439
|
+
* Updated blueprint
|
|
1440
|
+
*/
|
|
1441
|
+
export const zBlueprintUpdateResponse = zBlueprint;
|
|
1442
|
+
export const zBlueprintPublishPath = z.object({
|
|
1443
|
+
id: z.string().regex(/^blp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1444
|
+
});
|
|
1445
|
+
export const zBlueprintPublishQuery = z.object({
|
|
1446
|
+
scope: z.enum(["user"]).optional(),
|
|
1447
|
+
});
|
|
1448
|
+
/**
|
|
1449
|
+
* Published blueprint
|
|
1450
|
+
*/
|
|
1451
|
+
export const zBlueprintPublishResponse = zBlueprint;
|
|
1452
|
+
export const zBlueprintDeprecateBody = z.object({
|
|
1453
|
+
message: z.string().nullish(),
|
|
1454
|
+
});
|
|
1455
|
+
export const zBlueprintDeprecatePath = z.object({
|
|
1456
|
+
id: z.string().regex(/^blp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1457
|
+
});
|
|
1458
|
+
export const zBlueprintDeprecateQuery = z.object({
|
|
1459
|
+
scope: z.enum(["user"]).optional(),
|
|
1460
|
+
});
|
|
1461
|
+
/**
|
|
1462
|
+
* Deprecated blueprint
|
|
1463
|
+
*/
|
|
1464
|
+
export const zBlueprintDeprecateResponse = zBlueprint;
|
|
1465
|
+
export const zBlueprintUndeprecatePath = z.object({
|
|
1466
|
+
id: z.string().regex(/^blp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1467
|
+
});
|
|
1468
|
+
export const zBlueprintUndeprecateQuery = z.object({
|
|
1469
|
+
scope: z.enum(["user"]).optional(),
|
|
1470
|
+
});
|
|
1471
|
+
/**
|
|
1472
|
+
* Undeprecated blueprint
|
|
1473
|
+
*/
|
|
1474
|
+
export const zBlueprintUndeprecateResponse = zBlueprint;
|
|
1475
|
+
export const zBlueprintArchivePath = z.object({
|
|
1476
|
+
id: z.string().regex(/^blp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1477
|
+
});
|
|
1478
|
+
export const zBlueprintArchiveQuery = z.object({
|
|
1479
|
+
scope: z.enum(["user"]).optional(),
|
|
1480
|
+
});
|
|
1481
|
+
/**
|
|
1482
|
+
* Archived blueprint
|
|
1483
|
+
*/
|
|
1484
|
+
export const zBlueprintArchiveResponse = zBlueprint;
|
|
1151
1485
|
/**
|
|
1152
1486
|
* Billing summary
|
|
1153
1487
|
*/
|
|
@@ -1554,6 +1888,7 @@ export const zMcpUpdateBody = z.object({
|
|
|
1554
1888
|
prompts: z.array(z.string()).optional(),
|
|
1555
1889
|
auth: z.enum(["none", "oauth", "api_key", "basic"]).optional(),
|
|
1556
1890
|
authConfig: zMcpAuthConfig.nullish(),
|
|
1891
|
+
websiteMetadata: zWebsiteMetadata.nullish(),
|
|
1557
1892
|
tags: z.array(z.string()).optional(),
|
|
1558
1893
|
});
|
|
1559
1894
|
export const zMcpUpdatePath = z.object({
|
|
@@ -1576,6 +1911,39 @@ export const zMcpArchiveQuery = z.object({
|
|
|
1576
1911
|
* Archived MCP
|
|
1577
1912
|
*/
|
|
1578
1913
|
export const zMcpArchiveResponse = zMcp;
|
|
1914
|
+
export const zMcpPublishPath = z.object({
|
|
1915
|
+
id: z.string().regex(/^mcp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1916
|
+
});
|
|
1917
|
+
export const zMcpPublishQuery = z.object({
|
|
1918
|
+
scope: z.enum(["user"]).optional(),
|
|
1919
|
+
});
|
|
1920
|
+
/**
|
|
1921
|
+
* Published MCP
|
|
1922
|
+
*/
|
|
1923
|
+
export const zMcpPublishResponse = zMcp;
|
|
1924
|
+
export const zMcpDeprecateBody = z.object({
|
|
1925
|
+
message: z.string().nullish(),
|
|
1926
|
+
});
|
|
1927
|
+
export const zMcpDeprecatePath = z.object({
|
|
1928
|
+
id: z.string().regex(/^mcp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1929
|
+
});
|
|
1930
|
+
export const zMcpDeprecateQuery = z.object({
|
|
1931
|
+
scope: z.enum(["user"]).optional(),
|
|
1932
|
+
});
|
|
1933
|
+
/**
|
|
1934
|
+
* Deprecated MCP
|
|
1935
|
+
*/
|
|
1936
|
+
export const zMcpDeprecateResponse = zMcp;
|
|
1937
|
+
export const zMcpUndeprecatePath = z.object({
|
|
1938
|
+
id: z.string().regex(/^mcp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
1939
|
+
});
|
|
1940
|
+
export const zMcpUndeprecateQuery = z.object({
|
|
1941
|
+
scope: z.enum(["user"]).optional(),
|
|
1942
|
+
});
|
|
1943
|
+
/**
|
|
1944
|
+
* Undeprecated MCP
|
|
1945
|
+
*/
|
|
1946
|
+
export const zMcpUndeprecateResponse = zMcp;
|
|
1579
1947
|
export const zMcpOauthConnectBody = zMcpOAuthConnectBody;
|
|
1580
1948
|
export const zMcpOauthConnectPath = z.object({
|
|
1581
1949
|
id: z.string().regex(/^mcp_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
@@ -2098,6 +2466,60 @@ export const zProjectArchiveQuery = z.object({
|
|
|
2098
2466
|
* Archived project
|
|
2099
2467
|
*/
|
|
2100
2468
|
export const zProjectArchiveResponse = zProject;
|
|
2469
|
+
export const zPublisherMeQuery = z.object({
|
|
2470
|
+
scope: z.enum(["user"]).optional(),
|
|
2471
|
+
});
|
|
2472
|
+
/**
|
|
2473
|
+
* Caller's org publisher
|
|
2474
|
+
*/
|
|
2475
|
+
export const zPublisherMeResponse = zPublisherMe;
|
|
2476
|
+
export const zPublisherClaimOrgBody = z.object({
|
|
2477
|
+
slug: z
|
|
2478
|
+
.string()
|
|
2479
|
+
.min(1)
|
|
2480
|
+
.max(128)
|
|
2481
|
+
.regex(/^[a-z0-9-]+$/)
|
|
2482
|
+
.optional(),
|
|
2483
|
+
});
|
|
2484
|
+
export const zPublisherClaimOrgQuery = z.object({
|
|
2485
|
+
scope: z.enum(["user"]).optional(),
|
|
2486
|
+
});
|
|
2487
|
+
/**
|
|
2488
|
+
* Org publisher
|
|
2489
|
+
*/
|
|
2490
|
+
export const zPublisherClaimOrgResponse = zPublisher;
|
|
2491
|
+
export const zPublisherGetPath = z.object({
|
|
2492
|
+
id: z.string().regex(/^pub_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2493
|
+
});
|
|
2494
|
+
export const zPublisherGetQuery = z.object({
|
|
2495
|
+
scope: z.enum(["user"]).optional(),
|
|
2496
|
+
});
|
|
2497
|
+
/**
|
|
2498
|
+
* Publisher
|
|
2499
|
+
*/
|
|
2500
|
+
export const zPublisherGetResponse = zPublisher;
|
|
2501
|
+
export const zPublisherUpdateBody = z.object({
|
|
2502
|
+
name: z.string().optional(),
|
|
2503
|
+
description: z.string().nullish(),
|
|
2504
|
+
avatar: z.string().nullish(),
|
|
2505
|
+
url: z.string().nullish(),
|
|
2506
|
+
slug: z
|
|
2507
|
+
.string()
|
|
2508
|
+
.min(1)
|
|
2509
|
+
.max(128)
|
|
2510
|
+
.regex(/^[a-z0-9-]+$/)
|
|
2511
|
+
.optional(),
|
|
2512
|
+
});
|
|
2513
|
+
export const zPublisherUpdatePath = z.object({
|
|
2514
|
+
id: z.string().regex(/^pub_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2515
|
+
});
|
|
2516
|
+
export const zPublisherUpdateQuery = z.object({
|
|
2517
|
+
scope: z.enum(["user"]).optional(),
|
|
2518
|
+
});
|
|
2519
|
+
/**
|
|
2520
|
+
* Updated publisher
|
|
2521
|
+
*/
|
|
2522
|
+
export const zPublisherUpdateResponse = zPublisher;
|
|
2101
2523
|
export const zReplayListQuery = z.object({
|
|
2102
2524
|
scope: z.enum(["user"]).optional(),
|
|
2103
2525
|
limit: z.number().gte(1).lte(1000).optional(),
|
|
@@ -2112,6 +2534,7 @@ export const zReplayCreateBody = z.object({
|
|
|
2112
2534
|
sessionId: z.string(),
|
|
2113
2535
|
publisherId: z.string().nullish().default(null),
|
|
2114
2536
|
websiteMetadata: zWebsiteMetadata.nullish().default(null),
|
|
2537
|
+
shareToken: z.string().nullish().default(null),
|
|
2115
2538
|
});
|
|
2116
2539
|
export const zReplayCreateQuery = z.object({
|
|
2117
2540
|
scope: z.enum(["user"]).optional(),
|
|
@@ -2130,6 +2553,19 @@ export const zReplayGetQuery = z.object({
|
|
|
2130
2553
|
* Details
|
|
2131
2554
|
*/
|
|
2132
2555
|
export const zReplayGetResponse = zReplay;
|
|
2556
|
+
export const zReplayUpdateBody = z.object({
|
|
2557
|
+
websiteMetadata: zWebsiteMetadata.nullish(),
|
|
2558
|
+
});
|
|
2559
|
+
export const zReplayUpdatePath = z.object({
|
|
2560
|
+
id: z.string().regex(/^rpl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2561
|
+
});
|
|
2562
|
+
export const zReplayUpdateQuery = z.object({
|
|
2563
|
+
scope: z.enum(["user"]).optional(),
|
|
2564
|
+
});
|
|
2565
|
+
/**
|
|
2566
|
+
* Updated
|
|
2567
|
+
*/
|
|
2568
|
+
export const zReplayUpdateResponse = zReplay;
|
|
2133
2569
|
export const zReplayArchivePath = z.object({
|
|
2134
2570
|
id: z.string().regex(/^rpl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2135
2571
|
});
|
|
@@ -2140,6 +2576,39 @@ export const zReplayArchiveQuery = z.object({
|
|
|
2140
2576
|
* Archived
|
|
2141
2577
|
*/
|
|
2142
2578
|
export const zReplayArchiveResponse = zReplay;
|
|
2579
|
+
export const zReplayPublishPath = z.object({
|
|
2580
|
+
id: z.string().regex(/^rpl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2581
|
+
});
|
|
2582
|
+
export const zReplayPublishQuery = z.object({
|
|
2583
|
+
scope: z.enum(["user"]).optional(),
|
|
2584
|
+
});
|
|
2585
|
+
/**
|
|
2586
|
+
* Published replay
|
|
2587
|
+
*/
|
|
2588
|
+
export const zReplayPublishResponse = zReplay;
|
|
2589
|
+
export const zReplayDeprecateBody = z.object({
|
|
2590
|
+
message: z.string().nullish(),
|
|
2591
|
+
});
|
|
2592
|
+
export const zReplayDeprecatePath = z.object({
|
|
2593
|
+
id: z.string().regex(/^rpl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2594
|
+
});
|
|
2595
|
+
export const zReplayDeprecateQuery = z.object({
|
|
2596
|
+
scope: z.enum(["user"]).optional(),
|
|
2597
|
+
});
|
|
2598
|
+
/**
|
|
2599
|
+
* Deprecated replay
|
|
2600
|
+
*/
|
|
2601
|
+
export const zReplayDeprecateResponse = zReplay;
|
|
2602
|
+
export const zReplayUndeprecatePath = z.object({
|
|
2603
|
+
id: z.string().regex(/^rpl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2604
|
+
});
|
|
2605
|
+
export const zReplayUndeprecateQuery = z.object({
|
|
2606
|
+
scope: z.enum(["user"]).optional(),
|
|
2607
|
+
});
|
|
2608
|
+
/**
|
|
2609
|
+
* Undeprecated replay
|
|
2610
|
+
*/
|
|
2611
|
+
export const zReplayUndeprecateResponse = zReplay;
|
|
2143
2612
|
export const zReplayShareBody = z.object({
|
|
2144
2613
|
sessionId: z.string(),
|
|
2145
2614
|
websiteMetadata: zWebsiteMetadata.nullish(),
|
|
@@ -2211,6 +2680,18 @@ export const zSessionUpdateQuery = z.object({
|
|
|
2211
2680
|
* Updated session
|
|
2212
2681
|
*/
|
|
2213
2682
|
export const zSessionUpdateResponse = zOpencodeSession;
|
|
2683
|
+
export const zSessionMessagesListPath = z.object({
|
|
2684
|
+
id: z.string().min(1),
|
|
2685
|
+
});
|
|
2686
|
+
export const zSessionMessagesListQuery = z.object({
|
|
2687
|
+
scope: z.enum(["user"]).optional(),
|
|
2688
|
+
pageNumber: z.int().gte(1).lte(9007199254740991).optional(),
|
|
2689
|
+
pageSize: z.int().gte(1).lte(100).optional(),
|
|
2690
|
+
});
|
|
2691
|
+
/**
|
|
2692
|
+
* Paginated session messages
|
|
2693
|
+
*/
|
|
2694
|
+
export const zSessionMessagesListResponse = zSessionMessagesPage;
|
|
2214
2695
|
export const zSessionAuthRequirementsPath = z.object({
|
|
2215
2696
|
id: z.string().min(1),
|
|
2216
2697
|
});
|
|
@@ -2353,6 +2834,39 @@ export const zSkillArchiveQuery = z.object({
|
|
|
2353
2834
|
* Archived skill
|
|
2354
2835
|
*/
|
|
2355
2836
|
export const zSkillArchiveResponse = zSkill;
|
|
2837
|
+
export const zSkillPublishPath = z.object({
|
|
2838
|
+
id: z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2839
|
+
});
|
|
2840
|
+
export const zSkillPublishQuery = z.object({
|
|
2841
|
+
scope: z.enum(["user"]).optional(),
|
|
2842
|
+
});
|
|
2843
|
+
/**
|
|
2844
|
+
* Published skill
|
|
2845
|
+
*/
|
|
2846
|
+
export const zSkillPublishResponse = zSkill;
|
|
2847
|
+
export const zSkillDeprecateBody = z.object({
|
|
2848
|
+
message: z.string().nullish(),
|
|
2849
|
+
});
|
|
2850
|
+
export const zSkillDeprecatePath = z.object({
|
|
2851
|
+
id: z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2852
|
+
});
|
|
2853
|
+
export const zSkillDeprecateQuery = z.object({
|
|
2854
|
+
scope: z.enum(["user"]).optional(),
|
|
2855
|
+
});
|
|
2856
|
+
/**
|
|
2857
|
+
* Deprecated skill
|
|
2858
|
+
*/
|
|
2859
|
+
export const zSkillDeprecateResponse = zSkill;
|
|
2860
|
+
export const zSkillUndeprecatePath = z.object({
|
|
2861
|
+
id: z.string().regex(/^skl_[0-9A-HJKMNP-TV-Z]{26}$/),
|
|
2862
|
+
});
|
|
2863
|
+
export const zSkillUndeprecateQuery = z.object({
|
|
2864
|
+
scope: z.enum(["user"]).optional(),
|
|
2865
|
+
});
|
|
2866
|
+
/**
|
|
2867
|
+
* Undeprecated skill
|
|
2868
|
+
*/
|
|
2869
|
+
export const zSkillUndeprecateResponse = zSkill;
|
|
2356
2870
|
export const zSkillCopyBody = z.object({
|
|
2357
2871
|
name: z.string(),
|
|
2358
2872
|
version: z.string().optional(),
|
|
@@ -2779,6 +3293,7 @@ export const zCredentialOauthSessionResponse = zOAuthSessionStatus;
|
|
|
2779
3293
|
export const zRegistryAgentListQuery = z.object({
|
|
2780
3294
|
limit: z.number().gte(1).lte(1000).optional(),
|
|
2781
3295
|
offset: z.number().gte(0).optional(),
|
|
3296
|
+
includeDeprecated: z.boolean().optional(),
|
|
2782
3297
|
});
|
|
2783
3298
|
/**
|
|
2784
3299
|
* List of published agents
|
|
@@ -2795,6 +3310,7 @@ export const zRegistrySkillListQuery = z.object({
|
|
|
2795
3310
|
limit: z.number().gte(1).lte(1000).optional(),
|
|
2796
3311
|
offset: z.number().gte(0).optional(),
|
|
2797
3312
|
sort: z.enum(["popular", "trending", "recent"]).optional(),
|
|
3313
|
+
includeDeprecated: z.boolean().optional(),
|
|
2798
3314
|
});
|
|
2799
3315
|
/**
|
|
2800
3316
|
* List of published skills
|
|
@@ -2811,6 +3327,7 @@ export const zRegistryMcpListQuery = z.object({
|
|
|
2811
3327
|
limit: z.number().gte(1).lte(1000).optional(),
|
|
2812
3328
|
offset: z.number().gte(0).optional(),
|
|
2813
3329
|
sort: z.enum(["popular", "trending", "recent"]).optional(),
|
|
3330
|
+
includeDeprecated: z.boolean().optional(),
|
|
2814
3331
|
});
|
|
2815
3332
|
/**
|
|
2816
3333
|
* List of published MCPs
|
|
@@ -2849,3 +3366,32 @@ export const zRegistryReplayFilesPresignDownloadPath = z.object({
|
|
|
2849
3366
|
* Presigned download URL
|
|
2850
3367
|
*/
|
|
2851
3368
|
export const zRegistryReplayFilesPresignDownloadResponse = zReplayPresignDownloadResponse;
|
|
3369
|
+
export const zRegistryReplaySharedGetPath = z.object({
|
|
3370
|
+
token: z.string().min(1),
|
|
3371
|
+
});
|
|
3372
|
+
/**
|
|
3373
|
+
* Public replay view
|
|
3374
|
+
*/
|
|
3375
|
+
export const zRegistryReplaySharedGetResponse = zReplayPublicView;
|
|
3376
|
+
export const zRegistryReplaySharedFilesPresignDownloadBody = z.object({
|
|
3377
|
+
kind: z.enum(["outputs", "uploads"]),
|
|
3378
|
+
filename: z.string().min(1),
|
|
3379
|
+
});
|
|
3380
|
+
export const zRegistryReplaySharedFilesPresignDownloadPath = z.object({
|
|
3381
|
+
token: z.string().min(1),
|
|
3382
|
+
});
|
|
3383
|
+
/**
|
|
3384
|
+
* Presigned download URL
|
|
3385
|
+
*/
|
|
3386
|
+
export const zRegistryReplaySharedFilesPresignDownloadResponse = zReplayPresignDownloadResponse;
|
|
3387
|
+
export const zRegistryBlueprintGetPath = z.object({
|
|
3388
|
+
slug: z
|
|
3389
|
+
.string()
|
|
3390
|
+
.min(1)
|
|
3391
|
+
.max(128)
|
|
3392
|
+
.regex(/^[a-z0-9-]+$/),
|
|
3393
|
+
});
|
|
3394
|
+
/**
|
|
3395
|
+
* Public blueprint view
|
|
3396
|
+
*/
|
|
3397
|
+
export const zRegistryBlueprintGetResponse = zBlueprintPublicView;
|