@cloudfleet/sdk 0.0.1-a0f38b2 → 0.0.1-a10877b

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 (61) hide show
  1. package/README.md +26 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +1026 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1194 -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 +114 -102
  8. package/dist/client/client.gen.js.map +1 -1
  9. package/dist/client/index.d.ts +1 -1
  10. package/dist/client/index.d.ts.map +1 -1
  11. package/dist/client/index.js.map +1 -1
  12. package/dist/client/types.gen.d.ts +9 -13
  13. package/dist/client/types.gen.d.ts.map +1 -1
  14. package/dist/client/utils.gen.d.ts +8 -4
  15. package/dist/client/utils.gen.d.ts.map +1 -1
  16. package/dist/client/utils.gen.js +13 -15
  17. package/dist/client/utils.gen.js.map +1 -1
  18. package/dist/client.gen.d.ts.map +1 -1
  19. package/dist/client.gen.js +1 -3
  20. package/dist/client.gen.js.map +1 -1
  21. package/dist/core/auth.gen.d.ts.map +1 -1
  22. package/dist/core/auth.gen.js.map +1 -1
  23. package/dist/core/bodySerializer.gen.d.ts +16 -8
  24. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  25. package/dist/core/bodySerializer.gen.js +1 -1
  26. package/dist/core/bodySerializer.gen.js.map +1 -1
  27. package/dist/core/params.gen.d.ts +10 -0
  28. package/dist/core/params.gen.d.ts.map +1 -1
  29. package/dist/core/params.gen.js +22 -10
  30. package/dist/core/params.gen.js.map +1 -1
  31. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  32. package/dist/core/pathSerializer.gen.js +3 -11
  33. package/dist/core/pathSerializer.gen.js.map +1 -1
  34. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  35. package/dist/core/queryKeySerializer.gen.js +4 -11
  36. package/dist/core/queryKeySerializer.gen.js.map +1 -1
  37. package/dist/core/serverSentEvents.gen.d.ts +1 -1
  38. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  39. package/dist/core/serverSentEvents.gen.js +6 -9
  40. package/dist/core/serverSentEvents.gen.js.map +1 -1
  41. package/dist/core/types.gen.d.ts +1 -1
  42. package/dist/core/types.gen.d.ts.map +1 -1
  43. package/dist/core/utils.gen.d.ts.map +1 -1
  44. package/dist/core/utils.gen.js +1 -1
  45. package/dist/core/utils.gen.js.map +1 -1
  46. package/dist/schemas.gen.d.ts +1102 -145
  47. package/dist/schemas.gen.d.ts.map +1 -1
  48. package/dist/schemas.gen.js +2515 -215
  49. package/dist/schemas.gen.js.map +1 -1
  50. package/dist/sdk.gen.d.ts +258 -191
  51. package/dist/sdk.gen.d.ts.map +1 -1
  52. package/dist/sdk.gen.js +367 -370
  53. package/dist/sdk.gen.js.map +1 -1
  54. package/dist/services/kubernetes/api.d.ts +8 -8
  55. package/dist/types.gen.d.ts +1547 -706
  56. package/dist/types.gen.d.ts.map +1 -1
  57. package/dist/zod.gen.d.ts +3489 -1433
  58. package/dist/zod.gen.d.ts.map +1 -1
  59. package/dist/zod.gen.js +1411 -631
  60. package/dist/zod.gen.js.map +1 -1
  61. package/package.json +28 -8
@@ -2,6 +2,15 @@
2
2
  export const BillingContactSchema = {
3
3
  type: 'object',
4
4
  properties: {
5
+ type: {
6
+ type: 'string',
7
+ description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
8
+ example: 'business',
9
+ enum: [
10
+ 'business',
11
+ 'personal'
12
+ ]
13
+ },
5
14
  company: {
6
15
  type: 'string',
7
16
  maxLength: 120,
@@ -74,10 +83,143 @@ export const BillingContactSchema = {
74
83
  nullable: true,
75
84
  description: 'Type of the tax ID.',
76
85
  example: 'de_vat',
77
- enum: ['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'at_vat', 'au_abn', 'au_arn', 'ba_tin', 'bb_tin', 'be_vat', 'bg_uic', 'bg_vat', 'bh_vat', 'bo_tin', 'br_cnpj', 'br_cpf', 'bs_tin', 'by_tin', 'ca_bn', 'ca_gst_hst', 'ca_pst_bc', 'ca_pst_mb', 'ca_pst_sk', 'ca_qst', 'cd_nif', 'ch_uid', 'ch_vat', 'cl_tin', 'cn_tin', 'co_nit', 'cr_tin', 'cy_vat', 'cz_vat', 'de_stn', 'de_vat', 'dk_vat', 'do_rcn', 'ec_ruc', 'ee_vat', 'eg_tin', 'es_cif', 'es_vat', 'eu_oss_vat', 'fi_vat', 'fr_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'gr_vat', 'hk_br', 'hr_oib', 'hr_vat', 'hu_tin', 'hu_vat', 'id_npwp', 'ie_vat', 'il_vat', 'in_gst', 'is_vat', 'it_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kh_tin', 'kr_brn', 'kz_bin', 'li_uid', 'li_vat', 'lt_vat', 'lu_vat', 'lv_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mt_vat', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'nl_vat', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'pl_vat', 'pt_vat', 'ro_tin', 'ro_vat', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'se_vat', 'sg_gst', 'sg_uen', 'si_tin', 'si_vat', 'sk_vat', 'sn_ninea', 'sr_fin', 'sv_nit', 'th_vat', 'tj_tin', 'tr_tin', 'tw_vat', 'tz_vat', 'ua_vat', 'ug_tin', 'us_ein', 'uy_ruc', 'uz_tin', 'uz_vat', 've_rif', 'vn_tin', 'xi_vat', 'za_vat', 'zm_tin', 'zw_tin', '']
86
+ enum: [
87
+ 'ad_nrt',
88
+ 'ae_trn',
89
+ 'al_tin',
90
+ 'am_tin',
91
+ 'ao_tin',
92
+ 'ar_cuit',
93
+ 'at_vat',
94
+ 'au_abn',
95
+ 'au_arn',
96
+ 'ba_tin',
97
+ 'bb_tin',
98
+ 'be_vat',
99
+ 'bg_uic',
100
+ 'bg_vat',
101
+ 'bh_vat',
102
+ 'bo_tin',
103
+ 'br_cnpj',
104
+ 'br_cpf',
105
+ 'bs_tin',
106
+ 'by_tin',
107
+ 'ca_bn',
108
+ 'ca_gst_hst',
109
+ 'ca_pst_bc',
110
+ 'ca_pst_mb',
111
+ 'ca_pst_sk',
112
+ 'ca_qst',
113
+ 'cd_nif',
114
+ 'ch_uid',
115
+ 'ch_vat',
116
+ 'cl_tin',
117
+ 'cn_tin',
118
+ 'co_nit',
119
+ 'cr_tin',
120
+ 'cy_vat',
121
+ 'cz_vat',
122
+ 'de_stn',
123
+ 'de_vat',
124
+ 'dk_vat',
125
+ 'do_rcn',
126
+ 'ec_ruc',
127
+ 'ee_vat',
128
+ 'eg_tin',
129
+ 'es_cif',
130
+ 'es_vat',
131
+ 'eu_oss_vat',
132
+ 'fi_vat',
133
+ 'fr_vat',
134
+ 'gb_vat',
135
+ 'ge_vat',
136
+ 'gn_nif',
137
+ 'gr_vat',
138
+ 'hk_br',
139
+ 'hr_oib',
140
+ 'hr_vat',
141
+ 'hu_tin',
142
+ 'hu_vat',
143
+ 'id_npwp',
144
+ 'ie_vat',
145
+ 'il_vat',
146
+ 'in_gst',
147
+ 'is_vat',
148
+ 'it_vat',
149
+ 'jp_cn',
150
+ 'jp_rn',
151
+ 'jp_trn',
152
+ 'ke_pin',
153
+ 'kh_tin',
154
+ 'kr_brn',
155
+ 'kz_bin',
156
+ 'li_uid',
157
+ 'li_vat',
158
+ 'lt_vat',
159
+ 'lu_vat',
160
+ 'lv_vat',
161
+ 'ma_vat',
162
+ 'md_vat',
163
+ 'me_pib',
164
+ 'mk_vat',
165
+ 'mr_nif',
166
+ 'mt_vat',
167
+ 'mx_rfc',
168
+ 'my_frp',
169
+ 'my_itn',
170
+ 'my_sst',
171
+ 'ng_tin',
172
+ 'nl_vat',
173
+ 'no_vat',
174
+ 'no_voec',
175
+ 'np_pan',
176
+ 'nz_gst',
177
+ 'om_vat',
178
+ 'pe_ruc',
179
+ 'ph_tin',
180
+ 'pl_vat',
181
+ 'pt_vat',
182
+ 'ro_tin',
183
+ 'ro_vat',
184
+ 'rs_pib',
185
+ 'ru_inn',
186
+ 'ru_kpp',
187
+ 'sa_vat',
188
+ 'se_vat',
189
+ 'sg_gst',
190
+ 'sg_uen',
191
+ 'si_tin',
192
+ 'si_vat',
193
+ 'sk_vat',
194
+ 'sn_ninea',
195
+ 'sr_fin',
196
+ 'sv_nit',
197
+ 'th_vat',
198
+ 'tj_tin',
199
+ 'tr_tin',
200
+ 'tw_vat',
201
+ 'tz_vat',
202
+ 'ua_vat',
203
+ 'ug_tin',
204
+ 'us_ein',
205
+ 'uy_ruc',
206
+ 'uz_tin',
207
+ 'uz_vat',
208
+ 've_rif',
209
+ 'vn_tin',
210
+ 'xi_vat',
211
+ 'za_vat',
212
+ 'zm_tin',
213
+ 'zw_tin',
214
+ ''
215
+ ]
78
216
  }
79
217
  },
80
- required: ['email', 'individual_name'],
218
+ required: [
219
+ 'type',
220
+ 'email',
221
+ 'individual_name'
222
+ ],
81
223
  additionalProperties: false
82
224
  };
83
225
  export const BillingCreditsSchema = {
@@ -92,7 +234,10 @@ export const BillingCreditsSchema = {
92
234
  type: 'string',
93
235
  description: 'Type of the promotional code.',
94
236
  example: 'credit',
95
- enum: ['credit', 'discount']
237
+ enum: [
238
+ 'credit',
239
+ 'discount'
240
+ ]
96
241
  },
97
242
  date_start: {
98
243
  type: 'string',
@@ -129,7 +274,12 @@ export const BillingCreditsSchema = {
129
274
  example: 8
130
275
  }
131
276
  },
132
- required: ['type', 'date_start', 'code', 'value_total'],
277
+ required: [
278
+ 'type',
279
+ 'date_start',
280
+ 'code',
281
+ 'value_total'
282
+ ],
133
283
  additionalProperties: false
134
284
  };
135
285
  export const ChartCreateInputSchema = {
@@ -170,7 +320,13 @@ export const ChartCreateInputSchema = {
170
320
  example: 'postgresql'
171
321
  }
172
322
  },
173
- required: ['values', 'version_channel', 'name', 'namespace', 'chart'],
323
+ required: [
324
+ 'values',
325
+ 'version_channel',
326
+ 'name',
327
+ 'namespace',
328
+ 'chart'
329
+ ],
174
330
  additionalProperties: false
175
331
  };
176
332
  export const ChartSchema = {
@@ -212,9 +368,8 @@ export const ChartSchema = {
212
368
  },
213
369
  status: {
214
370
  type: 'string',
215
- description: 'Status of the chart deployment.',
216
- example: 'active',
217
- enum: ['InstallSucceeded', 'InstallFailed', 'UpgradeSucceeded', 'UpgradeFailed', 'TestSucceeded', 'TestFailed', 'RollbackSucceeded', 'RollbackFailed', 'UninstallSucceeded', 'UninstallFailed', 'ArtifactFailed', 'DependencyNotReady', 'Progressing', 'SourceNotReady']
371
+ description: 'Status of the chart deployment (Flux HelmRelease Ready condition reason, e.g. InstallSucceeded, UpgradeFailed, Progressing).',
372
+ example: 'InstallSucceeded'
218
373
  },
219
374
  version_current: {
220
375
  type: 'string',
@@ -237,7 +392,18 @@ export const ChartSchema = {
237
392
  example: true
238
393
  }
239
394
  },
240
- required: ['values', 'version_channel', 'name', 'namespace', 'chart', 'status', 'version_current', 'created_at', 'updated_at', 'ready'],
395
+ required: [
396
+ 'values',
397
+ 'version_channel',
398
+ 'name',
399
+ 'namespace',
400
+ 'chart',
401
+ 'status',
402
+ 'version_current',
403
+ 'created_at',
404
+ 'updated_at',
405
+ 'ready'
406
+ ],
241
407
  additionalProperties: false
242
408
  };
243
409
  export const ChartUpdateInputSchema = {
@@ -254,7 +420,10 @@ export const ChartUpdateInputSchema = {
254
420
  example: '2.x.x-cfke.x'
255
421
  }
256
422
  },
257
- required: ['values', 'version_channel'],
423
+ required: [
424
+ 'values',
425
+ 'version_channel'
426
+ ],
258
427
  additionalProperties: false
259
428
  };
260
429
  export const ClusterCreateInputSchema = {
@@ -271,27 +440,118 @@ export const ClusterCreateInputSchema = {
271
440
  tier: {
272
441
  type: 'string',
273
442
  description: 'Tier of the cluster.',
443
+ default: 'basic',
274
444
  example: 'pro',
275
- enum: ['basic', 'pro']
276
- },
277
- region: {
278
- type: 'string',
279
- description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
280
- default: 'staging',
281
- example: 'northamerica-central-1a',
282
- enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
445
+ enum: [
446
+ 'basic',
447
+ 'pro',
448
+ 'enterprise'
449
+ ]
283
450
  },
284
451
  version_channel: {
285
452
  type: 'string',
286
453
  pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
287
454
  description: 'Version of the kubernetes cluster.',
288
455
  default: '1.x.x-cfke.x',
289
- example: '1.x.x-cfke.x',
290
- enum: ['1.x.x-cfke.x', '1.31.x-cfke.x', '1.32.x-cfke.x', '1.33.x-cfke.x']
456
+ example: '1.x.x-cfke.x'
457
+ },
458
+ release_channel: {
459
+ type: 'string',
460
+ description: 'Release channel for the cluster\'s control plane.',
461
+ default: 'rapid',
462
+ example: 'rapid',
463
+ enum: [
464
+ 'rapid',
465
+ 'stable',
466
+ 'extended'
467
+ ]
468
+ },
469
+ features: {
470
+ type: 'object',
471
+ properties: {
472
+ gpu_sharing_strategy: {
473
+ type: 'string',
474
+ description: 'GPU sharing strategy.',
475
+ default: 'none',
476
+ example: 'none',
477
+ enum: [
478
+ 'none',
479
+ 'mps',
480
+ 'time_slicing'
481
+ ]
482
+ },
483
+ gpu_max_shared_clients_per_gpu: {
484
+ type: 'integer',
485
+ minimum: 2,
486
+ maximum: 48,
487
+ description: 'Maximum number of pods that may share a single GPU.',
488
+ default: 4,
489
+ example: 10
490
+ },
491
+ cilium_socket_lb_host_namespace_only: {
492
+ type: 'boolean',
493
+ description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
494
+ example: false
495
+ }
496
+ },
497
+ additionalProperties: false,
498
+ description: 'Cluster feature toggles.',
499
+ default: {
500
+ gpu_sharing_strategy: 'none',
501
+ gpu_max_shared_clients_per_gpu: 4,
502
+ cilium_socket_lb_host_namespace_only: false
503
+ }
504
+ },
505
+ region: {
506
+ type: 'string',
507
+ description: 'Cloudfleet control plane region. This field can not be updated after creation.',
508
+ example: 'europe-central-1a'
509
+ },
510
+ networking: {
511
+ type: 'object',
512
+ properties: {
513
+ pod_cidr: {
514
+ type: 'string',
515
+ description: 'CIDR block for pod IPs.',
516
+ default: '10.244.0.0/16'
517
+ },
518
+ service_cidr: {
519
+ type: 'string',
520
+ description: 'CIDR block for service IPs.',
521
+ default: '10.96.0.0/12'
522
+ },
523
+ dual_stack: {
524
+ type: 'boolean',
525
+ description: 'Enable IPv4+IPv6 dual-stack networking.'
526
+ },
527
+ pod_cidr_v6: {
528
+ type: 'string',
529
+ description: 'IPv6 pod CIDR. Requires dual_stack.',
530
+ default: '2001:db8:1:2::/48'
531
+ },
532
+ service_cidr_v6: {
533
+ type: 'string',
534
+ description: 'IPv6 service CIDR. Requires dual_stack.',
535
+ default: '2001:db8:1:1::/112'
536
+ }
537
+ },
538
+ additionalProperties: false,
539
+ description: 'Cluster networking configuration. Immutable after creation.',
540
+ default: {
541
+ pod_cidr: '10.244.0.0/16',
542
+ service_cidr: '10.96.0.0/12',
543
+ dual_stack: false,
544
+ pod_cidr_v6: '2001:db8:1:2::/48',
545
+ service_cidr_v6: '2001:db8:1:1::/112'
546
+ }
291
547
  }
292
548
  },
293
- required: ['name', 'tier'],
294
- additionalProperties: false
549
+ required: [
550
+ 'name',
551
+ 'region'
552
+ ],
553
+ additionalProperties: false,
554
+ description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
295
555
  };
296
556
  export const ClusterJoinInformationSchema = {
297
557
  type: 'object',
@@ -299,8 +559,7 @@ export const ClusterJoinInformationSchema = {
299
559
  certificate_authority: {
300
560
  type: 'string',
301
561
  description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
302
- example: `-----BEGIN CERTIFICATE-----
303
- MIIC0DCCAbigAwIBAgI...`
562
+ example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
304
563
  },
305
564
  endpoint: {
306
565
  type: 'string',
@@ -308,11 +567,26 @@ MIIC0DCCAbigAwIBAgI...`
308
567
  description: 'Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.',
309
568
  example: 'https://10.31.64.7:6443'
310
569
  },
570
+ cluster_dns: {
571
+ type: 'string',
572
+ description: 'Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.',
573
+ example: '10.96.0.10'
574
+ },
575
+ pod_cidr: {
576
+ type: 'string',
577
+ description: 'Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.',
578
+ example: '10.244.0.0/16'
579
+ },
311
580
  auth_key: {
312
581
  type: 'string',
313
582
  description: 'Authentication key for the cluster.',
314
583
  example: 'tskey-auth-kBV8wr1dk911CNTRL-...'
315
584
  },
585
+ login_server: {
586
+ type: 'string',
587
+ description: '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.',
588
+ example: 'https://415026b6-f00f-44f8-968d-fc6ef4d0fc6d.fabric.europe-central-1a.cfke.io'
589
+ },
316
590
  bootstrap_token: {
317
591
  type: 'string',
318
592
  description: 'Bootstrap token for the cluster.',
@@ -342,7 +616,12 @@ MIIC0DCCAbigAwIBAgI...`
342
616
  example: '565.0.0'
343
617
  }
344
618
  },
345
- required: ['kubernetes', 'tailscale', 'containerd', 'nvidia_driver'],
619
+ required: [
620
+ 'kubernetes',
621
+ 'tailscale',
622
+ 'containerd',
623
+ 'nvidia_driver'
624
+ ],
346
625
  additionalProperties: false,
347
626
  description: 'Versions of the different components of the cluster.'
348
627
  },
@@ -365,12 +644,26 @@ MIIC0DCCAbigAwIBAgI...`
365
644
  example: '//iam.googleapis.com/projects/89014267864/locations/global/workloadIdentityPools/cfke/providers/oidc'
366
645
  }
367
646
  },
368
- required: ['metadata_url', 'aws_role_arn', 'gcp_workload_identity_provider'],
647
+ required: [
648
+ 'metadata_url',
649
+ 'aws_role_arn',
650
+ 'gcp_workload_identity_provider'
651
+ ],
369
652
  additionalProperties: false,
370
- description: "OIDC Information for hosts to access to third party API's."
653
+ description: 'OIDC Information for hosts to access to third party API\'s.'
371
654
  }
372
655
  },
373
- required: ['certificate_authority', 'endpoint', 'auth_key', 'bootstrap_token', 'versions', 'third_party_api_access_config'],
656
+ required: [
657
+ 'certificate_authority',
658
+ 'endpoint',
659
+ 'cluster_dns',
660
+ 'pod_cidr',
661
+ 'auth_key',
662
+ 'login_server',
663
+ 'bootstrap_token',
664
+ 'versions',
665
+ 'third_party_api_access_config'
666
+ ],
374
667
  additionalProperties: false
375
668
  };
376
669
  export const ClusterSchema = {
@@ -387,15 +680,122 @@ export const ClusterSchema = {
387
680
  tier: {
388
681
  type: 'string',
389
682
  description: 'Tier of the cluster.',
683
+ default: 'basic',
390
684
  example: 'pro',
391
- enum: ['basic', 'pro']
685
+ enum: [
686
+ 'basic',
687
+ 'pro',
688
+ 'enterprise'
689
+ ]
690
+ },
691
+ version_channel: {
692
+ type: 'string',
693
+ pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
694
+ description: 'Version of the kubernetes cluster.',
695
+ default: '1.x.x-cfke.x',
696
+ example: '1.x.x-cfke.x'
697
+ },
698
+ release_channel: {
699
+ type: 'string',
700
+ description: 'Release channel for the cluster\'s control plane.',
701
+ default: 'rapid',
702
+ example: 'rapid',
703
+ enum: [
704
+ 'rapid',
705
+ 'stable',
706
+ 'extended'
707
+ ]
708
+ },
709
+ features: {
710
+ type: 'object',
711
+ properties: {
712
+ gpu_sharing_strategy: {
713
+ type: 'string',
714
+ description: 'GPU sharing strategy.',
715
+ default: 'none',
716
+ example: 'none',
717
+ enum: [
718
+ 'none',
719
+ 'mps',
720
+ 'time_slicing'
721
+ ]
722
+ },
723
+ gpu_max_shared_clients_per_gpu: {
724
+ type: 'integer',
725
+ minimum: 2,
726
+ maximum: 48,
727
+ description: 'Maximum number of pods that may share a single GPU.',
728
+ default: 4,
729
+ example: 10
730
+ },
731
+ cilium_socket_lb_host_namespace_only: {
732
+ type: 'boolean',
733
+ description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
734
+ example: false
735
+ }
736
+ },
737
+ required: [
738
+ 'gpu_sharing_strategy',
739
+ 'gpu_max_shared_clients_per_gpu',
740
+ 'cilium_socket_lb_host_namespace_only'
741
+ ],
742
+ additionalProperties: false,
743
+ description: 'Cluster feature toggles.',
744
+ default: {
745
+ gpu_sharing_strategy: 'none',
746
+ gpu_max_shared_clients_per_gpu: 4,
747
+ cilium_socket_lb_host_namespace_only: false
748
+ }
392
749
  },
393
750
  region: {
394
751
  type: 'string',
395
- description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
396
- default: 'staging',
397
- example: 'northamerica-central-1a',
398
- enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
752
+ description: 'Cloudfleet control plane region. This field can not be updated after creation.',
753
+ example: 'europe-central-1a'
754
+ },
755
+ networking: {
756
+ type: 'object',
757
+ properties: {
758
+ pod_cidr: {
759
+ type: 'string',
760
+ description: 'CIDR block for pod IPs.',
761
+ default: '10.244.0.0/16'
762
+ },
763
+ service_cidr: {
764
+ type: 'string',
765
+ description: 'CIDR block for service IPs.',
766
+ default: '10.96.0.0/12'
767
+ },
768
+ dual_stack: {
769
+ type: 'boolean',
770
+ description: 'Enable IPv4+IPv6 dual-stack networking.'
771
+ },
772
+ pod_cidr_v6: {
773
+ type: 'string',
774
+ description: 'IPv6 pod CIDR. Requires dual_stack.',
775
+ default: '2001:db8:1:2::/48'
776
+ },
777
+ service_cidr_v6: {
778
+ type: 'string',
779
+ description: 'IPv6 service CIDR. Requires dual_stack.',
780
+ default: '2001:db8:1:1::/112'
781
+ }
782
+ },
783
+ required: [
784
+ 'pod_cidr',
785
+ 'service_cidr',
786
+ 'dual_stack',
787
+ 'pod_cidr_v6',
788
+ 'service_cidr_v6'
789
+ ],
790
+ additionalProperties: false,
791
+ description: 'Cluster networking configuration. Immutable after creation.',
792
+ default: {
793
+ pod_cidr: '10.244.0.0/16',
794
+ service_cidr: '10.96.0.0/12',
795
+ dual_stack: false,
796
+ pod_cidr_v6: '2001:db8:1:2::/48',
797
+ service_cidr_v6: '2001:db8:1:1::/112'
798
+ }
399
799
  },
400
800
  id: {
401
801
  type: 'string',
@@ -405,29 +805,51 @@ export const ClusterSchema = {
405
805
  },
406
806
  status: {
407
807
  type: 'string',
408
- description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
409
- example: 'active',
410
- enum: ['active', 'disabled', 'deleted', 'creating', 'deployed', 'failed', 'updating']
808
+ description: 'Status of the cluster.',
809
+ example: 'deployed',
810
+ enum: [
811
+ 'creating',
812
+ 'deployed',
813
+ 'updating',
814
+ 'disabled'
815
+ ]
411
816
  },
412
817
  endpoint: {
413
818
  anyOf: [
414
819
  {
415
820
  type: 'string',
416
821
  format: 'uri',
417
- description: 'URL of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
418
- example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.cloudfleet.dev:6443'
822
+ description: 'URL signed by a public CA of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
823
+ example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
824
+ },
825
+ {
826
+ type: 'string',
827
+ enum: [
828
+ ''
829
+ ]
830
+ }
831
+ ]
832
+ },
833
+ endpoint_public: {
834
+ anyOf: [
835
+ {
836
+ type: 'string',
837
+ format: 'uri',
838
+ description: 'Deprecated alias of `endpoint`; retained for backward compatibility.',
839
+ example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
419
840
  },
420
841
  {
421
842
  type: 'string',
422
- enum: ['']
843
+ enum: [
844
+ ''
845
+ ]
423
846
  }
424
847
  ]
425
848
  },
426
849
  certificate_ca: {
427
850
  type: 'string',
428
851
  description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
429
- example: `-----BEGIN CERTIFICATE-----
430
- MIIC0DCCAbigAwIBAgI...`
852
+ example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
431
853
  },
432
854
  version_current: {
433
855
  type: 'string',
@@ -448,16 +870,22 @@ MIIC0DCCAbigAwIBAgI...`
448
870
  type: 'boolean',
449
871
  description: 'Indicates if the cluster is ready to be used.',
450
872
  example: true
451
- },
452
- version_channel: {
453
- type: 'string',
454
- pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
455
- description: 'Version of the kubernetes cluster.',
456
- example: '1.x.x-cfke.x'
457
873
  }
458
874
  },
459
- required: ['name', 'tier', 'id', 'status'],
460
- additionalProperties: false
875
+ required: [
876
+ 'name',
877
+ 'tier',
878
+ 'version_channel',
879
+ 'release_channel',
880
+ 'features',
881
+ 'region',
882
+ 'networking',
883
+ 'id',
884
+ 'status',
885
+ 'ready'
886
+ ],
887
+ additionalProperties: false,
888
+ description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
461
889
  };
462
890
  export const ClusterUpdateInputSchema = {
463
891
  type: 'object',
@@ -473,18 +901,74 @@ export const ClusterUpdateInputSchema = {
473
901
  tier: {
474
902
  type: 'string',
475
903
  description: 'Tier of the cluster.',
904
+ default: 'basic',
476
905
  example: 'pro',
477
- enum: ['basic', 'pro']
906
+ enum: [
907
+ 'basic',
908
+ 'pro',
909
+ 'enterprise'
910
+ ]
478
911
  },
479
912
  version_channel: {
480
913
  type: 'string',
481
914
  pattern: '^(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)\\.(x|X|0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$',
482
915
  description: 'Version of the kubernetes cluster.',
916
+ default: '1.x.x-cfke.x',
483
917
  example: '1.x.x-cfke.x'
918
+ },
919
+ release_channel: {
920
+ type: 'string',
921
+ description: 'Release channel for the cluster\'s control plane.',
922
+ default: 'rapid',
923
+ example: 'rapid',
924
+ enum: [
925
+ 'rapid',
926
+ 'stable',
927
+ 'extended'
928
+ ]
929
+ },
930
+ features: {
931
+ type: 'object',
932
+ properties: {
933
+ gpu_sharing_strategy: {
934
+ type: 'string',
935
+ description: 'GPU sharing strategy.',
936
+ default: 'none',
937
+ example: 'none',
938
+ enum: [
939
+ 'none',
940
+ 'mps',
941
+ 'time_slicing'
942
+ ]
943
+ },
944
+ gpu_max_shared_clients_per_gpu: {
945
+ type: 'integer',
946
+ minimum: 2,
947
+ maximum: 48,
948
+ description: 'Maximum number of pods that may share a single GPU.',
949
+ default: 4,
950
+ example: 10
951
+ },
952
+ cilium_socket_lb_host_namespace_only: {
953
+ type: 'boolean',
954
+ description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
955
+ example: false
956
+ }
957
+ },
958
+ additionalProperties: false,
959
+ description: 'Cluster feature toggles.',
960
+ default: {
961
+ gpu_sharing_strategy: 'none',
962
+ gpu_max_shared_clients_per_gpu: 4,
963
+ cilium_socket_lb_host_namespace_only: false
964
+ }
484
965
  }
485
966
  },
486
- required: ['tier'],
487
- additionalProperties: false
967
+ required: [
968
+ 'name'
969
+ ],
970
+ additionalProperties: false,
971
+ description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
488
972
  };
489
973
  export const FleetCreateInputSchema = {
490
974
  type: 'object',
@@ -493,13 +977,12 @@ export const FleetCreateInputSchema = {
493
977
  type: 'object',
494
978
  properties: {
495
979
  cpu: {
496
- type: 'number',
497
- format: 'float',
980
+ type: 'integer',
498
981
  minimum: 0,
499
- description: 'CPU limit in cores.'
982
+ maximum: 100000,
983
+ description: 'CPU limit in cores. Maximum 100,000.'
500
984
  }
501
985
  },
502
- required: ['cpu'],
503
986
  additionalProperties: false,
504
987
  description: 'Limits define a set of bounds for provisioning capacity.'
505
988
  },
@@ -507,47 +990,358 @@ export const FleetCreateInputSchema = {
507
990
  type: 'object',
508
991
  properties: {
509
992
  enabled: {
510
- type: 'boolean',
511
- default: true
993
+ type: 'boolean'
512
994
  },
513
995
  project: {
514
996
  type: 'string',
515
- description: 'Project GCP Project id to deploy instances into'
997
+ pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
998
+ description: '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.',
999
+ example: 'my-cloudfleet-project'
516
1000
  }
517
1001
  },
518
- required: ['project'],
1002
+ required: [
1003
+ 'enabled'
1004
+ ],
519
1005
  additionalProperties: false
520
1006
  },
521
1007
  hetzner: {
522
1008
  type: 'object',
523
1009
  properties: {
524
1010
  enabled: {
525
- type: 'boolean',
526
- default: true
1011
+ type: 'boolean'
527
1012
  },
528
1013
  apiKey: {
529
1014
  type: 'string',
530
- description: 'Hetzner Cloud API key with read / write access'
1015
+ maxLength: 64,
1016
+ minLength: 64,
1017
+ pattern: '^([A-Za-z0-9]{64}|\\*{64})$',
1018
+ description: '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.'
531
1019
  }
532
1020
  },
533
- required: ['apiKey'],
1021
+ required: [
1022
+ 'enabled'
1023
+ ],
534
1024
  additionalProperties: false
535
1025
  },
536
1026
  aws: {
537
1027
  type: 'object',
538
1028
  properties: {
539
1029
  enabled: {
540
- type: 'boolean',
541
- default: true
1030
+ type: 'boolean'
542
1031
  },
543
1032
  controllerRoleArn: {
544
1033
  type: 'string',
545
- description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
1034
+ pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
1035
+ description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
1036
+ example: 'arn:aws:iam::123456789012:role/Cloudfleet'
546
1037
  }
547
1038
  },
548
- required: ['controllerRoleArn'],
1039
+ required: [
1040
+ 'enabled'
1041
+ ],
549
1042
  additionalProperties: false
550
1043
  },
1044
+ constraints: {
1045
+ type: 'object',
1046
+ properties: {
1047
+ 'karpenter.sh/capacity-type': {
1048
+ type: 'array',
1049
+ items: {
1050
+ type: 'string',
1051
+ enum: [
1052
+ 'on-demand',
1053
+ 'spot'
1054
+ ]
1055
+ },
1056
+ minItems: 1,
1057
+ description: 'Allowed values for `karpenter.sh/capacity-type`.',
1058
+ default: [
1059
+ 'on-demand',
1060
+ 'spot'
1061
+ ]
1062
+ },
1063
+ 'kubernetes.io/arch': {
1064
+ type: 'array',
1065
+ items: {
1066
+ type: 'string',
1067
+ enum: [
1068
+ 'amd64',
1069
+ 'arm64'
1070
+ ]
1071
+ },
1072
+ minItems: 1,
1073
+ description: 'Allowed values for `kubernetes.io/arch`.',
1074
+ default: [
1075
+ 'amd64'
1076
+ ]
1077
+ },
1078
+ 'cfke.io/instance-family': {
1079
+ type: 'array',
1080
+ items: {
1081
+ type: 'string',
1082
+ enum: [
1083
+ 'a1',
1084
+ 'a2',
1085
+ 'a3',
1086
+ 'a4',
1087
+ 'c1',
1088
+ 'c2',
1089
+ 'c2d',
1090
+ 'c3',
1091
+ 'c3d',
1092
+ 'c4',
1093
+ 'c4a',
1094
+ 'c4d',
1095
+ 'c5',
1096
+ 'c5a',
1097
+ 'c5ad',
1098
+ 'c5d',
1099
+ 'c5n',
1100
+ 'c6a',
1101
+ 'c6g',
1102
+ 'c6gd',
1103
+ 'c6gn',
1104
+ 'c6i',
1105
+ 'c6id',
1106
+ 'c6in',
1107
+ 'c7a',
1108
+ 'c7g',
1109
+ 'c7gd',
1110
+ 'c7gn',
1111
+ 'c7i',
1112
+ 'c7i-flex',
1113
+ 'c8g',
1114
+ 'c8gd',
1115
+ 'cax',
1116
+ 'ccx',
1117
+ 'cpx',
1118
+ 'cx',
1119
+ 'd2',
1120
+ 'd3',
1121
+ 'd3en',
1122
+ 'dl1',
1123
+ 'dl2q',
1124
+ 'e2',
1125
+ 'f1',
1126
+ 'f2',
1127
+ 'g1',
1128
+ 'g2',
1129
+ 'g4ad',
1130
+ 'g4dn',
1131
+ 'g5',
1132
+ 'g5g',
1133
+ 'g6',
1134
+ 'g6e',
1135
+ 'gr6',
1136
+ 'h1',
1137
+ 'h3',
1138
+ 'hpc6a',
1139
+ 'hpc6id',
1140
+ 'hpc7a',
1141
+ 'hpc7g',
1142
+ 'i2',
1143
+ 'i3',
1144
+ 'i3en',
1145
+ 'i4g',
1146
+ 'i4i',
1147
+ 'i7i',
1148
+ 'i7ie',
1149
+ 'i8g',
1150
+ 'im4gn',
1151
+ 'inf1',
1152
+ 'inf2',
1153
+ 'is4gen',
1154
+ 'm1',
1155
+ 'm2',
1156
+ 'm3',
1157
+ 'm4',
1158
+ 'm5',
1159
+ 'm5a',
1160
+ 'm5ad',
1161
+ 'm5d',
1162
+ 'm5dn',
1163
+ 'm5n',
1164
+ 'm5zn',
1165
+ 'm6a',
1166
+ 'm6g',
1167
+ 'm6gd',
1168
+ 'm6i',
1169
+ 'm6id',
1170
+ 'm6idn',
1171
+ 'm6in',
1172
+ 'm7a',
1173
+ 'm7g',
1174
+ 'm7gd',
1175
+ 'm7i',
1176
+ 'm7i-flex',
1177
+ 'm8g',
1178
+ 'm8gd',
1179
+ 'n1',
1180
+ 'n2',
1181
+ 'n2d',
1182
+ 'n4',
1183
+ 'p3',
1184
+ 'p3dn',
1185
+ 'p4d',
1186
+ 'p4de',
1187
+ 'p5',
1188
+ 'p5e',
1189
+ 'p5en',
1190
+ 'p6-b200',
1191
+ 'r3',
1192
+ 'r4',
1193
+ 'r5',
1194
+ 'r5a',
1195
+ 'r5ad',
1196
+ 'r5b',
1197
+ 'r5d',
1198
+ 'r5dn',
1199
+ 'r5n',
1200
+ 'r6a',
1201
+ 'r6g',
1202
+ 'r6gd',
1203
+ 'r6i',
1204
+ 'r6id',
1205
+ 'r6idn',
1206
+ 'r6in',
1207
+ 'r7a',
1208
+ 'r7g',
1209
+ 'r7gd',
1210
+ 'r7i',
1211
+ 'r7iz',
1212
+ 'r8g',
1213
+ 'r8gd',
1214
+ 't2',
1215
+ 't2a',
1216
+ 't2d',
1217
+ 't3',
1218
+ 't3a',
1219
+ 't4g',
1220
+ 'trn1',
1221
+ 'trn1n',
1222
+ 'u-3tb1',
1223
+ 'u-6tb1',
1224
+ 'u7i-12tb',
1225
+ 'u7i-6tb',
1226
+ 'u7i-8tb',
1227
+ 'u7in-16tb',
1228
+ 'u7in-24tb',
1229
+ 'u7in-32tb',
1230
+ 'vt1',
1231
+ 'x1',
1232
+ 'x1e',
1233
+ 'x2gd',
1234
+ 'x2idn',
1235
+ 'x2iedn',
1236
+ 'x2iezn',
1237
+ 'x4',
1238
+ 'x8g',
1239
+ 'z1d',
1240
+ 'z3'
1241
+ ]
1242
+ },
1243
+ description: 'Allowed values for `cfke.io/instance-family`.',
1244
+ default: []
1245
+ },
1246
+ 'topology.kubernetes.io/region': {
1247
+ type: 'array',
1248
+ items: {
1249
+ type: 'string',
1250
+ enum: [
1251
+ 'africa-south1',
1252
+ 'ap-northeast-1',
1253
+ 'ap-northeast-2',
1254
+ 'ap-northeast-3',
1255
+ 'ap-south-1',
1256
+ 'ap-southeast-1',
1257
+ 'ap-southeast-2',
1258
+ 'ash',
1259
+ 'asia-east1',
1260
+ 'asia-east2',
1261
+ 'asia-northeast1',
1262
+ 'asia-northeast2',
1263
+ 'asia-northeast3',
1264
+ 'asia-south1',
1265
+ 'asia-south2',
1266
+ 'asia-southeast1',
1267
+ 'asia-southeast2',
1268
+ 'australia-southeast1',
1269
+ 'australia-southeast2',
1270
+ 'ca-central-1',
1271
+ 'eu-central-1',
1272
+ 'eu-central-2',
1273
+ 'eu-north-1',
1274
+ 'eu-west-1',
1275
+ 'eu-west-2',
1276
+ 'eu-west-3',
1277
+ 'europe-central2',
1278
+ 'europe-north1',
1279
+ 'europe-southwest1',
1280
+ 'europe-west1',
1281
+ 'europe-west10',
1282
+ 'europe-west12',
1283
+ 'europe-west2',
1284
+ 'europe-west3',
1285
+ 'europe-west4',
1286
+ 'europe-west6',
1287
+ 'europe-west8',
1288
+ 'europe-west9',
1289
+ 'fsn1',
1290
+ 'hel1',
1291
+ 'hil',
1292
+ 'me-central1',
1293
+ 'me-central2',
1294
+ 'me-west1',
1295
+ 'nbg1',
1296
+ 'northamerica-northeast1',
1297
+ 'northamerica-northeast2',
1298
+ 'sa-east-1',
1299
+ 'sin',
1300
+ 'southamerica-east1',
1301
+ 'southamerica-west1',
1302
+ 'us-central1',
1303
+ 'us-east-1',
1304
+ 'us-east-2',
1305
+ 'us-east1',
1306
+ 'us-east4',
1307
+ 'us-east5',
1308
+ 'us-south1',
1309
+ 'us-west-1',
1310
+ 'us-west-2',
1311
+ 'us-west1',
1312
+ 'us-west2',
1313
+ 'us-west3',
1314
+ 'us-west4'
1315
+ ]
1316
+ },
1317
+ description: 'Allowed values for `topology.kubernetes.io/region`.',
1318
+ default: []
1319
+ }
1320
+ },
1321
+ additionalProperties: false,
1322
+ description: '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.',
1323
+ default: {
1324
+ 'karpenter.sh/capacity-type': [
1325
+ 'on-demand',
1326
+ 'spot'
1327
+ ],
1328
+ 'kubernetes.io/arch': [
1329
+ 'amd64'
1330
+ ],
1331
+ 'cfke.io/instance-family': [],
1332
+ 'topology.kubernetes.io/region': []
1333
+ }
1334
+ },
1335
+ scalingProfile: {
1336
+ type: 'string',
1337
+ description: '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`).',
1338
+ default: 'conservative',
1339
+ example: 'conservative',
1340
+ enum: [
1341
+ 'aggressive',
1342
+ 'conservative'
1343
+ ]
1344
+ },
551
1345
  id: {
552
1346
  type: 'string',
553
1347
  maxLength: 63,
@@ -557,8 +1351,11 @@ export const FleetCreateInputSchema = {
557
1351
  example: 'new-clouds-fleet'
558
1352
  }
559
1353
  },
560
- required: ['id'],
561
- additionalProperties: false
1354
+ required: [
1355
+ 'id'
1356
+ ],
1357
+ additionalProperties: false,
1358
+ description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
562
1359
  };
563
1360
  export const FleetSchema = {
564
1361
  type: 'object',
@@ -567,13 +1364,12 @@ export const FleetSchema = {
567
1364
  type: 'object',
568
1365
  properties: {
569
1366
  cpu: {
570
- type: 'number',
571
- format: 'float',
1367
+ type: 'integer',
572
1368
  minimum: 0,
573
- description: 'CPU limit in cores.'
1369
+ maximum: 100000,
1370
+ description: 'CPU limit in cores. Maximum 100,000.'
574
1371
  }
575
1372
  },
576
- required: ['cpu'],
577
1373
  additionalProperties: false,
578
1374
  description: 'Limits define a set of bounds for provisioning capacity.'
579
1375
  },
@@ -581,47 +1377,360 @@ export const FleetSchema = {
581
1377
  type: 'object',
582
1378
  properties: {
583
1379
  enabled: {
584
- type: 'boolean',
585
- default: true
1380
+ type: 'boolean'
586
1381
  },
587
1382
  project: {
588
1383
  type: 'string',
589
- description: 'Project GCP Project id to deploy instances into'
1384
+ pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
1385
+ description: '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.',
1386
+ example: 'my-cloudfleet-project'
590
1387
  }
591
1388
  },
592
- required: ['project'],
1389
+ required: [
1390
+ 'enabled'
1391
+ ],
593
1392
  additionalProperties: false
594
1393
  },
595
1394
  hetzner: {
596
1395
  type: 'object',
597
1396
  properties: {
598
1397
  enabled: {
599
- type: 'boolean',
600
- default: true
1398
+ type: 'boolean'
601
1399
  },
602
1400
  apiKey: {
603
1401
  type: 'string',
604
- description: 'Hetzner Cloud API key with read / write access'
1402
+ pattern: '^\\*{64}$',
1403
+ description: 'Redacted Hetzner API token. Returned as 64 asterisks when a token is configured; omitted otherwise. The real value is never echoed by the API.'
605
1404
  }
606
1405
  },
607
- required: ['apiKey'],
1406
+ required: [
1407
+ 'enabled'
1408
+ ],
608
1409
  additionalProperties: false
609
1410
  },
610
1411
  aws: {
611
1412
  type: 'object',
612
1413
  properties: {
613
1414
  enabled: {
614
- type: 'boolean',
615
- default: true
1415
+ type: 'boolean'
616
1416
  },
617
1417
  controllerRoleArn: {
618
1418
  type: 'string',
619
- description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
1419
+ pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
1420
+ description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
1421
+ example: 'arn:aws:iam::123456789012:role/Cloudfleet'
620
1422
  }
621
1423
  },
622
- required: ['controllerRoleArn'],
1424
+ required: [
1425
+ 'enabled'
1426
+ ],
623
1427
  additionalProperties: false
624
1428
  },
1429
+ constraints: {
1430
+ type: 'object',
1431
+ properties: {
1432
+ 'karpenter.sh/capacity-type': {
1433
+ type: 'array',
1434
+ items: {
1435
+ type: 'string',
1436
+ enum: [
1437
+ 'on-demand',
1438
+ 'spot'
1439
+ ]
1440
+ },
1441
+ minItems: 1,
1442
+ description: 'Allowed values for `karpenter.sh/capacity-type`.',
1443
+ default: [
1444
+ 'on-demand',
1445
+ 'spot'
1446
+ ]
1447
+ },
1448
+ 'kubernetes.io/arch': {
1449
+ type: 'array',
1450
+ items: {
1451
+ type: 'string',
1452
+ enum: [
1453
+ 'amd64',
1454
+ 'arm64'
1455
+ ]
1456
+ },
1457
+ minItems: 1,
1458
+ description: 'Allowed values for `kubernetes.io/arch`.',
1459
+ default: [
1460
+ 'amd64'
1461
+ ]
1462
+ },
1463
+ 'cfke.io/instance-family': {
1464
+ type: 'array',
1465
+ items: {
1466
+ type: 'string',
1467
+ enum: [
1468
+ 'a1',
1469
+ 'a2',
1470
+ 'a3',
1471
+ 'a4',
1472
+ 'c1',
1473
+ 'c2',
1474
+ 'c2d',
1475
+ 'c3',
1476
+ 'c3d',
1477
+ 'c4',
1478
+ 'c4a',
1479
+ 'c4d',
1480
+ 'c5',
1481
+ 'c5a',
1482
+ 'c5ad',
1483
+ 'c5d',
1484
+ 'c5n',
1485
+ 'c6a',
1486
+ 'c6g',
1487
+ 'c6gd',
1488
+ 'c6gn',
1489
+ 'c6i',
1490
+ 'c6id',
1491
+ 'c6in',
1492
+ 'c7a',
1493
+ 'c7g',
1494
+ 'c7gd',
1495
+ 'c7gn',
1496
+ 'c7i',
1497
+ 'c7i-flex',
1498
+ 'c8g',
1499
+ 'c8gd',
1500
+ 'cax',
1501
+ 'ccx',
1502
+ 'cpx',
1503
+ 'cx',
1504
+ 'd2',
1505
+ 'd3',
1506
+ 'd3en',
1507
+ 'dl1',
1508
+ 'dl2q',
1509
+ 'e2',
1510
+ 'f1',
1511
+ 'f2',
1512
+ 'g1',
1513
+ 'g2',
1514
+ 'g4ad',
1515
+ 'g4dn',
1516
+ 'g5',
1517
+ 'g5g',
1518
+ 'g6',
1519
+ 'g6e',
1520
+ 'gr6',
1521
+ 'h1',
1522
+ 'h3',
1523
+ 'hpc6a',
1524
+ 'hpc6id',
1525
+ 'hpc7a',
1526
+ 'hpc7g',
1527
+ 'i2',
1528
+ 'i3',
1529
+ 'i3en',
1530
+ 'i4g',
1531
+ 'i4i',
1532
+ 'i7i',
1533
+ 'i7ie',
1534
+ 'i8g',
1535
+ 'im4gn',
1536
+ 'inf1',
1537
+ 'inf2',
1538
+ 'is4gen',
1539
+ 'm1',
1540
+ 'm2',
1541
+ 'm3',
1542
+ 'm4',
1543
+ 'm5',
1544
+ 'm5a',
1545
+ 'm5ad',
1546
+ 'm5d',
1547
+ 'm5dn',
1548
+ 'm5n',
1549
+ 'm5zn',
1550
+ 'm6a',
1551
+ 'm6g',
1552
+ 'm6gd',
1553
+ 'm6i',
1554
+ 'm6id',
1555
+ 'm6idn',
1556
+ 'm6in',
1557
+ 'm7a',
1558
+ 'm7g',
1559
+ 'm7gd',
1560
+ 'm7i',
1561
+ 'm7i-flex',
1562
+ 'm8g',
1563
+ 'm8gd',
1564
+ 'n1',
1565
+ 'n2',
1566
+ 'n2d',
1567
+ 'n4',
1568
+ 'p3',
1569
+ 'p3dn',
1570
+ 'p4d',
1571
+ 'p4de',
1572
+ 'p5',
1573
+ 'p5e',
1574
+ 'p5en',
1575
+ 'p6-b200',
1576
+ 'r3',
1577
+ 'r4',
1578
+ 'r5',
1579
+ 'r5a',
1580
+ 'r5ad',
1581
+ 'r5b',
1582
+ 'r5d',
1583
+ 'r5dn',
1584
+ 'r5n',
1585
+ 'r6a',
1586
+ 'r6g',
1587
+ 'r6gd',
1588
+ 'r6i',
1589
+ 'r6id',
1590
+ 'r6idn',
1591
+ 'r6in',
1592
+ 'r7a',
1593
+ 'r7g',
1594
+ 'r7gd',
1595
+ 'r7i',
1596
+ 'r7iz',
1597
+ 'r8g',
1598
+ 'r8gd',
1599
+ 't2',
1600
+ 't2a',
1601
+ 't2d',
1602
+ 't3',
1603
+ 't3a',
1604
+ 't4g',
1605
+ 'trn1',
1606
+ 'trn1n',
1607
+ 'u-3tb1',
1608
+ 'u-6tb1',
1609
+ 'u7i-12tb',
1610
+ 'u7i-6tb',
1611
+ 'u7i-8tb',
1612
+ 'u7in-16tb',
1613
+ 'u7in-24tb',
1614
+ 'u7in-32tb',
1615
+ 'vt1',
1616
+ 'x1',
1617
+ 'x1e',
1618
+ 'x2gd',
1619
+ 'x2idn',
1620
+ 'x2iedn',
1621
+ 'x2iezn',
1622
+ 'x4',
1623
+ 'x8g',
1624
+ 'z1d',
1625
+ 'z3'
1626
+ ]
1627
+ },
1628
+ description: 'Allowed values for `cfke.io/instance-family`.',
1629
+ default: []
1630
+ },
1631
+ 'topology.kubernetes.io/region': {
1632
+ type: 'array',
1633
+ items: {
1634
+ type: 'string',
1635
+ enum: [
1636
+ 'africa-south1',
1637
+ 'ap-northeast-1',
1638
+ 'ap-northeast-2',
1639
+ 'ap-northeast-3',
1640
+ 'ap-south-1',
1641
+ 'ap-southeast-1',
1642
+ 'ap-southeast-2',
1643
+ 'ash',
1644
+ 'asia-east1',
1645
+ 'asia-east2',
1646
+ 'asia-northeast1',
1647
+ 'asia-northeast2',
1648
+ 'asia-northeast3',
1649
+ 'asia-south1',
1650
+ 'asia-south2',
1651
+ 'asia-southeast1',
1652
+ 'asia-southeast2',
1653
+ 'australia-southeast1',
1654
+ 'australia-southeast2',
1655
+ 'ca-central-1',
1656
+ 'eu-central-1',
1657
+ 'eu-central-2',
1658
+ 'eu-north-1',
1659
+ 'eu-west-1',
1660
+ 'eu-west-2',
1661
+ 'eu-west-3',
1662
+ 'europe-central2',
1663
+ 'europe-north1',
1664
+ 'europe-southwest1',
1665
+ 'europe-west1',
1666
+ 'europe-west10',
1667
+ 'europe-west12',
1668
+ 'europe-west2',
1669
+ 'europe-west3',
1670
+ 'europe-west4',
1671
+ 'europe-west6',
1672
+ 'europe-west8',
1673
+ 'europe-west9',
1674
+ 'fsn1',
1675
+ 'hel1',
1676
+ 'hil',
1677
+ 'me-central1',
1678
+ 'me-central2',
1679
+ 'me-west1',
1680
+ 'nbg1',
1681
+ 'northamerica-northeast1',
1682
+ 'northamerica-northeast2',
1683
+ 'sa-east-1',
1684
+ 'sin',
1685
+ 'southamerica-east1',
1686
+ 'southamerica-west1',
1687
+ 'us-central1',
1688
+ 'us-east-1',
1689
+ 'us-east-2',
1690
+ 'us-east1',
1691
+ 'us-east4',
1692
+ 'us-east5',
1693
+ 'us-south1',
1694
+ 'us-west-1',
1695
+ 'us-west-2',
1696
+ 'us-west1',
1697
+ 'us-west2',
1698
+ 'us-west3',
1699
+ 'us-west4'
1700
+ ]
1701
+ },
1702
+ description: 'Allowed values for `topology.kubernetes.io/region`.',
1703
+ default: []
1704
+ }
1705
+ },
1706
+ required: [
1707
+ 'karpenter.sh/capacity-type',
1708
+ 'kubernetes.io/arch'
1709
+ ],
1710
+ additionalProperties: false,
1711
+ description: '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.',
1712
+ default: {
1713
+ 'karpenter.sh/capacity-type': [
1714
+ 'on-demand',
1715
+ 'spot'
1716
+ ],
1717
+ 'kubernetes.io/arch': [
1718
+ 'amd64'
1719
+ ],
1720
+ 'cfke.io/instance-family': [],
1721
+ 'topology.kubernetes.io/region': []
1722
+ }
1723
+ },
1724
+ scalingProfile: {
1725
+ type: 'string',
1726
+ description: '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`).',
1727
+ default: 'conservative',
1728
+ example: 'conservative',
1729
+ enum: [
1730
+ 'aggressive',
1731
+ 'conservative'
1732
+ ]
1733
+ },
625
1734
  id: {
626
1735
  type: 'string',
627
1736
  maxLength: 63,
@@ -629,10 +1738,38 @@ export const FleetSchema = {
629
1738
  pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
630
1739
  description: 'Unique identifier of the kubernetes fleet.',
631
1740
  example: 'new-clouds-fleet'
1741
+ },
1742
+ ready: {
1743
+ type: 'boolean',
1744
+ description: 'Indicates whether the fleet configuration is healthy.',
1745
+ example: true
1746
+ },
1747
+ status_message: {
1748
+ type: 'string',
1749
+ description: 'Human-readable reason the fleet is not ready. Present only when `ready` is false.',
1750
+ example: 'Invalid provider permissions.'
1751
+ },
1752
+ created_at: {
1753
+ type: 'string',
1754
+ description: 'Creation date and time of the fleet.',
1755
+ example: '2024-09-12T09:11:27Z'
1756
+ },
1757
+ updated_at: {
1758
+ type: 'string',
1759
+ description: 'Date and time the fleet was last updated.',
1760
+ example: '2024-09-12T09:11:27Z'
632
1761
  }
633
1762
  },
634
- required: ['id'],
635
- additionalProperties: false
1763
+ required: [
1764
+ 'constraints',
1765
+ 'scalingProfile',
1766
+ 'id',
1767
+ 'ready',
1768
+ 'created_at',
1769
+ 'updated_at'
1770
+ ],
1771
+ additionalProperties: false,
1772
+ description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
636
1773
  };
637
1774
  export const FleetUpdateInputSchema = {
638
1775
  type: 'object',
@@ -641,13 +1778,12 @@ export const FleetUpdateInputSchema = {
641
1778
  type: 'object',
642
1779
  properties: {
643
1780
  cpu: {
644
- type: 'number',
645
- format: 'float',
1781
+ type: 'integer',
646
1782
  minimum: 0,
647
- description: 'CPU limit in cores.'
1783
+ maximum: 100000,
1784
+ description: 'CPU limit in cores. Maximum 100,000.'
648
1785
  }
649
1786
  },
650
- required: ['cpu'],
651
1787
  additionalProperties: false,
652
1788
  description: 'Limits define a set of bounds for provisioning capacity.'
653
1789
  },
@@ -655,48 +1791,385 @@ export const FleetUpdateInputSchema = {
655
1791
  type: 'object',
656
1792
  properties: {
657
1793
  enabled: {
658
- type: 'boolean',
659
- default: true
1794
+ type: 'boolean'
660
1795
  },
661
1796
  project: {
662
1797
  type: 'string',
663
- description: 'Project GCP Project id to deploy instances into'
1798
+ pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
1799
+ description: '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.',
1800
+ example: 'my-cloudfleet-project'
664
1801
  }
665
1802
  },
666
- required: ['project'],
1803
+ required: [
1804
+ 'enabled'
1805
+ ],
667
1806
  additionalProperties: false
668
1807
  },
669
1808
  hetzner: {
670
1809
  type: 'object',
671
1810
  properties: {
672
1811
  enabled: {
673
- type: 'boolean',
674
- default: true
1812
+ type: 'boolean'
675
1813
  },
676
1814
  apiKey: {
677
1815
  type: 'string',
678
- description: 'Hetzner Cloud API key with read / write access'
1816
+ maxLength: 64,
1817
+ minLength: 64,
1818
+ pattern: '^([A-Za-z0-9]{64}|\\*{64})$',
1819
+ description: '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.'
679
1820
  }
680
1821
  },
681
- required: ['apiKey'],
1822
+ required: [
1823
+ 'enabled'
1824
+ ],
682
1825
  additionalProperties: false
683
1826
  },
684
1827
  aws: {
685
1828
  type: 'object',
686
1829
  properties: {
687
1830
  enabled: {
688
- type: 'boolean',
689
- default: true
1831
+ type: 'boolean'
690
1832
  },
691
1833
  controllerRoleArn: {
692
1834
  type: 'string',
693
- description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
1835
+ pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
1836
+ description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
1837
+ example: 'arn:aws:iam::123456789012:role/Cloudfleet'
694
1838
  }
695
1839
  },
696
- required: ['controllerRoleArn'],
1840
+ required: [
1841
+ 'enabled'
1842
+ ],
697
1843
  additionalProperties: false
1844
+ },
1845
+ constraints: {
1846
+ type: 'object',
1847
+ properties: {
1848
+ 'karpenter.sh/capacity-type': {
1849
+ type: 'array',
1850
+ items: {
1851
+ type: 'string',
1852
+ enum: [
1853
+ 'on-demand',
1854
+ 'spot'
1855
+ ]
1856
+ },
1857
+ minItems: 1,
1858
+ description: 'Allowed values for `karpenter.sh/capacity-type`.',
1859
+ default: [
1860
+ 'on-demand',
1861
+ 'spot'
1862
+ ]
1863
+ },
1864
+ 'kubernetes.io/arch': {
1865
+ type: 'array',
1866
+ items: {
1867
+ type: 'string',
1868
+ enum: [
1869
+ 'amd64',
1870
+ 'arm64'
1871
+ ]
1872
+ },
1873
+ minItems: 1,
1874
+ description: 'Allowed values for `kubernetes.io/arch`.',
1875
+ default: [
1876
+ 'amd64'
1877
+ ]
1878
+ },
1879
+ 'cfke.io/instance-family': {
1880
+ type: 'array',
1881
+ items: {
1882
+ type: 'string',
1883
+ enum: [
1884
+ 'a1',
1885
+ 'a2',
1886
+ 'a3',
1887
+ 'a4',
1888
+ 'c1',
1889
+ 'c2',
1890
+ 'c2d',
1891
+ 'c3',
1892
+ 'c3d',
1893
+ 'c4',
1894
+ 'c4a',
1895
+ 'c4d',
1896
+ 'c5',
1897
+ 'c5a',
1898
+ 'c5ad',
1899
+ 'c5d',
1900
+ 'c5n',
1901
+ 'c6a',
1902
+ 'c6g',
1903
+ 'c6gd',
1904
+ 'c6gn',
1905
+ 'c6i',
1906
+ 'c6id',
1907
+ 'c6in',
1908
+ 'c7a',
1909
+ 'c7g',
1910
+ 'c7gd',
1911
+ 'c7gn',
1912
+ 'c7i',
1913
+ 'c7i-flex',
1914
+ 'c8g',
1915
+ 'c8gd',
1916
+ 'cax',
1917
+ 'ccx',
1918
+ 'cpx',
1919
+ 'cx',
1920
+ 'd2',
1921
+ 'd3',
1922
+ 'd3en',
1923
+ 'dl1',
1924
+ 'dl2q',
1925
+ 'e2',
1926
+ 'f1',
1927
+ 'f2',
1928
+ 'g1',
1929
+ 'g2',
1930
+ 'g4ad',
1931
+ 'g4dn',
1932
+ 'g5',
1933
+ 'g5g',
1934
+ 'g6',
1935
+ 'g6e',
1936
+ 'gr6',
1937
+ 'h1',
1938
+ 'h3',
1939
+ 'hpc6a',
1940
+ 'hpc6id',
1941
+ 'hpc7a',
1942
+ 'hpc7g',
1943
+ 'i2',
1944
+ 'i3',
1945
+ 'i3en',
1946
+ 'i4g',
1947
+ 'i4i',
1948
+ 'i7i',
1949
+ 'i7ie',
1950
+ 'i8g',
1951
+ 'im4gn',
1952
+ 'inf1',
1953
+ 'inf2',
1954
+ 'is4gen',
1955
+ 'm1',
1956
+ 'm2',
1957
+ 'm3',
1958
+ 'm4',
1959
+ 'm5',
1960
+ 'm5a',
1961
+ 'm5ad',
1962
+ 'm5d',
1963
+ 'm5dn',
1964
+ 'm5n',
1965
+ 'm5zn',
1966
+ 'm6a',
1967
+ 'm6g',
1968
+ 'm6gd',
1969
+ 'm6i',
1970
+ 'm6id',
1971
+ 'm6idn',
1972
+ 'm6in',
1973
+ 'm7a',
1974
+ 'm7g',
1975
+ 'm7gd',
1976
+ 'm7i',
1977
+ 'm7i-flex',
1978
+ 'm8g',
1979
+ 'm8gd',
1980
+ 'n1',
1981
+ 'n2',
1982
+ 'n2d',
1983
+ 'n4',
1984
+ 'p3',
1985
+ 'p3dn',
1986
+ 'p4d',
1987
+ 'p4de',
1988
+ 'p5',
1989
+ 'p5e',
1990
+ 'p5en',
1991
+ 'p6-b200',
1992
+ 'r3',
1993
+ 'r4',
1994
+ 'r5',
1995
+ 'r5a',
1996
+ 'r5ad',
1997
+ 'r5b',
1998
+ 'r5d',
1999
+ 'r5dn',
2000
+ 'r5n',
2001
+ 'r6a',
2002
+ 'r6g',
2003
+ 'r6gd',
2004
+ 'r6i',
2005
+ 'r6id',
2006
+ 'r6idn',
2007
+ 'r6in',
2008
+ 'r7a',
2009
+ 'r7g',
2010
+ 'r7gd',
2011
+ 'r7i',
2012
+ 'r7iz',
2013
+ 'r8g',
2014
+ 'r8gd',
2015
+ 't2',
2016
+ 't2a',
2017
+ 't2d',
2018
+ 't3',
2019
+ 't3a',
2020
+ 't4g',
2021
+ 'trn1',
2022
+ 'trn1n',
2023
+ 'u-3tb1',
2024
+ 'u-6tb1',
2025
+ 'u7i-12tb',
2026
+ 'u7i-6tb',
2027
+ 'u7i-8tb',
2028
+ 'u7in-16tb',
2029
+ 'u7in-24tb',
2030
+ 'u7in-32tb',
2031
+ 'vt1',
2032
+ 'x1',
2033
+ 'x1e',
2034
+ 'x2gd',
2035
+ 'x2idn',
2036
+ 'x2iedn',
2037
+ 'x2iezn',
2038
+ 'x4',
2039
+ 'x8g',
2040
+ 'z1d',
2041
+ 'z3'
2042
+ ]
2043
+ },
2044
+ description: 'Allowed values for `cfke.io/instance-family`.',
2045
+ default: []
2046
+ },
2047
+ 'topology.kubernetes.io/region': {
2048
+ type: 'array',
2049
+ items: {
2050
+ type: 'string',
2051
+ enum: [
2052
+ 'africa-south1',
2053
+ 'ap-northeast-1',
2054
+ 'ap-northeast-2',
2055
+ 'ap-northeast-3',
2056
+ 'ap-south-1',
2057
+ 'ap-southeast-1',
2058
+ 'ap-southeast-2',
2059
+ 'ash',
2060
+ 'asia-east1',
2061
+ 'asia-east2',
2062
+ 'asia-northeast1',
2063
+ 'asia-northeast2',
2064
+ 'asia-northeast3',
2065
+ 'asia-south1',
2066
+ 'asia-south2',
2067
+ 'asia-southeast1',
2068
+ 'asia-southeast2',
2069
+ 'australia-southeast1',
2070
+ 'australia-southeast2',
2071
+ 'ca-central-1',
2072
+ 'eu-central-1',
2073
+ 'eu-central-2',
2074
+ 'eu-north-1',
2075
+ 'eu-west-1',
2076
+ 'eu-west-2',
2077
+ 'eu-west-3',
2078
+ 'europe-central2',
2079
+ 'europe-north1',
2080
+ 'europe-southwest1',
2081
+ 'europe-west1',
2082
+ 'europe-west10',
2083
+ 'europe-west12',
2084
+ 'europe-west2',
2085
+ 'europe-west3',
2086
+ 'europe-west4',
2087
+ 'europe-west6',
2088
+ 'europe-west8',
2089
+ 'europe-west9',
2090
+ 'fsn1',
2091
+ 'hel1',
2092
+ 'hil',
2093
+ 'me-central1',
2094
+ 'me-central2',
2095
+ 'me-west1',
2096
+ 'nbg1',
2097
+ 'northamerica-northeast1',
2098
+ 'northamerica-northeast2',
2099
+ 'sa-east-1',
2100
+ 'sin',
2101
+ 'southamerica-east1',
2102
+ 'southamerica-west1',
2103
+ 'us-central1',
2104
+ 'us-east-1',
2105
+ 'us-east-2',
2106
+ 'us-east1',
2107
+ 'us-east4',
2108
+ 'us-east5',
2109
+ 'us-south1',
2110
+ 'us-west-1',
2111
+ 'us-west-2',
2112
+ 'us-west1',
2113
+ 'us-west2',
2114
+ 'us-west3',
2115
+ 'us-west4'
2116
+ ]
2117
+ },
2118
+ description: 'Allowed values for `topology.kubernetes.io/region`.',
2119
+ default: []
2120
+ }
2121
+ },
2122
+ additionalProperties: false,
2123
+ description: '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.',
2124
+ default: {
2125
+ 'karpenter.sh/capacity-type': [
2126
+ 'on-demand',
2127
+ 'spot'
2128
+ ],
2129
+ 'kubernetes.io/arch': [
2130
+ 'amd64'
2131
+ ],
2132
+ 'cfke.io/instance-family': [],
2133
+ 'topology.kubernetes.io/region': []
2134
+ }
2135
+ },
2136
+ scalingProfile: {
2137
+ type: 'string',
2138
+ description: '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`).',
2139
+ default: 'conservative',
2140
+ example: 'conservative',
2141
+ enum: [
2142
+ 'aggressive',
2143
+ 'conservative'
2144
+ ]
2145
+ }
2146
+ },
2147
+ additionalProperties: false,
2148
+ description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
2149
+ };
2150
+ export const InviteCreateInputSchema = {
2151
+ type: 'object',
2152
+ properties: {
2153
+ email: {
2154
+ type: 'string',
2155
+ format: 'email',
2156
+ description: 'Email address of the user to invite.',
2157
+ example: 'email@example.com'
2158
+ },
2159
+ role: {
2160
+ type: 'string',
2161
+ description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
2162
+ default: 'User',
2163
+ example: 'User',
2164
+ enum: [
2165
+ 'Administrator',
2166
+ 'User'
2167
+ ]
698
2168
  }
699
2169
  },
2170
+ required: [
2171
+ 'email'
2172
+ ],
700
2173
  additionalProperties: false
701
2174
  };
702
2175
  export const InviteSchema = {
@@ -729,9 +2202,185 @@ export const InviteSchema = {
729
2202
  type: 'string',
730
2203
  description: 'Generated unique invite code.',
731
2204
  example: '7kUZnH7nnKUFfvc4NK2KQF'
2205
+ },
2206
+ role: {
2207
+ type: 'string',
2208
+ description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
2209
+ default: 'User',
2210
+ example: 'User',
2211
+ enum: [
2212
+ 'Administrator',
2213
+ 'User'
2214
+ ]
2215
+ }
2216
+ },
2217
+ required: [
2218
+ 'date_created'
2219
+ ],
2220
+ additionalProperties: false
2221
+ };
2222
+ export const InvoicePaymentAttemptSchema = {
2223
+ type: 'object',
2224
+ properties: {
2225
+ invoice_id: {
2226
+ type: 'string',
2227
+ description: 'Identifier of the invoice.',
2228
+ example: 'in_1234567890xCrwxghOTj1234'
2229
+ },
2230
+ number: {
2231
+ type: 'string',
2232
+ nullable: true,
2233
+ description: 'Invoice number. Null if the invoice has no number.',
2234
+ example: 'CF-0042'
2235
+ },
2236
+ amount: {
2237
+ type: 'number',
2238
+ format: 'float',
2239
+ description: 'Amount outstanding when the charge was attempted, in the smallest currency unit.',
2240
+ example: 4200
2241
+ },
2242
+ currency: {
2243
+ type: 'string',
2244
+ description: 'Currency of the invoice.',
2245
+ example: 'eur'
2246
+ },
2247
+ status: {
2248
+ type: 'string',
2249
+ description: 'Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).',
2250
+ example: 'paid',
2251
+ enum: [
2252
+ 'paid',
2253
+ 'processing',
2254
+ 'requires_action',
2255
+ 'failed'
2256
+ ]
2257
+ },
2258
+ client_secret: {
2259
+ type: 'string',
2260
+ nullable: true,
2261
+ description: 'Client secret used to complete customer authentication. Set only when `status` is `requires_action`.',
2262
+ example: 'pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH'
2263
+ },
2264
+ failure_code: {
2265
+ type: 'string',
2266
+ nullable: true,
2267
+ description: 'Decline code. Set only when `status` is `failed`.',
2268
+ example: 'insufficient_funds'
2269
+ },
2270
+ failure_message: {
2271
+ type: 'string',
2272
+ nullable: true,
2273
+ description: 'Explanation of the decline, suitable for display. Set only when `status` is `failed`.',
2274
+ example: 'Your card has insufficient funds.'
2275
+ }
2276
+ },
2277
+ required: [
2278
+ 'invoice_id',
2279
+ 'number',
2280
+ 'amount',
2281
+ 'currency',
2282
+ 'status',
2283
+ 'client_secret',
2284
+ 'failure_code',
2285
+ 'failure_message'
2286
+ ],
2287
+ additionalProperties: false
2288
+ };
2289
+ export const InvoicePaymentResultSchema = {
2290
+ type: 'object',
2291
+ properties: {
2292
+ code: {
2293
+ type: 'string',
2294
+ description: '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).',
2295
+ example: 'partially_paid',
2296
+ enum: [
2297
+ 'paid',
2298
+ 'processing',
2299
+ 'action_required',
2300
+ 'partially_paid',
2301
+ 'failed',
2302
+ 'nothing_due',
2303
+ 'bank_transfer_due'
2304
+ ]
2305
+ },
2306
+ message: {
2307
+ type: 'string',
2308
+ description: 'Summary of the outcome, suitable for display.',
2309
+ example: '1 of 2 open invoices was paid. Invoice CF-0043 was declined: Your card has insufficient funds.'
2310
+ },
2311
+ results: {
2312
+ type: 'array',
2313
+ items: {
2314
+ type: 'object',
2315
+ properties: {
2316
+ invoice_id: {
2317
+ type: 'string',
2318
+ description: 'Identifier of the invoice.',
2319
+ example: 'in_1234567890xCrwxghOTj1234'
2320
+ },
2321
+ number: {
2322
+ type: 'string',
2323
+ description: 'Invoice number. Null if the invoice has no number.',
2324
+ example: 'CF-0042'
2325
+ },
2326
+ amount: {
2327
+ type: 'number',
2328
+ format: 'float',
2329
+ description: 'Amount outstanding when the charge was attempted, in the smallest currency unit.',
2330
+ example: 4200
2331
+ },
2332
+ currency: {
2333
+ type: 'string',
2334
+ description: 'Currency of the invoice.',
2335
+ example: 'eur'
2336
+ },
2337
+ status: {
2338
+ type: 'string',
2339
+ description: 'Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).',
2340
+ example: 'paid',
2341
+ enum: [
2342
+ 'paid',
2343
+ 'processing',
2344
+ 'requires_action',
2345
+ 'failed'
2346
+ ]
2347
+ },
2348
+ client_secret: {
2349
+ type: 'string',
2350
+ description: 'Client secret used to complete customer authentication. Set only when `status` is `requires_action`.',
2351
+ example: 'pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH'
2352
+ },
2353
+ failure_code: {
2354
+ type: 'string',
2355
+ description: 'Decline code. Set only when `status` is `failed`.',
2356
+ example: 'insufficient_funds'
2357
+ },
2358
+ failure_message: {
2359
+ type: 'string',
2360
+ description: 'Explanation of the decline, suitable for display. Set only when `status` is `failed`.',
2361
+ example: 'Your card has insufficient funds.'
2362
+ }
2363
+ },
2364
+ required: [
2365
+ 'invoice_id',
2366
+ 'number',
2367
+ 'amount',
2368
+ 'currency',
2369
+ 'status',
2370
+ 'client_secret',
2371
+ 'failure_code',
2372
+ 'failure_message'
2373
+ ],
2374
+ additionalProperties: false
2375
+ },
2376
+ description: 'One entry per invoice charged, oldest first.'
732
2377
  }
733
2378
  },
734
- required: ['date_created'],
2379
+ required: [
2380
+ 'code',
2381
+ 'message',
2382
+ 'results'
2383
+ ],
735
2384
  additionalProperties: false
736
2385
  };
737
2386
  export const InvoiceSchema = {
@@ -783,7 +2432,11 @@ export const InvoiceSchema = {
783
2432
  type: 'string'
784
2433
  }
785
2434
  },
786
- required: ['created', 'period_start', 'period_end'],
2435
+ required: [
2436
+ 'created',
2437
+ 'period_start',
2438
+ 'period_end'
2439
+ ],
787
2440
  additionalProperties: false
788
2441
  };
789
2442
  export const MarketplaceListingFilesSchema = {
@@ -792,18 +2445,12 @@ export const MarketplaceListingFilesSchema = {
792
2445
  chartYaml: {
793
2446
  type: 'string',
794
2447
  description: 'Raw Chart.yaml content from the Helm chart',
795
- example: `apiVersion: v2
796
- name: nginx-ingress
797
- version: 1.18.2-cfke.45
798
- appVersion: 1.9.4`
2448
+ example: 'apiVersion: v2\nname: nginx-ingress\nversion: 1.18.2-cfke.45\nappVersion: 1.9.4'
799
2449
  },
800
2450
  valuesYaml: {
801
2451
  type: 'string',
802
2452
  description: 'Raw values.yaml content from the Helm chart',
803
- example: `replicaCount: 1
804
- image:
805
- repository: nginx
806
- tag: latest`
2453
+ example: 'replicaCount: 1\nimage:\n repository: nginx\n tag: latest'
807
2454
  },
808
2455
  valuesSchemaJson: {
809
2456
  type: 'string',
@@ -880,20 +2527,31 @@ export const MarketplaceListingSchema = {
880
2527
  type: 'string'
881
2528
  },
882
2529
  description: 'Chart keywords',
883
- example: ['ingress', 'nginx', 'load-balancer']
2530
+ example: [
2531
+ 'ingress',
2532
+ 'nginx',
2533
+ 'load-balancer'
2534
+ ]
884
2535
  },
885
2536
  home: {
886
2537
  type: 'string',
887
2538
  description: 'Chart home URL',
888
2539
  example: 'https://kubernetes.github.io/ingress-nginx/'
889
2540
  },
2541
+ icon: {
2542
+ type: 'string',
2543
+ description: 'A URL to an SVG or PNG image to be used as an icon',
2544
+ example: 'https://cloudfleet.ai/images/marketplace/icons/ingress-nginx.png'
2545
+ },
890
2546
  sources: {
891
2547
  type: 'array',
892
2548
  items: {
893
2549
  type: 'string'
894
2550
  },
895
2551
  description: 'Chart source URLs',
896
- example: ['https://github.com/kubernetes/ingress-nginx']
2552
+ example: [
2553
+ 'https://github.com/kubernetes/ingress-nginx'
2554
+ ]
897
2555
  },
898
2556
  maintainers: {
899
2557
  type: 'array',
@@ -911,23 +2569,42 @@ export const MarketplaceListingSchema = {
911
2569
  example: 'support@nginx.org'
912
2570
  }
913
2571
  },
914
- required: ['name'],
2572
+ required: [
2573
+ 'name'
2574
+ ],
915
2575
  additionalProperties: false
916
2576
  },
917
2577
  description: 'Chart maintainers'
918
2578
  }
919
2579
  },
920
- required: ['name', 'version'],
2580
+ required: [
2581
+ 'name',
2582
+ 'version'
2583
+ ],
921
2584
  additionalProperties: false,
922
2585
  description: 'Chart metadata'
923
2586
  }
924
2587
  },
925
- required: ['name', 'versions', 'version_channels', 'latestVersion'],
2588
+ required: [
2589
+ 'name',
2590
+ 'versions',
2591
+ 'version_channels',
2592
+ 'latestVersion'
2593
+ ],
926
2594
  additionalProperties: false
927
2595
  };
928
2596
  export const OrganizationCreateInputSchema = {
929
2597
  type: 'object',
930
2598
  properties: {
2599
+ type: {
2600
+ type: 'string',
2601
+ description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
2602
+ example: 'business',
2603
+ enum: [
2604
+ 'business',
2605
+ 'personal'
2606
+ ]
2607
+ },
931
2608
  email: {
932
2609
  type: 'string',
933
2610
  format: 'email',
@@ -936,11 +2613,13 @@ export const OrganizationCreateInputSchema = {
936
2613
  },
937
2614
  first_name: {
938
2615
  type: 'string',
2616
+ minLength: 1,
939
2617
  description: 'First name of the billing contact person.',
940
2618
  example: 'John'
941
2619
  },
942
2620
  last_name: {
943
2621
  type: 'string',
2622
+ minLength: 1,
944
2623
  description: 'Last name of the billing contact person.',
945
2624
  example: 'Doe'
946
2625
  },
@@ -958,7 +2637,28 @@ export const OrganizationCreateInputSchema = {
958
2637
  description: 'Password for the root account. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.'
959
2638
  }
960
2639
  },
961
- required: ['email', 'first_name', 'last_name', 'company_name', 'password'],
2640
+ required: [
2641
+ 'type',
2642
+ 'email',
2643
+ 'first_name',
2644
+ 'last_name',
2645
+ 'company_name',
2646
+ 'password'
2647
+ ],
2648
+ additionalProperties: false
2649
+ };
2650
+ export const OrganizationCreateOutputSchema = {
2651
+ type: 'object',
2652
+ properties: {
2653
+ id: {
2654
+ type: 'string',
2655
+ description: 'Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.',
2656
+ example: 'organization-id'
2657
+ }
2658
+ },
2659
+ required: [
2660
+ 'id'
2661
+ ],
962
2662
  additionalProperties: false
963
2663
  };
964
2664
  export const OrganizationSchema = {
@@ -977,6 +2677,15 @@ export const OrganizationSchema = {
977
2677
  description: 'Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.',
978
2678
  example: 'ACME Corp.'
979
2679
  },
2680
+ type: {
2681
+ type: 'string',
2682
+ description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
2683
+ example: 'business',
2684
+ enum: [
2685
+ 'business',
2686
+ 'personal'
2687
+ ]
2688
+ },
980
2689
  date_created: {
981
2690
  type: 'string',
982
2691
  format: 'date-time',
@@ -1008,6 +2717,17 @@ export const OrganizationSchema = {
1008
2717
  description: 'Available number of Pro clusters that can be created.',
1009
2718
  example: 999
1010
2719
  },
2720
+ enterprise_clusters_max: {
2721
+ type: 'integer',
2722
+ minimum: 0,
2723
+ description: 'Maximum number of Enterprise clusters that can be created.',
2724
+ example: 999
2725
+ },
2726
+ enterprise_clusters_available: {
2727
+ type: 'integer',
2728
+ description: 'Available number of Enterprise clusters that can be created.',
2729
+ example: 999
2730
+ },
1011
2731
  fleets_max: {
1012
2732
  type: 'integer',
1013
2733
  minimum: 0,
@@ -1027,7 +2747,7 @@ export const OrganizationSchema = {
1027
2747
  type: 'array',
1028
2748
  items: {
1029
2749
  type: 'string',
1030
- example: 'northamerica-central-1'
2750
+ example: 'northamerica-central-1a'
1031
2751
  },
1032
2752
  minItems: 1,
1033
2753
  description: 'List of Cloudfleet control plane regions available for the organization.'
@@ -1048,36 +2768,66 @@ export const OrganizationSchema = {
1048
2768
  example: '1.33.x (Always latest 1.33 patch version)'
1049
2769
  }
1050
2770
  },
1051
- required: ['id', 'label'],
2771
+ required: [
2772
+ 'id',
2773
+ 'label'
2774
+ ],
1052
2775
  additionalProperties: false
1053
2776
  },
1054
2777
  minItems: 1,
1055
2778
  description: 'List of CFKE control plane versions available for the organization.'
1056
2779
  },
1057
- copilot_user_hourly_tokens: {
1058
- type: 'integer',
1059
- minimum: 0,
1060
- description: 'User-level maximum number of tokens Cloudfleet Copilot can process per hour.',
1061
- example: 42000
1062
- },
1063
- copilot_organization_hourly_tokens: {
2780
+ cfcr_storage_gb: {
1064
2781
  type: 'integer',
1065
- minimum: 0,
1066
- description: 'Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.',
1067
- example: 242000
2782
+ minimum: -1,
2783
+ description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
2784
+ example: 500
1068
2785
  }
1069
2786
  },
1070
- required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions', 'copilot_user_hourly_tokens', 'copilot_organization_hourly_tokens'],
2787
+ required: [
2788
+ 'basic_clusters_max',
2789
+ 'basic_clusters_available',
2790
+ 'pro_clusters_max',
2791
+ 'pro_clusters_available',
2792
+ 'enterprise_clusters_max',
2793
+ 'enterprise_clusters_available',
2794
+ 'fleets_max',
2795
+ 'cluster_tiers',
2796
+ 'regions',
2797
+ 'versions',
2798
+ 'cfcr_storage_gb'
2799
+ ],
1071
2800
  additionalProperties: false,
1072
2801
  description: 'For security reasons, platform quota is controlled by Cloudfleet and can be updated only by Cloudfleet administrators. Please open a support ticket if you need to change the platform quota.'
1073
2802
  },
1074
2803
  status: {
1075
2804
  type: 'string',
1076
2805
  description: 'Status of the organization. Can be `active` or `closed`, or `suspended`.',
1077
- enum: ['active', 'closed', 'suspended']
2806
+ enum: [
2807
+ 'active',
2808
+ 'closed',
2809
+ 'suspended'
2810
+ ]
2811
+ },
2812
+ verification: {
2813
+ type: 'string',
2814
+ description: '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.',
2815
+ example: 'verified',
2816
+ enum: [
2817
+ 'none',
2818
+ 'submitted',
2819
+ 'verified'
2820
+ ]
1078
2821
  }
1079
2822
  },
1080
- required: ['id', 'date_created', 'quota', 'status'],
2823
+ required: [
2824
+ 'id',
2825
+ 'type',
2826
+ 'date_created',
2827
+ 'quota',
2828
+ 'status',
2829
+ 'verification'
2830
+ ],
1081
2831
  additionalProperties: false
1082
2832
  };
1083
2833
  export const PaymentMethodSchema = {
@@ -1085,26 +2835,23 @@ export const PaymentMethodSchema = {
1085
2835
  properties: {
1086
2836
  id: {
1087
2837
  type: 'string',
1088
- format: 'uuid',
1089
- description: 'Unique identifier of the organization. UUID v4 string in canonical form.',
1090
- example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
1091
- },
1092
- setup: {
1093
- type: 'boolean',
1094
- description: 'Whether organization payment method was set up and ready to use for payments.',
1095
- example: true
2838
+ description: '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.',
2839
+ example: 'pm_1MtwBwLkdIwHu7ix28a3tqPa'
1096
2840
  },
1097
2841
  type: {
1098
2842
  type: 'string',
1099
- nullable: true,
1100
- description: 'Payment method type type. Only `card` payments supported at the moment.',
2843
+ description: 'Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.',
1101
2844
  example: 'card',
1102
- enum: ['card']
2845
+ enum: [
2846
+ 'card',
2847
+ 'sepa_debit',
2848
+ 'bank_transfer'
2849
+ ]
1103
2850
  },
1104
2851
  last4: {
1105
2852
  type: 'string',
1106
2853
  nullable: true,
1107
- description: 'Last 4 digits of the payment card number.',
2854
+ description: '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.',
1108
2855
  example: '4242'
1109
2856
  },
1110
2857
  exp_month: {
@@ -1112,25 +2859,57 @@ export const PaymentMethodSchema = {
1112
2859
  minimum: 1,
1113
2860
  maximum: 12,
1114
2861
  nullable: true,
1115
- description: "Two-digit number representing the card's expiration month.",
1116
- example: '12'
2862
+ description: 'Two-digit number representing the card\'s expiration month. Null for SEPA Direct Debit and bank transfer.',
2863
+ example: 12
1117
2864
  },
1118
2865
  exp_year: {
1119
2866
  type: 'integer',
1120
- minimum: 2024,
1121
2867
  nullable: true,
1122
- description: "Four-digit number representing the card's expiration year.",
1123
- example: '2028'
2868
+ description: '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.',
2869
+ example: 2028
1124
2870
  },
1125
2871
  brand: {
1126
2872
  type: 'string',
1127
2873
  nullable: true,
1128
- description: 'Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.',
1129
- example: 'visa',
1130
- enum: ['amex', 'diners', 'discover', 'eftpos_au', 'jcb', 'mastercard', 'unionpay', 'visa', 'unknown']
2874
+ description: 'Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.',
2875
+ example: 'visa'
2876
+ },
2877
+ iban: {
2878
+ type: 'string',
2879
+ nullable: true,
2880
+ description: '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.',
2881
+ example: 'DE11243015658023127510'
2882
+ },
2883
+ bic: {
2884
+ type: 'string',
2885
+ nullable: true,
2886
+ description: 'BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.',
2887
+ example: 'SOGEDEFFXXX'
2888
+ },
2889
+ account_holder_name: {
2890
+ type: 'string',
2891
+ nullable: true,
2892
+ description: 'Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.',
2893
+ example: 'Cloudfleet GmbH'
2894
+ },
2895
+ is_default: {
2896
+ type: 'boolean',
2897
+ description: '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).',
2898
+ example: true
1131
2899
  }
1132
2900
  },
1133
- required: ['id', 'setup', 'type', 'last4', 'exp_month', 'exp_year', 'brand'],
2901
+ required: [
2902
+ 'id',
2903
+ 'type',
2904
+ 'last4',
2905
+ 'exp_month',
2906
+ 'exp_year',
2907
+ 'brand',
2908
+ 'iban',
2909
+ 'bic',
2910
+ 'account_holder_name',
2911
+ 'is_default'
2912
+ ],
1134
2913
  additionalProperties: false
1135
2914
  };
1136
2915
  export const PlatformQuotaSchema = {
@@ -1158,6 +2937,17 @@ export const PlatformQuotaSchema = {
1158
2937
  description: 'Available number of Pro clusters that can be created.',
1159
2938
  example: 999
1160
2939
  },
2940
+ enterprise_clusters_max: {
2941
+ type: 'integer',
2942
+ minimum: 0,
2943
+ description: 'Maximum number of Enterprise clusters that can be created.',
2944
+ example: 999
2945
+ },
2946
+ enterprise_clusters_available: {
2947
+ type: 'integer',
2948
+ description: 'Available number of Enterprise clusters that can be created.',
2949
+ example: 999
2950
+ },
1161
2951
  fleets_max: {
1162
2952
  type: 'integer',
1163
2953
  minimum: 0,
@@ -1177,7 +2967,7 @@ export const PlatformQuotaSchema = {
1177
2967
  type: 'array',
1178
2968
  items: {
1179
2969
  type: 'string',
1180
- example: 'northamerica-central-1'
2970
+ example: 'northamerica-central-1a'
1181
2971
  },
1182
2972
  minItems: 1,
1183
2973
  description: 'List of Cloudfleet control plane regions available for the organization.'
@@ -1198,26 +2988,35 @@ export const PlatformQuotaSchema = {
1198
2988
  example: '1.33.x (Always latest 1.33 patch version)'
1199
2989
  }
1200
2990
  },
1201
- required: ['id', 'label'],
2991
+ required: [
2992
+ 'id',
2993
+ 'label'
2994
+ ],
1202
2995
  additionalProperties: false
1203
2996
  },
1204
2997
  minItems: 1,
1205
2998
  description: 'List of CFKE control plane versions available for the organization.'
1206
2999
  },
1207
- copilot_user_hourly_tokens: {
1208
- type: 'integer',
1209
- minimum: 0,
1210
- description: 'User-level maximum number of tokens Cloudfleet Copilot can process per hour.',
1211
- example: 42000
1212
- },
1213
- copilot_organization_hourly_tokens: {
3000
+ cfcr_storage_gb: {
1214
3001
  type: 'integer',
1215
- minimum: 0,
1216
- description: 'Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.',
1217
- example: 242000
3002
+ minimum: -1,
3003
+ description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
3004
+ example: 500
1218
3005
  }
1219
3006
  },
1220
- required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions', 'copilot_user_hourly_tokens', 'copilot_organization_hourly_tokens'],
3007
+ required: [
3008
+ 'basic_clusters_max',
3009
+ 'basic_clusters_available',
3010
+ 'pro_clusters_max',
3011
+ 'pro_clusters_available',
3012
+ 'enterprise_clusters_max',
3013
+ 'enterprise_clusters_available',
3014
+ 'fleets_max',
3015
+ 'cluster_tiers',
3016
+ 'regions',
3017
+ 'versions',
3018
+ 'cfcr_storage_gb'
3019
+ ],
1221
3020
  additionalProperties: false
1222
3021
  };
1223
3022
  export const RegistryRepositorySchema = {
@@ -1236,10 +3035,14 @@ export const RegistryRepositorySchema = {
1236
3035
  uri: {
1237
3036
  type: 'string',
1238
3037
  description: 'Full URI of the repository.',
1239
- example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
3038
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
1240
3039
  }
1241
3040
  },
1242
- required: ['name', 'region', 'uri'],
3041
+ required: [
3042
+ 'name',
3043
+ 'region',
3044
+ 'uri'
3045
+ ],
1243
3046
  additionalProperties: false
1244
3047
  };
1245
3048
  export const RegistryRepositoryWithTagsSchema = {
@@ -1258,7 +3061,7 @@ export const RegistryRepositoryWithTagsSchema = {
1258
3061
  uri: {
1259
3062
  type: 'string',
1260
3063
  description: 'Full URI of the repository.',
1261
- example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
3064
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
1262
3065
  },
1263
3066
  tags: {
1264
3067
  type: 'array',
@@ -1280,9 +3083,23 @@ export const RegistryRepositoryWithTagsSchema = {
1280
3083
  type: 'string',
1281
3084
  description: 'Media type of the manifest.',
1282
3085
  example: 'application/vnd.docker.distribution.manifest.v2+json'
3086
+ },
3087
+ platforms: {
3088
+ type: 'array',
3089
+ items: {
3090
+ type: 'string'
3091
+ },
3092
+ description: 'Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).',
3093
+ example: [
3094
+ 'linux/amd64',
3095
+ 'linux/arm64'
3096
+ ]
1283
3097
  }
1284
3098
  },
1285
- required: ['name', 'size'],
3099
+ required: [
3100
+ 'name',
3101
+ 'size'
3102
+ ],
1286
3103
  additionalProperties: false
1287
3104
  },
1288
3105
  description: 'Array of tags in the repository.'
@@ -1294,7 +3111,13 @@ export const RegistryRepositoryWithTagsSchema = {
1294
3111
  example: 987654321
1295
3112
  }
1296
3113
  },
1297
- required: ['name', 'region', 'uri', 'tags', 'totalSize'],
3114
+ required: [
3115
+ 'name',
3116
+ 'region',
3117
+ 'uri',
3118
+ 'tags',
3119
+ 'totalSize'
3120
+ ],
1298
3121
  additionalProperties: false
1299
3122
  };
1300
3123
  export const RegistryTagSchema = {
@@ -1305,6 +3128,11 @@ export const RegistryTagSchema = {
1305
3128
  description: 'Tag name.',
1306
3129
  example: 'latest'
1307
3130
  },
3131
+ digest: {
3132
+ type: 'string',
3133
+ description: 'Manifest digest for pulling by digest.',
3134
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
3135
+ },
1308
3136
  mediaType: {
1309
3137
  type: 'string',
1310
3138
  description: 'Media type of the manifest.',
@@ -1320,7 +3148,9 @@ export const RegistryTagSchema = {
1320
3148
  example: 1234
1321
3149
  }
1322
3150
  },
1323
- required: ['size'],
3151
+ required: [
3152
+ 'size'
3153
+ ],
1324
3154
  additionalProperties: false,
1325
3155
  description: 'Manifest config metadata.'
1326
3156
  },
@@ -1329,6 +3159,11 @@ export const RegistryTagSchema = {
1329
3159
  items: {
1330
3160
  type: 'object',
1331
3161
  properties: {
3162
+ digest: {
3163
+ type: 'string',
3164
+ description: 'Digest of the layer.',
3165
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
3166
+ },
1332
3167
  size: {
1333
3168
  type: 'number',
1334
3169
  format: 'float',
@@ -1336,7 +3171,9 @@ export const RegistryTagSchema = {
1336
3171
  example: 5678
1337
3172
  }
1338
3173
  },
1339
- required: ['size'],
3174
+ required: [
3175
+ 'size'
3176
+ ],
1340
3177
  additionalProperties: false
1341
3178
  },
1342
3179
  description: 'Array of layer metadata.'
@@ -1363,14 +3200,54 @@ export const RegistryTagSchema = {
1363
3200
  type: 'string',
1364
3201
  description: 'Operating system of the platform.',
1365
3202
  example: 'linux'
3203
+ },
3204
+ variant: {
3205
+ type: 'string',
3206
+ description: 'Variant of the platform (e.g., v7, v8 for ARM).',
3207
+ example: 'v8'
1366
3208
  }
1367
3209
  },
1368
- required: ['architecture', 'os'],
3210
+ required: [
3211
+ 'architecture',
3212
+ 'os'
3213
+ ],
1369
3214
  additionalProperties: false,
1370
3215
  description: 'Platform information for the manifest.'
3216
+ },
3217
+ layers: {
3218
+ type: 'array',
3219
+ items: {
3220
+ type: 'object',
3221
+ properties: {
3222
+ digest: {
3223
+ type: 'string',
3224
+ description: 'Digest of the layer.',
3225
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
3226
+ },
3227
+ size: {
3228
+ type: 'number',
3229
+ format: 'float',
3230
+ description: 'Size of the layer in bytes.',
3231
+ example: 5678
3232
+ }
3233
+ },
3234
+ required: [
3235
+ 'size'
3236
+ ],
3237
+ additionalProperties: false
3238
+ },
3239
+ description: 'Layers for this platform.'
3240
+ },
3241
+ size: {
3242
+ type: 'number',
3243
+ format: 'float',
3244
+ description: 'Total size of this platform manifest in bytes.',
3245
+ example: 12345678
1371
3246
  }
1372
3247
  },
1373
- required: ['digest'],
3248
+ required: [
3249
+ 'digest'
3250
+ ],
1374
3251
  additionalProperties: false
1375
3252
  },
1376
3253
  description: 'Array of manifests for multi-arch images.'
@@ -1397,7 +3274,337 @@ export const RegistryTagSchema = {
1397
3274
  example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
1398
3275
  }
1399
3276
  },
1400
- required: ['name', 'size', 'region', 'repository', 'uri'],
3277
+ required: [
3278
+ 'name',
3279
+ 'digest',
3280
+ 'size',
3281
+ 'region',
3282
+ 'repository',
3283
+ 'uri'
3284
+ ],
3285
+ additionalProperties: false
3286
+ };
3287
+ export const TicketAttachmentSchema = {
3288
+ type: 'object',
3289
+ properties: {
3290
+ id: {
3291
+ type: 'string',
3292
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
3293
+ example: '60c72b2f9f1b2c001f8e4d3c'
3294
+ },
3295
+ filename: {
3296
+ type: 'string',
3297
+ description: 'Original filename as uploaded.',
3298
+ example: 'debug.log'
3299
+ },
3300
+ content_type: {
3301
+ type: 'string',
3302
+ description: 'MIME content type of the attachment.',
3303
+ example: 'text/plain'
3304
+ },
3305
+ size: {
3306
+ type: 'integer',
3307
+ description: 'Size of the attachment in bytes.',
3308
+ example: 12345
3309
+ }
3310
+ },
3311
+ required: [
3312
+ 'id',
3313
+ 'filename',
3314
+ 'content_type',
3315
+ 'size'
3316
+ ],
3317
+ additionalProperties: false
3318
+ };
3319
+ export const TicketCreateInputSchema = {
3320
+ type: 'object',
3321
+ properties: {
3322
+ category: {
3323
+ type: 'string',
3324
+ description: 'Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.',
3325
+ example: 'technical',
3326
+ enum: [
3327
+ 'billing',
3328
+ 'technical',
3329
+ 'general'
3330
+ ]
3331
+ },
3332
+ body: {
3333
+ type: 'string',
3334
+ maxLength: 50000,
3335
+ minLength: 1,
3336
+ pattern: '\\S',
3337
+ description: 'Initial message body in markdown. There is no separate subject — the first message body is the description.',
3338
+ example: 'My cluster cannot reach the registry. Logs attached.'
3339
+ },
3340
+ properties: {
3341
+ type: 'object',
3342
+ additionalProperties: true,
3343
+ description: 'Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).',
3344
+ example: {
3345
+ subcategory: 'cluster-question',
3346
+ cluster_id: '60c72b2f9f1b2c001f8e4d3a'
3347
+ }
3348
+ }
3349
+ },
3350
+ required: [
3351
+ 'category',
3352
+ 'body'
3353
+ ],
3354
+ additionalProperties: false
3355
+ };
3356
+ export const TicketMessageInputSchema = {
3357
+ type: 'object',
3358
+ properties: {
3359
+ body: {
3360
+ type: 'string',
3361
+ maxLength: 50000,
3362
+ minLength: 1,
3363
+ pattern: '\\S',
3364
+ description: 'Reply body in markdown.',
3365
+ example: 'Thanks — that resolved it on my side.'
3366
+ }
3367
+ },
3368
+ required: [
3369
+ 'body'
3370
+ ],
3371
+ additionalProperties: false
3372
+ };
3373
+ export const TicketMessageSchema = {
3374
+ type: 'object',
3375
+ properties: {
3376
+ id: {
3377
+ type: 'string',
3378
+ description: 'Unique identifier of the message (Mongo ObjectId).',
3379
+ example: '60c72b2f9f1b2c001f8e4d3b'
3380
+ },
3381
+ type: {
3382
+ type: 'string',
3383
+ description: 'Message type. Internal notes are filtered out of customer-facing responses.',
3384
+ example: 'customer_reply',
3385
+ enum: [
3386
+ 'customer_reply',
3387
+ 'agent_reply'
3388
+ ]
3389
+ },
3390
+ body: {
3391
+ type: 'string',
3392
+ description: 'Message body in markdown.',
3393
+ example: 'Thanks — that resolved it on my side.'
3394
+ },
3395
+ author_first_name: {
3396
+ type: 'string',
3397
+ nullable: true,
3398
+ description: 'First name of the author. Null when not provided.',
3399
+ example: 'Jane'
3400
+ },
3401
+ author_last_name: {
3402
+ type: 'string',
3403
+ nullable: true,
3404
+ description: 'Last name of the author. Null when not provided.',
3405
+ example: 'Doe'
3406
+ },
3407
+ attachments: {
3408
+ type: 'array',
3409
+ items: {
3410
+ type: 'object',
3411
+ properties: {
3412
+ id: {
3413
+ type: 'string',
3414
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
3415
+ example: '60c72b2f9f1b2c001f8e4d3c'
3416
+ },
3417
+ filename: {
3418
+ type: 'string',
3419
+ description: 'Original filename as uploaded.',
3420
+ example: 'debug.log'
3421
+ },
3422
+ content_type: {
3423
+ type: 'string',
3424
+ description: 'MIME content type of the attachment.',
3425
+ example: 'text/plain'
3426
+ },
3427
+ size: {
3428
+ type: 'integer',
3429
+ description: 'Size of the attachment in bytes.',
3430
+ example: 12345
3431
+ }
3432
+ },
3433
+ required: [
3434
+ 'id',
3435
+ 'filename',
3436
+ 'content_type',
3437
+ 'size'
3438
+ ],
3439
+ additionalProperties: false
3440
+ },
3441
+ description: 'Attachments associated with this message.',
3442
+ example: []
3443
+ },
3444
+ date_created: {
3445
+ type: 'string',
3446
+ format: 'date-time',
3447
+ description: 'Creation date of the message. ISO 8601 UTC.',
3448
+ example: '2026-05-11T16:08:14.338Z'
3449
+ }
3450
+ },
3451
+ required: [
3452
+ 'id',
3453
+ 'type',
3454
+ 'body',
3455
+ 'date_created'
3456
+ ],
3457
+ additionalProperties: false
3458
+ };
3459
+ export const TicketSchema = {
3460
+ type: 'object',
3461
+ properties: {
3462
+ id: {
3463
+ type: 'string',
3464
+ description: 'Unique identifier of the ticket (Mongo ObjectId).',
3465
+ example: '60c72b2f9f1b2c001f8e4d3a'
3466
+ },
3467
+ status: {
3468
+ type: 'string',
3469
+ description: 'Current state of the ticket.',
3470
+ example: 'waiting_on_us',
3471
+ enum: [
3472
+ 'waiting_on_us',
3473
+ 'waiting_on_user',
3474
+ 'closed'
3475
+ ]
3476
+ },
3477
+ category: {
3478
+ type: 'string',
3479
+ description: 'Ticket category.',
3480
+ example: 'technical',
3481
+ enum: [
3482
+ 'billing',
3483
+ 'technical',
3484
+ 'general'
3485
+ ]
3486
+ },
3487
+ summary: {
3488
+ type: 'string',
3489
+ description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
3490
+ example: 'My cluster cannot reach the registry. Logs attached.'
3491
+ },
3492
+ closed_at: {
3493
+ type: 'string',
3494
+ format: 'date-time',
3495
+ nullable: true,
3496
+ description: 'Closure timestamp. Null while the ticket is open.',
3497
+ example: '2026-05-18T16:08:14.338Z'
3498
+ },
3499
+ date_created: {
3500
+ type: 'string',
3501
+ format: 'date-time',
3502
+ description: 'Creation date of the ticket. ISO 8601 UTC.',
3503
+ example: '2026-05-11T16:08:14.338Z'
3504
+ },
3505
+ date_updated: {
3506
+ type: 'string',
3507
+ format: 'date-time',
3508
+ description: 'Last update date of the ticket. ISO 8601 UTC.',
3509
+ example: '2026-05-11T16:08:14.338Z'
3510
+ },
3511
+ messages: {
3512
+ type: 'array',
3513
+ items: {
3514
+ type: 'object',
3515
+ properties: {
3516
+ id: {
3517
+ type: 'string',
3518
+ description: 'Unique identifier of the message (Mongo ObjectId).',
3519
+ example: '60c72b2f9f1b2c001f8e4d3b'
3520
+ },
3521
+ type: {
3522
+ type: 'string',
3523
+ description: 'Message type. Internal notes are filtered out of customer-facing responses.',
3524
+ example: 'customer_reply',
3525
+ enum: [
3526
+ 'customer_reply',
3527
+ 'agent_reply'
3528
+ ]
3529
+ },
3530
+ body: {
3531
+ type: 'string',
3532
+ description: 'Message body in markdown.',
3533
+ example: 'Thanks — that resolved it on my side.'
3534
+ },
3535
+ author_first_name: {
3536
+ type: 'string',
3537
+ description: 'First name of the author. Null when not provided.',
3538
+ example: 'Jane'
3539
+ },
3540
+ author_last_name: {
3541
+ type: 'string',
3542
+ description: 'Last name of the author. Null when not provided.',
3543
+ example: 'Doe'
3544
+ },
3545
+ attachments: {
3546
+ type: 'array',
3547
+ items: {
3548
+ type: 'object',
3549
+ properties: {
3550
+ id: {
3551
+ type: 'string',
3552
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
3553
+ example: '60c72b2f9f1b2c001f8e4d3c'
3554
+ },
3555
+ filename: {
3556
+ type: 'string',
3557
+ description: 'Original filename as uploaded.',
3558
+ example: 'debug.log'
3559
+ },
3560
+ content_type: {
3561
+ type: 'string',
3562
+ description: 'MIME content type of the attachment.',
3563
+ example: 'text/plain'
3564
+ },
3565
+ size: {
3566
+ type: 'integer',
3567
+ description: 'Size of the attachment in bytes.',
3568
+ example: 12345
3569
+ }
3570
+ },
3571
+ required: [
3572
+ 'id',
3573
+ 'filename',
3574
+ 'content_type',
3575
+ 'size'
3576
+ ],
3577
+ additionalProperties: false
3578
+ },
3579
+ description: 'Attachments associated with this message.',
3580
+ example: []
3581
+ },
3582
+ date_created: {
3583
+ type: 'string',
3584
+ format: 'date-time',
3585
+ description: 'Creation date of the message. ISO 8601 UTC.',
3586
+ example: '2026-05-11T16:08:14.338Z'
3587
+ }
3588
+ },
3589
+ required: [
3590
+ 'id',
3591
+ 'type',
3592
+ 'body',
3593
+ 'date_created'
3594
+ ],
3595
+ additionalProperties: false
3596
+ },
3597
+ description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
3598
+ }
3599
+ },
3600
+ required: [
3601
+ 'id',
3602
+ 'status',
3603
+ 'category',
3604
+ 'summary',
3605
+ 'date_created',
3606
+ 'date_updated'
3607
+ ],
1401
3608
  additionalProperties: false
1402
3609
  };
1403
3610
  export const TokenCreateInputSchema = {
@@ -1415,10 +3622,16 @@ export const TokenCreateInputSchema = {
1415
3622
  type: 'string',
1416
3623
  description: 'Role assumed by the token.',
1417
3624
  example: 'User',
1418
- enum: ['Administrator', 'User']
3625
+ enum: [
3626
+ 'Administrator',
3627
+ 'User'
3628
+ ]
1419
3629
  }
1420
3630
  },
1421
- required: ['name', 'role'],
3631
+ required: [
3632
+ 'name',
3633
+ 'role'
3634
+ ],
1422
3635
  additionalProperties: false
1423
3636
  };
1424
3637
  export const TokenSchema = {
@@ -1436,7 +3649,10 @@ export const TokenSchema = {
1436
3649
  type: 'string',
1437
3650
  description: 'Role assumed by the token.',
1438
3651
  example: 'User',
1439
- enum: ['Administrator', 'User']
3652
+ enum: [
3653
+ 'Administrator',
3654
+ 'User'
3655
+ ]
1440
3656
  },
1441
3657
  id: {
1442
3658
  type: 'string',
@@ -1455,7 +3671,11 @@ export const TokenSchema = {
1455
3671
  example: '2023-12-20T13:53:32.000Z'
1456
3672
  }
1457
3673
  },
1458
- required: ['name', 'role', 'date_created'],
3674
+ required: [
3675
+ 'name',
3676
+ 'role',
3677
+ 'date_created'
3678
+ ],
1459
3679
  additionalProperties: false
1460
3680
  };
1461
3681
  export const TokenUpdateInputSchema = {
@@ -1473,7 +3693,10 @@ export const TokenUpdateInputSchema = {
1473
3693
  type: 'string',
1474
3694
  description: 'Role assumed by the token.',
1475
3695
  example: 'User',
1476
- enum: ['Administrator', 'User']
3696
+ enum: [
3697
+ 'Administrator',
3698
+ 'User'
3699
+ ]
1477
3700
  }
1478
3701
  },
1479
3702
  additionalProperties: false
@@ -1487,15 +3710,29 @@ export const UsageFacetsSchema = {
1487
3710
  type: 'string'
1488
3711
  },
1489
3712
  description: 'List of unique cluster IDs',
1490
- example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
3713
+ example: [
3714
+ '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
3715
+ ]
1491
3716
  },
1492
3717
  product: {
1493
3718
  type: 'array',
1494
3719
  items: {
1495
- type: 'string'
3720
+ type: 'string',
3721
+ enum: [
3722
+ 'cfke_controlplane_basic',
3723
+ 'cfke_controlplane_pro',
3724
+ 'cfke_controlplane_enterprise',
3725
+ 'cfke_connected_nodes_basic',
3726
+ 'cfke_connected_nodes_pro',
3727
+ 'cfke_connected_nodes_enterprise',
3728
+ 'cfcr_storage'
3729
+ ]
1496
3730
  },
1497
3731
  description: 'List of unique products',
1498
- example: ['cfke_controlplane', 'cfke_connected_nodes']
3732
+ example: [
3733
+ 'cfke_controlplane_pro',
3734
+ 'cfke_connected_nodes_pro'
3735
+ ]
1499
3736
  }
1500
3737
  },
1501
3738
  additionalProperties: false
@@ -1521,7 +3758,16 @@ export const UsageResponseSchema = {
1521
3758
  product: {
1522
3759
  type: 'string',
1523
3760
  description: 'The product the usage is associated with',
1524
- example: 'cfke_controlplane'
3761
+ example: 'cfke_controlplane_pro',
3762
+ enum: [
3763
+ 'cfke_controlplane_basic',
3764
+ 'cfke_controlplane_pro',
3765
+ 'cfke_controlplane_enterprise',
3766
+ 'cfke_connected_nodes_basic',
3767
+ 'cfke_connected_nodes_pro',
3768
+ 'cfke_connected_nodes_enterprise',
3769
+ 'cfcr_storage'
3770
+ ]
1525
3771
  },
1526
3772
  value: {
1527
3773
  type: 'number',
@@ -1541,7 +3787,14 @@ export const UsageResponseSchema = {
1541
3787
  description: 'Total cost'
1542
3788
  }
1543
3789
  },
1544
- required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
3790
+ required: [
3791
+ 'hour',
3792
+ 'cluster_id',
3793
+ 'product',
3794
+ 'value',
3795
+ 'price',
3796
+ 'total'
3797
+ ],
1545
3798
  additionalProperties: false
1546
3799
  },
1547
3800
  description: 'Usage data'
@@ -1555,22 +3808,39 @@ export const UsageResponseSchema = {
1555
3808
  type: 'string'
1556
3809
  },
1557
3810
  description: 'List of unique cluster IDs',
1558
- example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
3811
+ example: [
3812
+ '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
3813
+ ]
1559
3814
  },
1560
3815
  product: {
1561
3816
  type: 'array',
1562
3817
  items: {
1563
- type: 'string'
3818
+ type: 'string',
3819
+ enum: [
3820
+ 'cfke_controlplane_basic',
3821
+ 'cfke_controlplane_pro',
3822
+ 'cfke_controlplane_enterprise',
3823
+ 'cfke_connected_nodes_basic',
3824
+ 'cfke_connected_nodes_pro',
3825
+ 'cfke_connected_nodes_enterprise',
3826
+ 'cfcr_storage'
3827
+ ]
1564
3828
  },
1565
3829
  description: 'List of unique products',
1566
- example: ['cfke_controlplane', 'cfke_connected_nodes']
3830
+ example: [
3831
+ 'cfke_controlplane_pro',
3832
+ 'cfke_connected_nodes_pro'
3833
+ ]
1567
3834
  }
1568
3835
  },
1569
3836
  additionalProperties: false,
1570
3837
  description: 'Facets for filtering'
1571
3838
  }
1572
3839
  },
1573
- required: ['data', 'facets'],
3840
+ required: [
3841
+ 'data',
3842
+ 'facets'
3843
+ ],
1574
3844
  additionalProperties: false
1575
3845
  };
1576
3846
  export const UsageSchema = {
@@ -1589,7 +3859,16 @@ export const UsageSchema = {
1589
3859
  product: {
1590
3860
  type: 'string',
1591
3861
  description: 'The product the usage is associated with',
1592
- example: 'cfke_controlplane'
3862
+ example: 'cfke_controlplane_pro',
3863
+ enum: [
3864
+ 'cfke_controlplane_basic',
3865
+ 'cfke_controlplane_pro',
3866
+ 'cfke_controlplane_enterprise',
3867
+ 'cfke_connected_nodes_basic',
3868
+ 'cfke_connected_nodes_pro',
3869
+ 'cfke_connected_nodes_enterprise',
3870
+ 'cfcr_storage'
3871
+ ]
1593
3872
  },
1594
3873
  value: {
1595
3874
  type: 'number',
@@ -1609,7 +3888,14 @@ export const UsageSchema = {
1609
3888
  description: 'Total cost'
1610
3889
  }
1611
3890
  },
1612
- required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
3891
+ required: [
3892
+ 'hour',
3893
+ 'cluster_id',
3894
+ 'product',
3895
+ 'value',
3896
+ 'price',
3897
+ 'total'
3898
+ ],
1613
3899
  additionalProperties: false
1614
3900
  };
1615
3901
  export const UserCreateInputSchema = {
@@ -1645,21 +3931,15 @@ export const UserCreateInputSchema = {
1645
3931
  type: 'string',
1646
3932
  minLength: 8,
1647
3933
  description: 'User password. Must be at least 8 characters long.'
1648
- },
1649
- status: {
1650
- type: 'string',
1651
- description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1652
- example: 'active',
1653
- enum: ['active', 'inactive']
1654
- },
1655
- role: {
1656
- type: 'string',
1657
- description: "User role. Can be 'Administrator', 'User'.",
1658
- example: 'User',
1659
- enum: ['Administrator', 'User']
1660
3934
  }
1661
3935
  },
1662
- required: ['email', 'first_name', 'last_name', 'code', 'password'],
3936
+ required: [
3937
+ 'email',
3938
+ 'first_name',
3939
+ 'last_name',
3940
+ 'code',
3941
+ 'password'
3942
+ ],
1663
3943
  additionalProperties: false
1664
3944
  };
1665
3945
  export const UserSchema = {
@@ -1687,15 +3967,21 @@ export const UserSchema = {
1687
3967
  },
1688
3968
  role: {
1689
3969
  type: 'string',
1690
- description: "User role. Can be 'Administrator', 'User'.",
3970
+ description: 'User role. Can be \'Administrator\', \'User\'.',
1691
3971
  example: 'User',
1692
- enum: ['Administrator', 'User']
3972
+ enum: [
3973
+ 'Administrator',
3974
+ 'User'
3975
+ ]
1693
3976
  },
1694
3977
  status: {
1695
3978
  type: 'string',
1696
3979
  description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1697
3980
  example: 'active',
1698
- enum: ['active', 'inactive']
3981
+ enum: [
3982
+ 'active',
3983
+ 'inactive'
3984
+ ]
1699
3985
  },
1700
3986
  id: {
1701
3987
  type: 'string',
@@ -1710,7 +3996,15 @@ export const UserSchema = {
1710
3996
  example: '2023-11-02T16:08:14.338Z'
1711
3997
  }
1712
3998
  },
1713
- required: ['email', 'first_name', 'last_name', 'role', 'status', 'id', 'date_created'],
3999
+ required: [
4000
+ 'email',
4001
+ 'first_name',
4002
+ 'last_name',
4003
+ 'role',
4004
+ 'status',
4005
+ 'id',
4006
+ 'date_created'
4007
+ ],
1714
4008
  additionalProperties: false
1715
4009
  };
1716
4010
  export const UserUpdateInputSchema = {
@@ -1738,15 +4032,21 @@ export const UserUpdateInputSchema = {
1738
4032
  },
1739
4033
  role: {
1740
4034
  type: 'string',
1741
- description: "User role. Can be 'Administrator', 'User'.",
4035
+ description: 'User role. Can be \'Administrator\', \'User\'.',
1742
4036
  example: 'User',
1743
- enum: ['Administrator', 'User']
4037
+ enum: [
4038
+ 'Administrator',
4039
+ 'User'
4040
+ ]
1744
4041
  },
1745
4042
  status: {
1746
4043
  type: 'string',
1747
4044
  description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1748
4045
  example: 'active',
1749
- enum: ['active', 'inactive']
4046
+ enum: [
4047
+ 'active',
4048
+ 'inactive'
4049
+ ]
1750
4050
  }
1751
4051
  },
1752
4052
  additionalProperties: false