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