@cloudfleet/sdk 0.0.1-4e38512 → 0.0.1-4ee2c6f

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 (41) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1125 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1129 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts.map +1 -1
  6. package/dist/client/client.gen.js +108 -123
  7. package/dist/client/client.gen.js.map +1 -1
  8. package/dist/client/types.gen.d.ts +7 -4
  9. package/dist/client/types.gen.d.ts.map +1 -1
  10. package/dist/client/utils.gen.d.ts +5 -1
  11. package/dist/client/utils.gen.d.ts.map +1 -1
  12. package/dist/client/utils.gen.js +1 -1
  13. package/dist/client/utils.gen.js.map +1 -1
  14. package/dist/client.gen.d.ts +1 -1
  15. package/dist/client.gen.d.ts.map +1 -1
  16. package/dist/core/bodySerializer.gen.d.ts +4 -4
  17. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  18. package/dist/core/bodySerializer.gen.js.map +1 -1
  19. package/dist/core/serverSentEvents.gen.d.ts +1 -1
  20. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  21. package/dist/core/serverSentEvents.gen.js +3 -4
  22. package/dist/core/serverSentEvents.gen.js.map +1 -1
  23. package/dist/core/types.gen.d.ts +1 -1
  24. package/dist/core/utils.gen.js +1 -1
  25. package/dist/core/utils.gen.js.map +1 -1
  26. package/dist/schemas.gen.d.ts +544 -38
  27. package/dist/schemas.gen.d.ts.map +1 -1
  28. package/dist/schemas.gen.js +1326 -52
  29. package/dist/schemas.gen.js.map +1 -1
  30. package/dist/sdk.gen.d.ts +41 -3
  31. package/dist/sdk.gen.d.ts.map +1 -1
  32. package/dist/sdk.gen.js +67 -0
  33. package/dist/sdk.gen.js.map +1 -1
  34. package/dist/services/kubernetes/api.d.ts +8 -8
  35. package/dist/types.gen.d.ts +441 -25
  36. package/dist/types.gen.d.ts.map +1 -1
  37. package/dist/zod.gen.d.ts +2350 -578
  38. package/dist/zod.gen.d.ts.map +1 -1
  39. package/dist/zod.gen.js +947 -319
  40. package/dist/zod.gen.js.map +1 -1
  41. package/package.json +23 -4
package/dist/zod.gen.js CHANGED
@@ -199,13 +199,13 @@ export const zClusterCreateInput = z.object({
199
199
  'northamerica-central-1',
200
200
  'europe-central-1a',
201
201
  'northamerica-central-1a'
202
- ]).optional(),
202
+ ]).optional().default('staging-1a'),
203
203
  version_channel: z.enum([
204
204
  '1.x.x-cfke.x',
205
205
  '1.31.x-cfke.x',
206
206
  '1.32.x-cfke.x',
207
207
  '1.33.x-cfke.x'
208
- ]).optional()
208
+ ]).optional().default('1.x.x-cfke.x')
209
209
  });
210
210
  export const zClusterJoinInformation = z.object({
211
211
  certificate_authority: z.string(),
@@ -233,7 +233,7 @@ export const zCluster = z.object({
233
233
  'northamerica-central-1',
234
234
  'europe-central-1a',
235
235
  'northamerica-central-1a'
236
- ]).optional(),
236
+ ]).optional().default('staging-1a'),
237
237
  id: z.uuid(),
238
238
  status: z.enum([
239
239
  'active',
@@ -262,7 +262,7 @@ export const zClusterUpdateInput = z.object({
262
262
  });
263
263
  export const zFleetCreateInput = z.object({
264
264
  limits: z.object({
265
- cpu: z.number().gte(0)
265
+ cpu: z.number().gte(8).optional()
266
266
  }).optional(),
267
267
  gcp: z.object({
268
268
  enabled: z.boolean().optional().default(true),
@@ -270,17 +270,248 @@ export const zFleetCreateInput = z.object({
270
270
  }).optional(),
271
271
  hetzner: z.object({
272
272
  enabled: z.boolean().optional().default(true),
273
- apiKey: z.string()
273
+ apiKey: z.string().optional()
274
274
  }).optional(),
275
275
  aws: z.object({
276
276
  enabled: z.boolean().optional().default(true),
277
277
  controllerRoleArn: z.string()
278
278
  }).optional(),
279
+ constraints: z.object({
280
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).optional(),
281
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).optional(),
282
+ 'cfke.io/instance-family': z.array(z.enum([
283
+ 'a1',
284
+ 'a2',
285
+ 'a3',
286
+ 'a4',
287
+ 'c1',
288
+ 'c2',
289
+ 'c2d',
290
+ 'c3',
291
+ 'c3d',
292
+ 'c4',
293
+ 'c4a',
294
+ 'c4d',
295
+ 'c5',
296
+ 'c5a',
297
+ 'c5ad',
298
+ 'c5d',
299
+ 'c5n',
300
+ 'c6a',
301
+ 'c6g',
302
+ 'c6gd',
303
+ 'c6gn',
304
+ 'c6i',
305
+ 'c6id',
306
+ 'c6in',
307
+ 'c7a',
308
+ 'c7g',
309
+ 'c7gd',
310
+ 'c7gn',
311
+ 'c7i',
312
+ 'c7i-flex',
313
+ 'c8g',
314
+ 'c8gd',
315
+ 'cax',
316
+ 'ccx',
317
+ 'cpx',
318
+ 'cx',
319
+ 'd2',
320
+ 'd3',
321
+ 'd3en',
322
+ 'dl1',
323
+ 'dl2q',
324
+ 'e2',
325
+ 'f1',
326
+ 'f2',
327
+ 'g1',
328
+ 'g2',
329
+ 'g4ad',
330
+ 'g4dn',
331
+ 'g5',
332
+ 'g5g',
333
+ 'g6',
334
+ 'g6e',
335
+ 'gr6',
336
+ 'h1',
337
+ 'h3',
338
+ 'hpc6a',
339
+ 'hpc6id',
340
+ 'hpc7a',
341
+ 'hpc7g',
342
+ 'i2',
343
+ 'i3',
344
+ 'i3en',
345
+ 'i4g',
346
+ 'i4i',
347
+ 'i7i',
348
+ 'i7ie',
349
+ 'i8g',
350
+ 'im4gn',
351
+ 'inf1',
352
+ 'inf2',
353
+ 'is4gen',
354
+ 'm1',
355
+ 'm2',
356
+ 'm3',
357
+ 'm4',
358
+ 'm5',
359
+ 'm5a',
360
+ 'm5ad',
361
+ 'm5d',
362
+ 'm5dn',
363
+ 'm5n',
364
+ 'm5zn',
365
+ 'm6a',
366
+ 'm6g',
367
+ 'm6gd',
368
+ 'm6i',
369
+ 'm6id',
370
+ 'm6idn',
371
+ 'm6in',
372
+ 'm7a',
373
+ 'm7g',
374
+ 'm7gd',
375
+ 'm7i',
376
+ 'm7i-flex',
377
+ 'm8g',
378
+ 'm8gd',
379
+ 'n1',
380
+ 'n2',
381
+ 'n2d',
382
+ 'n4',
383
+ 'p3',
384
+ 'p3dn',
385
+ 'p4d',
386
+ 'p4de',
387
+ 'p5',
388
+ 'p5e',
389
+ 'p5en',
390
+ 'p6-b200',
391
+ 'r3',
392
+ 'r4',
393
+ 'r5',
394
+ 'r5a',
395
+ 'r5ad',
396
+ 'r5b',
397
+ 'r5d',
398
+ 'r5dn',
399
+ 'r5n',
400
+ 'r6a',
401
+ 'r6g',
402
+ 'r6gd',
403
+ 'r6i',
404
+ 'r6id',
405
+ 'r6idn',
406
+ 'r6in',
407
+ 'r7a',
408
+ 'r7g',
409
+ 'r7gd',
410
+ 'r7i',
411
+ 'r7iz',
412
+ 'r8g',
413
+ 'r8gd',
414
+ 't2',
415
+ 't2a',
416
+ 't2d',
417
+ 't3',
418
+ 't3a',
419
+ 't4g',
420
+ 'trn1',
421
+ 'trn1n',
422
+ 'u-3tb1',
423
+ 'u-6tb1',
424
+ 'u7i-12tb',
425
+ 'u7i-6tb',
426
+ 'u7i-8tb',
427
+ 'u7in-16tb',
428
+ 'u7in-24tb',
429
+ 'u7in-32tb',
430
+ 'vt1',
431
+ 'x1',
432
+ 'x1e',
433
+ 'x2gd',
434
+ 'x2idn',
435
+ 'x2iedn',
436
+ 'x2iezn',
437
+ 'x4',
438
+ 'x8g',
439
+ 'z1d',
440
+ 'z3'
441
+ ])).optional(),
442
+ 'topology.kubernetes.io/region': z.array(z.enum([
443
+ 'africa-south1',
444
+ 'ap-northeast-1',
445
+ 'ap-northeast-2',
446
+ 'ap-northeast-3',
447
+ 'ap-south-1',
448
+ 'ap-southeast-1',
449
+ 'ap-southeast-2',
450
+ 'ash',
451
+ 'asia-east1',
452
+ 'asia-east2',
453
+ 'asia-northeast1',
454
+ 'asia-northeast2',
455
+ 'asia-northeast3',
456
+ 'asia-south1',
457
+ 'asia-south2',
458
+ 'asia-southeast1',
459
+ 'asia-southeast2',
460
+ 'australia-southeast1',
461
+ 'australia-southeast2',
462
+ 'ca-central-1',
463
+ 'eu-central-1',
464
+ 'eu-central-2',
465
+ 'eu-north-1',
466
+ 'eu-west-1',
467
+ 'eu-west-2',
468
+ 'eu-west-3',
469
+ 'europe-central2',
470
+ 'europe-north1',
471
+ 'europe-southwest1',
472
+ 'europe-west1',
473
+ 'europe-west10',
474
+ 'europe-west12',
475
+ 'europe-west2',
476
+ 'europe-west3',
477
+ 'europe-west4',
478
+ 'europe-west6',
479
+ 'europe-west8',
480
+ 'europe-west9',
481
+ 'fsn1',
482
+ 'hel1',
483
+ 'hil',
484
+ 'me-central1',
485
+ 'me-central2',
486
+ 'me-west1',
487
+ 'nbg1',
488
+ 'northamerica-northeast1',
489
+ 'northamerica-northeast2',
490
+ 'sa-east-1',
491
+ 'sin',
492
+ 'southamerica-east1',
493
+ 'southamerica-west1',
494
+ 'us-central1',
495
+ 'us-east-1',
496
+ 'us-east-2',
497
+ 'us-east1',
498
+ 'us-east4',
499
+ 'us-east5',
500
+ 'us-south1',
501
+ 'us-west-1',
502
+ 'us-west-2',
503
+ 'us-west1',
504
+ 'us-west2',
505
+ 'us-west3',
506
+ 'us-west4'
507
+ ])).optional()
508
+ }).optional(),
509
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional(),
279
510
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
280
511
  });
281
512
  export const zFleet = z.object({
282
513
  limits: z.object({
283
- cpu: z.number().gte(0)
514
+ cpu: z.number().gte(8).optional()
284
515
  }).optional(),
285
516
  gcp: z.object({
286
517
  enabled: z.boolean().optional().default(true),
@@ -288,17 +519,248 @@ export const zFleet = z.object({
288
519
  }).optional(),
289
520
  hetzner: z.object({
290
521
  enabled: z.boolean().optional().default(true),
291
- apiKey: z.string()
522
+ apiKey: z.string().optional()
292
523
  }).optional(),
293
524
  aws: z.object({
294
525
  enabled: z.boolean().optional().default(true),
295
526
  controllerRoleArn: z.string()
296
527
  }).optional(),
528
+ constraints: z.object({
529
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).optional(),
530
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).optional(),
531
+ 'cfke.io/instance-family': z.array(z.enum([
532
+ 'a1',
533
+ 'a2',
534
+ 'a3',
535
+ 'a4',
536
+ 'c1',
537
+ 'c2',
538
+ 'c2d',
539
+ 'c3',
540
+ 'c3d',
541
+ 'c4',
542
+ 'c4a',
543
+ 'c4d',
544
+ 'c5',
545
+ 'c5a',
546
+ 'c5ad',
547
+ 'c5d',
548
+ 'c5n',
549
+ 'c6a',
550
+ 'c6g',
551
+ 'c6gd',
552
+ 'c6gn',
553
+ 'c6i',
554
+ 'c6id',
555
+ 'c6in',
556
+ 'c7a',
557
+ 'c7g',
558
+ 'c7gd',
559
+ 'c7gn',
560
+ 'c7i',
561
+ 'c7i-flex',
562
+ 'c8g',
563
+ 'c8gd',
564
+ 'cax',
565
+ 'ccx',
566
+ 'cpx',
567
+ 'cx',
568
+ 'd2',
569
+ 'd3',
570
+ 'd3en',
571
+ 'dl1',
572
+ 'dl2q',
573
+ 'e2',
574
+ 'f1',
575
+ 'f2',
576
+ 'g1',
577
+ 'g2',
578
+ 'g4ad',
579
+ 'g4dn',
580
+ 'g5',
581
+ 'g5g',
582
+ 'g6',
583
+ 'g6e',
584
+ 'gr6',
585
+ 'h1',
586
+ 'h3',
587
+ 'hpc6a',
588
+ 'hpc6id',
589
+ 'hpc7a',
590
+ 'hpc7g',
591
+ 'i2',
592
+ 'i3',
593
+ 'i3en',
594
+ 'i4g',
595
+ 'i4i',
596
+ 'i7i',
597
+ 'i7ie',
598
+ 'i8g',
599
+ 'im4gn',
600
+ 'inf1',
601
+ 'inf2',
602
+ 'is4gen',
603
+ 'm1',
604
+ 'm2',
605
+ 'm3',
606
+ 'm4',
607
+ 'm5',
608
+ 'm5a',
609
+ 'm5ad',
610
+ 'm5d',
611
+ 'm5dn',
612
+ 'm5n',
613
+ 'm5zn',
614
+ 'm6a',
615
+ 'm6g',
616
+ 'm6gd',
617
+ 'm6i',
618
+ 'm6id',
619
+ 'm6idn',
620
+ 'm6in',
621
+ 'm7a',
622
+ 'm7g',
623
+ 'm7gd',
624
+ 'm7i',
625
+ 'm7i-flex',
626
+ 'm8g',
627
+ 'm8gd',
628
+ 'n1',
629
+ 'n2',
630
+ 'n2d',
631
+ 'n4',
632
+ 'p3',
633
+ 'p3dn',
634
+ 'p4d',
635
+ 'p4de',
636
+ 'p5',
637
+ 'p5e',
638
+ 'p5en',
639
+ 'p6-b200',
640
+ 'r3',
641
+ 'r4',
642
+ 'r5',
643
+ 'r5a',
644
+ 'r5ad',
645
+ 'r5b',
646
+ 'r5d',
647
+ 'r5dn',
648
+ 'r5n',
649
+ 'r6a',
650
+ 'r6g',
651
+ 'r6gd',
652
+ 'r6i',
653
+ 'r6id',
654
+ 'r6idn',
655
+ 'r6in',
656
+ 'r7a',
657
+ 'r7g',
658
+ 'r7gd',
659
+ 'r7i',
660
+ 'r7iz',
661
+ 'r8g',
662
+ 'r8gd',
663
+ 't2',
664
+ 't2a',
665
+ 't2d',
666
+ 't3',
667
+ 't3a',
668
+ 't4g',
669
+ 'trn1',
670
+ 'trn1n',
671
+ 'u-3tb1',
672
+ 'u-6tb1',
673
+ 'u7i-12tb',
674
+ 'u7i-6tb',
675
+ 'u7i-8tb',
676
+ 'u7in-16tb',
677
+ 'u7in-24tb',
678
+ 'u7in-32tb',
679
+ 'vt1',
680
+ 'x1',
681
+ 'x1e',
682
+ 'x2gd',
683
+ 'x2idn',
684
+ 'x2iedn',
685
+ 'x2iezn',
686
+ 'x4',
687
+ 'x8g',
688
+ 'z1d',
689
+ 'z3'
690
+ ])).optional(),
691
+ 'topology.kubernetes.io/region': z.array(z.enum([
692
+ 'africa-south1',
693
+ 'ap-northeast-1',
694
+ 'ap-northeast-2',
695
+ 'ap-northeast-3',
696
+ 'ap-south-1',
697
+ 'ap-southeast-1',
698
+ 'ap-southeast-2',
699
+ 'ash',
700
+ 'asia-east1',
701
+ 'asia-east2',
702
+ 'asia-northeast1',
703
+ 'asia-northeast2',
704
+ 'asia-northeast3',
705
+ 'asia-south1',
706
+ 'asia-south2',
707
+ 'asia-southeast1',
708
+ 'asia-southeast2',
709
+ 'australia-southeast1',
710
+ 'australia-southeast2',
711
+ 'ca-central-1',
712
+ 'eu-central-1',
713
+ 'eu-central-2',
714
+ 'eu-north-1',
715
+ 'eu-west-1',
716
+ 'eu-west-2',
717
+ 'eu-west-3',
718
+ 'europe-central2',
719
+ 'europe-north1',
720
+ 'europe-southwest1',
721
+ 'europe-west1',
722
+ 'europe-west10',
723
+ 'europe-west12',
724
+ 'europe-west2',
725
+ 'europe-west3',
726
+ 'europe-west4',
727
+ 'europe-west6',
728
+ 'europe-west8',
729
+ 'europe-west9',
730
+ 'fsn1',
731
+ 'hel1',
732
+ 'hil',
733
+ 'me-central1',
734
+ 'me-central2',
735
+ 'me-west1',
736
+ 'nbg1',
737
+ 'northamerica-northeast1',
738
+ 'northamerica-northeast2',
739
+ 'sa-east-1',
740
+ 'sin',
741
+ 'southamerica-east1',
742
+ 'southamerica-west1',
743
+ 'us-central1',
744
+ 'us-east-1',
745
+ 'us-east-2',
746
+ 'us-east1',
747
+ 'us-east4',
748
+ 'us-east5',
749
+ 'us-south1',
750
+ 'us-west-1',
751
+ 'us-west-2',
752
+ 'us-west1',
753
+ 'us-west2',
754
+ 'us-west3',
755
+ 'us-west4'
756
+ ])).optional()
757
+ }).optional(),
758
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional(),
297
759
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
298
760
  });
299
761
  export const zFleetUpdateInput = z.object({
300
762
  limits: z.object({
301
- cpu: z.number().gte(0)
763
+ cpu: z.number().gte(8).optional()
302
764
  }).optional(),
303
765
  gcp: z.object({
304
766
  enabled: z.boolean().optional().default(true),
@@ -306,12 +768,243 @@ export const zFleetUpdateInput = z.object({
306
768
  }).optional(),
307
769
  hetzner: z.object({
308
770
  enabled: z.boolean().optional().default(true),
309
- apiKey: z.string()
771
+ apiKey: z.string().optional()
310
772
  }).optional(),
311
773
  aws: z.object({
312
774
  enabled: z.boolean().optional().default(true),
313
775
  controllerRoleArn: z.string()
314
- }).optional()
776
+ }).optional(),
777
+ constraints: z.object({
778
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).optional(),
779
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).optional(),
780
+ 'cfke.io/instance-family': z.array(z.enum([
781
+ 'a1',
782
+ 'a2',
783
+ 'a3',
784
+ 'a4',
785
+ 'c1',
786
+ 'c2',
787
+ 'c2d',
788
+ 'c3',
789
+ 'c3d',
790
+ 'c4',
791
+ 'c4a',
792
+ 'c4d',
793
+ 'c5',
794
+ 'c5a',
795
+ 'c5ad',
796
+ 'c5d',
797
+ 'c5n',
798
+ 'c6a',
799
+ 'c6g',
800
+ 'c6gd',
801
+ 'c6gn',
802
+ 'c6i',
803
+ 'c6id',
804
+ 'c6in',
805
+ 'c7a',
806
+ 'c7g',
807
+ 'c7gd',
808
+ 'c7gn',
809
+ 'c7i',
810
+ 'c7i-flex',
811
+ 'c8g',
812
+ 'c8gd',
813
+ 'cax',
814
+ 'ccx',
815
+ 'cpx',
816
+ 'cx',
817
+ 'd2',
818
+ 'd3',
819
+ 'd3en',
820
+ 'dl1',
821
+ 'dl2q',
822
+ 'e2',
823
+ 'f1',
824
+ 'f2',
825
+ 'g1',
826
+ 'g2',
827
+ 'g4ad',
828
+ 'g4dn',
829
+ 'g5',
830
+ 'g5g',
831
+ 'g6',
832
+ 'g6e',
833
+ 'gr6',
834
+ 'h1',
835
+ 'h3',
836
+ 'hpc6a',
837
+ 'hpc6id',
838
+ 'hpc7a',
839
+ 'hpc7g',
840
+ 'i2',
841
+ 'i3',
842
+ 'i3en',
843
+ 'i4g',
844
+ 'i4i',
845
+ 'i7i',
846
+ 'i7ie',
847
+ 'i8g',
848
+ 'im4gn',
849
+ 'inf1',
850
+ 'inf2',
851
+ 'is4gen',
852
+ 'm1',
853
+ 'm2',
854
+ 'm3',
855
+ 'm4',
856
+ 'm5',
857
+ 'm5a',
858
+ 'm5ad',
859
+ 'm5d',
860
+ 'm5dn',
861
+ 'm5n',
862
+ 'm5zn',
863
+ 'm6a',
864
+ 'm6g',
865
+ 'm6gd',
866
+ 'm6i',
867
+ 'm6id',
868
+ 'm6idn',
869
+ 'm6in',
870
+ 'm7a',
871
+ 'm7g',
872
+ 'm7gd',
873
+ 'm7i',
874
+ 'm7i-flex',
875
+ 'm8g',
876
+ 'm8gd',
877
+ 'n1',
878
+ 'n2',
879
+ 'n2d',
880
+ 'n4',
881
+ 'p3',
882
+ 'p3dn',
883
+ 'p4d',
884
+ 'p4de',
885
+ 'p5',
886
+ 'p5e',
887
+ 'p5en',
888
+ 'p6-b200',
889
+ 'r3',
890
+ 'r4',
891
+ 'r5',
892
+ 'r5a',
893
+ 'r5ad',
894
+ 'r5b',
895
+ 'r5d',
896
+ 'r5dn',
897
+ 'r5n',
898
+ 'r6a',
899
+ 'r6g',
900
+ 'r6gd',
901
+ 'r6i',
902
+ 'r6id',
903
+ 'r6idn',
904
+ 'r6in',
905
+ 'r7a',
906
+ 'r7g',
907
+ 'r7gd',
908
+ 'r7i',
909
+ 'r7iz',
910
+ 'r8g',
911
+ 'r8gd',
912
+ 't2',
913
+ 't2a',
914
+ 't2d',
915
+ 't3',
916
+ 't3a',
917
+ 't4g',
918
+ 'trn1',
919
+ 'trn1n',
920
+ 'u-3tb1',
921
+ 'u-6tb1',
922
+ 'u7i-12tb',
923
+ 'u7i-6tb',
924
+ 'u7i-8tb',
925
+ 'u7in-16tb',
926
+ 'u7in-24tb',
927
+ 'u7in-32tb',
928
+ 'vt1',
929
+ 'x1',
930
+ 'x1e',
931
+ 'x2gd',
932
+ 'x2idn',
933
+ 'x2iedn',
934
+ 'x2iezn',
935
+ 'x4',
936
+ 'x8g',
937
+ 'z1d',
938
+ 'z3'
939
+ ])).optional(),
940
+ 'topology.kubernetes.io/region': z.array(z.enum([
941
+ 'africa-south1',
942
+ 'ap-northeast-1',
943
+ 'ap-northeast-2',
944
+ 'ap-northeast-3',
945
+ 'ap-south-1',
946
+ 'ap-southeast-1',
947
+ 'ap-southeast-2',
948
+ 'ash',
949
+ 'asia-east1',
950
+ 'asia-east2',
951
+ 'asia-northeast1',
952
+ 'asia-northeast2',
953
+ 'asia-northeast3',
954
+ 'asia-south1',
955
+ 'asia-south2',
956
+ 'asia-southeast1',
957
+ 'asia-southeast2',
958
+ 'australia-southeast1',
959
+ 'australia-southeast2',
960
+ 'ca-central-1',
961
+ 'eu-central-1',
962
+ 'eu-central-2',
963
+ 'eu-north-1',
964
+ 'eu-west-1',
965
+ 'eu-west-2',
966
+ 'eu-west-3',
967
+ 'europe-central2',
968
+ 'europe-north1',
969
+ 'europe-southwest1',
970
+ 'europe-west1',
971
+ 'europe-west10',
972
+ 'europe-west12',
973
+ 'europe-west2',
974
+ 'europe-west3',
975
+ 'europe-west4',
976
+ 'europe-west6',
977
+ 'europe-west8',
978
+ 'europe-west9',
979
+ 'fsn1',
980
+ 'hel1',
981
+ 'hil',
982
+ 'me-central1',
983
+ 'me-central2',
984
+ 'me-west1',
985
+ 'nbg1',
986
+ 'northamerica-northeast1',
987
+ 'northamerica-northeast2',
988
+ 'sa-east-1',
989
+ 'sin',
990
+ 'southamerica-east1',
991
+ 'southamerica-west1',
992
+ 'us-central1',
993
+ 'us-east-1',
994
+ 'us-east-2',
995
+ 'us-east1',
996
+ 'us-east4',
997
+ 'us-east5',
998
+ 'us-south1',
999
+ 'us-west-1',
1000
+ 'us-west-2',
1001
+ 'us-west1',
1002
+ 'us-west2',
1003
+ 'us-west3',
1004
+ 'us-west4'
1005
+ ])).optional()
1006
+ }).optional(),
1007
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional()
315
1008
  });
316
1009
  export const zInvite = z.object({
317
1010
  id: z.string().optional(),
@@ -380,8 +1073,6 @@ export const zOrganization = z.object({
380
1073
  id: z.string(),
381
1074
  label: z.string()
382
1075
  })).min(1),
383
- copilot_user_hourly_tokens: z.int().gte(0),
384
- copilot_organization_hourly_tokens: z.int().gte(0),
385
1076
  cfcr_storage_gb: z.int().gte(-1)
386
1077
  }),
387
1078
  status: z.enum([
@@ -421,8 +1112,6 @@ export const zPlatformQuota = z.object({
421
1112
  id: z.string(),
422
1113
  label: z.string()
423
1114
  })).min(1),
424
- copilot_user_hourly_tokens: z.int().gte(0),
425
- copilot_organization_hourly_tokens: z.int().gte(0),
426
1115
  cfcr_storage_gb: z.int().gte(-1)
427
1116
  });
428
1117
  export const zRegistryRepository = z.object({
@@ -471,6 +1160,102 @@ export const zRegistryTag = z.object({
471
1160
  repository: z.string(),
472
1161
  uri: z.string()
473
1162
  });
1163
+ export const zTicketAttachment = z.object({
1164
+ id: z.string(),
1165
+ filename: z.string(),
1166
+ content_type: z.string(),
1167
+ size: z.int()
1168
+ });
1169
+ export const zTicketCreateInput = z.object({
1170
+ category: z.enum([
1171
+ 'billing',
1172
+ 'technical',
1173
+ 'general'
1174
+ ]),
1175
+ body: z.string().min(1).max(50000).regex(/\S/),
1176
+ properties: z.record(z.string(), z.unknown()).optional()
1177
+ });
1178
+ export const zTicketListResponse = z.object({
1179
+ items: z.array(z.object({
1180
+ id: z.string(),
1181
+ status: z.enum([
1182
+ 'waiting_on_us',
1183
+ 'waiting_on_user',
1184
+ 'closed'
1185
+ ]),
1186
+ category: z.enum([
1187
+ 'billing',
1188
+ 'technical',
1189
+ 'general'
1190
+ ]),
1191
+ summary: z.string(),
1192
+ closed_at: z.iso.datetime().optional(),
1193
+ date_created: z.iso.datetime(),
1194
+ date_updated: z.iso.datetime(),
1195
+ messages: z.array(z.object({
1196
+ id: z.string(),
1197
+ type: z.enum(['customer_reply', 'agent_reply']),
1198
+ body: z.string(),
1199
+ author_first_name: z.string().optional(),
1200
+ author_last_name: z.string().optional(),
1201
+ attachments: z.array(z.object({
1202
+ id: z.string(),
1203
+ filename: z.string(),
1204
+ content_type: z.string(),
1205
+ size: z.int()
1206
+ })).optional(),
1207
+ date_created: z.iso.datetime()
1208
+ })).optional()
1209
+ }))
1210
+ });
1211
+ export const zTicketMessageInput = z.object({
1212
+ body: z.string().min(1).max(50000).regex(/\S/)
1213
+ });
1214
+ export const zTicketMessage = z.object({
1215
+ id: z.string(),
1216
+ type: z.enum(['customer_reply', 'agent_reply']),
1217
+ body: z.string(),
1218
+ author_first_name: z.string().optional(),
1219
+ author_last_name: z.string().optional(),
1220
+ attachments: z.array(z.object({
1221
+ id: z.string(),
1222
+ filename: z.string(),
1223
+ content_type: z.string(),
1224
+ size: z.int()
1225
+ })).optional(),
1226
+ date_created: z.iso.datetime()
1227
+ });
1228
+ export const zTicket = z.object({
1229
+ id: z.string(),
1230
+ status: z.enum([
1231
+ 'waiting_on_us',
1232
+ 'waiting_on_user',
1233
+ 'closed'
1234
+ ]),
1235
+ category: z.enum([
1236
+ 'billing',
1237
+ 'technical',
1238
+ 'general'
1239
+ ]),
1240
+ summary: z.string(),
1241
+ closed_at: z.iso.datetime().optional(),
1242
+ date_created: z.iso.datetime(),
1243
+ date_updated: z.iso.datetime(),
1244
+ messages: z.array(z.object({
1245
+ id: z.string(),
1246
+ type: z.enum(['customer_reply', 'agent_reply']),
1247
+ body: z.string(),
1248
+ author_first_name: z.string().optional(),
1249
+ author_last_name: z.string().optional(),
1250
+ attachments: z.array(z.object({
1251
+ id: z.string(),
1252
+ filename: z.string(),
1253
+ content_type: z.string(),
1254
+ size: z.int()
1255
+ })).optional(),
1256
+ date_created: z.iso.datetime()
1257
+ })).optional()
1258
+ });
474
1259
  export const zTokenCreateInput = z.object({
475
1260
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
476
1261
  role: z.enum(['Administrator', 'User'])
@@ -537,35 +1322,21 @@ export const zUserUpdateInput = z.object({
537
1322
  role: z.enum(['Administrator', 'User']).optional(),
538
1323
  status: z.enum(['active', 'inactive']).optional()
539
1324
  });
540
- export const zGetUsageData = z.object({
541
- body: z.never().optional(),
542
- path: z.never().optional(),
543
- query: z.object({
544
- granularity: z.enum([
545
- 'hourly',
546
- 'daily',
547
- 'monthly'
548
- ]).optional()
549
- }).optional()
1325
+ export const zGetUsageQuery = z.object({
1326
+ granularity: z.enum([
1327
+ 'hourly',
1328
+ 'daily',
1329
+ 'monthly'
1330
+ ]).optional().default('daily')
550
1331
  });
551
1332
  /**
552
1333
  * Usage data with facets for filtering
553
1334
  */
554
1335
  export const zGetUsageResponse = zUsageResponse;
555
- export const zGetPaymentMethodData = z.object({
556
- body: z.never().optional(),
557
- path: z.never().optional(),
558
- query: z.never().optional()
559
- });
560
1336
  /**
561
1337
  * Redacted payment card information.
562
1338
  */
563
1339
  export const zGetPaymentMethodResponse = zPaymentMethod;
564
- export const zGetPaymentMethodSecretData = z.object({
565
- body: z.never().optional(),
566
- path: z.never().optional(),
567
- query: z.never().optional()
568
- });
569
1340
  /**
570
1341
  * 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.
571
1342
  *
@@ -573,305 +1344,191 @@ export const zGetPaymentMethodSecretData = z.object({
573
1344
  export const zGetPaymentMethodSecretResponse = z.object({
574
1345
  id: z.string().optional()
575
1346
  });
576
- export const zListInvoicesData = z.object({
577
- body: z.never().optional(),
578
- path: z.never().optional(),
579
- query: z.never().optional()
580
- });
581
1347
  /**
582
1348
  * An array of usage records.
583
1349
  */
584
1350
  export const zListInvoicesResponse = z.array(zInvoice);
585
- export const zGetContactData = z.object({
586
- body: z.never().optional(),
587
- path: z.never().optional(),
588
- query: z.never().optional()
589
- });
590
1351
  /**
591
1352
  * Returns a single object containing organization contact and billing address details.
592
1353
  */
593
1354
  export const zGetContactResponse = zBillingContact;
594
- export const zUpdateContactData = z.object({
595
- body: zBillingContact,
596
- path: z.never().optional(),
597
- query: z.never().optional()
598
- });
1355
+ export const zUpdateContactBody = zBillingContact;
599
1356
  /**
600
1357
  * Successfully updated. Returns updated organization details.
601
1358
  */
602
1359
  export const zUpdateContactResponse = zBillingContact;
603
- export const zGetCreditsData = z.object({
604
- body: z.never().optional(),
605
- path: z.never().optional(),
606
- query: z.never().optional()
607
- });
608
1360
  /**
609
1361
  * An array of the applied promotional credits records.
610
1362
  */
611
1363
  export const zGetCreditsResponse = z.array(zBillingCredits);
612
- export const zRedeemCreditsData = z.object({
613
- body: z.object({
614
- code: z.string().optional()
615
- }),
616
- path: z.never().optional(),
617
- query: z.never().optional()
1364
+ export const zRedeemCreditsBody = z.object({
1365
+ code: z.string().optional()
618
1366
  });
619
- export const zListChartsData = z.object({
620
- body: z.never().optional(),
621
- path: z.object({
622
- cluster_id: z.string()
623
- }),
624
- query: z.never().optional()
1367
+ export const zListChartsPath = z.object({
1368
+ cluster_id: z.string()
625
1369
  });
626
1370
  /**
627
1371
  * An array of charts
628
1372
  */
629
1373
  export const zListChartsResponse = z.array(zChart);
630
- export const zCreateChartData = z.object({
631
- body: zChartCreateInput,
632
- path: z.object({
633
- cluster_id: z.string()
634
- }),
635
- query: z.never().optional()
1374
+ export const zCreateChartBody = zChartCreateInput;
1375
+ export const zCreateChartPath = z.object({
1376
+ cluster_id: z.string()
636
1377
  });
637
1378
  /**
638
1379
  * Successfully created. Returns created Chart ID.
639
1380
  */
640
1381
  export const zCreateChartResponse = z.string();
641
- export const zDeleteChartData = z.object({
642
- body: z.never().optional(),
643
- path: z.object({
644
- cluster_id: z.string(),
645
- chart_name: z.string()
646
- }),
647
- query: z.never().optional()
1382
+ export const zDeleteChartPath = z.object({
1383
+ cluster_id: z.string(),
1384
+ chart_name: z.string()
648
1385
  });
649
1386
  /**
650
1387
  * Successfully deleted.
651
1388
  */
652
1389
  export const zDeleteChartResponse = z.string();
653
- export const zGetChartData = z.object({
654
- body: z.never().optional(),
655
- path: z.object({
656
- cluster_id: z.string(),
657
- chart_name: z.string()
658
- }),
659
- query: z.never().optional()
1390
+ export const zGetChartPath = z.object({
1391
+ cluster_id: z.string(),
1392
+ chart_name: z.string()
660
1393
  });
661
1394
  /**
662
1395
  * Returns a single object containing chart details.
663
1396
  */
664
1397
  export const zGetChartResponse = zChart;
665
- export const zUpdateChartData = z.object({
666
- body: zChartUpdateInput,
667
- path: z.object({
668
- cluster_id: z.string(),
669
- chart_name: z.string()
670
- }),
671
- query: z.never().optional()
1398
+ export const zUpdateChartBody = zChartUpdateInput;
1399
+ export const zUpdateChartPath = z.object({
1400
+ cluster_id: z.string(),
1401
+ chart_name: z.string()
672
1402
  });
673
1403
  /**
674
1404
  * Successfully updated.
675
1405
  */
676
1406
  export const zUpdateChartResponse = z.string();
677
- export const zListFleetsData = z.object({
678
- body: z.never().optional(),
679
- path: z.object({
680
- cluster_id: z.string()
681
- }),
682
- query: z.never().optional()
1407
+ export const zListFleetsPath = z.object({
1408
+ cluster_id: z.string()
683
1409
  });
684
1410
  /**
685
1411
  * An array of fleets
686
1412
  */
687
1413
  export const zListFleetsResponse = z.array(zFleet);
688
- export const zCreateFleetData = z.object({
689
- body: zFleetCreateInput,
690
- path: z.object({
691
- cluster_id: z.string()
692
- }),
693
- query: z.never().optional()
1414
+ export const zCreateFleetBody = zFleetCreateInput;
1415
+ export const zCreateFleetPath = z.object({
1416
+ cluster_id: z.string()
694
1417
  });
695
1418
  /**
696
1419
  * Successfully created. Returns created Fleet ID.
697
1420
  */
698
1421
  export const zCreateFleetResponse = z.string();
699
- export const zDeleteFleetData = z.object({
700
- body: z.never().optional(),
701
- path: z.object({
702
- cluster_id: z.string(),
703
- fleet_name: z.string()
704
- }),
705
- query: z.never().optional()
1422
+ export const zDeleteFleetPath = z.object({
1423
+ cluster_id: z.string(),
1424
+ fleet_name: z.string()
706
1425
  });
707
1426
  /**
708
1427
  * Successfully deleted.
709
1428
  */
710
1429
  export const zDeleteFleetResponse = z.string();
711
- export const zGetFleetData = z.object({
712
- body: z.never().optional(),
713
- path: z.object({
714
- cluster_id: z.string(),
715
- fleet_name: z.string()
716
- }),
717
- query: z.never().optional()
1430
+ export const zGetFleetPath = z.object({
1431
+ cluster_id: z.string(),
1432
+ fleet_name: z.string()
718
1433
  });
719
1434
  /**
720
1435
  * Returns a single object containing fleet details.
721
1436
  */
722
1437
  export const zGetFleetResponse = zFleet;
723
- export const zUpdateFleetData = z.object({
724
- body: zFleetUpdateInput,
725
- path: z.object({
726
- cluster_id: z.string(),
727
- fleet_name: z.string()
728
- }),
729
- query: z.never().optional()
1438
+ export const zUpdateFleetBody = zFleetUpdateInput;
1439
+ export const zUpdateFleetPath = z.object({
1440
+ cluster_id: z.string(),
1441
+ fleet_name: z.string()
730
1442
  });
731
1443
  /**
732
1444
  * Successfully updated.
733
1445
  */
734
1446
  export const zUpdateFleetResponse = z.string();
735
- export const zQueryClusterData = z.object({
736
- body: z.never().optional(),
737
- path: z.object({
738
- cluster_id: z.string()
739
- }),
740
- query: z.never().optional()
741
- });
742
- export const zListClustersData = z.object({
743
- body: z.never().optional(),
744
- path: z.never().optional(),
745
- query: z.never().optional()
1447
+ export const zQueryClusterPath = z.object({
1448
+ cluster_id: z.string()
746
1449
  });
747
1450
  /**
748
1451
  * An array of clusters
749
1452
  */
750
1453
  export const zListClustersResponse = z.array(zCluster);
751
- export const zCreateClusterData = z.object({
752
- body: zClusterCreateInput,
753
- path: z.never().optional(),
754
- query: z.never().optional()
755
- });
1454
+ export const zCreateClusterBody = zClusterCreateInput;
756
1455
  /**
757
1456
  * Successfully created. Returns created Cluster ID.
758
1457
  */
759
1458
  export const zCreateClusterResponse = z.string();
760
- export const zDeleteClusterData = z.object({
761
- body: z.never().optional(),
762
- path: z.object({
763
- cluster_id: z.string()
764
- }),
765
- query: z.never().optional()
1459
+ export const zDeleteClusterPath = z.object({
1460
+ cluster_id: z.string()
766
1461
  });
767
1462
  /**
768
1463
  * Successfully deleted.
769
1464
  */
770
1465
  export const zDeleteClusterResponse = z.string();
771
- export const zGetClusterData = z.object({
772
- body: z.never().optional(),
773
- path: z.object({
774
- cluster_id: z.string()
775
- }),
776
- query: z.never().optional()
1466
+ export const zGetClusterPath = z.object({
1467
+ cluster_id: z.string()
777
1468
  });
778
1469
  /**
779
1470
  * Returns a single object containing cluster details.
780
1471
  */
781
1472
  export const zGetClusterResponse = zCluster;
782
- export const zUpdateClusterData = z.object({
783
- body: zClusterUpdateInput,
784
- path: z.object({
785
- cluster_id: z.string()
786
- }),
787
- query: z.never().optional()
1473
+ export const zUpdateClusterBody = zClusterUpdateInput;
1474
+ export const zUpdateClusterPath = z.object({
1475
+ cluster_id: z.string()
788
1476
  });
789
1477
  /**
790
1478
  * Successfully updated. Returns updated cluster details.
791
1479
  */
792
1480
  export const zUpdateClusterResponse = zCluster;
793
- export const zGetJoinInformationData = z.object({
794
- body: z.never().optional(),
795
- path: z.object({
796
- cluster_id: z.string()
797
- }),
798
- query: z.never().optional()
1481
+ export const zGetJoinInformationPath = z.object({
1482
+ cluster_id: z.string()
799
1483
  });
800
1484
  /**
801
1485
  * An object of cluster join information
802
1486
  */
803
1487
  export const zGetJoinInformationResponse = zClusterJoinInformation;
804
- export const zListInvitesData = z.object({
805
- body: z.never().optional(),
806
- path: z.never().optional(),
807
- query: z.never().optional()
808
- });
809
1488
  /**
810
1489
  * An array of invites
811
1490
  */
812
1491
  export const zListInvitesResponse = z.array(zInvite);
813
- export const zCreateInviteData = z.object({
814
- body: z.object({
815
- email: z.string().optional()
816
- }),
817
- path: z.never().optional(),
818
- query: z.never().optional()
1492
+ export const zCreateInviteBody = z.object({
1493
+ email: z.string().optional()
819
1494
  });
820
1495
  /**
821
1496
  * Successfully created. Returns created invite details.
822
1497
  */
823
1498
  export const zCreateInviteResponse = zInvite;
824
- export const zGetInviteData = z.object({
825
- body: z.never().optional(),
826
- path: z.object({
827
- code: z.string()
828
- }),
829
- query: z.never().optional()
1499
+ export const zGetInvitePath = z.object({
1500
+ code: z.string()
830
1501
  });
831
1502
  /**
832
1503
  * Returns a single object containing invite details.
833
1504
  */
834
1505
  export const zGetInviteResponse = zInvite;
835
- export const zDeleteInviteData = z.object({
836
- body: z.never().optional(),
837
- path: z.object({
838
- email: z.string()
839
- }),
840
- query: z.never().optional()
841
- });
842
- export const zListMarketplaceChartsData = z.object({
843
- body: z.never().optional(),
844
- path: z.never().optional(),
845
- query: z.never().optional()
1506
+ export const zDeleteInvitePath = z.object({
1507
+ email: z.string()
846
1508
  });
847
1509
  /**
848
1510
  * An array of chart listings in the marketplace.
849
1511
  */
850
1512
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
851
- export const zGetMarketplaceChartFilesData = z.object({
852
- body: z.never().optional(),
853
- path: z.object({
854
- chart_name: z.string(),
855
- version_channel: z.string()
856
- }),
857
- query: z.never().optional()
1513
+ export const zGetMarketplaceChartFilesPath = z.object({
1514
+ chart_name: z.string(),
1515
+ version_channel: z.string()
858
1516
  });
859
1517
  /**
860
1518
  * Returns an object containing the chart files for the latest matching version.
861
1519
  */
862
1520
  export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
863
- export const zPostMcpData = z.object({
864
- body: z.object({
865
- jsonrpc: z.string().optional(),
866
- method: z.string().optional(),
867
- id: z.union([
868
- z.string(),
869
- z.number()
870
- ]).optional(),
871
- params: z.record(z.string(), z.unknown()).optional()
872
- }),
873
- path: z.never().optional(),
874
- query: z.never().optional()
1521
+ /**
1522
+ * JSON-RPC 2.0 request payload
1523
+ */
1524
+ export const zPostMcpBody = z.object({
1525
+ jsonrpc: z.string().optional(),
1526
+ method: z.string().optional(),
1527
+ id: z.union([
1528
+ z.string(),
1529
+ z.number()
1530
+ ]).optional(),
1531
+ params: z.record(z.string(), z.unknown()).optional()
875
1532
  });
876
1533
  /**
877
1534
  * JSON-RPC 2.0 success or error response
@@ -888,127 +1545,118 @@ export const zPostMcpResponse = z.object({
888
1545
  message: z.string().optional()
889
1546
  }).optional()
890
1547
  });
891
- export const zGetOrganizationData = z.object({
892
- body: z.never().optional(),
893
- path: z.never().optional(),
894
- query: z.never().optional()
895
- });
896
1548
  /**
897
1549
  * Returns a single object containing organization details.
898
1550
  */
899
1551
  export const zGetOrganizationResponse = zOrganization;
900
- export const zCreateOrganizationData = z.object({
901
- body: zOrganizationCreateInput,
902
- path: z.never().optional(),
903
- query: z.never().optional()
904
- });
905
- export const zListRepositoriesData = z.object({
906
- body: z.never().optional(),
907
- path: z.never().optional(),
908
- query: z.never().optional()
909
- });
1552
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
910
1553
  /**
911
1554
  * List of repositories
912
1555
  */
913
1556
  export const zListRepositoriesResponse = z.array(zRegistryRepository);
914
- export const zListTagsData = z.object({
915
- body: z.never().optional(),
916
- path: z.object({
917
- region: z.string(),
918
- repository: z.string()
919
- }),
920
- query: z.never().optional()
1557
+ export const zListTagsPath = z.object({
1558
+ region: z.string(),
1559
+ repository: z.string()
921
1560
  });
922
1561
  /**
923
1562
  * Repository with tags
924
1563
  */
925
1564
  export const zListTagsResponse = zRegistryRepositoryWithTags;
926
- export const zDeleteTagData = z.object({
927
- body: z.never().optional(),
928
- path: z.object({
929
- region: z.string(),
930
- repository: z.string(),
931
- tag: z.string()
932
- }),
933
- query: z.never().optional()
934
- });
935
- export const zGetTagData = z.object({
936
- body: z.never().optional(),
937
- path: z.object({
938
- region: z.string(),
939
- repository: z.string(),
940
- tag: z.string()
941
- }),
942
- query: z.never().optional()
1565
+ export const zDeleteTagPath = z.object({
1566
+ region: z.string(),
1567
+ repository: z.string(),
1568
+ tag: z.string()
1569
+ });
1570
+ export const zGetTagPath = z.object({
1571
+ region: z.string(),
1572
+ repository: z.string(),
1573
+ tag: z.string()
943
1574
  });
944
1575
  /**
945
1576
  * Tag details
946
1577
  */
947
1578
  export const zGetTagResponse = zRegistryTag;
948
- export const zListTokensData = z.object({
949
- body: z.never().optional(),
950
- path: z.never().optional(),
951
- query: z.never().optional()
1579
+ /**
1580
+ * Tickets for the organization.
1581
+ */
1582
+ export const zListTicketsResponse = zTicketListResponse;
1583
+ export const zCreateTicketBody = z.object({
1584
+ payload: z.string().optional(),
1585
+ attachments: z.array(z.string()).optional()
1586
+ });
1587
+ /**
1588
+ * Ticket created.
1589
+ */
1590
+ export const zCreateTicketResponse = zTicket;
1591
+ export const zCloseTicketPath = z.object({
1592
+ ticket_id: z.string()
952
1593
  });
1594
+ /**
1595
+ * Ticket closed.
1596
+ */
1597
+ export const zCloseTicketResponse = zTicket;
1598
+ export const zGetTicketPath = z.object({
1599
+ ticket_id: z.string()
1600
+ });
1601
+ /**
1602
+ * Ticket with messages (internal notes excluded).
1603
+ */
1604
+ export const zGetTicketResponse = zTicket;
1605
+ export const zReplyTicketBody = z.object({
1606
+ payload: z.string().optional(),
1607
+ attachments: z.array(z.string()).optional()
1608
+ });
1609
+ export const zReplyTicketPath = z.object({
1610
+ ticket_id: z.string()
1611
+ });
1612
+ /**
1613
+ * Reply appended.
1614
+ */
1615
+ export const zReplyTicketResponse = zTicketMessage;
1616
+ export const zGetTicketAttachmentPath = z.object({
1617
+ ticket_id: z.string(),
1618
+ attachment_id: z.string()
1619
+ });
1620
+ /**
1621
+ * Attachment binary stream.
1622
+ */
1623
+ export const zGetTicketAttachmentResponse = z.string();
953
1624
  /**
954
1625
  * Returns a list of access token details with masked secrets.
955
1626
  */
956
1627
  export const zListTokensResponse = z.array(zToken);
957
- export const zCreateTokenData = z.object({
958
- body: zTokenCreateInput,
959
- path: z.never().optional(),
960
- query: z.never().optional()
961
- });
1628
+ export const zCreateTokenBody = zTokenCreateInput;
962
1629
  /**
963
1630
  * Successfully created. Returns created token details with unmasked/raw secret.
964
1631
  */
965
1632
  export const zCreateTokenResponse = zToken;
966
- export const zDeleteTokenData = z.object({
967
- body: z.never().optional(),
968
- path: z.object({
969
- token_id: z.string()
970
- }),
971
- query: z.never().optional()
1633
+ export const zDeleteTokenPath = z.object({
1634
+ token_id: z.string()
972
1635
  });
973
- export const zGetTokenData = z.object({
974
- body: z.never().optional(),
975
- path: z.object({
976
- token_id: z.string()
977
- }),
978
- query: z.never().optional()
1636
+ export const zGetTokenPath = z.object({
1637
+ token_id: z.string()
979
1638
  });
980
1639
  /**
981
1640
  * Returns access token details with masked secret.
982
1641
  */
983
1642
  export const zGetTokenResponse = zToken;
984
- export const zUpdateTokenData = z.object({
985
- body: zTokenUpdateInput,
986
- path: z.object({
987
- token_id: z.string()
988
- }),
989
- query: z.never().optional()
1643
+ export const zUpdateTokenBody = zTokenUpdateInput;
1644
+ export const zUpdateTokenPath = z.object({
1645
+ token_id: z.string()
990
1646
  });
991
1647
  /**
992
1648
  * Successfully updated. Returns updated token details with masked secret.
993
1649
  */
994
1650
  export const zUpdateTokenResponse = zToken;
995
- export const zRegenerateTokenData = z.object({
996
- body: z.never().optional(),
997
- path: z.object({
998
- token_id: z.string()
999
- }),
1000
- query: z.never().optional()
1651
+ export const zRegenerateTokenPath = z.object({
1652
+ token_id: z.string()
1001
1653
  });
1002
1654
  /**
1003
1655
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1004
1656
  */
1005
1657
  export const zRegenerateTokenResponse = zToken;
1006
- export const zListUserOrganizationsData = z.object({
1007
- body: z.never().optional(),
1008
- path: z.object({
1009
- email: z.string()
1010
- }),
1011
- query: z.never().optional()
1658
+ export const zListUserOrganizationsPath = z.object({
1659
+ email: z.string()
1012
1660
  });
1013
1661
  /**
1014
1662
  * An array of organizations the user belongs to.
@@ -1017,52 +1665,32 @@ export const zListUserOrganizationsResponse = z.array(z.object({
1017
1665
  realm: z.string().optional(),
1018
1666
  displayName: z.string().optional()
1019
1667
  }));
1020
- export const zListUsersData = z.object({
1021
- body: z.never().optional(),
1022
- path: z.never().optional(),
1023
- query: z.never().optional()
1024
- });
1025
1668
  /**
1026
1669
  * An array of users
1027
1670
  */
1028
1671
  export const zListUsersResponse = z.array(zUser);
1029
- export const zCreateUserData = z.object({
1030
- body: zUserCreateInput,
1031
- path: z.never().optional(),
1032
- query: z.never().optional()
1033
- });
1672
+ export const zCreateUserBody = zUserCreateInput;
1034
1673
  /**
1035
1674
  * Successfully created. Returns created user details.
1036
1675
  */
1037
1676
  export const zCreateUserResponse = zUser;
1038
- export const zDeleteUserData = z.object({
1039
- body: z.never().optional(),
1040
- path: z.object({
1041
- user_id: z.string()
1042
- }),
1043
- query: z.never().optional()
1677
+ export const zDeleteUserPath = z.object({
1678
+ user_id: z.string()
1044
1679
  });
1045
1680
  /**
1046
1681
  * User profile information
1047
1682
  */
1048
1683
  export const zDeleteUserResponse = zUser;
1049
- export const zGetUserData = z.object({
1050
- body: z.never().optional(),
1051
- path: z.object({
1052
- user_id: z.string()
1053
- }),
1054
- query: z.never().optional()
1684
+ export const zGetUserPath = z.object({
1685
+ user_id: z.string()
1055
1686
  });
1056
1687
  /**
1057
1688
  * User profile information
1058
1689
  */
1059
1690
  export const zGetUserResponse = zUser;
1060
- export const zUpdateUserData = z.object({
1061
- body: zUserUpdateInput,
1062
- path: z.object({
1063
- user_id: z.string()
1064
- }),
1065
- query: z.never().optional()
1691
+ export const zUpdateUserBody = zUserUpdateInput;
1692
+ export const zUpdateUserPath = z.object({
1693
+ user_id: z.string()
1066
1694
  });
1067
1695
  /**
1068
1696
  * Successfully created. Returns created user details.