@cloudfleet/sdk 0.0.1-2791829 → 0.0.1-2bacf54

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.
@@ -175,7 +175,7 @@ export type ClusterCreateInput = {
175
175
  /**
176
176
  * Version of the kubernetes cluster.
177
177
  */
178
- version_channel?: string;
178
+ version_channel?: '1.x.x-cfke.x' | '1.31.x-cfke.x' | '1.32.x-cfke.x' | '1.33.x-cfke.x';
179
179
  };
180
180
  export type ClusterJoinInformation = {
181
181
  /**
@@ -246,10 +246,6 @@ export type Cluster = {
246
246
  * Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.
247
247
  */
248
248
  region?: 'staging' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
249
- /**
250
- * Version of the kubernetes cluster.
251
- */
252
- version_channel?: string;
253
249
  /**
254
250
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
255
251
  */
@@ -279,6 +275,10 @@ export type Cluster = {
279
275
  * Indicates if the cluster is ready to be used.
280
276
  */
281
277
  ready?: boolean;
278
+ /**
279
+ * Version of the kubernetes cluster.
280
+ */
281
+ version_channel?: string;
282
282
  };
283
283
  export type ClusterUpdateInput = {
284
284
  /**
@@ -422,7 +422,7 @@ export type Invite = {
422
422
  };
423
423
  export type Invoice = {
424
424
  /**
425
- * Unique identifier of the invoice. UUID v4 string in canonical form
425
+ * Unique identifier of the invoice.
426
426
  */
427
427
  id?: string;
428
428
  number?: string;
@@ -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?: {
490
+ /**
491
+ * Chart name from metadata
492
+ */
493
+ name: string;
486
494
  /**
487
- * Version of the chart.
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
  /**
@@ -577,6 +614,14 @@ export type Organization = {
577
614
  */
578
615
  label: string;
579
616
  }>;
617
+ /**
618
+ * User-level maximum number of tokens Cloudfleet Copilot can process per hour.
619
+ */
620
+ copilot_user_hourly_tokens: number;
621
+ /**
622
+ * Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.
623
+ */
624
+ copilot_organization_hourly_tokens: number;
580
625
  };
581
626
  /**
582
627
  * Status of the organization. Can be `active` or `closed`, or `suspended`.
@@ -613,6 +658,205 @@ export type PaymentMethod = {
613
658
  */
614
659
  brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
615
660
  };
661
+ export type PlatformQuota = {
662
+ /**
663
+ * Maximum number of Basic clusters that can be created.
664
+ */
665
+ basic_clusters_max: number;
666
+ /**
667
+ * Available number of Basic clusters that can be created.
668
+ */
669
+ basic_clusters_available: number;
670
+ /**
671
+ * Maximum number of Pro clusters that can be created.
672
+ */
673
+ pro_clusters_max: number;
674
+ /**
675
+ * Available number of Pro clusters that can be created.
676
+ */
677
+ pro_clusters_available: number;
678
+ /**
679
+ * Maximum number of fleets that can be created per cluster.
680
+ */
681
+ fleets_max: number;
682
+ /**
683
+ * List of Cloudfleet cluster tiers available for the organization.
684
+ */
685
+ cluster_tiers: Array<string>;
686
+ /**
687
+ * List of Cloudfleet control plane regions available for the organization.
688
+ */
689
+ regions: Array<string>;
690
+ /**
691
+ * List of CFKE control plane versions available for the organization.
692
+ */
693
+ versions: Array<{
694
+ /**
695
+ * Id of the control plane version. Used in API calls.
696
+ */
697
+ id: string;
698
+ /**
699
+ * Label of the control plane version. Used in frontent UI.
700
+ */
701
+ label: string;
702
+ }>;
703
+ /**
704
+ * User-level maximum number of tokens Cloudfleet Copilot can process per hour.
705
+ */
706
+ copilot_user_hourly_tokens: number;
707
+ /**
708
+ * Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.
709
+ */
710
+ copilot_organization_hourly_tokens: number;
711
+ };
712
+ export type RegistryRepository = {
713
+ /**
714
+ * Repository name.
715
+ */
716
+ name: string;
717
+ /**
718
+ * Registry region.
719
+ */
720
+ region: string;
721
+ /**
722
+ * Full URI of the repository.
723
+ */
724
+ uri: string;
725
+ };
726
+ export type RegistryRepositoryWithTags = {
727
+ /**
728
+ * Repository name.
729
+ */
730
+ name: string;
731
+ /**
732
+ * Registry region.
733
+ */
734
+ region: string;
735
+ /**
736
+ * Full URI of the repository.
737
+ */
738
+ uri: string;
739
+ /**
740
+ * Array of tags in the repository.
741
+ */
742
+ tags: Array<{
743
+ /**
744
+ * Tag name.
745
+ */
746
+ name: string;
747
+ /**
748
+ * Size of the tag in bytes.
749
+ */
750
+ size: number;
751
+ /**
752
+ * Media type of the manifest.
753
+ */
754
+ mediaType?: string;
755
+ /**
756
+ * Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).
757
+ */
758
+ platforms?: Array<string>;
759
+ }>;
760
+ /**
761
+ * Total size of all tags in the repository in bytes.
762
+ */
763
+ totalSize: number;
764
+ };
765
+ export type RegistryTag = {
766
+ /**
767
+ * Tag name.
768
+ */
769
+ name: string;
770
+ /**
771
+ * Manifest digest for pulling by digest.
772
+ */
773
+ digest: string;
774
+ /**
775
+ * Media type of the manifest.
776
+ */
777
+ mediaType?: string;
778
+ /**
779
+ * Manifest config metadata.
780
+ */
781
+ config?: {
782
+ /**
783
+ * Size of the config in bytes.
784
+ */
785
+ size: number;
786
+ };
787
+ /**
788
+ * Array of layer metadata.
789
+ */
790
+ layers?: Array<{
791
+ /**
792
+ * Digest of the layer.
793
+ */
794
+ digest?: string;
795
+ /**
796
+ * Size of the layer in bytes.
797
+ */
798
+ size: number;
799
+ }>;
800
+ /**
801
+ * Array of manifests for multi-arch images.
802
+ */
803
+ manifests?: Array<{
804
+ /**
805
+ * Digest of the manifest.
806
+ */
807
+ digest: string;
808
+ /**
809
+ * Platform information for the manifest.
810
+ */
811
+ platform?: {
812
+ /**
813
+ * Architecture of the platform.
814
+ */
815
+ architecture: string;
816
+ /**
817
+ * Operating system of the platform.
818
+ */
819
+ os: string;
820
+ /**
821
+ * Variant of the platform (e.g., v7, v8 for ARM).
822
+ */
823
+ variant?: string;
824
+ };
825
+ /**
826
+ * Layers for this platform.
827
+ */
828
+ layers?: Array<{
829
+ /**
830
+ * Digest of the layer.
831
+ */
832
+ digest?: string;
833
+ /**
834
+ * Size of the layer in bytes.
835
+ */
836
+ size: number;
837
+ }>;
838
+ /**
839
+ * Total size of this platform manifest in bytes.
840
+ */
841
+ size?: number;
842
+ }>;
843
+ /**
844
+ * Total size of the tag in bytes.
845
+ */
846
+ size: number;
847
+ /**
848
+ * Registry region.
849
+ */
850
+ region: string;
851
+ /**
852
+ * Repository name.
853
+ */
854
+ repository: string;
855
+ /**
856
+ * Full URI of the tag.
857
+ */
858
+ uri: string;
859
+ };
616
860
  export type TokenCreateInput = {
617
861
  /**
618
862
  * Human readable access token name.
@@ -655,35 +899,85 @@ export type TokenUpdateInput = {
655
899
  */
656
900
  role?: 'Administrator' | 'User';
657
901
  };
902
+ export type UsageFacets = {
903
+ /**
904
+ * List of unique cluster IDs
905
+ */
906
+ cluster_id?: Array<string>;
907
+ /**
908
+ * List of unique products
909
+ */
910
+ product?: Array<string>;
911
+ };
912
+ export type UsageResponse = {
913
+ /**
914
+ * Usage data
915
+ */
916
+ data: Array<{
917
+ /**
918
+ * Hour of the usage
919
+ */
920
+ hour: string;
921
+ /**
922
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
923
+ */
924
+ cluster_id: string;
925
+ /**
926
+ * The product the usage is associated with
927
+ */
928
+ product: string;
929
+ /**
930
+ * Consumption
931
+ */
932
+ value: number;
933
+ /**
934
+ * Price per unit
935
+ */
936
+ price: number;
937
+ /**
938
+ * Total cost
939
+ */
940
+ total: number;
941
+ }>;
942
+ /**
943
+ * Facets for filtering
944
+ */
945
+ facets: {
946
+ /**
947
+ * List of unique cluster IDs
948
+ */
949
+ cluster_id?: Array<string>;
950
+ /**
951
+ * List of unique products
952
+ */
953
+ product?: Array<string>;
954
+ };
955
+ };
658
956
  export type Usage = {
659
957
  /**
660
958
  * Hour of the usage
661
959
  */
662
- hour?: string;
960
+ hour: string;
663
961
  /**
664
962
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
665
963
  */
666
964
  cluster_id: string;
667
965
  /**
668
- * Tier of the cluster.
966
+ * The product the usage is associated with
669
967
  */
670
- cluster_tier: 'basic' | 'pro' | '';
968
+ product: string;
671
969
  /**
672
- * The product the usage is associated with
970
+ * Consumption
673
971
  */
674
- product: 'cfke_controlplane' | 'cfke_connected_nodes' | 'infra_compute' | 'infra_storage' | 'infra_loadbalancing' | 'infra_traffic' | 'cfcr_storage';
972
+ value: number;
675
973
  /**
676
- * Name of the Kubernetes node
974
+ * Price per unit
677
975
  */
678
- node_name: string;
976
+ price: number;
679
977
  /**
680
- * SKU of the Kubernetes node
978
+ * Total cost
681
979
  */
682
- sku: string;
683
- cpu: number | '';
684
- price: number | '';
685
- value: number | '';
686
- total: number | '';
980
+ total: number;
687
981
  };
688
982
  export type UserCreateInput = {
689
983
  /**
@@ -770,7 +1064,12 @@ export type UserUpdateInput = {
770
1064
  export type GetUsageData = {
771
1065
  body?: never;
772
1066
  path?: never;
773
- query?: never;
1067
+ query?: {
1068
+ /**
1069
+ * 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)
1070
+ */
1071
+ granularity?: 'hourly' | 'daily' | 'monthly';
1072
+ };
774
1073
  url: '/billing/usage';
775
1074
  };
776
1075
  export type GetUsageErrors = {
@@ -781,9 +1080,9 @@ export type GetUsageErrors = {
781
1080
  };
782
1081
  export type GetUsageResponses = {
783
1082
  /**
784
- * An array of usage records.
1083
+ * Usage data with facets for filtering
785
1084
  */
786
- 200: Array<Usage>;
1085
+ 200: UsageResponse;
787
1086
  };
788
1087
  export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
789
1088
  export type GetPaymentMethodData = {
@@ -1372,24 +1671,76 @@ export type ListMarketplaceChartsResponses = {
1372
1671
  200: Array<MarketplaceListing>;
1373
1672
  };
1374
1673
  export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1375
- export type GetMarketplaceChartData = {
1674
+ export type GetMarketplaceChartFilesData = {
1376
1675
  body?: never;
1377
1676
  path: {
1378
1677
  /**
1379
- * Unique identifier of the chart listing in the marketplace.
1678
+ * Name of the chart in the marketplace.
1380
1679
  */
1381
- listing_id: string;
1680
+ chart_name: string;
1681
+ /**
1682
+ * Version channel pattern to match (e.g., "1.31.x-cfke.x" for latest 1.31 patch, "1.x.x-cfke.x" for latest 1.x minor).
1683
+ */
1684
+ version_channel: string;
1382
1685
  };
1383
1686
  query?: never;
1384
- url: '/marketplace/{listing_id}';
1687
+ url: '/marketplace/{chart_name}/files/{version_channel}';
1688
+ };
1689
+ export type GetMarketplaceChartFilesErrors = {
1690
+ /**
1691
+ * Chart not found or no version matches the channel
1692
+ */
1693
+ 404: unknown;
1385
1694
  };
1386
- export type GetMarketplaceChartResponses = {
1695
+ export type GetMarketplaceChartFilesResponses = {
1387
1696
  /**
1388
- * Returns an object containing the chart listing details.
1697
+ * Returns an object containing the chart files for the latest matching version.
1389
1698
  */
1390
- 200: MarketplaceListing;
1699
+ 200: MarketplaceListingFiles;
1391
1700
  };
1392
- export type GetMarketplaceChartResponse = GetMarketplaceChartResponses[keyof GetMarketplaceChartResponses];
1701
+ export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
1702
+ export type PostMcpData = {
1703
+ /**
1704
+ * JSON-RPC 2.0 request payload
1705
+ */
1706
+ body: {
1707
+ jsonrpc?: string;
1708
+ method?: string;
1709
+ id?: string | number;
1710
+ /**
1711
+ * Method-specific parameters
1712
+ */
1713
+ params?: {
1714
+ [key: string]: unknown;
1715
+ };
1716
+ };
1717
+ path?: never;
1718
+ query?: never;
1719
+ url: '/mcp';
1720
+ };
1721
+ export type PostMcpErrors = {
1722
+ /**
1723
+ * Not authenticated
1724
+ */
1725
+ 401: unknown;
1726
+ };
1727
+ export type PostMcpResponses = {
1728
+ /**
1729
+ * JSON-RPC 2.0 success or error response
1730
+ */
1731
+ 200: {
1732
+ jsonrpc?: string;
1733
+ id?: string | number;
1734
+ result?: {
1735
+ [key: string]: unknown;
1736
+ };
1737
+ error?: {
1738
+ code?: number;
1739
+ message?: string;
1740
+ };
1741
+ };
1742
+ };
1743
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
1393
1744
  export type GetOrganizationData = {
1394
1745
  body?: never;
1395
1746
  path?: never;
@@ -1415,6 +1766,144 @@ export type CreateOrganizationResponses = {
1415
1766
  */
1416
1767
  200: unknown;
1417
1768
  };
1769
+ export type ListRepositoriesData = {
1770
+ body?: never;
1771
+ path?: never;
1772
+ query?: never;
1773
+ url: '/registry';
1774
+ };
1775
+ export type ListRepositoriesErrors = {
1776
+ /**
1777
+ * Not authenticated
1778
+ */
1779
+ 401: unknown;
1780
+ /**
1781
+ * Internal server error
1782
+ */
1783
+ 500: unknown;
1784
+ };
1785
+ export type ListRepositoriesResponses = {
1786
+ /**
1787
+ * List of repositories
1788
+ */
1789
+ 200: Array<RegistryRepository>;
1790
+ };
1791
+ export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
1792
+ export type ListTagsData = {
1793
+ body?: never;
1794
+ path: {
1795
+ /**
1796
+ * Region where the repository is located
1797
+ */
1798
+ region: string;
1799
+ /**
1800
+ * Name of the repository
1801
+ */
1802
+ repository: string;
1803
+ };
1804
+ query?: never;
1805
+ url: '/registry/{region}/{repository}';
1806
+ };
1807
+ export type ListTagsErrors = {
1808
+ /**
1809
+ * Not authenticated
1810
+ */
1811
+ 401: unknown;
1812
+ /**
1813
+ * Repository not found
1814
+ */
1815
+ 404: unknown;
1816
+ /**
1817
+ * Internal server error
1818
+ */
1819
+ 500: unknown;
1820
+ };
1821
+ export type ListTagsResponses = {
1822
+ /**
1823
+ * Repository with tags
1824
+ */
1825
+ 200: RegistryRepositoryWithTags;
1826
+ };
1827
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
1828
+ export type DeleteTagData = {
1829
+ body?: never;
1830
+ path: {
1831
+ /**
1832
+ * Region where the repository is located
1833
+ */
1834
+ region: string;
1835
+ /**
1836
+ * Name of the repository
1837
+ */
1838
+ repository: string;
1839
+ /**
1840
+ * Name of the tag
1841
+ */
1842
+ tag: string;
1843
+ };
1844
+ query?: never;
1845
+ url: '/registry/{region}/{repository}/{tag}';
1846
+ };
1847
+ export type DeleteTagErrors = {
1848
+ /**
1849
+ * Not authenticated
1850
+ */
1851
+ 401: unknown;
1852
+ /**
1853
+ * Tag not found
1854
+ */
1855
+ 404: unknown;
1856
+ /**
1857
+ * Internal server error
1858
+ */
1859
+ 500: unknown;
1860
+ };
1861
+ export type DeleteTagResponses = {
1862
+ /**
1863
+ * Tag successfully deleted
1864
+ */
1865
+ 200: unknown;
1866
+ };
1867
+ export type GetTagData = {
1868
+ body?: never;
1869
+ path: {
1870
+ /**
1871
+ * Region where the repository is located
1872
+ */
1873
+ region: string;
1874
+ /**
1875
+ * Name of the repository
1876
+ */
1877
+ repository: string;
1878
+ /**
1879
+ * Name of the tag
1880
+ */
1881
+ tag: string;
1882
+ };
1883
+ query?: never;
1884
+ url: '/registry/{region}/{repository}/{tag}';
1885
+ };
1886
+ export type GetTagErrors = {
1887
+ /**
1888
+ * Not authenticated
1889
+ */
1890
+ 401: unknown;
1891
+ /**
1892
+ * Tag not found
1893
+ */
1894
+ 404: unknown;
1895
+ /**
1896
+ * Internal server error
1897
+ */
1898
+ 500: unknown;
1899
+ };
1900
+ export type GetTagResponses = {
1901
+ /**
1902
+ * Tag details
1903
+ */
1904
+ 200: RegistryTag;
1905
+ };
1906
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
1418
1907
  export type ListTokensData = {
1419
1908
  body?: never;
1420
1909
  path?: never;