@to11ai/sdk 0.2.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 +743 -76
- package/dist/generated/zod.gen.d.ts +459 -65
- 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 +773 -76
- package/src/generated/zod.gen.ts +483 -84
- 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({
|
|
@@ -6580,13 +6642,23 @@ export const zProjectOverviewGetProjectOverviewPath = z.object({
|
|
|
6580
6642
|
|
|
6581
6643
|
export const zProjectOverviewGetProjectOverviewQuery = z.object({
|
|
6582
6644
|
timeRange: z.enum([
|
|
6645
|
+
'10m',
|
|
6646
|
+
'30m',
|
|
6583
6647
|
'1h',
|
|
6648
|
+
'2h',
|
|
6649
|
+
'3h',
|
|
6584
6650
|
'6h',
|
|
6651
|
+
'8h',
|
|
6585
6652
|
'12h',
|
|
6586
6653
|
'24h',
|
|
6587
6654
|
'7d',
|
|
6588
|
-
'
|
|
6589
|
-
|
|
6655
|
+
'14d',
|
|
6656
|
+
'28d',
|
|
6657
|
+
'30d',
|
|
6658
|
+
'60d'
|
|
6659
|
+
]).nullish(),
|
|
6660
|
+
startTimeFrom: z.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-]\d{2}:\d{2})$/).nullish(),
|
|
6661
|
+
startTimeTo: z.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?(Z|[+-]\d{2}:\d{2})$/).nullish()
|
|
6590
6662
|
});
|
|
6591
6663
|
|
|
6592
6664
|
/**
|
|
@@ -7187,7 +7259,8 @@ export const zPromptsListPromptsQuery = z.object({
|
|
|
7187
7259
|
'updatedAt',
|
|
7188
7260
|
'name',
|
|
7189
7261
|
'status',
|
|
7190
|
-
'latestVersion'
|
|
7262
|
+
'latestVersion',
|
|
7263
|
+
'environments'
|
|
7191
7264
|
]).nullish(),
|
|
7192
7265
|
tags: z.string().nullish(),
|
|
7193
7266
|
environment: z.string().nullish()
|
|
@@ -7214,6 +7287,11 @@ export const zPromptsListPromptsResponse = z.object({
|
|
|
7214
7287
|
lastModifiedAt: z.iso.datetime(),
|
|
7215
7288
|
lastModifiedByDisplayName: z.string().nullable(),
|
|
7216
7289
|
lastModifiedByImage: z.string().nullable(),
|
|
7290
|
+
lastModifiedByType: z.enum([
|
|
7291
|
+
'user',
|
|
7292
|
+
'api_key',
|
|
7293
|
+
'unknown'
|
|
7294
|
+
]).nullable(),
|
|
7217
7295
|
lastModifiedByUserId: z.string().nullable(),
|
|
7218
7296
|
latestVersion: z.number().nullable(),
|
|
7219
7297
|
name: z.string().min(1).max(200),
|
|
@@ -7573,6 +7651,10 @@ export const zPromptsListPromptLabelsPath = z.object({
|
|
|
7573
7651
|
promptId: z.string()
|
|
7574
7652
|
});
|
|
7575
7653
|
|
|
7654
|
+
export const zPromptsListPromptLabelsQuery = z.object({
|
|
7655
|
+
asOf: z.string().nullish()
|
|
7656
|
+
});
|
|
7657
|
+
|
|
7576
7658
|
/**
|
|
7577
7659
|
* Success
|
|
7578
7660
|
*/
|
|
@@ -7603,7 +7685,7 @@ export const zPromptsListPromptLabelsResponse = z.object({
|
|
|
7603
7685
|
});
|
|
7604
7686
|
|
|
7605
7687
|
export const zPromptsMovePromptLabelBody = z.object({
|
|
7606
|
-
reason: z.string().
|
|
7688
|
+
reason: z.string().min(1),
|
|
7607
7689
|
versionId: z.string()
|
|
7608
7690
|
});
|
|
7609
7691
|
|
|
@@ -7695,7 +7777,7 @@ export const zPromptsListPromptLabelEventsByLabelResponse = z.object({
|
|
|
7695
7777
|
});
|
|
7696
7778
|
|
|
7697
7779
|
export const zPromptsSetWeightedReleaseBody = z.object({
|
|
7698
|
-
reason: z.string().
|
|
7780
|
+
reason: z.string().min(1),
|
|
7699
7781
|
variants: z.array(z.object({
|
|
7700
7782
|
name: z.string().min(1),
|
|
7701
7783
|
versionId: z.string().min(1),
|
|
@@ -7738,6 +7820,55 @@ export const zPromptsSetWeightedReleaseResponse = z.object({
|
|
|
7738
7820
|
success: z.boolean()
|
|
7739
7821
|
});
|
|
7740
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
|
+
|
|
7741
7872
|
export const zPromptsListPromptVersionsPath = z.object({
|
|
7742
7873
|
projectId: z.string().min(1),
|
|
7743
7874
|
promptId: z.string()
|
|
@@ -8003,10 +8134,12 @@ export const zPromptsGetPromptReviewStateResponse = z.object({
|
|
|
8003
8134
|
'request_changes',
|
|
8004
8135
|
'withdraw'
|
|
8005
8136
|
]),
|
|
8137
|
+
hasActiveRejection: z.boolean(),
|
|
8006
8138
|
reviewId: z.string(),
|
|
8007
8139
|
reviewerPrincipalId: z.string()
|
|
8008
8140
|
})),
|
|
8009
8141
|
approvalCount: z.number(),
|
|
8142
|
+
callerHasActiveRejection: z.boolean(),
|
|
8010
8143
|
hasActiveRejection: z.boolean(),
|
|
8011
8144
|
reviews: z.array(z.object({
|
|
8012
8145
|
createdAt: z.iso.datetime(),
|
|
@@ -8233,6 +8366,7 @@ export const zCredentialLifecycleRenameCredentialResponse = z.object({
|
|
|
8233
8366
|
'none',
|
|
8234
8367
|
'passthrough'
|
|
8235
8368
|
]),
|
|
8369
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
8236
8370
|
id: z.string(),
|
|
8237
8371
|
keyLast4: z.string(),
|
|
8238
8372
|
label: z.string().nullable(),
|
|
@@ -8366,6 +8500,7 @@ export const zCredentialLifecycleRestoreCredentialResponse = z.object({
|
|
|
8366
8500
|
'none',
|
|
8367
8501
|
'passthrough'
|
|
8368
8502
|
]),
|
|
8503
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
8369
8504
|
id: z.string(),
|
|
8370
8505
|
keyLast4: z.string(),
|
|
8371
8506
|
label: z.string().nullable(),
|
|
@@ -9139,6 +9274,7 @@ export const zRoutingProvidersListRoutingProvidersPath = z.object({
|
|
|
9139
9274
|
export const zRoutingProvidersListRoutingProvidersResponse = z.object({
|
|
9140
9275
|
code: z.number(),
|
|
9141
9276
|
data: z.array(z.object({
|
|
9277
|
+
affectedEnvCount: z.int().gte(0),
|
|
9142
9278
|
apiVersion: z.string().nullable(),
|
|
9143
9279
|
archivedAt: z.iso.datetime().nullable(),
|
|
9144
9280
|
authHeaderName: z.string().nullable(),
|
|
@@ -9157,27 +9293,46 @@ export const zRoutingProvidersListRoutingProvidersResponse = z.object({
|
|
|
9157
9293
|
'api_key',
|
|
9158
9294
|
'unknown'
|
|
9159
9295
|
]).nullish(),
|
|
9296
|
+
currentConfigVersion: z.int().nullish(),
|
|
9160
9297
|
displayName: z.string(),
|
|
9298
|
+
envCount: z.int().gte(0),
|
|
9161
9299
|
environments: z.array(z.object({
|
|
9162
9300
|
activationId: z.string(),
|
|
9163
9301
|
activeFrom: z.iso.datetime(),
|
|
9164
9302
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9303
|
+
configVersion: z.int().nullish(),
|
|
9165
9304
|
credentialId: z.string(),
|
|
9305
|
+
credentialValidity: z.enum([
|
|
9306
|
+
'valid',
|
|
9307
|
+
'invalid',
|
|
9308
|
+
'untested',
|
|
9309
|
+
'na'
|
|
9310
|
+
]),
|
|
9166
9311
|
current: z.literal(true),
|
|
9167
|
-
|
|
9168
|
-
slug: z.string(),
|
|
9169
|
-
status: z.enum([
|
|
9312
|
+
health: z.enum([
|
|
9170
9313
|
'healthy',
|
|
9171
9314
|
'degraded',
|
|
9172
|
-
'failing'
|
|
9173
|
-
|
|
9174
|
-
|
|
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()
|
|
9175
9331
|
})),
|
|
9176
9332
|
health: z.enum([
|
|
9177
9333
|
'healthy',
|
|
9178
9334
|
'degraded',
|
|
9179
|
-
'failing'
|
|
9180
|
-
'idle'
|
|
9335
|
+
'failing'
|
|
9181
9336
|
]),
|
|
9182
9337
|
id: z.string(),
|
|
9183
9338
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9259,6 +9414,7 @@ export const zRoutingProvidersCreateRoutingProviderPath = z.object({
|
|
|
9259
9414
|
export const zRoutingProvidersCreateRoutingProviderResponse = z.object({
|
|
9260
9415
|
code: z.number(),
|
|
9261
9416
|
data: z.object({
|
|
9417
|
+
affectedEnvCount: z.int().gte(0),
|
|
9262
9418
|
apiVersion: z.string().nullable(),
|
|
9263
9419
|
archivedAt: z.iso.datetime().nullable(),
|
|
9264
9420
|
authHeaderName: z.string().nullable(),
|
|
@@ -9277,27 +9433,46 @@ export const zRoutingProvidersCreateRoutingProviderResponse = z.object({
|
|
|
9277
9433
|
'api_key',
|
|
9278
9434
|
'unknown'
|
|
9279
9435
|
]).nullish(),
|
|
9436
|
+
currentConfigVersion: z.int().nullish(),
|
|
9280
9437
|
displayName: z.string(),
|
|
9438
|
+
envCount: z.int().gte(0),
|
|
9281
9439
|
environments: z.array(z.object({
|
|
9282
9440
|
activationId: z.string(),
|
|
9283
9441
|
activeFrom: z.iso.datetime(),
|
|
9284
9442
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9443
|
+
configVersion: z.int().nullish(),
|
|
9285
9444
|
credentialId: z.string(),
|
|
9445
|
+
credentialValidity: z.enum([
|
|
9446
|
+
'valid',
|
|
9447
|
+
'invalid',
|
|
9448
|
+
'untested',
|
|
9449
|
+
'na'
|
|
9450
|
+
]),
|
|
9286
9451
|
current: z.literal(true),
|
|
9287
|
-
|
|
9288
|
-
slug: z.string(),
|
|
9289
|
-
status: z.enum([
|
|
9452
|
+
health: z.enum([
|
|
9290
9453
|
'healthy',
|
|
9291
9454
|
'degraded',
|
|
9292
|
-
'failing'
|
|
9293
|
-
|
|
9294
|
-
|
|
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()
|
|
9295
9471
|
})),
|
|
9296
9472
|
health: z.enum([
|
|
9297
9473
|
'healthy',
|
|
9298
9474
|
'degraded',
|
|
9299
|
-
'failing'
|
|
9300
|
-
'idle'
|
|
9475
|
+
'failing'
|
|
9301
9476
|
]),
|
|
9302
9477
|
id: z.string(),
|
|
9303
9478
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9446,6 +9621,7 @@ export const zRoutingProvidersConnectRoutingProviderResponse = z.object({
|
|
|
9446
9621
|
})),
|
|
9447
9622
|
credentialId: z.string(),
|
|
9448
9623
|
provider: z.object({
|
|
9624
|
+
affectedEnvCount: z.int().gte(0),
|
|
9449
9625
|
apiVersion: z.string().nullable(),
|
|
9450
9626
|
archivedAt: z.iso.datetime().nullable(),
|
|
9451
9627
|
authHeaderName: z.string().nullable(),
|
|
@@ -9464,27 +9640,46 @@ export const zRoutingProvidersConnectRoutingProviderResponse = z.object({
|
|
|
9464
9640
|
'api_key',
|
|
9465
9641
|
'unknown'
|
|
9466
9642
|
]).nullish(),
|
|
9643
|
+
currentConfigVersion: z.int().nullish(),
|
|
9467
9644
|
displayName: z.string(),
|
|
9645
|
+
envCount: z.int().gte(0),
|
|
9468
9646
|
environments: z.array(z.object({
|
|
9469
9647
|
activationId: z.string(),
|
|
9470
9648
|
activeFrom: z.iso.datetime(),
|
|
9471
9649
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9650
|
+
configVersion: z.int().nullish(),
|
|
9472
9651
|
credentialId: z.string(),
|
|
9652
|
+
credentialValidity: z.enum([
|
|
9653
|
+
'valid',
|
|
9654
|
+
'invalid',
|
|
9655
|
+
'untested',
|
|
9656
|
+
'na'
|
|
9657
|
+
]),
|
|
9473
9658
|
current: z.literal(true),
|
|
9474
|
-
|
|
9475
|
-
slug: z.string(),
|
|
9476
|
-
status: z.enum([
|
|
9659
|
+
health: z.enum([
|
|
9477
9660
|
'healthy',
|
|
9478
9661
|
'degraded',
|
|
9479
|
-
'failing'
|
|
9480
|
-
|
|
9481
|
-
|
|
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()
|
|
9482
9678
|
})),
|
|
9483
9679
|
health: z.enum([
|
|
9484
9680
|
'healthy',
|
|
9485
9681
|
'degraded',
|
|
9486
|
-
'failing'
|
|
9487
|
-
'idle'
|
|
9682
|
+
'failing'
|
|
9488
9683
|
]),
|
|
9489
9684
|
id: z.string(),
|
|
9490
9685
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9761,6 +9956,7 @@ export const zRoutingProvidersGetRoutingProviderPath = z.object({
|
|
|
9761
9956
|
export const zRoutingProvidersGetRoutingProviderResponse = z.object({
|
|
9762
9957
|
code: z.number(),
|
|
9763
9958
|
data: z.object({
|
|
9959
|
+
affectedEnvCount: z.int().gte(0),
|
|
9764
9960
|
apiVersion: z.string().nullable(),
|
|
9765
9961
|
archivedAt: z.iso.datetime().nullable(),
|
|
9766
9962
|
authHeaderName: z.string().nullable(),
|
|
@@ -9779,27 +9975,46 @@ export const zRoutingProvidersGetRoutingProviderResponse = z.object({
|
|
|
9779
9975
|
'api_key',
|
|
9780
9976
|
'unknown'
|
|
9781
9977
|
]).nullish(),
|
|
9978
|
+
currentConfigVersion: z.int().nullish(),
|
|
9782
9979
|
displayName: z.string(),
|
|
9980
|
+
envCount: z.int().gte(0),
|
|
9783
9981
|
environments: z.array(z.object({
|
|
9784
9982
|
activationId: z.string(),
|
|
9785
9983
|
activeFrom: z.iso.datetime(),
|
|
9786
9984
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
9985
|
+
configVersion: z.int().nullish(),
|
|
9787
9986
|
credentialId: z.string(),
|
|
9987
|
+
credentialValidity: z.enum([
|
|
9988
|
+
'valid',
|
|
9989
|
+
'invalid',
|
|
9990
|
+
'untested',
|
|
9991
|
+
'na'
|
|
9992
|
+
]),
|
|
9788
9993
|
current: z.literal(true),
|
|
9789
|
-
|
|
9790
|
-
slug: z.string(),
|
|
9791
|
-
status: z.enum([
|
|
9994
|
+
health: z.enum([
|
|
9792
9995
|
'healthy',
|
|
9793
9996
|
'degraded',
|
|
9794
|
-
'failing'
|
|
9795
|
-
|
|
9796
|
-
|
|
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()
|
|
9797
10013
|
})),
|
|
9798
10014
|
health: z.enum([
|
|
9799
10015
|
'healthy',
|
|
9800
10016
|
'degraded',
|
|
9801
|
-
'failing'
|
|
9802
|
-
'idle'
|
|
10017
|
+
'failing'
|
|
9803
10018
|
]),
|
|
9804
10019
|
id: z.string(),
|
|
9805
10020
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -9879,6 +10094,7 @@ export const zRoutingProvidersUpdateRoutingProviderPath = z.object({
|
|
|
9879
10094
|
export const zRoutingProvidersUpdateRoutingProviderResponse = z.object({
|
|
9880
10095
|
code: z.number(),
|
|
9881
10096
|
data: z.object({
|
|
10097
|
+
affectedEnvCount: z.int().gte(0),
|
|
9882
10098
|
apiVersion: z.string().nullable(),
|
|
9883
10099
|
archivedAt: z.iso.datetime().nullable(),
|
|
9884
10100
|
authHeaderName: z.string().nullable(),
|
|
@@ -9897,27 +10113,46 @@ export const zRoutingProvidersUpdateRoutingProviderResponse = z.object({
|
|
|
9897
10113
|
'api_key',
|
|
9898
10114
|
'unknown'
|
|
9899
10115
|
]).nullish(),
|
|
10116
|
+
currentConfigVersion: z.int().nullish(),
|
|
9900
10117
|
displayName: z.string(),
|
|
10118
|
+
envCount: z.int().gte(0),
|
|
9901
10119
|
environments: z.array(z.object({
|
|
9902
10120
|
activationId: z.string(),
|
|
9903
10121
|
activeFrom: z.iso.datetime(),
|
|
9904
10122
|
configSnapshot: z.record(z.string(), z.unknown()),
|
|
10123
|
+
configVersion: z.int().nullish(),
|
|
9905
10124
|
credentialId: z.string(),
|
|
10125
|
+
credentialValidity: z.enum([
|
|
10126
|
+
'valid',
|
|
10127
|
+
'invalid',
|
|
10128
|
+
'untested',
|
|
10129
|
+
'na'
|
|
10130
|
+
]),
|
|
9906
10131
|
current: z.literal(true),
|
|
9907
|
-
|
|
9908
|
-
slug: z.string(),
|
|
9909
|
-
status: z.enum([
|
|
10132
|
+
health: z.enum([
|
|
9910
10133
|
'healthy',
|
|
9911
10134
|
'degraded',
|
|
9912
|
-
'failing'
|
|
9913
|
-
|
|
9914
|
-
|
|
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()
|
|
9915
10151
|
})),
|
|
9916
10152
|
health: z.enum([
|
|
9917
10153
|
'healthy',
|
|
9918
10154
|
'degraded',
|
|
9919
|
-
'failing'
|
|
9920
|
-
'idle'
|
|
10155
|
+
'failing'
|
|
9921
10156
|
]),
|
|
9922
10157
|
id: z.string(),
|
|
9923
10158
|
lastTestedAt: z.iso.datetime().nullable(),
|
|
@@ -10038,7 +10273,13 @@ export const zRoutingProviderCatalogResolveRoutingProviderCatalogResponse = z.ob
|
|
|
10038
10273
|
contextWindow: z.number().nullish(),
|
|
10039
10274
|
deprecatedAt: z.string().nullish(),
|
|
10040
10275
|
displayName: z.string().nullish(),
|
|
10041
|
-
id: z.string()
|
|
10276
|
+
id: z.string(),
|
|
10277
|
+
source: z.enum([
|
|
10278
|
+
'user',
|
|
10279
|
+
'platform',
|
|
10280
|
+
'curated',
|
|
10281
|
+
'custom'
|
|
10282
|
+
]).nullish()
|
|
10042
10283
|
})),
|
|
10043
10284
|
source: z.enum([
|
|
10044
10285
|
'user',
|
|
@@ -10138,6 +10379,7 @@ export const zRoutingProvidersListRoutingCredentialsResponse = z.object({
|
|
|
10138
10379
|
'none',
|
|
10139
10380
|
'passthrough'
|
|
10140
10381
|
]),
|
|
10382
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
10141
10383
|
id: z.string(),
|
|
10142
10384
|
keyLast4: z.string(),
|
|
10143
10385
|
label: z.string().nullable(),
|
|
@@ -10222,6 +10464,7 @@ export const zRoutingProvidersCreateRoutingCredentialResponse = z.object({
|
|
|
10222
10464
|
'none',
|
|
10223
10465
|
'passthrough'
|
|
10224
10466
|
]),
|
|
10467
|
+
deletedAt: z.iso.datetime().nullish(),
|
|
10225
10468
|
id: z.string(),
|
|
10226
10469
|
keyLast4: z.string(),
|
|
10227
10470
|
label: z.string().nullable(),
|
|
@@ -10354,6 +10597,67 @@ export const zRoutingProvidersTestRoutingCredentialResponse = z.object({
|
|
|
10354
10597
|
success: z.boolean()
|
|
10355
10598
|
});
|
|
10356
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
|
+
|
|
10357
10661
|
export const zRoutingProvidersListRoutingModelsPath = z.object({
|
|
10358
10662
|
projectId: z.string(),
|
|
10359
10663
|
providerId: z.string().min(1)
|
|
@@ -10365,11 +10669,11 @@ export const zRoutingProvidersListRoutingModelsPath = z.object({
|
|
|
10365
10669
|
export const zRoutingProvidersListRoutingModelsResponse = z.object({
|
|
10366
10670
|
code: z.number(),
|
|
10367
10671
|
data: z.array(z.object({
|
|
10672
|
+
catalogSlug: z.string().nullish(),
|
|
10368
10673
|
createdAt: z.iso.datetime(),
|
|
10369
10674
|
description: z.string().nullable(),
|
|
10370
10675
|
displayName: z.string().nullable(),
|
|
10371
10676
|
id: z.string(),
|
|
10372
|
-
isActive: z.boolean(),
|
|
10373
10677
|
modelType: z.string().nullable(),
|
|
10374
10678
|
name: z.string(),
|
|
10375
10679
|
providerId: z.string(),
|
|
@@ -10399,9 +10703,9 @@ export const zRoutingProvidersListRoutingModelsResponse = z.object({
|
|
|
10399
10703
|
});
|
|
10400
10704
|
|
|
10401
10705
|
export const zRoutingProvidersCreateRoutingModelBody = z.object({
|
|
10706
|
+
catalogSlug: z.string().max(200).nullish(),
|
|
10402
10707
|
description: z.string().nullish(),
|
|
10403
10708
|
displayName: z.string().max(200).nullish(),
|
|
10404
|
-
isActive: z.boolean().nullish(),
|
|
10405
10709
|
modelType: z.string().max(50).nullish(),
|
|
10406
10710
|
name: z.string().min(1).max(200)
|
|
10407
10711
|
});
|
|
@@ -10417,11 +10721,11 @@ export const zRoutingProvidersCreateRoutingModelPath = z.object({
|
|
|
10417
10721
|
export const zRoutingProvidersCreateRoutingModelResponse = z.object({
|
|
10418
10722
|
code: z.number(),
|
|
10419
10723
|
data: z.object({
|
|
10724
|
+
catalogSlug: z.string().nullish(),
|
|
10420
10725
|
createdAt: z.iso.datetime(),
|
|
10421
10726
|
description: z.string().nullable(),
|
|
10422
10727
|
displayName: z.string().nullable(),
|
|
10423
10728
|
id: z.string(),
|
|
10424
|
-
isActive: z.boolean(),
|
|
10425
10729
|
modelType: z.string().nullable(),
|
|
10426
10730
|
name: z.string(),
|
|
10427
10731
|
providerId: z.string(),
|
|
@@ -10506,7 +10810,6 @@ export const zRoutingProvidersDeleteRoutingModelResponse = z.object({
|
|
|
10506
10810
|
export const zRoutingProvidersUpdateRoutingModelBody = z.object({
|
|
10507
10811
|
description: z.string().nullish(),
|
|
10508
10812
|
displayName: z.string().max(200).nullish(),
|
|
10509
|
-
isActive: z.boolean().nullish(),
|
|
10510
10813
|
modelType: z.string().max(50).nullish()
|
|
10511
10814
|
});
|
|
10512
10815
|
|
|
@@ -10522,11 +10825,64 @@ export const zRoutingProvidersUpdateRoutingModelPath = z.object({
|
|
|
10522
10825
|
export const zRoutingProvidersUpdateRoutingModelResponse = z.object({
|
|
10523
10826
|
code: z.number(),
|
|
10524
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(),
|
|
10525
10882
|
createdAt: z.iso.datetime(),
|
|
10526
10883
|
description: z.string().nullable(),
|
|
10527
10884
|
displayName: z.string().nullable(),
|
|
10528
10885
|
id: z.string(),
|
|
10529
|
-
isActive: z.boolean(),
|
|
10530
10886
|
modelType: z.string().nullable(),
|
|
10531
10887
|
name: z.string(),
|
|
10532
10888
|
providerId: z.string(),
|
|
@@ -10603,6 +10959,49 @@ export const zRoutingProvidersRestoreRoutingProviderResponse = z.object({
|
|
|
10603
10959
|
success: z.boolean()
|
|
10604
10960
|
});
|
|
10605
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
|
+
|
|
10606
11005
|
export const zRoutingRoutesListRoutingRoutesPath = z.object({
|
|
10607
11006
|
projectId: z.string()
|
|
10608
11007
|
});
|