@cloudfleet/sdk 0.0.1-cfddf24 → 0.0.1-d3aa845

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
  */
@@ -159,6 +163,9 @@ export type ChartUpdateInput = {
159
163
  */
160
164
  version_channel: string;
161
165
  };
166
+ /**
167
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
168
+ */
162
169
  export type ClusterCreateInput = {
163
170
  /**
164
171
  * Name of the cluster.
@@ -167,15 +174,61 @@ export type ClusterCreateInput = {
167
174
  /**
168
175
  * Tier of the cluster.
169
176
  */
170
- tier: 'basic' | 'pro';
177
+ tier?: 'basic' | 'pro' | 'enterprise';
178
+ /**
179
+ * Version of the kubernetes cluster.
180
+ */
181
+ version_channel?: string;
171
182
  /**
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.
183
+ * Release channel for the cluster's control plane.
173
184
  */
174
- region?: 'staging-1a' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
185
+ release_channel?: 'rapid' | 'stable' | 'extended';
175
186
  /**
176
- * Version of the kubernetes cluster.
187
+ * Cluster feature toggles.
188
+ */
189
+ features?: {
190
+ /**
191
+ * GPU sharing strategy.
192
+ */
193
+ gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
194
+ /**
195
+ * Maximum number of pods that may share a single GPU.
196
+ */
197
+ gpu_max_shared_clients_per_gpu?: number;
198
+ /**
199
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
200
+ */
201
+ cilium_socket_lb_host_namespace_only?: boolean;
202
+ };
203
+ /**
204
+ * Cloudfleet control plane region. This field can not be updated after creation.
177
205
  */
178
- version_channel?: '1.x.x-cfke.x' | '1.31.x-cfke.x' | '1.32.x-cfke.x' | '1.33.x-cfke.x';
206
+ region: string;
207
+ /**
208
+ * Cluster networking configuration. Immutable after creation.
209
+ */
210
+ networking?: {
211
+ /**
212
+ * CIDR block for pod IPs.
213
+ */
214
+ pod_cidr?: string;
215
+ /**
216
+ * CIDR block for service IPs.
217
+ */
218
+ service_cidr?: string;
219
+ /**
220
+ * Enable IPv4+IPv6 dual-stack networking.
221
+ */
222
+ dual_stack?: boolean;
223
+ /**
224
+ * IPv6 pod CIDR. Requires dual_stack.
225
+ */
226
+ pod_cidr_v6?: string;
227
+ /**
228
+ * IPv6 service CIDR. Requires dual_stack.
229
+ */
230
+ service_cidr_v6?: string;
231
+ };
179
232
  };
180
233
  export type ClusterJoinInformation = {
181
234
  /**
@@ -190,6 +243,10 @@ export type ClusterJoinInformation = {
190
243
  * Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.
191
244
  */
192
245
  cluster_dns: string;
246
+ /**
247
+ * Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.
248
+ */
249
+ pod_cidr: string;
193
250
  /**
194
251
  * Authentication key for the cluster.
195
252
  */
@@ -237,6 +294,9 @@ export type ClusterJoinInformation = {
237
294
  gcp_workload_identity_provider: string;
238
295
  };
239
296
  };
297
+ /**
298
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
299
+ */
240
300
  export type Cluster = {
241
301
  /**
242
302
  * Name of the cluster.
@@ -245,19 +305,69 @@ export type Cluster = {
245
305
  /**
246
306
  * Tier of the cluster.
247
307
  */
248
- tier: 'basic' | 'pro';
308
+ tier: 'basic' | 'pro' | 'enterprise';
249
309
  /**
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.
310
+ * Version of the kubernetes cluster.
311
+ */
312
+ version_channel: string;
313
+ /**
314
+ * Release channel for the cluster's control plane.
315
+ */
316
+ release_channel: 'rapid' | 'stable' | 'extended';
317
+ /**
318
+ * Cluster feature toggles.
319
+ */
320
+ features: {
321
+ /**
322
+ * GPU sharing strategy.
323
+ */
324
+ gpu_sharing_strategy: 'none' | 'mps' | 'time_slicing';
325
+ /**
326
+ * Maximum number of pods that may share a single GPU.
327
+ */
328
+ gpu_max_shared_clients_per_gpu: number;
329
+ /**
330
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
331
+ */
332
+ cilium_socket_lb_host_namespace_only: boolean;
333
+ };
334
+ /**
335
+ * Cloudfleet control plane region. This field can not be updated after creation.
336
+ */
337
+ region: string;
338
+ /**
339
+ * Cluster networking configuration. Immutable after creation.
251
340
  */
252
- region?: 'staging-1a' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
341
+ networking: {
342
+ /**
343
+ * CIDR block for pod IPs.
344
+ */
345
+ pod_cidr: string;
346
+ /**
347
+ * CIDR block for service IPs.
348
+ */
349
+ service_cidr: string;
350
+ /**
351
+ * Enable IPv4+IPv6 dual-stack networking.
352
+ */
353
+ dual_stack: boolean;
354
+ /**
355
+ * IPv6 pod CIDR. Requires dual_stack.
356
+ */
357
+ pod_cidr_v6: string;
358
+ /**
359
+ * IPv6 service CIDR. Requires dual_stack.
360
+ */
361
+ service_cidr_v6: string;
362
+ };
253
363
  /**
254
364
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
255
365
  */
256
366
  id: string;
257
367
  /**
258
- * Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.
368
+ * Status of the cluster.
259
369
  */
260
- status: 'active' | 'disabled' | 'deleted' | 'creating' | 'deployed' | 'failed' | 'updating';
370
+ status: 'creating' | 'deployed' | 'updating' | 'disabled';
261
371
  endpoint?: string | '';
262
372
  endpoint_public?: string | '';
263
373
  /**
@@ -279,26 +389,49 @@ export type Cluster = {
279
389
  /**
280
390
  * Indicates if the cluster is ready to be used.
281
391
  */
282
- ready?: boolean;
283
- /**
284
- * Version of the kubernetes cluster.
285
- */
286
- version_channel?: string;
392
+ ready: boolean;
287
393
  };
394
+ /**
395
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
396
+ */
288
397
  export type ClusterUpdateInput = {
289
398
  /**
290
399
  * Name of the cluster.
291
400
  */
292
- name?: string;
401
+ name: string;
293
402
  /**
294
403
  * Tier of the cluster.
295
404
  */
296
- tier: 'basic' | 'pro';
405
+ tier?: 'basic' | 'pro' | 'enterprise';
297
406
  /**
298
407
  * Version of the kubernetes cluster.
299
408
  */
300
409
  version_channel?: string;
410
+ /**
411
+ * Release channel for the cluster's control plane.
412
+ */
413
+ release_channel?: 'rapid' | 'stable' | 'extended';
414
+ /**
415
+ * Cluster feature toggles.
416
+ */
417
+ features?: {
418
+ /**
419
+ * GPU sharing strategy.
420
+ */
421
+ gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
422
+ /**
423
+ * Maximum number of pods that may share a single GPU.
424
+ */
425
+ gpu_max_shared_clients_per_gpu?: number;
426
+ /**
427
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
428
+ */
429
+ cilium_socket_lb_host_namespace_only?: boolean;
430
+ };
301
431
  };
432
+ /**
433
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
434
+ */
302
435
  export type FleetCreateInput = {
303
436
  /**
304
437
  * Limits define a set of bounds for provisioning capacity.
@@ -319,7 +452,7 @@ export type FleetCreateInput = {
319
452
  hetzner?: {
320
453
  enabled: boolean;
321
454
  /**
322
- * Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.
455
+ * Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.
323
456
  */
324
457
  apiKey?: string;
325
458
  };
@@ -331,7 +464,7 @@ export type FleetCreateInput = {
331
464
  controllerRoleArn?: string;
332
465
  };
333
466
  /**
334
- * 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.
467
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
335
468
  */
336
469
  constraints?: {
337
470
  /**
@@ -352,7 +485,7 @@ export type FleetCreateInput = {
352
485
  'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
353
486
  };
354
487
  /**
355
- * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
488
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
356
489
  */
357
490
  scalingProfile?: 'aggressive' | 'conservative';
358
491
  /**
@@ -360,6 +493,9 @@ export type FleetCreateInput = {
360
493
  */
361
494
  id: string;
362
495
  };
496
+ /**
497
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
498
+ */
363
499
  export type Fleet = {
364
500
  /**
365
501
  * Limits define a set of bounds for provisioning capacity.
@@ -392,17 +528,17 @@ export type Fleet = {
392
528
  controllerRoleArn?: string;
393
529
  };
394
530
  /**
395
- * 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.
531
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
396
532
  */
397
- constraints?: {
533
+ constraints: {
398
534
  /**
399
535
  * Allowed values for `karpenter.sh/capacity-type`.
400
536
  */
401
- 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
537
+ 'karpenter.sh/capacity-type': Array<'on-demand' | 'spot'>;
402
538
  /**
403
539
  * Allowed values for `kubernetes.io/arch`.
404
540
  */
405
- 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
541
+ 'kubernetes.io/arch': Array<'amd64' | 'arm64'>;
406
542
  /**
407
543
  * Allowed values for `cfke.io/instance-family`.
408
544
  */
@@ -413,14 +549,33 @@ export type Fleet = {
413
549
  'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
414
550
  };
415
551
  /**
416
- * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
552
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
417
553
  */
418
554
  scalingProfile: 'aggressive' | 'conservative';
419
555
  /**
420
556
  * Unique identifier of the kubernetes fleet.
421
557
  */
422
558
  id: string;
559
+ /**
560
+ * Indicates whether the fleet configuration is healthy.
561
+ */
562
+ ready: boolean;
563
+ /**
564
+ * Human-readable reason the fleet is not ready. Present only when `ready` is false.
565
+ */
566
+ status_message?: string;
567
+ /**
568
+ * Creation date and time of the fleet.
569
+ */
570
+ created_at: string;
571
+ /**
572
+ * Date and time the fleet was last updated.
573
+ */
574
+ updated_at: string;
423
575
  };
576
+ /**
577
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
578
+ */
424
579
  export type FleetUpdateInput = {
425
580
  /**
426
581
  * Limits define a set of bounds for provisioning capacity.
@@ -441,7 +596,7 @@ export type FleetUpdateInput = {
441
596
  hetzner?: {
442
597
  enabled: boolean;
443
598
  /**
444
- * Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.
599
+ * Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.
445
600
  */
446
601
  apiKey?: string;
447
602
  };
@@ -453,7 +608,7 @@ export type FleetUpdateInput = {
453
608
  controllerRoleArn?: string;
454
609
  };
455
610
  /**
456
- * 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.
611
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
457
612
  */
458
613
  constraints?: {
459
614
  /**
@@ -474,9 +629,19 @@ export type FleetUpdateInput = {
474
629
  'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
475
630
  };
476
631
  /**
477
- * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
632
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
478
633
  */
479
- scalingProfile: 'aggressive' | 'conservative';
634
+ scalingProfile?: 'aggressive' | 'conservative';
635
+ };
636
+ export type InviteCreateInput = {
637
+ /**
638
+ * Email address of the user to invite.
639
+ */
640
+ email: string;
641
+ /**
642
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
643
+ */
644
+ role?: 'Administrator' | 'User';
480
645
  };
481
646
  export type Invite = {
482
647
  /**
@@ -499,6 +664,10 @@ export type Invite = {
499
664
  * Generated unique invite code.
500
665
  */
501
666
  code?: string;
667
+ /**
668
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
669
+ */
670
+ role?: 'Administrator' | 'User';
502
671
  };
503
672
  export type Invoice = {
504
673
  /**
@@ -619,6 +788,10 @@ export type MarketplaceListing = {
619
788
  };
620
789
  };
621
790
  export type OrganizationCreateInput = {
791
+ /**
792
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
793
+ */
794
+ type: 'business' | 'personal';
622
795
  /**
623
796
  * Email address used for billing as a string.
624
797
  */
@@ -640,6 +813,12 @@ export type OrganizationCreateInput = {
640
813
  */
641
814
  password: string;
642
815
  };
816
+ export type OrganizationCreateOutput = {
817
+ /**
818
+ * Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.
819
+ */
820
+ id: string;
821
+ };
643
822
  export type Organization = {
644
823
  /**
645
824
  * Unique identifier of the organization. UUID v4 string in canonical form
@@ -649,6 +828,10 @@ export type Organization = {
649
828
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
650
829
  */
651
830
  name?: string;
831
+ /**
832
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
833
+ */
834
+ type: 'business' | 'personal';
652
835
  /**
653
836
  * Creation date of the organization. ISO 8601 date string in UTC timezone
654
837
  */
@@ -673,6 +856,14 @@ export type Organization = {
673
856
  * Available number of Pro clusters that can be created.
674
857
  */
675
858
  pro_clusters_available: number;
859
+ /**
860
+ * Maximum number of Enterprise clusters that can be created.
861
+ */
862
+ enterprise_clusters_max: number;
863
+ /**
864
+ * Available number of Enterprise clusters that can be created.
865
+ */
866
+ enterprise_clusters_available: number;
676
867
  /**
677
868
  * Maximum number of fleets that can be created per cluster.
678
869
  */
@@ -707,36 +898,52 @@ export type Organization = {
707
898
  * Status of the organization. Can be `active` or `closed`, or `suspended`.
708
899
  */
709
900
  status: 'active' | 'closed' | 'suspended';
901
+ /**
902
+ * 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.
903
+ */
904
+ verification: 'none' | 'submitted' | 'verified';
710
905
  };
711
906
  export type PaymentMethod = {
712
907
  /**
713
- * Unique identifier of the organization. UUID v4 string in canonical form.
908
+ * 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.
714
909
  */
715
910
  id: string;
716
911
  /**
717
- * Whether organization payment method was set up and ready to use for payments.
718
- */
719
- setup: boolean;
720
- /**
721
- * Payment method type type. Only `card` payments supported at the moment.
912
+ * Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.
722
913
  */
723
- type: 'card';
914
+ type: 'card' | 'sepa_debit' | 'bank_transfer';
724
915
  /**
725
- * Last 4 digits of the payment card number.
916
+ * 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.
726
917
  */
727
918
  last4: string;
728
919
  /**
729
- * Two-digit number representing the card's expiration month.
920
+ * Two-digit number representing the card's expiration month. Null for SEPA Direct Debit and bank transfer.
730
921
  */
731
922
  exp_month: number;
732
923
  /**
733
- * Four-digit number representing the card's expiration year.
924
+ * 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.
734
925
  */
735
926
  exp_year: number;
736
927
  /**
737
- * Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
928
+ * Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.
929
+ */
930
+ brand: string;
931
+ /**
932
+ * 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.
933
+ */
934
+ iban: string;
935
+ /**
936
+ * BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.
937
+ */
938
+ bic: string;
939
+ /**
940
+ * Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.
941
+ */
942
+ account_holder_name: string;
943
+ /**
944
+ * 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).
738
945
  */
739
- brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
946
+ is_default: boolean;
740
947
  };
741
948
  export type PlatformQuota = {
742
949
  /**
@@ -755,6 +962,14 @@ export type PlatformQuota = {
755
962
  * Available number of Pro clusters that can be created.
756
963
  */
757
964
  pro_clusters_available: number;
965
+ /**
966
+ * Maximum number of Enterprise clusters that can be created.
967
+ */
968
+ enterprise_clusters_max: number;
969
+ /**
970
+ * Available number of Enterprise clusters that can be created.
971
+ */
972
+ enterprise_clusters_available: number;
758
973
  /**
759
974
  * Maximum number of fleets that can be created per cluster.
760
975
  */
@@ -967,91 +1182,6 @@ export type TicketCreateInput = {
967
1182
  [key: string]: unknown;
968
1183
  };
969
1184
  };
970
- export type TicketListResponse = {
971
- /**
972
- * Tickets for the organization, ordered newest first. Messages are omitted from list responses.
973
- */
974
- items: Array<{
975
- /**
976
- * Unique identifier of the ticket (Mongo ObjectId).
977
- */
978
- id: string;
979
- /**
980
- * Current state of the ticket.
981
- */
982
- status: 'waiting_on_us' | 'waiting_on_user' | 'closed';
983
- /**
984
- * Ticket category.
985
- */
986
- category: 'billing' | 'technical' | 'general';
987
- /**
988
- * First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
989
- */
990
- summary: string;
991
- /**
992
- * Closure timestamp. Null while the ticket is open.
993
- */
994
- closed_at?: string;
995
- /**
996
- * Creation date of the ticket. ISO 8601 UTC.
997
- */
998
- date_created: string;
999
- /**
1000
- * Last update date of the ticket. ISO 8601 UTC.
1001
- */
1002
- date_updated: string;
1003
- /**
1004
- * Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.
1005
- */
1006
- messages?: Array<{
1007
- /**
1008
- * Unique identifier of the message (Mongo ObjectId).
1009
- */
1010
- id: string;
1011
- /**
1012
- * Message type. Internal notes are filtered out of customer-facing responses.
1013
- */
1014
- type: 'customer_reply' | 'agent_reply';
1015
- /**
1016
- * Message body in markdown.
1017
- */
1018
- body: string;
1019
- /**
1020
- * First name of the author. Null when not provided.
1021
- */
1022
- author_first_name?: string;
1023
- /**
1024
- * Last name of the author. Null when not provided.
1025
- */
1026
- author_last_name?: string;
1027
- /**
1028
- * Attachments associated with this message.
1029
- */
1030
- attachments?: Array<{
1031
- /**
1032
- * Unique identifier of the attachment (Mongo ObjectId).
1033
- */
1034
- id: string;
1035
- /**
1036
- * Original filename as uploaded.
1037
- */
1038
- filename: string;
1039
- /**
1040
- * MIME content type of the attachment.
1041
- */
1042
- content_type: string;
1043
- /**
1044
- * Size of the attachment in bytes.
1045
- */
1046
- size: number;
1047
- }>;
1048
- /**
1049
- * Creation date of the message. ISO 8601 UTC.
1050
- */
1051
- date_created: string;
1052
- }>;
1053
- }>;
1054
- };
1055
1185
  export type TicketMessageInput = {
1056
1186
  /**
1057
1187
  * Reply body in markdown.
@@ -1235,7 +1365,7 @@ export type UsageFacets = {
1235
1365
  /**
1236
1366
  * List of unique products
1237
1367
  */
1238
- product?: Array<string>;
1368
+ product?: Array<'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage'>;
1239
1369
  };
1240
1370
  export type UsageResponse = {
1241
1371
  /**
@@ -1253,7 +1383,7 @@ export type UsageResponse = {
1253
1383
  /**
1254
1384
  * The product the usage is associated with
1255
1385
  */
1256
- product: string;
1386
+ product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
1257
1387
  /**
1258
1388
  * Consumption
1259
1389
  */
@@ -1278,7 +1408,7 @@ export type UsageResponse = {
1278
1408
  /**
1279
1409
  * List of unique products
1280
1410
  */
1281
- product?: Array<string>;
1411
+ product?: Array<'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage'>;
1282
1412
  };
1283
1413
  };
1284
1414
  export type Usage = {
@@ -1293,7 +1423,7 @@ export type Usage = {
1293
1423
  /**
1294
1424
  * The product the usage is associated with
1295
1425
  */
1296
- product: string;
1426
+ product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
1297
1427
  /**
1298
1428
  * Consumption
1299
1429
  */
@@ -1328,14 +1458,6 @@ export type UserCreateInput = {
1328
1458
  * User password. Must be at least 8 characters long.
1329
1459
  */
1330
1460
  password: string;
1331
- /**
1332
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1333
- */
1334
- status?: 'active' | 'inactive';
1335
- /**
1336
- * User role. Can be 'Administrator', 'User'.
1337
- */
1338
- role?: 'Administrator' | 'User';
1339
1461
  };
1340
1462
  export type User = {
1341
1463
  /**
@@ -1389,525 +1511,621 @@ export type UserUpdateInput = {
1389
1511
  */
1390
1512
  status?: 'active' | 'inactive';
1391
1513
  };
1392
- export type GetUsageData = {
1514
+ export type ListUserOrganizationsData = {
1393
1515
  body?: never;
1394
- path?: never;
1395
- query?: {
1516
+ path: {
1396
1517
  /**
1397
- * 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)
1518
+ * User email address.
1398
1519
  */
1399
- granularity?: 'hourly' | 'daily' | 'monthly';
1520
+ email: string;
1400
1521
  };
1401
- url: '/billing/usage';
1402
- };
1403
- export type GetUsageErrors = {
1404
- /**
1405
- * Not authenticated
1406
- */
1407
- 401: unknown;
1522
+ query?: never;
1523
+ url: '/users/organizations/{email}';
1408
1524
  };
1409
- export type GetUsageResponses = {
1525
+ export type ListUserOrganizationsResponses = {
1410
1526
  /**
1411
- * Usage data with facets for filtering
1527
+ * An array of organizations the user belongs to.
1412
1528
  */
1413
- 200: UsageResponse;
1529
+ 200: Array<{
1530
+ /**
1531
+ * Unique identifier of the organization. UUID v4 string in canonical form
1532
+ */
1533
+ realm?: string;
1534
+ /**
1535
+ * Human-readable name of the organization
1536
+ */
1537
+ displayName?: string;
1538
+ }>;
1414
1539
  };
1415
- export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
1416
- export type GetPaymentMethodData = {
1540
+ export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1541
+ export type ListUsersData = {
1417
1542
  body?: never;
1418
1543
  path?: never;
1419
1544
  query?: never;
1420
- url: '/billing/payment-method';
1545
+ url: '/users';
1421
1546
  };
1422
- export type GetPaymentMethodErrors = {
1547
+ export type ListUsersErrors = {
1423
1548
  /**
1424
- * Returns 404 Not Found if the organization does not have a payment method set up.
1549
+ * Not authenticated
1425
1550
  */
1426
- 404: unknown;
1551
+ 401: unknown;
1427
1552
  };
1428
- export type GetPaymentMethodResponses = {
1553
+ export type ListUsersResponses = {
1429
1554
  /**
1430
- * Redacted payment card information.
1555
+ * An array of users
1431
1556
  */
1432
- 200: PaymentMethod;
1557
+ 200: Array<User>;
1433
1558
  };
1434
- export type GetPaymentMethodResponse = GetPaymentMethodResponses[keyof GetPaymentMethodResponses];
1435
- export type GetPaymentMethodSecretData = {
1436
- body?: never;
1559
+ export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1560
+ export type CreateUserData = {
1561
+ body: UserCreateInput;
1437
1562
  path?: never;
1438
1563
  query?: never;
1439
- url: '/billing/payment-method';
1564
+ url: '/users';
1440
1565
  };
1441
- export type GetPaymentMethodSecretResponses = {
1566
+ export type CreateUserResponses = {
1442
1567
  /**
1443
- * 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.
1444
- *
1568
+ * Successfully created. Returns created user details.
1445
1569
  */
1446
- 200: {
1570
+ 200: User;
1571
+ };
1572
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1573
+ export type DeleteUserData = {
1574
+ body?: never;
1575
+ path: {
1447
1576
  /**
1448
- * The client secret.
1577
+ * Unique user identifier. UUID v4 string in canonical form
1449
1578
  */
1450
- id?: string;
1579
+ user_id: string;
1451
1580
  };
1452
- };
1453
- export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
1454
- export type ListInvoicesData = {
1455
- body?: never;
1456
- path?: never;
1457
1581
  query?: never;
1458
- url: '/billing/invoices';
1582
+ url: '/users/{user_id}';
1459
1583
  };
1460
- export type ListInvoicesErrors = {
1584
+ export type DeleteUserErrors = {
1585
+ /**
1586
+ * Deleting own user is not allowed. Delete your organization instead.
1587
+ */
1588
+ 400: unknown;
1461
1589
  /**
1462
1590
  * Not authenticated
1463
1591
  */
1464
1592
  401: unknown;
1465
1593
  };
1466
- export type ListInvoicesResponses = {
1594
+ export type DeleteUserResponses = {
1467
1595
  /**
1468
- * An array of usage records.
1596
+ * User profile information
1469
1597
  */
1470
- 200: Array<Invoice>;
1598
+ 200: User;
1471
1599
  };
1472
- export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
1473
- export type GetContactData = {
1600
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1601
+ export type GetUserData = {
1474
1602
  body?: never;
1475
- path?: never;
1603
+ path: {
1604
+ /**
1605
+ * Unique user identifier. UUID v4 string in canonical form
1606
+ */
1607
+ user_id: string;
1608
+ };
1476
1609
  query?: never;
1477
- url: '/billing/contact';
1610
+ url: '/users/{user_id}';
1478
1611
  };
1479
- export type GetContactResponses = {
1612
+ export type GetUserErrors = {
1480
1613
  /**
1481
- * Returns a single object containing organization contact and billing address details.
1614
+ * Not authenticated
1482
1615
  */
1483
- 200: BillingContact;
1616
+ 401: unknown;
1484
1617
  };
1485
- export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
1486
- export type UpdateContactData = {
1487
- body: BillingContact;
1488
- path?: never;
1618
+ export type GetUserResponses = {
1619
+ /**
1620
+ * User profile information
1621
+ */
1622
+ 200: User;
1623
+ };
1624
+ export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
1625
+ export type UpdateUserData = {
1626
+ body: UserUpdateInput;
1627
+ path: {
1628
+ /**
1629
+ * Unique user identifier. UUID v4 string in canonical form
1630
+ */
1631
+ user_id: string;
1632
+ };
1489
1633
  query?: never;
1490
- url: '/billing/contact';
1634
+ url: '/users/{user_id}';
1491
1635
  };
1492
- export type UpdateContactResponses = {
1636
+ export type UpdateUserResponses = {
1493
1637
  /**
1494
- * Successfully updated. Returns updated organization details.
1638
+ * Successfully created. Returns created user details.
1495
1639
  */
1496
- 200: BillingContact;
1640
+ 200: User;
1497
1641
  };
1498
- export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1499
- export type GetCreditsData = {
1642
+ export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1643
+ export type ListTokensData = {
1500
1644
  body?: never;
1501
1645
  path?: never;
1502
1646
  query?: never;
1503
- url: '/billing/credits';
1647
+ url: '/tokens';
1504
1648
  };
1505
- export type GetCreditsErrors = {
1649
+ export type ListTokensErrors = {
1506
1650
  /**
1507
1651
  * Not authenticated
1508
1652
  */
1509
1653
  401: unknown;
1510
1654
  };
1511
- export type GetCreditsResponses = {
1655
+ export type ListTokensResponses = {
1512
1656
  /**
1513
- * An array of the applied promotional credits records.
1657
+ * Returns a list of access token details with masked secrets.
1514
1658
  */
1515
- 200: Array<BillingCredits>;
1659
+ 200: Array<Token>;
1516
1660
  };
1517
- export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1518
- export type RedeemCreditsData = {
1519
- body: {
1520
- /**
1521
- * Promotional code to redeem
1522
- */
1523
- code?: string;
1524
- };
1661
+ export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1662
+ export type CreateTokenData = {
1663
+ body: TokenCreateInput;
1525
1664
  path?: never;
1526
1665
  query?: never;
1527
- url: '/billing/credits';
1666
+ url: '/tokens';
1528
1667
  };
1529
- export type RedeemCreditsErrors = {
1668
+ export type CreateTokenErrors = {
1530
1669
  /**
1531
1670
  * Not authenticated
1532
1671
  */
1533
1672
  401: unknown;
1534
1673
  };
1535
- export type RedeemCreditsResponses = {
1674
+ export type CreateTokenResponses = {
1536
1675
  /**
1537
- * Successfully created a new organization.
1676
+ * Successfully created. Returns created token details with unmasked/raw secret.
1677
+ */
1678
+ 200: Token;
1679
+ };
1680
+ export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1681
+ export type DeleteTokenData = {
1682
+ body?: never;
1683
+ path: {
1684
+ /**
1685
+ * Generated unique identifier of the access token.
1686
+ */
1687
+ token_id: string;
1688
+ };
1689
+ query?: never;
1690
+ url: '/tokens/{token_id}';
1691
+ };
1692
+ export type DeleteTokenResponses = {
1693
+ /**
1694
+ * Successfully deleted.
1538
1695
  */
1539
1696
  200: unknown;
1540
1697
  };
1541
- export type ListChartsData = {
1698
+ export type GetTokenData = {
1542
1699
  body?: never;
1543
1700
  path: {
1544
1701
  /**
1545
- * Unique identifier of the cluster. UUID v4 string in canonical form
1702
+ * Generated unique identifier of the access token.
1546
1703
  */
1547
- cluster_id: string;
1704
+ token_id: string;
1548
1705
  };
1549
1706
  query?: never;
1550
- url: '/clusters/{cluster_id}/charts';
1707
+ url: '/tokens/{token_id}';
1551
1708
  };
1552
- export type ListChartsErrors = {
1709
+ export type GetTokenErrors = {
1553
1710
  /**
1554
1711
  * Not authenticated
1555
1712
  */
1556
1713
  401: unknown;
1557
1714
  };
1558
- export type ListChartsResponses = {
1715
+ export type GetTokenResponses = {
1559
1716
  /**
1560
- * An array of charts
1717
+ * Returns access token details with masked secret.
1561
1718
  */
1562
- 200: Array<Chart>;
1719
+ 200: Token;
1563
1720
  };
1564
- export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
1565
- export type CreateChartData = {
1566
- body: ChartCreateInput;
1721
+ export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1722
+ export type UpdateTokenData = {
1723
+ body: TokenUpdateInput;
1567
1724
  path: {
1568
1725
  /**
1569
- * Unique identifier of the cluster. UUID v4 string in canonical form
1726
+ * Generated unique identifier of the access token.
1570
1727
  */
1571
- cluster_id: string;
1728
+ token_id: string;
1572
1729
  };
1573
1730
  query?: never;
1574
- url: '/clusters/{cluster_id}/charts';
1731
+ url: '/tokens/{token_id}';
1575
1732
  };
1576
- export type CreateChartResponses = {
1733
+ export type UpdateTokenErrors = {
1577
1734
  /**
1578
- * Successfully created. Returns created Chart ID.
1735
+ * Not authenticated
1579
1736
  */
1580
- 200: string;
1737
+ 401: unknown;
1581
1738
  };
1582
- export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1583
- export type DeleteChartData = {
1739
+ export type UpdateTokenResponses = {
1740
+ /**
1741
+ * Successfully updated. Returns updated token details with masked secret.
1742
+ */
1743
+ 200: Token;
1744
+ };
1745
+ export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1746
+ export type RegenerateTokenData = {
1584
1747
  body?: never;
1585
1748
  path: {
1586
1749
  /**
1587
- * Unique identifier of the cluster. UUID v4 string in canonical form
1588
- */
1589
- cluster_id: string;
1590
- /**
1591
- * Chart deployment name as the unique identifier of the chart.
1750
+ * Generated unique identifier of the access token.
1592
1751
  */
1593
- chart_name: string;
1752
+ token_id: string;
1594
1753
  };
1595
1754
  query?: never;
1596
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1755
+ url: '/tokens/{token_id}/secret';
1597
1756
  };
1598
- export type DeleteChartResponses = {
1757
+ export type RegenerateTokenErrors = {
1599
1758
  /**
1600
- * Successfully deleted.
1759
+ * Not authenticated
1601
1760
  */
1602
- 200: string;
1761
+ 401: unknown;
1603
1762
  };
1604
- export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1605
- export type GetChartData = {
1763
+ export type RegenerateTokenResponses = {
1764
+ /**
1765
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1766
+ */
1767
+ 200: Token;
1768
+ };
1769
+ export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
1770
+ export type ListTicketsData = {
1606
1771
  body?: never;
1607
- path: {
1608
- /**
1609
- * Unique identifier of the cluster. UUID v4 string in canonical form
1610
- */
1611
- cluster_id: string;
1612
- /**
1613
- * Chart deployment name as the unique identifier of the chart.
1614
- */
1615
- chart_name: string;
1616
- };
1772
+ path?: never;
1617
1773
  query?: never;
1618
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1774
+ url: '/tickets';
1619
1775
  };
1620
- export type GetChartResponses = {
1776
+ export type ListTicketsResponses = {
1621
1777
  /**
1622
- * Returns a single object containing chart details.
1778
+ * An array of tickets for the organization, newest first.
1623
1779
  */
1624
- 200: Chart;
1780
+ 200: Array<Ticket>;
1625
1781
  };
1626
- export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1627
- export type UpdateChartData = {
1628
- body: ChartUpdateInput;
1629
- path: {
1630
- /**
1631
- * Unique identifier of the cluster. UUID v4 string in canonical form
1632
- */
1633
- cluster_id: string;
1782
+ export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
1783
+ export type CreateTicketData = {
1784
+ body: {
1634
1785
  /**
1635
- * Chart deployment name as the unique identifier of the chart.
1786
+ * JSON-encoded TicketCreateInput.
1636
1787
  */
1637
- chart_name: string;
1788
+ payload?: string;
1789
+ attachments?: Array<Blob | File>;
1638
1790
  };
1791
+ path?: never;
1639
1792
  query?: never;
1640
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1793
+ url: '/tickets';
1641
1794
  };
1642
- export type UpdateChartResponses = {
1795
+ export type CreateTicketResponses = {
1643
1796
  /**
1644
- * Successfully updated.
1797
+ * Ticket created.
1645
1798
  */
1646
- 200: string;
1799
+ 200: Ticket;
1647
1800
  };
1648
- export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1649
- export type ListFleetsData = {
1801
+ export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
1802
+ export type CloseTicketData = {
1650
1803
  body?: never;
1651
1804
  path: {
1652
- /**
1653
- * Unique identifier of the cluster. UUID v4 string in canonical form
1654
- */
1655
- cluster_id: string;
1805
+ ticket_id: string;
1656
1806
  };
1657
1807
  query?: never;
1658
- url: '/clusters/{cluster_id}/fleets';
1659
- };
1660
- export type ListFleetsErrors = {
1661
- /**
1662
- * Not authenticated
1663
- */
1664
- 401: unknown;
1808
+ url: '/tickets/{ticket_id}';
1665
1809
  };
1666
- export type ListFleetsResponses = {
1810
+ export type CloseTicketResponses = {
1667
1811
  /**
1668
- * An array of fleets
1812
+ * Ticket closed.
1669
1813
  */
1670
- 200: Array<Fleet>;
1814
+ 200: Ticket;
1671
1815
  };
1672
- export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
1673
- export type CreateFleetData = {
1674
- body: FleetCreateInput;
1816
+ export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
1817
+ export type GetTicketData = {
1818
+ body?: never;
1675
1819
  path: {
1676
- /**
1677
- * Unique identifier of the cluster. UUID v4 string in canonical form
1678
- */
1679
- cluster_id: string;
1820
+ ticket_id: string;
1680
1821
  };
1681
1822
  query?: never;
1682
- url: '/clusters/{cluster_id}/fleets';
1823
+ url: '/tickets/{ticket_id}';
1683
1824
  };
1684
- export type CreateFleetErrors = {
1825
+ export type GetTicketResponses = {
1685
1826
  /**
1686
- * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
1827
+ * Ticket with messages (internal notes excluded).
1687
1828
  */
1688
- 402: string;
1829
+ 200: Ticket;
1689
1830
  };
1690
- export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
1691
- export type CreateFleetResponses = {
1831
+ export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
1832
+ export type ReplyTicketData = {
1833
+ body: {
1834
+ /**
1835
+ * JSON-encoded TicketMessageInput.
1836
+ */
1837
+ payload?: string;
1838
+ attachments?: Array<Blob | File>;
1839
+ };
1840
+ path: {
1841
+ ticket_id: string;
1842
+ };
1843
+ query?: never;
1844
+ url: '/tickets/{ticket_id}/messages';
1845
+ };
1846
+ export type ReplyTicketErrors = {
1692
1847
  /**
1693
- * Successfully created. Returns created Fleet ID.
1848
+ * Ticket is closed. Open a new ticket instead.
1694
1849
  */
1695
- 200: string;
1850
+ 409: unknown;
1696
1851
  };
1697
- export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
1698
- export type DeleteFleetData = {
1852
+ export type ReplyTicketResponses = {
1853
+ /**
1854
+ * Reply appended.
1855
+ */
1856
+ 200: TicketMessage;
1857
+ };
1858
+ export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
1859
+ export type GetTicketAttachmentData = {
1699
1860
  body?: never;
1700
1861
  path: {
1701
- /**
1702
- * Unique identifier of the cluster. UUID v4 string in canonical form
1703
- */
1704
- cluster_id: string;
1705
- /**
1706
- * Unique identifier of the fleet. UUID v4 string in canonical form
1707
- */
1708
- fleet_name: string;
1862
+ ticket_id: string;
1863
+ attachment_id: string;
1709
1864
  };
1710
1865
  query?: never;
1711
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1866
+ url: '/tickets/{ticket_id}/attachments/{attachment_id}';
1712
1867
  };
1713
- export type DeleteFleetResponses = {
1868
+ export type GetTicketAttachmentResponses = {
1714
1869
  /**
1715
- * Successfully deleted.
1870
+ * Attachment binary stream.
1716
1871
  */
1717
- 200: string;
1872
+ 200: Blob | File;
1718
1873
  };
1719
- export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
1720
- export type GetFleetData = {
1874
+ export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
1875
+ export type ListRepositoriesData = {
1721
1876
  body?: never;
1722
- path: {
1723
- /**
1724
- * Unique identifier of the cluster. UUID v4 string in canonical form
1725
- */
1726
- cluster_id: string;
1727
- /**
1728
- * Unique identifier of the fleet. UUID v4 string in canonical form
1729
- */
1730
- fleet_name: string;
1731
- };
1877
+ path?: never;
1732
1878
  query?: never;
1733
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1879
+ url: '/registry';
1734
1880
  };
1735
- export type GetFleetResponses = {
1881
+ export type ListRepositoriesErrors = {
1736
1882
  /**
1737
- * Returns a single object containing fleet details.
1883
+ * Not authenticated
1738
1884
  */
1739
- 200: Fleet;
1885
+ 401: unknown;
1886
+ /**
1887
+ * Internal server error
1888
+ */
1889
+ 500: unknown;
1740
1890
  };
1741
- export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
1742
- export type UpdateFleetData = {
1743
- body: FleetUpdateInput;
1891
+ export type ListRepositoriesResponses = {
1892
+ /**
1893
+ * List of repositories
1894
+ */
1895
+ 200: Array<RegistryRepository>;
1896
+ };
1897
+ export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
1898
+ export type ListTagsData = {
1899
+ body?: never;
1744
1900
  path: {
1745
1901
  /**
1746
- * Unique identifier of the cluster. UUID v4 string in canonical form
1902
+ * Region where the repository is located
1747
1903
  */
1748
- cluster_id: string;
1904
+ region: string;
1749
1905
  /**
1750
- * Unique identifier of the fleet. UUID v4 string in canonical form
1906
+ * Name of the repository
1751
1907
  */
1752
- fleet_name: string;
1908
+ repository: string;
1753
1909
  };
1754
1910
  query?: never;
1755
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1911
+ url: '/registry/{region}/{repository}';
1756
1912
  };
1757
- export type UpdateFleetErrors = {
1913
+ export type ListTagsErrors = {
1758
1914
  /**
1759
- * Organization must have a valid payment method configured to access this endpoint.
1915
+ * Not authenticated
1760
1916
  */
1761
- 402: string;
1917
+ 401: unknown;
1918
+ /**
1919
+ * Repository not found
1920
+ */
1921
+ 404: unknown;
1922
+ /**
1923
+ * Internal server error
1924
+ */
1925
+ 500: unknown;
1762
1926
  };
1763
- export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
1764
- export type UpdateFleetResponses = {
1927
+ export type ListTagsResponses = {
1765
1928
  /**
1766
- * Successfully updated.
1929
+ * Repository with tags
1767
1930
  */
1768
- 200: string;
1931
+ 200: RegistryRepositoryWithTags;
1769
1932
  };
1770
- export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
1771
- export type QueryClusterData = {
1933
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
1934
+ export type DeleteTagData = {
1772
1935
  body?: never;
1773
1936
  path: {
1774
1937
  /**
1775
- * Unique identifier of the cluster. UUID v4 string in canonical form
1938
+ * Region where the repository is located
1776
1939
  */
1777
- cluster_id: string;
1940
+ region: string;
1941
+ /**
1942
+ * Name of the repository
1943
+ */
1944
+ repository: string;
1945
+ /**
1946
+ * Name of the tag
1947
+ */
1948
+ tag: string;
1778
1949
  };
1779
1950
  query?: never;
1780
- url: '/clusters/{cluster_id}/query';
1951
+ url: '/registry/{region}/{repository}/{tag}';
1781
1952
  };
1782
- export type QueryClusterErrors = {
1953
+ export type DeleteTagErrors = {
1783
1954
  /**
1784
1955
  * Not authenticated
1785
1956
  */
1786
1957
  401: unknown;
1958
+ /**
1959
+ * Tag not found
1960
+ */
1961
+ 404: unknown;
1962
+ /**
1963
+ * Internal server error
1964
+ */
1965
+ 500: unknown;
1787
1966
  };
1788
- export type QueryClusterResponses = {
1967
+ export type DeleteTagResponses = {
1789
1968
  /**
1790
- * Kubernetes API response
1969
+ * Tag successfully deleted
1791
1970
  */
1792
1971
  200: unknown;
1793
1972
  };
1794
- export type ListClustersData = {
1973
+ export type GetTagData = {
1795
1974
  body?: never;
1796
- path?: never;
1975
+ path: {
1976
+ /**
1977
+ * Region where the repository is located
1978
+ */
1979
+ region: string;
1980
+ /**
1981
+ * Name of the repository
1982
+ */
1983
+ repository: string;
1984
+ /**
1985
+ * Name of the tag
1986
+ */
1987
+ tag: string;
1988
+ };
1797
1989
  query?: never;
1798
- url: '/clusters';
1990
+ url: '/registry/{region}/{repository}/{tag}';
1799
1991
  };
1800
- export type ListClustersErrors = {
1992
+ export type GetTagErrors = {
1801
1993
  /**
1802
1994
  * Not authenticated
1803
1995
  */
1804
1996
  401: unknown;
1997
+ /**
1998
+ * Tag not found
1999
+ */
2000
+ 404: unknown;
2001
+ /**
2002
+ * Internal server error
2003
+ */
2004
+ 500: unknown;
1805
2005
  };
1806
- export type ListClustersResponses = {
2006
+ export type GetTagResponses = {
1807
2007
  /**
1808
- * An array of clusters
2008
+ * Tag details
1809
2009
  */
1810
- 200: Array<Cluster>;
2010
+ 200: RegistryTag;
1811
2011
  };
1812
- export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
1813
- export type CreateClusterData = {
1814
- body: ClusterCreateInput;
2012
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2013
+ export type GetOrganizationData = {
2014
+ body?: never;
1815
2015
  path?: never;
1816
2016
  query?: never;
1817
- url: '/clusters';
2017
+ url: '/organization';
1818
2018
  };
1819
- export type CreateClusterErrors = {
2019
+ export type GetOrganizationResponses = {
1820
2020
  /**
1821
- * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
2021
+ * Returns a single object containing organization details.
1822
2022
  */
1823
- 402: string;
2023
+ 200: Organization;
1824
2024
  };
1825
- export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
1826
- export type CreateClusterResponses = {
2025
+ export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
2026
+ export type CreateOrganizationData = {
2027
+ body: OrganizationCreateInput;
2028
+ path?: never;
2029
+ query?: never;
2030
+ url: '/organization';
2031
+ };
2032
+ export type CreateOrganizationResponses = {
1827
2033
  /**
1828
- * Successfully created. Returns created Cluster ID.
2034
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
2035
+ *
1829
2036
  */
1830
- 200: string;
2037
+ 200: OrganizationCreateOutput;
1831
2038
  };
1832
- export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
1833
- export type DeleteClusterData = {
1834
- body?: never;
1835
- path: {
2039
+ export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses];
2040
+ export type PostMcpData = {
2041
+ /**
2042
+ * JSON-RPC 2.0 request payload
2043
+ */
2044
+ body: {
2045
+ jsonrpc?: string;
2046
+ method?: string;
2047
+ id?: string | number;
1836
2048
  /**
1837
- * Unique identifier of the cluster. UUID v4 string in canonical form
2049
+ * Method-specific parameters
1838
2050
  */
1839
- cluster_id: string;
2051
+ params?: {
2052
+ [key: string]: unknown;
2053
+ };
1840
2054
  };
2055
+ path?: never;
1841
2056
  query?: never;
1842
- url: '/clusters/{cluster_id}';
2057
+ url: '/mcp';
1843
2058
  };
1844
- export type DeleteClusterResponses = {
2059
+ export type PostMcpErrors = {
1845
2060
  /**
1846
- * Successfully deleted.
2061
+ * Not authenticated
1847
2062
  */
1848
- 200: string;
2063
+ 401: unknown;
1849
2064
  };
1850
- export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
1851
- export type GetClusterData = {
1852
- body?: never;
1853
- path: {
1854
- /**
1855
- * Unique identifier of the cluster. UUID v4 string in canonical form
1856
- */
1857
- cluster_id: string;
2065
+ export type PostMcpResponses = {
2066
+ /**
2067
+ * JSON-RPC 2.0 success or error response
2068
+ */
2069
+ 200: {
2070
+ jsonrpc?: string;
2071
+ id?: string | number;
2072
+ result?: {
2073
+ [key: string]: unknown;
2074
+ };
2075
+ error?: {
2076
+ code?: number;
2077
+ message?: string;
2078
+ };
1858
2079
  };
2080
+ };
2081
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2082
+ export type ListMarketplaceChartsData = {
2083
+ body?: never;
2084
+ path?: never;
1859
2085
  query?: never;
1860
- url: '/clusters/{cluster_id}';
2086
+ url: '/marketplace';
1861
2087
  };
1862
- export type GetClusterResponses = {
2088
+ export type ListMarketplaceChartsErrors = {
1863
2089
  /**
1864
- * Returns a single object containing cluster details.
2090
+ * Not authenticated
1865
2091
  */
1866
- 200: Cluster;
1867
- };
1868
- export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
1869
- export type UpdateClusterData = {
1870
- body: ClusterUpdateInput;
1871
- path: {
1872
- /**
1873
- * Unique identifier of the cluster. UUID v4 string in canonical form
1874
- */
1875
- cluster_id: string;
1876
- };
1877
- query?: never;
1878
- url: '/clusters/{cluster_id}';
2092
+ 401: unknown;
1879
2093
  };
1880
- export type UpdateClusterResponses = {
2094
+ export type ListMarketplaceChartsResponses = {
1881
2095
  /**
1882
- * Successfully updated. Returns updated cluster details.
2096
+ * An array of chart listings in the marketplace.
1883
2097
  */
1884
- 200: Cluster;
2098
+ 200: Array<MarketplaceListing>;
1885
2099
  };
1886
- export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
1887
- export type GetJoinInformationData = {
2100
+ export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
2101
+ export type GetMarketplaceChartFilesData = {
1888
2102
  body?: never;
1889
2103
  path: {
1890
2104
  /**
1891
- * Unique identifier of the cluster. UUID v4 string in canonical form
2105
+ * Name of the chart in the marketplace.
1892
2106
  */
1893
- cluster_id: string;
2107
+ chart_name: string;
2108
+ /**
2109
+ * 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).
2110
+ */
2111
+ version_channel: string;
1894
2112
  };
1895
2113
  query?: never;
1896
- url: '/clusters/{cluster_id}/join_information';
2114
+ url: '/marketplace/{chart_name}/files/{version_channel}';
1897
2115
  };
1898
- export type GetJoinInformationErrors = {
2116
+ export type GetMarketplaceChartFilesErrors = {
1899
2117
  /**
1900
- * Not authenticated
2118
+ * Chart not found or no version matches the channel
1901
2119
  */
1902
- 401: unknown;
2120
+ 404: unknown;
1903
2121
  };
1904
- export type GetJoinInformationResponses = {
2122
+ export type GetMarketplaceChartFilesResponses = {
1905
2123
  /**
1906
- * An object of cluster join information
2124
+ * Returns an object containing the chart files for the latest matching version.
1907
2125
  */
1908
- 200: ClusterJoinInformation;
2126
+ 200: MarketplaceListingFiles;
1909
2127
  };
1910
- export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2128
+ export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
1911
2129
  export type ListInvitesData = {
1912
2130
  body?: never;
1913
2131
  path?: never;
@@ -1928,12 +2146,7 @@ export type ListInvitesResponses = {
1928
2146
  };
1929
2147
  export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
1930
2148
  export type CreateInviteData = {
1931
- body: {
1932
- /**
1933
- * User email address
1934
- */
1935
- email?: string;
1936
- };
2149
+ body: InviteCreateInput;
1937
2150
  path?: never;
1938
2151
  query?: never;
1939
2152
  url: '/invites';
@@ -1958,9 +2171,18 @@ export type GetInviteData = {
1958
2171
  };
1959
2172
  export type GetInviteResponses = {
1960
2173
  /**
1961
- * Returns a single object containing invite details.
2174
+ * The invitation code is valid. Returns the invited email and organization.
1962
2175
  */
1963
- 200: Invite;
2176
+ 200: {
2177
+ /**
2178
+ * Email address the invite was issued to.
2179
+ */
2180
+ email?: string;
2181
+ /**
2182
+ * Identifier of the organization the invite grants access to.
2183
+ */
2184
+ organization_id?: string;
2185
+ };
1964
2186
  };
1965
2187
  export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
1966
2188
  export type DeleteInviteData = {
@@ -1980,617 +2202,654 @@ export type DeleteInviteResponses = {
1980
2202
  */
1981
2203
  200: unknown;
1982
2204
  };
1983
- export type ListMarketplaceChartsData = {
2205
+ export type QueryClusterData = {
1984
2206
  body?: never;
1985
- path?: never;
2207
+ path: {
2208
+ /**
2209
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2210
+ */
2211
+ cluster_id: string;
2212
+ };
1986
2213
  query?: never;
1987
- url: '/marketplace';
2214
+ url: '/clusters/{cluster_id}/query';
1988
2215
  };
1989
- export type ListMarketplaceChartsErrors = {
2216
+ export type QueryClusterErrors = {
1990
2217
  /**
1991
2218
  * Not authenticated
1992
2219
  */
1993
2220
  401: unknown;
1994
2221
  };
1995
- export type ListMarketplaceChartsResponses = {
2222
+ export type QueryClusterResponses = {
1996
2223
  /**
1997
- * An array of chart listings in the marketplace.
2224
+ * Kubernetes API response
1998
2225
  */
1999
- 200: Array<MarketplaceListing>;
2226
+ 200: unknown;
2000
2227
  };
2001
- export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
2002
- export type GetMarketplaceChartFilesData = {
2228
+ export type ListFleetsData = {
2003
2229
  body?: never;
2004
2230
  path: {
2005
2231
  /**
2006
- * Name of the chart in the marketplace.
2007
- */
2008
- chart_name: string;
2009
- /**
2010
- * 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).
2232
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2011
2233
  */
2012
- version_channel: string;
2234
+ cluster_id: string;
2013
2235
  };
2014
2236
  query?: never;
2015
- url: '/marketplace/{chart_name}/files/{version_channel}';
2237
+ url: '/clusters/{cluster_id}/fleets';
2016
2238
  };
2017
- export type GetMarketplaceChartFilesErrors = {
2239
+ export type ListFleetsErrors = {
2018
2240
  /**
2019
- * Chart not found or no version matches the channel
2241
+ * Not authenticated
2020
2242
  */
2021
- 404: unknown;
2243
+ 401: unknown;
2022
2244
  };
2023
- export type GetMarketplaceChartFilesResponses = {
2245
+ export type ListFleetsResponses = {
2024
2246
  /**
2025
- * Returns an object containing the chart files for the latest matching version.
2247
+ * An array of fleets
2026
2248
  */
2027
- 200: MarketplaceListingFiles;
2249
+ 200: Array<Fleet>;
2028
2250
  };
2029
- export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
2030
- export type PostMcpData = {
2031
- /**
2032
- * JSON-RPC 2.0 request payload
2033
- */
2034
- body: {
2035
- jsonrpc?: string;
2036
- method?: string;
2037
- id?: string | number;
2251
+ export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
2252
+ export type CreateFleetData = {
2253
+ body: FleetCreateInput;
2254
+ path: {
2038
2255
  /**
2039
- * Method-specific parameters
2256
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2040
2257
  */
2041
- params?: {
2042
- [key: string]: unknown;
2043
- };
2258
+ cluster_id: string;
2044
2259
  };
2045
- path?: never;
2046
2260
  query?: never;
2047
- url: '/mcp';
2261
+ url: '/clusters/{cluster_id}/fleets';
2048
2262
  };
2049
- export type PostMcpErrors = {
2263
+ export type CreateFleetErrors = {
2050
2264
  /**
2051
- * Not authenticated
2265
+ * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
2052
2266
  */
2053
- 401: unknown;
2267
+ 402: string;
2268
+ /**
2269
+ * 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.
2270
+ */
2271
+ 409: string;
2054
2272
  };
2055
- export type PostMcpResponses = {
2273
+ export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
2274
+ export type CreateFleetResponses = {
2056
2275
  /**
2057
- * JSON-RPC 2.0 success or error response
2276
+ * Successfully created. Returns created Fleet ID.
2058
2277
  */
2059
- 200: {
2060
- jsonrpc?: string;
2061
- id?: string | number;
2062
- result?: {
2063
- [key: string]: unknown;
2064
- };
2065
- error?: {
2066
- code?: number;
2067
- message?: string;
2068
- };
2069
- };
2278
+ 200: string;
2070
2279
  };
2071
- export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2072
- export type GetOrganizationData = {
2280
+ export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
2281
+ export type DeleteFleetData = {
2073
2282
  body?: never;
2074
- path?: never;
2283
+ path: {
2284
+ /**
2285
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2286
+ */
2287
+ cluster_id: string;
2288
+ /**
2289
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2290
+ */
2291
+ fleet_name: string;
2292
+ };
2075
2293
  query?: never;
2076
- url: '/organization';
2294
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2077
2295
  };
2078
- export type GetOrganizationResponses = {
2296
+ export type DeleteFleetErrors = {
2079
2297
  /**
2080
- * Returns a single object containing organization details.
2298
+ * 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.
2081
2299
  */
2082
- 200: Organization;
2300
+ 409: string;
2083
2301
  };
2084
- export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
2085
- export type CreateOrganizationData = {
2086
- body: OrganizationCreateInput;
2087
- path?: never;
2302
+ export type DeleteFleetError = DeleteFleetErrors[keyof DeleteFleetErrors];
2303
+ export type DeleteFleetResponses = {
2304
+ /**
2305
+ * Successfully deleted.
2306
+ */
2307
+ 200: string;
2308
+ };
2309
+ export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
2310
+ export type GetFleetData = {
2311
+ body?: never;
2312
+ path: {
2313
+ /**
2314
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2315
+ */
2316
+ cluster_id: string;
2317
+ /**
2318
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2319
+ */
2320
+ fleet_name: string;
2321
+ };
2088
2322
  query?: never;
2089
- url: '/organization';
2323
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2090
2324
  };
2091
- export type CreateOrganizationResponses = {
2325
+ export type GetFleetResponses = {
2092
2326
  /**
2093
- * Successfully created a new organization.
2327
+ * Returns a single object containing fleet details.
2094
2328
  */
2095
- 200: unknown;
2329
+ 200: Fleet;
2096
2330
  };
2097
- export type ListRepositoriesData = {
2098
- body?: never;
2099
- path?: never;
2331
+ export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
2332
+ export type UpdateFleetData = {
2333
+ body: FleetUpdateInput;
2334
+ path: {
2335
+ /**
2336
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2337
+ */
2338
+ cluster_id: string;
2339
+ /**
2340
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2341
+ */
2342
+ fleet_name: string;
2343
+ };
2100
2344
  query?: never;
2101
- url: '/registry';
2345
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2102
2346
  };
2103
- export type ListRepositoriesErrors = {
2347
+ export type UpdateFleetErrors = {
2104
2348
  /**
2105
- * Not authenticated
2349
+ * Organization must have a valid payment method configured to access this endpoint.
2106
2350
  */
2107
- 401: unknown;
2351
+ 402: string;
2108
2352
  /**
2109
- * Internal server error
2353
+ * 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.
2110
2354
  */
2111
- 500: unknown;
2355
+ 409: string;
2112
2356
  };
2113
- export type ListRepositoriesResponses = {
2357
+ export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
2358
+ export type UpdateFleetResponses = {
2114
2359
  /**
2115
- * List of repositories
2360
+ * Successfully updated.
2116
2361
  */
2117
- 200: Array<RegistryRepository>;
2362
+ 200: string;
2118
2363
  };
2119
- export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
2120
- export type ListTagsData = {
2364
+ export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
2365
+ export type ListChartsData = {
2121
2366
  body?: never;
2122
2367
  path: {
2123
2368
  /**
2124
- * Region where the repository is located
2125
- */
2126
- region: string;
2127
- /**
2128
- * Name of the repository
2369
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2129
2370
  */
2130
- repository: string;
2371
+ cluster_id: string;
2131
2372
  };
2132
2373
  query?: never;
2133
- url: '/registry/{region}/{repository}';
2374
+ url: '/clusters/{cluster_id}/charts';
2134
2375
  };
2135
- export type ListTagsErrors = {
2376
+ export type ListChartsErrors = {
2136
2377
  /**
2137
2378
  * Not authenticated
2138
2379
  */
2139
2380
  401: unknown;
2381
+ };
2382
+ export type ListChartsResponses = {
2140
2383
  /**
2141
- * Repository not found
2384
+ * An array of charts
2142
2385
  */
2143
- 404: unknown;
2386
+ 200: Array<Chart>;
2387
+ };
2388
+ export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
2389
+ export type CreateChartData = {
2390
+ body: ChartCreateInput;
2391
+ path: {
2392
+ /**
2393
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2394
+ */
2395
+ cluster_id: string;
2396
+ };
2397
+ query?: never;
2398
+ url: '/clusters/{cluster_id}/charts';
2399
+ };
2400
+ export type CreateChartErrors = {
2144
2401
  /**
2145
- * Internal server error
2402
+ * 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.
2146
2403
  */
2147
- 500: unknown;
2404
+ 409: string;
2148
2405
  };
2149
- export type ListTagsResponses = {
2406
+ export type CreateChartError = CreateChartErrors[keyof CreateChartErrors];
2407
+ export type CreateChartResponses = {
2150
2408
  /**
2151
- * Repository with tags
2409
+ * Successfully created. Returns created Chart ID.
2152
2410
  */
2153
- 200: RegistryRepositoryWithTags;
2411
+ 200: string;
2154
2412
  };
2155
- export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
2156
- export type DeleteTagData = {
2413
+ export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
2414
+ export type DeleteChartData = {
2157
2415
  body?: never;
2158
2416
  path: {
2159
2417
  /**
2160
- * Region where the repository is located
2161
- */
2162
- region: string;
2163
- /**
2164
- * Name of the repository
2418
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2165
2419
  */
2166
- repository: string;
2420
+ cluster_id: string;
2167
2421
  /**
2168
- * Name of the tag
2422
+ * Chart deployment name as the unique identifier of the chart.
2169
2423
  */
2170
- tag: string;
2424
+ chart_name: string;
2171
2425
  };
2172
2426
  query?: never;
2173
- url: '/registry/{region}/{repository}/{tag}';
2427
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2174
2428
  };
2175
- export type DeleteTagErrors = {
2176
- /**
2177
- * Not authenticated
2178
- */
2179
- 401: unknown;
2180
- /**
2181
- * Tag not found
2182
- */
2183
- 404: unknown;
2429
+ export type DeleteChartErrors = {
2184
2430
  /**
2185
- * Internal server error
2431
+ * 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.
2186
2432
  */
2187
- 500: unknown;
2433
+ 409: string;
2188
2434
  };
2189
- export type DeleteTagResponses = {
2435
+ export type DeleteChartError = DeleteChartErrors[keyof DeleteChartErrors];
2436
+ export type DeleteChartResponses = {
2190
2437
  /**
2191
- * Tag successfully deleted
2438
+ * Successfully deleted.
2192
2439
  */
2193
- 200: unknown;
2440
+ 200: string;
2194
2441
  };
2195
- export type GetTagData = {
2442
+ export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
2443
+ export type GetChartData = {
2196
2444
  body?: never;
2197
2445
  path: {
2198
2446
  /**
2199
- * Region where the repository is located
2200
- */
2201
- region: string;
2202
- /**
2203
- * Name of the repository
2447
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2204
2448
  */
2205
- repository: string;
2449
+ cluster_id: string;
2206
2450
  /**
2207
- * Name of the tag
2451
+ * Chart deployment name as the unique identifier of the chart.
2208
2452
  */
2209
- tag: string;
2453
+ chart_name: string;
2210
2454
  };
2211
2455
  query?: never;
2212
- url: '/registry/{region}/{repository}/{tag}';
2456
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2213
2457
  };
2214
- export type GetTagErrors = {
2215
- /**
2216
- * Not authenticated
2217
- */
2218
- 401: unknown;
2458
+ export type GetChartResponses = {
2219
2459
  /**
2220
- * Tag not found
2460
+ * Returns a single object containing chart details.
2221
2461
  */
2222
- 404: unknown;
2462
+ 200: Chart;
2463
+ };
2464
+ export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
2465
+ export type UpdateChartData = {
2466
+ body: ChartUpdateInput;
2467
+ path: {
2468
+ /**
2469
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2470
+ */
2471
+ cluster_id: string;
2472
+ /**
2473
+ * Chart deployment name as the unique identifier of the chart.
2474
+ */
2475
+ chart_name: string;
2476
+ };
2477
+ query?: never;
2478
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2479
+ };
2480
+ export type UpdateChartErrors = {
2223
2481
  /**
2224
- * Internal server error
2482
+ * 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.
2225
2483
  */
2226
- 500: unknown;
2484
+ 409: string;
2227
2485
  };
2228
- export type GetTagResponses = {
2486
+ export type UpdateChartError = UpdateChartErrors[keyof UpdateChartErrors];
2487
+ export type UpdateChartResponses = {
2229
2488
  /**
2230
- * Tag details
2489
+ * Successfully updated.
2231
2490
  */
2232
- 200: RegistryTag;
2491
+ 200: string;
2233
2492
  };
2234
- export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2235
- export type ListTicketsData = {
2493
+ export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
2494
+ export type ListClustersData = {
2236
2495
  body?: never;
2237
2496
  path?: never;
2238
2497
  query?: never;
2239
- url: '/tickets';
2498
+ url: '/clusters';
2240
2499
  };
2241
- export type ListTicketsResponses = {
2500
+ export type ListClustersErrors = {
2242
2501
  /**
2243
- * Tickets for the organization.
2502
+ * Not authenticated
2244
2503
  */
2245
- 200: TicketListResponse;
2504
+ 401: unknown;
2246
2505
  };
2247
- export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
2248
- export type CreateTicketData = {
2249
- body: {
2250
- /**
2251
- * JSON-encoded TicketCreateInput.
2252
- */
2253
- payload?: string;
2254
- attachments?: Array<Blob | File>;
2255
- };
2506
+ export type ListClustersResponses = {
2507
+ /**
2508
+ * An array of clusters
2509
+ */
2510
+ 200: Array<Cluster>;
2511
+ };
2512
+ export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
2513
+ export type CreateClusterData = {
2514
+ body: ClusterCreateInput;
2256
2515
  path?: never;
2257
2516
  query?: never;
2258
- url: '/tickets';
2517
+ url: '/clusters';
2259
2518
  };
2260
- export type CreateTicketResponses = {
2519
+ export type CreateClusterErrors = {
2261
2520
  /**
2262
- * Ticket created.
2521
+ * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
2263
2522
  */
2264
- 200: Ticket;
2265
- };
2266
- export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
2267
- export type CloseTicketData = {
2268
- body?: never;
2269
- path: {
2270
- ticket_id: string;
2271
- };
2272
- query?: never;
2273
- url: '/tickets/{ticket_id}';
2523
+ 402: string;
2274
2524
  };
2275
- export type CloseTicketResponses = {
2525
+ export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
2526
+ export type CreateClusterResponses = {
2276
2527
  /**
2277
- * Ticket closed.
2528
+ * Successfully created. Returns created Cluster ID.
2278
2529
  */
2279
- 200: Ticket;
2530
+ 200: string;
2280
2531
  };
2281
- export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
2282
- export type GetTicketData = {
2532
+ export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
2533
+ export type DeleteClusterData = {
2283
2534
  body?: never;
2284
2535
  path: {
2285
- ticket_id: string;
2536
+ /**
2537
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2538
+ */
2539
+ cluster_id: string;
2286
2540
  };
2287
2541
  query?: never;
2288
- url: '/tickets/{ticket_id}';
2542
+ url: '/clusters/{cluster_id}';
2289
2543
  };
2290
- export type GetTicketResponses = {
2544
+ export type DeleteClusterErrors = {
2291
2545
  /**
2292
- * Ticket with messages (internal notes excluded).
2546
+ * Cluster not found; it does not exist or has already been deleted.
2293
2547
  */
2294
- 200: Ticket;
2548
+ 404: unknown;
2549
+ /**
2550
+ * 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.
2551
+ */
2552
+ 409: string;
2553
+ /**
2554
+ * Transient failure tearing down the cluster; retry the request.
2555
+ */
2556
+ 503: unknown;
2295
2557
  };
2296
- export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
2297
- export type ReplyTicketData = {
2298
- body: {
2558
+ export type DeleteClusterError = DeleteClusterErrors[keyof DeleteClusterErrors];
2559
+ export type DeleteClusterResponses = {
2560
+ /**
2561
+ * Successfully deleted. The cluster has been torn down.
2562
+ */
2563
+ 200: string;
2564
+ };
2565
+ export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
2566
+ export type GetClusterData = {
2567
+ body?: never;
2568
+ path: {
2299
2569
  /**
2300
- * JSON-encoded TicketMessageInput.
2570
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2301
2571
  */
2302
- payload?: string;
2303
- attachments?: Array<Blob | File>;
2304
- };
2305
- path: {
2306
- ticket_id: string;
2572
+ cluster_id: string;
2307
2573
  };
2308
2574
  query?: never;
2309
- url: '/tickets/{ticket_id}/messages';
2310
- };
2311
- export type ReplyTicketErrors = {
2312
- /**
2313
- * Ticket is closed. Open a new ticket instead.
2314
- */
2315
- 409: unknown;
2575
+ url: '/clusters/{cluster_id}';
2316
2576
  };
2317
- export type ReplyTicketResponses = {
2577
+ export type GetClusterResponses = {
2318
2578
  /**
2319
- * Reply appended.
2579
+ * Returns a single object containing cluster details.
2320
2580
  */
2321
- 200: TicketMessage;
2581
+ 200: Cluster;
2322
2582
  };
2323
- export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
2324
- export type GetTicketAttachmentData = {
2325
- body?: never;
2583
+ export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
2584
+ export type UpdateClusterData = {
2585
+ body: ClusterUpdateInput;
2326
2586
  path: {
2327
- ticket_id: string;
2328
- attachment_id: string;
2587
+ /**
2588
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2589
+ */
2590
+ cluster_id: string;
2329
2591
  };
2330
2592
  query?: never;
2331
- url: '/tickets/{ticket_id}/attachments/{attachment_id}';
2593
+ url: '/clusters/{cluster_id}';
2332
2594
  };
2333
- export type GetTicketAttachmentResponses = {
2595
+ export type UpdateClusterErrors = {
2334
2596
  /**
2335
- * Attachment binary stream.
2597
+ * 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.
2336
2598
  */
2337
- 200: Blob | File;
2599
+ 409: string;
2338
2600
  };
2339
- export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
2340
- export type ListTokensData = {
2601
+ export type UpdateClusterError = UpdateClusterErrors[keyof UpdateClusterErrors];
2602
+ export type UpdateClusterResponses = {
2603
+ /**
2604
+ * Successfully updated. Returns updated cluster details.
2605
+ */
2606
+ 200: Cluster;
2607
+ };
2608
+ export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
2609
+ export type GetJoinInformationData = {
2341
2610
  body?: never;
2342
- path?: never;
2611
+ path: {
2612
+ /**
2613
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2614
+ */
2615
+ cluster_id: string;
2616
+ };
2343
2617
  query?: never;
2344
- url: '/tokens';
2618
+ url: '/clusters/{cluster_id}/join_information';
2345
2619
  };
2346
- export type ListTokensErrors = {
2620
+ export type GetJoinInformationErrors = {
2347
2621
  /**
2348
2622
  * Not authenticated
2349
2623
  */
2350
2624
  401: unknown;
2625
+ /**
2626
+ * 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.
2627
+ */
2628
+ 409: string;
2351
2629
  };
2352
- export type ListTokensResponses = {
2630
+ export type GetJoinInformationError = GetJoinInformationErrors[keyof GetJoinInformationErrors];
2631
+ export type GetJoinInformationResponses = {
2353
2632
  /**
2354
- * Returns a list of access token details with masked secrets.
2633
+ * An object of cluster join information
2355
2634
  */
2356
- 200: Array<Token>;
2635
+ 200: ClusterJoinInformation;
2357
2636
  };
2358
- export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
2359
- export type CreateTokenData = {
2360
- body: TokenCreateInput;
2637
+ export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2638
+ export type GetUsageData = {
2639
+ body?: never;
2361
2640
  path?: never;
2362
- query?: never;
2363
- url: '/tokens';
2641
+ query?: {
2642
+ /**
2643
+ * 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)
2644
+ */
2645
+ granularity?: 'hourly' | 'daily' | 'monthly';
2646
+ };
2647
+ url: '/billing/usage';
2364
2648
  };
2365
- export type CreateTokenErrors = {
2649
+ export type GetUsageErrors = {
2366
2650
  /**
2367
2651
  * Not authenticated
2368
2652
  */
2369
2653
  401: unknown;
2370
2654
  };
2371
- export type CreateTokenResponses = {
2655
+ export type GetUsageResponses = {
2372
2656
  /**
2373
- * Successfully created. Returns created token details with unmasked/raw secret.
2657
+ * Usage data with facets for filtering
2374
2658
  */
2375
- 200: Token;
2659
+ 200: UsageResponse;
2376
2660
  };
2377
- export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
2378
- export type DeleteTokenData = {
2661
+ export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
2662
+ export type GetPaymentMethodSecretData = {
2379
2663
  body?: never;
2380
- path: {
2381
- /**
2382
- * Generated unique identifier of the access token.
2383
- */
2384
- token_id: string;
2385
- };
2664
+ path?: never;
2386
2665
  query?: never;
2387
- url: '/tokens/{token_id}';
2666
+ url: '/billing/payment-method';
2388
2667
  };
2389
- export type DeleteTokenResponses = {
2668
+ export type GetPaymentMethodSecretResponses = {
2390
2669
  /**
2391
- * Successfully deleted.
2670
+ * 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.
2671
+ *
2392
2672
  */
2393
- 200: unknown;
2394
- };
2395
- export type GetTokenData = {
2396
- body?: never;
2397
- path: {
2673
+ 200: {
2398
2674
  /**
2399
- * Generated unique identifier of the access token.
2675
+ * The client secret.
2400
2676
  */
2401
- token_id: string;
2677
+ id?: string;
2402
2678
  };
2679
+ };
2680
+ export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
2681
+ export type ListPaymentMethodsData = {
2682
+ body?: never;
2683
+ path?: never;
2403
2684
  query?: never;
2404
- url: '/tokens/{token_id}';
2685
+ url: '/billing/payment-methods';
2405
2686
  };
2406
- export type GetTokenErrors = {
2687
+ export type ListPaymentMethodsErrors = {
2407
2688
  /**
2408
2689
  * Not authenticated
2409
2690
  */
2410
2691
  401: unknown;
2411
2692
  };
2412
- export type GetTokenResponses = {
2693
+ export type ListPaymentMethodsResponses = {
2413
2694
  /**
2414
- * Returns access token details with masked secret.
2695
+ * An array of payment methods.
2415
2696
  */
2416
- 200: Token;
2697
+ 200: Array<PaymentMethod>;
2417
2698
  };
2418
- export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
2419
- export type UpdateTokenData = {
2420
- body: TokenUpdateInput;
2699
+ export type ListPaymentMethodsResponse = ListPaymentMethodsResponses[keyof ListPaymentMethodsResponses];
2700
+ export type SetDefaultPaymentMethodData = {
2701
+ body?: never;
2421
2702
  path: {
2422
2703
  /**
2423
- * Generated unique identifier of the access token.
2704
+ * Stripe payment method identifier.
2424
2705
  */
2425
- token_id: string;
2706
+ paymentMethodId: string;
2426
2707
  };
2427
2708
  query?: never;
2428
- url: '/tokens/{token_id}';
2709
+ url: '/billing/payment-methods/{paymentMethodId}/default';
2429
2710
  };
2430
- export type UpdateTokenErrors = {
2711
+ export type SetDefaultPaymentMethodErrors = {
2712
+ /**
2713
+ * The bank transfer payment method cannot be set as the default.
2714
+ */
2715
+ 400: unknown;
2431
2716
  /**
2432
2717
  * Not authenticated
2433
2718
  */
2434
2719
  401: unknown;
2720
+ /**
2721
+ * Payment method not found.
2722
+ */
2723
+ 404: unknown;
2435
2724
  };
2436
- export type UpdateTokenResponses = {
2725
+ export type SetDefaultPaymentMethodResponses = {
2437
2726
  /**
2438
- * Successfully updated. Returns updated token details with masked secret.
2727
+ * Default payment method updated.
2439
2728
  */
2440
- 200: Token;
2729
+ 204: void;
2441
2730
  };
2442
- export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
2443
- export type RegenerateTokenData = {
2731
+ export type SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponses[keyof SetDefaultPaymentMethodResponses];
2732
+ export type DeletePaymentMethodData = {
2444
2733
  body?: never;
2445
2734
  path: {
2446
2735
  /**
2447
- * Generated unique identifier of the access token.
2736
+ * Stripe payment method identifier.
2448
2737
  */
2449
- token_id: string;
2738
+ paymentMethodId: string;
2450
2739
  };
2451
2740
  query?: never;
2452
- url: '/tokens/{token_id}/secret';
2741
+ url: '/billing/payment-methods/{paymentMethodId}';
2453
2742
  };
2454
- export type RegenerateTokenErrors = {
2743
+ export type DeletePaymentMethodErrors = {
2744
+ /**
2745
+ * The bank transfer payment method cannot be removed.
2746
+ */
2747
+ 400: unknown;
2455
2748
  /**
2456
2749
  * Not authenticated
2457
2750
  */
2458
2751
  401: unknown;
2459
- };
2460
- export type RegenerateTokenResponses = {
2461
2752
  /**
2462
- * Successfully updated. Returns updated token details with unmasked / raw secret.
2753
+ * Payment method not found.
2463
2754
  */
2464
- 200: Token;
2465
- };
2466
- export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
2467
- export type ListUserOrganizationsData = {
2468
- body?: never;
2469
- path: {
2470
- /**
2471
- * User email address.
2472
- */
2473
- email: string;
2474
- };
2475
- query?: never;
2476
- url: '/users/organizations/{email}';
2755
+ 404: unknown;
2756
+ /**
2757
+ * Cannot delete the only remaining payment method.
2758
+ */
2759
+ 409: unknown;
2477
2760
  };
2478
- export type ListUserOrganizationsResponses = {
2761
+ export type DeletePaymentMethodResponses = {
2479
2762
  /**
2480
- * An array of organizations the user belongs to.
2763
+ * Payment method deleted.
2481
2764
  */
2482
- 200: Array<{
2483
- /**
2484
- * Unique identifier of the organization. UUID v4 string in canonical form
2485
- */
2486
- realm?: string;
2487
- /**
2488
- * Human-readable name of the organization
2489
- */
2490
- displayName?: string;
2491
- }>;
2765
+ 204: void;
2492
2766
  };
2493
- export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
2494
- export type ListUsersData = {
2767
+ export type DeletePaymentMethodResponse = DeletePaymentMethodResponses[keyof DeletePaymentMethodResponses];
2768
+ export type ListInvoicesData = {
2495
2769
  body?: never;
2496
2770
  path?: never;
2497
2771
  query?: never;
2498
- url: '/users';
2772
+ url: '/billing/invoices';
2499
2773
  };
2500
- export type ListUsersErrors = {
2774
+ export type ListInvoicesErrors = {
2501
2775
  /**
2502
2776
  * Not authenticated
2503
2777
  */
2504
2778
  401: unknown;
2505
2779
  };
2506
- export type ListUsersResponses = {
2780
+ export type ListInvoicesResponses = {
2507
2781
  /**
2508
- * An array of users
2782
+ * An array of usage records.
2509
2783
  */
2510
- 200: Array<User>;
2784
+ 200: Array<Invoice>;
2511
2785
  };
2512
- export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
2513
- export type CreateUserData = {
2514
- body: UserCreateInput;
2786
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
2787
+ export type GetContactData = {
2788
+ body?: never;
2515
2789
  path?: never;
2516
2790
  query?: never;
2517
- url: '/users';
2791
+ url: '/billing/contact';
2518
2792
  };
2519
- export type CreateUserResponses = {
2793
+ export type GetContactResponses = {
2520
2794
  /**
2521
- * Successfully created. Returns created user details.
2795
+ * Returns a single object containing organization contact and billing address details.
2522
2796
  */
2523
- 200: User;
2797
+ 200: BillingContact;
2524
2798
  };
2525
- export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
2526
- export type DeleteUserData = {
2527
- body?: never;
2528
- path: {
2529
- /**
2530
- * Unique user identifier. UUID v4 string in canonical form
2531
- */
2532
- user_id: string;
2533
- };
2799
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
2800
+ export type UpdateContactData = {
2801
+ body: BillingContact;
2802
+ path?: never;
2534
2803
  query?: never;
2535
- url: '/users/{user_id}';
2804
+ url: '/billing/contact';
2536
2805
  };
2537
- export type DeleteUserErrors = {
2806
+ export type UpdateContactResponses = {
2538
2807
  /**
2539
- * Deleting own user is not allowed. Delete your organization instead.
2808
+ * Successfully updated. Returns updated organization details.
2540
2809
  */
2541
- 400: unknown;
2810
+ 200: BillingContact;
2811
+ };
2812
+ export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
2813
+ export type GetCreditsData = {
2814
+ body?: never;
2815
+ path?: never;
2816
+ query?: never;
2817
+ url: '/billing/credits';
2818
+ };
2819
+ export type GetCreditsErrors = {
2542
2820
  /**
2543
2821
  * Not authenticated
2544
2822
  */
2545
2823
  401: unknown;
2546
2824
  };
2547
- export type DeleteUserResponses = {
2825
+ export type GetCreditsResponses = {
2548
2826
  /**
2549
- * User profile information
2827
+ * An array of the applied promotional credits records.
2550
2828
  */
2551
- 200: User;
2829
+ 200: Array<BillingCredits>;
2552
2830
  };
2553
- export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
2554
- export type GetUserData = {
2555
- body?: never;
2556
- path: {
2831
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
2832
+ export type RedeemCreditsData = {
2833
+ body: {
2557
2834
  /**
2558
- * Unique user identifier. UUID v4 string in canonical form
2835
+ * Promotional code to redeem
2559
2836
  */
2560
- user_id: string;
2837
+ code?: string;
2561
2838
  };
2839
+ path?: never;
2562
2840
  query?: never;
2563
- url: '/users/{user_id}';
2841
+ url: '/billing/credits';
2564
2842
  };
2565
- export type GetUserErrors = {
2843
+ export type RedeemCreditsErrors = {
2566
2844
  /**
2567
2845
  * Not authenticated
2568
2846
  */
2569
2847
  401: unknown;
2570
2848
  };
2571
- export type GetUserResponses = {
2572
- /**
2573
- * User profile information
2574
- */
2575
- 200: User;
2576
- };
2577
- export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
2578
- export type UpdateUserData = {
2579
- body: UserUpdateInput;
2580
- path: {
2581
- /**
2582
- * Unique user identifier. UUID v4 string in canonical form
2583
- */
2584
- user_id: string;
2585
- };
2586
- query?: never;
2587
- url: '/users/{user_id}';
2588
- };
2589
- export type UpdateUserResponses = {
2849
+ export type RedeemCreditsResponses = {
2590
2850
  /**
2591
- * Successfully created. Returns created user details.
2851
+ * Successfully created a new organization.
2592
2852
  */
2593
- 200: User;
2853
+ 200: unknown;
2594
2854
  };
2595
- export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
2596
2855
  //# sourceMappingURL=types.gen.d.ts.map