@cloudfleet/sdk 0.0.1-19f2280 → 0.0.1-1a688b5

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