@cloudfleet/sdk 0.0.1-82e92ad → 0.0.1-84adc67

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