@cloudfleet/sdk 0.0.1-d582884 → 0.0.1-d7d095d

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 (60) hide show
  1. package/dist/@tanstack/react-query.gen.d.ts +1125 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1129 -0
  4. package/dist/@tanstack/react-query.gen.js.map +1 -0
  5. package/dist/client/client.gen.d.ts.map +1 -1
  6. package/dist/client/client.gen.js +113 -98
  7. package/dist/client/client.gen.js.map +1 -1
  8. package/dist/client/index.d.ts +1 -1
  9. package/dist/client/index.d.ts.map +1 -1
  10. package/dist/client/index.js.map +1 -1
  11. package/dist/client/types.gen.d.ts +9 -13
  12. package/dist/client/types.gen.d.ts.map +1 -1
  13. package/dist/client/utils.gen.d.ts +6 -2
  14. package/dist/client/utils.gen.d.ts.map +1 -1
  15. package/dist/client/utils.gen.js +10 -12
  16. package/dist/client/utils.gen.js.map +1 -1
  17. package/dist/client.gen.d.ts.map +1 -1
  18. package/dist/client.gen.js +1 -3
  19. package/dist/client.gen.js.map +1 -1
  20. package/dist/core/auth.gen.d.ts.map +1 -1
  21. package/dist/core/auth.gen.js.map +1 -1
  22. package/dist/core/bodySerializer.gen.d.ts +16 -8
  23. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  24. package/dist/core/bodySerializer.gen.js +1 -1
  25. package/dist/core/bodySerializer.gen.js.map +1 -1
  26. package/dist/core/params.gen.d.ts +10 -0
  27. package/dist/core/params.gen.d.ts.map +1 -1
  28. package/dist/core/params.gen.js +18 -6
  29. package/dist/core/params.gen.js.map +1 -1
  30. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  31. package/dist/core/pathSerializer.gen.js +3 -11
  32. package/dist/core/pathSerializer.gen.js.map +1 -1
  33. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  34. package/dist/core/queryKeySerializer.gen.js +4 -11
  35. package/dist/core/queryKeySerializer.gen.js.map +1 -1
  36. package/dist/core/serverSentEvents.gen.d.ts +1 -1
  37. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  38. package/dist/core/serverSentEvents.gen.js +6 -9
  39. package/dist/core/serverSentEvents.gen.js.map +1 -1
  40. package/dist/core/types.gen.d.ts +1 -1
  41. package/dist/core/types.gen.d.ts.map +1 -1
  42. package/dist/core/utils.gen.d.ts.map +1 -1
  43. package/dist/core/utils.gen.js +1 -1
  44. package/dist/core/utils.gen.js.map +1 -1
  45. package/dist/schemas.gen.d.ts +689 -73
  46. package/dist/schemas.gen.d.ts.map +1 -1
  47. package/dist/schemas.gen.js +2022 -162
  48. package/dist/schemas.gen.js.map +1 -1
  49. package/dist/sdk.gen.d.ts +45 -5
  50. package/dist/sdk.gen.d.ts.map +1 -1
  51. package/dist/sdk.gen.js +105 -141
  52. package/dist/sdk.gen.js.map +1 -1
  53. package/dist/services/kubernetes/api.d.ts +8 -8
  54. package/dist/types.gen.d.ts +520 -54
  55. package/dist/types.gen.d.ts.map +1 -1
  56. package/dist/zod.gen.d.ts +2419 -610
  57. package/dist/zod.gen.d.ts.map +1 -1
  58. package/dist/zod.gen.js +1107 -505
  59. package/dist/zod.gen.js.map +1 -1
  60. package/package.json +28 -5
package/dist/zod.gen.js CHANGED
@@ -1,18 +1,18 @@
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
- company: z.optional(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,}$/)),
5
- address1: z.optional(z.string()),
6
- address2: z.optional(z.string()),
7
- postalCode: z.optional(z.string()),
8
- city: z.optional(z.string()),
9
- state: z.optional(z.string()),
10
- country: z.optional(z.string()),
11
- phone: z.optional(z.string()),
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
+ address1: z.string().optional(),
6
+ address2: z.string().optional(),
7
+ postalCode: z.string().optional(),
8
+ city: z.string().optional(),
9
+ state: z.string().optional(),
10
+ country: z.string().optional(),
11
+ phone: z.string().optional(),
12
12
  email: z.email(),
13
13
  individual_name: z.string(),
14
- tax_id: z.optional(z.string()),
15
- tax_id_type: z.optional(z.enum([
14
+ tax_id: z.string().optional(),
15
+ tax_id_type: z.enum([
16
16
  'ad_nrt',
17
17
  'ae_trn',
18
18
  'al_tin',
@@ -141,20 +141,17 @@ export const zBillingContact = z.object({
141
141
  'zm_tin',
142
142
  'zw_tin',
143
143
  ''
144
- ]))
144
+ ]).optional()
145
145
  });
146
146
  export const zBillingCredits = z.object({
147
- id: z.optional(z.string()),
148
- type: z.enum([
149
- 'credit',
150
- 'discount'
151
- ]),
147
+ id: z.string().optional(),
148
+ type: z.enum(['credit', 'discount']),
152
149
  date_start: z.iso.datetime(),
153
- date_end: z.optional(z.iso.datetime()),
150
+ date_end: z.iso.datetime().optional(),
154
151
  code: z.string(),
155
- description: z.optional(z.string()),
152
+ description: z.string().optional(),
156
153
  value_total: z.number(),
157
- value_remaining: z.optional(z.number())
154
+ value_remaining: z.number().optional()
158
155
  });
159
156
  export const zChartCreateInput = z.object({
160
157
  values: z.string(),
@@ -196,26 +193,24 @@ export const zChartUpdateInput = z.object({
196
193
  });
197
194
  export const zClusterCreateInput = z.object({
198
195
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
199
- tier: z.enum([
200
- 'basic',
201
- 'pro'
202
- ]),
203
- region: z.optional(z.enum([
204
- 'staging',
196
+ tier: z.enum(['basic', 'pro']),
197
+ region: z.enum([
198
+ 'staging-1a',
205
199
  'northamerica-central-1',
206
200
  'europe-central-1a',
207
201
  'northamerica-central-1a'
208
- ])),
209
- version_channel: z.optional(z.enum([
202
+ ]).optional().default('staging-1a'),
203
+ version_channel: z.enum([
210
204
  '1.x.x-cfke.x',
211
205
  '1.31.x-cfke.x',
212
206
  '1.32.x-cfke.x',
213
207
  '1.33.x-cfke.x'
214
- ]))
208
+ ]).optional().default('1.x.x-cfke.x')
215
209
  });
216
210
  export const zClusterJoinInformation = z.object({
217
211
  certificate_authority: z.string(),
218
212
  endpoint: z.url(),
213
+ cluster_dns: z.string(),
219
214
  auth_key: z.string(),
220
215
  bootstrap_token: z.string(),
221
216
  versions: z.object({
@@ -232,16 +227,13 @@ export const zClusterJoinInformation = z.object({
232
227
  });
233
228
  export const zCluster = z.object({
234
229
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
235
- tier: z.enum([
236
- 'basic',
237
- 'pro'
238
- ]),
239
- region: z.optional(z.enum([
240
- 'staging',
230
+ tier: z.enum(['basic', 'pro']),
231
+ region: z.enum([
232
+ 'staging-1a',
241
233
  'northamerica-central-1',
242
234
  'europe-central-1a',
243
235
  'northamerica-central-1a'
244
- ])),
236
+ ]).optional().default('staging-1a'),
245
237
  id: z.uuid(),
246
238
  status: z.enum([
247
239
  'active',
@@ -252,122 +244,815 @@ export const zCluster = z.object({
252
244
  'failed',
253
245
  'updating'
254
246
  ]),
255
- endpoint: z.optional(z.union([
247
+ endpoint: z.union([
256
248
  z.url(),
257
- z.enum([
258
- ''
259
- ])
260
- ])),
261
- certificate_ca: z.optional(z.string()),
262
- version_current: z.optional(z.string()),
263
- created_at: z.optional(z.string()),
264
- updated_at: z.optional(z.string()),
265
- ready: z.optional(z.boolean()),
266
- version_channel: z.optional(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-]+)*))?$/))
249
+ z.enum([''])
250
+ ]).optional(),
251
+ endpoint_public: z.union([
252
+ z.url(),
253
+ z.enum([''])
254
+ ]).optional(),
255
+ certificate_ca: z.string().optional(),
256
+ version_current: z.string().optional(),
257
+ created_at: z.string().optional(),
258
+ updated_at: z.string().optional(),
259
+ ready: z.boolean().optional(),
260
+ 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()
267
261
  });
268
262
  export const zClusterUpdateInput = z.object({
269
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
270
- tier: z.enum([
271
- 'basic',
272
- 'pro'
273
- ]),
274
- version_channel: z.optional(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-]+)*))?$/))
263
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
264
+ tier: z.enum(['basic', 'pro']),
265
+ 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()
275
266
  });
276
267
  export const zFleetCreateInput = z.object({
277
- limits: z.optional(z.object({
278
- cpu: z.number().gte(0)
279
- })),
280
- gcp: z.optional(z.object({
281
- enabled: z.optional(z.boolean()).default(true),
282
- project: z.string()
283
- })),
284
- hetzner: z.optional(z.object({
285
- enabled: z.optional(z.boolean()).default(true),
286
- apiKey: z.string()
287
- })),
288
- aws: z.optional(z.object({
289
- enabled: z.optional(z.boolean()).default(true),
290
- controllerRoleArn: z.string()
291
- })),
268
+ limits: z.object({
269
+ cpu: z.int().gte(0).lte(100000).optional()
270
+ }).optional(),
271
+ gcp: z.object({
272
+ enabled: z.boolean(),
273
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
274
+ }).optional(),
275
+ hetzner: z.object({
276
+ enabled: z.boolean(),
277
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
278
+ }).optional(),
279
+ aws: z.object({
280
+ enabled: z.boolean(),
281
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
282
+ }).optional(),
283
+ constraints: z.object({
284
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
285
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
286
+ 'cfke.io/instance-family': z.array(z.enum([
287
+ 'a1',
288
+ 'a2',
289
+ 'a3',
290
+ 'a4',
291
+ 'c1',
292
+ 'c2',
293
+ 'c2d',
294
+ 'c3',
295
+ 'c3d',
296
+ 'c4',
297
+ 'c4a',
298
+ 'c4d',
299
+ 'c5',
300
+ 'c5a',
301
+ 'c5ad',
302
+ 'c5d',
303
+ 'c5n',
304
+ 'c6a',
305
+ 'c6g',
306
+ 'c6gd',
307
+ 'c6gn',
308
+ 'c6i',
309
+ 'c6id',
310
+ 'c6in',
311
+ 'c7a',
312
+ 'c7g',
313
+ 'c7gd',
314
+ 'c7gn',
315
+ 'c7i',
316
+ 'c7i-flex',
317
+ 'c8g',
318
+ 'c8gd',
319
+ 'cax',
320
+ 'ccx',
321
+ 'cpx',
322
+ 'cx',
323
+ 'd2',
324
+ 'd3',
325
+ 'd3en',
326
+ 'dl1',
327
+ 'dl2q',
328
+ 'e2',
329
+ 'f1',
330
+ 'f2',
331
+ 'g1',
332
+ 'g2',
333
+ 'g4ad',
334
+ 'g4dn',
335
+ 'g5',
336
+ 'g5g',
337
+ 'g6',
338
+ 'g6e',
339
+ 'gr6',
340
+ 'h1',
341
+ 'h3',
342
+ 'hpc6a',
343
+ 'hpc6id',
344
+ 'hpc7a',
345
+ 'hpc7g',
346
+ 'i2',
347
+ 'i3',
348
+ 'i3en',
349
+ 'i4g',
350
+ 'i4i',
351
+ 'i7i',
352
+ 'i7ie',
353
+ 'i8g',
354
+ 'im4gn',
355
+ 'inf1',
356
+ 'inf2',
357
+ 'is4gen',
358
+ 'm1',
359
+ 'm2',
360
+ 'm3',
361
+ 'm4',
362
+ 'm5',
363
+ 'm5a',
364
+ 'm5ad',
365
+ 'm5d',
366
+ 'm5dn',
367
+ 'm5n',
368
+ 'm5zn',
369
+ 'm6a',
370
+ 'm6g',
371
+ 'm6gd',
372
+ 'm6i',
373
+ 'm6id',
374
+ 'm6idn',
375
+ 'm6in',
376
+ 'm7a',
377
+ 'm7g',
378
+ 'm7gd',
379
+ 'm7i',
380
+ 'm7i-flex',
381
+ 'm8g',
382
+ 'm8gd',
383
+ 'n1',
384
+ 'n2',
385
+ 'n2d',
386
+ 'n4',
387
+ 'p3',
388
+ 'p3dn',
389
+ 'p4d',
390
+ 'p4de',
391
+ 'p5',
392
+ 'p5e',
393
+ 'p5en',
394
+ 'p6-b200',
395
+ 'r3',
396
+ 'r4',
397
+ 'r5',
398
+ 'r5a',
399
+ 'r5ad',
400
+ 'r5b',
401
+ 'r5d',
402
+ 'r5dn',
403
+ 'r5n',
404
+ 'r6a',
405
+ 'r6g',
406
+ 'r6gd',
407
+ 'r6i',
408
+ 'r6id',
409
+ 'r6idn',
410
+ 'r6in',
411
+ 'r7a',
412
+ 'r7g',
413
+ 'r7gd',
414
+ 'r7i',
415
+ 'r7iz',
416
+ 'r8g',
417
+ 'r8gd',
418
+ 't2',
419
+ 't2a',
420
+ 't2d',
421
+ 't3',
422
+ 't3a',
423
+ 't4g',
424
+ 'trn1',
425
+ 'trn1n',
426
+ 'u-3tb1',
427
+ 'u-6tb1',
428
+ 'u7i-12tb',
429
+ 'u7i-6tb',
430
+ 'u7i-8tb',
431
+ 'u7in-16tb',
432
+ 'u7in-24tb',
433
+ 'u7in-32tb',
434
+ 'vt1',
435
+ 'x1',
436
+ 'x1e',
437
+ 'x2gd',
438
+ 'x2idn',
439
+ 'x2iedn',
440
+ 'x2iezn',
441
+ 'x4',
442
+ 'x8g',
443
+ 'z1d',
444
+ 'z3'
445
+ ])).optional(),
446
+ 'topology.kubernetes.io/region': z.array(z.enum([
447
+ 'africa-south1',
448
+ 'ap-northeast-1',
449
+ 'ap-northeast-2',
450
+ 'ap-northeast-3',
451
+ 'ap-south-1',
452
+ 'ap-southeast-1',
453
+ 'ap-southeast-2',
454
+ 'ash',
455
+ 'asia-east1',
456
+ 'asia-east2',
457
+ 'asia-northeast1',
458
+ 'asia-northeast2',
459
+ 'asia-northeast3',
460
+ 'asia-south1',
461
+ 'asia-south2',
462
+ 'asia-southeast1',
463
+ 'asia-southeast2',
464
+ 'australia-southeast1',
465
+ 'australia-southeast2',
466
+ 'ca-central-1',
467
+ 'eu-central-1',
468
+ 'eu-central-2',
469
+ 'eu-north-1',
470
+ 'eu-west-1',
471
+ 'eu-west-2',
472
+ 'eu-west-3',
473
+ 'europe-central2',
474
+ 'europe-north1',
475
+ 'europe-southwest1',
476
+ 'europe-west1',
477
+ 'europe-west10',
478
+ 'europe-west12',
479
+ 'europe-west2',
480
+ 'europe-west3',
481
+ 'europe-west4',
482
+ 'europe-west6',
483
+ 'europe-west8',
484
+ 'europe-west9',
485
+ 'fsn1',
486
+ 'hel1',
487
+ 'hil',
488
+ 'me-central1',
489
+ 'me-central2',
490
+ 'me-west1',
491
+ 'nbg1',
492
+ 'northamerica-northeast1',
493
+ 'northamerica-northeast2',
494
+ 'sa-east-1',
495
+ 'sin',
496
+ 'southamerica-east1',
497
+ 'southamerica-west1',
498
+ 'us-central1',
499
+ 'us-east-1',
500
+ 'us-east-2',
501
+ 'us-east1',
502
+ 'us-east4',
503
+ 'us-east5',
504
+ 'us-south1',
505
+ 'us-west-1',
506
+ 'us-west-2',
507
+ 'us-west1',
508
+ 'us-west2',
509
+ 'us-west3',
510
+ 'us-west4'
511
+ ])).optional()
512
+ }).optional(),
513
+ scalingProfile: z.enum(['aggressive', 'conservative']).optional().default('conservative'),
292
514
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
293
515
  });
294
516
  export const zFleet = z.object({
295
- limits: z.optional(z.object({
296
- cpu: z.number().gte(0)
297
- })),
298
- gcp: z.optional(z.object({
299
- enabled: z.optional(z.boolean()).default(true),
300
- project: z.string()
301
- })),
302
- hetzner: z.optional(z.object({
303
- enabled: z.optional(z.boolean()).default(true),
304
- apiKey: z.string()
305
- })),
306
- aws: z.optional(z.object({
307
- enabled: z.optional(z.boolean()).default(true),
308
- controllerRoleArn: z.string()
309
- })),
517
+ limits: z.object({
518
+ cpu: z.int().gte(0).lte(100000).optional()
519
+ }).optional(),
520
+ gcp: z.object({
521
+ enabled: z.boolean(),
522
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
523
+ }).optional(),
524
+ hetzner: z.object({
525
+ enabled: z.boolean(),
526
+ apiKey: z.string().regex(/^\*{64}$/).optional()
527
+ }).optional(),
528
+ aws: z.object({
529
+ enabled: z.boolean(),
530
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
531
+ }).optional(),
532
+ constraints: z.object({
533
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional().default(['on-demand', 'spot']),
534
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional().default(['amd64']),
535
+ 'cfke.io/instance-family': z.array(z.enum([
536
+ 'a1',
537
+ 'a2',
538
+ 'a3',
539
+ 'a4',
540
+ 'c1',
541
+ 'c2',
542
+ 'c2d',
543
+ 'c3',
544
+ 'c3d',
545
+ 'c4',
546
+ 'c4a',
547
+ 'c4d',
548
+ 'c5',
549
+ 'c5a',
550
+ 'c5ad',
551
+ 'c5d',
552
+ 'c5n',
553
+ 'c6a',
554
+ 'c6g',
555
+ 'c6gd',
556
+ 'c6gn',
557
+ 'c6i',
558
+ 'c6id',
559
+ 'c6in',
560
+ 'c7a',
561
+ 'c7g',
562
+ 'c7gd',
563
+ 'c7gn',
564
+ 'c7i',
565
+ 'c7i-flex',
566
+ 'c8g',
567
+ 'c8gd',
568
+ 'cax',
569
+ 'ccx',
570
+ 'cpx',
571
+ 'cx',
572
+ 'd2',
573
+ 'd3',
574
+ 'd3en',
575
+ 'dl1',
576
+ 'dl2q',
577
+ 'e2',
578
+ 'f1',
579
+ 'f2',
580
+ 'g1',
581
+ 'g2',
582
+ 'g4ad',
583
+ 'g4dn',
584
+ 'g5',
585
+ 'g5g',
586
+ 'g6',
587
+ 'g6e',
588
+ 'gr6',
589
+ 'h1',
590
+ 'h3',
591
+ 'hpc6a',
592
+ 'hpc6id',
593
+ 'hpc7a',
594
+ 'hpc7g',
595
+ 'i2',
596
+ 'i3',
597
+ 'i3en',
598
+ 'i4g',
599
+ 'i4i',
600
+ 'i7i',
601
+ 'i7ie',
602
+ 'i8g',
603
+ 'im4gn',
604
+ 'inf1',
605
+ 'inf2',
606
+ 'is4gen',
607
+ 'm1',
608
+ 'm2',
609
+ 'm3',
610
+ 'm4',
611
+ 'm5',
612
+ 'm5a',
613
+ 'm5ad',
614
+ 'm5d',
615
+ 'm5dn',
616
+ 'm5n',
617
+ 'm5zn',
618
+ 'm6a',
619
+ 'm6g',
620
+ 'm6gd',
621
+ 'm6i',
622
+ 'm6id',
623
+ 'm6idn',
624
+ 'm6in',
625
+ 'm7a',
626
+ 'm7g',
627
+ 'm7gd',
628
+ 'm7i',
629
+ 'm7i-flex',
630
+ 'm8g',
631
+ 'm8gd',
632
+ 'n1',
633
+ 'n2',
634
+ 'n2d',
635
+ 'n4',
636
+ 'p3',
637
+ 'p3dn',
638
+ 'p4d',
639
+ 'p4de',
640
+ 'p5',
641
+ 'p5e',
642
+ 'p5en',
643
+ 'p6-b200',
644
+ 'r3',
645
+ 'r4',
646
+ 'r5',
647
+ 'r5a',
648
+ 'r5ad',
649
+ 'r5b',
650
+ 'r5d',
651
+ 'r5dn',
652
+ 'r5n',
653
+ 'r6a',
654
+ 'r6g',
655
+ 'r6gd',
656
+ 'r6i',
657
+ 'r6id',
658
+ 'r6idn',
659
+ 'r6in',
660
+ 'r7a',
661
+ 'r7g',
662
+ 'r7gd',
663
+ 'r7i',
664
+ 'r7iz',
665
+ 'r8g',
666
+ 'r8gd',
667
+ 't2',
668
+ 't2a',
669
+ 't2d',
670
+ 't3',
671
+ 't3a',
672
+ 't4g',
673
+ 'trn1',
674
+ 'trn1n',
675
+ 'u-3tb1',
676
+ 'u-6tb1',
677
+ 'u7i-12tb',
678
+ 'u7i-6tb',
679
+ 'u7i-8tb',
680
+ 'u7in-16tb',
681
+ 'u7in-24tb',
682
+ 'u7in-32tb',
683
+ 'vt1',
684
+ 'x1',
685
+ 'x1e',
686
+ 'x2gd',
687
+ 'x2idn',
688
+ 'x2iedn',
689
+ 'x2iezn',
690
+ 'x4',
691
+ 'x8g',
692
+ 'z1d',
693
+ 'z3'
694
+ ])).optional(),
695
+ 'topology.kubernetes.io/region': z.array(z.enum([
696
+ 'africa-south1',
697
+ 'ap-northeast-1',
698
+ 'ap-northeast-2',
699
+ 'ap-northeast-3',
700
+ 'ap-south-1',
701
+ 'ap-southeast-1',
702
+ 'ap-southeast-2',
703
+ 'ash',
704
+ 'asia-east1',
705
+ 'asia-east2',
706
+ 'asia-northeast1',
707
+ 'asia-northeast2',
708
+ 'asia-northeast3',
709
+ 'asia-south1',
710
+ 'asia-south2',
711
+ 'asia-southeast1',
712
+ 'asia-southeast2',
713
+ 'australia-southeast1',
714
+ 'australia-southeast2',
715
+ 'ca-central-1',
716
+ 'eu-central-1',
717
+ 'eu-central-2',
718
+ 'eu-north-1',
719
+ 'eu-west-1',
720
+ 'eu-west-2',
721
+ 'eu-west-3',
722
+ 'europe-central2',
723
+ 'europe-north1',
724
+ 'europe-southwest1',
725
+ 'europe-west1',
726
+ 'europe-west10',
727
+ 'europe-west12',
728
+ 'europe-west2',
729
+ 'europe-west3',
730
+ 'europe-west4',
731
+ 'europe-west6',
732
+ 'europe-west8',
733
+ 'europe-west9',
734
+ 'fsn1',
735
+ 'hel1',
736
+ 'hil',
737
+ 'me-central1',
738
+ 'me-central2',
739
+ 'me-west1',
740
+ 'nbg1',
741
+ 'northamerica-northeast1',
742
+ 'northamerica-northeast2',
743
+ 'sa-east-1',
744
+ 'sin',
745
+ 'southamerica-east1',
746
+ 'southamerica-west1',
747
+ 'us-central1',
748
+ 'us-east-1',
749
+ 'us-east-2',
750
+ 'us-east1',
751
+ 'us-east4',
752
+ 'us-east5',
753
+ 'us-south1',
754
+ 'us-west-1',
755
+ 'us-west-2',
756
+ 'us-west1',
757
+ 'us-west2',
758
+ 'us-west3',
759
+ 'us-west4'
760
+ ])).optional()
761
+ }).optional(),
762
+ scalingProfile: z.enum(['aggressive', 'conservative']).default('conservative'),
310
763
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
311
764
  });
312
765
  export const zFleetUpdateInput = z.object({
313
- limits: z.optional(z.object({
314
- cpu: z.number().gte(0)
315
- })),
316
- gcp: z.optional(z.object({
317
- enabled: z.optional(z.boolean()).default(true),
318
- project: z.string()
319
- })),
320
- hetzner: z.optional(z.object({
321
- enabled: z.optional(z.boolean()).default(true),
322
- apiKey: z.string()
323
- })),
324
- aws: z.optional(z.object({
325
- enabled: z.optional(z.boolean()).default(true),
326
- controllerRoleArn: z.string()
327
- }))
766
+ limits: z.object({
767
+ cpu: z.int().gte(0).lte(100000).optional()
768
+ }).optional(),
769
+ gcp: z.object({
770
+ enabled: z.boolean(),
771
+ project: z.string().regex(/^[a-z][a-z0-9-]{4,28}[a-z0-9]$/).optional()
772
+ }).optional(),
773
+ hetzner: z.object({
774
+ enabled: z.boolean(),
775
+ apiKey: z.string().length(64).regex(/^[A-Za-z0-9]+$/).optional()
776
+ }).optional(),
777
+ aws: z.object({
778
+ enabled: z.boolean(),
779
+ controllerRoleArn: z.string().regex(/^arn:aws(-[a-z]+)*:iam::\d{12}:role\/[\w+=,.@\/-]+$/).optional()
780
+ }).optional(),
781
+ constraints: z.object({
782
+ 'karpenter.sh/capacity-type': z.array(z.enum(['on-demand', 'spot'])).min(1).optional(),
783
+ 'kubernetes.io/arch': z.array(z.enum(['amd64', 'arm64'])).min(1).optional(),
784
+ 'cfke.io/instance-family': z.array(z.enum([
785
+ 'a1',
786
+ 'a2',
787
+ 'a3',
788
+ 'a4',
789
+ 'c1',
790
+ 'c2',
791
+ 'c2d',
792
+ 'c3',
793
+ 'c3d',
794
+ 'c4',
795
+ 'c4a',
796
+ 'c4d',
797
+ 'c5',
798
+ 'c5a',
799
+ 'c5ad',
800
+ 'c5d',
801
+ 'c5n',
802
+ 'c6a',
803
+ 'c6g',
804
+ 'c6gd',
805
+ 'c6gn',
806
+ 'c6i',
807
+ 'c6id',
808
+ 'c6in',
809
+ 'c7a',
810
+ 'c7g',
811
+ 'c7gd',
812
+ 'c7gn',
813
+ 'c7i',
814
+ 'c7i-flex',
815
+ 'c8g',
816
+ 'c8gd',
817
+ 'cax',
818
+ 'ccx',
819
+ 'cpx',
820
+ 'cx',
821
+ 'd2',
822
+ 'd3',
823
+ 'd3en',
824
+ 'dl1',
825
+ 'dl2q',
826
+ 'e2',
827
+ 'f1',
828
+ 'f2',
829
+ 'g1',
830
+ 'g2',
831
+ 'g4ad',
832
+ 'g4dn',
833
+ 'g5',
834
+ 'g5g',
835
+ 'g6',
836
+ 'g6e',
837
+ 'gr6',
838
+ 'h1',
839
+ 'h3',
840
+ 'hpc6a',
841
+ 'hpc6id',
842
+ 'hpc7a',
843
+ 'hpc7g',
844
+ 'i2',
845
+ 'i3',
846
+ 'i3en',
847
+ 'i4g',
848
+ 'i4i',
849
+ 'i7i',
850
+ 'i7ie',
851
+ 'i8g',
852
+ 'im4gn',
853
+ 'inf1',
854
+ 'inf2',
855
+ 'is4gen',
856
+ 'm1',
857
+ 'm2',
858
+ 'm3',
859
+ 'm4',
860
+ 'm5',
861
+ 'm5a',
862
+ 'm5ad',
863
+ 'm5d',
864
+ 'm5dn',
865
+ 'm5n',
866
+ 'm5zn',
867
+ 'm6a',
868
+ 'm6g',
869
+ 'm6gd',
870
+ 'm6i',
871
+ 'm6id',
872
+ 'm6idn',
873
+ 'm6in',
874
+ 'm7a',
875
+ 'm7g',
876
+ 'm7gd',
877
+ 'm7i',
878
+ 'm7i-flex',
879
+ 'm8g',
880
+ 'm8gd',
881
+ 'n1',
882
+ 'n2',
883
+ 'n2d',
884
+ 'n4',
885
+ 'p3',
886
+ 'p3dn',
887
+ 'p4d',
888
+ 'p4de',
889
+ 'p5',
890
+ 'p5e',
891
+ 'p5en',
892
+ 'p6-b200',
893
+ 'r3',
894
+ 'r4',
895
+ 'r5',
896
+ 'r5a',
897
+ 'r5ad',
898
+ 'r5b',
899
+ 'r5d',
900
+ 'r5dn',
901
+ 'r5n',
902
+ 'r6a',
903
+ 'r6g',
904
+ 'r6gd',
905
+ 'r6i',
906
+ 'r6id',
907
+ 'r6idn',
908
+ 'r6in',
909
+ 'r7a',
910
+ 'r7g',
911
+ 'r7gd',
912
+ 'r7i',
913
+ 'r7iz',
914
+ 'r8g',
915
+ 'r8gd',
916
+ 't2',
917
+ 't2a',
918
+ 't2d',
919
+ 't3',
920
+ 't3a',
921
+ 't4g',
922
+ 'trn1',
923
+ 'trn1n',
924
+ 'u-3tb1',
925
+ 'u-6tb1',
926
+ 'u7i-12tb',
927
+ 'u7i-6tb',
928
+ 'u7i-8tb',
929
+ 'u7in-16tb',
930
+ 'u7in-24tb',
931
+ 'u7in-32tb',
932
+ 'vt1',
933
+ 'x1',
934
+ 'x1e',
935
+ 'x2gd',
936
+ 'x2idn',
937
+ 'x2iedn',
938
+ 'x2iezn',
939
+ 'x4',
940
+ 'x8g',
941
+ 'z1d',
942
+ 'z3'
943
+ ])).optional(),
944
+ 'topology.kubernetes.io/region': z.array(z.enum([
945
+ 'africa-south1',
946
+ 'ap-northeast-1',
947
+ 'ap-northeast-2',
948
+ 'ap-northeast-3',
949
+ 'ap-south-1',
950
+ 'ap-southeast-1',
951
+ 'ap-southeast-2',
952
+ 'ash',
953
+ 'asia-east1',
954
+ 'asia-east2',
955
+ 'asia-northeast1',
956
+ 'asia-northeast2',
957
+ 'asia-northeast3',
958
+ 'asia-south1',
959
+ 'asia-south2',
960
+ 'asia-southeast1',
961
+ 'asia-southeast2',
962
+ 'australia-southeast1',
963
+ 'australia-southeast2',
964
+ 'ca-central-1',
965
+ 'eu-central-1',
966
+ 'eu-central-2',
967
+ 'eu-north-1',
968
+ 'eu-west-1',
969
+ 'eu-west-2',
970
+ 'eu-west-3',
971
+ 'europe-central2',
972
+ 'europe-north1',
973
+ 'europe-southwest1',
974
+ 'europe-west1',
975
+ 'europe-west10',
976
+ 'europe-west12',
977
+ 'europe-west2',
978
+ 'europe-west3',
979
+ 'europe-west4',
980
+ 'europe-west6',
981
+ 'europe-west8',
982
+ 'europe-west9',
983
+ 'fsn1',
984
+ 'hel1',
985
+ 'hil',
986
+ 'me-central1',
987
+ 'me-central2',
988
+ 'me-west1',
989
+ 'nbg1',
990
+ 'northamerica-northeast1',
991
+ 'northamerica-northeast2',
992
+ 'sa-east-1',
993
+ 'sin',
994
+ 'southamerica-east1',
995
+ 'southamerica-west1',
996
+ 'us-central1',
997
+ 'us-east-1',
998
+ 'us-east-2',
999
+ 'us-east1',
1000
+ 'us-east4',
1001
+ 'us-east5',
1002
+ 'us-south1',
1003
+ 'us-west-1',
1004
+ 'us-west-2',
1005
+ 'us-west1',
1006
+ 'us-west2',
1007
+ 'us-west3',
1008
+ 'us-west4'
1009
+ ])).optional()
1010
+ }).optional(),
1011
+ scalingProfile: z.enum(['aggressive', 'conservative'])
328
1012
  });
329
1013
  export const zInvite = z.object({
330
- id: z.optional(z.string()),
331
- organization_id: z.optional(z.uuid()),
1014
+ id: z.string().optional(),
1015
+ organization_id: z.uuid().optional(),
332
1016
  date_created: z.iso.datetime(),
333
- email: z.optional(z.email()),
334
- code: z.optional(z.string())
1017
+ email: z.email().optional(),
1018
+ code: z.string().optional()
335
1019
  });
336
1020
  export const zInvoice = z.object({
337
- id: z.optional(z.string()),
338
- number: z.optional(z.string()),
339
- status: z.optional(z.string()),
340
- total: z.optional(z.number()),
341
- currency: z.optional(z.string()),
1021
+ id: z.string().optional(),
1022
+ number: z.string().optional(),
1023
+ status: z.string().optional(),
1024
+ total: z.number().optional(),
1025
+ currency: z.string().optional(),
342
1026
  created: z.iso.datetime(),
343
1027
  period_start: z.iso.datetime(),
344
1028
  period_end: z.iso.datetime(),
345
- invoice_pdf: z.optional(z.string())
1029
+ invoice_pdf: z.string().optional()
346
1030
  });
347
1031
  export const zMarketplaceListingFiles = z.object({
348
- chartYaml: z.optional(z.string()),
349
- valuesYaml: z.optional(z.string()),
350
- valuesSchemaJson: z.optional(z.string())
1032
+ chartYaml: z.string().optional(),
1033
+ valuesYaml: z.string().optional(),
1034
+ valuesSchemaJson: z.string().optional()
351
1035
  });
352
1036
  export const zMarketplaceListing = z.object({
353
1037
  name: z.string(),
354
1038
  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-]+)*))?$/)),
355
1039
  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-]+)*))?$/)),
356
1040
  latestVersion: z.string(),
357
- metadata: z.optional(z.object({
1041
+ metadata: z.object({
358
1042
  name: z.string(),
359
1043
  version: z.string(),
360
- description: z.optional(z.string()),
361
- appVersion: z.optional(z.string()),
362
- apiVersion: z.optional(z.string()),
363
- keywords: z.optional(z.array(z.string())),
364
- home: z.optional(z.string()),
365
- sources: z.optional(z.array(z.string())),
366
- maintainers: z.optional(z.array(z.object({
1044
+ description: z.string().optional(),
1045
+ appVersion: z.string().optional(),
1046
+ apiVersion: z.string().optional(),
1047
+ keywords: z.array(z.string()).optional(),
1048
+ home: z.string().optional(),
1049
+ icon: z.string().optional(),
1050
+ sources: z.array(z.string()).optional(),
1051
+ maintainers: z.array(z.object({
367
1052
  name: z.string(),
368
- email: z.optional(z.string())
369
- })))
370
- }))
1053
+ email: z.string().optional()
1054
+ })).optional()
1055
+ }).optional()
371
1056
  });
372
1057
  export const zOrganizationCreateInput = z.object({
373
1058
  email: z.email(),
@@ -378,7 +1063,7 @@ export const zOrganizationCreateInput = z.object({
378
1063
  });
379
1064
  export const zOrganization = z.object({
380
1065
  id: z.uuid(),
381
- name: z.optional(z.string().min(2).max(120)),
1066
+ name: z.string().min(2).max(120).optional(),
382
1067
  date_created: z.iso.datetime(),
383
1068
  quota: z.object({
384
1069
  basic_clusters_max: z.int().gte(0),
@@ -392,8 +1077,7 @@ export const zOrganization = z.object({
392
1077
  id: z.string(),
393
1078
  label: z.string()
394
1079
  })).min(1),
395
- copilot_user_hourly_tokens: z.int().gte(0),
396
- copilot_organization_hourly_tokens: z.int().gte(0)
1080
+ cfcr_storage_gb: z.int().gte(-1)
397
1081
  }),
398
1082
  status: z.enum([
399
1083
  'active',
@@ -404,9 +1088,7 @@ export const zOrganization = z.object({
404
1088
  export const zPaymentMethod = z.object({
405
1089
  id: z.uuid(),
406
1090
  setup: z.boolean(),
407
- type: z.enum([
408
- 'card'
409
- ]),
1091
+ type: z.enum(['card']),
410
1092
  last4: z.string(),
411
1093
  exp_month: z.int().gte(1).lte(12),
412
1094
  exp_year: z.int().gte(2024),
@@ -434,8 +1116,7 @@ export const zPlatformQuota = z.object({
434
1116
  id: z.string(),
435
1117
  label: z.string()
436
1118
  })).min(1),
437
- copilot_user_hourly_tokens: z.int().gte(0),
438
- copilot_organization_hourly_tokens: z.int().gte(0)
1119
+ cfcr_storage_gb: z.int().gte(-1)
439
1120
  });
440
1121
  export const zRegistryRepository = z.object({
441
1122
  name: z.string(),
@@ -449,58 +1130,154 @@ export const zRegistryRepositoryWithTags = z.object({
449
1130
  tags: z.array(z.object({
450
1131
  name: z.string(),
451
1132
  size: z.number(),
452
- mediaType: z.optional(z.string())
1133
+ mediaType: z.string().optional(),
1134
+ platforms: z.array(z.string()).optional()
453
1135
  })),
454
1136
  totalSize: z.number()
455
1137
  });
456
1138
  export const zRegistryTag = z.object({
457
1139
  name: z.string(),
458
- mediaType: z.optional(z.string()),
459
- config: z.optional(z.object({
1140
+ digest: z.string(),
1141
+ mediaType: z.string().optional(),
1142
+ config: z.object({
460
1143
  size: z.number()
461
- })),
462
- layers: z.optional(z.array(z.object({
1144
+ }).optional(),
1145
+ layers: z.array(z.object({
1146
+ digest: z.string().optional(),
463
1147
  size: z.number()
464
- }))),
465
- manifests: z.optional(z.array(z.object({
1148
+ })).optional(),
1149
+ manifests: z.array(z.object({
466
1150
  digest: z.string(),
467
- platform: z.optional(z.object({
1151
+ platform: z.object({
468
1152
  architecture: z.string(),
469
- os: z.string()
470
- }))
471
- }))),
1153
+ os: z.string(),
1154
+ variant: z.string().optional()
1155
+ }).optional(),
1156
+ layers: z.array(z.object({
1157
+ digest: z.string().optional(),
1158
+ size: z.number()
1159
+ })).optional(),
1160
+ size: z.number().optional()
1161
+ })).optional(),
472
1162
  size: z.number(),
473
1163
  region: z.string(),
474
1164
  repository: z.string(),
475
1165
  uri: z.string()
476
1166
  });
1167
+ export const zTicketAttachment = z.object({
1168
+ id: z.string(),
1169
+ filename: z.string(),
1170
+ content_type: z.string(),
1171
+ size: z.int()
1172
+ });
1173
+ export const zTicketCreateInput = z.object({
1174
+ category: z.enum([
1175
+ 'billing',
1176
+ 'technical',
1177
+ 'general'
1178
+ ]),
1179
+ body: z.string().min(1).max(50000).regex(/\S/),
1180
+ properties: z.record(z.string(), z.unknown()).optional()
1181
+ });
1182
+ export const zTicketListResponse = z.object({
1183
+ items: z.array(z.object({
1184
+ id: z.string(),
1185
+ status: z.enum([
1186
+ 'waiting_on_us',
1187
+ 'waiting_on_user',
1188
+ 'closed'
1189
+ ]),
1190
+ category: z.enum([
1191
+ 'billing',
1192
+ 'technical',
1193
+ 'general'
1194
+ ]),
1195
+ summary: z.string(),
1196
+ closed_at: z.iso.datetime().optional(),
1197
+ date_created: z.iso.datetime(),
1198
+ date_updated: z.iso.datetime(),
1199
+ messages: z.array(z.object({
1200
+ id: z.string(),
1201
+ type: z.enum(['customer_reply', 'agent_reply']),
1202
+ body: z.string(),
1203
+ author_first_name: z.string().optional(),
1204
+ author_last_name: z.string().optional(),
1205
+ attachments: z.array(z.object({
1206
+ id: z.string(),
1207
+ filename: z.string(),
1208
+ content_type: z.string(),
1209
+ size: z.int()
1210
+ })).optional(),
1211
+ date_created: z.iso.datetime()
1212
+ })).optional()
1213
+ }))
1214
+ });
1215
+ export const zTicketMessageInput = z.object({
1216
+ body: z.string().min(1).max(50000).regex(/\S/)
1217
+ });
1218
+ export const zTicketMessage = z.object({
1219
+ id: z.string(),
1220
+ type: z.enum(['customer_reply', 'agent_reply']),
1221
+ body: z.string(),
1222
+ author_first_name: z.string().optional(),
1223
+ author_last_name: z.string().optional(),
1224
+ attachments: z.array(z.object({
1225
+ id: z.string(),
1226
+ filename: z.string(),
1227
+ content_type: z.string(),
1228
+ size: z.int()
1229
+ })).optional(),
1230
+ date_created: z.iso.datetime()
1231
+ });
1232
+ export const zTicket = z.object({
1233
+ id: z.string(),
1234
+ status: z.enum([
1235
+ 'waiting_on_us',
1236
+ 'waiting_on_user',
1237
+ 'closed'
1238
+ ]),
1239
+ category: z.enum([
1240
+ 'billing',
1241
+ 'technical',
1242
+ 'general'
1243
+ ]),
1244
+ summary: z.string(),
1245
+ closed_at: z.iso.datetime().optional(),
1246
+ date_created: z.iso.datetime(),
1247
+ date_updated: z.iso.datetime(),
1248
+ messages: z.array(z.object({
1249
+ id: z.string(),
1250
+ type: z.enum(['customer_reply', 'agent_reply']),
1251
+ body: z.string(),
1252
+ author_first_name: z.string().optional(),
1253
+ author_last_name: z.string().optional(),
1254
+ attachments: z.array(z.object({
1255
+ id: z.string(),
1256
+ filename: z.string(),
1257
+ content_type: z.string(),
1258
+ size: z.int()
1259
+ })).optional(),
1260
+ date_created: z.iso.datetime()
1261
+ })).optional()
1262
+ });
477
1263
  export const zTokenCreateInput = z.object({
478
1264
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
479
- role: z.enum([
480
- 'Administrator',
481
- 'User'
482
- ])
1265
+ role: z.enum(['Administrator', 'User'])
483
1266
  });
484
1267
  export const zToken = z.object({
485
1268
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
486
- role: z.enum([
487
- 'Administrator',
488
- 'User'
489
- ]),
490
- id: z.optional(z.string()),
491
- secret: z.optional(z.string()),
1269
+ role: z.enum(['Administrator', 'User']),
1270
+ id: z.string().optional(),
1271
+ secret: z.string().optional(),
492
1272
  date_created: z.iso.datetime()
493
1273
  });
494
1274
  export const zTokenUpdateInput = z.object({
495
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
496
- role: z.optional(z.enum([
497
- 'Administrator',
498
- 'User'
499
- ]))
1275
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
1276
+ role: z.enum(['Administrator', 'User']).optional()
500
1277
  });
501
1278
  export const zUsageFacets = z.object({
502
- cluster_id: z.optional(z.array(z.string())),
503
- product: z.optional(z.array(z.string()))
1279
+ cluster_id: z.array(z.string()).optional(),
1280
+ product: z.array(z.string()).optional()
504
1281
  });
505
1282
  export const zUsageResponse = z.object({
506
1283
  data: z.array(z.object({
@@ -512,8 +1289,8 @@ export const zUsageResponse = z.object({
512
1289
  total: z.number()
513
1290
  })),
514
1291
  facets: z.object({
515
- cluster_id: z.optional(z.array(z.string())),
516
- product: z.optional(z.array(z.string()))
1292
+ cluster_id: z.array(z.string()).optional(),
1293
+ product: z.array(z.string()).optional()
517
1294
  })
518
1295
  });
519
1296
  export const zUsage = z.object({
@@ -530,569 +1307,394 @@ export const zUserCreateInput = z.object({
530
1307
  last_name: z.string().min(1).max(50),
531
1308
  code: z.string(),
532
1309
  password: z.string().min(8),
533
- status: z.optional(z.enum([
534
- 'active',
535
- 'inactive'
536
- ])),
537
- role: z.optional(z.enum([
538
- 'Administrator',
539
- 'User'
540
- ]))
1310
+ status: z.enum(['active', 'inactive']).optional(),
1311
+ role: z.enum(['Administrator', 'User']).optional()
541
1312
  });
542
1313
  export const zUser = z.object({
543
1314
  email: z.email(),
544
1315
  first_name: z.string().min(1).max(50),
545
1316
  last_name: z.string().min(1).max(50),
546
- role: z.enum([
547
- 'Administrator',
548
- 'User'
549
- ]),
550
- status: z.enum([
551
- 'active',
552
- 'inactive'
553
- ]),
1317
+ role: z.enum(['Administrator', 'User']),
1318
+ status: z.enum(['active', 'inactive']),
554
1319
  id: z.uuid(),
555
1320
  date_created: z.iso.datetime()
556
1321
  });
557
1322
  export const zUserUpdateInput = z.object({
558
- email: z.optional(z.email()),
559
- first_name: z.optional(z.string().min(1).max(50)),
560
- last_name: z.optional(z.string().min(1).max(50)),
561
- role: z.optional(z.enum([
562
- 'Administrator',
563
- 'User'
564
- ])),
565
- status: z.optional(z.enum([
566
- 'active',
567
- 'inactive'
568
- ]))
569
- });
570
- export const zGetUsageData = z.object({
571
- body: z.optional(z.never()),
572
- path: z.optional(z.never()),
573
- query: z.optional(z.object({
574
- granularity: z.optional(z.enum([
575
- 'hourly',
576
- 'daily',
577
- 'monthly'
578
- ]))
579
- }))
1323
+ email: z.email().optional(),
1324
+ first_name: z.string().min(1).max(50).optional(),
1325
+ last_name: z.string().min(1).max(50).optional(),
1326
+ role: z.enum(['Administrator', 'User']).optional(),
1327
+ status: z.enum(['active', 'inactive']).optional()
1328
+ });
1329
+ export const zGetUsageQuery = z.object({
1330
+ granularity: z.enum([
1331
+ 'hourly',
1332
+ 'daily',
1333
+ 'monthly'
1334
+ ]).optional().default('daily')
580
1335
  });
581
1336
  /**
582
1337
  * Usage data with facets for filtering
583
1338
  */
584
1339
  export const zGetUsageResponse = zUsageResponse;
585
- export const zGetPaymentMethodData = z.object({
586
- body: z.optional(z.never()),
587
- path: z.optional(z.never()),
588
- query: z.optional(z.never())
589
- });
590
1340
  /**
591
1341
  * Redacted payment card information.
592
1342
  */
593
1343
  export const zGetPaymentMethodResponse = zPaymentMethod;
594
- export const zGetPaymentMethodSecretData = z.object({
595
- body: z.optional(z.never()),
596
- path: z.optional(z.never()),
597
- query: z.optional(z.never())
598
- });
599
1344
  /**
600
1345
  * 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.
601
1346
  *
602
1347
  */
603
1348
  export const zGetPaymentMethodSecretResponse = z.object({
604
- id: z.optional(z.string())
605
- });
606
- export const zListInvoicesData = z.object({
607
- body: z.optional(z.never()),
608
- path: z.optional(z.never()),
609
- query: z.optional(z.never())
1349
+ id: z.string().optional()
610
1350
  });
611
1351
  /**
612
1352
  * An array of usage records.
613
1353
  */
614
1354
  export const zListInvoicesResponse = z.array(zInvoice);
615
- export const zGetContactData = z.object({
616
- body: z.optional(z.never()),
617
- path: z.optional(z.never()),
618
- query: z.optional(z.never())
619
- });
620
1355
  /**
621
1356
  * Returns a single object containing organization contact and billing address details.
622
1357
  */
623
1358
  export const zGetContactResponse = zBillingContact;
624
- export const zUpdateContactData = z.object({
625
- body: zBillingContact,
626
- path: z.optional(z.never()),
627
- query: z.optional(z.never())
628
- });
1359
+ export const zUpdateContactBody = zBillingContact;
629
1360
  /**
630
1361
  * Successfully updated. Returns updated organization details.
631
1362
  */
632
1363
  export const zUpdateContactResponse = zBillingContact;
633
- export const zGetCreditsData = z.object({
634
- body: z.optional(z.never()),
635
- path: z.optional(z.never()),
636
- query: z.optional(z.never())
637
- });
638
1364
  /**
639
1365
  * An array of the applied promotional credits records.
640
1366
  */
641
1367
  export const zGetCreditsResponse = z.array(zBillingCredits);
642
- export const zRedeemCreditsData = z.object({
643
- body: z.object({
644
- code: z.optional(z.string())
645
- }),
646
- path: z.optional(z.never()),
647
- query: z.optional(z.never())
1368
+ export const zRedeemCreditsBody = z.object({
1369
+ code: z.string().optional()
648
1370
  });
649
- export const zListChartsData = z.object({
650
- body: z.optional(z.never()),
651
- path: z.object({
652
- cluster_id: z.string()
653
- }),
654
- query: z.optional(z.never())
1371
+ export const zListChartsPath = z.object({
1372
+ cluster_id: z.string()
655
1373
  });
656
1374
  /**
657
1375
  * An array of charts
658
1376
  */
659
1377
  export const zListChartsResponse = z.array(zChart);
660
- export const zCreateChartData = z.object({
661
- body: zChartCreateInput,
662
- path: z.object({
663
- cluster_id: z.string()
664
- }),
665
- query: z.optional(z.never())
1378
+ export const zCreateChartBody = zChartCreateInput;
1379
+ export const zCreateChartPath = z.object({
1380
+ cluster_id: z.string()
666
1381
  });
667
1382
  /**
668
1383
  * Successfully created. Returns created Chart ID.
669
1384
  */
670
1385
  export const zCreateChartResponse = z.string();
671
- export const zDeleteChartData = z.object({
672
- body: z.optional(z.never()),
673
- path: z.object({
674
- cluster_id: z.string(),
675
- chart_name: z.string()
676
- }),
677
- query: z.optional(z.never())
1386
+ export const zDeleteChartPath = z.object({
1387
+ cluster_id: z.string(),
1388
+ chart_name: z.string()
678
1389
  });
679
1390
  /**
680
1391
  * Successfully deleted.
681
1392
  */
682
1393
  export const zDeleteChartResponse = z.string();
683
- export const zGetChartData = z.object({
684
- body: z.optional(z.never()),
685
- path: z.object({
686
- cluster_id: z.string(),
687
- chart_name: z.string()
688
- }),
689
- query: z.optional(z.never())
1394
+ export const zGetChartPath = z.object({
1395
+ cluster_id: z.string(),
1396
+ chart_name: z.string()
690
1397
  });
691
1398
  /**
692
1399
  * Returns a single object containing chart details.
693
1400
  */
694
1401
  export const zGetChartResponse = zChart;
695
- export const zUpdateChartData = z.object({
696
- body: zChartUpdateInput,
697
- path: z.object({
698
- cluster_id: z.string(),
699
- chart_name: z.string()
700
- }),
701
- query: z.optional(z.never())
1402
+ export const zUpdateChartBody = zChartUpdateInput;
1403
+ export const zUpdateChartPath = z.object({
1404
+ cluster_id: z.string(),
1405
+ chart_name: z.string()
702
1406
  });
703
1407
  /**
704
1408
  * Successfully updated.
705
1409
  */
706
1410
  export const zUpdateChartResponse = z.string();
707
- export const zListFleetsData = z.object({
708
- body: z.optional(z.never()),
709
- path: z.object({
710
- cluster_id: z.string()
711
- }),
712
- query: z.optional(z.never())
1411
+ export const zListFleetsPath = z.object({
1412
+ cluster_id: z.string()
713
1413
  });
714
1414
  /**
715
1415
  * An array of fleets
716
1416
  */
717
1417
  export const zListFleetsResponse = z.array(zFleet);
718
- export const zCreateFleetData = z.object({
719
- body: zFleetCreateInput,
720
- path: z.object({
721
- cluster_id: z.string()
722
- }),
723
- query: z.optional(z.never())
1418
+ export const zCreateFleetBody = zFleetCreateInput;
1419
+ export const zCreateFleetPath = z.object({
1420
+ cluster_id: z.string()
724
1421
  });
725
1422
  /**
726
1423
  * Successfully created. Returns created Fleet ID.
727
1424
  */
728
1425
  export const zCreateFleetResponse = z.string();
729
- export const zDeleteFleetData = z.object({
730
- body: z.optional(z.never()),
731
- path: z.object({
732
- cluster_id: z.string(),
733
- fleet_name: z.string()
734
- }),
735
- query: z.optional(z.never())
1426
+ export const zDeleteFleetPath = z.object({
1427
+ cluster_id: z.string(),
1428
+ fleet_name: z.string()
736
1429
  });
737
1430
  /**
738
1431
  * Successfully deleted.
739
1432
  */
740
1433
  export const zDeleteFleetResponse = z.string();
741
- export const zGetFleetData = z.object({
742
- body: z.optional(z.never()),
743
- path: z.object({
744
- cluster_id: z.string(),
745
- fleet_name: z.string()
746
- }),
747
- query: z.optional(z.never())
1434
+ export const zGetFleetPath = z.object({
1435
+ cluster_id: z.string(),
1436
+ fleet_name: z.string()
748
1437
  });
749
1438
  /**
750
1439
  * Returns a single object containing fleet details.
751
1440
  */
752
1441
  export const zGetFleetResponse = zFleet;
753
- export const zUpdateFleetData = z.object({
754
- body: zFleetUpdateInput,
755
- path: z.object({
756
- cluster_id: z.string(),
757
- fleet_name: z.string()
758
- }),
759
- query: z.optional(z.never())
1442
+ export const zUpdateFleetBody = zFleetUpdateInput;
1443
+ export const zUpdateFleetPath = z.object({
1444
+ cluster_id: z.string(),
1445
+ fleet_name: z.string()
760
1446
  });
761
1447
  /**
762
1448
  * Successfully updated.
763
1449
  */
764
1450
  export const zUpdateFleetResponse = z.string();
765
- export const zQueryClusterData = z.object({
766
- body: z.optional(z.never()),
767
- path: z.object({
768
- cluster_id: z.string()
769
- }),
770
- query: z.optional(z.never())
771
- });
772
- export const zListClustersData = z.object({
773
- body: z.optional(z.never()),
774
- path: z.optional(z.never()),
775
- query: z.optional(z.never())
1451
+ export const zQueryClusterPath = z.object({
1452
+ cluster_id: z.string()
776
1453
  });
777
1454
  /**
778
1455
  * An array of clusters
779
1456
  */
780
1457
  export const zListClustersResponse = z.array(zCluster);
781
- export const zCreateClusterData = z.object({
782
- body: zClusterCreateInput,
783
- path: z.optional(z.never()),
784
- query: z.optional(z.never())
785
- });
1458
+ export const zCreateClusterBody = zClusterCreateInput;
786
1459
  /**
787
1460
  * Successfully created. Returns created Cluster ID.
788
1461
  */
789
1462
  export const zCreateClusterResponse = z.string();
790
- export const zDeleteClusterData = z.object({
791
- body: z.optional(z.never()),
792
- path: z.object({
793
- cluster_id: z.string()
794
- }),
795
- query: z.optional(z.never())
1463
+ export const zDeleteClusterPath = z.object({
1464
+ cluster_id: z.string()
796
1465
  });
797
1466
  /**
798
1467
  * Successfully deleted.
799
1468
  */
800
1469
  export const zDeleteClusterResponse = z.string();
801
- export const zGetClusterData = z.object({
802
- body: z.optional(z.never()),
803
- path: z.object({
804
- cluster_id: z.string()
805
- }),
806
- query: z.optional(z.never())
1470
+ export const zGetClusterPath = z.object({
1471
+ cluster_id: z.string()
807
1472
  });
808
1473
  /**
809
1474
  * Returns a single object containing cluster details.
810
1475
  */
811
1476
  export const zGetClusterResponse = zCluster;
812
- export const zUpdateClusterData = z.object({
813
- body: zClusterUpdateInput,
814
- path: z.object({
815
- cluster_id: z.string()
816
- }),
817
- query: z.optional(z.never())
1477
+ export const zUpdateClusterBody = zClusterUpdateInput;
1478
+ export const zUpdateClusterPath = z.object({
1479
+ cluster_id: z.string()
818
1480
  });
819
1481
  /**
820
1482
  * Successfully updated. Returns updated cluster details.
821
1483
  */
822
1484
  export const zUpdateClusterResponse = zCluster;
823
- export const zGetJoinInformationData = z.object({
824
- body: z.optional(z.never()),
825
- path: z.object({
826
- cluster_id: z.string()
827
- }),
828
- query: z.optional(z.never())
1485
+ export const zGetJoinInformationPath = z.object({
1486
+ cluster_id: z.string()
829
1487
  });
830
1488
  /**
831
1489
  * An object of cluster join information
832
1490
  */
833
1491
  export const zGetJoinInformationResponse = zClusterJoinInformation;
834
- export const zListInvitesData = z.object({
835
- body: z.optional(z.never()),
836
- path: z.optional(z.never()),
837
- query: z.optional(z.never())
838
- });
839
1492
  /**
840
1493
  * An array of invites
841
1494
  */
842
1495
  export const zListInvitesResponse = z.array(zInvite);
843
- export const zCreateInviteData = z.object({
844
- body: z.object({
845
- email: z.optional(z.string())
846
- }),
847
- path: z.optional(z.never()),
848
- query: z.optional(z.never())
1496
+ export const zCreateInviteBody = z.object({
1497
+ email: z.string().optional()
849
1498
  });
850
1499
  /**
851
1500
  * Successfully created. Returns created invite details.
852
1501
  */
853
1502
  export const zCreateInviteResponse = zInvite;
854
- export const zGetInviteData = z.object({
855
- body: z.optional(z.never()),
856
- path: z.object({
857
- code: z.string()
858
- }),
859
- query: z.optional(z.never())
1503
+ export const zGetInvitePath = z.object({
1504
+ code: z.string()
860
1505
  });
861
1506
  /**
862
1507
  * Returns a single object containing invite details.
863
1508
  */
864
1509
  export const zGetInviteResponse = zInvite;
865
- export const zDeleteInviteData = z.object({
866
- body: z.optional(z.never()),
867
- path: z.object({
868
- email: z.string()
869
- }),
870
- query: z.optional(z.never())
871
- });
872
- export const zListMarketplaceChartsData = z.object({
873
- body: z.optional(z.never()),
874
- path: z.optional(z.never()),
875
- query: z.optional(z.never())
1510
+ export const zDeleteInvitePath = z.object({
1511
+ email: z.string()
876
1512
  });
877
1513
  /**
878
1514
  * An array of chart listings in the marketplace.
879
1515
  */
880
1516
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
881
- export const zGetMarketplaceChartFilesData = z.object({
882
- body: z.optional(z.never()),
883
- path: z.object({
884
- chart_name: z.string(),
885
- version: z.string()
886
- }),
887
- query: z.optional(z.never())
1517
+ export const zGetMarketplaceChartFilesPath = z.object({
1518
+ chart_name: z.string(),
1519
+ version_channel: z.string()
888
1520
  });
889
1521
  /**
890
- * Returns an object containing the chart files.
1522
+ * Returns an object containing the chart files for the latest matching version.
891
1523
  */
892
1524
  export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
893
- export const zPostMcpData = z.object({
894
- body: z.object({
895
- jsonrpc: z.optional(z.string()),
896
- method: z.optional(z.string()),
897
- id: z.optional(z.union([
898
- z.string(),
899
- z.number()
900
- ])),
901
- params: z.optional(z.record(z.string(), z.unknown()))
902
- }),
903
- path: z.optional(z.never()),
904
- query: z.optional(z.never())
1525
+ /**
1526
+ * JSON-RPC 2.0 request payload
1527
+ */
1528
+ export const zPostMcpBody = z.object({
1529
+ jsonrpc: z.string().optional(),
1530
+ method: z.string().optional(),
1531
+ id: z.union([
1532
+ z.string(),
1533
+ z.number()
1534
+ ]).optional(),
1535
+ params: z.record(z.string(), z.unknown()).optional()
905
1536
  });
906
1537
  /**
907
1538
  * JSON-RPC 2.0 success or error response
908
1539
  */
909
1540
  export const zPostMcpResponse = z.object({
910
- jsonrpc: z.optional(z.string()),
911
- id: z.optional(z.union([
1541
+ jsonrpc: z.string().optional(),
1542
+ id: z.union([
912
1543
  z.string(),
913
1544
  z.number()
914
- ])),
915
- result: z.optional(z.record(z.string(), z.unknown())),
916
- error: z.optional(z.object({
917
- code: z.optional(z.int()),
918
- message: z.optional(z.string())
919
- }))
920
- });
921
- export const zGetOrganizationData = z.object({
922
- body: z.optional(z.never()),
923
- path: z.optional(z.never()),
924
- query: z.optional(z.never())
1545
+ ]).optional(),
1546
+ result: z.record(z.string(), z.unknown()).optional(),
1547
+ error: z.object({
1548
+ code: z.int().optional(),
1549
+ message: z.string().optional()
1550
+ }).optional()
925
1551
  });
926
1552
  /**
927
1553
  * Returns a single object containing organization details.
928
1554
  */
929
1555
  export const zGetOrganizationResponse = zOrganization;
930
- export const zCreateOrganizationData = z.object({
931
- body: zOrganizationCreateInput,
932
- path: z.optional(z.never()),
933
- query: z.optional(z.never())
934
- });
935
- export const zListRepositoriesData = z.object({
936
- body: z.optional(z.never()),
937
- path: z.optional(z.never()),
938
- query: z.optional(z.never())
939
- });
1556
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
940
1557
  /**
941
1558
  * List of repositories
942
1559
  */
943
1560
  export const zListRepositoriesResponse = z.array(zRegistryRepository);
944
- export const zListTagsData = z.object({
945
- body: z.optional(z.never()),
946
- path: z.object({
947
- region: z.string(),
948
- repository: z.string()
949
- }),
950
- query: z.optional(z.never())
1561
+ export const zListTagsPath = z.object({
1562
+ region: z.string(),
1563
+ repository: z.string()
951
1564
  });
952
1565
  /**
953
1566
  * Repository with tags
954
1567
  */
955
1568
  export const zListTagsResponse = zRegistryRepositoryWithTags;
956
- export const zDeleteTagData = z.object({
957
- body: z.optional(z.never()),
958
- path: z.object({
959
- region: z.string(),
960
- repository: z.string(),
961
- tag: z.string()
962
- }),
963
- query: z.optional(z.never())
964
- });
965
- export const zGetTagData = z.object({
966
- body: z.optional(z.never()),
967
- path: z.object({
968
- region: z.string(),
969
- repository: z.string(),
970
- tag: z.string()
971
- }),
972
- query: z.optional(z.never())
1569
+ export const zDeleteTagPath = z.object({
1570
+ region: z.string(),
1571
+ repository: z.string(),
1572
+ tag: z.string()
1573
+ });
1574
+ export const zGetTagPath = z.object({
1575
+ region: z.string(),
1576
+ repository: z.string(),
1577
+ tag: z.string()
973
1578
  });
974
1579
  /**
975
1580
  * Tag details
976
1581
  */
977
1582
  export const zGetTagResponse = zRegistryTag;
978
- export const zListTokensData = z.object({
979
- body: z.optional(z.never()),
980
- path: z.optional(z.never()),
981
- query: z.optional(z.never())
1583
+ /**
1584
+ * Tickets for the organization.
1585
+ */
1586
+ export const zListTicketsResponse = zTicketListResponse;
1587
+ export const zCreateTicketBody = z.object({
1588
+ payload: z.string().optional(),
1589
+ attachments: z.array(z.string()).optional()
1590
+ });
1591
+ /**
1592
+ * Ticket created.
1593
+ */
1594
+ export const zCreateTicketResponse = zTicket;
1595
+ export const zCloseTicketPath = z.object({
1596
+ ticket_id: z.string()
1597
+ });
1598
+ /**
1599
+ * Ticket closed.
1600
+ */
1601
+ export const zCloseTicketResponse = zTicket;
1602
+ export const zGetTicketPath = z.object({
1603
+ ticket_id: z.string()
1604
+ });
1605
+ /**
1606
+ * Ticket with messages (internal notes excluded).
1607
+ */
1608
+ export const zGetTicketResponse = zTicket;
1609
+ export const zReplyTicketBody = z.object({
1610
+ payload: z.string().optional(),
1611
+ attachments: z.array(z.string()).optional()
1612
+ });
1613
+ export const zReplyTicketPath = z.object({
1614
+ ticket_id: z.string()
982
1615
  });
1616
+ /**
1617
+ * Reply appended.
1618
+ */
1619
+ export const zReplyTicketResponse = zTicketMessage;
1620
+ export const zGetTicketAttachmentPath = z.object({
1621
+ ticket_id: z.string(),
1622
+ attachment_id: z.string()
1623
+ });
1624
+ /**
1625
+ * Attachment binary stream.
1626
+ */
1627
+ export const zGetTicketAttachmentResponse = z.string();
983
1628
  /**
984
1629
  * Returns a list of access token details with masked secrets.
985
1630
  */
986
1631
  export const zListTokensResponse = z.array(zToken);
987
- export const zCreateTokenData = z.object({
988
- body: zTokenCreateInput,
989
- path: z.optional(z.never()),
990
- query: z.optional(z.never())
991
- });
1632
+ export const zCreateTokenBody = zTokenCreateInput;
992
1633
  /**
993
1634
  * Successfully created. Returns created token details with unmasked/raw secret.
994
1635
  */
995
1636
  export const zCreateTokenResponse = zToken;
996
- export const zDeleteTokenData = z.object({
997
- body: z.optional(z.never()),
998
- path: z.object({
999
- token_id: z.string()
1000
- }),
1001
- query: z.optional(z.never())
1637
+ export const zDeleteTokenPath = z.object({
1638
+ token_id: z.string()
1002
1639
  });
1003
- export const zGetTokenData = z.object({
1004
- body: z.optional(z.never()),
1005
- path: z.object({
1006
- token_id: z.string()
1007
- }),
1008
- query: z.optional(z.never())
1640
+ export const zGetTokenPath = z.object({
1641
+ token_id: z.string()
1009
1642
  });
1010
1643
  /**
1011
1644
  * Returns access token details with masked secret.
1012
1645
  */
1013
1646
  export const zGetTokenResponse = zToken;
1014
- export const zUpdateTokenData = z.object({
1015
- body: zTokenUpdateInput,
1016
- path: z.object({
1017
- token_id: z.string()
1018
- }),
1019
- query: z.optional(z.never())
1647
+ export const zUpdateTokenBody = zTokenUpdateInput;
1648
+ export const zUpdateTokenPath = z.object({
1649
+ token_id: z.string()
1020
1650
  });
1021
1651
  /**
1022
1652
  * Successfully updated. Returns updated token details with masked secret.
1023
1653
  */
1024
1654
  export const zUpdateTokenResponse = zToken;
1025
- export const zRegenerateTokenData = z.object({
1026
- body: z.optional(z.never()),
1027
- path: z.object({
1028
- token_id: z.string()
1029
- }),
1030
- query: z.optional(z.never())
1655
+ export const zRegenerateTokenPath = z.object({
1656
+ token_id: z.string()
1031
1657
  });
1032
1658
  /**
1033
1659
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1034
1660
  */
1035
1661
  export const zRegenerateTokenResponse = zToken;
1036
- export const zListUserOrganizationsData = z.object({
1037
- body: z.optional(z.never()),
1038
- path: z.object({
1039
- email: z.string()
1040
- }),
1041
- query: z.optional(z.never())
1662
+ export const zListUserOrganizationsPath = z.object({
1663
+ email: z.string()
1042
1664
  });
1043
1665
  /**
1044
1666
  * An array of organizations the user belongs to.
1045
1667
  */
1046
1668
  export const zListUserOrganizationsResponse = z.array(z.object({
1047
- realm: z.optional(z.string()),
1048
- displayName: z.optional(z.string())
1669
+ realm: z.string().optional(),
1670
+ displayName: z.string().optional()
1049
1671
  }));
1050
- export const zListUsersData = z.object({
1051
- body: z.optional(z.never()),
1052
- path: z.optional(z.never()),
1053
- query: z.optional(z.never())
1054
- });
1055
1672
  /**
1056
1673
  * An array of users
1057
1674
  */
1058
1675
  export const zListUsersResponse = z.array(zUser);
1059
- export const zCreateUserData = z.object({
1060
- body: zUserCreateInput,
1061
- path: z.optional(z.never()),
1062
- query: z.optional(z.never())
1063
- });
1676
+ export const zCreateUserBody = zUserCreateInput;
1064
1677
  /**
1065
1678
  * Successfully created. Returns created user details.
1066
1679
  */
1067
1680
  export const zCreateUserResponse = zUser;
1068
- export const zDeleteUserData = z.object({
1069
- body: z.optional(z.never()),
1070
- path: z.object({
1071
- user_id: z.string()
1072
- }),
1073
- query: z.optional(z.never())
1681
+ export const zDeleteUserPath = z.object({
1682
+ user_id: z.string()
1074
1683
  });
1075
1684
  /**
1076
1685
  * User profile information
1077
1686
  */
1078
1687
  export const zDeleteUserResponse = zUser;
1079
- export const zGetUserData = z.object({
1080
- body: z.optional(z.never()),
1081
- path: z.object({
1082
- user_id: z.string()
1083
- }),
1084
- query: z.optional(z.never())
1688
+ export const zGetUserPath = z.object({
1689
+ user_id: z.string()
1085
1690
  });
1086
1691
  /**
1087
1692
  * User profile information
1088
1693
  */
1089
1694
  export const zGetUserResponse = zUser;
1090
- export const zUpdateUserData = z.object({
1091
- body: zUserUpdateInput,
1092
- path: z.object({
1093
- user_id: z.string()
1094
- }),
1095
- query: z.optional(z.never())
1695
+ export const zUpdateUserBody = zUserUpdateInput;
1696
+ export const zUpdateUserPath = z.object({
1697
+ user_id: z.string()
1096
1698
  });
1097
1699
  /**
1098
1700
  * Successfully created. Returns created user details.