@nestia/sdk 3.17.0 → 4.0.0-dev.20241010

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 (36) hide show
  1. package/README.md +0 -1
  2. package/lib/analyses/ExceptionAnalyzer.js +0 -142
  3. package/lib/analyses/ExceptionAnalyzer.js.map +1 -1
  4. package/lib/analyses/TypedHttpRouteAnalyzer.js +10 -6
  5. package/lib/analyses/TypedHttpRouteAnalyzer.js.map +1 -1
  6. package/lib/executable/internal/NestiaConfigLoader.js +247 -127
  7. package/lib/executable/internal/NestiaConfigLoader.js.map +1 -1
  8. package/lib/generates/SwaggerGenerator.js +46 -11
  9. package/lib/generates/SwaggerGenerator.js.map +1 -1
  10. package/lib/generates/internal/E2eFileProgrammer.js +4 -4
  11. package/lib/generates/internal/E2eFileProgrammer.js.map +1 -1
  12. package/lib/generates/internal/SdkDistributionComposer.js +34 -5
  13. package/lib/generates/internal/SdkDistributionComposer.js.map +1 -1
  14. package/lib/generates/internal/SdkHttpFunctionProgrammer.js +6 -6
  15. package/lib/generates/internal/SdkHttpFunctionProgrammer.js.map +1 -1
  16. package/lib/generates/internal/SdkHttpNamespaceProgrammer.js +7 -7
  17. package/lib/generates/internal/SdkHttpNamespaceProgrammer.js.map +1 -1
  18. package/lib/generates/internal/SdkHttpSimulationProgrammer.js +22 -19
  19. package/lib/generates/internal/SdkHttpSimulationProgrammer.js.map +1 -1
  20. package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.js +4 -4
  21. package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.js.map +1 -1
  22. package/lib/transformers/ISdkOperationTransformerContext.d.ts +1 -1
  23. package/lib/transformers/SdkOperationProgrammer.js +12 -6
  24. package/lib/transformers/SdkOperationProgrammer.js.map +1 -1
  25. package/lib/transformers/SdkOperationTransformer.js +3 -3
  26. package/lib/transformers/SdkOperationTransformer.js.map +1 -1
  27. package/package.json +7 -7
  28. package/src/analyses/TypedHttpRouteAnalyzer.ts +10 -6
  29. package/src/generates/internal/E2eFileProgrammer.ts +8 -4
  30. package/src/generates/internal/SdkHttpFunctionProgrammer.ts +14 -7
  31. package/src/generates/internal/SdkHttpNamespaceProgrammer.ts +14 -8
  32. package/src/generates/internal/SdkHttpSimulationProgrammer.ts +15 -10
  33. package/src/generates/internal/SdkWebSocketNamespaceProgrammer.ts +8 -4
  34. package/src/transformers/ISdkOperationTransformerContext.ts +1 -1
  35. package/src/transformers/SdkOperationProgrammer.ts +12 -9
  36. package/src/transformers/SdkOperationTransformer.ts +3 -3
@@ -36,6 +36,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
36
36
  };
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.NestiaConfigLoader = void 0;
39
+ const __$assertGuard = __importStar(require("typia/lib/internal/$assertGuard.js"));
40
+ const __$accessExpressionAsString = __importStar(require("typia/lib/internal/$accessExpressionAsString.js"));
39
41
  const NoTransformConfigurationError_1 = require("@nestia/core/lib/decorators/NoTransformConfigurationError");
40
42
  const fs_1 = __importDefault(require("fs"));
41
43
  const path_1 = __importDefault(require("path"));
@@ -60,23 +62,26 @@ var NestiaConfigLoader;
60
62
  throw new Error(`Unable to find "${file}" file.`);
61
63
  NoTransformConfigurationError_1.NoTransformConfigurationError.throws = false;
62
64
  const plugins = [
63
- ...(() => { const $guard = typia_1.default
64
- .assert.guard; const $io0 = input => true; const $ao0 = (input, _path, _exceptionable = true) => true; const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem)); let _errorFactory; return (input, errorFactory) => {
65
+ ...(() => { const $io0 = input => true; const $ao0 = (input, _path, _exceptionable = true) => true; const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io0(elem)); let _errorFactory; return (input, errorFactory) => {
65
66
  if (false === __is(input)) {
66
67
  _errorFactory = errorFactory;
67
- ((input, _path, _exceptionable = true) => (Array.isArray(input) || $guard(true, {
68
+ ((input, _path, _exceptionable = true) => (Array.isArray(input) || __$assertGuard.$assertGuard(true, {
69
+ method: "typia\r\n .assert",
68
70
  path: _path + "",
69
71
  expected: "Array<object>",
70
72
  value: input
71
- }, _errorFactory)) && input.every((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(true, {
73
+ }, _errorFactory)) && input.every((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || __$assertGuard.$assertGuard(true, {
74
+ method: "typia\r\n .assert",
72
75
  path: _path + "[" + _index2 + "]",
73
76
  expected: "object",
74
77
  value: elem
75
- }, _errorFactory)) && $ao0(elem, _path + "[" + _index2 + "]", true) || $guard(true, {
78
+ }, _errorFactory)) && $ao0(elem, _path + "[" + _index2 + "]", true) || __$assertGuard.$assertGuard(true, {
79
+ method: "typia\r\n .assert",
76
80
  path: _path + "[" + _index2 + "]",
77
81
  expected: "object",
78
82
  value: elem
79
- }, _errorFactory)) || $guard(true, {
83
+ }, _errorFactory)) || __$assertGuard.$assertGuard(true, {
84
+ method: "typia\r\n .assert",
80
85
  path: _path + "",
81
86
  expected: "Array<object>",
82
87
  value: input
@@ -101,7 +106,7 @@ var NestiaConfigLoader;
101
106
  ? instance
102
107
  : [instance];
103
108
  try {
104
- return (() => { const $guard = typia_1.default.assert.guard; const $join = typia_1.default.assert.join; const $io0 = input => null !== input.input && undefined !== input.input && ("function" === typeof input.input || "string" === typeof input.input || (Array.isArray(input.input) && input.input.every(elem => "string" === typeof elem) || "object" === typeof input.input && null !== input.input && $io1(input.input))) && (undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $io2(input.swagger)) && (undefined === input.output || "string" === typeof input.output) && (undefined === input.distribute || "string" === typeof input.distribute) && (undefined === input.simulate || "boolean" === typeof input.simulate) && (undefined === input.e2e || "string" === typeof input.e2e) && (undefined === input.propagate || "boolean" === typeof input.propagate) && (undefined === input.clone || "boolean" === typeof input.clone) && (undefined === input.primitive || "boolean" === typeof input.primitive) && (undefined === input.assert || "boolean" === typeof input.assert) && (undefined === input.json || "boolean" === typeof input.json); const $io1 = input => Array.isArray(input.include) && input.include.every(elem => "string" === typeof elem) && (undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem)); const $io2 = input => "string" === typeof input.output && (undefined === input.openapi || "2.0" === input.openapi || "3.0" === input.openapi || "3.1" === input.openapi) && (undefined === input.beautify || "number" === typeof input.beautify || "boolean" === typeof input.beautify) && (undefined === input.additional || "boolean" === typeof input.additional) && (undefined === input.info || "object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) && $io3(input.info)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.security || "object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) && $io9(input.security)) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io20(elem))) && (undefined === input.decompose || "boolean" === typeof input.decompose); const $io3 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io4(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io5(input.license)) && (undefined === input.version || "string" === typeof input.version); const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email && /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email)); const $io5 = input => "string" === typeof input.name && (undefined === input.identifier || "string" === typeof input.identifier) && (undefined === input.url || "string" === typeof input.url); const $io6 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io7(input.variables)); const $io7 = input => Object.keys(input).every(key => {
109
+ return (() => { const $io0 = input => null !== input.input && undefined !== input.input && ("function" === typeof input.input || "string" === typeof input.input || (Array.isArray(input.input) && input.input.every(elem => "string" === typeof elem) || "object" === typeof input.input && null !== input.input && $io1(input.input))) && (undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $io2(input.swagger)) && (undefined === input.output || "string" === typeof input.output) && (undefined === input.distribute || "string" === typeof input.distribute) && (undefined === input.simulate || "boolean" === typeof input.simulate) && (undefined === input.e2e || "string" === typeof input.e2e) && (undefined === input.propagate || "boolean" === typeof input.propagate) && (undefined === input.clone || "boolean" === typeof input.clone) && (undefined === input.primitive || "boolean" === typeof input.primitive) && (undefined === input.assert || "boolean" === typeof input.assert) && (undefined === input.json || "boolean" === typeof input.json); const $io1 = input => Array.isArray(input.include) && input.include.every(elem => "string" === typeof elem) && (undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(elem => "string" === typeof elem)); const $io2 = input => "string" === typeof input.output && (undefined === input.openapi || "2.0" === input.openapi || "3.0" === input.openapi || "3.1" === input.openapi) && (undefined === input.beautify || "number" === typeof input.beautify || "boolean" === typeof input.beautify) && (undefined === input.additional || "boolean" === typeof input.additional) && (undefined === input.info || "object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) && $io3(input.info)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.security || "object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) && $io9(input.security)) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "object" === typeof elem && null !== elem && $io20(elem))) && (undefined === input.decompose || "boolean" === typeof input.decompose); const $io3 = input => (undefined === input.title || "string" === typeof input.title) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io4(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io5(input.license)) && (undefined === input.version || "string" === typeof input.version); const $io4 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.email || "string" === typeof input.email && /^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email)); const $io5 = input => "string" === typeof input.name && (undefined === input.identifier || "string" === typeof input.identifier) && (undefined === input.url || "string" === typeof input.url); const $io6 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description) && (undefined === input.variables || "object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) && $io7(input.variables)); const $io7 = input => Object.keys(input).every(key => {
105
110
  const value = input[key];
106
111
  if (undefined === value)
107
112
  return true;
@@ -129,239 +134,298 @@ var NestiaConfigLoader;
129
134
  return $io19(input);
130
135
  else
131
136
  return false;
132
- })(); const $ao0 = (input, _path, _exceptionable = true) => (null !== input.input || $guard(_exceptionable, {
137
+ })(); const $ao0 = (input, _path, _exceptionable = true) => (null !== input.input || __$assertGuard.$assertGuard(_exceptionable, {
138
+ method: "typia.assert",
133
139
  path: _path + ".input",
134
140
  expected: "(Array<string> | INestiaConfig.IInput | string)",
135
141
  value: input.input
136
- }, _errorFactory)) && (undefined !== input.input || $guard(_exceptionable, {
142
+ }, _errorFactory)) && (undefined !== input.input || __$assertGuard.$assertGuard(_exceptionable, {
143
+ method: "typia.assert",
137
144
  path: _path + ".input",
138
145
  expected: "(Array<string> | INestiaConfig.IInput | string)",
139
146
  value: input.input
140
- }, _errorFactory)) && ("function" === typeof input.input || "string" === typeof input.input || (Array.isArray(input.input) && input.input.every((elem, _index9) => "string" === typeof elem || $guard(_exceptionable, {
147
+ }, _errorFactory)) && ("function" === typeof input.input || "string" === typeof input.input || (Array.isArray(input.input) && input.input.every((elem, _index9) => "string" === typeof elem || __$assertGuard.$assertGuard(_exceptionable, {
148
+ method: "typia.assert",
141
149
  path: _path + ".input[" + _index9 + "]",
142
150
  expected: "string",
143
151
  value: elem
144
- }, _errorFactory)) || "object" === typeof input.input && null !== input.input && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
152
+ }, _errorFactory)) || "object" === typeof input.input && null !== input.input && $ao1(input.input, _path + ".input", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
153
+ method: "typia.assert",
145
154
  path: _path + ".input",
146
155
  expected: "(Array<string> | INestiaConfig.IInput | string)",
147
156
  value: input.input
148
- }, _errorFactory)) || $guard(_exceptionable, {
157
+ }, _errorFactory)) || __$assertGuard.$assertGuard(_exceptionable, {
158
+ method: "typia.assert",
149
159
  path: _path + ".input",
150
160
  expected: "(Array<string> | INestiaConfig.IInput | string)",
151
161
  value: input.input
152
- }, _errorFactory)) && (undefined === input.swagger || ("object" === typeof input.swagger && null !== input.swagger || $guard(_exceptionable, {
162
+ }, _errorFactory)) && (undefined === input.swagger || ("object" === typeof input.swagger && null !== input.swagger || __$assertGuard.$assertGuard(_exceptionable, {
163
+ method: "typia.assert",
153
164
  path: _path + ".swagger",
154
165
  expected: "(INestiaConfig.ISwaggerConfig | undefined)",
155
166
  value: input.swagger
156
- }, _errorFactory)) && $ao2(input.swagger, _path + ".swagger", true && _exceptionable) || $guard(_exceptionable, {
167
+ }, _errorFactory)) && $ao2(input.swagger, _path + ".swagger", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
168
+ method: "typia.assert",
157
169
  path: _path + ".swagger",
158
170
  expected: "(INestiaConfig.ISwaggerConfig | undefined)",
159
171
  value: input.swagger
160
- }, _errorFactory)) && (undefined === input.output || "string" === typeof input.output || $guard(_exceptionable, {
172
+ }, _errorFactory)) && (undefined === input.output || "string" === typeof input.output || __$assertGuard.$assertGuard(_exceptionable, {
173
+ method: "typia.assert",
161
174
  path: _path + ".output",
162
175
  expected: "(string | undefined)",
163
176
  value: input.output
164
- }, _errorFactory)) && (undefined === input.distribute || "string" === typeof input.distribute || $guard(_exceptionable, {
177
+ }, _errorFactory)) && (undefined === input.distribute || "string" === typeof input.distribute || __$assertGuard.$assertGuard(_exceptionable, {
178
+ method: "typia.assert",
165
179
  path: _path + ".distribute",
166
180
  expected: "(string | undefined)",
167
181
  value: input.distribute
168
- }, _errorFactory)) && (undefined === input.simulate || "boolean" === typeof input.simulate || $guard(_exceptionable, {
182
+ }, _errorFactory)) && (undefined === input.simulate || "boolean" === typeof input.simulate || __$assertGuard.$assertGuard(_exceptionable, {
183
+ method: "typia.assert",
169
184
  path: _path + ".simulate",
170
185
  expected: "(boolean | undefined)",
171
186
  value: input.simulate
172
- }, _errorFactory)) && (undefined === input.e2e || "string" === typeof input.e2e || $guard(_exceptionable, {
187
+ }, _errorFactory)) && (undefined === input.e2e || "string" === typeof input.e2e || __$assertGuard.$assertGuard(_exceptionable, {
188
+ method: "typia.assert",
173
189
  path: _path + ".e2e",
174
190
  expected: "(string | undefined)",
175
191
  value: input.e2e
176
- }, _errorFactory)) && (undefined === input.propagate || "boolean" === typeof input.propagate || $guard(_exceptionable, {
192
+ }, _errorFactory)) && (undefined === input.propagate || "boolean" === typeof input.propagate || __$assertGuard.$assertGuard(_exceptionable, {
193
+ method: "typia.assert",
177
194
  path: _path + ".propagate",
178
195
  expected: "(boolean | undefined)",
179
196
  value: input.propagate
180
- }, _errorFactory)) && (undefined === input.clone || "boolean" === typeof input.clone || $guard(_exceptionable, {
197
+ }, _errorFactory)) && (undefined === input.clone || "boolean" === typeof input.clone || __$assertGuard.$assertGuard(_exceptionable, {
198
+ method: "typia.assert",
181
199
  path: _path + ".clone",
182
200
  expected: "(boolean | undefined)",
183
201
  value: input.clone
184
- }, _errorFactory)) && (undefined === input.primitive || "boolean" === typeof input.primitive || $guard(_exceptionable, {
202
+ }, _errorFactory)) && (undefined === input.primitive || "boolean" === typeof input.primitive || __$assertGuard.$assertGuard(_exceptionable, {
203
+ method: "typia.assert",
185
204
  path: _path + ".primitive",
186
205
  expected: "(boolean | undefined)",
187
206
  value: input.primitive
188
- }, _errorFactory)) && (undefined === input.assert || "boolean" === typeof input.assert || $guard(_exceptionable, {
207
+ }, _errorFactory)) && (undefined === input.assert || "boolean" === typeof input.assert || __$assertGuard.$assertGuard(_exceptionable, {
208
+ method: "typia.assert",
189
209
  path: _path + ".assert",
190
210
  expected: "(boolean | undefined)",
191
211
  value: input.assert
192
- }, _errorFactory)) && (undefined === input.json || "boolean" === typeof input.json || $guard(_exceptionable, {
212
+ }, _errorFactory)) && (undefined === input.json || "boolean" === typeof input.json || __$assertGuard.$assertGuard(_exceptionable, {
213
+ method: "typia.assert",
193
214
  path: _path + ".json",
194
215
  expected: "(boolean | undefined)",
195
216
  value: input.json
196
- }, _errorFactory)); const $ao1 = (input, _path, _exceptionable = true) => ((Array.isArray(input.include) || $guard(_exceptionable, {
217
+ }, _errorFactory)); const $ao1 = (input, _path, _exceptionable = true) => ((Array.isArray(input.include) || __$assertGuard.$assertGuard(_exceptionable, {
218
+ method: "typia.assert",
197
219
  path: _path + ".include",
198
220
  expected: "Array<string>",
199
221
  value: input.include
200
- }, _errorFactory)) && input.include.every((elem, _index10) => "string" === typeof elem || $guard(_exceptionable, {
222
+ }, _errorFactory)) && input.include.every((elem, _index10) => "string" === typeof elem || __$assertGuard.$assertGuard(_exceptionable, {
223
+ method: "typia.assert",
201
224
  path: _path + ".include[" + _index10 + "]",
202
225
  expected: "string",
203
226
  value: elem
204
- }, _errorFactory)) || $guard(_exceptionable, {
227
+ }, _errorFactory)) || __$assertGuard.$assertGuard(_exceptionable, {
228
+ method: "typia.assert",
205
229
  path: _path + ".include",
206
230
  expected: "Array<string>",
207
231
  value: input.include
208
- }, _errorFactory)) && (undefined === input.exclude || (Array.isArray(input.exclude) || $guard(_exceptionable, {
232
+ }, _errorFactory)) && (undefined === input.exclude || (Array.isArray(input.exclude) || __$assertGuard.$assertGuard(_exceptionable, {
233
+ method: "typia.assert",
209
234
  path: _path + ".exclude",
210
235
  expected: "(Array<string> | undefined)",
211
236
  value: input.exclude
212
- }, _errorFactory)) && input.exclude.every((elem, _index11) => "string" === typeof elem || $guard(_exceptionable, {
237
+ }, _errorFactory)) && input.exclude.every((elem, _index11) => "string" === typeof elem || __$assertGuard.$assertGuard(_exceptionable, {
238
+ method: "typia.assert",
213
239
  path: _path + ".exclude[" + _index11 + "]",
214
240
  expected: "string",
215
241
  value: elem
216
- }, _errorFactory)) || $guard(_exceptionable, {
242
+ }, _errorFactory)) || __$assertGuard.$assertGuard(_exceptionable, {
243
+ method: "typia.assert",
217
244
  path: _path + ".exclude",
218
245
  expected: "(Array<string> | undefined)",
219
246
  value: input.exclude
220
- }, _errorFactory)); const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.output || $guard(_exceptionable, {
247
+ }, _errorFactory)); const $ao2 = (input, _path, _exceptionable = true) => ("string" === typeof input.output || __$assertGuard.$assertGuard(_exceptionable, {
248
+ method: "typia.assert",
221
249
  path: _path + ".output",
222
250
  expected: "string",
223
251
  value: input.output
224
- }, _errorFactory)) && (undefined === input.openapi || "2.0" === input.openapi || "3.0" === input.openapi || "3.1" === input.openapi || $guard(_exceptionable, {
252
+ }, _errorFactory)) && (undefined === input.openapi || "2.0" === input.openapi || "3.0" === input.openapi || "3.1" === input.openapi || __$assertGuard.$assertGuard(_exceptionable, {
253
+ method: "typia.assert",
225
254
  path: _path + ".openapi",
226
255
  expected: "(\"2.0\" | \"3.0\" | \"3.1\" | undefined)",
227
256
  value: input.openapi
228
- }, _errorFactory)) && (undefined === input.beautify || "number" === typeof input.beautify || "boolean" === typeof input.beautify || $guard(_exceptionable, {
257
+ }, _errorFactory)) && (undefined === input.beautify || "number" === typeof input.beautify || "boolean" === typeof input.beautify || __$assertGuard.$assertGuard(_exceptionable, {
258
+ method: "typia.assert",
229
259
  path: _path + ".beautify",
230
260
  expected: "(boolean | number | undefined)",
231
261
  value: input.beautify
232
- }, _errorFactory)) && (undefined === input.additional || "boolean" === typeof input.additional || $guard(_exceptionable, {
262
+ }, _errorFactory)) && (undefined === input.additional || "boolean" === typeof input.additional || __$assertGuard.$assertGuard(_exceptionable, {
263
+ method: "typia.assert",
233
264
  path: _path + ".additional",
234
265
  expected: "(boolean | undefined)",
235
266
  value: input.additional
236
- }, _errorFactory)) && (undefined === input.info || ("object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) || $guard(_exceptionable, {
267
+ }, _errorFactory)) && (undefined === input.info || ("object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) || __$assertGuard.$assertGuard(_exceptionable, {
268
+ method: "typia.assert",
237
269
  path: _path + ".info",
238
270
  expected: "(Partial<OpenApi.IDocument.IInfo> | undefined)",
239
271
  value: input.info
240
- }, _errorFactory)) && $ao3(input.info, _path + ".info", true && _exceptionable) || $guard(_exceptionable, {
272
+ }, _errorFactory)) && $ao3(input.info, _path + ".info", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
273
+ method: "typia.assert",
241
274
  path: _path + ".info",
242
275
  expected: "(Partial<OpenApi.IDocument.IInfo> | undefined)",
243
276
  value: input.info
244
- }, _errorFactory)) && (undefined === input.servers || (Array.isArray(input.servers) || $guard(_exceptionable, {
277
+ }, _errorFactory)) && (undefined === input.servers || (Array.isArray(input.servers) || __$assertGuard.$assertGuard(_exceptionable, {
278
+ method: "typia.assert",
245
279
  path: _path + ".servers",
246
280
  expected: "(Array<OpenApi.IServer> | undefined)",
247
281
  value: input.servers
248
- }, _errorFactory)) && input.servers.every((elem, _index12) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
282
+ }, _errorFactory)) && input.servers.every((elem, _index12) => ("object" === typeof elem && null !== elem || __$assertGuard.$assertGuard(_exceptionable, {
283
+ method: "typia.assert",
249
284
  path: _path + ".servers[" + _index12 + "]",
250
285
  expected: "OpenApi.IServer",
251
286
  value: elem
252
- }, _errorFactory)) && $ao6(elem, _path + ".servers[" + _index12 + "]", true && _exceptionable) || $guard(_exceptionable, {
287
+ }, _errorFactory)) && $ao6(elem, _path + ".servers[" + _index12 + "]", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
288
+ method: "typia.assert",
253
289
  path: _path + ".servers[" + _index12 + "]",
254
290
  expected: "OpenApi.IServer",
255
291
  value: elem
256
- }, _errorFactory)) || $guard(_exceptionable, {
292
+ }, _errorFactory)) || __$assertGuard.$assertGuard(_exceptionable, {
293
+ method: "typia.assert",
257
294
  path: _path + ".servers",
258
295
  expected: "(Array<OpenApi.IServer> | undefined)",
259
296
  value: input.servers
260
- }, _errorFactory)) && (undefined === input.security || ("object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) || $guard(_exceptionable, {
297
+ }, _errorFactory)) && (undefined === input.security || ("object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) || __$assertGuard.$assertGuard(_exceptionable, {
298
+ method: "typia.assert",
261
299
  path: _path + ".security",
262
300
  expected: "(Record<string, OpenApi.ISecurityScheme> | undefined)",
263
301
  value: input.security
264
- }, _errorFactory)) && $ao9(input.security, _path + ".security", true && _exceptionable) || $guard(_exceptionable, {
302
+ }, _errorFactory)) && $ao9(input.security, _path + ".security", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
303
+ method: "typia.assert",
265
304
  path: _path + ".security",
266
305
  expected: "(Record<string, OpenApi.ISecurityScheme> | undefined)",
267
306
  value: input.security
268
- }, _errorFactory)) && (undefined === input.tags || (Array.isArray(input.tags) || $guard(_exceptionable, {
307
+ }, _errorFactory)) && (undefined === input.tags || (Array.isArray(input.tags) || __$assertGuard.$assertGuard(_exceptionable, {
308
+ method: "typia.assert",
269
309
  path: _path + ".tags",
270
310
  expected: "(Array<OpenApi.IDocument.ITag> | undefined)",
271
311
  value: input.tags
272
- }, _errorFactory)) && input.tags.every((elem, _index13) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
312
+ }, _errorFactory)) && input.tags.every((elem, _index13) => ("object" === typeof elem && null !== elem || __$assertGuard.$assertGuard(_exceptionable, {
313
+ method: "typia.assert",
273
314
  path: _path + ".tags[" + _index13 + "]",
274
315
  expected: "OpenApi.IDocument.ITag",
275
316
  value: elem
276
- }, _errorFactory)) && $ao20(elem, _path + ".tags[" + _index13 + "]", true && _exceptionable) || $guard(_exceptionable, {
317
+ }, _errorFactory)) && $ao20(elem, _path + ".tags[" + _index13 + "]", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
318
+ method: "typia.assert",
277
319
  path: _path + ".tags[" + _index13 + "]",
278
320
  expected: "OpenApi.IDocument.ITag",
279
321
  value: elem
280
- }, _errorFactory)) || $guard(_exceptionable, {
322
+ }, _errorFactory)) || __$assertGuard.$assertGuard(_exceptionable, {
323
+ method: "typia.assert",
281
324
  path: _path + ".tags",
282
325
  expected: "(Array<OpenApi.IDocument.ITag> | undefined)",
283
326
  value: input.tags
284
- }, _errorFactory)) && (undefined === input.decompose || "boolean" === typeof input.decompose || $guard(_exceptionable, {
327
+ }, _errorFactory)) && (undefined === input.decompose || "boolean" === typeof input.decompose || __$assertGuard.$assertGuard(_exceptionable, {
328
+ method: "typia.assert",
285
329
  path: _path + ".decompose",
286
330
  expected: "(boolean | undefined)",
287
331
  value: input.decompose
288
- }, _errorFactory)); const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
332
+ }, _errorFactory)); const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || __$assertGuard.$assertGuard(_exceptionable, {
333
+ method: "typia.assert",
289
334
  path: _path + ".title",
290
335
  expected: "(string | undefined)",
291
336
  value: input.title
292
- }, _errorFactory)) && (undefined === input.summary || "string" === typeof input.summary || $guard(_exceptionable, {
337
+ }, _errorFactory)) && (undefined === input.summary || "string" === typeof input.summary || __$assertGuard.$assertGuard(_exceptionable, {
338
+ method: "typia.assert",
293
339
  path: _path + ".summary",
294
340
  expected: "(string | undefined)",
295
341
  value: input.summary
296
- }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
342
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __$assertGuard.$assertGuard(_exceptionable, {
343
+ method: "typia.assert",
297
344
  path: _path + ".description",
298
345
  expected: "(string | undefined)",
299
346
  value: input.description
300
- }, _errorFactory)) && (undefined === input.termsOfService || "string" === typeof input.termsOfService || $guard(_exceptionable, {
347
+ }, _errorFactory)) && (undefined === input.termsOfService || "string" === typeof input.termsOfService || __$assertGuard.$assertGuard(_exceptionable, {
348
+ method: "typia.assert",
301
349
  path: _path + ".termsOfService",
302
350
  expected: "(string | undefined)",
303
351
  value: input.termsOfService
304
- }, _errorFactory)) && (undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $guard(_exceptionable, {
352
+ }, _errorFactory)) && (undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || __$assertGuard.$assertGuard(_exceptionable, {
353
+ method: "typia.assert",
305
354
  path: _path + ".contact",
306
355
  expected: "(OpenApi.IDocument.IContact | undefined)",
307
356
  value: input.contact
308
- }, _errorFactory)) && $ao4(input.contact, _path + ".contact", true && _exceptionable) || $guard(_exceptionable, {
357
+ }, _errorFactory)) && $ao4(input.contact, _path + ".contact", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
358
+ method: "typia.assert",
309
359
  path: _path + ".contact",
310
360
  expected: "(OpenApi.IDocument.IContact | undefined)",
311
361
  value: input.contact
312
- }, _errorFactory)) && (undefined === input.license || ("object" === typeof input.license && null !== input.license || $guard(_exceptionable, {
362
+ }, _errorFactory)) && (undefined === input.license || ("object" === typeof input.license && null !== input.license || __$assertGuard.$assertGuard(_exceptionable, {
363
+ method: "typia.assert",
313
364
  path: _path + ".license",
314
365
  expected: "(OpenApi.IDocument.ILicense | undefined)",
315
366
  value: input.license
316
- }, _errorFactory)) && $ao5(input.license, _path + ".license", true && _exceptionable) || $guard(_exceptionable, {
367
+ }, _errorFactory)) && $ao5(input.license, _path + ".license", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
368
+ method: "typia.assert",
317
369
  path: _path + ".license",
318
370
  expected: "(OpenApi.IDocument.ILicense | undefined)",
319
371
  value: input.license
320
- }, _errorFactory)) && (undefined === input.version || "string" === typeof input.version || $guard(_exceptionable, {
372
+ }, _errorFactory)) && (undefined === input.version || "string" === typeof input.version || __$assertGuard.$assertGuard(_exceptionable, {
373
+ method: "typia.assert",
321
374
  path: _path + ".version",
322
375
  expected: "(string | undefined)",
323
376
  value: input.version
324
- }, _errorFactory)); const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
377
+ }, _errorFactory)); const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || __$assertGuard.$assertGuard(_exceptionable, {
378
+ method: "typia.assert",
325
379
  path: _path + ".name",
326
380
  expected: "(string | undefined)",
327
381
  value: input.name
328
- }, _errorFactory)) && (undefined === input.url || "string" === typeof input.url || $guard(_exceptionable, {
382
+ }, _errorFactory)) && (undefined === input.url || "string" === typeof input.url || __$assertGuard.$assertGuard(_exceptionable, {
383
+ method: "typia.assert",
329
384
  path: _path + ".url",
330
385
  expected: "(string | undefined)",
331
386
  value: input.url
332
- }, _errorFactory)) && (undefined === input.email || "string" === typeof input.email && (/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email) || $guard(_exceptionable, {
387
+ }, _errorFactory)) && (undefined === input.email || "string" === typeof input.email && (/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i.test(input.email) || __$assertGuard.$assertGuard(_exceptionable, {
388
+ method: "typia.assert",
333
389
  path: _path + ".email",
334
390
  expected: "string & Format<\"email\">",
335
391
  value: input.email
336
- }, _errorFactory)) || $guard(_exceptionable, {
392
+ }, _errorFactory)) || __$assertGuard.$assertGuard(_exceptionable, {
393
+ method: "typia.assert",
337
394
  path: _path + ".email",
338
395
  expected: "((string & Format<\"email\">) | undefined)",
339
396
  value: input.email
340
- }, _errorFactory)); const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
397
+ }, _errorFactory)); const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || __$assertGuard.$assertGuard(_exceptionable, {
398
+ method: "typia.assert",
341
399
  path: _path + ".name",
342
400
  expected: "string",
343
401
  value: input.name
344
- }, _errorFactory)) && (undefined === input.identifier || "string" === typeof input.identifier || $guard(_exceptionable, {
402
+ }, _errorFactory)) && (undefined === input.identifier || "string" === typeof input.identifier || __$assertGuard.$assertGuard(_exceptionable, {
403
+ method: "typia.assert",
345
404
  path: _path + ".identifier",
346
405
  expected: "(string | undefined)",
347
406
  value: input.identifier
348
- }, _errorFactory)) && (undefined === input.url || "string" === typeof input.url || $guard(_exceptionable, {
407
+ }, _errorFactory)) && (undefined === input.url || "string" === typeof input.url || __$assertGuard.$assertGuard(_exceptionable, {
408
+ method: "typia.assert",
349
409
  path: _path + ".url",
350
410
  expected: "(string | undefined)",
351
411
  value: input.url
352
- }, _errorFactory)); const $ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input.url || $guard(_exceptionable, {
412
+ }, _errorFactory)); const $ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input.url || __$assertGuard.$assertGuard(_exceptionable, {
413
+ method: "typia.assert",
353
414
  path: _path + ".url",
354
415
  expected: "string",
355
416
  value: input.url
356
- }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
417
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __$assertGuard.$assertGuard(_exceptionable, {
418
+ method: "typia.assert",
357
419
  path: _path + ".description",
358
420
  expected: "(string | undefined)",
359
421
  value: input.description
360
- }, _errorFactory)) && (undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || $guard(_exceptionable, {
422
+ }, _errorFactory)) && (undefined === input.variables || ("object" === typeof input.variables && null !== input.variables && false === Array.isArray(input.variables) || __$assertGuard.$assertGuard(_exceptionable, {
423
+ method: "typia.assert",
361
424
  path: _path + ".variables",
362
425
  expected: "(Record<string, OpenApi.IServer.IVariable> | undefined)",
363
426
  value: input.variables
364
- }, _errorFactory)) && $ao7(input.variables, _path + ".variables", true && _exceptionable) || $guard(_exceptionable, {
427
+ }, _errorFactory)) && $ao7(input.variables, _path + ".variables", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
428
+ method: "typia.assert",
365
429
  path: _path + ".variables",
366
430
  expected: "(Record<string, OpenApi.IServer.IVariable> | undefined)",
367
431
  value: input.variables
@@ -369,32 +433,39 @@ var NestiaConfigLoader;
369
433
  const value = input[key];
370
434
  if (undefined === value)
371
435
  return true;
372
- return ("object" === typeof value && null !== value || $guard(_exceptionable, {
373
- path: _path + $join(key),
436
+ return ("object" === typeof value && null !== value || __$assertGuard.$assertGuard(_exceptionable, {
437
+ method: "typia.assert",
438
+ path: _path + __$accessExpressionAsString.$accessExpressionAsString(key),
374
439
  expected: "OpenApi.IServer.IVariable",
375
440
  value: value
376
- }, _errorFactory)) && $ao8(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
377
- path: _path + $join(key),
441
+ }, _errorFactory)) && $ao8(value, _path + __$accessExpressionAsString.$accessExpressionAsString(key), true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
442
+ method: "typia.assert",
443
+ path: _path + __$accessExpressionAsString.$accessExpressionAsString(key),
378
444
  expected: "OpenApi.IServer.IVariable",
379
445
  value: value
380
446
  }, _errorFactory);
381
- }); const $ao8 = (input, _path, _exceptionable = true) => ("string" === typeof input["default"] || $guard(_exceptionable, {
447
+ }); const $ao8 = (input, _path, _exceptionable = true) => ("string" === typeof input["default"] || __$assertGuard.$assertGuard(_exceptionable, {
448
+ method: "typia.assert",
382
449
  path: _path + "[\"default\"]",
383
450
  expected: "string",
384
451
  value: input["default"]
385
- }, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || $guard(_exceptionable, {
452
+ }, _errorFactory)) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || __$assertGuard.$assertGuard(_exceptionable, {
453
+ method: "typia.assert",
386
454
  path: _path + "[\"enum\"]",
387
455
  expected: "(Array<string> | undefined)",
388
456
  value: input["enum"]
389
- }, _errorFactory)) && input["enum"].every((elem, _index14) => "string" === typeof elem || $guard(_exceptionable, {
457
+ }, _errorFactory)) && input["enum"].every((elem, _index14) => "string" === typeof elem || __$assertGuard.$assertGuard(_exceptionable, {
458
+ method: "typia.assert",
390
459
  path: _path + "[\"enum\"][" + _index14 + "]",
391
460
  expected: "string",
392
461
  value: elem
393
- }, _errorFactory)) || $guard(_exceptionable, {
462
+ }, _errorFactory)) || __$assertGuard.$assertGuard(_exceptionable, {
463
+ method: "typia.assert",
394
464
  path: _path + "[\"enum\"]",
395
465
  expected: "(Array<string> | undefined)",
396
466
  value: input["enum"]
397
- }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
467
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __$assertGuard.$assertGuard(_exceptionable, {
468
+ method: "typia.assert",
398
469
  path: _path + ".description",
399
470
  expected: "(string | undefined)",
400
471
  value: input.description
@@ -402,124 +473,154 @@ var NestiaConfigLoader;
402
473
  const value = input[key];
403
474
  if (undefined === value)
404
475
  return true;
405
- return ("object" === typeof value && null !== value || $guard(_exceptionable, {
406
- path: _path + $join(key),
476
+ return ("object" === typeof value && null !== value || __$assertGuard.$assertGuard(_exceptionable, {
477
+ method: "typia.assert",
478
+ path: _path + __$accessExpressionAsString.$accessExpressionAsString(key),
407
479
  expected: "(OpenApi.ISecurityScheme.IApiKey | OpenApi.ISecurityScheme.IHttpBasic | OpenApi.ISecurityScheme.IHttpBearer | OpenApi.ISecurityScheme.IOAuth2 | OpenApi.ISecurityScheme.IOpenId)",
408
480
  value: value
409
- }, _errorFactory)) && $au0(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
410
- path: _path + $join(key),
481
+ }, _errorFactory)) && $au0(value, _path + __$accessExpressionAsString.$accessExpressionAsString(key), true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
482
+ method: "typia.assert",
483
+ path: _path + __$accessExpressionAsString.$accessExpressionAsString(key),
411
484
  expected: "(OpenApi.ISecurityScheme.IApiKey | OpenApi.ISecurityScheme.IHttpBasic | OpenApi.ISecurityScheme.IHttpBearer | OpenApi.ISecurityScheme.IOAuth2 | OpenApi.ISecurityScheme.IOpenId)",
412
485
  value: value
413
486
  }, _errorFactory);
414
- }); const $ao10 = (input, _path, _exceptionable = true) => ("apiKey" === input.type || $guard(_exceptionable, {
487
+ }); const $ao10 = (input, _path, _exceptionable = true) => ("apiKey" === input.type || __$assertGuard.$assertGuard(_exceptionable, {
488
+ method: "typia.assert",
415
489
  path: _path + ".type",
416
490
  expected: "\"apiKey\"",
417
491
  value: input.type
418
- }, _errorFactory)) && (undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || $guard(_exceptionable, {
492
+ }, _errorFactory)) && (undefined === input["in"] || "query" === input["in"] || "header" === input["in"] || "cookie" === input["in"] || __$assertGuard.$assertGuard(_exceptionable, {
493
+ method: "typia.assert",
419
494
  path: _path + "[\"in\"]",
420
495
  expected: "(\"cookie\" | \"header\" | \"query\" | undefined)",
421
496
  value: input["in"]
422
- }, _errorFactory)) && (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
497
+ }, _errorFactory)) && (undefined === input.name || "string" === typeof input.name || __$assertGuard.$assertGuard(_exceptionable, {
498
+ method: "typia.assert",
423
499
  path: _path + ".name",
424
500
  expected: "(string | undefined)",
425
501
  value: input.name
426
- }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
502
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __$assertGuard.$assertGuard(_exceptionable, {
503
+ method: "typia.assert",
427
504
  path: _path + ".description",
428
505
  expected: "(string | undefined)",
429
506
  value: input.description
430
- }, _errorFactory)); const $ao11 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
507
+ }, _errorFactory)); const $ao11 = (input, _path, _exceptionable = true) => ("http" === input.type || __$assertGuard.$assertGuard(_exceptionable, {
508
+ method: "typia.assert",
431
509
  path: _path + ".type",
432
510
  expected: "\"http\"",
433
511
  value: input.type
434
- }, _errorFactory)) && ("basic" === input.scheme || $guard(_exceptionable, {
512
+ }, _errorFactory)) && ("basic" === input.scheme || __$assertGuard.$assertGuard(_exceptionable, {
513
+ method: "typia.assert",
435
514
  path: _path + ".scheme",
436
515
  expected: "\"basic\"",
437
516
  value: input.scheme
438
- }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
517
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __$assertGuard.$assertGuard(_exceptionable, {
518
+ method: "typia.assert",
439
519
  path: _path + ".description",
440
520
  expected: "(string | undefined)",
441
521
  value: input.description
442
- }, _errorFactory)); const $ao12 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
522
+ }, _errorFactory)); const $ao12 = (input, _path, _exceptionable = true) => ("http" === input.type || __$assertGuard.$assertGuard(_exceptionable, {
523
+ method: "typia.assert",
443
524
  path: _path + ".type",
444
525
  expected: "\"http\"",
445
526
  value: input.type
446
- }, _errorFactory)) && ("bearer" === input.scheme || $guard(_exceptionable, {
527
+ }, _errorFactory)) && ("bearer" === input.scheme || __$assertGuard.$assertGuard(_exceptionable, {
528
+ method: "typia.assert",
447
529
  path: _path + ".scheme",
448
530
  expected: "\"bearer\"",
449
531
  value: input.scheme
450
- }, _errorFactory)) && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat || $guard(_exceptionable, {
532
+ }, _errorFactory)) && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat || __$assertGuard.$assertGuard(_exceptionable, {
533
+ method: "typia.assert",
451
534
  path: _path + ".bearerFormat",
452
535
  expected: "(string | undefined)",
453
536
  value: input.bearerFormat
454
- }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
537
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __$assertGuard.$assertGuard(_exceptionable, {
538
+ method: "typia.assert",
455
539
  path: _path + ".description",
456
540
  expected: "(string | undefined)",
457
541
  value: input.description
458
- }, _errorFactory)); const $ao13 = (input, _path, _exceptionable = true) => ("oauth2" === input.type || $guard(_exceptionable, {
542
+ }, _errorFactory)); const $ao13 = (input, _path, _exceptionable = true) => ("oauth2" === input.type || __$assertGuard.$assertGuard(_exceptionable, {
543
+ method: "typia.assert",
459
544
  path: _path + ".type",
460
545
  expected: "\"oauth2\"",
461
546
  value: input.type
462
- }, _errorFactory)) && (("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || $guard(_exceptionable, {
547
+ }, _errorFactory)) && (("object" === typeof input.flows && null !== input.flows && false === Array.isArray(input.flows) || __$assertGuard.$assertGuard(_exceptionable, {
548
+ method: "typia.assert",
463
549
  path: _path + ".flows",
464
550
  expected: "OpenApi.ISecurityScheme.IOAuth2.IFlowSet",
465
551
  value: input.flows
466
- }, _errorFactory)) && $ao14(input.flows, _path + ".flows", true && _exceptionable) || $guard(_exceptionable, {
552
+ }, _errorFactory)) && $ao14(input.flows, _path + ".flows", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
553
+ method: "typia.assert",
467
554
  path: _path + ".flows",
468
555
  expected: "OpenApi.ISecurityScheme.IOAuth2.IFlowSet",
469
556
  value: input.flows
470
- }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
557
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __$assertGuard.$assertGuard(_exceptionable, {
558
+ method: "typia.assert",
471
559
  path: _path + ".description",
472
560
  expected: "(string | undefined)",
473
561
  value: input.description
474
- }, _errorFactory)); const $ao14 = (input, _path, _exceptionable = true) => (undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) || $guard(_exceptionable, {
562
+ }, _errorFactory)); const $ao14 = (input, _path, _exceptionable = true) => (undefined === input.authorizationCode || ("object" === typeof input.authorizationCode && null !== input.authorizationCode && false === Array.isArray(input.authorizationCode) || __$assertGuard.$assertGuard(_exceptionable, {
563
+ method: "typia.assert",
475
564
  path: _path + ".authorizationCode",
476
565
  expected: "(OpenApi.ISecurityScheme.IOAuth2.IFlow | undefined)",
477
566
  value: input.authorizationCode
478
- }, _errorFactory)) && $ao15(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || $guard(_exceptionable, {
567
+ }, _errorFactory)) && $ao15(input.authorizationCode, _path + ".authorizationCode", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
568
+ method: "typia.assert",
479
569
  path: _path + ".authorizationCode",
480
570
  expected: "(OpenApi.ISecurityScheme.IOAuth2.IFlow | undefined)",
481
571
  value: input.authorizationCode
482
- }, _errorFactory)) && (undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) || $guard(_exceptionable, {
572
+ }, _errorFactory)) && (undefined === input.implicit || ("object" === typeof input.implicit && null !== input.implicit && false === Array.isArray(input.implicit) || __$assertGuard.$assertGuard(_exceptionable, {
573
+ method: "typia.assert",
483
574
  path: _path + ".implicit",
484
575
  expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
485
576
  value: input.implicit
486
- }, _errorFactory)) && $ao17(input.implicit, _path + ".implicit", true && _exceptionable) || $guard(_exceptionable, {
577
+ }, _errorFactory)) && $ao17(input.implicit, _path + ".implicit", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
578
+ method: "typia.assert",
487
579
  path: _path + ".implicit",
488
580
  expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"tokenUrl\"> | undefined)",
489
581
  value: input.implicit
490
- }, _errorFactory)) && (undefined === input.password || ("object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) || $guard(_exceptionable, {
582
+ }, _errorFactory)) && (undefined === input.password || ("object" === typeof input.password && null !== input.password && false === Array.isArray(input.password) || __$assertGuard.$assertGuard(_exceptionable, {
583
+ method: "typia.assert",
491
584
  path: _path + ".password",
492
585
  expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
493
586
  value: input.password
494
- }, _errorFactory)) && $ao18(input.password, _path + ".password", true && _exceptionable) || $guard(_exceptionable, {
587
+ }, _errorFactory)) && $ao18(input.password, _path + ".password", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
588
+ method: "typia.assert",
495
589
  path: _path + ".password",
496
590
  expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
497
591
  value: input.password
498
- }, _errorFactory)) && (undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) || $guard(_exceptionable, {
592
+ }, _errorFactory)) && (undefined === input.clientCredentials || ("object" === typeof input.clientCredentials && null !== input.clientCredentials && false === Array.isArray(input.clientCredentials) || __$assertGuard.$assertGuard(_exceptionable, {
593
+ method: "typia.assert",
499
594
  path: _path + ".clientCredentials",
500
595
  expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
501
596
  value: input.clientCredentials
502
- }, _errorFactory)) && $ao18(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || $guard(_exceptionable, {
597
+ }, _errorFactory)) && $ao18(input.clientCredentials, _path + ".clientCredentials", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
598
+ method: "typia.assert",
503
599
  path: _path + ".clientCredentials",
504
600
  expected: "(Omit<OpenApi.ISecurityScheme.IOAuth2.IFlow, \"authorizationUrl\"> | undefined)",
505
601
  value: input.clientCredentials
506
- }, _errorFactory)); const $ao15 = (input, _path, _exceptionable = true) => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $guard(_exceptionable, {
602
+ }, _errorFactory)); const $ao15 = (input, _path, _exceptionable = true) => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || __$assertGuard.$assertGuard(_exceptionable, {
603
+ method: "typia.assert",
507
604
  path: _path + ".authorizationUrl",
508
605
  expected: "(string | undefined)",
509
606
  value: input.authorizationUrl
510
- }, _errorFactory)) && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $guard(_exceptionable, {
607
+ }, _errorFactory)) && (undefined === input.tokenUrl || "string" === typeof input.tokenUrl || __$assertGuard.$assertGuard(_exceptionable, {
608
+ method: "typia.assert",
511
609
  path: _path + ".tokenUrl",
512
610
  expected: "(string | undefined)",
513
611
  value: input.tokenUrl
514
- }, _errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $guard(_exceptionable, {
612
+ }, _errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || __$assertGuard.$assertGuard(_exceptionable, {
613
+ method: "typia.assert",
515
614
  path: _path + ".refreshUrl",
516
615
  expected: "(string | undefined)",
517
616
  value: input.refreshUrl
518
- }, _errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
617
+ }, _errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || __$assertGuard.$assertGuard(_exceptionable, {
618
+ method: "typia.assert",
519
619
  path: _path + ".scopes",
520
620
  expected: "(Record<string, string> | undefined)",
521
621
  value: input.scopes
522
- }, _errorFactory)) && $ao16(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
622
+ }, _errorFactory)) && $ao16(input.scopes, _path + ".scopes", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
623
+ method: "typia.assert",
523
624
  path: _path + ".scopes",
524
625
  expected: "(Record<string, string> | undefined)",
525
626
  value: input.scopes
@@ -527,60 +628,74 @@ var NestiaConfigLoader;
527
628
  const value = input[key];
528
629
  if (undefined === value)
529
630
  return true;
530
- return "string" === typeof value || $guard(_exceptionable, {
531
- path: _path + $join(key),
631
+ return "string" === typeof value || __$assertGuard.$assertGuard(_exceptionable, {
632
+ method: "typia.assert",
633
+ path: _path + __$accessExpressionAsString.$accessExpressionAsString(key),
532
634
  expected: "string",
533
635
  value: value
534
636
  }, _errorFactory);
535
- }); const $ao17 = (input, _path, _exceptionable = true) => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || $guard(_exceptionable, {
637
+ }); const $ao17 = (input, _path, _exceptionable = true) => (undefined === input.authorizationUrl || "string" === typeof input.authorizationUrl || __$assertGuard.$assertGuard(_exceptionable, {
638
+ method: "typia.assert",
536
639
  path: _path + ".authorizationUrl",
537
640
  expected: "(string | undefined)",
538
641
  value: input.authorizationUrl
539
- }, _errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $guard(_exceptionable, {
642
+ }, _errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || __$assertGuard.$assertGuard(_exceptionable, {
643
+ method: "typia.assert",
540
644
  path: _path + ".refreshUrl",
541
645
  expected: "(string | undefined)",
542
646
  value: input.refreshUrl
543
- }, _errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
647
+ }, _errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || __$assertGuard.$assertGuard(_exceptionable, {
648
+ method: "typia.assert",
544
649
  path: _path + ".scopes",
545
650
  expected: "(Record<string, string> | undefined)",
546
651
  value: input.scopes
547
- }, _errorFactory)) && $ao16(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
652
+ }, _errorFactory)) && $ao16(input.scopes, _path + ".scopes", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
653
+ method: "typia.assert",
548
654
  path: _path + ".scopes",
549
655
  expected: "(Record<string, string> | undefined)",
550
656
  value: input.scopes
551
- }, _errorFactory)); const $ao18 = (input, _path, _exceptionable = true) => (undefined === input.tokenUrl || "string" === typeof input.tokenUrl || $guard(_exceptionable, {
657
+ }, _errorFactory)); const $ao18 = (input, _path, _exceptionable = true) => (undefined === input.tokenUrl || "string" === typeof input.tokenUrl || __$assertGuard.$assertGuard(_exceptionable, {
658
+ method: "typia.assert",
552
659
  path: _path + ".tokenUrl",
553
660
  expected: "(string | undefined)",
554
661
  value: input.tokenUrl
555
- }, _errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || $guard(_exceptionable, {
662
+ }, _errorFactory)) && (undefined === input.refreshUrl || "string" === typeof input.refreshUrl || __$assertGuard.$assertGuard(_exceptionable, {
663
+ method: "typia.assert",
556
664
  path: _path + ".refreshUrl",
557
665
  expected: "(string | undefined)",
558
666
  value: input.refreshUrl
559
- }, _errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || $guard(_exceptionable, {
667
+ }, _errorFactory)) && (undefined === input.scopes || ("object" === typeof input.scopes && null !== input.scopes && false === Array.isArray(input.scopes) || __$assertGuard.$assertGuard(_exceptionable, {
668
+ method: "typia.assert",
560
669
  path: _path + ".scopes",
561
670
  expected: "(Record<string, string> | undefined)",
562
671
  value: input.scopes
563
- }, _errorFactory)) && $ao16(input.scopes, _path + ".scopes", true && _exceptionable) || $guard(_exceptionable, {
672
+ }, _errorFactory)) && $ao16(input.scopes, _path + ".scopes", true && _exceptionable) || __$assertGuard.$assertGuard(_exceptionable, {
673
+ method: "typia.assert",
564
674
  path: _path + ".scopes",
565
675
  expected: "(Record<string, string> | undefined)",
566
676
  value: input.scopes
567
- }, _errorFactory)); const $ao19 = (input, _path, _exceptionable = true) => ("openIdConnect" === input.type || $guard(_exceptionable, {
677
+ }, _errorFactory)); const $ao19 = (input, _path, _exceptionable = true) => ("openIdConnect" === input.type || __$assertGuard.$assertGuard(_exceptionable, {
678
+ method: "typia.assert",
568
679
  path: _path + ".type",
569
680
  expected: "\"openIdConnect\"",
570
681
  value: input.type
571
- }, _errorFactory)) && ("string" === typeof input.openIdConnectUrl || $guard(_exceptionable, {
682
+ }, _errorFactory)) && ("string" === typeof input.openIdConnectUrl || __$assertGuard.$assertGuard(_exceptionable, {
683
+ method: "typia.assert",
572
684
  path: _path + ".openIdConnectUrl",
573
685
  expected: "string",
574
686
  value: input.openIdConnectUrl
575
- }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
687
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __$assertGuard.$assertGuard(_exceptionable, {
688
+ method: "typia.assert",
576
689
  path: _path + ".description",
577
690
  expected: "(string | undefined)",
578
691
  value: input.description
579
- }, _errorFactory)); const $ao20 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
692
+ }, _errorFactory)); const $ao20 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || __$assertGuard.$assertGuard(_exceptionable, {
693
+ method: "typia.assert",
580
694
  path: _path + ".name",
581
695
  expected: "string",
582
696
  value: input.name
583
- }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
697
+ }, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __$assertGuard.$assertGuard(_exceptionable, {
698
+ method: "typia.assert",
584
699
  path: _path + ".description",
585
700
  expected: "(string | undefined)",
586
701
  value: input.description
@@ -596,7 +711,8 @@ var NestiaConfigLoader;
596
711
  else if ("openIdConnect" === input.type)
597
712
  return $ao19(input, _path, true && _exceptionable);
598
713
  else
599
- return $guard(_exceptionable, {
714
+ return __$assertGuard.$assertGuard(_exceptionable, {
715
+ method: "typia.assert",
600
716
  path: _path,
601
717
  expected: "(OpenApi.ISecurityScheme.IApiKey | OpenApi.ISecurityScheme.IHttpBasic | OpenApi.ISecurityScheme.IHttpBearer | OpenApi.ISecurityScheme.IOAuth2 | OpenApi.ISecurityScheme.IOpenId)",
602
718
  value: input
@@ -604,19 +720,23 @@ var NestiaConfigLoader;
604
720
  })(); const __is = input => Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && $io0(elem)); let _errorFactory; return (input, errorFactory) => {
605
721
  if (false === __is(input)) {
606
722
  _errorFactory = errorFactory;
607
- ((input, _path, _exceptionable = true) => (Array.isArray(input) || $guard(true, {
723
+ ((input, _path, _exceptionable = true) => (Array.isArray(input) || __$assertGuard.$assertGuard(true, {
724
+ method: "typia.assert",
608
725
  path: _path + "",
609
726
  expected: "Array<INestiaConfig>",
610
727
  value: input
611
- }, _errorFactory)) && input.every((elem, _index8) => ("object" === typeof elem && null !== elem || $guard(true, {
728
+ }, _errorFactory)) && input.every((elem, _index8) => ("object" === typeof elem && null !== elem || __$assertGuard.$assertGuard(true, {
729
+ method: "typia.assert",
612
730
  path: _path + "[" + _index8 + "]",
613
731
  expected: "INestiaConfig",
614
732
  value: elem
615
- }, _errorFactory)) && $ao0(elem, _path + "[" + _index8 + "]", true) || $guard(true, {
733
+ }, _errorFactory)) && $ao0(elem, _path + "[" + _index8 + "]", true) || __$assertGuard.$assertGuard(true, {
734
+ method: "typia.assert",
616
735
  path: _path + "[" + _index8 + "]",
617
736
  expected: "INestiaConfig",
618
737
  value: elem
619
- }, _errorFactory)) || $guard(true, {
738
+ }, _errorFactory)) || __$assertGuard.$assertGuard(true, {
739
+ method: "typia.assert",
620
740
  path: _path + "",
621
741
  expected: "Array<INestiaConfig>",
622
742
  value: input