@cloudfleet/sdk 0.0.1-da678d2 → 0.0.1-dc16042

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