@cloudfleet/sdk 0.0.1-b5706bb → 0.0.1-b687cb9

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 (88) hide show
  1. package/README.md +26 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +1199 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1215 -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 +13 -0
  23. package/dist/client.gen.d.ts.map +1 -0
  24. package/dist/client.gen.js +4 -0
  25. package/dist/client.gen.js.map +1 -0
  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/index.d.ts +3 -0
  59. package/dist/index.d.ts.map +1 -1
  60. package/dist/index.js +3 -0
  61. package/dist/index.js.map +1 -1
  62. package/dist/schemas.gen.d.ts +1797 -1082
  63. package/dist/schemas.gen.d.ts.map +1 -1
  64. package/dist/schemas.gen.js +3362 -1359
  65. package/dist/schemas.gen.js.map +1 -1
  66. package/dist/sdk.gen.d.ts +352 -198
  67. package/dist/sdk.gen.d.ts.map +1 -1
  68. package/dist/sdk.gen.js +468 -296
  69. package/dist/sdk.gen.js.map +1 -1
  70. package/dist/services/kubernetes/api.d.ts +196 -0
  71. package/dist/services/kubernetes/api.d.ts.map +1 -0
  72. package/dist/services/kubernetes/api.js +140 -0
  73. package/dist/services/kubernetes/api.js.map +1 -0
  74. package/dist/services/kubernetes/index.d.ts +44 -0
  75. package/dist/services/kubernetes/index.d.ts.map +1 -0
  76. package/dist/services/kubernetes/index.js +68 -0
  77. package/dist/services/kubernetes/index.js.map +1 -0
  78. package/dist/services/kubernetes/types.d.ts +1335 -0
  79. package/dist/services/kubernetes/types.d.ts.map +1 -0
  80. package/dist/services/kubernetes/types.js +2 -0
  81. package/dist/services/kubernetes/types.js.map +1 -0
  82. package/dist/types.gen.d.ts +2006 -1252
  83. package/dist/types.gen.d.ts.map +1 -1
  84. package/dist/zod.gen.d.ts +3995 -2818
  85. package/dist/zod.gen.d.ts.map +1 -1
  86. package/dist/zod.gen.js +1725 -945
  87. package/dist/zod.gen.js.map +1 -1
  88. package/package.json +30 -7
@@ -1,20 +1,254 @@
1
- export type ClusterCreateInput = {
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
3
+ };
4
+ export type BasicPriceConsentInput = {
2
5
  /**
3
- * Name of the cluster.
6
+ * The administrator's decision on the new Basic price. `accepted` continues to paid billing when the signup credit runs out; `rejected` opts out (clusters are suspended, never charged). A `rejected` org can later be flipped back to `accepted`.
7
+ */
8
+ decision: 'accepted' | 'rejected';
9
+ };
10
+ export type BasicPriceConsent = {
11
+ /**
12
+ * Consent status for the new Basic price. `not_applicable` when the organization is not in scope for the migration. `pending` when the organization must opt in but no admin has decided yet. `accepted` / `rejected` reflect the recorded decision.
13
+ */
14
+ status: 'not_applicable' | 'pending' | 'accepted' | 'rejected';
15
+ /**
16
+ * When the current decision was recorded. Absent while `not_applicable` or `pending`.
17
+ */
18
+ decided_at?: string;
19
+ /**
20
+ * User id of the administrator who recorded the current decision. Absent while `not_applicable` or `pending`.
21
+ */
22
+ decided_by?: string;
23
+ };
24
+ export type BillingContact = {
25
+ /**
26
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
27
+ */
28
+ type: 'business' | 'personal';
29
+ /**
30
+ * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
31
+ */
32
+ company?: string;
33
+ /**
34
+ * Street address, P.O. box, c/o
35
+ */
36
+ address1?: string;
37
+ /**
38
+ * Apartment, suite, unit, building, floor, etc.
39
+ */
40
+ address2?: string;
41
+ /**
42
+ * Postal code as a string.
43
+ */
44
+ postalCode?: string;
45
+ /**
46
+ * City or town name.
47
+ */
48
+ city?: string;
49
+ /**
50
+ * State, province, or region name.
51
+ */
52
+ state?: string;
53
+ /**
54
+ * Country as a ISO 3166-1 alpha-2 country code.
55
+ */
56
+ country?: string;
57
+ /**
58
+ * Phone number as a string.
59
+ */
60
+ phone?: string;
61
+ /**
62
+ * Email address used for billing as a string.
63
+ */
64
+ email: string;
65
+ /**
66
+ * Name of the billing contact person.
67
+ */
68
+ individual_name: string;
69
+ /**
70
+ * Tax ID of the organization.
71
+ */
72
+ tax_id?: string;
73
+ /**
74
+ * Type of the tax ID.
75
+ */
76
+ 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' | '';
77
+ };
78
+ export type BillingCredits = {
79
+ /**
80
+ * Generated unique identifier of the promotional code.
81
+ */
82
+ id?: string;
83
+ /**
84
+ * Type of the promotional code.
85
+ */
86
+ type: 'credit' | 'discount';
87
+ /**
88
+ * Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.
89
+ */
90
+ date_start: string;
91
+ /**
92
+ * Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.
93
+ */
94
+ date_end?: string;
95
+ /**
96
+ * Promotional code used by the customer.
97
+ */
98
+ code: string;
99
+ /**
100
+ * Description of the promotional code.
101
+ */
102
+ description?: string;
103
+ /**
104
+ * Total value of the promotional code.
105
+ */
106
+ value_total: number;
107
+ /**
108
+ * Remaining value of the promotional code.
109
+ */
110
+ value_remaining?: number;
111
+ };
112
+ export type ChartCreateInput = {
113
+ /**
114
+ * Values to be used in the chart encoded as a JSON string.
115
+ */
116
+ values: string;
117
+ /**
118
+ * Desired version range or channel for the chart.
119
+ */
120
+ version_channel: string;
121
+ /**
122
+ * Unique identifier of the chart deployment aka name of the helm release.
4
123
  */
5
124
  name: string;
6
125
  /**
7
- * Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.
126
+ * Namespace of the chart deployment
127
+ */
128
+ namespace: string;
129
+ /**
130
+ * Name of the chart listing
131
+ */
132
+ chart: string;
133
+ };
134
+ export type Chart = {
135
+ /**
136
+ * Values to be used in the chart encoded as a JSON string.
137
+ */
138
+ values: string;
139
+ /**
140
+ * Desired version range or channel for the chart.
141
+ */
142
+ version_channel: string;
143
+ /**
144
+ * Unique identifier of the chart deployment aka name of the helm release.
145
+ */
146
+ name: string;
147
+ /**
148
+ * Namespace of the chart deployment
149
+ */
150
+ namespace: string;
151
+ /**
152
+ * Name of the chart listing
153
+ */
154
+ chart: string;
155
+ /**
156
+ * Status of the chart deployment (Flux HelmRelease Ready condition reason, e.g. InstallSucceeded, UpgradeFailed, Progressing).
8
157
  */
9
- region?: 'staging' | 'northamerica-central-1';
158
+ status: string;
159
+ /**
160
+ * Current version of the chart deployment.
161
+ */
162
+ version_current: string;
163
+ /**
164
+ * Creation date and time of the chart deployment.
165
+ */
166
+ created_at: string;
167
+ /**
168
+ * Last update date and time of the chart deployment.
169
+ */
170
+ updated_at: string;
171
+ /**
172
+ * Indicates if the chart deployment is ready to be used.
173
+ */
174
+ ready: boolean;
175
+ };
176
+ export type ChartUpdateInput = {
177
+ /**
178
+ * Values to be used in the chart encoded as a JSON string.
179
+ */
180
+ values: string;
181
+ /**
182
+ * Desired version range or channel for the chart.
183
+ */
184
+ version_channel: string;
185
+ };
186
+ /**
187
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
188
+ */
189
+ export type ClusterCreateInput = {
190
+ /**
191
+ * Name of the cluster.
192
+ */
193
+ name: string;
10
194
  /**
11
195
  * Tier of the cluster.
12
196
  */
13
- tier: 'basic' | 'pro';
197
+ tier?: 'basic' | 'pro' | 'enterprise';
14
198
  /**
15
199
  * Version of the kubernetes cluster.
16
200
  */
17
201
  version_channel?: string;
202
+ /**
203
+ * Release channel for the cluster's control plane.
204
+ */
205
+ release_channel?: 'rapid' | 'stable' | 'extended';
206
+ /**
207
+ * Cluster feature toggles.
208
+ */
209
+ features?: {
210
+ /**
211
+ * GPU sharing strategy.
212
+ */
213
+ gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
214
+ /**
215
+ * Maximum number of pods that may share a single GPU.
216
+ */
217
+ gpu_max_shared_clients_per_gpu?: number;
218
+ /**
219
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
220
+ */
221
+ cilium_socket_lb_host_namespace_only?: boolean;
222
+ };
223
+ /**
224
+ * Cloudfleet control plane region. This field can not be updated after creation.
225
+ */
226
+ region: string;
227
+ /**
228
+ * Cluster networking configuration. Immutable after creation.
229
+ */
230
+ networking?: {
231
+ /**
232
+ * CIDR block for pod IPs.
233
+ */
234
+ pod_cidr?: string;
235
+ /**
236
+ * CIDR block for service IPs.
237
+ */
238
+ service_cidr?: string;
239
+ /**
240
+ * Enable IPv4+IPv6 dual-stack networking.
241
+ */
242
+ dual_stack?: boolean;
243
+ /**
244
+ * IPv6 pod CIDR. Requires dual_stack.
245
+ */
246
+ pod_cidr_v6?: string;
247
+ /**
248
+ * IPv6 service CIDR. Requires dual_stack.
249
+ */
250
+ service_cidr_v6?: string;
251
+ };
18
252
  };
19
253
  export type ClusterJoinInformation = {
20
254
  /**
@@ -25,10 +259,22 @@ export type ClusterJoinInformation = {
25
259
  * Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.
26
260
  */
27
261
  endpoint: string;
262
+ /**
263
+ * Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.
264
+ */
265
+ cluster_dns: string;
266
+ /**
267
+ * Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.
268
+ */
269
+ pod_cidr: string;
28
270
  /**
29
271
  * Authentication key for the cluster.
30
272
  */
31
273
  auth_key: string;
274
+ /**
275
+ * 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.
276
+ */
277
+ login_server: string;
32
278
  /**
33
279
  * Bootstrap token for the cluster.
34
280
  */
@@ -49,6 +295,10 @@ export type ClusterJoinInformation = {
49
295
  * Containerd version of the cluster.
50
296
  */
51
297
  containerd: string;
298
+ /**
299
+ * NVIDIA driver version of the cluster.
300
+ */
301
+ nvidia_driver: string;
52
302
  };
53
303
  /**
54
304
  * OIDC Information for hosts to access to third party API's.
@@ -68,32 +318,82 @@ export type ClusterJoinInformation = {
68
318
  gcp_workload_identity_provider: string;
69
319
  };
70
320
  };
321
+ /**
322
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
323
+ */
71
324
  export type Cluster = {
72
325
  /**
73
326
  * Name of the cluster.
74
327
  */
75
328
  name: string;
76
- /**
77
- * Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.
78
- */
79
- region?: 'staging' | 'northamerica-central-1';
80
329
  /**
81
330
  * Tier of the cluster.
82
331
  */
83
- tier: 'basic' | 'pro';
332
+ tier: 'basic' | 'pro' | 'enterprise';
84
333
  /**
85
334
  * Version of the kubernetes cluster.
86
335
  */
87
- version_channel?: string;
336
+ version_channel: string;
337
+ /**
338
+ * Release channel for the cluster's control plane.
339
+ */
340
+ release_channel: 'rapid' | 'stable' | 'extended';
341
+ /**
342
+ * Cluster feature toggles.
343
+ */
344
+ features: {
345
+ /**
346
+ * GPU sharing strategy.
347
+ */
348
+ gpu_sharing_strategy: 'none' | 'mps' | 'time_slicing';
349
+ /**
350
+ * Maximum number of pods that may share a single GPU.
351
+ */
352
+ gpu_max_shared_clients_per_gpu: number;
353
+ /**
354
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
355
+ */
356
+ cilium_socket_lb_host_namespace_only: boolean;
357
+ };
358
+ /**
359
+ * Cloudfleet control plane region. This field can not be updated after creation.
360
+ */
361
+ region: string;
362
+ /**
363
+ * Cluster networking configuration. Immutable after creation.
364
+ */
365
+ networking: {
366
+ /**
367
+ * CIDR block for pod IPs.
368
+ */
369
+ pod_cidr: string;
370
+ /**
371
+ * CIDR block for service IPs.
372
+ */
373
+ service_cidr: string;
374
+ /**
375
+ * Enable IPv4+IPv6 dual-stack networking.
376
+ */
377
+ dual_stack: boolean;
378
+ /**
379
+ * IPv6 pod CIDR. Requires dual_stack.
380
+ */
381
+ pod_cidr_v6: string;
382
+ /**
383
+ * IPv6 service CIDR. Requires dual_stack.
384
+ */
385
+ service_cidr_v6: string;
386
+ };
88
387
  /**
89
388
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
90
389
  */
91
390
  id: string;
92
391
  /**
93
- * Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.
392
+ * Status of the cluster.
94
393
  */
95
- status: 'active' | 'deleted' | 'creating' | 'deployed' | 'failed' | 'updating';
394
+ status: 'creating' | 'deployed' | 'updating' | 'disabled';
96
395
  endpoint?: string | '';
396
+ endpoint_public?: string | '';
97
397
  /**
98
398
  * Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.
99
399
  */
@@ -113,952 +413,1075 @@ export type Cluster = {
113
413
  /**
114
414
  * Indicates if the cluster is ready to be used.
115
415
  */
116
- ready?: boolean;
416
+ ready: boolean;
117
417
  };
418
+ /**
419
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
420
+ */
118
421
  export type ClusterUpdateInput = {
119
422
  /**
120
423
  * Name of the cluster.
121
424
  */
122
- name?: string;
425
+ name: string;
426
+ /**
427
+ * Tier of the cluster.
428
+ */
429
+ tier?: 'basic' | 'pro' | 'enterprise';
123
430
  /**
124
431
  * Version of the kubernetes cluster.
125
432
  */
126
433
  version_channel?: string;
434
+ /**
435
+ * Release channel for the cluster's control plane.
436
+ */
437
+ release_channel?: 'rapid' | 'stable' | 'extended';
438
+ /**
439
+ * Cluster feature toggles.
440
+ */
441
+ features?: {
442
+ /**
443
+ * GPU sharing strategy.
444
+ */
445
+ gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
446
+ /**
447
+ * Maximum number of pods that may share a single GPU.
448
+ */
449
+ gpu_max_shared_clients_per_gpu?: number;
450
+ /**
451
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
452
+ */
453
+ cilium_socket_lb_host_namespace_only?: boolean;
454
+ };
127
455
  };
456
+ /**
457
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
458
+ */
128
459
  export type FleetCreateInput = {
129
460
  /**
130
461
  * Limits define a set of bounds for provisioning capacity.
131
462
  */
132
463
  limits?: {
133
464
  /**
134
- * CPU limit in cores.
465
+ * CPU limit in cores. Maximum 100,000.
135
466
  */
136
- cpu: number;
467
+ cpu?: number;
137
468
  };
138
469
  gcp?: {
139
- enabled?: boolean;
470
+ enabled: boolean;
140
471
  /**
141
- * Project GCP Project id to deploy instances into
472
+ * 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.
142
473
  */
143
- project: string;
474
+ project?: string;
144
475
  };
145
476
  hetzner?: {
146
- enabled?: boolean;
147
- apiKey?: string;
148
- } | {
477
+ enabled: boolean;
478
+ /**
479
+ * 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.
480
+ */
149
481
  apiKey?: string;
150
- enabled?: boolean;
151
482
  };
152
483
  aws?: {
153
- enabled?: boolean;
484
+ enabled: boolean;
154
485
  /**
155
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
486
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
156
487
  */
157
- controllerRoleArn: string;
488
+ controllerRoleArn?: string;
158
489
  };
159
490
  /**
160
- * Unique identifier of the kubernetes fleet.
491
+ * 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.
161
492
  */
162
- id: string;
493
+ constraints?: {
494
+ /**
495
+ * Allowed values for `karpenter.sh/capacity-type`.
496
+ */
497
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
498
+ /**
499
+ * Allowed values for `kubernetes.io/arch`.
500
+ */
501
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
502
+ /**
503
+ * Allowed values for `cfke.io/instance-family`.
504
+ */
505
+ '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'>;
506
+ /**
507
+ * Allowed values for `topology.kubernetes.io/region`.
508
+ */
509
+ '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'>;
510
+ };
511
+ /**
512
+ * 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`).
513
+ */
514
+ scalingProfile?: 'aggressive' | 'conservative';
163
515
  /**
164
- * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
516
+ * Unique identifier of the kubernetes fleet.
165
517
  */
166
- type: 'managed' | 'connected';
518
+ id: string;
167
519
  };
520
+ /**
521
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
522
+ */
168
523
  export type Fleet = {
169
524
  /**
170
525
  * Limits define a set of bounds for provisioning capacity.
171
526
  */
172
527
  limits?: {
173
528
  /**
174
- * CPU limit in cores.
529
+ * CPU limit in cores. Maximum 100,000.
175
530
  */
176
- cpu: number;
531
+ cpu?: number;
177
532
  };
178
533
  gcp?: {
179
- enabled?: boolean;
534
+ enabled: boolean;
180
535
  /**
181
- * Project GCP Project id to deploy instances into
536
+ * 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.
182
537
  */
183
- project: string;
538
+ project?: string;
184
539
  };
185
540
  hetzner?: {
186
- enabled?: boolean;
187
- apiKey?: string;
188
- } | {
541
+ enabled: boolean;
542
+ /**
543
+ * Redacted Hetzner API token. Returned as 64 asterisks when a token is configured; omitted otherwise. The real value is never echoed by the API.
544
+ */
189
545
  apiKey?: string;
190
- enabled?: boolean;
191
546
  };
192
547
  aws?: {
193
- enabled?: boolean;
548
+ enabled: boolean;
549
+ /**
550
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
551
+ */
552
+ controllerRoleArn?: string;
553
+ };
554
+ /**
555
+ * 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.
556
+ */
557
+ constraints: {
558
+ /**
559
+ * Allowed values for `karpenter.sh/capacity-type`.
560
+ */
561
+ 'karpenter.sh/capacity-type': Array<'on-demand' | 'spot'>;
194
562
  /**
195
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
563
+ * Allowed values for `kubernetes.io/arch`.
196
564
  */
197
- controllerRoleArn: string;
565
+ 'kubernetes.io/arch': Array<'amd64' | 'arm64'>;
566
+ /**
567
+ * Allowed values for `cfke.io/instance-family`.
568
+ */
569
+ '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'>;
570
+ /**
571
+ * Allowed values for `topology.kubernetes.io/region`.
572
+ */
573
+ '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'>;
198
574
  };
575
+ /**
576
+ * 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`).
577
+ */
578
+ scalingProfile: 'aggressive' | 'conservative';
199
579
  /**
200
580
  * Unique identifier of the kubernetes fleet.
201
581
  */
202
582
  id: string;
203
583
  /**
204
- * Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.
584
+ * Indicates whether the fleet configuration is healthy.
585
+ */
586
+ ready: boolean;
587
+ /**
588
+ * Human-readable reason the fleet is not ready. Present only when `ready` is false.
205
589
  */
206
- type: 'managed' | 'connected';
590
+ status_message?: string;
591
+ /**
592
+ * Creation date and time of the fleet.
593
+ */
594
+ created_at: string;
595
+ /**
596
+ * Date and time the fleet was last updated.
597
+ */
598
+ updated_at: string;
207
599
  };
600
+ /**
601
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
602
+ */
208
603
  export type FleetUpdateInput = {
209
604
  /**
210
605
  * Limits define a set of bounds for provisioning capacity.
211
606
  */
212
607
  limits?: {
213
608
  /**
214
- * CPU limit in cores.
609
+ * CPU limit in cores. Maximum 100,000.
215
610
  */
216
- cpu: number;
611
+ cpu?: number;
217
612
  };
218
613
  gcp?: {
219
- enabled?: boolean;
614
+ enabled: boolean;
220
615
  /**
221
- * Project GCP Project id to deploy instances into
616
+ * 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.
222
617
  */
223
- project: string;
618
+ project?: string;
224
619
  };
225
620
  hetzner?: {
226
- enabled?: boolean;
227
- apiKey?: string;
228
- } | {
621
+ enabled: boolean;
622
+ /**
623
+ * 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.
624
+ */
229
625
  apiKey?: string;
230
- enabled?: boolean;
231
626
  };
232
627
  aws?: {
233
- enabled?: boolean;
628
+ enabled: boolean;
234
629
  /**
235
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
630
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
236
631
  */
237
- controllerRoleArn: string;
632
+ controllerRoleArn?: string;
238
633
  };
239
- };
240
- export type InfrastructureFilter = {
241
634
  /**
242
- * Version of the infrastructure filter definition. Currently only version 1 is supported.
635
+ * 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.
243
636
  */
244
- version?: 1;
637
+ constraints?: {
638
+ /**
639
+ * Allowed values for `karpenter.sh/capacity-type`.
640
+ */
641
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
642
+ /**
643
+ * Allowed values for `kubernetes.io/arch`.
644
+ */
645
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
646
+ /**
647
+ * Allowed values for `cfke.io/instance-family`.
648
+ */
649
+ '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'>;
650
+ /**
651
+ * Allowed values for `topology.kubernetes.io/region`.
652
+ */
653
+ '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'>;
654
+ };
245
655
  /**
246
- * Limit selection of cloud providers to this list. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
656
+ * 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`).
247
657
  */
248
- provider?: Array<string>;
658
+ scalingProfile?: 'aggressive' | 'conservative';
659
+ };
660
+ export type InviteCreateInput = {
249
661
  /**
250
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
662
+ * Email address of the user to invite.
251
663
  */
252
- region?: Array<string>;
664
+ email: string;
253
665
  /**
254
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
666
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
255
667
  */
256
- sub_region?: Array<string>;
668
+ role?: 'Administrator' | 'User';
669
+ };
670
+ export type Invite = {
257
671
  /**
258
- * Limits selection of cloud regions to this list of canonical provider regions
672
+ * Unique identifier of the invitation.
259
673
  */
260
- csp_region?: Array<string>;
674
+ id?: string;
261
675
  /**
262
- * Limits selection of instance types to this list. Instance / VM type as defined by the cloud service provider
263
- */
264
- instance_type?: Array<string>;
265
- /**
266
- * List of Normalized accelerator model names. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
676
+ * Unique identifier of the organization the project belongs to. UUID v4 string in canonical form
267
677
  */
268
- accelerator_name?: Array<string>;
678
+ organization_id?: string;
269
679
  /**
270
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
680
+ * Creation date of the project. ISO 8601 date string in UTC timezone
271
681
  */
272
- accelerator_manufacturer?: Array<string>;
682
+ date_created: string;
273
683
  /**
274
- * Minimum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
684
+ * User email address.
275
685
  */
276
- accelerator_count_min?: number;
686
+ email?: string;
277
687
  /**
278
- * Maximum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
688
+ * Generated unique invite code.
279
689
  */
280
- accelerator_count_max?: number;
690
+ code?: string;
281
691
  /**
282
- * Minimum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
692
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
283
693
  */
284
- accelerator_memory_min?: number;
694
+ role?: 'Administrator' | 'User';
695
+ };
696
+ export type Invoice = {
285
697
  /**
286
- * Maximum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
698
+ * Unique identifier of the invoice.
287
699
  */
288
- accelerator_memory_max?: number;
700
+ id?: string;
701
+ number?: string;
289
702
  /**
290
- * Minimum amount of RAM in gibibytes (GiB)
703
+ * Status of the invoice
291
704
  */
292
- memory_min?: number;
705
+ status?: string;
293
706
  /**
294
- * Maximum amount of RAM in gibibytes (GiB)
707
+ * Total amount of the invoice
295
708
  */
296
- memory_max?: number;
709
+ total?: number;
297
710
  /**
298
- * Minimum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
711
+ * Currency of the invoice
299
712
  */
300
- vcpu_min?: number;
713
+ currency?: string;
301
714
  /**
302
- * Maximum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
715
+ * Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.
303
716
  */
304
- vcpu_max?: number;
717
+ created: string;
305
718
  /**
306
- * Minimum total storage in GiB (attached and local)
719
+ * Billing period start timestamp. ISO 8601 date string in the UTC timezone.
307
720
  */
308
- storage_total_min?: number;
721
+ period_start: string;
309
722
  /**
310
- * Maximum total storage in GiB (attached and local)
723
+ * Billing period end timestamp. ISO 8601 date string in the UTC timezone.
311
724
  */
312
- storage_total_max?: number;
725
+ period_end: string;
726
+ invoice_pdf?: string;
727
+ };
728
+ export type MarketplaceListingFiles = {
313
729
  /**
314
- * Minimum volume of directly attached, block-device local storage in gibibytes (GiB)
730
+ * Raw Chart.yaml content from the Helm chart
315
731
  */
316
- storage_local_min?: number;
732
+ chartYaml?: string;
317
733
  /**
318
- * Maximum volume of directly attached, block-device local storage in gibibytes (GiB)
734
+ * Raw values.yaml content from the Helm chart
319
735
  */
320
- storage_local_max?: number;
736
+ valuesYaml?: string;
321
737
  /**
322
- * Minimum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
738
+ * JSON schema for values.yaml as a string
323
739
  */
324
- price_min?: number;
740
+ valuesSchemaJson?: string;
741
+ };
742
+ export type MarketplaceListing = {
325
743
  /**
326
- * Maximum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
744
+ * Name of the chart
327
745
  */
328
- price_max?: number;
329
- };
330
- export type InfrastructureInstance = {
746
+ name: string;
331
747
  /**
332
- * Cloudfleet instance SKU. Has a format of <provider>-<csp_region>-<instance_type>.
748
+ * Available versions of the chart
333
749
  */
334
- sku: string;
750
+ versions: Array<string>;
335
751
  /**
336
- * Normalized cloud service provider name. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
752
+ * Version channels for the chart
337
753
  */
338
- provider: string;
754
+ version_channels: Array<string>;
339
755
  /**
340
- * Normalized region. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
756
+ * Latest version of the chart
341
757
  */
342
- region: string;
758
+ latestVersion: string;
343
759
  /**
344
- * Normalized sub-region. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
760
+ * Chart metadata
345
761
  */
346
- sub_region: string;
762
+ metadata?: {
763
+ /**
764
+ * Chart name from metadata
765
+ */
766
+ name: string;
767
+ /**
768
+ * Chart version from metadata
769
+ */
770
+ version: string;
771
+ /**
772
+ * Chart description
773
+ */
774
+ description?: string;
775
+ /**
776
+ * Application version
777
+ */
778
+ appVersion?: string;
779
+ /**
780
+ * Helm API version
781
+ */
782
+ apiVersion?: string;
783
+ /**
784
+ * Chart keywords
785
+ */
786
+ keywords?: Array<string>;
787
+ /**
788
+ * Chart home URL
789
+ */
790
+ home?: string;
791
+ /**
792
+ * A URL to an SVG or PNG image to be used as an icon
793
+ */
794
+ icon?: string;
795
+ /**
796
+ * Chart source URLs
797
+ */
798
+ sources?: Array<string>;
799
+ /**
800
+ * Chart maintainers
801
+ */
802
+ maintainers?: Array<{
803
+ /**
804
+ * Maintainer name
805
+ */
806
+ name: string;
807
+ /**
808
+ * Maintainer email
809
+ */
810
+ email?: string;
811
+ }>;
812
+ };
813
+ };
814
+ export type OrganizationCreateInput = {
347
815
  /**
348
- * Region as defined by the cloud service provider
816
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
349
817
  */
350
- csp_region: string;
818
+ type: 'business' | 'personal';
351
819
  /**
352
- * Availability zone as defined by the cloud service provider
820
+ * Email address used for billing as a string.
353
821
  */
354
- csp_zone: string;
822
+ email: string;
355
823
  /**
356
- * Instance / VM type as defined by the cloud service provider
824
+ * First name of the billing contact person.
357
825
  */
358
- instance_type: string;
826
+ first_name: string;
359
827
  /**
360
- * Instance CPU architecture
828
+ * Last name of the billing contact person.
361
829
  */
362
- architecture: string;
830
+ last_name: string;
363
831
  /**
364
- * Instance operating system
832
+ * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
365
833
  */
366
- os: string;
834
+ company_name: string;
367
835
  /**
368
- * CPU count as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
836
+ * Password for the root account. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.
369
837
  */
370
- vcpu: number;
838
+ password: string;
839
+ };
840
+ export type OrganizationCreateOutput = {
371
841
  /**
372
- * Total amount of RAM in gibibytes (GiB)
842
+ * Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.
373
843
  */
374
- memory: number;
844
+ id: string;
845
+ };
846
+ export type Organization = {
375
847
  /**
376
- * Volume of directly attached, block-device local storage in gibibytes (GiB)
848
+ * Unique identifier of the organization. UUID v4 string in canonical form
377
849
  */
378
- local_storage: number;
850
+ id: string;
379
851
  /**
380
- * Normalized model name of accelerator. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
852
+ * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
381
853
  */
382
- accelerator_name?: string;
854
+ name?: string;
383
855
  /**
384
- * Normalized manufacturer name of accelerator. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
856
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
385
857
  */
386
- accelerator_manufacturer?: string;
858
+ type: 'business' | 'personal';
387
859
  /**
388
- * Number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
860
+ * Creation date of the organization. ISO 8601 date string in UTC timezone
389
861
  */
390
- accelerator_count?: number;
862
+ date_created: string;
391
863
  /**
392
- * Ammount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
864
+ * For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.
393
865
  */
394
- accelerator_memory?: number;
866
+ quota: {
867
+ /**
868
+ * Maximum number of Basic clusters that can be created.
869
+ */
870
+ basic_clusters_max: number;
871
+ /**
872
+ * Available number of Basic clusters that can be created.
873
+ */
874
+ basic_clusters_available: number;
875
+ /**
876
+ * Maximum number of Pro clusters that can be created.
877
+ */
878
+ pro_clusters_max: number;
879
+ /**
880
+ * Available number of Pro clusters that can be created.
881
+ */
882
+ pro_clusters_available: number;
883
+ /**
884
+ * Maximum number of Enterprise clusters that can be created.
885
+ */
886
+ enterprise_clusters_max: number;
887
+ /**
888
+ * Available number of Enterprise clusters that can be created.
889
+ */
890
+ enterprise_clusters_available: number;
891
+ /**
892
+ * Maximum number of fleets that can be created per cluster.
893
+ */
894
+ fleets_max: number;
895
+ /**
896
+ * List of Cloudfleet cluster tiers available for the organization.
897
+ */
898
+ cluster_tiers: Array<string>;
899
+ /**
900
+ * List of Cloudfleet control plane regions available for the organization.
901
+ */
902
+ regions: Array<string>;
903
+ /**
904
+ * List of CFKE control plane versions available for the organization.
905
+ */
906
+ versions: Array<{
907
+ /**
908
+ * Id of the control plane version. Used in API calls.
909
+ */
910
+ id: string;
911
+ /**
912
+ * Label of the control plane version. Used in frontent UI.
913
+ */
914
+ label: string;
915
+ }>;
916
+ /**
917
+ * Organization-level maximum CFCR storage volume in GB. -1 means no limit.
918
+ */
919
+ cfcr_storage_gb: number;
920
+ };
395
921
  /**
396
- * Maximum number of pods that can be run on this instance type.
922
+ * Status of the organization. Can be `active` or `closed`, or `suspended`.
397
923
  */
398
- pods_capacity?: number;
924
+ status: 'active' | 'closed' | 'suspended';
399
925
  /**
400
- * Capacity type of the instance. E.g. `on-demand`, `spot`.
926
+ * 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.
401
927
  */
402
- capacity_type?: string;
928
+ verification: 'none' | 'submitted' | 'verified';
929
+ };
930
+ export type PaymentMethod = {
403
931
  /**
404
- * Price of running the inctance per hour in USD as defined by the cloud service provider
932
+ * 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.
405
933
  */
406
- price: number;
934
+ id: string;
407
935
  /**
408
- * Whether this instance type is available.
936
+ * Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.
409
937
  */
410
- available?: boolean;
411
- };
412
- export type Invite = {
938
+ type: 'card' | 'sepa_debit' | 'bank_transfer';
413
939
  /**
414
- * Unique identifier of the invitation.
940
+ * 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.
415
941
  */
416
- id?: string;
942
+ last4: string;
417
943
  /**
418
- * Unique identifier of the organization the project belongs to. UUID v4 string in canonical form
944
+ * Two-digit number representing the card's expiration month. Null for SEPA Direct Debit and bank transfer.
419
945
  */
420
- organization_id?: string;
946
+ exp_month: number;
421
947
  /**
422
- * Creation date of the project. ISO 8601 date string in UTC timezone
948
+ * 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.
423
949
  */
424
- date_created: string;
950
+ exp_year: number;
425
951
  /**
426
- * User email address.
952
+ * Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.
427
953
  */
428
- email?: string;
954
+ brand: string;
429
955
  /**
430
- * Generated unique invite code.
956
+ * 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.
431
957
  */
432
- code?: string;
433
- };
434
- export type Invoice = {
958
+ iban: string;
435
959
  /**
436
- * Unique identifier of the invoice. UUID v4 string in canonical form
960
+ * BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.
437
961
  */
438
- id?: string;
962
+ bic: string;
439
963
  /**
440
- * Unique identifier of the organization. UUID v4 string in canonical form
964
+ * Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.
441
965
  */
442
- organizationId?: string;
966
+ account_holder_name: string;
443
967
  /**
444
- * Status of the invoice
968
+ * 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).
445
969
  */
446
- status?: 'DRAFT' | 'COMMITTED' | 'VOID';
970
+ is_default: boolean;
971
+ };
972
+ export type PlatformQuota = {
447
973
  /**
448
- * Total amount of the invoice
974
+ * Maximum number of Basic clusters that can be created.
449
975
  */
450
- amount?: number;
976
+ basic_clusters_max: number;
451
977
  /**
452
- * Currency of the invoice
978
+ * Available number of Basic clusters that can be created.
453
979
  */
454
- 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';
980
+ basic_clusters_available: number;
455
981
  /**
456
- * Total amount of credit adjustments
982
+ * Maximum number of Pro clusters that can be created.
457
983
  */
458
- creditAdj?: number;
984
+ pro_clusters_max: number;
459
985
  /**
460
- * Total amount of refund adjustments
986
+ * Available number of Pro clusters that can be created.
461
987
  */
462
- refundAdj?: number;
988
+ pro_clusters_available: number;
463
989
  /**
464
- * Date of the invoice
990
+ * Maximum number of Enterprise clusters that can be created.
465
991
  */
466
- invoiceDate?: string;
992
+ enterprise_clusters_max: number;
467
993
  /**
468
- * Target date of the invoice
994
+ * Available number of Enterprise clusters that can be created.
469
995
  */
470
- targetDate?: string;
996
+ enterprise_clusters_available: number;
471
997
  /**
472
- * Number of the invoice
998
+ * Maximum number of fleets that can be created per cluster.
473
999
  */
474
- invoiceNumber?: string;
1000
+ fleets_max: number;
475
1001
  /**
476
- * Balance of the invoice
1002
+ * List of Cloudfleet cluster tiers available for the organization.
477
1003
  */
478
- balance?: number;
1004
+ cluster_tiers: Array<string>;
479
1005
  /**
480
- * Bundle keys of the invoice
1006
+ * List of Cloudfleet control plane regions available for the organization.
481
1007
  */
482
- bundleKeys?: string;
1008
+ regions: Array<string>;
483
1009
  /**
484
- * Credits of the invoice
1010
+ * List of CFKE control plane versions available for the organization.
485
1011
  */
486
- credits?: Array<{
487
- /**
488
- * Unique identifier of the invoice item. UUID v4 string in canonical form
489
- */
490
- id?: string;
1012
+ versions: Array<{
491
1013
  /**
492
- * Unique identifier of the linked invoice item. UUID v4 string in canonical form
1014
+ * Id of the control plane version. Used in API calls.
493
1015
  */
494
- linkedInvoiceItemId?: string;
495
- /**
496
- * Name of the product
497
- */
498
- productName?: string;
1016
+ id: string;
499
1017
  /**
500
- * Name of the plan
1018
+ * Label of the control plane version. Used in frontent UI.
501
1019
  */
502
- planName?: string;
1020
+ label: string;
1021
+ }>;
1022
+ /**
1023
+ * Organization-level maximum CFCR storage volume in GB. -1 means no limit.
1024
+ */
1025
+ cfcr_storage_gb: number;
1026
+ };
1027
+ export type RegistryRepository = {
1028
+ /**
1029
+ * Repository name.
1030
+ */
1031
+ name: string;
1032
+ /**
1033
+ * Registry region.
1034
+ */
1035
+ region: string;
1036
+ /**
1037
+ * Full URI of the repository.
1038
+ */
1039
+ uri: string;
1040
+ };
1041
+ export type RegistryRepositoryWithTags = {
1042
+ /**
1043
+ * Repository name.
1044
+ */
1045
+ name: string;
1046
+ /**
1047
+ * Registry region.
1048
+ */
1049
+ region: string;
1050
+ /**
1051
+ * Full URI of the repository.
1052
+ */
1053
+ uri: string;
1054
+ /**
1055
+ * Array of tags in the repository.
1056
+ */
1057
+ tags: Array<{
503
1058
  /**
504
- * Name of the phase
1059
+ * Tag name.
505
1060
  */
506
- phaseName?: string;
1061
+ name: string;
507
1062
  /**
508
- * Name of the usage
1063
+ * Size of the tag in bytes.
509
1064
  */
510
- usageName?: string;
1065
+ size: number;
511
1066
  /**
512
- * Pretty name of the product
1067
+ * Media type of the manifest.
513
1068
  */
514
- prettyProductName?: string;
1069
+ mediaType?: string;
515
1070
  /**
516
- * Pretty name of the plan
1071
+ * Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).
517
1072
  */
518
- prettyPlanName?: string;
1073
+ platforms?: Array<string>;
1074
+ }>;
1075
+ /**
1076
+ * Total size of all tags in the repository in bytes.
1077
+ */
1078
+ totalSize: number;
1079
+ };
1080
+ export type RegistryTag = {
1081
+ /**
1082
+ * Tag name.
1083
+ */
1084
+ name: string;
1085
+ /**
1086
+ * Manifest digest for pulling by digest.
1087
+ */
1088
+ digest: string;
1089
+ /**
1090
+ * Media type of the manifest.
1091
+ */
1092
+ mediaType?: string;
1093
+ /**
1094
+ * Manifest config metadata.
1095
+ */
1096
+ config?: {
519
1097
  /**
520
- * Pretty name of the phase
1098
+ * Size of the config in bytes.
521
1099
  */
522
- prettyPhaseName?: string;
1100
+ size: number;
1101
+ };
1102
+ /**
1103
+ * Array of layer metadata.
1104
+ */
1105
+ layers?: Array<{
523
1106
  /**
524
- * Pretty name of the usage
1107
+ * Digest of the layer.
525
1108
  */
526
- prettyUsageName?: string;
1109
+ digest?: string;
527
1110
  /**
528
- * Type of the invoice item
1111
+ * Size of the layer in bytes.
529
1112
  */
530
- itemType?: 'EXTERNAL_CHARGE' | 'FIXED' | 'RECURRING' | 'REPAIR_ADJ' | 'CBA_ADJ' | 'CREDIT_ADJ' | 'ITEM_ADJ' | 'USAGE' | 'TAX' | 'PARENT_SUMMARY';
1113
+ size: number;
1114
+ }>;
1115
+ /**
1116
+ * Array of manifests for multi-arch images.
1117
+ */
1118
+ manifests?: Array<{
531
1119
  /**
532
- * Description of the invoice item
1120
+ * Digest of the manifest.
533
1121
  */
534
- description?: string;
1122
+ digest: string;
535
1123
  /**
536
- * Start date of the invoice item
1124
+ * Platform information for the manifest.
537
1125
  */
538
- startDate?: string;
1126
+ platform?: {
1127
+ /**
1128
+ * Architecture of the platform.
1129
+ */
1130
+ architecture: string;
1131
+ /**
1132
+ * Operating system of the platform.
1133
+ */
1134
+ os: string;
1135
+ /**
1136
+ * Variant of the platform (e.g., v7, v8 for ARM).
1137
+ */
1138
+ variant?: string;
1139
+ };
539
1140
  /**
540
- * End date of the invoice item
1141
+ * Layers for this platform.
541
1142
  */
542
- endDate?: string;
1143
+ layers?: Array<{
1144
+ /**
1145
+ * Digest of the layer.
1146
+ */
1147
+ digest?: string;
1148
+ /**
1149
+ * Size of the layer in bytes.
1150
+ */
1151
+ size: number;
1152
+ }>;
543
1153
  /**
544
- * Amount of the invoice item
1154
+ * Total size of this platform manifest in bytes.
545
1155
  */
546
- amount?: number;
1156
+ size?: number;
1157
+ }>;
1158
+ /**
1159
+ * Total size of the tag in bytes.
1160
+ */
1161
+ size: number;
1162
+ /**
1163
+ * Registry region.
1164
+ */
1165
+ region: string;
1166
+ /**
1167
+ * Repository name.
1168
+ */
1169
+ repository: string;
1170
+ /**
1171
+ * Full URI of the tag.
1172
+ */
1173
+ uri: string;
1174
+ };
1175
+ export type TicketAttachment = {
1176
+ /**
1177
+ * Unique identifier of the attachment (Mongo ObjectId).
1178
+ */
1179
+ id: string;
1180
+ /**
1181
+ * Original filename as uploaded.
1182
+ */
1183
+ filename: string;
1184
+ /**
1185
+ * MIME content type of the attachment.
1186
+ */
1187
+ content_type: string;
1188
+ /**
1189
+ * Size of the attachment in bytes.
1190
+ */
1191
+ size: number;
1192
+ };
1193
+ export type TicketCreateInput = {
1194
+ /**
1195
+ * Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.
1196
+ */
1197
+ category: 'billing' | 'technical' | 'general';
1198
+ /**
1199
+ * Initial message body in markdown. There is no separate subject — the first message body is the description.
1200
+ */
1201
+ body: string;
1202
+ /**
1203
+ * Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).
1204
+ */
1205
+ properties?: {
1206
+ [key: string]: unknown;
1207
+ };
1208
+ };
1209
+ export type TicketMessageInput = {
1210
+ /**
1211
+ * Reply body in markdown.
1212
+ */
1213
+ body: string;
1214
+ };
1215
+ export type TicketMessage = {
1216
+ /**
1217
+ * Unique identifier of the message (Mongo ObjectId).
1218
+ */
1219
+ id: string;
1220
+ /**
1221
+ * Message type. Internal notes are filtered out of customer-facing responses.
1222
+ */
1223
+ type: 'customer_reply' | 'agent_reply';
1224
+ /**
1225
+ * Message body in markdown.
1226
+ */
1227
+ body: string;
1228
+ /**
1229
+ * First name of the author. Null when not provided.
1230
+ */
1231
+ author_first_name?: string;
1232
+ /**
1233
+ * Last name of the author. Null when not provided.
1234
+ */
1235
+ author_last_name?: string;
1236
+ /**
1237
+ * Attachments associated with this message.
1238
+ */
1239
+ attachments?: Array<{
547
1240
  /**
548
- * Rate of the invoice item
1241
+ * Unique identifier of the attachment (Mongo ObjectId).
549
1242
  */
550
- rate?: number;
1243
+ id: string;
551
1244
  /**
552
- * Currency of the invoice item
1245
+ * Original filename as uploaded.
553
1246
  */
554
- 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';
1247
+ filename: string;
555
1248
  /**
556
- * Quantity of the invoice item
1249
+ * MIME content type of the attachment.
557
1250
  */
558
- quantity?: number;
1251
+ content_type: string;
559
1252
  /**
560
- * Details of the invoice item
1253
+ * Size of the attachment in bytes.
561
1254
  */
562
- itemDetails?: string;
563
- /**
564
- * Effective date of the catalog
565
- */
566
- catalogEffectiveDate?: string;
567
- /**
568
- * Child items of the invoice item
569
- */
570
- childItems?: Array<Array<unknown> | boolean | number | {
571
- [key: string]: unknown;
572
- } | string>;
1255
+ size: number;
573
1256
  }>;
574
1257
  /**
575
- * Items of the invoice
1258
+ * Creation date of the message. ISO 8601 UTC.
576
1259
  */
577
- items?: Array<{
578
- /**
579
- * Unique identifier of the invoice item. UUID v4 string in canonical form
580
- */
581
- id?: string;
582
- /**
583
- * Unique identifier of the linked invoice item. UUID v4 string in canonical form
584
- */
585
- linkedInvoiceItemId?: string;
586
- /**
587
- * Name of the product
588
- */
589
- productName?: string;
590
- /**
591
- * Name of the plan
592
- */
593
- planName?: string;
594
- /**
595
- * Name of the phase
596
- */
597
- phaseName?: string;
598
- /**
599
- * Name of the usage
600
- */
601
- usageName?: string;
602
- /**
603
- * Pretty name of the product
604
- */
605
- prettyProductName?: string;
606
- /**
607
- * Pretty name of the plan
608
- */
609
- prettyPlanName?: string;
610
- /**
611
- * Pretty name of the phase
612
- */
613
- prettyPhaseName?: string;
614
- /**
615
- * Pretty name of the usage
616
- */
617
- prettyUsageName?: string;
618
- /**
619
- * Type of the invoice item
620
- */
621
- itemType?: 'EXTERNAL_CHARGE' | 'FIXED' | 'RECURRING' | 'REPAIR_ADJ' | 'CBA_ADJ' | 'CREDIT_ADJ' | 'ITEM_ADJ' | 'USAGE' | 'TAX' | 'PARENT_SUMMARY';
622
- /**
623
- * Description of the invoice item
624
- */
625
- description?: string;
626
- /**
627
- * Start date of the invoice item
628
- */
629
- startDate?: string;
630
- /**
631
- * End date of the invoice item
632
- */
633
- endDate?: string;
634
- /**
635
- * Amount of the invoice item
636
- */
637
- amount?: number;
638
- /**
639
- * Rate of the invoice item
640
- */
641
- rate?: number;
642
- /**
643
- * Currency of the invoice item
644
- */
645
- 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';
646
- /**
647
- * Quantity of the invoice item
648
- */
649
- quantity?: number;
650
- /**
651
- * Details of the invoice item
652
- */
653
- itemDetails?: string;
654
- /**
655
- * Effective date of the catalog
656
- */
657
- catalogEffectiveDate?: string;
658
- /**
659
- * Child items of the invoice item
660
- */
661
- childItems?: Array<Array<unknown> | boolean | number | {
662
- [key: string]: unknown;
663
- } | string>;
664
- }>;
1260
+ date_created: string;
665
1261
  };
666
- export type OrganizationContactInfo = {
667
- /**
668
- * Street address, P.O. box, c/o
669
- */
670
- address1?: string;
671
- /**
672
- * Apartment, suite, unit, building, floor, etc.
673
- */
674
- address2?: string;
675
- /**
676
- * Postal code as a string.
677
- */
678
- postalCode?: string;
1262
+ export type Ticket = {
679
1263
  /**
680
- * City or town name.
681
- */
682
- city?: string;
683
- /**
684
- * State, province, or region name.
1264
+ * Unique identifier of the ticket (Mongo ObjectId).
685
1265
  */
686
- state?: string;
1266
+ id: string;
687
1267
  /**
688
- * Country as a ISO 3166-1 alpha-2 country code.
1268
+ * Current state of the ticket.
689
1269
  */
690
- country?: string;
1270
+ status: 'waiting_on_us' | 'waiting_on_user' | 'closed';
691
1271
  /**
692
- * Phone number as a string.
1272
+ * Ticket category.
693
1273
  */
694
- phone?: string;
1274
+ category: 'billing' | 'technical' | 'general';
695
1275
  /**
696
- * Email address used for billing as a string.
1276
+ * First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
697
1277
  */
698
- email: string;
1278
+ summary: string;
699
1279
  /**
700
- * First name of the billing contact person.
1280
+ * Closure timestamp. Null while the ticket is open.
701
1281
  */
702
- first_name: string;
1282
+ closed_at?: string;
703
1283
  /**
704
- * Last name of the billing contact person.
1284
+ * Creation date of the ticket. ISO 8601 UTC.
705
1285
  */
706
- last_name: string;
707
- };
708
- export type OrganizationCreateInput = {
1286
+ date_created: string;
709
1287
  /**
710
- * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
1288
+ * Last update date of the ticket. ISO 8601 UTC.
711
1289
  */
712
- name: string;
1290
+ date_updated: string;
713
1291
  /**
714
- * Organization contact information and billing address.
1292
+ * Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.
715
1293
  */
716
- contactInfo: {
717
- /**
718
- * Street address, P.O. box, c/o
719
- */
720
- address1?: string;
1294
+ messages?: Array<{
721
1295
  /**
722
- * Apartment, suite, unit, building, floor, etc.
1296
+ * Unique identifier of the message (Mongo ObjectId).
723
1297
  */
724
- address2?: string;
725
- /**
726
- * Postal code as a string.
727
- */
728
- postalCode?: string;
729
- /**
730
- * City or town name.
731
- */
732
- city?: string;
1298
+ id: string;
733
1299
  /**
734
- * State, province, or region name.
1300
+ * Message type. Internal notes are filtered out of customer-facing responses.
735
1301
  */
736
- state?: string;
1302
+ type: 'customer_reply' | 'agent_reply';
737
1303
  /**
738
- * Country as a ISO 3166-1 alpha-2 country code.
1304
+ * Message body in markdown.
739
1305
  */
740
- country?: string;
1306
+ body: string;
741
1307
  /**
742
- * Phone number as a string.
1308
+ * First name of the author. Null when not provided.
743
1309
  */
744
- phone?: string;
1310
+ author_first_name?: string;
745
1311
  /**
746
- * Email address used for billing as a string.
1312
+ * Last name of the author. Null when not provided.
747
1313
  */
748
- email: string;
1314
+ author_last_name?: string;
749
1315
  /**
750
- * First name of the billing contact person.
1316
+ * Attachments associated with this message.
751
1317
  */
752
- first_name: string;
1318
+ attachments?: Array<{
1319
+ /**
1320
+ * Unique identifier of the attachment (Mongo ObjectId).
1321
+ */
1322
+ id: string;
1323
+ /**
1324
+ * Original filename as uploaded.
1325
+ */
1326
+ filename: string;
1327
+ /**
1328
+ * MIME content type of the attachment.
1329
+ */
1330
+ content_type: string;
1331
+ /**
1332
+ * Size of the attachment in bytes.
1333
+ */
1334
+ size: number;
1335
+ }>;
753
1336
  /**
754
- * Last name of the billing contact person.
1337
+ * Creation date of the message. ISO 8601 UTC.
755
1338
  */
756
- last_name: string;
757
- };
1339
+ date_created: string;
1340
+ }>;
1341
+ };
1342
+ export type TokenCreateInput = {
758
1343
  /**
759
- * Password for the root account. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.
1344
+ * Human readable access token name.
760
1345
  */
761
- password: string;
1346
+ name: string;
1347
+ /**
1348
+ * Role assumed by the token.
1349
+ */
1350
+ role: 'Administrator' | 'User';
762
1351
  };
763
- export type Organization = {
1352
+ export type Token = {
764
1353
  /**
765
- * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
1354
+ * Human readable access token name.
766
1355
  */
767
1356
  name: string;
768
1357
  /**
769
- * Organization contact information and billing address.
1358
+ * Role assumed by the token.
770
1359
  */
771
- contactInfo: {
772
- /**
773
- * Street address, P.O. box, c/o
774
- */
775
- address1?: string;
776
- /**
777
- * Apartment, suite, unit, building, floor, etc.
778
- */
779
- address2?: string;
780
- /**
781
- * Postal code as a string.
782
- */
783
- postalCode?: string;
784
- /**
785
- * City or town name.
786
- */
787
- city?: string;
788
- /**
789
- * State, province, or region name.
790
- */
791
- state?: string;
792
- /**
793
- * Country as a ISO 3166-1 alpha-2 country code.
794
- */
795
- country?: string;
796
- /**
797
- * Phone number as a string.
798
- */
799
- phone?: string;
800
- /**
801
- * Email address used for billing as a string.
802
- */
803
- email: string;
804
- /**
805
- * First name of the billing contact person.
806
- */
807
- first_name: string;
808
- /**
809
- * Last name of the billing contact person.
810
- */
811
- last_name: string;
812
- };
1360
+ role: 'Administrator' | 'User';
813
1361
  /**
814
- * Unique identifier of the organization. UUID v4 string in canonical form
1362
+ * Generated unique identifier of the access token.
815
1363
  */
816
- id: string;
1364
+ id?: string;
817
1365
  /**
818
- * Creation date of the organization. ISO 8601 date string in UTC timezone
1366
+ * Access token secret. Unmasked only during creation.
819
1367
  */
820
- date_created: string;
1368
+ secret?: string;
821
1369
  /**
822
- * For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.
1370
+ * Creation date of the access token. ISO 8601 date string in UTC timezone
823
1371
  */
824
- quota: {
825
- /**
826
- * Maximum number of Basic clusters that can be created.
827
- */
828
- basic_clusters_max: number;
829
- /**
830
- * Available number of Basic clusters that can be created.
831
- */
832
- basic_clusters_available: number;
833
- /**
834
- * Maximum number of Pro clusters that can be created.
835
- */
836
- pro_clusters_max: number;
837
- /**
838
- * Available number of Pro clusters that can be created.
839
- */
840
- pro_clusters_available: number;
841
- /**
842
- * Maximum number of fleets that can be created per cluster.
843
- */
844
- fleets_max: number;
845
- /**
846
- * Maximum number of CPU cores per managed fleet.
847
- */
848
- managed_fleets_cpu_max: number;
849
- /**
850
- * List of Cloudfleet cluster tiers available for the organization.
851
- */
852
- cluster_tiers: Array<string>;
853
- /**
854
- * List of Cloudfleet control plane regions available for the organization.
855
- */
856
- regions: Array<string>;
857
- /**
858
- * List of CFKE control plane versions available for the organization.
859
- */
860
- versions: Array<{
861
- /**
862
- * Id of the control plane version. Used in API calls.
863
- */
864
- id: string;
865
- /**
866
- * Label of the control plane version. Used in frontent UI.
867
- */
868
- label: string;
869
- }>;
870
- };
1372
+ date_created: string;
1373
+ };
1374
+ export type TokenUpdateInput = {
871
1375
  /**
872
- * List of pending actions that the user needs to complete. Used in Cloudfleet console to guide the user through the onboarding process.
1376
+ * Human readable access token name.
873
1377
  */
874
- pending_actions: Array<'signup-billing-address' | 'signup-payment-method' | 'signup-invite-team' | 'signup-create-cluster'>;
1378
+ name?: string;
875
1379
  /**
876
- * Status of the organization. Can be `active` or `closed`, or `suspended`.
1380
+ * Role assumed by the token.
877
1381
  */
878
- status: 'active' | 'closed' | 'suspended';
1382
+ role?: 'Administrator' | 'User';
879
1383
  };
880
- export type OrganizationUpdateInput = {
1384
+ export type UsageFacets = {
881
1385
  /**
882
- * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
1386
+ * List of unique cluster IDs
883
1387
  */
884
- name?: string;
1388
+ cluster_id?: Array<string>;
885
1389
  /**
886
- * Organization contact information and billing address.
1390
+ * List of unique products
887
1391
  */
888
- contactInfo: {
889
- /**
890
- * Street address, P.O. box, c/o
891
- */
892
- address1?: string;
893
- /**
894
- * Apartment, suite, unit, building, floor, etc.
895
- */
896
- address2?: string;
1392
+ 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'>;
1393
+ };
1394
+ export type UsageResponse = {
1395
+ /**
1396
+ * Usage data
1397
+ */
1398
+ data: Array<{
897
1399
  /**
898
- * Postal code as a string.
1400
+ * Hour of the usage
899
1401
  */
900
- postalCode?: string;
1402
+ hour: string;
901
1403
  /**
902
- * City or town name.
1404
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
903
1405
  */
904
- city?: string;
1406
+ cluster_id: string;
905
1407
  /**
906
- * State, province, or region name.
1408
+ * The product the usage is associated with
907
1409
  */
908
- state?: string;
1410
+ product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
909
1411
  /**
910
- * Country as a ISO 3166-1 alpha-2 country code.
1412
+ * Consumption
911
1413
  */
912
- country?: string;
1414
+ value: number;
913
1415
  /**
914
- * Phone number as a string.
1416
+ * Price per unit
915
1417
  */
916
- phone?: string;
1418
+ price: number;
917
1419
  /**
918
- * Email address used for billing as a string.
1420
+ * Total cost
919
1421
  */
920
- email: string;
1422
+ total: number;
1423
+ }>;
1424
+ /**
1425
+ * Facets for filtering
1426
+ */
1427
+ facets: {
921
1428
  /**
922
- * First name of the billing contact person.
1429
+ * List of unique cluster IDs
923
1430
  */
924
- first_name: string;
1431
+ cluster_id?: Array<string>;
925
1432
  /**
926
- * Last name of the billing contact person.
1433
+ * List of unique products
927
1434
  */
928
- last_name: string;
1435
+ 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'>;
929
1436
  };
930
1437
  };
931
- export type PaymentMethod = {
932
- /**
933
- * Unique identifier of the organization. UUID v4 string in canonical form.
934
- */
935
- id: string;
1438
+ export type Usage = {
936
1439
  /**
937
- * Whether organization payment method was set up and ready to use for payments.
1440
+ * Hour of the usage
938
1441
  */
939
- setup: boolean;
1442
+ hour: string;
940
1443
  /**
941
- * Payment method type type. Only `card` payments supported at the moment.
1444
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
942
1445
  */
943
- type: 'card';
1446
+ cluster_id: string;
944
1447
  /**
945
- * Last 4 digits of the payment card number.
1448
+ * The product the usage is associated with
946
1449
  */
947
- last4: string;
1450
+ product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
948
1451
  /**
949
- * Two-digit number representing the card's expiration month.
1452
+ * Consumption
950
1453
  */
951
- exp_month: number;
1454
+ value: number;
952
1455
  /**
953
- * Four-digit number representing the card's expiration year.
1456
+ * Price per unit
954
1457
  */
955
- exp_year: number;
1458
+ price: number;
956
1459
  /**
957
- * Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
1460
+ * Total cost
958
1461
  */
959
- brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
1462
+ total: number;
960
1463
  };
961
- export type TokenCreateInput = {
1464
+ export type UserCreateInput = {
962
1465
  /**
963
- * Human readable access token name.
1466
+ * User email address.
964
1467
  */
965
- name: string;
1468
+ email: string;
966
1469
  /**
967
- * Role assumed by the token.
1470
+ * User first name.
968
1471
  */
969
- role: 'Administrator' | 'User';
970
- };
971
- export type Token = {
1472
+ first_name: string;
972
1473
  /**
973
- * Human readable access token name.
1474
+ * User last name.
974
1475
  */
975
- name: string;
1476
+ last_name: string;
976
1477
  /**
977
- * Role assumed by the token.
1478
+ * Generated unique invite code.
978
1479
  */
979
- role: 'Administrator' | 'User';
1480
+ code: string;
980
1481
  /**
981
- * Generated unique identifier of the access token.
982
- */
983
- id?: string;
984
- /**
985
- * Access token secret. Unmasked only during creation.
986
- */
987
- secret?: string;
988
- /**
989
- * Creation date of the access token. ISO 8601 date string in UTC timezone
990
- */
991
- date_created: string;
992
- };
993
- export type TokenUpdateInput = {
994
- /**
995
- * Human readable access token name.
996
- */
997
- name?: string;
998
- /**
999
- * Role assumed by the token.
1000
- */
1001
- role?: 'Administrator' | 'User';
1002
- };
1003
- export type Usage = {
1004
- /**
1005
- * Hour of the usage
1006
- */
1007
- hour?: string;
1008
- /**
1009
- * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
1010
- */
1011
- cluster_id: string;
1012
- /**
1013
- * Tier of the cluster.
1014
- */
1015
- cluster_tier: '';
1016
- /**
1017
- * The product the usage is associated with
1018
- */
1019
- product: 'cfke_infra_compute' | 'cfke_nodes' | 'cfke_controlplane';
1020
- /**
1021
- * Name of the Kubernetes node
1022
- */
1023
- node_name: string;
1024
- /**
1025
- * SKU of the Kubernetes node
1026
- */
1027
- sku: string;
1028
- cpu: number | '';
1029
- price: number | '';
1030
- value: number | '';
1031
- total: number | '';
1032
- };
1033
- export type UserCreateInput = {
1034
- /**
1035
- * User email address.
1036
- */
1037
- email: string;
1038
- /**
1039
- * User first name.
1040
- */
1041
- first_name: string;
1042
- /**
1043
- * User last name.
1044
- */
1045
- last_name: string;
1046
- /**
1047
- * Generated unique invite code.
1048
- */
1049
- code: string;
1050
- /**
1051
- * User password. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.
1482
+ * User password. Must be at least 8 characters long.
1052
1483
  */
1053
1484
  password: string;
1054
- /**
1055
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1056
- */
1057
- status?: 'active' | 'inactive';
1058
- /**
1059
- * User role. Can be 'Administrator', 'User'.
1060
- */
1061
- role?: 'Administrator' | 'User';
1062
1485
  };
1063
1486
  export type User = {
1064
1487
  /**
@@ -1089,16 +1512,6 @@ export type User = {
1089
1512
  * Creation date of the user. ISO 8601 date string in UTC timezone
1090
1513
  */
1091
1514
  date_created: string;
1092
- cluster_permissions?: Array<{
1093
- /**
1094
- * Unique identifier of the cluster. UUID v4 string in canonical form
1095
- */
1096
- cluster_id: string;
1097
- /**
1098
- * User permissions to access the cluster. Can be `readwrite` or `readonly`.
1099
- */
1100
- permissions: 'readwrite' | 'readonly';
1101
- }>;
1102
1515
  };
1103
1516
  export type UserUpdateInput = {
1104
1517
  /**
@@ -1122,632 +1535,658 @@ export type UserUpdateInput = {
1122
1535
  */
1123
1536
  status?: 'active' | 'inactive';
1124
1537
  };
1125
- export type GetUsageData = {
1538
+ export type ListUserOrganizationsData = {
1539
+ body?: never;
1540
+ path: {
1541
+ /**
1542
+ * User email address.
1543
+ */
1544
+ email: string;
1545
+ };
1546
+ query?: never;
1547
+ url: '/users/organizations/{email}';
1548
+ };
1549
+ export type ListUserOrganizationsResponses = {
1550
+ /**
1551
+ * An array of organizations the user belongs to.
1552
+ */
1553
+ 200: Array<{
1554
+ /**
1555
+ * Unique identifier of the organization. UUID v4 string in canonical form
1556
+ */
1557
+ realm?: string;
1558
+ /**
1559
+ * Human-readable name of the organization
1560
+ */
1561
+ displayName?: string;
1562
+ }>;
1563
+ };
1564
+ export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1565
+ export type ListUsersData = {
1126
1566
  body?: never;
1127
1567
  path?: never;
1128
1568
  query?: never;
1129
- url: '/billing/usage';
1569
+ url: '/users';
1130
1570
  };
1131
- export type GetUsageErrors = {
1571
+ export type ListUsersErrors = {
1132
1572
  /**
1133
1573
  * Not authenticated
1134
1574
  */
1135
1575
  401: unknown;
1136
1576
  };
1137
- export type GetUsageResponses = {
1577
+ export type ListUsersResponses = {
1138
1578
  /**
1139
- * An array of usage records.
1579
+ * An array of users
1140
1580
  */
1141
- 200: Array<Usage>;
1581
+ 200: Array<User>;
1142
1582
  };
1143
- export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
1144
- export type GetBalanceData = {
1145
- body?: never;
1583
+ export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1584
+ export type CreateUserData = {
1585
+ body: UserCreateInput;
1146
1586
  path?: never;
1147
1587
  query?: never;
1148
- url: '/billing/balance';
1588
+ url: '/users';
1149
1589
  };
1150
- export type GetBalanceResponses = {
1590
+ export type CreateUserResponses = {
1151
1591
  /**
1152
- * Current balance of the organization in USD as a floating-point number.
1592
+ * Successfully created. Returns created user details.
1153
1593
  */
1154
- 200: number;
1594
+ 200: User;
1155
1595
  };
1156
- export type GetBalanceResponse = GetBalanceResponses[keyof GetBalanceResponses];
1157
- export type GetPaymentMethodData = {
1596
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1597
+ export type DeleteUserData = {
1158
1598
  body?: never;
1159
- path?: never;
1599
+ path: {
1600
+ /**
1601
+ * Unique user identifier. UUID v4 string in canonical form
1602
+ */
1603
+ user_id: string;
1604
+ };
1160
1605
  query?: never;
1161
- url: '/billing/payment-method';
1606
+ url: '/users/{user_id}';
1162
1607
  };
1163
- export type GetPaymentMethodErrors = {
1608
+ export type DeleteUserErrors = {
1164
1609
  /**
1165
- * Returns 404 Not Found if the organization does not have a payment method set up.
1610
+ * Deleting own user is not allowed. Delete your organization instead.
1166
1611
  */
1167
- 404: unknown;
1168
- };
1169
- export type GetPaymentMethodResponses = {
1612
+ 400: unknown;
1170
1613
  /**
1171
- * Redacted payment card information.
1614
+ * Not authenticated
1172
1615
  */
1173
- 200: PaymentMethod;
1174
- };
1175
- export type GetPaymentMethodResponse = GetPaymentMethodResponses[keyof GetPaymentMethodResponses];
1176
- export type GetPaymentMethodSecretData = {
1177
- body?: never;
1178
- path?: never;
1179
- query?: never;
1180
- url: '/billing/payment-method';
1616
+ 401: unknown;
1181
1617
  };
1182
- export type GetPaymentMethodSecretResponses = {
1618
+ export type DeleteUserResponses = {
1183
1619
  /**
1184
- * 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.
1185
- *
1620
+ * User profile information
1186
1621
  */
1187
- 200: {
1188
- /**
1189
- * The client secret.
1190
- */
1191
- id?: string;
1192
- };
1622
+ 200: User;
1193
1623
  };
1194
- export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
1195
- export type ListInvoicesData = {
1624
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1625
+ export type GetUserData = {
1196
1626
  body?: never;
1197
- path?: never;
1198
- query: {
1199
- /**
1200
- * Start date for the usage. Date of oldest data point to retrieve.
1201
- */
1202
- start_date: string;
1627
+ path: {
1203
1628
  /**
1204
- * End date for the usage. Date of newest data point to retrieve.
1629
+ * Unique user identifier. UUID v4 string in canonical form
1205
1630
  */
1206
- end_date: string;
1631
+ user_id: string;
1207
1632
  };
1208
- url: '/billing/invoices';
1633
+ query?: never;
1634
+ url: '/users/{user_id}';
1209
1635
  };
1210
- export type ListInvoicesErrors = {
1636
+ export type GetUserErrors = {
1211
1637
  /**
1212
1638
  * Not authenticated
1213
1639
  */
1214
1640
  401: unknown;
1215
1641
  };
1216
- export type ListInvoicesResponses = {
1642
+ export type GetUserResponses = {
1217
1643
  /**
1218
- * An array of usage records.
1644
+ * User profile information
1219
1645
  */
1220
- 200: Array<Invoice>;
1646
+ 200: User;
1221
1647
  };
1222
- export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
1223
- export type GetInvoiceData = {
1224
- body?: never;
1648
+ export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
1649
+ export type UpdateUserData = {
1650
+ body: UserUpdateInput;
1225
1651
  path: {
1226
1652
  /**
1227
- * Unique invoice identifier. UUID v4 string in canonical form
1653
+ * Unique user identifier. UUID v4 string in canonical form
1228
1654
  */
1229
- id: string;
1655
+ user_id: string;
1230
1656
  };
1231
1657
  query?: never;
1232
- url: '/billing/invoices/{id}';
1658
+ url: '/users/{user_id}';
1233
1659
  };
1234
- export type GetInvoiceResponses = {
1660
+ export type UpdateUserResponses = {
1235
1661
  /**
1236
- * Returns a single Invoice HTML representation under `html` property.
1662
+ * Successfully created. Returns created user details.
1237
1663
  */
1238
- 200: {
1239
- html?: string;
1240
- };
1664
+ 200: User;
1241
1665
  };
1242
- export type GetInvoiceResponse = GetInvoiceResponses[keyof GetInvoiceResponses];
1243
- export type ListFleetsData = {
1666
+ export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1667
+ export type ListTokensData = {
1244
1668
  body?: never;
1245
- path: {
1246
- /**
1247
- * Unique identifier of the cluster. UUID v4 string in canonical form
1248
- */
1249
- cluster_id: string;
1250
- };
1669
+ path?: never;
1251
1670
  query?: never;
1252
- url: '/clusters/{cluster_id}/fleets';
1671
+ url: '/tokens';
1253
1672
  };
1254
- export type ListFleetsErrors = {
1673
+ export type ListTokensErrors = {
1255
1674
  /**
1256
1675
  * Not authenticated
1257
1676
  */
1258
1677
  401: unknown;
1259
1678
  };
1260
- export type ListFleetsResponses = {
1679
+ export type ListTokensResponses = {
1261
1680
  /**
1262
- * An array of fleets
1681
+ * Returns a list of access token details with masked secrets.
1263
1682
  */
1264
- 200: Array<Fleet>;
1683
+ 200: Array<Token>;
1265
1684
  };
1266
- export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
1267
- export type CreateFleetData = {
1268
- body: FleetCreateInput;
1269
- path: {
1270
- /**
1271
- * Unique identifier of the cluster. UUID v4 string in canonical form
1272
- */
1273
- cluster_id: string;
1274
- };
1685
+ export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1686
+ export type CreateTokenData = {
1687
+ body: TokenCreateInput;
1688
+ path?: never;
1275
1689
  query?: never;
1276
- url: '/clusters/{cluster_id}/fleets';
1690
+ url: '/tokens';
1277
1691
  };
1278
- export type CreateFleetErrors = {
1692
+ export type CreateTokenErrors = {
1279
1693
  /**
1280
- * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
1694
+ * Not authenticated
1281
1695
  */
1282
- 402: string;
1696
+ 401: unknown;
1283
1697
  };
1284
- export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
1285
- export type CreateFleetResponses = {
1698
+ export type CreateTokenResponses = {
1286
1699
  /**
1287
- * Successfully created. Returns created Fleet ID.
1700
+ * Successfully created. Returns created token details with unmasked/raw secret.
1288
1701
  */
1289
- 200: string;
1702
+ 200: Token;
1290
1703
  };
1291
- export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
1292
- export type DeleteFleetData = {
1704
+ export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1705
+ export type DeleteTokenData = {
1293
1706
  body?: never;
1294
1707
  path: {
1295
1708
  /**
1296
- * Unique identifier of the cluster. UUID v4 string in canonical form
1297
- */
1298
- cluster_id: string;
1299
- /**
1300
- * Unique identifier of the fleet. UUID v4 string in canonical form
1709
+ * Generated unique identifier of the access token.
1301
1710
  */
1302
- fleet_name: string;
1711
+ token_id: string;
1303
1712
  };
1304
1713
  query?: never;
1305
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1714
+ url: '/tokens/{token_id}';
1306
1715
  };
1307
- export type DeleteFleetResponses = {
1716
+ export type DeleteTokenResponses = {
1308
1717
  /**
1309
1718
  * Successfully deleted.
1310
1719
  */
1311
- 200: string;
1720
+ 200: unknown;
1312
1721
  };
1313
- export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
1314
- export type GetFleetData = {
1722
+ export type GetTokenData = {
1315
1723
  body?: never;
1316
1724
  path: {
1317
1725
  /**
1318
- * Unique identifier of the cluster. UUID v4 string in canonical form
1319
- */
1320
- cluster_id: string;
1321
- /**
1322
- * Unique identifier of the fleet. UUID v4 string in canonical form
1726
+ * Generated unique identifier of the access token.
1323
1727
  */
1324
- fleet_name: string;
1728
+ token_id: string;
1325
1729
  };
1326
1730
  query?: never;
1327
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1731
+ url: '/tokens/{token_id}';
1328
1732
  };
1329
- export type GetFleetResponses = {
1733
+ export type GetTokenErrors = {
1330
1734
  /**
1331
- * Returns a single object containing fleet details.
1735
+ * Not authenticated
1332
1736
  */
1333
- 200: Fleet;
1737
+ 401: unknown;
1334
1738
  };
1335
- export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
1336
- export type UpdateFleetData = {
1337
- body: FleetUpdateInput;
1739
+ export type GetTokenResponses = {
1740
+ /**
1741
+ * Returns access token details with masked secret.
1742
+ */
1743
+ 200: Token;
1744
+ };
1745
+ export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1746
+ export type UpdateTokenData = {
1747
+ body: TokenUpdateInput;
1338
1748
  path: {
1339
1749
  /**
1340
- * Unique identifier of the cluster. UUID v4 string in canonical form
1341
- */
1342
- cluster_id: string;
1343
- /**
1344
- * Unique identifier of the fleet. UUID v4 string in canonical form
1750
+ * Generated unique identifier of the access token.
1345
1751
  */
1346
- fleet_name: string;
1752
+ token_id: string;
1347
1753
  };
1348
1754
  query?: never;
1349
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1755
+ url: '/tokens/{token_id}';
1350
1756
  };
1351
- export type UpdateFleetErrors = {
1757
+ export type UpdateTokenErrors = {
1352
1758
  /**
1353
- * Organization must have a valid payment method configured to access this endpoint.
1759
+ * Not authenticated
1354
1760
  */
1355
- 402: string;
1761
+ 401: unknown;
1356
1762
  };
1357
- export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
1358
- export type UpdateFleetResponses = {
1763
+ export type UpdateTokenResponses = {
1359
1764
  /**
1360
- * Successfully updated.
1765
+ * Successfully updated. Returns updated token details with masked secret.
1361
1766
  */
1362
- 200: string;
1767
+ 200: Token;
1363
1768
  };
1364
- export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
1365
- export type QueryClusterData = {
1769
+ export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1770
+ export type RegenerateTokenData = {
1366
1771
  body?: never;
1367
1772
  path: {
1368
1773
  /**
1369
- * Unique identifier of the cluster. UUID v4 string in canonical form
1774
+ * Generated unique identifier of the access token.
1370
1775
  */
1371
- cluster_id: string;
1776
+ token_id: string;
1372
1777
  };
1373
1778
  query?: never;
1374
- url: '/clusters/{cluster_id}/query';
1779
+ url: '/tokens/{token_id}/secret';
1375
1780
  };
1376
- export type QueryClusterErrors = {
1781
+ export type RegenerateTokenErrors = {
1377
1782
  /**
1378
1783
  * Not authenticated
1379
1784
  */
1380
1785
  401: unknown;
1381
1786
  };
1382
- export type QueryClusterResponses = {
1787
+ export type RegenerateTokenResponses = {
1383
1788
  /**
1384
- * Kubernetes API response
1789
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1385
1790
  */
1386
- 200: unknown;
1791
+ 200: Token;
1387
1792
  };
1388
- export type ListClustersData = {
1793
+ export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
1794
+ export type ListTicketsData = {
1389
1795
  body?: never;
1390
1796
  path?: never;
1391
1797
  query?: never;
1392
- url: '/clusters';
1393
- };
1394
- export type ListClustersErrors = {
1395
- /**
1396
- * Not authenticated
1397
- */
1398
- 401: unknown;
1798
+ url: '/tickets';
1399
1799
  };
1400
- export type ListClustersResponses = {
1800
+ export type ListTicketsResponses = {
1401
1801
  /**
1402
- * An array of clusters
1802
+ * An array of tickets for the organization, newest first.
1403
1803
  */
1404
- 200: Array<Cluster>;
1804
+ 200: Array<Ticket>;
1405
1805
  };
1406
- export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
1407
- export type CreateClusterData = {
1408
- body: ClusterCreateInput;
1806
+ export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
1807
+ export type CreateTicketData = {
1808
+ body: {
1809
+ /**
1810
+ * JSON-encoded TicketCreateInput.
1811
+ */
1812
+ payload?: string;
1813
+ attachments?: Array<Blob | File>;
1814
+ };
1409
1815
  path?: never;
1410
1816
  query?: never;
1411
- url: '/clusters';
1412
- };
1413
- export type CreateClusterErrors = {
1414
- /**
1415
- * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
1416
- */
1417
- 402: string;
1817
+ url: '/tickets';
1418
1818
  };
1419
- export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
1420
- export type CreateClusterResponses = {
1819
+ export type CreateTicketResponses = {
1421
1820
  /**
1422
- * Successfully created. Returns created Cluster ID.
1821
+ * Ticket created.
1423
1822
  */
1424
- 200: string;
1823
+ 200: Ticket;
1425
1824
  };
1426
- export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
1427
- export type DeleteClusterData = {
1825
+ export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
1826
+ export type CloseTicketData = {
1428
1827
  body?: never;
1429
1828
  path: {
1430
- /**
1431
- * Unique identifier of the cluster. UUID v4 string in canonical form
1432
- */
1433
- cluster_id: string;
1829
+ ticket_id: string;
1434
1830
  };
1435
1831
  query?: never;
1436
- url: '/clusters/{cluster_id}';
1832
+ url: '/tickets/{ticket_id}';
1437
1833
  };
1438
- export type DeleteClusterResponses = {
1834
+ export type CloseTicketResponses = {
1439
1835
  /**
1440
- * Successfully deleted.
1836
+ * Ticket closed.
1441
1837
  */
1442
- 200: string;
1838
+ 200: Ticket;
1443
1839
  };
1444
- export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
1445
- export type GetClusterData = {
1840
+ export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
1841
+ export type GetTicketData = {
1446
1842
  body?: never;
1447
1843
  path: {
1448
- /**
1449
- * Unique identifier of the cluster. UUID v4 string in canonical form
1450
- */
1451
- cluster_id: string;
1844
+ ticket_id: string;
1452
1845
  };
1453
1846
  query?: never;
1454
- url: '/clusters/{cluster_id}';
1847
+ url: '/tickets/{ticket_id}';
1455
1848
  };
1456
- export type GetClusterResponses = {
1849
+ export type GetTicketResponses = {
1457
1850
  /**
1458
- * Returns a single object containing cluster details.
1851
+ * Ticket with messages (internal notes excluded).
1459
1852
  */
1460
- 200: Cluster;
1853
+ 200: Ticket;
1461
1854
  };
1462
- export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
1463
- export type UpdateClusterData = {
1464
- body: ClusterUpdateInput;
1465
- path: {
1855
+ export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
1856
+ export type ReplyTicketData = {
1857
+ body: {
1466
1858
  /**
1467
- * Unique identifier of the cluster. UUID v4 string in canonical form
1859
+ * JSON-encoded TicketMessageInput.
1468
1860
  */
1469
- cluster_id: string;
1861
+ payload?: string;
1862
+ attachments?: Array<Blob | File>;
1863
+ };
1864
+ path: {
1865
+ ticket_id: string;
1470
1866
  };
1471
1867
  query?: never;
1472
- url: '/clusters/{cluster_id}';
1868
+ url: '/tickets/{ticket_id}/messages';
1473
1869
  };
1474
- export type UpdateClusterResponses = {
1870
+ export type ReplyTicketErrors = {
1475
1871
  /**
1476
- * Successfully updated. Returns updated cluster details.
1872
+ * Ticket is closed. Open a new ticket instead.
1477
1873
  */
1478
- 200: Cluster;
1874
+ 409: unknown;
1479
1875
  };
1480
- export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
1481
- export type GetJoinInformationData = {
1876
+ export type ReplyTicketResponses = {
1877
+ /**
1878
+ * Reply appended.
1879
+ */
1880
+ 200: TicketMessage;
1881
+ };
1882
+ export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
1883
+ export type GetTicketAttachmentData = {
1482
1884
  body?: never;
1483
1885
  path: {
1484
- /**
1485
- * Unique identifier of the cluster. UUID v4 string in canonical form
1486
- */
1487
- cluster_id: string;
1886
+ ticket_id: string;
1887
+ attachment_id: string;
1488
1888
  };
1489
1889
  query?: never;
1490
- url: '/clusters/{cluster_id}/join_information';
1890
+ url: '/tickets/{ticket_id}/attachments/{attachment_id}';
1491
1891
  };
1492
- export type GetJoinInformationErrors = {
1892
+ export type GetTicketAttachmentResponses = {
1893
+ /**
1894
+ * Attachment binary stream.
1895
+ */
1896
+ 200: Blob | File;
1897
+ };
1898
+ export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
1899
+ export type ListRepositoriesData = {
1900
+ body?: never;
1901
+ path?: never;
1902
+ query?: never;
1903
+ url: '/registry';
1904
+ };
1905
+ export type ListRepositoriesErrors = {
1493
1906
  /**
1494
1907
  * Not authenticated
1495
1908
  */
1496
1909
  401: unknown;
1910
+ /**
1911
+ * Internal server error
1912
+ */
1913
+ 500: unknown;
1497
1914
  };
1498
- export type GetJoinInformationResponses = {
1915
+ export type ListRepositoriesResponses = {
1499
1916
  /**
1500
- * An object of cluster join information
1917
+ * List of repositories
1501
1918
  */
1502
- 200: Cluster;
1919
+ 200: Array<RegistryRepository>;
1503
1920
  };
1504
- export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
1505
- export type GetInfrastructureData = {
1921
+ export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
1922
+ export type ListTagsData = {
1506
1923
  body?: never;
1507
- path?: never;
1508
- query?: {
1509
- /**
1510
- * Version of the task definition. Currently only version 1 is supported.
1511
- */
1512
- version?: 1;
1513
- /**
1514
- * Limit selection of cloud providers to this list. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
1515
- */
1516
- provider?: Array<string>;
1517
- /**
1518
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1519
- */
1520
- region?: Array<string>;
1521
- /**
1522
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1523
- */
1524
- sub_region?: Array<string>;
1525
- /**
1526
- * Limits selection of cloud regions to this list of canonical provider regions
1527
- */
1528
- csp_region?: Array<string>;
1529
- /**
1530
- * Limits selection of instance types to this list. Instance / VM type as defined by the cloud service provider
1531
- */
1532
- instance_type?: Array<string>;
1533
- /**
1534
- * List of Normalized accelerator model names. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
1535
- */
1536
- accelerator_name?: Array<string>;
1537
- /**
1538
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
1539
- */
1540
- accelerator_manufacturer?: Array<string>;
1541
- /**
1542
- * Minimum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1543
- */
1544
- accelerator_count_min?: number;
1545
- /**
1546
- * Maximum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1547
- */
1548
- accelerator_count_max?: number;
1549
- /**
1550
- * Minimum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1551
- */
1552
- accelerator_memory_min?: number;
1553
- /**
1554
- * Maximum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1555
- */
1556
- accelerator_memory_max?: number;
1557
- /**
1558
- * Minimum amount of RAM in gibibytes (GiB)
1559
- */
1560
- memory_min?: number;
1561
- /**
1562
- * Maximum amount of RAM in gibibytes (GiB)
1563
- */
1564
- memory_max?: number;
1924
+ path: {
1565
1925
  /**
1566
- * Minimum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1926
+ * Region where the repository is located
1567
1927
  */
1568
- vcpu_min?: number;
1928
+ region: string;
1569
1929
  /**
1570
- * Maximum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1930
+ * Name of the repository
1571
1931
  */
1572
- vcpu_max?: number;
1932
+ repository: string;
1933
+ };
1934
+ query?: never;
1935
+ url: '/registry/{region}/{repository}';
1936
+ };
1937
+ export type ListTagsErrors = {
1938
+ /**
1939
+ * Not authenticated
1940
+ */
1941
+ 401: unknown;
1942
+ /**
1943
+ * Repository not found
1944
+ */
1945
+ 404: unknown;
1946
+ /**
1947
+ * Internal server error
1948
+ */
1949
+ 500: unknown;
1950
+ };
1951
+ export type ListTagsResponses = {
1952
+ /**
1953
+ * Repository with tags
1954
+ */
1955
+ 200: RegistryRepositoryWithTags;
1956
+ };
1957
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
1958
+ export type DeleteTagData = {
1959
+ body?: never;
1960
+ path: {
1573
1961
  /**
1574
- * Minimum total storage in GiB (attached and local)
1962
+ * Region where the repository is located
1575
1963
  */
1576
- storage_total_min?: number;
1964
+ region: string;
1577
1965
  /**
1578
- * Maximum total storage in GiB (attached and local)
1966
+ * Name of the repository
1579
1967
  */
1580
- storage_total_max?: number;
1968
+ repository: string;
1581
1969
  /**
1582
- * Minimum volume of directly attached, block-device local storage in gibibytes (GiB)
1970
+ * Name of the tag
1583
1971
  */
1584
- storage_local_min?: number;
1972
+ tag: string;
1973
+ };
1974
+ query?: never;
1975
+ url: '/registry/{region}/{repository}/{tag}';
1976
+ };
1977
+ export type DeleteTagErrors = {
1978
+ /**
1979
+ * Not authenticated
1980
+ */
1981
+ 401: unknown;
1982
+ /**
1983
+ * Tag not found
1984
+ */
1985
+ 404: unknown;
1986
+ /**
1987
+ * Internal server error
1988
+ */
1989
+ 500: unknown;
1990
+ };
1991
+ export type DeleteTagResponses = {
1992
+ /**
1993
+ * Tag successfully deleted
1994
+ */
1995
+ 200: unknown;
1996
+ };
1997
+ export type GetTagData = {
1998
+ body?: never;
1999
+ path: {
1585
2000
  /**
1586
- * Maximum volume of directly attached, block-device local storage in gibibytes (GiB)
2001
+ * Region where the repository is located
1587
2002
  */
1588
- storage_local_max?: number;
2003
+ region: string;
1589
2004
  /**
1590
- * Minimum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
2005
+ * Name of the repository
1591
2006
  */
1592
- price_min?: number;
2007
+ repository: string;
1593
2008
  /**
1594
- * Maximum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
2009
+ * Name of the tag
1595
2010
  */
1596
- price_max?: number;
2011
+ tag: string;
1597
2012
  };
1598
- url: '/infrastructure';
2013
+ query?: never;
2014
+ url: '/registry/{region}/{repository}/{tag}';
1599
2015
  };
1600
- export type GetInfrastructureErrors = {
2016
+ export type GetTagErrors = {
2017
+ /**
2018
+ * Not authenticated
2019
+ */
2020
+ 401: unknown;
2021
+ /**
2022
+ * Tag not found
2023
+ */
2024
+ 404: unknown;
1601
2025
  /**
1602
- * Returns a validation error if any of the search parameters in the request are invalid
2026
+ * Internal server error
1603
2027
  */
1604
- 400: Blob | File;
2028
+ 500: unknown;
1605
2029
  };
1606
- export type GetInfrastructureError = GetInfrastructureErrors[keyof GetInfrastructureErrors];
1607
- export type GetInfrastructureResponses = {
2030
+ export type GetTagResponses = {
1608
2031
  /**
1609
- * An array of instances returned by the search
2032
+ * Tag details
1610
2033
  */
1611
- 200: Array<InfrastructureInstance>;
2034
+ 200: RegistryTag;
1612
2035
  };
1613
- export type GetInfrastructureResponse = GetInfrastructureResponses[keyof GetInfrastructureResponses];
1614
- export type GetFacetsData = {
2036
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2037
+ export type GetOrganizationData = {
1615
2038
  body?: never;
1616
2039
  path?: never;
1617
2040
  query?: never;
1618
- url: '/infrastructure/facets';
2041
+ url: '/organization';
1619
2042
  };
1620
- export type GetFacetsResponses = {
2043
+ export type GetOrganizationResponses = {
1621
2044
  /**
1622
- * Calculates search facets of the infrastructure catalog
2045
+ * Returns a single object containing organization details.
1623
2046
  */
1624
- 200: Array<{
1625
- /**
1626
- * Limit selection of cloud providers to this list. For the full list of supported providers, see [Providers](https://cloudfleet.ai/docs/cloud-infrastructure/providers/)
1627
- */
1628
- provider?: Array<string>;
1629
- /**
1630
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1631
- */
1632
- region?: Array<string>;
1633
- /**
1634
- * Limits selection of cloud sub-regions to this list of Cloudfleet sub-regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1635
- */
1636
- sub_region?: Array<string>;
1637
- /**
1638
- * Limits selection of cloud regions to this list of canonical provider regions
1639
- */
1640
- csp_region?: Array<string>;
1641
- /**
1642
- * Minimum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1643
- */
1644
- vcpu_min?: number;
1645
- /**
1646
- * Maximum number of vCPUs as defined by the cloud service provider. Some cloud providers use hyperthreading, so the number of vCPUs may be twice as high as the number of physical cores.
1647
- */
1648
- vcpu_max?: number;
1649
- /**
1650
- * Minimum amount of RAM in gibibytes (GiB)
1651
- */
1652
- memory_min?: number;
1653
- /**
1654
- * Maximum amount of RAM in gibibytes (GiB)
1655
- */
1656
- memory_max?: number;
1657
- /**
1658
- * Minimum volume of directly attached, block-device local storage in gibibytes (GiB)
1659
- */
1660
- storage_local_min?: number;
1661
- /**
1662
- * Maximum volume of directly attached, block-device local storage in gibibytes (GiB)
1663
- */
1664
- storage_local_max?: number;
1665
- /**
1666
- * List of Normalized accelerator model names. For example, all variations of Nvidia A100 GPUs will have 'A100' as accelerator name with various memory configurations set in accelerator_memory field
1667
- */
1668
- accelerator_name?: Array<string>;
1669
- /**
1670
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
1671
- */
1672
- accelerator_manufacturer?: Array<string>;
1673
- /**
1674
- * Minimum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1675
- */
1676
- accelerator_count_min?: number;
1677
- /**
1678
- * Maximum number of accelerators available on the instance. Some cloud providers support shared accelerators, so the number of accelerators may be a fraction of the number of physical accelerators.
1679
- */
1680
- accelerator_count_max?: number;
1681
- /**
1682
- * Minimum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1683
- */
1684
- accelerator_memory_min?: number;
1685
- /**
1686
- * Maximum amount of accelerator memory available to each accelerator. For example, Nvidia A100 GPUs will typically have '40.0' gibibytes (GiB) of memory, while A100 GPUs with HBM2E memory will have '80.0' gibibytes (GiB) of memory
1687
- */
1688
- accelerator_memory_max?: number;
1689
- /**
1690
- * Minimum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
1691
- */
1692
- price_min?: number;
1693
- /**
1694
- * Maximum price of running the inctance per hour in USD as defined by the cloud service provider. The cheapest instance will be selected.
1695
- */
1696
- price_max?: number;
1697
- /**
1698
- * Structured array of regions and sub-regions
1699
- */
1700
- regions_struct?: Array<{
1701
- /**
1702
- * Limits selection of cloud regions to this list of Cloudfleet regions. For the full list of normalized regions and their mapping to CSP regions, see [Regions](https://cloudfleet.ai/docs/cloud-infrastructure/node-regions/)
1703
- */
1704
- region?: string;
1705
- sub_region?: Array<string>;
1706
- }>;
1707
- /**
1708
- * Structured array of regions and sub-regions
1709
- */
1710
- accelerators_struct?: Array<{
1711
- /**
1712
- * List of normalized accelerator manufacturer names. For example, all Nvidia GPUs will have 'NVIDIA' as accelerator manufacturer
1713
- */
1714
- accelerator_manufacturer?: string;
1715
- accelerator_name?: Array<string>;
1716
- }>;
1717
- /**
1718
- * Total number of instances in the catalog
1719
- */
1720
- count_total?: number;
1721
- /**
1722
- * Total number of instances in the catalog with at least 1 accelerator
1723
- */
1724
- count_accelerators?: number;
1725
- /**
1726
- * Total number of unique instances types in the catalog
1727
- */
1728
- count_instance_types?: number;
2047
+ 200: Organization;
2048
+ };
2049
+ export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
2050
+ export type CreateOrganizationData = {
2051
+ body: OrganizationCreateInput;
2052
+ path?: never;
2053
+ query?: never;
2054
+ url: '/organization';
2055
+ };
2056
+ export type CreateOrganizationResponses = {
2057
+ /**
2058
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
2059
+ *
2060
+ */
2061
+ 200: OrganizationCreateOutput;
2062
+ };
2063
+ export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses];
2064
+ export type GetBasicPriceConsentData = {
2065
+ body?: never;
2066
+ path?: never;
2067
+ query?: never;
2068
+ url: '/organization/basic-price-consent';
2069
+ };
2070
+ export type GetBasicPriceConsentResponses = {
2071
+ /**
2072
+ * Returns the current consent status.
2073
+ */
2074
+ 200: BasicPriceConsent;
2075
+ };
2076
+ export type GetBasicPriceConsentResponse = GetBasicPriceConsentResponses[keyof GetBasicPriceConsentResponses];
2077
+ export type SetBasicPriceConsentData = {
2078
+ body: BasicPriceConsentInput;
2079
+ path?: never;
2080
+ query?: never;
2081
+ url: '/organization/basic-price-consent';
2082
+ };
2083
+ export type SetBasicPriceConsentErrors = {
2084
+ /**
2085
+ * The authenticated principal has no email address (e.g. a service account) and cannot record this decision.
2086
+ *
2087
+ */
2088
+ 401: unknown;
2089
+ /**
2090
+ * The consent flow does not apply to this organization.
2091
+ */
2092
+ 409: unknown;
2093
+ };
2094
+ export type SetBasicPriceConsentResponses = {
2095
+ /**
2096
+ * Decision recorded. Returns the updated consent status.
2097
+ */
2098
+ 200: BasicPriceConsent;
2099
+ };
2100
+ export type SetBasicPriceConsentResponse = SetBasicPriceConsentResponses[keyof SetBasicPriceConsentResponses];
2101
+ export type PostMcpData = {
2102
+ /**
2103
+ * JSON-RPC 2.0 request payload
2104
+ */
2105
+ body: {
2106
+ jsonrpc?: string;
2107
+ method?: string;
2108
+ id?: string | number;
1729
2109
  /**
1730
- * Total number of unique instances types in the catalog with at least 1 accelerator
2110
+ * Method-specific parameters
1731
2111
  */
1732
- count_accelerators_instance_types?: number;
1733
- }>;
2112
+ params?: {
2113
+ [key: string]: unknown;
2114
+ };
2115
+ };
2116
+ path?: never;
2117
+ query?: never;
2118
+ url: '/mcp';
1734
2119
  };
1735
- export type GetFacetsResponse = GetFacetsResponses[keyof GetFacetsResponses];
1736
- export type GetRegionsData = {
2120
+ export type PostMcpErrors = {
2121
+ /**
2122
+ * Not authenticated
2123
+ */
2124
+ 401: unknown;
2125
+ };
2126
+ export type PostMcpResponses = {
2127
+ /**
2128
+ * JSON-RPC 2.0 success or error response
2129
+ */
2130
+ 200: {
2131
+ jsonrpc?: string;
2132
+ id?: string | number;
2133
+ result?: {
2134
+ [key: string]: unknown;
2135
+ };
2136
+ error?: {
2137
+ code?: number;
2138
+ message?: string;
2139
+ };
2140
+ };
2141
+ };
2142
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2143
+ export type ListMarketplaceChartsData = {
1737
2144
  body?: never;
1738
2145
  path?: never;
1739
2146
  query?: never;
1740
- url: '/infrastructure/regions';
2147
+ url: '/marketplace';
1741
2148
  };
1742
- export type GetRegionsResponses = {
2149
+ export type ListMarketplaceChartsErrors = {
1743
2150
  /**
1744
- * Available Cloudfleet regions and Kubernetes versions.
2151
+ * Not authenticated
1745
2152
  */
1746
- 200: {
1747
- [key: string]: unknown;
2153
+ 401: unknown;
2154
+ };
2155
+ export type ListMarketplaceChartsResponses = {
2156
+ /**
2157
+ * An array of chart listings in the marketplace.
2158
+ */
2159
+ 200: Array<MarketplaceListing>;
2160
+ };
2161
+ export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
2162
+ export type GetMarketplaceChartFilesData = {
2163
+ body?: never;
2164
+ path: {
2165
+ /**
2166
+ * Name of the chart in the marketplace.
2167
+ */
2168
+ chart_name: string;
2169
+ /**
2170
+ * 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).
2171
+ */
2172
+ version_channel: string;
1748
2173
  };
2174
+ query?: never;
2175
+ url: '/marketplace/{chart_name}/files/{version_channel}';
1749
2176
  };
1750
- export type GetRegionsResponse = GetRegionsResponses[keyof GetRegionsResponses];
2177
+ export type GetMarketplaceChartFilesErrors = {
2178
+ /**
2179
+ * Chart not found or no version matches the channel
2180
+ */
2181
+ 404: unknown;
2182
+ };
2183
+ export type GetMarketplaceChartFilesResponses = {
2184
+ /**
2185
+ * Returns an object containing the chart files for the latest matching version.
2186
+ */
2187
+ 200: MarketplaceListingFiles;
2188
+ };
2189
+ export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
1751
2190
  export type ListInvitesData = {
1752
2191
  body?: never;
1753
2192
  path?: never;
@@ -1768,12 +2207,7 @@ export type ListInvitesResponses = {
1768
2207
  };
1769
2208
  export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
1770
2209
  export type CreateInviteData = {
1771
- body: {
1772
- /**
1773
- * User email address
1774
- */
1775
- email?: string;
1776
- };
2210
+ body: InviteCreateInput;
1777
2211
  path?: never;
1778
2212
  query?: never;
1779
2213
  url: '/invites';
@@ -1798,9 +2232,18 @@ export type GetInviteData = {
1798
2232
  };
1799
2233
  export type GetInviteResponses = {
1800
2234
  /**
1801
- * Returns a single object containing invite details.
2235
+ * The invitation code is valid. Returns the invited email and organization.
1802
2236
  */
1803
- 200: Invite;
2237
+ 200: {
2238
+ /**
2239
+ * Email address the invite was issued to.
2240
+ */
2241
+ email?: string;
2242
+ /**
2243
+ * Identifier of the organization the invite grants access to.
2244
+ */
2245
+ organization_id?: string;
2246
+ };
1804
2247
  };
1805
2248
  export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
1806
2249
  export type DeleteInviteData = {
@@ -1820,347 +2263,658 @@ export type DeleteInviteResponses = {
1820
2263
  */
1821
2264
  200: unknown;
1822
2265
  };
1823
- export type GetOrganizationData = {
2266
+ export type QueryClusterData = {
1824
2267
  body?: never;
1825
- path?: never;
2268
+ path: {
2269
+ /**
2270
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2271
+ */
2272
+ cluster_id: string;
2273
+ };
1826
2274
  query?: never;
1827
- url: '/organization';
2275
+ url: '/clusters/{cluster_id}/query';
1828
2276
  };
1829
- export type GetOrganizationResponses = {
2277
+ export type QueryClusterErrors = {
1830
2278
  /**
1831
- * Returns a single object containing organization details.
2279
+ * Not authenticated
1832
2280
  */
1833
- 200: Organization;
2281
+ 401: unknown;
1834
2282
  };
1835
- export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
1836
- export type CreateOrganizationData = {
1837
- body: OrganizationCreateInput;
2283
+ export type QueryClusterResponses = {
2284
+ /**
2285
+ * Kubernetes API response
2286
+ */
2287
+ 200: unknown;
2288
+ };
2289
+ export type ListFleetsData = {
2290
+ body?: never;
2291
+ path: {
2292
+ /**
2293
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2294
+ */
2295
+ cluster_id: string;
2296
+ };
2297
+ query?: never;
2298
+ url: '/clusters/{cluster_id}/fleets';
2299
+ };
2300
+ export type ListFleetsErrors = {
2301
+ /**
2302
+ * Not authenticated
2303
+ */
2304
+ 401: unknown;
2305
+ };
2306
+ export type ListFleetsResponses = {
2307
+ /**
2308
+ * An array of fleets
2309
+ */
2310
+ 200: Array<Fleet>;
2311
+ };
2312
+ export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
2313
+ export type CreateFleetData = {
2314
+ body: FleetCreateInput;
2315
+ path: {
2316
+ /**
2317
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2318
+ */
2319
+ cluster_id: string;
2320
+ };
2321
+ query?: never;
2322
+ url: '/clusters/{cluster_id}/fleets';
2323
+ };
2324
+ export type CreateFleetErrors = {
2325
+ /**
2326
+ * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
2327
+ */
2328
+ 402: string;
2329
+ /**
2330
+ * 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.
2331
+ */
2332
+ 409: string;
2333
+ };
2334
+ export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
2335
+ export type CreateFleetResponses = {
2336
+ /**
2337
+ * Successfully created. Returns created Fleet ID.
2338
+ */
2339
+ 200: string;
2340
+ };
2341
+ export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
2342
+ export type DeleteFleetData = {
2343
+ body?: never;
2344
+ path: {
2345
+ /**
2346
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2347
+ */
2348
+ cluster_id: string;
2349
+ /**
2350
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2351
+ */
2352
+ fleet_name: string;
2353
+ };
2354
+ query?: never;
2355
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2356
+ };
2357
+ export type DeleteFleetErrors = {
2358
+ /**
2359
+ * 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.
2360
+ */
2361
+ 409: string;
2362
+ };
2363
+ export type DeleteFleetError = DeleteFleetErrors[keyof DeleteFleetErrors];
2364
+ export type DeleteFleetResponses = {
2365
+ /**
2366
+ * Successfully deleted.
2367
+ */
2368
+ 200: string;
2369
+ };
2370
+ export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
2371
+ export type GetFleetData = {
2372
+ body?: never;
2373
+ path: {
2374
+ /**
2375
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2376
+ */
2377
+ cluster_id: string;
2378
+ /**
2379
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2380
+ */
2381
+ fleet_name: string;
2382
+ };
2383
+ query?: never;
2384
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2385
+ };
2386
+ export type GetFleetResponses = {
2387
+ /**
2388
+ * Returns a single object containing fleet details.
2389
+ */
2390
+ 200: Fleet;
2391
+ };
2392
+ export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
2393
+ export type UpdateFleetData = {
2394
+ body: FleetUpdateInput;
2395
+ path: {
2396
+ /**
2397
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2398
+ */
2399
+ cluster_id: string;
2400
+ /**
2401
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2402
+ */
2403
+ fleet_name: string;
2404
+ };
2405
+ query?: never;
2406
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2407
+ };
2408
+ export type UpdateFleetErrors = {
2409
+ /**
2410
+ * Organization must have a valid payment method configured to access this endpoint.
2411
+ */
2412
+ 402: string;
2413
+ /**
2414
+ * 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.
2415
+ */
2416
+ 409: string;
2417
+ };
2418
+ export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
2419
+ export type UpdateFleetResponses = {
2420
+ /**
2421
+ * Successfully updated.
2422
+ */
2423
+ 200: string;
2424
+ };
2425
+ export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
2426
+ export type ListChartsData = {
2427
+ body?: never;
2428
+ path: {
2429
+ /**
2430
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2431
+ */
2432
+ cluster_id: string;
2433
+ };
2434
+ query?: never;
2435
+ url: '/clusters/{cluster_id}/charts';
2436
+ };
2437
+ export type ListChartsErrors = {
2438
+ /**
2439
+ * Not authenticated
2440
+ */
2441
+ 401: unknown;
2442
+ };
2443
+ export type ListChartsResponses = {
2444
+ /**
2445
+ * An array of charts
2446
+ */
2447
+ 200: Array<Chart>;
2448
+ };
2449
+ export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
2450
+ export type CreateChartData = {
2451
+ body: ChartCreateInput;
2452
+ path: {
2453
+ /**
2454
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2455
+ */
2456
+ cluster_id: string;
2457
+ };
2458
+ query?: never;
2459
+ url: '/clusters/{cluster_id}/charts';
2460
+ };
2461
+ export type CreateChartErrors = {
2462
+ /**
2463
+ * 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.
2464
+ */
2465
+ 409: string;
2466
+ };
2467
+ export type CreateChartError = CreateChartErrors[keyof CreateChartErrors];
2468
+ export type CreateChartResponses = {
2469
+ /**
2470
+ * Successfully created. Returns created Chart ID.
2471
+ */
2472
+ 200: string;
2473
+ };
2474
+ export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
2475
+ export type DeleteChartData = {
2476
+ body?: never;
2477
+ path: {
2478
+ /**
2479
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2480
+ */
2481
+ cluster_id: string;
2482
+ /**
2483
+ * Chart deployment name as the unique identifier of the chart.
2484
+ */
2485
+ chart_name: string;
2486
+ };
2487
+ query?: never;
2488
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2489
+ };
2490
+ export type DeleteChartErrors = {
2491
+ /**
2492
+ * 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.
2493
+ */
2494
+ 409: string;
2495
+ };
2496
+ export type DeleteChartError = DeleteChartErrors[keyof DeleteChartErrors];
2497
+ export type DeleteChartResponses = {
2498
+ /**
2499
+ * Successfully deleted.
2500
+ */
2501
+ 200: string;
2502
+ };
2503
+ export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
2504
+ export type GetChartData = {
2505
+ body?: never;
2506
+ path: {
2507
+ /**
2508
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2509
+ */
2510
+ cluster_id: string;
2511
+ /**
2512
+ * Chart deployment name as the unique identifier of the chart.
2513
+ */
2514
+ chart_name: string;
2515
+ };
2516
+ query?: never;
2517
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2518
+ };
2519
+ export type GetChartResponses = {
2520
+ /**
2521
+ * Returns a single object containing chart details.
2522
+ */
2523
+ 200: Chart;
2524
+ };
2525
+ export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
2526
+ export type UpdateChartData = {
2527
+ body: ChartUpdateInput;
2528
+ path: {
2529
+ /**
2530
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2531
+ */
2532
+ cluster_id: string;
2533
+ /**
2534
+ * Chart deployment name as the unique identifier of the chart.
2535
+ */
2536
+ chart_name: string;
2537
+ };
2538
+ query?: never;
2539
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2540
+ };
2541
+ export type UpdateChartErrors = {
2542
+ /**
2543
+ * 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.
2544
+ */
2545
+ 409: string;
2546
+ };
2547
+ export type UpdateChartError = UpdateChartErrors[keyof UpdateChartErrors];
2548
+ export type UpdateChartResponses = {
2549
+ /**
2550
+ * Successfully updated.
2551
+ */
2552
+ 200: string;
2553
+ };
2554
+ export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
2555
+ export type ListClustersData = {
2556
+ body?: never;
1838
2557
  path?: never;
1839
2558
  query?: never;
1840
- url: '/organization';
2559
+ url: '/clusters';
1841
2560
  };
1842
- export type CreateOrganizationResponses = {
2561
+ export type ListClustersErrors = {
1843
2562
  /**
1844
- * Successfully created a new organization.
2563
+ * Not authenticated
1845
2564
  */
1846
- 200: unknown;
2565
+ 401: unknown;
1847
2566
  };
1848
- export type UpdateOrganizationData = {
1849
- body: OrganizationUpdateInput;
2567
+ export type ListClustersResponses = {
2568
+ /**
2569
+ * An array of clusters
2570
+ */
2571
+ 200: Array<Cluster>;
2572
+ };
2573
+ export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
2574
+ export type CreateClusterData = {
2575
+ body: ClusterCreateInput;
1850
2576
  path?: never;
1851
2577
  query?: never;
1852
- url: '/organization';
2578
+ url: '/clusters';
1853
2579
  };
1854
- export type UpdateOrganizationResponses = {
2580
+ export type CreateClusterErrors = {
1855
2581
  /**
1856
- * Successfully updated. Returns updated organization details.
2582
+ * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
1857
2583
  */
1858
- 200: Organization;
2584
+ 402: string;
1859
2585
  };
1860
- export type UpdateOrganizationResponse = UpdateOrganizationResponses[keyof UpdateOrganizationResponses];
1861
- export type ListTokensData = {
2586
+ export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
2587
+ export type CreateClusterResponses = {
2588
+ /**
2589
+ * Successfully created. Returns created Cluster ID.
2590
+ */
2591
+ 200: string;
2592
+ };
2593
+ export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
2594
+ export type DeleteClusterData = {
1862
2595
  body?: never;
1863
- path?: never;
2596
+ path: {
2597
+ /**
2598
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2599
+ */
2600
+ cluster_id: string;
2601
+ };
1864
2602
  query?: never;
1865
- url: '/tokens';
2603
+ url: '/clusters/{cluster_id}';
1866
2604
  };
1867
- export type ListTokensErrors = {
2605
+ export type DeleteClusterErrors = {
1868
2606
  /**
1869
- * Not authenticated
2607
+ * Cluster not found; it does not exist or has already been deleted.
1870
2608
  */
1871
- 401: unknown;
1872
- };
1873
- export type ListTokensResponses = {
2609
+ 404: unknown;
1874
2610
  /**
1875
- * Returns a list of access token details with masked secrets.
2611
+ * 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.
1876
2612
  */
1877
- 200: Array<Token>;
1878
- };
1879
- export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1880
- export type CreateTokenData = {
1881
- body: TokenCreateInput;
1882
- path?: never;
1883
- query?: never;
1884
- url: '/tokens';
1885
- };
1886
- export type CreateTokenErrors = {
2613
+ 409: string;
1887
2614
  /**
1888
- * Not authenticated
2615
+ * Transient failure tearing down the cluster; retry the request.
1889
2616
  */
1890
- 401: unknown;
2617
+ 503: unknown;
1891
2618
  };
1892
- export type CreateTokenResponses = {
2619
+ export type DeleteClusterError = DeleteClusterErrors[keyof DeleteClusterErrors];
2620
+ export type DeleteClusterResponses = {
1893
2621
  /**
1894
- * Successfully created. Returns created token details with unmasked/raw secret.
2622
+ * Successfully deleted. The cluster has been torn down.
1895
2623
  */
1896
- 200: Token;
2624
+ 200: string;
1897
2625
  };
1898
- export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1899
- export type DeleteTokenData = {
2626
+ export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
2627
+ export type GetClusterData = {
1900
2628
  body?: never;
1901
2629
  path: {
1902
2630
  /**
1903
- * Generated unique identifier of the access token.
2631
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1904
2632
  */
1905
- token_id: string;
2633
+ cluster_id: string;
1906
2634
  };
1907
2635
  query?: never;
1908
- url: '/tokens/{token_id}';
2636
+ url: '/clusters/{cluster_id}';
1909
2637
  };
1910
- export type DeleteTokenResponses = {
2638
+ export type GetClusterResponses = {
1911
2639
  /**
1912
- * Successfully deleted.
2640
+ * Returns a single object containing cluster details.
1913
2641
  */
1914
- 200: unknown;
2642
+ 200: Cluster;
1915
2643
  };
1916
- export type GetTokenData = {
1917
- body?: never;
2644
+ export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
2645
+ export type UpdateClusterData = {
2646
+ body: ClusterUpdateInput;
1918
2647
  path: {
1919
2648
  /**
1920
- * Generated unique identifier of the access token.
2649
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1921
2650
  */
1922
- token_id: string;
2651
+ cluster_id: string;
1923
2652
  };
1924
2653
  query?: never;
1925
- url: '/tokens/{token_id}';
2654
+ url: '/clusters/{cluster_id}';
1926
2655
  };
1927
- export type GetTokenErrors = {
2656
+ export type UpdateClusterErrors = {
1928
2657
  /**
1929
- * Not authenticated
2658
+ * 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.
1930
2659
  */
1931
- 401: unknown;
2660
+ 409: string;
1932
2661
  };
1933
- export type GetTokenResponses = {
2662
+ export type UpdateClusterError = UpdateClusterErrors[keyof UpdateClusterErrors];
2663
+ export type UpdateClusterResponses = {
1934
2664
  /**
1935
- * Returns access token details with masked secret.
2665
+ * Successfully updated. Returns updated cluster details.
1936
2666
  */
1937
- 200: Token;
2667
+ 200: Cluster;
1938
2668
  };
1939
- export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1940
- export type UpdateTokenData = {
1941
- body: TokenUpdateInput;
2669
+ export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
2670
+ export type GetJoinInformationData = {
2671
+ body?: never;
1942
2672
  path: {
1943
2673
  /**
1944
- * Generated unique identifier of the access token.
2674
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1945
2675
  */
1946
- token_id: string;
2676
+ cluster_id: string;
1947
2677
  };
1948
2678
  query?: never;
1949
- url: '/tokens/{token_id}';
2679
+ url: '/clusters/{cluster_id}/join_information';
1950
2680
  };
1951
- export type UpdateTokenErrors = {
2681
+ export type GetJoinInformationErrors = {
1952
2682
  /**
1953
2683
  * Not authenticated
1954
2684
  */
1955
2685
  401: unknown;
2686
+ /**
2687
+ * 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.
2688
+ */
2689
+ 409: string;
2690
+ /**
2691
+ * 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.
2692
+ */
2693
+ 426: string;
1956
2694
  };
1957
- export type UpdateTokenResponses = {
2695
+ export type GetJoinInformationError = GetJoinInformationErrors[keyof GetJoinInformationErrors];
2696
+ export type GetJoinInformationResponses = {
1958
2697
  /**
1959
- * Successfully updated. Returns updated token details with masked secret.
2698
+ * An object of cluster join information
1960
2699
  */
1961
- 200: Token;
2700
+ 200: ClusterJoinInformation;
1962
2701
  };
1963
- export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1964
- export type RegenerateTokenData = {
2702
+ export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2703
+ export type GetUsageData = {
1965
2704
  body?: never;
1966
- path: {
2705
+ path?: never;
2706
+ query?: {
1967
2707
  /**
1968
- * Generated unique identifier of the access token.
2708
+ * 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)
1969
2709
  */
1970
- token_id: string;
2710
+ granularity?: 'hourly' | 'daily' | 'monthly';
1971
2711
  };
1972
- query?: never;
1973
- url: '/tokens/{token_id}/secret';
2712
+ url: '/billing/usage';
1974
2713
  };
1975
- export type RegenerateTokenErrors = {
2714
+ export type GetUsageErrors = {
1976
2715
  /**
1977
2716
  * Not authenticated
1978
2717
  */
1979
2718
  401: unknown;
1980
2719
  };
1981
- export type RegenerateTokenResponses = {
2720
+ export type GetUsageResponses = {
1982
2721
  /**
1983
- * Successfully updated. Returns updated token details with unmasked / raw secret.
2722
+ * Usage data with facets for filtering
1984
2723
  */
1985
- 200: Token;
2724
+ 200: UsageResponse;
1986
2725
  };
1987
- export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
1988
- export type ListUserOrganizationsData = {
2726
+ export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
2727
+ export type GetPaymentMethodSecretData = {
1989
2728
  body?: never;
1990
- path: {
1991
- /**
1992
- * User email address.
1993
- */
1994
- email: string;
1995
- };
2729
+ path?: never;
1996
2730
  query?: never;
1997
- url: '/users/organizations/{email}';
2731
+ url: '/billing/payment-method';
1998
2732
  };
1999
- export type ListUserOrganizationsResponses = {
2733
+ export type GetPaymentMethodSecretResponses = {
2000
2734
  /**
2001
- * An array of organizations the user belongs to.
2735
+ * 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.
2736
+ *
2002
2737
  */
2003
- 200: Array<{
2004
- /**
2005
- * Unique identifier of the organization. UUID v4 string in canonical form
2006
- */
2007
- realm?: string;
2738
+ 200: {
2008
2739
  /**
2009
- * Human-readable name of the organization
2740
+ * The client secret.
2010
2741
  */
2011
- displayName?: string;
2012
- }>;
2742
+ id?: string;
2743
+ };
2013
2744
  };
2014
- export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
2015
- export type ListUsersData = {
2745
+ export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
2746
+ export type ListPaymentMethodsData = {
2016
2747
  body?: never;
2017
2748
  path?: never;
2018
2749
  query?: never;
2019
- url: '/users';
2750
+ url: '/billing/payment-methods';
2020
2751
  };
2021
- export type ListUsersErrors = {
2752
+ export type ListPaymentMethodsErrors = {
2022
2753
  /**
2023
2754
  * Not authenticated
2024
2755
  */
2025
2756
  401: unknown;
2026
2757
  };
2027
- export type ListUsersResponses = {
2758
+ export type ListPaymentMethodsResponses = {
2028
2759
  /**
2029
- * An array of users
2760
+ * An array of payment methods.
2030
2761
  */
2031
- 200: Array<User>;
2762
+ 200: Array<PaymentMethod>;
2032
2763
  };
2033
- export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
2034
- export type CreateUserData = {
2035
- body: UserCreateInput;
2036
- path?: never;
2764
+ export type ListPaymentMethodsResponse = ListPaymentMethodsResponses[keyof ListPaymentMethodsResponses];
2765
+ export type SetDefaultPaymentMethodData = {
2766
+ body?: never;
2767
+ path: {
2768
+ /**
2769
+ * Stripe payment method identifier.
2770
+ */
2771
+ paymentMethodId: string;
2772
+ };
2037
2773
  query?: never;
2038
- url: '/users';
2774
+ url: '/billing/payment-methods/{paymentMethodId}/default';
2039
2775
  };
2040
- export type CreateUserResponses = {
2776
+ export type SetDefaultPaymentMethodErrors = {
2041
2777
  /**
2042
- * Successfully created. Returns created user details.
2778
+ * The bank transfer payment method cannot be set as the default.
2043
2779
  */
2044
- 200: User;
2780
+ 400: unknown;
2781
+ /**
2782
+ * Not authenticated
2783
+ */
2784
+ 401: unknown;
2785
+ /**
2786
+ * Payment method not found.
2787
+ */
2788
+ 404: unknown;
2045
2789
  };
2046
- export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
2047
- export type DeleteUserData = {
2790
+ export type SetDefaultPaymentMethodResponses = {
2791
+ /**
2792
+ * Default payment method updated.
2793
+ */
2794
+ 204: void;
2795
+ };
2796
+ export type SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponses[keyof SetDefaultPaymentMethodResponses];
2797
+ export type DeletePaymentMethodData = {
2048
2798
  body?: never;
2049
2799
  path: {
2050
2800
  /**
2051
- * Unique user identifier. UUID v4 string in canonical form
2801
+ * Stripe payment method identifier.
2052
2802
  */
2053
- user_id: string;
2803
+ paymentMethodId: string;
2054
2804
  };
2055
2805
  query?: never;
2056
- url: '/users/{user_id}';
2806
+ url: '/billing/payment-methods/{paymentMethodId}';
2057
2807
  };
2058
- export type DeleteUserErrors = {
2808
+ export type DeletePaymentMethodErrors = {
2059
2809
  /**
2060
- * Deleting own user is not allowed. Delete your organization instead.
2810
+ * The bank transfer payment method cannot be removed.
2061
2811
  */
2062
2812
  400: unknown;
2063
2813
  /**
2064
2814
  * Not authenticated
2065
2815
  */
2066
2816
  401: unknown;
2817
+ /**
2818
+ * Payment method not found.
2819
+ */
2820
+ 404: unknown;
2821
+ /**
2822
+ * Cannot delete the only remaining payment method.
2823
+ */
2824
+ 409: unknown;
2067
2825
  };
2068
- export type DeleteUserResponses = {
2826
+ export type DeletePaymentMethodResponses = {
2069
2827
  /**
2070
- * User profile information
2828
+ * Payment method deleted.
2071
2829
  */
2072
- 200: User;
2830
+ 204: void;
2073
2831
  };
2074
- export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
2075
- export type GetUserData = {
2832
+ export type DeletePaymentMethodResponse = DeletePaymentMethodResponses[keyof DeletePaymentMethodResponses];
2833
+ export type ListInvoicesData = {
2076
2834
  body?: never;
2077
- path: {
2078
- /**
2079
- * Unique user identifier. UUID v4 string in canonical form
2080
- */
2081
- user_id: string;
2082
- };
2835
+ path?: never;
2083
2836
  query?: never;
2084
- url: '/users/{user_id}';
2837
+ url: '/billing/invoices';
2085
2838
  };
2086
- export type GetUserErrors = {
2839
+ export type ListInvoicesErrors = {
2087
2840
  /**
2088
2841
  * Not authenticated
2089
2842
  */
2090
2843
  401: unknown;
2091
2844
  };
2092
- export type GetUserResponses = {
2845
+ export type ListInvoicesResponses = {
2093
2846
  /**
2094
- * User profile information
2847
+ * An array of usage records.
2095
2848
  */
2096
- 200: User;
2849
+ 200: Array<Invoice>;
2097
2850
  };
2098
- export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
2099
- export type UpdateUserData = {
2100
- body: UserUpdateInput;
2101
- path: {
2102
- /**
2103
- * Unique user identifier. UUID v4 string in canonical form
2104
- */
2105
- user_id: string;
2106
- };
2851
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
2852
+ export type GetContactData = {
2853
+ body?: never;
2854
+ path?: never;
2107
2855
  query?: never;
2108
- url: '/users/{user_id}';
2856
+ url: '/billing/contact';
2109
2857
  };
2110
- export type UpdateUserResponses = {
2858
+ export type GetContactResponses = {
2111
2859
  /**
2112
- * Successfully created. Returns created user details.
2860
+ * Returns a single object containing organization contact and billing address details.
2113
2861
  */
2114
- 200: User;
2862
+ 200: BillingContact;
2115
2863
  };
2116
- export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
2117
- export type DeleteClusterPermissionsData = {
2864
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
2865
+ export type UpdateContactData = {
2866
+ body: BillingContact;
2867
+ path?: never;
2868
+ query?: never;
2869
+ url: '/billing/contact';
2870
+ };
2871
+ export type UpdateContactResponses = {
2872
+ /**
2873
+ * Successfully updated. Returns updated organization details.
2874
+ */
2875
+ 200: BillingContact;
2876
+ };
2877
+ export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
2878
+ export type GetCreditsData = {
2118
2879
  body?: never;
2119
- path: {
2120
- /**
2121
- * Unique user identifier. UUID v4 string in canonical form
2122
- */
2123
- user_id: string;
2124
- /**
2125
- * Unique cluster identifier. UUID v4 string in canonical form
2126
- */
2127
- cluster_id: string;
2128
- };
2880
+ path?: never;
2129
2881
  query?: never;
2130
- url: '/users/{user_id}/clusters/{cluster_id}';
2882
+ url: '/billing/credits';
2883
+ };
2884
+ export type GetCreditsErrors = {
2885
+ /**
2886
+ * Not authenticated
2887
+ */
2888
+ 401: unknown;
2131
2889
  };
2132
- export type DeleteClusterPermissionsResponses = {
2890
+ export type GetCreditsResponses = {
2133
2891
  /**
2134
- * Successfully removed user from the cluster. Returns updated user details.
2892
+ * An array of the applied promotional credits records.
2135
2893
  */
2136
- 200: User;
2894
+ 200: Array<BillingCredits>;
2137
2895
  };
2138
- export type DeleteClusterPermissionsResponse = DeleteClusterPermissionsResponses[keyof DeleteClusterPermissionsResponses];
2139
- export type SetClusterPermissionsData = {
2896
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
2897
+ export type RedeemCreditsData = {
2140
2898
  body: {
2141
2899
  /**
2142
- * Level of permissions for the user to access the cluster
2143
- */
2144
- permissions?: 'readwrite' | 'readonly';
2145
- };
2146
- path: {
2147
- /**
2148
- * Unique user identifier. UUID v4 string in canonical form
2149
- */
2150
- user_id: string;
2151
- /**
2152
- * Unique cluster identifier. UUID v4 string in canonical form
2900
+ * Promotional code to redeem
2153
2901
  */
2154
- cluster_id: string;
2902
+ code?: string;
2155
2903
  };
2904
+ path?: never;
2156
2905
  query?: never;
2157
- url: '/users/{user_id}/clusters/{cluster_id}';
2906
+ url: '/billing/credits';
2158
2907
  };
2159
- export type SetClusterPermissionsResponses = {
2908
+ export type RedeemCreditsErrors = {
2160
2909
  /**
2161
- * Successfully created. Returns created user details.
2910
+ * Not authenticated
2162
2911
  */
2163
- 200: User;
2912
+ 401: unknown;
2913
+ };
2914
+ export type RedeemCreditsResponses = {
2915
+ /**
2916
+ * Successfully created a new organization.
2917
+ */
2918
+ 200: unknown;
2164
2919
  };
2165
- export type SetClusterPermissionsResponse = SetClusterPermissionsResponses[keyof SetClusterPermissionsResponses];
2166
2920
  //# sourceMappingURL=types.gen.d.ts.map