@cloudfleet/sdk 0.0.1-ac7f6c7 → 0.0.1-aca000f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@tanstack/react-query.gen.d.ts +1125 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1129 -0
- package/dist/@tanstack/react-query.gen.js.map +1 -0
- package/dist/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +220 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.gen.d.ts +121 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/utils.gen.d.ts +38 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +229 -0
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +4 -4
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +2 -4
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.d.ts +19 -0
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/auth.gen.js +15 -0
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +26 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/bodySerializer.gen.js +58 -0
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/params.gen.d.ts +44 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +101 -0
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/pathSerializer.gen.d.ts +34 -0
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/pathSerializer.gen.js +107 -0
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +133 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/types.gen.d.ts +79 -0
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +1321 -599
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +2652 -688
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +172 -62
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +217 -164
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +1052 -360
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3510 -2588
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1213 -926
- package/dist/zod.gen.js.map +1 -1
- package/package.json +29 -7
package/dist/zod.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import
|
|
2
|
+
import * as z from 'zod';
|
|
3
3
|
export const zBillingContact = z.object({
|
|
4
|
+
type: z.enum(['business', 'personal']),
|
|
4
5
|
company: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/).optional(),
|
|
5
6
|
address1: z.string().optional(),
|
|
6
7
|
address2: z.string().optional(),
|
|
@@ -9,9 +10,8 @@ export const zBillingContact = z.object({
|
|
|
9
10
|
state: z.string().optional(),
|
|
10
11
|
country: z.string().optional(),
|
|
11
12
|
phone: z.string().optional(),
|
|
12
|
-
email: z.
|
|
13
|
-
|
|
14
|
-
last_name: z.string(),
|
|
13
|
+
email: z.email(),
|
|
14
|
+
individual_name: z.string(),
|
|
15
15
|
tax_id: z.string().optional(),
|
|
16
16
|
tax_id_type: z.enum([
|
|
17
17
|
'ad_nrt',
|
|
@@ -146,16 +146,12 @@ export const zBillingContact = z.object({
|
|
|
146
146
|
});
|
|
147
147
|
export const zBillingCredits = z.object({
|
|
148
148
|
id: z.string().optional(),
|
|
149
|
-
|
|
149
|
+
type: z.enum(['credit', 'discount']),
|
|
150
|
+
date_start: z.iso.datetime(),
|
|
151
|
+
date_end: z.iso.datetime().optional(),
|
|
150
152
|
code: z.string(),
|
|
151
153
|
description: z.string().optional(),
|
|
152
|
-
|
|
153
|
-
type: z.enum([
|
|
154
|
-
'credit',
|
|
155
|
-
'discount'
|
|
156
|
-
]),
|
|
157
|
-
value: z.number(),
|
|
158
|
-
billing_period: z.string().datetime(),
|
|
154
|
+
value_total: z.number(),
|
|
159
155
|
value_remaining: z.number().optional()
|
|
160
156
|
});
|
|
161
157
|
export const zChartCreateInput = z.object({
|
|
@@ -198,26 +194,31 @@ export const zChartUpdateInput = z.object({
|
|
|
198
194
|
});
|
|
199
195
|
export const zClusterCreateInput = z.object({
|
|
200
196
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
201
|
-
tier: z.enum([
|
|
202
|
-
'basic',
|
|
203
|
-
'pro'
|
|
204
|
-
]),
|
|
197
|
+
tier: z.enum(['basic', 'pro']),
|
|
205
198
|
region: z.enum([
|
|
206
|
-
'staging',
|
|
199
|
+
'staging-1a',
|
|
207
200
|
'northamerica-central-1',
|
|
208
|
-
'europe-central-1a'
|
|
209
|
-
|
|
210
|
-
|
|
201
|
+
'europe-central-1a',
|
|
202
|
+
'northamerica-central-1a'
|
|
203
|
+
]).optional().default('staging-1a'),
|
|
204
|
+
version_channel: z.enum([
|
|
205
|
+
'1.x.x-cfke.x',
|
|
206
|
+
'1.31.x-cfke.x',
|
|
207
|
+
'1.32.x-cfke.x',
|
|
208
|
+
'1.33.x-cfke.x'
|
|
209
|
+
]).optional().default('1.x.x-cfke.x')
|
|
211
210
|
});
|
|
212
211
|
export const zClusterJoinInformation = z.object({
|
|
213
212
|
certificate_authority: z.string(),
|
|
214
|
-
endpoint: z.
|
|
213
|
+
endpoint: z.url(),
|
|
214
|
+
cluster_dns: z.string(),
|
|
215
215
|
auth_key: z.string(),
|
|
216
216
|
bootstrap_token: z.string(),
|
|
217
217
|
versions: z.object({
|
|
218
218
|
kubernetes: z.string(),
|
|
219
219
|
tailscale: z.string(),
|
|
220
|
-
containerd: z.string()
|
|
220
|
+
containerd: z.string(),
|
|
221
|
+
nvidia_driver: z.string()
|
|
221
222
|
}),
|
|
222
223
|
third_party_api_access_config: z.object({
|
|
223
224
|
metadata_url: z.string(),
|
|
@@ -227,19 +228,17 @@ export const zClusterJoinInformation = z.object({
|
|
|
227
228
|
});
|
|
228
229
|
export const zCluster = z.object({
|
|
229
230
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
-
tier: z.enum([
|
|
231
|
-
'basic',
|
|
232
|
-
'pro'
|
|
233
|
-
]),
|
|
231
|
+
tier: z.enum(['basic', 'pro']),
|
|
234
232
|
region: z.enum([
|
|
235
|
-
'staging',
|
|
233
|
+
'staging-1a',
|
|
236
234
|
'northamerica-central-1',
|
|
237
|
-
'europe-central-1a'
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
id: z.
|
|
235
|
+
'europe-central-1a',
|
|
236
|
+
'northamerica-central-1a'
|
|
237
|
+
]).optional().default('staging-1a'),
|
|
238
|
+
id: z.uuid(),
|
|
241
239
|
status: z.enum([
|
|
242
240
|
'active',
|
|
241
|
+
'disabled',
|
|
243
242
|
'deleted',
|
|
244
243
|
'creating',
|
|
245
244
|
'deployed',
|
|
@@ -247,723 +246,860 @@ export const zCluster = z.object({
|
|
|
247
246
|
'updating'
|
|
248
247
|
]),
|
|
249
248
|
endpoint: z.union([
|
|
250
|
-
z.
|
|
251
|
-
z.enum([
|
|
252
|
-
|
|
253
|
-
|
|
249
|
+
z.url(),
|
|
250
|
+
z.enum([''])
|
|
251
|
+
]).optional(),
|
|
252
|
+
endpoint_public: z.union([
|
|
253
|
+
z.url(),
|
|
254
|
+
z.enum([''])
|
|
254
255
|
]).optional(),
|
|
255
256
|
certificate_ca: z.string().optional(),
|
|
256
257
|
version_current: z.string().optional(),
|
|
257
258
|
created_at: z.string().optional(),
|
|
258
259
|
updated_at: z.string().optional(),
|
|
259
|
-
ready: z.boolean().optional()
|
|
260
|
+
ready: z.boolean().optional(),
|
|
261
|
+
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
260
262
|
});
|
|
261
263
|
export const zClusterUpdateInput = z.object({
|
|
262
264
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
263
|
-
tier: z.enum([
|
|
264
|
-
'basic',
|
|
265
|
-
'pro'
|
|
266
|
-
]),
|
|
265
|
+
tier: z.enum(['basic', 'pro']),
|
|
267
266
|
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
268
267
|
});
|
|
269
268
|
export const zFleetCreateInput = z.object({
|
|
270
269
|
limits: z.object({
|
|
271
|
-
cpu: z.
|
|
270
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
272
271
|
}).optional(),
|
|
273
272
|
gcp: z.object({
|
|
274
|
-
enabled: z.boolean()
|
|
275
|
-
project: z.string()
|
|
273
|
+
enabled: z.boolean(),
|
|
274
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
276
275
|
}).optional(),
|
|
277
276
|
hetzner: z.object({
|
|
278
|
-
enabled: z.boolean()
|
|
279
|
-
apiKey: z.string()
|
|
277
|
+
enabled: z.boolean(),
|
|
278
|
+
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
|
|
280
279
|
}).optional(),
|
|
281
280
|
aws: z.object({
|
|
282
|
-
enabled: z.boolean()
|
|
283
|
-
controllerRoleArn: z.string()
|
|
281
|
+
enabled: z.boolean(),
|
|
282
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
284
283
|
}).optional(),
|
|
284
|
+
constraints: z.object({
|
|
285
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
286
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
287
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
288
|
+
'a1',
|
|
289
|
+
'a2',
|
|
290
|
+
'a3',
|
|
291
|
+
'a4',
|
|
292
|
+
'c1',
|
|
293
|
+
'c2',
|
|
294
|
+
'c2d',
|
|
295
|
+
'c3',
|
|
296
|
+
'c3d',
|
|
297
|
+
'c4',
|
|
298
|
+
'c4a',
|
|
299
|
+
'c4d',
|
|
300
|
+
'c5',
|
|
301
|
+
'c5a',
|
|
302
|
+
'c5ad',
|
|
303
|
+
'c5d',
|
|
304
|
+
'c5n',
|
|
305
|
+
'c6a',
|
|
306
|
+
'c6g',
|
|
307
|
+
'c6gd',
|
|
308
|
+
'c6gn',
|
|
309
|
+
'c6i',
|
|
310
|
+
'c6id',
|
|
311
|
+
'c6in',
|
|
312
|
+
'c7a',
|
|
313
|
+
'c7g',
|
|
314
|
+
'c7gd',
|
|
315
|
+
'c7gn',
|
|
316
|
+
'c7i',
|
|
317
|
+
'c7i-flex',
|
|
318
|
+
'c8g',
|
|
319
|
+
'c8gd',
|
|
320
|
+
'cax',
|
|
321
|
+
'ccx',
|
|
322
|
+
'cpx',
|
|
323
|
+
'cx',
|
|
324
|
+
'd2',
|
|
325
|
+
'd3',
|
|
326
|
+
'd3en',
|
|
327
|
+
'dl1',
|
|
328
|
+
'dl2q',
|
|
329
|
+
'e2',
|
|
330
|
+
'f1',
|
|
331
|
+
'f2',
|
|
332
|
+
'g1',
|
|
333
|
+
'g2',
|
|
334
|
+
'g4ad',
|
|
335
|
+
'g4dn',
|
|
336
|
+
'g5',
|
|
337
|
+
'g5g',
|
|
338
|
+
'g6',
|
|
339
|
+
'g6e',
|
|
340
|
+
'gr6',
|
|
341
|
+
'h1',
|
|
342
|
+
'h3',
|
|
343
|
+
'hpc6a',
|
|
344
|
+
'hpc6id',
|
|
345
|
+
'hpc7a',
|
|
346
|
+
'hpc7g',
|
|
347
|
+
'i2',
|
|
348
|
+
'i3',
|
|
349
|
+
'i3en',
|
|
350
|
+
'i4g',
|
|
351
|
+
'i4i',
|
|
352
|
+
'i7i',
|
|
353
|
+
'i7ie',
|
|
354
|
+
'i8g',
|
|
355
|
+
'im4gn',
|
|
356
|
+
'inf1',
|
|
357
|
+
'inf2',
|
|
358
|
+
'is4gen',
|
|
359
|
+
'm1',
|
|
360
|
+
'm2',
|
|
361
|
+
'm3',
|
|
362
|
+
'm4',
|
|
363
|
+
'm5',
|
|
364
|
+
'm5a',
|
|
365
|
+
'm5ad',
|
|
366
|
+
'm5d',
|
|
367
|
+
'm5dn',
|
|
368
|
+
'm5n',
|
|
369
|
+
'm5zn',
|
|
370
|
+
'm6a',
|
|
371
|
+
'm6g',
|
|
372
|
+
'm6gd',
|
|
373
|
+
'm6i',
|
|
374
|
+
'm6id',
|
|
375
|
+
'm6idn',
|
|
376
|
+
'm6in',
|
|
377
|
+
'm7a',
|
|
378
|
+
'm7g',
|
|
379
|
+
'm7gd',
|
|
380
|
+
'm7i',
|
|
381
|
+
'm7i-flex',
|
|
382
|
+
'm8g',
|
|
383
|
+
'm8gd',
|
|
384
|
+
'n1',
|
|
385
|
+
'n2',
|
|
386
|
+
'n2d',
|
|
387
|
+
'n4',
|
|
388
|
+
'p3',
|
|
389
|
+
'p3dn',
|
|
390
|
+
'p4d',
|
|
391
|
+
'p4de',
|
|
392
|
+
'p5',
|
|
393
|
+
'p5e',
|
|
394
|
+
'p5en',
|
|
395
|
+
'p6-b200',
|
|
396
|
+
'r3',
|
|
397
|
+
'r4',
|
|
398
|
+
'r5',
|
|
399
|
+
'r5a',
|
|
400
|
+
'r5ad',
|
|
401
|
+
'r5b',
|
|
402
|
+
'r5d',
|
|
403
|
+
'r5dn',
|
|
404
|
+
'r5n',
|
|
405
|
+
'r6a',
|
|
406
|
+
'r6g',
|
|
407
|
+
'r6gd',
|
|
408
|
+
'r6i',
|
|
409
|
+
'r6id',
|
|
410
|
+
'r6idn',
|
|
411
|
+
'r6in',
|
|
412
|
+
'r7a',
|
|
413
|
+
'r7g',
|
|
414
|
+
'r7gd',
|
|
415
|
+
'r7i',
|
|
416
|
+
'r7iz',
|
|
417
|
+
'r8g',
|
|
418
|
+
'r8gd',
|
|
419
|
+
't2',
|
|
420
|
+
't2a',
|
|
421
|
+
't2d',
|
|
422
|
+
't3',
|
|
423
|
+
't3a',
|
|
424
|
+
't4g',
|
|
425
|
+
'trn1',
|
|
426
|
+
'trn1n',
|
|
427
|
+
'u-3tb1',
|
|
428
|
+
'u-6tb1',
|
|
429
|
+
'u7i-12tb',
|
|
430
|
+
'u7i-6tb',
|
|
431
|
+
'u7i-8tb',
|
|
432
|
+
'u7in-16tb',
|
|
433
|
+
'u7in-24tb',
|
|
434
|
+
'u7in-32tb',
|
|
435
|
+
'vt1',
|
|
436
|
+
'x1',
|
|
437
|
+
'x1e',
|
|
438
|
+
'x2gd',
|
|
439
|
+
'x2idn',
|
|
440
|
+
'x2iedn',
|
|
441
|
+
'x2iezn',
|
|
442
|
+
'x4',
|
|
443
|
+
'x8g',
|
|
444
|
+
'z1d',
|
|
445
|
+
'z3'
|
|
446
|
+
])).optional(),
|
|
447
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
448
|
+
'africa-south1',
|
|
449
|
+
'ap-northeast-1',
|
|
450
|
+
'ap-northeast-2',
|
|
451
|
+
'ap-northeast-3',
|
|
452
|
+
'ap-south-1',
|
|
453
|
+
'ap-southeast-1',
|
|
454
|
+
'ap-southeast-2',
|
|
455
|
+
'ash',
|
|
456
|
+
'asia-east1',
|
|
457
|
+
'asia-east2',
|
|
458
|
+
'asia-northeast1',
|
|
459
|
+
'asia-northeast2',
|
|
460
|
+
'asia-northeast3',
|
|
461
|
+
'asia-south1',
|
|
462
|
+
'asia-south2',
|
|
463
|
+
'asia-southeast1',
|
|
464
|
+
'asia-southeast2',
|
|
465
|
+
'australia-southeast1',
|
|
466
|
+
'australia-southeast2',
|
|
467
|
+
'ca-central-1',
|
|
468
|
+
'eu-central-1',
|
|
469
|
+
'eu-central-2',
|
|
470
|
+
'eu-north-1',
|
|
471
|
+
'eu-west-1',
|
|
472
|
+
'eu-west-2',
|
|
473
|
+
'eu-west-3',
|
|
474
|
+
'europe-central2',
|
|
475
|
+
'europe-north1',
|
|
476
|
+
'europe-southwest1',
|
|
477
|
+
'europe-west1',
|
|
478
|
+
'europe-west10',
|
|
479
|
+
'europe-west12',
|
|
480
|
+
'europe-west2',
|
|
481
|
+
'europe-west3',
|
|
482
|
+
'europe-west4',
|
|
483
|
+
'europe-west6',
|
|
484
|
+
'europe-west8',
|
|
485
|
+
'europe-west9',
|
|
486
|
+
'fsn1',
|
|
487
|
+
'hel1',
|
|
488
|
+
'hil',
|
|
489
|
+
'me-central1',
|
|
490
|
+
'me-central2',
|
|
491
|
+
'me-west1',
|
|
492
|
+
'nbg1',
|
|
493
|
+
'northamerica-northeast1',
|
|
494
|
+
'northamerica-northeast2',
|
|
495
|
+
'sa-east-1',
|
|
496
|
+
'sin',
|
|
497
|
+
'southamerica-east1',
|
|
498
|
+
'southamerica-west1',
|
|
499
|
+
'us-central1',
|
|
500
|
+
'us-east-1',
|
|
501
|
+
'us-east-2',
|
|
502
|
+
'us-east1',
|
|
503
|
+
'us-east4',
|
|
504
|
+
'us-east5',
|
|
505
|
+
'us-south1',
|
|
506
|
+
'us-west-1',
|
|
507
|
+
'us-west-2',
|
|
508
|
+
'us-west1',
|
|
509
|
+
'us-west2',
|
|
510
|
+
'us-west3',
|
|
511
|
+
'us-west4'
|
|
512
|
+
])).optional()
|
|
513
|
+
}).optional(),
|
|
514
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
285
515
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
286
516
|
});
|
|
287
517
|
export const zFleet = z.object({
|
|
288
518
|
limits: z.object({
|
|
289
|
-
cpu: z.
|
|
519
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
290
520
|
}).optional(),
|
|
291
521
|
gcp: z.object({
|
|
292
|
-
enabled: z.boolean()
|
|
293
|
-
project: z.string()
|
|
522
|
+
enabled: z.boolean(),
|
|
523
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
294
524
|
}).optional(),
|
|
295
525
|
hetzner: z.object({
|
|
296
|
-
enabled: z.boolean()
|
|
297
|
-
apiKey: z.string()
|
|
526
|
+
enabled: z.boolean(),
|
|
527
|
+
apiKey: z.string().regex(/^\*{64}$/).optional()
|
|
298
528
|
}).optional(),
|
|
299
529
|
aws: z.object({
|
|
300
|
-
enabled: z.boolean()
|
|
301
|
-
controllerRoleArn: z.string()
|
|
530
|
+
enabled: z.boolean(),
|
|
531
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
532
|
+
}).optional(),
|
|
533
|
+
constraints: z.object({
|
|
534
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
535
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
536
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
537
|
+
'a1',
|
|
538
|
+
'a2',
|
|
539
|
+
'a3',
|
|
540
|
+
'a4',
|
|
541
|
+
'c1',
|
|
542
|
+
'c2',
|
|
543
|
+
'c2d',
|
|
544
|
+
'c3',
|
|
545
|
+
'c3d',
|
|
546
|
+
'c4',
|
|
547
|
+
'c4a',
|
|
548
|
+
'c4d',
|
|
549
|
+
'c5',
|
|
550
|
+
'c5a',
|
|
551
|
+
'c5ad',
|
|
552
|
+
'c5d',
|
|
553
|
+
'c5n',
|
|
554
|
+
'c6a',
|
|
555
|
+
'c6g',
|
|
556
|
+
'c6gd',
|
|
557
|
+
'c6gn',
|
|
558
|
+
'c6i',
|
|
559
|
+
'c6id',
|
|
560
|
+
'c6in',
|
|
561
|
+
'c7a',
|
|
562
|
+
'c7g',
|
|
563
|
+
'c7gd',
|
|
564
|
+
'c7gn',
|
|
565
|
+
'c7i',
|
|
566
|
+
'c7i-flex',
|
|
567
|
+
'c8g',
|
|
568
|
+
'c8gd',
|
|
569
|
+
'cax',
|
|
570
|
+
'ccx',
|
|
571
|
+
'cpx',
|
|
572
|
+
'cx',
|
|
573
|
+
'd2',
|
|
574
|
+
'd3',
|
|
575
|
+
'd3en',
|
|
576
|
+
'dl1',
|
|
577
|
+
'dl2q',
|
|
578
|
+
'e2',
|
|
579
|
+
'f1',
|
|
580
|
+
'f2',
|
|
581
|
+
'g1',
|
|
582
|
+
'g2',
|
|
583
|
+
'g4ad',
|
|
584
|
+
'g4dn',
|
|
585
|
+
'g5',
|
|
586
|
+
'g5g',
|
|
587
|
+
'g6',
|
|
588
|
+
'g6e',
|
|
589
|
+
'gr6',
|
|
590
|
+
'h1',
|
|
591
|
+
'h3',
|
|
592
|
+
'hpc6a',
|
|
593
|
+
'hpc6id',
|
|
594
|
+
'hpc7a',
|
|
595
|
+
'hpc7g',
|
|
596
|
+
'i2',
|
|
597
|
+
'i3',
|
|
598
|
+
'i3en',
|
|
599
|
+
'i4g',
|
|
600
|
+
'i4i',
|
|
601
|
+
'i7i',
|
|
602
|
+
'i7ie',
|
|
603
|
+
'i8g',
|
|
604
|
+
'im4gn',
|
|
605
|
+
'inf1',
|
|
606
|
+
'inf2',
|
|
607
|
+
'is4gen',
|
|
608
|
+
'm1',
|
|
609
|
+
'm2',
|
|
610
|
+
'm3',
|
|
611
|
+
'm4',
|
|
612
|
+
'm5',
|
|
613
|
+
'm5a',
|
|
614
|
+
'm5ad',
|
|
615
|
+
'm5d',
|
|
616
|
+
'm5dn',
|
|
617
|
+
'm5n',
|
|
618
|
+
'm5zn',
|
|
619
|
+
'm6a',
|
|
620
|
+
'm6g',
|
|
621
|
+
'm6gd',
|
|
622
|
+
'm6i',
|
|
623
|
+
'm6id',
|
|
624
|
+
'm6idn',
|
|
625
|
+
'm6in',
|
|
626
|
+
'm7a',
|
|
627
|
+
'm7g',
|
|
628
|
+
'm7gd',
|
|
629
|
+
'm7i',
|
|
630
|
+
'm7i-flex',
|
|
631
|
+
'm8g',
|
|
632
|
+
'm8gd',
|
|
633
|
+
'n1',
|
|
634
|
+
'n2',
|
|
635
|
+
'n2d',
|
|
636
|
+
'n4',
|
|
637
|
+
'p3',
|
|
638
|
+
'p3dn',
|
|
639
|
+
'p4d',
|
|
640
|
+
'p4de',
|
|
641
|
+
'p5',
|
|
642
|
+
'p5e',
|
|
643
|
+
'p5en',
|
|
644
|
+
'p6-b200',
|
|
645
|
+
'r3',
|
|
646
|
+
'r4',
|
|
647
|
+
'r5',
|
|
648
|
+
'r5a',
|
|
649
|
+
'r5ad',
|
|
650
|
+
'r5b',
|
|
651
|
+
'r5d',
|
|
652
|
+
'r5dn',
|
|
653
|
+
'r5n',
|
|
654
|
+
'r6a',
|
|
655
|
+
'r6g',
|
|
656
|
+
'r6gd',
|
|
657
|
+
'r6i',
|
|
658
|
+
'r6id',
|
|
659
|
+
'r6idn',
|
|
660
|
+
'r6in',
|
|
661
|
+
'r7a',
|
|
662
|
+
'r7g',
|
|
663
|
+
'r7gd',
|
|
664
|
+
'r7i',
|
|
665
|
+
'r7iz',
|
|
666
|
+
'r8g',
|
|
667
|
+
'r8gd',
|
|
668
|
+
't2',
|
|
669
|
+
't2a',
|
|
670
|
+
't2d',
|
|
671
|
+
't3',
|
|
672
|
+
't3a',
|
|
673
|
+
't4g',
|
|
674
|
+
'trn1',
|
|
675
|
+
'trn1n',
|
|
676
|
+
'u-3tb1',
|
|
677
|
+
'u-6tb1',
|
|
678
|
+
'u7i-12tb',
|
|
679
|
+
'u7i-6tb',
|
|
680
|
+
'u7i-8tb',
|
|
681
|
+
'u7in-16tb',
|
|
682
|
+
'u7in-24tb',
|
|
683
|
+
'u7in-32tb',
|
|
684
|
+
'vt1',
|
|
685
|
+
'x1',
|
|
686
|
+
'x1e',
|
|
687
|
+
'x2gd',
|
|
688
|
+
'x2idn',
|
|
689
|
+
'x2iedn',
|
|
690
|
+
'x2iezn',
|
|
691
|
+
'x4',
|
|
692
|
+
'x8g',
|
|
693
|
+
'z1d',
|
|
694
|
+
'z3'
|
|
695
|
+
])).optional(),
|
|
696
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
697
|
+
'africa-south1',
|
|
698
|
+
'ap-northeast-1',
|
|
699
|
+
'ap-northeast-2',
|
|
700
|
+
'ap-northeast-3',
|
|
701
|
+
'ap-south-1',
|
|
702
|
+
'ap-southeast-1',
|
|
703
|
+
'ap-southeast-2',
|
|
704
|
+
'ash',
|
|
705
|
+
'asia-east1',
|
|
706
|
+
'asia-east2',
|
|
707
|
+
'asia-northeast1',
|
|
708
|
+
'asia-northeast2',
|
|
709
|
+
'asia-northeast3',
|
|
710
|
+
'asia-south1',
|
|
711
|
+
'asia-south2',
|
|
712
|
+
'asia-southeast1',
|
|
713
|
+
'asia-southeast2',
|
|
714
|
+
'australia-southeast1',
|
|
715
|
+
'australia-southeast2',
|
|
716
|
+
'ca-central-1',
|
|
717
|
+
'eu-central-1',
|
|
718
|
+
'eu-central-2',
|
|
719
|
+
'eu-north-1',
|
|
720
|
+
'eu-west-1',
|
|
721
|
+
'eu-west-2',
|
|
722
|
+
'eu-west-3',
|
|
723
|
+
'europe-central2',
|
|
724
|
+
'europe-north1',
|
|
725
|
+
'europe-southwest1',
|
|
726
|
+
'europe-west1',
|
|
727
|
+
'europe-west10',
|
|
728
|
+
'europe-west12',
|
|
729
|
+
'europe-west2',
|
|
730
|
+
'europe-west3',
|
|
731
|
+
'europe-west4',
|
|
732
|
+
'europe-west6',
|
|
733
|
+
'europe-west8',
|
|
734
|
+
'europe-west9',
|
|
735
|
+
'fsn1',
|
|
736
|
+
'hel1',
|
|
737
|
+
'hil',
|
|
738
|
+
'me-central1',
|
|
739
|
+
'me-central2',
|
|
740
|
+
'me-west1',
|
|
741
|
+
'nbg1',
|
|
742
|
+
'northamerica-northeast1',
|
|
743
|
+
'northamerica-northeast2',
|
|
744
|
+
'sa-east-1',
|
|
745
|
+
'sin',
|
|
746
|
+
'southamerica-east1',
|
|
747
|
+
'southamerica-west1',
|
|
748
|
+
'us-central1',
|
|
749
|
+
'us-east-1',
|
|
750
|
+
'us-east-2',
|
|
751
|
+
'us-east1',
|
|
752
|
+
'us-east4',
|
|
753
|
+
'us-east5',
|
|
754
|
+
'us-south1',
|
|
755
|
+
'us-west-1',
|
|
756
|
+
'us-west-2',
|
|
757
|
+
'us-west1',
|
|
758
|
+
'us-west2',
|
|
759
|
+
'us-west3',
|
|
760
|
+
'us-west4'
|
|
761
|
+
])).optional()
|
|
302
762
|
}).optional(),
|
|
763
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
303
764
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
304
765
|
});
|
|
305
766
|
export const zFleetUpdateInput = z.object({
|
|
306
767
|
limits: z.object({
|
|
307
|
-
cpu: z.
|
|
768
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
308
769
|
}).optional(),
|
|
309
770
|
gcp: z.object({
|
|
310
|
-
enabled: z.boolean()
|
|
311
|
-
project: z.string()
|
|
771
|
+
enabled: z.boolean(),
|
|
772
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
312
773
|
}).optional(),
|
|
313
774
|
hetzner: z.object({
|
|
314
|
-
enabled: z.boolean()
|
|
315
|
-
apiKey: z.string()
|
|
775
|
+
enabled: z.boolean(),
|
|
776
|
+
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
|
|
316
777
|
}).optional(),
|
|
317
778
|
aws: z.object({
|
|
318
|
-
enabled: z.boolean()
|
|
319
|
-
controllerRoleArn: z.string()
|
|
320
|
-
}).optional()
|
|
779
|
+
enabled: z.boolean(),
|
|
780
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
781
|
+
}).optional(),
|
|
782
|
+
constraints: z.object({
|
|
783
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
|
|
784
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
|
|
785
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
786
|
+
'a1',
|
|
787
|
+
'a2',
|
|
788
|
+
'a3',
|
|
789
|
+
'a4',
|
|
790
|
+
'c1',
|
|
791
|
+
'c2',
|
|
792
|
+
'c2d',
|
|
793
|
+
'c3',
|
|
794
|
+
'c3d',
|
|
795
|
+
'c4',
|
|
796
|
+
'c4a',
|
|
797
|
+
'c4d',
|
|
798
|
+
'c5',
|
|
799
|
+
'c5a',
|
|
800
|
+
'c5ad',
|
|
801
|
+
'c5d',
|
|
802
|
+
'c5n',
|
|
803
|
+
'c6a',
|
|
804
|
+
'c6g',
|
|
805
|
+
'c6gd',
|
|
806
|
+
'c6gn',
|
|
807
|
+
'c6i',
|
|
808
|
+
'c6id',
|
|
809
|
+
'c6in',
|
|
810
|
+
'c7a',
|
|
811
|
+
'c7g',
|
|
812
|
+
'c7gd',
|
|
813
|
+
'c7gn',
|
|
814
|
+
'c7i',
|
|
815
|
+
'c7i-flex',
|
|
816
|
+
'c8g',
|
|
817
|
+
'c8gd',
|
|
818
|
+
'cax',
|
|
819
|
+
'ccx',
|
|
820
|
+
'cpx',
|
|
821
|
+
'cx',
|
|
822
|
+
'd2',
|
|
823
|
+
'd3',
|
|
824
|
+
'd3en',
|
|
825
|
+
'dl1',
|
|
826
|
+
'dl2q',
|
|
827
|
+
'e2',
|
|
828
|
+
'f1',
|
|
829
|
+
'f2',
|
|
830
|
+
'g1',
|
|
831
|
+
'g2',
|
|
832
|
+
'g4ad',
|
|
833
|
+
'g4dn',
|
|
834
|
+
'g5',
|
|
835
|
+
'g5g',
|
|
836
|
+
'g6',
|
|
837
|
+
'g6e',
|
|
838
|
+
'gr6',
|
|
839
|
+
'h1',
|
|
840
|
+
'h3',
|
|
841
|
+
'hpc6a',
|
|
842
|
+
'hpc6id',
|
|
843
|
+
'hpc7a',
|
|
844
|
+
'hpc7g',
|
|
845
|
+
'i2',
|
|
846
|
+
'i3',
|
|
847
|
+
'i3en',
|
|
848
|
+
'i4g',
|
|
849
|
+
'i4i',
|
|
850
|
+
'i7i',
|
|
851
|
+
'i7ie',
|
|
852
|
+
'i8g',
|
|
853
|
+
'im4gn',
|
|
854
|
+
'inf1',
|
|
855
|
+
'inf2',
|
|
856
|
+
'is4gen',
|
|
857
|
+
'm1',
|
|
858
|
+
'm2',
|
|
859
|
+
'm3',
|
|
860
|
+
'm4',
|
|
861
|
+
'm5',
|
|
862
|
+
'm5a',
|
|
863
|
+
'm5ad',
|
|
864
|
+
'm5d',
|
|
865
|
+
'm5dn',
|
|
866
|
+
'm5n',
|
|
867
|
+
'm5zn',
|
|
868
|
+
'm6a',
|
|
869
|
+
'm6g',
|
|
870
|
+
'm6gd',
|
|
871
|
+
'm6i',
|
|
872
|
+
'm6id',
|
|
873
|
+
'm6idn',
|
|
874
|
+
'm6in',
|
|
875
|
+
'm7a',
|
|
876
|
+
'm7g',
|
|
877
|
+
'm7gd',
|
|
878
|
+
'm7i',
|
|
879
|
+
'm7i-flex',
|
|
880
|
+
'm8g',
|
|
881
|
+
'm8gd',
|
|
882
|
+
'n1',
|
|
883
|
+
'n2',
|
|
884
|
+
'n2d',
|
|
885
|
+
'n4',
|
|
886
|
+
'p3',
|
|
887
|
+
'p3dn',
|
|
888
|
+
'p4d',
|
|
889
|
+
'p4de',
|
|
890
|
+
'p5',
|
|
891
|
+
'p5e',
|
|
892
|
+
'p5en',
|
|
893
|
+
'p6-b200',
|
|
894
|
+
'r3',
|
|
895
|
+
'r4',
|
|
896
|
+
'r5',
|
|
897
|
+
'r5a',
|
|
898
|
+
'r5ad',
|
|
899
|
+
'r5b',
|
|
900
|
+
'r5d',
|
|
901
|
+
'r5dn',
|
|
902
|
+
'r5n',
|
|
903
|
+
'r6a',
|
|
904
|
+
'r6g',
|
|
905
|
+
'r6gd',
|
|
906
|
+
'r6i',
|
|
907
|
+
'r6id',
|
|
908
|
+
'r6idn',
|
|
909
|
+
'r6in',
|
|
910
|
+
'r7a',
|
|
911
|
+
'r7g',
|
|
912
|
+
'r7gd',
|
|
913
|
+
'r7i',
|
|
914
|
+
'r7iz',
|
|
915
|
+
'r8g',
|
|
916
|
+
'r8gd',
|
|
917
|
+
't2',
|
|
918
|
+
't2a',
|
|
919
|
+
't2d',
|
|
920
|
+
't3',
|
|
921
|
+
't3a',
|
|
922
|
+
't4g',
|
|
923
|
+
'trn1',
|
|
924
|
+
'trn1n',
|
|
925
|
+
'u-3tb1',
|
|
926
|
+
'u-6tb1',
|
|
927
|
+
'u7i-12tb',
|
|
928
|
+
'u7i-6tb',
|
|
929
|
+
'u7i-8tb',
|
|
930
|
+
'u7in-16tb',
|
|
931
|
+
'u7in-24tb',
|
|
932
|
+
'u7in-32tb',
|
|
933
|
+
'vt1',
|
|
934
|
+
'x1',
|
|
935
|
+
'x1e',
|
|
936
|
+
'x2gd',
|
|
937
|
+
'x2idn',
|
|
938
|
+
'x2iedn',
|
|
939
|
+
'x2iezn',
|
|
940
|
+
'x4',
|
|
941
|
+
'x8g',
|
|
942
|
+
'z1d',
|
|
943
|
+
'z3'
|
|
944
|
+
])).optional(),
|
|
945
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
946
|
+
'africa-south1',
|
|
947
|
+
'ap-northeast-1',
|
|
948
|
+
'ap-northeast-2',
|
|
949
|
+
'ap-northeast-3',
|
|
950
|
+
'ap-south-1',
|
|
951
|
+
'ap-southeast-1',
|
|
952
|
+
'ap-southeast-2',
|
|
953
|
+
'ash',
|
|
954
|
+
'asia-east1',
|
|
955
|
+
'asia-east2',
|
|
956
|
+
'asia-northeast1',
|
|
957
|
+
'asia-northeast2',
|
|
958
|
+
'asia-northeast3',
|
|
959
|
+
'asia-south1',
|
|
960
|
+
'asia-south2',
|
|
961
|
+
'asia-southeast1',
|
|
962
|
+
'asia-southeast2',
|
|
963
|
+
'australia-southeast1',
|
|
964
|
+
'australia-southeast2',
|
|
965
|
+
'ca-central-1',
|
|
966
|
+
'eu-central-1',
|
|
967
|
+
'eu-central-2',
|
|
968
|
+
'eu-north-1',
|
|
969
|
+
'eu-west-1',
|
|
970
|
+
'eu-west-2',
|
|
971
|
+
'eu-west-3',
|
|
972
|
+
'europe-central2',
|
|
973
|
+
'europe-north1',
|
|
974
|
+
'europe-southwest1',
|
|
975
|
+
'europe-west1',
|
|
976
|
+
'europe-west10',
|
|
977
|
+
'europe-west12',
|
|
978
|
+
'europe-west2',
|
|
979
|
+
'europe-west3',
|
|
980
|
+
'europe-west4',
|
|
981
|
+
'europe-west6',
|
|
982
|
+
'europe-west8',
|
|
983
|
+
'europe-west9',
|
|
984
|
+
'fsn1',
|
|
985
|
+
'hel1',
|
|
986
|
+
'hil',
|
|
987
|
+
'me-central1',
|
|
988
|
+
'me-central2',
|
|
989
|
+
'me-west1',
|
|
990
|
+
'nbg1',
|
|
991
|
+
'northamerica-northeast1',
|
|
992
|
+
'northamerica-northeast2',
|
|
993
|
+
'sa-east-1',
|
|
994
|
+
'sin',
|
|
995
|
+
'southamerica-east1',
|
|
996
|
+
'southamerica-west1',
|
|
997
|
+
'us-central1',
|
|
998
|
+
'us-east-1',
|
|
999
|
+
'us-east-2',
|
|
1000
|
+
'us-east1',
|
|
1001
|
+
'us-east4',
|
|
1002
|
+
'us-east5',
|
|
1003
|
+
'us-south1',
|
|
1004
|
+
'us-west-1',
|
|
1005
|
+
'us-west-2',
|
|
1006
|
+
'us-west1',
|
|
1007
|
+
'us-west2',
|
|
1008
|
+
'us-west3',
|
|
1009
|
+
'us-west4'
|
|
1010
|
+
])).optional()
|
|
1011
|
+
}).optional(),
|
|
1012
|
+
scalingProfile: z.enum(['aggressive', 'conservative'])
|
|
321
1013
|
});
|
|
322
1014
|
export const zInvite = z.object({
|
|
323
1015
|
id: z.string().optional(),
|
|
324
|
-
organization_id: z.
|
|
325
|
-
date_created: z.
|
|
326
|
-
email: z.
|
|
1016
|
+
organization_id: z.uuid().optional(),
|
|
1017
|
+
date_created: z.iso.datetime(),
|
|
1018
|
+
email: z.email().optional(),
|
|
327
1019
|
code: z.string().optional()
|
|
328
1020
|
});
|
|
329
1021
|
export const zInvoice = z.object({
|
|
330
|
-
id: z.string().
|
|
331
|
-
|
|
332
|
-
status: z.
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
'AOA',
|
|
345
|
-
'ARS',
|
|
346
|
-
'AUD',
|
|
347
|
-
'AWG',
|
|
348
|
-
'AZN',
|
|
349
|
-
'BAM',
|
|
350
|
-
'BBD',
|
|
351
|
-
'BDT',
|
|
352
|
-
'BGN',
|
|
353
|
-
'BHD',
|
|
354
|
-
'BIF',
|
|
355
|
-
'BMD',
|
|
356
|
-
'BND',
|
|
357
|
-
'BOB',
|
|
358
|
-
'BRL',
|
|
359
|
-
'BSD',
|
|
360
|
-
'BTN',
|
|
361
|
-
'BWP',
|
|
362
|
-
'BYR',
|
|
363
|
-
'BZD',
|
|
364
|
-
'CAD',
|
|
365
|
-
'CDF',
|
|
366
|
-
'CHF',
|
|
367
|
-
'CLP',
|
|
368
|
-
'CNY',
|
|
369
|
-
'COP',
|
|
370
|
-
'CRC',
|
|
371
|
-
'CUC',
|
|
372
|
-
'CUP',
|
|
373
|
-
'CVE',
|
|
374
|
-
'CZK',
|
|
375
|
-
'DJF',
|
|
376
|
-
'DKK',
|
|
377
|
-
'DOP',
|
|
378
|
-
'DZD',
|
|
379
|
-
'EGP',
|
|
380
|
-
'ERN',
|
|
381
|
-
'ETB',
|
|
382
|
-
'EUR',
|
|
383
|
-
'FJD',
|
|
384
|
-
'FKP',
|
|
385
|
-
'GBP',
|
|
386
|
-
'GEL',
|
|
387
|
-
'GGP',
|
|
388
|
-
'GHS',
|
|
389
|
-
'GIP',
|
|
390
|
-
'GMD',
|
|
391
|
-
'GNF',
|
|
392
|
-
'GTQ',
|
|
393
|
-
'GYD',
|
|
394
|
-
'HKD',
|
|
395
|
-
'HNL',
|
|
396
|
-
'HRK',
|
|
397
|
-
'HTG',
|
|
398
|
-
'HUF',
|
|
399
|
-
'IDR',
|
|
400
|
-
'ILS',
|
|
401
|
-
'IMP',
|
|
402
|
-
'INR',
|
|
403
|
-
'IQD',
|
|
404
|
-
'IRR',
|
|
405
|
-
'ISK',
|
|
406
|
-
'JEP',
|
|
407
|
-
'JMD',
|
|
408
|
-
'JOD',
|
|
409
|
-
'JPY',
|
|
410
|
-
'KES',
|
|
411
|
-
'KGS',
|
|
412
|
-
'KHR',
|
|
413
|
-
'KMF',
|
|
414
|
-
'KPW',
|
|
415
|
-
'KRW',
|
|
416
|
-
'KWD',
|
|
417
|
-
'KYD',
|
|
418
|
-
'KZT',
|
|
419
|
-
'LAK',
|
|
420
|
-
'LBP',
|
|
421
|
-
'LKR',
|
|
422
|
-
'LRD',
|
|
423
|
-
'LSL',
|
|
424
|
-
'LTL',
|
|
425
|
-
'LVL',
|
|
426
|
-
'LYD',
|
|
427
|
-
'MAD',
|
|
428
|
-
'MDL',
|
|
429
|
-
'MGA',
|
|
430
|
-
'MKD',
|
|
431
|
-
'MMK',
|
|
432
|
-
'MNT',
|
|
433
|
-
'MOP',
|
|
434
|
-
'MRO',
|
|
435
|
-
'MUR',
|
|
436
|
-
'MVR',
|
|
437
|
-
'MWK',
|
|
438
|
-
'MXN',
|
|
439
|
-
'MYR',
|
|
440
|
-
'MZN',
|
|
441
|
-
'NAD',
|
|
442
|
-
'NGN',
|
|
443
|
-
'NIO',
|
|
444
|
-
'NOK',
|
|
445
|
-
'NPR',
|
|
446
|
-
'NZD',
|
|
447
|
-
'OMR',
|
|
448
|
-
'PAB',
|
|
449
|
-
'PEN',
|
|
450
|
-
'PGK',
|
|
451
|
-
'PHP',
|
|
452
|
-
'PKR',
|
|
453
|
-
'PLN',
|
|
454
|
-
'PYG',
|
|
455
|
-
'QAR',
|
|
456
|
-
'RON',
|
|
457
|
-
'RSD',
|
|
458
|
-
'RUB',
|
|
459
|
-
'RWF',
|
|
460
|
-
'SAR',
|
|
461
|
-
'SBD',
|
|
462
|
-
'SCR',
|
|
463
|
-
'SDG',
|
|
464
|
-
'SEK',
|
|
465
|
-
'SGD',
|
|
466
|
-
'SHP',
|
|
467
|
-
'SLL',
|
|
468
|
-
'SOS',
|
|
469
|
-
'SPL',
|
|
470
|
-
'SRD',
|
|
471
|
-
'STD',
|
|
472
|
-
'SVC',
|
|
473
|
-
'SYP',
|
|
474
|
-
'SZL',
|
|
475
|
-
'THB',
|
|
476
|
-
'TJS',
|
|
477
|
-
'TMT',
|
|
478
|
-
'TND',
|
|
479
|
-
'TOP',
|
|
480
|
-
'TRY',
|
|
481
|
-
'TTD',
|
|
482
|
-
'TVD',
|
|
483
|
-
'TWD',
|
|
484
|
-
'TZS',
|
|
485
|
-
'UAH',
|
|
486
|
-
'UGX',
|
|
487
|
-
'USD',
|
|
488
|
-
'UYU',
|
|
489
|
-
'UZS',
|
|
490
|
-
'VEF',
|
|
491
|
-
'VND',
|
|
492
|
-
'VUV',
|
|
493
|
-
'WST',
|
|
494
|
-
'XAF',
|
|
495
|
-
'XCD',
|
|
496
|
-
'XDR',
|
|
497
|
-
'XOF',
|
|
498
|
-
'XPF',
|
|
499
|
-
'YER',
|
|
500
|
-
'ZAR',
|
|
501
|
-
'ZMW',
|
|
502
|
-
'ZWD',
|
|
503
|
-
'BTC'
|
|
504
|
-
]).optional(),
|
|
505
|
-
creditAdj: z.number().optional(),
|
|
506
|
-
refundAdj: z.number().optional(),
|
|
507
|
-
invoiceDate: z.string().optional(),
|
|
508
|
-
targetDate: z.string().optional(),
|
|
509
|
-
invoiceNumber: z.string().optional(),
|
|
510
|
-
balance: z.number().optional(),
|
|
511
|
-
bundleKeys: z.string().optional(),
|
|
512
|
-
credits: z.array(z.object({
|
|
513
|
-
id: z.string().uuid().optional(),
|
|
514
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
515
|
-
productName: z.string().optional(),
|
|
516
|
-
planName: z.string().optional(),
|
|
517
|
-
phaseName: z.string().optional(),
|
|
518
|
-
usageName: z.string().optional(),
|
|
519
|
-
prettyProductName: z.string().optional(),
|
|
520
|
-
prettyPlanName: z.string().optional(),
|
|
521
|
-
prettyPhaseName: z.string().optional(),
|
|
522
|
-
prettyUsageName: z.string().optional(),
|
|
523
|
-
itemType: z.enum([
|
|
524
|
-
'EXTERNAL_CHARGE',
|
|
525
|
-
'FIXED',
|
|
526
|
-
'RECURRING',
|
|
527
|
-
'REPAIR_ADJ',
|
|
528
|
-
'CBA_ADJ',
|
|
529
|
-
'CREDIT_ADJ',
|
|
530
|
-
'ITEM_ADJ',
|
|
531
|
-
'USAGE',
|
|
532
|
-
'TAX',
|
|
533
|
-
'PARENT_SUMMARY'
|
|
534
|
-
]).optional(),
|
|
535
|
-
description: z.string().optional(),
|
|
536
|
-
startDate: z.string().optional(),
|
|
537
|
-
endDate: z.string().optional(),
|
|
538
|
-
amount: z.number().optional(),
|
|
539
|
-
rate: z.number().optional(),
|
|
540
|
-
currency: z.enum([
|
|
541
|
-
'AED',
|
|
542
|
-
'AFN',
|
|
543
|
-
'ALL',
|
|
544
|
-
'AMD',
|
|
545
|
-
'ANG',
|
|
546
|
-
'AOA',
|
|
547
|
-
'ARS',
|
|
548
|
-
'AUD',
|
|
549
|
-
'AWG',
|
|
550
|
-
'AZN',
|
|
551
|
-
'BAM',
|
|
552
|
-
'BBD',
|
|
553
|
-
'BDT',
|
|
554
|
-
'BGN',
|
|
555
|
-
'BHD',
|
|
556
|
-
'BIF',
|
|
557
|
-
'BMD',
|
|
558
|
-
'BND',
|
|
559
|
-
'BOB',
|
|
560
|
-
'BRL',
|
|
561
|
-
'BSD',
|
|
562
|
-
'BTN',
|
|
563
|
-
'BWP',
|
|
564
|
-
'BYR',
|
|
565
|
-
'BZD',
|
|
566
|
-
'CAD',
|
|
567
|
-
'CDF',
|
|
568
|
-
'CHF',
|
|
569
|
-
'CLP',
|
|
570
|
-
'CNY',
|
|
571
|
-
'COP',
|
|
572
|
-
'CRC',
|
|
573
|
-
'CUC',
|
|
574
|
-
'CUP',
|
|
575
|
-
'CVE',
|
|
576
|
-
'CZK',
|
|
577
|
-
'DJF',
|
|
578
|
-
'DKK',
|
|
579
|
-
'DOP',
|
|
580
|
-
'DZD',
|
|
581
|
-
'EGP',
|
|
582
|
-
'ERN',
|
|
583
|
-
'ETB',
|
|
584
|
-
'EUR',
|
|
585
|
-
'FJD',
|
|
586
|
-
'FKP',
|
|
587
|
-
'GBP',
|
|
588
|
-
'GEL',
|
|
589
|
-
'GGP',
|
|
590
|
-
'GHS',
|
|
591
|
-
'GIP',
|
|
592
|
-
'GMD',
|
|
593
|
-
'GNF',
|
|
594
|
-
'GTQ',
|
|
595
|
-
'GYD',
|
|
596
|
-
'HKD',
|
|
597
|
-
'HNL',
|
|
598
|
-
'HRK',
|
|
599
|
-
'HTG',
|
|
600
|
-
'HUF',
|
|
601
|
-
'IDR',
|
|
602
|
-
'ILS',
|
|
603
|
-
'IMP',
|
|
604
|
-
'INR',
|
|
605
|
-
'IQD',
|
|
606
|
-
'IRR',
|
|
607
|
-
'ISK',
|
|
608
|
-
'JEP',
|
|
609
|
-
'JMD',
|
|
610
|
-
'JOD',
|
|
611
|
-
'JPY',
|
|
612
|
-
'KES',
|
|
613
|
-
'KGS',
|
|
614
|
-
'KHR',
|
|
615
|
-
'KMF',
|
|
616
|
-
'KPW',
|
|
617
|
-
'KRW',
|
|
618
|
-
'KWD',
|
|
619
|
-
'KYD',
|
|
620
|
-
'KZT',
|
|
621
|
-
'LAK',
|
|
622
|
-
'LBP',
|
|
623
|
-
'LKR',
|
|
624
|
-
'LRD',
|
|
625
|
-
'LSL',
|
|
626
|
-
'LTL',
|
|
627
|
-
'LVL',
|
|
628
|
-
'LYD',
|
|
629
|
-
'MAD',
|
|
630
|
-
'MDL',
|
|
631
|
-
'MGA',
|
|
632
|
-
'MKD',
|
|
633
|
-
'MMK',
|
|
634
|
-
'MNT',
|
|
635
|
-
'MOP',
|
|
636
|
-
'MRO',
|
|
637
|
-
'MUR',
|
|
638
|
-
'MVR',
|
|
639
|
-
'MWK',
|
|
640
|
-
'MXN',
|
|
641
|
-
'MYR',
|
|
642
|
-
'MZN',
|
|
643
|
-
'NAD',
|
|
644
|
-
'NGN',
|
|
645
|
-
'NIO',
|
|
646
|
-
'NOK',
|
|
647
|
-
'NPR',
|
|
648
|
-
'NZD',
|
|
649
|
-
'OMR',
|
|
650
|
-
'PAB',
|
|
651
|
-
'PEN',
|
|
652
|
-
'PGK',
|
|
653
|
-
'PHP',
|
|
654
|
-
'PKR',
|
|
655
|
-
'PLN',
|
|
656
|
-
'PYG',
|
|
657
|
-
'QAR',
|
|
658
|
-
'RON',
|
|
659
|
-
'RSD',
|
|
660
|
-
'RUB',
|
|
661
|
-
'RWF',
|
|
662
|
-
'SAR',
|
|
663
|
-
'SBD',
|
|
664
|
-
'SCR',
|
|
665
|
-
'SDG',
|
|
666
|
-
'SEK',
|
|
667
|
-
'SGD',
|
|
668
|
-
'SHP',
|
|
669
|
-
'SLL',
|
|
670
|
-
'SOS',
|
|
671
|
-
'SPL',
|
|
672
|
-
'SRD',
|
|
673
|
-
'STD',
|
|
674
|
-
'SVC',
|
|
675
|
-
'SYP',
|
|
676
|
-
'SZL',
|
|
677
|
-
'THB',
|
|
678
|
-
'TJS',
|
|
679
|
-
'TMT',
|
|
680
|
-
'TND',
|
|
681
|
-
'TOP',
|
|
682
|
-
'TRY',
|
|
683
|
-
'TTD',
|
|
684
|
-
'TVD',
|
|
685
|
-
'TWD',
|
|
686
|
-
'TZS',
|
|
687
|
-
'UAH',
|
|
688
|
-
'UGX',
|
|
689
|
-
'USD',
|
|
690
|
-
'UYU',
|
|
691
|
-
'UZS',
|
|
692
|
-
'VEF',
|
|
693
|
-
'VND',
|
|
694
|
-
'VUV',
|
|
695
|
-
'WST',
|
|
696
|
-
'XAF',
|
|
697
|
-
'XCD',
|
|
698
|
-
'XDR',
|
|
699
|
-
'XOF',
|
|
700
|
-
'XPF',
|
|
701
|
-
'YER',
|
|
702
|
-
'ZAR',
|
|
703
|
-
'ZMW',
|
|
704
|
-
'ZWD',
|
|
705
|
-
'BTC'
|
|
706
|
-
]).optional(),
|
|
707
|
-
quantity: z.number().optional(),
|
|
708
|
-
itemDetails: z.string().optional(),
|
|
709
|
-
catalogEffectiveDate: z.string().optional(),
|
|
710
|
-
childItems: z.array(z.unknown()).optional()
|
|
711
|
-
})).optional(),
|
|
712
|
-
items: z.array(z.object({
|
|
713
|
-
id: z.string().uuid().optional(),
|
|
714
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
715
|
-
productName: z.string().optional(),
|
|
716
|
-
planName: z.string().optional(),
|
|
717
|
-
phaseName: z.string().optional(),
|
|
718
|
-
usageName: z.string().optional(),
|
|
719
|
-
prettyProductName: z.string().optional(),
|
|
720
|
-
prettyPlanName: z.string().optional(),
|
|
721
|
-
prettyPhaseName: z.string().optional(),
|
|
722
|
-
prettyUsageName: z.string().optional(),
|
|
723
|
-
itemType: z.enum([
|
|
724
|
-
'EXTERNAL_CHARGE',
|
|
725
|
-
'FIXED',
|
|
726
|
-
'RECURRING',
|
|
727
|
-
'REPAIR_ADJ',
|
|
728
|
-
'CBA_ADJ',
|
|
729
|
-
'CREDIT_ADJ',
|
|
730
|
-
'ITEM_ADJ',
|
|
731
|
-
'USAGE',
|
|
732
|
-
'TAX',
|
|
733
|
-
'PARENT_SUMMARY'
|
|
734
|
-
]).optional(),
|
|
735
|
-
description: z.string().optional(),
|
|
736
|
-
startDate: z.string().optional(),
|
|
737
|
-
endDate: z.string().optional(),
|
|
738
|
-
amount: z.number().optional(),
|
|
739
|
-
rate: z.number().optional(),
|
|
740
|
-
currency: z.enum([
|
|
741
|
-
'AED',
|
|
742
|
-
'AFN',
|
|
743
|
-
'ALL',
|
|
744
|
-
'AMD',
|
|
745
|
-
'ANG',
|
|
746
|
-
'AOA',
|
|
747
|
-
'ARS',
|
|
748
|
-
'AUD',
|
|
749
|
-
'AWG',
|
|
750
|
-
'AZN',
|
|
751
|
-
'BAM',
|
|
752
|
-
'BBD',
|
|
753
|
-
'BDT',
|
|
754
|
-
'BGN',
|
|
755
|
-
'BHD',
|
|
756
|
-
'BIF',
|
|
757
|
-
'BMD',
|
|
758
|
-
'BND',
|
|
759
|
-
'BOB',
|
|
760
|
-
'BRL',
|
|
761
|
-
'BSD',
|
|
762
|
-
'BTN',
|
|
763
|
-
'BWP',
|
|
764
|
-
'BYR',
|
|
765
|
-
'BZD',
|
|
766
|
-
'CAD',
|
|
767
|
-
'CDF',
|
|
768
|
-
'CHF',
|
|
769
|
-
'CLP',
|
|
770
|
-
'CNY',
|
|
771
|
-
'COP',
|
|
772
|
-
'CRC',
|
|
773
|
-
'CUC',
|
|
774
|
-
'CUP',
|
|
775
|
-
'CVE',
|
|
776
|
-
'CZK',
|
|
777
|
-
'DJF',
|
|
778
|
-
'DKK',
|
|
779
|
-
'DOP',
|
|
780
|
-
'DZD',
|
|
781
|
-
'EGP',
|
|
782
|
-
'ERN',
|
|
783
|
-
'ETB',
|
|
784
|
-
'EUR',
|
|
785
|
-
'FJD',
|
|
786
|
-
'FKP',
|
|
787
|
-
'GBP',
|
|
788
|
-
'GEL',
|
|
789
|
-
'GGP',
|
|
790
|
-
'GHS',
|
|
791
|
-
'GIP',
|
|
792
|
-
'GMD',
|
|
793
|
-
'GNF',
|
|
794
|
-
'GTQ',
|
|
795
|
-
'GYD',
|
|
796
|
-
'HKD',
|
|
797
|
-
'HNL',
|
|
798
|
-
'HRK',
|
|
799
|
-
'HTG',
|
|
800
|
-
'HUF',
|
|
801
|
-
'IDR',
|
|
802
|
-
'ILS',
|
|
803
|
-
'IMP',
|
|
804
|
-
'INR',
|
|
805
|
-
'IQD',
|
|
806
|
-
'IRR',
|
|
807
|
-
'ISK',
|
|
808
|
-
'JEP',
|
|
809
|
-
'JMD',
|
|
810
|
-
'JOD',
|
|
811
|
-
'JPY',
|
|
812
|
-
'KES',
|
|
813
|
-
'KGS',
|
|
814
|
-
'KHR',
|
|
815
|
-
'KMF',
|
|
816
|
-
'KPW',
|
|
817
|
-
'KRW',
|
|
818
|
-
'KWD',
|
|
819
|
-
'KYD',
|
|
820
|
-
'KZT',
|
|
821
|
-
'LAK',
|
|
822
|
-
'LBP',
|
|
823
|
-
'LKR',
|
|
824
|
-
'LRD',
|
|
825
|
-
'LSL',
|
|
826
|
-
'LTL',
|
|
827
|
-
'LVL',
|
|
828
|
-
'LYD',
|
|
829
|
-
'MAD',
|
|
830
|
-
'MDL',
|
|
831
|
-
'MGA',
|
|
832
|
-
'MKD',
|
|
833
|
-
'MMK',
|
|
834
|
-
'MNT',
|
|
835
|
-
'MOP',
|
|
836
|
-
'MRO',
|
|
837
|
-
'MUR',
|
|
838
|
-
'MVR',
|
|
839
|
-
'MWK',
|
|
840
|
-
'MXN',
|
|
841
|
-
'MYR',
|
|
842
|
-
'MZN',
|
|
843
|
-
'NAD',
|
|
844
|
-
'NGN',
|
|
845
|
-
'NIO',
|
|
846
|
-
'NOK',
|
|
847
|
-
'NPR',
|
|
848
|
-
'NZD',
|
|
849
|
-
'OMR',
|
|
850
|
-
'PAB',
|
|
851
|
-
'PEN',
|
|
852
|
-
'PGK',
|
|
853
|
-
'PHP',
|
|
854
|
-
'PKR',
|
|
855
|
-
'PLN',
|
|
856
|
-
'PYG',
|
|
857
|
-
'QAR',
|
|
858
|
-
'RON',
|
|
859
|
-
'RSD',
|
|
860
|
-
'RUB',
|
|
861
|
-
'RWF',
|
|
862
|
-
'SAR',
|
|
863
|
-
'SBD',
|
|
864
|
-
'SCR',
|
|
865
|
-
'SDG',
|
|
866
|
-
'SEK',
|
|
867
|
-
'SGD',
|
|
868
|
-
'SHP',
|
|
869
|
-
'SLL',
|
|
870
|
-
'SOS',
|
|
871
|
-
'SPL',
|
|
872
|
-
'SRD',
|
|
873
|
-
'STD',
|
|
874
|
-
'SVC',
|
|
875
|
-
'SYP',
|
|
876
|
-
'SZL',
|
|
877
|
-
'THB',
|
|
878
|
-
'TJS',
|
|
879
|
-
'TMT',
|
|
880
|
-
'TND',
|
|
881
|
-
'TOP',
|
|
882
|
-
'TRY',
|
|
883
|
-
'TTD',
|
|
884
|
-
'TVD',
|
|
885
|
-
'TWD',
|
|
886
|
-
'TZS',
|
|
887
|
-
'UAH',
|
|
888
|
-
'UGX',
|
|
889
|
-
'USD',
|
|
890
|
-
'UYU',
|
|
891
|
-
'UZS',
|
|
892
|
-
'VEF',
|
|
893
|
-
'VND',
|
|
894
|
-
'VUV',
|
|
895
|
-
'WST',
|
|
896
|
-
'XAF',
|
|
897
|
-
'XCD',
|
|
898
|
-
'XDR',
|
|
899
|
-
'XOF',
|
|
900
|
-
'XPF',
|
|
901
|
-
'YER',
|
|
902
|
-
'ZAR',
|
|
903
|
-
'ZMW',
|
|
904
|
-
'ZWD',
|
|
905
|
-
'BTC'
|
|
906
|
-
]).optional(),
|
|
907
|
-
quantity: z.number().optional(),
|
|
908
|
-
itemDetails: z.string().optional(),
|
|
909
|
-
catalogEffectiveDate: z.string().optional(),
|
|
910
|
-
childItems: z.array(z.unknown()).optional()
|
|
911
|
-
})).optional()
|
|
1022
|
+
id: z.string().optional(),
|
|
1023
|
+
number: z.string().optional(),
|
|
1024
|
+
status: z.string().optional(),
|
|
1025
|
+
total: z.number().optional(),
|
|
1026
|
+
currency: z.string().optional(),
|
|
1027
|
+
created: z.iso.datetime(),
|
|
1028
|
+
period_start: z.iso.datetime(),
|
|
1029
|
+
period_end: z.iso.datetime(),
|
|
1030
|
+
invoice_pdf: z.string().optional()
|
|
1031
|
+
});
|
|
1032
|
+
export const zMarketplaceListingFiles = z.object({
|
|
1033
|
+
chartYaml: z.string().optional(),
|
|
1034
|
+
valuesYaml: z.string().optional(),
|
|
1035
|
+
valuesSchemaJson: z.string().optional()
|
|
912
1036
|
});
|
|
913
1037
|
export const zMarketplaceListing = z.object({
|
|
914
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
915
1038
|
name: z.string(),
|
|
916
|
-
|
|
917
|
-
description: z.string(),
|
|
918
|
-
logoUrl: z.string(),
|
|
919
|
-
longDescription: z.string(),
|
|
920
|
-
categories: z.array(z.string()),
|
|
1039
|
+
versions: z.array(z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
|
|
921
1040
|
version_channels: z.array(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
1041
|
+
latestVersion: z.string(),
|
|
1042
|
+
metadata: z.object({
|
|
1043
|
+
name: z.string(),
|
|
1044
|
+
version: z.string(),
|
|
1045
|
+
description: z.string().optional(),
|
|
1046
|
+
appVersion: z.string().optional(),
|
|
1047
|
+
apiVersion: z.string().optional(),
|
|
1048
|
+
keywords: z.array(z.string()).optional(),
|
|
1049
|
+
home: z.string().optional(),
|
|
1050
|
+
icon: z.string().optional(),
|
|
1051
|
+
sources: z.array(z.string()).optional(),
|
|
1052
|
+
maintainers: z.array(z.object({
|
|
1053
|
+
name: z.string(),
|
|
1054
|
+
email: z.string().optional()
|
|
1055
|
+
})).optional()
|
|
1056
|
+
}).optional()
|
|
927
1057
|
});
|
|
928
1058
|
export const zOrganizationCreateInput = z.object({
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
1059
|
+
type: z.enum(['business', 'personal']),
|
|
1060
|
+
email: z.email(),
|
|
1061
|
+
first_name: z.string().min(1),
|
|
1062
|
+
last_name: z.string().min(1),
|
|
932
1063
|
company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
|
|
933
1064
|
password: z.string().min(8)
|
|
934
1065
|
});
|
|
935
1066
|
export const zOrganization = z.object({
|
|
936
|
-
id: z.
|
|
1067
|
+
id: z.uuid(),
|
|
937
1068
|
name: z.string().min(2).max(120).optional(),
|
|
938
|
-
|
|
1069
|
+
type: z.enum(['business', 'personal']),
|
|
1070
|
+
date_created: z.iso.datetime(),
|
|
939
1071
|
quota: z.object({
|
|
940
|
-
basic_clusters_max: z.
|
|
941
|
-
basic_clusters_available: z.
|
|
942
|
-
pro_clusters_max: z.
|
|
943
|
-
pro_clusters_available: z.
|
|
944
|
-
fleets_max: z.
|
|
1072
|
+
basic_clusters_max: z.int().gte(0),
|
|
1073
|
+
basic_clusters_available: z.int(),
|
|
1074
|
+
pro_clusters_max: z.int().gte(0),
|
|
1075
|
+
pro_clusters_available: z.int(),
|
|
1076
|
+
fleets_max: z.int().gte(0),
|
|
945
1077
|
cluster_tiers: z.array(z.string()).min(0),
|
|
946
1078
|
regions: z.array(z.string()).min(1),
|
|
947
1079
|
versions: z.array(z.object({
|
|
948
1080
|
id: z.string(),
|
|
949
1081
|
label: z.string()
|
|
950
|
-
})).min(1)
|
|
1082
|
+
})).min(1),
|
|
1083
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
951
1084
|
}),
|
|
952
1085
|
status: z.enum([
|
|
953
1086
|
'active',
|
|
954
1087
|
'closed',
|
|
955
1088
|
'suspended'
|
|
1089
|
+
]),
|
|
1090
|
+
verification: z.enum([
|
|
1091
|
+
'none',
|
|
1092
|
+
'submitted',
|
|
1093
|
+
'verified'
|
|
956
1094
|
])
|
|
957
1095
|
});
|
|
958
1096
|
export const zPaymentMethod = z.object({
|
|
959
|
-
id: z.
|
|
1097
|
+
id: z.uuid(),
|
|
960
1098
|
setup: z.boolean(),
|
|
961
|
-
type: z.enum([
|
|
962
|
-
'card'
|
|
963
|
-
]),
|
|
1099
|
+
type: z.enum(['card']),
|
|
964
1100
|
last4: z.string(),
|
|
965
|
-
exp_month: z.
|
|
966
|
-
exp_year: z.
|
|
1101
|
+
exp_month: z.int().gte(1).lte(12),
|
|
1102
|
+
exp_year: z.int().gte(2024),
|
|
967
1103
|
brand: z.enum([
|
|
968
1104
|
'amex',
|
|
969
1105
|
'diners',
|
|
@@ -976,125 +1112,239 @@ export const zPaymentMethod = z.object({
|
|
|
976
1112
|
'unknown'
|
|
977
1113
|
])
|
|
978
1114
|
});
|
|
1115
|
+
export const zPlatformQuota = z.object({
|
|
1116
|
+
basic_clusters_max: z.int().gte(0),
|
|
1117
|
+
basic_clusters_available: z.int(),
|
|
1118
|
+
pro_clusters_max: z.int().gte(0),
|
|
1119
|
+
pro_clusters_available: z.int(),
|
|
1120
|
+
fleets_max: z.int().gte(0),
|
|
1121
|
+
cluster_tiers: z.array(z.string()).min(0),
|
|
1122
|
+
regions: z.array(z.string()).min(1),
|
|
1123
|
+
versions: z.array(z.object({
|
|
1124
|
+
id: z.string(),
|
|
1125
|
+
label: z.string()
|
|
1126
|
+
})).min(1),
|
|
1127
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
1128
|
+
});
|
|
1129
|
+
export const zRegistryRepository = z.object({
|
|
1130
|
+
name: z.string(),
|
|
1131
|
+
region: z.string(),
|
|
1132
|
+
uri: z.string()
|
|
1133
|
+
});
|
|
1134
|
+
export const zRegistryRepositoryWithTags = z.object({
|
|
1135
|
+
name: z.string(),
|
|
1136
|
+
region: z.string(),
|
|
1137
|
+
uri: z.string(),
|
|
1138
|
+
tags: z.array(z.object({
|
|
1139
|
+
name: z.string(),
|
|
1140
|
+
size: z.number(),
|
|
1141
|
+
mediaType: z.string().optional(),
|
|
1142
|
+
platforms: z.array(z.string()).optional()
|
|
1143
|
+
})),
|
|
1144
|
+
totalSize: z.number()
|
|
1145
|
+
});
|
|
1146
|
+
export const zRegistryTag = z.object({
|
|
1147
|
+
name: z.string(),
|
|
1148
|
+
digest: z.string(),
|
|
1149
|
+
mediaType: z.string().optional(),
|
|
1150
|
+
config: z.object({
|
|
1151
|
+
size: z.number()
|
|
1152
|
+
}).optional(),
|
|
1153
|
+
layers: z.array(z.object({
|
|
1154
|
+
digest: z.string().optional(),
|
|
1155
|
+
size: z.number()
|
|
1156
|
+
})).optional(),
|
|
1157
|
+
manifests: z.array(z.object({
|
|
1158
|
+
digest: z.string(),
|
|
1159
|
+
platform: z.object({
|
|
1160
|
+
architecture: z.string(),
|
|
1161
|
+
os: z.string(),
|
|
1162
|
+
variant: z.string().optional()
|
|
1163
|
+
}).optional(),
|
|
1164
|
+
layers: z.array(z.object({
|
|
1165
|
+
digest: z.string().optional(),
|
|
1166
|
+
size: z.number()
|
|
1167
|
+
})).optional(),
|
|
1168
|
+
size: z.number().optional()
|
|
1169
|
+
})).optional(),
|
|
1170
|
+
size: z.number(),
|
|
1171
|
+
region: z.string(),
|
|
1172
|
+
repository: z.string(),
|
|
1173
|
+
uri: z.string()
|
|
1174
|
+
});
|
|
1175
|
+
export const zTicketAttachment = z.object({
|
|
1176
|
+
id: z.string(),
|
|
1177
|
+
filename: z.string(),
|
|
1178
|
+
content_type: z.string(),
|
|
1179
|
+
size: z.int()
|
|
1180
|
+
});
|
|
1181
|
+
export const zTicketCreateInput = z.object({
|
|
1182
|
+
category: z.enum([
|
|
1183
|
+
'billing',
|
|
1184
|
+
'technical',
|
|
1185
|
+
'general'
|
|
1186
|
+
]),
|
|
1187
|
+
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1188
|
+
properties: z.record(z.string(), z.unknown()).optional()
|
|
1189
|
+
});
|
|
1190
|
+
export const zTicketListResponse = z.object({
|
|
1191
|
+
items: z.array(z.object({
|
|
1192
|
+
id: z.string(),
|
|
1193
|
+
status: z.enum([
|
|
1194
|
+
'waiting_on_us',
|
|
1195
|
+
'waiting_on_user',
|
|
1196
|
+
'closed'
|
|
1197
|
+
]),
|
|
1198
|
+
category: z.enum([
|
|
1199
|
+
'billing',
|
|
1200
|
+
'technical',
|
|
1201
|
+
'general'
|
|
1202
|
+
]),
|
|
1203
|
+
summary: z.string(),
|
|
1204
|
+
closed_at: z.iso.datetime().optional(),
|
|
1205
|
+
date_created: z.iso.datetime(),
|
|
1206
|
+
date_updated: z.iso.datetime(),
|
|
1207
|
+
messages: z.array(z.object({
|
|
1208
|
+
id: z.string(),
|
|
1209
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1210
|
+
body: z.string(),
|
|
1211
|
+
author_first_name: z.string().optional(),
|
|
1212
|
+
author_last_name: z.string().optional(),
|
|
1213
|
+
attachments: z.array(z.object({
|
|
1214
|
+
id: z.string(),
|
|
1215
|
+
filename: z.string(),
|
|
1216
|
+
content_type: z.string(),
|
|
1217
|
+
size: z.int()
|
|
1218
|
+
})).optional(),
|
|
1219
|
+
date_created: z.iso.datetime()
|
|
1220
|
+
})).optional()
|
|
1221
|
+
}))
|
|
1222
|
+
});
|
|
1223
|
+
export const zTicketMessageInput = z.object({
|
|
1224
|
+
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1225
|
+
});
|
|
1226
|
+
export const zTicketMessage = z.object({
|
|
1227
|
+
id: z.string(),
|
|
1228
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1229
|
+
body: z.string(),
|
|
1230
|
+
author_first_name: z.string().optional(),
|
|
1231
|
+
author_last_name: z.string().optional(),
|
|
1232
|
+
attachments: z.array(z.object({
|
|
1233
|
+
id: z.string(),
|
|
1234
|
+
filename: z.string(),
|
|
1235
|
+
content_type: z.string(),
|
|
1236
|
+
size: z.int()
|
|
1237
|
+
})).optional(),
|
|
1238
|
+
date_created: z.iso.datetime()
|
|
1239
|
+
});
|
|
1240
|
+
export const zTicket = z.object({
|
|
1241
|
+
id: z.string(),
|
|
1242
|
+
status: z.enum([
|
|
1243
|
+
'waiting_on_us',
|
|
1244
|
+
'waiting_on_user',
|
|
1245
|
+
'closed'
|
|
1246
|
+
]),
|
|
1247
|
+
category: z.enum([
|
|
1248
|
+
'billing',
|
|
1249
|
+
'technical',
|
|
1250
|
+
'general'
|
|
1251
|
+
]),
|
|
1252
|
+
summary: z.string(),
|
|
1253
|
+
closed_at: z.iso.datetime().optional(),
|
|
1254
|
+
date_created: z.iso.datetime(),
|
|
1255
|
+
date_updated: z.iso.datetime(),
|
|
1256
|
+
messages: z.array(z.object({
|
|
1257
|
+
id: z.string(),
|
|
1258
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1259
|
+
body: z.string(),
|
|
1260
|
+
author_first_name: z.string().optional(),
|
|
1261
|
+
author_last_name: z.string().optional(),
|
|
1262
|
+
attachments: z.array(z.object({
|
|
1263
|
+
id: z.string(),
|
|
1264
|
+
filename: z.string(),
|
|
1265
|
+
content_type: z.string(),
|
|
1266
|
+
size: z.int()
|
|
1267
|
+
})).optional(),
|
|
1268
|
+
date_created: z.iso.datetime()
|
|
1269
|
+
})).optional()
|
|
1270
|
+
});
|
|
979
1271
|
export const zTokenCreateInput = z.object({
|
|
980
1272
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
981
|
-
role: z.enum([
|
|
982
|
-
'Administrator',
|
|
983
|
-
'User'
|
|
984
|
-
])
|
|
1273
|
+
role: z.enum(['Administrator', 'User'])
|
|
985
1274
|
});
|
|
986
1275
|
export const zToken = z.object({
|
|
987
1276
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
988
|
-
role: z.enum([
|
|
989
|
-
'Administrator',
|
|
990
|
-
'User'
|
|
991
|
-
]),
|
|
1277
|
+
role: z.enum(['Administrator', 'User']),
|
|
992
1278
|
id: z.string().optional(),
|
|
993
1279
|
secret: z.string().optional(),
|
|
994
|
-
date_created: z.
|
|
1280
|
+
date_created: z.iso.datetime()
|
|
995
1281
|
});
|
|
996
1282
|
export const zTokenUpdateInput = z.object({
|
|
997
1283
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
998
|
-
role: z.enum([
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1284
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
1285
|
+
});
|
|
1286
|
+
export const zUsageFacets = z.object({
|
|
1287
|
+
cluster_id: z.array(z.string()).optional(),
|
|
1288
|
+
product: z.array(z.string()).optional()
|
|
1289
|
+
});
|
|
1290
|
+
export const zUsageResponse = z.object({
|
|
1291
|
+
data: z.array(z.object({
|
|
1292
|
+
hour: z.string(),
|
|
1293
|
+
cluster_id: z.string(),
|
|
1294
|
+
product: z.string(),
|
|
1295
|
+
value: z.number(),
|
|
1296
|
+
price: z.number(),
|
|
1297
|
+
total: z.number()
|
|
1298
|
+
})),
|
|
1299
|
+
facets: z.object({
|
|
1300
|
+
cluster_id: z.array(z.string()).optional(),
|
|
1301
|
+
product: z.array(z.string()).optional()
|
|
1302
|
+
})
|
|
1002
1303
|
});
|
|
1003
1304
|
export const zUsage = z.object({
|
|
1004
|
-
hour: z.string()
|
|
1005
|
-
cluster_id: z.string()
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
]),
|
|
1011
|
-
product: z.enum([
|
|
1012
|
-
'cfke_controlplane',
|
|
1013
|
-
'cfke_connected_nodes',
|
|
1014
|
-
'infra_compute',
|
|
1015
|
-
'infra_storage',
|
|
1016
|
-
'infra_loadbalancing',
|
|
1017
|
-
'infra_traffic',
|
|
1018
|
-
'cfcr_storage'
|
|
1019
|
-
]),
|
|
1020
|
-
node_name: z.string(),
|
|
1021
|
-
sku: z.string(),
|
|
1022
|
-
cpu: z.union([
|
|
1023
|
-
z.number(),
|
|
1024
|
-
z.enum([
|
|
1025
|
-
''
|
|
1026
|
-
])
|
|
1027
|
-
]),
|
|
1028
|
-
price: z.union([
|
|
1029
|
-
z.number(),
|
|
1030
|
-
z.enum([
|
|
1031
|
-
''
|
|
1032
|
-
])
|
|
1033
|
-
]),
|
|
1034
|
-
value: z.union([
|
|
1035
|
-
z.number(),
|
|
1036
|
-
z.enum([
|
|
1037
|
-
''
|
|
1038
|
-
])
|
|
1039
|
-
]),
|
|
1040
|
-
total: z.union([
|
|
1041
|
-
z.number(),
|
|
1042
|
-
z.enum([
|
|
1043
|
-
''
|
|
1044
|
-
])
|
|
1045
|
-
])
|
|
1305
|
+
hour: z.string(),
|
|
1306
|
+
cluster_id: z.string(),
|
|
1307
|
+
product: z.string(),
|
|
1308
|
+
value: z.number(),
|
|
1309
|
+
price: z.number(),
|
|
1310
|
+
total: z.number()
|
|
1046
1311
|
});
|
|
1047
1312
|
export const zUserCreateInput = z.object({
|
|
1048
|
-
email: z.
|
|
1313
|
+
email: z.email(),
|
|
1049
1314
|
first_name: z.string().min(1).max(50),
|
|
1050
1315
|
last_name: z.string().min(1).max(50),
|
|
1051
1316
|
code: z.string(),
|
|
1052
1317
|
password: z.string().min(8),
|
|
1053
|
-
status: z.enum([
|
|
1054
|
-
|
|
1055
|
-
'inactive'
|
|
1056
|
-
]).optional(),
|
|
1057
|
-
role: z.enum([
|
|
1058
|
-
'Administrator',
|
|
1059
|
-
'User'
|
|
1060
|
-
]).optional()
|
|
1318
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
1319
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
1061
1320
|
});
|
|
1062
1321
|
export const zUser = z.object({
|
|
1063
|
-
email: z.
|
|
1322
|
+
email: z.email(),
|
|
1064
1323
|
first_name: z.string().min(1).max(50),
|
|
1065
1324
|
last_name: z.string().min(1).max(50),
|
|
1066
|
-
role: z.enum([
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
status: z.enum([
|
|
1071
|
-
'active',
|
|
1072
|
-
'inactive'
|
|
1073
|
-
]),
|
|
1074
|
-
id: z.string().uuid(),
|
|
1075
|
-
date_created: z.string().datetime()
|
|
1325
|
+
role: z.enum(['Administrator', 'User']),
|
|
1326
|
+
status: z.enum(['active', 'inactive']),
|
|
1327
|
+
id: z.uuid(),
|
|
1328
|
+
date_created: z.iso.datetime()
|
|
1076
1329
|
});
|
|
1077
1330
|
export const zUserUpdateInput = z.object({
|
|
1078
|
-
email: z.
|
|
1331
|
+
email: z.email().optional(),
|
|
1079
1332
|
first_name: z.string().min(1).max(50).optional(),
|
|
1080
1333
|
last_name: z.string().min(1).max(50).optional(),
|
|
1081
|
-
role: z.enum([
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
'
|
|
1087
|
-
'
|
|
1088
|
-
|
|
1334
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
1335
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
1336
|
+
});
|
|
1337
|
+
export const zGetUsageQuery = z.object({
|
|
1338
|
+
granularity: z.enum([
|
|
1339
|
+
'hourly',
|
|
1340
|
+
'daily',
|
|
1341
|
+
'monthly'
|
|
1342
|
+
]).optional().default('daily')
|
|
1089
1343
|
});
|
|
1090
1344
|
/**
|
|
1091
|
-
*
|
|
1092
|
-
*/
|
|
1093
|
-
export const zGetUsageResponse = z.array(zUsage);
|
|
1094
|
-
/**
|
|
1095
|
-
* Current balance of the organization in USD as a floating-point number.
|
|
1345
|
+
* Usage data with facets for filtering
|
|
1096
1346
|
*/
|
|
1097
|
-
export const
|
|
1347
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1098
1348
|
/**
|
|
1099
1349
|
* Redacted payment card information.
|
|
1100
1350
|
*/
|
|
@@ -1106,33 +1356,15 @@ export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
|
1106
1356
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1107
1357
|
id: z.string().optional()
|
|
1108
1358
|
});
|
|
1109
|
-
/**
|
|
1110
|
-
* Start date for the usage. Date of oldest data point to retrieve.
|
|
1111
|
-
*/
|
|
1112
|
-
export const zListInvoicesParameterStartDate = z.string();
|
|
1113
|
-
/**
|
|
1114
|
-
* End date for the usage. Date of newest data point to retrieve.
|
|
1115
|
-
*/
|
|
1116
|
-
export const zListInvoicesParameterEndDate = z.string();
|
|
1117
1359
|
/**
|
|
1118
1360
|
* An array of usage records.
|
|
1119
1361
|
*/
|
|
1120
1362
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1121
|
-
/**
|
|
1122
|
-
* Unique invoice identifier. UUID v4 string in canonical form
|
|
1123
|
-
*/
|
|
1124
|
-
export const zGetInvoiceParameterId = z.string();
|
|
1125
|
-
/**
|
|
1126
|
-
* Returns a single Invoice HTML representation under `html` property.
|
|
1127
|
-
*/
|
|
1128
|
-
export const zGetInvoiceResponse = z.object({
|
|
1129
|
-
html: z.string().optional()
|
|
1130
|
-
});
|
|
1131
1363
|
/**
|
|
1132
1364
|
* Returns a single object containing organization contact and billing address details.
|
|
1133
1365
|
*/
|
|
1134
1366
|
export const zGetContactResponse = zBillingContact;
|
|
1135
|
-
export const
|
|
1367
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1136
1368
|
/**
|
|
1137
1369
|
* Successfully updated. Returns updated organization details.
|
|
1138
1370
|
*/
|
|
@@ -1141,245 +1373,303 @@ export const zUpdateContactResponse = zBillingContact;
|
|
|
1141
1373
|
* An array of the applied promotional credits records.
|
|
1142
1374
|
*/
|
|
1143
1375
|
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1144
|
-
export const
|
|
1376
|
+
export const zRedeemCreditsBody = z.object({
|
|
1145
1377
|
code: z.string().optional()
|
|
1146
1378
|
});
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
export const zListChartsParameterClusterId = z.string();
|
|
1379
|
+
export const zListChartsPath = z.object({
|
|
1380
|
+
cluster_id: z.string()
|
|
1381
|
+
});
|
|
1151
1382
|
/**
|
|
1152
1383
|
* An array of charts
|
|
1153
1384
|
*/
|
|
1154
1385
|
export const zListChartsResponse = z.array(zChart);
|
|
1155
|
-
export const
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
export const zCreateChartParameterClusterId = z.string();
|
|
1386
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1387
|
+
export const zCreateChartPath = z.object({
|
|
1388
|
+
cluster_id: z.string()
|
|
1389
|
+
});
|
|
1160
1390
|
/**
|
|
1161
1391
|
* Successfully created. Returns created Chart ID.
|
|
1162
1392
|
*/
|
|
1163
1393
|
export const zCreateChartResponse = z.string();
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
/**
|
|
1169
|
-
* Chart deployment name as the unique identifier of the chart.
|
|
1170
|
-
*/
|
|
1171
|
-
export const zDeleteChartParameterChartName = z.string();
|
|
1394
|
+
export const zDeleteChartPath = z.object({
|
|
1395
|
+
cluster_id: z.string(),
|
|
1396
|
+
chart_name: z.string()
|
|
1397
|
+
});
|
|
1172
1398
|
/**
|
|
1173
1399
|
* Successfully deleted.
|
|
1174
1400
|
*/
|
|
1175
1401
|
export const zDeleteChartResponse = z.string();
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
/**
|
|
1181
|
-
* Chart deployment name as the unique identifier of the chart.
|
|
1182
|
-
*/
|
|
1183
|
-
export const zGetChartParameterChartName = z.string();
|
|
1402
|
+
export const zGetChartPath = z.object({
|
|
1403
|
+
cluster_id: z.string(),
|
|
1404
|
+
chart_name: z.string()
|
|
1405
|
+
});
|
|
1184
1406
|
/**
|
|
1185
1407
|
* Returns a single object containing chart details.
|
|
1186
1408
|
*/
|
|
1187
1409
|
export const zGetChartResponse = zChart;
|
|
1188
|
-
export const
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
/**
|
|
1194
|
-
* Chart deployment name as the unique identifier of the chart.
|
|
1195
|
-
*/
|
|
1196
|
-
export const zUpdateChartParameterChartName = z.string();
|
|
1410
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1411
|
+
export const zUpdateChartPath = z.object({
|
|
1412
|
+
cluster_id: z.string(),
|
|
1413
|
+
chart_name: z.string()
|
|
1414
|
+
});
|
|
1197
1415
|
/**
|
|
1198
1416
|
* Successfully updated.
|
|
1199
1417
|
*/
|
|
1200
1418
|
export const zUpdateChartResponse = z.string();
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
export const zListFleetsParameterClusterId = z.string();
|
|
1419
|
+
export const zListFleetsPath = z.object({
|
|
1420
|
+
cluster_id: z.string()
|
|
1421
|
+
});
|
|
1205
1422
|
/**
|
|
1206
1423
|
* An array of fleets
|
|
1207
1424
|
*/
|
|
1208
1425
|
export const zListFleetsResponse = z.array(zFleet);
|
|
1209
|
-
export const
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
export const zCreateFleetParameterClusterId = z.string();
|
|
1426
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1427
|
+
export const zCreateFleetPath = z.object({
|
|
1428
|
+
cluster_id: z.string()
|
|
1429
|
+
});
|
|
1214
1430
|
/**
|
|
1215
1431
|
* Successfully created. Returns created Fleet ID.
|
|
1216
1432
|
*/
|
|
1217
1433
|
export const zCreateFleetResponse = z.string();
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
/**
|
|
1223
|
-
* Unique identifier of the fleet. UUID v4 string in canonical form
|
|
1224
|
-
*/
|
|
1225
|
-
export const zDeleteFleetParameterFleetName = z.string();
|
|
1434
|
+
export const zDeleteFleetPath = z.object({
|
|
1435
|
+
cluster_id: z.string(),
|
|
1436
|
+
fleet_name: z.string()
|
|
1437
|
+
});
|
|
1226
1438
|
/**
|
|
1227
1439
|
* Successfully deleted.
|
|
1228
1440
|
*/
|
|
1229
1441
|
export const zDeleteFleetResponse = z.string();
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
/**
|
|
1235
|
-
* Unique identifier of the fleet. UUID v4 string in canonical form
|
|
1236
|
-
*/
|
|
1237
|
-
export const zGetFleetParameterFleetName = z.string();
|
|
1442
|
+
export const zGetFleetPath = z.object({
|
|
1443
|
+
cluster_id: z.string(),
|
|
1444
|
+
fleet_name: z.string()
|
|
1445
|
+
});
|
|
1238
1446
|
/**
|
|
1239
1447
|
* Returns a single object containing fleet details.
|
|
1240
1448
|
*/
|
|
1241
1449
|
export const zGetFleetResponse = zFleet;
|
|
1242
|
-
export const
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* Unique identifier of the fleet. UUID v4 string in canonical form
|
|
1249
|
-
*/
|
|
1250
|
-
export const zUpdateFleetParameterFleetName = z.string();
|
|
1450
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1451
|
+
export const zUpdateFleetPath = z.object({
|
|
1452
|
+
cluster_id: z.string(),
|
|
1453
|
+
fleet_name: z.string()
|
|
1454
|
+
});
|
|
1251
1455
|
/**
|
|
1252
1456
|
* Successfully updated.
|
|
1253
1457
|
*/
|
|
1254
1458
|
export const zUpdateFleetResponse = z.string();
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
export const zQueryClusterParameterClusterId = z.string();
|
|
1459
|
+
export const zQueryClusterPath = z.object({
|
|
1460
|
+
cluster_id: z.string()
|
|
1461
|
+
});
|
|
1259
1462
|
/**
|
|
1260
1463
|
* An array of clusters
|
|
1261
1464
|
*/
|
|
1262
1465
|
export const zListClustersResponse = z.array(zCluster);
|
|
1263
|
-
export const
|
|
1466
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1264
1467
|
/**
|
|
1265
1468
|
* Successfully created. Returns created Cluster ID.
|
|
1266
1469
|
*/
|
|
1267
1470
|
export const zCreateClusterResponse = z.string();
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
export const zDeleteClusterParameterClusterId = z.string();
|
|
1471
|
+
export const zDeleteClusterPath = z.object({
|
|
1472
|
+
cluster_id: z.string()
|
|
1473
|
+
});
|
|
1272
1474
|
/**
|
|
1273
1475
|
* Successfully deleted.
|
|
1274
1476
|
*/
|
|
1275
1477
|
export const zDeleteClusterResponse = z.string();
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
export const zGetClusterParameterClusterId = z.string();
|
|
1478
|
+
export const zGetClusterPath = z.object({
|
|
1479
|
+
cluster_id: z.string()
|
|
1480
|
+
});
|
|
1280
1481
|
/**
|
|
1281
1482
|
* Returns a single object containing cluster details.
|
|
1282
1483
|
*/
|
|
1283
1484
|
export const zGetClusterResponse = zCluster;
|
|
1284
|
-
export const
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
export const zUpdateClusterParameterClusterId = z.string();
|
|
1485
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1486
|
+
export const zUpdateClusterPath = z.object({
|
|
1487
|
+
cluster_id: z.string()
|
|
1488
|
+
});
|
|
1289
1489
|
/**
|
|
1290
1490
|
* Successfully updated. Returns updated cluster details.
|
|
1291
1491
|
*/
|
|
1292
1492
|
export const zUpdateClusterResponse = zCluster;
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
export const zGetJoinInformationParameterClusterId = z.string();
|
|
1493
|
+
export const zGetJoinInformationPath = z.object({
|
|
1494
|
+
cluster_id: z.string()
|
|
1495
|
+
});
|
|
1297
1496
|
/**
|
|
1298
1497
|
* An object of cluster join information
|
|
1299
1498
|
*/
|
|
1300
|
-
export const zGetJoinInformationResponse =
|
|
1499
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1301
1500
|
/**
|
|
1302
1501
|
* An array of invites
|
|
1303
1502
|
*/
|
|
1304
1503
|
export const zListInvitesResponse = z.array(zInvite);
|
|
1305
|
-
export const
|
|
1504
|
+
export const zCreateInviteBody = z.object({
|
|
1306
1505
|
email: z.string().optional()
|
|
1307
1506
|
});
|
|
1308
1507
|
/**
|
|
1309
1508
|
* Successfully created. Returns created invite details.
|
|
1310
1509
|
*/
|
|
1311
1510
|
export const zCreateInviteResponse = zInvite;
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
export const zGetInviteParameterCode = z.string();
|
|
1511
|
+
export const zGetInvitePath = z.object({
|
|
1512
|
+
code: z.string()
|
|
1513
|
+
});
|
|
1316
1514
|
/**
|
|
1317
1515
|
* Returns a single object containing invite details.
|
|
1318
1516
|
*/
|
|
1319
1517
|
export const zGetInviteResponse = zInvite;
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
export const zDeleteInviteParameterEmail = z.string();
|
|
1518
|
+
export const zDeleteInvitePath = z.object({
|
|
1519
|
+
email: z.string()
|
|
1520
|
+
});
|
|
1324
1521
|
/**
|
|
1325
1522
|
* An array of chart listings in the marketplace.
|
|
1326
1523
|
*/
|
|
1327
1524
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1525
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1526
|
+
chart_name: z.string(),
|
|
1527
|
+
version_channel: z.string()
|
|
1528
|
+
});
|
|
1529
|
+
/**
|
|
1530
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1531
|
+
*/
|
|
1532
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1328
1533
|
/**
|
|
1329
|
-
*
|
|
1534
|
+
* JSON-RPC 2.0 request payload
|
|
1330
1535
|
*/
|
|
1331
|
-
export const
|
|
1536
|
+
export const zPostMcpBody = z.object({
|
|
1537
|
+
jsonrpc: z.string().optional(),
|
|
1538
|
+
method: z.string().optional(),
|
|
1539
|
+
id: z.union([
|
|
1540
|
+
z.string(),
|
|
1541
|
+
z.number()
|
|
1542
|
+
]).optional(),
|
|
1543
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
1544
|
+
});
|
|
1332
1545
|
/**
|
|
1333
|
-
*
|
|
1546
|
+
* JSON-RPC 2.0 success or error response
|
|
1334
1547
|
*/
|
|
1335
|
-
export const
|
|
1548
|
+
export const zPostMcpResponse = z.object({
|
|
1549
|
+
jsonrpc: z.string().optional(),
|
|
1550
|
+
id: z.union([
|
|
1551
|
+
z.string(),
|
|
1552
|
+
z.number()
|
|
1553
|
+
]).optional(),
|
|
1554
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
1555
|
+
error: z.object({
|
|
1556
|
+
code: z.int().optional(),
|
|
1557
|
+
message: z.string().optional()
|
|
1558
|
+
}).optional()
|
|
1559
|
+
});
|
|
1336
1560
|
/**
|
|
1337
1561
|
* Returns a single object containing organization details.
|
|
1338
1562
|
*/
|
|
1339
1563
|
export const zGetOrganizationResponse = zOrganization;
|
|
1340
|
-
export const
|
|
1564
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1341
1565
|
/**
|
|
1342
|
-
*
|
|
1566
|
+
* List of repositories
|
|
1343
1567
|
*/
|
|
1344
|
-
export const
|
|
1345
|
-
export const
|
|
1568
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1569
|
+
export const zListTagsPath = z.object({
|
|
1570
|
+
region: z.string(),
|
|
1571
|
+
repository: z.string()
|
|
1572
|
+
});
|
|
1346
1573
|
/**
|
|
1347
|
-
*
|
|
1574
|
+
* Repository with tags
|
|
1348
1575
|
*/
|
|
1349
|
-
export const
|
|
1576
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1577
|
+
export const zDeleteTagPath = z.object({
|
|
1578
|
+
region: z.string(),
|
|
1579
|
+
repository: z.string(),
|
|
1580
|
+
tag: z.string()
|
|
1581
|
+
});
|
|
1582
|
+
export const zGetTagPath = z.object({
|
|
1583
|
+
region: z.string(),
|
|
1584
|
+
repository: z.string(),
|
|
1585
|
+
tag: z.string()
|
|
1586
|
+
});
|
|
1350
1587
|
/**
|
|
1351
|
-
*
|
|
1588
|
+
* Tag details
|
|
1352
1589
|
*/
|
|
1353
|
-
export const
|
|
1590
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1354
1591
|
/**
|
|
1355
|
-
*
|
|
1592
|
+
* Tickets for the organization.
|
|
1356
1593
|
*/
|
|
1357
|
-
export const
|
|
1594
|
+
export const zListTicketsResponse = zTicketListResponse;
|
|
1595
|
+
export const zCreateTicketBody = z.object({
|
|
1596
|
+
payload: z.string().optional(),
|
|
1597
|
+
attachments: z.array(z.string()).optional()
|
|
1598
|
+
});
|
|
1358
1599
|
/**
|
|
1359
|
-
*
|
|
1600
|
+
* Ticket created.
|
|
1360
1601
|
*/
|
|
1361
|
-
export const
|
|
1362
|
-
export const
|
|
1602
|
+
export const zCreateTicketResponse = zTicket;
|
|
1603
|
+
export const zCloseTicketPath = z.object({
|
|
1604
|
+
ticket_id: z.string()
|
|
1605
|
+
});
|
|
1363
1606
|
/**
|
|
1364
|
-
*
|
|
1607
|
+
* Ticket closed.
|
|
1365
1608
|
*/
|
|
1366
|
-
export const
|
|
1609
|
+
export const zCloseTicketResponse = zTicket;
|
|
1610
|
+
export const zGetTicketPath = z.object({
|
|
1611
|
+
ticket_id: z.string()
|
|
1612
|
+
});
|
|
1367
1613
|
/**
|
|
1368
|
-
*
|
|
1614
|
+
* Ticket with messages (internal notes excluded).
|
|
1369
1615
|
*/
|
|
1370
|
-
export const
|
|
1616
|
+
export const zGetTicketResponse = zTicket;
|
|
1617
|
+
export const zReplyTicketBody = z.object({
|
|
1618
|
+
payload: z.string().optional(),
|
|
1619
|
+
attachments: z.array(z.string()).optional()
|
|
1620
|
+
});
|
|
1621
|
+
export const zReplyTicketPath = z.object({
|
|
1622
|
+
ticket_id: z.string()
|
|
1623
|
+
});
|
|
1371
1624
|
/**
|
|
1372
|
-
*
|
|
1625
|
+
* Reply appended.
|
|
1373
1626
|
*/
|
|
1374
|
-
export const
|
|
1627
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1628
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1629
|
+
ticket_id: z.string(),
|
|
1630
|
+
attachment_id: z.string()
|
|
1631
|
+
});
|
|
1375
1632
|
/**
|
|
1376
|
-
*
|
|
1633
|
+
* Attachment binary stream.
|
|
1377
1634
|
*/
|
|
1378
|
-
export const
|
|
1635
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1636
|
+
/**
|
|
1637
|
+
* Returns a list of access token details with masked secrets.
|
|
1638
|
+
*/
|
|
1639
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1640
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1641
|
+
/**
|
|
1642
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1643
|
+
*/
|
|
1644
|
+
export const zCreateTokenResponse = zToken;
|
|
1645
|
+
export const zDeleteTokenPath = z.object({
|
|
1646
|
+
token_id: z.string()
|
|
1647
|
+
});
|
|
1648
|
+
export const zGetTokenPath = z.object({
|
|
1649
|
+
token_id: z.string()
|
|
1650
|
+
});
|
|
1651
|
+
/**
|
|
1652
|
+
* Returns access token details with masked secret.
|
|
1653
|
+
*/
|
|
1654
|
+
export const zGetTokenResponse = zToken;
|
|
1655
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1656
|
+
export const zUpdateTokenPath = z.object({
|
|
1657
|
+
token_id: z.string()
|
|
1658
|
+
});
|
|
1379
1659
|
/**
|
|
1380
|
-
*
|
|
1660
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1381
1661
|
*/
|
|
1382
|
-
export const
|
|
1662
|
+
export const zUpdateTokenResponse = zToken;
|
|
1663
|
+
export const zRegenerateTokenPath = z.object({
|
|
1664
|
+
token_id: z.string()
|
|
1665
|
+
});
|
|
1666
|
+
/**
|
|
1667
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1668
|
+
*/
|
|
1669
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1670
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1671
|
+
email: z.string()
|
|
1672
|
+
});
|
|
1383
1673
|
/**
|
|
1384
1674
|
* An array of organizations the user belongs to.
|
|
1385
1675
|
*/
|
|
@@ -1391,32 +1681,29 @@ export const zListUserOrganizationsResponse = z.array(z.object({
|
|
|
1391
1681
|
* An array of users
|
|
1392
1682
|
*/
|
|
1393
1683
|
export const zListUsersResponse = z.array(zUser);
|
|
1394
|
-
export const
|
|
1684
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1395
1685
|
/**
|
|
1396
1686
|
* Successfully created. Returns created user details.
|
|
1397
1687
|
*/
|
|
1398
1688
|
export const zCreateUserResponse = zUser;
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
export const zDeleteUserParameterUserId = z.string();
|
|
1689
|
+
export const zDeleteUserPath = z.object({
|
|
1690
|
+
user_id: z.string()
|
|
1691
|
+
});
|
|
1403
1692
|
/**
|
|
1404
1693
|
* User profile information
|
|
1405
1694
|
*/
|
|
1406
1695
|
export const zDeleteUserResponse = zUser;
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
export const zGetUserParameterUserId = z.string();
|
|
1696
|
+
export const zGetUserPath = z.object({
|
|
1697
|
+
user_id: z.string()
|
|
1698
|
+
});
|
|
1411
1699
|
/**
|
|
1412
1700
|
* User profile information
|
|
1413
1701
|
*/
|
|
1414
1702
|
export const zGetUserResponse = zUser;
|
|
1415
|
-
export const
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
export const zUpdateUserParameterUserId = z.string();
|
|
1703
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1704
|
+
export const zUpdateUserPath = z.object({
|
|
1705
|
+
user_id: z.string()
|
|
1706
|
+
});
|
|
1420
1707
|
/**
|
|
1421
1708
|
* Successfully created. Returns created user details.
|
|
1422
1709
|
*/
|