@cloudfleet/sdk 0.0.1-523e444 → 0.0.1-56c3d31

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 +1048 -0
  2. package/dist/@tanstack/react-query.gen.d.ts.map +1 -0
  3. package/dist/@tanstack/react-query.gen.js +1040 -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 +559 -131
  46. package/dist/schemas.gen.d.ts.map +1 -1
  47. package/dist/schemas.gen.js +1084 -215
  48. package/dist/schemas.gen.js.map +1 -1
  49. package/dist/sdk.gen.d.ts +53 -6
  50. package/dist/sdk.gen.d.ts.map +1 -1
  51. package/dist/sdk.gen.js +100 -127
  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 +570 -57
  55. package/dist/types.gen.d.ts.map +1 -1
  56. package/dist/zod.gen.d.ts +594 -617
  57. package/dist/zod.gen.d.ts.map +1 -1
  58. package/dist/zod.gen.js +357 -457
  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,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().default('staging-1a'),
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().default('1.x.x-cfke.x')
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().default('staging-1a'),
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,8 @@ 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
+ cfcr_storage_gb: z.int().gte(-1)
380
384
  }),
381
385
  status: z.enum([
382
386
  'active',
@@ -387,9 +391,7 @@ export const zOrganization = z.object({
387
391
  export const zPaymentMethod = z.object({
388
392
  id: z.uuid(),
389
393
  setup: z.boolean(),
390
- type: z.enum([
391
- 'card'
392
- ]),
394
+ type: z.enum(['card']),
393
395
  last4: z.string(),
394
396
  exp_month: z.int().gte(1).lte(12),
395
397
  exp_year: z.int().gte(2024),
@@ -405,73 +407,106 @@ export const zPaymentMethod = z.object({
405
407
  'unknown'
406
408
  ])
407
409
  });
410
+ export const zPlatformQuota = z.object({
411
+ basic_clusters_max: z.int().gte(0),
412
+ basic_clusters_available: z.int(),
413
+ pro_clusters_max: z.int().gte(0),
414
+ pro_clusters_available: z.int(),
415
+ fleets_max: z.int().gte(0),
416
+ cluster_tiers: z.array(z.string()).min(0),
417
+ regions: z.array(z.string()).min(1),
418
+ versions: z.array(z.object({
419
+ id: z.string(),
420
+ label: z.string()
421
+ })).min(1),
422
+ cfcr_storage_gb: z.int().gte(-1)
423
+ });
424
+ export const zRegistryRepository = z.object({
425
+ name: z.string(),
426
+ region: z.string(),
427
+ uri: z.string()
428
+ });
429
+ export const zRegistryRepositoryWithTags = z.object({
430
+ name: z.string(),
431
+ region: z.string(),
432
+ uri: z.string(),
433
+ tags: z.array(z.object({
434
+ name: z.string(),
435
+ size: z.number(),
436
+ mediaType: z.string().optional(),
437
+ platforms: z.array(z.string()).optional()
438
+ })),
439
+ totalSize: z.number()
440
+ });
441
+ export const zRegistryTag = z.object({
442
+ name: z.string(),
443
+ digest: z.string(),
444
+ mediaType: z.string().optional(),
445
+ config: z.object({
446
+ size: z.number()
447
+ }).optional(),
448
+ layers: z.array(z.object({
449
+ digest: z.string().optional(),
450
+ size: z.number()
451
+ })).optional(),
452
+ manifests: z.array(z.object({
453
+ digest: z.string(),
454
+ platform: z.object({
455
+ architecture: z.string(),
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(),
465
+ size: z.number(),
466
+ region: z.string(),
467
+ repository: z.string(),
468
+ uri: z.string()
469
+ });
408
470
  export const zTokenCreateInput = z.object({
409
471
  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
- ])
472
+ role: z.enum(['Administrator', 'User'])
414
473
  });
415
474
  export const zToken = z.object({
416
475
  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()),
476
+ role: z.enum(['Administrator', 'User']),
477
+ id: z.string().optional(),
478
+ secret: z.string().optional(),
423
479
  date_created: z.iso.datetime()
424
480
  });
425
481
  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
- ]))
482
+ name: z.string().min(1).max(63).regex(/^[a-z0-9]([-a-z0-9]*[a-z0-9])?$/).optional(),
483
+ role: z.enum(['Administrator', 'User']).optional()
484
+ });
485
+ export const zUsageFacets = z.object({
486
+ cluster_id: z.array(z.string()).optional(),
487
+ product: z.array(z.string()).optional()
488
+ });
489
+ export const zUsageResponse = z.object({
490
+ data: z.array(z.object({
491
+ hour: z.string(),
492
+ cluster_id: z.string(),
493
+ product: z.string(),
494
+ value: z.number(),
495
+ price: z.number(),
496
+ total: z.number()
497
+ })),
498
+ facets: z.object({
499
+ cluster_id: z.array(z.string()).optional(),
500
+ product: z.array(z.string()).optional()
501
+ })
431
502
  });
432
503
  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
- ])
504
+ hour: z.string(),
505
+ cluster_id: z.string(),
506
+ product: z.string(),
507
+ value: z.number(),
508
+ price: z.number(),
509
+ total: z.number()
475
510
  });
476
511
  export const zUserCreateInput = z.object({
477
512
  email: z.email(),
@@ -479,491 +514,356 @@ export const zUserCreateInput = z.object({
479
514
  last_name: z.string().min(1).max(50),
480
515
  code: z.string(),
481
516
  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
- ]))
517
+ status: z.enum(['active', 'inactive']).optional(),
518
+ role: z.enum(['Administrator', 'User']).optional()
490
519
  });
491
520
  export const zUser = z.object({
492
521
  email: z.email(),
493
522
  first_name: z.string().min(1).max(50),
494
523
  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
- ]),
524
+ role: z.enum(['Administrator', 'User']),
525
+ status: z.enum(['active', 'inactive']),
503
526
  id: z.uuid(),
504
527
  date_created: z.iso.datetime()
505
528
  });
506
529
  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
- ]))
530
+ email: z.email().optional(),
531
+ first_name: z.string().min(1).max(50).optional(),
532
+ last_name: z.string().min(1).max(50).optional(),
533
+ role: z.enum(['Administrator', 'User']).optional(),
534
+ status: z.enum(['active', 'inactive']).optional()
518
535
  });
519
- export const zGetUsageData = z.object({
520
- body: z.optional(z.never()),
521
- path: z.optional(z.never()),
522
- query: z.optional(z.never())
536
+ export const zGetUsageQuery = z.object({
537
+ granularity: z.enum([
538
+ 'hourly',
539
+ 'daily',
540
+ 'monthly'
541
+ ]).optional().default('daily')
523
542
  });
524
543
  /**
525
- * An array of usage records.
544
+ * Usage data with facets for filtering
526
545
  */
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
- });
546
+ export const zGetUsageResponse = zUsageResponse;
533
547
  /**
534
548
  * Redacted payment card information.
535
549
  */
536
550
  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
551
  /**
543
552
  * 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
553
  *
545
554
  */
546
555
  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())
556
+ id: z.string().optional()
553
557
  });
554
558
  /**
555
559
  * An array of usage records.
556
560
  */
557
561
  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
562
  /**
564
563
  * Returns a single object containing organization contact and billing address details.
565
564
  */
566
565
  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
- });
566
+ export const zUpdateContactBody = zBillingContact;
572
567
  /**
573
568
  * Successfully updated. Returns updated organization details.
574
569
  */
575
570
  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
571
  /**
582
572
  * An array of the applied promotional credits records.
583
573
  */
584
574
  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())
575
+ export const zRedeemCreditsBody = z.object({
576
+ code: z.string().optional()
591
577
  });
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())
578
+ export const zListChartsPath = z.object({
579
+ cluster_id: z.string()
598
580
  });
599
581
  /**
600
582
  * An array of charts
601
583
  */
602
584
  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())
585
+ export const zCreateChartBody = zChartCreateInput;
586
+ export const zCreateChartPath = z.object({
587
+ cluster_id: z.string()
609
588
  });
610
589
  /**
611
590
  * Successfully created. Returns created Chart ID.
612
591
  */
613
592
  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())
593
+ export const zDeleteChartPath = z.object({
594
+ cluster_id: z.string(),
595
+ chart_name: z.string()
621
596
  });
622
597
  /**
623
598
  * Successfully deleted.
624
599
  */
625
600
  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())
601
+ export const zGetChartPath = z.object({
602
+ cluster_id: z.string(),
603
+ chart_name: z.string()
633
604
  });
634
605
  /**
635
606
  * Returns a single object containing chart details.
636
607
  */
637
608
  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())
609
+ export const zUpdateChartBody = zChartUpdateInput;
610
+ export const zUpdateChartPath = z.object({
611
+ cluster_id: z.string(),
612
+ chart_name: z.string()
645
613
  });
646
614
  /**
647
615
  * Successfully updated.
648
616
  */
649
617
  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())
618
+ export const zListFleetsPath = z.object({
619
+ cluster_id: z.string()
656
620
  });
657
621
  /**
658
622
  * An array of fleets
659
623
  */
660
624
  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())
625
+ export const zCreateFleetBody = zFleetCreateInput;
626
+ export const zCreateFleetPath = z.object({
627
+ cluster_id: z.string()
667
628
  });
668
629
  /**
669
630
  * Successfully created. Returns created Fleet ID.
670
631
  */
671
632
  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())
633
+ export const zDeleteFleetPath = z.object({
634
+ cluster_id: z.string(),
635
+ fleet_name: z.string()
679
636
  });
680
637
  /**
681
638
  * Successfully deleted.
682
639
  */
683
640
  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())
641
+ export const zGetFleetPath = z.object({
642
+ cluster_id: z.string(),
643
+ fleet_name: z.string()
691
644
  });
692
645
  /**
693
646
  * Returns a single object containing fleet details.
694
647
  */
695
648
  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())
649
+ export const zUpdateFleetBody = zFleetUpdateInput;
650
+ export const zUpdateFleetPath = z.object({
651
+ cluster_id: z.string(),
652
+ fleet_name: z.string()
703
653
  });
704
654
  /**
705
655
  * Successfully updated.
706
656
  */
707
657
  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())
658
+ export const zQueryClusterPath = z.object({
659
+ cluster_id: z.string()
719
660
  });
720
661
  /**
721
662
  * An array of clusters
722
663
  */
723
664
  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
- });
665
+ export const zCreateClusterBody = zClusterCreateInput;
729
666
  /**
730
667
  * Successfully created. Returns created Cluster ID.
731
668
  */
732
669
  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())
670
+ export const zDeleteClusterPath = z.object({
671
+ cluster_id: z.string()
739
672
  });
740
673
  /**
741
674
  * Successfully deleted.
742
675
  */
743
676
  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())
677
+ export const zGetClusterPath = z.object({
678
+ cluster_id: z.string()
750
679
  });
751
680
  /**
752
681
  * Returns a single object containing cluster details.
753
682
  */
754
683
  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())
684
+ export const zUpdateClusterBody = zClusterUpdateInput;
685
+ export const zUpdateClusterPath = z.object({
686
+ cluster_id: z.string()
761
687
  });
762
688
  /**
763
689
  * Successfully updated. Returns updated cluster details.
764
690
  */
765
691
  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())
692
+ export const zGetClusterCaPath = z.object({
693
+ cluster_id: z.string()
694
+ });
695
+ /**
696
+ * PEM-encoded certificate authority of the cluster.
697
+ */
698
+ export const zGetClusterCaResponse = z.string();
699
+ export const zGetJoinInformationPath = z.object({
700
+ cluster_id: z.string()
772
701
  });
773
702
  /**
774
703
  * An object of cluster join information
775
704
  */
776
705
  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
706
  /**
783
707
  * An array of invites
784
708
  */
785
709
  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())
710
+ export const zCreateInviteBody = z.object({
711
+ email: z.string().optional()
792
712
  });
793
713
  /**
794
714
  * Successfully created. Returns created invite details.
795
715
  */
796
716
  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())
717
+ export const zGetInvitePath = z.object({
718
+ code: z.string()
803
719
  });
804
720
  /**
805
721
  * Returns a single object containing invite details.
806
722
  */
807
723
  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())
724
+ export const zDeleteInvitePath = z.object({
725
+ email: z.string()
819
726
  });
820
727
  /**
821
728
  * An array of chart listings in the marketplace.
822
729
  */
823
730
  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())
731
+ export const zGetMarketplaceChartFilesPath = z.object({
732
+ chart_name: z.string(),
733
+ version_channel: z.string()
830
734
  });
831
735
  /**
832
- * Returns an object containing the chart listing details.
736
+ * Returns an object containing the chart files for the latest matching version.
833
737
  */
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())
738
+ export const zGetMarketplaceChartFilesResponse = zMarketplaceListingFiles;
739
+ /**
740
+ * JSON-RPC 2.0 request payload
741
+ */
742
+ export const zPostMcpBody = z.object({
743
+ jsonrpc: z.string().optional(),
744
+ method: z.string().optional(),
745
+ id: z.union([
746
+ z.string(),
747
+ z.number()
748
+ ]).optional(),
749
+ params: z.record(z.string(), z.unknown()).optional()
750
+ });
751
+ /**
752
+ * JSON-RPC 2.0 success or error response
753
+ */
754
+ export const zPostMcpResponse = z.object({
755
+ jsonrpc: z.string().optional(),
756
+ id: z.union([
757
+ z.string(),
758
+ z.number()
759
+ ]).optional(),
760
+ result: z.record(z.string(), z.unknown()).optional(),
761
+ error: z.object({
762
+ code: z.int().optional(),
763
+ message: z.string().optional()
764
+ }).optional()
839
765
  });
840
766
  /**
841
767
  * Returns a single object containing organization details.
842
768
  */
843
769
  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())
770
+ export const zCreateOrganizationBody = zOrganizationCreateInput;
771
+ /**
772
+ * List of repositories
773
+ */
774
+ export const zListRepositoriesResponse = z.array(zRegistryRepository);
775
+ export const zListTagsPath = z.object({
776
+ region: z.string(),
777
+ repository: z.string()
778
+ });
779
+ /**
780
+ * Repository with tags
781
+ */
782
+ export const zListTagsResponse = zRegistryRepositoryWithTags;
783
+ export const zDeleteTagPath = z.object({
784
+ region: z.string(),
785
+ repository: z.string(),
786
+ tag: z.string()
848
787
  });
849
- export const zListTokensData = z.object({
850
- body: z.optional(z.never()),
851
- path: z.optional(z.never()),
852
- query: z.optional(z.never())
788
+ export const zGetTagPath = z.object({
789
+ region: z.string(),
790
+ repository: z.string(),
791
+ tag: z.string()
853
792
  });
793
+ /**
794
+ * Tag details
795
+ */
796
+ export const zGetTagResponse = zRegistryTag;
854
797
  /**
855
798
  * Returns a list of access token details with masked secrets.
856
799
  */
857
800
  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
- });
801
+ export const zCreateTokenBody = zTokenCreateInput;
863
802
  /**
864
803
  * Successfully created. Returns created token details with unmasked/raw secret.
865
804
  */
866
805
  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())
806
+ export const zDeleteTokenPath = z.object({
807
+ token_id: z.string()
873
808
  });
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())
809
+ export const zGetTokenPath = z.object({
810
+ token_id: z.string()
880
811
  });
881
812
  /**
882
813
  * Returns access token details with masked secret.
883
814
  */
884
815
  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())
816
+ export const zUpdateTokenBody = zTokenUpdateInput;
817
+ export const zUpdateTokenPath = z.object({
818
+ token_id: z.string()
891
819
  });
892
820
  /**
893
821
  * Successfully updated. Returns updated token details with masked secret.
894
822
  */
895
823
  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())
824
+ export const zRegenerateTokenPath = z.object({
825
+ token_id: z.string()
902
826
  });
903
827
  /**
904
828
  * Successfully updated. Returns updated token details with unmasked / raw secret.
905
829
  */
906
830
  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())
831
+ export const zListUserOrganizationsPath = z.object({
832
+ email: z.string()
913
833
  });
914
834
  /**
915
835
  * An array of organizations the user belongs to.
916
836
  */
917
837
  export const zListUserOrganizationsResponse = z.array(z.object({
918
- realm: z.optional(z.string()),
919
- displayName: z.optional(z.string())
838
+ realm: z.string().optional(),
839
+ displayName: z.string().optional()
920
840
  }));
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
841
  /**
927
842
  * An array of users
928
843
  */
929
844
  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
- });
845
+ export const zCreateUserBody = zUserCreateInput;
935
846
  /**
936
847
  * Successfully created. Returns created user details.
937
848
  */
938
849
  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())
850
+ export const zDeleteUserPath = z.object({
851
+ user_id: z.string()
945
852
  });
946
853
  /**
947
854
  * User profile information
948
855
  */
949
856
  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())
857
+ export const zGetUserPath = z.object({
858
+ user_id: z.string()
956
859
  });
957
860
  /**
958
861
  * User profile information
959
862
  */
960
863
  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())
864
+ export const zUpdateUserBody = zUserUpdateInput;
865
+ export const zUpdateUserPath = z.object({
866
+ user_id: z.string()
967
867
  });
968
868
  /**
969
869
  * Successfully created. Returns created user details.