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