@cloudfleet/sdk 0.0.1-825c2c1 → 0.0.1-82abdfa

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.
@@ -2,6 +2,10 @@ export type ClientOptions = {
2
2
  baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
3
3
  };
4
4
  export type BillingContact = {
5
+ /**
6
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
7
+ */
8
+ type: 'business' | 'personal';
5
9
  /**
6
10
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
7
11
  */
@@ -129,9 +133,9 @@ export type Chart = {
129
133
  */
130
134
  chart: string;
131
135
  /**
132
- * Status of the chart deployment.
136
+ * Status of the chart deployment (Flux HelmRelease Ready condition reason, e.g. InstallSucceeded, UpgradeFailed, Progressing).
133
137
  */
134
- status: 'InstallSucceeded' | 'InstallFailed' | 'UpgradeSucceeded' | 'UpgradeFailed' | 'TestSucceeded' | 'TestFailed' | 'RollbackSucceeded' | 'RollbackFailed' | 'UninstallSucceeded' | 'UninstallFailed' | 'ArtifactFailed' | 'DependencyNotReady' | 'Progressing' | 'SourceNotReady';
138
+ status: string;
135
139
  /**
136
140
  * Current version of the chart deployment.
137
141
  */
@@ -169,13 +173,63 @@ export type ClusterCreateInput = {
169
173
  */
170
174
  tier: 'basic' | 'pro';
171
175
  /**
172
- * Cloudfleet control plane region. One of "staging-1a", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.
176
+ * Cloudfleet control plane region. This field can not be updated after creation.
173
177
  */
174
- region?: 'staging-1a' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
178
+ region: string;
175
179
  /**
176
180
  * Version of the kubernetes cluster.
177
181
  */
178
- version_channel?: '1.x.x-cfke.x' | '1.31.x-cfke.x' | '1.32.x-cfke.x' | '1.33.x-cfke.x';
182
+ version_channel?: string;
183
+ /**
184
+ * Release channel for the cluster's control plane.
185
+ */
186
+ release_channel?: 'rapid' | 'stable' | 'extended';
187
+ /**
188
+ * Cluster feature toggles.
189
+ */
190
+ features?: {
191
+ /**
192
+ * GPU sharing strategy.
193
+ */
194
+ gpu_sharing_strategy: 'none' | 'mps' | 'time_slicing';
195
+ /**
196
+ * Maximum number of pods that may share a single GPU.
197
+ */
198
+ gpu_max_shared_clients_per_gpu: number;
199
+ /**
200
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
201
+ */
202
+ cilium_socket_lb_host_namespace_only?: boolean;
203
+ };
204
+ /**
205
+ * Cluster networking configuration. Immutable after creation.
206
+ */
207
+ networking?: {
208
+ /**
209
+ * CIDR block for pod IPs.
210
+ */
211
+ pod_cidr?: string;
212
+ /**
213
+ * CIDR block for service IPs.
214
+ */
215
+ service_cidr?: string;
216
+ /**
217
+ * CoreDNS service IP.
218
+ */
219
+ cluster_dns?: string;
220
+ /**
221
+ * Enable IPv4+IPv6 dual-stack networking.
222
+ */
223
+ dual_stack?: boolean;
224
+ /**
225
+ * IPv6 pod CIDR. Requires dual_stack.
226
+ */
227
+ pod_cidr_v6?: string;
228
+ /**
229
+ * IPv6 service CIDR. Requires dual_stack.
230
+ */
231
+ service_cidr_v6?: string;
232
+ };
179
233
  };
180
234
  export type ClusterJoinInformation = {
181
235
  /**
@@ -190,6 +244,10 @@ export type ClusterJoinInformation = {
190
244
  * Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.
191
245
  */
192
246
  cluster_dns: string;
247
+ /**
248
+ * Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.
249
+ */
250
+ pod_cidr: string;
193
251
  /**
194
252
  * Authentication key for the cluster.
195
253
  */
@@ -247,18 +305,69 @@ export type Cluster = {
247
305
  */
248
306
  tier: 'basic' | 'pro';
249
307
  /**
250
- * Cloudfleet control plane region. One of "staging-1a", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.
308
+ * Cloudfleet control plane region. This field can not be updated after creation.
251
309
  */
252
- region?: 'staging-1a' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
310
+ region: string;
311
+ /**
312
+ * Cluster networking configuration. Immutable after creation.
313
+ */
314
+ networking?: {
315
+ /**
316
+ * CIDR block for pod IPs.
317
+ */
318
+ pod_cidr?: string;
319
+ /**
320
+ * CIDR block for service IPs.
321
+ */
322
+ service_cidr?: string;
323
+ /**
324
+ * CoreDNS service IP.
325
+ */
326
+ cluster_dns?: string;
327
+ /**
328
+ * Enable IPv4+IPv6 dual-stack networking.
329
+ */
330
+ dual_stack?: boolean;
331
+ /**
332
+ * IPv6 pod CIDR. Requires dual_stack.
333
+ */
334
+ pod_cidr_v6?: string;
335
+ /**
336
+ * IPv6 service CIDR. Requires dual_stack.
337
+ */
338
+ service_cidr_v6?: string;
339
+ };
340
+ /**
341
+ * Release channel for the cluster's control plane.
342
+ */
343
+ release_channel?: 'rapid' | 'stable' | 'extended';
344
+ /**
345
+ * Cluster feature toggles.
346
+ */
347
+ features?: {
348
+ /**
349
+ * GPU sharing strategy.
350
+ */
351
+ gpu_sharing_strategy: 'none' | 'mps' | 'time_slicing';
352
+ /**
353
+ * Maximum number of pods that may share a single GPU.
354
+ */
355
+ gpu_max_shared_clients_per_gpu: number;
356
+ /**
357
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
358
+ */
359
+ cilium_socket_lb_host_namespace_only?: boolean;
360
+ };
253
361
  /**
254
362
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
255
363
  */
256
364
  id: string;
257
365
  /**
258
- * Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.
366
+ * Status of the cluster.
259
367
  */
260
- status: 'active' | 'disabled' | 'deleted' | 'creating' | 'deployed' | 'failed' | 'updating';
368
+ status: 'creating' | 'deployed' | 'updating' | 'disabled';
261
369
  endpoint?: string | '';
370
+ endpoint_public?: string | '';
262
371
  /**
263
372
  * Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.
264
373
  */
@@ -297,6 +406,27 @@ export type ClusterUpdateInput = {
297
406
  * Version of the kubernetes cluster.
298
407
  */
299
408
  version_channel?: string;
409
+ /**
410
+ * Release channel for the cluster's control plane.
411
+ */
412
+ release_channel?: 'rapid' | 'stable' | 'extended';
413
+ /**
414
+ * Cluster feature toggles.
415
+ */
416
+ features?: {
417
+ /**
418
+ * GPU sharing strategy.
419
+ */
420
+ gpu_sharing_strategy: 'none' | 'mps' | 'time_slicing';
421
+ /**
422
+ * Maximum number of pods that may share a single GPU.
423
+ */
424
+ gpu_max_shared_clients_per_gpu: number;
425
+ /**
426
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
427
+ */
428
+ cilium_socket_lb_host_namespace_only?: boolean;
429
+ };
300
430
  };
301
431
  export type FleetCreateInput = {
302
432
  /**
@@ -304,31 +434,56 @@ export type FleetCreateInput = {
304
434
  */
305
435
  limits?: {
306
436
  /**
307
- * CPU limit in cores.
437
+ * CPU limit in cores. Maximum 100,000.
308
438
  */
309
- cpu: number;
439
+ cpu?: number;
310
440
  };
311
441
  gcp?: {
312
- enabled?: boolean;
442
+ enabled: boolean;
313
443
  /**
314
- * Project GCP Project id to deploy instances into
444
+ * 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.
315
445
  */
316
- project: string;
446
+ project?: string;
317
447
  };
318
448
  hetzner?: {
319
- enabled?: boolean;
449
+ enabled: boolean;
320
450
  /**
321
- * Hetzner Cloud API key with read / write access
451
+ * Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.
322
452
  */
323
- apiKey: string;
453
+ apiKey?: string;
324
454
  };
325
455
  aws?: {
326
- enabled?: boolean;
456
+ enabled: boolean;
457
+ /**
458
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
459
+ */
460
+ controllerRoleArn?: string;
461
+ };
462
+ /**
463
+ * 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. Omit a field to place no restriction on that key.
464
+ */
465
+ constraints?: {
466
+ /**
467
+ * Allowed values for `karpenter.sh/capacity-type`.
468
+ */
469
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
470
+ /**
471
+ * Allowed values for `kubernetes.io/arch`.
472
+ */
473
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
474
+ /**
475
+ * Allowed values for `cfke.io/instance-family`.
476
+ */
477
+ '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'>;
327
478
  /**
328
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
479
+ * Allowed values for `topology.kubernetes.io/region`.
329
480
  */
330
- controllerRoleArn: string;
481
+ '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'>;
331
482
  };
483
+ /**
484
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
485
+ */
486
+ scalingProfile?: 'aggressive' | 'conservative';
332
487
  /**
333
488
  * Unique identifier of the kubernetes fleet.
334
489
  */
@@ -340,35 +495,76 @@ export type Fleet = {
340
495
  */
341
496
  limits?: {
342
497
  /**
343
- * CPU limit in cores.
498
+ * CPU limit in cores. Maximum 100,000.
344
499
  */
345
- cpu: number;
500
+ cpu?: number;
346
501
  };
347
502
  gcp?: {
348
- enabled?: boolean;
503
+ enabled: boolean;
349
504
  /**
350
- * Project GCP Project id to deploy instances into
505
+ * 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.
351
506
  */
352
- project: string;
507
+ project?: string;
353
508
  };
354
509
  hetzner?: {
355
- enabled?: boolean;
510
+ enabled: boolean;
356
511
  /**
357
- * Hetzner Cloud API key with read / write access
512
+ * Redacted Hetzner API token. Returned as 64 asterisks when a token is configured; omitted otherwise. The real value is never echoed by the API.
358
513
  */
359
- apiKey: string;
514
+ apiKey?: string;
360
515
  };
361
516
  aws?: {
362
- enabled?: boolean;
517
+ enabled: boolean;
518
+ /**
519
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
520
+ */
521
+ controllerRoleArn?: string;
522
+ };
523
+ /**
524
+ * 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. Omit a field to place no restriction on that key.
525
+ */
526
+ constraints?: {
363
527
  /**
364
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
528
+ * Allowed values for `karpenter.sh/capacity-type`.
365
529
  */
366
- controllerRoleArn: string;
530
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
531
+ /**
532
+ * Allowed values for `kubernetes.io/arch`.
533
+ */
534
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
535
+ /**
536
+ * Allowed values for `cfke.io/instance-family`.
537
+ */
538
+ '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'>;
539
+ /**
540
+ * Allowed values for `topology.kubernetes.io/region`.
541
+ */
542
+ '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'>;
367
543
  };
544
+ /**
545
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
546
+ */
547
+ scalingProfile: 'aggressive' | 'conservative';
368
548
  /**
369
549
  * Unique identifier of the kubernetes fleet.
370
550
  */
371
551
  id: string;
552
+ /**
553
+ * Indicates whether the fleet configuration is healthy.
554
+ */
555
+ ready: boolean;
556
+ /**
557
+ * Human-readable reason the fleet is not ready. Present only when `ready` is false.
558
+ */
559
+ status_message?: string;
560
+ /**
561
+ * Creation date and time of the fleet.
562
+ */
563
+ created_at: string;
564
+ /**
565
+ * Date and time the fleet was last updated.
566
+ */
567
+ updated_at: string;
372
568
  };
373
569
  export type FleetUpdateInput = {
374
570
  /**
@@ -376,31 +572,66 @@ export type FleetUpdateInput = {
376
572
  */
377
573
  limits?: {
378
574
  /**
379
- * CPU limit in cores.
575
+ * CPU limit in cores. Maximum 100,000.
380
576
  */
381
- cpu: number;
577
+ cpu?: number;
382
578
  };
383
579
  gcp?: {
384
- enabled?: boolean;
580
+ enabled: boolean;
385
581
  /**
386
- * Project GCP Project id to deploy instances into
582
+ * 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.
387
583
  */
388
- project: string;
584
+ project?: string;
389
585
  };
390
586
  hetzner?: {
391
- enabled?: boolean;
587
+ enabled: boolean;
392
588
  /**
393
- * Hetzner Cloud API key with read / write access
589
+ * Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.
394
590
  */
395
- apiKey: string;
591
+ apiKey?: string;
396
592
  };
397
593
  aws?: {
398
- enabled?: boolean;
594
+ enabled: boolean;
595
+ /**
596
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
597
+ */
598
+ controllerRoleArn?: string;
599
+ };
600
+ /**
601
+ * 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. Omit a field to place no restriction on that key.
602
+ */
603
+ constraints?: {
399
604
  /**
400
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
605
+ * Allowed values for `karpenter.sh/capacity-type`.
401
606
  */
402
- controllerRoleArn: string;
607
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
608
+ /**
609
+ * Allowed values for `kubernetes.io/arch`.
610
+ */
611
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
612
+ /**
613
+ * Allowed values for `cfke.io/instance-family`.
614
+ */
615
+ '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'>;
616
+ /**
617
+ * Allowed values for `topology.kubernetes.io/region`.
618
+ */
619
+ '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'>;
403
620
  };
621
+ /**
622
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
623
+ */
624
+ scalingProfile: 'aggressive' | 'conservative';
625
+ };
626
+ export type InviteCreateInput = {
627
+ /**
628
+ * Email address of the user to invite.
629
+ */
630
+ email: string;
631
+ /**
632
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
633
+ */
634
+ role?: 'Administrator' | 'User';
404
635
  };
405
636
  export type Invite = {
406
637
  /**
@@ -423,6 +654,10 @@ export type Invite = {
423
654
  * Generated unique invite code.
424
655
  */
425
656
  code?: string;
657
+ /**
658
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
659
+ */
660
+ role?: 'Administrator' | 'User';
426
661
  };
427
662
  export type Invoice = {
428
663
  /**
@@ -543,6 +778,10 @@ export type MarketplaceListing = {
543
778
  };
544
779
  };
545
780
  export type OrganizationCreateInput = {
781
+ /**
782
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
783
+ */
784
+ type: 'business' | 'personal';
546
785
  /**
547
786
  * Email address used for billing as a string.
548
787
  */
@@ -564,6 +803,12 @@ export type OrganizationCreateInput = {
564
803
  */
565
804
  password: string;
566
805
  };
806
+ export type OrganizationCreateOutput = {
807
+ /**
808
+ * Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.
809
+ */
810
+ id: string;
811
+ };
567
812
  export type Organization = {
568
813
  /**
569
814
  * Unique identifier of the organization. UUID v4 string in canonical form
@@ -573,6 +818,10 @@ export type Organization = {
573
818
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
574
819
  */
575
820
  name?: string;
821
+ /**
822
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
823
+ */
824
+ type: 'business' | 'personal';
576
825
  /**
577
826
  * Creation date of the organization. ISO 8601 date string in UTC timezone
578
827
  */
@@ -631,36 +880,52 @@ export type Organization = {
631
880
  * Status of the organization. Can be `active` or `closed`, or `suspended`.
632
881
  */
633
882
  status: 'active' | 'closed' | 'suspended';
883
+ /**
884
+ * 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.
885
+ */
886
+ verification: 'none' | 'submitted' | 'verified';
634
887
  };
635
888
  export type PaymentMethod = {
636
889
  /**
637
- * Unique identifier of the organization. UUID v4 string in canonical form.
890
+ * 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.
638
891
  */
639
892
  id: string;
640
893
  /**
641
- * Whether organization payment method was set up and ready to use for payments.
894
+ * Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.
642
895
  */
643
- setup: boolean;
896
+ type: 'card' | 'sepa_debit' | 'bank_transfer';
644
897
  /**
645
- * Payment method type type. Only `card` payments supported at the moment.
646
- */
647
- type: 'card';
648
- /**
649
- * Last 4 digits of the payment card number.
898
+ * 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.
650
899
  */
651
900
  last4: string;
652
901
  /**
653
- * Two-digit number representing the card's expiration month.
902
+ * Two-digit number representing the card's expiration month. Null for SEPA Direct Debit and bank transfer.
654
903
  */
655
904
  exp_month: number;
656
905
  /**
657
- * Four-digit number representing the card's expiration year.
906
+ * 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.
658
907
  */
659
908
  exp_year: number;
660
909
  /**
661
- * Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
910
+ * Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.
911
+ */
912
+ brand: string;
913
+ /**
914
+ * 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.
662
915
  */
663
- brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
916
+ iban: string;
917
+ /**
918
+ * BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.
919
+ */
920
+ bic: string;
921
+ /**
922
+ * Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.
923
+ */
924
+ account_holder_name: string;
925
+ /**
926
+ * 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).
927
+ */
928
+ is_default: boolean;
664
929
  };
665
930
  export type PlatformQuota = {
666
931
  /**
@@ -1252,14 +1517,6 @@ export type UserCreateInput = {
1252
1517
  * User password. Must be at least 8 characters long.
1253
1518
  */
1254
1519
  password: string;
1255
- /**
1256
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1257
- */
1258
- status?: 'active' | 'inactive';
1259
- /**
1260
- * User role. Can be 'Administrator', 'User'.
1261
- */
1262
- role?: 'Administrator' | 'User';
1263
1520
  };
1264
1521
  export type User = {
1265
1522
  /**
@@ -1313,549 +1570,621 @@ export type UserUpdateInput = {
1313
1570
  */
1314
1571
  status?: 'active' | 'inactive';
1315
1572
  };
1316
- export type GetUsageData = {
1573
+ export type ListUserOrganizationsData = {
1317
1574
  body?: never;
1318
- path?: never;
1319
- query?: {
1575
+ path: {
1320
1576
  /**
1321
- * 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)
1577
+ * User email address.
1322
1578
  */
1323
- granularity?: 'hourly' | 'daily' | 'monthly';
1579
+ email: string;
1324
1580
  };
1325
- url: '/billing/usage';
1326
- };
1327
- export type GetUsageErrors = {
1328
- /**
1329
- * Not authenticated
1330
- */
1331
- 401: unknown;
1581
+ query?: never;
1582
+ url: '/users/organizations/{email}';
1332
1583
  };
1333
- export type GetUsageResponses = {
1584
+ export type ListUserOrganizationsResponses = {
1334
1585
  /**
1335
- * Usage data with facets for filtering
1586
+ * An array of organizations the user belongs to.
1336
1587
  */
1337
- 200: UsageResponse;
1588
+ 200: Array<{
1589
+ /**
1590
+ * Unique identifier of the organization. UUID v4 string in canonical form
1591
+ */
1592
+ realm?: string;
1593
+ /**
1594
+ * Human-readable name of the organization
1595
+ */
1596
+ displayName?: string;
1597
+ }>;
1338
1598
  };
1339
- export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
1340
- export type GetPaymentMethodData = {
1599
+ export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1600
+ export type ListUsersData = {
1341
1601
  body?: never;
1342
1602
  path?: never;
1343
1603
  query?: never;
1344
- url: '/billing/payment-method';
1604
+ url: '/users';
1345
1605
  };
1346
- export type GetPaymentMethodErrors = {
1606
+ export type ListUsersErrors = {
1347
1607
  /**
1348
- * Returns 404 Not Found if the organization does not have a payment method set up.
1608
+ * Not authenticated
1349
1609
  */
1350
- 404: unknown;
1610
+ 401: unknown;
1351
1611
  };
1352
- export type GetPaymentMethodResponses = {
1612
+ export type ListUsersResponses = {
1353
1613
  /**
1354
- * Redacted payment card information.
1614
+ * An array of users
1355
1615
  */
1356
- 200: PaymentMethod;
1616
+ 200: Array<User>;
1357
1617
  };
1358
- export type GetPaymentMethodResponse = GetPaymentMethodResponses[keyof GetPaymentMethodResponses];
1359
- export type GetPaymentMethodSecretData = {
1360
- body?: never;
1618
+ export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1619
+ export type CreateUserData = {
1620
+ body: UserCreateInput;
1361
1621
  path?: never;
1362
1622
  query?: never;
1363
- url: '/billing/payment-method';
1623
+ url: '/users';
1364
1624
  };
1365
- export type GetPaymentMethodSecretResponses = {
1625
+ export type CreateUserResponses = {
1366
1626
  /**
1367
- * 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.
1368
- *
1627
+ * Successfully created. Returns created user details.
1369
1628
  */
1370
- 200: {
1629
+ 200: User;
1630
+ };
1631
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1632
+ export type DeleteUserData = {
1633
+ body?: never;
1634
+ path: {
1371
1635
  /**
1372
- * The client secret.
1636
+ * Unique user identifier. UUID v4 string in canonical form
1373
1637
  */
1374
- id?: string;
1638
+ user_id: string;
1375
1639
  };
1376
- };
1377
- export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
1378
- export type ListInvoicesData = {
1379
- body?: never;
1380
- path?: never;
1381
1640
  query?: never;
1382
- url: '/billing/invoices';
1641
+ url: '/users/{user_id}';
1383
1642
  };
1384
- export type ListInvoicesErrors = {
1643
+ export type DeleteUserErrors = {
1644
+ /**
1645
+ * Deleting own user is not allowed. Delete your organization instead.
1646
+ */
1647
+ 400: unknown;
1385
1648
  /**
1386
1649
  * Not authenticated
1387
1650
  */
1388
1651
  401: unknown;
1389
1652
  };
1390
- export type ListInvoicesResponses = {
1653
+ export type DeleteUserResponses = {
1391
1654
  /**
1392
- * An array of usage records.
1655
+ * User profile information
1393
1656
  */
1394
- 200: Array<Invoice>;
1657
+ 200: User;
1395
1658
  };
1396
- export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
1397
- export type GetContactData = {
1659
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1660
+ export type GetUserData = {
1398
1661
  body?: never;
1399
- path?: never;
1662
+ path: {
1663
+ /**
1664
+ * Unique user identifier. UUID v4 string in canonical form
1665
+ */
1666
+ user_id: string;
1667
+ };
1400
1668
  query?: never;
1401
- url: '/billing/contact';
1669
+ url: '/users/{user_id}';
1402
1670
  };
1403
- export type GetContactResponses = {
1671
+ export type GetUserErrors = {
1404
1672
  /**
1405
- * Returns a single object containing organization contact and billing address details.
1673
+ * Not authenticated
1406
1674
  */
1407
- 200: BillingContact;
1675
+ 401: unknown;
1408
1676
  };
1409
- export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
1410
- export type UpdateContactData = {
1411
- body: BillingContact;
1412
- path?: never;
1677
+ export type GetUserResponses = {
1678
+ /**
1679
+ * User profile information
1680
+ */
1681
+ 200: User;
1682
+ };
1683
+ export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
1684
+ export type UpdateUserData = {
1685
+ body: UserUpdateInput;
1686
+ path: {
1687
+ /**
1688
+ * Unique user identifier. UUID v4 string in canonical form
1689
+ */
1690
+ user_id: string;
1691
+ };
1413
1692
  query?: never;
1414
- url: '/billing/contact';
1693
+ url: '/users/{user_id}';
1415
1694
  };
1416
- export type UpdateContactResponses = {
1695
+ export type UpdateUserResponses = {
1417
1696
  /**
1418
- * Successfully updated. Returns updated organization details.
1697
+ * Successfully created. Returns created user details.
1419
1698
  */
1420
- 200: BillingContact;
1699
+ 200: User;
1421
1700
  };
1422
- export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1423
- export type GetCreditsData = {
1701
+ export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1702
+ export type ListTokensData = {
1424
1703
  body?: never;
1425
1704
  path?: never;
1426
1705
  query?: never;
1427
- url: '/billing/credits';
1706
+ url: '/tokens';
1428
1707
  };
1429
- export type GetCreditsErrors = {
1708
+ export type ListTokensErrors = {
1430
1709
  /**
1431
1710
  * Not authenticated
1432
1711
  */
1433
1712
  401: unknown;
1434
1713
  };
1435
- export type GetCreditsResponses = {
1714
+ export type ListTokensResponses = {
1436
1715
  /**
1437
- * An array of the applied promotional credits records.
1716
+ * Returns a list of access token details with masked secrets.
1438
1717
  */
1439
- 200: Array<BillingCredits>;
1718
+ 200: Array<Token>;
1440
1719
  };
1441
- export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1442
- export type RedeemCreditsData = {
1443
- body: {
1444
- /**
1445
- * Promotional code to redeem
1446
- */
1447
- code?: string;
1448
- };
1720
+ export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1721
+ export type CreateTokenData = {
1722
+ body: TokenCreateInput;
1449
1723
  path?: never;
1450
1724
  query?: never;
1451
- url: '/billing/credits';
1725
+ url: '/tokens';
1452
1726
  };
1453
- export type RedeemCreditsErrors = {
1727
+ export type CreateTokenErrors = {
1454
1728
  /**
1455
1729
  * Not authenticated
1456
1730
  */
1457
1731
  401: unknown;
1458
1732
  };
1459
- export type RedeemCreditsResponses = {
1733
+ export type CreateTokenResponses = {
1460
1734
  /**
1461
- * Successfully created a new organization.
1735
+ * Successfully created. Returns created token details with unmasked/raw secret.
1736
+ */
1737
+ 200: Token;
1738
+ };
1739
+ export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1740
+ export type DeleteTokenData = {
1741
+ body?: never;
1742
+ path: {
1743
+ /**
1744
+ * Generated unique identifier of the access token.
1745
+ */
1746
+ token_id: string;
1747
+ };
1748
+ query?: never;
1749
+ url: '/tokens/{token_id}';
1750
+ };
1751
+ export type DeleteTokenResponses = {
1752
+ /**
1753
+ * Successfully deleted.
1462
1754
  */
1463
1755
  200: unknown;
1464
1756
  };
1465
- export type ListChartsData = {
1757
+ export type GetTokenData = {
1466
1758
  body?: never;
1467
1759
  path: {
1468
1760
  /**
1469
- * Unique identifier of the cluster. UUID v4 string in canonical form
1761
+ * Generated unique identifier of the access token.
1470
1762
  */
1471
- cluster_id: string;
1763
+ token_id: string;
1472
1764
  };
1473
1765
  query?: never;
1474
- url: '/clusters/{cluster_id}/charts';
1766
+ url: '/tokens/{token_id}';
1475
1767
  };
1476
- export type ListChartsErrors = {
1768
+ export type GetTokenErrors = {
1477
1769
  /**
1478
1770
  * Not authenticated
1479
1771
  */
1480
1772
  401: unknown;
1481
1773
  };
1482
- export type ListChartsResponses = {
1774
+ export type GetTokenResponses = {
1483
1775
  /**
1484
- * An array of charts
1776
+ * Returns access token details with masked secret.
1485
1777
  */
1486
- 200: Array<Chart>;
1778
+ 200: Token;
1487
1779
  };
1488
- export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
1489
- export type CreateChartData = {
1490
- body: ChartCreateInput;
1780
+ export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1781
+ export type UpdateTokenData = {
1782
+ body: TokenUpdateInput;
1491
1783
  path: {
1492
1784
  /**
1493
- * Unique identifier of the cluster. UUID v4 string in canonical form
1785
+ * Generated unique identifier of the access token.
1494
1786
  */
1495
- cluster_id: string;
1787
+ token_id: string;
1496
1788
  };
1497
1789
  query?: never;
1498
- url: '/clusters/{cluster_id}/charts';
1790
+ url: '/tokens/{token_id}';
1499
1791
  };
1500
- export type CreateChartResponses = {
1792
+ export type UpdateTokenErrors = {
1501
1793
  /**
1502
- * Successfully created. Returns created Chart ID.
1794
+ * Not authenticated
1503
1795
  */
1504
- 200: string;
1796
+ 401: unknown;
1505
1797
  };
1506
- export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1507
- export type DeleteChartData = {
1798
+ export type UpdateTokenResponses = {
1799
+ /**
1800
+ * Successfully updated. Returns updated token details with masked secret.
1801
+ */
1802
+ 200: Token;
1803
+ };
1804
+ export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1805
+ export type RegenerateTokenData = {
1508
1806
  body?: never;
1509
1807
  path: {
1510
1808
  /**
1511
- * Unique identifier of the cluster. UUID v4 string in canonical form
1512
- */
1513
- cluster_id: string;
1514
- /**
1515
- * Chart deployment name as the unique identifier of the chart.
1809
+ * Generated unique identifier of the access token.
1516
1810
  */
1517
- chart_name: string;
1811
+ token_id: string;
1518
1812
  };
1519
1813
  query?: never;
1520
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1814
+ url: '/tokens/{token_id}/secret';
1521
1815
  };
1522
- export type DeleteChartResponses = {
1816
+ export type RegenerateTokenErrors = {
1523
1817
  /**
1524
- * Successfully deleted.
1818
+ * Not authenticated
1525
1819
  */
1526
- 200: string;
1820
+ 401: unknown;
1527
1821
  };
1528
- export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1529
- export type GetChartData = {
1822
+ export type RegenerateTokenResponses = {
1823
+ /**
1824
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1825
+ */
1826
+ 200: Token;
1827
+ };
1828
+ export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
1829
+ export type ListTicketsData = {
1530
1830
  body?: never;
1531
- path: {
1532
- /**
1533
- * Unique identifier of the cluster. UUID v4 string in canonical form
1534
- */
1535
- cluster_id: string;
1536
- /**
1537
- * Chart deployment name as the unique identifier of the chart.
1538
- */
1539
- chart_name: string;
1540
- };
1831
+ path?: never;
1541
1832
  query?: never;
1542
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1833
+ url: '/tickets';
1543
1834
  };
1544
- export type GetChartResponses = {
1835
+ export type ListTicketsResponses = {
1545
1836
  /**
1546
- * Returns a single object containing chart details.
1837
+ * Tickets for the organization.
1547
1838
  */
1548
- 200: Chart;
1839
+ 200: TicketListResponse;
1549
1840
  };
1550
- export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1551
- export type UpdateChartData = {
1552
- body: ChartUpdateInput;
1553
- path: {
1554
- /**
1555
- * Unique identifier of the cluster. UUID v4 string in canonical form
1556
- */
1557
- cluster_id: string;
1841
+ export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
1842
+ export type CreateTicketData = {
1843
+ body: {
1558
1844
  /**
1559
- * Chart deployment name as the unique identifier of the chart.
1845
+ * JSON-encoded TicketCreateInput.
1560
1846
  */
1561
- chart_name: string;
1847
+ payload?: string;
1848
+ attachments?: Array<Blob | File>;
1562
1849
  };
1850
+ path?: never;
1563
1851
  query?: never;
1564
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1852
+ url: '/tickets';
1565
1853
  };
1566
- export type UpdateChartResponses = {
1854
+ export type CreateTicketResponses = {
1567
1855
  /**
1568
- * Successfully updated.
1856
+ * Ticket created.
1569
1857
  */
1570
- 200: string;
1858
+ 200: Ticket;
1571
1859
  };
1572
- export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1573
- export type ListFleetsData = {
1860
+ export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
1861
+ export type CloseTicketData = {
1574
1862
  body?: never;
1575
1863
  path: {
1576
- /**
1577
- * Unique identifier of the cluster. UUID v4 string in canonical form
1578
- */
1579
- cluster_id: string;
1864
+ ticket_id: string;
1580
1865
  };
1581
1866
  query?: never;
1582
- url: '/clusters/{cluster_id}/fleets';
1867
+ url: '/tickets/{ticket_id}';
1583
1868
  };
1584
- export type ListFleetsErrors = {
1869
+ export type CloseTicketResponses = {
1585
1870
  /**
1586
- * Not authenticated
1871
+ * Ticket closed.
1587
1872
  */
1588
- 401: unknown;
1873
+ 200: Ticket;
1589
1874
  };
1590
- export type ListFleetsResponses = {
1875
+ export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
1876
+ export type GetTicketData = {
1877
+ body?: never;
1878
+ path: {
1879
+ ticket_id: string;
1880
+ };
1881
+ query?: never;
1882
+ url: '/tickets/{ticket_id}';
1883
+ };
1884
+ export type GetTicketResponses = {
1591
1885
  /**
1592
- * An array of fleets
1886
+ * Ticket with messages (internal notes excluded).
1593
1887
  */
1594
- 200: Array<Fleet>;
1888
+ 200: Ticket;
1595
1889
  };
1596
- export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
1597
- export type CreateFleetData = {
1598
- body: FleetCreateInput;
1599
- path: {
1890
+ export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
1891
+ export type ReplyTicketData = {
1892
+ body: {
1600
1893
  /**
1601
- * Unique identifier of the cluster. UUID v4 string in canonical form
1894
+ * JSON-encoded TicketMessageInput.
1602
1895
  */
1603
- cluster_id: string;
1896
+ payload?: string;
1897
+ attachments?: Array<Blob | File>;
1898
+ };
1899
+ path: {
1900
+ ticket_id: string;
1604
1901
  };
1605
1902
  query?: never;
1606
- url: '/clusters/{cluster_id}/fleets';
1903
+ url: '/tickets/{ticket_id}/messages';
1607
1904
  };
1608
- export type CreateFleetErrors = {
1905
+ export type ReplyTicketErrors = {
1609
1906
  /**
1610
- * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
1907
+ * Ticket is closed. Open a new ticket instead.
1611
1908
  */
1612
- 402: string;
1909
+ 409: unknown;
1613
1910
  };
1614
- export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
1615
- export type CreateFleetResponses = {
1911
+ export type ReplyTicketResponses = {
1616
1912
  /**
1617
- * Successfully created. Returns created Fleet ID.
1913
+ * Reply appended.
1618
1914
  */
1619
- 200: string;
1915
+ 200: TicketMessage;
1620
1916
  };
1621
- export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
1622
- export type DeleteFleetData = {
1917
+ export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
1918
+ export type GetTicketAttachmentData = {
1623
1919
  body?: never;
1624
1920
  path: {
1625
- /**
1626
- * Unique identifier of the cluster. UUID v4 string in canonical form
1627
- */
1628
- cluster_id: string;
1629
- /**
1630
- * Unique identifier of the fleet. UUID v4 string in canonical form
1631
- */
1632
- fleet_name: string;
1921
+ ticket_id: string;
1922
+ attachment_id: string;
1633
1923
  };
1634
1924
  query?: never;
1635
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1925
+ url: '/tickets/{ticket_id}/attachments/{attachment_id}';
1636
1926
  };
1637
- export type DeleteFleetResponses = {
1927
+ export type GetTicketAttachmentResponses = {
1638
1928
  /**
1639
- * Successfully deleted.
1929
+ * Attachment binary stream.
1640
1930
  */
1641
- 200: string;
1931
+ 200: Blob | File;
1642
1932
  };
1643
- export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
1644
- export type GetFleetData = {
1933
+ export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
1934
+ export type ListRepositoriesData = {
1645
1935
  body?: never;
1646
- path: {
1647
- /**
1648
- * Unique identifier of the cluster. UUID v4 string in canonical form
1649
- */
1650
- cluster_id: string;
1651
- /**
1652
- * Unique identifier of the fleet. UUID v4 string in canonical form
1653
- */
1654
- fleet_name: string;
1655
- };
1936
+ path?: never;
1656
1937
  query?: never;
1657
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1938
+ url: '/registry';
1658
1939
  };
1659
- export type GetFleetResponses = {
1940
+ export type ListRepositoriesErrors = {
1660
1941
  /**
1661
- * Returns a single object containing fleet details.
1942
+ * Not authenticated
1662
1943
  */
1663
- 200: Fleet;
1944
+ 401: unknown;
1945
+ /**
1946
+ * Internal server error
1947
+ */
1948
+ 500: unknown;
1664
1949
  };
1665
- export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
1666
- export type UpdateFleetData = {
1667
- body: FleetUpdateInput;
1950
+ export type ListRepositoriesResponses = {
1951
+ /**
1952
+ * List of repositories
1953
+ */
1954
+ 200: Array<RegistryRepository>;
1955
+ };
1956
+ export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
1957
+ export type ListTagsData = {
1958
+ body?: never;
1668
1959
  path: {
1669
1960
  /**
1670
- * Unique identifier of the cluster. UUID v4 string in canonical form
1961
+ * Region where the repository is located
1671
1962
  */
1672
- cluster_id: string;
1963
+ region: string;
1673
1964
  /**
1674
- * Unique identifier of the fleet. UUID v4 string in canonical form
1965
+ * Name of the repository
1675
1966
  */
1676
- fleet_name: string;
1967
+ repository: string;
1677
1968
  };
1678
1969
  query?: never;
1679
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1970
+ url: '/registry/{region}/{repository}';
1680
1971
  };
1681
- export type UpdateFleetErrors = {
1972
+ export type ListTagsErrors = {
1682
1973
  /**
1683
- * Organization must have a valid payment method configured to access this endpoint.
1974
+ * Not authenticated
1684
1975
  */
1685
- 402: string;
1976
+ 401: unknown;
1977
+ /**
1978
+ * Repository not found
1979
+ */
1980
+ 404: unknown;
1981
+ /**
1982
+ * Internal server error
1983
+ */
1984
+ 500: unknown;
1686
1985
  };
1687
- export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
1688
- export type UpdateFleetResponses = {
1986
+ export type ListTagsResponses = {
1689
1987
  /**
1690
- * Successfully updated.
1988
+ * Repository with tags
1691
1989
  */
1692
- 200: string;
1990
+ 200: RegistryRepositoryWithTags;
1693
1991
  };
1694
- export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
1695
- export type QueryClusterData = {
1992
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
1993
+ export type DeleteTagData = {
1696
1994
  body?: never;
1697
1995
  path: {
1698
1996
  /**
1699
- * Unique identifier of the cluster. UUID v4 string in canonical form
1997
+ * Region where the repository is located
1700
1998
  */
1701
- cluster_id: string;
1999
+ region: string;
2000
+ /**
2001
+ * Name of the repository
2002
+ */
2003
+ repository: string;
2004
+ /**
2005
+ * Name of the tag
2006
+ */
2007
+ tag: string;
1702
2008
  };
1703
2009
  query?: never;
1704
- url: '/clusters/{cluster_id}/query';
2010
+ url: '/registry/{region}/{repository}/{tag}';
1705
2011
  };
1706
- export type QueryClusterErrors = {
2012
+ export type DeleteTagErrors = {
1707
2013
  /**
1708
2014
  * Not authenticated
1709
2015
  */
1710
2016
  401: unknown;
2017
+ /**
2018
+ * Tag not found
2019
+ */
2020
+ 404: unknown;
2021
+ /**
2022
+ * Internal server error
2023
+ */
2024
+ 500: unknown;
1711
2025
  };
1712
- export type QueryClusterResponses = {
2026
+ export type DeleteTagResponses = {
1713
2027
  /**
1714
- * Kubernetes API response
2028
+ * Tag successfully deleted
1715
2029
  */
1716
2030
  200: unknown;
1717
2031
  };
1718
- export type ListClustersData = {
2032
+ export type GetTagData = {
1719
2033
  body?: never;
1720
- path?: never;
2034
+ path: {
2035
+ /**
2036
+ * Region where the repository is located
2037
+ */
2038
+ region: string;
2039
+ /**
2040
+ * Name of the repository
2041
+ */
2042
+ repository: string;
2043
+ /**
2044
+ * Name of the tag
2045
+ */
2046
+ tag: string;
2047
+ };
1721
2048
  query?: never;
1722
- url: '/clusters';
2049
+ url: '/registry/{region}/{repository}/{tag}';
1723
2050
  };
1724
- export type ListClustersErrors = {
2051
+ export type GetTagErrors = {
1725
2052
  /**
1726
2053
  * Not authenticated
1727
2054
  */
1728
2055
  401: unknown;
1729
- };
1730
- export type ListClustersResponses = {
1731
2056
  /**
1732
- * An array of clusters
2057
+ * Tag not found
1733
2058
  */
1734
- 200: Array<Cluster>;
1735
- };
1736
- export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
1737
- export type CreateClusterData = {
1738
- body: ClusterCreateInput;
1739
- path?: never;
1740
- query?: never;
1741
- url: '/clusters';
1742
- };
1743
- export type CreateClusterErrors = {
2059
+ 404: unknown;
1744
2060
  /**
1745
- * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
2061
+ * Internal server error
1746
2062
  */
1747
- 402: string;
2063
+ 500: unknown;
1748
2064
  };
1749
- export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
1750
- export type CreateClusterResponses = {
2065
+ export type GetTagResponses = {
1751
2066
  /**
1752
- * Successfully created. Returns created Cluster ID.
2067
+ * Tag details
1753
2068
  */
1754
- 200: string;
2069
+ 200: RegistryTag;
1755
2070
  };
1756
- export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
1757
- export type DeleteClusterData = {
2071
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2072
+ export type GetOrganizationData = {
1758
2073
  body?: never;
1759
- path: {
1760
- /**
1761
- * Unique identifier of the cluster. UUID v4 string in canonical form
1762
- */
1763
- cluster_id: string;
1764
- };
2074
+ path?: never;
1765
2075
  query?: never;
1766
- url: '/clusters/{cluster_id}';
2076
+ url: '/organization';
1767
2077
  };
1768
- export type DeleteClusterResponses = {
2078
+ export type GetOrganizationResponses = {
1769
2079
  /**
1770
- * Successfully deleted.
2080
+ * Returns a single object containing organization details.
1771
2081
  */
1772
- 200: string;
2082
+ 200: Organization;
1773
2083
  };
1774
- export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
1775
- export type GetClusterData = {
1776
- body?: never;
1777
- path: {
1778
- /**
1779
- * Unique identifier of the cluster. UUID v4 string in canonical form
1780
- */
1781
- cluster_id: string;
1782
- };
2084
+ export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
2085
+ export type CreateOrganizationData = {
2086
+ body: OrganizationCreateInput;
2087
+ path?: never;
1783
2088
  query?: never;
1784
- url: '/clusters/{cluster_id}';
2089
+ url: '/organization';
1785
2090
  };
1786
- export type GetClusterResponses = {
2091
+ export type CreateOrganizationResponses = {
1787
2092
  /**
1788
- * Returns a single object containing cluster details.
2093
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
2094
+ *
1789
2095
  */
1790
- 200: Cluster;
2096
+ 200: OrganizationCreateOutput;
1791
2097
  };
1792
- export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
1793
- export type UpdateClusterData = {
1794
- body: ClusterUpdateInput;
1795
- path: {
2098
+ export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses];
2099
+ export type PostMcpData = {
2100
+ /**
2101
+ * JSON-RPC 2.0 request payload
2102
+ */
2103
+ body: {
2104
+ jsonrpc?: string;
2105
+ method?: string;
2106
+ id?: string | number;
1796
2107
  /**
1797
- * Unique identifier of the cluster. UUID v4 string in canonical form
2108
+ * Method-specific parameters
1798
2109
  */
1799
- cluster_id: string;
2110
+ params?: {
2111
+ [key: string]: unknown;
2112
+ };
1800
2113
  };
2114
+ path?: never;
1801
2115
  query?: never;
1802
- url: '/clusters/{cluster_id}';
2116
+ url: '/mcp';
1803
2117
  };
1804
- export type UpdateClusterResponses = {
2118
+ export type PostMcpErrors = {
1805
2119
  /**
1806
- * Successfully updated. Returns updated cluster details.
2120
+ * Not authenticated
1807
2121
  */
1808
- 200: Cluster;
2122
+ 401: unknown;
1809
2123
  };
1810
- export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
1811
- export type GetClusterCaData = {
1812
- body?: never;
1813
- path: {
1814
- /**
1815
- * Unique identifier of the cluster. UUID v4 string in canonical form
1816
- */
1817
- cluster_id: string;
2124
+ export type PostMcpResponses = {
2125
+ /**
2126
+ * JSON-RPC 2.0 success or error response
2127
+ */
2128
+ 200: {
2129
+ jsonrpc?: string;
2130
+ id?: string | number;
2131
+ result?: {
2132
+ [key: string]: unknown;
2133
+ };
2134
+ error?: {
2135
+ code?: number;
2136
+ message?: string;
2137
+ };
1818
2138
  };
2139
+ };
2140
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2141
+ export type ListMarketplaceChartsData = {
2142
+ body?: never;
2143
+ path?: never;
1819
2144
  query?: never;
1820
- url: '/clusters/{cluster_id}/ca';
2145
+ url: '/marketplace';
1821
2146
  };
1822
- export type GetClusterCaErrors = {
2147
+ export type ListMarketplaceChartsErrors = {
1823
2148
  /**
1824
- * Cluster not found, or its certificate authority is not available yet.
2149
+ * Not authenticated
1825
2150
  */
1826
- 404: unknown;
2151
+ 401: unknown;
1827
2152
  };
1828
- export type GetClusterCaResponses = {
2153
+ export type ListMarketplaceChartsResponses = {
1829
2154
  /**
1830
- * PEM-encoded certificate authority of the cluster.
2155
+ * An array of chart listings in the marketplace.
1831
2156
  */
1832
- 200: string;
2157
+ 200: Array<MarketplaceListing>;
1833
2158
  };
1834
- export type GetClusterCaResponse = GetClusterCaResponses[keyof GetClusterCaResponses];
1835
- export type GetJoinInformationData = {
2159
+ export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
2160
+ export type GetMarketplaceChartFilesData = {
1836
2161
  body?: never;
1837
2162
  path: {
1838
2163
  /**
1839
- * Unique identifier of the cluster. UUID v4 string in canonical form
2164
+ * Name of the chart in the marketplace.
1840
2165
  */
1841
- cluster_id: string;
2166
+ chart_name: string;
2167
+ /**
2168
+ * 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).
2169
+ */
2170
+ version_channel: string;
1842
2171
  };
1843
2172
  query?: never;
1844
- url: '/clusters/{cluster_id}/join_information';
2173
+ url: '/marketplace/{chart_name}/files/{version_channel}';
1845
2174
  };
1846
- export type GetJoinInformationErrors = {
2175
+ export type GetMarketplaceChartFilesErrors = {
1847
2176
  /**
1848
- * Not authenticated
2177
+ * Chart not found or no version matches the channel
1849
2178
  */
1850
- 401: unknown;
2179
+ 404: unknown;
1851
2180
  };
1852
- export type GetJoinInformationResponses = {
2181
+ export type GetMarketplaceChartFilesResponses = {
1853
2182
  /**
1854
- * An object of cluster join information
2183
+ * Returns an object containing the chart files for the latest matching version.
1855
2184
  */
1856
- 200: ClusterJoinInformation;
2185
+ 200: MarketplaceListingFiles;
1857
2186
  };
1858
- export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2187
+ export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
1859
2188
  export type ListInvitesData = {
1860
2189
  body?: never;
1861
2190
  path?: never;
@@ -1876,12 +2205,7 @@ export type ListInvitesResponses = {
1876
2205
  };
1877
2206
  export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
1878
2207
  export type CreateInviteData = {
1879
- body: {
1880
- /**
1881
- * User email address
1882
- */
1883
- email?: string;
1884
- };
2208
+ body: InviteCreateInput;
1885
2209
  path?: never;
1886
2210
  query?: never;
1887
2211
  url: '/invites';
@@ -1906,9 +2230,18 @@ export type GetInviteData = {
1906
2230
  };
1907
2231
  export type GetInviteResponses = {
1908
2232
  /**
1909
- * Returns a single object containing invite details.
2233
+ * The invitation code is valid. Returns the invited email and organization.
1910
2234
  */
1911
- 200: Invite;
2235
+ 200: {
2236
+ /**
2237
+ * Email address the invite was issued to.
2238
+ */
2239
+ email?: string;
2240
+ /**
2241
+ * Identifier of the organization the invite grants access to.
2242
+ */
2243
+ organization_id?: string;
2244
+ };
1912
2245
  };
1913
2246
  export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
1914
2247
  export type DeleteInviteData = {
@@ -1928,617 +2261,654 @@ export type DeleteInviteResponses = {
1928
2261
  */
1929
2262
  200: unknown;
1930
2263
  };
1931
- export type ListMarketplaceChartsData = {
2264
+ export type QueryClusterData = {
1932
2265
  body?: never;
1933
- path?: never;
2266
+ path: {
2267
+ /**
2268
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2269
+ */
2270
+ cluster_id: string;
2271
+ };
1934
2272
  query?: never;
1935
- url: '/marketplace';
2273
+ url: '/clusters/{cluster_id}/query';
1936
2274
  };
1937
- export type ListMarketplaceChartsErrors = {
2275
+ export type QueryClusterErrors = {
1938
2276
  /**
1939
2277
  * Not authenticated
1940
2278
  */
1941
2279
  401: unknown;
1942
2280
  };
1943
- export type ListMarketplaceChartsResponses = {
2281
+ export type QueryClusterResponses = {
1944
2282
  /**
1945
- * An array of chart listings in the marketplace.
2283
+ * Kubernetes API response
1946
2284
  */
1947
- 200: Array<MarketplaceListing>;
2285
+ 200: unknown;
1948
2286
  };
1949
- export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1950
- export type GetMarketplaceChartFilesData = {
2287
+ export type ListFleetsData = {
1951
2288
  body?: never;
1952
2289
  path: {
1953
2290
  /**
1954
- * Name of the chart in the marketplace.
1955
- */
1956
- chart_name: string;
1957
- /**
1958
- * 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).
2291
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1959
2292
  */
1960
- version_channel: string;
2293
+ cluster_id: string;
1961
2294
  };
1962
2295
  query?: never;
1963
- url: '/marketplace/{chart_name}/files/{version_channel}';
2296
+ url: '/clusters/{cluster_id}/fleets';
1964
2297
  };
1965
- export type GetMarketplaceChartFilesErrors = {
2298
+ export type ListFleetsErrors = {
1966
2299
  /**
1967
- * Chart not found or no version matches the channel
2300
+ * Not authenticated
1968
2301
  */
1969
- 404: unknown;
2302
+ 401: unknown;
1970
2303
  };
1971
- export type GetMarketplaceChartFilesResponses = {
2304
+ export type ListFleetsResponses = {
1972
2305
  /**
1973
- * Returns an object containing the chart files for the latest matching version.
2306
+ * An array of fleets
1974
2307
  */
1975
- 200: MarketplaceListingFiles;
2308
+ 200: Array<Fleet>;
1976
2309
  };
1977
- export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
1978
- export type PostMcpData = {
1979
- /**
1980
- * JSON-RPC 2.0 request payload
1981
- */
1982
- body: {
1983
- jsonrpc?: string;
1984
- method?: string;
1985
- id?: string | number;
2310
+ export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
2311
+ export type CreateFleetData = {
2312
+ body: FleetCreateInput;
2313
+ path: {
1986
2314
  /**
1987
- * Method-specific parameters
2315
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1988
2316
  */
1989
- params?: {
1990
- [key: string]: unknown;
1991
- };
2317
+ cluster_id: string;
1992
2318
  };
1993
- path?: never;
1994
2319
  query?: never;
1995
- url: '/mcp';
2320
+ url: '/clusters/{cluster_id}/fleets';
1996
2321
  };
1997
- export type PostMcpErrors = {
2322
+ export type CreateFleetErrors = {
1998
2323
  /**
1999
- * Not authenticated
2324
+ * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
2000
2325
  */
2001
- 401: unknown;
2326
+ 402: string;
2327
+ /**
2328
+ * 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.
2329
+ */
2330
+ 409: string;
2002
2331
  };
2003
- export type PostMcpResponses = {
2332
+ export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
2333
+ export type CreateFleetResponses = {
2004
2334
  /**
2005
- * JSON-RPC 2.0 success or error response
2335
+ * Successfully created. Returns created Fleet ID.
2006
2336
  */
2007
- 200: {
2008
- jsonrpc?: string;
2009
- id?: string | number;
2010
- result?: {
2011
- [key: string]: unknown;
2012
- };
2013
- error?: {
2014
- code?: number;
2015
- message?: string;
2016
- };
2017
- };
2337
+ 200: string;
2018
2338
  };
2019
- export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2020
- export type GetOrganizationData = {
2339
+ export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
2340
+ export type DeleteFleetData = {
2021
2341
  body?: never;
2022
- path?: never;
2342
+ path: {
2343
+ /**
2344
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2345
+ */
2346
+ cluster_id: string;
2347
+ /**
2348
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2349
+ */
2350
+ fleet_name: string;
2351
+ };
2023
2352
  query?: never;
2024
- url: '/organization';
2353
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2025
2354
  };
2026
- export type GetOrganizationResponses = {
2355
+ export type DeleteFleetErrors = {
2027
2356
  /**
2028
- * Returns a single object containing organization details.
2357
+ * 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.
2029
2358
  */
2030
- 200: Organization;
2359
+ 409: string;
2031
2360
  };
2032
- export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
2033
- export type CreateOrganizationData = {
2034
- body: OrganizationCreateInput;
2035
- path?: never;
2361
+ export type DeleteFleetError = DeleteFleetErrors[keyof DeleteFleetErrors];
2362
+ export type DeleteFleetResponses = {
2363
+ /**
2364
+ * Successfully deleted.
2365
+ */
2366
+ 200: string;
2367
+ };
2368
+ export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
2369
+ export type GetFleetData = {
2370
+ body?: never;
2371
+ path: {
2372
+ /**
2373
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2374
+ */
2375
+ cluster_id: string;
2376
+ /**
2377
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2378
+ */
2379
+ fleet_name: string;
2380
+ };
2036
2381
  query?: never;
2037
- url: '/organization';
2382
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2038
2383
  };
2039
- export type CreateOrganizationResponses = {
2384
+ export type GetFleetResponses = {
2040
2385
  /**
2041
- * Successfully created a new organization.
2386
+ * Returns a single object containing fleet details.
2042
2387
  */
2043
- 200: unknown;
2388
+ 200: Fleet;
2044
2389
  };
2045
- export type ListRepositoriesData = {
2046
- body?: never;
2047
- path?: never;
2390
+ export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
2391
+ export type UpdateFleetData = {
2392
+ body: FleetUpdateInput;
2393
+ path: {
2394
+ /**
2395
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2396
+ */
2397
+ cluster_id: string;
2398
+ /**
2399
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2400
+ */
2401
+ fleet_name: string;
2402
+ };
2048
2403
  query?: never;
2049
- url: '/registry';
2404
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2050
2405
  };
2051
- export type ListRepositoriesErrors = {
2406
+ export type UpdateFleetErrors = {
2052
2407
  /**
2053
- * Not authenticated
2408
+ * Organization must have a valid payment method configured to access this endpoint.
2054
2409
  */
2055
- 401: unknown;
2410
+ 402: string;
2056
2411
  /**
2057
- * Internal server error
2412
+ * 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.
2058
2413
  */
2059
- 500: unknown;
2414
+ 409: string;
2060
2415
  };
2061
- export type ListRepositoriesResponses = {
2416
+ export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
2417
+ export type UpdateFleetResponses = {
2062
2418
  /**
2063
- * List of repositories
2419
+ * Successfully updated.
2064
2420
  */
2065
- 200: Array<RegistryRepository>;
2421
+ 200: string;
2066
2422
  };
2067
- export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
2068
- export type ListTagsData = {
2423
+ export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
2424
+ export type ListChartsData = {
2069
2425
  body?: never;
2070
2426
  path: {
2071
2427
  /**
2072
- * Region where the repository is located
2073
- */
2074
- region: string;
2075
- /**
2076
- * Name of the repository
2428
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2077
2429
  */
2078
- repository: string;
2430
+ cluster_id: string;
2079
2431
  };
2080
2432
  query?: never;
2081
- url: '/registry/{region}/{repository}';
2433
+ url: '/clusters/{cluster_id}/charts';
2082
2434
  };
2083
- export type ListTagsErrors = {
2435
+ export type ListChartsErrors = {
2084
2436
  /**
2085
2437
  * Not authenticated
2086
2438
  */
2087
2439
  401: unknown;
2440
+ };
2441
+ export type ListChartsResponses = {
2088
2442
  /**
2089
- * Repository not found
2443
+ * An array of charts
2090
2444
  */
2091
- 404: unknown;
2445
+ 200: Array<Chart>;
2446
+ };
2447
+ export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
2448
+ export type CreateChartData = {
2449
+ body: ChartCreateInput;
2450
+ path: {
2451
+ /**
2452
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2453
+ */
2454
+ cluster_id: string;
2455
+ };
2456
+ query?: never;
2457
+ url: '/clusters/{cluster_id}/charts';
2458
+ };
2459
+ export type CreateChartErrors = {
2092
2460
  /**
2093
- * Internal server error
2461
+ * 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.
2094
2462
  */
2095
- 500: unknown;
2463
+ 409: string;
2096
2464
  };
2097
- export type ListTagsResponses = {
2465
+ export type CreateChartError = CreateChartErrors[keyof CreateChartErrors];
2466
+ export type CreateChartResponses = {
2098
2467
  /**
2099
- * Repository with tags
2468
+ * Successfully created. Returns created Chart ID.
2100
2469
  */
2101
- 200: RegistryRepositoryWithTags;
2470
+ 200: string;
2102
2471
  };
2103
- export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
2104
- export type DeleteTagData = {
2472
+ export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
2473
+ export type DeleteChartData = {
2105
2474
  body?: never;
2106
2475
  path: {
2107
2476
  /**
2108
- * Region where the repository is located
2109
- */
2110
- region: string;
2111
- /**
2112
- * Name of the repository
2477
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2113
2478
  */
2114
- repository: string;
2479
+ cluster_id: string;
2115
2480
  /**
2116
- * Name of the tag
2481
+ * Chart deployment name as the unique identifier of the chart.
2117
2482
  */
2118
- tag: string;
2483
+ chart_name: string;
2119
2484
  };
2120
2485
  query?: never;
2121
- url: '/registry/{region}/{repository}/{tag}';
2486
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2122
2487
  };
2123
- export type DeleteTagErrors = {
2124
- /**
2125
- * Not authenticated
2126
- */
2127
- 401: unknown;
2128
- /**
2129
- * Tag not found
2130
- */
2131
- 404: unknown;
2488
+ export type DeleteChartErrors = {
2132
2489
  /**
2133
- * Internal server error
2490
+ * 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.
2134
2491
  */
2135
- 500: unknown;
2492
+ 409: string;
2136
2493
  };
2137
- export type DeleteTagResponses = {
2494
+ export type DeleteChartError = DeleteChartErrors[keyof DeleteChartErrors];
2495
+ export type DeleteChartResponses = {
2138
2496
  /**
2139
- * Tag successfully deleted
2497
+ * Successfully deleted.
2140
2498
  */
2141
- 200: unknown;
2499
+ 200: string;
2142
2500
  };
2143
- export type GetTagData = {
2501
+ export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
2502
+ export type GetChartData = {
2144
2503
  body?: never;
2145
2504
  path: {
2146
2505
  /**
2147
- * Region where the repository is located
2148
- */
2149
- region: string;
2150
- /**
2151
- * Name of the repository
2506
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2152
2507
  */
2153
- repository: string;
2508
+ cluster_id: string;
2154
2509
  /**
2155
- * Name of the tag
2510
+ * Chart deployment name as the unique identifier of the chart.
2156
2511
  */
2157
- tag: string;
2512
+ chart_name: string;
2158
2513
  };
2159
2514
  query?: never;
2160
- url: '/registry/{region}/{repository}/{tag}';
2515
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2161
2516
  };
2162
- export type GetTagErrors = {
2163
- /**
2164
- * Not authenticated
2165
- */
2166
- 401: unknown;
2517
+ export type GetChartResponses = {
2167
2518
  /**
2168
- * Tag not found
2519
+ * Returns a single object containing chart details.
2169
2520
  */
2170
- 404: unknown;
2521
+ 200: Chart;
2522
+ };
2523
+ export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
2524
+ export type UpdateChartData = {
2525
+ body: ChartUpdateInput;
2526
+ path: {
2527
+ /**
2528
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2529
+ */
2530
+ cluster_id: string;
2531
+ /**
2532
+ * Chart deployment name as the unique identifier of the chart.
2533
+ */
2534
+ chart_name: string;
2535
+ };
2536
+ query?: never;
2537
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2538
+ };
2539
+ export type UpdateChartErrors = {
2171
2540
  /**
2172
- * Internal server error
2541
+ * 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.
2173
2542
  */
2174
- 500: unknown;
2543
+ 409: string;
2175
2544
  };
2176
- export type GetTagResponses = {
2545
+ export type UpdateChartError = UpdateChartErrors[keyof UpdateChartErrors];
2546
+ export type UpdateChartResponses = {
2177
2547
  /**
2178
- * Tag details
2548
+ * Successfully updated.
2179
2549
  */
2180
- 200: RegistryTag;
2550
+ 200: string;
2181
2551
  };
2182
- export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2183
- export type ListTicketsData = {
2552
+ export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
2553
+ export type ListClustersData = {
2184
2554
  body?: never;
2185
2555
  path?: never;
2186
2556
  query?: never;
2187
- url: '/tickets';
2557
+ url: '/clusters';
2188
2558
  };
2189
- export type ListTicketsResponses = {
2559
+ export type ListClustersErrors = {
2190
2560
  /**
2191
- * Tickets for the organization.
2561
+ * Not authenticated
2192
2562
  */
2193
- 200: TicketListResponse;
2563
+ 401: unknown;
2194
2564
  };
2195
- export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
2196
- export type CreateTicketData = {
2197
- body: {
2198
- /**
2199
- * JSON-encoded TicketCreateInput.
2200
- */
2201
- payload?: string;
2202
- attachments?: Array<Blob | File>;
2203
- };
2565
+ export type ListClustersResponses = {
2566
+ /**
2567
+ * An array of clusters
2568
+ */
2569
+ 200: Array<Cluster>;
2570
+ };
2571
+ export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
2572
+ export type CreateClusterData = {
2573
+ body: ClusterCreateInput;
2204
2574
  path?: never;
2205
2575
  query?: never;
2206
- url: '/tickets';
2576
+ url: '/clusters';
2207
2577
  };
2208
- export type CreateTicketResponses = {
2578
+ export type CreateClusterErrors = {
2209
2579
  /**
2210
- * Ticket created.
2580
+ * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
2211
2581
  */
2212
- 200: Ticket;
2213
- };
2214
- export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
2215
- export type CloseTicketData = {
2216
- body?: never;
2217
- path: {
2218
- ticket_id: string;
2219
- };
2220
- query?: never;
2221
- url: '/tickets/{ticket_id}';
2582
+ 402: string;
2222
2583
  };
2223
- export type CloseTicketResponses = {
2584
+ export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
2585
+ export type CreateClusterResponses = {
2224
2586
  /**
2225
- * Ticket closed.
2587
+ * Successfully created. Returns created Cluster ID.
2226
2588
  */
2227
- 200: Ticket;
2589
+ 200: string;
2228
2590
  };
2229
- export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
2230
- export type GetTicketData = {
2591
+ export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
2592
+ export type DeleteClusterData = {
2231
2593
  body?: never;
2232
2594
  path: {
2233
- ticket_id: string;
2595
+ /**
2596
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2597
+ */
2598
+ cluster_id: string;
2234
2599
  };
2235
2600
  query?: never;
2236
- url: '/tickets/{ticket_id}';
2601
+ url: '/clusters/{cluster_id}';
2237
2602
  };
2238
- export type GetTicketResponses = {
2603
+ export type DeleteClusterErrors = {
2239
2604
  /**
2240
- * Ticket with messages (internal notes excluded).
2605
+ * Cluster not found it does not exist or has already been deleted.
2241
2606
  */
2242
- 200: Ticket;
2607
+ 404: unknown;
2608
+ /**
2609
+ * 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.
2610
+ */
2611
+ 409: string;
2612
+ /**
2613
+ * Transient failure tearing down the cluster; retry the request.
2614
+ */
2615
+ 503: unknown;
2243
2616
  };
2244
- export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
2245
- export type ReplyTicketData = {
2246
- body: {
2617
+ export type DeleteClusterError = DeleteClusterErrors[keyof DeleteClusterErrors];
2618
+ export type DeleteClusterResponses = {
2619
+ /**
2620
+ * Successfully deleted. The cluster has been torn down.
2621
+ */
2622
+ 200: string;
2623
+ };
2624
+ export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
2625
+ export type GetClusterData = {
2626
+ body?: never;
2627
+ path: {
2247
2628
  /**
2248
- * JSON-encoded TicketMessageInput.
2629
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2249
2630
  */
2250
- payload?: string;
2251
- attachments?: Array<Blob | File>;
2252
- };
2253
- path: {
2254
- ticket_id: string;
2631
+ cluster_id: string;
2255
2632
  };
2256
2633
  query?: never;
2257
- url: '/tickets/{ticket_id}/messages';
2258
- };
2259
- export type ReplyTicketErrors = {
2260
- /**
2261
- * Ticket is closed. Open a new ticket instead.
2262
- */
2263
- 409: unknown;
2634
+ url: '/clusters/{cluster_id}';
2264
2635
  };
2265
- export type ReplyTicketResponses = {
2636
+ export type GetClusterResponses = {
2266
2637
  /**
2267
- * Reply appended.
2638
+ * Returns a single object containing cluster details.
2268
2639
  */
2269
- 200: TicketMessage;
2640
+ 200: Cluster;
2270
2641
  };
2271
- export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
2272
- export type GetTicketAttachmentData = {
2273
- body?: never;
2642
+ export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
2643
+ export type UpdateClusterData = {
2644
+ body: ClusterUpdateInput;
2274
2645
  path: {
2275
- ticket_id: string;
2276
- attachment_id: string;
2646
+ /**
2647
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2648
+ */
2649
+ cluster_id: string;
2277
2650
  };
2278
2651
  query?: never;
2279
- url: '/tickets/{ticket_id}/attachments/{attachment_id}';
2652
+ url: '/clusters/{cluster_id}';
2280
2653
  };
2281
- export type GetTicketAttachmentResponses = {
2654
+ export type UpdateClusterErrors = {
2282
2655
  /**
2283
- * Attachment binary stream.
2656
+ * 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.
2284
2657
  */
2285
- 200: Blob | File;
2658
+ 409: string;
2286
2659
  };
2287
- export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
2288
- export type ListTokensData = {
2660
+ export type UpdateClusterError = UpdateClusterErrors[keyof UpdateClusterErrors];
2661
+ export type UpdateClusterResponses = {
2662
+ /**
2663
+ * Successfully updated. Returns updated cluster details.
2664
+ */
2665
+ 200: Cluster;
2666
+ };
2667
+ export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
2668
+ export type GetJoinInformationData = {
2289
2669
  body?: never;
2290
- path?: never;
2670
+ path: {
2671
+ /**
2672
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2673
+ */
2674
+ cluster_id: string;
2675
+ };
2291
2676
  query?: never;
2292
- url: '/tokens';
2677
+ url: '/clusters/{cluster_id}/join_information';
2293
2678
  };
2294
- export type ListTokensErrors = {
2679
+ export type GetJoinInformationErrors = {
2295
2680
  /**
2296
2681
  * Not authenticated
2297
2682
  */
2298
2683
  401: unknown;
2684
+ /**
2685
+ * 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.
2686
+ */
2687
+ 409: string;
2299
2688
  };
2300
- export type ListTokensResponses = {
2689
+ export type GetJoinInformationError = GetJoinInformationErrors[keyof GetJoinInformationErrors];
2690
+ export type GetJoinInformationResponses = {
2301
2691
  /**
2302
- * Returns a list of access token details with masked secrets.
2692
+ * An object of cluster join information
2303
2693
  */
2304
- 200: Array<Token>;
2694
+ 200: ClusterJoinInformation;
2305
2695
  };
2306
- export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
2307
- export type CreateTokenData = {
2308
- body: TokenCreateInput;
2696
+ export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2697
+ export type GetUsageData = {
2698
+ body?: never;
2309
2699
  path?: never;
2310
- query?: never;
2311
- url: '/tokens';
2700
+ query?: {
2701
+ /**
2702
+ * 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)
2703
+ */
2704
+ granularity?: 'hourly' | 'daily' | 'monthly';
2705
+ };
2706
+ url: '/billing/usage';
2312
2707
  };
2313
- export type CreateTokenErrors = {
2708
+ export type GetUsageErrors = {
2314
2709
  /**
2315
2710
  * Not authenticated
2316
2711
  */
2317
2712
  401: unknown;
2318
2713
  };
2319
- export type CreateTokenResponses = {
2714
+ export type GetUsageResponses = {
2320
2715
  /**
2321
- * Successfully created. Returns created token details with unmasked/raw secret.
2716
+ * Usage data with facets for filtering
2322
2717
  */
2323
- 200: Token;
2718
+ 200: UsageResponse;
2324
2719
  };
2325
- export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
2326
- export type DeleteTokenData = {
2720
+ export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
2721
+ export type GetPaymentMethodSecretData = {
2327
2722
  body?: never;
2328
- path: {
2329
- /**
2330
- * Generated unique identifier of the access token.
2331
- */
2332
- token_id: string;
2333
- };
2723
+ path?: never;
2334
2724
  query?: never;
2335
- url: '/tokens/{token_id}';
2725
+ url: '/billing/payment-method';
2336
2726
  };
2337
- export type DeleteTokenResponses = {
2727
+ export type GetPaymentMethodSecretResponses = {
2338
2728
  /**
2339
- * Successfully deleted.
2729
+ * 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.
2730
+ *
2340
2731
  */
2341
- 200: unknown;
2342
- };
2343
- export type GetTokenData = {
2344
- body?: never;
2345
- path: {
2732
+ 200: {
2346
2733
  /**
2347
- * Generated unique identifier of the access token.
2734
+ * The client secret.
2348
2735
  */
2349
- token_id: string;
2736
+ id?: string;
2350
2737
  };
2738
+ };
2739
+ export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
2740
+ export type ListPaymentMethodsData = {
2741
+ body?: never;
2742
+ path?: never;
2351
2743
  query?: never;
2352
- url: '/tokens/{token_id}';
2744
+ url: '/billing/payment-methods';
2353
2745
  };
2354
- export type GetTokenErrors = {
2746
+ export type ListPaymentMethodsErrors = {
2355
2747
  /**
2356
2748
  * Not authenticated
2357
2749
  */
2358
2750
  401: unknown;
2359
2751
  };
2360
- export type GetTokenResponses = {
2752
+ export type ListPaymentMethodsResponses = {
2361
2753
  /**
2362
- * Returns access token details with masked secret.
2754
+ * An array of payment methods.
2363
2755
  */
2364
- 200: Token;
2756
+ 200: Array<PaymentMethod>;
2365
2757
  };
2366
- export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
2367
- export type UpdateTokenData = {
2368
- body: TokenUpdateInput;
2758
+ export type ListPaymentMethodsResponse = ListPaymentMethodsResponses[keyof ListPaymentMethodsResponses];
2759
+ export type SetDefaultPaymentMethodData = {
2760
+ body?: never;
2369
2761
  path: {
2370
2762
  /**
2371
- * Generated unique identifier of the access token.
2763
+ * Stripe payment method identifier.
2372
2764
  */
2373
- token_id: string;
2765
+ paymentMethodId: string;
2374
2766
  };
2375
2767
  query?: never;
2376
- url: '/tokens/{token_id}';
2768
+ url: '/billing/payment-methods/{paymentMethodId}/default';
2377
2769
  };
2378
- export type UpdateTokenErrors = {
2770
+ export type SetDefaultPaymentMethodErrors = {
2771
+ /**
2772
+ * The bank transfer payment method cannot be set as the default.
2773
+ */
2774
+ 400: unknown;
2379
2775
  /**
2380
2776
  * Not authenticated
2381
2777
  */
2382
2778
  401: unknown;
2779
+ /**
2780
+ * Payment method not found.
2781
+ */
2782
+ 404: unknown;
2383
2783
  };
2384
- export type UpdateTokenResponses = {
2784
+ export type SetDefaultPaymentMethodResponses = {
2385
2785
  /**
2386
- * Successfully updated. Returns updated token details with masked secret.
2786
+ * Default payment method updated.
2387
2787
  */
2388
- 200: Token;
2788
+ 204: void;
2389
2789
  };
2390
- export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
2391
- export type RegenerateTokenData = {
2790
+ export type SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponses[keyof SetDefaultPaymentMethodResponses];
2791
+ export type DeletePaymentMethodData = {
2392
2792
  body?: never;
2393
2793
  path: {
2394
2794
  /**
2395
- * Generated unique identifier of the access token.
2795
+ * Stripe payment method identifier.
2396
2796
  */
2397
- token_id: string;
2797
+ paymentMethodId: string;
2398
2798
  };
2399
2799
  query?: never;
2400
- url: '/tokens/{token_id}/secret';
2800
+ url: '/billing/payment-methods/{paymentMethodId}';
2401
2801
  };
2402
- export type RegenerateTokenErrors = {
2802
+ export type DeletePaymentMethodErrors = {
2803
+ /**
2804
+ * The bank transfer payment method cannot be removed.
2805
+ */
2806
+ 400: unknown;
2403
2807
  /**
2404
2808
  * Not authenticated
2405
2809
  */
2406
2810
  401: unknown;
2407
- };
2408
- export type RegenerateTokenResponses = {
2409
2811
  /**
2410
- * Successfully updated. Returns updated token details with unmasked / raw secret.
2812
+ * Payment method not found.
2411
2813
  */
2412
- 200: Token;
2413
- };
2414
- export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
2415
- export type ListUserOrganizationsData = {
2416
- body?: never;
2417
- path: {
2418
- /**
2419
- * User email address.
2420
- */
2421
- email: string;
2422
- };
2423
- query?: never;
2424
- url: '/users/organizations/{email}';
2814
+ 404: unknown;
2815
+ /**
2816
+ * Cannot delete the only remaining payment method.
2817
+ */
2818
+ 409: unknown;
2425
2819
  };
2426
- export type ListUserOrganizationsResponses = {
2820
+ export type DeletePaymentMethodResponses = {
2427
2821
  /**
2428
- * An array of organizations the user belongs to.
2822
+ * Payment method deleted.
2429
2823
  */
2430
- 200: Array<{
2431
- /**
2432
- * Unique identifier of the organization. UUID v4 string in canonical form
2433
- */
2434
- realm?: string;
2435
- /**
2436
- * Human-readable name of the organization
2437
- */
2438
- displayName?: string;
2439
- }>;
2824
+ 204: void;
2440
2825
  };
2441
- export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
2442
- export type ListUsersData = {
2826
+ export type DeletePaymentMethodResponse = DeletePaymentMethodResponses[keyof DeletePaymentMethodResponses];
2827
+ export type ListInvoicesData = {
2443
2828
  body?: never;
2444
2829
  path?: never;
2445
2830
  query?: never;
2446
- url: '/users';
2831
+ url: '/billing/invoices';
2447
2832
  };
2448
- export type ListUsersErrors = {
2833
+ export type ListInvoicesErrors = {
2449
2834
  /**
2450
2835
  * Not authenticated
2451
2836
  */
2452
2837
  401: unknown;
2453
2838
  };
2454
- export type ListUsersResponses = {
2839
+ export type ListInvoicesResponses = {
2455
2840
  /**
2456
- * An array of users
2841
+ * An array of usage records.
2457
2842
  */
2458
- 200: Array<User>;
2843
+ 200: Array<Invoice>;
2459
2844
  };
2460
- export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
2461
- export type CreateUserData = {
2462
- body: UserCreateInput;
2845
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
2846
+ export type GetContactData = {
2847
+ body?: never;
2463
2848
  path?: never;
2464
2849
  query?: never;
2465
- url: '/users';
2850
+ url: '/billing/contact';
2466
2851
  };
2467
- export type CreateUserResponses = {
2852
+ export type GetContactResponses = {
2468
2853
  /**
2469
- * Successfully created. Returns created user details.
2854
+ * Returns a single object containing organization contact and billing address details.
2470
2855
  */
2471
- 200: User;
2856
+ 200: BillingContact;
2472
2857
  };
2473
- export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
2474
- export type DeleteUserData = {
2475
- body?: never;
2476
- path: {
2477
- /**
2478
- * Unique user identifier. UUID v4 string in canonical form
2479
- */
2480
- user_id: string;
2481
- };
2858
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
2859
+ export type UpdateContactData = {
2860
+ body: BillingContact;
2861
+ path?: never;
2482
2862
  query?: never;
2483
- url: '/users/{user_id}';
2863
+ url: '/billing/contact';
2484
2864
  };
2485
- export type DeleteUserErrors = {
2865
+ export type UpdateContactResponses = {
2486
2866
  /**
2487
- * Deleting own user is not allowed. Delete your organization instead.
2867
+ * Successfully updated. Returns updated organization details.
2488
2868
  */
2489
- 400: unknown;
2869
+ 200: BillingContact;
2870
+ };
2871
+ export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
2872
+ export type GetCreditsData = {
2873
+ body?: never;
2874
+ path?: never;
2875
+ query?: never;
2876
+ url: '/billing/credits';
2877
+ };
2878
+ export type GetCreditsErrors = {
2490
2879
  /**
2491
2880
  * Not authenticated
2492
2881
  */
2493
2882
  401: unknown;
2494
2883
  };
2495
- export type DeleteUserResponses = {
2884
+ export type GetCreditsResponses = {
2496
2885
  /**
2497
- * User profile information
2886
+ * An array of the applied promotional credits records.
2498
2887
  */
2499
- 200: User;
2888
+ 200: Array<BillingCredits>;
2500
2889
  };
2501
- export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
2502
- export type GetUserData = {
2503
- body?: never;
2504
- path: {
2890
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
2891
+ export type RedeemCreditsData = {
2892
+ body: {
2505
2893
  /**
2506
- * Unique user identifier. UUID v4 string in canonical form
2894
+ * Promotional code to redeem
2507
2895
  */
2508
- user_id: string;
2896
+ code?: string;
2509
2897
  };
2898
+ path?: never;
2510
2899
  query?: never;
2511
- url: '/users/{user_id}';
2900
+ url: '/billing/credits';
2512
2901
  };
2513
- export type GetUserErrors = {
2902
+ export type RedeemCreditsErrors = {
2514
2903
  /**
2515
2904
  * Not authenticated
2516
2905
  */
2517
2906
  401: unknown;
2518
2907
  };
2519
- export type GetUserResponses = {
2520
- /**
2521
- * User profile information
2522
- */
2523
- 200: User;
2524
- };
2525
- export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
2526
- export type UpdateUserData = {
2527
- body: UserUpdateInput;
2528
- path: {
2529
- /**
2530
- * Unique user identifier. UUID v4 string in canonical form
2531
- */
2532
- user_id: string;
2533
- };
2534
- query?: never;
2535
- url: '/users/{user_id}';
2536
- };
2537
- export type UpdateUserResponses = {
2908
+ export type RedeemCreditsResponses = {
2538
2909
  /**
2539
- * Successfully created. Returns created user details.
2910
+ * Successfully created a new organization.
2540
2911
  */
2541
- 200: User;
2912
+ 200: unknown;
2542
2913
  };
2543
- export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
2544
2914
  //# sourceMappingURL=types.gen.d.ts.map