@cloudfleet/sdk 0.0.1-b3d7b23 → 0.0.1-b5444d4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@tanstack/react-query.gen.d.ts +410 -386
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +419 -383
- package/dist/@tanstack/react-query.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +525 -97
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +1318 -157
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +228 -216
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +328 -312
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +1102 -708
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +3205 -1376
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +1075 -313
- package/dist/zod.gen.js.map +1 -1
- package/package.json +5 -5
package/dist/zod.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
import * as z from 'zod';
|
|
3
3
|
export const zBillingContact = z.object({
|
|
4
|
+
type: z.enum(['business', 'personal']),
|
|
4
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(),
|
|
5
6
|
address1: z.string().optional(),
|
|
6
7
|
address2: z.string().optional(),
|
|
@@ -166,22 +167,7 @@ export const zChart = z.object({
|
|
|
166
167
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
167
168
|
namespace: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
168
169
|
chart: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
169
|
-
status: z.
|
|
170
|
-
'InstallSucceeded',
|
|
171
|
-
'InstallFailed',
|
|
172
|
-
'UpgradeSucceeded',
|
|
173
|
-
'UpgradeFailed',
|
|
174
|
-
'TestSucceeded',
|
|
175
|
-
'TestFailed',
|
|
176
|
-
'RollbackSucceeded',
|
|
177
|
-
'RollbackFailed',
|
|
178
|
-
'UninstallSucceeded',
|
|
179
|
-
'UninstallFailed',
|
|
180
|
-
'ArtifactFailed',
|
|
181
|
-
'DependencyNotReady',
|
|
182
|
-
'Progressing',
|
|
183
|
-
'SourceNotReady'
|
|
184
|
-
]),
|
|
170
|
+
status: z.string(),
|
|
185
171
|
version_current: z.string(),
|
|
186
172
|
created_at: z.string(),
|
|
187
173
|
updated_at: z.string(),
|
|
@@ -194,23 +180,40 @@ export const zChartUpdateInput = z.object({
|
|
|
194
180
|
export const zClusterCreateInput = z.object({
|
|
195
181
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
196
182
|
tier: z.enum(['basic', 'pro']),
|
|
197
|
-
region: z.
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
'
|
|
201
|
-
'
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
183
|
+
region: z.string(),
|
|
184
|
+
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'),
|
|
185
|
+
release_channel: z.enum([
|
|
186
|
+
'rapid',
|
|
187
|
+
'stable',
|
|
188
|
+
'extended'
|
|
189
|
+
]).optional().default('rapid'),
|
|
190
|
+
features: z.object({
|
|
191
|
+
gpu_sharing_strategy: z.enum([
|
|
192
|
+
'none',
|
|
193
|
+
'mps',
|
|
194
|
+
'time_slicing'
|
|
195
|
+
]),
|
|
196
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
|
|
197
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
198
|
+
}).optional().default({
|
|
199
|
+
gpu_sharing_strategy: 'none',
|
|
200
|
+
gpu_max_shared_clients_per_gpu: 10,
|
|
201
|
+
cilium_socket_lb_host_namespace_only: false
|
|
202
|
+
}),
|
|
203
|
+
networking: z.object({
|
|
204
|
+
pod_cidr: z.string().optional(),
|
|
205
|
+
service_cidr: z.string().optional(),
|
|
206
|
+
cluster_dns: z.string().optional(),
|
|
207
|
+
dual_stack: z.boolean().optional(),
|
|
208
|
+
pod_cidr_v6: z.string().optional(),
|
|
209
|
+
service_cidr_v6: z.string().optional()
|
|
210
|
+
}).optional()
|
|
209
211
|
});
|
|
210
212
|
export const zClusterJoinInformation = z.object({
|
|
211
213
|
certificate_authority: z.string(),
|
|
212
214
|
endpoint: z.url(),
|
|
213
215
|
cluster_dns: z.string(),
|
|
216
|
+
pod_cidr: z.string(),
|
|
214
217
|
auth_key: z.string(),
|
|
215
218
|
bootstrap_token: z.string(),
|
|
216
219
|
versions: z.object({
|
|
@@ -228,26 +231,44 @@ export const zClusterJoinInformation = z.object({
|
|
|
228
231
|
export const zCluster = z.object({
|
|
229
232
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
230
233
|
tier: z.enum(['basic', 'pro']),
|
|
231
|
-
region: z.
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
region: z.string(),
|
|
235
|
+
networking: z.object({
|
|
236
|
+
pod_cidr: z.string().optional(),
|
|
237
|
+
service_cidr: z.string().optional(),
|
|
238
|
+
cluster_dns: z.string().optional(),
|
|
239
|
+
dual_stack: z.boolean().optional(),
|
|
240
|
+
pod_cidr_v6: z.string().optional(),
|
|
241
|
+
service_cidr_v6: z.string().optional()
|
|
242
|
+
}).optional(),
|
|
243
|
+
release_channel: z.enum([
|
|
244
|
+
'rapid',
|
|
245
|
+
'stable',
|
|
246
|
+
'extended'
|
|
247
|
+
]).optional(),
|
|
248
|
+
features: z.object({
|
|
249
|
+
gpu_sharing_strategy: z.enum([
|
|
250
|
+
'none',
|
|
251
|
+
'mps',
|
|
252
|
+
'time_slicing'
|
|
253
|
+
]),
|
|
254
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
|
|
255
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
256
|
+
}).optional(),
|
|
237
257
|
id: z.uuid(),
|
|
238
258
|
status: z.enum([
|
|
239
|
-
'active',
|
|
240
|
-
'disabled',
|
|
241
|
-
'deleted',
|
|
242
259
|
'creating',
|
|
243
260
|
'deployed',
|
|
244
|
-
'
|
|
245
|
-
'
|
|
261
|
+
'updating',
|
|
262
|
+
'disabled'
|
|
246
263
|
]),
|
|
247
264
|
endpoint: z.union([
|
|
248
265
|
z.url(),
|
|
249
266
|
z.enum([''])
|
|
250
267
|
]).optional(),
|
|
268
|
+
endpoint_public: z.union([
|
|
269
|
+
z.url(),
|
|
270
|
+
z.enum([''])
|
|
271
|
+
]).optional(),
|
|
251
272
|
certificate_ca: z.string().optional(),
|
|
252
273
|
version_current: z.string().optional(),
|
|
253
274
|
created_at: z.string().optional(),
|
|
@@ -258,67 +279,783 @@ export const zCluster = z.object({
|
|
|
258
279
|
export const zClusterUpdateInput = z.object({
|
|
259
280
|
name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
|
|
260
281
|
tier: z.enum(['basic', 'pro']),
|
|
261
|
-
version_channel: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/).optional()
|
|
282
|
+
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(),
|
|
283
|
+
release_channel: z.enum([
|
|
284
|
+
'rapid',
|
|
285
|
+
'stable',
|
|
286
|
+
'extended'
|
|
287
|
+
]).optional(),
|
|
288
|
+
features: z.object({
|
|
289
|
+
gpu_sharing_strategy: z.enum([
|
|
290
|
+
'none',
|
|
291
|
+
'mps',
|
|
292
|
+
'time_slicing'
|
|
293
|
+
]),
|
|
294
|
+
gpu_max_shared_clients_per_gpu: z.int().gte(1).lte(48),
|
|
295
|
+
cilium_socket_lb_host_namespace_only: z.boolean().optional()
|
|
296
|
+
}).optional()
|
|
262
297
|
});
|
|
263
298
|
export const zFleetCreateInput = z.object({
|
|
264
299
|
limits: z.object({
|
|
265
|
-
cpu: z.
|
|
300
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
266
301
|
}).optional(),
|
|
267
302
|
gcp: z.object({
|
|
268
|
-
enabled: z.boolean()
|
|
269
|
-
project: z.string()
|
|
303
|
+
enabled: z.boolean(),
|
|
304
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
270
305
|
}).optional(),
|
|
271
306
|
hetzner: z.object({
|
|
272
|
-
enabled: z.boolean()
|
|
273
|
-
apiKey: z.string()
|
|
307
|
+
enabled: z.boolean(),
|
|
308
|
+
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
|
|
274
309
|
}).optional(),
|
|
275
310
|
aws: z.object({
|
|
276
|
-
enabled: z.boolean()
|
|
277
|
-
controllerRoleArn: z.string()
|
|
311
|
+
enabled: z.boolean(),
|
|
312
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
313
|
+
}).optional(),
|
|
314
|
+
constraints: z.object({
|
|
315
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
316
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
317
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
318
|
+
'a1',
|
|
319
|
+
'a2',
|
|
320
|
+
'a3',
|
|
321
|
+
'a4',
|
|
322
|
+
'c1',
|
|
323
|
+
'c2',
|
|
324
|
+
'c2d',
|
|
325
|
+
'c3',
|
|
326
|
+
'c3d',
|
|
327
|
+
'c4',
|
|
328
|
+
'c4a',
|
|
329
|
+
'c4d',
|
|
330
|
+
'c5',
|
|
331
|
+
'c5a',
|
|
332
|
+
'c5ad',
|
|
333
|
+
'c5d',
|
|
334
|
+
'c5n',
|
|
335
|
+
'c6a',
|
|
336
|
+
'c6g',
|
|
337
|
+
'c6gd',
|
|
338
|
+
'c6gn',
|
|
339
|
+
'c6i',
|
|
340
|
+
'c6id',
|
|
341
|
+
'c6in',
|
|
342
|
+
'c7a',
|
|
343
|
+
'c7g',
|
|
344
|
+
'c7gd',
|
|
345
|
+
'c7gn',
|
|
346
|
+
'c7i',
|
|
347
|
+
'c7i-flex',
|
|
348
|
+
'c8g',
|
|
349
|
+
'c8gd',
|
|
350
|
+
'cax',
|
|
351
|
+
'ccx',
|
|
352
|
+
'cpx',
|
|
353
|
+
'cx',
|
|
354
|
+
'd2',
|
|
355
|
+
'd3',
|
|
356
|
+
'd3en',
|
|
357
|
+
'dl1',
|
|
358
|
+
'dl2q',
|
|
359
|
+
'e2',
|
|
360
|
+
'f1',
|
|
361
|
+
'f2',
|
|
362
|
+
'g1',
|
|
363
|
+
'g2',
|
|
364
|
+
'g4ad',
|
|
365
|
+
'g4dn',
|
|
366
|
+
'g5',
|
|
367
|
+
'g5g',
|
|
368
|
+
'g6',
|
|
369
|
+
'g6e',
|
|
370
|
+
'gr6',
|
|
371
|
+
'h1',
|
|
372
|
+
'h3',
|
|
373
|
+
'hpc6a',
|
|
374
|
+
'hpc6id',
|
|
375
|
+
'hpc7a',
|
|
376
|
+
'hpc7g',
|
|
377
|
+
'i2',
|
|
378
|
+
'i3',
|
|
379
|
+
'i3en',
|
|
380
|
+
'i4g',
|
|
381
|
+
'i4i',
|
|
382
|
+
'i7i',
|
|
383
|
+
'i7ie',
|
|
384
|
+
'i8g',
|
|
385
|
+
'im4gn',
|
|
386
|
+
'inf1',
|
|
387
|
+
'inf2',
|
|
388
|
+
'is4gen',
|
|
389
|
+
'm1',
|
|
390
|
+
'm2',
|
|
391
|
+
'm3',
|
|
392
|
+
'm4',
|
|
393
|
+
'm5',
|
|
394
|
+
'm5a',
|
|
395
|
+
'm5ad',
|
|
396
|
+
'm5d',
|
|
397
|
+
'm5dn',
|
|
398
|
+
'm5n',
|
|
399
|
+
'm5zn',
|
|
400
|
+
'm6a',
|
|
401
|
+
'm6g',
|
|
402
|
+
'm6gd',
|
|
403
|
+
'm6i',
|
|
404
|
+
'm6id',
|
|
405
|
+
'm6idn',
|
|
406
|
+
'm6in',
|
|
407
|
+
'm7a',
|
|
408
|
+
'm7g',
|
|
409
|
+
'm7gd',
|
|
410
|
+
'm7i',
|
|
411
|
+
'm7i-flex',
|
|
412
|
+
'm8g',
|
|
413
|
+
'm8gd',
|
|
414
|
+
'n1',
|
|
415
|
+
'n2',
|
|
416
|
+
'n2d',
|
|
417
|
+
'n4',
|
|
418
|
+
'p3',
|
|
419
|
+
'p3dn',
|
|
420
|
+
'p4d',
|
|
421
|
+
'p4de',
|
|
422
|
+
'p5',
|
|
423
|
+
'p5e',
|
|
424
|
+
'p5en',
|
|
425
|
+
'p6-b200',
|
|
426
|
+
'r3',
|
|
427
|
+
'r4',
|
|
428
|
+
'r5',
|
|
429
|
+
'r5a',
|
|
430
|
+
'r5ad',
|
|
431
|
+
'r5b',
|
|
432
|
+
'r5d',
|
|
433
|
+
'r5dn',
|
|
434
|
+
'r5n',
|
|
435
|
+
'r6a',
|
|
436
|
+
'r6g',
|
|
437
|
+
'r6gd',
|
|
438
|
+
'r6i',
|
|
439
|
+
'r6id',
|
|
440
|
+
'r6idn',
|
|
441
|
+
'r6in',
|
|
442
|
+
'r7a',
|
|
443
|
+
'r7g',
|
|
444
|
+
'r7gd',
|
|
445
|
+
'r7i',
|
|
446
|
+
'r7iz',
|
|
447
|
+
'r8g',
|
|
448
|
+
'r8gd',
|
|
449
|
+
't2',
|
|
450
|
+
't2a',
|
|
451
|
+
't2d',
|
|
452
|
+
't3',
|
|
453
|
+
't3a',
|
|
454
|
+
't4g',
|
|
455
|
+
'trn1',
|
|
456
|
+
'trn1n',
|
|
457
|
+
'u-3tb1',
|
|
458
|
+
'u-6tb1',
|
|
459
|
+
'u7i-12tb',
|
|
460
|
+
'u7i-6tb',
|
|
461
|
+
'u7i-8tb',
|
|
462
|
+
'u7in-16tb',
|
|
463
|
+
'u7in-24tb',
|
|
464
|
+
'u7in-32tb',
|
|
465
|
+
'vt1',
|
|
466
|
+
'x1',
|
|
467
|
+
'x1e',
|
|
468
|
+
'x2gd',
|
|
469
|
+
'x2idn',
|
|
470
|
+
'x2iedn',
|
|
471
|
+
'x2iezn',
|
|
472
|
+
'x4',
|
|
473
|
+
'x8g',
|
|
474
|
+
'z1d',
|
|
475
|
+
'z3'
|
|
476
|
+
])).optional(),
|
|
477
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
478
|
+
'africa-south1',
|
|
479
|
+
'ap-northeast-1',
|
|
480
|
+
'ap-northeast-2',
|
|
481
|
+
'ap-northeast-3',
|
|
482
|
+
'ap-south-1',
|
|
483
|
+
'ap-southeast-1',
|
|
484
|
+
'ap-southeast-2',
|
|
485
|
+
'ash',
|
|
486
|
+
'asia-east1',
|
|
487
|
+
'asia-east2',
|
|
488
|
+
'asia-northeast1',
|
|
489
|
+
'asia-northeast2',
|
|
490
|
+
'asia-northeast3',
|
|
491
|
+
'asia-south1',
|
|
492
|
+
'asia-south2',
|
|
493
|
+
'asia-southeast1',
|
|
494
|
+
'asia-southeast2',
|
|
495
|
+
'australia-southeast1',
|
|
496
|
+
'australia-southeast2',
|
|
497
|
+
'ca-central-1',
|
|
498
|
+
'eu-central-1',
|
|
499
|
+
'eu-central-2',
|
|
500
|
+
'eu-north-1',
|
|
501
|
+
'eu-west-1',
|
|
502
|
+
'eu-west-2',
|
|
503
|
+
'eu-west-3',
|
|
504
|
+
'europe-central2',
|
|
505
|
+
'europe-north1',
|
|
506
|
+
'europe-southwest1',
|
|
507
|
+
'europe-west1',
|
|
508
|
+
'europe-west10',
|
|
509
|
+
'europe-west12',
|
|
510
|
+
'europe-west2',
|
|
511
|
+
'europe-west3',
|
|
512
|
+
'europe-west4',
|
|
513
|
+
'europe-west6',
|
|
514
|
+
'europe-west8',
|
|
515
|
+
'europe-west9',
|
|
516
|
+
'fsn1',
|
|
517
|
+
'hel1',
|
|
518
|
+
'hil',
|
|
519
|
+
'me-central1',
|
|
520
|
+
'me-central2',
|
|
521
|
+
'me-west1',
|
|
522
|
+
'nbg1',
|
|
523
|
+
'northamerica-northeast1',
|
|
524
|
+
'northamerica-northeast2',
|
|
525
|
+
'sa-east-1',
|
|
526
|
+
'sin',
|
|
527
|
+
'southamerica-east1',
|
|
528
|
+
'southamerica-west1',
|
|
529
|
+
'us-central1',
|
|
530
|
+
'us-east-1',
|
|
531
|
+
'us-east-2',
|
|
532
|
+
'us-east1',
|
|
533
|
+
'us-east4',
|
|
534
|
+
'us-east5',
|
|
535
|
+
'us-south1',
|
|
536
|
+
'us-west-1',
|
|
537
|
+
'us-west-2',
|
|
538
|
+
'us-west1',
|
|
539
|
+
'us-west2',
|
|
540
|
+
'us-west3',
|
|
541
|
+
'us-west4'
|
|
542
|
+
])).optional()
|
|
278
543
|
}).optional(),
|
|
544
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
|
|
279
545
|
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
|
|
280
546
|
});
|
|
281
547
|
export const zFleet = z.object({
|
|
282
548
|
limits: z.object({
|
|
283
|
-
cpu: z.
|
|
549
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
284
550
|
}).optional(),
|
|
285
551
|
gcp: z.object({
|
|
286
|
-
enabled: z.boolean()
|
|
287
|
-
project: z.string()
|
|
552
|
+
enabled: z.boolean(),
|
|
553
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
288
554
|
}).optional(),
|
|
289
555
|
hetzner: z.object({
|
|
290
|
-
enabled: z.boolean()
|
|
291
|
-
apiKey: z.string()
|
|
556
|
+
enabled: z.boolean(),
|
|
557
|
+
apiKey: z.string().regex(/^\*{64}$/).optional()
|
|
292
558
|
}).optional(),
|
|
293
559
|
aws: z.object({
|
|
294
|
-
enabled: z.boolean()
|
|
295
|
-
controllerRoleArn: z.string()
|
|
560
|
+
enabled: z.boolean(),
|
|
561
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
296
562
|
}).optional(),
|
|
297
|
-
|
|
563
|
+
constraints: z.object({
|
|
564
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
|
|
565
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
|
|
566
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
567
|
+
'a1',
|
|
568
|
+
'a2',
|
|
569
|
+
'a3',
|
|
570
|
+
'a4',
|
|
571
|
+
'c1',
|
|
572
|
+
'c2',
|
|
573
|
+
'c2d',
|
|
574
|
+
'c3',
|
|
575
|
+
'c3d',
|
|
576
|
+
'c4',
|
|
577
|
+
'c4a',
|
|
578
|
+
'c4d',
|
|
579
|
+
'c5',
|
|
580
|
+
'c5a',
|
|
581
|
+
'c5ad',
|
|
582
|
+
'c5d',
|
|
583
|
+
'c5n',
|
|
584
|
+
'c6a',
|
|
585
|
+
'c6g',
|
|
586
|
+
'c6gd',
|
|
587
|
+
'c6gn',
|
|
588
|
+
'c6i',
|
|
589
|
+
'c6id',
|
|
590
|
+
'c6in',
|
|
591
|
+
'c7a',
|
|
592
|
+
'c7g',
|
|
593
|
+
'c7gd',
|
|
594
|
+
'c7gn',
|
|
595
|
+
'c7i',
|
|
596
|
+
'c7i-flex',
|
|
597
|
+
'c8g',
|
|
598
|
+
'c8gd',
|
|
599
|
+
'cax',
|
|
600
|
+
'ccx',
|
|
601
|
+
'cpx',
|
|
602
|
+
'cx',
|
|
603
|
+
'd2',
|
|
604
|
+
'd3',
|
|
605
|
+
'd3en',
|
|
606
|
+
'dl1',
|
|
607
|
+
'dl2q',
|
|
608
|
+
'e2',
|
|
609
|
+
'f1',
|
|
610
|
+
'f2',
|
|
611
|
+
'g1',
|
|
612
|
+
'g2',
|
|
613
|
+
'g4ad',
|
|
614
|
+
'g4dn',
|
|
615
|
+
'g5',
|
|
616
|
+
'g5g',
|
|
617
|
+
'g6',
|
|
618
|
+
'g6e',
|
|
619
|
+
'gr6',
|
|
620
|
+
'h1',
|
|
621
|
+
'h3',
|
|
622
|
+
'hpc6a',
|
|
623
|
+
'hpc6id',
|
|
624
|
+
'hpc7a',
|
|
625
|
+
'hpc7g',
|
|
626
|
+
'i2',
|
|
627
|
+
'i3',
|
|
628
|
+
'i3en',
|
|
629
|
+
'i4g',
|
|
630
|
+
'i4i',
|
|
631
|
+
'i7i',
|
|
632
|
+
'i7ie',
|
|
633
|
+
'i8g',
|
|
634
|
+
'im4gn',
|
|
635
|
+
'inf1',
|
|
636
|
+
'inf2',
|
|
637
|
+
'is4gen',
|
|
638
|
+
'm1',
|
|
639
|
+
'm2',
|
|
640
|
+
'm3',
|
|
641
|
+
'm4',
|
|
642
|
+
'm5',
|
|
643
|
+
'm5a',
|
|
644
|
+
'm5ad',
|
|
645
|
+
'm5d',
|
|
646
|
+
'm5dn',
|
|
647
|
+
'm5n',
|
|
648
|
+
'm5zn',
|
|
649
|
+
'm6a',
|
|
650
|
+
'm6g',
|
|
651
|
+
'm6gd',
|
|
652
|
+
'm6i',
|
|
653
|
+
'm6id',
|
|
654
|
+
'm6idn',
|
|
655
|
+
'm6in',
|
|
656
|
+
'm7a',
|
|
657
|
+
'm7g',
|
|
658
|
+
'm7gd',
|
|
659
|
+
'm7i',
|
|
660
|
+
'm7i-flex',
|
|
661
|
+
'm8g',
|
|
662
|
+
'm8gd',
|
|
663
|
+
'n1',
|
|
664
|
+
'n2',
|
|
665
|
+
'n2d',
|
|
666
|
+
'n4',
|
|
667
|
+
'p3',
|
|
668
|
+
'p3dn',
|
|
669
|
+
'p4d',
|
|
670
|
+
'p4de',
|
|
671
|
+
'p5',
|
|
672
|
+
'p5e',
|
|
673
|
+
'p5en',
|
|
674
|
+
'p6-b200',
|
|
675
|
+
'r3',
|
|
676
|
+
'r4',
|
|
677
|
+
'r5',
|
|
678
|
+
'r5a',
|
|
679
|
+
'r5ad',
|
|
680
|
+
'r5b',
|
|
681
|
+
'r5d',
|
|
682
|
+
'r5dn',
|
|
683
|
+
'r5n',
|
|
684
|
+
'r6a',
|
|
685
|
+
'r6g',
|
|
686
|
+
'r6gd',
|
|
687
|
+
'r6i',
|
|
688
|
+
'r6id',
|
|
689
|
+
'r6idn',
|
|
690
|
+
'r6in',
|
|
691
|
+
'r7a',
|
|
692
|
+
'r7g',
|
|
693
|
+
'r7gd',
|
|
694
|
+
'r7i',
|
|
695
|
+
'r7iz',
|
|
696
|
+
'r8g',
|
|
697
|
+
'r8gd',
|
|
698
|
+
't2',
|
|
699
|
+
't2a',
|
|
700
|
+
't2d',
|
|
701
|
+
't3',
|
|
702
|
+
't3a',
|
|
703
|
+
't4g',
|
|
704
|
+
'trn1',
|
|
705
|
+
'trn1n',
|
|
706
|
+
'u-3tb1',
|
|
707
|
+
'u-6tb1',
|
|
708
|
+
'u7i-12tb',
|
|
709
|
+
'u7i-6tb',
|
|
710
|
+
'u7i-8tb',
|
|
711
|
+
'u7in-16tb',
|
|
712
|
+
'u7in-24tb',
|
|
713
|
+
'u7in-32tb',
|
|
714
|
+
'vt1',
|
|
715
|
+
'x1',
|
|
716
|
+
'x1e',
|
|
717
|
+
'x2gd',
|
|
718
|
+
'x2idn',
|
|
719
|
+
'x2iedn',
|
|
720
|
+
'x2iezn',
|
|
721
|
+
'x4',
|
|
722
|
+
'x8g',
|
|
723
|
+
'z1d',
|
|
724
|
+
'z3'
|
|
725
|
+
])).optional(),
|
|
726
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
727
|
+
'africa-south1',
|
|
728
|
+
'ap-northeast-1',
|
|
729
|
+
'ap-northeast-2',
|
|
730
|
+
'ap-northeast-3',
|
|
731
|
+
'ap-south-1',
|
|
732
|
+
'ap-southeast-1',
|
|
733
|
+
'ap-southeast-2',
|
|
734
|
+
'ash',
|
|
735
|
+
'asia-east1',
|
|
736
|
+
'asia-east2',
|
|
737
|
+
'asia-northeast1',
|
|
738
|
+
'asia-northeast2',
|
|
739
|
+
'asia-northeast3',
|
|
740
|
+
'asia-south1',
|
|
741
|
+
'asia-south2',
|
|
742
|
+
'asia-southeast1',
|
|
743
|
+
'asia-southeast2',
|
|
744
|
+
'australia-southeast1',
|
|
745
|
+
'australia-southeast2',
|
|
746
|
+
'ca-central-1',
|
|
747
|
+
'eu-central-1',
|
|
748
|
+
'eu-central-2',
|
|
749
|
+
'eu-north-1',
|
|
750
|
+
'eu-west-1',
|
|
751
|
+
'eu-west-2',
|
|
752
|
+
'eu-west-3',
|
|
753
|
+
'europe-central2',
|
|
754
|
+
'europe-north1',
|
|
755
|
+
'europe-southwest1',
|
|
756
|
+
'europe-west1',
|
|
757
|
+
'europe-west10',
|
|
758
|
+
'europe-west12',
|
|
759
|
+
'europe-west2',
|
|
760
|
+
'europe-west3',
|
|
761
|
+
'europe-west4',
|
|
762
|
+
'europe-west6',
|
|
763
|
+
'europe-west8',
|
|
764
|
+
'europe-west9',
|
|
765
|
+
'fsn1',
|
|
766
|
+
'hel1',
|
|
767
|
+
'hil',
|
|
768
|
+
'me-central1',
|
|
769
|
+
'me-central2',
|
|
770
|
+
'me-west1',
|
|
771
|
+
'nbg1',
|
|
772
|
+
'northamerica-northeast1',
|
|
773
|
+
'northamerica-northeast2',
|
|
774
|
+
'sa-east-1',
|
|
775
|
+
'sin',
|
|
776
|
+
'southamerica-east1',
|
|
777
|
+
'southamerica-west1',
|
|
778
|
+
'us-central1',
|
|
779
|
+
'us-east-1',
|
|
780
|
+
'us-east-2',
|
|
781
|
+
'us-east1',
|
|
782
|
+
'us-east4',
|
|
783
|
+
'us-east5',
|
|
784
|
+
'us-south1',
|
|
785
|
+
'us-west-1',
|
|
786
|
+
'us-west-2',
|
|
787
|
+
'us-west1',
|
|
788
|
+
'us-west2',
|
|
789
|
+
'us-west3',
|
|
790
|
+
'us-west4'
|
|
791
|
+
])).optional()
|
|
792
|
+
}).optional(),
|
|
793
|
+
scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
|
|
794
|
+
id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
|
|
795
|
+
ready: z.boolean(),
|
|
796
|
+
status_message: z.string().optional(),
|
|
797
|
+
created_at: z.string(),
|
|
798
|
+
updated_at: z.string()
|
|
298
799
|
});
|
|
299
800
|
export const zFleetUpdateInput = z.object({
|
|
300
801
|
limits: z.object({
|
|
301
|
-
cpu: z.
|
|
802
|
+
cpu: z.int().gte(0).lte(100000).optional()
|
|
302
803
|
}).optional(),
|
|
303
804
|
gcp: z.object({
|
|
304
|
-
enabled: z.boolean()
|
|
305
|
-
project: z.string()
|
|
805
|
+
enabled: z.boolean(),
|
|
806
|
+
project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
|
|
306
807
|
}).optional(),
|
|
307
808
|
hetzner: z.object({
|
|
308
|
-
enabled: z.boolean()
|
|
309
|
-
apiKey: z.string()
|
|
809
|
+
enabled: z.boolean(),
|
|
810
|
+
apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
|
|
310
811
|
}).optional(),
|
|
311
812
|
aws: z.object({
|
|
312
|
-
enabled: z.boolean()
|
|
313
|
-
controllerRoleArn: z.string()
|
|
314
|
-
}).optional()
|
|
813
|
+
enabled: z.boolean(),
|
|
814
|
+
controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
|
|
815
|
+
}).optional(),
|
|
816
|
+
constraints: z.object({
|
|
817
|
+
'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
|
|
818
|
+
'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
|
|
819
|
+
'cfke.io/instance-family': z.array(z.enum([
|
|
820
|
+
'a1',
|
|
821
|
+
'a2',
|
|
822
|
+
'a3',
|
|
823
|
+
'a4',
|
|
824
|
+
'c1',
|
|
825
|
+
'c2',
|
|
826
|
+
'c2d',
|
|
827
|
+
'c3',
|
|
828
|
+
'c3d',
|
|
829
|
+
'c4',
|
|
830
|
+
'c4a',
|
|
831
|
+
'c4d',
|
|
832
|
+
'c5',
|
|
833
|
+
'c5a',
|
|
834
|
+
'c5ad',
|
|
835
|
+
'c5d',
|
|
836
|
+
'c5n',
|
|
837
|
+
'c6a',
|
|
838
|
+
'c6g',
|
|
839
|
+
'c6gd',
|
|
840
|
+
'c6gn',
|
|
841
|
+
'c6i',
|
|
842
|
+
'c6id',
|
|
843
|
+
'c6in',
|
|
844
|
+
'c7a',
|
|
845
|
+
'c7g',
|
|
846
|
+
'c7gd',
|
|
847
|
+
'c7gn',
|
|
848
|
+
'c7i',
|
|
849
|
+
'c7i-flex',
|
|
850
|
+
'c8g',
|
|
851
|
+
'c8gd',
|
|
852
|
+
'cax',
|
|
853
|
+
'ccx',
|
|
854
|
+
'cpx',
|
|
855
|
+
'cx',
|
|
856
|
+
'd2',
|
|
857
|
+
'd3',
|
|
858
|
+
'd3en',
|
|
859
|
+
'dl1',
|
|
860
|
+
'dl2q',
|
|
861
|
+
'e2',
|
|
862
|
+
'f1',
|
|
863
|
+
'f2',
|
|
864
|
+
'g1',
|
|
865
|
+
'g2',
|
|
866
|
+
'g4ad',
|
|
867
|
+
'g4dn',
|
|
868
|
+
'g5',
|
|
869
|
+
'g5g',
|
|
870
|
+
'g6',
|
|
871
|
+
'g6e',
|
|
872
|
+
'gr6',
|
|
873
|
+
'h1',
|
|
874
|
+
'h3',
|
|
875
|
+
'hpc6a',
|
|
876
|
+
'hpc6id',
|
|
877
|
+
'hpc7a',
|
|
878
|
+
'hpc7g',
|
|
879
|
+
'i2',
|
|
880
|
+
'i3',
|
|
881
|
+
'i3en',
|
|
882
|
+
'i4g',
|
|
883
|
+
'i4i',
|
|
884
|
+
'i7i',
|
|
885
|
+
'i7ie',
|
|
886
|
+
'i8g',
|
|
887
|
+
'im4gn',
|
|
888
|
+
'inf1',
|
|
889
|
+
'inf2',
|
|
890
|
+
'is4gen',
|
|
891
|
+
'm1',
|
|
892
|
+
'm2',
|
|
893
|
+
'm3',
|
|
894
|
+
'm4',
|
|
895
|
+
'm5',
|
|
896
|
+
'm5a',
|
|
897
|
+
'm5ad',
|
|
898
|
+
'm5d',
|
|
899
|
+
'm5dn',
|
|
900
|
+
'm5n',
|
|
901
|
+
'm5zn',
|
|
902
|
+
'm6a',
|
|
903
|
+
'm6g',
|
|
904
|
+
'm6gd',
|
|
905
|
+
'm6i',
|
|
906
|
+
'm6id',
|
|
907
|
+
'm6idn',
|
|
908
|
+
'm6in',
|
|
909
|
+
'm7a',
|
|
910
|
+
'm7g',
|
|
911
|
+
'm7gd',
|
|
912
|
+
'm7i',
|
|
913
|
+
'm7i-flex',
|
|
914
|
+
'm8g',
|
|
915
|
+
'm8gd',
|
|
916
|
+
'n1',
|
|
917
|
+
'n2',
|
|
918
|
+
'n2d',
|
|
919
|
+
'n4',
|
|
920
|
+
'p3',
|
|
921
|
+
'p3dn',
|
|
922
|
+
'p4d',
|
|
923
|
+
'p4de',
|
|
924
|
+
'p5',
|
|
925
|
+
'p5e',
|
|
926
|
+
'p5en',
|
|
927
|
+
'p6-b200',
|
|
928
|
+
'r3',
|
|
929
|
+
'r4',
|
|
930
|
+
'r5',
|
|
931
|
+
'r5a',
|
|
932
|
+
'r5ad',
|
|
933
|
+
'r5b',
|
|
934
|
+
'r5d',
|
|
935
|
+
'r5dn',
|
|
936
|
+
'r5n',
|
|
937
|
+
'r6a',
|
|
938
|
+
'r6g',
|
|
939
|
+
'r6gd',
|
|
940
|
+
'r6i',
|
|
941
|
+
'r6id',
|
|
942
|
+
'r6idn',
|
|
943
|
+
'r6in',
|
|
944
|
+
'r7a',
|
|
945
|
+
'r7g',
|
|
946
|
+
'r7gd',
|
|
947
|
+
'r7i',
|
|
948
|
+
'r7iz',
|
|
949
|
+
'r8g',
|
|
950
|
+
'r8gd',
|
|
951
|
+
't2',
|
|
952
|
+
't2a',
|
|
953
|
+
't2d',
|
|
954
|
+
't3',
|
|
955
|
+
't3a',
|
|
956
|
+
't4g',
|
|
957
|
+
'trn1',
|
|
958
|
+
'trn1n',
|
|
959
|
+
'u-3tb1',
|
|
960
|
+
'u-6tb1',
|
|
961
|
+
'u7i-12tb',
|
|
962
|
+
'u7i-6tb',
|
|
963
|
+
'u7i-8tb',
|
|
964
|
+
'u7in-16tb',
|
|
965
|
+
'u7in-24tb',
|
|
966
|
+
'u7in-32tb',
|
|
967
|
+
'vt1',
|
|
968
|
+
'x1',
|
|
969
|
+
'x1e',
|
|
970
|
+
'x2gd',
|
|
971
|
+
'x2idn',
|
|
972
|
+
'x2iedn',
|
|
973
|
+
'x2iezn',
|
|
974
|
+
'x4',
|
|
975
|
+
'x8g',
|
|
976
|
+
'z1d',
|
|
977
|
+
'z3'
|
|
978
|
+
])).optional(),
|
|
979
|
+
'topology.kubernetes.io/region': z.array(z.enum([
|
|
980
|
+
'africa-south1',
|
|
981
|
+
'ap-northeast-1',
|
|
982
|
+
'ap-northeast-2',
|
|
983
|
+
'ap-northeast-3',
|
|
984
|
+
'ap-south-1',
|
|
985
|
+
'ap-southeast-1',
|
|
986
|
+
'ap-southeast-2',
|
|
987
|
+
'ash',
|
|
988
|
+
'asia-east1',
|
|
989
|
+
'asia-east2',
|
|
990
|
+
'asia-northeast1',
|
|
991
|
+
'asia-northeast2',
|
|
992
|
+
'asia-northeast3',
|
|
993
|
+
'asia-south1',
|
|
994
|
+
'asia-south2',
|
|
995
|
+
'asia-southeast1',
|
|
996
|
+
'asia-southeast2',
|
|
997
|
+
'australia-southeast1',
|
|
998
|
+
'australia-southeast2',
|
|
999
|
+
'ca-central-1',
|
|
1000
|
+
'eu-central-1',
|
|
1001
|
+
'eu-central-2',
|
|
1002
|
+
'eu-north-1',
|
|
1003
|
+
'eu-west-1',
|
|
1004
|
+
'eu-west-2',
|
|
1005
|
+
'eu-west-3',
|
|
1006
|
+
'europe-central2',
|
|
1007
|
+
'europe-north1',
|
|
1008
|
+
'europe-southwest1',
|
|
1009
|
+
'europe-west1',
|
|
1010
|
+
'europe-west10',
|
|
1011
|
+
'europe-west12',
|
|
1012
|
+
'europe-west2',
|
|
1013
|
+
'europe-west3',
|
|
1014
|
+
'europe-west4',
|
|
1015
|
+
'europe-west6',
|
|
1016
|
+
'europe-west8',
|
|
1017
|
+
'europe-west9',
|
|
1018
|
+
'fsn1',
|
|
1019
|
+
'hel1',
|
|
1020
|
+
'hil',
|
|
1021
|
+
'me-central1',
|
|
1022
|
+
'me-central2',
|
|
1023
|
+
'me-west1',
|
|
1024
|
+
'nbg1',
|
|
1025
|
+
'northamerica-northeast1',
|
|
1026
|
+
'northamerica-northeast2',
|
|
1027
|
+
'sa-east-1',
|
|
1028
|
+
'sin',
|
|
1029
|
+
'southamerica-east1',
|
|
1030
|
+
'southamerica-west1',
|
|
1031
|
+
'us-central1',
|
|
1032
|
+
'us-east-1',
|
|
1033
|
+
'us-east-2',
|
|
1034
|
+
'us-east1',
|
|
1035
|
+
'us-east4',
|
|
1036
|
+
'us-east5',
|
|
1037
|
+
'us-south1',
|
|
1038
|
+
'us-west-1',
|
|
1039
|
+
'us-west-2',
|
|
1040
|
+
'us-west1',
|
|
1041
|
+
'us-west2',
|
|
1042
|
+
'us-west3',
|
|
1043
|
+
'us-west4'
|
|
1044
|
+
])).optional()
|
|
1045
|
+
}).optional(),
|
|
1046
|
+
scalingProfile: z.enum(['aggressive', 'conservative'])
|
|
1047
|
+
});
|
|
1048
|
+
export const zInviteCreateInput = z.object({
|
|
1049
|
+
email: z.email(),
|
|
1050
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
315
1051
|
});
|
|
316
1052
|
export const zInvite = z.object({
|
|
317
1053
|
id: z.string().optional(),
|
|
318
1054
|
organization_id: z.uuid().optional(),
|
|
319
1055
|
date_created: z.iso.datetime(),
|
|
320
1056
|
email: z.email().optional(),
|
|
321
|
-
code: z.string().optional()
|
|
1057
|
+
code: z.string().optional(),
|
|
1058
|
+
role: z.enum(['Administrator', 'User']).optional().default('User')
|
|
322
1059
|
});
|
|
323
1060
|
export const zInvoice = z.object({
|
|
324
1061
|
id: z.string().optional(),
|
|
@@ -358,15 +1095,20 @@ export const zMarketplaceListing = z.object({
|
|
|
358
1095
|
}).optional()
|
|
359
1096
|
});
|
|
360
1097
|
export const zOrganizationCreateInput = z.object({
|
|
1098
|
+
type: z.enum(['business', 'personal']),
|
|
361
1099
|
email: z.email(),
|
|
362
|
-
first_name: z.string(),
|
|
363
|
-
last_name: z.string(),
|
|
1100
|
+
first_name: z.string().min(1),
|
|
1101
|
+
last_name: z.string().min(1),
|
|
364
1102
|
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,}$/),
|
|
365
1103
|
password: z.string().min(8)
|
|
366
1104
|
});
|
|
1105
|
+
export const zOrganizationCreateOutput = z.object({
|
|
1106
|
+
id: z.string()
|
|
1107
|
+
});
|
|
367
1108
|
export const zOrganization = z.object({
|
|
368
1109
|
id: z.uuid(),
|
|
369
1110
|
name: z.string().min(2).max(120).optional(),
|
|
1111
|
+
type: z.enum(['business', 'personal']),
|
|
370
1112
|
date_created: z.iso.datetime(),
|
|
371
1113
|
quota: z.object({
|
|
372
1114
|
basic_clusters_max: z.int().gte(0),
|
|
@@ -386,26 +1128,28 @@ export const zOrganization = z.object({
|
|
|
386
1128
|
'active',
|
|
387
1129
|
'closed',
|
|
388
1130
|
'suspended'
|
|
1131
|
+
]),
|
|
1132
|
+
verification: z.enum([
|
|
1133
|
+
'none',
|
|
1134
|
+
'submitted',
|
|
1135
|
+
'verified'
|
|
389
1136
|
])
|
|
390
1137
|
});
|
|
391
1138
|
export const zPaymentMethod = z.object({
|
|
392
|
-
id: z.
|
|
393
|
-
|
|
394
|
-
|
|
1139
|
+
id: z.string(),
|
|
1140
|
+
type: z.enum([
|
|
1141
|
+
'card',
|
|
1142
|
+
'sepa_debit',
|
|
1143
|
+
'bank_transfer'
|
|
1144
|
+
]),
|
|
395
1145
|
last4: z.string(),
|
|
396
1146
|
exp_month: z.int().gte(1).lte(12),
|
|
397
|
-
exp_year: z.int()
|
|
398
|
-
brand: z.
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
'jcb',
|
|
404
|
-
'mastercard',
|
|
405
|
-
'unionpay',
|
|
406
|
-
'visa',
|
|
407
|
-
'unknown'
|
|
408
|
-
])
|
|
1147
|
+
exp_year: z.int(),
|
|
1148
|
+
brand: z.string(),
|
|
1149
|
+
iban: z.string(),
|
|
1150
|
+
bic: z.string(),
|
|
1151
|
+
account_holder_name: z.string(),
|
|
1152
|
+
is_default: z.boolean()
|
|
409
1153
|
});
|
|
410
1154
|
export const zPlatformQuota = z.object({
|
|
411
1155
|
basic_clusters_max: z.int().gte(0),
|
|
@@ -609,9 +1353,7 @@ export const zUserCreateInput = z.object({
|
|
|
609
1353
|
first_name: z.string().min(1).max(50),
|
|
610
1354
|
last_name: z.string().min(1).max(50),
|
|
611
1355
|
code: z.string(),
|
|
612
|
-
password: z.string().min(8)
|
|
613
|
-
status: z.enum(['active', 'inactive']).optional(),
|
|
614
|
-
role: z.enum(['Administrator', 'User']).optional()
|
|
1356
|
+
password: z.string().min(8)
|
|
615
1357
|
});
|
|
616
1358
|
export const zUser = z.object({
|
|
617
1359
|
email: z.email(),
|
|
@@ -629,202 +1371,162 @@ export const zUserUpdateInput = z.object({
|
|
|
629
1371
|
role: z.enum(['Administrator', 'User']).optional(),
|
|
630
1372
|
status: z.enum(['active', 'inactive']).optional()
|
|
631
1373
|
});
|
|
632
|
-
export const
|
|
633
|
-
|
|
634
|
-
'hourly',
|
|
635
|
-
'daily',
|
|
636
|
-
'monthly'
|
|
637
|
-
]).optional().default('daily')
|
|
1374
|
+
export const zListUserOrganizationsPath = z.object({
|
|
1375
|
+
email: z.string()
|
|
638
1376
|
});
|
|
639
1377
|
/**
|
|
640
|
-
*
|
|
1378
|
+
* An array of organizations the user belongs to.
|
|
641
1379
|
*/
|
|
642
|
-
export const
|
|
1380
|
+
export const zListUserOrganizationsResponse = z.array(z.object({
|
|
1381
|
+
realm: z.string().optional(),
|
|
1382
|
+
displayName: z.string().optional()
|
|
1383
|
+
}));
|
|
643
1384
|
/**
|
|
644
|
-
*
|
|
1385
|
+
* An array of users
|
|
645
1386
|
*/
|
|
646
|
-
export const
|
|
1387
|
+
export const zListUsersResponse = z.array(zUser);
|
|
1388
|
+
export const zCreateUserBody = zUserCreateInput;
|
|
647
1389
|
/**
|
|
648
|
-
*
|
|
649
|
-
*
|
|
1390
|
+
* Successfully created. Returns created user details.
|
|
650
1391
|
*/
|
|
651
|
-
export const
|
|
652
|
-
|
|
1392
|
+
export const zCreateUserResponse = zUser;
|
|
1393
|
+
export const zDeleteUserPath = z.object({
|
|
1394
|
+
user_id: z.string()
|
|
653
1395
|
});
|
|
654
1396
|
/**
|
|
655
|
-
*
|
|
656
|
-
*/
|
|
657
|
-
export const zListInvoicesResponse = z.array(zInvoice);
|
|
658
|
-
/**
|
|
659
|
-
* Returns a single object containing organization contact and billing address details.
|
|
660
|
-
*/
|
|
661
|
-
export const zGetContactResponse = zBillingContact;
|
|
662
|
-
export const zUpdateContactBody = zBillingContact;
|
|
663
|
-
/**
|
|
664
|
-
* Successfully updated. Returns updated organization details.
|
|
665
|
-
*/
|
|
666
|
-
export const zUpdateContactResponse = zBillingContact;
|
|
667
|
-
/**
|
|
668
|
-
* An array of the applied promotional credits records.
|
|
1397
|
+
* User profile information
|
|
669
1398
|
*/
|
|
670
|
-
export const
|
|
671
|
-
export const
|
|
672
|
-
|
|
673
|
-
});
|
|
674
|
-
export const zListChartsPath = z.object({
|
|
675
|
-
cluster_id: z.string()
|
|
1399
|
+
export const zDeleteUserResponse = zUser;
|
|
1400
|
+
export const zGetUserPath = z.object({
|
|
1401
|
+
user_id: z.string()
|
|
676
1402
|
});
|
|
677
1403
|
/**
|
|
678
|
-
*
|
|
1404
|
+
* User profile information
|
|
679
1405
|
*/
|
|
680
|
-
export const
|
|
681
|
-
export const
|
|
682
|
-
export const
|
|
683
|
-
|
|
1406
|
+
export const zGetUserResponse = zUser;
|
|
1407
|
+
export const zUpdateUserBody = zUserUpdateInput;
|
|
1408
|
+
export const zUpdateUserPath = z.object({
|
|
1409
|
+
user_id: z.string()
|
|
684
1410
|
});
|
|
685
1411
|
/**
|
|
686
|
-
* Successfully created. Returns created
|
|
1412
|
+
* Successfully created. Returns created user details.
|
|
687
1413
|
*/
|
|
688
|
-
export const
|
|
689
|
-
export const zDeleteChartPath = z.object({
|
|
690
|
-
cluster_id: z.string(),
|
|
691
|
-
chart_name: z.string()
|
|
692
|
-
});
|
|
1414
|
+
export const zUpdateUserResponse = zUser;
|
|
693
1415
|
/**
|
|
694
|
-
*
|
|
1416
|
+
* Returns a list of access token details with masked secrets.
|
|
695
1417
|
*/
|
|
696
|
-
export const
|
|
697
|
-
export const
|
|
698
|
-
cluster_id: z.string(),
|
|
699
|
-
chart_name: z.string()
|
|
700
|
-
});
|
|
1418
|
+
export const zListTokensResponse = z.array(zToken);
|
|
1419
|
+
export const zCreateTokenBody = zTokenCreateInput;
|
|
701
1420
|
/**
|
|
702
|
-
* Returns
|
|
1421
|
+
* Successfully created. Returns created token details with unmasked/raw secret.
|
|
703
1422
|
*/
|
|
704
|
-
export const
|
|
705
|
-
export const
|
|
706
|
-
|
|
707
|
-
cluster_id: z.string(),
|
|
708
|
-
chart_name: z.string()
|
|
1423
|
+
export const zCreateTokenResponse = zToken;
|
|
1424
|
+
export const zDeleteTokenPath = z.object({
|
|
1425
|
+
token_id: z.string()
|
|
709
1426
|
});
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
*/
|
|
713
|
-
export const zUpdateChartResponse = z.string();
|
|
714
|
-
export const zListFleetsPath = z.object({
|
|
715
|
-
cluster_id: z.string()
|
|
1427
|
+
export const zGetTokenPath = z.object({
|
|
1428
|
+
token_id: z.string()
|
|
716
1429
|
});
|
|
717
1430
|
/**
|
|
718
|
-
*
|
|
1431
|
+
* Returns access token details with masked secret.
|
|
719
1432
|
*/
|
|
720
|
-
export const
|
|
721
|
-
export const
|
|
722
|
-
export const
|
|
723
|
-
|
|
1433
|
+
export const zGetTokenResponse = zToken;
|
|
1434
|
+
export const zUpdateTokenBody = zTokenUpdateInput;
|
|
1435
|
+
export const zUpdateTokenPath = z.object({
|
|
1436
|
+
token_id: z.string()
|
|
724
1437
|
});
|
|
725
1438
|
/**
|
|
726
|
-
* Successfully
|
|
1439
|
+
* Successfully updated. Returns updated token details with masked secret.
|
|
727
1440
|
*/
|
|
728
|
-
export const
|
|
729
|
-
export const
|
|
730
|
-
|
|
731
|
-
fleet_name: z.string()
|
|
1441
|
+
export const zUpdateTokenResponse = zToken;
|
|
1442
|
+
export const zRegenerateTokenPath = z.object({
|
|
1443
|
+
token_id: z.string()
|
|
732
1444
|
});
|
|
733
1445
|
/**
|
|
734
|
-
* Successfully
|
|
1446
|
+
* Successfully updated. Returns updated token details with unmasked / raw secret.
|
|
735
1447
|
*/
|
|
736
|
-
export const
|
|
737
|
-
export const zGetFleetPath = z.object({
|
|
738
|
-
cluster_id: z.string(),
|
|
739
|
-
fleet_name: z.string()
|
|
740
|
-
});
|
|
1448
|
+
export const zRegenerateTokenResponse = zToken;
|
|
741
1449
|
/**
|
|
742
|
-
*
|
|
1450
|
+
* Tickets for the organization.
|
|
743
1451
|
*/
|
|
744
|
-
export const
|
|
745
|
-
export const
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
fleet_name: z.string()
|
|
1452
|
+
export const zListTicketsResponse = zTicketListResponse;
|
|
1453
|
+
export const zCreateTicketBody = z.object({
|
|
1454
|
+
payload: z.string().optional(),
|
|
1455
|
+
attachments: z.array(z.string()).optional()
|
|
749
1456
|
});
|
|
750
1457
|
/**
|
|
751
|
-
*
|
|
1458
|
+
* Ticket created.
|
|
752
1459
|
*/
|
|
753
|
-
export const
|
|
754
|
-
export const
|
|
755
|
-
|
|
1460
|
+
export const zCreateTicketResponse = zTicket;
|
|
1461
|
+
export const zCloseTicketPath = z.object({
|
|
1462
|
+
ticket_id: z.string()
|
|
756
1463
|
});
|
|
757
1464
|
/**
|
|
758
|
-
*
|
|
759
|
-
*/
|
|
760
|
-
export const zListClustersResponse = z.array(zCluster);
|
|
761
|
-
export const zCreateClusterBody = zClusterCreateInput;
|
|
762
|
-
/**
|
|
763
|
-
* Successfully created. Returns created Cluster ID.
|
|
1465
|
+
* Ticket closed.
|
|
764
1466
|
*/
|
|
765
|
-
export const
|
|
766
|
-
export const
|
|
767
|
-
|
|
1467
|
+
export const zCloseTicketResponse = zTicket;
|
|
1468
|
+
export const zGetTicketPath = z.object({
|
|
1469
|
+
ticket_id: z.string()
|
|
768
1470
|
});
|
|
769
1471
|
/**
|
|
770
|
-
*
|
|
1472
|
+
* Ticket with messages (internal notes excluded).
|
|
771
1473
|
*/
|
|
772
|
-
export const
|
|
773
|
-
export const
|
|
774
|
-
|
|
1474
|
+
export const zGetTicketResponse = zTicket;
|
|
1475
|
+
export const zReplyTicketBody = z.object({
|
|
1476
|
+
payload: z.string().optional(),
|
|
1477
|
+
attachments: z.array(z.string()).optional()
|
|
775
1478
|
});
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
*/
|
|
779
|
-
export const zGetClusterResponse = zCluster;
|
|
780
|
-
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
781
|
-
export const zUpdateClusterPath = z.object({
|
|
782
|
-
cluster_id: z.string()
|
|
1479
|
+
export const zReplyTicketPath = z.object({
|
|
1480
|
+
ticket_id: z.string()
|
|
783
1481
|
});
|
|
784
1482
|
/**
|
|
785
|
-
*
|
|
1483
|
+
* Reply appended.
|
|
786
1484
|
*/
|
|
787
|
-
export const
|
|
788
|
-
export const
|
|
789
|
-
|
|
1485
|
+
export const zReplyTicketResponse = zTicketMessage;
|
|
1486
|
+
export const zGetTicketAttachmentPath = z.object({
|
|
1487
|
+
ticket_id: z.string(),
|
|
1488
|
+
attachment_id: z.string()
|
|
790
1489
|
});
|
|
791
1490
|
/**
|
|
792
|
-
*
|
|
1491
|
+
* Attachment binary stream.
|
|
793
1492
|
*/
|
|
794
|
-
export const
|
|
1493
|
+
export const zGetTicketAttachmentResponse = z.string();
|
|
795
1494
|
/**
|
|
796
|
-
*
|
|
1495
|
+
* List of repositories
|
|
797
1496
|
*/
|
|
798
|
-
export const
|
|
799
|
-
export const
|
|
800
|
-
|
|
1497
|
+
export const zListRepositoriesResponse = z.array(zRegistryRepository);
|
|
1498
|
+
export const zListTagsPath = z.object({
|
|
1499
|
+
region: z.string(),
|
|
1500
|
+
repository: z.string()
|
|
801
1501
|
});
|
|
802
1502
|
/**
|
|
803
|
-
*
|
|
1503
|
+
* Repository with tags
|
|
804
1504
|
*/
|
|
805
|
-
export const
|
|
806
|
-
export const
|
|
807
|
-
|
|
1505
|
+
export const zListTagsResponse = zRegistryRepositoryWithTags;
|
|
1506
|
+
export const zDeleteTagPath = z.object({
|
|
1507
|
+
region: z.string(),
|
|
1508
|
+
repository: z.string(),
|
|
1509
|
+
tag: z.string()
|
|
1510
|
+
});
|
|
1511
|
+
export const zGetTagPath = z.object({
|
|
1512
|
+
region: z.string(),
|
|
1513
|
+
repository: z.string(),
|
|
1514
|
+
tag: z.string()
|
|
808
1515
|
});
|
|
809
1516
|
/**
|
|
810
|
-
*
|
|
1517
|
+
* Tag details
|
|
811
1518
|
*/
|
|
812
|
-
export const
|
|
813
|
-
export const zDeleteInvitePath = z.object({
|
|
814
|
-
email: z.string()
|
|
815
|
-
});
|
|
1519
|
+
export const zGetTagResponse = zRegistryTag;
|
|
816
1520
|
/**
|
|
817
|
-
*
|
|
1521
|
+
* Returns a single object containing organization details.
|
|
818
1522
|
*/
|
|
819
|
-
export const
|
|
820
|
-
export const
|
|
821
|
-
chart_name: z.string(),
|
|
822
|
-
version_channel: z.string()
|
|
823
|
-
});
|
|
1523
|
+
export const zGetOrganizationResponse = zOrganization;
|
|
1524
|
+
export const zCreateOrganizationBody = zOrganizationCreateInput;
|
|
824
1525
|
/**
|
|
825
|
-
*
|
|
1526
|
+
* Organization signup accepted. Returns the generated organization id immediately; provisioning (billing, Keycloak realm, user) continues asynchronously in the background.
|
|
1527
|
+
*
|
|
826
1528
|
*/
|
|
827
|
-
export const
|
|
1529
|
+
export const zCreateOrganizationResponse = zOrganizationCreateOutput;
|
|
828
1530
|
/**
|
|
829
1531
|
* JSON-RPC 2.0 request payload
|
|
830
1532
|
*/
|
|
@@ -853,154 +1555,214 @@ export const zPostMcpResponse = z.object({
|
|
|
853
1555
|
}).optional()
|
|
854
1556
|
});
|
|
855
1557
|
/**
|
|
856
|
-
*
|
|
1558
|
+
* An array of chart listings in the marketplace.
|
|
857
1559
|
*/
|
|
858
|
-
export const
|
|
859
|
-
export const
|
|
1560
|
+
export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
|
|
1561
|
+
export const zGetMarketplaceChartFilesPath = z.object({
|
|
1562
|
+
chart_name: z.string(),
|
|
1563
|
+
version_channel: z.string()
|
|
1564
|
+
});
|
|
860
1565
|
/**
|
|
861
|
-
*
|
|
1566
|
+
* Returns an object containing the chart files for the latest matching version.
|
|
862
1567
|
*/
|
|
863
|
-
export const
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
1568
|
+
export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
|
|
1569
|
+
/**
|
|
1570
|
+
* An array of invites
|
|
1571
|
+
*/
|
|
1572
|
+
export const zListInvitesResponse = z.array(zInvite);
|
|
1573
|
+
export const zCreateInviteBody = zInviteCreateInput;
|
|
1574
|
+
/**
|
|
1575
|
+
* Successfully created. Returns created invite details.
|
|
1576
|
+
*/
|
|
1577
|
+
export const zCreateInviteResponse = zInvite;
|
|
1578
|
+
export const zGetInvitePath = z.object({
|
|
1579
|
+
code: z.string()
|
|
867
1580
|
});
|
|
868
1581
|
/**
|
|
869
|
-
*
|
|
1582
|
+
* The invitation code is valid. Returns the invited email and organization.
|
|
870
1583
|
*/
|
|
871
|
-
export const
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
repository: z.string(),
|
|
875
|
-
tag: z.string()
|
|
1584
|
+
export const zGetInviteResponse = z.object({
|
|
1585
|
+
email: z.email().optional(),
|
|
1586
|
+
organization_id: z.string().optional()
|
|
876
1587
|
});
|
|
877
|
-
export const
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
1588
|
+
export const zDeleteInvitePath = z.object({
|
|
1589
|
+
email: z.email()
|
|
1590
|
+
});
|
|
1591
|
+
export const zQueryClusterPath = z.object({
|
|
1592
|
+
cluster_id: z.string()
|
|
1593
|
+
});
|
|
1594
|
+
export const zListFleetsPath = z.object({
|
|
1595
|
+
cluster_id: z.string()
|
|
881
1596
|
});
|
|
882
1597
|
/**
|
|
883
|
-
*
|
|
1598
|
+
* An array of fleets
|
|
884
1599
|
*/
|
|
885
|
-
export const
|
|
1600
|
+
export const zListFleetsResponse = z.array(zFleet);
|
|
1601
|
+
export const zCreateFleetBody = zFleetCreateInput;
|
|
1602
|
+
export const zCreateFleetPath = z.object({
|
|
1603
|
+
cluster_id: z.string()
|
|
1604
|
+
});
|
|
886
1605
|
/**
|
|
887
|
-
*
|
|
1606
|
+
* Successfully created. Returns created Fleet ID.
|
|
888
1607
|
*/
|
|
889
|
-
export const
|
|
890
|
-
export const
|
|
891
|
-
|
|
892
|
-
|
|
1608
|
+
export const zCreateFleetResponse = z.string();
|
|
1609
|
+
export const zDeleteFleetPath = z.object({
|
|
1610
|
+
cluster_id: z.string(),
|
|
1611
|
+
fleet_name: z.string()
|
|
893
1612
|
});
|
|
894
1613
|
/**
|
|
895
|
-
*
|
|
1614
|
+
* Successfully deleted.
|
|
896
1615
|
*/
|
|
897
|
-
export const
|
|
898
|
-
export const
|
|
899
|
-
|
|
1616
|
+
export const zDeleteFleetResponse = z.string();
|
|
1617
|
+
export const zGetFleetPath = z.object({
|
|
1618
|
+
cluster_id: z.string(),
|
|
1619
|
+
fleet_name: z.string()
|
|
900
1620
|
});
|
|
901
1621
|
/**
|
|
902
|
-
*
|
|
1622
|
+
* Returns a single object containing fleet details.
|
|
903
1623
|
*/
|
|
904
|
-
export const
|
|
905
|
-
export const
|
|
906
|
-
|
|
1624
|
+
export const zGetFleetResponse = zFleet;
|
|
1625
|
+
export const zUpdateFleetBody = zFleetUpdateInput;
|
|
1626
|
+
export const zUpdateFleetPath = z.object({
|
|
1627
|
+
cluster_id: z.string(),
|
|
1628
|
+
fleet_name: z.string()
|
|
907
1629
|
});
|
|
908
1630
|
/**
|
|
909
|
-
*
|
|
1631
|
+
* Successfully updated.
|
|
910
1632
|
*/
|
|
911
|
-
export const
|
|
912
|
-
export const
|
|
913
|
-
|
|
914
|
-
attachments: z.array(z.string()).optional()
|
|
915
|
-
});
|
|
916
|
-
export const zReplyTicketPath = z.object({
|
|
917
|
-
ticket_id: z.string()
|
|
1633
|
+
export const zUpdateFleetResponse = z.string();
|
|
1634
|
+
export const zListChartsPath = z.object({
|
|
1635
|
+
cluster_id: z.string()
|
|
918
1636
|
});
|
|
919
1637
|
/**
|
|
920
|
-
*
|
|
1638
|
+
* An array of charts
|
|
921
1639
|
*/
|
|
922
|
-
export const
|
|
923
|
-
export const
|
|
924
|
-
|
|
925
|
-
|
|
1640
|
+
export const zListChartsResponse = z.array(zChart);
|
|
1641
|
+
export const zCreateChartBody = zChartCreateInput;
|
|
1642
|
+
export const zCreateChartPath = z.object({
|
|
1643
|
+
cluster_id: z.string()
|
|
926
1644
|
});
|
|
927
1645
|
/**
|
|
928
|
-
*
|
|
1646
|
+
* Successfully created. Returns created Chart ID.
|
|
929
1647
|
*/
|
|
930
|
-
export const
|
|
1648
|
+
export const zCreateChartResponse = z.string();
|
|
1649
|
+
export const zDeleteChartPath = z.object({
|
|
1650
|
+
cluster_id: z.string(),
|
|
1651
|
+
chart_name: z.string()
|
|
1652
|
+
});
|
|
931
1653
|
/**
|
|
932
|
-
*
|
|
1654
|
+
* Successfully deleted.
|
|
933
1655
|
*/
|
|
934
|
-
export const
|
|
935
|
-
export const
|
|
1656
|
+
export const zDeleteChartResponse = z.string();
|
|
1657
|
+
export const zGetChartPath = z.object({
|
|
1658
|
+
cluster_id: z.string(),
|
|
1659
|
+
chart_name: z.string()
|
|
1660
|
+
});
|
|
936
1661
|
/**
|
|
937
|
-
*
|
|
1662
|
+
* Returns a single object containing chart details.
|
|
938
1663
|
*/
|
|
939
|
-
export const
|
|
940
|
-
export const
|
|
941
|
-
|
|
1664
|
+
export const zGetChartResponse = zChart;
|
|
1665
|
+
export const zUpdateChartBody = zChartUpdateInput;
|
|
1666
|
+
export const zUpdateChartPath = z.object({
|
|
1667
|
+
cluster_id: z.string(),
|
|
1668
|
+
chart_name: z.string()
|
|
942
1669
|
});
|
|
943
|
-
|
|
944
|
-
|
|
1670
|
+
/**
|
|
1671
|
+
* Successfully updated.
|
|
1672
|
+
*/
|
|
1673
|
+
export const zUpdateChartResponse = z.string();
|
|
1674
|
+
/**
|
|
1675
|
+
* An array of clusters
|
|
1676
|
+
*/
|
|
1677
|
+
export const zListClustersResponse = z.array(zCluster);
|
|
1678
|
+
export const zCreateClusterBody = zClusterCreateInput;
|
|
1679
|
+
/**
|
|
1680
|
+
* Successfully created. Returns created Cluster ID.
|
|
1681
|
+
*/
|
|
1682
|
+
export const zCreateClusterResponse = z.string();
|
|
1683
|
+
export const zDeleteClusterPath = z.object({
|
|
1684
|
+
cluster_id: z.string()
|
|
945
1685
|
});
|
|
946
1686
|
/**
|
|
947
|
-
*
|
|
1687
|
+
* Successfully deleted. The cluster has been torn down.
|
|
948
1688
|
*/
|
|
949
|
-
export const
|
|
950
|
-
export const
|
|
951
|
-
|
|
952
|
-
token_id: z.string()
|
|
1689
|
+
export const zDeleteClusterResponse = z.string();
|
|
1690
|
+
export const zGetClusterPath = z.object({
|
|
1691
|
+
cluster_id: z.string()
|
|
953
1692
|
});
|
|
954
1693
|
/**
|
|
955
|
-
*
|
|
1694
|
+
* Returns a single object containing cluster details.
|
|
956
1695
|
*/
|
|
957
|
-
export const
|
|
958
|
-
export const
|
|
959
|
-
|
|
1696
|
+
export const zGetClusterResponse = zCluster;
|
|
1697
|
+
export const zUpdateClusterBody = zClusterUpdateInput;
|
|
1698
|
+
export const zUpdateClusterPath = z.object({
|
|
1699
|
+
cluster_id: z.string()
|
|
960
1700
|
});
|
|
961
1701
|
/**
|
|
962
|
-
* Successfully updated. Returns updated
|
|
1702
|
+
* Successfully updated. Returns updated cluster details.
|
|
963
1703
|
*/
|
|
964
|
-
export const
|
|
965
|
-
export const
|
|
966
|
-
|
|
1704
|
+
export const zUpdateClusterResponse = zCluster;
|
|
1705
|
+
export const zGetJoinInformationPath = z.object({
|
|
1706
|
+
cluster_id: z.string()
|
|
967
1707
|
});
|
|
968
1708
|
/**
|
|
969
|
-
* An
|
|
1709
|
+
* An object of cluster join information
|
|
970
1710
|
*/
|
|
971
|
-
export const
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
1711
|
+
export const zGetJoinInformationResponse = zClusterJoinInformation;
|
|
1712
|
+
export const zGetUsageQuery = z.object({
|
|
1713
|
+
granularity: z.enum([
|
|
1714
|
+
'hourly',
|
|
1715
|
+
'daily',
|
|
1716
|
+
'monthly'
|
|
1717
|
+
]).optional().default('daily')
|
|
1718
|
+
});
|
|
975
1719
|
/**
|
|
976
|
-
*
|
|
1720
|
+
* Usage data with facets for filtering
|
|
977
1721
|
*/
|
|
978
|
-
export const
|
|
979
|
-
export const zCreateUserBody = zUserCreateInput;
|
|
1722
|
+
export const zGetUsageResponse = zUsageResponse;
|
|
980
1723
|
/**
|
|
981
|
-
*
|
|
1724
|
+
* 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.
|
|
1725
|
+
*
|
|
982
1726
|
*/
|
|
983
|
-
export const
|
|
984
|
-
|
|
985
|
-
user_id: z.string()
|
|
1727
|
+
export const zGetPaymentMethodSecretResponse = z.object({
|
|
1728
|
+
id: z.string().optional()
|
|
986
1729
|
});
|
|
987
1730
|
/**
|
|
988
|
-
*
|
|
1731
|
+
* An array of payment methods.
|
|
989
1732
|
*/
|
|
990
|
-
export const
|
|
991
|
-
export const
|
|
992
|
-
|
|
1733
|
+
export const zListPaymentMethodsResponse = z.array(zPaymentMethod);
|
|
1734
|
+
export const zSetDefaultPaymentMethodPath = z.object({
|
|
1735
|
+
paymentMethodId: z.string()
|
|
993
1736
|
});
|
|
994
1737
|
/**
|
|
995
|
-
*
|
|
1738
|
+
* Default payment method updated.
|
|
996
1739
|
*/
|
|
997
|
-
export const
|
|
998
|
-
export const
|
|
999
|
-
|
|
1000
|
-
user_id: z.string()
|
|
1740
|
+
export const zSetDefaultPaymentMethodResponse = z.void();
|
|
1741
|
+
export const zDeletePaymentMethodPath = z.object({
|
|
1742
|
+
paymentMethodId: z.string()
|
|
1001
1743
|
});
|
|
1002
1744
|
/**
|
|
1003
|
-
*
|
|
1745
|
+
* Payment method deleted.
|
|
1004
1746
|
*/
|
|
1005
|
-
export const
|
|
1747
|
+
export const zDeletePaymentMethodResponse = z.void();
|
|
1748
|
+
/**
|
|
1749
|
+
* An array of usage records.
|
|
1750
|
+
*/
|
|
1751
|
+
export const zListInvoicesResponse = z.array(zInvoice);
|
|
1752
|
+
/**
|
|
1753
|
+
* Returns a single object containing organization contact and billing address details.
|
|
1754
|
+
*/
|
|
1755
|
+
export const zGetContactResponse = zBillingContact;
|
|
1756
|
+
export const zUpdateContactBody = zBillingContact;
|
|
1757
|
+
/**
|
|
1758
|
+
* Successfully updated. Returns updated organization details.
|
|
1759
|
+
*/
|
|
1760
|
+
export const zUpdateContactResponse = zBillingContact;
|
|
1761
|
+
/**
|
|
1762
|
+
* An array of the applied promotional credits records.
|
|
1763
|
+
*/
|
|
1764
|
+
export const zGetCreditsResponse = z.array(zBillingCredits);
|
|
1765
|
+
export const zRedeemCreditsBody = z.object({
|
|
1766
|
+
code: z.string().optional()
|
|
1767
|
+
});
|
|
1006
1768
|
//# sourceMappingURL=zod.gen.js.map
|