@cloudfleet/sdk 0.0.1-cb875c6 → 0.0.1-cdd334c

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 (54) hide show
  1. package/dist/client/client.gen.d.ts.map +1 -1
  2. package/dist/client/client.gen.js +39 -8
  3. package/dist/client/client.gen.js.map +1 -1
  4. package/dist/client/index.d.ts +1 -1
  5. package/dist/client/index.d.ts.map +1 -1
  6. package/dist/client/index.js.map +1 -1
  7. package/dist/client/types.gen.d.ts +4 -11
  8. package/dist/client/types.gen.d.ts.map +1 -1
  9. package/dist/client/utils.gen.d.ts +1 -1
  10. package/dist/client/utils.gen.d.ts.map +1 -1
  11. package/dist/client/utils.gen.js +10 -12
  12. package/dist/client/utils.gen.js.map +1 -1
  13. package/dist/client.gen.d.ts.map +1 -1
  14. package/dist/client.gen.js +1 -3
  15. package/dist/client.gen.js.map +1 -1
  16. package/dist/core/auth.gen.d.ts.map +1 -1
  17. package/dist/core/auth.gen.js.map +1 -1
  18. package/dist/core/bodySerializer.gen.d.ts +16 -8
  19. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  20. package/dist/core/bodySerializer.gen.js +1 -1
  21. package/dist/core/bodySerializer.gen.js.map +1 -1
  22. package/dist/core/params.gen.d.ts +10 -0
  23. package/dist/core/params.gen.d.ts.map +1 -1
  24. package/dist/core/params.gen.js +18 -6
  25. package/dist/core/params.gen.js.map +1 -1
  26. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  27. package/dist/core/pathSerializer.gen.js +3 -11
  28. package/dist/core/pathSerializer.gen.js.map +1 -1
  29. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  30. package/dist/core/queryKeySerializer.gen.js +4 -11
  31. package/dist/core/queryKeySerializer.gen.js.map +1 -1
  32. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  33. package/dist/core/serverSentEvents.gen.js +5 -7
  34. package/dist/core/serverSentEvents.gen.js.map +1 -1
  35. package/dist/core/types.gen.d.ts +1 -1
  36. package/dist/core/types.gen.d.ts.map +1 -1
  37. package/dist/core/utils.gen.d.ts.map +1 -1
  38. package/dist/core/utils.gen.js +1 -1
  39. package/dist/core/utils.gen.js.map +1 -1
  40. package/dist/schemas.gen.d.ts +220 -73
  41. package/dist/schemas.gen.d.ts.map +1 -1
  42. package/dist/schemas.gen.js +763 -159
  43. package/dist/schemas.gen.js.map +1 -1
  44. package/dist/sdk.gen.d.ts +7 -5
  45. package/dist/sdk.gen.d.ts.map +1 -1
  46. package/dist/sdk.gen.js +40 -143
  47. package/dist/sdk.gen.js.map +1 -1
  48. package/dist/types.gen.d.ts +153 -41
  49. package/dist/types.gen.d.ts.map +1 -1
  50. package/dist/zod.gen.d.ts +436 -591
  51. package/dist/zod.gen.d.ts.map +1 -1
  52. package/dist/zod.gen.js +276 -488
  53. package/dist/zod.gen.js.map +1 -1
  54. package/package.json +8 -4
@@ -74,10 +74,142 @@ export const BillingContactSchema = {
74
74
  nullable: true,
75
75
  description: 'Type of the tax ID.',
76
76
  example: 'de_vat',
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', '']
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
+ ]
78
207
  }
79
208
  },
80
- required: ['email', 'individual_name'],
209
+ required: [
210
+ 'email',
211
+ 'individual_name'
212
+ ],
81
213
  additionalProperties: false
82
214
  };
83
215
  export const BillingCreditsSchema = {
@@ -92,7 +224,10 @@ export const BillingCreditsSchema = {
92
224
  type: 'string',
93
225
  description: 'Type of the promotional code.',
94
226
  example: 'credit',
95
- enum: ['credit', 'discount']
227
+ enum: [
228
+ 'credit',
229
+ 'discount'
230
+ ]
96
231
  },
97
232
  date_start: {
98
233
  type: 'string',
@@ -129,7 +264,12 @@ export const BillingCreditsSchema = {
129
264
  example: 8
130
265
  }
131
266
  },
132
- required: ['type', 'date_start', 'code', 'value_total'],
267
+ required: [
268
+ 'type',
269
+ 'date_start',
270
+ 'code',
271
+ 'value_total'
272
+ ],
133
273
  additionalProperties: false
134
274
  };
135
275
  export const ChartCreateInputSchema = {
@@ -170,7 +310,13 @@ export const ChartCreateInputSchema = {
170
310
  example: 'postgresql'
171
311
  }
172
312
  },
173
- required: ['values', 'version_channel', 'name', 'namespace', 'chart'],
313
+ required: [
314
+ 'values',
315
+ 'version_channel',
316
+ 'name',
317
+ 'namespace',
318
+ 'chart'
319
+ ],
174
320
  additionalProperties: false
175
321
  };
176
322
  export const ChartSchema = {
@@ -214,7 +360,22 @@ export const ChartSchema = {
214
360
  type: 'string',
215
361
  description: 'Status of the chart deployment.',
216
362
  example: 'active',
217
- 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
+ ]
218
379
  },
219
380
  version_current: {
220
381
  type: 'string',
@@ -237,7 +398,18 @@ export const ChartSchema = {
237
398
  example: true
238
399
  }
239
400
  },
240
- 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
+ ],
241
413
  additionalProperties: false
242
414
  };
243
415
  export const ChartUpdateInputSchema = {
@@ -254,7 +426,10 @@ export const ChartUpdateInputSchema = {
254
426
  example: '2.x.x-cfke.x'
255
427
  }
256
428
  },
257
- required: ['values', 'version_channel'],
429
+ required: [
430
+ 'values',
431
+ 'version_channel'
432
+ ],
258
433
  additionalProperties: false
259
434
  };
260
435
  export const ClusterCreateInputSchema = {
@@ -272,24 +447,41 @@ export const ClusterCreateInputSchema = {
272
447
  type: 'string',
273
448
  description: 'Tier of the cluster.',
274
449
  example: 'pro',
275
- enum: ['basic', 'pro']
450
+ enum: [
451
+ 'basic',
452
+ 'pro'
453
+ ]
276
454
  },
277
455
  region: {
278
456
  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',
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',
281
459
  example: 'northamerica-central-1a',
282
- enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
460
+ enum: [
461
+ 'staging-1a',
462
+ 'northamerica-central-1',
463
+ 'europe-central-1a',
464
+ 'northamerica-central-1a'
465
+ ]
283
466
  },
284
467
  version_channel: {
285
468
  type: 'string',
286
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-]+)*))?$',
287
470
  description: 'Version of the kubernetes cluster.',
288
471
  default: '1.x.x-cfke.x',
289
- example: '1.33.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
+ ]
290
479
  }
291
480
  },
292
- required: ['name', 'tier'],
481
+ required: [
482
+ 'name',
483
+ 'tier'
484
+ ],
293
485
  additionalProperties: false
294
486
  };
295
487
  export const ClusterJoinInformationSchema = {
@@ -298,8 +490,7 @@ export const ClusterJoinInformationSchema = {
298
490
  certificate_authority: {
299
491
  type: 'string',
300
492
  description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
301
- example: `-----BEGIN CERTIFICATE-----
302
- MIIC0DCCAbigAwIBAgI...`
493
+ example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
303
494
  },
304
495
  endpoint: {
305
496
  type: 'string',
@@ -307,6 +498,11 @@ MIIC0DCCAbigAwIBAgI...`
307
498
  description: 'Internal URL of the Kubernetes cluster control plane. This is the endpoint that kubelet uses to connect to the cluster.',
308
499
  example: 'https://10.31.64.7:6443'
309
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
+ },
310
506
  auth_key: {
311
507
  type: 'string',
312
508
  description: 'Authentication key for the cluster.',
@@ -341,7 +537,12 @@ MIIC0DCCAbigAwIBAgI...`
341
537
  example: '565.0.0'
342
538
  }
343
539
  },
344
- required: ['kubernetes', 'tailscale', 'containerd', 'nvidia_driver'],
540
+ required: [
541
+ 'kubernetes',
542
+ 'tailscale',
543
+ 'containerd',
544
+ 'nvidia_driver'
545
+ ],
345
546
  additionalProperties: false,
346
547
  description: 'Versions of the different components of the cluster.'
347
548
  },
@@ -364,12 +565,24 @@ MIIC0DCCAbigAwIBAgI...`
364
565
  example: '//iam.googleapis.com/projects/89014267864/locations/global/workloadIdentityPools/cfke/providers/oidc'
365
566
  }
366
567
  },
367
- 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
+ ],
368
573
  additionalProperties: false,
369
- 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.'
370
575
  }
371
576
  },
372
- 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
+ ],
373
586
  additionalProperties: false
374
587
  };
375
588
  export const ClusterSchema = {
@@ -387,21 +600,22 @@ export const ClusterSchema = {
387
600
  type: 'string',
388
601
  description: 'Tier of the cluster.',
389
602
  example: 'pro',
390
- enum: ['basic', 'pro']
603
+ enum: [
604
+ 'basic',
605
+ 'pro'
606
+ ]
391
607
  },
392
608
  region: {
393
609
  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',
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',
396
612
  example: 'northamerica-central-1a',
397
- enum: ['staging', 'northamerica-central-1', 'europe-central-1a', 'northamerica-central-1a']
398
- },
399
- version_channel: {
400
- type: 'string',
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-]+)*))?$',
402
- description: 'Version of the kubernetes cluster.',
403
- default: '1.x.x-cfke.x',
404
- example: '1.33.x-cfke.x'
613
+ enum: [
614
+ 'staging-1a',
615
+ 'northamerica-central-1',
616
+ 'europe-central-1a',
617
+ 'northamerica-central-1a'
618
+ ]
405
619
  },
406
620
  id: {
407
621
  type: 'string',
@@ -413,7 +627,15 @@ export const ClusterSchema = {
413
627
  type: 'string',
414
628
  description: 'Status of the cluster. When creating a new cluster, set to `active`. When deleting a clusters, set to `deleted`.',
415
629
  example: 'active',
416
- enum: ['active', 'disabled', 'deleted', 'creating', 'deployed', 'failed', 'updating']
630
+ enum: [
631
+ 'active',
632
+ 'disabled',
633
+ 'deleted',
634
+ 'creating',
635
+ 'deployed',
636
+ 'failed',
637
+ 'updating'
638
+ ]
417
639
  },
418
640
  endpoint: {
419
641
  anyOf: [
@@ -425,15 +647,16 @@ export const ClusterSchema = {
425
647
  },
426
648
  {
427
649
  type: 'string',
428
- enum: ['']
650
+ enum: [
651
+ ''
652
+ ]
429
653
  }
430
654
  ]
431
655
  },
432
656
  certificate_ca: {
433
657
  type: 'string',
434
658
  description: 'Certificate authority data for the kubernetes cluster. This is the root certificate authority for the cluster.',
435
- example: `-----BEGIN CERTIFICATE-----
436
- MIIC0DCCAbigAwIBAgI...`
659
+ example: '-----BEGIN CERTIFICATE-----\nMIIC0DCCAbigAwIBAgI...'
437
660
  },
438
661
  version_current: {
439
662
  type: 'string',
@@ -454,9 +677,20 @@ MIIC0DCCAbigAwIBAgI...`
454
677
  type: 'boolean',
455
678
  description: 'Indicates if the cluster is ready to be used.',
456
679
  example: true
680
+ },
681
+ version_channel: {
682
+ type: 'string',
683
+ 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-]+)*))?$',
684
+ description: 'Version of the kubernetes cluster.',
685
+ example: '1.x.x-cfke.x'
457
686
  }
458
687
  },
459
- required: ['name', 'tier', 'id', 'status'],
688
+ required: [
689
+ 'name',
690
+ 'tier',
691
+ 'id',
692
+ 'status'
693
+ ],
460
694
  additionalProperties: false
461
695
  };
462
696
  export const ClusterUpdateInputSchema = {
@@ -474,16 +708,21 @@ export const ClusterUpdateInputSchema = {
474
708
  type: 'string',
475
709
  description: 'Tier of the cluster.',
476
710
  example: 'pro',
477
- enum: ['basic', 'pro']
711
+ enum: [
712
+ 'basic',
713
+ 'pro'
714
+ ]
478
715
  },
479
716
  version_channel: {
480
717
  type: 'string',
481
718
  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-]+)*))?$',
482
719
  description: 'Version of the kubernetes cluster.',
483
- example: '1.33.x-cfke.x'
720
+ example: '1.x.x-cfke.x'
484
721
  }
485
722
  },
486
- required: ['tier'],
723
+ required: [
724
+ 'tier'
725
+ ],
487
726
  additionalProperties: false
488
727
  };
489
728
  export const FleetCreateInputSchema = {
@@ -499,7 +738,9 @@ export const FleetCreateInputSchema = {
499
738
  description: 'CPU limit in cores.'
500
739
  }
501
740
  },
502
- required: ['cpu'],
741
+ required: [
742
+ 'cpu'
743
+ ],
503
744
  additionalProperties: false,
504
745
  description: 'Limits define a set of bounds for provisioning capacity.'
505
746
  },
@@ -515,7 +756,9 @@ export const FleetCreateInputSchema = {
515
756
  description: 'Project GCP Project id to deploy instances into'
516
757
  }
517
758
  },
518
- required: ['project'],
759
+ required: [
760
+ 'project'
761
+ ],
519
762
  additionalProperties: false
520
763
  },
521
764
  hetzner: {
@@ -530,7 +773,9 @@ export const FleetCreateInputSchema = {
530
773
  description: 'Hetzner Cloud API key with read / write access'
531
774
  }
532
775
  },
533
- required: ['apiKey'],
776
+ required: [
777
+ 'apiKey'
778
+ ],
534
779
  additionalProperties: false
535
780
  },
536
781
  aws: {
@@ -545,7 +790,9 @@ export const FleetCreateInputSchema = {
545
790
  description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
546
791
  }
547
792
  },
548
- required: ['controllerRoleArn'],
793
+ required: [
794
+ 'controllerRoleArn'
795
+ ],
549
796
  additionalProperties: false
550
797
  },
551
798
  id: {
@@ -557,7 +804,9 @@ export const FleetCreateInputSchema = {
557
804
  example: 'new-clouds-fleet'
558
805
  }
559
806
  },
560
- required: ['id'],
807
+ required: [
808
+ 'id'
809
+ ],
561
810
  additionalProperties: false
562
811
  };
563
812
  export const FleetSchema = {
@@ -573,7 +822,9 @@ export const FleetSchema = {
573
822
  description: 'CPU limit in cores.'
574
823
  }
575
824
  },
576
- required: ['cpu'],
825
+ required: [
826
+ 'cpu'
827
+ ],
577
828
  additionalProperties: false,
578
829
  description: 'Limits define a set of bounds for provisioning capacity.'
579
830
  },
@@ -589,7 +840,9 @@ export const FleetSchema = {
589
840
  description: 'Project GCP Project id to deploy instances into'
590
841
  }
591
842
  },
592
- required: ['project'],
843
+ required: [
844
+ 'project'
845
+ ],
593
846
  additionalProperties: false
594
847
  },
595
848
  hetzner: {
@@ -604,7 +857,9 @@ export const FleetSchema = {
604
857
  description: 'Hetzner Cloud API key with read / write access'
605
858
  }
606
859
  },
607
- required: ['apiKey'],
860
+ required: [
861
+ 'apiKey'
862
+ ],
608
863
  additionalProperties: false
609
864
  },
610
865
  aws: {
@@ -619,7 +874,9 @@ export const FleetSchema = {
619
874
  description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
620
875
  }
621
876
  },
622
- required: ['controllerRoleArn'],
877
+ required: [
878
+ 'controllerRoleArn'
879
+ ],
623
880
  additionalProperties: false
624
881
  },
625
882
  id: {
@@ -631,7 +888,9 @@ export const FleetSchema = {
631
888
  example: 'new-clouds-fleet'
632
889
  }
633
890
  },
634
- required: ['id'],
891
+ required: [
892
+ 'id'
893
+ ],
635
894
  additionalProperties: false
636
895
  };
637
896
  export const FleetUpdateInputSchema = {
@@ -647,7 +906,9 @@ export const FleetUpdateInputSchema = {
647
906
  description: 'CPU limit in cores.'
648
907
  }
649
908
  },
650
- required: ['cpu'],
909
+ required: [
910
+ 'cpu'
911
+ ],
651
912
  additionalProperties: false,
652
913
  description: 'Limits define a set of bounds for provisioning capacity.'
653
914
  },
@@ -663,7 +924,9 @@ export const FleetUpdateInputSchema = {
663
924
  description: 'Project GCP Project id to deploy instances into'
664
925
  }
665
926
  },
666
- required: ['project'],
927
+ required: [
928
+ 'project'
929
+ ],
667
930
  additionalProperties: false
668
931
  },
669
932
  hetzner: {
@@ -678,7 +941,9 @@ export const FleetUpdateInputSchema = {
678
941
  description: 'Hetzner Cloud API key with read / write access'
679
942
  }
680
943
  },
681
- required: ['apiKey'],
944
+ required: [
945
+ 'apiKey'
946
+ ],
682
947
  additionalProperties: false
683
948
  },
684
949
  aws: {
@@ -693,7 +958,9 @@ export const FleetUpdateInputSchema = {
693
958
  description: 'ControllerRoleArn is the AWS IAM role that Karpenter uses to manage resources.'
694
959
  }
695
960
  },
696
- required: ['controllerRoleArn'],
961
+ required: [
962
+ 'controllerRoleArn'
963
+ ],
697
964
  additionalProperties: false
698
965
  }
699
966
  },
@@ -731,7 +998,9 @@ export const InviteSchema = {
731
998
  example: '7kUZnH7nnKUFfvc4NK2KQF'
732
999
  }
733
1000
  },
734
- required: ['date_created'],
1001
+ required: [
1002
+ 'date_created'
1003
+ ],
735
1004
  additionalProperties: false
736
1005
  };
737
1006
  export const InvoiceSchema = {
@@ -739,9 +1008,8 @@ export const InvoiceSchema = {
739
1008
  properties: {
740
1009
  id: {
741
1010
  type: 'string',
742
- format: 'uuid',
743
- description: 'Unique identifier of the invoice. UUID v4 string in canonical form',
744
- example: '415026b6-f00f-44f8-968d-fc6ef4d0fc6d'
1011
+ description: 'Unique identifier of the invoice.',
1012
+ example: 'in_1234567890xCrwxghOTj1234'
745
1013
  },
746
1014
  number: {
747
1015
  type: 'string'
@@ -784,90 +1052,165 @@ export const InvoiceSchema = {
784
1052
  type: 'string'
785
1053
  }
786
1054
  },
787
- required: ['created', 'period_start', 'period_end'],
1055
+ required: [
1056
+ 'created',
1057
+ 'period_start',
1058
+ 'period_end'
1059
+ ],
788
1060
  additionalProperties: false
789
1061
  };
790
- export const MarketplaceListingSchema = {
1062
+ export const MarketplaceListingFilesSchema = {
791
1063
  type: 'object',
792
1064
  properties: {
793
- id: {
794
- type: 'string',
795
- maxLength: 63,
796
- minLength: 1,
797
- pattern: '^[a-z0-9]([-a-z0-9]*[a-z0-9])?$',
798
- description: 'Id of the chart listing',
799
- example: 'portworx-enterprise-disaster-recovery-baremetal'
800
- },
801
- name: {
1065
+ chartYaml: {
802
1066
  type: 'string',
803
- description: 'Name of the chart listing',
804
- example: 'Portworx Enterprise + Disaster Recovery - Baremetal'
805
- },
806
- developer: {
807
- type: 'string',
808
- description: 'Author of the chart listing',
809
- example: 'Portworx'
1067
+ description: 'Raw Chart.yaml content from the Helm chart',
1068
+ example: 'apiVersion: v2\nname: nginx-ingress\nversion: 1.18.2-cfke.45\nappVersion: 1.9.4'
810
1069
  },
811
- description: {
1070
+ valuesYaml: {
812
1071
  type: 'string',
813
- description: 'Short description of the chart listing',
814
- example: 'Run Kubernetes with unmatched scalability, availability, and self-service access to any storage'
1072
+ description: 'Raw values.yaml content from the Helm chart',
1073
+ example: 'replicaCount: 1\nimage:\n repository: nginx\n tag: latest'
815
1074
  },
816
- logoUrl: {
1075
+ valuesSchemaJson: {
817
1076
  type: 'string',
818
- description: 'Logo of the chart listing',
819
- example: 'https://portworx.com/wp-content/themes/portworx/assets/images/header/portworx-logo.png'
820
- },
821
- longDescription: {
1077
+ description: 'JSON schema for values.yaml as a string',
1078
+ example: '{"type":"object","properties":{"replicaCount":{"type":"number"}}}'
1079
+ }
1080
+ },
1081
+ additionalProperties: false
1082
+ };
1083
+ export const MarketplaceListingSchema = {
1084
+ type: 'object',
1085
+ properties: {
1086
+ name: {
822
1087
  type: 'string',
823
- description: 'Long description of the chart listing',
824
- example: 'Portworx-Enterprise is the complete multi-cloud ready Kubernetes storage platform for running mission-critical apps in production....'
1088
+ description: 'Name of the chart',
1089
+ example: 'nginx-ingress'
825
1090
  },
826
- categories: {
1091
+ versions: {
827
1092
  type: 'array',
828
1093
  items: {
829
1094
  type: 'string',
830
- example: 'AI & Machine Learning'
1095
+ 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-]+)*))?$',
1096
+ description: 'Specific version of the chart',
1097
+ example: '1.18.2-cfke.45'
831
1098
  },
832
- description: 'Tags of the chart'
1099
+ description: 'Available versions of the chart'
833
1100
  },
834
1101
  version_channels: {
835
1102
  type: 'array',
836
1103
  items: {
837
1104
  type: 'string',
838
1105
  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-]+)*))?$',
839
- description: 'Version of the chart.',
840
- example: '2.x.x-cfke.x'
841
- }
1106
+ description: 'Version channel pattern',
1107
+ example: '1.18.x-cfke.x'
1108
+ },
1109
+ description: 'Version channels for the chart'
842
1110
  },
843
- value_schemas: {
844
- type: 'array',
845
- items: {
846
- type: 'object',
847
- properties: {
848
- version: {
849
- type: 'string',
850
- 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-]+)*))?$',
851
- description: 'Version of the chart.',
852
- example: '2.1.1-cfke.123'
1111
+ latestVersion: {
1112
+ type: 'string',
1113
+ description: 'Latest version of the chart',
1114
+ example: '1.18.2-cfke.45'
1115
+ },
1116
+ metadata: {
1117
+ type: 'object',
1118
+ properties: {
1119
+ name: {
1120
+ type: 'string',
1121
+ description: 'Chart name from metadata',
1122
+ example: 'nginx-ingress'
1123
+ },
1124
+ version: {
1125
+ type: 'string',
1126
+ description: 'Chart version from metadata',
1127
+ example: '1.18.2-cfke.45'
1128
+ },
1129
+ description: {
1130
+ type: 'string',
1131
+ description: 'Chart description',
1132
+ example: 'NGINX Ingress Controller for Kubernetes'
1133
+ },
1134
+ appVersion: {
1135
+ type: 'string',
1136
+ description: 'Application version',
1137
+ example: '1.9.4'
1138
+ },
1139
+ apiVersion: {
1140
+ type: 'string',
1141
+ description: 'Helm API version',
1142
+ example: 'v2'
1143
+ },
1144
+ keywords: {
1145
+ type: 'array',
1146
+ items: {
1147
+ type: 'string'
853
1148
  },
854
- schema: {
855
- type: 'string',
856
- description: 'Schema of the chart values. JSON Schema as string'
1149
+ description: 'Chart keywords',
1150
+ example: [
1151
+ 'ingress',
1152
+ 'nginx',
1153
+ 'load-balancer'
1154
+ ]
1155
+ },
1156
+ home: {
1157
+ type: 'string',
1158
+ description: 'Chart home URL',
1159
+ example: 'https://kubernetes.github.io/ingress-nginx/'
1160
+ },
1161
+ icon: {
1162
+ type: 'string',
1163
+ description: 'A URL to an SVG or PNG image to be used as an icon',
1164
+ example: 'https://cloudfleet.ai/images/marketplace/icons/ingress-nginx.png'
1165
+ },
1166
+ sources: {
1167
+ type: 'array',
1168
+ items: {
1169
+ type: 'string'
857
1170
  },
858
- placeholder: {
859
- type: 'string',
860
- description: 'Schema of the chart values',
861
- example: `foo: 1
862
- bar: example`
863
- }
1171
+ description: 'Chart source URLs',
1172
+ example: [
1173
+ 'https://github.com/kubernetes/ingress-nginx'
1174
+ ]
864
1175
  },
865
- required: ['version', 'schema', 'placeholder'],
866
- additionalProperties: false
867
- }
1176
+ maintainers: {
1177
+ type: 'array',
1178
+ items: {
1179
+ type: 'object',
1180
+ properties: {
1181
+ name: {
1182
+ type: 'string',
1183
+ description: 'Maintainer name',
1184
+ example: 'NGINX Team'
1185
+ },
1186
+ email: {
1187
+ type: 'string',
1188
+ description: 'Maintainer email',
1189
+ example: 'support@nginx.org'
1190
+ }
1191
+ },
1192
+ required: [
1193
+ 'name'
1194
+ ],
1195
+ additionalProperties: false
1196
+ },
1197
+ description: 'Chart maintainers'
1198
+ }
1199
+ },
1200
+ required: [
1201
+ 'name',
1202
+ 'version'
1203
+ ],
1204
+ additionalProperties: false,
1205
+ description: 'Chart metadata'
868
1206
  }
869
1207
  },
870
- required: ['id', 'name', 'developer', 'description', 'logoUrl', 'longDescription', 'categories', 'version_channels', 'value_schemas'],
1208
+ required: [
1209
+ 'name',
1210
+ 'versions',
1211
+ 'version_channels',
1212
+ 'latestVersion'
1213
+ ],
871
1214
  additionalProperties: false
872
1215
  };
873
1216
  export const OrganizationCreateInputSchema = {
@@ -903,7 +1246,13 @@ export const OrganizationCreateInputSchema = {
903
1246
  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.'
904
1247
  }
905
1248
  },
906
- required: ['email', 'first_name', 'last_name', 'company_name', 'password'],
1249
+ required: [
1250
+ 'email',
1251
+ 'first_name',
1252
+ 'last_name',
1253
+ 'company_name',
1254
+ 'password'
1255
+ ],
907
1256
  additionalProperties: false
908
1257
  };
909
1258
  export const OrganizationSchema = {
@@ -993,24 +1342,66 @@ export const OrganizationSchema = {
993
1342
  example: '1.33.x (Always latest 1.33 patch version)'
994
1343
  }
995
1344
  },
996
- required: ['id', 'label'],
1345
+ required: [
1346
+ 'id',
1347
+ 'label'
1348
+ ],
997
1349
  additionalProperties: false
998
1350
  },
999
1351
  minItems: 1,
1000
1352
  description: 'List of CFKE control plane versions available for the organization.'
1353
+ },
1354
+ copilot_user_hourly_tokens: {
1355
+ type: 'integer',
1356
+ minimum: 0,
1357
+ description: 'User-level maximum number of tokens Cloudfleet Copilot can process per hour.',
1358
+ example: 42000
1359
+ },
1360
+ copilot_organization_hourly_tokens: {
1361
+ type: 'integer',
1362
+ minimum: 0,
1363
+ description: 'Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.',
1364
+ example: 242000
1365
+ },
1366
+ cfcr_storage_gb: {
1367
+ type: 'integer',
1368
+ minimum: -1,
1369
+ description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
1370
+ example: 500
1001
1371
  }
1002
1372
  },
1003
- required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions'],
1373
+ required: [
1374
+ 'basic_clusters_max',
1375
+ 'basic_clusters_available',
1376
+ 'pro_clusters_max',
1377
+ 'pro_clusters_available',
1378
+ 'fleets_max',
1379
+ 'cluster_tiers',
1380
+ 'regions',
1381
+ 'versions',
1382
+ 'copilot_user_hourly_tokens',
1383
+ 'copilot_organization_hourly_tokens',
1384
+ 'cfcr_storage_gb'
1385
+ ],
1004
1386
  additionalProperties: false,
1005
1387
  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.'
1006
1388
  },
1007
1389
  status: {
1008
1390
  type: 'string',
1009
1391
  description: 'Status of the organization. Can be `active` or `closed`, or `suspended`.',
1010
- enum: ['active', 'closed', 'suspended']
1392
+ enum: [
1393
+ 'active',
1394
+ 'closed',
1395
+ 'suspended'
1396
+ ]
1011
1397
  }
1012
1398
  },
1013
- required: ['id', 'date_created', 'quota', 'status'],
1399
+ required: [
1400
+ 'id',
1401
+ 'date_created',
1402
+ 'quota',
1403
+ 'status'
1404
+ ],
1014
1405
  additionalProperties: false
1015
1406
  };
1016
1407
  export const PaymentMethodSchema = {
@@ -1032,7 +1423,9 @@ export const PaymentMethodSchema = {
1032
1423
  nullable: true,
1033
1424
  description: 'Payment method type type. Only `card` payments supported at the moment.',
1034
1425
  example: 'card',
1035
- enum: ['card']
1426
+ enum: [
1427
+ 'card'
1428
+ ]
1036
1429
  },
1037
1430
  last4: {
1038
1431
  type: 'string',
@@ -1045,14 +1438,14 @@ export const PaymentMethodSchema = {
1045
1438
  minimum: 1,
1046
1439
  maximum: 12,
1047
1440
  nullable: true,
1048
- description: "Two-digit number representing the card's expiration month.",
1441
+ description: 'Two-digit number representing the card\'s expiration month.',
1049
1442
  example: '12'
1050
1443
  },
1051
1444
  exp_year: {
1052
1445
  type: 'integer',
1053
1446
  minimum: 2024,
1054
1447
  nullable: true,
1055
- description: "Four-digit number representing the card's expiration year.",
1448
+ description: 'Four-digit number representing the card\'s expiration year.',
1056
1449
  example: '2028'
1057
1450
  },
1058
1451
  brand: {
@@ -1060,10 +1453,28 @@ export const PaymentMethodSchema = {
1060
1453
  nullable: true,
1061
1454
  description: 'Payment card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.',
1062
1455
  example: 'visa',
1063
- enum: ['amex', 'diners', 'discover', 'eftpos_au', 'jcb', 'mastercard', 'unionpay', 'visa', 'unknown']
1456
+ enum: [
1457
+ 'amex',
1458
+ 'diners',
1459
+ 'discover',
1460
+ 'eftpos_au',
1461
+ 'jcb',
1462
+ 'mastercard',
1463
+ 'unionpay',
1464
+ 'visa',
1465
+ 'unknown'
1466
+ ]
1064
1467
  }
1065
1468
  },
1066
- required: ['id', 'setup', 'type', 'last4', 'exp_month', 'exp_year', 'brand'],
1469
+ required: [
1470
+ 'id',
1471
+ 'setup',
1472
+ 'type',
1473
+ 'last4',
1474
+ 'exp_month',
1475
+ 'exp_year',
1476
+ 'brand'
1477
+ ],
1067
1478
  additionalProperties: false
1068
1479
  };
1069
1480
  export const PlatformQuotaSchema = {
@@ -1131,14 +1542,47 @@ export const PlatformQuotaSchema = {
1131
1542
  example: '1.33.x (Always latest 1.33 patch version)'
1132
1543
  }
1133
1544
  },
1134
- required: ['id', 'label'],
1545
+ required: [
1546
+ 'id',
1547
+ 'label'
1548
+ ],
1135
1549
  additionalProperties: false
1136
1550
  },
1137
1551
  minItems: 1,
1138
1552
  description: 'List of CFKE control plane versions available for the organization.'
1553
+ },
1554
+ copilot_user_hourly_tokens: {
1555
+ type: 'integer',
1556
+ minimum: 0,
1557
+ description: 'User-level maximum number of tokens Cloudfleet Copilot can process per hour.',
1558
+ example: 42000
1559
+ },
1560
+ copilot_organization_hourly_tokens: {
1561
+ type: 'integer',
1562
+ minimum: 0,
1563
+ description: 'Organization-level maximum number of tokens Cloudfleet Copilot can process per hour.',
1564
+ example: 242000
1565
+ },
1566
+ cfcr_storage_gb: {
1567
+ type: 'integer',
1568
+ minimum: -1,
1569
+ description: 'Organization-level maximum CFCR storage volume in GB. -1 means no limit.',
1570
+ example: 500
1139
1571
  }
1140
1572
  },
1141
- required: ['basic_clusters_max', 'basic_clusters_available', 'pro_clusters_max', 'pro_clusters_available', 'fleets_max', 'cluster_tiers', 'regions', 'versions'],
1573
+ required: [
1574
+ 'basic_clusters_max',
1575
+ 'basic_clusters_available',
1576
+ 'pro_clusters_max',
1577
+ 'pro_clusters_available',
1578
+ 'fleets_max',
1579
+ 'cluster_tiers',
1580
+ 'regions',
1581
+ 'versions',
1582
+ 'copilot_user_hourly_tokens',
1583
+ 'copilot_organization_hourly_tokens',
1584
+ 'cfcr_storage_gb'
1585
+ ],
1142
1586
  additionalProperties: false
1143
1587
  };
1144
1588
  export const RegistryRepositorySchema = {
@@ -1157,10 +1601,14 @@ export const RegistryRepositorySchema = {
1157
1601
  uri: {
1158
1602
  type: 'string',
1159
1603
  description: 'Full URI of the repository.',
1160
- example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
1604
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
1161
1605
  }
1162
1606
  },
1163
- required: ['name', 'region', 'uri'],
1607
+ required: [
1608
+ 'name',
1609
+ 'region',
1610
+ 'uri'
1611
+ ],
1164
1612
  additionalProperties: false
1165
1613
  };
1166
1614
  export const RegistryRepositoryWithTagsSchema = {
@@ -1179,7 +1627,7 @@ export const RegistryRepositoryWithTagsSchema = {
1179
1627
  uri: {
1180
1628
  type: 'string',
1181
1629
  description: 'Full URI of the repository.',
1182
- example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/v2/my-app'
1630
+ example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app'
1183
1631
  },
1184
1632
  tags: {
1185
1633
  type: 'array',
@@ -1201,9 +1649,23 @@ export const RegistryRepositoryWithTagsSchema = {
1201
1649
  type: 'string',
1202
1650
  description: 'Media type of the manifest.',
1203
1651
  example: 'application/vnd.docker.distribution.manifest.v2+json'
1652
+ },
1653
+ platforms: {
1654
+ type: 'array',
1655
+ items: {
1656
+ type: 'string'
1657
+ },
1658
+ description: 'Array of platform strings for multi-arch images (e.g., linux/amd64, linux/arm64).',
1659
+ example: [
1660
+ 'linux/amd64',
1661
+ 'linux/arm64'
1662
+ ]
1204
1663
  }
1205
1664
  },
1206
- required: ['name', 'size'],
1665
+ required: [
1666
+ 'name',
1667
+ 'size'
1668
+ ],
1207
1669
  additionalProperties: false
1208
1670
  },
1209
1671
  description: 'Array of tags in the repository.'
@@ -1215,7 +1677,13 @@ export const RegistryRepositoryWithTagsSchema = {
1215
1677
  example: 987654321
1216
1678
  }
1217
1679
  },
1218
- required: ['name', 'region', 'uri', 'tags', 'totalSize'],
1680
+ required: [
1681
+ 'name',
1682
+ 'region',
1683
+ 'uri',
1684
+ 'tags',
1685
+ 'totalSize'
1686
+ ],
1219
1687
  additionalProperties: false
1220
1688
  };
1221
1689
  export const RegistryTagSchema = {
@@ -1226,6 +1694,11 @@ export const RegistryTagSchema = {
1226
1694
  description: 'Tag name.',
1227
1695
  example: 'latest'
1228
1696
  },
1697
+ digest: {
1698
+ type: 'string',
1699
+ description: 'Manifest digest for pulling by digest.',
1700
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
1701
+ },
1229
1702
  mediaType: {
1230
1703
  type: 'string',
1231
1704
  description: 'Media type of the manifest.',
@@ -1241,7 +1714,9 @@ export const RegistryTagSchema = {
1241
1714
  example: 1234
1242
1715
  }
1243
1716
  },
1244
- required: ['size'],
1717
+ required: [
1718
+ 'size'
1719
+ ],
1245
1720
  additionalProperties: false,
1246
1721
  description: 'Manifest config metadata.'
1247
1722
  },
@@ -1250,6 +1725,11 @@ export const RegistryTagSchema = {
1250
1725
  items: {
1251
1726
  type: 'object',
1252
1727
  properties: {
1728
+ digest: {
1729
+ type: 'string',
1730
+ description: 'Digest of the layer.',
1731
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
1732
+ },
1253
1733
  size: {
1254
1734
  type: 'number',
1255
1735
  format: 'float',
@@ -1257,7 +1737,9 @@ export const RegistryTagSchema = {
1257
1737
  example: 5678
1258
1738
  }
1259
1739
  },
1260
- required: ['size'],
1740
+ required: [
1741
+ 'size'
1742
+ ],
1261
1743
  additionalProperties: false
1262
1744
  },
1263
1745
  description: 'Array of layer metadata.'
@@ -1284,14 +1766,54 @@ export const RegistryTagSchema = {
1284
1766
  type: 'string',
1285
1767
  description: 'Operating system of the platform.',
1286
1768
  example: 'linux'
1769
+ },
1770
+ variant: {
1771
+ type: 'string',
1772
+ description: 'Variant of the platform (e.g., v7, v8 for ARM).',
1773
+ example: 'v8'
1287
1774
  }
1288
1775
  },
1289
- required: ['architecture', 'os'],
1776
+ required: [
1777
+ 'architecture',
1778
+ 'os'
1779
+ ],
1290
1780
  additionalProperties: false,
1291
1781
  description: 'Platform information for the manifest.'
1782
+ },
1783
+ layers: {
1784
+ type: 'array',
1785
+ items: {
1786
+ type: 'object',
1787
+ properties: {
1788
+ digest: {
1789
+ type: 'string',
1790
+ description: 'Digest of the layer.',
1791
+ example: 'sha256:abcd1234ef567890abcd1234ef567890abcd1234ef567890abcd1234ef567890'
1792
+ },
1793
+ size: {
1794
+ type: 'number',
1795
+ format: 'float',
1796
+ description: 'Size of the layer in bytes.',
1797
+ example: 5678
1798
+ }
1799
+ },
1800
+ required: [
1801
+ 'size'
1802
+ ],
1803
+ additionalProperties: false
1804
+ },
1805
+ description: 'Layers for this platform.'
1806
+ },
1807
+ size: {
1808
+ type: 'number',
1809
+ format: 'float',
1810
+ description: 'Total size of this platform manifest in bytes.',
1811
+ example: 12345678
1292
1812
  }
1293
1813
  },
1294
- required: ['digest'],
1814
+ required: [
1815
+ 'digest'
1816
+ ],
1295
1817
  additionalProperties: false
1296
1818
  },
1297
1819
  description: 'Array of manifests for multi-arch images.'
@@ -1318,7 +1840,14 @@ export const RegistryTagSchema = {
1318
1840
  example: 'ssds123e-6651-4e5d-9c04-079f6532989b.northamerica.registry.cloudfleet.dev/my-app:latest'
1319
1841
  }
1320
1842
  },
1321
- required: ['name', 'size', 'region', 'repository', 'uri'],
1843
+ required: [
1844
+ 'name',
1845
+ 'digest',
1846
+ 'size',
1847
+ 'region',
1848
+ 'repository',
1849
+ 'uri'
1850
+ ],
1322
1851
  additionalProperties: false
1323
1852
  };
1324
1853
  export const TokenCreateInputSchema = {
@@ -1336,10 +1865,16 @@ export const TokenCreateInputSchema = {
1336
1865
  type: 'string',
1337
1866
  description: 'Role assumed by the token.',
1338
1867
  example: 'User',
1339
- enum: ['Administrator', 'User']
1868
+ enum: [
1869
+ 'Administrator',
1870
+ 'User'
1871
+ ]
1340
1872
  }
1341
1873
  },
1342
- required: ['name', 'role'],
1874
+ required: [
1875
+ 'name',
1876
+ 'role'
1877
+ ],
1343
1878
  additionalProperties: false
1344
1879
  };
1345
1880
  export const TokenSchema = {
@@ -1357,7 +1892,10 @@ export const TokenSchema = {
1357
1892
  type: 'string',
1358
1893
  description: 'Role assumed by the token.',
1359
1894
  example: 'User',
1360
- enum: ['Administrator', 'User']
1895
+ enum: [
1896
+ 'Administrator',
1897
+ 'User'
1898
+ ]
1361
1899
  },
1362
1900
  id: {
1363
1901
  type: 'string',
@@ -1376,7 +1914,11 @@ export const TokenSchema = {
1376
1914
  example: '2023-12-20T13:53:32.000Z'
1377
1915
  }
1378
1916
  },
1379
- required: ['name', 'role', 'date_created'],
1917
+ required: [
1918
+ 'name',
1919
+ 'role',
1920
+ 'date_created'
1921
+ ],
1380
1922
  additionalProperties: false
1381
1923
  };
1382
1924
  export const TokenUpdateInputSchema = {
@@ -1394,7 +1936,10 @@ export const TokenUpdateInputSchema = {
1394
1936
  type: 'string',
1395
1937
  description: 'Role assumed by the token.',
1396
1938
  example: 'User',
1397
- enum: ['Administrator', 'User']
1939
+ enum: [
1940
+ 'Administrator',
1941
+ 'User'
1942
+ ]
1398
1943
  }
1399
1944
  },
1400
1945
  additionalProperties: false
@@ -1408,7 +1953,9 @@ export const UsageFacetsSchema = {
1408
1953
  type: 'string'
1409
1954
  },
1410
1955
  description: 'List of unique cluster IDs',
1411
- example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
1956
+ example: [
1957
+ '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
1958
+ ]
1412
1959
  },
1413
1960
  product: {
1414
1961
  type: 'array',
@@ -1416,7 +1963,10 @@ export const UsageFacetsSchema = {
1416
1963
  type: 'string'
1417
1964
  },
1418
1965
  description: 'List of unique products',
1419
- example: ['cfke_controlplane', 'cfke_connected_nodes']
1966
+ example: [
1967
+ 'cfke_controlplane',
1968
+ 'cfke_connected_nodes'
1969
+ ]
1420
1970
  }
1421
1971
  },
1422
1972
  additionalProperties: false
@@ -1462,7 +2012,14 @@ export const UsageResponseSchema = {
1462
2012
  description: 'Total cost'
1463
2013
  }
1464
2014
  },
1465
- required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
2015
+ required: [
2016
+ 'hour',
2017
+ 'cluster_id',
2018
+ 'product',
2019
+ 'value',
2020
+ 'price',
2021
+ 'total'
2022
+ ],
1466
2023
  additionalProperties: false
1467
2024
  },
1468
2025
  description: 'Usage data'
@@ -1476,7 +2033,9 @@ export const UsageResponseSchema = {
1476
2033
  type: 'string'
1477
2034
  },
1478
2035
  description: 'List of unique cluster IDs',
1479
- example: ['6b5439b1-923a-4f2b-a371-d554e5ea23fa']
2036
+ example: [
2037
+ '6b5439b1-923a-4f2b-a371-d554e5ea23fa'
2038
+ ]
1480
2039
  },
1481
2040
  product: {
1482
2041
  type: 'array',
@@ -1484,14 +2043,20 @@ export const UsageResponseSchema = {
1484
2043
  type: 'string'
1485
2044
  },
1486
2045
  description: 'List of unique products',
1487
- example: ['cfke_controlplane', 'cfke_connected_nodes']
2046
+ example: [
2047
+ 'cfke_controlplane',
2048
+ 'cfke_connected_nodes'
2049
+ ]
1488
2050
  }
1489
2051
  },
1490
2052
  additionalProperties: false,
1491
2053
  description: 'Facets for filtering'
1492
2054
  }
1493
2055
  },
1494
- required: ['data', 'facets'],
2056
+ required: [
2057
+ 'data',
2058
+ 'facets'
2059
+ ],
1495
2060
  additionalProperties: false
1496
2061
  };
1497
2062
  export const UsageSchema = {
@@ -1530,7 +2095,14 @@ export const UsageSchema = {
1530
2095
  description: 'Total cost'
1531
2096
  }
1532
2097
  },
1533
- required: ['hour', 'cluster_id', 'product', 'value', 'price', 'total'],
2098
+ required: [
2099
+ 'hour',
2100
+ 'cluster_id',
2101
+ 'product',
2102
+ 'value',
2103
+ 'price',
2104
+ 'total'
2105
+ ],
1534
2106
  additionalProperties: false
1535
2107
  };
1536
2108
  export const UserCreateInputSchema = {
@@ -1571,16 +2143,28 @@ export const UserCreateInputSchema = {
1571
2143
  type: 'string',
1572
2144
  description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1573
2145
  example: 'active',
1574
- enum: ['active', 'inactive']
2146
+ enum: [
2147
+ 'active',
2148
+ 'inactive'
2149
+ ]
1575
2150
  },
1576
2151
  role: {
1577
2152
  type: 'string',
1578
- description: "User role. Can be 'Administrator', 'User'.",
2153
+ description: 'User role. Can be \'Administrator\', \'User\'.',
1579
2154
  example: 'User',
1580
- enum: ['Administrator', 'User']
2155
+ enum: [
2156
+ 'Administrator',
2157
+ 'User'
2158
+ ]
1581
2159
  }
1582
2160
  },
1583
- required: ['email', 'first_name', 'last_name', 'code', 'password'],
2161
+ required: [
2162
+ 'email',
2163
+ 'first_name',
2164
+ 'last_name',
2165
+ 'code',
2166
+ 'password'
2167
+ ],
1584
2168
  additionalProperties: false
1585
2169
  };
1586
2170
  export const UserSchema = {
@@ -1608,15 +2192,21 @@ export const UserSchema = {
1608
2192
  },
1609
2193
  role: {
1610
2194
  type: 'string',
1611
- description: "User role. Can be 'Administrator', 'User'.",
2195
+ description: 'User role. Can be \'Administrator\', \'User\'.',
1612
2196
  example: 'User',
1613
- enum: ['Administrator', 'User']
2197
+ enum: [
2198
+ 'Administrator',
2199
+ 'User'
2200
+ ]
1614
2201
  },
1615
2202
  status: {
1616
2203
  type: 'string',
1617
2204
  description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1618
2205
  example: 'active',
1619
- enum: ['active', 'inactive']
2206
+ enum: [
2207
+ 'active',
2208
+ 'inactive'
2209
+ ]
1620
2210
  },
1621
2211
  id: {
1622
2212
  type: 'string',
@@ -1631,7 +2221,15 @@ export const UserSchema = {
1631
2221
  example: '2023-11-02T16:08:14.338Z'
1632
2222
  }
1633
2223
  },
1634
- required: ['email', 'first_name', 'last_name', 'role', 'status', 'id', 'date_created'],
2224
+ required: [
2225
+ 'email',
2226
+ 'first_name',
2227
+ 'last_name',
2228
+ 'role',
2229
+ 'status',
2230
+ 'id',
2231
+ 'date_created'
2232
+ ],
1635
2233
  additionalProperties: false
1636
2234
  };
1637
2235
  export const UserUpdateInputSchema = {
@@ -1659,15 +2257,21 @@ export const UserUpdateInputSchema = {
1659
2257
  },
1660
2258
  role: {
1661
2259
  type: 'string',
1662
- description: "User role. Can be 'Administrator', 'User'.",
2260
+ description: 'User role. Can be \'Administrator\', \'User\'.',
1663
2261
  example: 'User',
1664
- enum: ['Administrator', 'User']
2262
+ enum: [
2263
+ 'Administrator',
2264
+ 'User'
2265
+ ]
1665
2266
  },
1666
2267
  status: {
1667
2268
  type: 'string',
1668
2269
  description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
1669
2270
  example: 'active',
1670
- enum: ['active', 'inactive']
2271
+ enum: [
2272
+ 'active',
2273
+ 'inactive'
2274
+ ]
1671
2275
  }
1672
2276
  },
1673
2277
  additionalProperties: false