@cloudfleet/sdk 0.0.1-8e8e76c → 0.0.1-8ec217c

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 +235 -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 +118 -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 +229 -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 +2 -4
  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 +26 -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 +44 -0
  30. package/dist/core/params.gen.d.ts.map +1 -0
  31. package/dist/core/params.gen.js +101 -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 +107 -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 +93 -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 +134 -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 +832 -504
  54. package/dist/schemas.gen.d.ts.map +1 -1
  55. package/dist/schemas.gen.js +1341 -588
  56. package/dist/schemas.gen.js.map +1 -1
  57. package/dist/sdk.gen.d.ts +190 -67
  58. package/dist/sdk.gen.d.ts.map +1 -1
  59. package/dist/sdk.gen.js +245 -158
  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 +819 -296
  63. package/dist/types.gen.d.ts.map +1 -1
  64. package/dist/zod.gen.d.ts +1871 -1954
  65. package/dist/zod.gen.d.ts.map +1 -1
  66. package/dist/zod.gen.js +865 -757
  67. package/dist/zod.gen.js.map +1 -1
  68. package/package.json +10 -7
package/dist/zod.gen.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { z } from 'zod';
2
+ import * as z from 'zod';
3
3
  export const zBillingContact = z.object({
4
4
  company: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/).optional(),
5
5
  address1: z.string().optional(),
@@ -9,45 +9,215 @@ export const zBillingContact = z.object({
9
9
  state: z.string().optional(),
10
10
  country: z.string().optional(),
11
11
  phone: z.string().optional(),
12
- email: z.string().email(),
13
- first_name: z.string(),
14
- last_name: z.string()
12
+ email: z.email(),
13
+ individual_name: z.string(),
14
+ tax_id: z.string().optional(),
15
+ tax_id_type: z.enum([
16
+ 'ad_nrt',
17
+ 'ae_trn',
18
+ 'al_tin',
19
+ 'am_tin',
20
+ 'ao_tin',
21
+ 'ar_cuit',
22
+ 'at_vat',
23
+ 'au_abn',
24
+ 'au_arn',
25
+ 'ba_tin',
26
+ 'bb_tin',
27
+ 'be_vat',
28
+ 'bg_uic',
29
+ 'bg_vat',
30
+ 'bh_vat',
31
+ 'bo_tin',
32
+ 'br_cnpj',
33
+ 'br_cpf',
34
+ 'bs_tin',
35
+ 'by_tin',
36
+ 'ca_bn',
37
+ 'ca_gst_hst',
38
+ 'ca_pst_bc',
39
+ 'ca_pst_mb',
40
+ 'ca_pst_sk',
41
+ 'ca_qst',
42
+ 'cd_nif',
43
+ 'ch_uid',
44
+ 'ch_vat',
45
+ 'cl_tin',
46
+ 'cn_tin',
47
+ 'co_nit',
48
+ 'cr_tin',
49
+ 'cy_vat',
50
+ 'cz_vat',
51
+ 'de_stn',
52
+ 'de_vat',
53
+ 'dk_vat',
54
+ 'do_rcn',
55
+ 'ec_ruc',
56
+ 'ee_vat',
57
+ 'eg_tin',
58
+ 'es_cif',
59
+ 'es_vat',
60
+ 'eu_oss_vat',
61
+ 'fi_vat',
62
+ 'fr_vat',
63
+ 'gb_vat',
64
+ 'ge_vat',
65
+ 'gn_nif',
66
+ 'gr_vat',
67
+ 'hk_br',
68
+ 'hr_oib',
69
+ 'hr_vat',
70
+ 'hu_tin',
71
+ 'hu_vat',
72
+ 'id_npwp',
73
+ 'ie_vat',
74
+ 'il_vat',
75
+ 'in_gst',
76
+ 'is_vat',
77
+ 'it_vat',
78
+ 'jp_cn',
79
+ 'jp_rn',
80
+ 'jp_trn',
81
+ 'ke_pin',
82
+ 'kh_tin',
83
+ 'kr_brn',
84
+ 'kz_bin',
85
+ 'li_uid',
86
+ 'li_vat',
87
+ 'lt_vat',
88
+ 'lu_vat',
89
+ 'lv_vat',
90
+ 'ma_vat',
91
+ 'md_vat',
92
+ 'me_pib',
93
+ 'mk_vat',
94
+ 'mr_nif',
95
+ 'mt_vat',
96
+ 'mx_rfc',
97
+ 'my_frp',
98
+ 'my_itn',
99
+ 'my_sst',
100
+ 'ng_tin',
101
+ 'nl_vat',
102
+ 'no_vat',
103
+ 'no_voec',
104
+ 'np_pan',
105
+ 'nz_gst',
106
+ 'om_vat',
107
+ 'pe_ruc',
108
+ 'ph_tin',
109
+ 'pl_vat',
110
+ 'pt_vat',
111
+ 'ro_tin',
112
+ 'ro_vat',
113
+ 'rs_pib',
114
+ 'ru_inn',
115
+ 'ru_kpp',
116
+ 'sa_vat',
117
+ 'se_vat',
118
+ 'sg_gst',
119
+ 'sg_uen',
120
+ 'si_tin',
121
+ 'si_vat',
122
+ 'sk_vat',
123
+ 'sn_ninea',
124
+ 'sr_fin',
125
+ 'sv_nit',
126
+ 'th_vat',
127
+ 'tj_tin',
128
+ 'tr_tin',
129
+ 'tw_vat',
130
+ 'tz_vat',
131
+ 'ua_vat',
132
+ 'ug_tin',
133
+ 'us_ein',
134
+ 'uy_ruc',
135
+ 'uz_tin',
136
+ 'uz_vat',
137
+ 've_rif',
138
+ 'vn_tin',
139
+ 'xi_vat',
140
+ 'za_vat',
141
+ 'zm_tin',
142
+ 'zw_tin',
143
+ ''
144
+ ]).optional()
15
145
  });
16
146
  export const zBillingCredits = z.object({
17
147
  id: z.string().optional(),
18
- date_created: z.string().datetime(),
148
+ type: z.enum(['credit', 'discount']),
149
+ date_start: z.iso.datetime(),
150
+ date_end: z.iso.datetime().optional(),
19
151
  code: z.string(),
20
152
  description: z.string().optional(),
21
- products: z.array(z.string()).optional(),
22
- type: z.enum([
23
- 'credit',
24
- 'discount'
25
- ]),
26
- value: z.number(),
27
- billing_period: z.string().datetime(),
153
+ value_total: z.number(),
28
154
  value_remaining: z.number().optional()
29
155
  });
156
+ export const zChartCreateInput = z.object({
157
+ values: z.string(),
158
+ version_channel: z.string().regex(/^(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-]+)*))?$/),
159
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
160
+ namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
161
+ chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
162
+ });
163
+ export const zChart = z.object({
164
+ values: z.string(),
165
+ version_channel: z.string().regex(/^(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-]+)*))?$/),
166
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
167
+ namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
168
+ chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
169
+ status: z.enum([
170
+ 'InstallSucceeded',
171
+ 'InstallFailed',
172
+ 'UpgradeSucceeded',
173
+ 'UpgradeFailed',
174
+ 'TestSucceeded',
175
+ 'TestFailed',
176
+ 'RollbackSucceeded',
177
+ 'RollbackFailed',
178
+ 'UninstallSucceeded',
179
+ 'UninstallFailed',
180
+ 'ArtifactFailed',
181
+ 'DependencyNotReady',
182
+ 'Progressing',
183
+ 'SourceNotReady'
184
+ ]),
185
+ version_current: z.string(),
186
+ created_at: z.string(),
187
+ updated_at: z.string(),
188
+ ready: z.boolean()
189
+ });
190
+ export const zChartUpdateInput = z.object({
191
+ values: z.string(),
192
+ version_channel: z.string().regex(/^(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-]+)*))?$/)
193
+ });
30
194
  export const zClusterCreateInput = z.object({
31
195
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
196
+ tier: z.enum(['basic', 'pro']),
32
197
  region: z.enum([
33
- 'staging',
34
- 'northamerica-central-1'
198
+ 'staging-1a',
199
+ 'northamerica-central-1',
200
+ 'europe-central-1a',
201
+ 'northamerica-central-1a'
35
202
  ]).optional(),
36
- tier: z.enum([
37
- 'basic',
38
- 'pro'
39
- ]),
40
- version_channel: z.string().regex(/^(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-]+)*))?$/).optional().default('1.x.x-cfke.x')
203
+ version_channel: z.enum([
204
+ '1.x.x-cfke.x',
205
+ '1.31.x-cfke.x',
206
+ '1.32.x-cfke.x',
207
+ '1.33.x-cfke.x'
208
+ ]).optional()
41
209
  });
42
210
  export const zClusterJoinInformation = z.object({
43
211
  certificate_authority: z.string(),
44
- endpoint: z.string().url(),
212
+ endpoint: z.url(),
213
+ cluster_dns: z.string(),
45
214
  auth_key: z.string(),
46
215
  bootstrap_token: z.string(),
47
216
  versions: z.object({
48
217
  kubernetes: z.string(),
49
218
  tailscale: z.string(),
50
- containerd: z.string()
219
+ containerd: z.string(),
220
+ nvidia_driver: z.string()
51
221
  }),
52
222
  third_party_api_access_config: z.object({
53
223
  metadata_url: z.string(),
@@ -57,18 +227,17 @@ export const zClusterJoinInformation = z.object({
57
227
  });
58
228
  export const zCluster = z.object({
59
229
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
+ tier: z.enum(['basic', 'pro']),
60
231
  region: z.enum([
61
- 'staging',
62
- 'northamerica-central-1'
232
+ 'staging-1a',
233
+ 'northamerica-central-1',
234
+ 'europe-central-1a',
235
+ 'northamerica-central-1a'
63
236
  ]).optional(),
64
- tier: z.enum([
65
- 'basic',
66
- 'pro'
67
- ]),
68
- version_channel: z.string().regex(/^(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-]+)*))?$/).optional().default('1.x.x-cfke.x'),
69
- id: z.string().uuid(),
237
+ id: z.uuid(),
70
238
  status: z.enum([
71
239
  'active',
240
+ 'disabled',
72
241
  'deleted',
73
242
  'creating',
74
243
  'deployed',
@@ -76,19 +245,19 @@ export const zCluster = z.object({
76
245
  'updating'
77
246
  ]),
78
247
  endpoint: z.union([
79
- z.string().url(),
80
- z.enum([
81
- ''
82
- ])
248
+ z.url(),
249
+ z.enum([''])
83
250
  ]).optional(),
84
251
  certificate_ca: z.string().optional(),
85
252
  version_current: z.string().optional(),
86
253
  created_at: z.string().optional(),
87
254
  updated_at: z.string().optional(),
88
- ready: z.boolean().optional()
255
+ ready: z.boolean().optional(),
256
+ version_channel: z.string().regex(/^(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-]+)*))?$/).optional()
89
257
  });
90
258
  export const zClusterUpdateInput = z.object({
91
259
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
260
+ tier: z.enum(['basic', 'pro']),
92
261
  version_channel: z.string().regex(/^(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-]+)*))?$/).optional()
93
262
  });
94
263
  export const zFleetCreateInput = z.object({
@@ -99,25 +268,15 @@ export const zFleetCreateInput = z.object({
99
268
  enabled: z.boolean().optional().default(true),
100
269
  project: z.string()
101
270
  }).optional(),
102
- hetzner: z.union([
103
- z.object({
104
- enabled: z.boolean().optional().default(true),
105
- apiKey: z.string().optional()
106
- }),
107
- z.object({
108
- apiKey: z.string().optional(),
109
- enabled: z.boolean().optional().default(true)
110
- })
111
- ]).optional(),
271
+ hetzner: z.object({
272
+ enabled: z.boolean().optional().default(true),
273
+ apiKey: z.string()
274
+ }).optional(),
112
275
  aws: z.object({
113
276
  enabled: z.boolean().optional().default(true),
114
277
  controllerRoleArn: z.string()
115
278
  }).optional(),
116
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
117
- type: z.enum([
118
- 'managed',
119
- 'connected'
120
- ])
279
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
121
280
  });
122
281
  export const zFleet = z.object({
123
282
  limits: z.object({
@@ -127,25 +286,15 @@ export const zFleet = z.object({
127
286
  enabled: z.boolean().optional().default(true),
128
287
  project: z.string()
129
288
  }).optional(),
130
- hetzner: z.union([
131
- z.object({
132
- enabled: z.boolean().optional().default(true),
133
- apiKey: z.string().optional()
134
- }),
135
- z.object({
136
- apiKey: z.string().optional(),
137
- enabled: z.boolean().optional().default(true)
138
- })
139
- ]).optional(),
289
+ hetzner: z.object({
290
+ enabled: z.boolean().optional().default(true),
291
+ apiKey: z.string()
292
+ }).optional(),
140
293
  aws: z.object({
141
294
  enabled: z.boolean().optional().default(true),
142
295
  controllerRoleArn: z.string()
143
296
  }).optional(),
144
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
145
- type: z.enum([
146
- 'managed',
147
- 'connected'
148
- ])
297
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
149
298
  });
150
299
  export const zFleetUpdateInput = z.object({
151
300
  limits: z.object({
@@ -155,16 +304,10 @@ export const zFleetUpdateInput = z.object({
155
304
  enabled: z.boolean().optional().default(true),
156
305
  project: z.string()
157
306
  }).optional(),
158
- hetzner: z.union([
159
- z.object({
160
- enabled: z.boolean().optional().default(true),
161
- apiKey: z.string().optional()
162
- }),
163
- z.object({
164
- apiKey: z.string().optional(),
165
- enabled: z.boolean().optional().default(true)
166
- })
167
- ]).optional(),
307
+ hetzner: z.object({
308
+ enabled: z.boolean().optional().default(true),
309
+ apiKey: z.string()
310
+ }).optional(),
168
311
  aws: z.object({
169
312
  enabled: z.boolean().optional().default(true),
170
313
  controllerRoleArn: z.string()
@@ -172,619 +315,74 @@ export const zFleetUpdateInput = z.object({
172
315
  });
173
316
  export const zInvite = z.object({
174
317
  id: z.string().optional(),
175
- organization_id: z.string().uuid().optional(),
176
- date_created: z.string().datetime(),
177
- email: z.string().email().optional(),
318
+ organization_id: z.uuid().optional(),
319
+ date_created: z.iso.datetime(),
320
+ email: z.email().optional(),
178
321
  code: z.string().optional()
179
322
  });
180
323
  export const zInvoice = z.object({
181
- id: z.string().uuid().optional(),
182
- organizationId: z.string().uuid().optional(),
183
- status: z.enum([
184
- 'DRAFT',
185
- 'COMMITTED',
186
- 'VOID'
187
- ]).optional(),
188
- amount: z.number().optional(),
189
- currency: z.enum([
190
- 'AED',
191
- 'AFN',
192
- 'ALL',
193
- 'AMD',
194
- 'ANG',
195
- 'AOA',
196
- 'ARS',
197
- 'AUD',
198
- 'AWG',
199
- 'AZN',
200
- 'BAM',
201
- 'BBD',
202
- 'BDT',
203
- 'BGN',
204
- 'BHD',
205
- 'BIF',
206
- 'BMD',
207
- 'BND',
208
- 'BOB',
209
- 'BRL',
210
- 'BSD',
211
- 'BTN',
212
- 'BWP',
213
- 'BYR',
214
- 'BZD',
215
- 'CAD',
216
- 'CDF',
217
- 'CHF',
218
- 'CLP',
219
- 'CNY',
220
- 'COP',
221
- 'CRC',
222
- 'CUC',
223
- 'CUP',
224
- 'CVE',
225
- 'CZK',
226
- 'DJF',
227
- 'DKK',
228
- 'DOP',
229
- 'DZD',
230
- 'EGP',
231
- 'ERN',
232
- 'ETB',
233
- 'EUR',
234
- 'FJD',
235
- 'FKP',
236
- 'GBP',
237
- 'GEL',
238
- 'GGP',
239
- 'GHS',
240
- 'GIP',
241
- 'GMD',
242
- 'GNF',
243
- 'GTQ',
244
- 'GYD',
245
- 'HKD',
246
- 'HNL',
247
- 'HRK',
248
- 'HTG',
249
- 'HUF',
250
- 'IDR',
251
- 'ILS',
252
- 'IMP',
253
- 'INR',
254
- 'IQD',
255
- 'IRR',
256
- 'ISK',
257
- 'JEP',
258
- 'JMD',
259
- 'JOD',
260
- 'JPY',
261
- 'KES',
262
- 'KGS',
263
- 'KHR',
264
- 'KMF',
265
- 'KPW',
266
- 'KRW',
267
- 'KWD',
268
- 'KYD',
269
- 'KZT',
270
- 'LAK',
271
- 'LBP',
272
- 'LKR',
273
- 'LRD',
274
- 'LSL',
275
- 'LTL',
276
- 'LVL',
277
- 'LYD',
278
- 'MAD',
279
- 'MDL',
280
- 'MGA',
281
- 'MKD',
282
- 'MMK',
283
- 'MNT',
284
- 'MOP',
285
- 'MRO',
286
- 'MUR',
287
- 'MVR',
288
- 'MWK',
289
- 'MXN',
290
- 'MYR',
291
- 'MZN',
292
- 'NAD',
293
- 'NGN',
294
- 'NIO',
295
- 'NOK',
296
- 'NPR',
297
- 'NZD',
298
- 'OMR',
299
- 'PAB',
300
- 'PEN',
301
- 'PGK',
302
- 'PHP',
303
- 'PKR',
304
- 'PLN',
305
- 'PYG',
306
- 'QAR',
307
- 'RON',
308
- 'RSD',
309
- 'RUB',
310
- 'RWF',
311
- 'SAR',
312
- 'SBD',
313
- 'SCR',
314
- 'SDG',
315
- 'SEK',
316
- 'SGD',
317
- 'SHP',
318
- 'SLL',
319
- 'SOS',
320
- 'SPL',
321
- 'SRD',
322
- 'STD',
323
- 'SVC',
324
- 'SYP',
325
- 'SZL',
326
- 'THB',
327
- 'TJS',
328
- 'TMT',
329
- 'TND',
330
- 'TOP',
331
- 'TRY',
332
- 'TTD',
333
- 'TVD',
334
- 'TWD',
335
- 'TZS',
336
- 'UAH',
337
- 'UGX',
338
- 'USD',
339
- 'UYU',
340
- 'UZS',
341
- 'VEF',
342
- 'VND',
343
- 'VUV',
344
- 'WST',
345
- 'XAF',
346
- 'XCD',
347
- 'XDR',
348
- 'XOF',
349
- 'XPF',
350
- 'YER',
351
- 'ZAR',
352
- 'ZMW',
353
- 'ZWD',
354
- 'BTC'
355
- ]).optional(),
356
- creditAdj: z.number().optional(),
357
- refundAdj: z.number().optional(),
358
- invoiceDate: z.string().optional(),
359
- targetDate: z.string().optional(),
360
- invoiceNumber: z.string().optional(),
361
- balance: z.number().optional(),
362
- bundleKeys: z.string().optional(),
363
- credits: z.array(z.object({
364
- id: z.string().uuid().optional(),
365
- linkedInvoiceItemId: z.string().uuid().optional(),
366
- productName: z.string().optional(),
367
- planName: z.string().optional(),
368
- phaseName: z.string().optional(),
369
- usageName: z.string().optional(),
370
- prettyProductName: z.string().optional(),
371
- prettyPlanName: z.string().optional(),
372
- prettyPhaseName: z.string().optional(),
373
- prettyUsageName: z.string().optional(),
374
- itemType: z.enum([
375
- 'EXTERNAL_CHARGE',
376
- 'FIXED',
377
- 'RECURRING',
378
- 'REPAIR_ADJ',
379
- 'CBA_ADJ',
380
- 'CREDIT_ADJ',
381
- 'ITEM_ADJ',
382
- 'USAGE',
383
- 'TAX',
384
- 'PARENT_SUMMARY'
385
- ]).optional(),
386
- description: z.string().optional(),
387
- startDate: z.string().optional(),
388
- endDate: z.string().optional(),
389
- amount: z.number().optional(),
390
- rate: z.number().optional(),
391
- currency: z.enum([
392
- 'AED',
393
- 'AFN',
394
- 'ALL',
395
- 'AMD',
396
- 'ANG',
397
- 'AOA',
398
- 'ARS',
399
- 'AUD',
400
- 'AWG',
401
- 'AZN',
402
- 'BAM',
403
- 'BBD',
404
- 'BDT',
405
- 'BGN',
406
- 'BHD',
407
- 'BIF',
408
- 'BMD',
409
- 'BND',
410
- 'BOB',
411
- 'BRL',
412
- 'BSD',
413
- 'BTN',
414
- 'BWP',
415
- 'BYR',
416
- 'BZD',
417
- 'CAD',
418
- 'CDF',
419
- 'CHF',
420
- 'CLP',
421
- 'CNY',
422
- 'COP',
423
- 'CRC',
424
- 'CUC',
425
- 'CUP',
426
- 'CVE',
427
- 'CZK',
428
- 'DJF',
429
- 'DKK',
430
- 'DOP',
431
- 'DZD',
432
- 'EGP',
433
- 'ERN',
434
- 'ETB',
435
- 'EUR',
436
- 'FJD',
437
- 'FKP',
438
- 'GBP',
439
- 'GEL',
440
- 'GGP',
441
- 'GHS',
442
- 'GIP',
443
- 'GMD',
444
- 'GNF',
445
- 'GTQ',
446
- 'GYD',
447
- 'HKD',
448
- 'HNL',
449
- 'HRK',
450
- 'HTG',
451
- 'HUF',
452
- 'IDR',
453
- 'ILS',
454
- 'IMP',
455
- 'INR',
456
- 'IQD',
457
- 'IRR',
458
- 'ISK',
459
- 'JEP',
460
- 'JMD',
461
- 'JOD',
462
- 'JPY',
463
- 'KES',
464
- 'KGS',
465
- 'KHR',
466
- 'KMF',
467
- 'KPW',
468
- 'KRW',
469
- 'KWD',
470
- 'KYD',
471
- 'KZT',
472
- 'LAK',
473
- 'LBP',
474
- 'LKR',
475
- 'LRD',
476
- 'LSL',
477
- 'LTL',
478
- 'LVL',
479
- 'LYD',
480
- 'MAD',
481
- 'MDL',
482
- 'MGA',
483
- 'MKD',
484
- 'MMK',
485
- 'MNT',
486
- 'MOP',
487
- 'MRO',
488
- 'MUR',
489
- 'MVR',
490
- 'MWK',
491
- 'MXN',
492
- 'MYR',
493
- 'MZN',
494
- 'NAD',
495
- 'NGN',
496
- 'NIO',
497
- 'NOK',
498
- 'NPR',
499
- 'NZD',
500
- 'OMR',
501
- 'PAB',
502
- 'PEN',
503
- 'PGK',
504
- 'PHP',
505
- 'PKR',
506
- 'PLN',
507
- 'PYG',
508
- 'QAR',
509
- 'RON',
510
- 'RSD',
511
- 'RUB',
512
- 'RWF',
513
- 'SAR',
514
- 'SBD',
515
- 'SCR',
516
- 'SDG',
517
- 'SEK',
518
- 'SGD',
519
- 'SHP',
520
- 'SLL',
521
- 'SOS',
522
- 'SPL',
523
- 'SRD',
524
- 'STD',
525
- 'SVC',
526
- 'SYP',
527
- 'SZL',
528
- 'THB',
529
- 'TJS',
530
- 'TMT',
531
- 'TND',
532
- 'TOP',
533
- 'TRY',
534
- 'TTD',
535
- 'TVD',
536
- 'TWD',
537
- 'TZS',
538
- 'UAH',
539
- 'UGX',
540
- 'USD',
541
- 'UYU',
542
- 'UZS',
543
- 'VEF',
544
- 'VND',
545
- 'VUV',
546
- 'WST',
547
- 'XAF',
548
- 'XCD',
549
- 'XDR',
550
- 'XOF',
551
- 'XPF',
552
- 'YER',
553
- 'ZAR',
554
- 'ZMW',
555
- 'ZWD',
556
- 'BTC'
557
- ]).optional(),
558
- quantity: z.number().optional(),
559
- itemDetails: z.string().optional(),
560
- catalogEffectiveDate: z.string().optional(),
561
- childItems: z.array(z.unknown()).optional()
562
- })).optional(),
563
- items: z.array(z.object({
564
- id: z.string().uuid().optional(),
565
- linkedInvoiceItemId: z.string().uuid().optional(),
566
- productName: z.string().optional(),
567
- planName: z.string().optional(),
568
- phaseName: z.string().optional(),
569
- usageName: z.string().optional(),
570
- prettyProductName: z.string().optional(),
571
- prettyPlanName: z.string().optional(),
572
- prettyPhaseName: z.string().optional(),
573
- prettyUsageName: z.string().optional(),
574
- itemType: z.enum([
575
- 'EXTERNAL_CHARGE',
576
- 'FIXED',
577
- 'RECURRING',
578
- 'REPAIR_ADJ',
579
- 'CBA_ADJ',
580
- 'CREDIT_ADJ',
581
- 'ITEM_ADJ',
582
- 'USAGE',
583
- 'TAX',
584
- 'PARENT_SUMMARY'
585
- ]).optional(),
324
+ id: z.string().optional(),
325
+ number: z.string().optional(),
326
+ status: z.string().optional(),
327
+ total: z.number().optional(),
328
+ currency: z.string().optional(),
329
+ created: z.iso.datetime(),
330
+ period_start: z.iso.datetime(),
331
+ period_end: z.iso.datetime(),
332
+ invoice_pdf: z.string().optional()
333
+ });
334
+ export const zMarketplaceListingFiles = z.object({
335
+ chartYaml: z.string().optional(),
336
+ valuesYaml: z.string().optional(),
337
+ valuesSchemaJson: z.string().optional()
338
+ });
339
+ export const zMarketplaceListing = z.object({
340
+ name: z.string(),
341
+ versions: z.array(z.string().regex(/^(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-]+)*))?$/)),
342
+ version_channels: z.array(z.string().regex(/^(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-]+)*))?$/)),
343
+ latestVersion: z.string(),
344
+ metadata: z.object({
345
+ name: z.string(),
346
+ version: z.string(),
586
347
  description: z.string().optional(),
587
- startDate: z.string().optional(),
588
- endDate: z.string().optional(),
589
- amount: z.number().optional(),
590
- rate: z.number().optional(),
591
- currency: z.enum([
592
- 'AED',
593
- 'AFN',
594
- 'ALL',
595
- 'AMD',
596
- 'ANG',
597
- 'AOA',
598
- 'ARS',
599
- 'AUD',
600
- 'AWG',
601
- 'AZN',
602
- 'BAM',
603
- 'BBD',
604
- 'BDT',
605
- 'BGN',
606
- 'BHD',
607
- 'BIF',
608
- 'BMD',
609
- 'BND',
610
- 'BOB',
611
- 'BRL',
612
- 'BSD',
613
- 'BTN',
614
- 'BWP',
615
- 'BYR',
616
- 'BZD',
617
- 'CAD',
618
- 'CDF',
619
- 'CHF',
620
- 'CLP',
621
- 'CNY',
622
- 'COP',
623
- 'CRC',
624
- 'CUC',
625
- 'CUP',
626
- 'CVE',
627
- 'CZK',
628
- 'DJF',
629
- 'DKK',
630
- 'DOP',
631
- 'DZD',
632
- 'EGP',
633
- 'ERN',
634
- 'ETB',
635
- 'EUR',
636
- 'FJD',
637
- 'FKP',
638
- 'GBP',
639
- 'GEL',
640
- 'GGP',
641
- 'GHS',
642
- 'GIP',
643
- 'GMD',
644
- 'GNF',
645
- 'GTQ',
646
- 'GYD',
647
- 'HKD',
648
- 'HNL',
649
- 'HRK',
650
- 'HTG',
651
- 'HUF',
652
- 'IDR',
653
- 'ILS',
654
- 'IMP',
655
- 'INR',
656
- 'IQD',
657
- 'IRR',
658
- 'ISK',
659
- 'JEP',
660
- 'JMD',
661
- 'JOD',
662
- 'JPY',
663
- 'KES',
664
- 'KGS',
665
- 'KHR',
666
- 'KMF',
667
- 'KPW',
668
- 'KRW',
669
- 'KWD',
670
- 'KYD',
671
- 'KZT',
672
- 'LAK',
673
- 'LBP',
674
- 'LKR',
675
- 'LRD',
676
- 'LSL',
677
- 'LTL',
678
- 'LVL',
679
- 'LYD',
680
- 'MAD',
681
- 'MDL',
682
- 'MGA',
683
- 'MKD',
684
- 'MMK',
685
- 'MNT',
686
- 'MOP',
687
- 'MRO',
688
- 'MUR',
689
- 'MVR',
690
- 'MWK',
691
- 'MXN',
692
- 'MYR',
693
- 'MZN',
694
- 'NAD',
695
- 'NGN',
696
- 'NIO',
697
- 'NOK',
698
- 'NPR',
699
- 'NZD',
700
- 'OMR',
701
- 'PAB',
702
- 'PEN',
703
- 'PGK',
704
- 'PHP',
705
- 'PKR',
706
- 'PLN',
707
- 'PYG',
708
- 'QAR',
709
- 'RON',
710
- 'RSD',
711
- 'RUB',
712
- 'RWF',
713
- 'SAR',
714
- 'SBD',
715
- 'SCR',
716
- 'SDG',
717
- 'SEK',
718
- 'SGD',
719
- 'SHP',
720
- 'SLL',
721
- 'SOS',
722
- 'SPL',
723
- 'SRD',
724
- 'STD',
725
- 'SVC',
726
- 'SYP',
727
- 'SZL',
728
- 'THB',
729
- 'TJS',
730
- 'TMT',
731
- 'TND',
732
- 'TOP',
733
- 'TRY',
734
- 'TTD',
735
- 'TVD',
736
- 'TWD',
737
- 'TZS',
738
- 'UAH',
739
- 'UGX',
740
- 'USD',
741
- 'UYU',
742
- 'UZS',
743
- 'VEF',
744
- 'VND',
745
- 'VUV',
746
- 'WST',
747
- 'XAF',
748
- 'XCD',
749
- 'XDR',
750
- 'XOF',
751
- 'XPF',
752
- 'YER',
753
- 'ZAR',
754
- 'ZMW',
755
- 'ZWD',
756
- 'BTC'
757
- ]).optional(),
758
- quantity: z.number().optional(),
759
- itemDetails: z.string().optional(),
760
- catalogEffectiveDate: z.string().optional(),
761
- childItems: z.array(z.unknown()).optional()
762
- })).optional()
348
+ appVersion: z.string().optional(),
349
+ apiVersion: z.string().optional(),
350
+ keywords: z.array(z.string()).optional(),
351
+ home: z.string().optional(),
352
+ icon: z.string().optional(),
353
+ sources: z.array(z.string()).optional(),
354
+ maintainers: z.array(z.object({
355
+ name: z.string(),
356
+ email: z.string().optional()
357
+ })).optional()
358
+ }).optional()
763
359
  });
764
360
  export const zOrganizationCreateInput = z.object({
765
- email: z.string().email(),
361
+ email: z.email(),
766
362
  first_name: z.string(),
767
363
  last_name: z.string(),
768
364
  company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
769
365
  password: z.string().min(8)
770
366
  });
771
367
  export const zOrganization = z.object({
772
- id: z.string().uuid(),
368
+ id: z.uuid(),
773
369
  name: z.string().min(2).max(120).optional(),
774
- date_created: z.string().datetime(),
370
+ date_created: z.iso.datetime(),
775
371
  quota: z.object({
776
- basic_clusters_max: z.number().int().gte(0),
777
- basic_clusters_available: z.number().int(),
778
- pro_clusters_max: z.number().int().gte(0),
779
- pro_clusters_available: z.number().int(),
780
- fleets_max: z.number().int().gte(0),
781
- managed_fleets_cpu_max: z.number().int().gte(0),
372
+ basic_clusters_max: z.int().gte(0),
373
+ basic_clusters_available: z.int(),
374
+ pro_clusters_max: z.int().gte(0),
375
+ pro_clusters_available: z.int(),
376
+ fleets_max: z.int().gte(0),
782
377
  cluster_tiers: z.array(z.string()).min(0),
783
378
  regions: z.array(z.string()).min(1),
784
379
  versions: z.array(z.object({
785
380
  id: z.string(),
786
381
  label: z.string()
787
- })).min(1)
382
+ })).min(1),
383
+ copilot_user_hourly_tokens: z.int().gte(0),
384
+ copilot_organization_hourly_tokens: z.int().gte(0),
385
+ cfcr_storage_gb: z.int().gte(-1)
788
386
  }),
789
387
  status: z.enum([
790
388
  'active',
@@ -793,14 +391,12 @@ export const zOrganization = z.object({
793
391
  ])
794
392
  });
795
393
  export const zPaymentMethod = z.object({
796
- id: z.string().uuid(),
394
+ id: z.uuid(),
797
395
  setup: z.boolean(),
798
- type: z.enum([
799
- 'card'
800
- ]),
396
+ type: z.enum(['card']),
801
397
  last4: z.string(),
802
- exp_month: z.number().int().gte(1).lte(12),
803
- exp_year: z.number().int().gte(2024),
398
+ exp_month: z.int().gte(1).lte(12),
399
+ exp_year: z.int().gte(2024),
804
400
  brand: z.enum([
805
401
  'amex',
806
402
  'diners',
@@ -813,151 +409,663 @@ export const zPaymentMethod = z.object({
813
409
  'unknown'
814
410
  ])
815
411
  });
412
+ export const zPlatformQuota = z.object({
413
+ basic_clusters_max: z.int().gte(0),
414
+ basic_clusters_available: z.int(),
415
+ pro_clusters_max: z.int().gte(0),
416
+ pro_clusters_available: z.int(),
417
+ fleets_max: z.int().gte(0),
418
+ cluster_tiers: z.array(z.string()).min(0),
419
+ regions: z.array(z.string()).min(1),
420
+ versions: z.array(z.object({
421
+ id: z.string(),
422
+ label: z.string()
423
+ })).min(1),
424
+ copilot_user_hourly_tokens: z.int().gte(0),
425
+ copilot_organization_hourly_tokens: z.int().gte(0),
426
+ cfcr_storage_gb: z.int().gte(-1)
427
+ });
428
+ export const zRegistryRepository = z.object({
429
+ name: z.string(),
430
+ region: z.string(),
431
+ uri: z.string()
432
+ });
433
+ export const zRegistryRepositoryWithTags = z.object({
434
+ name: z.string(),
435
+ region: z.string(),
436
+ uri: z.string(),
437
+ tags: z.array(z.object({
438
+ name: z.string(),
439
+ size: z.number(),
440
+ mediaType: z.string().optional(),
441
+ platforms: z.array(z.string()).optional()
442
+ })),
443
+ totalSize: z.number()
444
+ });
445
+ export const zRegistryTag = z.object({
446
+ name: z.string(),
447
+ digest: z.string(),
448
+ mediaType: z.string().optional(),
449
+ config: z.object({
450
+ size: z.number()
451
+ }).optional(),
452
+ layers: z.array(z.object({
453
+ digest: z.string().optional(),
454
+ size: z.number()
455
+ })).optional(),
456
+ manifests: z.array(z.object({
457
+ digest: z.string(),
458
+ platform: z.object({
459
+ architecture: z.string(),
460
+ os: z.string(),
461
+ variant: z.string().optional()
462
+ }).optional(),
463
+ layers: z.array(z.object({
464
+ digest: z.string().optional(),
465
+ size: z.number()
466
+ })).optional(),
467
+ size: z.number().optional()
468
+ })).optional(),
469
+ size: z.number(),
470
+ region: z.string(),
471
+ repository: z.string(),
472
+ uri: z.string()
473
+ });
816
474
  export const zTokenCreateInput = z.object({
817
475
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
818
- role: z.enum([
819
- 'Administrator',
820
- 'User'
821
- ])
476
+ role: z.enum(['Administrator', 'User'])
822
477
  });
823
478
  export const zToken = z.object({
824
479
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
825
- role: z.enum([
826
- 'Administrator',
827
- 'User'
828
- ]),
480
+ role: z.enum(['Administrator', 'User']),
829
481
  id: z.string().optional(),
830
482
  secret: z.string().optional(),
831
- date_created: z.string().datetime()
483
+ date_created: z.iso.datetime()
832
484
  });
833
485
  export const zTokenUpdateInput = z.object({
834
486
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
835
- role: z.enum([
836
- 'Administrator',
837
- 'User'
838
- ]).optional()
487
+ role: z.enum(['Administrator', 'User']).optional()
488
+ });
489
+ export const zUsageFacets = z.object({
490
+ cluster_id: z.array(z.string()).optional(),
491
+ product: z.array(z.string()).optional()
492
+ });
493
+ export const zUsageResponse = z.object({
494
+ data: z.array(z.object({
495
+ hour: z.string(),
496
+ cluster_id: z.string(),
497
+ product: z.string(),
498
+ value: z.number(),
499
+ price: z.number(),
500
+ total: z.number()
501
+ })),
502
+ facets: z.object({
503
+ cluster_id: z.array(z.string()).optional(),
504
+ product: z.array(z.string()).optional()
505
+ })
839
506
  });
840
507
  export const zUsage = z.object({
841
- hour: z.string().optional(),
842
- cluster_id: z.string().uuid(),
843
- cluster_tier: z.enum([
844
- ''
845
- ]),
846
- product: z.enum([
847
- 'cfke_infra_compute',
848
- 'cfke_nodes',
849
- 'cfke_controlplane'
850
- ]),
851
- node_name: z.string(),
852
- sku: z.string(),
853
- cpu: z.union([
854
- z.number(),
855
- z.enum([
856
- ''
857
- ])
858
- ]),
859
- price: z.union([
860
- z.number(),
861
- z.enum([
862
- ''
863
- ])
864
- ]),
865
- value: z.union([
866
- z.number(),
867
- z.enum([
868
- ''
869
- ])
870
- ]),
871
- total: z.union([
872
- z.number(),
873
- z.enum([
874
- ''
875
- ])
876
- ])
508
+ hour: z.string(),
509
+ cluster_id: z.string(),
510
+ product: z.string(),
511
+ value: z.number(),
512
+ price: z.number(),
513
+ total: z.number()
877
514
  });
878
515
  export const zUserCreateInput = z.object({
879
- email: z.string().email(),
516
+ email: z.email(),
880
517
  first_name: z.string().min(1).max(50),
881
518
  last_name: z.string().min(1).max(50),
882
519
  code: z.string(),
883
520
  password: z.string().min(8),
884
- status: z.enum([
885
- 'active',
886
- 'inactive'
887
- ]).optional(),
888
- role: z.enum([
889
- 'Administrator',
890
- 'User'
891
- ]).optional()
521
+ status: z.enum(['active', 'inactive']).optional(),
522
+ role: z.enum(['Administrator', 'User']).optional()
892
523
  });
893
524
  export const zUser = z.object({
894
- email: z.string().email(),
525
+ email: z.email(),
895
526
  first_name: z.string().min(1).max(50),
896
527
  last_name: z.string().min(1).max(50),
897
- role: z.enum([
898
- 'Administrator',
899
- 'User'
900
- ]),
901
- status: z.enum([
902
- 'active',
903
- 'inactive'
904
- ]),
905
- id: z.string().uuid(),
906
- date_created: z.string().datetime()
528
+ role: z.enum(['Administrator', 'User']),
529
+ status: z.enum(['active', 'inactive']),
530
+ id: z.uuid(),
531
+ date_created: z.iso.datetime()
907
532
  });
908
533
  export const zUserUpdateInput = z.object({
909
- email: z.string().email().optional(),
534
+ email: z.email().optional(),
910
535
  first_name: z.string().min(1).max(50).optional(),
911
536
  last_name: z.string().min(1).max(50).optional(),
912
- role: z.enum([
913
- 'Administrator',
914
- 'User'
915
- ]).optional(),
916
- status: z.enum([
917
- 'active',
918
- 'inactive'
919
- ]).optional()
537
+ role: z.enum(['Administrator', 'User']).optional(),
538
+ status: z.enum(['active', 'inactive']).optional()
539
+ });
540
+ export const zGetUsageData = z.object({
541
+ body: z.never().optional(),
542
+ path: z.never().optional(),
543
+ query: z.object({
544
+ granularity: z.enum([
545
+ 'hourly',
546
+ 'daily',
547
+ 'monthly'
548
+ ]).optional()
549
+ }).optional()
550
+ });
551
+ /**
552
+ * Usage data with facets for filtering
553
+ */
554
+ export const zGetUsageResponse = zUsageResponse;
555
+ export const zGetPaymentMethodData = z.object({
556
+ body: z.never().optional(),
557
+ path: z.never().optional(),
558
+ query: z.never().optional()
920
559
  });
921
- export const zGetUsageResponse = z.array(zUsage);
922
- export const zGetBalanceResponse = z.number();
560
+ /**
561
+ * Redacted payment card information.
562
+ */
923
563
  export const zGetPaymentMethodResponse = zPaymentMethod;
564
+ export const zGetPaymentMethodSecretData = z.object({
565
+ body: z.never().optional(),
566
+ path: z.never().optional(),
567
+ query: z.never().optional()
568
+ });
569
+ /**
570
+ * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
571
+ *
572
+ */
924
573
  export const zGetPaymentMethodSecretResponse = z.object({
925
574
  id: z.string().optional()
926
575
  });
576
+ export const zListInvoicesData = z.object({
577
+ body: z.never().optional(),
578
+ path: z.never().optional(),
579
+ query: z.never().optional()
580
+ });
581
+ /**
582
+ * An array of usage records.
583
+ */
927
584
  export const zListInvoicesResponse = z.array(zInvoice);
928
- export const zGetInvoiceResponse = z.object({
929
- html: z.string().optional()
585
+ export const zGetContactData = z.object({
586
+ body: z.never().optional(),
587
+ path: z.never().optional(),
588
+ query: z.never().optional()
930
589
  });
590
+ /**
591
+ * Returns a single object containing organization contact and billing address details.
592
+ */
931
593
  export const zGetContactResponse = zBillingContact;
594
+ export const zUpdateContactData = z.object({
595
+ body: zBillingContact,
596
+ path: z.never().optional(),
597
+ query: z.never().optional()
598
+ });
599
+ /**
600
+ * Successfully updated. Returns updated organization details.
601
+ */
932
602
  export const zUpdateContactResponse = zBillingContact;
603
+ export const zGetCreditsData = z.object({
604
+ body: z.never().optional(),
605
+ path: z.never().optional(),
606
+ query: z.never().optional()
607
+ });
608
+ /**
609
+ * An array of the applied promotional credits records.
610
+ */
933
611
  export const zGetCreditsResponse = z.array(zBillingCredits);
612
+ export const zRedeemCreditsData = z.object({
613
+ body: z.object({
614
+ code: z.string().optional()
615
+ }),
616
+ path: z.never().optional(),
617
+ query: z.never().optional()
618
+ });
619
+ export const zListChartsData = z.object({
620
+ body: z.never().optional(),
621
+ path: z.object({
622
+ cluster_id: z.string()
623
+ }),
624
+ query: z.never().optional()
625
+ });
626
+ /**
627
+ * An array of charts
628
+ */
629
+ export const zListChartsResponse = z.array(zChart);
630
+ export const zCreateChartData = z.object({
631
+ body: zChartCreateInput,
632
+ path: z.object({
633
+ cluster_id: z.string()
634
+ }),
635
+ query: z.never().optional()
636
+ });
637
+ /**
638
+ * Successfully created. Returns created Chart ID.
639
+ */
640
+ export const zCreateChartResponse = z.string();
641
+ export const zDeleteChartData = z.object({
642
+ body: z.never().optional(),
643
+ path: z.object({
644
+ cluster_id: z.string(),
645
+ chart_name: z.string()
646
+ }),
647
+ query: z.never().optional()
648
+ });
649
+ /**
650
+ * Successfully deleted.
651
+ */
652
+ export const zDeleteChartResponse = z.string();
653
+ export const zGetChartData = z.object({
654
+ body: z.never().optional(),
655
+ path: z.object({
656
+ cluster_id: z.string(),
657
+ chart_name: z.string()
658
+ }),
659
+ query: z.never().optional()
660
+ });
661
+ /**
662
+ * Returns a single object containing chart details.
663
+ */
664
+ export const zGetChartResponse = zChart;
665
+ export const zUpdateChartData = z.object({
666
+ body: zChartUpdateInput,
667
+ path: z.object({
668
+ cluster_id: z.string(),
669
+ chart_name: z.string()
670
+ }),
671
+ query: z.never().optional()
672
+ });
673
+ /**
674
+ * Successfully updated.
675
+ */
676
+ export const zUpdateChartResponse = z.string();
677
+ export const zListFleetsData = z.object({
678
+ body: z.never().optional(),
679
+ path: z.object({
680
+ cluster_id: z.string()
681
+ }),
682
+ query: z.never().optional()
683
+ });
684
+ /**
685
+ * An array of fleets
686
+ */
934
687
  export const zListFleetsResponse = z.array(zFleet);
688
+ export const zCreateFleetData = z.object({
689
+ body: zFleetCreateInput,
690
+ path: z.object({
691
+ cluster_id: z.string()
692
+ }),
693
+ query: z.never().optional()
694
+ });
695
+ /**
696
+ * Successfully created. Returns created Fleet ID.
697
+ */
935
698
  export const zCreateFleetResponse = z.string();
699
+ export const zDeleteFleetData = z.object({
700
+ body: z.never().optional(),
701
+ path: z.object({
702
+ cluster_id: z.string(),
703
+ fleet_name: z.string()
704
+ }),
705
+ query: z.never().optional()
706
+ });
707
+ /**
708
+ * Successfully deleted.
709
+ */
936
710
  export const zDeleteFleetResponse = z.string();
711
+ export const zGetFleetData = z.object({
712
+ body: z.never().optional(),
713
+ path: z.object({
714
+ cluster_id: z.string(),
715
+ fleet_name: z.string()
716
+ }),
717
+ query: z.never().optional()
718
+ });
719
+ /**
720
+ * Returns a single object containing fleet details.
721
+ */
937
722
  export const zGetFleetResponse = zFleet;
723
+ export const zUpdateFleetData = z.object({
724
+ body: zFleetUpdateInput,
725
+ path: z.object({
726
+ cluster_id: z.string(),
727
+ fleet_name: z.string()
728
+ }),
729
+ query: z.never().optional()
730
+ });
731
+ /**
732
+ * Successfully updated.
733
+ */
938
734
  export const zUpdateFleetResponse = z.string();
735
+ export const zQueryClusterData = z.object({
736
+ body: z.never().optional(),
737
+ path: z.object({
738
+ cluster_id: z.string()
739
+ }),
740
+ query: z.never().optional()
741
+ });
742
+ export const zListClustersData = z.object({
743
+ body: z.never().optional(),
744
+ path: z.never().optional(),
745
+ query: z.never().optional()
746
+ });
747
+ /**
748
+ * An array of clusters
749
+ */
939
750
  export const zListClustersResponse = z.array(zCluster);
751
+ export const zCreateClusterData = z.object({
752
+ body: zClusterCreateInput,
753
+ path: z.never().optional(),
754
+ query: z.never().optional()
755
+ });
756
+ /**
757
+ * Successfully created. Returns created Cluster ID.
758
+ */
940
759
  export const zCreateClusterResponse = z.string();
760
+ export const zDeleteClusterData = z.object({
761
+ body: z.never().optional(),
762
+ path: z.object({
763
+ cluster_id: z.string()
764
+ }),
765
+ query: z.never().optional()
766
+ });
767
+ /**
768
+ * Successfully deleted.
769
+ */
941
770
  export const zDeleteClusterResponse = z.string();
771
+ export const zGetClusterData = z.object({
772
+ body: z.never().optional(),
773
+ path: z.object({
774
+ cluster_id: z.string()
775
+ }),
776
+ query: z.never().optional()
777
+ });
778
+ /**
779
+ * Returns a single object containing cluster details.
780
+ */
942
781
  export const zGetClusterResponse = zCluster;
782
+ export const zUpdateClusterData = z.object({
783
+ body: zClusterUpdateInput,
784
+ path: z.object({
785
+ cluster_id: z.string()
786
+ }),
787
+ query: z.never().optional()
788
+ });
789
+ /**
790
+ * Successfully updated. Returns updated cluster details.
791
+ */
943
792
  export const zUpdateClusterResponse = zCluster;
944
- export const zGetJoinInformationResponse = zCluster;
793
+ export const zGetJoinInformationData = z.object({
794
+ body: z.never().optional(),
795
+ path: z.object({
796
+ cluster_id: z.string()
797
+ }),
798
+ query: z.never().optional()
799
+ });
800
+ /**
801
+ * An object of cluster join information
802
+ */
803
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
804
+ export const zListInvitesData = z.object({
805
+ body: z.never().optional(),
806
+ path: z.never().optional(),
807
+ query: z.never().optional()
808
+ });
809
+ /**
810
+ * An array of invites
811
+ */
945
812
  export const zListInvitesResponse = z.array(zInvite);
813
+ export const zCreateInviteData = z.object({
814
+ body: z.object({
815
+ email: z.string().optional()
816
+ }),
817
+ path: z.never().optional(),
818
+ query: z.never().optional()
819
+ });
820
+ /**
821
+ * Successfully created. Returns created invite details.
822
+ */
946
823
  export const zCreateInviteResponse = zInvite;
824
+ export const zGetInviteData = z.object({
825
+ body: z.never().optional(),
826
+ path: z.object({
827
+ code: z.string()
828
+ }),
829
+ query: z.never().optional()
830
+ });
831
+ /**
832
+ * Returns a single object containing invite details.
833
+ */
947
834
  export const zGetInviteResponse = zInvite;
835
+ export const zDeleteInviteData = z.object({
836
+ body: z.never().optional(),
837
+ path: z.object({
838
+ email: z.string()
839
+ }),
840
+ query: z.never().optional()
841
+ });
842
+ export const zListMarketplaceChartsData = z.object({
843
+ body: z.never().optional(),
844
+ path: z.never().optional(),
845
+ query: z.never().optional()
846
+ });
847
+ /**
848
+ * An array of chart listings in the marketplace.
849
+ */
850
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
851
+ export const zGetMarketplaceChartFilesData = z.object({
852
+ body: z.never().optional(),
853
+ path: z.object({
854
+ chart_name: z.string(),
855
+ version_channel: z.string()
856
+ }),
857
+ query: z.never().optional()
858
+ });
859
+ /**
860
+ * Returns an object containing the chart files for the latest matching version.
861
+ */
862
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
863
+ export const zPostMcpData = z.object({
864
+ body: z.object({
865
+ jsonrpc: z.string().optional(),
866
+ method: z.string().optional(),
867
+ id: z.union([
868
+ z.string(),
869
+ z.number()
870
+ ]).optional(),
871
+ params: z.record(z.string(), z.unknown()).optional()
872
+ }),
873
+ path: z.never().optional(),
874
+ query: z.never().optional()
875
+ });
876
+ /**
877
+ * JSON-RPC 2.0 success or error response
878
+ */
879
+ export const zPostMcpResponse = z.object({
880
+ jsonrpc: z.string().optional(),
881
+ id: z.union([
882
+ z.string(),
883
+ z.number()
884
+ ]).optional(),
885
+ result: z.record(z.string(), z.unknown()).optional(),
886
+ error: z.object({
887
+ code: z.int().optional(),
888
+ message: z.string().optional()
889
+ }).optional()
890
+ });
891
+ export const zGetOrganizationData = z.object({
892
+ body: z.never().optional(),
893
+ path: z.never().optional(),
894
+ query: z.never().optional()
895
+ });
896
+ /**
897
+ * Returns a single object containing organization details.
898
+ */
948
899
  export const zGetOrganizationResponse = zOrganization;
900
+ export const zCreateOrganizationData = z.object({
901
+ body: zOrganizationCreateInput,
902
+ path: z.never().optional(),
903
+ query: z.never().optional()
904
+ });
905
+ export const zListRepositoriesData = z.object({
906
+ body: z.never().optional(),
907
+ path: z.never().optional(),
908
+ query: z.never().optional()
909
+ });
910
+ /**
911
+ * List of repositories
912
+ */
913
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
914
+ export const zListTagsData = z.object({
915
+ body: z.never().optional(),
916
+ path: z.object({
917
+ region: z.string(),
918
+ repository: z.string()
919
+ }),
920
+ query: z.never().optional()
921
+ });
922
+ /**
923
+ * Repository with tags
924
+ */
925
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
926
+ export const zDeleteTagData = z.object({
927
+ body: z.never().optional(),
928
+ path: z.object({
929
+ region: z.string(),
930
+ repository: z.string(),
931
+ tag: z.string()
932
+ }),
933
+ query: z.never().optional()
934
+ });
935
+ export const zGetTagData = z.object({
936
+ body: z.never().optional(),
937
+ path: z.object({
938
+ region: z.string(),
939
+ repository: z.string(),
940
+ tag: z.string()
941
+ }),
942
+ query: z.never().optional()
943
+ });
944
+ /**
945
+ * Tag details
946
+ */
947
+ export const zGetTagResponse = zRegistryTag;
948
+ export const zListTokensData = z.object({
949
+ body: z.never().optional(),
950
+ path: z.never().optional(),
951
+ query: z.never().optional()
952
+ });
953
+ /**
954
+ * Returns a list of access token details with masked secrets.
955
+ */
949
956
  export const zListTokensResponse = z.array(zToken);
957
+ export const zCreateTokenData = z.object({
958
+ body: zTokenCreateInput,
959
+ path: z.never().optional(),
960
+ query: z.never().optional()
961
+ });
962
+ /**
963
+ * Successfully created. Returns created token details with unmasked/raw secret.
964
+ */
950
965
  export const zCreateTokenResponse = zToken;
966
+ export const zDeleteTokenData = z.object({
967
+ body: z.never().optional(),
968
+ path: z.object({
969
+ token_id: z.string()
970
+ }),
971
+ query: z.never().optional()
972
+ });
973
+ export const zGetTokenData = z.object({
974
+ body: z.never().optional(),
975
+ path: z.object({
976
+ token_id: z.string()
977
+ }),
978
+ query: z.never().optional()
979
+ });
980
+ /**
981
+ * Returns access token details with masked secret.
982
+ */
951
983
  export const zGetTokenResponse = zToken;
984
+ export const zUpdateTokenData = z.object({
985
+ body: zTokenUpdateInput,
986
+ path: z.object({
987
+ token_id: z.string()
988
+ }),
989
+ query: z.never().optional()
990
+ });
991
+ /**
992
+ * Successfully updated. Returns updated token details with masked secret.
993
+ */
952
994
  export const zUpdateTokenResponse = zToken;
995
+ export const zRegenerateTokenData = z.object({
996
+ body: z.never().optional(),
997
+ path: z.object({
998
+ token_id: z.string()
999
+ }),
1000
+ query: z.never().optional()
1001
+ });
1002
+ /**
1003
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1004
+ */
953
1005
  export const zRegenerateTokenResponse = zToken;
1006
+ export const zListUserOrganizationsData = z.object({
1007
+ body: z.never().optional(),
1008
+ path: z.object({
1009
+ email: z.string()
1010
+ }),
1011
+ query: z.never().optional()
1012
+ });
1013
+ /**
1014
+ * An array of organizations the user belongs to.
1015
+ */
954
1016
  export const zListUserOrganizationsResponse = z.array(z.object({
955
1017
  realm: z.string().optional(),
956
1018
  displayName: z.string().optional()
957
1019
  }));
1020
+ export const zListUsersData = z.object({
1021
+ body: z.never().optional(),
1022
+ path: z.never().optional(),
1023
+ query: z.never().optional()
1024
+ });
1025
+ /**
1026
+ * An array of users
1027
+ */
958
1028
  export const zListUsersResponse = z.array(zUser);
1029
+ export const zCreateUserData = z.object({
1030
+ body: zUserCreateInput,
1031
+ path: z.never().optional(),
1032
+ query: z.never().optional()
1033
+ });
1034
+ /**
1035
+ * Successfully created. Returns created user details.
1036
+ */
959
1037
  export const zCreateUserResponse = zUser;
1038
+ export const zDeleteUserData = z.object({
1039
+ body: z.never().optional(),
1040
+ path: z.object({
1041
+ user_id: z.string()
1042
+ }),
1043
+ query: z.never().optional()
1044
+ });
1045
+ /**
1046
+ * User profile information
1047
+ */
960
1048
  export const zDeleteUserResponse = zUser;
1049
+ export const zGetUserData = z.object({
1050
+ body: z.never().optional(),
1051
+ path: z.object({
1052
+ user_id: z.string()
1053
+ }),
1054
+ query: z.never().optional()
1055
+ });
1056
+ /**
1057
+ * User profile information
1058
+ */
961
1059
  export const zGetUserResponse = zUser;
1060
+ export const zUpdateUserData = z.object({
1061
+ body: zUserUpdateInput,
1062
+ path: z.object({
1063
+ user_id: z.string()
1064
+ }),
1065
+ query: z.never().optional()
1066
+ });
1067
+ /**
1068
+ * Successfully created. Returns created user details.
1069
+ */
962
1070
  export const zUpdateUserResponse = zUser;
963
1071
  //# sourceMappingURL=zod.gen.js.map