@cloudfleet/sdk 0.7.0 → 0.8.7

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?: {
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
  /**
@@ -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,172 @@ 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
+ /**
757
+ * Total size of all tags in the repository in bytes.
758
+ */
759
+ totalSize: number;
760
+ };
761
+ export type RegistryTag = {
762
+ /**
763
+ * Tag name.
764
+ */
765
+ name: string;
766
+ /**
767
+ * Media type of the manifest.
768
+ */
769
+ mediaType?: string;
770
+ /**
771
+ * Manifest config metadata.
772
+ */
773
+ config?: {
774
+ /**
775
+ * Size of the config in bytes.
776
+ */
777
+ size: number;
778
+ };
779
+ /**
780
+ * Array of layer metadata.
781
+ */
782
+ layers?: Array<{
783
+ /**
784
+ * Size of the layer in bytes.
785
+ */
786
+ size: number;
787
+ }>;
788
+ /**
789
+ * Array of manifests for multi-arch images.
790
+ */
791
+ manifests?: Array<{
792
+ /**
793
+ * Digest of the manifest.
794
+ */
795
+ digest: string;
796
+ /**
797
+ * Platform information for the manifest.
798
+ */
799
+ platform?: {
800
+ /**
801
+ * Architecture of the platform.
802
+ */
803
+ architecture: string;
804
+ /**
805
+ * Operating system of the platform.
806
+ */
807
+ os: string;
808
+ };
809
+ }>;
810
+ /**
811
+ * Total size of the tag in bytes.
812
+ */
813
+ size: number;
814
+ /**
815
+ * Registry region.
816
+ */
817
+ region: string;
818
+ /**
819
+ * Repository name.
820
+ */
821
+ repository: string;
822
+ /**
823
+ * Full URI of the tag.
824
+ */
825
+ uri: string;
826
+ };
616
827
  export type TokenCreateInput = {
617
828
  /**
618
829
  * Human readable access token name.
@@ -655,35 +866,85 @@ export type TokenUpdateInput = {
655
866
  */
656
867
  role?: 'Administrator' | 'User';
657
868
  };
869
+ export type UsageFacets = {
870
+ /**
871
+ * List of unique cluster IDs
872
+ */
873
+ cluster_id?: Array<string>;
874
+ /**
875
+ * List of unique products
876
+ */
877
+ product?: Array<string>;
878
+ };
879
+ export type UsageResponse = {
880
+ /**
881
+ * Usage data
882
+ */
883
+ data: Array<{
884
+ /**
885
+ * Hour of the usage
886
+ */
887
+ hour: string;
888
+ /**
889
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
890
+ */
891
+ cluster_id: string;
892
+ /**
893
+ * The product the usage is associated with
894
+ */
895
+ product: string;
896
+ /**
897
+ * Consumption
898
+ */
899
+ value: number;
900
+ /**
901
+ * Price per unit
902
+ */
903
+ price: number;
904
+ /**
905
+ * Total cost
906
+ */
907
+ total: number;
908
+ }>;
909
+ /**
910
+ * Facets for filtering
911
+ */
912
+ facets: {
913
+ /**
914
+ * List of unique cluster IDs
915
+ */
916
+ cluster_id?: Array<string>;
917
+ /**
918
+ * List of unique products
919
+ */
920
+ product?: Array<string>;
921
+ };
922
+ };
658
923
  export type Usage = {
659
924
  /**
660
925
  * Hour of the usage
661
926
  */
662
- hour?: string;
927
+ hour: string;
663
928
  /**
664
929
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
665
930
  */
666
931
  cluster_id: string;
667
932
  /**
668
- * Tier of the cluster.
933
+ * The product the usage is associated with
669
934
  */
670
- cluster_tier: 'basic' | 'pro' | '';
935
+ product: string;
671
936
  /**
672
- * The product the usage is associated with
937
+ * Consumption
673
938
  */
674
- product: 'cfke_controlplane' | 'cfke_connected_nodes' | 'infra_compute' | 'infra_storage' | 'infra_loadbalancing' | 'infra_traffic' | 'cfcr_storage';
939
+ value: number;
675
940
  /**
676
- * Name of the Kubernetes node
941
+ * Price per unit
677
942
  */
678
- node_name: string;
943
+ price: number;
679
944
  /**
680
- * SKU of the Kubernetes node
945
+ * Total cost
681
946
  */
682
- sku: string;
683
- cpu: number | '';
684
- price: number | '';
685
- value: number | '';
686
- total: number | '';
947
+ total: number;
687
948
  };
688
949
  export type UserCreateInput = {
689
950
  /**
@@ -770,7 +1031,12 @@ export type UserUpdateInput = {
770
1031
  export type GetUsageData = {
771
1032
  body?: never;
772
1033
  path?: never;
773
- query?: never;
1034
+ query?: {
1035
+ /**
1036
+ * 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)
1037
+ */
1038
+ granularity?: 'hourly' | 'daily' | 'monthly';
1039
+ };
774
1040
  url: '/billing/usage';
775
1041
  };
776
1042
  export type GetUsageErrors = {
@@ -781,9 +1047,9 @@ export type GetUsageErrors = {
781
1047
  };
782
1048
  export type GetUsageResponses = {
783
1049
  /**
784
- * An array of usage records.
1050
+ * Usage data with facets for filtering
785
1051
  */
786
- 200: Array<Usage>;
1052
+ 200: UsageResponse;
787
1053
  };
788
1054
  export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
789
1055
  export type GetPaymentMethodData = {
@@ -1372,24 +1638,76 @@ export type ListMarketplaceChartsResponses = {
1372
1638
  200: Array<MarketplaceListing>;
1373
1639
  };
1374
1640
  export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1375
- export type GetMarketplaceChartData = {
1641
+ export type GetMarketplaceChartFilesData = {
1376
1642
  body?: never;
1377
1643
  path: {
1378
1644
  /**
1379
- * Unique identifier of the chart listing in the marketplace.
1645
+ * Name of the chart in the marketplace.
1646
+ */
1647
+ chart_name: string;
1648
+ /**
1649
+ * Version of the chart.
1380
1650
  */
1381
- listing_id: string;
1651
+ version: string;
1382
1652
  };
1383
1653
  query?: never;
1384
- url: '/marketplace/{listing_id}';
1654
+ url: '/marketplace/{chart_name}/files/{version}';
1385
1655
  };
1386
- export type GetMarketplaceChartResponses = {
1656
+ export type GetMarketplaceChartFilesErrors = {
1387
1657
  /**
1388
- * Returns an object containing the chart listing details.
1658
+ * Chart or version not found
1389
1659
  */
1390
- 200: MarketplaceListing;
1660
+ 404: unknown;
1391
1661
  };
1392
- export type GetMarketplaceChartResponse = GetMarketplaceChartResponses[keyof GetMarketplaceChartResponses];
1662
+ export type GetMarketplaceChartFilesResponses = {
1663
+ /**
1664
+ * Returns an object containing the chart files.
1665
+ */
1666
+ 200: MarketplaceListingFiles;
1667
+ };
1668
+ export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
1669
+ export type PostMcpData = {
1670
+ /**
1671
+ * JSON-RPC 2.0 request payload
1672
+ */
1673
+ body: {
1674
+ jsonrpc?: string;
1675
+ method?: string;
1676
+ id?: string | number;
1677
+ /**
1678
+ * Method-specific parameters
1679
+ */
1680
+ params?: {
1681
+ [key: string]: unknown;
1682
+ };
1683
+ };
1684
+ path?: never;
1685
+ query?: never;
1686
+ url: '/mcp';
1687
+ };
1688
+ export type PostMcpErrors = {
1689
+ /**
1690
+ * Not authenticated
1691
+ */
1692
+ 401: unknown;
1693
+ };
1694
+ export type PostMcpResponses = {
1695
+ /**
1696
+ * JSON-RPC 2.0 success or error response
1697
+ */
1698
+ 200: {
1699
+ jsonrpc?: string;
1700
+ id?: string | number;
1701
+ result?: {
1702
+ [key: string]: unknown;
1703
+ };
1704
+ error?: {
1705
+ code?: number;
1706
+ message?: string;
1707
+ };
1708
+ };
1709
+ };
1710
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
1393
1711
  export type GetOrganizationData = {
1394
1712
  body?: never;
1395
1713
  path?: never;
@@ -1415,6 +1733,144 @@ export type CreateOrganizationResponses = {
1415
1733
  */
1416
1734
  200: unknown;
1417
1735
  };
1736
+ export type ListRepositoriesData = {
1737
+ body?: never;
1738
+ path?: never;
1739
+ query?: never;
1740
+ url: '/registry';
1741
+ };
1742
+ export type ListRepositoriesErrors = {
1743
+ /**
1744
+ * Not authenticated
1745
+ */
1746
+ 401: unknown;
1747
+ /**
1748
+ * Internal server error
1749
+ */
1750
+ 500: unknown;
1751
+ };
1752
+ export type ListRepositoriesResponses = {
1753
+ /**
1754
+ * List of repositories
1755
+ */
1756
+ 200: Array<RegistryRepository>;
1757
+ };
1758
+ export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
1759
+ export type ListTagsData = {
1760
+ body?: never;
1761
+ path: {
1762
+ /**
1763
+ * Region where the repository is located
1764
+ */
1765
+ region: string;
1766
+ /**
1767
+ * Name of the repository
1768
+ */
1769
+ repository: string;
1770
+ };
1771
+ query?: never;
1772
+ url: '/registry/{region}/{repository}';
1773
+ };
1774
+ export type ListTagsErrors = {
1775
+ /**
1776
+ * Not authenticated
1777
+ */
1778
+ 401: unknown;
1779
+ /**
1780
+ * Repository not found
1781
+ */
1782
+ 404: unknown;
1783
+ /**
1784
+ * Internal server error
1785
+ */
1786
+ 500: unknown;
1787
+ };
1788
+ export type ListTagsResponses = {
1789
+ /**
1790
+ * Repository with tags
1791
+ */
1792
+ 200: RegistryRepositoryWithTags;
1793
+ };
1794
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
1795
+ export type DeleteTagData = {
1796
+ body?: never;
1797
+ path: {
1798
+ /**
1799
+ * Region where the repository is located
1800
+ */
1801
+ region: string;
1802
+ /**
1803
+ * Name of the repository
1804
+ */
1805
+ repository: string;
1806
+ /**
1807
+ * Name of the tag
1808
+ */
1809
+ tag: string;
1810
+ };
1811
+ query?: never;
1812
+ url: '/registry/{region}/{repository}/{tag}';
1813
+ };
1814
+ export type DeleteTagErrors = {
1815
+ /**
1816
+ * Not authenticated
1817
+ */
1818
+ 401: unknown;
1819
+ /**
1820
+ * Tag not found
1821
+ */
1822
+ 404: unknown;
1823
+ /**
1824
+ * Internal server error
1825
+ */
1826
+ 500: unknown;
1827
+ };
1828
+ export type DeleteTagResponses = {
1829
+ /**
1830
+ * Tag successfully deleted
1831
+ */
1832
+ 200: unknown;
1833
+ };
1834
+ export type GetTagData = {
1835
+ body?: never;
1836
+ path: {
1837
+ /**
1838
+ * Region where the repository is located
1839
+ */
1840
+ region: string;
1841
+ /**
1842
+ * Name of the repository
1843
+ */
1844
+ repository: string;
1845
+ /**
1846
+ * Name of the tag
1847
+ */
1848
+ tag: string;
1849
+ };
1850
+ query?: never;
1851
+ url: '/registry/{region}/{repository}/{tag}';
1852
+ };
1853
+ export type GetTagErrors = {
1854
+ /**
1855
+ * Not authenticated
1856
+ */
1857
+ 401: unknown;
1858
+ /**
1859
+ * Tag not found
1860
+ */
1861
+ 404: unknown;
1862
+ /**
1863
+ * Internal server error
1864
+ */
1865
+ 500: unknown;
1866
+ };
1867
+ export type GetTagResponses = {
1868
+ /**
1869
+ * Tag details
1870
+ */
1871
+ 200: RegistryTag;
1872
+ };
1873
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
1418
1874
  export type ListTokensData = {
1419
1875
  body?: never;
1420
1876
  path?: never;