@cloudfleet/sdk 0.0.1-f1d40ff → 0.0.1-f231d8a

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 (94) hide show
  1. package/README.md +26 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +1159 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1175 -0
  5. package/dist/@tanstack/react-query.gen.js.map +1 -0
  6. package/dist/client/client.gen.d.ts +3 -0
  7. package/dist/client/client.gen.d.ts.map +1 -0
  8. package/dist/client/client.gen.js +217 -0
  9. package/dist/client/client.gen.js.map +1 -0
  10. package/dist/client/index.d.ts +8 -7
  11. package/dist/client/index.d.ts.map +1 -1
  12. package/dist/client/index.js +6 -4
  13. package/dist/client/index.js.map +1 -1
  14. package/dist/client/{types.d.ts → types.gen.d.ts} +23 -22
  15. package/dist/client/types.gen.d.ts.map +1 -0
  16. package/dist/client/types.gen.js +3 -0
  17. package/dist/client/types.gen.js.map +1 -0
  18. package/dist/client/{utils.d.ts → utils.gen.d.ts} +17 -25
  19. package/dist/client/utils.gen.d.ts.map +1 -0
  20. package/dist/client/{utils.js → utils.gen.js} +66 -122
  21. package/dist/client/utils.gen.js.map +1 -0
  22. package/dist/client.gen.d.ts +3 -3
  23. package/dist/client.gen.d.ts.map +1 -1
  24. package/dist/client.gen.js +1 -3
  25. package/dist/client.gen.js.map +1 -1
  26. package/dist/core/{auth.d.ts → auth.gen.d.ts} +1 -1
  27. package/dist/core/auth.gen.d.ts.map +1 -0
  28. package/dist/core/{auth.js → auth.gen.js} +2 -1
  29. package/dist/core/auth.gen.js.map +1 -0
  30. package/dist/core/bodySerializer.gen.d.ts +26 -0
  31. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  32. package/dist/core/{bodySerializer.js → bodySerializer.gen.js} +6 -2
  33. package/dist/core/bodySerializer.gen.js.map +1 -0
  34. package/dist/core/{params.d.ts → params.gen.d.ts} +21 -1
  35. package/dist/core/params.gen.d.ts.map +1 -0
  36. package/dist/core/{params.js → params.gen.js} +24 -11
  37. package/dist/core/params.gen.js.map +1 -0
  38. package/dist/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +1 -1
  39. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/core/{pathSerializer.js → pathSerializer.gen.js} +5 -12
  41. package/dist/core/pathSerializer.gen.js.map +1 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  43. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  44. package/dist/core/queryKeySerializer.gen.js +93 -0
  45. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  46. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  47. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  48. package/dist/core/serverSentEvents.gen.js +133 -0
  49. package/dist/core/serverSentEvents.gen.js.map +1 -0
  50. package/dist/core/{types.d.ts → types.gen.d.ts} +21 -16
  51. package/dist/core/types.gen.d.ts.map +1 -0
  52. package/dist/core/types.gen.js +3 -0
  53. package/dist/core/types.gen.js.map +1 -0
  54. package/dist/core/utils.gen.d.ts +20 -0
  55. package/dist/core/utils.gen.d.ts.map +1 -0
  56. package/dist/core/utils.gen.js +88 -0
  57. package/dist/core/utils.gen.js.map +1 -0
  58. package/dist/schemas.gen.d.ts +1473 -570
  59. package/dist/schemas.gen.d.ts.map +1 -1
  60. package/dist/schemas.gen.js +2897 -711
  61. package/dist/schemas.gen.js.map +1 -1
  62. package/dist/sdk.gen.d.ts +296 -164
  63. package/dist/sdk.gen.d.ts.map +1 -1
  64. package/dist/sdk.gen.js +415 -336
  65. package/dist/sdk.gen.js.map +1 -1
  66. package/dist/services/kubernetes/api.d.ts +20 -20
  67. package/dist/types.gen.d.ts +1742 -811
  68. package/dist/types.gen.d.ts.map +1 -1
  69. package/dist/zod.gen.d.ts +3812 -3753
  70. package/dist/zod.gen.d.ts.map +1 -1
  71. package/dist/zod.gen.js +1406 -1153
  72. package/dist/zod.gen.js.map +1 -1
  73. package/package.json +28 -8
  74. package/dist/client/client.d.ts +0 -3
  75. package/dist/client/client.d.ts.map +0 -1
  76. package/dist/client/client.js +0 -144
  77. package/dist/client/client.js.map +0 -1
  78. package/dist/client/types.d.ts.map +0 -1
  79. package/dist/client/types.js +0 -2
  80. package/dist/client/types.js.map +0 -1
  81. package/dist/client/utils.d.ts.map +0 -1
  82. package/dist/client/utils.js.map +0 -1
  83. package/dist/core/auth.d.ts.map +0 -1
  84. package/dist/core/auth.js.map +0 -1
  85. package/dist/core/bodySerializer.d.ts +0 -18
  86. package/dist/core/bodySerializer.d.ts.map +0 -1
  87. package/dist/core/bodySerializer.js.map +0 -1
  88. package/dist/core/params.d.ts.map +0 -1
  89. package/dist/core/params.js.map +0 -1
  90. package/dist/core/pathSerializer.d.ts.map +0 -1
  91. package/dist/core/pathSerializer.js.map +0 -1
  92. package/dist/core/types.d.ts.map +0 -1
  93. package/dist/core/types.js +0 -2
  94. package/dist/core/types.js.map +0 -1
@@ -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,
@@ -58,15 +67,10 @@ export const BillingContactSchema = {
58
67
  description: 'Email address used for billing as a string.',
59
68
  example: 'email@example.com'
60
69
  },
61
- first_name: {
62
- type: 'string',
63
- description: 'First name of the billing contact person.',
64
- example: 'John'
65
- },
66
- last_name: {
70
+ individual_name: {
67
71
  type: 'string',
68
- description: 'Last name of the billing contact person.',
69
- example: 'Doe'
72
+ description: 'Name of the billing contact person.',
73
+ example: 'John Doe'
70
74
  },
71
75
  tax_id: {
72
76
  type: 'string',
@@ -79,10 +83,143 @@ export const BillingContactSchema = {
79
83
  nullable: true,
80
84
  description: 'Type of the tax ID.',
81
85
  example: 'de_vat',
82
- 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
+ ]
83
216
  }
84
217
  },
85
- required: ['email', 'first_name', 'last_name'],
218
+ required: [
219
+ 'type',
220
+ 'email',
221
+ 'individual_name'
222
+ ],
86
223
  additionalProperties: false
87
224
  };
88
225
  export const BillingCreditsSchema = {
@@ -93,10 +230,25 @@ export const BillingCreditsSchema = {
93
230
  description: 'Generated unique identifier of the promotional code.',
94
231
  example: '7kUZnH7nnKUFfvc4NK2KQF'
95
232
  },
96
- date_created: {
233
+ type: {
234
+ type: 'string',
235
+ description: 'Type of the promotional code.',
236
+ example: 'credit',
237
+ enum: [
238
+ 'credit',
239
+ 'discount'
240
+ ]
241
+ },
242
+ date_start: {
243
+ type: 'string',
244
+ format: 'date-time',
245
+ description: 'Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.',
246
+ example: '2023-12-20T13:53:32.000Z'
247
+ },
248
+ date_end: {
97
249
  type: 'string',
98
250
  format: 'date-time',
99
- description: 'Date of the credit application. ISO 8601 date string in the UTC timezone.',
251
+ description: 'Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.',
100
252
  example: '2023-12-20T13:53:32.000Z'
101
253
  },
102
254
  code: {
@@ -109,40 +261,25 @@ export const BillingCreditsSchema = {
109
261
  description: 'Description of the promotional code.',
110
262
  example: '10% off on all products'
111
263
  },
112
- products: {
113
- type: 'array',
114
- items: {
115
- type: 'string'
116
- },
117
- description: 'List of product SKUs that the promotional code can be used on.',
118
- example: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
119
- },
120
- type: {
121
- type: 'string',
122
- description: 'Type of the promotional code.',
123
- example: 'credit',
124
- enum: ['credit', 'discount']
125
- },
126
- value: {
264
+ value_total: {
127
265
  type: 'number',
128
266
  format: 'float',
129
- description: 'Value of the promotional code.',
267
+ description: 'Total value of the promotional code.',
130
268
  example: 10
131
269
  },
132
- billing_period: {
133
- type: 'string',
134
- format: 'date-time',
135
- description: 'Date of the billing cycle. An ISO 8601 date string in the UTC timezone.',
136
- example: '2023-12-20T13:53:32.000Z'
137
- },
138
270
  value_remaining: {
139
271
  type: 'number',
140
272
  format: 'float',
141
- description: 'Value of the promotional code.',
142
- example: 10
273
+ description: 'Remaining value of the promotional code.',
274
+ example: 8
143
275
  }
144
276
  },
145
- required: ['date_created', 'code', 'type', 'value', 'billing_period'],
277
+ required: [
278
+ 'type',
279
+ 'date_start',
280
+ 'code',
281
+ 'value_total'
282
+ ],
146
283
  additionalProperties: false
147
284
  };
148
285
  export const ChartCreateInputSchema = {
@@ -183,7 +320,13 @@ export const ChartCreateInputSchema = {
183
320
  example: 'postgresql'
184
321
  }
185
322
  },
186
- required: ['values', 'version_channel', 'name', 'namespace', 'chart'],
323
+ required: [
324
+ 'values',
325
+ 'version_channel',
326
+ 'name',
327
+ 'namespace',
328
+ 'chart'
329
+ ],
187
330
  additionalProperties: false
188
331
  };
189
332
  export const ChartSchema = {
@@ -225,9 +368,8 @@ export const ChartSchema = {
225
368
  },
226
369
  status: {
227
370
  type: 'string',
228
- description: 'Status of the chart deployment.',
229
- example: 'active',
230
- 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'
231
373
  },
232
374
  version_current: {
233
375
  type: 'string',
@@ -250,7 +392,18 @@ export const ChartSchema = {
250
392
  example: true
251
393
  }
252
394
  },
253
- 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
+ ],
254
407
  additionalProperties: false
255
408
  };
256
409
  export const ChartUpdateInputSchema = {
@@ -267,7 +420,10 @@ export const ChartUpdateInputSchema = {
267
420
  example: '2.x.x-cfke.x'
268
421
  }
269
422
  },
270
- required: ['values', 'version_channel'],
423
+ required: [
424
+ 'values',
425
+ 'version_channel'
426
+ ],
271
427
  additionalProperties: false
272
428
  };
273
429
  export const ClusterCreateInputSchema = {
@@ -284,26 +440,118 @@ export const ClusterCreateInputSchema = {
284
440
  tier: {
285
441
  type: 'string',
286
442
  description: 'Tier of the cluster.',
443
+ default: 'basic',
287
444
  example: 'pro',
288
- enum: ['basic', 'pro']
289
- },
290
- region: {
291
- type: 'string',
292
- description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.',
293
- default: 'staging',
294
- example: 'northamerica-central-1',
295
- enum: ['staging', 'northamerica-central-1', 'europe-central-1a']
445
+ enum: [
446
+ 'basic',
447
+ 'pro',
448
+ 'enterprise'
449
+ ]
296
450
  },
297
451
  version_channel: {
298
452
  type: 'string',
299
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-]+)*))?$',
300
454
  description: 'Version of the kubernetes cluster.',
301
455
  default: '1.x.x-cfke.x',
302
- example: '1.29.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
+ }
303
547
  }
304
548
  },
305
- required: ['name', 'tier'],
306
- 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.'
307
555
  };
308
556
  export const ClusterJoinInformationSchema = {
309
557
  type: 'object',
@@ -311,8 +559,7 @@ export const ClusterJoinInformationSchema = {
311
559
  certificate_authority: {
312
560
  type: 'string',
313
561
  description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
314
- example: `-----BEGIN CERTIFICATE-----
315
- MIIC0DCCAbigAwIBAgI...`
562
+ example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
316
563
  },
317
564
  endpoint: {
318
565
  type: 'string',
@@ -320,6 +567,16 @@ MIIC0DCCAbigAwIBAgI...`
320
567
  description: 'Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.',
321
568
  example: 'https://10.31.64.7:6443'
322
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
+ },
323
580
  auth_key: {
324
581
  type: 'string',
325
582
  description: 'Authentication key for the cluster.',
@@ -336,7 +593,7 @@ MIIC0DCCAbigAwIBAgI...`
336
593
  kubernetes: {
337
594
  type: 'string',
338
595
  description: 'Kubernetes version of the cluster.',
339
- example: '1.29.3'
596
+ example: '1.33.7'
340
597
  },
341
598
  tailscale: {
342
599
  type: 'string',
@@ -354,7 +611,12 @@ MIIC0DCCAbigAwIBAgI...`
354
611
  example: '565.0.0'
355
612
  }
356
613
  },
357
- required: ['kubernetes', 'tailscale', 'containerd', 'nvidia_driver'],
614
+ required: [
615
+ 'kubernetes',
616
+ 'tailscale',
617
+ 'containerd',
618
+ 'nvidia_driver'
619
+ ],
358
620
  additionalProperties: false,
359
621
  description: 'Versions of the different components of the cluster.'
360
622
  },
@@ -377,12 +639,25 @@ MIIC0DCCAbigAwIBAgI...`
377
639
  example: '//iam.googleapis.com/projects/89014267864/locations/global/workloadIdentityPools/cfke/providers/oidc'
378
640
  }
379
641
  },
380
- required: ['metadata_url', 'aws_role_arn', 'gcp_workload_identity_provider'],
642
+ required: [
643
+ 'metadata_url',
644
+ 'aws_role_arn',
645
+ 'gcp_workload_identity_provider'
646
+ ],
381
647
  additionalProperties: false,
382
- description: "OIDC Information for hosts to access to third party API's."
648
+ description: 'OIDC Information for hosts to access to third party API\'s.'
383
649
  }
384
650
  },
385
- required: ['certificate_authority', 'endpoint', 'auth_key', 'bootstrap_token', 'versions', 'third_party_api_access_config'],
651
+ required: [
652
+ 'certificate_authority',
653
+ 'endpoint',
654
+ 'cluster_dns',
655
+ 'pod_cidr',
656
+ 'auth_key',
657
+ 'bootstrap_token',
658
+ 'versions',
659
+ 'third_party_api_access_config'
660
+ ],
386
661
  additionalProperties: false
387
662
  };
388
663
  export const ClusterSchema = {
@@ -399,22 +674,122 @@ export const ClusterSchema = {
399
674
  tier: {
400
675
  type: 'string',
401
676
  description: 'Tier of the cluster.',
677
+ default: 'basic',
402
678
  example: 'pro',
403
- enum: ['basic', 'pro']
404
- },
405
- region: {
406
- type: 'string',
407
- description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a". This field can not be updated after creation.',
408
- default: 'staging',
409
- example: 'northamerica-central-1',
410
- enum: ['staging', 'northamerica-central-1', 'europe-central-1a']
679
+ enum: [
680
+ 'basic',
681
+ 'pro',
682
+ 'enterprise'
683
+ ]
411
684
  },
412
685
  version_channel: {
413
686
  type: 'string',
414
687
  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-]+)*))?$',
415
688
  description: 'Version of the kubernetes cluster.',
416
689
  default: '1.x.x-cfke.x',
417
- example: '1.29.x-cfke.x'
690
+ example: '1.x.x-cfke.x'
691
+ },
692
+ release_channel: {
693
+ type: 'string',
694
+ description: 'Release channel for the cluster\'s control plane.',
695
+ default: 'rapid',
696
+ example: 'rapid',
697
+ enum: [
698
+ 'rapid',
699
+ 'stable',
700
+ 'extended'
701
+ ]
702
+ },
703
+ features: {
704
+ type: 'object',
705
+ properties: {
706
+ gpu_sharing_strategy: {
707
+ type: 'string',
708
+ description: 'GPU sharing strategy.',
709
+ default: 'none',
710
+ example: 'none',
711
+ enum: [
712
+ 'none',
713
+ 'mps',
714
+ 'time_slicing'
715
+ ]
716
+ },
717
+ gpu_max_shared_clients_per_gpu: {
718
+ type: 'integer',
719
+ minimum: 2,
720
+ maximum: 48,
721
+ description: 'Maximum number of pods that may share a single GPU.',
722
+ default: 4,
723
+ example: 10
724
+ },
725
+ cilium_socket_lb_host_namespace_only: {
726
+ type: 'boolean',
727
+ description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
728
+ example: false
729
+ }
730
+ },
731
+ required: [
732
+ 'gpu_sharing_strategy',
733
+ 'gpu_max_shared_clients_per_gpu',
734
+ 'cilium_socket_lb_host_namespace_only'
735
+ ],
736
+ additionalProperties: false,
737
+ description: 'Cluster feature toggles.',
738
+ default: {
739
+ gpu_sharing_strategy: 'none',
740
+ gpu_max_shared_clients_per_gpu: 4,
741
+ cilium_socket_lb_host_namespace_only: false
742
+ }
743
+ },
744
+ region: {
745
+ type: 'string',
746
+ description: 'Cloudfleet control plane region. This field can not be updated after creation.',
747
+ example: 'europe-central-1a'
748
+ },
749
+ networking: {
750
+ type: 'object',
751
+ properties: {
752
+ pod_cidr: {
753
+ type: 'string',
754
+ description: 'CIDR block for pod IPs.',
755
+ default: '10.244.0.0/16'
756
+ },
757
+ service_cidr: {
758
+ type: 'string',
759
+ description: 'CIDR block for service IPs.',
760
+ default: '10.96.0.0/12'
761
+ },
762
+ dual_stack: {
763
+ type: 'boolean',
764
+ description: 'Enable IPv4+IPv6 dual-stack networking.'
765
+ },
766
+ pod_cidr_v6: {
767
+ type: 'string',
768
+ description: 'IPv6 pod CIDR. Requires dual_stack.',
769
+ default: '2001:db8:1:2::/48'
770
+ },
771
+ service_cidr_v6: {
772
+ type: 'string',
773
+ description: 'IPv6 service CIDR. Requires dual_stack.',
774
+ default: '2001:db8:1:1::/112'
775
+ }
776
+ },
777
+ required: [
778
+ 'pod_cidr',
779
+ 'service_cidr',
780
+ 'dual_stack',
781
+ 'pod_cidr_v6',
782
+ 'service_cidr_v6'
783
+ ],
784
+ additionalProperties: false,
785
+ description: 'Cluster networking configuration. Immutable after creation.',
786
+ default: {
787
+ pod_cidr: '10.244.0.0/16',
788
+ service_cidr: '10.96.0.0/12',
789
+ dual_stack: false,
790
+ pod_cidr_v6: '2001:db8:1:2::/48',
791
+ service_cidr_v6: '2001:db8:1:1::/112'
792
+ }
418
793
  },
419
794
  id: {
420
795
  type: 'string',
@@ -424,34 +799,56 @@ export const ClusterSchema = {
424
799
  },
425
800
  status: {
426
801
  type: 'string',
427
- description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
428
- example: 'active',
429
- enum: ['active', 'deleted', 'creating', 'deployed', 'failed', 'updating']
802
+ description: 'Status of the cluster.',
803
+ example: 'deployed',
804
+ enum: [
805
+ 'creating',
806
+ 'deployed',
807
+ 'updating',
808
+ 'disabled'
809
+ ]
430
810
  },
431
811
  endpoint: {
432
812
  anyOf: [
433
813
  {
434
814
  type: 'string',
435
815
  format: 'uri',
436
- description: 'URL of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
437
- example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.cloudfleet.dev:6443'
816
+ 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.',
817
+ example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
818
+ },
819
+ {
820
+ type: 'string',
821
+ enum: [
822
+ ''
823
+ ]
824
+ }
825
+ ]
826
+ },
827
+ endpoint_public: {
828
+ anyOf: [
829
+ {
830
+ type: 'string',
831
+ format: 'uri',
832
+ description: 'Deprecated alias of `endpoint`; retained for backward compatibility.',
833
+ example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
438
834
  },
439
835
  {
440
836
  type: 'string',
441
- enum: ['']
837
+ enum: [
838
+ ''
839
+ ]
442
840
  }
443
841
  ]
444
842
  },
445
843
  certificate_ca: {
446
844
  type: 'string',
447
845
  description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
448
- example: `-----BEGIN CERTIFICATE-----
449
- MIIC0DCCAbigAwIBAgI...`
846
+ example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
450
847
  },
451
848
  version_current: {
452
849
  type: 'string',
453
850
  description: 'Current version of the cluster.',
454
- example: '1.29.3-cfke.52'
851
+ example: '1.33.7-cfke.264'
455
852
  },
456
853
  created_at: {
457
854
  type: 'string',
@@ -469,8 +866,20 @@ MIIC0DCCAbigAwIBAgI...`
469
866
  example: true
470
867
  }
471
868
  },
472
- required: ['name', 'tier', 'id', 'status'],
473
- additionalProperties: false
869
+ required: [
870
+ 'name',
871
+ 'tier',
872
+ 'version_channel',
873
+ 'release_channel',
874
+ 'features',
875
+ 'region',
876
+ 'networking',
877
+ 'id',
878
+ 'status',
879
+ 'ready'
880
+ ],
881
+ additionalProperties: false,
882
+ description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
474
883
  };
475
884
  export const ClusterUpdateInputSchema = {
476
885
  type: 'object',
@@ -486,18 +895,74 @@ export const ClusterUpdateInputSchema = {
486
895
  tier: {
487
896
  type: 'string',
488
897
  description: 'Tier of the cluster.',
898
+ default: 'basic',
489
899
  example: 'pro',
490
- enum: ['basic', 'pro']
900
+ enum: [
901
+ 'basic',
902
+ 'pro',
903
+ 'enterprise'
904
+ ]
491
905
  },
492
906
  version_channel: {
493
907
  type: 'string',
494
908
  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-]+)*))?$',
495
909
  description: 'Version of the kubernetes cluster.',
496
- example: '1.29.x-cfke.x'
910
+ default: '1.x.x-cfke.x',
911
+ example: '1.x.x-cfke.x'
912
+ },
913
+ release_channel: {
914
+ type: 'string',
915
+ description: 'Release channel for the cluster\'s control plane.',
916
+ default: 'rapid',
917
+ example: 'rapid',
918
+ enum: [
919
+ 'rapid',
920
+ 'stable',
921
+ 'extended'
922
+ ]
923
+ },
924
+ features: {
925
+ type: 'object',
926
+ properties: {
927
+ gpu_sharing_strategy: {
928
+ type: 'string',
929
+ description: 'GPU sharing strategy.',
930
+ default: 'none',
931
+ example: 'none',
932
+ enum: [
933
+ 'none',
934
+ 'mps',
935
+ 'time_slicing'
936
+ ]
937
+ },
938
+ gpu_max_shared_clients_per_gpu: {
939
+ type: 'integer',
940
+ minimum: 2,
941
+ maximum: 48,
942
+ description: 'Maximum number of pods that may share a single GPU.',
943
+ default: 4,
944
+ example: 10
945
+ },
946
+ cilium_socket_lb_host_namespace_only: {
947
+ type: 'boolean',
948
+ description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
949
+ example: false
950
+ }
951
+ },
952
+ additionalProperties: false,
953
+ description: 'Cluster feature toggles.',
954
+ default: {
955
+ gpu_sharing_strategy: 'none',
956
+ gpu_max_shared_clients_per_gpu: 4,
957
+ cilium_socket_lb_host_namespace_only: false
958
+ }
497
959
  }
498
960
  },
499
- required: ['tier'],
500
- additionalProperties: false
961
+ required: [
962
+ 'name'
963
+ ],
964
+ additionalProperties: false,
965
+ description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
501
966
  };
502
967
  export const FleetCreateInputSchema = {
503
968
  type: 'object',
@@ -506,13 +971,12 @@ export const FleetCreateInputSchema = {
506
971
  type: 'object',
507
972
  properties: {
508
973
  cpu: {
509
- type: 'number',
510
- format: 'float',
974
+ type: 'integer',
511
975
  minimum: 0,
512
- description: 'CPU limit in cores.'
976
+ maximum: 100000,
977
+ description: 'CPU limit in cores. Maximum 100,000.'
513
978
  }
514
979
  },
515
- required: ['cpu'],
516
980
  additionalProperties: false,
517
981
  description: 'Limits define a set of bounds for provisioning capacity.'
518
982
  },
@@ -520,47 +984,358 @@ export const FleetCreateInputSchema = {
520
984
  type: 'object',
521
985
  properties: {
522
986
  enabled: {
523
- type: 'boolean',
524
- default: true
987
+ type: 'boolean'
525
988
  },
526
989
  project: {
527
990
  type: 'string',
528
- description: 'Project GCP Project id to deploy instances into'
991
+ pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
992
+ 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.',
993
+ example: 'my-cloudfleet-project'
529
994
  }
530
995
  },
531
- required: ['project'],
996
+ required: [
997
+ 'enabled'
998
+ ],
532
999
  additionalProperties: false
533
1000
  },
534
1001
  hetzner: {
535
1002
  type: 'object',
536
1003
  properties: {
537
1004
  enabled: {
538
- type: 'boolean',
539
- default: true
1005
+ type: 'boolean'
540
1006
  },
541
1007
  apiKey: {
542
1008
  type: 'string',
543
- description: 'Hetzner Cloud API key with read / write access'
1009
+ maxLength: 64,
1010
+ minLength: 64,
1011
+ pattern: '^([A-Za-z0-9]{64}|\\*{64})$',
1012
+ 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.'
544
1013
  }
545
1014
  },
546
- required: ['apiKey'],
1015
+ required: [
1016
+ 'enabled'
1017
+ ],
547
1018
  additionalProperties: false
548
1019
  },
549
1020
  aws: {
550
1021
  type: 'object',
551
1022
  properties: {
552
1023
  enabled: {
553
- type: 'boolean',
554
- default: true
1024
+ type: 'boolean'
555
1025
  },
556
1026
  controllerRoleArn: {
557
1027
  type: 'string',
558
- description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
1028
+ pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
1029
+ description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
1030
+ example: 'arn:aws:iam::123456789012:role/Cloudfleet'
559
1031
  }
560
1032
  },
561
- required: ['controllerRoleArn'],
1033
+ required: [
1034
+ 'enabled'
1035
+ ],
562
1036
  additionalProperties: false
563
1037
  },
1038
+ constraints: {
1039
+ type: 'object',
1040
+ properties: {
1041
+ 'karpenter.sh/capacity-type': {
1042
+ type: 'array',
1043
+ items: {
1044
+ type: 'string',
1045
+ enum: [
1046
+ 'on-demand',
1047
+ 'spot'
1048
+ ]
1049
+ },
1050
+ minItems: 1,
1051
+ description: 'Allowed values for `karpenter.sh/capacity-type`.',
1052
+ default: [
1053
+ 'on-demand',
1054
+ 'spot'
1055
+ ]
1056
+ },
1057
+ 'kubernetes.io/arch': {
1058
+ type: 'array',
1059
+ items: {
1060
+ type: 'string',
1061
+ enum: [
1062
+ 'amd64',
1063
+ 'arm64'
1064
+ ]
1065
+ },
1066
+ minItems: 1,
1067
+ description: 'Allowed values for `kubernetes.io/arch`.',
1068
+ default: [
1069
+ 'amd64'
1070
+ ]
1071
+ },
1072
+ 'cfke.io/instance-family': {
1073
+ type: 'array',
1074
+ items: {
1075
+ type: 'string',
1076
+ enum: [
1077
+ 'a1',
1078
+ 'a2',
1079
+ 'a3',
1080
+ 'a4',
1081
+ 'c1',
1082
+ 'c2',
1083
+ 'c2d',
1084
+ 'c3',
1085
+ 'c3d',
1086
+ 'c4',
1087
+ 'c4a',
1088
+ 'c4d',
1089
+ 'c5',
1090
+ 'c5a',
1091
+ 'c5ad',
1092
+ 'c5d',
1093
+ 'c5n',
1094
+ 'c6a',
1095
+ 'c6g',
1096
+ 'c6gd',
1097
+ 'c6gn',
1098
+ 'c6i',
1099
+ 'c6id',
1100
+ 'c6in',
1101
+ 'c7a',
1102
+ 'c7g',
1103
+ 'c7gd',
1104
+ 'c7gn',
1105
+ 'c7i',
1106
+ 'c7i-flex',
1107
+ 'c8g',
1108
+ 'c8gd',
1109
+ 'cax',
1110
+ 'ccx',
1111
+ 'cpx',
1112
+ 'cx',
1113
+ 'd2',
1114
+ 'd3',
1115
+ 'd3en',
1116
+ 'dl1',
1117
+ 'dl2q',
1118
+ 'e2',
1119
+ 'f1',
1120
+ 'f2',
1121
+ 'g1',
1122
+ 'g2',
1123
+ 'g4ad',
1124
+ 'g4dn',
1125
+ 'g5',
1126
+ 'g5g',
1127
+ 'g6',
1128
+ 'g6e',
1129
+ 'gr6',
1130
+ 'h1',
1131
+ 'h3',
1132
+ 'hpc6a',
1133
+ 'hpc6id',
1134
+ 'hpc7a',
1135
+ 'hpc7g',
1136
+ 'i2',
1137
+ 'i3',
1138
+ 'i3en',
1139
+ 'i4g',
1140
+ 'i4i',
1141
+ 'i7i',
1142
+ 'i7ie',
1143
+ 'i8g',
1144
+ 'im4gn',
1145
+ 'inf1',
1146
+ 'inf2',
1147
+ 'is4gen',
1148
+ 'm1',
1149
+ 'm2',
1150
+ 'm3',
1151
+ 'm4',
1152
+ 'm5',
1153
+ 'm5a',
1154
+ 'm5ad',
1155
+ 'm5d',
1156
+ 'm5dn',
1157
+ 'm5n',
1158
+ 'm5zn',
1159
+ 'm6a',
1160
+ 'm6g',
1161
+ 'm6gd',
1162
+ 'm6i',
1163
+ 'm6id',
1164
+ 'm6idn',
1165
+ 'm6in',
1166
+ 'm7a',
1167
+ 'm7g',
1168
+ 'm7gd',
1169
+ 'm7i',
1170
+ 'm7i-flex',
1171
+ 'm8g',
1172
+ 'm8gd',
1173
+ 'n1',
1174
+ 'n2',
1175
+ 'n2d',
1176
+ 'n4',
1177
+ 'p3',
1178
+ 'p3dn',
1179
+ 'p4d',
1180
+ 'p4de',
1181
+ 'p5',
1182
+ 'p5e',
1183
+ 'p5en',
1184
+ 'p6-b200',
1185
+ 'r3',
1186
+ 'r4',
1187
+ 'r5',
1188
+ 'r5a',
1189
+ 'r5ad',
1190
+ 'r5b',
1191
+ 'r5d',
1192
+ 'r5dn',
1193
+ 'r5n',
1194
+ 'r6a',
1195
+ 'r6g',
1196
+ 'r6gd',
1197
+ 'r6i',
1198
+ 'r6id',
1199
+ 'r6idn',
1200
+ 'r6in',
1201
+ 'r7a',
1202
+ 'r7g',
1203
+ 'r7gd',
1204
+ 'r7i',
1205
+ 'r7iz',
1206
+ 'r8g',
1207
+ 'r8gd',
1208
+ 't2',
1209
+ 't2a',
1210
+ 't2d',
1211
+ 't3',
1212
+ 't3a',
1213
+ 't4g',
1214
+ 'trn1',
1215
+ 'trn1n',
1216
+ 'u-3tb1',
1217
+ 'u-6tb1',
1218
+ 'u7i-12tb',
1219
+ 'u7i-6tb',
1220
+ 'u7i-8tb',
1221
+ 'u7in-16tb',
1222
+ 'u7in-24tb',
1223
+ 'u7in-32tb',
1224
+ 'vt1',
1225
+ 'x1',
1226
+ 'x1e',
1227
+ 'x2gd',
1228
+ 'x2idn',
1229
+ 'x2iedn',
1230
+ 'x2iezn',
1231
+ 'x4',
1232
+ 'x8g',
1233
+ 'z1d',
1234
+ 'z3'
1235
+ ]
1236
+ },
1237
+ description: 'Allowed values for `cfke.io/instance-family`.',
1238
+ default: []
1239
+ },
1240
+ 'topology.kubernetes.io/region': {
1241
+ type: 'array',
1242
+ items: {
1243
+ type: 'string',
1244
+ enum: [
1245
+ 'africa-south1',
1246
+ 'ap-northeast-1',
1247
+ 'ap-northeast-2',
1248
+ 'ap-northeast-3',
1249
+ 'ap-south-1',
1250
+ 'ap-southeast-1',
1251
+ 'ap-southeast-2',
1252
+ 'ash',
1253
+ 'asia-east1',
1254
+ 'asia-east2',
1255
+ 'asia-northeast1',
1256
+ 'asia-northeast2',
1257
+ 'asia-northeast3',
1258
+ 'asia-south1',
1259
+ 'asia-south2',
1260
+ 'asia-southeast1',
1261
+ 'asia-southeast2',
1262
+ 'australia-southeast1',
1263
+ 'australia-southeast2',
1264
+ 'ca-central-1',
1265
+ 'eu-central-1',
1266
+ 'eu-central-2',
1267
+ 'eu-north-1',
1268
+ 'eu-west-1',
1269
+ 'eu-west-2',
1270
+ 'eu-west-3',
1271
+ 'europe-central2',
1272
+ 'europe-north1',
1273
+ 'europe-southwest1',
1274
+ 'europe-west1',
1275
+ 'europe-west10',
1276
+ 'europe-west12',
1277
+ 'europe-west2',
1278
+ 'europe-west3',
1279
+ 'europe-west4',
1280
+ 'europe-west6',
1281
+ 'europe-west8',
1282
+ 'europe-west9',
1283
+ 'fsn1',
1284
+ 'hel1',
1285
+ 'hil',
1286
+ 'me-central1',
1287
+ 'me-central2',
1288
+ 'me-west1',
1289
+ 'nbg1',
1290
+ 'northamerica-northeast1',
1291
+ 'northamerica-northeast2',
1292
+ 'sa-east-1',
1293
+ 'sin',
1294
+ 'southamerica-east1',
1295
+ 'southamerica-west1',
1296
+ 'us-central1',
1297
+ 'us-east-1',
1298
+ 'us-east-2',
1299
+ 'us-east1',
1300
+ 'us-east4',
1301
+ 'us-east5',
1302
+ 'us-south1',
1303
+ 'us-west-1',
1304
+ 'us-west-2',
1305
+ 'us-west1',
1306
+ 'us-west2',
1307
+ 'us-west3',
1308
+ 'us-west4'
1309
+ ]
1310
+ },
1311
+ description: 'Allowed values for `topology.kubernetes.io/region`.',
1312
+ default: []
1313
+ }
1314
+ },
1315
+ additionalProperties: false,
1316
+ 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.',
1317
+ default: {
1318
+ 'karpenter.sh/capacity-type': [
1319
+ 'on-demand',
1320
+ 'spot'
1321
+ ],
1322
+ 'kubernetes.io/arch': [
1323
+ 'amd64'
1324
+ ],
1325
+ 'cfke.io/instance-family': [],
1326
+ 'topology.kubernetes.io/region': []
1327
+ }
1328
+ },
1329
+ scalingProfile: {
1330
+ type: 'string',
1331
+ 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`).',
1332
+ default: 'conservative',
1333
+ example: 'conservative',
1334
+ enum: [
1335
+ 'aggressive',
1336
+ 'conservative'
1337
+ ]
1338
+ },
564
1339
  id: {
565
1340
  type: 'string',
566
1341
  maxLength: 63,
@@ -570,8 +1345,11 @@ export const FleetCreateInputSchema = {
570
1345
  example: 'new-clouds-fleet'
571
1346
  }
572
1347
  },
573
- required: ['id'],
574
- additionalProperties: false
1348
+ required: [
1349
+ 'id'
1350
+ ],
1351
+ additionalProperties: false,
1352
+ description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
575
1353
  };
576
1354
  export const FleetSchema = {
577
1355
  type: 'object',
@@ -580,13 +1358,12 @@ export const FleetSchema = {
580
1358
  type: 'object',
581
1359
  properties: {
582
1360
  cpu: {
583
- type: 'number',
584
- format: 'float',
1361
+ type: 'integer',
585
1362
  minimum: 0,
586
- description: 'CPU limit in cores.'
1363
+ maximum: 100000,
1364
+ description: 'CPU limit in cores. Maximum 100,000.'
587
1365
  }
588
1366
  },
589
- required: ['cpu'],
590
1367
  additionalProperties: false,
591
1368
  description: 'Limits define a set of bounds for provisioning capacity.'
592
1369
  },
@@ -594,47 +1371,360 @@ export const FleetSchema = {
594
1371
  type: 'object',
595
1372
  properties: {
596
1373
  enabled: {
597
- type: 'boolean',
598
- default: true
1374
+ type: 'boolean'
599
1375
  },
600
1376
  project: {
601
1377
  type: 'string',
602
- description: 'Project GCP Project id to deploy instances into'
1378
+ pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
1379
+ 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.',
1380
+ example: 'my-cloudfleet-project'
603
1381
  }
604
1382
  },
605
- required: ['project'],
1383
+ required: [
1384
+ 'enabled'
1385
+ ],
606
1386
  additionalProperties: false
607
1387
  },
608
1388
  hetzner: {
609
1389
  type: 'object',
610
1390
  properties: {
611
1391
  enabled: {
612
- type: 'boolean',
613
- default: true
1392
+ type: 'boolean'
614
1393
  },
615
1394
  apiKey: {
616
1395
  type: 'string',
617
- description: 'Hetzner Cloud API key with read / write access'
1396
+ pattern: '^\\*{64}$',
1397
+ 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.'
618
1398
  }
619
1399
  },
620
- required: ['apiKey'],
1400
+ required: [
1401
+ 'enabled'
1402
+ ],
621
1403
  additionalProperties: false
622
1404
  },
623
1405
  aws: {
624
1406
  type: 'object',
625
1407
  properties: {
626
1408
  enabled: {
627
- type: 'boolean',
628
- default: true
1409
+ type: 'boolean'
629
1410
  },
630
1411
  controllerRoleArn: {
631
1412
  type: 'string',
632
- description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
1413
+ pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
1414
+ description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
1415
+ example: 'arn:aws:iam::123456789012:role/Cloudfleet'
633
1416
  }
634
1417
  },
635
- required: ['controllerRoleArn'],
1418
+ required: [
1419
+ 'enabled'
1420
+ ],
636
1421
  additionalProperties: false
637
1422
  },
1423
+ constraints: {
1424
+ type: 'object',
1425
+ properties: {
1426
+ 'karpenter.sh/capacity-type': {
1427
+ type: 'array',
1428
+ items: {
1429
+ type: 'string',
1430
+ enum: [
1431
+ 'on-demand',
1432
+ 'spot'
1433
+ ]
1434
+ },
1435
+ minItems: 1,
1436
+ description: 'Allowed values for `karpenter.sh/capacity-type`.',
1437
+ default: [
1438
+ 'on-demand',
1439
+ 'spot'
1440
+ ]
1441
+ },
1442
+ 'kubernetes.io/arch': {
1443
+ type: 'array',
1444
+ items: {
1445
+ type: 'string',
1446
+ enum: [
1447
+ 'amd64',
1448
+ 'arm64'
1449
+ ]
1450
+ },
1451
+ minItems: 1,
1452
+ description: 'Allowed values for `kubernetes.io/arch`.',
1453
+ default: [
1454
+ 'amd64'
1455
+ ]
1456
+ },
1457
+ 'cfke.io/instance-family': {
1458
+ type: 'array',
1459
+ items: {
1460
+ type: 'string',
1461
+ enum: [
1462
+ 'a1',
1463
+ 'a2',
1464
+ 'a3',
1465
+ 'a4',
1466
+ 'c1',
1467
+ 'c2',
1468
+ 'c2d',
1469
+ 'c3',
1470
+ 'c3d',
1471
+ 'c4',
1472
+ 'c4a',
1473
+ 'c4d',
1474
+ 'c5',
1475
+ 'c5a',
1476
+ 'c5ad',
1477
+ 'c5d',
1478
+ 'c5n',
1479
+ 'c6a',
1480
+ 'c6g',
1481
+ 'c6gd',
1482
+ 'c6gn',
1483
+ 'c6i',
1484
+ 'c6id',
1485
+ 'c6in',
1486
+ 'c7a',
1487
+ 'c7g',
1488
+ 'c7gd',
1489
+ 'c7gn',
1490
+ 'c7i',
1491
+ 'c7i-flex',
1492
+ 'c8g',
1493
+ 'c8gd',
1494
+ 'cax',
1495
+ 'ccx',
1496
+ 'cpx',
1497
+ 'cx',
1498
+ 'd2',
1499
+ 'd3',
1500
+ 'd3en',
1501
+ 'dl1',
1502
+ 'dl2q',
1503
+ 'e2',
1504
+ 'f1',
1505
+ 'f2',
1506
+ 'g1',
1507
+ 'g2',
1508
+ 'g4ad',
1509
+ 'g4dn',
1510
+ 'g5',
1511
+ 'g5g',
1512
+ 'g6',
1513
+ 'g6e',
1514
+ 'gr6',
1515
+ 'h1',
1516
+ 'h3',
1517
+ 'hpc6a',
1518
+ 'hpc6id',
1519
+ 'hpc7a',
1520
+ 'hpc7g',
1521
+ 'i2',
1522
+ 'i3',
1523
+ 'i3en',
1524
+ 'i4g',
1525
+ 'i4i',
1526
+ 'i7i',
1527
+ 'i7ie',
1528
+ 'i8g',
1529
+ 'im4gn',
1530
+ 'inf1',
1531
+ 'inf2',
1532
+ 'is4gen',
1533
+ 'm1',
1534
+ 'm2',
1535
+ 'm3',
1536
+ 'm4',
1537
+ 'm5',
1538
+ 'm5a',
1539
+ 'm5ad',
1540
+ 'm5d',
1541
+ 'm5dn',
1542
+ 'm5n',
1543
+ 'm5zn',
1544
+ 'm6a',
1545
+ 'm6g',
1546
+ 'm6gd',
1547
+ 'm6i',
1548
+ 'm6id',
1549
+ 'm6idn',
1550
+ 'm6in',
1551
+ 'm7a',
1552
+ 'm7g',
1553
+ 'm7gd',
1554
+ 'm7i',
1555
+ 'm7i-flex',
1556
+ 'm8g',
1557
+ 'm8gd',
1558
+ 'n1',
1559
+ 'n2',
1560
+ 'n2d',
1561
+ 'n4',
1562
+ 'p3',
1563
+ 'p3dn',
1564
+ 'p4d',
1565
+ 'p4de',
1566
+ 'p5',
1567
+ 'p5e',
1568
+ 'p5en',
1569
+ 'p6-b200',
1570
+ 'r3',
1571
+ 'r4',
1572
+ 'r5',
1573
+ 'r5a',
1574
+ 'r5ad',
1575
+ 'r5b',
1576
+ 'r5d',
1577
+ 'r5dn',
1578
+ 'r5n',
1579
+ 'r6a',
1580
+ 'r6g',
1581
+ 'r6gd',
1582
+ 'r6i',
1583
+ 'r6id',
1584
+ 'r6idn',
1585
+ 'r6in',
1586
+ 'r7a',
1587
+ 'r7g',
1588
+ 'r7gd',
1589
+ 'r7i',
1590
+ 'r7iz',
1591
+ 'r8g',
1592
+ 'r8gd',
1593
+ 't2',
1594
+ 't2a',
1595
+ 't2d',
1596
+ 't3',
1597
+ 't3a',
1598
+ 't4g',
1599
+ 'trn1',
1600
+ 'trn1n',
1601
+ 'u-3tb1',
1602
+ 'u-6tb1',
1603
+ 'u7i-12tb',
1604
+ 'u7i-6tb',
1605
+ 'u7i-8tb',
1606
+ 'u7in-16tb',
1607
+ 'u7in-24tb',
1608
+ 'u7in-32tb',
1609
+ 'vt1',
1610
+ 'x1',
1611
+ 'x1e',
1612
+ 'x2gd',
1613
+ 'x2idn',
1614
+ 'x2iedn',
1615
+ 'x2iezn',
1616
+ 'x4',
1617
+ 'x8g',
1618
+ 'z1d',
1619
+ 'z3'
1620
+ ]
1621
+ },
1622
+ description: 'Allowed values for `cfke.io/instance-family`.',
1623
+ default: []
1624
+ },
1625
+ 'topology.kubernetes.io/region': {
1626
+ type: 'array',
1627
+ items: {
1628
+ type: 'string',
1629
+ enum: [
1630
+ 'africa-south1',
1631
+ 'ap-northeast-1',
1632
+ 'ap-northeast-2',
1633
+ 'ap-northeast-3',
1634
+ 'ap-south-1',
1635
+ 'ap-southeast-1',
1636
+ 'ap-southeast-2',
1637
+ 'ash',
1638
+ 'asia-east1',
1639
+ 'asia-east2',
1640
+ 'asia-northeast1',
1641
+ 'asia-northeast2',
1642
+ 'asia-northeast3',
1643
+ 'asia-south1',
1644
+ 'asia-south2',
1645
+ 'asia-southeast1',
1646
+ 'asia-southeast2',
1647
+ 'australia-southeast1',
1648
+ 'australia-southeast2',
1649
+ 'ca-central-1',
1650
+ 'eu-central-1',
1651
+ 'eu-central-2',
1652
+ 'eu-north-1',
1653
+ 'eu-west-1',
1654
+ 'eu-west-2',
1655
+ 'eu-west-3',
1656
+ 'europe-central2',
1657
+ 'europe-north1',
1658
+ 'europe-southwest1',
1659
+ 'europe-west1',
1660
+ 'europe-west10',
1661
+ 'europe-west12',
1662
+ 'europe-west2',
1663
+ 'europe-west3',
1664
+ 'europe-west4',
1665
+ 'europe-west6',
1666
+ 'europe-west8',
1667
+ 'europe-west9',
1668
+ 'fsn1',
1669
+ 'hel1',
1670
+ 'hil',
1671
+ 'me-central1',
1672
+ 'me-central2',
1673
+ 'me-west1',
1674
+ 'nbg1',
1675
+ 'northamerica-northeast1',
1676
+ 'northamerica-northeast2',
1677
+ 'sa-east-1',
1678
+ 'sin',
1679
+ 'southamerica-east1',
1680
+ 'southamerica-west1',
1681
+ 'us-central1',
1682
+ 'us-east-1',
1683
+ 'us-east-2',
1684
+ 'us-east1',
1685
+ 'us-east4',
1686
+ 'us-east5',
1687
+ 'us-south1',
1688
+ 'us-west-1',
1689
+ 'us-west-2',
1690
+ 'us-west1',
1691
+ 'us-west2',
1692
+ 'us-west3',
1693
+ 'us-west4'
1694
+ ]
1695
+ },
1696
+ description: 'Allowed values for `topology.kubernetes.io/region`.',
1697
+ default: []
1698
+ }
1699
+ },
1700
+ required: [
1701
+ 'karpenter.sh/capacity-type',
1702
+ 'kubernetes.io/arch'
1703
+ ],
1704
+ additionalProperties: false,
1705
+ 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.',
1706
+ default: {
1707
+ 'karpenter.sh/capacity-type': [
1708
+ 'on-demand',
1709
+ 'spot'
1710
+ ],
1711
+ 'kubernetes.io/arch': [
1712
+ 'amd64'
1713
+ ],
1714
+ 'cfke.io/instance-family': [],
1715
+ 'topology.kubernetes.io/region': []
1716
+ }
1717
+ },
1718
+ scalingProfile: {
1719
+ type: 'string',
1720
+ 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`).',
1721
+ default: 'conservative',
1722
+ example: 'conservative',
1723
+ enum: [
1724
+ 'aggressive',
1725
+ 'conservative'
1726
+ ]
1727
+ },
638
1728
  id: {
639
1729
  type: 'string',
640
1730
  maxLength: 63,
@@ -642,10 +1732,38 @@ export const FleetSchema = {
642
1732
  pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
643
1733
  description: 'Unique identifier of the kubernetes fleet.',
644
1734
  example: 'new-clouds-fleet'
1735
+ },
1736
+ ready: {
1737
+ type: 'boolean',
1738
+ description: 'Indicates whether the fleet configuration is healthy.',
1739
+ example: true
1740
+ },
1741
+ status_message: {
1742
+ type: 'string',
1743
+ description: 'Human-readable reason the fleet is not ready. Present only when `ready` is false.',
1744
+ example: 'Invalid provider permissions.'
1745
+ },
1746
+ created_at: {
1747
+ type: 'string',
1748
+ description: 'Creation date and time of the fleet.',
1749
+ example: '2024-09-12T09:11:27Z'
1750
+ },
1751
+ updated_at: {
1752
+ type: 'string',
1753
+ description: 'Date and time the fleet was last updated.',
1754
+ example: '2024-09-12T09:11:27Z'
645
1755
  }
646
1756
  },
647
- required: ['id'],
648
- additionalProperties: false
1757
+ required: [
1758
+ 'constraints',
1759
+ 'scalingProfile',
1760
+ 'id',
1761
+ 'ready',
1762
+ 'created_at',
1763
+ 'updated_at'
1764
+ ],
1765
+ additionalProperties: false,
1766
+ description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
649
1767
  };
650
1768
  export const FleetUpdateInputSchema = {
651
1769
  type: 'object',
@@ -654,13 +1772,12 @@ export const FleetUpdateInputSchema = {
654
1772
  type: 'object',
655
1773
  properties: {
656
1774
  cpu: {
657
- type: 'number',
658
- format: 'float',
1775
+ type: 'integer',
659
1776
  minimum: 0,
660
- description: 'CPU limit in cores.'
1777
+ maximum: 100000,
1778
+ description: 'CPU limit in cores. Maximum 100,000.'
661
1779
  }
662
1780
  },
663
- required: ['cpu'],
664
1781
  additionalProperties: false,
665
1782
  description: 'Limits define a set of bounds for provisioning capacity.'
666
1783
  },
@@ -668,53 +1785,390 @@ export const FleetUpdateInputSchema = {
668
1785
  type: 'object',
669
1786
  properties: {
670
1787
  enabled: {
671
- type: 'boolean',
672
- default: true
1788
+ type: 'boolean'
673
1789
  },
674
1790
  project: {
675
1791
  type: 'string',
676
- description: 'Project GCP Project id to deploy instances into'
1792
+ pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
1793
+ 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.',
1794
+ example: 'my-cloudfleet-project'
677
1795
  }
678
1796
  },
679
- required: ['project'],
1797
+ required: [
1798
+ 'enabled'
1799
+ ],
680
1800
  additionalProperties: false
681
1801
  },
682
1802
  hetzner: {
683
1803
  type: 'object',
684
1804
  properties: {
685
1805
  enabled: {
686
- type: 'boolean',
687
- default: true
1806
+ type: 'boolean'
688
1807
  },
689
1808
  apiKey: {
690
1809
  type: 'string',
691
- description: 'Hetzner Cloud API key with read / write access'
1810
+ maxLength: 64,
1811
+ minLength: 64,
1812
+ pattern: '^([A-Za-z0-9]{64}|\\*{64})$',
1813
+ 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.'
692
1814
  }
693
1815
  },
694
- required: ['apiKey'],
1816
+ required: [
1817
+ 'enabled'
1818
+ ],
695
1819
  additionalProperties: false
696
1820
  },
697
1821
  aws: {
698
1822
  type: 'object',
699
1823
  properties: {
700
1824
  enabled: {
701
- type: 'boolean',
702
- default: true
1825
+ type: 'boolean'
703
1826
  },
704
1827
  controllerRoleArn: {
705
1828
  type: 'string',
706
- description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
1829
+ pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
1830
+ description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
1831
+ example: 'arn:aws:iam::123456789012:role/Cloudfleet'
707
1832
  }
708
1833
  },
709
- required: ['controllerRoleArn'],
1834
+ required: [
1835
+ 'enabled'
1836
+ ],
710
1837
  additionalProperties: false
711
- }
712
- },
713
- additionalProperties: false
714
- };
715
- export const InviteSchema = {
716
- type: 'object',
717
- properties: {
1838
+ },
1839
+ constraints: {
1840
+ type: 'object',
1841
+ properties: {
1842
+ 'karpenter.sh/capacity-type': {
1843
+ type: 'array',
1844
+ items: {
1845
+ type: 'string',
1846
+ enum: [
1847
+ 'on-demand',
1848
+ 'spot'
1849
+ ]
1850
+ },
1851
+ minItems: 1,
1852
+ description: 'Allowed values for `karpenter.sh/capacity-type`.',
1853
+ default: [
1854
+ 'on-demand',
1855
+ 'spot'
1856
+ ]
1857
+ },
1858
+ 'kubernetes.io/arch': {
1859
+ type: 'array',
1860
+ items: {
1861
+ type: 'string',
1862
+ enum: [
1863
+ 'amd64',
1864
+ 'arm64'
1865
+ ]
1866
+ },
1867
+ minItems: 1,
1868
+ description: 'Allowed values for `kubernetes.io/arch`.',
1869
+ default: [
1870
+ 'amd64'
1871
+ ]
1872
+ },
1873
+ 'cfke.io/instance-family': {
1874
+ type: 'array',
1875
+ items: {
1876
+ type: 'string',
1877
+ enum: [
1878
+ 'a1',
1879
+ 'a2',
1880
+ 'a3',
1881
+ 'a4',
1882
+ 'c1',
1883
+ 'c2',
1884
+ 'c2d',
1885
+ 'c3',
1886
+ 'c3d',
1887
+ 'c4',
1888
+ 'c4a',
1889
+ 'c4d',
1890
+ 'c5',
1891
+ 'c5a',
1892
+ 'c5ad',
1893
+ 'c5d',
1894
+ 'c5n',
1895
+ 'c6a',
1896
+ 'c6g',
1897
+ 'c6gd',
1898
+ 'c6gn',
1899
+ 'c6i',
1900
+ 'c6id',
1901
+ 'c6in',
1902
+ 'c7a',
1903
+ 'c7g',
1904
+ 'c7gd',
1905
+ 'c7gn',
1906
+ 'c7i',
1907
+ 'c7i-flex',
1908
+ 'c8g',
1909
+ 'c8gd',
1910
+ 'cax',
1911
+ 'ccx',
1912
+ 'cpx',
1913
+ 'cx',
1914
+ 'd2',
1915
+ 'd3',
1916
+ 'd3en',
1917
+ 'dl1',
1918
+ 'dl2q',
1919
+ 'e2',
1920
+ 'f1',
1921
+ 'f2',
1922
+ 'g1',
1923
+ 'g2',
1924
+ 'g4ad',
1925
+ 'g4dn',
1926
+ 'g5',
1927
+ 'g5g',
1928
+ 'g6',
1929
+ 'g6e',
1930
+ 'gr6',
1931
+ 'h1',
1932
+ 'h3',
1933
+ 'hpc6a',
1934
+ 'hpc6id',
1935
+ 'hpc7a',
1936
+ 'hpc7g',
1937
+ 'i2',
1938
+ 'i3',
1939
+ 'i3en',
1940
+ 'i4g',
1941
+ 'i4i',
1942
+ 'i7i',
1943
+ 'i7ie',
1944
+ 'i8g',
1945
+ 'im4gn',
1946
+ 'inf1',
1947
+ 'inf2',
1948
+ 'is4gen',
1949
+ 'm1',
1950
+ 'm2',
1951
+ 'm3',
1952
+ 'm4',
1953
+ 'm5',
1954
+ 'm5a',
1955
+ 'm5ad',
1956
+ 'm5d',
1957
+ 'm5dn',
1958
+ 'm5n',
1959
+ 'm5zn',
1960
+ 'm6a',
1961
+ 'm6g',
1962
+ 'm6gd',
1963
+ 'm6i',
1964
+ 'm6id',
1965
+ 'm6idn',
1966
+ 'm6in',
1967
+ 'm7a',
1968
+ 'm7g',
1969
+ 'm7gd',
1970
+ 'm7i',
1971
+ 'm7i-flex',
1972
+ 'm8g',
1973
+ 'm8gd',
1974
+ 'n1',
1975
+ 'n2',
1976
+ 'n2d',
1977
+ 'n4',
1978
+ 'p3',
1979
+ 'p3dn',
1980
+ 'p4d',
1981
+ 'p4de',
1982
+ 'p5',
1983
+ 'p5e',
1984
+ 'p5en',
1985
+ 'p6-b200',
1986
+ 'r3',
1987
+ 'r4',
1988
+ 'r5',
1989
+ 'r5a',
1990
+ 'r5ad',
1991
+ 'r5b',
1992
+ 'r5d',
1993
+ 'r5dn',
1994
+ 'r5n',
1995
+ 'r6a',
1996
+ 'r6g',
1997
+ 'r6gd',
1998
+ 'r6i',
1999
+ 'r6id',
2000
+ 'r6idn',
2001
+ 'r6in',
2002
+ 'r7a',
2003
+ 'r7g',
2004
+ 'r7gd',
2005
+ 'r7i',
2006
+ 'r7iz',
2007
+ 'r8g',
2008
+ 'r8gd',
2009
+ 't2',
2010
+ 't2a',
2011
+ 't2d',
2012
+ 't3',
2013
+ 't3a',
2014
+ 't4g',
2015
+ 'trn1',
2016
+ 'trn1n',
2017
+ 'u-3tb1',
2018
+ 'u-6tb1',
2019
+ 'u7i-12tb',
2020
+ 'u7i-6tb',
2021
+ 'u7i-8tb',
2022
+ 'u7in-16tb',
2023
+ 'u7in-24tb',
2024
+ 'u7in-32tb',
2025
+ 'vt1',
2026
+ 'x1',
2027
+ 'x1e',
2028
+ 'x2gd',
2029
+ 'x2idn',
2030
+ 'x2iedn',
2031
+ 'x2iezn',
2032
+ 'x4',
2033
+ 'x8g',
2034
+ 'z1d',
2035
+ 'z3'
2036
+ ]
2037
+ },
2038
+ description: 'Allowed values for `cfke.io/instance-family`.',
2039
+ default: []
2040
+ },
2041
+ 'topology.kubernetes.io/region': {
2042
+ type: 'array',
2043
+ items: {
2044
+ type: 'string',
2045
+ enum: [
2046
+ 'africa-south1',
2047
+ 'ap-northeast-1',
2048
+ 'ap-northeast-2',
2049
+ 'ap-northeast-3',
2050
+ 'ap-south-1',
2051
+ 'ap-southeast-1',
2052
+ 'ap-southeast-2',
2053
+ 'ash',
2054
+ 'asia-east1',
2055
+ 'asia-east2',
2056
+ 'asia-northeast1',
2057
+ 'asia-northeast2',
2058
+ 'asia-northeast3',
2059
+ 'asia-south1',
2060
+ 'asia-south2',
2061
+ 'asia-southeast1',
2062
+ 'asia-southeast2',
2063
+ 'australia-southeast1',
2064
+ 'australia-southeast2',
2065
+ 'ca-central-1',
2066
+ 'eu-central-1',
2067
+ 'eu-central-2',
2068
+ 'eu-north-1',
2069
+ 'eu-west-1',
2070
+ 'eu-west-2',
2071
+ 'eu-west-3',
2072
+ 'europe-central2',
2073
+ 'europe-north1',
2074
+ 'europe-southwest1',
2075
+ 'europe-west1',
2076
+ 'europe-west10',
2077
+ 'europe-west12',
2078
+ 'europe-west2',
2079
+ 'europe-west3',
2080
+ 'europe-west4',
2081
+ 'europe-west6',
2082
+ 'europe-west8',
2083
+ 'europe-west9',
2084
+ 'fsn1',
2085
+ 'hel1',
2086
+ 'hil',
2087
+ 'me-central1',
2088
+ 'me-central2',
2089
+ 'me-west1',
2090
+ 'nbg1',
2091
+ 'northamerica-northeast1',
2092
+ 'northamerica-northeast2',
2093
+ 'sa-east-1',
2094
+ 'sin',
2095
+ 'southamerica-east1',
2096
+ 'southamerica-west1',
2097
+ 'us-central1',
2098
+ 'us-east-1',
2099
+ 'us-east-2',
2100
+ 'us-east1',
2101
+ 'us-east4',
2102
+ 'us-east5',
2103
+ 'us-south1',
2104
+ 'us-west-1',
2105
+ 'us-west-2',
2106
+ 'us-west1',
2107
+ 'us-west2',
2108
+ 'us-west3',
2109
+ 'us-west4'
2110
+ ]
2111
+ },
2112
+ description: 'Allowed values for `topology.kubernetes.io/region`.',
2113
+ default: []
2114
+ }
2115
+ },
2116
+ additionalProperties: false,
2117
+ 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.',
2118
+ default: {
2119
+ 'karpenter.sh/capacity-type': [
2120
+ 'on-demand',
2121
+ 'spot'
2122
+ ],
2123
+ 'kubernetes.io/arch': [
2124
+ 'amd64'
2125
+ ],
2126
+ 'cfke.io/instance-family': [],
2127
+ 'topology.kubernetes.io/region': []
2128
+ }
2129
+ },
2130
+ scalingProfile: {
2131
+ type: 'string',
2132
+ 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`).',
2133
+ default: 'conservative',
2134
+ example: 'conservative',
2135
+ enum: [
2136
+ 'aggressive',
2137
+ 'conservative'
2138
+ ]
2139
+ }
2140
+ },
2141
+ additionalProperties: false,
2142
+ description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
2143
+ };
2144
+ export const InviteCreateInputSchema = {
2145
+ type: 'object',
2146
+ properties: {
2147
+ email: {
2148
+ type: 'string',
2149
+ format: 'email',
2150
+ description: 'Email address of the user to invite.',
2151
+ example: 'email@example.com'
2152
+ },
2153
+ role: {
2154
+ type: 'string',
2155
+ description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
2156
+ default: 'User',
2157
+ example: 'User',
2158
+ enum: [
2159
+ 'Administrator',
2160
+ 'User'
2161
+ ]
2162
+ }
2163
+ },
2164
+ required: [
2165
+ 'email'
2166
+ ],
2167
+ additionalProperties: false
2168
+ };
2169
+ export const InviteSchema = {
2170
+ type: 'object',
2171
+ properties: {
718
2172
  id: {
719
2173
  type: 'string',
720
2174
  description: 'Unique identifier of the invitation.',
@@ -742,9 +2196,21 @@ export const InviteSchema = {
742
2196
  type: 'string',
743
2197
  description: 'Generated unique invite code.',
744
2198
  example: '7kUZnH7nnKUFfvc4NK2KQF'
2199
+ },
2200
+ role: {
2201
+ type: 'string',
2202
+ description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
2203
+ default: 'User',
2204
+ example: 'User',
2205
+ enum: [
2206
+ 'Administrator',
2207
+ 'User'
2208
+ ]
745
2209
  }
746
2210
  },
747
- required: ['date_created'],
2211
+ required: [
2212
+ 'date_created'
2213
+ ],
748
2214
  additionalProperties: false
749
2215
  };
750
2216
  export const InvoiceSchema = {
@@ -752,23 +2218,18 @@ export const InvoiceSchema = {
752
2218
  properties: {
753
2219
  id: {
754
2220
  type: 'string',
755
- format: 'uuid',
756
- description: 'Unique identifier of the invoice. UUID v4 string in canonical form',
757
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
2221
+ description: 'Unique identifier of the invoice.',
2222
+ example: 'in_1234567890xCrwxghOTj1234'
758
2223
  },
759
- organizationId: {
760
- type: 'string',
761
- format: 'uuid',
762
- description: 'Unique identifier of the organization. UUID v4 string in canonical form',
763
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
2224
+ number: {
2225
+ type: 'string'
764
2226
  },
765
2227
  status: {
766
2228
  type: 'string',
767
2229
  description: 'Status of the invoice',
768
- example: 'DRAFT',
769
- enum: ['DRAFT', 'COMMITTED', 'VOID']
2230
+ example: 'paid'
770
2231
  },
771
- amount: {
2232
+ total: {
772
2233
  type: 'number',
773
2234
  format: 'float',
774
2235
  description: 'Total amount of the invoice',
@@ -777,431 +2238,218 @@ export const InvoiceSchema = {
777
2238
  currency: {
778
2239
  type: 'string',
779
2240
  description: 'Currency of the invoice',
780
- example: 'USD',
781
- enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
782
- },
783
- creditAdj: {
784
- type: 'number',
785
- format: 'float',
786
- description: 'Total amount of credit adjustments',
787
- example: 0
788
- },
789
- refundAdj: {
790
- type: 'number',
791
- format: 'float',
792
- description: 'Total amount of refund adjustments',
793
- example: 0
2241
+ example: 'usd'
794
2242
  },
795
- invoiceDate: {
2243
+ created: {
796
2244
  type: 'string',
797
- description: 'Date of the invoice',
798
- example: '2019-01-01T00:00:00.000Z'
799
- },
800
- targetDate: {
801
- type: 'string',
802
- description: 'Target date of the invoice',
803
- example: '2019-01-01T00:00:00.000Z'
2245
+ format: 'date-time',
2246
+ description: 'Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.',
2247
+ example: '2023-12-20T13:53:32.000Z'
804
2248
  },
805
- invoiceNumber: {
2249
+ period_start: {
806
2250
  type: 'string',
807
- description: 'Number of the invoice',
808
- example: 'INV-0001'
809
- },
810
- balance: {
811
- type: 'number',
812
- format: 'float',
813
- description: 'Balance of the invoice',
814
- example: 100
2251
+ format: 'date-time',
2252
+ description: 'Billing period start timestamp. ISO 8601 date string in the UTC timezone.',
2253
+ example: '2023-12-20T13:53:32.000Z'
815
2254
  },
816
- bundleKeys: {
2255
+ period_end: {
817
2256
  type: 'string',
818
- description: 'Bundle keys of the invoice',
819
- example: 'bundleKey1,bundleKey2'
820
- },
821
- credits: {
822
- type: 'array',
823
- items: {
824
- type: 'object',
825
- properties: {
826
- id: {
827
- type: 'string',
828
- format: 'uuid',
829
- description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
830
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
831
- },
832
- linkedInvoiceItemId: {
833
- type: 'string',
834
- format: 'uuid',
835
- description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
836
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
837
- },
838
- productName: {
839
- type: 'string',
840
- description: 'Name of the product',
841
- example: 'Research team'
842
- },
843
- planName: {
844
- type: 'string',
845
- description: 'Name of the plan',
846
- example: 'Plan A'
847
- },
848
- phaseName: {
849
- type: 'string',
850
- description: 'Name of the phase',
851
- example: 'Phase A'
852
- },
853
- usageName: {
854
- type: 'string',
855
- description: 'Name of the usage',
856
- example: 'Usage A'
857
- },
858
- prettyProductName: {
859
- type: 'string',
860
- description: 'Pretty name of the product',
861
- example: 'Research team'
862
- },
863
- prettyPlanName: {
864
- type: 'string',
865
- description: 'Pretty name of the plan',
866
- example: 'Plan A'
867
- },
868
- prettyPhaseName: {
869
- type: 'string',
870
- description: 'Pretty name of the phase',
871
- example: 'Phase A'
872
- },
873
- prettyUsageName: {
874
- type: 'string',
875
- description: 'Pretty name of the usage',
876
- example: 'Usage A'
877
- },
878
- itemType: {
879
- type: 'string',
880
- description: 'Type of the invoice item',
881
- example: 'EXTERNAL_CHARGE',
882
- enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
883
- },
884
- description: {
885
- type: 'string',
886
- description: 'Description of the invoice item',
887
- example: 'Description of the invoice item'
888
- },
889
- startDate: {
890
- type: 'string',
891
- description: 'Start date of the invoice item',
892
- example: '2019-01-01T00:00:00.000Z'
893
- },
894
- endDate: {
895
- type: 'string',
896
- description: 'End date of the invoice item',
897
- example: '2019-01-01T00:00:00.000Z'
898
- },
899
- amount: {
900
- type: 'number',
901
- format: 'float',
902
- description: 'Amount of the invoice item',
903
- example: 100
904
- },
905
- rate: {
906
- type: 'number',
907
- format: 'float',
908
- description: 'Rate of the invoice item',
909
- example: 100
910
- },
911
- currency: {
912
- type: 'string',
913
- description: 'Currency of the invoice item',
914
- example: 'USD',
915
- enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
916
- },
917
- quantity: {
918
- type: 'number',
919
- format: 'float',
920
- description: 'Quantity of the invoice item',
921
- example: 1
922
- },
923
- itemDetails: {
924
- type: 'string',
925
- description: 'Details of the invoice item',
926
- example: 'Details of the invoice item'
927
- },
928
- catalogEffectiveDate: {
929
- type: 'string',
930
- description: 'Effective date of the catalog',
931
- example: '2019-01-01T00:00:00.000Z'
932
- },
933
- childItems: {
934
- type: 'array',
935
- items: {
936
- oneOf: [
937
- {
938
- type: 'array'
939
- },
940
- {
941
- type: 'boolean'
942
- },
943
- {
944
- type: 'number'
945
- },
946
- {
947
- type: 'object',
948
- additionalProperties: true
949
- },
950
- {
951
- type: 'string'
952
- }
953
- ]
954
- },
955
- description: 'Child items of the invoice item'
956
- }
957
- },
958
- additionalProperties: false
959
- },
960
- description: 'Credits of the invoice'
2257
+ format: 'date-time',
2258
+ description: 'Billing period end timestamp. ISO 8601 date string in the UTC timezone.',
2259
+ example: '2023-12-20T13:53:32.000Z'
961
2260
  },
962
- items: {
963
- type: 'array',
964
- items: {
965
- type: 'object',
966
- properties: {
967
- id: {
968
- type: 'string',
969
- format: 'uuid',
970
- description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
971
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
972
- },
973
- linkedInvoiceItemId: {
974
- type: 'string',
975
- format: 'uuid',
976
- description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
977
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
978
- },
979
- productName: {
980
- type: 'string',
981
- description: 'Name of the product',
982
- example: 'Research team'
983
- },
984
- planName: {
985
- type: 'string',
986
- description: 'Name of the plan',
987
- example: 'Plan A'
988
- },
989
- phaseName: {
990
- type: 'string',
991
- description: 'Name of the phase',
992
- example: 'Phase A'
993
- },
994
- usageName: {
995
- type: 'string',
996
- description: 'Name of the usage',
997
- example: 'Usage A'
998
- },
999
- prettyProductName: {
1000
- type: 'string',
1001
- description: 'Pretty name of the product',
1002
- example: 'Research team'
1003
- },
1004
- prettyPlanName: {
1005
- type: 'string',
1006
- description: 'Pretty name of the plan',
1007
- example: 'Plan A'
1008
- },
1009
- prettyPhaseName: {
1010
- type: 'string',
1011
- description: 'Pretty name of the phase',
1012
- example: 'Phase A'
1013
- },
1014
- prettyUsageName: {
1015
- type: 'string',
1016
- description: 'Pretty name of the usage',
1017
- example: 'Usage A'
1018
- },
1019
- itemType: {
1020
- type: 'string',
1021
- description: 'Type of the invoice item',
1022
- example: 'EXTERNAL_CHARGE',
1023
- enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
1024
- },
1025
- description: {
1026
- type: 'string',
1027
- description: 'Description of the invoice item',
1028
- example: 'Description of the invoice item'
1029
- },
1030
- startDate: {
1031
- type: 'string',
1032
- description: 'Start date of the invoice item',
1033
- example: '2019-01-01T00:00:00.000Z'
1034
- },
1035
- endDate: {
1036
- type: 'string',
1037
- description: 'End date of the invoice item',
1038
- example: '2019-01-01T00:00:00.000Z'
1039
- },
1040
- amount: {
1041
- type: 'number',
1042
- format: 'float',
1043
- description: 'Amount of the invoice item',
1044
- example: 100
1045
- },
1046
- rate: {
1047
- type: 'number',
1048
- format: 'float',
1049
- description: 'Rate of the invoice item',
1050
- example: 100
1051
- },
1052
- currency: {
1053
- type: 'string',
1054
- description: 'Currency of the invoice item',
1055
- example: 'USD',
1056
- enum: ['AED', 'AFN', 'ALL', 'AMD', 'ANG', 'AOA', 'ARS', 'AUD', 'AWG', 'AZN', 'BAM', 'BBD', 'BDT', 'BGN', 'BHD', 'BIF', 'BMD', 'BND', 'BOB', 'BRL', 'BSD', 'BTN', 'BWP', 'BYR', 'BZD', 'CAD', 'CDF', 'CHF', 'CLP', 'CNY', 'COP', 'CRC', 'CUC', 'CUP', 'CVE', 'CZK', 'DJF', 'DKK', 'DOP', 'DZD', 'EGP', 'ERN', 'ETB', 'EUR', 'FJD', 'FKP', 'GBP', 'GEL', 'GGP', 'GHS', 'GIP', 'GMD', 'GNF', 'GTQ', 'GYD', 'HKD', 'HNL', 'HRK', 'HTG', 'HUF', 'IDR', 'ILS', 'IMP', 'INR', 'IQD', 'IRR', 'ISK', 'JEP', 'JMD', 'JOD', 'JPY', 'KES', 'KGS', 'KHR', 'KMF', 'KPW', 'KRW', 'KWD', 'KYD', 'KZT', 'LAK', 'LBP', 'LKR', 'LRD', 'LSL', 'LTL', 'LVL', 'LYD', 'MAD', 'MDL', 'MGA', 'MKD', 'MMK', 'MNT', 'MOP', 'MRO', 'MUR', 'MVR', 'MWK', 'MXN', 'MYR', 'MZN', 'NAD', 'NGN', 'NIO', 'NOK', 'NPR', 'NZD', 'OMR', 'PAB', 'PEN', 'PGK', 'PHP', 'PKR', 'PLN', 'PYG', 'QAR', 'RON', 'RSD', 'RUB', 'RWF', 'SAR', 'SBD', 'SCR', 'SDG', 'SEK', 'SGD', 'SHP', 'SLL', 'SOS', 'SPL', 'SRD', 'STD', 'SVC', 'SYP', 'SZL', 'THB', 'TJS', 'TMT', 'TND', 'TOP', 'TRY', 'TTD', 'TVD', 'TWD', 'TZS', 'UAH', 'UGX', 'USD', 'UYU', 'UZS', 'VEF', 'VND', 'VUV', 'WST', 'XAF', 'XCD', 'XDR', 'XOF', 'XPF', 'YER', 'ZAR', 'ZMW', 'ZWD', 'BTC']
1057
- },
1058
- quantity: {
1059
- type: 'number',
1060
- format: 'float',
1061
- description: 'Quantity of the invoice item',
1062
- example: 1
1063
- },
1064
- itemDetails: {
1065
- type: 'string',
1066
- description: 'Details of the invoice item',
1067
- example: 'Details of the invoice item'
1068
- },
1069
- catalogEffectiveDate: {
1070
- type: 'string',
1071
- description: 'Effective date of the catalog',
1072
- example: '2019-01-01T00:00:00.000Z'
1073
- },
1074
- childItems: {
1075
- type: 'array',
1076
- items: {
1077
- oneOf: [
1078
- {
1079
- type: 'array'
1080
- },
1081
- {
1082
- type: 'boolean'
1083
- },
1084
- {
1085
- type: 'number'
1086
- },
1087
- {
1088
- type: 'object',
1089
- additionalProperties: true
1090
- },
1091
- {
1092
- type: 'string'
1093
- }
1094
- ]
1095
- },
1096
- description: 'Child items of the invoice item'
1097
- }
1098
- },
1099
- additionalProperties: false
1100
- },
1101
- description: 'Items of the invoice'
2261
+ invoice_pdf: {
2262
+ type: 'string'
1102
2263
  }
1103
2264
  },
2265
+ required: [
2266
+ 'created',
2267
+ 'period_start',
2268
+ 'period_end'
2269
+ ],
1104
2270
  additionalProperties: false
1105
2271
  };
1106
- export const MarketplaceListingSchema = {
2272
+ export const MarketplaceListingFilesSchema = {
1107
2273
  type: 'object',
1108
2274
  properties: {
1109
- id: {
1110
- type: 'string',
1111
- maxLength: 63,
1112
- minLength: 1,
1113
- pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
1114
- description: 'Id of the chart listing',
1115
- example: 'portworx-enterprise-disaster-recovery-baremetal'
1116
- },
1117
- name: {
1118
- type: 'string',
1119
- description: 'Name of the chart listing',
1120
- example: 'Portworx Enterprise + Disaster Recovery - Baremetal'
1121
- },
1122
- developer: {
2275
+ chartYaml: {
1123
2276
  type: 'string',
1124
- description: 'Author of the chart listing',
1125
- example: 'Portworx'
2277
+ description: 'Raw Chart.yaml content from the Helm chart',
2278
+ example: 'apiVersion: v2\nname: nginx-ingress\nversion: 1.18.2-cfke.45\nappVersion: 1.9.4'
1126
2279
  },
1127
- description: {
2280
+ valuesYaml: {
1128
2281
  type: 'string',
1129
- description: 'Short description of the chart listing',
1130
- example: 'Run Kubernetes with unmatched scalability, availability, and self-service access to any storage'
2282
+ description: 'Raw values.yaml content from the Helm chart',
2283
+ example: 'replicaCount: 1\nimage:\n repository: nginx\n tag: latest'
1131
2284
  },
1132
- logoUrl: {
2285
+ valuesSchemaJson: {
1133
2286
  type: 'string',
1134
- description: 'Logo of the chart listing',
1135
- example: 'https://portworx.com/wp-content/themes/portworx/assets/images/header/portworx-logo.png'
1136
- },
1137
- longDescription: {
2287
+ description: 'JSON schema for values.yaml as a string',
2288
+ example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
2289
+ }
2290
+ },
2291
+ additionalProperties: false
2292
+ };
2293
+ export const MarketplaceListingSchema = {
2294
+ type: 'object',
2295
+ properties: {
2296
+ name: {
1138
2297
  type: 'string',
1139
- description: 'Long description of the chart listing',
1140
- example: 'Portworx-Enterprise is the complete multi-cloud ready Kubernetes storage platform for running mission-critical apps in production....'
2298
+ description: 'Name of the chart',
2299
+ example: 'nginx-ingress'
1141
2300
  },
1142
- categories: {
2301
+ versions: {
1143
2302
  type: 'array',
1144
2303
  items: {
1145
2304
  type: 'string',
1146
- example: 'AI & Machine Learning'
2305
+ pattern: '^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(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-]+)*))?$',
2306
+ description: 'Specific version of the chart',
2307
+ example: '1.18.2-cfke.45'
1147
2308
  },
1148
- description: 'Tags of the chart'
2309
+ description: 'Available versions of the chart'
1149
2310
  },
1150
2311
  version_channels: {
1151
2312
  type: 'array',
1152
2313
  items: {
1153
2314
  type: 'string',
1154
2315
  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-]+)*))?$',
1155
- description: 'Version of the chart.',
1156
- example: '2.x.x-cfke.x'
1157
- }
2316
+ description: 'Version channel pattern',
2317
+ example: '1.18.x-cfke.x'
2318
+ },
2319
+ description: 'Version channels for the chart'
1158
2320
  },
1159
- value_schemas: {
1160
- type: 'array',
1161
- items: {
1162
- type: 'object',
1163
- properties: {
1164
- version: {
1165
- type: 'string',
1166
- 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-]+)*))?$',
1167
- description: 'Version of the chart.',
1168
- example: '2.1.1-cfke.123'
1169
- },
1170
- schema: {
1171
- type: 'string',
1172
- description: 'Schema of the chart values. JSON Schema as string'
1173
- },
1174
- placeholder: {
1175
- type: 'string',
1176
- description: 'Schema of the chart values',
1177
- example: `foo: 1
1178
- bar: example`
1179
- }
1180
- },
1181
- required: ['version', 'schema', 'placeholder'],
1182
- additionalProperties: false
1183
- }
1184
- }
1185
- },
1186
- required: ['id', 'name', 'developer', 'description', 'logoUrl', 'longDescription', 'categories', 'version_channels', 'value_schemas'],
1187
- additionalProperties: false
1188
- };
1189
- export const OrganizationCreateInputSchema = {
1190
- type: 'object',
1191
- properties: {
1192
- email: {
2321
+ latestVersion: {
1193
2322
  type: 'string',
1194
- format: 'email',
1195
- description: 'Email address used for billing as a string.',
2323
+ description: 'Latest version of the chart',
2324
+ example: '1.18.2-cfke.45'
2325
+ },
2326
+ metadata: {
2327
+ type: 'object',
2328
+ properties: {
2329
+ name: {
2330
+ type: 'string',
2331
+ description: 'Chart name from metadata',
2332
+ example: 'nginx-ingress'
2333
+ },
2334
+ version: {
2335
+ type: 'string',
2336
+ description: 'Chart version from metadata',
2337
+ example: '1.18.2-cfke.45'
2338
+ },
2339
+ description: {
2340
+ type: 'string',
2341
+ description: 'Chart description',
2342
+ example: 'NGINX Ingress Controller for Kubernetes'
2343
+ },
2344
+ appVersion: {
2345
+ type: 'string',
2346
+ description: 'Application version',
2347
+ example: '1.9.4'
2348
+ },
2349
+ apiVersion: {
2350
+ type: 'string',
2351
+ description: 'Helm API version',
2352
+ example: 'v2'
2353
+ },
2354
+ keywords: {
2355
+ type: 'array',
2356
+ items: {
2357
+ type: 'string'
2358
+ },
2359
+ description: 'Chart keywords',
2360
+ example: [
2361
+ 'ingress',
2362
+ 'nginx',
2363
+ 'load-balancer'
2364
+ ]
2365
+ },
2366
+ home: {
2367
+ type: 'string',
2368
+ description: 'Chart home URL',
2369
+ example: 'https://kubernetes.github.io/ingress-nginx/'
2370
+ },
2371
+ icon: {
2372
+ type: 'string',
2373
+ description: 'A URL to an SVG or PNG image to be used as an icon',
2374
+ example: 'https://cloudfleet.ai/images/marketplace/icons/ingress-nginx.png'
2375
+ },
2376
+ sources: {
2377
+ type: 'array',
2378
+ items: {
2379
+ type: 'string'
2380
+ },
2381
+ description: 'Chart source URLs',
2382
+ example: [
2383
+ 'https://github.com/kubernetes/ingress-nginx'
2384
+ ]
2385
+ },
2386
+ maintainers: {
2387
+ type: 'array',
2388
+ items: {
2389
+ type: 'object',
2390
+ properties: {
2391
+ name: {
2392
+ type: 'string',
2393
+ description: 'Maintainer name',
2394
+ example: 'NGINX Team'
2395
+ },
2396
+ email: {
2397
+ type: 'string',
2398
+ description: 'Maintainer email',
2399
+ example: 'support@nginx.org'
2400
+ }
2401
+ },
2402
+ required: [
2403
+ 'name'
2404
+ ],
2405
+ additionalProperties: false
2406
+ },
2407
+ description: 'Chart maintainers'
2408
+ }
2409
+ },
2410
+ required: [
2411
+ 'name',
2412
+ 'version'
2413
+ ],
2414
+ additionalProperties: false,
2415
+ description: 'Chart metadata'
2416
+ }
2417
+ },
2418
+ required: [
2419
+ 'name',
2420
+ 'versions',
2421
+ 'version_channels',
2422
+ 'latestVersion'
2423
+ ],
2424
+ additionalProperties: false
2425
+ };
2426
+ export const OrganizationCreateInputSchema = {
2427
+ type: 'object',
2428
+ properties: {
2429
+ type: {
2430
+ type: 'string',
2431
+ description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
2432
+ example: 'business',
2433
+ enum: [
2434
+ 'business',
2435
+ 'personal'
2436
+ ]
2437
+ },
2438
+ email: {
2439
+ type: 'string',
2440
+ format: 'email',
2441
+ description: 'Email address used for billing as a string.',
1196
2442
  example: 'email@example.com'
1197
2443
  },
1198
2444
  first_name: {
1199
2445
  type: 'string',
2446
+ minLength: 1,
1200
2447
  description: 'First name of the billing contact person.',
1201
2448
  example: 'John'
1202
2449
  },
1203
2450
  last_name: {
1204
2451
  type: 'string',
2452
+ minLength: 1,
1205
2453
  description: 'Last name of the billing contact person.',
1206
2454
  example: 'Doe'
1207
2455
  },
@@ -1219,7 +2467,28 @@ export const OrganizationCreateInputSchema = {
1219
2467
  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.'
1220
2468
  }
1221
2469
  },
1222
- required: ['email', 'first_name', 'last_name', 'company_name', 'password'],
2470
+ required: [
2471
+ 'type',
2472
+ 'email',
2473
+ 'first_name',
2474
+ 'last_name',
2475
+ 'company_name',
2476
+ 'password'
2477
+ ],
2478
+ additionalProperties: false
2479
+ };
2480
+ export const OrganizationCreateOutputSchema = {
2481
+ type: 'object',
2482
+ properties: {
2483
+ id: {
2484
+ type: 'string',
2485
+ description: 'Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.',
2486
+ example: 'organization-id'
2487
+ }
2488
+ },
2489
+ required: [
2490
+ 'id'
2491
+ ],
1223
2492
  additionalProperties: false
1224
2493
  };
1225
2494
  export const OrganizationSchema = {
@@ -1238,6 +2507,15 @@ export const OrganizationSchema = {
1238
2507
  description: 'Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.',
1239
2508
  example: 'ACME Corp.'
1240
2509
  },
2510
+ type: {
2511
+ type: 'string',
2512
+ description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
2513
+ example: 'business',
2514
+ enum: [
2515
+ 'business',
2516
+ 'personal'
2517
+ ]
2518
+ },
1241
2519
  date_created: {
1242
2520
  type: 'string',
1243
2521
  format: 'date-time',
@@ -1269,6 +2547,17 @@ export const OrganizationSchema = {
1269
2547
  description: 'Available number of Pro clusters that can be created.',
1270
2548
  example: 999
1271
2549
  },
2550
+ enterprise_clusters_max: {
2551
+ type: 'integer',
2552
+ minimum: 0,
2553
+ description: 'Maximum number of Enterprise clusters that can be created.',
2554
+ example: 999
2555
+ },
2556
+ enterprise_clusters_available: {
2557
+ type: 'integer',
2558
+ description: 'Available number of Enterprise clusters that can be created.',
2559
+ example: 999
2560
+ },
1272
2561
  fleets_max: {
1273
2562
  type: 'integer',
1274
2563
  minimum: 0,
@@ -1279,107 +2568,873 @@ export const OrganizationSchema = {
1279
2568
  type: 'array',
1280
2569
  items: {
1281
2570
  type: 'string',
1282
- example: 'basic'
2571
+ example: 'basic'
2572
+ },
2573
+ minItems: 0,
2574
+ description: 'List of Cloudfleet cluster tiers available for the organization.'
2575
+ },
2576
+ regions: {
2577
+ type: 'array',
2578
+ items: {
2579
+ type: 'string',
2580
+ example: 'northamerica-central-1a'
2581
+ },
2582
+ minItems: 1,
2583
+ description: 'List of Cloudfleet control plane regions available for the organization.'
2584
+ },
2585
+ versions: {
2586
+ type: 'array',
2587
+ items: {
2588
+ type: 'object',
2589
+ properties: {
2590
+ id: {
2591
+ type: 'string',
2592
+ description: 'Id of the control plane version. Used in API calls.',
2593
+ example: '1.33.x-cfke.x'
2594
+ },
2595
+ label: {
2596
+ type: 'string',
2597
+ description: 'Label of the control plane version. Used in frontent UI.',
2598
+ example: '1.33.x (Always latest 1.33 patch version)'
2599
+ }
2600
+ },
2601
+ required: [
2602
+ 'id',
2603
+ 'label'
2604
+ ],
2605
+ additionalProperties: false
2606
+ },
2607
+ minItems: 1,
2608
+ description: 'List of CFKE control plane versions available for the organization.'
2609
+ },
2610
+ cfcr_storage_gb: {
2611
+ type: 'integer',
2612
+ minimum: -1,
2613
+ description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
2614
+ example: 500
2615
+ }
2616
+ },
2617
+ required: [
2618
+ 'basic_clusters_max',
2619
+ 'basic_clusters_available',
2620
+ 'pro_clusters_max',
2621
+ 'pro_clusters_available',
2622
+ 'enterprise_clusters_max',
2623
+ 'enterprise_clusters_available',
2624
+ 'fleets_max',
2625
+ 'cluster_tiers',
2626
+ 'regions',
2627
+ 'versions',
2628
+ 'cfcr_storage_gb'
2629
+ ],
2630
+ additionalProperties: false,
2631
+ 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.'
2632
+ },
2633
+ status: {
2634
+ type: 'string',
2635
+ description: 'Status of the organization. Can be `active` or `closed`, or `suspended`.',
2636
+ enum: [
2637
+ 'active',
2638
+ 'closed',
2639
+ 'suspended'
2640
+ ]
2641
+ },
2642
+ verification: {
2643
+ type: 'string',
2644
+ 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.',
2645
+ example: 'verified',
2646
+ enum: [
2647
+ 'none',
2648
+ 'submitted',
2649
+ 'verified'
2650
+ ]
2651
+ }
2652
+ },
2653
+ required: [
2654
+ 'id',
2655
+ 'type',
2656
+ 'date_created',
2657
+ 'quota',
2658
+ 'status',
2659
+ 'verification'
2660
+ ],
2661
+ additionalProperties: false
2662
+ };
2663
+ export const PaymentMethodSchema = {
2664
+ type: 'object',
2665
+ properties: {
2666
+ id: {
2667
+ type: 'string',
2668
+ 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.',
2669
+ example: 'pm_1MtwBwLkdIwHu7ix28a3tqPa'
2670
+ },
2671
+ type: {
2672
+ type: 'string',
2673
+ description: 'Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.',
2674
+ example: 'card',
2675
+ enum: [
2676
+ 'card',
2677
+ 'sepa_debit',
2678
+ 'bank_transfer'
2679
+ ]
2680
+ },
2681
+ last4: {
2682
+ type: 'string',
2683
+ nullable: true,
2684
+ 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.',
2685
+ example: '4242'
2686
+ },
2687
+ exp_month: {
2688
+ type: 'integer',
2689
+ minimum: 1,
2690
+ maximum: 12,
2691
+ nullable: true,
2692
+ description: 'Two-digit number representing the card\'s expiration month. Null for SEPA Direct Debit and bank transfer.',
2693
+ example: 12
2694
+ },
2695
+ exp_year: {
2696
+ type: 'integer',
2697
+ nullable: true,
2698
+ 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.',
2699
+ example: 2028
2700
+ },
2701
+ brand: {
2702
+ type: 'string',
2703
+ nullable: true,
2704
+ 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.',
2705
+ example: 'visa'
2706
+ },
2707
+ iban: {
2708
+ type: 'string',
2709
+ nullable: true,
2710
+ 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.',
2711
+ example: 'DE11243015658023127510'
2712
+ },
2713
+ bic: {
2714
+ type: 'string',
2715
+ nullable: true,
2716
+ description: 'BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.',
2717
+ example: 'SOGEDEFFXXX'
2718
+ },
2719
+ account_holder_name: {
2720
+ type: 'string',
2721
+ nullable: true,
2722
+ description: 'Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.',
2723
+ example: 'Cloudfleet GmbH'
2724
+ },
2725
+ is_default: {
2726
+ type: 'boolean',
2727
+ 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).',
2728
+ example: true
2729
+ }
2730
+ },
2731
+ required: [
2732
+ 'id',
2733
+ 'type',
2734
+ 'last4',
2735
+ 'exp_month',
2736
+ 'exp_year',
2737
+ 'brand',
2738
+ 'iban',
2739
+ 'bic',
2740
+ 'account_holder_name',
2741
+ 'is_default'
2742
+ ],
2743
+ additionalProperties: false
2744
+ };
2745
+ export const PlatformQuotaSchema = {
2746
+ type: 'object',
2747
+ properties: {
2748
+ basic_clusters_max: {
2749
+ type: 'integer',
2750
+ minimum: 0,
2751
+ description: 'Maximum number of Basic clusters that can be created.',
2752
+ example: 999
2753
+ },
2754
+ basic_clusters_available: {
2755
+ type: 'integer',
2756
+ description: 'Available number of Basic clusters that can be created.',
2757
+ example: 999
2758
+ },
2759
+ pro_clusters_max: {
2760
+ type: 'integer',
2761
+ minimum: 0,
2762
+ description: 'Maximum number of Pro clusters that can be created.',
2763
+ example: 999
2764
+ },
2765
+ pro_clusters_available: {
2766
+ type: 'integer',
2767
+ description: 'Available number of Pro clusters that can be created.',
2768
+ example: 999
2769
+ },
2770
+ enterprise_clusters_max: {
2771
+ type: 'integer',
2772
+ minimum: 0,
2773
+ description: 'Maximum number of Enterprise clusters that can be created.',
2774
+ example: 999
2775
+ },
2776
+ enterprise_clusters_available: {
2777
+ type: 'integer',
2778
+ description: 'Available number of Enterprise clusters that can be created.',
2779
+ example: 999
2780
+ },
2781
+ fleets_max: {
2782
+ type: 'integer',
2783
+ minimum: 0,
2784
+ description: 'Maximum number of fleets that can be created per cluster.',
2785
+ example: 999
2786
+ },
2787
+ cluster_tiers: {
2788
+ type: 'array',
2789
+ items: {
2790
+ type: 'string',
2791
+ example: 'basic'
2792
+ },
2793
+ minItems: 0,
2794
+ description: 'List of Cloudfleet cluster tiers available for the organization.'
2795
+ },
2796
+ regions: {
2797
+ type: 'array',
2798
+ items: {
2799
+ type: 'string',
2800
+ example: 'northamerica-central-1a'
2801
+ },
2802
+ minItems: 1,
2803
+ description: 'List of Cloudfleet control plane regions available for the organization.'
2804
+ },
2805
+ versions: {
2806
+ type: 'array',
2807
+ items: {
2808
+ type: 'object',
2809
+ properties: {
2810
+ id: {
2811
+ type: 'string',
2812
+ description: 'Id of the control plane version. Used in API calls.',
2813
+ example: '1.33.x-cfke.x'
2814
+ },
2815
+ label: {
2816
+ type: 'string',
2817
+ description: 'Label of the control plane version. Used in frontent UI.',
2818
+ example: '1.33.x (Always latest 1.33 patch version)'
2819
+ }
2820
+ },
2821
+ required: [
2822
+ 'id',
2823
+ 'label'
2824
+ ],
2825
+ additionalProperties: false
2826
+ },
2827
+ minItems: 1,
2828
+ description: 'List of CFKE control plane versions available for the organization.'
2829
+ },
2830
+ cfcr_storage_gb: {
2831
+ type: 'integer',
2832
+ minimum: -1,
2833
+ description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
2834
+ example: 500
2835
+ }
2836
+ },
2837
+ required: [
2838
+ 'basic_clusters_max',
2839
+ 'basic_clusters_available',
2840
+ 'pro_clusters_max',
2841
+ 'pro_clusters_available',
2842
+ 'enterprise_clusters_max',
2843
+ 'enterprise_clusters_available',
2844
+ 'fleets_max',
2845
+ 'cluster_tiers',
2846
+ 'regions',
2847
+ 'versions',
2848
+ 'cfcr_storage_gb'
2849
+ ],
2850
+ additionalProperties: false
2851
+ };
2852
+ export const RegistryRepositorySchema = {
2853
+ type: 'object',
2854
+ properties: {
2855
+ name: {
2856
+ type: 'string',
2857
+ description: 'Repository name.',
2858
+ example: 'my-app'
2859
+ },
2860
+ region: {
2861
+ type: 'string',
2862
+ description: 'Registry region.',
2863
+ example: 'northamerica'
2864
+ },
2865
+ uri: {
2866
+ type: 'string',
2867
+ description: 'Full URI of the repository.',
2868
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
2869
+ }
2870
+ },
2871
+ required: [
2872
+ 'name',
2873
+ 'region',
2874
+ 'uri'
2875
+ ],
2876
+ additionalProperties: false
2877
+ };
2878
+ export const RegistryRepositoryWithTagsSchema = {
2879
+ type: 'object',
2880
+ properties: {
2881
+ name: {
2882
+ type: 'string',
2883
+ description: 'Repository name.',
2884
+ example: 'my-app'
2885
+ },
2886
+ region: {
2887
+ type: 'string',
2888
+ description: 'Registry region.',
2889
+ example: 'northamerica'
2890
+ },
2891
+ uri: {
2892
+ type: 'string',
2893
+ description: 'Full URI of the repository.',
2894
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
2895
+ },
2896
+ tags: {
2897
+ type: 'array',
2898
+ items: {
2899
+ type: 'object',
2900
+ properties: {
2901
+ name: {
2902
+ type: 'string',
2903
+ description: 'Tag name.',
2904
+ example: 'latest'
2905
+ },
2906
+ size: {
2907
+ type: 'number',
2908
+ format: 'float',
2909
+ description: 'Size of the tag in bytes.',
2910
+ example: 123456789
2911
+ },
2912
+ mediaType: {
2913
+ type: 'string',
2914
+ description: 'Media type of the manifest.',
2915
+ example: 'application/vnd.docker.distribution.manifest.v2+json'
2916
+ },
2917
+ platforms: {
2918
+ type: 'array',
2919
+ items: {
2920
+ type: 'string'
2921
+ },
2922
+ description: 'Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).',
2923
+ example: [
2924
+ 'linux/amd64',
2925
+ 'linux/arm64'
2926
+ ]
2927
+ }
2928
+ },
2929
+ required: [
2930
+ 'name',
2931
+ 'size'
2932
+ ],
2933
+ additionalProperties: false
2934
+ },
2935
+ description: 'Array of tags in the repository.'
2936
+ },
2937
+ totalSize: {
2938
+ type: 'number',
2939
+ format: 'float',
2940
+ description: 'Total size of all tags in the repository in bytes.',
2941
+ example: 987654321
2942
+ }
2943
+ },
2944
+ required: [
2945
+ 'name',
2946
+ 'region',
2947
+ 'uri',
2948
+ 'tags',
2949
+ 'totalSize'
2950
+ ],
2951
+ additionalProperties: false
2952
+ };
2953
+ export const RegistryTagSchema = {
2954
+ type: 'object',
2955
+ properties: {
2956
+ name: {
2957
+ type: 'string',
2958
+ description: 'Tag name.',
2959
+ example: 'latest'
2960
+ },
2961
+ digest: {
2962
+ type: 'string',
2963
+ description: 'Manifest digest for pulling by digest.',
2964
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
2965
+ },
2966
+ mediaType: {
2967
+ type: 'string',
2968
+ description: 'Media type of the manifest.',
2969
+ example: 'application/vnd.docker.distribution.manifest.v2+json'
2970
+ },
2971
+ config: {
2972
+ type: 'object',
2973
+ properties: {
2974
+ size: {
2975
+ type: 'number',
2976
+ format: 'float',
2977
+ description: 'Size of the config in bytes.',
2978
+ example: 1234
2979
+ }
2980
+ },
2981
+ required: [
2982
+ 'size'
2983
+ ],
2984
+ additionalProperties: false,
2985
+ description: 'Manifest config metadata.'
2986
+ },
2987
+ layers: {
2988
+ type: 'array',
2989
+ items: {
2990
+ type: 'object',
2991
+ properties: {
2992
+ digest: {
2993
+ type: 'string',
2994
+ description: 'Digest of the layer.',
2995
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
2996
+ },
2997
+ size: {
2998
+ type: 'number',
2999
+ format: 'float',
3000
+ description: 'Size of the layer in bytes.',
3001
+ example: 5678
3002
+ }
3003
+ },
3004
+ required: [
3005
+ 'size'
3006
+ ],
3007
+ additionalProperties: false
3008
+ },
3009
+ description: 'Array of layer metadata.'
3010
+ },
3011
+ manifests: {
3012
+ type: 'array',
3013
+ items: {
3014
+ type: 'object',
3015
+ properties: {
3016
+ digest: {
3017
+ type: 'string',
3018
+ description: 'Digest of the manifest.',
3019
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
3020
+ },
3021
+ platform: {
3022
+ type: 'object',
3023
+ properties: {
3024
+ architecture: {
3025
+ type: 'string',
3026
+ description: 'Architecture of the platform.',
3027
+ example: 'amd64'
3028
+ },
3029
+ os: {
3030
+ type: 'string',
3031
+ description: 'Operating system of the platform.',
3032
+ example: 'linux'
3033
+ },
3034
+ variant: {
3035
+ type: 'string',
3036
+ description: 'Variant of the platform (e.g., v7, v8 for ARM).',
3037
+ example: 'v8'
3038
+ }
3039
+ },
3040
+ required: [
3041
+ 'architecture',
3042
+ 'os'
3043
+ ],
3044
+ additionalProperties: false,
3045
+ description: 'Platform information for the manifest.'
3046
+ },
3047
+ layers: {
3048
+ type: 'array',
3049
+ items: {
3050
+ type: 'object',
3051
+ properties: {
3052
+ digest: {
3053
+ type: 'string',
3054
+ description: 'Digest of the layer.',
3055
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
3056
+ },
3057
+ size: {
3058
+ type: 'number',
3059
+ format: 'float',
3060
+ description: 'Size of the layer in bytes.',
3061
+ example: 5678
3062
+ }
3063
+ },
3064
+ required: [
3065
+ 'size'
3066
+ ],
3067
+ additionalProperties: false
3068
+ },
3069
+ description: 'Layers for this platform.'
3070
+ },
3071
+ size: {
3072
+ type: 'number',
3073
+ format: 'float',
3074
+ description: 'Total size of this platform manifest in bytes.',
3075
+ example: 12345678
3076
+ }
3077
+ },
3078
+ required: [
3079
+ 'digest'
3080
+ ],
3081
+ additionalProperties: false
3082
+ },
3083
+ description: 'Array of manifests for multi-arch images.'
3084
+ },
3085
+ size: {
3086
+ type: 'number',
3087
+ format: 'float',
3088
+ description: 'Total size of the tag in bytes.',
3089
+ example: 123456789
3090
+ },
3091
+ region: {
3092
+ type: 'string',
3093
+ description: 'Registry region.',
3094
+ example: 'northamerica'
3095
+ },
3096
+ repository: {
3097
+ type: 'string',
3098
+ description: 'Repository name.',
3099
+ example: 'my-app'
3100
+ },
3101
+ uri: {
3102
+ type: 'string',
3103
+ description: 'Full URI of the tag.',
3104
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
3105
+ }
3106
+ },
3107
+ required: [
3108
+ 'name',
3109
+ 'digest',
3110
+ 'size',
3111
+ 'region',
3112
+ 'repository',
3113
+ 'uri'
3114
+ ],
3115
+ additionalProperties: false
3116
+ };
3117
+ export const TicketAttachmentSchema = {
3118
+ type: 'object',
3119
+ properties: {
3120
+ id: {
3121
+ type: 'string',
3122
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
3123
+ example: '60c72b2f9f1b2c001f8e4d3c'
3124
+ },
3125
+ filename: {
3126
+ type: 'string',
3127
+ description: 'Original filename as uploaded.',
3128
+ example: 'debug.log'
3129
+ },
3130
+ content_type: {
3131
+ type: 'string',
3132
+ description: 'MIME content type of the attachment.',
3133
+ example: 'text/plain'
3134
+ },
3135
+ size: {
3136
+ type: 'integer',
3137
+ description: 'Size of the attachment in bytes.',
3138
+ example: 12345
3139
+ }
3140
+ },
3141
+ required: [
3142
+ 'id',
3143
+ 'filename',
3144
+ 'content_type',
3145
+ 'size'
3146
+ ],
3147
+ additionalProperties: false
3148
+ };
3149
+ export const TicketCreateInputSchema = {
3150
+ type: 'object',
3151
+ properties: {
3152
+ category: {
3153
+ type: 'string',
3154
+ description: 'Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.',
3155
+ example: 'technical',
3156
+ enum: [
3157
+ 'billing',
3158
+ 'technical',
3159
+ 'general'
3160
+ ]
3161
+ },
3162
+ body: {
3163
+ type: 'string',
3164
+ maxLength: 50000,
3165
+ minLength: 1,
3166
+ pattern: '\\S',
3167
+ description: 'Initial message body in markdown. There is no separate subject — the first message body is the description.',
3168
+ example: 'My cluster cannot reach the registry. Logs attached.'
3169
+ },
3170
+ properties: {
3171
+ type: 'object',
3172
+ additionalProperties: true,
3173
+ description: 'Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).',
3174
+ example: {
3175
+ subcategory: 'cluster-question',
3176
+ cluster_id: '60c72b2f9f1b2c001f8e4d3a'
3177
+ }
3178
+ }
3179
+ },
3180
+ required: [
3181
+ 'category',
3182
+ 'body'
3183
+ ],
3184
+ additionalProperties: false
3185
+ };
3186
+ export const TicketMessageInputSchema = {
3187
+ type: 'object',
3188
+ properties: {
3189
+ body: {
3190
+ type: 'string',
3191
+ maxLength: 50000,
3192
+ minLength: 1,
3193
+ pattern: '\\S',
3194
+ description: 'Reply body in markdown.',
3195
+ example: 'Thanks — that resolved it on my side.'
3196
+ }
3197
+ },
3198
+ required: [
3199
+ 'body'
3200
+ ],
3201
+ additionalProperties: false
3202
+ };
3203
+ export const TicketMessageSchema = {
3204
+ type: 'object',
3205
+ properties: {
3206
+ id: {
3207
+ type: 'string',
3208
+ description: 'Unique identifier of the message (Mongo ObjectId).',
3209
+ example: '60c72b2f9f1b2c001f8e4d3b'
3210
+ },
3211
+ type: {
3212
+ type: 'string',
3213
+ description: 'Message type. Internal notes are filtered out of customer-facing responses.',
3214
+ example: 'customer_reply',
3215
+ enum: [
3216
+ 'customer_reply',
3217
+ 'agent_reply'
3218
+ ]
3219
+ },
3220
+ body: {
3221
+ type: 'string',
3222
+ description: 'Message body in markdown.',
3223
+ example: 'Thanks — that resolved it on my side.'
3224
+ },
3225
+ author_first_name: {
3226
+ type: 'string',
3227
+ nullable: true,
3228
+ description: 'First name of the author. Null when not provided.',
3229
+ example: 'Jane'
3230
+ },
3231
+ author_last_name: {
3232
+ type: 'string',
3233
+ nullable: true,
3234
+ description: 'Last name of the author. Null when not provided.',
3235
+ example: 'Doe'
3236
+ },
3237
+ attachments: {
3238
+ type: 'array',
3239
+ items: {
3240
+ type: 'object',
3241
+ properties: {
3242
+ id: {
3243
+ type: 'string',
3244
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
3245
+ example: '60c72b2f9f1b2c001f8e4d3c'
1283
3246
  },
1284
- minItems: 0,
1285
- description: 'List of Cloudfleet cluster tiers available for the organization.'
1286
- },
1287
- regions: {
1288
- type: 'array',
1289
- items: {
3247
+ filename: {
1290
3248
  type: 'string',
1291
- example: 'northamerica-central-1'
3249
+ description: 'Original filename as uploaded.',
3250
+ example: 'debug.log'
1292
3251
  },
1293
- minItems: 1,
1294
- description: 'List of Cloudfleet control plane regions available for the organization.'
1295
- },
1296
- versions: {
1297
- type: 'array',
1298
- items: {
1299
- type: 'object',
1300
- properties: {
1301
- id: {
1302
- type: 'string',
1303
- description: 'Id of the control plane version. Used in API calls.',
1304
- example: '1.29.x-cfke.x'
1305
- },
1306
- label: {
1307
- type: 'string',
1308
- description: 'Label of the control plane version. Used in frontent UI.',
1309
- example: '1.29.x (Always latest 1.29 patch version)'
1310
- }
1311
- },
1312
- required: ['id', 'label'],
1313
- additionalProperties: false
3252
+ content_type: {
3253
+ type: 'string',
3254
+ description: 'MIME content type of the attachment.',
3255
+ example: 'text/plain'
1314
3256
  },
1315
- minItems: 1,
1316
- description: 'List of CFKE control plane versions available for the organization.'
1317
- }
3257
+ size: {
3258
+ type: 'integer',
3259
+ description: 'Size of the attachment in bytes.',
3260
+ example: 12345
3261
+ }
3262
+ },
3263
+ required: [
3264
+ 'id',
3265
+ 'filename',
3266
+ 'content_type',
3267
+ 'size'
3268
+ ],
3269
+ additionalProperties: false
1318
3270
  },
1319
- required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions'],
1320
- additionalProperties: false,
1321
- 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.'
3271
+ description: 'Attachments associated with this message.',
3272
+ example: []
1322
3273
  },
1323
- status: {
3274
+ date_created: {
1324
3275
  type: 'string',
1325
- description: 'Status of the organization. Can be `active` or `closed`, or `suspended`.',
1326
- enum: ['active', 'closed', 'suspended']
3276
+ format: 'date-time',
3277
+ description: 'Creation date of the message. ISO 8601 UTC.',
3278
+ example: '2026-05-11T16:08:14.338Z'
1327
3279
  }
1328
3280
  },
1329
- required: ['id', 'date_created', 'quota', 'status'],
3281
+ required: [
3282
+ 'id',
3283
+ 'type',
3284
+ 'body',
3285
+ 'date_created'
3286
+ ],
1330
3287
  additionalProperties: false
1331
3288
  };
1332
- export const PaymentMethodSchema = {
3289
+ export const TicketSchema = {
1333
3290
  type: 'object',
1334
3291
  properties: {
1335
3292
  id: {
1336
3293
  type: 'string',
1337
- format: 'uuid',
1338
- description: 'Unique identifier of the organization. UUID v4 string in canonical form.',
1339
- example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
3294
+ description: 'Unique identifier of the ticket (Mongo ObjectId).',
3295
+ example: '60c72b2f9f1b2c001f8e4d3a'
1340
3296
  },
1341
- setup: {
1342
- type: 'boolean',
1343
- description: 'Whether organization payment method was set up and ready to use for payments.',
1344
- example: true
3297
+ status: {
3298
+ type: 'string',
3299
+ description: 'Current state of the ticket.',
3300
+ example: 'waiting_on_us',
3301
+ enum: [
3302
+ 'waiting_on_us',
3303
+ 'waiting_on_user',
3304
+ 'closed'
3305
+ ]
1345
3306
  },
1346
- type: {
3307
+ category: {
1347
3308
  type: 'string',
1348
- nullable: true,
1349
- description: 'Payment method type type. Only `card` payments supported at the moment.',
1350
- example: 'card',
1351
- enum: ['card']
3309
+ description: 'Ticket category.',
3310
+ example: 'technical',
3311
+ enum: [
3312
+ 'billing',
3313
+ 'technical',
3314
+ 'general'
3315
+ ]
1352
3316
  },
1353
- last4: {
3317
+ summary: {
1354
3318
  type: 'string',
1355
- nullable: true,
1356
- description: 'Last 4 digits of the payment card number.',
1357
- example: '4242'
3319
+ description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
3320
+ example: 'My cluster cannot reach the registry. Logs attached.'
1358
3321
  },
1359
- exp_month: {
1360
- type: 'integer',
1361
- minimum: 1,
1362
- maximum: 12,
3322
+ closed_at: {
3323
+ type: 'string',
3324
+ format: 'date-time',
1363
3325
  nullable: true,
1364
- description: "Two-digit number representing the card's expiration month.",
1365
- example: '12'
3326
+ description: 'Closure timestamp. Null while the ticket is open.',
3327
+ example: '2026-05-18T16:08:14.338Z'
1366
3328
  },
1367
- exp_year: {
1368
- type: 'integer',
1369
- minimum: 2024,
1370
- nullable: true,
1371
- description: "Four-digit number representing the card's expiration year.",
1372
- example: '2028'
3329
+ date_created: {
3330
+ type: 'string',
3331
+ format: 'date-time',
3332
+ description: 'Creation date of the ticket. ISO 8601 UTC.',
3333
+ example: '2026-05-11T16:08:14.338Z'
1373
3334
  },
1374
- brand: {
3335
+ date_updated: {
1375
3336
  type: 'string',
1376
- nullable: true,
1377
- description: 'Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.',
1378
- example: 'visa',
1379
- enum: ['amex', 'diners', 'discover', 'eftpos_au', 'jcb', 'mastercard', 'unionpay', 'visa', 'unknown']
3337
+ format: 'date-time',
3338
+ description: 'Last update date of the ticket. ISO 8601 UTC.',
3339
+ example: '2026-05-11T16:08:14.338Z'
3340
+ },
3341
+ messages: {
3342
+ type: 'array',
3343
+ items: {
3344
+ type: 'object',
3345
+ properties: {
3346
+ id: {
3347
+ type: 'string',
3348
+ description: 'Unique identifier of the message (Mongo ObjectId).',
3349
+ example: '60c72b2f9f1b2c001f8e4d3b'
3350
+ },
3351
+ type: {
3352
+ type: 'string',
3353
+ description: 'Message type. Internal notes are filtered out of customer-facing responses.',
3354
+ example: 'customer_reply',
3355
+ enum: [
3356
+ 'customer_reply',
3357
+ 'agent_reply'
3358
+ ]
3359
+ },
3360
+ body: {
3361
+ type: 'string',
3362
+ description: 'Message body in markdown.',
3363
+ example: 'Thanks — that resolved it on my side.'
3364
+ },
3365
+ author_first_name: {
3366
+ type: 'string',
3367
+ description: 'First name of the author. Null when not provided.',
3368
+ example: 'Jane'
3369
+ },
3370
+ author_last_name: {
3371
+ type: 'string',
3372
+ description: 'Last name of the author. Null when not provided.',
3373
+ example: 'Doe'
3374
+ },
3375
+ attachments: {
3376
+ type: 'array',
3377
+ items: {
3378
+ type: 'object',
3379
+ properties: {
3380
+ id: {
3381
+ type: 'string',
3382
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
3383
+ example: '60c72b2f9f1b2c001f8e4d3c'
3384
+ },
3385
+ filename: {
3386
+ type: 'string',
3387
+ description: 'Original filename as uploaded.',
3388
+ example: 'debug.log'
3389
+ },
3390
+ content_type: {
3391
+ type: 'string',
3392
+ description: 'MIME content type of the attachment.',
3393
+ example: 'text/plain'
3394
+ },
3395
+ size: {
3396
+ type: 'integer',
3397
+ description: 'Size of the attachment in bytes.',
3398
+ example: 12345
3399
+ }
3400
+ },
3401
+ required: [
3402
+ 'id',
3403
+ 'filename',
3404
+ 'content_type',
3405
+ 'size'
3406
+ ],
3407
+ additionalProperties: false
3408
+ },
3409
+ description: 'Attachments associated with this message.',
3410
+ example: []
3411
+ },
3412
+ date_created: {
3413
+ type: 'string',
3414
+ format: 'date-time',
3415
+ description: 'Creation date of the message. ISO 8601 UTC.',
3416
+ example: '2026-05-11T16:08:14.338Z'
3417
+ }
3418
+ },
3419
+ required: [
3420
+ 'id',
3421
+ 'type',
3422
+ 'body',
3423
+ 'date_created'
3424
+ ],
3425
+ additionalProperties: false
3426
+ },
3427
+ description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
1380
3428
  }
1381
3429
  },
1382
- required: ['id', 'setup', 'type', 'last4', 'exp_month', 'exp_year', 'brand'],
3430
+ required: [
3431
+ 'id',
3432
+ 'status',
3433
+ 'category',
3434
+ 'summary',
3435
+ 'date_created',
3436
+ 'date_updated'
3437
+ ],
1383
3438
  additionalProperties: false
1384
3439
  };
1385
3440
  export const TokenCreateInputSchema = {
@@ -1397,10 +3452,16 @@ export const TokenCreateInputSchema = {
1397
3452
  type: 'string',
1398
3453
  description: 'Role assumed by the token.',
1399
3454
  example: 'User',
1400
- enum: ['Administrator', 'User']
3455
+ enum: [
3456
+ 'Administrator',
3457
+ 'User'
3458
+ ]
1401
3459
  }
1402
3460
  },
1403
- required: ['name', 'role'],
3461
+ required: [
3462
+ 'name',
3463
+ 'role'
3464
+ ],
1404
3465
  additionalProperties: false
1405
3466
  };
1406
3467
  export const TokenSchema = {
@@ -1418,7 +3479,10 @@ export const TokenSchema = {
1418
3479
  type: 'string',
1419
3480
  description: 'Role assumed by the token.',
1420
3481
  example: 'User',
1421
- enum: ['Administrator', 'User']
3482
+ enum: [
3483
+ 'Administrator',
3484
+ 'User'
3485
+ ]
1422
3486
  },
1423
3487
  id: {
1424
3488
  type: 'string',
@@ -1437,7 +3501,11 @@ export const TokenSchema = {
1437
3501
  example: '2023-12-20T13:53:32.000Z'
1438
3502
  }
1439
3503
  },
1440
- required: ['name', 'role', 'date_created'],
3504
+ required: [
3505
+ 'name',
3506
+ 'role',
3507
+ 'date_created'
3508
+ ],
1441
3509
  additionalProperties: false
1442
3510
  };
1443
3511
  export const TokenUpdateInputSchema = {
@@ -1455,9 +3523,154 @@ export const TokenUpdateInputSchema = {
1455
3523
  type: 'string',
1456
3524
  description: 'Role assumed by the token.',
1457
3525
  example: 'User',
1458
- enum: ['Administrator', 'User']
3526
+ enum: [
3527
+ 'Administrator',
3528
+ 'User'
3529
+ ]
3530
+ }
3531
+ },
3532
+ additionalProperties: false
3533
+ };
3534
+ export const UsageFacetsSchema = {
3535
+ type: 'object',
3536
+ properties: {
3537
+ cluster_id: {
3538
+ type: 'array',
3539
+ items: {
3540
+ type: 'string'
3541
+ },
3542
+ description: 'List of unique cluster IDs',
3543
+ example: [
3544
+ '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
3545
+ ]
3546
+ },
3547
+ product: {
3548
+ type: 'array',
3549
+ items: {
3550
+ type: 'string',
3551
+ enum: [
3552
+ 'cfke_controlplane_basic',
3553
+ 'cfke_controlplane_pro',
3554
+ 'cfke_controlplane_enterprise',
3555
+ 'cfke_connected_nodes_basic',
3556
+ 'cfke_connected_nodes_pro',
3557
+ 'cfke_connected_nodes_enterprise',
3558
+ 'cfcr_storage'
3559
+ ]
3560
+ },
3561
+ description: 'List of unique products',
3562
+ example: [
3563
+ 'cfke_controlplane_pro',
3564
+ 'cfke_connected_nodes_pro'
3565
+ ]
3566
+ }
3567
+ },
3568
+ additionalProperties: false
3569
+ };
3570
+ export const UsageResponseSchema = {
3571
+ type: 'object',
3572
+ properties: {
3573
+ data: {
3574
+ type: 'array',
3575
+ items: {
3576
+ type: 'object',
3577
+ properties: {
3578
+ hour: {
3579
+ type: 'string',
3580
+ description: 'Hour of the usage',
3581
+ example: '2019-01-01T00:00:00.000Z'
3582
+ },
3583
+ cluster_id: {
3584
+ type: 'string',
3585
+ description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
3586
+ example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
3587
+ },
3588
+ product: {
3589
+ type: 'string',
3590
+ description: 'The product the usage is associated with',
3591
+ example: 'cfke_controlplane_pro',
3592
+ enum: [
3593
+ 'cfke_controlplane_basic',
3594
+ 'cfke_controlplane_pro',
3595
+ 'cfke_controlplane_enterprise',
3596
+ 'cfke_connected_nodes_basic',
3597
+ 'cfke_connected_nodes_pro',
3598
+ 'cfke_connected_nodes_enterprise',
3599
+ 'cfcr_storage'
3600
+ ]
3601
+ },
3602
+ value: {
3603
+ type: 'number',
3604
+ format: 'float',
3605
+ description: 'Consumption',
3606
+ example: 4
3607
+ },
3608
+ price: {
3609
+ type: 'number',
3610
+ format: 'float',
3611
+ description: 'Price per unit',
3612
+ example: 0.01
3613
+ },
3614
+ total: {
3615
+ type: 'number',
3616
+ format: 'float',
3617
+ description: 'Total cost'
3618
+ }
3619
+ },
3620
+ required: [
3621
+ 'hour',
3622
+ 'cluster_id',
3623
+ 'product',
3624
+ 'value',
3625
+ 'price',
3626
+ 'total'
3627
+ ],
3628
+ additionalProperties: false
3629
+ },
3630
+ description: 'Usage data'
3631
+ },
3632
+ facets: {
3633
+ type: 'object',
3634
+ properties: {
3635
+ cluster_id: {
3636
+ type: 'array',
3637
+ items: {
3638
+ type: 'string'
3639
+ },
3640
+ description: 'List of unique cluster IDs',
3641
+ example: [
3642
+ '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
3643
+ ]
3644
+ },
3645
+ product: {
3646
+ type: 'array',
3647
+ items: {
3648
+ type: 'string',
3649
+ enum: [
3650
+ 'cfke_controlplane_basic',
3651
+ 'cfke_controlplane_pro',
3652
+ 'cfke_controlplane_enterprise',
3653
+ 'cfke_connected_nodes_basic',
3654
+ 'cfke_connected_nodes_pro',
3655
+ 'cfke_connected_nodes_enterprise',
3656
+ 'cfcr_storage'
3657
+ ]
3658
+ },
3659
+ description: 'List of unique products',
3660
+ example: [
3661
+ 'cfke_controlplane_pro',
3662
+ 'cfke_connected_nodes_pro'
3663
+ ]
3664
+ }
3665
+ },
3666
+ additionalProperties: false,
3667
+ description: 'Facets for filtering'
1459
3668
  }
1460
3669
  },
3670
+ required: [
3671
+ 'data',
3672
+ 'facets'
3673
+ ],
1461
3674
  additionalProperties: false
1462
3675
  };
1463
3676
  export const UsageSchema = {
@@ -1470,90 +3683,49 @@ export const UsageSchema = {
1470
3683
  },
1471
3684
  cluster_id: {
1472
3685
  type: 'string',
1473
- format: 'uuid',
1474
3686
  description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
1475
3687
  example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
1476
3688
  },
1477
- cluster_tier: {
1478
- type: 'string',
1479
- description: 'Tier of the cluster.',
1480
- example: 'pro',
1481
- enum: ['basic', 'pro', '']
1482
- },
1483
3689
  product: {
1484
3690
  type: 'string',
1485
3691
  description: 'The product the usage is associated with',
1486
- example: 'cfke_controlplane',
1487
- enum: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
1488
- },
1489
- node_name: {
1490
- type: 'string',
1491
- description: 'Name of the Kubernetes node',
1492
- example: 'flexible-moth-956037384'
1493
- },
1494
- sku: {
1495
- type: 'string',
1496
- description: 'SKU of the Kubernetes node',
1497
- example: 'GCP-NORTHAMERICA-NORTHEAST1-A-G1-SMALL-SPOT'
1498
- },
1499
- cpu: {
1500
- anyOf: [
1501
- {
1502
- type: 'number',
1503
- format: 'float',
1504
- description: 'CPU core count of the node',
1505
- example: 4
1506
- },
1507
- {
1508
- type: 'string',
1509
- enum: ['']
1510
- }
1511
- ]
1512
- },
1513
- price: {
1514
- anyOf: [
1515
- {
1516
- type: 'number',
1517
- format: 'float',
1518
- description: 'Price',
1519
- example: 4
1520
- },
1521
- {
1522
- type: 'string',
1523
- enum: ['']
1524
- }
3692
+ example: 'cfke_controlplane_pro',
3693
+ enum: [
3694
+ 'cfke_controlplane_basic',
3695
+ 'cfke_controlplane_pro',
3696
+ 'cfke_controlplane_enterprise',
3697
+ 'cfke_connected_nodes_basic',
3698
+ 'cfke_connected_nodes_pro',
3699
+ 'cfke_connected_nodes_enterprise',
3700
+ 'cfcr_storage'
1525
3701
  ]
1526
3702
  },
1527
3703
  value: {
1528
- anyOf: [
1529
- {
1530
- type: 'number',
1531
- format: 'float',
1532
- description: 'Value',
1533
- example: 4
1534
- },
1535
- {
1536
- type: 'string',
1537
- enum: ['']
1538
- }
1539
- ]
3704
+ type: 'number',
3705
+ format: 'float',
3706
+ description: 'Consumption',
3707
+ example: 4
3708
+ },
3709
+ price: {
3710
+ type: 'number',
3711
+ format: 'float',
3712
+ description: 'Price per unit',
3713
+ example: 0.01
1540
3714
  },
1541
3715
  total: {
1542
- anyOf: [
1543
- {
1544
- type: 'number',
1545
- format: 'float',
1546
- description: 'Total',
1547
- example: 4
1548
- },
1549
- {
1550
- type: 'string',
1551
- enum: ['']
1552
- }
1553
- ]
3716
+ type: 'number',
3717
+ format: 'float',
3718
+ description: 'Total cost'
1554
3719
  }
1555
3720
  },
1556
- required: ['cluster_id', 'cluster_tier', 'product', 'node_name', 'sku', 'cpu', 'price', 'value', 'total'],
3721
+ required: [
3722
+ 'hour',
3723
+ 'cluster_id',
3724
+ 'product',
3725
+ 'value',
3726
+ 'price',
3727
+ 'total'
3728
+ ],
1557
3729
  additionalProperties: false
1558
3730
  };
1559
3731
  export const UserCreateInputSchema = {
@@ -1589,21 +3761,15 @@ export const UserCreateInputSchema = {
1589
3761
  type: 'string',
1590
3762
  minLength: 8,
1591
3763
  description: 'User password. Must be at least 8 characters long.'
1592
- },
1593
- status: {
1594
- type: 'string',
1595
- description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1596
- example: 'active',
1597
- enum: ['active', 'inactive']
1598
- },
1599
- role: {
1600
- type: 'string',
1601
- description: "User role. Can be 'Administrator', 'User'.",
1602
- example: 'User',
1603
- enum: ['Administrator', 'User']
1604
3764
  }
1605
3765
  },
1606
- required: ['email', 'first_name', 'last_name', 'code', 'password'],
3766
+ required: [
3767
+ 'email',
3768
+ 'first_name',
3769
+ 'last_name',
3770
+ 'code',
3771
+ 'password'
3772
+ ],
1607
3773
  additionalProperties: false
1608
3774
  };
1609
3775
  export const UserSchema = {
@@ -1631,15 +3797,21 @@ export const UserSchema = {
1631
3797
  },
1632
3798
  role: {
1633
3799
  type: 'string',
1634
- description: "User role. Can be 'Administrator', 'User'.",
3800
+ description: 'User role. Can be \'Administrator\', \'User\'.',
1635
3801
  example: 'User',
1636
- enum: ['Administrator', 'User']
3802
+ enum: [
3803
+ 'Administrator',
3804
+ 'User'
3805
+ ]
1637
3806
  },
1638
3807
  status: {
1639
3808
  type: 'string',
1640
3809
  description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1641
3810
  example: 'active',
1642
- enum: ['active', 'inactive']
3811
+ enum: [
3812
+ 'active',
3813
+ 'inactive'
3814
+ ]
1643
3815
  },
1644
3816
  id: {
1645
3817
  type: 'string',
@@ -1654,7 +3826,15 @@ export const UserSchema = {
1654
3826
  example: '2023-11-02T16:08:14.338Z'
1655
3827
  }
1656
3828
  },
1657
- required: ['email', 'first_name', 'last_name', 'role', 'status', 'id', 'date_created'],
3829
+ required: [
3830
+ 'email',
3831
+ 'first_name',
3832
+ 'last_name',
3833
+ 'role',
3834
+ 'status',
3835
+ 'id',
3836
+ 'date_created'
3837
+ ],
1658
3838
  additionalProperties: false
1659
3839
  };
1660
3840
  export const UserUpdateInputSchema = {
@@ -1682,15 +3862,21 @@ export const UserUpdateInputSchema = {
1682
3862
  },
1683
3863
  role: {
1684
3864
  type: 'string',
1685
- description: "User role. Can be 'Administrator', 'User'.",
3865
+ description: 'User role. Can be \'Administrator\', \'User\'.',
1686
3866
  example: 'User',
1687
- enum: ['Administrator', 'User']
3867
+ enum: [
3868
+ 'Administrator',
3869
+ 'User'
3870
+ ]
1688
3871
  },
1689
3872
  status: {
1690
3873
  type: 'string',
1691
3874
  description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1692
3875
  example: 'active',
1693
- enum: ['active', 'inactive']
3876
+ enum: [
3877
+ 'active',
3878
+ 'inactive'
3879
+ ]
1694
3880
  }
1695
3881
  },
1696
3882
  additionalProperties: false