@to11ai/sdk 0.3.0 → 0.5.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 +1 -0
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +789 -304
- package/dist/generated/zod.gen.d.ts +454 -133
- package/dist/prompts/types.d.ts +1 -1
- package/package.json +1 -1
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +809 -304
- package/src/generated/zod.gen.ts +476 -154
- package/src/prompts/types.ts +1 -1
package/src/generated/zod.gen.ts
CHANGED
|
@@ -244,6 +244,7 @@ export const zPromptLabelEvent = z.object({
|
|
|
244
244
|
export const zPromptLabelPointer = z.object({
|
|
245
245
|
label: z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/),
|
|
246
246
|
promptId: z.string(),
|
|
247
|
+
reason: z.string(),
|
|
247
248
|
updatedAt: z.iso.datetime(),
|
|
248
249
|
updatedByDisplayName: z.string().nullable(),
|
|
249
250
|
updatedByUserId: z.string(),
|
|
@@ -272,7 +273,7 @@ export const zPromptRelease = z.object({
|
|
|
272
273
|
id: z.string(),
|
|
273
274
|
priorReleaseId: z.string().nullable(),
|
|
274
275
|
promptId: z.string(),
|
|
275
|
-
reason: z.string()
|
|
276
|
+
reason: z.string(),
|
|
276
277
|
strategy: z.enum(['single', 'weighted']),
|
|
277
278
|
versionId: z.string()
|
|
278
279
|
});
|
|
@@ -851,78 +852,6 @@ export const zDataCentersGetDataCenterBootstrapStatusResponse = z.object({
|
|
|
851
852
|
success: z.boolean()
|
|
852
853
|
});
|
|
853
854
|
|
|
854
|
-
/**
|
|
855
|
-
* Success
|
|
856
|
-
*/
|
|
857
|
-
export const zPlatformSettingsGetMultiDcRoutingToggleResponse = z.object({
|
|
858
|
-
code: z.number(),
|
|
859
|
-
data: z.object({
|
|
860
|
-
createdAt: z.iso.datetime(),
|
|
861
|
-
enabled: z.boolean(),
|
|
862
|
-
key: z.string().min(1),
|
|
863
|
-
updatedAt: z.iso.datetime()
|
|
864
|
-
}).nullable(),
|
|
865
|
-
error: z.object({
|
|
866
|
-
code: z.string(),
|
|
867
|
-
details: z.unknown().nullish(),
|
|
868
|
-
message: z.string(),
|
|
869
|
-
rowErrors: z.array(z.object({
|
|
870
|
-
code: z.string(),
|
|
871
|
-
message: z.string(),
|
|
872
|
-
path: z.array(z.union([z.string(), z.number()]))
|
|
873
|
-
})).nullish()
|
|
874
|
-
}).nullable(),
|
|
875
|
-
pagination: z.object({
|
|
876
|
-
limit: z.int().gte(1).lte(100),
|
|
877
|
-
page: z.int().gte(1),
|
|
878
|
-
total: z.int().gte(0),
|
|
879
|
-
totalPages: z.int().gte(0)
|
|
880
|
-
}).nullable(),
|
|
881
|
-
sdkBehavior: z.object({
|
|
882
|
-
flags: z.record(z.string(), z.unknown()),
|
|
883
|
-
v: z.int().gte(1)
|
|
884
|
-
}).nullish(),
|
|
885
|
-
success: z.boolean()
|
|
886
|
-
});
|
|
887
|
-
|
|
888
|
-
export const zPlatformSettingsUpdateMultiDcRoutingToggleBody = z.object({
|
|
889
|
-
enabled: z.boolean()
|
|
890
|
-
});
|
|
891
|
-
|
|
892
|
-
/**
|
|
893
|
-
* Success
|
|
894
|
-
*/
|
|
895
|
-
export const zPlatformSettingsUpdateMultiDcRoutingToggleResponse = z.object({
|
|
896
|
-
code: z.number(),
|
|
897
|
-
data: z.object({
|
|
898
|
-
createdAt: z.iso.datetime(),
|
|
899
|
-
enabled: z.boolean(),
|
|
900
|
-
key: z.string().min(1),
|
|
901
|
-
updatedAt: z.iso.datetime()
|
|
902
|
-
}).nullable(),
|
|
903
|
-
error: z.object({
|
|
904
|
-
code: z.string(),
|
|
905
|
-
details: z.unknown().nullish(),
|
|
906
|
-
message: z.string(),
|
|
907
|
-
rowErrors: z.array(z.object({
|
|
908
|
-
code: z.string(),
|
|
909
|
-
message: z.string(),
|
|
910
|
-
path: z.array(z.union([z.string(), z.number()]))
|
|
911
|
-
})).nullish()
|
|
912
|
-
}).nullable(),
|
|
913
|
-
pagination: z.object({
|
|
914
|
-
limit: z.int().gte(1).lte(100),
|
|
915
|
-
page: z.int().gte(1),
|
|
916
|
-
total: z.int().gte(0),
|
|
917
|
-
totalPages: z.int().gte(0)
|
|
918
|
-
}).nullable(),
|
|
919
|
-
sdkBehavior: z.object({
|
|
920
|
-
flags: z.record(z.string(), z.unknown()),
|
|
921
|
-
v: z.int().gte(1)
|
|
922
|
-
}).nullish(),
|
|
923
|
-
success: z.boolean()
|
|
924
|
-
});
|
|
925
|
-
|
|
926
855
|
export const zPlatformSettingsGetPlatformSettingPath = z.object({
|
|
927
856
|
key: z.string()
|
|
928
857
|
});
|
|
@@ -1898,6 +1827,7 @@ export const zIngestTokenExchangeIngestTokenBody = z.object({
|
|
|
1898
1827
|
export const zIngestTokenExchangeIngestTokenResponse = z.object({
|
|
1899
1828
|
code: z.number(),
|
|
1900
1829
|
data: z.object({
|
|
1830
|
+
apiKeyId: z.string(),
|
|
1901
1831
|
expiresAt: z.string(),
|
|
1902
1832
|
projectId: z.string(),
|
|
1903
1833
|
scopeClass: z.enum(['project', 'org']),
|
|
@@ -1963,6 +1893,76 @@ export const zOrganizationsAcceptOrganizationInvitationResponse = z.object({
|
|
|
1963
1893
|
success: z.boolean()
|
|
1964
1894
|
});
|
|
1965
1895
|
|
|
1896
|
+
/**
|
|
1897
|
+
* Success
|
|
1898
|
+
*/
|
|
1899
|
+
export const zOrganizationsAcceptPendingOrganizationInvitationsResponse = z.object({
|
|
1900
|
+
code: z.number(),
|
|
1901
|
+
data: z.object({
|
|
1902
|
+
acceptedOrganizationIds: z.array(z.string())
|
|
1903
|
+
}).nullable(),
|
|
1904
|
+
error: z.object({
|
|
1905
|
+
code: z.string(),
|
|
1906
|
+
details: z.unknown().nullish(),
|
|
1907
|
+
message: z.string(),
|
|
1908
|
+
rowErrors: z.array(z.object({
|
|
1909
|
+
code: z.string(),
|
|
1910
|
+
message: z.string(),
|
|
1911
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
1912
|
+
})).nullish()
|
|
1913
|
+
}).nullable(),
|
|
1914
|
+
pagination: z.object({
|
|
1915
|
+
limit: z.int().gte(1).lte(100),
|
|
1916
|
+
page: z.int().gte(1),
|
|
1917
|
+
total: z.int().gte(0),
|
|
1918
|
+
totalPages: z.int().gte(0)
|
|
1919
|
+
}).nullable(),
|
|
1920
|
+
sdkBehavior: z.object({
|
|
1921
|
+
flags: z.record(z.string(), z.unknown()),
|
|
1922
|
+
v: z.int().gte(1)
|
|
1923
|
+
}).nullish(),
|
|
1924
|
+
success: z.boolean()
|
|
1925
|
+
});
|
|
1926
|
+
|
|
1927
|
+
export const zOrganizationsGetOrganizationInvitationDetailsBody = z.object({
|
|
1928
|
+
token: z.string().min(1).max(2048)
|
|
1929
|
+
});
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* Success
|
|
1933
|
+
*/
|
|
1934
|
+
export const zOrganizationsGetOrganizationInvitationDetailsResponse = z.object({
|
|
1935
|
+
code: z.number(),
|
|
1936
|
+
data: z.object({
|
|
1937
|
+
details: z.object({
|
|
1938
|
+
inviterEmail: z.string().nullable(),
|
|
1939
|
+
inviterName: z.string().nullable(),
|
|
1940
|
+
organizationName: z.string()
|
|
1941
|
+
}).nullable()
|
|
1942
|
+
}).nullable(),
|
|
1943
|
+
error: z.object({
|
|
1944
|
+
code: z.string(),
|
|
1945
|
+
details: z.unknown().nullish(),
|
|
1946
|
+
message: z.string(),
|
|
1947
|
+
rowErrors: z.array(z.object({
|
|
1948
|
+
code: z.string(),
|
|
1949
|
+
message: z.string(),
|
|
1950
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
1951
|
+
})).nullish()
|
|
1952
|
+
}).nullable(),
|
|
1953
|
+
pagination: z.object({
|
|
1954
|
+
limit: z.int().gte(1).lte(100),
|
|
1955
|
+
page: z.int().gte(1),
|
|
1956
|
+
total: z.int().gte(0),
|
|
1957
|
+
totalPages: z.int().gte(0)
|
|
1958
|
+
}).nullable(),
|
|
1959
|
+
sdkBehavior: z.object({
|
|
1960
|
+
flags: z.record(z.string(), z.unknown()),
|
|
1961
|
+
v: z.int().gte(1)
|
|
1962
|
+
}).nullish(),
|
|
1963
|
+
success: z.boolean()
|
|
1964
|
+
});
|
|
1965
|
+
|
|
1966
1966
|
/**
|
|
1967
1967
|
* Success
|
|
1968
1968
|
*/
|
|
@@ -4198,35 +4198,18 @@ export const zWorkspacesCreateWorkspacePath = z.object({
|
|
|
4198
4198
|
export const zWorkspacesCreateWorkspaceResponse = z.object({
|
|
4199
4199
|
code: z.number(),
|
|
4200
4200
|
data: z.object({
|
|
4201
|
-
|
|
4202
|
-
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
updatedAt: z.iso.datetime(),
|
|
4214
|
-
workspaceId: z.string()
|
|
4215
|
-
}),
|
|
4216
|
-
workspace: z.object({
|
|
4217
|
-
allowPlatformDiscovery: z.boolean(),
|
|
4218
|
-
createdAt: z.iso.datetime(),
|
|
4219
|
-
id: z.string(),
|
|
4220
|
-
name: z.string().min(1).max(120),
|
|
4221
|
-
organizationId: z.string(),
|
|
4222
|
-
slug: z.string().min(1).max(120),
|
|
4223
|
-
status: z.enum([
|
|
4224
|
-
'active',
|
|
4225
|
-
'archived',
|
|
4226
|
-
'deleted'
|
|
4227
|
-
]),
|
|
4228
|
-
updatedAt: z.iso.datetime()
|
|
4229
|
-
})
|
|
4201
|
+
allowPlatformDiscovery: z.boolean(),
|
|
4202
|
+
createdAt: z.iso.datetime(),
|
|
4203
|
+
id: z.string(),
|
|
4204
|
+
name: z.string().min(1).max(120),
|
|
4205
|
+
organizationId: z.string(),
|
|
4206
|
+
slug: z.string().min(1).max(120),
|
|
4207
|
+
status: z.enum([
|
|
4208
|
+
'active',
|
|
4209
|
+
'archived',
|
|
4210
|
+
'deleted'
|
|
4211
|
+
]),
|
|
4212
|
+
updatedAt: z.iso.datetime()
|
|
4230
4213
|
}).nullable(),
|
|
4231
4214
|
error: z.object({
|
|
4232
4215
|
code: z.string(),
|
|
@@ -5199,7 +5182,7 @@ export const zCredentialsDirectoryListProjectCredentialsDirectoryPath = z.object
|
|
|
5199
5182
|
|
|
5200
5183
|
export const zCredentialsDirectoryListProjectCredentialsDirectoryQuery = z.object({
|
|
5201
5184
|
catalog_id: z.string().nullish(),
|
|
5202
|
-
lifecycle_status: z.enum(['active']).nullish(),
|
|
5185
|
+
lifecycle_status: z.enum(['active', 'deleted']).nullish(),
|
|
5203
5186
|
attached_provider_count: z.enum([
|
|
5204
5187
|
'0',
|
|
5205
5188
|
'1',
|
|
@@ -5230,7 +5213,15 @@ export const zCredentialsDirectoryListProjectCredentialsDirectoryResponse = z.ob
|
|
|
5230
5213
|
}),
|
|
5231
5214
|
createdAt: z.string(),
|
|
5232
5215
|
createdBy: z.string().nullable(),
|
|
5233
|
-
credentialType: z.
|
|
5216
|
+
credentialType: z.enum([
|
|
5217
|
+
'api-key',
|
|
5218
|
+
'oauth',
|
|
5219
|
+
'iam-role',
|
|
5220
|
+
'access-key',
|
|
5221
|
+
'service-account',
|
|
5222
|
+
'none',
|
|
5223
|
+
'passthrough'
|
|
5224
|
+
]),
|
|
5234
5225
|
currentActivations: z.array(z.object({
|
|
5235
5226
|
activeFrom: z.string(),
|
|
5236
5227
|
activeTo: z.string().nullable(),
|
|
@@ -5244,7 +5235,7 @@ export const zCredentialsDirectoryListProjectCredentialsDirectoryResponse = z.ob
|
|
|
5244
5235
|
keyLast4: z.string(),
|
|
5245
5236
|
label: z.string().nullable(),
|
|
5246
5237
|
lastRotationAt: z.string().nullable(),
|
|
5247
|
-
lifecycleStatus: z.enum(['active']),
|
|
5238
|
+
lifecycleStatus: z.enum(['active', 'deleted']),
|
|
5248
5239
|
projectId: z.string()
|
|
5249
5240
|
})),
|
|
5250
5241
|
pagination: z.object({
|
|
@@ -7197,7 +7188,8 @@ export const zPromptsListPromptsQuery = z.object({
|
|
|
7197
7188
|
'updatedAt',
|
|
7198
7189
|
'name',
|
|
7199
7190
|
'status',
|
|
7200
|
-
'latestVersion'
|
|
7191
|
+
'latestVersion',
|
|
7192
|
+
'environments'
|
|
7201
7193
|
]).nullish(),
|
|
7202
7194
|
tags: z.string().nullish(),
|
|
7203
7195
|
environment: z.string().nullish()
|
|
@@ -7224,6 +7216,11 @@ export const zPromptsListPromptsResponse = z.object({
|
|
|
7224
7216
|
lastModifiedAt: z.iso.datetime(),
|
|
7225
7217
|
lastModifiedByDisplayName: z.string().nullable(),
|
|
7226
7218
|
lastModifiedByImage: z.string().nullable(),
|
|
7219
|
+
lastModifiedByType: z.enum([
|
|
7220
|
+
'user',
|
|
7221
|
+
'api_key',
|
|
7222
|
+
'unknown'
|
|
7223
|
+
]).nullable(),
|
|
7227
7224
|
lastModifiedByUserId: z.string().nullable(),
|
|
7228
7225
|
latestVersion: z.number().nullable(),
|
|
7229
7226
|
name: z.string().min(1).max(200),
|
|
@@ -7583,6 +7580,10 @@ export const zPromptsListPromptLabelsPath = z.object({
|
|
|
7583
7580
|
promptId: z.string()
|
|
7584
7581
|
});
|
|
7585
7582
|
|
|
7583
|
+
export const zPromptsListPromptLabelsQuery = z.object({
|
|
7584
|
+
asOf: z.string().nullish()
|
|
7585
|
+
});
|
|
7586
|
+
|
|
7586
7587
|
/**
|
|
7587
7588
|
* Success
|
|
7588
7589
|
*/
|
|
@@ -7613,7 +7614,7 @@ export const zPromptsListPromptLabelsResponse = z.object({
|
|
|
7613
7614
|
});
|
|
7614
7615
|
|
|
7615
7616
|
export const zPromptsMovePromptLabelBody = z.object({
|
|
7616
|
-
reason: z.string().
|
|
7617
|
+
reason: z.string().min(1),
|
|
7617
7618
|
versionId: z.string()
|
|
7618
7619
|
});
|
|
7619
7620
|
|
|
@@ -7705,7 +7706,7 @@ export const zPromptsListPromptLabelEventsByLabelResponse = z.object({
|
|
|
7705
7706
|
});
|
|
7706
7707
|
|
|
7707
7708
|
export const zPromptsSetWeightedReleaseBody = z.object({
|
|
7708
|
-
reason: z.string().
|
|
7709
|
+
reason: z.string().min(1),
|
|
7709
7710
|
variants: z.array(z.object({
|
|
7710
7711
|
name: z.string().min(1),
|
|
7711
7712
|
versionId: z.string().min(1),
|
|
@@ -7748,6 +7749,55 @@ export const zPromptsSetWeightedReleaseResponse = z.object({
|
|
|
7748
7749
|
success: z.boolean()
|
|
7749
7750
|
});
|
|
7750
7751
|
|
|
7752
|
+
export const zPromptMetricsGetPromptRequestMetricsPath = z.object({
|
|
7753
|
+
projectId: z.string(),
|
|
7754
|
+
promptId: z.string().min(1)
|
|
7755
|
+
});
|
|
7756
|
+
|
|
7757
|
+
export const zPromptMetricsGetPromptRequestMetricsQuery = z.object({
|
|
7758
|
+
window: z.string().nullish()
|
|
7759
|
+
});
|
|
7760
|
+
|
|
7761
|
+
/**
|
|
7762
|
+
* Success
|
|
7763
|
+
*/
|
|
7764
|
+
export const zPromptMetricsGetPromptRequestMetricsResponse = z.object({
|
|
7765
|
+
code: z.number(),
|
|
7766
|
+
data: z.object({
|
|
7767
|
+
bucketMinutes: z.number(),
|
|
7768
|
+
series: z.array(z.object({
|
|
7769
|
+
points: z.array(z.object({
|
|
7770
|
+
bucketStart: z.string(),
|
|
7771
|
+
requests: z.number()
|
|
7772
|
+
})),
|
|
7773
|
+
totalRequests: z.number(),
|
|
7774
|
+
version: z.string()
|
|
7775
|
+
})),
|
|
7776
|
+
windowHours: z.number()
|
|
7777
|
+
}).nullable(),
|
|
7778
|
+
error: z.object({
|
|
7779
|
+
code: z.string(),
|
|
7780
|
+
details: z.unknown().nullish(),
|
|
7781
|
+
message: z.string(),
|
|
7782
|
+
rowErrors: z.array(z.object({
|
|
7783
|
+
code: z.string(),
|
|
7784
|
+
message: z.string(),
|
|
7785
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
7786
|
+
})).nullish()
|
|
7787
|
+
}).nullable(),
|
|
7788
|
+
pagination: z.object({
|
|
7789
|
+
limit: z.int().gte(1).lte(100),
|
|
7790
|
+
page: z.int().gte(1),
|
|
7791
|
+
total: z.int().gte(0),
|
|
7792
|
+
totalPages: z.int().gte(0)
|
|
7793
|
+
}).nullable(),
|
|
7794
|
+
sdkBehavior: z.object({
|
|
7795
|
+
flags: z.record(z.string(), z.unknown()),
|
|
7796
|
+
v: z.int().gte(1)
|
|
7797
|
+
}).nullish(),
|
|
7798
|
+
success: z.boolean()
|
|
7799
|
+
});
|
|
7800
|
+
|
|
7751
7801
|
export const zPromptsListPromptVersionsPath = z.object({
|
|
7752
7802
|
projectId: z.string().min(1),
|
|
7753
7803
|
promptId: z.string()
|
|
@@ -7915,6 +7965,12 @@ export const zPromptsGetPromptVersionDiffResponse = z.object({
|
|
|
7915
7965
|
name: z.string(),
|
|
7916
7966
|
op: z.enum(['edit_role'])
|
|
7917
7967
|
}),
|
|
7968
|
+
z.object({
|
|
7969
|
+
after: z.boolean(),
|
|
7970
|
+
before: z.boolean(),
|
|
7971
|
+
name: z.string(),
|
|
7972
|
+
op: z.enum(['edit_required'])
|
|
7973
|
+
}),
|
|
7918
7974
|
z.object({
|
|
7919
7975
|
after: z.object({
|
|
7920
7976
|
description: z.string().nullish(),
|
|
@@ -8245,6 +8301,7 @@ export const zCredentialLifecycleRenameCredentialResponse = z.object({
|
|
|
8245
8301
|
'none',
|
|
8246
8302
|
'passthrough'
|
|
8247
8303
|
]),
|
|
8304
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
8248
8305
|
id: z.string(),
|
|
8249
8306
|
keyLast4: z.string(),
|
|
8250
8307
|
label: z.string().nullable(),
|
|
@@ -8378,6 +8435,7 @@ export const zCredentialLifecycleRestoreCredentialResponse = z.object({
|
|
|
8378
8435
|
'none',
|
|
8379
8436
|
'passthrough'
|
|
8380
8437
|
]),
|
|
8438
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
8381
8439
|
id: z.string(),
|
|
8382
8440
|
keyLast4: z.string(),
|
|
8383
8441
|
label: z.string().nullable(),
|
|
@@ -9151,6 +9209,7 @@ export const zRoutingProvidersListRoutingProvidersPath = z.object({
|
|
|
9151
9209
|
export const zRoutingProvidersListRoutingProvidersResponse = z.object({
|
|
9152
9210
|
code: z.number(),
|
|
9153
9211
|
data: z.array(z.object({
|
|
9212
|
+
affectedEnvCount: z.int().gte(0),
|
|
9154
9213
|
apiVersion: z.string().nullable(),
|
|
9155
9214
|
archivedAt: z.iso.datetime().nullable(),
|
|
9156
9215
|
authHeaderName: z.string().nullable(),
|
|
@@ -9169,27 +9228,46 @@ export const zRoutingProvidersListRoutingProvidersResponse = z.object({
|
|
|
9169
9228
|
'api_key',
|
|
9170
9229
|
'unknown'
|
|
9171
9230
|
]).nullish(),
|
|
9231
|
+
currentConfigVersion: z.int().nullish(),
|
|
9172
9232
|
displayName: z.string(),
|
|
9233
|
+
envCount: z.int().gte(0),
|
|
9173
9234
|
environments: z.array(z.object({
|
|
9174
9235
|
activationId: z.string(),
|
|
9175
9236
|
activeFrom: z.iso.datetime(),
|
|
9176
9237
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9238
|
+
configVersion: z.int().nullish(),
|
|
9177
9239
|
credentialId: z.string(),
|
|
9240
|
+
credentialValidity: z.enum([
|
|
9241
|
+
'valid',
|
|
9242
|
+
'invalid',
|
|
9243
|
+
'untested',
|
|
9244
|
+
'na'
|
|
9245
|
+
]),
|
|
9178
9246
|
current: z.literal(true),
|
|
9179
|
-
|
|
9180
|
-
slug: z.string(),
|
|
9181
|
-
status: z.enum([
|
|
9247
|
+
health: z.enum([
|
|
9182
9248
|
'healthy',
|
|
9183
9249
|
'degraded',
|
|
9184
|
-
'failing'
|
|
9185
|
-
|
|
9186
|
-
|
|
9250
|
+
'failing'
|
|
9251
|
+
]),
|
|
9252
|
+
id: z.string(),
|
|
9253
|
+
notRouted: z.boolean(),
|
|
9254
|
+
perVersionHealth: z.array(z.object({
|
|
9255
|
+
activeFrom: z.iso.datetime(),
|
|
9256
|
+
activeTo: z.iso.datetime().nullish(),
|
|
9257
|
+
configVersion: z.int(),
|
|
9258
|
+
current: z.boolean(),
|
|
9259
|
+
health: z.enum([
|
|
9260
|
+
'healthy',
|
|
9261
|
+
'degraded',
|
|
9262
|
+
'failing'
|
|
9263
|
+
])
|
|
9264
|
+
})).nullish(),
|
|
9265
|
+
slug: z.string()
|
|
9187
9266
|
})),
|
|
9188
9267
|
health: z.enum([
|
|
9189
9268
|
'healthy',
|
|
9190
9269
|
'degraded',
|
|
9191
|
-
'failing'
|
|
9192
|
-
'idle'
|
|
9270
|
+
'failing'
|
|
9193
9271
|
]),
|
|
9194
9272
|
id: z.string(),
|
|
9195
9273
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9271,6 +9349,7 @@ export const zRoutingProvidersCreateRoutingProviderPath = z.object({
|
|
|
9271
9349
|
export const zRoutingProvidersCreateRoutingProviderResponse = z.object({
|
|
9272
9350
|
code: z.number(),
|
|
9273
9351
|
data: z.object({
|
|
9352
|
+
affectedEnvCount: z.int().gte(0),
|
|
9274
9353
|
apiVersion: z.string().nullable(),
|
|
9275
9354
|
archivedAt: z.iso.datetime().nullable(),
|
|
9276
9355
|
authHeaderName: z.string().nullable(),
|
|
@@ -9289,27 +9368,46 @@ export const zRoutingProvidersCreateRoutingProviderResponse = z.object({
|
|
|
9289
9368
|
'api_key',
|
|
9290
9369
|
'unknown'
|
|
9291
9370
|
]).nullish(),
|
|
9371
|
+
currentConfigVersion: z.int().nullish(),
|
|
9292
9372
|
displayName: z.string(),
|
|
9373
|
+
envCount: z.int().gte(0),
|
|
9293
9374
|
environments: z.array(z.object({
|
|
9294
9375
|
activationId: z.string(),
|
|
9295
9376
|
activeFrom: z.iso.datetime(),
|
|
9296
9377
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9378
|
+
configVersion: z.int().nullish(),
|
|
9297
9379
|
credentialId: z.string(),
|
|
9380
|
+
credentialValidity: z.enum([
|
|
9381
|
+
'valid',
|
|
9382
|
+
'invalid',
|
|
9383
|
+
'untested',
|
|
9384
|
+
'na'
|
|
9385
|
+
]),
|
|
9298
9386
|
current: z.literal(true),
|
|
9299
|
-
|
|
9300
|
-
slug: z.string(),
|
|
9301
|
-
status: z.enum([
|
|
9387
|
+
health: z.enum([
|
|
9302
9388
|
'healthy',
|
|
9303
9389
|
'degraded',
|
|
9304
|
-
'failing'
|
|
9305
|
-
|
|
9306
|
-
|
|
9390
|
+
'failing'
|
|
9391
|
+
]),
|
|
9392
|
+
id: z.string(),
|
|
9393
|
+
notRouted: z.boolean(),
|
|
9394
|
+
perVersionHealth: z.array(z.object({
|
|
9395
|
+
activeFrom: z.iso.datetime(),
|
|
9396
|
+
activeTo: z.iso.datetime().nullish(),
|
|
9397
|
+
configVersion: z.int(),
|
|
9398
|
+
current: z.boolean(),
|
|
9399
|
+
health: z.enum([
|
|
9400
|
+
'healthy',
|
|
9401
|
+
'degraded',
|
|
9402
|
+
'failing'
|
|
9403
|
+
])
|
|
9404
|
+
})).nullish(),
|
|
9405
|
+
slug: z.string()
|
|
9307
9406
|
})),
|
|
9308
9407
|
health: z.enum([
|
|
9309
9408
|
'healthy',
|
|
9310
9409
|
'degraded',
|
|
9311
|
-
'failing'
|
|
9312
|
-
'idle'
|
|
9410
|
+
'failing'
|
|
9313
9411
|
]),
|
|
9314
9412
|
id: z.string(),
|
|
9315
9413
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9458,6 +9556,7 @@ export const zRoutingProvidersConnectRoutingProviderResponse = z.object({
|
|
|
9458
9556
|
})),
|
|
9459
9557
|
credentialId: z.string(),
|
|
9460
9558
|
provider: z.object({
|
|
9559
|
+
affectedEnvCount: z.int().gte(0),
|
|
9461
9560
|
apiVersion: z.string().nullable(),
|
|
9462
9561
|
archivedAt: z.iso.datetime().nullable(),
|
|
9463
9562
|
authHeaderName: z.string().nullable(),
|
|
@@ -9476,27 +9575,46 @@ export const zRoutingProvidersConnectRoutingProviderResponse = z.object({
|
|
|
9476
9575
|
'api_key',
|
|
9477
9576
|
'unknown'
|
|
9478
9577
|
]).nullish(),
|
|
9578
|
+
currentConfigVersion: z.int().nullish(),
|
|
9479
9579
|
displayName: z.string(),
|
|
9580
|
+
envCount: z.int().gte(0),
|
|
9480
9581
|
environments: z.array(z.object({
|
|
9481
9582
|
activationId: z.string(),
|
|
9482
9583
|
activeFrom: z.iso.datetime(),
|
|
9483
9584
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9585
|
+
configVersion: z.int().nullish(),
|
|
9484
9586
|
credentialId: z.string(),
|
|
9587
|
+
credentialValidity: z.enum([
|
|
9588
|
+
'valid',
|
|
9589
|
+
'invalid',
|
|
9590
|
+
'untested',
|
|
9591
|
+
'na'
|
|
9592
|
+
]),
|
|
9485
9593
|
current: z.literal(true),
|
|
9486
|
-
|
|
9487
|
-
slug: z.string(),
|
|
9488
|
-
status: z.enum([
|
|
9594
|
+
health: z.enum([
|
|
9489
9595
|
'healthy',
|
|
9490
9596
|
'degraded',
|
|
9491
|
-
'failing'
|
|
9492
|
-
|
|
9493
|
-
|
|
9597
|
+
'failing'
|
|
9598
|
+
]),
|
|
9599
|
+
id: z.string(),
|
|
9600
|
+
notRouted: z.boolean(),
|
|
9601
|
+
perVersionHealth: z.array(z.object({
|
|
9602
|
+
activeFrom: z.iso.datetime(),
|
|
9603
|
+
activeTo: z.iso.datetime().nullish(),
|
|
9604
|
+
configVersion: z.int(),
|
|
9605
|
+
current: z.boolean(),
|
|
9606
|
+
health: z.enum([
|
|
9607
|
+
'healthy',
|
|
9608
|
+
'degraded',
|
|
9609
|
+
'failing'
|
|
9610
|
+
])
|
|
9611
|
+
})).nullish(),
|
|
9612
|
+
slug: z.string()
|
|
9494
9613
|
})),
|
|
9495
9614
|
health: z.enum([
|
|
9496
9615
|
'healthy',
|
|
9497
9616
|
'degraded',
|
|
9498
|
-
'failing'
|
|
9499
|
-
'idle'
|
|
9617
|
+
'failing'
|
|
9500
9618
|
]),
|
|
9501
9619
|
id: z.string(),
|
|
9502
9620
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9773,6 +9891,7 @@ export const zRoutingProvidersGetRoutingProviderPath = z.object({
|
|
|
9773
9891
|
export const zRoutingProvidersGetRoutingProviderResponse = z.object({
|
|
9774
9892
|
code: z.number(),
|
|
9775
9893
|
data: z.object({
|
|
9894
|
+
affectedEnvCount: z.int().gte(0),
|
|
9776
9895
|
apiVersion: z.string().nullable(),
|
|
9777
9896
|
archivedAt: z.iso.datetime().nullable(),
|
|
9778
9897
|
authHeaderName: z.string().nullable(),
|
|
@@ -9791,27 +9910,46 @@ export const zRoutingProvidersGetRoutingProviderResponse = z.object({
|
|
|
9791
9910
|
'api_key',
|
|
9792
9911
|
'unknown'
|
|
9793
9912
|
]).nullish(),
|
|
9913
|
+
currentConfigVersion: z.int().nullish(),
|
|
9794
9914
|
displayName: z.string(),
|
|
9915
|
+
envCount: z.int().gte(0),
|
|
9795
9916
|
environments: z.array(z.object({
|
|
9796
9917
|
activationId: z.string(),
|
|
9797
9918
|
activeFrom: z.iso.datetime(),
|
|
9798
9919
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9920
|
+
configVersion: z.int().nullish(),
|
|
9799
9921
|
credentialId: z.string(),
|
|
9922
|
+
credentialValidity: z.enum([
|
|
9923
|
+
'valid',
|
|
9924
|
+
'invalid',
|
|
9925
|
+
'untested',
|
|
9926
|
+
'na'
|
|
9927
|
+
]),
|
|
9800
9928
|
current: z.literal(true),
|
|
9801
|
-
|
|
9802
|
-
slug: z.string(),
|
|
9803
|
-
status: z.enum([
|
|
9929
|
+
health: z.enum([
|
|
9804
9930
|
'healthy',
|
|
9805
9931
|
'degraded',
|
|
9806
|
-
'failing'
|
|
9807
|
-
|
|
9808
|
-
|
|
9932
|
+
'failing'
|
|
9933
|
+
]),
|
|
9934
|
+
id: z.string(),
|
|
9935
|
+
notRouted: z.boolean(),
|
|
9936
|
+
perVersionHealth: z.array(z.object({
|
|
9937
|
+
activeFrom: z.iso.datetime(),
|
|
9938
|
+
activeTo: z.iso.datetime().nullish(),
|
|
9939
|
+
configVersion: z.int(),
|
|
9940
|
+
current: z.boolean(),
|
|
9941
|
+
health: z.enum([
|
|
9942
|
+
'healthy',
|
|
9943
|
+
'degraded',
|
|
9944
|
+
'failing'
|
|
9945
|
+
])
|
|
9946
|
+
})).nullish(),
|
|
9947
|
+
slug: z.string()
|
|
9809
9948
|
})),
|
|
9810
9949
|
health: z.enum([
|
|
9811
9950
|
'healthy',
|
|
9812
9951
|
'degraded',
|
|
9813
|
-
'failing'
|
|
9814
|
-
'idle'
|
|
9952
|
+
'failing'
|
|
9815
9953
|
]),
|
|
9816
9954
|
id: z.string(),
|
|
9817
9955
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9891,6 +10029,7 @@ export const zRoutingProvidersUpdateRoutingProviderPath = z.object({
|
|
|
9891
10029
|
export const zRoutingProvidersUpdateRoutingProviderResponse = z.object({
|
|
9892
10030
|
code: z.number(),
|
|
9893
10031
|
data: z.object({
|
|
10032
|
+
affectedEnvCount: z.int().gte(0),
|
|
9894
10033
|
apiVersion: z.string().nullable(),
|
|
9895
10034
|
archivedAt: z.iso.datetime().nullable(),
|
|
9896
10035
|
authHeaderName: z.string().nullable(),
|
|
@@ -9909,27 +10048,46 @@ export const zRoutingProvidersUpdateRoutingProviderResponse = z.object({
|
|
|
9909
10048
|
'api_key',
|
|
9910
10049
|
'unknown'
|
|
9911
10050
|
]).nullish(),
|
|
10051
|
+
currentConfigVersion: z.int().nullish(),
|
|
9912
10052
|
displayName: z.string(),
|
|
10053
|
+
envCount: z.int().gte(0),
|
|
9913
10054
|
environments: z.array(z.object({
|
|
9914
10055
|
activationId: z.string(),
|
|
9915
10056
|
activeFrom: z.iso.datetime(),
|
|
9916
10057
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10058
|
+
configVersion: z.int().nullish(),
|
|
9917
10059
|
credentialId: z.string(),
|
|
10060
|
+
credentialValidity: z.enum([
|
|
10061
|
+
'valid',
|
|
10062
|
+
'invalid',
|
|
10063
|
+
'untested',
|
|
10064
|
+
'na'
|
|
10065
|
+
]),
|
|
9918
10066
|
current: z.literal(true),
|
|
9919
|
-
|
|
9920
|
-
slug: z.string(),
|
|
9921
|
-
status: z.enum([
|
|
10067
|
+
health: z.enum([
|
|
9922
10068
|
'healthy',
|
|
9923
10069
|
'degraded',
|
|
9924
|
-
'failing'
|
|
9925
|
-
|
|
9926
|
-
|
|
10070
|
+
'failing'
|
|
10071
|
+
]),
|
|
10072
|
+
id: z.string(),
|
|
10073
|
+
notRouted: z.boolean(),
|
|
10074
|
+
perVersionHealth: z.array(z.object({
|
|
10075
|
+
activeFrom: z.iso.datetime(),
|
|
10076
|
+
activeTo: z.iso.datetime().nullish(),
|
|
10077
|
+
configVersion: z.int(),
|
|
10078
|
+
current: z.boolean(),
|
|
10079
|
+
health: z.enum([
|
|
10080
|
+
'healthy',
|
|
10081
|
+
'degraded',
|
|
10082
|
+
'failing'
|
|
10083
|
+
])
|
|
10084
|
+
})).nullish(),
|
|
10085
|
+
slug: z.string()
|
|
9927
10086
|
})),
|
|
9928
10087
|
health: z.enum([
|
|
9929
10088
|
'healthy',
|
|
9930
10089
|
'degraded',
|
|
9931
|
-
'failing'
|
|
9932
|
-
'idle'
|
|
10090
|
+
'failing'
|
|
9933
10091
|
]),
|
|
9934
10092
|
id: z.string(),
|
|
9935
10093
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -10050,7 +10208,13 @@ export const zRoutingProviderCatalogResolveRoutingProviderCatalogResponse = z.ob
|
|
|
10050
10208
|
contextWindow: z.number().nullish(),
|
|
10051
10209
|
deprecatedAt: z.string().nullish(),
|
|
10052
10210
|
displayName: z.string().nullish(),
|
|
10053
|
-
id: z.string()
|
|
10211
|
+
id: z.string(),
|
|
10212
|
+
source: z.enum([
|
|
10213
|
+
'user',
|
|
10214
|
+
'platform',
|
|
10215
|
+
'curated',
|
|
10216
|
+
'custom'
|
|
10217
|
+
]).nullish()
|
|
10054
10218
|
})),
|
|
10055
10219
|
source: z.enum([
|
|
10056
10220
|
'user',
|
|
@@ -10150,6 +10314,7 @@ export const zRoutingProvidersListRoutingCredentialsResponse = z.object({
|
|
|
10150
10314
|
'none',
|
|
10151
10315
|
'passthrough'
|
|
10152
10316
|
]),
|
|
10317
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
10153
10318
|
id: z.string(),
|
|
10154
10319
|
keyLast4: z.string(),
|
|
10155
10320
|
label: z.string().nullable(),
|
|
@@ -10234,6 +10399,7 @@ export const zRoutingProvidersCreateRoutingCredentialResponse = z.object({
|
|
|
10234
10399
|
'none',
|
|
10235
10400
|
'passthrough'
|
|
10236
10401
|
]),
|
|
10402
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
10237
10403
|
id: z.string(),
|
|
10238
10404
|
keyLast4: z.string(),
|
|
10239
10405
|
label: z.string().nullable(),
|
|
@@ -10366,6 +10532,67 @@ export const zRoutingProvidersTestRoutingCredentialResponse = z.object({
|
|
|
10366
10532
|
success: z.boolean()
|
|
10367
10533
|
});
|
|
10368
10534
|
|
|
10535
|
+
export const zProviderPromoteVersionPromoteProviderEnvVersionBody = z.object({
|
|
10536
|
+
reason: z.string().nullish(),
|
|
10537
|
+
version: z.int().gt(0)
|
|
10538
|
+
});
|
|
10539
|
+
|
|
10540
|
+
export const zProviderPromoteVersionPromoteProviderEnvVersionPath = z.object({
|
|
10541
|
+
projectId: z.string(),
|
|
10542
|
+
providerId: z.string().min(1),
|
|
10543
|
+
envSlug: z.string().min(1)
|
|
10544
|
+
});
|
|
10545
|
+
|
|
10546
|
+
/**
|
|
10547
|
+
* Success
|
|
10548
|
+
*/
|
|
10549
|
+
export const zProviderPromoteVersionPromoteProviderEnvVersionResponse = z.object({
|
|
10550
|
+
code: z.number(),
|
|
10551
|
+
data: z.object({
|
|
10552
|
+
activeFrom: z.string(),
|
|
10553
|
+
activeTo: z.string().nullable(),
|
|
10554
|
+
actorId: z.string(),
|
|
10555
|
+
actorType: z.string(),
|
|
10556
|
+
approvalStatus: z.enum([
|
|
10557
|
+
'not_required',
|
|
10558
|
+
'pending',
|
|
10559
|
+
'approved',
|
|
10560
|
+
'rejected'
|
|
10561
|
+
]),
|
|
10562
|
+
changeType: z.string(),
|
|
10563
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10564
|
+
createdAt: z.string(),
|
|
10565
|
+
credentialId: z.string(),
|
|
10566
|
+
envSlug: z.string(),
|
|
10567
|
+
environmentId: z.string(),
|
|
10568
|
+
id: z.string(),
|
|
10569
|
+
providerId: z.string(),
|
|
10570
|
+
reason: z.string().nullable(),
|
|
10571
|
+
state: z.enum(['current', 'pending'])
|
|
10572
|
+
}).nullable(),
|
|
10573
|
+
error: z.object({
|
|
10574
|
+
code: z.string(),
|
|
10575
|
+
details: z.unknown().nullish(),
|
|
10576
|
+
message: z.string(),
|
|
10577
|
+
rowErrors: z.array(z.object({
|
|
10578
|
+
code: z.string(),
|
|
10579
|
+
message: z.string(),
|
|
10580
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
10581
|
+
})).nullish()
|
|
10582
|
+
}).nullable(),
|
|
10583
|
+
pagination: z.object({
|
|
10584
|
+
limit: z.int().gte(1).lte(100),
|
|
10585
|
+
page: z.int().gte(1),
|
|
10586
|
+
total: z.int().gte(0),
|
|
10587
|
+
totalPages: z.int().gte(0)
|
|
10588
|
+
}).nullable(),
|
|
10589
|
+
sdkBehavior: z.object({
|
|
10590
|
+
flags: z.record(z.string(), z.unknown()),
|
|
10591
|
+
v: z.int().gte(1)
|
|
10592
|
+
}).nullish(),
|
|
10593
|
+
success: z.boolean()
|
|
10594
|
+
});
|
|
10595
|
+
|
|
10369
10596
|
export const zRoutingProvidersListRoutingModelsPath = z.object({
|
|
10370
10597
|
projectId: z.string(),
|
|
10371
10598
|
providerId: z.string().min(1)
|
|
@@ -10377,11 +10604,11 @@ export const zRoutingProvidersListRoutingModelsPath = z.object({
|
|
|
10377
10604
|
export const zRoutingProvidersListRoutingModelsResponse = z.object({
|
|
10378
10605
|
code: z.number(),
|
|
10379
10606
|
data: z.array(z.object({
|
|
10607
|
+
catalogSlug: z.string().nullish(),
|
|
10380
10608
|
createdAt: z.iso.datetime(),
|
|
10381
10609
|
description: z.string().nullable(),
|
|
10382
10610
|
displayName: z.string().nullable(),
|
|
10383
10611
|
id: z.string(),
|
|
10384
|
-
isActive: z.boolean(),
|
|
10385
10612
|
modelType: z.string().nullable(),
|
|
10386
10613
|
name: z.string(),
|
|
10387
10614
|
providerId: z.string(),
|
|
@@ -10411,9 +10638,9 @@ export const zRoutingProvidersListRoutingModelsResponse = z.object({
|
|
|
10411
10638
|
});
|
|
10412
10639
|
|
|
10413
10640
|
export const zRoutingProvidersCreateRoutingModelBody = z.object({
|
|
10641
|
+
catalogSlug: z.string().max(200).nullish(),
|
|
10414
10642
|
description: z.string().nullish(),
|
|
10415
10643
|
displayName: z.string().max(200).nullish(),
|
|
10416
|
-
isActive: z.boolean().nullish(),
|
|
10417
10644
|
modelType: z.string().max(50).nullish(),
|
|
10418
10645
|
name: z.string().min(1).max(200)
|
|
10419
10646
|
});
|
|
@@ -10429,11 +10656,11 @@ export const zRoutingProvidersCreateRoutingModelPath = z.object({
|
|
|
10429
10656
|
export const zRoutingProvidersCreateRoutingModelResponse = z.object({
|
|
10430
10657
|
code: z.number(),
|
|
10431
10658
|
data: z.object({
|
|
10659
|
+
catalogSlug: z.string().nullish(),
|
|
10432
10660
|
createdAt: z.iso.datetime(),
|
|
10433
10661
|
description: z.string().nullable(),
|
|
10434
10662
|
displayName: z.string().nullable(),
|
|
10435
10663
|
id: z.string(),
|
|
10436
|
-
isActive: z.boolean(),
|
|
10437
10664
|
modelType: z.string().nullable(),
|
|
10438
10665
|
name: z.string(),
|
|
10439
10666
|
providerId: z.string(),
|
|
@@ -10518,7 +10745,6 @@ export const zRoutingProvidersDeleteRoutingModelResponse = z.object({
|
|
|
10518
10745
|
export const zRoutingProvidersUpdateRoutingModelBody = z.object({
|
|
10519
10746
|
description: z.string().nullish(),
|
|
10520
10747
|
displayName: z.string().max(200).nullish(),
|
|
10521
|
-
isActive: z.boolean().nullish(),
|
|
10522
10748
|
modelType: z.string().max(50).nullish()
|
|
10523
10749
|
});
|
|
10524
10750
|
|
|
@@ -10534,11 +10760,64 @@ export const zRoutingProvidersUpdateRoutingModelPath = z.object({
|
|
|
10534
10760
|
export const zRoutingProvidersUpdateRoutingModelResponse = z.object({
|
|
10535
10761
|
code: z.number(),
|
|
10536
10762
|
data: z.object({
|
|
10763
|
+
catalogSlug: z.string().nullish(),
|
|
10764
|
+
createdAt: z.iso.datetime(),
|
|
10765
|
+
description: z.string().nullable(),
|
|
10766
|
+
displayName: z.string().nullable(),
|
|
10767
|
+
id: z.string(),
|
|
10768
|
+
modelType: z.string().nullable(),
|
|
10769
|
+
name: z.string(),
|
|
10770
|
+
providerId: z.string(),
|
|
10771
|
+
publishWarning: z.object({
|
|
10772
|
+
errors: z.array(z.object({
|
|
10773
|
+
entity: z.string(),
|
|
10774
|
+
message: z.string(),
|
|
10775
|
+
rule: z.string().nullish()
|
|
10776
|
+
})),
|
|
10777
|
+
kind: z.enum(['validation'])
|
|
10778
|
+
}).nullish(),
|
|
10779
|
+
updatedAt: z.iso.datetime()
|
|
10780
|
+
}).nullable(),
|
|
10781
|
+
error: z.object({
|
|
10782
|
+
code: z.string(),
|
|
10783
|
+
details: z.unknown().nullish(),
|
|
10784
|
+
message: z.string(),
|
|
10785
|
+
rowErrors: z.array(z.object({
|
|
10786
|
+
code: z.string(),
|
|
10787
|
+
message: z.string(),
|
|
10788
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
10789
|
+
})).nullish()
|
|
10790
|
+
}).nullable(),
|
|
10791
|
+
pagination: z.object({
|
|
10792
|
+
limit: z.int().gte(1).lte(100),
|
|
10793
|
+
page: z.int().gte(1),
|
|
10794
|
+
total: z.int().gte(0),
|
|
10795
|
+
totalPages: z.int().gte(0)
|
|
10796
|
+
}).nullable(),
|
|
10797
|
+
sdkBehavior: z.object({
|
|
10798
|
+
flags: z.record(z.string(), z.unknown()),
|
|
10799
|
+
v: z.int().gte(1)
|
|
10800
|
+
}).nullish(),
|
|
10801
|
+
success: z.boolean()
|
|
10802
|
+
});
|
|
10803
|
+
|
|
10804
|
+
export const zRoutingProvidersRestoreRoutingModelPath = z.object({
|
|
10805
|
+
projectId: z.string(),
|
|
10806
|
+
providerId: z.string().min(1),
|
|
10807
|
+
modelId: z.string().min(1)
|
|
10808
|
+
});
|
|
10809
|
+
|
|
10810
|
+
/**
|
|
10811
|
+
* Success
|
|
10812
|
+
*/
|
|
10813
|
+
export const zRoutingProvidersRestoreRoutingModelResponse = z.object({
|
|
10814
|
+
code: z.number(),
|
|
10815
|
+
data: z.object({
|
|
10816
|
+
catalogSlug: z.string().nullish(),
|
|
10537
10817
|
createdAt: z.iso.datetime(),
|
|
10538
10818
|
description: z.string().nullable(),
|
|
10539
10819
|
displayName: z.string().nullable(),
|
|
10540
10820
|
id: z.string(),
|
|
10541
|
-
isActive: z.boolean(),
|
|
10542
10821
|
modelType: z.string().nullable(),
|
|
10543
10822
|
name: z.string(),
|
|
10544
10823
|
providerId: z.string(),
|
|
@@ -10615,6 +10894,49 @@ export const zRoutingProvidersRestoreRoutingProviderResponse = z.object({
|
|
|
10615
10894
|
success: z.boolean()
|
|
10616
10895
|
});
|
|
10617
10896
|
|
|
10897
|
+
export const zProviderConfigVersionsListProviderConfigVersionsPath = z.object({
|
|
10898
|
+
projectId: z.string(),
|
|
10899
|
+
providerId: z.string().min(1)
|
|
10900
|
+
});
|
|
10901
|
+
|
|
10902
|
+
/**
|
|
10903
|
+
* Success
|
|
10904
|
+
*/
|
|
10905
|
+
export const zProviderConfigVersionsListProviderConfigVersionsResponse = z.object({
|
|
10906
|
+
code: z.number(),
|
|
10907
|
+
data: z.object({
|
|
10908
|
+
versions: z.array(z.object({
|
|
10909
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10910
|
+
contentHash: z.string(),
|
|
10911
|
+
createdAt: z.iso.datetime(),
|
|
10912
|
+
createdBy: z.string().nullable(),
|
|
10913
|
+
liveInEnvSlugs: z.array(z.string()),
|
|
10914
|
+
version: z.int()
|
|
10915
|
+
}))
|
|
10916
|
+
}).nullable(),
|
|
10917
|
+
error: z.object({
|
|
10918
|
+
code: z.string(),
|
|
10919
|
+
details: z.unknown().nullish(),
|
|
10920
|
+
message: z.string(),
|
|
10921
|
+
rowErrors: z.array(z.object({
|
|
10922
|
+
code: z.string(),
|
|
10923
|
+
message: z.string(),
|
|
10924
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
10925
|
+
})).nullish()
|
|
10926
|
+
}).nullable(),
|
|
10927
|
+
pagination: z.object({
|
|
10928
|
+
limit: z.int().gte(1).lte(100),
|
|
10929
|
+
page: z.int().gte(1),
|
|
10930
|
+
total: z.int().gte(0),
|
|
10931
|
+
totalPages: z.int().gte(0)
|
|
10932
|
+
}).nullable(),
|
|
10933
|
+
sdkBehavior: z.object({
|
|
10934
|
+
flags: z.record(z.string(), z.unknown()),
|
|
10935
|
+
v: z.int().gte(1)
|
|
10936
|
+
}).nullish(),
|
|
10937
|
+
success: z.boolean()
|
|
10938
|
+
});
|
|
10939
|
+
|
|
10618
10940
|
export const zRoutingRoutesListRoutingRoutesPath = z.object({
|
|
10619
10941
|
projectId: z.string()
|
|
10620
10942
|
});
|