@cloudfleet/sdk 0.0.1-3de42b3 → 0.0.1-3f23569

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.
Files changed (68) hide show
  1. package/dist/client/client.gen.d.ts +3 -0
  2. package/dist/client/client.gen.d.ts.map +1 -0
  3. package/dist/client/client.gen.js +235 -0
  4. package/dist/client/client.gen.js.map +1 -0
  5. package/dist/client/index.d.ts +9 -0
  6. package/dist/client/index.d.ts.map +1 -0
  7. package/dist/client/index.js +7 -0
  8. package/dist/client/index.js.map +1 -0
  9. package/dist/client/types.gen.d.ts +118 -0
  10. package/dist/client/types.gen.d.ts.map +1 -0
  11. package/dist/client/types.gen.js +3 -0
  12. package/dist/client/types.gen.js.map +1 -0
  13. package/dist/client/utils.gen.d.ts +34 -0
  14. package/dist/client/utils.gen.d.ts.map +1 -0
  15. package/dist/client/utils.gen.js +229 -0
  16. package/dist/client/utils.gen.js.map +1 -0
  17. package/dist/client.gen.d.ts +4 -4
  18. package/dist/client.gen.d.ts.map +1 -1
  19. package/dist/client.gen.js +2 -4
  20. package/dist/client.gen.js.map +1 -1
  21. package/dist/core/auth.gen.d.ts +19 -0
  22. package/dist/core/auth.gen.d.ts.map +1 -0
  23. package/dist/core/auth.gen.js +15 -0
  24. package/dist/core/auth.gen.js.map +1 -0
  25. package/dist/core/bodySerializer.gen.d.ts +26 -0
  26. package/dist/core/bodySerializer.gen.d.ts.map +1 -0
  27. package/dist/core/bodySerializer.gen.js +58 -0
  28. package/dist/core/bodySerializer.gen.js.map +1 -0
  29. package/dist/core/params.gen.d.ts +44 -0
  30. package/dist/core/params.gen.d.ts.map +1 -0
  31. package/dist/core/params.gen.js +101 -0
  32. package/dist/core/params.gen.js.map +1 -0
  33. package/dist/core/pathSerializer.gen.d.ts +34 -0
  34. package/dist/core/pathSerializer.gen.d.ts.map +1 -0
  35. package/dist/core/pathSerializer.gen.js +107 -0
  36. package/dist/core/pathSerializer.gen.js.map +1 -0
  37. package/dist/core/queryKeySerializer.gen.d.ts +19 -0
  38. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -0
  39. package/dist/core/queryKeySerializer.gen.js +93 -0
  40. package/dist/core/queryKeySerializer.gen.js.map +1 -0
  41. package/dist/core/serverSentEvents.gen.d.ts +72 -0
  42. package/dist/core/serverSentEvents.gen.d.ts.map +1 -0
  43. package/dist/core/serverSentEvents.gen.js +134 -0
  44. package/dist/core/serverSentEvents.gen.js.map +1 -0
  45. package/dist/core/types.gen.d.ts +79 -0
  46. package/dist/core/types.gen.d.ts.map +1 -0
  47. package/dist/core/types.gen.js +3 -0
  48. package/dist/core/types.gen.js.map +1 -0
  49. package/dist/core/utils.gen.d.ts +20 -0
  50. package/dist/core/utils.gen.d.ts.map +1 -0
  51. package/dist/core/utils.gen.js +88 -0
  52. package/dist/core/utils.gen.js.map +1 -0
  53. package/dist/schemas.gen.d.ts +693 -585
  54. package/dist/schemas.gen.d.ts.map +1 -1
  55. package/dist/schemas.gen.js +1210 -678
  56. package/dist/schemas.gen.js.map +1 -1
  57. package/dist/sdk.gen.d.ts +141 -76
  58. package/dist/sdk.gen.d.ts.map +1 -1
  59. package/dist/sdk.gen.js +171 -185
  60. package/dist/sdk.gen.js.map +1 -1
  61. package/dist/services/kubernetes/api.d.ts +12 -12
  62. package/dist/types.gen.d.ts +605 -354
  63. package/dist/types.gen.d.ts.map +1 -1
  64. package/dist/zod.gen.d.ts +1821 -2209
  65. package/dist/zod.gen.d.ts.map +1 -1
  66. package/dist/zod.gen.js +687 -776
  67. package/dist/zod.gen.js.map +1 -1
  68. package/package.json +10 -7
package/dist/zod.gen.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
- import { z } from 'zod';
2
+ import * as z from 'zod';
3
3
  export const zBillingContact = z.object({
4
4
  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
5
  address1: z.string().optional(),
@@ -9,9 +9,8 @@ export const zBillingContact = z.object({
9
9
  state: z.string().optional(),
10
10
  country: z.string().optional(),
11
11
  phone: z.string().optional(),
12
- email: z.string().email(),
13
- first_name: z.string(),
14
- last_name: z.string(),
12
+ email: z.email(),
13
+ individual_name: z.string(),
15
14
  tax_id: z.string().optional(),
16
15
  tax_id_type: z.enum([
17
16
  'ad_nrt',
@@ -146,16 +145,12 @@ export const zBillingContact = z.object({
146
145
  });
147
146
  export const zBillingCredits = z.object({
148
147
  id: z.string().optional(),
149
- date_created: z.string().datetime(),
148
+ type: z.enum(['credit', 'discount']),
149
+ date_start: z.iso.datetime(),
150
+ date_end: z.iso.datetime().optional(),
150
151
  code: z.string(),
151
152
  description: z.string().optional(),
152
- products: z.array(z.string()).optional(),
153
- type: z.enum([
154
- 'credit',
155
- 'discount'
156
- ]),
157
- value: z.number(),
158
- billing_period: z.string().datetime(),
153
+ value_total: z.number(),
159
154
  value_remaining: z.number().optional()
160
155
  });
161
156
  export const zChartCreateInput = z.object({
@@ -198,25 +193,31 @@ export const zChartUpdateInput = z.object({
198
193
  });
199
194
  export const zClusterCreateInput = z.object({
200
195
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
196
+ tier: z.enum(['basic', 'pro']),
201
197
  region: z.enum([
202
- 'staging',
203
- 'northamerica-central-1'
198
+ 'staging-1a',
199
+ 'northamerica-central-1',
200
+ 'europe-central-1a',
201
+ 'northamerica-central-1a'
204
202
  ]).optional(),
205
- tier: z.enum([
206
- 'basic',
207
- 'pro'
208
- ]),
209
- 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')
203
+ version_channel: z.enum([
204
+ '1.x.x-cfke.x',
205
+ '1.31.x-cfke.x',
206
+ '1.32.x-cfke.x',
207
+ '1.33.x-cfke.x'
208
+ ]).optional()
210
209
  });
211
210
  export const zClusterJoinInformation = z.object({
212
211
  certificate_authority: z.string(),
213
- endpoint: z.string().url(),
212
+ endpoint: z.url(),
213
+ cluster_dns: z.string(),
214
214
  auth_key: z.string(),
215
215
  bootstrap_token: z.string(),
216
216
  versions: z.object({
217
217
  kubernetes: z.string(),
218
218
  tailscale: z.string(),
219
- containerd: z.string()
219
+ containerd: z.string(),
220
+ nvidia_driver: z.string()
220
221
  }),
221
222
  third_party_api_access_config: z.object({
222
223
  metadata_url: z.string(),
@@ -226,18 +227,17 @@ export const zClusterJoinInformation = z.object({
226
227
  });
227
228
  export const zCluster = z.object({
228
229
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
+ tier: z.enum(['basic', 'pro']),
229
231
  region: z.enum([
230
- 'staging',
231
- 'northamerica-central-1'
232
+ 'staging-1a',
233
+ 'northamerica-central-1',
234
+ 'europe-central-1a',
235
+ 'northamerica-central-1a'
232
236
  ]).optional(),
233
- tier: z.enum([
234
- 'basic',
235
- 'pro'
236
- ]),
237
- 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'),
238
- id: z.string().uuid(),
237
+ id: z.uuid(),
239
238
  status: z.enum([
240
239
  'active',
240
+ 'disabled',
241
241
  'deleted',
242
242
  'creating',
243
243
  'deployed',
@@ -245,19 +245,19 @@ export const zCluster = z.object({
245
245
  'updating'
246
246
  ]),
247
247
  endpoint: z.union([
248
- z.string().url(),
249
- z.enum([
250
- ''
251
- ])
248
+ z.url(),
249
+ z.enum([''])
252
250
  ]).optional(),
253
251
  certificate_ca: z.string().optional(),
254
252
  version_current: z.string().optional(),
255
253
  created_at: z.string().optional(),
256
254
  updated_at: z.string().optional(),
257
- ready: z.boolean().optional()
255
+ ready: z.boolean().optional(),
256
+ 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()
258
257
  });
259
258
  export const zClusterUpdateInput = z.object({
260
259
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
260
+ tier: z.enum(['basic', 'pro']),
261
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()
262
262
  });
263
263
  export const zFleetCreateInput = z.object({
@@ -268,25 +268,15 @@ export const zFleetCreateInput = z.object({
268
268
  enabled: z.boolean().optional().default(true),
269
269
  project: z.string()
270
270
  }).optional(),
271
- hetzner: z.union([
272
- z.object({
273
- enabled: z.boolean().optional().default(true),
274
- apiKey: z.string().optional()
275
- }),
276
- z.object({
277
- apiKey: z.string().optional(),
278
- enabled: z.boolean().optional().default(true)
279
- })
280
- ]).optional(),
271
+ hetzner: z.object({
272
+ enabled: z.boolean().optional().default(true),
273
+ apiKey: z.string()
274
+ }).optional(),
281
275
  aws: z.object({
282
276
  enabled: z.boolean().optional().default(true),
283
277
  controllerRoleArn: z.string()
284
278
  }).optional(),
285
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
286
- type: z.enum([
287
- 'managed',
288
- 'connected'
289
- ])
279
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
290
280
  });
291
281
  export const zFleet = z.object({
292
282
  limits: z.object({
@@ -296,25 +286,15 @@ export const zFleet = z.object({
296
286
  enabled: z.boolean().optional().default(true),
297
287
  project: z.string()
298
288
  }).optional(),
299
- hetzner: z.union([
300
- z.object({
301
- enabled: z.boolean().optional().default(true),
302
- apiKey: z.string().optional()
303
- }),
304
- z.object({
305
- apiKey: z.string().optional(),
306
- enabled: z.boolean().optional().default(true)
307
- })
308
- ]).optional(),
289
+ hetzner: z.object({
290
+ enabled: z.boolean().optional().default(true),
291
+ apiKey: z.string()
292
+ }).optional(),
309
293
  aws: z.object({
310
294
  enabled: z.boolean().optional().default(true),
311
295
  controllerRoleArn: z.string()
312
296
  }).optional(),
313
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
314
- type: z.enum([
315
- 'managed',
316
- 'connected'
317
- ])
297
+ id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
318
298
  });
319
299
  export const zFleetUpdateInput = z.object({
320
300
  limits: z.object({
@@ -324,16 +304,10 @@ export const zFleetUpdateInput = z.object({
324
304
  enabled: z.boolean().optional().default(true),
325
305
  project: z.string()
326
306
  }).optional(),
327
- hetzner: z.union([
328
- z.object({
329
- enabled: z.boolean().optional().default(true),
330
- apiKey: z.string().optional()
331
- }),
332
- z.object({
333
- apiKey: z.string().optional(),
334
- enabled: z.boolean().optional().default(true)
335
- })
336
- ]).optional(),
307
+ hetzner: z.object({
308
+ enabled: z.boolean().optional().default(true),
309
+ apiKey: z.string()
310
+ }).optional(),
337
311
  aws: z.object({
338
312
  enabled: z.boolean().optional().default(true),
339
313
  controllerRoleArn: z.string()
@@ -341,634 +315,74 @@ export const zFleetUpdateInput = z.object({
341
315
  });
342
316
  export const zInvite = z.object({
343
317
  id: z.string().optional(),
344
- organization_id: z.string().uuid().optional(),
345
- date_created: z.string().datetime(),
346
- email: z.string().email().optional(),
318
+ organization_id: z.uuid().optional(),
319
+ date_created: z.iso.datetime(),
320
+ email: z.email().optional(),
347
321
  code: z.string().optional()
348
322
  });
349
323
  export const zInvoice = z.object({
350
- id: z.string().uuid().optional(),
351
- organizationId: z.string().uuid().optional(),
352
- status: z.enum([
353
- 'DRAFT',
354
- 'COMMITTED',
355
- 'VOID'
356
- ]).optional(),
357
- amount: z.number().optional(),
358
- currency: z.enum([
359
- 'AED',
360
- 'AFN',
361
- 'ALL',
362
- 'AMD',
363
- 'ANG',
364
- 'AOA',
365
- 'ARS',
366
- 'AUD',
367
- 'AWG',
368
- 'AZN',
369
- 'BAM',
370
- 'BBD',
371
- 'BDT',
372
- 'BGN',
373
- 'BHD',
374
- 'BIF',
375
- 'BMD',
376
- 'BND',
377
- 'BOB',
378
- 'BRL',
379
- 'BSD',
380
- 'BTN',
381
- 'BWP',
382
- 'BYR',
383
- 'BZD',
384
- 'CAD',
385
- 'CDF',
386
- 'CHF',
387
- 'CLP',
388
- 'CNY',
389
- 'COP',
390
- 'CRC',
391
- 'CUC',
392
- 'CUP',
393
- 'CVE',
394
- 'CZK',
395
- 'DJF',
396
- 'DKK',
397
- 'DOP',
398
- 'DZD',
399
- 'EGP',
400
- 'ERN',
401
- 'ETB',
402
- 'EUR',
403
- 'FJD',
404
- 'FKP',
405
- 'GBP',
406
- 'GEL',
407
- 'GGP',
408
- 'GHS',
409
- 'GIP',
410
- 'GMD',
411
- 'GNF',
412
- 'GTQ',
413
- 'GYD',
414
- 'HKD',
415
- 'HNL',
416
- 'HRK',
417
- 'HTG',
418
- 'HUF',
419
- 'IDR',
420
- 'ILS',
421
- 'IMP',
422
- 'INR',
423
- 'IQD',
424
- 'IRR',
425
- 'ISK',
426
- 'JEP',
427
- 'JMD',
428
- 'JOD',
429
- 'JPY',
430
- 'KES',
431
- 'KGS',
432
- 'KHR',
433
- 'KMF',
434
- 'KPW',
435
- 'KRW',
436
- 'KWD',
437
- 'KYD',
438
- 'KZT',
439
- 'LAK',
440
- 'LBP',
441
- 'LKR',
442
- 'LRD',
443
- 'LSL',
444
- 'LTL',
445
- 'LVL',
446
- 'LYD',
447
- 'MAD',
448
- 'MDL',
449
- 'MGA',
450
- 'MKD',
451
- 'MMK',
452
- 'MNT',
453
- 'MOP',
454
- 'MRO',
455
- 'MUR',
456
- 'MVR',
457
- 'MWK',
458
- 'MXN',
459
- 'MYR',
460
- 'MZN',
461
- 'NAD',
462
- 'NGN',
463
- 'NIO',
464
- 'NOK',
465
- 'NPR',
466
- 'NZD',
467
- 'OMR',
468
- 'PAB',
469
- 'PEN',
470
- 'PGK',
471
- 'PHP',
472
- 'PKR',
473
- 'PLN',
474
- 'PYG',
475
- 'QAR',
476
- 'RON',
477
- 'RSD',
478
- 'RUB',
479
- 'RWF',
480
- 'SAR',
481
- 'SBD',
482
- 'SCR',
483
- 'SDG',
484
- 'SEK',
485
- 'SGD',
486
- 'SHP',
487
- 'SLL',
488
- 'SOS',
489
- 'SPL',
490
- 'SRD',
491
- 'STD',
492
- 'SVC',
493
- 'SYP',
494
- 'SZL',
495
- 'THB',
496
- 'TJS',
497
- 'TMT',
498
- 'TND',
499
- 'TOP',
500
- 'TRY',
501
- 'TTD',
502
- 'TVD',
503
- 'TWD',
504
- 'TZS',
505
- 'UAH',
506
- 'UGX',
507
- 'USD',
508
- 'UYU',
509
- 'UZS',
510
- 'VEF',
511
- 'VND',
512
- 'VUV',
513
- 'WST',
514
- 'XAF',
515
- 'XCD',
516
- 'XDR',
517
- 'XOF',
518
- 'XPF',
519
- 'YER',
520
- 'ZAR',
521
- 'ZMW',
522
- 'ZWD',
523
- 'BTC'
524
- ]).optional(),
525
- creditAdj: z.number().optional(),
526
- refundAdj: z.number().optional(),
527
- invoiceDate: z.string().optional(),
528
- targetDate: z.string().optional(),
529
- invoiceNumber: z.string().optional(),
530
- balance: z.number().optional(),
531
- bundleKeys: z.string().optional(),
532
- credits: z.array(z.object({
533
- id: z.string().uuid().optional(),
534
- linkedInvoiceItemId: z.string().uuid().optional(),
535
- productName: z.string().optional(),
536
- planName: z.string().optional(),
537
- phaseName: z.string().optional(),
538
- usageName: z.string().optional(),
539
- prettyProductName: z.string().optional(),
540
- prettyPlanName: z.string().optional(),
541
- prettyPhaseName: z.string().optional(),
542
- prettyUsageName: z.string().optional(),
543
- itemType: z.enum([
544
- 'EXTERNAL_CHARGE',
545
- 'FIXED',
546
- 'RECURRING',
547
- 'REPAIR_ADJ',
548
- 'CBA_ADJ',
549
- 'CREDIT_ADJ',
550
- 'ITEM_ADJ',
551
- 'USAGE',
552
- 'TAX',
553
- 'PARENT_SUMMARY'
554
- ]).optional(),
555
- description: z.string().optional(),
556
- startDate: z.string().optional(),
557
- endDate: z.string().optional(),
558
- amount: z.number().optional(),
559
- rate: z.number().optional(),
560
- currency: z.enum([
561
- 'AED',
562
- 'AFN',
563
- 'ALL',
564
- 'AMD',
565
- 'ANG',
566
- 'AOA',
567
- 'ARS',
568
- 'AUD',
569
- 'AWG',
570
- 'AZN',
571
- 'BAM',
572
- 'BBD',
573
- 'BDT',
574
- 'BGN',
575
- 'BHD',
576
- 'BIF',
577
- 'BMD',
578
- 'BND',
579
- 'BOB',
580
- 'BRL',
581
- 'BSD',
582
- 'BTN',
583
- 'BWP',
584
- 'BYR',
585
- 'BZD',
586
- 'CAD',
587
- 'CDF',
588
- 'CHF',
589
- 'CLP',
590
- 'CNY',
591
- 'COP',
592
- 'CRC',
593
- 'CUC',
594
- 'CUP',
595
- 'CVE',
596
- 'CZK',
597
- 'DJF',
598
- 'DKK',
599
- 'DOP',
600
- 'DZD',
601
- 'EGP',
602
- 'ERN',
603
- 'ETB',
604
- 'EUR',
605
- 'FJD',
606
- 'FKP',
607
- 'GBP',
608
- 'GEL',
609
- 'GGP',
610
- 'GHS',
611
- 'GIP',
612
- 'GMD',
613
- 'GNF',
614
- 'GTQ',
615
- 'GYD',
616
- 'HKD',
617
- 'HNL',
618
- 'HRK',
619
- 'HTG',
620
- 'HUF',
621
- 'IDR',
622
- 'ILS',
623
- 'IMP',
624
- 'INR',
625
- 'IQD',
626
- 'IRR',
627
- 'ISK',
628
- 'JEP',
629
- 'JMD',
630
- 'JOD',
631
- 'JPY',
632
- 'KES',
633
- 'KGS',
634
- 'KHR',
635
- 'KMF',
636
- 'KPW',
637
- 'KRW',
638
- 'KWD',
639
- 'KYD',
640
- 'KZT',
641
- 'LAK',
642
- 'LBP',
643
- 'LKR',
644
- 'LRD',
645
- 'LSL',
646
- 'LTL',
647
- 'LVL',
648
- 'LYD',
649
- 'MAD',
650
- 'MDL',
651
- 'MGA',
652
- 'MKD',
653
- 'MMK',
654
- 'MNT',
655
- 'MOP',
656
- 'MRO',
657
- 'MUR',
658
- 'MVR',
659
- 'MWK',
660
- 'MXN',
661
- 'MYR',
662
- 'MZN',
663
- 'NAD',
664
- 'NGN',
665
- 'NIO',
666
- 'NOK',
667
- 'NPR',
668
- 'NZD',
669
- 'OMR',
670
- 'PAB',
671
- 'PEN',
672
- 'PGK',
673
- 'PHP',
674
- 'PKR',
675
- 'PLN',
676
- 'PYG',
677
- 'QAR',
678
- 'RON',
679
- 'RSD',
680
- 'RUB',
681
- 'RWF',
682
- 'SAR',
683
- 'SBD',
684
- 'SCR',
685
- 'SDG',
686
- 'SEK',
687
- 'SGD',
688
- 'SHP',
689
- 'SLL',
690
- 'SOS',
691
- 'SPL',
692
- 'SRD',
693
- 'STD',
694
- 'SVC',
695
- 'SYP',
696
- 'SZL',
697
- 'THB',
698
- 'TJS',
699
- 'TMT',
700
- 'TND',
701
- 'TOP',
702
- 'TRY',
703
- 'TTD',
704
- 'TVD',
705
- 'TWD',
706
- 'TZS',
707
- 'UAH',
708
- 'UGX',
709
- 'USD',
710
- 'UYU',
711
- 'UZS',
712
- 'VEF',
713
- 'VND',
714
- 'VUV',
715
- 'WST',
716
- 'XAF',
717
- 'XCD',
718
- 'XDR',
719
- 'XOF',
720
- 'XPF',
721
- 'YER',
722
- 'ZAR',
723
- 'ZMW',
724
- 'ZWD',
725
- 'BTC'
726
- ]).optional(),
727
- quantity: z.number().optional(),
728
- itemDetails: z.string().optional(),
729
- catalogEffectiveDate: z.string().optional(),
730
- childItems: z.array(z.unknown()).optional()
731
- })).optional(),
732
- items: z.array(z.object({
733
- id: z.string().uuid().optional(),
734
- linkedInvoiceItemId: z.string().uuid().optional(),
735
- productName: z.string().optional(),
736
- planName: z.string().optional(),
737
- phaseName: z.string().optional(),
738
- usageName: z.string().optional(),
739
- prettyProductName: z.string().optional(),
740
- prettyPlanName: z.string().optional(),
741
- prettyPhaseName: z.string().optional(),
742
- prettyUsageName: z.string().optional(),
743
- itemType: z.enum([
744
- 'EXTERNAL_CHARGE',
745
- 'FIXED',
746
- 'RECURRING',
747
- 'REPAIR_ADJ',
748
- 'CBA_ADJ',
749
- 'CREDIT_ADJ',
750
- 'ITEM_ADJ',
751
- 'USAGE',
752
- 'TAX',
753
- 'PARENT_SUMMARY'
754
- ]).optional(),
755
- description: z.string().optional(),
756
- startDate: z.string().optional(),
757
- endDate: z.string().optional(),
758
- amount: z.number().optional(),
759
- rate: z.number().optional(),
760
- currency: z.enum([
761
- 'AED',
762
- 'AFN',
763
- 'ALL',
764
- 'AMD',
765
- 'ANG',
766
- 'AOA',
767
- 'ARS',
768
- 'AUD',
769
- 'AWG',
770
- 'AZN',
771
- 'BAM',
772
- 'BBD',
773
- 'BDT',
774
- 'BGN',
775
- 'BHD',
776
- 'BIF',
777
- 'BMD',
778
- 'BND',
779
- 'BOB',
780
- 'BRL',
781
- 'BSD',
782
- 'BTN',
783
- 'BWP',
784
- 'BYR',
785
- 'BZD',
786
- 'CAD',
787
- 'CDF',
788
- 'CHF',
789
- 'CLP',
790
- 'CNY',
791
- 'COP',
792
- 'CRC',
793
- 'CUC',
794
- 'CUP',
795
- 'CVE',
796
- 'CZK',
797
- 'DJF',
798
- 'DKK',
799
- 'DOP',
800
- 'DZD',
801
- 'EGP',
802
- 'ERN',
803
- 'ETB',
804
- 'EUR',
805
- 'FJD',
806
- 'FKP',
807
- 'GBP',
808
- 'GEL',
809
- 'GGP',
810
- 'GHS',
811
- 'GIP',
812
- 'GMD',
813
- 'GNF',
814
- 'GTQ',
815
- 'GYD',
816
- 'HKD',
817
- 'HNL',
818
- 'HRK',
819
- 'HTG',
820
- 'HUF',
821
- 'IDR',
822
- 'ILS',
823
- 'IMP',
824
- 'INR',
825
- 'IQD',
826
- 'IRR',
827
- 'ISK',
828
- 'JEP',
829
- 'JMD',
830
- 'JOD',
831
- 'JPY',
832
- 'KES',
833
- 'KGS',
834
- 'KHR',
835
- 'KMF',
836
- 'KPW',
837
- 'KRW',
838
- 'KWD',
839
- 'KYD',
840
- 'KZT',
841
- 'LAK',
842
- 'LBP',
843
- 'LKR',
844
- 'LRD',
845
- 'LSL',
846
- 'LTL',
847
- 'LVL',
848
- 'LYD',
849
- 'MAD',
850
- 'MDL',
851
- 'MGA',
852
- 'MKD',
853
- 'MMK',
854
- 'MNT',
855
- 'MOP',
856
- 'MRO',
857
- 'MUR',
858
- 'MVR',
859
- 'MWK',
860
- 'MXN',
861
- 'MYR',
862
- 'MZN',
863
- 'NAD',
864
- 'NGN',
865
- 'NIO',
866
- 'NOK',
867
- 'NPR',
868
- 'NZD',
869
- 'OMR',
870
- 'PAB',
871
- 'PEN',
872
- 'PGK',
873
- 'PHP',
874
- 'PKR',
875
- 'PLN',
876
- 'PYG',
877
- 'QAR',
878
- 'RON',
879
- 'RSD',
880
- 'RUB',
881
- 'RWF',
882
- 'SAR',
883
- 'SBD',
884
- 'SCR',
885
- 'SDG',
886
- 'SEK',
887
- 'SGD',
888
- 'SHP',
889
- 'SLL',
890
- 'SOS',
891
- 'SPL',
892
- 'SRD',
893
- 'STD',
894
- 'SVC',
895
- 'SYP',
896
- 'SZL',
897
- 'THB',
898
- 'TJS',
899
- 'TMT',
900
- 'TND',
901
- 'TOP',
902
- 'TRY',
903
- 'TTD',
904
- 'TVD',
905
- 'TWD',
906
- 'TZS',
907
- 'UAH',
908
- 'UGX',
909
- 'USD',
910
- 'UYU',
911
- 'UZS',
912
- 'VEF',
913
- 'VND',
914
- 'VUV',
915
- 'WST',
916
- 'XAF',
917
- 'XCD',
918
- 'XDR',
919
- 'XOF',
920
- 'XPF',
921
- 'YER',
922
- 'ZAR',
923
- 'ZMW',
924
- 'ZWD',
925
- 'BTC'
926
- ]).optional(),
927
- quantity: z.number().optional(),
928
- itemDetails: z.string().optional(),
929
- catalogEffectiveDate: z.string().optional(),
930
- childItems: z.array(z.unknown()).optional()
931
- })).optional()
324
+ id: z.string().optional(),
325
+ number: z.string().optional(),
326
+ status: z.string().optional(),
327
+ total: z.number().optional(),
328
+ currency: z.string().optional(),
329
+ created: z.iso.datetime(),
330
+ period_start: z.iso.datetime(),
331
+ period_end: z.iso.datetime(),
332
+ invoice_pdf: z.string().optional()
333
+ });
334
+ export const zMarketplaceListingFiles = z.object({
335
+ chartYaml: z.string().optional(),
336
+ valuesYaml: z.string().optional(),
337
+ valuesSchemaJson: z.string().optional()
932
338
  });
933
339
  export const zMarketplaceListing = z.object({
934
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
935
340
  name: z.string(),
936
- developer: z.string(),
937
- description: z.string(),
938
- logoUrl: z.string(),
939
- longDescription: z.string(),
940
- categories: z.array(z.string()),
341
+ 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-]+)*))?$/)),
941
342
  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-]+)*))?$/)),
942
- value_schemas: z.array(z.object({
943
- version: 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-]+)*))?$/),
944
- schema: z.string(),
945
- placeholder: z.string()
946
- }))
343
+ latestVersion: z.string(),
344
+ metadata: z.object({
345
+ name: z.string(),
346
+ version: z.string(),
347
+ description: z.string().optional(),
348
+ appVersion: z.string().optional(),
349
+ apiVersion: z.string().optional(),
350
+ keywords: z.array(z.string()).optional(),
351
+ home: z.string().optional(),
352
+ icon: z.string().optional(),
353
+ sources: z.array(z.string()).optional(),
354
+ maintainers: z.array(z.object({
355
+ name: z.string(),
356
+ email: z.string().optional()
357
+ })).optional()
358
+ }).optional()
947
359
  });
948
360
  export const zOrganizationCreateInput = z.object({
949
- email: z.string().email(),
361
+ email: z.email(),
950
362
  first_name: z.string(),
951
363
  last_name: z.string(),
952
364
  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,}$/),
953
365
  password: z.string().min(8)
954
366
  });
955
367
  export const zOrganization = z.object({
956
- id: z.string().uuid(),
368
+ id: z.uuid(),
957
369
  name: z.string().min(2).max(120).optional(),
958
- date_created: z.string().datetime(),
370
+ date_created: z.iso.datetime(),
959
371
  quota: z.object({
960
- basic_clusters_max: z.number().int().gte(0),
961
- basic_clusters_available: z.number().int(),
962
- pro_clusters_max: z.number().int().gte(0),
963
- pro_clusters_available: z.number().int(),
964
- fleets_max: z.number().int().gte(0),
965
- managed_fleets_cpu_max: z.number().int().gte(0),
372
+ basic_clusters_max: z.int().gte(0),
373
+ basic_clusters_available: z.int(),
374
+ pro_clusters_max: z.int().gte(0),
375
+ pro_clusters_available: z.int(),
376
+ fleets_max: z.int().gte(0),
966
377
  cluster_tiers: z.array(z.string()).min(0),
967
378
  regions: z.array(z.string()).min(1),
968
379
  versions: z.array(z.object({
969
380
  id: z.string(),
970
381
  label: z.string()
971
- })).min(1)
382
+ })).min(1),
383
+ copilot_user_hourly_tokens: z.int().gte(0),
384
+ copilot_organization_hourly_tokens: z.int().gte(0),
385
+ cfcr_storage_gb: z.int().gte(-1)
972
386
  }),
973
387
  status: z.enum([
974
388
  'active',
@@ -977,14 +391,12 @@ export const zOrganization = z.object({
977
391
  ])
978
392
  });
979
393
  export const zPaymentMethod = z.object({
980
- id: z.string().uuid(),
394
+ id: z.uuid(),
981
395
  setup: z.boolean(),
982
- type: z.enum([
983
- 'card'
984
- ]),
396
+ type: z.enum(['card']),
985
397
  last4: z.string(),
986
- exp_month: z.number().int().gte(1).lte(12),
987
- exp_year: z.number().int().gte(2024),
398
+ exp_month: z.int().gte(1).lte(12),
399
+ exp_year: z.int().gte(2024),
988
400
  brand: z.enum([
989
401
  'amex',
990
402
  'diners',
@@ -997,164 +409,663 @@ export const zPaymentMethod = z.object({
997
409
  'unknown'
998
410
  ])
999
411
  });
412
+ export const zPlatformQuota = z.object({
413
+ basic_clusters_max: z.int().gte(0),
414
+ basic_clusters_available: z.int(),
415
+ pro_clusters_max: z.int().gte(0),
416
+ pro_clusters_available: z.int(),
417
+ fleets_max: z.int().gte(0),
418
+ cluster_tiers: z.array(z.string()).min(0),
419
+ regions: z.array(z.string()).min(1),
420
+ versions: z.array(z.object({
421
+ id: z.string(),
422
+ label: z.string()
423
+ })).min(1),
424
+ copilot_user_hourly_tokens: z.int().gte(0),
425
+ copilot_organization_hourly_tokens: z.int().gte(0),
426
+ cfcr_storage_gb: z.int().gte(-1)
427
+ });
428
+ export const zRegistryRepository = z.object({
429
+ name: z.string(),
430
+ region: z.string(),
431
+ uri: z.string()
432
+ });
433
+ export const zRegistryRepositoryWithTags = z.object({
434
+ name: z.string(),
435
+ region: z.string(),
436
+ uri: z.string(),
437
+ tags: z.array(z.object({
438
+ name: z.string(),
439
+ size: z.number(),
440
+ mediaType: z.string().optional(),
441
+ platforms: z.array(z.string()).optional()
442
+ })),
443
+ totalSize: z.number()
444
+ });
445
+ export const zRegistryTag = z.object({
446
+ name: z.string(),
447
+ digest: z.string(),
448
+ mediaType: z.string().optional(),
449
+ config: z.object({
450
+ size: z.number()
451
+ }).optional(),
452
+ layers: z.array(z.object({
453
+ digest: z.string().optional(),
454
+ size: z.number()
455
+ })).optional(),
456
+ manifests: z.array(z.object({
457
+ digest: z.string(),
458
+ platform: z.object({
459
+ architecture: z.string(),
460
+ os: z.string(),
461
+ variant: z.string().optional()
462
+ }).optional(),
463
+ layers: z.array(z.object({
464
+ digest: z.string().optional(),
465
+ size: z.number()
466
+ })).optional(),
467
+ size: z.number().optional()
468
+ })).optional(),
469
+ size: z.number(),
470
+ region: z.string(),
471
+ repository: z.string(),
472
+ uri: z.string()
473
+ });
1000
474
  export const zTokenCreateInput = z.object({
1001
475
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
1002
- role: z.enum([
1003
- 'Administrator',
1004
- 'User'
1005
- ])
476
+ role: z.enum(['Administrator', 'User'])
1006
477
  });
1007
478
  export const zToken = z.object({
1008
479
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
1009
- role: z.enum([
1010
- 'Administrator',
1011
- 'User'
1012
- ]),
480
+ role: z.enum(['Administrator', 'User']),
1013
481
  id: z.string().optional(),
1014
482
  secret: z.string().optional(),
1015
- date_created: z.string().datetime()
483
+ date_created: z.iso.datetime()
1016
484
  });
1017
485
  export const zTokenUpdateInput = z.object({
1018
486
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
1019
- role: z.enum([
1020
- 'Administrator',
1021
- 'User'
1022
- ]).optional()
487
+ role: z.enum(['Administrator', 'User']).optional()
488
+ });
489
+ export const zUsageFacets = z.object({
490
+ cluster_id: z.array(z.string()).optional(),
491
+ product: z.array(z.string()).optional()
492
+ });
493
+ export const zUsageResponse = z.object({
494
+ data: z.array(z.object({
495
+ hour: z.string(),
496
+ cluster_id: z.string(),
497
+ product: z.string(),
498
+ value: z.number(),
499
+ price: z.number(),
500
+ total: z.number()
501
+ })),
502
+ facets: z.object({
503
+ cluster_id: z.array(z.string()).optional(),
504
+ product: z.array(z.string()).optional()
505
+ })
1023
506
  });
1024
507
  export const zUsage = z.object({
1025
- hour: z.string().optional(),
1026
- cluster_id: z.string().uuid(),
1027
- cluster_tier: z.enum([
1028
- 'basic',
1029
- 'pro',
1030
- ''
1031
- ]),
1032
- product: z.enum([
1033
- 'cfke_controlplane',
1034
- 'cfke_connected_nodes',
1035
- 'infra_compute',
1036
- 'infra_storage',
1037
- 'infra_loadbalancing',
1038
- 'infra_traffic',
1039
- 'cfcr_storage'
1040
- ]),
1041
- node_name: z.string(),
1042
- sku: z.string(),
1043
- cpu: z.union([
1044
- z.number(),
1045
- z.enum([
1046
- ''
1047
- ])
1048
- ]),
1049
- price: z.union([
1050
- z.number(),
1051
- z.enum([
1052
- ''
1053
- ])
1054
- ]),
1055
- value: z.union([
1056
- z.number(),
1057
- z.enum([
1058
- ''
1059
- ])
1060
- ]),
1061
- total: z.union([
1062
- z.number(),
1063
- z.enum([
1064
- ''
1065
- ])
1066
- ])
508
+ hour: z.string(),
509
+ cluster_id: z.string(),
510
+ product: z.string(),
511
+ value: z.number(),
512
+ price: z.number(),
513
+ total: z.number()
1067
514
  });
1068
515
  export const zUserCreateInput = z.object({
1069
- email: z.string().email(),
516
+ email: z.email(),
1070
517
  first_name: z.string().min(1).max(50),
1071
518
  last_name: z.string().min(1).max(50),
1072
519
  code: z.string(),
1073
520
  password: z.string().min(8),
1074
- status: z.enum([
1075
- 'active',
1076
- 'inactive'
1077
- ]).optional(),
1078
- role: z.enum([
1079
- 'Administrator',
1080
- 'User'
1081
- ]).optional()
521
+ status: z.enum(['active', 'inactive']).optional(),
522
+ role: z.enum(['Administrator', 'User']).optional()
1082
523
  });
1083
524
  export const zUser = z.object({
1084
- email: z.string().email(),
525
+ email: z.email(),
1085
526
  first_name: z.string().min(1).max(50),
1086
527
  last_name: z.string().min(1).max(50),
1087
- role: z.enum([
1088
- 'Administrator',
1089
- 'User'
1090
- ]),
1091
- status: z.enum([
1092
- 'active',
1093
- 'inactive'
1094
- ]),
1095
- id: z.string().uuid(),
1096
- date_created: z.string().datetime()
528
+ role: z.enum(['Administrator', 'User']),
529
+ status: z.enum(['active', 'inactive']),
530
+ id: z.uuid(),
531
+ date_created: z.iso.datetime()
1097
532
  });
1098
533
  export const zUserUpdateInput = z.object({
1099
- email: z.string().email().optional(),
534
+ email: z.email().optional(),
1100
535
  first_name: z.string().min(1).max(50).optional(),
1101
536
  last_name: z.string().min(1).max(50).optional(),
1102
- role: z.enum([
1103
- 'Administrator',
1104
- 'User'
1105
- ]).optional(),
1106
- status: z.enum([
1107
- 'active',
1108
- 'inactive'
1109
- ]).optional()
537
+ role: z.enum(['Administrator', 'User']).optional(),
538
+ status: z.enum(['active', 'inactive']).optional()
539
+ });
540
+ export const zGetUsageData = z.object({
541
+ body: z.never().optional(),
542
+ path: z.never().optional(),
543
+ query: z.object({
544
+ granularity: z.enum([
545
+ 'hourly',
546
+ 'daily',
547
+ 'monthly'
548
+ ]).optional()
549
+ }).optional()
1110
550
  });
1111
- export const zGetUsageResponse = z.array(zUsage);
1112
- export const zGetBalanceResponse = z.number();
551
+ /**
552
+ * Usage data with facets for filtering
553
+ */
554
+ export const zGetUsageResponse = zUsageResponse;
555
+ export const zGetPaymentMethodData = z.object({
556
+ body: z.never().optional(),
557
+ path: z.never().optional(),
558
+ query: z.never().optional()
559
+ });
560
+ /**
561
+ * Redacted payment card information.
562
+ */
1113
563
  export const zGetPaymentMethodResponse = zPaymentMethod;
564
+ export const zGetPaymentMethodSecretData = z.object({
565
+ body: z.never().optional(),
566
+ path: z.never().optional(),
567
+ query: z.never().optional()
568
+ });
569
+ /**
570
+ * 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.
571
+ *
572
+ */
1114
573
  export const zGetPaymentMethodSecretResponse = z.object({
1115
574
  id: z.string().optional()
1116
575
  });
576
+ export const zListInvoicesData = z.object({
577
+ body: z.never().optional(),
578
+ path: z.never().optional(),
579
+ query: z.never().optional()
580
+ });
581
+ /**
582
+ * An array of usage records.
583
+ */
1117
584
  export const zListInvoicesResponse = z.array(zInvoice);
1118
- export const zGetInvoiceResponse = z.object({
1119
- html: z.string().optional()
585
+ export const zGetContactData = z.object({
586
+ body: z.never().optional(),
587
+ path: z.never().optional(),
588
+ query: z.never().optional()
1120
589
  });
590
+ /**
591
+ * Returns a single object containing organization contact and billing address details.
592
+ */
1121
593
  export const zGetContactResponse = zBillingContact;
594
+ export const zUpdateContactData = z.object({
595
+ body: zBillingContact,
596
+ path: z.never().optional(),
597
+ query: z.never().optional()
598
+ });
599
+ /**
600
+ * Successfully updated. Returns updated organization details.
601
+ */
1122
602
  export const zUpdateContactResponse = zBillingContact;
603
+ export const zGetCreditsData = z.object({
604
+ body: z.never().optional(),
605
+ path: z.never().optional(),
606
+ query: z.never().optional()
607
+ });
608
+ /**
609
+ * An array of the applied promotional credits records.
610
+ */
1123
611
  export const zGetCreditsResponse = z.array(zBillingCredits);
612
+ export const zRedeemCreditsData = z.object({
613
+ body: z.object({
614
+ code: z.string().optional()
615
+ }),
616
+ path: z.never().optional(),
617
+ query: z.never().optional()
618
+ });
619
+ export const zListChartsData = z.object({
620
+ body: z.never().optional(),
621
+ path: z.object({
622
+ cluster_id: z.string()
623
+ }),
624
+ query: z.never().optional()
625
+ });
626
+ /**
627
+ * An array of charts
628
+ */
1124
629
  export const zListChartsResponse = z.array(zChart);
630
+ export const zCreateChartData = z.object({
631
+ body: zChartCreateInput,
632
+ path: z.object({
633
+ cluster_id: z.string()
634
+ }),
635
+ query: z.never().optional()
636
+ });
637
+ /**
638
+ * Successfully created. Returns created Chart ID.
639
+ */
1125
640
  export const zCreateChartResponse = z.string();
641
+ export const zDeleteChartData = z.object({
642
+ body: z.never().optional(),
643
+ path: z.object({
644
+ cluster_id: z.string(),
645
+ chart_name: z.string()
646
+ }),
647
+ query: z.never().optional()
648
+ });
649
+ /**
650
+ * Successfully deleted.
651
+ */
1126
652
  export const zDeleteChartResponse = z.string();
653
+ export const zGetChartData = z.object({
654
+ body: z.never().optional(),
655
+ path: z.object({
656
+ cluster_id: z.string(),
657
+ chart_name: z.string()
658
+ }),
659
+ query: z.never().optional()
660
+ });
661
+ /**
662
+ * Returns a single object containing chart details.
663
+ */
1127
664
  export const zGetChartResponse = zChart;
665
+ export const zUpdateChartData = z.object({
666
+ body: zChartUpdateInput,
667
+ path: z.object({
668
+ cluster_id: z.string(),
669
+ chart_name: z.string()
670
+ }),
671
+ query: z.never().optional()
672
+ });
673
+ /**
674
+ * Successfully updated.
675
+ */
1128
676
  export const zUpdateChartResponse = z.string();
677
+ export const zListFleetsData = z.object({
678
+ body: z.never().optional(),
679
+ path: z.object({
680
+ cluster_id: z.string()
681
+ }),
682
+ query: z.never().optional()
683
+ });
684
+ /**
685
+ * An array of fleets
686
+ */
1129
687
  export const zListFleetsResponse = z.array(zFleet);
688
+ export const zCreateFleetData = z.object({
689
+ body: zFleetCreateInput,
690
+ path: z.object({
691
+ cluster_id: z.string()
692
+ }),
693
+ query: z.never().optional()
694
+ });
695
+ /**
696
+ * Successfully created. Returns created Fleet ID.
697
+ */
1130
698
  export const zCreateFleetResponse = z.string();
699
+ export const zDeleteFleetData = z.object({
700
+ body: z.never().optional(),
701
+ path: z.object({
702
+ cluster_id: z.string(),
703
+ fleet_name: z.string()
704
+ }),
705
+ query: z.never().optional()
706
+ });
707
+ /**
708
+ * Successfully deleted.
709
+ */
1131
710
  export const zDeleteFleetResponse = z.string();
711
+ export const zGetFleetData = z.object({
712
+ body: z.never().optional(),
713
+ path: z.object({
714
+ cluster_id: z.string(),
715
+ fleet_name: z.string()
716
+ }),
717
+ query: z.never().optional()
718
+ });
719
+ /**
720
+ * Returns a single object containing fleet details.
721
+ */
1132
722
  export const zGetFleetResponse = zFleet;
723
+ export const zUpdateFleetData = z.object({
724
+ body: zFleetUpdateInput,
725
+ path: z.object({
726
+ cluster_id: z.string(),
727
+ fleet_name: z.string()
728
+ }),
729
+ query: z.never().optional()
730
+ });
731
+ /**
732
+ * Successfully updated.
733
+ */
1133
734
  export const zUpdateFleetResponse = z.string();
735
+ export const zQueryClusterData = z.object({
736
+ body: z.never().optional(),
737
+ path: z.object({
738
+ cluster_id: z.string()
739
+ }),
740
+ query: z.never().optional()
741
+ });
742
+ export const zListClustersData = z.object({
743
+ body: z.never().optional(),
744
+ path: z.never().optional(),
745
+ query: z.never().optional()
746
+ });
747
+ /**
748
+ * An array of clusters
749
+ */
1134
750
  export const zListClustersResponse = z.array(zCluster);
751
+ export const zCreateClusterData = z.object({
752
+ body: zClusterCreateInput,
753
+ path: z.never().optional(),
754
+ query: z.never().optional()
755
+ });
756
+ /**
757
+ * Successfully created. Returns created Cluster ID.
758
+ */
1135
759
  export const zCreateClusterResponse = z.string();
760
+ export const zDeleteClusterData = z.object({
761
+ body: z.never().optional(),
762
+ path: z.object({
763
+ cluster_id: z.string()
764
+ }),
765
+ query: z.never().optional()
766
+ });
767
+ /**
768
+ * Successfully deleted.
769
+ */
1136
770
  export const zDeleteClusterResponse = z.string();
771
+ export const zGetClusterData = z.object({
772
+ body: z.never().optional(),
773
+ path: z.object({
774
+ cluster_id: z.string()
775
+ }),
776
+ query: z.never().optional()
777
+ });
778
+ /**
779
+ * Returns a single object containing cluster details.
780
+ */
1137
781
  export const zGetClusterResponse = zCluster;
782
+ export const zUpdateClusterData = z.object({
783
+ body: zClusterUpdateInput,
784
+ path: z.object({
785
+ cluster_id: z.string()
786
+ }),
787
+ query: z.never().optional()
788
+ });
789
+ /**
790
+ * Successfully updated. Returns updated cluster details.
791
+ */
1138
792
  export const zUpdateClusterResponse = zCluster;
1139
- export const zGetJoinInformationResponse = zCluster;
793
+ export const zGetJoinInformationData = z.object({
794
+ body: z.never().optional(),
795
+ path: z.object({
796
+ cluster_id: z.string()
797
+ }),
798
+ query: z.never().optional()
799
+ });
800
+ /**
801
+ * An object of cluster join information
802
+ */
803
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
804
+ export const zListInvitesData = z.object({
805
+ body: z.never().optional(),
806
+ path: z.never().optional(),
807
+ query: z.never().optional()
808
+ });
809
+ /**
810
+ * An array of invites
811
+ */
1140
812
  export const zListInvitesResponse = z.array(zInvite);
813
+ export const zCreateInviteData = z.object({
814
+ body: z.object({
815
+ email: z.string().optional()
816
+ }),
817
+ path: z.never().optional(),
818
+ query: z.never().optional()
819
+ });
820
+ /**
821
+ * Successfully created. Returns created invite details.
822
+ */
1141
823
  export const zCreateInviteResponse = zInvite;
824
+ export const zGetInviteData = z.object({
825
+ body: z.never().optional(),
826
+ path: z.object({
827
+ code: z.string()
828
+ }),
829
+ query: z.never().optional()
830
+ });
831
+ /**
832
+ * Returns a single object containing invite details.
833
+ */
1142
834
  export const zGetInviteResponse = zInvite;
835
+ export const zDeleteInviteData = z.object({
836
+ body: z.never().optional(),
837
+ path: z.object({
838
+ email: z.string()
839
+ }),
840
+ query: z.never().optional()
841
+ });
842
+ export const zListMarketplaceChartsData = z.object({
843
+ body: z.never().optional(),
844
+ path: z.never().optional(),
845
+ query: z.never().optional()
846
+ });
847
+ /**
848
+ * An array of chart listings in the marketplace.
849
+ */
1143
850
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1144
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
851
+ export const zGetMarketplaceChartFilesData = z.object({
852
+ body: z.never().optional(),
853
+ path: z.object({
854
+ chart_name: z.string(),
855
+ version_channel: z.string()
856
+ }),
857
+ query: z.never().optional()
858
+ });
859
+ /**
860
+ * Returns an object containing the chart files for the latest matching version.
861
+ */
862
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
863
+ export const zPostMcpData = z.object({
864
+ body: z.object({
865
+ jsonrpc: z.string().optional(),
866
+ method: z.string().optional(),
867
+ id: z.union([
868
+ z.string(),
869
+ z.number()
870
+ ]).optional(),
871
+ params: z.record(z.string(), z.unknown()).optional()
872
+ }),
873
+ path: z.never().optional(),
874
+ query: z.never().optional()
875
+ });
876
+ /**
877
+ * JSON-RPC 2.0 success or error response
878
+ */
879
+ export const zPostMcpResponse = z.object({
880
+ jsonrpc: z.string().optional(),
881
+ id: z.union([
882
+ z.string(),
883
+ z.number()
884
+ ]).optional(),
885
+ result: z.record(z.string(), z.unknown()).optional(),
886
+ error: z.object({
887
+ code: z.int().optional(),
888
+ message: z.string().optional()
889
+ }).optional()
890
+ });
891
+ export const zGetOrganizationData = z.object({
892
+ body: z.never().optional(),
893
+ path: z.never().optional(),
894
+ query: z.never().optional()
895
+ });
896
+ /**
897
+ * Returns a single object containing organization details.
898
+ */
1145
899
  export const zGetOrganizationResponse = zOrganization;
900
+ export const zCreateOrganizationData = z.object({
901
+ body: zOrganizationCreateInput,
902
+ path: z.never().optional(),
903
+ query: z.never().optional()
904
+ });
905
+ export const zListRepositoriesData = z.object({
906
+ body: z.never().optional(),
907
+ path: z.never().optional(),
908
+ query: z.never().optional()
909
+ });
910
+ /**
911
+ * List of repositories
912
+ */
913
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
914
+ export const zListTagsData = z.object({
915
+ body: z.never().optional(),
916
+ path: z.object({
917
+ region: z.string(),
918
+ repository: z.string()
919
+ }),
920
+ query: z.never().optional()
921
+ });
922
+ /**
923
+ * Repository with tags
924
+ */
925
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
926
+ export const zDeleteTagData = z.object({
927
+ body: z.never().optional(),
928
+ path: z.object({
929
+ region: z.string(),
930
+ repository: z.string(),
931
+ tag: z.string()
932
+ }),
933
+ query: z.never().optional()
934
+ });
935
+ export const zGetTagData = z.object({
936
+ body: z.never().optional(),
937
+ path: z.object({
938
+ region: z.string(),
939
+ repository: z.string(),
940
+ tag: z.string()
941
+ }),
942
+ query: z.never().optional()
943
+ });
944
+ /**
945
+ * Tag details
946
+ */
947
+ export const zGetTagResponse = zRegistryTag;
948
+ export const zListTokensData = z.object({
949
+ body: z.never().optional(),
950
+ path: z.never().optional(),
951
+ query: z.never().optional()
952
+ });
953
+ /**
954
+ * Returns a list of access token details with masked secrets.
955
+ */
1146
956
  export const zListTokensResponse = z.array(zToken);
957
+ export const zCreateTokenData = z.object({
958
+ body: zTokenCreateInput,
959
+ path: z.never().optional(),
960
+ query: z.never().optional()
961
+ });
962
+ /**
963
+ * Successfully created. Returns created token details with unmasked/raw secret.
964
+ */
1147
965
  export const zCreateTokenResponse = zToken;
966
+ export const zDeleteTokenData = z.object({
967
+ body: z.never().optional(),
968
+ path: z.object({
969
+ token_id: z.string()
970
+ }),
971
+ query: z.never().optional()
972
+ });
973
+ export const zGetTokenData = z.object({
974
+ body: z.never().optional(),
975
+ path: z.object({
976
+ token_id: z.string()
977
+ }),
978
+ query: z.never().optional()
979
+ });
980
+ /**
981
+ * Returns access token details with masked secret.
982
+ */
1148
983
  export const zGetTokenResponse = zToken;
984
+ export const zUpdateTokenData = z.object({
985
+ body: zTokenUpdateInput,
986
+ path: z.object({
987
+ token_id: z.string()
988
+ }),
989
+ query: z.never().optional()
990
+ });
991
+ /**
992
+ * Successfully updated. Returns updated token details with masked secret.
993
+ */
1149
994
  export const zUpdateTokenResponse = zToken;
995
+ export const zRegenerateTokenData = z.object({
996
+ body: z.never().optional(),
997
+ path: z.object({
998
+ token_id: z.string()
999
+ }),
1000
+ query: z.never().optional()
1001
+ });
1002
+ /**
1003
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
1004
+ */
1150
1005
  export const zRegenerateTokenResponse = zToken;
1006
+ export const zListUserOrganizationsData = z.object({
1007
+ body: z.never().optional(),
1008
+ path: z.object({
1009
+ email: z.string()
1010
+ }),
1011
+ query: z.never().optional()
1012
+ });
1013
+ /**
1014
+ * An array of organizations the user belongs to.
1015
+ */
1151
1016
  export const zListUserOrganizationsResponse = z.array(z.object({
1152
1017
  realm: z.string().optional(),
1153
1018
  displayName: z.string().optional()
1154
1019
  }));
1020
+ export const zListUsersData = z.object({
1021
+ body: z.never().optional(),
1022
+ path: z.never().optional(),
1023
+ query: z.never().optional()
1024
+ });
1025
+ /**
1026
+ * An array of users
1027
+ */
1155
1028
  export const zListUsersResponse = z.array(zUser);
1029
+ export const zCreateUserData = z.object({
1030
+ body: zUserCreateInput,
1031
+ path: z.never().optional(),
1032
+ query: z.never().optional()
1033
+ });
1034
+ /**
1035
+ * Successfully created. Returns created user details.
1036
+ */
1156
1037
  export const zCreateUserResponse = zUser;
1038
+ export const zDeleteUserData = z.object({
1039
+ body: z.never().optional(),
1040
+ path: z.object({
1041
+ user_id: z.string()
1042
+ }),
1043
+ query: z.never().optional()
1044
+ });
1045
+ /**
1046
+ * User profile information
1047
+ */
1157
1048
  export const zDeleteUserResponse = zUser;
1049
+ export const zGetUserData = z.object({
1050
+ body: z.never().optional(),
1051
+ path: z.object({
1052
+ user_id: z.string()
1053
+ }),
1054
+ query: z.never().optional()
1055
+ });
1056
+ /**
1057
+ * User profile information
1058
+ */
1158
1059
  export const zGetUserResponse = zUser;
1060
+ export const zUpdateUserData = z.object({
1061
+ body: zUserUpdateInput,
1062
+ path: z.object({
1063
+ user_id: z.string()
1064
+ }),
1065
+ query: z.never().optional()
1066
+ });
1067
+ /**
1068
+ * Successfully created. Returns created user details.
1069
+ */
1159
1070
  export const zUpdateUserResponse = zUser;
1160
1071
  //# sourceMappingURL=zod.gen.js.map