@cloudfleet/sdk 0.0.1-c034297 → 0.0.1-c229303

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