@cloudfleet/sdk 0.0.1-2bdeb58 → 0.0.1-32a25f1

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 (68) hide show
  1. package/dist/client/client.gen.d.ts +3 -0
  2. package/dist/client/client.gen.d.ts.map +1 -0
  3. package/dist/client/client.gen.js +205 -0
  4. package/dist/client/client.gen.js.map +1 -0
  5. package/dist/client/index.d.ts +9 -0
  6. package/dist/client/index.d.ts.map +1 -0
  7. package/dist/client/index.js +7 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/client/types.gen.d.ts +125 -0
  10. package/dist/client/types.gen.d.ts.map +1 -0
  11. package/dist/client/types.gen.js +3 -0
  12. package/dist/client/types.gen.js.map +1 -0
  13. package/dist/client/utils.gen.d.ts +34 -0
  14. package/dist/client/utils.gen.d.ts.map +1 -0
  15. package/dist/client/utils.gen.js +231 -0
  16. package/dist/client/utils.gen.js.map +1 -0
  17. package/dist/client.gen.d.ts +4 -4
  18. package/dist/client.gen.d.ts.map +1 -1
  19. package/dist/client.gen.js +1 -1
  20. package/dist/client.gen.js.map +1 -1
  21. package/dist/core/auth.gen.d.ts +19 -0
  22. package/dist/core/auth.gen.d.ts.map +1 -0
  23. package/dist/core/auth.gen.js +15 -0
  24. package/dist/core/auth.gen.js.map +1 -0
  25. package/dist/core/bodySerializer.gen.d.ts +18 -0
  26. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  27. package/dist/core/bodySerializer.gen.js +58 -0
  28. package/dist/core/bodySerializer.gen.js.map +1 -0
  29. package/dist/core/params.gen.d.ts +34 -0
  30. package/dist/core/params.gen.d.ts.map +1 -0
  31. package/dist/core/params.gen.js +89 -0
  32. package/dist/core/params.gen.js.map +1 -0
  33. package/dist/core/pathSerializer.gen.d.ts +34 -0
  34. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  35. package/dist/core/pathSerializer.gen.js +115 -0
  36. package/dist/core/pathSerializer.gen.js.map +1 -0
  37. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  38. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  39. package/dist/core/queryKeySerializer.gen.js +100 -0
  40. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  41. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  42. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  43. package/dist/core/serverSentEvents.gen.js +136 -0
  44. package/dist/core/serverSentEvents.gen.js.map +1 -0
  45. package/dist/core/types.gen.d.ts +79 -0
  46. package/dist/core/types.gen.d.ts.map +1 -0
  47. package/dist/core/types.gen.js +3 -0
  48. package/dist/core/types.gen.js.map +1 -0
  49. package/dist/core/utils.gen.d.ts +20 -0
  50. package/dist/core/utils.gen.d.ts.map +1 -0
  51. package/dist/core/utils.gen.js +88 -0
  52. package/dist/core/utils.gen.js.map +1 -0
  53. package/dist/schemas.gen.d.ts +603 -590
  54. package/dist/schemas.gen.d.ts.map +1 -1
  55. package/dist/schemas.gen.js +612 -627
  56. package/dist/schemas.gen.js.map +1 -1
  57. package/dist/sdk.gen.d.ts +139 -76
  58. package/dist/sdk.gen.d.ts.map +1 -1
  59. package/dist/sdk.gen.js +183 -94
  60. package/dist/sdk.gen.js.map +1 -1
  61. package/dist/services/kubernetes/api.d.ts +12 -12
  62. package/dist/types.gen.d.ts +546 -360
  63. package/dist/types.gen.d.ts.map +1 -1
  64. package/dist/zod.gen.d.ts +1775 -2204
  65. package/dist/zod.gen.d.ts.map +1 -1
  66. package/dist/zod.gen.js +755 -788
  67. package/dist/zod.gen.js.map +1 -1
  68. package/package.json +5 -6
@@ -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',
@@ -76,12 +71,13 @@ export const BillingContactSchema = {
76
71
  },
77
72
  tax_id_type: {
78
73
  type: 'string',
74
+ nullable: true,
79
75
  description: 'Type of the tax ID.',
80
76
  example: 'de_vat',
81
- enum: ['ad_nrt', 'ae_trn', 'al_tin', 'am_tin', 'ao_tin', 'ar_cuit', 'au_abn', 'au_arn', 'ba_tin', 'bb_tin', 'bg_uic', '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', 'de_stn', 'do_rcn', 'ec_ruc', 'eg_tin', 'es_cif', 'eu_oss_vat', 'eu_vat', 'gb_vat', 'ge_vat', 'gn_nif', 'hk_br', 'hr_oib', 'hu_tin', 'id_npwp', 'il_vat', 'in_gst', 'is_vat', 'jp_cn', 'jp_rn', 'jp_trn', 'ke_pin', 'kh_tin', 'kr_brn', 'kz_bin', 'li_uid', 'li_vat', 'ma_vat', 'md_vat', 'me_pib', 'mk_vat', 'mr_nif', 'mx_rfc', 'my_frp', 'my_itn', 'my_sst', 'ng_tin', 'no_vat', 'no_voec', 'np_pan', 'nz_gst', 'om_vat', 'pe_ruc', 'ph_tin', 'ro_tin', 'rs_pib', 'ru_inn', 'ru_kpp', 'sa_vat', 'sg_gst', 'sg_uen', 'si_tin', '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', 'za_vat', 'zm_tin', 'zw_tin']
77
+ 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', '']
82
78
  }
83
79
  },
84
- required: ['email', 'first_name', 'last_name'],
80
+ required: ['email', 'individual_name'],
85
81
  additionalProperties: false
86
82
  };
87
83
  export const BillingCreditsSchema = {
@@ -92,10 +88,22 @@ export const BillingCreditsSchema = {
92
88
  description: 'Generated unique identifier of the promotional code.',
93
89
  example: '7kUZnH7nnKUFfvc4NK2KQF'
94
90
  },
95
- date_created: {
91
+ type: {
92
+ type: 'string',
93
+ description: 'Type of the promotional code.',
94
+ example: 'credit',
95
+ enum: ['credit', 'discount']
96
+ },
97
+ date_start: {
96
98
  type: 'string',
97
99
  format: 'date-time',
98
- description: 'Date of the credit application. ISO 8601 date string in the UTC timezone.',
100
+ description: 'Timestamp when the credit becomes active. ISO 8601 date string in the UTC timezone.',
101
+ example: '2023-12-20T13:53:32.000Z'
102
+ },
103
+ date_end: {
104
+ type: 'string',
105
+ format: 'date-time',
106
+ description: 'Timestamp when the credit expires or becomes inactive. ISO 8601 date string in the UTC timezone.',
99
107
  example: '2023-12-20T13:53:32.000Z'
100
108
  },
101
109
  code: {
@@ -108,40 +116,20 @@ export const BillingCreditsSchema = {
108
116
  description: 'Description of the promotional code.',
109
117
  example: '10% off on all products'
110
118
  },
111
- products: {
112
- type: 'array',
113
- items: {
114
- type: 'string'
115
- },
116
- description: 'List of product SKUs that the promotional code can be used on.',
117
- example: ['SKU123', 'SKU456']
118
- },
119
- type: {
120
- type: 'string',
121
- description: 'Type of the promotional code.',
122
- example: 'credit',
123
- enum: ['credit', 'discount']
124
- },
125
- value: {
119
+ value_total: {
126
120
  type: 'number',
127
121
  format: 'float',
128
- description: 'Value of the promotional code.',
122
+ description: 'Total value of the promotional code.',
129
123
  example: 10
130
124
  },
131
- billing_period: {
132
- type: 'string',
133
- format: 'date-time',
134
- description: 'Date of the billing cycle. An ISO 8601 date string in the UTC timezone.',
135
- example: '2023-12-20T13:53:32.000Z'
136
- },
137
125
  value_remaining: {
138
126
  type: 'number',
139
127
  format: 'float',
140
- description: 'Value of the promotional code.',
141
- example: 10
128
+ description: 'Remaining value of the promotional code.',
129
+ example: 8
142
130
  }
143
131
  },
144
- required: ['date_created', 'code', 'type', 'value', 'billing_period'],
132
+ required: ['type', 'date_start', 'code', 'value_total'],
145
133
  additionalProperties: false
146
134
  };
147
135
  export const ChartCreateInputSchema = {
@@ -149,12 +137,12 @@ export const ChartCreateInputSchema = {
149
137
  properties: {
150
138
  values: {
151
139
  type: 'string',
152
- description: 'Values to be used in the chart.'
140
+ description: 'Values to be used in the chart encoded as a JSON string.'
153
141
  },
154
142
  version_channel: {
155
143
  type: 'string',
156
144
  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-]+)*))?$',
157
- description: 'Version of the chart.',
145
+ description: 'Desired version range or channel for the chart.',
158
146
  example: '2.x.x-cfke.x'
159
147
  },
160
148
  name: {
@@ -190,12 +178,12 @@ export const ChartSchema = {
190
178
  properties: {
191
179
  values: {
192
180
  type: 'string',
193
- description: 'Values to be used in the chart.'
181
+ description: 'Values to be used in the chart encoded as a JSON string.'
194
182
  },
195
183
  version_channel: {
196
184
  type: 'string',
197
185
  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-]+)*))?$',
198
- description: 'Version of the chart.',
186
+ description: 'Desired version range or channel for the chart.',
199
187
  example: '2.x.x-cfke.x'
200
188
  },
201
189
  name: {
@@ -226,7 +214,7 @@ export const ChartSchema = {
226
214
  type: 'string',
227
215
  description: 'Status of the chart deployment.',
228
216
  example: 'active',
229
- enum: ['InstallSucceeded', 'InstallFailed', 'UpgradeSucceeded', 'UpgradeFailed', 'TestSucceeded', 'TestFailed', 'RollbackSucceeded', 'RollbackFailed', 'UninstallSucceeded', 'UninstallFailed', 'ArtifactFailed', 'DependencyNotReady', 'Progressing']
217
+ enum: ['InstallSucceeded', 'InstallFailed', 'UpgradeSucceeded', 'UpgradeFailed', 'TestSucceeded', 'TestFailed', 'RollbackSucceeded', 'RollbackFailed', 'UninstallSucceeded', 'UninstallFailed', 'ArtifactFailed', 'DependencyNotReady', 'Progressing', 'SourceNotReady']
230
218
  },
231
219
  version_current: {
232
220
  type: 'string',
@@ -257,12 +245,12 @@ export const ChartUpdateInputSchema = {
257
245
  properties: {
258
246
  values: {
259
247
  type: 'string',
260
- description: 'Values to be used in the chart.'
248
+ description: 'Values to be used in the chart encoded as a JSON string.'
261
249
  },
262
250
  version_channel: {
263
251
  type: 'string',
264
252
  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-]+)*))?$',
265
- description: 'Version of the chart.',
253
+ description: 'Desired version range or channel for the chart.',
266
254
  example: '2.x.x-cfke.x'
267
255
  }
268
256
  },
@@ -280,25 +268,25 @@ export const ClusterCreateInputSchema = {
280
268
  description: 'Name of the cluster.',
281
269
  example: 'production-cluster'
282
270
  },
283
- region: {
284
- type: 'string',
285
- description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
286
- default: 'staging',
287
- example: 'northamerica-central-1',
288
- enum: ['staging', 'northamerica-central-1']
289
- },
290
271
  tier: {
291
272
  type: 'string',
292
273
  description: 'Tier of the cluster.',
293
274
  example: 'pro',
294
275
  enum: ['basic', 'pro']
295
276
  },
277
+ region: {
278
+ type: 'string',
279
+ description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
280
+ default: 'staging',
281
+ example: 'northamerica-central-1a',
282
+ enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
283
+ },
296
284
  version_channel: {
297
285
  type: 'string',
298
286
  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-]+)*))?$',
299
287
  description: 'Version of the kubernetes cluster.',
300
288
  default: '1.x.x-cfke.x',
301
- example: '1.29.x-cfke.x'
289
+ example: '1.33.x-cfke.x'
302
290
  }
303
291
  },
304
292
  required: ['name', 'tier'],
@@ -335,7 +323,7 @@ MIIC0DCCAbigAwIBAgI...`
335
323
  kubernetes: {
336
324
  type: 'string',
337
325
  description: 'Kubernetes version of the cluster.',
338
- example: '1.29.3'
326
+ example: '1.33.7'
339
327
  },
340
328
  tailscale: {
341
329
  type: 'string',
@@ -346,9 +334,14 @@ MIIC0DCCAbigAwIBAgI...`
346
334
  type: 'string',
347
335
  description: 'Containerd version of the cluster.',
348
336
  example: '1.7.19'
337
+ },
338
+ nvidia_driver: {
339
+ type: 'string',
340
+ description: 'NVIDIA driver version of the cluster.',
341
+ example: '565.0.0'
349
342
  }
350
343
  },
351
- required: ['kubernetes', 'tailscale', 'containerd'],
344
+ required: ['kubernetes', 'tailscale', 'containerd', 'nvidia_driver'],
352
345
  additionalProperties: false,
353
346
  description: 'Versions of the different components of the cluster.'
354
347
  },
@@ -390,25 +383,25 @@ export const ClusterSchema = {
390
383
  description: 'Name of the cluster.',
391
384
  example: 'production-cluster'
392
385
  },
393
- region: {
394
- type: 'string',
395
- description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1". This field can not be updated after creation.',
396
- default: 'staging',
397
- example: 'northamerica-central-1',
398
- enum: ['staging', 'northamerica-central-1']
399
- },
400
386
  tier: {
401
387
  type: 'string',
402
388
  description: 'Tier of the cluster.',
403
389
  example: 'pro',
404
390
  enum: ['basic', 'pro']
405
391
  },
392
+ region: {
393
+ type: 'string',
394
+ description: 'Cloudfleet control plane region. One of "staging", "northamerica-central-1", "europe-central-1a", "northamerica-central-1a". This field can not be updated after creation.',
395
+ default: 'staging',
396
+ example: 'northamerica-central-1a',
397
+ enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
398
+ },
406
399
  version_channel: {
407
400
  type: 'string',
408
401
  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-]+)*))?$',
409
402
  description: 'Version of the kubernetes cluster.',
410
403
  default: '1.x.x-cfke.x',
411
- example: '1.29.x-cfke.x'
404
+ example: '1.33.x-cfke.x'
412
405
  },
413
406
  id: {
414
407
  type: 'string',
@@ -420,7 +413,7 @@ export const ClusterSchema = {
420
413
  type: 'string',
421
414
  description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
422
415
  example: 'active',
423
- enum: ['active', 'deleted', 'creating', 'deployed', 'failed', 'updating']
416
+ enum: ['active', 'disabled', 'deleted', 'creating', 'deployed', 'failed', 'updating']
424
417
  },
425
418
  endpoint: {
426
419
  anyOf: [
@@ -445,7 +438,7 @@ MIIC0DCCAbigAwIBAgI...`
445
438
  version_current: {
446
439
  type: 'string',
447
440
  description: 'Current version of the cluster.',
448
- example: '1.29.3-cfke.52'
441
+ example: '1.33.7-cfke.264'
449
442
  },
450
443
  created_at: {
451
444
  type: 'string',
@@ -477,13 +470,20 @@ export const ClusterUpdateInputSchema = {
477
470
  description: 'Name of the cluster.',
478
471
  example: 'production-cluster'
479
472
  },
473
+ tier: {
474
+ type: 'string',
475
+ description: 'Tier of the cluster.',
476
+ example: 'pro',
477
+ enum: ['basic', 'pro']
478
+ },
480
479
  version_channel: {
481
480
  type: 'string',
482
481
  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-]+)*))?$',
483
482
  description: 'Version of the kubernetes cluster.',
484
- example: '1.29.x-cfke.x'
483
+ example: '1.33.x-cfke.x'
485
484
  }
486
485
  },
486
+ required: ['tier'],
487
487
  additionalProperties: false
488
488
  };
489
489
  export const FleetCreateInputSchema = {
@@ -519,34 +519,19 @@ export const FleetCreateInputSchema = {
519
519
  additionalProperties: false
520
520
  },
521
521
  hetzner: {
522
- oneOf: [
523
- {
524
- type: 'object',
525
- properties: {
526
- enabled: {
527
- type: 'boolean',
528
- default: true
529
- },
530
- apiKey: {
531
- type: 'string'
532
- }
533
- },
534
- additionalProperties: false
522
+ type: 'object',
523
+ properties: {
524
+ enabled: {
525
+ type: 'boolean',
526
+ default: true
535
527
  },
536
- {
537
- type: 'object',
538
- properties: {
539
- apiKey: {
540
- type: 'string'
541
- },
542
- enabled: {
543
- type: 'boolean',
544
- default: true
545
- }
546
- },
547
- additionalProperties: false
528
+ apiKey: {
529
+ type: 'string',
530
+ description: 'Hetzner Cloud API key with read / write access'
548
531
  }
549
- ]
532
+ },
533
+ required: ['apiKey'],
534
+ additionalProperties: false
550
535
  },
551
536
  aws: {
552
537
  type: 'object',
@@ -570,14 +555,9 @@ export const FleetCreateInputSchema = {
570
555
  pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
571
556
  description: 'Unique identifier of the kubernetes fleet.',
572
557
  example: 'new-clouds-fleet'
573
- },
574
- type: {
575
- type: 'string',
576
- description: 'Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.',
577
- enum: ['managed', 'connected']
578
558
  }
579
559
  },
580
- required: ['id', 'type'],
560
+ required: ['id'],
581
561
  additionalProperties: false
582
562
  };
583
563
  export const FleetSchema = {
@@ -613,34 +593,19 @@ export const FleetSchema = {
613
593
  additionalProperties: false
614
594
  },
615
595
  hetzner: {
616
- oneOf: [
617
- {
618
- type: 'object',
619
- properties: {
620
- enabled: {
621
- type: 'boolean',
622
- default: true
623
- },
624
- apiKey: {
625
- type: 'string'
626
- }
627
- },
628
- additionalProperties: false
596
+ type: 'object',
597
+ properties: {
598
+ enabled: {
599
+ type: 'boolean',
600
+ default: true
629
601
  },
630
- {
631
- type: 'object',
632
- properties: {
633
- apiKey: {
634
- type: 'string'
635
- },
636
- enabled: {
637
- type: 'boolean',
638
- default: true
639
- }
640
- },
641
- additionalProperties: false
602
+ apiKey: {
603
+ type: 'string',
604
+ description: 'Hetzner Cloud API key with read / write access'
642
605
  }
643
- ]
606
+ },
607
+ required: ['apiKey'],
608
+ additionalProperties: false
644
609
  },
645
610
  aws: {
646
611
  type: 'object',
@@ -664,14 +629,9 @@ export const FleetSchema = {
664
629
  pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
665
630
  description: 'Unique identifier of the kubernetes fleet.',
666
631
  example: 'new-clouds-fleet'
667
- },
668
- type: {
669
- type: 'string',
670
- description: 'Specifies the fleet type: infrastructure managed by Cloudfleet or Connected Fleets.',
671
- enum: ['managed', 'connected']
672
632
  }
673
633
  },
674
- required: ['id', 'type'],
634
+ required: ['id'],
675
635
  additionalProperties: false
676
636
  };
677
637
  export const FleetUpdateInputSchema = {
@@ -707,34 +667,19 @@ export const FleetUpdateInputSchema = {
707
667
  additionalProperties: false
708
668
  },
709
669
  hetzner: {
710
- oneOf: [
711
- {
712
- type: 'object',
713
- properties: {
714
- enabled: {
715
- type: 'boolean',
716
- default: true
717
- },
718
- apiKey: {
719
- type: 'string'
720
- }
721
- },
722
- additionalProperties: false
670
+ type: 'object',
671
+ properties: {
672
+ enabled: {
673
+ type: 'boolean',
674
+ default: true
723
675
  },
724
- {
725
- type: 'object',
726
- properties: {
727
- apiKey: {
728
- type: 'string'
729
- },
730
- enabled: {
731
- type: 'boolean',
732
- default: true
733
- }
734
- },
735
- additionalProperties: false
676
+ apiKey: {
677
+ type: 'string',
678
+ description: 'Hetzner Cloud API key with read / write access'
736
679
  }
737
- ]
680
+ },
681
+ required: ['apiKey'],
682
+ additionalProperties: false
738
683
  },
739
684
  aws: {
740
685
  type: 'object',
@@ -798,19 +743,15 @@ export const InvoiceSchema = {
798
743
  description: 'Unique identifier of the invoice. UUID v4 string in canonical form',
799
744
  example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
800
745
  },
801
- organizationId: {
802
- type: 'string',
803
- format: 'uuid',
804
- description: 'Unique identifier of the organization. UUID v4 string in canonical form',
805
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
746
+ number: {
747
+ type: 'string'
806
748
  },
807
749
  status: {
808
750
  type: 'string',
809
751
  description: 'Status of the invoice',
810
- example: 'DRAFT',
811
- enum: ['DRAFT', 'COMMITTED', 'VOID']
752
+ example: 'paid'
812
753
  },
813
- amount: {
754
+ total: {
814
755
  type: 'number',
815
756
  format: 'float',
816
757
  description: 'Total amount of the invoice',
@@ -819,413 +760,170 @@ export const InvoiceSchema = {
819
760
  currency: {
820
761
  type: 'string',
821
762
  description: 'Currency of the invoice',
822
- example: 'USD',
823
- 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']
824
- },
825
- creditAdj: {
826
- type: 'number',
827
- format: 'float',
828
- description: 'Total amount of credit adjustments',
829
- example: 0
763
+ example: 'usd'
830
764
  },
831
- refundAdj: {
832
- type: 'number',
833
- format: 'float',
834
- description: 'Total amount of refund adjustments',
835
- example: 0
765
+ created: {
766
+ type: 'string',
767
+ format: 'date-time',
768
+ description: 'Timestamp when the invoice was issued. ISO 8601 date string in the UTC timezone.',
769
+ example: '2023-12-20T13:53:32.000Z'
836
770
  },
837
- invoiceDate: {
771
+ period_start: {
838
772
  type: 'string',
839
- description: 'Date of the invoice',
840
- example: '2019-01-01T00:00:00.000Z'
773
+ format: 'date-time',
774
+ description: 'Billing period start timestamp. ISO 8601 date string in the UTC timezone.',
775
+ example: '2023-12-20T13:53:32.000Z'
841
776
  },
842
- targetDate: {
777
+ period_end: {
843
778
  type: 'string',
844
- description: 'Target date of the invoice',
845
- example: '2019-01-01T00:00:00.000Z'
779
+ format: 'date-time',
780
+ description: 'Billing period end timestamp. ISO 8601 date string in the UTC timezone.',
781
+ example: '2023-12-20T13:53:32.000Z'
846
782
  },
847
- invoiceNumber: {
783
+ invoice_pdf: {
784
+ type: 'string'
785
+ }
786
+ },
787
+ required: ['created', 'period_start', 'period_end'],
788
+ additionalProperties: false
789
+ };
790
+ export const MarketplaceListingFilesSchema = {
791
+ type: 'object',
792
+ properties: {
793
+ chartYaml: {
848
794
  type: 'string',
849
- description: 'Number of the invoice',
850
- example: 'INV-0001'
795
+ description: 'Raw Chart.yaml content from the Helm chart',
796
+ example: `apiVersion: v2
797
+ name: nginx-ingress
798
+ version: 1.18.2-cfke.45
799
+ appVersion: 1.9.4`
851
800
  },
852
- balance: {
853
- type: 'number',
854
- format: 'float',
855
- description: 'Balance of the invoice',
856
- example: 100
801
+ valuesYaml: {
802
+ type: 'string',
803
+ description: 'Raw values.yaml content from the Helm chart',
804
+ example: `replicaCount: 1
805
+ image:
806
+ repository: nginx
807
+ tag: latest`
857
808
  },
858
- bundleKeys: {
809
+ valuesSchemaJson: {
810
+ type: 'string',
811
+ description: 'JSON schema for values.yaml as a string',
812
+ example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
813
+ }
814
+ },
815
+ additionalProperties: false
816
+ };
817
+ export const MarketplaceListingSchema = {
818
+ type: 'object',
819
+ properties: {
820
+ name: {
859
821
  type: 'string',
860
- description: 'Bundle keys of the invoice',
861
- example: 'bundleKey1,bundleKey2'
822
+ description: 'Name of the chart',
823
+ example: 'nginx-ingress'
862
824
  },
863
- credits: {
825
+ versions: {
864
826
  type: 'array',
865
827
  items: {
866
- type: 'object',
867
- properties: {
868
- id: {
869
- type: 'string',
870
- format: 'uuid',
871
- description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
872
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
873
- },
874
- linkedInvoiceItemId: {
875
- type: 'string',
876
- format: 'uuid',
877
- description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
878
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
879
- },
880
- productName: {
881
- type: 'string',
882
- description: 'Name of the product',
883
- example: 'Research team'
884
- },
885
- planName: {
886
- type: 'string',
887
- description: 'Name of the plan',
888
- example: 'Plan A'
889
- },
890
- phaseName: {
891
- type: 'string',
892
- description: 'Name of the phase',
893
- example: 'Phase A'
894
- },
895
- usageName: {
896
- type: 'string',
897
- description: 'Name of the usage',
898
- example: 'Usage A'
899
- },
900
- prettyProductName: {
901
- type: 'string',
902
- description: 'Pretty name of the product',
903
- example: 'Research team'
904
- },
905
- prettyPlanName: {
906
- type: 'string',
907
- description: 'Pretty name of the plan',
908
- example: 'Plan A'
909
- },
910
- prettyPhaseName: {
911
- type: 'string',
912
- description: 'Pretty name of the phase',
913
- example: 'Phase A'
914
- },
915
- prettyUsageName: {
916
- type: 'string',
917
- description: 'Pretty name of the usage',
918
- example: 'Usage A'
919
- },
920
- itemType: {
921
- type: 'string',
922
- description: 'Type of the invoice item',
923
- example: 'EXTERNAL_CHARGE',
924
- enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
925
- },
926
- description: {
927
- type: 'string',
928
- description: 'Description of the invoice item',
929
- example: 'Description of the invoice item'
930
- },
931
- startDate: {
932
- type: 'string',
933
- description: 'Start date of the invoice item',
934
- example: '2019-01-01T00:00:00.000Z'
935
- },
936
- endDate: {
937
- type: 'string',
938
- description: 'End date of the invoice item',
939
- example: '2019-01-01T00:00:00.000Z'
940
- },
941
- amount: {
942
- type: 'number',
943
- format: 'float',
944
- description: 'Amount of the invoice item',
945
- example: 100
946
- },
947
- rate: {
948
- type: 'number',
949
- format: 'float',
950
- description: 'Rate of the invoice item',
951
- example: 100
952
- },
953
- currency: {
954
- type: 'string',
955
- description: 'Currency of the invoice item',
956
- example: 'USD',
957
- 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']
958
- },
959
- quantity: {
960
- type: 'number',
961
- format: 'float',
962
- description: 'Quantity of the invoice item',
963
- example: 1
964
- },
965
- itemDetails: {
966
- type: 'string',
967
- description: 'Details of the invoice item',
968
- example: 'Details of the invoice item'
969
- },
970
- catalogEffectiveDate: {
971
- type: 'string',
972
- description: 'Effective date of the catalog',
973
- example: '2019-01-01T00:00:00.000Z'
974
- },
975
- childItems: {
976
- type: 'array',
977
- items: {
978
- oneOf: [
979
- {
980
- type: 'array'
981
- },
982
- {
983
- type: 'boolean'
984
- },
985
- {
986
- type: 'number'
987
- },
988
- {
989
- type: 'object',
990
- additionalProperties: true
991
- },
992
- {
993
- type: 'string'
994
- }
995
- ]
996
- },
997
- description: 'Child items of the invoice item'
998
- }
999
- },
1000
- additionalProperties: false
828
+ type: 'string',
829
+ 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-]+)*))?$',
830
+ description: 'Specific version of the chart',
831
+ example: '1.18.2-cfke.45'
1001
832
  },
1002
- description: 'Credits of the invoice'
833
+ description: 'Available versions of the chart'
1003
834
  },
1004
- items: {
835
+ version_channels: {
1005
836
  type: 'array',
1006
837
  items: {
1007
- type: 'object',
1008
- properties: {
1009
- id: {
1010
- type: 'string',
1011
- format: 'uuid',
1012
- description: 'Unique identifier of the invoice item. UUID v4 string in canonical form',
1013
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
1014
- },
1015
- linkedInvoiceItemId: {
1016
- type: 'string',
1017
- format: 'uuid',
1018
- description: 'Unique identifier of the linked invoice item. UUID v4 string in canonical form',
1019
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
1020
- },
1021
- productName: {
1022
- type: 'string',
1023
- description: 'Name of the product',
1024
- example: 'Research team'
1025
- },
1026
- planName: {
1027
- type: 'string',
1028
- description: 'Name of the plan',
1029
- example: 'Plan A'
1030
- },
1031
- phaseName: {
1032
- type: 'string',
1033
- description: 'Name of the phase',
1034
- example: 'Phase A'
838
+ type: 'string',
839
+ 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-]+)*))?$',
840
+ description: 'Version channel pattern',
841
+ example: '1.18.x-cfke.x'
842
+ },
843
+ description: 'Version channels for the chart'
844
+ },
845
+ latestVersion: {
846
+ type: 'string',
847
+ description: 'Latest version of the chart',
848
+ example: '1.18.2-cfke.45'
849
+ },
850
+ metadata: {
851
+ type: 'object',
852
+ properties: {
853
+ name: {
854
+ type: 'string',
855
+ description: 'Chart name from metadata',
856
+ example: 'nginx-ingress'
857
+ },
858
+ version: {
859
+ type: 'string',
860
+ description: 'Chart version from metadata',
861
+ example: '1.18.2-cfke.45'
862
+ },
863
+ description: {
864
+ type: 'string',
865
+ description: 'Chart description',
866
+ example: 'NGINX Ingress Controller for Kubernetes'
867
+ },
868
+ appVersion: {
869
+ type: 'string',
870
+ description: 'Application version',
871
+ example: '1.9.4'
872
+ },
873
+ apiVersion: {
874
+ type: 'string',
875
+ description: 'Helm API version',
876
+ example: 'v2'
877
+ },
878
+ keywords: {
879
+ type: 'array',
880
+ items: {
881
+ type: 'string'
1035
882
  },
1036
- usageName: {
1037
- type: 'string',
1038
- description: 'Name of the usage',
1039
- example: 'Usage A'
883
+ description: 'Chart keywords',
884
+ example: ['ingress', 'nginx', 'load-balancer']
885
+ },
886
+ home: {
887
+ type: 'string',
888
+ description: 'Chart home URL',
889
+ example: 'https://kubernetes.github.io/ingress-nginx/'
890
+ },
891
+ sources: {
892
+ type: 'array',
893
+ items: {
894
+ type: 'string'
1040
895
  },
1041
- prettyProductName: {
1042
- type: 'string',
1043
- description: 'Pretty name of the product',
1044
- example: 'Research team'
896
+ description: 'Chart source URLs',
897
+ example: ['https://github.com/kubernetes/ingress-nginx']
898
+ },
899
+ maintainers: {
900
+ type: 'array',
901
+ items: {
902
+ type: 'object',
903
+ properties: {
904
+ name: {
905
+ type: 'string',
906
+ description: 'Maintainer name',
907
+ example: 'NGINX Team'
908
+ },
909
+ email: {
910
+ type: 'string',
911
+ description: 'Maintainer email',
912
+ example: 'support@nginx.org'
913
+ }
914
+ },
915
+ required: ['name'],
916
+ additionalProperties: false
1045
917
  },
1046
- prettyPlanName: {
1047
- type: 'string',
1048
- description: 'Pretty name of the plan',
1049
- example: 'Plan A'
1050
- },
1051
- prettyPhaseName: {
1052
- type: 'string',
1053
- description: 'Pretty name of the phase',
1054
- example: 'Phase A'
1055
- },
1056
- prettyUsageName: {
1057
- type: 'string',
1058
- description: 'Pretty name of the usage',
1059
- example: 'Usage A'
1060
- },
1061
- itemType: {
1062
- type: 'string',
1063
- description: 'Type of the invoice item',
1064
- example: 'EXTERNAL_CHARGE',
1065
- enum: ['EXTERNAL_CHARGE', 'FIXED', 'RECURRING', 'REPAIR_ADJ', 'CBA_ADJ', 'CREDIT_ADJ', 'ITEM_ADJ', 'USAGE', 'TAX', 'PARENT_SUMMARY']
1066
- },
1067
- description: {
1068
- type: 'string',
1069
- description: 'Description of the invoice item',
1070
- example: 'Description of the invoice item'
1071
- },
1072
- startDate: {
1073
- type: 'string',
1074
- description: 'Start date of the invoice item',
1075
- example: '2019-01-01T00:00:00.000Z'
1076
- },
1077
- endDate: {
1078
- type: 'string',
1079
- description: 'End date of the invoice item',
1080
- example: '2019-01-01T00:00:00.000Z'
1081
- },
1082
- amount: {
1083
- type: 'number',
1084
- format: 'float',
1085
- description: 'Amount of the invoice item',
1086
- example: 100
1087
- },
1088
- rate: {
1089
- type: 'number',
1090
- format: 'float',
1091
- description: 'Rate of the invoice item',
1092
- example: 100
1093
- },
1094
- currency: {
1095
- type: 'string',
1096
- description: 'Currency of the invoice item',
1097
- example: 'USD',
1098
- 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']
1099
- },
1100
- quantity: {
1101
- type: 'number',
1102
- format: 'float',
1103
- description: 'Quantity of the invoice item',
1104
- example: 1
1105
- },
1106
- itemDetails: {
1107
- type: 'string',
1108
- description: 'Details of the invoice item',
1109
- example: 'Details of the invoice item'
1110
- },
1111
- catalogEffectiveDate: {
1112
- type: 'string',
1113
- description: 'Effective date of the catalog',
1114
- example: '2019-01-01T00:00:00.000Z'
1115
- },
1116
- childItems: {
1117
- type: 'array',
1118
- items: {
1119
- oneOf: [
1120
- {
1121
- type: 'array'
1122
- },
1123
- {
1124
- type: 'boolean'
1125
- },
1126
- {
1127
- type: 'number'
1128
- },
1129
- {
1130
- type: 'object',
1131
- additionalProperties: true
1132
- },
1133
- {
1134
- type: 'string'
1135
- }
1136
- ]
1137
- },
1138
- description: 'Child items of the invoice item'
1139
- }
1140
- },
1141
- additionalProperties: false
1142
- },
1143
- description: 'Items of the invoice'
1144
- }
1145
- },
1146
- additionalProperties: false
1147
- };
1148
- export const MarketplaceListingSchema = {
1149
- type: 'object',
1150
- properties: {
1151
- id: {
1152
- type: 'string',
1153
- maxLength: 63,
1154
- minLength: 1,
1155
- pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
1156
- description: 'Id of the chart listing',
1157
- example: 'portworx-enterprise-disaster-recovery-baremetal'
1158
- },
1159
- name: {
1160
- type: 'string',
1161
- description: 'Name of the chart listing',
1162
- example: 'Portworx Enterprise + Disaster Recovery - Baremetal'
1163
- },
1164
- developer: {
1165
- type: 'string',
1166
- description: 'Author of the chart listing',
1167
- example: 'Portworx'
1168
- },
1169
- description: {
1170
- type: 'string',
1171
- description: 'Short description of the chart listing',
1172
- example: 'Run Kubernetes with unmatched scalability, availability, and self-service access to any storage'
1173
- },
1174
- logoUrl: {
1175
- type: 'string',
1176
- description: 'Logo of the chart listing',
1177
- example: 'https://portworx.com/wp-content/themes/portworx/assets/images/header/portworx-logo.png'
1178
- },
1179
- longDescription: {
1180
- type: 'string',
1181
- description: 'Long description of the chart listing',
1182
- example: 'Portworx-Enterprise is the complete multi-cloud ready Kubernetes storage platform for running mission-critical apps in production....'
1183
- },
1184
- categories: {
1185
- type: 'array',
1186
- items: {
1187
- type: 'string',
1188
- example: 'AI & Machine Learning'
918
+ description: 'Chart maintainers'
919
+ }
1189
920
  },
1190
- description: 'Tags of the chart'
1191
- },
1192
- version_channels: {
1193
- type: 'array',
1194
- items: {
1195
- type: 'string',
1196
- 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-]+)*))?$',
1197
- description: 'Version of the chart.',
1198
- example: '2.x.x-cfke.x'
1199
- }
1200
- },
1201
- value_schemas: {
1202
- type: 'array',
1203
- items: {
1204
- type: 'object',
1205
- properties: {
1206
- version: {
1207
- type: 'string',
1208
- 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-]+)*))?$',
1209
- description: 'Version of the chart.',
1210
- example: '2.1.1-cfke.123'
1211
- },
1212
- schema: {
1213
- type: 'string',
1214
- description: 'Schema of the chart values. JSON Schema as string'
1215
- },
1216
- placeholder: {
1217
- type: 'string',
1218
- description: 'Schema of the chart values',
1219
- example: `foo: 1
1220
- bar: example`
1221
- }
1222
- },
1223
- required: ['version', 'schema', 'placeholder'],
1224
- additionalProperties: false
1225
- }
921
+ required: ['name', 'version'],
922
+ additionalProperties: false,
923
+ description: 'Chart metadata'
1226
924
  }
1227
925
  },
1228
- required: ['id', 'name', 'developer', 'description', 'logoUrl', 'longDescription', 'categories', 'version_channels', 'value_schemas'],
926
+ required: ['name', 'versions', 'version_channels', 'latestVersion'],
1229
927
  additionalProperties: false
1230
928
  };
1231
929
  export const OrganizationCreateInputSchema = {
@@ -1317,12 +1015,6 @@ export const OrganizationSchema = {
1317
1015
  description: 'Maximum number of fleets that can be created per cluster.',
1318
1016
  example: 999
1319
1017
  },
1320
- managed_fleets_cpu_max: {
1321
- type: 'integer',
1322
- minimum: 0,
1323
- description: 'Maximum number of CPU cores per managed fleet.',
1324
- example: 999
1325
- },
1326
1018
  cluster_tiers: {
1327
1019
  type: 'array',
1328
1020
  items: {
@@ -1349,12 +1041,12 @@ export const OrganizationSchema = {
1349
1041
  id: {
1350
1042
  type: 'string',
1351
1043
  description: 'Id of the control plane version. Used in API calls.',
1352
- example: '1.29.x-cfke.x'
1044
+ example: '1.33.x-cfke.x'
1353
1045
  },
1354
1046
  label: {
1355
1047
  type: 'string',
1356
1048
  description: 'Label of the control plane version. Used in frontent UI.',
1357
- example: '1.29.x (Always latest 1.29 patch version)'
1049
+ example: '1.33.x (Always latest 1.33 patch version)'
1358
1050
  }
1359
1051
  },
1360
1052
  required: ['id', 'label'],
@@ -1364,7 +1056,7 @@ export const OrganizationSchema = {
1364
1056
  description: 'List of CFKE control plane versions available for the organization.'
1365
1057
  }
1366
1058
  },
1367
- required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'managed_fleets_cpu_max', 'cluster_tiers', 'regions', 'versions'],
1059
+ required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions'],
1368
1060
  additionalProperties: false,
1369
1061
  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.'
1370
1062
  },
@@ -1430,6 +1122,261 @@ export const PaymentMethodSchema = {
1430
1122
  required: ['id', 'setup', 'type', 'last4', 'exp_month', 'exp_year', 'brand'],
1431
1123
  additionalProperties: false
1432
1124
  };
1125
+ export const PlatformQuotaSchema = {
1126
+ type: 'object',
1127
+ properties: {
1128
+ basic_clusters_max: {
1129
+ type: 'integer',
1130
+ minimum: 0,
1131
+ description: 'Maximum number of Basic clusters that can be created.',
1132
+ example: 999
1133
+ },
1134
+ basic_clusters_available: {
1135
+ type: 'integer',
1136
+ description: 'Available number of Basic clusters that can be created.',
1137
+ example: 999
1138
+ },
1139
+ pro_clusters_max: {
1140
+ type: 'integer',
1141
+ minimum: 0,
1142
+ description: 'Maximum number of Pro clusters that can be created.',
1143
+ example: 999
1144
+ },
1145
+ pro_clusters_available: {
1146
+ type: 'integer',
1147
+ description: 'Available number of Pro clusters that can be created.',
1148
+ example: 999
1149
+ },
1150
+ fleets_max: {
1151
+ type: 'integer',
1152
+ minimum: 0,
1153
+ description: 'Maximum number of fleets that can be created per cluster.',
1154
+ example: 999
1155
+ },
1156
+ cluster_tiers: {
1157
+ type: 'array',
1158
+ items: {
1159
+ type: 'string',
1160
+ example: 'basic'
1161
+ },
1162
+ minItems: 0,
1163
+ description: 'List of Cloudfleet cluster tiers available for the organization.'
1164
+ },
1165
+ regions: {
1166
+ type: 'array',
1167
+ items: {
1168
+ type: 'string',
1169
+ example: 'northamerica-central-1'
1170
+ },
1171
+ minItems: 1,
1172
+ description: 'List of Cloudfleet control plane regions available for the organization.'
1173
+ },
1174
+ versions: {
1175
+ type: 'array',
1176
+ items: {
1177
+ type: 'object',
1178
+ properties: {
1179
+ id: {
1180
+ type: 'string',
1181
+ description: 'Id of the control plane version. Used in API calls.',
1182
+ example: '1.33.x-cfke.x'
1183
+ },
1184
+ label: {
1185
+ type: 'string',
1186
+ description: 'Label of the control plane version. Used in frontent UI.',
1187
+ example: '1.33.x (Always latest 1.33 patch version)'
1188
+ }
1189
+ },
1190
+ required: ['id', 'label'],
1191
+ additionalProperties: false
1192
+ },
1193
+ minItems: 1,
1194
+ description: 'List of CFKE control plane versions available for the organization.'
1195
+ }
1196
+ },
1197
+ required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions'],
1198
+ additionalProperties: false
1199
+ };
1200
+ export const RegistryRepositorySchema = {
1201
+ type: 'object',
1202
+ properties: {
1203
+ name: {
1204
+ type: 'string',
1205
+ description: 'Repository name.',
1206
+ example: 'my-app'
1207
+ },
1208
+ region: {
1209
+ type: 'string',
1210
+ description: 'Registry region.',
1211
+ example: 'northamerica'
1212
+ },
1213
+ uri: {
1214
+ type: 'string',
1215
+ description: 'Full URI of the repository.',
1216
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
1217
+ }
1218
+ },
1219
+ required: ['name', 'region', 'uri'],
1220
+ additionalProperties: false
1221
+ };
1222
+ export const RegistryRepositoryWithTagsSchema = {
1223
+ type: 'object',
1224
+ properties: {
1225
+ name: {
1226
+ type: 'string',
1227
+ description: 'Repository name.',
1228
+ example: 'my-app'
1229
+ },
1230
+ region: {
1231
+ type: 'string',
1232
+ description: 'Registry region.',
1233
+ example: 'northamerica'
1234
+ },
1235
+ uri: {
1236
+ type: 'string',
1237
+ description: 'Full URI of the repository.',
1238
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
1239
+ },
1240
+ tags: {
1241
+ type: 'array',
1242
+ items: {
1243
+ type: 'object',
1244
+ properties: {
1245
+ name: {
1246
+ type: 'string',
1247
+ description: 'Tag name.',
1248
+ example: 'latest'
1249
+ },
1250
+ size: {
1251
+ type: 'number',
1252
+ format: 'float',
1253
+ description: 'Size of the tag in bytes.',
1254
+ example: 123456789
1255
+ },
1256
+ mediaType: {
1257
+ type: 'string',
1258
+ description: 'Media type of the manifest.',
1259
+ example: 'application/vnd.docker.distribution.manifest.v2+json'
1260
+ }
1261
+ },
1262
+ required: ['name', 'size'],
1263
+ additionalProperties: false
1264
+ },
1265
+ description: 'Array of tags in the repository.'
1266
+ },
1267
+ totalSize: {
1268
+ type: 'number',
1269
+ format: 'float',
1270
+ description: 'Total size of all tags in the repository in bytes.',
1271
+ example: 987654321
1272
+ }
1273
+ },
1274
+ required: ['name', 'region', 'uri', 'tags', 'totalSize'],
1275
+ additionalProperties: false
1276
+ };
1277
+ export const RegistryTagSchema = {
1278
+ type: 'object',
1279
+ properties: {
1280
+ name: {
1281
+ type: 'string',
1282
+ description: 'Tag name.',
1283
+ example: 'latest'
1284
+ },
1285
+ mediaType: {
1286
+ type: 'string',
1287
+ description: 'Media type of the manifest.',
1288
+ example: 'application/vnd.docker.distribution.manifest.v2+json'
1289
+ },
1290
+ config: {
1291
+ type: 'object',
1292
+ properties: {
1293
+ size: {
1294
+ type: 'number',
1295
+ format: 'float',
1296
+ description: 'Size of the config in bytes.',
1297
+ example: 1234
1298
+ }
1299
+ },
1300
+ required: ['size'],
1301
+ additionalProperties: false,
1302
+ description: 'Manifest config metadata.'
1303
+ },
1304
+ layers: {
1305
+ type: 'array',
1306
+ items: {
1307
+ type: 'object',
1308
+ properties: {
1309
+ size: {
1310
+ type: 'number',
1311
+ format: 'float',
1312
+ description: 'Size of the layer in bytes.',
1313
+ example: 5678
1314
+ }
1315
+ },
1316
+ required: ['size'],
1317
+ additionalProperties: false
1318
+ },
1319
+ description: 'Array of layer metadata.'
1320
+ },
1321
+ manifests: {
1322
+ type: 'array',
1323
+ items: {
1324
+ type: 'object',
1325
+ properties: {
1326
+ digest: {
1327
+ type: 'string',
1328
+ description: 'Digest of the manifest.',
1329
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
1330
+ },
1331
+ platform: {
1332
+ type: 'object',
1333
+ properties: {
1334
+ architecture: {
1335
+ type: 'string',
1336
+ description: 'Architecture of the platform.',
1337
+ example: 'amd64'
1338
+ },
1339
+ os: {
1340
+ type: 'string',
1341
+ description: 'Operating system of the platform.',
1342
+ example: 'linux'
1343
+ }
1344
+ },
1345
+ required: ['architecture', 'os'],
1346
+ additionalProperties: false,
1347
+ description: 'Platform information for the manifest.'
1348
+ }
1349
+ },
1350
+ required: ['digest'],
1351
+ additionalProperties: false
1352
+ },
1353
+ description: 'Array of manifests for multi-arch images.'
1354
+ },
1355
+ size: {
1356
+ type: 'number',
1357
+ format: 'float',
1358
+ description: 'Total size of the tag in bytes.',
1359
+ example: 123456789
1360
+ },
1361
+ region: {
1362
+ type: 'string',
1363
+ description: 'Registry region.',
1364
+ example: 'northamerica'
1365
+ },
1366
+ repository: {
1367
+ type: 'string',
1368
+ description: 'Repository name.',
1369
+ example: 'my-app'
1370
+ },
1371
+ uri: {
1372
+ type: 'string',
1373
+ description: 'Full URI of the tag.',
1374
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
1375
+ }
1376
+ },
1377
+ required: ['name', 'size', 'region', 'repository', 'uri'],
1378
+ additionalProperties: false
1379
+ };
1433
1380
  export const TokenCreateInputSchema = {
1434
1381
  type: 'object',
1435
1382
  properties: {
@@ -1508,6 +1455,101 @@ export const TokenUpdateInputSchema = {
1508
1455
  },
1509
1456
  additionalProperties: false
1510
1457
  };
1458
+ export const UsageFacetsSchema = {
1459
+ type: 'object',
1460
+ properties: {
1461
+ cluster_id: {
1462
+ type: 'array',
1463
+ items: {
1464
+ type: 'string'
1465
+ },
1466
+ description: 'List of unique cluster IDs',
1467
+ example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
1468
+ },
1469
+ product: {
1470
+ type: 'array',
1471
+ items: {
1472
+ type: 'string'
1473
+ },
1474
+ description: 'List of unique products',
1475
+ example: ['cfke_controlplane', 'cfke_connected_nodes']
1476
+ }
1477
+ },
1478
+ additionalProperties: false
1479
+ };
1480
+ export const UsageResponseSchema = {
1481
+ type: 'object',
1482
+ properties: {
1483
+ data: {
1484
+ type: 'array',
1485
+ items: {
1486
+ type: 'object',
1487
+ properties: {
1488
+ hour: {
1489
+ type: 'string',
1490
+ description: 'Hour of the usage',
1491
+ example: '2019-01-01T00:00:00.000Z'
1492
+ },
1493
+ cluster_id: {
1494
+ type: 'string',
1495
+ description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
1496
+ example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
1497
+ },
1498
+ product: {
1499
+ type: 'string',
1500
+ description: 'The product the usage is associated with',
1501
+ example: 'cfke_controlplane'
1502
+ },
1503
+ value: {
1504
+ type: 'number',
1505
+ format: 'float',
1506
+ description: 'Consumption',
1507
+ example: 4
1508
+ },
1509
+ price: {
1510
+ type: 'number',
1511
+ format: 'float',
1512
+ description: 'Price per unit',
1513
+ example: 0.01
1514
+ },
1515
+ total: {
1516
+ type: 'number',
1517
+ format: 'float',
1518
+ description: 'Total cost'
1519
+ }
1520
+ },
1521
+ required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
1522
+ additionalProperties: false
1523
+ },
1524
+ description: 'Usage data'
1525
+ },
1526
+ facets: {
1527
+ type: 'object',
1528
+ properties: {
1529
+ cluster_id: {
1530
+ type: 'array',
1531
+ items: {
1532
+ type: 'string'
1533
+ },
1534
+ description: 'List of unique cluster IDs',
1535
+ example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
1536
+ },
1537
+ product: {
1538
+ type: 'array',
1539
+ items: {
1540
+ type: 'string'
1541
+ },
1542
+ description: 'List of unique products',
1543
+ example: ['cfke_controlplane', 'cfke_connected_nodes']
1544
+ }
1545
+ },
1546
+ additionalProperties: false,
1547
+ description: 'Facets for filtering'
1548
+ }
1549
+ },
1550
+ required: ['data', 'facets'],
1551
+ additionalProperties: false
1552
+ };
1511
1553
  export const UsageSchema = {
1512
1554
  type: 'object',
1513
1555
  properties: {
@@ -1518,90 +1560,33 @@ export const UsageSchema = {
1518
1560
  },
1519
1561
  cluster_id: {
1520
1562
  type: 'string',
1521
- format: 'uuid',
1522
1563
  description: 'Unique identifier of the kubernetes cluster. UUID v4 string in canonical form',
1523
1564
  example: '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
1524
1565
  },
1525
- cluster_tier: {
1526
- type: 'string',
1527
- description: 'Tier of the cluster.',
1528
- example: 'pro',
1529
- enum: ['']
1530
- },
1531
1566
  product: {
1532
1567
  type: 'string',
1533
1568
  description: 'The product the usage is associated with',
1534
- example: 'cfke_infra_compute',
1535
- enum: ['cfke_infra_compute', 'cfke_nodes', 'cfke_controlplane']
1536
- },
1537
- node_name: {
1538
- type: 'string',
1539
- description: 'Name of the Kubernetes node',
1540
- example: 'flexible-moth-956037384'
1569
+ example: 'cfke_controlplane'
1541
1570
  },
1542
- sku: {
1543
- type: 'string',
1544
- description: 'SKU of the Kubernetes node',
1545
- example: 'GCP-NORTHAMERICA-NORTHEAST1-A-G1-SMALL-SPOT'
1546
- },
1547
- cpu: {
1548
- anyOf: [
1549
- {
1550
- type: 'number',
1551
- format: 'float',
1552
- description: 'CPU core count of the node',
1553
- example: 4
1554
- },
1555
- {
1556
- type: 'string',
1557
- enum: ['']
1558
- }
1559
- ]
1571
+ value: {
1572
+ type: 'number',
1573
+ format: 'float',
1574
+ description: 'Consumption',
1575
+ example: 4
1560
1576
  },
1561
1577
  price: {
1562
- anyOf: [
1563
- {
1564
- type: 'number',
1565
- format: 'float',
1566
- description: 'Price',
1567
- example: 4
1568
- },
1569
- {
1570
- type: 'string',
1571
- enum: ['']
1572
- }
1573
- ]
1574
- },
1575
- value: {
1576
- anyOf: [
1577
- {
1578
- type: 'number',
1579
- format: 'float',
1580
- description: 'Value',
1581
- example: 4
1582
- },
1583
- {
1584
- type: 'string',
1585
- enum: ['']
1586
- }
1587
- ]
1578
+ type: 'number',
1579
+ format: 'float',
1580
+ description: 'Price per unit',
1581
+ example: 0.01
1588
1582
  },
1589
1583
  total: {
1590
- anyOf: [
1591
- {
1592
- type: 'number',
1593
- format: 'float',
1594
- description: 'Total',
1595
- example: 4
1596
- },
1597
- {
1598
- type: 'string',
1599
- enum: ['']
1600
- }
1601
- ]
1584
+ type: 'number',
1585
+ format: 'float',
1586
+ description: 'Total cost'
1602
1587
  }
1603
1588
  },
1604
- required: ['cluster_id', 'cluster_tier', 'product', 'node_name', 'sku', 'cpu', 'price', 'value', 'total'],
1589
+ required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
1605
1590
  additionalProperties: false
1606
1591
  };
1607
1592
  export const UserCreateInputSchema = {