@cloudfleet/sdk 0.0.1-82e92ad → 0.0.1-84adc67

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/zod.gen.js CHANGED
@@ -1,6 +1,7 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
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(),
@@ -166,22 +167,7 @@ export const zChart = z.object({
166
167
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
167
168
  namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
168
169
  chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
169
- status: z.enum([
170
- 'InstallSucceeded',
171
- 'InstallFailed',
172
- 'UpgradeSucceeded',
173
- 'UpgradeFailed',
174
- 'TestSucceeded',
175
- 'TestFailed',
176
- 'RollbackSucceeded',
177
- 'RollbackFailed',
178
- 'UninstallSucceeded',
179
- 'UninstallFailed',
180
- 'ArtifactFailed',
181
- 'DependencyNotReady',
182
- 'Progressing',
183
- 'SourceNotReady'
184
- ]),
170
+ status: z.string(),
185
171
  version_current: z.string(),
186
172
  created_at: z.string(),
187
173
  updated_at: z.string(),
@@ -194,23 +180,40 @@ export const zChartUpdateInput = z.object({
194
180
  export const zClusterCreateInput = z.object({
195
181
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
196
182
  tier: z.enum(['basic', 'pro']),
197
- region: z.enum([
198
- 'staging-1a',
199
- 'northamerica-central-1',
200
- 'europe-central-1a',
201
- 'northamerica-central-1a'
202
- ]).optional().default('staging-1a'),
203
- version_channel: z.enum([
204
- '1.x.x-cfke.x',
205
- '1.31.x-cfke.x',
206
- '1.32.x-cfke.x',
207
- '1.33.x-cfke.x'
208
- ]).optional().default('1.x.x-cfke.x')
183
+ region: z.string(),
184
+ 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'),
185
+ release_channel: z.enum([
186
+ 'rapid',
187
+ 'stable',
188
+ 'extended'
189
+ ]).optional().default('rapid'),
190
+ features: z.object({
191
+ gpu_sharing_strategy: z.enum([
192
+ 'none',
193
+ 'mps',
194
+ 'time_slicing'
195
+ ]),
196
+ gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
197
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
198
+ }).optional().default({
199
+ gpu_sharing_strategy: 'none',
200
+ gpu_max_shared_clients_per_gpu: 10,
201
+ cilium_socket_lb_host_namespace_only: false
202
+ }),
203
+ networking: z.object({
204
+ pod_cidr: z.string().optional(),
205
+ service_cidr: z.string().optional(),
206
+ cluster_dns: z.string().optional(),
207
+ dual_stack: z.boolean().optional(),
208
+ pod_cidr_v6: z.string().optional(),
209
+ service_cidr_v6: z.string().optional()
210
+ }).optional()
209
211
  });
210
212
  export const zClusterJoinInformation = z.object({
211
213
  certificate_authority: z.string(),
212
214
  endpoint: z.url(),
213
215
  cluster_dns: z.string(),
216
+ pod_cidr: z.string(),
214
217
  auth_key: z.string(),
215
218
  bootstrap_token: z.string(),
216
219
  versions: z.object({
@@ -228,21 +231,35 @@ export const zClusterJoinInformation = z.object({
228
231
  export const zCluster = z.object({
229
232
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
233
  tier: z.enum(['basic', 'pro']),
231
- region: z.enum([
232
- 'staging-1a',
233
- 'northamerica-central-1',
234
- 'europe-central-1a',
235
- 'northamerica-central-1a'
236
- ]).optional().default('staging-1a'),
234
+ region: z.string(),
235
+ networking: z.object({
236
+ pod_cidr: z.string().optional(),
237
+ service_cidr: z.string().optional(),
238
+ cluster_dns: z.string().optional(),
239
+ dual_stack: z.boolean().optional(),
240
+ pod_cidr_v6: z.string().optional(),
241
+ service_cidr_v6: z.string().optional()
242
+ }).optional(),
243
+ release_channel: z.enum([
244
+ 'rapid',
245
+ 'stable',
246
+ 'extended'
247
+ ]).optional(),
248
+ features: z.object({
249
+ gpu_sharing_strategy: z.enum([
250
+ 'none',
251
+ 'mps',
252
+ 'time_slicing'
253
+ ]),
254
+ gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
255
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
256
+ }).optional(),
237
257
  id: z.uuid(),
238
258
  status: z.enum([
239
- 'active',
240
- 'disabled',
241
- 'deleted',
242
259
  'creating',
243
260
  'deployed',
244
- 'failed',
245
- 'updating'
261
+ 'updating',
262
+ 'disabled'
246
263
  ]),
247
264
  endpoint: z.union([
248
265
  z.url(),
@@ -262,67 +279,783 @@ export const zCluster = z.object({
262
279
  export const zClusterUpdateInput = z.object({
263
280
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
264
281
  tier: z.enum(['basic', 'pro']),
265
- 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()
282
+ 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(),
283
+ release_channel: z.enum([
284
+ 'rapid',
285
+ 'stable',
286
+ 'extended'
287
+ ]).optional(),
288
+ features: z.object({
289
+ gpu_sharing_strategy: z.enum([
290
+ 'none',
291
+ 'mps',
292
+ 'time_slicing'
293
+ ]),
294
+ gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
295
+ cilium_socket_lb_host_namespace_only: z.boolean().optional()
296
+ }).optional()
266
297
  });
267
298
  export const zFleetCreateInput = z.object({
268
299
  limits: z.object({
269
- cpu: z.number().gte(0)
300
+ cpu: z.int().gte(0).lte(100000).optional()
270
301
  }).optional(),
271
302
  gcp: z.object({
272
- enabled: z.boolean().optional().default(true),
273
- project: z.string()
303
+ enabled: z.boolean(),
304
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
274
305
  }).optional(),
275
306
  hetzner: z.object({
276
- enabled: z.boolean().optional().default(true),
277
- apiKey: z.string()
307
+ enabled: z.boolean(),
308
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
278
309
  }).optional(),
279
310
  aws: z.object({
280
- enabled: z.boolean().optional().default(true),
281
- controllerRoleArn: z.string()
311
+ enabled: z.boolean(),
312
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
282
313
  }).optional(),
314
+ constraints: z.object({
315
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
316
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
317
+ 'cfke.io/instance-family': z.array(z.enum([
318
+ 'a1',
319
+ 'a2',
320
+ 'a3',
321
+ 'a4',
322
+ 'c1',
323
+ 'c2',
324
+ 'c2d',
325
+ 'c3',
326
+ 'c3d',
327
+ 'c4',
328
+ 'c4a',
329
+ 'c4d',
330
+ 'c5',
331
+ 'c5a',
332
+ 'c5ad',
333
+ 'c5d',
334
+ 'c5n',
335
+ 'c6a',
336
+ 'c6g',
337
+ 'c6gd',
338
+ 'c6gn',
339
+ 'c6i',
340
+ 'c6id',
341
+ 'c6in',
342
+ 'c7a',
343
+ 'c7g',
344
+ 'c7gd',
345
+ 'c7gn',
346
+ 'c7i',
347
+ 'c7i-flex',
348
+ 'c8g',
349
+ 'c8gd',
350
+ 'cax',
351
+ 'ccx',
352
+ 'cpx',
353
+ 'cx',
354
+ 'd2',
355
+ 'd3',
356
+ 'd3en',
357
+ 'dl1',
358
+ 'dl2q',
359
+ 'e2',
360
+ 'f1',
361
+ 'f2',
362
+ 'g1',
363
+ 'g2',
364
+ 'g4ad',
365
+ 'g4dn',
366
+ 'g5',
367
+ 'g5g',
368
+ 'g6',
369
+ 'g6e',
370
+ 'gr6',
371
+ 'h1',
372
+ 'h3',
373
+ 'hpc6a',
374
+ 'hpc6id',
375
+ 'hpc7a',
376
+ 'hpc7g',
377
+ 'i2',
378
+ 'i3',
379
+ 'i3en',
380
+ 'i4g',
381
+ 'i4i',
382
+ 'i7i',
383
+ 'i7ie',
384
+ 'i8g',
385
+ 'im4gn',
386
+ 'inf1',
387
+ 'inf2',
388
+ 'is4gen',
389
+ 'm1',
390
+ 'm2',
391
+ 'm3',
392
+ 'm4',
393
+ 'm5',
394
+ 'm5a',
395
+ 'm5ad',
396
+ 'm5d',
397
+ 'm5dn',
398
+ 'm5n',
399
+ 'm5zn',
400
+ 'm6a',
401
+ 'm6g',
402
+ 'm6gd',
403
+ 'm6i',
404
+ 'm6id',
405
+ 'm6idn',
406
+ 'm6in',
407
+ 'm7a',
408
+ 'm7g',
409
+ 'm7gd',
410
+ 'm7i',
411
+ 'm7i-flex',
412
+ 'm8g',
413
+ 'm8gd',
414
+ 'n1',
415
+ 'n2',
416
+ 'n2d',
417
+ 'n4',
418
+ 'p3',
419
+ 'p3dn',
420
+ 'p4d',
421
+ 'p4de',
422
+ 'p5',
423
+ 'p5e',
424
+ 'p5en',
425
+ 'p6-b200',
426
+ 'r3',
427
+ 'r4',
428
+ 'r5',
429
+ 'r5a',
430
+ 'r5ad',
431
+ 'r5b',
432
+ 'r5d',
433
+ 'r5dn',
434
+ 'r5n',
435
+ 'r6a',
436
+ 'r6g',
437
+ 'r6gd',
438
+ 'r6i',
439
+ 'r6id',
440
+ 'r6idn',
441
+ 'r6in',
442
+ 'r7a',
443
+ 'r7g',
444
+ 'r7gd',
445
+ 'r7i',
446
+ 'r7iz',
447
+ 'r8g',
448
+ 'r8gd',
449
+ 't2',
450
+ 't2a',
451
+ 't2d',
452
+ 't3',
453
+ 't3a',
454
+ 't4g',
455
+ 'trn1',
456
+ 'trn1n',
457
+ 'u-3tb1',
458
+ 'u-6tb1',
459
+ 'u7i-12tb',
460
+ 'u7i-6tb',
461
+ 'u7i-8tb',
462
+ 'u7in-16tb',
463
+ 'u7in-24tb',
464
+ 'u7in-32tb',
465
+ 'vt1',
466
+ 'x1',
467
+ 'x1e',
468
+ 'x2gd',
469
+ 'x2idn',
470
+ 'x2iedn',
471
+ 'x2iezn',
472
+ 'x4',
473
+ 'x8g',
474
+ 'z1d',
475
+ 'z3'
476
+ ])).optional(),
477
+ 'topology.kubernetes.io/region': z.array(z.enum([
478
+ 'africa-south1',
479
+ 'ap-northeast-1',
480
+ 'ap-northeast-2',
481
+ 'ap-northeast-3',
482
+ 'ap-south-1',
483
+ 'ap-southeast-1',
484
+ 'ap-southeast-2',
485
+ 'ash',
486
+ 'asia-east1',
487
+ 'asia-east2',
488
+ 'asia-northeast1',
489
+ 'asia-northeast2',
490
+ 'asia-northeast3',
491
+ 'asia-south1',
492
+ 'asia-south2',
493
+ 'asia-southeast1',
494
+ 'asia-southeast2',
495
+ 'australia-southeast1',
496
+ 'australia-southeast2',
497
+ 'ca-central-1',
498
+ 'eu-central-1',
499
+ 'eu-central-2',
500
+ 'eu-north-1',
501
+ 'eu-west-1',
502
+ 'eu-west-2',
503
+ 'eu-west-3',
504
+ 'europe-central2',
505
+ 'europe-north1',
506
+ 'europe-southwest1',
507
+ 'europe-west1',
508
+ 'europe-west10',
509
+ 'europe-west12',
510
+ 'europe-west2',
511
+ 'europe-west3',
512
+ 'europe-west4',
513
+ 'europe-west6',
514
+ 'europe-west8',
515
+ 'europe-west9',
516
+ 'fsn1',
517
+ 'hel1',
518
+ 'hil',
519
+ 'me-central1',
520
+ 'me-central2',
521
+ 'me-west1',
522
+ 'nbg1',
523
+ 'northamerica-northeast1',
524
+ 'northamerica-northeast2',
525
+ 'sa-east-1',
526
+ 'sin',
527
+ 'southamerica-east1',
528
+ 'southamerica-west1',
529
+ 'us-central1',
530
+ 'us-east-1',
531
+ 'us-east-2',
532
+ 'us-east1',
533
+ 'us-east4',
534
+ 'us-east5',
535
+ 'us-south1',
536
+ 'us-west-1',
537
+ 'us-west-2',
538
+ 'us-west1',
539
+ 'us-west2',
540
+ 'us-west3',
541
+ 'us-west4'
542
+ ])).optional()
543
+ }).optional(),
544
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
283
545
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
284
546
  });
285
547
  export const zFleet = z.object({
286
548
  limits: z.object({
287
- cpu: z.number().gte(0)
549
+ cpu: z.int().gte(0).lte(100000).optional()
288
550
  }).optional(),
289
551
  gcp: z.object({
290
- enabled: z.boolean().optional().default(true),
291
- project: z.string()
552
+ enabled: z.boolean(),
553
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
292
554
  }).optional(),
293
555
  hetzner: z.object({
294
- enabled: z.boolean().optional().default(true),
295
- apiKey: z.string()
556
+ enabled: z.boolean(),
557
+ apiKey: z.string().regex(/^\*{64}$/).optional()
296
558
  }).optional(),
297
559
  aws: z.object({
298
- enabled: z.boolean().optional().default(true),
299
- controllerRoleArn: z.string()
560
+ enabled: z.boolean(),
561
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
300
562
  }).optional(),
301
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
563
+ constraints: z.object({
564
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
565
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
566
+ 'cfke.io/instance-family': z.array(z.enum([
567
+ 'a1',
568
+ 'a2',
569
+ 'a3',
570
+ 'a4',
571
+ 'c1',
572
+ 'c2',
573
+ 'c2d',
574
+ 'c3',
575
+ 'c3d',
576
+ 'c4',
577
+ 'c4a',
578
+ 'c4d',
579
+ 'c5',
580
+ 'c5a',
581
+ 'c5ad',
582
+ 'c5d',
583
+ 'c5n',
584
+ 'c6a',
585
+ 'c6g',
586
+ 'c6gd',
587
+ 'c6gn',
588
+ 'c6i',
589
+ 'c6id',
590
+ 'c6in',
591
+ 'c7a',
592
+ 'c7g',
593
+ 'c7gd',
594
+ 'c7gn',
595
+ 'c7i',
596
+ 'c7i-flex',
597
+ 'c8g',
598
+ 'c8gd',
599
+ 'cax',
600
+ 'ccx',
601
+ 'cpx',
602
+ 'cx',
603
+ 'd2',
604
+ 'd3',
605
+ 'd3en',
606
+ 'dl1',
607
+ 'dl2q',
608
+ 'e2',
609
+ 'f1',
610
+ 'f2',
611
+ 'g1',
612
+ 'g2',
613
+ 'g4ad',
614
+ 'g4dn',
615
+ 'g5',
616
+ 'g5g',
617
+ 'g6',
618
+ 'g6e',
619
+ 'gr6',
620
+ 'h1',
621
+ 'h3',
622
+ 'hpc6a',
623
+ 'hpc6id',
624
+ 'hpc7a',
625
+ 'hpc7g',
626
+ 'i2',
627
+ 'i3',
628
+ 'i3en',
629
+ 'i4g',
630
+ 'i4i',
631
+ 'i7i',
632
+ 'i7ie',
633
+ 'i8g',
634
+ 'im4gn',
635
+ 'inf1',
636
+ 'inf2',
637
+ 'is4gen',
638
+ 'm1',
639
+ 'm2',
640
+ 'm3',
641
+ 'm4',
642
+ 'm5',
643
+ 'm5a',
644
+ 'm5ad',
645
+ 'm5d',
646
+ 'm5dn',
647
+ 'm5n',
648
+ 'm5zn',
649
+ 'm6a',
650
+ 'm6g',
651
+ 'm6gd',
652
+ 'm6i',
653
+ 'm6id',
654
+ 'm6idn',
655
+ 'm6in',
656
+ 'm7a',
657
+ 'm7g',
658
+ 'm7gd',
659
+ 'm7i',
660
+ 'm7i-flex',
661
+ 'm8g',
662
+ 'm8gd',
663
+ 'n1',
664
+ 'n2',
665
+ 'n2d',
666
+ 'n4',
667
+ 'p3',
668
+ 'p3dn',
669
+ 'p4d',
670
+ 'p4de',
671
+ 'p5',
672
+ 'p5e',
673
+ 'p5en',
674
+ 'p6-b200',
675
+ 'r3',
676
+ 'r4',
677
+ 'r5',
678
+ 'r5a',
679
+ 'r5ad',
680
+ 'r5b',
681
+ 'r5d',
682
+ 'r5dn',
683
+ 'r5n',
684
+ 'r6a',
685
+ 'r6g',
686
+ 'r6gd',
687
+ 'r6i',
688
+ 'r6id',
689
+ 'r6idn',
690
+ 'r6in',
691
+ 'r7a',
692
+ 'r7g',
693
+ 'r7gd',
694
+ 'r7i',
695
+ 'r7iz',
696
+ 'r8g',
697
+ 'r8gd',
698
+ 't2',
699
+ 't2a',
700
+ 't2d',
701
+ 't3',
702
+ 't3a',
703
+ 't4g',
704
+ 'trn1',
705
+ 'trn1n',
706
+ 'u-3tb1',
707
+ 'u-6tb1',
708
+ 'u7i-12tb',
709
+ 'u7i-6tb',
710
+ 'u7i-8tb',
711
+ 'u7in-16tb',
712
+ 'u7in-24tb',
713
+ 'u7in-32tb',
714
+ 'vt1',
715
+ 'x1',
716
+ 'x1e',
717
+ 'x2gd',
718
+ 'x2idn',
719
+ 'x2iedn',
720
+ 'x2iezn',
721
+ 'x4',
722
+ 'x8g',
723
+ 'z1d',
724
+ 'z3'
725
+ ])).optional(),
726
+ 'topology.kubernetes.io/region': z.array(z.enum([
727
+ 'africa-south1',
728
+ 'ap-northeast-1',
729
+ 'ap-northeast-2',
730
+ 'ap-northeast-3',
731
+ 'ap-south-1',
732
+ 'ap-southeast-1',
733
+ 'ap-southeast-2',
734
+ 'ash',
735
+ 'asia-east1',
736
+ 'asia-east2',
737
+ 'asia-northeast1',
738
+ 'asia-northeast2',
739
+ 'asia-northeast3',
740
+ 'asia-south1',
741
+ 'asia-south2',
742
+ 'asia-southeast1',
743
+ 'asia-southeast2',
744
+ 'australia-southeast1',
745
+ 'australia-southeast2',
746
+ 'ca-central-1',
747
+ 'eu-central-1',
748
+ 'eu-central-2',
749
+ 'eu-north-1',
750
+ 'eu-west-1',
751
+ 'eu-west-2',
752
+ 'eu-west-3',
753
+ 'europe-central2',
754
+ 'europe-north1',
755
+ 'europe-southwest1',
756
+ 'europe-west1',
757
+ 'europe-west10',
758
+ 'europe-west12',
759
+ 'europe-west2',
760
+ 'europe-west3',
761
+ 'europe-west4',
762
+ 'europe-west6',
763
+ 'europe-west8',
764
+ 'europe-west9',
765
+ 'fsn1',
766
+ 'hel1',
767
+ 'hil',
768
+ 'me-central1',
769
+ 'me-central2',
770
+ 'me-west1',
771
+ 'nbg1',
772
+ 'northamerica-northeast1',
773
+ 'northamerica-northeast2',
774
+ 'sa-east-1',
775
+ 'sin',
776
+ 'southamerica-east1',
777
+ 'southamerica-west1',
778
+ 'us-central1',
779
+ 'us-east-1',
780
+ 'us-east-2',
781
+ 'us-east1',
782
+ 'us-east4',
783
+ 'us-east5',
784
+ 'us-south1',
785
+ 'us-west-1',
786
+ 'us-west-2',
787
+ 'us-west1',
788
+ 'us-west2',
789
+ 'us-west3',
790
+ 'us-west4'
791
+ ])).optional()
792
+ }).optional(),
793
+ scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
794
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
795
+ ready: z.boolean(),
796
+ status_message: z.string().optional(),
797
+ created_at: z.string(),
798
+ updated_at: z.string()
302
799
  });
303
800
  export const zFleetUpdateInput = z.object({
304
801
  limits: z.object({
305
- cpu: z.number().gte(0)
802
+ cpu: z.int().gte(0).lte(100000).optional()
306
803
  }).optional(),
307
804
  gcp: z.object({
308
- enabled: z.boolean().optional().default(true),
309
- project: z.string()
805
+ enabled: z.boolean(),
806
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
310
807
  }).optional(),
311
808
  hetzner: z.object({
312
- enabled: z.boolean().optional().default(true),
313
- apiKey: z.string()
809
+ enabled: z.boolean(),
810
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
314
811
  }).optional(),
315
812
  aws: z.object({
316
- enabled: z.boolean().optional().default(true),
317
- controllerRoleArn: z.string()
318
- }).optional()
813
+ enabled: z.boolean(),
814
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
815
+ }).optional(),
816
+ constraints: z.object({
817
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
818
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
819
+ 'cfke.io/instance-family': z.array(z.enum([
820
+ 'a1',
821
+ 'a2',
822
+ 'a3',
823
+ 'a4',
824
+ 'c1',
825
+ 'c2',
826
+ 'c2d',
827
+ 'c3',
828
+ 'c3d',
829
+ 'c4',
830
+ 'c4a',
831
+ 'c4d',
832
+ 'c5',
833
+ 'c5a',
834
+ 'c5ad',
835
+ 'c5d',
836
+ 'c5n',
837
+ 'c6a',
838
+ 'c6g',
839
+ 'c6gd',
840
+ 'c6gn',
841
+ 'c6i',
842
+ 'c6id',
843
+ 'c6in',
844
+ 'c7a',
845
+ 'c7g',
846
+ 'c7gd',
847
+ 'c7gn',
848
+ 'c7i',
849
+ 'c7i-flex',
850
+ 'c8g',
851
+ 'c8gd',
852
+ 'cax',
853
+ 'ccx',
854
+ 'cpx',
855
+ 'cx',
856
+ 'd2',
857
+ 'd3',
858
+ 'd3en',
859
+ 'dl1',
860
+ 'dl2q',
861
+ 'e2',
862
+ 'f1',
863
+ 'f2',
864
+ 'g1',
865
+ 'g2',
866
+ 'g4ad',
867
+ 'g4dn',
868
+ 'g5',
869
+ 'g5g',
870
+ 'g6',
871
+ 'g6e',
872
+ 'gr6',
873
+ 'h1',
874
+ 'h3',
875
+ 'hpc6a',
876
+ 'hpc6id',
877
+ 'hpc7a',
878
+ 'hpc7g',
879
+ 'i2',
880
+ 'i3',
881
+ 'i3en',
882
+ 'i4g',
883
+ 'i4i',
884
+ 'i7i',
885
+ 'i7ie',
886
+ 'i8g',
887
+ 'im4gn',
888
+ 'inf1',
889
+ 'inf2',
890
+ 'is4gen',
891
+ 'm1',
892
+ 'm2',
893
+ 'm3',
894
+ 'm4',
895
+ 'm5',
896
+ 'm5a',
897
+ 'm5ad',
898
+ 'm5d',
899
+ 'm5dn',
900
+ 'm5n',
901
+ 'm5zn',
902
+ 'm6a',
903
+ 'm6g',
904
+ 'm6gd',
905
+ 'm6i',
906
+ 'm6id',
907
+ 'm6idn',
908
+ 'm6in',
909
+ 'm7a',
910
+ 'm7g',
911
+ 'm7gd',
912
+ 'm7i',
913
+ 'm7i-flex',
914
+ 'm8g',
915
+ 'm8gd',
916
+ 'n1',
917
+ 'n2',
918
+ 'n2d',
919
+ 'n4',
920
+ 'p3',
921
+ 'p3dn',
922
+ 'p4d',
923
+ 'p4de',
924
+ 'p5',
925
+ 'p5e',
926
+ 'p5en',
927
+ 'p6-b200',
928
+ 'r3',
929
+ 'r4',
930
+ 'r5',
931
+ 'r5a',
932
+ 'r5ad',
933
+ 'r5b',
934
+ 'r5d',
935
+ 'r5dn',
936
+ 'r5n',
937
+ 'r6a',
938
+ 'r6g',
939
+ 'r6gd',
940
+ 'r6i',
941
+ 'r6id',
942
+ 'r6idn',
943
+ 'r6in',
944
+ 'r7a',
945
+ 'r7g',
946
+ 'r7gd',
947
+ 'r7i',
948
+ 'r7iz',
949
+ 'r8g',
950
+ 'r8gd',
951
+ 't2',
952
+ 't2a',
953
+ 't2d',
954
+ 't3',
955
+ 't3a',
956
+ 't4g',
957
+ 'trn1',
958
+ 'trn1n',
959
+ 'u-3tb1',
960
+ 'u-6tb1',
961
+ 'u7i-12tb',
962
+ 'u7i-6tb',
963
+ 'u7i-8tb',
964
+ 'u7in-16tb',
965
+ 'u7in-24tb',
966
+ 'u7in-32tb',
967
+ 'vt1',
968
+ 'x1',
969
+ 'x1e',
970
+ 'x2gd',
971
+ 'x2idn',
972
+ 'x2iedn',
973
+ 'x2iezn',
974
+ 'x4',
975
+ 'x8g',
976
+ 'z1d',
977
+ 'z3'
978
+ ])).optional(),
979
+ 'topology.kubernetes.io/region': z.array(z.enum([
980
+ 'africa-south1',
981
+ 'ap-northeast-1',
982
+ 'ap-northeast-2',
983
+ 'ap-northeast-3',
984
+ 'ap-south-1',
985
+ 'ap-southeast-1',
986
+ 'ap-southeast-2',
987
+ 'ash',
988
+ 'asia-east1',
989
+ 'asia-east2',
990
+ 'asia-northeast1',
991
+ 'asia-northeast2',
992
+ 'asia-northeast3',
993
+ 'asia-south1',
994
+ 'asia-south2',
995
+ 'asia-southeast1',
996
+ 'asia-southeast2',
997
+ 'australia-southeast1',
998
+ 'australia-southeast2',
999
+ 'ca-central-1',
1000
+ 'eu-central-1',
1001
+ 'eu-central-2',
1002
+ 'eu-north-1',
1003
+ 'eu-west-1',
1004
+ 'eu-west-2',
1005
+ 'eu-west-3',
1006
+ 'europe-central2',
1007
+ 'europe-north1',
1008
+ 'europe-southwest1',
1009
+ 'europe-west1',
1010
+ 'europe-west10',
1011
+ 'europe-west12',
1012
+ 'europe-west2',
1013
+ 'europe-west3',
1014
+ 'europe-west4',
1015
+ 'europe-west6',
1016
+ 'europe-west8',
1017
+ 'europe-west9',
1018
+ 'fsn1',
1019
+ 'hel1',
1020
+ 'hil',
1021
+ 'me-central1',
1022
+ 'me-central2',
1023
+ 'me-west1',
1024
+ 'nbg1',
1025
+ 'northamerica-northeast1',
1026
+ 'northamerica-northeast2',
1027
+ 'sa-east-1',
1028
+ 'sin',
1029
+ 'southamerica-east1',
1030
+ 'southamerica-west1',
1031
+ 'us-central1',
1032
+ 'us-east-1',
1033
+ 'us-east-2',
1034
+ 'us-east1',
1035
+ 'us-east4',
1036
+ 'us-east5',
1037
+ 'us-south1',
1038
+ 'us-west-1',
1039
+ 'us-west-2',
1040
+ 'us-west1',
1041
+ 'us-west2',
1042
+ 'us-west3',
1043
+ 'us-west4'
1044
+ ])).optional()
1045
+ }).optional(),
1046
+ scalingProfile: z.enum(['aggressive', 'conservative'])
1047
+ });
1048
+ export const zInviteCreateInput = z.object({
1049
+ email: z.email(),
1050
+ role: z.enum(['Administrator', 'User']).optional().default('User')
319
1051
  });
320
1052
  export const zInvite = z.object({
321
1053
  id: z.string().optional(),
322
1054
  organization_id: z.uuid().optional(),
323
1055
  date_created: z.iso.datetime(),
324
1056
  email: z.email().optional(),
325
- code: z.string().optional()
1057
+ code: z.string().optional(),
1058
+ role: z.enum(['Administrator', 'User']).optional().default('User')
326
1059
  });
327
1060
  export const zInvoice = z.object({
328
1061
  id: z.string().optional(),
@@ -362,15 +1095,20 @@ export const zMarketplaceListing = z.object({
362
1095
  }).optional()
363
1096
  });
364
1097
  export const zOrganizationCreateInput = z.object({
1098
+ type: z.enum(['business', 'personal']),
365
1099
  email: z.email(),
366
- first_name: z.string(),
367
- last_name: z.string(),
1100
+ first_name: z.string().min(1),
1101
+ last_name: z.string().min(1),
368
1102
  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,}$/),
369
1103
  password: z.string().min(8)
370
1104
  });
1105
+ export const zOrganizationCreateOutput = z.object({
1106
+ id: z.string()
1107
+ });
371
1108
  export const zOrganization = z.object({
372
1109
  id: z.uuid(),
373
1110
  name: z.string().min(2).max(120).optional(),
1111
+ type: z.enum(['business', 'personal']),
374
1112
  date_created: z.iso.datetime(),
375
1113
  quota: z.object({
376
1114
  basic_clusters_max: z.int().gte(0),
@@ -390,26 +1128,28 @@ export const zOrganization = z.object({
390
1128
  'active',
391
1129
  'closed',
392
1130
  'suspended'
1131
+ ]),
1132
+ verification: z.enum([
1133
+ 'none',
1134
+ 'submitted',
1135
+ 'verified'
393
1136
  ])
394
1137
  });
395
1138
  export const zPaymentMethod = z.object({
396
- id: z.uuid(),
397
- setup: z.boolean(),
398
- type: z.enum(['card']),
1139
+ id: z.string(),
1140
+ type: z.enum([
1141
+ 'card',
1142
+ 'sepa_debit',
1143
+ 'bank_transfer'
1144
+ ]),
399
1145
  last4: z.string(),
400
1146
  exp_month: z.int().gte(1).lte(12),
401
- exp_year: z.int().gte(2024),
402
- brand: z.enum([
403
- 'amex',
404
- 'diners',
405
- 'discover',
406
- 'eftpos_au',
407
- 'jcb',
408
- 'mastercard',
409
- 'unionpay',
410
- 'visa',
411
- 'unknown'
412
- ])
1147
+ exp_year: z.int(),
1148
+ brand: z.string(),
1149
+ iban: z.string(),
1150
+ bic: z.string(),
1151
+ account_holder_name: z.string(),
1152
+ is_default: z.boolean()
413
1153
  });
414
1154
  export const zPlatformQuota = z.object({
415
1155
  basic_clusters_max: z.int().gte(0),
@@ -613,9 +1353,7 @@ export const zUserCreateInput = z.object({
613
1353
  first_name: z.string().min(1).max(50),
614
1354
  last_name: z.string().min(1).max(50),
615
1355
  code: z.string(),
616
- password: z.string().min(8),
617
- status: z.enum(['active', 'inactive']).optional(),
618
- role: z.enum(['Administrator', 'User']).optional()
1356
+ password: z.string().min(8)
619
1357
  });
620
1358
  export const zUser = z.object({
621
1359
  email: z.email(),
@@ -633,202 +1371,162 @@ export const zUserUpdateInput = z.object({
633
1371
  role: z.enum(['Administrator', 'User']).optional(),
634
1372
  status: z.enum(['active', 'inactive']).optional()
635
1373
  });
636
- export const zGetUsageQuery = z.object({
637
- granularity: z.enum([
638
- 'hourly',
639
- 'daily',
640
- 'monthly'
641
- ]).optional().default('daily')
1374
+ export const zListUserOrganizationsPath = z.object({
1375
+ email: z.string()
642
1376
  });
643
1377
  /**
644
- * Usage data with facets for filtering
1378
+ * An array of organizations the user belongs to.
645
1379
  */
646
- export const zGetUsageResponse = zUsageResponse;
1380
+ export const zListUserOrganizationsResponse = z.array(z.object({
1381
+ realm: z.string().optional(),
1382
+ displayName: z.string().optional()
1383
+ }));
647
1384
  /**
648
- * Redacted payment card information.
1385
+ * An array of users
649
1386
  */
650
- export const zGetPaymentMethodResponse = zPaymentMethod;
1387
+ export const zListUsersResponse = z.array(zUser);
1388
+ export const zCreateUserBody = zUserCreateInput;
651
1389
  /**
652
- * 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.
653
- *
1390
+ * Successfully created. Returns created user details.
654
1391
  */
655
- export const zGetPaymentMethodSecretResponse = z.object({
656
- id: z.string().optional()
1392
+ export const zCreateUserResponse = zUser;
1393
+ export const zDeleteUserPath = z.object({
1394
+ user_id: z.string()
657
1395
  });
658
1396
  /**
659
- * An array of usage records.
660
- */
661
- export const zListInvoicesResponse = z.array(zInvoice);
662
- /**
663
- * Returns a single object containing organization contact and billing address details.
664
- */
665
- export const zGetContactResponse = zBillingContact;
666
- export const zUpdateContactBody = zBillingContact;
667
- /**
668
- * Successfully updated. Returns updated organization details.
669
- */
670
- export const zUpdateContactResponse = zBillingContact;
671
- /**
672
- * An array of the applied promotional credits records.
1397
+ * User profile information
673
1398
  */
674
- export const zGetCreditsResponse = z.array(zBillingCredits);
675
- export const zRedeemCreditsBody = z.object({
676
- code: z.string().optional()
677
- });
678
- export const zListChartsPath = z.object({
679
- cluster_id: z.string()
1399
+ export const zDeleteUserResponse = zUser;
1400
+ export const zGetUserPath = z.object({
1401
+ user_id: z.string()
680
1402
  });
681
1403
  /**
682
- * An array of charts
1404
+ * User profile information
683
1405
  */
684
- export const zListChartsResponse = z.array(zChart);
685
- export const zCreateChartBody = zChartCreateInput;
686
- export const zCreateChartPath = z.object({
687
- cluster_id: z.string()
1406
+ export const zGetUserResponse = zUser;
1407
+ export const zUpdateUserBody = zUserUpdateInput;
1408
+ export const zUpdateUserPath = z.object({
1409
+ user_id: z.string()
688
1410
  });
689
1411
  /**
690
- * Successfully created. Returns created Chart ID.
1412
+ * Successfully created. Returns created user details.
691
1413
  */
692
- export const zCreateChartResponse = z.string();
693
- export const zDeleteChartPath = z.object({
694
- cluster_id: z.string(),
695
- chart_name: z.string()
696
- });
1414
+ export const zUpdateUserResponse = zUser;
697
1415
  /**
698
- * Successfully deleted.
1416
+ * Returns a list of access token details with masked secrets.
699
1417
  */
700
- export const zDeleteChartResponse = z.string();
701
- export const zGetChartPath = z.object({
702
- cluster_id: z.string(),
703
- chart_name: z.string()
704
- });
1418
+ export const zListTokensResponse = z.array(zToken);
1419
+ export const zCreateTokenBody = zTokenCreateInput;
705
1420
  /**
706
- * Returns a single object containing chart details.
1421
+ * Successfully created. Returns created token details with unmasked/raw secret.
707
1422
  */
708
- export const zGetChartResponse = zChart;
709
- export const zUpdateChartBody = zChartUpdateInput;
710
- export const zUpdateChartPath = z.object({
711
- cluster_id: z.string(),
712
- chart_name: z.string()
1423
+ export const zCreateTokenResponse = zToken;
1424
+ export const zDeleteTokenPath = z.object({
1425
+ token_id: z.string()
713
1426
  });
714
- /**
715
- * Successfully updated.
716
- */
717
- export const zUpdateChartResponse = z.string();
718
- export const zListFleetsPath = z.object({
719
- cluster_id: z.string()
1427
+ export const zGetTokenPath = z.object({
1428
+ token_id: z.string()
720
1429
  });
721
1430
  /**
722
- * An array of fleets
1431
+ * Returns access token details with masked secret.
723
1432
  */
724
- export const zListFleetsResponse = z.array(zFleet);
725
- export const zCreateFleetBody = zFleetCreateInput;
726
- export const zCreateFleetPath = z.object({
727
- cluster_id: z.string()
1433
+ export const zGetTokenResponse = zToken;
1434
+ export const zUpdateTokenBody = zTokenUpdateInput;
1435
+ export const zUpdateTokenPath = z.object({
1436
+ token_id: z.string()
728
1437
  });
729
1438
  /**
730
- * Successfully created. Returns created Fleet ID.
1439
+ * Successfully updated. Returns updated token details with masked secret.
731
1440
  */
732
- export const zCreateFleetResponse = z.string();
733
- export const zDeleteFleetPath = z.object({
734
- cluster_id: z.string(),
735
- fleet_name: z.string()
1441
+ export const zUpdateTokenResponse = zToken;
1442
+ export const zRegenerateTokenPath = z.object({
1443
+ token_id: z.string()
736
1444
  });
737
1445
  /**
738
- * Successfully deleted.
1446
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
739
1447
  */
740
- export const zDeleteFleetResponse = z.string();
741
- export const zGetFleetPath = z.object({
742
- cluster_id: z.string(),
743
- fleet_name: z.string()
744
- });
1448
+ export const zRegenerateTokenResponse = zToken;
745
1449
  /**
746
- * Returns a single object containing fleet details.
1450
+ * Tickets for the organization.
747
1451
  */
748
- export const zGetFleetResponse = zFleet;
749
- export const zUpdateFleetBody = zFleetUpdateInput;
750
- export const zUpdateFleetPath = z.object({
751
- cluster_id: z.string(),
752
- fleet_name: z.string()
1452
+ export const zListTicketsResponse = zTicketListResponse;
1453
+ export const zCreateTicketBody = z.object({
1454
+ payload: z.string().optional(),
1455
+ attachments: z.array(z.string()).optional()
753
1456
  });
754
1457
  /**
755
- * Successfully updated.
1458
+ * Ticket created.
756
1459
  */
757
- export const zUpdateFleetResponse = z.string();
758
- export const zQueryClusterPath = z.object({
759
- cluster_id: z.string()
1460
+ export const zCreateTicketResponse = zTicket;
1461
+ export const zCloseTicketPath = z.object({
1462
+ ticket_id: z.string()
760
1463
  });
761
1464
  /**
762
- * An array of clusters
763
- */
764
- export const zListClustersResponse = z.array(zCluster);
765
- export const zCreateClusterBody = zClusterCreateInput;
766
- /**
767
- * Successfully created. Returns created Cluster ID.
1465
+ * Ticket closed.
768
1466
  */
769
- export const zCreateClusterResponse = z.string();
770
- export const zDeleteClusterPath = z.object({
771
- cluster_id: z.string()
1467
+ export const zCloseTicketResponse = zTicket;
1468
+ export const zGetTicketPath = z.object({
1469
+ ticket_id: z.string()
772
1470
  });
773
1471
  /**
774
- * Successfully deleted.
1472
+ * Ticket with messages (internal notes excluded).
775
1473
  */
776
- export const zDeleteClusterResponse = z.string();
777
- export const zGetClusterPath = z.object({
778
- cluster_id: z.string()
1474
+ export const zGetTicketResponse = zTicket;
1475
+ export const zReplyTicketBody = z.object({
1476
+ payload: z.string().optional(),
1477
+ attachments: z.array(z.string()).optional()
779
1478
  });
780
- /**
781
- * Returns a single object containing cluster details.
782
- */
783
- export const zGetClusterResponse = zCluster;
784
- export const zUpdateClusterBody = zClusterUpdateInput;
785
- export const zUpdateClusterPath = z.object({
786
- cluster_id: z.string()
1479
+ export const zReplyTicketPath = z.object({
1480
+ ticket_id: z.string()
787
1481
  });
788
1482
  /**
789
- * Successfully updated. Returns updated cluster details.
1483
+ * Reply appended.
790
1484
  */
791
- export const zUpdateClusterResponse = zCluster;
792
- export const zGetJoinInformationPath = z.object({
793
- cluster_id: z.string()
1485
+ export const zReplyTicketResponse = zTicketMessage;
1486
+ export const zGetTicketAttachmentPath = z.object({
1487
+ ticket_id: z.string(),
1488
+ attachment_id: z.string()
794
1489
  });
795
1490
  /**
796
- * An object of cluster join information
1491
+ * Attachment binary stream.
797
1492
  */
798
- export const zGetJoinInformationResponse = zClusterJoinInformation;
1493
+ export const zGetTicketAttachmentResponse = z.string();
799
1494
  /**
800
- * An array of invites
1495
+ * List of repositories
801
1496
  */
802
- export const zListInvitesResponse = z.array(zInvite);
803
- export const zCreateInviteBody = z.object({
804
- email: z.string().optional()
1497
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1498
+ export const zListTagsPath = z.object({
1499
+ region: z.string(),
1500
+ repository: z.string()
805
1501
  });
806
1502
  /**
807
- * Successfully created. Returns created invite details.
1503
+ * Repository with tags
808
1504
  */
809
- export const zCreateInviteResponse = zInvite;
810
- export const zGetInvitePath = z.object({
811
- code: z.string()
1505
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1506
+ export const zDeleteTagPath = z.object({
1507
+ region: z.string(),
1508
+ repository: z.string(),
1509
+ tag: z.string()
1510
+ });
1511
+ export const zGetTagPath = z.object({
1512
+ region: z.string(),
1513
+ repository: z.string(),
1514
+ tag: z.string()
812
1515
  });
813
1516
  /**
814
- * Returns a single object containing invite details.
1517
+ * Tag details
815
1518
  */
816
- export const zGetInviteResponse = zInvite;
817
- export const zDeleteInvitePath = z.object({
818
- email: z.string()
819
- });
1519
+ export const zGetTagResponse = zRegistryTag;
820
1520
  /**
821
- * An array of chart listings in the marketplace.
1521
+ * Returns a single object containing organization details.
822
1522
  */
823
- export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
824
- export const zGetMarketplaceChartFilesPath = z.object({
825
- chart_name: z.string(),
826
- version_channel: z.string()
827
- });
1523
+ export const zGetOrganizationResponse = zOrganization;
1524
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
828
1525
  /**
829
- * Returns an object containing the chart files for the latest matching version.
1526
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1527
+ *
830
1528
  */
831
- export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1529
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
832
1530
  /**
833
1531
  * JSON-RPC 2.0 request payload
834
1532
  */
@@ -857,154 +1555,214 @@ export const zPostMcpResponse = z.object({
857
1555
  }).optional()
858
1556
  });
859
1557
  /**
860
- * Returns a single object containing organization details.
1558
+ * An array of chart listings in the marketplace.
861
1559
  */
862
- export const zGetOrganizationResponse = zOrganization;
863
- export const zCreateOrganizationBody = zOrganizationCreateInput;
1560
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1561
+ export const zGetMarketplaceChartFilesPath = z.object({
1562
+ chart_name: z.string(),
1563
+ version_channel: z.string()
1564
+ });
864
1565
  /**
865
- * List of repositories
1566
+ * Returns an object containing the chart files for the latest matching version.
866
1567
  */
867
- export const zListRepositoriesResponse = z.array(zRegistryRepository);
868
- export const zListTagsPath = z.object({
869
- region: z.string(),
870
- repository: z.string()
1568
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1569
+ /**
1570
+ * An array of invites
1571
+ */
1572
+ export const zListInvitesResponse = z.array(zInvite);
1573
+ export const zCreateInviteBody = zInviteCreateInput;
1574
+ /**
1575
+ * Successfully created. Returns created invite details.
1576
+ */
1577
+ export const zCreateInviteResponse = zInvite;
1578
+ export const zGetInvitePath = z.object({
1579
+ code: z.string()
871
1580
  });
872
1581
  /**
873
- * Repository with tags
1582
+ * The invitation code is valid. Returns the invited email and organization.
874
1583
  */
875
- export const zListTagsResponse = zRegistryRepositoryWithTags;
876
- export const zDeleteTagPath = z.object({
877
- region: z.string(),
878
- repository: z.string(),
879
- tag: z.string()
1584
+ export const zGetInviteResponse = z.object({
1585
+ email: z.email().optional(),
1586
+ organization_id: z.string().optional()
880
1587
  });
881
- export const zGetTagPath = z.object({
882
- region: z.string(),
883
- repository: z.string(),
884
- tag: z.string()
1588
+ export const zDeleteInvitePath = z.object({
1589
+ email: z.email()
1590
+ });
1591
+ export const zQueryClusterPath = z.object({
1592
+ cluster_id: z.string()
1593
+ });
1594
+ export const zListFleetsPath = z.object({
1595
+ cluster_id: z.string()
885
1596
  });
886
1597
  /**
887
- * Tag details
1598
+ * An array of fleets
888
1599
  */
889
- export const zGetTagResponse = zRegistryTag;
1600
+ export const zListFleetsResponse = z.array(zFleet);
1601
+ export const zCreateFleetBody = zFleetCreateInput;
1602
+ export const zCreateFleetPath = z.object({
1603
+ cluster_id: z.string()
1604
+ });
890
1605
  /**
891
- * Tickets for the organization.
1606
+ * Successfully created. Returns created Fleet ID.
892
1607
  */
893
- export const zListTicketsResponse = zTicketListResponse;
894
- export const zCreateTicketBody = z.object({
895
- payload: z.string().optional(),
896
- attachments: z.array(z.string()).optional()
1608
+ export const zCreateFleetResponse = z.string();
1609
+ export const zDeleteFleetPath = z.object({
1610
+ cluster_id: z.string(),
1611
+ fleet_name: z.string()
897
1612
  });
898
1613
  /**
899
- * Ticket created.
1614
+ * Successfully deleted.
900
1615
  */
901
- export const zCreateTicketResponse = zTicket;
902
- export const zCloseTicketPath = z.object({
903
- ticket_id: z.string()
1616
+ export const zDeleteFleetResponse = z.string();
1617
+ export const zGetFleetPath = z.object({
1618
+ cluster_id: z.string(),
1619
+ fleet_name: z.string()
904
1620
  });
905
1621
  /**
906
- * Ticket closed.
1622
+ * Returns a single object containing fleet details.
907
1623
  */
908
- export const zCloseTicketResponse = zTicket;
909
- export const zGetTicketPath = z.object({
910
- ticket_id: z.string()
1624
+ export const zGetFleetResponse = zFleet;
1625
+ export const zUpdateFleetBody = zFleetUpdateInput;
1626
+ export const zUpdateFleetPath = z.object({
1627
+ cluster_id: z.string(),
1628
+ fleet_name: z.string()
911
1629
  });
912
1630
  /**
913
- * Ticket with messages (internal notes excluded).
1631
+ * Successfully updated.
914
1632
  */
915
- export const zGetTicketResponse = zTicket;
916
- export const zReplyTicketBody = z.object({
917
- payload: z.string().optional(),
918
- attachments: z.array(z.string()).optional()
919
- });
920
- export const zReplyTicketPath = z.object({
921
- ticket_id: z.string()
1633
+ export const zUpdateFleetResponse = z.string();
1634
+ export const zListChartsPath = z.object({
1635
+ cluster_id: z.string()
922
1636
  });
923
1637
  /**
924
- * Reply appended.
1638
+ * An array of charts
925
1639
  */
926
- export const zReplyTicketResponse = zTicketMessage;
927
- export const zGetTicketAttachmentPath = z.object({
928
- ticket_id: z.string(),
929
- attachment_id: z.string()
1640
+ export const zListChartsResponse = z.array(zChart);
1641
+ export const zCreateChartBody = zChartCreateInput;
1642
+ export const zCreateChartPath = z.object({
1643
+ cluster_id: z.string()
930
1644
  });
931
1645
  /**
932
- * Attachment binary stream.
1646
+ * Successfully created. Returns created Chart ID.
933
1647
  */
934
- export const zGetTicketAttachmentResponse = z.string();
1648
+ export const zCreateChartResponse = z.string();
1649
+ export const zDeleteChartPath = z.object({
1650
+ cluster_id: z.string(),
1651
+ chart_name: z.string()
1652
+ });
935
1653
  /**
936
- * Returns a list of access token details with masked secrets.
1654
+ * Successfully deleted.
937
1655
  */
938
- export const zListTokensResponse = z.array(zToken);
939
- export const zCreateTokenBody = zTokenCreateInput;
1656
+ export const zDeleteChartResponse = z.string();
1657
+ export const zGetChartPath = z.object({
1658
+ cluster_id: z.string(),
1659
+ chart_name: z.string()
1660
+ });
940
1661
  /**
941
- * Successfully created. Returns created token details with unmasked/raw secret.
1662
+ * Returns a single object containing chart details.
942
1663
  */
943
- export const zCreateTokenResponse = zToken;
944
- export const zDeleteTokenPath = z.object({
945
- token_id: z.string()
1664
+ export const zGetChartResponse = zChart;
1665
+ export const zUpdateChartBody = zChartUpdateInput;
1666
+ export const zUpdateChartPath = z.object({
1667
+ cluster_id: z.string(),
1668
+ chart_name: z.string()
946
1669
  });
947
- export const zGetTokenPath = z.object({
948
- token_id: z.string()
1670
+ /**
1671
+ * Successfully updated.
1672
+ */
1673
+ export const zUpdateChartResponse = z.string();
1674
+ /**
1675
+ * An array of clusters
1676
+ */
1677
+ export const zListClustersResponse = z.array(zCluster);
1678
+ export const zCreateClusterBody = zClusterCreateInput;
1679
+ /**
1680
+ * Successfully created. Returns created Cluster ID.
1681
+ */
1682
+ export const zCreateClusterResponse = z.string();
1683
+ export const zDeleteClusterPath = z.object({
1684
+ cluster_id: z.string()
949
1685
  });
950
1686
  /**
951
- * Returns access token details with masked secret.
1687
+ * Successfully deleted. The cluster has been torn down.
952
1688
  */
953
- export const zGetTokenResponse = zToken;
954
- export const zUpdateTokenBody = zTokenUpdateInput;
955
- export const zUpdateTokenPath = z.object({
956
- token_id: z.string()
1689
+ export const zDeleteClusterResponse = z.string();
1690
+ export const zGetClusterPath = z.object({
1691
+ cluster_id: z.string()
957
1692
  });
958
1693
  /**
959
- * Successfully updated. Returns updated token details with masked secret.
1694
+ * Returns a single object containing cluster details.
960
1695
  */
961
- export const zUpdateTokenResponse = zToken;
962
- export const zRegenerateTokenPath = z.object({
963
- token_id: z.string()
1696
+ export const zGetClusterResponse = zCluster;
1697
+ export const zUpdateClusterBody = zClusterUpdateInput;
1698
+ export const zUpdateClusterPath = z.object({
1699
+ cluster_id: z.string()
964
1700
  });
965
1701
  /**
966
- * Successfully updated. Returns updated token details with unmasked / raw secret.
1702
+ * Successfully updated. Returns updated cluster details.
967
1703
  */
968
- export const zRegenerateTokenResponse = zToken;
969
- export const zListUserOrganizationsPath = z.object({
970
- email: z.string()
1704
+ export const zUpdateClusterResponse = zCluster;
1705
+ export const zGetJoinInformationPath = z.object({
1706
+ cluster_id: z.string()
971
1707
  });
972
1708
  /**
973
- * An array of organizations the user belongs to.
1709
+ * An object of cluster join information
974
1710
  */
975
- export const zListUserOrganizationsResponse = z.array(z.object({
976
- realm: z.string().optional(),
977
- displayName: z.string().optional()
978
- }));
1711
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1712
+ export const zGetUsageQuery = z.object({
1713
+ granularity: z.enum([
1714
+ 'hourly',
1715
+ 'daily',
1716
+ 'monthly'
1717
+ ]).optional().default('daily')
1718
+ });
979
1719
  /**
980
- * An array of users
1720
+ * Usage data with facets for filtering
981
1721
  */
982
- export const zListUsersResponse = z.array(zUser);
983
- export const zCreateUserBody = zUserCreateInput;
1722
+ export const zGetUsageResponse = zUsageResponse;
984
1723
  /**
985
- * Successfully created. Returns created user details.
1724
+ * 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.
1725
+ *
986
1726
  */
987
- export const zCreateUserResponse = zUser;
988
- export const zDeleteUserPath = z.object({
989
- user_id: z.string()
1727
+ export const zGetPaymentMethodSecretResponse = z.object({
1728
+ id: z.string().optional()
990
1729
  });
991
1730
  /**
992
- * User profile information
1731
+ * An array of payment methods.
993
1732
  */
994
- export const zDeleteUserResponse = zUser;
995
- export const zGetUserPath = z.object({
996
- user_id: z.string()
1733
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1734
+ export const zSetDefaultPaymentMethodPath = z.object({
1735
+ paymentMethodId: z.string()
997
1736
  });
998
1737
  /**
999
- * User profile information
1738
+ * Default payment method updated.
1000
1739
  */
1001
- export const zGetUserResponse = zUser;
1002
- export const zUpdateUserBody = zUserUpdateInput;
1003
- export const zUpdateUserPath = z.object({
1004
- user_id: z.string()
1740
+ export const zSetDefaultPaymentMethodResponse = z.void();
1741
+ export const zDeletePaymentMethodPath = z.object({
1742
+ paymentMethodId: z.string()
1005
1743
  });
1006
1744
  /**
1007
- * Successfully created. Returns created user details.
1745
+ * Payment method deleted.
1008
1746
  */
1009
- export const zUpdateUserResponse = zUser;
1747
+ export const zDeletePaymentMethodResponse = z.void();
1748
+ /**
1749
+ * An array of usage records.
1750
+ */
1751
+ export const zListInvoicesResponse = z.array(zInvoice);
1752
+ /**
1753
+ * Returns a single object containing organization contact and billing address details.
1754
+ */
1755
+ export const zGetContactResponse = zBillingContact;
1756
+ export const zUpdateContactBody = zBillingContact;
1757
+ /**
1758
+ * Successfully updated. Returns updated organization details.
1759
+ */
1760
+ export const zUpdateContactResponse = zBillingContact;
1761
+ /**
1762
+ * An array of the applied promotional credits records.
1763
+ */
1764
+ export const zGetCreditsResponse = z.array(zBillingCredits);
1765
+ export const zRedeemCreditsBody = z.object({
1766
+ code: z.string().optional()
1767
+ });
1010
1768
  //# sourceMappingURL=zod.gen.js.map