@cloudfleet/sdk 0.0.3

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.
@@ -0,0 +1,968 @@
1
+ // This file is auto-generated by @hey-api/openapi-ts
2
+ import { z } from 'zod';
3
+ export const zClusterCreateInput = z.object({
4
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
5
+ region: z.enum([
6
+ 'staging',
7
+ 'northamerica-central-1'
8
+ ]).optional(),
9
+ tier: z.enum([
10
+ 'basic',
11
+ 'pro'
12
+ ]),
13
+ 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')
14
+ });
15
+ export const zClusterJoinInformation = z.object({
16
+ certificate_authority: z.string(),
17
+ endpoint: z.string().url(),
18
+ auth_key: z.string(),
19
+ bootstrap_token: z.string(),
20
+ versions: z.object({
21
+ kubernetes: z.string(),
22
+ tailscale: z.string(),
23
+ containerd: z.string()
24
+ })
25
+ });
26
+ export const zCluster = z.object({
27
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
28
+ region: z.enum([
29
+ 'staging',
30
+ 'northamerica-central-1'
31
+ ]).optional(),
32
+ tier: z.enum([
33
+ 'basic',
34
+ 'pro'
35
+ ]),
36
+ 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'),
37
+ id: z.string().uuid(),
38
+ status: z.enum([
39
+ 'active',
40
+ 'deleted',
41
+ 'creating',
42
+ 'deployed',
43
+ 'failed',
44
+ 'updating'
45
+ ]),
46
+ endpoint: z.union([
47
+ z.string().url(),
48
+ z.enum([
49
+ ''
50
+ ])
51
+ ]).optional(),
52
+ certificate_ca: z.string().optional(),
53
+ version_current: z.string().optional(),
54
+ created_at: z.string().optional(),
55
+ updated_at: z.string().optional(),
56
+ ready: z.boolean().optional()
57
+ });
58
+ export const zClusterUpdateInput = z.object({
59
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
60
+ 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()
61
+ });
62
+ export const zFleetCreateInput = z.object({
63
+ limits: z.object({
64
+ cpu: z.number().gte(0)
65
+ }).optional(),
66
+ gcp: z.object({
67
+ enabled: z.boolean().optional().default(true),
68
+ project: z.string()
69
+ }).optional(),
70
+ hetzner: z.union([
71
+ z.object({
72
+ enabled: z.boolean().optional().default(true),
73
+ apiKey: z.string().optional()
74
+ }),
75
+ z.object({
76
+ apiKey: z.string().optional(),
77
+ enabled: z.boolean().optional().default(true)
78
+ })
79
+ ]).optional(),
80
+ aws: z.object({
81
+ enabled: z.boolean().optional().default(true),
82
+ controllerRoleArn: z.string()
83
+ }).optional(),
84
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
85
+ type: z.enum([
86
+ 'managed',
87
+ 'connected'
88
+ ])
89
+ });
90
+ export const zFleet = z.object({
91
+ limits: z.object({
92
+ cpu: z.number().gte(0)
93
+ }).optional(),
94
+ gcp: z.object({
95
+ enabled: z.boolean().optional().default(true),
96
+ project: z.string()
97
+ }).optional(),
98
+ hetzner: z.union([
99
+ z.object({
100
+ enabled: z.boolean().optional().default(true),
101
+ apiKey: z.string().optional()
102
+ }),
103
+ z.object({
104
+ apiKey: z.string().optional(),
105
+ enabled: z.boolean().optional().default(true)
106
+ })
107
+ ]).optional(),
108
+ aws: z.object({
109
+ enabled: z.boolean().optional().default(true),
110
+ controllerRoleArn: z.string()
111
+ }).optional(),
112
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
113
+ type: z.enum([
114
+ 'managed',
115
+ 'connected'
116
+ ])
117
+ });
118
+ export const zFleetUpdateInput = z.object({
119
+ limits: z.object({
120
+ cpu: z.number().gte(0)
121
+ }).optional(),
122
+ gcp: z.object({
123
+ enabled: z.boolean().optional().default(true),
124
+ project: z.string()
125
+ }).optional(),
126
+ hetzner: z.union([
127
+ z.object({
128
+ enabled: z.boolean().optional().default(true),
129
+ apiKey: z.string().optional()
130
+ }),
131
+ z.object({
132
+ apiKey: z.string().optional(),
133
+ enabled: z.boolean().optional().default(true)
134
+ })
135
+ ]).optional(),
136
+ aws: z.object({
137
+ enabled: z.boolean().optional().default(true),
138
+ controllerRoleArn: z.string()
139
+ }).optional()
140
+ });
141
+ export const zInfrastructureFilter = z.object({
142
+ version: z.unknown().optional(),
143
+ provider: z.array(z.string()).optional(),
144
+ region: z.array(z.string()).optional(),
145
+ sub_region: z.array(z.string()).optional(),
146
+ csp_region: z.array(z.string()).optional(),
147
+ instance_type: z.array(z.string()).optional(),
148
+ accelerator_name: z.array(z.string()).optional(),
149
+ accelerator_manufacturer: z.array(z.string()).optional(),
150
+ accelerator_count_min: z.number().int().gte(0).optional(),
151
+ accelerator_count_max: z.number().int().gte(0).optional(),
152
+ accelerator_memory_min: z.number().optional(),
153
+ accelerator_memory_max: z.number().optional(),
154
+ memory_min: z.number().int().gte(0).optional(),
155
+ memory_max: z.number().int().gte(0).optional(),
156
+ vcpu_min: z.number().int().gte(1).optional(),
157
+ vcpu_max: z.number().int().gte(1).optional(),
158
+ storage_total_min: z.number().gte(10).optional(),
159
+ storage_total_max: z.number().gte(10).optional(),
160
+ storage_local_min: z.number().optional(),
161
+ storage_local_max: z.number().optional(),
162
+ price_min: z.number().optional(),
163
+ price_max: z.number().optional()
164
+ });
165
+ export const zInfrastructureInstance = z.object({
166
+ sku: z.string(),
167
+ provider: z.string(),
168
+ region: z.string(),
169
+ sub_region: z.string(),
170
+ csp_region: z.string(),
171
+ csp_zone: z.string(),
172
+ instance_type: z.string(),
173
+ architecture: z.string(),
174
+ os: z.string(),
175
+ vcpu: z.number().gte(1),
176
+ memory: z.number().gte(1),
177
+ local_storage: z.number(),
178
+ accelerator_name: z.string().optional(),
179
+ accelerator_manufacturer: z.string().optional(),
180
+ accelerator_count: z.number().int().optional(),
181
+ accelerator_memory: z.number().optional(),
182
+ pods_capacity: z.number().optional(),
183
+ capacity_type: z.string().optional(),
184
+ price: z.number(),
185
+ available: z.boolean().optional()
186
+ });
187
+ export const zInvite = z.object({
188
+ id: z.string().optional(),
189
+ organization_id: z.string().uuid().optional(),
190
+ date_created: z.string().datetime(),
191
+ email: z.string().email().optional(),
192
+ code: z.string().optional()
193
+ });
194
+ export const zInvoice = z.object({
195
+ id: z.string().uuid().optional(),
196
+ organizationId: z.string().uuid().optional(),
197
+ status: z.enum([
198
+ 'DRAFT',
199
+ 'COMMITTED',
200
+ 'VOID'
201
+ ]).optional(),
202
+ amount: z.number().optional(),
203
+ currency: z.enum([
204
+ 'AED',
205
+ 'AFN',
206
+ 'ALL',
207
+ 'AMD',
208
+ 'ANG',
209
+ 'AOA',
210
+ 'ARS',
211
+ 'AUD',
212
+ 'AWG',
213
+ 'AZN',
214
+ 'BAM',
215
+ 'BBD',
216
+ 'BDT',
217
+ 'BGN',
218
+ 'BHD',
219
+ 'BIF',
220
+ 'BMD',
221
+ 'BND',
222
+ 'BOB',
223
+ 'BRL',
224
+ 'BSD',
225
+ 'BTN',
226
+ 'BWP',
227
+ 'BYR',
228
+ 'BZD',
229
+ 'CAD',
230
+ 'CDF',
231
+ 'CHF',
232
+ 'CLP',
233
+ 'CNY',
234
+ 'COP',
235
+ 'CRC',
236
+ 'CUC',
237
+ 'CUP',
238
+ 'CVE',
239
+ 'CZK',
240
+ 'DJF',
241
+ 'DKK',
242
+ 'DOP',
243
+ 'DZD',
244
+ 'EGP',
245
+ 'ERN',
246
+ 'ETB',
247
+ 'EUR',
248
+ 'FJD',
249
+ 'FKP',
250
+ 'GBP',
251
+ 'GEL',
252
+ 'GGP',
253
+ 'GHS',
254
+ 'GIP',
255
+ 'GMD',
256
+ 'GNF',
257
+ 'GTQ',
258
+ 'GYD',
259
+ 'HKD',
260
+ 'HNL',
261
+ 'HRK',
262
+ 'HTG',
263
+ 'HUF',
264
+ 'IDR',
265
+ 'ILS',
266
+ 'IMP',
267
+ 'INR',
268
+ 'IQD',
269
+ 'IRR',
270
+ 'ISK',
271
+ 'JEP',
272
+ 'JMD',
273
+ 'JOD',
274
+ 'JPY',
275
+ 'KES',
276
+ 'KGS',
277
+ 'KHR',
278
+ 'KMF',
279
+ 'KPW',
280
+ 'KRW',
281
+ 'KWD',
282
+ 'KYD',
283
+ 'KZT',
284
+ 'LAK',
285
+ 'LBP',
286
+ 'LKR',
287
+ 'LRD',
288
+ 'LSL',
289
+ 'LTL',
290
+ 'LVL',
291
+ 'LYD',
292
+ 'MAD',
293
+ 'MDL',
294
+ 'MGA',
295
+ 'MKD',
296
+ 'MMK',
297
+ 'MNT',
298
+ 'MOP',
299
+ 'MRO',
300
+ 'MUR',
301
+ 'MVR',
302
+ 'MWK',
303
+ 'MXN',
304
+ 'MYR',
305
+ 'MZN',
306
+ 'NAD',
307
+ 'NGN',
308
+ 'NIO',
309
+ 'NOK',
310
+ 'NPR',
311
+ 'NZD',
312
+ 'OMR',
313
+ 'PAB',
314
+ 'PEN',
315
+ 'PGK',
316
+ 'PHP',
317
+ 'PKR',
318
+ 'PLN',
319
+ 'PYG',
320
+ 'QAR',
321
+ 'RON',
322
+ 'RSD',
323
+ 'RUB',
324
+ 'RWF',
325
+ 'SAR',
326
+ 'SBD',
327
+ 'SCR',
328
+ 'SDG',
329
+ 'SEK',
330
+ 'SGD',
331
+ 'SHP',
332
+ 'SLL',
333
+ 'SOS',
334
+ 'SPL',
335
+ 'SRD',
336
+ 'STD',
337
+ 'SVC',
338
+ 'SYP',
339
+ 'SZL',
340
+ 'THB',
341
+ 'TJS',
342
+ 'TMT',
343
+ 'TND',
344
+ 'TOP',
345
+ 'TRY',
346
+ 'TTD',
347
+ 'TVD',
348
+ 'TWD',
349
+ 'TZS',
350
+ 'UAH',
351
+ 'UGX',
352
+ 'USD',
353
+ 'UYU',
354
+ 'UZS',
355
+ 'VEF',
356
+ 'VND',
357
+ 'VUV',
358
+ 'WST',
359
+ 'XAF',
360
+ 'XCD',
361
+ 'XDR',
362
+ 'XOF',
363
+ 'XPF',
364
+ 'YER',
365
+ 'ZAR',
366
+ 'ZMW',
367
+ 'ZWD',
368
+ 'BTC'
369
+ ]).optional(),
370
+ creditAdj: z.number().optional(),
371
+ refundAdj: z.number().optional(),
372
+ invoiceDate: z.string().optional(),
373
+ targetDate: z.string().optional(),
374
+ invoiceNumber: z.string().optional(),
375
+ balance: z.number().optional(),
376
+ bundleKeys: z.string().optional(),
377
+ credits: z.array(z.object({
378
+ id: z.string().uuid().optional(),
379
+ linkedInvoiceItemId: z.string().uuid().optional(),
380
+ productName: z.string().optional(),
381
+ planName: z.string().optional(),
382
+ phaseName: z.string().optional(),
383
+ usageName: z.string().optional(),
384
+ prettyProductName: z.string().optional(),
385
+ prettyPlanName: z.string().optional(),
386
+ prettyPhaseName: z.string().optional(),
387
+ prettyUsageName: z.string().optional(),
388
+ itemType: z.enum([
389
+ 'EXTERNAL_CHARGE',
390
+ 'FIXED',
391
+ 'RECURRING',
392
+ 'REPAIR_ADJ',
393
+ 'CBA_ADJ',
394
+ 'CREDIT_ADJ',
395
+ 'ITEM_ADJ',
396
+ 'USAGE',
397
+ 'TAX',
398
+ 'PARENT_SUMMARY'
399
+ ]).optional(),
400
+ description: z.string().optional(),
401
+ startDate: z.string().optional(),
402
+ endDate: z.string().optional(),
403
+ amount: z.number().optional(),
404
+ rate: z.number().optional(),
405
+ currency: z.enum([
406
+ 'AED',
407
+ 'AFN',
408
+ 'ALL',
409
+ 'AMD',
410
+ 'ANG',
411
+ 'AOA',
412
+ 'ARS',
413
+ 'AUD',
414
+ 'AWG',
415
+ 'AZN',
416
+ 'BAM',
417
+ 'BBD',
418
+ 'BDT',
419
+ 'BGN',
420
+ 'BHD',
421
+ 'BIF',
422
+ 'BMD',
423
+ 'BND',
424
+ 'BOB',
425
+ 'BRL',
426
+ 'BSD',
427
+ 'BTN',
428
+ 'BWP',
429
+ 'BYR',
430
+ 'BZD',
431
+ 'CAD',
432
+ 'CDF',
433
+ 'CHF',
434
+ 'CLP',
435
+ 'CNY',
436
+ 'COP',
437
+ 'CRC',
438
+ 'CUC',
439
+ 'CUP',
440
+ 'CVE',
441
+ 'CZK',
442
+ 'DJF',
443
+ 'DKK',
444
+ 'DOP',
445
+ 'DZD',
446
+ 'EGP',
447
+ 'ERN',
448
+ 'ETB',
449
+ 'EUR',
450
+ 'FJD',
451
+ 'FKP',
452
+ 'GBP',
453
+ 'GEL',
454
+ 'GGP',
455
+ 'GHS',
456
+ 'GIP',
457
+ 'GMD',
458
+ 'GNF',
459
+ 'GTQ',
460
+ 'GYD',
461
+ 'HKD',
462
+ 'HNL',
463
+ 'HRK',
464
+ 'HTG',
465
+ 'HUF',
466
+ 'IDR',
467
+ 'ILS',
468
+ 'IMP',
469
+ 'INR',
470
+ 'IQD',
471
+ 'IRR',
472
+ 'ISK',
473
+ 'JEP',
474
+ 'JMD',
475
+ 'JOD',
476
+ 'JPY',
477
+ 'KES',
478
+ 'KGS',
479
+ 'KHR',
480
+ 'KMF',
481
+ 'KPW',
482
+ 'KRW',
483
+ 'KWD',
484
+ 'KYD',
485
+ 'KZT',
486
+ 'LAK',
487
+ 'LBP',
488
+ 'LKR',
489
+ 'LRD',
490
+ 'LSL',
491
+ 'LTL',
492
+ 'LVL',
493
+ 'LYD',
494
+ 'MAD',
495
+ 'MDL',
496
+ 'MGA',
497
+ 'MKD',
498
+ 'MMK',
499
+ 'MNT',
500
+ 'MOP',
501
+ 'MRO',
502
+ 'MUR',
503
+ 'MVR',
504
+ 'MWK',
505
+ 'MXN',
506
+ 'MYR',
507
+ 'MZN',
508
+ 'NAD',
509
+ 'NGN',
510
+ 'NIO',
511
+ 'NOK',
512
+ 'NPR',
513
+ 'NZD',
514
+ 'OMR',
515
+ 'PAB',
516
+ 'PEN',
517
+ 'PGK',
518
+ 'PHP',
519
+ 'PKR',
520
+ 'PLN',
521
+ 'PYG',
522
+ 'QAR',
523
+ 'RON',
524
+ 'RSD',
525
+ 'RUB',
526
+ 'RWF',
527
+ 'SAR',
528
+ 'SBD',
529
+ 'SCR',
530
+ 'SDG',
531
+ 'SEK',
532
+ 'SGD',
533
+ 'SHP',
534
+ 'SLL',
535
+ 'SOS',
536
+ 'SPL',
537
+ 'SRD',
538
+ 'STD',
539
+ 'SVC',
540
+ 'SYP',
541
+ 'SZL',
542
+ 'THB',
543
+ 'TJS',
544
+ 'TMT',
545
+ 'TND',
546
+ 'TOP',
547
+ 'TRY',
548
+ 'TTD',
549
+ 'TVD',
550
+ 'TWD',
551
+ 'TZS',
552
+ 'UAH',
553
+ 'UGX',
554
+ 'USD',
555
+ 'UYU',
556
+ 'UZS',
557
+ 'VEF',
558
+ 'VND',
559
+ 'VUV',
560
+ 'WST',
561
+ 'XAF',
562
+ 'XCD',
563
+ 'XDR',
564
+ 'XOF',
565
+ 'XPF',
566
+ 'YER',
567
+ 'ZAR',
568
+ 'ZMW',
569
+ 'ZWD',
570
+ 'BTC'
571
+ ]).optional(),
572
+ quantity: z.number().optional(),
573
+ itemDetails: z.string().optional(),
574
+ catalogEffectiveDate: z.string().optional(),
575
+ childItems: z.array(z.unknown()).optional()
576
+ })).optional(),
577
+ items: z.array(z.object({
578
+ id: z.string().uuid().optional(),
579
+ linkedInvoiceItemId: z.string().uuid().optional(),
580
+ productName: z.string().optional(),
581
+ planName: z.string().optional(),
582
+ phaseName: z.string().optional(),
583
+ usageName: z.string().optional(),
584
+ prettyProductName: z.string().optional(),
585
+ prettyPlanName: z.string().optional(),
586
+ prettyPhaseName: z.string().optional(),
587
+ prettyUsageName: z.string().optional(),
588
+ itemType: z.enum([
589
+ 'EXTERNAL_CHARGE',
590
+ 'FIXED',
591
+ 'RECURRING',
592
+ 'REPAIR_ADJ',
593
+ 'CBA_ADJ',
594
+ 'CREDIT_ADJ',
595
+ 'ITEM_ADJ',
596
+ 'USAGE',
597
+ 'TAX',
598
+ 'PARENT_SUMMARY'
599
+ ]).optional(),
600
+ description: z.string().optional(),
601
+ startDate: z.string().optional(),
602
+ endDate: z.string().optional(),
603
+ amount: z.number().optional(),
604
+ rate: z.number().optional(),
605
+ currency: z.enum([
606
+ 'AED',
607
+ 'AFN',
608
+ 'ALL',
609
+ 'AMD',
610
+ 'ANG',
611
+ 'AOA',
612
+ 'ARS',
613
+ 'AUD',
614
+ 'AWG',
615
+ 'AZN',
616
+ 'BAM',
617
+ 'BBD',
618
+ 'BDT',
619
+ 'BGN',
620
+ 'BHD',
621
+ 'BIF',
622
+ 'BMD',
623
+ 'BND',
624
+ 'BOB',
625
+ 'BRL',
626
+ 'BSD',
627
+ 'BTN',
628
+ 'BWP',
629
+ 'BYR',
630
+ 'BZD',
631
+ 'CAD',
632
+ 'CDF',
633
+ 'CHF',
634
+ 'CLP',
635
+ 'CNY',
636
+ 'COP',
637
+ 'CRC',
638
+ 'CUC',
639
+ 'CUP',
640
+ 'CVE',
641
+ 'CZK',
642
+ 'DJF',
643
+ 'DKK',
644
+ 'DOP',
645
+ 'DZD',
646
+ 'EGP',
647
+ 'ERN',
648
+ 'ETB',
649
+ 'EUR',
650
+ 'FJD',
651
+ 'FKP',
652
+ 'GBP',
653
+ 'GEL',
654
+ 'GGP',
655
+ 'GHS',
656
+ 'GIP',
657
+ 'GMD',
658
+ 'GNF',
659
+ 'GTQ',
660
+ 'GYD',
661
+ 'HKD',
662
+ 'HNL',
663
+ 'HRK',
664
+ 'HTG',
665
+ 'HUF',
666
+ 'IDR',
667
+ 'ILS',
668
+ 'IMP',
669
+ 'INR',
670
+ 'IQD',
671
+ 'IRR',
672
+ 'ISK',
673
+ 'JEP',
674
+ 'JMD',
675
+ 'JOD',
676
+ 'JPY',
677
+ 'KES',
678
+ 'KGS',
679
+ 'KHR',
680
+ 'KMF',
681
+ 'KPW',
682
+ 'KRW',
683
+ 'KWD',
684
+ 'KYD',
685
+ 'KZT',
686
+ 'LAK',
687
+ 'LBP',
688
+ 'LKR',
689
+ 'LRD',
690
+ 'LSL',
691
+ 'LTL',
692
+ 'LVL',
693
+ 'LYD',
694
+ 'MAD',
695
+ 'MDL',
696
+ 'MGA',
697
+ 'MKD',
698
+ 'MMK',
699
+ 'MNT',
700
+ 'MOP',
701
+ 'MRO',
702
+ 'MUR',
703
+ 'MVR',
704
+ 'MWK',
705
+ 'MXN',
706
+ 'MYR',
707
+ 'MZN',
708
+ 'NAD',
709
+ 'NGN',
710
+ 'NIO',
711
+ 'NOK',
712
+ 'NPR',
713
+ 'NZD',
714
+ 'OMR',
715
+ 'PAB',
716
+ 'PEN',
717
+ 'PGK',
718
+ 'PHP',
719
+ 'PKR',
720
+ 'PLN',
721
+ 'PYG',
722
+ 'QAR',
723
+ 'RON',
724
+ 'RSD',
725
+ 'RUB',
726
+ 'RWF',
727
+ 'SAR',
728
+ 'SBD',
729
+ 'SCR',
730
+ 'SDG',
731
+ 'SEK',
732
+ 'SGD',
733
+ 'SHP',
734
+ 'SLL',
735
+ 'SOS',
736
+ 'SPL',
737
+ 'SRD',
738
+ 'STD',
739
+ 'SVC',
740
+ 'SYP',
741
+ 'SZL',
742
+ 'THB',
743
+ 'TJS',
744
+ 'TMT',
745
+ 'TND',
746
+ 'TOP',
747
+ 'TRY',
748
+ 'TTD',
749
+ 'TVD',
750
+ 'TWD',
751
+ 'TZS',
752
+ 'UAH',
753
+ 'UGX',
754
+ 'USD',
755
+ 'UYU',
756
+ 'UZS',
757
+ 'VEF',
758
+ 'VND',
759
+ 'VUV',
760
+ 'WST',
761
+ 'XAF',
762
+ 'XCD',
763
+ 'XDR',
764
+ 'XOF',
765
+ 'XPF',
766
+ 'YER',
767
+ 'ZAR',
768
+ 'ZMW',
769
+ 'ZWD',
770
+ 'BTC'
771
+ ]).optional(),
772
+ quantity: z.number().optional(),
773
+ itemDetails: z.string().optional(),
774
+ catalogEffectiveDate: z.string().optional(),
775
+ childItems: z.array(z.unknown()).optional()
776
+ })).optional()
777
+ });
778
+ export const zOrganizationContactInfo = z.object({
779
+ address1: z.string().optional(),
780
+ address2: z.string().optional(),
781
+ postalCode: z.string().optional(),
782
+ city: z.string().optional(),
783
+ state: z.string().optional(),
784
+ country: z.string().optional(),
785
+ phone: z.string().optional(),
786
+ email: z.string().email(),
787
+ first_name: z.string(),
788
+ last_name: z.string()
789
+ });
790
+ export const zOrganization = z.object({
791
+ id: z.string().uuid().optional(),
792
+ date_created: z.string().datetime(),
793
+ name: z.string().optional(),
794
+ contactInfo: z.object({
795
+ address1: z.string().optional(),
796
+ address2: z.string().optional(),
797
+ postalCode: z.string().optional(),
798
+ city: z.string().optional(),
799
+ state: z.string().optional(),
800
+ country: z.string().optional(),
801
+ phone: z.string().optional(),
802
+ email: z.string().email(),
803
+ first_name: z.string(),
804
+ last_name: z.string()
805
+ }),
806
+ quota: z.object({
807
+ basic_clusters_max: z.number().int().gte(0),
808
+ basic_clusters_available: z.number().int(),
809
+ pro_clusters_max: z.number().int().gte(0),
810
+ pro_clusters_available: z.number().int(),
811
+ fleets_max: z.number().int().gte(0),
812
+ managed_fleets_cpu_max: z.number().int().gte(0),
813
+ cluster_tiers: z.array(z.string()).min(0),
814
+ regions: z.array(z.string()).min(1),
815
+ versions: z.array(z.object({
816
+ id: z.string(),
817
+ label: z.string()
818
+ })).min(1)
819
+ }),
820
+ pending_actions: z.array(z.enum([
821
+ 'signup-billing-address',
822
+ 'signup-payment-method',
823
+ 'signup-invite-team',
824
+ 'signup-create-cluster'
825
+ ])).optional(),
826
+ status: z.enum([
827
+ 'active',
828
+ 'closed',
829
+ 'suspended'
830
+ ]).optional()
831
+ });
832
+ export const zPaymentMethod = z.object({
833
+ id: z.string().uuid(),
834
+ setup: z.boolean(),
835
+ type: z.enum([
836
+ 'card'
837
+ ]),
838
+ last4: z.string(),
839
+ exp_month: z.number().int().gte(1).lte(12),
840
+ exp_year: z.number().int().gte(2024),
841
+ brand: z.enum([
842
+ 'amex',
843
+ 'diners',
844
+ 'discover',
845
+ 'eftpos_au',
846
+ 'jcb',
847
+ 'mastercard',
848
+ 'unionpay',
849
+ 'visa',
850
+ 'unknown'
851
+ ])
852
+ });
853
+ export const zToken = z.object({
854
+ id: z.string().optional(),
855
+ secret: z.string().uuid().optional(),
856
+ name: z.string().optional(),
857
+ date_created: z.string().datetime(),
858
+ role: z.enum([
859
+ 'Administrator',
860
+ 'User'
861
+ ]).optional()
862
+ });
863
+ export const zUsage = z.object({
864
+ id: z.string().uuid(),
865
+ task_id: z.string().uuid(),
866
+ unit: z.string(),
867
+ amount: z.number()
868
+ });
869
+ export const zUser = z.object({
870
+ id: z.string().uuid().optional(),
871
+ date_created: z.string().datetime(),
872
+ email: z.string().email().optional(),
873
+ first_name: z.string().optional(),
874
+ last_name: z.string().optional(),
875
+ role: z.enum([
876
+ 'Administrator',
877
+ 'User'
878
+ ]).optional(),
879
+ cluster_permissions: z.array(z.object({
880
+ cluster_id: z.string().uuid(),
881
+ permissions: z.enum([
882
+ 'readwrite',
883
+ 'readonly'
884
+ ])
885
+ })).optional(),
886
+ status: z.enum([
887
+ 'active',
888
+ 'inactive'
889
+ ]).optional()
890
+ });
891
+ export const zGetBillingUsageResponse = z.array(zUsage);
892
+ export const zGetBillingBalanceResponse = z.number();
893
+ export const zGetBillingPaymentMethodResponse = zPaymentMethod;
894
+ export const zPutBillingPaymentMethodResponse = z.object({
895
+ id: z.string().optional()
896
+ });
897
+ export const zGetBillingInvoicesResponse = z.array(zInvoice);
898
+ export const zGetBillingInvoicesByIdResponse = z.object({
899
+ html: z.string().optional()
900
+ });
901
+ export const zGetClustersByClusterIdFleetsResponse = z.array(zFleet);
902
+ export const zPostClustersByClusterIdFleetsResponse = z.string();
903
+ export const zDeleteClustersByClusterIdFleetsByFleetNameResponse = z.string();
904
+ export const zGetClustersByClusterIdFleetsByFleetNameResponse = zFleet;
905
+ export const zPutClustersByClusterIdFleetsByFleetNameResponse = z.string();
906
+ export const zGetClustersResponse = z.array(zCluster);
907
+ export const zPostClustersResponse = z.string();
908
+ export const zDeleteClustersByClusterIdResponse = z.string();
909
+ export const zGetClustersByClusterIdResponse = zCluster;
910
+ export const zPutClustersByClusterIdResponse = zCluster;
911
+ export const zPostClustersByClusterIdJoinInformationResponse = zCluster;
912
+ export const zGetInfrastructureResponse = z.array(zInfrastructureInstance);
913
+ export const zGetInfrastructureFacetsResponse = z.array(z.object({
914
+ provider: z.array(z.string()).optional(),
915
+ region: z.array(z.string()).optional(),
916
+ sub_region: z.array(z.string()).optional(),
917
+ csp_region: z.array(z.string()).optional(),
918
+ vcpu_min: z.number().int().gte(1).optional(),
919
+ vcpu_max: z.number().int().gte(1).optional(),
920
+ memory_min: z.number().int().gte(0).optional(),
921
+ memory_max: z.number().int().gte(0).optional(),
922
+ storage_local_min: z.number().optional(),
923
+ storage_local_max: z.number().optional(),
924
+ accelerator_name: z.array(z.string()).optional(),
925
+ accelerator_manufacturer: z.array(z.string()).optional(),
926
+ accelerator_count_min: z.number().int().gte(0).optional(),
927
+ accelerator_count_max: z.number().int().gte(0).optional(),
928
+ accelerator_memory_min: z.number().optional(),
929
+ accelerator_memory_max: z.number().optional(),
930
+ price_min: z.number().optional(),
931
+ price_max: z.number().optional(),
932
+ regions_struct: z.array(z.object({
933
+ region: z.string().optional(),
934
+ sub_region: z.array(z.string()).optional()
935
+ })).optional(),
936
+ accelerators_struct: z.array(z.object({
937
+ accelerator_manufacturer: z.string().optional(),
938
+ accelerator_name: z.array(z.string()).optional()
939
+ })).optional(),
940
+ count_total: z.number().int().gte(0).optional(),
941
+ count_accelerators: z.number().int().gte(0).optional(),
942
+ count_instance_types: z.number().int().gte(0).optional(),
943
+ count_accelerators_instance_types: z.number().int().gte(0).optional()
944
+ }));
945
+ export const zGetInfrastructureRegionsResponse = z.object({});
946
+ export const zGetInvitesResponse = z.array(zInvite);
947
+ export const zPostInvitesResponse = zInvite;
948
+ export const zGetInvitesByCodeResponse = zInvite;
949
+ export const zGetOrganizationResponse = zOrganization;
950
+ export const zPostOrganizationResponse = zOrganization;
951
+ export const zPutOrganizationResponse = zOrganization;
952
+ export const zGetTokensResponse = z.array(zToken);
953
+ export const zPostTokensResponse = zToken;
954
+ export const zGetTokensByTokenIdResponse = zToken;
955
+ export const zPutTokensByTokenIdResponse = zToken;
956
+ export const zPutTokensByTokenIdSecretResponse = zToken;
957
+ export const zGetUsersOrganizationsByEmailResponse = z.array(z.object({
958
+ realm: z.string().optional(),
959
+ displayName: z.string().optional()
960
+ }));
961
+ export const zGetUsersResponse = z.array(zUser);
962
+ export const zPostUsersResponse = zUser;
963
+ export const zDeleteUsersByUserIdResponse = zUser;
964
+ export const zGetUsersByUserIdResponse = zUser;
965
+ export const zPutUsersByUserIdResponse = zUser;
966
+ export const zDeleteUsersByUserIdClustersByClusterIdResponse = zUser;
967
+ export const zPutUsersByUserIdClustersByClusterIdResponse = zUser;
968
+ //# sourceMappingURL=zod.gen.js.map