@to11ai/sdk 0.3.0 → 0.4.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 +738 -75
- package/dist/generated/zod.gen.d.ts +446 -64
- 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 +770 -77
- package/src/generated/zod.gen.ts +469 -82
- 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
|
});
|
|
@@ -1963,6 +1964,76 @@ export const zOrganizationsAcceptOrganizationInvitationResponse = z.object({
|
|
|
1963
1964
|
success: z.boolean()
|
|
1964
1965
|
});
|
|
1965
1966
|
|
|
1967
|
+
/**
|
|
1968
|
+
* Success
|
|
1969
|
+
*/
|
|
1970
|
+
export const zOrganizationsAcceptPendingOrganizationInvitationsResponse = z.object({
|
|
1971
|
+
code: z.number(),
|
|
1972
|
+
data: z.object({
|
|
1973
|
+
acceptedOrganizationIds: z.array(z.string())
|
|
1974
|
+
}).nullable(),
|
|
1975
|
+
error: z.object({
|
|
1976
|
+
code: z.string(),
|
|
1977
|
+
details: z.unknown().nullish(),
|
|
1978
|
+
message: z.string(),
|
|
1979
|
+
rowErrors: z.array(z.object({
|
|
1980
|
+
code: z.string(),
|
|
1981
|
+
message: z.string(),
|
|
1982
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
1983
|
+
})).nullish()
|
|
1984
|
+
}).nullable(),
|
|
1985
|
+
pagination: z.object({
|
|
1986
|
+
limit: z.int().gte(1).lte(100),
|
|
1987
|
+
page: z.int().gte(1),
|
|
1988
|
+
total: z.int().gte(0),
|
|
1989
|
+
totalPages: z.int().gte(0)
|
|
1990
|
+
}).nullable(),
|
|
1991
|
+
sdkBehavior: z.object({
|
|
1992
|
+
flags: z.record(z.string(), z.unknown()),
|
|
1993
|
+
v: z.int().gte(1)
|
|
1994
|
+
}).nullish(),
|
|
1995
|
+
success: z.boolean()
|
|
1996
|
+
});
|
|
1997
|
+
|
|
1998
|
+
export const zOrganizationsGetOrganizationInvitationDetailsBody = z.object({
|
|
1999
|
+
token: z.string().min(1).max(2048)
|
|
2000
|
+
});
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
* Success
|
|
2004
|
+
*/
|
|
2005
|
+
export const zOrganizationsGetOrganizationInvitationDetailsResponse = z.object({
|
|
2006
|
+
code: z.number(),
|
|
2007
|
+
data: z.object({
|
|
2008
|
+
details: z.object({
|
|
2009
|
+
inviterEmail: z.string().nullable(),
|
|
2010
|
+
inviterName: z.string().nullable(),
|
|
2011
|
+
organizationName: z.string()
|
|
2012
|
+
}).nullable()
|
|
2013
|
+
}).nullable(),
|
|
2014
|
+
error: z.object({
|
|
2015
|
+
code: z.string(),
|
|
2016
|
+
details: z.unknown().nullish(),
|
|
2017
|
+
message: z.string(),
|
|
2018
|
+
rowErrors: z.array(z.object({
|
|
2019
|
+
code: z.string(),
|
|
2020
|
+
message: z.string(),
|
|
2021
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
2022
|
+
})).nullish()
|
|
2023
|
+
}).nullable(),
|
|
2024
|
+
pagination: z.object({
|
|
2025
|
+
limit: z.int().gte(1).lte(100),
|
|
2026
|
+
page: z.int().gte(1),
|
|
2027
|
+
total: z.int().gte(0),
|
|
2028
|
+
totalPages: z.int().gte(0)
|
|
2029
|
+
}).nullable(),
|
|
2030
|
+
sdkBehavior: z.object({
|
|
2031
|
+
flags: z.record(z.string(), z.unknown()),
|
|
2032
|
+
v: z.int().gte(1)
|
|
2033
|
+
}).nullish(),
|
|
2034
|
+
success: z.boolean()
|
|
2035
|
+
});
|
|
2036
|
+
|
|
1966
2037
|
/**
|
|
1967
2038
|
* Success
|
|
1968
2039
|
*/
|
|
@@ -4198,35 +4269,18 @@ export const zWorkspacesCreateWorkspacePath = z.object({
|
|
|
4198
4269
|
export const zWorkspacesCreateWorkspaceResponse = z.object({
|
|
4199
4270
|
code: z.number(),
|
|
4200
4271
|
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
|
-
})
|
|
4272
|
+
allowPlatformDiscovery: z.boolean(),
|
|
4273
|
+
createdAt: z.iso.datetime(),
|
|
4274
|
+
id: z.string(),
|
|
4275
|
+
name: z.string().min(1).max(120),
|
|
4276
|
+
organizationId: z.string(),
|
|
4277
|
+
slug: z.string().min(1).max(120),
|
|
4278
|
+
status: z.enum([
|
|
4279
|
+
'active',
|
|
4280
|
+
'archived',
|
|
4281
|
+
'deleted'
|
|
4282
|
+
]),
|
|
4283
|
+
updatedAt: z.iso.datetime()
|
|
4230
4284
|
}).nullable(),
|
|
4231
4285
|
error: z.object({
|
|
4232
4286
|
code: z.string(),
|
|
@@ -5199,7 +5253,7 @@ export const zCredentialsDirectoryListProjectCredentialsDirectoryPath = z.object
|
|
|
5199
5253
|
|
|
5200
5254
|
export const zCredentialsDirectoryListProjectCredentialsDirectoryQuery = z.object({
|
|
5201
5255
|
catalog_id: z.string().nullish(),
|
|
5202
|
-
lifecycle_status: z.enum(['active']).nullish(),
|
|
5256
|
+
lifecycle_status: z.enum(['active', 'deleted']).nullish(),
|
|
5203
5257
|
attached_provider_count: z.enum([
|
|
5204
5258
|
'0',
|
|
5205
5259
|
'1',
|
|
@@ -5230,7 +5284,15 @@ export const zCredentialsDirectoryListProjectCredentialsDirectoryResponse = z.ob
|
|
|
5230
5284
|
}),
|
|
5231
5285
|
createdAt: z.string(),
|
|
5232
5286
|
createdBy: z.string().nullable(),
|
|
5233
|
-
credentialType: z.
|
|
5287
|
+
credentialType: z.enum([
|
|
5288
|
+
'api-key',
|
|
5289
|
+
'oauth',
|
|
5290
|
+
'iam-role',
|
|
5291
|
+
'access-key',
|
|
5292
|
+
'service-account',
|
|
5293
|
+
'none',
|
|
5294
|
+
'passthrough'
|
|
5295
|
+
]),
|
|
5234
5296
|
currentActivations: z.array(z.object({
|
|
5235
5297
|
activeFrom: z.string(),
|
|
5236
5298
|
activeTo: z.string().nullable(),
|
|
@@ -5244,7 +5306,7 @@ export const zCredentialsDirectoryListProjectCredentialsDirectoryResponse = z.ob
|
|
|
5244
5306
|
keyLast4: z.string(),
|
|
5245
5307
|
label: z.string().nullable(),
|
|
5246
5308
|
lastRotationAt: z.string().nullable(),
|
|
5247
|
-
lifecycleStatus: z.enum(['active']),
|
|
5309
|
+
lifecycleStatus: z.enum(['active', 'deleted']),
|
|
5248
5310
|
projectId: z.string()
|
|
5249
5311
|
})),
|
|
5250
5312
|
pagination: z.object({
|
|
@@ -7197,7 +7259,8 @@ export const zPromptsListPromptsQuery = z.object({
|
|
|
7197
7259
|
'updatedAt',
|
|
7198
7260
|
'name',
|
|
7199
7261
|
'status',
|
|
7200
|
-
'latestVersion'
|
|
7262
|
+
'latestVersion',
|
|
7263
|
+
'environments'
|
|
7201
7264
|
]).nullish(),
|
|
7202
7265
|
tags: z.string().nullish(),
|
|
7203
7266
|
environment: z.string().nullish()
|
|
@@ -7224,6 +7287,11 @@ export const zPromptsListPromptsResponse = z.object({
|
|
|
7224
7287
|
lastModifiedAt: z.iso.datetime(),
|
|
7225
7288
|
lastModifiedByDisplayName: z.string().nullable(),
|
|
7226
7289
|
lastModifiedByImage: z.string().nullable(),
|
|
7290
|
+
lastModifiedByType: z.enum([
|
|
7291
|
+
'user',
|
|
7292
|
+
'api_key',
|
|
7293
|
+
'unknown'
|
|
7294
|
+
]).nullable(),
|
|
7227
7295
|
lastModifiedByUserId: z.string().nullable(),
|
|
7228
7296
|
latestVersion: z.number().nullable(),
|
|
7229
7297
|
name: z.string().min(1).max(200),
|
|
@@ -7583,6 +7651,10 @@ export const zPromptsListPromptLabelsPath = z.object({
|
|
|
7583
7651
|
promptId: z.string()
|
|
7584
7652
|
});
|
|
7585
7653
|
|
|
7654
|
+
export const zPromptsListPromptLabelsQuery = z.object({
|
|
7655
|
+
asOf: z.string().nullish()
|
|
7656
|
+
});
|
|
7657
|
+
|
|
7586
7658
|
/**
|
|
7587
7659
|
* Success
|
|
7588
7660
|
*/
|
|
@@ -7613,7 +7685,7 @@ export const zPromptsListPromptLabelsResponse = z.object({
|
|
|
7613
7685
|
});
|
|
7614
7686
|
|
|
7615
7687
|
export const zPromptsMovePromptLabelBody = z.object({
|
|
7616
|
-
reason: z.string().
|
|
7688
|
+
reason: z.string().min(1),
|
|
7617
7689
|
versionId: z.string()
|
|
7618
7690
|
});
|
|
7619
7691
|
|
|
@@ -7705,7 +7777,7 @@ export const zPromptsListPromptLabelEventsByLabelResponse = z.object({
|
|
|
7705
7777
|
});
|
|
7706
7778
|
|
|
7707
7779
|
export const zPromptsSetWeightedReleaseBody = z.object({
|
|
7708
|
-
reason: z.string().
|
|
7780
|
+
reason: z.string().min(1),
|
|
7709
7781
|
variants: z.array(z.object({
|
|
7710
7782
|
name: z.string().min(1),
|
|
7711
7783
|
versionId: z.string().min(1),
|
|
@@ -7748,6 +7820,55 @@ export const zPromptsSetWeightedReleaseResponse = z.object({
|
|
|
7748
7820
|
success: z.boolean()
|
|
7749
7821
|
});
|
|
7750
7822
|
|
|
7823
|
+
export const zPromptMetricsGetPromptRequestMetricsPath = z.object({
|
|
7824
|
+
projectId: z.string(),
|
|
7825
|
+
promptId: z.string().min(1)
|
|
7826
|
+
});
|
|
7827
|
+
|
|
7828
|
+
export const zPromptMetricsGetPromptRequestMetricsQuery = z.object({
|
|
7829
|
+
window: z.string().nullish()
|
|
7830
|
+
});
|
|
7831
|
+
|
|
7832
|
+
/**
|
|
7833
|
+
* Success
|
|
7834
|
+
*/
|
|
7835
|
+
export const zPromptMetricsGetPromptRequestMetricsResponse = z.object({
|
|
7836
|
+
code: z.number(),
|
|
7837
|
+
data: z.object({
|
|
7838
|
+
bucketMinutes: z.number(),
|
|
7839
|
+
series: z.array(z.object({
|
|
7840
|
+
points: z.array(z.object({
|
|
7841
|
+
bucketStart: z.string(),
|
|
7842
|
+
requests: z.number()
|
|
7843
|
+
})),
|
|
7844
|
+
totalRequests: z.number(),
|
|
7845
|
+
version: z.string()
|
|
7846
|
+
})),
|
|
7847
|
+
windowHours: z.number()
|
|
7848
|
+
}).nullable(),
|
|
7849
|
+
error: z.object({
|
|
7850
|
+
code: z.string(),
|
|
7851
|
+
details: z.unknown().nullish(),
|
|
7852
|
+
message: z.string(),
|
|
7853
|
+
rowErrors: z.array(z.object({
|
|
7854
|
+
code: z.string(),
|
|
7855
|
+
message: z.string(),
|
|
7856
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
7857
|
+
})).nullish()
|
|
7858
|
+
}).nullable(),
|
|
7859
|
+
pagination: z.object({
|
|
7860
|
+
limit: z.int().gte(1).lte(100),
|
|
7861
|
+
page: z.int().gte(1),
|
|
7862
|
+
total: z.int().gte(0),
|
|
7863
|
+
totalPages: z.int().gte(0)
|
|
7864
|
+
}).nullable(),
|
|
7865
|
+
sdkBehavior: z.object({
|
|
7866
|
+
flags: z.record(z.string(), z.unknown()),
|
|
7867
|
+
v: z.int().gte(1)
|
|
7868
|
+
}).nullish(),
|
|
7869
|
+
success: z.boolean()
|
|
7870
|
+
});
|
|
7871
|
+
|
|
7751
7872
|
export const zPromptsListPromptVersionsPath = z.object({
|
|
7752
7873
|
projectId: z.string().min(1),
|
|
7753
7874
|
promptId: z.string()
|
|
@@ -8245,6 +8366,7 @@ export const zCredentialLifecycleRenameCredentialResponse = z.object({
|
|
|
8245
8366
|
'none',
|
|
8246
8367
|
'passthrough'
|
|
8247
8368
|
]),
|
|
8369
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
8248
8370
|
id: z.string(),
|
|
8249
8371
|
keyLast4: z.string(),
|
|
8250
8372
|
label: z.string().nullable(),
|
|
@@ -8378,6 +8500,7 @@ export const zCredentialLifecycleRestoreCredentialResponse = z.object({
|
|
|
8378
8500
|
'none',
|
|
8379
8501
|
'passthrough'
|
|
8380
8502
|
]),
|
|
8503
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
8381
8504
|
id: z.string(),
|
|
8382
8505
|
keyLast4: z.string(),
|
|
8383
8506
|
label: z.string().nullable(),
|
|
@@ -9151,6 +9274,7 @@ export const zRoutingProvidersListRoutingProvidersPath = z.object({
|
|
|
9151
9274
|
export const zRoutingProvidersListRoutingProvidersResponse = z.object({
|
|
9152
9275
|
code: z.number(),
|
|
9153
9276
|
data: z.array(z.object({
|
|
9277
|
+
affectedEnvCount: z.int().gte(0),
|
|
9154
9278
|
apiVersion: z.string().nullable(),
|
|
9155
9279
|
archivedAt: z.iso.datetime().nullable(),
|
|
9156
9280
|
authHeaderName: z.string().nullable(),
|
|
@@ -9169,27 +9293,46 @@ export const zRoutingProvidersListRoutingProvidersResponse = z.object({
|
|
|
9169
9293
|
'api_key',
|
|
9170
9294
|
'unknown'
|
|
9171
9295
|
]).nullish(),
|
|
9296
|
+
currentConfigVersion: z.int().nullish(),
|
|
9172
9297
|
displayName: z.string(),
|
|
9298
|
+
envCount: z.int().gte(0),
|
|
9173
9299
|
environments: z.array(z.object({
|
|
9174
9300
|
activationId: z.string(),
|
|
9175
9301
|
activeFrom: z.iso.datetime(),
|
|
9176
9302
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9303
|
+
configVersion: z.int().nullish(),
|
|
9177
9304
|
credentialId: z.string(),
|
|
9305
|
+
credentialValidity: z.enum([
|
|
9306
|
+
'valid',
|
|
9307
|
+
'invalid',
|
|
9308
|
+
'untested',
|
|
9309
|
+
'na'
|
|
9310
|
+
]),
|
|
9178
9311
|
current: z.literal(true),
|
|
9179
|
-
|
|
9180
|
-
slug: z.string(),
|
|
9181
|
-
status: z.enum([
|
|
9312
|
+
health: z.enum([
|
|
9182
9313
|
'healthy',
|
|
9183
9314
|
'degraded',
|
|
9184
|
-
'failing'
|
|
9185
|
-
|
|
9186
|
-
|
|
9315
|
+
'failing'
|
|
9316
|
+
]),
|
|
9317
|
+
id: z.string(),
|
|
9318
|
+
notRouted: z.boolean(),
|
|
9319
|
+
perVersionHealth: z.array(z.object({
|
|
9320
|
+
activeFrom: z.iso.datetime(),
|
|
9321
|
+
activeTo: z.iso.datetime().nullish(),
|
|
9322
|
+
configVersion: z.int(),
|
|
9323
|
+
current: z.boolean(),
|
|
9324
|
+
health: z.enum([
|
|
9325
|
+
'healthy',
|
|
9326
|
+
'degraded',
|
|
9327
|
+
'failing'
|
|
9328
|
+
])
|
|
9329
|
+
})).nullish(),
|
|
9330
|
+
slug: z.string()
|
|
9187
9331
|
})),
|
|
9188
9332
|
health: z.enum([
|
|
9189
9333
|
'healthy',
|
|
9190
9334
|
'degraded',
|
|
9191
|
-
'failing'
|
|
9192
|
-
'idle'
|
|
9335
|
+
'failing'
|
|
9193
9336
|
]),
|
|
9194
9337
|
id: z.string(),
|
|
9195
9338
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9271,6 +9414,7 @@ export const zRoutingProvidersCreateRoutingProviderPath = z.object({
|
|
|
9271
9414
|
export const zRoutingProvidersCreateRoutingProviderResponse = z.object({
|
|
9272
9415
|
code: z.number(),
|
|
9273
9416
|
data: z.object({
|
|
9417
|
+
affectedEnvCount: z.int().gte(0),
|
|
9274
9418
|
apiVersion: z.string().nullable(),
|
|
9275
9419
|
archivedAt: z.iso.datetime().nullable(),
|
|
9276
9420
|
authHeaderName: z.string().nullable(),
|
|
@@ -9289,27 +9433,46 @@ export const zRoutingProvidersCreateRoutingProviderResponse = z.object({
|
|
|
9289
9433
|
'api_key',
|
|
9290
9434
|
'unknown'
|
|
9291
9435
|
]).nullish(),
|
|
9436
|
+
currentConfigVersion: z.int().nullish(),
|
|
9292
9437
|
displayName: z.string(),
|
|
9438
|
+
envCount: z.int().gte(0),
|
|
9293
9439
|
environments: z.array(z.object({
|
|
9294
9440
|
activationId: z.string(),
|
|
9295
9441
|
activeFrom: z.iso.datetime(),
|
|
9296
9442
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9443
|
+
configVersion: z.int().nullish(),
|
|
9297
9444
|
credentialId: z.string(),
|
|
9445
|
+
credentialValidity: z.enum([
|
|
9446
|
+
'valid',
|
|
9447
|
+
'invalid',
|
|
9448
|
+
'untested',
|
|
9449
|
+
'na'
|
|
9450
|
+
]),
|
|
9298
9451
|
current: z.literal(true),
|
|
9299
|
-
|
|
9300
|
-
slug: z.string(),
|
|
9301
|
-
status: z.enum([
|
|
9452
|
+
health: z.enum([
|
|
9302
9453
|
'healthy',
|
|
9303
9454
|
'degraded',
|
|
9304
|
-
'failing'
|
|
9305
|
-
|
|
9306
|
-
|
|
9455
|
+
'failing'
|
|
9456
|
+
]),
|
|
9457
|
+
id: z.string(),
|
|
9458
|
+
notRouted: z.boolean(),
|
|
9459
|
+
perVersionHealth: z.array(z.object({
|
|
9460
|
+
activeFrom: z.iso.datetime(),
|
|
9461
|
+
activeTo: z.iso.datetime().nullish(),
|
|
9462
|
+
configVersion: z.int(),
|
|
9463
|
+
current: z.boolean(),
|
|
9464
|
+
health: z.enum([
|
|
9465
|
+
'healthy',
|
|
9466
|
+
'degraded',
|
|
9467
|
+
'failing'
|
|
9468
|
+
])
|
|
9469
|
+
})).nullish(),
|
|
9470
|
+
slug: z.string()
|
|
9307
9471
|
})),
|
|
9308
9472
|
health: z.enum([
|
|
9309
9473
|
'healthy',
|
|
9310
9474
|
'degraded',
|
|
9311
|
-
'failing'
|
|
9312
|
-
'idle'
|
|
9475
|
+
'failing'
|
|
9313
9476
|
]),
|
|
9314
9477
|
id: z.string(),
|
|
9315
9478
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9458,6 +9621,7 @@ export const zRoutingProvidersConnectRoutingProviderResponse = z.object({
|
|
|
9458
9621
|
})),
|
|
9459
9622
|
credentialId: z.string(),
|
|
9460
9623
|
provider: z.object({
|
|
9624
|
+
affectedEnvCount: z.int().gte(0),
|
|
9461
9625
|
apiVersion: z.string().nullable(),
|
|
9462
9626
|
archivedAt: z.iso.datetime().nullable(),
|
|
9463
9627
|
authHeaderName: z.string().nullable(),
|
|
@@ -9476,27 +9640,46 @@ export const zRoutingProvidersConnectRoutingProviderResponse = z.object({
|
|
|
9476
9640
|
'api_key',
|
|
9477
9641
|
'unknown'
|
|
9478
9642
|
]).nullish(),
|
|
9643
|
+
currentConfigVersion: z.int().nullish(),
|
|
9479
9644
|
displayName: z.string(),
|
|
9645
|
+
envCount: z.int().gte(0),
|
|
9480
9646
|
environments: z.array(z.object({
|
|
9481
9647
|
activationId: z.string(),
|
|
9482
9648
|
activeFrom: z.iso.datetime(),
|
|
9483
9649
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9650
|
+
configVersion: z.int().nullish(),
|
|
9484
9651
|
credentialId: z.string(),
|
|
9652
|
+
credentialValidity: z.enum([
|
|
9653
|
+
'valid',
|
|
9654
|
+
'invalid',
|
|
9655
|
+
'untested',
|
|
9656
|
+
'na'
|
|
9657
|
+
]),
|
|
9485
9658
|
current: z.literal(true),
|
|
9486
|
-
|
|
9487
|
-
slug: z.string(),
|
|
9488
|
-
status: z.enum([
|
|
9659
|
+
health: z.enum([
|
|
9489
9660
|
'healthy',
|
|
9490
9661
|
'degraded',
|
|
9491
|
-
'failing'
|
|
9492
|
-
|
|
9493
|
-
|
|
9662
|
+
'failing'
|
|
9663
|
+
]),
|
|
9664
|
+
id: z.string(),
|
|
9665
|
+
notRouted: z.boolean(),
|
|
9666
|
+
perVersionHealth: z.array(z.object({
|
|
9667
|
+
activeFrom: z.iso.datetime(),
|
|
9668
|
+
activeTo: z.iso.datetime().nullish(),
|
|
9669
|
+
configVersion: z.int(),
|
|
9670
|
+
current: z.boolean(),
|
|
9671
|
+
health: z.enum([
|
|
9672
|
+
'healthy',
|
|
9673
|
+
'degraded',
|
|
9674
|
+
'failing'
|
|
9675
|
+
])
|
|
9676
|
+
})).nullish(),
|
|
9677
|
+
slug: z.string()
|
|
9494
9678
|
})),
|
|
9495
9679
|
health: z.enum([
|
|
9496
9680
|
'healthy',
|
|
9497
9681
|
'degraded',
|
|
9498
|
-
'failing'
|
|
9499
|
-
'idle'
|
|
9682
|
+
'failing'
|
|
9500
9683
|
]),
|
|
9501
9684
|
id: z.string(),
|
|
9502
9685
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9773,6 +9956,7 @@ export const zRoutingProvidersGetRoutingProviderPath = z.object({
|
|
|
9773
9956
|
export const zRoutingProvidersGetRoutingProviderResponse = z.object({
|
|
9774
9957
|
code: z.number(),
|
|
9775
9958
|
data: z.object({
|
|
9959
|
+
affectedEnvCount: z.int().gte(0),
|
|
9776
9960
|
apiVersion: z.string().nullable(),
|
|
9777
9961
|
archivedAt: z.iso.datetime().nullable(),
|
|
9778
9962
|
authHeaderName: z.string().nullable(),
|
|
@@ -9791,27 +9975,46 @@ export const zRoutingProvidersGetRoutingProviderResponse = z.object({
|
|
|
9791
9975
|
'api_key',
|
|
9792
9976
|
'unknown'
|
|
9793
9977
|
]).nullish(),
|
|
9978
|
+
currentConfigVersion: z.int().nullish(),
|
|
9794
9979
|
displayName: z.string(),
|
|
9980
|
+
envCount: z.int().gte(0),
|
|
9795
9981
|
environments: z.array(z.object({
|
|
9796
9982
|
activationId: z.string(),
|
|
9797
9983
|
activeFrom: z.iso.datetime(),
|
|
9798
9984
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9985
|
+
configVersion: z.int().nullish(),
|
|
9799
9986
|
credentialId: z.string(),
|
|
9987
|
+
credentialValidity: z.enum([
|
|
9988
|
+
'valid',
|
|
9989
|
+
'invalid',
|
|
9990
|
+
'untested',
|
|
9991
|
+
'na'
|
|
9992
|
+
]),
|
|
9800
9993
|
current: z.literal(true),
|
|
9801
|
-
|
|
9802
|
-
slug: z.string(),
|
|
9803
|
-
status: z.enum([
|
|
9994
|
+
health: z.enum([
|
|
9804
9995
|
'healthy',
|
|
9805
9996
|
'degraded',
|
|
9806
|
-
'failing'
|
|
9807
|
-
|
|
9808
|
-
|
|
9997
|
+
'failing'
|
|
9998
|
+
]),
|
|
9999
|
+
id: z.string(),
|
|
10000
|
+
notRouted: z.boolean(),
|
|
10001
|
+
perVersionHealth: z.array(z.object({
|
|
10002
|
+
activeFrom: z.iso.datetime(),
|
|
10003
|
+
activeTo: z.iso.datetime().nullish(),
|
|
10004
|
+
configVersion: z.int(),
|
|
10005
|
+
current: z.boolean(),
|
|
10006
|
+
health: z.enum([
|
|
10007
|
+
'healthy',
|
|
10008
|
+
'degraded',
|
|
10009
|
+
'failing'
|
|
10010
|
+
])
|
|
10011
|
+
})).nullish(),
|
|
10012
|
+
slug: z.string()
|
|
9809
10013
|
})),
|
|
9810
10014
|
health: z.enum([
|
|
9811
10015
|
'healthy',
|
|
9812
10016
|
'degraded',
|
|
9813
|
-
'failing'
|
|
9814
|
-
'idle'
|
|
10017
|
+
'failing'
|
|
9815
10018
|
]),
|
|
9816
10019
|
id: z.string(),
|
|
9817
10020
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9891,6 +10094,7 @@ export const zRoutingProvidersUpdateRoutingProviderPath = z.object({
|
|
|
9891
10094
|
export const zRoutingProvidersUpdateRoutingProviderResponse = z.object({
|
|
9892
10095
|
code: z.number(),
|
|
9893
10096
|
data: z.object({
|
|
10097
|
+
affectedEnvCount: z.int().gte(0),
|
|
9894
10098
|
apiVersion: z.string().nullable(),
|
|
9895
10099
|
archivedAt: z.iso.datetime().nullable(),
|
|
9896
10100
|
authHeaderName: z.string().nullable(),
|
|
@@ -9909,27 +10113,46 @@ export const zRoutingProvidersUpdateRoutingProviderResponse = z.object({
|
|
|
9909
10113
|
'api_key',
|
|
9910
10114
|
'unknown'
|
|
9911
10115
|
]).nullish(),
|
|
10116
|
+
currentConfigVersion: z.int().nullish(),
|
|
9912
10117
|
displayName: z.string(),
|
|
10118
|
+
envCount: z.int().gte(0),
|
|
9913
10119
|
environments: z.array(z.object({
|
|
9914
10120
|
activationId: z.string(),
|
|
9915
10121
|
activeFrom: z.iso.datetime(),
|
|
9916
10122
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10123
|
+
configVersion: z.int().nullish(),
|
|
9917
10124
|
credentialId: z.string(),
|
|
10125
|
+
credentialValidity: z.enum([
|
|
10126
|
+
'valid',
|
|
10127
|
+
'invalid',
|
|
10128
|
+
'untested',
|
|
10129
|
+
'na'
|
|
10130
|
+
]),
|
|
9918
10131
|
current: z.literal(true),
|
|
9919
|
-
|
|
9920
|
-
slug: z.string(),
|
|
9921
|
-
status: z.enum([
|
|
10132
|
+
health: z.enum([
|
|
9922
10133
|
'healthy',
|
|
9923
10134
|
'degraded',
|
|
9924
|
-
'failing'
|
|
9925
|
-
|
|
9926
|
-
|
|
10135
|
+
'failing'
|
|
10136
|
+
]),
|
|
10137
|
+
id: z.string(),
|
|
10138
|
+
notRouted: z.boolean(),
|
|
10139
|
+
perVersionHealth: z.array(z.object({
|
|
10140
|
+
activeFrom: z.iso.datetime(),
|
|
10141
|
+
activeTo: z.iso.datetime().nullish(),
|
|
10142
|
+
configVersion: z.int(),
|
|
10143
|
+
current: z.boolean(),
|
|
10144
|
+
health: z.enum([
|
|
10145
|
+
'healthy',
|
|
10146
|
+
'degraded',
|
|
10147
|
+
'failing'
|
|
10148
|
+
])
|
|
10149
|
+
})).nullish(),
|
|
10150
|
+
slug: z.string()
|
|
9927
10151
|
})),
|
|
9928
10152
|
health: z.enum([
|
|
9929
10153
|
'healthy',
|
|
9930
10154
|
'degraded',
|
|
9931
|
-
'failing'
|
|
9932
|
-
'idle'
|
|
10155
|
+
'failing'
|
|
9933
10156
|
]),
|
|
9934
10157
|
id: z.string(),
|
|
9935
10158
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -10050,7 +10273,13 @@ export const zRoutingProviderCatalogResolveRoutingProviderCatalogResponse = z.ob
|
|
|
10050
10273
|
contextWindow: z.number().nullish(),
|
|
10051
10274
|
deprecatedAt: z.string().nullish(),
|
|
10052
10275
|
displayName: z.string().nullish(),
|
|
10053
|
-
id: z.string()
|
|
10276
|
+
id: z.string(),
|
|
10277
|
+
source: z.enum([
|
|
10278
|
+
'user',
|
|
10279
|
+
'platform',
|
|
10280
|
+
'curated',
|
|
10281
|
+
'custom'
|
|
10282
|
+
]).nullish()
|
|
10054
10283
|
})),
|
|
10055
10284
|
source: z.enum([
|
|
10056
10285
|
'user',
|
|
@@ -10150,6 +10379,7 @@ export const zRoutingProvidersListRoutingCredentialsResponse = z.object({
|
|
|
10150
10379
|
'none',
|
|
10151
10380
|
'passthrough'
|
|
10152
10381
|
]),
|
|
10382
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
10153
10383
|
id: z.string(),
|
|
10154
10384
|
keyLast4: z.string(),
|
|
10155
10385
|
label: z.string().nullable(),
|
|
@@ -10234,6 +10464,7 @@ export const zRoutingProvidersCreateRoutingCredentialResponse = z.object({
|
|
|
10234
10464
|
'none',
|
|
10235
10465
|
'passthrough'
|
|
10236
10466
|
]),
|
|
10467
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
10237
10468
|
id: z.string(),
|
|
10238
10469
|
keyLast4: z.string(),
|
|
10239
10470
|
label: z.string().nullable(),
|
|
@@ -10366,6 +10597,67 @@ export const zRoutingProvidersTestRoutingCredentialResponse = z.object({
|
|
|
10366
10597
|
success: z.boolean()
|
|
10367
10598
|
});
|
|
10368
10599
|
|
|
10600
|
+
export const zProviderPromoteVersionPromoteProviderEnvVersionBody = z.object({
|
|
10601
|
+
reason: z.string().nullish(),
|
|
10602
|
+
version: z.int().gt(0)
|
|
10603
|
+
});
|
|
10604
|
+
|
|
10605
|
+
export const zProviderPromoteVersionPromoteProviderEnvVersionPath = z.object({
|
|
10606
|
+
projectId: z.string(),
|
|
10607
|
+
providerId: z.string().min(1),
|
|
10608
|
+
envSlug: z.string().min(1)
|
|
10609
|
+
});
|
|
10610
|
+
|
|
10611
|
+
/**
|
|
10612
|
+
* Success
|
|
10613
|
+
*/
|
|
10614
|
+
export const zProviderPromoteVersionPromoteProviderEnvVersionResponse = z.object({
|
|
10615
|
+
code: z.number(),
|
|
10616
|
+
data: z.object({
|
|
10617
|
+
activeFrom: z.string(),
|
|
10618
|
+
activeTo: z.string().nullable(),
|
|
10619
|
+
actorId: z.string(),
|
|
10620
|
+
actorType: z.string(),
|
|
10621
|
+
approvalStatus: z.enum([
|
|
10622
|
+
'not_required',
|
|
10623
|
+
'pending',
|
|
10624
|
+
'approved',
|
|
10625
|
+
'rejected'
|
|
10626
|
+
]),
|
|
10627
|
+
changeType: z.string(),
|
|
10628
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10629
|
+
createdAt: z.string(),
|
|
10630
|
+
credentialId: z.string(),
|
|
10631
|
+
envSlug: z.string(),
|
|
10632
|
+
environmentId: z.string(),
|
|
10633
|
+
id: z.string(),
|
|
10634
|
+
providerId: z.string(),
|
|
10635
|
+
reason: z.string().nullable(),
|
|
10636
|
+
state: z.enum(['current', 'pending'])
|
|
10637
|
+
}).nullable(),
|
|
10638
|
+
error: z.object({
|
|
10639
|
+
code: z.string(),
|
|
10640
|
+
details: z.unknown().nullish(),
|
|
10641
|
+
message: z.string(),
|
|
10642
|
+
rowErrors: z.array(z.object({
|
|
10643
|
+
code: z.string(),
|
|
10644
|
+
message: z.string(),
|
|
10645
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
10646
|
+
})).nullish()
|
|
10647
|
+
}).nullable(),
|
|
10648
|
+
pagination: z.object({
|
|
10649
|
+
limit: z.int().gte(1).lte(100),
|
|
10650
|
+
page: z.int().gte(1),
|
|
10651
|
+
total: z.int().gte(0),
|
|
10652
|
+
totalPages: z.int().gte(0)
|
|
10653
|
+
}).nullable(),
|
|
10654
|
+
sdkBehavior: z.object({
|
|
10655
|
+
flags: z.record(z.string(), z.unknown()),
|
|
10656
|
+
v: z.int().gte(1)
|
|
10657
|
+
}).nullish(),
|
|
10658
|
+
success: z.boolean()
|
|
10659
|
+
});
|
|
10660
|
+
|
|
10369
10661
|
export const zRoutingProvidersListRoutingModelsPath = z.object({
|
|
10370
10662
|
projectId: z.string(),
|
|
10371
10663
|
providerId: z.string().min(1)
|
|
@@ -10377,11 +10669,11 @@ export const zRoutingProvidersListRoutingModelsPath = z.object({
|
|
|
10377
10669
|
export const zRoutingProvidersListRoutingModelsResponse = z.object({
|
|
10378
10670
|
code: z.number(),
|
|
10379
10671
|
data: z.array(z.object({
|
|
10672
|
+
catalogSlug: z.string().nullish(),
|
|
10380
10673
|
createdAt: z.iso.datetime(),
|
|
10381
10674
|
description: z.string().nullable(),
|
|
10382
10675
|
displayName: z.string().nullable(),
|
|
10383
10676
|
id: z.string(),
|
|
10384
|
-
isActive: z.boolean(),
|
|
10385
10677
|
modelType: z.string().nullable(),
|
|
10386
10678
|
name: z.string(),
|
|
10387
10679
|
providerId: z.string(),
|
|
@@ -10411,9 +10703,9 @@ export const zRoutingProvidersListRoutingModelsResponse = z.object({
|
|
|
10411
10703
|
});
|
|
10412
10704
|
|
|
10413
10705
|
export const zRoutingProvidersCreateRoutingModelBody = z.object({
|
|
10706
|
+
catalogSlug: z.string().max(200).nullish(),
|
|
10414
10707
|
description: z.string().nullish(),
|
|
10415
10708
|
displayName: z.string().max(200).nullish(),
|
|
10416
|
-
isActive: z.boolean().nullish(),
|
|
10417
10709
|
modelType: z.string().max(50).nullish(),
|
|
10418
10710
|
name: z.string().min(1).max(200)
|
|
10419
10711
|
});
|
|
@@ -10429,11 +10721,11 @@ export const zRoutingProvidersCreateRoutingModelPath = z.object({
|
|
|
10429
10721
|
export const zRoutingProvidersCreateRoutingModelResponse = z.object({
|
|
10430
10722
|
code: z.number(),
|
|
10431
10723
|
data: z.object({
|
|
10724
|
+
catalogSlug: z.string().nullish(),
|
|
10432
10725
|
createdAt: z.iso.datetime(),
|
|
10433
10726
|
description: z.string().nullable(),
|
|
10434
10727
|
displayName: z.string().nullable(),
|
|
10435
10728
|
id: z.string(),
|
|
10436
|
-
isActive: z.boolean(),
|
|
10437
10729
|
modelType: z.string().nullable(),
|
|
10438
10730
|
name: z.string(),
|
|
10439
10731
|
providerId: z.string(),
|
|
@@ -10518,7 +10810,6 @@ export const zRoutingProvidersDeleteRoutingModelResponse = z.object({
|
|
|
10518
10810
|
export const zRoutingProvidersUpdateRoutingModelBody = z.object({
|
|
10519
10811
|
description: z.string().nullish(),
|
|
10520
10812
|
displayName: z.string().max(200).nullish(),
|
|
10521
|
-
isActive: z.boolean().nullish(),
|
|
10522
10813
|
modelType: z.string().max(50).nullish()
|
|
10523
10814
|
});
|
|
10524
10815
|
|
|
@@ -10534,11 +10825,64 @@ export const zRoutingProvidersUpdateRoutingModelPath = z.object({
|
|
|
10534
10825
|
export const zRoutingProvidersUpdateRoutingModelResponse = z.object({
|
|
10535
10826
|
code: z.number(),
|
|
10536
10827
|
data: z.object({
|
|
10828
|
+
catalogSlug: z.string().nullish(),
|
|
10829
|
+
createdAt: z.iso.datetime(),
|
|
10830
|
+
description: z.string().nullable(),
|
|
10831
|
+
displayName: z.string().nullable(),
|
|
10832
|
+
id: z.string(),
|
|
10833
|
+
modelType: z.string().nullable(),
|
|
10834
|
+
name: z.string(),
|
|
10835
|
+
providerId: z.string(),
|
|
10836
|
+
publishWarning: z.object({
|
|
10837
|
+
errors: z.array(z.object({
|
|
10838
|
+
entity: z.string(),
|
|
10839
|
+
message: z.string(),
|
|
10840
|
+
rule: z.string().nullish()
|
|
10841
|
+
})),
|
|
10842
|
+
kind: z.enum(['validation'])
|
|
10843
|
+
}).nullish(),
|
|
10844
|
+
updatedAt: z.iso.datetime()
|
|
10845
|
+
}).nullable(),
|
|
10846
|
+
error: z.object({
|
|
10847
|
+
code: z.string(),
|
|
10848
|
+
details: z.unknown().nullish(),
|
|
10849
|
+
message: z.string(),
|
|
10850
|
+
rowErrors: z.array(z.object({
|
|
10851
|
+
code: z.string(),
|
|
10852
|
+
message: z.string(),
|
|
10853
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
10854
|
+
})).nullish()
|
|
10855
|
+
}).nullable(),
|
|
10856
|
+
pagination: z.object({
|
|
10857
|
+
limit: z.int().gte(1).lte(100),
|
|
10858
|
+
page: z.int().gte(1),
|
|
10859
|
+
total: z.int().gte(0),
|
|
10860
|
+
totalPages: z.int().gte(0)
|
|
10861
|
+
}).nullable(),
|
|
10862
|
+
sdkBehavior: z.object({
|
|
10863
|
+
flags: z.record(z.string(), z.unknown()),
|
|
10864
|
+
v: z.int().gte(1)
|
|
10865
|
+
}).nullish(),
|
|
10866
|
+
success: z.boolean()
|
|
10867
|
+
});
|
|
10868
|
+
|
|
10869
|
+
export const zRoutingProvidersRestoreRoutingModelPath = z.object({
|
|
10870
|
+
projectId: z.string(),
|
|
10871
|
+
providerId: z.string().min(1),
|
|
10872
|
+
modelId: z.string().min(1)
|
|
10873
|
+
});
|
|
10874
|
+
|
|
10875
|
+
/**
|
|
10876
|
+
* Success
|
|
10877
|
+
*/
|
|
10878
|
+
export const zRoutingProvidersRestoreRoutingModelResponse = z.object({
|
|
10879
|
+
code: z.number(),
|
|
10880
|
+
data: z.object({
|
|
10881
|
+
catalogSlug: z.string().nullish(),
|
|
10537
10882
|
createdAt: z.iso.datetime(),
|
|
10538
10883
|
description: z.string().nullable(),
|
|
10539
10884
|
displayName: z.string().nullable(),
|
|
10540
10885
|
id: z.string(),
|
|
10541
|
-
isActive: z.boolean(),
|
|
10542
10886
|
modelType: z.string().nullable(),
|
|
10543
10887
|
name: z.string(),
|
|
10544
10888
|
providerId: z.string(),
|
|
@@ -10615,6 +10959,49 @@ export const zRoutingProvidersRestoreRoutingProviderResponse = z.object({
|
|
|
10615
10959
|
success: z.boolean()
|
|
10616
10960
|
});
|
|
10617
10961
|
|
|
10962
|
+
export const zProviderConfigVersionsListProviderConfigVersionsPath = z.object({
|
|
10963
|
+
projectId: z.string(),
|
|
10964
|
+
providerId: z.string().min(1)
|
|
10965
|
+
});
|
|
10966
|
+
|
|
10967
|
+
/**
|
|
10968
|
+
* Success
|
|
10969
|
+
*/
|
|
10970
|
+
export const zProviderConfigVersionsListProviderConfigVersionsResponse = z.object({
|
|
10971
|
+
code: z.number(),
|
|
10972
|
+
data: z.object({
|
|
10973
|
+
versions: z.array(z.object({
|
|
10974
|
+
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10975
|
+
contentHash: z.string(),
|
|
10976
|
+
createdAt: z.iso.datetime(),
|
|
10977
|
+
createdBy: z.string().nullable(),
|
|
10978
|
+
liveInEnvSlugs: z.array(z.string()),
|
|
10979
|
+
version: z.int()
|
|
10980
|
+
}))
|
|
10981
|
+
}).nullable(),
|
|
10982
|
+
error: z.object({
|
|
10983
|
+
code: z.string(),
|
|
10984
|
+
details: z.unknown().nullish(),
|
|
10985
|
+
message: z.string(),
|
|
10986
|
+
rowErrors: z.array(z.object({
|
|
10987
|
+
code: z.string(),
|
|
10988
|
+
message: z.string(),
|
|
10989
|
+
path: z.array(z.union([z.string(), z.number()]))
|
|
10990
|
+
})).nullish()
|
|
10991
|
+
}).nullable(),
|
|
10992
|
+
pagination: z.object({
|
|
10993
|
+
limit: z.int().gte(1).lte(100),
|
|
10994
|
+
page: z.int().gte(1),
|
|
10995
|
+
total: z.int().gte(0),
|
|
10996
|
+
totalPages: z.int().gte(0)
|
|
10997
|
+
}).nullable(),
|
|
10998
|
+
sdkBehavior: z.object({
|
|
10999
|
+
flags: z.record(z.string(), z.unknown()),
|
|
11000
|
+
v: z.int().gte(1)
|
|
11001
|
+
}).nullish(),
|
|
11002
|
+
success: z.boolean()
|
|
11003
|
+
});
|
|
11004
|
+
|
|
10618
11005
|
export const zRoutingRoutesListRoutingRoutesPath = z.object({
|
|
10619
11006
|
projectId: z.string()
|
|
10620
11007
|
});
|