@cloudfleet/sdk 0.0.1-e644e0d → 0.0.1-e717067

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.
Files changed (71) hide show
  1. package/dist/client/client.gen.d.ts +3 -0
  2. package/dist/client/client.gen.d.ts.map +1 -0
  3. package/dist/client/client.gen.js +149 -0
  4. package/dist/client/client.gen.js.map +1 -0
  5. package/dist/client/index.d.ts +8 -0
  6. package/dist/client/index.d.ts.map +1 -0
  7. package/dist/client/index.js +6 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/client/types.gen.d.ts +123 -0
  10. package/dist/client/types.gen.d.ts.map +1 -0
  11. package/dist/client/types.gen.js +3 -0
  12. package/dist/client/types.gen.js.map +1 -0
  13. package/dist/client/utils.gen.d.ts +46 -0
  14. package/dist/client/utils.gen.d.ts.map +1 -0
  15. package/dist/client/utils.gen.js +286 -0
  16. package/dist/client/utils.gen.js.map +1 -0
  17. package/dist/client.gen.d.ts +13 -0
  18. package/dist/client.gen.d.ts.map +1 -0
  19. package/dist/client.gen.js +6 -0
  20. package/dist/client.gen.js.map +1 -0
  21. package/dist/core/auth.gen.d.ts +19 -0
  22. package/dist/core/auth.gen.d.ts.map +1 -0
  23. package/dist/core/auth.gen.js +15 -0
  24. package/dist/core/auth.gen.js.map +1 -0
  25. package/dist/core/bodySerializer.gen.d.ts +18 -0
  26. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  27. package/dist/core/bodySerializer.gen.js +55 -0
  28. package/dist/core/bodySerializer.gen.js.map +1 -0
  29. package/dist/core/params.gen.d.ts +34 -0
  30. package/dist/core/params.gen.d.ts.map +1 -0
  31. package/dist/core/params.gen.js +89 -0
  32. package/dist/core/params.gen.js.map +1 -0
  33. package/dist/core/pathSerializer.gen.d.ts +34 -0
  34. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  35. package/dist/core/pathSerializer.gen.js +115 -0
  36. package/dist/core/pathSerializer.gen.js.map +1 -0
  37. package/dist/core/types.gen.d.ts +79 -0
  38. package/dist/core/types.gen.d.ts.map +1 -0
  39. package/dist/core/types.gen.js +3 -0
  40. package/dist/core/types.gen.js.map +1 -0
  41. package/dist/index.d.ts +3 -0
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +3 -0
  44. package/dist/index.js.map +1 -1
  45. package/dist/schemas.gen.d.ts +347 -399
  46. package/dist/schemas.gen.d.ts.map +1 -1
  47. package/dist/schemas.gen.js +348 -408
  48. package/dist/schemas.gen.js.map +1 -1
  49. package/dist/sdk.gen.d.ts +135 -133
  50. package/dist/sdk.gen.d.ts.map +1 -1
  51. package/dist/sdk.gen.js +189 -132
  52. package/dist/sdk.gen.js.map +1 -1
  53. package/dist/services/kubernetes/api.d.ts +196 -0
  54. package/dist/services/kubernetes/api.d.ts.map +1 -0
  55. package/dist/services/kubernetes/api.js +140 -0
  56. package/dist/services/kubernetes/api.js.map +1 -0
  57. package/dist/services/kubernetes/index.d.ts +44 -0
  58. package/dist/services/kubernetes/index.d.ts.map +1 -0
  59. package/dist/services/kubernetes/index.js +68 -0
  60. package/dist/services/kubernetes/index.js.map +1 -0
  61. package/dist/services/kubernetes/types.d.ts +1335 -0
  62. package/dist/services/kubernetes/types.d.ts.map +1 -0
  63. package/dist/services/kubernetes/types.js +2 -0
  64. package/dist/services/kubernetes/types.js.map +1 -0
  65. package/dist/types.gen.d.ts +386 -512
  66. package/dist/types.gen.d.ts.map +1 -1
  67. package/dist/zod.gen.d.ts +2774 -2299
  68. package/dist/zod.gen.d.ts.map +1 -1
  69. package/dist/zod.gen.js +846 -300
  70. package/dist/zod.gen.js.map +1 -1
  71. package/package.json +8 -5
@@ -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.
50
104
  */
51
105
  name: string;
52
106
  /**
53
- * Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.
107
+ * Namespace of the chart deployment
54
108
  */
55
- region?: 'staging' | 'northamerica-central-1';
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;
166
+ };
167
+ export type ClusterCreateInput = {
168
+ /**
169
+ * Name of the cluster.
170
+ */
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", "northamerica-central-1a". This field can not be updated after creation.
178
+ */
179
+ region?: 'staging' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
60
180
  /**
61
181
  * Version of the kubernetes cluster.
62
182
  */
@@ -95,6 +215,10 @@ export type ClusterJoinInformation = {
95
215
  * Containerd version of the cluster.
96
216
  */
97
217
  containerd: string;
218
+ /**
219
+ * NVIDIA driver version of the cluster.
220
+ */
221
+ nvidia_driver: string;
98
222
  };
99
223
  /**
100
224
  * OIDC Information for hosts to access to third party API's.
@@ -119,14 +243,14 @@ export type Cluster = {
119
243
  * Name of the cluster.
120
244
  */
121
245
  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
246
  /**
127
247
  * Tier of the cluster.
128
248
  */
129
249
  tier: 'basic' | 'pro';
250
+ /**
251
+ * Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.
252
+ */
253
+ region?: 'staging' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
130
254
  /**
131
255
  * Version of the kubernetes cluster.
132
256
  */
@@ -166,6 +290,10 @@ export type ClusterUpdateInput = {
166
290
  * Name of the cluster.
167
291
  */
168
292
  name?: string;
293
+ /**
294
+ * Tier of the cluster.
295
+ */
296
+ tier: 'basic' | 'pro';
169
297
  /**
170
298
  * Version of the kubernetes cluster.
171
299
  */
@@ -190,10 +318,10 @@ export type FleetCreateInput = {
190
318
  };
191
319
  hetzner?: {
192
320
  enabled?: boolean;
193
- apiKey?: string;
194
- } | {
195
- apiKey?: string;
196
- enabled?: boolean;
321
+ /**
322
+ * Hetzner Cloud API key with read / write access
323
+ */
324
+ apiKey: string;
197
325
  };
198
326
  aws?: {
199
327
  enabled?: boolean;
@@ -206,10 +334,6 @@ export type FleetCreateInput = {
206
334
  * Unique identifier of the kubernetes fleet.
207
335
  */
208
336
  id: string;
209
- /**
210
- * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
211
- */
212
- type: 'managed' | 'connected';
213
337
  };
214
338
  export type Fleet = {
215
339
  /**
@@ -230,10 +354,10 @@ export type Fleet = {
230
354
  };
231
355
  hetzner?: {
232
356
  enabled?: boolean;
233
- apiKey?: string;
234
- } | {
235
- apiKey?: string;
236
- enabled?: boolean;
357
+ /**
358
+ * Hetzner Cloud API key with read / write access
359
+ */
360
+ apiKey: string;
237
361
  };
238
362
  aws?: {
239
363
  enabled?: boolean;
@@ -246,10 +370,6 @@ export type Fleet = {
246
370
  * Unique identifier of the kubernetes fleet.
247
371
  */
248
372
  id: string;
249
- /**
250
- * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
251
- */
252
- type: 'managed' | 'connected';
253
373
  };
254
374
  export type FleetUpdateInput = {
255
375
  /**
@@ -270,10 +390,10 @@ export type FleetUpdateInput = {
270
390
  };
271
391
  hetzner?: {
272
392
  enabled?: boolean;
273
- apiKey?: string;
274
- } | {
275
- apiKey?: string;
276
- enabled?: boolean;
393
+ /**
394
+ * Hetzner Cloud API key with read / write access
395
+ */
396
+ apiKey: string;
277
397
  };
278
398
  aws?: {
279
399
  enabled?: boolean;
@@ -283,178 +403,6 @@ export type FleetUpdateInput = {
283
403
  controllerRoleArn: string;
284
404
  };
285
405
  };
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
406
  export type Invite = {
459
407
  /**
460
408
  * Unique identifier of the invitation.
@@ -709,6 +657,51 @@ export type Invoice = {
709
657
  } | string>;
710
658
  }>;
711
659
  };
660
+ export type MarketplaceListing = {
661
+ /**
662
+ * Id of the chart listing
663
+ */
664
+ id: string;
665
+ /**
666
+ * Name of the chart listing
667
+ */
668
+ name: string;
669
+ /**
670
+ * Author of the chart listing
671
+ */
672
+ developer: string;
673
+ /**
674
+ * Short description of the chart listing
675
+ */
676
+ description: string;
677
+ /**
678
+ * Logo of the chart listing
679
+ */
680
+ logoUrl: string;
681
+ /**
682
+ * Long description of the chart listing
683
+ */
684
+ longDescription: string;
685
+ /**
686
+ * Tags of the chart
687
+ */
688
+ categories: Array<string>;
689
+ version_channels: Array<string>;
690
+ value_schemas: Array<{
691
+ /**
692
+ * Version of the chart.
693
+ */
694
+ version: string;
695
+ /**
696
+ * Schema of the chart values. JSON Schema as string
697
+ */
698
+ schema: string;
699
+ /**
700
+ * Schema of the chart values
701
+ */
702
+ placeholder: string;
703
+ }>;
704
+ };
712
705
  export type OrganizationCreateInput = {
713
706
  /**
714
707
  * Email address used for billing as a string.
@@ -768,10 +761,6 @@ export type Organization = {
768
761
  * Maximum number of fleets that can be created per cluster.
769
762
  */
770
763
  fleets_max: number;
771
- /**
772
- * Maximum number of CPU cores per managed fleet.
773
- */
774
- managed_fleets_cpu_max: number;
775
764
  /**
776
765
  * List of Cloudfleet cluster tiers available for the organization.
777
766
  */
@@ -883,11 +872,11 @@ export type Usage = {
883
872
  /**
884
873
  * Tier of the cluster.
885
874
  */
886
- cluster_tier: '';
875
+ cluster_tier: 'basic' | 'pro' | '';
887
876
  /**
888
877
  * The product the usage is associated with
889
878
  */
890
- product: 'cfke_infra_compute' | 'cfke_nodes' | 'cfke_controlplane';
879
+ product: 'cfke_controlplane' | 'cfke_connected_nodes' | 'infra_compute' | 'infra_storage' | 'infra_loadbalancing' | 'infra_traffic' | 'cfcr_storage';
891
880
  /**
892
881
  * Name of the Kubernetes node
893
882
  */
@@ -919,7 +908,7 @@ export type UserCreateInput = {
919
908
  */
920
909
  code: string;
921
910
  /**
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.
911
+ * User password. Must be at least 8 characters long.
923
912
  */
924
913
  password: string;
925
914
  /**
@@ -960,16 +949,6 @@ export type User = {
960
949
  * Creation date of the user. ISO 8601 date string in UTC timezone
961
950
  */
962
951
  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
952
  };
974
953
  export type UserUpdateInput = {
975
954
  /**
@@ -1137,6 +1116,156 @@ export type UpdateContactResponses = {
1137
1116
  200: BillingContact;
1138
1117
  };
1139
1118
  export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1119
+ export type GetCreditsData = {
1120
+ body?: never;
1121
+ path?: never;
1122
+ query?: never;
1123
+ url: '/billing/credits';
1124
+ };
1125
+ export type GetCreditsErrors = {
1126
+ /**
1127
+ * Not authenticated
1128
+ */
1129
+ 401: unknown;
1130
+ };
1131
+ export type GetCreditsResponses = {
1132
+ /**
1133
+ * An array of the applied promotional credits records.
1134
+ */
1135
+ 200: Array<BillingCredits>;
1136
+ };
1137
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1138
+ export type RedeemCreditsData = {
1139
+ body: {
1140
+ /**
1141
+ * Promotional code to redeem
1142
+ */
1143
+ code?: string;
1144
+ };
1145
+ path?: never;
1146
+ query?: never;
1147
+ url: '/billing/credits';
1148
+ };
1149
+ export type RedeemCreditsErrors = {
1150
+ /**
1151
+ * Not authenticated
1152
+ */
1153
+ 401: unknown;
1154
+ };
1155
+ export type RedeemCreditsResponses = {
1156
+ /**
1157
+ * Successfully created a new organization.
1158
+ */
1159
+ 200: unknown;
1160
+ };
1161
+ export type ListChartsData = {
1162
+ body?: never;
1163
+ path: {
1164
+ /**
1165
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1166
+ */
1167
+ cluster_id: string;
1168
+ };
1169
+ query?: never;
1170
+ url: '/clusters/{cluster_id}/charts';
1171
+ };
1172
+ export type ListChartsErrors = {
1173
+ /**
1174
+ * Not authenticated
1175
+ */
1176
+ 401: unknown;
1177
+ };
1178
+ export type ListChartsResponses = {
1179
+ /**
1180
+ * An array of charts
1181
+ */
1182
+ 200: Array<Chart>;
1183
+ };
1184
+ export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
1185
+ export type CreateChartData = {
1186
+ body: ChartCreateInput;
1187
+ path: {
1188
+ /**
1189
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1190
+ */
1191
+ cluster_id: string;
1192
+ };
1193
+ query?: never;
1194
+ url: '/clusters/{cluster_id}/charts';
1195
+ };
1196
+ export type CreateChartResponses = {
1197
+ /**
1198
+ * Successfully created. Returns created Chart ID.
1199
+ */
1200
+ 200: string;
1201
+ };
1202
+ export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1203
+ export type DeleteChartData = {
1204
+ body?: never;
1205
+ path: {
1206
+ /**
1207
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1208
+ */
1209
+ cluster_id: string;
1210
+ /**
1211
+ * Chart deployment name as the unique identifier of the chart.
1212
+ */
1213
+ chart_name: string;
1214
+ };
1215
+ query?: never;
1216
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1217
+ };
1218
+ export type DeleteChartResponses = {
1219
+ /**
1220
+ * Successfully deleted.
1221
+ */
1222
+ 200: string;
1223
+ };
1224
+ export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1225
+ export type GetChartData = {
1226
+ body?: never;
1227
+ path: {
1228
+ /**
1229
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1230
+ */
1231
+ cluster_id: string;
1232
+ /**
1233
+ * Chart deployment name as the unique identifier of the chart.
1234
+ */
1235
+ chart_name: string;
1236
+ };
1237
+ query?: never;
1238
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1239
+ };
1240
+ export type GetChartResponses = {
1241
+ /**
1242
+ * Returns a single object containing chart details.
1243
+ */
1244
+ 200: Chart;
1245
+ };
1246
+ export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1247
+ export type UpdateChartData = {
1248
+ body: ChartUpdateInput;
1249
+ path: {
1250
+ /**
1251
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1252
+ */
1253
+ cluster_id: string;
1254
+ /**
1255
+ * Chart deployment name as the unique identifier of the chart.
1256
+ */
1257
+ chart_name: string;
1258
+ };
1259
+ query?: never;
1260
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1261
+ };
1262
+ export type UpdateChartResponses = {
1263
+ /**
1264
+ * Successfully updated.
1265
+ */
1266
+ 200: string;
1267
+ };
1268
+ export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1140
1269
  export type ListFleetsData = {
1141
1270
  body?: never;
1142
1271
  path: {
@@ -1396,255 +1525,9 @@ export type GetJoinInformationResponses = {
1396
1525
  /**
1397
1526
  * An object of cluster join information
1398
1527
  */
1399
- 200: Cluster;
1528
+ 200: ClusterJoinInformation;
1400
1529
  };
1401
1530
  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
1531
  export type ListInvitesData = {
1649
1532
  body?: never;
1650
1533
  path?: never;
@@ -1717,6 +1600,43 @@ export type DeleteInviteResponses = {
1717
1600
  */
1718
1601
  200: unknown;
1719
1602
  };
1603
+ export type ListMarketplaceChartsData = {
1604
+ body?: never;
1605
+ path?: never;
1606
+ query?: never;
1607
+ url: '/marketplace';
1608
+ };
1609
+ export type ListMarketplaceChartsErrors = {
1610
+ /**
1611
+ * Not authenticated
1612
+ */
1613
+ 401: unknown;
1614
+ };
1615
+ export type ListMarketplaceChartsResponses = {
1616
+ /**
1617
+ * An array of chart listings in the marketplace.
1618
+ */
1619
+ 200: Array<MarketplaceListing>;
1620
+ };
1621
+ export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1622
+ export type GetMarketplaceChartData = {
1623
+ body?: never;
1624
+ path: {
1625
+ /**
1626
+ * Unique identifier of the chart listing in the marketplace.
1627
+ */
1628
+ listing_id: string;
1629
+ };
1630
+ query?: never;
1631
+ url: '/marketplace/{listing_id}';
1632
+ };
1633
+ export type GetMarketplaceChartResponses = {
1634
+ /**
1635
+ * Returns an object containing the chart listing details.
1636
+ */
1637
+ 200: MarketplaceListing;
1638
+ };
1639
+ export type GetMarketplaceChartResponse = GetMarketplaceChartResponses[keyof GetMarketplaceChartResponses];
1720
1640
  export type GetOrganizationData = {
1721
1641
  body?: never;
1722
1642
  path?: never;
@@ -1998,53 +1918,7 @@ export type UpdateUserResponses = {
1998
1918
  200: User;
1999
1919
  };
2000
1920
  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;
1921
+ export type ClientOptions = {
1922
+ baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
2048
1923
  };
2049
- export type SetClusterPermissionsResponse = SetClusterPermissionsResponses[keyof SetClusterPermissionsResponses];
2050
1924
  //# sourceMappingURL=types.gen.d.ts.map