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

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 (72) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1151 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1167 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts +3 -0
  6. package/dist/client/client.gen.d.ts.map +1 -0
  7. package/dist/client/client.gen.js +220 -0
  8. package/dist/client/client.gen.js.map +1 -0
  9. package/dist/client/index.d.ts +9 -0
  10. package/dist/client/index.d.ts.map +1 -0
  11. package/dist/client/index.js +7 -0
  12. package/dist/client/index.js.map +1 -0
  13. package/dist/client/types.gen.d.ts +121 -0
  14. package/dist/client/types.gen.d.ts.map +1 -0
  15. package/dist/client/types.gen.js +3 -0
  16. package/dist/client/types.gen.js.map +1 -0
  17. package/dist/client/utils.gen.d.ts +38 -0
  18. package/dist/client/utils.gen.d.ts.map +1 -0
  19. package/dist/client/utils.gen.js +229 -0
  20. package/dist/client/utils.gen.js.map +1 -0
  21. package/dist/client.gen.d.ts +4 -4
  22. package/dist/client.gen.d.ts.map +1 -1
  23. package/dist/client.gen.js +2 -4
  24. package/dist/client.gen.js.map +1 -1
  25. package/dist/core/auth.gen.d.ts +19 -0
  26. package/dist/core/auth.gen.d.ts.map +1 -0
  27. package/dist/core/auth.gen.js +15 -0
  28. package/dist/core/auth.gen.js.map +1 -0
  29. package/dist/core/bodySerializer.gen.d.ts +26 -0
  30. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  31. package/dist/core/bodySerializer.gen.js +58 -0
  32. package/dist/core/bodySerializer.gen.js.map +1 -0
  33. package/dist/core/params.gen.d.ts +44 -0
  34. package/dist/core/params.gen.d.ts.map +1 -0
  35. package/dist/core/params.gen.js +101 -0
  36. package/dist/core/params.gen.js.map +1 -0
  37. package/dist/core/pathSerializer.gen.d.ts +34 -0
  38. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  39. package/dist/core/pathSerializer.gen.js +107 -0
  40. package/dist/core/pathSerializer.gen.js.map +1 -0
  41. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  42. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  43. package/dist/core/queryKeySerializer.gen.js +93 -0
  44. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  45. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  46. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  47. package/dist/core/serverSentEvents.gen.js +133 -0
  48. package/dist/core/serverSentEvents.gen.js.map +1 -0
  49. package/dist/core/types.gen.d.ts +79 -0
  50. package/dist/core/types.gen.d.ts.map +1 -0
  51. package/dist/core/types.gen.js +3 -0
  52. package/dist/core/types.gen.js.map +1 -0
  53. package/dist/core/utils.gen.d.ts +20 -0
  54. package/dist/core/utils.gen.d.ts.map +1 -0
  55. package/dist/core/utils.gen.js +88 -0
  56. package/dist/core/utils.gen.js.map +1 -0
  57. package/dist/schemas.gen.d.ts +1606 -668
  58. package/dist/schemas.gen.d.ts.map +1 -1
  59. package/dist/schemas.gen.js +2872 -701
  60. package/dist/schemas.gen.js.map +1 -1
  61. package/dist/sdk.gen.d.ts +245 -70
  62. package/dist/sdk.gen.d.ts.map +1 -1
  63. package/dist/sdk.gen.js +333 -161
  64. package/dist/sdk.gen.js.map +1 -1
  65. package/dist/services/kubernetes/api.d.ts +20 -20
  66. package/dist/types.gen.d.ts +1457 -403
  67. package/dist/types.gen.d.ts.map +1 -1
  68. package/dist/zod.gen.d.ts +3743 -1982
  69. package/dist/zod.gen.d.ts.map +1 -1
  70. package/dist/zod.gen.js +1563 -792
  71. package/dist/zod.gen.js.map +1 -1
  72. package/package.json +29 -7
package/dist/zod.gen.js CHANGED
@@ -1,6 +1,7 @@
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
+ type: z.enum(['business', 'personal']),
4
5
  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
6
  address1: z.string().optional(),
6
7
  address2: z.string().optional(),
@@ -9,45 +10,215 @@ export const zBillingContact = z.object({
9
10
  state: z.string().optional(),
10
11
  country: z.string().optional(),
11
12
  phone: z.string().optional(),
12
- email: z.string().email(),
13
- first_name: z.string(),
14
- last_name: z.string()
13
+ email: z.email(),
14
+ individual_name: z.string(),
15
+ tax_id: z.string().optional(),
16
+ tax_id_type: z.enum([
17
+ 'ad_nrt',
18
+ 'ae_trn',
19
+ 'al_tin',
20
+ 'am_tin',
21
+ 'ao_tin',
22
+ 'ar_cuit',
23
+ 'at_vat',
24
+ 'au_abn',
25
+ 'au_arn',
26
+ 'ba_tin',
27
+ 'bb_tin',
28
+ 'be_vat',
29
+ 'bg_uic',
30
+ 'bg_vat',
31
+ 'bh_vat',
32
+ 'bo_tin',
33
+ 'br_cnpj',
34
+ 'br_cpf',
35
+ 'bs_tin',
36
+ 'by_tin',
37
+ 'ca_bn',
38
+ 'ca_gst_hst',
39
+ 'ca_pst_bc',
40
+ 'ca_pst_mb',
41
+ 'ca_pst_sk',
42
+ 'ca_qst',
43
+ 'cd_nif',
44
+ 'ch_uid',
45
+ 'ch_vat',
46
+ 'cl_tin',
47
+ 'cn_tin',
48
+ 'co_nit',
49
+ 'cr_tin',
50
+ 'cy_vat',
51
+ 'cz_vat',
52
+ 'de_stn',
53
+ 'de_vat',
54
+ 'dk_vat',
55
+ 'do_rcn',
56
+ 'ec_ruc',
57
+ 'ee_vat',
58
+ 'eg_tin',
59
+ 'es_cif',
60
+ 'es_vat',
61
+ 'eu_oss_vat',
62
+ 'fi_vat',
63
+ 'fr_vat',
64
+ 'gb_vat',
65
+ 'ge_vat',
66
+ 'gn_nif',
67
+ 'gr_vat',
68
+ 'hk_br',
69
+ 'hr_oib',
70
+ 'hr_vat',
71
+ 'hu_tin',
72
+ 'hu_vat',
73
+ 'id_npwp',
74
+ 'ie_vat',
75
+ 'il_vat',
76
+ 'in_gst',
77
+ 'is_vat',
78
+ 'it_vat',
79
+ 'jp_cn',
80
+ 'jp_rn',
81
+ 'jp_trn',
82
+ 'ke_pin',
83
+ 'kh_tin',
84
+ 'kr_brn',
85
+ 'kz_bin',
86
+ 'li_uid',
87
+ 'li_vat',
88
+ 'lt_vat',
89
+ 'lu_vat',
90
+ 'lv_vat',
91
+ 'ma_vat',
92
+ 'md_vat',
93
+ 'me_pib',
94
+ 'mk_vat',
95
+ 'mr_nif',
96
+ 'mt_vat',
97
+ 'mx_rfc',
98
+ 'my_frp',
99
+ 'my_itn',
100
+ 'my_sst',
101
+ 'ng_tin',
102
+ 'nl_vat',
103
+ 'no_vat',
104
+ 'no_voec',
105
+ 'np_pan',
106
+ 'nz_gst',
107
+ 'om_vat',
108
+ 'pe_ruc',
109
+ 'ph_tin',
110
+ 'pl_vat',
111
+ 'pt_vat',
112
+ 'ro_tin',
113
+ 'ro_vat',
114
+ 'rs_pib',
115
+ 'ru_inn',
116
+ 'ru_kpp',
117
+ 'sa_vat',
118
+ 'se_vat',
119
+ 'sg_gst',
120
+ 'sg_uen',
121
+ 'si_tin',
122
+ 'si_vat',
123
+ 'sk_vat',
124
+ 'sn_ninea',
125
+ 'sr_fin',
126
+ 'sv_nit',
127
+ 'th_vat',
128
+ 'tj_tin',
129
+ 'tr_tin',
130
+ 'tw_vat',
131
+ 'tz_vat',
132
+ 'ua_vat',
133
+ 'ug_tin',
134
+ 'us_ein',
135
+ 'uy_ruc',
136
+ 'uz_tin',
137
+ 'uz_vat',
138
+ 've_rif',
139
+ 'vn_tin',
140
+ 'xi_vat',
141
+ 'za_vat',
142
+ 'zm_tin',
143
+ 'zw_tin',
144
+ ''
145
+ ]).optional()
15
146
  });
16
147
  export const zBillingCredits = z.object({
17
148
  id: z.string().optional(),
18
- date_created: z.string().datetime(),
149
+ type: z.enum(['credit', 'discount']),
150
+ date_start: z.iso.datetime(),
151
+ date_end: z.iso.datetime().optional(),
19
152
  code: z.string(),
20
153
  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(),
154
+ value_total: z.number(),
28
155
  value_remaining: z.number().optional()
29
156
  });
157
+ export const zChartCreateInput = z.object({
158
+ values: z.string(),
159
+ 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-]+)*))?$/),
160
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
161
+ namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
162
+ chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
163
+ });
164
+ export const zChart = z.object({
165
+ values: z.string(),
166
+ 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-]+)*))?$/),
167
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
168
+ namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
169
+ chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
170
+ status: z.enum([
171
+ 'InstallSucceeded',
172
+ 'InstallFailed',
173
+ 'UpgradeSucceeded',
174
+ 'UpgradeFailed',
175
+ 'TestSucceeded',
176
+ 'TestFailed',
177
+ 'RollbackSucceeded',
178
+ 'RollbackFailed',
179
+ 'UninstallSucceeded',
180
+ 'UninstallFailed',
181
+ 'ArtifactFailed',
182
+ 'DependencyNotReady',
183
+ 'Progressing',
184
+ 'SourceNotReady'
185
+ ]),
186
+ version_current: z.string(),
187
+ created_at: z.string(),
188
+ updated_at: z.string(),
189
+ ready: z.boolean()
190
+ });
191
+ export const zChartUpdateInput = z.object({
192
+ values: z.string(),
193
+ 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-]+)*))?$/)
194
+ });
30
195
  export const zClusterCreateInput = z.object({
31
196
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
197
+ tier: z.enum(['basic', 'pro']),
32
198
  region: z.enum([
33
- 'staging',
34
- 'northamerica-central-1'
35
- ]).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')
199
+ 'staging-1a',
200
+ 'northamerica-central-1',
201
+ 'europe-central-1a',
202
+ 'northamerica-central-1a'
203
+ ]).optional().default('staging-1a'),
204
+ version_channel: z.enum([
205
+ '1.x.x-cfke.x',
206
+ '1.31.x-cfke.x',
207
+ '1.32.x-cfke.x',
208
+ '1.33.x-cfke.x'
209
+ ]).optional().default('1.x.x-cfke.x')
41
210
  });
42
211
  export const zClusterJoinInformation = z.object({
43
212
  certificate_authority: z.string(),
44
- endpoint: z.string().url(),
213
+ endpoint: z.url(),
214
+ cluster_dns: z.string(),
45
215
  auth_key: z.string(),
46
216
  bootstrap_token: z.string(),
47
217
  versions: z.object({
48
218
  kubernetes: z.string(),
49
219
  tailscale: z.string(),
50
- containerd: z.string()
220
+ containerd: z.string(),
221
+ nvidia_driver: z.string()
51
222
  }),
52
223
  third_party_api_access_config: z.object({
53
224
  metadata_url: z.string(),
@@ -57,18 +228,17 @@ export const zClusterJoinInformation = z.object({
57
228
  });
58
229
  export const zCluster = z.object({
59
230
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
231
+ tier: z.enum(['basic', 'pro']),
60
232
  region: z.enum([
61
- 'staging',
62
- 'northamerica-central-1'
63
- ]).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(),
233
+ 'staging-1a',
234
+ 'northamerica-central-1',
235
+ 'europe-central-1a',
236
+ 'northamerica-central-1a'
237
+ ]).optional().default('staging-1a'),
238
+ id: z.uuid(),
70
239
  status: z.enum([
71
240
  'active',
241
+ 'disabled',
72
242
  'deleted',
73
243
  'creating',
74
244
  'deployed',
@@ -76,888 +246,1489 @@ export const zCluster = z.object({
76
246
  'updating'
77
247
  ]),
78
248
  endpoint: z.union([
79
- z.string().url(),
80
- z.enum([
81
- ''
82
- ])
249
+ z.url(),
250
+ z.enum([''])
251
+ ]).optional(),
252
+ endpoint_public: z.union([
253
+ z.url(),
254
+ z.enum([''])
83
255
  ]).optional(),
84
256
  certificate_ca: z.string().optional(),
85
257
  version_current: z.string().optional(),
86
258
  created_at: z.string().optional(),
87
259
  updated_at: z.string().optional(),
88
- ready: z.boolean().optional()
260
+ ready: z.boolean().optional(),
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()
89
262
  });
90
263
  export const zClusterUpdateInput = z.object({
91
264
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
265
+ tier: z.enum(['basic', 'pro']),
92
266
  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
267
  });
94
268
  export const zFleetCreateInput = z.object({
95
269
  limits: z.object({
96
- cpu: z.number().gte(0)
270
+ cpu: z.int().gte(0).lte(100000).optional()
97
271
  }).optional(),
98
272
  gcp: z.object({
99
- enabled: z.boolean().optional().default(true),
100
- project: z.string()
273
+ enabled: z.boolean(),
274
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
275
+ }).optional(),
276
+ hetzner: z.object({
277
+ enabled: z.boolean(),
278
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
101
279
  }).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(),
112
280
  aws: z.object({
113
- enabled: z.boolean().optional().default(true),
114
- controllerRoleArn: z.string()
281
+ enabled: z.boolean(),
282
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
115
283
  }).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
- ])
284
+ constraints: z.object({
285
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
286
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
287
+ 'cfke.io/instance-family': z.array(z.enum([
288
+ 'a1',
289
+ 'a2',
290
+ 'a3',
291
+ 'a4',
292
+ 'c1',
293
+ 'c2',
294
+ 'c2d',
295
+ 'c3',
296
+ 'c3d',
297
+ 'c4',
298
+ 'c4a',
299
+ 'c4d',
300
+ 'c5',
301
+ 'c5a',
302
+ 'c5ad',
303
+ 'c5d',
304
+ 'c5n',
305
+ 'c6a',
306
+ 'c6g',
307
+ 'c6gd',
308
+ 'c6gn',
309
+ 'c6i',
310
+ 'c6id',
311
+ 'c6in',
312
+ 'c7a',
313
+ 'c7g',
314
+ 'c7gd',
315
+ 'c7gn',
316
+ 'c7i',
317
+ 'c7i-flex',
318
+ 'c8g',
319
+ 'c8gd',
320
+ 'cax',
321
+ 'ccx',
322
+ 'cpx',
323
+ 'cx',
324
+ 'd2',
325
+ 'd3',
326
+ 'd3en',
327
+ 'dl1',
328
+ 'dl2q',
329
+ 'e2',
330
+ 'f1',
331
+ 'f2',
332
+ 'g1',
333
+ 'g2',
334
+ 'g4ad',
335
+ 'g4dn',
336
+ 'g5',
337
+ 'g5g',
338
+ 'g6',
339
+ 'g6e',
340
+ 'gr6',
341
+ 'h1',
342
+ 'h3',
343
+ 'hpc6a',
344
+ 'hpc6id',
345
+ 'hpc7a',
346
+ 'hpc7g',
347
+ 'i2',
348
+ 'i3',
349
+ 'i3en',
350
+ 'i4g',
351
+ 'i4i',
352
+ 'i7i',
353
+ 'i7ie',
354
+ 'i8g',
355
+ 'im4gn',
356
+ 'inf1',
357
+ 'inf2',
358
+ 'is4gen',
359
+ 'm1',
360
+ 'm2',
361
+ 'm3',
362
+ 'm4',
363
+ 'm5',
364
+ 'm5a',
365
+ 'm5ad',
366
+ 'm5d',
367
+ 'm5dn',
368
+ 'm5n',
369
+ 'm5zn',
370
+ 'm6a',
371
+ 'm6g',
372
+ 'm6gd',
373
+ 'm6i',
374
+ 'm6id',
375
+ 'm6idn',
376
+ 'm6in',
377
+ 'm7a',
378
+ 'm7g',
379
+ 'm7gd',
380
+ 'm7i',
381
+ 'm7i-flex',
382
+ 'm8g',
383
+ 'm8gd',
384
+ 'n1',
385
+ 'n2',
386
+ 'n2d',
387
+ 'n4',
388
+ 'p3',
389
+ 'p3dn',
390
+ 'p4d',
391
+ 'p4de',
392
+ 'p5',
393
+ 'p5e',
394
+ 'p5en',
395
+ 'p6-b200',
396
+ 'r3',
397
+ 'r4',
398
+ 'r5',
399
+ 'r5a',
400
+ 'r5ad',
401
+ 'r5b',
402
+ 'r5d',
403
+ 'r5dn',
404
+ 'r5n',
405
+ 'r6a',
406
+ 'r6g',
407
+ 'r6gd',
408
+ 'r6i',
409
+ 'r6id',
410
+ 'r6idn',
411
+ 'r6in',
412
+ 'r7a',
413
+ 'r7g',
414
+ 'r7gd',
415
+ 'r7i',
416
+ 'r7iz',
417
+ 'r8g',
418
+ 'r8gd',
419
+ 't2',
420
+ 't2a',
421
+ 't2d',
422
+ 't3',
423
+ 't3a',
424
+ 't4g',
425
+ 'trn1',
426
+ 'trn1n',
427
+ 'u-3tb1',
428
+ 'u-6tb1',
429
+ 'u7i-12tb',
430
+ 'u7i-6tb',
431
+ 'u7i-8tb',
432
+ 'u7in-16tb',
433
+ 'u7in-24tb',
434
+ 'u7in-32tb',
435
+ 'vt1',
436
+ 'x1',
437
+ 'x1e',
438
+ 'x2gd',
439
+ 'x2idn',
440
+ 'x2iedn',
441
+ 'x2iezn',
442
+ 'x4',
443
+ 'x8g',
444
+ 'z1d',
445
+ 'z3'
446
+ ])).optional(),
447
+ 'topology.kubernetes.io/region': z.array(z.enum([
448
+ 'africa-south1',
449
+ 'ap-northeast-1',
450
+ 'ap-northeast-2',
451
+ 'ap-northeast-3',
452
+ 'ap-south-1',
453
+ 'ap-southeast-1',
454
+ 'ap-southeast-2',
455
+ 'ash',
456
+ 'asia-east1',
457
+ 'asia-east2',
458
+ 'asia-northeast1',
459
+ 'asia-northeast2',
460
+ 'asia-northeast3',
461
+ 'asia-south1',
462
+ 'asia-south2',
463
+ 'asia-southeast1',
464
+ 'asia-southeast2',
465
+ 'australia-southeast1',
466
+ 'australia-southeast2',
467
+ 'ca-central-1',
468
+ 'eu-central-1',
469
+ 'eu-central-2',
470
+ 'eu-north-1',
471
+ 'eu-west-1',
472
+ 'eu-west-2',
473
+ 'eu-west-3',
474
+ 'europe-central2',
475
+ 'europe-north1',
476
+ 'europe-southwest1',
477
+ 'europe-west1',
478
+ 'europe-west10',
479
+ 'europe-west12',
480
+ 'europe-west2',
481
+ 'europe-west3',
482
+ 'europe-west4',
483
+ 'europe-west6',
484
+ 'europe-west8',
485
+ 'europe-west9',
486
+ 'fsn1',
487
+ 'hel1',
488
+ 'hil',
489
+ 'me-central1',
490
+ 'me-central2',
491
+ 'me-west1',
492
+ 'nbg1',
493
+ 'northamerica-northeast1',
494
+ 'northamerica-northeast2',
495
+ 'sa-east-1',
496
+ 'sin',
497
+ 'southamerica-east1',
498
+ 'southamerica-west1',
499
+ 'us-central1',
500
+ 'us-east-1',
501
+ 'us-east-2',
502
+ 'us-east1',
503
+ 'us-east4',
504
+ 'us-east5',
505
+ 'us-south1',
506
+ 'us-west-1',
507
+ 'us-west-2',
508
+ 'us-west1',
509
+ 'us-west2',
510
+ 'us-west3',
511
+ 'us-west4'
512
+ ])).optional()
513
+ }).optional(),
514
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
515
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
121
516
  });
122
517
  export const zFleet = z.object({
123
518
  limits: z.object({
124
- cpu: z.number().gte(0)
519
+ cpu: z.int().gte(0).lte(100000).optional()
125
520
  }).optional(),
126
521
  gcp: z.object({
127
- enabled: z.boolean().optional().default(true),
128
- project: z.string()
522
+ enabled: z.boolean(),
523
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
524
+ }).optional(),
525
+ hetzner: z.object({
526
+ enabled: z.boolean(),
527
+ apiKey: z.string().regex(/^\*{64}$/).optional()
129
528
  }).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(),
140
529
  aws: z.object({
141
- enabled: z.boolean().optional().default(true),
142
- controllerRoleArn: z.string()
530
+ enabled: z.boolean(),
531
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
143
532
  }).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
- ])
533
+ constraints: z.object({
534
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
535
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
536
+ 'cfke.io/instance-family': z.array(z.enum([
537
+ 'a1',
538
+ 'a2',
539
+ 'a3',
540
+ 'a4',
541
+ 'c1',
542
+ 'c2',
543
+ 'c2d',
544
+ 'c3',
545
+ 'c3d',
546
+ 'c4',
547
+ 'c4a',
548
+ 'c4d',
549
+ 'c5',
550
+ 'c5a',
551
+ 'c5ad',
552
+ 'c5d',
553
+ 'c5n',
554
+ 'c6a',
555
+ 'c6g',
556
+ 'c6gd',
557
+ 'c6gn',
558
+ 'c6i',
559
+ 'c6id',
560
+ 'c6in',
561
+ 'c7a',
562
+ 'c7g',
563
+ 'c7gd',
564
+ 'c7gn',
565
+ 'c7i',
566
+ 'c7i-flex',
567
+ 'c8g',
568
+ 'c8gd',
569
+ 'cax',
570
+ 'ccx',
571
+ 'cpx',
572
+ 'cx',
573
+ 'd2',
574
+ 'd3',
575
+ 'd3en',
576
+ 'dl1',
577
+ 'dl2q',
578
+ 'e2',
579
+ 'f1',
580
+ 'f2',
581
+ 'g1',
582
+ 'g2',
583
+ 'g4ad',
584
+ 'g4dn',
585
+ 'g5',
586
+ 'g5g',
587
+ 'g6',
588
+ 'g6e',
589
+ 'gr6',
590
+ 'h1',
591
+ 'h3',
592
+ 'hpc6a',
593
+ 'hpc6id',
594
+ 'hpc7a',
595
+ 'hpc7g',
596
+ 'i2',
597
+ 'i3',
598
+ 'i3en',
599
+ 'i4g',
600
+ 'i4i',
601
+ 'i7i',
602
+ 'i7ie',
603
+ 'i8g',
604
+ 'im4gn',
605
+ 'inf1',
606
+ 'inf2',
607
+ 'is4gen',
608
+ 'm1',
609
+ 'm2',
610
+ 'm3',
611
+ 'm4',
612
+ 'm5',
613
+ 'm5a',
614
+ 'm5ad',
615
+ 'm5d',
616
+ 'm5dn',
617
+ 'm5n',
618
+ 'm5zn',
619
+ 'm6a',
620
+ 'm6g',
621
+ 'm6gd',
622
+ 'm6i',
623
+ 'm6id',
624
+ 'm6idn',
625
+ 'm6in',
626
+ 'm7a',
627
+ 'm7g',
628
+ 'm7gd',
629
+ 'm7i',
630
+ 'm7i-flex',
631
+ 'm8g',
632
+ 'm8gd',
633
+ 'n1',
634
+ 'n2',
635
+ 'n2d',
636
+ 'n4',
637
+ 'p3',
638
+ 'p3dn',
639
+ 'p4d',
640
+ 'p4de',
641
+ 'p5',
642
+ 'p5e',
643
+ 'p5en',
644
+ 'p6-b200',
645
+ 'r3',
646
+ 'r4',
647
+ 'r5',
648
+ 'r5a',
649
+ 'r5ad',
650
+ 'r5b',
651
+ 'r5d',
652
+ 'r5dn',
653
+ 'r5n',
654
+ 'r6a',
655
+ 'r6g',
656
+ 'r6gd',
657
+ 'r6i',
658
+ 'r6id',
659
+ 'r6idn',
660
+ 'r6in',
661
+ 'r7a',
662
+ 'r7g',
663
+ 'r7gd',
664
+ 'r7i',
665
+ 'r7iz',
666
+ 'r8g',
667
+ 'r8gd',
668
+ 't2',
669
+ 't2a',
670
+ 't2d',
671
+ 't3',
672
+ 't3a',
673
+ 't4g',
674
+ 'trn1',
675
+ 'trn1n',
676
+ 'u-3tb1',
677
+ 'u-6tb1',
678
+ 'u7i-12tb',
679
+ 'u7i-6tb',
680
+ 'u7i-8tb',
681
+ 'u7in-16tb',
682
+ 'u7in-24tb',
683
+ 'u7in-32tb',
684
+ 'vt1',
685
+ 'x1',
686
+ 'x1e',
687
+ 'x2gd',
688
+ 'x2idn',
689
+ 'x2iedn',
690
+ 'x2iezn',
691
+ 'x4',
692
+ 'x8g',
693
+ 'z1d',
694
+ 'z3'
695
+ ])).optional(),
696
+ 'topology.kubernetes.io/region': z.array(z.enum([
697
+ 'africa-south1',
698
+ 'ap-northeast-1',
699
+ 'ap-northeast-2',
700
+ 'ap-northeast-3',
701
+ 'ap-south-1',
702
+ 'ap-southeast-1',
703
+ 'ap-southeast-2',
704
+ 'ash',
705
+ 'asia-east1',
706
+ 'asia-east2',
707
+ 'asia-northeast1',
708
+ 'asia-northeast2',
709
+ 'asia-northeast3',
710
+ 'asia-south1',
711
+ 'asia-south2',
712
+ 'asia-southeast1',
713
+ 'asia-southeast2',
714
+ 'australia-southeast1',
715
+ 'australia-southeast2',
716
+ 'ca-central-1',
717
+ 'eu-central-1',
718
+ 'eu-central-2',
719
+ 'eu-north-1',
720
+ 'eu-west-1',
721
+ 'eu-west-2',
722
+ 'eu-west-3',
723
+ 'europe-central2',
724
+ 'europe-north1',
725
+ 'europe-southwest1',
726
+ 'europe-west1',
727
+ 'europe-west10',
728
+ 'europe-west12',
729
+ 'europe-west2',
730
+ 'europe-west3',
731
+ 'europe-west4',
732
+ 'europe-west6',
733
+ 'europe-west8',
734
+ 'europe-west9',
735
+ 'fsn1',
736
+ 'hel1',
737
+ 'hil',
738
+ 'me-central1',
739
+ 'me-central2',
740
+ 'me-west1',
741
+ 'nbg1',
742
+ 'northamerica-northeast1',
743
+ 'northamerica-northeast2',
744
+ 'sa-east-1',
745
+ 'sin',
746
+ 'southamerica-east1',
747
+ 'southamerica-west1',
748
+ 'us-central1',
749
+ 'us-east-1',
750
+ 'us-east-2',
751
+ 'us-east1',
752
+ 'us-east4',
753
+ 'us-east5',
754
+ 'us-south1',
755
+ 'us-west-1',
756
+ 'us-west-2',
757
+ 'us-west1',
758
+ 'us-west2',
759
+ 'us-west3',
760
+ 'us-west4'
761
+ ])).optional()
762
+ }).optional(),
763
+ scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
764
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
149
765
  });
150
766
  export const zFleetUpdateInput = z.object({
151
767
  limits: z.object({
152
- cpu: z.number().gte(0)
768
+ cpu: z.int().gte(0).lte(100000).optional()
153
769
  }).optional(),
154
770
  gcp: z.object({
155
- enabled: z.boolean().optional().default(true),
156
- project: z.string()
771
+ enabled: z.boolean(),
772
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
773
+ }).optional(),
774
+ hetzner: z.object({
775
+ enabled: z.boolean(),
776
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
157
777
  }).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(),
168
778
  aws: z.object({
169
- enabled: z.boolean().optional().default(true),
170
- controllerRoleArn: z.string()
171
- }).optional()
779
+ enabled: z.boolean(),
780
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
781
+ }).optional(),
782
+ constraints: z.object({
783
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
784
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
785
+ 'cfke.io/instance-family': z.array(z.enum([
786
+ 'a1',
787
+ 'a2',
788
+ 'a3',
789
+ 'a4',
790
+ 'c1',
791
+ 'c2',
792
+ 'c2d',
793
+ 'c3',
794
+ 'c3d',
795
+ 'c4',
796
+ 'c4a',
797
+ 'c4d',
798
+ 'c5',
799
+ 'c5a',
800
+ 'c5ad',
801
+ 'c5d',
802
+ 'c5n',
803
+ 'c6a',
804
+ 'c6g',
805
+ 'c6gd',
806
+ 'c6gn',
807
+ 'c6i',
808
+ 'c6id',
809
+ 'c6in',
810
+ 'c7a',
811
+ 'c7g',
812
+ 'c7gd',
813
+ 'c7gn',
814
+ 'c7i',
815
+ 'c7i-flex',
816
+ 'c8g',
817
+ 'c8gd',
818
+ 'cax',
819
+ 'ccx',
820
+ 'cpx',
821
+ 'cx',
822
+ 'd2',
823
+ 'd3',
824
+ 'd3en',
825
+ 'dl1',
826
+ 'dl2q',
827
+ 'e2',
828
+ 'f1',
829
+ 'f2',
830
+ 'g1',
831
+ 'g2',
832
+ 'g4ad',
833
+ 'g4dn',
834
+ 'g5',
835
+ 'g5g',
836
+ 'g6',
837
+ 'g6e',
838
+ 'gr6',
839
+ 'h1',
840
+ 'h3',
841
+ 'hpc6a',
842
+ 'hpc6id',
843
+ 'hpc7a',
844
+ 'hpc7g',
845
+ 'i2',
846
+ 'i3',
847
+ 'i3en',
848
+ 'i4g',
849
+ 'i4i',
850
+ 'i7i',
851
+ 'i7ie',
852
+ 'i8g',
853
+ 'im4gn',
854
+ 'inf1',
855
+ 'inf2',
856
+ 'is4gen',
857
+ 'm1',
858
+ 'm2',
859
+ 'm3',
860
+ 'm4',
861
+ 'm5',
862
+ 'm5a',
863
+ 'm5ad',
864
+ 'm5d',
865
+ 'm5dn',
866
+ 'm5n',
867
+ 'm5zn',
868
+ 'm6a',
869
+ 'm6g',
870
+ 'm6gd',
871
+ 'm6i',
872
+ 'm6id',
873
+ 'm6idn',
874
+ 'm6in',
875
+ 'm7a',
876
+ 'm7g',
877
+ 'm7gd',
878
+ 'm7i',
879
+ 'm7i-flex',
880
+ 'm8g',
881
+ 'm8gd',
882
+ 'n1',
883
+ 'n2',
884
+ 'n2d',
885
+ 'n4',
886
+ 'p3',
887
+ 'p3dn',
888
+ 'p4d',
889
+ 'p4de',
890
+ 'p5',
891
+ 'p5e',
892
+ 'p5en',
893
+ 'p6-b200',
894
+ 'r3',
895
+ 'r4',
896
+ 'r5',
897
+ 'r5a',
898
+ 'r5ad',
899
+ 'r5b',
900
+ 'r5d',
901
+ 'r5dn',
902
+ 'r5n',
903
+ 'r6a',
904
+ 'r6g',
905
+ 'r6gd',
906
+ 'r6i',
907
+ 'r6id',
908
+ 'r6idn',
909
+ 'r6in',
910
+ 'r7a',
911
+ 'r7g',
912
+ 'r7gd',
913
+ 'r7i',
914
+ 'r7iz',
915
+ 'r8g',
916
+ 'r8gd',
917
+ 't2',
918
+ 't2a',
919
+ 't2d',
920
+ 't3',
921
+ 't3a',
922
+ 't4g',
923
+ 'trn1',
924
+ 'trn1n',
925
+ 'u-3tb1',
926
+ 'u-6tb1',
927
+ 'u7i-12tb',
928
+ 'u7i-6tb',
929
+ 'u7i-8tb',
930
+ 'u7in-16tb',
931
+ 'u7in-24tb',
932
+ 'u7in-32tb',
933
+ 'vt1',
934
+ 'x1',
935
+ 'x1e',
936
+ 'x2gd',
937
+ 'x2idn',
938
+ 'x2iedn',
939
+ 'x2iezn',
940
+ 'x4',
941
+ 'x8g',
942
+ 'z1d',
943
+ 'z3'
944
+ ])).optional(),
945
+ 'topology.kubernetes.io/region': z.array(z.enum([
946
+ 'africa-south1',
947
+ 'ap-northeast-1',
948
+ 'ap-northeast-2',
949
+ 'ap-northeast-3',
950
+ 'ap-south-1',
951
+ 'ap-southeast-1',
952
+ 'ap-southeast-2',
953
+ 'ash',
954
+ 'asia-east1',
955
+ 'asia-east2',
956
+ 'asia-northeast1',
957
+ 'asia-northeast2',
958
+ 'asia-northeast3',
959
+ 'asia-south1',
960
+ 'asia-south2',
961
+ 'asia-southeast1',
962
+ 'asia-southeast2',
963
+ 'australia-southeast1',
964
+ 'australia-southeast2',
965
+ 'ca-central-1',
966
+ 'eu-central-1',
967
+ 'eu-central-2',
968
+ 'eu-north-1',
969
+ 'eu-west-1',
970
+ 'eu-west-2',
971
+ 'eu-west-3',
972
+ 'europe-central2',
973
+ 'europe-north1',
974
+ 'europe-southwest1',
975
+ 'europe-west1',
976
+ 'europe-west10',
977
+ 'europe-west12',
978
+ 'europe-west2',
979
+ 'europe-west3',
980
+ 'europe-west4',
981
+ 'europe-west6',
982
+ 'europe-west8',
983
+ 'europe-west9',
984
+ 'fsn1',
985
+ 'hel1',
986
+ 'hil',
987
+ 'me-central1',
988
+ 'me-central2',
989
+ 'me-west1',
990
+ 'nbg1',
991
+ 'northamerica-northeast1',
992
+ 'northamerica-northeast2',
993
+ 'sa-east-1',
994
+ 'sin',
995
+ 'southamerica-east1',
996
+ 'southamerica-west1',
997
+ 'us-central1',
998
+ 'us-east-1',
999
+ 'us-east-2',
1000
+ 'us-east1',
1001
+ 'us-east4',
1002
+ 'us-east5',
1003
+ 'us-south1',
1004
+ 'us-west-1',
1005
+ 'us-west-2',
1006
+ 'us-west1',
1007
+ 'us-west2',
1008
+ 'us-west3',
1009
+ 'us-west4'
1010
+ ])).optional()
1011
+ }).optional(),
1012
+ scalingProfile: z.enum(['aggressive', 'conservative'])
1013
+ });
1014
+ export const zInviteCreateInput = z.object({
1015
+ email: z.email(),
1016
+ role: z.enum(['Administrator', 'User']).optional().default('User')
172
1017
  });
173
1018
  export const zInvite = z.object({
174
1019
  id: z.string().optional(),
175
- organization_id: z.string().uuid().optional(),
176
- date_created: z.string().datetime(),
177
- email: z.string().email().optional(),
178
- code: z.string().optional()
1020
+ organization_id: z.uuid().optional(),
1021
+ date_created: z.iso.datetime(),
1022
+ email: z.email().optional(),
1023
+ code: z.string().optional(),
1024
+ role: z.enum(['Administrator', 'User']).optional().default('User')
179
1025
  });
180
1026
  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(),
1027
+ id: z.string().optional(),
1028
+ number: z.string().optional(),
1029
+ status: z.string().optional(),
1030
+ total: z.number().optional(),
1031
+ currency: z.string().optional(),
1032
+ created: z.iso.datetime(),
1033
+ period_start: z.iso.datetime(),
1034
+ period_end: z.iso.datetime(),
1035
+ invoice_pdf: z.string().optional()
1036
+ });
1037
+ export const zMarketplaceListingFiles = z.object({
1038
+ chartYaml: z.string().optional(),
1039
+ valuesYaml: z.string().optional(),
1040
+ valuesSchemaJson: z.string().optional()
1041
+ });
1042
+ export const zMarketplaceListing = z.object({
1043
+ name: z.string(),
1044
+ 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-]+)*))?$/)),
1045
+ 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-]+)*))?$/)),
1046
+ latestVersion: z.string(),
1047
+ metadata: z.object({
1048
+ name: z.string(),
1049
+ version: z.string(),
586
1050
  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()
1051
+ appVersion: z.string().optional(),
1052
+ apiVersion: z.string().optional(),
1053
+ keywords: z.array(z.string()).optional(),
1054
+ home: z.string().optional(),
1055
+ icon: z.string().optional(),
1056
+ sources: z.array(z.string()).optional(),
1057
+ maintainers: z.array(z.object({
1058
+ name: z.string(),
1059
+ email: z.string().optional()
1060
+ })).optional()
1061
+ }).optional()
763
1062
  });
764
1063
  export const zOrganizationCreateInput = z.object({
765
- email: z.string().email(),
766
- first_name: z.string(),
767
- last_name: z.string(),
1064
+ type: z.enum(['business', 'personal']),
1065
+ email: z.email(),
1066
+ first_name: z.string().min(1),
1067
+ last_name: z.string().min(1),
768
1068
  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
1069
  password: z.string().min(8)
770
1070
  });
1071
+ export const zOrganizationCreateOutput = z.object({
1072
+ id: z.string()
1073
+ });
771
1074
  export const zOrganization = z.object({
772
- id: z.string().uuid(),
1075
+ id: z.uuid(),
773
1076
  name: z.string().min(2).max(120).optional(),
774
- date_created: z.string().datetime(),
1077
+ type: z.enum(['business', 'personal']),
1078
+ date_created: z.iso.datetime(),
775
1079
  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),
1080
+ basic_clusters_max: z.int().gte(0),
1081
+ basic_clusters_available: z.int(),
1082
+ pro_clusters_max: z.int().gte(0),
1083
+ pro_clusters_available: z.int(),
1084
+ fleets_max: z.int().gte(0),
782
1085
  cluster_tiers: z.array(z.string()).min(0),
783
1086
  regions: z.array(z.string()).min(1),
784
1087
  versions: z.array(z.object({
785
1088
  id: z.string(),
786
1089
  label: z.string()
787
- })).min(1)
1090
+ })).min(1),
1091
+ cfcr_storage_gb: z.int().gte(-1)
788
1092
  }),
789
1093
  status: z.enum([
790
1094
  'active',
791
1095
  'closed',
792
1096
  'suspended'
1097
+ ]),
1098
+ verification: z.enum([
1099
+ 'none',
1100
+ 'submitted',
1101
+ 'verified'
793
1102
  ])
794
1103
  });
795
1104
  export const zPaymentMethod = z.object({
796
- id: z.string().uuid(),
797
- setup: z.boolean(),
1105
+ id: z.string(),
798
1106
  type: z.enum([
799
- 'card'
1107
+ 'card',
1108
+ 'sepa_debit',
1109
+ 'bank_transfer'
800
1110
  ]),
801
1111
  last4: z.string(),
802
- exp_month: z.number().int().gte(1).lte(12),
803
- exp_year: z.number().int().gte(2024),
804
- brand: z.enum([
805
- 'amex',
806
- 'diners',
807
- 'discover',
808
- 'eftpos_au',
809
- 'jcb',
810
- 'mastercard',
811
- 'unionpay',
812
- 'visa',
813
- 'unknown'
814
- ])
1112
+ exp_month: z.int().gte(1).lte(12),
1113
+ exp_year: z.int(),
1114
+ brand: z.string(),
1115
+ iban: z.string(),
1116
+ bic: z.string(),
1117
+ account_holder_name: z.string(),
1118
+ is_default: z.boolean()
1119
+ });
1120
+ export const zPlatformQuota = z.object({
1121
+ basic_clusters_max: z.int().gte(0),
1122
+ basic_clusters_available: z.int(),
1123
+ pro_clusters_max: z.int().gte(0),
1124
+ pro_clusters_available: z.int(),
1125
+ fleets_max: z.int().gte(0),
1126
+ cluster_tiers: z.array(z.string()).min(0),
1127
+ regions: z.array(z.string()).min(1),
1128
+ versions: z.array(z.object({
1129
+ id: z.string(),
1130
+ label: z.string()
1131
+ })).min(1),
1132
+ cfcr_storage_gb: z.int().gte(-1)
1133
+ });
1134
+ export const zRegistryRepository = z.object({
1135
+ name: z.string(),
1136
+ region: z.string(),
1137
+ uri: z.string()
1138
+ });
1139
+ export const zRegistryRepositoryWithTags = z.object({
1140
+ name: z.string(),
1141
+ region: z.string(),
1142
+ uri: z.string(),
1143
+ tags: z.array(z.object({
1144
+ name: z.string(),
1145
+ size: z.number(),
1146
+ mediaType: z.string().optional(),
1147
+ platforms: z.array(z.string()).optional()
1148
+ })),
1149
+ totalSize: z.number()
1150
+ });
1151
+ export const zRegistryTag = z.object({
1152
+ name: z.string(),
1153
+ digest: z.string(),
1154
+ mediaType: z.string().optional(),
1155
+ config: z.object({
1156
+ size: z.number()
1157
+ }).optional(),
1158
+ layers: z.array(z.object({
1159
+ digest: z.string().optional(),
1160
+ size: z.number()
1161
+ })).optional(),
1162
+ manifests: z.array(z.object({
1163
+ digest: z.string(),
1164
+ platform: z.object({
1165
+ architecture: z.string(),
1166
+ os: z.string(),
1167
+ variant: z.string().optional()
1168
+ }).optional(),
1169
+ layers: z.array(z.object({
1170
+ digest: z.string().optional(),
1171
+ size: z.number()
1172
+ })).optional(),
1173
+ size: z.number().optional()
1174
+ })).optional(),
1175
+ size: z.number(),
1176
+ region: z.string(),
1177
+ repository: z.string(),
1178
+ uri: z.string()
1179
+ });
1180
+ export const zTicketAttachment = z.object({
1181
+ id: z.string(),
1182
+ filename: z.string(),
1183
+ content_type: z.string(),
1184
+ size: z.int()
1185
+ });
1186
+ export const zTicketCreateInput = z.object({
1187
+ category: z.enum([
1188
+ 'billing',
1189
+ 'technical',
1190
+ 'general'
1191
+ ]),
1192
+ body: z.string().min(1).max(50000).regex(/\S/),
1193
+ properties: z.record(z.string(), z.unknown()).optional()
1194
+ });
1195
+ export const zTicketListResponse = z.object({
1196
+ items: z.array(z.object({
1197
+ id: z.string(),
1198
+ status: z.enum([
1199
+ 'waiting_on_us',
1200
+ 'waiting_on_user',
1201
+ 'closed'
1202
+ ]),
1203
+ category: z.enum([
1204
+ 'billing',
1205
+ 'technical',
1206
+ 'general'
1207
+ ]),
1208
+ summary: z.string(),
1209
+ closed_at: z.iso.datetime().optional(),
1210
+ date_created: z.iso.datetime(),
1211
+ date_updated: z.iso.datetime(),
1212
+ messages: z.array(z.object({
1213
+ id: z.string(),
1214
+ type: z.enum(['customer_reply', 'agent_reply']),
1215
+ body: z.string(),
1216
+ author_first_name: z.string().optional(),
1217
+ author_last_name: z.string().optional(),
1218
+ attachments: z.array(z.object({
1219
+ id: z.string(),
1220
+ filename: z.string(),
1221
+ content_type: z.string(),
1222
+ size: z.int()
1223
+ })).optional(),
1224
+ date_created: z.iso.datetime()
1225
+ })).optional()
1226
+ }))
1227
+ });
1228
+ export const zTicketMessageInput = z.object({
1229
+ body: z.string().min(1).max(50000).regex(/\S/)
1230
+ });
1231
+ export const zTicketMessage = z.object({
1232
+ id: z.string(),
1233
+ type: z.enum(['customer_reply', 'agent_reply']),
1234
+ body: z.string(),
1235
+ author_first_name: z.string().optional(),
1236
+ author_last_name: z.string().optional(),
1237
+ attachments: z.array(z.object({
1238
+ id: z.string(),
1239
+ filename: z.string(),
1240
+ content_type: z.string(),
1241
+ size: z.int()
1242
+ })).optional(),
1243
+ date_created: z.iso.datetime()
1244
+ });
1245
+ export const zTicket = z.object({
1246
+ id: z.string(),
1247
+ status: z.enum([
1248
+ 'waiting_on_us',
1249
+ 'waiting_on_user',
1250
+ 'closed'
1251
+ ]),
1252
+ category: z.enum([
1253
+ 'billing',
1254
+ 'technical',
1255
+ 'general'
1256
+ ]),
1257
+ summary: z.string(),
1258
+ closed_at: z.iso.datetime().optional(),
1259
+ date_created: z.iso.datetime(),
1260
+ date_updated: z.iso.datetime(),
1261
+ messages: z.array(z.object({
1262
+ id: z.string(),
1263
+ type: z.enum(['customer_reply', 'agent_reply']),
1264
+ body: z.string(),
1265
+ author_first_name: z.string().optional(),
1266
+ author_last_name: z.string().optional(),
1267
+ attachments: z.array(z.object({
1268
+ id: z.string(),
1269
+ filename: z.string(),
1270
+ content_type: z.string(),
1271
+ size: z.int()
1272
+ })).optional(),
1273
+ date_created: z.iso.datetime()
1274
+ })).optional()
815
1275
  });
816
1276
  export const zTokenCreateInput = z.object({
817
1277
  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
- ])
1278
+ role: z.enum(['Administrator', 'User'])
822
1279
  });
823
1280
  export const zToken = z.object({
824
1281
  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
- ]),
1282
+ role: z.enum(['Administrator', 'User']),
829
1283
  id: z.string().optional(),
830
1284
  secret: z.string().optional(),
831
- date_created: z.string().datetime()
1285
+ date_created: z.iso.datetime()
832
1286
  });
833
1287
  export const zTokenUpdateInput = z.object({
834
1288
  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()
1289
+ role: z.enum(['Administrator', 'User']).optional()
1290
+ });
1291
+ export const zUsageFacets = z.object({
1292
+ cluster_id: z.array(z.string()).optional(),
1293
+ product: z.array(z.string()).optional()
1294
+ });
1295
+ export const zUsageResponse = z.object({
1296
+ data: z.array(z.object({
1297
+ hour: z.string(),
1298
+ cluster_id: z.string(),
1299
+ product: z.string(),
1300
+ value: z.number(),
1301
+ price: z.number(),
1302
+ total: z.number()
1303
+ })),
1304
+ facets: z.object({
1305
+ cluster_id: z.array(z.string()).optional(),
1306
+ product: z.array(z.string()).optional()
1307
+ })
839
1308
  });
840
1309
  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
- ])
1310
+ hour: z.string(),
1311
+ cluster_id: z.string(),
1312
+ product: z.string(),
1313
+ value: z.number(),
1314
+ price: z.number(),
1315
+ total: z.number()
877
1316
  });
878
1317
  export const zUserCreateInput = z.object({
879
- email: z.string().email(),
1318
+ email: z.email(),
880
1319
  first_name: z.string().min(1).max(50),
881
1320
  last_name: z.string().min(1).max(50),
882
1321
  code: z.string(),
883
- 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()
1322
+ password: z.string().min(8)
892
1323
  });
893
1324
  export const zUser = z.object({
894
- email: z.string().email(),
1325
+ email: z.email(),
895
1326
  first_name: z.string().min(1).max(50),
896
1327
  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()
1328
+ role: z.enum(['Administrator', 'User']),
1329
+ status: z.enum(['active', 'inactive']),
1330
+ id: z.uuid(),
1331
+ date_created: z.iso.datetime()
907
1332
  });
908
1333
  export const zUserUpdateInput = z.object({
909
- email: z.string().email().optional(),
1334
+ email: z.email().optional(),
910
1335
  first_name: z.string().min(1).max(50).optional(),
911
1336
  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()
1337
+ role: z.enum(['Administrator', 'User']).optional(),
1338
+ status: z.enum(['active', 'inactive']).optional()
920
1339
  });
921
- export const zGetUsageResponse = z.array(zUsage);
922
- export const zGetBalanceResponse = z.number();
923
- export const zGetPaymentMethodResponse = zPaymentMethod;
1340
+ export const zGetUsageQuery = z.object({
1341
+ granularity: z.enum([
1342
+ 'hourly',
1343
+ 'daily',
1344
+ 'monthly'
1345
+ ]).optional().default('daily')
1346
+ });
1347
+ /**
1348
+ * Usage data with facets for filtering
1349
+ */
1350
+ export const zGetUsageResponse = zUsageResponse;
1351
+ /**
1352
+ * 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.
1353
+ *
1354
+ */
924
1355
  export const zGetPaymentMethodSecretResponse = z.object({
925
1356
  id: z.string().optional()
926
1357
  });
927
- export const zListInvoicesResponse = z.array(zInvoice);
928
- export const zGetInvoiceResponse = z.object({
929
- html: z.string().optional()
1358
+ /**
1359
+ * An array of payment methods.
1360
+ */
1361
+ export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
1362
+ export const zSetDefaultPaymentMethodPath = z.object({
1363
+ paymentMethodId: z.string()
930
1364
  });
1365
+ /**
1366
+ * Default payment method updated.
1367
+ */
1368
+ export const zSetDefaultPaymentMethodResponse = z.void();
1369
+ export const zDeletePaymentMethodPath = z.object({
1370
+ paymentMethodId: z.string()
1371
+ });
1372
+ /**
1373
+ * Payment method deleted.
1374
+ */
1375
+ export const zDeletePaymentMethodResponse = z.void();
1376
+ /**
1377
+ * An array of usage records.
1378
+ */
1379
+ export const zListInvoicesResponse = z.array(zInvoice);
1380
+ /**
1381
+ * Returns a single object containing organization contact and billing address details.
1382
+ */
931
1383
  export const zGetContactResponse = zBillingContact;
1384
+ export const zUpdateContactBody = zBillingContact;
1385
+ /**
1386
+ * Successfully updated. Returns updated organization details.
1387
+ */
932
1388
  export const zUpdateContactResponse = zBillingContact;
1389
+ /**
1390
+ * An array of the applied promotional credits records.
1391
+ */
933
1392
  export const zGetCreditsResponse = z.array(zBillingCredits);
1393
+ export const zRedeemCreditsBody = z.object({
1394
+ code: z.string().optional()
1395
+ });
1396
+ export const zListChartsPath = z.object({
1397
+ cluster_id: z.string()
1398
+ });
1399
+ /**
1400
+ * An array of charts
1401
+ */
1402
+ export const zListChartsResponse = z.array(zChart);
1403
+ export const zCreateChartBody = zChartCreateInput;
1404
+ export const zCreateChartPath = z.object({
1405
+ cluster_id: z.string()
1406
+ });
1407
+ /**
1408
+ * Successfully created. Returns created Chart ID.
1409
+ */
1410
+ export const zCreateChartResponse = z.string();
1411
+ export const zDeleteChartPath = z.object({
1412
+ cluster_id: z.string(),
1413
+ chart_name: z.string()
1414
+ });
1415
+ /**
1416
+ * Successfully deleted.
1417
+ */
1418
+ export const zDeleteChartResponse = z.string();
1419
+ export const zGetChartPath = z.object({
1420
+ cluster_id: z.string(),
1421
+ chart_name: z.string()
1422
+ });
1423
+ /**
1424
+ * Returns a single object containing chart details.
1425
+ */
1426
+ export const zGetChartResponse = zChart;
1427
+ export const zUpdateChartBody = zChartUpdateInput;
1428
+ export const zUpdateChartPath = z.object({
1429
+ cluster_id: z.string(),
1430
+ chart_name: z.string()
1431
+ });
1432
+ /**
1433
+ * Successfully updated.
1434
+ */
1435
+ export const zUpdateChartResponse = z.string();
1436
+ export const zListFleetsPath = z.object({
1437
+ cluster_id: z.string()
1438
+ });
1439
+ /**
1440
+ * An array of fleets
1441
+ */
934
1442
  export const zListFleetsResponse = z.array(zFleet);
1443
+ export const zCreateFleetBody = zFleetCreateInput;
1444
+ export const zCreateFleetPath = z.object({
1445
+ cluster_id: z.string()
1446
+ });
1447
+ /**
1448
+ * Successfully created. Returns created Fleet ID.
1449
+ */
935
1450
  export const zCreateFleetResponse = z.string();
1451
+ export const zDeleteFleetPath = z.object({
1452
+ cluster_id: z.string(),
1453
+ fleet_name: z.string()
1454
+ });
1455
+ /**
1456
+ * Successfully deleted.
1457
+ */
936
1458
  export const zDeleteFleetResponse = z.string();
1459
+ export const zGetFleetPath = z.object({
1460
+ cluster_id: z.string(),
1461
+ fleet_name: z.string()
1462
+ });
1463
+ /**
1464
+ * Returns a single object containing fleet details.
1465
+ */
937
1466
  export const zGetFleetResponse = zFleet;
1467
+ export const zUpdateFleetBody = zFleetUpdateInput;
1468
+ export const zUpdateFleetPath = z.object({
1469
+ cluster_id: z.string(),
1470
+ fleet_name: z.string()
1471
+ });
1472
+ /**
1473
+ * Successfully updated.
1474
+ */
938
1475
  export const zUpdateFleetResponse = z.string();
1476
+ export const zQueryClusterPath = z.object({
1477
+ cluster_id: z.string()
1478
+ });
1479
+ /**
1480
+ * An array of clusters
1481
+ */
939
1482
  export const zListClustersResponse = z.array(zCluster);
1483
+ export const zCreateClusterBody = zClusterCreateInput;
1484
+ /**
1485
+ * Successfully created. Returns created Cluster ID.
1486
+ */
940
1487
  export const zCreateClusterResponse = z.string();
1488
+ export const zDeleteClusterPath = z.object({
1489
+ cluster_id: z.string()
1490
+ });
1491
+ /**
1492
+ * Successfully deleted.
1493
+ */
941
1494
  export const zDeleteClusterResponse = z.string();
1495
+ export const zGetClusterPath = z.object({
1496
+ cluster_id: z.string()
1497
+ });
1498
+ /**
1499
+ * Returns a single object containing cluster details.
1500
+ */
942
1501
  export const zGetClusterResponse = zCluster;
1502
+ export const zUpdateClusterBody = zClusterUpdateInput;
1503
+ export const zUpdateClusterPath = z.object({
1504
+ cluster_id: z.string()
1505
+ });
1506
+ /**
1507
+ * Successfully updated. Returns updated cluster details.
1508
+ */
943
1509
  export const zUpdateClusterResponse = zCluster;
944
- export const zGetJoinInformationResponse = zCluster;
1510
+ export const zGetJoinInformationPath = z.object({
1511
+ cluster_id: z.string()
1512
+ });
1513
+ /**
1514
+ * An object of cluster join information
1515
+ */
1516
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
1517
+ /**
1518
+ * An array of invites
1519
+ */
945
1520
  export const zListInvitesResponse = z.array(zInvite);
1521
+ export const zCreateInviteBody = zInviteCreateInput;
1522
+ /**
1523
+ * Successfully created. Returns created invite details.
1524
+ */
946
1525
  export const zCreateInviteResponse = zInvite;
947
- export const zGetInviteResponse = zInvite;
1526
+ export const zGetInvitePath = z.object({
1527
+ code: z.string()
1528
+ });
1529
+ /**
1530
+ * The invitation code is valid. Returns the invited email and organization.
1531
+ */
1532
+ export const zGetInviteResponse = z.object({
1533
+ email: z.email().optional(),
1534
+ organization_id: z.string().optional()
1535
+ });
1536
+ export const zDeleteInvitePath = z.object({
1537
+ email: z.email()
1538
+ });
1539
+ /**
1540
+ * An array of chart listings in the marketplace.
1541
+ */
1542
+ export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1543
+ export const zGetMarketplaceChartFilesPath = z.object({
1544
+ chart_name: z.string(),
1545
+ version_channel: z.string()
1546
+ });
1547
+ /**
1548
+ * Returns an object containing the chart files for the latest matching version.
1549
+ */
1550
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
1551
+ /**
1552
+ * JSON-RPC 2.0 request payload
1553
+ */
1554
+ export const zPostMcpBody = z.object({
1555
+ jsonrpc: z.string().optional(),
1556
+ method: z.string().optional(),
1557
+ id: z.union([
1558
+ z.string(),
1559
+ z.number()
1560
+ ]).optional(),
1561
+ params: z.record(z.string(), z.unknown()).optional()
1562
+ });
1563
+ /**
1564
+ * JSON-RPC 2.0 success or error response
1565
+ */
1566
+ export const zPostMcpResponse = z.object({
1567
+ jsonrpc: z.string().optional(),
1568
+ id: z.union([
1569
+ z.string(),
1570
+ z.number()
1571
+ ]).optional(),
1572
+ result: z.record(z.string(), z.unknown()).optional(),
1573
+ error: z.object({
1574
+ code: z.int().optional(),
1575
+ message: z.string().optional()
1576
+ }).optional()
1577
+ });
1578
+ /**
1579
+ * Returns a single object containing organization details.
1580
+ */
948
1581
  export const zGetOrganizationResponse = zOrganization;
1582
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
1583
+ /**
1584
+ * Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
1585
+ *
1586
+ */
1587
+ export const zCreateOrganizationResponse = zOrganizationCreateOutput;
1588
+ /**
1589
+ * List of repositories
1590
+ */
1591
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
1592
+ export const zListTagsPath = z.object({
1593
+ region: z.string(),
1594
+ repository: z.string()
1595
+ });
1596
+ /**
1597
+ * Repository with tags
1598
+ */
1599
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
1600
+ export const zDeleteTagPath = z.object({
1601
+ region: z.string(),
1602
+ repository: z.string(),
1603
+ tag: z.string()
1604
+ });
1605
+ export const zGetTagPath = z.object({
1606
+ region: z.string(),
1607
+ repository: z.string(),
1608
+ tag: z.string()
1609
+ });
1610
+ /**
1611
+ * Tag details
1612
+ */
1613
+ export const zGetTagResponse = zRegistryTag;
1614
+ /**
1615
+ * Tickets for the organization.
1616
+ */
1617
+ export const zListTicketsResponse = zTicketListResponse;
1618
+ export const zCreateTicketBody = z.object({
1619
+ payload: z.string().optional(),
1620
+ attachments: z.array(z.string()).optional()
1621
+ });
1622
+ /**
1623
+ * Ticket created.
1624
+ */
1625
+ export const zCreateTicketResponse = zTicket;
1626
+ export const zCloseTicketPath = z.object({
1627
+ ticket_id: z.string()
1628
+ });
1629
+ /**
1630
+ * Ticket closed.
1631
+ */
1632
+ export const zCloseTicketResponse = zTicket;
1633
+ export const zGetTicketPath = z.object({
1634
+ ticket_id: z.string()
1635
+ });
1636
+ /**
1637
+ * Ticket with messages (internal notes excluded).
1638
+ */
1639
+ export const zGetTicketResponse = zTicket;
1640
+ export const zReplyTicketBody = z.object({
1641
+ payload: z.string().optional(),
1642
+ attachments: z.array(z.string()).optional()
1643
+ });
1644
+ export const zReplyTicketPath = z.object({
1645
+ ticket_id: z.string()
1646
+ });
1647
+ /**
1648
+ * Reply appended.
1649
+ */
1650
+ export const zReplyTicketResponse = zTicketMessage;
1651
+ export const zGetTicketAttachmentPath = z.object({
1652
+ ticket_id: z.string(),
1653
+ attachment_id: z.string()
1654
+ });
1655
+ /**
1656
+ * Attachment binary stream.
1657
+ */
1658
+ export const zGetTicketAttachmentResponse = z.string();
1659
+ /**
1660
+ * Returns a list of access token details with masked secrets.
1661
+ */
949
1662
  export const zListTokensResponse = z.array(zToken);
1663
+ export const zCreateTokenBody = zTokenCreateInput;
1664
+ /**
1665
+ * Successfully created. Returns created token details with unmasked/raw secret.
1666
+ */
950
1667
  export const zCreateTokenResponse = zToken;
1668
+ export const zDeleteTokenPath = z.object({
1669
+ token_id: z.string()
1670
+ });
1671
+ export const zGetTokenPath = z.object({
1672
+ token_id: z.string()
1673
+ });
1674
+ /**
1675
+ * Returns access token details with masked secret.
1676
+ */
951
1677
  export const zGetTokenResponse = zToken;
1678
+ export const zUpdateTokenBody = zTokenUpdateInput;
1679
+ export const zUpdateTokenPath = z.object({
1680
+ token_id: z.string()
1681
+ });
1682
+ /**
1683
+ * Successfully updated. Returns updated token details with masked secret.
1684
+ */
952
1685
  export const zUpdateTokenResponse = zToken;
1686
+ export const zRegenerateTokenPath = z.object({
1687
+ token_id: z.string()
1688
+ });
1689
+ /**
1690
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1691
+ */
953
1692
  export const zRegenerateTokenResponse = zToken;
1693
+ export const zListUserOrganizationsPath = z.object({
1694
+ email: z.string()
1695
+ });
1696
+ /**
1697
+ * An array of organizations the user belongs to.
1698
+ */
954
1699
  export const zListUserOrganizationsResponse = z.array(z.object({
955
1700
  realm: z.string().optional(),
956
1701
  displayName: z.string().optional()
957
1702
  }));
1703
+ /**
1704
+ * An array of users
1705
+ */
958
1706
  export const zListUsersResponse = z.array(zUser);
1707
+ export const zCreateUserBody = zUserCreateInput;
1708
+ /**
1709
+ * Successfully created. Returns created user details.
1710
+ */
959
1711
  export const zCreateUserResponse = zUser;
1712
+ export const zDeleteUserPath = z.object({
1713
+ user_id: z.string()
1714
+ });
1715
+ /**
1716
+ * User profile information
1717
+ */
960
1718
  export const zDeleteUserResponse = zUser;
1719
+ export const zGetUserPath = z.object({
1720
+ user_id: z.string()
1721
+ });
1722
+ /**
1723
+ * User profile information
1724
+ */
961
1725
  export const zGetUserResponse = zUser;
1726
+ export const zUpdateUserBody = zUserUpdateInput;
1727
+ export const zUpdateUserPath = z.object({
1728
+ user_id: z.string()
1729
+ });
1730
+ /**
1731
+ * Successfully created. Returns created user details.
1732
+ */
962
1733
  export const zUpdateUserResponse = zUser;
963
1734
  //# sourceMappingURL=zod.gen.js.map