@cloudfleet/sdk 0.0.1-0010e2d → 0.0.1-017af9f

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