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