@cloudfleet/sdk 0.0.1-1cb7abc → 0.0.1-1e6cbc3
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 +1199 -0
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/@tanstack/react-query.gen.js +1215 -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 +168 -100
- package/dist/client/client.gen.js.map +1 -1
- package/dist/client/index.d.ts +2 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +1 -0
- package/dist/client/index.js.map +1 -1
- package/dist/client/types.gen.d.ts +16 -18
- package/dist/client/types.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.d.ts +15 -23
- package/dist/client/utils.gen.d.ts.map +1 -1
- package/dist/client/utils.gen.js +61 -118
- package/dist/client/utils.gen.js.map +1 -1
- package/dist/client.gen.d.ts +3 -3
- 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 +4 -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 +19 -0
- package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/core/queryKeySerializer.gen.js +93 -0
- package/dist/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/core/serverSentEvents.gen.js +133 -0
- package/dist/core/serverSentEvents.gen.js.map +1 -0
- package/dist/core/types.gen.d.ts +13 -13
- package/dist/core/types.gen.d.ts.map +1 -1
- package/dist/core/utils.gen.d.ts +20 -0
- package/dist/core/utils.gen.d.ts.map +1 -0
- package/dist/core/utils.gen.js +88 -0
- package/dist/core/utils.gen.js.map +1 -0
- package/dist/schemas.gen.d.ts +1607 -667
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +2931 -696
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +312 -164
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +441 -335
- package/dist/sdk.gen.js.map +1 -1
- package/dist/services/kubernetes/api.d.ts +20 -20
- package/dist/types.gen.d.ts +1788 -800
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3558 -2548
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1460 -1187
- package/dist/zod.gen.js.map +1 -1
- package/package.json +28 -8
package/dist/zod.gen.js
CHANGED
|
@@ -1,19 +1,32 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
import
|
|
2
|
+
import * as z from 'zod';
|
|
3
|
+
export const zBasicPriceConsentInput = z.object({
|
|
4
|
+
decision: z.enum(['accepted', 'rejected'])
|
|
5
|
+
});
|
|
6
|
+
export const zBasicPriceConsent = z.object({
|
|
7
|
+
status: z.enum([
|
|
8
|
+
'not_applicable',
|
|
9
|
+
'pending',
|
|
10
|
+
'accepted',
|
|
11
|
+
'rejected'
|
|
12
|
+
]),
|
|
13
|
+
decided_at: z.iso.datetime().optional(),
|
|
14
|
+
decided_by: z.string().optional()
|
|
15
|
+
});
|
|
3
16
|
export const zBillingContact = z.object({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
17
|
+
type: z.enum(['business', 'personal']),
|
|
18
|
+
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(),
|
|
19
|
+
address1: z.string().optional(),
|
|
20
|
+
address2: z.string().optional(),
|
|
21
|
+
postalCode: z.string().optional(),
|
|
22
|
+
city: z.string().optional(),
|
|
23
|
+
state: z.string().optional(),
|
|
24
|
+
country: z.string().optional(),
|
|
25
|
+
phone: z.string().optional(),
|
|
12
26
|
email: z.email(),
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
tax_id_type: z.optional(z.enum([
|
|
27
|
+
individual_name: z.string(),
|
|
28
|
+
tax_id: z.string().optional(),
|
|
29
|
+
tax_id_type: z.enum([
|
|
17
30
|
'ad_nrt',
|
|
18
31
|
'ae_trn',
|
|
19
32
|
'al_tin',
|
|
@@ -142,21 +155,17 @@ export const zBillingContact = z.object({
|
|
|
142
155
|
'zm_tin',
|
|
143
156
|
'zw_tin',
|
|
144
157
|
''
|
|
145
|
-
]))
|
|
158
|
+
]).optional()
|
|
146
159
|
});
|
|
147
160
|
export const zBillingCredits = z.object({
|
|
148
|
-
id: z.
|
|
149
|
-
|
|
161
|
+
id: z.string().optional(),
|
|
162
|
+
type: z.enum(['credit', 'discount']),
|
|
163
|
+
date_start: z.iso.datetime(),
|
|
164
|
+
date_end: z.iso.datetime().optional(),
|
|
150
165
|
code: z.string(),
|
|
151
|
-
description: z.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
'credit',
|
|
155
|
-
'discount'
|
|
156
|
-
]),
|
|
157
|
-
value: z.number(),
|
|
158
|
-
billing_period: z.iso.datetime(),
|
|
159
|
-
value_remaining: z.optional(z.number())
|
|
166
|
+
description: z.string().optional(),
|
|
167
|
+
value_total: z.number(),
|
|
168
|
+
value_remaining: z.number().optional()
|
|
160
169
|
});
|
|
161
170
|
export const zChartCreateInput = z.object({
|
|
162
171
|
values: z.string(),
|
|
@@ -171,22 +180,7 @@ export const zChart = z.object({
|
|
|
171
180
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
172
181
|
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
173
182
|
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
174
|
-
status: z.
|
|
175
|
-
'InstallSucceeded',
|
|
176
|
-
'InstallFailed',
|
|
177
|
-
'UpgradeSucceeded',
|
|
178
|
-
'UpgradeFailed',
|
|
179
|
-
'TestSucceeded',
|
|
180
|
-
'TestFailed',
|
|
181
|
-
'RollbackSucceeded',
|
|
182
|
-
'RollbackFailed',
|
|
183
|
-
'UninstallSucceeded',
|
|
184
|
-
'UninstallFailed',
|
|
185
|
-
'ArtifactFailed',
|
|
186
|
-
'DependencyNotReady',
|
|
187
|
-
'Progressing',
|
|
188
|
-
'SourceNotReady'
|
|
189
|
-
]),
|
|
183
|
+
status: z.string(),
|
|
190
184
|
version_current: z.string(),
|
|
191
185
|
created_at: z.string(),
|
|
192
186
|
updated_at: z.string(),
|
|
@@ -196,23 +190,55 @@ export const zChartUpdateInput = z.object({
|
|
|
196
190
|
values: z.string(),
|
|
197
191
|
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-]+)*))?$/)
|
|
198
192
|
});
|
|
193
|
+
/**
|
|
194
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
195
|
+
*/
|
|
199
196
|
export const zClusterCreateInput = z.object({
|
|
200
197
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
201
198
|
tier: z.enum([
|
|
202
199
|
'basic',
|
|
203
|
-
'pro'
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
'
|
|
209
|
-
'
|
|
210
|
-
|
|
211
|
-
|
|
200
|
+
'pro',
|
|
201
|
+
'enterprise'
|
|
202
|
+
]).optional().default('basic'),
|
|
203
|
+
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'),
|
|
204
|
+
release_channel: z.enum([
|
|
205
|
+
'rapid',
|
|
206
|
+
'stable',
|
|
207
|
+
'extended'
|
|
208
|
+
]).optional().default('rapid'),
|
|
209
|
+
features: z.object({
|
|
210
|
+
gpu_sharing_strategy: z.enum([
|
|
211
|
+
'none',
|
|
212
|
+
'mps',
|
|
213
|
+
'time_slicing'
|
|
214
|
+
]).optional().default('none'),
|
|
215
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
216
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
217
|
+
}).optional().default({
|
|
218
|
+
gpu_sharing_strategy: 'none',
|
|
219
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
220
|
+
cilium_socket_lb_host_namespace_only: false
|
|
221
|
+
}),
|
|
222
|
+
region: z.string(),
|
|
223
|
+
networking: z.object({
|
|
224
|
+
pod_cidr: z.string().optional().default('10.244.0.0/16'),
|
|
225
|
+
service_cidr: z.string().optional().default('10.96.0.0/12'),
|
|
226
|
+
dual_stack: z.boolean().optional(),
|
|
227
|
+
pod_cidr_v6: z.string().optional().default('2001:db8:1:2::/48'),
|
|
228
|
+
service_cidr_v6: z.string().optional().default('2001:db8:1:1::/112')
|
|
229
|
+
}).optional().default({
|
|
230
|
+
pod_cidr: '10.244.0.0/16',
|
|
231
|
+
service_cidr: '10.96.0.0/12',
|
|
232
|
+
dual_stack: false,
|
|
233
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
234
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
235
|
+
})
|
|
212
236
|
});
|
|
213
237
|
export const zClusterJoinInformation = z.object({
|
|
214
238
|
certificate_authority: z.string(),
|
|
215
239
|
endpoint: z.url(),
|
|
240
|
+
cluster_dns: z.string(),
|
|
241
|
+
pod_cidr: z.string(),
|
|
216
242
|
auth_key: z.string(),
|
|
217
243
|
bootstrap_token: z.string(),
|
|
218
244
|
versions: z.object({
|
|
@@ -227,1357 +253,1604 @@ export const zClusterJoinInformation = z.object({
|
|
|
227
253
|
gcp_workload_identity_provider: z.string()
|
|
228
254
|
})
|
|
229
255
|
});
|
|
256
|
+
/**
|
|
257
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
258
|
+
*/
|
|
230
259
|
export const zCluster = z.object({
|
|
231
260
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
232
261
|
tier: z.enum([
|
|
233
262
|
'basic',
|
|
234
|
-
'pro'
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
'
|
|
240
|
-
'
|
|
241
|
-
|
|
242
|
-
|
|
263
|
+
'pro',
|
|
264
|
+
'enterprise'
|
|
265
|
+
]).default('basic'),
|
|
266
|
+
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'),
|
|
267
|
+
release_channel: z.enum([
|
|
268
|
+
'rapid',
|
|
269
|
+
'stable',
|
|
270
|
+
'extended'
|
|
271
|
+
]).default('rapid'),
|
|
272
|
+
features: z.object({
|
|
273
|
+
gpu_sharing_strategy: z.enum([
|
|
274
|
+
'none',
|
|
275
|
+
'mps',
|
|
276
|
+
'time_slicing'
|
|
277
|
+
]).default('none'),
|
|
278
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).default(4),
|
|
279
|
+
cilium_socket_lb_host_namespace_only: z.boolean()
|
|
280
|
+
}).default({
|
|
281
|
+
gpu_sharing_strategy: 'none',
|
|
282
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
283
|
+
cilium_socket_lb_host_namespace_only: false
|
|
284
|
+
}),
|
|
285
|
+
region: z.string(),
|
|
286
|
+
networking: z.object({
|
|
287
|
+
pod_cidr: z.string().default('10.244.0.0/16'),
|
|
288
|
+
service_cidr: z.string().default('10.96.0.0/12'),
|
|
289
|
+
dual_stack: z.boolean(),
|
|
290
|
+
pod_cidr_v6: z.string().default('2001:db8:1:2::/48'),
|
|
291
|
+
service_cidr_v6: z.string().default('2001:db8:1:1::/112')
|
|
292
|
+
}).default({
|
|
293
|
+
pod_cidr: '10.244.0.0/16',
|
|
294
|
+
service_cidr: '10.96.0.0/12',
|
|
295
|
+
dual_stack: false,
|
|
296
|
+
pod_cidr_v6: '2001:db8:1:2::/48',
|
|
297
|
+
service_cidr_v6: '2001:db8:1:1::/112'
|
|
298
|
+
}),
|
|
243
299
|
id: z.uuid(),
|
|
244
300
|
status: z.enum([
|
|
245
|
-
'active',
|
|
246
|
-
'deleted',
|
|
247
301
|
'creating',
|
|
248
302
|
'deployed',
|
|
249
|
-
'
|
|
250
|
-
'
|
|
303
|
+
'updating',
|
|
304
|
+
'disabled'
|
|
251
305
|
]),
|
|
252
|
-
endpoint: z.
|
|
306
|
+
endpoint: z.union([
|
|
307
|
+
z.url(),
|
|
308
|
+
z.enum([''])
|
|
309
|
+
]).optional(),
|
|
310
|
+
endpoint_public: z.union([
|
|
253
311
|
z.url(),
|
|
254
|
-
z.enum([
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
updated_at: z.optional(z.string()),
|
|
262
|
-
ready: z.optional(z.boolean())
|
|
312
|
+
z.enum([''])
|
|
313
|
+
]).optional(),
|
|
314
|
+
certificate_ca: z.string().optional(),
|
|
315
|
+
version_current: z.string().optional(),
|
|
316
|
+
created_at: z.string().optional(),
|
|
317
|
+
updated_at: z.string().optional(),
|
|
318
|
+
ready: z.boolean()
|
|
263
319
|
});
|
|
320
|
+
/**
|
|
321
|
+
* Mutable cluster configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
322
|
+
*/
|
|
264
323
|
export const zClusterUpdateInput = z.object({
|
|
265
|
-
name: z.
|
|
324
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
266
325
|
tier: z.enum([
|
|
267
326
|
'basic',
|
|
268
|
-
'pro'
|
|
269
|
-
|
|
270
|
-
|
|
327
|
+
'pro',
|
|
328
|
+
'enterprise'
|
|
329
|
+
]).optional().default('basic'),
|
|
330
|
+
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'),
|
|
331
|
+
release_channel: z.enum([
|
|
332
|
+
'rapid',
|
|
333
|
+
'stable',
|
|
334
|
+
'extended'
|
|
335
|
+
]).optional().default('rapid'),
|
|
336
|
+
features: z.object({
|
|
337
|
+
gpu_sharing_strategy: z.enum([
|
|
338
|
+
'none',
|
|
339
|
+
'mps',
|
|
340
|
+
'time_slicing'
|
|
341
|
+
]).optional().default('none'),
|
|
342
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(2).lte(48).optional().default(4),
|
|
343
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
344
|
+
}).optional().default({
|
|
345
|
+
gpu_sharing_strategy: 'none',
|
|
346
|
+
gpu_max_shared_clients_per_gpu: 4,
|
|
347
|
+
cilium_socket_lb_host_namespace_only: false
|
|
348
|
+
})
|
|
271
349
|
});
|
|
350
|
+
/**
|
|
351
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
352
|
+
*/
|
|
272
353
|
export const zFleetCreateInput = z.object({
|
|
273
|
-
limits: z.
|
|
274
|
-
cpu: z.
|
|
275
|
-
})),
|
|
276
|
-
gcp: z.
|
|
277
|
-
enabled: z.
|
|
278
|
-
project: z.string()
|
|
279
|
-
})),
|
|
280
|
-
hetzner: z.
|
|
281
|
-
enabled: z.
|
|
282
|
-
apiKey: z.string()
|
|
283
|
-
})),
|
|
284
|
-
aws: z.
|
|
285
|
-
enabled: z.
|
|
286
|
-
controllerRoleArn: z.string()
|
|
287
|
-
})),
|
|
354
|
+
limits: z.object({
|
|
355
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
356
|
+
}).optional(),
|
|
357
|
+
gcp: z.object({
|
|
358
|
+
enabled: z.boolean(),
|
|
359
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
360
|
+
}).optional(),
|
|
361
|
+
hetzner: z.object({
|
|
362
|
+
enabled: z.boolean(),
|
|
363
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
364
|
+
}).optional(),
|
|
365
|
+
aws: z.object({
|
|
366
|
+
enabled: z.boolean(),
|
|
367
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
368
|
+
}).optional(),
|
|
369
|
+
constraints: z.object({
|
|
370
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
371
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
372
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
373
|
+
'a1',
|
|
374
|
+
'a2',
|
|
375
|
+
'a3',
|
|
376
|
+
'a4',
|
|
377
|
+
'c1',
|
|
378
|
+
'c2',
|
|
379
|
+
'c2d',
|
|
380
|
+
'c3',
|
|
381
|
+
'c3d',
|
|
382
|
+
'c4',
|
|
383
|
+
'c4a',
|
|
384
|
+
'c4d',
|
|
385
|
+
'c5',
|
|
386
|
+
'c5a',
|
|
387
|
+
'c5ad',
|
|
388
|
+
'c5d',
|
|
389
|
+
'c5n',
|
|
390
|
+
'c6a',
|
|
391
|
+
'c6g',
|
|
392
|
+
'c6gd',
|
|
393
|
+
'c6gn',
|
|
394
|
+
'c6i',
|
|
395
|
+
'c6id',
|
|
396
|
+
'c6in',
|
|
397
|
+
'c7a',
|
|
398
|
+
'c7g',
|
|
399
|
+
'c7gd',
|
|
400
|
+
'c7gn',
|
|
401
|
+
'c7i',
|
|
402
|
+
'c7i-flex',
|
|
403
|
+
'c8g',
|
|
404
|
+
'c8gd',
|
|
405
|
+
'cax',
|
|
406
|
+
'ccx',
|
|
407
|
+
'cpx',
|
|
408
|
+
'cx',
|
|
409
|
+
'd2',
|
|
410
|
+
'd3',
|
|
411
|
+
'd3en',
|
|
412
|
+
'dl1',
|
|
413
|
+
'dl2q',
|
|
414
|
+
'e2',
|
|
415
|
+
'f1',
|
|
416
|
+
'f2',
|
|
417
|
+
'g1',
|
|
418
|
+
'g2',
|
|
419
|
+
'g4ad',
|
|
420
|
+
'g4dn',
|
|
421
|
+
'g5',
|
|
422
|
+
'g5g',
|
|
423
|
+
'g6',
|
|
424
|
+
'g6e',
|
|
425
|
+
'gr6',
|
|
426
|
+
'h1',
|
|
427
|
+
'h3',
|
|
428
|
+
'hpc6a',
|
|
429
|
+
'hpc6id',
|
|
430
|
+
'hpc7a',
|
|
431
|
+
'hpc7g',
|
|
432
|
+
'i2',
|
|
433
|
+
'i3',
|
|
434
|
+
'i3en',
|
|
435
|
+
'i4g',
|
|
436
|
+
'i4i',
|
|
437
|
+
'i7i',
|
|
438
|
+
'i7ie',
|
|
439
|
+
'i8g',
|
|
440
|
+
'im4gn',
|
|
441
|
+
'inf1',
|
|
442
|
+
'inf2',
|
|
443
|
+
'is4gen',
|
|
444
|
+
'm1',
|
|
445
|
+
'm2',
|
|
446
|
+
'm3',
|
|
447
|
+
'm4',
|
|
448
|
+
'm5',
|
|
449
|
+
'm5a',
|
|
450
|
+
'm5ad',
|
|
451
|
+
'm5d',
|
|
452
|
+
'm5dn',
|
|
453
|
+
'm5n',
|
|
454
|
+
'm5zn',
|
|
455
|
+
'm6a',
|
|
456
|
+
'm6g',
|
|
457
|
+
'm6gd',
|
|
458
|
+
'm6i',
|
|
459
|
+
'm6id',
|
|
460
|
+
'm6idn',
|
|
461
|
+
'm6in',
|
|
462
|
+
'm7a',
|
|
463
|
+
'm7g',
|
|
464
|
+
'm7gd',
|
|
465
|
+
'm7i',
|
|
466
|
+
'm7i-flex',
|
|
467
|
+
'm8g',
|
|
468
|
+
'm8gd',
|
|
469
|
+
'n1',
|
|
470
|
+
'n2',
|
|
471
|
+
'n2d',
|
|
472
|
+
'n4',
|
|
473
|
+
'p3',
|
|
474
|
+
'p3dn',
|
|
475
|
+
'p4d',
|
|
476
|
+
'p4de',
|
|
477
|
+
'p5',
|
|
478
|
+
'p5e',
|
|
479
|
+
'p5en',
|
|
480
|
+
'p6-b200',
|
|
481
|
+
'r3',
|
|
482
|
+
'r4',
|
|
483
|
+
'r5',
|
|
484
|
+
'r5a',
|
|
485
|
+
'r5ad',
|
|
486
|
+
'r5b',
|
|
487
|
+
'r5d',
|
|
488
|
+
'r5dn',
|
|
489
|
+
'r5n',
|
|
490
|
+
'r6a',
|
|
491
|
+
'r6g',
|
|
492
|
+
'r6gd',
|
|
493
|
+
'r6i',
|
|
494
|
+
'r6id',
|
|
495
|
+
'r6idn',
|
|
496
|
+
'r6in',
|
|
497
|
+
'r7a',
|
|
498
|
+
'r7g',
|
|
499
|
+
'r7gd',
|
|
500
|
+
'r7i',
|
|
501
|
+
'r7iz',
|
|
502
|
+
'r8g',
|
|
503
|
+
'r8gd',
|
|
504
|
+
't2',
|
|
505
|
+
't2a',
|
|
506
|
+
't2d',
|
|
507
|
+
't3',
|
|
508
|
+
't3a',
|
|
509
|
+
't4g',
|
|
510
|
+
'trn1',
|
|
511
|
+
'trn1n',
|
|
512
|
+
'u-3tb1',
|
|
513
|
+
'u-6tb1',
|
|
514
|
+
'u7i-12tb',
|
|
515
|
+
'u7i-6tb',
|
|
516
|
+
'u7i-8tb',
|
|
517
|
+
'u7in-16tb',
|
|
518
|
+
'u7in-24tb',
|
|
519
|
+
'u7in-32tb',
|
|
520
|
+
'vt1',
|
|
521
|
+
'x1',
|
|
522
|
+
'x1e',
|
|
523
|
+
'x2gd',
|
|
524
|
+
'x2idn',
|
|
525
|
+
'x2iedn',
|
|
526
|
+
'x2iezn',
|
|
527
|
+
'x4',
|
|
528
|
+
'x8g',
|
|
529
|
+
'z1d',
|
|
530
|
+
'z3'
|
|
531
|
+
])).optional().default([]),
|
|
532
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
533
|
+
'africa-south1',
|
|
534
|
+
'ap-northeast-1',
|
|
535
|
+
'ap-northeast-2',
|
|
536
|
+
'ap-northeast-3',
|
|
537
|
+
'ap-south-1',
|
|
538
|
+
'ap-southeast-1',
|
|
539
|
+
'ap-southeast-2',
|
|
540
|
+
'ash',
|
|
541
|
+
'asia-east1',
|
|
542
|
+
'asia-east2',
|
|
543
|
+
'asia-northeast1',
|
|
544
|
+
'asia-northeast2',
|
|
545
|
+
'asia-northeast3',
|
|
546
|
+
'asia-south1',
|
|
547
|
+
'asia-south2',
|
|
548
|
+
'asia-southeast1',
|
|
549
|
+
'asia-southeast2',
|
|
550
|
+
'australia-southeast1',
|
|
551
|
+
'australia-southeast2',
|
|
552
|
+
'ca-central-1',
|
|
553
|
+
'eu-central-1',
|
|
554
|
+
'eu-central-2',
|
|
555
|
+
'eu-north-1',
|
|
556
|
+
'eu-west-1',
|
|
557
|
+
'eu-west-2',
|
|
558
|
+
'eu-west-3',
|
|
559
|
+
'europe-central2',
|
|
560
|
+
'europe-north1',
|
|
561
|
+
'europe-southwest1',
|
|
562
|
+
'europe-west1',
|
|
563
|
+
'europe-west10',
|
|
564
|
+
'europe-west12',
|
|
565
|
+
'europe-west2',
|
|
566
|
+
'europe-west3',
|
|
567
|
+
'europe-west4',
|
|
568
|
+
'europe-west6',
|
|
569
|
+
'europe-west8',
|
|
570
|
+
'europe-west9',
|
|
571
|
+
'fsn1',
|
|
572
|
+
'hel1',
|
|
573
|
+
'hil',
|
|
574
|
+
'me-central1',
|
|
575
|
+
'me-central2',
|
|
576
|
+
'me-west1',
|
|
577
|
+
'nbg1',
|
|
578
|
+
'northamerica-northeast1',
|
|
579
|
+
'northamerica-northeast2',
|
|
580
|
+
'sa-east-1',
|
|
581
|
+
'sin',
|
|
582
|
+
'southamerica-east1',
|
|
583
|
+
'southamerica-west1',
|
|
584
|
+
'us-central1',
|
|
585
|
+
'us-east-1',
|
|
586
|
+
'us-east-2',
|
|
587
|
+
'us-east1',
|
|
588
|
+
'us-east4',
|
|
589
|
+
'us-east5',
|
|
590
|
+
'us-south1',
|
|
591
|
+
'us-west-1',
|
|
592
|
+
'us-west-2',
|
|
593
|
+
'us-west1',
|
|
594
|
+
'us-west2',
|
|
595
|
+
'us-west3',
|
|
596
|
+
'us-west4'
|
|
597
|
+
])).optional().default([])
|
|
598
|
+
}).optional().default({
|
|
599
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
600
|
+
'kubernetes.io/arch': ['amd64'],
|
|
601
|
+
'cfke.io/instance-family': [],
|
|
602
|
+
'topology.kubernetes.io/region': []
|
|
603
|
+
}),
|
|
604
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
288
605
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
289
606
|
});
|
|
607
|
+
/**
|
|
608
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
609
|
+
*/
|
|
290
610
|
export const zFleet = z.object({
|
|
291
|
-
limits: z.
|
|
292
|
-
cpu: z.
|
|
293
|
-
})),
|
|
294
|
-
gcp: z.
|
|
295
|
-
enabled: z.
|
|
296
|
-
project: z.string()
|
|
297
|
-
})),
|
|
298
|
-
hetzner: z.
|
|
299
|
-
enabled: z.
|
|
300
|
-
apiKey: z.string()
|
|
301
|
-
})),
|
|
302
|
-
aws: z.
|
|
303
|
-
enabled: z.
|
|
304
|
-
controllerRoleArn: z.string()
|
|
305
|
-
})),
|
|
306
|
-
|
|
611
|
+
limits: z.object({
|
|
612
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
613
|
+
}).optional(),
|
|
614
|
+
gcp: z.object({
|
|
615
|
+
enabled: z.boolean(),
|
|
616
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
617
|
+
}).optional(),
|
|
618
|
+
hetzner: z.object({
|
|
619
|
+
enabled: z.boolean(),
|
|
620
|
+
apiKey: z.string().regex(/^\*{64}$/).optional()
|
|
621
|
+
}).optional(),
|
|
622
|
+
aws: z.object({
|
|
623
|
+
enabled: z.boolean(),
|
|
624
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
625
|
+
}).optional(),
|
|
626
|
+
constraints: z.object({
|
|
627
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).default(['on-demand', 'spot']),
|
|
628
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).default(['amd64']),
|
|
629
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
630
|
+
'a1',
|
|
631
|
+
'a2',
|
|
632
|
+
'a3',
|
|
633
|
+
'a4',
|
|
634
|
+
'c1',
|
|
635
|
+
'c2',
|
|
636
|
+
'c2d',
|
|
637
|
+
'c3',
|
|
638
|
+
'c3d',
|
|
639
|
+
'c4',
|
|
640
|
+
'c4a',
|
|
641
|
+
'c4d',
|
|
642
|
+
'c5',
|
|
643
|
+
'c5a',
|
|
644
|
+
'c5ad',
|
|
645
|
+
'c5d',
|
|
646
|
+
'c5n',
|
|
647
|
+
'c6a',
|
|
648
|
+
'c6g',
|
|
649
|
+
'c6gd',
|
|
650
|
+
'c6gn',
|
|
651
|
+
'c6i',
|
|
652
|
+
'c6id',
|
|
653
|
+
'c6in',
|
|
654
|
+
'c7a',
|
|
655
|
+
'c7g',
|
|
656
|
+
'c7gd',
|
|
657
|
+
'c7gn',
|
|
658
|
+
'c7i',
|
|
659
|
+
'c7i-flex',
|
|
660
|
+
'c8g',
|
|
661
|
+
'c8gd',
|
|
662
|
+
'cax',
|
|
663
|
+
'ccx',
|
|
664
|
+
'cpx',
|
|
665
|
+
'cx',
|
|
666
|
+
'd2',
|
|
667
|
+
'd3',
|
|
668
|
+
'd3en',
|
|
669
|
+
'dl1',
|
|
670
|
+
'dl2q',
|
|
671
|
+
'e2',
|
|
672
|
+
'f1',
|
|
673
|
+
'f2',
|
|
674
|
+
'g1',
|
|
675
|
+
'g2',
|
|
676
|
+
'g4ad',
|
|
677
|
+
'g4dn',
|
|
678
|
+
'g5',
|
|
679
|
+
'g5g',
|
|
680
|
+
'g6',
|
|
681
|
+
'g6e',
|
|
682
|
+
'gr6',
|
|
683
|
+
'h1',
|
|
684
|
+
'h3',
|
|
685
|
+
'hpc6a',
|
|
686
|
+
'hpc6id',
|
|
687
|
+
'hpc7a',
|
|
688
|
+
'hpc7g',
|
|
689
|
+
'i2',
|
|
690
|
+
'i3',
|
|
691
|
+
'i3en',
|
|
692
|
+
'i4g',
|
|
693
|
+
'i4i',
|
|
694
|
+
'i7i',
|
|
695
|
+
'i7ie',
|
|
696
|
+
'i8g',
|
|
697
|
+
'im4gn',
|
|
698
|
+
'inf1',
|
|
699
|
+
'inf2',
|
|
700
|
+
'is4gen',
|
|
701
|
+
'm1',
|
|
702
|
+
'm2',
|
|
703
|
+
'm3',
|
|
704
|
+
'm4',
|
|
705
|
+
'm5',
|
|
706
|
+
'm5a',
|
|
707
|
+
'm5ad',
|
|
708
|
+
'm5d',
|
|
709
|
+
'm5dn',
|
|
710
|
+
'm5n',
|
|
711
|
+
'm5zn',
|
|
712
|
+
'm6a',
|
|
713
|
+
'm6g',
|
|
714
|
+
'm6gd',
|
|
715
|
+
'm6i',
|
|
716
|
+
'm6id',
|
|
717
|
+
'm6idn',
|
|
718
|
+
'm6in',
|
|
719
|
+
'm7a',
|
|
720
|
+
'm7g',
|
|
721
|
+
'm7gd',
|
|
722
|
+
'm7i',
|
|
723
|
+
'm7i-flex',
|
|
724
|
+
'm8g',
|
|
725
|
+
'm8gd',
|
|
726
|
+
'n1',
|
|
727
|
+
'n2',
|
|
728
|
+
'n2d',
|
|
729
|
+
'n4',
|
|
730
|
+
'p3',
|
|
731
|
+
'p3dn',
|
|
732
|
+
'p4d',
|
|
733
|
+
'p4de',
|
|
734
|
+
'p5',
|
|
735
|
+
'p5e',
|
|
736
|
+
'p5en',
|
|
737
|
+
'p6-b200',
|
|
738
|
+
'r3',
|
|
739
|
+
'r4',
|
|
740
|
+
'r5',
|
|
741
|
+
'r5a',
|
|
742
|
+
'r5ad',
|
|
743
|
+
'r5b',
|
|
744
|
+
'r5d',
|
|
745
|
+
'r5dn',
|
|
746
|
+
'r5n',
|
|
747
|
+
'r6a',
|
|
748
|
+
'r6g',
|
|
749
|
+
'r6gd',
|
|
750
|
+
'r6i',
|
|
751
|
+
'r6id',
|
|
752
|
+
'r6idn',
|
|
753
|
+
'r6in',
|
|
754
|
+
'r7a',
|
|
755
|
+
'r7g',
|
|
756
|
+
'r7gd',
|
|
757
|
+
'r7i',
|
|
758
|
+
'r7iz',
|
|
759
|
+
'r8g',
|
|
760
|
+
'r8gd',
|
|
761
|
+
't2',
|
|
762
|
+
't2a',
|
|
763
|
+
't2d',
|
|
764
|
+
't3',
|
|
765
|
+
't3a',
|
|
766
|
+
't4g',
|
|
767
|
+
'trn1',
|
|
768
|
+
'trn1n',
|
|
769
|
+
'u-3tb1',
|
|
770
|
+
'u-6tb1',
|
|
771
|
+
'u7i-12tb',
|
|
772
|
+
'u7i-6tb',
|
|
773
|
+
'u7i-8tb',
|
|
774
|
+
'u7in-16tb',
|
|
775
|
+
'u7in-24tb',
|
|
776
|
+
'u7in-32tb',
|
|
777
|
+
'vt1',
|
|
778
|
+
'x1',
|
|
779
|
+
'x1e',
|
|
780
|
+
'x2gd',
|
|
781
|
+
'x2idn',
|
|
782
|
+
'x2iedn',
|
|
783
|
+
'x2iezn',
|
|
784
|
+
'x4',
|
|
785
|
+
'x8g',
|
|
786
|
+
'z1d',
|
|
787
|
+
'z3'
|
|
788
|
+
])).optional().default([]),
|
|
789
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
790
|
+
'africa-south1',
|
|
791
|
+
'ap-northeast-1',
|
|
792
|
+
'ap-northeast-2',
|
|
793
|
+
'ap-northeast-3',
|
|
794
|
+
'ap-south-1',
|
|
795
|
+
'ap-southeast-1',
|
|
796
|
+
'ap-southeast-2',
|
|
797
|
+
'ash',
|
|
798
|
+
'asia-east1',
|
|
799
|
+
'asia-east2',
|
|
800
|
+
'asia-northeast1',
|
|
801
|
+
'asia-northeast2',
|
|
802
|
+
'asia-northeast3',
|
|
803
|
+
'asia-south1',
|
|
804
|
+
'asia-south2',
|
|
805
|
+
'asia-southeast1',
|
|
806
|
+
'asia-southeast2',
|
|
807
|
+
'australia-southeast1',
|
|
808
|
+
'australia-southeast2',
|
|
809
|
+
'ca-central-1',
|
|
810
|
+
'eu-central-1',
|
|
811
|
+
'eu-central-2',
|
|
812
|
+
'eu-north-1',
|
|
813
|
+
'eu-west-1',
|
|
814
|
+
'eu-west-2',
|
|
815
|
+
'eu-west-3',
|
|
816
|
+
'europe-central2',
|
|
817
|
+
'europe-north1',
|
|
818
|
+
'europe-southwest1',
|
|
819
|
+
'europe-west1',
|
|
820
|
+
'europe-west10',
|
|
821
|
+
'europe-west12',
|
|
822
|
+
'europe-west2',
|
|
823
|
+
'europe-west3',
|
|
824
|
+
'europe-west4',
|
|
825
|
+
'europe-west6',
|
|
826
|
+
'europe-west8',
|
|
827
|
+
'europe-west9',
|
|
828
|
+
'fsn1',
|
|
829
|
+
'hel1',
|
|
830
|
+
'hil',
|
|
831
|
+
'me-central1',
|
|
832
|
+
'me-central2',
|
|
833
|
+
'me-west1',
|
|
834
|
+
'nbg1',
|
|
835
|
+
'northamerica-northeast1',
|
|
836
|
+
'northamerica-northeast2',
|
|
837
|
+
'sa-east-1',
|
|
838
|
+
'sin',
|
|
839
|
+
'southamerica-east1',
|
|
840
|
+
'southamerica-west1',
|
|
841
|
+
'us-central1',
|
|
842
|
+
'us-east-1',
|
|
843
|
+
'us-east-2',
|
|
844
|
+
'us-east1',
|
|
845
|
+
'us-east4',
|
|
846
|
+
'us-east5',
|
|
847
|
+
'us-south1',
|
|
848
|
+
'us-west-1',
|
|
849
|
+
'us-west-2',
|
|
850
|
+
'us-west1',
|
|
851
|
+
'us-west2',
|
|
852
|
+
'us-west3',
|
|
853
|
+
'us-west4'
|
|
854
|
+
])).optional().default([])
|
|
855
|
+
}).default({
|
|
856
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
857
|
+
'kubernetes.io/arch': ['amd64'],
|
|
858
|
+
'cfke.io/instance-family': [],
|
|
859
|
+
'topology.kubernetes.io/region': []
|
|
860
|
+
}),
|
|
861
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
862
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
863
|
+
ready: z.boolean(),
|
|
864
|
+
status_message: z.string().optional(),
|
|
865
|
+
created_at: z.string(),
|
|
866
|
+
updated_at: z.string()
|
|
307
867
|
});
|
|
868
|
+
/**
|
|
869
|
+
* Mutable fleet configuration. Applied as a full overwrite: any omitted field is reset to its default rather than left unchanged.
|
|
870
|
+
*/
|
|
308
871
|
export const zFleetUpdateInput = z.object({
|
|
309
|
-
limits: z.
|
|
310
|
-
cpu: z.
|
|
311
|
-
})),
|
|
312
|
-
gcp: z.
|
|
313
|
-
enabled: z.
|
|
314
|
-
project: z.string()
|
|
315
|
-
})),
|
|
316
|
-
hetzner: z.
|
|
317
|
-
enabled: z.
|
|
318
|
-
apiKey: z.string()
|
|
319
|
-
})),
|
|
320
|
-
aws: z.
|
|
321
|
-
enabled: z.
|
|
322
|
-
controllerRoleArn: z.string()
|
|
323
|
-
}))
|
|
872
|
+
limits: z.object({
|
|
873
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
874
|
+
}).optional(),
|
|
875
|
+
gcp: z.object({
|
|
876
|
+
enabled: z.boolean(),
|
|
877
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
878
|
+
}).optional(),
|
|
879
|
+
hetzner: z.object({
|
|
880
|
+
enabled: z.boolean(),
|
|
881
|
+
apiKey: z.string().length(64).regex(/^([A-Za-z0-9]{64}|\*{64})$/).optional()
|
|
882
|
+
}).optional(),
|
|
883
|
+
aws: z.object({
|
|
884
|
+
enabled: z.boolean(),
|
|
885
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
886
|
+
}).optional(),
|
|
887
|
+
constraints: z.object({
|
|
888
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
889
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
890
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
891
|
+
'a1',
|
|
892
|
+
'a2',
|
|
893
|
+
'a3',
|
|
894
|
+
'a4',
|
|
895
|
+
'c1',
|
|
896
|
+
'c2',
|
|
897
|
+
'c2d',
|
|
898
|
+
'c3',
|
|
899
|
+
'c3d',
|
|
900
|
+
'c4',
|
|
901
|
+
'c4a',
|
|
902
|
+
'c4d',
|
|
903
|
+
'c5',
|
|
904
|
+
'c5a',
|
|
905
|
+
'c5ad',
|
|
906
|
+
'c5d',
|
|
907
|
+
'c5n',
|
|
908
|
+
'c6a',
|
|
909
|
+
'c6g',
|
|
910
|
+
'c6gd',
|
|
911
|
+
'c6gn',
|
|
912
|
+
'c6i',
|
|
913
|
+
'c6id',
|
|
914
|
+
'c6in',
|
|
915
|
+
'c7a',
|
|
916
|
+
'c7g',
|
|
917
|
+
'c7gd',
|
|
918
|
+
'c7gn',
|
|
919
|
+
'c7i',
|
|
920
|
+
'c7i-flex',
|
|
921
|
+
'c8g',
|
|
922
|
+
'c8gd',
|
|
923
|
+
'cax',
|
|
924
|
+
'ccx',
|
|
925
|
+
'cpx',
|
|
926
|
+
'cx',
|
|
927
|
+
'd2',
|
|
928
|
+
'd3',
|
|
929
|
+
'd3en',
|
|
930
|
+
'dl1',
|
|
931
|
+
'dl2q',
|
|
932
|
+
'e2',
|
|
933
|
+
'f1',
|
|
934
|
+
'f2',
|
|
935
|
+
'g1',
|
|
936
|
+
'g2',
|
|
937
|
+
'g4ad',
|
|
938
|
+
'g4dn',
|
|
939
|
+
'g5',
|
|
940
|
+
'g5g',
|
|
941
|
+
'g6',
|
|
942
|
+
'g6e',
|
|
943
|
+
'gr6',
|
|
944
|
+
'h1',
|
|
945
|
+
'h3',
|
|
946
|
+
'hpc6a',
|
|
947
|
+
'hpc6id',
|
|
948
|
+
'hpc7a',
|
|
949
|
+
'hpc7g',
|
|
950
|
+
'i2',
|
|
951
|
+
'i3',
|
|
952
|
+
'i3en',
|
|
953
|
+
'i4g',
|
|
954
|
+
'i4i',
|
|
955
|
+
'i7i',
|
|
956
|
+
'i7ie',
|
|
957
|
+
'i8g',
|
|
958
|
+
'im4gn',
|
|
959
|
+
'inf1',
|
|
960
|
+
'inf2',
|
|
961
|
+
'is4gen',
|
|
962
|
+
'm1',
|
|
963
|
+
'm2',
|
|
964
|
+
'm3',
|
|
965
|
+
'm4',
|
|
966
|
+
'm5',
|
|
967
|
+
'm5a',
|
|
968
|
+
'm5ad',
|
|
969
|
+
'm5d',
|
|
970
|
+
'm5dn',
|
|
971
|
+
'm5n',
|
|
972
|
+
'm5zn',
|
|
973
|
+
'm6a',
|
|
974
|
+
'm6g',
|
|
975
|
+
'm6gd',
|
|
976
|
+
'm6i',
|
|
977
|
+
'm6id',
|
|
978
|
+
'm6idn',
|
|
979
|
+
'm6in',
|
|
980
|
+
'm7a',
|
|
981
|
+
'm7g',
|
|
982
|
+
'm7gd',
|
|
983
|
+
'm7i',
|
|
984
|
+
'm7i-flex',
|
|
985
|
+
'm8g',
|
|
986
|
+
'm8gd',
|
|
987
|
+
'n1',
|
|
988
|
+
'n2',
|
|
989
|
+
'n2d',
|
|
990
|
+
'n4',
|
|
991
|
+
'p3',
|
|
992
|
+
'p3dn',
|
|
993
|
+
'p4d',
|
|
994
|
+
'p4de',
|
|
995
|
+
'p5',
|
|
996
|
+
'p5e',
|
|
997
|
+
'p5en',
|
|
998
|
+
'p6-b200',
|
|
999
|
+
'r3',
|
|
1000
|
+
'r4',
|
|
1001
|
+
'r5',
|
|
1002
|
+
'r5a',
|
|
1003
|
+
'r5ad',
|
|
1004
|
+
'r5b',
|
|
1005
|
+
'r5d',
|
|
1006
|
+
'r5dn',
|
|
1007
|
+
'r5n',
|
|
1008
|
+
'r6a',
|
|
1009
|
+
'r6g',
|
|
1010
|
+
'r6gd',
|
|
1011
|
+
'r6i',
|
|
1012
|
+
'r6id',
|
|
1013
|
+
'r6idn',
|
|
1014
|
+
'r6in',
|
|
1015
|
+
'r7a',
|
|
1016
|
+
'r7g',
|
|
1017
|
+
'r7gd',
|
|
1018
|
+
'r7i',
|
|
1019
|
+
'r7iz',
|
|
1020
|
+
'r8g',
|
|
1021
|
+
'r8gd',
|
|
1022
|
+
't2',
|
|
1023
|
+
't2a',
|
|
1024
|
+
't2d',
|
|
1025
|
+
't3',
|
|
1026
|
+
't3a',
|
|
1027
|
+
't4g',
|
|
1028
|
+
'trn1',
|
|
1029
|
+
'trn1n',
|
|
1030
|
+
'u-3tb1',
|
|
1031
|
+
'u-6tb1',
|
|
1032
|
+
'u7i-12tb',
|
|
1033
|
+
'u7i-6tb',
|
|
1034
|
+
'u7i-8tb',
|
|
1035
|
+
'u7in-16tb',
|
|
1036
|
+
'u7in-24tb',
|
|
1037
|
+
'u7in-32tb',
|
|
1038
|
+
'vt1',
|
|
1039
|
+
'x1',
|
|
1040
|
+
'x1e',
|
|
1041
|
+
'x2gd',
|
|
1042
|
+
'x2idn',
|
|
1043
|
+
'x2iedn',
|
|
1044
|
+
'x2iezn',
|
|
1045
|
+
'x4',
|
|
1046
|
+
'x8g',
|
|
1047
|
+
'z1d',
|
|
1048
|
+
'z3'
|
|
1049
|
+
])).optional().default([]),
|
|
1050
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
1051
|
+
'africa-south1',
|
|
1052
|
+
'ap-northeast-1',
|
|
1053
|
+
'ap-northeast-2',
|
|
1054
|
+
'ap-northeast-3',
|
|
1055
|
+
'ap-south-1',
|
|
1056
|
+
'ap-southeast-1',
|
|
1057
|
+
'ap-southeast-2',
|
|
1058
|
+
'ash',
|
|
1059
|
+
'asia-east1',
|
|
1060
|
+
'asia-east2',
|
|
1061
|
+
'asia-northeast1',
|
|
1062
|
+
'asia-northeast2',
|
|
1063
|
+
'asia-northeast3',
|
|
1064
|
+
'asia-south1',
|
|
1065
|
+
'asia-south2',
|
|
1066
|
+
'asia-southeast1',
|
|
1067
|
+
'asia-southeast2',
|
|
1068
|
+
'australia-southeast1',
|
|
1069
|
+
'australia-southeast2',
|
|
1070
|
+
'ca-central-1',
|
|
1071
|
+
'eu-central-1',
|
|
1072
|
+
'eu-central-2',
|
|
1073
|
+
'eu-north-1',
|
|
1074
|
+
'eu-west-1',
|
|
1075
|
+
'eu-west-2',
|
|
1076
|
+
'eu-west-3',
|
|
1077
|
+
'europe-central2',
|
|
1078
|
+
'europe-north1',
|
|
1079
|
+
'europe-southwest1',
|
|
1080
|
+
'europe-west1',
|
|
1081
|
+
'europe-west10',
|
|
1082
|
+
'europe-west12',
|
|
1083
|
+
'europe-west2',
|
|
1084
|
+
'europe-west3',
|
|
1085
|
+
'europe-west4',
|
|
1086
|
+
'europe-west6',
|
|
1087
|
+
'europe-west8',
|
|
1088
|
+
'europe-west9',
|
|
1089
|
+
'fsn1',
|
|
1090
|
+
'hel1',
|
|
1091
|
+
'hil',
|
|
1092
|
+
'me-central1',
|
|
1093
|
+
'me-central2',
|
|
1094
|
+
'me-west1',
|
|
1095
|
+
'nbg1',
|
|
1096
|
+
'northamerica-northeast1',
|
|
1097
|
+
'northamerica-northeast2',
|
|
1098
|
+
'sa-east-1',
|
|
1099
|
+
'sin',
|
|
1100
|
+
'southamerica-east1',
|
|
1101
|
+
'southamerica-west1',
|
|
1102
|
+
'us-central1',
|
|
1103
|
+
'us-east-1',
|
|
1104
|
+
'us-east-2',
|
|
1105
|
+
'us-east1',
|
|
1106
|
+
'us-east4',
|
|
1107
|
+
'us-east5',
|
|
1108
|
+
'us-south1',
|
|
1109
|
+
'us-west-1',
|
|
1110
|
+
'us-west-2',
|
|
1111
|
+
'us-west1',
|
|
1112
|
+
'us-west2',
|
|
1113
|
+
'us-west3',
|
|
1114
|
+
'us-west4'
|
|
1115
|
+
])).optional().default([])
|
|
1116
|
+
}).optional().default({
|
|
1117
|
+
'karpenter.sh/capacity-type': ['on-demand', 'spot'],
|
|
1118
|
+
'kubernetes.io/arch': ['amd64'],
|
|
1119
|
+
'cfke.io/instance-family': [],
|
|
1120
|
+
'topology.kubernetes.io/region': []
|
|
1121
|
+
}),
|
|
1122
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative')
|
|
1123
|
+
});
|
|
1124
|
+
export const zInviteCreateInput = z.object({
|
|
1125
|
+
email: z.email(),
|
|
1126
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
324
1127
|
});
|
|
325
1128
|
export const zInvite = z.object({
|
|
326
|
-
id: z.
|
|
327
|
-
organization_id: z.
|
|
1129
|
+
id: z.string().optional(),
|
|
1130
|
+
organization_id: z.uuid().optional(),
|
|
328
1131
|
date_created: z.iso.datetime(),
|
|
329
|
-
email: z.
|
|
330
|
-
code: z.
|
|
1132
|
+
email: z.email().optional(),
|
|
1133
|
+
code: z.string().optional(),
|
|
1134
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
331
1135
|
});
|
|
332
1136
|
export const zInvoice = z.object({
|
|
333
|
-
id: z.
|
|
334
|
-
|
|
335
|
-
status: z.
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
'AOA',
|
|
348
|
-
'ARS',
|
|
349
|
-
'AUD',
|
|
350
|
-
'AWG',
|
|
351
|
-
'AZN',
|
|
352
|
-
'BAM',
|
|
353
|
-
'BBD',
|
|
354
|
-
'BDT',
|
|
355
|
-
'BGN',
|
|
356
|
-
'BHD',
|
|
357
|
-
'BIF',
|
|
358
|
-
'BMD',
|
|
359
|
-
'BND',
|
|
360
|
-
'BOB',
|
|
361
|
-
'BRL',
|
|
362
|
-
'BSD',
|
|
363
|
-
'BTN',
|
|
364
|
-
'BWP',
|
|
365
|
-
'BYR',
|
|
366
|
-
'BZD',
|
|
367
|
-
'CAD',
|
|
368
|
-
'CDF',
|
|
369
|
-
'CHF',
|
|
370
|
-
'CLP',
|
|
371
|
-
'CNY',
|
|
372
|
-
'COP',
|
|
373
|
-
'CRC',
|
|
374
|
-
'CUC',
|
|
375
|
-
'CUP',
|
|
376
|
-
'CVE',
|
|
377
|
-
'CZK',
|
|
378
|
-
'DJF',
|
|
379
|
-
'DKK',
|
|
380
|
-
'DOP',
|
|
381
|
-
'DZD',
|
|
382
|
-
'EGP',
|
|
383
|
-
'ERN',
|
|
384
|
-
'ETB',
|
|
385
|
-
'EUR',
|
|
386
|
-
'FJD',
|
|
387
|
-
'FKP',
|
|
388
|
-
'GBP',
|
|
389
|
-
'GEL',
|
|
390
|
-
'GGP',
|
|
391
|
-
'GHS',
|
|
392
|
-
'GIP',
|
|
393
|
-
'GMD',
|
|
394
|
-
'GNF',
|
|
395
|
-
'GTQ',
|
|
396
|
-
'GYD',
|
|
397
|
-
'HKD',
|
|
398
|
-
'HNL',
|
|
399
|
-
'HRK',
|
|
400
|
-
'HTG',
|
|
401
|
-
'HUF',
|
|
402
|
-
'IDR',
|
|
403
|
-
'ILS',
|
|
404
|
-
'IMP',
|
|
405
|
-
'INR',
|
|
406
|
-
'IQD',
|
|
407
|
-
'IRR',
|
|
408
|
-
'ISK',
|
|
409
|
-
'JEP',
|
|
410
|
-
'JMD',
|
|
411
|
-
'JOD',
|
|
412
|
-
'JPY',
|
|
413
|
-
'KES',
|
|
414
|
-
'KGS',
|
|
415
|
-
'KHR',
|
|
416
|
-
'KMF',
|
|
417
|
-
'KPW',
|
|
418
|
-
'KRW',
|
|
419
|
-
'KWD',
|
|
420
|
-
'KYD',
|
|
421
|
-
'KZT',
|
|
422
|
-
'LAK',
|
|
423
|
-
'LBP',
|
|
424
|
-
'LKR',
|
|
425
|
-
'LRD',
|
|
426
|
-
'LSL',
|
|
427
|
-
'LTL',
|
|
428
|
-
'LVL',
|
|
429
|
-
'LYD',
|
|
430
|
-
'MAD',
|
|
431
|
-
'MDL',
|
|
432
|
-
'MGA',
|
|
433
|
-
'MKD',
|
|
434
|
-
'MMK',
|
|
435
|
-
'MNT',
|
|
436
|
-
'MOP',
|
|
437
|
-
'MRO',
|
|
438
|
-
'MUR',
|
|
439
|
-
'MVR',
|
|
440
|
-
'MWK',
|
|
441
|
-
'MXN',
|
|
442
|
-
'MYR',
|
|
443
|
-
'MZN',
|
|
444
|
-
'NAD',
|
|
445
|
-
'NGN',
|
|
446
|
-
'NIO',
|
|
447
|
-
'NOK',
|
|
448
|
-
'NPR',
|
|
449
|
-
'NZD',
|
|
450
|
-
'OMR',
|
|
451
|
-
'PAB',
|
|
452
|
-
'PEN',
|
|
453
|
-
'PGK',
|
|
454
|
-
'PHP',
|
|
455
|
-
'PKR',
|
|
456
|
-
'PLN',
|
|
457
|
-
'PYG',
|
|
458
|
-
'QAR',
|
|
459
|
-
'RON',
|
|
460
|
-
'RSD',
|
|
461
|
-
'RUB',
|
|
462
|
-
'RWF',
|
|
463
|
-
'SAR',
|
|
464
|
-
'SBD',
|
|
465
|
-
'SCR',
|
|
466
|
-
'SDG',
|
|
467
|
-
'SEK',
|
|
468
|
-
'SGD',
|
|
469
|
-
'SHP',
|
|
470
|
-
'SLL',
|
|
471
|
-
'SOS',
|
|
472
|
-
'SPL',
|
|
473
|
-
'SRD',
|
|
474
|
-
'STD',
|
|
475
|
-
'SVC',
|
|
476
|
-
'SYP',
|
|
477
|
-
'SZL',
|
|
478
|
-
'THB',
|
|
479
|
-
'TJS',
|
|
480
|
-
'TMT',
|
|
481
|
-
'TND',
|
|
482
|
-
'TOP',
|
|
483
|
-
'TRY',
|
|
484
|
-
'TTD',
|
|
485
|
-
'TVD',
|
|
486
|
-
'TWD',
|
|
487
|
-
'TZS',
|
|
488
|
-
'UAH',
|
|
489
|
-
'UGX',
|
|
490
|
-
'USD',
|
|
491
|
-
'UYU',
|
|
492
|
-
'UZS',
|
|
493
|
-
'VEF',
|
|
494
|
-
'VND',
|
|
495
|
-
'VUV',
|
|
496
|
-
'WST',
|
|
497
|
-
'XAF',
|
|
498
|
-
'XCD',
|
|
499
|
-
'XDR',
|
|
500
|
-
'XOF',
|
|
501
|
-
'XPF',
|
|
502
|
-
'YER',
|
|
503
|
-
'ZAR',
|
|
504
|
-
'ZMW',
|
|
505
|
-
'ZWD',
|
|
506
|
-
'BTC'
|
|
507
|
-
])),
|
|
508
|
-
creditAdj: z.optional(z.number()),
|
|
509
|
-
refundAdj: z.optional(z.number()),
|
|
510
|
-
invoiceDate: z.optional(z.string()),
|
|
511
|
-
targetDate: z.optional(z.string()),
|
|
512
|
-
invoiceNumber: z.optional(z.string()),
|
|
513
|
-
balance: z.optional(z.number()),
|
|
514
|
-
bundleKeys: z.optional(z.string()),
|
|
515
|
-
credits: z.optional(z.array(z.object({
|
|
516
|
-
id: z.optional(z.uuid()),
|
|
517
|
-
linkedInvoiceItemId: z.optional(z.uuid()),
|
|
518
|
-
productName: z.optional(z.string()),
|
|
519
|
-
planName: z.optional(z.string()),
|
|
520
|
-
phaseName: z.optional(z.string()),
|
|
521
|
-
usageName: z.optional(z.string()),
|
|
522
|
-
prettyProductName: z.optional(z.string()),
|
|
523
|
-
prettyPlanName: z.optional(z.string()),
|
|
524
|
-
prettyPhaseName: z.optional(z.string()),
|
|
525
|
-
prettyUsageName: z.optional(z.string()),
|
|
526
|
-
itemType: z.optional(z.enum([
|
|
527
|
-
'EXTERNAL_CHARGE',
|
|
528
|
-
'FIXED',
|
|
529
|
-
'RECURRING',
|
|
530
|
-
'REPAIR_ADJ',
|
|
531
|
-
'CBA_ADJ',
|
|
532
|
-
'CREDIT_ADJ',
|
|
533
|
-
'ITEM_ADJ',
|
|
534
|
-
'USAGE',
|
|
535
|
-
'TAX',
|
|
536
|
-
'PARENT_SUMMARY'
|
|
537
|
-
])),
|
|
538
|
-
description: z.optional(z.string()),
|
|
539
|
-
startDate: z.optional(z.string()),
|
|
540
|
-
endDate: z.optional(z.string()),
|
|
541
|
-
amount: z.optional(z.number()),
|
|
542
|
-
rate: z.optional(z.number()),
|
|
543
|
-
currency: z.optional(z.enum([
|
|
544
|
-
'AED',
|
|
545
|
-
'AFN',
|
|
546
|
-
'ALL',
|
|
547
|
-
'AMD',
|
|
548
|
-
'ANG',
|
|
549
|
-
'AOA',
|
|
550
|
-
'ARS',
|
|
551
|
-
'AUD',
|
|
552
|
-
'AWG',
|
|
553
|
-
'AZN',
|
|
554
|
-
'BAM',
|
|
555
|
-
'BBD',
|
|
556
|
-
'BDT',
|
|
557
|
-
'BGN',
|
|
558
|
-
'BHD',
|
|
559
|
-
'BIF',
|
|
560
|
-
'BMD',
|
|
561
|
-
'BND',
|
|
562
|
-
'BOB',
|
|
563
|
-
'BRL',
|
|
564
|
-
'BSD',
|
|
565
|
-
'BTN',
|
|
566
|
-
'BWP',
|
|
567
|
-
'BYR',
|
|
568
|
-
'BZD',
|
|
569
|
-
'CAD',
|
|
570
|
-
'CDF',
|
|
571
|
-
'CHF',
|
|
572
|
-
'CLP',
|
|
573
|
-
'CNY',
|
|
574
|
-
'COP',
|
|
575
|
-
'CRC',
|
|
576
|
-
'CUC',
|
|
577
|
-
'CUP',
|
|
578
|
-
'CVE',
|
|
579
|
-
'CZK',
|
|
580
|
-
'DJF',
|
|
581
|
-
'DKK',
|
|
582
|
-
'DOP',
|
|
583
|
-
'DZD',
|
|
584
|
-
'EGP',
|
|
585
|
-
'ERN',
|
|
586
|
-
'ETB',
|
|
587
|
-
'EUR',
|
|
588
|
-
'FJD',
|
|
589
|
-
'FKP',
|
|
590
|
-
'GBP',
|
|
591
|
-
'GEL',
|
|
592
|
-
'GGP',
|
|
593
|
-
'GHS',
|
|
594
|
-
'GIP',
|
|
595
|
-
'GMD',
|
|
596
|
-
'GNF',
|
|
597
|
-
'GTQ',
|
|
598
|
-
'GYD',
|
|
599
|
-
'HKD',
|
|
600
|
-
'HNL',
|
|
601
|
-
'HRK',
|
|
602
|
-
'HTG',
|
|
603
|
-
'HUF',
|
|
604
|
-
'IDR',
|
|
605
|
-
'ILS',
|
|
606
|
-
'IMP',
|
|
607
|
-
'INR',
|
|
608
|
-
'IQD',
|
|
609
|
-
'IRR',
|
|
610
|
-
'ISK',
|
|
611
|
-
'JEP',
|
|
612
|
-
'JMD',
|
|
613
|
-
'JOD',
|
|
614
|
-
'JPY',
|
|
615
|
-
'KES',
|
|
616
|
-
'KGS',
|
|
617
|
-
'KHR',
|
|
618
|
-
'KMF',
|
|
619
|
-
'KPW',
|
|
620
|
-
'KRW',
|
|
621
|
-
'KWD',
|
|
622
|
-
'KYD',
|
|
623
|
-
'KZT',
|
|
624
|
-
'LAK',
|
|
625
|
-
'LBP',
|
|
626
|
-
'LKR',
|
|
627
|
-
'LRD',
|
|
628
|
-
'LSL',
|
|
629
|
-
'LTL',
|
|
630
|
-
'LVL',
|
|
631
|
-
'LYD',
|
|
632
|
-
'MAD',
|
|
633
|
-
'MDL',
|
|
634
|
-
'MGA',
|
|
635
|
-
'MKD',
|
|
636
|
-
'MMK',
|
|
637
|
-
'MNT',
|
|
638
|
-
'MOP',
|
|
639
|
-
'MRO',
|
|
640
|
-
'MUR',
|
|
641
|
-
'MVR',
|
|
642
|
-
'MWK',
|
|
643
|
-
'MXN',
|
|
644
|
-
'MYR',
|
|
645
|
-
'MZN',
|
|
646
|
-
'NAD',
|
|
647
|
-
'NGN',
|
|
648
|
-
'NIO',
|
|
649
|
-
'NOK',
|
|
650
|
-
'NPR',
|
|
651
|
-
'NZD',
|
|
652
|
-
'OMR',
|
|
653
|
-
'PAB',
|
|
654
|
-
'PEN',
|
|
655
|
-
'PGK',
|
|
656
|
-
'PHP',
|
|
657
|
-
'PKR',
|
|
658
|
-
'PLN',
|
|
659
|
-
'PYG',
|
|
660
|
-
'QAR',
|
|
661
|
-
'RON',
|
|
662
|
-
'RSD',
|
|
663
|
-
'RUB',
|
|
664
|
-
'RWF',
|
|
665
|
-
'SAR',
|
|
666
|
-
'SBD',
|
|
667
|
-
'SCR',
|
|
668
|
-
'SDG',
|
|
669
|
-
'SEK',
|
|
670
|
-
'SGD',
|
|
671
|
-
'SHP',
|
|
672
|
-
'SLL',
|
|
673
|
-
'SOS',
|
|
674
|
-
'SPL',
|
|
675
|
-
'SRD',
|
|
676
|
-
'STD',
|
|
677
|
-
'SVC',
|
|
678
|
-
'SYP',
|
|
679
|
-
'SZL',
|
|
680
|
-
'THB',
|
|
681
|
-
'TJS',
|
|
682
|
-
'TMT',
|
|
683
|
-
'TND',
|
|
684
|
-
'TOP',
|
|
685
|
-
'TRY',
|
|
686
|
-
'TTD',
|
|
687
|
-
'TVD',
|
|
688
|
-
'TWD',
|
|
689
|
-
'TZS',
|
|
690
|
-
'UAH',
|
|
691
|
-
'UGX',
|
|
692
|
-
'USD',
|
|
693
|
-
'UYU',
|
|
694
|
-
'UZS',
|
|
695
|
-
'VEF',
|
|
696
|
-
'VND',
|
|
697
|
-
'VUV',
|
|
698
|
-
'WST',
|
|
699
|
-
'XAF',
|
|
700
|
-
'XCD',
|
|
701
|
-
'XDR',
|
|
702
|
-
'XOF',
|
|
703
|
-
'XPF',
|
|
704
|
-
'YER',
|
|
705
|
-
'ZAR',
|
|
706
|
-
'ZMW',
|
|
707
|
-
'ZWD',
|
|
708
|
-
'BTC'
|
|
709
|
-
])),
|
|
710
|
-
quantity: z.optional(z.number()),
|
|
711
|
-
itemDetails: z.optional(z.string()),
|
|
712
|
-
catalogEffectiveDate: z.optional(z.string()),
|
|
713
|
-
childItems: z.optional(z.array(z.union([
|
|
714
|
-
z.array(z.unknown()),
|
|
715
|
-
z.boolean(),
|
|
716
|
-
z.number(),
|
|
717
|
-
z.record(z.string(), z.unknown()),
|
|
718
|
-
z.string()
|
|
719
|
-
])))
|
|
720
|
-
}))),
|
|
721
|
-
items: z.optional(z.array(z.object({
|
|
722
|
-
id: z.optional(z.uuid()),
|
|
723
|
-
linkedInvoiceItemId: z.optional(z.uuid()),
|
|
724
|
-
productName: z.optional(z.string()),
|
|
725
|
-
planName: z.optional(z.string()),
|
|
726
|
-
phaseName: z.optional(z.string()),
|
|
727
|
-
usageName: z.optional(z.string()),
|
|
728
|
-
prettyProductName: z.optional(z.string()),
|
|
729
|
-
prettyPlanName: z.optional(z.string()),
|
|
730
|
-
prettyPhaseName: z.optional(z.string()),
|
|
731
|
-
prettyUsageName: z.optional(z.string()),
|
|
732
|
-
itemType: z.optional(z.enum([
|
|
733
|
-
'EXTERNAL_CHARGE',
|
|
734
|
-
'FIXED',
|
|
735
|
-
'RECURRING',
|
|
736
|
-
'REPAIR_ADJ',
|
|
737
|
-
'CBA_ADJ',
|
|
738
|
-
'CREDIT_ADJ',
|
|
739
|
-
'ITEM_ADJ',
|
|
740
|
-
'USAGE',
|
|
741
|
-
'TAX',
|
|
742
|
-
'PARENT_SUMMARY'
|
|
743
|
-
])),
|
|
744
|
-
description: z.optional(z.string()),
|
|
745
|
-
startDate: z.optional(z.string()),
|
|
746
|
-
endDate: z.optional(z.string()),
|
|
747
|
-
amount: z.optional(z.number()),
|
|
748
|
-
rate: z.optional(z.number()),
|
|
749
|
-
currency: z.optional(z.enum([
|
|
750
|
-
'AED',
|
|
751
|
-
'AFN',
|
|
752
|
-
'ALL',
|
|
753
|
-
'AMD',
|
|
754
|
-
'ANG',
|
|
755
|
-
'AOA',
|
|
756
|
-
'ARS',
|
|
757
|
-
'AUD',
|
|
758
|
-
'AWG',
|
|
759
|
-
'AZN',
|
|
760
|
-
'BAM',
|
|
761
|
-
'BBD',
|
|
762
|
-
'BDT',
|
|
763
|
-
'BGN',
|
|
764
|
-
'BHD',
|
|
765
|
-
'BIF',
|
|
766
|
-
'BMD',
|
|
767
|
-
'BND',
|
|
768
|
-
'BOB',
|
|
769
|
-
'BRL',
|
|
770
|
-
'BSD',
|
|
771
|
-
'BTN',
|
|
772
|
-
'BWP',
|
|
773
|
-
'BYR',
|
|
774
|
-
'BZD',
|
|
775
|
-
'CAD',
|
|
776
|
-
'CDF',
|
|
777
|
-
'CHF',
|
|
778
|
-
'CLP',
|
|
779
|
-
'CNY',
|
|
780
|
-
'COP',
|
|
781
|
-
'CRC',
|
|
782
|
-
'CUC',
|
|
783
|
-
'CUP',
|
|
784
|
-
'CVE',
|
|
785
|
-
'CZK',
|
|
786
|
-
'DJF',
|
|
787
|
-
'DKK',
|
|
788
|
-
'DOP',
|
|
789
|
-
'DZD',
|
|
790
|
-
'EGP',
|
|
791
|
-
'ERN',
|
|
792
|
-
'ETB',
|
|
793
|
-
'EUR',
|
|
794
|
-
'FJD',
|
|
795
|
-
'FKP',
|
|
796
|
-
'GBP',
|
|
797
|
-
'GEL',
|
|
798
|
-
'GGP',
|
|
799
|
-
'GHS',
|
|
800
|
-
'GIP',
|
|
801
|
-
'GMD',
|
|
802
|
-
'GNF',
|
|
803
|
-
'GTQ',
|
|
804
|
-
'GYD',
|
|
805
|
-
'HKD',
|
|
806
|
-
'HNL',
|
|
807
|
-
'HRK',
|
|
808
|
-
'HTG',
|
|
809
|
-
'HUF',
|
|
810
|
-
'IDR',
|
|
811
|
-
'ILS',
|
|
812
|
-
'IMP',
|
|
813
|
-
'INR',
|
|
814
|
-
'IQD',
|
|
815
|
-
'IRR',
|
|
816
|
-
'ISK',
|
|
817
|
-
'JEP',
|
|
818
|
-
'JMD',
|
|
819
|
-
'JOD',
|
|
820
|
-
'JPY',
|
|
821
|
-
'KES',
|
|
822
|
-
'KGS',
|
|
823
|
-
'KHR',
|
|
824
|
-
'KMF',
|
|
825
|
-
'KPW',
|
|
826
|
-
'KRW',
|
|
827
|
-
'KWD',
|
|
828
|
-
'KYD',
|
|
829
|
-
'KZT',
|
|
830
|
-
'LAK',
|
|
831
|
-
'LBP',
|
|
832
|
-
'LKR',
|
|
833
|
-
'LRD',
|
|
834
|
-
'LSL',
|
|
835
|
-
'LTL',
|
|
836
|
-
'LVL',
|
|
837
|
-
'LYD',
|
|
838
|
-
'MAD',
|
|
839
|
-
'MDL',
|
|
840
|
-
'MGA',
|
|
841
|
-
'MKD',
|
|
842
|
-
'MMK',
|
|
843
|
-
'MNT',
|
|
844
|
-
'MOP',
|
|
845
|
-
'MRO',
|
|
846
|
-
'MUR',
|
|
847
|
-
'MVR',
|
|
848
|
-
'MWK',
|
|
849
|
-
'MXN',
|
|
850
|
-
'MYR',
|
|
851
|
-
'MZN',
|
|
852
|
-
'NAD',
|
|
853
|
-
'NGN',
|
|
854
|
-
'NIO',
|
|
855
|
-
'NOK',
|
|
856
|
-
'NPR',
|
|
857
|
-
'NZD',
|
|
858
|
-
'OMR',
|
|
859
|
-
'PAB',
|
|
860
|
-
'PEN',
|
|
861
|
-
'PGK',
|
|
862
|
-
'PHP',
|
|
863
|
-
'PKR',
|
|
864
|
-
'PLN',
|
|
865
|
-
'PYG',
|
|
866
|
-
'QAR',
|
|
867
|
-
'RON',
|
|
868
|
-
'RSD',
|
|
869
|
-
'RUB',
|
|
870
|
-
'RWF',
|
|
871
|
-
'SAR',
|
|
872
|
-
'SBD',
|
|
873
|
-
'SCR',
|
|
874
|
-
'SDG',
|
|
875
|
-
'SEK',
|
|
876
|
-
'SGD',
|
|
877
|
-
'SHP',
|
|
878
|
-
'SLL',
|
|
879
|
-
'SOS',
|
|
880
|
-
'SPL',
|
|
881
|
-
'SRD',
|
|
882
|
-
'STD',
|
|
883
|
-
'SVC',
|
|
884
|
-
'SYP',
|
|
885
|
-
'SZL',
|
|
886
|
-
'THB',
|
|
887
|
-
'TJS',
|
|
888
|
-
'TMT',
|
|
889
|
-
'TND',
|
|
890
|
-
'TOP',
|
|
891
|
-
'TRY',
|
|
892
|
-
'TTD',
|
|
893
|
-
'TVD',
|
|
894
|
-
'TWD',
|
|
895
|
-
'TZS',
|
|
896
|
-
'UAH',
|
|
897
|
-
'UGX',
|
|
898
|
-
'USD',
|
|
899
|
-
'UYU',
|
|
900
|
-
'UZS',
|
|
901
|
-
'VEF',
|
|
902
|
-
'VND',
|
|
903
|
-
'VUV',
|
|
904
|
-
'WST',
|
|
905
|
-
'XAF',
|
|
906
|
-
'XCD',
|
|
907
|
-
'XDR',
|
|
908
|
-
'XOF',
|
|
909
|
-
'XPF',
|
|
910
|
-
'YER',
|
|
911
|
-
'ZAR',
|
|
912
|
-
'ZMW',
|
|
913
|
-
'ZWD',
|
|
914
|
-
'BTC'
|
|
915
|
-
])),
|
|
916
|
-
quantity: z.optional(z.number()),
|
|
917
|
-
itemDetails: z.optional(z.string()),
|
|
918
|
-
catalogEffectiveDate: z.optional(z.string()),
|
|
919
|
-
childItems: z.optional(z.array(z.union([
|
|
920
|
-
z.array(z.unknown()),
|
|
921
|
-
z.boolean(),
|
|
922
|
-
z.number(),
|
|
923
|
-
z.record(z.string(), z.unknown()),
|
|
924
|
-
z.string()
|
|
925
|
-
])))
|
|
926
|
-
})))
|
|
1137
|
+
id: z.string().optional(),
|
|
1138
|
+
number: z.string().optional(),
|
|
1139
|
+
status: z.string().optional(),
|
|
1140
|
+
total: z.number().optional(),
|
|
1141
|
+
currency: z.string().optional(),
|
|
1142
|
+
created: z.iso.datetime(),
|
|
1143
|
+
period_start: z.iso.datetime(),
|
|
1144
|
+
period_end: z.iso.datetime(),
|
|
1145
|
+
invoice_pdf: z.string().optional()
|
|
1146
|
+
});
|
|
1147
|
+
export const zMarketplaceListingFiles = z.object({
|
|
1148
|
+
chartYaml: z.string().optional(),
|
|
1149
|
+
valuesYaml: z.string().optional(),
|
|
1150
|
+
valuesSchemaJson: z.string().optional()
|
|
927
1151
|
});
|
|
928
1152
|
export const zMarketplaceListing = z.object({
|
|
929
|
-
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
930
1153
|
name: z.string(),
|
|
931
|
-
|
|
932
|
-
description: z.string(),
|
|
933
|
-
logoUrl: z.string(),
|
|
934
|
-
longDescription: z.string(),
|
|
935
|
-
categories: z.array(z.string()),
|
|
1154
|
+
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-]+)*))?$/)),
|
|
936
1155
|
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-]+)*))?$/)),
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1156
|
+
latestVersion: z.string(),
|
|
1157
|
+
metadata: z.object({
|
|
1158
|
+
name: z.string(),
|
|
1159
|
+
version: z.string(),
|
|
1160
|
+
description: z.string().optional(),
|
|
1161
|
+
appVersion: z.string().optional(),
|
|
1162
|
+
apiVersion: z.string().optional(),
|
|
1163
|
+
keywords: z.array(z.string()).optional(),
|
|
1164
|
+
home: z.string().optional(),
|
|
1165
|
+
icon: z.string().optional(),
|
|
1166
|
+
sources: z.array(z.string()).optional(),
|
|
1167
|
+
maintainers: z.array(z.object({
|
|
1168
|
+
name: z.string(),
|
|
1169
|
+
email: z.string().optional()
|
|
1170
|
+
})).optional()
|
|
1171
|
+
}).optional()
|
|
942
1172
|
});
|
|
943
1173
|
export const zOrganizationCreateInput = z.object({
|
|
1174
|
+
type: z.enum(['business', 'personal']),
|
|
944
1175
|
email: z.email(),
|
|
945
|
-
first_name: z.string(),
|
|
946
|
-
last_name: z.string(),
|
|
1176
|
+
first_name: z.string().min(1),
|
|
1177
|
+
last_name: z.string().min(1),
|
|
947
1178
|
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,}$/),
|
|
948
1179
|
password: z.string().min(8)
|
|
949
1180
|
});
|
|
1181
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1182
|
+
id: z.string()
|
|
1183
|
+
});
|
|
950
1184
|
export const zOrganization = z.object({
|
|
951
1185
|
id: z.uuid(),
|
|
952
|
-
name: z.
|
|
1186
|
+
name: z.string().min(2).max(120).optional(),
|
|
1187
|
+
type: z.enum(['business', 'personal']),
|
|
953
1188
|
date_created: z.iso.datetime(),
|
|
954
1189
|
quota: z.object({
|
|
955
1190
|
basic_clusters_max: z.int().gte(0),
|
|
956
1191
|
basic_clusters_available: z.int(),
|
|
957
1192
|
pro_clusters_max: z.int().gte(0),
|
|
958
1193
|
pro_clusters_available: z.int(),
|
|
1194
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1195
|
+
enterprise_clusters_available: z.int(),
|
|
959
1196
|
fleets_max: z.int().gte(0),
|
|
960
1197
|
cluster_tiers: z.array(z.string()).min(0),
|
|
961
1198
|
regions: z.array(z.string()).min(1),
|
|
962
1199
|
versions: z.array(z.object({
|
|
963
1200
|
id: z.string(),
|
|
964
1201
|
label: z.string()
|
|
965
|
-
})).min(1)
|
|
1202
|
+
})).min(1),
|
|
1203
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
966
1204
|
}),
|
|
967
1205
|
status: z.enum([
|
|
968
1206
|
'active',
|
|
969
1207
|
'closed',
|
|
970
1208
|
'suspended'
|
|
1209
|
+
]),
|
|
1210
|
+
verification: z.enum([
|
|
1211
|
+
'none',
|
|
1212
|
+
'submitted',
|
|
1213
|
+
'verified'
|
|
971
1214
|
])
|
|
972
1215
|
});
|
|
973
1216
|
export const zPaymentMethod = z.object({
|
|
974
|
-
id: z.
|
|
975
|
-
setup: z.boolean(),
|
|
1217
|
+
id: z.string(),
|
|
976
1218
|
type: z.enum([
|
|
977
|
-
'card'
|
|
1219
|
+
'card',
|
|
1220
|
+
'sepa_debit',
|
|
1221
|
+
'bank_transfer'
|
|
978
1222
|
]),
|
|
979
1223
|
last4: z.string(),
|
|
980
1224
|
exp_month: z.int().gte(1).lte(12),
|
|
981
|
-
exp_year: z.int()
|
|
982
|
-
brand: z.
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1225
|
+
exp_year: z.int(),
|
|
1226
|
+
brand: z.string(),
|
|
1227
|
+
iban: z.string(),
|
|
1228
|
+
bic: z.string(),
|
|
1229
|
+
account_holder_name: z.string(),
|
|
1230
|
+
is_default: z.boolean()
|
|
1231
|
+
});
|
|
1232
|
+
export const zPlatformQuota = z.object({
|
|
1233
|
+
basic_clusters_max: z.int().gte(0),
|
|
1234
|
+
basic_clusters_available: z.int(),
|
|
1235
|
+
pro_clusters_max: z.int().gte(0),
|
|
1236
|
+
pro_clusters_available: z.int(),
|
|
1237
|
+
enterprise_clusters_max: z.int().gte(0),
|
|
1238
|
+
enterprise_clusters_available: z.int(),
|
|
1239
|
+
fleets_max: z.int().gte(0),
|
|
1240
|
+
cluster_tiers: z.array(z.string()).min(0),
|
|
1241
|
+
regions: z.array(z.string()).min(1),
|
|
1242
|
+
versions: z.array(z.object({
|
|
1243
|
+
id: z.string(),
|
|
1244
|
+
label: z.string()
|
|
1245
|
+
})).min(1),
|
|
1246
|
+
cfcr_storage_gb: z.int().gte(-1)
|
|
1247
|
+
});
|
|
1248
|
+
export const zRegistryRepository = z.object({
|
|
1249
|
+
name: z.string(),
|
|
1250
|
+
region: z.string(),
|
|
1251
|
+
uri: z.string()
|
|
1252
|
+
});
|
|
1253
|
+
export const zRegistryRepositoryWithTags = z.object({
|
|
1254
|
+
name: z.string(),
|
|
1255
|
+
region: z.string(),
|
|
1256
|
+
uri: z.string(),
|
|
1257
|
+
tags: z.array(z.object({
|
|
1258
|
+
name: z.string(),
|
|
1259
|
+
size: z.number(),
|
|
1260
|
+
mediaType: z.string().optional(),
|
|
1261
|
+
platforms: z.array(z.string()).optional()
|
|
1262
|
+
})),
|
|
1263
|
+
totalSize: z.number()
|
|
1264
|
+
});
|
|
1265
|
+
export const zRegistryTag = z.object({
|
|
1266
|
+
name: z.string(),
|
|
1267
|
+
digest: z.string(),
|
|
1268
|
+
mediaType: z.string().optional(),
|
|
1269
|
+
config: z.object({
|
|
1270
|
+
size: z.number()
|
|
1271
|
+
}).optional(),
|
|
1272
|
+
layers: z.array(z.object({
|
|
1273
|
+
digest: z.string().optional(),
|
|
1274
|
+
size: z.number()
|
|
1275
|
+
})).optional(),
|
|
1276
|
+
manifests: z.array(z.object({
|
|
1277
|
+
digest: z.string(),
|
|
1278
|
+
platform: z.object({
|
|
1279
|
+
architecture: z.string(),
|
|
1280
|
+
os: z.string(),
|
|
1281
|
+
variant: z.string().optional()
|
|
1282
|
+
}).optional(),
|
|
1283
|
+
layers: z.array(z.object({
|
|
1284
|
+
digest: z.string().optional(),
|
|
1285
|
+
size: z.number()
|
|
1286
|
+
})).optional(),
|
|
1287
|
+
size: z.number().optional()
|
|
1288
|
+
})).optional(),
|
|
1289
|
+
size: z.number(),
|
|
1290
|
+
region: z.string(),
|
|
1291
|
+
repository: z.string(),
|
|
1292
|
+
uri: z.string()
|
|
1293
|
+
});
|
|
1294
|
+
export const zTicketAttachment = z.object({
|
|
1295
|
+
id: z.string(),
|
|
1296
|
+
filename: z.string(),
|
|
1297
|
+
content_type: z.string(),
|
|
1298
|
+
size: z.int()
|
|
1299
|
+
});
|
|
1300
|
+
export const zTicketCreateInput = z.object({
|
|
1301
|
+
category: z.enum([
|
|
1302
|
+
'billing',
|
|
1303
|
+
'technical',
|
|
1304
|
+
'general'
|
|
1305
|
+
]),
|
|
1306
|
+
body: z.string().min(1).max(50000).regex(/\S/),
|
|
1307
|
+
properties: z.record(z.string(), z.unknown()).optional()
|
|
1308
|
+
});
|
|
1309
|
+
export const zTicketMessageInput = z.object({
|
|
1310
|
+
body: z.string().min(1).max(50000).regex(/\S/)
|
|
1311
|
+
});
|
|
1312
|
+
export const zTicketMessage = z.object({
|
|
1313
|
+
id: z.string(),
|
|
1314
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1315
|
+
body: z.string(),
|
|
1316
|
+
author_first_name: z.string().optional(),
|
|
1317
|
+
author_last_name: z.string().optional(),
|
|
1318
|
+
attachments: z.array(z.object({
|
|
1319
|
+
id: z.string(),
|
|
1320
|
+
filename: z.string(),
|
|
1321
|
+
content_type: z.string(),
|
|
1322
|
+
size: z.int()
|
|
1323
|
+
})).optional(),
|
|
1324
|
+
date_created: z.iso.datetime()
|
|
1325
|
+
});
|
|
1326
|
+
export const zTicket = z.object({
|
|
1327
|
+
id: z.string(),
|
|
1328
|
+
status: z.enum([
|
|
1329
|
+
'waiting_on_us',
|
|
1330
|
+
'waiting_on_user',
|
|
1331
|
+
'closed'
|
|
1332
|
+
]),
|
|
1333
|
+
category: z.enum([
|
|
1334
|
+
'billing',
|
|
1335
|
+
'technical',
|
|
1336
|
+
'general'
|
|
1337
|
+
]),
|
|
1338
|
+
summary: z.string(),
|
|
1339
|
+
closed_at: z.iso.datetime().optional(),
|
|
1340
|
+
date_created: z.iso.datetime(),
|
|
1341
|
+
date_updated: z.iso.datetime(),
|
|
1342
|
+
messages: z.array(z.object({
|
|
1343
|
+
id: z.string(),
|
|
1344
|
+
type: z.enum(['customer_reply', 'agent_reply']),
|
|
1345
|
+
body: z.string(),
|
|
1346
|
+
author_first_name: z.string().optional(),
|
|
1347
|
+
author_last_name: z.string().optional(),
|
|
1348
|
+
attachments: z.array(z.object({
|
|
1349
|
+
id: z.string(),
|
|
1350
|
+
filename: z.string(),
|
|
1351
|
+
content_type: z.string(),
|
|
1352
|
+
size: z.int()
|
|
1353
|
+
})).optional(),
|
|
1354
|
+
date_created: z.iso.datetime()
|
|
1355
|
+
})).optional()
|
|
993
1356
|
});
|
|
994
1357
|
export const zTokenCreateInput = z.object({
|
|
995
1358
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
996
|
-
role: z.enum([
|
|
997
|
-
'Administrator',
|
|
998
|
-
'User'
|
|
999
|
-
])
|
|
1359
|
+
role: z.enum(['Administrator', 'User'])
|
|
1000
1360
|
});
|
|
1001
1361
|
export const zToken = z.object({
|
|
1002
1362
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
1003
|
-
role: z.enum([
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
]),
|
|
1007
|
-
id: z.optional(z.string()),
|
|
1008
|
-
secret: z.optional(z.string()),
|
|
1363
|
+
role: z.enum(['Administrator', 'User']),
|
|
1364
|
+
id: z.string().optional(),
|
|
1365
|
+
secret: z.string().optional(),
|
|
1009
1366
|
date_created: z.iso.datetime()
|
|
1010
1367
|
});
|
|
1011
1368
|
export const zTokenUpdateInput = z.object({
|
|
1012
|
-
name: z.
|
|
1013
|
-
role: z.
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1369
|
+
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
1370
|
+
role: z.enum(['Administrator', 'User']).optional()
|
|
1371
|
+
});
|
|
1372
|
+
export const zUsageFacets = z.object({
|
|
1373
|
+
cluster_id: z.array(z.string()).optional(),
|
|
1374
|
+
product: z.array(z.enum([
|
|
1375
|
+
'cfke_controlplane_basic',
|
|
1376
|
+
'cfke_controlplane_pro',
|
|
1377
|
+
'cfke_controlplane_enterprise',
|
|
1378
|
+
'cfke_connected_nodes_basic',
|
|
1379
|
+
'cfke_connected_nodes_pro',
|
|
1380
|
+
'cfke_connected_nodes_enterprise',
|
|
1381
|
+
'cfcr_storage'
|
|
1382
|
+
])).optional()
|
|
1383
|
+
});
|
|
1384
|
+
export const zUsageResponse = z.object({
|
|
1385
|
+
data: z.array(z.object({
|
|
1386
|
+
hour: z.string(),
|
|
1387
|
+
cluster_id: z.string(),
|
|
1388
|
+
product: z.enum([
|
|
1389
|
+
'cfke_controlplane_basic',
|
|
1390
|
+
'cfke_controlplane_pro',
|
|
1391
|
+
'cfke_controlplane_enterprise',
|
|
1392
|
+
'cfke_connected_nodes_basic',
|
|
1393
|
+
'cfke_connected_nodes_pro',
|
|
1394
|
+
'cfke_connected_nodes_enterprise',
|
|
1395
|
+
'cfcr_storage'
|
|
1396
|
+
]),
|
|
1397
|
+
value: z.number(),
|
|
1398
|
+
price: z.number(),
|
|
1399
|
+
total: z.number()
|
|
1400
|
+
})),
|
|
1401
|
+
facets: z.object({
|
|
1402
|
+
cluster_id: z.array(z.string()).optional(),
|
|
1403
|
+
product: z.array(z.enum([
|
|
1404
|
+
'cfke_controlplane_basic',
|
|
1405
|
+
'cfke_controlplane_pro',
|
|
1406
|
+
'cfke_controlplane_enterprise',
|
|
1407
|
+
'cfke_connected_nodes_basic',
|
|
1408
|
+
'cfke_connected_nodes_pro',
|
|
1409
|
+
'cfke_connected_nodes_enterprise',
|
|
1410
|
+
'cfcr_storage'
|
|
1411
|
+
])).optional()
|
|
1412
|
+
})
|
|
1017
1413
|
});
|
|
1018
1414
|
export const zUsage = z.object({
|
|
1019
|
-
hour: z.
|
|
1020
|
-
cluster_id: z.
|
|
1021
|
-
cluster_tier: z.enum([
|
|
1022
|
-
'basic',
|
|
1023
|
-
'pro',
|
|
1024
|
-
''
|
|
1025
|
-
]),
|
|
1415
|
+
hour: z.string(),
|
|
1416
|
+
cluster_id: z.string(),
|
|
1026
1417
|
product: z.enum([
|
|
1027
|
-
'
|
|
1028
|
-
'
|
|
1029
|
-
'
|
|
1030
|
-
'
|
|
1031
|
-
'
|
|
1032
|
-
'
|
|
1418
|
+
'cfke_controlplane_basic',
|
|
1419
|
+
'cfke_controlplane_pro',
|
|
1420
|
+
'cfke_controlplane_enterprise',
|
|
1421
|
+
'cfke_connected_nodes_basic',
|
|
1422
|
+
'cfke_connected_nodes_pro',
|
|
1423
|
+
'cfke_connected_nodes_enterprise',
|
|
1033
1424
|
'cfcr_storage'
|
|
1034
1425
|
]),
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
z.number(),
|
|
1039
|
-
z.enum([
|
|
1040
|
-
''
|
|
1041
|
-
])
|
|
1042
|
-
]),
|
|
1043
|
-
price: z.union([
|
|
1044
|
-
z.number(),
|
|
1045
|
-
z.enum([
|
|
1046
|
-
''
|
|
1047
|
-
])
|
|
1048
|
-
]),
|
|
1049
|
-
value: z.union([
|
|
1050
|
-
z.number(),
|
|
1051
|
-
z.enum([
|
|
1052
|
-
''
|
|
1053
|
-
])
|
|
1054
|
-
]),
|
|
1055
|
-
total: z.union([
|
|
1056
|
-
z.number(),
|
|
1057
|
-
z.enum([
|
|
1058
|
-
''
|
|
1059
|
-
])
|
|
1060
|
-
])
|
|
1426
|
+
value: z.number(),
|
|
1427
|
+
price: z.number(),
|
|
1428
|
+
total: z.number()
|
|
1061
1429
|
});
|
|
1062
1430
|
export const zUserCreateInput = z.object({
|
|
1063
1431
|
email: z.email(),
|
|
1064
1432
|
first_name: z.string().min(1).max(50),
|
|
1065
1433
|
last_name: z.string().min(1).max(50),
|
|
1066
1434
|
code: z.string(),
|
|
1067
|
-
password: z.string().min(8)
|
|
1068
|
-
status: z.optional(z.enum([
|
|
1069
|
-
'active',
|
|
1070
|
-
'inactive'
|
|
1071
|
-
])),
|
|
1072
|
-
role: z.optional(z.enum([
|
|
1073
|
-
'Administrator',
|
|
1074
|
-
'User'
|
|
1075
|
-
]))
|
|
1435
|
+
password: z.string().min(8)
|
|
1076
1436
|
});
|
|
1077
1437
|
export const zUser = z.object({
|
|
1078
1438
|
email: z.email(),
|
|
1079
1439
|
first_name: z.string().min(1).max(50),
|
|
1080
1440
|
last_name: z.string().min(1).max(50),
|
|
1081
|
-
role: z.enum([
|
|
1082
|
-
|
|
1083
|
-
'User'
|
|
1084
|
-
]),
|
|
1085
|
-
status: z.enum([
|
|
1086
|
-
'active',
|
|
1087
|
-
'inactive'
|
|
1088
|
-
]),
|
|
1441
|
+
role: z.enum(['Administrator', 'User']),
|
|
1442
|
+
status: z.enum(['active', 'inactive']),
|
|
1089
1443
|
id: z.uuid(),
|
|
1090
1444
|
date_created: z.iso.datetime()
|
|
1091
1445
|
});
|
|
1092
1446
|
export const zUserUpdateInput = z.object({
|
|
1093
|
-
email: z.
|
|
1094
|
-
first_name: z.
|
|
1095
|
-
last_name: z.
|
|
1096
|
-
role: z.
|
|
1097
|
-
|
|
1098
|
-
'User'
|
|
1099
|
-
])),
|
|
1100
|
-
status: z.optional(z.enum([
|
|
1101
|
-
'active',
|
|
1102
|
-
'inactive'
|
|
1103
|
-
]))
|
|
1447
|
+
email: z.email().optional(),
|
|
1448
|
+
first_name: z.string().min(1).max(50).optional(),
|
|
1449
|
+
last_name: z.string().min(1).max(50).optional(),
|
|
1450
|
+
role: z.enum(['Administrator', 'User']).optional(),
|
|
1451
|
+
status: z.enum(['active', 'inactive']).optional()
|
|
1104
1452
|
});
|
|
1105
|
-
export const
|
|
1106
|
-
|
|
1107
|
-
path: z.optional(z.never()),
|
|
1108
|
-
query: z.optional(z.never())
|
|
1453
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1454
|
+
email: z.string()
|
|
1109
1455
|
});
|
|
1110
1456
|
/**
|
|
1111
|
-
* An array of
|
|
1457
|
+
* An array of organizations the user belongs to.
|
|
1112
1458
|
*/
|
|
1113
|
-
export const
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
query: z.optional(z.never())
|
|
1118
|
-
});
|
|
1459
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1460
|
+
realm: z.string().optional(),
|
|
1461
|
+
displayName: z.string().optional()
|
|
1462
|
+
}));
|
|
1119
1463
|
/**
|
|
1120
|
-
*
|
|
1464
|
+
* An array of users
|
|
1121
1465
|
*/
|
|
1122
|
-
export const
|
|
1123
|
-
export const
|
|
1124
|
-
body: z.optional(z.never()),
|
|
1125
|
-
path: z.optional(z.never()),
|
|
1126
|
-
query: z.optional(z.never())
|
|
1127
|
-
});
|
|
1466
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1467
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
1128
1468
|
/**
|
|
1129
|
-
*
|
|
1469
|
+
* Successfully created. Returns created user details.
|
|
1130
1470
|
*/
|
|
1131
|
-
export const
|
|
1132
|
-
export const
|
|
1133
|
-
|
|
1134
|
-
path: z.optional(z.never()),
|
|
1135
|
-
query: z.optional(z.never())
|
|
1471
|
+
export const zCreateUserResponse = zUser;
|
|
1472
|
+
export const zDeleteUserPath = z.object({
|
|
1473
|
+
user_id: z.string()
|
|
1136
1474
|
});
|
|
1137
1475
|
/**
|
|
1138
|
-
*
|
|
1139
|
-
*
|
|
1476
|
+
* User profile information
|
|
1140
1477
|
*/
|
|
1141
|
-
export const
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
export const zListInvoicesData = z.object({
|
|
1145
|
-
body: z.optional(z.never()),
|
|
1146
|
-
path: z.optional(z.never()),
|
|
1147
|
-
query: z.object({
|
|
1148
|
-
start_date: z.string(),
|
|
1149
|
-
end_date: z.string()
|
|
1150
|
-
})
|
|
1478
|
+
export const zDeleteUserResponse = zUser;
|
|
1479
|
+
export const zGetUserPath = z.object({
|
|
1480
|
+
user_id: z.string()
|
|
1151
1481
|
});
|
|
1152
1482
|
/**
|
|
1153
|
-
*
|
|
1483
|
+
* User profile information
|
|
1154
1484
|
*/
|
|
1155
|
-
export const
|
|
1156
|
-
export const
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
id: z.string()
|
|
1160
|
-
}),
|
|
1161
|
-
query: z.optional(z.never())
|
|
1485
|
+
export const zGetUserResponse = zUser;
|
|
1486
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1487
|
+
export const zUpdateUserPath = z.object({
|
|
1488
|
+
user_id: z.string()
|
|
1162
1489
|
});
|
|
1163
1490
|
/**
|
|
1164
|
-
*
|
|
1491
|
+
* Successfully created. Returns created user details.
|
|
1165
1492
|
*/
|
|
1166
|
-
export const
|
|
1167
|
-
html: z.optional(z.string())
|
|
1168
|
-
});
|
|
1169
|
-
export const zGetContactData = z.object({
|
|
1170
|
-
body: z.optional(z.never()),
|
|
1171
|
-
path: z.optional(z.never()),
|
|
1172
|
-
query: z.optional(z.never())
|
|
1173
|
-
});
|
|
1493
|
+
export const zUpdateUserResponse = zUser;
|
|
1174
1494
|
/**
|
|
1175
|
-
* Returns a
|
|
1495
|
+
* Returns a list of access token details with masked secrets.
|
|
1176
1496
|
*/
|
|
1177
|
-
export const
|
|
1178
|
-
export const
|
|
1179
|
-
body: zBillingContact,
|
|
1180
|
-
path: z.optional(z.never()),
|
|
1181
|
-
query: z.optional(z.never())
|
|
1182
|
-
});
|
|
1497
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1498
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
1183
1499
|
/**
|
|
1184
|
-
* Successfully
|
|
1500
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
1185
1501
|
*/
|
|
1186
|
-
export const
|
|
1187
|
-
export const
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1502
|
+
export const zCreateTokenResponse = zToken;
|
|
1503
|
+
export const zDeleteTokenPath = z.object({
|
|
1504
|
+
token_id: z.string()
|
|
1505
|
+
});
|
|
1506
|
+
export const zGetTokenPath = z.object({
|
|
1507
|
+
token_id: z.string()
|
|
1191
1508
|
});
|
|
1192
1509
|
/**
|
|
1193
|
-
*
|
|
1510
|
+
* Returns access token details with masked secret.
|
|
1194
1511
|
*/
|
|
1195
|
-
export const
|
|
1196
|
-
export const
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
}),
|
|
1200
|
-
path: z.optional(z.never()),
|
|
1201
|
-
query: z.optional(z.never())
|
|
1202
|
-
});
|
|
1203
|
-
export const zListChartsData = z.object({
|
|
1204
|
-
body: z.optional(z.never()),
|
|
1205
|
-
path: z.object({
|
|
1206
|
-
cluster_id: z.string()
|
|
1207
|
-
}),
|
|
1208
|
-
query: z.optional(z.never())
|
|
1512
|
+
export const zGetTokenResponse = zToken;
|
|
1513
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1514
|
+
export const zUpdateTokenPath = z.object({
|
|
1515
|
+
token_id: z.string()
|
|
1209
1516
|
});
|
|
1210
1517
|
/**
|
|
1211
|
-
*
|
|
1518
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
1212
1519
|
*/
|
|
1213
|
-
export const
|
|
1214
|
-
export const
|
|
1215
|
-
|
|
1216
|
-
path: z.object({
|
|
1217
|
-
cluster_id: z.string()
|
|
1218
|
-
}),
|
|
1219
|
-
query: z.optional(z.never())
|
|
1520
|
+
export const zUpdateTokenResponse = zToken;
|
|
1521
|
+
export const zRegenerateTokenPath = z.object({
|
|
1522
|
+
token_id: z.string()
|
|
1220
1523
|
});
|
|
1221
1524
|
/**
|
|
1222
|
-
* Successfully
|
|
1525
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
1223
1526
|
*/
|
|
1224
|
-
export const
|
|
1225
|
-
export const zDeleteChartData = z.object({
|
|
1226
|
-
body: z.optional(z.never()),
|
|
1227
|
-
path: z.object({
|
|
1228
|
-
cluster_id: z.string(),
|
|
1229
|
-
chart_name: z.string()
|
|
1230
|
-
}),
|
|
1231
|
-
query: z.optional(z.never())
|
|
1232
|
-
});
|
|
1527
|
+
export const zRegenerateTokenResponse = zToken;
|
|
1233
1528
|
/**
|
|
1234
|
-
*
|
|
1529
|
+
* An array of tickets for the organization, newest first.
|
|
1235
1530
|
*/
|
|
1236
|
-
export const
|
|
1237
|
-
export const
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
cluster_id: z.string(),
|
|
1241
|
-
chart_name: z.string()
|
|
1242
|
-
}),
|
|
1243
|
-
query: z.optional(z.never())
|
|
1531
|
+
export const zListTicketsResponse = z.array(zTicket);
|
|
1532
|
+
export const zCreateTicketBody = z.object({
|
|
1533
|
+
payload: z.string().optional(),
|
|
1534
|
+
attachments: z.array(z.string()).optional()
|
|
1244
1535
|
});
|
|
1245
1536
|
/**
|
|
1246
|
-
*
|
|
1537
|
+
* Ticket created.
|
|
1247
1538
|
*/
|
|
1248
|
-
export const
|
|
1249
|
-
export const
|
|
1250
|
-
|
|
1251
|
-
path: z.object({
|
|
1252
|
-
cluster_id: z.string(),
|
|
1253
|
-
chart_name: z.string()
|
|
1254
|
-
}),
|
|
1255
|
-
query: z.optional(z.never())
|
|
1539
|
+
export const zCreateTicketResponse = zTicket;
|
|
1540
|
+
export const zCloseTicketPath = z.object({
|
|
1541
|
+
ticket_id: z.string()
|
|
1256
1542
|
});
|
|
1257
1543
|
/**
|
|
1258
|
-
*
|
|
1544
|
+
* Ticket closed.
|
|
1259
1545
|
*/
|
|
1260
|
-
export const
|
|
1261
|
-
export const
|
|
1262
|
-
|
|
1263
|
-
path: z.object({
|
|
1264
|
-
cluster_id: z.string()
|
|
1265
|
-
}),
|
|
1266
|
-
query: z.optional(z.never())
|
|
1546
|
+
export const zCloseTicketResponse = zTicket;
|
|
1547
|
+
export const zGetTicketPath = z.object({
|
|
1548
|
+
ticket_id: z.string()
|
|
1267
1549
|
});
|
|
1268
1550
|
/**
|
|
1269
|
-
*
|
|
1551
|
+
* Ticket with messages (internal notes excluded).
|
|
1270
1552
|
*/
|
|
1271
|
-
export const
|
|
1272
|
-
export const
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1553
|
+
export const zGetTicketResponse = zTicket;
|
|
1554
|
+
export const zReplyTicketBody = z.object({
|
|
1555
|
+
payload: z.string().optional(),
|
|
1556
|
+
attachments: z.array(z.string()).optional()
|
|
1557
|
+
});
|
|
1558
|
+
export const zReplyTicketPath = z.object({
|
|
1559
|
+
ticket_id: z.string()
|
|
1278
1560
|
});
|
|
1279
1561
|
/**
|
|
1280
|
-
*
|
|
1562
|
+
* Reply appended.
|
|
1281
1563
|
*/
|
|
1282
|
-
export const
|
|
1283
|
-
export const
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
cluster_id: z.string(),
|
|
1287
|
-
fleet_name: z.string()
|
|
1288
|
-
}),
|
|
1289
|
-
query: z.optional(z.never())
|
|
1564
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1565
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1566
|
+
ticket_id: z.string(),
|
|
1567
|
+
attachment_id: z.string()
|
|
1290
1568
|
});
|
|
1291
1569
|
/**
|
|
1292
|
-
*
|
|
1570
|
+
* Attachment binary stream.
|
|
1293
1571
|
*/
|
|
1294
|
-
export const
|
|
1295
|
-
export const zGetFleetData = z.object({
|
|
1296
|
-
body: z.optional(z.never()),
|
|
1297
|
-
path: z.object({
|
|
1298
|
-
cluster_id: z.string(),
|
|
1299
|
-
fleet_name: z.string()
|
|
1300
|
-
}),
|
|
1301
|
-
query: z.optional(z.never())
|
|
1302
|
-
});
|
|
1572
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
1303
1573
|
/**
|
|
1304
|
-
*
|
|
1574
|
+
* List of repositories
|
|
1305
1575
|
*/
|
|
1306
|
-
export const
|
|
1307
|
-
export const
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
cluster_id: z.string(),
|
|
1311
|
-
fleet_name: z.string()
|
|
1312
|
-
}),
|
|
1313
|
-
query: z.optional(z.never())
|
|
1576
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1577
|
+
export const zListTagsPath = z.object({
|
|
1578
|
+
region: z.string(),
|
|
1579
|
+
repository: z.string()
|
|
1314
1580
|
});
|
|
1315
1581
|
/**
|
|
1316
|
-
*
|
|
1582
|
+
* Repository with tags
|
|
1317
1583
|
*/
|
|
1318
|
-
export const
|
|
1319
|
-
export const
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
}),
|
|
1324
|
-
query: z.optional(z.never())
|
|
1584
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1585
|
+
export const zDeleteTagPath = z.object({
|
|
1586
|
+
region: z.string(),
|
|
1587
|
+
repository: z.string(),
|
|
1588
|
+
tag: z.string()
|
|
1325
1589
|
});
|
|
1326
|
-
export const
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1590
|
+
export const zGetTagPath = z.object({
|
|
1591
|
+
region: z.string(),
|
|
1592
|
+
repository: z.string(),
|
|
1593
|
+
tag: z.string()
|
|
1330
1594
|
});
|
|
1331
1595
|
/**
|
|
1332
|
-
*
|
|
1596
|
+
* Tag details
|
|
1333
1597
|
*/
|
|
1334
|
-
export const
|
|
1335
|
-
export const zCreateClusterData = z.object({
|
|
1336
|
-
body: zClusterCreateInput,
|
|
1337
|
-
path: z.optional(z.never()),
|
|
1338
|
-
query: z.optional(z.never())
|
|
1339
|
-
});
|
|
1598
|
+
export const zGetTagResponse = zRegistryTag;
|
|
1340
1599
|
/**
|
|
1341
|
-
*
|
|
1600
|
+
* Returns a single object containing organization details.
|
|
1342
1601
|
*/
|
|
1343
|
-
export const
|
|
1344
|
-
export const
|
|
1345
|
-
body: z.optional(z.never()),
|
|
1346
|
-
path: z.object({
|
|
1347
|
-
cluster_id: z.string()
|
|
1348
|
-
}),
|
|
1349
|
-
query: z.optional(z.never())
|
|
1350
|
-
});
|
|
1602
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1603
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
1351
1604
|
/**
|
|
1352
|
-
*
|
|
1605
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1606
|
+
*
|
|
1353
1607
|
*/
|
|
1354
|
-
export const
|
|
1355
|
-
export const zGetClusterData = z.object({
|
|
1356
|
-
body: z.optional(z.never()),
|
|
1357
|
-
path: z.object({
|
|
1358
|
-
cluster_id: z.string()
|
|
1359
|
-
}),
|
|
1360
|
-
query: z.optional(z.never())
|
|
1361
|
-
});
|
|
1608
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
1362
1609
|
/**
|
|
1363
|
-
* Returns
|
|
1610
|
+
* Returns the current consent status.
|
|
1364
1611
|
*/
|
|
1365
|
-
export const
|
|
1366
|
-
export const
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1612
|
+
export const zGetBasicPriceConsentResponse = zBasicPriceConsent;
|
|
1613
|
+
export const zSetBasicPriceConsentBody = zBasicPriceConsentInput;
|
|
1614
|
+
/**
|
|
1615
|
+
* Decision recorded. Returns the updated consent status.
|
|
1616
|
+
*/
|
|
1617
|
+
export const zSetBasicPriceConsentResponse = zBasicPriceConsent;
|
|
1618
|
+
/**
|
|
1619
|
+
* JSON-RPC 2.0 request payload
|
|
1620
|
+
*/
|
|
1621
|
+
export const zPostMcpBody = z.object({
|
|
1622
|
+
jsonrpc: z.string().optional(),
|
|
1623
|
+
method: z.string().optional(),
|
|
1624
|
+
id: z.union([
|
|
1625
|
+
z.string(),
|
|
1626
|
+
z.number()
|
|
1627
|
+
]).optional(),
|
|
1628
|
+
params: z.record(z.string(), z.unknown()).optional()
|
|
1372
1629
|
});
|
|
1373
1630
|
/**
|
|
1374
|
-
*
|
|
1631
|
+
* JSON-RPC 2.0 success or error response
|
|
1375
1632
|
*/
|
|
1376
|
-
export const
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1633
|
+
export const zPostMcpResponse = z.object({
|
|
1634
|
+
jsonrpc: z.string().optional(),
|
|
1635
|
+
id: z.union([
|
|
1636
|
+
z.string(),
|
|
1637
|
+
z.number()
|
|
1638
|
+
]).optional(),
|
|
1639
|
+
result: z.record(z.string(), z.unknown()).optional(),
|
|
1640
|
+
error: z.object({
|
|
1641
|
+
code: z.int().optional(),
|
|
1642
|
+
message: z.string().optional()
|
|
1643
|
+
}).optional()
|
|
1383
1644
|
});
|
|
1384
1645
|
/**
|
|
1385
|
-
* An
|
|
1646
|
+
* An array of chart listings in the marketplace.
|
|
1386
1647
|
*/
|
|
1387
|
-
export const
|
|
1388
|
-
export const
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
query: z.optional(z.never())
|
|
1648
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1649
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1650
|
+
chart_name: z.string(),
|
|
1651
|
+
version_channel: z.string()
|
|
1392
1652
|
});
|
|
1653
|
+
/**
|
|
1654
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
1655
|
+
*/
|
|
1656
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1393
1657
|
/**
|
|
1394
1658
|
* An array of invites
|
|
1395
1659
|
*/
|
|
1396
1660
|
export const zListInvitesResponse = z.array(zInvite);
|
|
1397
|
-
export const
|
|
1398
|
-
body: z.object({
|
|
1399
|
-
email: z.optional(z.string())
|
|
1400
|
-
}),
|
|
1401
|
-
path: z.optional(z.never()),
|
|
1402
|
-
query: z.optional(z.never())
|
|
1403
|
-
});
|
|
1661
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1404
1662
|
/**
|
|
1405
1663
|
* Successfully created. Returns created invite details.
|
|
1406
1664
|
*/
|
|
1407
1665
|
export const zCreateInviteResponse = zInvite;
|
|
1408
|
-
export const
|
|
1409
|
-
|
|
1410
|
-
path: z.object({
|
|
1411
|
-
code: z.string()
|
|
1412
|
-
}),
|
|
1413
|
-
query: z.optional(z.never())
|
|
1666
|
+
export const zGetInvitePath = z.object({
|
|
1667
|
+
code: z.string()
|
|
1414
1668
|
});
|
|
1415
1669
|
/**
|
|
1416
|
-
* Returns
|
|
1670
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
1417
1671
|
*/
|
|
1418
|
-
export const zGetInviteResponse =
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
path: z.object({
|
|
1422
|
-
email: z.string()
|
|
1423
|
-
}),
|
|
1424
|
-
query: z.optional(z.never())
|
|
1672
|
+
export const zGetInviteResponse = z.object({
|
|
1673
|
+
email: z.email().optional(),
|
|
1674
|
+
organization_id: z.string().optional()
|
|
1425
1675
|
});
|
|
1426
|
-
export const
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1676
|
+
export const zDeleteInvitePath = z.object({
|
|
1677
|
+
email: z.email()
|
|
1678
|
+
});
|
|
1679
|
+
export const zQueryClusterPath = z.object({
|
|
1680
|
+
cluster_id: z.string()
|
|
1681
|
+
});
|
|
1682
|
+
export const zListFleetsPath = z.object({
|
|
1683
|
+
cluster_id: z.string()
|
|
1430
1684
|
});
|
|
1431
1685
|
/**
|
|
1432
|
-
* An array of
|
|
1686
|
+
* An array of fleets
|
|
1433
1687
|
*/
|
|
1434
|
-
export const
|
|
1435
|
-
export const
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
listing_id: z.string()
|
|
1439
|
-
}),
|
|
1440
|
-
query: z.optional(z.never())
|
|
1688
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1689
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1690
|
+
export const zCreateFleetPath = z.object({
|
|
1691
|
+
cluster_id: z.string()
|
|
1441
1692
|
});
|
|
1442
1693
|
/**
|
|
1443
|
-
*
|
|
1694
|
+
* Successfully created. Returns created Fleet ID.
|
|
1444
1695
|
*/
|
|
1445
|
-
export const
|
|
1446
|
-
export const
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
query: z.optional(z.never())
|
|
1696
|
+
export const zCreateFleetResponse = z.string();
|
|
1697
|
+
export const zDeleteFleetPath = z.object({
|
|
1698
|
+
cluster_id: z.string(),
|
|
1699
|
+
fleet_name: z.string()
|
|
1450
1700
|
});
|
|
1451
1701
|
/**
|
|
1452
|
-
*
|
|
1702
|
+
* Successfully deleted.
|
|
1453
1703
|
*/
|
|
1454
|
-
export const
|
|
1455
|
-
export const
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
query: z.optional(z.never())
|
|
1704
|
+
export const zDeleteFleetResponse = z.string();
|
|
1705
|
+
export const zGetFleetPath = z.object({
|
|
1706
|
+
cluster_id: z.string(),
|
|
1707
|
+
fleet_name: z.string()
|
|
1459
1708
|
});
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1709
|
+
/**
|
|
1710
|
+
* Returns a single object containing fleet details.
|
|
1711
|
+
*/
|
|
1712
|
+
export const zGetFleetResponse = zFleet;
|
|
1713
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1714
|
+
export const zUpdateFleetPath = z.object({
|
|
1715
|
+
cluster_id: z.string(),
|
|
1716
|
+
fleet_name: z.string()
|
|
1464
1717
|
});
|
|
1465
1718
|
/**
|
|
1466
|
-
*
|
|
1719
|
+
* Successfully updated.
|
|
1467
1720
|
*/
|
|
1468
|
-
export const
|
|
1469
|
-
export const
|
|
1470
|
-
|
|
1471
|
-
path: z.optional(z.never()),
|
|
1472
|
-
query: z.optional(z.never())
|
|
1721
|
+
export const zUpdateFleetResponse = z.string();
|
|
1722
|
+
export const zListChartsPath = z.object({
|
|
1723
|
+
cluster_id: z.string()
|
|
1473
1724
|
});
|
|
1474
1725
|
/**
|
|
1475
|
-
*
|
|
1726
|
+
* An array of charts
|
|
1476
1727
|
*/
|
|
1477
|
-
export const
|
|
1478
|
-
export const
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
token_id: z.string()
|
|
1482
|
-
}),
|
|
1483
|
-
query: z.optional(z.never())
|
|
1728
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1729
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1730
|
+
export const zCreateChartPath = z.object({
|
|
1731
|
+
cluster_id: z.string()
|
|
1484
1732
|
});
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1733
|
+
/**
|
|
1734
|
+
* Successfully created. Returns created Chart ID.
|
|
1735
|
+
*/
|
|
1736
|
+
export const zCreateChartResponse = z.string();
|
|
1737
|
+
export const zDeleteChartPath = z.object({
|
|
1738
|
+
cluster_id: z.string(),
|
|
1739
|
+
chart_name: z.string()
|
|
1491
1740
|
});
|
|
1492
1741
|
/**
|
|
1493
|
-
*
|
|
1742
|
+
* Successfully deleted.
|
|
1494
1743
|
*/
|
|
1495
|
-
export const
|
|
1496
|
-
export const
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
token_id: z.string()
|
|
1500
|
-
}),
|
|
1501
|
-
query: z.optional(z.never())
|
|
1744
|
+
export const zDeleteChartResponse = z.string();
|
|
1745
|
+
export const zGetChartPath = z.object({
|
|
1746
|
+
cluster_id: z.string(),
|
|
1747
|
+
chart_name: z.string()
|
|
1502
1748
|
});
|
|
1503
1749
|
/**
|
|
1504
|
-
*
|
|
1750
|
+
* Returns a single object containing chart details.
|
|
1505
1751
|
*/
|
|
1506
|
-
export const
|
|
1507
|
-
export const
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
}),
|
|
1512
|
-
query: z.optional(z.never())
|
|
1752
|
+
export const zGetChartResponse = zChart;
|
|
1753
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1754
|
+
export const zUpdateChartPath = z.object({
|
|
1755
|
+
cluster_id: z.string(),
|
|
1756
|
+
chart_name: z.string()
|
|
1513
1757
|
});
|
|
1514
1758
|
/**
|
|
1515
|
-
* Successfully updated.
|
|
1759
|
+
* Successfully updated.
|
|
1516
1760
|
*/
|
|
1517
|
-
export const
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1761
|
+
export const zUpdateChartResponse = z.string();
|
|
1762
|
+
/**
|
|
1763
|
+
* An array of clusters
|
|
1764
|
+
*/
|
|
1765
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1766
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1767
|
+
/**
|
|
1768
|
+
* Successfully created. Returns created Cluster ID.
|
|
1769
|
+
*/
|
|
1770
|
+
export const zCreateClusterResponse = z.string();
|
|
1771
|
+
export const zDeleteClusterPath = z.object({
|
|
1772
|
+
cluster_id: z.string()
|
|
1524
1773
|
});
|
|
1525
1774
|
/**
|
|
1526
|
-
*
|
|
1775
|
+
* Successfully deleted. The cluster has been torn down.
|
|
1527
1776
|
*/
|
|
1528
|
-
export const
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
}));
|
|
1532
|
-
export const zListUsersData = z.object({
|
|
1533
|
-
body: z.optional(z.never()),
|
|
1534
|
-
path: z.optional(z.never()),
|
|
1535
|
-
query: z.optional(z.never())
|
|
1777
|
+
export const zDeleteClusterResponse = z.string();
|
|
1778
|
+
export const zGetClusterPath = z.object({
|
|
1779
|
+
cluster_id: z.string()
|
|
1536
1780
|
});
|
|
1537
1781
|
/**
|
|
1538
|
-
*
|
|
1782
|
+
* Returns a single object containing cluster details.
|
|
1539
1783
|
*/
|
|
1540
|
-
export const
|
|
1541
|
-
export const
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
query: z.optional(z.never())
|
|
1784
|
+
export const zGetClusterResponse = zCluster;
|
|
1785
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1786
|
+
export const zUpdateClusterPath = z.object({
|
|
1787
|
+
cluster_id: z.string()
|
|
1545
1788
|
});
|
|
1546
1789
|
/**
|
|
1547
|
-
* Successfully
|
|
1790
|
+
* Successfully updated. Returns updated cluster details.
|
|
1548
1791
|
*/
|
|
1549
|
-
export const
|
|
1550
|
-
export const
|
|
1551
|
-
|
|
1552
|
-
path: z.object({
|
|
1553
|
-
user_id: z.string()
|
|
1554
|
-
}),
|
|
1555
|
-
query: z.optional(z.never())
|
|
1792
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1793
|
+
export const zGetJoinInformationPath = z.object({
|
|
1794
|
+
cluster_id: z.string()
|
|
1556
1795
|
});
|
|
1557
1796
|
/**
|
|
1558
|
-
*
|
|
1797
|
+
* An object of cluster join information
|
|
1559
1798
|
*/
|
|
1560
|
-
export const
|
|
1561
|
-
export const
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1799
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1800
|
+
export const zGetUsageQuery = z.object({
|
|
1801
|
+
granularity: z.enum([
|
|
1802
|
+
'hourly',
|
|
1803
|
+
'daily',
|
|
1804
|
+
'monthly'
|
|
1805
|
+
]).optional().default('daily')
|
|
1567
1806
|
});
|
|
1568
1807
|
/**
|
|
1569
|
-
*
|
|
1808
|
+
* Usage data with facets for filtering
|
|
1570
1809
|
*/
|
|
1571
|
-
export const
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1810
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
1811
|
+
/**
|
|
1812
|
+
* 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.
|
|
1813
|
+
*
|
|
1814
|
+
*/
|
|
1815
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1816
|
+
id: z.string().optional()
|
|
1578
1817
|
});
|
|
1579
1818
|
/**
|
|
1580
|
-
*
|
|
1819
|
+
* An array of payment methods.
|
|
1581
1820
|
*/
|
|
1582
|
-
export const
|
|
1821
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1822
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1823
|
+
paymentMethodId: z.string()
|
|
1824
|
+
});
|
|
1825
|
+
/**
|
|
1826
|
+
* Default payment method updated.
|
|
1827
|
+
*/
|
|
1828
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1829
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1830
|
+
paymentMethodId: z.string()
|
|
1831
|
+
});
|
|
1832
|
+
/**
|
|
1833
|
+
* Payment method deleted.
|
|
1834
|
+
*/
|
|
1835
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1836
|
+
/**
|
|
1837
|
+
* An array of usage records.
|
|
1838
|
+
*/
|
|
1839
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1840
|
+
/**
|
|
1841
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1842
|
+
*/
|
|
1843
|
+
export const zGetContactResponse = zBillingContact;
|
|
1844
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1845
|
+
/**
|
|
1846
|
+
* Successfully updated. Returns updated organization details.
|
|
1847
|
+
*/
|
|
1848
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1849
|
+
/**
|
|
1850
|
+
* An array of the applied promotional credits records.
|
|
1851
|
+
*/
|
|
1852
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1853
|
+
export const zRedeemCreditsBody = z.object({
|
|
1854
|
+
code: z.string().optional()
|
|
1855
|
+
});
|
|
1583
1856
|
//# sourceMappingURL=zod.gen.js.map
|