@cloudfleet/sdk 0.0.1-d582884 → 0.0.1-d824507

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 +482 -32
  46. package/dist/schemas.gen.d.ts.map +1 -1
  47. package/dist/schemas.gen.js +1108 -125
  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 +411 -21
  55. package/dist/types.gen.d.ts.map +1 -1
  56. package/dist/zod.gen.d.ts +692 -575
  57. package/dist/zod.gen.d.ts.map +1 -1
  58. package/dist/zod.gen.js +398 -493
  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,118 @@ 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
+ certificate_ca: z.string().optional(),
252
+ version_current: z.string().optional(),
253
+ created_at: z.string().optional(),
254
+ updated_at: z.string().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()
267
257
  });
268
258
  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-]+)*))?$/))
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
+ 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
262
  });
276
263
  export const zFleetCreateInput = z.object({
277
- limits: z.optional(z.object({
264
+ limits: z.object({
278
265
  cpu: z.number().gte(0)
279
- })),
280
- gcp: z.optional(z.object({
281
- enabled: z.optional(z.boolean()).default(true),
266
+ }).optional(),
267
+ gcp: z.object({
268
+ enabled: z.boolean().optional().default(true),
282
269
  project: z.string()
283
- })),
284
- hetzner: z.optional(z.object({
285
- enabled: z.optional(z.boolean()).default(true),
270
+ }).optional(),
271
+ hetzner: z.object({
272
+ enabled: z.boolean().optional().default(true),
286
273
  apiKey: z.string()
287
- })),
288
- aws: z.optional(z.object({
289
- enabled: z.optional(z.boolean()).default(true),
274
+ }).optional(),
275
+ aws: z.object({
276
+ enabled: z.boolean().optional().default(true),
290
277
  controllerRoleArn: z.string()
291
- })),
278
+ }).optional(),
292
279
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
293
280
  });
294
281
  export const zFleet = z.object({
295
- limits: z.optional(z.object({
282
+ limits: z.object({
296
283
  cpu: z.number().gte(0)
297
- })),
298
- gcp: z.optional(z.object({
299
- enabled: z.optional(z.boolean()).default(true),
284
+ }).optional(),
285
+ gcp: z.object({
286
+ enabled: z.boolean().optional().default(true),
300
287
  project: z.string()
301
- })),
302
- hetzner: z.optional(z.object({
303
- enabled: z.optional(z.boolean()).default(true),
288
+ }).optional(),
289
+ hetzner: z.object({
290
+ enabled: z.boolean().optional().default(true),
304
291
  apiKey: z.string()
305
- })),
306
- aws: z.optional(z.object({
307
- enabled: z.optional(z.boolean()).default(true),
292
+ }).optional(),
293
+ aws: z.object({
294
+ enabled: z.boolean().optional().default(true),
308
295
  controllerRoleArn: z.string()
309
- })),
296
+ }).optional(),
310
297
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
311
298
  });
312
299
  export const zFleetUpdateInput = z.object({
313
- limits: z.optional(z.object({
300
+ limits: z.object({
314
301
  cpu: z.number().gte(0)
315
- })),
316
- gcp: z.optional(z.object({
317
- enabled: z.optional(z.boolean()).default(true),
302
+ }).optional(),
303
+ gcp: z.object({
304
+ enabled: z.boolean().optional().default(true),
318
305
  project: z.string()
319
- })),
320
- hetzner: z.optional(z.object({
321
- enabled: z.optional(z.boolean()).default(true),
306
+ }).optional(),
307
+ hetzner: z.object({
308
+ enabled: z.boolean().optional().default(true),
322
309
  apiKey: z.string()
323
- })),
324
- aws: z.optional(z.object({
325
- enabled: z.optional(z.boolean()).default(true),
310
+ }).optional(),
311
+ aws: z.object({
312
+ enabled: z.boolean().optional().default(true),
326
313
  controllerRoleArn: z.string()
327
- }))
314
+ }).optional()
328
315
  });
329
316
  export const zInvite = z.object({
330
- id: z.optional(z.string()),
331
- organization_id: z.optional(z.uuid()),
317
+ id: z.string().optional(),
318
+ organization_id: z.uuid().optional(),
332
319
  date_created: z.iso.datetime(),
333
- email: z.optional(z.email()),
334
- code: z.optional(z.string())
320
+ email: z.email().optional(),
321
+ code: z.string().optional()
335
322
  });
336
323
  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()),
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(),
342
329
  created: z.iso.datetime(),
343
330
  period_start: z.iso.datetime(),
344
331
  period_end: z.iso.datetime(),
345
- invoice_pdf: z.optional(z.string())
332
+ invoice_pdf: z.string().optional()
346
333
  });
347
334
  export const zMarketplaceListingFiles = z.object({
348
- chartYaml: z.optional(z.string()),
349
- valuesYaml: z.optional(z.string()),
350
- valuesSchemaJson: z.optional(z.string())
335
+ chartYaml: z.string().optional(),
336
+ valuesYaml: z.string().optional(),
337
+ valuesSchemaJson: z.string().optional()
351
338
  });
352
339
  export const zMarketplaceListing = z.object({
353
340
  name: z.string(),
354
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-]+)*))?$/)),
355
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-]+)*))?$/)),
356
343
  latestVersion: z.string(),
357
- metadata: z.optional(z.object({
344
+ metadata: z.object({
358
345
  name: z.string(),
359
346
  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({
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({
367
355
  name: z.string(),
368
- email: z.optional(z.string())
369
- })))
370
- }))
356
+ email: z.string().optional()
357
+ })).optional()
358
+ }).optional()
371
359
  });
372
360
  export const zOrganizationCreateInput = z.object({
373
361
  email: z.email(),
@@ -378,7 +366,7 @@ export const zOrganizationCreateInput = z.object({
378
366
  });
379
367
  export const zOrganization = z.object({
380
368
  id: z.uuid(),
381
- name: z.optional(z.string().min(2).max(120)),
369
+ name: z.string().min(2).max(120).optional(),
382
370
  date_created: z.iso.datetime(),
383
371
  quota: z.object({
384
372
  basic_clusters_max: z.int().gte(0),
@@ -392,8 +380,7 @@ export const zOrganization = z.object({
392
380
  id: z.string(),
393
381
  label: z.string()
394
382
  })).min(1),
395
- copilot_user_hourly_tokens: z.int().gte(0),
396
- copilot_organization_hourly_tokens: z.int().gte(0)
383
+ cfcr_storage_gb: z.int().gte(-1)
397
384
  }),
398
385
  status: z.enum([
399
386
  'active',
@@ -404,9 +391,7 @@ export const zOrganization = z.object({
404
391
  export const zPaymentMethod = z.object({
405
392
  id: z.uuid(),
406
393
  setup: z.boolean(),
407
- type: z.enum([
408
- 'card'
409
- ]),
394
+ type: z.enum(['card']),
410
395
  last4: z.string(),
411
396
  exp_month: z.int().gte(1).lte(12),
412
397
  exp_year: z.int().gte(2024),
@@ -434,8 +419,7 @@ export const zPlatformQuota = z.object({
434
419
  id: z.string(),
435
420
  label: z.string()
436
421
  })).min(1),
437
- copilot_user_hourly_tokens: z.int().gte(0),
438
- copilot_organization_hourly_tokens: z.int().gte(0)
422
+ cfcr_storage_gb: z.int().gte(-1)
439
423
  });
440
424
  export const zRegistryRepository = z.object({
441
425
  name: z.string(),
@@ -449,58 +433,154 @@ export const zRegistryRepositoryWithTags = z.object({
449
433
  tags: z.array(z.object({
450
434
  name: z.string(),
451
435
  size: z.number(),
452
- mediaType: z.optional(z.string())
436
+ mediaType: z.string().optional(),
437
+ platforms: z.array(z.string()).optional()
453
438
  })),
454
439
  totalSize: z.number()
455
440
  });
456
441
  export const zRegistryTag = z.object({
457
442
  name: z.string(),
458
- mediaType: z.optional(z.string()),
459
- config: z.optional(z.object({
443
+ digest: z.string(),
444
+ mediaType: z.string().optional(),
445
+ config: z.object({
460
446
  size: z.number()
461
- })),
462
- layers: z.optional(z.array(z.object({
447
+ }).optional(),
448
+ layers: z.array(z.object({
449
+ digest: z.string().optional(),
463
450
  size: z.number()
464
- }))),
465
- manifests: z.optional(z.array(z.object({
451
+ })).optional(),
452
+ manifests: z.array(z.object({
466
453
  digest: z.string(),
467
- platform: z.optional(z.object({
454
+ platform: z.object({
468
455
  architecture: z.string(),
469
- os: z.string()
470
- }))
471
- }))),
456
+ os: z.string(),
457
+ variant: z.string().optional()
458
+ }).optional(),
459
+ layers: z.array(z.object({
460
+ digest: z.string().optional(),
461
+ size: z.number()
462
+ })).optional(),
463
+ size: z.number().optional()
464
+ })).optional(),
472
465
  size: z.number(),
473
466
  region: z.string(),
474
467
  repository: z.string(),
475
468
  uri: z.string()
476
469
  });
470
+ export const zTicketAttachment = z.object({
471
+ id: z.string(),
472
+ filename: z.string(),
473
+ content_type: z.string(),
474
+ size: z.int()
475
+ });
476
+ export const zTicketCreateInput = z.object({
477
+ category: z.enum([
478
+ 'billing',
479
+ 'technical',
480
+ 'general'
481
+ ]),
482
+ body: z.string().min(1).max(50000).regex(/\S/),
483
+ properties: z.record(z.string(), z.unknown()).optional()
484
+ });
485
+ export const zTicketListResponse = z.object({
486
+ items: z.array(z.object({
487
+ id: z.string(),
488
+ status: z.enum([
489
+ 'waiting_on_us',
490
+ 'waiting_on_user',
491
+ 'closed'
492
+ ]),
493
+ category: z.enum([
494
+ 'billing',
495
+ 'technical',
496
+ 'general'
497
+ ]),
498
+ summary: z.string(),
499
+ closed_at: z.iso.datetime().optional(),
500
+ date_created: z.iso.datetime(),
501
+ date_updated: z.iso.datetime(),
502
+ messages: z.array(z.object({
503
+ id: z.string(),
504
+ type: z.enum(['customer_reply', 'agent_reply']),
505
+ body: z.string(),
506
+ author_first_name: z.string().optional(),
507
+ author_last_name: z.string().optional(),
508
+ attachments: z.array(z.object({
509
+ id: z.string(),
510
+ filename: z.string(),
511
+ content_type: z.string(),
512
+ size: z.int()
513
+ })).optional(),
514
+ date_created: z.iso.datetime()
515
+ })).optional()
516
+ }))
517
+ });
518
+ export const zTicketMessageInput = z.object({
519
+ body: z.string().min(1).max(50000).regex(/\S/)
520
+ });
521
+ export const zTicketMessage = z.object({
522
+ id: z.string(),
523
+ type: z.enum(['customer_reply', 'agent_reply']),
524
+ body: z.string(),
525
+ author_first_name: z.string().optional(),
526
+ author_last_name: z.string().optional(),
527
+ attachments: z.array(z.object({
528
+ id: z.string(),
529
+ filename: z.string(),
530
+ content_type: z.string(),
531
+ size: z.int()
532
+ })).optional(),
533
+ date_created: z.iso.datetime()
534
+ });
535
+ export const zTicket = z.object({
536
+ id: z.string(),
537
+ status: z.enum([
538
+ 'waiting_on_us',
539
+ 'waiting_on_user',
540
+ 'closed'
541
+ ]),
542
+ category: z.enum([
543
+ 'billing',
544
+ 'technical',
545
+ 'general'
546
+ ]),
547
+ summary: z.string(),
548
+ closed_at: z.iso.datetime().optional(),
549
+ date_created: z.iso.datetime(),
550
+ date_updated: z.iso.datetime(),
551
+ messages: z.array(z.object({
552
+ id: z.string(),
553
+ type: z.enum(['customer_reply', 'agent_reply']),
554
+ body: z.string(),
555
+ author_first_name: z.string().optional(),
556
+ author_last_name: z.string().optional(),
557
+ attachments: z.array(z.object({
558
+ id: z.string(),
559
+ filename: z.string(),
560
+ content_type: z.string(),
561
+ size: z.int()
562
+ })).optional(),
563
+ date_created: z.iso.datetime()
564
+ })).optional()
565
+ });
477
566
  export const zTokenCreateInput = z.object({
478
567
  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
- ])
568
+ role: z.enum(['Administrator', 'User'])
483
569
  });
484
570
  export const zToken = z.object({
485
571
  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()),
572
+ role: z.enum(['Administrator', 'User']),
573
+ id: z.string().optional(),
574
+ secret: z.string().optional(),
492
575
  date_created: z.iso.datetime()
493
576
  });
494
577
  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
- ]))
578
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
579
+ role: z.enum(['Administrator', 'User']).optional()
500
580
  });
501
581
  export const zUsageFacets = z.object({
502
- cluster_id: z.optional(z.array(z.string())),
503
- product: z.optional(z.array(z.string()))
582
+ cluster_id: z.array(z.string()).optional(),
583
+ product: z.array(z.string()).optional()
504
584
  });
505
585
  export const zUsageResponse = z.object({
506
586
  data: z.array(z.object({
@@ -512,8 +592,8 @@ export const zUsageResponse = z.object({
512
592
  total: z.number()
513
593
  })),
514
594
  facets: z.object({
515
- cluster_id: z.optional(z.array(z.string())),
516
- product: z.optional(z.array(z.string()))
595
+ cluster_id: z.array(z.string()).optional(),
596
+ product: z.array(z.string()).optional()
517
597
  })
518
598
  });
519
599
  export const zUsage = z.object({
@@ -530,569 +610,394 @@ export const zUserCreateInput = z.object({
530
610
  last_name: z.string().min(1).max(50),
531
611
  code: z.string(),
532
612
  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
- ]))
613
+ status: z.enum(['active', 'inactive']).optional(),
614
+ role: z.enum(['Administrator', 'User']).optional()
541
615
  });
542
616
  export const zUser = z.object({
543
617
  email: z.email(),
544
618
  first_name: z.string().min(1).max(50),
545
619
  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
- ]),
620
+ role: z.enum(['Administrator', 'User']),
621
+ status: z.enum(['active', 'inactive']),
554
622
  id: z.uuid(),
555
623
  date_created: z.iso.datetime()
556
624
  });
557
625
  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
- }))
626
+ email: z.email().optional(),
627
+ first_name: z.string().min(1).max(50).optional(),
628
+ last_name: z.string().min(1).max(50).optional(),
629
+ role: z.enum(['Administrator', 'User']).optional(),
630
+ status: z.enum(['active', 'inactive']).optional()
631
+ });
632
+ export const zGetUsageQuery = z.object({
633
+ granularity: z.enum([
634
+ 'hourly',
635
+ 'daily',
636
+ 'monthly'
637
+ ]).optional().default('daily')
580
638
  });
581
639
  /**
582
640
  * Usage data with facets for filtering
583
641
  */
584
642
  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
643
  /**
591
644
  * Redacted payment card information.
592
645
  */
593
646
  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
647
  /**
600
648
  * 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
649
  *
602
650
  */
603
651
  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())
652
+ id: z.string().optional()
610
653
  });
611
654
  /**
612
655
  * An array of usage records.
613
656
  */
614
657
  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
658
  /**
621
659
  * Returns a single object containing organization contact and billing address details.
622
660
  */
623
661
  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
- });
662
+ export const zUpdateContactBody = zBillingContact;
629
663
  /**
630
664
  * Successfully updated. Returns updated organization details.
631
665
  */
632
666
  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
667
  /**
639
668
  * An array of the applied promotional credits records.
640
669
  */
641
670
  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())
671
+ export const zRedeemCreditsBody = z.object({
672
+ code: z.string().optional()
648
673
  });
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())
674
+ export const zListChartsPath = z.object({
675
+ cluster_id: z.string()
655
676
  });
656
677
  /**
657
678
  * An array of charts
658
679
  */
659
680
  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())
681
+ export const zCreateChartBody = zChartCreateInput;
682
+ export const zCreateChartPath = z.object({
683
+ cluster_id: z.string()
666
684
  });
667
685
  /**
668
686
  * Successfully created. Returns created Chart ID.
669
687
  */
670
688
  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())
689
+ export const zDeleteChartPath = z.object({
690
+ cluster_id: z.string(),
691
+ chart_name: z.string()
678
692
  });
679
693
  /**
680
694
  * Successfully deleted.
681
695
  */
682
696
  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())
697
+ export const zGetChartPath = z.object({
698
+ cluster_id: z.string(),
699
+ chart_name: z.string()
690
700
  });
691
701
  /**
692
702
  * Returns a single object containing chart details.
693
703
  */
694
704
  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())
705
+ export const zUpdateChartBody = zChartUpdateInput;
706
+ export const zUpdateChartPath = z.object({
707
+ cluster_id: z.string(),
708
+ chart_name: z.string()
702
709
  });
703
710
  /**
704
711
  * Successfully updated.
705
712
  */
706
713
  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())
714
+ export const zListFleetsPath = z.object({
715
+ cluster_id: z.string()
713
716
  });
714
717
  /**
715
718
  * An array of fleets
716
719
  */
717
720
  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())
721
+ export const zCreateFleetBody = zFleetCreateInput;
722
+ export const zCreateFleetPath = z.object({
723
+ cluster_id: z.string()
724
724
  });
725
725
  /**
726
726
  * Successfully created. Returns created Fleet ID.
727
727
  */
728
728
  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())
729
+ export const zDeleteFleetPath = z.object({
730
+ cluster_id: z.string(),
731
+ fleet_name: z.string()
736
732
  });
737
733
  /**
738
734
  * Successfully deleted.
739
735
  */
740
736
  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())
737
+ export const zGetFleetPath = z.object({
738
+ cluster_id: z.string(),
739
+ fleet_name: z.string()
748
740
  });
749
741
  /**
750
742
  * Returns a single object containing fleet details.
751
743
  */
752
744
  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())
745
+ export const zUpdateFleetBody = zFleetUpdateInput;
746
+ export const zUpdateFleetPath = z.object({
747
+ cluster_id: z.string(),
748
+ fleet_name: z.string()
760
749
  });
761
750
  /**
762
751
  * Successfully updated.
763
752
  */
764
753
  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())
754
+ export const zQueryClusterPath = z.object({
755
+ cluster_id: z.string()
776
756
  });
777
757
  /**
778
758
  * An array of clusters
779
759
  */
780
760
  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
- });
761
+ export const zCreateClusterBody = zClusterCreateInput;
786
762
  /**
787
763
  * Successfully created. Returns created Cluster ID.
788
764
  */
789
765
  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())
766
+ export const zDeleteClusterPath = z.object({
767
+ cluster_id: z.string()
796
768
  });
797
769
  /**
798
770
  * Successfully deleted.
799
771
  */
800
772
  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())
773
+ export const zGetClusterPath = z.object({
774
+ cluster_id: z.string()
807
775
  });
808
776
  /**
809
777
  * Returns a single object containing cluster details.
810
778
  */
811
779
  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())
780
+ export const zUpdateClusterBody = zClusterUpdateInput;
781
+ export const zUpdateClusterPath = z.object({
782
+ cluster_id: z.string()
818
783
  });
819
784
  /**
820
785
  * Successfully updated. Returns updated cluster details.
821
786
  */
822
787
  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())
788
+ export const zGetJoinInformationPath = z.object({
789
+ cluster_id: z.string()
829
790
  });
830
791
  /**
831
792
  * An object of cluster join information
832
793
  */
833
794
  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
795
  /**
840
796
  * An array of invites
841
797
  */
842
798
  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())
799
+ export const zCreateInviteBody = z.object({
800
+ email: z.string().optional()
849
801
  });
850
802
  /**
851
803
  * Successfully created. Returns created invite details.
852
804
  */
853
805
  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())
806
+ export const zGetInvitePath = z.object({
807
+ code: z.string()
860
808
  });
861
809
  /**
862
810
  * Returns a single object containing invite details.
863
811
  */
864
812
  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())
813
+ export const zDeleteInvitePath = z.object({
814
+ email: z.string()
876
815
  });
877
816
  /**
878
817
  * An array of chart listings in the marketplace.
879
818
  */
880
819
  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())
820
+ export const zGetMarketplaceChartFilesPath = z.object({
821
+ chart_name: z.string(),
822
+ version_channel: z.string()
888
823
  });
889
824
  /**
890
- * Returns an object containing the chart files.
825
+ * Returns an object containing the chart files for the latest matching version.
891
826
  */
892
827
  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())
828
+ /**
829
+ * JSON-RPC 2.0 request payload
830
+ */
831
+ export const zPostMcpBody = z.object({
832
+ jsonrpc: z.string().optional(),
833
+ method: z.string().optional(),
834
+ id: z.union([
835
+ z.string(),
836
+ z.number()
837
+ ]).optional(),
838
+ params: z.record(z.string(), z.unknown()).optional()
905
839
  });
906
840
  /**
907
841
  * JSON-RPC 2.0 success or error response
908
842
  */
909
843
  export const zPostMcpResponse = z.object({
910
- jsonrpc: z.optional(z.string()),
911
- id: z.optional(z.union([
844
+ jsonrpc: z.string().optional(),
845
+ id: z.union([
912
846
  z.string(),
913
847
  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())
848
+ ]).optional(),
849
+ result: z.record(z.string(), z.unknown()).optional(),
850
+ error: z.object({
851
+ code: z.int().optional(),
852
+ message: z.string().optional()
853
+ }).optional()
925
854
  });
926
855
  /**
927
856
  * Returns a single object containing organization details.
928
857
  */
929
858
  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
- });
859
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
940
860
  /**
941
861
  * List of repositories
942
862
  */
943
863
  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())
864
+ export const zListTagsPath = z.object({
865
+ region: z.string(),
866
+ repository: z.string()
951
867
  });
952
868
  /**
953
869
  * Repository with tags
954
870
  */
955
871
  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())
872
+ export const zDeleteTagPath = z.object({
873
+ region: z.string(),
874
+ repository: z.string(),
875
+ tag: z.string()
876
+ });
877
+ export const zGetTagPath = z.object({
878
+ region: z.string(),
879
+ repository: z.string(),
880
+ tag: z.string()
973
881
  });
974
882
  /**
975
883
  * Tag details
976
884
  */
977
885
  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())
886
+ /**
887
+ * Tickets for the organization.
888
+ */
889
+ export const zListTicketsResponse = zTicketListResponse;
890
+ export const zCreateTicketBody = z.object({
891
+ payload: z.string().optional(),
892
+ attachments: z.array(z.string()).optional()
893
+ });
894
+ /**
895
+ * Ticket created.
896
+ */
897
+ export const zCreateTicketResponse = zTicket;
898
+ export const zCloseTicketPath = z.object({
899
+ ticket_id: z.string()
900
+ });
901
+ /**
902
+ * Ticket closed.
903
+ */
904
+ export const zCloseTicketResponse = zTicket;
905
+ export const zGetTicketPath = z.object({
906
+ ticket_id: z.string()
907
+ });
908
+ /**
909
+ * Ticket with messages (internal notes excluded).
910
+ */
911
+ export const zGetTicketResponse = zTicket;
912
+ export const zReplyTicketBody = z.object({
913
+ payload: z.string().optional(),
914
+ attachments: z.array(z.string()).optional()
915
+ });
916
+ export const zReplyTicketPath = z.object({
917
+ ticket_id: z.string()
982
918
  });
919
+ /**
920
+ * Reply appended.
921
+ */
922
+ export const zReplyTicketResponse = zTicketMessage;
923
+ export const zGetTicketAttachmentPath = z.object({
924
+ ticket_id: z.string(),
925
+ attachment_id: z.string()
926
+ });
927
+ /**
928
+ * Attachment binary stream.
929
+ */
930
+ export const zGetTicketAttachmentResponse = z.string();
983
931
  /**
984
932
  * Returns a list of access token details with masked secrets.
985
933
  */
986
934
  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
- });
935
+ export const zCreateTokenBody = zTokenCreateInput;
992
936
  /**
993
937
  * Successfully created. Returns created token details with unmasked/raw secret.
994
938
  */
995
939
  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())
940
+ export const zDeleteTokenPath = z.object({
941
+ token_id: z.string()
1002
942
  });
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())
943
+ export const zGetTokenPath = z.object({
944
+ token_id: z.string()
1009
945
  });
1010
946
  /**
1011
947
  * Returns access token details with masked secret.
1012
948
  */
1013
949
  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())
950
+ export const zUpdateTokenBody = zTokenUpdateInput;
951
+ export const zUpdateTokenPath = z.object({
952
+ token_id: z.string()
1020
953
  });
1021
954
  /**
1022
955
  * Successfully updated. Returns updated token details with masked secret.
1023
956
  */
1024
957
  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())
958
+ export const zRegenerateTokenPath = z.object({
959
+ token_id: z.string()
1031
960
  });
1032
961
  /**
1033
962
  * Successfully updated. Returns updated token details with unmasked / raw secret.
1034
963
  */
1035
964
  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())
965
+ export const zListUserOrganizationsPath = z.object({
966
+ email: z.string()
1042
967
  });
1043
968
  /**
1044
969
  * An array of organizations the user belongs to.
1045
970
  */
1046
971
  export const zListUserOrganizationsResponse = z.array(z.object({
1047
- realm: z.optional(z.string()),
1048
- displayName: z.optional(z.string())
972
+ realm: z.string().optional(),
973
+ displayName: z.string().optional()
1049
974
  }));
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
975
  /**
1056
976
  * An array of users
1057
977
  */
1058
978
  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
- });
979
+ export const zCreateUserBody = zUserCreateInput;
1064
980
  /**
1065
981
  * Successfully created. Returns created user details.
1066
982
  */
1067
983
  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())
984
+ export const zDeleteUserPath = z.object({
985
+ user_id: z.string()
1074
986
  });
1075
987
  /**
1076
988
  * User profile information
1077
989
  */
1078
990
  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())
991
+ export const zGetUserPath = z.object({
992
+ user_id: z.string()
1085
993
  });
1086
994
  /**
1087
995
  * User profile information
1088
996
  */
1089
997
  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())
998
+ export const zUpdateUserBody = zUserUpdateInput;
999
+ export const zUpdateUserPath = z.object({
1000
+ user_id: z.string()
1096
1001
  });
1097
1002
  /**
1098
1003
  * Successfully created. Returns created user details.