@cloudfleet/sdk 0.0.1-5a83a44 → 0.0.1-5ceb5df

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