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