@cloudfleet/sdk 0.0.1-46f048b → 0.0.1-486ffca
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 +1881 -1129
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +3266 -1227
- 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 +1960 -1249
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3948 -2913
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1709 -916
- package/dist/zod.gen.js.map +1 -1
- package/package.json +30 -7
package/dist/zod.gen.js
CHANGED
|
@@ -1,1041 +1,1834 @@
|
|
|
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()
|
|
236
|
+
}),
|
|
237
|
+
third_party_api_access_config: z.object({
|
|
238
|
+
metadata_url: z.string(),
|
|
239
|
+
aws_role_arn: z.string(),
|
|
240
|
+
gcp_workload_identity_provider: z.string()
|
|
24
241
|
})
|
|
25
242
|
});
|
|
243
|
+
/**
|
|
244
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
245
|
+
*/
|
|
26
246
|
export const zCluster = z.object({
|
|
27
247
|
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
248
|
tier: z.enum([
|
|
33
249
|
'basic',
|
|
34
|
-
'pro'
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
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(),
|
|
38
287
|
status: z.enum([
|
|
39
|
-
'active',
|
|
40
|
-
'deleted',
|
|
41
288
|
'creating',
|
|
42
289
|
'deployed',
|
|
43
|
-
'
|
|
44
|
-
'
|
|
290
|
+
'updating',
|
|
291
|
+
'disabled'
|
|
45
292
|
]),
|
|
46
293
|
endpoint: z.union([
|
|
47
|
-
z.
|
|
48
|
-
z.enum([
|
|
49
|
-
|
|
50
|
-
|
|
294
|
+
z.url(),
|
|
295
|
+
z.enum([''])
|
|
296
|
+
]).optional(),
|
|
297
|
+
endpoint_public: z.union([
|
|
298
|
+
z.url(),
|
|
299
|
+
z.enum([''])
|
|
51
300
|
]).optional(),
|
|
52
301
|
certificate_ca: z.string().optional(),
|
|
53
302
|
version_current: z.string().optional(),
|
|
54
303
|
created_at: z.string().optional(),
|
|
55
304
|
updated_at: z.string().optional(),
|
|
56
|
-
ready: z.boolean()
|
|
305
|
+
ready: z.boolean()
|
|
57
306
|
});
|
|
307
|
+
/**
|
|
308
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
309
|
+
*/
|
|
58
310
|
export const zClusterUpdateInput = z.object({
|
|
59
|
-
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
60
|
-
|
|
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
|
+
})
|
|
61
336
|
});
|
|
337
|
+
/**
|
|
338
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
339
|
+
*/
|
|
62
340
|
export const zFleetCreateInput = z.object({
|
|
63
341
|
limits: z.object({
|
|
64
|
-
cpu: z.
|
|
342
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
65
343
|
}).optional(),
|
|
66
344
|
gcp: z.object({
|
|
67
|
-
enabled: z.boolean()
|
|
68
|
-
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()
|
|
69
351
|
}).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
352
|
aws: z.object({
|
|
81
|
-
enabled: z.boolean()
|
|
82
|
-
controllerRoleArn: z.string()
|
|
353
|
+
enabled: z.boolean(),
|
|
354
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
83
355
|
}).optional(),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
|
|
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])?$/)
|
|
89
593
|
});
|
|
594
|
+
/**
|
|
595
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
596
|
+
*/
|
|
90
597
|
export const zFleet = z.object({
|
|
91
598
|
limits: z.object({
|
|
92
|
-
cpu: z.
|
|
599
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
93
600
|
}).optional(),
|
|
94
601
|
gcp: z.object({
|
|
95
|
-
enabled: z.boolean()
|
|
96
|
-
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()
|
|
97
608
|
}).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
609
|
aws: z.object({
|
|
109
|
-
enabled: z.boolean()
|
|
110
|
-
controllerRoleArn: z.string()
|
|
610
|
+
enabled: z.boolean(),
|
|
611
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
111
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'),
|
|
112
849
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
850
|
+
ready: z.boolean(),
|
|
851
|
+
status_message: z.string().optional(),
|
|
852
|
+
created_at: z.string(),
|
|
853
|
+
updated_at: z.string()
|
|
117
854
|
});
|
|
855
|
+
/**
|
|
856
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
857
|
+
*/
|
|
118
858
|
export const zFleetUpdateInput = z.object({
|
|
119
859
|
limits: z.object({
|
|
120
|
-
cpu: z.
|
|
860
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
121
861
|
}).optional(),
|
|
122
862
|
gcp: z.object({
|
|
123
|
-
enabled: z.boolean()
|
|
124
|
-
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()
|
|
125
869
|
}).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
870
|
aws: z.object({
|
|
137
|
-
enabled: z.boolean()
|
|
138
|
-
controllerRoleArn: z.string()
|
|
139
|
-
}).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')
|
|
140
1110
|
});
|
|
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()
|
|
1111
|
+
export const zInviteCreateInput = z.object({
|
|
1112
|
+
email: z.email(),
|
|
1113
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
186
1114
|
});
|
|
187
1115
|
export const zInvite = z.object({
|
|
188
1116
|
id: z.string().optional(),
|
|
189
|
-
organization_id: z.
|
|
190
|
-
date_created: z.
|
|
191
|
-
email: z.
|
|
192
|
-
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')
|
|
193
1122
|
});
|
|
194
1123
|
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()
|
|
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()
|
|
777
1133
|
});
|
|
778
|
-
export const
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
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()
|
|
789
1159
|
});
|
|
790
1160
|
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
|
-
}),
|
|
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,}$/),
|
|
804
1166
|
password: z.string().min(8)
|
|
805
1167
|
});
|
|
1168
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1169
|
+
id: z.string()
|
|
1170
|
+
});
|
|
806
1171
|
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(),
|
|
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(),
|
|
822
1176
|
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
|
-
|
|
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),
|
|
829
1184
|
cluster_tiers: z.array(z.string()).min(0),
|
|
830
1185
|
regions: z.array(z.string()).min(1),
|
|
831
1186
|
versions: z.array(z.object({
|
|
832
1187
|
id: z.string(),
|
|
833
1188
|
label: z.string()
|
|
834
|
-
})).min(1)
|
|
1189
|
+
})).min(1),
|
|
1190
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
835
1191
|
}),
|
|
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
1192
|
status: z.enum([
|
|
843
1193
|
'active',
|
|
844
1194
|
'closed',
|
|
845
1195
|
'suspended'
|
|
1196
|
+
]),
|
|
1197
|
+
verification: z.enum([
|
|
1198
|
+
'none',
|
|
1199
|
+
'submitted',
|
|
1200
|
+
'verified'
|
|
846
1201
|
])
|
|
847
1202
|
});
|
|
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
1203
|
export const zPaymentMethod = z.object({
|
|
864
|
-
id: z.string()
|
|
865
|
-
setup: z.boolean(),
|
|
1204
|
+
id: z.string(),
|
|
866
1205
|
type: z.enum([
|
|
867
|
-
'card'
|
|
1206
|
+
'card',
|
|
1207
|
+
'sepa_debit',
|
|
1208
|
+
'bank_transfer'
|
|
868
1209
|
]),
|
|
869
1210
|
last4: z.string(),
|
|
870
|
-
exp_month: z.
|
|
871
|
-
exp_year: z.
|
|
872
|
-
brand: z.
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
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 zTicketMessageInput = z.object({
|
|
1297
|
+
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1298
|
+
});
|
|
1299
|
+
export const zTicketMessage = z.object({
|
|
1300
|
+
id: z.string(),
|
|
1301
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1302
|
+
body: z.string(),
|
|
1303
|
+
author_first_name: z.string().optional(),
|
|
1304
|
+
author_last_name: z.string().optional(),
|
|
1305
|
+
attachments: z.array(z.object({
|
|
1306
|
+
id: z.string(),
|
|
1307
|
+
filename: z.string(),
|
|
1308
|
+
content_type: z.string(),
|
|
1309
|
+
size: z.int()
|
|
1310
|
+
})).optional(),
|
|
1311
|
+
date_created: z.iso.datetime()
|
|
1312
|
+
});
|
|
1313
|
+
export const zTicket = z.object({
|
|
1314
|
+
id: z.string(),
|
|
1315
|
+
status: z.enum([
|
|
1316
|
+
'waiting_on_us',
|
|
1317
|
+
'waiting_on_user',
|
|
1318
|
+
'closed'
|
|
1319
|
+
]),
|
|
1320
|
+
category: z.enum([
|
|
1321
|
+
'billing',
|
|
1322
|
+
'technical',
|
|
1323
|
+
'general'
|
|
1324
|
+
]),
|
|
1325
|
+
summary: z.string(),
|
|
1326
|
+
closed_at: z.iso.datetime().optional(),
|
|
1327
|
+
date_created: z.iso.datetime(),
|
|
1328
|
+
date_updated: z.iso.datetime(),
|
|
1329
|
+
messages: z.array(z.object({
|
|
1330
|
+
id: z.string(),
|
|
1331
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1332
|
+
body: z.string(),
|
|
1333
|
+
author_first_name: z.string().optional(),
|
|
1334
|
+
author_last_name: z.string().optional(),
|
|
1335
|
+
attachments: z.array(z.object({
|
|
1336
|
+
id: z.string(),
|
|
1337
|
+
filename: z.string(),
|
|
1338
|
+
content_type: z.string(),
|
|
1339
|
+
size: z.int()
|
|
1340
|
+
})).optional(),
|
|
1341
|
+
date_created: z.iso.datetime()
|
|
1342
|
+
})).optional()
|
|
883
1343
|
});
|
|
884
1344
|
export const zTokenCreateInput = z.object({
|
|
885
1345
|
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
|
-
])
|
|
1346
|
+
role: z.enum(['Administrator', 'User'])
|
|
890
1347
|
});
|
|
891
1348
|
export const zToken = z.object({
|
|
892
1349
|
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
|
-
]),
|
|
1350
|
+
role: z.enum(['Administrator', 'User']),
|
|
897
1351
|
id: z.string().optional(),
|
|
898
1352
|
secret: z.string().optional(),
|
|
899
|
-
date_created: z.
|
|
1353
|
+
date_created: z.iso.datetime()
|
|
900
1354
|
});
|
|
901
1355
|
export const zTokenUpdateInput = z.object({
|
|
902
1356
|
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
|
-
|
|
1357
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
1358
|
+
});
|
|
1359
|
+
export const zUsageFacets = z.object({
|
|
1360
|
+
cluster_id: z.array(z.string()).optional(),
|
|
1361
|
+
product: z.array(z.enum([
|
|
1362
|
+
'cfke_controlplane_basic',
|
|
1363
|
+
'cfke_controlplane_pro',
|
|
1364
|
+
'cfke_controlplane_enterprise',
|
|
1365
|
+
'cfke_connected_nodes_basic',
|
|
1366
|
+
'cfke_connected_nodes_pro',
|
|
1367
|
+
'cfke_connected_nodes_enterprise',
|
|
1368
|
+
'cfcr_storage'
|
|
1369
|
+
])).optional()
|
|
1370
|
+
});
|
|
1371
|
+
export const zUsageResponse = z.object({
|
|
1372
|
+
data: z.array(z.object({
|
|
1373
|
+
hour: z.string(),
|
|
1374
|
+
cluster_id: z.string(),
|
|
1375
|
+
product: 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
|
+
]),
|
|
1384
|
+
value: z.number(),
|
|
1385
|
+
price: z.number(),
|
|
1386
|
+
total: z.number()
|
|
1387
|
+
})),
|
|
1388
|
+
facets: z.object({
|
|
1389
|
+
cluster_id: z.array(z.string()).optional(),
|
|
1390
|
+
product: z.array(z.enum([
|
|
1391
|
+
'cfke_controlplane_basic',
|
|
1392
|
+
'cfke_controlplane_pro',
|
|
1393
|
+
'cfke_controlplane_enterprise',
|
|
1394
|
+
'cfke_connected_nodes_basic',
|
|
1395
|
+
'cfke_connected_nodes_pro',
|
|
1396
|
+
'cfke_connected_nodes_enterprise',
|
|
1397
|
+
'cfcr_storage'
|
|
1398
|
+
])).optional()
|
|
1399
|
+
})
|
|
907
1400
|
});
|
|
908
1401
|
export const zUsage = z.object({
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
1402
|
+
hour: z.string(),
|
|
1403
|
+
cluster_id: z.string(),
|
|
1404
|
+
product: 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
|
+
]),
|
|
1413
|
+
value: z.number(),
|
|
1414
|
+
price: z.number(),
|
|
1415
|
+
total: z.number()
|
|
913
1416
|
});
|
|
914
1417
|
export const zUserCreateInput = z.object({
|
|
915
|
-
email: z.
|
|
1418
|
+
email: z.email(),
|
|
916
1419
|
first_name: z.string().min(1).max(50),
|
|
917
1420
|
last_name: z.string().min(1).max(50),
|
|
918
1421
|
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()
|
|
1422
|
+
password: z.string().min(8)
|
|
928
1423
|
});
|
|
929
1424
|
export const zUser = z.object({
|
|
930
|
-
email: z.
|
|
1425
|
+
email: z.email(),
|
|
931
1426
|
first_name: z.string().min(1).max(50),
|
|
932
1427
|
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()
|
|
1428
|
+
role: z.enum(['Administrator', 'User']),
|
|
1429
|
+
status: z.enum(['active', 'inactive']),
|
|
1430
|
+
id: z.uuid(),
|
|
1431
|
+
date_created: z.iso.datetime()
|
|
950
1432
|
});
|
|
951
1433
|
export const zUserUpdateInput = z.object({
|
|
952
|
-
email: z.
|
|
1434
|
+
email: z.email().optional(),
|
|
953
1435
|
first_name: z.string().min(1).max(50).optional(),
|
|
954
1436
|
last_name: z.string().min(1).max(50).optional(),
|
|
955
|
-
role: z.enum([
|
|
956
|
-
|
|
957
|
-
|
|
1437
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
1438
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
1439
|
+
});
|
|
1440
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1441
|
+
email: z.string()
|
|
1442
|
+
});
|
|
1443
|
+
/**
|
|
1444
|
+
* An array of organizations the user belongs to.
|
|
1445
|
+
*/
|
|
1446
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1447
|
+
realm: z.string().optional(),
|
|
1448
|
+
displayName: z.string().optional()
|
|
1449
|
+
}));
|
|
1450
|
+
/**
|
|
1451
|
+
* An array of users
|
|
1452
|
+
*/
|
|
1453
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1454
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1455
|
+
/**
|
|
1456
|
+
* Successfully created. Returns created user details.
|
|
1457
|
+
*/
|
|
1458
|
+
export const zCreateUserResponse = zUser;
|
|
1459
|
+
export const zDeleteUserPath = z.object({
|
|
1460
|
+
user_id: z.string()
|
|
1461
|
+
});
|
|
1462
|
+
/**
|
|
1463
|
+
* User profile information
|
|
1464
|
+
*/
|
|
1465
|
+
export const zDeleteUserResponse = zUser;
|
|
1466
|
+
export const zGetUserPath = z.object({
|
|
1467
|
+
user_id: z.string()
|
|
1468
|
+
});
|
|
1469
|
+
/**
|
|
1470
|
+
* User profile information
|
|
1471
|
+
*/
|
|
1472
|
+
export const zGetUserResponse = zUser;
|
|
1473
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1474
|
+
export const zUpdateUserPath = z.object({
|
|
1475
|
+
user_id: z.string()
|
|
1476
|
+
});
|
|
1477
|
+
/**
|
|
1478
|
+
* Successfully created. Returns created user details.
|
|
1479
|
+
*/
|
|
1480
|
+
export const zUpdateUserResponse = zUser;
|
|
1481
|
+
/**
|
|
1482
|
+
* Returns a list of access token details with masked secrets.
|
|
1483
|
+
*/
|
|
1484
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1485
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1486
|
+
/**
|
|
1487
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1488
|
+
*/
|
|
1489
|
+
export const zCreateTokenResponse = zToken;
|
|
1490
|
+
export const zDeleteTokenPath = z.object({
|
|
1491
|
+
token_id: z.string()
|
|
1492
|
+
});
|
|
1493
|
+
export const zGetTokenPath = z.object({
|
|
1494
|
+
token_id: z.string()
|
|
1495
|
+
});
|
|
1496
|
+
/**
|
|
1497
|
+
* Returns access token details with masked secret.
|
|
1498
|
+
*/
|
|
1499
|
+
export const zGetTokenResponse = zToken;
|
|
1500
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1501
|
+
export const zUpdateTokenPath = z.object({
|
|
1502
|
+
token_id: z.string()
|
|
1503
|
+
});
|
|
1504
|
+
/**
|
|
1505
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1506
|
+
*/
|
|
1507
|
+
export const zUpdateTokenResponse = zToken;
|
|
1508
|
+
export const zRegenerateTokenPath = z.object({
|
|
1509
|
+
token_id: z.string()
|
|
1510
|
+
});
|
|
1511
|
+
/**
|
|
1512
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1513
|
+
*/
|
|
1514
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1515
|
+
/**
|
|
1516
|
+
* An array of tickets for the organization, newest first.
|
|
1517
|
+
*/
|
|
1518
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1519
|
+
export const zCreateTicketBody = z.object({
|
|
1520
|
+
payload: z.string().optional(),
|
|
1521
|
+
attachments: z.array(z.string()).optional()
|
|
1522
|
+
});
|
|
1523
|
+
/**
|
|
1524
|
+
* Ticket created.
|
|
1525
|
+
*/
|
|
1526
|
+
export const zCreateTicketResponse = zTicket;
|
|
1527
|
+
export const zCloseTicketPath = z.object({
|
|
1528
|
+
ticket_id: z.string()
|
|
1529
|
+
});
|
|
1530
|
+
/**
|
|
1531
|
+
* Ticket closed.
|
|
1532
|
+
*/
|
|
1533
|
+
export const zCloseTicketResponse = zTicket;
|
|
1534
|
+
export const zGetTicketPath = z.object({
|
|
1535
|
+
ticket_id: z.string()
|
|
1536
|
+
});
|
|
1537
|
+
/**
|
|
1538
|
+
* Ticket with messages (internal notes excluded).
|
|
1539
|
+
*/
|
|
1540
|
+
export const zGetTicketResponse = zTicket;
|
|
1541
|
+
export const zReplyTicketBody = z.object({
|
|
1542
|
+
payload: z.string().optional(),
|
|
1543
|
+
attachments: z.array(z.string()).optional()
|
|
1544
|
+
});
|
|
1545
|
+
export const zReplyTicketPath = z.object({
|
|
1546
|
+
ticket_id: z.string()
|
|
1547
|
+
});
|
|
1548
|
+
/**
|
|
1549
|
+
* Reply appended.
|
|
1550
|
+
*/
|
|
1551
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1552
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1553
|
+
ticket_id: z.string(),
|
|
1554
|
+
attachment_id: z.string()
|
|
1555
|
+
});
|
|
1556
|
+
/**
|
|
1557
|
+
* Attachment binary stream.
|
|
1558
|
+
*/
|
|
1559
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1560
|
+
/**
|
|
1561
|
+
* List of repositories
|
|
1562
|
+
*/
|
|
1563
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1564
|
+
export const zListTagsPath = z.object({
|
|
1565
|
+
region: z.string(),
|
|
1566
|
+
repository: z.string()
|
|
1567
|
+
});
|
|
1568
|
+
/**
|
|
1569
|
+
* Repository with tags
|
|
1570
|
+
*/
|
|
1571
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1572
|
+
export const zDeleteTagPath = z.object({
|
|
1573
|
+
region: z.string(),
|
|
1574
|
+
repository: z.string(),
|
|
1575
|
+
tag: z.string()
|
|
1576
|
+
});
|
|
1577
|
+
export const zGetTagPath = z.object({
|
|
1578
|
+
region: z.string(),
|
|
1579
|
+
repository: z.string(),
|
|
1580
|
+
tag: z.string()
|
|
1581
|
+
});
|
|
1582
|
+
/**
|
|
1583
|
+
* Tag details
|
|
1584
|
+
*/
|
|
1585
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1586
|
+
/**
|
|
1587
|
+
* Returns a single object containing organization details.
|
|
1588
|
+
*/
|
|
1589
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1590
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1591
|
+
/**
|
|
1592
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1593
|
+
*
|
|
1594
|
+
*/
|
|
1595
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1596
|
+
/**
|
|
1597
|
+
* JSON-RPC 2.0 request payload
|
|
1598
|
+
*/
|
|
1599
|
+
export const zPostMcpBody = z.object({
|
|
1600
|
+
jsonrpc: z.string().optional(),
|
|
1601
|
+
method: z.string().optional(),
|
|
1602
|
+
id: z.union([
|
|
1603
|
+
z.string(),
|
|
1604
|
+
z.number()
|
|
958
1605
|
]).optional(),
|
|
959
|
-
|
|
960
|
-
'active',
|
|
961
|
-
'inactive'
|
|
962
|
-
]).optional()
|
|
1606
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
963
1607
|
});
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
export const
|
|
968
|
-
|
|
1608
|
+
/**
|
|
1609
|
+
* JSON-RPC 2.0 success or error response
|
|
1610
|
+
*/
|
|
1611
|
+
export const zPostMcpResponse = z.object({
|
|
1612
|
+
jsonrpc: z.string().optional(),
|
|
1613
|
+
id: z.union([
|
|
1614
|
+
z.string(),
|
|
1615
|
+
z.number()
|
|
1616
|
+
]).optional(),
|
|
1617
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
1618
|
+
error: z.object({
|
|
1619
|
+
code: z.int().optional(),
|
|
1620
|
+
message: z.string().optional()
|
|
1621
|
+
}).optional()
|
|
969
1622
|
});
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1623
|
+
/**
|
|
1624
|
+
* An array of chart listings in the marketplace.
|
|
1625
|
+
*/
|
|
1626
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1627
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1628
|
+
chart_name: z.string(),
|
|
1629
|
+
version_channel: z.string()
|
|
1630
|
+
});
|
|
1631
|
+
/**
|
|
1632
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1633
|
+
*/
|
|
1634
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1635
|
+
/**
|
|
1636
|
+
* An array of invites
|
|
1637
|
+
*/
|
|
1638
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1639
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1640
|
+
/**
|
|
1641
|
+
* Successfully created. Returns created invite details.
|
|
1642
|
+
*/
|
|
1643
|
+
export const zCreateInviteResponse = zInvite;
|
|
1644
|
+
export const zGetInvitePath = z.object({
|
|
1645
|
+
code: z.string()
|
|
973
1646
|
});
|
|
1647
|
+
/**
|
|
1648
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1649
|
+
*/
|
|
1650
|
+
export const zGetInviteResponse = z.object({
|
|
1651
|
+
email: z.email().optional(),
|
|
1652
|
+
organization_id: z.string().optional()
|
|
1653
|
+
});
|
|
1654
|
+
export const zDeleteInvitePath = z.object({
|
|
1655
|
+
email: z.email()
|
|
1656
|
+
});
|
|
1657
|
+
export const zQueryClusterPath = z.object({
|
|
1658
|
+
cluster_id: z.string()
|
|
1659
|
+
});
|
|
1660
|
+
export const zListFleetsPath = z.object({
|
|
1661
|
+
cluster_id: z.string()
|
|
1662
|
+
});
|
|
1663
|
+
/**
|
|
1664
|
+
* An array of fleets
|
|
1665
|
+
*/
|
|
974
1666
|
export const zListFleetsResponse = z.array(zFleet);
|
|
1667
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1668
|
+
export const zCreateFleetPath = z.object({
|
|
1669
|
+
cluster_id: z.string()
|
|
1670
|
+
});
|
|
1671
|
+
/**
|
|
1672
|
+
* Successfully created. Returns created Fleet ID.
|
|
1673
|
+
*/
|
|
975
1674
|
export const zCreateFleetResponse = z.string();
|
|
1675
|
+
export const zDeleteFleetPath = z.object({
|
|
1676
|
+
cluster_id: z.string(),
|
|
1677
|
+
fleet_name: z.string()
|
|
1678
|
+
});
|
|
1679
|
+
/**
|
|
1680
|
+
* Successfully deleted.
|
|
1681
|
+
*/
|
|
976
1682
|
export const zDeleteFleetResponse = z.string();
|
|
1683
|
+
export const zGetFleetPath = z.object({
|
|
1684
|
+
cluster_id: z.string(),
|
|
1685
|
+
fleet_name: z.string()
|
|
1686
|
+
});
|
|
1687
|
+
/**
|
|
1688
|
+
* Returns a single object containing fleet details.
|
|
1689
|
+
*/
|
|
977
1690
|
export const zGetFleetResponse = zFleet;
|
|
1691
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1692
|
+
export const zUpdateFleetPath = z.object({
|
|
1693
|
+
cluster_id: z.string(),
|
|
1694
|
+
fleet_name: z.string()
|
|
1695
|
+
});
|
|
1696
|
+
/**
|
|
1697
|
+
* Successfully updated.
|
|
1698
|
+
*/
|
|
978
1699
|
export const zUpdateFleetResponse = z.string();
|
|
1700
|
+
export const zListChartsPath = z.object({
|
|
1701
|
+
cluster_id: z.string()
|
|
1702
|
+
});
|
|
1703
|
+
/**
|
|
1704
|
+
* An array of charts
|
|
1705
|
+
*/
|
|
1706
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1707
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1708
|
+
export const zCreateChartPath = z.object({
|
|
1709
|
+
cluster_id: z.string()
|
|
1710
|
+
});
|
|
1711
|
+
/**
|
|
1712
|
+
* Successfully created. Returns created Chart ID.
|
|
1713
|
+
*/
|
|
1714
|
+
export const zCreateChartResponse = z.string();
|
|
1715
|
+
export const zDeleteChartPath = z.object({
|
|
1716
|
+
cluster_id: z.string(),
|
|
1717
|
+
chart_name: z.string()
|
|
1718
|
+
});
|
|
1719
|
+
/**
|
|
1720
|
+
* Successfully deleted.
|
|
1721
|
+
*/
|
|
1722
|
+
export const zDeleteChartResponse = z.string();
|
|
1723
|
+
export const zGetChartPath = z.object({
|
|
1724
|
+
cluster_id: z.string(),
|
|
1725
|
+
chart_name: z.string()
|
|
1726
|
+
});
|
|
1727
|
+
/**
|
|
1728
|
+
* Returns a single object containing chart details.
|
|
1729
|
+
*/
|
|
1730
|
+
export const zGetChartResponse = zChart;
|
|
1731
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1732
|
+
export const zUpdateChartPath = z.object({
|
|
1733
|
+
cluster_id: z.string(),
|
|
1734
|
+
chart_name: z.string()
|
|
1735
|
+
});
|
|
1736
|
+
/**
|
|
1737
|
+
* Successfully updated.
|
|
1738
|
+
*/
|
|
1739
|
+
export const zUpdateChartResponse = z.string();
|
|
1740
|
+
/**
|
|
1741
|
+
* An array of clusters
|
|
1742
|
+
*/
|
|
979
1743
|
export const zListClustersResponse = z.array(zCluster);
|
|
1744
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1745
|
+
/**
|
|
1746
|
+
* Successfully created. Returns created Cluster ID.
|
|
1747
|
+
*/
|
|
980
1748
|
export const zCreateClusterResponse = z.string();
|
|
1749
|
+
export const zDeleteClusterPath = z.object({
|
|
1750
|
+
cluster_id: z.string()
|
|
1751
|
+
});
|
|
1752
|
+
/**
|
|
1753
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1754
|
+
*/
|
|
981
1755
|
export const zDeleteClusterResponse = z.string();
|
|
1756
|
+
export const zGetClusterPath = z.object({
|
|
1757
|
+
cluster_id: z.string()
|
|
1758
|
+
});
|
|
1759
|
+
/**
|
|
1760
|
+
* Returns a single object containing cluster details.
|
|
1761
|
+
*/
|
|
982
1762
|
export const zGetClusterResponse = zCluster;
|
|
1763
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1764
|
+
export const zUpdateClusterPath = z.object({
|
|
1765
|
+
cluster_id: z.string()
|
|
1766
|
+
});
|
|
1767
|
+
/**
|
|
1768
|
+
* Successfully updated. Returns updated cluster details.
|
|
1769
|
+
*/
|
|
983
1770
|
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
|
-
|
|
1771
|
+
export const zGetJoinInformationPath = z.object({
|
|
1772
|
+
cluster_id: z.string()
|
|
1773
|
+
});
|
|
1774
|
+
/**
|
|
1775
|
+
* An object of cluster join information
|
|
1776
|
+
*/
|
|
1777
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1778
|
+
export const zGetUsageQuery = z.object({
|
|
1779
|
+
granularity: z.enum([
|
|
1780
|
+
'hourly',
|
|
1781
|
+
'daily',
|
|
1782
|
+
'monthly'
|
|
1783
|
+
]).optional().default('daily')
|
|
1784
|
+
});
|
|
1785
|
+
/**
|
|
1786
|
+
* Usage data with facets for filtering
|
|
1787
|
+
*/
|
|
1788
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1789
|
+
/**
|
|
1790
|
+
* 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.
|
|
1791
|
+
*
|
|
1792
|
+
*/
|
|
1793
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1794
|
+
id: z.string().optional()
|
|
1795
|
+
});
|
|
1796
|
+
/**
|
|
1797
|
+
* An array of payment methods.
|
|
1798
|
+
*/
|
|
1799
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1800
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1801
|
+
paymentMethodId: z.string()
|
|
1802
|
+
});
|
|
1803
|
+
/**
|
|
1804
|
+
* Default payment method updated.
|
|
1805
|
+
*/
|
|
1806
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1807
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1808
|
+
paymentMethodId: z.string()
|
|
1809
|
+
});
|
|
1810
|
+
/**
|
|
1811
|
+
* Payment method deleted.
|
|
1812
|
+
*/
|
|
1813
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1814
|
+
/**
|
|
1815
|
+
* An array of usage records.
|
|
1816
|
+
*/
|
|
1817
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1818
|
+
/**
|
|
1819
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1820
|
+
*/
|
|
1821
|
+
export const zGetContactResponse = zBillingContact;
|
|
1822
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1823
|
+
/**
|
|
1824
|
+
* Successfully updated. Returns updated organization details.
|
|
1825
|
+
*/
|
|
1826
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1827
|
+
/**
|
|
1828
|
+
* An array of the applied promotional credits records.
|
|
1829
|
+
*/
|
|
1830
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1831
|
+
export const zRedeemCreditsBody = z.object({
|
|
1832
|
+
code: z.string().optional()
|
|
1833
|
+
});
|
|
1041
1834
|
//# sourceMappingURL=zod.gen.js.map
|