@cloudfleet/sdk 0.0.1-ef41cb3 → 0.0.1-f0a0ca4

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.
@@ -452,50 +452,87 @@ export type Invoice = {
452
452
  period_end: string;
453
453
  invoice_pdf?: string;
454
454
  };
455
- export type MarketplaceListing = {
455
+ export type MarketplaceListingFiles = {
456
456
  /**
457
- * Id of the chart listing
457
+ * Raw Chart.yaml content from the Helm chart
458
458
  */
459
- id: string;
459
+ chartYaml?: string;
460
460
  /**
461
- * Name of the chart listing
461
+ * Raw values.yaml content from the Helm chart
462
462
  */
463
- name: string;
463
+ valuesYaml?: string;
464
464
  /**
465
- * Author of the chart listing
465
+ * JSON schema for values.yaml as a string
466
466
  */
467
- developer: string;
467
+ valuesSchemaJson?: string;
468
+ };
469
+ export type MarketplaceListing = {
468
470
  /**
469
- * Short description of the chart listing
471
+ * Name of the chart
470
472
  */
471
- description: string;
473
+ name: string;
472
474
  /**
473
- * Logo of the chart listing
475
+ * Available versions of the chart
474
476
  */
475
- logoUrl: string;
477
+ versions: Array<string>;
476
478
  /**
477
- * Long description of the chart listing
479
+ * Version channels for the chart
478
480
  */
479
- longDescription: string;
481
+ version_channels: Array<string>;
480
482
  /**
481
- * Tags of the chart
483
+ * Latest version of the chart
482
484
  */
483
- categories: Array<string>;
484
- version_channels: Array<string>;
485
- value_schemas: Array<{
485
+ latestVersion: string;
486
+ /**
487
+ * Chart metadata
488
+ */
489
+ metadata?: {
486
490
  /**
487
- * Version of the chart.
491
+ * Chart name from metadata
492
+ */
493
+ name: string;
494
+ /**
495
+ * Chart version from metadata
488
496
  */
489
497
  version: string;
490
498
  /**
491
- * Schema of the chart values. JSON Schema as string
499
+ * Chart description
492
500
  */
493
- schema: string;
501
+ description?: string;
494
502
  /**
495
- * Schema of the chart values
503
+ * Application version
496
504
  */
497
- placeholder: string;
498
- }>;
505
+ appVersion?: string;
506
+ /**
507
+ * Helm API version
508
+ */
509
+ apiVersion?: string;
510
+ /**
511
+ * Chart keywords
512
+ */
513
+ keywords?: Array<string>;
514
+ /**
515
+ * Chart home URL
516
+ */
517
+ home?: string;
518
+ /**
519
+ * Chart source URLs
520
+ */
521
+ sources?: Array<string>;
522
+ /**
523
+ * Chart maintainers
524
+ */
525
+ maintainers?: Array<{
526
+ /**
527
+ * Maintainer name
528
+ */
529
+ name: string;
530
+ /**
531
+ * Maintainer email
532
+ */
533
+ email?: string;
534
+ }>;
535
+ };
499
536
  };
500
537
  export type OrganizationCreateInput = {
501
538
  /**
@@ -613,6 +650,164 @@ export type PaymentMethod = {
613
650
  */
614
651
  brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
615
652
  };
653
+ export type PlatformQuota = {
654
+ /**
655
+ * Maximum number of Basic clusters that can be created.
656
+ */
657
+ basic_clusters_max: number;
658
+ /**
659
+ * Available number of Basic clusters that can be created.
660
+ */
661
+ basic_clusters_available: number;
662
+ /**
663
+ * Maximum number of Pro clusters that can be created.
664
+ */
665
+ pro_clusters_max: number;
666
+ /**
667
+ * Available number of Pro clusters that can be created.
668
+ */
669
+ pro_clusters_available: number;
670
+ /**
671
+ * Maximum number of fleets that can be created per cluster.
672
+ */
673
+ fleets_max: number;
674
+ /**
675
+ * List of Cloudfleet cluster tiers available for the organization.
676
+ */
677
+ cluster_tiers: Array<string>;
678
+ /**
679
+ * List of Cloudfleet control plane regions available for the organization.
680
+ */
681
+ regions: Array<string>;
682
+ /**
683
+ * List of CFKE control plane versions available for the organization.
684
+ */
685
+ versions: Array<{
686
+ /**
687
+ * Id of the control plane version. Used in API calls.
688
+ */
689
+ id: string;
690
+ /**
691
+ * Label of the control plane version. Used in frontent UI.
692
+ */
693
+ label: string;
694
+ }>;
695
+ };
696
+ export type RegistryRepository = {
697
+ /**
698
+ * Repository name.
699
+ */
700
+ name: string;
701
+ /**
702
+ * Registry region.
703
+ */
704
+ region: string;
705
+ /**
706
+ * Full URI of the repository.
707
+ */
708
+ uri: string;
709
+ };
710
+ export type RegistryRepositoryWithTags = {
711
+ /**
712
+ * Repository name.
713
+ */
714
+ name: string;
715
+ /**
716
+ * Registry region.
717
+ */
718
+ region: string;
719
+ /**
720
+ * Full URI of the repository.
721
+ */
722
+ uri: string;
723
+ /**
724
+ * Array of tags in the repository.
725
+ */
726
+ tags: Array<{
727
+ /**
728
+ * Tag name.
729
+ */
730
+ name: string;
731
+ /**
732
+ * Size of the tag in bytes.
733
+ */
734
+ size: number;
735
+ /**
736
+ * Media type of the manifest.
737
+ */
738
+ mediaType?: string;
739
+ }>;
740
+ /**
741
+ * Total size of all tags in the repository in bytes.
742
+ */
743
+ totalSize: number;
744
+ };
745
+ export type RegistryTag = {
746
+ /**
747
+ * Tag name.
748
+ */
749
+ name: string;
750
+ /**
751
+ * Media type of the manifest.
752
+ */
753
+ mediaType?: string;
754
+ /**
755
+ * Manifest config metadata.
756
+ */
757
+ config?: {
758
+ /**
759
+ * Size of the config in bytes.
760
+ */
761
+ size: number;
762
+ };
763
+ /**
764
+ * Array of layer metadata.
765
+ */
766
+ layers?: Array<{
767
+ /**
768
+ * Size of the layer in bytes.
769
+ */
770
+ size: number;
771
+ }>;
772
+ /**
773
+ * Array of manifests for multi-arch images.
774
+ */
775
+ manifests?: Array<{
776
+ /**
777
+ * Digest of the manifest.
778
+ */
779
+ digest: string;
780
+ /**
781
+ * Platform information for the manifest.
782
+ */
783
+ platform?: {
784
+ /**
785
+ * Architecture of the platform.
786
+ */
787
+ architecture: string;
788
+ /**
789
+ * Operating system of the platform.
790
+ */
791
+ os: string;
792
+ };
793
+ }>;
794
+ /**
795
+ * Total size of the tag in bytes.
796
+ */
797
+ size: number;
798
+ /**
799
+ * Registry region.
800
+ */
801
+ region: string;
802
+ /**
803
+ * Repository name.
804
+ */
805
+ repository: string;
806
+ /**
807
+ * Full URI of the tag.
808
+ */
809
+ uri: string;
810
+ };
616
811
  export type TokenCreateInput = {
617
812
  /**
618
813
  * Human readable access token name.
@@ -655,35 +850,85 @@ export type TokenUpdateInput = {
655
850
  */
656
851
  role?: 'Administrator' | 'User';
657
852
  };
853
+ export type UsageFacets = {
854
+ /**
855
+ * List of unique cluster IDs
856
+ */
857
+ cluster_id?: Array<string>;
858
+ /**
859
+ * List of unique products
860
+ */
861
+ product?: Array<string>;
862
+ };
863
+ export type UsageResponse = {
864
+ /**
865
+ * Usage data
866
+ */
867
+ data: Array<{
868
+ /**
869
+ * Hour of the usage
870
+ */
871
+ hour: string;
872
+ /**
873
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
874
+ */
875
+ cluster_id: string;
876
+ /**
877
+ * The product the usage is associated with
878
+ */
879
+ product: string;
880
+ /**
881
+ * Consumption
882
+ */
883
+ value: number;
884
+ /**
885
+ * Price per unit
886
+ */
887
+ price: number;
888
+ /**
889
+ * Total cost
890
+ */
891
+ total: number;
892
+ }>;
893
+ /**
894
+ * Facets for filtering
895
+ */
896
+ facets: {
897
+ /**
898
+ * List of unique cluster IDs
899
+ */
900
+ cluster_id?: Array<string>;
901
+ /**
902
+ * List of unique products
903
+ */
904
+ product?: Array<string>;
905
+ };
906
+ };
658
907
  export type Usage = {
659
908
  /**
660
909
  * Hour of the usage
661
910
  */
662
- hour?: string;
911
+ hour: string;
663
912
  /**
664
913
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
665
914
  */
666
915
  cluster_id: string;
667
916
  /**
668
- * Tier of the cluster.
917
+ * The product the usage is associated with
669
918
  */
670
- cluster_tier: 'basic' | 'pro' | '';
919
+ product: string;
671
920
  /**
672
- * The product the usage is associated with
921
+ * Consumption
673
922
  */
674
- product: 'cfke_controlplane' | 'cfke_connected_nodes' | 'infra_compute' | 'infra_storage' | 'infra_loadbalancing' | 'infra_traffic' | 'cfcr_storage';
923
+ value: number;
675
924
  /**
676
- * Name of the Kubernetes node
925
+ * Price per unit
677
926
  */
678
- node_name: string;
927
+ price: number;
679
928
  /**
680
- * SKU of the Kubernetes node
929
+ * Total cost
681
930
  */
682
- sku: string;
683
- cpu: number | '';
684
- price: number | '';
685
- value: number | '';
686
- total: number | '';
931
+ total: number;
687
932
  };
688
933
  export type UserCreateInput = {
689
934
  /**
@@ -770,7 +1015,12 @@ export type UserUpdateInput = {
770
1015
  export type GetUsageData = {
771
1016
  body?: never;
772
1017
  path?: never;
773
- query?: never;
1018
+ query?: {
1019
+ /**
1020
+ * Time granularity for usage aggregation - hourly (Past 48 hours aggregated by hour), daily (Past 30 days aggregated by day), monthly (Past 12 months aggregated by month)
1021
+ */
1022
+ granularity?: 'hourly' | 'daily' | 'monthly';
1023
+ };
774
1024
  url: '/billing/usage';
775
1025
  };
776
1026
  export type GetUsageErrors = {
@@ -781,9 +1031,9 @@ export type GetUsageErrors = {
781
1031
  };
782
1032
  export type GetUsageResponses = {
783
1033
  /**
784
- * An array of usage records.
1034
+ * Usage data with facets for filtering
785
1035
  */
786
- 200: Array<Usage>;
1036
+ 200: UsageResponse;
787
1037
  };
788
1038
  export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
789
1039
  export type GetPaymentMethodData = {
@@ -1372,24 +1622,76 @@ export type ListMarketplaceChartsResponses = {
1372
1622
  200: Array<MarketplaceListing>;
1373
1623
  };
1374
1624
  export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1375
- export type GetMarketplaceChartData = {
1625
+ export type GetMarketplaceChartFilesData = {
1376
1626
  body?: never;
1377
1627
  path: {
1378
1628
  /**
1379
- * Unique identifier of the chart listing in the marketplace.
1629
+ * Name of the chart in the marketplace.
1630
+ */
1631
+ chart_name: string;
1632
+ /**
1633
+ * Version of the chart.
1634
+ */
1635
+ version: string;
1636
+ };
1637
+ query?: never;
1638
+ url: '/marketplace/{chart_name}/files/{version}';
1639
+ };
1640
+ export type GetMarketplaceChartFilesErrors = {
1641
+ /**
1642
+ * Chart or version not found
1643
+ */
1644
+ 404: unknown;
1645
+ };
1646
+ export type GetMarketplaceChartFilesResponses = {
1647
+ /**
1648
+ * Returns an object containing the chart files.
1649
+ */
1650
+ 200: MarketplaceListingFiles;
1651
+ };
1652
+ export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
1653
+ export type PostMcpData = {
1654
+ /**
1655
+ * JSON-RPC 2.0 request payload
1656
+ */
1657
+ body: {
1658
+ jsonrpc?: string;
1659
+ method?: string;
1660
+ id?: string | number;
1661
+ /**
1662
+ * Method-specific parameters
1380
1663
  */
1381
- listing_id: string;
1664
+ params?: {
1665
+ [key: string]: unknown;
1666
+ };
1382
1667
  };
1668
+ path?: never;
1383
1669
  query?: never;
1384
- url: '/marketplace/{listing_id}';
1670
+ url: '/mcp';
1385
1671
  };
1386
- export type GetMarketplaceChartResponses = {
1672
+ export type PostMcpErrors = {
1387
1673
  /**
1388
- * Returns an object containing the chart listing details.
1674
+ * Not authenticated
1389
1675
  */
1390
- 200: MarketplaceListing;
1676
+ 401: unknown;
1391
1677
  };
1392
- export type GetMarketplaceChartResponse = GetMarketplaceChartResponses[keyof GetMarketplaceChartResponses];
1678
+ export type PostMcpResponses = {
1679
+ /**
1680
+ * JSON-RPC 2.0 success or error response
1681
+ */
1682
+ 200: {
1683
+ jsonrpc?: string;
1684
+ id?: string | number;
1685
+ result?: {
1686
+ [key: string]: unknown;
1687
+ };
1688
+ error?: {
1689
+ code?: number;
1690
+ message?: string;
1691
+ };
1692
+ };
1693
+ };
1694
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
1393
1695
  export type GetOrganizationData = {
1394
1696
  body?: never;
1395
1697
  path?: never;
@@ -1415,6 +1717,144 @@ export type CreateOrganizationResponses = {
1415
1717
  */
1416
1718
  200: unknown;
1417
1719
  };
1720
+ export type ListRepositoriesData = {
1721
+ body?: never;
1722
+ path?: never;
1723
+ query?: never;
1724
+ url: '/registry';
1725
+ };
1726
+ export type ListRepositoriesErrors = {
1727
+ /**
1728
+ * Not authenticated
1729
+ */
1730
+ 401: unknown;
1731
+ /**
1732
+ * Internal server error
1733
+ */
1734
+ 500: unknown;
1735
+ };
1736
+ export type ListRepositoriesResponses = {
1737
+ /**
1738
+ * List of repositories
1739
+ */
1740
+ 200: Array<RegistryRepository>;
1741
+ };
1742
+ export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
1743
+ export type ListTagsData = {
1744
+ body?: never;
1745
+ path: {
1746
+ /**
1747
+ * Region where the repository is located
1748
+ */
1749
+ region: string;
1750
+ /**
1751
+ * Name of the repository
1752
+ */
1753
+ repository: string;
1754
+ };
1755
+ query?: never;
1756
+ url: '/registry/{region}/{repository}';
1757
+ };
1758
+ export type ListTagsErrors = {
1759
+ /**
1760
+ * Not authenticated
1761
+ */
1762
+ 401: unknown;
1763
+ /**
1764
+ * Repository not found
1765
+ */
1766
+ 404: unknown;
1767
+ /**
1768
+ * Internal server error
1769
+ */
1770
+ 500: unknown;
1771
+ };
1772
+ export type ListTagsResponses = {
1773
+ /**
1774
+ * Repository with tags
1775
+ */
1776
+ 200: RegistryRepositoryWithTags;
1777
+ };
1778
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
1779
+ export type DeleteTagData = {
1780
+ body?: never;
1781
+ path: {
1782
+ /**
1783
+ * Region where the repository is located
1784
+ */
1785
+ region: string;
1786
+ /**
1787
+ * Name of the repository
1788
+ */
1789
+ repository: string;
1790
+ /**
1791
+ * Name of the tag
1792
+ */
1793
+ tag: string;
1794
+ };
1795
+ query?: never;
1796
+ url: '/registry/{region}/{repository}/{tag}';
1797
+ };
1798
+ export type DeleteTagErrors = {
1799
+ /**
1800
+ * Not authenticated
1801
+ */
1802
+ 401: unknown;
1803
+ /**
1804
+ * Tag not found
1805
+ */
1806
+ 404: unknown;
1807
+ /**
1808
+ * Internal server error
1809
+ */
1810
+ 500: unknown;
1811
+ };
1812
+ export type DeleteTagResponses = {
1813
+ /**
1814
+ * Tag successfully deleted
1815
+ */
1816
+ 200: unknown;
1817
+ };
1818
+ export type GetTagData = {
1819
+ body?: never;
1820
+ path: {
1821
+ /**
1822
+ * Region where the repository is located
1823
+ */
1824
+ region: string;
1825
+ /**
1826
+ * Name of the repository
1827
+ */
1828
+ repository: string;
1829
+ /**
1830
+ * Name of the tag
1831
+ */
1832
+ tag: string;
1833
+ };
1834
+ query?: never;
1835
+ url: '/registry/{region}/{repository}/{tag}';
1836
+ };
1837
+ export type GetTagErrors = {
1838
+ /**
1839
+ * Not authenticated
1840
+ */
1841
+ 401: unknown;
1842
+ /**
1843
+ * Tag not found
1844
+ */
1845
+ 404: unknown;
1846
+ /**
1847
+ * Internal server error
1848
+ */
1849
+ 500: unknown;
1850
+ };
1851
+ export type GetTagResponses = {
1852
+ /**
1853
+ * Tag details
1854
+ */
1855
+ 200: RegistryTag;
1856
+ };
1857
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
1418
1858
  export type ListTokensData = {
1419
1859
  body?: never;
1420
1860
  path?: never;