@cloudfleet/sdk 0.0.1-e644e0d → 0.0.1-e80cef7

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,6 +43,126 @@ 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' | '';
54
+ };
55
+ export type BillingCredits = {
56
+ /**
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.
126
+ */
127
+ name: string;
128
+ /**
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;
46
166
  };
47
167
  export type ClusterCreateInput = {
48
168
  /**
@@ -190,10 +310,10 @@ export type FleetCreateInput = {
190
310
  };
191
311
  hetzner?: {
192
312
  enabled?: boolean;
193
- apiKey?: string;
194
- } | {
195
- apiKey?: string;
196
- enabled?: boolean;
313
+ /**
314
+ * Hetzner Cloud API key with read / write access
315
+ */
316
+ apiKey: string;
197
317
  };
198
318
  aws?: {
199
319
  enabled?: boolean;
@@ -206,10 +326,6 @@ export type FleetCreateInput = {
206
326
  * Unique identifier of the kubernetes fleet.
207
327
  */
208
328
  id: string;
209
- /**
210
- * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
211
- */
212
- type: 'managed' | 'connected';
213
329
  };
214
330
  export type Fleet = {
215
331
  /**
@@ -230,10 +346,10 @@ export type Fleet = {
230
346
  };
231
347
  hetzner?: {
232
348
  enabled?: boolean;
233
- apiKey?: string;
234
- } | {
235
- apiKey?: string;
236
- enabled?: boolean;
349
+ /**
350
+ * Hetzner Cloud API key with read / write access
351
+ */
352
+ apiKey: string;
237
353
  };
238
354
  aws?: {
239
355
  enabled?: boolean;
@@ -246,10 +362,6 @@ export type Fleet = {
246
362
  * Unique identifier of the kubernetes fleet.
247
363
  */
248
364
  id: string;
249
- /**
250
- * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
251
- */
252
- type: 'managed' | 'connected';
253
365
  };
254
366
  export type FleetUpdateInput = {
255
367
  /**
@@ -270,10 +382,10 @@ export type FleetUpdateInput = {
270
382
  };
271
383
  hetzner?: {
272
384
  enabled?: boolean;
273
- apiKey?: string;
274
- } | {
275
- apiKey?: string;
276
- enabled?: boolean;
385
+ /**
386
+ * Hetzner Cloud API key with read / write access
387
+ */
388
+ apiKey: string;
277
389
  };
278
390
  aws?: {
279
391
  enabled?: boolean;
@@ -283,178 +395,6 @@ export type FleetUpdateInput = {
283
395
  controllerRoleArn: string;
284
396
  };
285
397
  };
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
398
  export type Invite = {
459
399
  /**
460
400
  * Unique identifier of the invitation.
@@ -709,6 +649,51 @@ export type Invoice = {
709
649
  } | string>;
710
650
  }>;
711
651
  };
652
+ export type MarketplaceListing = {
653
+ /**
654
+ * Id of the chart listing
655
+ */
656
+ id: string;
657
+ /**
658
+ * Name of the chart listing
659
+ */
660
+ name: string;
661
+ /**
662
+ * Author of the chart listing
663
+ */
664
+ developer: string;
665
+ /**
666
+ * Short description of the chart listing
667
+ */
668
+ description: string;
669
+ /**
670
+ * Logo of the chart listing
671
+ */
672
+ logoUrl: string;
673
+ /**
674
+ * Long description of the chart listing
675
+ */
676
+ longDescription: string;
677
+ /**
678
+ * Tags of the chart
679
+ */
680
+ categories: Array<string>;
681
+ version_channels: Array<string>;
682
+ value_schemas: Array<{
683
+ /**
684
+ * Version of the chart.
685
+ */
686
+ version: string;
687
+ /**
688
+ * Schema of the chart values. JSON Schema as string
689
+ */
690
+ schema: string;
691
+ /**
692
+ * Schema of the chart values
693
+ */
694
+ placeholder: string;
695
+ }>;
696
+ };
712
697
  export type OrganizationCreateInput = {
713
698
  /**
714
699
  * Email address used for billing as a string.
@@ -768,10 +753,6 @@ export type Organization = {
768
753
  * Maximum number of fleets that can be created per cluster.
769
754
  */
770
755
  fleets_max: number;
771
- /**
772
- * Maximum number of CPU cores per managed fleet.
773
- */
774
- managed_fleets_cpu_max: number;
775
756
  /**
776
757
  * List of Cloudfleet cluster tiers available for the organization.
777
758
  */
@@ -883,11 +864,11 @@ export type Usage = {
883
864
  /**
884
865
  * Tier of the cluster.
885
866
  */
886
- cluster_tier: '';
867
+ cluster_tier: 'basic' | 'pro' | '';
887
868
  /**
888
869
  * The product the usage is associated with
889
870
  */
890
- product: 'cfke_infra_compute' | 'cfke_nodes' | 'cfke_controlplane';
871
+ product: 'cfke_controlplane' | 'cfke_connected_nodes' | 'infra_compute' | 'infra_storage' | 'infra_loadbalancing' | 'infra_traffic' | 'cfcr_storage';
891
872
  /**
892
873
  * Name of the Kubernetes node
893
874
  */
@@ -919,7 +900,7 @@ export type UserCreateInput = {
919
900
  */
920
901
  code: string;
921
902
  /**
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.
903
+ * User password. Must be at least 8 characters long.
923
904
  */
924
905
  password: string;
925
906
  /**
@@ -960,16 +941,6 @@ export type User = {
960
941
  * Creation date of the user. ISO 8601 date string in UTC timezone
961
942
  */
962
943
  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
944
  };
974
945
  export type UserUpdateInput = {
975
946
  /**
@@ -1137,6 +1108,156 @@ export type UpdateContactResponses = {
1137
1108
  200: BillingContact;
1138
1109
  };
1139
1110
  export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1111
+ export type GetCreditsData = {
1112
+ body?: never;
1113
+ path?: never;
1114
+ query?: never;
1115
+ url: '/billing/credits';
1116
+ };
1117
+ export type GetCreditsErrors = {
1118
+ /**
1119
+ * Not authenticated
1120
+ */
1121
+ 401: unknown;
1122
+ };
1123
+ export type GetCreditsResponses = {
1124
+ /**
1125
+ * An array of the applied promotional credits records.
1126
+ */
1127
+ 200: Array<BillingCredits>;
1128
+ };
1129
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1130
+ export type RedeemCreditsData = {
1131
+ body: {
1132
+ /**
1133
+ * Promotional code to redeem
1134
+ */
1135
+ code?: string;
1136
+ };
1137
+ path?: never;
1138
+ query?: never;
1139
+ url: '/billing/credits';
1140
+ };
1141
+ export type RedeemCreditsErrors = {
1142
+ /**
1143
+ * Not authenticated
1144
+ */
1145
+ 401: unknown;
1146
+ };
1147
+ export type RedeemCreditsResponses = {
1148
+ /**
1149
+ * Successfully created a new organization.
1150
+ */
1151
+ 200: unknown;
1152
+ };
1153
+ export type ListChartsData = {
1154
+ body?: never;
1155
+ path: {
1156
+ /**
1157
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1158
+ */
1159
+ cluster_id: string;
1160
+ };
1161
+ query?: never;
1162
+ url: '/clusters/{cluster_id}/charts';
1163
+ };
1164
+ export type ListChartsErrors = {
1165
+ /**
1166
+ * Not authenticated
1167
+ */
1168
+ 401: unknown;
1169
+ };
1170
+ export type ListChartsResponses = {
1171
+ /**
1172
+ * An array of charts
1173
+ */
1174
+ 200: Array<Chart>;
1175
+ };
1176
+ export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
1177
+ export type CreateChartData = {
1178
+ body: ChartCreateInput;
1179
+ path: {
1180
+ /**
1181
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1182
+ */
1183
+ cluster_id: string;
1184
+ };
1185
+ query?: never;
1186
+ url: '/clusters/{cluster_id}/charts';
1187
+ };
1188
+ export type CreateChartResponses = {
1189
+ /**
1190
+ * Successfully created. Returns created Chart ID.
1191
+ */
1192
+ 200: string;
1193
+ };
1194
+ export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1195
+ export type DeleteChartData = {
1196
+ body?: never;
1197
+ path: {
1198
+ /**
1199
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1200
+ */
1201
+ cluster_id: string;
1202
+ /**
1203
+ * Chart deployment name as the unique identifier of the chart.
1204
+ */
1205
+ chart_name: string;
1206
+ };
1207
+ query?: never;
1208
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1209
+ };
1210
+ export type DeleteChartResponses = {
1211
+ /**
1212
+ * Successfully deleted.
1213
+ */
1214
+ 200: string;
1215
+ };
1216
+ export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1217
+ export type GetChartData = {
1218
+ body?: never;
1219
+ path: {
1220
+ /**
1221
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1222
+ */
1223
+ cluster_id: string;
1224
+ /**
1225
+ * Chart deployment name as the unique identifier of the chart.
1226
+ */
1227
+ chart_name: string;
1228
+ };
1229
+ query?: never;
1230
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1231
+ };
1232
+ export type GetChartResponses = {
1233
+ /**
1234
+ * Returns a single object containing chart details.
1235
+ */
1236
+ 200: Chart;
1237
+ };
1238
+ export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1239
+ export type UpdateChartData = {
1240
+ body: ChartUpdateInput;
1241
+ path: {
1242
+ /**
1243
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1244
+ */
1245
+ cluster_id: string;
1246
+ /**
1247
+ * Chart deployment name as the unique identifier of the chart.
1248
+ */
1249
+ chart_name: string;
1250
+ };
1251
+ query?: never;
1252
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1253
+ };
1254
+ export type UpdateChartResponses = {
1255
+ /**
1256
+ * Successfully updated.
1257
+ */
1258
+ 200: string;
1259
+ };
1260
+ export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1140
1261
  export type ListFleetsData = {
1141
1262
  body?: never;
1142
1263
  path: {
@@ -1399,252 +1520,6 @@ export type GetJoinInformationResponses = {
1399
1520
  200: Cluster;
1400
1521
  };
1401
1522
  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
1523
  export type ListInvitesData = {
1649
1524
  body?: never;
1650
1525
  path?: never;
@@ -1717,6 +1592,43 @@ export type DeleteInviteResponses = {
1717
1592
  */
1718
1593
  200: unknown;
1719
1594
  };
1595
+ export type ListMarketplaceChartsData = {
1596
+ body?: never;
1597
+ path?: never;
1598
+ query?: never;
1599
+ url: '/marketplace';
1600
+ };
1601
+ export type ListMarketplaceChartsErrors = {
1602
+ /**
1603
+ * Not authenticated
1604
+ */
1605
+ 401: unknown;
1606
+ };
1607
+ export type ListMarketplaceChartsResponses = {
1608
+ /**
1609
+ * An array of chart listings in the marketplace.
1610
+ */
1611
+ 200: Array<MarketplaceListing>;
1612
+ };
1613
+ export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1614
+ export type GetMarketplaceChartData = {
1615
+ body?: never;
1616
+ path: {
1617
+ /**
1618
+ * Unique identifier of the chart listing in the marketplace.
1619
+ */
1620
+ listing_id: string;
1621
+ };
1622
+ query?: never;
1623
+ url: '/marketplace/{listing_id}';
1624
+ };
1625
+ export type GetMarketplaceChartResponses = {
1626
+ /**
1627
+ * Returns an object containing the chart listing details.
1628
+ */
1629
+ 200: MarketplaceListing;
1630
+ };
1631
+ export type GetMarketplaceChartResponse = GetMarketplaceChartResponses[keyof GetMarketplaceChartResponses];
1720
1632
  export type GetOrganizationData = {
1721
1633
  body?: never;
1722
1634
  path?: never;
@@ -1998,53 +1910,7 @@ export type UpdateUserResponses = {
1998
1910
  200: User;
1999
1911
  };
2000
1912
  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;
1913
+ export type ClientOptions = {
1914
+ baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
2048
1915
  };
2049
- export type SetClusterPermissionsResponse = SetClusterPermissionsResponses[keyof SetClusterPermissionsResponses];
2050
1916
  //# sourceMappingURL=types.gen.d.ts.map