@to11ai/sdk 2.1.0-rc → 2.1.0-rc.2
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 +3 -4
- package/dist/context.d.ts +1 -1
- package/dist/errors.d.ts +3 -7
- package/dist/gateway.cjs +0 -3
- package/dist/gateway.d.ts +0 -3
- package/dist/gateway.js +0 -3
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +455 -1275
- package/dist/generated/zod.gen.d.ts +540 -933
- package/dist/prompts/resource.cjs +1 -4
- package/dist/prompts/resource.d.ts +1 -1
- package/dist/prompts/resource.js +1 -4
- package/dist/prompts/shape.d.ts +1 -2
- package/dist/prompts/types.d.ts +0 -1
- package/dist/traceparent.d.ts +1 -1
- package/package.json +1 -1
- package/src/context.ts +1 -1
- package/src/errors.ts +3 -7
- package/src/gateway.ts +0 -7
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +459 -1310
- package/src/generated/zod.gen.ts +282 -741
- package/src/projectEnvironments/resource.ts +2 -2
- package/src/prompts/resource.ts +12 -17
- package/src/prompts/shape.ts +1 -4
- package/src/prompts/types.ts +0 -1
- package/src/traceparent.ts +1 -1
- package/src/transport.ts +5 -16
package/src/generated/zod.gen.ts
CHANGED
|
@@ -82,6 +82,18 @@ export const zGoneError = z.object({
|
|
|
82
82
|
success: z.literal(false)
|
|
83
83
|
});
|
|
84
84
|
|
|
85
|
+
export const zImportPromptVersionInput = z.object({
|
|
86
|
+
changelog: z.string().nullish(),
|
|
87
|
+
files: z.array(z.object({
|
|
88
|
+
content: z.string(),
|
|
89
|
+
contentType: z.enum(['text/markdown', 'text/plain']).nullish(),
|
|
90
|
+
filename: z.string(),
|
|
91
|
+
id: z.string().nullish()
|
|
92
|
+
})),
|
|
93
|
+
format: z.enum(['skill']).nullish(),
|
|
94
|
+
kind: z.enum(['skill']).nullish()
|
|
95
|
+
});
|
|
96
|
+
|
|
85
97
|
export const zInternalServerError = z.object({
|
|
86
98
|
_tag: z.enum(['InternalServerError']),
|
|
87
99
|
code: z.number(),
|
|
@@ -157,6 +169,7 @@ export const zPrincipalApiKeyContextInvariant = z.object({
|
|
|
157
169
|
keyFingerprint: z.string(),
|
|
158
170
|
keyId: z.string(),
|
|
159
171
|
orgId: z.string().nullable(),
|
|
172
|
+
orgSlug: z.string().nullish(),
|
|
160
173
|
projectId: z.string().nullable(),
|
|
161
174
|
scopes: z.array(z.string()),
|
|
162
175
|
workspaceId: z.string().nullable()
|
|
@@ -234,6 +247,7 @@ export const zPrompt = z.object({
|
|
|
234
247
|
createdByUserId: z.string(),
|
|
235
248
|
description: z.string().nullable(),
|
|
236
249
|
id: z.string(),
|
|
250
|
+
kind: z.enum(['chat', 'skill']),
|
|
237
251
|
name: z.string().min(1).max(200),
|
|
238
252
|
projectId: z.string(),
|
|
239
253
|
slug: z.string().min(1).max(128).regex(/^[a-z0-9-]+$/),
|
|
@@ -263,40 +277,17 @@ export const zPromptLabelPointer = z.object({
|
|
|
263
277
|
versionId: z.string()
|
|
264
278
|
});
|
|
265
279
|
|
|
266
|
-
export const zPromptRelease = z.object({
|
|
267
|
-
activeFrom: z.iso.datetime().nullable(),
|
|
268
|
-
activeTo: z.iso.datetime().nullable(),
|
|
269
|
-
actorId: z.string(),
|
|
270
|
-
actorType: z.enum([
|
|
271
|
-
'user',
|
|
272
|
-
'api_key',
|
|
273
|
-
'worker'
|
|
274
|
-
]),
|
|
275
|
-
assignmentSalt: z.string().nullable(),
|
|
276
|
-
changeKind: z.enum([
|
|
277
|
-
'release_initial',
|
|
278
|
-
'release_promoted',
|
|
279
|
-
'release_rolled_back',
|
|
280
|
-
'release_weight_changed'
|
|
281
|
-
]),
|
|
282
|
-
createdAt: z.iso.datetime(),
|
|
283
|
-
envSlug: z.string(),
|
|
284
|
-
environmentId: z.string(),
|
|
285
|
-
id: z.string(),
|
|
286
|
-
priorReleaseId: z.string().nullable(),
|
|
287
|
-
promptId: z.string(),
|
|
288
|
-
reason: z.string(),
|
|
289
|
-
strategy: z.enum(['single', 'weighted']),
|
|
290
|
-
versionId: z.string()
|
|
291
|
-
});
|
|
292
|
-
|
|
293
280
|
export const zPromptVersion = z.object({
|
|
294
281
|
changelog: z.string().nullable(),
|
|
295
282
|
createdAt: z.iso.datetime(),
|
|
296
283
|
createdByDisplayName: z.string().nullable(),
|
|
297
284
|
createdByImage: z.string().nullable(),
|
|
298
285
|
createdByUserId: z.string(),
|
|
299
|
-
format: z.enum([
|
|
286
|
+
format: z.enum([
|
|
287
|
+
'text',
|
|
288
|
+
'chat',
|
|
289
|
+
'skill'
|
|
290
|
+
]),
|
|
300
291
|
id: z.string(),
|
|
301
292
|
modelConfig: z.unknown(),
|
|
302
293
|
promptId: z.string(),
|
|
@@ -305,6 +296,35 @@ export const zPromptVersion = z.object({
|
|
|
305
296
|
version: z.int().gt(0).lte(2147483647)
|
|
306
297
|
});
|
|
307
298
|
|
|
299
|
+
export const zRenderedSkillFile = z.object({
|
|
300
|
+
content: z.string(),
|
|
301
|
+
contentType: z.enum(['text/markdown', 'text/plain']),
|
|
302
|
+
filename: z.string(),
|
|
303
|
+
id: z.string()
|
|
304
|
+
});
|
|
305
|
+
|
|
306
|
+
export const zRenderedSkill = z.object({
|
|
307
|
+
contentHash: z.string(),
|
|
308
|
+
files: z.array(zRenderedSkillFile),
|
|
309
|
+
format: z.enum(['skill']),
|
|
310
|
+
label: z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/),
|
|
311
|
+
promptId: z.string(),
|
|
312
|
+
releaseId: z.string(),
|
|
313
|
+
releasedAt: z.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/).nullish(),
|
|
314
|
+
releasedByDisplayName: z.string().nullish(),
|
|
315
|
+
version: z.number(),
|
|
316
|
+
versionId: z.string()
|
|
317
|
+
});
|
|
318
|
+
|
|
319
|
+
export const zRenderedSkillVersion = z.object({
|
|
320
|
+
contentHash: z.string(),
|
|
321
|
+
files: z.array(zRenderedSkillFile),
|
|
322
|
+
format: z.enum(['skill']),
|
|
323
|
+
promptId: z.string(),
|
|
324
|
+
version: z.number(),
|
|
325
|
+
versionId: z.string()
|
|
326
|
+
});
|
|
327
|
+
|
|
308
328
|
export const zRenderedTextMessage = z.object({
|
|
309
329
|
content: z.string(),
|
|
310
330
|
role: z.enum([
|
|
@@ -325,6 +345,12 @@ export const zRenderedToolMessage = z.object({
|
|
|
325
345
|
toolCallId: z.string()
|
|
326
346
|
});
|
|
327
347
|
|
|
348
|
+
export const zResolvedProjectName = z.object({
|
|
349
|
+
organizationId: z.string(),
|
|
350
|
+
projectId: z.string(),
|
|
351
|
+
workspaceId: z.string()
|
|
352
|
+
});
|
|
353
|
+
|
|
328
354
|
export const zResolvedToolCall = z.object({
|
|
329
355
|
arguments: z.record(z.string(), z.unknown()),
|
|
330
356
|
id: z.string(),
|
|
@@ -367,7 +393,6 @@ export const zResolvedPrompt = z.object({
|
|
|
367
393
|
promptId: z.string(),
|
|
368
394
|
releaseId: z.string(),
|
|
369
395
|
rendered: zRenderedPrompt,
|
|
370
|
-
subjectHash: z.string().nullish(),
|
|
371
396
|
toolChoice: z.union([
|
|
372
397
|
z.enum([
|
|
373
398
|
'auto',
|
|
@@ -379,7 +404,6 @@ export const zResolvedPrompt = z.object({
|
|
|
379
404
|
})
|
|
380
405
|
]).nullish(),
|
|
381
406
|
tools: z.array(zResolvedToolDefinition).nullish(),
|
|
382
|
-
variantName: z.string().nullish(),
|
|
383
407
|
version: z.number(),
|
|
384
408
|
versionId: z.string()
|
|
385
409
|
});
|
|
@@ -445,7 +469,8 @@ export const zRuleRetry = z.object({
|
|
|
445
469
|
});
|
|
446
470
|
|
|
447
471
|
export const zRuleTarget = z.object({
|
|
448
|
-
modelId: z.string(),
|
|
472
|
+
modelId: z.string().nullish(),
|
|
473
|
+
modelName: z.string().min(1).max(256).regex(/^\S[\s\S]*\S$|^\S$|^$/).nullish(),
|
|
449
474
|
params: z.record(z.string(), z.unknown()).nullish(),
|
|
450
475
|
providerId: z.string(),
|
|
451
476
|
when: z.unknown().nullish()
|
|
@@ -1864,8 +1889,9 @@ export const zIngestTokenExchangeIngestTokenBody = z.object({
|
|
|
1864
1889
|
export const zIngestTokenExchangeIngestTokenResponse = z.object({
|
|
1865
1890
|
code: z.number(),
|
|
1866
1891
|
data: z.object({
|
|
1867
|
-
apiKeyId: z.string(),
|
|
1892
|
+
apiKeyId: z.string().nullish(),
|
|
1868
1893
|
expiresAt: z.string(),
|
|
1894
|
+
principalId: z.string(),
|
|
1869
1895
|
projectId: z.string(),
|
|
1870
1896
|
scopeClass: z.enum(['project', 'org']),
|
|
1871
1897
|
scopes: z.array(z.string()),
|
|
@@ -2000,50 +2026,6 @@ export const zOrganizationsGetOrganizationInvitationDetailsResponse = z.object({
|
|
|
2000
2026
|
success: z.boolean()
|
|
2001
2027
|
});
|
|
2002
2028
|
|
|
2003
|
-
export const zApiKeysListApiKeysSuperQuery = z.object({
|
|
2004
|
-
page: z.int().nullish(),
|
|
2005
|
-
limit: z.int().nullish()
|
|
2006
|
-
});
|
|
2007
|
-
|
|
2008
|
-
/**
|
|
2009
|
-
* Success
|
|
2010
|
-
*/
|
|
2011
|
-
export const zApiKeysListApiKeysSuperResponse = z.object({
|
|
2012
|
-
code: z.number(),
|
|
2013
|
-
data: z.array(z.object({
|
|
2014
|
-
createdAt: z.string(),
|
|
2015
|
-
environment: z.enum(['live', 'test']),
|
|
2016
|
-
expiresAt: z.string(),
|
|
2017
|
-
id: z.string(),
|
|
2018
|
-
key: z.string(),
|
|
2019
|
-
orgId: z.string().nullable(),
|
|
2020
|
-
projectId: z.string().nullable(),
|
|
2021
|
-
revokedAt: z.string().nullable(),
|
|
2022
|
-
scopes: z.array(z.string())
|
|
2023
|
-
})).nullable(),
|
|
2024
|
-
error: z.object({
|
|
2025
|
-
code: z.string(),
|
|
2026
|
-
details: z.unknown().nullish(),
|
|
2027
|
-
message: z.string(),
|
|
2028
|
-
rowErrors: z.array(z.object({
|
|
2029
|
-
code: z.string(),
|
|
2030
|
-
message: z.string(),
|
|
2031
|
-
path: z.array(z.union([z.string(), z.number()]))
|
|
2032
|
-
})).nullish()
|
|
2033
|
-
}).nullable(),
|
|
2034
|
-
pagination: z.object({
|
|
2035
|
-
limit: z.int().gte(1).lte(100),
|
|
2036
|
-
page: z.int().gte(1),
|
|
2037
|
-
total: z.int().gte(0),
|
|
2038
|
-
totalPages: z.int().gte(0)
|
|
2039
|
-
}).nullable(),
|
|
2040
|
-
sdkBehavior: z.object({
|
|
2041
|
-
flags: z.record(z.string(), z.unknown()),
|
|
2042
|
-
v: z.int().gte(1)
|
|
2043
|
-
}).nullish(),
|
|
2044
|
-
success: z.boolean()
|
|
2045
|
-
});
|
|
2046
|
-
|
|
2047
2029
|
export const zApiKeysCreateApiKeySuperBody = z.object({
|
|
2048
2030
|
environment: z.enum(['live', 'test']),
|
|
2049
2031
|
orgId: z.string().nullish(),
|
|
@@ -2922,54 +2904,6 @@ export const zOrganizationsResendOrganizationInvitationResponse = z.object({
|
|
|
2922
2904
|
success: z.boolean()
|
|
2923
2905
|
});
|
|
2924
2906
|
|
|
2925
|
-
export const zApiKeysListApiKeysOrgPath = z.object({
|
|
2926
|
-
orgId: z.string()
|
|
2927
|
-
});
|
|
2928
|
-
|
|
2929
|
-
export const zApiKeysListApiKeysOrgQuery = z.object({
|
|
2930
|
-
page: z.int().nullish(),
|
|
2931
|
-
limit: z.int().nullish()
|
|
2932
|
-
});
|
|
2933
|
-
|
|
2934
|
-
/**
|
|
2935
|
-
* Success
|
|
2936
|
-
*/
|
|
2937
|
-
export const zApiKeysListApiKeysOrgResponse = z.object({
|
|
2938
|
-
code: z.number(),
|
|
2939
|
-
data: z.array(z.object({
|
|
2940
|
-
createdAt: z.string(),
|
|
2941
|
-
environment: z.enum(['live', 'test']),
|
|
2942
|
-
expiresAt: z.string(),
|
|
2943
|
-
id: z.string(),
|
|
2944
|
-
key: z.string(),
|
|
2945
|
-
orgId: z.string().nullable(),
|
|
2946
|
-
projectId: z.string().nullable(),
|
|
2947
|
-
revokedAt: z.string().nullable(),
|
|
2948
|
-
scopes: z.array(z.string())
|
|
2949
|
-
})).nullable(),
|
|
2950
|
-
error: z.object({
|
|
2951
|
-
code: z.string(),
|
|
2952
|
-
details: z.unknown().nullish(),
|
|
2953
|
-
message: z.string(),
|
|
2954
|
-
rowErrors: z.array(z.object({
|
|
2955
|
-
code: z.string(),
|
|
2956
|
-
message: z.string(),
|
|
2957
|
-
path: z.array(z.union([z.string(), z.number()]))
|
|
2958
|
-
})).nullish()
|
|
2959
|
-
}).nullable(),
|
|
2960
|
-
pagination: z.object({
|
|
2961
|
-
limit: z.int().gte(1).lte(100),
|
|
2962
|
-
page: z.int().gte(1),
|
|
2963
|
-
total: z.int().gte(0),
|
|
2964
|
-
totalPages: z.int().gte(0)
|
|
2965
|
-
}).nullable(),
|
|
2966
|
-
sdkBehavior: z.object({
|
|
2967
|
-
flags: z.record(z.string(), z.unknown()),
|
|
2968
|
-
v: z.int().gte(1)
|
|
2969
|
-
}).nullish(),
|
|
2970
|
-
success: z.boolean()
|
|
2971
|
-
});
|
|
2972
|
-
|
|
2973
2907
|
export const zApiKeysCreateApiKeyOrgBody = z.object({
|
|
2974
2908
|
environment: z.enum(['live', 'test']),
|
|
2975
2909
|
expiresAt: z.string().nullish(),
|
|
@@ -3643,7 +3577,8 @@ export const zProjectsCreateProjectByOrgResponse = z.object({
|
|
|
3643
3577
|
'deleted'
|
|
3644
3578
|
]),
|
|
3645
3579
|
updatedAt: z.iso.datetime(),
|
|
3646
|
-
workspaceId: z.string()
|
|
3580
|
+
workspaceId: z.string(),
|
|
3581
|
+
workspaceSlug: z.string().min(1).max(120)
|
|
3647
3582
|
}).nullable(),
|
|
3648
3583
|
error: z.object({
|
|
3649
3584
|
code: z.string(),
|
|
@@ -4999,6 +4934,41 @@ export const zAuthLookupPrincipalsBatchResponse = z.object({
|
|
|
4999
4934
|
success: z.boolean()
|
|
5000
4935
|
});
|
|
5001
4936
|
|
|
4937
|
+
export const zProjectsGetProjectByNamePath = z.object({
|
|
4938
|
+
organization: z.string().min(1).max(128).regex(/^[a-z0-9-]+$/),
|
|
4939
|
+
workspace: z.string().min(1).max(128).regex(/^[a-z0-9-]+$/),
|
|
4940
|
+
project: z.string().min(1).max(128).regex(/^[a-z0-9-]+$/)
|
|
4941
|
+
});
|
|
4942
|
+
|
|
4943
|
+
/**
|
|
4944
|
+
* Success
|
|
4945
|
+
*/
|
|
4946
|
+
export const zProjectsGetProjectByNameResponse = z.object({
|
|
4947
|
+
code: z.number(),
|
|
4948
|
+
data: zResolvedProjectName.nullable(),
|
|
4949
|
+
error: z.object({
|
|
4950
|
+
code: z.string(),
|
|
4951
|
+
details: z.unknown().nullish(),
|
|
4952
|
+
message: z.string(),
|
|
4953
|
+
rowErrors: z.array(z.object({
|
|
4954
|
+
code: z.string(),
|
|
4955
|
+
message: z.string(),
|
|
4956
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
4957
|
+
})).nullish()
|
|
4958
|
+
}).nullable(),
|
|
4959
|
+
pagination: z.object({
|
|
4960
|
+
limit: z.int().gte(1).lte(100),
|
|
4961
|
+
page: z.int().gte(1),
|
|
4962
|
+
total: z.int().gte(0),
|
|
4963
|
+
totalPages: z.int().gte(0)
|
|
4964
|
+
}).nullable(),
|
|
4965
|
+
sdkBehavior: z.object({
|
|
4966
|
+
flags: z.record(z.string(), z.unknown()),
|
|
4967
|
+
v: z.int().gte(1)
|
|
4968
|
+
}).nullish(),
|
|
4969
|
+
success: z.boolean()
|
|
4970
|
+
});
|
|
4971
|
+
|
|
5002
4972
|
export const zProjectsDeleteProjectPath = z.object({
|
|
5003
4973
|
projectId: z.string()
|
|
5004
4974
|
});
|
|
@@ -5021,7 +4991,8 @@ export const zProjectsDeleteProjectResponse = z.object({
|
|
|
5021
4991
|
'deleted'
|
|
5022
4992
|
]),
|
|
5023
4993
|
updatedAt: z.iso.datetime(),
|
|
5024
|
-
workspaceId: z.string()
|
|
4994
|
+
workspaceId: z.string(),
|
|
4995
|
+
workspaceSlug: z.string().min(1).max(120)
|
|
5025
4996
|
}).nullable(),
|
|
5026
4997
|
error: z.object({
|
|
5027
4998
|
code: z.string(),
|
|
@@ -5068,7 +5039,8 @@ export const zProjectsGetProjectResponse = z.object({
|
|
|
5068
5039
|
'deleted'
|
|
5069
5040
|
]),
|
|
5070
5041
|
updatedAt: z.iso.datetime(),
|
|
5071
|
-
workspaceId: z.string()
|
|
5042
|
+
workspaceId: z.string(),
|
|
5043
|
+
workspaceSlug: z.string().min(1).max(120)
|
|
5072
5044
|
}).nullable(),
|
|
5073
5045
|
error: z.object({
|
|
5074
5046
|
code: z.string(),
|
|
@@ -5121,7 +5093,8 @@ export const zProjectsUpdateProjectResponse = z.object({
|
|
|
5121
5093
|
'deleted'
|
|
5122
5094
|
]),
|
|
5123
5095
|
updatedAt: z.iso.datetime(),
|
|
5124
|
-
workspaceId: z.string()
|
|
5096
|
+
workspaceId: z.string(),
|
|
5097
|
+
workspaceSlug: z.string().min(1).max(120)
|
|
5125
5098
|
}).nullable(),
|
|
5126
5099
|
error: z.object({
|
|
5127
5100
|
code: z.string(),
|
|
@@ -5716,119 +5689,6 @@ export const zProjectEnvironmentsCreateProjectEnvironmentResponse = z.object({
|
|
|
5716
5689
|
success: z.boolean()
|
|
5717
5690
|
});
|
|
5718
5691
|
|
|
5719
|
-
export const zPromptsGetPromptEnvPolicyPath = z.object({
|
|
5720
|
-
projectId: z.string().min(1),
|
|
5721
|
-
environmentId: z.string().min(1)
|
|
5722
|
-
});
|
|
5723
|
-
|
|
5724
|
-
/**
|
|
5725
|
-
* Success
|
|
5726
|
-
*/
|
|
5727
|
-
export const zPromptsGetPromptEnvPolicyResponse = z.object({
|
|
5728
|
-
code: z.number(),
|
|
5729
|
-
data: z.object({
|
|
5730
|
-
policy: z.object({
|
|
5731
|
-
createdAt: z.iso.datetime(),
|
|
5732
|
-
createdBy: z.string(),
|
|
5733
|
-
envSlug: z.string(),
|
|
5734
|
-
environmentId: z.string(),
|
|
5735
|
-
id: z.string(),
|
|
5736
|
-
minimumDwellTimeHours: z.number(),
|
|
5737
|
-
noRollbackInSource: z.boolean(),
|
|
5738
|
-
noRollbackLookBackHours: z.number(),
|
|
5739
|
-
projectId: z.string(),
|
|
5740
|
-
requiredSourceEnvId: z.string().nullable(),
|
|
5741
|
-
requiredSourceEnvSlug: z.string().nullable(),
|
|
5742
|
-
requiresApproval: z.boolean(),
|
|
5743
|
-
requiresApprovalSeparationOfDuties: z.boolean(),
|
|
5744
|
-
updatedAt: z.iso.datetime(),
|
|
5745
|
-
updatedBy: z.string()
|
|
5746
|
-
}).nullable()
|
|
5747
|
-
}).nullable(),
|
|
5748
|
-
error: z.object({
|
|
5749
|
-
code: z.string(),
|
|
5750
|
-
details: z.unknown().nullish(),
|
|
5751
|
-
message: z.string(),
|
|
5752
|
-
rowErrors: z.array(z.object({
|
|
5753
|
-
code: z.string(),
|
|
5754
|
-
message: z.string(),
|
|
5755
|
-
path: z.array(z.union([z.string(), z.number()]))
|
|
5756
|
-
})).nullish()
|
|
5757
|
-
}).nullable(),
|
|
5758
|
-
pagination: z.object({
|
|
5759
|
-
limit: z.int().gte(1).lte(100),
|
|
5760
|
-
page: z.int().gte(1),
|
|
5761
|
-
total: z.int().gte(0),
|
|
5762
|
-
totalPages: z.int().gte(0)
|
|
5763
|
-
}).nullable(),
|
|
5764
|
-
sdkBehavior: z.object({
|
|
5765
|
-
flags: z.record(z.string(), z.unknown()),
|
|
5766
|
-
v: z.int().gte(1)
|
|
5767
|
-
}).nullish(),
|
|
5768
|
-
success: z.boolean()
|
|
5769
|
-
});
|
|
5770
|
-
|
|
5771
|
-
export const zPromptsUpsertPromptEnvPolicyBody = z.object({
|
|
5772
|
-
minimumDwellTimeHours: z.int().gte(0).nullish(),
|
|
5773
|
-
noRollbackInSource: z.boolean().nullish(),
|
|
5774
|
-
noRollbackLookBackHours: z.int().gt(0).nullish(),
|
|
5775
|
-
requiredSourceEnvId: z.string().nullish(),
|
|
5776
|
-
requiresApproval: z.boolean().nullish(),
|
|
5777
|
-
requiresApprovalSeparationOfDuties: z.boolean().nullish()
|
|
5778
|
-
});
|
|
5779
|
-
|
|
5780
|
-
export const zPromptsUpsertPromptEnvPolicyPath = z.object({
|
|
5781
|
-
projectId: z.string().min(1),
|
|
5782
|
-
environmentId: z.string().min(1)
|
|
5783
|
-
});
|
|
5784
|
-
|
|
5785
|
-
/**
|
|
5786
|
-
* Success
|
|
5787
|
-
*/
|
|
5788
|
-
export const zPromptsUpsertPromptEnvPolicyResponse = z.object({
|
|
5789
|
-
code: z.number(),
|
|
5790
|
-
data: z.object({
|
|
5791
|
-
policy: z.object({
|
|
5792
|
-
createdAt: z.iso.datetime(),
|
|
5793
|
-
createdBy: z.string(),
|
|
5794
|
-
envSlug: z.string(),
|
|
5795
|
-
environmentId: z.string(),
|
|
5796
|
-
id: z.string(),
|
|
5797
|
-
minimumDwellTimeHours: z.number(),
|
|
5798
|
-
noRollbackInSource: z.boolean(),
|
|
5799
|
-
noRollbackLookBackHours: z.number(),
|
|
5800
|
-
projectId: z.string(),
|
|
5801
|
-
requiredSourceEnvId: z.string().nullable(),
|
|
5802
|
-
requiredSourceEnvSlug: z.string().nullable(),
|
|
5803
|
-
requiresApproval: z.boolean(),
|
|
5804
|
-
requiresApprovalSeparationOfDuties: z.boolean(),
|
|
5805
|
-
updatedAt: z.iso.datetime(),
|
|
5806
|
-
updatedBy: z.string()
|
|
5807
|
-
}).nullable()
|
|
5808
|
-
}).nullable(),
|
|
5809
|
-
error: z.object({
|
|
5810
|
-
code: z.string(),
|
|
5811
|
-
details: z.unknown().nullish(),
|
|
5812
|
-
message: z.string(),
|
|
5813
|
-
rowErrors: z.array(z.object({
|
|
5814
|
-
code: z.string(),
|
|
5815
|
-
message: z.string(),
|
|
5816
|
-
path: z.array(z.union([z.string(), z.number()]))
|
|
5817
|
-
})).nullish()
|
|
5818
|
-
}).nullable(),
|
|
5819
|
-
pagination: z.object({
|
|
5820
|
-
limit: z.int().gte(1).lte(100),
|
|
5821
|
-
page: z.int().gte(1),
|
|
5822
|
-
total: z.int().gte(0),
|
|
5823
|
-
totalPages: z.int().gte(0)
|
|
5824
|
-
}).nullable(),
|
|
5825
|
-
sdkBehavior: z.object({
|
|
5826
|
-
flags: z.record(z.string(), z.unknown()),
|
|
5827
|
-
v: z.int().gte(1)
|
|
5828
|
-
}).nullish(),
|
|
5829
|
-
success: z.boolean()
|
|
5830
|
-
});
|
|
5831
|
-
|
|
5832
5692
|
export const zSnapshotGetProjectSnapshotAtTimePath = z.object({
|
|
5833
5693
|
projectId: z.string(),
|
|
5834
5694
|
environmentId: z.string().min(1)
|
|
@@ -7312,6 +7172,7 @@ export const zPromptsListPromptsQuery = z.object({
|
|
|
7312
7172
|
search: z.string().nullish(),
|
|
7313
7173
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
7314
7174
|
status: z.string().nullish(),
|
|
7175
|
+
kind: z.string().regex(/^\s*$|^\s*(chat|skill)(\s*,\s*(chat|skill))*\s*$/).nullish(),
|
|
7315
7176
|
sortBy: z.enum([
|
|
7316
7177
|
'createdAt',
|
|
7317
7178
|
'updatedAt',
|
|
@@ -7334,13 +7195,14 @@ export const zPromptsListPromptsResponse = z.object({
|
|
|
7334
7195
|
createdByUserId: z.string(),
|
|
7335
7196
|
description: z.string().nullable(),
|
|
7336
7197
|
id: z.string(),
|
|
7198
|
+
kind: z.enum(['chat', 'skill']),
|
|
7337
7199
|
labels: z.array(z.object({
|
|
7338
7200
|
label: z.string(),
|
|
7339
7201
|
version: z.number().nullable(),
|
|
7340
7202
|
weighted: z.object({
|
|
7341
7203
|
split: z.string(),
|
|
7342
7204
|
variants: z.number()
|
|
7343
|
-
}).
|
|
7205
|
+
}).nullish()
|
|
7344
7206
|
})),
|
|
7345
7207
|
lastModifiedAt: z.iso.datetime(),
|
|
7346
7208
|
lastModifiedByDisplayName: z.string().nullable(),
|
|
@@ -7384,6 +7246,7 @@ export const zPromptsListPromptsResponse = z.object({
|
|
|
7384
7246
|
|
|
7385
7247
|
export const zPromptsCreatePromptBody = z.object({
|
|
7386
7248
|
description: z.string().nullish(),
|
|
7249
|
+
kind: z.enum(['chat', 'skill']).nullish(),
|
|
7387
7250
|
name: z.string().min(1).max(200),
|
|
7388
7251
|
slug: z.string().min(1).max(128).regex(/^[a-z0-9-]+$/),
|
|
7389
7252
|
tags: z.array(z.string()).nullish()
|
|
@@ -7489,92 +7352,10 @@ export const zPromptsRenderPromptPath = z.object({
|
|
|
7489
7352
|
*/
|
|
7490
7353
|
export const zPromptsRenderPromptResponse = z.object({
|
|
7491
7354
|
code: z.number(),
|
|
7492
|
-
data:
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7496
|
-
message: z.string(),
|
|
7497
|
-
rowErrors: z.array(z.object({
|
|
7498
|
-
code: z.string(),
|
|
7499
|
-
message: z.string(),
|
|
7500
|
-
path: z.array(z.union([z.string(), z.number()]))
|
|
7501
|
-
})).nullish()
|
|
7502
|
-
}).nullable(),
|
|
7503
|
-
pagination: z.object({
|
|
7504
|
-
limit: z.int().gte(1).lte(100),
|
|
7505
|
-
page: z.int().gte(1),
|
|
7506
|
-
total: z.int().gte(0),
|
|
7507
|
-
totalPages: z.int().gte(0)
|
|
7508
|
-
}).nullable(),
|
|
7509
|
-
sdkBehavior: z.object({
|
|
7510
|
-
flags: z.record(z.string(), z.unknown()),
|
|
7511
|
-
v: z.int().gte(1)
|
|
7512
|
-
}).nullish(),
|
|
7513
|
-
success: z.boolean()
|
|
7514
|
-
});
|
|
7515
|
-
|
|
7516
|
-
export const zPromptsGetPromptDirectorySummaryPath = z.object({
|
|
7517
|
-
projectId: z.string().min(1)
|
|
7518
|
-
});
|
|
7519
|
-
|
|
7520
|
-
/**
|
|
7521
|
-
* Success
|
|
7522
|
-
*/
|
|
7523
|
-
export const zPromptsGetPromptDirectorySummaryResponse = z.object({
|
|
7524
|
-
code: z.number(),
|
|
7525
|
-
data: z.object({
|
|
7526
|
-
activeReleases: z.object({
|
|
7527
|
-
count: z.int(),
|
|
7528
|
-
environmentCount: z.int()
|
|
7529
|
-
}),
|
|
7530
|
-
fetches24h: z.object({
|
|
7531
|
-
count: z.int(),
|
|
7532
|
-
deltaPctVsPrev: z.number()
|
|
7533
|
-
}).nullable(),
|
|
7534
|
-
prompts: z.object({
|
|
7535
|
-
archived: z.int(),
|
|
7536
|
-
published: z.int(),
|
|
7537
|
-
total: z.int()
|
|
7538
|
-
}),
|
|
7539
|
-
rollbacks30d: z.object({
|
|
7540
|
-
count: z.int(),
|
|
7541
|
-
promotions: z.int()
|
|
7542
|
-
})
|
|
7543
|
-
}).nullable(),
|
|
7544
|
-
error: z.object({
|
|
7545
|
-
code: z.string(),
|
|
7546
|
-
details: z.unknown().nullish(),
|
|
7547
|
-
message: z.string(),
|
|
7548
|
-
rowErrors: z.array(z.object({
|
|
7549
|
-
code: z.string(),
|
|
7550
|
-
message: z.string(),
|
|
7551
|
-
path: z.array(z.union([z.string(), z.number()]))
|
|
7552
|
-
})).nullish()
|
|
7553
|
-
}).nullable(),
|
|
7554
|
-
pagination: z.object({
|
|
7555
|
-
limit: z.int().gte(1).lte(100),
|
|
7556
|
-
page: z.int().gte(1),
|
|
7557
|
-
total: z.int().gte(0),
|
|
7558
|
-
totalPages: z.int().gte(0)
|
|
7559
|
-
}).nullable(),
|
|
7560
|
-
sdkBehavior: z.object({
|
|
7561
|
-
flags: z.record(z.string(), z.unknown()),
|
|
7562
|
-
v: z.int().gte(1)
|
|
7563
|
-
}).nullish(),
|
|
7564
|
-
success: z.boolean()
|
|
7565
|
-
});
|
|
7566
|
-
|
|
7567
|
-
export const zPromptsArchivePromptPath = z.object({
|
|
7568
|
-
projectId: z.string().min(1),
|
|
7569
|
-
promptId: z.string()
|
|
7570
|
-
});
|
|
7571
|
-
|
|
7572
|
-
/**
|
|
7573
|
-
* Success
|
|
7574
|
-
*/
|
|
7575
|
-
export const zPromptsArchivePromptResponse = z.object({
|
|
7576
|
-
code: z.number(),
|
|
7577
|
-
data: zPrompt.nullable(),
|
|
7355
|
+
data: z.union([
|
|
7356
|
+
zResolvedPrompt,
|
|
7357
|
+
zRenderedSkill
|
|
7358
|
+
]).nullable(),
|
|
7578
7359
|
error: z.object({
|
|
7579
7360
|
code: z.string(),
|
|
7580
7361
|
details: z.unknown().nullish(),
|
|
@@ -7598,58 +7379,22 @@ export const zPromptsArchivePromptResponse = z.object({
|
|
|
7598
7379
|
success: z.boolean()
|
|
7599
7380
|
});
|
|
7600
7381
|
|
|
7601
|
-
export const
|
|
7602
|
-
|
|
7603
|
-
promptId: z.string()
|
|
7604
|
-
});
|
|
7605
|
-
|
|
7606
|
-
/**
|
|
7607
|
-
* Success
|
|
7608
|
-
*/
|
|
7609
|
-
export const zPromptsGetPromptResponse = z.object({
|
|
7610
|
-
code: z.number(),
|
|
7611
|
-
data: zPrompt.nullable(),
|
|
7612
|
-
error: z.object({
|
|
7613
|
-
code: z.string(),
|
|
7614
|
-
details: z.unknown().nullish(),
|
|
7615
|
-
message: z.string(),
|
|
7616
|
-
rowErrors: z.array(z.object({
|
|
7617
|
-
code: z.string(),
|
|
7618
|
-
message: z.string(),
|
|
7619
|
-
path: z.array(z.union([z.string(), z.number()]))
|
|
7620
|
-
})).nullish()
|
|
7621
|
-
}).nullable(),
|
|
7622
|
-
pagination: z.object({
|
|
7623
|
-
limit: z.int().gte(1).lte(100),
|
|
7624
|
-
page: z.int().gte(1),
|
|
7625
|
-
total: z.int().gte(0),
|
|
7626
|
-
totalPages: z.int().gte(0)
|
|
7627
|
-
}).nullable(),
|
|
7628
|
-
sdkBehavior: z.object({
|
|
7629
|
-
flags: z.record(z.string(), z.unknown()),
|
|
7630
|
-
v: z.int().gte(1)
|
|
7631
|
-
}).nullish(),
|
|
7632
|
-
success: z.boolean()
|
|
7633
|
-
});
|
|
7634
|
-
|
|
7635
|
-
export const zPromptsUpdatePromptBody = z.object({
|
|
7636
|
-
description: z.string().nullish(),
|
|
7637
|
-
name: z.string().min(1).max(200).nullish(),
|
|
7638
|
-
status: z.enum(['active', 'archived']).nullish(),
|
|
7639
|
-
tags: z.array(z.string()).nullish()
|
|
7382
|
+
export const zPromptsRenderSkillVersionBody = z.object({
|
|
7383
|
+
variables: z.record(z.string(), z.unknown()).nullish()
|
|
7640
7384
|
});
|
|
7641
7385
|
|
|
7642
|
-
export const
|
|
7386
|
+
export const zPromptsRenderSkillVersionPath = z.object({
|
|
7643
7387
|
projectId: z.string().min(1),
|
|
7644
|
-
|
|
7388
|
+
slug: z.string().min(1),
|
|
7389
|
+
versionNumber: z.string()
|
|
7645
7390
|
});
|
|
7646
7391
|
|
|
7647
7392
|
/**
|
|
7648
7393
|
* Success
|
|
7649
7394
|
*/
|
|
7650
|
-
export const
|
|
7395
|
+
export const zPromptsRenderSkillVersionResponse = z.object({
|
|
7651
7396
|
code: z.number(),
|
|
7652
|
-
data:
|
|
7397
|
+
data: zRenderedSkillVersion.nullable(),
|
|
7653
7398
|
error: z.object({
|
|
7654
7399
|
code: z.string(),
|
|
7655
7400
|
details: z.unknown().nullish(),
|
|
@@ -7673,32 +7418,36 @@ export const zPromptsUpdatePromptResponse = z.object({
|
|
|
7673
7418
|
success: z.boolean()
|
|
7674
7419
|
});
|
|
7675
7420
|
|
|
7676
|
-
export const
|
|
7677
|
-
projectId: z.string().min(1)
|
|
7678
|
-
promptId: z.string()
|
|
7421
|
+
export const zPromptsGetPromptDirectorySummaryPath = z.object({
|
|
7422
|
+
projectId: z.string().min(1)
|
|
7679
7423
|
});
|
|
7680
7424
|
|
|
7681
|
-
export const
|
|
7682
|
-
|
|
7683
|
-
limit: z.string().nullish(),
|
|
7684
|
-
label: z.string().nullish(),
|
|
7685
|
-
promptId: z.string().nullish(),
|
|
7686
|
-
since: z.string().nullish(),
|
|
7687
|
-
until: z.string().nullish()
|
|
7425
|
+
export const zPromptsGetPromptDirectorySummaryQuery = z.object({
|
|
7426
|
+
kind: z.string().regex(/^\s*$|^\s*(chat|skill)(\s*,\s*(chat|skill))*\s*$/).nullish()
|
|
7688
7427
|
});
|
|
7689
7428
|
|
|
7690
7429
|
/**
|
|
7691
7430
|
* Success
|
|
7692
7431
|
*/
|
|
7693
|
-
export const
|
|
7432
|
+
export const zPromptsGetPromptDirectorySummaryResponse = z.object({
|
|
7694
7433
|
code: z.number(),
|
|
7695
7434
|
data: z.object({
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7435
|
+
activeReleases: z.object({
|
|
7436
|
+
count: z.int(),
|
|
7437
|
+
environmentCount: z.int()
|
|
7438
|
+
}),
|
|
7439
|
+
fetches24h: z.object({
|
|
7440
|
+
count: z.int(),
|
|
7441
|
+
deltaPctVsPrev: z.number()
|
|
7442
|
+
}).nullable(),
|
|
7443
|
+
prompts: z.object({
|
|
7444
|
+
archived: z.int(),
|
|
7445
|
+
published: z.int(),
|
|
7446
|
+
total: z.int()
|
|
7447
|
+
}),
|
|
7448
|
+
rollbacks30d: z.object({
|
|
7449
|
+
count: z.int(),
|
|
7450
|
+
promotions: z.int()
|
|
7702
7451
|
})
|
|
7703
7452
|
}).nullable(),
|
|
7704
7453
|
error: z.object({
|
|
@@ -7724,63 +7473,17 @@ export const zPromptsListPromptLabelEventsByPromptResponse = z.object({
|
|
|
7724
7473
|
success: z.boolean()
|
|
7725
7474
|
});
|
|
7726
7475
|
|
|
7727
|
-
export const
|
|
7476
|
+
export const zPromptsArchivePromptPath = z.object({
|
|
7728
7477
|
projectId: z.string().min(1),
|
|
7729
7478
|
promptId: z.string()
|
|
7730
7479
|
});
|
|
7731
7480
|
|
|
7732
|
-
export const zPromptsListPromptLabelsQuery = z.object({
|
|
7733
|
-
asOf: z.string().nullish(),
|
|
7734
|
-
page: z.int().nullish(),
|
|
7735
|
-
limit: z.int().nullish()
|
|
7736
|
-
});
|
|
7737
|
-
|
|
7738
7481
|
/**
|
|
7739
7482
|
* Success
|
|
7740
7483
|
*/
|
|
7741
|
-
export const
|
|
7742
|
-
code: z.number(),
|
|
7743
|
-
data: z.array(zPromptLabelPointer).nullable(),
|
|
7744
|
-
error: z.object({
|
|
7745
|
-
code: z.string(),
|
|
7746
|
-
details: z.unknown().nullish(),
|
|
7747
|
-
message: z.string(),
|
|
7748
|
-
rowErrors: z.array(z.object({
|
|
7749
|
-
code: z.string(),
|
|
7750
|
-
message: z.string(),
|
|
7751
|
-
path: z.array(z.union([z.string(), z.number()]))
|
|
7752
|
-
})).nullish()
|
|
7753
|
-
}).nullable(),
|
|
7754
|
-
pagination: z.object({
|
|
7755
|
-
limit: z.int().gte(1).lte(100),
|
|
7756
|
-
page: z.int().gte(1),
|
|
7757
|
-
total: z.int().gte(0),
|
|
7758
|
-
totalPages: z.int().gte(0)
|
|
7759
|
-
}).nullable(),
|
|
7760
|
-
sdkBehavior: z.object({
|
|
7761
|
-
flags: z.record(z.string(), z.unknown()),
|
|
7762
|
-
v: z.int().gte(1)
|
|
7763
|
-
}).nullish(),
|
|
7764
|
-
success: z.boolean()
|
|
7765
|
-
});
|
|
7766
|
-
|
|
7767
|
-
export const zPromptsMovePromptLabelBody = z.object({
|
|
7768
|
-
reason: z.string().min(1),
|
|
7769
|
-
versionId: z.string()
|
|
7770
|
-
});
|
|
7771
|
-
|
|
7772
|
-
export const zPromptsMovePromptLabelPath = z.object({
|
|
7773
|
-
projectId: z.string().min(1),
|
|
7774
|
-
promptId: z.string(),
|
|
7775
|
-
label: z.string()
|
|
7776
|
-
});
|
|
7777
|
-
|
|
7778
|
-
/**
|
|
7779
|
-
* Success
|
|
7780
|
-
*/
|
|
7781
|
-
export const zPromptsMovePromptLabelResponse = z.object({
|
|
7484
|
+
export const zPromptsArchivePromptResponse = z.object({
|
|
7782
7485
|
code: z.number(),
|
|
7783
|
-
data:
|
|
7486
|
+
data: zPrompt.nullable(),
|
|
7784
7487
|
error: z.object({
|
|
7785
7488
|
code: z.string(),
|
|
7786
7489
|
details: z.unknown().nullish(),
|
|
@@ -7800,39 +7503,21 @@ export const zPromptsMovePromptLabelResponse = z.object({
|
|
|
7800
7503
|
sdkBehavior: z.object({
|
|
7801
7504
|
flags: z.record(z.string(), z.unknown()),
|
|
7802
7505
|
v: z.int().gte(1)
|
|
7803
|
-
}).nullish(),
|
|
7804
|
-
success: z.boolean()
|
|
7805
|
-
});
|
|
7806
|
-
|
|
7807
|
-
export const
|
|
7808
|
-
projectId: z.string().min(1),
|
|
7809
|
-
promptId: z.string()
|
|
7810
|
-
label: z.string()
|
|
7811
|
-
});
|
|
7812
|
-
|
|
7813
|
-
export const zPromptsListPromptLabelEventsByLabelQuery = z.object({
|
|
7814
|
-
page: z.string().nullish(),
|
|
7815
|
-
limit: z.string().nullish(),
|
|
7816
|
-
label: z.string().nullish(),
|
|
7817
|
-
promptId: z.string().nullish(),
|
|
7818
|
-
since: z.string().nullish(),
|
|
7819
|
-
until: z.string().nullish()
|
|
7506
|
+
}).nullish(),
|
|
7507
|
+
success: z.boolean()
|
|
7508
|
+
});
|
|
7509
|
+
|
|
7510
|
+
export const zPromptsGetPromptPath = z.object({
|
|
7511
|
+
projectId: z.string().min(1),
|
|
7512
|
+
promptId: z.string()
|
|
7820
7513
|
});
|
|
7821
7514
|
|
|
7822
7515
|
/**
|
|
7823
7516
|
* Success
|
|
7824
7517
|
*/
|
|
7825
|
-
export const
|
|
7518
|
+
export const zPromptsGetPromptResponse = z.object({
|
|
7826
7519
|
code: z.number(),
|
|
7827
|
-
data:
|
|
7828
|
-
items: z.array(zPromptLabelEvent),
|
|
7829
|
-
pagination: z.object({
|
|
7830
|
-
limit: z.number(),
|
|
7831
|
-
page: z.number(),
|
|
7832
|
-
total: z.number(),
|
|
7833
|
-
totalPages: z.number()
|
|
7834
|
-
})
|
|
7835
|
-
}).nullable(),
|
|
7520
|
+
data: zPrompt.nullable(),
|
|
7836
7521
|
error: z.object({
|
|
7837
7522
|
code: z.string(),
|
|
7838
7523
|
details: z.unknown().nullish(),
|
|
@@ -7856,27 +7541,25 @@ export const zPromptsListPromptLabelEventsByLabelResponse = z.object({
|
|
|
7856
7541
|
success: z.boolean()
|
|
7857
7542
|
});
|
|
7858
7543
|
|
|
7859
|
-
export const
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
})).min(1)
|
|
7544
|
+
export const zPromptsUpdatePromptBody = z.object({
|
|
7545
|
+
description: z.string().nullish(),
|
|
7546
|
+
name: z.string().min(1).max(200).nullish(),
|
|
7547
|
+
slug: z.string().min(1).max(128).regex(/^[a-z0-9-]+$/).nullish(),
|
|
7548
|
+
status: z.enum(['active', 'archived']).nullish(),
|
|
7549
|
+
tags: z.array(z.string()).nullish()
|
|
7866
7550
|
});
|
|
7867
7551
|
|
|
7868
|
-
export const
|
|
7552
|
+
export const zPromptsUpdatePromptPath = z.object({
|
|
7869
7553
|
projectId: z.string().min(1),
|
|
7870
|
-
promptId: z.string()
|
|
7871
|
-
label: z.string()
|
|
7554
|
+
promptId: z.string()
|
|
7872
7555
|
});
|
|
7873
7556
|
|
|
7874
7557
|
/**
|
|
7875
7558
|
* Success
|
|
7876
7559
|
*/
|
|
7877
|
-
export const
|
|
7560
|
+
export const zPromptsUpdatePromptResponse = z.object({
|
|
7878
7561
|
code: z.number(),
|
|
7879
|
-
data:
|
|
7562
|
+
data: zPrompt.nullable(),
|
|
7880
7563
|
error: z.object({
|
|
7881
7564
|
code: z.string(),
|
|
7882
7565
|
details: z.unknown().nullish(),
|
|
@@ -7900,32 +7583,19 @@ export const zPromptsSetWeightedReleaseResponse = z.object({
|
|
|
7900
7583
|
success: z.boolean()
|
|
7901
7584
|
});
|
|
7902
7585
|
|
|
7903
|
-
export const
|
|
7904
|
-
projectId: z.string(),
|
|
7905
|
-
promptId: z.string().min(1)
|
|
7906
|
-
});
|
|
7586
|
+
export const zPromptsImportPromptVersionBody = zImportPromptVersionInput;
|
|
7907
7587
|
|
|
7908
|
-
export const
|
|
7909
|
-
|
|
7588
|
+
export const zPromptsImportPromptVersionPath = z.object({
|
|
7589
|
+
projectId: z.string().min(1),
|
|
7590
|
+
promptId: z.string()
|
|
7910
7591
|
});
|
|
7911
7592
|
|
|
7912
7593
|
/**
|
|
7913
7594
|
* Success
|
|
7914
7595
|
*/
|
|
7915
|
-
export const
|
|
7596
|
+
export const zPromptsImportPromptVersionResponse = z.object({
|
|
7916
7597
|
code: z.number(),
|
|
7917
|
-
data:
|
|
7918
|
-
bucketMinutes: z.number(),
|
|
7919
|
-
series: z.array(z.object({
|
|
7920
|
-
points: z.array(z.object({
|
|
7921
|
-
bucketStart: z.string(),
|
|
7922
|
-
requests: z.number()
|
|
7923
|
-
})),
|
|
7924
|
-
totalRequests: z.number(),
|
|
7925
|
-
version: z.string()
|
|
7926
|
-
})),
|
|
7927
|
-
windowHours: z.number()
|
|
7928
|
-
}).nullable(),
|
|
7598
|
+
data: zPromptVersion.nullable(),
|
|
7929
7599
|
error: z.object({
|
|
7930
7600
|
code: z.string(),
|
|
7931
7601
|
details: z.unknown().nullish(),
|
|
@@ -7949,22 +7619,34 @@ export const zPromptMetricsGetPromptRequestMetricsResponse = z.object({
|
|
|
7949
7619
|
success: z.boolean()
|
|
7950
7620
|
});
|
|
7951
7621
|
|
|
7952
|
-
export const
|
|
7622
|
+
export const zPromptsListPromptLabelEventsByPromptPath = z.object({
|
|
7953
7623
|
projectId: z.string().min(1),
|
|
7954
7624
|
promptId: z.string()
|
|
7955
7625
|
});
|
|
7956
7626
|
|
|
7957
|
-
export const
|
|
7958
|
-
page: z.
|
|
7959
|
-
limit: z.
|
|
7627
|
+
export const zPromptsListPromptLabelEventsByPromptQuery = z.object({
|
|
7628
|
+
page: z.string().nullish(),
|
|
7629
|
+
limit: z.string().nullish(),
|
|
7630
|
+
label: z.string().nullish(),
|
|
7631
|
+
promptId: z.string().nullish(),
|
|
7632
|
+
since: z.string().nullish(),
|
|
7633
|
+
until: z.string().nullish()
|
|
7960
7634
|
});
|
|
7961
7635
|
|
|
7962
7636
|
/**
|
|
7963
7637
|
* Success
|
|
7964
7638
|
*/
|
|
7965
|
-
export const
|
|
7639
|
+
export const zPromptsListPromptLabelEventsByPromptResponse = z.object({
|
|
7966
7640
|
code: z.number(),
|
|
7967
|
-
data: z.
|
|
7641
|
+
data: z.object({
|
|
7642
|
+
items: z.array(zPromptLabelEvent),
|
|
7643
|
+
pagination: z.object({
|
|
7644
|
+
limit: z.number(),
|
|
7645
|
+
page: z.number(),
|
|
7646
|
+
total: z.number(),
|
|
7647
|
+
totalPages: z.number()
|
|
7648
|
+
})
|
|
7649
|
+
}).nullable(),
|
|
7968
7650
|
error: z.object({
|
|
7969
7651
|
code: z.string(),
|
|
7970
7652
|
details: z.unknown().nullish(),
|
|
@@ -7988,27 +7670,23 @@ export const zPromptsListPromptVersionsResponse = z.object({
|
|
|
7988
7670
|
success: z.boolean()
|
|
7989
7671
|
});
|
|
7990
7672
|
|
|
7991
|
-
export const
|
|
7992
|
-
allowBlockRemovals: z.array(z.string()).nullish(),
|
|
7993
|
-
baseVersionId: z.string().nullish(),
|
|
7994
|
-
changelog: z.string().nullish(),
|
|
7995
|
-
format: z.enum(['text', 'chat']),
|
|
7996
|
-
modelConfig: z.unknown().nullish(),
|
|
7997
|
-
templateJson: z.unknown(),
|
|
7998
|
-
variablesSchema: z.unknown().nullish()
|
|
7999
|
-
});
|
|
8000
|
-
|
|
8001
|
-
export const zPromptsCreatePromptVersionPath = z.object({
|
|
7673
|
+
export const zPromptsListPromptLabelsPath = z.object({
|
|
8002
7674
|
projectId: z.string().min(1),
|
|
8003
7675
|
promptId: z.string()
|
|
8004
7676
|
});
|
|
8005
7677
|
|
|
7678
|
+
export const zPromptsListPromptLabelsQuery = z.object({
|
|
7679
|
+
asOf: z.string().nullish(),
|
|
7680
|
+
page: z.int().nullish(),
|
|
7681
|
+
limit: z.int().nullish()
|
|
7682
|
+
});
|
|
7683
|
+
|
|
8006
7684
|
/**
|
|
8007
7685
|
* Success
|
|
8008
7686
|
*/
|
|
8009
|
-
export const
|
|
7687
|
+
export const zPromptsListPromptLabelsResponse = z.object({
|
|
8010
7688
|
code: z.number(),
|
|
8011
|
-
data:
|
|
7689
|
+
data: z.array(zPromptLabelPointer).nullable(),
|
|
8012
7690
|
error: z.object({
|
|
8013
7691
|
code: z.string(),
|
|
8014
7692
|
details: z.unknown().nullish(),
|
|
@@ -8032,133 +7710,23 @@ export const zPromptsCreatePromptVersionResponse = z.object({
|
|
|
8032
7710
|
success: z.boolean()
|
|
8033
7711
|
});
|
|
8034
7712
|
|
|
8035
|
-
export const
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
versionId: z.string().min(1)
|
|
7713
|
+
export const zPromptsMovePromptLabelBody = z.object({
|
|
7714
|
+
reason: z.string().min(1),
|
|
7715
|
+
versionId: z.string()
|
|
8039
7716
|
});
|
|
8040
7717
|
|
|
8041
|
-
export const
|
|
8042
|
-
|
|
7718
|
+
export const zPromptsMovePromptLabelPath = z.object({
|
|
7719
|
+
projectId: z.string().min(1),
|
|
7720
|
+
promptId: z.string(),
|
|
7721
|
+
label: z.string()
|
|
8043
7722
|
});
|
|
8044
7723
|
|
|
8045
7724
|
/**
|
|
8046
7725
|
* Success
|
|
8047
7726
|
*/
|
|
8048
|
-
export const
|
|
7727
|
+
export const zPromptsMovePromptLabelResponse = z.object({
|
|
8049
7728
|
code: z.number(),
|
|
8050
|
-
data:
|
|
8051
|
-
operations: z.array(z.union([
|
|
8052
|
-
z.object({
|
|
8053
|
-
condition: z.object({
|
|
8054
|
-
kind: z.string()
|
|
8055
|
-
}),
|
|
8056
|
-
content: z.string().nullish(),
|
|
8057
|
-
name: z.string(),
|
|
8058
|
-
op: z.enum(['add']),
|
|
8059
|
-
role: z.enum([
|
|
8060
|
-
'system',
|
|
8061
|
-
'user',
|
|
8062
|
-
'assistant',
|
|
8063
|
-
'developer',
|
|
8064
|
-
'tool'
|
|
8065
|
-
]),
|
|
8066
|
-
toolCallId: z.string().nullish(),
|
|
8067
|
-
toolCalls: z.array(z.object({
|
|
8068
|
-
arguments: z.record(z.string(), z.unknown()),
|
|
8069
|
-
id: z.string(),
|
|
8070
|
-
name: z.string()
|
|
8071
|
-
})).nullish()
|
|
8072
|
-
}),
|
|
8073
|
-
z.object({
|
|
8074
|
-
condition: z.object({
|
|
8075
|
-
kind: z.string()
|
|
8076
|
-
}),
|
|
8077
|
-
content: z.string().nullish(),
|
|
8078
|
-
name: z.string(),
|
|
8079
|
-
op: z.enum(['remove']),
|
|
8080
|
-
role: z.enum([
|
|
8081
|
-
'system',
|
|
8082
|
-
'user',
|
|
8083
|
-
'assistant',
|
|
8084
|
-
'developer',
|
|
8085
|
-
'tool'
|
|
8086
|
-
]),
|
|
8087
|
-
toolCallId: z.string().nullish(),
|
|
8088
|
-
toolCalls: z.array(z.object({
|
|
8089
|
-
arguments: z.record(z.string(), z.unknown()),
|
|
8090
|
-
id: z.string(),
|
|
8091
|
-
name: z.string()
|
|
8092
|
-
})).nullish()
|
|
8093
|
-
}),
|
|
8094
|
-
z.object({
|
|
8095
|
-
after: z.string(),
|
|
8096
|
-
before: z.string(),
|
|
8097
|
-
name: z.string(),
|
|
8098
|
-
op: z.enum(['edit_content'])
|
|
8099
|
-
}),
|
|
8100
|
-
z.object({
|
|
8101
|
-
after: z.object({
|
|
8102
|
-
kind: z.string()
|
|
8103
|
-
}),
|
|
8104
|
-
before: z.object({
|
|
8105
|
-
kind: z.string()
|
|
8106
|
-
}),
|
|
8107
|
-
name: z.string(),
|
|
8108
|
-
op: z.enum(['edit_condition'])
|
|
8109
|
-
}),
|
|
8110
|
-
z.object({
|
|
8111
|
-
after: z.enum([
|
|
8112
|
-
'system',
|
|
8113
|
-
'user',
|
|
8114
|
-
'assistant',
|
|
8115
|
-
'developer',
|
|
8116
|
-
'tool'
|
|
8117
|
-
]),
|
|
8118
|
-
before: z.enum([
|
|
8119
|
-
'system',
|
|
8120
|
-
'user',
|
|
8121
|
-
'assistant',
|
|
8122
|
-
'developer',
|
|
8123
|
-
'tool'
|
|
8124
|
-
]),
|
|
8125
|
-
name: z.string(),
|
|
8126
|
-
op: z.enum(['edit_role'])
|
|
8127
|
-
}),
|
|
8128
|
-
z.object({
|
|
8129
|
-
after: z.boolean(),
|
|
8130
|
-
before: z.boolean(),
|
|
8131
|
-
name: z.string(),
|
|
8132
|
-
op: z.enum(['edit_required'])
|
|
8133
|
-
}),
|
|
8134
|
-
z.object({
|
|
8135
|
-
after: z.string(),
|
|
8136
|
-
before: z.string(),
|
|
8137
|
-
name: z.string(),
|
|
8138
|
-
op: z.enum(['edit_tool_call_id'])
|
|
8139
|
-
}),
|
|
8140
|
-
z.object({
|
|
8141
|
-
after: z.array(z.object({
|
|
8142
|
-
arguments: z.record(z.string(), z.unknown()),
|
|
8143
|
-
id: z.string(),
|
|
8144
|
-
name: z.string()
|
|
8145
|
-
})),
|
|
8146
|
-
before: z.array(z.object({
|
|
8147
|
-
arguments: z.record(z.string(), z.unknown()),
|
|
8148
|
-
id: z.string(),
|
|
8149
|
-
name: z.string()
|
|
8150
|
-
})),
|
|
8151
|
-
name: z.string(),
|
|
8152
|
-
op: z.enum(['edit_tool_calls'])
|
|
8153
|
-
}),
|
|
8154
|
-
z.object({
|
|
8155
|
-
fromIndex: z.number(),
|
|
8156
|
-
name: z.string(),
|
|
8157
|
-
op: z.enum(['reorder']),
|
|
8158
|
-
toIndex: z.number()
|
|
8159
|
-
})
|
|
8160
|
-
]))
|
|
8161
|
-
}).nullable(),
|
|
7729
|
+
data: zPromptLabelPointer.nullable(),
|
|
8162
7730
|
error: z.object({
|
|
8163
7731
|
code: z.string(),
|
|
8164
7732
|
details: z.unknown().nullish(),
|
|
@@ -8182,18 +7750,35 @@ export const zPromptsGetPromptVersionDiffResponse = z.object({
|
|
|
8182
7750
|
success: z.boolean()
|
|
8183
7751
|
});
|
|
8184
7752
|
|
|
8185
|
-
export const
|
|
7753
|
+
export const zPromptsListPromptLabelEventsByLabelPath = z.object({
|
|
8186
7754
|
projectId: z.string().min(1),
|
|
8187
7755
|
promptId: z.string(),
|
|
8188
|
-
|
|
7756
|
+
label: z.string()
|
|
7757
|
+
});
|
|
7758
|
+
|
|
7759
|
+
export const zPromptsListPromptLabelEventsByLabelQuery = z.object({
|
|
7760
|
+
page: z.string().nullish(),
|
|
7761
|
+
limit: z.string().nullish(),
|
|
7762
|
+
label: z.string().nullish(),
|
|
7763
|
+
promptId: z.string().nullish(),
|
|
7764
|
+
since: z.string().nullish(),
|
|
7765
|
+
until: z.string().nullish()
|
|
8189
7766
|
});
|
|
8190
7767
|
|
|
8191
7768
|
/**
|
|
8192
7769
|
* Success
|
|
8193
7770
|
*/
|
|
8194
|
-
export const
|
|
7771
|
+
export const zPromptsListPromptLabelEventsByLabelResponse = z.object({
|
|
8195
7772
|
code: z.number(),
|
|
8196
|
-
data:
|
|
7773
|
+
data: z.object({
|
|
7774
|
+
items: z.array(zPromptLabelEvent),
|
|
7775
|
+
pagination: z.object({
|
|
7776
|
+
limit: z.number(),
|
|
7777
|
+
page: z.number(),
|
|
7778
|
+
total: z.number(),
|
|
7779
|
+
totalPages: z.number()
|
|
7780
|
+
})
|
|
7781
|
+
}).nullable(),
|
|
8197
7782
|
error: z.object({
|
|
8198
7783
|
code: z.string(),
|
|
8199
7784
|
details: z.unknown().nullish(),
|
|
@@ -8217,46 +7802,31 @@ export const zPromptsGetPromptVersionResponse = z.object({
|
|
|
8217
7802
|
success: z.boolean()
|
|
8218
7803
|
});
|
|
8219
7804
|
|
|
8220
|
-
export const
|
|
8221
|
-
projectId: z.string()
|
|
8222
|
-
promptId: z.string()
|
|
8223
|
-
|
|
7805
|
+
export const zPromptMetricsGetPromptRequestMetricsPath = z.object({
|
|
7806
|
+
projectId: z.string(),
|
|
7807
|
+
promptId: z.string().min(1)
|
|
7808
|
+
});
|
|
7809
|
+
|
|
7810
|
+
export const zPromptMetricsGetPromptRequestMetricsQuery = z.object({
|
|
7811
|
+
window: z.string().nullish()
|
|
8224
7812
|
});
|
|
8225
7813
|
|
|
8226
7814
|
/**
|
|
8227
7815
|
* Success
|
|
8228
7816
|
*/
|
|
8229
|
-
export const
|
|
7817
|
+
export const zPromptMetricsGetPromptRequestMetricsResponse = z.object({
|
|
8230
7818
|
code: z.number(),
|
|
8231
7819
|
data: z.object({
|
|
8232
|
-
|
|
8233
|
-
|
|
8234
|
-
|
|
8235
|
-
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
8239
|
-
|
|
8240
|
-
hasActiveRejection: z.boolean(),
|
|
8241
|
-
reviewId: z.string(),
|
|
8242
|
-
reviewerPrincipalId: z.string()
|
|
7820
|
+
bucketMinutes: z.number(),
|
|
7821
|
+
series: z.array(z.object({
|
|
7822
|
+
points: z.array(z.object({
|
|
7823
|
+
bucketStart: z.string(),
|
|
7824
|
+
requests: z.number()
|
|
7825
|
+
})),
|
|
7826
|
+
totalRequests: z.number(),
|
|
7827
|
+
version: z.string()
|
|
8243
7828
|
})),
|
|
8244
|
-
|
|
8245
|
-
callerHasActiveRejection: z.boolean(),
|
|
8246
|
-
hasActiveRejection: z.boolean(),
|
|
8247
|
-
reviews: z.array(z.object({
|
|
8248
|
-
createdAt: z.iso.datetime(),
|
|
8249
|
-
decision: z.enum([
|
|
8250
|
-
'approve',
|
|
8251
|
-
'reject',
|
|
8252
|
-
'request_changes',
|
|
8253
|
-
'withdraw'
|
|
8254
|
-
]),
|
|
8255
|
-
id: z.string(),
|
|
8256
|
-
note: z.string().nullable(),
|
|
8257
|
-
reviewerDisplayName: z.string().nullable(),
|
|
8258
|
-
reviewerPrincipalId: z.string()
|
|
8259
|
-
}))
|
|
7829
|
+
windowHours: z.number()
|
|
8260
7830
|
}).nullable(),
|
|
8261
7831
|
error: z.object({
|
|
8262
7832
|
code: z.string(),
|
|
@@ -8281,44 +7851,22 @@ export const zPromptsGetPromptReviewStateResponse = z.object({
|
|
|
8281
7851
|
success: z.boolean()
|
|
8282
7852
|
});
|
|
8283
7853
|
|
|
8284
|
-
export const
|
|
8285
|
-
|
|
8286
|
-
|
|
8287
|
-
'reject',
|
|
8288
|
-
'request_changes'
|
|
8289
|
-
]),
|
|
8290
|
-
note: z.string().max(4000).nullish()
|
|
7854
|
+
export const zPromptsListPromptVersionsPath = z.object({
|
|
7855
|
+
projectId: z.string().min(1),
|
|
7856
|
+
promptId: z.string()
|
|
8291
7857
|
});
|
|
8292
7858
|
|
|
8293
|
-
export const
|
|
8294
|
-
|
|
8295
|
-
|
|
8296
|
-
versionNumber: z.string()
|
|
7859
|
+
export const zPromptsListPromptVersionsQuery = z.object({
|
|
7860
|
+
page: z.int().nullish(),
|
|
7861
|
+
limit: z.int().nullish()
|
|
8297
7862
|
});
|
|
8298
7863
|
|
|
8299
7864
|
/**
|
|
8300
7865
|
* Success
|
|
8301
7866
|
*/
|
|
8302
|
-
export const
|
|
7867
|
+
export const zPromptsListPromptVersionsResponse = z.object({
|
|
8303
7868
|
code: z.number(),
|
|
8304
|
-
data: z.
|
|
8305
|
-
approvalState: z.object({
|
|
8306
|
-
approvalCount: z.number(),
|
|
8307
|
-
hasActiveRejection: z.boolean()
|
|
8308
|
-
}),
|
|
8309
|
-
review: z.object({
|
|
8310
|
-
createdAt: z.iso.datetime(),
|
|
8311
|
-
decision: z.enum([
|
|
8312
|
-
'approve',
|
|
8313
|
-
'reject',
|
|
8314
|
-
'request_changes',
|
|
8315
|
-
'withdraw'
|
|
8316
|
-
]),
|
|
8317
|
-
id: z.string(),
|
|
8318
|
-
note: z.string().nullable(),
|
|
8319
|
-
reviewerPrincipalId: z.string()
|
|
8320
|
-
})
|
|
8321
|
-
}).nullable(),
|
|
7869
|
+
data: z.array(zPromptVersion).nullable(),
|
|
8322
7870
|
error: z.object({
|
|
8323
7871
|
code: z.string(),
|
|
8324
7872
|
details: z.unknown().nullish(),
|
|
@@ -8342,39 +7890,31 @@ export const zPromptsSubmitPromptReviewResponse = z.object({
|
|
|
8342
7890
|
success: z.boolean()
|
|
8343
7891
|
});
|
|
8344
7892
|
|
|
8345
|
-
export const
|
|
8346
|
-
|
|
7893
|
+
export const zPromptsCreatePromptVersionBody = z.object({
|
|
7894
|
+
allowBlockRemovals: z.array(z.string()).nullish(),
|
|
7895
|
+
baseVersionId: z.string().nullish(),
|
|
7896
|
+
changelog: z.string().nullish(),
|
|
7897
|
+
format: z.enum([
|
|
7898
|
+
'text',
|
|
7899
|
+
'chat',
|
|
7900
|
+
'skill'
|
|
7901
|
+
]),
|
|
7902
|
+
modelConfig: z.unknown().nullish(),
|
|
7903
|
+
templateJson: z.unknown(),
|
|
7904
|
+
variablesSchema: z.unknown().nullish()
|
|
8347
7905
|
});
|
|
8348
7906
|
|
|
8349
|
-
export const
|
|
7907
|
+
export const zPromptsCreatePromptVersionPath = z.object({
|
|
8350
7908
|
projectId: z.string().min(1),
|
|
8351
|
-
promptId: z.string()
|
|
8352
|
-
versionNumber: z.string()
|
|
7909
|
+
promptId: z.string()
|
|
8353
7910
|
});
|
|
8354
7911
|
|
|
8355
7912
|
/**
|
|
8356
7913
|
* Success
|
|
8357
7914
|
*/
|
|
8358
|
-
export const
|
|
7915
|
+
export const zPromptsCreatePromptVersionResponse = z.object({
|
|
8359
7916
|
code: z.number(),
|
|
8360
|
-
data:
|
|
8361
|
-
approvalState: z.object({
|
|
8362
|
-
approvalCount: z.number(),
|
|
8363
|
-
hasActiveRejection: z.boolean()
|
|
8364
|
-
}),
|
|
8365
|
-
review: z.object({
|
|
8366
|
-
createdAt: z.iso.datetime(),
|
|
8367
|
-
decision: z.enum([
|
|
8368
|
-
'approve',
|
|
8369
|
-
'reject',
|
|
8370
|
-
'request_changes',
|
|
8371
|
-
'withdraw'
|
|
8372
|
-
]),
|
|
8373
|
-
id: z.string(),
|
|
8374
|
-
note: z.string().nullable(),
|
|
8375
|
-
reviewerPrincipalId: z.string()
|
|
8376
|
-
})
|
|
8377
|
-
}).nullable(),
|
|
7917
|
+
data: zPromptVersion.nullable(),
|
|
8378
7918
|
error: z.object({
|
|
8379
7919
|
code: z.string(),
|
|
8380
7920
|
details: z.unknown().nullish(),
|
|
@@ -8398,23 +7938,18 @@ export const zPromptsWithdrawPromptReviewResponse = z.object({
|
|
|
8398
7938
|
success: z.boolean()
|
|
8399
7939
|
});
|
|
8400
7940
|
|
|
8401
|
-
export const
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
|
|
8405
|
-
variables: z.record(z.string(), z.unknown()).nullish()
|
|
8406
|
-
});
|
|
8407
|
-
|
|
8408
|
-
export const zPromptsResolvePromptPath = z.object({
|
|
8409
|
-
projectId: z.string().min(1)
|
|
7941
|
+
export const zPromptsGetPromptVersionPath = z.object({
|
|
7942
|
+
projectId: z.string().min(1),
|
|
7943
|
+
promptId: z.string(),
|
|
7944
|
+
versionNumber: z.string()
|
|
8410
7945
|
});
|
|
8411
7946
|
|
|
8412
7947
|
/**
|
|
8413
7948
|
* Success
|
|
8414
7949
|
*/
|
|
8415
|
-
export const
|
|
7950
|
+
export const zPromptsGetPromptVersionResponse = z.object({
|
|
8416
7951
|
code: z.number(),
|
|
8417
|
-
data:
|
|
7952
|
+
data: zPromptVersion.nullable(),
|
|
8418
7953
|
error: z.object({
|
|
8419
7954
|
code: z.string(),
|
|
8420
7955
|
details: z.unknown().nullish(),
|
|
@@ -9627,7 +9162,7 @@ export const zRoutingProvidersCreateRoutingProviderBody = z.object({
|
|
|
9627
9162
|
value: z.string().min(1).max(64).regex(/^[a-z0-9]([a-z0-9_-]*[a-z0-9])?$/)
|
|
9628
9163
|
}).nullish(),
|
|
9629
9164
|
slug: z.string().min(1).max(120).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
|
|
9630
|
-
timeoutMs: z.int().gte(1000).lte(
|
|
9165
|
+
timeoutMs: z.int().gte(1000).lte(600000).nullish()
|
|
9631
9166
|
});
|
|
9632
9167
|
|
|
9633
9168
|
export const zRoutingProvidersCreateRoutingProviderPath = z.object({
|
|
@@ -9758,6 +9293,7 @@ export const zRoutingProvidersCreateRoutingProviderResponse = z.object({
|
|
|
9758
9293
|
});
|
|
9759
9294
|
|
|
9760
9295
|
export const zRoutingProvidersConnectRoutingProviderBody = z.object({
|
|
9296
|
+
blockedModels: z.array(z.string().min(1).max(256)).max(500).nullish(),
|
|
9761
9297
|
credential: z.union([
|
|
9762
9298
|
z.union([
|
|
9763
9299
|
z.object({
|
|
@@ -9798,6 +9334,7 @@ export const zRoutingProvidersConnectRoutingProviderBody = z.object({
|
|
|
9798
9334
|
type: z.enum(['existing'])
|
|
9799
9335
|
})
|
|
9800
9336
|
]),
|
|
9337
|
+
modelPolicy: z.enum(['allowlist', 'denylist']).nullish(),
|
|
9801
9338
|
models: z.array(z.string().min(1)).max(500),
|
|
9802
9339
|
provider: z.object({
|
|
9803
9340
|
apiVersion: z.string().min(1).max(64).nullish(),
|
|
@@ -9818,7 +9355,7 @@ export const zRoutingProvidersConnectRoutingProviderBody = z.object({
|
|
|
9818
9355
|
value: z.string().min(1).max(64).regex(/^[a-z0-9]([a-z0-9_-]*[a-z0-9])?$/)
|
|
9819
9356
|
}).nullish(),
|
|
9820
9357
|
slug: z.string().min(1).max(120).regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
|
|
9821
|
-
timeoutMs: z.int().gte(1000).lte(
|
|
9358
|
+
timeoutMs: z.int().gte(1000).lte(600000).nullish()
|
|
9822
9359
|
}),
|
|
9823
9360
|
selectedEnvironmentIds: z.array(z.string().min(1)).max(64).nullish()
|
|
9824
9361
|
});
|
|
@@ -10314,7 +9851,7 @@ export const zRoutingProvidersUpdateRoutingProviderBody = z.object({
|
|
|
10314
9851
|
providerRegion: z.string().min(1).max(64).regex(/^[a-z0-9]([a-z0-9_-]*[a-z0-9])?$/).nullish(),
|
|
10315
9852
|
providerTier: z.string().min(1).max(64).regex(/^[a-z0-9]([a-z0-9_-]*[a-z0-9])?$/).nullish(),
|
|
10316
9853
|
slug: z.unknown().nullish(),
|
|
10317
|
-
timeoutMs: z.int().gte(1000).lte(
|
|
9854
|
+
timeoutMs: z.int().gte(1000).lte(600000).nullish()
|
|
10318
9855
|
});
|
|
10319
9856
|
|
|
10320
9857
|
export const zRoutingProvidersUpdateRoutingProviderPath = z.object({
|
|
@@ -10928,7 +10465,9 @@ export const zProviderConfigDraftsGetProviderDraftResponse = z.object({
|
|
|
10928
10465
|
export const zProviderConfigDraftsUpdateProviderDraftBody = z.object({
|
|
10929
10466
|
configSnapshotPatch: z.object({
|
|
10930
10467
|
baseUrl: z.string().nullish(),
|
|
10468
|
+
blockedModels: z.array(z.string().min(1).max(256)).max(500).nullish(),
|
|
10931
10469
|
customModelIds: z.array(z.string()).nullish(),
|
|
10470
|
+
modelPolicy: z.enum(['allowlist', 'denylist']).nullish(),
|
|
10932
10471
|
models: z.array(z.string()).nullish(),
|
|
10933
10472
|
passthroughMode: z.enum([
|
|
10934
10473
|
'managed_precedence',
|
|
@@ -12612,7 +12151,7 @@ export const zRoutingTargetsCreateRoutingTargetBody = z.object({
|
|
|
12612
12151
|
credentialId: z.string().nullish(),
|
|
12613
12152
|
modelId: z.string().min(1),
|
|
12614
12153
|
name: z.string().min(1).max(200),
|
|
12615
|
-
timeoutMs: z.int().gte(1000).lte(
|
|
12154
|
+
timeoutMs: z.int().gte(1000).lte(600000).nullish(),
|
|
12616
12155
|
weight: z.int().gte(1).nullish()
|
|
12617
12156
|
});
|
|
12618
12157
|
|
|
@@ -12743,7 +12282,7 @@ export const zRoutingTargetsUpdateRoutingTargetBody = z.object({
|
|
|
12743
12282
|
credentialId: z.string().nullish(),
|
|
12744
12283
|
modelId: z.string().min(1).nullish(),
|
|
12745
12284
|
name: z.string().min(1).max(200).nullish(),
|
|
12746
|
-
timeoutMs: z.int().gte(1000).lte(
|
|
12285
|
+
timeoutMs: z.int().gte(1000).lte(600000).nullish(),
|
|
12747
12286
|
weight: z.int().gte(1).nullish()
|
|
12748
12287
|
});
|
|
12749
12288
|
|
|
@@ -13641,7 +13180,8 @@ export const zProjectsListProjectsResponse = z.object({
|
|
|
13641
13180
|
'deleted'
|
|
13642
13181
|
]),
|
|
13643
13182
|
updatedAt: z.iso.datetime(),
|
|
13644
|
-
workspaceId: z.string()
|
|
13183
|
+
workspaceId: z.string(),
|
|
13184
|
+
workspaceSlug: z.string().min(1).max(120)
|
|
13645
13185
|
})).nullable(),
|
|
13646
13186
|
error: z.object({
|
|
13647
13187
|
code: z.string(),
|
|
@@ -13694,7 +13234,8 @@ export const zProjectsCreateProjectResponse = z.object({
|
|
|
13694
13234
|
'deleted'
|
|
13695
13235
|
]),
|
|
13696
13236
|
updatedAt: z.iso.datetime(),
|
|
13697
|
-
workspaceId: z.string()
|
|
13237
|
+
workspaceId: z.string(),
|
|
13238
|
+
workspaceSlug: z.string().min(1).max(120)
|
|
13698
13239
|
}).nullable(),
|
|
13699
13240
|
error: z.object({
|
|
13700
13241
|
code: z.string(),
|