@cloudfleet/sdk 0.0.1-ac7f6c7 → 0.0.1-aca000f

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