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