@to11ai/sdk 2.0.0-rc.8 → 2.0.0
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 +5 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +218 -5
- package/dist/generated/zod.gen.d.ts +102 -4
- package/package.json +1 -1
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +228 -5
- package/src/generated/zod.gen.ts +106 -4
|
@@ -17133,6 +17133,7 @@ export type CredentialLifecycleRenameCredentialResponses = {
|
|
|
17133
17133
|
200: {
|
|
17134
17134
|
code: number;
|
|
17135
17135
|
data: {
|
|
17136
|
+
attachedElsewhere?: boolean | null | null;
|
|
17136
17137
|
createdAt: string;
|
|
17137
17138
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
17138
17139
|
deletedAt?: string | null | null;
|
|
@@ -17451,6 +17452,7 @@ export type CredentialLifecycleRestoreCredentialResponses = {
|
|
|
17451
17452
|
code: number;
|
|
17452
17453
|
data: {
|
|
17453
17454
|
credential: {
|
|
17455
|
+
attachedElsewhere?: boolean | null | null;
|
|
17454
17456
|
createdAt: string;
|
|
17455
17457
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
17456
17458
|
deletedAt?: string | null | null;
|
|
@@ -17824,9 +17826,10 @@ export type ProviderActivationsCreateProviderEnvActivationData = {
|
|
|
17824
17826
|
body: {
|
|
17825
17827
|
activeFrom?: string | null;
|
|
17826
17828
|
changeType?: 'initial' | 'credential_swap' | 'config_edit' | 'both' | 'rollback' | 'emergency_rotation' | null;
|
|
17827
|
-
configSnapshot
|
|
17829
|
+
configSnapshot?: {
|
|
17828
17830
|
[key: string]: unknown;
|
|
17829
|
-
};
|
|
17831
|
+
} | null | null;
|
|
17832
|
+
configVersionId?: string | null | null;
|
|
17830
17833
|
credentialId: string;
|
|
17831
17834
|
reason?: string | null;
|
|
17832
17835
|
};
|
|
@@ -18042,7 +18045,6 @@ export type ProviderEmergencyRotationEmergencyRotateProviderCredentialResponses
|
|
|
18042
18045
|
envSlug: string;
|
|
18043
18046
|
environmentId: string;
|
|
18044
18047
|
id: string;
|
|
18045
|
-
modelAllowlistCleared?: boolean | null;
|
|
18046
18048
|
providerId: string;
|
|
18047
18049
|
reason: string | null;
|
|
18048
18050
|
state: 'current' | 'pending';
|
|
@@ -18163,7 +18165,6 @@ export type ProviderRollbackRollbackProviderEnvActivationResponses = {
|
|
|
18163
18165
|
envSlug: string;
|
|
18164
18166
|
environmentId: string;
|
|
18165
18167
|
id: string;
|
|
18166
|
-
modelAllowlistCleared?: boolean | null;
|
|
18167
18168
|
providerId: string;
|
|
18168
18169
|
reason: string | null;
|
|
18169
18170
|
state: 'current' | 'pending';
|
|
@@ -20653,9 +20654,13 @@ export type RoutingProviderCatalogResolveRoutingProviderCatalogResponses = {
|
|
|
20653
20654
|
freshness: 'fresh' | 'stale';
|
|
20654
20655
|
models: Array<{
|
|
20655
20656
|
contextWindow?: number | null;
|
|
20657
|
+
cost: {
|
|
20658
|
+
inputPerMillion: number | null;
|
|
20659
|
+
};
|
|
20656
20660
|
deprecatedAt?: string | null;
|
|
20657
20661
|
displayName?: string | null;
|
|
20658
20662
|
id: string;
|
|
20663
|
+
kind: 'chat' | 'reason' | 'embed' | 'mod';
|
|
20659
20664
|
source?: 'user' | 'platform' | 'curated' | 'custom' | null;
|
|
20660
20665
|
}>;
|
|
20661
20666
|
source: 'user' | 'platform' | 'curated' | 'empty';
|
|
@@ -20870,6 +20875,7 @@ export type RoutingProvidersListRoutingCredentialsResponses = {
|
|
|
20870
20875
|
200: {
|
|
20871
20876
|
code: number;
|
|
20872
20877
|
data: Array<{
|
|
20878
|
+
attachedElsewhere?: boolean | null | null;
|
|
20873
20879
|
createdAt: string;
|
|
20874
20880
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
20875
20881
|
deletedAt?: string | null | null;
|
|
@@ -21001,6 +21007,7 @@ export type RoutingProvidersCreateRoutingCredentialResponses = {
|
|
|
21001
21007
|
201: {
|
|
21002
21008
|
code: number;
|
|
21003
21009
|
data: {
|
|
21010
|
+
attachedElsewhere?: boolean | null | null;
|
|
21004
21011
|
createdAt: string;
|
|
21005
21012
|
credentialType: 'api-key' | 'oauth' | 'iam-role' | 'access-key' | 'service-account' | 'none' | 'passthrough';
|
|
21006
21013
|
deletedAt?: string | null | null;
|
|
@@ -21470,6 +21477,121 @@ export type ProviderConfigDraftsGetProviderDraftResponses = {
|
|
|
21470
21477
|
|
|
21471
21478
|
export type ProviderConfigDraftsGetProviderDraftResponse = ProviderConfigDraftsGetProviderDraftResponses[keyof ProviderConfigDraftsGetProviderDraftResponses];
|
|
21472
21479
|
|
|
21480
|
+
export type ProviderConfigDraftsUpdateProviderDraftData = {
|
|
21481
|
+
body: {
|
|
21482
|
+
configSnapshotPatch: {
|
|
21483
|
+
baseUrl?: string | null | null;
|
|
21484
|
+
customModelIds?: Array<string> | null | null;
|
|
21485
|
+
models?: Array<string> | null | null;
|
|
21486
|
+
passthroughMode?: 'managed_precedence' | 'caller_precedence' | 'disabled' | null | null;
|
|
21487
|
+
providerRegion?: string | null | null;
|
|
21488
|
+
};
|
|
21489
|
+
};
|
|
21490
|
+
path: {
|
|
21491
|
+
projectId: string;
|
|
21492
|
+
providerId: string;
|
|
21493
|
+
};
|
|
21494
|
+
query?: never;
|
|
21495
|
+
url: '/v1/projects/{projectId}/routing/providers/{providerId}/draft';
|
|
21496
|
+
};
|
|
21497
|
+
|
|
21498
|
+
export type ProviderConfigDraftsUpdateProviderDraftErrors = {
|
|
21499
|
+
/**
|
|
21500
|
+
* BadRequestError
|
|
21501
|
+
*/
|
|
21502
|
+
400: BadRequestError;
|
|
21503
|
+
/**
|
|
21504
|
+
* UnauthorizedError
|
|
21505
|
+
*/
|
|
21506
|
+
401: UnauthorizedError;
|
|
21507
|
+
/**
|
|
21508
|
+
* ForbiddenError
|
|
21509
|
+
*/
|
|
21510
|
+
403: ForbiddenError;
|
|
21511
|
+
/**
|
|
21512
|
+
* NotFoundError
|
|
21513
|
+
*/
|
|
21514
|
+
404: NotFoundError;
|
|
21515
|
+
/**
|
|
21516
|
+
* ConflictError
|
|
21517
|
+
*/
|
|
21518
|
+
409: ConflictError;
|
|
21519
|
+
/**
|
|
21520
|
+
* GoneError
|
|
21521
|
+
*/
|
|
21522
|
+
410: GoneError;
|
|
21523
|
+
/**
|
|
21524
|
+
* ContentTooLargeError
|
|
21525
|
+
*/
|
|
21526
|
+
413: ContentTooLargeError;
|
|
21527
|
+
/**
|
|
21528
|
+
* MisdirectedRequestError
|
|
21529
|
+
*/
|
|
21530
|
+
421: MisdirectedRequestError;
|
|
21531
|
+
/**
|
|
21532
|
+
* UnprocessableEntityError
|
|
21533
|
+
*/
|
|
21534
|
+
422: UnprocessableEntityError;
|
|
21535
|
+
/**
|
|
21536
|
+
* TooManyRequestsError
|
|
21537
|
+
*/
|
|
21538
|
+
429: TooManyRequestsError;
|
|
21539
|
+
/**
|
|
21540
|
+
* InternalServerError
|
|
21541
|
+
*/
|
|
21542
|
+
500: InternalServerError;
|
|
21543
|
+
/**
|
|
21544
|
+
* ServiceUnavailableError
|
|
21545
|
+
*/
|
|
21546
|
+
503: ServiceUnavailableError;
|
|
21547
|
+
};
|
|
21548
|
+
|
|
21549
|
+
export type ProviderConfigDraftsUpdateProviderDraftError = ProviderConfigDraftsUpdateProviderDraftErrors[keyof ProviderConfigDraftsUpdateProviderDraftErrors];
|
|
21550
|
+
|
|
21551
|
+
export type ProviderConfigDraftsUpdateProviderDraftResponses = {
|
|
21552
|
+
/**
|
|
21553
|
+
* Success
|
|
21554
|
+
*/
|
|
21555
|
+
200: {
|
|
21556
|
+
code: number;
|
|
21557
|
+
data: {
|
|
21558
|
+
configSnapshot: {
|
|
21559
|
+
[key: string]: unknown;
|
|
21560
|
+
};
|
|
21561
|
+
createdAt: string;
|
|
21562
|
+
createdBy: string | null;
|
|
21563
|
+
fromVersionId: string;
|
|
21564
|
+
id: string;
|
|
21565
|
+
providerId: string;
|
|
21566
|
+
} | null;
|
|
21567
|
+
error: {
|
|
21568
|
+
code: string;
|
|
21569
|
+
details?: unknown | null;
|
|
21570
|
+
message: string;
|
|
21571
|
+
rowErrors?: Array<{
|
|
21572
|
+
code: string;
|
|
21573
|
+
message: string;
|
|
21574
|
+
path: Array<string | number>;
|
|
21575
|
+
}> | null;
|
|
21576
|
+
} | null;
|
|
21577
|
+
pagination: {
|
|
21578
|
+
limit: number;
|
|
21579
|
+
page: number;
|
|
21580
|
+
total: number;
|
|
21581
|
+
totalPages: number;
|
|
21582
|
+
} | null;
|
|
21583
|
+
sdkBehavior?: {
|
|
21584
|
+
flags: {
|
|
21585
|
+
[key: string]: unknown;
|
|
21586
|
+
};
|
|
21587
|
+
v: number;
|
|
21588
|
+
} | null;
|
|
21589
|
+
success: boolean;
|
|
21590
|
+
};
|
|
21591
|
+
};
|
|
21592
|
+
|
|
21593
|
+
export type ProviderConfigDraftsUpdateProviderDraftResponse = ProviderConfigDraftsUpdateProviderDraftResponses[keyof ProviderConfigDraftsUpdateProviderDraftResponses];
|
|
21594
|
+
|
|
21473
21595
|
export type ProviderConfigDraftsEnsureProviderDraftData = {
|
|
21474
21596
|
body?: never;
|
|
21475
21597
|
path: {
|
|
@@ -21659,6 +21781,7 @@ export type ProviderConfigDraftsCommitProviderDraftResponses = {
|
|
|
21659
21781
|
errorTag?: string | null;
|
|
21660
21782
|
outcome: 'deployed' | 'pending' | 'failed';
|
|
21661
21783
|
}>;
|
|
21784
|
+
skippedAmbiguousModels: Array<string>;
|
|
21662
21785
|
version: number;
|
|
21663
21786
|
versionId: string;
|
|
21664
21787
|
} | null;
|
|
@@ -21888,7 +22011,6 @@ export type ProviderPromoteVersionPromoteProviderEnvVersionResponses = {
|
|
|
21888
22011
|
envSlug: string;
|
|
21889
22012
|
environmentId: string;
|
|
21890
22013
|
id: string;
|
|
21891
|
-
modelAllowlistCleared?: boolean | null;
|
|
21892
22014
|
providerId: string;
|
|
21893
22015
|
reason: string | null;
|
|
21894
22016
|
state: 'current' | 'pending';
|
|
@@ -22100,6 +22222,7 @@ export type RoutingProvidersListRoutingModelsResponses = {
|
|
|
22100
22222
|
200: {
|
|
22101
22223
|
code: number;
|
|
22102
22224
|
data: Array<{
|
|
22225
|
+
allowlisted?: boolean | null;
|
|
22103
22226
|
catalogSlug?: string | null | null;
|
|
22104
22227
|
createdAt: string;
|
|
22105
22228
|
description: string | null;
|
|
@@ -22214,6 +22337,7 @@ export type RoutingProvidersCreateRoutingModelResponses = {
|
|
|
22214
22337
|
201: {
|
|
22215
22338
|
code: number;
|
|
22216
22339
|
data: {
|
|
22340
|
+
allowlisted?: boolean | null;
|
|
22217
22341
|
catalogSlug?: string | null | null;
|
|
22218
22342
|
createdAt: string;
|
|
22219
22343
|
description: string | null;
|
|
@@ -22444,6 +22568,7 @@ export type RoutingProvidersUpdateRoutingModelResponses = {
|
|
|
22444
22568
|
200: {
|
|
22445
22569
|
code: number;
|
|
22446
22570
|
data: {
|
|
22571
|
+
allowlisted?: boolean | null;
|
|
22447
22572
|
catalogSlug?: string | null | null;
|
|
22448
22573
|
createdAt: string;
|
|
22449
22574
|
description: string | null;
|
|
@@ -22561,6 +22686,7 @@ export type RoutingProvidersRestoreRoutingModelResponses = {
|
|
|
22561
22686
|
200: {
|
|
22562
22687
|
code: number;
|
|
22563
22688
|
data: {
|
|
22689
|
+
allowlisted?: boolean | null;
|
|
22564
22690
|
catalogSlug?: string | null | null;
|
|
22565
22691
|
createdAt: string;
|
|
22566
22692
|
description: string | null;
|
|
@@ -26548,6 +26674,103 @@ export type RbacAssignSystemRoleResponses = {
|
|
|
26548
26674
|
|
|
26549
26675
|
export type RbacAssignSystemRoleResponse = RbacAssignSystemRoleResponses[keyof RbacAssignSystemRoleResponses];
|
|
26550
26676
|
|
|
26677
|
+
export type ClerkWebhooksReceiveClerkWebhookData = {
|
|
26678
|
+
body?: never;
|
|
26679
|
+
path?: never;
|
|
26680
|
+
query?: never;
|
|
26681
|
+
url: '/v1/webhooks/clerk';
|
|
26682
|
+
};
|
|
26683
|
+
|
|
26684
|
+
export type ClerkWebhooksReceiveClerkWebhookErrors = {
|
|
26685
|
+
/**
|
|
26686
|
+
* BadRequestError
|
|
26687
|
+
*/
|
|
26688
|
+
400: BadRequestError;
|
|
26689
|
+
/**
|
|
26690
|
+
* UnauthorizedError
|
|
26691
|
+
*/
|
|
26692
|
+
401: UnauthorizedError;
|
|
26693
|
+
/**
|
|
26694
|
+
* ForbiddenError
|
|
26695
|
+
*/
|
|
26696
|
+
403: ForbiddenError;
|
|
26697
|
+
/**
|
|
26698
|
+
* NotFoundError
|
|
26699
|
+
*/
|
|
26700
|
+
404: NotFoundError;
|
|
26701
|
+
/**
|
|
26702
|
+
* ConflictError
|
|
26703
|
+
*/
|
|
26704
|
+
409: ConflictError;
|
|
26705
|
+
/**
|
|
26706
|
+
* GoneError
|
|
26707
|
+
*/
|
|
26708
|
+
410: GoneError;
|
|
26709
|
+
/**
|
|
26710
|
+
* ContentTooLargeError
|
|
26711
|
+
*/
|
|
26712
|
+
413: ContentTooLargeError;
|
|
26713
|
+
/**
|
|
26714
|
+
* MisdirectedRequestError
|
|
26715
|
+
*/
|
|
26716
|
+
421: MisdirectedRequestError;
|
|
26717
|
+
/**
|
|
26718
|
+
* UnprocessableEntityError
|
|
26719
|
+
*/
|
|
26720
|
+
422: UnprocessableEntityError;
|
|
26721
|
+
/**
|
|
26722
|
+
* TooManyRequestsError
|
|
26723
|
+
*/
|
|
26724
|
+
429: TooManyRequestsError;
|
|
26725
|
+
/**
|
|
26726
|
+
* InternalServerError
|
|
26727
|
+
*/
|
|
26728
|
+
500: InternalServerError;
|
|
26729
|
+
/**
|
|
26730
|
+
* ServiceUnavailableError
|
|
26731
|
+
*/
|
|
26732
|
+
503: ServiceUnavailableError;
|
|
26733
|
+
};
|
|
26734
|
+
|
|
26735
|
+
export type ClerkWebhooksReceiveClerkWebhookError = ClerkWebhooksReceiveClerkWebhookErrors[keyof ClerkWebhooksReceiveClerkWebhookErrors];
|
|
26736
|
+
|
|
26737
|
+
export type ClerkWebhooksReceiveClerkWebhookResponses = {
|
|
26738
|
+
/**
|
|
26739
|
+
* Success
|
|
26740
|
+
*/
|
|
26741
|
+
200: {
|
|
26742
|
+
code: number;
|
|
26743
|
+
data: {
|
|
26744
|
+
received: boolean;
|
|
26745
|
+
} | null;
|
|
26746
|
+
error: {
|
|
26747
|
+
code: string;
|
|
26748
|
+
details?: unknown | null;
|
|
26749
|
+
message: string;
|
|
26750
|
+
rowErrors?: Array<{
|
|
26751
|
+
code: string;
|
|
26752
|
+
message: string;
|
|
26753
|
+
path: Array<string | number>;
|
|
26754
|
+
}> | null;
|
|
26755
|
+
} | null;
|
|
26756
|
+
pagination: {
|
|
26757
|
+
limit: number;
|
|
26758
|
+
page: number;
|
|
26759
|
+
total: number;
|
|
26760
|
+
totalPages: number;
|
|
26761
|
+
} | null;
|
|
26762
|
+
sdkBehavior?: {
|
|
26763
|
+
flags: {
|
|
26764
|
+
[key: string]: unknown;
|
|
26765
|
+
};
|
|
26766
|
+
v: number;
|
|
26767
|
+
} | null;
|
|
26768
|
+
success: boolean;
|
|
26769
|
+
};
|
|
26770
|
+
};
|
|
26771
|
+
|
|
26772
|
+
export type ClerkWebhooksReceiveClerkWebhookResponse = ClerkWebhooksReceiveClerkWebhookResponses[keyof ClerkWebhooksReceiveClerkWebhookResponses];
|
|
26773
|
+
|
|
26551
26774
|
export type ProjectsListProjectsData = {
|
|
26552
26775
|
body?: never;
|
|
26553
26776
|
path: {
|
package/src/generated/zod.gen.ts
CHANGED
|
@@ -8459,6 +8459,7 @@ export const zCredentialLifecycleRenameCredentialPath = z.object({
|
|
|
8459
8459
|
export const zCredentialLifecycleRenameCredentialResponse = z.object({
|
|
8460
8460
|
code: z.number(),
|
|
8461
8461
|
data: z.object({
|
|
8462
|
+
attachedElsewhere: z.boolean().nullish(),
|
|
8462
8463
|
createdAt: z.iso.datetime(),
|
|
8463
8464
|
credentialType: z.enum([
|
|
8464
8465
|
'api-key',
|
|
@@ -8593,6 +8594,7 @@ export const zCredentialLifecycleRestoreCredentialResponse = z.object({
|
|
|
8593
8594
|
code: z.number(),
|
|
8594
8595
|
data: z.object({
|
|
8595
8596
|
credential: z.object({
|
|
8597
|
+
attachedElsewhere: z.boolean().nullish(),
|
|
8596
8598
|
createdAt: z.iso.datetime(),
|
|
8597
8599
|
credentialType: z.enum([
|
|
8598
8600
|
'api-key',
|
|
@@ -8805,7 +8807,8 @@ export const zProviderActivationsCreateProviderEnvActivationBody = z.object({
|
|
|
8805
8807
|
'rollback',
|
|
8806
8808
|
'emergency_rotation'
|
|
8807
8809
|
]).nullish(),
|
|
8808
|
-
configSnapshot: z.record(z.string(), z.unknown()),
|
|
8810
|
+
configSnapshot: z.record(z.string(), z.unknown()).nullish(),
|
|
8811
|
+
configVersionId: z.string().min(1).nullish(),
|
|
8809
8812
|
credentialId: z.string().min(1),
|
|
8810
8813
|
reason: z.string().nullish()
|
|
8811
8814
|
});
|
|
@@ -8907,7 +8910,6 @@ export const zProviderEmergencyRotationEmergencyRotateProviderCredentialResponse
|
|
|
8907
8910
|
envSlug: z.string(),
|
|
8908
8911
|
environmentId: z.string(),
|
|
8909
8912
|
id: z.string(),
|
|
8910
|
-
modelAllowlistCleared: z.boolean().nullish(),
|
|
8911
8913
|
providerId: z.string(),
|
|
8912
8914
|
reason: z.string().nullable(),
|
|
8913
8915
|
state: z.enum(['current', 'pending'])
|
|
@@ -8969,7 +8971,6 @@ export const zProviderRollbackRollbackProviderEnvActivationResponse = z.object({
|
|
|
8969
8971
|
envSlug: z.string(),
|
|
8970
8972
|
environmentId: z.string(),
|
|
8971
8973
|
id: z.string(),
|
|
8972
|
-
modelAllowlistCleared: z.boolean().nullish(),
|
|
8973
8974
|
providerId: z.string(),
|
|
8974
8975
|
reason: z.string().nullable(),
|
|
8975
8976
|
state: z.enum(['current', 'pending'])
|
|
@@ -10510,9 +10511,18 @@ export const zRoutingProviderCatalogResolveRoutingProviderCatalogResponse = z.ob
|
|
|
10510
10511
|
freshness: z.enum(['fresh', 'stale']),
|
|
10511
10512
|
models: z.array(z.object({
|
|
10512
10513
|
contextWindow: z.number().nullish(),
|
|
10514
|
+
cost: z.object({
|
|
10515
|
+
inputPerMillion: z.number().nullable()
|
|
10516
|
+
}),
|
|
10513
10517
|
deprecatedAt: z.string().nullish(),
|
|
10514
10518
|
displayName: z.string().nullish(),
|
|
10515
10519
|
id: z.string(),
|
|
10520
|
+
kind: z.enum([
|
|
10521
|
+
'chat',
|
|
10522
|
+
'reason',
|
|
10523
|
+
'embed',
|
|
10524
|
+
'mod'
|
|
10525
|
+
]),
|
|
10516
10526
|
source: z.enum([
|
|
10517
10527
|
'user',
|
|
10518
10528
|
'platform',
|
|
@@ -10613,6 +10623,7 @@ export const zRoutingProvidersListRoutingCredentialsQuery = z.object({
|
|
|
10613
10623
|
export const zRoutingProvidersListRoutingCredentialsResponse = z.object({
|
|
10614
10624
|
code: z.number(),
|
|
10615
10625
|
data: z.array(z.object({
|
|
10626
|
+
attachedElsewhere: z.boolean().nullish(),
|
|
10616
10627
|
createdAt: z.iso.datetime(),
|
|
10617
10628
|
credentialType: z.enum([
|
|
10618
10629
|
'api-key',
|
|
@@ -10698,6 +10709,7 @@ export const zRoutingProvidersCreateRoutingCredentialPath = z.object({
|
|
|
10698
10709
|
export const zRoutingProvidersCreateRoutingCredentialResponse = z.object({
|
|
10699
10710
|
code: z.number(),
|
|
10700
10711
|
data: z.object({
|
|
10712
|
+
attachedElsewhere: z.boolean().nullish(),
|
|
10701
10713
|
createdAt: z.iso.datetime(),
|
|
10702
10714
|
credentialType: z.enum([
|
|
10703
10715
|
'api-key',
|
|
@@ -10918,6 +10930,61 @@ export const zProviderConfigDraftsGetProviderDraftResponse = z.object({
|
|
|
10918
10930
|
success: z.boolean()
|
|
10919
10931
|
});
|
|
10920
10932
|
|
|
10933
|
+
export const zProviderConfigDraftsUpdateProviderDraftBody = z.object({
|
|
10934
|
+
configSnapshotPatch: z.object({
|
|
10935
|
+
baseUrl: z.string().nullish(),
|
|
10936
|
+
customModelIds: z.array(z.string()).nullish(),
|
|
10937
|
+
models: z.array(z.string()).nullish(),
|
|
10938
|
+
passthroughMode: z.enum([
|
|
10939
|
+
'managed_precedence',
|
|
10940
|
+
'caller_precedence',
|
|
10941
|
+
'disabled'
|
|
10942
|
+
]).nullish(),
|
|
10943
|
+
providerRegion: z.string().nullish()
|
|
10944
|
+
})
|
|
10945
|
+
});
|
|
10946
|
+
|
|
10947
|
+
export const zProviderConfigDraftsUpdateProviderDraftPath = z.object({
|
|
10948
|
+
projectId: z.string(),
|
|
10949
|
+
providerId: z.string().min(1)
|
|
10950
|
+
});
|
|
10951
|
+
|
|
10952
|
+
/**
|
|
10953
|
+
* Success
|
|
10954
|
+
*/
|
|
10955
|
+
export const zProviderConfigDraftsUpdateProviderDraftResponse = z.object({
|
|
10956
|
+
code: z.number(),
|
|
10957
|
+
data: z.object({
|
|
10958
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10959
|
+
createdAt: z.iso.datetime(),
|
|
10960
|
+
createdBy: z.string().nullable(),
|
|
10961
|
+
fromVersionId: z.string(),
|
|
10962
|
+
id: z.string(),
|
|
10963
|
+
providerId: z.string()
|
|
10964
|
+
}).nullable(),
|
|
10965
|
+
error: z.object({
|
|
10966
|
+
code: z.string(),
|
|
10967
|
+
details: z.unknown().nullish(),
|
|
10968
|
+
message: z.string(),
|
|
10969
|
+
rowErrors: z.array(z.object({
|
|
10970
|
+
code: z.string(),
|
|
10971
|
+
message: z.string(),
|
|
10972
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
10973
|
+
})).nullish()
|
|
10974
|
+
}).nullable(),
|
|
10975
|
+
pagination: z.object({
|
|
10976
|
+
limit: z.int().gte(1).lte(100),
|
|
10977
|
+
page: z.int().gte(1),
|
|
10978
|
+
total: z.int().gte(0),
|
|
10979
|
+
totalPages: z.int().gte(0)
|
|
10980
|
+
}).nullable(),
|
|
10981
|
+
sdkBehavior: z.object({
|
|
10982
|
+
flags: z.record(z.string(), z.unknown()),
|
|
10983
|
+
v: z.int().gte(1)
|
|
10984
|
+
}).nullish(),
|
|
10985
|
+
success: z.boolean()
|
|
10986
|
+
});
|
|
10987
|
+
|
|
10921
10988
|
export const zProviderConfigDraftsEnsureProviderDraftPath = z.object({
|
|
10922
10989
|
projectId: z.string(),
|
|
10923
10990
|
providerId: z.string().min(1)
|
|
@@ -10988,6 +11055,7 @@ export const zProviderConfigDraftsCommitProviderDraftResponse = z.object({
|
|
|
10988
11055
|
'failed'
|
|
10989
11056
|
])
|
|
10990
11057
|
})),
|
|
11058
|
+
skippedAmbiguousModels: z.array(z.string()),
|
|
10991
11059
|
version: z.number(),
|
|
10992
11060
|
versionId: z.string()
|
|
10993
11061
|
}).nullable(),
|
|
@@ -11094,7 +11162,6 @@ export const zProviderPromoteVersionPromoteProviderEnvVersionResponse = z.object
|
|
|
11094
11162
|
envSlug: z.string(),
|
|
11095
11163
|
environmentId: z.string(),
|
|
11096
11164
|
id: z.string(),
|
|
11097
|
-
modelAllowlistCleared: z.boolean().nullish(),
|
|
11098
11165
|
providerId: z.string(),
|
|
11099
11166
|
reason: z.string().nullable(),
|
|
11100
11167
|
state: z.enum(['current', 'pending'])
|
|
@@ -11180,6 +11247,7 @@ export const zRoutingProvidersListRoutingModelsQuery = z.object({
|
|
|
11180
11247
|
export const zRoutingProvidersListRoutingModelsResponse = z.object({
|
|
11181
11248
|
code: z.number(),
|
|
11182
11249
|
data: z.array(z.object({
|
|
11250
|
+
allowlisted: z.boolean().nullish(),
|
|
11183
11251
|
catalogSlug: z.string().nullish(),
|
|
11184
11252
|
createdAt: z.iso.datetime(),
|
|
11185
11253
|
description: z.string().nullable(),
|
|
@@ -11232,6 +11300,7 @@ export const zRoutingProvidersCreateRoutingModelPath = z.object({
|
|
|
11232
11300
|
export const zRoutingProvidersCreateRoutingModelResponse = z.object({
|
|
11233
11301
|
code: z.number(),
|
|
11234
11302
|
data: z.object({
|
|
11303
|
+
allowlisted: z.boolean().nullish(),
|
|
11235
11304
|
catalogSlug: z.string().nullish(),
|
|
11236
11305
|
createdAt: z.iso.datetime(),
|
|
11237
11306
|
description: z.string().nullable(),
|
|
@@ -11336,6 +11405,7 @@ export const zRoutingProvidersUpdateRoutingModelPath = z.object({
|
|
|
11336
11405
|
export const zRoutingProvidersUpdateRoutingModelResponse = z.object({
|
|
11337
11406
|
code: z.number(),
|
|
11338
11407
|
data: z.object({
|
|
11408
|
+
allowlisted: z.boolean().nullish(),
|
|
11339
11409
|
catalogSlug: z.string().nullish(),
|
|
11340
11410
|
createdAt: z.iso.datetime(),
|
|
11341
11411
|
description: z.string().nullable(),
|
|
@@ -11389,6 +11459,7 @@ export const zRoutingProvidersRestoreRoutingModelPath = z.object({
|
|
|
11389
11459
|
export const zRoutingProvidersRestoreRoutingModelResponse = z.object({
|
|
11390
11460
|
code: z.number(),
|
|
11391
11461
|
data: z.object({
|
|
11462
|
+
allowlisted: z.boolean().nullish(),
|
|
11392
11463
|
catalogSlug: z.string().nullish(),
|
|
11393
11464
|
createdAt: z.iso.datetime(),
|
|
11394
11465
|
description: z.string().nullable(),
|
|
@@ -13508,6 +13579,37 @@ export const zRbacAssignSystemRoleResponse = z.object({
|
|
|
13508
13579
|
success: z.boolean()
|
|
13509
13580
|
});
|
|
13510
13581
|
|
|
13582
|
+
/**
|
|
13583
|
+
* Success
|
|
13584
|
+
*/
|
|
13585
|
+
export const zClerkWebhooksReceiveClerkWebhookResponse = z.object({
|
|
13586
|
+
code: z.number(),
|
|
13587
|
+
data: z.object({
|
|
13588
|
+
received: z.boolean()
|
|
13589
|
+
}).nullable(),
|
|
13590
|
+
error: z.object({
|
|
13591
|
+
code: z.string(),
|
|
13592
|
+
details: z.unknown().nullish(),
|
|
13593
|
+
message: z.string(),
|
|
13594
|
+
rowErrors: z.array(z.object({
|
|
13595
|
+
code: z.string(),
|
|
13596
|
+
message: z.string(),
|
|
13597
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
13598
|
+
})).nullish()
|
|
13599
|
+
}).nullable(),
|
|
13600
|
+
pagination: z.object({
|
|
13601
|
+
limit: z.int().gte(1).lte(100),
|
|
13602
|
+
page: z.int().gte(1),
|
|
13603
|
+
total: z.int().gte(0),
|
|
13604
|
+
totalPages: z.int().gte(0)
|
|
13605
|
+
}).nullable(),
|
|
13606
|
+
sdkBehavior: z.object({
|
|
13607
|
+
flags: z.record(z.string(), z.unknown()),
|
|
13608
|
+
v: z.int().gte(1)
|
|
13609
|
+
}).nullish(),
|
|
13610
|
+
success: z.boolean()
|
|
13611
|
+
});
|
|
13612
|
+
|
|
13511
13613
|
export const zProjectsListProjectsPath = z.object({
|
|
13512
13614
|
workspaceId: z.string()
|
|
13513
13615
|
});
|