@cloudfleet/sdk 0.0.1-e9052b2 → 0.0.1-ea442a2

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