@igniter-js/caller 0.1.51 → 0.1.52

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.mjs CHANGED
@@ -2156,46 +2156,15 @@ var IgniterCallerBuilder = class _IgniterCallerBuilder {
2156
2156
  storeOptions: options
2157
2157
  });
2158
2158
  }
2159
- /**
2160
- * Configures schema-based type safety and validation.
2161
- *
2162
- * Enables automatic type inference for requests/responses based on
2163
- * route and method, with optional runtime validation via StandardSchemaV1
2164
- * (Zod is supported).
2165
- *
2166
- * @param schemas - Schema map keyed by URL path and method.
2167
- * @param validation - Validation options for request/response checks.
2168
- *
2169
- * @example
2170
- * ```ts
2171
- * const api = IgniterCaller.create()
2172
- * .withSchemas({
2173
- * '/users': {
2174
- * GET: {
2175
- * responses: {
2176
- * 200: z.array(UserSchema),
2177
- * 401: ErrorSchema,
2178
- * },
2179
- * },
2180
- * POST: {
2181
- * request: CreateUserSchema,
2182
- * responses: {
2183
- * 201: UserSchema,
2184
- * 400: ValidationErrorSchema,
2185
- * },
2186
- * },
2187
- * },
2188
- * })
2189
- * .build()
2190
- * ```
2191
- */
2192
2159
  withSchemas(schemas, validation) {
2193
2160
  const nextState = {
2194
2161
  ...this.state,
2195
2162
  schemas,
2196
2163
  schemaValidation: validation
2197
2164
  };
2198
- return new _IgniterCallerBuilder(nextState);
2165
+ return new _IgniterCallerBuilder(
2166
+ nextState
2167
+ );
2199
2168
  }
2200
2169
  /**
2201
2170
  * Attaches telemetry for request monitoring and observability.
@@ -2512,11 +2481,6 @@ var IgniterCallerMockBuilder = class _IgniterCallerMockBuilder {
2512
2481
  static create() {
2513
2482
  return new _IgniterCallerMockBuilder({ registry: {} });
2514
2483
  }
2515
- /**
2516
- * Sets schemas to enable typed mock definitions.
2517
- *
2518
- * @param _schemas - Schema map or build result.
2519
- */
2520
2484
  withSchemas(_schemas) {
2521
2485
  return new _IgniterCallerMockBuilder({
2522
2486
  registry: this.state.registry