@to11ai/sdk 1.1.0 → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.cjs +85 -18
- package/dist/client.d.ts +140 -39
- package/dist/client.js +91 -19
- package/dist/config.d.ts +9 -0
- package/dist/context.d.ts +124 -0
- package/dist/errors.cjs +18 -1
- package/dist/errors.d.ts +18 -1
- package/dist/errors.js +18 -1
- package/dist/gateway.cjs +62 -22
- package/dist/gateway.d.ts +57 -9
- package/dist/gateway.js +62 -22
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +1299 -167
- package/dist/generated/zod.gen.d.ts +393 -232
- package/dist/prompts/cache.d.ts +3 -3
- package/dist/prompts/resource.cjs +21 -16
- package/dist/prompts/resource.d.ts +59 -28
- package/dist/prompts/resource.js +21 -16
- package/dist/prompts/shape.d.ts +54 -0
- package/dist/prompts/types.d.ts +31 -13
- package/package.json +1 -1
- package/src/client.ts +326 -80
- package/src/config.ts +13 -0
- package/src/context.ts +198 -0
- package/src/errors.ts +33 -3
- package/src/gateway.ts +135 -33
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +1310 -167
- package/src/generated/zod.gen.ts +358 -268
- package/src/prompts/cache.ts +3 -6
- package/src/prompts/resource.ts +89 -41
- package/src/prompts/shape.ts +149 -0
- package/src/prompts/types.ts +35 -14
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(),
|
|
@@ -221,11 +237,7 @@ export const zPrompt = z.object({
|
|
|
221
237
|
name: z.string().min(1).max(200),
|
|
222
238
|
projectId: z.string(),
|
|
223
239
|
slug: z.string().min(1).max(200).regex(/^[a-z0-9-]+$/),
|
|
224
|
-
status: z.enum([
|
|
225
|
-
'active',
|
|
226
|
-
'draft',
|
|
227
|
-
'archived'
|
|
228
|
-
]),
|
|
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(),
|
|
@@ -7283,11 +7360,7 @@ export const zPromptsListPromptsResponse = z.object({
|
|
|
7283
7360
|
name: z.string().min(1).max(200),
|
|
7284
7361
|
projectId: z.string(),
|
|
7285
7362
|
slug: z.string().min(1).max(200).regex(/^[a-z0-9-]+$/),
|
|
7286
|
-
status: z.enum([
|
|
7287
|
-
'active',
|
|
7288
|
-
'draft',
|
|
7289
|
-
'archived'
|
|
7290
|
-
]),
|
|
7363
|
+
status: z.enum(['active', 'archived']),
|
|
7291
7364
|
tags: z.array(z.string()),
|
|
7292
7365
|
updatedAt: z.iso.datetime()
|
|
7293
7366
|
})).nullable(),
|
|
@@ -7318,7 +7391,6 @@ export const zPromptsCreatePromptBody = z.object({
|
|
|
7318
7391
|
description: z.string().nullish(),
|
|
7319
7392
|
name: z.string().min(1).max(200),
|
|
7320
7393
|
slug: z.string().min(1).max(200).regex(/^[a-z0-9-]+$/),
|
|
7321
|
-
status: z.enum(['active', 'draft']).nullish(),
|
|
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)
|
|
@@ -7436,7 +7499,6 @@ export const zPromptsGetPromptDirectorySummaryResponse = z.object({
|
|
|
7436
7499
|
}).nullable(),
|
|
7437
7500
|
prompts: z.object({
|
|
7438
7501
|
archived: z.int(),
|
|
7439
|
-
draft: z.int(),
|
|
7440
7502
|
published: z.int(),
|
|
7441
7503
|
total: z.int()
|
|
7442
7504
|
}),
|
|
@@ -7539,11 +7601,7 @@ export const zPromptsGetPromptResponse = z.object({
|
|
|
7539
7601
|
export const zPromptsUpdatePromptBody = z.object({
|
|
7540
7602
|
description: z.string().nullish(),
|
|
7541
7603
|
name: z.string().min(1).max(200).nullish(),
|
|
7542
|
-
status: z.enum([
|
|
7543
|
-
'active',
|
|
7544
|
-
'draft',
|
|
7545
|
-
'archived'
|
|
7546
|
-
]).nullish(),
|
|
7604
|
+
status: z.enum(['active', 'archived']).nullish(),
|
|
7547
7605
|
tags: z.array(z.string()).nullish()
|
|
7548
7606
|
});
|
|
7549
7607
|
|
|
@@ -7638,7 +7696,9 @@ export const zPromptsListPromptLabelsPath = z.object({
|
|
|
7638
7696
|
});
|
|
7639
7697
|
|
|
7640
7698
|
export const zPromptsListPromptLabelsQuery = z.object({
|
|
7641
|
-
asOf: z.string().nullish()
|
|
7699
|
+
asOf: z.string().nullish(),
|
|
7700
|
+
page: z.int().nullish(),
|
|
7701
|
+
limit: z.int().nullish()
|
|
7642
7702
|
});
|
|
7643
7703
|
|
|
7644
7704
|
/**
|
|
@@ -7860,6 +7920,11 @@ export const zPromptsListPromptVersionsPath = z.object({
|
|
|
7860
7920
|
promptId: z.string()
|
|
7861
7921
|
});
|
|
7862
7922
|
|
|
7923
|
+
export const zPromptsListPromptVersionsQuery = z.object({
|
|
7924
|
+
page: z.int().nullish(),
|
|
7925
|
+
limit: z.int().nullish()
|
|
7926
|
+
});
|
|
7927
|
+
|
|
7863
7928
|
/**
|
|
7864
7929
|
* Success
|
|
7865
7930
|
*/
|
|
@@ -8300,11 +8365,6 @@ export const zPromptsWithdrawPromptReviewResponse = z.object({
|
|
|
8300
8365
|
});
|
|
8301
8366
|
|
|
8302
8367
|
export const zPromptsResolvePromptBody = z.object({
|
|
8303
|
-
developerRole: z.enum([
|
|
8304
|
-
'user',
|
|
8305
|
-
'developer',
|
|
8306
|
-
'system'
|
|
8307
|
-
]).nullish(),
|
|
8308
8368
|
labels: z.array(z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/)).min(1).max(10),
|
|
8309
8369
|
slug: z.string().min(1),
|
|
8310
8370
|
subject: z.string().min(1).nullish(),
|
|
@@ -8539,21 +8599,24 @@ export const zCredentialAttachmentsListEligibleCredentialsPath = z.object({
|
|
|
8539
8599
|
providerId: z.string().min(1)
|
|
8540
8600
|
});
|
|
8541
8601
|
|
|
8602
|
+
export const zCredentialAttachmentsListEligibleCredentialsQuery = z.object({
|
|
8603
|
+
page: z.int().nullish(),
|
|
8604
|
+
limit: z.int().nullish()
|
|
8605
|
+
});
|
|
8606
|
+
|
|
8542
8607
|
/**
|
|
8543
8608
|
* Success
|
|
8544
8609
|
*/
|
|
8545
8610
|
export const zCredentialAttachmentsListEligibleCredentialsResponse = z.object({
|
|
8546
8611
|
code: z.number(),
|
|
8547
|
-
data: z.object({
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
|
|
8555
|
-
}))
|
|
8556
|
-
}).nullable(),
|
|
8612
|
+
data: z.array(z.object({
|
|
8613
|
+
createdAt: z.string(),
|
|
8614
|
+
credentialType: z.string(),
|
|
8615
|
+
id: z.string(),
|
|
8616
|
+
keyLast4: z.string(),
|
|
8617
|
+
label: z.string().nullable(),
|
|
8618
|
+
providerCatalogId: z.string()
|
|
8619
|
+
})).nullable(),
|
|
8557
8620
|
error: z.object({
|
|
8558
8621
|
code: z.string(),
|
|
8559
8622
|
details: z.unknown().nullish(),
|
|
@@ -9272,6 +9335,11 @@ export const zRoutingProvidersListRoutingProvidersPath = z.object({
|
|
|
9272
9335
|
projectId: z.string()
|
|
9273
9336
|
});
|
|
9274
9337
|
|
|
9338
|
+
export const zRoutingProvidersListRoutingProvidersQuery = z.object({
|
|
9339
|
+
page: z.int().nullish(),
|
|
9340
|
+
limit: z.int().nullish()
|
|
9341
|
+
});
|
|
9342
|
+
|
|
9275
9343
|
/**
|
|
9276
9344
|
* Success
|
|
9277
9345
|
*/
|
|
@@ -9342,8 +9410,9 @@ export const zRoutingProvidersListRoutingProvidersResponse = z.object({
|
|
|
9342
9410
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
9343
9411
|
lifecycleState: z.enum([
|
|
9344
9412
|
'active',
|
|
9345
|
-
'
|
|
9346
|
-
'archived'
|
|
9413
|
+
'disconnected',
|
|
9414
|
+
'archived',
|
|
9415
|
+
'deleted'
|
|
9347
9416
|
]),
|
|
9348
9417
|
modelCount: z.int().gte(0),
|
|
9349
9418
|
projectId: z.string(),
|
|
@@ -9482,8 +9551,9 @@ export const zRoutingProvidersCreateRoutingProviderResponse = z.object({
|
|
|
9482
9551
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
9483
9552
|
lifecycleState: z.enum([
|
|
9484
9553
|
'active',
|
|
9485
|
-
'
|
|
9486
|
-
'archived'
|
|
9554
|
+
'disconnected',
|
|
9555
|
+
'archived',
|
|
9556
|
+
'deleted'
|
|
9487
9557
|
]),
|
|
9488
9558
|
modelCount: z.int().gte(0),
|
|
9489
9559
|
projectId: z.string(),
|
|
@@ -9689,8 +9759,9 @@ export const zRoutingProvidersConnectRoutingProviderResponse = z.object({
|
|
|
9689
9759
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
9690
9760
|
lifecycleState: z.enum([
|
|
9691
9761
|
'active',
|
|
9692
|
-
'
|
|
9693
|
-
'archived'
|
|
9762
|
+
'disconnected',
|
|
9763
|
+
'archived',
|
|
9764
|
+
'deleted'
|
|
9694
9765
|
]),
|
|
9695
9766
|
modelCount: z.int().gte(0),
|
|
9696
9767
|
projectId: z.string(),
|
|
@@ -9747,7 +9818,9 @@ export const zRoutingMetricsGetRoutingProviderMetricsPath = z.object({
|
|
|
9747
9818
|
});
|
|
9748
9819
|
|
|
9749
9820
|
export const zRoutingMetricsGetRoutingProviderMetricsQuery = z.object({
|
|
9750
|
-
window: z.string().nullish()
|
|
9821
|
+
window: z.string().nullish(),
|
|
9822
|
+
page: z.int().nullish(),
|
|
9823
|
+
limit: z.int().nullish()
|
|
9751
9824
|
});
|
|
9752
9825
|
|
|
9753
9826
|
/**
|
|
@@ -10027,8 +10100,9 @@ export const zRoutingProvidersGetRoutingProviderResponse = z.object({
|
|
|
10027
10100
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
10028
10101
|
lifecycleState: z.enum([
|
|
10029
10102
|
'active',
|
|
10030
|
-
'
|
|
10031
|
-
'archived'
|
|
10103
|
+
'disconnected',
|
|
10104
|
+
'archived',
|
|
10105
|
+
'deleted'
|
|
10032
10106
|
]),
|
|
10033
10107
|
modelCount: z.int().gte(0),
|
|
10034
10108
|
projectId: z.string(),
|
|
@@ -10165,8 +10239,9 @@ export const zRoutingProvidersUpdateRoutingProviderResponse = z.object({
|
|
|
10165
10239
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
10166
10240
|
lifecycleState: z.enum([
|
|
10167
10241
|
'active',
|
|
10168
|
-
'
|
|
10169
|
-
'archived'
|
|
10242
|
+
'disconnected',
|
|
10243
|
+
'archived',
|
|
10244
|
+
'deleted'
|
|
10170
10245
|
]),
|
|
10171
10246
|
modelCount: z.int().gte(0),
|
|
10172
10247
|
projectId: z.string(),
|
|
@@ -10370,6 +10445,11 @@ export const zRoutingProvidersListRoutingCredentialsPath = z.object({
|
|
|
10370
10445
|
providerId: z.string().min(1)
|
|
10371
10446
|
});
|
|
10372
10447
|
|
|
10448
|
+
export const zRoutingProvidersListRoutingCredentialsQuery = z.object({
|
|
10449
|
+
page: z.int().nullish(),
|
|
10450
|
+
limit: z.int().nullish()
|
|
10451
|
+
});
|
|
10452
|
+
|
|
10373
10453
|
/**
|
|
10374
10454
|
* Success
|
|
10375
10455
|
*/
|
|
@@ -10670,6 +10750,11 @@ export const zRoutingProvidersListRoutingModelsPath = z.object({
|
|
|
10670
10750
|
providerId: z.string().min(1)
|
|
10671
10751
|
});
|
|
10672
10752
|
|
|
10753
|
+
export const zRoutingProvidersListRoutingModelsQuery = z.object({
|
|
10754
|
+
page: z.int().nullish(),
|
|
10755
|
+
limit: z.int().nullish()
|
|
10756
|
+
});
|
|
10757
|
+
|
|
10673
10758
|
/**
|
|
10674
10759
|
* Success
|
|
10675
10760
|
*/
|
|
@@ -10971,21 +11056,24 @@ export const zProviderConfigVersionsListProviderConfigVersionsPath = z.object({
|
|
|
10971
11056
|
providerId: z.string().min(1)
|
|
10972
11057
|
});
|
|
10973
11058
|
|
|
11059
|
+
export const zProviderConfigVersionsListProviderConfigVersionsQuery = z.object({
|
|
11060
|
+
page: z.int().nullish(),
|
|
11061
|
+
limit: z.int().nullish()
|
|
11062
|
+
});
|
|
11063
|
+
|
|
10974
11064
|
/**
|
|
10975
11065
|
* Success
|
|
10976
11066
|
*/
|
|
10977
11067
|
export const zProviderConfigVersionsListProviderConfigVersionsResponse = z.object({
|
|
10978
11068
|
code: z.number(),
|
|
10979
|
-
data: z.object({
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
}))
|
|
10988
|
-
}).nullable(),
|
|
11069
|
+
data: z.array(z.object({
|
|
11070
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
11071
|
+
contentHash: z.string(),
|
|
11072
|
+
createdAt: z.iso.datetime(),
|
|
11073
|
+
createdBy: z.string().nullable(),
|
|
11074
|
+
liveInEnvSlugs: z.array(z.string()),
|
|
11075
|
+
version: z.int()
|
|
11076
|
+
})).nullable(),
|
|
10989
11077
|
error: z.object({
|
|
10990
11078
|
code: z.string(),
|
|
10991
11079
|
details: z.unknown().nullish(),
|
|
@@ -11013,6 +11101,11 @@ export const zRoutingRoutesListRoutingRoutesPath = z.object({
|
|
|
11013
11101
|
projectId: z.string()
|
|
11014
11102
|
});
|
|
11015
11103
|
|
|
11104
|
+
export const zRoutingRoutesListRoutingRoutesQuery = z.object({
|
|
11105
|
+
page: z.int().nullish(),
|
|
11106
|
+
limit: z.int().nullish()
|
|
11107
|
+
});
|
|
11108
|
+
|
|
11016
11109
|
/**
|
|
11017
11110
|
* Success
|
|
11018
11111
|
*/
|
|
@@ -11985,6 +12078,11 @@ export const zRoutingTargetsListRoutingTargetsPath = z.object({
|
|
|
11985
12078
|
projectId: z.string()
|
|
11986
12079
|
});
|
|
11987
12080
|
|
|
12081
|
+
export const zRoutingTargetsListRoutingTargetsQuery = z.object({
|
|
12082
|
+
page: z.int().nullish(),
|
|
12083
|
+
limit: z.int().nullish()
|
|
12084
|
+
});
|
|
12085
|
+
|
|
11988
12086
|
/**
|
|
11989
12087
|
* Success
|
|
11990
12088
|
*/
|
|
@@ -12346,8 +12444,6 @@ export const zTracesListTracesQuery = z.object({
|
|
|
12346
12444
|
minCost: z.string().nullish(),
|
|
12347
12445
|
maxCost: z.string().nullish(),
|
|
12348
12446
|
hasToolCalls: z.enum(['yes', 'no']).nullish(),
|
|
12349
|
-
invalidToolSelection: z.enum(['yes']).nullish(),
|
|
12350
|
-
schemaFailure: z.enum(['yes']).nullish(),
|
|
12351
12447
|
timePreset: z.enum([
|
|
12352
12448
|
'10m',
|
|
12353
12449
|
'30m',
|
|
@@ -12464,7 +12560,6 @@ export const zTracesListTracesResponse = z.object({
|
|
|
12464
12560
|
cost_usd: z.number().nullable(),
|
|
12465
12561
|
duration_ms: z.number(),
|
|
12466
12562
|
input_tokens: z.int(),
|
|
12467
|
-
invalid_tool_calls: z.int(),
|
|
12468
12563
|
model: z.string(),
|
|
12469
12564
|
output_tokens: z.int(),
|
|
12470
12565
|
provider: z.string(),
|
|
@@ -12716,9 +12811,7 @@ export const zTracesGetTraceDetailResponse = z.object({
|
|
|
12716
12811
|
]),
|
|
12717
12812
|
summary: z.object({
|
|
12718
12813
|
cost_usd: z.number().nullable(),
|
|
12719
|
-
has_schema_failure: z.boolean(),
|
|
12720
12814
|
input_tokens: z.int(),
|
|
12721
|
-
invalid_tool_calls: z.int(),
|
|
12722
12815
|
llm_call_count: z.int(),
|
|
12723
12816
|
model: z.string(),
|
|
12724
12817
|
output_tokens: z.int(),
|
|
@@ -12787,44 +12880,47 @@ export const zRoutingTokensMintRoutingReadTokenResponse = z.object({
|
|
|
12787
12880
|
success: z.boolean()
|
|
12788
12881
|
});
|
|
12789
12882
|
|
|
12883
|
+
export const zSupportedProvidersListSupportedProvidersQuery = z.object({
|
|
12884
|
+
page: z.int().nullish(),
|
|
12885
|
+
limit: z.int().nullish()
|
|
12886
|
+
});
|
|
12887
|
+
|
|
12790
12888
|
/**
|
|
12791
12889
|
* Success
|
|
12792
12890
|
*/
|
|
12793
12891
|
export const zSupportedProvidersListSupportedProvidersResponse = z.object({
|
|
12794
12892
|
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(),
|
|
12893
|
+
data: z.array(z.object({
|
|
12894
|
+
authMethods: z.unknown(),
|
|
12895
|
+
brandColor: z.string().nullable(),
|
|
12896
|
+
configSchema: z.unknown(),
|
|
12897
|
+
defaultBaseUrl: z.string(),
|
|
12898
|
+
description: z.string(),
|
|
12899
|
+
displayName: z.string(),
|
|
12900
|
+
id: z.string(),
|
|
12901
|
+
logoSlug: z.string(),
|
|
12902
|
+
monogram: z.string(),
|
|
12903
|
+
popular: z.boolean(),
|
|
12904
|
+
qualifiers: z.unknown(),
|
|
12905
|
+
region: z.boolean(),
|
|
12906
|
+
suggestedBaseUrl: z.string().nullable(),
|
|
12907
|
+
templateFields: z.unknown(),
|
|
12908
|
+
testStrategy: z.enum([
|
|
12909
|
+
'list-models',
|
|
12910
|
+
'list-models-quirk',
|
|
12911
|
+
'list-models-templated',
|
|
12912
|
+
'cloud-sdk',
|
|
12913
|
+
'probe-completion'
|
|
12914
|
+
]),
|
|
12915
|
+
tier: z.enum([
|
|
12916
|
+
'frontier',
|
|
12917
|
+
'speed',
|
|
12918
|
+
'open',
|
|
12919
|
+
'aggregator',
|
|
12920
|
+
'cloud',
|
|
12921
|
+
'self'
|
|
12922
|
+
])
|
|
12923
|
+
})).nullable(),
|
|
12828
12924
|
error: z.object({
|
|
12829
12925
|
code: z.string(),
|
|
12830
12926
|
details: z.unknown().nullish(),
|
|
@@ -12889,14 +12985,8 @@ export const zProjectsListProjectsPath = z.object({
|
|
|
12889
12985
|
});
|
|
12890
12986
|
|
|
12891
12987
|
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(),
|
|
12988
|
+
page: z.int().nullish(),
|
|
12989
|
+
limit: z.int().nullish(),
|
|
12900
12990
|
search: z.string().nullish(),
|
|
12901
12991
|
sortDir: z.enum(['asc', 'desc']).nullish(),
|
|
12902
12992
|
status: z.string().nullish(),
|