@cloudfleet/sdk 0.0.1-3de42b3 → 0.0.1-3e55307

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 (73) hide show
  1. package/README.md +26 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +1077 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1286 -0
  5. package/dist/@tanstack/react-query.gen.js.map +1 -0
  6. package/dist/client/client.gen.d.ts +3 -0
  7. package/dist/client/client.gen.d.ts.map +1 -0
  8. package/dist/client/client.gen.js +217 -0
  9. package/dist/client/client.gen.js.map +1 -0
  10. package/dist/client/index.d.ts +9 -0
  11. package/dist/client/index.d.ts.map +1 -0
  12. package/dist/client/index.js +7 -0
  13. package/dist/client/index.js.map +1 -0
  14. package/dist/client/types.gen.d.ts +121 -0
  15. package/dist/client/types.gen.d.ts.map +1 -0
  16. package/dist/client/types.gen.js +3 -0
  17. package/dist/client/types.gen.js.map +1 -0
  18. package/dist/client/utils.gen.d.ts +38 -0
  19. package/dist/client/utils.gen.d.ts.map +1 -0
  20. package/dist/client/utils.gen.js +229 -0
  21. package/dist/client/utils.gen.js.map +1 -0
  22. package/dist/client.gen.d.ts +4 -4
  23. package/dist/client.gen.d.ts.map +1 -1
  24. package/dist/client.gen.js +2 -4
  25. package/dist/client.gen.js.map +1 -1
  26. package/dist/core/auth.gen.d.ts +19 -0
  27. package/dist/core/auth.gen.d.ts.map +1 -0
  28. package/dist/core/auth.gen.js +15 -0
  29. package/dist/core/auth.gen.js.map +1 -0
  30. package/dist/core/bodySerializer.gen.d.ts +26 -0
  31. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  32. package/dist/core/bodySerializer.gen.js +58 -0
  33. package/dist/core/bodySerializer.gen.js.map +1 -0
  34. package/dist/core/params.gen.d.ts +44 -0
  35. package/dist/core/params.gen.d.ts.map +1 -0
  36. package/dist/core/params.gen.js +101 -0
  37. package/dist/core/params.gen.js.map +1 -0
  38. package/dist/core/pathSerializer.gen.d.ts +34 -0
  39. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/core/pathSerializer.gen.js +107 -0
  41. package/dist/core/pathSerializer.gen.js.map +1 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  43. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  44. package/dist/core/queryKeySerializer.gen.js +93 -0
  45. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  46. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  47. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  48. package/dist/core/serverSentEvents.gen.js +133 -0
  49. package/dist/core/serverSentEvents.gen.js.map +1 -0
  50. package/dist/core/types.gen.d.ts +79 -0
  51. package/dist/core/types.gen.d.ts.map +1 -0
  52. package/dist/core/types.gen.js +3 -0
  53. package/dist/core/types.gen.js.map +1 -0
  54. package/dist/core/utils.gen.d.ts +20 -0
  55. package/dist/core/utils.gen.d.ts.map +1 -0
  56. package/dist/core/utils.gen.js +88 -0
  57. package/dist/core/utils.gen.js.map +1 -0
  58. package/dist/schemas.gen.d.ts +1867 -714
  59. package/dist/schemas.gen.d.ts.map +1 -1
  60. package/dist/schemas.gen.js +3268 -749
  61. package/dist/schemas.gen.js.map +1 -1
  62. package/dist/sdk.gen.d.ts +338 -172
  63. package/dist/sdk.gen.d.ts.map +1 -1
  64. package/dist/sdk.gen.js +486 -340
  65. package/dist/sdk.gen.js.map +1 -1
  66. package/dist/services/kubernetes/api.d.ts +20 -20
  67. package/dist/types.gen.d.ts +2072 -851
  68. package/dist/types.gen.d.ts.map +1 -1
  69. package/dist/zod.gen.d.ts +4186 -2328
  70. package/dist/zod.gen.d.ts.map +1 -1
  71. package/dist/zod.gen.js +1665 -853
  72. package/dist/zod.gen.js.map +1 -1
  73. package/package.json +28 -9
@@ -1,4 +1,11 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
3
+ };
1
4
  export type BillingContact = {
5
+ /**
6
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
7
+ */
8
+ type: 'business' | 'personal';
2
9
  /**
3
10
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
4
11
  */
@@ -36,13 +43,9 @@ export type BillingContact = {
36
43
  */
37
44
  email: string;
38
45
  /**
39
- * First name of the billing contact person.
40
- */
41
- first_name: string;
42
- /**
43
- * Last name of the billing contact person.
46
+ * Name of the billing contact person.
44
47
  */
45
- last_name: string;
48
+ individual_name: string;
46
49
  /**
47
50
  * Tax ID of the organization.
48
51
  */
@@ -50,7 +53,7 @@ export type BillingContact = {
50
53
  /**
51
54
  * Type of the tax ID.
52
55
  */
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' | '';
56
+ tax_id_type?: 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'at_vat' | 'au_abn' | 'au_arn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'be_vat' | 'bf_ifu' | 'bg_uic' | 'bg_vat' | 'bh_vat' | 'bj_ifu' | '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' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'cy_vat' | 'cz_vat' | 'de_stn' | 'de_vat' | 'dk_vat' | 'do_rcn' | 'ec_ruc' | 'ee_vat' | 'eg_tin' | 'es_cif' | 'es_vat' | 'et_tin' | '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' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'lt_vat' | 'lu_vat' | 'lv_vat' | 'ma_vat' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mt_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'nl_vat' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_vat' | 'pt_vat' | 'ro_tin' | 'ro_vat' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'se_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'si_vat' | 'sk_vat' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'xi_vat' | 'za_vat' | 'zm_tin' | 'zw_tin' | '';
54
57
  };
55
58
  export type BillingCredits = {
56
59
  /**
@@ -58,35 +61,31 @@ export type BillingCredits = {
58
61
  */
59
62
  id?: string;
60
63
  /**
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.
64
+ * Type of the promotional code.
66
65
  */
67
- code: string;
66
+ type: 'credit' | 'discount';
68
67
  /**
69
- * Description of the promotional code.
68
+ * Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.
70
69
  */
71
- description?: string;
70
+ date_start: string;
72
71
  /**
73
- * List of product SKUs that the promotional code can be used on.
72
+ * Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.
74
73
  */
75
- products?: Array<string>;
74
+ date_end?: string;
76
75
  /**
77
- * Type of the promotional code.
76
+ * Promotional code used by the customer.
78
77
  */
79
- type: 'credit' | 'discount';
78
+ code: string;
80
79
  /**
81
- * Value of the promotional code.
80
+ * Description of the promotional code.
82
81
  */
83
- value: number;
82
+ description?: string;
84
83
  /**
85
- * Date of the billing cycle. An ISO 8601 date string in the UTC timezone.
84
+ * Total value of the promotional code.
86
85
  */
87
- billing_period: string;
86
+ value_total: number;
88
87
  /**
89
- * Value of the promotional code.
88
+ * Remaining value of the promotional code.
90
89
  */
91
90
  value_remaining?: number;
92
91
  };
@@ -134,9 +133,9 @@ export type Chart = {
134
133
  */
135
134
  chart: string;
136
135
  /**
137
- * Status of the chart deployment.
136
+ * Status of the chart deployment (Flux HelmRelease Ready condition reason, e.g. InstallSucceeded, UpgradeFailed, Progressing).
138
137
  */
139
- status: 'InstallSucceeded' | 'InstallFailed' | 'UpgradeSucceeded' | 'UpgradeFailed' | 'TestSucceeded' | 'TestFailed' | 'RollbackSucceeded' | 'RollbackFailed' | 'UninstallSucceeded' | 'UninstallFailed' | 'ArtifactFailed' | 'DependencyNotReady' | 'Progressing' | 'SourceNotReady';
138
+ status: string;
140
139
  /**
141
140
  * Current version of the chart deployment.
142
141
  */
@@ -164,23 +163,72 @@ export type ChartUpdateInput = {
164
163
  */
165
164
  version_channel: string;
166
165
  };
166
+ /**
167
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
168
+ */
167
169
  export type ClusterCreateInput = {
168
170
  /**
169
171
  * Name of the cluster.
170
172
  */
171
173
  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
174
  /**
177
175
  * Tier of the cluster.
178
176
  */
179
- tier: 'basic' | 'pro';
177
+ tier?: 'basic' | 'pro' | 'enterprise';
180
178
  /**
181
179
  * Version of the kubernetes cluster.
182
180
  */
183
181
  version_channel?: string;
182
+ /**
183
+ * Release channel for the cluster's control plane.
184
+ */
185
+ release_channel?: 'rapid' | 'stable' | 'extended';
186
+ /**
187
+ * Cluster feature toggles.
188
+ */
189
+ features?: {
190
+ /**
191
+ * GPU sharing strategy.
192
+ */
193
+ gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
194
+ /**
195
+ * Maximum number of pods that may share a single GPU.
196
+ */
197
+ gpu_max_shared_clients_per_gpu?: number;
198
+ /**
199
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
200
+ */
201
+ cilium_socket_lb_host_namespace_only?: boolean;
202
+ };
203
+ /**
204
+ * Cloudfleet control plane region. This field can not be updated after creation.
205
+ */
206
+ region: string;
207
+ /**
208
+ * Cluster networking configuration. Immutable after creation.
209
+ */
210
+ networking?: {
211
+ /**
212
+ * CIDR block for pod IPs.
213
+ */
214
+ pod_cidr?: string;
215
+ /**
216
+ * CIDR block for service IPs.
217
+ */
218
+ service_cidr?: string;
219
+ /**
220
+ * Enable IPv4+IPv6 dual-stack networking.
221
+ */
222
+ dual_stack?: boolean;
223
+ /**
224
+ * IPv6 pod CIDR. Requires dual_stack.
225
+ */
226
+ pod_cidr_v6?: string;
227
+ /**
228
+ * IPv6 service CIDR. Requires dual_stack.
229
+ */
230
+ service_cidr_v6?: string;
231
+ };
184
232
  };
185
233
  export type ClusterJoinInformation = {
186
234
  /**
@@ -191,10 +239,22 @@ export type ClusterJoinInformation = {
191
239
  * Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.
192
240
  */
193
241
  endpoint: string;
242
+ /**
243
+ * Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.
244
+ */
245
+ cluster_dns: string;
246
+ /**
247
+ * Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.
248
+ */
249
+ pod_cidr: string;
194
250
  /**
195
251
  * Authentication key for the cluster.
196
252
  */
197
253
  auth_key: string;
254
+ /**
255
+ * Coordination server the node registers against. Empty on data plane v1 clusters, where the node advertises its own tag instead. A non-empty value requires a client that declares the dataplane-v2 capability.
256
+ */
257
+ login_server: string;
198
258
  /**
199
259
  * Bootstrap token for the cluster.
200
260
  */
@@ -215,6 +275,10 @@ export type ClusterJoinInformation = {
215
275
  * Containerd version of the cluster.
216
276
  */
217
277
  containerd: string;
278
+ /**
279
+ * NVIDIA driver version of the cluster.
280
+ */
281
+ nvidia_driver: string;
218
282
  };
219
283
  /**
220
284
  * OIDC Information for hosts to access to third party API's.
@@ -234,32 +298,82 @@ export type ClusterJoinInformation = {
234
298
  gcp_workload_identity_provider: string;
235
299
  };
236
300
  };
301
+ /**
302
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
303
+ */
237
304
  export type Cluster = {
238
305
  /**
239
306
  * Name of the cluster.
240
307
  */
241
308
  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
309
  /**
247
310
  * Tier of the cluster.
248
311
  */
249
- tier: 'basic' | 'pro';
312
+ tier: 'basic' | 'pro' | 'enterprise';
250
313
  /**
251
314
  * Version of the kubernetes cluster.
252
315
  */
253
- version_channel?: string;
316
+ version_channel: string;
317
+ /**
318
+ * Release channel for the cluster's control plane.
319
+ */
320
+ release_channel: 'rapid' | 'stable' | 'extended';
321
+ /**
322
+ * Cluster feature toggles.
323
+ */
324
+ features: {
325
+ /**
326
+ * GPU sharing strategy.
327
+ */
328
+ gpu_sharing_strategy: 'none' | 'mps' | 'time_slicing';
329
+ /**
330
+ * Maximum number of pods that may share a single GPU.
331
+ */
332
+ gpu_max_shared_clients_per_gpu: number;
333
+ /**
334
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
335
+ */
336
+ cilium_socket_lb_host_namespace_only: boolean;
337
+ };
338
+ /**
339
+ * Cloudfleet control plane region. This field can not be updated after creation.
340
+ */
341
+ region: string;
342
+ /**
343
+ * Cluster networking configuration. Immutable after creation.
344
+ */
345
+ networking: {
346
+ /**
347
+ * CIDR block for pod IPs.
348
+ */
349
+ pod_cidr: string;
350
+ /**
351
+ * CIDR block for service IPs.
352
+ */
353
+ service_cidr: string;
354
+ /**
355
+ * Enable IPv4+IPv6 dual-stack networking.
356
+ */
357
+ dual_stack: boolean;
358
+ /**
359
+ * IPv6 pod CIDR. Requires dual_stack.
360
+ */
361
+ pod_cidr_v6: string;
362
+ /**
363
+ * IPv6 service CIDR. Requires dual_stack.
364
+ */
365
+ service_cidr_v6: string;
366
+ };
254
367
  /**
255
368
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
256
369
  */
257
370
  id: string;
258
371
  /**
259
- * Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.
372
+ * Status of the cluster.
260
373
  */
261
- status: 'active' | 'deleted' | 'creating' | 'deployed' | 'failed' | 'updating';
374
+ status: 'creating' | 'deployed' | 'updating' | 'disabled';
262
375
  endpoint?: string | '';
376
+ endpoint_public?: string | '';
263
377
  /**
264
378
  * Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.
265
379
  */
@@ -279,129 +393,310 @@ export type Cluster = {
279
393
  /**
280
394
  * Indicates if the cluster is ready to be used.
281
395
  */
282
- ready?: boolean;
396
+ ready: boolean;
283
397
  };
398
+ /**
399
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
400
+ */
284
401
  export type ClusterUpdateInput = {
285
402
  /**
286
403
  * Name of the cluster.
287
404
  */
288
- name?: string;
405
+ name: string;
406
+ /**
407
+ * Tier of the cluster.
408
+ */
409
+ tier?: 'basic' | 'pro' | 'enterprise';
289
410
  /**
290
411
  * Version of the kubernetes cluster.
291
412
  */
292
413
  version_channel?: string;
414
+ /**
415
+ * Release channel for the cluster's control plane.
416
+ */
417
+ release_channel?: 'rapid' | 'stable' | 'extended';
418
+ /**
419
+ * Cluster feature toggles.
420
+ */
421
+ features?: {
422
+ /**
423
+ * GPU sharing strategy.
424
+ */
425
+ gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
426
+ /**
427
+ * Maximum number of pods that may share a single GPU.
428
+ */
429
+ gpu_max_shared_clients_per_gpu?: number;
430
+ /**
431
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
432
+ */
433
+ cilium_socket_lb_host_namespace_only?: boolean;
434
+ };
293
435
  };
436
+ /**
437
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
438
+ */
294
439
  export type FleetCreateInput = {
295
440
  /**
296
441
  * Limits define a set of bounds for provisioning capacity.
297
442
  */
298
443
  limits?: {
299
444
  /**
300
- * CPU limit in cores.
445
+ * CPU limit in cores. Maximum 100,000.
301
446
  */
302
- cpu: number;
447
+ cpu?: number;
303
448
  };
304
449
  gcp?: {
305
- enabled?: boolean;
450
+ enabled: boolean;
306
451
  /**
307
- * Project GCP Project id to deploy instances into
452
+ * GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.
308
453
  */
309
- project: string;
454
+ project?: string;
310
455
  };
311
456
  hetzner?: {
312
- enabled?: boolean;
313
- apiKey?: string;
314
- } | {
457
+ enabled: boolean;
458
+ /**
459
+ * Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.
460
+ */
315
461
  apiKey?: string;
316
- enabled?: boolean;
317
462
  };
318
463
  aws?: {
319
- enabled?: boolean;
464
+ enabled: boolean;
320
465
  /**
321
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
466
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
322
467
  */
323
- controllerRoleArn: string;
468
+ controllerRoleArn?: string;
324
469
  };
325
470
  /**
326
- * Unique identifier of the kubernetes fleet.
471
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
327
472
  */
328
- id: string;
473
+ constraints?: {
474
+ /**
475
+ * Allowed values for `karpenter.sh/capacity-type`.
476
+ */
477
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
478
+ /**
479
+ * Allowed values for `kubernetes.io/arch`.
480
+ */
481
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
482
+ /**
483
+ * Allowed values for `cfke.io/instance-family`.
484
+ */
485
+ 'cfke.io/instance-family'?: Array<'a1' | 'a2' | 'a3' | 'a4' | 'c1' | 'c2' | 'c2d' | 'c3' | 'c3d' | 'c4' | 'c4a' | 'c4d' | 'c5' | 'c5a' | 'c5ad' | 'c5d' | 'c5n' | 'c6a' | 'c6g' | 'c6gd' | 'c6gn' | 'c6i' | 'c6id' | 'c6in' | 'c7a' | 'c7g' | 'c7gd' | 'c7gn' | 'c7i' | 'c7i-flex' | 'c8g' | 'c8gd' | 'cax' | 'ccx' | 'cpx' | 'cx' | 'd2' | 'd3' | 'd3en' | 'dl1' | 'dl2q' | 'e2' | 'f1' | 'f2' | 'g1' | 'g2' | 'g4ad' | 'g4dn' | 'g5' | 'g5g' | 'g6' | 'g6e' | 'gr6' | 'h1' | 'h3' | 'hpc6a' | 'hpc6id' | 'hpc7a' | 'hpc7g' | 'i2' | 'i3' | 'i3en' | 'i4g' | 'i4i' | 'i7i' | 'i7ie' | 'i8g' | 'im4gn' | 'inf1' | 'inf2' | 'is4gen' | 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm5a' | 'm5ad' | 'm5d' | 'm5dn' | 'm5n' | 'm5zn' | 'm6a' | 'm6g' | 'm6gd' | 'm6i' | 'm6id' | 'm6idn' | 'm6in' | 'm7a' | 'm7g' | 'm7gd' | 'm7i' | 'm7i-flex' | 'm8g' | 'm8gd' | 'n1' | 'n2' | 'n2d' | 'n4' | 'p3' | 'p3dn' | 'p4d' | 'p4de' | 'p5' | 'p5e' | 'p5en' | 'p6-b200' | 'r3' | 'r4' | 'r5' | 'r5a' | 'r5ad' | 'r5b' | 'r5d' | 'r5dn' | 'r5n' | 'r6a' | 'r6g' | 'r6gd' | 'r6i' | 'r6id' | 'r6idn' | 'r6in' | 'r7a' | 'r7g' | 'r7gd' | 'r7i' | 'r7iz' | 'r8g' | 'r8gd' | 't2' | 't2a' | 't2d' | 't3' | 't3a' | 't4g' | 'trn1' | 'trn1n' | 'u-3tb1' | 'u-6tb1' | 'u7i-12tb' | 'u7i-6tb' | 'u7i-8tb' | 'u7in-16tb' | 'u7in-24tb' | 'u7in-32tb' | 'vt1' | 'x1' | 'x1e' | 'x2gd' | 'x2idn' | 'x2iedn' | 'x2iezn' | 'x4' | 'x8g' | 'z1d' | 'z3'>;
486
+ /**
487
+ * Allowed values for `topology.kubernetes.io/region`.
488
+ */
489
+ 'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
490
+ };
491
+ /**
492
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
493
+ */
494
+ scalingProfile?: 'aggressive' | 'conservative';
495
+ /**
496
+ * Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.
497
+ */
498
+ taints?: Array<{
499
+ /**
500
+ * Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.
501
+ */
502
+ key: string;
503
+ /**
504
+ * Taint value. Optional.
505
+ */
506
+ value?: string;
507
+ /**
508
+ * Taint effect.
509
+ */
510
+ effect: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
511
+ }>;
329
512
  /**
330
- * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
513
+ * Unique identifier of the kubernetes fleet.
331
514
  */
332
- type: 'managed' | 'connected';
515
+ id: string;
333
516
  };
517
+ /**
518
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
519
+ */
334
520
  export type Fleet = {
335
521
  /**
336
522
  * Limits define a set of bounds for provisioning capacity.
337
523
  */
338
524
  limits?: {
339
525
  /**
340
- * CPU limit in cores.
526
+ * CPU limit in cores. Maximum 100,000.
341
527
  */
342
- cpu: number;
528
+ cpu?: number;
343
529
  };
344
530
  gcp?: {
345
- enabled?: boolean;
531
+ enabled: boolean;
346
532
  /**
347
- * Project GCP Project id to deploy instances into
533
+ * GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.
348
534
  */
349
- project: string;
535
+ project?: string;
350
536
  };
351
537
  hetzner?: {
352
- enabled?: boolean;
353
- apiKey?: string;
354
- } | {
538
+ enabled: boolean;
539
+ /**
540
+ * Redacted Hetzner API token. Returned as 64 asterisks when a token is configured; omitted otherwise. The real value is never echoed by the API.
541
+ */
355
542
  apiKey?: string;
356
- enabled?: boolean;
357
543
  };
358
544
  aws?: {
359
- enabled?: boolean;
545
+ enabled: boolean;
546
+ /**
547
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
548
+ */
549
+ controllerRoleArn?: string;
550
+ };
551
+ /**
552
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
553
+ */
554
+ constraints: {
555
+ /**
556
+ * Allowed values for `karpenter.sh/capacity-type`.
557
+ */
558
+ 'karpenter.sh/capacity-type': Array<'on-demand' | 'spot'>;
559
+ /**
560
+ * Allowed values for `kubernetes.io/arch`.
561
+ */
562
+ 'kubernetes.io/arch': Array<'amd64' | 'arm64'>;
563
+ /**
564
+ * Allowed values for `cfke.io/instance-family`.
565
+ */
566
+ 'cfke.io/instance-family'?: Array<'a1' | 'a2' | 'a3' | 'a4' | 'c1' | 'c2' | 'c2d' | 'c3' | 'c3d' | 'c4' | 'c4a' | 'c4d' | 'c5' | 'c5a' | 'c5ad' | 'c5d' | 'c5n' | 'c6a' | 'c6g' | 'c6gd' | 'c6gn' | 'c6i' | 'c6id' | 'c6in' | 'c7a' | 'c7g' | 'c7gd' | 'c7gn' | 'c7i' | 'c7i-flex' | 'c8g' | 'c8gd' | 'cax' | 'ccx' | 'cpx' | 'cx' | 'd2' | 'd3' | 'd3en' | 'dl1' | 'dl2q' | 'e2' | 'f1' | 'f2' | 'g1' | 'g2' | 'g4ad' | 'g4dn' | 'g5' | 'g5g' | 'g6' | 'g6e' | 'gr6' | 'h1' | 'h3' | 'hpc6a' | 'hpc6id' | 'hpc7a' | 'hpc7g' | 'i2' | 'i3' | 'i3en' | 'i4g' | 'i4i' | 'i7i' | 'i7ie' | 'i8g' | 'im4gn' | 'inf1' | 'inf2' | 'is4gen' | 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm5a' | 'm5ad' | 'm5d' | 'm5dn' | 'm5n' | 'm5zn' | 'm6a' | 'm6g' | 'm6gd' | 'm6i' | 'm6id' | 'm6idn' | 'm6in' | 'm7a' | 'm7g' | 'm7gd' | 'm7i' | 'm7i-flex' | 'm8g' | 'm8gd' | 'n1' | 'n2' | 'n2d' | 'n4' | 'p3' | 'p3dn' | 'p4d' | 'p4de' | 'p5' | 'p5e' | 'p5en' | 'p6-b200' | 'r3' | 'r4' | 'r5' | 'r5a' | 'r5ad' | 'r5b' | 'r5d' | 'r5dn' | 'r5n' | 'r6a' | 'r6g' | 'r6gd' | 'r6i' | 'r6id' | 'r6idn' | 'r6in' | 'r7a' | 'r7g' | 'r7gd' | 'r7i' | 'r7iz' | 'r8g' | 'r8gd' | 't2' | 't2a' | 't2d' | 't3' | 't3a' | 't4g' | 'trn1' | 'trn1n' | 'u-3tb1' | 'u-6tb1' | 'u7i-12tb' | 'u7i-6tb' | 'u7i-8tb' | 'u7in-16tb' | 'u7in-24tb' | 'u7in-32tb' | 'vt1' | 'x1' | 'x1e' | 'x2gd' | 'x2idn' | 'x2iedn' | 'x2iezn' | 'x4' | 'x8g' | 'z1d' | 'z3'>;
360
567
  /**
361
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
568
+ * Allowed values for `topology.kubernetes.io/region`.
362
569
  */
363
- controllerRoleArn: string;
570
+ 'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
364
571
  };
572
+ /**
573
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
574
+ */
575
+ scalingProfile: 'aggressive' | 'conservative';
576
+ /**
577
+ * Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.
578
+ */
579
+ taints: Array<{
580
+ /**
581
+ * Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.
582
+ */
583
+ key: string;
584
+ /**
585
+ * Taint value. Optional.
586
+ */
587
+ value?: string;
588
+ /**
589
+ * Taint effect.
590
+ */
591
+ effect: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
592
+ }>;
365
593
  /**
366
594
  * Unique identifier of the kubernetes fleet.
367
595
  */
368
596
  id: string;
369
597
  /**
370
- * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
598
+ * Indicates whether the fleet configuration is healthy.
599
+ */
600
+ ready: boolean;
601
+ /**
602
+ * Human-readable reason the fleet is not ready. Present only when `ready` is false.
603
+ */
604
+ status_message?: string;
605
+ /**
606
+ * Creation date and time of the fleet.
607
+ */
608
+ created_at: string;
609
+ /**
610
+ * Date and time the fleet was last updated.
371
611
  */
372
- type: 'managed' | 'connected';
612
+ updated_at: string;
373
613
  };
614
+ /**
615
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
616
+ */
374
617
  export type FleetUpdateInput = {
375
618
  /**
376
619
  * Limits define a set of bounds for provisioning capacity.
377
620
  */
378
621
  limits?: {
379
622
  /**
380
- * CPU limit in cores.
623
+ * CPU limit in cores. Maximum 100,000.
381
624
  */
382
- cpu: number;
625
+ cpu?: number;
383
626
  };
384
627
  gcp?: {
385
- enabled?: boolean;
628
+ enabled: boolean;
386
629
  /**
387
- * Project GCP Project id to deploy instances into
630
+ * GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.
388
631
  */
389
- project: string;
632
+ project?: string;
390
633
  };
391
634
  hetzner?: {
392
- enabled?: boolean;
393
- apiKey?: string;
394
- } | {
635
+ enabled: boolean;
636
+ /**
637
+ * Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.
638
+ */
395
639
  apiKey?: string;
396
- enabled?: boolean;
397
640
  };
398
641
  aws?: {
399
- enabled?: boolean;
642
+ enabled: boolean;
643
+ /**
644
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
645
+ */
646
+ controllerRoleArn?: string;
647
+ };
648
+ /**
649
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
650
+ */
651
+ constraints?: {
652
+ /**
653
+ * Allowed values for `karpenter.sh/capacity-type`.
654
+ */
655
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
656
+ /**
657
+ * Allowed values for `kubernetes.io/arch`.
658
+ */
659
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
660
+ /**
661
+ * Allowed values for `cfke.io/instance-family`.
662
+ */
663
+ 'cfke.io/instance-family'?: Array<'a1' | 'a2' | 'a3' | 'a4' | 'c1' | 'c2' | 'c2d' | 'c3' | 'c3d' | 'c4' | 'c4a' | 'c4d' | 'c5' | 'c5a' | 'c5ad' | 'c5d' | 'c5n' | 'c6a' | 'c6g' | 'c6gd' | 'c6gn' | 'c6i' | 'c6id' | 'c6in' | 'c7a' | 'c7g' | 'c7gd' | 'c7gn' | 'c7i' | 'c7i-flex' | 'c8g' | 'c8gd' | 'cax' | 'ccx' | 'cpx' | 'cx' | 'd2' | 'd3' | 'd3en' | 'dl1' | 'dl2q' | 'e2' | 'f1' | 'f2' | 'g1' | 'g2' | 'g4ad' | 'g4dn' | 'g5' | 'g5g' | 'g6' | 'g6e' | 'gr6' | 'h1' | 'h3' | 'hpc6a' | 'hpc6id' | 'hpc7a' | 'hpc7g' | 'i2' | 'i3' | 'i3en' | 'i4g' | 'i4i' | 'i7i' | 'i7ie' | 'i8g' | 'im4gn' | 'inf1' | 'inf2' | 'is4gen' | 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm5a' | 'm5ad' | 'm5d' | 'm5dn' | 'm5n' | 'm5zn' | 'm6a' | 'm6g' | 'm6gd' | 'm6i' | 'm6id' | 'm6idn' | 'm6in' | 'm7a' | 'm7g' | 'm7gd' | 'm7i' | 'm7i-flex' | 'm8g' | 'm8gd' | 'n1' | 'n2' | 'n2d' | 'n4' | 'p3' | 'p3dn' | 'p4d' | 'p4de' | 'p5' | 'p5e' | 'p5en' | 'p6-b200' | 'r3' | 'r4' | 'r5' | 'r5a' | 'r5ad' | 'r5b' | 'r5d' | 'r5dn' | 'r5n' | 'r6a' | 'r6g' | 'r6gd' | 'r6i' | 'r6id' | 'r6idn' | 'r6in' | 'r7a' | 'r7g' | 'r7gd' | 'r7i' | 'r7iz' | 'r8g' | 'r8gd' | 't2' | 't2a' | 't2d' | 't3' | 't3a' | 't4g' | 'trn1' | 'trn1n' | 'u-3tb1' | 'u-6tb1' | 'u7i-12tb' | 'u7i-6tb' | 'u7i-8tb' | 'u7in-16tb' | 'u7in-24tb' | 'u7in-32tb' | 'vt1' | 'x1' | 'x1e' | 'x2gd' | 'x2idn' | 'x2iedn' | 'x2iezn' | 'x4' | 'x8g' | 'z1d' | 'z3'>;
400
664
  /**
401
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
665
+ * Allowed values for `topology.kubernetes.io/region`.
402
666
  */
403
- controllerRoleArn: string;
667
+ 'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
404
668
  };
669
+ /**
670
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
671
+ */
672
+ scalingProfile?: 'aggressive' | 'conservative';
673
+ /**
674
+ * Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.
675
+ */
676
+ taints?: Array<{
677
+ /**
678
+ * Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.
679
+ */
680
+ key: string;
681
+ /**
682
+ * Taint value. Optional.
683
+ */
684
+ value?: string;
685
+ /**
686
+ * Taint effect.
687
+ */
688
+ effect: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
689
+ }>;
690
+ };
691
+ export type InviteCreateInput = {
692
+ /**
693
+ * Email address of the user to invite.
694
+ */
695
+ email: string;
696
+ /**
697
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
698
+ */
699
+ role?: 'Administrator' | 'User';
405
700
  };
406
701
  export type Invite = {
407
702
  /**
@@ -424,285 +719,215 @@ export type Invite = {
424
719
  * Generated unique invite code.
425
720
  */
426
721
  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
722
  /**
434
- * Unique identifier of the organization. UUID v4 string in canonical form
723
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
435
724
  */
436
- organizationId?: string;
725
+ role?: 'Administrator' | 'User';
726
+ };
727
+ export type InvoicePaymentAttempt = {
437
728
  /**
438
- * Status of the invoice
729
+ * Identifier of the invoice.
439
730
  */
440
- status?: 'DRAFT' | 'COMMITTED' | 'VOID';
731
+ invoice_id: string;
441
732
  /**
442
- * Total amount of the invoice
733
+ * Invoice number. Null if the invoice has no number.
443
734
  */
444
- amount?: number;
735
+ number: string;
445
736
  /**
446
- * Currency of the invoice
737
+ * Amount outstanding when the charge was attempted, in the smallest currency unit.
447
738
  */
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';
739
+ amount: number;
449
740
  /**
450
- * Total amount of credit adjustments
741
+ * Currency of the invoice.
451
742
  */
452
- creditAdj?: number;
743
+ currency: string;
453
744
  /**
454
- * Total amount of refund adjustments
745
+ * Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).
455
746
  */
456
- refundAdj?: number;
747
+ status: 'paid' | 'processing' | 'requires_action' | 'failed';
457
748
  /**
458
- * Date of the invoice
749
+ * Client secret used to complete customer authentication. Set only when `status` is `requires_action`.
459
750
  */
460
- invoiceDate?: string;
751
+ client_secret: string;
461
752
  /**
462
- * Target date of the invoice
753
+ * Decline code. Set only when `status` is `failed`.
463
754
  */
464
- targetDate?: string;
755
+ failure_code: string;
465
756
  /**
466
- * Number of the invoice
757
+ * Explanation of the decline, suitable for display. Set only when `status` is `failed`.
467
758
  */
468
- invoiceNumber?: string;
759
+ failure_message: string;
760
+ };
761
+ export type InvoicePaymentResult = {
469
762
  /**
470
- * Balance of the invoice
763
+ * Overall outcome: `paid` (nothing outstanding), `processing` (all accepted, not yet settled), `action_required` (one or more await customer authentication), `partially_paid`, `failed`, `nothing_due`, or `bank_transfer_due` (the organization pays by bank transfer; nothing was charged).
471
764
  */
472
- balance?: number;
765
+ code: 'paid' | 'processing' | 'action_required' | 'partially_paid' | 'failed' | 'nothing_due' | 'bank_transfer_due';
473
766
  /**
474
- * Bundle keys of the invoice
767
+ * Summary of the outcome, suitable for display.
475
768
  */
476
- bundleKeys?: string;
769
+ message: string;
477
770
  /**
478
- * Credits of the invoice
771
+ * One entry per invoice charged, oldest first.
479
772
  */
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;
773
+ results: Array<{
497
774
  /**
498
- * Name of the phase
775
+ * Identifier of the invoice.
499
776
  */
500
- phaseName?: string;
777
+ invoice_id: string;
501
778
  /**
502
- * Name of the usage
779
+ * Invoice number. Null if the invoice has no number.
503
780
  */
504
- usageName?: string;
781
+ number: string;
505
782
  /**
506
- * Pretty name of the product
783
+ * Amount outstanding when the charge was attempted, in the smallest currency unit.
507
784
  */
508
- prettyProductName?: string;
785
+ amount: number;
509
786
  /**
510
- * Pretty name of the plan
787
+ * Currency of the invoice.
511
788
  */
512
- prettyPlanName?: string;
789
+ currency: string;
513
790
  /**
514
- * Pretty name of the phase
791
+ * Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).
515
792
  */
516
- prettyPhaseName?: string;
793
+ status: 'paid' | 'processing' | 'requires_action' | 'failed';
517
794
  /**
518
- * Pretty name of the usage
795
+ * Client secret used to complete customer authentication. Set only when `status` is `requires_action`.
519
796
  */
520
- prettyUsageName?: string;
797
+ client_secret: string;
521
798
  /**
522
- * Type of the invoice item
799
+ * Decline code. Set only when `status` is `failed`.
523
800
  */
524
- itemType?: 'EXTERNAL_CHARGE' | 'FIXED' | 'RECURRING' | 'REPAIR_ADJ' | 'CBA_ADJ' | 'CREDIT_ADJ' | 'ITEM_ADJ' | 'USAGE' | 'TAX' | 'PARENT_SUMMARY';
801
+ failure_code: string;
525
802
  /**
526
- * Description of the invoice item
803
+ * Explanation of the decline, suitable for display. Set only when `status` is `failed`.
527
804
  */
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>;
805
+ failure_message: string;
567
806
  }>;
807
+ };
808
+ export type Invoice = {
568
809
  /**
569
- * Items of the invoice
810
+ * Unique identifier of the invoice.
570
811
  */
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 = {
812
+ id?: string;
813
+ number?: string;
814
+ /**
815
+ * Status of the invoice
816
+ */
817
+ status?: string;
661
818
  /**
662
- * Id of the chart listing
819
+ * Total amount of the invoice
663
820
  */
664
- id: string;
821
+ total?: number;
665
822
  /**
666
- * Name of the chart listing
823
+ * Currency of the invoice
667
824
  */
668
- name: string;
825
+ currency?: string;
826
+ /**
827
+ * Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.
828
+ */
829
+ created: string;
830
+ /**
831
+ * Billing period start timestamp. ISO 8601 date string in the UTC timezone.
832
+ */
833
+ period_start: string;
834
+ /**
835
+ * Billing period end timestamp. ISO 8601 date string in the UTC timezone.
836
+ */
837
+ period_end: string;
838
+ invoice_pdf?: string;
839
+ };
840
+ export type MarketplaceListingFiles = {
841
+ /**
842
+ * Raw Chart.yaml content from the Helm chart
843
+ */
844
+ chartYaml?: string;
669
845
  /**
670
- * Author of the chart listing
846
+ * Raw values.yaml content from the Helm chart
671
847
  */
672
- developer: string;
848
+ valuesYaml?: string;
673
849
  /**
674
- * Short description of the chart listing
850
+ * JSON schema for values.yaml as a string
675
851
  */
676
- description: string;
852
+ valuesSchemaJson?: string;
853
+ };
854
+ export type MarketplaceListing = {
677
855
  /**
678
- * Logo of the chart listing
856
+ * Name of the chart
679
857
  */
680
- logoUrl: string;
858
+ name: string;
681
859
  /**
682
- * Long description of the chart listing
860
+ * Available versions of the chart
683
861
  */
684
- longDescription: string;
862
+ versions: Array<string>;
685
863
  /**
686
- * Tags of the chart
864
+ * Version channels for the chart
687
865
  */
688
- categories: Array<string>;
689
866
  version_channels: Array<string>;
690
- value_schemas: Array<{
867
+ /**
868
+ * Latest version of the chart
869
+ */
870
+ latestVersion: string;
871
+ /**
872
+ * Chart metadata
873
+ */
874
+ metadata?: {
875
+ /**
876
+ * Chart name from metadata
877
+ */
878
+ name: string;
691
879
  /**
692
- * Version of the chart.
880
+ * Chart version from metadata
693
881
  */
694
882
  version: string;
695
883
  /**
696
- * Schema of the chart values. JSON Schema as string
884
+ * Chart description
697
885
  */
698
- schema: string;
886
+ description?: string;
699
887
  /**
700
- * Schema of the chart values
888
+ * Application version
701
889
  */
702
- placeholder: string;
703
- }>;
890
+ appVersion?: string;
891
+ /**
892
+ * Helm API version
893
+ */
894
+ apiVersion?: string;
895
+ /**
896
+ * Chart keywords
897
+ */
898
+ keywords?: Array<string>;
899
+ /**
900
+ * Chart home URL
901
+ */
902
+ home?: string;
903
+ /**
904
+ * A URL to an SVG or PNG image to be used as an icon
905
+ */
906
+ icon?: string;
907
+ /**
908
+ * Chart source URLs
909
+ */
910
+ sources?: Array<string>;
911
+ /**
912
+ * Chart maintainers
913
+ */
914
+ maintainers?: Array<{
915
+ /**
916
+ * Maintainer name
917
+ */
918
+ name: string;
919
+ /**
920
+ * Maintainer email
921
+ */
922
+ email?: string;
923
+ }>;
924
+ };
704
925
  };
705
926
  export type OrganizationCreateInput = {
927
+ /**
928
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
929
+ */
930
+ type: 'business' | 'personal';
706
931
  /**
707
932
  * Email address used for billing as a string.
708
933
  */
@@ -724,6 +949,12 @@ export type OrganizationCreateInput = {
724
949
  */
725
950
  password: string;
726
951
  };
952
+ export type OrganizationCreateOutput = {
953
+ /**
954
+ * Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.
955
+ */
956
+ id: string;
957
+ };
727
958
  export type Organization = {
728
959
  /**
729
960
  * Unique identifier of the organization. UUID v4 string in canonical form
@@ -733,6 +964,10 @@ export type Organization = {
733
964
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
734
965
  */
735
966
  name?: string;
967
+ /**
968
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
969
+ */
970
+ type: 'business' | 'personal';
736
971
  /**
737
972
  * Creation date of the organization. ISO 8601 date string in UTC timezone
738
973
  */
@@ -758,13 +993,17 @@ export type Organization = {
758
993
  */
759
994
  pro_clusters_available: number;
760
995
  /**
761
- * Maximum number of fleets that can be created per cluster.
996
+ * Maximum number of Enterprise clusters that can be created.
762
997
  */
763
- fleets_max: number;
998
+ enterprise_clusters_max: number;
999
+ /**
1000
+ * Available number of Enterprise clusters that can be created.
1001
+ */
1002
+ enterprise_clusters_available: number;
764
1003
  /**
765
- * Maximum number of CPU cores per managed fleet.
1004
+ * Maximum number of fleets that can be created per cluster.
766
1005
  */
767
- managed_fleets_cpu_max: number;
1006
+ fleets_max: number;
768
1007
  /**
769
1008
  * List of Cloudfleet cluster tiers available for the organization.
770
1009
  */
@@ -786,490 +1025,1469 @@ export type Organization = {
786
1025
  */
787
1026
  label: string;
788
1027
  }>;
1028
+ /**
1029
+ * Organization-level maximum CFCR storage volume in GB. -1 means no limit.
1030
+ */
1031
+ cfcr_storage_gb: number;
789
1032
  };
790
1033
  /**
791
1034
  * Status of the organization. Can be `active` or `closed`, or `suspended`.
792
1035
  */
793
1036
  status: 'active' | 'closed' | 'suspended';
1037
+ /**
1038
+ * Verification status of the organization, which determines the assigned quota. `none` when billing information is incomplete, `submitted` when billing information is complete but the organization is not yet verified, `verified` when the organization is verified.
1039
+ */
1040
+ verification: 'none' | 'submitted' | 'verified';
794
1041
  };
795
1042
  export type PaymentMethod = {
796
1043
  /**
797
- * Unique identifier of the organization. UUID v4 string in canonical form.
1044
+ * Payment method identifier. Stripe payment method id for cards/SEPA; the constant `bank_transfer` for the invoice/bank-transfer method. Used to set as default or delete the payment method.
798
1045
  */
799
1046
  id: string;
800
1047
  /**
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.
1048
+ * Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.
806
1049
  */
807
- type: 'card';
1050
+ type: 'card' | 'sepa_debit' | 'bank_transfer';
808
1051
  /**
809
- * Last 4 digits of the payment card number.
1052
+ * Last 4 digits of the payment card number, of the bank account (IBAN) for SEPA Direct Debit, or of the destination IBAN for bank transfer.
810
1053
  */
811
1054
  last4: string;
812
1055
  /**
813
- * Two-digit number representing the card's expiration month.
1056
+ * Two-digit number representing the card's expiration month. Null for SEPA Direct Debit and bank transfer.
814
1057
  */
815
1058
  exp_month: number;
816
1059
  /**
817
- * Four-digit number representing the card's expiration year.
1060
+ * Four-digit number representing the card's expiration year. May be in the past for an expired card still on file. Null for SEPA Direct Debit and bank transfer.
818
1061
  */
819
1062
  exp_year: number;
820
1063
  /**
821
- * Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
1064
+ * Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.
822
1065
  */
823
- brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
824
- };
825
- export type TokenCreateInput = {
1066
+ brand: string;
826
1067
  /**
827
- * Human readable access token name.
1068
+ * Full destination IBAN to send bank transfers to. Set only for `bank_transfer`; null otherwise. This is Cloudfleet's virtual receiving account, shown in full so the customer can pay into it.
828
1069
  */
829
- name: string;
1070
+ iban: string;
830
1071
  /**
831
- * Role assumed by the token.
1072
+ * BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.
832
1073
  */
833
- role: 'Administrator' | 'User';
834
- };
835
- export type Token = {
1074
+ bic: string;
836
1075
  /**
837
- * Human readable access token name.
1076
+ * Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.
838
1077
  */
839
- name: string;
1078
+ account_holder_name: string;
840
1079
  /**
841
- * Role assumed by the token.
1080
+ * Whether this payment method is the default used for invoices and active subscriptions. Always false for `bank_transfer` (it cannot be a Stripe default payment method).
842
1081
  */
843
- role: 'Administrator' | 'User';
1082
+ is_default: boolean;
1083
+ };
1084
+ export type PlatformQuota = {
844
1085
  /**
845
- * Generated unique identifier of the access token.
1086
+ * Maximum number of Basic clusters that can be created.
846
1087
  */
847
- id?: string;
1088
+ basic_clusters_max: number;
848
1089
  /**
849
- * Access token secret. Unmasked only during creation.
1090
+ * Available number of Basic clusters that can be created.
850
1091
  */
851
- secret?: string;
1092
+ basic_clusters_available: number;
852
1093
  /**
853
- * Creation date of the access token. ISO 8601 date string in UTC timezone
1094
+ * Maximum number of Pro clusters that can be created.
854
1095
  */
855
- date_created: string;
856
- };
857
- export type TokenUpdateInput = {
1096
+ pro_clusters_max: number;
858
1097
  /**
859
- * Human readable access token name.
1098
+ * Available number of Pro clusters that can be created.
860
1099
  */
861
- name?: string;
1100
+ pro_clusters_available: number;
862
1101
  /**
863
- * Role assumed by the token.
1102
+ * Maximum number of Enterprise clusters that can be created.
864
1103
  */
865
- role?: 'Administrator' | 'User';
866
- };
867
- export type Usage = {
1104
+ enterprise_clusters_max: number;
868
1105
  /**
869
- * Hour of the usage
1106
+ * Available number of Enterprise clusters that can be created.
870
1107
  */
871
- hour?: string;
1108
+ enterprise_clusters_available: number;
872
1109
  /**
873
- * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
1110
+ * Maximum number of fleets that can be created per cluster.
874
1111
  */
875
- cluster_id: string;
1112
+ fleets_max: number;
876
1113
  /**
877
- * Tier of the cluster.
1114
+ * List of Cloudfleet cluster tiers available for the organization.
878
1115
  */
879
- cluster_tier: 'basic' | 'pro' | '';
1116
+ cluster_tiers: Array<string>;
880
1117
  /**
881
- * The product the usage is associated with
1118
+ * List of Cloudfleet control plane regions available for the organization.
882
1119
  */
883
- product: 'cfke_controlplane' | 'cfke_connected_nodes' | 'infra_compute' | 'infra_storage' | 'infra_loadbalancing' | 'infra_traffic' | 'cfcr_storage';
1120
+ regions: Array<string>;
884
1121
  /**
885
- * Name of the Kubernetes node
1122
+ * List of CFKE control plane versions available for the organization.
886
1123
  */
887
- node_name: string;
1124
+ versions: Array<{
1125
+ /**
1126
+ * Id of the control plane version. Used in API calls.
1127
+ */
1128
+ id: string;
1129
+ /**
1130
+ * Label of the control plane version. Used in frontent UI.
1131
+ */
1132
+ label: string;
1133
+ }>;
888
1134
  /**
889
- * SKU of the Kubernetes node
1135
+ * Organization-level maximum CFCR storage volume in GB. -1 means no limit.
890
1136
  */
891
- sku: string;
892
- cpu: number | '';
893
- price: number | '';
894
- value: number | '';
895
- total: number | '';
1137
+ cfcr_storage_gb: number;
896
1138
  };
897
- export type UserCreateInput = {
1139
+ export type RegistryRepository = {
898
1140
  /**
899
- * User email address.
1141
+ * Repository name.
900
1142
  */
901
- email: string;
1143
+ name: string;
902
1144
  /**
903
- * User first name.
1145
+ * Registry region.
904
1146
  */
905
- first_name: string;
1147
+ region: string;
906
1148
  /**
907
- * User last name.
1149
+ * Full URI of the repository.
908
1150
  */
909
- last_name: string;
1151
+ uri: string;
1152
+ };
1153
+ export type RegistryRepositoryWithTags = {
910
1154
  /**
911
- * Generated unique invite code.
1155
+ * Repository name.
912
1156
  */
913
- code: string;
1157
+ name: string;
914
1158
  /**
915
- * User password. Must be at least 8 characters long.
1159
+ * Registry region.
916
1160
  */
917
- password: string;
1161
+ region: string;
918
1162
  /**
919
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1163
+ * Full URI of the repository.
920
1164
  */
921
- status?: 'active' | 'inactive';
1165
+ uri: string;
922
1166
  /**
923
- * User role. Can be 'Administrator', 'User'.
1167
+ * Array of tags in the repository.
924
1168
  */
925
- role?: 'Administrator' | 'User';
926
- };
927
- export type User = {
1169
+ tags: Array<{
1170
+ /**
1171
+ * Tag name.
1172
+ */
1173
+ name: string;
1174
+ /**
1175
+ * Size of the tag in bytes.
1176
+ */
1177
+ size: number;
1178
+ /**
1179
+ * Media type of the manifest.
1180
+ */
1181
+ mediaType?: string;
1182
+ /**
1183
+ * Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).
1184
+ */
1185
+ platforms?: Array<string>;
1186
+ }>;
928
1187
  /**
929
- * User email address.
1188
+ * Total size of all tags in the repository in bytes.
930
1189
  */
931
- email: string;
1190
+ totalSize: number;
1191
+ };
1192
+ export type RegistryTag = {
932
1193
  /**
933
- * User first name.
1194
+ * Tag name.
934
1195
  */
935
- first_name: string;
1196
+ name: string;
936
1197
  /**
937
- * User last name.
1198
+ * Manifest digest for pulling by digest.
938
1199
  */
939
- last_name: string;
1200
+ digest: string;
940
1201
  /**
941
- * User role. Can be 'Administrator', 'User'.
1202
+ * Media type of the manifest.
942
1203
  */
943
- role: 'Administrator' | 'User';
1204
+ mediaType?: string;
944
1205
  /**
945
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1206
+ * Manifest config metadata.
946
1207
  */
947
- status: 'active' | 'inactive';
1208
+ config?: {
1209
+ /**
1210
+ * Size of the config in bytes.
1211
+ */
1212
+ size: number;
1213
+ };
948
1214
  /**
949
- * Unique identifier of the user. UUID v4 string in canonical form
1215
+ * Array of layer metadata.
950
1216
  */
951
- id: string;
1217
+ layers?: Array<{
1218
+ /**
1219
+ * Digest of the layer.
1220
+ */
1221
+ digest?: string;
1222
+ /**
1223
+ * Size of the layer in bytes.
1224
+ */
1225
+ size: number;
1226
+ }>;
952
1227
  /**
953
- * Creation date of the user. ISO 8601 date string in UTC timezone
1228
+ * Array of manifests for multi-arch images.
954
1229
  */
955
- date_created: string;
956
- };
957
- export type UserUpdateInput = {
1230
+ manifests?: Array<{
1231
+ /**
1232
+ * Digest of the manifest.
1233
+ */
1234
+ digest: string;
1235
+ /**
1236
+ * Platform information for the manifest.
1237
+ */
1238
+ platform?: {
1239
+ /**
1240
+ * Architecture of the platform.
1241
+ */
1242
+ architecture: string;
1243
+ /**
1244
+ * Operating system of the platform.
1245
+ */
1246
+ os: string;
1247
+ /**
1248
+ * Variant of the platform (e.g., v7, v8 for ARM).
1249
+ */
1250
+ variant?: string;
1251
+ };
1252
+ /**
1253
+ * Layers for this platform.
1254
+ */
1255
+ layers?: Array<{
1256
+ /**
1257
+ * Digest of the layer.
1258
+ */
1259
+ digest?: string;
1260
+ /**
1261
+ * Size of the layer in bytes.
1262
+ */
1263
+ size: number;
1264
+ }>;
1265
+ /**
1266
+ * Total size of this platform manifest in bytes.
1267
+ */
1268
+ size?: number;
1269
+ }>;
958
1270
  /**
959
- * User email address.
1271
+ * Total size of the tag in bytes.
960
1272
  */
961
- email?: string;
1273
+ size: number;
962
1274
  /**
963
- * User first name.
1275
+ * Registry region.
964
1276
  */
965
- first_name?: string;
1277
+ region: string;
966
1278
  /**
967
- * User last name.
1279
+ * Repository name.
968
1280
  */
969
- last_name?: string;
1281
+ repository: string;
970
1282
  /**
971
- * User role. Can be 'Administrator', 'User'.
1283
+ * Full URI of the tag.
972
1284
  */
973
- role?: 'Administrator' | 'User';
1285
+ uri: string;
1286
+ };
1287
+ export type RoadmapItemCreateInput = {
974
1288
  /**
975
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1289
+ * Your suggestion in one or two sentences. It is reviewed before it appears on the roadmap.
976
1290
  */
977
- status?: 'active' | 'inactive';
978
- };
979
- export type GetUsageData = {
980
- body?: never;
981
- path?: never;
982
- query?: never;
983
- url: '/billing/usage';
1291
+ text: string;
984
1292
  };
985
- export type GetUsageErrors = {
1293
+ export type RoadmapItem = {
986
1294
  /**
987
- * Not authenticated
1295
+ * Unique identifier of the roadmap item (Mongo ObjectId).
988
1296
  */
989
- 401: unknown;
990
- };
991
- export type GetUsageResponses = {
1297
+ id: string;
992
1298
  /**
993
- * An array of usage records.
1299
+ * Short description of the roadmap item.
994
1300
  */
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 = {
1301
+ text: string;
1005
1302
  /**
1006
- * Current balance of the organization in USD as a floating-point number.
1303
+ * The caller's vote on this item: -1 (down), 1 (up), 2 (double up), or null if the caller has not voted.
1007
1304
  */
1008
- 200: number;
1305
+ vote: -1 | 1 | 2;
1009
1306
  };
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 = {
1307
+ export type RoadmapVoteInput = {
1018
1308
  /**
1019
- * Returns 404 Not Found if the organization does not have a payment method set up.
1309
+ * Vote value: -1 (down), 1 (up), or 2 (double up).
1020
1310
  */
1021
- 404: unknown;
1311
+ value: -1 | 1 | 2;
1022
1312
  };
1023
- export type GetPaymentMethodResponses = {
1313
+ export type TicketAttachment = {
1024
1314
  /**
1025
- * Redacted payment card information.
1315
+ * Unique identifier of the attachment (Mongo ObjectId).
1026
1316
  */
1027
- 200: PaymentMethod;
1028
- };
1029
- export type GetPaymentMethodResponse = GetPaymentMethodResponses[keyof GetPaymentMethodResponses];
1030
- export type GetPaymentMethodSecretData = {
1317
+ id: string;
1318
+ /**
1319
+ * Original filename as uploaded.
1320
+ */
1321
+ filename: string;
1322
+ /**
1323
+ * MIME content type of the attachment.
1324
+ */
1325
+ content_type: string;
1326
+ /**
1327
+ * Size of the attachment in bytes.
1328
+ */
1329
+ size: number;
1330
+ };
1331
+ export type TicketCreateInput = {
1332
+ /**
1333
+ * Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.
1334
+ */
1335
+ category: 'billing' | 'technical' | 'general';
1336
+ /**
1337
+ * Initial message body in markdown. There is no separate subject — the first message body is the description.
1338
+ */
1339
+ body: string;
1340
+ /**
1341
+ * Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).
1342
+ */
1343
+ properties?: {
1344
+ [key: string]: unknown;
1345
+ };
1346
+ /**
1347
+ * Grant Cloudfleet support staff access to the organization's resources while the ticket is open. Access cannot be revoked; it ends when the ticket is closed.
1348
+ */
1349
+ grant_support_access?: boolean;
1350
+ };
1351
+ export type TicketMessageInput = {
1352
+ /**
1353
+ * Reply body in markdown.
1354
+ */
1355
+ body: string;
1356
+ };
1357
+ export type TicketMessage = {
1358
+ /**
1359
+ * Unique identifier of the message (Mongo ObjectId).
1360
+ */
1361
+ id: string;
1362
+ /**
1363
+ * Message type. Internal notes are filtered out of customer-facing responses.
1364
+ */
1365
+ type: 'customer_reply' | 'agent_reply';
1366
+ /**
1367
+ * Message body in markdown.
1368
+ */
1369
+ body: string;
1370
+ /**
1371
+ * First name of the author. Null when not provided.
1372
+ */
1373
+ author_first_name?: string;
1374
+ /**
1375
+ * Last name of the author. Null when not provided.
1376
+ */
1377
+ author_last_name?: string;
1378
+ /**
1379
+ * Attachments associated with this message.
1380
+ */
1381
+ attachments?: Array<{
1382
+ /**
1383
+ * Unique identifier of the attachment (Mongo ObjectId).
1384
+ */
1385
+ id: string;
1386
+ /**
1387
+ * Original filename as uploaded.
1388
+ */
1389
+ filename: string;
1390
+ /**
1391
+ * MIME content type of the attachment.
1392
+ */
1393
+ content_type: string;
1394
+ /**
1395
+ * Size of the attachment in bytes.
1396
+ */
1397
+ size: number;
1398
+ }>;
1399
+ /**
1400
+ * Creation date of the message. ISO 8601 UTC.
1401
+ */
1402
+ date_created: string;
1403
+ };
1404
+ export type Ticket = {
1405
+ /**
1406
+ * Unique identifier of the ticket (Mongo ObjectId).
1407
+ */
1408
+ id: string;
1409
+ /**
1410
+ * Current state of the ticket.
1411
+ */
1412
+ status: 'waiting_on_us' | 'waiting_on_user' | 'closed';
1413
+ /**
1414
+ * Ticket category.
1415
+ */
1416
+ category: 'billing' | 'technical' | 'general';
1417
+ /**
1418
+ * First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
1419
+ */
1420
+ summary: string;
1421
+ /**
1422
+ * Whether Cloudfleet support staff currently have access to the organization's resources. True once access is granted and until the ticket is closed.
1423
+ */
1424
+ support_access_granted: boolean;
1425
+ /**
1426
+ * When support access was granted. Null if it never was. Kept after the ticket is closed.
1427
+ */
1428
+ support_access_granted_at: string;
1429
+ /**
1430
+ * Closure timestamp. Null while the ticket is open.
1431
+ */
1432
+ closed_at?: string;
1433
+ /**
1434
+ * Creation date of the ticket. ISO 8601 UTC.
1435
+ */
1436
+ date_created: string;
1437
+ /**
1438
+ * Last update date of the ticket. ISO 8601 UTC.
1439
+ */
1440
+ date_updated: string;
1441
+ /**
1442
+ * Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.
1443
+ */
1444
+ messages?: Array<{
1445
+ /**
1446
+ * Unique identifier of the message (Mongo ObjectId).
1447
+ */
1448
+ id: string;
1449
+ /**
1450
+ * Message type. Internal notes are filtered out of customer-facing responses.
1451
+ */
1452
+ type: 'customer_reply' | 'agent_reply';
1453
+ /**
1454
+ * Message body in markdown.
1455
+ */
1456
+ body: string;
1457
+ /**
1458
+ * First name of the author. Null when not provided.
1459
+ */
1460
+ author_first_name?: string;
1461
+ /**
1462
+ * Last name of the author. Null when not provided.
1463
+ */
1464
+ author_last_name?: string;
1465
+ /**
1466
+ * Attachments associated with this message.
1467
+ */
1468
+ attachments?: Array<{
1469
+ /**
1470
+ * Unique identifier of the attachment (Mongo ObjectId).
1471
+ */
1472
+ id: string;
1473
+ /**
1474
+ * Original filename as uploaded.
1475
+ */
1476
+ filename: string;
1477
+ /**
1478
+ * MIME content type of the attachment.
1479
+ */
1480
+ content_type: string;
1481
+ /**
1482
+ * Size of the attachment in bytes.
1483
+ */
1484
+ size: number;
1485
+ }>;
1486
+ /**
1487
+ * Creation date of the message. ISO 8601 UTC.
1488
+ */
1489
+ date_created: string;
1490
+ }>;
1491
+ };
1492
+ export type TokenCreateInput = {
1493
+ /**
1494
+ * Human readable access token name.
1495
+ */
1496
+ name: string;
1497
+ /**
1498
+ * Role assumed by the token.
1499
+ */
1500
+ role: 'Administrator' | 'User';
1501
+ };
1502
+ export type Token = {
1503
+ /**
1504
+ * Human readable access token name.
1505
+ */
1506
+ name: string;
1507
+ /**
1508
+ * Role assumed by the token.
1509
+ */
1510
+ role: 'Administrator' | 'User';
1511
+ /**
1512
+ * Generated unique identifier of the access token.
1513
+ */
1514
+ id?: string;
1515
+ /**
1516
+ * Access token secret. Unmasked only during creation.
1517
+ */
1518
+ secret?: string;
1519
+ /**
1520
+ * Creation date of the access token. ISO 8601 date string in UTC timezone
1521
+ */
1522
+ date_created: string;
1523
+ };
1524
+ export type TokenUpdateInput = {
1525
+ /**
1526
+ * Human readable access token name.
1527
+ */
1528
+ name?: string;
1529
+ /**
1530
+ * Role assumed by the token.
1531
+ */
1532
+ role?: 'Administrator' | 'User';
1533
+ };
1534
+ export type UsageFacets = {
1535
+ /**
1536
+ * List of unique cluster IDs
1537
+ */
1538
+ cluster_id?: Array<string>;
1539
+ /**
1540
+ * List of unique products
1541
+ */
1542
+ product?: Array<'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage'>;
1543
+ };
1544
+ export type UsageResponse = {
1545
+ /**
1546
+ * Usage data
1547
+ */
1548
+ data: Array<{
1549
+ /**
1550
+ * Hour of the usage
1551
+ */
1552
+ hour: string;
1553
+ /**
1554
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
1555
+ */
1556
+ cluster_id: string;
1557
+ /**
1558
+ * The product the usage is associated with
1559
+ */
1560
+ product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
1561
+ /**
1562
+ * Consumption
1563
+ */
1564
+ value: number;
1565
+ /**
1566
+ * Price per unit
1567
+ */
1568
+ price: number;
1569
+ /**
1570
+ * Total cost
1571
+ */
1572
+ total: number;
1573
+ }>;
1574
+ /**
1575
+ * Facets for filtering
1576
+ */
1577
+ facets: {
1578
+ /**
1579
+ * List of unique cluster IDs
1580
+ */
1581
+ cluster_id?: Array<string>;
1582
+ /**
1583
+ * List of unique products
1584
+ */
1585
+ product?: Array<'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage'>;
1586
+ };
1587
+ };
1588
+ export type Usage = {
1589
+ /**
1590
+ * Hour of the usage
1591
+ */
1592
+ hour: string;
1593
+ /**
1594
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
1595
+ */
1596
+ cluster_id: string;
1597
+ /**
1598
+ * The product the usage is associated with
1599
+ */
1600
+ product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
1601
+ /**
1602
+ * Consumption
1603
+ */
1604
+ value: number;
1605
+ /**
1606
+ * Price per unit
1607
+ */
1608
+ price: number;
1609
+ /**
1610
+ * Total cost
1611
+ */
1612
+ total: number;
1613
+ };
1614
+ export type UserCreateInput = {
1615
+ /**
1616
+ * User email address.
1617
+ */
1618
+ email: string;
1619
+ /**
1620
+ * User first name.
1621
+ */
1622
+ first_name: string;
1623
+ /**
1624
+ * User last name.
1625
+ */
1626
+ last_name: string;
1627
+ /**
1628
+ * Generated unique invite code.
1629
+ */
1630
+ code: string;
1631
+ /**
1632
+ * User password. Must be at least 8 characters long.
1633
+ */
1634
+ password: string;
1635
+ };
1636
+ export type User = {
1637
+ /**
1638
+ * User email address.
1639
+ */
1640
+ email: string;
1641
+ /**
1642
+ * User first name.
1643
+ */
1644
+ first_name: string;
1645
+ /**
1646
+ * User last name.
1647
+ */
1648
+ last_name: string;
1649
+ /**
1650
+ * User role. Can be 'Administrator', 'User'.
1651
+ */
1652
+ role: 'Administrator' | 'User';
1653
+ /**
1654
+ * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1655
+ */
1656
+ status: 'active' | 'inactive';
1657
+ /**
1658
+ * Unique identifier of the user. UUID v4 string in canonical form
1659
+ */
1660
+ id: string;
1661
+ /**
1662
+ * Creation date of the user. ISO 8601 date string in UTC timezone
1663
+ */
1664
+ date_created: string;
1665
+ };
1666
+ export type UserUpdateInput = {
1667
+ /**
1668
+ * User email address.
1669
+ */
1670
+ email?: string;
1671
+ /**
1672
+ * User first name.
1673
+ */
1674
+ first_name?: string;
1675
+ /**
1676
+ * User last name.
1677
+ */
1678
+ last_name?: string;
1679
+ /**
1680
+ * User role. Can be 'Administrator', 'User'.
1681
+ */
1682
+ role?: 'Administrator' | 'User';
1683
+ /**
1684
+ * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1685
+ */
1686
+ status?: 'active' | 'inactive';
1687
+ };
1688
+ export type ListUserOrganizationsData = {
1689
+ body?: never;
1690
+ path: {
1691
+ /**
1692
+ * User email address.
1693
+ */
1694
+ email: string;
1695
+ };
1696
+ query?: never;
1697
+ url: '/users/organizations/{email}';
1698
+ };
1699
+ export type ListUserOrganizationsResponses = {
1700
+ /**
1701
+ * An array of organizations the user belongs to.
1702
+ */
1703
+ 200: Array<{
1704
+ /**
1705
+ * Unique identifier of the organization. UUID v4 string in canonical form
1706
+ */
1707
+ realm?: string;
1708
+ /**
1709
+ * Human-readable name of the organization
1710
+ */
1711
+ displayName?: string;
1712
+ }>;
1713
+ };
1714
+ export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1715
+ export type ListUsersData = {
1716
+ body?: never;
1717
+ path?: never;
1718
+ query?: never;
1719
+ url: '/users';
1720
+ };
1721
+ export type ListUsersErrors = {
1722
+ /**
1723
+ * Not authenticated
1724
+ */
1725
+ 401: unknown;
1726
+ };
1727
+ export type ListUsersResponses = {
1728
+ /**
1729
+ * An array of users
1730
+ */
1731
+ 200: Array<User>;
1732
+ };
1733
+ export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1734
+ export type CreateUserData = {
1735
+ body: UserCreateInput;
1736
+ path?: never;
1737
+ query?: never;
1738
+ url: '/users';
1739
+ };
1740
+ export type CreateUserResponses = {
1741
+ /**
1742
+ * Successfully created. Returns created user details.
1743
+ */
1744
+ 200: User;
1745
+ };
1746
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1747
+ export type DeleteUserData = {
1748
+ body?: never;
1749
+ path: {
1750
+ /**
1751
+ * Unique user identifier. UUID v4 string in canonical form
1752
+ */
1753
+ user_id: string;
1754
+ };
1755
+ query?: never;
1756
+ url: '/users/{user_id}';
1757
+ };
1758
+ export type DeleteUserErrors = {
1759
+ /**
1760
+ * Deleting own user is not allowed. Delete your organization instead.
1761
+ */
1762
+ 400: unknown;
1763
+ /**
1764
+ * Not authenticated
1765
+ */
1766
+ 401: unknown;
1767
+ };
1768
+ export type DeleteUserResponses = {
1769
+ /**
1770
+ * User profile information
1771
+ */
1772
+ 200: User;
1773
+ };
1774
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1775
+ export type GetUserData = {
1776
+ body?: never;
1777
+ path: {
1778
+ /**
1779
+ * Unique user identifier. UUID v4 string in canonical form
1780
+ */
1781
+ user_id: string;
1782
+ };
1783
+ query?: never;
1784
+ url: '/users/{user_id}';
1785
+ };
1786
+ export type GetUserErrors = {
1787
+ /**
1788
+ * Not authenticated
1789
+ */
1790
+ 401: unknown;
1791
+ };
1792
+ export type GetUserResponses = {
1793
+ /**
1794
+ * User profile information
1795
+ */
1796
+ 200: User;
1797
+ };
1798
+ export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
1799
+ export type UpdateUserData = {
1800
+ body: UserUpdateInput;
1801
+ path: {
1802
+ /**
1803
+ * Unique user identifier. UUID v4 string in canonical form
1804
+ */
1805
+ user_id: string;
1806
+ };
1807
+ query?: never;
1808
+ url: '/users/{user_id}';
1809
+ };
1810
+ export type UpdateUserResponses = {
1811
+ /**
1812
+ * Successfully created. Returns created user details.
1813
+ */
1814
+ 200: User;
1815
+ };
1816
+ export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1817
+ export type ListTokensData = {
1818
+ body?: never;
1819
+ path?: never;
1820
+ query?: never;
1821
+ url: '/tokens';
1822
+ };
1823
+ export type ListTokensErrors = {
1824
+ /**
1825
+ * Not authenticated
1826
+ */
1827
+ 401: unknown;
1828
+ };
1829
+ export type ListTokensResponses = {
1830
+ /**
1831
+ * Returns a list of access token details with masked secrets.
1832
+ */
1833
+ 200: Array<Token>;
1834
+ };
1835
+ export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1836
+ export type CreateTokenData = {
1837
+ body: TokenCreateInput;
1838
+ path?: never;
1839
+ query?: never;
1840
+ url: '/tokens';
1841
+ };
1842
+ export type CreateTokenErrors = {
1843
+ /**
1844
+ * Not authenticated
1845
+ */
1846
+ 401: unknown;
1847
+ };
1848
+ export type CreateTokenResponses = {
1849
+ /**
1850
+ * Successfully created. Returns created token details with unmasked/raw secret.
1851
+ */
1852
+ 200: Token;
1853
+ };
1854
+ export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1855
+ export type DeleteTokenData = {
1856
+ body?: never;
1857
+ path: {
1858
+ /**
1859
+ * Generated unique identifier of the access token.
1860
+ */
1861
+ token_id: string;
1862
+ };
1863
+ query?: never;
1864
+ url: '/tokens/{token_id}';
1865
+ };
1866
+ export type DeleteTokenResponses = {
1867
+ /**
1868
+ * Successfully deleted.
1869
+ */
1870
+ 200: unknown;
1871
+ };
1872
+ export type GetTokenData = {
1873
+ body?: never;
1874
+ path: {
1875
+ /**
1876
+ * Generated unique identifier of the access token.
1877
+ */
1878
+ token_id: string;
1879
+ };
1880
+ query?: never;
1881
+ url: '/tokens/{token_id}';
1882
+ };
1883
+ export type GetTokenErrors = {
1884
+ /**
1885
+ * Not authenticated
1886
+ */
1887
+ 401: unknown;
1888
+ };
1889
+ export type GetTokenResponses = {
1890
+ /**
1891
+ * Returns access token details with masked secret.
1892
+ */
1893
+ 200: Token;
1894
+ };
1895
+ export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1896
+ export type UpdateTokenData = {
1897
+ body: TokenUpdateInput;
1898
+ path: {
1899
+ /**
1900
+ * Generated unique identifier of the access token.
1901
+ */
1902
+ token_id: string;
1903
+ };
1904
+ query?: never;
1905
+ url: '/tokens/{token_id}';
1906
+ };
1907
+ export type UpdateTokenErrors = {
1908
+ /**
1909
+ * Not authenticated
1910
+ */
1911
+ 401: unknown;
1912
+ };
1913
+ export type UpdateTokenResponses = {
1914
+ /**
1915
+ * Successfully updated. Returns updated token details with masked secret.
1916
+ */
1917
+ 200: Token;
1918
+ };
1919
+ export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1920
+ export type RegenerateTokenData = {
1921
+ body?: never;
1922
+ path: {
1923
+ /**
1924
+ * Generated unique identifier of the access token.
1925
+ */
1926
+ token_id: string;
1927
+ };
1928
+ query?: never;
1929
+ url: '/tokens/{token_id}/secret';
1930
+ };
1931
+ export type RegenerateTokenErrors = {
1932
+ /**
1933
+ * Not authenticated
1934
+ */
1935
+ 401: unknown;
1936
+ };
1937
+ export type RegenerateTokenResponses = {
1938
+ /**
1939
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1940
+ */
1941
+ 200: Token;
1942
+ };
1943
+ export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
1944
+ export type ListTicketsData = {
1945
+ body?: never;
1946
+ path?: never;
1947
+ query?: never;
1948
+ url: '/tickets';
1949
+ };
1950
+ export type ListTicketsResponses = {
1951
+ /**
1952
+ * An array of tickets for the organization, newest first.
1953
+ */
1954
+ 200: Array<Ticket>;
1955
+ };
1956
+ export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
1957
+ export type CreateTicketData = {
1958
+ body: {
1959
+ /**
1960
+ * JSON-encoded TicketCreateInput.
1961
+ */
1962
+ payload?: string;
1963
+ attachments?: Array<Blob | File>;
1964
+ };
1965
+ path?: never;
1966
+ query?: never;
1967
+ url: '/tickets';
1968
+ };
1969
+ export type CreateTicketResponses = {
1970
+ /**
1971
+ * Ticket created.
1972
+ */
1973
+ 200: Ticket;
1974
+ };
1975
+ export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
1976
+ export type CloseTicketData = {
1977
+ body?: never;
1978
+ path: {
1979
+ ticket_id: string;
1980
+ };
1981
+ query?: never;
1982
+ url: '/tickets/{ticket_id}';
1983
+ };
1984
+ export type CloseTicketResponses = {
1985
+ /**
1986
+ * Ticket closed.
1987
+ */
1988
+ 200: Ticket;
1989
+ };
1990
+ export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
1991
+ export type GetTicketData = {
1992
+ body?: never;
1993
+ path: {
1994
+ ticket_id: string;
1995
+ };
1996
+ query?: never;
1997
+ url: '/tickets/{ticket_id}';
1998
+ };
1999
+ export type GetTicketResponses = {
2000
+ /**
2001
+ * Ticket with messages (internal notes excluded).
2002
+ */
2003
+ 200: Ticket;
2004
+ };
2005
+ export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
2006
+ export type GrantTicketSupportAccessData = {
2007
+ body?: never;
2008
+ path: {
2009
+ ticket_id: string;
2010
+ };
2011
+ query?: never;
2012
+ url: '/tickets/{ticket_id}/support-access';
2013
+ };
2014
+ export type GrantTicketSupportAccessErrors = {
2015
+ /**
2016
+ * Ticket is closed. Open a new ticket instead.
2017
+ */
2018
+ 409: unknown;
2019
+ };
2020
+ export type GrantTicketSupportAccessResponses = {
2021
+ /**
2022
+ * Support access granted.
2023
+ */
2024
+ 200: Ticket;
2025
+ };
2026
+ export type GrantTicketSupportAccessResponse = GrantTicketSupportAccessResponses[keyof GrantTicketSupportAccessResponses];
2027
+ export type ReplyTicketData = {
2028
+ body: {
2029
+ /**
2030
+ * JSON-encoded TicketMessageInput.
2031
+ */
2032
+ payload?: string;
2033
+ attachments?: Array<Blob | File>;
2034
+ };
2035
+ path: {
2036
+ ticket_id: string;
2037
+ };
2038
+ query?: never;
2039
+ url: '/tickets/{ticket_id}/messages';
2040
+ };
2041
+ export type ReplyTicketErrors = {
2042
+ /**
2043
+ * Ticket is closed. Open a new ticket instead.
2044
+ */
2045
+ 409: unknown;
2046
+ };
2047
+ export type ReplyTicketResponses = {
2048
+ /**
2049
+ * Reply appended.
2050
+ */
2051
+ 200: TicketMessage;
2052
+ };
2053
+ export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
2054
+ export type GetTicketAttachmentData = {
2055
+ body?: never;
2056
+ path: {
2057
+ ticket_id: string;
2058
+ attachment_id: string;
2059
+ };
2060
+ query?: never;
2061
+ url: '/tickets/{ticket_id}/attachments/{attachment_id}';
2062
+ };
2063
+ export type GetTicketAttachmentResponses = {
2064
+ /**
2065
+ * Attachment binary stream.
2066
+ */
2067
+ 200: Blob | File;
2068
+ };
2069
+ export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
2070
+ export type ListRoadmapData = {
2071
+ body?: never;
2072
+ path?: never;
2073
+ query?: never;
2074
+ url: '/roadmap';
2075
+ };
2076
+ export type ListRoadmapResponses = {
2077
+ /**
2078
+ * An array of roadmap items, newest first.
2079
+ */
2080
+ 200: Array<RoadmapItem>;
2081
+ };
2082
+ export type ListRoadmapResponse = ListRoadmapResponses[keyof ListRoadmapResponses];
2083
+ export type SuggestRoadmapData = {
2084
+ body: RoadmapItemCreateInput;
2085
+ path?: never;
2086
+ query?: never;
2087
+ url: '/roadmap';
2088
+ };
2089
+ export type SuggestRoadmapResponses = {
2090
+ /**
2091
+ * Suggestion submitted for review.
2092
+ */
2093
+ 200: RoadmapItem;
2094
+ };
2095
+ export type SuggestRoadmapResponse = SuggestRoadmapResponses[keyof SuggestRoadmapResponses];
2096
+ export type UnvoteRoadmapData = {
2097
+ body?: never;
2098
+ path: {
2099
+ item_id: string;
2100
+ };
2101
+ query?: never;
2102
+ url: '/roadmap/{item_id}/vote';
2103
+ };
2104
+ export type UnvoteRoadmapErrors = {
2105
+ /**
2106
+ * Roadmap item not found.
2107
+ */
2108
+ 404: unknown;
2109
+ };
2110
+ export type UnvoteRoadmapResponses = {
2111
+ /**
2112
+ * Vote removed. Returns the item without a vote.
2113
+ */
2114
+ 200: RoadmapItem;
2115
+ };
2116
+ export type UnvoteRoadmapResponse = UnvoteRoadmapResponses[keyof UnvoteRoadmapResponses];
2117
+ export type VoteRoadmapData = {
2118
+ body: RoadmapVoteInput;
2119
+ path: {
2120
+ item_id: string;
2121
+ };
2122
+ query?: never;
2123
+ url: '/roadmap/{item_id}/vote';
2124
+ };
2125
+ export type VoteRoadmapErrors = {
2126
+ /**
2127
+ * Roadmap item not found.
2128
+ */
2129
+ 404: unknown;
2130
+ };
2131
+ export type VoteRoadmapResponses = {
2132
+ /**
2133
+ * Vote saved. Returns the item with your vote.
2134
+ */
2135
+ 200: RoadmapItem;
2136
+ };
2137
+ export type VoteRoadmapResponse = VoteRoadmapResponses[keyof VoteRoadmapResponses];
2138
+ export type ListRepositoriesData = {
1031
2139
  body?: never;
1032
2140
  path?: never;
1033
2141
  query?: never;
1034
- url: '/billing/payment-method';
2142
+ url: '/registry';
1035
2143
  };
1036
- export type GetPaymentMethodSecretResponses = {
2144
+ export type ListRepositoriesErrors = {
1037
2145
  /**
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
- *
2146
+ * Not authenticated
1040
2147
  */
1041
- 200: {
2148
+ 401: unknown;
2149
+ /**
2150
+ * Internal server error
2151
+ */
2152
+ 500: unknown;
2153
+ };
2154
+ export type ListRepositoriesResponses = {
2155
+ /**
2156
+ * List of repositories
2157
+ */
2158
+ 200: Array<RegistryRepository>;
2159
+ };
2160
+ export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
2161
+ export type ListTagsData = {
2162
+ body?: never;
2163
+ path: {
1042
2164
  /**
1043
- * The client secret.
2165
+ * Region where the repository is located
1044
2166
  */
1045
- id?: string;
2167
+ region: string;
2168
+ /**
2169
+ * Name of the repository
2170
+ */
2171
+ repository: string;
1046
2172
  };
2173
+ query?: never;
2174
+ url: '/registry/{region}/{repository}';
1047
2175
  };
1048
- export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
1049
- export type ListInvoicesData = {
2176
+ export type ListTagsErrors = {
2177
+ /**
2178
+ * Not authenticated
2179
+ */
2180
+ 401: unknown;
2181
+ /**
2182
+ * Repository not found
2183
+ */
2184
+ 404: unknown;
2185
+ /**
2186
+ * Internal server error
2187
+ */
2188
+ 500: unknown;
2189
+ };
2190
+ export type ListTagsResponses = {
2191
+ /**
2192
+ * Repository with tags
2193
+ */
2194
+ 200: RegistryRepositoryWithTags;
2195
+ };
2196
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
2197
+ export type DeleteTagData = {
1050
2198
  body?: never;
1051
- path?: never;
1052
- query: {
2199
+ path: {
2200
+ /**
2201
+ * Region where the repository is located
2202
+ */
2203
+ region: string;
1053
2204
  /**
1054
- * Start date for the usage. Date of oldest data point to retrieve.
2205
+ * Name of the repository
1055
2206
  */
1056
- start_date: string;
2207
+ repository: string;
1057
2208
  /**
1058
- * End date for the usage. Date of newest data point to retrieve.
2209
+ * Name of the tag
1059
2210
  */
1060
- end_date: string;
2211
+ tag: string;
1061
2212
  };
1062
- url: '/billing/invoices';
2213
+ query?: never;
2214
+ url: '/registry/{region}/{repository}/{tag}';
1063
2215
  };
1064
- export type ListInvoicesErrors = {
2216
+ export type DeleteTagErrors = {
1065
2217
  /**
1066
2218
  * Not authenticated
1067
2219
  */
1068
2220
  401: unknown;
2221
+ /**
2222
+ * Tag not found
2223
+ */
2224
+ 404: unknown;
2225
+ /**
2226
+ * Internal server error
2227
+ */
2228
+ 500: unknown;
1069
2229
  };
1070
- export type ListInvoicesResponses = {
2230
+ export type DeleteTagResponses = {
1071
2231
  /**
1072
- * An array of usage records.
2232
+ * Tag successfully deleted
1073
2233
  */
1074
- 200: Array<Invoice>;
2234
+ 200: unknown;
1075
2235
  };
1076
- export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
1077
- export type GetInvoiceData = {
2236
+ export type GetTagData = {
1078
2237
  body?: never;
1079
2238
  path: {
1080
2239
  /**
1081
- * Unique invoice identifier. UUID v4 string in canonical form
2240
+ * Region where the repository is located
1082
2241
  */
1083
- id: string;
2242
+ region: string;
2243
+ /**
2244
+ * Name of the repository
2245
+ */
2246
+ repository: string;
2247
+ /**
2248
+ * Name of the tag
2249
+ */
2250
+ tag: string;
1084
2251
  };
1085
2252
  query?: never;
1086
- url: '/billing/invoices/{id}';
2253
+ url: '/registry/{region}/{repository}/{tag}';
2254
+ };
2255
+ export type GetTagErrors = {
2256
+ /**
2257
+ * Not authenticated
2258
+ */
2259
+ 401: unknown;
2260
+ /**
2261
+ * Tag not found
2262
+ */
2263
+ 404: unknown;
2264
+ /**
2265
+ * Internal server error
2266
+ */
2267
+ 500: unknown;
1087
2268
  };
1088
- export type GetInvoiceResponses = {
2269
+ export type GetTagResponses = {
1089
2270
  /**
1090
- * Returns a single Invoice HTML representation under `html` property.
2271
+ * Tag details
1091
2272
  */
1092
- 200: {
1093
- html?: string;
1094
- };
2273
+ 200: RegistryTag;
1095
2274
  };
1096
- export type GetInvoiceResponse = GetInvoiceResponses[keyof GetInvoiceResponses];
1097
- export type GetContactData = {
2275
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2276
+ export type GetOrganizationData = {
1098
2277
  body?: never;
1099
2278
  path?: never;
1100
2279
  query?: never;
1101
- url: '/billing/contact';
2280
+ url: '/organization';
1102
2281
  };
1103
- export type GetContactResponses = {
2282
+ export type GetOrganizationResponses = {
1104
2283
  /**
1105
- * Returns a single object containing organization contact and billing address details.
2284
+ * Returns a single object containing organization details.
1106
2285
  */
1107
- 200: BillingContact;
2286
+ 200: Organization;
1108
2287
  };
1109
- export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
1110
- export type UpdateContactData = {
1111
- body: BillingContact;
2288
+ export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
2289
+ export type CreateOrganizationData = {
2290
+ body: OrganizationCreateInput;
1112
2291
  path?: never;
1113
2292
  query?: never;
1114
- url: '/billing/contact';
2293
+ url: '/organization';
1115
2294
  };
1116
- export type UpdateContactResponses = {
2295
+ export type CreateOrganizationResponses = {
1117
2296
  /**
1118
- * Successfully updated. Returns updated organization details.
2297
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
2298
+ *
1119
2299
  */
1120
- 200: BillingContact;
2300
+ 200: OrganizationCreateOutput;
1121
2301
  };
1122
- export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1123
- export type GetCreditsData = {
1124
- body?: never;
2302
+ export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses];
2303
+ export type PostMcpData = {
2304
+ /**
2305
+ * JSON-RPC 2.0 request payload
2306
+ */
2307
+ body: {
2308
+ jsonrpc?: string;
2309
+ method?: string;
2310
+ id?: string | number;
2311
+ /**
2312
+ * Method-specific parameters
2313
+ */
2314
+ params?: {
2315
+ [key: string]: unknown;
2316
+ };
2317
+ };
1125
2318
  path?: never;
1126
2319
  query?: never;
1127
- url: '/billing/credits';
2320
+ url: '/mcp';
1128
2321
  };
1129
- export type GetCreditsErrors = {
2322
+ export type PostMcpErrors = {
1130
2323
  /**
1131
2324
  * Not authenticated
1132
2325
  */
1133
2326
  401: unknown;
1134
2327
  };
1135
- export type GetCreditsResponses = {
2328
+ export type PostMcpResponses = {
1136
2329
  /**
1137
- * An array of the applied promotional credits records.
2330
+ * JSON-RPC 2.0 success or error response
1138
2331
  */
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;
2332
+ 200: {
2333
+ jsonrpc?: string;
2334
+ id?: string | number;
2335
+ result?: {
2336
+ [key: string]: unknown;
2337
+ };
2338
+ error?: {
2339
+ code?: number;
2340
+ message?: string;
2341
+ };
1148
2342
  };
2343
+ };
2344
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2345
+ export type ListMarketplaceChartsData = {
2346
+ body?: never;
1149
2347
  path?: never;
1150
2348
  query?: never;
1151
- url: '/billing/credits';
2349
+ url: '/marketplace';
1152
2350
  };
1153
- export type RedeemCreditsErrors = {
2351
+ export type ListMarketplaceChartsErrors = {
1154
2352
  /**
1155
2353
  * Not authenticated
1156
2354
  */
1157
2355
  401: unknown;
1158
2356
  };
1159
- export type RedeemCreditsResponses = {
2357
+ export type ListMarketplaceChartsResponses = {
1160
2358
  /**
1161
- * Successfully created a new organization.
2359
+ * An array of chart listings in the marketplace.
1162
2360
  */
1163
- 200: unknown;
2361
+ 200: Array<MarketplaceListing>;
1164
2362
  };
1165
- export type ListChartsData = {
2363
+ export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
2364
+ export type GetMarketplaceChartFilesData = {
1166
2365
  body?: never;
1167
2366
  path: {
1168
2367
  /**
1169
- * Unique identifier of the cluster. UUID v4 string in canonical form
2368
+ * Name of the chart in the marketplace.
1170
2369
  */
1171
- cluster_id: string;
2370
+ chart_name: string;
2371
+ /**
2372
+ * Version channel pattern to match (e.g., "1.31.x-cfke.x" for latest 1.31 patch, "1.x.x-cfke.x" for latest 1.x minor).
2373
+ */
2374
+ version_channel: string;
1172
2375
  };
1173
2376
  query?: never;
1174
- url: '/clusters/{cluster_id}/charts';
2377
+ url: '/marketplace/{chart_name}/files/{version_channel}';
1175
2378
  };
1176
- export type ListChartsErrors = {
2379
+ export type GetMarketplaceChartFilesErrors = {
2380
+ /**
2381
+ * Chart not found or no version matches the channel
2382
+ */
2383
+ 404: unknown;
2384
+ };
2385
+ export type GetMarketplaceChartFilesResponses = {
2386
+ /**
2387
+ * Returns an object containing the chart files for the latest matching version.
2388
+ */
2389
+ 200: MarketplaceListingFiles;
2390
+ };
2391
+ export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
2392
+ export type ListInvitesData = {
2393
+ body?: never;
2394
+ path?: never;
2395
+ query?: never;
2396
+ url: '/invites';
2397
+ };
2398
+ export type ListInvitesErrors = {
1177
2399
  /**
1178
2400
  * Not authenticated
1179
2401
  */
1180
2402
  401: unknown;
1181
2403
  };
1182
- export type ListChartsResponses = {
2404
+ export type ListInvitesResponses = {
1183
2405
  /**
1184
- * An array of charts
2406
+ * An array of invites
1185
2407
  */
1186
- 200: Array<Chart>;
2408
+ 200: Array<Invite>;
1187
2409
  };
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
- };
2410
+ export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
2411
+ export type CreateInviteData = {
2412
+ body: InviteCreateInput;
2413
+ path?: never;
1197
2414
  query?: never;
1198
- url: '/clusters/{cluster_id}/charts';
2415
+ url: '/invites';
1199
2416
  };
1200
- export type CreateChartResponses = {
2417
+ export type CreateInviteResponses = {
1201
2418
  /**
1202
- * Successfully created. Returns created Chart ID.
2419
+ * Successfully created. Returns created invite details.
1203
2420
  */
1204
- 200: string;
2421
+ 200: Invite;
1205
2422
  };
1206
- export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1207
- export type DeleteChartData = {
2423
+ export type CreateInviteResponse = CreateInviteResponses[keyof CreateInviteResponses];
2424
+ export type GetInviteData = {
1208
2425
  body?: never;
1209
2426
  path: {
1210
2427
  /**
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.
2428
+ * Invitation code
1216
2429
  */
1217
- chart_name: string;
2430
+ code: string;
1218
2431
  };
1219
2432
  query?: never;
1220
- url: '/clusters/{cluster_id}/charts/{chart_name}';
2433
+ url: '/invites/{code}';
1221
2434
  };
1222
- export type DeleteChartResponses = {
2435
+ export type GetInviteResponses = {
1223
2436
  /**
1224
- * Successfully deleted.
2437
+ * The invitation code is valid. Returns the invited email and organization.
1225
2438
  */
1226
- 200: string;
2439
+ 200: {
2440
+ /**
2441
+ * Email address the invite was issued to.
2442
+ */
2443
+ email?: string;
2444
+ /**
2445
+ * Identifier of the organization the invite grants access to.
2446
+ */
2447
+ organization_id?: string;
2448
+ };
1227
2449
  };
1228
- export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1229
- export type GetChartData = {
2450
+ export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
2451
+ export type DeleteInviteData = {
1230
2452
  body?: never;
1231
2453
  path: {
1232
2454
  /**
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.
2455
+ * User email address
1238
2456
  */
1239
- chart_name: string;
2457
+ email: string;
1240
2458
  };
1241
2459
  query?: never;
1242
- url: '/clusters/{cluster_id}/charts/{chart_name}';
2460
+ url: '/invites/{email}';
1243
2461
  };
1244
- export type GetChartResponses = {
2462
+ export type DeleteInviteResponses = {
1245
2463
  /**
1246
- * Returns a single object containing chart details.
2464
+ * Successfully deleted.
1247
2465
  */
1248
- 200: Chart;
2466
+ 200: unknown;
1249
2467
  };
1250
- export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1251
- export type UpdateChartData = {
1252
- body: ChartUpdateInput;
2468
+ export type QueryClusterData = {
2469
+ body?: never;
1253
2470
  path: {
1254
2471
  /**
1255
2472
  * Unique identifier of the cluster. UUID v4 string in canonical form
1256
2473
  */
1257
2474
  cluster_id: string;
1258
- /**
1259
- * Chart deployment name as the unique identifier of the chart.
1260
- */
1261
- chart_name: string;
1262
2475
  };
1263
2476
  query?: never;
1264
- url: '/clusters/{cluster_id}/charts/{chart_name}';
2477
+ url: '/clusters/{cluster_id}/query';
1265
2478
  };
1266
- export type UpdateChartResponses = {
2479
+ export type QueryClusterErrors = {
1267
2480
  /**
1268
- * Successfully updated.
2481
+ * Not authenticated
1269
2482
  */
1270
- 200: string;
2483
+ 401: unknown;
2484
+ };
2485
+ export type QueryClusterResponses = {
2486
+ /**
2487
+ * Kubernetes API response
2488
+ */
2489
+ 200: unknown;
1271
2490
  };
1272
- export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1273
2491
  export type ListFleetsData = {
1274
2492
  body?: never;
1275
2493
  path: {
@@ -1310,6 +2528,10 @@ export type CreateFleetErrors = {
1310
2528
  * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
1311
2529
  */
1312
2530
  402: string;
2531
+ /**
2532
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2533
+ */
2534
+ 409: string;
1313
2535
  };
1314
2536
  export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
1315
2537
  export type CreateFleetResponses = {
@@ -1334,6 +2556,13 @@ export type DeleteFleetData = {
1334
2556
  query?: never;
1335
2557
  url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1336
2558
  };
2559
+ export type DeleteFleetErrors = {
2560
+ /**
2561
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2562
+ */
2563
+ 409: string;
2564
+ };
2565
+ export type DeleteFleetError = DeleteFleetErrors[keyof DeleteFleetErrors];
1337
2566
  export type DeleteFleetResponses = {
1338
2567
  /**
1339
2568
  * Successfully deleted.
@@ -1383,6 +2612,10 @@ export type UpdateFleetErrors = {
1383
2612
  * Organization must have a valid payment method configured to access this endpoint.
1384
2613
  */
1385
2614
  402: string;
2615
+ /**
2616
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2617
+ */
2618
+ 409: string;
1386
2619
  };
1387
2620
  export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
1388
2621
  export type UpdateFleetResponses = {
@@ -1392,7 +2625,7 @@ export type UpdateFleetResponses = {
1392
2625
  200: string;
1393
2626
  };
1394
2627
  export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
1395
- export type QueryClusterData = {
2628
+ export type ListChartsData = {
1396
2629
  body?: never;
1397
2630
  path: {
1398
2631
  /**
@@ -1401,528 +2634,516 @@ export type QueryClusterData = {
1401
2634
  cluster_id: string;
1402
2635
  };
1403
2636
  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';
2637
+ url: '/clusters/{cluster_id}/charts';
1423
2638
  };
1424
- export type ListClustersErrors = {
2639
+ export type ListChartsErrors = {
1425
2640
  /**
1426
2641
  * Not authenticated
1427
2642
  */
1428
2643
  401: unknown;
1429
2644
  };
1430
- export type ListClustersResponses = {
2645
+ export type ListChartsResponses = {
1431
2646
  /**
1432
- * An array of clusters
2647
+ * An array of charts
1433
2648
  */
1434
- 200: Array<Cluster>;
2649
+ 200: Array<Chart>;
1435
2650
  };
1436
- export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
1437
- export type CreateClusterData = {
1438
- body: ClusterCreateInput;
1439
- path?: never;
2651
+ export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
2652
+ export type CreateChartData = {
2653
+ body: ChartCreateInput;
2654
+ path: {
2655
+ /**
2656
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2657
+ */
2658
+ cluster_id: string;
2659
+ };
1440
2660
  query?: never;
1441
- url: '/clusters';
2661
+ url: '/clusters/{cluster_id}/charts';
1442
2662
  };
1443
- export type CreateClusterErrors = {
2663
+ export type CreateChartErrors = {
1444
2664
  /**
1445
- * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
2665
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
1446
2666
  */
1447
- 402: string;
2667
+ 409: string;
1448
2668
  };
1449
- export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
1450
- export type CreateClusterResponses = {
2669
+ export type CreateChartError = CreateChartErrors[keyof CreateChartErrors];
2670
+ export type CreateChartResponses = {
1451
2671
  /**
1452
- * Successfully created. Returns created Cluster ID.
2672
+ * Successfully created. Returns created Chart ID.
1453
2673
  */
1454
2674
  200: string;
1455
2675
  };
1456
- export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
1457
- export type DeleteClusterData = {
2676
+ export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
2677
+ export type DeleteChartData = {
1458
2678
  body?: never;
1459
2679
  path: {
1460
2680
  /**
1461
2681
  * Unique identifier of the cluster. UUID v4 string in canonical form
1462
2682
  */
1463
2683
  cluster_id: string;
2684
+ /**
2685
+ * Chart deployment name as the unique identifier of the chart.
2686
+ */
2687
+ chart_name: string;
1464
2688
  };
1465
2689
  query?: never;
1466
- url: '/clusters/{cluster_id}';
2690
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1467
2691
  };
1468
- export type DeleteClusterResponses = {
2692
+ export type DeleteChartErrors = {
2693
+ /**
2694
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2695
+ */
2696
+ 409: string;
2697
+ };
2698
+ export type DeleteChartError = DeleteChartErrors[keyof DeleteChartErrors];
2699
+ export type DeleteChartResponses = {
1469
2700
  /**
1470
2701
  * Successfully deleted.
1471
2702
  */
1472
2703
  200: string;
1473
2704
  };
1474
- export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
1475
- export type GetClusterData = {
2705
+ export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
2706
+ export type GetChartData = {
1476
2707
  body?: never;
1477
2708
  path: {
1478
2709
  /**
1479
2710
  * Unique identifier of the cluster. UUID v4 string in canonical form
1480
2711
  */
1481
2712
  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
2713
  /**
1497
- * Unique identifier of the cluster. UUID v4 string in canonical form
2714
+ * Chart deployment name as the unique identifier of the chart.
1498
2715
  */
1499
- cluster_id: string;
2716
+ chart_name: string;
1500
2717
  };
1501
2718
  query?: never;
1502
- url: '/clusters/{cluster_id}';
2719
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1503
2720
  };
1504
- export type UpdateClusterResponses = {
2721
+ export type GetChartResponses = {
1505
2722
  /**
1506
- * Successfully updated. Returns updated cluster details.
2723
+ * Returns a single object containing chart details.
1507
2724
  */
1508
- 200: Cluster;
2725
+ 200: Chart;
1509
2726
  };
1510
- export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
1511
- export type GetJoinInformationData = {
1512
- body?: never;
2727
+ export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
2728
+ export type UpdateChartData = {
2729
+ body: ChartUpdateInput;
1513
2730
  path: {
1514
2731
  /**
1515
2732
  * Unique identifier of the cluster. UUID v4 string in canonical form
1516
2733
  */
1517
2734
  cluster_id: string;
2735
+ /**
2736
+ * Chart deployment name as the unique identifier of the chart.
2737
+ */
2738
+ chart_name: string;
1518
2739
  };
1519
2740
  query?: never;
1520
- url: '/clusters/{cluster_id}/join_information';
2741
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1521
2742
  };
1522
- export type GetJoinInformationErrors = {
2743
+ export type UpdateChartErrors = {
1523
2744
  /**
1524
- * Not authenticated
2745
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
1525
2746
  */
1526
- 401: unknown;
2747
+ 409: string;
1527
2748
  };
1528
- export type GetJoinInformationResponses = {
2749
+ export type UpdateChartError = UpdateChartErrors[keyof UpdateChartErrors];
2750
+ export type UpdateChartResponses = {
1529
2751
  /**
1530
- * An object of cluster join information
2752
+ * Successfully updated.
1531
2753
  */
1532
- 200: Cluster;
2754
+ 200: string;
1533
2755
  };
1534
- export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
1535
- export type ListInvitesData = {
2756
+ export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
2757
+ export type ListClustersData = {
1536
2758
  body?: never;
1537
2759
  path?: never;
1538
2760
  query?: never;
1539
- url: '/invites';
2761
+ url: '/clusters';
1540
2762
  };
1541
- export type ListInvitesErrors = {
2763
+ export type ListClustersErrors = {
1542
2764
  /**
1543
2765
  * Not authenticated
1544
2766
  */
1545
2767
  401: unknown;
1546
2768
  };
1547
- export type ListInvitesResponses = {
2769
+ export type ListClustersResponses = {
1548
2770
  /**
1549
- * An array of invites
2771
+ * An array of clusters
1550
2772
  */
1551
- 200: Array<Invite>;
2773
+ 200: Array<Cluster>;
1552
2774
  };
1553
- export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
1554
- export type CreateInviteData = {
1555
- body: {
1556
- /**
1557
- * User email address
1558
- */
1559
- email?: string;
1560
- };
2775
+ export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
2776
+ export type CreateClusterData = {
2777
+ body: ClusterCreateInput;
1561
2778
  path?: never;
1562
2779
  query?: never;
1563
- url: '/invites';
2780
+ url: '/clusters';
1564
2781
  };
1565
- export type CreateInviteResponses = {
2782
+ export type CreateClusterErrors = {
1566
2783
  /**
1567
- * Successfully created. Returns created invite details.
2784
+ * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
1568
2785
  */
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}';
2786
+ 402: string;
1582
2787
  };
1583
- export type GetInviteResponses = {
2788
+ export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
2789
+ export type CreateClusterResponses = {
1584
2790
  /**
1585
- * Returns a single object containing invite details.
2791
+ * Successfully created. Returns created Cluster ID.
1586
2792
  */
1587
- 200: Invite;
2793
+ 200: string;
1588
2794
  };
1589
- export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
1590
- export type DeleteInviteData = {
2795
+ export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
2796
+ export type DeleteClusterData = {
1591
2797
  body?: never;
1592
2798
  path: {
1593
2799
  /**
1594
- * User email address
2800
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1595
2801
  */
1596
- email: string;
2802
+ cluster_id: string;
1597
2803
  };
1598
2804
  query?: never;
1599
- url: '/invites/{email}';
2805
+ url: '/clusters/{cluster_id}';
1600
2806
  };
1601
- export type DeleteInviteResponses = {
2807
+ export type DeleteClusterErrors = {
1602
2808
  /**
1603
- * Successfully deleted.
2809
+ * Cluster not found; it does not exist or has already been deleted.
1604
2810
  */
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 = {
2811
+ 404: unknown;
1614
2812
  /**
1615
- * Not authenticated
2813
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
1616
2814
  */
1617
- 401: unknown;
2815
+ 409: string;
2816
+ /**
2817
+ * Transient failure tearing down the cluster; retry the request.
2818
+ */
2819
+ 503: unknown;
1618
2820
  };
1619
- export type ListMarketplaceChartsResponses = {
2821
+ export type DeleteClusterError = DeleteClusterErrors[keyof DeleteClusterErrors];
2822
+ export type DeleteClusterResponses = {
1620
2823
  /**
1621
- * An array of chart listings in the marketplace.
2824
+ * Successfully deleted. The cluster has been torn down.
1622
2825
  */
1623
- 200: Array<MarketplaceListing>;
2826
+ 200: string;
1624
2827
  };
1625
- export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1626
- export type GetMarketplaceChartData = {
2828
+ export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
2829
+ export type GetClusterData = {
1627
2830
  body?: never;
1628
2831
  path: {
1629
2832
  /**
1630
- * Unique identifier of the chart listing in the marketplace.
2833
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1631
2834
  */
1632
- listing_id: string;
2835
+ cluster_id: string;
1633
2836
  };
1634
2837
  query?: never;
1635
- url: '/marketplace/{listing_id}';
2838
+ url: '/clusters/{cluster_id}';
1636
2839
  };
1637
- export type GetMarketplaceChartResponses = {
2840
+ export type GetClusterResponses = {
1638
2841
  /**
1639
- * Returns an object containing the chart listing details.
2842
+ * Returns a single object containing cluster details.
1640
2843
  */
1641
- 200: MarketplaceListing;
2844
+ 200: Cluster;
1642
2845
  };
1643
- export type GetMarketplaceChartResponse = GetMarketplaceChartResponses[keyof GetMarketplaceChartResponses];
1644
- export type GetOrganizationData = {
1645
- body?: never;
1646
- path?: never;
2846
+ export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
2847
+ export type UpdateClusterData = {
2848
+ body: ClusterUpdateInput;
2849
+ path: {
2850
+ /**
2851
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2852
+ */
2853
+ cluster_id: string;
2854
+ };
1647
2855
  query?: never;
1648
- url: '/organization';
2856
+ url: '/clusters/{cluster_id}';
1649
2857
  };
1650
- export type GetOrganizationResponses = {
2858
+ export type UpdateClusterErrors = {
1651
2859
  /**
1652
- * Returns a single object containing organization details.
2860
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
1653
2861
  */
1654
- 200: Organization;
2862
+ 409: string;
1655
2863
  };
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 = {
2864
+ export type UpdateClusterError = UpdateClusterErrors[keyof UpdateClusterErrors];
2865
+ export type UpdateClusterResponses = {
1664
2866
  /**
1665
- * Successfully created a new organization.
2867
+ * Successfully updated. Returns updated cluster details.
1666
2868
  */
1667
- 200: unknown;
2869
+ 200: Cluster;
1668
2870
  };
1669
- export type ListTokensData = {
2871
+ export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
2872
+ export type GetJoinInformationData = {
1670
2873
  body?: never;
1671
- path?: never;
2874
+ path: {
2875
+ /**
2876
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2877
+ */
2878
+ cluster_id: string;
2879
+ };
1672
2880
  query?: never;
1673
- url: '/tokens';
2881
+ url: '/clusters/{cluster_id}/join_information';
1674
2882
  };
1675
- export type ListTokensErrors = {
2883
+ export type GetJoinInformationErrors = {
1676
2884
  /**
1677
2885
  * Not authenticated
1678
2886
  */
1679
2887
  401: unknown;
2888
+ /**
2889
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2890
+ */
2891
+ 409: string;
2892
+ /**
2893
+ * The cluster runs on Cloudfleet data plane v2 and the calling client did not declare the dataplane-v2 capability, so it cannot provision a node for it. Upgrade the Cloudfleet CLI or Terraform provider.
2894
+ */
2895
+ 426: string;
1680
2896
  };
1681
- export type ListTokensResponses = {
2897
+ export type GetJoinInformationError = GetJoinInformationErrors[keyof GetJoinInformationErrors];
2898
+ export type GetJoinInformationResponses = {
1682
2899
  /**
1683
- * Returns a list of access token details with masked secrets.
2900
+ * An object of cluster join information
1684
2901
  */
1685
- 200: Array<Token>;
2902
+ 200: ClusterJoinInformation;
1686
2903
  };
1687
- export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1688
- export type CreateTokenData = {
1689
- body: TokenCreateInput;
2904
+ export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2905
+ export type GetUsageData = {
2906
+ body?: never;
1690
2907
  path?: never;
1691
- query?: never;
1692
- url: '/tokens';
2908
+ query?: {
2909
+ /**
2910
+ * Time granularity for usage aggregation - hourly (Past 48 hours aggregated by hour), daily (Past 30 days aggregated by day), monthly (Past 12 months aggregated by month)
2911
+ */
2912
+ granularity?: 'hourly' | 'daily' | 'monthly';
2913
+ };
2914
+ url: '/billing/usage';
1693
2915
  };
1694
- export type CreateTokenErrors = {
2916
+ export type GetUsageErrors = {
1695
2917
  /**
1696
2918
  * Not authenticated
1697
2919
  */
1698
2920
  401: unknown;
1699
2921
  };
1700
- export type CreateTokenResponses = {
2922
+ export type GetUsageResponses = {
1701
2923
  /**
1702
- * Successfully created. Returns created token details with unmasked/raw secret.
2924
+ * Usage data with facets for filtering
1703
2925
  */
1704
- 200: Token;
2926
+ 200: UsageResponse;
1705
2927
  };
1706
- export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1707
- export type DeleteTokenData = {
2928
+ export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
2929
+ export type GetPaymentMethodSecretData = {
1708
2930
  body?: never;
1709
- path: {
1710
- /**
1711
- * Generated unique identifier of the access token.
1712
- */
1713
- token_id: string;
1714
- };
2931
+ path?: never;
1715
2932
  query?: never;
1716
- url: '/tokens/{token_id}';
2933
+ url: '/billing/payment-method';
1717
2934
  };
1718
- export type DeleteTokenResponses = {
2935
+ export type GetPaymentMethodSecretResponses = {
1719
2936
  /**
1720
- * Successfully deleted.
2937
+ * 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.
2938
+ *
1721
2939
  */
1722
- 200: unknown;
1723
- };
1724
- export type GetTokenData = {
1725
- body?: never;
1726
- path: {
2940
+ 200: {
1727
2941
  /**
1728
- * Generated unique identifier of the access token.
2942
+ * The client secret.
1729
2943
  */
1730
- token_id: string;
2944
+ id?: string;
1731
2945
  };
2946
+ };
2947
+ export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
2948
+ export type ListPaymentMethodsData = {
2949
+ body?: never;
2950
+ path?: never;
1732
2951
  query?: never;
1733
- url: '/tokens/{token_id}';
2952
+ url: '/billing/payment-methods';
1734
2953
  };
1735
- export type GetTokenErrors = {
2954
+ export type ListPaymentMethodsErrors = {
1736
2955
  /**
1737
2956
  * Not authenticated
1738
2957
  */
1739
2958
  401: unknown;
1740
2959
  };
1741
- export type GetTokenResponses = {
2960
+ export type ListPaymentMethodsResponses = {
1742
2961
  /**
1743
- * Returns access token details with masked secret.
2962
+ * An array of payment methods.
1744
2963
  */
1745
- 200: Token;
2964
+ 200: Array<PaymentMethod>;
1746
2965
  };
1747
- export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1748
- export type UpdateTokenData = {
1749
- body: TokenUpdateInput;
2966
+ export type ListPaymentMethodsResponse = ListPaymentMethodsResponses[keyof ListPaymentMethodsResponses];
2967
+ export type SetDefaultPaymentMethodData = {
2968
+ body?: never;
1750
2969
  path: {
1751
2970
  /**
1752
- * Generated unique identifier of the access token.
2971
+ * Stripe payment method identifier.
1753
2972
  */
1754
- token_id: string;
2973
+ paymentMethodId: string;
1755
2974
  };
1756
2975
  query?: never;
1757
- url: '/tokens/{token_id}';
2976
+ url: '/billing/payment-methods/{paymentMethodId}/default';
1758
2977
  };
1759
- export type UpdateTokenErrors = {
2978
+ export type SetDefaultPaymentMethodErrors = {
2979
+ /**
2980
+ * The bank transfer payment method cannot be set as the default.
2981
+ */
2982
+ 400: unknown;
1760
2983
  /**
1761
2984
  * Not authenticated
1762
2985
  */
1763
2986
  401: unknown;
2987
+ /**
2988
+ * Payment method not found.
2989
+ */
2990
+ 404: unknown;
1764
2991
  };
1765
- export type UpdateTokenResponses = {
2992
+ export type SetDefaultPaymentMethodResponses = {
1766
2993
  /**
1767
- * Successfully updated. Returns updated token details with masked secret.
2994
+ * Default payment method updated.
1768
2995
  */
1769
- 200: Token;
2996
+ 204: void;
1770
2997
  };
1771
- export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1772
- export type RegenerateTokenData = {
2998
+ export type SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponses[keyof SetDefaultPaymentMethodResponses];
2999
+ export type DeletePaymentMethodData = {
1773
3000
  body?: never;
1774
3001
  path: {
1775
3002
  /**
1776
- * Generated unique identifier of the access token.
3003
+ * Stripe payment method identifier.
1777
3004
  */
1778
- token_id: string;
3005
+ paymentMethodId: string;
1779
3006
  };
1780
3007
  query?: never;
1781
- url: '/tokens/{token_id}/secret';
3008
+ url: '/billing/payment-methods/{paymentMethodId}';
1782
3009
  };
1783
- export type RegenerateTokenErrors = {
3010
+ export type DeletePaymentMethodErrors = {
3011
+ /**
3012
+ * The bank transfer payment method cannot be removed.
3013
+ */
3014
+ 400: unknown;
1784
3015
  /**
1785
3016
  * Not authenticated
1786
3017
  */
1787
3018
  401: unknown;
1788
- };
1789
- export type RegenerateTokenResponses = {
1790
3019
  /**
1791
- * Successfully updated. Returns updated token details with unmasked / raw secret.
3020
+ * Payment method not found.
1792
3021
  */
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}';
3022
+ 404: unknown;
3023
+ /**
3024
+ * Cannot delete the only remaining payment method.
3025
+ */
3026
+ 409: unknown;
1806
3027
  };
1807
- export type ListUserOrganizationsResponses = {
3028
+ export type DeletePaymentMethodResponses = {
1808
3029
  /**
1809
- * An array of organizations the user belongs to.
3030
+ * Payment method deleted.
1810
3031
  */
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
- }>;
3032
+ 204: void;
1821
3033
  };
1822
- export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1823
- export type ListUsersData = {
3034
+ export type DeletePaymentMethodResponse = DeletePaymentMethodResponses[keyof DeletePaymentMethodResponses];
3035
+ export type ListInvoicesData = {
1824
3036
  body?: never;
1825
3037
  path?: never;
1826
3038
  query?: never;
1827
- url: '/users';
3039
+ url: '/billing/invoices';
1828
3040
  };
1829
- export type ListUsersErrors = {
3041
+ export type ListInvoicesErrors = {
1830
3042
  /**
1831
3043
  * Not authenticated
1832
3044
  */
1833
3045
  401: unknown;
1834
3046
  };
1835
- export type ListUsersResponses = {
3047
+ export type ListInvoicesResponses = {
1836
3048
  /**
1837
- * An array of users
3049
+ * An array of usage records.
1838
3050
  */
1839
- 200: Array<User>;
3051
+ 200: Array<Invoice>;
1840
3052
  };
1841
- export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1842
- export type CreateUserData = {
1843
- body: UserCreateInput;
3053
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
3054
+ export type PayOpenInvoicesData = {
3055
+ body?: never;
1844
3056
  path?: never;
1845
3057
  query?: never;
1846
- url: '/users';
3058
+ url: '/billing/invoices/pay';
1847
3059
  };
1848
- export type CreateUserResponses = {
3060
+ export type PayOpenInvoicesErrors = {
1849
3061
  /**
1850
- * Successfully created. Returns created user details.
3062
+ * The organization has no payment method that can be charged.
1851
3063
  */
1852
- 200: User;
3064
+ 400: unknown;
3065
+ /**
3066
+ * Not authenticated
3067
+ */
3068
+ 401: unknown;
3069
+ /**
3070
+ * Too many payment attempts for this organization.
3071
+ */
3072
+ 429: unknown;
1853
3073
  };
1854
- export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1855
- export type DeleteUserData = {
3074
+ export type PayOpenInvoicesResponses = {
3075
+ /**
3076
+ * The outcome of the attempt.
3077
+ */
3078
+ 200: InvoicePaymentResult;
3079
+ };
3080
+ export type PayOpenInvoicesResponse = PayOpenInvoicesResponses[keyof PayOpenInvoicesResponses];
3081
+ export type GetContactData = {
1856
3082
  body?: never;
1857
- path: {
1858
- /**
1859
- * Unique user identifier. UUID v4 string in canonical form
1860
- */
1861
- user_id: string;
1862
- };
3083
+ path?: never;
1863
3084
  query?: never;
1864
- url: '/users/{user_id}';
3085
+ url: '/billing/contact';
1865
3086
  };
1866
- export type DeleteUserErrors = {
1867
- /**
1868
- * Deleting own user is not allowed. Delete your organization instead.
1869
- */
1870
- 400: unknown;
3087
+ export type GetContactResponses = {
1871
3088
  /**
1872
- * Not authenticated
3089
+ * Returns a single object containing organization contact and billing address details.
1873
3090
  */
1874
- 401: unknown;
3091
+ 200: BillingContact;
1875
3092
  };
1876
- export type DeleteUserResponses = {
3093
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
3094
+ export type UpdateContactData = {
3095
+ body: BillingContact;
3096
+ path?: never;
3097
+ query?: never;
3098
+ url: '/billing/contact';
3099
+ };
3100
+ export type UpdateContactResponses = {
1877
3101
  /**
1878
- * User profile information
3102
+ * Successfully updated. Returns updated organization details.
1879
3103
  */
1880
- 200: User;
3104
+ 200: BillingContact;
1881
3105
  };
1882
- export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1883
- export type GetUserData = {
3106
+ export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
3107
+ export type GetCreditsData = {
1884
3108
  body?: never;
1885
- path: {
1886
- /**
1887
- * Unique user identifier. UUID v4 string in canonical form
1888
- */
1889
- user_id: string;
1890
- };
3109
+ path?: never;
1891
3110
  query?: never;
1892
- url: '/users/{user_id}';
3111
+ url: '/billing/credits';
1893
3112
  };
1894
- export type GetUserErrors = {
3113
+ export type GetCreditsErrors = {
1895
3114
  /**
1896
3115
  * Not authenticated
1897
3116
  */
1898
3117
  401: unknown;
1899
3118
  };
1900
- export type GetUserResponses = {
3119
+ export type GetCreditsResponses = {
1901
3120
  /**
1902
- * User profile information
3121
+ * An array of the applied promotional credits records.
1903
3122
  */
1904
- 200: User;
3123
+ 200: Array<BillingCredits>;
1905
3124
  };
1906
- export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
1907
- export type UpdateUserData = {
1908
- body: UserUpdateInput;
1909
- path: {
3125
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
3126
+ export type RedeemCreditsData = {
3127
+ body: {
1910
3128
  /**
1911
- * Unique user identifier. UUID v4 string in canonical form
3129
+ * Promotional code to redeem
1912
3130
  */
1913
- user_id: string;
3131
+ code?: string;
1914
3132
  };
3133
+ path?: never;
1915
3134
  query?: never;
1916
- url: '/users/{user_id}';
3135
+ url: '/billing/credits';
1917
3136
  };
1918
- export type UpdateUserResponses = {
3137
+ export type RedeemCreditsErrors = {
1919
3138
  /**
1920
- * Successfully created. Returns created user details.
3139
+ * Not authenticated
1921
3140
  */
1922
- 200: User;
3141
+ 401: unknown;
1923
3142
  };
1924
- export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1925
- export type ClientOptions = {
1926
- baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
3143
+ export type RedeemCreditsResponses = {
3144
+ /**
3145
+ * Successfully created a new organization.
3146
+ */
3147
+ 200: unknown;
1927
3148
  };
1928
3149
  //# sourceMappingURL=types.gen.d.ts.map