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