@cloudfleet/sdk 0.0.1-e644e0d → 0.0.1-e9052b2

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.
@@ -43,20 +43,140 @@ export type BillingContact = {
43
43
  * Last name of the billing contact person.
44
44
  */
45
45
  last_name: string;
46
+ /**
47
+ * Tax ID of the organization.
48
+ */
49
+ tax_id?: string;
50
+ /**
51
+ * Type of the tax ID.
52
+ */
53
+ tax_id_type?: 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'at_vat' | 'au_abn' | 'au_arn' | 'ba_tin' | 'bb_tin' | 'be_vat' | 'bg_uic' | 'bg_vat' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cy_vat' | 'cz_vat' | 'de_stn' | 'de_vat' | 'dk_vat' | 'do_rcn' | 'ec_ruc' | 'ee_vat' | 'eg_tin' | 'es_cif' | 'es_vat' | 'eu_oss_vat' | 'fi_vat' | 'fr_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'gr_vat' | 'hk_br' | 'hr_oib' | 'hr_vat' | 'hu_tin' | 'hu_vat' | 'id_npwp' | 'ie_vat' | 'il_vat' | 'in_gst' | 'is_vat' | 'it_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'lt_vat' | 'lu_vat' | 'lv_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mt_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'nl_vat' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_vat' | 'pt_vat' | 'ro_tin' | 'ro_vat' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'se_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'si_vat' | 'sk_vat' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'xi_vat' | 'za_vat' | 'zm_tin' | 'zw_tin' | '';
46
54
  };
47
- export type ClusterCreateInput = {
55
+ export type BillingCredits = {
48
56
  /**
49
- * Name of the cluster.
57
+ * Generated unique identifier of the promotional code.
58
+ */
59
+ id?: string;
60
+ /**
61
+ * Date of the credit application. ISO 8601 date string in the UTC timezone.
62
+ */
63
+ date_created: string;
64
+ /**
65
+ * Promotional code used by the customer.
66
+ */
67
+ code: string;
68
+ /**
69
+ * Description of the promotional code.
70
+ */
71
+ description?: string;
72
+ /**
73
+ * List of product SKUs that the promotional code can be used on.
74
+ */
75
+ products?: Array<string>;
76
+ /**
77
+ * Type of the promotional code.
78
+ */
79
+ type: 'credit' | 'discount';
80
+ /**
81
+ * Value of the promotional code.
82
+ */
83
+ value: number;
84
+ /**
85
+ * Date of the billing cycle. An ISO 8601 date string in the UTC timezone.
86
+ */
87
+ billing_period: string;
88
+ /**
89
+ * Value of the promotional code.
90
+ */
91
+ value_remaining?: number;
92
+ };
93
+ export type ChartCreateInput = {
94
+ /**
95
+ * Values to be used in the chart encoded as a JSON string.
96
+ */
97
+ values: string;
98
+ /**
99
+ * Desired version range or channel for the chart.
100
+ */
101
+ version_channel: string;
102
+ /**
103
+ * Unique identifier of the chart deployment aka name of the helm release.
104
+ */
105
+ name: string;
106
+ /**
107
+ * Namespace of the chart deployment
108
+ */
109
+ namespace: string;
110
+ /**
111
+ * Name of the chart listing
112
+ */
113
+ chart: string;
114
+ };
115
+ export type Chart = {
116
+ /**
117
+ * Values to be used in the chart encoded as a JSON string.
118
+ */
119
+ values: string;
120
+ /**
121
+ * Desired version range or channel for the chart.
122
+ */
123
+ version_channel: string;
124
+ /**
125
+ * Unique identifier of the chart deployment aka name of the helm release.
50
126
  */
51
127
  name: string;
52
128
  /**
53
- * Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.
129
+ * Namespace of the chart deployment
130
+ */
131
+ namespace: string;
132
+ /**
133
+ * Name of the chart listing
134
+ */
135
+ chart: string;
136
+ /**
137
+ * Status of the chart deployment.
138
+ */
139
+ status: 'InstallSucceeded' | 'InstallFailed' | 'UpgradeSucceeded' | 'UpgradeFailed' | 'TestSucceeded' | 'TestFailed' | 'RollbackSucceeded' | 'RollbackFailed' | 'UninstallSucceeded' | 'UninstallFailed' | 'ArtifactFailed' | 'DependencyNotReady' | 'Progressing' | 'SourceNotReady';
140
+ /**
141
+ * Current version of the chart deployment.
142
+ */
143
+ version_current: string;
144
+ /**
145
+ * Creation date and time of the chart deployment.
146
+ */
147
+ created_at: string;
148
+ /**
149
+ * Last update date and time of the chart deployment.
150
+ */
151
+ updated_at: string;
152
+ /**
153
+ * Indicates if the chart deployment is ready to be used.
154
+ */
155
+ ready: boolean;
156
+ };
157
+ export type ChartUpdateInput = {
158
+ /**
159
+ * Values to be used in the chart encoded as a JSON string.
160
+ */
161
+ values: string;
162
+ /**
163
+ * Desired version range or channel for the chart.
164
+ */
165
+ version_channel: string;
166
+ };
167
+ export type ClusterCreateInput = {
168
+ /**
169
+ * Name of the cluster.
54
170
  */
55
- region?: 'staging' | 'northamerica-central-1';
171
+ name: string;
56
172
  /**
57
173
  * Tier of the cluster.
58
174
  */
59
175
  tier: 'basic' | 'pro';
176
+ /**
177
+ * Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.
178
+ */
179
+ region?: 'staging' | 'northamerica-central-1' | 'europe-central-1a';
60
180
  /**
61
181
  * Version of the kubernetes cluster.
62
182
  */
@@ -119,14 +239,14 @@ export type Cluster = {
119
239
  * Name of the cluster.
120
240
  */
121
241
  name: string;
122
- /**
123
- * Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.
124
- */
125
- region?: 'staging' | 'northamerica-central-1';
126
242
  /**
127
243
  * Tier of the cluster.
128
244
  */
129
245
  tier: 'basic' | 'pro';
246
+ /**
247
+ * Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.
248
+ */
249
+ region?: 'staging' | 'northamerica-central-1' | 'europe-central-1a';
130
250
  /**
131
251
  * Version of the kubernetes cluster.
132
252
  */
@@ -166,6 +286,10 @@ export type ClusterUpdateInput = {
166
286
  * Name of the cluster.
167
287
  */
168
288
  name?: string;
289
+ /**
290
+ * Tier of the cluster.
291
+ */
292
+ tier: 'basic' | 'pro';
169
293
  /**
170
294
  * Version of the kubernetes cluster.
171
295
  */
@@ -190,10 +314,10 @@ export type FleetCreateInput = {
190
314
  };
191
315
  hetzner?: {
192
316
  enabled?: boolean;
193
- apiKey?: string;
194
- } | {
195
- apiKey?: string;
196
- enabled?: boolean;
317
+ /**
318
+ * Hetzner Cloud API key with read / write access
319
+ */
320
+ apiKey: string;
197
321
  };
198
322
  aws?: {
199
323
  enabled?: boolean;
@@ -206,10 +330,6 @@ export type FleetCreateInput = {
206
330
  * Unique identifier of the kubernetes fleet.
207
331
  */
208
332
  id: string;
209
- /**
210
- * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
211
- */
212
- type: 'managed' | 'connected';
213
333
  };
214
334
  export type Fleet = {
215
335
  /**
@@ -230,10 +350,10 @@ export type Fleet = {
230
350
  };
231
351
  hetzner?: {
232
352
  enabled?: boolean;
233
- apiKey?: string;
234
- } | {
235
- apiKey?: string;
236
- enabled?: boolean;
353
+ /**
354
+ * Hetzner Cloud API key with read / write access
355
+ */
356
+ apiKey: string;
237
357
  };
238
358
  aws?: {
239
359
  enabled?: boolean;
@@ -246,10 +366,6 @@ export type Fleet = {
246
366
  * Unique identifier of the kubernetes fleet.
247
367
  */
248
368
  id: string;
249
- /**
250
- * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
251
- */
252
- type: 'managed' | 'connected';
253
369
  };
254
370
  export type FleetUpdateInput = {
255
371
  /**
@@ -270,10 +386,10 @@ export type FleetUpdateInput = {
270
386
  };
271
387
  hetzner?: {
272
388
  enabled?: boolean;
273
- apiKey?: string;
274
- } | {
275
- apiKey?: string;
276
- enabled?: boolean;
389
+ /**
390
+ * Hetzner Cloud API key with read / write access
391
+ */
392
+ apiKey: string;
277
393
  };
278
394
  aws?: {
279
395
  enabled?: boolean;
@@ -283,178 +399,6 @@ export type FleetUpdateInput = {
283
399
  controllerRoleArn: string;
284
400
  };
285
401
  };
286
- export type InfrastructureFilter = {
287
- /**
288
- * Version of the infrastructure filter definition. Currently only version 1 is supported.
289
- */
290
- version?: 1;
291
- /**
292
- * Limit selection of cloud providers to this list. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
293
- */
294
- provider?: Array<string>;
295
- /**
296
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
297
- */
298
- region?: Array<string>;
299
- /**
300
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
301
- */
302
- sub_region?: Array<string>;
303
- /**
304
- * Limits selection of cloud regions to this list of canonical provider regions
305
- */
306
- csp_region?: Array<string>;
307
- /**
308
- * Limits selection of instance types to this list. Instance / VM type as defined by the cloud service provider
309
- */
310
- instance_type?: Array<string>;
311
- /**
312
- * List of Normalized accelerator model names. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
313
- */
314
- accelerator_name?: Array<string>;
315
- /**
316
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
317
- */
318
- accelerator_manufacturer?: Array<string>;
319
- /**
320
- * Minimum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
321
- */
322
- accelerator_count_min?: number;
323
- /**
324
- * Maximum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
325
- */
326
- accelerator_count_max?: number;
327
- /**
328
- * Minimum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
329
- */
330
- accelerator_memory_min?: number;
331
- /**
332
- * Maximum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
333
- */
334
- accelerator_memory_max?: number;
335
- /**
336
- * Minimum amount of RAM in gibibytes (GiB)
337
- */
338
- memory_min?: number;
339
- /**
340
- * Maximum amount of RAM in gibibytes (GiB)
341
- */
342
- memory_max?: number;
343
- /**
344
- * Minimum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
345
- */
346
- vcpu_min?: number;
347
- /**
348
- * Maximum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
349
- */
350
- vcpu_max?: number;
351
- /**
352
- * Minimum total storage in GiB (attached and local)
353
- */
354
- storage_total_min?: number;
355
- /**
356
- * Maximum total storage in GiB (attached and local)
357
- */
358
- storage_total_max?: number;
359
- /**
360
- * Minimum volume of directly attached, block-device local storage in gibibytes (GiB)
361
- */
362
- storage_local_min?: number;
363
- /**
364
- * Maximum volume of directly attached, block-device local storage in gibibytes (GiB)
365
- */
366
- storage_local_max?: number;
367
- /**
368
- * Minimum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
369
- */
370
- price_min?: number;
371
- /**
372
- * Maximum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
373
- */
374
- price_max?: number;
375
- };
376
- export type InfrastructureInstance = {
377
- /**
378
- * Cloudfleet instance SKU. Has a format of <provider>-<csp_region>-<instance_type>.
379
- */
380
- sku: string;
381
- /**
382
- * Normalized cloud service provider name. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
383
- */
384
- provider: string;
385
- /**
386
- * Normalized region. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
387
- */
388
- region: string;
389
- /**
390
- * Normalized sub-region. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
391
- */
392
- sub_region: string;
393
- /**
394
- * Region as defined by the cloud service provider
395
- */
396
- csp_region: string;
397
- /**
398
- * Availability zone as defined by the cloud service provider
399
- */
400
- csp_zone: string;
401
- /**
402
- * Instance / VM type as defined by the cloud service provider
403
- */
404
- instance_type: string;
405
- /**
406
- * Instance CPU architecture
407
- */
408
- architecture: string;
409
- /**
410
- * Instance operating system
411
- */
412
- os: string;
413
- /**
414
- * CPU count as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
415
- */
416
- vcpu: number;
417
- /**
418
- * Total amount of RAM in gibibytes (GiB)
419
- */
420
- memory: number;
421
- /**
422
- * Volume of directly attached, block-device local storage in gibibytes (GiB)
423
- */
424
- local_storage: number;
425
- /**
426
- * Normalized model name of accelerator. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
427
- */
428
- accelerator_name?: string;
429
- /**
430
- * Normalized manufacturer name of accelerator. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
431
- */
432
- accelerator_manufacturer?: string;
433
- /**
434
- * Number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
435
- */
436
- accelerator_count?: number;
437
- /**
438
- * Ammount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
439
- */
440
- accelerator_memory?: number;
441
- /**
442
- * Maximum number of pods that can be run on this instance type.
443
- */
444
- pods_capacity?: number;
445
- /**
446
- * Capacity type of the instance. E.g. `on-demand`, `spot`.
447
- */
448
- capacity_type?: string;
449
- /**
450
- * Price of running the inctance per hour in USD as defined by the cloud service provider
451
- */
452
- price: number;
453
- /**
454
- * Whether this instance type is available.
455
- */
456
- available?: boolean;
457
- };
458
402
  export type Invite = {
459
403
  /**
460
404
  * Unique identifier of the invitation.
@@ -709,6 +653,51 @@ export type Invoice = {
709
653
  } | string>;
710
654
  }>;
711
655
  };
656
+ export type MarketplaceListing = {
657
+ /**
658
+ * Id of the chart listing
659
+ */
660
+ id: string;
661
+ /**
662
+ * Name of the chart listing
663
+ */
664
+ name: string;
665
+ /**
666
+ * Author of the chart listing
667
+ */
668
+ developer: string;
669
+ /**
670
+ * Short description of the chart listing
671
+ */
672
+ description: string;
673
+ /**
674
+ * Logo of the chart listing
675
+ */
676
+ logoUrl: string;
677
+ /**
678
+ * Long description of the chart listing
679
+ */
680
+ longDescription: string;
681
+ /**
682
+ * Tags of the chart
683
+ */
684
+ categories: Array<string>;
685
+ version_channels: Array<string>;
686
+ value_schemas: Array<{
687
+ /**
688
+ * Version of the chart.
689
+ */
690
+ version: string;
691
+ /**
692
+ * Schema of the chart values. JSON Schema as string
693
+ */
694
+ schema: string;
695
+ /**
696
+ * Schema of the chart values
697
+ */
698
+ placeholder: string;
699
+ }>;
700
+ };
712
701
  export type OrganizationCreateInput = {
713
702
  /**
714
703
  * Email address used for billing as a string.
@@ -768,10 +757,6 @@ export type Organization = {
768
757
  * Maximum number of fleets that can be created per cluster.
769
758
  */
770
759
  fleets_max: number;
771
- /**
772
- * Maximum number of CPU cores per managed fleet.
773
- */
774
- managed_fleets_cpu_max: number;
775
760
  /**
776
761
  * List of Cloudfleet cluster tiers available for the organization.
777
762
  */
@@ -883,11 +868,11 @@ export type Usage = {
883
868
  /**
884
869
  * Tier of the cluster.
885
870
  */
886
- cluster_tier: '';
871
+ cluster_tier: 'basic' | 'pro' | '';
887
872
  /**
888
873
  * The product the usage is associated with
889
874
  */
890
- product: 'cfke_infra_compute' | 'cfke_nodes' | 'cfke_controlplane';
875
+ product: 'cfke_controlplane' | 'cfke_connected_nodes' | 'infra_compute' | 'infra_storage' | 'infra_loadbalancing' | 'infra_traffic' | 'cfcr_storage';
891
876
  /**
892
877
  * Name of the Kubernetes node
893
878
  */
@@ -919,7 +904,7 @@ export type UserCreateInput = {
919
904
  */
920
905
  code: string;
921
906
  /**
922
- * User password. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.
907
+ * User password. Must be at least 8 characters long.
923
908
  */
924
909
  password: string;
925
910
  /**
@@ -960,16 +945,6 @@ export type User = {
960
945
  * Creation date of the user. ISO 8601 date string in UTC timezone
961
946
  */
962
947
  date_created: string;
963
- cluster_permissions?: Array<{
964
- /**
965
- * Unique identifier of the cluster. UUID v4 string in canonical form
966
- */
967
- cluster_id: string;
968
- /**
969
- * User permissions to access the cluster. Can be `readwrite` or `readonly`.
970
- */
971
- permissions: 'readwrite' | 'readonly';
972
- }>;
973
948
  };
974
949
  export type UserUpdateInput = {
975
950
  /**
@@ -1137,6 +1112,156 @@ export type UpdateContactResponses = {
1137
1112
  200: BillingContact;
1138
1113
  };
1139
1114
  export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1115
+ export type GetCreditsData = {
1116
+ body?: never;
1117
+ path?: never;
1118
+ query?: never;
1119
+ url: '/billing/credits';
1120
+ };
1121
+ export type GetCreditsErrors = {
1122
+ /**
1123
+ * Not authenticated
1124
+ */
1125
+ 401: unknown;
1126
+ };
1127
+ export type GetCreditsResponses = {
1128
+ /**
1129
+ * An array of the applied promotional credits records.
1130
+ */
1131
+ 200: Array<BillingCredits>;
1132
+ };
1133
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1134
+ export type RedeemCreditsData = {
1135
+ body: {
1136
+ /**
1137
+ * Promotional code to redeem
1138
+ */
1139
+ code?: string;
1140
+ };
1141
+ path?: never;
1142
+ query?: never;
1143
+ url: '/billing/credits';
1144
+ };
1145
+ export type RedeemCreditsErrors = {
1146
+ /**
1147
+ * Not authenticated
1148
+ */
1149
+ 401: unknown;
1150
+ };
1151
+ export type RedeemCreditsResponses = {
1152
+ /**
1153
+ * Successfully created a new organization.
1154
+ */
1155
+ 200: unknown;
1156
+ };
1157
+ export type ListChartsData = {
1158
+ body?: never;
1159
+ path: {
1160
+ /**
1161
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1162
+ */
1163
+ cluster_id: string;
1164
+ };
1165
+ query?: never;
1166
+ url: '/clusters/{cluster_id}/charts';
1167
+ };
1168
+ export type ListChartsErrors = {
1169
+ /**
1170
+ * Not authenticated
1171
+ */
1172
+ 401: unknown;
1173
+ };
1174
+ export type ListChartsResponses = {
1175
+ /**
1176
+ * An array of charts
1177
+ */
1178
+ 200: Array<Chart>;
1179
+ };
1180
+ export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
1181
+ export type CreateChartData = {
1182
+ body: ChartCreateInput;
1183
+ path: {
1184
+ /**
1185
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1186
+ */
1187
+ cluster_id: string;
1188
+ };
1189
+ query?: never;
1190
+ url: '/clusters/{cluster_id}/charts';
1191
+ };
1192
+ export type CreateChartResponses = {
1193
+ /**
1194
+ * Successfully created. Returns created Chart ID.
1195
+ */
1196
+ 200: string;
1197
+ };
1198
+ export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1199
+ export type DeleteChartData = {
1200
+ body?: never;
1201
+ path: {
1202
+ /**
1203
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1204
+ */
1205
+ cluster_id: string;
1206
+ /**
1207
+ * Chart deployment name as the unique identifier of the chart.
1208
+ */
1209
+ chart_name: string;
1210
+ };
1211
+ query?: never;
1212
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1213
+ };
1214
+ export type DeleteChartResponses = {
1215
+ /**
1216
+ * Successfully deleted.
1217
+ */
1218
+ 200: string;
1219
+ };
1220
+ export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1221
+ export type GetChartData = {
1222
+ body?: never;
1223
+ path: {
1224
+ /**
1225
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1226
+ */
1227
+ cluster_id: string;
1228
+ /**
1229
+ * Chart deployment name as the unique identifier of the chart.
1230
+ */
1231
+ chart_name: string;
1232
+ };
1233
+ query?: never;
1234
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1235
+ };
1236
+ export type GetChartResponses = {
1237
+ /**
1238
+ * Returns a single object containing chart details.
1239
+ */
1240
+ 200: Chart;
1241
+ };
1242
+ export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1243
+ export type UpdateChartData = {
1244
+ body: ChartUpdateInput;
1245
+ path: {
1246
+ /**
1247
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1248
+ */
1249
+ cluster_id: string;
1250
+ /**
1251
+ * Chart deployment name as the unique identifier of the chart.
1252
+ */
1253
+ chart_name: string;
1254
+ };
1255
+ query?: never;
1256
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1257
+ };
1258
+ export type UpdateChartResponses = {
1259
+ /**
1260
+ * Successfully updated.
1261
+ */
1262
+ 200: string;
1263
+ };
1264
+ export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1140
1265
  export type ListFleetsData = {
1141
1266
  body?: never;
1142
1267
  path: {
@@ -1399,252 +1524,6 @@ export type GetJoinInformationResponses = {
1399
1524
  200: Cluster;
1400
1525
  };
1401
1526
  export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
1402
- export type GetInfrastructureData = {
1403
- body?: never;
1404
- path?: never;
1405
- query?: {
1406
- /**
1407
- * Version of the task definition. Currently only version 1 is supported.
1408
- */
1409
- version?: 1;
1410
- /**
1411
- * Limit selection of cloud providers to this list. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
1412
- */
1413
- provider?: Array<string>;
1414
- /**
1415
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1416
- */
1417
- region?: Array<string>;
1418
- /**
1419
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1420
- */
1421
- sub_region?: Array<string>;
1422
- /**
1423
- * Limits selection of cloud regions to this list of canonical provider regions
1424
- */
1425
- csp_region?: Array<string>;
1426
- /**
1427
- * Limits selection of instance types to this list. Instance / VM type as defined by the cloud service provider
1428
- */
1429
- instance_type?: Array<string>;
1430
- /**
1431
- * List of Normalized accelerator model names. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
1432
- */
1433
- accelerator_name?: Array<string>;
1434
- /**
1435
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
1436
- */
1437
- accelerator_manufacturer?: Array<string>;
1438
- /**
1439
- * Minimum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1440
- */
1441
- accelerator_count_min?: number;
1442
- /**
1443
- * Maximum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1444
- */
1445
- accelerator_count_max?: number;
1446
- /**
1447
- * Minimum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1448
- */
1449
- accelerator_memory_min?: number;
1450
- /**
1451
- * Maximum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1452
- */
1453
- accelerator_memory_max?: number;
1454
- /**
1455
- * Minimum amount of RAM in gibibytes (GiB)
1456
- */
1457
- memory_min?: number;
1458
- /**
1459
- * Maximum amount of RAM in gibibytes (GiB)
1460
- */
1461
- memory_max?: number;
1462
- /**
1463
- * Minimum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1464
- */
1465
- vcpu_min?: number;
1466
- /**
1467
- * Maximum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1468
- */
1469
- vcpu_max?: number;
1470
- /**
1471
- * Minimum total storage in GiB (attached and local)
1472
- */
1473
- storage_total_min?: number;
1474
- /**
1475
- * Maximum total storage in GiB (attached and local)
1476
- */
1477
- storage_total_max?: number;
1478
- /**
1479
- * Minimum volume of directly attached, block-device local storage in gibibytes (GiB)
1480
- */
1481
- storage_local_min?: number;
1482
- /**
1483
- * Maximum volume of directly attached, block-device local storage in gibibytes (GiB)
1484
- */
1485
- storage_local_max?: number;
1486
- /**
1487
- * Minimum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
1488
- */
1489
- price_min?: number;
1490
- /**
1491
- * Maximum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
1492
- */
1493
- price_max?: number;
1494
- };
1495
- url: '/infrastructure';
1496
- };
1497
- export type GetInfrastructureErrors = {
1498
- /**
1499
- * Returns a validation error if any of the search parameters in the request are invalid
1500
- */
1501
- 400: Blob | File;
1502
- };
1503
- export type GetInfrastructureError = GetInfrastructureErrors[keyof GetInfrastructureErrors];
1504
- export type GetInfrastructureResponses = {
1505
- /**
1506
- * An array of instances returned by the search
1507
- */
1508
- 200: Array<InfrastructureInstance>;
1509
- };
1510
- export type GetInfrastructureResponse = GetInfrastructureResponses[keyof GetInfrastructureResponses];
1511
- export type GetFacetsData = {
1512
- body?: never;
1513
- path?: never;
1514
- query?: never;
1515
- url: '/infrastructure/facets';
1516
- };
1517
- export type GetFacetsResponses = {
1518
- /**
1519
- * Calculates search facets of the infrastructure catalog
1520
- */
1521
- 200: Array<{
1522
- /**
1523
- * Limit selection of cloud providers to this list. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
1524
- */
1525
- provider?: Array<string>;
1526
- /**
1527
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1528
- */
1529
- region?: Array<string>;
1530
- /**
1531
- * Limits selection of cloud sub-regions to this list of Cloudfleet sub-regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1532
- */
1533
- sub_region?: Array<string>;
1534
- /**
1535
- * Limits selection of cloud regions to this list of canonical provider regions
1536
- */
1537
- csp_region?: Array<string>;
1538
- /**
1539
- * Minimum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1540
- */
1541
- vcpu_min?: number;
1542
- /**
1543
- * Maximum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1544
- */
1545
- vcpu_max?: number;
1546
- /**
1547
- * Minimum amount of RAM in gibibytes (GiB)
1548
- */
1549
- memory_min?: number;
1550
- /**
1551
- * Maximum amount of RAM in gibibytes (GiB)
1552
- */
1553
- memory_max?: number;
1554
- /**
1555
- * Minimum volume of directly attached, block-device local storage in gibibytes (GiB)
1556
- */
1557
- storage_local_min?: number;
1558
- /**
1559
- * Maximum volume of directly attached, block-device local storage in gibibytes (GiB)
1560
- */
1561
- storage_local_max?: number;
1562
- /**
1563
- * List of Normalized accelerator model names. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
1564
- */
1565
- accelerator_name?: Array<string>;
1566
- /**
1567
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
1568
- */
1569
- accelerator_manufacturer?: Array<string>;
1570
- /**
1571
- * Minimum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1572
- */
1573
- accelerator_count_min?: number;
1574
- /**
1575
- * Maximum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1576
- */
1577
- accelerator_count_max?: number;
1578
- /**
1579
- * Minimum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1580
- */
1581
- accelerator_memory_min?: number;
1582
- /**
1583
- * Maximum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1584
- */
1585
- accelerator_memory_max?: number;
1586
- /**
1587
- * Minimum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
1588
- */
1589
- price_min?: number;
1590
- /**
1591
- * Maximum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
1592
- */
1593
- price_max?: number;
1594
- /**
1595
- * Structured array of regions and sub-regions
1596
- */
1597
- regions_struct?: Array<{
1598
- /**
1599
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1600
- */
1601
- region?: string;
1602
- sub_region?: Array<string>;
1603
- }>;
1604
- /**
1605
- * Structured array of regions and sub-regions
1606
- */
1607
- accelerators_struct?: Array<{
1608
- /**
1609
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
1610
- */
1611
- accelerator_manufacturer?: string;
1612
- accelerator_name?: Array<string>;
1613
- }>;
1614
- /**
1615
- * Total number of instances in the catalog
1616
- */
1617
- count_total?: number;
1618
- /**
1619
- * Total number of instances in the catalog with at least 1 accelerator
1620
- */
1621
- count_accelerators?: number;
1622
- /**
1623
- * Total number of unique instances types in the catalog
1624
- */
1625
- count_instance_types?: number;
1626
- /**
1627
- * Total number of unique instances types in the catalog with at least 1 accelerator
1628
- */
1629
- count_accelerators_instance_types?: number;
1630
- }>;
1631
- };
1632
- export type GetFacetsResponse = GetFacetsResponses[keyof GetFacetsResponses];
1633
- export type GetRegionsData = {
1634
- body?: never;
1635
- path?: never;
1636
- query?: never;
1637
- url: '/infrastructure/regions';
1638
- };
1639
- export type GetRegionsResponses = {
1640
- /**
1641
- * Available Cloudfleet regions and Kubernetes versions.
1642
- */
1643
- 200: {
1644
- [key: string]: unknown;
1645
- };
1646
- };
1647
- export type GetRegionsResponse = GetRegionsResponses[keyof GetRegionsResponses];
1648
1527
  export type ListInvitesData = {
1649
1528
  body?: never;
1650
1529
  path?: never;
@@ -1717,6 +1596,43 @@ export type DeleteInviteResponses = {
1717
1596
  */
1718
1597
  200: unknown;
1719
1598
  };
1599
+ export type ListMarketplaceChartsData = {
1600
+ body?: never;
1601
+ path?: never;
1602
+ query?: never;
1603
+ url: '/marketplace';
1604
+ };
1605
+ export type ListMarketplaceChartsErrors = {
1606
+ /**
1607
+ * Not authenticated
1608
+ */
1609
+ 401: unknown;
1610
+ };
1611
+ export type ListMarketplaceChartsResponses = {
1612
+ /**
1613
+ * An array of chart listings in the marketplace.
1614
+ */
1615
+ 200: Array<MarketplaceListing>;
1616
+ };
1617
+ export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1618
+ export type GetMarketplaceChartData = {
1619
+ body?: never;
1620
+ path: {
1621
+ /**
1622
+ * Unique identifier of the chart listing in the marketplace.
1623
+ */
1624
+ listing_id: string;
1625
+ };
1626
+ query?: never;
1627
+ url: '/marketplace/{listing_id}';
1628
+ };
1629
+ export type GetMarketplaceChartResponses = {
1630
+ /**
1631
+ * Returns an object containing the chart listing details.
1632
+ */
1633
+ 200: MarketplaceListing;
1634
+ };
1635
+ export type GetMarketplaceChartResponse = GetMarketplaceChartResponses[keyof GetMarketplaceChartResponses];
1720
1636
  export type GetOrganizationData = {
1721
1637
  body?: never;
1722
1638
  path?: never;
@@ -1998,53 +1914,7 @@ export type UpdateUserResponses = {
1998
1914
  200: User;
1999
1915
  };
2000
1916
  export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
2001
- export type DeleteClusterPermissionsData = {
2002
- body?: never;
2003
- path: {
2004
- /**
2005
- * Unique user identifier. UUID v4 string in canonical form
2006
- */
2007
- user_id: string;
2008
- /**
2009
- * Unique cluster identifier. UUID v4 string in canonical form
2010
- */
2011
- cluster_id: string;
2012
- };
2013
- query?: never;
2014
- url: '/users/{user_id}/clusters/{cluster_id}';
2015
- };
2016
- export type DeleteClusterPermissionsResponses = {
2017
- /**
2018
- * Successfully removed user from the cluster. Returns updated user details.
2019
- */
2020
- 200: User;
2021
- };
2022
- export type DeleteClusterPermissionsResponse = DeleteClusterPermissionsResponses[keyof DeleteClusterPermissionsResponses];
2023
- export type SetClusterPermissionsData = {
2024
- body: {
2025
- /**
2026
- * Level of permissions for the user to access the cluster
2027
- */
2028
- permissions?: 'readwrite' | 'readonly';
2029
- };
2030
- path: {
2031
- /**
2032
- * Unique user identifier. UUID v4 string in canonical form
2033
- */
2034
- user_id: string;
2035
- /**
2036
- * Unique cluster identifier. UUID v4 string in canonical form
2037
- */
2038
- cluster_id: string;
2039
- };
2040
- query?: never;
2041
- url: '/users/{user_id}/clusters/{cluster_id}';
2042
- };
2043
- export type SetClusterPermissionsResponses = {
2044
- /**
2045
- * Successfully created. Returns created user details.
2046
- */
2047
- 200: User;
1917
+ export type ClientOptions = {
1918
+ baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
2048
1919
  };
2049
- export type SetClusterPermissionsResponse = SetClusterPermissionsResponses[keyof SetClusterPermissionsResponses];
2050
1920
  //# sourceMappingURL=types.gen.d.ts.map