@cloudfleet/sdk 0.0.1-de1f167 → 0.0.1-de40858

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 +403 -26
  27. package/dist/schemas.gen.d.ts.map +1 -1
  28. package/dist/schemas.gen.js +486 -28
  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 +357 -16
  36. package/dist/types.gen.d.ts.map +1 -1
  37. package/dist/zod.gen.d.ts +660 -568
  38. package/dist/zod.gen.d.ts.map +1 -1
  39. package/dist/zod.gen.js +247 -312
  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',
@@ -380,8 +380,6 @@ export const zOrganization = z.object({
380
380
  id: z.string(),
381
381
  label: z.string()
382
382
  })).min(1),
383
- copilot_user_hourly_tokens: z.int().gte(0),
384
- copilot_organization_hourly_tokens: z.int().gte(0),
385
383
  cfcr_storage_gb: z.int().gte(-1)
386
384
  }),
387
385
  status: z.enum([
@@ -421,8 +419,6 @@ export const zPlatformQuota = z.object({
421
419
  id: z.string(),
422
420
  label: z.string()
423
421
  })).min(1),
424
- copilot_user_hourly_tokens: z.int().gte(0),
425
- copilot_organization_hourly_tokens: z.int().gte(0),
426
422
  cfcr_storage_gb: z.int().gte(-1)
427
423
  });
428
424
  export const zRegistryRepository = z.object({
@@ -471,6 +467,102 @@ export const zRegistryTag = z.object({
471
467
  repository: z.string(),
472
468
  uri: z.string()
473
469
  });
470
+ export const zTicketAttachment = z.object({
471
+ id: z.string(),
472
+ filename: z.string(),
473
+ content_type: z.string(),
474
+ size: z.int()
475
+ });
476
+ export const zTicketCreateInput = z.object({
477
+ category: z.enum([
478
+ 'billing',
479
+ 'technical',
480
+ 'general'
481
+ ]),
482
+ body: z.string().min(1).max(50000).regex(/\S/),
483
+ properties: z.record(z.string(), z.unknown()).optional()
484
+ });
485
+ export const zTicketListResponse = z.object({
486
+ items: z.array(z.object({
487
+ id: z.string(),
488
+ status: z.enum([
489
+ 'waiting_on_us',
490
+ 'waiting_on_user',
491
+ 'closed'
492
+ ]),
493
+ category: z.enum([
494
+ 'billing',
495
+ 'technical',
496
+ 'general'
497
+ ]),
498
+ summary: z.string(),
499
+ closed_at: z.iso.datetime().optional(),
500
+ date_created: z.iso.datetime(),
501
+ date_updated: z.iso.datetime(),
502
+ messages: z.array(z.object({
503
+ id: z.string(),
504
+ type: z.enum(['customer_reply', 'agent_reply']),
505
+ body: z.string(),
506
+ author_first_name: z.string().optional(),
507
+ author_last_name: z.string().optional(),
508
+ attachments: z.array(z.object({
509
+ id: z.string(),
510
+ filename: z.string(),
511
+ content_type: z.string(),
512
+ size: z.int()
513
+ })).optional(),
514
+ date_created: z.iso.datetime()
515
+ })).optional()
516
+ }))
517
+ });
518
+ export const zTicketMessageInput = z.object({
519
+ body: z.string().min(1).max(50000).regex(/\S/)
520
+ });
521
+ export const zTicketMessage = z.object({
522
+ id: z.string(),
523
+ type: z.enum(['customer_reply', 'agent_reply']),
524
+ body: z.string(),
525
+ author_first_name: z.string().optional(),
526
+ author_last_name: z.string().optional(),
527
+ attachments: z.array(z.object({
528
+ id: z.string(),
529
+ filename: z.string(),
530
+ content_type: z.string(),
531
+ size: z.int()
532
+ })).optional(),
533
+ date_created: z.iso.datetime()
534
+ });
535
+ export const zTicket = z.object({
536
+ id: z.string(),
537
+ status: z.enum([
538
+ 'waiting_on_us',
539
+ 'waiting_on_user',
540
+ 'closed'
541
+ ]),
542
+ category: z.enum([
543
+ 'billing',
544
+ 'technical',
545
+ 'general'
546
+ ]),
547
+ summary: z.string(),
548
+ closed_at: z.iso.datetime().optional(),
549
+ date_created: z.iso.datetime(),
550
+ date_updated: z.iso.datetime(),
551
+ messages: z.array(z.object({
552
+ id: z.string(),
553
+ type: z.enum(['customer_reply', 'agent_reply']),
554
+ body: z.string(),
555
+ author_first_name: z.string().optional(),
556
+ author_last_name: z.string().optional(),
557
+ attachments: z.array(z.object({
558
+ id: z.string(),
559
+ filename: z.string(),
560
+ content_type: z.string(),
561
+ size: z.int()
562
+ })).optional(),
563
+ date_created: z.iso.datetime()
564
+ })).optional()
565
+ });
474
566
  export const zTokenCreateInput = z.object({
475
567
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
476
568
  role: z.enum(['Administrator', 'User'])
@@ -537,35 +629,21 @@ export const zUserUpdateInput = z.object({
537
629
  role: z.enum(['Administrator', 'User']).optional(),
538
630
  status: z.enum(['active', 'inactive']).optional()
539
631
  });
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()
632
+ export const zGetUsageQuery = z.object({
633
+ granularity: z.enum([
634
+ 'hourly',
635
+ 'daily',
636
+ 'monthly'
637
+ ]).optional().default('daily')
550
638
  });
551
639
  /**
552
640
  * Usage data with facets for filtering
553
641
  */
554
642
  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
643
  /**
561
644
  * Redacted payment card information.
562
645
  */
563
646
  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
647
  /**
570
648
  * 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
649
  *
@@ -573,305 +651,191 @@ export const zGetPaymentMethodSecretData = z.object({
573
651
  export const zGetPaymentMethodSecretResponse = z.object({
574
652
  id: z.string().optional()
575
653
  });
576
- export const zListInvoicesData = z.object({
577
- body: z.never().optional(),
578
- path: z.never().optional(),
579
- query: z.never().optional()
580
- });
581
654
  /**
582
655
  * An array of usage records.
583
656
  */
584
657
  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
658
  /**
591
659
  * Returns a single object containing organization contact and billing address details.
592
660
  */
593
661
  export const zGetContactResponse = zBillingContact;
594
- export const zUpdateContactData = z.object({
595
- body: zBillingContact,
596
- path: z.never().optional(),
597
- query: z.never().optional()
598
- });
662
+ export const zUpdateContactBody = zBillingContact;
599
663
  /**
600
664
  * Successfully updated. Returns updated organization details.
601
665
  */
602
666
  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
667
  /**
609
668
  * An array of the applied promotional credits records.
610
669
  */
611
670
  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()
671
+ export const zRedeemCreditsBody = z.object({
672
+ code: z.string().optional()
618
673
  });
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()
674
+ export const zListChartsPath = z.object({
675
+ cluster_id: z.string()
625
676
  });
626
677
  /**
627
678
  * An array of charts
628
679
  */
629
680
  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()
681
+ export const zCreateChartBody = zChartCreateInput;
682
+ export const zCreateChartPath = z.object({
683
+ cluster_id: z.string()
636
684
  });
637
685
  /**
638
686
  * Successfully created. Returns created Chart ID.
639
687
  */
640
688
  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()
689
+ export const zDeleteChartPath = z.object({
690
+ cluster_id: z.string(),
691
+ chart_name: z.string()
648
692
  });
649
693
  /**
650
694
  * Successfully deleted.
651
695
  */
652
696
  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()
697
+ export const zGetChartPath = z.object({
698
+ cluster_id: z.string(),
699
+ chart_name: z.string()
660
700
  });
661
701
  /**
662
702
  * Returns a single object containing chart details.
663
703
  */
664
704
  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()
705
+ export const zUpdateChartBody = zChartUpdateInput;
706
+ export const zUpdateChartPath = z.object({
707
+ cluster_id: z.string(),
708
+ chart_name: z.string()
672
709
  });
673
710
  /**
674
711
  * Successfully updated.
675
712
  */
676
713
  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()
714
+ export const zListFleetsPath = z.object({
715
+ cluster_id: z.string()
683
716
  });
684
717
  /**
685
718
  * An array of fleets
686
719
  */
687
720
  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()
721
+ export const zCreateFleetBody = zFleetCreateInput;
722
+ export const zCreateFleetPath = z.object({
723
+ cluster_id: z.string()
694
724
  });
695
725
  /**
696
726
  * Successfully created. Returns created Fleet ID.
697
727
  */
698
728
  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()
729
+ export const zDeleteFleetPath = z.object({
730
+ cluster_id: z.string(),
731
+ fleet_name: z.string()
706
732
  });
707
733
  /**
708
734
  * Successfully deleted.
709
735
  */
710
736
  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()
737
+ export const zGetFleetPath = z.object({
738
+ cluster_id: z.string(),
739
+ fleet_name: z.string()
718
740
  });
719
741
  /**
720
742
  * Returns a single object containing fleet details.
721
743
  */
722
744
  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()
745
+ export const zUpdateFleetBody = zFleetUpdateInput;
746
+ export const zUpdateFleetPath = z.object({
747
+ cluster_id: z.string(),
748
+ fleet_name: z.string()
730
749
  });
731
750
  /**
732
751
  * Successfully updated.
733
752
  */
734
753
  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()
754
+ export const zQueryClusterPath = z.object({
755
+ cluster_id: z.string()
746
756
  });
747
757
  /**
748
758
  * An array of clusters
749
759
  */
750
760
  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
- });
761
+ export const zCreateClusterBody = zClusterCreateInput;
756
762
  /**
757
763
  * Successfully created. Returns created Cluster ID.
758
764
  */
759
765
  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()
766
+ export const zDeleteClusterPath = z.object({
767
+ cluster_id: z.string()
766
768
  });
767
769
  /**
768
770
  * Successfully deleted.
769
771
  */
770
772
  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()
773
+ export const zGetClusterPath = z.object({
774
+ cluster_id: z.string()
777
775
  });
778
776
  /**
779
777
  * Returns a single object containing cluster details.
780
778
  */
781
779
  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()
780
+ export const zUpdateClusterBody = zClusterUpdateInput;
781
+ export const zUpdateClusterPath = z.object({
782
+ cluster_id: z.string()
788
783
  });
789
784
  /**
790
785
  * Successfully updated. Returns updated cluster details.
791
786
  */
792
787
  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()
788
+ export const zGetJoinInformationPath = z.object({
789
+ cluster_id: z.string()
799
790
  });
800
791
  /**
801
792
  * An object of cluster join information
802
793
  */
803
794
  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
795
  /**
810
796
  * An array of invites
811
797
  */
812
798
  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()
799
+ export const zCreateInviteBody = z.object({
800
+ email: z.string().optional()
819
801
  });
820
802
  /**
821
803
  * Successfully created. Returns created invite details.
822
804
  */
823
805
  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()
806
+ export const zGetInvitePath = z.object({
807
+ code: z.string()
830
808
  });
831
809
  /**
832
810
  * Returns a single object containing invite details.
833
811
  */
834
812
  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()
813
+ export const zDeleteInvitePath = z.object({
814
+ email: z.string()
846
815
  });
847
816
  /**
848
817
  * An array of chart listings in the marketplace.
849
818
  */
850
819
  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()
820
+ export const zGetMarketplaceChartFilesPath = z.object({
821
+ chart_name: z.string(),
822
+ version_channel: z.string()
858
823
  });
859
824
  /**
860
825
  * Returns an object containing the chart files for the latest matching version.
861
826
  */
862
827
  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()
828
+ /**
829
+ * JSON-RPC 2.0 request payload
830
+ */
831
+ export const zPostMcpBody = z.object({
832
+ jsonrpc: z.string().optional(),
833
+ method: z.string().optional(),
834
+ id: z.union([
835
+ z.string(),
836
+ z.number()
837
+ ]).optional(),
838
+ params: z.record(z.string(), z.unknown()).optional()
875
839
  });
876
840
  /**
877
841
  * JSON-RPC 2.0 success or error response
@@ -888,127 +852,118 @@ export const zPostMcpResponse = z.object({
888
852
  message: z.string().optional()
889
853
  }).optional()
890
854
  });
891
- export const zGetOrganizationData = z.object({
892
- body: z.never().optional(),
893
- path: z.never().optional(),
894
- query: z.never().optional()
895
- });
896
855
  /**
897
856
  * Returns a single object containing organization details.
898
857
  */
899
858
  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
- });
859
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
910
860
  /**
911
861
  * List of repositories
912
862
  */
913
863
  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()
864
+ export const zListTagsPath = z.object({
865
+ region: z.string(),
866
+ repository: z.string()
921
867
  });
922
868
  /**
923
869
  * Repository with tags
924
870
  */
925
871
  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()
872
+ export const zDeleteTagPath = z.object({
873
+ region: z.string(),
874
+ repository: z.string(),
875
+ tag: z.string()
876
+ });
877
+ export const zGetTagPath = z.object({
878
+ region: z.string(),
879
+ repository: z.string(),
880
+ tag: z.string()
943
881
  });
944
882
  /**
945
883
  * Tag details
946
884
  */
947
885
  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()
886
+ /**
887
+ * Tickets for the organization.
888
+ */
889
+ export const zListTicketsResponse = zTicketListResponse;
890
+ export const zCreateTicketBody = z.object({
891
+ payload: z.string().optional(),
892
+ attachments: z.array(z.string()).optional()
893
+ });
894
+ /**
895
+ * Ticket created.
896
+ */
897
+ export const zCreateTicketResponse = zTicket;
898
+ export const zCloseTicketPath = z.object({
899
+ ticket_id: z.string()
900
+ });
901
+ /**
902
+ * Ticket closed.
903
+ */
904
+ export const zCloseTicketResponse = zTicket;
905
+ export const zGetTicketPath = z.object({
906
+ ticket_id: z.string()
907
+ });
908
+ /**
909
+ * Ticket with messages (internal notes excluded).
910
+ */
911
+ export const zGetTicketResponse = zTicket;
912
+ export const zReplyTicketBody = z.object({
913
+ payload: z.string().optional(),
914
+ attachments: z.array(z.string()).optional()
915
+ });
916
+ export const zReplyTicketPath = z.object({
917
+ ticket_id: z.string()
918
+ });
919
+ /**
920
+ * Reply appended.
921
+ */
922
+ export const zReplyTicketResponse = zTicketMessage;
923
+ export const zGetTicketAttachmentPath = z.object({
924
+ ticket_id: z.string(),
925
+ attachment_id: z.string()
952
926
  });
927
+ /**
928
+ * Attachment binary stream.
929
+ */
930
+ export const zGetTicketAttachmentResponse = z.string();
953
931
  /**
954
932
  * Returns a list of access token details with masked secrets.
955
933
  */
956
934
  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
- });
935
+ export const zCreateTokenBody = zTokenCreateInput;
962
936
  /**
963
937
  * Successfully created. Returns created token details with unmasked/raw secret.
964
938
  */
965
939
  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()
940
+ export const zDeleteTokenPath = z.object({
941
+ token_id: z.string()
972
942
  });
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()
943
+ export const zGetTokenPath = z.object({
944
+ token_id: z.string()
979
945
  });
980
946
  /**
981
947
  * Returns access token details with masked secret.
982
948
  */
983
949
  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()
950
+ export const zUpdateTokenBody = zTokenUpdateInput;
951
+ export const zUpdateTokenPath = z.object({
952
+ token_id: z.string()
990
953
  });
991
954
  /**
992
955
  * Successfully updated. Returns updated token details with masked secret.
993
956
  */
994
957
  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()
958
+ export const zRegenerateTokenPath = z.object({
959
+ token_id: z.string()
1001
960
  });
1002
961
  /**
1003
962
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1004
963
  */
1005
964
  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()
965
+ export const zListUserOrganizationsPath = z.object({
966
+ email: z.string()
1012
967
  });
1013
968
  /**
1014
969
  * An array of organizations the user belongs to.
@@ -1017,52 +972,32 @@ export const zListUserOrganizationsResponse = z.array(z.object({
1017
972
  realm: z.string().optional(),
1018
973
  displayName: z.string().optional()
1019
974
  }));
1020
- export const zListUsersData = z.object({
1021
- body: z.never().optional(),
1022
- path: z.never().optional(),
1023
- query: z.never().optional()
1024
- });
1025
975
  /**
1026
976
  * An array of users
1027
977
  */
1028
978
  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
- });
979
+ export const zCreateUserBody = zUserCreateInput;
1034
980
  /**
1035
981
  * Successfully created. Returns created user details.
1036
982
  */
1037
983
  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()
984
+ export const zDeleteUserPath = z.object({
985
+ user_id: z.string()
1044
986
  });
1045
987
  /**
1046
988
  * User profile information
1047
989
  */
1048
990
  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()
991
+ export const zGetUserPath = z.object({
992
+ user_id: z.string()
1055
993
  });
1056
994
  /**
1057
995
  * User profile information
1058
996
  */
1059
997
  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()
998
+ export const zUpdateUserBody = zUserUpdateInput;
999
+ export const zUpdateUserPath = z.object({
1000
+ user_id: z.string()
1066
1001
  });
1067
1002
  /**
1068
1003
  * Successfully created. Returns created user details.