@cloudfleet/sdk 0.0.1-72f9b66 → 0.0.1-737b8cd

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