@cloudfleet/sdk 0.0.1-84adc67 → 0.0.1-8608ef2
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.
- package/README.md +26 -2
- package/dist/@tanstack/react-query.gen.d.ts +167 -290
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +30 -1
- package/dist/@tanstack/react-query.gen.js.map +1 -1
- package/dist/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +1 -4
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/types.gen.d.ts +1 -1
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +2 -2
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +3 -3
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/core/params.gen.js +4 -4
- package/dist/core/params.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +400 -228
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +556 -285
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +19 -2
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +20 -1
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +264 -156
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +435 -262
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +230 -90
- package/dist/zod.gen.js.map +1 -1
- package/package.json +10 -13
package/dist/types.gen.d.ts
CHANGED
|
@@ -163,6 +163,9 @@ export type ChartUpdateInput = {
|
|
|
163
163
|
*/
|
|
164
164
|
version_channel: string;
|
|
165
165
|
};
|
|
166
|
+
/**
|
|
167
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
168
|
+
*/
|
|
166
169
|
export type ClusterCreateInput = {
|
|
167
170
|
/**
|
|
168
171
|
* Name of the cluster.
|
|
@@ -171,11 +174,7 @@ export type ClusterCreateInput = {
|
|
|
171
174
|
/**
|
|
172
175
|
* Tier of the cluster.
|
|
173
176
|
*/
|
|
174
|
-
tier
|
|
175
|
-
/**
|
|
176
|
-
* Cloudfleet control plane region. This field can not be updated after creation.
|
|
177
|
-
*/
|
|
178
|
-
region: string;
|
|
177
|
+
tier?: 'basic' | 'pro' | 'enterprise';
|
|
179
178
|
/**
|
|
180
179
|
* Version of the kubernetes cluster.
|
|
181
180
|
*/
|
|
@@ -191,16 +190,20 @@ export type ClusterCreateInput = {
|
|
|
191
190
|
/**
|
|
192
191
|
* GPU sharing strategy.
|
|
193
192
|
*/
|
|
194
|
-
gpu_sharing_strategy
|
|
193
|
+
gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
|
|
195
194
|
/**
|
|
196
195
|
* Maximum number of pods that may share a single GPU.
|
|
197
196
|
*/
|
|
198
|
-
gpu_max_shared_clients_per_gpu
|
|
197
|
+
gpu_max_shared_clients_per_gpu?: number;
|
|
199
198
|
/**
|
|
200
199
|
* Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
|
|
201
200
|
*/
|
|
202
201
|
cilium_socket_lb_host_namespace_only?: boolean;
|
|
203
202
|
};
|
|
203
|
+
/**
|
|
204
|
+
* Cloudfleet control plane region. This field can not be updated after creation.
|
|
205
|
+
*/
|
|
206
|
+
region: string;
|
|
204
207
|
/**
|
|
205
208
|
* Cluster networking configuration. Immutable after creation.
|
|
206
209
|
*/
|
|
@@ -213,10 +216,6 @@ export type ClusterCreateInput = {
|
|
|
213
216
|
* CIDR block for service IPs.
|
|
214
217
|
*/
|
|
215
218
|
service_cidr?: string;
|
|
216
|
-
/**
|
|
217
|
-
* CoreDNS service IP.
|
|
218
|
-
*/
|
|
219
|
-
cluster_dns?: string;
|
|
220
219
|
/**
|
|
221
220
|
* Enable IPv4+IPv6 dual-stack networking.
|
|
222
221
|
*/
|
|
@@ -252,6 +251,10 @@ export type ClusterJoinInformation = {
|
|
|
252
251
|
* Authentication key for the cluster.
|
|
253
252
|
*/
|
|
254
253
|
auth_key: string;
|
|
254
|
+
/**
|
|
255
|
+
* 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.
|
|
256
|
+
*/
|
|
257
|
+
login_server: string;
|
|
255
258
|
/**
|
|
256
259
|
* Bootstrap token for the cluster.
|
|
257
260
|
*/
|
|
@@ -295,6 +298,9 @@ export type ClusterJoinInformation = {
|
|
|
295
298
|
gcp_workload_identity_provider: string;
|
|
296
299
|
};
|
|
297
300
|
};
|
|
301
|
+
/**
|
|
302
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
303
|
+
*/
|
|
298
304
|
export type Cluster = {
|
|
299
305
|
/**
|
|
300
306
|
* Name of the cluster.
|
|
@@ -303,7 +309,32 @@ export type Cluster = {
|
|
|
303
309
|
/**
|
|
304
310
|
* Tier of the cluster.
|
|
305
311
|
*/
|
|
306
|
-
tier: 'basic' | 'pro';
|
|
312
|
+
tier: 'basic' | 'pro' | 'enterprise';
|
|
313
|
+
/**
|
|
314
|
+
* Version of the kubernetes cluster.
|
|
315
|
+
*/
|
|
316
|
+
version_channel: string;
|
|
317
|
+
/**
|
|
318
|
+
* Release channel for the cluster's control plane.
|
|
319
|
+
*/
|
|
320
|
+
release_channel: 'rapid' | 'stable' | 'extended';
|
|
321
|
+
/**
|
|
322
|
+
* Cluster feature toggles.
|
|
323
|
+
*/
|
|
324
|
+
features: {
|
|
325
|
+
/**
|
|
326
|
+
* GPU sharing strategy.
|
|
327
|
+
*/
|
|
328
|
+
gpu_sharing_strategy: 'none' | 'mps' | 'time_slicing';
|
|
329
|
+
/**
|
|
330
|
+
* Maximum number of pods that may share a single GPU.
|
|
331
|
+
*/
|
|
332
|
+
gpu_max_shared_clients_per_gpu: number;
|
|
333
|
+
/**
|
|
334
|
+
* Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
|
|
335
|
+
*/
|
|
336
|
+
cilium_socket_lb_host_namespace_only: boolean;
|
|
337
|
+
};
|
|
307
338
|
/**
|
|
308
339
|
* Cloudfleet control plane region. This field can not be updated after creation.
|
|
309
340
|
*/
|
|
@@ -311,52 +342,27 @@ export type Cluster = {
|
|
|
311
342
|
/**
|
|
312
343
|
* Cluster networking configuration. Immutable after creation.
|
|
313
344
|
*/
|
|
314
|
-
networking
|
|
345
|
+
networking: {
|
|
315
346
|
/**
|
|
316
347
|
* CIDR block for pod IPs.
|
|
317
348
|
*/
|
|
318
|
-
pod_cidr
|
|
349
|
+
pod_cidr: string;
|
|
319
350
|
/**
|
|
320
351
|
* CIDR block for service IPs.
|
|
321
352
|
*/
|
|
322
|
-
service_cidr
|
|
323
|
-
/**
|
|
324
|
-
* CoreDNS service IP.
|
|
325
|
-
*/
|
|
326
|
-
cluster_dns?: string;
|
|
353
|
+
service_cidr: string;
|
|
327
354
|
/**
|
|
328
355
|
* Enable IPv4+IPv6 dual-stack networking.
|
|
329
356
|
*/
|
|
330
|
-
dual_stack
|
|
357
|
+
dual_stack: boolean;
|
|
331
358
|
/**
|
|
332
359
|
* IPv6 pod CIDR. Requires dual_stack.
|
|
333
360
|
*/
|
|
334
|
-
pod_cidr_v6
|
|
361
|
+
pod_cidr_v6: string;
|
|
335
362
|
/**
|
|
336
363
|
* IPv6 service CIDR. Requires dual_stack.
|
|
337
364
|
*/
|
|
338
|
-
service_cidr_v6
|
|
339
|
-
};
|
|
340
|
-
/**
|
|
341
|
-
* Release channel for the cluster's control plane.
|
|
342
|
-
*/
|
|
343
|
-
release_channel?: 'rapid' | 'stable' | 'extended';
|
|
344
|
-
/**
|
|
345
|
-
* Cluster feature toggles.
|
|
346
|
-
*/
|
|
347
|
-
features?: {
|
|
348
|
-
/**
|
|
349
|
-
* GPU sharing strategy.
|
|
350
|
-
*/
|
|
351
|
-
gpu_sharing_strategy: 'none' | 'mps' | 'time_slicing';
|
|
352
|
-
/**
|
|
353
|
-
* Maximum number of pods that may share a single GPU.
|
|
354
|
-
*/
|
|
355
|
-
gpu_max_shared_clients_per_gpu: number;
|
|
356
|
-
/**
|
|
357
|
-
* Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
|
|
358
|
-
*/
|
|
359
|
-
cilium_socket_lb_host_namespace_only?: boolean;
|
|
365
|
+
service_cidr_v6: string;
|
|
360
366
|
};
|
|
361
367
|
/**
|
|
362
368
|
* Unique identifier of the kubernetes cluster. UUID v4 string in canonical form
|
|
@@ -387,21 +393,20 @@ export type Cluster = {
|
|
|
387
393
|
/**
|
|
388
394
|
* Indicates if the cluster is ready to be used.
|
|
389
395
|
*/
|
|
390
|
-
ready
|
|
391
|
-
/**
|
|
392
|
-
* Version of the kubernetes cluster.
|
|
393
|
-
*/
|
|
394
|
-
version_channel?: string;
|
|
396
|
+
ready: boolean;
|
|
395
397
|
};
|
|
398
|
+
/**
|
|
399
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
400
|
+
*/
|
|
396
401
|
export type ClusterUpdateInput = {
|
|
397
402
|
/**
|
|
398
403
|
* Name of the cluster.
|
|
399
404
|
*/
|
|
400
|
-
name
|
|
405
|
+
name: string;
|
|
401
406
|
/**
|
|
402
407
|
* Tier of the cluster.
|
|
403
408
|
*/
|
|
404
|
-
tier
|
|
409
|
+
tier?: 'basic' | 'pro' | 'enterprise';
|
|
405
410
|
/**
|
|
406
411
|
* Version of the kubernetes cluster.
|
|
407
412
|
*/
|
|
@@ -417,17 +422,20 @@ export type ClusterUpdateInput = {
|
|
|
417
422
|
/**
|
|
418
423
|
* GPU sharing strategy.
|
|
419
424
|
*/
|
|
420
|
-
gpu_sharing_strategy
|
|
425
|
+
gpu_sharing_strategy?: 'none' | 'mps' | 'time_slicing';
|
|
421
426
|
/**
|
|
422
427
|
* Maximum number of pods that may share a single GPU.
|
|
423
428
|
*/
|
|
424
|
-
gpu_max_shared_clients_per_gpu
|
|
429
|
+
gpu_max_shared_clients_per_gpu?: number;
|
|
425
430
|
/**
|
|
426
431
|
* Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.
|
|
427
432
|
*/
|
|
428
433
|
cilium_socket_lb_host_namespace_only?: boolean;
|
|
429
434
|
};
|
|
430
435
|
};
|
|
436
|
+
/**
|
|
437
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
438
|
+
*/
|
|
431
439
|
export type FleetCreateInput = {
|
|
432
440
|
/**
|
|
433
441
|
* Limits define a set of bounds for provisioning capacity.
|
|
@@ -448,7 +456,7 @@ export type FleetCreateInput = {
|
|
|
448
456
|
hetzner?: {
|
|
449
457
|
enabled: boolean;
|
|
450
458
|
/**
|
|
451
|
-
* Hetzner Cloud API token with read
|
|
459
|
+
* 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.
|
|
452
460
|
*/
|
|
453
461
|
apiKey?: string;
|
|
454
462
|
};
|
|
@@ -460,7 +468,7 @@ export type FleetCreateInput = {
|
|
|
460
468
|
controllerRoleArn?: string;
|
|
461
469
|
};
|
|
462
470
|
/**
|
|
463
|
-
* Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
|
|
471
|
+
* 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.
|
|
464
472
|
*/
|
|
465
473
|
constraints?: {
|
|
466
474
|
/**
|
|
@@ -481,14 +489,34 @@ export type FleetCreateInput = {
|
|
|
481
489
|
'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'>;
|
|
482
490
|
};
|
|
483
491
|
/**
|
|
484
|
-
* Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
|
|
492
|
+
* 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`).
|
|
485
493
|
*/
|
|
486
494
|
scalingProfile?: 'aggressive' | 'conservative';
|
|
495
|
+
/**
|
|
496
|
+
* Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.
|
|
497
|
+
*/
|
|
498
|
+
taints?: Array<{
|
|
499
|
+
/**
|
|
500
|
+
* Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.
|
|
501
|
+
*/
|
|
502
|
+
key: string;
|
|
503
|
+
/**
|
|
504
|
+
* Taint value. Optional.
|
|
505
|
+
*/
|
|
506
|
+
value?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Taint effect.
|
|
509
|
+
*/
|
|
510
|
+
effect: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
|
|
511
|
+
}>;
|
|
487
512
|
/**
|
|
488
513
|
* Unique identifier of the kubernetes fleet.
|
|
489
514
|
*/
|
|
490
515
|
id: string;
|
|
491
516
|
};
|
|
517
|
+
/**
|
|
518
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
519
|
+
*/
|
|
492
520
|
export type Fleet = {
|
|
493
521
|
/**
|
|
494
522
|
* Limits define a set of bounds for provisioning capacity.
|
|
@@ -521,17 +549,17 @@ export type Fleet = {
|
|
|
521
549
|
controllerRoleArn?: string;
|
|
522
550
|
};
|
|
523
551
|
/**
|
|
524
|
-
* Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
|
|
552
|
+
* 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.
|
|
525
553
|
*/
|
|
526
|
-
constraints
|
|
554
|
+
constraints: {
|
|
527
555
|
/**
|
|
528
556
|
* Allowed values for `karpenter.sh/capacity-type`.
|
|
529
557
|
*/
|
|
530
|
-
'karpenter.sh/capacity-type'
|
|
558
|
+
'karpenter.sh/capacity-type': Array<'on-demand' | 'spot'>;
|
|
531
559
|
/**
|
|
532
560
|
* Allowed values for `kubernetes.io/arch`.
|
|
533
561
|
*/
|
|
534
|
-
'kubernetes.io/arch'
|
|
562
|
+
'kubernetes.io/arch': Array<'amd64' | 'arm64'>;
|
|
535
563
|
/**
|
|
536
564
|
* Allowed values for `cfke.io/instance-family`.
|
|
537
565
|
*/
|
|
@@ -542,9 +570,26 @@ export type Fleet = {
|
|
|
542
570
|
'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'>;
|
|
543
571
|
};
|
|
544
572
|
/**
|
|
545
|
-
* Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
|
|
573
|
+
* 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`).
|
|
546
574
|
*/
|
|
547
575
|
scalingProfile: 'aggressive' | 'conservative';
|
|
576
|
+
/**
|
|
577
|
+
* Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.
|
|
578
|
+
*/
|
|
579
|
+
taints: Array<{
|
|
580
|
+
/**
|
|
581
|
+
* Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.
|
|
582
|
+
*/
|
|
583
|
+
key: string;
|
|
584
|
+
/**
|
|
585
|
+
* Taint value. Optional.
|
|
586
|
+
*/
|
|
587
|
+
value?: string;
|
|
588
|
+
/**
|
|
589
|
+
* Taint effect.
|
|
590
|
+
*/
|
|
591
|
+
effect: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
|
|
592
|
+
}>;
|
|
548
593
|
/**
|
|
549
594
|
* Unique identifier of the kubernetes fleet.
|
|
550
595
|
*/
|
|
@@ -566,6 +611,9 @@ export type Fleet = {
|
|
|
566
611
|
*/
|
|
567
612
|
updated_at: string;
|
|
568
613
|
};
|
|
614
|
+
/**
|
|
615
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
616
|
+
*/
|
|
569
617
|
export type FleetUpdateInput = {
|
|
570
618
|
/**
|
|
571
619
|
* Limits define a set of bounds for provisioning capacity.
|
|
@@ -586,7 +634,7 @@ export type FleetUpdateInput = {
|
|
|
586
634
|
hetzner?: {
|
|
587
635
|
enabled: boolean;
|
|
588
636
|
/**
|
|
589
|
-
* Hetzner Cloud API token with read
|
|
637
|
+
* 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.
|
|
590
638
|
*/
|
|
591
639
|
apiKey?: string;
|
|
592
640
|
};
|
|
@@ -598,7 +646,7 @@ export type FleetUpdateInput = {
|
|
|
598
646
|
controllerRoleArn?: string;
|
|
599
647
|
};
|
|
600
648
|
/**
|
|
601
|
-
* Constraints define scheduling and provisioning requirements for the fleet. Each field restricts the values allowed for a given Kubernetes label key. Multiple constraints are ANDed together.
|
|
649
|
+
* 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.
|
|
602
650
|
*/
|
|
603
651
|
constraints?: {
|
|
604
652
|
/**
|
|
@@ -619,9 +667,26 @@ export type FleetUpdateInput = {
|
|
|
619
667
|
'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'>;
|
|
620
668
|
};
|
|
621
669
|
/**
|
|
622
|
-
* Controls scale-up / scale-down responsiveness. `aggressive` prioritizes cost-optimization. `conservative` prioritizes stability of the fleet.
|
|
670
|
+
* 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`).
|
|
623
671
|
*/
|
|
624
|
-
scalingProfile
|
|
672
|
+
scalingProfile?: 'aggressive' | 'conservative';
|
|
673
|
+
/**
|
|
674
|
+
* Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.
|
|
675
|
+
*/
|
|
676
|
+
taints?: Array<{
|
|
677
|
+
/**
|
|
678
|
+
* Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.
|
|
679
|
+
*/
|
|
680
|
+
key: string;
|
|
681
|
+
/**
|
|
682
|
+
* Taint value. Optional.
|
|
683
|
+
*/
|
|
684
|
+
value?: string;
|
|
685
|
+
/**
|
|
686
|
+
* Taint effect.
|
|
687
|
+
*/
|
|
688
|
+
effect: 'NoSchedule' | 'PreferNoSchedule' | 'NoExecute';
|
|
689
|
+
}>;
|
|
625
690
|
};
|
|
626
691
|
export type InviteCreateInput = {
|
|
627
692
|
/**
|
|
@@ -659,6 +724,87 @@ export type Invite = {
|
|
|
659
724
|
*/
|
|
660
725
|
role?: 'Administrator' | 'User';
|
|
661
726
|
};
|
|
727
|
+
export type InvoicePaymentAttempt = {
|
|
728
|
+
/**
|
|
729
|
+
* Identifier of the invoice.
|
|
730
|
+
*/
|
|
731
|
+
invoice_id: string;
|
|
732
|
+
/**
|
|
733
|
+
* Invoice number. Null if the invoice has no number.
|
|
734
|
+
*/
|
|
735
|
+
number: string;
|
|
736
|
+
/**
|
|
737
|
+
* Amount outstanding when the charge was attempted, in the smallest currency unit.
|
|
738
|
+
*/
|
|
739
|
+
amount: number;
|
|
740
|
+
/**
|
|
741
|
+
* Currency of the invoice.
|
|
742
|
+
*/
|
|
743
|
+
currency: string;
|
|
744
|
+
/**
|
|
745
|
+
* Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).
|
|
746
|
+
*/
|
|
747
|
+
status: 'paid' | 'processing' | 'requires_action' | 'failed';
|
|
748
|
+
/**
|
|
749
|
+
* Client secret used to complete customer authentication. Set only when `status` is `requires_action`.
|
|
750
|
+
*/
|
|
751
|
+
client_secret: string;
|
|
752
|
+
/**
|
|
753
|
+
* Decline code. Set only when `status` is `failed`.
|
|
754
|
+
*/
|
|
755
|
+
failure_code: string;
|
|
756
|
+
/**
|
|
757
|
+
* Explanation of the decline, suitable for display. Set only when `status` is `failed`.
|
|
758
|
+
*/
|
|
759
|
+
failure_message: string;
|
|
760
|
+
};
|
|
761
|
+
export type InvoicePaymentResult = {
|
|
762
|
+
/**
|
|
763
|
+
* Overall outcome: `paid` (nothing outstanding), `processing` (all accepted, not yet settled), `action_required` (one or more await customer authentication), `partially_paid`, `failed`, `nothing_due`, or `bank_transfer_due` (the organization pays by bank transfer; nothing was charged).
|
|
764
|
+
*/
|
|
765
|
+
code: 'paid' | 'processing' | 'action_required' | 'partially_paid' | 'failed' | 'nothing_due' | 'bank_transfer_due';
|
|
766
|
+
/**
|
|
767
|
+
* Summary of the outcome, suitable for display.
|
|
768
|
+
*/
|
|
769
|
+
message: string;
|
|
770
|
+
/**
|
|
771
|
+
* One entry per invoice charged, oldest first.
|
|
772
|
+
*/
|
|
773
|
+
results: Array<{
|
|
774
|
+
/**
|
|
775
|
+
* Identifier of the invoice.
|
|
776
|
+
*/
|
|
777
|
+
invoice_id: string;
|
|
778
|
+
/**
|
|
779
|
+
* Invoice number. Null if the invoice has no number.
|
|
780
|
+
*/
|
|
781
|
+
number: string;
|
|
782
|
+
/**
|
|
783
|
+
* Amount outstanding when the charge was attempted, in the smallest currency unit.
|
|
784
|
+
*/
|
|
785
|
+
amount: number;
|
|
786
|
+
/**
|
|
787
|
+
* Currency of the invoice.
|
|
788
|
+
*/
|
|
789
|
+
currency: string;
|
|
790
|
+
/**
|
|
791
|
+
* Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).
|
|
792
|
+
*/
|
|
793
|
+
status: 'paid' | 'processing' | 'requires_action' | 'failed';
|
|
794
|
+
/**
|
|
795
|
+
* Client secret used to complete customer authentication. Set only when `status` is `requires_action`.
|
|
796
|
+
*/
|
|
797
|
+
client_secret: string;
|
|
798
|
+
/**
|
|
799
|
+
* Decline code. Set only when `status` is `failed`.
|
|
800
|
+
*/
|
|
801
|
+
failure_code: string;
|
|
802
|
+
/**
|
|
803
|
+
* Explanation of the decline, suitable for display. Set only when `status` is `failed`.
|
|
804
|
+
*/
|
|
805
|
+
failure_message: string;
|
|
806
|
+
}>;
|
|
807
|
+
};
|
|
662
808
|
export type Invoice = {
|
|
663
809
|
/**
|
|
664
810
|
* Unique identifier of the invoice.
|
|
@@ -846,6 +992,14 @@ export type Organization = {
|
|
|
846
992
|
* Available number of Pro clusters that can be created.
|
|
847
993
|
*/
|
|
848
994
|
pro_clusters_available: number;
|
|
995
|
+
/**
|
|
996
|
+
* Maximum number of Enterprise clusters that can be created.
|
|
997
|
+
*/
|
|
998
|
+
enterprise_clusters_max: number;
|
|
999
|
+
/**
|
|
1000
|
+
* Available number of Enterprise clusters that can be created.
|
|
1001
|
+
*/
|
|
1002
|
+
enterprise_clusters_available: number;
|
|
849
1003
|
/**
|
|
850
1004
|
* Maximum number of fleets that can be created per cluster.
|
|
851
1005
|
*/
|
|
@@ -944,6 +1098,14 @@ export type PlatformQuota = {
|
|
|
944
1098
|
* Available number of Pro clusters that can be created.
|
|
945
1099
|
*/
|
|
946
1100
|
pro_clusters_available: number;
|
|
1101
|
+
/**
|
|
1102
|
+
* Maximum number of Enterprise clusters that can be created.
|
|
1103
|
+
*/
|
|
1104
|
+
enterprise_clusters_max: number;
|
|
1105
|
+
/**
|
|
1106
|
+
* Available number of Enterprise clusters that can be created.
|
|
1107
|
+
*/
|
|
1108
|
+
enterprise_clusters_available: number;
|
|
947
1109
|
/**
|
|
948
1110
|
* Maximum number of fleets that can be created per cluster.
|
|
949
1111
|
*/
|
|
@@ -1156,91 +1318,6 @@ export type TicketCreateInput = {
|
|
|
1156
1318
|
[key: string]: unknown;
|
|
1157
1319
|
};
|
|
1158
1320
|
};
|
|
1159
|
-
export type TicketListResponse = {
|
|
1160
|
-
/**
|
|
1161
|
-
* Tickets for the organization, ordered newest first. Messages are omitted from list responses.
|
|
1162
|
-
*/
|
|
1163
|
-
items: Array<{
|
|
1164
|
-
/**
|
|
1165
|
-
* Unique identifier of the ticket (Mongo ObjectId).
|
|
1166
|
-
*/
|
|
1167
|
-
id: string;
|
|
1168
|
-
/**
|
|
1169
|
-
* Current state of the ticket.
|
|
1170
|
-
*/
|
|
1171
|
-
status: 'waiting_on_us' | 'waiting_on_user' | 'closed';
|
|
1172
|
-
/**
|
|
1173
|
-
* Ticket category.
|
|
1174
|
-
*/
|
|
1175
|
-
category: 'billing' | 'technical' | 'general';
|
|
1176
|
-
/**
|
|
1177
|
-
* First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.
|
|
1178
|
-
*/
|
|
1179
|
-
summary: string;
|
|
1180
|
-
/**
|
|
1181
|
-
* Closure timestamp. Null while the ticket is open.
|
|
1182
|
-
*/
|
|
1183
|
-
closed_at?: string;
|
|
1184
|
-
/**
|
|
1185
|
-
* Creation date of the ticket. ISO 8601 UTC.
|
|
1186
|
-
*/
|
|
1187
|
-
date_created: string;
|
|
1188
|
-
/**
|
|
1189
|
-
* Last update date of the ticket. ISO 8601 UTC.
|
|
1190
|
-
*/
|
|
1191
|
-
date_updated: string;
|
|
1192
|
-
/**
|
|
1193
|
-
* Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.
|
|
1194
|
-
*/
|
|
1195
|
-
messages?: Array<{
|
|
1196
|
-
/**
|
|
1197
|
-
* Unique identifier of the message (Mongo ObjectId).
|
|
1198
|
-
*/
|
|
1199
|
-
id: string;
|
|
1200
|
-
/**
|
|
1201
|
-
* Message type. Internal notes are filtered out of customer-facing responses.
|
|
1202
|
-
*/
|
|
1203
|
-
type: 'customer_reply' | 'agent_reply';
|
|
1204
|
-
/**
|
|
1205
|
-
* Message body in markdown.
|
|
1206
|
-
*/
|
|
1207
|
-
body: string;
|
|
1208
|
-
/**
|
|
1209
|
-
* First name of the author. Null when not provided.
|
|
1210
|
-
*/
|
|
1211
|
-
author_first_name?: string;
|
|
1212
|
-
/**
|
|
1213
|
-
* Last name of the author. Null when not provided.
|
|
1214
|
-
*/
|
|
1215
|
-
author_last_name?: string;
|
|
1216
|
-
/**
|
|
1217
|
-
* Attachments associated with this message.
|
|
1218
|
-
*/
|
|
1219
|
-
attachments?: Array<{
|
|
1220
|
-
/**
|
|
1221
|
-
* Unique identifier of the attachment (Mongo ObjectId).
|
|
1222
|
-
*/
|
|
1223
|
-
id: string;
|
|
1224
|
-
/**
|
|
1225
|
-
* Original filename as uploaded.
|
|
1226
|
-
*/
|
|
1227
|
-
filename: string;
|
|
1228
|
-
/**
|
|
1229
|
-
* MIME content type of the attachment.
|
|
1230
|
-
*/
|
|
1231
|
-
content_type: string;
|
|
1232
|
-
/**
|
|
1233
|
-
* Size of the attachment in bytes.
|
|
1234
|
-
*/
|
|
1235
|
-
size: number;
|
|
1236
|
-
}>;
|
|
1237
|
-
/**
|
|
1238
|
-
* Creation date of the message. ISO 8601 UTC.
|
|
1239
|
-
*/
|
|
1240
|
-
date_created: string;
|
|
1241
|
-
}>;
|
|
1242
|
-
}>;
|
|
1243
|
-
};
|
|
1244
1321
|
export type TicketMessageInput = {
|
|
1245
1322
|
/**
|
|
1246
1323
|
* Reply body in markdown.
|
|
@@ -1424,7 +1501,7 @@ export type UsageFacets = {
|
|
|
1424
1501
|
/**
|
|
1425
1502
|
* List of unique products
|
|
1426
1503
|
*/
|
|
1427
|
-
product?: Array<
|
|
1504
|
+
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'>;
|
|
1428
1505
|
};
|
|
1429
1506
|
export type UsageResponse = {
|
|
1430
1507
|
/**
|
|
@@ -1442,7 +1519,7 @@ export type UsageResponse = {
|
|
|
1442
1519
|
/**
|
|
1443
1520
|
* The product the usage is associated with
|
|
1444
1521
|
*/
|
|
1445
|
-
product:
|
|
1522
|
+
product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
|
|
1446
1523
|
/**
|
|
1447
1524
|
* Consumption
|
|
1448
1525
|
*/
|
|
@@ -1467,7 +1544,7 @@ export type UsageResponse = {
|
|
|
1467
1544
|
/**
|
|
1468
1545
|
* List of unique products
|
|
1469
1546
|
*/
|
|
1470
|
-
product?: Array<
|
|
1547
|
+
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'>;
|
|
1471
1548
|
};
|
|
1472
1549
|
};
|
|
1473
1550
|
export type Usage = {
|
|
@@ -1482,7 +1559,7 @@ export type Usage = {
|
|
|
1482
1559
|
/**
|
|
1483
1560
|
* The product the usage is associated with
|
|
1484
1561
|
*/
|
|
1485
|
-
product:
|
|
1562
|
+
product: 'cfke_controlplane_basic' | 'cfke_controlplane_pro' | 'cfke_controlplane_enterprise' | 'cfke_connected_nodes_basic' | 'cfke_connected_nodes_pro' | 'cfke_connected_nodes_enterprise' | 'cfcr_storage';
|
|
1486
1563
|
/**
|
|
1487
1564
|
* Consumption
|
|
1488
1565
|
*/
|
|
@@ -1834,9 +1911,9 @@ export type ListTicketsData = {
|
|
|
1834
1911
|
};
|
|
1835
1912
|
export type ListTicketsResponses = {
|
|
1836
1913
|
/**
|
|
1837
|
-
*
|
|
1914
|
+
* An array of tickets for the organization, newest first.
|
|
1838
1915
|
*/
|
|
1839
|
-
200:
|
|
1916
|
+
200: Array<Ticket>;
|
|
1840
1917
|
};
|
|
1841
1918
|
export type ListTicketsResponse = ListTicketsResponses[keyof ListTicketsResponses];
|
|
1842
1919
|
export type CreateTicketData = {
|
|
@@ -2602,7 +2679,7 @@ export type DeleteClusterData = {
|
|
|
2602
2679
|
};
|
|
2603
2680
|
export type DeleteClusterErrors = {
|
|
2604
2681
|
/**
|
|
2605
|
-
* Cluster not found
|
|
2682
|
+
* Cluster not found; it does not exist or has already been deleted.
|
|
2606
2683
|
*/
|
|
2607
2684
|
404: unknown;
|
|
2608
2685
|
/**
|
|
@@ -2685,6 +2762,10 @@ export type GetJoinInformationErrors = {
|
|
|
2685
2762
|
* The cluster cannot service this operation: it is still being created, or it is suspended. Retry once it is ready, or resume the cluster first.
|
|
2686
2763
|
*/
|
|
2687
2764
|
409: string;
|
|
2765
|
+
/**
|
|
2766
|
+
* 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.
|
|
2767
|
+
*/
|
|
2768
|
+
426: string;
|
|
2688
2769
|
};
|
|
2689
2770
|
export type GetJoinInformationError = GetJoinInformationErrors[keyof GetJoinInformationErrors];
|
|
2690
2771
|
export type GetJoinInformationResponses = {
|
|
@@ -2843,6 +2924,33 @@ export type ListInvoicesResponses = {
|
|
|
2843
2924
|
200: Array<Invoice>;
|
|
2844
2925
|
};
|
|
2845
2926
|
export type ListInvoicesResponse = ListInvoicesResponses[keyof ListInvoicesResponses];
|
|
2927
|
+
export type PayOpenInvoicesData = {
|
|
2928
|
+
body?: never;
|
|
2929
|
+
path?: never;
|
|
2930
|
+
query?: never;
|
|
2931
|
+
url: '/billing/invoices/pay';
|
|
2932
|
+
};
|
|
2933
|
+
export type PayOpenInvoicesErrors = {
|
|
2934
|
+
/**
|
|
2935
|
+
* The organization has no payment method that can be charged.
|
|
2936
|
+
*/
|
|
2937
|
+
400: unknown;
|
|
2938
|
+
/**
|
|
2939
|
+
* Not authenticated
|
|
2940
|
+
*/
|
|
2941
|
+
401: unknown;
|
|
2942
|
+
/**
|
|
2943
|
+
* Too many payment attempts for this organization.
|
|
2944
|
+
*/
|
|
2945
|
+
429: unknown;
|
|
2946
|
+
};
|
|
2947
|
+
export type PayOpenInvoicesResponses = {
|
|
2948
|
+
/**
|
|
2949
|
+
* The outcome of the attempt.
|
|
2950
|
+
*/
|
|
2951
|
+
200: InvoicePaymentResult;
|
|
2952
|
+
};
|
|
2953
|
+
export type PayOpenInvoicesResponse = PayOpenInvoicesResponses[keyof PayOpenInvoicesResponses];
|
|
2846
2954
|
export type GetContactData = {
|
|
2847
2955
|
body?: never;
|
|
2848
2956
|
path?: never;
|