@cloudfleet/sdk 0.0.1-cdcf1a9 → 0.0.1-cdd334c

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 +236 -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 +1618 -2208
  65. package/dist/zod.gen.d.ts.map +1 -1
  66. package/dist/zod.gen.js +485 -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,461 @@ 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'
537
+ role: z.enum(['Administrator', 'User']).optional(),
538
+ status: z.enum(['active', 'inactive']).optional()
539
+ });
540
+ export const zGetUsageQuery = z.object({
541
+ granularity: z.enum([
542
+ 'hourly',
543
+ 'daily',
544
+ 'monthly'
1109
545
  ]).optional()
1110
546
  });
1111
- export const zGetUsageResponse = z.array(zUsage);
1112
- export const zGetBalanceResponse = z.number();
547
+ /**
548
+ * Usage data with facets for filtering
549
+ */
550
+ export const zGetUsageResponse = zUsageResponse;
551
+ /**
552
+ * Redacted payment card information.
553
+ */
1113
554
  export const zGetPaymentMethodResponse = zPaymentMethod;
555
+ /**
556
+ * 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.
557
+ *
558
+ */
1114
559
  export const zGetPaymentMethodSecretResponse = z.object({
1115
560
  id: z.string().optional()
1116
561
  });
562
+ /**
563
+ * An array of usage records.
564
+ */
1117
565
  export const zListInvoicesResponse = z.array(zInvoice);
1118
- export const zGetInvoiceResponse = z.object({
1119
- html: z.string().optional()
1120
- });
566
+ /**
567
+ * Returns a single object containing organization contact and billing address details.
568
+ */
1121
569
  export const zGetContactResponse = zBillingContact;
570
+ export const zUpdateContactBody = zBillingContact;
571
+ /**
572
+ * Successfully updated. Returns updated organization details.
573
+ */
1122
574
  export const zUpdateContactResponse = zBillingContact;
575
+ /**
576
+ * An array of the applied promotional credits records.
577
+ */
1123
578
  export const zGetCreditsResponse = z.array(zBillingCredits);
579
+ export const zRedeemCreditsBody = z.object({
580
+ code: z.string().optional()
581
+ });
582
+ export const zListChartsPath = z.object({
583
+ cluster_id: z.string()
584
+ });
585
+ /**
586
+ * An array of charts
587
+ */
1124
588
  export const zListChartsResponse = z.array(zChart);
589
+ export const zCreateChartBody = zChartCreateInput;
590
+ export const zCreateChartPath = z.object({
591
+ cluster_id: z.string()
592
+ });
593
+ /**
594
+ * Successfully created. Returns created Chart ID.
595
+ */
1125
596
  export const zCreateChartResponse = z.string();
597
+ export const zDeleteChartPath = z.object({
598
+ cluster_id: z.string(),
599
+ chart_name: z.string()
600
+ });
601
+ /**
602
+ * Successfully deleted.
603
+ */
1126
604
  export const zDeleteChartResponse = z.string();
605
+ export const zGetChartPath = z.object({
606
+ cluster_id: z.string(),
607
+ chart_name: z.string()
608
+ });
609
+ /**
610
+ * Returns a single object containing chart details.
611
+ */
1127
612
  export const zGetChartResponse = zChart;
613
+ export const zUpdateChartBody = zChartUpdateInput;
614
+ export const zUpdateChartPath = z.object({
615
+ cluster_id: z.string(),
616
+ chart_name: z.string()
617
+ });
618
+ /**
619
+ * Successfully updated.
620
+ */
1128
621
  export const zUpdateChartResponse = z.string();
622
+ export const zListFleetsPath = z.object({
623
+ cluster_id: z.string()
624
+ });
625
+ /**
626
+ * An array of fleets
627
+ */
1129
628
  export const zListFleetsResponse = z.array(zFleet);
629
+ export const zCreateFleetBody = zFleetCreateInput;
630
+ export const zCreateFleetPath = z.object({
631
+ cluster_id: z.string()
632
+ });
633
+ /**
634
+ * Successfully created. Returns created Fleet ID.
635
+ */
1130
636
  export const zCreateFleetResponse = z.string();
637
+ export const zDeleteFleetPath = z.object({
638
+ cluster_id: z.string(),
639
+ fleet_name: z.string()
640
+ });
641
+ /**
642
+ * Successfully deleted.
643
+ */
1131
644
  export const zDeleteFleetResponse = z.string();
645
+ export const zGetFleetPath = z.object({
646
+ cluster_id: z.string(),
647
+ fleet_name: z.string()
648
+ });
649
+ /**
650
+ * Returns a single object containing fleet details.
651
+ */
1132
652
  export const zGetFleetResponse = zFleet;
653
+ export const zUpdateFleetBody = zFleetUpdateInput;
654
+ export const zUpdateFleetPath = z.object({
655
+ cluster_id: z.string(),
656
+ fleet_name: z.string()
657
+ });
658
+ /**
659
+ * Successfully updated.
660
+ */
1133
661
  export const zUpdateFleetResponse = z.string();
662
+ export const zQueryClusterPath = z.object({
663
+ cluster_id: z.string()
664
+ });
665
+ /**
666
+ * An array of clusters
667
+ */
1134
668
  export const zListClustersResponse = z.array(zCluster);
669
+ export const zCreateClusterBody = zClusterCreateInput;
670
+ /**
671
+ * Successfully created. Returns created Cluster ID.
672
+ */
1135
673
  export const zCreateClusterResponse = z.string();
674
+ export const zDeleteClusterPath = z.object({
675
+ cluster_id: z.string()
676
+ });
677
+ /**
678
+ * Successfully deleted.
679
+ */
1136
680
  export const zDeleteClusterResponse = z.string();
681
+ export const zGetClusterPath = z.object({
682
+ cluster_id: z.string()
683
+ });
684
+ /**
685
+ * Returns a single object containing cluster details.
686
+ */
1137
687
  export const zGetClusterResponse = zCluster;
688
+ export const zUpdateClusterBody = zClusterUpdateInput;
689
+ export const zUpdateClusterPath = z.object({
690
+ cluster_id: z.string()
691
+ });
692
+ /**
693
+ * Successfully updated. Returns updated cluster details.
694
+ */
1138
695
  export const zUpdateClusterResponse = zCluster;
1139
- export const zGetJoinInformationResponse = zCluster;
696
+ export const zGetJoinInformationPath = z.object({
697
+ cluster_id: z.string()
698
+ });
699
+ /**
700
+ * An object of cluster join information
701
+ */
702
+ export const zGetJoinInformationResponse = zClusterJoinInformation;
703
+ /**
704
+ * An array of invites
705
+ */
1140
706
  export const zListInvitesResponse = z.array(zInvite);
707
+ export const zCreateInviteBody = z.object({
708
+ email: z.string().optional()
709
+ });
710
+ /**
711
+ * Successfully created. Returns created invite details.
712
+ */
1141
713
  export const zCreateInviteResponse = zInvite;
714
+ export const zGetInvitePath = z.object({
715
+ code: z.string()
716
+ });
717
+ /**
718
+ * Returns a single object containing invite details.
719
+ */
1142
720
  export const zGetInviteResponse = zInvite;
721
+ export const zDeleteInvitePath = z.object({
722
+ email: z.string()
723
+ });
724
+ /**
725
+ * An array of chart listings in the marketplace.
726
+ */
1143
727
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
1144
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
728
+ export const zGetMarketplaceChartFilesPath = z.object({
729
+ chart_name: z.string(),
730
+ version_channel: z.string()
731
+ });
732
+ /**
733
+ * Returns an object containing the chart files for the latest matching version.
734
+ */
735
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
736
+ /**
737
+ * JSON-RPC 2.0 request payload
738
+ */
739
+ export const zPostMcpBody = z.object({
740
+ jsonrpc: z.string().optional(),
741
+ method: z.string().optional(),
742
+ id: z.union([
743
+ z.string(),
744
+ z.number()
745
+ ]).optional(),
746
+ params: z.record(z.string(), z.unknown()).optional()
747
+ });
748
+ /**
749
+ * JSON-RPC 2.0 success or error response
750
+ */
751
+ export const zPostMcpResponse = z.object({
752
+ jsonrpc: z.string().optional(),
753
+ id: z.union([
754
+ z.string(),
755
+ z.number()
756
+ ]).optional(),
757
+ result: z.record(z.string(), z.unknown()).optional(),
758
+ error: z.object({
759
+ code: z.int().optional(),
760
+ message: z.string().optional()
761
+ }).optional()
762
+ });
763
+ /**
764
+ * Returns a single object containing organization details.
765
+ */
1145
766
  export const zGetOrganizationResponse = zOrganization;
767
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
768
+ /**
769
+ * List of repositories
770
+ */
771
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
772
+ export const zListTagsPath = z.object({
773
+ region: z.string(),
774
+ repository: z.string()
775
+ });
776
+ /**
777
+ * Repository with tags
778
+ */
779
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
780
+ export const zDeleteTagPath = z.object({
781
+ region: z.string(),
782
+ repository: z.string(),
783
+ tag: z.string()
784
+ });
785
+ export const zGetTagPath = z.object({
786
+ region: z.string(),
787
+ repository: z.string(),
788
+ tag: z.string()
789
+ });
790
+ /**
791
+ * Tag details
792
+ */
793
+ export const zGetTagResponse = zRegistryTag;
794
+ /**
795
+ * Returns a list of access token details with masked secrets.
796
+ */
1146
797
  export const zListTokensResponse = z.array(zToken);
798
+ export const zCreateTokenBody = zTokenCreateInput;
799
+ /**
800
+ * Successfully created. Returns created token details with unmasked/raw secret.
801
+ */
1147
802
  export const zCreateTokenResponse = zToken;
803
+ export const zDeleteTokenPath = z.object({
804
+ token_id: z.string()
805
+ });
806
+ export const zGetTokenPath = z.object({
807
+ token_id: z.string()
808
+ });
809
+ /**
810
+ * Returns access token details with masked secret.
811
+ */
1148
812
  export const zGetTokenResponse = zToken;
813
+ export const zUpdateTokenBody = zTokenUpdateInput;
814
+ export const zUpdateTokenPath = z.object({
815
+ token_id: z.string()
816
+ });
817
+ /**
818
+ * Successfully updated. Returns updated token details with masked secret.
819
+ */
1149
820
  export const zUpdateTokenResponse = zToken;
821
+ export const zRegenerateTokenPath = z.object({
822
+ token_id: z.string()
823
+ });
824
+ /**
825
+ * Successfully updated. Returns updated token details with unmasked / raw secret.
826
+ */
1150
827
  export const zRegenerateTokenResponse = zToken;
828
+ export const zListUserOrganizationsPath = z.object({
829
+ email: z.string()
830
+ });
831
+ /**
832
+ * An array of organizations the user belongs to.
833
+ */
1151
834
  export const zListUserOrganizationsResponse = z.array(z.object({
1152
835
  realm: z.string().optional(),
1153
836
  displayName: z.string().optional()
1154
837
  }));
838
+ /**
839
+ * An array of users
840
+ */
1155
841
  export const zListUsersResponse = z.array(zUser);
842
+ export const zCreateUserBody = zUserCreateInput;
843
+ /**
844
+ * Successfully created. Returns created user details.
845
+ */
1156
846
  export const zCreateUserResponse = zUser;
847
+ export const zDeleteUserPath = z.object({
848
+ user_id: z.string()
849
+ });
850
+ /**
851
+ * User profile information
852
+ */
1157
853
  export const zDeleteUserResponse = zUser;
854
+ export const zGetUserPath = z.object({
855
+ user_id: z.string()
856
+ });
857
+ /**
858
+ * User profile information
859
+ */
1158
860
  export const zGetUserResponse = zUser;
861
+ export const zUpdateUserBody = zUserUpdateInput;
862
+ export const zUpdateUserPath = z.object({
863
+ user_id: z.string()
864
+ });
865
+ /**
866
+ * Successfully created. Returns created user details.
867
+ */
1159
868
  export const zUpdateUserResponse = zUser;
1160
869
  //# sourceMappingURL=zod.gen.js.map