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