@cloudfleet/sdk 0.0.1-76e2a56 → 0.0.1-7a6b7de
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/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +236 -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 +118 -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 +34 -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 +134 -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 +959 -887
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1436 -943
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +211 -142
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +274 -221
- 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 +904 -770
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1679 -2400
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +673 -838
- package/dist/zod.gen.js.map +1 -1
- package/package.json +12 -5
package/dist/zod.gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import
|
|
2
|
+
import * as z from 'zod';
|
|
3
3
|
export const zBillingContact = z.object({
|
|
4
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
5
|
address1: z.string().optional(),
|
|
@@ -9,31 +9,215 @@ export const zBillingContact = z.object({
|
|
|
9
9
|
state: z.string().optional(),
|
|
10
10
|
country: z.string().optional(),
|
|
11
11
|
phone: z.string().optional(),
|
|
12
|
-
email: z.
|
|
13
|
-
|
|
14
|
-
|
|
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-]+)*))?$/)
|
|
15
193
|
});
|
|
16
194
|
export const zClusterCreateInput = z.object({
|
|
17
195
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
196
|
+
tier: z.enum(['basic', 'pro']),
|
|
18
197
|
region: z.enum([
|
|
19
|
-
'staging',
|
|
20
|
-
'northamerica-central-1'
|
|
198
|
+
'staging-1a',
|
|
199
|
+
'northamerica-central-1',
|
|
200
|
+
'europe-central-1a',
|
|
201
|
+
'northamerica-central-1a'
|
|
21
202
|
]).optional(),
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
|
|
26
|
-
|
|
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()
|
|
27
209
|
});
|
|
28
210
|
export const zClusterJoinInformation = z.object({
|
|
29
211
|
certificate_authority: z.string(),
|
|
30
|
-
endpoint: z.
|
|
212
|
+
endpoint: z.url(),
|
|
213
|
+
cluster_dns: z.string(),
|
|
31
214
|
auth_key: z.string(),
|
|
32
215
|
bootstrap_token: z.string(),
|
|
33
216
|
versions: z.object({
|
|
34
217
|
kubernetes: z.string(),
|
|
35
218
|
tailscale: z.string(),
|
|
36
|
-
containerd: z.string()
|
|
219
|
+
containerd: z.string(),
|
|
220
|
+
nvidia_driver: z.string()
|
|
37
221
|
}),
|
|
38
222
|
third_party_api_access_config: z.object({
|
|
39
223
|
metadata_url: z.string(),
|
|
@@ -43,18 +227,17 @@ export const zClusterJoinInformation = z.object({
|
|
|
43
227
|
});
|
|
44
228
|
export const zCluster = z.object({
|
|
45
229
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
+
tier: z.enum(['basic', 'pro']),
|
|
46
231
|
region: z.enum([
|
|
47
|
-
'staging',
|
|
48
|
-
'northamerica-central-1'
|
|
232
|
+
'staging-1a',
|
|
233
|
+
'northamerica-central-1',
|
|
234
|
+
'europe-central-1a',
|
|
235
|
+
'northamerica-central-1a'
|
|
49
236
|
]).optional(),
|
|
50
|
-
|
|
51
|
-
'basic',
|
|
52
|
-
'pro'
|
|
53
|
-
]),
|
|
54
|
-
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'),
|
|
55
|
-
id: z.string().uuid(),
|
|
237
|
+
id: z.uuid(),
|
|
56
238
|
status: z.enum([
|
|
57
239
|
'active',
|
|
240
|
+
'disabled',
|
|
58
241
|
'deleted',
|
|
59
242
|
'creating',
|
|
60
243
|
'deployed',
|
|
@@ -62,19 +245,19 @@ export const zCluster = z.object({
|
|
|
62
245
|
'updating'
|
|
63
246
|
]),
|
|
64
247
|
endpoint: z.union([
|
|
65
|
-
z.
|
|
66
|
-
z.enum([
|
|
67
|
-
''
|
|
68
|
-
])
|
|
248
|
+
z.url(),
|
|
249
|
+
z.enum([''])
|
|
69
250
|
]).optional(),
|
|
70
251
|
certificate_ca: z.string().optional(),
|
|
71
252
|
version_current: z.string().optional(),
|
|
72
253
|
created_at: z.string().optional(),
|
|
73
254
|
updated_at: z.string().optional(),
|
|
74
|
-
ready: z.boolean().optional()
|
|
255
|
+
ready: z.boolean().optional(),
|
|
256
|
+
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()
|
|
75
257
|
});
|
|
76
258
|
export const zClusterUpdateInput = z.object({
|
|
77
259
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
260
|
+
tier: z.enum(['basic', 'pro']),
|
|
78
261
|
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()
|
|
79
262
|
});
|
|
80
263
|
export const zFleetCreateInput = z.object({
|
|
@@ -85,25 +268,15 @@ export const zFleetCreateInput = z.object({
|
|
|
85
268
|
enabled: z.boolean().optional().default(true),
|
|
86
269
|
project: z.string()
|
|
87
270
|
}).optional(),
|
|
88
|
-
hetzner: z.
|
|
89
|
-
z.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}),
|
|
93
|
-
z.object({
|
|
94
|
-
apiKey: z.string().optional(),
|
|
95
|
-
enabled: z.boolean().optional().default(true)
|
|
96
|
-
})
|
|
97
|
-
]).optional(),
|
|
271
|
+
hetzner: z.object({
|
|
272
|
+
enabled: z.boolean().optional().default(true),
|
|
273
|
+
apiKey: z.string()
|
|
274
|
+
}).optional(),
|
|
98
275
|
aws: z.object({
|
|
99
276
|
enabled: z.boolean().optional().default(true),
|
|
100
277
|
controllerRoleArn: z.string()
|
|
101
278
|
}).optional(),
|
|
102
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
103
|
-
type: z.enum([
|
|
104
|
-
'managed',
|
|
105
|
-
'connected'
|
|
106
|
-
])
|
|
279
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
107
280
|
});
|
|
108
281
|
export const zFleet = z.object({
|
|
109
282
|
limits: z.object({
|
|
@@ -113,25 +286,15 @@ export const zFleet = z.object({
|
|
|
113
286
|
enabled: z.boolean().optional().default(true),
|
|
114
287
|
project: z.string()
|
|
115
288
|
}).optional(),
|
|
116
|
-
hetzner: z.
|
|
117
|
-
z.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}),
|
|
121
|
-
z.object({
|
|
122
|
-
apiKey: z.string().optional(),
|
|
123
|
-
enabled: z.boolean().optional().default(true)
|
|
124
|
-
})
|
|
125
|
-
]).optional(),
|
|
289
|
+
hetzner: z.object({
|
|
290
|
+
enabled: z.boolean().optional().default(true),
|
|
291
|
+
apiKey: z.string()
|
|
292
|
+
}).optional(),
|
|
126
293
|
aws: z.object({
|
|
127
294
|
enabled: z.boolean().optional().default(true),
|
|
128
295
|
controllerRoleArn: z.string()
|
|
129
296
|
}).optional(),
|
|
130
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
131
|
-
type: z.enum([
|
|
132
|
-
'managed',
|
|
133
|
-
'connected'
|
|
134
|
-
])
|
|
297
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
135
298
|
});
|
|
136
299
|
export const zFleetUpdateInput = z.object({
|
|
137
300
|
limits: z.object({
|
|
@@ -141,682 +304,83 @@ export const zFleetUpdateInput = z.object({
|
|
|
141
304
|
enabled: z.boolean().optional().default(true),
|
|
142
305
|
project: z.string()
|
|
143
306
|
}).optional(),
|
|
144
|
-
hetzner: z.
|
|
145
|
-
z.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}),
|
|
149
|
-
z.object({
|
|
150
|
-
apiKey: z.string().optional(),
|
|
151
|
-
enabled: z.boolean().optional().default(true)
|
|
152
|
-
})
|
|
153
|
-
]).optional(),
|
|
307
|
+
hetzner: z.object({
|
|
308
|
+
enabled: z.boolean().optional().default(true),
|
|
309
|
+
apiKey: z.string()
|
|
310
|
+
}).optional(),
|
|
154
311
|
aws: z.object({
|
|
155
312
|
enabled: z.boolean().optional().default(true),
|
|
156
313
|
controllerRoleArn: z.string()
|
|
157
314
|
}).optional()
|
|
158
315
|
});
|
|
159
|
-
export const zInfrastructureFilter = z.object({
|
|
160
|
-
version: z.unknown().optional(),
|
|
161
|
-
provider: z.array(z.string()).optional(),
|
|
162
|
-
region: z.array(z.string()).optional(),
|
|
163
|
-
sub_region: z.array(z.string()).optional(),
|
|
164
|
-
csp_region: z.array(z.string()).optional(),
|
|
165
|
-
instance_type: z.array(z.string()).optional(),
|
|
166
|
-
accelerator_name: z.array(z.string()).optional(),
|
|
167
|
-
accelerator_manufacturer: z.array(z.string()).optional(),
|
|
168
|
-
accelerator_count_min: z.number().int().gte(0).optional(),
|
|
169
|
-
accelerator_count_max: z.number().int().gte(0).optional(),
|
|
170
|
-
accelerator_memory_min: z.number().optional(),
|
|
171
|
-
accelerator_memory_max: z.number().optional(),
|
|
172
|
-
memory_min: z.number().int().gte(0).optional(),
|
|
173
|
-
memory_max: z.number().int().gte(0).optional(),
|
|
174
|
-
vcpu_min: z.number().int().gte(1).optional(),
|
|
175
|
-
vcpu_max: z.number().int().gte(1).optional(),
|
|
176
|
-
storage_total_min: z.number().gte(10).optional(),
|
|
177
|
-
storage_total_max: z.number().gte(10).optional(),
|
|
178
|
-
storage_local_min: z.number().optional(),
|
|
179
|
-
storage_local_max: z.number().optional(),
|
|
180
|
-
price_min: z.number().optional(),
|
|
181
|
-
price_max: z.number().optional()
|
|
182
|
-
});
|
|
183
|
-
export const zInfrastructureInstance = z.object({
|
|
184
|
-
sku: z.string(),
|
|
185
|
-
provider: z.string(),
|
|
186
|
-
region: z.string(),
|
|
187
|
-
sub_region: z.string(),
|
|
188
|
-
csp_region: z.string(),
|
|
189
|
-
csp_zone: z.string(),
|
|
190
|
-
instance_type: z.string(),
|
|
191
|
-
architecture: z.string(),
|
|
192
|
-
os: z.string(),
|
|
193
|
-
vcpu: z.number().gte(1),
|
|
194
|
-
memory: z.number().gte(1),
|
|
195
|
-
local_storage: z.number(),
|
|
196
|
-
accelerator_name: z.string().optional(),
|
|
197
|
-
accelerator_manufacturer: z.string().optional(),
|
|
198
|
-
accelerator_count: z.number().int().optional(),
|
|
199
|
-
accelerator_memory: z.number().optional(),
|
|
200
|
-
pods_capacity: z.number().optional(),
|
|
201
|
-
capacity_type: z.string().optional(),
|
|
202
|
-
price: z.number(),
|
|
203
|
-
available: z.boolean().optional()
|
|
204
|
-
});
|
|
205
316
|
export const zInvite = z.object({
|
|
206
317
|
id: z.string().optional(),
|
|
207
|
-
organization_id: z.
|
|
208
|
-
date_created: z.
|
|
209
|
-
email: z.
|
|
318
|
+
organization_id: z.uuid().optional(),
|
|
319
|
+
date_created: z.iso.datetime(),
|
|
320
|
+
email: z.email().optional(),
|
|
210
321
|
code: z.string().optional()
|
|
211
322
|
});
|
|
212
323
|
export const zInvoice = z.object({
|
|
213
|
-
id: z.string().
|
|
214
|
-
|
|
215
|
-
status: z.
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
'BHD',
|
|
237
|
-
'BIF',
|
|
238
|
-
'BMD',
|
|
239
|
-
'BND',
|
|
240
|
-
'BOB',
|
|
241
|
-
'BRL',
|
|
242
|
-
'BSD',
|
|
243
|
-
'BTN',
|
|
244
|
-
'BWP',
|
|
245
|
-
'BYR',
|
|
246
|
-
'BZD',
|
|
247
|
-
'CAD',
|
|
248
|
-
'CDF',
|
|
249
|
-
'CHF',
|
|
250
|
-
'CLP',
|
|
251
|
-
'CNY',
|
|
252
|
-
'COP',
|
|
253
|
-
'CRC',
|
|
254
|
-
'CUC',
|
|
255
|
-
'CUP',
|
|
256
|
-
'CVE',
|
|
257
|
-
'CZK',
|
|
258
|
-
'DJF',
|
|
259
|
-
'DKK',
|
|
260
|
-
'DOP',
|
|
261
|
-
'DZD',
|
|
262
|
-
'EGP',
|
|
263
|
-
'ERN',
|
|
264
|
-
'ETB',
|
|
265
|
-
'EUR',
|
|
266
|
-
'FJD',
|
|
267
|
-
'FKP',
|
|
268
|
-
'GBP',
|
|
269
|
-
'GEL',
|
|
270
|
-
'GGP',
|
|
271
|
-
'GHS',
|
|
272
|
-
'GIP',
|
|
273
|
-
'GMD',
|
|
274
|
-
'GNF',
|
|
275
|
-
'GTQ',
|
|
276
|
-
'GYD',
|
|
277
|
-
'HKD',
|
|
278
|
-
'HNL',
|
|
279
|
-
'HRK',
|
|
280
|
-
'HTG',
|
|
281
|
-
'HUF',
|
|
282
|
-
'IDR',
|
|
283
|
-
'ILS',
|
|
284
|
-
'IMP',
|
|
285
|
-
'INR',
|
|
286
|
-
'IQD',
|
|
287
|
-
'IRR',
|
|
288
|
-
'ISK',
|
|
289
|
-
'JEP',
|
|
290
|
-
'JMD',
|
|
291
|
-
'JOD',
|
|
292
|
-
'JPY',
|
|
293
|
-
'KES',
|
|
294
|
-
'KGS',
|
|
295
|
-
'KHR',
|
|
296
|
-
'KMF',
|
|
297
|
-
'KPW',
|
|
298
|
-
'KRW',
|
|
299
|
-
'KWD',
|
|
300
|
-
'KYD',
|
|
301
|
-
'KZT',
|
|
302
|
-
'LAK',
|
|
303
|
-
'LBP',
|
|
304
|
-
'LKR',
|
|
305
|
-
'LRD',
|
|
306
|
-
'LSL',
|
|
307
|
-
'LTL',
|
|
308
|
-
'LVL',
|
|
309
|
-
'LYD',
|
|
310
|
-
'MAD',
|
|
311
|
-
'MDL',
|
|
312
|
-
'MGA',
|
|
313
|
-
'MKD',
|
|
314
|
-
'MMK',
|
|
315
|
-
'MNT',
|
|
316
|
-
'MOP',
|
|
317
|
-
'MRO',
|
|
318
|
-
'MUR',
|
|
319
|
-
'MVR',
|
|
320
|
-
'MWK',
|
|
321
|
-
'MXN',
|
|
322
|
-
'MYR',
|
|
323
|
-
'MZN',
|
|
324
|
-
'NAD',
|
|
325
|
-
'NGN',
|
|
326
|
-
'NIO',
|
|
327
|
-
'NOK',
|
|
328
|
-
'NPR',
|
|
329
|
-
'NZD',
|
|
330
|
-
'OMR',
|
|
331
|
-
'PAB',
|
|
332
|
-
'PEN',
|
|
333
|
-
'PGK',
|
|
334
|
-
'PHP',
|
|
335
|
-
'PKR',
|
|
336
|
-
'PLN',
|
|
337
|
-
'PYG',
|
|
338
|
-
'QAR',
|
|
339
|
-
'RON',
|
|
340
|
-
'RSD',
|
|
341
|
-
'RUB',
|
|
342
|
-
'RWF',
|
|
343
|
-
'SAR',
|
|
344
|
-
'SBD',
|
|
345
|
-
'SCR',
|
|
346
|
-
'SDG',
|
|
347
|
-
'SEK',
|
|
348
|
-
'SGD',
|
|
349
|
-
'SHP',
|
|
350
|
-
'SLL',
|
|
351
|
-
'SOS',
|
|
352
|
-
'SPL',
|
|
353
|
-
'SRD',
|
|
354
|
-
'STD',
|
|
355
|
-
'SVC',
|
|
356
|
-
'SYP',
|
|
357
|
-
'SZL',
|
|
358
|
-
'THB',
|
|
359
|
-
'TJS',
|
|
360
|
-
'TMT',
|
|
361
|
-
'TND',
|
|
362
|
-
'TOP',
|
|
363
|
-
'TRY',
|
|
364
|
-
'TTD',
|
|
365
|
-
'TVD',
|
|
366
|
-
'TWD',
|
|
367
|
-
'TZS',
|
|
368
|
-
'UAH',
|
|
369
|
-
'UGX',
|
|
370
|
-
'USD',
|
|
371
|
-
'UYU',
|
|
372
|
-
'UZS',
|
|
373
|
-
'VEF',
|
|
374
|
-
'VND',
|
|
375
|
-
'VUV',
|
|
376
|
-
'WST',
|
|
377
|
-
'XAF',
|
|
378
|
-
'XCD',
|
|
379
|
-
'XDR',
|
|
380
|
-
'XOF',
|
|
381
|
-
'XPF',
|
|
382
|
-
'YER',
|
|
383
|
-
'ZAR',
|
|
384
|
-
'ZMW',
|
|
385
|
-
'ZWD',
|
|
386
|
-
'BTC'
|
|
387
|
-
]).optional(),
|
|
388
|
-
creditAdj: z.number().optional(),
|
|
389
|
-
refundAdj: z.number().optional(),
|
|
390
|
-
invoiceDate: z.string().optional(),
|
|
391
|
-
targetDate: z.string().optional(),
|
|
392
|
-
invoiceNumber: z.string().optional(),
|
|
393
|
-
balance: z.number().optional(),
|
|
394
|
-
bundleKeys: z.string().optional(),
|
|
395
|
-
credits: z.array(z.object({
|
|
396
|
-
id: z.string().uuid().optional(),
|
|
397
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
398
|
-
productName: z.string().optional(),
|
|
399
|
-
planName: z.string().optional(),
|
|
400
|
-
phaseName: z.string().optional(),
|
|
401
|
-
usageName: z.string().optional(),
|
|
402
|
-
prettyProductName: z.string().optional(),
|
|
403
|
-
prettyPlanName: z.string().optional(),
|
|
404
|
-
prettyPhaseName: z.string().optional(),
|
|
405
|
-
prettyUsageName: z.string().optional(),
|
|
406
|
-
itemType: z.enum([
|
|
407
|
-
'EXTERNAL_CHARGE',
|
|
408
|
-
'FIXED',
|
|
409
|
-
'RECURRING',
|
|
410
|
-
'REPAIR_ADJ',
|
|
411
|
-
'CBA_ADJ',
|
|
412
|
-
'CREDIT_ADJ',
|
|
413
|
-
'ITEM_ADJ',
|
|
414
|
-
'USAGE',
|
|
415
|
-
'TAX',
|
|
416
|
-
'PARENT_SUMMARY'
|
|
417
|
-
]).optional(),
|
|
418
|
-
description: z.string().optional(),
|
|
419
|
-
startDate: z.string().optional(),
|
|
420
|
-
endDate: z.string().optional(),
|
|
421
|
-
amount: z.number().optional(),
|
|
422
|
-
rate: z.number().optional(),
|
|
423
|
-
currency: z.enum([
|
|
424
|
-
'AED',
|
|
425
|
-
'AFN',
|
|
426
|
-
'ALL',
|
|
427
|
-
'AMD',
|
|
428
|
-
'ANG',
|
|
429
|
-
'AOA',
|
|
430
|
-
'ARS',
|
|
431
|
-
'AUD',
|
|
432
|
-
'AWG',
|
|
433
|
-
'AZN',
|
|
434
|
-
'BAM',
|
|
435
|
-
'BBD',
|
|
436
|
-
'BDT',
|
|
437
|
-
'BGN',
|
|
438
|
-
'BHD',
|
|
439
|
-
'BIF',
|
|
440
|
-
'BMD',
|
|
441
|
-
'BND',
|
|
442
|
-
'BOB',
|
|
443
|
-
'BRL',
|
|
444
|
-
'BSD',
|
|
445
|
-
'BTN',
|
|
446
|
-
'BWP',
|
|
447
|
-
'BYR',
|
|
448
|
-
'BZD',
|
|
449
|
-
'CAD',
|
|
450
|
-
'CDF',
|
|
451
|
-
'CHF',
|
|
452
|
-
'CLP',
|
|
453
|
-
'CNY',
|
|
454
|
-
'COP',
|
|
455
|
-
'CRC',
|
|
456
|
-
'CUC',
|
|
457
|
-
'CUP',
|
|
458
|
-
'CVE',
|
|
459
|
-
'CZK',
|
|
460
|
-
'DJF',
|
|
461
|
-
'DKK',
|
|
462
|
-
'DOP',
|
|
463
|
-
'DZD',
|
|
464
|
-
'EGP',
|
|
465
|
-
'ERN',
|
|
466
|
-
'ETB',
|
|
467
|
-
'EUR',
|
|
468
|
-
'FJD',
|
|
469
|
-
'FKP',
|
|
470
|
-
'GBP',
|
|
471
|
-
'GEL',
|
|
472
|
-
'GGP',
|
|
473
|
-
'GHS',
|
|
474
|
-
'GIP',
|
|
475
|
-
'GMD',
|
|
476
|
-
'GNF',
|
|
477
|
-
'GTQ',
|
|
478
|
-
'GYD',
|
|
479
|
-
'HKD',
|
|
480
|
-
'HNL',
|
|
481
|
-
'HRK',
|
|
482
|
-
'HTG',
|
|
483
|
-
'HUF',
|
|
484
|
-
'IDR',
|
|
485
|
-
'ILS',
|
|
486
|
-
'IMP',
|
|
487
|
-
'INR',
|
|
488
|
-
'IQD',
|
|
489
|
-
'IRR',
|
|
490
|
-
'ISK',
|
|
491
|
-
'JEP',
|
|
492
|
-
'JMD',
|
|
493
|
-
'JOD',
|
|
494
|
-
'JPY',
|
|
495
|
-
'KES',
|
|
496
|
-
'KGS',
|
|
497
|
-
'KHR',
|
|
498
|
-
'KMF',
|
|
499
|
-
'KPW',
|
|
500
|
-
'KRW',
|
|
501
|
-
'KWD',
|
|
502
|
-
'KYD',
|
|
503
|
-
'KZT',
|
|
504
|
-
'LAK',
|
|
505
|
-
'LBP',
|
|
506
|
-
'LKR',
|
|
507
|
-
'LRD',
|
|
508
|
-
'LSL',
|
|
509
|
-
'LTL',
|
|
510
|
-
'LVL',
|
|
511
|
-
'LYD',
|
|
512
|
-
'MAD',
|
|
513
|
-
'MDL',
|
|
514
|
-
'MGA',
|
|
515
|
-
'MKD',
|
|
516
|
-
'MMK',
|
|
517
|
-
'MNT',
|
|
518
|
-
'MOP',
|
|
519
|
-
'MRO',
|
|
520
|
-
'MUR',
|
|
521
|
-
'MVR',
|
|
522
|
-
'MWK',
|
|
523
|
-
'MXN',
|
|
524
|
-
'MYR',
|
|
525
|
-
'MZN',
|
|
526
|
-
'NAD',
|
|
527
|
-
'NGN',
|
|
528
|
-
'NIO',
|
|
529
|
-
'NOK',
|
|
530
|
-
'NPR',
|
|
531
|
-
'NZD',
|
|
532
|
-
'OMR',
|
|
533
|
-
'PAB',
|
|
534
|
-
'PEN',
|
|
535
|
-
'PGK',
|
|
536
|
-
'PHP',
|
|
537
|
-
'PKR',
|
|
538
|
-
'PLN',
|
|
539
|
-
'PYG',
|
|
540
|
-
'QAR',
|
|
541
|
-
'RON',
|
|
542
|
-
'RSD',
|
|
543
|
-
'RUB',
|
|
544
|
-
'RWF',
|
|
545
|
-
'SAR',
|
|
546
|
-
'SBD',
|
|
547
|
-
'SCR',
|
|
548
|
-
'SDG',
|
|
549
|
-
'SEK',
|
|
550
|
-
'SGD',
|
|
551
|
-
'SHP',
|
|
552
|
-
'SLL',
|
|
553
|
-
'SOS',
|
|
554
|
-
'SPL',
|
|
555
|
-
'SRD',
|
|
556
|
-
'STD',
|
|
557
|
-
'SVC',
|
|
558
|
-
'SYP',
|
|
559
|
-
'SZL',
|
|
560
|
-
'THB',
|
|
561
|
-
'TJS',
|
|
562
|
-
'TMT',
|
|
563
|
-
'TND',
|
|
564
|
-
'TOP',
|
|
565
|
-
'TRY',
|
|
566
|
-
'TTD',
|
|
567
|
-
'TVD',
|
|
568
|
-
'TWD',
|
|
569
|
-
'TZS',
|
|
570
|
-
'UAH',
|
|
571
|
-
'UGX',
|
|
572
|
-
'USD',
|
|
573
|
-
'UYU',
|
|
574
|
-
'UZS',
|
|
575
|
-
'VEF',
|
|
576
|
-
'VND',
|
|
577
|
-
'VUV',
|
|
578
|
-
'WST',
|
|
579
|
-
'XAF',
|
|
580
|
-
'XCD',
|
|
581
|
-
'XDR',
|
|
582
|
-
'XOF',
|
|
583
|
-
'XPF',
|
|
584
|
-
'YER',
|
|
585
|
-
'ZAR',
|
|
586
|
-
'ZMW',
|
|
587
|
-
'ZWD',
|
|
588
|
-
'BTC'
|
|
589
|
-
]).optional(),
|
|
590
|
-
quantity: z.number().optional(),
|
|
591
|
-
itemDetails: z.string().optional(),
|
|
592
|
-
catalogEffectiveDate: z.string().optional(),
|
|
593
|
-
childItems: z.array(z.unknown()).optional()
|
|
594
|
-
})).optional(),
|
|
595
|
-
items: z.array(z.object({
|
|
596
|
-
id: z.string().uuid().optional(),
|
|
597
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
598
|
-
productName: z.string().optional(),
|
|
599
|
-
planName: z.string().optional(),
|
|
600
|
-
phaseName: z.string().optional(),
|
|
601
|
-
usageName: z.string().optional(),
|
|
602
|
-
prettyProductName: z.string().optional(),
|
|
603
|
-
prettyPlanName: z.string().optional(),
|
|
604
|
-
prettyPhaseName: z.string().optional(),
|
|
605
|
-
prettyUsageName: z.string().optional(),
|
|
606
|
-
itemType: z.enum([
|
|
607
|
-
'EXTERNAL_CHARGE',
|
|
608
|
-
'FIXED',
|
|
609
|
-
'RECURRING',
|
|
610
|
-
'REPAIR_ADJ',
|
|
611
|
-
'CBA_ADJ',
|
|
612
|
-
'CREDIT_ADJ',
|
|
613
|
-
'ITEM_ADJ',
|
|
614
|
-
'USAGE',
|
|
615
|
-
'TAX',
|
|
616
|
-
'PARENT_SUMMARY'
|
|
617
|
-
]).optional(),
|
|
324
|
+
id: z.string().optional(),
|
|
325
|
+
number: z.string().optional(),
|
|
326
|
+
status: z.string().optional(),
|
|
327
|
+
total: z.number().optional(),
|
|
328
|
+
currency: z.string().optional(),
|
|
329
|
+
created: z.iso.datetime(),
|
|
330
|
+
period_start: z.iso.datetime(),
|
|
331
|
+
period_end: z.iso.datetime(),
|
|
332
|
+
invoice_pdf: z.string().optional()
|
|
333
|
+
});
|
|
334
|
+
export const zMarketplaceListingFiles = z.object({
|
|
335
|
+
chartYaml: z.string().optional(),
|
|
336
|
+
valuesYaml: z.string().optional(),
|
|
337
|
+
valuesSchemaJson: z.string().optional()
|
|
338
|
+
});
|
|
339
|
+
export const zMarketplaceListing = z.object({
|
|
340
|
+
name: z.string(),
|
|
341
|
+
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-]+)*))?$/)),
|
|
342
|
+
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-]+)*))?$/)),
|
|
343
|
+
latestVersion: z.string(),
|
|
344
|
+
metadata: z.object({
|
|
345
|
+
name: z.string(),
|
|
346
|
+
version: z.string(),
|
|
618
347
|
description: z.string().optional(),
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
'ARS',
|
|
631
|
-
'AUD',
|
|
632
|
-
'AWG',
|
|
633
|
-
'AZN',
|
|
634
|
-
'BAM',
|
|
635
|
-
'BBD',
|
|
636
|
-
'BDT',
|
|
637
|
-
'BGN',
|
|
638
|
-
'BHD',
|
|
639
|
-
'BIF',
|
|
640
|
-
'BMD',
|
|
641
|
-
'BND',
|
|
642
|
-
'BOB',
|
|
643
|
-
'BRL',
|
|
644
|
-
'BSD',
|
|
645
|
-
'BTN',
|
|
646
|
-
'BWP',
|
|
647
|
-
'BYR',
|
|
648
|
-
'BZD',
|
|
649
|
-
'CAD',
|
|
650
|
-
'CDF',
|
|
651
|
-
'CHF',
|
|
652
|
-
'CLP',
|
|
653
|
-
'CNY',
|
|
654
|
-
'COP',
|
|
655
|
-
'CRC',
|
|
656
|
-
'CUC',
|
|
657
|
-
'CUP',
|
|
658
|
-
'CVE',
|
|
659
|
-
'CZK',
|
|
660
|
-
'DJF',
|
|
661
|
-
'DKK',
|
|
662
|
-
'DOP',
|
|
663
|
-
'DZD',
|
|
664
|
-
'EGP',
|
|
665
|
-
'ERN',
|
|
666
|
-
'ETB',
|
|
667
|
-
'EUR',
|
|
668
|
-
'FJD',
|
|
669
|
-
'FKP',
|
|
670
|
-
'GBP',
|
|
671
|
-
'GEL',
|
|
672
|
-
'GGP',
|
|
673
|
-
'GHS',
|
|
674
|
-
'GIP',
|
|
675
|
-
'GMD',
|
|
676
|
-
'GNF',
|
|
677
|
-
'GTQ',
|
|
678
|
-
'GYD',
|
|
679
|
-
'HKD',
|
|
680
|
-
'HNL',
|
|
681
|
-
'HRK',
|
|
682
|
-
'HTG',
|
|
683
|
-
'HUF',
|
|
684
|
-
'IDR',
|
|
685
|
-
'ILS',
|
|
686
|
-
'IMP',
|
|
687
|
-
'INR',
|
|
688
|
-
'IQD',
|
|
689
|
-
'IRR',
|
|
690
|
-
'ISK',
|
|
691
|
-
'JEP',
|
|
692
|
-
'JMD',
|
|
693
|
-
'JOD',
|
|
694
|
-
'JPY',
|
|
695
|
-
'KES',
|
|
696
|
-
'KGS',
|
|
697
|
-
'KHR',
|
|
698
|
-
'KMF',
|
|
699
|
-
'KPW',
|
|
700
|
-
'KRW',
|
|
701
|
-
'KWD',
|
|
702
|
-
'KYD',
|
|
703
|
-
'KZT',
|
|
704
|
-
'LAK',
|
|
705
|
-
'LBP',
|
|
706
|
-
'LKR',
|
|
707
|
-
'LRD',
|
|
708
|
-
'LSL',
|
|
709
|
-
'LTL',
|
|
710
|
-
'LVL',
|
|
711
|
-
'LYD',
|
|
712
|
-
'MAD',
|
|
713
|
-
'MDL',
|
|
714
|
-
'MGA',
|
|
715
|
-
'MKD',
|
|
716
|
-
'MMK',
|
|
717
|
-
'MNT',
|
|
718
|
-
'MOP',
|
|
719
|
-
'MRO',
|
|
720
|
-
'MUR',
|
|
721
|
-
'MVR',
|
|
722
|
-
'MWK',
|
|
723
|
-
'MXN',
|
|
724
|
-
'MYR',
|
|
725
|
-
'MZN',
|
|
726
|
-
'NAD',
|
|
727
|
-
'NGN',
|
|
728
|
-
'NIO',
|
|
729
|
-
'NOK',
|
|
730
|
-
'NPR',
|
|
731
|
-
'NZD',
|
|
732
|
-
'OMR',
|
|
733
|
-
'PAB',
|
|
734
|
-
'PEN',
|
|
735
|
-
'PGK',
|
|
736
|
-
'PHP',
|
|
737
|
-
'PKR',
|
|
738
|
-
'PLN',
|
|
739
|
-
'PYG',
|
|
740
|
-
'QAR',
|
|
741
|
-
'RON',
|
|
742
|
-
'RSD',
|
|
743
|
-
'RUB',
|
|
744
|
-
'RWF',
|
|
745
|
-
'SAR',
|
|
746
|
-
'SBD',
|
|
747
|
-
'SCR',
|
|
748
|
-
'SDG',
|
|
749
|
-
'SEK',
|
|
750
|
-
'SGD',
|
|
751
|
-
'SHP',
|
|
752
|
-
'SLL',
|
|
753
|
-
'SOS',
|
|
754
|
-
'SPL',
|
|
755
|
-
'SRD',
|
|
756
|
-
'STD',
|
|
757
|
-
'SVC',
|
|
758
|
-
'SYP',
|
|
759
|
-
'SZL',
|
|
760
|
-
'THB',
|
|
761
|
-
'TJS',
|
|
762
|
-
'TMT',
|
|
763
|
-
'TND',
|
|
764
|
-
'TOP',
|
|
765
|
-
'TRY',
|
|
766
|
-
'TTD',
|
|
767
|
-
'TVD',
|
|
768
|
-
'TWD',
|
|
769
|
-
'TZS',
|
|
770
|
-
'UAH',
|
|
771
|
-
'UGX',
|
|
772
|
-
'USD',
|
|
773
|
-
'UYU',
|
|
774
|
-
'UZS',
|
|
775
|
-
'VEF',
|
|
776
|
-
'VND',
|
|
777
|
-
'VUV',
|
|
778
|
-
'WST',
|
|
779
|
-
'XAF',
|
|
780
|
-
'XCD',
|
|
781
|
-
'XDR',
|
|
782
|
-
'XOF',
|
|
783
|
-
'XPF',
|
|
784
|
-
'YER',
|
|
785
|
-
'ZAR',
|
|
786
|
-
'ZMW',
|
|
787
|
-
'ZWD',
|
|
788
|
-
'BTC'
|
|
789
|
-
]).optional(),
|
|
790
|
-
quantity: z.number().optional(),
|
|
791
|
-
itemDetails: z.string().optional(),
|
|
792
|
-
catalogEffectiveDate: z.string().optional(),
|
|
793
|
-
childItems: z.array(z.unknown()).optional()
|
|
794
|
-
})).optional()
|
|
348
|
+
appVersion: z.string().optional(),
|
|
349
|
+
apiVersion: z.string().optional(),
|
|
350
|
+
keywords: z.array(z.string()).optional(),
|
|
351
|
+
home: z.string().optional(),
|
|
352
|
+
icon: z.string().optional(),
|
|
353
|
+
sources: z.array(z.string()).optional(),
|
|
354
|
+
maintainers: z.array(z.object({
|
|
355
|
+
name: z.string(),
|
|
356
|
+
email: z.string().optional()
|
|
357
|
+
})).optional()
|
|
358
|
+
}).optional()
|
|
795
359
|
});
|
|
796
360
|
export const zOrganizationCreateInput = z.object({
|
|
797
|
-
email: z.
|
|
361
|
+
email: z.email(),
|
|
798
362
|
first_name: z.string(),
|
|
799
363
|
last_name: z.string(),
|
|
800
364
|
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,}$/),
|
|
801
365
|
password: z.string().min(8)
|
|
802
366
|
});
|
|
803
367
|
export const zOrganization = z.object({
|
|
804
|
-
id: z.
|
|
368
|
+
id: z.uuid(),
|
|
805
369
|
name: z.string().min(2).max(120).optional(),
|
|
806
|
-
date_created: z.
|
|
370
|
+
date_created: z.iso.datetime(),
|
|
807
371
|
quota: z.object({
|
|
808
|
-
basic_clusters_max: z.
|
|
809
|
-
basic_clusters_available: z.
|
|
810
|
-
pro_clusters_max: z.
|
|
811
|
-
pro_clusters_available: z.
|
|
812
|
-
fleets_max: z.
|
|
813
|
-
managed_fleets_cpu_max: z.number().int().gte(0),
|
|
372
|
+
basic_clusters_max: z.int().gte(0),
|
|
373
|
+
basic_clusters_available: z.int(),
|
|
374
|
+
pro_clusters_max: z.int().gte(0),
|
|
375
|
+
pro_clusters_available: z.int(),
|
|
376
|
+
fleets_max: z.int().gte(0),
|
|
814
377
|
cluster_tiers: z.array(z.string()).min(0),
|
|
815
378
|
regions: z.array(z.string()).min(1),
|
|
816
379
|
versions: z.array(z.object({
|
|
817
380
|
id: z.string(),
|
|
818
381
|
label: z.string()
|
|
819
|
-
})).min(1)
|
|
382
|
+
})).min(1),
|
|
383
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
820
384
|
}),
|
|
821
385
|
status: z.enum([
|
|
822
386
|
'active',
|
|
@@ -825,14 +389,12 @@ export const zOrganization = z.object({
|
|
|
825
389
|
])
|
|
826
390
|
});
|
|
827
391
|
export const zPaymentMethod = z.object({
|
|
828
|
-
id: z.
|
|
392
|
+
id: z.uuid(),
|
|
829
393
|
setup: z.boolean(),
|
|
830
|
-
type: z.enum([
|
|
831
|
-
'card'
|
|
832
|
-
]),
|
|
394
|
+
type: z.enum(['card']),
|
|
833
395
|
last4: z.string(),
|
|
834
|
-
exp_month: z.
|
|
835
|
-
exp_year: z.
|
|
396
|
+
exp_month: z.int().gte(1).lte(12),
|
|
397
|
+
exp_year: z.int().gte(2024),
|
|
836
398
|
brand: z.enum([
|
|
837
399
|
'amex',
|
|
838
400
|
'diners',
|
|
@@ -845,193 +407,466 @@ export const zPaymentMethod = z.object({
|
|
|
845
407
|
'unknown'
|
|
846
408
|
])
|
|
847
409
|
});
|
|
410
|
+
export const zPlatformQuota = z.object({
|
|
411
|
+
basic_clusters_max: z.int().gte(0),
|
|
412
|
+
basic_clusters_available: z.int(),
|
|
413
|
+
pro_clusters_max: z.int().gte(0),
|
|
414
|
+
pro_clusters_available: z.int(),
|
|
415
|
+
fleets_max: z.int().gte(0),
|
|
416
|
+
cluster_tiers: z.array(z.string()).min(0),
|
|
417
|
+
regions: z.array(z.string()).min(1),
|
|
418
|
+
versions: z.array(z.object({
|
|
419
|
+
id: z.string(),
|
|
420
|
+
label: z.string()
|
|
421
|
+
})).min(1),
|
|
422
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
423
|
+
});
|
|
424
|
+
export const zRegistryRepository = z.object({
|
|
425
|
+
name: z.string(),
|
|
426
|
+
region: z.string(),
|
|
427
|
+
uri: z.string()
|
|
428
|
+
});
|
|
429
|
+
export const zRegistryRepositoryWithTags = z.object({
|
|
430
|
+
name: z.string(),
|
|
431
|
+
region: z.string(),
|
|
432
|
+
uri: z.string(),
|
|
433
|
+
tags: z.array(z.object({
|
|
434
|
+
name: z.string(),
|
|
435
|
+
size: z.number(),
|
|
436
|
+
mediaType: z.string().optional(),
|
|
437
|
+
platforms: z.array(z.string()).optional()
|
|
438
|
+
})),
|
|
439
|
+
totalSize: z.number()
|
|
440
|
+
});
|
|
441
|
+
export const zRegistryTag = z.object({
|
|
442
|
+
name: z.string(),
|
|
443
|
+
digest: z.string(),
|
|
444
|
+
mediaType: z.string().optional(),
|
|
445
|
+
config: z.object({
|
|
446
|
+
size: z.number()
|
|
447
|
+
}).optional(),
|
|
448
|
+
layers: z.array(z.object({
|
|
449
|
+
digest: z.string().optional(),
|
|
450
|
+
size: z.number()
|
|
451
|
+
})).optional(),
|
|
452
|
+
manifests: z.array(z.object({
|
|
453
|
+
digest: z.string(),
|
|
454
|
+
platform: z.object({
|
|
455
|
+
architecture: z.string(),
|
|
456
|
+
os: z.string(),
|
|
457
|
+
variant: z.string().optional()
|
|
458
|
+
}).optional(),
|
|
459
|
+
layers: z.array(z.object({
|
|
460
|
+
digest: z.string().optional(),
|
|
461
|
+
size: z.number()
|
|
462
|
+
})).optional(),
|
|
463
|
+
size: z.number().optional()
|
|
464
|
+
})).optional(),
|
|
465
|
+
size: z.number(),
|
|
466
|
+
region: z.string(),
|
|
467
|
+
repository: z.string(),
|
|
468
|
+
uri: z.string()
|
|
469
|
+
});
|
|
848
470
|
export const zTokenCreateInput = z.object({
|
|
849
471
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
850
|
-
role: z.enum([
|
|
851
|
-
'Administrator',
|
|
852
|
-
'User'
|
|
853
|
-
])
|
|
472
|
+
role: z.enum(['Administrator', 'User'])
|
|
854
473
|
});
|
|
855
474
|
export const zToken = z.object({
|
|
856
475
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
857
|
-
role: z.enum([
|
|
858
|
-
'Administrator',
|
|
859
|
-
'User'
|
|
860
|
-
]),
|
|
476
|
+
role: z.enum(['Administrator', 'User']),
|
|
861
477
|
id: z.string().optional(),
|
|
862
478
|
secret: z.string().optional(),
|
|
863
|
-
date_created: z.
|
|
479
|
+
date_created: z.iso.datetime()
|
|
864
480
|
});
|
|
865
481
|
export const zTokenUpdateInput = z.object({
|
|
866
482
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
867
|
-
role: z.enum([
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
483
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
484
|
+
});
|
|
485
|
+
export const zUsageFacets = z.object({
|
|
486
|
+
cluster_id: z.array(z.string()).optional(),
|
|
487
|
+
product: z.array(z.string()).optional()
|
|
488
|
+
});
|
|
489
|
+
export const zUsageResponse = z.object({
|
|
490
|
+
data: z.array(z.object({
|
|
491
|
+
hour: z.string(),
|
|
492
|
+
cluster_id: z.string(),
|
|
493
|
+
product: z.string(),
|
|
494
|
+
value: z.number(),
|
|
495
|
+
price: z.number(),
|
|
496
|
+
total: z.number()
|
|
497
|
+
})),
|
|
498
|
+
facets: z.object({
|
|
499
|
+
cluster_id: z.array(z.string()).optional(),
|
|
500
|
+
product: z.array(z.string()).optional()
|
|
501
|
+
})
|
|
871
502
|
});
|
|
872
503
|
export const zUsage = z.object({
|
|
873
|
-
hour: z.string()
|
|
874
|
-
cluster_id: z.string()
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
'cfke_infra_compute',
|
|
880
|
-
'cfke_nodes',
|
|
881
|
-
'cfke_controlplane'
|
|
882
|
-
]),
|
|
883
|
-
node_name: z.string(),
|
|
884
|
-
sku: z.string(),
|
|
885
|
-
cpu: z.union([
|
|
886
|
-
z.number(),
|
|
887
|
-
z.enum([
|
|
888
|
-
''
|
|
889
|
-
])
|
|
890
|
-
]),
|
|
891
|
-
price: z.union([
|
|
892
|
-
z.number(),
|
|
893
|
-
z.enum([
|
|
894
|
-
''
|
|
895
|
-
])
|
|
896
|
-
]),
|
|
897
|
-
value: z.union([
|
|
898
|
-
z.number(),
|
|
899
|
-
z.enum([
|
|
900
|
-
''
|
|
901
|
-
])
|
|
902
|
-
]),
|
|
903
|
-
total: z.union([
|
|
904
|
-
z.number(),
|
|
905
|
-
z.enum([
|
|
906
|
-
''
|
|
907
|
-
])
|
|
908
|
-
])
|
|
504
|
+
hour: z.string(),
|
|
505
|
+
cluster_id: z.string(),
|
|
506
|
+
product: z.string(),
|
|
507
|
+
value: z.number(),
|
|
508
|
+
price: z.number(),
|
|
509
|
+
total: z.number()
|
|
909
510
|
});
|
|
910
511
|
export const zUserCreateInput = z.object({
|
|
911
|
-
email: z.
|
|
512
|
+
email: z.email(),
|
|
912
513
|
first_name: z.string().min(1).max(50),
|
|
913
514
|
last_name: z.string().min(1).max(50),
|
|
914
515
|
code: z.string(),
|
|
915
516
|
password: z.string().min(8),
|
|
916
|
-
status: z.enum([
|
|
917
|
-
|
|
918
|
-
'inactive'
|
|
919
|
-
]).optional(),
|
|
920
|
-
role: z.enum([
|
|
921
|
-
'Administrator',
|
|
922
|
-
'User'
|
|
923
|
-
]).optional()
|
|
517
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
518
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
924
519
|
});
|
|
925
520
|
export const zUser = z.object({
|
|
926
|
-
email: z.
|
|
521
|
+
email: z.email(),
|
|
927
522
|
first_name: z.string().min(1).max(50),
|
|
928
523
|
last_name: z.string().min(1).max(50),
|
|
929
|
-
role: z.enum([
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
status: z.enum([
|
|
934
|
-
'active',
|
|
935
|
-
'inactive'
|
|
936
|
-
]),
|
|
937
|
-
id: z.string().uuid(),
|
|
938
|
-
date_created: z.string().datetime(),
|
|
939
|
-
cluster_permissions: z.array(z.object({
|
|
940
|
-
cluster_id: z.string().uuid(),
|
|
941
|
-
permissions: z.enum([
|
|
942
|
-
'readwrite',
|
|
943
|
-
'readonly'
|
|
944
|
-
])
|
|
945
|
-
})).optional()
|
|
524
|
+
role: z.enum(['Administrator', 'User']),
|
|
525
|
+
status: z.enum(['active', 'inactive']),
|
|
526
|
+
id: z.uuid(),
|
|
527
|
+
date_created: z.iso.datetime()
|
|
946
528
|
});
|
|
947
529
|
export const zUserUpdateInput = z.object({
|
|
948
|
-
email: z.
|
|
530
|
+
email: z.email().optional(),
|
|
949
531
|
first_name: z.string().min(1).max(50).optional(),
|
|
950
532
|
last_name: z.string().min(1).max(50).optional(),
|
|
951
|
-
role: z.enum([
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
'
|
|
957
|
-
'
|
|
533
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
534
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
535
|
+
});
|
|
536
|
+
export const zGetUsageQuery = z.object({
|
|
537
|
+
granularity: z.enum([
|
|
538
|
+
'hourly',
|
|
539
|
+
'daily',
|
|
540
|
+
'monthly'
|
|
958
541
|
]).optional()
|
|
959
542
|
});
|
|
960
|
-
|
|
961
|
-
|
|
543
|
+
/**
|
|
544
|
+
* Usage data with facets for filtering
|
|
545
|
+
*/
|
|
546
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
547
|
+
/**
|
|
548
|
+
* Redacted payment card information.
|
|
549
|
+
*/
|
|
962
550
|
export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
551
|
+
/**
|
|
552
|
+
* 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.
|
|
553
|
+
*
|
|
554
|
+
*/
|
|
963
555
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
964
556
|
id: z.string().optional()
|
|
965
557
|
});
|
|
558
|
+
/**
|
|
559
|
+
* An array of usage records.
|
|
560
|
+
*/
|
|
966
561
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
562
|
+
/**
|
|
563
|
+
* Returns a single object containing organization contact and billing address details.
|
|
564
|
+
*/
|
|
970
565
|
export const zGetContactResponse = zBillingContact;
|
|
566
|
+
export const zUpdateContactBody = zBillingContact;
|
|
567
|
+
/**
|
|
568
|
+
* Successfully updated. Returns updated organization details.
|
|
569
|
+
*/
|
|
971
570
|
export const zUpdateContactResponse = zBillingContact;
|
|
571
|
+
/**
|
|
572
|
+
* An array of the applied promotional credits records.
|
|
573
|
+
*/
|
|
574
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
575
|
+
export const zRedeemCreditsBody = z.object({
|
|
576
|
+
code: z.string().optional()
|
|
577
|
+
});
|
|
578
|
+
export const zListChartsPath = z.object({
|
|
579
|
+
cluster_id: z.string()
|
|
580
|
+
});
|
|
581
|
+
/**
|
|
582
|
+
* An array of charts
|
|
583
|
+
*/
|
|
584
|
+
export const zListChartsResponse = z.array(zChart);
|
|
585
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
586
|
+
export const zCreateChartPath = z.object({
|
|
587
|
+
cluster_id: z.string()
|
|
588
|
+
});
|
|
589
|
+
/**
|
|
590
|
+
* Successfully created. Returns created Chart ID.
|
|
591
|
+
*/
|
|
592
|
+
export const zCreateChartResponse = z.string();
|
|
593
|
+
export const zDeleteChartPath = z.object({
|
|
594
|
+
cluster_id: z.string(),
|
|
595
|
+
chart_name: z.string()
|
|
596
|
+
});
|
|
597
|
+
/**
|
|
598
|
+
* Successfully deleted.
|
|
599
|
+
*/
|
|
600
|
+
export const zDeleteChartResponse = z.string();
|
|
601
|
+
export const zGetChartPath = z.object({
|
|
602
|
+
cluster_id: z.string(),
|
|
603
|
+
chart_name: z.string()
|
|
604
|
+
});
|
|
605
|
+
/**
|
|
606
|
+
* Returns a single object containing chart details.
|
|
607
|
+
*/
|
|
608
|
+
export const zGetChartResponse = zChart;
|
|
609
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
610
|
+
export const zUpdateChartPath = z.object({
|
|
611
|
+
cluster_id: z.string(),
|
|
612
|
+
chart_name: z.string()
|
|
613
|
+
});
|
|
614
|
+
/**
|
|
615
|
+
* Successfully updated.
|
|
616
|
+
*/
|
|
617
|
+
export const zUpdateChartResponse = z.string();
|
|
618
|
+
export const zListFleetsPath = z.object({
|
|
619
|
+
cluster_id: z.string()
|
|
620
|
+
});
|
|
621
|
+
/**
|
|
622
|
+
* An array of fleets
|
|
623
|
+
*/
|
|
972
624
|
export const zListFleetsResponse = z.array(zFleet);
|
|
625
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
626
|
+
export const zCreateFleetPath = z.object({
|
|
627
|
+
cluster_id: z.string()
|
|
628
|
+
});
|
|
629
|
+
/**
|
|
630
|
+
* Successfully created. Returns created Fleet ID.
|
|
631
|
+
*/
|
|
973
632
|
export const zCreateFleetResponse = z.string();
|
|
633
|
+
export const zDeleteFleetPath = z.object({
|
|
634
|
+
cluster_id: z.string(),
|
|
635
|
+
fleet_name: z.string()
|
|
636
|
+
});
|
|
637
|
+
/**
|
|
638
|
+
* Successfully deleted.
|
|
639
|
+
*/
|
|
974
640
|
export const zDeleteFleetResponse = z.string();
|
|
641
|
+
export const zGetFleetPath = z.object({
|
|
642
|
+
cluster_id: z.string(),
|
|
643
|
+
fleet_name: z.string()
|
|
644
|
+
});
|
|
645
|
+
/**
|
|
646
|
+
* Returns a single object containing fleet details.
|
|
647
|
+
*/
|
|
975
648
|
export const zGetFleetResponse = zFleet;
|
|
649
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
650
|
+
export const zUpdateFleetPath = z.object({
|
|
651
|
+
cluster_id: z.string(),
|
|
652
|
+
fleet_name: z.string()
|
|
653
|
+
});
|
|
654
|
+
/**
|
|
655
|
+
* Successfully updated.
|
|
656
|
+
*/
|
|
976
657
|
export const zUpdateFleetResponse = z.string();
|
|
658
|
+
export const zQueryClusterPath = z.object({
|
|
659
|
+
cluster_id: z.string()
|
|
660
|
+
});
|
|
661
|
+
/**
|
|
662
|
+
* An array of clusters
|
|
663
|
+
*/
|
|
977
664
|
export const zListClustersResponse = z.array(zCluster);
|
|
665
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
666
|
+
/**
|
|
667
|
+
* Successfully created. Returns created Cluster ID.
|
|
668
|
+
*/
|
|
978
669
|
export const zCreateClusterResponse = z.string();
|
|
670
|
+
export const zDeleteClusterPath = z.object({
|
|
671
|
+
cluster_id: z.string()
|
|
672
|
+
});
|
|
673
|
+
/**
|
|
674
|
+
* Successfully deleted.
|
|
675
|
+
*/
|
|
979
676
|
export const zDeleteClusterResponse = z.string();
|
|
677
|
+
export const zGetClusterPath = z.object({
|
|
678
|
+
cluster_id: z.string()
|
|
679
|
+
});
|
|
680
|
+
/**
|
|
681
|
+
* Returns a single object containing cluster details.
|
|
682
|
+
*/
|
|
980
683
|
export const zGetClusterResponse = zCluster;
|
|
684
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
685
|
+
export const zUpdateClusterPath = z.object({
|
|
686
|
+
cluster_id: z.string()
|
|
687
|
+
});
|
|
688
|
+
/**
|
|
689
|
+
* Successfully updated. Returns updated cluster details.
|
|
690
|
+
*/
|
|
981
691
|
export const zUpdateClusterResponse = zCluster;
|
|
982
|
-
export const
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
accelerator_memory_min: z.number().optional(),
|
|
1000
|
-
accelerator_memory_max: z.number().optional(),
|
|
1001
|
-
price_min: z.number().optional(),
|
|
1002
|
-
price_max: z.number().optional(),
|
|
1003
|
-
regions_struct: z.array(z.object({
|
|
1004
|
-
region: z.string().optional(),
|
|
1005
|
-
sub_region: z.array(z.string()).optional()
|
|
1006
|
-
})).optional(),
|
|
1007
|
-
accelerators_struct: z.array(z.object({
|
|
1008
|
-
accelerator_manufacturer: z.string().optional(),
|
|
1009
|
-
accelerator_name: z.array(z.string()).optional()
|
|
1010
|
-
})).optional(),
|
|
1011
|
-
count_total: z.number().int().gte(0).optional(),
|
|
1012
|
-
count_accelerators: z.number().int().gte(0).optional(),
|
|
1013
|
-
count_instance_types: z.number().int().gte(0).optional(),
|
|
1014
|
-
count_accelerators_instance_types: z.number().int().gte(0).optional()
|
|
1015
|
-
}));
|
|
1016
|
-
export const zGetRegionsResponse = z.object({});
|
|
692
|
+
export const zGetClusterCaPath = z.object({
|
|
693
|
+
cluster_id: z.string()
|
|
694
|
+
});
|
|
695
|
+
/**
|
|
696
|
+
* PEM-encoded certificate authority of the cluster.
|
|
697
|
+
*/
|
|
698
|
+
export const zGetClusterCaResponse = z.string();
|
|
699
|
+
export const zGetJoinInformationPath = z.object({
|
|
700
|
+
cluster_id: z.string()
|
|
701
|
+
});
|
|
702
|
+
/**
|
|
703
|
+
* An object of cluster join information
|
|
704
|
+
*/
|
|
705
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
706
|
+
/**
|
|
707
|
+
* An array of invites
|
|
708
|
+
*/
|
|
1017
709
|
export const zListInvitesResponse = z.array(zInvite);
|
|
710
|
+
export const zCreateInviteBody = z.object({
|
|
711
|
+
email: z.string().optional()
|
|
712
|
+
});
|
|
713
|
+
/**
|
|
714
|
+
* Successfully created. Returns created invite details.
|
|
715
|
+
*/
|
|
1018
716
|
export const zCreateInviteResponse = zInvite;
|
|
717
|
+
export const zGetInvitePath = z.object({
|
|
718
|
+
code: z.string()
|
|
719
|
+
});
|
|
720
|
+
/**
|
|
721
|
+
* Returns a single object containing invite details.
|
|
722
|
+
*/
|
|
1019
723
|
export const zGetInviteResponse = zInvite;
|
|
724
|
+
export const zDeleteInvitePath = z.object({
|
|
725
|
+
email: z.string()
|
|
726
|
+
});
|
|
727
|
+
/**
|
|
728
|
+
* An array of chart listings in the marketplace.
|
|
729
|
+
*/
|
|
730
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
731
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
732
|
+
chart_name: z.string(),
|
|
733
|
+
version_channel: z.string()
|
|
734
|
+
});
|
|
735
|
+
/**
|
|
736
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
737
|
+
*/
|
|
738
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
739
|
+
/**
|
|
740
|
+
* JSON-RPC 2.0 request payload
|
|
741
|
+
*/
|
|
742
|
+
export const zPostMcpBody = z.object({
|
|
743
|
+
jsonrpc: z.string().optional(),
|
|
744
|
+
method: z.string().optional(),
|
|
745
|
+
id: z.union([
|
|
746
|
+
z.string(),
|
|
747
|
+
z.number()
|
|
748
|
+
]).optional(),
|
|
749
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
750
|
+
});
|
|
751
|
+
/**
|
|
752
|
+
* JSON-RPC 2.0 success or error response
|
|
753
|
+
*/
|
|
754
|
+
export const zPostMcpResponse = z.object({
|
|
755
|
+
jsonrpc: z.string().optional(),
|
|
756
|
+
id: z.union([
|
|
757
|
+
z.string(),
|
|
758
|
+
z.number()
|
|
759
|
+
]).optional(),
|
|
760
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
761
|
+
error: z.object({
|
|
762
|
+
code: z.int().optional(),
|
|
763
|
+
message: z.string().optional()
|
|
764
|
+
}).optional()
|
|
765
|
+
});
|
|
766
|
+
/**
|
|
767
|
+
* Returns a single object containing organization details.
|
|
768
|
+
*/
|
|
1020
769
|
export const zGetOrganizationResponse = zOrganization;
|
|
770
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
771
|
+
/**
|
|
772
|
+
* List of repositories
|
|
773
|
+
*/
|
|
774
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
775
|
+
export const zListTagsPath = z.object({
|
|
776
|
+
region: z.string(),
|
|
777
|
+
repository: z.string()
|
|
778
|
+
});
|
|
779
|
+
/**
|
|
780
|
+
* Repository with tags
|
|
781
|
+
*/
|
|
782
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
783
|
+
export const zDeleteTagPath = z.object({
|
|
784
|
+
region: z.string(),
|
|
785
|
+
repository: z.string(),
|
|
786
|
+
tag: z.string()
|
|
787
|
+
});
|
|
788
|
+
export const zGetTagPath = z.object({
|
|
789
|
+
region: z.string(),
|
|
790
|
+
repository: z.string(),
|
|
791
|
+
tag: z.string()
|
|
792
|
+
});
|
|
793
|
+
/**
|
|
794
|
+
* Tag details
|
|
795
|
+
*/
|
|
796
|
+
export const zGetTagResponse = zRegistryTag;
|
|
797
|
+
/**
|
|
798
|
+
* Returns a list of access token details with masked secrets.
|
|
799
|
+
*/
|
|
1021
800
|
export const zListTokensResponse = z.array(zToken);
|
|
801
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
802
|
+
/**
|
|
803
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
804
|
+
*/
|
|
1022
805
|
export const zCreateTokenResponse = zToken;
|
|
806
|
+
export const zDeleteTokenPath = z.object({
|
|
807
|
+
token_id: z.string()
|
|
808
|
+
});
|
|
809
|
+
export const zGetTokenPath = z.object({
|
|
810
|
+
token_id: z.string()
|
|
811
|
+
});
|
|
812
|
+
/**
|
|
813
|
+
* Returns access token details with masked secret.
|
|
814
|
+
*/
|
|
1023
815
|
export const zGetTokenResponse = zToken;
|
|
816
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
817
|
+
export const zUpdateTokenPath = z.object({
|
|
818
|
+
token_id: z.string()
|
|
819
|
+
});
|
|
820
|
+
/**
|
|
821
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
822
|
+
*/
|
|
1024
823
|
export const zUpdateTokenResponse = zToken;
|
|
824
|
+
export const zRegenerateTokenPath = z.object({
|
|
825
|
+
token_id: z.string()
|
|
826
|
+
});
|
|
827
|
+
/**
|
|
828
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
829
|
+
*/
|
|
1025
830
|
export const zRegenerateTokenResponse = zToken;
|
|
831
|
+
export const zListUserOrganizationsPath = z.object({
|
|
832
|
+
email: z.string()
|
|
833
|
+
});
|
|
834
|
+
/**
|
|
835
|
+
* An array of organizations the user belongs to.
|
|
836
|
+
*/
|
|
1026
837
|
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1027
838
|
realm: z.string().optional(),
|
|
1028
839
|
displayName: z.string().optional()
|
|
1029
840
|
}));
|
|
841
|
+
/**
|
|
842
|
+
* An array of users
|
|
843
|
+
*/
|
|
1030
844
|
export const zListUsersResponse = z.array(zUser);
|
|
845
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
846
|
+
/**
|
|
847
|
+
* Successfully created. Returns created user details.
|
|
848
|
+
*/
|
|
1031
849
|
export const zCreateUserResponse = zUser;
|
|
850
|
+
export const zDeleteUserPath = z.object({
|
|
851
|
+
user_id: z.string()
|
|
852
|
+
});
|
|
853
|
+
/**
|
|
854
|
+
* User profile information
|
|
855
|
+
*/
|
|
1032
856
|
export const zDeleteUserResponse = zUser;
|
|
857
|
+
export const zGetUserPath = z.object({
|
|
858
|
+
user_id: z.string()
|
|
859
|
+
});
|
|
860
|
+
/**
|
|
861
|
+
* User profile information
|
|
862
|
+
*/
|
|
1033
863
|
export const zGetUserResponse = zUser;
|
|
864
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
865
|
+
export const zUpdateUserPath = z.object({
|
|
866
|
+
user_id: z.string()
|
|
867
|
+
});
|
|
868
|
+
/**
|
|
869
|
+
* Successfully created. Returns created user details.
|
|
870
|
+
*/
|
|
1034
871
|
export const zUpdateUserResponse = zUser;
|
|
1035
|
-
export const zDeleteClusterPermissionsResponse = zUser;
|
|
1036
|
-
export const zSetClusterPermissionsResponse = zUser;
|
|
1037
872
|
//# sourceMappingURL=zod.gen.js.map
|