zod-nest 3.2.2 → 3.2.4

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 (44) hide show
  1. package/README.md +1 -0
  2. package/dist/{chunk-LHNXO52A.mjs → chunk-2NVNXIOY.mjs} +15 -26
  3. package/dist/chunk-2NVNXIOY.mjs.map +1 -0
  4. package/dist/{chunk-LXRBMFWD.js → chunk-4LOFWANL.js} +6 -6
  5. package/dist/{chunk-LXRBMFWD.js.map → chunk-4LOFWANL.js.map} +1 -1
  6. package/dist/chunk-EV5I5HGT.js +127 -0
  7. package/dist/chunk-EV5I5HGT.js.map +1 -0
  8. package/dist/{chunk-WI4JKXT6.mjs → chunk-IMEFMJTS.mjs} +3 -3
  9. package/dist/{chunk-WI4JKXT6.mjs.map → chunk-IMEFMJTS.mjs.map} +1 -1
  10. package/dist/{chunk-FKXVNCDD.js → chunk-KNXYA5ER.js} +73 -84
  11. package/dist/chunk-KNXYA5ER.js.map +1 -0
  12. package/dist/chunk-MPNAA53V.mjs +119 -0
  13. package/dist/chunk-MPNAA53V.mjs.map +1 -0
  14. package/dist/{chunk-26E2XEJU.js → chunk-N3VWL7G7.js} +45 -45
  15. package/dist/{chunk-26E2XEJU.js.map → chunk-N3VWL7G7.js.map} +1 -1
  16. package/dist/{chunk-RAF7JGS6.mjs → chunk-VSI3SF7S.mjs} +5 -5
  17. package/dist/{chunk-RAF7JGS6.mjs.map → chunk-VSI3SF7S.mjs.map} +1 -1
  18. package/dist/express/index.d.mts +3 -3
  19. package/dist/express/index.d.ts +3 -3
  20. package/dist/express/index.js +20 -20
  21. package/dist/express/index.mjs +5 -5
  22. package/dist/fastify/index.d.mts +3 -3
  23. package/dist/fastify/index.d.ts +3 -3
  24. package/dist/fastify/index.js +11 -11
  25. package/dist/fastify/index.mjs +5 -5
  26. package/dist/helpers/index.js +24 -24
  27. package/dist/helpers/index.mjs +3 -3
  28. package/dist/index.d.mts +2 -2
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.js +215 -204
  31. package/dist/index.js.map +1 -1
  32. package/dist/index.mjs +16 -5
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/{param-decorators-Dfd2Cy08.d.mts → param-decorators-1UCi-qHq.d.mts} +1 -1
  35. package/dist/{param-decorators-23pStLeF.d.ts → param-decorators-CcuRJZXu.d.ts} +1 -1
  36. package/dist/{registry-Cs1Y0a-L.d.mts → registry-D99yMzJg.d.mts} +3 -2
  37. package/dist/{registry-Cs1Y0a-L.d.ts → registry-D99yMzJg.d.ts} +3 -2
  38. package/package.json +1 -1
  39. package/dist/chunk-4RXGLSPP.js +0 -73
  40. package/dist/chunk-4RXGLSPP.js.map +0 -1
  41. package/dist/chunk-FKXVNCDD.js.map +0 -1
  42. package/dist/chunk-LHNXO52A.mjs.map +0 -1
  43. package/dist/chunk-ZZW54ETO.mjs +0 -67
  44. package/dist/chunk-ZZW54ETO.mjs.map +0 -1
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkFKXVNCDD_js = require('./chunk-FKXVNCDD.js');
4
- var chunk4RXGLSPP_js = require('./chunk-4RXGLSPP.js');
3
+ var chunkKNXYA5ER_js = require('./chunk-KNXYA5ER.js');
4
+ var chunkEV5I5HGT_js = require('./chunk-EV5I5HGT.js');
5
5
  var common = require('@nestjs/common');
6
6
  var zod = require('zod');
7
7
  var constants_js = require('@nestjs/common/constants.js');
@@ -16,14 +16,14 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
16
16
  var stringify__default = /*#__PURE__*/_interopDefault(stringify);
17
17
 
18
18
  // src/dto/marker.ts
19
- var makeZodDtoMarker = /* @__PURE__ */ chunk4RXGLSPP_js.__name((dtoId, io) => ({
20
- type: /* @__PURE__ */ chunk4RXGLSPP_js.__name(() => Object, "type"),
19
+ var makeZodDtoMarker = /* @__PURE__ */ chunkEV5I5HGT_js.__name((dtoId, io) => ({
20
+ type: /* @__PURE__ */ chunkEV5I5HGT_js.__name(() => Object, "type"),
21
21
  required: false,
22
22
  __zodNestDto: true,
23
23
  dtoId,
24
24
  io
25
25
  }), "makeZodDtoMarker");
26
- var isZodDtoMarker = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => {
26
+ var isZodDtoMarker = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => {
27
27
  if (value === null || typeof value !== "object") {
28
28
  return false;
29
29
  }
@@ -31,15 +31,15 @@ var isZodDtoMarker = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => {
31
31
  }, "isZodDtoMarker");
32
32
 
33
33
  // src/dto/output-dto.ts
34
- var outputCache = chunk4RXGLSPP_js.singleton("output-dto-cache", () => /* @__PURE__ */ new WeakMap());
35
- var buildSiblingClass = /* @__PURE__ */ chunk4RXGLSPP_js.__name((parent, schema) => {
34
+ var outputCache = chunkEV5I5HGT_js.singleton("output-dto-cache", () => /* @__PURE__ */ new WeakMap());
35
+ var buildSiblingClass = /* @__PURE__ */ chunkEV5I5HGT_js.__name((parent, schema) => {
36
36
  const SiblingClass = class {
37
37
  static {
38
- chunk4RXGLSPP_js.__name(this, "SiblingClass");
38
+ chunkEV5I5HGT_js.__name(this, "SiblingClass");
39
39
  }
40
40
  static schema = schema;
41
41
  static io = "output";
42
- static [chunkFKXVNCDD_js.ZOD_DTO_SYMBOL] = true;
42
+ static [chunkKNXYA5ER_js.ZOD_DTO_SYMBOL] = true;
43
43
  static get id() {
44
44
  return parent.id;
45
45
  }
@@ -54,17 +54,17 @@ var buildSiblingClass = /* @__PURE__ */ chunk4RXGLSPP_js.__name((parent, schema)
54
54
  }
55
55
  static _OPENAPI_METADATA_FACTORY() {
56
56
  return {
57
- [chunkFKXVNCDD_js.ZOD_NEST_DTO_EXTENSION]: makeZodDtoMarker(parent.id, "output")
57
+ [chunkKNXYA5ER_js.ZOD_NEST_DTO_EXTENSION]: makeZodDtoMarker(parent.id, "output")
58
58
  };
59
59
  }
60
60
  };
61
61
  Object.defineProperty(SiblingClass, "name", {
62
- get: /* @__PURE__ */ chunk4RXGLSPP_js.__name(() => parent.id, "get"),
62
+ get: /* @__PURE__ */ chunkEV5I5HGT_js.__name(() => parent.id, "get"),
63
63
  configurable: true
64
64
  });
65
65
  return SiblingClass;
66
66
  }, "buildSiblingClass");
67
- var resolveOutput = /* @__PURE__ */ chunk4RXGLSPP_js.__name((parent, schema) => {
67
+ var resolveOutput = /* @__PURE__ */ chunkEV5I5HGT_js.__name((parent, schema) => {
68
68
  const cached = outputCache.get(parent);
69
69
  if (cached !== void 0) {
70
70
  return cached;
@@ -75,11 +75,11 @@ var resolveOutput = /* @__PURE__ */ chunk4RXGLSPP_js.__name((parent, schema) =>
75
75
  }, "resolveOutput");
76
76
 
77
77
  // src/dto/create-zod-dto.ts
78
- var anonState = chunk4RXGLSPP_js.singleton("anon-dto-state", () => ({
78
+ var anonState = chunkEV5I5HGT_js.singleton("anon-dto-state", () => ({
79
79
  counter: 0,
80
80
  warned: false
81
81
  }));
82
- var resolveFallbackId = /* @__PURE__ */ chunk4RXGLSPP_js.__name((className) => {
82
+ var resolveFallbackId = /* @__PURE__ */ chunkEV5I5HGT_js.__name((className) => {
83
83
  if (className !== "" && className.length > 1) {
84
84
  return className;
85
85
  }
@@ -91,15 +91,15 @@ var resolveFallbackId = /* @__PURE__ */ chunk4RXGLSPP_js.__name((className) => {
91
91
  }
92
92
  return fallback;
93
93
  }, "resolveFallbackId");
94
- var createZodDto = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
95
- const registry = options?.registry ?? chunkFKXVNCDD_js.defaultRegistry;
94
+ var createZodDto = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema, options) => {
95
+ const registry = options?.registry ?? chunkKNXYA5ER_js.defaultRegistry;
96
96
  const io = "input";
97
97
  let cachedId;
98
- const ensureRegistered = /* @__PURE__ */ chunk4RXGLSPP_js.__name((className) => {
98
+ const ensureRegistered = /* @__PURE__ */ chunkEV5I5HGT_js.__name((className) => {
99
99
  if (cachedId !== void 0) {
100
100
  return cachedId;
101
101
  }
102
- const named = chunkFKXVNCDD_js.registerSchema(schema, registry, {
102
+ const named = chunkKNXYA5ER_js.registerSchema(schema, registry, {
103
103
  id: options?.id,
104
104
  expose: options?.expose
105
105
  });
@@ -115,11 +115,11 @@ var createZodDto = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) =>
115
115
  }, "ensureRegistered");
116
116
  const ZodDtoBase = class {
117
117
  static {
118
- chunk4RXGLSPP_js.__name(this, "ZodDtoBase");
118
+ chunkEV5I5HGT_js.__name(this, "ZodDtoBase");
119
119
  }
120
120
  static schema = schema;
121
121
  static io = io;
122
- static [chunkFKXVNCDD_js.ZOD_DTO_SYMBOL] = true;
122
+ static [chunkKNXYA5ER_js.ZOD_DTO_SYMBOL] = true;
123
123
  static get id() {
124
124
  return ensureRegistered(this.name);
125
125
  }
@@ -134,7 +134,7 @@ var createZodDto = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) =>
134
134
  }
135
135
  static _OPENAPI_METADATA_FACTORY() {
136
136
  return {
137
- [chunkFKXVNCDD_js.ZOD_NEST_DTO_EXTENSION]: makeZodDtoMarker(ensureRegistered(this.name), io)
137
+ [chunkKNXYA5ER_js.ZOD_NEST_DTO_EXTENSION]: makeZodDtoMarker(ensureRegistered(this.name), io)
138
138
  };
139
139
  }
140
140
  };
@@ -142,7 +142,7 @@ var createZodDto = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) =>
142
142
  }, "createZodDto");
143
143
  var ZodSerializationException = class extends common.InternalServerErrorException {
144
144
  static {
145
- chunk4RXGLSPP_js.__name(this, "ZodSerializationException");
145
+ chunkEV5I5HGT_js.__name(this, "ZodSerializationException");
146
146
  }
147
147
  zodError;
148
148
  executionContext;
@@ -160,11 +160,11 @@ var ZodSerializationException = class extends common.InternalServerErrorExceptio
160
160
  var DEFAULT_LOGGER_CONTEXT = "ZodValidation";
161
161
  var REDACTED = "[REDACTED]";
162
162
  var PREVIEW_RESERVE_BYTES = 100;
163
- var noopLogValidationFailure = /* @__PURE__ */ chunk4RXGLSPP_js.__name(() => {
163
+ var noopLogValidationFailure = /* @__PURE__ */ chunkEV5I5HGT_js.__name(() => {
164
164
  }, "noopLogValidationFailure");
165
- var isPlainRecord = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isPlainRecord");
165
+ var isPlainRecord = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isPlainRecord");
166
166
  var CIRCULAR = "[CIRCULAR]";
167
- var redactValue = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value, redactSet, seen = /* @__PURE__ */ new WeakSet()) => {
167
+ var redactValue = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value, redactSet, seen = /* @__PURE__ */ new WeakSet()) => {
168
168
  if (Array.isArray(value)) {
169
169
  if (seen.has(value)) {
170
170
  return CIRCULAR;
@@ -189,7 +189,7 @@ var redactValue = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value, redactSet, see
189
189
  }
190
190
  return out;
191
191
  }, "redactValue");
192
- var capLoggedValue = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value, maxBytes) => {
192
+ var capLoggedValue = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value, maxBytes) => {
193
193
  let serialized;
194
194
  try {
195
195
  serialized = JSON.stringify(value);
@@ -214,9 +214,9 @@ var capLoggedValue = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value, maxBytes) =
214
214
  _preview: serialized.slice(0, previewBudget)
215
215
  };
216
216
  }, "capLoggedValue");
217
- var loggerContextFor = /* @__PURE__ */ chunk4RXGLSPP_js.__name((side) => side === "output" ? "ZodSerializerInterceptor" : "ZodValidationPipe", "loggerContextFor");
218
- var messageFor = /* @__PURE__ */ chunk4RXGLSPP_js.__name((side) => side === "output" ? "Response validation failed" : "Request validation failed", "messageFor");
219
- var createValidationLogger = /* @__PURE__ */ chunk4RXGLSPP_js.__name((opts) => {
217
+ var loggerContextFor = /* @__PURE__ */ chunkEV5I5HGT_js.__name((side) => side === "output" ? "ZodSerializerInterceptor" : "ZodValidationPipe", "loggerContextFor");
218
+ var messageFor = /* @__PURE__ */ chunkEV5I5HGT_js.__name((side) => side === "output" ? "Response validation failed" : "Request validation failed", "messageFor");
219
+ var createValidationLogger = /* @__PURE__ */ chunkEV5I5HGT_js.__name((opts) => {
220
220
  const redactSet = new Set(opts.redactKeys.map((key) => key.toLowerCase()));
221
221
  const { logger } = opts;
222
222
  return (err, value, ctx) => {
@@ -257,12 +257,12 @@ var DEFAULT_STREAM_CONTENT_TYPES = [
257
257
  "video/*"
258
258
  ];
259
259
  var PREFIX_WILDCARD_SUFFIX = "/*";
260
- var normalizeContentType = /* @__PURE__ */ chunk4RXGLSPP_js.__name((contentType) => {
260
+ var normalizeContentType = /* @__PURE__ */ chunkEV5I5HGT_js.__name((contentType) => {
261
261
  const semicolonIndex = contentType.indexOf(";");
262
262
  const mediaType = semicolonIndex === -1 ? contentType : contentType.slice(0, semicolonIndex);
263
263
  return mediaType.trim().toLowerCase();
264
264
  }, "normalizeContentType");
265
- var normalizeStreamMatcher = /* @__PURE__ */ chunk4RXGLSPP_js.__name((contentTypes) => {
265
+ var normalizeStreamMatcher = /* @__PURE__ */ chunkEV5I5HGT_js.__name((contentTypes) => {
266
266
  const exact = /* @__PURE__ */ new Set();
267
267
  const prefixes = [];
268
268
  for (const entry of contentTypes) {
@@ -283,7 +283,7 @@ var normalizeStreamMatcher = /* @__PURE__ */ chunk4RXGLSPP_js.__name((contentTyp
283
283
  };
284
284
  }, "normalizeStreamMatcher");
285
285
  var DEFAULT_STREAM_MATCHER = normalizeStreamMatcher(DEFAULT_STREAM_CONTENT_TYPES);
286
- var matchesStream = /* @__PURE__ */ chunk4RXGLSPP_js.__name((contentType, matcher) => {
286
+ var matchesStream = /* @__PURE__ */ chunkEV5I5HGT_js.__name((contentType, matcher) => {
287
287
  const normalized = normalizeContentType(contentType);
288
288
  if (matcher.exact.has(normalized)) {
289
289
  return true;
@@ -295,13 +295,13 @@ var matchesStream = /* @__PURE__ */ chunk4RXGLSPP_js.__name((contentType, matche
295
295
  }
296
296
  return false;
297
297
  }, "matchesStream");
298
- var isHeaderEntry = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => {
298
+ var isHeaderEntry = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => {
299
299
  if (value === null || typeof value !== "object") {
300
300
  return false;
301
301
  }
302
302
  return "name" in value && typeof value.name === "string";
303
303
  }, "isHeaderEntry");
304
- var headerContentType = /* @__PURE__ */ chunk4RXGLSPP_js.__name((handler) => {
304
+ var headerContentType = /* @__PURE__ */ chunkEV5I5HGT_js.__name((handler) => {
305
305
  const headers = Reflect.getMetadata(constants_js.HEADERS_METADATA, handler);
306
306
  if (!Array.isArray(headers)) {
307
307
  return void 0;
@@ -320,7 +320,7 @@ var headerContentType = /* @__PURE__ */ chunk4RXGLSPP_js.__name((handler) => {
320
320
  }
321
321
  return void 0;
322
322
  }, "headerContentType");
323
- var resolveContentType = /* @__PURE__ */ chunk4RXGLSPP_js.__name((variant, handler, matcher) => {
323
+ var resolveContentType = /* @__PURE__ */ chunkEV5I5HGT_js.__name((variant, handler, matcher) => {
324
324
  if (variant.contentType !== void 0) {
325
325
  return variant.contentType;
326
326
  }
@@ -330,7 +330,7 @@ var resolveContentType = /* @__PURE__ */ chunk4RXGLSPP_js.__name((variant, handl
330
330
  }
331
331
  return DEFAULT_CONTENT_TYPE;
332
332
  }, "resolveContentType");
333
- var isStreamResponse = /* @__PURE__ */ chunk4RXGLSPP_js.__name((variant, handler, matcher) => {
333
+ var isStreamResponse = /* @__PURE__ */ chunkEV5I5HGT_js.__name((variant, handler, matcher) => {
334
334
  if (variant.stream !== void 0) {
335
335
  return variant.stream;
336
336
  }
@@ -356,7 +356,7 @@ var DEFAULT_REDACT_KEYS = [
356
356
  ];
357
357
  var DEFAULT_MAX_LOGGED_VALUE_BYTES = 4096;
358
358
  var ZOD_NEST_OPTIONS = /* @__PURE__ */ Symbol("zod-nest.options");
359
- var resolveLogFlags = /* @__PURE__ */ chunk4RXGLSPP_js.__name((validationLogs) => {
359
+ var resolveLogFlags = /* @__PURE__ */ chunkEV5I5HGT_js.__name((validationLogs) => {
360
360
  if (typeof validationLogs === "boolean") {
361
361
  return {
362
362
  input: validationLogs,
@@ -368,7 +368,7 @@ var resolveLogFlags = /* @__PURE__ */ chunk4RXGLSPP_js.__name((validationLogs) =
368
368
  output: validationLogs?.output ?? false
369
369
  };
370
370
  }, "resolveLogFlags");
371
- var normalizeZodNestOptions = /* @__PURE__ */ chunk4RXGLSPP_js.__name((opts) => {
371
+ var normalizeZodNestOptions = /* @__PURE__ */ chunkEV5I5HGT_js.__name((opts) => {
372
372
  const flags = resolveLogFlags(opts?.validationLogs);
373
373
  const redactKeys = opts?.redactKeys ?? DEFAULT_REDACT_KEYS;
374
374
  const maxLoggedValueBytes = opts?.maxLoggedValueBytes ?? DEFAULT_MAX_LOGGED_VALUE_BYTES;
@@ -405,25 +405,25 @@ function _ts_decorate(decorators, target, key, desc) {
405
405
  }
406
406
  return c > 3 && r && Object.defineProperty(target, key, r), r;
407
407
  }
408
- chunk4RXGLSPP_js.__name(_ts_decorate, "_ts_decorate");
408
+ chunkEV5I5HGT_js.__name(_ts_decorate, "_ts_decorate");
409
409
  function _ts_metadata(metadataKey, metadataValue) {
410
410
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
411
411
  return Reflect.metadata(metadataKey, metadataValue);
412
412
  }
413
413
  }
414
- chunk4RXGLSPP_js.__name(_ts_metadata, "_ts_metadata");
414
+ chunkEV5I5HGT_js.__name(_ts_metadata, "_ts_metadata");
415
415
  function _ts_param(paramIndex, decorator) {
416
416
  return function(target, key) {
417
417
  decorator(target, key, paramIndex);
418
418
  };
419
419
  }
420
- chunk4RXGLSPP_js.__name(_ts_param, "_ts_param");
421
- var isZodSchema2 = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => value !== null && typeof value === "object" && "_zod" in value, "isZodSchema");
422
- var isOptionsObject = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => value !== null && typeof value === "object" && !isZodSchema2(value), "isOptionsObject");
423
- var defaultExceptionFactory = /* @__PURE__ */ chunk4RXGLSPP_js.__name((zodError, argMetadata) => new chunkFKXVNCDD_js.ZodValidationException(zodError, argMetadata), "defaultExceptionFactory");
420
+ chunkEV5I5HGT_js.__name(_ts_param, "_ts_param");
421
+ var isZodSchema2 = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => value !== null && typeof value === "object" && "_zod" in value, "isZodSchema");
422
+ var isOptionsObject = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => value !== null && typeof value === "object" && !isZodSchema2(value), "isOptionsObject");
423
+ var defaultExceptionFactory = /* @__PURE__ */ chunkEV5I5HGT_js.__name((zodError, argMetadata) => new chunkKNXYA5ER_js.ZodValidationException(zodError, argMetadata), "defaultExceptionFactory");
424
424
  exports.ZodValidationPipe = class _ZodValidationPipe {
425
425
  static {
426
- chunk4RXGLSPP_js.__name(this, "ZodValidationPipe");
426
+ chunkEV5I5HGT_js.__name(this, "ZodValidationPipe");
427
427
  }
428
428
  explicitSchema;
429
429
  explicitDtoName;
@@ -458,7 +458,7 @@ exports.ZodValidationPipe = class _ZodValidationPipe {
458
458
  return this.explicitSchema;
459
459
  }
460
460
  const metatype = metadata.metatype;
461
- if (!chunkFKXVNCDD_js.isZodDto(metatype)) {
461
+ if (!chunkKNXYA5ER_js.isZodDto(metatype)) {
462
462
  return void 0;
463
463
  }
464
464
  return metatype.schema;
@@ -468,7 +468,7 @@ exports.ZodValidationPipe = class _ZodValidationPipe {
468
468
  return this.explicitDtoName;
469
469
  }
470
470
  const metatype = metadata.metatype;
471
- if (chunkFKXVNCDD_js.isZodDto(metatype)) {
471
+ if (chunkKNXYA5ER_js.isZodDto(metatype)) {
472
472
  return metatype.name;
473
473
  }
474
474
  return "schema";
@@ -481,7 +481,7 @@ exports.ZodValidationPipe = class _ZodValidationPipe {
481
481
  dtoName: void 0
482
482
  };
483
483
  }
484
- if (chunkFKXVNCDD_js.isZodDto(arg)) {
484
+ if (chunkKNXYA5ER_js.isZodDto(arg)) {
485
485
  return {
486
486
  schema: arg.schema,
487
487
  factory: void 0,
@@ -503,8 +503,8 @@ exports.ZodValidationPipe = class _ZodValidationPipe {
503
503
  };
504
504
  }
505
505
  const optionSchema = arg.schema;
506
- const dtoName = chunkFKXVNCDD_js.isZodDto(optionSchema) ? optionSchema.name : void 0;
507
- const resolvedSchema = chunkFKXVNCDD_js.isZodDto(optionSchema) ? optionSchema.schema : optionSchema;
506
+ const dtoName = chunkKNXYA5ER_js.isZodDto(optionSchema) ? optionSchema.name : void 0;
507
+ const resolvedSchema = chunkKNXYA5ER_js.isZodDto(optionSchema) ? optionSchema.schema : optionSchema;
508
508
  return {
509
509
  schema: resolvedSchema,
510
510
  factory: arg.createValidationException,
@@ -525,7 +525,7 @@ exports.ZodValidationPipe = _ts_decorate([
525
525
  ], exports.ZodValidationPipe);
526
526
  var POST_DEFAULT_STATUS = 201;
527
527
  var GENERIC_DEFAULT_STATUS = 200;
528
- var defaultStatusFor = /* @__PURE__ */ chunk4RXGLSPP_js.__name((handler) => {
528
+ var defaultStatusFor = /* @__PURE__ */ chunkEV5I5HGT_js.__name((handler) => {
529
529
  const httpCode = Reflect.getMetadata(constants_js.HTTP_CODE_METADATA, handler);
530
530
  if (typeof httpCode === "number") {
531
531
  return httpCode;
@@ -536,7 +536,7 @@ var defaultStatusFor = /* @__PURE__ */ chunk4RXGLSPP_js.__name((handler) => {
536
536
  }
537
537
  return GENERIC_DEFAULT_STATUS;
538
538
  }, "defaultStatusFor");
539
- var resolveEffectiveStatus = /* @__PURE__ */ chunk4RXGLSPP_js.__name((variant, handler) => {
539
+ var resolveEffectiveStatus = /* @__PURE__ */ chunkEV5I5HGT_js.__name((variant, handler) => {
540
540
  if (variant.status !== void 0) {
541
541
  return variant.status;
542
542
  }
@@ -545,7 +545,7 @@ var resolveEffectiveStatus = /* @__PURE__ */ chunk4RXGLSPP_js.__name((variant, h
545
545
 
546
546
  // src/response/metadata.ts
547
547
  var ZOD_RESPONSES_METADATA_KEY = /* @__PURE__ */ Symbol.for("zod-nest.responses");
548
- var appendResponseVariant = /* @__PURE__ */ chunk4RXGLSPP_js.__name((handler, variant) => {
548
+ var appendResponseVariant = /* @__PURE__ */ chunkEV5I5HGT_js.__name((handler, variant) => {
549
549
  const existing = Reflect.getMetadata(ZOD_RESPONSES_METADATA_KEY, handler) ?? [];
550
550
  Reflect.defineMetadata(ZOD_RESPONSES_METADATA_KEY, [
551
551
  variant,
@@ -554,20 +554,20 @@ var appendResponseVariant = /* @__PURE__ */ chunk4RXGLSPP_js.__name((handler, va
554
554
  }, "appendResponseVariant");
555
555
 
556
556
  // src/response/normalize-type.ts
557
- var responseDtoCache = chunk4RXGLSPP_js.singleton("response-dto-cache", () => /* @__PURE__ */ new WeakMap());
558
- var schemaToOutputDto = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema) => {
557
+ var responseDtoCache = chunkEV5I5HGT_js.singleton("response-dto-cache", () => /* @__PURE__ */ new WeakMap());
558
+ var schemaToOutputDto = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema) => {
559
559
  const cached = responseDtoCache.get(schema);
560
560
  if (cached !== void 0) {
561
561
  return cached;
562
562
  }
563
- const namedId = chunkFKXVNCDD_js.registerSchema(schema);
563
+ const namedId = chunkKNXYA5ER_js.registerSchema(schema);
564
564
  if (namedId !== void 0) {
565
565
  const dto2 = createZodDto(schema).Output;
566
566
  responseDtoCache.set(schema, dto2);
567
567
  return dto2;
568
568
  }
569
- const anonId = chunkFKXVNCDD_js.resolveAnonId(schema, chunkFKXVNCDD_js.ANON_RESPONSE_PREFIX);
570
- chunkFKXVNCDD_js.registerSchema(schema, chunkFKXVNCDD_js.defaultRegistry, {
569
+ const anonId = chunkKNXYA5ER_js.resolveAnonId(schema, chunkKNXYA5ER_js.ANON_RESPONSE_PREFIX);
570
+ chunkKNXYA5ER_js.registerSchema(schema, chunkKNXYA5ER_js.defaultRegistry, {
571
571
  id: anonId,
572
572
  anonymous: true
573
573
  });
@@ -577,17 +577,17 @@ var schemaToOutputDto = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema) => {
577
577
  responseDtoCache.set(schema, dto);
578
578
  return dto;
579
579
  }, "schemaToOutputDto");
580
- var toResponseDto = /* @__PURE__ */ chunk4RXGLSPP_js.__name((entry, index) => {
581
- if (chunkFKXVNCDD_js.isZodDto(entry)) {
580
+ var toResponseDto = /* @__PURE__ */ chunkEV5I5HGT_js.__name((entry, index) => {
581
+ if (chunkKNXYA5ER_js.isZodDto(entry)) {
582
582
  return entry;
583
583
  }
584
- if (chunkFKXVNCDD_js.isZodSchema(entry)) {
584
+ if (chunkKNXYA5ER_js.isZodSchema(entry)) {
585
585
  return schemaToOutputDto(entry);
586
586
  }
587
587
  const where = index === void 0 ? "@ZodResponse({ type })" : `@ZodResponse({ type }) element [${index}]`;
588
588
  throw new TypeError(`[zod-nest] ${where} must be a zod-nest DTO class (from createZodDto), a Zod schema, or a non-empty array of those.`);
589
589
  }, "toResponseDto");
590
- var extractDescriptionFields = /* @__PURE__ */ chunk4RXGLSPP_js.__name((desc) => {
590
+ var extractDescriptionFields = /* @__PURE__ */ chunkEV5I5HGT_js.__name((desc) => {
591
591
  if (desc === void 0) {
592
592
  return {};
593
593
  }
@@ -607,21 +607,21 @@ var extractDescriptionFields = /* @__PURE__ */ chunk4RXGLSPP_js.__name((desc) =>
607
607
  }
608
608
  return out;
609
609
  }, "extractDescriptionFields");
610
- var asDtoFunction = /* @__PURE__ */ chunk4RXGLSPP_js.__name((dto) => dto, "asDtoFunction");
611
- var buildApiResponseOptions = /* @__PURE__ */ chunk4RXGLSPP_js.__name((base, body) => {
610
+ var asDtoFunction = /* @__PURE__ */ chunkEV5I5HGT_js.__name((dto) => dto, "asDtoFunction");
611
+ var buildApiResponseOptions = /* @__PURE__ */ chunkEV5I5HGT_js.__name((base, body) => {
612
612
  return {
613
613
  ...base,
614
614
  ...body
615
615
  };
616
616
  }, "buildApiResponseOptions");
617
- var buildTupleSchema = /* @__PURE__ */ chunk4RXGLSPP_js.__name((dtos) => ({
617
+ var buildTupleSchema = /* @__PURE__ */ chunkEV5I5HGT_js.__name((dtos) => ({
618
618
  type: "array",
619
619
  prefixItems: dtos.map((d) => ({
620
620
  $ref: swagger.getSchemaPath(asDtoFunction(d))
621
621
  })),
622
622
  items: false
623
623
  }), "buildTupleSchema");
624
- var buildContentResponseOptions = /* @__PURE__ */ chunk4RXGLSPP_js.__name((base, contentType, schema) => {
624
+ var buildContentResponseOptions = /* @__PURE__ */ chunkEV5I5HGT_js.__name((base, contentType, schema) => {
625
625
  return {
626
626
  ...base,
627
627
  content: {
@@ -631,7 +631,7 @@ var buildContentResponseOptions = /* @__PURE__ */ chunk4RXGLSPP_js.__name((base,
631
631
  }
632
632
  };
633
633
  }, "buildContentResponseOptions");
634
- var applyCustomContentResponse = /* @__PURE__ */ chunk4RXGLSPP_js.__name((variant, base, contentType, target, propertyKey, descriptor) => {
634
+ var applyCustomContentResponse = /* @__PURE__ */ chunkEV5I5HGT_js.__name((variant, base, contentType, target, propertyKey, descriptor) => {
635
635
  if (variant.kind === "single") {
636
636
  const dto = variant.dto;
637
637
  swagger.ApiExtraModels(asDtoFunction(dto))(target, propertyKey, descriptor);
@@ -656,7 +656,7 @@ var applyCustomContentResponse = /* @__PURE__ */ chunk4RXGLSPP_js.__name((varian
656
656
  }
657
657
  swagger.ApiResponse(buildContentResponseOptions(base, contentType, buildTupleSchema(dtos)))(target, propertyKey, descriptor);
658
658
  }, "applyCustomContentResponse");
659
- var applySwaggerResponseDecorator = /* @__PURE__ */ chunk4RXGLSPP_js.__name((variant, effectiveStatus, effectiveContentType, target, propertyKey, descriptor) => {
659
+ var applySwaggerResponseDecorator = /* @__PURE__ */ chunkEV5I5HGT_js.__name((variant, effectiveStatus, effectiveContentType, target, propertyKey, descriptor) => {
660
660
  const base = {
661
661
  status: effectiveStatus,
662
662
  ...extractDescriptionFields(variant.description)
@@ -689,7 +689,7 @@ var applySwaggerResponseDecorator = /* @__PURE__ */ chunk4RXGLSPP_js.__name((var
689
689
  }, "applySwaggerResponseDecorator");
690
690
 
691
691
  // src/decorators/zod-response.decorator.ts
692
- var buildArrayKind = /* @__PURE__ */ chunk4RXGLSPP_js.__name((entries) => {
692
+ var buildArrayKind = /* @__PURE__ */ chunkEV5I5HGT_js.__name((entries) => {
693
693
  const [headEntry, ...restEntries] = entries;
694
694
  const head = toResponseDto(headEntry, 0);
695
695
  const rest = restEntries.map((entry, index) => toResponseDto(entry, index + 1));
@@ -715,7 +715,7 @@ var buildArrayKind = /* @__PURE__ */ chunk4RXGLSPP_js.__name((entries) => {
715
715
  validationSchema: zod.z.tuple(tupleSchemas)
716
716
  };
717
717
  }, "buildArrayKind");
718
- var buildKind = /* @__PURE__ */ chunk4RXGLSPP_js.__name((type) => {
718
+ var buildKind = /* @__PURE__ */ chunkEV5I5HGT_js.__name((type) => {
719
719
  if (Array.isArray(type)) {
720
720
  if (type.length === 0) {
721
721
  throw new TypeError("[zod-nest] @ZodResponse({ type: [] }) is invalid \u2014 provide at least one DTO or schema.");
@@ -729,13 +729,13 @@ var buildKind = /* @__PURE__ */ chunk4RXGLSPP_js.__name((type) => {
729
729
  validationSchema: dto.schema
730
730
  };
731
731
  }, "buildKind");
732
- var normaliseStatus = /* @__PURE__ */ chunk4RXGLSPP_js.__name((status) => {
732
+ var normaliseStatus = /* @__PURE__ */ chunkEV5I5HGT_js.__name((status) => {
733
733
  if (status === "default") {
734
734
  return void 0;
735
735
  }
736
736
  return status;
737
737
  }, "normaliseStatus");
738
- var ZodResponse = /* @__PURE__ */ chunk4RXGLSPP_js.__name((opts) => {
738
+ var ZodResponse = /* @__PURE__ */ chunkEV5I5HGT_js.__name((opts) => {
739
739
  const built = buildKind(opts.type);
740
740
  const status = normaliseStatus(opts.status);
741
741
  return (target, propertyKey, descriptor) => {
@@ -762,7 +762,7 @@ var ZodResponse = /* @__PURE__ */ chunk4RXGLSPP_js.__name((opts) => {
762
762
  });
763
763
  };
764
764
  }, "ZodResponse");
765
- var ZodBody = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
765
+ var ZodBody = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema, options) => {
766
766
  const apiBodySchema = resolveBodySchema(schema, options);
767
767
  return swagger.ApiBody({
768
768
  schema: apiBodySchema,
@@ -772,11 +772,11 @@ var ZodBody = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
772
772
  required: options?.required ?? true
773
773
  });
774
774
  }, "ZodBody");
775
- var resolveBodySchema = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
775
+ var resolveBodySchema = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema, options) => {
776
776
  if (options?.flatten === true) {
777
- return chunkFKXVNCDD_js.flattenObjectIntersection(schema, options.registry ?? chunkFKXVNCDD_js.defaultRegistry, "@ZodBody");
777
+ return chunkKNXYA5ER_js.flattenObjectIntersection(schema, options.registry ?? chunkKNXYA5ER_js.defaultRegistry, "@ZodBody");
778
778
  }
779
- return chunkFKXVNCDD_js.resolveSchemaRef(schema, {
779
+ return chunkKNXYA5ER_js.resolveSchemaRef(schema, {
780
780
  id: options?.id,
781
781
  registry: options?.registry,
782
782
  deferAnonInline: true
@@ -785,7 +785,7 @@ var resolveBodySchema = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options
785
785
 
786
786
  // src/decorators/internal/query-marker.ts
787
787
  var API_PARAMETERS_METADATA_KEY = "swagger/apiParameters";
788
- var appendQueryMarker = /* @__PURE__ */ chunk4RXGLSPP_js.__name((dtoId, ref) => (_target, _propertyKey, descriptor) => {
788
+ var appendQueryMarker = /* @__PURE__ */ chunkEV5I5HGT_js.__name((dtoId, ref) => (_target, _propertyKey, descriptor) => {
789
789
  const method = descriptor.value;
790
790
  if (typeof method !== "function") {
791
791
  return descriptor;
@@ -810,28 +810,28 @@ var appendQueryMarker = /* @__PURE__ */ chunk4RXGLSPP_js.__name((dtoId, ref) =>
810
810
  }, "appendQueryMarker");
811
811
 
812
812
  // src/decorators/zod-query.decorator.ts
813
- var ZodQuery = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
814
- if (!chunkFKXVNCDD_js.isZodObject(schema)) {
815
- throw new chunkFKXVNCDD_js.ZodNestError(`@ZodQuery requires a \`z.object({...})\` schema (got \`${schema._zod.def.type}\`). Each property of the object becomes one OpenAPI parameter. For non-object body shapes (intersections, unions, primitives), use \`@ZodBody\` instead.`);
813
+ var ZodQuery = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema, options) => {
814
+ if (!chunkKNXYA5ER_js.isZodObject(schema)) {
815
+ throw new chunkKNXYA5ER_js.ZodNestError(`@ZodQuery requires a \`z.object({...})\` schema (got \`${schema._zod.def.type}\`). Each property of the object becomes one OpenAPI parameter. For non-object body shapes (intersections, unions, primitives), use \`@ZodBody\` instead.`);
816
816
  }
817
- const registry = options?.registry ?? chunkFKXVNCDD_js.defaultRegistry;
818
- const id = chunkFKXVNCDD_js.registerSchema(schema, registry, {
817
+ const registry = options?.registry ?? chunkKNXYA5ER_js.defaultRegistry;
818
+ const id = chunkKNXYA5ER_js.registerSchema(schema, registry, {
819
819
  id: options?.id
820
820
  });
821
821
  if (id !== void 0) {
822
822
  return appendQueryMarker(id, options?.ref);
823
823
  }
824
824
  if (options?.ref === true) {
825
- throw new chunkFKXVNCDD_js.ZodNestError(`@ZodQuery({ ref: true }) requires a named schema \u2014 there is no component to \`$ref\`. Name the schema via \`.meta({ id: 'Foo' })\` or pass the \`id\` option, or drop \`ref\` to expand per property.`);
825
+ throw new chunkKNXYA5ER_js.ZodNestError(`@ZodQuery({ ref: true }) requires a named schema \u2014 there is no component to \`$ref\`. Name the schema via \`.meta({ id: 'Foo' })\` or pass the \`id\` option, or drop \`ref\` to expand per property.`);
826
826
  }
827
- const expanded = chunkFKXVNCDD_js.expandObjectSchema(schema, {
827
+ const expanded = chunkKNXYA5ER_js.expandObjectSchema(schema, {
828
828
  id: options?.id,
829
829
  registry,
830
830
  decoratorName: "@ZodQuery"
831
831
  });
832
832
  return common.applyDecorators(...expanded.map(({ name, required, resolution }) => swagger.ApiQuery({
833
833
  name,
834
- schema: chunkFKXVNCDD_js.paramSchemaBody(resolution),
834
+ schema: chunkKNXYA5ER_js.paramSchemaBody(resolution),
835
835
  required
836
836
  })));
837
837
  }, "ZodQuery");
@@ -840,8 +840,8 @@ var ZodQuery = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
840
840
  var API_PARAMETERS_KEY = "swagger/apiParameters";
841
841
 
842
842
  // src/decorators/zod-headers.decorator.ts
843
- var ZodHeaders = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
844
- const expanded = chunkFKXVNCDD_js.expandObjectSchema(schema, {
843
+ var ZodHeaders = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema, options) => {
844
+ const expanded = chunkKNXYA5ER_js.expandObjectSchema(schema, {
845
845
  id: options?.id,
846
846
  registry: options?.registry,
847
847
  decoratorName: "@ZodHeaders"
@@ -850,7 +850,7 @@ var ZodHeaders = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
850
850
  name,
851
851
  in: "header",
852
852
  required,
853
- schema: chunkFKXVNCDD_js.paramSchemaBody(resolution)
853
+ schema: chunkKNXYA5ER_js.paramSchemaBody(resolution)
854
854
  }));
855
855
  return (_target, _propertyKey, descriptor) => {
856
856
  const handler = descriptor.value;
@@ -866,8 +866,8 @@ var ZodHeaders = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
866
866
  }, "ZodHeaders");
867
867
 
868
868
  // src/decorators/zod-cookies.decorator.ts
869
- var ZodCookies = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
870
- const expanded = chunkFKXVNCDD_js.expandObjectSchema(schema, {
869
+ var ZodCookies = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema, options) => {
870
+ const expanded = chunkKNXYA5ER_js.expandObjectSchema(schema, {
871
871
  id: options?.id,
872
872
  registry: options?.registry,
873
873
  decoratorName: "@ZodCookies"
@@ -876,7 +876,7 @@ var ZodCookies = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, options) => {
876
876
  name,
877
877
  in: "cookie",
878
878
  required,
879
- schema: chunkFKXVNCDD_js.paramSchemaBody(resolution)
879
+ schema: chunkKNXYA5ER_js.paramSchemaBody(resolution)
880
880
  }));
881
881
  return (_target, _propertyKey, descriptor) => {
882
882
  const handler = descriptor.value;
@@ -903,30 +903,30 @@ function _ts_decorate2(decorators, target, key, desc) {
903
903
  }
904
904
  return c > 3 && r && Object.defineProperty(target, key, r), r;
905
905
  }
906
- chunk4RXGLSPP_js.__name(_ts_decorate2, "_ts_decorate");
906
+ chunkEV5I5HGT_js.__name(_ts_decorate2, "_ts_decorate");
907
907
  function _ts_metadata2(metadataKey, metadataValue) {
908
908
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") {
909
909
  return Reflect.metadata(metadataKey, metadataValue);
910
910
  }
911
911
  }
912
- chunk4RXGLSPP_js.__name(_ts_metadata2, "_ts_metadata");
912
+ chunkEV5I5HGT_js.__name(_ts_metadata2, "_ts_metadata");
913
913
  function _ts_param2(paramIndex, decorator) {
914
914
  return function(target, key) {
915
915
  decorator(target, key, paramIndex);
916
916
  };
917
917
  }
918
- chunk4RXGLSPP_js.__name(_ts_param2, "_ts_param");
919
- var defaultSerializationFactory = /* @__PURE__ */ chunk4RXGLSPP_js.__name((err, ctx) => new ZodSerializationException(err, ctx), "defaultSerializationFactory");
920
- var formatDtoLabel = /* @__PURE__ */ chunk4RXGLSPP_js.__name((variant) => {
918
+ chunkEV5I5HGT_js.__name(_ts_param2, "_ts_param");
919
+ var defaultSerializationFactory = /* @__PURE__ */ chunkEV5I5HGT_js.__name((err, ctx) => new ZodSerializationException(err, ctx), "defaultSerializationFactory");
920
+ var formatDtoLabel = /* @__PURE__ */ chunkEV5I5HGT_js.__name((variant) => {
921
921
  if (variant.kind === "single") {
922
922
  return variant.dto.id;
923
923
  }
924
924
  const dtos = variant.dto;
925
925
  return `[${dtos.map((d) => d.id).join(", ")}]`;
926
926
  }, "formatDtoLabel");
927
- var formatHandlerLabel = /* @__PURE__ */ chunk4RXGLSPP_js.__name((context) => `${context.getClass().name}.${context.getHandler().name}`, "formatHandlerLabel");
928
- var matchesWildcard = /* @__PURE__ */ chunk4RXGLSPP_js.__name((wildcard, status) => wildcard.charCodeAt(0) - 48 === Math.floor(status / 100), "matchesWildcard");
929
- var selectVariant = /* @__PURE__ */ chunk4RXGLSPP_js.__name((variants, status, handler) => {
927
+ var formatHandlerLabel = /* @__PURE__ */ chunkEV5I5HGT_js.__name((context) => `${context.getClass().name}.${context.getHandler().name}`, "formatHandlerLabel");
928
+ var matchesWildcard = /* @__PURE__ */ chunkEV5I5HGT_js.__name((wildcard, status) => wildcard.charCodeAt(0) - 48 === Math.floor(status / 100), "matchesWildcard");
929
+ var selectVariant = /* @__PURE__ */ chunkEV5I5HGT_js.__name((variants, status, handler) => {
930
930
  for (const variant of variants) {
931
931
  const effective = resolveEffectiveStatus(variant, handler);
932
932
  if (typeof effective === "number" && effective === status) {
@@ -943,7 +943,7 @@ var selectVariant = /* @__PURE__ */ chunk4RXGLSPP_js.__name((variants, status, h
943
943
  }, "selectVariant");
944
944
  exports.ZodSerializerInterceptor = class ZodSerializerInterceptor {
945
945
  static {
946
- chunk4RXGLSPP_js.__name(this, "ZodSerializerInterceptor");
946
+ chunkEV5I5HGT_js.__name(this, "ZodSerializerInterceptor");
947
947
  }
948
948
  reflector;
949
949
  logOutputFailure;
@@ -1009,7 +1009,7 @@ exports.ZodSerializerInterceptor = _ts_decorate2([
1009
1009
  ], exports.ZodSerializerInterceptor);
1010
1010
  var ZodNestModule = class _ZodNestModule {
1011
1011
  static {
1012
- chunk4RXGLSPP_js.__name(this, "ZodNestModule");
1012
+ chunkEV5I5HGT_js.__name(this, "ZodNestModule");
1013
1013
  }
1014
1014
  static forRoot(options) {
1015
1015
  const normalized = normalizeZodNestOptions(options);
@@ -1036,16 +1036,27 @@ var ZodNestModule = class _ZodNestModule {
1036
1036
  };
1037
1037
  }
1038
1038
  };
1039
- var URI = /* @__PURE__ */ chunk4RXGLSPP_js.__name((id) => `#/components/schemas/${id}`, "URI");
1040
- var bulkEmit = /* @__PURE__ */ chunk4RXGLSPP_js.__name((opts) => {
1039
+ var URI = /* @__PURE__ */ chunkEV5I5HGT_js.__name((id) => `#/components/schemas/${id}`, "URI");
1040
+ var bulkEmit = /* @__PURE__ */ chunkEV5I5HGT_js.__name((opts) => {
1041
1041
  const knownIds = new Set(opts.registry.ids());
1042
1042
  return {
1043
1043
  inputSchemas: runPass(opts, "input", knownIds),
1044
1044
  outputSchemas: runPass(opts, "output", knownIds)
1045
1045
  };
1046
1046
  }, "bulkEmit");
1047
- var runPass = /* @__PURE__ */ chunk4RXGLSPP_js.__name((opts, io, knownIds) => {
1048
- const built = chunkFKXVNCDD_js.buildToJsonSchemaOptions({
1047
+ var scopeToKnownIds = /* @__PURE__ */ chunkEV5I5HGT_js.__name((zodRegistry, knownIds) => {
1048
+ const scoped = zod.z.registry();
1049
+ for (const [id, schema] of zodRegistry._idmap) {
1050
+ if (knownIds.has(id)) {
1051
+ scoped.add(schema, {
1052
+ id
1053
+ });
1054
+ }
1055
+ }
1056
+ return scoped;
1057
+ }, "scopeToKnownIds");
1058
+ var runPass = /* @__PURE__ */ chunkEV5I5HGT_js.__name((opts, io, knownIds) => {
1059
+ const built = chunkKNXYA5ER_js.buildToJsonSchemaOptions({
1049
1060
  registry: opts.registry,
1050
1061
  io,
1051
1062
  override: opts.override,
@@ -1053,7 +1064,7 @@ var runPass = /* @__PURE__ */ chunk4RXGLSPP_js.__name((opts, io, knownIds) => {
1053
1064
  reused: "inline",
1054
1065
  uri: URI
1055
1066
  });
1056
- const raw = zod.z.toJSONSchema(opts.registry.zodRegistry, built.options);
1067
+ const raw = zod.z.toJSONSchema(scopeToKnownIds(opts.registry.zodRegistry, knownIds), built.options);
1057
1068
  built.consumeUnrepresentable();
1058
1069
  const filtered = /* @__PURE__ */ new Map();
1059
1070
  for (const [id, schema] of Object.entries(raw.schemas)) {
@@ -1075,7 +1086,7 @@ var HTTP_METHODS = [
1075
1086
  "patch",
1076
1087
  "trace"
1077
1088
  ];
1078
- var forEachOperation = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc, fn) => {
1089
+ var forEachOperation = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc, fn) => {
1079
1090
  const paths = doc.paths;
1080
1091
  if (paths === null || typeof paths !== "object") {
1081
1092
  return;
@@ -1096,7 +1107,7 @@ var forEachOperation = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc, fn) => {
1096
1107
  }, "forEachOperation");
1097
1108
 
1098
1109
  // src/document/walk-refs.ts
1099
- var walkRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((node, visit) => {
1110
+ var walkRefs = /* @__PURE__ */ chunkEV5I5HGT_js.__name((node, visit) => {
1100
1111
  if (node === null || typeof node !== "object") {
1101
1112
  return;
1102
1113
  }
@@ -1121,8 +1132,8 @@ var walkRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((node, visit) => {
1121
1132
  }, "walkRefs");
1122
1133
 
1123
1134
  // src/document/collect-usage.ts
1124
- var isPlainRecord2 = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isPlainRecord");
1125
- var collectUsage = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc, registry) => {
1135
+ var isPlainRecord2 = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isPlainRecord");
1136
+ var collectUsage = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc, registry) => {
1126
1137
  const classToDtoId = buildClassToDtoIdMap(doc);
1127
1138
  const knownIds = new Set(registry.ids());
1128
1139
  const inputExposedIds = collectInputExposedIds(doc, classToDtoId, knownIds);
@@ -1133,7 +1144,7 @@ var collectUsage = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc, registry) => {
1133
1144
  classToDtoId
1134
1145
  };
1135
1146
  }, "collectUsage");
1136
- var buildClassToDtoIdMap = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1147
+ var buildClassToDtoIdMap = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc) => {
1137
1148
  const map = /* @__PURE__ */ new Map();
1138
1149
  const schemas = doc.components?.schemas ?? {};
1139
1150
  for (const [className, schema] of Object.entries(schemas)) {
@@ -1145,14 +1156,14 @@ var buildClassToDtoIdMap = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1145
1156
  }
1146
1157
  return map;
1147
1158
  }, "buildClassToDtoIdMap");
1148
- var readMarker = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema) => {
1159
+ var readMarker = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema) => {
1149
1160
  if (!isPlainRecord2(schema)) {
1150
1161
  return void 0;
1151
1162
  }
1152
1163
  if (!isPlainRecord2(schema.properties)) {
1153
1164
  return void 0;
1154
1165
  }
1155
- const marker = schema.properties[chunkFKXVNCDD_js.ZOD_NEST_DTO_EXTENSION];
1166
+ const marker = schema.properties[chunkKNXYA5ER_js.ZOD_NEST_DTO_EXTENSION];
1156
1167
  if (!isZodDtoMarker(marker)) {
1157
1168
  return void 0;
1158
1169
  }
@@ -1160,7 +1171,7 @@ var readMarker = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema) => {
1160
1171
  dtoId: marker.dtoId
1161
1172
  };
1162
1173
  }, "readMarker");
1163
- var collectInputExposedIds = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc, classToDtoId, knownIds) => {
1174
+ var collectInputExposedIds = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc, classToDtoId, knownIds) => {
1164
1175
  const ids = /* @__PURE__ */ new Set();
1165
1176
  const paths = doc.paths ?? {};
1166
1177
  for (const pathItem of Object.values(paths)) {
@@ -1173,7 +1184,7 @@ var collectInputExposedIds = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc, class
1173
1184
  }
1174
1185
  return ids;
1175
1186
  }, "collectInputExposedIds");
1176
- var operationsOf = /* @__PURE__ */ chunk4RXGLSPP_js.__name((pathItem) => {
1187
+ var operationsOf = /* @__PURE__ */ chunkEV5I5HGT_js.__name((pathItem) => {
1177
1188
  const out = [];
1178
1189
  for (const method of HTTP_METHODS) {
1179
1190
  const op = pathItem[method];
@@ -1183,7 +1194,7 @@ var operationsOf = /* @__PURE__ */ chunk4RXGLSPP_js.__name((pathItem) => {
1183
1194
  }
1184
1195
  return out;
1185
1196
  }, "operationsOf");
1186
- var collectRefsFromOperation = /* @__PURE__ */ chunk4RXGLSPP_js.__name((operation, classToDtoId, knownIds, ids) => {
1197
+ var collectRefsFromOperation = /* @__PURE__ */ chunkEV5I5HGT_js.__name((operation, classToDtoId, knownIds, ids) => {
1187
1198
  if (isPlainRecord2(operation.requestBody)) {
1188
1199
  collectRefsFromContent(operation.requestBody.content, classToDtoId, knownIds, ids);
1189
1200
  }
@@ -1198,7 +1209,7 @@ var collectRefsFromOperation = /* @__PURE__ */ chunk4RXGLSPP_js.__name((operatio
1198
1209
  }
1199
1210
  }
1200
1211
  }, "collectRefsFromOperation");
1201
- var collectIdFromMarkerParam = /* @__PURE__ */ chunk4RXGLSPP_js.__name((param, ids) => {
1212
+ var collectIdFromMarkerParam = /* @__PURE__ */ chunkEV5I5HGT_js.__name((param, ids) => {
1202
1213
  if (param.__zodNestDto !== true) {
1203
1214
  return;
1204
1215
  }
@@ -1208,7 +1219,7 @@ var collectIdFromMarkerParam = /* @__PURE__ */ chunk4RXGLSPP_js.__name((param, i
1208
1219
  }
1209
1220
  ids.add(dtoId);
1210
1221
  }, "collectIdFromMarkerParam");
1211
- var collectRefsFromContent = /* @__PURE__ */ chunk4RXGLSPP_js.__name((content, classToDtoId, knownIds, ids) => {
1222
+ var collectRefsFromContent = /* @__PURE__ */ chunkEV5I5HGT_js.__name((content, classToDtoId, knownIds, ids) => {
1212
1223
  if (!isPlainRecord2(content)) {
1213
1224
  return;
1214
1225
  }
@@ -1219,15 +1230,15 @@ var collectRefsFromContent = /* @__PURE__ */ chunk4RXGLSPP_js.__name((content, c
1219
1230
  collectRefFromSchema(mediaType.schema, classToDtoId, knownIds, ids);
1220
1231
  }
1221
1232
  }, "collectRefsFromContent");
1222
- var collectRefFromSchema = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, classToDtoId, knownIds, ids) => {
1233
+ var collectRefFromSchema = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema, classToDtoId, knownIds, ids) => {
1223
1234
  if (!isPlainRecord2(schema)) {
1224
1235
  return;
1225
1236
  }
1226
1237
  walkRefs(schema, (ref) => {
1227
- if (!ref.startsWith(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX)) {
1238
+ if (!ref.startsWith(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX)) {
1228
1239
  return void 0;
1229
1240
  }
1230
- const className = ref.slice(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX.length);
1241
+ const className = ref.slice(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX.length);
1231
1242
  const renamed = classToDtoId.get(className);
1232
1243
  if (renamed !== void 0) {
1233
1244
  ids.add(renamed);
@@ -1237,7 +1248,7 @@ var collectRefFromSchema = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema, clas
1237
1248
  return void 0;
1238
1249
  });
1239
1250
  }, "collectRefFromSchema");
1240
- var collectOutputExposedIds = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc, classToDtoId, knownIds) => {
1251
+ var collectOutputExposedIds = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc, classToDtoId, knownIds) => {
1241
1252
  const ids = /* @__PURE__ */ new Set();
1242
1253
  const paths = doc.paths ?? {};
1243
1254
  for (const pathItem of Object.values(paths)) {
@@ -1250,7 +1261,7 @@ var collectOutputExposedIds = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc, clas
1250
1261
  }
1251
1262
  return ids;
1252
1263
  }, "collectOutputExposedIds");
1253
- var collectRefsFromResponses = /* @__PURE__ */ chunk4RXGLSPP_js.__name((responses, classToDtoId, knownIds, ids) => {
1264
+ var collectRefsFromResponses = /* @__PURE__ */ chunkEV5I5HGT_js.__name((responses, classToDtoId, knownIds, ids) => {
1254
1265
  if (!isPlainRecord2(responses)) {
1255
1266
  return;
1256
1267
  }
@@ -1263,9 +1274,9 @@ var collectRefsFromResponses = /* @__PURE__ */ chunk4RXGLSPP_js.__name((response
1263
1274
  }, "collectRefsFromResponses");
1264
1275
 
1265
1276
  // src/document/errors.ts
1266
- var ZodNestDocumentError = class extends chunkFKXVNCDD_js.ZodNestError {
1277
+ var ZodNestDocumentError = class extends chunkKNXYA5ER_js.ZodNestError {
1267
1278
  static {
1268
- chunk4RXGLSPP_js.__name(this, "ZodNestDocumentError");
1279
+ chunkEV5I5HGT_js.__name(this, "ZodNestDocumentError");
1269
1280
  }
1270
1281
  code;
1271
1282
  details;
@@ -1278,15 +1289,15 @@ var ZodNestDocumentError = class extends chunkFKXVNCDD_js.ZodNestError {
1278
1289
  };
1279
1290
 
1280
1291
  // src/document/dangling-refs.ts
1281
- var assertNoDanglingRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((params) => {
1292
+ var assertNoDanglingRefs = /* @__PURE__ */ chunkEV5I5HGT_js.__name((params) => {
1282
1293
  const { doc, collected } = params;
1283
1294
  const schemas = doc.components?.schemas ?? {};
1284
1295
  const dangling = [];
1285
1296
  walkRefs(doc, (ref) => {
1286
- if (!ref.startsWith(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX)) {
1297
+ if (!ref.startsWith(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX)) {
1287
1298
  return void 0;
1288
1299
  }
1289
- const target = ref.slice(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX.length);
1300
+ const target = ref.slice(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX.length);
1290
1301
  if (!(target in schemas)) {
1291
1302
  dangling.push(ref);
1292
1303
  }
@@ -1301,8 +1312,8 @@ ${lines.join("\n")}`, {
1301
1312
  dangling
1302
1313
  });
1303
1314
  }, "assertNoDanglingRefs");
1304
- var hintFor = /* @__PURE__ */ chunk4RXGLSPP_js.__name((ref, collected) => {
1305
- const id = ref.slice(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX.length);
1315
+ var hintFor = /* @__PURE__ */ chunkEV5I5HGT_js.__name((ref, collected) => {
1316
+ const id = ref.slice(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX.length);
1306
1317
  const usedInput = collected.inputExposedIds.has(id);
1307
1318
  const usedOutput = collected.outputExposedIds.has(id);
1308
1319
  if (usedInput && usedOutput) {
@@ -1318,8 +1329,8 @@ var hintFor = /* @__PURE__ */ chunk4RXGLSPP_js.__name((ref, collected) => {
1318
1329
  }, "hintFor");
1319
1330
 
1320
1331
  // src/document/expand-param-markers.ts
1321
- var isPlainRecord3 = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isPlainRecord");
1322
- var expandParamMarkers = /* @__PURE__ */ chunk4RXGLSPP_js.__name((params) => {
1332
+ var isPlainRecord3 = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isPlainRecord");
1333
+ var expandParamMarkers = /* @__PURE__ */ chunkEV5I5HGT_js.__name((params) => {
1323
1334
  const { doc, inputSchemas, outputSchemas } = params;
1324
1335
  const queryParamStyle = params.queryParamStyle ?? "expand";
1325
1336
  const schemas = doc.components?.schemas;
@@ -1345,7 +1356,7 @@ var expandParamMarkers = /* @__PURE__ */ chunk4RXGLSPP_js.__name((params) => {
1345
1356
  pruneOrphanObjectSchema(doc);
1346
1357
  }
1347
1358
  }, "expandParamMarkers");
1348
- var expandParameterList = /* @__PURE__ */ chunk4RXGLSPP_js.__name((parameters, context) => {
1359
+ var expandParameterList = /* @__PURE__ */ chunkEV5I5HGT_js.__name((parameters, context) => {
1349
1360
  let result;
1350
1361
  for (let i = 0; i < parameters.length; i++) {
1351
1362
  const param = parameters[i];
@@ -1363,7 +1374,7 @@ var expandParameterList = /* @__PURE__ */ chunk4RXGLSPP_js.__name((parameters, c
1363
1374
  }
1364
1375
  return result ?? parameters;
1365
1376
  }, "expandParameterList");
1366
- var resolveMarker = /* @__PURE__ */ chunk4RXGLSPP_js.__name((marker, body, context) => {
1377
+ var resolveMarker = /* @__PURE__ */ chunkEV5I5HGT_js.__name((marker, body, context) => {
1367
1378
  const useRef = marker.ref ?? context.queryParamStyle === "ref";
1368
1379
  if (marker.in === "query" && useRef && context.componentIds.has(marker.dtoId)) {
1369
1380
  return [
@@ -1372,7 +1383,7 @@ var resolveMarker = /* @__PURE__ */ chunk4RXGLSPP_js.__name((marker, body, conte
1372
1383
  }
1373
1384
  return expandOne(marker, body);
1374
1385
  }, "resolveMarker");
1375
- var buildRefQueryParam = /* @__PURE__ */ chunk4RXGLSPP_js.__name((marker, body) => {
1386
+ var buildRefQueryParam = /* @__PURE__ */ chunkEV5I5HGT_js.__name((marker, body) => {
1376
1387
  const required = isPlainRecord3(body) && Array.isArray(body.required) && body.required.length > 0;
1377
1388
  return {
1378
1389
  name: marker.dtoId,
@@ -1381,11 +1392,11 @@ var buildRefQueryParam = /* @__PURE__ */ chunk4RXGLSPP_js.__name((marker, body)
1381
1392
  style: "form",
1382
1393
  explode: true,
1383
1394
  schema: {
1384
- $ref: `${chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX}${marker.dtoId}`
1395
+ $ref: `${chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX}${marker.dtoId}`
1385
1396
  }
1386
1397
  };
1387
1398
  }, "buildRefQueryParam");
1388
- var readMarker2 = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => {
1399
+ var readMarker2 = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => {
1389
1400
  if (!isPlainRecord3(value)) {
1390
1401
  return void 0;
1391
1402
  }
@@ -1406,7 +1417,7 @@ var readMarker2 = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => {
1406
1417
  }
1407
1418
  return value;
1408
1419
  }, "readMarker");
1409
- var expandOne = /* @__PURE__ */ chunk4RXGLSPP_js.__name((marker, body) => {
1420
+ var expandOne = /* @__PURE__ */ chunkEV5I5HGT_js.__name((marker, body) => {
1410
1421
  if (!isPlainRecord3(body) || !isPlainRecord3(body.properties)) {
1411
1422
  throw new ZodNestDocumentError("UNEXPANDABLE_PARAM_DTO", `Cannot expand \`@${capitalize(marker.in)}() x: ${marker.dtoId}\` \u2014 the DTO's schema is not an object with \`properties\`. Non-body parameter DTOs must be object schemas; arrays, unions, primitives, etc. cannot be split into individual parameters. Use \`@Body()\` for non-object DTOs, or restructure the schema as an object whose fields become the params.`, {
1412
1423
  dtoId: marker.dtoId,
@@ -1425,7 +1436,7 @@ var expandOne = /* @__PURE__ */ chunk4RXGLSPP_js.__name((marker, body) => {
1425
1436
  }
1426
1437
  return out;
1427
1438
  }, "expandOne");
1428
- var collectRequired = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => {
1439
+ var collectRequired = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => {
1429
1440
  if (!Array.isArray(value)) {
1430
1441
  return /* @__PURE__ */ new Set();
1431
1442
  }
@@ -1437,7 +1448,7 @@ var collectRequired = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => {
1437
1448
  }
1438
1449
  return out;
1439
1450
  }, "collectRequired");
1440
- var buildParameter = /* @__PURE__ */ chunk4RXGLSPP_js.__name((marker, name, schema, required) => {
1451
+ var buildParameter = /* @__PURE__ */ chunkEV5I5HGT_js.__name((marker, name, schema, required) => {
1441
1452
  let effectiveRequired = required;
1442
1453
  if (marker.in === "path" && !effectiveRequired) {
1443
1454
  console.warn(`[zod-nest] Path parameter \`${name}\` on DTO \`${marker.dtoId}\` is marked optional in the Zod schema; OpenAPI 3.1 requires path parameters to be required. Coercing \`required: true\` so the emitted document is spec-valid. Fix by removing \`.optional()\` / \`.nullish()\` from the field, or by switching the decorator to @Query() / @Headers() if the field is genuinely optional.`);
@@ -1450,14 +1461,14 @@ var buildParameter = /* @__PURE__ */ chunk4RXGLSPP_js.__name((marker, name, sche
1450
1461
  schema
1451
1462
  };
1452
1463
  }, "buildParameter");
1453
- var capitalize = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => value.charAt(0).toUpperCase() + value.slice(1), "capitalize");
1454
- var pruneOrphanObjectSchema = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1464
+ var capitalize = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => value.charAt(0).toUpperCase() + value.slice(1), "capitalize");
1465
+ var pruneOrphanObjectSchema = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc) => {
1455
1466
  const schemas = doc.components?.schemas;
1456
1467
  if (schemas === void 0 || !Object.prototype.hasOwnProperty.call(schemas, "Object")) {
1457
1468
  return;
1458
1469
  }
1459
1470
  let referenced = false;
1460
- const targetRef = `${chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX}Object`;
1471
+ const targetRef = `${chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX}Object`;
1461
1472
  walkRefs(doc, (ref) => {
1462
1473
  if (ref === targetRef) {
1463
1474
  referenced = true;
@@ -1470,12 +1481,12 @@ var pruneOrphanObjectSchema = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1470
1481
  }, "pruneOrphanObjectSchema");
1471
1482
 
1472
1483
  // src/document/expose-closure.ts
1473
- var extendExposureViaRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((collected, inputSchemas, outputSchemas) => ({
1484
+ var extendExposureViaRefs = /* @__PURE__ */ chunkEV5I5HGT_js.__name((collected, inputSchemas, outputSchemas) => ({
1474
1485
  ...collected,
1475
1486
  inputExposedIds: closeOverRefs(collected.inputExposedIds, inputSchemas),
1476
1487
  outputExposedIds: closeOverRefs(collected.outputExposedIds, outputSchemas)
1477
1488
  }), "extendExposureViaRefs");
1478
- var closeOverRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((seed, bodies) => {
1489
+ var closeOverRefs = /* @__PURE__ */ chunkEV5I5HGT_js.__name((seed, bodies) => {
1479
1490
  const out = new Set(seed);
1480
1491
  const queue = [
1481
1492
  ...seed
@@ -1487,10 +1498,10 @@ var closeOverRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((seed, bodies) => {
1487
1498
  continue;
1488
1499
  }
1489
1500
  walkRefs(body, (ref) => {
1490
- if (!ref.startsWith(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX)) {
1501
+ if (!ref.startsWith(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX)) {
1491
1502
  return void 0;
1492
1503
  }
1493
- const target = ref.slice(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX.length);
1504
+ const target = ref.slice(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX.length);
1494
1505
  if (out.has(target)) {
1495
1506
  return void 0;
1496
1507
  }
@@ -1506,7 +1517,7 @@ var closeOverRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((seed, bodies) => {
1506
1517
  var OUTPUT_SUFFIX = "Output";
1507
1518
 
1508
1519
  // src/document/inline-anon.ts
1509
- var inlineAnonymousBodies = /* @__PURE__ */ chunk4RXGLSPP_js.__name(({ doc, registry }) => {
1520
+ var inlineAnonymousBodies = /* @__PURE__ */ chunkEV5I5HGT_js.__name(({ doc, registry }) => {
1510
1521
  const anonIds = registry.anonymousIds();
1511
1522
  if (anonIds.length === 0) {
1512
1523
  return;
@@ -1523,7 +1534,7 @@ var inlineAnonymousBodies = /* @__PURE__ */ chunk4RXGLSPP_js.__name(({ doc, regi
1523
1534
  ]) {
1524
1535
  const body = schemas[key];
1525
1536
  if (isPlainRecord4(body)) {
1526
- bodyByRef.set(`${chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX}${key}`, body);
1537
+ bodyByRef.set(`${chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX}${key}`, body);
1527
1538
  }
1528
1539
  }
1529
1540
  }
@@ -1535,10 +1546,10 @@ var inlineAnonymousBodies = /* @__PURE__ */ chunk4RXGLSPP_js.__name(({ doc, regi
1535
1546
  }
1536
1547
  inlineRefs(doc.paths, bodyByRef);
1537
1548
  for (const ref of bodyByRef.keys()) {
1538
- delete schemas[ref.slice(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX.length)];
1549
+ delete schemas[ref.slice(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX.length)];
1539
1550
  }
1540
1551
  }, "inlineAnonymousBodies");
1541
- var refsWithin = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schemas, bodyByRef) => {
1552
+ var refsWithin = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schemas, bodyByRef) => {
1542
1553
  const found = /* @__PURE__ */ new Set();
1543
1554
  walkRefs(schemas, (ref) => {
1544
1555
  if (bodyByRef.has(ref)) {
@@ -1548,8 +1559,8 @@ var refsWithin = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schemas, bodyByRef) =>
1548
1559
  });
1549
1560
  return found;
1550
1561
  }, "refsWithin");
1551
- var isPlainRecord4 = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isPlainRecord");
1552
- var inlineRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((node, bodyByRef) => {
1562
+ var isPlainRecord4 = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isPlainRecord");
1563
+ var inlineRefs = /* @__PURE__ */ chunkEV5I5HGT_js.__name((node, bodyByRef) => {
1553
1564
  if (Array.isArray(node)) {
1554
1565
  for (const item of node) {
1555
1566
  inlineRefs(item, bodyByRef);
@@ -1574,7 +1585,7 @@ var inlineRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((node, bodyByRef) => {
1574
1585
  inlineRefs(value, bodyByRef);
1575
1586
  }
1576
1587
  }, "inlineRefs");
1577
- var mergeSchemas = /* @__PURE__ */ chunk4RXGLSPP_js.__name((params) => {
1588
+ var mergeSchemas = /* @__PURE__ */ chunkEV5I5HGT_js.__name((params) => {
1578
1589
  const { doc, inputSchemas, outputSchemas, collected, collisions } = params;
1579
1590
  const schemas = ensureComponentsSchemas(doc);
1580
1591
  const renames = /* @__PURE__ */ new Map();
@@ -1609,14 +1620,14 @@ var mergeSchemas = /* @__PURE__ */ chunk4RXGLSPP_js.__name((params) => {
1609
1620
  renames
1610
1621
  };
1611
1622
  }, "mergeSchemas");
1612
- var ensureComponentsSchemas = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1623
+ var ensureComponentsSchemas = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc) => {
1613
1624
  const components = doc.components ?? {};
1614
1625
  doc.components = components;
1615
1626
  const schemas = components.schemas ?? {};
1616
1627
  components.schemas = schemas;
1617
1628
  return schemas;
1618
1629
  }, "ensureComponentsSchemas");
1619
- var applyTruthTable = /* @__PURE__ */ chunk4RXGLSPP_js.__name((params) => {
1630
+ var applyTruthTable = /* @__PURE__ */ chunkEV5I5HGT_js.__name((params) => {
1620
1631
  const { schemas, id, inputExposed, outputExposed, inputBody, outputBody } = params;
1621
1632
  const { divergentOutputIds, foreignKeys } = params;
1622
1633
  if (inputExposed && !outputExposed) {
@@ -1635,7 +1646,7 @@ var applyTruthTable = /* @__PURE__ */ chunk4RXGLSPP_js.__name((params) => {
1635
1646
  writeOrThrowAmbiguous(schemas, `${id}${OUTPUT_SUFFIX}`, outputBody, foreignKeys);
1636
1647
  divergentOutputIds.add(id);
1637
1648
  }, "applyTruthTable");
1638
- var collectForeignKeys = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schemas) => {
1649
+ var collectForeignKeys = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schemas) => {
1639
1650
  const foreign = /* @__PURE__ */ new Set();
1640
1651
  for (const [key, body] of Object.entries(schemas)) {
1641
1652
  if (!isMarkerPlaceholder(body)) {
@@ -1644,7 +1655,7 @@ var collectForeignKeys = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schemas) => {
1644
1655
  }
1645
1656
  return foreign;
1646
1657
  }, "collectForeignKeys");
1647
- var writeOrThrowAmbiguous = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schemas, key, body, foreignKeys) => {
1658
+ var writeOrThrowAmbiguous = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schemas, key, body, foreignKeys) => {
1648
1659
  if (body === void 0) {
1649
1660
  return;
1650
1661
  }
@@ -1659,13 +1670,13 @@ var writeOrThrowAmbiguous = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schemas, ke
1659
1670
  preexisting
1660
1671
  });
1661
1672
  }, "writeOrThrowAmbiguous");
1662
- var ambiguousRenameHint = /* @__PURE__ */ chunk4RXGLSPP_js.__name((key, preexisting) => {
1673
+ var ambiguousRenameHint = /* @__PURE__ */ chunkEV5I5HGT_js.__name((key, preexisting) => {
1663
1674
  if (preexisting) {
1664
1675
  return `\`${key}\` was already populated before zod-nest emitted anything. On NestJS 12+ the usual cause is the native Standard Schema path \u2014 \`@Body({ schema })\`, \`@Query({ schema })\` or \`@ApiResponse({ standardSchema })\` \u2014 which makes @nestjs/swagger emit the component itself, in its OpenAPI 3.0 shape. Route the schema through \`createZodDto\` / \`@ZodBody\` / \`@ZodResponse\` instead, or drop \`applyZodNest\` and let Nest own the whole document. A hand-authored component or a doc pre-pass under the same name does this too.`;
1665
1676
  }
1666
1677
  return "Two registered ids resolved to the same key \u2014 most often an `<Id>Output` sibling from a diverging input/output schema colliding with a DTO explicitly registered as `<Id>Output`. Rename one of them, or set a distinct `options.id`.";
1667
1678
  }, "ambiguousRenameHint");
1668
- var isMarkerPlaceholder = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => {
1679
+ var isMarkerPlaceholder = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => {
1669
1680
  if (value === null || typeof value !== "object") {
1670
1681
  return false;
1671
1682
  }
@@ -1673,10 +1684,10 @@ var isMarkerPlaceholder = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => {
1673
1684
  if (properties === null || typeof properties !== "object") {
1674
1685
  return false;
1675
1686
  }
1676
- const marker = properties[chunkFKXVNCDD_js.ZOD_NEST_DTO_EXTENSION];
1687
+ const marker = properties[chunkKNXYA5ER_js.ZOD_NEST_DTO_EXTENSION];
1677
1688
  return isZodDtoMarker(marker);
1678
1689
  }, "isMarkerPlaceholder");
1679
- var canonicalEqual = /* @__PURE__ */ chunk4RXGLSPP_js.__name((a, b) => {
1690
+ var canonicalEqual = /* @__PURE__ */ chunkEV5I5HGT_js.__name((a, b) => {
1680
1691
  if (a === b) {
1681
1692
  return true;
1682
1693
  }
@@ -1685,7 +1696,7 @@ var canonicalEqual = /* @__PURE__ */ chunk4RXGLSPP_js.__name((a, b) => {
1685
1696
  }
1686
1697
  return stringify__default.default(a) === stringify__default.default(b);
1687
1698
  }, "canonicalEqual");
1688
- var applyCollisionDecoration = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schemas, collisions, divergentOutputIds) => {
1699
+ var applyCollisionDecoration = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schemas, collisions, divergentOutputIds) => {
1689
1700
  for (const [id] of collisions) {
1690
1701
  decorateIfPresent(schemas, id);
1691
1702
  if (divergentOutputIds.has(id)) {
@@ -1693,18 +1704,18 @@ var applyCollisionDecoration = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schemas,
1693
1704
  }
1694
1705
  }
1695
1706
  }, "applyCollisionDecoration");
1696
- var decorateIfPresent = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schemas, key) => {
1707
+ var decorateIfPresent = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schemas, key) => {
1697
1708
  if (!(key in schemas)) {
1698
1709
  return;
1699
1710
  }
1700
1711
  schemas[key] = {
1701
1712
  description: `ERROR: duplicate zod-nest id <${key.replace(/Output$/, "")}>`,
1702
- [chunkFKXVNCDD_js.ZOD_NEST_ERROR_EXTENSION]: chunkFKXVNCDD_js.ZOD_NEST_ERROR_DUPLICATE_ID
1713
+ [chunkKNXYA5ER_js.ZOD_NEST_ERROR_EXTENSION]: chunkKNXYA5ER_js.ZOD_NEST_ERROR_DUPLICATE_ID
1703
1714
  };
1704
1715
  }, "decorateIfPresent");
1705
1716
 
1706
1717
  // src/document/ref-titles.ts
1707
- var applyRefTitles = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1718
+ var applyRefTitles = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc) => {
1708
1719
  const schemas = doc.components?.schemas;
1709
1720
  if (schemas === void 0) {
1710
1721
  return;
@@ -1721,8 +1732,8 @@ var applyRefTitles = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1721
1732
  addRefTitles(doc.paths, titleById);
1722
1733
  addRefTitles(schemas, titleById);
1723
1734
  }, "applyRefTitles");
1724
- var isPlainRecord5 = /* @__PURE__ */ chunk4RXGLSPP_js.__name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isPlainRecord");
1725
- var addRefTitles = /* @__PURE__ */ chunk4RXGLSPP_js.__name((node, titleById) => {
1735
+ var isPlainRecord5 = /* @__PURE__ */ chunkEV5I5HGT_js.__name((value) => value !== null && typeof value === "object" && !Array.isArray(value), "isPlainRecord");
1736
+ var addRefTitles = /* @__PURE__ */ chunkEV5I5HGT_js.__name((node, titleById) => {
1726
1737
  if (Array.isArray(node)) {
1727
1738
  for (const item of node) {
1728
1739
  addRefTitles(item, titleById);
@@ -1733,8 +1744,8 @@ var addRefTitles = /* @__PURE__ */ chunk4RXGLSPP_js.__name((node, titleById) =>
1733
1744
  return;
1734
1745
  }
1735
1746
  const ref = node.$ref;
1736
- if (typeof ref === "string" && ref.startsWith(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX) && node.title === void 0) {
1737
- const title = titleById.get(ref.slice(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX.length));
1747
+ if (typeof ref === "string" && ref.startsWith(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX) && node.title === void 0) {
1748
+ const title = titleById.get(ref.slice(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX.length));
1738
1749
  if (title !== void 0) {
1739
1750
  node.title = title;
1740
1751
  }
@@ -1745,19 +1756,19 @@ var addRefTitles = /* @__PURE__ */ chunk4RXGLSPP_js.__name((node, titleById) =>
1745
1756
  }, "addRefTitles");
1746
1757
 
1747
1758
  // src/document/rewrite-refs.ts
1748
- var rewriteRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((params) => {
1759
+ var rewriteRefs = /* @__PURE__ */ chunkEV5I5HGT_js.__name((params) => {
1749
1760
  const { doc, renames, divergentOutputIds } = params;
1750
1761
  if (renames.size > 0) {
1751
1762
  walkRefs(doc, (ref) => {
1752
- if (!ref.startsWith(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX)) {
1763
+ if (!ref.startsWith(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX)) {
1753
1764
  return void 0;
1754
1765
  }
1755
- const target = ref.slice(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX.length);
1766
+ const target = ref.slice(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX.length);
1756
1767
  const renamed = renames.get(target);
1757
1768
  if (renamed === void 0) {
1758
1769
  return void 0;
1759
1770
  }
1760
- return `${chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX}${renamed}`;
1771
+ return `${chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX}${renamed}`;
1761
1772
  });
1762
1773
  }
1763
1774
  if (divergentOutputIds.size === 0) {
@@ -1771,7 +1782,7 @@ var rewriteRefs = /* @__PURE__ */ chunk4RXGLSPP_js.__name((params) => {
1771
1782
  rewriteResponseSubtree(pathItem, divergentOutputIds);
1772
1783
  }
1773
1784
  }, "rewriteRefs");
1774
- var rewriteResponseSubtree = /* @__PURE__ */ chunk4RXGLSPP_js.__name((pathItem, divergentOutputIds) => {
1785
+ var rewriteResponseSubtree = /* @__PURE__ */ chunkEV5I5HGT_js.__name((pathItem, divergentOutputIds) => {
1775
1786
  for (const method of HTTP_METHODS) {
1776
1787
  const op = pathItem[method];
1777
1788
  if (op === null || typeof op !== "object") {
@@ -1782,20 +1793,20 @@ var rewriteResponseSubtree = /* @__PURE__ */ chunk4RXGLSPP_js.__name((pathItem,
1782
1793
  continue;
1783
1794
  }
1784
1795
  walkRefs(responses, (ref) => {
1785
- if (!ref.startsWith(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX)) {
1796
+ if (!ref.startsWith(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX)) {
1786
1797
  return void 0;
1787
1798
  }
1788
- const target = ref.slice(chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX.length);
1799
+ const target = ref.slice(chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX.length);
1789
1800
  if (!divergentOutputIds.has(target)) {
1790
1801
  return void 0;
1791
1802
  }
1792
- return `${chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX}${target}${OUTPUT_SUFFIX}`;
1803
+ return `${chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX}${target}${OUTPUT_SUFFIX}`;
1793
1804
  });
1794
1805
  }
1795
1806
  }, "rewriteResponseSubtree");
1796
1807
 
1797
1808
  // src/document/strip-markers.ts
1798
- var stripMarkers = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1809
+ var stripMarkers = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc) => {
1799
1810
  const schemas = doc.components?.schemas;
1800
1811
  if (schemas !== void 0) {
1801
1812
  for (const schema of Object.values(schemas)) {
@@ -1805,7 +1816,7 @@ var stripMarkers = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1805
1816
  }
1806
1817
  stripMarkerParameters(doc);
1807
1818
  }, "stripMarkers");
1808
- var dropJsonSchemaMetadata = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema) => {
1819
+ var dropJsonSchemaMetadata = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema) => {
1809
1820
  if (schema === null || typeof schema !== "object") {
1810
1821
  return;
1811
1822
  }
@@ -1813,7 +1824,7 @@ var dropJsonSchemaMetadata = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema) =>
1813
1824
  delete body.$schema;
1814
1825
  delete body.$id;
1815
1826
  }, "dropJsonSchemaMetadata");
1816
- var stripMarkerParameters = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1827
+ var stripMarkerParameters = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc) => {
1817
1828
  forEachOperation(doc, (op) => {
1818
1829
  const parameters = op.parameters;
1819
1830
  if (!Array.isArray(parameters)) {
@@ -1822,7 +1833,7 @@ var stripMarkerParameters = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc) => {
1822
1833
  op.parameters = parameters.filter((param) => !isZodDtoMarker(param));
1823
1834
  });
1824
1835
  }, "stripMarkerParameters");
1825
- var stripMarkerFromSchema = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema) => {
1836
+ var stripMarkerFromSchema = /* @__PURE__ */ chunkEV5I5HGT_js.__name((schema) => {
1826
1837
  if (schema === null || typeof schema !== "object") {
1827
1838
  return;
1828
1839
  }
@@ -1831,17 +1842,17 @@ var stripMarkerFromSchema = /* @__PURE__ */ chunk4RXGLSPP_js.__name((schema) =>
1831
1842
  return;
1832
1843
  }
1833
1844
  const props = properties;
1834
- if (!(chunkFKXVNCDD_js.ZOD_NEST_DTO_EXTENSION in props)) {
1845
+ if (!(chunkKNXYA5ER_js.ZOD_NEST_DTO_EXTENSION in props)) {
1835
1846
  return;
1836
1847
  }
1837
- delete props[chunkFKXVNCDD_js.ZOD_NEST_DTO_EXTENSION];
1848
+ delete props[chunkKNXYA5ER_js.ZOD_NEST_DTO_EXTENSION];
1838
1849
  if (Object.keys(props).length === 0) {
1839
1850
  delete schema.properties;
1840
1851
  }
1841
1852
  }, "stripMarkerFromSchema");
1842
1853
 
1843
1854
  // src/document/apply-zod-nest.ts
1844
- var withForcedExposure = /* @__PURE__ */ chunk4RXGLSPP_js.__name((collected, registry) => {
1855
+ var withForcedExposure = /* @__PURE__ */ chunkEV5I5HGT_js.__name((collected, registry) => {
1845
1856
  const forced = registry.forceExposedIds();
1846
1857
  if (forced.length === 0) {
1847
1858
  return collected;
@@ -1856,8 +1867,8 @@ var withForcedExposure = /* @__PURE__ */ chunk4RXGLSPP_js.__name((collected, reg
1856
1867
  };
1857
1868
  }, "withForcedExposure");
1858
1869
  var OPENAPI_VERSION = "3.1.0";
1859
- var applyZodNest = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc, opts = {}) => {
1860
- const registry = opts.registry ?? chunkFKXVNCDD_js.defaultRegistry;
1870
+ var applyZodNest = /* @__PURE__ */ chunkEV5I5HGT_js.__name((doc, opts = {}) => {
1871
+ const registry = opts.registry ?? chunkKNXYA5ER_js.defaultRegistry;
1861
1872
  const collected = collectUsage(doc, registry);
1862
1873
  const exposed = withForcedExposure(collected, registry);
1863
1874
  const { inputSchemas, outputSchemas } = bulkEmit({
@@ -1902,71 +1913,71 @@ var applyZodNest = /* @__PURE__ */ chunk4RXGLSPP_js.__name((doc, opts = {}) => {
1902
1913
 
1903
1914
  Object.defineProperty(exports, "COMPONENTS_SCHEMAS_PREFIX", {
1904
1915
  enumerable: true,
1905
- get: function () { return chunkFKXVNCDD_js.COMPONENTS_SCHEMAS_PREFIX; }
1916
+ get: function () { return chunkKNXYA5ER_js.COMPONENTS_SCHEMAS_PREFIX; }
1906
1917
  });
1907
1918
  Object.defineProperty(exports, "ZOD_DTO_SYMBOL", {
1908
1919
  enumerable: true,
1909
- get: function () { return chunkFKXVNCDD_js.ZOD_DTO_SYMBOL; }
1920
+ get: function () { return chunkKNXYA5ER_js.ZOD_DTO_SYMBOL; }
1910
1921
  });
1911
1922
  Object.defineProperty(exports, "ZOD_NEST_DTO_EXTENSION", {
1912
1923
  enumerable: true,
1913
- get: function () { return chunkFKXVNCDD_js.ZOD_NEST_DTO_EXTENSION; }
1924
+ get: function () { return chunkKNXYA5ER_js.ZOD_NEST_DTO_EXTENSION; }
1914
1925
  });
1915
1926
  Object.defineProperty(exports, "ZOD_NEST_ERROR_DUPLICATE_ID", {
1916
1927
  enumerable: true,
1917
- get: function () { return chunkFKXVNCDD_js.ZOD_NEST_ERROR_DUPLICATE_ID; }
1928
+ get: function () { return chunkKNXYA5ER_js.ZOD_NEST_ERROR_DUPLICATE_ID; }
1918
1929
  });
1919
1930
  Object.defineProperty(exports, "ZOD_NEST_ERROR_EXTENSION", {
1920
1931
  enumerable: true,
1921
- get: function () { return chunkFKXVNCDD_js.ZOD_NEST_ERROR_EXTENSION; }
1932
+ get: function () { return chunkKNXYA5ER_js.ZOD_NEST_ERROR_EXTENSION; }
1922
1933
  });
1923
1934
  Object.defineProperty(exports, "ZodNestError", {
1924
1935
  enumerable: true,
1925
- get: function () { return chunkFKXVNCDD_js.ZodNestError; }
1936
+ get: function () { return chunkKNXYA5ER_js.ZodNestError; }
1926
1937
  });
1927
1938
  Object.defineProperty(exports, "ZodNestUnrepresentableError", {
1928
1939
  enumerable: true,
1929
- get: function () { return chunkFKXVNCDD_js.ZodNestUnrepresentableError; }
1940
+ get: function () { return chunkKNXYA5ER_js.ZodNestUnrepresentableError; }
1930
1941
  });
1931
1942
  Object.defineProperty(exports, "ZodValidationException", {
1932
1943
  enumerable: true,
1933
- get: function () { return chunkFKXVNCDD_js.ZodValidationException; }
1944
+ get: function () { return chunkKNXYA5ER_js.ZodValidationException; }
1934
1945
  });
1935
1946
  Object.defineProperty(exports, "createRegistry", {
1936
1947
  enumerable: true,
1937
- get: function () { return chunkFKXVNCDD_js.createRegistry; }
1948
+ get: function () { return chunkKNXYA5ER_js.createRegistry; }
1938
1949
  });
1939
1950
  Object.defineProperty(exports, "defaultRegistry", {
1940
1951
  enumerable: true,
1941
- get: function () { return chunkFKXVNCDD_js.defaultRegistry; }
1952
+ get: function () { return chunkKNXYA5ER_js.defaultRegistry; }
1942
1953
  });
1943
1954
  Object.defineProperty(exports, "extend", {
1944
1955
  enumerable: true,
1945
- get: function () { return chunkFKXVNCDD_js.extend; }
1956
+ get: function () { return chunkKNXYA5ER_js.extend; }
1946
1957
  });
1947
1958
  Object.defineProperty(exports, "getLineage", {
1948
1959
  enumerable: true,
1949
- get: function () { return chunkFKXVNCDD_js.getLineage; }
1960
+ get: function () { return chunkKNXYA5ER_js.getLineage; }
1950
1961
  });
1951
1962
  Object.defineProperty(exports, "isZodDto", {
1952
1963
  enumerable: true,
1953
- get: function () { return chunkFKXVNCDD_js.isZodDto; }
1964
+ get: function () { return chunkKNXYA5ER_js.isZodDto; }
1954
1965
  });
1955
1966
  Object.defineProperty(exports, "isZodSchema", {
1956
1967
  enumerable: true,
1957
- get: function () { return chunkFKXVNCDD_js.isZodSchema; }
1968
+ get: function () { return chunkKNXYA5ER_js.isZodSchema; }
1958
1969
  });
1959
1970
  Object.defineProperty(exports, "registerSchema", {
1960
1971
  enumerable: true,
1961
- get: function () { return chunkFKXVNCDD_js.registerSchema; }
1972
+ get: function () { return chunkKNXYA5ER_js.registerSchema; }
1962
1973
  });
1963
1974
  Object.defineProperty(exports, "toOpenApi", {
1964
1975
  enumerable: true,
1965
- get: function () { return chunkFKXVNCDD_js.toOpenApi; }
1976
+ get: function () { return chunkKNXYA5ER_js.toOpenApi; }
1966
1977
  });
1967
1978
  Object.defineProperty(exports, "overrideJSONSchema", {
1968
1979
  enumerable: true,
1969
- get: function () { return chunk4RXGLSPP_js.overrideJSONSchema; }
1980
+ get: function () { return chunkEV5I5HGT_js.overrideJSONSchema; }
1970
1981
  });
1971
1982
  exports.DEFAULT_MAX_LOGGED_VALUE_BYTES = DEFAULT_MAX_LOGGED_VALUE_BYTES;
1972
1983
  exports.DEFAULT_REDACT_KEYS = DEFAULT_REDACT_KEYS;