@cloudfleet/sdk 0.0.1-46f048b → 0.0.1-486ffca

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