@cloudfleet/sdk 0.0.1-3de42b3 → 0.0.1-3e55307

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 (73) hide show
  1. package/README.md +26 -2
  2. package/dist/@tanstack/react-query.gen.d.ts +1077 -0
  3. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  4. package/dist/@tanstack/react-query.gen.js +1286 -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 +9 -0
  11. package/dist/client/index.d.ts.map +1 -0
  12. package/dist/client/index.js +7 -0
  13. package/dist/client/index.js.map +1 -0
  14. package/dist/client/types.gen.d.ts +121 -0
  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.gen.d.ts +38 -0
  19. package/dist/client/utils.gen.d.ts.map +1 -0
  20. package/dist/client/utils.gen.js +229 -0
  21. package/dist/client/utils.gen.js.map +1 -0
  22. package/dist/client.gen.d.ts +4 -4
  23. package/dist/client.gen.d.ts.map +1 -1
  24. package/dist/client.gen.js +2 -4
  25. package/dist/client.gen.js.map +1 -1
  26. package/dist/core/auth.gen.d.ts +19 -0
  27. package/dist/core/auth.gen.d.ts.map +1 -0
  28. package/dist/core/auth.gen.js +15 -0
  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.gen.js +58 -0
  33. package/dist/core/bodySerializer.gen.js.map +1 -0
  34. package/dist/core/params.gen.d.ts +44 -0
  35. package/dist/core/params.gen.d.ts.map +1 -0
  36. package/dist/core/params.gen.js +101 -0
  37. package/dist/core/params.gen.js.map +1 -0
  38. package/dist/core/pathSerializer.gen.d.ts +34 -0
  39. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  40. package/dist/core/pathSerializer.gen.js +107 -0
  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.gen.d.ts +79 -0
  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 +1867 -714
  59. package/dist/schemas.gen.d.ts.map +1 -1
  60. package/dist/schemas.gen.js +3268 -749
  61. package/dist/schemas.gen.js.map +1 -1
  62. package/dist/sdk.gen.d.ts +338 -172
  63. package/dist/sdk.gen.d.ts.map +1 -1
  64. package/dist/sdk.gen.js +486 -340
  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 +2072 -851
  68. package/dist/types.gen.d.ts.map +1 -1
  69. package/dist/zod.gen.d.ts +4186 -2328
  70. package/dist/zod.gen.d.ts.map +1 -1
  71. package/dist/zod.gen.js +1665 -853
  72. package/dist/zod.gen.js.map +1 -1
  73. package/package.json +28 -9
@@ -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,154 @@ 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
+ 'aw_tin',
97
+ 'az_tin',
98
+ 'ba_tin',
99
+ 'bb_tin',
100
+ 'bd_bin',
101
+ 'be_vat',
102
+ 'bf_ifu',
103
+ 'bg_uic',
104
+ 'bg_vat',
105
+ 'bh_vat',
106
+ 'bj_ifu',
107
+ 'bo_tin',
108
+ 'br_cnpj',
109
+ 'br_cpf',
110
+ 'bs_tin',
111
+ 'by_tin',
112
+ 'ca_bn',
113
+ 'ca_gst_hst',
114
+ 'ca_pst_bc',
115
+ 'ca_pst_mb',
116
+ 'ca_pst_sk',
117
+ 'ca_qst',
118
+ 'cd_nif',
119
+ 'ch_uid',
120
+ 'ch_vat',
121
+ 'cl_tin',
122
+ 'cm_niu',
123
+ 'cn_tin',
124
+ 'co_nit',
125
+ 'cr_tin',
126
+ 'cv_nif',
127
+ 'cy_vat',
128
+ 'cz_vat',
129
+ 'de_stn',
130
+ 'de_vat',
131
+ 'dk_vat',
132
+ 'do_rcn',
133
+ 'ec_ruc',
134
+ 'ee_vat',
135
+ 'eg_tin',
136
+ 'es_cif',
137
+ 'es_vat',
138
+ 'et_tin',
139
+ 'eu_oss_vat',
140
+ 'fi_vat',
141
+ 'fr_vat',
142
+ 'gb_vat',
143
+ 'ge_vat',
144
+ 'gn_nif',
145
+ 'gr_vat',
146
+ 'hk_br',
147
+ 'hr_oib',
148
+ 'hr_vat',
149
+ 'hu_tin',
150
+ 'hu_vat',
151
+ 'id_npwp',
152
+ 'ie_vat',
153
+ 'il_vat',
154
+ 'in_gst',
155
+ 'is_vat',
156
+ 'it_vat',
157
+ 'jp_cn',
158
+ 'jp_rn',
159
+ 'jp_trn',
160
+ 'ke_pin',
161
+ 'kg_tin',
162
+ 'kh_tin',
163
+ 'kr_brn',
164
+ 'kz_bin',
165
+ 'la_tin',
166
+ 'li_uid',
167
+ 'li_vat',
168
+ 'lk_vat',
169
+ 'lt_vat',
170
+ 'lu_vat',
171
+ 'lv_vat',
172
+ 'ma_vat',
173
+ 'md_vat',
174
+ 'me_pib',
175
+ 'mk_vat',
176
+ 'mr_nif',
177
+ 'mt_vat',
178
+ 'mx_rfc',
179
+ 'my_frp',
180
+ 'my_itn',
181
+ 'my_sst',
182
+ 'ng_tin',
183
+ 'nl_vat',
184
+ 'no_vat',
185
+ 'no_voec',
186
+ 'np_pan',
187
+ 'nz_gst',
188
+ 'om_vat',
189
+ 'pe_ruc',
190
+ 'ph_tin',
191
+ 'pl_vat',
192
+ 'pt_vat',
193
+ 'ro_tin',
194
+ 'ro_vat',
195
+ 'rs_pib',
196
+ 'ru_inn',
197
+ 'ru_kpp',
198
+ 'sa_vat',
199
+ 'se_vat',
200
+ 'sg_gst',
201
+ 'sg_uen',
202
+ 'si_tin',
203
+ 'si_vat',
204
+ 'sk_vat',
205
+ 'sn_ninea',
206
+ 'sr_fin',
207
+ 'sv_nit',
208
+ 'th_vat',
209
+ 'tj_tin',
210
+ 'tr_tin',
211
+ 'tw_vat',
212
+ 'tz_vat',
213
+ 'ua_vat',
214
+ 'ug_tin',
215
+ 'us_ein',
216
+ 'uy_ruc',
217
+ 'uz_tin',
218
+ 'uz_vat',
219
+ 've_rif',
220
+ 'vn_tin',
221
+ 'xi_vat',
222
+ 'za_vat',
223
+ 'zm_tin',
224
+ 'zw_tin',
225
+ ''
226
+ ]
83
227
  }
84
228
  },
85
- required: ['email', 'first_name', 'last_name'],
229
+ required: [
230
+ 'type',
231
+ 'email',
232
+ 'individual_name'
233
+ ],
86
234
  additionalProperties: false
87
235
  };
88
236
  export const BillingCreditsSchema = {
@@ -93,10 +241,25 @@ export const BillingCreditsSchema = {
93
241
  description: 'Generated unique identifier of the promotional code.',
94
242
  example: '7kUZnH7nnKUFfvc4NK2KQF'
95
243
  },
96
- date_created: {
244
+ type: {
245
+ type: 'string',
246
+ description: 'Type of the promotional code.',
247
+ example: 'credit',
248
+ enum: [
249
+ 'credit',
250
+ 'discount'
251
+ ]
252
+ },
253
+ date_start: {
254
+ type: 'string',
255
+ format: 'date-time',
256
+ description: 'Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.',
257
+ example: '2023-12-20T13:53:32.000Z'
258
+ },
259
+ date_end: {
97
260
  type: 'string',
98
261
  format: 'date-time',
99
- description: 'Date of the credit application. ISO 8601 date string in the UTC timezone.',
262
+ description: 'Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.',
100
263
  example: '2023-12-20T13:53:32.000Z'
101
264
  },
102
265
  code: {
@@ -109,40 +272,25 @@ export const BillingCreditsSchema = {
109
272
  description: 'Description of the promotional code.',
110
273
  example: '10% off on all products'
111
274
  },
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: {
275
+ value_total: {
127
276
  type: 'number',
128
277
  format: 'float',
129
- description: 'Value of the promotional code.',
278
+ description: 'Total value of the promotional code.',
130
279
  example: 10
131
280
  },
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
281
  value_remaining: {
139
282
  type: 'number',
140
283
  format: 'float',
141
- description: 'Value of the promotional code.',
142
- example: 10
284
+ description: 'Remaining value of the promotional code.',
285
+ example: 8
143
286
  }
144
287
  },
145
- required: ['date_created', 'code', 'type', 'value', 'billing_period'],
288
+ required: [
289
+ 'type',
290
+ 'date_start',
291
+ 'code',
292
+ 'value_total'
293
+ ],
146
294
  additionalProperties: false
147
295
  };
148
296
  export const ChartCreateInputSchema = {
@@ -183,7 +331,13 @@ export const ChartCreateInputSchema = {
183
331
  example: 'postgresql'
184
332
  }
185
333
  },
186
- required: ['values', 'version_channel', 'name', 'namespace', 'chart'],
334
+ required: [
335
+ 'values',
336
+ 'version_channel',
337
+ 'name',
338
+ 'namespace',
339
+ 'chart'
340
+ ],
187
341
  additionalProperties: false
188
342
  };
189
343
  export const ChartSchema = {
@@ -225,9 +379,8 @@ export const ChartSchema = {
225
379
  },
226
380
  status: {
227
381
  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']
382
+ description: 'Status of the chart deployment (Flux HelmRelease Ready condition reason, e.g. InstallSucceeded, UpgradeFailed, Progressing).',
383
+ example: 'InstallSucceeded'
231
384
  },
232
385
  version_current: {
233
386
  type: 'string',
@@ -250,7 +403,18 @@ export const ChartSchema = {
250
403
  example: true
251
404
  }
252
405
  },
253
- required: ['values', 'version_channel', 'name', 'namespace', 'chart', 'status', 'version_current', 'created_at', 'updated_at', 'ready'],
406
+ required: [
407
+ 'values',
408
+ 'version_channel',
409
+ 'name',
410
+ 'namespace',
411
+ 'chart',
412
+ 'status',
413
+ 'version_current',
414
+ 'created_at',
415
+ 'updated_at',
416
+ 'ready'
417
+ ],
254
418
  additionalProperties: false
255
419
  };
256
420
  export const ChartUpdateInputSchema = {
@@ -267,7 +431,10 @@ export const ChartUpdateInputSchema = {
267
431
  example: '2.x.x-cfke.x'
268
432
  }
269
433
  },
270
- required: ['values', 'version_channel'],
434
+ required: [
435
+ 'values',
436
+ 'version_channel'
437
+ ],
271
438
  additionalProperties: false
272
439
  };
273
440
  export const ClusterCreateInputSchema = {
@@ -281,29 +448,121 @@ export const ClusterCreateInputSchema = {
281
448
  description: 'Name of the cluster.',
282
449
  example: 'production-cluster'
283
450
  },
284
- region: {
285
- type: 'string',
286
- description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
287
- default: 'staging',
288
- example: 'northamerica-central-1',
289
- enum: ['staging', 'northamerica-central-1']
290
- },
291
451
  tier: {
292
452
  type: 'string',
293
453
  description: 'Tier of the cluster.',
454
+ default: 'basic',
294
455
  example: 'pro',
295
- enum: ['basic', 'pro']
456
+ enum: [
457
+ 'basic',
458
+ 'pro',
459
+ 'enterprise'
460
+ ]
296
461
  },
297
462
  version_channel: {
298
463
  type: 'string',
299
464
  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
465
  description: 'Version of the kubernetes cluster.',
301
466
  default: '1.x.x-cfke.x',
302
- example: '1.29.x-cfke.x'
467
+ example: '1.x.x-cfke.x'
468
+ },
469
+ release_channel: {
470
+ type: 'string',
471
+ description: 'Release channel for the cluster\'s control plane.',
472
+ default: 'rapid',
473
+ example: 'rapid',
474
+ enum: [
475
+ 'rapid',
476
+ 'stable',
477
+ 'extended'
478
+ ]
479
+ },
480
+ features: {
481
+ type: 'object',
482
+ properties: {
483
+ gpu_sharing_strategy: {
484
+ type: 'string',
485
+ description: 'GPU sharing strategy.',
486
+ default: 'none',
487
+ example: 'none',
488
+ enum: [
489
+ 'none',
490
+ 'mps',
491
+ 'time_slicing'
492
+ ]
493
+ },
494
+ gpu_max_shared_clients_per_gpu: {
495
+ type: 'integer',
496
+ minimum: 2,
497
+ maximum: 48,
498
+ description: 'Maximum number of pods that may share a single GPU.',
499
+ default: 4,
500
+ example: 10
501
+ },
502
+ cilium_socket_lb_host_namespace_only: {
503
+ type: 'boolean',
504
+ description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
505
+ example: false
506
+ }
507
+ },
508
+ additionalProperties: false,
509
+ description: 'Cluster feature toggles.',
510
+ default: {
511
+ gpu_sharing_strategy: 'none',
512
+ gpu_max_shared_clients_per_gpu: 4,
513
+ cilium_socket_lb_host_namespace_only: false
514
+ }
515
+ },
516
+ region: {
517
+ type: 'string',
518
+ description: 'Cloudfleet control plane region. This field can not be updated after creation.',
519
+ example: 'europe-central-1a'
520
+ },
521
+ networking: {
522
+ type: 'object',
523
+ properties: {
524
+ pod_cidr: {
525
+ type: 'string',
526
+ description: 'CIDR block for pod IPs.',
527
+ default: '10.244.0.0/16'
528
+ },
529
+ service_cidr: {
530
+ type: 'string',
531
+ description: 'CIDR block for service IPs.',
532
+ default: '10.96.0.0/12'
533
+ },
534
+ dual_stack: {
535
+ type: 'boolean',
536
+ description: 'Enable IPv4+IPv6 dual-stack networking.'
537
+ },
538
+ pod_cidr_v6: {
539
+ type: 'string',
540
+ description: 'IPv6 pod CIDR. Requires dual_stack.',
541
+ default: '2001:db8:1:2::/48'
542
+ },
543
+ service_cidr_v6: {
544
+ type: 'string',
545
+ description: 'IPv6 service CIDR. Requires dual_stack.',
546
+ default: '2001:db8:1:1::/112'
547
+ }
548
+ },
549
+ additionalProperties: false,
550
+ description: 'Cluster networking configuration. Immutable after creation.',
551
+ default: {
552
+ pod_cidr: '10.244.0.0/16',
553
+ service_cidr: '10.96.0.0/12',
554
+ dual_stack: false,
555
+ pod_cidr_v6: '2001:db8:1:2::/48',
556
+ service_cidr_v6: '2001:db8:1:1::/112'
557
+ }
303
558
  }
304
559
  },
305
- required: ['name', 'tier'],
306
- additionalProperties: false
560
+ required: [
561
+ 'name',
562
+ 'region'
563
+ ],
564
+ additionalProperties: false,
565
+ description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
307
566
  };
308
567
  export const ClusterJoinInformationSchema = {
309
568
  type: 'object',
@@ -311,8 +570,7 @@ export const ClusterJoinInformationSchema = {
311
570
  certificate_authority: {
312
571
  type: 'string',
313
572
  description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
314
- example: `-----BEGIN CERTIFICATE-----
315
- MIIC0DCCAbigAwIBAgI...`
573
+ example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
316
574
  },
317
575
  endpoint: {
318
576
  type: 'string',
@@ -320,11 +578,26 @@ MIIC0DCCAbigAwIBAgI...`
320
578
  description: 'Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.',
321
579
  example: 'https://10.31.64.7:6443'
322
580
  },
581
+ cluster_dns: {
582
+ type: 'string',
583
+ description: 'Cluster DNS IP address. This is the IP address of the kube-dns service in the cluster.',
584
+ example: '10.96.0.10'
585
+ },
586
+ pod_cidr: {
587
+ type: 'string',
588
+ description: 'Pod CIDR for the cluster. Used to configure iptables rules on nodes to prevent Tailscale routing loops.',
589
+ example: '10.244.0.0/16'
590
+ },
323
591
  auth_key: {
324
592
  type: 'string',
325
593
  description: 'Authentication key for the cluster.',
326
594
  example: 'tskey-auth-kBV8wr1dk911CNTRL-...'
327
595
  },
596
+ login_server: {
597
+ type: 'string',
598
+ description: 'Coordination server the node registers against. Empty on data plane v1 clusters, where the node advertises its own tag instead. A non-empty value requires a client that declares the dataplane-v2 capability.',
599
+ example: 'https://415026b6-f00f-44f8-968d-fc6ef4d0fc6d.fabric.europe-central-1a.cfke.io'
600
+ },
328
601
  bootstrap_token: {
329
602
  type: 'string',
330
603
  description: 'Bootstrap token for the cluster.',
@@ -336,7 +609,7 @@ MIIC0DCCAbigAwIBAgI...`
336
609
  kubernetes: {
337
610
  type: 'string',
338
611
  description: 'Kubernetes version of the cluster.',
339
- example: '1.29.3'
612
+ example: '1.33.7'
340
613
  },
341
614
  tailscale: {
342
615
  type: 'string',
@@ -347,9 +620,19 @@ MIIC0DCCAbigAwIBAgI...`
347
620
  type: 'string',
348
621
  description: 'Containerd version of the cluster.',
349
622
  example: '1.7.19'
623
+ },
624
+ nvidia_driver: {
625
+ type: 'string',
626
+ description: 'NVIDIA driver version of the cluster.',
627
+ example: '565.0.0'
350
628
  }
351
629
  },
352
- required: ['kubernetes', 'tailscale', 'containerd'],
630
+ required: [
631
+ 'kubernetes',
632
+ 'tailscale',
633
+ 'containerd',
634
+ 'nvidia_driver'
635
+ ],
353
636
  additionalProperties: false,
354
637
  description: 'Versions of the different components of the cluster.'
355
638
  },
@@ -372,12 +655,26 @@ MIIC0DCCAbigAwIBAgI...`
372
655
  example: '//iam.googleapis.com/projects/89014267864/locations/global/workloadIdentityPools/cfke/providers/oidc'
373
656
  }
374
657
  },
375
- required: ['metadata_url', 'aws_role_arn', 'gcp_workload_identity_provider'],
658
+ required: [
659
+ 'metadata_url',
660
+ 'aws_role_arn',
661
+ 'gcp_workload_identity_provider'
662
+ ],
376
663
  additionalProperties: false,
377
- description: "OIDC Information for hosts to access to third party API's."
664
+ description: 'OIDC Information for hosts to access to third party API\'s.'
378
665
  }
379
666
  },
380
- required: ['certificate_authority', 'endpoint', 'auth_key', 'bootstrap_token', 'versions', 'third_party_api_access_config'],
667
+ required: [
668
+ 'certificate_authority',
669
+ 'endpoint',
670
+ 'cluster_dns',
671
+ 'pod_cidr',
672
+ 'auth_key',
673
+ 'login_server',
674
+ 'bootstrap_token',
675
+ 'versions',
676
+ 'third_party_api_access_config'
677
+ ],
381
678
  additionalProperties: false
382
679
  };
383
680
  export const ClusterSchema = {
@@ -391,25 +688,125 @@ export const ClusterSchema = {
391
688
  description: 'Name of the cluster.',
392
689
  example: 'production-cluster'
393
690
  },
394
- region: {
395
- type: 'string',
396
- description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
397
- default: 'staging',
398
- example: 'northamerica-central-1',
399
- enum: ['staging', 'northamerica-central-1']
400
- },
401
691
  tier: {
402
692
  type: 'string',
403
693
  description: 'Tier of the cluster.',
694
+ default: 'basic',
404
695
  example: 'pro',
405
- enum: ['basic', 'pro']
696
+ enum: [
697
+ 'basic',
698
+ 'pro',
699
+ 'enterprise'
700
+ ]
406
701
  },
407
702
  version_channel: {
408
703
  type: 'string',
409
704
  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-]+)*))?$',
410
705
  description: 'Version of the kubernetes cluster.',
411
706
  default: '1.x.x-cfke.x',
412
- example: '1.29.x-cfke.x'
707
+ example: '1.x.x-cfke.x'
708
+ },
709
+ release_channel: {
710
+ type: 'string',
711
+ description: 'Release channel for the cluster\'s control plane.',
712
+ default: 'rapid',
713
+ example: 'rapid',
714
+ enum: [
715
+ 'rapid',
716
+ 'stable',
717
+ 'extended'
718
+ ]
719
+ },
720
+ features: {
721
+ type: 'object',
722
+ properties: {
723
+ gpu_sharing_strategy: {
724
+ type: 'string',
725
+ description: 'GPU sharing strategy.',
726
+ default: 'none',
727
+ example: 'none',
728
+ enum: [
729
+ 'none',
730
+ 'mps',
731
+ 'time_slicing'
732
+ ]
733
+ },
734
+ gpu_max_shared_clients_per_gpu: {
735
+ type: 'integer',
736
+ minimum: 2,
737
+ maximum: 48,
738
+ description: 'Maximum number of pods that may share a single GPU.',
739
+ default: 4,
740
+ example: 10
741
+ },
742
+ cilium_socket_lb_host_namespace_only: {
743
+ type: 'boolean',
744
+ description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
745
+ example: false
746
+ }
747
+ },
748
+ required: [
749
+ 'gpu_sharing_strategy',
750
+ 'gpu_max_shared_clients_per_gpu',
751
+ 'cilium_socket_lb_host_namespace_only'
752
+ ],
753
+ additionalProperties: false,
754
+ description: 'Cluster feature toggles.',
755
+ default: {
756
+ gpu_sharing_strategy: 'none',
757
+ gpu_max_shared_clients_per_gpu: 4,
758
+ cilium_socket_lb_host_namespace_only: false
759
+ }
760
+ },
761
+ region: {
762
+ type: 'string',
763
+ description: 'Cloudfleet control plane region. This field can not be updated after creation.',
764
+ example: 'europe-central-1a'
765
+ },
766
+ networking: {
767
+ type: 'object',
768
+ properties: {
769
+ pod_cidr: {
770
+ type: 'string',
771
+ description: 'CIDR block for pod IPs.',
772
+ default: '10.244.0.0/16'
773
+ },
774
+ service_cidr: {
775
+ type: 'string',
776
+ description: 'CIDR block for service IPs.',
777
+ default: '10.96.0.0/12'
778
+ },
779
+ dual_stack: {
780
+ type: 'boolean',
781
+ description: 'Enable IPv4+IPv6 dual-stack networking.'
782
+ },
783
+ pod_cidr_v6: {
784
+ type: 'string',
785
+ description: 'IPv6 pod CIDR. Requires dual_stack.',
786
+ default: '2001:db8:1:2::/48'
787
+ },
788
+ service_cidr_v6: {
789
+ type: 'string',
790
+ description: 'IPv6 service CIDR. Requires dual_stack.',
791
+ default: '2001:db8:1:1::/112'
792
+ }
793
+ },
794
+ required: [
795
+ 'pod_cidr',
796
+ 'service_cidr',
797
+ 'dual_stack',
798
+ 'pod_cidr_v6',
799
+ 'service_cidr_v6'
800
+ ],
801
+ additionalProperties: false,
802
+ description: 'Cluster networking configuration. Immutable after creation.',
803
+ default: {
804
+ pod_cidr: '10.244.0.0/16',
805
+ service_cidr: '10.96.0.0/12',
806
+ dual_stack: false,
807
+ pod_cidr_v6: '2001:db8:1:2::/48',
808
+ service_cidr_v6: '2001:db8:1:1::/112'
809
+ }
413
810
  },
414
811
  id: {
415
812
  type: 'string',
@@ -419,34 +816,56 @@ export const ClusterSchema = {
419
816
  },
420
817
  status: {
421
818
  type: 'string',
422
- description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
423
- example: 'active',
424
- enum: ['active', 'deleted', 'creating', 'deployed', 'failed', 'updating']
819
+ description: 'Status of the cluster.',
820
+ example: 'deployed',
821
+ enum: [
822
+ 'creating',
823
+ 'deployed',
824
+ 'updating',
825
+ 'disabled'
826
+ ]
425
827
  },
426
828
  endpoint: {
427
829
  anyOf: [
428
830
  {
429
831
  type: 'string',
430
832
  format: 'uri',
431
- description: 'URL of the Kubernetes cluster control plane. This is the endpoint that kubectl uses to connect to the cluster.',
432
- example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.cloudfleet.dev:6443'
833
+ 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.',
834
+ example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
433
835
  },
434
836
  {
435
837
  type: 'string',
436
- enum: ['']
838
+ enum: [
839
+ ''
840
+ ]
841
+ }
842
+ ]
843
+ },
844
+ endpoint_public: {
845
+ anyOf: [
846
+ {
847
+ type: 'string',
848
+ format: 'uri',
849
+ description: 'Deprecated alias of `endpoint`; retained for backward compatibility.',
850
+ example: 'https://2ae6557c-c61f-49c6-b4c1-a65473470a03.staging.cfke.io'
851
+ },
852
+ {
853
+ type: 'string',
854
+ enum: [
855
+ ''
856
+ ]
437
857
  }
438
858
  ]
439
859
  },
440
860
  certificate_ca: {
441
861
  type: 'string',
442
862
  description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
443
- example: `-----BEGIN CERTIFICATE-----
444
- MIIC0DCCAbigAwIBAgI...`
863
+ example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
445
864
  },
446
865
  version_current: {
447
866
  type: 'string',
448
867
  description: 'Current version of the cluster.',
449
- example: '1.29.3-cfke.52'
868
+ example: '1.33.7-cfke.264'
450
869
  },
451
870
  created_at: {
452
871
  type: 'string',
@@ -464,8 +883,20 @@ MIIC0DCCAbigAwIBAgI...`
464
883
  example: true
465
884
  }
466
885
  },
467
- required: ['name', 'tier', 'id', 'status'],
468
- additionalProperties: false
886
+ required: [
887
+ 'name',
888
+ 'tier',
889
+ 'version_channel',
890
+ 'release_channel',
891
+ 'features',
892
+ 'region',
893
+ 'networking',
894
+ 'id',
895
+ 'status',
896
+ 'ready'
897
+ ],
898
+ additionalProperties: false,
899
+ description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
469
900
  };
470
901
  export const ClusterUpdateInputSchema = {
471
902
  type: 'object',
@@ -478,14 +909,77 @@ export const ClusterUpdateInputSchema = {
478
909
  description: 'Name of the cluster.',
479
910
  example: 'production-cluster'
480
911
  },
912
+ tier: {
913
+ type: 'string',
914
+ description: 'Tier of the cluster.',
915
+ default: 'basic',
916
+ example: 'pro',
917
+ enum: [
918
+ 'basic',
919
+ 'pro',
920
+ 'enterprise'
921
+ ]
922
+ },
481
923
  version_channel: {
482
924
  type: 'string',
483
925
  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-]+)*))?$',
484
926
  description: 'Version of the kubernetes cluster.',
485
- example: '1.29.x-cfke.x'
927
+ default: '1.x.x-cfke.x',
928
+ example: '1.x.x-cfke.x'
929
+ },
930
+ release_channel: {
931
+ type: 'string',
932
+ description: 'Release channel for the cluster\'s control plane.',
933
+ default: 'rapid',
934
+ example: 'rapid',
935
+ enum: [
936
+ 'rapid',
937
+ 'stable',
938
+ 'extended'
939
+ ]
940
+ },
941
+ features: {
942
+ type: 'object',
943
+ properties: {
944
+ gpu_sharing_strategy: {
945
+ type: 'string',
946
+ description: 'GPU sharing strategy.',
947
+ default: 'none',
948
+ example: 'none',
949
+ enum: [
950
+ 'none',
951
+ 'mps',
952
+ 'time_slicing'
953
+ ]
954
+ },
955
+ gpu_max_shared_clients_per_gpu: {
956
+ type: 'integer',
957
+ minimum: 2,
958
+ maximum: 48,
959
+ description: 'Maximum number of pods that may share a single GPU.',
960
+ default: 4,
961
+ example: 10
962
+ },
963
+ cilium_socket_lb_host_namespace_only: {
964
+ type: 'boolean',
965
+ description: 'Restrict Cilium socket load-balancing to the host namespace. Required for the Tailscale operator and Istio.',
966
+ example: false
967
+ }
968
+ },
969
+ additionalProperties: false,
970
+ description: 'Cluster feature toggles.',
971
+ default: {
972
+ gpu_sharing_strategy: 'none',
973
+ gpu_max_shared_clients_per_gpu: 4,
974
+ cilium_socket_lb_host_namespace_only: false
975
+ }
486
976
  }
487
977
  },
488
- additionalProperties: false
978
+ required: [
979
+ 'name'
980
+ ],
981
+ additionalProperties: false,
982
+ description: 'Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
489
983
  };
490
984
  export const FleetCreateInputSchema = {
491
985
  type: 'object',
@@ -494,13 +988,12 @@ export const FleetCreateInputSchema = {
494
988
  type: 'object',
495
989
  properties: {
496
990
  cpu: {
497
- type: 'number',
498
- format: 'float',
991
+ type: 'integer',
499
992
  minimum: 0,
500
- description: 'CPU limit in cores.'
993
+ maximum: 100000,
994
+ description: 'CPU limit in cores. Maximum 100,000.'
501
995
  }
502
996
  },
503
- required: ['cpu'],
504
997
  additionalProperties: false,
505
998
  description: 'Limits define a set of bounds for provisioning capacity.'
506
999
  },
@@ -508,62 +1001,396 @@ export const FleetCreateInputSchema = {
508
1001
  type: 'object',
509
1002
  properties: {
510
1003
  enabled: {
511
- type: 'boolean',
512
- default: true
1004
+ type: 'boolean'
513
1005
  },
514
1006
  project: {
515
1007
  type: 'string',
516
- description: 'Project GCP Project id to deploy instances into'
1008
+ pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
1009
+ 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.',
1010
+ example: 'my-cloudfleet-project'
517
1011
  }
518
1012
  },
519
- required: ['project'],
1013
+ required: [
1014
+ 'enabled'
1015
+ ],
520
1016
  additionalProperties: false
521
1017
  },
522
1018
  hetzner: {
523
- oneOf: [
524
- {
525
- type: 'object',
526
- properties: {
527
- enabled: {
528
- type: 'boolean',
529
- default: true
530
- },
531
- apiKey: {
532
- type: 'string'
533
- }
534
- },
535
- additionalProperties: false
1019
+ type: 'object',
1020
+ properties: {
1021
+ enabled: {
1022
+ type: 'boolean'
536
1023
  },
537
- {
538
- type: 'object',
539
- properties: {
540
- apiKey: {
541
- type: 'string'
542
- },
543
- enabled: {
544
- type: 'boolean',
545
- default: true
546
- }
547
- },
548
- additionalProperties: false
1024
+ apiKey: {
1025
+ type: 'string',
1026
+ maxLength: 64,
1027
+ minLength: 64,
1028
+ pattern: '^([A-Za-z0-9]{64}|\\*{64})$',
1029
+ 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.'
549
1030
  }
550
- ]
1031
+ },
1032
+ required: [
1033
+ 'enabled'
1034
+ ],
1035
+ additionalProperties: false
551
1036
  },
552
1037
  aws: {
553
1038
  type: 'object',
554
1039
  properties: {
555
1040
  enabled: {
556
- type: 'boolean',
557
- default: true
1041
+ type: 'boolean'
558
1042
  },
559
1043
  controllerRoleArn: {
560
1044
  type: 'string',
561
- description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
1045
+ pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
1046
+ description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
1047
+ example: 'arn:aws:iam::123456789012:role/Cloudfleet'
562
1048
  }
563
1049
  },
564
- required: ['controllerRoleArn'],
1050
+ required: [
1051
+ 'enabled'
1052
+ ],
565
1053
  additionalProperties: false
566
1054
  },
1055
+ constraints: {
1056
+ type: 'object',
1057
+ properties: {
1058
+ 'karpenter.sh/capacity-type': {
1059
+ type: 'array',
1060
+ items: {
1061
+ type: 'string',
1062
+ enum: [
1063
+ 'on-demand',
1064
+ 'spot'
1065
+ ]
1066
+ },
1067
+ minItems: 1,
1068
+ description: 'Allowed values for `karpenter.sh/capacity-type`.',
1069
+ default: [
1070
+ 'on-demand',
1071
+ 'spot'
1072
+ ]
1073
+ },
1074
+ 'kubernetes.io/arch': {
1075
+ type: 'array',
1076
+ items: {
1077
+ type: 'string',
1078
+ enum: [
1079
+ 'amd64',
1080
+ 'arm64'
1081
+ ]
1082
+ },
1083
+ minItems: 1,
1084
+ description: 'Allowed values for `kubernetes.io/arch`.',
1085
+ default: [
1086
+ 'amd64'
1087
+ ]
1088
+ },
1089
+ 'cfke.io/instance-family': {
1090
+ type: 'array',
1091
+ items: {
1092
+ type: 'string',
1093
+ enum: [
1094
+ 'a1',
1095
+ 'a2',
1096
+ 'a3',
1097
+ 'a4',
1098
+ 'c1',
1099
+ 'c2',
1100
+ 'c2d',
1101
+ 'c3',
1102
+ 'c3d',
1103
+ 'c4',
1104
+ 'c4a',
1105
+ 'c4d',
1106
+ 'c5',
1107
+ 'c5a',
1108
+ 'c5ad',
1109
+ 'c5d',
1110
+ 'c5n',
1111
+ 'c6a',
1112
+ 'c6g',
1113
+ 'c6gd',
1114
+ 'c6gn',
1115
+ 'c6i',
1116
+ 'c6id',
1117
+ 'c6in',
1118
+ 'c7a',
1119
+ 'c7g',
1120
+ 'c7gd',
1121
+ 'c7gn',
1122
+ 'c7i',
1123
+ 'c7i-flex',
1124
+ 'c8g',
1125
+ 'c8gd',
1126
+ 'cax',
1127
+ 'ccx',
1128
+ 'cpx',
1129
+ 'cx',
1130
+ 'd2',
1131
+ 'd3',
1132
+ 'd3en',
1133
+ 'dl1',
1134
+ 'dl2q',
1135
+ 'e2',
1136
+ 'f1',
1137
+ 'f2',
1138
+ 'g1',
1139
+ 'g2',
1140
+ 'g4ad',
1141
+ 'g4dn',
1142
+ 'g5',
1143
+ 'g5g',
1144
+ 'g6',
1145
+ 'g6e',
1146
+ 'gr6',
1147
+ 'h1',
1148
+ 'h3',
1149
+ 'hpc6a',
1150
+ 'hpc6id',
1151
+ 'hpc7a',
1152
+ 'hpc7g',
1153
+ 'i2',
1154
+ 'i3',
1155
+ 'i3en',
1156
+ 'i4g',
1157
+ 'i4i',
1158
+ 'i7i',
1159
+ 'i7ie',
1160
+ 'i8g',
1161
+ 'im4gn',
1162
+ 'inf1',
1163
+ 'inf2',
1164
+ 'is4gen',
1165
+ 'm1',
1166
+ 'm2',
1167
+ 'm3',
1168
+ 'm4',
1169
+ 'm5',
1170
+ 'm5a',
1171
+ 'm5ad',
1172
+ 'm5d',
1173
+ 'm5dn',
1174
+ 'm5n',
1175
+ 'm5zn',
1176
+ 'm6a',
1177
+ 'm6g',
1178
+ 'm6gd',
1179
+ 'm6i',
1180
+ 'm6id',
1181
+ 'm6idn',
1182
+ 'm6in',
1183
+ 'm7a',
1184
+ 'm7g',
1185
+ 'm7gd',
1186
+ 'm7i',
1187
+ 'm7i-flex',
1188
+ 'm8g',
1189
+ 'm8gd',
1190
+ 'n1',
1191
+ 'n2',
1192
+ 'n2d',
1193
+ 'n4',
1194
+ 'p3',
1195
+ 'p3dn',
1196
+ 'p4d',
1197
+ 'p4de',
1198
+ 'p5',
1199
+ 'p5e',
1200
+ 'p5en',
1201
+ 'p6-b200',
1202
+ 'r3',
1203
+ 'r4',
1204
+ 'r5',
1205
+ 'r5a',
1206
+ 'r5ad',
1207
+ 'r5b',
1208
+ 'r5d',
1209
+ 'r5dn',
1210
+ 'r5n',
1211
+ 'r6a',
1212
+ 'r6g',
1213
+ 'r6gd',
1214
+ 'r6i',
1215
+ 'r6id',
1216
+ 'r6idn',
1217
+ 'r6in',
1218
+ 'r7a',
1219
+ 'r7g',
1220
+ 'r7gd',
1221
+ 'r7i',
1222
+ 'r7iz',
1223
+ 'r8g',
1224
+ 'r8gd',
1225
+ 't2',
1226
+ 't2a',
1227
+ 't2d',
1228
+ 't3',
1229
+ 't3a',
1230
+ 't4g',
1231
+ 'trn1',
1232
+ 'trn1n',
1233
+ 'u-3tb1',
1234
+ 'u-6tb1',
1235
+ 'u7i-12tb',
1236
+ 'u7i-6tb',
1237
+ 'u7i-8tb',
1238
+ 'u7in-16tb',
1239
+ 'u7in-24tb',
1240
+ 'u7in-32tb',
1241
+ 'vt1',
1242
+ 'x1',
1243
+ 'x1e',
1244
+ 'x2gd',
1245
+ 'x2idn',
1246
+ 'x2iedn',
1247
+ 'x2iezn',
1248
+ 'x4',
1249
+ 'x8g',
1250
+ 'z1d',
1251
+ 'z3'
1252
+ ]
1253
+ },
1254
+ description: 'Allowed values for `cfke.io/instance-family`.',
1255
+ default: []
1256
+ },
1257
+ 'topology.kubernetes.io/region': {
1258
+ type: 'array',
1259
+ items: {
1260
+ type: 'string',
1261
+ enum: [
1262
+ 'africa-south1',
1263
+ 'ap-northeast-1',
1264
+ 'ap-northeast-2',
1265
+ 'ap-northeast-3',
1266
+ 'ap-south-1',
1267
+ 'ap-southeast-1',
1268
+ 'ap-southeast-2',
1269
+ 'ash',
1270
+ 'asia-east1',
1271
+ 'asia-east2',
1272
+ 'asia-northeast1',
1273
+ 'asia-northeast2',
1274
+ 'asia-northeast3',
1275
+ 'asia-south1',
1276
+ 'asia-south2',
1277
+ 'asia-southeast1',
1278
+ 'asia-southeast2',
1279
+ 'australia-southeast1',
1280
+ 'australia-southeast2',
1281
+ 'ca-central-1',
1282
+ 'eu-central-1',
1283
+ 'eu-central-2',
1284
+ 'eu-north-1',
1285
+ 'eu-west-1',
1286
+ 'eu-west-2',
1287
+ 'eu-west-3',
1288
+ 'europe-central2',
1289
+ 'europe-north1',
1290
+ 'europe-southwest1',
1291
+ 'europe-west1',
1292
+ 'europe-west10',
1293
+ 'europe-west12',
1294
+ 'europe-west2',
1295
+ 'europe-west3',
1296
+ 'europe-west4',
1297
+ 'europe-west6',
1298
+ 'europe-west8',
1299
+ 'europe-west9',
1300
+ 'fsn1',
1301
+ 'hel1',
1302
+ 'hil',
1303
+ 'me-central1',
1304
+ 'me-central2',
1305
+ 'me-west1',
1306
+ 'nbg1',
1307
+ 'northamerica-northeast1',
1308
+ 'northamerica-northeast2',
1309
+ 'sa-east-1',
1310
+ 'sin',
1311
+ 'southamerica-east1',
1312
+ 'southamerica-west1',
1313
+ 'us-central1',
1314
+ 'us-east-1',
1315
+ 'us-east-2',
1316
+ 'us-east1',
1317
+ 'us-east4',
1318
+ 'us-east5',
1319
+ 'us-south1',
1320
+ 'us-west-1',
1321
+ 'us-west-2',
1322
+ 'us-west1',
1323
+ 'us-west2',
1324
+ 'us-west3',
1325
+ 'us-west4'
1326
+ ]
1327
+ },
1328
+ description: 'Allowed values for `topology.kubernetes.io/region`.',
1329
+ default: []
1330
+ }
1331
+ },
1332
+ additionalProperties: false,
1333
+ 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.',
1334
+ default: {
1335
+ 'karpenter.sh/capacity-type': [
1336
+ 'on-demand',
1337
+ 'spot'
1338
+ ],
1339
+ 'kubernetes.io/arch': [
1340
+ 'amd64'
1341
+ ],
1342
+ 'cfke.io/instance-family': [],
1343
+ 'topology.kubernetes.io/region': []
1344
+ }
1345
+ },
1346
+ scalingProfile: {
1347
+ type: 'string',
1348
+ 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`).',
1349
+ default: 'conservative',
1350
+ example: 'conservative',
1351
+ enum: [
1352
+ 'aggressive',
1353
+ 'conservative'
1354
+ ]
1355
+ },
1356
+ taints: {
1357
+ type: 'array',
1358
+ items: {
1359
+ type: 'object',
1360
+ properties: {
1361
+ key: {
1362
+ type: 'string',
1363
+ description: 'Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.',
1364
+ example: 'dedicated'
1365
+ },
1366
+ value: {
1367
+ type: 'string',
1368
+ maxLength: 63,
1369
+ pattern: '^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$',
1370
+ description: 'Taint value. Optional.',
1371
+ example: 'ci'
1372
+ },
1373
+ effect: {
1374
+ type: 'string',
1375
+ description: 'Taint effect.',
1376
+ example: 'NoSchedule',
1377
+ enum: [
1378
+ 'NoSchedule',
1379
+ 'PreferNoSchedule',
1380
+ 'NoExecute'
1381
+ ]
1382
+ }
1383
+ },
1384
+ required: [
1385
+ 'key',
1386
+ 'effect'
1387
+ ],
1388
+ additionalProperties: false
1389
+ },
1390
+ maxItems: 50,
1391
+ description: 'Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.',
1392
+ default: []
1393
+ },
567
1394
  id: {
568
1395
  type: 'string',
569
1396
  maxLength: 63,
@@ -571,15 +1398,13 @@ export const FleetCreateInputSchema = {
571
1398
  pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
572
1399
  description: 'Unique identifier of the kubernetes fleet.',
573
1400
  example: 'new-clouds-fleet'
574
- },
575
- type: {
576
- type: 'string',
577
- description: 'Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.',
578
- enum: ['managed', 'connected']
579
1401
  }
580
1402
  },
581
- required: ['id', 'type'],
582
- additionalProperties: false
1403
+ required: [
1404
+ 'id'
1405
+ ],
1406
+ additionalProperties: false,
1407
+ description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
583
1408
  };
584
1409
  export const FleetSchema = {
585
1410
  type: 'object',
@@ -588,13 +1413,12 @@ export const FleetSchema = {
588
1413
  type: 'object',
589
1414
  properties: {
590
1415
  cpu: {
591
- type: 'number',
592
- format: 'float',
1416
+ type: 'integer',
593
1417
  minimum: 0,
594
- description: 'CPU limit in cores.'
1418
+ maximum: 100000,
1419
+ description: 'CPU limit in cores. Maximum 100,000.'
595
1420
  }
596
1421
  },
597
- required: ['cpu'],
598
1422
  additionalProperties: false,
599
1423
  description: 'Limits define a set of bounds for provisioning capacity.'
600
1424
  },
@@ -602,78 +1426,438 @@ export const FleetSchema = {
602
1426
  type: 'object',
603
1427
  properties: {
604
1428
  enabled: {
605
- type: 'boolean',
606
- default: true
1429
+ type: 'boolean'
607
1430
  },
608
1431
  project: {
609
1432
  type: 'string',
610
- description: 'Project GCP Project id to deploy instances into'
1433
+ pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
1434
+ 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.',
1435
+ example: 'my-cloudfleet-project'
611
1436
  }
612
1437
  },
613
- required: ['project'],
1438
+ required: [
1439
+ 'enabled'
1440
+ ],
614
1441
  additionalProperties: false
615
1442
  },
616
1443
  hetzner: {
617
- oneOf: [
618
- {
619
- type: 'object',
620
- properties: {
621
- enabled: {
622
- type: 'boolean',
623
- default: true
624
- },
625
- apiKey: {
626
- type: 'string'
627
- }
628
- },
629
- additionalProperties: false
1444
+ type: 'object',
1445
+ properties: {
1446
+ enabled: {
1447
+ type: 'boolean'
630
1448
  },
631
- {
632
- type: 'object',
633
- properties: {
634
- apiKey: {
635
- type: 'string'
636
- },
637
- enabled: {
638
- type: 'boolean',
639
- default: true
640
- }
641
- },
642
- additionalProperties: false
1449
+ apiKey: {
1450
+ type: 'string',
1451
+ pattern: '^\\*{64}$',
1452
+ 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.'
643
1453
  }
644
- ]
1454
+ },
1455
+ required: [
1456
+ 'enabled'
1457
+ ],
1458
+ additionalProperties: false
645
1459
  },
646
1460
  aws: {
647
1461
  type: 'object',
648
1462
  properties: {
649
1463
  enabled: {
650
- type: 'boolean',
651
- default: true
1464
+ type: 'boolean'
652
1465
  },
653
1466
  controllerRoleArn: {
654
1467
  type: 'string',
655
- description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
1468
+ pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
1469
+ description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
1470
+ example: 'arn:aws:iam::123456789012:role/Cloudfleet'
656
1471
  }
657
1472
  },
658
- required: ['controllerRoleArn'],
1473
+ required: [
1474
+ 'enabled'
1475
+ ],
659
1476
  additionalProperties: false
660
1477
  },
661
- id: {
662
- type: 'string',
663
- maxLength: 63,
664
- minLength: 1,
665
- pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
1478
+ constraints: {
1479
+ type: 'object',
1480
+ properties: {
1481
+ 'karpenter.sh/capacity-type': {
1482
+ type: 'array',
1483
+ items: {
1484
+ type: 'string',
1485
+ enum: [
1486
+ 'on-demand',
1487
+ 'spot'
1488
+ ]
1489
+ },
1490
+ minItems: 1,
1491
+ description: 'Allowed values for `karpenter.sh/capacity-type`.',
1492
+ default: [
1493
+ 'on-demand',
1494
+ 'spot'
1495
+ ]
1496
+ },
1497
+ 'kubernetes.io/arch': {
1498
+ type: 'array',
1499
+ items: {
1500
+ type: 'string',
1501
+ enum: [
1502
+ 'amd64',
1503
+ 'arm64'
1504
+ ]
1505
+ },
1506
+ minItems: 1,
1507
+ description: 'Allowed values for `kubernetes.io/arch`.',
1508
+ default: [
1509
+ 'amd64'
1510
+ ]
1511
+ },
1512
+ 'cfke.io/instance-family': {
1513
+ type: 'array',
1514
+ items: {
1515
+ type: 'string',
1516
+ enum: [
1517
+ 'a1',
1518
+ 'a2',
1519
+ 'a3',
1520
+ 'a4',
1521
+ 'c1',
1522
+ 'c2',
1523
+ 'c2d',
1524
+ 'c3',
1525
+ 'c3d',
1526
+ 'c4',
1527
+ 'c4a',
1528
+ 'c4d',
1529
+ 'c5',
1530
+ 'c5a',
1531
+ 'c5ad',
1532
+ 'c5d',
1533
+ 'c5n',
1534
+ 'c6a',
1535
+ 'c6g',
1536
+ 'c6gd',
1537
+ 'c6gn',
1538
+ 'c6i',
1539
+ 'c6id',
1540
+ 'c6in',
1541
+ 'c7a',
1542
+ 'c7g',
1543
+ 'c7gd',
1544
+ 'c7gn',
1545
+ 'c7i',
1546
+ 'c7i-flex',
1547
+ 'c8g',
1548
+ 'c8gd',
1549
+ 'cax',
1550
+ 'ccx',
1551
+ 'cpx',
1552
+ 'cx',
1553
+ 'd2',
1554
+ 'd3',
1555
+ 'd3en',
1556
+ 'dl1',
1557
+ 'dl2q',
1558
+ 'e2',
1559
+ 'f1',
1560
+ 'f2',
1561
+ 'g1',
1562
+ 'g2',
1563
+ 'g4ad',
1564
+ 'g4dn',
1565
+ 'g5',
1566
+ 'g5g',
1567
+ 'g6',
1568
+ 'g6e',
1569
+ 'gr6',
1570
+ 'h1',
1571
+ 'h3',
1572
+ 'hpc6a',
1573
+ 'hpc6id',
1574
+ 'hpc7a',
1575
+ 'hpc7g',
1576
+ 'i2',
1577
+ 'i3',
1578
+ 'i3en',
1579
+ 'i4g',
1580
+ 'i4i',
1581
+ 'i7i',
1582
+ 'i7ie',
1583
+ 'i8g',
1584
+ 'im4gn',
1585
+ 'inf1',
1586
+ 'inf2',
1587
+ 'is4gen',
1588
+ 'm1',
1589
+ 'm2',
1590
+ 'm3',
1591
+ 'm4',
1592
+ 'm5',
1593
+ 'm5a',
1594
+ 'm5ad',
1595
+ 'm5d',
1596
+ 'm5dn',
1597
+ 'm5n',
1598
+ 'm5zn',
1599
+ 'm6a',
1600
+ 'm6g',
1601
+ 'm6gd',
1602
+ 'm6i',
1603
+ 'm6id',
1604
+ 'm6idn',
1605
+ 'm6in',
1606
+ 'm7a',
1607
+ 'm7g',
1608
+ 'm7gd',
1609
+ 'm7i',
1610
+ 'm7i-flex',
1611
+ 'm8g',
1612
+ 'm8gd',
1613
+ 'n1',
1614
+ 'n2',
1615
+ 'n2d',
1616
+ 'n4',
1617
+ 'p3',
1618
+ 'p3dn',
1619
+ 'p4d',
1620
+ 'p4de',
1621
+ 'p5',
1622
+ 'p5e',
1623
+ 'p5en',
1624
+ 'p6-b200',
1625
+ 'r3',
1626
+ 'r4',
1627
+ 'r5',
1628
+ 'r5a',
1629
+ 'r5ad',
1630
+ 'r5b',
1631
+ 'r5d',
1632
+ 'r5dn',
1633
+ 'r5n',
1634
+ 'r6a',
1635
+ 'r6g',
1636
+ 'r6gd',
1637
+ 'r6i',
1638
+ 'r6id',
1639
+ 'r6idn',
1640
+ 'r6in',
1641
+ 'r7a',
1642
+ 'r7g',
1643
+ 'r7gd',
1644
+ 'r7i',
1645
+ 'r7iz',
1646
+ 'r8g',
1647
+ 'r8gd',
1648
+ 't2',
1649
+ 't2a',
1650
+ 't2d',
1651
+ 't3',
1652
+ 't3a',
1653
+ 't4g',
1654
+ 'trn1',
1655
+ 'trn1n',
1656
+ 'u-3tb1',
1657
+ 'u-6tb1',
1658
+ 'u7i-12tb',
1659
+ 'u7i-6tb',
1660
+ 'u7i-8tb',
1661
+ 'u7in-16tb',
1662
+ 'u7in-24tb',
1663
+ 'u7in-32tb',
1664
+ 'vt1',
1665
+ 'x1',
1666
+ 'x1e',
1667
+ 'x2gd',
1668
+ 'x2idn',
1669
+ 'x2iedn',
1670
+ 'x2iezn',
1671
+ 'x4',
1672
+ 'x8g',
1673
+ 'z1d',
1674
+ 'z3'
1675
+ ]
1676
+ },
1677
+ description: 'Allowed values for `cfke.io/instance-family`.',
1678
+ default: []
1679
+ },
1680
+ 'topology.kubernetes.io/region': {
1681
+ type: 'array',
1682
+ items: {
1683
+ type: 'string',
1684
+ enum: [
1685
+ 'africa-south1',
1686
+ 'ap-northeast-1',
1687
+ 'ap-northeast-2',
1688
+ 'ap-northeast-3',
1689
+ 'ap-south-1',
1690
+ 'ap-southeast-1',
1691
+ 'ap-southeast-2',
1692
+ 'ash',
1693
+ 'asia-east1',
1694
+ 'asia-east2',
1695
+ 'asia-northeast1',
1696
+ 'asia-northeast2',
1697
+ 'asia-northeast3',
1698
+ 'asia-south1',
1699
+ 'asia-south2',
1700
+ 'asia-southeast1',
1701
+ 'asia-southeast2',
1702
+ 'australia-southeast1',
1703
+ 'australia-southeast2',
1704
+ 'ca-central-1',
1705
+ 'eu-central-1',
1706
+ 'eu-central-2',
1707
+ 'eu-north-1',
1708
+ 'eu-west-1',
1709
+ 'eu-west-2',
1710
+ 'eu-west-3',
1711
+ 'europe-central2',
1712
+ 'europe-north1',
1713
+ 'europe-southwest1',
1714
+ 'europe-west1',
1715
+ 'europe-west10',
1716
+ 'europe-west12',
1717
+ 'europe-west2',
1718
+ 'europe-west3',
1719
+ 'europe-west4',
1720
+ 'europe-west6',
1721
+ 'europe-west8',
1722
+ 'europe-west9',
1723
+ 'fsn1',
1724
+ 'hel1',
1725
+ 'hil',
1726
+ 'me-central1',
1727
+ 'me-central2',
1728
+ 'me-west1',
1729
+ 'nbg1',
1730
+ 'northamerica-northeast1',
1731
+ 'northamerica-northeast2',
1732
+ 'sa-east-1',
1733
+ 'sin',
1734
+ 'southamerica-east1',
1735
+ 'southamerica-west1',
1736
+ 'us-central1',
1737
+ 'us-east-1',
1738
+ 'us-east-2',
1739
+ 'us-east1',
1740
+ 'us-east4',
1741
+ 'us-east5',
1742
+ 'us-south1',
1743
+ 'us-west-1',
1744
+ 'us-west-2',
1745
+ 'us-west1',
1746
+ 'us-west2',
1747
+ 'us-west3',
1748
+ 'us-west4'
1749
+ ]
1750
+ },
1751
+ description: 'Allowed values for `topology.kubernetes.io/region`.',
1752
+ default: []
1753
+ }
1754
+ },
1755
+ required: [
1756
+ 'karpenter.sh/capacity-type',
1757
+ 'kubernetes.io/arch'
1758
+ ],
1759
+ additionalProperties: false,
1760
+ 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.',
1761
+ default: {
1762
+ 'karpenter.sh/capacity-type': [
1763
+ 'on-demand',
1764
+ 'spot'
1765
+ ],
1766
+ 'kubernetes.io/arch': [
1767
+ 'amd64'
1768
+ ],
1769
+ 'cfke.io/instance-family': [],
1770
+ 'topology.kubernetes.io/region': []
1771
+ }
1772
+ },
1773
+ scalingProfile: {
1774
+ type: 'string',
1775
+ 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`).',
1776
+ default: 'conservative',
1777
+ example: 'conservative',
1778
+ enum: [
1779
+ 'aggressive',
1780
+ 'conservative'
1781
+ ]
1782
+ },
1783
+ taints: {
1784
+ type: 'array',
1785
+ items: {
1786
+ type: 'object',
1787
+ properties: {
1788
+ key: {
1789
+ type: 'string',
1790
+ description: 'Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.',
1791
+ example: 'dedicated'
1792
+ },
1793
+ value: {
1794
+ type: 'string',
1795
+ maxLength: 63,
1796
+ pattern: '^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$',
1797
+ description: 'Taint value. Optional.',
1798
+ example: 'ci'
1799
+ },
1800
+ effect: {
1801
+ type: 'string',
1802
+ description: 'Taint effect.',
1803
+ example: 'NoSchedule',
1804
+ enum: [
1805
+ 'NoSchedule',
1806
+ 'PreferNoSchedule',
1807
+ 'NoExecute'
1808
+ ]
1809
+ }
1810
+ },
1811
+ required: [
1812
+ 'key',
1813
+ 'effect'
1814
+ ],
1815
+ additionalProperties: false
1816
+ },
1817
+ maxItems: 50,
1818
+ description: 'Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.',
1819
+ default: []
1820
+ },
1821
+ id: {
1822
+ type: 'string',
1823
+ maxLength: 63,
1824
+ minLength: 1,
1825
+ pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
666
1826
  description: 'Unique identifier of the kubernetes fleet.',
667
1827
  example: 'new-clouds-fleet'
668
1828
  },
669
- type: {
1829
+ ready: {
1830
+ type: 'boolean',
1831
+ description: 'Indicates whether the fleet configuration is healthy.',
1832
+ example: true
1833
+ },
1834
+ status_message: {
1835
+ type: 'string',
1836
+ description: 'Human-readable reason the fleet is not ready. Present only when `ready` is false.',
1837
+ example: 'Invalid provider permissions.'
1838
+ },
1839
+ created_at: {
1840
+ type: 'string',
1841
+ description: 'Creation date and time of the fleet.',
1842
+ example: '2024-09-12T09:11:27Z'
1843
+ },
1844
+ updated_at: {
670
1845
  type: 'string',
671
- description: 'Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.',
672
- enum: ['managed', 'connected']
1846
+ description: 'Date and time the fleet was last updated.',
1847
+ example: '2024-09-12T09:11:27Z'
673
1848
  }
674
1849
  },
675
- required: ['id', 'type'],
676
- additionalProperties: false
1850
+ required: [
1851
+ 'constraints',
1852
+ 'scalingProfile',
1853
+ 'taints',
1854
+ 'id',
1855
+ 'ready',
1856
+ 'created_at',
1857
+ 'updated_at'
1858
+ ],
1859
+ additionalProperties: false,
1860
+ description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
677
1861
  };
678
1862
  export const FleetUpdateInputSchema = {
679
1863
  type: 'object',
@@ -682,13 +1866,12 @@ export const FleetUpdateInputSchema = {
682
1866
  type: 'object',
683
1867
  properties: {
684
1868
  cpu: {
685
- type: 'number',
686
- format: 'float',
1869
+ type: 'integer',
687
1870
  minimum: 0,
688
- description: 'CPU limit in cores.'
1871
+ maximum: 100000,
1872
+ description: 'CPU limit in cores. Maximum 100,000.'
689
1873
  }
690
1874
  },
691
- required: ['cpu'],
692
1875
  additionalProperties: false,
693
1876
  description: 'Limits define a set of bounds for provisioning capacity.'
694
1877
  },
@@ -696,63 +1879,423 @@ export const FleetUpdateInputSchema = {
696
1879
  type: 'object',
697
1880
  properties: {
698
1881
  enabled: {
699
- type: 'boolean',
700
- default: true
1882
+ type: 'boolean'
701
1883
  },
702
1884
  project: {
703
1885
  type: 'string',
704
- description: 'Project GCP Project id to deploy instances into'
1886
+ pattern: '^[a-z][a-z0-9-]{4,28}[a-z0-9]$',
1887
+ 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.',
1888
+ example: 'my-cloudfleet-project'
705
1889
  }
706
1890
  },
707
- required: ['project'],
1891
+ required: [
1892
+ 'enabled'
1893
+ ],
708
1894
  additionalProperties: false
709
1895
  },
710
1896
  hetzner: {
711
- oneOf: [
712
- {
713
- type: 'object',
714
- properties: {
715
- enabled: {
716
- type: 'boolean',
717
- default: true
718
- },
719
- apiKey: {
720
- type: 'string'
721
- }
722
- },
723
- additionalProperties: false
1897
+ type: 'object',
1898
+ properties: {
1899
+ enabled: {
1900
+ type: 'boolean'
724
1901
  },
725
- {
726
- type: 'object',
727
- properties: {
728
- apiKey: {
729
- type: 'string'
730
- },
731
- enabled: {
732
- type: 'boolean',
733
- default: true
734
- }
735
- },
736
- additionalProperties: false
1902
+ apiKey: {
1903
+ type: 'string',
1904
+ maxLength: 64,
1905
+ minLength: 64,
1906
+ pattern: '^([A-Za-z0-9]{64}|\\*{64})$',
1907
+ 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.'
737
1908
  }
738
- ]
1909
+ },
1910
+ required: [
1911
+ 'enabled'
1912
+ ],
1913
+ additionalProperties: false
739
1914
  },
740
1915
  aws: {
741
1916
  type: 'object',
742
1917
  properties: {
743
1918
  enabled: {
744
- type: 'boolean',
745
- default: true
1919
+ type: 'boolean'
746
1920
  },
747
1921
  controllerRoleArn: {
748
1922
  type: 'string',
749
- description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
1923
+ pattern: '^arn:aws(-[a-z]+)*:iam::\\d{12}:role\\/[\\w+=,.@/-]+$',
1924
+ description: 'AWS IAM role ARN that Karpenter uses to manage resources. Omit when AWS is disabled.',
1925
+ example: 'arn:aws:iam::123456789012:role/Cloudfleet'
750
1926
  }
751
1927
  },
752
- required: ['controllerRoleArn'],
1928
+ required: [
1929
+ 'enabled'
1930
+ ],
753
1931
  additionalProperties: false
1932
+ },
1933
+ constraints: {
1934
+ type: 'object',
1935
+ properties: {
1936
+ 'karpenter.sh/capacity-type': {
1937
+ type: 'array',
1938
+ items: {
1939
+ type: 'string',
1940
+ enum: [
1941
+ 'on-demand',
1942
+ 'spot'
1943
+ ]
1944
+ },
1945
+ minItems: 1,
1946
+ description: 'Allowed values for `karpenter.sh/capacity-type`.',
1947
+ default: [
1948
+ 'on-demand',
1949
+ 'spot'
1950
+ ]
1951
+ },
1952
+ 'kubernetes.io/arch': {
1953
+ type: 'array',
1954
+ items: {
1955
+ type: 'string',
1956
+ enum: [
1957
+ 'amd64',
1958
+ 'arm64'
1959
+ ]
1960
+ },
1961
+ minItems: 1,
1962
+ description: 'Allowed values for `kubernetes.io/arch`.',
1963
+ default: [
1964
+ 'amd64'
1965
+ ]
1966
+ },
1967
+ 'cfke.io/instance-family': {
1968
+ type: 'array',
1969
+ items: {
1970
+ type: 'string',
1971
+ enum: [
1972
+ 'a1',
1973
+ 'a2',
1974
+ 'a3',
1975
+ 'a4',
1976
+ 'c1',
1977
+ 'c2',
1978
+ 'c2d',
1979
+ 'c3',
1980
+ 'c3d',
1981
+ 'c4',
1982
+ 'c4a',
1983
+ 'c4d',
1984
+ 'c5',
1985
+ 'c5a',
1986
+ 'c5ad',
1987
+ 'c5d',
1988
+ 'c5n',
1989
+ 'c6a',
1990
+ 'c6g',
1991
+ 'c6gd',
1992
+ 'c6gn',
1993
+ 'c6i',
1994
+ 'c6id',
1995
+ 'c6in',
1996
+ 'c7a',
1997
+ 'c7g',
1998
+ 'c7gd',
1999
+ 'c7gn',
2000
+ 'c7i',
2001
+ 'c7i-flex',
2002
+ 'c8g',
2003
+ 'c8gd',
2004
+ 'cax',
2005
+ 'ccx',
2006
+ 'cpx',
2007
+ 'cx',
2008
+ 'd2',
2009
+ 'd3',
2010
+ 'd3en',
2011
+ 'dl1',
2012
+ 'dl2q',
2013
+ 'e2',
2014
+ 'f1',
2015
+ 'f2',
2016
+ 'g1',
2017
+ 'g2',
2018
+ 'g4ad',
2019
+ 'g4dn',
2020
+ 'g5',
2021
+ 'g5g',
2022
+ 'g6',
2023
+ 'g6e',
2024
+ 'gr6',
2025
+ 'h1',
2026
+ 'h3',
2027
+ 'hpc6a',
2028
+ 'hpc6id',
2029
+ 'hpc7a',
2030
+ 'hpc7g',
2031
+ 'i2',
2032
+ 'i3',
2033
+ 'i3en',
2034
+ 'i4g',
2035
+ 'i4i',
2036
+ 'i7i',
2037
+ 'i7ie',
2038
+ 'i8g',
2039
+ 'im4gn',
2040
+ 'inf1',
2041
+ 'inf2',
2042
+ 'is4gen',
2043
+ 'm1',
2044
+ 'm2',
2045
+ 'm3',
2046
+ 'm4',
2047
+ 'm5',
2048
+ 'm5a',
2049
+ 'm5ad',
2050
+ 'm5d',
2051
+ 'm5dn',
2052
+ 'm5n',
2053
+ 'm5zn',
2054
+ 'm6a',
2055
+ 'm6g',
2056
+ 'm6gd',
2057
+ 'm6i',
2058
+ 'm6id',
2059
+ 'm6idn',
2060
+ 'm6in',
2061
+ 'm7a',
2062
+ 'm7g',
2063
+ 'm7gd',
2064
+ 'm7i',
2065
+ 'm7i-flex',
2066
+ 'm8g',
2067
+ 'm8gd',
2068
+ 'n1',
2069
+ 'n2',
2070
+ 'n2d',
2071
+ 'n4',
2072
+ 'p3',
2073
+ 'p3dn',
2074
+ 'p4d',
2075
+ 'p4de',
2076
+ 'p5',
2077
+ 'p5e',
2078
+ 'p5en',
2079
+ 'p6-b200',
2080
+ 'r3',
2081
+ 'r4',
2082
+ 'r5',
2083
+ 'r5a',
2084
+ 'r5ad',
2085
+ 'r5b',
2086
+ 'r5d',
2087
+ 'r5dn',
2088
+ 'r5n',
2089
+ 'r6a',
2090
+ 'r6g',
2091
+ 'r6gd',
2092
+ 'r6i',
2093
+ 'r6id',
2094
+ 'r6idn',
2095
+ 'r6in',
2096
+ 'r7a',
2097
+ 'r7g',
2098
+ 'r7gd',
2099
+ 'r7i',
2100
+ 'r7iz',
2101
+ 'r8g',
2102
+ 'r8gd',
2103
+ 't2',
2104
+ 't2a',
2105
+ 't2d',
2106
+ 't3',
2107
+ 't3a',
2108
+ 't4g',
2109
+ 'trn1',
2110
+ 'trn1n',
2111
+ 'u-3tb1',
2112
+ 'u-6tb1',
2113
+ 'u7i-12tb',
2114
+ 'u7i-6tb',
2115
+ 'u7i-8tb',
2116
+ 'u7in-16tb',
2117
+ 'u7in-24tb',
2118
+ 'u7in-32tb',
2119
+ 'vt1',
2120
+ 'x1',
2121
+ 'x1e',
2122
+ 'x2gd',
2123
+ 'x2idn',
2124
+ 'x2iedn',
2125
+ 'x2iezn',
2126
+ 'x4',
2127
+ 'x8g',
2128
+ 'z1d',
2129
+ 'z3'
2130
+ ]
2131
+ },
2132
+ description: 'Allowed values for `cfke.io/instance-family`.',
2133
+ default: []
2134
+ },
2135
+ 'topology.kubernetes.io/region': {
2136
+ type: 'array',
2137
+ items: {
2138
+ type: 'string',
2139
+ enum: [
2140
+ 'africa-south1',
2141
+ 'ap-northeast-1',
2142
+ 'ap-northeast-2',
2143
+ 'ap-northeast-3',
2144
+ 'ap-south-1',
2145
+ 'ap-southeast-1',
2146
+ 'ap-southeast-2',
2147
+ 'ash',
2148
+ 'asia-east1',
2149
+ 'asia-east2',
2150
+ 'asia-northeast1',
2151
+ 'asia-northeast2',
2152
+ 'asia-northeast3',
2153
+ 'asia-south1',
2154
+ 'asia-south2',
2155
+ 'asia-southeast1',
2156
+ 'asia-southeast2',
2157
+ 'australia-southeast1',
2158
+ 'australia-southeast2',
2159
+ 'ca-central-1',
2160
+ 'eu-central-1',
2161
+ 'eu-central-2',
2162
+ 'eu-north-1',
2163
+ 'eu-west-1',
2164
+ 'eu-west-2',
2165
+ 'eu-west-3',
2166
+ 'europe-central2',
2167
+ 'europe-north1',
2168
+ 'europe-southwest1',
2169
+ 'europe-west1',
2170
+ 'europe-west10',
2171
+ 'europe-west12',
2172
+ 'europe-west2',
2173
+ 'europe-west3',
2174
+ 'europe-west4',
2175
+ 'europe-west6',
2176
+ 'europe-west8',
2177
+ 'europe-west9',
2178
+ 'fsn1',
2179
+ 'hel1',
2180
+ 'hil',
2181
+ 'me-central1',
2182
+ 'me-central2',
2183
+ 'me-west1',
2184
+ 'nbg1',
2185
+ 'northamerica-northeast1',
2186
+ 'northamerica-northeast2',
2187
+ 'sa-east-1',
2188
+ 'sin',
2189
+ 'southamerica-east1',
2190
+ 'southamerica-west1',
2191
+ 'us-central1',
2192
+ 'us-east-1',
2193
+ 'us-east-2',
2194
+ 'us-east1',
2195
+ 'us-east4',
2196
+ 'us-east5',
2197
+ 'us-south1',
2198
+ 'us-west-1',
2199
+ 'us-west-2',
2200
+ 'us-west1',
2201
+ 'us-west2',
2202
+ 'us-west3',
2203
+ 'us-west4'
2204
+ ]
2205
+ },
2206
+ description: 'Allowed values for `topology.kubernetes.io/region`.',
2207
+ default: []
2208
+ }
2209
+ },
2210
+ additionalProperties: false,
2211
+ 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.',
2212
+ default: {
2213
+ 'karpenter.sh/capacity-type': [
2214
+ 'on-demand',
2215
+ 'spot'
2216
+ ],
2217
+ 'kubernetes.io/arch': [
2218
+ 'amd64'
2219
+ ],
2220
+ 'cfke.io/instance-family': [],
2221
+ 'topology.kubernetes.io/region': []
2222
+ }
2223
+ },
2224
+ scalingProfile: {
2225
+ type: 'string',
2226
+ 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`).',
2227
+ default: 'conservative',
2228
+ example: 'conservative',
2229
+ enum: [
2230
+ 'aggressive',
2231
+ 'conservative'
2232
+ ]
2233
+ },
2234
+ taints: {
2235
+ type: 'array',
2236
+ items: {
2237
+ type: 'object',
2238
+ properties: {
2239
+ key: {
2240
+ type: 'string',
2241
+ description: 'Taint key: a Kubernetes qualified name with an optional DNS subdomain prefix. Keys under `node.kubernetes.io`, `node.cloudprovider.kubernetes.io`, `node.cilium.io`, `karpenter.sh` and `cfke.io` (and their subdomains) are reserved.',
2242
+ example: 'dedicated'
2243
+ },
2244
+ value: {
2245
+ type: 'string',
2246
+ maxLength: 63,
2247
+ pattern: '^([A-Za-z0-9]([-A-Za-z0-9_.]*[A-Za-z0-9])?)?$',
2248
+ description: 'Taint value. Optional.',
2249
+ example: 'ci'
2250
+ },
2251
+ effect: {
2252
+ type: 'string',
2253
+ description: 'Taint effect.',
2254
+ example: 'NoSchedule',
2255
+ enum: [
2256
+ 'NoSchedule',
2257
+ 'PreferNoSchedule',
2258
+ 'NoExecute'
2259
+ ]
2260
+ }
2261
+ },
2262
+ required: [
2263
+ 'key',
2264
+ 'effect'
2265
+ ],
2266
+ additionalProperties: false
2267
+ },
2268
+ maxItems: 50,
2269
+ description: 'Taints applied to every node the fleet provisions, so only pods that tolerate them schedule there. Each key and effect pair may appear once. Full-overwrite: omit to remove all taints.',
2270
+ default: []
2271
+ }
2272
+ },
2273
+ additionalProperties: false,
2274
+ description: 'Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.'
2275
+ };
2276
+ export const InviteCreateInputSchema = {
2277
+ type: 'object',
2278
+ properties: {
2279
+ email: {
2280
+ type: 'string',
2281
+ format: 'email',
2282
+ description: 'Email address of the user to invite.',
2283
+ example: 'email@example.com'
2284
+ },
2285
+ role: {
2286
+ type: 'string',
2287
+ description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
2288
+ default: 'User',
2289
+ example: 'User',
2290
+ enum: [
2291
+ 'Administrator',
2292
+ 'User'
2293
+ ]
754
2294
  }
755
2295
  },
2296
+ required: [
2297
+ 'email'
2298
+ ],
756
2299
  additionalProperties: false
757
2300
  };
758
2301
  export const InviteSchema = {
@@ -785,453 +2328,409 @@ export const InviteSchema = {
785
2328
  type: 'string',
786
2329
  description: 'Generated unique invite code.',
787
2330
  example: '7kUZnH7nnKUFfvc4NK2KQF'
2331
+ },
2332
+ role: {
2333
+ type: 'string',
2334
+ description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
2335
+ default: 'User',
2336
+ example: 'User',
2337
+ enum: [
2338
+ 'Administrator',
2339
+ 'User'
2340
+ ]
788
2341
  }
789
2342
  },
790
- required: ['date_created'],
2343
+ required: [
2344
+ 'date_created'
2345
+ ],
791
2346
  additionalProperties: false
792
2347
  };
793
- export const InvoiceSchema = {
2348
+ export const InvoicePaymentAttemptSchema = {
794
2349
  type: 'object',
795
2350
  properties: {
796
- id: {
797
- type: 'string',
798
- format: 'uuid',
799
- description: 'Unique identifier of the invoice. UUID v4 string in canonical form',
800
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
801
- },
802
- organizationId: {
2351
+ invoice_id: {
803
2352
  type: 'string',
804
- format: 'uuid',
805
- description: 'Unique identifier of the organization. UUID v4 string in canonical form',
806
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
2353
+ description: 'Identifier of the invoice.',
2354
+ example: 'in_1234567890xCrwxghOTj1234'
807
2355
  },
808
- status: {
2356
+ number: {
809
2357
  type: 'string',
810
- description: 'Status of the invoice',
811
- example: 'DRAFT',
812
- enum: ['DRAFT', 'COMMITTED', 'VOID']
2358
+ nullable: true,
2359
+ description: 'Invoice number. Null if the invoice has no number.',
2360
+ example: 'CF-0042'
813
2361
  },
814
2362
  amount: {
815
2363
  type: 'number',
816
2364
  format: 'float',
817
- description: 'Total amount of the invoice',
818
- example: 100
2365
+ description: 'Amount outstanding when the charge was attempted, in the smallest currency unit.',
2366
+ example: 4200
819
2367
  },
820
2368
  currency: {
821
2369
  type: 'string',
822
- description: 'Currency of the invoice',
823
- example: 'USD',
824
- 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']
825
- },
826
- creditAdj: {
827
- type: 'number',
828
- format: 'float',
829
- description: 'Total amount of credit adjustments',
830
- example: 0
2370
+ description: 'Currency of the invoice.',
2371
+ example: 'eur'
831
2372
  },
832
- refundAdj: {
833
- type: 'number',
834
- format: 'float',
835
- description: 'Total amount of refund adjustments',
836
- example: 0
837
- },
838
- invoiceDate: {
2373
+ status: {
839
2374
  type: 'string',
840
- description: 'Date of the invoice',
841
- example: '2019-01-01T00:00:00.000Z'
2375
+ description: 'Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).',
2376
+ example: 'paid',
2377
+ enum: [
2378
+ 'paid',
2379
+ 'processing',
2380
+ 'requires_action',
2381
+ 'failed'
2382
+ ]
842
2383
  },
843
- targetDate: {
2384
+ client_secret: {
844
2385
  type: 'string',
845
- description: 'Target date of the invoice',
846
- example: '2019-01-01T00:00:00.000Z'
2386
+ nullable: true,
2387
+ description: 'Client secret used to complete customer authentication. Set only when `status` is `requires_action`.',
2388
+ example: 'pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH'
847
2389
  },
848
- invoiceNumber: {
2390
+ failure_code: {
849
2391
  type: 'string',
850
- description: 'Number of the invoice',
851
- example: 'INV-0001'
2392
+ nullable: true,
2393
+ description: 'Decline code. Set only when `status` is `failed`.',
2394
+ example: 'insufficient_funds'
852
2395
  },
853
- balance: {
854
- type: 'number',
855
- format: 'float',
856
- description: 'Balance of the invoice',
857
- example: 100
2396
+ failure_message: {
2397
+ type: 'string',
2398
+ nullable: true,
2399
+ description: 'Explanation of the decline, suitable for display. Set only when `status` is `failed`.',
2400
+ example: 'Your card has insufficient funds.'
2401
+ }
2402
+ },
2403
+ required: [
2404
+ 'invoice_id',
2405
+ 'number',
2406
+ 'amount',
2407
+ 'currency',
2408
+ 'status',
2409
+ 'client_secret',
2410
+ 'failure_code',
2411
+ 'failure_message'
2412
+ ],
2413
+ additionalProperties: false
2414
+ };
2415
+ export const InvoicePaymentResultSchema = {
2416
+ type: 'object',
2417
+ properties: {
2418
+ code: {
2419
+ type: 'string',
2420
+ description: 'Overall outcome: `paid` (nothing outstanding), `processing` (all accepted, not yet settled), `action_required` (one or more await customer authentication), `partially_paid`, `failed`, `nothing_due`, or `bank_transfer_due` (the organization pays by bank transfer; nothing was charged).',
2421
+ example: 'partially_paid',
2422
+ enum: [
2423
+ 'paid',
2424
+ 'processing',
2425
+ 'action_required',
2426
+ 'partially_paid',
2427
+ 'failed',
2428
+ 'nothing_due',
2429
+ 'bank_transfer_due'
2430
+ ]
858
2431
  },
859
- bundleKeys: {
2432
+ message: {
860
2433
  type: 'string',
861
- description: 'Bundle keys of the invoice',
862
- example: 'bundleKey1,bundleKey2'
2434
+ description: 'Summary of the outcome, suitable for display.',
2435
+ example: '1 of 2 open invoices was paid. Invoice CF-0043 was declined: Your card has insufficient funds.'
863
2436
  },
864
- credits: {
2437
+ results: {
865
2438
  type: 'array',
866
2439
  items: {
867
2440
  type: 'object',
868
2441
  properties: {
869
- id: {
870
- type: 'string',
871
- format: 'uuid',
872
- description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
873
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
874
- },
875
- linkedInvoiceItemId: {
876
- type: 'string',
877
- format: 'uuid',
878
- description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
879
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
880
- },
881
- productName: {
2442
+ invoice_id: {
882
2443
  type: 'string',
883
- description: 'Name of the product',
884
- example: 'Research team'
2444
+ description: 'Identifier of the invoice.',
2445
+ example: 'in_1234567890xCrwxghOTj1234'
885
2446
  },
886
- planName: {
2447
+ number: {
887
2448
  type: 'string',
888
- description: 'Name of the plan',
889
- example: 'Plan A'
890
- },
891
- phaseName: {
892
- type: 'string',
893
- description: 'Name of the phase',
894
- example: 'Phase A'
895
- },
896
- usageName: {
897
- type: 'string',
898
- description: 'Name of the usage',
899
- example: 'Usage A'
900
- },
901
- prettyProductName: {
902
- type: 'string',
903
- description: 'Pretty name of the product',
904
- example: 'Research team'
905
- },
906
- prettyPlanName: {
907
- type: 'string',
908
- description: 'Pretty name of the plan',
909
- example: 'Plan A'
910
- },
911
- prettyPhaseName: {
912
- type: 'string',
913
- description: 'Pretty name of the phase',
914
- example: 'Phase A'
915
- },
916
- prettyUsageName: {
917
- type: 'string',
918
- description: 'Pretty name of the usage',
919
- example: 'Usage A'
920
- },
921
- itemType: {
922
- type: 'string',
923
- description: 'Type of the invoice item',
924
- example: 'EXTERNAL_CHARGE',
925
- enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
926
- },
927
- description: {
928
- type: 'string',
929
- description: 'Description of the invoice item',
930
- example: 'Description of the invoice item'
931
- },
932
- startDate: {
933
- type: 'string',
934
- description: 'Start date of the invoice item',
935
- example: '2019-01-01T00:00:00.000Z'
936
- },
937
- endDate: {
938
- type: 'string',
939
- description: 'End date of the invoice item',
940
- example: '2019-01-01T00:00:00.000Z'
2449
+ description: 'Invoice number. Null if the invoice has no number.',
2450
+ example: 'CF-0042'
941
2451
  },
942
2452
  amount: {
943
2453
  type: 'number',
944
2454
  format: 'float',
945
- description: 'Amount of the invoice item',
946
- example: 100
947
- },
948
- rate: {
949
- type: 'number',
950
- format: 'float',
951
- description: 'Rate of the invoice item',
952
- example: 100
2455
+ description: 'Amount outstanding when the charge was attempted, in the smallest currency unit.',
2456
+ example: 4200
953
2457
  },
954
2458
  currency: {
955
2459
  type: 'string',
956
- description: 'Currency of the invoice item',
957
- example: 'USD',
958
- 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']
2460
+ description: 'Currency of the invoice.',
2461
+ example: 'eur'
959
2462
  },
960
- quantity: {
961
- type: 'number',
962
- format: 'float',
963
- description: 'Quantity of the invoice item',
964
- example: 1
2463
+ status: {
2464
+ type: 'string',
2465
+ description: 'Outcome for this invoice: `paid`, `processing` (accepted, not yet settled), `requires_action` (awaiting customer authentication), or `failed` (declined).',
2466
+ example: 'paid',
2467
+ enum: [
2468
+ 'paid',
2469
+ 'processing',
2470
+ 'requires_action',
2471
+ 'failed'
2472
+ ]
965
2473
  },
966
- itemDetails: {
2474
+ client_secret: {
967
2475
  type: 'string',
968
- description: 'Details of the invoice item',
969
- example: 'Details of the invoice item'
2476
+ description: 'Client secret used to complete customer authentication. Set only when `status` is `requires_action`.',
2477
+ example: 'pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH'
970
2478
  },
971
- catalogEffectiveDate: {
2479
+ failure_code: {
972
2480
  type: 'string',
973
- description: 'Effective date of the catalog',
974
- example: '2019-01-01T00:00:00.000Z'
2481
+ description: 'Decline code. Set only when `status` is `failed`.',
2482
+ example: 'insufficient_funds'
975
2483
  },
976
- childItems: {
977
- type: 'array',
978
- items: {
979
- oneOf: [
980
- {
981
- type: 'array'
982
- },
983
- {
984
- type: 'boolean'
985
- },
986
- {
987
- type: 'number'
988
- },
989
- {
990
- type: 'object',
991
- additionalProperties: true
992
- },
993
- {
994
- type: 'string'
995
- }
996
- ]
997
- },
998
- description: 'Child items of the invoice item'
2484
+ failure_message: {
2485
+ type: 'string',
2486
+ description: 'Explanation of the decline, suitable for display. Set only when `status` is `failed`.',
2487
+ example: 'Your card has insufficient funds.'
999
2488
  }
1000
2489
  },
2490
+ required: [
2491
+ 'invoice_id',
2492
+ 'number',
2493
+ 'amount',
2494
+ 'currency',
2495
+ 'status',
2496
+ 'client_secret',
2497
+ 'failure_code',
2498
+ 'failure_message'
2499
+ ],
1001
2500
  additionalProperties: false
1002
2501
  },
1003
- description: 'Credits of the invoice'
2502
+ description: 'One entry per invoice charged, oldest first.'
2503
+ }
2504
+ },
2505
+ required: [
2506
+ 'code',
2507
+ 'message',
2508
+ 'results'
2509
+ ],
2510
+ additionalProperties: false
2511
+ };
2512
+ export const InvoiceSchema = {
2513
+ type: 'object',
2514
+ properties: {
2515
+ id: {
2516
+ type: 'string',
2517
+ description: 'Unique identifier of the invoice.',
2518
+ example: 'in_1234567890xCrwxghOTj1234'
1004
2519
  },
1005
- items: {
1006
- type: 'array',
1007
- items: {
1008
- type: 'object',
1009
- properties: {
1010
- id: {
1011
- type: 'string',
1012
- format: 'uuid',
1013
- description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
1014
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
1015
- },
1016
- linkedInvoiceItemId: {
1017
- type: 'string',
1018
- format: 'uuid',
1019
- description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
1020
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
1021
- },
1022
- productName: {
1023
- type: 'string',
1024
- description: 'Name of the product',
1025
- example: 'Research team'
1026
- },
1027
- planName: {
1028
- type: 'string',
1029
- description: 'Name of the plan',
1030
- example: 'Plan A'
1031
- },
1032
- phaseName: {
1033
- type: 'string',
1034
- description: 'Name of the phase',
1035
- example: 'Phase A'
1036
- },
1037
- usageName: {
1038
- type: 'string',
1039
- description: 'Name of the usage',
1040
- example: 'Usage A'
1041
- },
1042
- prettyProductName: {
1043
- type: 'string',
1044
- description: 'Pretty name of the product',
1045
- example: 'Research team'
1046
- },
1047
- prettyPlanName: {
1048
- type: 'string',
1049
- description: 'Pretty name of the plan',
1050
- example: 'Plan A'
1051
- },
1052
- prettyPhaseName: {
1053
- type: 'string',
1054
- description: 'Pretty name of the phase',
1055
- example: 'Phase A'
1056
- },
1057
- prettyUsageName: {
1058
- type: 'string',
1059
- description: 'Pretty name of the usage',
1060
- example: 'Usage A'
1061
- },
1062
- itemType: {
1063
- type: 'string',
1064
- description: 'Type of the invoice item',
1065
- example: 'EXTERNAL_CHARGE',
1066
- enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
1067
- },
1068
- description: {
1069
- type: 'string',
1070
- description: 'Description of the invoice item',
1071
- example: 'Description of the invoice item'
1072
- },
1073
- startDate: {
1074
- type: 'string',
1075
- description: 'Start date of the invoice item',
1076
- example: '2019-01-01T00:00:00.000Z'
1077
- },
1078
- endDate: {
1079
- type: 'string',
1080
- description: 'End date of the invoice item',
1081
- example: '2019-01-01T00:00:00.000Z'
1082
- },
1083
- amount: {
1084
- type: 'number',
1085
- format: 'float',
1086
- description: 'Amount of the invoice item',
1087
- example: 100
1088
- },
1089
- rate: {
1090
- type: 'number',
1091
- format: 'float',
1092
- description: 'Rate of the invoice item',
1093
- example: 100
1094
- },
1095
- currency: {
1096
- type: 'string',
1097
- description: 'Currency of the invoice item',
1098
- example: 'USD',
1099
- 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']
1100
- },
1101
- quantity: {
1102
- type: 'number',
1103
- format: 'float',
1104
- description: 'Quantity of the invoice item',
1105
- example: 1
1106
- },
1107
- itemDetails: {
1108
- type: 'string',
1109
- description: 'Details of the invoice item',
1110
- example: 'Details of the invoice item'
1111
- },
1112
- catalogEffectiveDate: {
1113
- type: 'string',
1114
- description: 'Effective date of the catalog',
1115
- example: '2019-01-01T00:00:00.000Z'
1116
- },
1117
- childItems: {
1118
- type: 'array',
1119
- items: {
1120
- oneOf: [
1121
- {
1122
- type: 'array'
1123
- },
1124
- {
1125
- type: 'boolean'
1126
- },
1127
- {
1128
- type: 'number'
1129
- },
1130
- {
1131
- type: 'object',
1132
- additionalProperties: true
1133
- },
1134
- {
1135
- type: 'string'
1136
- }
1137
- ]
1138
- },
1139
- description: 'Child items of the invoice item'
1140
- }
1141
- },
1142
- additionalProperties: false
1143
- },
1144
- description: 'Items of the invoice'
2520
+ number: {
2521
+ type: 'string'
2522
+ },
2523
+ status: {
2524
+ type: 'string',
2525
+ description: 'Status of the invoice',
2526
+ example: 'paid'
2527
+ },
2528
+ total: {
2529
+ type: 'number',
2530
+ format: 'float',
2531
+ description: 'Total amount of the invoice',
2532
+ example: 100
2533
+ },
2534
+ currency: {
2535
+ type: 'string',
2536
+ description: 'Currency of the invoice',
2537
+ example: 'usd'
2538
+ },
2539
+ created: {
2540
+ type: 'string',
2541
+ format: 'date-time',
2542
+ description: 'Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.',
2543
+ example: '2023-12-20T13:53:32.000Z'
2544
+ },
2545
+ period_start: {
2546
+ type: 'string',
2547
+ format: 'date-time',
2548
+ description: 'Billing period start timestamp. ISO 8601 date string in the UTC timezone.',
2549
+ example: '2023-12-20T13:53:32.000Z'
2550
+ },
2551
+ period_end: {
2552
+ type: 'string',
2553
+ format: 'date-time',
2554
+ description: 'Billing period end timestamp. ISO 8601 date string in the UTC timezone.',
2555
+ example: '2023-12-20T13:53:32.000Z'
2556
+ },
2557
+ invoice_pdf: {
2558
+ type: 'string'
1145
2559
  }
1146
2560
  },
2561
+ required: [
2562
+ 'created',
2563
+ 'period_start',
2564
+ 'period_end'
2565
+ ],
1147
2566
  additionalProperties: false
1148
2567
  };
1149
- export const MarketplaceListingSchema = {
2568
+ export const MarketplaceListingFilesSchema = {
1150
2569
  type: 'object',
1151
2570
  properties: {
1152
- id: {
1153
- type: 'string',
1154
- maxLength: 63,
1155
- minLength: 1,
1156
- pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
1157
- description: 'Id of the chart listing',
1158
- example: 'portworx-enterprise-disaster-recovery-baremetal'
1159
- },
1160
- name: {
2571
+ chartYaml: {
1161
2572
  type: 'string',
1162
- description: 'Name of the chart listing',
1163
- example: 'Portworx Enterprise + Disaster Recovery - Baremetal'
1164
- },
1165
- developer: {
1166
- type: 'string',
1167
- description: 'Author of the chart listing',
1168
- example: 'Portworx'
2573
+ description: 'Raw Chart.yaml content from the Helm chart',
2574
+ example: 'apiVersion: v2\nname: nginx-ingress\nversion: 1.18.2-cfke.45\nappVersion: 1.9.4'
1169
2575
  },
1170
- description: {
2576
+ valuesYaml: {
1171
2577
  type: 'string',
1172
- description: 'Short description of the chart listing',
1173
- example: 'Run Kubernetes with unmatched scalability, availability, and self-service access to any storage'
2578
+ description: 'Raw values.yaml content from the Helm chart',
2579
+ example: 'replicaCount: 1\nimage:\n repository: nginx\n tag: latest'
1174
2580
  },
1175
- logoUrl: {
2581
+ valuesSchemaJson: {
1176
2582
  type: 'string',
1177
- description: 'Logo of the chart listing',
1178
- example: 'https://portworx.com/wp-content/themes/portworx/assets/images/header/portworx-logo.png'
1179
- },
1180
- longDescription: {
2583
+ description: 'JSON schema for values.yaml as a string',
2584
+ example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
2585
+ }
2586
+ },
2587
+ additionalProperties: false
2588
+ };
2589
+ export const MarketplaceListingSchema = {
2590
+ type: 'object',
2591
+ properties: {
2592
+ name: {
1181
2593
  type: 'string',
1182
- description: 'Long description of the chart listing',
1183
- example: 'Portworx-Enterprise is the complete multi-cloud ready Kubernetes storage platform for running mission-critical apps in production....'
2594
+ description: 'Name of the chart',
2595
+ example: 'nginx-ingress'
1184
2596
  },
1185
- categories: {
2597
+ versions: {
1186
2598
  type: 'array',
1187
2599
  items: {
1188
2600
  type: 'string',
1189
- example: 'AI & Machine Learning'
2601
+ 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-]+)*))?$',
2602
+ description: 'Specific version of the chart',
2603
+ example: '1.18.2-cfke.45'
1190
2604
  },
1191
- description: 'Tags of the chart'
2605
+ description: 'Available versions of the chart'
1192
2606
  },
1193
2607
  version_channels: {
1194
2608
  type: 'array',
1195
2609
  items: {
1196
2610
  type: 'string',
1197
2611
  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-]+)*))?$',
1198
- description: 'Version of the chart.',
1199
- example: '2.x.x-cfke.x'
1200
- }
2612
+ description: 'Version channel pattern',
2613
+ example: '1.18.x-cfke.x'
2614
+ },
2615
+ description: 'Version channels for the chart'
1201
2616
  },
1202
- value_schemas: {
1203
- type: 'array',
1204
- items: {
1205
- type: 'object',
1206
- properties: {
1207
- version: {
1208
- type: 'string',
1209
- 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-]+)*))?$',
1210
- description: 'Version of the chart.',
1211
- example: '2.1.1-cfke.123'
2617
+ latestVersion: {
2618
+ type: 'string',
2619
+ description: 'Latest version of the chart',
2620
+ example: '1.18.2-cfke.45'
2621
+ },
2622
+ metadata: {
2623
+ type: 'object',
2624
+ properties: {
2625
+ name: {
2626
+ type: 'string',
2627
+ description: 'Chart name from metadata',
2628
+ example: 'nginx-ingress'
2629
+ },
2630
+ version: {
2631
+ type: 'string',
2632
+ description: 'Chart version from metadata',
2633
+ example: '1.18.2-cfke.45'
2634
+ },
2635
+ description: {
2636
+ type: 'string',
2637
+ description: 'Chart description',
2638
+ example: 'NGINX Ingress Controller for Kubernetes'
2639
+ },
2640
+ appVersion: {
2641
+ type: 'string',
2642
+ description: 'Application version',
2643
+ example: '1.9.4'
2644
+ },
2645
+ apiVersion: {
2646
+ type: 'string',
2647
+ description: 'Helm API version',
2648
+ example: 'v2'
2649
+ },
2650
+ keywords: {
2651
+ type: 'array',
2652
+ items: {
2653
+ type: 'string'
1212
2654
  },
1213
- schema: {
1214
- type: 'string',
1215
- description: 'Schema of the chart values. JSON Schema as string'
2655
+ description: 'Chart keywords',
2656
+ example: [
2657
+ 'ingress',
2658
+ 'nginx',
2659
+ 'load-balancer'
2660
+ ]
2661
+ },
2662
+ home: {
2663
+ type: 'string',
2664
+ description: 'Chart home URL',
2665
+ example: 'https://kubernetes.github.io/ingress-nginx/'
2666
+ },
2667
+ icon: {
2668
+ type: 'string',
2669
+ description: 'A URL to an SVG or PNG image to be used as an icon',
2670
+ example: 'https://cloudfleet.ai/images/marketplace/icons/ingress-nginx.png'
2671
+ },
2672
+ sources: {
2673
+ type: 'array',
2674
+ items: {
2675
+ type: 'string'
1216
2676
  },
1217
- placeholder: {
1218
- type: 'string',
1219
- description: 'Schema of the chart values',
1220
- example: `foo: 1
1221
- bar: example`
1222
- }
2677
+ description: 'Chart source URLs',
2678
+ example: [
2679
+ 'https://github.com/kubernetes/ingress-nginx'
2680
+ ]
1223
2681
  },
1224
- required: ['version', 'schema', 'placeholder'],
1225
- additionalProperties: false
1226
- }
2682
+ maintainers: {
2683
+ type: 'array',
2684
+ items: {
2685
+ type: 'object',
2686
+ properties: {
2687
+ name: {
2688
+ type: 'string',
2689
+ description: 'Maintainer name',
2690
+ example: 'NGINX Team'
2691
+ },
2692
+ email: {
2693
+ type: 'string',
2694
+ description: 'Maintainer email',
2695
+ example: 'support@nginx.org'
2696
+ }
2697
+ },
2698
+ required: [
2699
+ 'name'
2700
+ ],
2701
+ additionalProperties: false
2702
+ },
2703
+ description: 'Chart maintainers'
2704
+ }
2705
+ },
2706
+ required: [
2707
+ 'name',
2708
+ 'version'
2709
+ ],
2710
+ additionalProperties: false,
2711
+ description: 'Chart metadata'
1227
2712
  }
1228
2713
  },
1229
- required: ['id', 'name', 'developer', 'description', 'logoUrl', 'longDescription', 'categories', 'version_channels', 'value_schemas'],
2714
+ required: [
2715
+ 'name',
2716
+ 'versions',
2717
+ 'version_channels',
2718
+ 'latestVersion'
2719
+ ],
1230
2720
  additionalProperties: false
1231
2721
  };
1232
2722
  export const OrganizationCreateInputSchema = {
1233
2723
  type: 'object',
1234
2724
  properties: {
2725
+ type: {
2726
+ type: 'string',
2727
+ description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
2728
+ example: 'business',
2729
+ enum: [
2730
+ 'business',
2731
+ 'personal'
2732
+ ]
2733
+ },
1235
2734
  email: {
1236
2735
  type: 'string',
1237
2736
  format: 'email',
@@ -1240,11 +2739,13 @@ export const OrganizationCreateInputSchema = {
1240
2739
  },
1241
2740
  first_name: {
1242
2741
  type: 'string',
2742
+ minLength: 1,
1243
2743
  description: 'First name of the billing contact person.',
1244
2744
  example: 'John'
1245
2745
  },
1246
2746
  last_name: {
1247
2747
  type: 'string',
2748
+ minLength: 1,
1248
2749
  description: 'Last name of the billing contact person.',
1249
2750
  example: 'Doe'
1250
2751
  },
@@ -1262,7 +2763,28 @@ export const OrganizationCreateInputSchema = {
1262
2763
  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.'
1263
2764
  }
1264
2765
  },
1265
- required: ['email', 'first_name', 'last_name', 'company_name', 'password'],
2766
+ required: [
2767
+ 'type',
2768
+ 'email',
2769
+ 'first_name',
2770
+ 'last_name',
2771
+ 'company_name',
2772
+ 'password'
2773
+ ],
2774
+ additionalProperties: false
2775
+ };
2776
+ export const OrganizationCreateOutputSchema = {
2777
+ type: 'object',
2778
+ properties: {
2779
+ id: {
2780
+ type: 'string',
2781
+ description: 'Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.',
2782
+ example: 'organization-id'
2783
+ }
2784
+ },
2785
+ required: [
2786
+ 'id'
2787
+ ],
1266
2788
  additionalProperties: false
1267
2789
  };
1268
2790
  export const OrganizationSchema = {
@@ -1281,6 +2803,15 @@ export const OrganizationSchema = {
1281
2803
  description: 'Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.',
1282
2804
  example: 'ACME Corp.'
1283
2805
  },
2806
+ type: {
2807
+ type: 'string',
2808
+ description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
2809
+ example: 'business',
2810
+ enum: [
2811
+ 'business',
2812
+ 'personal'
2813
+ ]
2814
+ },
1284
2815
  date_created: {
1285
2816
  type: 'string',
1286
2817
  format: 'date-time',
@@ -1312,123 +2843,980 @@ export const OrganizationSchema = {
1312
2843
  description: 'Available number of Pro clusters that can be created.',
1313
2844
  example: 999
1314
2845
  },
1315
- fleets_max: {
2846
+ enterprise_clusters_max: {
1316
2847
  type: 'integer',
1317
2848
  minimum: 0,
1318
- description: 'Maximum number of fleets that can be created per cluster.',
2849
+ description: 'Maximum number of Enterprise clusters that can be created.',
1319
2850
  example: 999
1320
2851
  },
1321
- managed_fleets_cpu_max: {
2852
+ enterprise_clusters_available: {
2853
+ type: 'integer',
2854
+ description: 'Available number of Enterprise clusters that can be created.',
2855
+ example: 999
2856
+ },
2857
+ fleets_max: {
1322
2858
  type: 'integer',
1323
2859
  minimum: 0,
1324
- description: 'Maximum number of CPU cores per managed fleet.',
2860
+ description: 'Maximum number of fleets that can be created per cluster.',
1325
2861
  example: 999
1326
2862
  },
1327
2863
  cluster_tiers: {
1328
2864
  type: 'array',
1329
2865
  items: {
1330
2866
  type: 'string',
1331
- example: 'basic'
2867
+ example: 'basic'
2868
+ },
2869
+ minItems: 0,
2870
+ description: 'List of Cloudfleet cluster tiers available for the organization.'
2871
+ },
2872
+ regions: {
2873
+ type: 'array',
2874
+ items: {
2875
+ type: 'string',
2876
+ example: 'northamerica-central-1a'
2877
+ },
2878
+ minItems: 1,
2879
+ description: 'List of Cloudfleet control plane regions available for the organization.'
2880
+ },
2881
+ versions: {
2882
+ type: 'array',
2883
+ items: {
2884
+ type: 'object',
2885
+ properties: {
2886
+ id: {
2887
+ type: 'string',
2888
+ description: 'Id of the control plane version. Used in API calls.',
2889
+ example: '1.33.x-cfke.x'
2890
+ },
2891
+ label: {
2892
+ type: 'string',
2893
+ description: 'Label of the control plane version. Used in frontent UI.',
2894
+ example: '1.33.x (Always latest 1.33 patch version)'
2895
+ }
2896
+ },
2897
+ required: [
2898
+ 'id',
2899
+ 'label'
2900
+ ],
2901
+ additionalProperties: false
2902
+ },
2903
+ minItems: 1,
2904
+ description: 'List of CFKE control plane versions available for the organization.'
2905
+ },
2906
+ cfcr_storage_gb: {
2907
+ type: 'integer',
2908
+ minimum: -1,
2909
+ description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
2910
+ example: 500
2911
+ }
2912
+ },
2913
+ required: [
2914
+ 'basic_clusters_max',
2915
+ 'basic_clusters_available',
2916
+ 'pro_clusters_max',
2917
+ 'pro_clusters_available',
2918
+ 'enterprise_clusters_max',
2919
+ 'enterprise_clusters_available',
2920
+ 'fleets_max',
2921
+ 'cluster_tiers',
2922
+ 'regions',
2923
+ 'versions',
2924
+ 'cfcr_storage_gb'
2925
+ ],
2926
+ additionalProperties: false,
2927
+ 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.'
2928
+ },
2929
+ status: {
2930
+ type: 'string',
2931
+ description: 'Status of the organization. Can be `active` or `closed`, or `suspended`.',
2932
+ enum: [
2933
+ 'active',
2934
+ 'closed',
2935
+ 'suspended'
2936
+ ]
2937
+ },
2938
+ verification: {
2939
+ type: 'string',
2940
+ 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.',
2941
+ example: 'verified',
2942
+ enum: [
2943
+ 'none',
2944
+ 'submitted',
2945
+ 'verified'
2946
+ ]
2947
+ }
2948
+ },
2949
+ required: [
2950
+ 'id',
2951
+ 'type',
2952
+ 'date_created',
2953
+ 'quota',
2954
+ 'status',
2955
+ 'verification'
2956
+ ],
2957
+ additionalProperties: false
2958
+ };
2959
+ export const PaymentMethodSchema = {
2960
+ type: 'object',
2961
+ properties: {
2962
+ id: {
2963
+ type: 'string',
2964
+ 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.',
2965
+ example: 'pm_1MtwBwLkdIwHu7ix28a3tqPa'
2966
+ },
2967
+ type: {
2968
+ type: 'string',
2969
+ description: 'Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.',
2970
+ example: 'card',
2971
+ enum: [
2972
+ 'card',
2973
+ 'sepa_debit',
2974
+ 'bank_transfer'
2975
+ ]
2976
+ },
2977
+ last4: {
2978
+ type: 'string',
2979
+ nullable: true,
2980
+ 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.',
2981
+ example: '4242'
2982
+ },
2983
+ exp_month: {
2984
+ type: 'integer',
2985
+ minimum: 1,
2986
+ maximum: 12,
2987
+ nullable: true,
2988
+ description: 'Two-digit number representing the card\'s expiration month. Null for SEPA Direct Debit and bank transfer.',
2989
+ example: 12
2990
+ },
2991
+ exp_year: {
2992
+ type: 'integer',
2993
+ nullable: true,
2994
+ 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.',
2995
+ example: 2028
2996
+ },
2997
+ brand: {
2998
+ type: 'string',
2999
+ nullable: true,
3000
+ 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.',
3001
+ example: 'visa'
3002
+ },
3003
+ iban: {
3004
+ type: 'string',
3005
+ nullable: true,
3006
+ 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.',
3007
+ example: 'DE11243015658023127510'
3008
+ },
3009
+ bic: {
3010
+ type: 'string',
3011
+ nullable: true,
3012
+ description: 'BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.',
3013
+ example: 'SOGEDEFFXXX'
3014
+ },
3015
+ account_holder_name: {
3016
+ type: 'string',
3017
+ nullable: true,
3018
+ description: 'Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.',
3019
+ example: 'Cloudfleet GmbH'
3020
+ },
3021
+ is_default: {
3022
+ type: 'boolean',
3023
+ 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).',
3024
+ example: true
3025
+ }
3026
+ },
3027
+ required: [
3028
+ 'id',
3029
+ 'type',
3030
+ 'last4',
3031
+ 'exp_month',
3032
+ 'exp_year',
3033
+ 'brand',
3034
+ 'iban',
3035
+ 'bic',
3036
+ 'account_holder_name',
3037
+ 'is_default'
3038
+ ],
3039
+ additionalProperties: false
3040
+ };
3041
+ export const PlatformQuotaSchema = {
3042
+ type: 'object',
3043
+ properties: {
3044
+ basic_clusters_max: {
3045
+ type: 'integer',
3046
+ minimum: 0,
3047
+ description: 'Maximum number of Basic clusters that can be created.',
3048
+ example: 999
3049
+ },
3050
+ basic_clusters_available: {
3051
+ type: 'integer',
3052
+ description: 'Available number of Basic clusters that can be created.',
3053
+ example: 999
3054
+ },
3055
+ pro_clusters_max: {
3056
+ type: 'integer',
3057
+ minimum: 0,
3058
+ description: 'Maximum number of Pro clusters that can be created.',
3059
+ example: 999
3060
+ },
3061
+ pro_clusters_available: {
3062
+ type: 'integer',
3063
+ description: 'Available number of Pro clusters that can be created.',
3064
+ example: 999
3065
+ },
3066
+ enterprise_clusters_max: {
3067
+ type: 'integer',
3068
+ minimum: 0,
3069
+ description: 'Maximum number of Enterprise clusters that can be created.',
3070
+ example: 999
3071
+ },
3072
+ enterprise_clusters_available: {
3073
+ type: 'integer',
3074
+ description: 'Available number of Enterprise clusters that can be created.',
3075
+ example: 999
3076
+ },
3077
+ fleets_max: {
3078
+ type: 'integer',
3079
+ minimum: 0,
3080
+ description: 'Maximum number of fleets that can be created per cluster.',
3081
+ example: 999
3082
+ },
3083
+ cluster_tiers: {
3084
+ type: 'array',
3085
+ items: {
3086
+ type: 'string',
3087
+ example: 'basic'
3088
+ },
3089
+ minItems: 0,
3090
+ description: 'List of Cloudfleet cluster tiers available for the organization.'
3091
+ },
3092
+ regions: {
3093
+ type: 'array',
3094
+ items: {
3095
+ type: 'string',
3096
+ example: 'northamerica-central-1a'
3097
+ },
3098
+ minItems: 1,
3099
+ description: 'List of Cloudfleet control plane regions available for the organization.'
3100
+ },
3101
+ versions: {
3102
+ type: 'array',
3103
+ items: {
3104
+ type: 'object',
3105
+ properties: {
3106
+ id: {
3107
+ type: 'string',
3108
+ description: 'Id of the control plane version. Used in API calls.',
3109
+ example: '1.33.x-cfke.x'
3110
+ },
3111
+ label: {
3112
+ type: 'string',
3113
+ description: 'Label of the control plane version. Used in frontent UI.',
3114
+ example: '1.33.x (Always latest 1.33 patch version)'
3115
+ }
3116
+ },
3117
+ required: [
3118
+ 'id',
3119
+ 'label'
3120
+ ],
3121
+ additionalProperties: false
3122
+ },
3123
+ minItems: 1,
3124
+ description: 'List of CFKE control plane versions available for the organization.'
3125
+ },
3126
+ cfcr_storage_gb: {
3127
+ type: 'integer',
3128
+ minimum: -1,
3129
+ description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
3130
+ example: 500
3131
+ }
3132
+ },
3133
+ required: [
3134
+ 'basic_clusters_max',
3135
+ 'basic_clusters_available',
3136
+ 'pro_clusters_max',
3137
+ 'pro_clusters_available',
3138
+ 'enterprise_clusters_max',
3139
+ 'enterprise_clusters_available',
3140
+ 'fleets_max',
3141
+ 'cluster_tiers',
3142
+ 'regions',
3143
+ 'versions',
3144
+ 'cfcr_storage_gb'
3145
+ ],
3146
+ additionalProperties: false
3147
+ };
3148
+ export const RegistryRepositorySchema = {
3149
+ type: 'object',
3150
+ properties: {
3151
+ name: {
3152
+ type: 'string',
3153
+ description: 'Repository name.',
3154
+ example: 'my-app'
3155
+ },
3156
+ region: {
3157
+ type: 'string',
3158
+ description: 'Registry region.',
3159
+ example: 'northamerica'
3160
+ },
3161
+ uri: {
3162
+ type: 'string',
3163
+ description: 'Full URI of the repository.',
3164
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
3165
+ }
3166
+ },
3167
+ required: [
3168
+ 'name',
3169
+ 'region',
3170
+ 'uri'
3171
+ ],
3172
+ additionalProperties: false
3173
+ };
3174
+ export const RegistryRepositoryWithTagsSchema = {
3175
+ type: 'object',
3176
+ properties: {
3177
+ name: {
3178
+ type: 'string',
3179
+ description: 'Repository name.',
3180
+ example: 'my-app'
3181
+ },
3182
+ region: {
3183
+ type: 'string',
3184
+ description: 'Registry region.',
3185
+ example: 'northamerica'
3186
+ },
3187
+ uri: {
3188
+ type: 'string',
3189
+ description: 'Full URI of the repository.',
3190
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
3191
+ },
3192
+ tags: {
3193
+ type: 'array',
3194
+ items: {
3195
+ type: 'object',
3196
+ properties: {
3197
+ name: {
3198
+ type: 'string',
3199
+ description: 'Tag name.',
3200
+ example: 'latest'
3201
+ },
3202
+ size: {
3203
+ type: 'number',
3204
+ format: 'float',
3205
+ description: 'Size of the tag in bytes.',
3206
+ example: 123456789
3207
+ },
3208
+ mediaType: {
3209
+ type: 'string',
3210
+ description: 'Media type of the manifest.',
3211
+ example: 'application/vnd.docker.distribution.manifest.v2+json'
3212
+ },
3213
+ platforms: {
3214
+ type: 'array',
3215
+ items: {
3216
+ type: 'string'
3217
+ },
3218
+ description: 'Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).',
3219
+ example: [
3220
+ 'linux/amd64',
3221
+ 'linux/arm64'
3222
+ ]
3223
+ }
3224
+ },
3225
+ required: [
3226
+ 'name',
3227
+ 'size'
3228
+ ],
3229
+ additionalProperties: false
3230
+ },
3231
+ description: 'Array of tags in the repository.'
3232
+ },
3233
+ totalSize: {
3234
+ type: 'number',
3235
+ format: 'float',
3236
+ description: 'Total size of all tags in the repository in bytes.',
3237
+ example: 987654321
3238
+ }
3239
+ },
3240
+ required: [
3241
+ 'name',
3242
+ 'region',
3243
+ 'uri',
3244
+ 'tags',
3245
+ 'totalSize'
3246
+ ],
3247
+ additionalProperties: false
3248
+ };
3249
+ export const RegistryTagSchema = {
3250
+ type: 'object',
3251
+ properties: {
3252
+ name: {
3253
+ type: 'string',
3254
+ description: 'Tag name.',
3255
+ example: 'latest'
3256
+ },
3257
+ digest: {
3258
+ type: 'string',
3259
+ description: 'Manifest digest for pulling by digest.',
3260
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
3261
+ },
3262
+ mediaType: {
3263
+ type: 'string',
3264
+ description: 'Media type of the manifest.',
3265
+ example: 'application/vnd.docker.distribution.manifest.v2+json'
3266
+ },
3267
+ config: {
3268
+ type: 'object',
3269
+ properties: {
3270
+ size: {
3271
+ type: 'number',
3272
+ format: 'float',
3273
+ description: 'Size of the config in bytes.',
3274
+ example: 1234
3275
+ }
3276
+ },
3277
+ required: [
3278
+ 'size'
3279
+ ],
3280
+ additionalProperties: false,
3281
+ description: 'Manifest config metadata.'
3282
+ },
3283
+ layers: {
3284
+ type: 'array',
3285
+ items: {
3286
+ type: 'object',
3287
+ properties: {
3288
+ digest: {
3289
+ type: 'string',
3290
+ description: 'Digest of the layer.',
3291
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
3292
+ },
3293
+ size: {
3294
+ type: 'number',
3295
+ format: 'float',
3296
+ description: 'Size of the layer in bytes.',
3297
+ example: 5678
3298
+ }
3299
+ },
3300
+ required: [
3301
+ 'size'
3302
+ ],
3303
+ additionalProperties: false
3304
+ },
3305
+ description: 'Array of layer metadata.'
3306
+ },
3307
+ manifests: {
3308
+ type: 'array',
3309
+ items: {
3310
+ type: 'object',
3311
+ properties: {
3312
+ digest: {
3313
+ type: 'string',
3314
+ description: 'Digest of the manifest.',
3315
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
3316
+ },
3317
+ platform: {
3318
+ type: 'object',
3319
+ properties: {
3320
+ architecture: {
3321
+ type: 'string',
3322
+ description: 'Architecture of the platform.',
3323
+ example: 'amd64'
3324
+ },
3325
+ os: {
3326
+ type: 'string',
3327
+ description: 'Operating system of the platform.',
3328
+ example: 'linux'
3329
+ },
3330
+ variant: {
3331
+ type: 'string',
3332
+ description: 'Variant of the platform (e.g., v7, v8 for ARM).',
3333
+ example: 'v8'
3334
+ }
3335
+ },
3336
+ required: [
3337
+ 'architecture',
3338
+ 'os'
3339
+ ],
3340
+ additionalProperties: false,
3341
+ description: 'Platform information for the manifest.'
3342
+ },
3343
+ layers: {
3344
+ type: 'array',
3345
+ items: {
3346
+ type: 'object',
3347
+ properties: {
3348
+ digest: {
3349
+ type: 'string',
3350
+ description: 'Digest of the layer.',
3351
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
3352
+ },
3353
+ size: {
3354
+ type: 'number',
3355
+ format: 'float',
3356
+ description: 'Size of the layer in bytes.',
3357
+ example: 5678
3358
+ }
3359
+ },
3360
+ required: [
3361
+ 'size'
3362
+ ],
3363
+ additionalProperties: false
3364
+ },
3365
+ description: 'Layers for this platform.'
3366
+ },
3367
+ size: {
3368
+ type: 'number',
3369
+ format: 'float',
3370
+ description: 'Total size of this platform manifest in bytes.',
3371
+ example: 12345678
3372
+ }
3373
+ },
3374
+ required: [
3375
+ 'digest'
3376
+ ],
3377
+ additionalProperties: false
3378
+ },
3379
+ description: 'Array of manifests for multi-arch images.'
3380
+ },
3381
+ size: {
3382
+ type: 'number',
3383
+ format: 'float',
3384
+ description: 'Total size of the tag in bytes.',
3385
+ example: 123456789
3386
+ },
3387
+ region: {
3388
+ type: 'string',
3389
+ description: 'Registry region.',
3390
+ example: 'northamerica'
3391
+ },
3392
+ repository: {
3393
+ type: 'string',
3394
+ description: 'Repository name.',
3395
+ example: 'my-app'
3396
+ },
3397
+ uri: {
3398
+ type: 'string',
3399
+ description: 'Full URI of the tag.',
3400
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
3401
+ }
3402
+ },
3403
+ required: [
3404
+ 'name',
3405
+ 'digest',
3406
+ 'size',
3407
+ 'region',
3408
+ 'repository',
3409
+ 'uri'
3410
+ ],
3411
+ additionalProperties: false
3412
+ };
3413
+ export const RoadmapItemCreateInputSchema = {
3414
+ type: 'object',
3415
+ properties: {
3416
+ text: {
3417
+ type: 'string',
3418
+ maxLength: 500,
3419
+ minLength: 1,
3420
+ description: 'Your suggestion in one or two sentences. It is reviewed before it appears on the roadmap.',
3421
+ example: 'Support for ARM nodes on Hetzner.'
3422
+ }
3423
+ },
3424
+ required: [
3425
+ 'text'
3426
+ ],
3427
+ additionalProperties: false
3428
+ };
3429
+ export const RoadmapItemSchema = {
3430
+ type: 'object',
3431
+ properties: {
3432
+ id: {
3433
+ type: 'string',
3434
+ description: 'Unique identifier of the roadmap item (Mongo ObjectId).',
3435
+ example: '60c72b2f9f1b2c001f8e4d3a'
3436
+ },
3437
+ text: {
3438
+ type: 'string',
3439
+ description: 'Short description of the roadmap item.',
3440
+ example: 'Support for ARM nodes on Hetzner.'
3441
+ },
3442
+ vote: {
3443
+ type: 'integer',
3444
+ nullable: true,
3445
+ description: 'The caller\'s vote on this item: -1 (down), 1 (up), 2 (double up), or null if the caller has not voted.',
3446
+ example: 1,
3447
+ enum: [
3448
+ -1,
3449
+ 1,
3450
+ 2
3451
+ ]
3452
+ }
3453
+ },
3454
+ required: [
3455
+ 'id',
3456
+ 'text',
3457
+ 'vote'
3458
+ ],
3459
+ additionalProperties: false
3460
+ };
3461
+ export const RoadmapVoteInputSchema = {
3462
+ type: 'object',
3463
+ properties: {
3464
+ value: {
3465
+ type: 'integer',
3466
+ description: 'Vote value: -1 (down), 1 (up), or 2 (double up).',
3467
+ example: 1,
3468
+ enum: [
3469
+ -1,
3470
+ 1,
3471
+ 2
3472
+ ]
3473
+ }
3474
+ },
3475
+ required: [
3476
+ 'value'
3477
+ ],
3478
+ additionalProperties: false
3479
+ };
3480
+ export const TicketAttachmentSchema = {
3481
+ type: 'object',
3482
+ properties: {
3483
+ id: {
3484
+ type: 'string',
3485
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
3486
+ example: '60c72b2f9f1b2c001f8e4d3c'
3487
+ },
3488
+ filename: {
3489
+ type: 'string',
3490
+ description: 'Original filename as uploaded.',
3491
+ example: 'debug.log'
3492
+ },
3493
+ content_type: {
3494
+ type: 'string',
3495
+ description: 'MIME content type of the attachment.',
3496
+ example: 'text/plain'
3497
+ },
3498
+ size: {
3499
+ type: 'integer',
3500
+ description: 'Size of the attachment in bytes.',
3501
+ example: 12345
3502
+ }
3503
+ },
3504
+ required: [
3505
+ 'id',
3506
+ 'filename',
3507
+ 'content_type',
3508
+ 'size'
3509
+ ],
3510
+ additionalProperties: false
3511
+ };
3512
+ export const TicketCreateInputSchema = {
3513
+ type: 'object',
3514
+ properties: {
3515
+ category: {
3516
+ type: 'string',
3517
+ description: 'Ticket category. Drives auto-assignment and may carry a subcategory in `properties`.',
3518
+ example: 'technical',
3519
+ enum: [
3520
+ 'billing',
3521
+ 'technical',
3522
+ 'general'
3523
+ ]
3524
+ },
3525
+ body: {
3526
+ type: 'string',
3527
+ maxLength: 50000,
3528
+ minLength: 1,
3529
+ pattern: '\\S',
3530
+ description: 'Initial message body in markdown. There is no separate subject — the first message body is the description.',
3531
+ example: 'My cluster cannot reach the registry. Logs attached.'
3532
+ },
3533
+ properties: {
3534
+ type: 'object',
3535
+ additionalProperties: true,
3536
+ description: 'Free-form key/value bag set by the UI (e.g. `subcategory`, `cluster_id`, `cluster_name`, `region`).',
3537
+ example: {
3538
+ subcategory: 'cluster-question',
3539
+ cluster_id: '60c72b2f9f1b2c001f8e4d3a'
3540
+ }
3541
+ },
3542
+ grant_support_access: {
3543
+ type: 'boolean',
3544
+ description: 'Grant Cloudfleet support staff access to the organization\'s resources while the ticket is open. Access cannot be revoked; it ends when the ticket is closed.',
3545
+ example: true
3546
+ }
3547
+ },
3548
+ required: [
3549
+ 'category',
3550
+ 'body'
3551
+ ],
3552
+ additionalProperties: false
3553
+ };
3554
+ export const TicketMessageInputSchema = {
3555
+ type: 'object',
3556
+ properties: {
3557
+ body: {
3558
+ type: 'string',
3559
+ maxLength: 50000,
3560
+ minLength: 1,
3561
+ pattern: '\\S',
3562
+ description: 'Reply body in markdown.',
3563
+ example: 'Thanks — that resolved it on my side.'
3564
+ }
3565
+ },
3566
+ required: [
3567
+ 'body'
3568
+ ],
3569
+ additionalProperties: false
3570
+ };
3571
+ export const TicketMessageSchema = {
3572
+ type: 'object',
3573
+ properties: {
3574
+ id: {
3575
+ type: 'string',
3576
+ description: 'Unique identifier of the message (Mongo ObjectId).',
3577
+ example: '60c72b2f9f1b2c001f8e4d3b'
3578
+ },
3579
+ type: {
3580
+ type: 'string',
3581
+ description: 'Message type. Internal notes are filtered out of customer-facing responses.',
3582
+ example: 'customer_reply',
3583
+ enum: [
3584
+ 'customer_reply',
3585
+ 'agent_reply'
3586
+ ]
3587
+ },
3588
+ body: {
3589
+ type: 'string',
3590
+ description: 'Message body in markdown.',
3591
+ example: 'Thanks — that resolved it on my side.'
3592
+ },
3593
+ author_first_name: {
3594
+ type: 'string',
3595
+ nullable: true,
3596
+ description: 'First name of the author. Null when not provided.',
3597
+ example: 'Jane'
3598
+ },
3599
+ author_last_name: {
3600
+ type: 'string',
3601
+ nullable: true,
3602
+ description: 'Last name of the author. Null when not provided.',
3603
+ example: 'Doe'
3604
+ },
3605
+ attachments: {
3606
+ type: 'array',
3607
+ items: {
3608
+ type: 'object',
3609
+ properties: {
3610
+ id: {
3611
+ type: 'string',
3612
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
3613
+ example: '60c72b2f9f1b2c001f8e4d3c'
1332
3614
  },
1333
- minItems: 0,
1334
- description: 'List of Cloudfleet cluster tiers available for the organization.'
1335
- },
1336
- regions: {
1337
- type: 'array',
1338
- items: {
3615
+ filename: {
1339
3616
  type: 'string',
1340
- example: 'northamerica-central-1'
3617
+ description: 'Original filename as uploaded.',
3618
+ example: 'debug.log'
1341
3619
  },
1342
- minItems: 1,
1343
- description: 'List of Cloudfleet control plane regions available for the organization.'
1344
- },
1345
- versions: {
1346
- type: 'array',
1347
- items: {
1348
- type: 'object',
1349
- properties: {
1350
- id: {
1351
- type: 'string',
1352
- description: 'Id of the control plane version. Used in API calls.',
1353
- example: '1.29.x-cfke.x'
1354
- },
1355
- label: {
1356
- type: 'string',
1357
- description: 'Label of the control plane version. Used in frontent UI.',
1358
- example: '1.29.x (Always latest 1.29 patch version)'
1359
- }
1360
- },
1361
- required: ['id', 'label'],
1362
- additionalProperties: false
3620
+ content_type: {
3621
+ type: 'string',
3622
+ description: 'MIME content type of the attachment.',
3623
+ example: 'text/plain'
1363
3624
  },
1364
- minItems: 1,
1365
- description: 'List of CFKE control plane versions available for the organization.'
1366
- }
3625
+ size: {
3626
+ type: 'integer',
3627
+ description: 'Size of the attachment in bytes.',
3628
+ example: 12345
3629
+ }
3630
+ },
3631
+ required: [
3632
+ 'id',
3633
+ 'filename',
3634
+ 'content_type',
3635
+ 'size'
3636
+ ],
3637
+ additionalProperties: false
1367
3638
  },
1368
- required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'managed_fleets_cpu_max', 'cluster_tiers', 'regions', 'versions'],
1369
- additionalProperties: false,
1370
- 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.'
3639
+ description: 'Attachments associated with this message.',
3640
+ example: []
1371
3641
  },
1372
- status: {
3642
+ date_created: {
1373
3643
  type: 'string',
1374
- description: 'Status of the organization. Can be `active` or `closed`, or `suspended`.',
1375
- enum: ['active', 'closed', 'suspended']
3644
+ format: 'date-time',
3645
+ description: 'Creation date of the message. ISO 8601 UTC.',
3646
+ example: '2026-05-11T16:08:14.338Z'
1376
3647
  }
1377
3648
  },
1378
- required: ['id', 'date_created', 'quota', 'status'],
3649
+ required: [
3650
+ 'id',
3651
+ 'type',
3652
+ 'body',
3653
+ 'date_created'
3654
+ ],
1379
3655
  additionalProperties: false
1380
3656
  };
1381
- export const PaymentMethodSchema = {
3657
+ export const TicketSchema = {
1382
3658
  type: 'object',
1383
3659
  properties: {
1384
3660
  id: {
1385
3661
  type: 'string',
1386
- format: 'uuid',
1387
- description: 'Unique identifier of the organization. UUID v4 string in canonical form.',
1388
- example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
3662
+ description: 'Unique identifier of the ticket (Mongo ObjectId).',
3663
+ example: '60c72b2f9f1b2c001f8e4d3a'
3664
+ },
3665
+ status: {
3666
+ type: 'string',
3667
+ description: 'Current state of the ticket.',
3668
+ example: 'waiting_on_us',
3669
+ enum: [
3670
+ 'waiting_on_us',
3671
+ 'waiting_on_user',
3672
+ 'closed'
3673
+ ]
3674
+ },
3675
+ category: {
3676
+ type: 'string',
3677
+ description: 'Ticket category.',
3678
+ example: 'technical',
3679
+ enum: [
3680
+ 'billing',
3681
+ 'technical',
3682
+ 'general'
3683
+ ]
3684
+ },
3685
+ summary: {
3686
+ type: 'string',
3687
+ description: 'First 128 characters of the initial message body, with markdown formatting and newlines stripped. Used for ticket list previews.',
3688
+ example: 'My cluster cannot reach the registry. Logs attached.'
1389
3689
  },
1390
- setup: {
3690
+ support_access_granted: {
1391
3691
  type: 'boolean',
1392
- description: 'Whether organization payment method was set up and ready to use for payments.',
3692
+ description: 'Whether Cloudfleet support staff currently have access to the organization\'s resources. True once access is granted and until the ticket is closed.',
1393
3693
  example: true
1394
3694
  },
1395
- type: {
3695
+ support_access_granted_at: {
1396
3696
  type: 'string',
3697
+ format: 'date-time',
1397
3698
  nullable: true,
1398
- description: 'Payment method type type. Only `card` payments supported at the moment.',
1399
- example: 'card',
1400
- enum: ['card']
3699
+ description: 'When support access was granted. Null if it never was. Kept after the ticket is closed.',
3700
+ example: '2026-05-11T16:08:14.338Z'
1401
3701
  },
1402
- last4: {
3702
+ closed_at: {
1403
3703
  type: 'string',
3704
+ format: 'date-time',
1404
3705
  nullable: true,
1405
- description: 'Last 4 digits of the payment card number.',
1406
- example: '4242'
1407
- },
1408
- exp_month: {
1409
- type: 'integer',
1410
- minimum: 1,
1411
- maximum: 12,
1412
- nullable: true,
1413
- description: "Two-digit number representing the card's expiration month.",
1414
- example: '12'
3706
+ description: 'Closure timestamp. Null while the ticket is open.',
3707
+ example: '2026-05-18T16:08:14.338Z'
1415
3708
  },
1416
- exp_year: {
1417
- type: 'integer',
1418
- minimum: 2024,
1419
- nullable: true,
1420
- description: "Four-digit number representing the card's expiration year.",
1421
- example: '2028'
3709
+ date_created: {
3710
+ type: 'string',
3711
+ format: 'date-time',
3712
+ description: 'Creation date of the ticket. ISO 8601 UTC.',
3713
+ example: '2026-05-11T16:08:14.338Z'
1422
3714
  },
1423
- brand: {
3715
+ date_updated: {
1424
3716
  type: 'string',
1425
- nullable: true,
1426
- description: 'Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.',
1427
- example: 'visa',
1428
- enum: ['amex', 'diners', 'discover', 'eftpos_au', 'jcb', 'mastercard', 'unionpay', 'visa', 'unknown']
3717
+ format: 'date-time',
3718
+ description: 'Last update date of the ticket. ISO 8601 UTC.',
3719
+ example: '2026-05-11T16:08:14.338Z'
3720
+ },
3721
+ messages: {
3722
+ type: 'array',
3723
+ items: {
3724
+ type: 'object',
3725
+ properties: {
3726
+ id: {
3727
+ type: 'string',
3728
+ description: 'Unique identifier of the message (Mongo ObjectId).',
3729
+ example: '60c72b2f9f1b2c001f8e4d3b'
3730
+ },
3731
+ type: {
3732
+ type: 'string',
3733
+ description: 'Message type. Internal notes are filtered out of customer-facing responses.',
3734
+ example: 'customer_reply',
3735
+ enum: [
3736
+ 'customer_reply',
3737
+ 'agent_reply'
3738
+ ]
3739
+ },
3740
+ body: {
3741
+ type: 'string',
3742
+ description: 'Message body in markdown.',
3743
+ example: 'Thanks — that resolved it on my side.'
3744
+ },
3745
+ author_first_name: {
3746
+ type: 'string',
3747
+ description: 'First name of the author. Null when not provided.',
3748
+ example: 'Jane'
3749
+ },
3750
+ author_last_name: {
3751
+ type: 'string',
3752
+ description: 'Last name of the author. Null when not provided.',
3753
+ example: 'Doe'
3754
+ },
3755
+ attachments: {
3756
+ type: 'array',
3757
+ items: {
3758
+ type: 'object',
3759
+ properties: {
3760
+ id: {
3761
+ type: 'string',
3762
+ description: 'Unique identifier of the attachment (Mongo ObjectId).',
3763
+ example: '60c72b2f9f1b2c001f8e4d3c'
3764
+ },
3765
+ filename: {
3766
+ type: 'string',
3767
+ description: 'Original filename as uploaded.',
3768
+ example: 'debug.log'
3769
+ },
3770
+ content_type: {
3771
+ type: 'string',
3772
+ description: 'MIME content type of the attachment.',
3773
+ example: 'text/plain'
3774
+ },
3775
+ size: {
3776
+ type: 'integer',
3777
+ description: 'Size of the attachment in bytes.',
3778
+ example: 12345
3779
+ }
3780
+ },
3781
+ required: [
3782
+ 'id',
3783
+ 'filename',
3784
+ 'content_type',
3785
+ 'size'
3786
+ ],
3787
+ additionalProperties: false
3788
+ },
3789
+ description: 'Attachments associated with this message.',
3790
+ example: []
3791
+ },
3792
+ date_created: {
3793
+ type: 'string',
3794
+ format: 'date-time',
3795
+ description: 'Creation date of the message. ISO 8601 UTC.',
3796
+ example: '2026-05-11T16:08:14.338Z'
3797
+ }
3798
+ },
3799
+ required: [
3800
+ 'id',
3801
+ 'type',
3802
+ 'body',
3803
+ 'date_created'
3804
+ ],
3805
+ additionalProperties: false
3806
+ },
3807
+ description: 'Messages on the ticket in chronological order. Internal notes are excluded. Returned by the detail endpoint only.'
1429
3808
  }
1430
3809
  },
1431
- required: ['id', 'setup', 'type', 'last4', 'exp_month', 'exp_year', 'brand'],
3810
+ required: [
3811
+ 'id',
3812
+ 'status',
3813
+ 'category',
3814
+ 'summary',
3815
+ 'support_access_granted',
3816
+ 'support_access_granted_at',
3817
+ 'date_created',
3818
+ 'date_updated'
3819
+ ],
1432
3820
  additionalProperties: false
1433
3821
  };
1434
3822
  export const TokenCreateInputSchema = {
@@ -1446,10 +3834,16 @@ export const TokenCreateInputSchema = {
1446
3834
  type: 'string',
1447
3835
  description: 'Role assumed by the token.',
1448
3836
  example: 'User',
1449
- enum: ['Administrator', 'User']
3837
+ enum: [
3838
+ 'Administrator',
3839
+ 'User'
3840
+ ]
1450
3841
  }
1451
3842
  },
1452
- required: ['name', 'role'],
3843
+ required: [
3844
+ 'name',
3845
+ 'role'
3846
+ ],
1453
3847
  additionalProperties: false
1454
3848
  };
1455
3849
  export const TokenSchema = {
@@ -1467,7 +3861,10 @@ export const TokenSchema = {
1467
3861
  type: 'string',
1468
3862
  description: 'Role assumed by the token.',
1469
3863
  example: 'User',
1470
- enum: ['Administrator', 'User']
3864
+ enum: [
3865
+ 'Administrator',
3866
+ 'User'
3867
+ ]
1471
3868
  },
1472
3869
  id: {
1473
3870
  type: 'string',
@@ -1486,7 +3883,11 @@ export const TokenSchema = {
1486
3883
  example: '2023-12-20T13:53:32.000Z'
1487
3884
  }
1488
3885
  },
1489
- required: ['name', 'role', 'date_created'],
3886
+ required: [
3887
+ 'name',
3888
+ 'role',
3889
+ 'date_created'
3890
+ ],
1490
3891
  additionalProperties: false
1491
3892
  };
1492
3893
  export const TokenUpdateInputSchema = {
@@ -1504,9 +3905,154 @@ export const TokenUpdateInputSchema = {
1504
3905
  type: 'string',
1505
3906
  description: 'Role assumed by the token.',
1506
3907
  example: 'User',
1507
- enum: ['Administrator', 'User']
3908
+ enum: [
3909
+ 'Administrator',
3910
+ 'User'
3911
+ ]
3912
+ }
3913
+ },
3914
+ additionalProperties: false
3915
+ };
3916
+ export const UsageFacetsSchema = {
3917
+ type: 'object',
3918
+ properties: {
3919
+ cluster_id: {
3920
+ type: 'array',
3921
+ items: {
3922
+ type: 'string'
3923
+ },
3924
+ description: 'List of unique cluster IDs',
3925
+ example: [
3926
+ '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
3927
+ ]
3928
+ },
3929
+ product: {
3930
+ type: 'array',
3931
+ items: {
3932
+ type: 'string',
3933
+ enum: [
3934
+ 'cfke_controlplane_basic',
3935
+ 'cfke_controlplane_pro',
3936
+ 'cfke_controlplane_enterprise',
3937
+ 'cfke_connected_nodes_basic',
3938
+ 'cfke_connected_nodes_pro',
3939
+ 'cfke_connected_nodes_enterprise',
3940
+ 'cfcr_storage'
3941
+ ]
3942
+ },
3943
+ description: 'List of unique products',
3944
+ example: [
3945
+ 'cfke_controlplane_pro',
3946
+ 'cfke_connected_nodes_pro'
3947
+ ]
3948
+ }
3949
+ },
3950
+ additionalProperties: false
3951
+ };
3952
+ export const UsageResponseSchema = {
3953
+ type: 'object',
3954
+ properties: {
3955
+ data: {
3956
+ type: 'array',
3957
+ items: {
3958
+ type: 'object',
3959
+ properties: {
3960
+ hour: {
3961
+ type: 'string',
3962
+ description: 'Hour of the usage',
3963
+ example: '2019-01-01T00:00:00.000Z'
3964
+ },
3965
+ cluster_id: {
3966
+ type: 'string',
3967
+ description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
3968
+ example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
3969
+ },
3970
+ product: {
3971
+ type: 'string',
3972
+ description: 'The product the usage is associated with',
3973
+ example: 'cfke_controlplane_pro',
3974
+ enum: [
3975
+ 'cfke_controlplane_basic',
3976
+ 'cfke_controlplane_pro',
3977
+ 'cfke_controlplane_enterprise',
3978
+ 'cfke_connected_nodes_basic',
3979
+ 'cfke_connected_nodes_pro',
3980
+ 'cfke_connected_nodes_enterprise',
3981
+ 'cfcr_storage'
3982
+ ]
3983
+ },
3984
+ value: {
3985
+ type: 'number',
3986
+ format: 'float',
3987
+ description: 'Consumption',
3988
+ example: 4
3989
+ },
3990
+ price: {
3991
+ type: 'number',
3992
+ format: 'float',
3993
+ description: 'Price per unit',
3994
+ example: 0.01
3995
+ },
3996
+ total: {
3997
+ type: 'number',
3998
+ format: 'float',
3999
+ description: 'Total cost'
4000
+ }
4001
+ },
4002
+ required: [
4003
+ 'hour',
4004
+ 'cluster_id',
4005
+ 'product',
4006
+ 'value',
4007
+ 'price',
4008
+ 'total'
4009
+ ],
4010
+ additionalProperties: false
4011
+ },
4012
+ description: 'Usage data'
4013
+ },
4014
+ facets: {
4015
+ type: 'object',
4016
+ properties: {
4017
+ cluster_id: {
4018
+ type: 'array',
4019
+ items: {
4020
+ type: 'string'
4021
+ },
4022
+ description: 'List of unique cluster IDs',
4023
+ example: [
4024
+ '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
4025
+ ]
4026
+ },
4027
+ product: {
4028
+ type: 'array',
4029
+ items: {
4030
+ type: 'string',
4031
+ enum: [
4032
+ 'cfke_controlplane_basic',
4033
+ 'cfke_controlplane_pro',
4034
+ 'cfke_controlplane_enterprise',
4035
+ 'cfke_connected_nodes_basic',
4036
+ 'cfke_connected_nodes_pro',
4037
+ 'cfke_connected_nodes_enterprise',
4038
+ 'cfcr_storage'
4039
+ ]
4040
+ },
4041
+ description: 'List of unique products',
4042
+ example: [
4043
+ 'cfke_controlplane_pro',
4044
+ 'cfke_connected_nodes_pro'
4045
+ ]
4046
+ }
4047
+ },
4048
+ additionalProperties: false,
4049
+ description: 'Facets for filtering'
1508
4050
  }
1509
4051
  },
4052
+ required: [
4053
+ 'data',
4054
+ 'facets'
4055
+ ],
1510
4056
  additionalProperties: false
1511
4057
  };
1512
4058
  export const UsageSchema = {
@@ -1519,90 +4065,49 @@ export const UsageSchema = {
1519
4065
  },
1520
4066
  cluster_id: {
1521
4067
  type: 'string',
1522
- format: 'uuid',
1523
4068
  description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
1524
4069
  example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
1525
4070
  },
1526
- cluster_tier: {
1527
- type: 'string',
1528
- description: 'Tier of the cluster.',
1529
- example: 'pro',
1530
- enum: ['basic', 'pro', '']
1531
- },
1532
4071
  product: {
1533
4072
  type: 'string',
1534
4073
  description: 'The product the usage is associated with',
1535
- example: 'cfke_controlplane',
1536
- enum: ['cfke_controlplane', 'cfke_connected_nodes', 'infra_compute', 'infra_storage', 'infra_loadbalancing', 'infra_traffic', 'cfcr_storage']
1537
- },
1538
- node_name: {
1539
- type: 'string',
1540
- description: 'Name of the Kubernetes node',
1541
- example: 'flexible-moth-956037384'
1542
- },
1543
- sku: {
1544
- type: 'string',
1545
- description: 'SKU of the Kubernetes node',
1546
- example: 'GCP-NORTHAMERICA-NORTHEAST1-A-G1-SMALL-SPOT'
1547
- },
1548
- cpu: {
1549
- anyOf: [
1550
- {
1551
- type: 'number',
1552
- format: 'float',
1553
- description: 'CPU core count of the node',
1554
- example: 4
1555
- },
1556
- {
1557
- type: 'string',
1558
- enum: ['']
1559
- }
1560
- ]
1561
- },
1562
- price: {
1563
- anyOf: [
1564
- {
1565
- type: 'number',
1566
- format: 'float',
1567
- description: 'Price',
1568
- example: 4
1569
- },
1570
- {
1571
- type: 'string',
1572
- enum: ['']
1573
- }
4074
+ example: 'cfke_controlplane_pro',
4075
+ enum: [
4076
+ 'cfke_controlplane_basic',
4077
+ 'cfke_controlplane_pro',
4078
+ 'cfke_controlplane_enterprise',
4079
+ 'cfke_connected_nodes_basic',
4080
+ 'cfke_connected_nodes_pro',
4081
+ 'cfke_connected_nodes_enterprise',
4082
+ 'cfcr_storage'
1574
4083
  ]
1575
4084
  },
1576
4085
  value: {
1577
- anyOf: [
1578
- {
1579
- type: 'number',
1580
- format: 'float',
1581
- description: 'Value',
1582
- example: 4
1583
- },
1584
- {
1585
- type: 'string',
1586
- enum: ['']
1587
- }
1588
- ]
4086
+ type: 'number',
4087
+ format: 'float',
4088
+ description: 'Consumption',
4089
+ example: 4
4090
+ },
4091
+ price: {
4092
+ type: 'number',
4093
+ format: 'float',
4094
+ description: 'Price per unit',
4095
+ example: 0.01
1589
4096
  },
1590
4097
  total: {
1591
- anyOf: [
1592
- {
1593
- type: 'number',
1594
- format: 'float',
1595
- description: 'Total',
1596
- example: 4
1597
- },
1598
- {
1599
- type: 'string',
1600
- enum: ['']
1601
- }
1602
- ]
4098
+ type: 'number',
4099
+ format: 'float',
4100
+ description: 'Total cost'
1603
4101
  }
1604
4102
  },
1605
- required: ['cluster_id', 'cluster_tier', 'product', 'node_name', 'sku', 'cpu', 'price', 'value', 'total'],
4103
+ required: [
4104
+ 'hour',
4105
+ 'cluster_id',
4106
+ 'product',
4107
+ 'value',
4108
+ 'price',
4109
+ 'total'
4110
+ ],
1606
4111
  additionalProperties: false
1607
4112
  };
1608
4113
  export const UserCreateInputSchema = {
@@ -1638,21 +4143,15 @@ export const UserCreateInputSchema = {
1638
4143
  type: 'string',
1639
4144
  minLength: 8,
1640
4145
  description: 'User password. Must be at least 8 characters long.'
1641
- },
1642
- status: {
1643
- type: 'string',
1644
- description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1645
- example: 'active',
1646
- enum: ['active', 'inactive']
1647
- },
1648
- role: {
1649
- type: 'string',
1650
- description: "User role. Can be 'Administrator', 'User'.",
1651
- example: 'User',
1652
- enum: ['Administrator', 'User']
1653
4146
  }
1654
4147
  },
1655
- required: ['email', 'first_name', 'last_name', 'code', 'password'],
4148
+ required: [
4149
+ 'email',
4150
+ 'first_name',
4151
+ 'last_name',
4152
+ 'code',
4153
+ 'password'
4154
+ ],
1656
4155
  additionalProperties: false
1657
4156
  };
1658
4157
  export const UserSchema = {
@@ -1680,15 +4179,21 @@ export const UserSchema = {
1680
4179
  },
1681
4180
  role: {
1682
4181
  type: 'string',
1683
- description: "User role. Can be 'Administrator', 'User'.",
4182
+ description: 'User role. Can be \'Administrator\', \'User\'.',
1684
4183
  example: 'User',
1685
- enum: ['Administrator', 'User']
4184
+ enum: [
4185
+ 'Administrator',
4186
+ 'User'
4187
+ ]
1686
4188
  },
1687
4189
  status: {
1688
4190
  type: 'string',
1689
4191
  description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1690
4192
  example: 'active',
1691
- enum: ['active', 'inactive']
4193
+ enum: [
4194
+ 'active',
4195
+ 'inactive'
4196
+ ]
1692
4197
  },
1693
4198
  id: {
1694
4199
  type: 'string',
@@ -1703,7 +4208,15 @@ export const UserSchema = {
1703
4208
  example: '2023-11-02T16:08:14.338Z'
1704
4209
  }
1705
4210
  },
1706
- required: ['email', 'first_name', 'last_name', 'role', 'status', 'id', 'date_created'],
4211
+ required: [
4212
+ 'email',
4213
+ 'first_name',
4214
+ 'last_name',
4215
+ 'role',
4216
+ 'status',
4217
+ 'id',
4218
+ 'date_created'
4219
+ ],
1707
4220
  additionalProperties: false
1708
4221
  };
1709
4222
  export const UserUpdateInputSchema = {
@@ -1731,15 +4244,21 @@ export const UserUpdateInputSchema = {
1731
4244
  },
1732
4245
  role: {
1733
4246
  type: 'string',
1734
- description: "User role. Can be 'Administrator', 'User'.",
4247
+ description: 'User role. Can be \'Administrator\', \'User\'.',
1735
4248
  example: 'User',
1736
- enum: ['Administrator', 'User']
4249
+ enum: [
4250
+ 'Administrator',
4251
+ 'User'
4252
+ ]
1737
4253
  },
1738
4254
  status: {
1739
4255
  type: 'string',
1740
4256
  description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1741
4257
  example: 'active',
1742
- enum: ['active', 'inactive']
4258
+ enum: [
4259
+ 'active',
4260
+ 'inactive'
4261
+ ]
1743
4262
  }
1744
4263
  },
1745
4264
  additionalProperties: false