@kubb/plugin-zod 5.0.0-beta.98 → 5.0.0

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.
package/dist/index.d.ts CHANGED
@@ -238,21 +238,21 @@ type ResolverZod = Resolver & {
238
238
  * Resolves the name for an operation's grouped path parameters schema.
239
239
  *
240
240
  * @example Path parameters names
241
- * `resolver.param.path(node, param) // → 'deletePetPathPetIdSchema'`
241
+ * `resolver.param.path(node, param) // → 'deletePetPathSchema'`
242
242
  */
243
243
  path(node: ast.OperationNode, param: ast.ParameterNode): string;
244
244
  /**
245
245
  * Resolves the name for an operation's grouped query parameters schema.
246
246
  *
247
247
  * @example Query parameters names
248
- * `resolver.param.query(node, param) // → 'findPetsByStatusQueryStatusSchema'`
248
+ * `resolver.param.query(node, param) // → 'findPetsByStatusQuerySchema'`
249
249
  */
250
250
  query(node: ast.OperationNode, param: ast.ParameterNode): string;
251
251
  /**
252
252
  * Resolves the name for an operation's grouped header parameters schema.
253
253
  *
254
254
  * @example Header parameters names
255
- * `resolver.param.headers(node, param) // → 'deletePetHeaderApiKeySchema'`
255
+ * `resolver.param.headers(node, param) // → 'deletePetHeadersSchema'`
256
256
  */
257
257
  headers(node: ast.OperationNode, param: ast.ParameterNode): string;
258
258
  };
@@ -297,6 +297,15 @@ type ResolverZod = Resolver & {
297
297
  * `resolver.response.error(node) // → 'listPetsErrorSchema'`
298
298
  */
299
299
  error(node: ast.OperationNode): string;
300
+ /**
301
+ * Resolves the inferred type name for an operation's combined `{ body, path, query, headers }`
302
+ * options object. Only meaningful when `inferred: true`, since the schema and type this name
303
+ * points to are generated only in that case.
304
+ *
305
+ * @example Options type names
306
+ * `resolver.response.options(node) // → 'ListPetsOptionsSchemaType'`
307
+ */
308
+ options(node: ast.OperationNode): string;
300
309
  };
301
310
  };
302
311
  /**