@cloudfleet/sdk 0.0.1-0da1042

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 (38) hide show
  1. package/README.md +9 -0
  2. package/dist/client.gen.d.ts +13 -0
  3. package/dist/client.gen.d.ts.map +1 -0
  4. package/dist/client.gen.js +6 -0
  5. package/dist/client.gen.js.map +1 -0
  6. package/dist/index.d.ts +8 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +8 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/schemas.gen.d.ts +1706 -0
  11. package/dist/schemas.gen.d.ts.map +1 -0
  12. package/dist/schemas.gen.js +1746 -0
  13. package/dist/schemas.gen.js.map +1 -0
  14. package/dist/sdk.gen.d.ts +363 -0
  15. package/dist/sdk.gen.d.ts.map +1 -0
  16. package/dist/sdk.gen.js +634 -0
  17. package/dist/sdk.gen.js.map +1 -0
  18. package/dist/services/kubernetes/api.d.ts +196 -0
  19. package/dist/services/kubernetes/api.d.ts.map +1 -0
  20. package/dist/services/kubernetes/api.js +140 -0
  21. package/dist/services/kubernetes/api.js.map +1 -0
  22. package/dist/services/kubernetes/index.d.ts +44 -0
  23. package/dist/services/kubernetes/index.d.ts.map +1 -0
  24. package/dist/services/kubernetes/index.js +68 -0
  25. package/dist/services/kubernetes/index.js.map +1 -0
  26. package/dist/services/kubernetes/types.d.ts +1335 -0
  27. package/dist/services/kubernetes/types.d.ts.map +1 -0
  28. package/dist/services/kubernetes/types.js +2 -0
  29. package/dist/services/kubernetes/types.js.map +1 -0
  30. package/dist/types.gen.d.ts +1928 -0
  31. package/dist/types.gen.d.ts.map +1 -0
  32. package/dist/types.gen.js +3 -0
  33. package/dist/types.gen.js.map +1 -0
  34. package/dist/zod.gen.d.ts +2505 -0
  35. package/dist/zod.gen.d.ts.map +1 -0
  36. package/dist/zod.gen.js +1129 -0
  37. package/dist/zod.gen.js.map +1 -0
  38. package/package.json +39 -0
@@ -0,0 +1,1928 @@
1
+ export type BillingContact = {
2
+ /**
3
+ * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
4
+ */
5
+ company?: string;
6
+ /**
7
+ * Street address, P.O. box, c/o
8
+ */
9
+ address1?: string;
10
+ /**
11
+ * Apartment, suite, unit, building, floor, etc.
12
+ */
13
+ address2?: string;
14
+ /**
15
+ * Postal code as a string.
16
+ */
17
+ postalCode?: string;
18
+ /**
19
+ * City or town name.
20
+ */
21
+ city?: string;
22
+ /**
23
+ * State, province, or region name.
24
+ */
25
+ state?: string;
26
+ /**
27
+ * Country as a ISO 3166-1 alpha-2 country code.
28
+ */
29
+ country?: string;
30
+ /**
31
+ * Phone number as a string.
32
+ */
33
+ phone?: string;
34
+ /**
35
+ * Email address used for billing as a string.
36
+ */
37
+ email: string;
38
+ /**
39
+ * First name of the billing contact person.
40
+ */
41
+ first_name: string;
42
+ /**
43
+ * Last name of the billing contact person.
44
+ */
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' | 'au_abn' | 'au_arn' | 'ba_tin' | 'bb_tin' | 'bg_uic' | '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' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'eu_oss_vat' | 'eu_vat' | 'gb_vat' | 'ge_vat' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_vat' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | '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' | '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.
96
+ */
97
+ values: string;
98
+ /**
99
+ * Version of 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.
118
+ */
119
+ values: string;
120
+ /**
121
+ * Version of 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';
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.
160
+ */
161
+ values: string;
162
+ /**
163
+ * Version of the chart.
164
+ */
165
+ version_channel: string;
166
+ };
167
+ export type ClusterCreateInput = {
168
+ /**
169
+ * Name of the cluster.
170
+ */
171
+ name: string;
172
+ /**
173
+ * Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.
174
+ */
175
+ region?: 'staging' | 'northamerica-central-1';
176
+ /**
177
+ * Tier of the cluster.
178
+ */
179
+ tier: 'basic' | 'pro';
180
+ /**
181
+ * Version of the kubernetes cluster.
182
+ */
183
+ version_channel?: string;
184
+ };
185
+ export type ClusterJoinInformation = {
186
+ /**
187
+ * Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.
188
+ */
189
+ certificate_authority: string;
190
+ /**
191
+ * Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.
192
+ */
193
+ endpoint: string;
194
+ /**
195
+ * Authentication key for the cluster.
196
+ */
197
+ auth_key: string;
198
+ /**
199
+ * Bootstrap token for the cluster.
200
+ */
201
+ bootstrap_token: string;
202
+ /**
203
+ * Versions of the different components of the cluster.
204
+ */
205
+ versions: {
206
+ /**
207
+ * Kubernetes version of the cluster.
208
+ */
209
+ kubernetes: string;
210
+ /**
211
+ * Tailscale version of the cluster.
212
+ */
213
+ tailscale: string;
214
+ /**
215
+ * Containerd version of the cluster.
216
+ */
217
+ containerd: string;
218
+ };
219
+ /**
220
+ * OIDC Information for hosts to access to third party API's.
221
+ */
222
+ third_party_api_access_config: {
223
+ /**
224
+ * Kubernetes metadata server.
225
+ */
226
+ metadata_url: string;
227
+ /**
228
+ * AWS Role ARN.
229
+ */
230
+ aws_role_arn: string;
231
+ /**
232
+ * GCP Workload Identity provider.
233
+ */
234
+ gcp_workload_identity_provider: string;
235
+ };
236
+ };
237
+ export type Cluster = {
238
+ /**
239
+ * Name of the cluster.
240
+ */
241
+ name: string;
242
+ /**
243
+ * Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.
244
+ */
245
+ region?: 'staging' | 'northamerica-central-1';
246
+ /**
247
+ * Tier of the cluster.
248
+ */
249
+ tier: 'basic' | 'pro';
250
+ /**
251
+ * Version of the kubernetes cluster.
252
+ */
253
+ version_channel?: string;
254
+ /**
255
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
256
+ */
257
+ id: string;
258
+ /**
259
+ * Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.
260
+ */
261
+ status: 'active' | 'deleted' | 'creating' | 'deployed' | 'failed' | 'updating';
262
+ endpoint?: string | '';
263
+ /**
264
+ * Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.
265
+ */
266
+ certificate_ca?: string;
267
+ /**
268
+ * Current version of the cluster.
269
+ */
270
+ version_current?: string;
271
+ /**
272
+ * Creation date and time of the cluster.
273
+ */
274
+ created_at?: string;
275
+ /**
276
+ * Last update date and time of the cluster.
277
+ */
278
+ updated_at?: string;
279
+ /**
280
+ * Indicates if the cluster is ready to be used.
281
+ */
282
+ ready?: boolean;
283
+ };
284
+ export type ClusterUpdateInput = {
285
+ /**
286
+ * Name of the cluster.
287
+ */
288
+ name?: string;
289
+ /**
290
+ * Version of the kubernetes cluster.
291
+ */
292
+ version_channel?: string;
293
+ };
294
+ export type FleetCreateInput = {
295
+ /**
296
+ * Limits define a set of bounds for provisioning capacity.
297
+ */
298
+ limits?: {
299
+ /**
300
+ * CPU limit in cores.
301
+ */
302
+ cpu: number;
303
+ };
304
+ gcp?: {
305
+ enabled?: boolean;
306
+ /**
307
+ * Project GCP Project id to deploy instances into
308
+ */
309
+ project: string;
310
+ };
311
+ hetzner?: {
312
+ enabled?: boolean;
313
+ apiKey?: string;
314
+ } | {
315
+ apiKey?: string;
316
+ enabled?: boolean;
317
+ };
318
+ aws?: {
319
+ enabled?: boolean;
320
+ /**
321
+ * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
322
+ */
323
+ controllerRoleArn: string;
324
+ };
325
+ /**
326
+ * Unique identifier of the kubernetes fleet.
327
+ */
328
+ id: string;
329
+ /**
330
+ * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
331
+ */
332
+ type: 'managed' | 'connected';
333
+ };
334
+ export type Fleet = {
335
+ /**
336
+ * Limits define a set of bounds for provisioning capacity.
337
+ */
338
+ limits?: {
339
+ /**
340
+ * CPU limit in cores.
341
+ */
342
+ cpu: number;
343
+ };
344
+ gcp?: {
345
+ enabled?: boolean;
346
+ /**
347
+ * Project GCP Project id to deploy instances into
348
+ */
349
+ project: string;
350
+ };
351
+ hetzner?: {
352
+ enabled?: boolean;
353
+ apiKey?: string;
354
+ } | {
355
+ apiKey?: string;
356
+ enabled?: boolean;
357
+ };
358
+ aws?: {
359
+ enabled?: boolean;
360
+ /**
361
+ * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
362
+ */
363
+ controllerRoleArn: string;
364
+ };
365
+ /**
366
+ * Unique identifier of the kubernetes fleet.
367
+ */
368
+ id: string;
369
+ /**
370
+ * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
371
+ */
372
+ type: 'managed' | 'connected';
373
+ };
374
+ export type FleetUpdateInput = {
375
+ /**
376
+ * Limits define a set of bounds for provisioning capacity.
377
+ */
378
+ limits?: {
379
+ /**
380
+ * CPU limit in cores.
381
+ */
382
+ cpu: number;
383
+ };
384
+ gcp?: {
385
+ enabled?: boolean;
386
+ /**
387
+ * Project GCP Project id to deploy instances into
388
+ */
389
+ project: string;
390
+ };
391
+ hetzner?: {
392
+ enabled?: boolean;
393
+ apiKey?: string;
394
+ } | {
395
+ apiKey?: string;
396
+ enabled?: boolean;
397
+ };
398
+ aws?: {
399
+ enabled?: boolean;
400
+ /**
401
+ * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
402
+ */
403
+ controllerRoleArn: string;
404
+ };
405
+ };
406
+ export type Invite = {
407
+ /**
408
+ * Unique identifier of the invitation.
409
+ */
410
+ id?: string;
411
+ /**
412
+ * Unique identifier of the organization the project belongs to. UUID v4 string in canonical form
413
+ */
414
+ organization_id?: string;
415
+ /**
416
+ * Creation date of the project. ISO 8601 date string in UTC timezone
417
+ */
418
+ date_created: string;
419
+ /**
420
+ * User email address.
421
+ */
422
+ email?: string;
423
+ /**
424
+ * Generated unique invite code.
425
+ */
426
+ code?: string;
427
+ };
428
+ export type Invoice = {
429
+ /**
430
+ * Unique identifier of the invoice. UUID v4 string in canonical form
431
+ */
432
+ id?: string;
433
+ /**
434
+ * Unique identifier of the organization. UUID v4 string in canonical form
435
+ */
436
+ organizationId?: string;
437
+ /**
438
+ * Status of the invoice
439
+ */
440
+ status?: 'DRAFT' | 'COMMITTED' | 'VOID';
441
+ /**
442
+ * Total amount of the invoice
443
+ */
444
+ amount?: number;
445
+ /**
446
+ * Currency of the invoice
447
+ */
448
+ currency?: 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GGP' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'IMP' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JEP' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SPL' | 'SRD' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TVD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VEF' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWD' | 'BTC';
449
+ /**
450
+ * Total amount of credit adjustments
451
+ */
452
+ creditAdj?: number;
453
+ /**
454
+ * Total amount of refund adjustments
455
+ */
456
+ refundAdj?: number;
457
+ /**
458
+ * Date of the invoice
459
+ */
460
+ invoiceDate?: string;
461
+ /**
462
+ * Target date of the invoice
463
+ */
464
+ targetDate?: string;
465
+ /**
466
+ * Number of the invoice
467
+ */
468
+ invoiceNumber?: string;
469
+ /**
470
+ * Balance of the invoice
471
+ */
472
+ balance?: number;
473
+ /**
474
+ * Bundle keys of the invoice
475
+ */
476
+ bundleKeys?: string;
477
+ /**
478
+ * Credits of the invoice
479
+ */
480
+ credits?: Array<{
481
+ /**
482
+ * Unique identifier of the invoice item. UUID v4 string in canonical form
483
+ */
484
+ id?: string;
485
+ /**
486
+ * Unique identifier of the linked invoice item. UUID v4 string in canonical form
487
+ */
488
+ linkedInvoiceItemId?: string;
489
+ /**
490
+ * Name of the product
491
+ */
492
+ productName?: string;
493
+ /**
494
+ * Name of the plan
495
+ */
496
+ planName?: string;
497
+ /**
498
+ * Name of the phase
499
+ */
500
+ phaseName?: string;
501
+ /**
502
+ * Name of the usage
503
+ */
504
+ usageName?: string;
505
+ /**
506
+ * Pretty name of the product
507
+ */
508
+ prettyProductName?: string;
509
+ /**
510
+ * Pretty name of the plan
511
+ */
512
+ prettyPlanName?: string;
513
+ /**
514
+ * Pretty name of the phase
515
+ */
516
+ prettyPhaseName?: string;
517
+ /**
518
+ * Pretty name of the usage
519
+ */
520
+ prettyUsageName?: string;
521
+ /**
522
+ * Type of the invoice item
523
+ */
524
+ itemType?: 'EXTERNAL_CHARGE' | 'FIXED' | 'RECURRING' | 'REPAIR_ADJ' | 'CBA_ADJ' | 'CREDIT_ADJ' | 'ITEM_ADJ' | 'USAGE' | 'TAX' | 'PARENT_SUMMARY';
525
+ /**
526
+ * Description of the invoice item
527
+ */
528
+ description?: string;
529
+ /**
530
+ * Start date of the invoice item
531
+ */
532
+ startDate?: string;
533
+ /**
534
+ * End date of the invoice item
535
+ */
536
+ endDate?: string;
537
+ /**
538
+ * Amount of the invoice item
539
+ */
540
+ amount?: number;
541
+ /**
542
+ * Rate of the invoice item
543
+ */
544
+ rate?: number;
545
+ /**
546
+ * Currency of the invoice item
547
+ */
548
+ currency?: 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GGP' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'IMP' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JEP' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SPL' | 'SRD' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TVD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VEF' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWD' | 'BTC';
549
+ /**
550
+ * Quantity of the invoice item
551
+ */
552
+ quantity?: number;
553
+ /**
554
+ * Details of the invoice item
555
+ */
556
+ itemDetails?: string;
557
+ /**
558
+ * Effective date of the catalog
559
+ */
560
+ catalogEffectiveDate?: string;
561
+ /**
562
+ * Child items of the invoice item
563
+ */
564
+ childItems?: Array<Array<unknown> | boolean | number | {
565
+ [key: string]: unknown;
566
+ } | string>;
567
+ }>;
568
+ /**
569
+ * Items of the invoice
570
+ */
571
+ items?: Array<{
572
+ /**
573
+ * Unique identifier of the invoice item. UUID v4 string in canonical form
574
+ */
575
+ id?: string;
576
+ /**
577
+ * Unique identifier of the linked invoice item. UUID v4 string in canonical form
578
+ */
579
+ linkedInvoiceItemId?: string;
580
+ /**
581
+ * Name of the product
582
+ */
583
+ productName?: string;
584
+ /**
585
+ * Name of the plan
586
+ */
587
+ planName?: string;
588
+ /**
589
+ * Name of the phase
590
+ */
591
+ phaseName?: string;
592
+ /**
593
+ * Name of the usage
594
+ */
595
+ usageName?: string;
596
+ /**
597
+ * Pretty name of the product
598
+ */
599
+ prettyProductName?: string;
600
+ /**
601
+ * Pretty name of the plan
602
+ */
603
+ prettyPlanName?: string;
604
+ /**
605
+ * Pretty name of the phase
606
+ */
607
+ prettyPhaseName?: string;
608
+ /**
609
+ * Pretty name of the usage
610
+ */
611
+ prettyUsageName?: string;
612
+ /**
613
+ * Type of the invoice item
614
+ */
615
+ itemType?: 'EXTERNAL_CHARGE' | 'FIXED' | 'RECURRING' | 'REPAIR_ADJ' | 'CBA_ADJ' | 'CREDIT_ADJ' | 'ITEM_ADJ' | 'USAGE' | 'TAX' | 'PARENT_SUMMARY';
616
+ /**
617
+ * Description of the invoice item
618
+ */
619
+ description?: string;
620
+ /**
621
+ * Start date of the invoice item
622
+ */
623
+ startDate?: string;
624
+ /**
625
+ * End date of the invoice item
626
+ */
627
+ endDate?: string;
628
+ /**
629
+ * Amount of the invoice item
630
+ */
631
+ amount?: number;
632
+ /**
633
+ * Rate of the invoice item
634
+ */
635
+ rate?: number;
636
+ /**
637
+ * Currency of the invoice item
638
+ */
639
+ currency?: 'AED' | 'AFN' | 'ALL' | 'AMD' | 'ANG' | 'AOA' | 'ARS' | 'AUD' | 'AWG' | 'AZN' | 'BAM' | 'BBD' | 'BDT' | 'BGN' | 'BHD' | 'BIF' | 'BMD' | 'BND' | 'BOB' | 'BRL' | 'BSD' | 'BTN' | 'BWP' | 'BYR' | 'BZD' | 'CAD' | 'CDF' | 'CHF' | 'CLP' | 'CNY' | 'COP' | 'CRC' | 'CUC' | 'CUP' | 'CVE' | 'CZK' | 'DJF' | 'DKK' | 'DOP' | 'DZD' | 'EGP' | 'ERN' | 'ETB' | 'EUR' | 'FJD' | 'FKP' | 'GBP' | 'GEL' | 'GGP' | 'GHS' | 'GIP' | 'GMD' | 'GNF' | 'GTQ' | 'GYD' | 'HKD' | 'HNL' | 'HRK' | 'HTG' | 'HUF' | 'IDR' | 'ILS' | 'IMP' | 'INR' | 'IQD' | 'IRR' | 'ISK' | 'JEP' | 'JMD' | 'JOD' | 'JPY' | 'KES' | 'KGS' | 'KHR' | 'KMF' | 'KPW' | 'KRW' | 'KWD' | 'KYD' | 'KZT' | 'LAK' | 'LBP' | 'LKR' | 'LRD' | 'LSL' | 'LTL' | 'LVL' | 'LYD' | 'MAD' | 'MDL' | 'MGA' | 'MKD' | 'MMK' | 'MNT' | 'MOP' | 'MRO' | 'MUR' | 'MVR' | 'MWK' | 'MXN' | 'MYR' | 'MZN' | 'NAD' | 'NGN' | 'NIO' | 'NOK' | 'NPR' | 'NZD' | 'OMR' | 'PAB' | 'PEN' | 'PGK' | 'PHP' | 'PKR' | 'PLN' | 'PYG' | 'QAR' | 'RON' | 'RSD' | 'RUB' | 'RWF' | 'SAR' | 'SBD' | 'SCR' | 'SDG' | 'SEK' | 'SGD' | 'SHP' | 'SLL' | 'SOS' | 'SPL' | 'SRD' | 'STD' | 'SVC' | 'SYP' | 'SZL' | 'THB' | 'TJS' | 'TMT' | 'TND' | 'TOP' | 'TRY' | 'TTD' | 'TVD' | 'TWD' | 'TZS' | 'UAH' | 'UGX' | 'USD' | 'UYU' | 'UZS' | 'VEF' | 'VND' | 'VUV' | 'WST' | 'XAF' | 'XCD' | 'XDR' | 'XOF' | 'XPF' | 'YER' | 'ZAR' | 'ZMW' | 'ZWD' | 'BTC';
640
+ /**
641
+ * Quantity of the invoice item
642
+ */
643
+ quantity?: number;
644
+ /**
645
+ * Details of the invoice item
646
+ */
647
+ itemDetails?: string;
648
+ /**
649
+ * Effective date of the catalog
650
+ */
651
+ catalogEffectiveDate?: string;
652
+ /**
653
+ * Child items of the invoice item
654
+ */
655
+ childItems?: Array<Array<unknown> | boolean | number | {
656
+ [key: string]: unknown;
657
+ } | string>;
658
+ }>;
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
+ };
705
+ export type OrganizationCreateInput = {
706
+ /**
707
+ * Email address used for billing as a string.
708
+ */
709
+ email: string;
710
+ /**
711
+ * First name of the billing contact person.
712
+ */
713
+ first_name: string;
714
+ /**
715
+ * Last name of the billing contact person.
716
+ */
717
+ last_name: string;
718
+ /**
719
+ * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
720
+ */
721
+ company_name: string;
722
+ /**
723
+ * Password for the root account. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.
724
+ */
725
+ password: string;
726
+ };
727
+ export type Organization = {
728
+ /**
729
+ * Unique identifier of the organization. UUID v4 string in canonical form
730
+ */
731
+ id: string;
732
+ /**
733
+ * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
734
+ */
735
+ name?: string;
736
+ /**
737
+ * Creation date of the organization. ISO 8601 date string in UTC timezone
738
+ */
739
+ date_created: string;
740
+ /**
741
+ * For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.
742
+ */
743
+ quota: {
744
+ /**
745
+ * Maximum number of Basic clusters that can be created.
746
+ */
747
+ basic_clusters_max: number;
748
+ /**
749
+ * Available number of Basic clusters that can be created.
750
+ */
751
+ basic_clusters_available: number;
752
+ /**
753
+ * Maximum number of Pro clusters that can be created.
754
+ */
755
+ pro_clusters_max: number;
756
+ /**
757
+ * Available number of Pro clusters that can be created.
758
+ */
759
+ pro_clusters_available: number;
760
+ /**
761
+ * Maximum number of fleets that can be created per cluster.
762
+ */
763
+ fleets_max: number;
764
+ /**
765
+ * Maximum number of CPU cores per managed fleet.
766
+ */
767
+ managed_fleets_cpu_max: number;
768
+ /**
769
+ * List of Cloudfleet cluster tiers available for the organization.
770
+ */
771
+ cluster_tiers: Array<string>;
772
+ /**
773
+ * List of Cloudfleet control plane regions available for the organization.
774
+ */
775
+ regions: Array<string>;
776
+ /**
777
+ * List of CFKE control plane versions available for the organization.
778
+ */
779
+ versions: Array<{
780
+ /**
781
+ * Id of the control plane version. Used in API calls.
782
+ */
783
+ id: string;
784
+ /**
785
+ * Label of the control plane version. Used in frontent UI.
786
+ */
787
+ label: string;
788
+ }>;
789
+ };
790
+ /**
791
+ * Status of the organization. Can be `active` or `closed`, or `suspended`.
792
+ */
793
+ status: 'active' | 'closed' | 'suspended';
794
+ };
795
+ export type PaymentMethod = {
796
+ /**
797
+ * Unique identifier of the organization. UUID v4 string in canonical form.
798
+ */
799
+ id: string;
800
+ /**
801
+ * Whether organization payment method was set up and ready to use for payments.
802
+ */
803
+ setup: boolean;
804
+ /**
805
+ * Payment method type type. Only `card` payments supported at the moment.
806
+ */
807
+ type: 'card';
808
+ /**
809
+ * Last 4 digits of the payment card number.
810
+ */
811
+ last4: string;
812
+ /**
813
+ * Two-digit number representing the card's expiration month.
814
+ */
815
+ exp_month: number;
816
+ /**
817
+ * Four-digit number representing the card's expiration year.
818
+ */
819
+ exp_year: number;
820
+ /**
821
+ * Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
822
+ */
823
+ brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
824
+ };
825
+ export type TokenCreateInput = {
826
+ /**
827
+ * Human readable access token name.
828
+ */
829
+ name: string;
830
+ /**
831
+ * Role assumed by the token.
832
+ */
833
+ role: 'Administrator' | 'User';
834
+ };
835
+ export type Token = {
836
+ /**
837
+ * Human readable access token name.
838
+ */
839
+ name: string;
840
+ /**
841
+ * Role assumed by the token.
842
+ */
843
+ role: 'Administrator' | 'User';
844
+ /**
845
+ * Generated unique identifier of the access token.
846
+ */
847
+ id?: string;
848
+ /**
849
+ * Access token secret. Unmasked only during creation.
850
+ */
851
+ secret?: string;
852
+ /**
853
+ * Creation date of the access token. ISO 8601 date string in UTC timezone
854
+ */
855
+ date_created: string;
856
+ };
857
+ export type TokenUpdateInput = {
858
+ /**
859
+ * Human readable access token name.
860
+ */
861
+ name?: string;
862
+ /**
863
+ * Role assumed by the token.
864
+ */
865
+ role?: 'Administrator' | 'User';
866
+ };
867
+ export type Usage = {
868
+ /**
869
+ * Hour of the usage
870
+ */
871
+ hour?: string;
872
+ /**
873
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
874
+ */
875
+ cluster_id: string;
876
+ /**
877
+ * Tier of the cluster.
878
+ */
879
+ cluster_tier: '';
880
+ /**
881
+ * The product the usage is associated with
882
+ */
883
+ product: 'cfke_controlplane' | 'cfke_connected_nodes' | 'infra_compute' | 'infra_storage' | 'infra_loadbalancing' | 'infra_traffic' | 'cfcr_storage';
884
+ /**
885
+ * Name of the Kubernetes node
886
+ */
887
+ node_name: string;
888
+ /**
889
+ * SKU of the Kubernetes node
890
+ */
891
+ sku: string;
892
+ cpu: number | '';
893
+ price: number | '';
894
+ value: number | '';
895
+ total: number | '';
896
+ };
897
+ export type UserCreateInput = {
898
+ /**
899
+ * User email address.
900
+ */
901
+ email: string;
902
+ /**
903
+ * User first name.
904
+ */
905
+ first_name: string;
906
+ /**
907
+ * User last name.
908
+ */
909
+ last_name: string;
910
+ /**
911
+ * Generated unique invite code.
912
+ */
913
+ code: string;
914
+ /**
915
+ * User password. Must be at least 8 characters long.
916
+ */
917
+ password: string;
918
+ /**
919
+ * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
920
+ */
921
+ status?: 'active' | 'inactive';
922
+ /**
923
+ * User role. Can be 'Administrator', 'User'.
924
+ */
925
+ role?: 'Administrator' | 'User';
926
+ };
927
+ export type User = {
928
+ /**
929
+ * User email address.
930
+ */
931
+ email: string;
932
+ /**
933
+ * User first name.
934
+ */
935
+ first_name: string;
936
+ /**
937
+ * User last name.
938
+ */
939
+ last_name: string;
940
+ /**
941
+ * User role. Can be 'Administrator', 'User'.
942
+ */
943
+ role: 'Administrator' | 'User';
944
+ /**
945
+ * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
946
+ */
947
+ status: 'active' | 'inactive';
948
+ /**
949
+ * Unique identifier of the user. UUID v4 string in canonical form
950
+ */
951
+ id: string;
952
+ /**
953
+ * Creation date of the user. ISO 8601 date string in UTC timezone
954
+ */
955
+ date_created: string;
956
+ };
957
+ export type UserUpdateInput = {
958
+ /**
959
+ * User email address.
960
+ */
961
+ email?: string;
962
+ /**
963
+ * User first name.
964
+ */
965
+ first_name?: string;
966
+ /**
967
+ * User last name.
968
+ */
969
+ last_name?: string;
970
+ /**
971
+ * User role. Can be 'Administrator', 'User'.
972
+ */
973
+ role?: 'Administrator' | 'User';
974
+ /**
975
+ * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
976
+ */
977
+ status?: 'active' | 'inactive';
978
+ };
979
+ export type GetUsageData = {
980
+ body?: never;
981
+ path?: never;
982
+ query?: never;
983
+ url: '/billing/usage';
984
+ };
985
+ export type GetUsageErrors = {
986
+ /**
987
+ * Not authenticated
988
+ */
989
+ 401: unknown;
990
+ };
991
+ export type GetUsageResponses = {
992
+ /**
993
+ * An array of usage records.
994
+ */
995
+ 200: Array<Usage>;
996
+ };
997
+ export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
998
+ export type GetBalanceData = {
999
+ body?: never;
1000
+ path?: never;
1001
+ query?: never;
1002
+ url: '/billing/balance';
1003
+ };
1004
+ export type GetBalanceResponses = {
1005
+ /**
1006
+ * Current balance of the organization in USD as a floating-point number.
1007
+ */
1008
+ 200: number;
1009
+ };
1010
+ export type GetBalanceResponse = GetBalanceResponses[keyof GetBalanceResponses];
1011
+ export type GetPaymentMethodData = {
1012
+ body?: never;
1013
+ path?: never;
1014
+ query?: never;
1015
+ url: '/billing/payment-method';
1016
+ };
1017
+ export type GetPaymentMethodErrors = {
1018
+ /**
1019
+ * Returns 404 Not Found if the organization does not have a payment method set up.
1020
+ */
1021
+ 404: unknown;
1022
+ };
1023
+ export type GetPaymentMethodResponses = {
1024
+ /**
1025
+ * Redacted payment card information.
1026
+ */
1027
+ 200: PaymentMethod;
1028
+ };
1029
+ export type GetPaymentMethodResponse = GetPaymentMethodResponses[keyof GetPaymentMethodResponses];
1030
+ export type GetPaymentMethodSecretData = {
1031
+ body?: never;
1032
+ path?: never;
1033
+ query?: never;
1034
+ url: '/billing/payment-method';
1035
+ };
1036
+ export type GetPaymentMethodSecretResponses = {
1037
+ /**
1038
+ * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
1039
+ *
1040
+ */
1041
+ 200: {
1042
+ /**
1043
+ * The client secret.
1044
+ */
1045
+ id?: string;
1046
+ };
1047
+ };
1048
+ export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
1049
+ export type ListInvoicesData = {
1050
+ body?: never;
1051
+ path?: never;
1052
+ query: {
1053
+ /**
1054
+ * Start date for the usage. Date of oldest data point to retrieve.
1055
+ */
1056
+ start_date: string;
1057
+ /**
1058
+ * End date for the usage. Date of newest data point to retrieve.
1059
+ */
1060
+ end_date: string;
1061
+ };
1062
+ url: '/billing/invoices';
1063
+ };
1064
+ export type ListInvoicesErrors = {
1065
+ /**
1066
+ * Not authenticated
1067
+ */
1068
+ 401: unknown;
1069
+ };
1070
+ export type ListInvoicesResponses = {
1071
+ /**
1072
+ * An array of usage records.
1073
+ */
1074
+ 200: Array<Invoice>;
1075
+ };
1076
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
1077
+ export type GetInvoiceData = {
1078
+ body?: never;
1079
+ path: {
1080
+ /**
1081
+ * Unique invoice identifier. UUID v4 string in canonical form
1082
+ */
1083
+ id: string;
1084
+ };
1085
+ query?: never;
1086
+ url: '/billing/invoices/{id}';
1087
+ };
1088
+ export type GetInvoiceResponses = {
1089
+ /**
1090
+ * Returns a single Invoice HTML representation under `html` property.
1091
+ */
1092
+ 200: {
1093
+ html?: string;
1094
+ };
1095
+ };
1096
+ export type GetInvoiceResponse = GetInvoiceResponses[keyof GetInvoiceResponses];
1097
+ export type GetContactData = {
1098
+ body?: never;
1099
+ path?: never;
1100
+ query?: never;
1101
+ url: '/billing/contact';
1102
+ };
1103
+ export type GetContactResponses = {
1104
+ /**
1105
+ * Returns a single object containing organization contact and billing address details.
1106
+ */
1107
+ 200: BillingContact;
1108
+ };
1109
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
1110
+ export type UpdateContactData = {
1111
+ body: BillingContact;
1112
+ path?: never;
1113
+ query?: never;
1114
+ url: '/billing/contact';
1115
+ };
1116
+ export type UpdateContactResponses = {
1117
+ /**
1118
+ * Successfully updated. Returns updated organization details.
1119
+ */
1120
+ 200: BillingContact;
1121
+ };
1122
+ export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1123
+ export type GetCreditsData = {
1124
+ body?: never;
1125
+ path?: never;
1126
+ query?: never;
1127
+ url: '/billing/credits';
1128
+ };
1129
+ export type GetCreditsErrors = {
1130
+ /**
1131
+ * Not authenticated
1132
+ */
1133
+ 401: unknown;
1134
+ };
1135
+ export type GetCreditsResponses = {
1136
+ /**
1137
+ * An array of the applied promotional credits records.
1138
+ */
1139
+ 200: Array<BillingCredits>;
1140
+ };
1141
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1142
+ export type RedeemCreditsData = {
1143
+ body: {
1144
+ /**
1145
+ * Promotional code to redeem
1146
+ */
1147
+ code?: string;
1148
+ };
1149
+ path?: never;
1150
+ query?: never;
1151
+ url: '/billing/credits';
1152
+ };
1153
+ export type RedeemCreditsErrors = {
1154
+ /**
1155
+ * Not authenticated
1156
+ */
1157
+ 401: unknown;
1158
+ };
1159
+ export type RedeemCreditsResponses = {
1160
+ /**
1161
+ * Successfully created a new organization.
1162
+ */
1163
+ 200: unknown;
1164
+ };
1165
+ export type ListChartsData = {
1166
+ body?: never;
1167
+ path: {
1168
+ /**
1169
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1170
+ */
1171
+ cluster_id: string;
1172
+ };
1173
+ query?: never;
1174
+ url: '/clusters/{cluster_id}/charts';
1175
+ };
1176
+ export type ListChartsErrors = {
1177
+ /**
1178
+ * Not authenticated
1179
+ */
1180
+ 401: unknown;
1181
+ };
1182
+ export type ListChartsResponses = {
1183
+ /**
1184
+ * An array of charts
1185
+ */
1186
+ 200: Array<Chart>;
1187
+ };
1188
+ export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
1189
+ export type CreateChartData = {
1190
+ body: ChartCreateInput;
1191
+ path: {
1192
+ /**
1193
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1194
+ */
1195
+ cluster_id: string;
1196
+ };
1197
+ query?: never;
1198
+ url: '/clusters/{cluster_id}/charts';
1199
+ };
1200
+ export type CreateChartResponses = {
1201
+ /**
1202
+ * Successfully created. Returns created Chart ID.
1203
+ */
1204
+ 200: string;
1205
+ };
1206
+ export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1207
+ export type DeleteChartData = {
1208
+ body?: never;
1209
+ path: {
1210
+ /**
1211
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1212
+ */
1213
+ cluster_id: string;
1214
+ /**
1215
+ * Chart deployment name as the unique identifier of the chart.
1216
+ */
1217
+ chart_name: string;
1218
+ };
1219
+ query?: never;
1220
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1221
+ };
1222
+ export type DeleteChartResponses = {
1223
+ /**
1224
+ * Successfully deleted.
1225
+ */
1226
+ 200: string;
1227
+ };
1228
+ export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1229
+ export type GetChartData = {
1230
+ body?: never;
1231
+ path: {
1232
+ /**
1233
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1234
+ */
1235
+ cluster_id: string;
1236
+ /**
1237
+ * Chart deployment name as the unique identifier of the chart.
1238
+ */
1239
+ chart_name: string;
1240
+ };
1241
+ query?: never;
1242
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1243
+ };
1244
+ export type GetChartResponses = {
1245
+ /**
1246
+ * Returns a single object containing chart details.
1247
+ */
1248
+ 200: Chart;
1249
+ };
1250
+ export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1251
+ export type UpdateChartData = {
1252
+ body: ChartUpdateInput;
1253
+ path: {
1254
+ /**
1255
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1256
+ */
1257
+ cluster_id: string;
1258
+ /**
1259
+ * Chart deployment name as the unique identifier of the chart.
1260
+ */
1261
+ chart_name: string;
1262
+ };
1263
+ query?: never;
1264
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1265
+ };
1266
+ export type UpdateChartResponses = {
1267
+ /**
1268
+ * Successfully updated.
1269
+ */
1270
+ 200: string;
1271
+ };
1272
+ export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1273
+ export type ListFleetsData = {
1274
+ body?: never;
1275
+ path: {
1276
+ /**
1277
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1278
+ */
1279
+ cluster_id: string;
1280
+ };
1281
+ query?: never;
1282
+ url: '/clusters/{cluster_id}/fleets';
1283
+ };
1284
+ export type ListFleetsErrors = {
1285
+ /**
1286
+ * Not authenticated
1287
+ */
1288
+ 401: unknown;
1289
+ };
1290
+ export type ListFleetsResponses = {
1291
+ /**
1292
+ * An array of fleets
1293
+ */
1294
+ 200: Array<Fleet>;
1295
+ };
1296
+ export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
1297
+ export type CreateFleetData = {
1298
+ body: FleetCreateInput;
1299
+ path: {
1300
+ /**
1301
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1302
+ */
1303
+ cluster_id: string;
1304
+ };
1305
+ query?: never;
1306
+ url: '/clusters/{cluster_id}/fleets';
1307
+ };
1308
+ export type CreateFleetErrors = {
1309
+ /**
1310
+ * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
1311
+ */
1312
+ 402: string;
1313
+ };
1314
+ export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
1315
+ export type CreateFleetResponses = {
1316
+ /**
1317
+ * Successfully created. Returns created Fleet ID.
1318
+ */
1319
+ 200: string;
1320
+ };
1321
+ export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
1322
+ export type DeleteFleetData = {
1323
+ body?: never;
1324
+ path: {
1325
+ /**
1326
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1327
+ */
1328
+ cluster_id: string;
1329
+ /**
1330
+ * Unique identifier of the fleet. UUID v4 string in canonical form
1331
+ */
1332
+ fleet_name: string;
1333
+ };
1334
+ query?: never;
1335
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1336
+ };
1337
+ export type DeleteFleetResponses = {
1338
+ /**
1339
+ * Successfully deleted.
1340
+ */
1341
+ 200: string;
1342
+ };
1343
+ export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
1344
+ export type GetFleetData = {
1345
+ body?: never;
1346
+ path: {
1347
+ /**
1348
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1349
+ */
1350
+ cluster_id: string;
1351
+ /**
1352
+ * Unique identifier of the fleet. UUID v4 string in canonical form
1353
+ */
1354
+ fleet_name: string;
1355
+ };
1356
+ query?: never;
1357
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1358
+ };
1359
+ export type GetFleetResponses = {
1360
+ /**
1361
+ * Returns a single object containing fleet details.
1362
+ */
1363
+ 200: Fleet;
1364
+ };
1365
+ export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
1366
+ export type UpdateFleetData = {
1367
+ body: FleetUpdateInput;
1368
+ path: {
1369
+ /**
1370
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1371
+ */
1372
+ cluster_id: string;
1373
+ /**
1374
+ * Unique identifier of the fleet. UUID v4 string in canonical form
1375
+ */
1376
+ fleet_name: string;
1377
+ };
1378
+ query?: never;
1379
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1380
+ };
1381
+ export type UpdateFleetErrors = {
1382
+ /**
1383
+ * Organization must have a valid payment method configured to access this endpoint.
1384
+ */
1385
+ 402: string;
1386
+ };
1387
+ export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
1388
+ export type UpdateFleetResponses = {
1389
+ /**
1390
+ * Successfully updated.
1391
+ */
1392
+ 200: string;
1393
+ };
1394
+ export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
1395
+ export type QueryClusterData = {
1396
+ body?: never;
1397
+ path: {
1398
+ /**
1399
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1400
+ */
1401
+ cluster_id: string;
1402
+ };
1403
+ query?: never;
1404
+ url: '/clusters/{cluster_id}/query';
1405
+ };
1406
+ export type QueryClusterErrors = {
1407
+ /**
1408
+ * Not authenticated
1409
+ */
1410
+ 401: unknown;
1411
+ };
1412
+ export type QueryClusterResponses = {
1413
+ /**
1414
+ * Kubernetes API response
1415
+ */
1416
+ 200: unknown;
1417
+ };
1418
+ export type ListClustersData = {
1419
+ body?: never;
1420
+ path?: never;
1421
+ query?: never;
1422
+ url: '/clusters';
1423
+ };
1424
+ export type ListClustersErrors = {
1425
+ /**
1426
+ * Not authenticated
1427
+ */
1428
+ 401: unknown;
1429
+ };
1430
+ export type ListClustersResponses = {
1431
+ /**
1432
+ * An array of clusters
1433
+ */
1434
+ 200: Array<Cluster>;
1435
+ };
1436
+ export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
1437
+ export type CreateClusterData = {
1438
+ body: ClusterCreateInput;
1439
+ path?: never;
1440
+ query?: never;
1441
+ url: '/clusters';
1442
+ };
1443
+ export type CreateClusterErrors = {
1444
+ /**
1445
+ * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
1446
+ */
1447
+ 402: string;
1448
+ };
1449
+ export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
1450
+ export type CreateClusterResponses = {
1451
+ /**
1452
+ * Successfully created. Returns created Cluster ID.
1453
+ */
1454
+ 200: string;
1455
+ };
1456
+ export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
1457
+ export type DeleteClusterData = {
1458
+ body?: never;
1459
+ path: {
1460
+ /**
1461
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1462
+ */
1463
+ cluster_id: string;
1464
+ };
1465
+ query?: never;
1466
+ url: '/clusters/{cluster_id}';
1467
+ };
1468
+ export type DeleteClusterResponses = {
1469
+ /**
1470
+ * Successfully deleted.
1471
+ */
1472
+ 200: string;
1473
+ };
1474
+ export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
1475
+ export type GetClusterData = {
1476
+ body?: never;
1477
+ path: {
1478
+ /**
1479
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1480
+ */
1481
+ cluster_id: string;
1482
+ };
1483
+ query?: never;
1484
+ url: '/clusters/{cluster_id}';
1485
+ };
1486
+ export type GetClusterResponses = {
1487
+ /**
1488
+ * Returns a single object containing cluster details.
1489
+ */
1490
+ 200: Cluster;
1491
+ };
1492
+ export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
1493
+ export type UpdateClusterData = {
1494
+ body: ClusterUpdateInput;
1495
+ path: {
1496
+ /**
1497
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1498
+ */
1499
+ cluster_id: string;
1500
+ };
1501
+ query?: never;
1502
+ url: '/clusters/{cluster_id}';
1503
+ };
1504
+ export type UpdateClusterResponses = {
1505
+ /**
1506
+ * Successfully updated. Returns updated cluster details.
1507
+ */
1508
+ 200: Cluster;
1509
+ };
1510
+ export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
1511
+ export type GetJoinInformationData = {
1512
+ body?: never;
1513
+ path: {
1514
+ /**
1515
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1516
+ */
1517
+ cluster_id: string;
1518
+ };
1519
+ query?: never;
1520
+ url: '/clusters/{cluster_id}/join_information';
1521
+ };
1522
+ export type GetJoinInformationErrors = {
1523
+ /**
1524
+ * Not authenticated
1525
+ */
1526
+ 401: unknown;
1527
+ };
1528
+ export type GetJoinInformationResponses = {
1529
+ /**
1530
+ * An object of cluster join information
1531
+ */
1532
+ 200: Cluster;
1533
+ };
1534
+ export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
1535
+ export type ListInvitesData = {
1536
+ body?: never;
1537
+ path?: never;
1538
+ query?: never;
1539
+ url: '/invites';
1540
+ };
1541
+ export type ListInvitesErrors = {
1542
+ /**
1543
+ * Not authenticated
1544
+ */
1545
+ 401: unknown;
1546
+ };
1547
+ export type ListInvitesResponses = {
1548
+ /**
1549
+ * An array of invites
1550
+ */
1551
+ 200: Array<Invite>;
1552
+ };
1553
+ export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
1554
+ export type CreateInviteData = {
1555
+ body: {
1556
+ /**
1557
+ * User email address
1558
+ */
1559
+ email?: string;
1560
+ };
1561
+ path?: never;
1562
+ query?: never;
1563
+ url: '/invites';
1564
+ };
1565
+ export type CreateInviteResponses = {
1566
+ /**
1567
+ * Successfully created. Returns created invite details.
1568
+ */
1569
+ 200: Invite;
1570
+ };
1571
+ export type CreateInviteResponse = CreateInviteResponses[keyof CreateInviteResponses];
1572
+ export type GetInviteData = {
1573
+ body?: never;
1574
+ path: {
1575
+ /**
1576
+ * Invitation code
1577
+ */
1578
+ code: string;
1579
+ };
1580
+ query?: never;
1581
+ url: '/invites/{code}';
1582
+ };
1583
+ export type GetInviteResponses = {
1584
+ /**
1585
+ * Returns a single object containing invite details.
1586
+ */
1587
+ 200: Invite;
1588
+ };
1589
+ export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
1590
+ export type DeleteInviteData = {
1591
+ body?: never;
1592
+ path: {
1593
+ /**
1594
+ * User email address
1595
+ */
1596
+ email: string;
1597
+ };
1598
+ query?: never;
1599
+ url: '/invites/{email}';
1600
+ };
1601
+ export type DeleteInviteResponses = {
1602
+ /**
1603
+ * Successfully deleted.
1604
+ */
1605
+ 200: unknown;
1606
+ };
1607
+ export type ListMarketplaceChartsData = {
1608
+ body?: never;
1609
+ path?: never;
1610
+ query?: never;
1611
+ url: '/marketplace';
1612
+ };
1613
+ export type ListMarketplaceChartsErrors = {
1614
+ /**
1615
+ * Not authenticated
1616
+ */
1617
+ 401: unknown;
1618
+ };
1619
+ export type ListMarketplaceChartsResponses = {
1620
+ /**
1621
+ * An array of chart listings in the marketplace.
1622
+ */
1623
+ 200: Array<MarketplaceListing>;
1624
+ };
1625
+ export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1626
+ export type GetMarketplaceChartData = {
1627
+ body?: never;
1628
+ path: {
1629
+ /**
1630
+ * Unique identifier of the chart listing in the marketplace.
1631
+ */
1632
+ listing_id: string;
1633
+ };
1634
+ query?: never;
1635
+ url: '/marketplace/{listing_id}';
1636
+ };
1637
+ export type GetMarketplaceChartResponses = {
1638
+ /**
1639
+ * Returns an object containing the chart listing details.
1640
+ */
1641
+ 200: MarketplaceListing;
1642
+ };
1643
+ export type GetMarketplaceChartResponse = GetMarketplaceChartResponses[keyof GetMarketplaceChartResponses];
1644
+ export type GetOrganizationData = {
1645
+ body?: never;
1646
+ path?: never;
1647
+ query?: never;
1648
+ url: '/organization';
1649
+ };
1650
+ export type GetOrganizationResponses = {
1651
+ /**
1652
+ * Returns a single object containing organization details.
1653
+ */
1654
+ 200: Organization;
1655
+ };
1656
+ export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
1657
+ export type CreateOrganizationData = {
1658
+ body: OrganizationCreateInput;
1659
+ path?: never;
1660
+ query?: never;
1661
+ url: '/organization';
1662
+ };
1663
+ export type CreateOrganizationResponses = {
1664
+ /**
1665
+ * Successfully created a new organization.
1666
+ */
1667
+ 200: unknown;
1668
+ };
1669
+ export type ListTokensData = {
1670
+ body?: never;
1671
+ path?: never;
1672
+ query?: never;
1673
+ url: '/tokens';
1674
+ };
1675
+ export type ListTokensErrors = {
1676
+ /**
1677
+ * Not authenticated
1678
+ */
1679
+ 401: unknown;
1680
+ };
1681
+ export type ListTokensResponses = {
1682
+ /**
1683
+ * Returns a list of access token details with masked secrets.
1684
+ */
1685
+ 200: Array<Token>;
1686
+ };
1687
+ export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1688
+ export type CreateTokenData = {
1689
+ body: TokenCreateInput;
1690
+ path?: never;
1691
+ query?: never;
1692
+ url: '/tokens';
1693
+ };
1694
+ export type CreateTokenErrors = {
1695
+ /**
1696
+ * Not authenticated
1697
+ */
1698
+ 401: unknown;
1699
+ };
1700
+ export type CreateTokenResponses = {
1701
+ /**
1702
+ * Successfully created. Returns created token details with unmasked/raw secret.
1703
+ */
1704
+ 200: Token;
1705
+ };
1706
+ export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1707
+ export type DeleteTokenData = {
1708
+ body?: never;
1709
+ path: {
1710
+ /**
1711
+ * Generated unique identifier of the access token.
1712
+ */
1713
+ token_id: string;
1714
+ };
1715
+ query?: never;
1716
+ url: '/tokens/{token_id}';
1717
+ };
1718
+ export type DeleteTokenResponses = {
1719
+ /**
1720
+ * Successfully deleted.
1721
+ */
1722
+ 200: unknown;
1723
+ };
1724
+ export type GetTokenData = {
1725
+ body?: never;
1726
+ path: {
1727
+ /**
1728
+ * Generated unique identifier of the access token.
1729
+ */
1730
+ token_id: string;
1731
+ };
1732
+ query?: never;
1733
+ url: '/tokens/{token_id}';
1734
+ };
1735
+ export type GetTokenErrors = {
1736
+ /**
1737
+ * Not authenticated
1738
+ */
1739
+ 401: unknown;
1740
+ };
1741
+ export type GetTokenResponses = {
1742
+ /**
1743
+ * Returns access token details with masked secret.
1744
+ */
1745
+ 200: Token;
1746
+ };
1747
+ export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1748
+ export type UpdateTokenData = {
1749
+ body: TokenUpdateInput;
1750
+ path: {
1751
+ /**
1752
+ * Generated unique identifier of the access token.
1753
+ */
1754
+ token_id: string;
1755
+ };
1756
+ query?: never;
1757
+ url: '/tokens/{token_id}';
1758
+ };
1759
+ export type UpdateTokenErrors = {
1760
+ /**
1761
+ * Not authenticated
1762
+ */
1763
+ 401: unknown;
1764
+ };
1765
+ export type UpdateTokenResponses = {
1766
+ /**
1767
+ * Successfully updated. Returns updated token details with masked secret.
1768
+ */
1769
+ 200: Token;
1770
+ };
1771
+ export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1772
+ export type RegenerateTokenData = {
1773
+ body?: never;
1774
+ path: {
1775
+ /**
1776
+ * Generated unique identifier of the access token.
1777
+ */
1778
+ token_id: string;
1779
+ };
1780
+ query?: never;
1781
+ url: '/tokens/{token_id}/secret';
1782
+ };
1783
+ export type RegenerateTokenErrors = {
1784
+ /**
1785
+ * Not authenticated
1786
+ */
1787
+ 401: unknown;
1788
+ };
1789
+ export type RegenerateTokenResponses = {
1790
+ /**
1791
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1792
+ */
1793
+ 200: Token;
1794
+ };
1795
+ export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
1796
+ export type ListUserOrganizationsData = {
1797
+ body?: never;
1798
+ path: {
1799
+ /**
1800
+ * User email address.
1801
+ */
1802
+ email: string;
1803
+ };
1804
+ query?: never;
1805
+ url: '/users/organizations/{email}';
1806
+ };
1807
+ export type ListUserOrganizationsResponses = {
1808
+ /**
1809
+ * An array of organizations the user belongs to.
1810
+ */
1811
+ 200: Array<{
1812
+ /**
1813
+ * Unique identifier of the organization. UUID v4 string in canonical form
1814
+ */
1815
+ realm?: string;
1816
+ /**
1817
+ * Human-readable name of the organization
1818
+ */
1819
+ displayName?: string;
1820
+ }>;
1821
+ };
1822
+ export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1823
+ export type ListUsersData = {
1824
+ body?: never;
1825
+ path?: never;
1826
+ query?: never;
1827
+ url: '/users';
1828
+ };
1829
+ export type ListUsersErrors = {
1830
+ /**
1831
+ * Not authenticated
1832
+ */
1833
+ 401: unknown;
1834
+ };
1835
+ export type ListUsersResponses = {
1836
+ /**
1837
+ * An array of users
1838
+ */
1839
+ 200: Array<User>;
1840
+ };
1841
+ export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1842
+ export type CreateUserData = {
1843
+ body: UserCreateInput;
1844
+ path?: never;
1845
+ query?: never;
1846
+ url: '/users';
1847
+ };
1848
+ export type CreateUserResponses = {
1849
+ /**
1850
+ * Successfully created. Returns created user details.
1851
+ */
1852
+ 200: User;
1853
+ };
1854
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1855
+ export type DeleteUserData = {
1856
+ body?: never;
1857
+ path: {
1858
+ /**
1859
+ * Unique user identifier. UUID v4 string in canonical form
1860
+ */
1861
+ user_id: string;
1862
+ };
1863
+ query?: never;
1864
+ url: '/users/{user_id}';
1865
+ };
1866
+ export type DeleteUserErrors = {
1867
+ /**
1868
+ * Deleting own user is not allowed. Delete your organization instead.
1869
+ */
1870
+ 400: unknown;
1871
+ /**
1872
+ * Not authenticated
1873
+ */
1874
+ 401: unknown;
1875
+ };
1876
+ export type DeleteUserResponses = {
1877
+ /**
1878
+ * User profile information
1879
+ */
1880
+ 200: User;
1881
+ };
1882
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1883
+ export type GetUserData = {
1884
+ body?: never;
1885
+ path: {
1886
+ /**
1887
+ * Unique user identifier. UUID v4 string in canonical form
1888
+ */
1889
+ user_id: string;
1890
+ };
1891
+ query?: never;
1892
+ url: '/users/{user_id}';
1893
+ };
1894
+ export type GetUserErrors = {
1895
+ /**
1896
+ * Not authenticated
1897
+ */
1898
+ 401: unknown;
1899
+ };
1900
+ export type GetUserResponses = {
1901
+ /**
1902
+ * User profile information
1903
+ */
1904
+ 200: User;
1905
+ };
1906
+ export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
1907
+ export type UpdateUserData = {
1908
+ body: UserUpdateInput;
1909
+ path: {
1910
+ /**
1911
+ * Unique user identifier. UUID v4 string in canonical form
1912
+ */
1913
+ user_id: string;
1914
+ };
1915
+ query?: never;
1916
+ url: '/users/{user_id}';
1917
+ };
1918
+ export type UpdateUserResponses = {
1919
+ /**
1920
+ * Successfully created. Returns created user details.
1921
+ */
1922
+ 200: User;
1923
+ };
1924
+ export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1925
+ export type ClientOptions = {
1926
+ baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
1927
+ };
1928
+ //# sourceMappingURL=types.gen.d.ts.map