@cloudfleet/sdk 0.0.1-2791829 → 0.0.1-2854ca2

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