@cloudfleet/sdk 0.0.1-5aba3bd → 0.0.1-5ceb5df

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.
Files changed (36) hide show
  1. package/README.md +26 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +1054 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1215 -0
  5. package/dist/@tanstack/react-query.gen.js.map +1 -0
  6. package/dist/client/client.gen.d.ts.map +1 -1
  7. package/dist/client/client.gen.js +104 -123
  8. package/dist/client/client.gen.js.map +1 -1
  9. package/dist/client/types.gen.d.ts +6 -3
  10. package/dist/client/types.gen.d.ts.map +1 -1
  11. package/dist/client/utils.gen.d.ts +7 -3
  12. package/dist/client/utils.gen.d.ts.map +1 -1
  13. package/dist/client/utils.gen.js +3 -3
  14. package/dist/client/utils.gen.js.map +1 -1
  15. package/dist/core/params.gen.js +4 -4
  16. package/dist/core/params.gen.js.map +1 -1
  17. package/dist/core/serverSentEvents.gen.d.ts +1 -1
  18. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  19. package/dist/core/serverSentEvents.gen.js +3 -4
  20. package/dist/core/serverSentEvents.gen.js.map +1 -1
  21. package/dist/schemas.gen.d.ts +937 -140
  22. package/dist/schemas.gen.d.ts.map +1 -1
  23. package/dist/schemas.gen.js +1873 -213
  24. package/dist/schemas.gen.js.map +1 -1
  25. package/dist/sdk.gen.d.ts +262 -186
  26. package/dist/sdk.gen.d.ts.map +1 -1
  27. package/dist/sdk.gen.js +377 -257
  28. package/dist/sdk.gen.js.map +1 -1
  29. package/dist/services/kubernetes/api.d.ts +8 -8
  30. package/dist/types.gen.d.ts +1499 -758
  31. package/dist/types.gen.d.ts.map +1 -1
  32. package/dist/zod.gen.d.ts +3417 -1208
  33. package/dist/zod.gen.d.ts.map +1 -1
  34. package/dist/zod.gen.js +1281 -293
  35. package/dist/zod.gen.js.map +1 -1
  36. package/package.json +28 -12
@@ -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,20 +329,71 @@ 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 | '';
396
+ endpoint_public?: string | '';
262
397
  /**
263
398
  * Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.
264
399
  */
@@ -278,129 +413,259 @@ export type Cluster = {
278
413
  /**
279
414
  * Indicates if the cluster is ready to be used.
280
415
  */
281
- ready?: boolean;
282
- /**
283
- * Version of the kubernetes cluster.
284
- */
285
- version_channel?: string;
416
+ ready: boolean;
286
417
  };
418
+ /**
419
+ * Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
420
+ */
287
421
  export type ClusterUpdateInput = {
288
422
  /**
289
423
  * Name of the cluster.
290
424
  */
291
- name?: string;
425
+ name: string;
292
426
  /**
293
427
  * Tier of the cluster.
294
428
  */
295
- tier: 'basic' | 'pro';
429
+ tier?: 'basic' | 'pro' | 'enterprise';
296
430
  /**
297
431
  * Version of the kubernetes cluster.
298
432
  */
299
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
+ };
300
455
  };
456
+ /**
457
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
458
+ */
301
459
  export type FleetCreateInput = {
302
460
  /**
303
461
  * Limits define a set of bounds for provisioning capacity.
304
462
  */
305
463
  limits?: {
306
464
  /**
307
- * CPU limit in cores.
465
+ * CPU limit in cores. Maximum 100,000.
308
466
  */
309
- cpu: number;
467
+ cpu?: number;
310
468
  };
311
469
  gcp?: {
312
- enabled?: boolean;
470
+ enabled: boolean;
313
471
  /**
314
- * Project GCP Project id to deploy instances into
472
+ * GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.
315
473
  */
316
- project: string;
474
+ project?: string;
317
475
  };
318
476
  hetzner?: {
319
- enabled?: boolean;
477
+ enabled: boolean;
320
478
  /**
321
- * Hetzner Cloud API key with read / write access
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.
322
480
  */
323
- apiKey: string;
481
+ apiKey?: string;
324
482
  };
325
483
  aws?: {
326
- enabled?: boolean;
484
+ enabled: boolean;
485
+ /**
486
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
487
+ */
488
+ controllerRoleArn?: string;
489
+ };
490
+ /**
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.
492
+ */
493
+ constraints?: {
327
494
  /**
328
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
495
+ * Allowed values for `karpenter.sh/capacity-type`.
329
496
  */
330
- controllerRoleArn: string;
497
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
498
+ /**
499
+ * Allowed values for `kubernetes.io/arch`.
500
+ */
501
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
502
+ /**
503
+ * Allowed values for `cfke.io/instance-family`.
504
+ */
505
+ 'cfke.io/instance-family'?: Array<'a1' | 'a2' | 'a3' | 'a4' | 'c1' | 'c2' | 'c2d' | 'c3' | 'c3d' | 'c4' | 'c4a' | 'c4d' | 'c5' | 'c5a' | 'c5ad' | 'c5d' | 'c5n' | 'c6a' | 'c6g' | 'c6gd' | 'c6gn' | 'c6i' | 'c6id' | 'c6in' | 'c7a' | 'c7g' | 'c7gd' | 'c7gn' | 'c7i' | 'c7i-flex' | 'c8g' | 'c8gd' | 'cax' | 'ccx' | 'cpx' | 'cx' | 'd2' | 'd3' | 'd3en' | 'dl1' | 'dl2q' | 'e2' | 'f1' | 'f2' | 'g1' | 'g2' | 'g4ad' | 'g4dn' | 'g5' | 'g5g' | 'g6' | 'g6e' | 'gr6' | 'h1' | 'h3' | 'hpc6a' | 'hpc6id' | 'hpc7a' | 'hpc7g' | 'i2' | 'i3' | 'i3en' | 'i4g' | 'i4i' | 'i7i' | 'i7ie' | 'i8g' | 'im4gn' | 'inf1' | 'inf2' | 'is4gen' | 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm5a' | 'm5ad' | 'm5d' | 'm5dn' | 'm5n' | 'm5zn' | 'm6a' | 'm6g' | 'm6gd' | 'm6i' | 'm6id' | 'm6idn' | 'm6in' | 'm7a' | 'm7g' | 'm7gd' | 'm7i' | 'm7i-flex' | 'm8g' | 'm8gd' | 'n1' | 'n2' | 'n2d' | 'n4' | 'p3' | 'p3dn' | 'p4d' | 'p4de' | 'p5' | 'p5e' | 'p5en' | 'p6-b200' | 'r3' | 'r4' | 'r5' | 'r5a' | 'r5ad' | 'r5b' | 'r5d' | 'r5dn' | 'r5n' | 'r6a' | 'r6g' | 'r6gd' | 'r6i' | 'r6id' | 'r6idn' | 'r6in' | 'r7a' | 'r7g' | 'r7gd' | 'r7i' | 'r7iz' | 'r8g' | 'r8gd' | 't2' | 't2a' | 't2d' | 't3' | 't3a' | 't4g' | 'trn1' | 'trn1n' | 'u-3tb1' | 'u-6tb1' | 'u7i-12tb' | 'u7i-6tb' | 'u7i-8tb' | 'u7in-16tb' | 'u7in-24tb' | 'u7in-32tb' | 'vt1' | 'x1' | 'x1e' | 'x2gd' | 'x2idn' | 'x2iedn' | 'x2iezn' | 'x4' | 'x8g' | 'z1d' | 'z3'>;
506
+ /**
507
+ * Allowed values for `topology.kubernetes.io/region`.
508
+ */
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'>;
331
510
  };
511
+ /**
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`).
513
+ */
514
+ scalingProfile?: 'aggressive' | 'conservative';
332
515
  /**
333
516
  * Unique identifier of the kubernetes fleet.
334
517
  */
335
518
  id: string;
336
519
  };
520
+ /**
521
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
522
+ */
337
523
  export type Fleet = {
338
524
  /**
339
525
  * Limits define a set of bounds for provisioning capacity.
340
526
  */
341
527
  limits?: {
342
528
  /**
343
- * CPU limit in cores.
529
+ * CPU limit in cores. Maximum 100,000.
344
530
  */
345
- cpu: number;
531
+ cpu?: number;
346
532
  };
347
533
  gcp?: {
348
- enabled?: boolean;
534
+ enabled: boolean;
349
535
  /**
350
- * Project GCP Project id to deploy instances into
536
+ * GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.
351
537
  */
352
- project: string;
538
+ project?: string;
353
539
  };
354
540
  hetzner?: {
355
- enabled?: boolean;
541
+ enabled: boolean;
356
542
  /**
357
- * Hetzner Cloud API key with read / write access
543
+ * Redacted Hetzner API token. Returned as 64 asterisks when a token is configured; omitted otherwise. The real value is never echoed by the API.
358
544
  */
359
- apiKey: string;
545
+ apiKey?: string;
360
546
  };
361
547
  aws?: {
362
- enabled?: boolean;
548
+ enabled: boolean;
549
+ /**
550
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
551
+ */
552
+ controllerRoleArn?: string;
553
+ };
554
+ /**
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.
556
+ */
557
+ constraints: {
558
+ /**
559
+ * Allowed values for `karpenter.sh/capacity-type`.
560
+ */
561
+ 'karpenter.sh/capacity-type': Array<'on-demand' | 'spot'>;
562
+ /**
563
+ * Allowed values for `kubernetes.io/arch`.
564
+ */
565
+ 'kubernetes.io/arch': Array<'amd64' | 'arm64'>;
566
+ /**
567
+ * Allowed values for `cfke.io/instance-family`.
568
+ */
569
+ 'cfke.io/instance-family'?: Array<'a1' | 'a2' | 'a3' | 'a4' | 'c1' | 'c2' | 'c2d' | 'c3' | 'c3d' | 'c4' | 'c4a' | 'c4d' | 'c5' | 'c5a' | 'c5ad' | 'c5d' | 'c5n' | 'c6a' | 'c6g' | 'c6gd' | 'c6gn' | 'c6i' | 'c6id' | 'c6in' | 'c7a' | 'c7g' | 'c7gd' | 'c7gn' | 'c7i' | 'c7i-flex' | 'c8g' | 'c8gd' | 'cax' | 'ccx' | 'cpx' | 'cx' | 'd2' | 'd3' | 'd3en' | 'dl1' | 'dl2q' | 'e2' | 'f1' | 'f2' | 'g1' | 'g2' | 'g4ad' | 'g4dn' | 'g5' | 'g5g' | 'g6' | 'g6e' | 'gr6' | 'h1' | 'h3' | 'hpc6a' | 'hpc6id' | 'hpc7a' | 'hpc7g' | 'i2' | 'i3' | 'i3en' | 'i4g' | 'i4i' | 'i7i' | 'i7ie' | 'i8g' | 'im4gn' | 'inf1' | 'inf2' | 'is4gen' | 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm5a' | 'm5ad' | 'm5d' | 'm5dn' | 'm5n' | 'm5zn' | 'm6a' | 'm6g' | 'm6gd' | 'm6i' | 'm6id' | 'm6idn' | 'm6in' | 'm7a' | 'm7g' | 'm7gd' | 'm7i' | 'm7i-flex' | 'm8g' | 'm8gd' | 'n1' | 'n2' | 'n2d' | 'n4' | 'p3' | 'p3dn' | 'p4d' | 'p4de' | 'p5' | 'p5e' | 'p5en' | 'p6-b200' | 'r3' | 'r4' | 'r5' | 'r5a' | 'r5ad' | 'r5b' | 'r5d' | 'r5dn' | 'r5n' | 'r6a' | 'r6g' | 'r6gd' | 'r6i' | 'r6id' | 'r6idn' | 'r6in' | 'r7a' | 'r7g' | 'r7gd' | 'r7i' | 'r7iz' | 'r8g' | 'r8gd' | 't2' | 't2a' | 't2d' | 't3' | 't3a' | 't4g' | 'trn1' | 'trn1n' | 'u-3tb1' | 'u-6tb1' | 'u7i-12tb' | 'u7i-6tb' | 'u7i-8tb' | 'u7in-16tb' | 'u7in-24tb' | 'u7in-32tb' | 'vt1' | 'x1' | 'x1e' | 'x2gd' | 'x2idn' | 'x2iedn' | 'x2iezn' | 'x4' | 'x8g' | 'z1d' | 'z3'>;
363
570
  /**
364
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
571
+ * Allowed values for `topology.kubernetes.io/region`.
365
572
  */
366
- controllerRoleArn: string;
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'>;
367
574
  };
575
+ /**
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`).
577
+ */
578
+ scalingProfile: 'aggressive' | 'conservative';
368
579
  /**
369
580
  * Unique identifier of the kubernetes fleet.
370
581
  */
371
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;
372
599
  };
600
+ /**
601
+ * Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
602
+ */
373
603
  export type FleetUpdateInput = {
374
604
  /**
375
605
  * Limits define a set of bounds for provisioning capacity.
376
606
  */
377
607
  limits?: {
378
608
  /**
379
- * CPU limit in cores.
609
+ * CPU limit in cores. Maximum 100,000.
380
610
  */
381
- cpu: number;
611
+ cpu?: number;
382
612
  };
383
613
  gcp?: {
384
- enabled?: boolean;
614
+ enabled: boolean;
385
615
  /**
386
- * Project GCP Project id to deploy instances into
616
+ * GCP project ID to deploy instances into. 6-30 chars, lowercase letters/digits/hyphens, must start with a letter and not end with a hyphen. Omit when GCP is disabled.
387
617
  */
388
- project: string;
618
+ project?: string;
389
619
  };
390
620
  hetzner?: {
391
- enabled?: boolean;
621
+ enabled: boolean;
392
622
  /**
393
- * Hetzner Cloud API key with read / write access
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.
394
624
  */
395
- apiKey: string;
625
+ apiKey?: string;
396
626
  };
397
627
  aws?: {
398
- enabled?: boolean;
628
+ enabled: boolean;
399
629
  /**
400
- * ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.
630
+ * AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.
401
631
  */
402
- controllerRoleArn: string;
632
+ controllerRoleArn?: string;
403
633
  };
634
+ /**
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.
636
+ */
637
+ constraints?: {
638
+ /**
639
+ * Allowed values for `karpenter.sh/capacity-type`.
640
+ */
641
+ 'karpenter.sh/capacity-type'?: Array<'on-demand' | 'spot'>;
642
+ /**
643
+ * Allowed values for `kubernetes.io/arch`.
644
+ */
645
+ 'kubernetes.io/arch'?: Array<'amd64' | 'arm64'>;
646
+ /**
647
+ * Allowed values for `cfke.io/instance-family`.
648
+ */
649
+ 'cfke.io/instance-family'?: Array<'a1' | 'a2' | 'a3' | 'a4' | 'c1' | 'c2' | 'c2d' | 'c3' | 'c3d' | 'c4' | 'c4a' | 'c4d' | 'c5' | 'c5a' | 'c5ad' | 'c5d' | 'c5n' | 'c6a' | 'c6g' | 'c6gd' | 'c6gn' | 'c6i' | 'c6id' | 'c6in' | 'c7a' | 'c7g' | 'c7gd' | 'c7gn' | 'c7i' | 'c7i-flex' | 'c8g' | 'c8gd' | 'cax' | 'ccx' | 'cpx' | 'cx' | 'd2' | 'd3' | 'd3en' | 'dl1' | 'dl2q' | 'e2' | 'f1' | 'f2' | 'g1' | 'g2' | 'g4ad' | 'g4dn' | 'g5' | 'g5g' | 'g6' | 'g6e' | 'gr6' | 'h1' | 'h3' | 'hpc6a' | 'hpc6id' | 'hpc7a' | 'hpc7g' | 'i2' | 'i3' | 'i3en' | 'i4g' | 'i4i' | 'i7i' | 'i7ie' | 'i8g' | 'im4gn' | 'inf1' | 'inf2' | 'is4gen' | 'm1' | 'm2' | 'm3' | 'm4' | 'm5' | 'm5a' | 'm5ad' | 'm5d' | 'm5dn' | 'm5n' | 'm5zn' | 'm6a' | 'm6g' | 'm6gd' | 'm6i' | 'm6id' | 'm6idn' | 'm6in' | 'm7a' | 'm7g' | 'm7gd' | 'm7i' | 'm7i-flex' | 'm8g' | 'm8gd' | 'n1' | 'n2' | 'n2d' | 'n4' | 'p3' | 'p3dn' | 'p4d' | 'p4de' | 'p5' | 'p5e' | 'p5en' | 'p6-b200' | 'r3' | 'r4' | 'r5' | 'r5a' | 'r5ad' | 'r5b' | 'r5d' | 'r5dn' | 'r5n' | 'r6a' | 'r6g' | 'r6gd' | 'r6i' | 'r6id' | 'r6idn' | 'r6in' | 'r7a' | 'r7g' | 'r7gd' | 'r7i' | 'r7iz' | 'r8g' | 'r8gd' | 't2' | 't2a' | 't2d' | 't3' | 't3a' | 't4g' | 'trn1' | 'trn1n' | 'u-3tb1' | 'u-6tb1' | 'u7i-12tb' | 'u7i-6tb' | 'u7i-8tb' | 'u7in-16tb' | 'u7in-24tb' | 'u7in-32tb' | 'vt1' | 'x1' | 'x1e' | 'x2gd' | 'x2idn' | 'x2iedn' | 'x2iezn' | 'x4' | 'x8g' | 'z1d' | 'z3'>;
650
+ /**
651
+ * Allowed values for `topology.kubernetes.io/region`.
652
+ */
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'>;
654
+ };
655
+ /**
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`).
657
+ */
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';
404
669
  };
405
670
  export type Invite = {
406
671
  /**
@@ -423,6 +688,10 @@ export type Invite = {
423
688
  * Generated unique invite code.
424
689
  */
425
690
  code?: string;
691
+ /**
692
+ * Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.
693
+ */
694
+ role?: 'Administrator' | 'User';
426
695
  };
427
696
  export type Invoice = {
428
697
  /**
@@ -543,6 +812,10 @@ export type MarketplaceListing = {
543
812
  };
544
813
  };
545
814
  export type OrganizationCreateInput = {
815
+ /**
816
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
817
+ */
818
+ type: 'business' | 'personal';
546
819
  /**
547
820
  * Email address used for billing as a string.
548
821
  */
@@ -564,6 +837,12 @@ export type OrganizationCreateInput = {
564
837
  */
565
838
  password: string;
566
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
+ };
567
846
  export type Organization = {
568
847
  /**
569
848
  * Unique identifier of the organization. UUID v4 string in canonical form
@@ -573,6 +852,10 @@ export type Organization = {
573
852
  * Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.
574
853
  */
575
854
  name?: string;
855
+ /**
856
+ * Type of the organization. `business` for legal entities, `personal` for individuals.
857
+ */
858
+ type: 'business' | 'personal';
576
859
  /**
577
860
  * Creation date of the organization. ISO 8601 date string in UTC timezone
578
861
  */
@@ -597,6 +880,14 @@ export type Organization = {
597
880
  * Available number of Pro clusters that can be created.
598
881
  */
599
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;
600
891
  /**
601
892
  * Maximum number of fleets that can be created per cluster.
602
893
  */
@@ -622,14 +913,6 @@ export type Organization = {
622
913
  */
623
914
  label: string;
624
915
  }>;
625
- /**
626
- * User-level maximum number of tokens Cloudfleet Copilot can process per hour.
627
- */
628
- copilot_user_hourly_tokens: number;
629
- /**
630
- * Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.
631
- */
632
- copilot_organization_hourly_tokens: number;
633
916
  /**
634
917
  * Organization-level maximum CFCR storage volume in GB. -1 means no limit.
635
918
  */
@@ -639,36 +922,52 @@ export type Organization = {
639
922
  * Status of the organization. Can be `active` or `closed`, or `suspended`.
640
923
  */
641
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';
642
929
  };
643
930
  export type PaymentMethod = {
644
931
  /**
645
- * 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.
646
933
  */
647
934
  id: string;
648
935
  /**
649
- * Whether organization payment method was set up and ready to use for payments.
650
- */
651
- setup: boolean;
652
- /**
653
- * 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.
654
937
  */
655
- type: 'card';
938
+ type: 'card' | 'sepa_debit' | 'bank_transfer';
656
939
  /**
657
- * 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.
658
941
  */
659
942
  last4: string;
660
943
  /**
661
- * 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.
662
945
  */
663
946
  exp_month: number;
664
947
  /**
665
- * 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.
666
949
  */
667
950
  exp_year: number;
668
951
  /**
669
- * 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).
670
969
  */
671
- brand: 'amex' | 'diners' | 'discover' | 'eftpos_au' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
970
+ is_default: boolean;
672
971
  };
673
972
  export type PlatformQuota = {
674
973
  /**
@@ -687,6 +986,14 @@ export type PlatformQuota = {
687
986
  * Available number of Pro clusters that can be created.
688
987
  */
689
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;
690
997
  /**
691
998
  * Maximum number of fleets that can be created per cluster.
692
999
  */
@@ -712,14 +1019,6 @@ export type PlatformQuota = {
712
1019
  */
713
1020
  label: string;
714
1021
  }>;
715
- /**
716
- * User-level maximum number of tokens Cloudfleet Copilot can process per hour.
717
- */
718
- copilot_user_hourly_tokens: number;
719
- /**
720
- * Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.
721
- */
722
- copilot_organization_hourly_tokens: number;
723
1022
  /**
724
1023
  * Organization-level maximum CFCR storage volume in GB. -1 means no limit.
725
1024
  */
@@ -873,101 +1172,268 @@ export type RegistryTag = {
873
1172
  */
874
1173
  uri: string;
875
1174
  };
876
- export type TokenCreateInput = {
1175
+ export type TicketAttachment = {
877
1176
  /**
878
- * Human readable access token name.
1177
+ * Unique identifier of the attachment (Mongo ObjectId).
879
1178
  */
880
- name: string;
1179
+ id: string;
881
1180
  /**
882
- * Role assumed by the token.
1181
+ * Original filename as uploaded.
883
1182
  */
884
- role: 'Administrator' | 'User';
885
- };
886
- export type Token = {
1183
+ filename: string;
887
1184
  /**
888
- * Human readable access token name.
1185
+ * MIME content type of the attachment.
889
1186
  */
890
- name: string;
1187
+ content_type: string;
891
1188
  /**
892
- * Role assumed by the token.
1189
+ * Size of the attachment in bytes.
893
1190
  */
894
- role: 'Administrator' | 'User';
1191
+ size: number;
1192
+ };
1193
+ export type TicketCreateInput = {
895
1194
  /**
896
- * Generated unique identifier of the access token.
1195
+ * Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.
897
1196
  */
898
- id?: string;
1197
+ category: 'billing' | 'technical' | 'general';
899
1198
  /**
900
- * Access token secret. Unmasked only during creation.
1199
+ * Initial message body in markdown. There is no separate subject — the first message body is the description.
901
1200
  */
902
- secret?: string;
1201
+ body: string;
903
1202
  /**
904
- * Creation date of the access token. ISO 8601 date string in UTC timezone
1203
+ * Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).
905
1204
  */
906
- date_created: string;
1205
+ properties?: {
1206
+ [key: string]: unknown;
1207
+ };
907
1208
  };
908
- export type TokenUpdateInput = {
1209
+ export type TicketMessageInput = {
909
1210
  /**
910
- * Human readable access token name.
1211
+ * Reply body in markdown.
911
1212
  */
912
- name?: string;
1213
+ body: string;
1214
+ };
1215
+ export type TicketMessage = {
913
1216
  /**
914
- * Role assumed by the token.
1217
+ * Unique identifier of the message (Mongo ObjectId).
915
1218
  */
916
- role?: 'Administrator' | 'User';
917
- };
918
- export type UsageFacets = {
1219
+ id: string;
919
1220
  /**
920
- * List of unique cluster IDs
1221
+ * Message type. Internal notes are filtered out of customer-facing responses.
921
1222
  */
922
- cluster_id?: Array<string>;
1223
+ type: 'customer_reply' | 'agent_reply';
923
1224
  /**
924
- * List of unique products
1225
+ * Message body in markdown.
925
1226
  */
926
- product?: Array<string>;
927
- };
928
- export type UsageResponse = {
1227
+ body: string;
929
1228
  /**
930
- * Usage data
1229
+ * First name of the author. Null when not provided.
931
1230
  */
932
- data: Array<{
933
- /**
934
- * Hour of the usage
935
- */
936
- hour: string;
937
- /**
938
- * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
939
- */
940
- cluster_id: string;
1231
+ author_first_name?: string;
1232
+ /**
1233
+ * Last name of the author. Null when not provided.
1234
+ */
1235
+ author_last_name?: string;
1236
+ /**
1237
+ * Attachments associated with this message.
1238
+ */
1239
+ attachments?: Array<{
941
1240
  /**
942
- * The product the usage is associated with
1241
+ * Unique identifier of the attachment (Mongo ObjectId).
943
1242
  */
944
- product: string;
1243
+ id: string;
945
1244
  /**
946
- * Consumption
1245
+ * Original filename as uploaded.
947
1246
  */
948
- value: number;
1247
+ filename: string;
949
1248
  /**
950
- * Price per unit
1249
+ * MIME content type of the attachment.
951
1250
  */
952
- price: number;
1251
+ content_type: string;
953
1252
  /**
954
- * Total cost
1253
+ * Size of the attachment in bytes.
955
1254
  */
956
- total: number;
1255
+ size: number;
957
1256
  }>;
958
1257
  /**
959
- * Facets for filtering
1258
+ * Creation date of the message. ISO 8601 UTC.
960
1259
  */
961
- facets: {
962
- /**
963
- * List of unique cluster IDs
964
- */
965
- cluster_id?: Array<string>;
966
- /**
967
- * List of unique products
968
- */
969
- product?: Array<string>;
970
- };
1260
+ date_created: string;
1261
+ };
1262
+ export type Ticket = {
1263
+ /**
1264
+ * Unique identifier of the ticket (Mongo ObjectId).
1265
+ */
1266
+ id: string;
1267
+ /**
1268
+ * Current state of the ticket.
1269
+ */
1270
+ status: 'waiting_on_us' | 'waiting_on_user' | 'closed';
1271
+ /**
1272
+ * Ticket category.
1273
+ */
1274
+ category: 'billing' | 'technical' | 'general';
1275
+ /**
1276
+ * First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
1277
+ */
1278
+ summary: string;
1279
+ /**
1280
+ * Closure timestamp. Null while the ticket is open.
1281
+ */
1282
+ closed_at?: string;
1283
+ /**
1284
+ * Creation date of the ticket. ISO 8601 UTC.
1285
+ */
1286
+ date_created: string;
1287
+ /**
1288
+ * Last update date of the ticket. ISO 8601 UTC.
1289
+ */
1290
+ date_updated: string;
1291
+ /**
1292
+ * Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.
1293
+ */
1294
+ messages?: Array<{
1295
+ /**
1296
+ * Unique identifier of the message (Mongo ObjectId).
1297
+ */
1298
+ id: string;
1299
+ /**
1300
+ * Message type. Internal notes are filtered out of customer-facing responses.
1301
+ */
1302
+ type: 'customer_reply' | 'agent_reply';
1303
+ /**
1304
+ * Message body in markdown.
1305
+ */
1306
+ body: string;
1307
+ /**
1308
+ * First name of the author. Null when not provided.
1309
+ */
1310
+ author_first_name?: string;
1311
+ /**
1312
+ * Last name of the author. Null when not provided.
1313
+ */
1314
+ author_last_name?: string;
1315
+ /**
1316
+ * Attachments associated with this message.
1317
+ */
1318
+ attachments?: Array<{
1319
+ /**
1320
+ * Unique identifier of the attachment (Mongo ObjectId).
1321
+ */
1322
+ id: string;
1323
+ /**
1324
+ * Original filename as uploaded.
1325
+ */
1326
+ filename: string;
1327
+ /**
1328
+ * MIME content type of the attachment.
1329
+ */
1330
+ content_type: string;
1331
+ /**
1332
+ * Size of the attachment in bytes.
1333
+ */
1334
+ size: number;
1335
+ }>;
1336
+ /**
1337
+ * Creation date of the message. ISO 8601 UTC.
1338
+ */
1339
+ date_created: string;
1340
+ }>;
1341
+ };
1342
+ export type TokenCreateInput = {
1343
+ /**
1344
+ * Human readable access token name.
1345
+ */
1346
+ name: string;
1347
+ /**
1348
+ * Role assumed by the token.
1349
+ */
1350
+ role: 'Administrator' | 'User';
1351
+ };
1352
+ export type Token = {
1353
+ /**
1354
+ * Human readable access token name.
1355
+ */
1356
+ name: string;
1357
+ /**
1358
+ * Role assumed by the token.
1359
+ */
1360
+ role: 'Administrator' | 'User';
1361
+ /**
1362
+ * Generated unique identifier of the access token.
1363
+ */
1364
+ id?: string;
1365
+ /**
1366
+ * Access token secret. Unmasked only during creation.
1367
+ */
1368
+ secret?: string;
1369
+ /**
1370
+ * Creation date of the access token. ISO 8601 date string in UTC timezone
1371
+ */
1372
+ date_created: string;
1373
+ };
1374
+ export type TokenUpdateInput = {
1375
+ /**
1376
+ * Human readable access token name.
1377
+ */
1378
+ name?: string;
1379
+ /**
1380
+ * Role assumed by the token.
1381
+ */
1382
+ role?: 'Administrator' | 'User';
1383
+ };
1384
+ export type UsageFacets = {
1385
+ /**
1386
+ * List of unique cluster IDs
1387
+ */
1388
+ cluster_id?: Array<string>;
1389
+ /**
1390
+ * List of unique products
1391
+ */
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'>;
1393
+ };
1394
+ export type UsageResponse = {
1395
+ /**
1396
+ * Usage data
1397
+ */
1398
+ data: Array<{
1399
+ /**
1400
+ * Hour of the usage
1401
+ */
1402
+ hour: string;
1403
+ /**
1404
+ * Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
1405
+ */
1406
+ cluster_id: string;
1407
+ /**
1408
+ * The product the usage is associated with
1409
+ */
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';
1411
+ /**
1412
+ * Consumption
1413
+ */
1414
+ value: number;
1415
+ /**
1416
+ * Price per unit
1417
+ */
1418
+ price: number;
1419
+ /**
1420
+ * Total cost
1421
+ */
1422
+ total: number;
1423
+ }>;
1424
+ /**
1425
+ * Facets for filtering
1426
+ */
1427
+ facets: {
1428
+ /**
1429
+ * List of unique cluster IDs
1430
+ */
1431
+ cluster_id?: Array<string>;
1432
+ /**
1433
+ * List of unique products
1434
+ */
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'>;
1436
+ };
971
1437
  };
972
1438
  export type Usage = {
973
1439
  /**
@@ -981,7 +1447,7 @@ export type Usage = {
981
1447
  /**
982
1448
  * The product the usage is associated with
983
1449
  */
984
- 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';
985
1451
  /**
986
1452
  * Consumption
987
1453
  */
@@ -1016,14 +1482,6 @@ export type UserCreateInput = {
1016
1482
  * User password. Must be at least 8 characters long.
1017
1483
  */
1018
1484
  password: string;
1019
- /**
1020
- * Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.
1021
- */
1022
- status?: 'active' | 'inactive';
1023
- /**
1024
- * User role. Can be 'Administrator', 'User'.
1025
- */
1026
- role?: 'Administrator' | 'User';
1027
1485
  };
1028
1486
  export type User = {
1029
1487
  /**
@@ -1077,448 +1535,735 @@ export type UserUpdateInput = {
1077
1535
  */
1078
1536
  status?: 'active' | 'inactive';
1079
1537
  };
1080
- export type GetUsageData = {
1538
+ export type ListUserOrganizationsData = {
1081
1539
  body?: never;
1082
- path?: never;
1083
- query?: {
1540
+ path: {
1084
1541
  /**
1085
- * 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.
1086
1543
  */
1087
- granularity?: 'hourly' | 'daily' | 'monthly';
1544
+ email: string;
1088
1545
  };
1089
- url: '/billing/usage';
1090
- };
1091
- export type GetUsageErrors = {
1092
- /**
1093
- * Not authenticated
1094
- */
1095
- 401: unknown;
1546
+ query?: never;
1547
+ url: '/users/organizations/{email}';
1096
1548
  };
1097
- export type GetUsageResponses = {
1549
+ export type ListUserOrganizationsResponses = {
1098
1550
  /**
1099
- * Usage data with facets for filtering
1551
+ * An array of organizations the user belongs to.
1100
1552
  */
1101
- 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
+ }>;
1102
1563
  };
1103
- export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
1104
- export type GetPaymentMethodData = {
1564
+ export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
1565
+ export type ListUsersData = {
1105
1566
  body?: never;
1106
1567
  path?: never;
1107
1568
  query?: never;
1108
- url: '/billing/payment-method';
1569
+ url: '/users';
1109
1570
  };
1110
- export type GetPaymentMethodErrors = {
1571
+ export type ListUsersErrors = {
1111
1572
  /**
1112
- * Returns 404 Not Found if the organization does not have a payment method set up.
1573
+ * Not authenticated
1113
1574
  */
1114
- 404: unknown;
1575
+ 401: unknown;
1115
1576
  };
1116
- export type GetPaymentMethodResponses = {
1577
+ export type ListUsersResponses = {
1117
1578
  /**
1118
- * Redacted payment card information.
1579
+ * An array of users
1119
1580
  */
1120
- 200: PaymentMethod;
1581
+ 200: Array<User>;
1121
1582
  };
1122
- export type GetPaymentMethodResponse = GetPaymentMethodResponses[keyof GetPaymentMethodResponses];
1123
- export type GetPaymentMethodSecretData = {
1124
- body?: never;
1583
+ export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
1584
+ export type CreateUserData = {
1585
+ body: UserCreateInput;
1125
1586
  path?: never;
1126
1587
  query?: never;
1127
- url: '/billing/payment-method';
1588
+ url: '/users';
1128
1589
  };
1129
- export type GetPaymentMethodSecretResponses = {
1590
+ export type CreateUserResponses = {
1130
1591
  /**
1131
- * 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.
1132
- *
1592
+ * Successfully created. Returns created user details.
1133
1593
  */
1134
- 200: {
1594
+ 200: User;
1595
+ };
1596
+ export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
1597
+ export type DeleteUserData = {
1598
+ body?: never;
1599
+ path: {
1135
1600
  /**
1136
- * The client secret.
1601
+ * Unique user identifier. UUID v4 string in canonical form
1137
1602
  */
1138
- id?: string;
1603
+ user_id: string;
1139
1604
  };
1140
- };
1141
- export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
1142
- export type ListInvoicesData = {
1143
- body?: never;
1144
- path?: never;
1145
1605
  query?: never;
1146
- url: '/billing/invoices';
1606
+ url: '/users/{user_id}';
1147
1607
  };
1148
- export type ListInvoicesErrors = {
1608
+ export type DeleteUserErrors = {
1609
+ /**
1610
+ * Deleting own user is not allowed. Delete your organization instead.
1611
+ */
1612
+ 400: unknown;
1149
1613
  /**
1150
1614
  * Not authenticated
1151
1615
  */
1152
1616
  401: unknown;
1153
1617
  };
1154
- export type ListInvoicesResponses = {
1618
+ export type DeleteUserResponses = {
1155
1619
  /**
1156
- * An array of usage records.
1620
+ * User profile information
1157
1621
  */
1158
- 200: Array<Invoice>;
1622
+ 200: User;
1159
1623
  };
1160
- export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
1161
- export type GetContactData = {
1624
+ export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
1625
+ export type GetUserData = {
1162
1626
  body?: never;
1163
- path?: never;
1627
+ path: {
1628
+ /**
1629
+ * Unique user identifier. UUID v4 string in canonical form
1630
+ */
1631
+ user_id: string;
1632
+ };
1164
1633
  query?: never;
1165
- url: '/billing/contact';
1634
+ url: '/users/{user_id}';
1166
1635
  };
1167
- export type GetContactResponses = {
1636
+ export type GetUserErrors = {
1168
1637
  /**
1169
- * Returns a single object containing organization contact and billing address details.
1638
+ * Not authenticated
1170
1639
  */
1171
- 200: BillingContact;
1640
+ 401: unknown;
1172
1641
  };
1173
- export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
1174
- export type UpdateContactData = {
1175
- body: BillingContact;
1176
- 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
+ };
1177
1657
  query?: never;
1178
- url: '/billing/contact';
1658
+ url: '/users/{user_id}';
1179
1659
  };
1180
- export type UpdateContactResponses = {
1660
+ export type UpdateUserResponses = {
1181
1661
  /**
1182
- * Successfully updated. Returns updated organization details.
1662
+ * Successfully created. Returns created user details.
1183
1663
  */
1184
- 200: BillingContact;
1664
+ 200: User;
1185
1665
  };
1186
- export type UpdateContactResponse = UpdateContactResponses[keyof UpdateContactResponses];
1187
- export type GetCreditsData = {
1666
+ export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
1667
+ export type ListTokensData = {
1188
1668
  body?: never;
1189
1669
  path?: never;
1190
1670
  query?: never;
1191
- url: '/billing/credits';
1671
+ url: '/tokens';
1192
1672
  };
1193
- export type GetCreditsErrors = {
1673
+ export type ListTokensErrors = {
1194
1674
  /**
1195
1675
  * Not authenticated
1196
1676
  */
1197
1677
  401: unknown;
1198
1678
  };
1199
- export type GetCreditsResponses = {
1679
+ export type ListTokensResponses = {
1200
1680
  /**
1201
- * An array of the applied promotional credits records.
1681
+ * Returns a list of access token details with masked secrets.
1202
1682
  */
1203
- 200: Array<BillingCredits>;
1683
+ 200: Array<Token>;
1204
1684
  };
1205
- export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
1206
- export type RedeemCreditsData = {
1207
- body: {
1208
- /**
1209
- * Promotional code to redeem
1210
- */
1211
- code?: string;
1212
- };
1685
+ export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1686
+ export type CreateTokenData = {
1687
+ body: TokenCreateInput;
1213
1688
  path?: never;
1214
1689
  query?: never;
1215
- url: '/billing/credits';
1690
+ url: '/tokens';
1216
1691
  };
1217
- export type RedeemCreditsErrors = {
1692
+ export type CreateTokenErrors = {
1218
1693
  /**
1219
1694
  * Not authenticated
1220
1695
  */
1221
1696
  401: unknown;
1222
1697
  };
1223
- export type RedeemCreditsResponses = {
1698
+ export type CreateTokenResponses = {
1224
1699
  /**
1225
- * 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.
1226
1719
  */
1227
1720
  200: unknown;
1228
1721
  };
1229
- export type ListChartsData = {
1722
+ export type GetTokenData = {
1230
1723
  body?: never;
1231
1724
  path: {
1232
1725
  /**
1233
- * Unique identifier of the cluster. UUID v4 string in canonical form
1726
+ * Generated unique identifier of the access token.
1234
1727
  */
1235
- cluster_id: string;
1728
+ token_id: string;
1236
1729
  };
1237
1730
  query?: never;
1238
- url: '/clusters/{cluster_id}/charts';
1731
+ url: '/tokens/{token_id}';
1239
1732
  };
1240
- export type ListChartsErrors = {
1733
+ export type GetTokenErrors = {
1241
1734
  /**
1242
1735
  * Not authenticated
1243
1736
  */
1244
1737
  401: unknown;
1245
1738
  };
1246
- export type ListChartsResponses = {
1739
+ export type GetTokenResponses = {
1247
1740
  /**
1248
- * An array of charts
1741
+ * Returns access token details with masked secret.
1249
1742
  */
1250
- 200: Array<Chart>;
1743
+ 200: Token;
1251
1744
  };
1252
- export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
1253
- export type CreateChartData = {
1254
- body: ChartCreateInput;
1745
+ export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
1746
+ export type UpdateTokenData = {
1747
+ body: TokenUpdateInput;
1255
1748
  path: {
1256
1749
  /**
1257
- * Unique identifier of the cluster. UUID v4 string in canonical form
1750
+ * Generated unique identifier of the access token.
1258
1751
  */
1259
- cluster_id: string;
1752
+ token_id: string;
1260
1753
  };
1261
1754
  query?: never;
1262
- url: '/clusters/{cluster_id}/charts';
1755
+ url: '/tokens/{token_id}';
1263
1756
  };
1264
- export type CreateChartResponses = {
1757
+ export type UpdateTokenErrors = {
1265
1758
  /**
1266
- * Successfully created. Returns created Chart ID.
1759
+ * Not authenticated
1267
1760
  */
1268
- 200: string;
1761
+ 401: unknown;
1269
1762
  };
1270
- export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
1271
- 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 = {
1272
1771
  body?: never;
1273
1772
  path: {
1274
1773
  /**
1275
- * Unique identifier of the cluster. UUID v4 string in canonical form
1276
- */
1277
- cluster_id: string;
1278
- /**
1279
- * Chart deployment name as the unique identifier of the chart.
1774
+ * Generated unique identifier of the access token.
1280
1775
  */
1281
- chart_name: string;
1776
+ token_id: string;
1282
1777
  };
1283
1778
  query?: never;
1284
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1779
+ url: '/tokens/{token_id}/secret';
1285
1780
  };
1286
- export type DeleteChartResponses = {
1781
+ export type RegenerateTokenErrors = {
1287
1782
  /**
1288
- * Successfully deleted.
1783
+ * Not authenticated
1289
1784
  */
1290
- 200: string;
1785
+ 401: unknown;
1291
1786
  };
1292
- export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
1293
- 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 = {
1294
1795
  body?: never;
1295
- path: {
1296
- /**
1297
- * Unique identifier of the cluster. UUID v4 string in canonical form
1298
- */
1299
- cluster_id: string;
1300
- /**
1301
- * Chart deployment name as the unique identifier of the chart.
1302
- */
1303
- chart_name: string;
1304
- };
1796
+ path?: never;
1305
1797
  query?: never;
1306
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1798
+ url: '/tickets';
1307
1799
  };
1308
- export type GetChartResponses = {
1800
+ export type ListTicketsResponses = {
1309
1801
  /**
1310
- * Returns a single object containing chart details.
1802
+ * An array of tickets for the organization, newest first.
1311
1803
  */
1312
- 200: Chart;
1804
+ 200: Array<Ticket>;
1313
1805
  };
1314
- export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
1315
- export type UpdateChartData = {
1316
- body: ChartUpdateInput;
1317
- path: {
1318
- /**
1319
- * Unique identifier of the cluster. UUID v4 string in canonical form
1320
- */
1321
- cluster_id: string;
1806
+ export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
1807
+ export type CreateTicketData = {
1808
+ body: {
1322
1809
  /**
1323
- * Chart deployment name as the unique identifier of the chart.
1810
+ * JSON-encoded TicketCreateInput.
1324
1811
  */
1325
- chart_name: string;
1812
+ payload?: string;
1813
+ attachments?: Array<Blob | File>;
1326
1814
  };
1815
+ path?: never;
1327
1816
  query?: never;
1328
- url: '/clusters/{cluster_id}/charts/{chart_name}';
1817
+ url: '/tickets';
1329
1818
  };
1330
- export type UpdateChartResponses = {
1819
+ export type CreateTicketResponses = {
1331
1820
  /**
1332
- * Successfully updated.
1821
+ * Ticket created.
1333
1822
  */
1334
- 200: string;
1823
+ 200: Ticket;
1335
1824
  };
1336
- export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
1337
- export type ListFleetsData = {
1825
+ export type CreateTicketResponse = CreateTicketResponses[keyof CreateTicketResponses];
1826
+ export type CloseTicketData = {
1338
1827
  body?: never;
1339
1828
  path: {
1340
- /**
1341
- * Unique identifier of the cluster. UUID v4 string in canonical form
1342
- */
1343
- cluster_id: string;
1829
+ ticket_id: string;
1344
1830
  };
1345
1831
  query?: never;
1346
- url: '/clusters/{cluster_id}/fleets';
1832
+ url: '/tickets/{ticket_id}';
1347
1833
  };
1348
- export type ListFleetsErrors = {
1834
+ export type CloseTicketResponses = {
1349
1835
  /**
1350
- * Not authenticated
1836
+ * Ticket closed.
1351
1837
  */
1352
- 401: unknown;
1838
+ 200: Ticket;
1353
1839
  };
1354
- export type ListFleetsResponses = {
1840
+ export type CloseTicketResponse = CloseTicketResponses[keyof CloseTicketResponses];
1841
+ export type GetTicketData = {
1842
+ body?: never;
1843
+ path: {
1844
+ ticket_id: string;
1845
+ };
1846
+ query?: never;
1847
+ url: '/tickets/{ticket_id}';
1848
+ };
1849
+ export type GetTicketResponses = {
1355
1850
  /**
1356
- * An array of fleets
1851
+ * Ticket with messages (internal notes excluded).
1357
1852
  */
1358
- 200: Array<Fleet>;
1853
+ 200: Ticket;
1359
1854
  };
1360
- export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
1361
- export type CreateFleetData = {
1362
- body: FleetCreateInput;
1363
- path: {
1855
+ export type GetTicketResponse = GetTicketResponses[keyof GetTicketResponses];
1856
+ export type ReplyTicketData = {
1857
+ body: {
1364
1858
  /**
1365
- * Unique identifier of the cluster. UUID v4 string in canonical form
1859
+ * JSON-encoded TicketMessageInput.
1366
1860
  */
1367
- cluster_id: string;
1861
+ payload?: string;
1862
+ attachments?: Array<Blob | File>;
1863
+ };
1864
+ path: {
1865
+ ticket_id: string;
1368
1866
  };
1369
1867
  query?: never;
1370
- url: '/clusters/{cluster_id}/fleets';
1868
+ url: '/tickets/{ticket_id}/messages';
1371
1869
  };
1372
- export type CreateFleetErrors = {
1870
+ export type ReplyTicketErrors = {
1373
1871
  /**
1374
- * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
1872
+ * Ticket is closed. Open a new ticket instead.
1375
1873
  */
1376
- 402: string;
1874
+ 409: unknown;
1377
1875
  };
1378
- export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
1379
- export type CreateFleetResponses = {
1876
+ export type ReplyTicketResponses = {
1380
1877
  /**
1381
- * Successfully created. Returns created Fleet ID.
1878
+ * Reply appended.
1382
1879
  */
1383
- 200: string;
1880
+ 200: TicketMessage;
1384
1881
  };
1385
- export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
1386
- export type DeleteFleetData = {
1882
+ export type ReplyTicketResponse = ReplyTicketResponses[keyof ReplyTicketResponses];
1883
+ export type GetTicketAttachmentData = {
1387
1884
  body?: never;
1388
1885
  path: {
1389
- /**
1390
- * Unique identifier of the cluster. UUID v4 string in canonical form
1391
- */
1392
- cluster_id: string;
1393
- /**
1394
- * Unique identifier of the fleet. UUID v4 string in canonical form
1395
- */
1396
- fleet_name: string;
1886
+ ticket_id: string;
1887
+ attachment_id: string;
1397
1888
  };
1398
1889
  query?: never;
1399
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1890
+ url: '/tickets/{ticket_id}/attachments/{attachment_id}';
1400
1891
  };
1401
- export type DeleteFleetResponses = {
1892
+ export type GetTicketAttachmentResponses = {
1402
1893
  /**
1403
- * Successfully deleted.
1894
+ * Attachment binary stream.
1404
1895
  */
1405
- 200: string;
1896
+ 200: Blob | File;
1406
1897
  };
1407
- export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
1408
- export type GetFleetData = {
1898
+ export type GetTicketAttachmentResponse = GetTicketAttachmentResponses[keyof GetTicketAttachmentResponses];
1899
+ export type ListRepositoriesData = {
1409
1900
  body?: never;
1410
- path: {
1411
- /**
1412
- * Unique identifier of the cluster. UUID v4 string in canonical form
1413
- */
1414
- cluster_id: string;
1415
- /**
1416
- * Unique identifier of the fleet. UUID v4 string in canonical form
1417
- */
1418
- fleet_name: string;
1419
- };
1901
+ path?: never;
1420
1902
  query?: never;
1421
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1903
+ url: '/registry';
1422
1904
  };
1423
- export type GetFleetResponses = {
1905
+ export type ListRepositoriesErrors = {
1424
1906
  /**
1425
- * Returns a single object containing fleet details.
1907
+ * Not authenticated
1426
1908
  */
1427
- 200: Fleet;
1909
+ 401: unknown;
1910
+ /**
1911
+ * Internal server error
1912
+ */
1913
+ 500: unknown;
1428
1914
  };
1429
- export type GetFleetResponse = GetFleetResponses[keyof GetFleetResponses];
1430
- export type UpdateFleetData = {
1431
- body: FleetUpdateInput;
1432
- path: {
1433
- /**
1434
- * Unique identifier of the cluster. UUID v4 string in canonical form
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 = {
1923
+ body?: never;
1924
+ path: {
1925
+ /**
1926
+ * Region where the repository is located
1435
1927
  */
1436
- cluster_id: string;
1928
+ region: string;
1437
1929
  /**
1438
- * Unique identifier of the fleet. UUID v4 string in canonical form
1930
+ * Name of the repository
1439
1931
  */
1440
- fleet_name: string;
1932
+ repository: string;
1441
1933
  };
1442
1934
  query?: never;
1443
- url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1935
+ url: '/registry/{region}/{repository}';
1444
1936
  };
1445
- export type UpdateFleetErrors = {
1937
+ export type ListTagsErrors = {
1446
1938
  /**
1447
- * Organization must have a valid payment method configured to access this endpoint.
1939
+ * Not authenticated
1448
1940
  */
1449
- 402: string;
1941
+ 401: unknown;
1942
+ /**
1943
+ * Repository not found
1944
+ */
1945
+ 404: unknown;
1946
+ /**
1947
+ * Internal server error
1948
+ */
1949
+ 500: unknown;
1450
1950
  };
1451
- export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
1452
- export type UpdateFleetResponses = {
1951
+ export type ListTagsResponses = {
1453
1952
  /**
1454
- * Successfully updated.
1953
+ * Repository with tags
1455
1954
  */
1456
- 200: string;
1955
+ 200: RegistryRepositoryWithTags;
1457
1956
  };
1458
- export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
1459
- export type QueryClusterData = {
1957
+ export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
1958
+ export type DeleteTagData = {
1460
1959
  body?: never;
1461
1960
  path: {
1462
1961
  /**
1463
- * Unique identifier of the cluster. UUID v4 string in canonical form
1962
+ * Region where the repository is located
1464
1963
  */
1465
- cluster_id: string;
1964
+ region: string;
1965
+ /**
1966
+ * Name of the repository
1967
+ */
1968
+ repository: string;
1969
+ /**
1970
+ * Name of the tag
1971
+ */
1972
+ tag: string;
1466
1973
  };
1467
1974
  query?: never;
1468
- url: '/clusters/{cluster_id}/query';
1975
+ url: '/registry/{region}/{repository}/{tag}';
1469
1976
  };
1470
- export type QueryClusterErrors = {
1977
+ export type DeleteTagErrors = {
1471
1978
  /**
1472
1979
  * Not authenticated
1473
1980
  */
1474
1981
  401: unknown;
1982
+ /**
1983
+ * Tag not found
1984
+ */
1985
+ 404: unknown;
1986
+ /**
1987
+ * Internal server error
1988
+ */
1989
+ 500: unknown;
1475
1990
  };
1476
- export type QueryClusterResponses = {
1991
+ export type DeleteTagResponses = {
1477
1992
  /**
1478
- * Kubernetes API response
1993
+ * Tag successfully deleted
1479
1994
  */
1480
1995
  200: unknown;
1481
1996
  };
1482
- export type ListClustersData = {
1997
+ export type GetTagData = {
1998
+ body?: never;
1999
+ path: {
2000
+ /**
2001
+ * Region where the repository is located
2002
+ */
2003
+ region: string;
2004
+ /**
2005
+ * Name of the repository
2006
+ */
2007
+ repository: string;
2008
+ /**
2009
+ * Name of the tag
2010
+ */
2011
+ tag: string;
2012
+ };
2013
+ query?: never;
2014
+ url: '/registry/{region}/{repository}/{tag}';
2015
+ };
2016
+ export type GetTagErrors = {
2017
+ /**
2018
+ * Not authenticated
2019
+ */
2020
+ 401: unknown;
2021
+ /**
2022
+ * Tag not found
2023
+ */
2024
+ 404: unknown;
2025
+ /**
2026
+ * Internal server error
2027
+ */
2028
+ 500: unknown;
2029
+ };
2030
+ export type GetTagResponses = {
2031
+ /**
2032
+ * Tag details
2033
+ */
2034
+ 200: RegistryTag;
2035
+ };
2036
+ export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
2037
+ export type GetOrganizationData = {
1483
2038
  body?: never;
1484
2039
  path?: never;
1485
2040
  query?: never;
1486
- url: '/clusters';
2041
+ url: '/organization';
1487
2042
  };
1488
- export type ListClustersErrors = {
2043
+ export type GetOrganizationResponses = {
2044
+ /**
2045
+ * Returns a single object containing organization details.
2046
+ */
2047
+ 200: Organization;
2048
+ };
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 = {
2057
+ /**
2058
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
2059
+ *
2060
+ */
2061
+ 200: OrganizationCreateOutput;
2062
+ };
2063
+ export type CreateOrganizationResponse = CreateOrganizationResponses[keyof CreateOrganizationResponses];
2064
+ export type GetBasicPriceConsentData = {
2065
+ body?: never;
2066
+ path?: never;
2067
+ query?: never;
2068
+ url: '/organization/basic-price-consent';
2069
+ };
2070
+ export type GetBasicPriceConsentResponses = {
2071
+ /**
2072
+ * Returns the current consent status.
2073
+ */
2074
+ 200: BasicPriceConsent;
2075
+ };
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 = {
2084
+ /**
2085
+ * The authenticated principal has no email address (e.g. a service account) and cannot record this decision.
2086
+ *
2087
+ */
2088
+ 401: unknown;
2089
+ /**
2090
+ * The consent flow does not apply to this organization.
2091
+ */
2092
+ 409: unknown;
2093
+ };
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;
2109
+ /**
2110
+ * Method-specific parameters
2111
+ */
2112
+ params?: {
2113
+ [key: string]: unknown;
2114
+ };
2115
+ };
2116
+ path?: never;
2117
+ query?: never;
2118
+ url: '/mcp';
2119
+ };
2120
+ export type PostMcpErrors = {
1489
2121
  /**
1490
2122
  * Not authenticated
1491
2123
  */
1492
2124
  401: unknown;
1493
2125
  };
1494
- export type ListClustersResponses = {
2126
+ export type PostMcpResponses = {
1495
2127
  /**
1496
- * An array of clusters
2128
+ * JSON-RPC 2.0 success or error response
1497
2129
  */
1498
- 200: Array<Cluster>;
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
+ };
2140
+ };
1499
2141
  };
1500
- export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
1501
- export type CreateClusterData = {
1502
- body: ClusterCreateInput;
2142
+ export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
2143
+ export type ListMarketplaceChartsData = {
2144
+ body?: never;
1503
2145
  path?: never;
1504
2146
  query?: never;
1505
- url: '/clusters';
2147
+ url: '/marketplace';
1506
2148
  };
1507
- export type CreateClusterErrors = {
2149
+ export type ListMarketplaceChartsErrors = {
1508
2150
  /**
1509
- * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
2151
+ * Not authenticated
1510
2152
  */
1511
- 402: string;
2153
+ 401: unknown;
1512
2154
  };
1513
- export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
1514
- export type CreateClusterResponses = {
2155
+ export type ListMarketplaceChartsResponses = {
1515
2156
  /**
1516
- * Successfully created. Returns created Cluster ID.
2157
+ * An array of chart listings in the marketplace.
1517
2158
  */
1518
- 200: string;
2159
+ 200: Array<MarketplaceListing>;
1519
2160
  };
1520
- export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
1521
- export type DeleteClusterData = {
2161
+ export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
2162
+ export type GetMarketplaceChartFilesData = {
2163
+ body?: never;
2164
+ path: {
2165
+ /**
2166
+ * Name of the chart in the marketplace.
2167
+ */
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;
2173
+ };
2174
+ query?: never;
2175
+ url: '/marketplace/{chart_name}/files/{version_channel}';
2176
+ };
2177
+ export type GetMarketplaceChartFilesErrors = {
2178
+ /**
2179
+ * Chart not found or no version matches the channel
2180
+ */
2181
+ 404: unknown;
2182
+ };
2183
+ export type GetMarketplaceChartFilesResponses = {
2184
+ /**
2185
+ * Returns an object containing the chart files for the latest matching version.
2186
+ */
2187
+ 200: MarketplaceListingFiles;
2188
+ };
2189
+ export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
2190
+ export type ListInvitesData = {
2191
+ body?: never;
2192
+ path?: never;
2193
+ query?: never;
2194
+ url: '/invites';
2195
+ };
2196
+ export type ListInvitesErrors = {
2197
+ /**
2198
+ * Not authenticated
2199
+ */
2200
+ 401: unknown;
2201
+ };
2202
+ export type ListInvitesResponses = {
2203
+ /**
2204
+ * An array of invites
2205
+ */
2206
+ 200: Array<Invite>;
2207
+ };
2208
+ export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
2209
+ export type CreateInviteData = {
2210
+ body: InviteCreateInput;
2211
+ path?: never;
2212
+ query?: never;
2213
+ url: '/invites';
2214
+ };
2215
+ export type CreateInviteResponses = {
2216
+ /**
2217
+ * Successfully created. Returns created invite details.
2218
+ */
2219
+ 200: Invite;
2220
+ };
2221
+ export type CreateInviteResponse = CreateInviteResponses[keyof CreateInviteResponses];
2222
+ export type GetInviteData = {
2223
+ body?: never;
2224
+ path: {
2225
+ /**
2226
+ * Invitation code
2227
+ */
2228
+ code: string;
2229
+ };
2230
+ query?: never;
2231
+ url: '/invites/{code}';
2232
+ };
2233
+ export type GetInviteResponses = {
2234
+ /**
2235
+ * The invitation code is valid. Returns the invited email and organization.
2236
+ */
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
+ };
2247
+ };
2248
+ export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
2249
+ export type DeleteInviteData = {
2250
+ body?: never;
2251
+ path: {
2252
+ /**
2253
+ * User email address
2254
+ */
2255
+ email: string;
2256
+ };
2257
+ query?: never;
2258
+ url: '/invites/{email}';
2259
+ };
2260
+ export type DeleteInviteResponses = {
2261
+ /**
2262
+ * Successfully deleted.
2263
+ */
2264
+ 200: unknown;
2265
+ };
2266
+ export type QueryClusterData = {
1522
2267
  body?: never;
1523
2268
  path: {
1524
2269
  /**
@@ -1527,16 +2272,21 @@ export type DeleteClusterData = {
1527
2272
  cluster_id: string;
1528
2273
  };
1529
2274
  query?: never;
1530
- url: '/clusters/{cluster_id}';
2275
+ url: '/clusters/{cluster_id}/query';
1531
2276
  };
1532
- export type DeleteClusterResponses = {
2277
+ export type QueryClusterErrors = {
1533
2278
  /**
1534
- * Successfully deleted.
2279
+ * Not authenticated
1535
2280
  */
1536
- 200: string;
2281
+ 401: unknown;
1537
2282
  };
1538
- export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
1539
- export type GetClusterData = {
2283
+ export type QueryClusterResponses = {
2284
+ /**
2285
+ * Kubernetes API response
2286
+ */
2287
+ 200: unknown;
2288
+ };
2289
+ export type ListFleetsData = {
1540
2290
  body?: never;
1541
2291
  path: {
1542
2292
  /**
@@ -1545,17 +2295,23 @@ export type GetClusterData = {
1545
2295
  cluster_id: string;
1546
2296
  };
1547
2297
  query?: never;
1548
- url: '/clusters/{cluster_id}';
2298
+ url: '/clusters/{cluster_id}/fleets';
1549
2299
  };
1550
- export type GetClusterResponses = {
2300
+ export type ListFleetsErrors = {
1551
2301
  /**
1552
- * Returns a single object containing cluster details.
2302
+ * Not authenticated
1553
2303
  */
1554
- 200: Cluster;
2304
+ 401: unknown;
1555
2305
  };
1556
- export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
1557
- export type UpdateClusterData = {
1558
- body: ClusterUpdateInput;
2306
+ export type ListFleetsResponses = {
2307
+ /**
2308
+ * An array of fleets
2309
+ */
2310
+ 200: Array<Fleet>;
2311
+ };
2312
+ export type ListFleetsResponse = ListFleetsResponses[keyof ListFleetsResponses];
2313
+ export type CreateFleetData = {
2314
+ body: FleetCreateInput;
1559
2315
  path: {
1560
2316
  /**
1561
2317
  * Unique identifier of the cluster. UUID v4 string in canonical form
@@ -1563,617 +2319,602 @@ export type UpdateClusterData = {
1563
2319
  cluster_id: string;
1564
2320
  };
1565
2321
  query?: never;
1566
- url: '/clusters/{cluster_id}';
2322
+ url: '/clusters/{cluster_id}/fleets';
1567
2323
  };
1568
- export type UpdateClusterResponses = {
2324
+ export type CreateFleetErrors = {
1569
2325
  /**
1570
- * Successfully updated. Returns updated cluster details.
2326
+ * Cluster quota exceeded. Maximum number of fleets per cluster allowed in this organization is reached.
1571
2327
  */
1572
- 200: Cluster;
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;
1573
2333
  };
1574
- export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
1575
- export type GetJoinInformationData = {
2334
+ export type CreateFleetError = CreateFleetErrors[keyof CreateFleetErrors];
2335
+ export type CreateFleetResponses = {
2336
+ /**
2337
+ * Successfully created. Returns created Fleet ID.
2338
+ */
2339
+ 200: string;
2340
+ };
2341
+ export type CreateFleetResponse = CreateFleetResponses[keyof CreateFleetResponses];
2342
+ export type DeleteFleetData = {
1576
2343
  body?: never;
1577
2344
  path: {
1578
2345
  /**
1579
2346
  * Unique identifier of the cluster. UUID v4 string in canonical form
1580
2347
  */
1581
2348
  cluster_id: string;
2349
+ /**
2350
+ * Unique identifier of the fleet. UUID v4 string in canonical form
2351
+ */
2352
+ fleet_name: string;
1582
2353
  };
1583
2354
  query?: never;
1584
- url: '/clusters/{cluster_id}/join_information';
2355
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1585
2356
  };
1586
- export type GetJoinInformationErrors = {
2357
+ export type DeleteFleetErrors = {
1587
2358
  /**
1588
- * Not authenticated
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.
1589
2360
  */
1590
- 401: unknown;
2361
+ 409: string;
1591
2362
  };
1592
- export type GetJoinInformationResponses = {
2363
+ export type DeleteFleetError = DeleteFleetErrors[keyof DeleteFleetErrors];
2364
+ export type DeleteFleetResponses = {
1593
2365
  /**
1594
- * An object of cluster join information
2366
+ * Successfully deleted.
1595
2367
  */
1596
- 200: ClusterJoinInformation;
2368
+ 200: string;
1597
2369
  };
1598
- export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
1599
- export type ListInvitesData = {
2370
+ export type DeleteFleetResponse = DeleteFleetResponses[keyof DeleteFleetResponses];
2371
+ export type GetFleetData = {
1600
2372
  body?: never;
1601
- path?: 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
+ };
1602
2383
  query?: never;
1603
- url: '/invites';
2384
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
1604
2385
  };
1605
- export type ListInvitesErrors = {
2386
+ export type GetFleetResponses = {
1606
2387
  /**
1607
- * Not authenticated
2388
+ * Returns a single object containing fleet details.
1608
2389
  */
1609
- 401: unknown;
2390
+ 200: Fleet;
1610
2391
  };
1611
- export type ListInvitesResponses = {
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
+ };
2405
+ query?: never;
2406
+ url: '/clusters/{cluster_id}/fleets/{fleet_name}';
2407
+ };
2408
+ export type UpdateFleetErrors = {
1612
2409
  /**
1613
- * An array of invites
2410
+ * Organization must have a valid payment method configured to access this endpoint.
1614
2411
  */
1615
- 200: Array<Invite>;
2412
+ 402: string;
2413
+ /**
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.
2415
+ */
2416
+ 409: string;
1616
2417
  };
1617
- export type ListInvitesResponse = ListInvitesResponses[keyof ListInvitesResponses];
1618
- export type CreateInviteData = {
1619
- body: {
2418
+ export type UpdateFleetError = UpdateFleetErrors[keyof UpdateFleetErrors];
2419
+ export type UpdateFleetResponses = {
2420
+ /**
2421
+ * Successfully updated.
2422
+ */
2423
+ 200: string;
2424
+ };
2425
+ export type UpdateFleetResponse = UpdateFleetResponses[keyof UpdateFleetResponses];
2426
+ export type ListChartsData = {
2427
+ body?: never;
2428
+ path: {
1620
2429
  /**
1621
- * User email address
2430
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1622
2431
  */
1623
- email?: string;
2432
+ cluster_id: string;
1624
2433
  };
1625
- path?: never;
1626
2434
  query?: never;
1627
- url: '/invites';
2435
+ url: '/clusters/{cluster_id}/charts';
1628
2436
  };
1629
- export type CreateInviteResponses = {
2437
+ export type ListChartsErrors = {
1630
2438
  /**
1631
- * Successfully created. Returns created invite details.
2439
+ * Not authenticated
1632
2440
  */
1633
- 200: Invite;
2441
+ 401: unknown;
1634
2442
  };
1635
- export type CreateInviteResponse = CreateInviteResponses[keyof CreateInviteResponses];
1636
- export type GetInviteData = {
1637
- body?: never;
2443
+ export type ListChartsResponses = {
2444
+ /**
2445
+ * An array of charts
2446
+ */
2447
+ 200: Array<Chart>;
2448
+ };
2449
+ export type ListChartsResponse = ListChartsResponses[keyof ListChartsResponses];
2450
+ export type CreateChartData = {
2451
+ body: ChartCreateInput;
1638
2452
  path: {
1639
2453
  /**
1640
- * Invitation code
2454
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1641
2455
  */
1642
- code: string;
2456
+ cluster_id: string;
1643
2457
  };
1644
2458
  query?: never;
1645
- url: '/invites/{code}';
2459
+ url: '/clusters/{cluster_id}/charts';
1646
2460
  };
1647
- export type GetInviteResponses = {
2461
+ export type CreateChartErrors = {
1648
2462
  /**
1649
- * Returns a single object containing invite details.
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.
1650
2464
  */
1651
- 200: Invite;
2465
+ 409: string;
1652
2466
  };
1653
- export type GetInviteResponse = GetInviteResponses[keyof GetInviteResponses];
1654
- export type DeleteInviteData = {
2467
+ export type CreateChartError = CreateChartErrors[keyof CreateChartErrors];
2468
+ export type CreateChartResponses = {
2469
+ /**
2470
+ * Successfully created. Returns created Chart ID.
2471
+ */
2472
+ 200: string;
2473
+ };
2474
+ export type CreateChartResponse = CreateChartResponses[keyof CreateChartResponses];
2475
+ export type DeleteChartData = {
1655
2476
  body?: never;
1656
2477
  path: {
1657
2478
  /**
1658
- * User email address
2479
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1659
2480
  */
1660
- email: string;
2481
+ cluster_id: string;
2482
+ /**
2483
+ * Chart deployment name as the unique identifier of the chart.
2484
+ */
2485
+ chart_name: string;
1661
2486
  };
1662
2487
  query?: never;
1663
- url: '/invites/{email}';
1664
- };
1665
- export type DeleteInviteResponses = {
1666
- /**
1667
- * Successfully deleted.
1668
- */
1669
- 200: unknown;
1670
- };
1671
- export type ListMarketplaceChartsData = {
1672
- body?: never;
1673
- path?: never;
1674
- query?: never;
1675
- url: '/marketplace';
2488
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1676
2489
  };
1677
- export type ListMarketplaceChartsErrors = {
2490
+ export type DeleteChartErrors = {
1678
2491
  /**
1679
- * Not authenticated
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.
1680
2493
  */
1681
- 401: unknown;
2494
+ 409: string;
1682
2495
  };
1683
- export type ListMarketplaceChartsResponses = {
2496
+ export type DeleteChartError = DeleteChartErrors[keyof DeleteChartErrors];
2497
+ export type DeleteChartResponses = {
1684
2498
  /**
1685
- * An array of chart listings in the marketplace.
2499
+ * Successfully deleted.
1686
2500
  */
1687
- 200: Array<MarketplaceListing>;
2501
+ 200: string;
1688
2502
  };
1689
- export type ListMarketplaceChartsResponse = ListMarketplaceChartsResponses[keyof ListMarketplaceChartsResponses];
1690
- export type GetMarketplaceChartFilesData = {
2503
+ export type DeleteChartResponse = DeleteChartResponses[keyof DeleteChartResponses];
2504
+ export type GetChartData = {
1691
2505
  body?: never;
1692
2506
  path: {
1693
2507
  /**
1694
- * Name of the chart in the marketplace.
2508
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1695
2509
  */
1696
- chart_name: string;
2510
+ cluster_id: string;
1697
2511
  /**
1698
- * 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).
2512
+ * Chart deployment name as the unique identifier of the chart.
1699
2513
  */
1700
- version_channel: string;
2514
+ chart_name: string;
1701
2515
  };
1702
2516
  query?: never;
1703
- url: '/marketplace/{chart_name}/files/{version_channel}';
1704
- };
1705
- export type GetMarketplaceChartFilesErrors = {
1706
- /**
1707
- * Chart not found or no version matches the channel
1708
- */
1709
- 404: unknown;
2517
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1710
2518
  };
1711
- export type GetMarketplaceChartFilesResponses = {
2519
+ export type GetChartResponses = {
1712
2520
  /**
1713
- * Returns an object containing the chart files for the latest matching version.
2521
+ * Returns a single object containing chart details.
1714
2522
  */
1715
- 200: MarketplaceListingFiles;
2523
+ 200: Chart;
1716
2524
  };
1717
- export type GetMarketplaceChartFilesResponse = GetMarketplaceChartFilesResponses[keyof GetMarketplaceChartFilesResponses];
1718
- export type PostMcpData = {
1719
- /**
1720
- * JSON-RPC 2.0 request payload
1721
- */
1722
- body: {
1723
- jsonrpc?: string;
1724
- method?: string;
1725
- id?: string | number;
2525
+ export type GetChartResponse = GetChartResponses[keyof GetChartResponses];
2526
+ export type UpdateChartData = {
2527
+ body: ChartUpdateInput;
2528
+ path: {
1726
2529
  /**
1727
- * Method-specific parameters
2530
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1728
2531
  */
1729
- params?: {
1730
- [key: string]: unknown;
1731
- };
2532
+ cluster_id: string;
2533
+ /**
2534
+ * Chart deployment name as the unique identifier of the chart.
2535
+ */
2536
+ chart_name: string;
1732
2537
  };
1733
- path?: never;
1734
2538
  query?: never;
1735
- url: '/mcp';
2539
+ url: '/clusters/{cluster_id}/charts/{chart_name}';
1736
2540
  };
1737
- export type PostMcpErrors = {
2541
+ export type UpdateChartErrors = {
1738
2542
  /**
1739
- * Not authenticated
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.
1740
2544
  */
1741
- 401: unknown;
2545
+ 409: string;
1742
2546
  };
1743
- export type PostMcpResponses = {
2547
+ export type UpdateChartError = UpdateChartErrors[keyof UpdateChartErrors];
2548
+ export type UpdateChartResponses = {
1744
2549
  /**
1745
- * JSON-RPC 2.0 success or error response
2550
+ * Successfully updated.
1746
2551
  */
1747
- 200: {
1748
- jsonrpc?: string;
1749
- id?: string | number;
1750
- result?: {
1751
- [key: string]: unknown;
1752
- };
1753
- error?: {
1754
- code?: number;
1755
- message?: string;
1756
- };
1757
- };
2552
+ 200: string;
1758
2553
  };
1759
- export type PostMcpResponse = PostMcpResponses[keyof PostMcpResponses];
1760
- export type GetOrganizationData = {
2554
+ export type UpdateChartResponse = UpdateChartResponses[keyof UpdateChartResponses];
2555
+ export type ListClustersData = {
1761
2556
  body?: never;
1762
2557
  path?: never;
1763
2558
  query?: never;
1764
- url: '/organization';
2559
+ url: '/clusters';
1765
2560
  };
1766
- export type GetOrganizationResponses = {
2561
+ export type ListClustersErrors = {
1767
2562
  /**
1768
- * Returns a single object containing organization details.
2563
+ * Not authenticated
1769
2564
  */
1770
- 200: Organization;
1771
- };
1772
- export type GetOrganizationResponse = GetOrganizationResponses[keyof GetOrganizationResponses];
1773
- export type CreateOrganizationData = {
1774
- body: OrganizationCreateInput;
1775
- path?: never;
1776
- query?: never;
1777
- url: '/organization';
2565
+ 401: unknown;
1778
2566
  };
1779
- export type CreateOrganizationResponses = {
2567
+ export type ListClustersResponses = {
1780
2568
  /**
1781
- * Successfully created a new organization.
2569
+ * An array of clusters
1782
2570
  */
1783
- 200: unknown;
2571
+ 200: Array<Cluster>;
1784
2572
  };
1785
- export type ListRepositoriesData = {
1786
- body?: never;
2573
+ export type ListClustersResponse = ListClustersResponses[keyof ListClustersResponses];
2574
+ export type CreateClusterData = {
2575
+ body: ClusterCreateInput;
1787
2576
  path?: never;
1788
2577
  query?: never;
1789
- url: '/registry';
2578
+ url: '/clusters';
1790
2579
  };
1791
- export type ListRepositoriesErrors = {
1792
- /**
1793
- * Not authenticated
1794
- */
1795
- 401: unknown;
2580
+ export type CreateClusterErrors = {
1796
2581
  /**
1797
- * Internal server error
2582
+ * Cluster quota exceeded. Maximum number of clusters allowed in this organization is reached.
1798
2583
  */
1799
- 500: unknown;
2584
+ 402: string;
1800
2585
  };
1801
- export type ListRepositoriesResponses = {
2586
+ export type CreateClusterError = CreateClusterErrors[keyof CreateClusterErrors];
2587
+ export type CreateClusterResponses = {
1802
2588
  /**
1803
- * List of repositories
2589
+ * Successfully created. Returns created Cluster ID.
1804
2590
  */
1805
- 200: Array<RegistryRepository>;
2591
+ 200: string;
1806
2592
  };
1807
- export type ListRepositoriesResponse = ListRepositoriesResponses[keyof ListRepositoriesResponses];
1808
- export type ListTagsData = {
2593
+ export type CreateClusterResponse = CreateClusterResponses[keyof CreateClusterResponses];
2594
+ export type DeleteClusterData = {
1809
2595
  body?: never;
1810
2596
  path: {
1811
2597
  /**
1812
- * Region where the repository is located
1813
- */
1814
- region: string;
1815
- /**
1816
- * Name of the repository
2598
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1817
2599
  */
1818
- repository: string;
2600
+ cluster_id: string;
1819
2601
  };
1820
2602
  query?: never;
1821
- url: '/registry/{region}/{repository}';
2603
+ url: '/clusters/{cluster_id}';
1822
2604
  };
1823
- export type ListTagsErrors = {
2605
+ export type DeleteClusterErrors = {
1824
2606
  /**
1825
- * Not authenticated
2607
+ * Cluster not found; it does not exist or has already been deleted.
1826
2608
  */
1827
- 401: unknown;
2609
+ 404: unknown;
1828
2610
  /**
1829
- * Repository not found
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.
1830
2612
  */
1831
- 404: unknown;
2613
+ 409: string;
1832
2614
  /**
1833
- * Internal server error
2615
+ * Transient failure tearing down the cluster; retry the request.
1834
2616
  */
1835
- 500: unknown;
2617
+ 503: unknown;
1836
2618
  };
1837
- export type ListTagsResponses = {
2619
+ export type DeleteClusterError = DeleteClusterErrors[keyof DeleteClusterErrors];
2620
+ export type DeleteClusterResponses = {
1838
2621
  /**
1839
- * Repository with tags
2622
+ * Successfully deleted. The cluster has been torn down.
1840
2623
  */
1841
- 200: RegistryRepositoryWithTags;
2624
+ 200: string;
1842
2625
  };
1843
- export type ListTagsResponse = ListTagsResponses[keyof ListTagsResponses];
1844
- export type DeleteTagData = {
2626
+ export type DeleteClusterResponse = DeleteClusterResponses[keyof DeleteClusterResponses];
2627
+ export type GetClusterData = {
1845
2628
  body?: never;
1846
2629
  path: {
1847
2630
  /**
1848
- * Region where the repository is located
1849
- */
1850
- region: string;
1851
- /**
1852
- * Name of the repository
1853
- */
1854
- repository: string;
1855
- /**
1856
- * Name of the tag
2631
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1857
2632
  */
1858
- tag: string;
2633
+ cluster_id: string;
1859
2634
  };
1860
2635
  query?: never;
1861
- url: '/registry/{region}/{repository}/{tag}';
2636
+ url: '/clusters/{cluster_id}';
1862
2637
  };
1863
- export type DeleteTagErrors = {
1864
- /**
1865
- * Not authenticated
1866
- */
1867
- 401: unknown;
2638
+ export type GetClusterResponses = {
1868
2639
  /**
1869
- * Tag not found
2640
+ * Returns a single object containing cluster details.
1870
2641
  */
1871
- 404: unknown;
2642
+ 200: Cluster;
2643
+ };
2644
+ export type GetClusterResponse = GetClusterResponses[keyof GetClusterResponses];
2645
+ export type UpdateClusterData = {
2646
+ body: ClusterUpdateInput;
2647
+ path: {
2648
+ /**
2649
+ * Unique identifier of the cluster. UUID v4 string in canonical form
2650
+ */
2651
+ cluster_id: string;
2652
+ };
2653
+ query?: never;
2654
+ url: '/clusters/{cluster_id}';
2655
+ };
2656
+ export type UpdateClusterErrors = {
1872
2657
  /**
1873
- * Internal server error
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.
1874
2659
  */
1875
- 500: unknown;
2660
+ 409: string;
1876
2661
  };
1877
- export type DeleteTagResponses = {
2662
+ export type UpdateClusterError = UpdateClusterErrors[keyof UpdateClusterErrors];
2663
+ export type UpdateClusterResponses = {
1878
2664
  /**
1879
- * Tag successfully deleted
2665
+ * Successfully updated. Returns updated cluster details.
1880
2666
  */
1881
- 200: unknown;
2667
+ 200: Cluster;
1882
2668
  };
1883
- export type GetTagData = {
1884
- body?: never;
1885
- path: {
1886
- /**
1887
- * Region where the repository is located
1888
- */
1889
- region: string;
1890
- /**
1891
- * Name of the repository
1892
- */
1893
- repository: string;
2669
+ export type UpdateClusterResponse = UpdateClusterResponses[keyof UpdateClusterResponses];
2670
+ export type GetJoinInformationData = {
2671
+ body?: never;
2672
+ path: {
1894
2673
  /**
1895
- * Name of the tag
2674
+ * Unique identifier of the cluster. UUID v4 string in canonical form
1896
2675
  */
1897
- tag: string;
2676
+ cluster_id: string;
1898
2677
  };
1899
2678
  query?: never;
1900
- url: '/registry/{region}/{repository}/{tag}';
2679
+ url: '/clusters/{cluster_id}/join_information';
1901
2680
  };
1902
- export type GetTagErrors = {
2681
+ export type GetJoinInformationErrors = {
1903
2682
  /**
1904
2683
  * Not authenticated
1905
2684
  */
1906
2685
  401: unknown;
1907
2686
  /**
1908
- * Tag not found
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.
1909
2688
  */
1910
- 404: unknown;
2689
+ 409: string;
1911
2690
  /**
1912
- * Internal server error
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.
1913
2692
  */
1914
- 500: unknown;
2693
+ 426: string;
1915
2694
  };
1916
- export type GetTagResponses = {
2695
+ export type GetJoinInformationError = GetJoinInformationErrors[keyof GetJoinInformationErrors];
2696
+ export type GetJoinInformationResponses = {
1917
2697
  /**
1918
- * Tag details
2698
+ * An object of cluster join information
1919
2699
  */
1920
- 200: RegistryTag;
2700
+ 200: ClusterJoinInformation;
1921
2701
  };
1922
- export type GetTagResponse = GetTagResponses[keyof GetTagResponses];
1923
- export type ListTokensData = {
2702
+ export type GetJoinInformationResponse = GetJoinInformationResponses[keyof GetJoinInformationResponses];
2703
+ export type GetUsageData = {
1924
2704
  body?: never;
1925
2705
  path?: never;
1926
- query?: never;
1927
- 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';
1928
2713
  };
1929
- export type ListTokensErrors = {
2714
+ export type GetUsageErrors = {
1930
2715
  /**
1931
2716
  * Not authenticated
1932
2717
  */
1933
2718
  401: unknown;
1934
2719
  };
1935
- export type ListTokensResponses = {
2720
+ export type GetUsageResponses = {
1936
2721
  /**
1937
- * Returns a list of access token details with masked secrets.
2722
+ * Usage data with facets for filtering
1938
2723
  */
1939
- 200: Array<Token>;
2724
+ 200: UsageResponse;
1940
2725
  };
1941
- export type ListTokensResponse = ListTokensResponses[keyof ListTokensResponses];
1942
- export type CreateTokenData = {
1943
- body: TokenCreateInput;
2726
+ export type GetUsageResponse = GetUsageResponses[keyof GetUsageResponses];
2727
+ export type GetPaymentMethodSecretData = {
2728
+ body?: never;
1944
2729
  path?: never;
1945
2730
  query?: never;
1946
- url: '/tokens';
1947
- };
1948
- export type CreateTokenErrors = {
1949
- /**
1950
- * Not authenticated
1951
- */
1952
- 401: unknown;
2731
+ url: '/billing/payment-method';
1953
2732
  };
1954
- export type CreateTokenResponses = {
2733
+ export type GetPaymentMethodSecretResponses = {
1955
2734
  /**
1956
- * Successfully created. Returns created token details with unmasked/raw secret.
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
+ *
1957
2737
  */
1958
- 200: Token;
1959
- };
1960
- export type CreateTokenResponse = CreateTokenResponses[keyof CreateTokenResponses];
1961
- export type DeleteTokenData = {
1962
- body?: never;
1963
- path: {
2738
+ 200: {
1964
2739
  /**
1965
- * Generated unique identifier of the access token.
2740
+ * The client secret.
1966
2741
  */
1967
- token_id: string;
2742
+ id?: string;
1968
2743
  };
1969
- query?: never;
1970
- url: '/tokens/{token_id}';
1971
- };
1972
- export type DeleteTokenResponses = {
1973
- /**
1974
- * Successfully deleted.
1975
- */
1976
- 200: unknown;
1977
2744
  };
1978
- export type GetTokenData = {
2745
+ export type GetPaymentMethodSecretResponse = GetPaymentMethodSecretResponses[keyof GetPaymentMethodSecretResponses];
2746
+ export type ListPaymentMethodsData = {
1979
2747
  body?: never;
1980
- path: {
1981
- /**
1982
- * Generated unique identifier of the access token.
1983
- */
1984
- token_id: string;
1985
- };
2748
+ path?: never;
1986
2749
  query?: never;
1987
- url: '/tokens/{token_id}';
2750
+ url: '/billing/payment-methods';
1988
2751
  };
1989
- export type GetTokenErrors = {
2752
+ export type ListPaymentMethodsErrors = {
1990
2753
  /**
1991
2754
  * Not authenticated
1992
2755
  */
1993
2756
  401: unknown;
1994
2757
  };
1995
- export type GetTokenResponses = {
2758
+ export type ListPaymentMethodsResponses = {
1996
2759
  /**
1997
- * Returns access token details with masked secret.
2760
+ * An array of payment methods.
1998
2761
  */
1999
- 200: Token;
2762
+ 200: Array<PaymentMethod>;
2000
2763
  };
2001
- export type GetTokenResponse = GetTokenResponses[keyof GetTokenResponses];
2002
- export type UpdateTokenData = {
2003
- body: TokenUpdateInput;
2764
+ export type ListPaymentMethodsResponse = ListPaymentMethodsResponses[keyof ListPaymentMethodsResponses];
2765
+ export type SetDefaultPaymentMethodData = {
2766
+ body?: never;
2004
2767
  path: {
2005
2768
  /**
2006
- * Generated unique identifier of the access token.
2769
+ * Stripe payment method identifier.
2007
2770
  */
2008
- token_id: string;
2771
+ paymentMethodId: string;
2009
2772
  };
2010
2773
  query?: never;
2011
- url: '/tokens/{token_id}';
2774
+ url: '/billing/payment-methods/{paymentMethodId}/default';
2012
2775
  };
2013
- export type UpdateTokenErrors = {
2776
+ export type SetDefaultPaymentMethodErrors = {
2777
+ /**
2778
+ * The bank transfer payment method cannot be set as the default.
2779
+ */
2780
+ 400: unknown;
2014
2781
  /**
2015
2782
  * Not authenticated
2016
2783
  */
2017
2784
  401: unknown;
2785
+ /**
2786
+ * Payment method not found.
2787
+ */
2788
+ 404: unknown;
2018
2789
  };
2019
- export type UpdateTokenResponses = {
2790
+ export type SetDefaultPaymentMethodResponses = {
2020
2791
  /**
2021
- * Successfully updated. Returns updated token details with masked secret.
2792
+ * Default payment method updated.
2022
2793
  */
2023
- 200: Token;
2794
+ 204: void;
2024
2795
  };
2025
- export type UpdateTokenResponse = UpdateTokenResponses[keyof UpdateTokenResponses];
2026
- export type RegenerateTokenData = {
2796
+ export type SetDefaultPaymentMethodResponse = SetDefaultPaymentMethodResponses[keyof SetDefaultPaymentMethodResponses];
2797
+ export type DeletePaymentMethodData = {
2027
2798
  body?: never;
2028
2799
  path: {
2029
2800
  /**
2030
- * Generated unique identifier of the access token.
2801
+ * Stripe payment method identifier.
2031
2802
  */
2032
- token_id: string;
2803
+ paymentMethodId: string;
2033
2804
  };
2034
2805
  query?: never;
2035
- url: '/tokens/{token_id}/secret';
2806
+ url: '/billing/payment-methods/{paymentMethodId}';
2036
2807
  };
2037
- export type RegenerateTokenErrors = {
2808
+ export type DeletePaymentMethodErrors = {
2809
+ /**
2810
+ * The bank transfer payment method cannot be removed.
2811
+ */
2812
+ 400: unknown;
2038
2813
  /**
2039
2814
  * Not authenticated
2040
2815
  */
2041
2816
  401: unknown;
2042
- };
2043
- export type RegenerateTokenResponses = {
2044
2817
  /**
2045
- * Successfully updated. Returns updated token details with unmasked / raw secret.
2818
+ * Payment method not found.
2046
2819
  */
2047
- 200: Token;
2048
- };
2049
- export type RegenerateTokenResponse = RegenerateTokenResponses[keyof RegenerateTokenResponses];
2050
- export type ListUserOrganizationsData = {
2051
- body?: never;
2052
- path: {
2053
- /**
2054
- * User email address.
2055
- */
2056
- email: string;
2057
- };
2058
- query?: never;
2059
- url: '/users/organizations/{email}';
2820
+ 404: unknown;
2821
+ /**
2822
+ * Cannot delete the only remaining payment method.
2823
+ */
2824
+ 409: unknown;
2060
2825
  };
2061
- export type ListUserOrganizationsResponses = {
2826
+ export type DeletePaymentMethodResponses = {
2062
2827
  /**
2063
- * An array of organizations the user belongs to.
2828
+ * Payment method deleted.
2064
2829
  */
2065
- 200: Array<{
2066
- /**
2067
- * Unique identifier of the organization. UUID v4 string in canonical form
2068
- */
2069
- realm?: string;
2070
- /**
2071
- * Human-readable name of the organization
2072
- */
2073
- displayName?: string;
2074
- }>;
2830
+ 204: void;
2075
2831
  };
2076
- export type ListUserOrganizationsResponse = ListUserOrganizationsResponses[keyof ListUserOrganizationsResponses];
2077
- export type ListUsersData = {
2832
+ export type DeletePaymentMethodResponse = DeletePaymentMethodResponses[keyof DeletePaymentMethodResponses];
2833
+ export type ListInvoicesData = {
2078
2834
  body?: never;
2079
2835
  path?: never;
2080
2836
  query?: never;
2081
- url: '/users';
2837
+ url: '/billing/invoices';
2082
2838
  };
2083
- export type ListUsersErrors = {
2839
+ export type ListInvoicesErrors = {
2084
2840
  /**
2085
2841
  * Not authenticated
2086
2842
  */
2087
2843
  401: unknown;
2088
2844
  };
2089
- export type ListUsersResponses = {
2845
+ export type ListInvoicesResponses = {
2090
2846
  /**
2091
- * An array of users
2847
+ * An array of usage records.
2092
2848
  */
2093
- 200: Array<User>;
2849
+ 200: Array<Invoice>;
2094
2850
  };
2095
- export type ListUsersResponse = ListUsersResponses[keyof ListUsersResponses];
2096
- export type CreateUserData = {
2097
- body: UserCreateInput;
2851
+ export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
2852
+ export type GetContactData = {
2853
+ body?: never;
2098
2854
  path?: never;
2099
2855
  query?: never;
2100
- url: '/users';
2856
+ url: '/billing/contact';
2101
2857
  };
2102
- export type CreateUserResponses = {
2858
+ export type GetContactResponses = {
2103
2859
  /**
2104
- * Successfully created. Returns created user details.
2860
+ * Returns a single object containing organization contact and billing address details.
2105
2861
  */
2106
- 200: User;
2862
+ 200: BillingContact;
2107
2863
  };
2108
- export type CreateUserResponse = CreateUserResponses[keyof CreateUserResponses];
2109
- export type DeleteUserData = {
2110
- body?: never;
2111
- path: {
2112
- /**
2113
- * Unique user identifier. UUID v4 string in canonical form
2114
- */
2115
- user_id: string;
2116
- };
2864
+ export type GetContactResponse = GetContactResponses[keyof GetContactResponses];
2865
+ export type UpdateContactData = {
2866
+ body: BillingContact;
2867
+ path?: never;
2117
2868
  query?: never;
2118
- url: '/users/{user_id}';
2869
+ url: '/billing/contact';
2119
2870
  };
2120
- export type DeleteUserErrors = {
2871
+ export type UpdateContactResponses = {
2121
2872
  /**
2122
- * Deleting own user is not allowed. Delete your organization instead.
2873
+ * Successfully updated. Returns updated organization details.
2123
2874
  */
2124
- 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 = {
2125
2885
  /**
2126
2886
  * Not authenticated
2127
2887
  */
2128
2888
  401: unknown;
2129
2889
  };
2130
- export type DeleteUserResponses = {
2890
+ export type GetCreditsResponses = {
2131
2891
  /**
2132
- * User profile information
2892
+ * An array of the applied promotional credits records.
2133
2893
  */
2134
- 200: User;
2894
+ 200: Array<BillingCredits>;
2135
2895
  };
2136
- export type DeleteUserResponse = DeleteUserResponses[keyof DeleteUserResponses];
2137
- export type GetUserData = {
2138
- body?: never;
2139
- path: {
2896
+ export type GetCreditsResponse = GetCreditsResponses[keyof GetCreditsResponses];
2897
+ export type RedeemCreditsData = {
2898
+ body: {
2140
2899
  /**
2141
- * Unique user identifier. UUID v4 string in canonical form
2900
+ * Promotional code to redeem
2142
2901
  */
2143
- user_id: string;
2902
+ code?: string;
2144
2903
  };
2904
+ path?: never;
2145
2905
  query?: never;
2146
- url: '/users/{user_id}';
2906
+ url: '/billing/credits';
2147
2907
  };
2148
- export type GetUserErrors = {
2908
+ export type RedeemCreditsErrors = {
2149
2909
  /**
2150
2910
  * Not authenticated
2151
2911
  */
2152
2912
  401: unknown;
2153
2913
  };
2154
- export type GetUserResponses = {
2155
- /**
2156
- * User profile information
2157
- */
2158
- 200: User;
2159
- };
2160
- export type GetUserResponse = GetUserResponses[keyof GetUserResponses];
2161
- export type UpdateUserData = {
2162
- body: UserUpdateInput;
2163
- path: {
2164
- /**
2165
- * Unique user identifier. UUID v4 string in canonical form
2166
- */
2167
- user_id: string;
2168
- };
2169
- query?: never;
2170
- url: '/users/{user_id}';
2171
- };
2172
- export type UpdateUserResponses = {
2914
+ export type RedeemCreditsResponses = {
2173
2915
  /**
2174
- * Successfully created. Returns created user details.
2916
+ * Successfully created a new organization.
2175
2917
  */
2176
- 200: User;
2918
+ 200: unknown;
2177
2919
  };
2178
- export type UpdateUserResponse = UpdateUserResponses[keyof UpdateUserResponses];
2179
2920
  //# sourceMappingURL=types.gen.d.ts.map