@nxtedition/types 1.6.3 → 1.6.6

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.
@@ -1,20 +1,41 @@
1
1
  import __typia from "typia";
2
2
  export const isFile = input => {
3
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
3
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
4
4
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
5
- const $io2 = input => "string" === typeof input.message;
5
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
6
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
7
+ const $io4 = input => 0 === input.minimum;
8
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
9
+ const $io6 = input => Object.keys(input).every(key => {
10
+ const value = input[key];
11
+ if (undefined === value)
12
+ return true;
13
+ return "string" === typeof value;
14
+ });
15
+ const $io7 = input => true;
6
16
  return "object" === typeof input && null !== input && $io0(input);
7
17
  };
8
18
  export const assertFile = (input, errorFactory) => {
9
19
  const __is = input => {
10
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
20
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
11
21
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
12
- const $io2 = input => "string" === typeof input.message;
22
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
23
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
24
+ const $io4 = input => 0 === input.minimum;
25
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
26
+ const $io6 = input => Object.keys(input).every(key => {
27
+ const value = input[key];
28
+ if (undefined === value)
29
+ return true;
30
+ return "string" === typeof value;
31
+ });
32
+ const $io7 = input => true;
13
33
  return "object" === typeof input && null !== input && $io0(input);
14
34
  };
15
35
  if (false === __is(input))
16
36
  ((input, _path, _exceptionable = true) => {
17
37
  const $guard = __typia.createAssert.guard;
38
+ const $join = __typia.createAssert.join;
18
39
  const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
19
40
  path: _path + ".id",
20
41
  expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -79,6 +100,42 @@ export const assertFile = (input, errorFactory) => {
79
100
  path: _path + ".mimeType",
80
101
  expected: "string",
81
102
  value: input.mimeType
103
+ }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
104
+ path: _path + ".ranges",
105
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
106
+ value: input.ranges
107
+ }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
108
+ path: _path + ".ranges[" + _index3 + "]",
109
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
110
+ value: elem
111
+ }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
112
+ path: _path + ".ranges[" + _index3 + "]",
113
+ expected: "[Minimum<0>, Minimum<0>]",
114
+ value: elem
115
+ }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
116
+ path: _path + ".ranges[" + _index3 + "][0]",
117
+ expected: "Minimum<0>",
118
+ value: elem[0]
119
+ }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index3 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
120
+ path: _path + ".ranges[" + _index3 + "][0]",
121
+ expected: "Minimum<0>",
122
+ value: elem[0]
123
+ }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
124
+ path: _path + ".ranges[" + _index3 + "][1]",
125
+ expected: "Minimum<0>",
126
+ value: elem[1]
127
+ }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index3 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
128
+ path: _path + ".ranges[" + _index3 + "][1]",
129
+ expected: "Minimum<0>",
130
+ value: elem[1]
131
+ }, errorFactory))) || $guard(_exceptionable, {
132
+ path: _path + ".ranges[" + _index3 + "]",
133
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
134
+ value: elem
135
+ }, errorFactory)) || $guard(_exceptionable, {
136
+ path: _path + ".ranges",
137
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
138
+ value: input.ranges
82
139
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
83
140
  path: _path + ".hash",
84
141
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -103,23 +160,27 @@ export const assertFile = (input, errorFactory) => {
103
160
  path: _path + ".completed",
104
161
  expected: "boolean",
105
162
  value: input.completed
106
- }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
163
+ }, errorFactory)) && ((undefined !== input.error || $guard(_exceptionable, {
107
164
  path: _path + ".error",
108
- expected: "(Array<__type>.o1 | null)",
165
+ expected: "(Array<NxtError> | NxtError | null)",
109
166
  value: input.error
110
- }, errorFactory)) && input.error.every((elem, _index3) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
111
- path: _path + ".error[" + _index3 + "]",
112
- expected: "__type.o1",
167
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index4) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
168
+ path: _path + ".error[" + _index4 + "]",
169
+ expected: "NxtError",
113
170
  value: elem
114
- }, errorFactory)) && $ao2(elem, _path + ".error[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
115
- path: _path + ".error[" + _index3 + "]",
116
- expected: "__type.o1",
171
+ }, errorFactory)) && $ao5(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
172
+ path: _path + ".error[" + _index4 + "]",
173
+ expected: "NxtError",
117
174
  value: elem
175
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
176
+ path: _path + ".error",
177
+ expected: "(Array<NxtError> | NxtError | null)",
178
+ value: input.error
118
179
  }, errorFactory)) || $guard(_exceptionable, {
119
180
  path: _path + ".error",
120
- expected: "(Array<__type>.o1 | null)",
181
+ expected: "(Array<NxtError> | NxtError | null)",
121
182
  value: input.error
122
- }, errorFactory));
183
+ }, errorFactory)));
123
184
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
124
185
  path: _path + ".file",
125
186
  expected: "(string | undefined)",
@@ -137,11 +198,141 @@ export const assertFile = (input, errorFactory) => {
137
198
  expected: "(number | undefined)",
138
199
  value: input.end
139
200
  }, errorFactory));
140
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
201
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
202
+ path: _path + "[\"typia.tag\"]",
203
+ expected: "(__type.o1 | undefined)",
204
+ value: input["typia.tag"]
205
+ }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
206
+ path: _path + "[\"typia.tag\"]",
207
+ expected: "(__type.o1 | undefined)",
208
+ value: input["typia.tag"]
209
+ }, errorFactory);
210
+ const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
211
+ path: _path + ".target",
212
+ expected: "\"number\"",
213
+ value: input.target
214
+ }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
215
+ path: _path + ".kind",
216
+ expected: "\"minimum\"",
217
+ value: input.kind
218
+ }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
219
+ path: _path + ".value",
220
+ expected: "0",
221
+ value: input.value
222
+ }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
223
+ path: _path + ".validate",
224
+ expected: "\"0 <= $input\"",
225
+ value: input.validate
226
+ }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
227
+ path: _path + ".exclusive",
228
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
229
+ value: input.exclusive
230
+ }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
231
+ path: _path + ".exclusive",
232
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
233
+ value: input.exclusive
234
+ }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
235
+ path: _path + ".exclusive[0]",
236
+ expected: "\"minimum\"",
237
+ value: input.exclusive[0]
238
+ }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
239
+ path: _path + ".exclusive[1]",
240
+ expected: "\"exclusiveMinimum\"",
241
+ value: input.exclusive[1]
242
+ }, errorFactory))) || $guard(_exceptionable, {
243
+ path: _path + ".exclusive",
244
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
245
+ value: input.exclusive
246
+ }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
247
+ path: _path + ".schema",
248
+ expected: "__type.o2",
249
+ value: input.schema
250
+ }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
251
+ path: _path + ".schema",
252
+ expected: "__type.o2",
253
+ value: input.schema
254
+ }, errorFactory));
255
+ const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
256
+ path: _path + ".minimum",
257
+ expected: "0",
258
+ value: input.minimum
259
+ }, errorFactory);
260
+ const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
141
261
  path: _path + ".message",
142
262
  expected: "string",
143
263
  value: input.message
144
- }, errorFactory);
264
+ }, errorFactory)) && (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
265
+ path: _path + ".type",
266
+ expected: "(string | undefined)",
267
+ value: input.type
268
+ }, errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
269
+ path: _path + ".code",
270
+ expected: "(string | undefined)",
271
+ value: input.code
272
+ }, errorFactory)) && (undefined === input.exitCode || "number" === typeof input.exitCode || $guard(_exceptionable, {
273
+ path: _path + ".exitCode",
274
+ expected: "(number | undefined)",
275
+ value: input.exitCode
276
+ }, errorFactory)) && (undefined === input.signalCode || "number" === typeof input.signalCode || $guard(_exceptionable, {
277
+ path: _path + ".signalCode",
278
+ expected: "(number | undefined)",
279
+ value: input.signalCode
280
+ }, errorFactory)) && (undefined === input.statusCode || "number" === typeof input.statusCode || $guard(_exceptionable, {
281
+ path: _path + ".statusCode",
282
+ expected: "(number | undefined)",
283
+ value: input.statusCode
284
+ }, errorFactory)) && (undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || $guard(_exceptionable, {
285
+ path: _path + ".headers",
286
+ expected: "(Record<string, string> | undefined)",
287
+ value: input.headers
288
+ }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
289
+ path: _path + ".headers",
290
+ expected: "(Record<string, string> | undefined)",
291
+ value: input.headers
292
+ }, errorFactory)) && (undefined === input.data || ("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || $guard(_exceptionable, {
293
+ path: _path + ".data",
294
+ expected: "(object | undefined)",
295
+ value: input.data
296
+ }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
297
+ path: _path + ".data",
298
+ expected: "(object | undefined)",
299
+ value: input.data
300
+ }, errorFactory)) && (null === input.cause || undefined === input.cause || ("object" === typeof input.cause && null !== input.cause || $guard(_exceptionable, {
301
+ path: _path + ".cause",
302
+ expected: "(NxtError | null | undefined)",
303
+ value: input.cause
304
+ }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
305
+ path: _path + ".cause",
306
+ expected: "(NxtError | null | undefined)",
307
+ value: input.cause
308
+ }, errorFactory)) && (null === input.errors || undefined === input.errors || (Array.isArray(input.errors) || $guard(_exceptionable, {
309
+ path: _path + ".errors",
310
+ expected: "(Array<NxtError> | null | undefined)",
311
+ value: input.errors
312
+ }, errorFactory)) && input.errors.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
313
+ path: _path + ".errors[" + _index5 + "]",
314
+ expected: "NxtError",
315
+ value: elem
316
+ }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
317
+ path: _path + ".errors[" + _index5 + "]",
318
+ expected: "NxtError",
319
+ value: elem
320
+ }, errorFactory)) || $guard(_exceptionable, {
321
+ path: _path + ".errors",
322
+ expected: "(Array<NxtError> | null | undefined)",
323
+ value: input.errors
324
+ }, errorFactory));
325
+ const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
326
+ const value = input[key];
327
+ if (undefined === value)
328
+ return true;
329
+ return "string" === typeof value || $guard(_exceptionable, {
330
+ path: _path + $join(key),
331
+ expected: "string",
332
+ value: value
333
+ }, errorFactory);
334
+ });
335
+ const $ao7 = (input, _path, _exceptionable = true) => true;
145
336
  return ("object" === typeof input && null !== input || $guard(true, {
146
337
  path: _path + "",
147
338
  expected: "File",
@@ -186,6 +377,10 @@ export const randomFile = generator => {
186
377
  tags: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
187
378
  resumable: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
188
379
  mimeType: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
380
+ ranges: (generator?.array ?? $generator.array)(() => [
381
+ $ro2(_recursive, _recursive ? 1 + _depth : _depth),
382
+ $ro2(_recursive, _recursive ? 1 + _depth : _depth)
383
+ ]),
189
384
  hash: (generator?.customs ?? $generator.customs)?.string?.([
190
385
  {
191
386
  name: "Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -208,7 +403,8 @@ export const randomFile = generator => {
208
403
  completed: (generator?.boolean ?? $generator.boolean)(),
209
404
  error: $pick([
210
405
  () => null,
211
- () => (generator?.array ?? $generator.array)(() => $ro2(_recursive, _recursive ? 1 + _depth : _depth))
406
+ () => (generator?.array ?? $generator.array)(() => $ro5(_recursive, _recursive ? 1 + _depth : _depth)),
407
+ () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
212
408
  ])()
213
409
  });
214
410
  const $ro1 = (_recursive = false, _depth = 0) => ({
@@ -230,20 +426,95 @@ export const randomFile = generator => {
230
426
  ])()
231
427
  });
232
428
  const $ro2 = (_recursive = false, _depth = 0) => ({
233
- message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
429
+ "typia.tag": $pick([
430
+ () => undefined,
431
+ () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
432
+ ])()
433
+ });
434
+ const $ro3 = (_recursive = false, _depth = 0) => ({
435
+ target: "number",
436
+ kind: "minimum",
437
+ value: 0,
438
+ validate: "0 <= $input",
439
+ exclusive: [
440
+ "minimum",
441
+ "exclusiveMinimum"
442
+ ],
443
+ schema: $ro4(_recursive, _recursive ? 1 + _depth : _depth)
444
+ });
445
+ const $ro4 = (_recursive = false, _depth = 0) => ({
446
+ minimum: 0
447
+ });
448
+ const $ro5 = (_recursive = true, _depth = 0) => ({
449
+ message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
450
+ type: $pick([
451
+ () => undefined,
452
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
453
+ ])(),
454
+ code: $pick([
455
+ () => undefined,
456
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
457
+ ])(),
458
+ exitCode: $pick([
459
+ () => undefined,
460
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
461
+ ])(),
462
+ signalCode: $pick([
463
+ () => undefined,
464
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
465
+ ])(),
466
+ statusCode: $pick([
467
+ () => undefined,
468
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
469
+ ])(),
470
+ headers: $pick([
471
+ () => undefined,
472
+ () => $ro6(true, _recursive ? 1 + _depth : _depth)
473
+ ])(),
474
+ data: $pick([
475
+ () => undefined,
476
+ () => $ro7(true, _recursive ? 1 + _depth : _depth)
477
+ ])(),
478
+ cause: $pick([
479
+ () => undefined,
480
+ () => null,
481
+ () => $ro5(true, _recursive ? 1 + _depth : _depth)
482
+ ])(),
483
+ errors: $pick([
484
+ () => undefined,
485
+ () => null,
486
+ () => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro5(true, _recursive ? 1 + _depth : _depth)) : []
487
+ ])()
234
488
  });
489
+ const $ro6 = (_recursive = false, _depth = 0) => {
490
+ const output = {};
491
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
492
+ return output;
493
+ };
494
+ const $ro7 = (_recursive = false, _depth = 0) => {};
235
495
  return $ro0();
236
496
  };
237
497
  export const assertGuardFile = (input, errorFactory) => {
238
498
  const __is = input => {
239
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
499
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
240
500
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
241
- const $io2 = input => "string" === typeof input.message;
501
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
502
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
503
+ const $io4 = input => 0 === input.minimum;
504
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
505
+ const $io6 = input => Object.keys(input).every(key => {
506
+ const value = input[key];
507
+ if (undefined === value)
508
+ return true;
509
+ return "string" === typeof value;
510
+ });
511
+ const $io7 = input => true;
242
512
  return "object" === typeof input && null !== input && $io0(input);
243
513
  };
244
514
  if (false === __is(input))
245
515
  ((input, _path, _exceptionable = true) => {
246
516
  const $guard = __typia.createAssertGuard.guard;
517
+ const $join = __typia.createAssertGuard.join;
247
518
  const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
248
519
  path: _path + ".id",
249
520
  expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -308,6 +579,42 @@ export const assertGuardFile = (input, errorFactory) => {
308
579
  path: _path + ".mimeType",
309
580
  expected: "string",
310
581
  value: input.mimeType
582
+ }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
583
+ path: _path + ".ranges",
584
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
585
+ value: input.ranges
586
+ }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
587
+ path: _path + ".ranges[" + _index3 + "]",
588
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
589
+ value: elem
590
+ }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
591
+ path: _path + ".ranges[" + _index3 + "]",
592
+ expected: "[Minimum<0>, Minimum<0>]",
593
+ value: elem
594
+ }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
595
+ path: _path + ".ranges[" + _index3 + "][0]",
596
+ expected: "Minimum<0>",
597
+ value: elem[0]
598
+ }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index3 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
599
+ path: _path + ".ranges[" + _index3 + "][0]",
600
+ expected: "Minimum<0>",
601
+ value: elem[0]
602
+ }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
603
+ path: _path + ".ranges[" + _index3 + "][1]",
604
+ expected: "Minimum<0>",
605
+ value: elem[1]
606
+ }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index3 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
607
+ path: _path + ".ranges[" + _index3 + "][1]",
608
+ expected: "Minimum<0>",
609
+ value: elem[1]
610
+ }, errorFactory))) || $guard(_exceptionable, {
611
+ path: _path + ".ranges[" + _index3 + "]",
612
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
613
+ value: elem
614
+ }, errorFactory)) || $guard(_exceptionable, {
615
+ path: _path + ".ranges",
616
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
617
+ value: input.ranges
311
618
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
312
619
  path: _path + ".hash",
313
620
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -332,23 +639,27 @@ export const assertGuardFile = (input, errorFactory) => {
332
639
  path: _path + ".completed",
333
640
  expected: "boolean",
334
641
  value: input.completed
335
- }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
642
+ }, errorFactory)) && ((undefined !== input.error || $guard(_exceptionable, {
336
643
  path: _path + ".error",
337
- expected: "(Array<__type>.o1 | null)",
644
+ expected: "(Array<NxtError> | NxtError | null)",
338
645
  value: input.error
339
- }, errorFactory)) && input.error.every((elem, _index3) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
340
- path: _path + ".error[" + _index3 + "]",
341
- expected: "__type.o1",
646
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index4) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
647
+ path: _path + ".error[" + _index4 + "]",
648
+ expected: "NxtError",
342
649
  value: elem
343
- }, errorFactory)) && $ao2(elem, _path + ".error[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
344
- path: _path + ".error[" + _index3 + "]",
345
- expected: "__type.o1",
650
+ }, errorFactory)) && $ao5(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
651
+ path: _path + ".error[" + _index4 + "]",
652
+ expected: "NxtError",
346
653
  value: elem
654
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
655
+ path: _path + ".error",
656
+ expected: "(Array<NxtError> | NxtError | null)",
657
+ value: input.error
347
658
  }, errorFactory)) || $guard(_exceptionable, {
348
659
  path: _path + ".error",
349
- expected: "(Array<__type>.o1 | null)",
660
+ expected: "(Array<NxtError> | NxtError | null)",
350
661
  value: input.error
351
- }, errorFactory));
662
+ }, errorFactory)));
352
663
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
353
664
  path: _path + ".file",
354
665
  expected: "(string | undefined)",
@@ -366,11 +677,141 @@ export const assertGuardFile = (input, errorFactory) => {
366
677
  expected: "(number | undefined)",
367
678
  value: input.end
368
679
  }, errorFactory));
369
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
680
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
681
+ path: _path + "[\"typia.tag\"]",
682
+ expected: "(__type.o1 | undefined)",
683
+ value: input["typia.tag"]
684
+ }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
685
+ path: _path + "[\"typia.tag\"]",
686
+ expected: "(__type.o1 | undefined)",
687
+ value: input["typia.tag"]
688
+ }, errorFactory);
689
+ const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
690
+ path: _path + ".target",
691
+ expected: "\"number\"",
692
+ value: input.target
693
+ }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
694
+ path: _path + ".kind",
695
+ expected: "\"minimum\"",
696
+ value: input.kind
697
+ }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
698
+ path: _path + ".value",
699
+ expected: "0",
700
+ value: input.value
701
+ }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
702
+ path: _path + ".validate",
703
+ expected: "\"0 <= $input\"",
704
+ value: input.validate
705
+ }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
706
+ path: _path + ".exclusive",
707
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
708
+ value: input.exclusive
709
+ }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
710
+ path: _path + ".exclusive",
711
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
712
+ value: input.exclusive
713
+ }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
714
+ path: _path + ".exclusive[0]",
715
+ expected: "\"minimum\"",
716
+ value: input.exclusive[0]
717
+ }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
718
+ path: _path + ".exclusive[1]",
719
+ expected: "\"exclusiveMinimum\"",
720
+ value: input.exclusive[1]
721
+ }, errorFactory))) || $guard(_exceptionable, {
722
+ path: _path + ".exclusive",
723
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
724
+ value: input.exclusive
725
+ }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
726
+ path: _path + ".schema",
727
+ expected: "__type.o2",
728
+ value: input.schema
729
+ }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
730
+ path: _path + ".schema",
731
+ expected: "__type.o2",
732
+ value: input.schema
733
+ }, errorFactory));
734
+ const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
735
+ path: _path + ".minimum",
736
+ expected: "0",
737
+ value: input.minimum
738
+ }, errorFactory);
739
+ const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
370
740
  path: _path + ".message",
371
741
  expected: "string",
372
742
  value: input.message
373
- }, errorFactory);
743
+ }, errorFactory)) && (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
744
+ path: _path + ".type",
745
+ expected: "(string | undefined)",
746
+ value: input.type
747
+ }, errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
748
+ path: _path + ".code",
749
+ expected: "(string | undefined)",
750
+ value: input.code
751
+ }, errorFactory)) && (undefined === input.exitCode || "number" === typeof input.exitCode || $guard(_exceptionable, {
752
+ path: _path + ".exitCode",
753
+ expected: "(number | undefined)",
754
+ value: input.exitCode
755
+ }, errorFactory)) && (undefined === input.signalCode || "number" === typeof input.signalCode || $guard(_exceptionable, {
756
+ path: _path + ".signalCode",
757
+ expected: "(number | undefined)",
758
+ value: input.signalCode
759
+ }, errorFactory)) && (undefined === input.statusCode || "number" === typeof input.statusCode || $guard(_exceptionable, {
760
+ path: _path + ".statusCode",
761
+ expected: "(number | undefined)",
762
+ value: input.statusCode
763
+ }, errorFactory)) && (undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || $guard(_exceptionable, {
764
+ path: _path + ".headers",
765
+ expected: "(Record<string, string> | undefined)",
766
+ value: input.headers
767
+ }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
768
+ path: _path + ".headers",
769
+ expected: "(Record<string, string> | undefined)",
770
+ value: input.headers
771
+ }, errorFactory)) && (undefined === input.data || ("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || $guard(_exceptionable, {
772
+ path: _path + ".data",
773
+ expected: "(object | undefined)",
774
+ value: input.data
775
+ }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
776
+ path: _path + ".data",
777
+ expected: "(object | undefined)",
778
+ value: input.data
779
+ }, errorFactory)) && (null === input.cause || undefined === input.cause || ("object" === typeof input.cause && null !== input.cause || $guard(_exceptionable, {
780
+ path: _path + ".cause",
781
+ expected: "(NxtError | null | undefined)",
782
+ value: input.cause
783
+ }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
784
+ path: _path + ".cause",
785
+ expected: "(NxtError | null | undefined)",
786
+ value: input.cause
787
+ }, errorFactory)) && (null === input.errors || undefined === input.errors || (Array.isArray(input.errors) || $guard(_exceptionable, {
788
+ path: _path + ".errors",
789
+ expected: "(Array<NxtError> | null | undefined)",
790
+ value: input.errors
791
+ }, errorFactory)) && input.errors.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
792
+ path: _path + ".errors[" + _index5 + "]",
793
+ expected: "NxtError",
794
+ value: elem
795
+ }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
796
+ path: _path + ".errors[" + _index5 + "]",
797
+ expected: "NxtError",
798
+ value: elem
799
+ }, errorFactory)) || $guard(_exceptionable, {
800
+ path: _path + ".errors",
801
+ expected: "(Array<NxtError> | null | undefined)",
802
+ value: input.errors
803
+ }, errorFactory));
804
+ const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
805
+ const value = input[key];
806
+ if (undefined === value)
807
+ return true;
808
+ return "string" === typeof value || $guard(_exceptionable, {
809
+ path: _path + $join(key),
810
+ expected: "string",
811
+ value: value
812
+ }, errorFactory);
813
+ });
814
+ const $ao7 = (input, _path, _exceptionable = true) => true;
374
815
  return ("object" === typeof input && null !== input || $guard(true, {
375
816
  path: _path + "",
376
817
  expected: "File",
@@ -384,23 +825,105 @@ export const assertGuardFile = (input, errorFactory) => {
384
825
  };
385
826
  export const stringifyFile = input => {
386
827
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
387
- const $io2 = input => "string" === typeof input.message;
828
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
829
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
830
+ const $io4 = input => 0 === input.minimum;
831
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
832
+ const $io6 = input => Object.keys(input).every(key => {
833
+ const value = input[key];
834
+ if (undefined === value)
835
+ return true;
836
+ return "string" === typeof value;
837
+ });
838
+ const $io7 = input => true;
388
839
  const $string = __typia.json.createStringify.string;
840
+ const $throws = __typia.json.createStringify.throws;
389
841
  const $tail = __typia.json.createStringify.tail;
390
- const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"}}`;
842
+ const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
843
+ if (Array.isArray(input.error))
844
+ return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
845
+ if ("object" === typeof input.error && null !== input.error)
846
+ return $so5(input.error);
847
+ $throws({
848
+ expected: "(Array<NxtError> | NxtError | null)",
849
+ value: input.error
850
+ });
851
+ })() : "null"}}`;
391
852
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
853
+ const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
854
+ const $so3 = input => `{"target":${(() => {
855
+ if ("string" === typeof input.target)
856
+ return $string(input.target);
857
+ if ("string" === typeof input.target)
858
+ return "\"" + input.target + "\"";
859
+ $throws({
860
+ expected: "\"number\"",
861
+ value: input.target
862
+ });
863
+ })()},"kind":${(() => {
864
+ if ("string" === typeof input.kind)
865
+ return $string(input.kind);
866
+ if ("string" === typeof input.kind)
867
+ return "\"" + input.kind + "\"";
868
+ $throws({
869
+ expected: "\"minimum\"",
870
+ value: input.kind
871
+ });
872
+ })()},"value":${input.value},"validate":${(() => {
873
+ if ("string" === typeof input.validate)
874
+ return $string(input.validate);
875
+ if ("string" === typeof input.validate)
876
+ return "\"" + input.validate + "\"";
877
+ $throws({
878
+ expected: "\"0 <= $input\"",
879
+ value: input.validate
880
+ });
881
+ })()},"exclusive":${`[${(() => {
882
+ if ("string" === typeof input.exclusive[0])
883
+ return $string(input.exclusive[0]);
884
+ if ("string" === typeof input.exclusive[0])
885
+ return "\"" + input.exclusive[0] + "\"";
886
+ $throws({
887
+ expected: "\"minimum\"",
888
+ value: input.exclusive[0]
889
+ });
890
+ })()},${(() => {
891
+ if ("string" === typeof input.exclusive[1])
892
+ return $string(input.exclusive[1]);
893
+ if ("string" === typeof input.exclusive[1])
894
+ return "\"" + input.exclusive[1] + "\"";
895
+ $throws({
896
+ expected: "\"exclusiveMinimum\"",
897
+ value: input.exclusive[1]
898
+ });
899
+ })()}]`},"schema":${$so4(input.schema)}}`;
900
+ const $so4 = input => `{"minimum":${input.minimum}}`;
901
+ const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
902
+ const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
903
+ return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
392
904
  return $so0(input);
393
905
  };
394
906
  export const assertStringifyFile = (input, errorFactory) => { const assert = (input, errorFactory) => {
395
907
  const __is = input => {
396
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
908
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
397
909
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
398
- const $io2 = input => "string" === typeof input.message;
910
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
911
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
912
+ const $io4 = input => 0 === input.minimum;
913
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
914
+ const $io6 = input => Object.keys(input).every(key => {
915
+ const value = input[key];
916
+ if (undefined === value)
917
+ return true;
918
+ return "string" === typeof value;
919
+ });
920
+ const $io7 = input => true;
399
921
  return "object" === typeof input && null !== input && $io0(input);
400
922
  };
401
923
  if (false === __is(input))
402
924
  ((input, _path, _exceptionable = true) => {
403
925
  const $guard = __typia.json.createAssertStringify.guard;
926
+ const $join = __typia.json.createAssertStringify.join;
404
927
  const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
405
928
  path: _path + ".id",
406
929
  expected: "string & Pattern<\"^[0-9A-Za-z~][0-9A-Za-z~._: -]*$\">",
@@ -465,6 +988,42 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
465
988
  path: _path + ".mimeType",
466
989
  expected: "string",
467
990
  value: input.mimeType
991
+ }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
992
+ path: _path + ".ranges",
993
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
994
+ value: input.ranges
995
+ }, errorFactory)) && input.ranges.every((elem, _index3) => (Array.isArray(elem) || $guard(_exceptionable, {
996
+ path: _path + ".ranges[" + _index3 + "]",
997
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
998
+ value: elem
999
+ }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
1000
+ path: _path + ".ranges[" + _index3 + "]",
1001
+ expected: "[Minimum<0>, Minimum<0>]",
1002
+ value: elem
1003
+ }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
1004
+ path: _path + ".ranges[" + _index3 + "][0]",
1005
+ expected: "Minimum<0>",
1006
+ value: elem[0]
1007
+ }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index3 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
1008
+ path: _path + ".ranges[" + _index3 + "][0]",
1009
+ expected: "Minimum<0>",
1010
+ value: elem[0]
1011
+ }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
1012
+ path: _path + ".ranges[" + _index3 + "][1]",
1013
+ expected: "Minimum<0>",
1014
+ value: elem[1]
1015
+ }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index3 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
1016
+ path: _path + ".ranges[" + _index3 + "][1]",
1017
+ expected: "Minimum<0>",
1018
+ value: elem[1]
1019
+ }, errorFactory))) || $guard(_exceptionable, {
1020
+ path: _path + ".ranges[" + _index3 + "]",
1021
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
1022
+ value: elem
1023
+ }, errorFactory)) || $guard(_exceptionable, {
1024
+ path: _path + ".ranges",
1025
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1026
+ value: input.ranges
468
1027
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
469
1028
  path: _path + ".hash",
470
1029
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -489,23 +1048,27 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
489
1048
  path: _path + ".completed",
490
1049
  expected: "boolean",
491
1050
  value: input.completed
492
- }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
1051
+ }, errorFactory)) && ((undefined !== input.error || $guard(_exceptionable, {
493
1052
  path: _path + ".error",
494
- expected: "(Array<__type>.o1 | null)",
1053
+ expected: "(Array<NxtError> | NxtError | null)",
495
1054
  value: input.error
496
- }, errorFactory)) && input.error.every((elem, _index3) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
497
- path: _path + ".error[" + _index3 + "]",
498
- expected: "__type.o1",
1055
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index4) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1056
+ path: _path + ".error[" + _index4 + "]",
1057
+ expected: "NxtError",
499
1058
  value: elem
500
- }, errorFactory)) && $ao2(elem, _path + ".error[" + _index3 + "]", true && _exceptionable) || $guard(_exceptionable, {
501
- path: _path + ".error[" + _index3 + "]",
502
- expected: "__type.o1",
1059
+ }, errorFactory)) && $ao5(elem, _path + ".error[" + _index4 + "]", true && _exceptionable) || $guard(_exceptionable, {
1060
+ path: _path + ".error[" + _index4 + "]",
1061
+ expected: "NxtError",
503
1062
  value: elem
1063
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1064
+ path: _path + ".error",
1065
+ expected: "(Array<NxtError> | NxtError | null)",
1066
+ value: input.error
504
1067
  }, errorFactory)) || $guard(_exceptionable, {
505
1068
  path: _path + ".error",
506
- expected: "(Array<__type>.o1 | null)",
1069
+ expected: "(Array<NxtError> | NxtError | null)",
507
1070
  value: input.error
508
- }, errorFactory));
1071
+ }, errorFactory)));
509
1072
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
510
1073
  path: _path + ".file",
511
1074
  expected: "(string | undefined)",
@@ -523,11 +1086,141 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
523
1086
  expected: "(number | undefined)",
524
1087
  value: input.end
525
1088
  }, errorFactory));
526
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
1089
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
1090
+ path: _path + "[\"typia.tag\"]",
1091
+ expected: "(__type.o1 | undefined)",
1092
+ value: input["typia.tag"]
1093
+ }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
1094
+ path: _path + "[\"typia.tag\"]",
1095
+ expected: "(__type.o1 | undefined)",
1096
+ value: input["typia.tag"]
1097
+ }, errorFactory);
1098
+ const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
1099
+ path: _path + ".target",
1100
+ expected: "\"number\"",
1101
+ value: input.target
1102
+ }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
1103
+ path: _path + ".kind",
1104
+ expected: "\"minimum\"",
1105
+ value: input.kind
1106
+ }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
1107
+ path: _path + ".value",
1108
+ expected: "0",
1109
+ value: input.value
1110
+ }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
1111
+ path: _path + ".validate",
1112
+ expected: "\"0 <= $input\"",
1113
+ value: input.validate
1114
+ }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
1115
+ path: _path + ".exclusive",
1116
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
1117
+ value: input.exclusive
1118
+ }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
1119
+ path: _path + ".exclusive",
1120
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
1121
+ value: input.exclusive
1122
+ }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
1123
+ path: _path + ".exclusive[0]",
1124
+ expected: "\"minimum\"",
1125
+ value: input.exclusive[0]
1126
+ }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
1127
+ path: _path + ".exclusive[1]",
1128
+ expected: "\"exclusiveMinimum\"",
1129
+ value: input.exclusive[1]
1130
+ }, errorFactory))) || $guard(_exceptionable, {
1131
+ path: _path + ".exclusive",
1132
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
1133
+ value: input.exclusive
1134
+ }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
1135
+ path: _path + ".schema",
1136
+ expected: "__type.o2",
1137
+ value: input.schema
1138
+ }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1139
+ path: _path + ".schema",
1140
+ expected: "__type.o2",
1141
+ value: input.schema
1142
+ }, errorFactory));
1143
+ const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
1144
+ path: _path + ".minimum",
1145
+ expected: "0",
1146
+ value: input.minimum
1147
+ }, errorFactory);
1148
+ const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
527
1149
  path: _path + ".message",
528
1150
  expected: "string",
529
1151
  value: input.message
530
- }, errorFactory);
1152
+ }, errorFactory)) && (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
1153
+ path: _path + ".type",
1154
+ expected: "(string | undefined)",
1155
+ value: input.type
1156
+ }, errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
1157
+ path: _path + ".code",
1158
+ expected: "(string | undefined)",
1159
+ value: input.code
1160
+ }, errorFactory)) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode) || $guard(_exceptionable, {
1161
+ path: _path + ".exitCode",
1162
+ expected: "(number | undefined)",
1163
+ value: input.exitCode
1164
+ }, errorFactory)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode) || $guard(_exceptionable, {
1165
+ path: _path + ".signalCode",
1166
+ expected: "(number | undefined)",
1167
+ value: input.signalCode
1168
+ }, errorFactory)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode) || $guard(_exceptionable, {
1169
+ path: _path + ".statusCode",
1170
+ expected: "(number | undefined)",
1171
+ value: input.statusCode
1172
+ }, errorFactory)) && (undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || $guard(_exceptionable, {
1173
+ path: _path + ".headers",
1174
+ expected: "(Record<string, string> | undefined)",
1175
+ value: input.headers
1176
+ }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1177
+ path: _path + ".headers",
1178
+ expected: "(Record<string, string> | undefined)",
1179
+ value: input.headers
1180
+ }, errorFactory)) && (undefined === input.data || ("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || $guard(_exceptionable, {
1181
+ path: _path + ".data",
1182
+ expected: "(object | undefined)",
1183
+ value: input.data
1184
+ }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1185
+ path: _path + ".data",
1186
+ expected: "(object | undefined)",
1187
+ value: input.data
1188
+ }, errorFactory)) && (null === input.cause || undefined === input.cause || ("object" === typeof input.cause && null !== input.cause || $guard(_exceptionable, {
1189
+ path: _path + ".cause",
1190
+ expected: "(NxtError | null | undefined)",
1191
+ value: input.cause
1192
+ }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1193
+ path: _path + ".cause",
1194
+ expected: "(NxtError | null | undefined)",
1195
+ value: input.cause
1196
+ }, errorFactory)) && (null === input.errors || undefined === input.errors || (Array.isArray(input.errors) || $guard(_exceptionable, {
1197
+ path: _path + ".errors",
1198
+ expected: "(Array<NxtError> | null | undefined)",
1199
+ value: input.errors
1200
+ }, errorFactory)) && input.errors.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1201
+ path: _path + ".errors[" + _index5 + "]",
1202
+ expected: "NxtError",
1203
+ value: elem
1204
+ }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
1205
+ path: _path + ".errors[" + _index5 + "]",
1206
+ expected: "NxtError",
1207
+ value: elem
1208
+ }, errorFactory)) || $guard(_exceptionable, {
1209
+ path: _path + ".errors",
1210
+ expected: "(Array<NxtError> | null | undefined)",
1211
+ value: input.errors
1212
+ }, errorFactory));
1213
+ const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1214
+ const value = input[key];
1215
+ if (undefined === value)
1216
+ return true;
1217
+ return "string" === typeof value || $guard(_exceptionable, {
1218
+ path: _path + $join(key),
1219
+ expected: "string",
1220
+ value: value
1221
+ }, errorFactory);
1222
+ });
1223
+ const $ao7 = (input, _path, _exceptionable = true) => true;
531
1224
  return ("object" === typeof input && null !== input || $guard(true, {
532
1225
  path: _path + "",
533
1226
  expected: "File",
@@ -541,29 +1234,121 @@ export const assertStringifyFile = (input, errorFactory) => { const assert = (in
541
1234
  return input;
542
1235
  }; const stringify = input => {
543
1236
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
544
- const $io2 = input => "string" === typeof input.message;
1237
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1238
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1239
+ const $io4 = input => 0 === input.minimum;
1240
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1241
+ const $io6 = input => Object.keys(input).every(key => {
1242
+ const value = input[key];
1243
+ if (undefined === value)
1244
+ return true;
1245
+ return "string" === typeof value;
1246
+ });
1247
+ const $io7 = input => true;
545
1248
  const $string = __typia.json.createAssertStringify.string;
1249
+ const $throws = __typia.json.createAssertStringify.throws;
546
1250
  const $tail = __typia.json.createAssertStringify.tail;
547
- const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"}}`;
1251
+ const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
1252
+ if (Array.isArray(input.error))
1253
+ return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
1254
+ if ("object" === typeof input.error && null !== input.error)
1255
+ return $so5(input.error);
1256
+ $throws({
1257
+ expected: "(Array<NxtError> | NxtError | null)",
1258
+ value: input.error
1259
+ });
1260
+ })() : "null"}}`;
548
1261
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
1262
+ const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
1263
+ const $so3 = input => `{"target":${(() => {
1264
+ if ("string" === typeof input.target)
1265
+ return $string(input.target);
1266
+ if ("string" === typeof input.target)
1267
+ return "\"" + input.target + "\"";
1268
+ $throws({
1269
+ expected: "\"number\"",
1270
+ value: input.target
1271
+ });
1272
+ })()},"kind":${(() => {
1273
+ if ("string" === typeof input.kind)
1274
+ return $string(input.kind);
1275
+ if ("string" === typeof input.kind)
1276
+ return "\"" + input.kind + "\"";
1277
+ $throws({
1278
+ expected: "\"minimum\"",
1279
+ value: input.kind
1280
+ });
1281
+ })()},"value":${input.value},"validate":${(() => {
1282
+ if ("string" === typeof input.validate)
1283
+ return $string(input.validate);
1284
+ if ("string" === typeof input.validate)
1285
+ return "\"" + input.validate + "\"";
1286
+ $throws({
1287
+ expected: "\"0 <= $input\"",
1288
+ value: input.validate
1289
+ });
1290
+ })()},"exclusive":${`[${(() => {
1291
+ if ("string" === typeof input.exclusive[0])
1292
+ return $string(input.exclusive[0]);
1293
+ if ("string" === typeof input.exclusive[0])
1294
+ return "\"" + input.exclusive[0] + "\"";
1295
+ $throws({
1296
+ expected: "\"minimum\"",
1297
+ value: input.exclusive[0]
1298
+ });
1299
+ })()},${(() => {
1300
+ if ("string" === typeof input.exclusive[1])
1301
+ return $string(input.exclusive[1]);
1302
+ if ("string" === typeof input.exclusive[1])
1303
+ return "\"" + input.exclusive[1] + "\"";
1304
+ $throws({
1305
+ expected: "\"exclusiveMinimum\"",
1306
+ value: input.exclusive[1]
1307
+ });
1308
+ })()}]`},"schema":${$so4(input.schema)}}`;
1309
+ const $so4 = input => `{"minimum":${input.minimum}}`;
1310
+ const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
1311
+ const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1312
+ return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
549
1313
  return $so0(input);
550
1314
  }; return stringify(assert(input, errorFactory)); };
551
1315
  export const isFileStats = input => {
552
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1316
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
553
1317
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
554
- const $io2 = input => "string" === typeof input.message;
1318
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1319
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1320
+ const $io4 = input => 0 === input.minimum;
1321
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1322
+ const $io6 = input => Object.keys(input).every(key => {
1323
+ const value = input[key];
1324
+ if (undefined === value)
1325
+ return true;
1326
+ return "string" === typeof value;
1327
+ });
1328
+ const $io7 = input => true;
555
1329
  return "object" === typeof input && null !== input && $io0(input);
556
1330
  };
557
1331
  export const assertFileStats = (input, errorFactory) => {
558
1332
  const __is = input => {
559
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1333
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
560
1334
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
561
- const $io2 = input => "string" === typeof input.message;
1335
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1336
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1337
+ const $io4 = input => 0 === input.minimum;
1338
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1339
+ const $io6 = input => Object.keys(input).every(key => {
1340
+ const value = input[key];
1341
+ if (undefined === value)
1342
+ return true;
1343
+ return "string" === typeof value;
1344
+ });
1345
+ const $io7 = input => true;
562
1346
  return "object" === typeof input && null !== input && $io0(input);
563
1347
  };
564
1348
  if (false === __is(input))
565
1349
  ((input, _path, _exceptionable = true) => {
566
1350
  const $guard = __typia.createAssert.guard;
1351
+ const $join = __typia.createAssert.join;
567
1352
  const $ao0 = (input, _path, _exceptionable = true) => (null === input.position || "number" === typeof input.position && (0 <= input.position || $guard(_exceptionable, {
568
1353
  path: _path + ".position",
569
1354
  expected: "number & Minimum<0>",
@@ -668,6 +1453,42 @@ export const assertFileStats = (input, errorFactory) => {
668
1453
  path: _path + ".mimeType",
669
1454
  expected: "string",
670
1455
  value: input.mimeType
1456
+ }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1457
+ path: _path + ".ranges",
1458
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1459
+ value: input.ranges
1460
+ }, errorFactory)) && input.ranges.every((elem, _index5) => (Array.isArray(elem) || $guard(_exceptionable, {
1461
+ path: _path + ".ranges[" + _index5 + "]",
1462
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
1463
+ value: elem
1464
+ }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
1465
+ path: _path + ".ranges[" + _index5 + "]",
1466
+ expected: "[Minimum<0>, Minimum<0>]",
1467
+ value: elem
1468
+ }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
1469
+ path: _path + ".ranges[" + _index5 + "][0]",
1470
+ expected: "Minimum<0>",
1471
+ value: elem[0]
1472
+ }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index5 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
1473
+ path: _path + ".ranges[" + _index5 + "][0]",
1474
+ expected: "Minimum<0>",
1475
+ value: elem[0]
1476
+ }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
1477
+ path: _path + ".ranges[" + _index5 + "][1]",
1478
+ expected: "Minimum<0>",
1479
+ value: elem[1]
1480
+ }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index5 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
1481
+ path: _path + ".ranges[" + _index5 + "][1]",
1482
+ expected: "Minimum<0>",
1483
+ value: elem[1]
1484
+ }, errorFactory))) || $guard(_exceptionable, {
1485
+ path: _path + ".ranges[" + _index5 + "]",
1486
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
1487
+ value: elem
1488
+ }, errorFactory)) || $guard(_exceptionable, {
1489
+ path: _path + ".ranges",
1490
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1491
+ value: input.ranges
671
1492
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
672
1493
  path: _path + ".hash",
673
1494
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -692,23 +1513,27 @@ export const assertFileStats = (input, errorFactory) => {
692
1513
  path: _path + ".completed",
693
1514
  expected: "boolean",
694
1515
  value: input.completed
695
- }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
1516
+ }, errorFactory)) && ((undefined !== input.error || $guard(_exceptionable, {
696
1517
  path: _path + ".error",
697
- expected: "(Array<__type>.o1 | null)",
1518
+ expected: "(Array<NxtError> | NxtError | null)",
698
1519
  value: input.error
699
- }, errorFactory)) && input.error.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
700
- path: _path + ".error[" + _index5 + "]",
701
- expected: "__type.o1",
1520
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index6) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1521
+ path: _path + ".error[" + _index6 + "]",
1522
+ expected: "NxtError",
702
1523
  value: elem
703
- }, errorFactory)) && $ao2(elem, _path + ".error[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
704
- path: _path + ".error[" + _index5 + "]",
705
- expected: "__type.o1",
1524
+ }, errorFactory)) && $ao5(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
1525
+ path: _path + ".error[" + _index6 + "]",
1526
+ expected: "NxtError",
706
1527
  value: elem
1528
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
1529
+ path: _path + ".error",
1530
+ expected: "(Array<NxtError> | NxtError | null)",
1531
+ value: input.error
707
1532
  }, errorFactory)) || $guard(_exceptionable, {
708
1533
  path: _path + ".error",
709
- expected: "(Array<__type>.o1 | null)",
1534
+ expected: "(Array<NxtError> | NxtError | null)",
710
1535
  value: input.error
711
- }, errorFactory));
1536
+ }, errorFactory)));
712
1537
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
713
1538
  path: _path + ".file",
714
1539
  expected: "(string | undefined)",
@@ -726,11 +1551,141 @@ export const assertFileStats = (input, errorFactory) => {
726
1551
  expected: "(number | undefined)",
727
1552
  value: input.end
728
1553
  }, errorFactory));
729
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
1554
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
1555
+ path: _path + "[\"typia.tag\"]",
1556
+ expected: "(__type.o1 | undefined)",
1557
+ value: input["typia.tag"]
1558
+ }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
1559
+ path: _path + "[\"typia.tag\"]",
1560
+ expected: "(__type.o1 | undefined)",
1561
+ value: input["typia.tag"]
1562
+ }, errorFactory);
1563
+ const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
1564
+ path: _path + ".target",
1565
+ expected: "\"number\"",
1566
+ value: input.target
1567
+ }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
1568
+ path: _path + ".kind",
1569
+ expected: "\"minimum\"",
1570
+ value: input.kind
1571
+ }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
1572
+ path: _path + ".value",
1573
+ expected: "0",
1574
+ value: input.value
1575
+ }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
1576
+ path: _path + ".validate",
1577
+ expected: "\"0 <= $input\"",
1578
+ value: input.validate
1579
+ }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
1580
+ path: _path + ".exclusive",
1581
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
1582
+ value: input.exclusive
1583
+ }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
1584
+ path: _path + ".exclusive",
1585
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
1586
+ value: input.exclusive
1587
+ }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
1588
+ path: _path + ".exclusive[0]",
1589
+ expected: "\"minimum\"",
1590
+ value: input.exclusive[0]
1591
+ }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
1592
+ path: _path + ".exclusive[1]",
1593
+ expected: "\"exclusiveMinimum\"",
1594
+ value: input.exclusive[1]
1595
+ }, errorFactory))) || $guard(_exceptionable, {
1596
+ path: _path + ".exclusive",
1597
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
1598
+ value: input.exclusive
1599
+ }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
1600
+ path: _path + ".schema",
1601
+ expected: "__type.o2",
1602
+ value: input.schema
1603
+ }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
1604
+ path: _path + ".schema",
1605
+ expected: "__type.o2",
1606
+ value: input.schema
1607
+ }, errorFactory));
1608
+ const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
1609
+ path: _path + ".minimum",
1610
+ expected: "0",
1611
+ value: input.minimum
1612
+ }, errorFactory);
1613
+ const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
730
1614
  path: _path + ".message",
731
1615
  expected: "string",
732
1616
  value: input.message
733
- }, errorFactory);
1617
+ }, errorFactory)) && (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
1618
+ path: _path + ".type",
1619
+ expected: "(string | undefined)",
1620
+ value: input.type
1621
+ }, errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
1622
+ path: _path + ".code",
1623
+ expected: "(string | undefined)",
1624
+ value: input.code
1625
+ }, errorFactory)) && (undefined === input.exitCode || "number" === typeof input.exitCode || $guard(_exceptionable, {
1626
+ path: _path + ".exitCode",
1627
+ expected: "(number | undefined)",
1628
+ value: input.exitCode
1629
+ }, errorFactory)) && (undefined === input.signalCode || "number" === typeof input.signalCode || $guard(_exceptionable, {
1630
+ path: _path + ".signalCode",
1631
+ expected: "(number | undefined)",
1632
+ value: input.signalCode
1633
+ }, errorFactory)) && (undefined === input.statusCode || "number" === typeof input.statusCode || $guard(_exceptionable, {
1634
+ path: _path + ".statusCode",
1635
+ expected: "(number | undefined)",
1636
+ value: input.statusCode
1637
+ }, errorFactory)) && (undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || $guard(_exceptionable, {
1638
+ path: _path + ".headers",
1639
+ expected: "(Record<string, string> | undefined)",
1640
+ value: input.headers
1641
+ }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
1642
+ path: _path + ".headers",
1643
+ expected: "(Record<string, string> | undefined)",
1644
+ value: input.headers
1645
+ }, errorFactory)) && (undefined === input.data || ("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || $guard(_exceptionable, {
1646
+ path: _path + ".data",
1647
+ expected: "(object | undefined)",
1648
+ value: input.data
1649
+ }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
1650
+ path: _path + ".data",
1651
+ expected: "(object | undefined)",
1652
+ value: input.data
1653
+ }, errorFactory)) && (null === input.cause || undefined === input.cause || ("object" === typeof input.cause && null !== input.cause || $guard(_exceptionable, {
1654
+ path: _path + ".cause",
1655
+ expected: "(NxtError | null | undefined)",
1656
+ value: input.cause
1657
+ }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
1658
+ path: _path + ".cause",
1659
+ expected: "(NxtError | null | undefined)",
1660
+ value: input.cause
1661
+ }, errorFactory)) && (null === input.errors || undefined === input.errors || (Array.isArray(input.errors) || $guard(_exceptionable, {
1662
+ path: _path + ".errors",
1663
+ expected: "(Array<NxtError> | null | undefined)",
1664
+ value: input.errors
1665
+ }, errorFactory)) && input.errors.every((elem, _index7) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1666
+ path: _path + ".errors[" + _index7 + "]",
1667
+ expected: "NxtError",
1668
+ value: elem
1669
+ }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
1670
+ path: _path + ".errors[" + _index7 + "]",
1671
+ expected: "NxtError",
1672
+ value: elem
1673
+ }, errorFactory)) || $guard(_exceptionable, {
1674
+ path: _path + ".errors",
1675
+ expected: "(Array<NxtError> | null | undefined)",
1676
+ value: input.errors
1677
+ }, errorFactory));
1678
+ const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1679
+ const value = input[key];
1680
+ if (undefined === value)
1681
+ return true;
1682
+ return "string" === typeof value || $guard(_exceptionable, {
1683
+ path: _path + $join(key),
1684
+ expected: "string",
1685
+ value: value
1686
+ }, errorFactory);
1687
+ });
1688
+ const $ao7 = (input, _path, _exceptionable = true) => true;
734
1689
  return ("object" === typeof input && null !== input || $guard(true, {
735
1690
  path: _path + "",
736
1691
  expected: "FileStats",
@@ -793,6 +1748,10 @@ export const randomFileStats = generator => {
793
1748
  tags: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()),
794
1749
  resumable: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
795
1750
  mimeType: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1751
+ ranges: (generator?.array ?? $generator.array)(() => [
1752
+ $ro2(_recursive, _recursive ? 1 + _depth : _depth),
1753
+ $ro2(_recursive, _recursive ? 1 + _depth : _depth)
1754
+ ]),
796
1755
  hash: (generator?.customs ?? $generator.customs)?.string?.([
797
1756
  {
798
1757
  name: "Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -815,7 +1774,8 @@ export const randomFileStats = generator => {
815
1774
  completed: (generator?.boolean ?? $generator.boolean)(),
816
1775
  error: $pick([
817
1776
  () => null,
818
- () => (generator?.array ?? $generator.array)(() => $ro2(_recursive, _recursive ? 1 + _depth : _depth))
1777
+ () => (generator?.array ?? $generator.array)(() => $ro5(_recursive, _recursive ? 1 + _depth : _depth)),
1778
+ () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
819
1779
  ])()
820
1780
  });
821
1781
  const $ro1 = (_recursive = false, _depth = 0) => ({
@@ -837,20 +1797,95 @@ export const randomFileStats = generator => {
837
1797
  ])()
838
1798
  });
839
1799
  const $ro2 = (_recursive = false, _depth = 0) => ({
840
- message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1800
+ "typia.tag": $pick([
1801
+ () => undefined,
1802
+ () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
1803
+ ])()
1804
+ });
1805
+ const $ro3 = (_recursive = false, _depth = 0) => ({
1806
+ target: "number",
1807
+ kind: "minimum",
1808
+ value: 0,
1809
+ validate: "0 <= $input",
1810
+ exclusive: [
1811
+ "minimum",
1812
+ "exclusiveMinimum"
1813
+ ],
1814
+ schema: $ro4(_recursive, _recursive ? 1 + _depth : _depth)
1815
+ });
1816
+ const $ro4 = (_recursive = false, _depth = 0) => ({
1817
+ minimum: 0
1818
+ });
1819
+ const $ro5 = (_recursive = true, _depth = 0) => ({
1820
+ message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1821
+ type: $pick([
1822
+ () => undefined,
1823
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1824
+ ])(),
1825
+ code: $pick([
1826
+ () => undefined,
1827
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1828
+ ])(),
1829
+ exitCode: $pick([
1830
+ () => undefined,
1831
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1832
+ ])(),
1833
+ signalCode: $pick([
1834
+ () => undefined,
1835
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1836
+ ])(),
1837
+ statusCode: $pick([
1838
+ () => undefined,
1839
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1840
+ ])(),
1841
+ headers: $pick([
1842
+ () => undefined,
1843
+ () => $ro6(true, _recursive ? 1 + _depth : _depth)
1844
+ ])(),
1845
+ data: $pick([
1846
+ () => undefined,
1847
+ () => $ro7(true, _recursive ? 1 + _depth : _depth)
1848
+ ])(),
1849
+ cause: $pick([
1850
+ () => undefined,
1851
+ () => null,
1852
+ () => $ro5(true, _recursive ? 1 + _depth : _depth)
1853
+ ])(),
1854
+ errors: $pick([
1855
+ () => undefined,
1856
+ () => null,
1857
+ () => _recursive && 5 < _depth ? [] : 5 >= _depth ? (generator?.array ?? $generator.array)(() => $ro5(true, _recursive ? 1 + _depth : _depth)) : []
1858
+ ])()
841
1859
  });
1860
+ const $ro6 = (_recursive = false, _depth = 0) => {
1861
+ const output = {};
1862
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
1863
+ return output;
1864
+ };
1865
+ const $ro7 = (_recursive = false, _depth = 0) => {};
842
1866
  return $ro0();
843
1867
  };
844
1868
  export const assertGuardFileStats = (input, errorFactory) => {
845
1869
  const __is = input => {
846
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
1870
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
847
1871
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
848
- const $io2 = input => "string" === typeof input.message;
1872
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
1873
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
1874
+ const $io4 = input => 0 === input.minimum;
1875
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
1876
+ const $io6 = input => Object.keys(input).every(key => {
1877
+ const value = input[key];
1878
+ if (undefined === value)
1879
+ return true;
1880
+ return "string" === typeof value;
1881
+ });
1882
+ const $io7 = input => true;
849
1883
  return "object" === typeof input && null !== input && $io0(input);
850
1884
  };
851
1885
  if (false === __is(input))
852
1886
  ((input, _path, _exceptionable = true) => {
853
1887
  const $guard = __typia.createAssertGuard.guard;
1888
+ const $join = __typia.createAssertGuard.join;
854
1889
  const $ao0 = (input, _path, _exceptionable = true) => (null === input.position || "number" === typeof input.position && (0 <= input.position || $guard(_exceptionable, {
855
1890
  path: _path + ".position",
856
1891
  expected: "number & Minimum<0>",
@@ -955,6 +1990,42 @@ export const assertGuardFileStats = (input, errorFactory) => {
955
1990
  path: _path + ".mimeType",
956
1991
  expected: "string",
957
1992
  value: input.mimeType
1993
+ }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
1994
+ path: _path + ".ranges",
1995
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
1996
+ value: input.ranges
1997
+ }, errorFactory)) && input.ranges.every((elem, _index5) => (Array.isArray(elem) || $guard(_exceptionable, {
1998
+ path: _path + ".ranges[" + _index5 + "]",
1999
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
2000
+ value: elem
2001
+ }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
2002
+ path: _path + ".ranges[" + _index5 + "]",
2003
+ expected: "[Minimum<0>, Minimum<0>]",
2004
+ value: elem
2005
+ }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
2006
+ path: _path + ".ranges[" + _index5 + "][0]",
2007
+ expected: "Minimum<0>",
2008
+ value: elem[0]
2009
+ }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index5 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
2010
+ path: _path + ".ranges[" + _index5 + "][0]",
2011
+ expected: "Minimum<0>",
2012
+ value: elem[0]
2013
+ }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
2014
+ path: _path + ".ranges[" + _index5 + "][1]",
2015
+ expected: "Minimum<0>",
2016
+ value: elem[1]
2017
+ }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index5 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
2018
+ path: _path + ".ranges[" + _index5 + "][1]",
2019
+ expected: "Minimum<0>",
2020
+ value: elem[1]
2021
+ }, errorFactory))) || $guard(_exceptionable, {
2022
+ path: _path + ".ranges[" + _index5 + "]",
2023
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
2024
+ value: elem
2025
+ }, errorFactory)) || $guard(_exceptionable, {
2026
+ path: _path + ".ranges",
2027
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
2028
+ value: input.ranges
958
2029
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
959
2030
  path: _path + ".hash",
960
2031
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -979,23 +2050,27 @@ export const assertGuardFileStats = (input, errorFactory) => {
979
2050
  path: _path + ".completed",
980
2051
  expected: "boolean",
981
2052
  value: input.completed
982
- }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
2053
+ }, errorFactory)) && ((undefined !== input.error || $guard(_exceptionable, {
983
2054
  path: _path + ".error",
984
- expected: "(Array<__type>.o1 | null)",
2055
+ expected: "(Array<NxtError> | NxtError | null)",
985
2056
  value: input.error
986
- }, errorFactory)) && input.error.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
987
- path: _path + ".error[" + _index5 + "]",
988
- expected: "__type.o1",
2057
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index6) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
2058
+ path: _path + ".error[" + _index6 + "]",
2059
+ expected: "NxtError",
989
2060
  value: elem
990
- }, errorFactory)) && $ao2(elem, _path + ".error[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
991
- path: _path + ".error[" + _index5 + "]",
992
- expected: "__type.o1",
2061
+ }, errorFactory)) && $ao5(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
2062
+ path: _path + ".error[" + _index6 + "]",
2063
+ expected: "NxtError",
993
2064
  value: elem
2065
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
2066
+ path: _path + ".error",
2067
+ expected: "(Array<NxtError> | NxtError | null)",
2068
+ value: input.error
994
2069
  }, errorFactory)) || $guard(_exceptionable, {
995
2070
  path: _path + ".error",
996
- expected: "(Array<__type>.o1 | null)",
2071
+ expected: "(Array<NxtError> | NxtError | null)",
997
2072
  value: input.error
998
- }, errorFactory));
2073
+ }, errorFactory)));
999
2074
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1000
2075
  path: _path + ".file",
1001
2076
  expected: "(string | undefined)",
@@ -1013,11 +2088,141 @@ export const assertGuardFileStats = (input, errorFactory) => {
1013
2088
  expected: "(number | undefined)",
1014
2089
  value: input.end
1015
2090
  }, errorFactory));
1016
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
2091
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
2092
+ path: _path + "[\"typia.tag\"]",
2093
+ expected: "(__type.o1 | undefined)",
2094
+ value: input["typia.tag"]
2095
+ }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
2096
+ path: _path + "[\"typia.tag\"]",
2097
+ expected: "(__type.o1 | undefined)",
2098
+ value: input["typia.tag"]
2099
+ }, errorFactory);
2100
+ const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
2101
+ path: _path + ".target",
2102
+ expected: "\"number\"",
2103
+ value: input.target
2104
+ }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
2105
+ path: _path + ".kind",
2106
+ expected: "\"minimum\"",
2107
+ value: input.kind
2108
+ }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
2109
+ path: _path + ".value",
2110
+ expected: "0",
2111
+ value: input.value
2112
+ }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
2113
+ path: _path + ".validate",
2114
+ expected: "\"0 <= $input\"",
2115
+ value: input.validate
2116
+ }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
2117
+ path: _path + ".exclusive",
2118
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
2119
+ value: input.exclusive
2120
+ }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
2121
+ path: _path + ".exclusive",
2122
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
2123
+ value: input.exclusive
2124
+ }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
2125
+ path: _path + ".exclusive[0]",
2126
+ expected: "\"minimum\"",
2127
+ value: input.exclusive[0]
2128
+ }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
2129
+ path: _path + ".exclusive[1]",
2130
+ expected: "\"exclusiveMinimum\"",
2131
+ value: input.exclusive[1]
2132
+ }, errorFactory))) || $guard(_exceptionable, {
2133
+ path: _path + ".exclusive",
2134
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
2135
+ value: input.exclusive
2136
+ }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
2137
+ path: _path + ".schema",
2138
+ expected: "__type.o2",
2139
+ value: input.schema
2140
+ }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
2141
+ path: _path + ".schema",
2142
+ expected: "__type.o2",
2143
+ value: input.schema
2144
+ }, errorFactory));
2145
+ const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
2146
+ path: _path + ".minimum",
2147
+ expected: "0",
2148
+ value: input.minimum
2149
+ }, errorFactory);
2150
+ const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1017
2151
  path: _path + ".message",
1018
2152
  expected: "string",
1019
2153
  value: input.message
1020
- }, errorFactory);
2154
+ }, errorFactory)) && (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
2155
+ path: _path + ".type",
2156
+ expected: "(string | undefined)",
2157
+ value: input.type
2158
+ }, errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
2159
+ path: _path + ".code",
2160
+ expected: "(string | undefined)",
2161
+ value: input.code
2162
+ }, errorFactory)) && (undefined === input.exitCode || "number" === typeof input.exitCode || $guard(_exceptionable, {
2163
+ path: _path + ".exitCode",
2164
+ expected: "(number | undefined)",
2165
+ value: input.exitCode
2166
+ }, errorFactory)) && (undefined === input.signalCode || "number" === typeof input.signalCode || $guard(_exceptionable, {
2167
+ path: _path + ".signalCode",
2168
+ expected: "(number | undefined)",
2169
+ value: input.signalCode
2170
+ }, errorFactory)) && (undefined === input.statusCode || "number" === typeof input.statusCode || $guard(_exceptionable, {
2171
+ path: _path + ".statusCode",
2172
+ expected: "(number | undefined)",
2173
+ value: input.statusCode
2174
+ }, errorFactory)) && (undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || $guard(_exceptionable, {
2175
+ path: _path + ".headers",
2176
+ expected: "(Record<string, string> | undefined)",
2177
+ value: input.headers
2178
+ }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
2179
+ path: _path + ".headers",
2180
+ expected: "(Record<string, string> | undefined)",
2181
+ value: input.headers
2182
+ }, errorFactory)) && (undefined === input.data || ("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || $guard(_exceptionable, {
2183
+ path: _path + ".data",
2184
+ expected: "(object | undefined)",
2185
+ value: input.data
2186
+ }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
2187
+ path: _path + ".data",
2188
+ expected: "(object | undefined)",
2189
+ value: input.data
2190
+ }, errorFactory)) && (null === input.cause || undefined === input.cause || ("object" === typeof input.cause && null !== input.cause || $guard(_exceptionable, {
2191
+ path: _path + ".cause",
2192
+ expected: "(NxtError | null | undefined)",
2193
+ value: input.cause
2194
+ }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
2195
+ path: _path + ".cause",
2196
+ expected: "(NxtError | null | undefined)",
2197
+ value: input.cause
2198
+ }, errorFactory)) && (null === input.errors || undefined === input.errors || (Array.isArray(input.errors) || $guard(_exceptionable, {
2199
+ path: _path + ".errors",
2200
+ expected: "(Array<NxtError> | null | undefined)",
2201
+ value: input.errors
2202
+ }, errorFactory)) && input.errors.every((elem, _index7) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
2203
+ path: _path + ".errors[" + _index7 + "]",
2204
+ expected: "NxtError",
2205
+ value: elem
2206
+ }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
2207
+ path: _path + ".errors[" + _index7 + "]",
2208
+ expected: "NxtError",
2209
+ value: elem
2210
+ }, errorFactory)) || $guard(_exceptionable, {
2211
+ path: _path + ".errors",
2212
+ expected: "(Array<NxtError> | null | undefined)",
2213
+ value: input.errors
2214
+ }, errorFactory));
2215
+ const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2216
+ const value = input[key];
2217
+ if (undefined === value)
2218
+ return true;
2219
+ return "string" === typeof value || $guard(_exceptionable, {
2220
+ path: _path + $join(key),
2221
+ expected: "string",
2222
+ value: value
2223
+ }, errorFactory);
2224
+ });
2225
+ const $ao7 = (input, _path, _exceptionable = true) => true;
1021
2226
  return ("object" === typeof input && null !== input || $guard(true, {
1022
2227
  path: _path + "",
1023
2228
  expected: "FileStats",
@@ -1031,23 +2236,105 @@ export const assertGuardFileStats = (input, errorFactory) => {
1031
2236
  };
1032
2237
  export const stringifyFileStats = input => {
1033
2238
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1034
- const $io2 = input => "string" === typeof input.message;
2239
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
2240
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
2241
+ const $io4 = input => 0 === input.minimum;
2242
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
2243
+ const $io6 = input => Object.keys(input).every(key => {
2244
+ const value = input[key];
2245
+ if (undefined === value)
2246
+ return true;
2247
+ return "string" === typeof value;
2248
+ });
2249
+ const $io7 = input => true;
1035
2250
  const $string = __typia.json.createStringify.string;
2251
+ const $throws = __typia.json.createStringify.throws;
1036
2252
  const $tail = __typia.json.createStringify.tail;
1037
- const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"}}`;
2253
+ const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2254
+ if (Array.isArray(input.error))
2255
+ return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
2256
+ if ("object" === typeof input.error && null !== input.error)
2257
+ return $so5(input.error);
2258
+ $throws({
2259
+ expected: "(Array<NxtError> | NxtError | null)",
2260
+ value: input.error
2261
+ });
2262
+ })() : "null"}}`;
1038
2263
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
2264
+ const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
2265
+ const $so3 = input => `{"target":${(() => {
2266
+ if ("string" === typeof input.target)
2267
+ return $string(input.target);
2268
+ if ("string" === typeof input.target)
2269
+ return "\"" + input.target + "\"";
2270
+ $throws({
2271
+ expected: "\"number\"",
2272
+ value: input.target
2273
+ });
2274
+ })()},"kind":${(() => {
2275
+ if ("string" === typeof input.kind)
2276
+ return $string(input.kind);
2277
+ if ("string" === typeof input.kind)
2278
+ return "\"" + input.kind + "\"";
2279
+ $throws({
2280
+ expected: "\"minimum\"",
2281
+ value: input.kind
2282
+ });
2283
+ })()},"value":${input.value},"validate":${(() => {
2284
+ if ("string" === typeof input.validate)
2285
+ return $string(input.validate);
2286
+ if ("string" === typeof input.validate)
2287
+ return "\"" + input.validate + "\"";
2288
+ $throws({
2289
+ expected: "\"0 <= $input\"",
2290
+ value: input.validate
2291
+ });
2292
+ })()},"exclusive":${`[${(() => {
2293
+ if ("string" === typeof input.exclusive[0])
2294
+ return $string(input.exclusive[0]);
2295
+ if ("string" === typeof input.exclusive[0])
2296
+ return "\"" + input.exclusive[0] + "\"";
2297
+ $throws({
2298
+ expected: "\"minimum\"",
2299
+ value: input.exclusive[0]
2300
+ });
2301
+ })()},${(() => {
2302
+ if ("string" === typeof input.exclusive[1])
2303
+ return $string(input.exclusive[1]);
2304
+ if ("string" === typeof input.exclusive[1])
2305
+ return "\"" + input.exclusive[1] + "\"";
2306
+ $throws({
2307
+ expected: "\"exclusiveMinimum\"",
2308
+ value: input.exclusive[1]
2309
+ });
2310
+ })()}]`},"schema":${$so4(input.schema)}}`;
2311
+ const $so4 = input => `{"minimum":${input.minimum}}`;
2312
+ const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
2313
+ const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2314
+ return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
1039
2315
  return $so0(input);
1040
2316
  };
1041
2317
  export const assertStringifyFileStats = (input, errorFactory) => { const assert = (input, errorFactory) => {
1042
2318
  const __is = input => {
1043
- const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io2(elem)));
2319
+ const $io0 = input => (null === input.position || "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000))) && "boolean" === typeof input.uploading && (Array.isArray(input.zones) && input.zones.every(elem => "string" === typeof elem)) && (Array.isArray(input.replicas) && input.replicas.every(elem => "string" === typeof elem)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && (null === input.size || "number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && "boolean" === typeof input.seekable && "boolean" === typeof input.deleted && (Array.isArray(input.refs) && input.refs.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && "string" === typeof input.resumable && "string" === typeof input.mimeType && (Array.isArray(input.ranges) && input.ranges.every(elem => Array.isArray(elem) && (elem.length === 2 && ("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) && $io2(elem[0])) && ("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) && $io2(elem[1]))))) && ("string" === typeof input.hash && /^([A-Fa-f0-9]{32})?$/.test(input.hash)) && ("number" === typeof input.btime && (0 <= input.btime && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000))) && "boolean" === typeof input.completed && (undefined !== input.error && (null === input.error || (Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io5(elem)) || "object" === typeof input.error && null !== input.error && $io5(input.error))));
1044
2320
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset && !Number.isNaN(input.offset)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end));
1045
- const $io2 = input => "string" === typeof input.message;
2321
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
2322
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
2323
+ const $io4 = input => 0 === input.minimum;
2324
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode)) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
2325
+ const $io6 = input => Object.keys(input).every(key => {
2326
+ const value = input[key];
2327
+ if (undefined === value)
2328
+ return true;
2329
+ return "string" === typeof value;
2330
+ });
2331
+ const $io7 = input => true;
1046
2332
  return "object" === typeof input && null !== input && $io0(input);
1047
2333
  };
1048
2334
  if (false === __is(input))
1049
2335
  ((input, _path, _exceptionable = true) => {
1050
2336
  const $guard = __typia.json.createAssertStringify.guard;
2337
+ const $join = __typia.json.createAssertStringify.join;
1051
2338
  const $ao0 = (input, _path, _exceptionable = true) => (null === input.position || "number" === typeof input.position && (0 <= input.position || $guard(_exceptionable, {
1052
2339
  path: _path + ".position",
1053
2340
  expected: "number & Minimum<0>",
@@ -1152,6 +2439,42 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
1152
2439
  path: _path + ".mimeType",
1153
2440
  expected: "string",
1154
2441
  value: input.mimeType
2442
+ }, errorFactory)) && ((Array.isArray(input.ranges) || $guard(_exceptionable, {
2443
+ path: _path + ".ranges",
2444
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
2445
+ value: input.ranges
2446
+ }, errorFactory)) && input.ranges.every((elem, _index5) => (Array.isArray(elem) || $guard(_exceptionable, {
2447
+ path: _path + ".ranges[" + _index5 + "]",
2448
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
2449
+ value: elem
2450
+ }, errorFactory)) && ((elem.length === 2 || $guard(_exceptionable, {
2451
+ path: _path + ".ranges[" + _index5 + "]",
2452
+ expected: "[Minimum<0>, Minimum<0>]",
2453
+ value: elem
2454
+ }, errorFactory)) && (("object" === typeof elem[0] && null !== elem[0] && false === Array.isArray(elem[0]) || $guard(_exceptionable, {
2455
+ path: _path + ".ranges[" + _index5 + "][0]",
2456
+ expected: "Minimum<0>",
2457
+ value: elem[0]
2458
+ }, errorFactory)) && $ao2(elem[0], _path + ".ranges[" + _index5 + "][0]", true && _exceptionable) || $guard(_exceptionable, {
2459
+ path: _path + ".ranges[" + _index5 + "][0]",
2460
+ expected: "Minimum<0>",
2461
+ value: elem[0]
2462
+ }, errorFactory)) && (("object" === typeof elem[1] && null !== elem[1] && false === Array.isArray(elem[1]) || $guard(_exceptionable, {
2463
+ path: _path + ".ranges[" + _index5 + "][1]",
2464
+ expected: "Minimum<0>",
2465
+ value: elem[1]
2466
+ }, errorFactory)) && $ao2(elem[1], _path + ".ranges[" + _index5 + "][1]", true && _exceptionable) || $guard(_exceptionable, {
2467
+ path: _path + ".ranges[" + _index5 + "][1]",
2468
+ expected: "Minimum<0>",
2469
+ value: elem[1]
2470
+ }, errorFactory))) || $guard(_exceptionable, {
2471
+ path: _path + ".ranges[" + _index5 + "]",
2472
+ expected: "[start: Minimum<0>, end: Minimum<0>]",
2473
+ value: elem
2474
+ }, errorFactory)) || $guard(_exceptionable, {
2475
+ path: _path + ".ranges",
2476
+ expected: "Array<[start: Minimum<0>, end: Minimum<0>]>",
2477
+ value: input.ranges
1155
2478
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
1156
2479
  path: _path + ".hash",
1157
2480
  expected: "string & Pattern<\"^([A-Fa-f0-9]{32})?$\">",
@@ -1176,23 +2499,27 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
1176
2499
  path: _path + ".completed",
1177
2500
  expected: "boolean",
1178
2501
  value: input.completed
1179
- }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
2502
+ }, errorFactory)) && ((undefined !== input.error || $guard(_exceptionable, {
1180
2503
  path: _path + ".error",
1181
- expected: "(Array<__type>.o1 | null)",
2504
+ expected: "(Array<NxtError> | NxtError | null)",
1182
2505
  value: input.error
1183
- }, errorFactory)) && input.error.every((elem, _index5) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1184
- path: _path + ".error[" + _index5 + "]",
1185
- expected: "__type.o1",
2506
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) && input.error.every((elem, _index6) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
2507
+ path: _path + ".error[" + _index6 + "]",
2508
+ expected: "NxtError",
1186
2509
  value: elem
1187
- }, errorFactory)) && $ao2(elem, _path + ".error[" + _index5 + "]", true && _exceptionable) || $guard(_exceptionable, {
1188
- path: _path + ".error[" + _index5 + "]",
1189
- expected: "__type.o1",
2510
+ }, errorFactory)) && $ao5(elem, _path + ".error[" + _index6 + "]", true && _exceptionable) || $guard(_exceptionable, {
2511
+ path: _path + ".error[" + _index6 + "]",
2512
+ expected: "NxtError",
1190
2513
  value: elem
2514
+ }, errorFactory)) || "object" === typeof input.error && null !== input.error && $ao5(input.error, _path + ".error", true && _exceptionable) || $guard(_exceptionable, {
2515
+ path: _path + ".error",
2516
+ expected: "(Array<NxtError> | NxtError | null)",
2517
+ value: input.error
1191
2518
  }, errorFactory)) || $guard(_exceptionable, {
1192
2519
  path: _path + ".error",
1193
- expected: "(Array<__type>.o1 | null)",
2520
+ expected: "(Array<NxtError> | NxtError | null)",
1194
2521
  value: input.error
1195
- }, errorFactory));
2522
+ }, errorFactory)));
1196
2523
  const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1197
2524
  path: _path + ".file",
1198
2525
  expected: "(string | undefined)",
@@ -1210,11 +2537,141 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
1210
2537
  expected: "(number | undefined)",
1211
2538
  value: input.end
1212
2539
  }, errorFactory));
1213
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
2540
+ const $ao2 = (input, _path, _exceptionable = true) => undefined === input["typia.tag"] || ("object" === typeof input["typia.tag"] && null !== input["typia.tag"] || $guard(_exceptionable, {
2541
+ path: _path + "[\"typia.tag\"]",
2542
+ expected: "(__type.o1 | undefined)",
2543
+ value: input["typia.tag"]
2544
+ }, errorFactory)) && $ao3(input["typia.tag"], _path + "[\"typia.tag\"]", true && _exceptionable) || $guard(_exceptionable, {
2545
+ path: _path + "[\"typia.tag\"]",
2546
+ expected: "(__type.o1 | undefined)",
2547
+ value: input["typia.tag"]
2548
+ }, errorFactory);
2549
+ const $ao3 = (input, _path, _exceptionable = true) => ("number" === input.target || $guard(_exceptionable, {
2550
+ path: _path + ".target",
2551
+ expected: "\"number\"",
2552
+ value: input.target
2553
+ }, errorFactory)) && ("minimum" === input.kind || $guard(_exceptionable, {
2554
+ path: _path + ".kind",
2555
+ expected: "\"minimum\"",
2556
+ value: input.kind
2557
+ }, errorFactory)) && (0 === input.value || $guard(_exceptionable, {
2558
+ path: _path + ".value",
2559
+ expected: "0",
2560
+ value: input.value
2561
+ }, errorFactory)) && ("0 <= $input" === input.validate || $guard(_exceptionable, {
2562
+ path: _path + ".validate",
2563
+ expected: "\"0 <= $input\"",
2564
+ value: input.validate
2565
+ }, errorFactory)) && ((Array.isArray(input.exclusive) || $guard(_exceptionable, {
2566
+ path: _path + ".exclusive",
2567
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
2568
+ value: input.exclusive
2569
+ }, errorFactory)) && ((input.exclusive.length === 2 || $guard(_exceptionable, {
2570
+ path: _path + ".exclusive",
2571
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
2572
+ value: input.exclusive
2573
+ }, errorFactory)) && ("minimum" === input.exclusive[0] || $guard(_exceptionable, {
2574
+ path: _path + ".exclusive[0]",
2575
+ expected: "\"minimum\"",
2576
+ value: input.exclusive[0]
2577
+ }, errorFactory)) && ("exclusiveMinimum" === input.exclusive[1] || $guard(_exceptionable, {
2578
+ path: _path + ".exclusive[1]",
2579
+ expected: "\"exclusiveMinimum\"",
2580
+ value: input.exclusive[1]
2581
+ }, errorFactory))) || $guard(_exceptionable, {
2582
+ path: _path + ".exclusive",
2583
+ expected: "[\"minimum\", \"exclusiveMinimum\"]",
2584
+ value: input.exclusive
2585
+ }, errorFactory)) && (("object" === typeof input.schema && null !== input.schema || $guard(_exceptionable, {
2586
+ path: _path + ".schema",
2587
+ expected: "__type.o2",
2588
+ value: input.schema
2589
+ }, errorFactory)) && $ao4(input.schema, _path + ".schema", true && _exceptionable) || $guard(_exceptionable, {
2590
+ path: _path + ".schema",
2591
+ expected: "__type.o2",
2592
+ value: input.schema
2593
+ }, errorFactory));
2594
+ const $ao4 = (input, _path, _exceptionable = true) => 0 === input.minimum || $guard(_exceptionable, {
2595
+ path: _path + ".minimum",
2596
+ expected: "0",
2597
+ value: input.minimum
2598
+ }, errorFactory);
2599
+ const $ao5 = (input, _path, _exceptionable = true) => ("string" === typeof input.message || $guard(_exceptionable, {
1214
2600
  path: _path + ".message",
1215
2601
  expected: "string",
1216
2602
  value: input.message
1217
- }, errorFactory);
2603
+ }, errorFactory)) && (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
2604
+ path: _path + ".type",
2605
+ expected: "(string | undefined)",
2606
+ value: input.type
2607
+ }, errorFactory)) && (undefined === input.code || "string" === typeof input.code || $guard(_exceptionable, {
2608
+ path: _path + ".code",
2609
+ expected: "(string | undefined)",
2610
+ value: input.code
2611
+ }, errorFactory)) && (undefined === input.exitCode || "number" === typeof input.exitCode && !Number.isNaN(input.exitCode) || $guard(_exceptionable, {
2612
+ path: _path + ".exitCode",
2613
+ expected: "(number | undefined)",
2614
+ value: input.exitCode
2615
+ }, errorFactory)) && (undefined === input.signalCode || "number" === typeof input.signalCode && !Number.isNaN(input.signalCode) || $guard(_exceptionable, {
2616
+ path: _path + ".signalCode",
2617
+ expected: "(number | undefined)",
2618
+ value: input.signalCode
2619
+ }, errorFactory)) && (undefined === input.statusCode || "number" === typeof input.statusCode && !Number.isNaN(input.statusCode) || $guard(_exceptionable, {
2620
+ path: _path + ".statusCode",
2621
+ expected: "(number | undefined)",
2622
+ value: input.statusCode
2623
+ }, errorFactory)) && (undefined === input.headers || ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || $guard(_exceptionable, {
2624
+ path: _path + ".headers",
2625
+ expected: "(Record<string, string> | undefined)",
2626
+ value: input.headers
2627
+ }, errorFactory)) && $ao6(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
2628
+ path: _path + ".headers",
2629
+ expected: "(Record<string, string> | undefined)",
2630
+ value: input.headers
2631
+ }, errorFactory)) && (undefined === input.data || ("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || $guard(_exceptionable, {
2632
+ path: _path + ".data",
2633
+ expected: "(object | undefined)",
2634
+ value: input.data
2635
+ }, errorFactory)) && $ao7(input.data, _path + ".data", true && _exceptionable) || $guard(_exceptionable, {
2636
+ path: _path + ".data",
2637
+ expected: "(object | undefined)",
2638
+ value: input.data
2639
+ }, errorFactory)) && (null === input.cause || undefined === input.cause || ("object" === typeof input.cause && null !== input.cause || $guard(_exceptionable, {
2640
+ path: _path + ".cause",
2641
+ expected: "(NxtError | null | undefined)",
2642
+ value: input.cause
2643
+ }, errorFactory)) && $ao5(input.cause, _path + ".cause", true && _exceptionable) || $guard(_exceptionable, {
2644
+ path: _path + ".cause",
2645
+ expected: "(NxtError | null | undefined)",
2646
+ value: input.cause
2647
+ }, errorFactory)) && (null === input.errors || undefined === input.errors || (Array.isArray(input.errors) || $guard(_exceptionable, {
2648
+ path: _path + ".errors",
2649
+ expected: "(Array<NxtError> | null | undefined)",
2650
+ value: input.errors
2651
+ }, errorFactory)) && input.errors.every((elem, _index7) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
2652
+ path: _path + ".errors[" + _index7 + "]",
2653
+ expected: "NxtError",
2654
+ value: elem
2655
+ }, errorFactory)) && $ao5(elem, _path + ".errors[" + _index7 + "]", true && _exceptionable) || $guard(_exceptionable, {
2656
+ path: _path + ".errors[" + _index7 + "]",
2657
+ expected: "NxtError",
2658
+ value: elem
2659
+ }, errorFactory)) || $guard(_exceptionable, {
2660
+ path: _path + ".errors",
2661
+ expected: "(Array<NxtError> | null | undefined)",
2662
+ value: input.errors
2663
+ }, errorFactory));
2664
+ const $ao6 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
2665
+ const value = input[key];
2666
+ if (undefined === value)
2667
+ return true;
2668
+ return "string" === typeof value || $guard(_exceptionable, {
2669
+ path: _path + $join(key),
2670
+ expected: "string",
2671
+ value: value
2672
+ }, errorFactory);
2673
+ });
2674
+ const $ao7 = (input, _path, _exceptionable = true) => true;
1218
2675
  return ("object" === typeof input && null !== input || $guard(true, {
1219
2676
  path: _path + "",
1220
2677
  expected: "FileStats",
@@ -1228,10 +2685,81 @@ export const assertStringifyFileStats = (input, errorFactory) => { const assert
1228
2685
  return input;
1229
2686
  }; const stringify = input => {
1230
2687
  const $io1 = input => (undefined === input.file || "string" === typeof input.file) && (undefined === input.offset || "number" === typeof input.offset) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end);
1231
- const $io2 = input => "string" === typeof input.message;
2688
+ const $io2 = input => undefined === input["typia.tag"] || "object" === typeof input["typia.tag"] && null !== input["typia.tag"] && $io3(input["typia.tag"]);
2689
+ const $io3 = input => "number" === input.target && "minimum" === input.kind && 0 === input.value && "0 <= $input" === input.validate && (Array.isArray(input.exclusive) && (input.exclusive.length === 2 && "minimum" === input.exclusive[0] && "exclusiveMinimum" === input.exclusive[1])) && ("object" === typeof input.schema && null !== input.schema && $io4(input.schema));
2690
+ const $io4 = input => 0 === input.minimum;
2691
+ const $io5 = input => "string" === typeof input.message && (undefined === input.type || "string" === typeof input.type) && (undefined === input.code || "string" === typeof input.code) && (undefined === input.exitCode || "number" === typeof input.exitCode) && (undefined === input.signalCode || "number" === typeof input.signalCode) && (undefined === input.statusCode || "number" === typeof input.statusCode) && (undefined === input.headers || "object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io6(input.headers)) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && $io7(input.data)) && (null === input.cause || undefined === input.cause || "object" === typeof input.cause && null !== input.cause && $io5(input.cause)) && (null === input.errors || undefined === input.errors || Array.isArray(input.errors) && input.errors.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
2692
+ const $io6 = input => Object.keys(input).every(key => {
2693
+ const value = input[key];
2694
+ if (undefined === value)
2695
+ return true;
2696
+ return "string" === typeof value;
2697
+ });
2698
+ const $io7 = input => true;
1232
2699
  const $string = __typia.json.createAssertStringify.string;
2700
+ const $throws = __typia.json.createAssertStringify.throws;
1233
2701
  const $tail = __typia.json.createAssertStringify.tail;
1234
- const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"}}`;
2702
+ const $so0 = input => `{"position":${null !== input.position ? input.position : "null"},"uploading":${input.uploading},"zones":${`[${input.zones.map(elem => $string(elem)).join(",")}]`},"replicas":${`[${input.replicas.map(elem => $string(elem)).join(",")}]`},"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"seekable":${input.seekable},"deleted":${input.deleted},"refs":${`[${input.refs.map(elem => $so1(elem)).join(",")}]`},"tags":${`[${input.tags.map(elem => $string(elem)).join(",")}]`},"resumable":${$string(input.resumable)},"mimeType":${$string(input.mimeType)},"ranges":${`[${input.ranges.map(elem => `[${$so2(elem[0])},${$so2(elem[1])}]`).join(",")}]`},"hash":${$string(input.hash)},"btime":${input.btime},"completed":${input.completed},"error":${null !== input.error ? (() => {
2703
+ if (Array.isArray(input.error))
2704
+ return `[${input.error.map(elem => $so5(elem)).join(",")}]`;
2705
+ if ("object" === typeof input.error && null !== input.error)
2706
+ return $so5(input.error);
2707
+ $throws({
2708
+ expected: "(Array<NxtError> | NxtError | null)",
2709
+ value: input.error
2710
+ });
2711
+ })() : "null"}}`;
1235
2712
  const $so1 = input => `{${$tail(`${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined},`}${undefined === input.offset ? "" : `"offset":${undefined !== input.offset ? input.offset : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined}`}`)}}`;
2713
+ const $so2 = input => `{${$tail(`${undefined === input["typia.tag"] ? "" : `"typia.tag":${undefined !== input["typia.tag"] ? $so3(input["typia.tag"]) : undefined}`}`)}}`;
2714
+ const $so3 = input => `{"target":${(() => {
2715
+ if ("string" === typeof input.target)
2716
+ return $string(input.target);
2717
+ if ("string" === typeof input.target)
2718
+ return "\"" + input.target + "\"";
2719
+ $throws({
2720
+ expected: "\"number\"",
2721
+ value: input.target
2722
+ });
2723
+ })()},"kind":${(() => {
2724
+ if ("string" === typeof input.kind)
2725
+ return $string(input.kind);
2726
+ if ("string" === typeof input.kind)
2727
+ return "\"" + input.kind + "\"";
2728
+ $throws({
2729
+ expected: "\"minimum\"",
2730
+ value: input.kind
2731
+ });
2732
+ })()},"value":${input.value},"validate":${(() => {
2733
+ if ("string" === typeof input.validate)
2734
+ return $string(input.validate);
2735
+ if ("string" === typeof input.validate)
2736
+ return "\"" + input.validate + "\"";
2737
+ $throws({
2738
+ expected: "\"0 <= $input\"",
2739
+ value: input.validate
2740
+ });
2741
+ })()},"exclusive":${`[${(() => {
2742
+ if ("string" === typeof input.exclusive[0])
2743
+ return $string(input.exclusive[0]);
2744
+ if ("string" === typeof input.exclusive[0])
2745
+ return "\"" + input.exclusive[0] + "\"";
2746
+ $throws({
2747
+ expected: "\"minimum\"",
2748
+ value: input.exclusive[0]
2749
+ });
2750
+ })()},${(() => {
2751
+ if ("string" === typeof input.exclusive[1])
2752
+ return $string(input.exclusive[1]);
2753
+ if ("string" === typeof input.exclusive[1])
2754
+ return "\"" + input.exclusive[1] + "\"";
2755
+ $throws({
2756
+ expected: "\"exclusiveMinimum\"",
2757
+ value: input.exclusive[1]
2758
+ });
2759
+ })()}]`},"schema":${$so4(input.schema)}}`;
2760
+ const $so4 = input => `{"minimum":${input.minimum}}`;
2761
+ const $so5 = input => `{${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.code ? "" : `"code":${undefined !== input.code ? $string(input.code) : undefined},`}${undefined === input.exitCode ? "" : `"exitCode":${undefined !== input.exitCode ? input.exitCode : undefined},`}${undefined === input.signalCode ? "" : `"signalCode":${undefined !== input.signalCode ? input.signalCode : undefined},`}${undefined === input.statusCode ? "" : `"statusCode":${undefined !== input.statusCode ? input.statusCode : undefined},`}${undefined === input.headers ? "" : `"headers":${undefined !== input.headers ? $so6(input.headers) : undefined},`}${undefined === input.data ? "" : `"data":${undefined !== input.data ? "{}" : undefined},`}${undefined === input.cause ? "" : `"cause":${undefined !== input.cause ? null !== input.cause ? $so5(input.cause) : "null" : undefined},`}${undefined === input.errors ? "" : `"errors":${undefined !== input.errors ? null !== input.errors ? `[${input.errors.map(elem => $so5(elem)).join(",")}]` : "null" : undefined},`}"message":${$string(input.message)}}`;
2762
+ const $so6 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
2763
+ return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
1236
2764
  return $so0(input);
1237
2765
  }; return stringify(assert(input, errorFactory)); };