@cloudfleet/sdk 0.0.1-af94f78 → 0.0.1-b0946c6

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 (54) hide show
  1. package/dist/client/client.gen.d.ts.map +1 -1
  2. package/dist/client/client.gen.js +39 -8
  3. package/dist/client/client.gen.js.map +1 -1
  4. package/dist/client/index.d.ts +1 -1
  5. package/dist/client/index.d.ts.map +1 -1
  6. package/dist/client/index.js.map +1 -1
  7. package/dist/client/types.gen.d.ts +4 -11
  8. package/dist/client/types.gen.d.ts.map +1 -1
  9. package/dist/client/utils.gen.d.ts +1 -1
  10. package/dist/client/utils.gen.d.ts.map +1 -1
  11. package/dist/client/utils.gen.js +10 -12
  12. package/dist/client/utils.gen.js.map +1 -1
  13. package/dist/client.gen.d.ts.map +1 -1
  14. package/dist/client.gen.js +1 -3
  15. package/dist/client.gen.js.map +1 -1
  16. package/dist/core/auth.gen.d.ts.map +1 -1
  17. package/dist/core/auth.gen.js.map +1 -1
  18. package/dist/core/bodySerializer.gen.d.ts +16 -8
  19. package/dist/core/bodySerializer.gen.d.ts.map +1 -1
  20. package/dist/core/bodySerializer.gen.js +1 -1
  21. package/dist/core/bodySerializer.gen.js.map +1 -1
  22. package/dist/core/params.gen.d.ts +10 -0
  23. package/dist/core/params.gen.d.ts.map +1 -1
  24. package/dist/core/params.gen.js +18 -6
  25. package/dist/core/params.gen.js.map +1 -1
  26. package/dist/core/pathSerializer.gen.d.ts.map +1 -1
  27. package/dist/core/pathSerializer.gen.js +3 -11
  28. package/dist/core/pathSerializer.gen.js.map +1 -1
  29. package/dist/core/queryKeySerializer.gen.d.ts.map +1 -1
  30. package/dist/core/queryKeySerializer.gen.js +4 -11
  31. package/dist/core/queryKeySerializer.gen.js.map +1 -1
  32. package/dist/core/serverSentEvents.gen.d.ts.map +1 -1
  33. package/dist/core/serverSentEvents.gen.js +5 -7
  34. package/dist/core/serverSentEvents.gen.js.map +1 -1
  35. package/dist/core/types.gen.d.ts +1 -1
  36. package/dist/core/types.gen.d.ts.map +1 -1
  37. package/dist/core/utils.gen.d.ts.map +1 -1
  38. package/dist/core/utils.gen.js +1 -1
  39. package/dist/core/utils.gen.js.map +1 -1
  40. package/dist/schemas.gen.d.ts +583 -131
  41. package/dist/schemas.gen.d.ts.map +1 -1
  42. package/dist/schemas.gen.js +1112 -215
  43. package/dist/schemas.gen.js.map +1 -1
  44. package/dist/sdk.gen.d.ts +46 -6
  45. package/dist/sdk.gen.d.ts.map +1 -1
  46. package/dist/sdk.gen.js +91 -127
  47. package/dist/sdk.gen.js.map +1 -1
  48. package/dist/types.gen.d.ts +562 -57
  49. package/dist/types.gen.d.ts.map +1 -1
  50. package/dist/zod.gen.d.ts +583 -607
  51. package/dist/zod.gen.d.ts.map +1 -1
  52. package/dist/zod.gen.js +354 -457
  53. package/dist/zod.gen.js.map +1 -1
  54. package/package.json +8 -4
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,21 +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.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-]+)*))?$/)).default('1.x.x-cfke.x')
202
+ ]).optional(),
203
+ version_channel: z.enum([
204
+ '1.x.x-cfke.x',
205
+ '1.31.x-cfke.x',
206
+ '1.32.x-cfke.x',
207
+ '1.33.x-cfke.x'
208
+ ]).optional()
210
209
  });
211
210
  export const zClusterJoinInformation = z.object({
212
211
  certificate_authority: z.string(),
213
212
  endpoint: z.url(),
213
+ cluster_dns: z.string(),
214
214
  auth_key: z.string(),
215
215
  bootstrap_token: z.string(),
216
216
  versions: z.object({
@@ -227,17 +227,13 @@ export const zClusterJoinInformation = z.object({
227
227
  });
228
228
  export const zCluster = z.object({
229
229
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
230
- tier: z.enum([
231
- 'basic',
232
- 'pro'
233
- ]),
234
- region: z.optional(z.enum([
235
- 'staging',
230
+ tier: z.enum(['basic', 'pro']),
231
+ region: z.enum([
232
+ 'staging-1a',
236
233
  'northamerica-central-1',
237
234
  'europe-central-1a',
238
235
  'northamerica-central-1a'
239
- ])),
240
- 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-]+)*))?$/)).default('1.x.x-cfke.x'),
236
+ ]).optional(),
241
237
  id: z.uuid(),
242
238
  status: z.enum([
243
239
  'active',
@@ -248,111 +244,118 @@ export const zCluster = z.object({
248
244
  'failed',
249
245
  'updating'
250
246
  ]),
251
- endpoint: z.optional(z.union([
247
+ endpoint: z.union([
252
248
  z.url(),
253
- z.enum([
254
- ''
255
- ])
256
- ])),
257
- certificate_ca: z.optional(z.string()),
258
- version_current: z.optional(z.string()),
259
- created_at: z.optional(z.string()),
260
- updated_at: z.optional(z.string()),
261
- ready: z.optional(z.boolean())
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()
262
257
  });
263
258
  export const zClusterUpdateInput = z.object({
264
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
265
- tier: z.enum([
266
- 'basic',
267
- 'pro'
268
- ]),
269
- 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()
270
262
  });
271
263
  export const zFleetCreateInput = z.object({
272
- limits: z.optional(z.object({
264
+ limits: z.object({
273
265
  cpu: z.number().gte(0)
274
- })),
275
- gcp: z.optional(z.object({
276
- enabled: z.optional(z.boolean()).default(true),
266
+ }).optional(),
267
+ gcp: z.object({
268
+ enabled: z.boolean().optional().default(true),
277
269
  project: z.string()
278
- })),
279
- hetzner: z.optional(z.object({
280
- enabled: z.optional(z.boolean()).default(true),
270
+ }).optional(),
271
+ hetzner: z.object({
272
+ enabled: z.boolean().optional().default(true),
281
273
  apiKey: z.string()
282
- })),
283
- aws: z.optional(z.object({
284
- enabled: z.optional(z.boolean()).default(true),
274
+ }).optional(),
275
+ aws: z.object({
276
+ enabled: z.boolean().optional().default(true),
285
277
  controllerRoleArn: z.string()
286
- })),
278
+ }).optional(),
287
279
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
288
280
  });
289
281
  export const zFleet = z.object({
290
- limits: z.optional(z.object({
282
+ limits: z.object({
291
283
  cpu: z.number().gte(0)
292
- })),
293
- gcp: z.optional(z.object({
294
- enabled: z.optional(z.boolean()).default(true),
284
+ }).optional(),
285
+ gcp: z.object({
286
+ enabled: z.boolean().optional().default(true),
295
287
  project: z.string()
296
- })),
297
- hetzner: z.optional(z.object({
298
- enabled: z.optional(z.boolean()).default(true),
288
+ }).optional(),
289
+ hetzner: z.object({
290
+ enabled: z.boolean().optional().default(true),
299
291
  apiKey: z.string()
300
- })),
301
- aws: z.optional(z.object({
302
- enabled: z.optional(z.boolean()).default(true),
292
+ }).optional(),
293
+ aws: z.object({
294
+ enabled: z.boolean().optional().default(true),
303
295
  controllerRoleArn: z.string()
304
- })),
296
+ }).optional(),
305
297
  id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)
306
298
  });
307
299
  export const zFleetUpdateInput = z.object({
308
- limits: z.optional(z.object({
300
+ limits: z.object({
309
301
  cpu: z.number().gte(0)
310
- })),
311
- gcp: z.optional(z.object({
312
- enabled: z.optional(z.boolean()).default(true),
302
+ }).optional(),
303
+ gcp: z.object({
304
+ enabled: z.boolean().optional().default(true),
313
305
  project: z.string()
314
- })),
315
- hetzner: z.optional(z.object({
316
- enabled: z.optional(z.boolean()).default(true),
306
+ }).optional(),
307
+ hetzner: z.object({
308
+ enabled: z.boolean().optional().default(true),
317
309
  apiKey: z.string()
318
- })),
319
- aws: z.optional(z.object({
320
- enabled: z.optional(z.boolean()).default(true),
310
+ }).optional(),
311
+ aws: z.object({
312
+ enabled: z.boolean().optional().default(true),
321
313
  controllerRoleArn: z.string()
322
- }))
314
+ }).optional()
323
315
  });
324
316
  export const zInvite = z.object({
325
- id: z.optional(z.string()),
326
- organization_id: z.optional(z.uuid()),
317
+ id: z.string().optional(),
318
+ organization_id: z.uuid().optional(),
327
319
  date_created: z.iso.datetime(),
328
- email: z.optional(z.email()),
329
- code: z.optional(z.string())
320
+ email: z.email().optional(),
321
+ code: z.string().optional()
330
322
  });
331
323
  export const zInvoice = z.object({
332
- id: z.optional(z.uuid()),
333
- number: z.optional(z.string()),
334
- status: z.optional(z.string()),
335
- total: z.optional(z.number()),
336
- 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(),
337
329
  created: z.iso.datetime(),
338
330
  period_start: z.iso.datetime(),
339
331
  period_end: z.iso.datetime(),
340
- invoice_pdf: z.optional(z.string())
332
+ invoice_pdf: z.string().optional()
333
+ });
334
+ export const zMarketplaceListingFiles = z.object({
335
+ chartYaml: z.string().optional(),
336
+ valuesYaml: z.string().optional(),
337
+ valuesSchemaJson: z.string().optional()
341
338
  });
342
339
  export const zMarketplaceListing = z.object({
343
- id: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
344
340
  name: z.string(),
345
- developer: z.string(),
346
- description: z.string(),
347
- logoUrl: z.string(),
348
- longDescription: z.string(),
349
- categories: z.array(z.string()),
341
+ versions: z.array(z.string().regex(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/)),
350
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-]+)*))?$/)),
351
- value_schemas: z.array(z.object({
352
- version: z.string().regex(/^(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)\.(x|X|0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/),
353
- schema: z.string(),
354
- placeholder: z.string()
355
- }))
343
+ latestVersion: z.string(),
344
+ metadata: z.object({
345
+ name: z.string(),
346
+ version: z.string(),
347
+ description: z.string().optional(),
348
+ appVersion: z.string().optional(),
349
+ apiVersion: z.string().optional(),
350
+ keywords: z.array(z.string()).optional(),
351
+ home: z.string().optional(),
352
+ icon: z.string().optional(),
353
+ sources: z.array(z.string()).optional(),
354
+ maintainers: z.array(z.object({
355
+ name: z.string(),
356
+ email: z.string().optional()
357
+ })).optional()
358
+ }).optional()
356
359
  });
357
360
  export const zOrganizationCreateInput = z.object({
358
361
  email: z.email(),
@@ -363,7 +366,7 @@ export const zOrganizationCreateInput = z.object({
363
366
  });
364
367
  export const zOrganization = z.object({
365
368
  id: z.uuid(),
366
- name: z.optional(z.string().min(2).max(120)),
369
+ name: z.string().min(2).max(120).optional(),
367
370
  date_created: z.iso.datetime(),
368
371
  quota: z.object({
369
372
  basic_clusters_max: z.int().gte(0),
@@ -376,7 +379,10 @@ export const zOrganization = z.object({
376
379
  versions: z.array(z.object({
377
380
  id: z.string(),
378
381
  label: z.string()
379
- })).min(1)
382
+ })).min(1),
383
+ copilot_user_hourly_tokens: z.int().gte(0),
384
+ copilot_organization_hourly_tokens: z.int().gte(0),
385
+ cfcr_storage_gb: z.int().gte(-1)
380
386
  }),
381
387
  status: z.enum([
382
388
  'active',
@@ -387,9 +393,7 @@ export const zOrganization = z.object({
387
393
  export const zPaymentMethod = z.object({
388
394
  id: z.uuid(),
389
395
  setup: z.boolean(),
390
- type: z.enum([
391
- 'card'
392
- ]),
396
+ type: z.enum(['card']),
393
397
  last4: z.string(),
394
398
  exp_month: z.int().gte(1).lte(12),
395
399
  exp_year: z.int().gte(2024),
@@ -405,73 +409,108 @@ export const zPaymentMethod = z.object({
405
409
  'unknown'
406
410
  ])
407
411
  });
412
+ export const zPlatformQuota = z.object({
413
+ basic_clusters_max: z.int().gte(0),
414
+ basic_clusters_available: z.int(),
415
+ pro_clusters_max: z.int().gte(0),
416
+ pro_clusters_available: z.int(),
417
+ fleets_max: z.int().gte(0),
418
+ cluster_tiers: z.array(z.string()).min(0),
419
+ regions: z.array(z.string()).min(1),
420
+ versions: z.array(z.object({
421
+ id: z.string(),
422
+ label: z.string()
423
+ })).min(1),
424
+ copilot_user_hourly_tokens: z.int().gte(0),
425
+ copilot_organization_hourly_tokens: z.int().gte(0),
426
+ cfcr_storage_gb: z.int().gte(-1)
427
+ });
428
+ export const zRegistryRepository = z.object({
429
+ name: z.string(),
430
+ region: z.string(),
431
+ uri: z.string()
432
+ });
433
+ export const zRegistryRepositoryWithTags = z.object({
434
+ name: z.string(),
435
+ region: z.string(),
436
+ uri: z.string(),
437
+ tags: z.array(z.object({
438
+ name: z.string(),
439
+ size: z.number(),
440
+ mediaType: z.string().optional(),
441
+ platforms: z.array(z.string()).optional()
442
+ })),
443
+ totalSize: z.number()
444
+ });
445
+ export const zRegistryTag = z.object({
446
+ name: z.string(),
447
+ digest: z.string(),
448
+ mediaType: z.string().optional(),
449
+ config: z.object({
450
+ size: z.number()
451
+ }).optional(),
452
+ layers: z.array(z.object({
453
+ digest: z.string().optional(),
454
+ size: z.number()
455
+ })).optional(),
456
+ manifests: z.array(z.object({
457
+ digest: z.string(),
458
+ platform: z.object({
459
+ architecture: z.string(),
460
+ os: z.string(),
461
+ variant: z.string().optional()
462
+ }).optional(),
463
+ layers: z.array(z.object({
464
+ digest: z.string().optional(),
465
+ size: z.number()
466
+ })).optional(),
467
+ size: z.number().optional()
468
+ })).optional(),
469
+ size: z.number(),
470
+ region: z.string(),
471
+ repository: z.string(),
472
+ uri: z.string()
473
+ });
408
474
  export const zTokenCreateInput = z.object({
409
475
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
410
- role: z.enum([
411
- 'Administrator',
412
- 'User'
413
- ])
476
+ role: z.enum(['Administrator', 'User'])
414
477
  });
415
478
  export const zToken = z.object({
416
479
  name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/),
417
- role: z.enum([
418
- 'Administrator',
419
- 'User'
420
- ]),
421
- id: z.optional(z.string()),
422
- secret: z.optional(z.string()),
480
+ role: z.enum(['Administrator', 'User']),
481
+ id: z.string().optional(),
482
+ secret: z.string().optional(),
423
483
  date_created: z.iso.datetime()
424
484
  });
425
485
  export const zTokenUpdateInput = z.object({
426
- name: z.optional(z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/)),
427
- role: z.optional(z.enum([
428
- 'Administrator',
429
- 'User'
430
- ]))
486
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
487
+ role: z.enum(['Administrator', 'User']).optional()
488
+ });
489
+ export const zUsageFacets = z.object({
490
+ cluster_id: z.array(z.string()).optional(),
491
+ product: z.array(z.string()).optional()
492
+ });
493
+ export const zUsageResponse = z.object({
494
+ data: z.array(z.object({
495
+ hour: z.string(),
496
+ cluster_id: z.string(),
497
+ product: z.string(),
498
+ value: z.number(),
499
+ price: z.number(),
500
+ total: z.number()
501
+ })),
502
+ facets: z.object({
503
+ cluster_id: z.array(z.string()).optional(),
504
+ product: z.array(z.string()).optional()
505
+ })
431
506
  });
432
507
  export const zUsage = z.object({
433
- hour: z.optional(z.string()),
434
- cluster_id: z.uuid(),
435
- cluster_tier: z.enum([
436
- 'basic',
437
- 'pro',
438
- ''
439
- ]),
440
- product: z.enum([
441
- 'cfke_controlplane',
442
- 'cfke_connected_nodes',
443
- 'infra_compute',
444
- 'infra_storage',
445
- 'infra_loadbalancing',
446
- 'infra_traffic',
447
- 'cfcr_storage'
448
- ]),
449
- node_name: z.string(),
450
- sku: z.string(),
451
- cpu: z.union([
452
- z.number(),
453
- z.enum([
454
- ''
455
- ])
456
- ]),
457
- price: z.union([
458
- z.number(),
459
- z.enum([
460
- ''
461
- ])
462
- ]),
463
- value: z.union([
464
- z.number(),
465
- z.enum([
466
- ''
467
- ])
468
- ]),
469
- total: z.union([
470
- z.number(),
471
- z.enum([
472
- ''
473
- ])
474
- ])
508
+ hour: z.string(),
509
+ cluster_id: z.string(),
510
+ product: z.string(),
511
+ value: z.number(),
512
+ price: z.number(),
513
+ total: z.number()
475
514
  });
476
515
  export const zUserCreateInput = z.object({
477
516
  email: z.email(),
@@ -479,491 +518,349 @@ export const zUserCreateInput = z.object({
479
518
  last_name: z.string().min(1).max(50),
480
519
  code: z.string(),
481
520
  password: z.string().min(8),
482
- status: z.optional(z.enum([
483
- 'active',
484
- 'inactive'
485
- ])),
486
- role: z.optional(z.enum([
487
- 'Administrator',
488
- 'User'
489
- ]))
521
+ status: z.enum(['active', 'inactive']).optional(),
522
+ role: z.enum(['Administrator', 'User']).optional()
490
523
  });
491
524
  export const zUser = z.object({
492
525
  email: z.email(),
493
526
  first_name: z.string().min(1).max(50),
494
527
  last_name: z.string().min(1).max(50),
495
- role: z.enum([
496
- 'Administrator',
497
- 'User'
498
- ]),
499
- status: z.enum([
500
- 'active',
501
- 'inactive'
502
- ]),
528
+ role: z.enum(['Administrator', 'User']),
529
+ status: z.enum(['active', 'inactive']),
503
530
  id: z.uuid(),
504
531
  date_created: z.iso.datetime()
505
532
  });
506
533
  export const zUserUpdateInput = z.object({
507
- email: z.optional(z.email()),
508
- first_name: z.optional(z.string().min(1).max(50)),
509
- last_name: z.optional(z.string().min(1).max(50)),
510
- role: z.optional(z.enum([
511
- 'Administrator',
512
- 'User'
513
- ])),
514
- status: z.optional(z.enum([
515
- 'active',
516
- 'inactive'
517
- ]))
534
+ email: z.email().optional(),
535
+ first_name: z.string().min(1).max(50).optional(),
536
+ last_name: z.string().min(1).max(50).optional(),
537
+ role: z.enum(['Administrator', 'User']).optional(),
538
+ status: z.enum(['active', 'inactive']).optional()
518
539
  });
519
- export const zGetUsageData = z.object({
520
- body: z.optional(z.never()),
521
- path: z.optional(z.never()),
522
- query: z.optional(z.never())
540
+ export const zGetUsageQuery = z.object({
541
+ granularity: z.enum([
542
+ 'hourly',
543
+ 'daily',
544
+ 'monthly'
545
+ ]).optional()
523
546
  });
524
547
  /**
525
- * An array of usage records.
548
+ * Usage data with facets for filtering
526
549
  */
527
- export const zGetUsageResponse = z.array(zUsage);
528
- export const zGetPaymentMethodData = z.object({
529
- body: z.optional(z.never()),
530
- path: z.optional(z.never()),
531
- query: z.optional(z.never())
532
- });
550
+ export const zGetUsageResponse = zUsageResponse;
533
551
  /**
534
552
  * Redacted payment card information.
535
553
  */
536
554
  export const zGetPaymentMethodResponse = zPaymentMethod;
537
- export const zGetPaymentMethodSecretData = z.object({
538
- body: z.optional(z.never()),
539
- path: z.optional(z.never()),
540
- query: z.optional(z.never())
541
- });
542
555
  /**
543
556
  * The client secret. Used for client-side retrieval using a publishable key. The client secret can be used to complete a payment from your frontend. It should not be stored, logged, or exposed to anyone other than the customer. Make sure that you have TLS enabled on any page that includes the client secret.
544
557
  *
545
558
  */
546
559
  export const zGetPaymentMethodSecretResponse = z.object({
547
- id: z.optional(z.string())
548
- });
549
- export const zListInvoicesData = z.object({
550
- body: z.optional(z.never()),
551
- path: z.optional(z.never()),
552
- query: z.optional(z.never())
560
+ id: z.string().optional()
553
561
  });
554
562
  /**
555
563
  * An array of usage records.
556
564
  */
557
565
  export const zListInvoicesResponse = z.array(zInvoice);
558
- export const zGetContactData = z.object({
559
- body: z.optional(z.never()),
560
- path: z.optional(z.never()),
561
- query: z.optional(z.never())
562
- });
563
566
  /**
564
567
  * Returns a single object containing organization contact and billing address details.
565
568
  */
566
569
  export const zGetContactResponse = zBillingContact;
567
- export const zUpdateContactData = z.object({
568
- body: zBillingContact,
569
- path: z.optional(z.never()),
570
- query: z.optional(z.never())
571
- });
570
+ export const zUpdateContactBody = zBillingContact;
572
571
  /**
573
572
  * Successfully updated. Returns updated organization details.
574
573
  */
575
574
  export const zUpdateContactResponse = zBillingContact;
576
- export const zGetCreditsData = z.object({
577
- body: z.optional(z.never()),
578
- path: z.optional(z.never()),
579
- query: z.optional(z.never())
580
- });
581
575
  /**
582
576
  * An array of the applied promotional credits records.
583
577
  */
584
578
  export const zGetCreditsResponse = z.array(zBillingCredits);
585
- export const zRedeemCreditsData = z.object({
586
- body: z.object({
587
- code: z.optional(z.string())
588
- }),
589
- path: z.optional(z.never()),
590
- query: z.optional(z.never())
579
+ export const zRedeemCreditsBody = z.object({
580
+ code: z.string().optional()
591
581
  });
592
- export const zListChartsData = z.object({
593
- body: z.optional(z.never()),
594
- path: z.object({
595
- cluster_id: z.string()
596
- }),
597
- query: z.optional(z.never())
582
+ export const zListChartsPath = z.object({
583
+ cluster_id: z.string()
598
584
  });
599
585
  /**
600
586
  * An array of charts
601
587
  */
602
588
  export const zListChartsResponse = z.array(zChart);
603
- export const zCreateChartData = z.object({
604
- body: zChartCreateInput,
605
- path: z.object({
606
- cluster_id: z.string()
607
- }),
608
- query: z.optional(z.never())
589
+ export const zCreateChartBody = zChartCreateInput;
590
+ export const zCreateChartPath = z.object({
591
+ cluster_id: z.string()
609
592
  });
610
593
  /**
611
594
  * Successfully created. Returns created Chart ID.
612
595
  */
613
596
  export const zCreateChartResponse = z.string();
614
- export const zDeleteChartData = z.object({
615
- body: z.optional(z.never()),
616
- path: z.object({
617
- cluster_id: z.string(),
618
- chart_name: z.string()
619
- }),
620
- query: z.optional(z.never())
597
+ export const zDeleteChartPath = z.object({
598
+ cluster_id: z.string(),
599
+ chart_name: z.string()
621
600
  });
622
601
  /**
623
602
  * Successfully deleted.
624
603
  */
625
604
  export const zDeleteChartResponse = z.string();
626
- export const zGetChartData = z.object({
627
- body: z.optional(z.never()),
628
- path: z.object({
629
- cluster_id: z.string(),
630
- chart_name: z.string()
631
- }),
632
- query: z.optional(z.never())
605
+ export const zGetChartPath = z.object({
606
+ cluster_id: z.string(),
607
+ chart_name: z.string()
633
608
  });
634
609
  /**
635
610
  * Returns a single object containing chart details.
636
611
  */
637
612
  export const zGetChartResponse = zChart;
638
- export const zUpdateChartData = z.object({
639
- body: zChartUpdateInput,
640
- path: z.object({
641
- cluster_id: z.string(),
642
- chart_name: z.string()
643
- }),
644
- query: z.optional(z.never())
613
+ export const zUpdateChartBody = zChartUpdateInput;
614
+ export const zUpdateChartPath = z.object({
615
+ cluster_id: z.string(),
616
+ chart_name: z.string()
645
617
  });
646
618
  /**
647
619
  * Successfully updated.
648
620
  */
649
621
  export const zUpdateChartResponse = z.string();
650
- export const zListFleetsData = z.object({
651
- body: z.optional(z.never()),
652
- path: z.object({
653
- cluster_id: z.string()
654
- }),
655
- query: z.optional(z.never())
622
+ export const zListFleetsPath = z.object({
623
+ cluster_id: z.string()
656
624
  });
657
625
  /**
658
626
  * An array of fleets
659
627
  */
660
628
  export const zListFleetsResponse = z.array(zFleet);
661
- export const zCreateFleetData = z.object({
662
- body: zFleetCreateInput,
663
- path: z.object({
664
- cluster_id: z.string()
665
- }),
666
- query: z.optional(z.never())
629
+ export const zCreateFleetBody = zFleetCreateInput;
630
+ export const zCreateFleetPath = z.object({
631
+ cluster_id: z.string()
667
632
  });
668
633
  /**
669
634
  * Successfully created. Returns created Fleet ID.
670
635
  */
671
636
  export const zCreateFleetResponse = z.string();
672
- export const zDeleteFleetData = z.object({
673
- body: z.optional(z.never()),
674
- path: z.object({
675
- cluster_id: z.string(),
676
- fleet_name: z.string()
677
- }),
678
- query: z.optional(z.never())
637
+ export const zDeleteFleetPath = z.object({
638
+ cluster_id: z.string(),
639
+ fleet_name: z.string()
679
640
  });
680
641
  /**
681
642
  * Successfully deleted.
682
643
  */
683
644
  export const zDeleteFleetResponse = z.string();
684
- export const zGetFleetData = z.object({
685
- body: z.optional(z.never()),
686
- path: z.object({
687
- cluster_id: z.string(),
688
- fleet_name: z.string()
689
- }),
690
- query: z.optional(z.never())
645
+ export const zGetFleetPath = z.object({
646
+ cluster_id: z.string(),
647
+ fleet_name: z.string()
691
648
  });
692
649
  /**
693
650
  * Returns a single object containing fleet details.
694
651
  */
695
652
  export const zGetFleetResponse = zFleet;
696
- export const zUpdateFleetData = z.object({
697
- body: zFleetUpdateInput,
698
- path: z.object({
699
- cluster_id: z.string(),
700
- fleet_name: z.string()
701
- }),
702
- query: z.optional(z.never())
653
+ export const zUpdateFleetBody = zFleetUpdateInput;
654
+ export const zUpdateFleetPath = z.object({
655
+ cluster_id: z.string(),
656
+ fleet_name: z.string()
703
657
  });
704
658
  /**
705
659
  * Successfully updated.
706
660
  */
707
661
  export const zUpdateFleetResponse = z.string();
708
- export const zQueryClusterData = z.object({
709
- body: z.optional(z.never()),
710
- path: z.object({
711
- cluster_id: z.string()
712
- }),
713
- query: z.optional(z.never())
714
- });
715
- export const zListClustersData = z.object({
716
- body: z.optional(z.never()),
717
- path: z.optional(z.never()),
718
- query: z.optional(z.never())
662
+ export const zQueryClusterPath = z.object({
663
+ cluster_id: z.string()
719
664
  });
720
665
  /**
721
666
  * An array of clusters
722
667
  */
723
668
  export const zListClustersResponse = z.array(zCluster);
724
- export const zCreateClusterData = z.object({
725
- body: zClusterCreateInput,
726
- path: z.optional(z.never()),
727
- query: z.optional(z.never())
728
- });
669
+ export const zCreateClusterBody = zClusterCreateInput;
729
670
  /**
730
671
  * Successfully created. Returns created Cluster ID.
731
672
  */
732
673
  export const zCreateClusterResponse = z.string();
733
- export const zDeleteClusterData = z.object({
734
- body: z.optional(z.never()),
735
- path: z.object({
736
- cluster_id: z.string()
737
- }),
738
- query: z.optional(z.never())
674
+ export const zDeleteClusterPath = z.object({
675
+ cluster_id: z.string()
739
676
  });
740
677
  /**
741
678
  * Successfully deleted.
742
679
  */
743
680
  export const zDeleteClusterResponse = z.string();
744
- export const zGetClusterData = z.object({
745
- body: z.optional(z.never()),
746
- path: z.object({
747
- cluster_id: z.string()
748
- }),
749
- query: z.optional(z.never())
681
+ export const zGetClusterPath = z.object({
682
+ cluster_id: z.string()
750
683
  });
751
684
  /**
752
685
  * Returns a single object containing cluster details.
753
686
  */
754
687
  export const zGetClusterResponse = zCluster;
755
- export const zUpdateClusterData = z.object({
756
- body: zClusterUpdateInput,
757
- path: z.object({
758
- cluster_id: z.string()
759
- }),
760
- query: z.optional(z.never())
688
+ export const zUpdateClusterBody = zClusterUpdateInput;
689
+ export const zUpdateClusterPath = z.object({
690
+ cluster_id: z.string()
761
691
  });
762
692
  /**
763
693
  * Successfully updated. Returns updated cluster details.
764
694
  */
765
695
  export const zUpdateClusterResponse = zCluster;
766
- export const zGetJoinInformationData = z.object({
767
- body: z.optional(z.never()),
768
- path: z.object({
769
- cluster_id: z.string()
770
- }),
771
- query: z.optional(z.never())
696
+ export const zGetJoinInformationPath = z.object({
697
+ cluster_id: z.string()
772
698
  });
773
699
  /**
774
700
  * An object of cluster join information
775
701
  */
776
702
  export const zGetJoinInformationResponse = zClusterJoinInformation;
777
- export const zListInvitesData = z.object({
778
- body: z.optional(z.never()),
779
- path: z.optional(z.never()),
780
- query: z.optional(z.never())
781
- });
782
703
  /**
783
704
  * An array of invites
784
705
  */
785
706
  export const zListInvitesResponse = z.array(zInvite);
786
- export const zCreateInviteData = z.object({
787
- body: z.object({
788
- email: z.optional(z.string())
789
- }),
790
- path: z.optional(z.never()),
791
- query: z.optional(z.never())
707
+ export const zCreateInviteBody = z.object({
708
+ email: z.string().optional()
792
709
  });
793
710
  /**
794
711
  * Successfully created. Returns created invite details.
795
712
  */
796
713
  export const zCreateInviteResponse = zInvite;
797
- export const zGetInviteData = z.object({
798
- body: z.optional(z.never()),
799
- path: z.object({
800
- code: z.string()
801
- }),
802
- query: z.optional(z.never())
714
+ export const zGetInvitePath = z.object({
715
+ code: z.string()
803
716
  });
804
717
  /**
805
718
  * Returns a single object containing invite details.
806
719
  */
807
720
  export const zGetInviteResponse = zInvite;
808
- export const zDeleteInviteData = z.object({
809
- body: z.optional(z.never()),
810
- path: z.object({
811
- email: z.string()
812
- }),
813
- query: z.optional(z.never())
814
- });
815
- export const zListMarketplaceChartsData = z.object({
816
- body: z.optional(z.never()),
817
- path: z.optional(z.never()),
818
- query: z.optional(z.never())
721
+ export const zDeleteInvitePath = z.object({
722
+ email: z.string()
819
723
  });
820
724
  /**
821
725
  * An array of chart listings in the marketplace.
822
726
  */
823
727
  export const zListMarketplaceChartsResponse = z.array(zMarketplaceListing);
824
- export const zGetMarketplaceChartData = z.object({
825
- body: z.optional(z.never()),
826
- path: z.object({
827
- listing_id: z.string()
828
- }),
829
- query: z.optional(z.never())
728
+ export const zGetMarketplaceChartFilesPath = z.object({
729
+ chart_name: z.string(),
730
+ version_channel: z.string()
830
731
  });
831
732
  /**
832
- * Returns an object containing the chart listing details.
733
+ * Returns an object containing the chart files for the latest matching version.
833
734
  */
834
- export const zGetMarketplaceChartResponse = zMarketplaceListing;
835
- export const zGetOrganizationData = z.object({
836
- body: z.optional(z.never()),
837
- path: z.optional(z.never()),
838
- query: z.optional(z.never())
735
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
736
+ /**
737
+ * JSON-RPC 2.0 request payload
738
+ */
739
+ export const zPostMcpBody = z.object({
740
+ jsonrpc: z.string().optional(),
741
+ method: z.string().optional(),
742
+ id: z.union([
743
+ z.string(),
744
+ z.number()
745
+ ]).optional(),
746
+ params: z.record(z.string(), z.unknown()).optional()
747
+ });
748
+ /**
749
+ * JSON-RPC 2.0 success or error response
750
+ */
751
+ export const zPostMcpResponse = z.object({
752
+ jsonrpc: z.string().optional(),
753
+ id: z.union([
754
+ z.string(),
755
+ z.number()
756
+ ]).optional(),
757
+ result: z.record(z.string(), z.unknown()).optional(),
758
+ error: z.object({
759
+ code: z.int().optional(),
760
+ message: z.string().optional()
761
+ }).optional()
839
762
  });
840
763
  /**
841
764
  * Returns a single object containing organization details.
842
765
  */
843
766
  export const zGetOrganizationResponse = zOrganization;
844
- export const zCreateOrganizationData = z.object({
845
- body: zOrganizationCreateInput,
846
- path: z.optional(z.never()),
847
- query: z.optional(z.never())
767
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
768
+ /**
769
+ * List of repositories
770
+ */
771
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
772
+ export const zListTagsPath = z.object({
773
+ region: z.string(),
774
+ repository: z.string()
775
+ });
776
+ /**
777
+ * Repository with tags
778
+ */
779
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
780
+ export const zDeleteTagPath = z.object({
781
+ region: z.string(),
782
+ repository: z.string(),
783
+ tag: z.string()
848
784
  });
849
- export const zListTokensData = z.object({
850
- body: z.optional(z.never()),
851
- path: z.optional(z.never()),
852
- query: z.optional(z.never())
785
+ export const zGetTagPath = z.object({
786
+ region: z.string(),
787
+ repository: z.string(),
788
+ tag: z.string()
853
789
  });
790
+ /**
791
+ * Tag details
792
+ */
793
+ export const zGetTagResponse = zRegistryTag;
854
794
  /**
855
795
  * Returns a list of access token details with masked secrets.
856
796
  */
857
797
  export const zListTokensResponse = z.array(zToken);
858
- export const zCreateTokenData = z.object({
859
- body: zTokenCreateInput,
860
- path: z.optional(z.never()),
861
- query: z.optional(z.never())
862
- });
798
+ export const zCreateTokenBody = zTokenCreateInput;
863
799
  /**
864
800
  * Successfully created. Returns created token details with unmasked/raw secret.
865
801
  */
866
802
  export const zCreateTokenResponse = zToken;
867
- export const zDeleteTokenData = z.object({
868
- body: z.optional(z.never()),
869
- path: z.object({
870
- token_id: z.string()
871
- }),
872
- query: z.optional(z.never())
803
+ export const zDeleteTokenPath = z.object({
804
+ token_id: z.string()
873
805
  });
874
- export const zGetTokenData = z.object({
875
- body: z.optional(z.never()),
876
- path: z.object({
877
- token_id: z.string()
878
- }),
879
- query: z.optional(z.never())
806
+ export const zGetTokenPath = z.object({
807
+ token_id: z.string()
880
808
  });
881
809
  /**
882
810
  * Returns access token details with masked secret.
883
811
  */
884
812
  export const zGetTokenResponse = zToken;
885
- export const zUpdateTokenData = z.object({
886
- body: zTokenUpdateInput,
887
- path: z.object({
888
- token_id: z.string()
889
- }),
890
- query: z.optional(z.never())
813
+ export const zUpdateTokenBody = zTokenUpdateInput;
814
+ export const zUpdateTokenPath = z.object({
815
+ token_id: z.string()
891
816
  });
892
817
  /**
893
818
  * Successfully updated. Returns updated token details with masked secret.
894
819
  */
895
820
  export const zUpdateTokenResponse = zToken;
896
- export const zRegenerateTokenData = z.object({
897
- body: z.optional(z.never()),
898
- path: z.object({
899
- token_id: z.string()
900
- }),
901
- query: z.optional(z.never())
821
+ export const zRegenerateTokenPath = z.object({
822
+ token_id: z.string()
902
823
  });
903
824
  /**
904
825
  * Successfully updated. Returns updated token details with unmasked / raw secret.
905
826
  */
906
827
  export const zRegenerateTokenResponse = zToken;
907
- export const zListUserOrganizationsData = z.object({
908
- body: z.optional(z.never()),
909
- path: z.object({
910
- email: z.string()
911
- }),
912
- query: z.optional(z.never())
828
+ export const zListUserOrganizationsPath = z.object({
829
+ email: z.string()
913
830
  });
914
831
  /**
915
832
  * An array of organizations the user belongs to.
916
833
  */
917
834
  export const zListUserOrganizationsResponse = z.array(z.object({
918
- realm: z.optional(z.string()),
919
- displayName: z.optional(z.string())
835
+ realm: z.string().optional(),
836
+ displayName: z.string().optional()
920
837
  }));
921
- export const zListUsersData = z.object({
922
- body: z.optional(z.never()),
923
- path: z.optional(z.never()),
924
- query: z.optional(z.never())
925
- });
926
838
  /**
927
839
  * An array of users
928
840
  */
929
841
  export const zListUsersResponse = z.array(zUser);
930
- export const zCreateUserData = z.object({
931
- body: zUserCreateInput,
932
- path: z.optional(z.never()),
933
- query: z.optional(z.never())
934
- });
842
+ export const zCreateUserBody = zUserCreateInput;
935
843
  /**
936
844
  * Successfully created. Returns created user details.
937
845
  */
938
846
  export const zCreateUserResponse = zUser;
939
- export const zDeleteUserData = z.object({
940
- body: z.optional(z.never()),
941
- path: z.object({
942
- user_id: z.string()
943
- }),
944
- query: z.optional(z.never())
847
+ export const zDeleteUserPath = z.object({
848
+ user_id: z.string()
945
849
  });
946
850
  /**
947
851
  * User profile information
948
852
  */
949
853
  export const zDeleteUserResponse = zUser;
950
- export const zGetUserData = z.object({
951
- body: z.optional(z.never()),
952
- path: z.object({
953
- user_id: z.string()
954
- }),
955
- query: z.optional(z.never())
854
+ export const zGetUserPath = z.object({
855
+ user_id: z.string()
956
856
  });
957
857
  /**
958
858
  * User profile information
959
859
  */
960
860
  export const zGetUserResponse = zUser;
961
- export const zUpdateUserData = z.object({
962
- body: zUserUpdateInput,
963
- path: z.object({
964
- user_id: z.string()
965
- }),
966
- query: z.optional(z.never())
861
+ export const zUpdateUserBody = zUserUpdateInput;
862
+ export const zUpdateUserPath = z.object({
863
+ user_id: z.string()
967
864
  });
968
865
  /**
969
866
  * Successfully created. Returns created user details.