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