@cloudfleet/sdk 0.0.1-9835b73 → 0.0.1-9bc5464

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