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