@to11ai/sdk 1.1.0 → 2.0.0-rc.10
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 +99 -258
- package/dist/client.cjs +91 -45
- package/dist/client.d.ts +149 -61
- package/dist/client.js +95 -55
- package/dist/config.d.ts +9 -0
- package/dist/context.d.ts +124 -0
- package/dist/errors.cjs +36 -24
- package/dist/errors.d.ts +35 -46
- package/dist/errors.js +36 -24
- package/dist/gateway.cjs +85 -31
- package/dist/gateway.d.ts +102 -27
- package/dist/gateway.js +85 -31
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +2802 -502
- package/dist/generated/zod.gen.d.ts +1018 -243
- package/dist/prompts/resource.cjs +80 -113
- package/dist/prompts/resource.d.ts +60 -39
- package/dist/prompts/resource.js +84 -113
- package/dist/prompts/shape.d.ts +56 -0
- package/dist/prompts/types.d.ts +76 -61
- package/dist/transport.d.ts +2 -6
- package/package.json +5 -11
- package/src/client.ts +332 -157
- package/src/config.ts +13 -0
- package/src/context.ts +196 -0
- package/src/errors.ts +65 -79
- package/src/gateway.ts +212 -67
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +2977 -611
- package/src/generated/zod.gen.ts +1029 -338
- package/src/prompts/resource.ts +211 -226
- package/src/prompts/shape.ts +152 -0
- package/src/prompts/types.ts +77 -65
- package/src/transport.ts +53 -40
- package/dist/prompts/cache.d.ts +0 -59
- package/dist/routingRules/resource.cjs +0 -138
- package/dist/routingRules/resource.js +0 -98
- package/src/prompts/cache.ts +0 -157
package/src/generated/zod.gen.ts
CHANGED
|
@@ -34,6 +34,22 @@ export const zConflictError = z.object({
|
|
|
34
34
|
success: z.literal(false)
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
+
export const zContentTooLargeError = z.object({
|
|
38
|
+
_tag: z.enum(['ContentTooLargeError']),
|
|
39
|
+
code: z.number(),
|
|
40
|
+
error: z.object({
|
|
41
|
+
code: z.string(),
|
|
42
|
+
details: z.unknown().nullish(),
|
|
43
|
+
message: z.string(),
|
|
44
|
+
rowErrors: z.array(z.object({
|
|
45
|
+
code: z.string(),
|
|
46
|
+
message: z.string(),
|
|
47
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
48
|
+
})).nullish()
|
|
49
|
+
}),
|
|
50
|
+
success: z.literal(false)
|
|
51
|
+
});
|
|
52
|
+
|
|
37
53
|
export const zForbiddenError = z.object({
|
|
38
54
|
_tag: z.enum(['ForbiddenError']),
|
|
39
55
|
code: z.number(),
|
|
@@ -220,12 +236,8 @@ export const zPrompt = z.object({
|
|
|
220
236
|
id: z.string(),
|
|
221
237
|
name: z.string().min(1).max(200),
|
|
222
238
|
projectId: z.string(),
|
|
223
|
-
slug: z.string().min(1).max(
|
|
224
|
-
status: z.enum([
|
|
225
|
-
'active',
|
|
226
|
-
'draft',
|
|
227
|
-
'archived'
|
|
228
|
-
]),
|
|
239
|
+
slug: z.string().min(1).max(128).regex(/^[a-z0-9-]+$/),
|
|
240
|
+
status: z.enum(['active', 'archived']),
|
|
229
241
|
tags: z.array(z.string()),
|
|
230
242
|
updatedAt: z.iso.datetime()
|
|
231
243
|
});
|
|
@@ -350,7 +362,8 @@ export const zResolvedToolDefinition = z.object({
|
|
|
350
362
|
export const zResolvedPrompt = z.object({
|
|
351
363
|
blockRenderRecord: z.record(z.string(), z.enum(['rendered', 'dimmed'])).nullish(),
|
|
352
364
|
contentHash: z.string(),
|
|
353
|
-
|
|
365
|
+
label: z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/),
|
|
366
|
+
modelConfig: z.unknown().nullish(),
|
|
354
367
|
promptId: z.string(),
|
|
355
368
|
releaseId: z.string(),
|
|
356
369
|
rendered: zRenderedPrompt,
|
|
@@ -1516,14 +1529,8 @@ export const zAuthResolveExternalPrincipalResponse = z.object({
|
|
|
1516
1529
|
});
|
|
1517
1530
|
|
|
1518
1531
|
export const zDataCentersListDataCentersQuery = z.object({
|
|
1519
|
-
page: z.
|
|
1520
|
-
|
|
1521
|
-
z.string()
|
|
1522
|
-
]).nullish(),
|
|
1523
|
-
limit: z.union([
|
|
1524
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
1525
|
-
z.string()
|
|
1526
|
-
]).nullish(),
|
|
1532
|
+
page: z.int().nullish(),
|
|
1533
|
+
limit: z.int().nullish(),
|
|
1527
1534
|
search: z.string().nullish(),
|
|
1528
1535
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
1529
1536
|
status: z.enum(['active', 'deprecated']).nullish(),
|
|
@@ -1797,14 +1804,8 @@ export const zDataCentersListDataCenterAuditEntriesPath = z.object({
|
|
|
1797
1804
|
});
|
|
1798
1805
|
|
|
1799
1806
|
export const zDataCentersListDataCenterAuditEntriesQuery = z.object({
|
|
1800
|
-
page: z.
|
|
1801
|
-
|
|
1802
|
-
z.string()
|
|
1803
|
-
]).nullish(),
|
|
1804
|
-
limit: z.union([
|
|
1805
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
1806
|
-
z.string()
|
|
1807
|
-
]).nullish(),
|
|
1807
|
+
page: z.int().nullish(),
|
|
1808
|
+
limit: z.int().nullish(),
|
|
1808
1809
|
search: z.string().nullish(),
|
|
1809
1810
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
1810
1811
|
action: z.enum([
|
|
@@ -2004,24 +2005,27 @@ export const zOrganizationsGetOrganizationInvitationDetailsResponse = z.object({
|
|
|
2004
2005
|
success: z.boolean()
|
|
2005
2006
|
});
|
|
2006
2007
|
|
|
2008
|
+
export const zApiKeysListApiKeysSuperQuery = z.object({
|
|
2009
|
+
page: z.int().nullish(),
|
|
2010
|
+
limit: z.int().nullish()
|
|
2011
|
+
});
|
|
2012
|
+
|
|
2007
2013
|
/**
|
|
2008
2014
|
* Success
|
|
2009
2015
|
*/
|
|
2010
2016
|
export const zApiKeysListApiKeysSuperResponse = z.object({
|
|
2011
2017
|
code: z.number(),
|
|
2012
|
-
data: z.object({
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
}))
|
|
2024
|
-
}).nullable(),
|
|
2018
|
+
data: z.array(z.object({
|
|
2019
|
+
createdAt: z.string(),
|
|
2020
|
+
environment: z.enum(['live', 'test']),
|
|
2021
|
+
expiresAt: z.string(),
|
|
2022
|
+
id: z.string(),
|
|
2023
|
+
key: z.string(),
|
|
2024
|
+
orgId: z.string().nullable(),
|
|
2025
|
+
projectId: z.string().nullable(),
|
|
2026
|
+
revokedAt: z.string().nullable(),
|
|
2027
|
+
scopes: z.array(z.string())
|
|
2028
|
+
})).nullable(),
|
|
2025
2029
|
error: z.object({
|
|
2026
2030
|
code: z.string(),
|
|
2027
2031
|
details: z.unknown().nullish(),
|
|
@@ -2133,8 +2137,8 @@ export const zCostRatesListBuiltinCostRatesQuery = z.object({
|
|
|
2133
2137
|
'reasoning'
|
|
2134
2138
|
]).nullish(),
|
|
2135
2139
|
asOf: z.string().nullish(),
|
|
2136
|
-
page: z.
|
|
2137
|
-
limit: z.
|
|
2140
|
+
page: z.int().nullish(),
|
|
2141
|
+
limit: z.int().nullish(),
|
|
2138
2142
|
includeDeleted: z.enum(['true', 'false']).nullish()
|
|
2139
2143
|
});
|
|
2140
2144
|
|
|
@@ -2197,14 +2201,8 @@ export const zCostRatesListBuiltinCostRatesResponse = z.object({
|
|
|
2197
2201
|
});
|
|
2198
2202
|
|
|
2199
2203
|
export const zOrganizationsListOrganizationsQuery = z.object({
|
|
2200
|
-
page: z.
|
|
2201
|
-
|
|
2202
|
-
z.string()
|
|
2203
|
-
]).nullish(),
|
|
2204
|
-
limit: z.union([
|
|
2205
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
2206
|
-
z.string()
|
|
2207
|
-
]).nullish(),
|
|
2204
|
+
page: z.int().nullish(),
|
|
2205
|
+
limit: z.int().nullish(),
|
|
2208
2206
|
search: z.string().nullish(),
|
|
2209
2207
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
2210
2208
|
status: z.enum([
|
|
@@ -2461,6 +2459,128 @@ export const zOrganizationsUpdateOrganizationResponse = z.object({
|
|
|
2461
2459
|
success: z.boolean()
|
|
2462
2460
|
});
|
|
2463
2461
|
|
|
2462
|
+
export const zOrgAuditListOrgAuditEventsPath = z.object({
|
|
2463
|
+
orgId: z.string().min(1)
|
|
2464
|
+
});
|
|
2465
|
+
|
|
2466
|
+
export const zOrgAuditListOrgAuditEventsQuery = z.object({
|
|
2467
|
+
resource_type: z.string().nullish(),
|
|
2468
|
+
event_type: z.string().nullish(),
|
|
2469
|
+
actor_id: z.string().nullish(),
|
|
2470
|
+
workspace_id: z.string().nullish(),
|
|
2471
|
+
since: z.string().nullish(),
|
|
2472
|
+
until: z.string().nullish(),
|
|
2473
|
+
limit: z.string().nullish(),
|
|
2474
|
+
cursor: z.string().nullish()
|
|
2475
|
+
});
|
|
2476
|
+
|
|
2477
|
+
/**
|
|
2478
|
+
* Success
|
|
2479
|
+
*/
|
|
2480
|
+
export const zOrgAuditListOrgAuditEventsResponse = z.object({
|
|
2481
|
+
code: z.number(),
|
|
2482
|
+
data: z.object({
|
|
2483
|
+
items: z.array(z.object({
|
|
2484
|
+
actorId: z.string(),
|
|
2485
|
+
actorType: z.enum([
|
|
2486
|
+
'user',
|
|
2487
|
+
'api_key',
|
|
2488
|
+
'worker'
|
|
2489
|
+
]),
|
|
2490
|
+
afterState: z.unknown().nullable(),
|
|
2491
|
+
beforeState: z.unknown().nullable(),
|
|
2492
|
+
createdAt: z.string(),
|
|
2493
|
+
eventType: z.string(),
|
|
2494
|
+
id: z.string(),
|
|
2495
|
+
organizationId: z.string().nullable(),
|
|
2496
|
+
reason: z.string().nullable(),
|
|
2497
|
+
resourceId: z.string(),
|
|
2498
|
+
resourceType: z.enum([
|
|
2499
|
+
'role',
|
|
2500
|
+
'organization',
|
|
2501
|
+
'organization_invitation',
|
|
2502
|
+
'workspace',
|
|
2503
|
+
'platform_setting',
|
|
2504
|
+
'api_key'
|
|
2505
|
+
]),
|
|
2506
|
+
scope: z.enum(['organization', 'system']),
|
|
2507
|
+
workspaceId: z.string().nullable()
|
|
2508
|
+
})),
|
|
2509
|
+
pagination: z.object({
|
|
2510
|
+
nextCursor: z.string().nullable()
|
|
2511
|
+
})
|
|
2512
|
+
}).nullable(),
|
|
2513
|
+
error: z.object({
|
|
2514
|
+
code: z.string(),
|
|
2515
|
+
details: z.unknown().nullish(),
|
|
2516
|
+
message: z.string(),
|
|
2517
|
+
rowErrors: z.array(z.object({
|
|
2518
|
+
code: z.string(),
|
|
2519
|
+
message: z.string(),
|
|
2520
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
2521
|
+
})).nullish()
|
|
2522
|
+
}).nullable(),
|
|
2523
|
+
pagination: z.object({
|
|
2524
|
+
limit: z.int().gte(1).lte(100),
|
|
2525
|
+
page: z.int().gte(1),
|
|
2526
|
+
total: z.int().gte(0),
|
|
2527
|
+
totalPages: z.int().gte(0)
|
|
2528
|
+
}).nullable(),
|
|
2529
|
+
sdkBehavior: z.object({
|
|
2530
|
+
flags: z.record(z.string(), z.unknown()),
|
|
2531
|
+
v: z.int().gte(1)
|
|
2532
|
+
}).nullish(),
|
|
2533
|
+
success: z.boolean()
|
|
2534
|
+
});
|
|
2535
|
+
|
|
2536
|
+
export const zOrgAuditExportExportOrgAuditEventsPath = z.object({
|
|
2537
|
+
orgId: z.string().min(1)
|
|
2538
|
+
});
|
|
2539
|
+
|
|
2540
|
+
export const zOrgAuditExportExportOrgAuditEventsQuery = z.object({
|
|
2541
|
+
format: z.enum(['csv', 'json']).nullish(),
|
|
2542
|
+
resource_type: z.string().nullish(),
|
|
2543
|
+
event_type: z.string().nullish(),
|
|
2544
|
+
actor_id: z.string().nullish(),
|
|
2545
|
+
workspace_id: z.string().nullish(),
|
|
2546
|
+
since: z.string().nullish(),
|
|
2547
|
+
until: z.string().nullish()
|
|
2548
|
+
});
|
|
2549
|
+
|
|
2550
|
+
/**
|
|
2551
|
+
* Success
|
|
2552
|
+
*/
|
|
2553
|
+
export const zOrgAuditExportExportOrgAuditEventsResponse = z.object({
|
|
2554
|
+
code: z.number(),
|
|
2555
|
+
data: z.object({
|
|
2556
|
+
content: z.string(),
|
|
2557
|
+
exportedAt: z.string(),
|
|
2558
|
+
format: z.enum(['csv', 'json']),
|
|
2559
|
+
rowCount: z.number()
|
|
2560
|
+
}).nullable(),
|
|
2561
|
+
error: z.object({
|
|
2562
|
+
code: z.string(),
|
|
2563
|
+
details: z.unknown().nullish(),
|
|
2564
|
+
message: z.string(),
|
|
2565
|
+
rowErrors: z.array(z.object({
|
|
2566
|
+
code: z.string(),
|
|
2567
|
+
message: z.string(),
|
|
2568
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
2569
|
+
})).nullish()
|
|
2570
|
+
}).nullable(),
|
|
2571
|
+
pagination: z.object({
|
|
2572
|
+
limit: z.int().gte(1).lte(100),
|
|
2573
|
+
page: z.int().gte(1),
|
|
2574
|
+
total: z.int().gte(0),
|
|
2575
|
+
totalPages: z.int().gte(0)
|
|
2576
|
+
}).nullable(),
|
|
2577
|
+
sdkBehavior: z.object({
|
|
2578
|
+
flags: z.record(z.string(), z.unknown()),
|
|
2579
|
+
v: z.int().gte(1)
|
|
2580
|
+
}).nullish(),
|
|
2581
|
+
success: z.boolean()
|
|
2582
|
+
});
|
|
2583
|
+
|
|
2464
2584
|
export const zDashboardingGetOrganizationPersesLaunchPath = z.object({
|
|
2465
2585
|
orgId: z.string()
|
|
2466
2586
|
});
|
|
@@ -2542,14 +2662,8 @@ export const zOrganizationsListOrganizationInvitationsPath = z.object({
|
|
|
2542
2662
|
});
|
|
2543
2663
|
|
|
2544
2664
|
export const zOrganizationsListOrganizationInvitationsQuery = z.object({
|
|
2545
|
-
page: z.
|
|
2546
|
-
|
|
2547
|
-
z.string()
|
|
2548
|
-
]).nullish(),
|
|
2549
|
-
limit: z.union([
|
|
2550
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
2551
|
-
z.string()
|
|
2552
|
-
]).nullish(),
|
|
2665
|
+
page: z.int().nullish(),
|
|
2666
|
+
limit: z.int().nullish(),
|
|
2553
2667
|
search: z.string().nullish(),
|
|
2554
2668
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
2555
2669
|
status: z.enum([
|
|
@@ -2817,24 +2931,27 @@ export const zApiKeysListApiKeysOrgPath = z.object({
|
|
|
2817
2931
|
orgId: z.string()
|
|
2818
2932
|
});
|
|
2819
2933
|
|
|
2934
|
+
export const zApiKeysListApiKeysOrgQuery = z.object({
|
|
2935
|
+
page: z.int().nullish(),
|
|
2936
|
+
limit: z.int().nullish()
|
|
2937
|
+
});
|
|
2938
|
+
|
|
2820
2939
|
/**
|
|
2821
2940
|
* Success
|
|
2822
2941
|
*/
|
|
2823
2942
|
export const zApiKeysListApiKeysOrgResponse = z.object({
|
|
2824
2943
|
code: z.number(),
|
|
2825
|
-
data: z.object({
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
}))
|
|
2837
|
-
}).nullable(),
|
|
2944
|
+
data: z.array(z.object({
|
|
2945
|
+
createdAt: z.string(),
|
|
2946
|
+
environment: z.enum(['live', 'test']),
|
|
2947
|
+
expiresAt: z.string(),
|
|
2948
|
+
id: z.string(),
|
|
2949
|
+
key: z.string(),
|
|
2950
|
+
orgId: z.string().nullable(),
|
|
2951
|
+
projectId: z.string().nullable(),
|
|
2952
|
+
revokedAt: z.string().nullable(),
|
|
2953
|
+
scopes: z.array(z.string())
|
|
2954
|
+
})).nullable(),
|
|
2838
2955
|
error: z.object({
|
|
2839
2956
|
code: z.string(),
|
|
2840
2957
|
details: z.unknown().nullish(),
|
|
@@ -2973,8 +3090,8 @@ export const zCostRatesListOrgCostRatesQuery = z.object({
|
|
|
2973
3090
|
'reasoning'
|
|
2974
3091
|
]).nullish(),
|
|
2975
3092
|
asOf: z.string().nullish(),
|
|
2976
|
-
page: z.
|
|
2977
|
-
limit: z.
|
|
3093
|
+
page: z.int().nullish(),
|
|
3094
|
+
limit: z.int().nullish(),
|
|
2978
3095
|
includeDeleted: z.enum(['true', 'false']).nullish()
|
|
2979
3096
|
});
|
|
2980
3097
|
|
|
@@ -3227,14 +3344,8 @@ export const zOrganizationsListOrganizationMembersPath = z.object({
|
|
|
3227
3344
|
});
|
|
3228
3345
|
|
|
3229
3346
|
export const zOrganizationsListOrganizationMembersQuery = z.object({
|
|
3230
|
-
page: z.
|
|
3231
|
-
|
|
3232
|
-
z.string()
|
|
3233
|
-
]).nullish(),
|
|
3234
|
-
limit: z.union([
|
|
3235
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
3236
|
-
z.string()
|
|
3237
|
-
]).nullish(),
|
|
3347
|
+
page: z.int().nullish(),
|
|
3348
|
+
limit: z.int().nullish(),
|
|
3238
3349
|
search: z.string().nullish(),
|
|
3239
3350
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
3240
3351
|
sortBy: z.enum([
|
|
@@ -3392,14 +3503,8 @@ export const zRbacListPermissionsPath = z.object({
|
|
|
3392
3503
|
});
|
|
3393
3504
|
|
|
3394
3505
|
export const zRbacListPermissionsQuery = z.object({
|
|
3395
|
-
page: z.
|
|
3396
|
-
|
|
3397
|
-
z.string()
|
|
3398
|
-
]).nullish(),
|
|
3399
|
-
limit: z.union([
|
|
3400
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
3401
|
-
z.string()
|
|
3402
|
-
]).nullish(),
|
|
3506
|
+
page: z.int().nullish(),
|
|
3507
|
+
limit: z.int().nullish(),
|
|
3403
3508
|
search: z.string().nullish(),
|
|
3404
3509
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
3405
3510
|
sortBy: z.enum([
|
|
@@ -3453,14 +3558,8 @@ export const zProjectsListProjectsByOrgPath = z.object({
|
|
|
3453
3558
|
});
|
|
3454
3559
|
|
|
3455
3560
|
export const zProjectsListProjectsByOrgQuery = z.object({
|
|
3456
|
-
page: z.
|
|
3457
|
-
|
|
3458
|
-
z.string()
|
|
3459
|
-
]).nullish(),
|
|
3460
|
-
limit: z.union([
|
|
3461
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
3462
|
-
z.string()
|
|
3463
|
-
]).nullish(),
|
|
3561
|
+
page: z.int().nullish(),
|
|
3562
|
+
limit: z.int().nullish(),
|
|
3464
3563
|
search: z.string().nullish(),
|
|
3465
3564
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
3466
3565
|
status: z.string().nullish(),
|
|
@@ -3580,14 +3679,8 @@ export const zOrganizationsListProjectMembersForOrgPath = z.object({
|
|
|
3580
3679
|
});
|
|
3581
3680
|
|
|
3582
3681
|
export const zOrganizationsListProjectMembersForOrgQuery = z.object({
|
|
3583
|
-
page: z.
|
|
3584
|
-
|
|
3585
|
-
z.string()
|
|
3586
|
-
]).nullish(),
|
|
3587
|
-
limit: z.union([
|
|
3588
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
3589
|
-
z.string()
|
|
3590
|
-
]).nullish(),
|
|
3682
|
+
page: z.int().nullish(),
|
|
3683
|
+
limit: z.int().nullish(),
|
|
3591
3684
|
search: z.string().nullish(),
|
|
3592
3685
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
3593
3686
|
sortBy: z.enum([
|
|
@@ -3841,14 +3934,8 @@ export const zRbacListRolesPath = z.object({
|
|
|
3841
3934
|
});
|
|
3842
3935
|
|
|
3843
3936
|
export const zRbacListRolesQuery = z.object({
|
|
3844
|
-
page: z.
|
|
3845
|
-
|
|
3846
|
-
z.string()
|
|
3847
|
-
]).nullish(),
|
|
3848
|
-
limit: z.union([
|
|
3849
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
3850
|
-
z.string()
|
|
3851
|
-
]).nullish(),
|
|
3937
|
+
page: z.int().nullish(),
|
|
3938
|
+
limit: z.int().nullish(),
|
|
3852
3939
|
search: z.string().nullish(),
|
|
3853
3940
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
3854
3941
|
sortBy: z.enum([
|
|
@@ -4163,14 +4250,8 @@ export const zWorkspacesListWorkspacesPath = z.object({
|
|
|
4163
4250
|
});
|
|
4164
4251
|
|
|
4165
4252
|
export const zWorkspacesListWorkspacesQuery = z.object({
|
|
4166
|
-
page: z.
|
|
4167
|
-
|
|
4168
|
-
z.string()
|
|
4169
|
-
]).nullish(),
|
|
4170
|
-
limit: z.union([
|
|
4171
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
4172
|
-
z.string()
|
|
4173
|
-
]).nullish(),
|
|
4253
|
+
page: z.int().nullish(),
|
|
4254
|
+
limit: z.int().nullish(),
|
|
4174
4255
|
search: z.string().nullish(),
|
|
4175
4256
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
4176
4257
|
status: z.string().nullish(),
|
|
@@ -4482,8 +4563,8 @@ export const zCostRatesListWorkspaceCostRatesQuery = z.object({
|
|
|
4482
4563
|
'reasoning'
|
|
4483
4564
|
]).nullish(),
|
|
4484
4565
|
asOf: z.string().nullish(),
|
|
4485
|
-
page: z.
|
|
4486
|
-
limit: z.
|
|
4566
|
+
page: z.int().nullish(),
|
|
4567
|
+
limit: z.int().nullish(),
|
|
4487
4568
|
includeDeleted: z.enum(['true', 'false']).nullish()
|
|
4488
4569
|
});
|
|
4489
4570
|
|
|
@@ -4740,14 +4821,8 @@ export const zWorkspacesListWorkspaceMembersPath = z.object({
|
|
|
4740
4821
|
});
|
|
4741
4822
|
|
|
4742
4823
|
export const zWorkspacesListWorkspaceMembersQuery = z.object({
|
|
4743
|
-
page: z.
|
|
4744
|
-
|
|
4745
|
-
z.string()
|
|
4746
|
-
]).nullish(),
|
|
4747
|
-
limit: z.union([
|
|
4748
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
4749
|
-
z.string()
|
|
4750
|
-
]).nullish(),
|
|
4824
|
+
page: z.int().nullish(),
|
|
4825
|
+
limit: z.int().nullish(),
|
|
4751
4826
|
search: z.string().nullish(),
|
|
4752
4827
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
4753
4828
|
sortBy: z.enum([
|
|
@@ -5566,7 +5641,9 @@ export const zProjectEnvironmentsListProjectEnvironmentsPath = z.object({
|
|
|
5566
5641
|
});
|
|
5567
5642
|
|
|
5568
5643
|
export const zProjectEnvironmentsListProjectEnvironmentsQuery = z.object({
|
|
5569
|
-
includeArchived: z.enum(['true', 'false']).nullish()
|
|
5644
|
+
includeArchived: z.enum(['true', 'false']).nullish(),
|
|
5645
|
+
page: z.int().nullish(),
|
|
5646
|
+
limit: z.int().nullish()
|
|
5570
5647
|
});
|
|
5571
5648
|
|
|
5572
5649
|
/**
|
|
@@ -5964,24 +6041,27 @@ export const zApiKeysListApiKeysProjectPath = z.object({
|
|
|
5964
6041
|
projectId: z.string()
|
|
5965
6042
|
});
|
|
5966
6043
|
|
|
6044
|
+
export const zApiKeysListApiKeysProjectQuery = z.object({
|
|
6045
|
+
page: z.int().nullish(),
|
|
6046
|
+
limit: z.int().nullish()
|
|
6047
|
+
});
|
|
6048
|
+
|
|
5967
6049
|
/**
|
|
5968
6050
|
* Success
|
|
5969
6051
|
*/
|
|
5970
6052
|
export const zApiKeysListApiKeysProjectResponse = z.object({
|
|
5971
6053
|
code: z.number(),
|
|
5972
|
-
data: z.object({
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
}))
|
|
5984
|
-
}).nullable(),
|
|
6054
|
+
data: z.array(z.object({
|
|
6055
|
+
createdAt: z.string(),
|
|
6056
|
+
environment: z.enum(['live', 'test']),
|
|
6057
|
+
expiresAt: z.string(),
|
|
6058
|
+
id: z.string(),
|
|
6059
|
+
key: z.string(),
|
|
6060
|
+
orgId: z.string().nullable(),
|
|
6061
|
+
projectId: z.string().nullable(),
|
|
6062
|
+
revokedAt: z.string().nullable(),
|
|
6063
|
+
scopes: z.array(z.string())
|
|
6064
|
+
})).nullable(),
|
|
5985
6065
|
error: z.object({
|
|
5986
6066
|
code: z.string(),
|
|
5987
6067
|
details: z.unknown().nullish(),
|
|
@@ -6170,8 +6250,8 @@ export const zCostRatesListProjectCostRatesQuery = z.object({
|
|
|
6170
6250
|
'reasoning'
|
|
6171
6251
|
]).nullish(),
|
|
6172
6252
|
asOf: z.string().nullish(),
|
|
6173
|
-
page: z.
|
|
6174
|
-
limit: z.
|
|
6253
|
+
page: z.int().nullish(),
|
|
6254
|
+
limit: z.int().nullish(),
|
|
6175
6255
|
includeDeleted: z.enum(['true', 'false']).nullish()
|
|
6176
6256
|
});
|
|
6177
6257
|
|
|
@@ -6323,7 +6403,9 @@ export const zCostRatesGetEffectiveCostRatesPath = z.object({
|
|
|
6323
6403
|
export const zCostRatesGetEffectiveCostRatesQuery = z.object({
|
|
6324
6404
|
provider: z.string().nullish(),
|
|
6325
6405
|
model: z.string().nullish(),
|
|
6326
|
-
asOf: z.string().nullish()
|
|
6406
|
+
asOf: z.string().nullish(),
|
|
6407
|
+
page: z.int().nullish(),
|
|
6408
|
+
limit: z.int().nullish()
|
|
6327
6409
|
});
|
|
6328
6410
|
|
|
6329
6411
|
/**
|
|
@@ -6489,14 +6571,8 @@ export const zProjectsListProjectMembersPath = z.object({
|
|
|
6489
6571
|
});
|
|
6490
6572
|
|
|
6491
6573
|
export const zProjectsListProjectMembersQuery = z.object({
|
|
6492
|
-
page: z.
|
|
6493
|
-
|
|
6494
|
-
z.string()
|
|
6495
|
-
]).nullish(),
|
|
6496
|
-
limit: z.union([
|
|
6497
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
6498
|
-
z.string()
|
|
6499
|
-
]).nullish(),
|
|
6574
|
+
page: z.int().nullish(),
|
|
6575
|
+
limit: z.int().nullish(),
|
|
6500
6576
|
search: z.string().nullish(),
|
|
6501
6577
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
6502
6578
|
sortBy: z.enum([
|
|
@@ -6988,7 +7064,9 @@ export const zPromptsListProjectLabelsPath = z.object({
|
|
|
6988
7064
|
});
|
|
6989
7065
|
|
|
6990
7066
|
export const zPromptsListProjectLabelsQuery = z.object({
|
|
6991
|
-
includeArchived: z.enum(['true', 'false']).nullish()
|
|
7067
|
+
includeArchived: z.enum(['true', 'false']).nullish(),
|
|
7068
|
+
page: z.int().nullish(),
|
|
7069
|
+
limit: z.int().nullish()
|
|
6992
7070
|
});
|
|
6993
7071
|
|
|
6994
7072
|
/**
|
|
@@ -7195,6 +7273,11 @@ export const zPromptsListProjectLabelUsagesPath = z.object({
|
|
|
7195
7273
|
label: z.string()
|
|
7196
7274
|
});
|
|
7197
7275
|
|
|
7276
|
+
export const zPromptsListProjectLabelUsagesQuery = z.object({
|
|
7277
|
+
page: z.int().nullish(),
|
|
7278
|
+
limit: z.int().nullish()
|
|
7279
|
+
});
|
|
7280
|
+
|
|
7198
7281
|
/**
|
|
7199
7282
|
* Success
|
|
7200
7283
|
*/
|
|
@@ -7229,14 +7312,8 @@ export const zPromptsListPromptsPath = z.object({
|
|
|
7229
7312
|
});
|
|
7230
7313
|
|
|
7231
7314
|
export const zPromptsListPromptsQuery = z.object({
|
|
7232
|
-
page: z.
|
|
7233
|
-
|
|
7234
|
-
z.string()
|
|
7235
|
-
]).nullish(),
|
|
7236
|
-
limit: z.union([
|
|
7237
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
7238
|
-
z.string()
|
|
7239
|
-
]).nullish(),
|
|
7315
|
+
page: z.int().nullish(),
|
|
7316
|
+
limit: z.int().nullish(),
|
|
7240
7317
|
search: z.string().nullish(),
|
|
7241
7318
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
7242
7319
|
status: z.string().nullish(),
|
|
@@ -7282,12 +7359,8 @@ export const zPromptsListPromptsResponse = z.object({
|
|
|
7282
7359
|
latestVersion: z.number().nullable(),
|
|
7283
7360
|
name: z.string().min(1).max(200),
|
|
7284
7361
|
projectId: z.string(),
|
|
7285
|
-
slug: z.string().min(1).max(
|
|
7286
|
-
status: z.enum([
|
|
7287
|
-
'active',
|
|
7288
|
-
'draft',
|
|
7289
|
-
'archived'
|
|
7290
|
-
]),
|
|
7362
|
+
slug: z.string().min(1).max(128).regex(/^[a-z0-9-]+$/),
|
|
7363
|
+
status: z.enum(['active', 'archived']),
|
|
7291
7364
|
tags: z.array(z.string()),
|
|
7292
7365
|
updatedAt: z.iso.datetime()
|
|
7293
7366
|
})).nullable(),
|
|
@@ -7317,8 +7390,7 @@ export const zPromptsListPromptsResponse = z.object({
|
|
|
7317
7390
|
export const zPromptsCreatePromptBody = z.object({
|
|
7318
7391
|
description: z.string().nullish(),
|
|
7319
7392
|
name: z.string().min(1).max(200),
|
|
7320
|
-
slug: z.string().min(1).max(
|
|
7321
|
-
status: z.enum(['active', 'draft']).nullish(),
|
|
7393
|
+
slug: z.string().min(1).max(128).regex(/^[a-z0-9-]+$/),
|
|
7322
7394
|
tags: z.array(z.string()).nullish()
|
|
7323
7395
|
});
|
|
7324
7396
|
|
|
@@ -7355,19 +7427,10 @@ export const zPromptsCreatePromptResponse = z.object({
|
|
|
7355
7427
|
success: z.boolean()
|
|
7356
7428
|
});
|
|
7357
7429
|
|
|
7358
|
-
export const zPromptsBulkPromptsBody = z.
|
|
7359
|
-
z.
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
}),
|
|
7363
|
-
z.object({
|
|
7364
|
-
action: z.enum(['setStatus']),
|
|
7365
|
-
payload: z.object({
|
|
7366
|
-
status: z.enum(['active', 'draft'])
|
|
7367
|
-
}),
|
|
7368
|
-
promptIds: z.array(z.string()).min(1).max(100)
|
|
7369
|
-
})
|
|
7370
|
-
]);
|
|
7430
|
+
export const zPromptsBulkPromptsBody = z.object({
|
|
7431
|
+
action: z.enum(['archive', 'restore']),
|
|
7432
|
+
promptIds: z.array(z.string()).min(1).max(100)
|
|
7433
|
+
});
|
|
7371
7434
|
|
|
7372
7435
|
export const zPromptsBulkPromptsPath = z.object({
|
|
7373
7436
|
projectId: z.string().min(1)
|
|
@@ -7416,6 +7479,45 @@ export const zPromptsBulkPromptsResponse = z.object({
|
|
|
7416
7479
|
success: z.boolean()
|
|
7417
7480
|
});
|
|
7418
7481
|
|
|
7482
|
+
export const zPromptsRenderPromptBody = z.object({
|
|
7483
|
+
variables: z.record(z.string(), z.unknown()).nullish()
|
|
7484
|
+
});
|
|
7485
|
+
|
|
7486
|
+
export const zPromptsRenderPromptPath = z.object({
|
|
7487
|
+
projectId: z.string().min(1),
|
|
7488
|
+
slug: z.string().min(1),
|
|
7489
|
+
label: z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/)
|
|
7490
|
+
});
|
|
7491
|
+
|
|
7492
|
+
/**
|
|
7493
|
+
* Success
|
|
7494
|
+
*/
|
|
7495
|
+
export const zPromptsRenderPromptResponse = z.object({
|
|
7496
|
+
code: z.number(),
|
|
7497
|
+
data: zResolvedPrompt.nullable(),
|
|
7498
|
+
error: z.object({
|
|
7499
|
+
code: z.string(),
|
|
7500
|
+
details: z.unknown().nullish(),
|
|
7501
|
+
message: z.string(),
|
|
7502
|
+
rowErrors: z.array(z.object({
|
|
7503
|
+
code: z.string(),
|
|
7504
|
+
message: z.string(),
|
|
7505
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
7506
|
+
})).nullish()
|
|
7507
|
+
}).nullable(),
|
|
7508
|
+
pagination: z.object({
|
|
7509
|
+
limit: z.int().gte(1).lte(100),
|
|
7510
|
+
page: z.int().gte(1),
|
|
7511
|
+
total: z.int().gte(0),
|
|
7512
|
+
totalPages: z.int().gte(0)
|
|
7513
|
+
}).nullable(),
|
|
7514
|
+
sdkBehavior: z.object({
|
|
7515
|
+
flags: z.record(z.string(), z.unknown()),
|
|
7516
|
+
v: z.int().gte(1)
|
|
7517
|
+
}).nullish(),
|
|
7518
|
+
success: z.boolean()
|
|
7519
|
+
});
|
|
7520
|
+
|
|
7419
7521
|
export const zPromptsGetPromptDirectorySummaryPath = z.object({
|
|
7420
7522
|
projectId: z.string().min(1)
|
|
7421
7523
|
});
|
|
@@ -7436,7 +7538,6 @@ export const zPromptsGetPromptDirectorySummaryResponse = z.object({
|
|
|
7436
7538
|
}).nullable(),
|
|
7437
7539
|
prompts: z.object({
|
|
7438
7540
|
archived: z.int(),
|
|
7439
|
-
draft: z.int(),
|
|
7440
7541
|
published: z.int(),
|
|
7441
7542
|
total: z.int()
|
|
7442
7543
|
}),
|
|
@@ -7539,11 +7640,7 @@ export const zPromptsGetPromptResponse = z.object({
|
|
|
7539
7640
|
export const zPromptsUpdatePromptBody = z.object({
|
|
7540
7641
|
description: z.string().nullish(),
|
|
7541
7642
|
name: z.string().min(1).max(200).nullish(),
|
|
7542
|
-
status: z.enum([
|
|
7543
|
-
'active',
|
|
7544
|
-
'draft',
|
|
7545
|
-
'archived'
|
|
7546
|
-
]).nullish(),
|
|
7643
|
+
status: z.enum(['active', 'archived']).nullish(),
|
|
7547
7644
|
tags: z.array(z.string()).nullish()
|
|
7548
7645
|
});
|
|
7549
7646
|
|
|
@@ -7638,7 +7735,9 @@ export const zPromptsListPromptLabelsPath = z.object({
|
|
|
7638
7735
|
});
|
|
7639
7736
|
|
|
7640
7737
|
export const zPromptsListPromptLabelsQuery = z.object({
|
|
7641
|
-
asOf: z.string().nullish()
|
|
7738
|
+
asOf: z.string().nullish(),
|
|
7739
|
+
page: z.int().nullish(),
|
|
7740
|
+
limit: z.int().nullish()
|
|
7642
7741
|
});
|
|
7643
7742
|
|
|
7644
7743
|
/**
|
|
@@ -7860,6 +7959,11 @@ export const zPromptsListPromptVersionsPath = z.object({
|
|
|
7860
7959
|
promptId: z.string()
|
|
7861
7960
|
});
|
|
7862
7961
|
|
|
7962
|
+
export const zPromptsListPromptVersionsQuery = z.object({
|
|
7963
|
+
page: z.int().nullish(),
|
|
7964
|
+
limit: z.int().nullish()
|
|
7965
|
+
});
|
|
7966
|
+
|
|
7863
7967
|
/**
|
|
7864
7968
|
* Success
|
|
7865
7969
|
*/
|
|
@@ -8300,11 +8404,6 @@ export const zPromptsWithdrawPromptReviewResponse = z.object({
|
|
|
8300
8404
|
});
|
|
8301
8405
|
|
|
8302
8406
|
export const zPromptsResolvePromptBody = z.object({
|
|
8303
|
-
developerRole: z.enum([
|
|
8304
|
-
'user',
|
|
8305
|
-
'developer',
|
|
8306
|
-
'system'
|
|
8307
|
-
]).nullish(),
|
|
8308
8407
|
labels: z.array(z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/)).min(1).max(10),
|
|
8309
8408
|
slug: z.string().min(1),
|
|
8310
8409
|
subject: z.string().min(1).nullish(),
|
|
@@ -8360,6 +8459,7 @@ export const zCredentialLifecycleRenameCredentialPath = z.object({
|
|
|
8360
8459
|
export const zCredentialLifecycleRenameCredentialResponse = z.object({
|
|
8361
8460
|
code: z.number(),
|
|
8362
8461
|
data: z.object({
|
|
8462
|
+
attachedElsewhere: z.boolean().nullish(),
|
|
8363
8463
|
createdAt: z.iso.datetime(),
|
|
8364
8464
|
credentialType: z.enum([
|
|
8365
8465
|
'api-key',
|
|
@@ -8494,6 +8594,7 @@ export const zCredentialLifecycleRestoreCredentialResponse = z.object({
|
|
|
8494
8594
|
code: z.number(),
|
|
8495
8595
|
data: z.object({
|
|
8496
8596
|
credential: z.object({
|
|
8597
|
+
attachedElsewhere: z.boolean().nullish(),
|
|
8497
8598
|
createdAt: z.iso.datetime(),
|
|
8498
8599
|
credentialType: z.enum([
|
|
8499
8600
|
'api-key',
|
|
@@ -8534,7 +8635,82 @@ export const zCredentialLifecycleRestoreCredentialResponse = z.object({
|
|
|
8534
8635
|
success: z.boolean()
|
|
8535
8636
|
});
|
|
8536
8637
|
|
|
8537
|
-
export const
|
|
8638
|
+
export const zCredentialRotateRotateCredentialBody = z.object({
|
|
8639
|
+
disposition: z.enum([
|
|
8640
|
+
'keep',
|
|
8641
|
+
'archive',
|
|
8642
|
+
'delete'
|
|
8643
|
+
]),
|
|
8644
|
+
newCredentialId: z.string().min(1),
|
|
8645
|
+
reason: z.string().min(1)
|
|
8646
|
+
});
|
|
8647
|
+
|
|
8648
|
+
export const zCredentialRotateRotateCredentialPath = z.object({
|
|
8649
|
+
projectId: z.string(),
|
|
8650
|
+
providerId: z.string().min(1),
|
|
8651
|
+
credentialId: z.string().min(1)
|
|
8652
|
+
});
|
|
8653
|
+
|
|
8654
|
+
/**
|
|
8655
|
+
* Success
|
|
8656
|
+
*/
|
|
8657
|
+
export const zCredentialRotateRotateCredentialResponse = z.object({
|
|
8658
|
+
code: z.number(),
|
|
8659
|
+
data: z.object({
|
|
8660
|
+
disposition: z.enum([
|
|
8661
|
+
'keep',
|
|
8662
|
+
'archive',
|
|
8663
|
+
'delete',
|
|
8664
|
+
'skipped_due_to_failures',
|
|
8665
|
+
'skipped_due_to_test_failure',
|
|
8666
|
+
'skipped_due_to_pending_approval',
|
|
8667
|
+
'skipped_due_to_shared_credential'
|
|
8668
|
+
]),
|
|
8669
|
+
failedEnvs: z.array(z.object({
|
|
8670
|
+
environmentId: z.string(),
|
|
8671
|
+
failureReason: z.string()
|
|
8672
|
+
})),
|
|
8673
|
+
movedEnvs: z.array(z.object({
|
|
8674
|
+
environmentId: z.string()
|
|
8675
|
+
})),
|
|
8676
|
+
pendingApprovalEnvs: z.array(z.object({
|
|
8677
|
+
environmentId: z.string()
|
|
8678
|
+
})),
|
|
8679
|
+
testOutcome: z.enum([
|
|
8680
|
+
'passed',
|
|
8681
|
+
'deferred',
|
|
8682
|
+
'failed'
|
|
8683
|
+
])
|
|
8684
|
+
}).nullable(),
|
|
8685
|
+
error: z.object({
|
|
8686
|
+
code: z.string(),
|
|
8687
|
+
details: z.unknown().nullish(),
|
|
8688
|
+
message: z.string(),
|
|
8689
|
+
rowErrors: z.array(z.object({
|
|
8690
|
+
code: z.string(),
|
|
8691
|
+
message: z.string(),
|
|
8692
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
8693
|
+
})).nullish()
|
|
8694
|
+
}).nullable(),
|
|
8695
|
+
pagination: z.object({
|
|
8696
|
+
limit: z.int().gte(1).lte(100),
|
|
8697
|
+
page: z.int().gte(1),
|
|
8698
|
+
total: z.int().gte(0),
|
|
8699
|
+
totalPages: z.int().gte(0)
|
|
8700
|
+
}).nullable(),
|
|
8701
|
+
sdkBehavior: z.object({
|
|
8702
|
+
flags: z.record(z.string(), z.unknown()),
|
|
8703
|
+
v: z.int().gte(1)
|
|
8704
|
+
}).nullish(),
|
|
8705
|
+
success: z.boolean()
|
|
8706
|
+
});
|
|
8707
|
+
|
|
8708
|
+
export const zProviderDisconnectDisconnectProviderBody = z.object({
|
|
8709
|
+
environmentIds: z.array(z.string().min(1)).min(1).max(50),
|
|
8710
|
+
reason: z.string().min(1).nullish()
|
|
8711
|
+
});
|
|
8712
|
+
|
|
8713
|
+
export const zProviderDisconnectDisconnectProviderPath = z.object({
|
|
8538
8714
|
projectId: z.string(),
|
|
8539
8715
|
providerId: z.string().min(1)
|
|
8540
8716
|
});
|
|
@@ -8542,18 +8718,62 @@ export const zCredentialAttachmentsListEligibleCredentialsPath = z.object({
|
|
|
8542
8718
|
/**
|
|
8543
8719
|
* Success
|
|
8544
8720
|
*/
|
|
8545
|
-
export const
|
|
8721
|
+
export const zProviderDisconnectDisconnectProviderResponse = z.object({
|
|
8546
8722
|
code: z.number(),
|
|
8547
8723
|
data: z.object({
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
|
|
8724
|
+
closedEnvs: z.array(z.object({
|
|
8725
|
+
envSlug: z.string(),
|
|
8726
|
+
environmentId: z.string()
|
|
8727
|
+
})),
|
|
8728
|
+
providerId: z.string(),
|
|
8729
|
+
remainingActiveCount: z.number()
|
|
8730
|
+
}).nullable(),
|
|
8731
|
+
error: z.object({
|
|
8732
|
+
code: z.string(),
|
|
8733
|
+
details: z.unknown().nullish(),
|
|
8734
|
+
message: z.string(),
|
|
8735
|
+
rowErrors: z.array(z.object({
|
|
8736
|
+
code: z.string(),
|
|
8737
|
+
message: z.string(),
|
|
8738
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
8739
|
+
})).nullish()
|
|
8740
|
+
}).nullable(),
|
|
8741
|
+
pagination: z.object({
|
|
8742
|
+
limit: z.int().gte(1).lte(100),
|
|
8743
|
+
page: z.int().gte(1),
|
|
8744
|
+
total: z.int().gte(0),
|
|
8745
|
+
totalPages: z.int().gte(0)
|
|
8556
8746
|
}).nullable(),
|
|
8747
|
+
sdkBehavior: z.object({
|
|
8748
|
+
flags: z.record(z.string(), z.unknown()),
|
|
8749
|
+
v: z.int().gte(1)
|
|
8750
|
+
}).nullish(),
|
|
8751
|
+
success: z.boolean()
|
|
8752
|
+
});
|
|
8753
|
+
|
|
8754
|
+
export const zCredentialAttachmentsListEligibleCredentialsPath = z.object({
|
|
8755
|
+
projectId: z.string(),
|
|
8756
|
+
providerId: z.string().min(1)
|
|
8757
|
+
});
|
|
8758
|
+
|
|
8759
|
+
export const zCredentialAttachmentsListEligibleCredentialsQuery = z.object({
|
|
8760
|
+
page: z.int().nullish(),
|
|
8761
|
+
limit: z.int().nullish()
|
|
8762
|
+
});
|
|
8763
|
+
|
|
8764
|
+
/**
|
|
8765
|
+
* Success
|
|
8766
|
+
*/
|
|
8767
|
+
export const zCredentialAttachmentsListEligibleCredentialsResponse = z.object({
|
|
8768
|
+
code: z.number(),
|
|
8769
|
+
data: z.array(z.object({
|
|
8770
|
+
createdAt: z.string(),
|
|
8771
|
+
credentialType: z.string(),
|
|
8772
|
+
id: z.string(),
|
|
8773
|
+
keyLast4: z.string(),
|
|
8774
|
+
label: z.string().nullable(),
|
|
8775
|
+
providerCatalogId: z.string()
|
|
8776
|
+
})).nullable(),
|
|
8557
8777
|
error: z.object({
|
|
8558
8778
|
code: z.string(),
|
|
8559
8779
|
details: z.unknown().nullish(),
|
|
@@ -8689,6 +8909,7 @@ export const zProviderEmergencyRotationEmergencyRotateProviderCredentialResponse
|
|
|
8689
8909
|
envSlug: z.string(),
|
|
8690
8910
|
environmentId: z.string(),
|
|
8691
8911
|
id: z.string(),
|
|
8912
|
+
modelAllowlistCleared: z.boolean().nullish(),
|
|
8692
8913
|
providerId: z.string(),
|
|
8693
8914
|
reason: z.string().nullable(),
|
|
8694
8915
|
state: z.enum(['current', 'pending'])
|
|
@@ -8750,6 +8971,7 @@ export const zProviderRollbackRollbackProviderEnvActivationResponse = z.object({
|
|
|
8750
8971
|
envSlug: z.string(),
|
|
8751
8972
|
environmentId: z.string(),
|
|
8752
8973
|
id: z.string(),
|
|
8974
|
+
modelAllowlistCleared: z.boolean().nullish(),
|
|
8753
8975
|
providerId: z.string(),
|
|
8754
8976
|
reason: z.string().nullable(),
|
|
8755
8977
|
state: z.enum(['current', 'pending'])
|
|
@@ -9272,6 +9494,11 @@ export const zRoutingProvidersListRoutingProvidersPath = z.object({
|
|
|
9272
9494
|
projectId: z.string()
|
|
9273
9495
|
});
|
|
9274
9496
|
|
|
9497
|
+
export const zRoutingProvidersListRoutingProvidersQuery = z.object({
|
|
9498
|
+
page: z.int().nullish(),
|
|
9499
|
+
limit: z.int().nullish()
|
|
9500
|
+
});
|
|
9501
|
+
|
|
9275
9502
|
/**
|
|
9276
9503
|
* Success
|
|
9277
9504
|
*/
|
|
@@ -9342,8 +9569,9 @@ export const zRoutingProvidersListRoutingProvidersResponse = z.object({
|
|
|
9342
9569
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
9343
9570
|
lifecycleState: z.enum([
|
|
9344
9571
|
'active',
|
|
9345
|
-
'
|
|
9346
|
-
'archived'
|
|
9572
|
+
'disconnected',
|
|
9573
|
+
'archived',
|
|
9574
|
+
'deleted'
|
|
9347
9575
|
]),
|
|
9348
9576
|
modelCount: z.int().gte(0),
|
|
9349
9577
|
projectId: z.string(),
|
|
@@ -9482,8 +9710,9 @@ export const zRoutingProvidersCreateRoutingProviderResponse = z.object({
|
|
|
9482
9710
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
9483
9711
|
lifecycleState: z.enum([
|
|
9484
9712
|
'active',
|
|
9485
|
-
'
|
|
9486
|
-
'archived'
|
|
9713
|
+
'disconnected',
|
|
9714
|
+
'archived',
|
|
9715
|
+
'deleted'
|
|
9487
9716
|
]),
|
|
9488
9717
|
modelCount: z.int().gte(0),
|
|
9489
9718
|
projectId: z.string(),
|
|
@@ -9689,8 +9918,9 @@ export const zRoutingProvidersConnectRoutingProviderResponse = z.object({
|
|
|
9689
9918
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
9690
9919
|
lifecycleState: z.enum([
|
|
9691
9920
|
'active',
|
|
9692
|
-
'
|
|
9693
|
-
'archived'
|
|
9921
|
+
'disconnected',
|
|
9922
|
+
'archived',
|
|
9923
|
+
'deleted'
|
|
9694
9924
|
]),
|
|
9695
9925
|
modelCount: z.int().gte(0),
|
|
9696
9926
|
projectId: z.string(),
|
|
@@ -9747,7 +9977,9 @@ export const zRoutingMetricsGetRoutingProviderMetricsPath = z.object({
|
|
|
9747
9977
|
});
|
|
9748
9978
|
|
|
9749
9979
|
export const zRoutingMetricsGetRoutingProviderMetricsQuery = z.object({
|
|
9750
|
-
window: z.string().nullish()
|
|
9980
|
+
window: z.string().nullish(),
|
|
9981
|
+
page: z.int().nullish(),
|
|
9982
|
+
limit: z.int().nullish()
|
|
9751
9983
|
});
|
|
9752
9984
|
|
|
9753
9985
|
/**
|
|
@@ -10027,8 +10259,9 @@ export const zRoutingProvidersGetRoutingProviderResponse = z.object({
|
|
|
10027
10259
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
10028
10260
|
lifecycleState: z.enum([
|
|
10029
10261
|
'active',
|
|
10030
|
-
'
|
|
10031
|
-
'archived'
|
|
10262
|
+
'disconnected',
|
|
10263
|
+
'archived',
|
|
10264
|
+
'deleted'
|
|
10032
10265
|
]),
|
|
10033
10266
|
modelCount: z.int().gte(0),
|
|
10034
10267
|
projectId: z.string(),
|
|
@@ -10165,8 +10398,9 @@ export const zRoutingProvidersUpdateRoutingProviderResponse = z.object({
|
|
|
10165
10398
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
10166
10399
|
lifecycleState: z.enum([
|
|
10167
10400
|
'active',
|
|
10168
|
-
'
|
|
10169
|
-
'archived'
|
|
10401
|
+
'disconnected',
|
|
10402
|
+
'archived',
|
|
10403
|
+
'deleted'
|
|
10170
10404
|
]),
|
|
10171
10405
|
modelCount: z.int().gte(0),
|
|
10172
10406
|
projectId: z.string(),
|
|
@@ -10278,9 +10512,18 @@ export const zRoutingProviderCatalogResolveRoutingProviderCatalogResponse = z.ob
|
|
|
10278
10512
|
freshness: z.enum(['fresh', 'stale']),
|
|
10279
10513
|
models: z.array(z.object({
|
|
10280
10514
|
contextWindow: z.number().nullish(),
|
|
10515
|
+
cost: z.object({
|
|
10516
|
+
inputPerMillion: z.number().nullable()
|
|
10517
|
+
}),
|
|
10281
10518
|
deprecatedAt: z.string().nullish(),
|
|
10282
10519
|
displayName: z.string().nullish(),
|
|
10283
10520
|
id: z.string(),
|
|
10521
|
+
kind: z.enum([
|
|
10522
|
+
'chat',
|
|
10523
|
+
'reason',
|
|
10524
|
+
'embed',
|
|
10525
|
+
'mod'
|
|
10526
|
+
]),
|
|
10284
10527
|
source: z.enum([
|
|
10285
10528
|
'user',
|
|
10286
10529
|
'platform',
|
|
@@ -10370,12 +10613,18 @@ export const zRoutingProvidersListRoutingCredentialsPath = z.object({
|
|
|
10370
10613
|
providerId: z.string().min(1)
|
|
10371
10614
|
});
|
|
10372
10615
|
|
|
10616
|
+
export const zRoutingProvidersListRoutingCredentialsQuery = z.object({
|
|
10617
|
+
page: z.int().nullish(),
|
|
10618
|
+
limit: z.int().nullish()
|
|
10619
|
+
});
|
|
10620
|
+
|
|
10373
10621
|
/**
|
|
10374
10622
|
* Success
|
|
10375
10623
|
*/
|
|
10376
10624
|
export const zRoutingProvidersListRoutingCredentialsResponse = z.object({
|
|
10377
10625
|
code: z.number(),
|
|
10378
10626
|
data: z.array(z.object({
|
|
10627
|
+
attachedElsewhere: z.boolean().nullish(),
|
|
10379
10628
|
createdAt: z.iso.datetime(),
|
|
10380
10629
|
credentialType: z.enum([
|
|
10381
10630
|
'api-key',
|
|
@@ -10461,6 +10710,7 @@ export const zRoutingProvidersCreateRoutingCredentialPath = z.object({
|
|
|
10461
10710
|
export const zRoutingProvidersCreateRoutingCredentialResponse = z.object({
|
|
10462
10711
|
code: z.number(),
|
|
10463
10712
|
data: z.object({
|
|
10713
|
+
attachedElsewhere: z.boolean().nullish(),
|
|
10464
10714
|
createdAt: z.iso.datetime(),
|
|
10465
10715
|
credentialType: z.enum([
|
|
10466
10716
|
'api-key',
|
|
@@ -10604,43 +10854,18 @@ export const zRoutingProvidersTestRoutingCredentialResponse = z.object({
|
|
|
10604
10854
|
success: z.boolean()
|
|
10605
10855
|
});
|
|
10606
10856
|
|
|
10607
|
-
export const
|
|
10608
|
-
reason: z.string().nullish(),
|
|
10609
|
-
version: z.int().gt(0)
|
|
10610
|
-
});
|
|
10611
|
-
|
|
10612
|
-
export const zProviderPromoteVersionPromoteProviderEnvVersionPath = z.object({
|
|
10857
|
+
export const zProviderConfigDraftsDiscardProviderDraftPath = z.object({
|
|
10613
10858
|
projectId: z.string(),
|
|
10614
|
-
providerId: z.string().min(1)
|
|
10615
|
-
envSlug: z.string().min(1)
|
|
10859
|
+
providerId: z.string().min(1)
|
|
10616
10860
|
});
|
|
10617
10861
|
|
|
10618
10862
|
/**
|
|
10619
10863
|
* Success
|
|
10620
10864
|
*/
|
|
10621
|
-
export const
|
|
10865
|
+
export const zProviderConfigDraftsDiscardProviderDraftResponse = z.object({
|
|
10622
10866
|
code: z.number(),
|
|
10623
10867
|
data: z.object({
|
|
10624
|
-
|
|
10625
|
-
activeTo: z.string().nullable(),
|
|
10626
|
-
actorId: z.string(),
|
|
10627
|
-
actorType: z.string(),
|
|
10628
|
-
approvalStatus: z.enum([
|
|
10629
|
-
'not_required',
|
|
10630
|
-
'pending',
|
|
10631
|
-
'approved',
|
|
10632
|
-
'rejected'
|
|
10633
|
-
]),
|
|
10634
|
-
changeType: z.string(),
|
|
10635
|
-
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10636
|
-
createdAt: z.string(),
|
|
10637
|
-
credentialId: z.string(),
|
|
10638
|
-
envSlug: z.string(),
|
|
10639
|
-
environmentId: z.string(),
|
|
10640
|
-
id: z.string(),
|
|
10641
|
-
providerId: z.string(),
|
|
10642
|
-
reason: z.string().nullable(),
|
|
10643
|
-
state: z.enum(['current', 'pending'])
|
|
10868
|
+
discarded: z.literal(true)
|
|
10644
10869
|
}).nullable(),
|
|
10645
10870
|
error: z.object({
|
|
10646
10871
|
code: z.string(),
|
|
@@ -10665,7 +10890,7 @@ export const zProviderPromoteVersionPromoteProviderEnvVersionResponse = z.object
|
|
|
10665
10890
|
success: z.boolean()
|
|
10666
10891
|
});
|
|
10667
10892
|
|
|
10668
|
-
export const
|
|
10893
|
+
export const zProviderConfigDraftsGetProviderDraftPath = z.object({
|
|
10669
10894
|
projectId: z.string(),
|
|
10670
10895
|
providerId: z.string().min(1)
|
|
10671
10896
|
});
|
|
@@ -10673,19 +10898,16 @@ export const zRoutingProvidersListRoutingModelsPath = z.object({
|
|
|
10673
10898
|
/**
|
|
10674
10899
|
* Success
|
|
10675
10900
|
*/
|
|
10676
|
-
export const
|
|
10901
|
+
export const zProviderConfigDraftsGetProviderDraftResponse = z.object({
|
|
10677
10902
|
code: z.number(),
|
|
10678
|
-
data: z.
|
|
10679
|
-
|
|
10903
|
+
data: z.object({
|
|
10904
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10680
10905
|
createdAt: z.iso.datetime(),
|
|
10681
|
-
|
|
10682
|
-
|
|
10906
|
+
createdBy: z.string().nullable(),
|
|
10907
|
+
fromVersionId: z.string(),
|
|
10683
10908
|
id: z.string(),
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
providerId: z.string(),
|
|
10687
|
-
updatedAt: z.iso.datetime()
|
|
10688
|
-
})).nullable(),
|
|
10909
|
+
providerId: z.string()
|
|
10910
|
+
}).nullable(),
|
|
10689
10911
|
error: z.object({
|
|
10690
10912
|
code: z.string(),
|
|
10691
10913
|
details: z.unknown().nullish(),
|
|
@@ -10709,15 +10931,21 @@ export const zRoutingProvidersListRoutingModelsResponse = z.object({
|
|
|
10709
10931
|
success: z.boolean()
|
|
10710
10932
|
});
|
|
10711
10933
|
|
|
10712
|
-
export const
|
|
10713
|
-
|
|
10714
|
-
|
|
10715
|
-
|
|
10716
|
-
|
|
10717
|
-
|
|
10934
|
+
export const zProviderConfigDraftsUpdateProviderDraftBody = z.object({
|
|
10935
|
+
configSnapshotPatch: z.object({
|
|
10936
|
+
baseUrl: z.string().nullish(),
|
|
10937
|
+
customModelIds: z.array(z.string()).nullish(),
|
|
10938
|
+
models: z.array(z.string()).nullish(),
|
|
10939
|
+
passthroughMode: z.enum([
|
|
10940
|
+
'managed_precedence',
|
|
10941
|
+
'caller_precedence',
|
|
10942
|
+
'disabled'
|
|
10943
|
+
]).nullish(),
|
|
10944
|
+
providerRegion: z.string().nullish()
|
|
10945
|
+
})
|
|
10718
10946
|
});
|
|
10719
10947
|
|
|
10720
|
-
export const
|
|
10948
|
+
export const zProviderConfigDraftsUpdateProviderDraftPath = z.object({
|
|
10721
10949
|
projectId: z.string(),
|
|
10722
10950
|
providerId: z.string().min(1)
|
|
10723
10951
|
});
|
|
@@ -10725,26 +10953,15 @@ export const zRoutingProvidersCreateRoutingModelPath = z.object({
|
|
|
10725
10953
|
/**
|
|
10726
10954
|
* Success
|
|
10727
10955
|
*/
|
|
10728
|
-
export const
|
|
10956
|
+
export const zProviderConfigDraftsUpdateProviderDraftResponse = z.object({
|
|
10729
10957
|
code: z.number(),
|
|
10730
10958
|
data: z.object({
|
|
10731
|
-
|
|
10959
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10732
10960
|
createdAt: z.iso.datetime(),
|
|
10733
|
-
|
|
10734
|
-
|
|
10961
|
+
createdBy: z.string().nullable(),
|
|
10962
|
+
fromVersionId: z.string(),
|
|
10735
10963
|
id: z.string(),
|
|
10736
|
-
|
|
10737
|
-
name: z.string(),
|
|
10738
|
-
providerId: z.string(),
|
|
10739
|
-
publishWarning: z.object({
|
|
10740
|
-
errors: z.array(z.object({
|
|
10741
|
-
entity: z.string(),
|
|
10742
|
-
message: z.string(),
|
|
10743
|
-
rule: z.string().nullish()
|
|
10744
|
-
})),
|
|
10745
|
-
kind: z.enum(['validation'])
|
|
10746
|
-
}).nullish(),
|
|
10747
|
-
updatedAt: z.iso.datetime()
|
|
10964
|
+
providerId: z.string()
|
|
10748
10965
|
}).nullable(),
|
|
10749
10966
|
error: z.object({
|
|
10750
10967
|
code: z.string(),
|
|
@@ -10769,16 +10986,374 @@ export const zRoutingProvidersCreateRoutingModelResponse = z.object({
|
|
|
10769
10986
|
success: z.boolean()
|
|
10770
10987
|
});
|
|
10771
10988
|
|
|
10772
|
-
export const
|
|
10989
|
+
export const zProviderConfigDraftsEnsureProviderDraftPath = z.object({
|
|
10773
10990
|
projectId: z.string(),
|
|
10774
|
-
providerId: z.string().min(1)
|
|
10775
|
-
modelId: z.string().min(1)
|
|
10991
|
+
providerId: z.string().min(1)
|
|
10776
10992
|
});
|
|
10777
10993
|
|
|
10778
10994
|
/**
|
|
10779
10995
|
* Success
|
|
10780
10996
|
*/
|
|
10781
|
-
export const
|
|
10997
|
+
export const zProviderConfigDraftsEnsureProviderDraftResponse = z.object({
|
|
10998
|
+
code: z.number(),
|
|
10999
|
+
data: z.object({
|
|
11000
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
11001
|
+
createdAt: z.iso.datetime(),
|
|
11002
|
+
createdBy: z.string().nullable(),
|
|
11003
|
+
fromVersionId: z.string(),
|
|
11004
|
+
id: z.string(),
|
|
11005
|
+
providerId: z.string()
|
|
11006
|
+
}).nullable(),
|
|
11007
|
+
error: z.object({
|
|
11008
|
+
code: z.string(),
|
|
11009
|
+
details: z.unknown().nullish(),
|
|
11010
|
+
message: z.string(),
|
|
11011
|
+
rowErrors: z.array(z.object({
|
|
11012
|
+
code: z.string(),
|
|
11013
|
+
message: z.string(),
|
|
11014
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
11015
|
+
})).nullish()
|
|
11016
|
+
}).nullable(),
|
|
11017
|
+
pagination: z.object({
|
|
11018
|
+
limit: z.int().gte(1).lte(100),
|
|
11019
|
+
page: z.int().gte(1),
|
|
11020
|
+
total: z.int().gte(0),
|
|
11021
|
+
totalPages: z.int().gte(0)
|
|
11022
|
+
}).nullable(),
|
|
11023
|
+
sdkBehavior: z.object({
|
|
11024
|
+
flags: z.record(z.string(), z.unknown()),
|
|
11025
|
+
v: z.int().gte(1)
|
|
11026
|
+
}).nullish(),
|
|
11027
|
+
success: z.boolean()
|
|
11028
|
+
});
|
|
11029
|
+
|
|
11030
|
+
export const zProviderConfigDraftsCommitProviderDraftBody = z.object({
|
|
11031
|
+
environments: z.array(z.object({
|
|
11032
|
+
envSlug: z.string().min(1),
|
|
11033
|
+
environmentId: z.string().min(1)
|
|
11034
|
+
})).max(20),
|
|
11035
|
+
reason: z.string().nullish()
|
|
11036
|
+
});
|
|
11037
|
+
|
|
11038
|
+
export const zProviderConfigDraftsCommitProviderDraftPath = z.object({
|
|
11039
|
+
projectId: z.string(),
|
|
11040
|
+
providerId: z.string().min(1)
|
|
11041
|
+
});
|
|
11042
|
+
|
|
11043
|
+
/**
|
|
11044
|
+
* Success
|
|
11045
|
+
*/
|
|
11046
|
+
export const zProviderConfigDraftsCommitProviderDraftResponse = z.object({
|
|
11047
|
+
code: z.number(),
|
|
11048
|
+
data: z.object({
|
|
11049
|
+
deployResults: z.array(z.object({
|
|
11050
|
+
envSlug: z.string(),
|
|
11051
|
+
environmentId: z.string(),
|
|
11052
|
+
errorTag: z.string().nullish(),
|
|
11053
|
+
outcome: z.enum([
|
|
11054
|
+
'deployed',
|
|
11055
|
+
'pending',
|
|
11056
|
+
'failed'
|
|
11057
|
+
])
|
|
11058
|
+
})),
|
|
11059
|
+
skippedAmbiguousModels: z.array(z.string()),
|
|
11060
|
+
version: z.number(),
|
|
11061
|
+
versionId: z.string()
|
|
11062
|
+
}).nullable(),
|
|
11063
|
+
error: z.object({
|
|
11064
|
+
code: z.string(),
|
|
11065
|
+
details: z.unknown().nullish(),
|
|
11066
|
+
message: z.string(),
|
|
11067
|
+
rowErrors: z.array(z.object({
|
|
11068
|
+
code: z.string(),
|
|
11069
|
+
message: z.string(),
|
|
11070
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
11071
|
+
})).nullish()
|
|
11072
|
+
}).nullable(),
|
|
11073
|
+
pagination: z.object({
|
|
11074
|
+
limit: z.int().gte(1).lte(100),
|
|
11075
|
+
page: z.int().gte(1),
|
|
11076
|
+
total: z.int().gte(0),
|
|
11077
|
+
totalPages: z.int().gte(0)
|
|
11078
|
+
}).nullable(),
|
|
11079
|
+
sdkBehavior: z.object({
|
|
11080
|
+
flags: z.record(z.string(), z.unknown()),
|
|
11081
|
+
v: z.int().gte(1)
|
|
11082
|
+
}).nullish(),
|
|
11083
|
+
success: z.boolean()
|
|
11084
|
+
});
|
|
11085
|
+
|
|
11086
|
+
export const zProviderConfigDraftsRestoreProviderVersionBody = z.object({
|
|
11087
|
+
confirmDiscard: z.boolean().nullish(),
|
|
11088
|
+
version: z.int().gt(0)
|
|
11089
|
+
});
|
|
11090
|
+
|
|
11091
|
+
export const zProviderConfigDraftsRestoreProviderVersionPath = z.object({
|
|
11092
|
+
projectId: z.string(),
|
|
11093
|
+
providerId: z.string().min(1)
|
|
11094
|
+
});
|
|
11095
|
+
|
|
11096
|
+
/**
|
|
11097
|
+
* Success
|
|
11098
|
+
*/
|
|
11099
|
+
export const zProviderConfigDraftsRestoreProviderVersionResponse = z.object({
|
|
11100
|
+
code: z.number(),
|
|
11101
|
+
data: z.object({
|
|
11102
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
11103
|
+
createdAt: z.iso.datetime(),
|
|
11104
|
+
createdBy: z.string().nullable(),
|
|
11105
|
+
fromVersionId: z.string(),
|
|
11106
|
+
id: z.string(),
|
|
11107
|
+
providerId: z.string()
|
|
11108
|
+
}).nullable(),
|
|
11109
|
+
error: z.object({
|
|
11110
|
+
code: z.string(),
|
|
11111
|
+
details: z.unknown().nullish(),
|
|
11112
|
+
message: z.string(),
|
|
11113
|
+
rowErrors: z.array(z.object({
|
|
11114
|
+
code: z.string(),
|
|
11115
|
+
message: z.string(),
|
|
11116
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
11117
|
+
})).nullish()
|
|
11118
|
+
}).nullable(),
|
|
11119
|
+
pagination: z.object({
|
|
11120
|
+
limit: z.int().gte(1).lte(100),
|
|
11121
|
+
page: z.int().gte(1),
|
|
11122
|
+
total: z.int().gte(0),
|
|
11123
|
+
totalPages: z.int().gte(0)
|
|
11124
|
+
}).nullable(),
|
|
11125
|
+
sdkBehavior: z.object({
|
|
11126
|
+
flags: z.record(z.string(), z.unknown()),
|
|
11127
|
+
v: z.int().gte(1)
|
|
11128
|
+
}).nullish(),
|
|
11129
|
+
success: z.boolean()
|
|
11130
|
+
});
|
|
11131
|
+
|
|
11132
|
+
export const zProviderPromoteVersionPromoteProviderEnvVersionBody = z.object({
|
|
11133
|
+
reason: z.string().nullish(),
|
|
11134
|
+
version: z.int().gt(0)
|
|
11135
|
+
});
|
|
11136
|
+
|
|
11137
|
+
export const zProviderPromoteVersionPromoteProviderEnvVersionPath = z.object({
|
|
11138
|
+
projectId: z.string(),
|
|
11139
|
+
providerId: z.string().min(1),
|
|
11140
|
+
envSlug: z.string().min(1)
|
|
11141
|
+
});
|
|
11142
|
+
|
|
11143
|
+
/**
|
|
11144
|
+
* Success
|
|
11145
|
+
*/
|
|
11146
|
+
export const zProviderPromoteVersionPromoteProviderEnvVersionResponse = z.object({
|
|
11147
|
+
code: z.number(),
|
|
11148
|
+
data: z.object({
|
|
11149
|
+
activeFrom: z.string(),
|
|
11150
|
+
activeTo: z.string().nullable(),
|
|
11151
|
+
actorId: z.string(),
|
|
11152
|
+
actorType: z.string(),
|
|
11153
|
+
approvalStatus: z.enum([
|
|
11154
|
+
'not_required',
|
|
11155
|
+
'pending',
|
|
11156
|
+
'approved',
|
|
11157
|
+
'rejected'
|
|
11158
|
+
]),
|
|
11159
|
+
changeType: z.string(),
|
|
11160
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
11161
|
+
createdAt: z.string(),
|
|
11162
|
+
credentialId: z.string(),
|
|
11163
|
+
envSlug: z.string(),
|
|
11164
|
+
environmentId: z.string(),
|
|
11165
|
+
id: z.string(),
|
|
11166
|
+
modelAllowlistCleared: z.boolean().nullish(),
|
|
11167
|
+
providerId: z.string(),
|
|
11168
|
+
reason: z.string().nullable(),
|
|
11169
|
+
state: z.enum(['current', 'pending'])
|
|
11170
|
+
}).nullable(),
|
|
11171
|
+
error: z.object({
|
|
11172
|
+
code: z.string(),
|
|
11173
|
+
details: z.unknown().nullish(),
|
|
11174
|
+
message: z.string(),
|
|
11175
|
+
rowErrors: z.array(z.object({
|
|
11176
|
+
code: z.string(),
|
|
11177
|
+
message: z.string(),
|
|
11178
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
11179
|
+
})).nullish()
|
|
11180
|
+
}).nullable(),
|
|
11181
|
+
pagination: z.object({
|
|
11182
|
+
limit: z.int().gte(1).lte(100),
|
|
11183
|
+
page: z.int().gte(1),
|
|
11184
|
+
total: z.int().gte(0),
|
|
11185
|
+
totalPages: z.int().gte(0)
|
|
11186
|
+
}).nullable(),
|
|
11187
|
+
sdkBehavior: z.object({
|
|
11188
|
+
flags: z.record(z.string(), z.unknown()),
|
|
11189
|
+
v: z.int().gte(1)
|
|
11190
|
+
}).nullish(),
|
|
11191
|
+
success: z.boolean()
|
|
11192
|
+
});
|
|
11193
|
+
|
|
11194
|
+
export const zProviderModelUsageGetProviderModelUsagePath = z.object({
|
|
11195
|
+
projectId: z.string(),
|
|
11196
|
+
providerId: z.string().min(1)
|
|
11197
|
+
});
|
|
11198
|
+
|
|
11199
|
+
/**
|
|
11200
|
+
* Success
|
|
11201
|
+
*/
|
|
11202
|
+
export const zProviderModelUsageGetProviderModelUsageResponse = z.object({
|
|
11203
|
+
code: z.number(),
|
|
11204
|
+
data: z.array(z.object({
|
|
11205
|
+
day: z.string(),
|
|
11206
|
+
errorCount: z.number(),
|
|
11207
|
+
model: z.string(),
|
|
11208
|
+
p50TtftMs: z.number().nullable(),
|
|
11209
|
+
requests: z.number(),
|
|
11210
|
+
spendUsd: z.number().nullable(),
|
|
11211
|
+
totalTokens: z.number()
|
|
11212
|
+
})).nullable(),
|
|
11213
|
+
error: z.object({
|
|
11214
|
+
code: z.string(),
|
|
11215
|
+
details: z.unknown().nullish(),
|
|
11216
|
+
message: z.string(),
|
|
11217
|
+
rowErrors: z.array(z.object({
|
|
11218
|
+
code: z.string(),
|
|
11219
|
+
message: z.string(),
|
|
11220
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
11221
|
+
})).nullish()
|
|
11222
|
+
}).nullable(),
|
|
11223
|
+
pagination: z.object({
|
|
11224
|
+
limit: z.int().gte(1).lte(100),
|
|
11225
|
+
page: z.int().gte(1),
|
|
11226
|
+
total: z.int().gte(0),
|
|
11227
|
+
totalPages: z.int().gte(0)
|
|
11228
|
+
}).nullable(),
|
|
11229
|
+
sdkBehavior: z.object({
|
|
11230
|
+
flags: z.record(z.string(), z.unknown()),
|
|
11231
|
+
v: z.int().gte(1)
|
|
11232
|
+
}).nullish(),
|
|
11233
|
+
success: z.boolean()
|
|
11234
|
+
});
|
|
11235
|
+
|
|
11236
|
+
export const zRoutingProvidersListRoutingModelsPath = z.object({
|
|
11237
|
+
projectId: z.string(),
|
|
11238
|
+
providerId: z.string().min(1)
|
|
11239
|
+
});
|
|
11240
|
+
|
|
11241
|
+
export const zRoutingProvidersListRoutingModelsQuery = z.object({
|
|
11242
|
+
page: z.int().nullish(),
|
|
11243
|
+
limit: z.int().nullish()
|
|
11244
|
+
});
|
|
11245
|
+
|
|
11246
|
+
/**
|
|
11247
|
+
* Success
|
|
11248
|
+
*/
|
|
11249
|
+
export const zRoutingProvidersListRoutingModelsResponse = z.object({
|
|
11250
|
+
code: z.number(),
|
|
11251
|
+
data: z.array(z.object({
|
|
11252
|
+
allowlisted: z.boolean().nullish(),
|
|
11253
|
+
catalogSlug: z.string().nullish(),
|
|
11254
|
+
createdAt: z.iso.datetime(),
|
|
11255
|
+
description: z.string().nullable(),
|
|
11256
|
+
displayName: z.string().nullable(),
|
|
11257
|
+
id: z.string(),
|
|
11258
|
+
modelType: z.string().nullable(),
|
|
11259
|
+
name: z.string(),
|
|
11260
|
+
providerId: z.string(),
|
|
11261
|
+
updatedAt: z.iso.datetime()
|
|
11262
|
+
})).nullable(),
|
|
11263
|
+
error: z.object({
|
|
11264
|
+
code: z.string(),
|
|
11265
|
+
details: z.unknown().nullish(),
|
|
11266
|
+
message: z.string(),
|
|
11267
|
+
rowErrors: z.array(z.object({
|
|
11268
|
+
code: z.string(),
|
|
11269
|
+
message: z.string(),
|
|
11270
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
11271
|
+
})).nullish()
|
|
11272
|
+
}).nullable(),
|
|
11273
|
+
pagination: z.object({
|
|
11274
|
+
limit: z.int().gte(1).lte(100),
|
|
11275
|
+
page: z.int().gte(1),
|
|
11276
|
+
total: z.int().gte(0),
|
|
11277
|
+
totalPages: z.int().gte(0)
|
|
11278
|
+
}).nullable(),
|
|
11279
|
+
sdkBehavior: z.object({
|
|
11280
|
+
flags: z.record(z.string(), z.unknown()),
|
|
11281
|
+
v: z.int().gte(1)
|
|
11282
|
+
}).nullish(),
|
|
11283
|
+
success: z.boolean()
|
|
11284
|
+
});
|
|
11285
|
+
|
|
11286
|
+
export const zRoutingProvidersCreateRoutingModelBody = z.object({
|
|
11287
|
+
catalogSlug: z.string().max(200).nullish(),
|
|
11288
|
+
description: z.string().nullish(),
|
|
11289
|
+
displayName: z.string().max(200).nullish(),
|
|
11290
|
+
modelType: z.string().max(50).nullish(),
|
|
11291
|
+
name: z.string().min(1).max(200)
|
|
11292
|
+
});
|
|
11293
|
+
|
|
11294
|
+
export const zRoutingProvidersCreateRoutingModelPath = z.object({
|
|
11295
|
+
projectId: z.string(),
|
|
11296
|
+
providerId: z.string().min(1)
|
|
11297
|
+
});
|
|
11298
|
+
|
|
11299
|
+
/**
|
|
11300
|
+
* Success
|
|
11301
|
+
*/
|
|
11302
|
+
export const zRoutingProvidersCreateRoutingModelResponse = z.object({
|
|
11303
|
+
code: z.number(),
|
|
11304
|
+
data: z.object({
|
|
11305
|
+
allowlisted: z.boolean().nullish(),
|
|
11306
|
+
catalogSlug: z.string().nullish(),
|
|
11307
|
+
createdAt: z.iso.datetime(),
|
|
11308
|
+
description: z.string().nullable(),
|
|
11309
|
+
displayName: z.string().nullable(),
|
|
11310
|
+
id: z.string(),
|
|
11311
|
+
modelType: z.string().nullable(),
|
|
11312
|
+
name: z.string(),
|
|
11313
|
+
providerId: z.string(),
|
|
11314
|
+
publishWarning: z.object({
|
|
11315
|
+
errors: z.array(z.object({
|
|
11316
|
+
entity: z.string(),
|
|
11317
|
+
message: z.string(),
|
|
11318
|
+
rule: z.string().nullish()
|
|
11319
|
+
})),
|
|
11320
|
+
kind: z.enum(['validation'])
|
|
11321
|
+
}).nullish(),
|
|
11322
|
+
updatedAt: z.iso.datetime()
|
|
11323
|
+
}).nullable(),
|
|
11324
|
+
error: z.object({
|
|
11325
|
+
code: z.string(),
|
|
11326
|
+
details: z.unknown().nullish(),
|
|
11327
|
+
message: z.string(),
|
|
11328
|
+
rowErrors: z.array(z.object({
|
|
11329
|
+
code: z.string(),
|
|
11330
|
+
message: z.string(),
|
|
11331
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
11332
|
+
})).nullish()
|
|
11333
|
+
}).nullable(),
|
|
11334
|
+
pagination: z.object({
|
|
11335
|
+
limit: z.int().gte(1).lte(100),
|
|
11336
|
+
page: z.int().gte(1),
|
|
11337
|
+
total: z.int().gte(0),
|
|
11338
|
+
totalPages: z.int().gte(0)
|
|
11339
|
+
}).nullable(),
|
|
11340
|
+
sdkBehavior: z.object({
|
|
11341
|
+
flags: z.record(z.string(), z.unknown()),
|
|
11342
|
+
v: z.int().gte(1)
|
|
11343
|
+
}).nullish(),
|
|
11344
|
+
success: z.boolean()
|
|
11345
|
+
});
|
|
11346
|
+
|
|
11347
|
+
export const zRoutingProvidersDeleteRoutingModelPath = z.object({
|
|
11348
|
+
projectId: z.string(),
|
|
11349
|
+
providerId: z.string().min(1),
|
|
11350
|
+
modelId: z.string().min(1)
|
|
11351
|
+
});
|
|
11352
|
+
|
|
11353
|
+
/**
|
|
11354
|
+
* Success
|
|
11355
|
+
*/
|
|
11356
|
+
export const zRoutingProvidersDeleteRoutingModelResponse = z.object({
|
|
10782
11357
|
code: z.number(),
|
|
10783
11358
|
data: z.object({
|
|
10784
11359
|
deleted: z.boolean(),
|
|
@@ -10832,6 +11407,7 @@ export const zRoutingProvidersUpdateRoutingModelPath = z.object({
|
|
|
10832
11407
|
export const zRoutingProvidersUpdateRoutingModelResponse = z.object({
|
|
10833
11408
|
code: z.number(),
|
|
10834
11409
|
data: z.object({
|
|
11410
|
+
allowlisted: z.boolean().nullish(),
|
|
10835
11411
|
catalogSlug: z.string().nullish(),
|
|
10836
11412
|
createdAt: z.iso.datetime(),
|
|
10837
11413
|
description: z.string().nullable(),
|
|
@@ -10885,6 +11461,7 @@ export const zRoutingProvidersRestoreRoutingModelPath = z.object({
|
|
|
10885
11461
|
export const zRoutingProvidersRestoreRoutingModelResponse = z.object({
|
|
10886
11462
|
code: z.number(),
|
|
10887
11463
|
data: z.object({
|
|
11464
|
+
allowlisted: z.boolean().nullish(),
|
|
10888
11465
|
catalogSlug: z.string().nullish(),
|
|
10889
11466
|
createdAt: z.iso.datetime(),
|
|
10890
11467
|
description: z.string().nullable(),
|
|
@@ -10971,21 +11548,25 @@ export const zProviderConfigVersionsListProviderConfigVersionsPath = z.object({
|
|
|
10971
11548
|
providerId: z.string().min(1)
|
|
10972
11549
|
});
|
|
10973
11550
|
|
|
11551
|
+
export const zProviderConfigVersionsListProviderConfigVersionsQuery = z.object({
|
|
11552
|
+
page: z.int().nullish(),
|
|
11553
|
+
limit: z.int().nullish()
|
|
11554
|
+
});
|
|
11555
|
+
|
|
10974
11556
|
/**
|
|
10975
11557
|
* Success
|
|
10976
11558
|
*/
|
|
10977
11559
|
export const zProviderConfigVersionsListProviderConfigVersionsResponse = z.object({
|
|
10978
11560
|
code: z.number(),
|
|
10979
|
-
data: z.object({
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
}).nullable(),
|
|
11561
|
+
data: z.array(z.object({
|
|
11562
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
11563
|
+
contentHash: z.string(),
|
|
11564
|
+
createdAt: z.iso.datetime(),
|
|
11565
|
+
createdBy: z.string().nullable(),
|
|
11566
|
+
id: z.string(),
|
|
11567
|
+
liveInEnvSlugs: z.array(z.string()),
|
|
11568
|
+
version: z.int()
|
|
11569
|
+
})).nullable(),
|
|
10989
11570
|
error: z.object({
|
|
10990
11571
|
code: z.string(),
|
|
10991
11572
|
details: z.unknown().nullish(),
|
|
@@ -11013,6 +11594,11 @@ export const zRoutingRoutesListRoutingRoutesPath = z.object({
|
|
|
11013
11594
|
projectId: z.string()
|
|
11014
11595
|
});
|
|
11015
11596
|
|
|
11597
|
+
export const zRoutingRoutesListRoutingRoutesQuery = z.object({
|
|
11598
|
+
page: z.int().nullish(),
|
|
11599
|
+
limit: z.int().nullish()
|
|
11600
|
+
});
|
|
11601
|
+
|
|
11016
11602
|
/**
|
|
11017
11603
|
* Success
|
|
11018
11604
|
*/
|
|
@@ -11985,6 +12571,11 @@ export const zRoutingTargetsListRoutingTargetsPath = z.object({
|
|
|
11985
12571
|
projectId: z.string()
|
|
11986
12572
|
});
|
|
11987
12573
|
|
|
12574
|
+
export const zRoutingTargetsListRoutingTargetsQuery = z.object({
|
|
12575
|
+
page: z.int().nullish(),
|
|
12576
|
+
limit: z.int().nullish()
|
|
12577
|
+
});
|
|
12578
|
+
|
|
11988
12579
|
/**
|
|
11989
12580
|
* Success
|
|
11990
12581
|
*/
|
|
@@ -12341,13 +12932,18 @@ export const zTracesListTracesQuery = z.object({
|
|
|
12341
12932
|
z.string()
|
|
12342
12933
|
])
|
|
12343
12934
|
]).nullish(),
|
|
12935
|
+
promptRef: z.union([
|
|
12936
|
+
z.string(),
|
|
12937
|
+
z.union([
|
|
12938
|
+
z.array(z.string()),
|
|
12939
|
+
z.string()
|
|
12940
|
+
])
|
|
12941
|
+
]).nullish(),
|
|
12344
12942
|
minTokens: z.string().nullish(),
|
|
12345
12943
|
maxTokens: z.string().nullish(),
|
|
12346
12944
|
minCost: z.string().nullish(),
|
|
12347
12945
|
maxCost: z.string().nullish(),
|
|
12348
12946
|
hasToolCalls: z.enum(['yes', 'no']).nullish(),
|
|
12349
|
-
invalidToolSelection: z.enum(['yes']).nullish(),
|
|
12350
|
-
schemaFailure: z.enum(['yes']).nullish(),
|
|
12351
12947
|
timePreset: z.enum([
|
|
12352
12948
|
'10m',
|
|
12353
12949
|
'30m',
|
|
@@ -12464,9 +13060,10 @@ export const zTracesListTracesResponse = z.object({
|
|
|
12464
13060
|
cost_usd: z.number().nullable(),
|
|
12465
13061
|
duration_ms: z.number(),
|
|
12466
13062
|
input_tokens: z.int(),
|
|
12467
|
-
invalid_tool_calls: z.int(),
|
|
12468
13063
|
model: z.string(),
|
|
12469
13064
|
output_tokens: z.int(),
|
|
13065
|
+
prompt_id: z.string().nullable(),
|
|
13066
|
+
prompt_version: z.string().nullable(),
|
|
12470
13067
|
provider: z.string(),
|
|
12471
13068
|
session_id: z.string(),
|
|
12472
13069
|
span_count: z.int(),
|
|
@@ -12512,6 +13109,105 @@ export const zTracesListTracesResponse = z.object({
|
|
|
12512
13109
|
success: z.boolean()
|
|
12513
13110
|
});
|
|
12514
13111
|
|
|
13112
|
+
export const zTracesListTracePromptFacetsPath = z.object({
|
|
13113
|
+
projectId: z.string().min(1)
|
|
13114
|
+
});
|
|
13115
|
+
|
|
13116
|
+
export const zTracesListTracePromptFacetsQuery = z.object({
|
|
13117
|
+
page: z.string().nullish(),
|
|
13118
|
+
limit: z.string().nullish(),
|
|
13119
|
+
sort: z.enum([
|
|
13120
|
+
'startTime',
|
|
13121
|
+
'durationMs',
|
|
13122
|
+
'inputTokens',
|
|
13123
|
+
'outputTokens',
|
|
13124
|
+
'model',
|
|
13125
|
+
'provider',
|
|
13126
|
+
'toolCalls',
|
|
13127
|
+
'costUsd'
|
|
13128
|
+
]).nullish(),
|
|
13129
|
+
order: z.enum(['asc', 'desc']).nullish(),
|
|
13130
|
+
status: z.enum([
|
|
13131
|
+
'ok',
|
|
13132
|
+
'error',
|
|
13133
|
+
'timeout'
|
|
13134
|
+
]).nullish(),
|
|
13135
|
+
provider: z.union([
|
|
13136
|
+
z.string(),
|
|
13137
|
+
z.union([
|
|
13138
|
+
z.array(z.string()),
|
|
13139
|
+
z.string()
|
|
13140
|
+
])
|
|
13141
|
+
]).nullish(),
|
|
13142
|
+
model: z.union([
|
|
13143
|
+
z.string(),
|
|
13144
|
+
z.union([
|
|
13145
|
+
z.array(z.string()),
|
|
13146
|
+
z.string()
|
|
13147
|
+
])
|
|
13148
|
+
]).nullish(),
|
|
13149
|
+
promptRef: z.union([
|
|
13150
|
+
z.string(),
|
|
13151
|
+
z.union([
|
|
13152
|
+
z.array(z.string()),
|
|
13153
|
+
z.string()
|
|
13154
|
+
])
|
|
13155
|
+
]).nullish(),
|
|
13156
|
+
minTokens: z.string().nullish(),
|
|
13157
|
+
maxTokens: z.string().nullish(),
|
|
13158
|
+
minCost: z.string().nullish(),
|
|
13159
|
+
maxCost: z.string().nullish(),
|
|
13160
|
+
hasToolCalls: z.enum(['yes', 'no']).nullish(),
|
|
13161
|
+
timePreset: z.enum([
|
|
13162
|
+
'10m',
|
|
13163
|
+
'30m',
|
|
13164
|
+
'1h',
|
|
13165
|
+
'2h',
|
|
13166
|
+
'3h',
|
|
13167
|
+
'8h',
|
|
13168
|
+
'24h',
|
|
13169
|
+
'7d',
|
|
13170
|
+
'14d',
|
|
13171
|
+
'28d',
|
|
13172
|
+
'60d'
|
|
13173
|
+
]).nullish(),
|
|
13174
|
+
startTimeFrom: z.string().nullish(),
|
|
13175
|
+
startTimeTo: z.string().nullish()
|
|
13176
|
+
});
|
|
13177
|
+
|
|
13178
|
+
/**
|
|
13179
|
+
* Success
|
|
13180
|
+
*/
|
|
13181
|
+
export const zTracesListTracePromptFacetsResponse = z.object({
|
|
13182
|
+
code: z.number(),
|
|
13183
|
+
data: z.array(z.object({
|
|
13184
|
+
prompt_id: z.string(),
|
|
13185
|
+
prompt_version: z.string(),
|
|
13186
|
+
trace_count: z.int()
|
|
13187
|
+
})).nullable(),
|
|
13188
|
+
error: z.object({
|
|
13189
|
+
code: z.string(),
|
|
13190
|
+
details: z.unknown().nullish(),
|
|
13191
|
+
message: z.string(),
|
|
13192
|
+
rowErrors: z.array(z.object({
|
|
13193
|
+
code: z.string(),
|
|
13194
|
+
message: z.string(),
|
|
13195
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
13196
|
+
})).nullish()
|
|
13197
|
+
}).nullable(),
|
|
13198
|
+
pagination: z.object({
|
|
13199
|
+
limit: z.int().gte(1).lte(100),
|
|
13200
|
+
page: z.int().gte(1),
|
|
13201
|
+
total: z.int().gte(0),
|
|
13202
|
+
totalPages: z.int().gte(0)
|
|
13203
|
+
}).nullable(),
|
|
13204
|
+
sdkBehavior: z.object({
|
|
13205
|
+
flags: z.record(z.string(), z.unknown()),
|
|
13206
|
+
v: z.int().gte(1)
|
|
13207
|
+
}).nullish(),
|
|
13208
|
+
success: z.boolean()
|
|
13209
|
+
});
|
|
13210
|
+
|
|
12515
13211
|
export const zTracesGetTraceDetailPath = z.object({
|
|
12516
13212
|
projectId: z.string().min(1),
|
|
12517
13213
|
traceId: z.string().min(1)
|
|
@@ -12716,9 +13412,7 @@ export const zTracesGetTraceDetailResponse = z.object({
|
|
|
12716
13412
|
]),
|
|
12717
13413
|
summary: z.object({
|
|
12718
13414
|
cost_usd: z.number().nullable(),
|
|
12719
|
-
has_schema_failure: z.boolean(),
|
|
12720
13415
|
input_tokens: z.int(),
|
|
12721
|
-
invalid_tool_calls: z.int(),
|
|
12722
13416
|
llm_call_count: z.int(),
|
|
12723
13417
|
model: z.string(),
|
|
12724
13418
|
output_tokens: z.int(),
|
|
@@ -12787,44 +13481,47 @@ export const zRoutingTokensMintRoutingReadTokenResponse = z.object({
|
|
|
12787
13481
|
success: z.boolean()
|
|
12788
13482
|
});
|
|
12789
13483
|
|
|
13484
|
+
export const zSupportedProvidersListSupportedProvidersQuery = z.object({
|
|
13485
|
+
page: z.int().nullish(),
|
|
13486
|
+
limit: z.int().nullish()
|
|
13487
|
+
});
|
|
13488
|
+
|
|
12790
13489
|
/**
|
|
12791
13490
|
* Success
|
|
12792
13491
|
*/
|
|
12793
13492
|
export const zSupportedProvidersListSupportedProvidersResponse = z.object({
|
|
12794
13493
|
code: z.number(),
|
|
12795
|
-
data: z.object({
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12805
|
-
|
|
12806
|
-
|
|
12807
|
-
|
|
12808
|
-
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
|
|
12813
|
-
|
|
12814
|
-
|
|
12815
|
-
|
|
12816
|
-
|
|
12817
|
-
|
|
12818
|
-
|
|
12819
|
-
|
|
12820
|
-
|
|
12821
|
-
|
|
12822
|
-
|
|
12823
|
-
|
|
12824
|
-
|
|
12825
|
-
|
|
12826
|
-
}))
|
|
12827
|
-
}).nullable(),
|
|
13494
|
+
data: z.array(z.object({
|
|
13495
|
+
authMethods: z.unknown(),
|
|
13496
|
+
brandColor: z.string().nullable(),
|
|
13497
|
+
configSchema: z.unknown(),
|
|
13498
|
+
defaultBaseUrl: z.string(),
|
|
13499
|
+
description: z.string(),
|
|
13500
|
+
displayName: z.string(),
|
|
13501
|
+
id: z.string(),
|
|
13502
|
+
logoSlug: z.string(),
|
|
13503
|
+
monogram: z.string(),
|
|
13504
|
+
popular: z.boolean(),
|
|
13505
|
+
qualifiers: z.unknown(),
|
|
13506
|
+
region: z.boolean(),
|
|
13507
|
+
suggestedBaseUrl: z.string().nullable(),
|
|
13508
|
+
templateFields: z.unknown(),
|
|
13509
|
+
testStrategy: z.enum([
|
|
13510
|
+
'list-models',
|
|
13511
|
+
'list-models-quirk',
|
|
13512
|
+
'list-models-templated',
|
|
13513
|
+
'cloud-sdk',
|
|
13514
|
+
'probe-completion'
|
|
13515
|
+
]),
|
|
13516
|
+
tier: z.enum([
|
|
13517
|
+
'frontier',
|
|
13518
|
+
'speed',
|
|
13519
|
+
'open',
|
|
13520
|
+
'aggregator',
|
|
13521
|
+
'cloud',
|
|
13522
|
+
'self'
|
|
13523
|
+
])
|
|
13524
|
+
})).nullable(),
|
|
12828
13525
|
error: z.object({
|
|
12829
13526
|
code: z.string(),
|
|
12830
13527
|
details: z.unknown().nullish(),
|
|
@@ -12889,14 +13586,8 @@ export const zProjectsListProjectsPath = z.object({
|
|
|
12889
13586
|
});
|
|
12890
13587
|
|
|
12891
13588
|
export const zProjectsListProjectsQuery = z.object({
|
|
12892
|
-
page: z.
|
|
12893
|
-
|
|
12894
|
-
z.string()
|
|
12895
|
-
]).nullish(),
|
|
12896
|
-
limit: z.union([
|
|
12897
|
-
z.string().regex(/^[+-]?\d*\.?\d+(?:[Ee][+-]?\d+)?$/),
|
|
12898
|
-
z.string()
|
|
12899
|
-
]).nullish(),
|
|
13589
|
+
page: z.int().nullish(),
|
|
13590
|
+
limit: z.int().nullish(),
|
|
12900
13591
|
search: z.string().nullish(),
|
|
12901
13592
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
12902
13593
|
status: z.string().nullish(),
|