@cloudfleet/sdk 0.0.1-3818918 → 0.0.1-396f274
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/client.gen.d.ts +3 -0
- package/dist/client/client.gen.d.ts.map +1 -0
- package/dist/client/client.gen.js +236 -0
- package/dist/client/client.gen.js.map +1 -0
- package/dist/client/index.d.ts +9 -0
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +7 -0
- package/dist/client/index.js.map +1 -0
- package/dist/client/types.gen.d.ts +118 -0
- package/dist/client/types.gen.d.ts.map +1 -0
- package/dist/client/types.gen.js +3 -0
- package/dist/client/types.gen.js.map +1 -0
- package/dist/client/utils.gen.d.ts +34 -0
- package/dist/client/utils.gen.d.ts.map +1 -0
- package/dist/client/utils.gen.js +229 -0
- package/dist/client/utils.gen.js.map +1 -0
- package/dist/client.gen.d.ts +4 -4
- package/dist/client.gen.d.ts.map +1 -1
- package/dist/client.gen.js +2 -4
- package/dist/client.gen.js.map +1 -1
- package/dist/core/auth.gen.d.ts +19 -0
- package/dist/core/auth.gen.d.ts.map +1 -0
- package/dist/core/auth.gen.js +15 -0
- package/dist/core/auth.gen.js.map +1 -0
- package/dist/core/bodySerializer.gen.d.ts +26 -0
- package/dist/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/core/bodySerializer.gen.js +58 -0
- package/dist/core/bodySerializer.gen.js.map +1 -0
- package/dist/core/params.gen.d.ts +44 -0
- package/dist/core/params.gen.d.ts.map +1 -0
- package/dist/core/params.gen.js +101 -0
- package/dist/core/params.gen.js.map +1 -0
- package/dist/core/pathSerializer.gen.d.ts +34 -0
- package/dist/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/core/pathSerializer.gen.js +107 -0
- package/dist/core/pathSerializer.gen.js.map +1 -0
- package/dist/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +134 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/types.gen.d.ts +79 -0
- package/dist/core/types.gen.d.ts.map +1 -0
- package/dist/core/types.gen.js +3 -0
- package/dist/core/types.gen.js.map +1 -0
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +718 -597
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1226 -681
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +141 -76
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +171 -185
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +12 -12
- package/dist/types.gen.d.ts +618 -359
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +1621 -2193
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +618 -771
- package/dist/zod.gen.js.map +1 -1
- package/package.json +10 -7
package/dist/zod.gen.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import
|
|
2
|
+
import * as z from 'zod';
|
|
3
3
|
export const zBillingContact = z.object({
|
|
4
4
|
company: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/).optional(),
|
|
5
5
|
address1: z.string().optional(),
|
|
@@ -9,22 +9,148 @@ export const zBillingContact = z.object({
|
|
|
9
9
|
state: z.string().optional(),
|
|
10
10
|
country: z.string().optional(),
|
|
11
11
|
phone: z.string().optional(),
|
|
12
|
-
email: z.
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
email: z.email(),
|
|
13
|
+
individual_name: z.string(),
|
|
14
|
+
tax_id: z.string().optional(),
|
|
15
|
+
tax_id_type: z.enum([
|
|
16
|
+
'ad_nrt',
|
|
17
|
+
'ae_trn',
|
|
18
|
+
'al_tin',
|
|
19
|
+
'am_tin',
|
|
20
|
+
'ao_tin',
|
|
21
|
+
'ar_cuit',
|
|
22
|
+
'at_vat',
|
|
23
|
+
'au_abn',
|
|
24
|
+
'au_arn',
|
|
25
|
+
'ba_tin',
|
|
26
|
+
'bb_tin',
|
|
27
|
+
'be_vat',
|
|
28
|
+
'bg_uic',
|
|
29
|
+
'bg_vat',
|
|
30
|
+
'bh_vat',
|
|
31
|
+
'bo_tin',
|
|
32
|
+
'br_cnpj',
|
|
33
|
+
'br_cpf',
|
|
34
|
+
'bs_tin',
|
|
35
|
+
'by_tin',
|
|
36
|
+
'ca_bn',
|
|
37
|
+
'ca_gst_hst',
|
|
38
|
+
'ca_pst_bc',
|
|
39
|
+
'ca_pst_mb',
|
|
40
|
+
'ca_pst_sk',
|
|
41
|
+
'ca_qst',
|
|
42
|
+
'cd_nif',
|
|
43
|
+
'ch_uid',
|
|
44
|
+
'ch_vat',
|
|
45
|
+
'cl_tin',
|
|
46
|
+
'cn_tin',
|
|
47
|
+
'co_nit',
|
|
48
|
+
'cr_tin',
|
|
49
|
+
'cy_vat',
|
|
50
|
+
'cz_vat',
|
|
51
|
+
'de_stn',
|
|
52
|
+
'de_vat',
|
|
53
|
+
'dk_vat',
|
|
54
|
+
'do_rcn',
|
|
55
|
+
'ec_ruc',
|
|
56
|
+
'ee_vat',
|
|
57
|
+
'eg_tin',
|
|
58
|
+
'es_cif',
|
|
59
|
+
'es_vat',
|
|
60
|
+
'eu_oss_vat',
|
|
61
|
+
'fi_vat',
|
|
62
|
+
'fr_vat',
|
|
63
|
+
'gb_vat',
|
|
64
|
+
'ge_vat',
|
|
65
|
+
'gn_nif',
|
|
66
|
+
'gr_vat',
|
|
67
|
+
'hk_br',
|
|
68
|
+
'hr_oib',
|
|
69
|
+
'hr_vat',
|
|
70
|
+
'hu_tin',
|
|
71
|
+
'hu_vat',
|
|
72
|
+
'id_npwp',
|
|
73
|
+
'ie_vat',
|
|
74
|
+
'il_vat',
|
|
75
|
+
'in_gst',
|
|
76
|
+
'is_vat',
|
|
77
|
+
'it_vat',
|
|
78
|
+
'jp_cn',
|
|
79
|
+
'jp_rn',
|
|
80
|
+
'jp_trn',
|
|
81
|
+
'ke_pin',
|
|
82
|
+
'kh_tin',
|
|
83
|
+
'kr_brn',
|
|
84
|
+
'kz_bin',
|
|
85
|
+
'li_uid',
|
|
86
|
+
'li_vat',
|
|
87
|
+
'lt_vat',
|
|
88
|
+
'lu_vat',
|
|
89
|
+
'lv_vat',
|
|
90
|
+
'ma_vat',
|
|
91
|
+
'md_vat',
|
|
92
|
+
'me_pib',
|
|
93
|
+
'mk_vat',
|
|
94
|
+
'mr_nif',
|
|
95
|
+
'mt_vat',
|
|
96
|
+
'mx_rfc',
|
|
97
|
+
'my_frp',
|
|
98
|
+
'my_itn',
|
|
99
|
+
'my_sst',
|
|
100
|
+
'ng_tin',
|
|
101
|
+
'nl_vat',
|
|
102
|
+
'no_vat',
|
|
103
|
+
'no_voec',
|
|
104
|
+
'np_pan',
|
|
105
|
+
'nz_gst',
|
|
106
|
+
'om_vat',
|
|
107
|
+
'pe_ruc',
|
|
108
|
+
'ph_tin',
|
|
109
|
+
'pl_vat',
|
|
110
|
+
'pt_vat',
|
|
111
|
+
'ro_tin',
|
|
112
|
+
'ro_vat',
|
|
113
|
+
'rs_pib',
|
|
114
|
+
'ru_inn',
|
|
115
|
+
'ru_kpp',
|
|
116
|
+
'sa_vat',
|
|
117
|
+
'se_vat',
|
|
118
|
+
'sg_gst',
|
|
119
|
+
'sg_uen',
|
|
120
|
+
'si_tin',
|
|
121
|
+
'si_vat',
|
|
122
|
+
'sk_vat',
|
|
123
|
+
'sn_ninea',
|
|
124
|
+
'sr_fin',
|
|
125
|
+
'sv_nit',
|
|
126
|
+
'th_vat',
|
|
127
|
+
'tj_tin',
|
|
128
|
+
'tr_tin',
|
|
129
|
+
'tw_vat',
|
|
130
|
+
'tz_vat',
|
|
131
|
+
'ua_vat',
|
|
132
|
+
'ug_tin',
|
|
133
|
+
'us_ein',
|
|
134
|
+
'uy_ruc',
|
|
135
|
+
'uz_tin',
|
|
136
|
+
'uz_vat',
|
|
137
|
+
've_rif',
|
|
138
|
+
'vn_tin',
|
|
139
|
+
'xi_vat',
|
|
140
|
+
'za_vat',
|
|
141
|
+
'zm_tin',
|
|
142
|
+
'zw_tin',
|
|
143
|
+
''
|
|
144
|
+
]).optional()
|
|
15
145
|
});
|
|
16
146
|
export const zBillingCredits = z.object({
|
|
17
147
|
id: z.string().optional(),
|
|
18
|
-
|
|
148
|
+
type: z.enum(['credit', 'discount']),
|
|
149
|
+
date_start: z.iso.datetime(),
|
|
150
|
+
date_end: z.iso.datetime().optional(),
|
|
19
151
|
code: z.string(),
|
|
20
152
|
description: z.string().optional(),
|
|
21
|
-
|
|
22
|
-
type: z.enum([
|
|
23
|
-
'credit',
|
|
24
|
-
'discount'
|
|
25
|
-
]),
|
|
26
|
-
value: z.number(),
|
|
27
|
-
billing_period: z.string().datetime(),
|
|
153
|
+
value_total: z.number(),
|
|
28
154
|
value_remaining: z.number().optional()
|
|
29
155
|
});
|
|
30
156
|
export const zChartCreateInput = z.object({
|
|
@@ -53,7 +179,8 @@ export const zChart = z.object({
|
|
|
53
179
|
'UninstallFailed',
|
|
54
180
|
'ArtifactFailed',
|
|
55
181
|
'DependencyNotReady',
|
|
56
|
-
'Progressing'
|
|
182
|
+
'Progressing',
|
|
183
|
+
'SourceNotReady'
|
|
57
184
|
]),
|
|
58
185
|
version_current: z.string(),
|
|
59
186
|
created_at: z.string(),
|
|
@@ -66,25 +193,31 @@ export const zChartUpdateInput = z.object({
|
|
|
66
193
|
});
|
|
67
194
|
export const zClusterCreateInput = z.object({
|
|
68
195
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
196
|
+
tier: z.enum(['basic', 'pro']),
|
|
69
197
|
region: z.enum([
|
|
70
|
-
'staging',
|
|
71
|
-
'northamerica-central-1'
|
|
198
|
+
'staging-1a',
|
|
199
|
+
'northamerica-central-1',
|
|
200
|
+
'europe-central-1a',
|
|
201
|
+
'northamerica-central-1a'
|
|
72
202
|
]).optional(),
|
|
73
|
-
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
|
|
77
|
-
|
|
203
|
+
version_channel: z.enum([
|
|
204
|
+
'1.x.x-cfke.x',
|
|
205
|
+
'1.31.x-cfke.x',
|
|
206
|
+
'1.32.x-cfke.x',
|
|
207
|
+
'1.33.x-cfke.x'
|
|
208
|
+
]).optional()
|
|
78
209
|
});
|
|
79
210
|
export const zClusterJoinInformation = z.object({
|
|
80
211
|
certificate_authority: z.string(),
|
|
81
|
-
endpoint: z.
|
|
212
|
+
endpoint: z.url(),
|
|
213
|
+
cluster_dns: z.string(),
|
|
82
214
|
auth_key: z.string(),
|
|
83
215
|
bootstrap_token: z.string(),
|
|
84
216
|
versions: z.object({
|
|
85
217
|
kubernetes: z.string(),
|
|
86
218
|
tailscale: z.string(),
|
|
87
|
-
containerd: z.string()
|
|
219
|
+
containerd: z.string(),
|
|
220
|
+
nvidia_driver: z.string()
|
|
88
221
|
}),
|
|
89
222
|
third_party_api_access_config: z.object({
|
|
90
223
|
metadata_url: z.string(),
|
|
@@ -94,18 +227,17 @@ export const zClusterJoinInformation = z.object({
|
|
|
94
227
|
});
|
|
95
228
|
export const zCluster = z.object({
|
|
96
229
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
|
+
tier: z.enum(['basic', 'pro']),
|
|
97
231
|
region: z.enum([
|
|
98
|
-
'staging',
|
|
99
|
-
'northamerica-central-1'
|
|
232
|
+
'staging-1a',
|
|
233
|
+
'northamerica-central-1',
|
|
234
|
+
'europe-central-1a',
|
|
235
|
+
'northamerica-central-1a'
|
|
100
236
|
]).optional(),
|
|
101
|
-
|
|
102
|
-
'basic',
|
|
103
|
-
'pro'
|
|
104
|
-
]),
|
|
105
|
-
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'),
|
|
106
|
-
id: z.string().uuid(),
|
|
237
|
+
id: z.uuid(),
|
|
107
238
|
status: z.enum([
|
|
108
239
|
'active',
|
|
240
|
+
'disabled',
|
|
109
241
|
'deleted',
|
|
110
242
|
'creating',
|
|
111
243
|
'deployed',
|
|
@@ -113,19 +245,19 @@ export const zCluster = z.object({
|
|
|
113
245
|
'updating'
|
|
114
246
|
]),
|
|
115
247
|
endpoint: z.union([
|
|
116
|
-
z.
|
|
117
|
-
z.enum([
|
|
118
|
-
''
|
|
119
|
-
])
|
|
248
|
+
z.url(),
|
|
249
|
+
z.enum([''])
|
|
120
250
|
]).optional(),
|
|
121
251
|
certificate_ca: z.string().optional(),
|
|
122
252
|
version_current: z.string().optional(),
|
|
123
253
|
created_at: z.string().optional(),
|
|
124
254
|
updated_at: z.string().optional(),
|
|
125
|
-
ready: z.boolean().optional()
|
|
255
|
+
ready: z.boolean().optional(),
|
|
256
|
+
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
126
257
|
});
|
|
127
258
|
export const zClusterUpdateInput = z.object({
|
|
128
259
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
260
|
+
tier: z.enum(['basic', 'pro']),
|
|
129
261
|
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
130
262
|
});
|
|
131
263
|
export const zFleetCreateInput = z.object({
|
|
@@ -136,25 +268,15 @@ export const zFleetCreateInput = z.object({
|
|
|
136
268
|
enabled: z.boolean().optional().default(true),
|
|
137
269
|
project: z.string()
|
|
138
270
|
}).optional(),
|
|
139
|
-
hetzner: z.
|
|
140
|
-
z.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
}),
|
|
144
|
-
z.object({
|
|
145
|
-
apiKey: z.string().optional(),
|
|
146
|
-
enabled: z.boolean().optional().default(true)
|
|
147
|
-
})
|
|
148
|
-
]).optional(),
|
|
271
|
+
hetzner: z.object({
|
|
272
|
+
enabled: z.boolean().optional().default(true),
|
|
273
|
+
apiKey: z.string()
|
|
274
|
+
}).optional(),
|
|
149
275
|
aws: z.object({
|
|
150
276
|
enabled: z.boolean().optional().default(true),
|
|
151
277
|
controllerRoleArn: z.string()
|
|
152
278
|
}).optional(),
|
|
153
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
154
|
-
type: z.enum([
|
|
155
|
-
'managed',
|
|
156
|
-
'connected'
|
|
157
|
-
])
|
|
279
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
158
280
|
});
|
|
159
281
|
export const zFleet = z.object({
|
|
160
282
|
limits: z.object({
|
|
@@ -164,25 +286,15 @@ export const zFleet = z.object({
|
|
|
164
286
|
enabled: z.boolean().optional().default(true),
|
|
165
287
|
project: z.string()
|
|
166
288
|
}).optional(),
|
|
167
|
-
hetzner: z.
|
|
168
|
-
z.
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}),
|
|
172
|
-
z.object({
|
|
173
|
-
apiKey: z.string().optional(),
|
|
174
|
-
enabled: z.boolean().optional().default(true)
|
|
175
|
-
})
|
|
176
|
-
]).optional(),
|
|
289
|
+
hetzner: z.object({
|
|
290
|
+
enabled: z.boolean().optional().default(true),
|
|
291
|
+
apiKey: z.string()
|
|
292
|
+
}).optional(),
|
|
177
293
|
aws: z.object({
|
|
178
294
|
enabled: z.boolean().optional().default(true),
|
|
179
295
|
controllerRoleArn: z.string()
|
|
180
296
|
}).optional(),
|
|
181
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
182
|
-
type: z.enum([
|
|
183
|
-
'managed',
|
|
184
|
-
'connected'
|
|
185
|
-
])
|
|
297
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
186
298
|
});
|
|
187
299
|
export const zFleetUpdateInput = z.object({
|
|
188
300
|
limits: z.object({
|
|
@@ -192,16 +304,10 @@ export const zFleetUpdateInput = z.object({
|
|
|
192
304
|
enabled: z.boolean().optional().default(true),
|
|
193
305
|
project: z.string()
|
|
194
306
|
}).optional(),
|
|
195
|
-
hetzner: z.
|
|
196
|
-
z.
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}),
|
|
200
|
-
z.object({
|
|
201
|
-
apiKey: z.string().optional(),
|
|
202
|
-
enabled: z.boolean().optional().default(true)
|
|
203
|
-
})
|
|
204
|
-
]).optional(),
|
|
307
|
+
hetzner: z.object({
|
|
308
|
+
enabled: z.boolean().optional().default(true),
|
|
309
|
+
apiKey: z.string()
|
|
310
|
+
}).optional(),
|
|
205
311
|
aws: z.object({
|
|
206
312
|
enabled: z.boolean().optional().default(true),
|
|
207
313
|
controllerRoleArn: z.string()
|
|
@@ -209,634 +315,74 @@ export const zFleetUpdateInput = z.object({
|
|
|
209
315
|
});
|
|
210
316
|
export const zInvite = z.object({
|
|
211
317
|
id: z.string().optional(),
|
|
212
|
-
organization_id: z.
|
|
213
|
-
date_created: z.
|
|
214
|
-
email: z.
|
|
318
|
+
organization_id: z.uuid().optional(),
|
|
319
|
+
date_created: z.iso.datetime(),
|
|
320
|
+
email: z.email().optional(),
|
|
215
321
|
code: z.string().optional()
|
|
216
322
|
});
|
|
217
323
|
export const zInvoice = z.object({
|
|
218
|
-
id: z.string().
|
|
219
|
-
|
|
220
|
-
status: z.
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
'AOA',
|
|
233
|
-
'ARS',
|
|
234
|
-
'AUD',
|
|
235
|
-
'AWG',
|
|
236
|
-
'AZN',
|
|
237
|
-
'BAM',
|
|
238
|
-
'BBD',
|
|
239
|
-
'BDT',
|
|
240
|
-
'BGN',
|
|
241
|
-
'BHD',
|
|
242
|
-
'BIF',
|
|
243
|
-
'BMD',
|
|
244
|
-
'BND',
|
|
245
|
-
'BOB',
|
|
246
|
-
'BRL',
|
|
247
|
-
'BSD',
|
|
248
|
-
'BTN',
|
|
249
|
-
'BWP',
|
|
250
|
-
'BYR',
|
|
251
|
-
'BZD',
|
|
252
|
-
'CAD',
|
|
253
|
-
'CDF',
|
|
254
|
-
'CHF',
|
|
255
|
-
'CLP',
|
|
256
|
-
'CNY',
|
|
257
|
-
'COP',
|
|
258
|
-
'CRC',
|
|
259
|
-
'CUC',
|
|
260
|
-
'CUP',
|
|
261
|
-
'CVE',
|
|
262
|
-
'CZK',
|
|
263
|
-
'DJF',
|
|
264
|
-
'DKK',
|
|
265
|
-
'DOP',
|
|
266
|
-
'DZD',
|
|
267
|
-
'EGP',
|
|
268
|
-
'ERN',
|
|
269
|
-
'ETB',
|
|
270
|
-
'EUR',
|
|
271
|
-
'FJD',
|
|
272
|
-
'FKP',
|
|
273
|
-
'GBP',
|
|
274
|
-
'GEL',
|
|
275
|
-
'GGP',
|
|
276
|
-
'GHS',
|
|
277
|
-
'GIP',
|
|
278
|
-
'GMD',
|
|
279
|
-
'GNF',
|
|
280
|
-
'GTQ',
|
|
281
|
-
'GYD',
|
|
282
|
-
'HKD',
|
|
283
|
-
'HNL',
|
|
284
|
-
'HRK',
|
|
285
|
-
'HTG',
|
|
286
|
-
'HUF',
|
|
287
|
-
'IDR',
|
|
288
|
-
'ILS',
|
|
289
|
-
'IMP',
|
|
290
|
-
'INR',
|
|
291
|
-
'IQD',
|
|
292
|
-
'IRR',
|
|
293
|
-
'ISK',
|
|
294
|
-
'JEP',
|
|
295
|
-
'JMD',
|
|
296
|
-
'JOD',
|
|
297
|
-
'JPY',
|
|
298
|
-
'KES',
|
|
299
|
-
'KGS',
|
|
300
|
-
'KHR',
|
|
301
|
-
'KMF',
|
|
302
|
-
'KPW',
|
|
303
|
-
'KRW',
|
|
304
|
-
'KWD',
|
|
305
|
-
'KYD',
|
|
306
|
-
'KZT',
|
|
307
|
-
'LAK',
|
|
308
|
-
'LBP',
|
|
309
|
-
'LKR',
|
|
310
|
-
'LRD',
|
|
311
|
-
'LSL',
|
|
312
|
-
'LTL',
|
|
313
|
-
'LVL',
|
|
314
|
-
'LYD',
|
|
315
|
-
'MAD',
|
|
316
|
-
'MDL',
|
|
317
|
-
'MGA',
|
|
318
|
-
'MKD',
|
|
319
|
-
'MMK',
|
|
320
|
-
'MNT',
|
|
321
|
-
'MOP',
|
|
322
|
-
'MRO',
|
|
323
|
-
'MUR',
|
|
324
|
-
'MVR',
|
|
325
|
-
'MWK',
|
|
326
|
-
'MXN',
|
|
327
|
-
'MYR',
|
|
328
|
-
'MZN',
|
|
329
|
-
'NAD',
|
|
330
|
-
'NGN',
|
|
331
|
-
'NIO',
|
|
332
|
-
'NOK',
|
|
333
|
-
'NPR',
|
|
334
|
-
'NZD',
|
|
335
|
-
'OMR',
|
|
336
|
-
'PAB',
|
|
337
|
-
'PEN',
|
|
338
|
-
'PGK',
|
|
339
|
-
'PHP',
|
|
340
|
-
'PKR',
|
|
341
|
-
'PLN',
|
|
342
|
-
'PYG',
|
|
343
|
-
'QAR',
|
|
344
|
-
'RON',
|
|
345
|
-
'RSD',
|
|
346
|
-
'RUB',
|
|
347
|
-
'RWF',
|
|
348
|
-
'SAR',
|
|
349
|
-
'SBD',
|
|
350
|
-
'SCR',
|
|
351
|
-
'SDG',
|
|
352
|
-
'SEK',
|
|
353
|
-
'SGD',
|
|
354
|
-
'SHP',
|
|
355
|
-
'SLL',
|
|
356
|
-
'SOS',
|
|
357
|
-
'SPL',
|
|
358
|
-
'SRD',
|
|
359
|
-
'STD',
|
|
360
|
-
'SVC',
|
|
361
|
-
'SYP',
|
|
362
|
-
'SZL',
|
|
363
|
-
'THB',
|
|
364
|
-
'TJS',
|
|
365
|
-
'TMT',
|
|
366
|
-
'TND',
|
|
367
|
-
'TOP',
|
|
368
|
-
'TRY',
|
|
369
|
-
'TTD',
|
|
370
|
-
'TVD',
|
|
371
|
-
'TWD',
|
|
372
|
-
'TZS',
|
|
373
|
-
'UAH',
|
|
374
|
-
'UGX',
|
|
375
|
-
'USD',
|
|
376
|
-
'UYU',
|
|
377
|
-
'UZS',
|
|
378
|
-
'VEF',
|
|
379
|
-
'VND',
|
|
380
|
-
'VUV',
|
|
381
|
-
'WST',
|
|
382
|
-
'XAF',
|
|
383
|
-
'XCD',
|
|
384
|
-
'XDR',
|
|
385
|
-
'XOF',
|
|
386
|
-
'XPF',
|
|
387
|
-
'YER',
|
|
388
|
-
'ZAR',
|
|
389
|
-
'ZMW',
|
|
390
|
-
'ZWD',
|
|
391
|
-
'BTC'
|
|
392
|
-
]).optional(),
|
|
393
|
-
creditAdj: z.number().optional(),
|
|
394
|
-
refundAdj: z.number().optional(),
|
|
395
|
-
invoiceDate: z.string().optional(),
|
|
396
|
-
targetDate: z.string().optional(),
|
|
397
|
-
invoiceNumber: z.string().optional(),
|
|
398
|
-
balance: z.number().optional(),
|
|
399
|
-
bundleKeys: z.string().optional(),
|
|
400
|
-
credits: z.array(z.object({
|
|
401
|
-
id: z.string().uuid().optional(),
|
|
402
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
403
|
-
productName: z.string().optional(),
|
|
404
|
-
planName: z.string().optional(),
|
|
405
|
-
phaseName: z.string().optional(),
|
|
406
|
-
usageName: z.string().optional(),
|
|
407
|
-
prettyProductName: z.string().optional(),
|
|
408
|
-
prettyPlanName: z.string().optional(),
|
|
409
|
-
prettyPhaseName: z.string().optional(),
|
|
410
|
-
prettyUsageName: z.string().optional(),
|
|
411
|
-
itemType: z.enum([
|
|
412
|
-
'EXTERNAL_CHARGE',
|
|
413
|
-
'FIXED',
|
|
414
|
-
'RECURRING',
|
|
415
|
-
'REPAIR_ADJ',
|
|
416
|
-
'CBA_ADJ',
|
|
417
|
-
'CREDIT_ADJ',
|
|
418
|
-
'ITEM_ADJ',
|
|
419
|
-
'USAGE',
|
|
420
|
-
'TAX',
|
|
421
|
-
'PARENT_SUMMARY'
|
|
422
|
-
]).optional(),
|
|
423
|
-
description: z.string().optional(),
|
|
424
|
-
startDate: z.string().optional(),
|
|
425
|
-
endDate: z.string().optional(),
|
|
426
|
-
amount: z.number().optional(),
|
|
427
|
-
rate: z.number().optional(),
|
|
428
|
-
currency: z.enum([
|
|
429
|
-
'AED',
|
|
430
|
-
'AFN',
|
|
431
|
-
'ALL',
|
|
432
|
-
'AMD',
|
|
433
|
-
'ANG',
|
|
434
|
-
'AOA',
|
|
435
|
-
'ARS',
|
|
436
|
-
'AUD',
|
|
437
|
-
'AWG',
|
|
438
|
-
'AZN',
|
|
439
|
-
'BAM',
|
|
440
|
-
'BBD',
|
|
441
|
-
'BDT',
|
|
442
|
-
'BGN',
|
|
443
|
-
'BHD',
|
|
444
|
-
'BIF',
|
|
445
|
-
'BMD',
|
|
446
|
-
'BND',
|
|
447
|
-
'BOB',
|
|
448
|
-
'BRL',
|
|
449
|
-
'BSD',
|
|
450
|
-
'BTN',
|
|
451
|
-
'BWP',
|
|
452
|
-
'BYR',
|
|
453
|
-
'BZD',
|
|
454
|
-
'CAD',
|
|
455
|
-
'CDF',
|
|
456
|
-
'CHF',
|
|
457
|
-
'CLP',
|
|
458
|
-
'CNY',
|
|
459
|
-
'COP',
|
|
460
|
-
'CRC',
|
|
461
|
-
'CUC',
|
|
462
|
-
'CUP',
|
|
463
|
-
'CVE',
|
|
464
|
-
'CZK',
|
|
465
|
-
'DJF',
|
|
466
|
-
'DKK',
|
|
467
|
-
'DOP',
|
|
468
|
-
'DZD',
|
|
469
|
-
'EGP',
|
|
470
|
-
'ERN',
|
|
471
|
-
'ETB',
|
|
472
|
-
'EUR',
|
|
473
|
-
'FJD',
|
|
474
|
-
'FKP',
|
|
475
|
-
'GBP',
|
|
476
|
-
'GEL',
|
|
477
|
-
'GGP',
|
|
478
|
-
'GHS',
|
|
479
|
-
'GIP',
|
|
480
|
-
'GMD',
|
|
481
|
-
'GNF',
|
|
482
|
-
'GTQ',
|
|
483
|
-
'GYD',
|
|
484
|
-
'HKD',
|
|
485
|
-
'HNL',
|
|
486
|
-
'HRK',
|
|
487
|
-
'HTG',
|
|
488
|
-
'HUF',
|
|
489
|
-
'IDR',
|
|
490
|
-
'ILS',
|
|
491
|
-
'IMP',
|
|
492
|
-
'INR',
|
|
493
|
-
'IQD',
|
|
494
|
-
'IRR',
|
|
495
|
-
'ISK',
|
|
496
|
-
'JEP',
|
|
497
|
-
'JMD',
|
|
498
|
-
'JOD',
|
|
499
|
-
'JPY',
|
|
500
|
-
'KES',
|
|
501
|
-
'KGS',
|
|
502
|
-
'KHR',
|
|
503
|
-
'KMF',
|
|
504
|
-
'KPW',
|
|
505
|
-
'KRW',
|
|
506
|
-
'KWD',
|
|
507
|
-
'KYD',
|
|
508
|
-
'KZT',
|
|
509
|
-
'LAK',
|
|
510
|
-
'LBP',
|
|
511
|
-
'LKR',
|
|
512
|
-
'LRD',
|
|
513
|
-
'LSL',
|
|
514
|
-
'LTL',
|
|
515
|
-
'LVL',
|
|
516
|
-
'LYD',
|
|
517
|
-
'MAD',
|
|
518
|
-
'MDL',
|
|
519
|
-
'MGA',
|
|
520
|
-
'MKD',
|
|
521
|
-
'MMK',
|
|
522
|
-
'MNT',
|
|
523
|
-
'MOP',
|
|
524
|
-
'MRO',
|
|
525
|
-
'MUR',
|
|
526
|
-
'MVR',
|
|
527
|
-
'MWK',
|
|
528
|
-
'MXN',
|
|
529
|
-
'MYR',
|
|
530
|
-
'MZN',
|
|
531
|
-
'NAD',
|
|
532
|
-
'NGN',
|
|
533
|
-
'NIO',
|
|
534
|
-
'NOK',
|
|
535
|
-
'NPR',
|
|
536
|
-
'NZD',
|
|
537
|
-
'OMR',
|
|
538
|
-
'PAB',
|
|
539
|
-
'PEN',
|
|
540
|
-
'PGK',
|
|
541
|
-
'PHP',
|
|
542
|
-
'PKR',
|
|
543
|
-
'PLN',
|
|
544
|
-
'PYG',
|
|
545
|
-
'QAR',
|
|
546
|
-
'RON',
|
|
547
|
-
'RSD',
|
|
548
|
-
'RUB',
|
|
549
|
-
'RWF',
|
|
550
|
-
'SAR',
|
|
551
|
-
'SBD',
|
|
552
|
-
'SCR',
|
|
553
|
-
'SDG',
|
|
554
|
-
'SEK',
|
|
555
|
-
'SGD',
|
|
556
|
-
'SHP',
|
|
557
|
-
'SLL',
|
|
558
|
-
'SOS',
|
|
559
|
-
'SPL',
|
|
560
|
-
'SRD',
|
|
561
|
-
'STD',
|
|
562
|
-
'SVC',
|
|
563
|
-
'SYP',
|
|
564
|
-
'SZL',
|
|
565
|
-
'THB',
|
|
566
|
-
'TJS',
|
|
567
|
-
'TMT',
|
|
568
|
-
'TND',
|
|
569
|
-
'TOP',
|
|
570
|
-
'TRY',
|
|
571
|
-
'TTD',
|
|
572
|
-
'TVD',
|
|
573
|
-
'TWD',
|
|
574
|
-
'TZS',
|
|
575
|
-
'UAH',
|
|
576
|
-
'UGX',
|
|
577
|
-
'USD',
|
|
578
|
-
'UYU',
|
|
579
|
-
'UZS',
|
|
580
|
-
'VEF',
|
|
581
|
-
'VND',
|
|
582
|
-
'VUV',
|
|
583
|
-
'WST',
|
|
584
|
-
'XAF',
|
|
585
|
-
'XCD',
|
|
586
|
-
'XDR',
|
|
587
|
-
'XOF',
|
|
588
|
-
'XPF',
|
|
589
|
-
'YER',
|
|
590
|
-
'ZAR',
|
|
591
|
-
'ZMW',
|
|
592
|
-
'ZWD',
|
|
593
|
-
'BTC'
|
|
594
|
-
]).optional(),
|
|
595
|
-
quantity: z.number().optional(),
|
|
596
|
-
itemDetails: z.string().optional(),
|
|
597
|
-
catalogEffectiveDate: z.string().optional(),
|
|
598
|
-
childItems: z.array(z.unknown()).optional()
|
|
599
|
-
})).optional(),
|
|
600
|
-
items: z.array(z.object({
|
|
601
|
-
id: z.string().uuid().optional(),
|
|
602
|
-
linkedInvoiceItemId: z.string().uuid().optional(),
|
|
603
|
-
productName: z.string().optional(),
|
|
604
|
-
planName: z.string().optional(),
|
|
605
|
-
phaseName: z.string().optional(),
|
|
606
|
-
usageName: z.string().optional(),
|
|
607
|
-
prettyProductName: z.string().optional(),
|
|
608
|
-
prettyPlanName: z.string().optional(),
|
|
609
|
-
prettyPhaseName: z.string().optional(),
|
|
610
|
-
prettyUsageName: z.string().optional(),
|
|
611
|
-
itemType: z.enum([
|
|
612
|
-
'EXTERNAL_CHARGE',
|
|
613
|
-
'FIXED',
|
|
614
|
-
'RECURRING',
|
|
615
|
-
'REPAIR_ADJ',
|
|
616
|
-
'CBA_ADJ',
|
|
617
|
-
'CREDIT_ADJ',
|
|
618
|
-
'ITEM_ADJ',
|
|
619
|
-
'USAGE',
|
|
620
|
-
'TAX',
|
|
621
|
-
'PARENT_SUMMARY'
|
|
622
|
-
]).optional(),
|
|
623
|
-
description: z.string().optional(),
|
|
624
|
-
startDate: z.string().optional(),
|
|
625
|
-
endDate: z.string().optional(),
|
|
626
|
-
amount: z.number().optional(),
|
|
627
|
-
rate: z.number().optional(),
|
|
628
|
-
currency: z.enum([
|
|
629
|
-
'AED',
|
|
630
|
-
'AFN',
|
|
631
|
-
'ALL',
|
|
632
|
-
'AMD',
|
|
633
|
-
'ANG',
|
|
634
|
-
'AOA',
|
|
635
|
-
'ARS',
|
|
636
|
-
'AUD',
|
|
637
|
-
'AWG',
|
|
638
|
-
'AZN',
|
|
639
|
-
'BAM',
|
|
640
|
-
'BBD',
|
|
641
|
-
'BDT',
|
|
642
|
-
'BGN',
|
|
643
|
-
'BHD',
|
|
644
|
-
'BIF',
|
|
645
|
-
'BMD',
|
|
646
|
-
'BND',
|
|
647
|
-
'BOB',
|
|
648
|
-
'BRL',
|
|
649
|
-
'BSD',
|
|
650
|
-
'BTN',
|
|
651
|
-
'BWP',
|
|
652
|
-
'BYR',
|
|
653
|
-
'BZD',
|
|
654
|
-
'CAD',
|
|
655
|
-
'CDF',
|
|
656
|
-
'CHF',
|
|
657
|
-
'CLP',
|
|
658
|
-
'CNY',
|
|
659
|
-
'COP',
|
|
660
|
-
'CRC',
|
|
661
|
-
'CUC',
|
|
662
|
-
'CUP',
|
|
663
|
-
'CVE',
|
|
664
|
-
'CZK',
|
|
665
|
-
'DJF',
|
|
666
|
-
'DKK',
|
|
667
|
-
'DOP',
|
|
668
|
-
'DZD',
|
|
669
|
-
'EGP',
|
|
670
|
-
'ERN',
|
|
671
|
-
'ETB',
|
|
672
|
-
'EUR',
|
|
673
|
-
'FJD',
|
|
674
|
-
'FKP',
|
|
675
|
-
'GBP',
|
|
676
|
-
'GEL',
|
|
677
|
-
'GGP',
|
|
678
|
-
'GHS',
|
|
679
|
-
'GIP',
|
|
680
|
-
'GMD',
|
|
681
|
-
'GNF',
|
|
682
|
-
'GTQ',
|
|
683
|
-
'GYD',
|
|
684
|
-
'HKD',
|
|
685
|
-
'HNL',
|
|
686
|
-
'HRK',
|
|
687
|
-
'HTG',
|
|
688
|
-
'HUF',
|
|
689
|
-
'IDR',
|
|
690
|
-
'ILS',
|
|
691
|
-
'IMP',
|
|
692
|
-
'INR',
|
|
693
|
-
'IQD',
|
|
694
|
-
'IRR',
|
|
695
|
-
'ISK',
|
|
696
|
-
'JEP',
|
|
697
|
-
'JMD',
|
|
698
|
-
'JOD',
|
|
699
|
-
'JPY',
|
|
700
|
-
'KES',
|
|
701
|
-
'KGS',
|
|
702
|
-
'KHR',
|
|
703
|
-
'KMF',
|
|
704
|
-
'KPW',
|
|
705
|
-
'KRW',
|
|
706
|
-
'KWD',
|
|
707
|
-
'KYD',
|
|
708
|
-
'KZT',
|
|
709
|
-
'LAK',
|
|
710
|
-
'LBP',
|
|
711
|
-
'LKR',
|
|
712
|
-
'LRD',
|
|
713
|
-
'LSL',
|
|
714
|
-
'LTL',
|
|
715
|
-
'LVL',
|
|
716
|
-
'LYD',
|
|
717
|
-
'MAD',
|
|
718
|
-
'MDL',
|
|
719
|
-
'MGA',
|
|
720
|
-
'MKD',
|
|
721
|
-
'MMK',
|
|
722
|
-
'MNT',
|
|
723
|
-
'MOP',
|
|
724
|
-
'MRO',
|
|
725
|
-
'MUR',
|
|
726
|
-
'MVR',
|
|
727
|
-
'MWK',
|
|
728
|
-
'MXN',
|
|
729
|
-
'MYR',
|
|
730
|
-
'MZN',
|
|
731
|
-
'NAD',
|
|
732
|
-
'NGN',
|
|
733
|
-
'NIO',
|
|
734
|
-
'NOK',
|
|
735
|
-
'NPR',
|
|
736
|
-
'NZD',
|
|
737
|
-
'OMR',
|
|
738
|
-
'PAB',
|
|
739
|
-
'PEN',
|
|
740
|
-
'PGK',
|
|
741
|
-
'PHP',
|
|
742
|
-
'PKR',
|
|
743
|
-
'PLN',
|
|
744
|
-
'PYG',
|
|
745
|
-
'QAR',
|
|
746
|
-
'RON',
|
|
747
|
-
'RSD',
|
|
748
|
-
'RUB',
|
|
749
|
-
'RWF',
|
|
750
|
-
'SAR',
|
|
751
|
-
'SBD',
|
|
752
|
-
'SCR',
|
|
753
|
-
'SDG',
|
|
754
|
-
'SEK',
|
|
755
|
-
'SGD',
|
|
756
|
-
'SHP',
|
|
757
|
-
'SLL',
|
|
758
|
-
'SOS',
|
|
759
|
-
'SPL',
|
|
760
|
-
'SRD',
|
|
761
|
-
'STD',
|
|
762
|
-
'SVC',
|
|
763
|
-
'SYP',
|
|
764
|
-
'SZL',
|
|
765
|
-
'THB',
|
|
766
|
-
'TJS',
|
|
767
|
-
'TMT',
|
|
768
|
-
'TND',
|
|
769
|
-
'TOP',
|
|
770
|
-
'TRY',
|
|
771
|
-
'TTD',
|
|
772
|
-
'TVD',
|
|
773
|
-
'TWD',
|
|
774
|
-
'TZS',
|
|
775
|
-
'UAH',
|
|
776
|
-
'UGX',
|
|
777
|
-
'USD',
|
|
778
|
-
'UYU',
|
|
779
|
-
'UZS',
|
|
780
|
-
'VEF',
|
|
781
|
-
'VND',
|
|
782
|
-
'VUV',
|
|
783
|
-
'WST',
|
|
784
|
-
'XAF',
|
|
785
|
-
'XCD',
|
|
786
|
-
'XDR',
|
|
787
|
-
'XOF',
|
|
788
|
-
'XPF',
|
|
789
|
-
'YER',
|
|
790
|
-
'ZAR',
|
|
791
|
-
'ZMW',
|
|
792
|
-
'ZWD',
|
|
793
|
-
'BTC'
|
|
794
|
-
]).optional(),
|
|
795
|
-
quantity: z.number().optional(),
|
|
796
|
-
itemDetails: z.string().optional(),
|
|
797
|
-
catalogEffectiveDate: z.string().optional(),
|
|
798
|
-
childItems: z.array(z.unknown()).optional()
|
|
799
|
-
})).optional()
|
|
324
|
+
id: z.string().optional(),
|
|
325
|
+
number: z.string().optional(),
|
|
326
|
+
status: z.string().optional(),
|
|
327
|
+
total: z.number().optional(),
|
|
328
|
+
currency: z.string().optional(),
|
|
329
|
+
created: z.iso.datetime(),
|
|
330
|
+
period_start: z.iso.datetime(),
|
|
331
|
+
period_end: z.iso.datetime(),
|
|
332
|
+
invoice_pdf: z.string().optional()
|
|
333
|
+
});
|
|
334
|
+
export const zMarketplaceListingFiles = z.object({
|
|
335
|
+
chartYaml: z.string().optional(),
|
|
336
|
+
valuesYaml: z.string().optional(),
|
|
337
|
+
valuesSchemaJson: z.string().optional()
|
|
800
338
|
});
|
|
801
339
|
export const zMarketplaceListing = z.object({
|
|
802
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
803
340
|
name: z.string(),
|
|
804
|
-
|
|
805
|
-
description: z.string(),
|
|
806
|
-
logoUrl: z.string(),
|
|
807
|
-
longDescription: z.string(),
|
|
808
|
-
categories: z.array(z.string()),
|
|
341
|
+
versions: z.array(z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
|
|
809
342
|
version_channels: z.array(z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
343
|
+
latestVersion: z.string(),
|
|
344
|
+
metadata: z.object({
|
|
345
|
+
name: z.string(),
|
|
346
|
+
version: z.string(),
|
|
347
|
+
description: z.string().optional(),
|
|
348
|
+
appVersion: z.string().optional(),
|
|
349
|
+
apiVersion: z.string().optional(),
|
|
350
|
+
keywords: z.array(z.string()).optional(),
|
|
351
|
+
home: z.string().optional(),
|
|
352
|
+
icon: z.string().optional(),
|
|
353
|
+
sources: z.array(z.string()).optional(),
|
|
354
|
+
maintainers: z.array(z.object({
|
|
355
|
+
name: z.string(),
|
|
356
|
+
email: z.string().optional()
|
|
357
|
+
})).optional()
|
|
358
|
+
}).optional()
|
|
815
359
|
});
|
|
816
360
|
export const zOrganizationCreateInput = z.object({
|
|
817
|
-
email: z.
|
|
361
|
+
email: z.email(),
|
|
818
362
|
first_name: z.string(),
|
|
819
363
|
last_name: z.string(),
|
|
820
364
|
company_name: z.string().min(2).max(120).regex(/^(?!\s)(?!.*\s$)(?=.*[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9])[a-zA-ZÆÐƎƏƐƔIJŊŒẞÞǷȜæðǝəɛɣijŋœĸſßþƿȝĄƁÇĐƊĘĦĮƘŁØƠŞȘŢȚŦŲƯY̨Ƴąɓçđɗęħįƙłøơşșţțŧųưy̨ƴÁÀÂÄǍĂĀÃÅǺĄÆǼǢƁĆĊĈČÇĎḌĐƊÐÉÈĖÊËĚĔĒĘẸƎƏƐĠĜǦĞĢƔáàâäǎăāãåǻąæǽǣɓćċĉčçďḍđɗðéèėêëěĕēęẹǝəɛġĝǧğģɣĤḤĦIÍÌİÎÏǏĬĪĨĮỊIJĴĶƘĹĻŁĽĿʼNŃN̈ŇÑŅŊÓÒÔÖǑŎŌÕŐỌØǾƠŒĥḥħıíìiîïǐĭīĩįịijĵķƙĸĺļłľŀʼnńn̈ňñņŋóòôöǒŏōõőọøǿơœŔŘŖŚŜŠŞȘṢẞŤŢṬŦÞÚÙÛÜǓŬŪŨŰŮŲỤƯẂẀŴẄǷÝỲŶŸȲỸƳŹŻŽẒŕřŗſśŝšşșṣßťţṭŧþúùûüǔŭūũűůųụưẃẁŵẅƿýỳŷÿȳỹƴźżžẓ0-9 -.]{2,}$/),
|
|
821
365
|
password: z.string().min(8)
|
|
822
366
|
});
|
|
823
367
|
export const zOrganization = z.object({
|
|
824
|
-
id: z.
|
|
368
|
+
id: z.uuid(),
|
|
825
369
|
name: z.string().min(2).max(120).optional(),
|
|
826
|
-
date_created: z.
|
|
370
|
+
date_created: z.iso.datetime(),
|
|
827
371
|
quota: z.object({
|
|
828
|
-
basic_clusters_max: z.
|
|
829
|
-
basic_clusters_available: z.
|
|
830
|
-
pro_clusters_max: z.
|
|
831
|
-
pro_clusters_available: z.
|
|
832
|
-
fleets_max: z.
|
|
833
|
-
managed_fleets_cpu_max: z.number().int().gte(0),
|
|
372
|
+
basic_clusters_max: z.int().gte(0),
|
|
373
|
+
basic_clusters_available: z.int(),
|
|
374
|
+
pro_clusters_max: z.int().gte(0),
|
|
375
|
+
pro_clusters_available: z.int(),
|
|
376
|
+
fleets_max: z.int().gte(0),
|
|
834
377
|
cluster_tiers: z.array(z.string()).min(0),
|
|
835
378
|
regions: z.array(z.string()).min(1),
|
|
836
379
|
versions: z.array(z.object({
|
|
837
380
|
id: z.string(),
|
|
838
381
|
label: z.string()
|
|
839
|
-
})).min(1)
|
|
382
|
+
})).min(1),
|
|
383
|
+
copilot_user_hourly_tokens: z.int().gte(0),
|
|
384
|
+
copilot_organization_hourly_tokens: z.int().gte(0),
|
|
385
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
840
386
|
}),
|
|
841
387
|
status: z.enum([
|
|
842
388
|
'active',
|
|
@@ -845,14 +391,12 @@ export const zOrganization = z.object({
|
|
|
845
391
|
])
|
|
846
392
|
});
|
|
847
393
|
export const zPaymentMethod = z.object({
|
|
848
|
-
id: z.
|
|
394
|
+
id: z.uuid(),
|
|
849
395
|
setup: z.boolean(),
|
|
850
|
-
type: z.enum([
|
|
851
|
-
'card'
|
|
852
|
-
]),
|
|
396
|
+
type: z.enum(['card']),
|
|
853
397
|
last4: z.string(),
|
|
854
|
-
exp_month: z.
|
|
855
|
-
exp_year: z.
|
|
398
|
+
exp_month: z.int().gte(1).lte(12),
|
|
399
|
+
exp_year: z.int().gte(2024),
|
|
856
400
|
brand: z.enum([
|
|
857
401
|
'amex',
|
|
858
402
|
'diners',
|
|
@@ -865,158 +409,461 @@ export const zPaymentMethod = z.object({
|
|
|
865
409
|
'unknown'
|
|
866
410
|
])
|
|
867
411
|
});
|
|
412
|
+
export const zPlatformQuota = z.object({
|
|
413
|
+
basic_clusters_max: z.int().gte(0),
|
|
414
|
+
basic_clusters_available: z.int(),
|
|
415
|
+
pro_clusters_max: z.int().gte(0),
|
|
416
|
+
pro_clusters_available: z.int(),
|
|
417
|
+
fleets_max: z.int().gte(0),
|
|
418
|
+
cluster_tiers: z.array(z.string()).min(0),
|
|
419
|
+
regions: z.array(z.string()).min(1),
|
|
420
|
+
versions: z.array(z.object({
|
|
421
|
+
id: z.string(),
|
|
422
|
+
label: z.string()
|
|
423
|
+
})).min(1),
|
|
424
|
+
copilot_user_hourly_tokens: z.int().gte(0),
|
|
425
|
+
copilot_organization_hourly_tokens: z.int().gte(0),
|
|
426
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
427
|
+
});
|
|
428
|
+
export const zRegistryRepository = z.object({
|
|
429
|
+
name: z.string(),
|
|
430
|
+
region: z.string(),
|
|
431
|
+
uri: z.string()
|
|
432
|
+
});
|
|
433
|
+
export const zRegistryRepositoryWithTags = z.object({
|
|
434
|
+
name: z.string(),
|
|
435
|
+
region: z.string(),
|
|
436
|
+
uri: z.string(),
|
|
437
|
+
tags: z.array(z.object({
|
|
438
|
+
name: z.string(),
|
|
439
|
+
size: z.number(),
|
|
440
|
+
mediaType: z.string().optional(),
|
|
441
|
+
platforms: z.array(z.string()).optional()
|
|
442
|
+
})),
|
|
443
|
+
totalSize: z.number()
|
|
444
|
+
});
|
|
445
|
+
export const zRegistryTag = z.object({
|
|
446
|
+
name: z.string(),
|
|
447
|
+
digest: z.string(),
|
|
448
|
+
mediaType: z.string().optional(),
|
|
449
|
+
config: z.object({
|
|
450
|
+
size: z.number()
|
|
451
|
+
}).optional(),
|
|
452
|
+
layers: z.array(z.object({
|
|
453
|
+
digest: z.string().optional(),
|
|
454
|
+
size: z.number()
|
|
455
|
+
})).optional(),
|
|
456
|
+
manifests: z.array(z.object({
|
|
457
|
+
digest: z.string(),
|
|
458
|
+
platform: z.object({
|
|
459
|
+
architecture: z.string(),
|
|
460
|
+
os: z.string(),
|
|
461
|
+
variant: z.string().optional()
|
|
462
|
+
}).optional(),
|
|
463
|
+
layers: z.array(z.object({
|
|
464
|
+
digest: z.string().optional(),
|
|
465
|
+
size: z.number()
|
|
466
|
+
})).optional(),
|
|
467
|
+
size: z.number().optional()
|
|
468
|
+
})).optional(),
|
|
469
|
+
size: z.number(),
|
|
470
|
+
region: z.string(),
|
|
471
|
+
repository: z.string(),
|
|
472
|
+
uri: z.string()
|
|
473
|
+
});
|
|
868
474
|
export const zTokenCreateInput = z.object({
|
|
869
475
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
870
|
-
role: z.enum([
|
|
871
|
-
'Administrator',
|
|
872
|
-
'User'
|
|
873
|
-
])
|
|
476
|
+
role: z.enum(['Administrator', 'User'])
|
|
874
477
|
});
|
|
875
478
|
export const zToken = z.object({
|
|
876
479
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
877
|
-
role: z.enum([
|
|
878
|
-
'Administrator',
|
|
879
|
-
'User'
|
|
880
|
-
]),
|
|
480
|
+
role: z.enum(['Administrator', 'User']),
|
|
881
481
|
id: z.string().optional(),
|
|
882
482
|
secret: z.string().optional(),
|
|
883
|
-
date_created: z.
|
|
483
|
+
date_created: z.iso.datetime()
|
|
884
484
|
});
|
|
885
485
|
export const zTokenUpdateInput = z.object({
|
|
886
486
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
887
|
-
role: z.enum([
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
487
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
488
|
+
});
|
|
489
|
+
export const zUsageFacets = z.object({
|
|
490
|
+
cluster_id: z.array(z.string()).optional(),
|
|
491
|
+
product: z.array(z.string()).optional()
|
|
492
|
+
});
|
|
493
|
+
export const zUsageResponse = z.object({
|
|
494
|
+
data: z.array(z.object({
|
|
495
|
+
hour: z.string(),
|
|
496
|
+
cluster_id: z.string(),
|
|
497
|
+
product: z.string(),
|
|
498
|
+
value: z.number(),
|
|
499
|
+
price: z.number(),
|
|
500
|
+
total: z.number()
|
|
501
|
+
})),
|
|
502
|
+
facets: z.object({
|
|
503
|
+
cluster_id: z.array(z.string()).optional(),
|
|
504
|
+
product: z.array(z.string()).optional()
|
|
505
|
+
})
|
|
891
506
|
});
|
|
892
507
|
export const zUsage = z.object({
|
|
893
|
-
hour: z.string()
|
|
894
|
-
cluster_id: z.string()
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
'cfke_infra_compute',
|
|
900
|
-
'cfke_nodes',
|
|
901
|
-
'cfke_controlplane'
|
|
902
|
-
]),
|
|
903
|
-
node_name: z.string(),
|
|
904
|
-
sku: z.string(),
|
|
905
|
-
cpu: z.union([
|
|
906
|
-
z.number(),
|
|
907
|
-
z.enum([
|
|
908
|
-
''
|
|
909
|
-
])
|
|
910
|
-
]),
|
|
911
|
-
price: z.union([
|
|
912
|
-
z.number(),
|
|
913
|
-
z.enum([
|
|
914
|
-
''
|
|
915
|
-
])
|
|
916
|
-
]),
|
|
917
|
-
value: z.union([
|
|
918
|
-
z.number(),
|
|
919
|
-
z.enum([
|
|
920
|
-
''
|
|
921
|
-
])
|
|
922
|
-
]),
|
|
923
|
-
total: z.union([
|
|
924
|
-
z.number(),
|
|
925
|
-
z.enum([
|
|
926
|
-
''
|
|
927
|
-
])
|
|
928
|
-
])
|
|
508
|
+
hour: z.string(),
|
|
509
|
+
cluster_id: z.string(),
|
|
510
|
+
product: z.string(),
|
|
511
|
+
value: z.number(),
|
|
512
|
+
price: z.number(),
|
|
513
|
+
total: z.number()
|
|
929
514
|
});
|
|
930
515
|
export const zUserCreateInput = z.object({
|
|
931
|
-
email: z.
|
|
516
|
+
email: z.email(),
|
|
932
517
|
first_name: z.string().min(1).max(50),
|
|
933
518
|
last_name: z.string().min(1).max(50),
|
|
934
519
|
code: z.string(),
|
|
935
520
|
password: z.string().min(8),
|
|
936
|
-
status: z.enum([
|
|
937
|
-
|
|
938
|
-
'inactive'
|
|
939
|
-
]).optional(),
|
|
940
|
-
role: z.enum([
|
|
941
|
-
'Administrator',
|
|
942
|
-
'User'
|
|
943
|
-
]).optional()
|
|
521
|
+
status: z.enum(['active', 'inactive']).optional(),
|
|
522
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
944
523
|
});
|
|
945
524
|
export const zUser = z.object({
|
|
946
|
-
email: z.
|
|
525
|
+
email: z.email(),
|
|
947
526
|
first_name: z.string().min(1).max(50),
|
|
948
527
|
last_name: z.string().min(1).max(50),
|
|
949
|
-
role: z.enum([
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
status: z.enum([
|
|
954
|
-
'active',
|
|
955
|
-
'inactive'
|
|
956
|
-
]),
|
|
957
|
-
id: z.string().uuid(),
|
|
958
|
-
date_created: z.string().datetime()
|
|
528
|
+
role: z.enum(['Administrator', 'User']),
|
|
529
|
+
status: z.enum(['active', 'inactive']),
|
|
530
|
+
id: z.uuid(),
|
|
531
|
+
date_created: z.iso.datetime()
|
|
959
532
|
});
|
|
960
533
|
export const zUserUpdateInput = z.object({
|
|
961
|
-
email: z.
|
|
534
|
+
email: z.email().optional(),
|
|
962
535
|
first_name: z.string().min(1).max(50).optional(),
|
|
963
536
|
last_name: z.string().min(1).max(50).optional(),
|
|
964
|
-
role: z.enum([
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
'
|
|
970
|
-
'
|
|
537
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
538
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
539
|
+
});
|
|
540
|
+
export const zGetUsageQuery = z.object({
|
|
541
|
+
granularity: z.enum([
|
|
542
|
+
'hourly',
|
|
543
|
+
'daily',
|
|
544
|
+
'monthly'
|
|
971
545
|
]).optional()
|
|
972
546
|
});
|
|
973
|
-
|
|
974
|
-
|
|
547
|
+
/**
|
|
548
|
+
* Usage data with facets for filtering
|
|
549
|
+
*/
|
|
550
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
551
|
+
/**
|
|
552
|
+
* Redacted payment card information.
|
|
553
|
+
*/
|
|
975
554
|
export const zGetPaymentMethodResponse = zPaymentMethod;
|
|
555
|
+
/**
|
|
556
|
+
* 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.
|
|
557
|
+
*
|
|
558
|
+
*/
|
|
976
559
|
export const zGetPaymentMethodSecretResponse = z.object({
|
|
977
560
|
id: z.string().optional()
|
|
978
561
|
});
|
|
562
|
+
/**
|
|
563
|
+
* An array of usage records.
|
|
564
|
+
*/
|
|
979
565
|
export const zListInvoicesResponse = z.array(zInvoice);
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
566
|
+
/**
|
|
567
|
+
* Returns a single object containing organization contact and billing address details.
|
|
568
|
+
*/
|
|
983
569
|
export const zGetContactResponse = zBillingContact;
|
|
570
|
+
export const zUpdateContactBody = zBillingContact;
|
|
571
|
+
/**
|
|
572
|
+
* Successfully updated. Returns updated organization details.
|
|
573
|
+
*/
|
|
984
574
|
export const zUpdateContactResponse = zBillingContact;
|
|
575
|
+
/**
|
|
576
|
+
* An array of the applied promotional credits records.
|
|
577
|
+
*/
|
|
985
578
|
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
579
|
+
export const zRedeemCreditsBody = z.object({
|
|
580
|
+
code: z.string().optional()
|
|
581
|
+
});
|
|
582
|
+
export const zListChartsPath = z.object({
|
|
583
|
+
cluster_id: z.string()
|
|
584
|
+
});
|
|
585
|
+
/**
|
|
586
|
+
* An array of charts
|
|
587
|
+
*/
|
|
986
588
|
export const zListChartsResponse = z.array(zChart);
|
|
589
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
590
|
+
export const zCreateChartPath = z.object({
|
|
591
|
+
cluster_id: z.string()
|
|
592
|
+
});
|
|
593
|
+
/**
|
|
594
|
+
* Successfully created. Returns created Chart ID.
|
|
595
|
+
*/
|
|
987
596
|
export const zCreateChartResponse = z.string();
|
|
597
|
+
export const zDeleteChartPath = z.object({
|
|
598
|
+
cluster_id: z.string(),
|
|
599
|
+
chart_name: z.string()
|
|
600
|
+
});
|
|
601
|
+
/**
|
|
602
|
+
* Successfully deleted.
|
|
603
|
+
*/
|
|
988
604
|
export const zDeleteChartResponse = z.string();
|
|
605
|
+
export const zGetChartPath = z.object({
|
|
606
|
+
cluster_id: z.string(),
|
|
607
|
+
chart_name: z.string()
|
|
608
|
+
});
|
|
609
|
+
/**
|
|
610
|
+
* Returns a single object containing chart details.
|
|
611
|
+
*/
|
|
989
612
|
export const zGetChartResponse = zChart;
|
|
613
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
614
|
+
export const zUpdateChartPath = z.object({
|
|
615
|
+
cluster_id: z.string(),
|
|
616
|
+
chart_name: z.string()
|
|
617
|
+
});
|
|
618
|
+
/**
|
|
619
|
+
* Successfully updated.
|
|
620
|
+
*/
|
|
990
621
|
export const zUpdateChartResponse = z.string();
|
|
622
|
+
export const zListFleetsPath = z.object({
|
|
623
|
+
cluster_id: z.string()
|
|
624
|
+
});
|
|
625
|
+
/**
|
|
626
|
+
* An array of fleets
|
|
627
|
+
*/
|
|
991
628
|
export const zListFleetsResponse = z.array(zFleet);
|
|
629
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
630
|
+
export const zCreateFleetPath = z.object({
|
|
631
|
+
cluster_id: z.string()
|
|
632
|
+
});
|
|
633
|
+
/**
|
|
634
|
+
* Successfully created. Returns created Fleet ID.
|
|
635
|
+
*/
|
|
992
636
|
export const zCreateFleetResponse = z.string();
|
|
637
|
+
export const zDeleteFleetPath = z.object({
|
|
638
|
+
cluster_id: z.string(),
|
|
639
|
+
fleet_name: z.string()
|
|
640
|
+
});
|
|
641
|
+
/**
|
|
642
|
+
* Successfully deleted.
|
|
643
|
+
*/
|
|
993
644
|
export const zDeleteFleetResponse = z.string();
|
|
645
|
+
export const zGetFleetPath = z.object({
|
|
646
|
+
cluster_id: z.string(),
|
|
647
|
+
fleet_name: z.string()
|
|
648
|
+
});
|
|
649
|
+
/**
|
|
650
|
+
* Returns a single object containing fleet details.
|
|
651
|
+
*/
|
|
994
652
|
export const zGetFleetResponse = zFleet;
|
|
653
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
654
|
+
export const zUpdateFleetPath = z.object({
|
|
655
|
+
cluster_id: z.string(),
|
|
656
|
+
fleet_name: z.string()
|
|
657
|
+
});
|
|
658
|
+
/**
|
|
659
|
+
* Successfully updated.
|
|
660
|
+
*/
|
|
995
661
|
export const zUpdateFleetResponse = z.string();
|
|
662
|
+
export const zQueryClusterPath = z.object({
|
|
663
|
+
cluster_id: z.string()
|
|
664
|
+
});
|
|
665
|
+
/**
|
|
666
|
+
* An array of clusters
|
|
667
|
+
*/
|
|
996
668
|
export const zListClustersResponse = z.array(zCluster);
|
|
669
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
670
|
+
/**
|
|
671
|
+
* Successfully created. Returns created Cluster ID.
|
|
672
|
+
*/
|
|
997
673
|
export const zCreateClusterResponse = z.string();
|
|
674
|
+
export const zDeleteClusterPath = z.object({
|
|
675
|
+
cluster_id: z.string()
|
|
676
|
+
});
|
|
677
|
+
/**
|
|
678
|
+
* Successfully deleted.
|
|
679
|
+
*/
|
|
998
680
|
export const zDeleteClusterResponse = z.string();
|
|
681
|
+
export const zGetClusterPath = z.object({
|
|
682
|
+
cluster_id: z.string()
|
|
683
|
+
});
|
|
684
|
+
/**
|
|
685
|
+
* Returns a single object containing cluster details.
|
|
686
|
+
*/
|
|
999
687
|
export const zGetClusterResponse = zCluster;
|
|
688
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
689
|
+
export const zUpdateClusterPath = z.object({
|
|
690
|
+
cluster_id: z.string()
|
|
691
|
+
});
|
|
692
|
+
/**
|
|
693
|
+
* Successfully updated. Returns updated cluster details.
|
|
694
|
+
*/
|
|
1000
695
|
export const zUpdateClusterResponse = zCluster;
|
|
1001
|
-
export const
|
|
696
|
+
export const zGetJoinInformationPath = z.object({
|
|
697
|
+
cluster_id: z.string()
|
|
698
|
+
});
|
|
699
|
+
/**
|
|
700
|
+
* An object of cluster join information
|
|
701
|
+
*/
|
|
702
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
703
|
+
/**
|
|
704
|
+
* An array of invites
|
|
705
|
+
*/
|
|
1002
706
|
export const zListInvitesResponse = z.array(zInvite);
|
|
707
|
+
export const zCreateInviteBody = z.object({
|
|
708
|
+
email: z.string().optional()
|
|
709
|
+
});
|
|
710
|
+
/**
|
|
711
|
+
* Successfully created. Returns created invite details.
|
|
712
|
+
*/
|
|
1003
713
|
export const zCreateInviteResponse = zInvite;
|
|
714
|
+
export const zGetInvitePath = z.object({
|
|
715
|
+
code: z.string()
|
|
716
|
+
});
|
|
717
|
+
/**
|
|
718
|
+
* Returns a single object containing invite details.
|
|
719
|
+
*/
|
|
1004
720
|
export const zGetInviteResponse = zInvite;
|
|
721
|
+
export const zDeleteInvitePath = z.object({
|
|
722
|
+
email: z.string()
|
|
723
|
+
});
|
|
724
|
+
/**
|
|
725
|
+
* An array of chart listings in the marketplace.
|
|
726
|
+
*/
|
|
1005
727
|
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1006
|
-
export const
|
|
728
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
729
|
+
chart_name: z.string(),
|
|
730
|
+
version_channel: z.string()
|
|
731
|
+
});
|
|
732
|
+
/**
|
|
733
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
734
|
+
*/
|
|
735
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
736
|
+
/**
|
|
737
|
+
* JSON-RPC 2.0 request payload
|
|
738
|
+
*/
|
|
739
|
+
export const zPostMcpBody = z.object({
|
|
740
|
+
jsonrpc: z.string().optional(),
|
|
741
|
+
method: z.string().optional(),
|
|
742
|
+
id: z.union([
|
|
743
|
+
z.string(),
|
|
744
|
+
z.number()
|
|
745
|
+
]).optional(),
|
|
746
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
747
|
+
});
|
|
748
|
+
/**
|
|
749
|
+
* JSON-RPC 2.0 success or error response
|
|
750
|
+
*/
|
|
751
|
+
export const zPostMcpResponse = z.object({
|
|
752
|
+
jsonrpc: z.string().optional(),
|
|
753
|
+
id: z.union([
|
|
754
|
+
z.string(),
|
|
755
|
+
z.number()
|
|
756
|
+
]).optional(),
|
|
757
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
758
|
+
error: z.object({
|
|
759
|
+
code: z.int().optional(),
|
|
760
|
+
message: z.string().optional()
|
|
761
|
+
}).optional()
|
|
762
|
+
});
|
|
763
|
+
/**
|
|
764
|
+
* Returns a single object containing organization details.
|
|
765
|
+
*/
|
|
1007
766
|
export const zGetOrganizationResponse = zOrganization;
|
|
767
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
768
|
+
/**
|
|
769
|
+
* List of repositories
|
|
770
|
+
*/
|
|
771
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
772
|
+
export const zListTagsPath = z.object({
|
|
773
|
+
region: z.string(),
|
|
774
|
+
repository: z.string()
|
|
775
|
+
});
|
|
776
|
+
/**
|
|
777
|
+
* Repository with tags
|
|
778
|
+
*/
|
|
779
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
780
|
+
export const zDeleteTagPath = z.object({
|
|
781
|
+
region: z.string(),
|
|
782
|
+
repository: z.string(),
|
|
783
|
+
tag: z.string()
|
|
784
|
+
});
|
|
785
|
+
export const zGetTagPath = z.object({
|
|
786
|
+
region: z.string(),
|
|
787
|
+
repository: z.string(),
|
|
788
|
+
tag: z.string()
|
|
789
|
+
});
|
|
790
|
+
/**
|
|
791
|
+
* Tag details
|
|
792
|
+
*/
|
|
793
|
+
export const zGetTagResponse = zRegistryTag;
|
|
794
|
+
/**
|
|
795
|
+
* Returns a list of access token details with masked secrets.
|
|
796
|
+
*/
|
|
1008
797
|
export const zListTokensResponse = z.array(zToken);
|
|
798
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
799
|
+
/**
|
|
800
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
801
|
+
*/
|
|
1009
802
|
export const zCreateTokenResponse = zToken;
|
|
803
|
+
export const zDeleteTokenPath = z.object({
|
|
804
|
+
token_id: z.string()
|
|
805
|
+
});
|
|
806
|
+
export const zGetTokenPath = z.object({
|
|
807
|
+
token_id: z.string()
|
|
808
|
+
});
|
|
809
|
+
/**
|
|
810
|
+
* Returns access token details with masked secret.
|
|
811
|
+
*/
|
|
1010
812
|
export const zGetTokenResponse = zToken;
|
|
813
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
814
|
+
export const zUpdateTokenPath = z.object({
|
|
815
|
+
token_id: z.string()
|
|
816
|
+
});
|
|
817
|
+
/**
|
|
818
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
819
|
+
*/
|
|
1011
820
|
export const zUpdateTokenResponse = zToken;
|
|
821
|
+
export const zRegenerateTokenPath = z.object({
|
|
822
|
+
token_id: z.string()
|
|
823
|
+
});
|
|
824
|
+
/**
|
|
825
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
826
|
+
*/
|
|
1012
827
|
export const zRegenerateTokenResponse = zToken;
|
|
828
|
+
export const zListUserOrganizationsPath = z.object({
|
|
829
|
+
email: z.string()
|
|
830
|
+
});
|
|
831
|
+
/**
|
|
832
|
+
* An array of organizations the user belongs to.
|
|
833
|
+
*/
|
|
1013
834
|
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1014
835
|
realm: z.string().optional(),
|
|
1015
836
|
displayName: z.string().optional()
|
|
1016
837
|
}));
|
|
838
|
+
/**
|
|
839
|
+
* An array of users
|
|
840
|
+
*/
|
|
1017
841
|
export const zListUsersResponse = z.array(zUser);
|
|
842
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
843
|
+
/**
|
|
844
|
+
* Successfully created. Returns created user details.
|
|
845
|
+
*/
|
|
1018
846
|
export const zCreateUserResponse = zUser;
|
|
847
|
+
export const zDeleteUserPath = z.object({
|
|
848
|
+
user_id: z.string()
|
|
849
|
+
});
|
|
850
|
+
/**
|
|
851
|
+
* User profile information
|
|
852
|
+
*/
|
|
1019
853
|
export const zDeleteUserResponse = zUser;
|
|
854
|
+
export const zGetUserPath = z.object({
|
|
855
|
+
user_id: z.string()
|
|
856
|
+
});
|
|
857
|
+
/**
|
|
858
|
+
* User profile information
|
|
859
|
+
*/
|
|
1020
860
|
export const zGetUserResponse = zUser;
|
|
861
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
862
|
+
export const zUpdateUserPath = z.object({
|
|
863
|
+
user_id: z.string()
|
|
864
|
+
});
|
|
865
|
+
/**
|
|
866
|
+
* Successfully created. Returns created user details.
|
|
867
|
+
*/
|
|
1021
868
|
export const zUpdateUserResponse = zUser;
|
|
1022
869
|
//# sourceMappingURL=zod.gen.js.map
|