@cloudfleet/sdk 0.0.1-9a4447d → 0.0.1-9bc5464

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,26 @@
1
1
  export type ClientOptions = {
2
2
  baseUrl: 'https://api.cloudfleet.ai/v1' | (string & {});
3
3
  };
4
+ export type BasicPriceConsentInput = {
5
+ /**
6
+ * The administrator's decision on the new Basic price. `accepted` continues to paid billing when the signup credit runs out; `rejected` opts out (clusters are suspended, never charged). A `rejected` org can later be flipped back to `accepted`.
7
+ */
8
+ decision: 'accepted' | 'rejected';
9
+ };
10
+ export type BasicPriceConsent = {
11
+ /**
12
+ * Consent status for the new Basic price. `not_applicable` when the organization is not in scope for the migration. `pending` when the organization must opt in but no admin has decided yet. `accepted` / `rejected` reflect the recorded decision.
13
+ */
14
+ status: 'not_applicable' | 'pending' | 'accepted' | 'rejected';
15
+ /**
16
+ * When the current decision was recorded. Absent while `not_applicable` or `pending`.
17
+ */
18
+ decided_at?: string;
19
+ /**
20
+ * User id of the administrator who recorded the current decision. Absent while `not_applicable` or `pending`.
21
+ */
22
+ decided_by?: string;
23
+ };
4
24
  export type BillingContact = {
5
25
  /**
6
26
  * Type of the organization. `business` for legal entities, `personal` for individuals.
@@ -133,9 +153,9 @@ export type Chart = {
133
153
  */
134
154
  chart: string;
135
155
  /**
136
- * Status of the chart deployment.
156
+ * Status of the chart deployment (Flux HelmRelease Ready condition reason, e.g. InstallSucceeded, UpgradeFailed, Progressing).
137
157
  */
138
- status: 'InstallSucceeded' | 'InstallFailed' | 'UpgradeSucceeded' | 'UpgradeFailed' | 'TestSucceeded' | 'TestFailed' | 'RollbackSucceeded' | 'RollbackFailed' | 'UninstallSucceeded' | 'UninstallFailed' | 'ArtifactFailed' | 'DependencyNotReady' | 'Progressing' | 'SourceNotReady';
158
+ status: string;
139
159
  /**
140
160
  * Current version of the chart deployment.
141
161
  */
@@ -163,6 +183,9 @@ export type ChartUpdateInput = {
163
183
  */
164
184
  version_channel: string;
165
185
  };
186
+ /**
187
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
188
+ */
166
189
  export type ClusterCreateInput = {
167
190
  /**
168
191
  * Name of the cluster.
@@ -171,15 +194,61 @@ export type ClusterCreateInput = {
171
194
  /**
172
195
  * Tier of the cluster.
173
196
  */
174
- tier: 'basic' | 'pro';
197
+ tier?: 'basic' | 'pro' | 'enterprise';
198
+ /**
199
+ * Version of the kubernetes cluster.
200
+ */
201
+ version_channel?: string;
175
202
  /**
176
- * 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.
203
+ * Release channel for the cluster's control plane.
177
204
  */
178
- region?: 'staging-1a' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
205
+ release_channel?: 'rapid' | 'stable' | 'extended';
179
206
  /**
180
- * Version of the kubernetes cluster.
207
+ * Cluster feature toggles.
208
+ */
209
+ features?: {
210
+ /**
211
+ * GPU sharing strategy.
212
+ */
213
+ gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
214
+ /**
215
+ * Maximum number of pods that may share a single GPU.
216
+ */
217
+ gpu_max_shared_clients_per_gpu?: number;
218
+ /**
219
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
220
+ */
221
+ cilium_socket_lb_host_namespace_only?: boolean;
222
+ };
223
+ /**
224
+ * Cloudfleet control plane region. This field can not be updated after creation.
181
225
  */
182
- version_channel?: '1.x.x-cfke.x' | '1.31.x-cfke.x' | '1.32.x-cfke.x' | '1.33.x-cfke.x';
226
+ region: string;
227
+ /**
228
+ * Cluster networking configuration. Immutable after creation.
229
+ */
230
+ networking?: {
231
+ /**
232
+ * CIDR block for pod IPs.
233
+ */
234
+ pod_cidr?: string;
235
+ /**
236
+ * CIDR block for service IPs.
237
+ */
238
+ service_cidr?: string;
239
+ /**
240
+ * Enable IPv4+IPv6 dual-stack networking.
241
+ */
242
+ dual_stack?: boolean;
243
+ /**
244
+ * IPv6 pod CIDR. Requires dual_stack.
245
+ */
246
+ pod_cidr_v6?: string;
247
+ /**
248
+ * IPv6 service CIDR. Requires dual_stack.
249
+ */
250
+ service_cidr_v6?: string;
251
+ };
183
252
  };
184
253
  export type ClusterJoinInformation = {
185
254
  /**
@@ -194,10 +263,18 @@ export type ClusterJoinInformation = {
194
263
  * Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.
195
264
  */
196
265
  cluster_dns: string;
266
+ /**
267
+ * Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.
268
+ */
269
+ pod_cidr: string;
197
270
  /**
198
271
  * Authentication key for the cluster.
199
272
  */
200
273
  auth_key: string;
274
+ /**
275
+ * Coordination server the node registers against. Empty on data plane v1 clusters, where the node advertises its own tag instead. A non-empty value requires a client that declares the dataplane-v2 capability.
276
+ */
277
+ login_server: string;
201
278
  /**
202
279
  * Bootstrap token for the cluster.
203
280
  */
@@ -241,6 +318,9 @@ export type ClusterJoinInformation = {
241
318
  gcp_workload_identity_provider: string;
242
319
  };
243
320
  };
321
+ /**
322
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
323
+ */
244
324
  export type Cluster = {
245
325
  /**
246
326
  * Name of the cluster.
@@ -249,19 +329,69 @@ export type Cluster = {
249
329
  /**
250
330
  * Tier of the cluster.
251
331
  */
252
- tier: 'basic' | 'pro';
332
+ tier: 'basic' | 'pro' | 'enterprise';
333
+ /**
334
+ * Version of the kubernetes cluster.
335
+ */
336
+ version_channel: string;
337
+ /**
338
+ * Release channel for the cluster's control plane.
339
+ */
340
+ release_channel: 'rapid' | 'stable' | 'extended';
253
341
  /**
254
- * 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.
342
+ * Cluster feature toggles.
255
343
  */
256
- region?: 'staging-1a' | 'northamerica-central-1' | 'europe-central-1a' | 'northamerica-central-1a';
344
+ features: {
345
+ /**
346
+ * GPU sharing strategy.
347
+ */
348
+ gpu_sharing_strategy: 'none' | 'mps' | 'time_slicing';
349
+ /**
350
+ * Maximum number of pods that may share a single GPU.
351
+ */
352
+ gpu_max_shared_clients_per_gpu: number;
353
+ /**
354
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
355
+ */
356
+ cilium_socket_lb_host_namespace_only: boolean;
357
+ };
358
+ /**
359
+ * Cloudfleet control plane region. This field can not be updated after creation.
360
+ */
361
+ region: string;
362
+ /**
363
+ * Cluster networking configuration. Immutable after creation.
364
+ */
365
+ networking: {
366
+ /**
367
+ * CIDR block for pod IPs.
368
+ */
369
+ pod_cidr: string;
370
+ /**
371
+ * CIDR block for service IPs.
372
+ */
373
+ service_cidr: string;
374
+ /**
375
+ * Enable IPv4+IPv6 dual-stack networking.
376
+ */
377
+ dual_stack: boolean;
378
+ /**
379
+ * IPv6 pod CIDR. Requires dual_stack.
380
+ */
381
+ pod_cidr_v6: string;
382
+ /**
383
+ * IPv6 service CIDR. Requires dual_stack.
384
+ */
385
+ service_cidr_v6: string;
386
+ };
257
387
  /**
258
388
  * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
259
389
  */
260
390
  id: string;
261
391
  /**
262
- * Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.
392
+ * Status of the cluster.
263
393
  */
264
- status: 'active' | 'disabled' | 'deleted' | 'creating' | 'deployed' | 'failed' | 'updating';
394
+ status: 'creating' | 'deployed' | 'updating' | 'disabled';
265
395
  endpoint?: string | '';
266
396
  endpoint_public?: string | '';
267
397
  /**
@@ -283,26 +413,49 @@ export type Cluster = {
283
413
  /**
284
414
  * Indicates if the cluster is ready to be used.
285
415
  */
286
- ready?: boolean;
287
- /**
288
- * Version of the kubernetes cluster.
289
- */
290
- version_channel?: string;
416
+ ready: boolean;
291
417
  };
418
+ /**
419
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
420
+ */
292
421
  export type ClusterUpdateInput = {
293
422
  /**
294
423
  * Name of the cluster.
295
424
  */
296
- name?: string;
425
+ name: string;
297
426
  /**
298
427
  * Tier of the cluster.
299
428
  */
300
- tier: 'basic' | 'pro';
429
+ tier?: 'basic' | 'pro' | 'enterprise';
301
430
  /**
302
431
  * Version of the kubernetes cluster.
303
432
  */
304
433
  version_channel?: string;
434
+ /**
435
+ * Release channel for the cluster's control plane.
436
+ */
437
+ release_channel?: 'rapid' | 'stable' | 'extended';
438
+ /**
439
+ * Cluster feature toggles.
440
+ */
441
+ features?: {
442
+ /**
443
+ * GPU sharing strategy.
444
+ */
445
+ gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
446
+ /**
447
+ * Maximum number of pods that may share a single GPU.
448
+ */
449
+ gpu_max_shared_clients_per_gpu?: number;
450
+ /**
451
+ * Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
452
+ */
453
+ cilium_socket_lb_host_namespace_only?: boolean;
454
+ };
305
455
  };
456
+ /**
457
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
458
+ */
306
459
  export type FleetCreateInput = {
307
460
  /**
308
461
  * Limits define a set of bounds for provisioning capacity.
@@ -323,7 +476,7 @@ export type FleetCreateInput = {
323
476
  hetzner?: {
324
477
  enabled: boolean;
325
478
  /**
326
- * Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.
479
+ * Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.
327
480
  */
328
481
  apiKey?: string;
329
482
  };
@@ -335,7 +488,7 @@ export type FleetCreateInput = {
335
488
  controllerRoleArn?: string;
336
489
  };
337
490
  /**
338
- * 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.
491
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
339
492
  */
340
493
  constraints?: {
341
494
  /**
@@ -356,7 +509,7 @@ export type FleetCreateInput = {
356
509
  'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
357
510
  };
358
511
  /**
359
- * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
512
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
360
513
  */
361
514
  scalingProfile?: 'aggressive' | 'conservative';
362
515
  /**
@@ -364,6 +517,9 @@ export type FleetCreateInput = {
364
517
  */
365
518
  id: string;
366
519
  };
520
+ /**
521
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
522
+ */
367
523
  export type Fleet = {
368
524
  /**
369
525
  * Limits define a set of bounds for provisioning capacity.
@@ -396,17 +552,17 @@ export type Fleet = {
396
552
  controllerRoleArn?: string;
397
553
  };
398
554
  /**
399
- * 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.
555
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
400
556
  */
401
- constraints?: {
557
+ constraints: {
402
558
  /**
403
559
  * Allowed values for `karpenter.sh/capacity-type`.
404
560
  */
405
- 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
561
+ 'karpenter.sh/capacity-type': Array<'on-demand' | 'spot'>;
406
562
  /**
407
563
  * Allowed values for `kubernetes.io/arch`.
408
564
  */
409
- 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
565
+ 'kubernetes.io/arch': Array<'amd64' | 'arm64'>;
410
566
  /**
411
567
  * Allowed values for `cfke.io/instance-family`.
412
568
  */
@@ -417,14 +573,33 @@ export type Fleet = {
417
573
  'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
418
574
  };
419
575
  /**
420
- * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
576
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
421
577
  */
422
578
  scalingProfile: 'aggressive' | 'conservative';
423
579
  /**
424
580
  * Unique identifier of the kubernetes fleet.
425
581
  */
426
582
  id: string;
583
+ /**
584
+ * Indicates whether the fleet configuration is healthy.
585
+ */
586
+ ready: boolean;
587
+ /**
588
+ * Human-readable reason the fleet is not ready. Present only when `ready` is false.
589
+ */
590
+ status_message?: string;
591
+ /**
592
+ * Creation date and time of the fleet.
593
+ */
594
+ created_at: string;
595
+ /**
596
+ * Date and time the fleet was last updated.
597
+ */
598
+ updated_at: string;
427
599
  };
600
+ /**
601
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
602
+ */
428
603
  export type FleetUpdateInput = {
429
604
  /**
430
605
  * Limits define a set of bounds for provisioning capacity.
@@ -445,7 +620,7 @@ export type FleetUpdateInput = {
445
620
  hetzner?: {
446
621
  enabled: boolean;
447
622
  /**
448
- * Hetzner Cloud API token with read / write access (64 alphanumeric characters). Omit this field to keep the existing value.
623
+ * Hetzner Cloud API token with read/write access (64 alphanumeric characters). Write-only: reads return a redacted placeholder, never the token. Omit the field, or send the placeholder back unchanged, to keep the existing key. Send a new value to rotate it.
449
624
  */
450
625
  apiKey?: string;
451
626
  };
@@ -457,7 +632,7 @@ export type FleetUpdateInput = {
457
632
  controllerRoleArn?: string;
458
633
  };
459
634
  /**
460
- * 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.
635
+ * Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
461
636
  */
462
637
  constraints?: {
463
638
  /**
@@ -478,9 +653,19 @@ export type FleetUpdateInput = {
478
653
  'topology.kubernetes.io/region'?: Array<'africa-south1' | 'ap-northeast-1' | 'ap-northeast-2' | 'ap-northeast-3' | 'ap-south-1' | 'ap-southeast-1' | 'ap-southeast-2' | 'ash' | 'asia-east1' | 'asia-east2' | 'asia-northeast1' | 'asia-northeast2' | 'asia-northeast3' | 'asia-south1' | 'asia-south2' | 'asia-southeast1' | 'asia-southeast2' | 'australia-southeast1' | 'australia-southeast2' | 'ca-central-1' | 'eu-central-1' | 'eu-central-2' | 'eu-north-1' | 'eu-west-1' | 'eu-west-2' | 'eu-west-3' | 'europe-central2' | 'europe-north1' | 'europe-southwest1' | 'europe-west1' | 'europe-west10' | 'europe-west12' | 'europe-west2' | 'europe-west3' | 'europe-west4' | 'europe-west6' | 'europe-west8' | 'europe-west9' | 'fsn1' | 'hel1' | 'hil' | 'me-central1' | 'me-central2' | 'me-west1' | 'nbg1' | 'northamerica-northeast1' | 'northamerica-northeast2' | 'sa-east-1' | 'sin' | 'southamerica-east1' | 'southamerica-west1' | 'us-central1' | 'us-east-1' | 'us-east-2' | 'us-east1' | 'us-east4' | 'us-east5' | 'us-south1' | 'us-west-1' | 'us-west-2' | 'us-west1' | 'us-west2' | 'us-west3' | 'us-west4'>;
479
654
  };
480
655
  /**
481
- * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
656
+ * Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet. Full-overwrite: omit to reset to the default (`conservative`).
482
657
  */
483
- scalingProfile: 'aggressive' | 'conservative';
658
+ scalingProfile?: 'aggressive' | 'conservative';
659
+ };
660
+ export type InviteCreateInput = {
661
+ /**
662
+ * Email address of the user to invite.
663
+ */
664
+ email: string;
665
+ /**
666
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
667
+ */
668
+ role?: 'Administrator' | 'User';
484
669
  };
485
670
  export type Invite = {
486
671
  /**
@@ -503,6 +688,91 @@ export type Invite = {
503
688
  * Generated unique invite code.
504
689
  */
505
690
  code?: string;
691
+ /**
692
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
693
+ */
694
+ role?: 'Administrator' | 'User';
695
+ };
696
+ export type InvoicePaymentAttempt = {
697
+ /**
698
+ * Identifier of the invoice.
699
+ */
700
+ invoice_id: string;
701
+ /**
702
+ * Invoice number. Null if the invoice has no number.
703
+ */
704
+ number: string;
705
+ /**
706
+ * Amount outstanding when the charge was attempted, in the smallest currency unit.
707
+ */
708
+ amount: number;
709
+ /**
710
+ * Currency of the invoice.
711
+ */
712
+ currency: string;
713
+ /**
714
+ * Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).
715
+ */
716
+ status: 'paid' | 'processing' | 'requires_action' | 'failed';
717
+ /**
718
+ * Client secret used to complete customer authentication. Set only when `status` is `requires_action`.
719
+ */
720
+ client_secret: string;
721
+ /**
722
+ * Decline code. Set only when `status` is `failed`.
723
+ */
724
+ failure_code: string;
725
+ /**
726
+ * Explanation of the decline, suitable for display. Set only when `status` is `failed`.
727
+ */
728
+ failure_message: string;
729
+ };
730
+ export type InvoicePaymentResult = {
731
+ /**
732
+ * Overall outcome: `paid` (nothing outstanding), `processing` (all accepted, not yet settled), `action_required` (one or more await customer authentication), `partially_paid`, `failed`, `nothing_due`, or `bank_transfer_due` (the organization pays by bank transfer; nothing was charged).
733
+ */
734
+ code: 'paid' | 'processing' | 'action_required' | 'partially_paid' | 'failed' | 'nothing_due' | 'bank_transfer_due';
735
+ /**
736
+ * Summary of the outcome, suitable for display.
737
+ */
738
+ message: string;
739
+ /**
740
+ * One entry per invoice charged, oldest first.
741
+ */
742
+ results: Array<{
743
+ /**
744
+ * Identifier of the invoice.
745
+ */
746
+ invoice_id: string;
747
+ /**
748
+ * Invoice number. Null if the invoice has no number.
749
+ */
750
+ number: string;
751
+ /**
752
+ * Amount outstanding when the charge was attempted, in the smallest currency unit.
753
+ */
754
+ amount: number;
755
+ /**
756
+ * Currency of the invoice.
757
+ */
758
+ currency: string;
759
+ /**
760
+ * Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).
761
+ */
762
+ status: 'paid' | 'processing' | 'requires_action' | 'failed';
763
+ /**
764
+ * Client secret used to complete customer authentication. Set only when `status` is `requires_action`.
765
+ */
766
+ client_secret: string;
767
+ /**
768
+ * Decline code. Set only when `status` is `failed`.
769
+ */
770
+ failure_code: string;
771
+ /**
772
+ * Explanation of the decline, suitable for display. Set only when `status` is `failed`.
773
+ */
774
+ failure_message: string;
775
+ }>;
506
776
  };
507
777
  export type Invoice = {
508
778
  /**
@@ -691,6 +961,14 @@ export type Organization = {
691
961
  * Available number of Pro clusters that can be created.
692
962
  */
693
963
  pro_clusters_available: number;
964
+ /**
965
+ * Maximum number of Enterprise clusters that can be created.
966
+ */
967
+ enterprise_clusters_max: number;
968
+ /**
969
+ * Available number of Enterprise clusters that can be created.
970
+ */
971
+ enterprise_clusters_available: number;
694
972
  /**
695
973
  * Maximum number of fleets that can be created per cluster.
696
974
  */
@@ -789,6 +1067,14 @@ export type PlatformQuota = {
789
1067
  * Available number of Pro clusters that can be created.
790
1068
  */
791
1069
  pro_clusters_available: number;
1070
+ /**
1071
+ * Maximum number of Enterprise clusters that can be created.
1072
+ */
1073
+ enterprise_clusters_max: number;
1074
+ /**
1075
+ * Available number of Enterprise clusters that can be created.
1076
+ */
1077
+ enterprise_clusters_available: number;
792
1078
  /**
793
1079
  * Maximum number of fleets that can be created per cluster.
794
1080
  */
@@ -1001,91 +1287,6 @@ export type TicketCreateInput = {
1001
1287
  [key: string]: unknown;
1002
1288
  };
1003
1289
  };
1004
- export type TicketListResponse = {
1005
- /**
1006
- * Tickets for the organization, ordered newest first. Messages are omitted from list responses.
1007
- */
1008
- items: Array<{
1009
- /**
1010
- * Unique identifier of the ticket (Mongo ObjectId).
1011
- */
1012
- id: string;
1013
- /**
1014
- * Current state of the ticket.
1015
- */
1016
- status: 'waiting_on_us' | 'waiting_on_user' | 'closed';
1017
- /**
1018
- * Ticket category.
1019
- */
1020
- category: 'billing' | 'technical' | 'general';
1021
- /**
1022
- * First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
1023
- */
1024
- summary: string;
1025
- /**
1026
- * Closure timestamp. Null while the ticket is open.
1027
- */
1028
- closed_at?: string;
1029
- /**
1030
- * Creation date of the ticket. ISO 8601 UTC.
1031
- */
1032
- date_created: string;
1033
- /**
1034
- * Last update date of the ticket. ISO 8601 UTC.
1035
- */
1036
- date_updated: string;
1037
- /**
1038
- * Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.
1039
- */
1040
- messages?: Array<{
1041
- /**
1042
- * Unique identifier of the message (Mongo ObjectId).
1043
- */
1044
- id: string;
1045
- /**
1046
- * Message type. Internal notes are filtered out of customer-facing responses.
1047
- */
1048
- type: 'customer_reply' | 'agent_reply';
1049
- /**
1050
- * Message body in markdown.
1051
- */
1052
- body: string;
1053
- /**
1054
- * First name of the author. Null when not provided.
1055
- */
1056
- author_first_name?: string;
1057
- /**
1058
- * Last name of the author. Null when not provided.
1059
- */
1060
- author_last_name?: string;
1061
- /**
1062
- * Attachments associated with this message.
1063
- */
1064
- attachments?: Array<{
1065
- /**
1066
- * Unique identifier of the attachment (Mongo ObjectId).
1067
- */
1068
- id: string;
1069
- /**
1070
- * Original filename as uploaded.
1071
- */
1072
- filename: string;
1073
- /**
1074
- * MIME content type of the attachment.
1075
- */
1076
- content_type: string;
1077
- /**
1078
- * Size of the attachment in bytes.
1079
- */
1080
- size: number;
1081
- }>;
1082
- /**
1083
- * Creation date of the message. ISO 8601 UTC.
1084
- */
1085
- date_created: string;
1086
- }>;
1087
- }>;
1088
- };
1089
1290
  export type TicketMessageInput = {
1090
1291
  /**
1091
1292
  * Reply body in markdown.
@@ -1269,7 +1470,7 @@ export type UsageFacets = {
1269
1470
  /**
1270
1471
  * List of unique products
1271
1472
  */
1272
- product?: Array<string>;
1473
+ product?: Array<'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage'>;
1273
1474
  };
1274
1475
  export type UsageResponse = {
1275
1476
  /**
@@ -1287,7 +1488,7 @@ export type UsageResponse = {
1287
1488
  /**
1288
1489
  * The product the usage is associated with
1289
1490
  */
1290
- product: string;
1491
+ product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
1291
1492
  /**
1292
1493
  * Consumption
1293
1494
  */
@@ -1312,7 +1513,7 @@ export type UsageResponse = {
1312
1513
  /**
1313
1514
  * List of unique products
1314
1515
  */
1315
- product?: Array<string>;
1516
+ product?: Array<'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage'>;
1316
1517
  };
1317
1518
  };
1318
1519
  export type Usage = {
@@ -1327,7 +1528,7 @@ export type Usage = {
1327
1528
  /**
1328
1529
  * The product the usage is associated with
1329
1530
  */
1330
- product: string;
1531
+ product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
1331
1532
  /**
1332
1533
  * Consumption
1333
1534
  */
@@ -1362,14 +1563,6 @@ export type UserCreateInput = {
1362
1563
  * User password. Must be at least 8 characters long.
1363
1564
  */
1364
1565
  password: string;
1365
- /**
1366
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1367
- */
1368
- status?: 'active' | 'inactive';
1369
- /**
1370
- * User role. Can be 'Administrator', 'User'.
1371
- */
1372
- role?: 'Administrator' | 'User';
1373
1566
  };
1374
1567
  export type User = {
1375
1568
  /**
@@ -1423,593 +1616,658 @@ export type UserUpdateInput = {
1423
1616
  */
1424
1617
  status?: 'active' | 'inactive';
1425
1618
  };
1426
- export type GetUsageData = {
1619
+ export type ListUserOrganizationsData = {
1427
1620
  body?: never;
1428
- path?: never;
1429
- query?: {
1621
+ path: {
1430
1622
  /**
1431
- * 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)
1623
+ * User email address.
1432
1624
  */
1433
- granularity?: 'hourly' | 'daily' | 'monthly';
1625
+ email: string;
1434
1626
  };
1435
- url: '/billing/usage';
1436
- };
1437
- export type GetUsageErrors = {
1438
- /**
1439
- * Not authenticated
1440
- */
1441
- 401: unknown;
1627
+ query?: never;
1628
+ url: '/users/organizations/{email}';
1442
1629
  };
1443
- export type GetUsageResponses = {
1630
+ export type ListUserOrganizationsResponses = {
1444
1631
  /**
1445
- * Usage data with facets for filtering
1632
+ * An array of organizations the user belongs to.
1446
1633
  */
1447
- 200: UsageResponse;
1634
+ 200: Array<{
1635
+ /**
1636
+ * Unique identifier of the organization. UUID v4 string in canonical form
1637
+ */
1638
+ realm?: string;
1639
+ /**
1640
+ * Human-readable name of the organization
1641
+ */
1642
+ displayName?: string;
1643
+ }>;
1448
1644
  };
1449
- export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
1450
- export type GetPaymentMethodSecretData = {
1645
+ export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1646
+ export type ListUsersData = {
1451
1647
  body?: never;
1452
1648
  path?: never;
1453
1649
  query?: never;
1454
- url: '/billing/payment-method';
1650
+ url: '/users';
1455
1651
  };
1456
- export type GetPaymentMethodSecretResponses = {
1652
+ export type ListUsersErrors = {
1457
1653
  /**
1458
- * 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.
1459
- *
1654
+ * Not authenticated
1460
1655
  */
1461
- 200: {
1462
- /**
1463
- * The client secret.
1464
- */
1465
- id?: string;
1466
- };
1467
- };
1468
- export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
1469
- export type ListPaymentMethodsData = {
1470
- body?: never;
1471
- path?: never;
1472
- query?: never;
1473
- url: '/billing/payment-methods';
1656
+ 401: unknown;
1474
1657
  };
1475
- export type ListPaymentMethodsErrors = {
1658
+ export type ListUsersResponses = {
1476
1659
  /**
1477
- * Not authenticated
1660
+ * An array of users
1478
1661
  */
1479
- 401: unknown;
1662
+ 200: Array<User>;
1480
1663
  };
1481
- export type ListPaymentMethodsResponses = {
1664
+ export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1665
+ export type CreateUserData = {
1666
+ body: UserCreateInput;
1667
+ path?: never;
1668
+ query?: never;
1669
+ url: '/users';
1670
+ };
1671
+ export type CreateUserResponses = {
1482
1672
  /**
1483
- * An array of payment methods.
1673
+ * Successfully created. Returns created user details.
1484
1674
  */
1485
- 200: Array<PaymentMethod>;
1675
+ 200: User;
1486
1676
  };
1487
- export type ListPaymentMethodsResponse = ListPaymentMethodsResponses[keyof ListPaymentMethodsResponses];
1488
- export type SetDefaultPaymentMethodData = {
1677
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1678
+ export type DeleteUserData = {
1489
1679
  body?: never;
1490
1680
  path: {
1491
1681
  /**
1492
- * Stripe payment method identifier.
1682
+ * Unique user identifier. UUID v4 string in canonical form
1493
1683
  */
1494
- paymentMethodId: string;
1684
+ user_id: string;
1495
1685
  };
1496
1686
  query?: never;
1497
- url: '/billing/payment-methods/{paymentMethodId}/default';
1687
+ url: '/users/{user_id}';
1498
1688
  };
1499
- export type SetDefaultPaymentMethodErrors = {
1689
+ export type DeleteUserErrors = {
1500
1690
  /**
1501
- * The bank transfer payment method cannot be set as the default.
1691
+ * Deleting own user is not allowed. Delete your organization instead.
1502
1692
  */
1503
1693
  400: unknown;
1504
1694
  /**
1505
1695
  * Not authenticated
1506
1696
  */
1507
1697
  401: unknown;
1508
- /**
1509
- * Payment method not found.
1510
- */
1511
- 404: unknown;
1512
1698
  };
1513
- export type SetDefaultPaymentMethodResponses = {
1699
+ export type DeleteUserResponses = {
1514
1700
  /**
1515
- * Default payment method updated.
1701
+ * User profile information
1516
1702
  */
1517
- 204: void;
1703
+ 200: User;
1518
1704
  };
1519
- export type SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponses[keyof SetDefaultPaymentMethodResponses];
1520
- export type DeletePaymentMethodData = {
1705
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1706
+ export type GetUserData = {
1521
1707
  body?: never;
1522
1708
  path: {
1523
1709
  /**
1524
- * Stripe payment method identifier.
1710
+ * Unique user identifier. UUID v4 string in canonical form
1525
1711
  */
1526
- paymentMethodId: string;
1712
+ user_id: string;
1527
1713
  };
1528
1714
  query?: never;
1529
- url: '/billing/payment-methods/{paymentMethodId}';
1715
+ url: '/users/{user_id}';
1530
1716
  };
1531
- export type DeletePaymentMethodErrors = {
1532
- /**
1533
- * The bank transfer payment method cannot be removed.
1534
- */
1535
- 400: unknown;
1717
+ export type GetUserErrors = {
1536
1718
  /**
1537
1719
  * Not authenticated
1538
1720
  */
1539
1721
  401: unknown;
1722
+ };
1723
+ export type GetUserResponses = {
1540
1724
  /**
1541
- * Payment method not found.
1542
- */
1543
- 404: unknown;
1544
- /**
1545
- * Cannot delete the only remaining payment method.
1725
+ * User profile information
1546
1726
  */
1547
- 409: unknown;
1727
+ 200: User;
1548
1728
  };
1549
- export type DeletePaymentMethodResponses = {
1729
+ export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
1730
+ export type UpdateUserData = {
1731
+ body: UserUpdateInput;
1732
+ path: {
1733
+ /**
1734
+ * Unique user identifier. UUID v4 string in canonical form
1735
+ */
1736
+ user_id: string;
1737
+ };
1738
+ query?: never;
1739
+ url: '/users/{user_id}';
1740
+ };
1741
+ export type UpdateUserResponses = {
1550
1742
  /**
1551
- * Payment method deleted.
1743
+ * Successfully created. Returns created user details.
1552
1744
  */
1553
- 204: void;
1745
+ 200: User;
1554
1746
  };
1555
- export type DeletePaymentMethodResponse = DeletePaymentMethodResponses[keyof DeletePaymentMethodResponses];
1556
- export type ListInvoicesData = {
1747
+ export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1748
+ export type ListTokensData = {
1557
1749
  body?: never;
1558
1750
  path?: never;
1559
1751
  query?: never;
1560
- url: '/billing/invoices';
1752
+ url: '/tokens';
1561
1753
  };
1562
- export type ListInvoicesErrors = {
1754
+ export type ListTokensErrors = {
1563
1755
  /**
1564
1756
  * Not authenticated
1565
1757
  */
1566
1758
  401: unknown;
1567
1759
  };
1568
- export type ListInvoicesResponses = {
1760
+ export type ListTokensResponses = {
1569
1761
  /**
1570
- * An array of usage records.
1762
+ * Returns a list of access token details with masked secrets.
1571
1763
  */
1572
- 200: Array<Invoice>;
1764
+ 200: Array<Token>;
1573
1765
  };
1574
- export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
1575
- export type GetContactData = {
1576
- body?: never;
1766
+ export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1767
+ export type CreateTokenData = {
1768
+ body: TokenCreateInput;
1577
1769
  path?: never;
1578
1770
  query?: never;
1579
- url: '/billing/contact';
1771
+ url: '/tokens';
1580
1772
  };
1581
- export type GetContactResponses = {
1773
+ export type CreateTokenErrors = {
1582
1774
  /**
1583
- * Returns a single object containing organization contact and billing address details.
1775
+ * Not authenticated
1584
1776
  */
1585
- 200: BillingContact;
1777
+ 401: unknown;
1586
1778
  };
1587
- export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
1588
- export type UpdateContactData = {
1589
- body: BillingContact;
1590
- path?: never;
1779
+ export type CreateTokenResponses = {
1780
+ /**
1781
+ * Successfully created. Returns created token details with unmasked/raw secret.
1782
+ */
1783
+ 200: Token;
1784
+ };
1785
+ export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1786
+ export type DeleteTokenData = {
1787
+ body?: never;
1788
+ path: {
1789
+ /**
1790
+ * Generated unique identifier of the access token.
1791
+ */
1792
+ token_id: string;
1793
+ };
1591
1794
  query?: never;
1592
- url: '/billing/contact';
1795
+ url: '/tokens/{token_id}';
1593
1796
  };
1594
- export type UpdateContactResponses = {
1797
+ export type DeleteTokenResponses = {
1595
1798
  /**
1596
- * Successfully updated. Returns updated organization details.
1799
+ * Successfully deleted.
1597
1800
  */
1598
- 200: BillingContact;
1801
+ 200: unknown;
1599
1802
  };
1600
- export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1601
- export type GetCreditsData = {
1803
+ export type GetTokenData = {
1602
1804
  body?: never;
1603
- path?: never;
1805
+ path: {
1806
+ /**
1807
+ * Generated unique identifier of the access token.
1808
+ */
1809
+ token_id: string;
1810
+ };
1604
1811
  query?: never;
1605
- url: '/billing/credits';
1812
+ url: '/tokens/{token_id}';
1606
1813
  };
1607
- export type GetCreditsErrors = {
1814
+ export type GetTokenErrors = {
1608
1815
  /**
1609
1816
  * Not authenticated
1610
1817
  */
1611
1818
  401: unknown;
1612
1819
  };
1613
- export type GetCreditsResponses = {
1820
+ export type GetTokenResponses = {
1614
1821
  /**
1615
- * An array of the applied promotional credits records.
1822
+ * Returns access token details with masked secret.
1616
1823
  */
1617
- 200: Array<BillingCredits>;
1824
+ 200: Token;
1618
1825
  };
1619
- export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1620
- export type RedeemCreditsData = {
1621
- body: {
1826
+ export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1827
+ export type UpdateTokenData = {
1828
+ body: TokenUpdateInput;
1829
+ path: {
1622
1830
  /**
1623
- * Promotional code to redeem
1831
+ * Generated unique identifier of the access token.
1624
1832
  */
1625
- code?: string;
1833
+ token_id: string;
1626
1834
  };
1627
- path?: never;
1628
1835
  query?: never;
1629
- url: '/billing/credits';
1836
+ url: '/tokens/{token_id}';
1630
1837
  };
1631
- export type RedeemCreditsErrors = {
1838
+ export type UpdateTokenErrors = {
1632
1839
  /**
1633
1840
  * Not authenticated
1634
1841
  */
1635
1842
  401: unknown;
1636
1843
  };
1637
- export type RedeemCreditsResponses = {
1844
+ export type UpdateTokenResponses = {
1638
1845
  /**
1639
- * Successfully created a new organization.
1846
+ * Successfully updated. Returns updated token details with masked secret.
1640
1847
  */
1641
- 200: unknown;
1848
+ 200: Token;
1642
1849
  };
1643
- export type ListChartsData = {
1850
+ export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
1851
+ export type RegenerateTokenData = {
1644
1852
  body?: never;
1645
1853
  path: {
1646
1854
  /**
1647
- * Unique identifier of the cluster. UUID v4 string in canonical form
1855
+ * Generated unique identifier of the access token.
1648
1856
  */
1649
- cluster_id: string;
1857
+ token_id: string;
1650
1858
  };
1651
1859
  query?: never;
1652
- url: '/clusters/{cluster_id}/charts';
1860
+ url: '/tokens/{token_id}/secret';
1653
1861
  };
1654
- export type ListChartsErrors = {
1862
+ export type RegenerateTokenErrors = {
1655
1863
  /**
1656
1864
  * Not authenticated
1657
1865
  */
1658
1866
  401: unknown;
1659
1867
  };
1660
- export type ListChartsResponses = {
1868
+ export type RegenerateTokenResponses = {
1661
1869
  /**
1662
- * An array of charts
1870
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1663
1871
  */
1664
- 200: Array<Chart>;
1872
+ 200: Token;
1665
1873
  };
1666
- export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
1667
- export type CreateChartData = {
1668
- body: ChartCreateInput;
1669
- path: {
1670
- /**
1671
- * Unique identifier of the cluster. UUID v4 string in canonical form
1672
- */
1673
- cluster_id: string;
1674
- };
1874
+ export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
1875
+ export type ListTicketsData = {
1876
+ body?: never;
1877
+ path?: never;
1675
1878
  query?: never;
1676
- url: '/clusters/{cluster_id}/charts';
1879
+ url: '/tickets';
1677
1880
  };
1678
- export type CreateChartResponses = {
1881
+ export type ListTicketsResponses = {
1679
1882
  /**
1680
- * Successfully created. Returns created Chart ID.
1883
+ * An array of tickets for the organization, newest first.
1681
1884
  */
1682
- 200: string;
1885
+ 200: Array<Ticket>;
1683
1886
  };
1684
- export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1685
- export type DeleteChartData = {
1686
- body?: never;
1687
- path: {
1688
- /**
1689
- * Unique identifier of the cluster. UUID v4 string in canonical form
1690
- */
1691
- cluster_id: string;
1887
+ export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
1888
+ export type CreateTicketData = {
1889
+ body: {
1692
1890
  /**
1693
- * Chart deployment name as the unique identifier of the chart.
1891
+ * JSON-encoded TicketCreateInput.
1694
1892
  */
1695
- chart_name: string;
1893
+ payload?: string;
1894
+ attachments?: Array<Blob | File>;
1696
1895
  };
1896
+ path?: never;
1697
1897
  query?: never;
1698
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1898
+ url: '/tickets';
1699
1899
  };
1700
- export type DeleteChartResponses = {
1900
+ export type CreateTicketResponses = {
1701
1901
  /**
1702
- * Successfully deleted.
1902
+ * Ticket created.
1703
1903
  */
1704
- 200: string;
1904
+ 200: Ticket;
1705
1905
  };
1706
- export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1707
- export type GetChartData = {
1906
+ export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
1907
+ export type CloseTicketData = {
1708
1908
  body?: never;
1709
1909
  path: {
1710
- /**
1711
- * Unique identifier of the cluster. UUID v4 string in canonical form
1712
- */
1713
- cluster_id: string;
1714
- /**
1715
- * Chart deployment name as the unique identifier of the chart.
1716
- */
1717
- chart_name: string;
1910
+ ticket_id: string;
1718
1911
  };
1719
1912
  query?: never;
1720
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1913
+ url: '/tickets/{ticket_id}';
1721
1914
  };
1722
- export type GetChartResponses = {
1915
+ export type CloseTicketResponses = {
1723
1916
  /**
1724
- * Returns a single object containing chart details.
1917
+ * Ticket closed.
1725
1918
  */
1726
- 200: Chart;
1919
+ 200: Ticket;
1727
1920
  };
1728
- export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1729
- export type UpdateChartData = {
1730
- body: ChartUpdateInput;
1921
+ export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
1922
+ export type GetTicketData = {
1923
+ body?: never;
1731
1924
  path: {
1732
- /**
1733
- * Unique identifier of the cluster. UUID v4 string in canonical form
1734
- */
1735
- cluster_id: string;
1736
- /**
1737
- * Chart deployment name as the unique identifier of the chart.
1738
- */
1739
- chart_name: string;
1925
+ ticket_id: string;
1740
1926
  };
1741
1927
  query?: never;
1742
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1928
+ url: '/tickets/{ticket_id}';
1743
1929
  };
1744
- export type UpdateChartResponses = {
1930
+ export type GetTicketResponses = {
1745
1931
  /**
1746
- * Successfully updated.
1932
+ * Ticket with messages (internal notes excluded).
1747
1933
  */
1748
- 200: string;
1934
+ 200: Ticket;
1749
1935
  };
1750
- export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1751
- export type ListFleetsData = {
1752
- body?: never;
1753
- path: {
1936
+ export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
1937
+ export type ReplyTicketData = {
1938
+ body: {
1754
1939
  /**
1755
- * Unique identifier of the cluster. UUID v4 string in canonical form
1940
+ * JSON-encoded TicketMessageInput.
1756
1941
  */
1757
- cluster_id: string;
1942
+ payload?: string;
1943
+ attachments?: Array<Blob | File>;
1944
+ };
1945
+ path: {
1946
+ ticket_id: string;
1758
1947
  };
1759
1948
  query?: never;
1760
- url: '/clusters/{cluster_id}/fleets';
1949
+ url: '/tickets/{ticket_id}/messages';
1761
1950
  };
1762
- export type ListFleetsErrors = {
1951
+ export type ReplyTicketErrors = {
1763
1952
  /**
1764
- * Not authenticated
1953
+ * Ticket is closed. Open a new ticket instead.
1765
1954
  */
1766
- 401: unknown;
1955
+ 409: unknown;
1767
1956
  };
1768
- export type ListFleetsResponses = {
1957
+ export type ReplyTicketResponses = {
1769
1958
  /**
1770
- * An array of fleets
1959
+ * Reply appended.
1771
1960
  */
1772
- 200: Array<Fleet>;
1961
+ 200: TicketMessage;
1773
1962
  };
1774
- export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
1775
- export type CreateFleetData = {
1776
- body: FleetCreateInput;
1963
+ export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
1964
+ export type GetTicketAttachmentData = {
1965
+ body?: never;
1777
1966
  path: {
1778
- /**
1779
- * Unique identifier of the cluster. UUID v4 string in canonical form
1780
- */
1781
- cluster_id: string;
1967
+ ticket_id: string;
1968
+ attachment_id: string;
1782
1969
  };
1783
1970
  query?: never;
1784
- url: '/clusters/{cluster_id}/fleets';
1785
- };
1786
- export type CreateFleetErrors = {
1787
- /**
1788
- * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
1789
- */
1790
- 402: string;
1971
+ url: '/tickets/{ticket_id}/attachments/{attachment_id}';
1791
1972
  };
1792
- export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
1793
- export type CreateFleetResponses = {
1973
+ export type GetTicketAttachmentResponses = {
1794
1974
  /**
1795
- * Successfully created. Returns created Fleet ID.
1975
+ * Attachment binary stream.
1796
1976
  */
1797
- 200: string;
1977
+ 200: Blob | File;
1798
1978
  };
1799
- export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
1800
- export type DeleteFleetData = {
1979
+ export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
1980
+ export type ListRepositoriesData = {
1801
1981
  body?: never;
1802
- path: {
1803
- /**
1804
- * Unique identifier of the cluster. UUID v4 string in canonical form
1805
- */
1806
- cluster_id: string;
1807
- /**
1808
- * Unique identifier of the fleet. UUID v4 string in canonical form
1809
- */
1810
- fleet_name: string;
1811
- };
1982
+ path?: never;
1812
1983
  query?: never;
1813
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1984
+ url: '/registry';
1814
1985
  };
1815
- export type DeleteFleetResponses = {
1986
+ export type ListRepositoriesErrors = {
1816
1987
  /**
1817
- * Successfully deleted.
1988
+ * Not authenticated
1818
1989
  */
1819
- 200: string;
1990
+ 401: unknown;
1991
+ /**
1992
+ * Internal server error
1993
+ */
1994
+ 500: unknown;
1820
1995
  };
1821
- export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
1822
- export type GetFleetData = {
1996
+ export type ListRepositoriesResponses = {
1997
+ /**
1998
+ * List of repositories
1999
+ */
2000
+ 200: Array<RegistryRepository>;
2001
+ };
2002
+ export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
2003
+ export type ListTagsData = {
1823
2004
  body?: never;
1824
2005
  path: {
1825
2006
  /**
1826
- * Unique identifier of the cluster. UUID v4 string in canonical form
2007
+ * Region where the repository is located
1827
2008
  */
1828
- cluster_id: string;
2009
+ region: string;
1829
2010
  /**
1830
- * Unique identifier of the fleet. UUID v4 string in canonical form
2011
+ * Name of the repository
1831
2012
  */
1832
- fleet_name: string;
2013
+ repository: string;
1833
2014
  };
1834
2015
  query?: never;
1835
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2016
+ url: '/registry/{region}/{repository}';
1836
2017
  };
1837
- export type GetFleetResponses = {
2018
+ export type ListTagsErrors = {
1838
2019
  /**
1839
- * Returns a single object containing fleet details.
2020
+ * Not authenticated
1840
2021
  */
1841
- 200: Fleet;
2022
+ 401: unknown;
2023
+ /**
2024
+ * Repository not found
2025
+ */
2026
+ 404: unknown;
2027
+ /**
2028
+ * Internal server error
2029
+ */
2030
+ 500: unknown;
1842
2031
  };
1843
- export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
1844
- export type UpdateFleetData = {
1845
- body: FleetUpdateInput;
2032
+ export type ListTagsResponses = {
2033
+ /**
2034
+ * Repository with tags
2035
+ */
2036
+ 200: RegistryRepositoryWithTags;
2037
+ };
2038
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
2039
+ export type DeleteTagData = {
2040
+ body?: never;
1846
2041
  path: {
1847
2042
  /**
1848
- * Unique identifier of the cluster. UUID v4 string in canonical form
2043
+ * Region where the repository is located
1849
2044
  */
1850
- cluster_id: string;
2045
+ region: string;
1851
2046
  /**
1852
- * Unique identifier of the fleet. UUID v4 string in canonical form
2047
+ * Name of the repository
1853
2048
  */
1854
- fleet_name: string;
2049
+ repository: string;
2050
+ /**
2051
+ * Name of the tag
2052
+ */
2053
+ tag: string;
1855
2054
  };
1856
2055
  query?: never;
1857
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2056
+ url: '/registry/{region}/{repository}/{tag}';
1858
2057
  };
1859
- export type UpdateFleetErrors = {
2058
+ export type DeleteTagErrors = {
1860
2059
  /**
1861
- * Organization must have a valid payment method configured to access this endpoint.
2060
+ * Not authenticated
1862
2061
  */
1863
- 402: string;
2062
+ 401: unknown;
2063
+ /**
2064
+ * Tag not found
2065
+ */
2066
+ 404: unknown;
2067
+ /**
2068
+ * Internal server error
2069
+ */
2070
+ 500: unknown;
1864
2071
  };
1865
- export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
1866
- export type UpdateFleetResponses = {
2072
+ export type DeleteTagResponses = {
1867
2073
  /**
1868
- * Successfully updated.
2074
+ * Tag successfully deleted
1869
2075
  */
1870
- 200: string;
2076
+ 200: unknown;
1871
2077
  };
1872
- export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
1873
- export type QueryClusterData = {
2078
+ export type GetTagData = {
1874
2079
  body?: never;
1875
2080
  path: {
1876
2081
  /**
1877
- * Unique identifier of the cluster. UUID v4 string in canonical form
2082
+ * Region where the repository is located
1878
2083
  */
1879
- cluster_id: string;
2084
+ region: string;
2085
+ /**
2086
+ * Name of the repository
2087
+ */
2088
+ repository: string;
2089
+ /**
2090
+ * Name of the tag
2091
+ */
2092
+ tag: string;
1880
2093
  };
1881
2094
  query?: never;
1882
- url: '/clusters/{cluster_id}/query';
2095
+ url: '/registry/{region}/{repository}/{tag}';
1883
2096
  };
1884
- export type QueryClusterErrors = {
2097
+ export type GetTagErrors = {
1885
2098
  /**
1886
2099
  * Not authenticated
1887
2100
  */
1888
2101
  401: unknown;
2102
+ /**
2103
+ * Tag not found
2104
+ */
2105
+ 404: unknown;
2106
+ /**
2107
+ * Internal server error
2108
+ */
2109
+ 500: unknown;
1889
2110
  };
1890
- export type QueryClusterResponses = {
2111
+ export type GetTagResponses = {
1891
2112
  /**
1892
- * Kubernetes API response
2113
+ * Tag details
1893
2114
  */
1894
- 200: unknown;
2115
+ 200: RegistryTag;
1895
2116
  };
1896
- export type ListClustersData = {
2117
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2118
+ export type GetOrganizationData = {
1897
2119
  body?: never;
1898
2120
  path?: never;
1899
2121
  query?: never;
1900
- url: '/clusters';
2122
+ url: '/organization';
1901
2123
  };
1902
- export type ListClustersErrors = {
2124
+ export type GetOrganizationResponses = {
1903
2125
  /**
1904
- * Not authenticated
2126
+ * Returns a single object containing organization details.
1905
2127
  */
1906
- 401: unknown;
2128
+ 200: Organization;
1907
2129
  };
1908
- export type ListClustersResponses = {
2130
+ export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
2131
+ export type CreateOrganizationData = {
2132
+ body: OrganizationCreateInput;
2133
+ path?: never;
2134
+ query?: never;
2135
+ url: '/organization';
2136
+ };
2137
+ export type CreateOrganizationResponses = {
1909
2138
  /**
1910
- * An array of clusters
2139
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
2140
+ *
1911
2141
  */
1912
- 200: Array<Cluster>;
2142
+ 200: OrganizationCreateOutput;
1913
2143
  };
1914
- export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
1915
- export type CreateClusterData = {
1916
- body: ClusterCreateInput;
2144
+ export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses];
2145
+ export type GetBasicPriceConsentData = {
2146
+ body?: never;
1917
2147
  path?: never;
1918
2148
  query?: never;
1919
- url: '/clusters';
2149
+ url: '/organization/basic-price-consent';
1920
2150
  };
1921
- export type CreateClusterErrors = {
2151
+ export type GetBasicPriceConsentResponses = {
1922
2152
  /**
1923
- * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
2153
+ * Returns the current consent status.
1924
2154
  */
1925
- 402: string;
2155
+ 200: BasicPriceConsent;
1926
2156
  };
1927
- export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
1928
- export type CreateClusterResponses = {
2157
+ export type GetBasicPriceConsentResponse = GetBasicPriceConsentResponses[keyof GetBasicPriceConsentResponses];
2158
+ export type SetBasicPriceConsentData = {
2159
+ body: BasicPriceConsentInput;
2160
+ path?: never;
2161
+ query?: never;
2162
+ url: '/organization/basic-price-consent';
2163
+ };
2164
+ export type SetBasicPriceConsentErrors = {
1929
2165
  /**
1930
- * Successfully created. Returns created Cluster ID.
2166
+ * The authenticated principal has no email address (e.g. a service account) and cannot record this decision.
2167
+ *
1931
2168
  */
1932
- 200: string;
1933
- };
1934
- export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
1935
- export type DeleteClusterData = {
1936
- body?: never;
1937
- path: {
1938
- /**
1939
- * Unique identifier of the cluster. UUID v4 string in canonical form
1940
- */
1941
- cluster_id: string;
1942
- };
1943
- query?: never;
1944
- url: '/clusters/{cluster_id}';
2169
+ 401: unknown;
2170
+ /**
2171
+ * The consent flow does not apply to this organization.
2172
+ */
2173
+ 409: unknown;
1945
2174
  };
1946
- export type DeleteClusterResponses = {
2175
+ export type SetBasicPriceConsentResponses = {
1947
2176
  /**
1948
- * Successfully deleted.
2177
+ * Decision recorded. Returns the updated consent status.
1949
2178
  */
1950
- 200: string;
2179
+ 200: BasicPriceConsent;
1951
2180
  };
1952
- export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
1953
- export type GetClusterData = {
1954
- body?: never;
1955
- path: {
2181
+ export type SetBasicPriceConsentResponse = SetBasicPriceConsentResponses[keyof SetBasicPriceConsentResponses];
2182
+ export type PostMcpData = {
2183
+ /**
2184
+ * JSON-RPC 2.0 request payload
2185
+ */
2186
+ body: {
2187
+ jsonrpc?: string;
2188
+ method?: string;
2189
+ id?: string | number;
1956
2190
  /**
1957
- * Unique identifier of the cluster. UUID v4 string in canonical form
2191
+ * Method-specific parameters
1958
2192
  */
1959
- cluster_id: string;
2193
+ params?: {
2194
+ [key: string]: unknown;
2195
+ };
1960
2196
  };
2197
+ path?: never;
1961
2198
  query?: never;
1962
- url: '/clusters/{cluster_id}';
2199
+ url: '/mcp';
1963
2200
  };
1964
- export type GetClusterResponses = {
2201
+ export type PostMcpErrors = {
1965
2202
  /**
1966
- * Returns a single object containing cluster details.
2203
+ * Not authenticated
1967
2204
  */
1968
- 200: Cluster;
2205
+ 401: unknown;
1969
2206
  };
1970
- export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
1971
- export type UpdateClusterData = {
1972
- body: ClusterUpdateInput;
1973
- path: {
1974
- /**
1975
- * Unique identifier of the cluster. UUID v4 string in canonical form
1976
- */
1977
- cluster_id: string;
2207
+ export type PostMcpResponses = {
2208
+ /**
2209
+ * JSON-RPC 2.0 success or error response
2210
+ */
2211
+ 200: {
2212
+ jsonrpc?: string;
2213
+ id?: string | number;
2214
+ result?: {
2215
+ [key: string]: unknown;
2216
+ };
2217
+ error?: {
2218
+ code?: number;
2219
+ message?: string;
2220
+ };
1978
2221
  };
2222
+ };
2223
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2224
+ export type ListMarketplaceChartsData = {
2225
+ body?: never;
2226
+ path?: never;
1979
2227
  query?: never;
1980
- url: '/clusters/{cluster_id}';
2228
+ url: '/marketplace';
1981
2229
  };
1982
- export type UpdateClusterResponses = {
2230
+ export type ListMarketplaceChartsErrors = {
1983
2231
  /**
1984
- * Successfully updated. Returns updated cluster details.
2232
+ * Not authenticated
2233
+ */
2234
+ 401: unknown;
2235
+ };
2236
+ export type ListMarketplaceChartsResponses = {
2237
+ /**
2238
+ * An array of chart listings in the marketplace.
1985
2239
  */
1986
- 200: Cluster;
2240
+ 200: Array<MarketplaceListing>;
1987
2241
  };
1988
- export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
1989
- export type GetJoinInformationData = {
2242
+ export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
2243
+ export type GetMarketplaceChartFilesData = {
1990
2244
  body?: never;
1991
2245
  path: {
1992
2246
  /**
1993
- * Unique identifier of the cluster. UUID v4 string in canonical form
2247
+ * Name of the chart in the marketplace.
1994
2248
  */
1995
- cluster_id: string;
2249
+ chart_name: string;
2250
+ /**
2251
+ * Version channel pattern to match (e.g., "1.31.x-cfke.x" for latest 1.31 patch, "1.x.x-cfke.x" for latest 1.x minor).
2252
+ */
2253
+ version_channel: string;
1996
2254
  };
1997
2255
  query?: never;
1998
- url: '/clusters/{cluster_id}/join_information';
2256
+ url: '/marketplace/{chart_name}/files/{version_channel}';
1999
2257
  };
2000
- export type GetJoinInformationErrors = {
2258
+ export type GetMarketplaceChartFilesErrors = {
2001
2259
  /**
2002
- * Not authenticated
2260
+ * Chart not found or no version matches the channel
2003
2261
  */
2004
- 401: unknown;
2262
+ 404: unknown;
2005
2263
  };
2006
- export type GetJoinInformationResponses = {
2264
+ export type GetMarketplaceChartFilesResponses = {
2007
2265
  /**
2008
- * An object of cluster join information
2266
+ * Returns an object containing the chart files for the latest matching version.
2009
2267
  */
2010
- 200: ClusterJoinInformation;
2268
+ 200: MarketplaceListingFiles;
2011
2269
  };
2012
- export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2270
+ export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
2013
2271
  export type ListInvitesData = {
2014
2272
  body?: never;
2015
2273
  path?: never;
@@ -2030,12 +2288,7 @@ export type ListInvitesResponses = {
2030
2288
  };
2031
2289
  export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
2032
2290
  export type CreateInviteData = {
2033
- body: {
2034
- /**
2035
- * User email address
2036
- */
2037
- email?: string;
2038
- };
2291
+ body: InviteCreateInput;
2039
2292
  path?: never;
2040
2293
  query?: never;
2041
2294
  url: '/invites';
@@ -2060,9 +2313,18 @@ export type GetInviteData = {
2060
2313
  };
2061
2314
  export type GetInviteResponses = {
2062
2315
  /**
2063
- * Returns a single object containing invite details.
2316
+ * The invitation code is valid. Returns the invited email and organization.
2064
2317
  */
2065
- 200: Invite;
2318
+ 200: {
2319
+ /**
2320
+ * Email address the invite was issued to.
2321
+ */
2322
+ email?: string;
2323
+ /**
2324
+ * Identifier of the organization the invite grants access to.
2325
+ */
2326
+ organization_id?: string;
2327
+ };
2066
2328
  };
2067
2329
  export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
2068
2330
  export type DeleteInviteData = {
@@ -2082,619 +2344,685 @@ export type DeleteInviteResponses = {
2082
2344
  */
2083
2345
  200: unknown;
2084
2346
  };
2085
- export type ListMarketplaceChartsData = {
2347
+ export type QueryClusterData = {
2086
2348
  body?: never;
2087
- path?: never;
2349
+ path: {
2350
+ /**
2351
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2352
+ */
2353
+ cluster_id: string;
2354
+ };
2088
2355
  query?: never;
2089
- url: '/marketplace';
2356
+ url: '/clusters/{cluster_id}/query';
2090
2357
  };
2091
- export type ListMarketplaceChartsErrors = {
2358
+ export type QueryClusterErrors = {
2092
2359
  /**
2093
2360
  * Not authenticated
2094
2361
  */
2095
2362
  401: unknown;
2096
2363
  };
2097
- export type ListMarketplaceChartsResponses = {
2364
+ export type QueryClusterResponses = {
2098
2365
  /**
2099
- * An array of chart listings in the marketplace.
2366
+ * Kubernetes API response
2100
2367
  */
2101
- 200: Array<MarketplaceListing>;
2368
+ 200: unknown;
2102
2369
  };
2103
- export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
2104
- export type GetMarketplaceChartFilesData = {
2370
+ export type ListFleetsData = {
2105
2371
  body?: never;
2106
2372
  path: {
2107
2373
  /**
2108
- * Name of the chart in the marketplace.
2374
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2109
2375
  */
2110
- chart_name: string;
2376
+ cluster_id: string;
2377
+ };
2378
+ query?: never;
2379
+ url: '/clusters/{cluster_id}/fleets';
2380
+ };
2381
+ export type ListFleetsErrors = {
2382
+ /**
2383
+ * Not authenticated
2384
+ */
2385
+ 401: unknown;
2386
+ };
2387
+ export type ListFleetsResponses = {
2388
+ /**
2389
+ * An array of fleets
2390
+ */
2391
+ 200: Array<Fleet>;
2392
+ };
2393
+ export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
2394
+ export type CreateFleetData = {
2395
+ body: FleetCreateInput;
2396
+ path: {
2111
2397
  /**
2112
- * 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).
2398
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2113
2399
  */
2114
- version_channel: string;
2400
+ cluster_id: string;
2115
2401
  };
2116
2402
  query?: never;
2117
- url: '/marketplace/{chart_name}/files/{version_channel}';
2403
+ url: '/clusters/{cluster_id}/fleets';
2118
2404
  };
2119
- export type GetMarketplaceChartFilesErrors = {
2405
+ export type CreateFleetErrors = {
2120
2406
  /**
2121
- * Chart not found or no version matches the channel
2407
+ * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
2122
2408
  */
2123
- 404: unknown;
2124
- };
2125
- export type GetMarketplaceChartFilesResponses = {
2409
+ 402: string;
2126
2410
  /**
2127
- * Returns an object containing the chart files for the latest matching version.
2411
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2128
2412
  */
2129
- 200: MarketplaceListingFiles;
2413
+ 409: string;
2130
2414
  };
2131
- export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
2132
- export type PostMcpData = {
2415
+ export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
2416
+ export type CreateFleetResponses = {
2133
2417
  /**
2134
- * JSON-RPC 2.0 request payload
2418
+ * Successfully created. Returns created Fleet ID.
2135
2419
  */
2136
- body: {
2137
- jsonrpc?: string;
2138
- method?: string;
2139
- id?: string | number;
2420
+ 200: string;
2421
+ };
2422
+ export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
2423
+ export type DeleteFleetData = {
2424
+ body?: never;
2425
+ path: {
2140
2426
  /**
2141
- * Method-specific parameters
2427
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2142
2428
  */
2143
- params?: {
2144
- [key: string]: unknown;
2145
- };
2429
+ cluster_id: string;
2430
+ /**
2431
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2432
+ */
2433
+ fleet_name: string;
2146
2434
  };
2147
- path?: never;
2148
2435
  query?: never;
2149
- url: '/mcp';
2436
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2150
2437
  };
2151
- export type PostMcpErrors = {
2438
+ export type DeleteFleetErrors = {
2152
2439
  /**
2153
- * Not authenticated
2440
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2154
2441
  */
2155
- 401: unknown;
2442
+ 409: string;
2156
2443
  };
2157
- export type PostMcpResponses = {
2444
+ export type DeleteFleetError = DeleteFleetErrors[keyof DeleteFleetErrors];
2445
+ export type DeleteFleetResponses = {
2158
2446
  /**
2159
- * JSON-RPC 2.0 success or error response
2447
+ * Successfully deleted.
2160
2448
  */
2161
- 200: {
2162
- jsonrpc?: string;
2163
- id?: string | number;
2164
- result?: {
2165
- [key: string]: unknown;
2166
- };
2167
- error?: {
2168
- code?: number;
2169
- message?: string;
2170
- };
2171
- };
2449
+ 200: string;
2172
2450
  };
2173
- export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2174
- export type GetOrganizationData = {
2451
+ export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
2452
+ export type GetFleetData = {
2175
2453
  body?: never;
2176
- path?: never;
2454
+ path: {
2455
+ /**
2456
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2457
+ */
2458
+ cluster_id: string;
2459
+ /**
2460
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2461
+ */
2462
+ fleet_name: string;
2463
+ };
2177
2464
  query?: never;
2178
- url: '/organization';
2465
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2179
2466
  };
2180
- export type GetOrganizationResponses = {
2467
+ export type GetFleetResponses = {
2181
2468
  /**
2182
- * Returns a single object containing organization details.
2469
+ * Returns a single object containing fleet details.
2183
2470
  */
2184
- 200: Organization;
2471
+ 200: Fleet;
2185
2472
  };
2186
- export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
2187
- export type CreateOrganizationData = {
2188
- body: OrganizationCreateInput;
2189
- path?: never;
2473
+ export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
2474
+ export type UpdateFleetData = {
2475
+ body: FleetUpdateInput;
2476
+ path: {
2477
+ /**
2478
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2479
+ */
2480
+ cluster_id: string;
2481
+ /**
2482
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2483
+ */
2484
+ fleet_name: string;
2485
+ };
2190
2486
  query?: never;
2191
- url: '/organization';
2487
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2192
2488
  };
2193
- export type CreateOrganizationResponses = {
2489
+ export type UpdateFleetErrors = {
2194
2490
  /**
2195
- * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
2196
- *
2491
+ * Organization must have a valid payment method configured to access this endpoint.
2197
2492
  */
2198
- 200: OrganizationCreateOutput;
2493
+ 402: string;
2494
+ /**
2495
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2496
+ */
2497
+ 409: string;
2199
2498
  };
2200
- export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses];
2201
- export type ListRepositoriesData = {
2499
+ export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
2500
+ export type UpdateFleetResponses = {
2501
+ /**
2502
+ * Successfully updated.
2503
+ */
2504
+ 200: string;
2505
+ };
2506
+ export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
2507
+ export type ListChartsData = {
2202
2508
  body?: never;
2203
- path?: never;
2509
+ path: {
2510
+ /**
2511
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2512
+ */
2513
+ cluster_id: string;
2514
+ };
2204
2515
  query?: never;
2205
- url: '/registry';
2516
+ url: '/clusters/{cluster_id}/charts';
2206
2517
  };
2207
- export type ListRepositoriesErrors = {
2518
+ export type ListChartsErrors = {
2208
2519
  /**
2209
2520
  * Not authenticated
2210
2521
  */
2211
2522
  401: unknown;
2523
+ };
2524
+ export type ListChartsResponses = {
2212
2525
  /**
2213
- * Internal server error
2526
+ * An array of charts
2214
2527
  */
2215
- 500: unknown;
2528
+ 200: Array<Chart>;
2216
2529
  };
2217
- export type ListRepositoriesResponses = {
2530
+ export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
2531
+ export type CreateChartData = {
2532
+ body: ChartCreateInput;
2533
+ path: {
2534
+ /**
2535
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2536
+ */
2537
+ cluster_id: string;
2538
+ };
2539
+ query?: never;
2540
+ url: '/clusters/{cluster_id}/charts';
2541
+ };
2542
+ export type CreateChartErrors = {
2218
2543
  /**
2219
- * List of repositories
2544
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2220
2545
  */
2221
- 200: Array<RegistryRepository>;
2546
+ 409: string;
2222
2547
  };
2223
- export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
2224
- export type ListTagsData = {
2548
+ export type CreateChartError = CreateChartErrors[keyof CreateChartErrors];
2549
+ export type CreateChartResponses = {
2550
+ /**
2551
+ * Successfully created. Returns created Chart ID.
2552
+ */
2553
+ 200: string;
2554
+ };
2555
+ export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
2556
+ export type DeleteChartData = {
2225
2557
  body?: never;
2226
2558
  path: {
2227
2559
  /**
2228
- * Region where the repository is located
2560
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2229
2561
  */
2230
- region: string;
2562
+ cluster_id: string;
2231
2563
  /**
2232
- * Name of the repository
2564
+ * Chart deployment name as the unique identifier of the chart.
2233
2565
  */
2234
- repository: string;
2566
+ chart_name: string;
2235
2567
  };
2236
2568
  query?: never;
2237
- url: '/registry/{region}/{repository}';
2569
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2238
2570
  };
2239
- export type ListTagsErrors = {
2240
- /**
2241
- * Not authenticated
2242
- */
2243
- 401: unknown;
2244
- /**
2245
- * Repository not found
2246
- */
2247
- 404: unknown;
2571
+ export type DeleteChartErrors = {
2248
2572
  /**
2249
- * Internal server error
2573
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2250
2574
  */
2251
- 500: unknown;
2575
+ 409: string;
2252
2576
  };
2253
- export type ListTagsResponses = {
2577
+ export type DeleteChartError = DeleteChartErrors[keyof DeleteChartErrors];
2578
+ export type DeleteChartResponses = {
2254
2579
  /**
2255
- * Repository with tags
2580
+ * Successfully deleted.
2256
2581
  */
2257
- 200: RegistryRepositoryWithTags;
2582
+ 200: string;
2258
2583
  };
2259
- export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
2260
- export type DeleteTagData = {
2584
+ export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
2585
+ export type GetChartData = {
2261
2586
  body?: never;
2262
2587
  path: {
2263
2588
  /**
2264
- * Region where the repository is located
2265
- */
2266
- region: string;
2267
- /**
2268
- * Name of the repository
2589
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2269
2590
  */
2270
- repository: string;
2591
+ cluster_id: string;
2271
2592
  /**
2272
- * Name of the tag
2593
+ * Chart deployment name as the unique identifier of the chart.
2273
2594
  */
2274
- tag: string;
2595
+ chart_name: string;
2275
2596
  };
2276
2597
  query?: never;
2277
- url: '/registry/{region}/{repository}/{tag}';
2278
- };
2279
- export type DeleteTagErrors = {
2280
- /**
2281
- * Not authenticated
2282
- */
2283
- 401: unknown;
2284
- /**
2285
- * Tag not found
2286
- */
2287
- 404: unknown;
2288
- /**
2289
- * Internal server error
2290
- */
2291
- 500: unknown;
2598
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2292
2599
  };
2293
- export type DeleteTagResponses = {
2600
+ export type GetChartResponses = {
2294
2601
  /**
2295
- * Tag successfully deleted
2602
+ * Returns a single object containing chart details.
2296
2603
  */
2297
- 200: unknown;
2604
+ 200: Chart;
2298
2605
  };
2299
- export type GetTagData = {
2300
- body?: never;
2606
+ export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
2607
+ export type UpdateChartData = {
2608
+ body: ChartUpdateInput;
2301
2609
  path: {
2302
2610
  /**
2303
- * Region where the repository is located
2304
- */
2305
- region: string;
2306
- /**
2307
- * Name of the repository
2611
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2308
2612
  */
2309
- repository: string;
2613
+ cluster_id: string;
2310
2614
  /**
2311
- * Name of the tag
2615
+ * Chart deployment name as the unique identifier of the chart.
2312
2616
  */
2313
- tag: string;
2617
+ chart_name: string;
2314
2618
  };
2315
2619
  query?: never;
2316
- url: '/registry/{region}/{repository}/{tag}';
2620
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
2317
2621
  };
2318
- export type GetTagErrors = {
2319
- /**
2320
- * Not authenticated
2321
- */
2322
- 401: unknown;
2323
- /**
2324
- * Tag not found
2325
- */
2326
- 404: unknown;
2622
+ export type UpdateChartErrors = {
2327
2623
  /**
2328
- * Internal server error
2624
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2329
2625
  */
2330
- 500: unknown;
2626
+ 409: string;
2331
2627
  };
2332
- export type GetTagResponses = {
2628
+ export type UpdateChartError = UpdateChartErrors[keyof UpdateChartErrors];
2629
+ export type UpdateChartResponses = {
2333
2630
  /**
2334
- * Tag details
2631
+ * Successfully updated.
2335
2632
  */
2336
- 200: RegistryTag;
2633
+ 200: string;
2337
2634
  };
2338
- export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2339
- export type ListTicketsData = {
2635
+ export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
2636
+ export type ListClustersData = {
2340
2637
  body?: never;
2341
2638
  path?: never;
2342
2639
  query?: never;
2343
- url: '/tickets';
2640
+ url: '/clusters';
2344
2641
  };
2345
- export type ListTicketsResponses = {
2642
+ export type ListClustersErrors = {
2346
2643
  /**
2347
- * Tickets for the organization.
2644
+ * Not authenticated
2348
2645
  */
2349
- 200: TicketListResponse;
2646
+ 401: unknown;
2350
2647
  };
2351
- export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
2352
- export type CreateTicketData = {
2353
- body: {
2354
- /**
2355
- * JSON-encoded TicketCreateInput.
2356
- */
2357
- payload?: string;
2358
- attachments?: Array<Blob | File>;
2359
- };
2648
+ export type ListClustersResponses = {
2649
+ /**
2650
+ * An array of clusters
2651
+ */
2652
+ 200: Array<Cluster>;
2653
+ };
2654
+ export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
2655
+ export type CreateClusterData = {
2656
+ body: ClusterCreateInput;
2360
2657
  path?: never;
2361
2658
  query?: never;
2362
- url: '/tickets';
2659
+ url: '/clusters';
2363
2660
  };
2364
- export type CreateTicketResponses = {
2661
+ export type CreateClusterErrors = {
2365
2662
  /**
2366
- * Ticket created.
2663
+ * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
2367
2664
  */
2368
- 200: Ticket;
2665
+ 402: string;
2369
2666
  };
2370
- export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
2371
- export type CloseTicketData = {
2667
+ export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
2668
+ export type CreateClusterResponses = {
2669
+ /**
2670
+ * Successfully created. Returns created Cluster ID.
2671
+ */
2672
+ 200: string;
2673
+ };
2674
+ export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
2675
+ export type DeleteClusterData = {
2372
2676
  body?: never;
2373
2677
  path: {
2374
- ticket_id: string;
2678
+ /**
2679
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2680
+ */
2681
+ cluster_id: string;
2375
2682
  };
2376
2683
  query?: never;
2377
- url: '/tickets/{ticket_id}';
2684
+ url: '/clusters/{cluster_id}';
2378
2685
  };
2379
- export type CloseTicketResponses = {
2686
+ export type DeleteClusterErrors = {
2380
2687
  /**
2381
- * Ticket closed.
2688
+ * Cluster not found; it does not exist or has already been deleted.
2382
2689
  */
2383
- 200: Ticket;
2690
+ 404: unknown;
2691
+ /**
2692
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2693
+ */
2694
+ 409: string;
2695
+ /**
2696
+ * Transient failure tearing down the cluster; retry the request.
2697
+ */
2698
+ 503: unknown;
2384
2699
  };
2385
- export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
2386
- export type GetTicketData = {
2700
+ export type DeleteClusterError = DeleteClusterErrors[keyof DeleteClusterErrors];
2701
+ export type DeleteClusterResponses = {
2702
+ /**
2703
+ * Successfully deleted. The cluster has been torn down.
2704
+ */
2705
+ 200: string;
2706
+ };
2707
+ export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
2708
+ export type GetClusterData = {
2387
2709
  body?: never;
2388
2710
  path: {
2389
- ticket_id: string;
2711
+ /**
2712
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2713
+ */
2714
+ cluster_id: string;
2390
2715
  };
2391
2716
  query?: never;
2392
- url: '/tickets/{ticket_id}';
2717
+ url: '/clusters/{cluster_id}';
2393
2718
  };
2394
- export type GetTicketResponses = {
2719
+ export type GetClusterResponses = {
2395
2720
  /**
2396
- * Ticket with messages (internal notes excluded).
2721
+ * Returns a single object containing cluster details.
2397
2722
  */
2398
- 200: Ticket;
2723
+ 200: Cluster;
2399
2724
  };
2400
- export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
2401
- export type ReplyTicketData = {
2402
- body: {
2725
+ export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
2726
+ export type UpdateClusterData = {
2727
+ body: ClusterUpdateInput;
2728
+ path: {
2403
2729
  /**
2404
- * JSON-encoded TicketMessageInput.
2730
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2405
2731
  */
2406
- payload?: string;
2407
- attachments?: Array<Blob | File>;
2408
- };
2409
- path: {
2410
- ticket_id: string;
2732
+ cluster_id: string;
2411
2733
  };
2412
2734
  query?: never;
2413
- url: '/tickets/{ticket_id}/messages';
2735
+ url: '/clusters/{cluster_id}';
2414
2736
  };
2415
- export type ReplyTicketErrors = {
2737
+ export type UpdateClusterErrors = {
2416
2738
  /**
2417
- * Ticket is closed. Open a new ticket instead.
2739
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2418
2740
  */
2419
- 409: unknown;
2741
+ 409: string;
2420
2742
  };
2421
- export type ReplyTicketResponses = {
2743
+ export type UpdateClusterError = UpdateClusterErrors[keyof UpdateClusterErrors];
2744
+ export type UpdateClusterResponses = {
2422
2745
  /**
2423
- * Reply appended.
2746
+ * Successfully updated. Returns updated cluster details.
2424
2747
  */
2425
- 200: TicketMessage;
2748
+ 200: Cluster;
2426
2749
  };
2427
- export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
2428
- export type GetTicketAttachmentData = {
2750
+ export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
2751
+ export type GetJoinInformationData = {
2429
2752
  body?: never;
2430
2753
  path: {
2431
- ticket_id: string;
2432
- attachment_id: string;
2754
+ /**
2755
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2756
+ */
2757
+ cluster_id: string;
2433
2758
  };
2434
2759
  query?: never;
2435
- url: '/tickets/{ticket_id}/attachments/{attachment_id}';
2436
- };
2437
- export type GetTicketAttachmentResponses = {
2438
- /**
2439
- * Attachment binary stream.
2440
- */
2441
- 200: Blob | File;
2442
- };
2443
- export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
2444
- export type ListTokensData = {
2445
- body?: never;
2446
- path?: never;
2447
- query?: never;
2448
- url: '/tokens';
2760
+ url: '/clusters/{cluster_id}/join_information';
2449
2761
  };
2450
- export type ListTokensErrors = {
2762
+ export type GetJoinInformationErrors = {
2451
2763
  /**
2452
2764
  * Not authenticated
2453
2765
  */
2454
2766
  401: unknown;
2767
+ /**
2768
+ * The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
2769
+ */
2770
+ 409: string;
2771
+ /**
2772
+ * The cluster runs on Cloudfleet data plane v2 and the calling client did not declare the dataplane-v2 capability, so it cannot provision a node for it. Upgrade the Cloudfleet CLI or Terraform provider.
2773
+ */
2774
+ 426: string;
2455
2775
  };
2456
- export type ListTokensResponses = {
2776
+ export type GetJoinInformationError = GetJoinInformationErrors[keyof GetJoinInformationErrors];
2777
+ export type GetJoinInformationResponses = {
2457
2778
  /**
2458
- * Returns a list of access token details with masked secrets.
2779
+ * An object of cluster join information
2459
2780
  */
2460
- 200: Array<Token>;
2781
+ 200: ClusterJoinInformation;
2461
2782
  };
2462
- export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
2463
- export type CreateTokenData = {
2464
- body: TokenCreateInput;
2783
+ export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2784
+ export type GetUsageData = {
2785
+ body?: never;
2465
2786
  path?: never;
2466
- query?: never;
2467
- url: '/tokens';
2787
+ query?: {
2788
+ /**
2789
+ * Time granularity for usage aggregation - hourly (Past 48 hours aggregated by hour), daily (Past 30 days aggregated by day), monthly (Past 12 months aggregated by month)
2790
+ */
2791
+ granularity?: 'hourly' | 'daily' | 'monthly';
2792
+ };
2793
+ url: '/billing/usage';
2468
2794
  };
2469
- export type CreateTokenErrors = {
2795
+ export type GetUsageErrors = {
2470
2796
  /**
2471
2797
  * Not authenticated
2472
2798
  */
2473
2799
  401: unknown;
2474
2800
  };
2475
- export type CreateTokenResponses = {
2801
+ export type GetUsageResponses = {
2476
2802
  /**
2477
- * Successfully created. Returns created token details with unmasked/raw secret.
2803
+ * Usage data with facets for filtering
2478
2804
  */
2479
- 200: Token;
2805
+ 200: UsageResponse;
2480
2806
  };
2481
- export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
2482
- export type DeleteTokenData = {
2807
+ export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
2808
+ export type GetPaymentMethodSecretData = {
2483
2809
  body?: never;
2484
- path: {
2485
- /**
2486
- * Generated unique identifier of the access token.
2487
- */
2488
- token_id: string;
2489
- };
2810
+ path?: never;
2490
2811
  query?: never;
2491
- url: '/tokens/{token_id}';
2812
+ url: '/billing/payment-method';
2492
2813
  };
2493
- export type DeleteTokenResponses = {
2814
+ export type GetPaymentMethodSecretResponses = {
2494
2815
  /**
2495
- * Successfully deleted.
2816
+ * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
2817
+ *
2496
2818
  */
2497
- 200: unknown;
2498
- };
2499
- export type GetTokenData = {
2500
- body?: never;
2501
- path: {
2819
+ 200: {
2502
2820
  /**
2503
- * Generated unique identifier of the access token.
2821
+ * The client secret.
2504
2822
  */
2505
- token_id: string;
2823
+ id?: string;
2506
2824
  };
2825
+ };
2826
+ export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
2827
+ export type ListPaymentMethodsData = {
2828
+ body?: never;
2829
+ path?: never;
2507
2830
  query?: never;
2508
- url: '/tokens/{token_id}';
2831
+ url: '/billing/payment-methods';
2509
2832
  };
2510
- export type GetTokenErrors = {
2833
+ export type ListPaymentMethodsErrors = {
2511
2834
  /**
2512
2835
  * Not authenticated
2513
2836
  */
2514
2837
  401: unknown;
2515
2838
  };
2516
- export type GetTokenResponses = {
2839
+ export type ListPaymentMethodsResponses = {
2517
2840
  /**
2518
- * Returns access token details with masked secret.
2841
+ * An array of payment methods.
2519
2842
  */
2520
- 200: Token;
2843
+ 200: Array<PaymentMethod>;
2521
2844
  };
2522
- export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
2523
- export type UpdateTokenData = {
2524
- body: TokenUpdateInput;
2845
+ export type ListPaymentMethodsResponse = ListPaymentMethodsResponses[keyof ListPaymentMethodsResponses];
2846
+ export type SetDefaultPaymentMethodData = {
2847
+ body?: never;
2525
2848
  path: {
2526
2849
  /**
2527
- * Generated unique identifier of the access token.
2850
+ * Stripe payment method identifier.
2528
2851
  */
2529
- token_id: string;
2852
+ paymentMethodId: string;
2530
2853
  };
2531
2854
  query?: never;
2532
- url: '/tokens/{token_id}';
2855
+ url: '/billing/payment-methods/{paymentMethodId}/default';
2533
2856
  };
2534
- export type UpdateTokenErrors = {
2857
+ export type SetDefaultPaymentMethodErrors = {
2858
+ /**
2859
+ * The bank transfer payment method cannot be set as the default.
2860
+ */
2861
+ 400: unknown;
2535
2862
  /**
2536
2863
  * Not authenticated
2537
2864
  */
2538
2865
  401: unknown;
2866
+ /**
2867
+ * Payment method not found.
2868
+ */
2869
+ 404: unknown;
2539
2870
  };
2540
- export type UpdateTokenResponses = {
2871
+ export type SetDefaultPaymentMethodResponses = {
2541
2872
  /**
2542
- * Successfully updated. Returns updated token details with masked secret.
2873
+ * Default payment method updated.
2543
2874
  */
2544
- 200: Token;
2875
+ 204: void;
2545
2876
  };
2546
- export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
2547
- export type RegenerateTokenData = {
2877
+ export type SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponses[keyof SetDefaultPaymentMethodResponses];
2878
+ export type DeletePaymentMethodData = {
2548
2879
  body?: never;
2549
2880
  path: {
2550
2881
  /**
2551
- * Generated unique identifier of the access token.
2882
+ * Stripe payment method identifier.
2552
2883
  */
2553
- token_id: string;
2884
+ paymentMethodId: string;
2554
2885
  };
2555
2886
  query?: never;
2556
- url: '/tokens/{token_id}/secret';
2887
+ url: '/billing/payment-methods/{paymentMethodId}';
2557
2888
  };
2558
- export type RegenerateTokenErrors = {
2889
+ export type DeletePaymentMethodErrors = {
2890
+ /**
2891
+ * The bank transfer payment method cannot be removed.
2892
+ */
2893
+ 400: unknown;
2559
2894
  /**
2560
2895
  * Not authenticated
2561
2896
  */
2562
2897
  401: unknown;
2898
+ /**
2899
+ * Payment method not found.
2900
+ */
2901
+ 404: unknown;
2902
+ /**
2903
+ * Cannot delete the only remaining payment method.
2904
+ */
2905
+ 409: unknown;
2563
2906
  };
2564
- export type RegenerateTokenResponses = {
2907
+ export type DeletePaymentMethodResponses = {
2565
2908
  /**
2566
- * Successfully updated. Returns updated token details with unmasked / raw secret.
2909
+ * Payment method deleted.
2567
2910
  */
2568
- 200: Token;
2911
+ 204: void;
2569
2912
  };
2570
- export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
2571
- export type ListUserOrganizationsData = {
2913
+ export type DeletePaymentMethodResponse = DeletePaymentMethodResponses[keyof DeletePaymentMethodResponses];
2914
+ export type ListInvoicesData = {
2572
2915
  body?: never;
2573
- path: {
2574
- /**
2575
- * User email address.
2576
- */
2577
- email: string;
2578
- };
2916
+ path?: never;
2579
2917
  query?: never;
2580
- url: '/users/organizations/{email}';
2918
+ url: '/billing/invoices';
2581
2919
  };
2582
- export type ListUserOrganizationsResponses = {
2920
+ export type ListInvoicesErrors = {
2583
2921
  /**
2584
- * An array of organizations the user belongs to.
2922
+ * Not authenticated
2585
2923
  */
2586
- 200: Array<{
2587
- /**
2588
- * Unique identifier of the organization. UUID v4 string in canonical form
2589
- */
2590
- realm?: string;
2591
- /**
2592
- * Human-readable name of the organization
2593
- */
2594
- displayName?: string;
2595
- }>;
2924
+ 401: unknown;
2596
2925
  };
2597
- export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
2598
- export type ListUsersData = {
2926
+ export type ListInvoicesResponses = {
2927
+ /**
2928
+ * An array of usage records.
2929
+ */
2930
+ 200: Array<Invoice>;
2931
+ };
2932
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
2933
+ export type PayOpenInvoicesData = {
2599
2934
  body?: never;
2600
2935
  path?: never;
2601
2936
  query?: never;
2602
- url: '/users';
2937
+ url: '/billing/invoices/pay';
2603
2938
  };
2604
- export type ListUsersErrors = {
2939
+ export type PayOpenInvoicesErrors = {
2940
+ /**
2941
+ * The organization has no payment method that can be charged.
2942
+ */
2943
+ 400: unknown;
2605
2944
  /**
2606
2945
  * Not authenticated
2607
2946
  */
2608
2947
  401: unknown;
2948
+ /**
2949
+ * Too many payment attempts for this organization.
2950
+ */
2951
+ 429: unknown;
2609
2952
  };
2610
- export type ListUsersResponses = {
2953
+ export type PayOpenInvoicesResponses = {
2611
2954
  /**
2612
- * An array of users
2955
+ * The outcome of the attempt.
2613
2956
  */
2614
- 200: Array<User>;
2957
+ 200: InvoicePaymentResult;
2615
2958
  };
2616
- export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
2617
- export type CreateUserData = {
2618
- body: UserCreateInput;
2959
+ export type PayOpenInvoicesResponse = PayOpenInvoicesResponses[keyof PayOpenInvoicesResponses];
2960
+ export type GetContactData = {
2961
+ body?: never;
2619
2962
  path?: never;
2620
2963
  query?: never;
2621
- url: '/users';
2964
+ url: '/billing/contact';
2622
2965
  };
2623
- export type CreateUserResponses = {
2966
+ export type GetContactResponses = {
2624
2967
  /**
2625
- * Successfully created. Returns created user details.
2968
+ * Returns a single object containing organization contact and billing address details.
2626
2969
  */
2627
- 200: User;
2970
+ 200: BillingContact;
2628
2971
  };
2629
- export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
2630
- export type DeleteUserData = {
2631
- body?: never;
2632
- path: {
2633
- /**
2634
- * Unique user identifier. UUID v4 string in canonical form
2635
- */
2636
- user_id: string;
2637
- };
2972
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
2973
+ export type UpdateContactData = {
2974
+ body: BillingContact;
2975
+ path?: never;
2638
2976
  query?: never;
2639
- url: '/users/{user_id}';
2977
+ url: '/billing/contact';
2640
2978
  };
2641
- export type DeleteUserErrors = {
2979
+ export type UpdateContactResponses = {
2642
2980
  /**
2643
- * Deleting own user is not allowed. Delete your organization instead.
2981
+ * Successfully updated. Returns updated organization details.
2644
2982
  */
2645
- 400: unknown;
2983
+ 200: BillingContact;
2984
+ };
2985
+ export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
2986
+ export type GetCreditsData = {
2987
+ body?: never;
2988
+ path?: never;
2989
+ query?: never;
2990
+ url: '/billing/credits';
2991
+ };
2992
+ export type GetCreditsErrors = {
2646
2993
  /**
2647
2994
  * Not authenticated
2648
2995
  */
2649
2996
  401: unknown;
2650
2997
  };
2651
- export type DeleteUserResponses = {
2998
+ export type GetCreditsResponses = {
2652
2999
  /**
2653
- * User profile information
3000
+ * An array of the applied promotional credits records.
2654
3001
  */
2655
- 200: User;
3002
+ 200: Array<BillingCredits>;
2656
3003
  };
2657
- export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
2658
- export type GetUserData = {
2659
- body?: never;
2660
- path: {
3004
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
3005
+ export type RedeemCreditsData = {
3006
+ body: {
2661
3007
  /**
2662
- * Unique user identifier. UUID v4 string in canonical form
3008
+ * Promotional code to redeem
2663
3009
  */
2664
- user_id: string;
3010
+ code?: string;
2665
3011
  };
3012
+ path?: never;
2666
3013
  query?: never;
2667
- url: '/users/{user_id}';
3014
+ url: '/billing/credits';
2668
3015
  };
2669
- export type GetUserErrors = {
3016
+ export type RedeemCreditsErrors = {
2670
3017
  /**
2671
3018
  * Not authenticated
2672
3019
  */
2673
3020
  401: unknown;
2674
3021
  };
2675
- export type GetUserResponses = {
2676
- /**
2677
- * User profile information
2678
- */
2679
- 200: User;
2680
- };
2681
- export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
2682
- export type UpdateUserData = {
2683
- body: UserUpdateInput;
2684
- path: {
2685
- /**
2686
- * Unique user identifier. UUID v4 string in canonical form
2687
- */
2688
- user_id: string;
2689
- };
2690
- query?: never;
2691
- url: '/users/{user_id}';
2692
- };
2693
- export type UpdateUserResponses = {
3022
+ export type RedeemCreditsResponses = {
2694
3023
  /**
2695
- * Successfully created. Returns created user details.
3024
+ * Successfully created a new organization.
2696
3025
  */
2697
- 200: User;
3026
+ 200: unknown;
2698
3027
  };
2699
- export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
2700
3028
  //# sourceMappingURL=types.gen.d.ts.map