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