@cloudfleet/sdk 0.0.1-9835b73 → 0.0.1-9a4447d

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.
Files changed (72) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1139 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1167 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts +3 -0
  6. package/dist/client/client.gen.d.ts.map +1 -0
  7. package/dist/client/client.gen.js +220 -0
  8. package/dist/client/client.gen.js.map +1 -0
  9. package/dist/client/index.d.ts +9 -0
  10. package/dist/client/index.d.ts.map +1 -0
  11. package/dist/client/index.js +7 -0
  12. package/dist/client/index.js.map +1 -0
  13. package/dist/client/types.gen.d.ts +121 -0
  14. package/dist/client/types.gen.d.ts.map +1 -0
  15. package/dist/client/types.gen.js +3 -0
  16. package/dist/client/types.gen.js.map +1 -0
  17. package/dist/client/utils.gen.d.ts +38 -0
  18. package/dist/client/utils.gen.d.ts.map +1 -0
  19. package/dist/client/utils.gen.js +229 -0
  20. package/dist/client/utils.gen.js.map +1 -0
  21. package/dist/client.gen.d.ts +4 -4
  22. package/dist/client.gen.d.ts.map +1 -1
  23. package/dist/client.gen.js +2 -4
  24. package/dist/client.gen.js.map +1 -1
  25. package/dist/core/auth.gen.d.ts +19 -0
  26. package/dist/core/auth.gen.d.ts.map +1 -0
  27. package/dist/core/auth.gen.js +15 -0
  28. package/dist/core/auth.gen.js.map +1 -0
  29. package/dist/core/bodySerializer.gen.d.ts +26 -0
  30. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  31. package/dist/core/bodySerializer.gen.js +58 -0
  32. package/dist/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/core/params.gen.d.ts +44 -0
  34. package/dist/core/params.gen.d.ts.map +1 -0
  35. package/dist/core/params.gen.js +101 -0
  36. package/dist/core/params.gen.js.map +1 -0
  37. package/dist/core/pathSerializer.gen.d.ts +34 -0
  38. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/core/pathSerializer.gen.js +107 -0
  40. package/dist/core/pathSerializer.gen.js.map +1 -0
  41. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  43. package/dist/core/queryKeySerializer.gen.js +93 -0
  44. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  45. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  46. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  47. package/dist/core/serverSentEvents.gen.js +133 -0
  48. package/dist/core/serverSentEvents.gen.js.map +1 -0
  49. package/dist/core/types.gen.d.ts +79 -0
  50. package/dist/core/types.gen.d.ts.map +1 -0
  51. package/dist/core/types.gen.js +3 -0
  52. package/dist/core/types.gen.js.map +1 -0
  53. package/dist/core/utils.gen.d.ts +20 -0
  54. package/dist/core/utils.gen.d.ts.map +1 -0
  55. package/dist/core/utils.gen.js +88 -0
  56. package/dist/core/utils.gen.js.map +1 -0
  57. package/dist/schemas.gen.d.ts +1337 -589
  58. package/dist/schemas.gen.d.ts.map +1 -1
  59. package/dist/schemas.gen.js +2675 -688
  60. package/dist/schemas.gen.js.map +1 -1
  61. package/dist/sdk.gen.d.ts +187 -63
  62. package/dist/sdk.gen.d.ts.map +1 -1
  63. package/dist/sdk.gen.js +236 -165
  64. package/dist/sdk.gen.js.map +1 -1
  65. package/dist/services/kubernetes/api.d.ts +20 -20
  66. package/dist/types.gen.d.ts +1151 -371
  67. package/dist/types.gen.d.ts.map +1 -1
  68. package/dist/zod.gen.d.ts +3526 -2590
  69. package/dist/zod.gen.d.ts.map +1 -1
  70. package/dist/zod.gen.js +1242 -936
  71. package/dist/zod.gen.js.map +1 -1
  72. 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 { z } from 'zod';
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.string().email(),
13
- first_name: z.string(),
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
- date_created: z.string().datetime(),
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
- products: z.array(z.string()).optional(),
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
- ]).optional(),
210
- 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().default('1.x.x-cfke.x')
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.string().url(),
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
- ]).optional(),
239
- 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().default('1.x.x-cfke.x'),
240
- id: z.string().uuid(),
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,858 +246,1105 @@ export const zCluster = z.object({
247
246
  'updating'
248
247
  ]),
249
248
  endpoint: z.union([
250
- z.string().url(),
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.number().gte(0)
270
+ cpu: z.int().gte(0).lte(100000).optional()
272
271
  }).optional(),
273
272
  gcp: z.object({
274
- enabled: z.boolean().optional().default(true),
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().optional().default(true),
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().optional().default(true),
283
- controllerRoleArn: z.string()
281
+ enabled: z.boolean(),
282
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
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()
284
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.number().gte(0)
519
+ cpu: z.int().gte(0).lte(100000).optional()
290
520
  }).optional(),
291
521
  gcp: z.object({
292
- enabled: z.boolean().optional().default(true),
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().optional().default(true),
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().optional().default(true),
301
- controllerRoleArn: z.string()
530
+ enabled: z.boolean(),
531
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
302
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()
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.number().gte(0)
768
+ cpu: z.int().gte(0).lte(100000).optional()
308
769
  }).optional(),
309
770
  gcp: z.object({
310
- enabled: z.boolean().optional().default(true),
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().optional().default(true),
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().optional().default(true),
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.string().uuid().optional(),
325
- date_created: z.string().datetime(),
326
- email: z.string().email().optional(),
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().uuid().optional(),
331
- organizationId: z.string().uuid().optional(),
332
- status: z.enum([
333
- 'DRAFT',
334
- 'COMMITTED',
335
- 'VOID'
336
- ]).optional(),
337
- amount: z.number().optional(),
338
- currency: z.enum([
339
- 'AED',
340
- 'AFN',
341
- 'ALL',
342
- 'AMD',
343
- 'ANG',
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
- developer: z.string(),
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
- value_schemas: z.array(z.object({
923
- version: 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-]+)*))?$/),
924
- schema: z.string(),
925
- placeholder: z.string()
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
- email: z.string().email(),
930
- first_name: z.string(),
931
- last_name: z.string(),
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
  });
1066
+ export const zOrganizationCreateOutput = z.object({
1067
+ id: z.string()
1068
+ });
935
1069
  export const zOrganization = z.object({
936
- id: z.string().uuid(),
1070
+ id: z.uuid(),
937
1071
  name: z.string().min(2).max(120).optional(),
938
- date_created: z.string().datetime(),
1072
+ type: z.enum(['business', 'personal']),
1073
+ date_created: z.iso.datetime(),
939
1074
  quota: z.object({
940
- basic_clusters_max: z.number().int().gte(0),
941
- basic_clusters_available: z.number().int(),
942
- pro_clusters_max: z.number().int().gte(0),
943
- pro_clusters_available: z.number().int(),
944
- fleets_max: z.number().int().gte(0),
1075
+ basic_clusters_max: z.int().gte(0),
1076
+ basic_clusters_available: z.int(),
1077
+ pro_clusters_max: z.int().gte(0),
1078
+ pro_clusters_available: z.int(),
1079
+ fleets_max: z.int().gte(0),
945
1080
  cluster_tiers: z.array(z.string()).min(0),
946
1081
  regions: z.array(z.string()).min(1),
947
1082
  versions: z.array(z.object({
948
1083
  id: z.string(),
949
1084
  label: z.string()
950
- })).min(1)
1085
+ })).min(1),
1086
+ cfcr_storage_gb: z.int().gte(-1)
951
1087
  }),
952
1088
  status: z.enum([
953
1089
  'active',
954
1090
  'closed',
955
1091
  'suspended'
1092
+ ]),
1093
+ verification: z.enum([
1094
+ 'none',
1095
+ 'submitted',
1096
+ 'verified'
956
1097
  ])
957
1098
  });
958
1099
  export const zPaymentMethod = z.object({
959
- id: z.string().uuid(),
960
- setup: z.boolean(),
1100
+ id: z.string(),
961
1101
  type: z.enum([
962
- 'card'
1102
+ 'card',
1103
+ 'sepa_debit',
1104
+ 'bank_transfer'
963
1105
  ]),
964
1106
  last4: z.string(),
965
- exp_month: z.number().int().gte(1).lte(12),
966
- exp_year: z.number().int().gte(2024),
967
- brand: z.enum([
968
- 'amex',
969
- 'diners',
970
- 'discover',
971
- 'eftpos_au',
972
- 'jcb',
973
- 'mastercard',
974
- 'unionpay',
975
- 'visa',
976
- 'unknown'
977
- ])
1107
+ exp_month: z.int().gte(1).lte(12),
1108
+ exp_year: z.int(),
1109
+ brand: z.string(),
1110
+ iban: z.string(),
1111
+ bic: z.string(),
1112
+ account_holder_name: z.string(),
1113
+ is_default: z.boolean()
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()
978
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.string().datetime()
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
- 'Administrator',
1000
- 'User'
1001
- ]).optional()
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().optional(),
1005
- cluster_id: z.string().uuid(),
1006
- cluster_tier: z.enum([
1007
- 'basic',
1008
- 'pro',
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.string().email(),
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
- 'active',
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.string().email(),
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
- 'Administrator',
1068
- 'User'
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.string().email().optional(),
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
- 'Administrator',
1083
- 'User'
1084
- ]).optional(),
1085
- status: z.enum([
1086
- 'active',
1087
- 'inactive'
1088
- ]).optional()
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
- * An array of usage records.
1092
- */
1093
- export const zGetUsageResponse = z.array(zUsage);
1094
- /**
1095
- * Current balance of the organization in USD as a floating-point number.
1096
- */
1097
- export const zGetBalanceResponse = z.number();
1098
- /**
1099
- * Redacted payment card information.
1345
+ * Usage data with facets for filtering
1100
1346
  */
1101
- export const zGetPaymentMethodResponse = zPaymentMethod;
1347
+ export const zGetUsageResponse = zUsageResponse;
1102
1348
  /**
1103
1349
  * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
1104
1350
  *
@@ -1107,32 +1353,32 @@ export const zGetPaymentMethodSecretResponse = z.object({
1107
1353
  id: z.string().optional()
1108
1354
  });
1109
1355
  /**
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.
1356
+ * An array of payment methods.
1115
1357
  */
1116
- export const zListInvoicesParameterEndDate = z.string();
1358
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1359
+ export const zSetDefaultPaymentMethodPath = z.object({
1360
+ paymentMethodId: z.string()
1361
+ });
1117
1362
  /**
1118
- * An array of usage records.
1363
+ * Default payment method updated.
1119
1364
  */
1120
- export const zListInvoicesResponse = z.array(zInvoice);
1365
+ export const zSetDefaultPaymentMethodResponse = z.void();
1366
+ export const zDeletePaymentMethodPath = z.object({
1367
+ paymentMethodId: z.string()
1368
+ });
1121
1369
  /**
1122
- * Unique invoice identifier. UUID v4 string in canonical form
1370
+ * Payment method deleted.
1123
1371
  */
1124
- export const zGetInvoiceParameterId = z.string();
1372
+ export const zDeletePaymentMethodResponse = z.void();
1125
1373
  /**
1126
- * Returns a single Invoice HTML representation under `html` property.
1374
+ * An array of usage records.
1127
1375
  */
1128
- export const zGetInvoiceResponse = z.object({
1129
- html: z.string().optional()
1130
- });
1376
+ export const zListInvoicesResponse = z.array(zInvoice);
1131
1377
  /**
1132
1378
  * Returns a single object containing organization contact and billing address details.
1133
1379
  */
1134
1380
  export const zGetContactResponse = zBillingContact;
1135
- export const zUpdateContactData = zBillingContact;
1381
+ export const zUpdateContactBody = zBillingContact;
1136
1382
  /**
1137
1383
  * Successfully updated. Returns updated organization details.
1138
1384
  */
@@ -1141,245 +1387,308 @@ export const zUpdateContactResponse = zBillingContact;
1141
1387
  * An array of the applied promotional credits records.
1142
1388
  */
1143
1389
  export const zGetCreditsResponse = z.array(zBillingCredits);
1144
- export const zRedeemCreditsData = z.object({
1390
+ export const zRedeemCreditsBody = z.object({
1145
1391
  code: z.string().optional()
1146
1392
  });
1147
- /**
1148
- * Unique identifier of the cluster. UUID v4 string in canonical form
1149
- */
1150
- export const zListChartsParameterClusterId = z.string();
1393
+ export const zListChartsPath = z.object({
1394
+ cluster_id: z.string()
1395
+ });
1151
1396
  /**
1152
1397
  * An array of charts
1153
1398
  */
1154
1399
  export const zListChartsResponse = z.array(zChart);
1155
- export const zCreateChartData = zChartCreateInput;
1156
- /**
1157
- * Unique identifier of the cluster. UUID v4 string in canonical form
1158
- */
1159
- export const zCreateChartParameterClusterId = z.string();
1400
+ export const zCreateChartBody = zChartCreateInput;
1401
+ export const zCreateChartPath = z.object({
1402
+ cluster_id: z.string()
1403
+ });
1160
1404
  /**
1161
1405
  * Successfully created. Returns created Chart ID.
1162
1406
  */
1163
1407
  export const zCreateChartResponse = z.string();
1164
- /**
1165
- * Unique identifier of the cluster. UUID v4 string in canonical form
1166
- */
1167
- export const zDeleteChartParameterClusterId = z.string();
1168
- /**
1169
- * Chart deployment name as the unique identifier of the chart.
1170
- */
1171
- export const zDeleteChartParameterChartName = z.string();
1408
+ export const zDeleteChartPath = z.object({
1409
+ cluster_id: z.string(),
1410
+ chart_name: z.string()
1411
+ });
1172
1412
  /**
1173
1413
  * Successfully deleted.
1174
1414
  */
1175
1415
  export const zDeleteChartResponse = z.string();
1176
- /**
1177
- * Unique identifier of the cluster. UUID v4 string in canonical form
1178
- */
1179
- export const zGetChartParameterClusterId = z.string();
1180
- /**
1181
- * Chart deployment name as the unique identifier of the chart.
1182
- */
1183
- export const zGetChartParameterChartName = z.string();
1416
+ export const zGetChartPath = z.object({
1417
+ cluster_id: z.string(),
1418
+ chart_name: z.string()
1419
+ });
1184
1420
  /**
1185
1421
  * Returns a single object containing chart details.
1186
1422
  */
1187
1423
  export const zGetChartResponse = zChart;
1188
- export const zUpdateChartData = zChartUpdateInput;
1189
- /**
1190
- * Unique identifier of the cluster. UUID v4 string in canonical form
1191
- */
1192
- export const zUpdateChartParameterClusterId = z.string();
1193
- /**
1194
- * Chart deployment name as the unique identifier of the chart.
1195
- */
1196
- export const zUpdateChartParameterChartName = z.string();
1424
+ export const zUpdateChartBody = zChartUpdateInput;
1425
+ export const zUpdateChartPath = z.object({
1426
+ cluster_id: z.string(),
1427
+ chart_name: z.string()
1428
+ });
1197
1429
  /**
1198
1430
  * Successfully updated.
1199
1431
  */
1200
1432
  export const zUpdateChartResponse = z.string();
1201
- /**
1202
- * Unique identifier of the cluster. UUID v4 string in canonical form
1203
- */
1204
- export const zListFleetsParameterClusterId = z.string();
1433
+ export const zListFleetsPath = z.object({
1434
+ cluster_id: z.string()
1435
+ });
1205
1436
  /**
1206
1437
  * An array of fleets
1207
1438
  */
1208
1439
  export const zListFleetsResponse = z.array(zFleet);
1209
- export const zCreateFleetData = zFleetCreateInput;
1210
- /**
1211
- * Unique identifier of the cluster. UUID v4 string in canonical form
1212
- */
1213
- export const zCreateFleetParameterClusterId = z.string();
1440
+ export const zCreateFleetBody = zFleetCreateInput;
1441
+ export const zCreateFleetPath = z.object({
1442
+ cluster_id: z.string()
1443
+ });
1214
1444
  /**
1215
1445
  * Successfully created. Returns created Fleet ID.
1216
1446
  */
1217
1447
  export const zCreateFleetResponse = z.string();
1218
- /**
1219
- * Unique identifier of the cluster. UUID v4 string in canonical form
1220
- */
1221
- export const zDeleteFleetParameterClusterId = z.string();
1222
- /**
1223
- * Unique identifier of the fleet. UUID v4 string in canonical form
1224
- */
1225
- export const zDeleteFleetParameterFleetName = z.string();
1448
+ export const zDeleteFleetPath = z.object({
1449
+ cluster_id: z.string(),
1450
+ fleet_name: z.string()
1451
+ });
1226
1452
  /**
1227
1453
  * Successfully deleted.
1228
1454
  */
1229
1455
  export const zDeleteFleetResponse = z.string();
1230
- /**
1231
- * Unique identifier of the cluster. UUID v4 string in canonical form
1232
- */
1233
- export const zGetFleetParameterClusterId = z.string();
1234
- /**
1235
- * Unique identifier of the fleet. UUID v4 string in canonical form
1236
- */
1237
- export const zGetFleetParameterFleetName = z.string();
1456
+ export const zGetFleetPath = z.object({
1457
+ cluster_id: z.string(),
1458
+ fleet_name: z.string()
1459
+ });
1238
1460
  /**
1239
1461
  * Returns a single object containing fleet details.
1240
1462
  */
1241
1463
  export const zGetFleetResponse = zFleet;
1242
- export const zUpdateFleetData = zFleetUpdateInput;
1243
- /**
1244
- * Unique identifier of the cluster. UUID v4 string in canonical form
1245
- */
1246
- export const zUpdateFleetParameterClusterId = z.string();
1247
- /**
1248
- * Unique identifier of the fleet. UUID v4 string in canonical form
1249
- */
1250
- export const zUpdateFleetParameterFleetName = z.string();
1464
+ export const zUpdateFleetBody = zFleetUpdateInput;
1465
+ export const zUpdateFleetPath = z.object({
1466
+ cluster_id: z.string(),
1467
+ fleet_name: z.string()
1468
+ });
1251
1469
  /**
1252
1470
  * Successfully updated.
1253
1471
  */
1254
1472
  export const zUpdateFleetResponse = z.string();
1255
- /**
1256
- * Unique identifier of the cluster. UUID v4 string in canonical form
1257
- */
1258
- export const zQueryClusterParameterClusterId = z.string();
1473
+ export const zQueryClusterPath = z.object({
1474
+ cluster_id: z.string()
1475
+ });
1259
1476
  /**
1260
1477
  * An array of clusters
1261
1478
  */
1262
1479
  export const zListClustersResponse = z.array(zCluster);
1263
- export const zCreateClusterData = zClusterCreateInput;
1480
+ export const zCreateClusterBody = zClusterCreateInput;
1264
1481
  /**
1265
1482
  * Successfully created. Returns created Cluster ID.
1266
1483
  */
1267
1484
  export const zCreateClusterResponse = z.string();
1268
- /**
1269
- * Unique identifier of the cluster. UUID v4 string in canonical form
1270
- */
1271
- export const zDeleteClusterParameterClusterId = z.string();
1485
+ export const zDeleteClusterPath = z.object({
1486
+ cluster_id: z.string()
1487
+ });
1272
1488
  /**
1273
1489
  * Successfully deleted.
1274
1490
  */
1275
1491
  export const zDeleteClusterResponse = z.string();
1276
- /**
1277
- * Unique identifier of the cluster. UUID v4 string in canonical form
1278
- */
1279
- export const zGetClusterParameterClusterId = z.string();
1492
+ export const zGetClusterPath = z.object({
1493
+ cluster_id: z.string()
1494
+ });
1280
1495
  /**
1281
1496
  * Returns a single object containing cluster details.
1282
1497
  */
1283
1498
  export const zGetClusterResponse = zCluster;
1284
- export const zUpdateClusterData = zClusterUpdateInput;
1285
- /**
1286
- * Unique identifier of the cluster. UUID v4 string in canonical form
1287
- */
1288
- export const zUpdateClusterParameterClusterId = z.string();
1499
+ export const zUpdateClusterBody = zClusterUpdateInput;
1500
+ export const zUpdateClusterPath = z.object({
1501
+ cluster_id: z.string()
1502
+ });
1289
1503
  /**
1290
1504
  * Successfully updated. Returns updated cluster details.
1291
1505
  */
1292
1506
  export const zUpdateClusterResponse = zCluster;
1293
- /**
1294
- * Unique identifier of the cluster. UUID v4 string in canonical form
1295
- */
1296
- export const zGetJoinInformationParameterClusterId = z.string();
1507
+ export const zGetJoinInformationPath = z.object({
1508
+ cluster_id: z.string()
1509
+ });
1297
1510
  /**
1298
1511
  * An object of cluster join information
1299
1512
  */
1300
- export const zGetJoinInformationResponse = zCluster;
1513
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1301
1514
  /**
1302
1515
  * An array of invites
1303
1516
  */
1304
1517
  export const zListInvitesResponse = z.array(zInvite);
1305
- export const zCreateInviteData = z.object({
1518
+ export const zCreateInviteBody = z.object({
1306
1519
  email: z.string().optional()
1307
1520
  });
1308
1521
  /**
1309
1522
  * Successfully created. Returns created invite details.
1310
1523
  */
1311
1524
  export const zCreateInviteResponse = zInvite;
1312
- /**
1313
- * Invitation code
1314
- */
1315
- export const zGetInviteParameterCode = z.string();
1525
+ export const zGetInvitePath = z.object({
1526
+ code: z.string()
1527
+ });
1316
1528
  /**
1317
1529
  * Returns a single object containing invite details.
1318
1530
  */
1319
1531
  export const zGetInviteResponse = zInvite;
1320
- /**
1321
- * User email address
1322
- */
1323
- export const zDeleteInviteParameterEmail = z.string();
1532
+ export const zDeleteInvitePath = z.object({
1533
+ email: z.string()
1534
+ });
1324
1535
  /**
1325
1536
  * An array of chart listings in the marketplace.
1326
1537
  */
1327
1538
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1539
+ export const zGetMarketplaceChartFilesPath = z.object({
1540
+ chart_name: z.string(),
1541
+ version_channel: z.string()
1542
+ });
1328
1543
  /**
1329
- * Unique identifier of the chart listing in the marketplace.
1544
+ * Returns an object containing the chart files for the latest matching version.
1330
1545
  */
1331
- export const zGetMarketplaceChartParameterListingId = z.string();
1546
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1332
1547
  /**
1333
- * Returns an object containing the chart listing details.
1548
+ * JSON-RPC 2.0 request payload
1334
1549
  */
1335
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
1550
+ export const zPostMcpBody = z.object({
1551
+ jsonrpc: z.string().optional(),
1552
+ method: z.string().optional(),
1553
+ id: z.union([
1554
+ z.string(),
1555
+ z.number()
1556
+ ]).optional(),
1557
+ params: z.record(z.string(), z.unknown()).optional()
1558
+ });
1559
+ /**
1560
+ * JSON-RPC 2.0 success or error response
1561
+ */
1562
+ export const zPostMcpResponse = z.object({
1563
+ jsonrpc: z.string().optional(),
1564
+ id: z.union([
1565
+ z.string(),
1566
+ z.number()
1567
+ ]).optional(),
1568
+ result: z.record(z.string(), z.unknown()).optional(),
1569
+ error: z.object({
1570
+ code: z.int().optional(),
1571
+ message: z.string().optional()
1572
+ }).optional()
1573
+ });
1336
1574
  /**
1337
1575
  * Returns a single object containing organization details.
1338
1576
  */
1339
1577
  export const zGetOrganizationResponse = zOrganization;
1340
- export const zCreateOrganizationData = zOrganizationCreateInput;
1578
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1341
1579
  /**
1342
- * Returns a list of access token details with masked secrets.
1580
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1581
+ *
1343
1582
  */
1344
- export const zListTokensResponse = z.array(zToken);
1345
- export const zCreateTokenData = zTokenCreateInput;
1583
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1346
1584
  /**
1347
- * Successfully created. Returns created token details with unmasked/raw secret.
1585
+ * List of repositories
1348
1586
  */
1349
- export const zCreateTokenResponse = zToken;
1587
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1588
+ export const zListTagsPath = z.object({
1589
+ region: z.string(),
1590
+ repository: z.string()
1591
+ });
1350
1592
  /**
1351
- * Generated unique identifier of the access token.
1593
+ * Repository with tags
1352
1594
  */
1353
- export const zDeleteTokenParameterTokenId = z.string();
1595
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1596
+ export const zDeleteTagPath = z.object({
1597
+ region: z.string(),
1598
+ repository: z.string(),
1599
+ tag: z.string()
1600
+ });
1601
+ export const zGetTagPath = z.object({
1602
+ region: z.string(),
1603
+ repository: z.string(),
1604
+ tag: z.string()
1605
+ });
1354
1606
  /**
1355
- * Generated unique identifier of the access token.
1607
+ * Tag details
1356
1608
  */
1357
- export const zGetTokenParameterTokenId = z.string();
1609
+ export const zGetTagResponse = zRegistryTag;
1358
1610
  /**
1359
- * Returns access token details with masked secret.
1611
+ * Tickets for the organization.
1360
1612
  */
1361
- export const zGetTokenResponse = zToken;
1362
- export const zUpdateTokenData = zTokenUpdateInput;
1613
+ export const zListTicketsResponse = zTicketListResponse;
1614
+ export const zCreateTicketBody = z.object({
1615
+ payload: z.string().optional(),
1616
+ attachments: z.array(z.string()).optional()
1617
+ });
1363
1618
  /**
1364
- * Generated unique identifier of the access token.
1619
+ * Ticket created.
1365
1620
  */
1366
- export const zUpdateTokenParameterTokenId = z.string();
1621
+ export const zCreateTicketResponse = zTicket;
1622
+ export const zCloseTicketPath = z.object({
1623
+ ticket_id: z.string()
1624
+ });
1367
1625
  /**
1368
- * Successfully updated. Returns updated token details with masked secret.
1626
+ * Ticket closed.
1369
1627
  */
1370
- export const zUpdateTokenResponse = zToken;
1628
+ export const zCloseTicketResponse = zTicket;
1629
+ export const zGetTicketPath = z.object({
1630
+ ticket_id: z.string()
1631
+ });
1371
1632
  /**
1372
- * Generated unique identifier of the access token.
1633
+ * Ticket with messages (internal notes excluded).
1373
1634
  */
1374
- export const zRegenerateTokenParameterTokenId = z.string();
1635
+ export const zGetTicketResponse = zTicket;
1636
+ export const zReplyTicketBody = z.object({
1637
+ payload: z.string().optional(),
1638
+ attachments: z.array(z.string()).optional()
1639
+ });
1640
+ export const zReplyTicketPath = z.object({
1641
+ ticket_id: z.string()
1642
+ });
1375
1643
  /**
1376
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1644
+ * Reply appended.
1377
1645
  */
1378
- export const zRegenerateTokenResponse = zToken;
1646
+ export const zReplyTicketResponse = zTicketMessage;
1647
+ export const zGetTicketAttachmentPath = z.object({
1648
+ ticket_id: z.string(),
1649
+ attachment_id: z.string()
1650
+ });
1379
1651
  /**
1380
- * User email address.
1652
+ * Attachment binary stream.
1381
1653
  */
1382
- export const zListUserOrganizationsParameterEmail = z.string();
1654
+ export const zGetTicketAttachmentResponse = z.string();
1655
+ /**
1656
+ * Returns a list of access token details with masked secrets.
1657
+ */
1658
+ export const zListTokensResponse = z.array(zToken);
1659
+ export const zCreateTokenBody = zTokenCreateInput;
1660
+ /**
1661
+ * Successfully created. Returns created token details with unmasked/raw secret.
1662
+ */
1663
+ export const zCreateTokenResponse = zToken;
1664
+ export const zDeleteTokenPath = z.object({
1665
+ token_id: z.string()
1666
+ });
1667
+ export const zGetTokenPath = z.object({
1668
+ token_id: z.string()
1669
+ });
1670
+ /**
1671
+ * Returns access token details with masked secret.
1672
+ */
1673
+ export const zGetTokenResponse = zToken;
1674
+ export const zUpdateTokenBody = zTokenUpdateInput;
1675
+ export const zUpdateTokenPath = z.object({
1676
+ token_id: z.string()
1677
+ });
1678
+ /**
1679
+ * Successfully updated. Returns updated token details with masked secret.
1680
+ */
1681
+ export const zUpdateTokenResponse = zToken;
1682
+ export const zRegenerateTokenPath = z.object({
1683
+ token_id: z.string()
1684
+ });
1685
+ /**
1686
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1687
+ */
1688
+ export const zRegenerateTokenResponse = zToken;
1689
+ export const zListUserOrganizationsPath = z.object({
1690
+ email: z.string()
1691
+ });
1383
1692
  /**
1384
1693
  * An array of organizations the user belongs to.
1385
1694
  */
@@ -1391,32 +1700,29 @@ export const zListUserOrganizationsResponse = z.array(z.object({
1391
1700
  * An array of users
1392
1701
  */
1393
1702
  export const zListUsersResponse = z.array(zUser);
1394
- export const zCreateUserData = zUserCreateInput;
1703
+ export const zCreateUserBody = zUserCreateInput;
1395
1704
  /**
1396
1705
  * Successfully created. Returns created user details.
1397
1706
  */
1398
1707
  export const zCreateUserResponse = zUser;
1399
- /**
1400
- * Unique user identifier. UUID v4 string in canonical form
1401
- */
1402
- export const zDeleteUserParameterUserId = z.string();
1708
+ export const zDeleteUserPath = z.object({
1709
+ user_id: z.string()
1710
+ });
1403
1711
  /**
1404
1712
  * User profile information
1405
1713
  */
1406
1714
  export const zDeleteUserResponse = zUser;
1407
- /**
1408
- * Unique user identifier. UUID v4 string in canonical form
1409
- */
1410
- export const zGetUserParameterUserId = z.string();
1715
+ export const zGetUserPath = z.object({
1716
+ user_id: z.string()
1717
+ });
1411
1718
  /**
1412
1719
  * User profile information
1413
1720
  */
1414
1721
  export const zGetUserResponse = zUser;
1415
- export const zUpdateUserData = zUserUpdateInput;
1416
- /**
1417
- * Unique user identifier. UUID v4 string in canonical form
1418
- */
1419
- export const zUpdateUserParameterUserId = z.string();
1722
+ export const zUpdateUserBody = zUserUpdateInput;
1723
+ export const zUpdateUserPath = z.object({
1724
+ user_id: z.string()
1725
+ });
1420
1726
  /**
1421
1727
  * Successfully created. Returns created user details.
1422
1728
  */