@nxtedition/types 1.2.4 → 1.2.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,10 +1,14 @@
1
1
  import __typia from "typia";
2
2
  export const isBlock = input => {
3
- return "object" === typeof input && null !== input && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path);
3
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
4
+ const $io1 = input => "string" === typeof input.message;
5
+ return "object" === typeof input && null !== input && $io0(input);
4
6
  };
5
7
  export const assertBlock = (input, errorFactory) => {
6
8
  const __is = input => {
7
- return "object" === typeof input && null !== input && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path);
9
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
10
+ const $io1 = input => "string" === typeof input.message;
11
+ return "object" === typeof input && null !== input && $io0(input);
8
12
  };
9
13
  if (false === __is(input))
10
14
  ((input, _path, _exceptionable = true) => {
@@ -37,25 +41,25 @@ export const assertBlock = (input, errorFactory) => {
37
41
  path: _path + ".offset",
38
42
  expected: "number & Minimum<0>",
39
43
  value: input.offset
40
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
44
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
41
45
  path: _path + ".offset",
42
- expected: "number & Type<\"uint32\">",
46
+ expected: "number & Type<\"uint64\">",
43
47
  value: input.offset
44
48
  }, errorFactory)) || $guard(_exceptionable, {
45
49
  path: _path + ".offset",
46
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
50
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
47
51
  value: input.offset
48
52
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
49
53
  path: _path + ".size",
50
54
  expected: "number & Minimum<0>",
51
55
  value: input.size
52
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
56
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
53
57
  path: _path + ".size",
54
- expected: "number & Type<\"uint32\">",
58
+ expected: "number & Type<\"uint64\">",
55
59
  value: input.size
56
60
  }, errorFactory)) || $guard(_exceptionable, {
57
61
  path: _path + ".size",
58
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
62
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
59
63
  value: input.size
60
64
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
61
65
  path: _path + ".hash",
@@ -69,19 +73,40 @@ export const assertBlock = (input, errorFactory) => {
69
73
  path: _path + ".btime",
70
74
  expected: "number & Minimum<0>",
71
75
  value: input.btime
72
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
76
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
73
77
  path: _path + ".btime",
74
- expected: "number & Type<\"uint32\">",
78
+ expected: "number & Type<\"uint64\">",
75
79
  value: input.btime
76
80
  }, errorFactory)) || $guard(_exceptionable, {
77
81
  path: _path + ".btime",
78
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
82
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
79
83
  value: input.btime
80
84
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
81
85
  path: _path + ".path",
82
86
  expected: "string",
83
87
  value: input.path
88
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
89
+ path: _path + ".error",
90
+ expected: "(Array<__type> | null)",
91
+ value: input.error
92
+ }, errorFactory)) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
93
+ path: _path + ".error[" + _index1 + "]",
94
+ expected: "__type",
95
+ value: elem
96
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
97
+ path: _path + ".error[" + _index1 + "]",
98
+ expected: "__type",
99
+ value: elem
100
+ }, errorFactory)) || $guard(_exceptionable, {
101
+ path: _path + ".error",
102
+ expected: "(Array<__type> | null)",
103
+ value: input.error
84
104
  }, errorFactory));
105
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
106
+ path: _path + ".message",
107
+ expected: "string",
108
+ value: input.message
109
+ }, errorFactory);
85
110
  return ("object" === typeof input && null !== input || $guard(true, {
86
111
  path: _path + "",
87
112
  expected: "Block",
@@ -96,6 +121,7 @@ export const assertBlock = (input, errorFactory) => {
96
121
  };
97
122
  export const randomBlock = generator => {
98
123
  const $generator = __typia.createRandom.generator;
124
+ const $pick = __typia.createRandom.pick;
99
125
  const $ro0 = (_recursive = false, _depth = 0) => ({
100
126
  id: (generator?.customs ?? $generator.customs)?.string?.([
101
127
  {
@@ -125,9 +151,9 @@ export const randomBlock = generator => {
125
151
  value: 0
126
152
  },
127
153
  {
128
- name: "Type<\"uint32\">",
154
+ name: "Type<\"uint64\">",
129
155
  kind: "type",
130
- value: "uint32"
156
+ value: "uint64"
131
157
  }
132
158
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
133
159
  size: (generator?.customs ?? $generator.customs)?.number?.([
@@ -137,9 +163,9 @@ export const randomBlock = generator => {
137
163
  value: 0
138
164
  },
139
165
  {
140
- name: "Type<\"uint32\">",
166
+ name: "Type<\"uint64\">",
141
167
  kind: "type",
142
- value: "uint32"
168
+ value: "uint64"
143
169
  }
144
170
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
145
171
  hash: (generator?.customs ?? $generator.customs)?.string?.([
@@ -156,18 +182,27 @@ export const randomBlock = generator => {
156
182
  value: 0
157
183
  },
158
184
  {
159
- name: "Type<\"uint32\">",
185
+ name: "Type<\"uint64\">",
160
186
  kind: "type",
161
- value: "uint32"
187
+ value: "uint64"
162
188
  }
163
189
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
164
- path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
190
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
191
+ error: $pick([
192
+ () => null,
193
+ () => (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
194
+ ])()
195
+ });
196
+ const $ro1 = (_recursive = false, _depth = 0) => ({
197
+ message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
165
198
  });
166
199
  return $ro0();
167
200
  };
168
201
  export const assertGuardBlock = (input, errorFactory) => {
169
202
  const __is = input => {
170
- return "object" === typeof input && null !== input && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path);
203
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
204
+ const $io1 = input => "string" === typeof input.message;
205
+ return "object" === typeof input && null !== input && $io0(input);
171
206
  };
172
207
  if (false === __is(input))
173
208
  ((input, _path, _exceptionable = true) => {
@@ -200,25 +235,25 @@ export const assertGuardBlock = (input, errorFactory) => {
200
235
  path: _path + ".offset",
201
236
  expected: "number & Minimum<0>",
202
237
  value: input.offset
203
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
238
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
204
239
  path: _path + ".offset",
205
- expected: "number & Type<\"uint32\">",
240
+ expected: "number & Type<\"uint64\">",
206
241
  value: input.offset
207
242
  }, errorFactory)) || $guard(_exceptionable, {
208
243
  path: _path + ".offset",
209
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
244
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
210
245
  value: input.offset
211
246
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
212
247
  path: _path + ".size",
213
248
  expected: "number & Minimum<0>",
214
249
  value: input.size
215
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
250
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
216
251
  path: _path + ".size",
217
- expected: "number & Type<\"uint32\">",
252
+ expected: "number & Type<\"uint64\">",
218
253
  value: input.size
219
254
  }, errorFactory)) || $guard(_exceptionable, {
220
255
  path: _path + ".size",
221
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
256
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
222
257
  value: input.size
223
258
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
224
259
  path: _path + ".hash",
@@ -232,19 +267,40 @@ export const assertGuardBlock = (input, errorFactory) => {
232
267
  path: _path + ".btime",
233
268
  expected: "number & Minimum<0>",
234
269
  value: input.btime
235
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
270
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
236
271
  path: _path + ".btime",
237
- expected: "number & Type<\"uint32\">",
272
+ expected: "number & Type<\"uint64\">",
238
273
  value: input.btime
239
274
  }, errorFactory)) || $guard(_exceptionable, {
240
275
  path: _path + ".btime",
241
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
276
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
242
277
  value: input.btime
243
278
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
244
279
  path: _path + ".path",
245
280
  expected: "string",
246
281
  value: input.path
282
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
283
+ path: _path + ".error",
284
+ expected: "(Array<__type> | null)",
285
+ value: input.error
286
+ }, errorFactory)) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
287
+ path: _path + ".error[" + _index1 + "]",
288
+ expected: "__type",
289
+ value: elem
290
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
291
+ path: _path + ".error[" + _index1 + "]",
292
+ expected: "__type",
293
+ value: elem
294
+ }, errorFactory)) || $guard(_exceptionable, {
295
+ path: _path + ".error",
296
+ expected: "(Array<__type> | null)",
297
+ value: input.error
247
298
  }, errorFactory));
299
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
300
+ path: _path + ".message",
301
+ expected: "string",
302
+ value: input.message
303
+ }, errorFactory);
248
304
  return ("object" === typeof input && null !== input || $guard(true, {
249
305
  path: _path + "",
250
306
  expected: "Block",
@@ -257,12 +313,16 @@ export const assertGuardBlock = (input, errorFactory) => {
257
313
  })(input, "$input", true);
258
314
  };
259
315
  export const stringifyBlock = input => {
316
+ const $io1 = input => "string" === typeof input.message;
260
317
  const $string = __typia.json.createStringify.string;
261
- return `{"id":${$string(input.id)},"file":${$string(input.file)},"location":${$string(input.location)},"offset":${input.offset},"size":${input.size},"hash":${$string(input.hash)},"btime":${input.btime},"path":${$string(input.path)}}`;
318
+ const $so0 = input => `{"id":${$string(input.id)},"file":${$string(input.file)},"location":${$string(input.location)},"offset":${input.offset},"size":${input.size},"hash":${$string(input.hash)},"btime":${input.btime},"path":${$string(input.path)},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"}}`;
319
+ return $so0(input);
262
320
  };
263
321
  export const assertStringifyBlock = (input, errorFactory) => { const assert = (input, errorFactory) => {
264
322
  const __is = input => {
265
- return "object" === typeof input && null !== input && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path);
323
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
324
+ const $io1 = input => "string" === typeof input.message;
325
+ return "object" === typeof input && null !== input && $io0(input);
266
326
  };
267
327
  if (false === __is(input))
268
328
  ((input, _path, _exceptionable = true) => {
@@ -295,25 +355,25 @@ export const assertStringifyBlock = (input, errorFactory) => { const assert = (i
295
355
  path: _path + ".offset",
296
356
  expected: "number & Minimum<0>",
297
357
  value: input.offset
298
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
358
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
299
359
  path: _path + ".offset",
300
- expected: "number & Type<\"uint32\">",
360
+ expected: "number & Type<\"uint64\">",
301
361
  value: input.offset
302
362
  }, errorFactory)) || $guard(_exceptionable, {
303
363
  path: _path + ".offset",
304
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
364
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
305
365
  value: input.offset
306
366
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
307
367
  path: _path + ".size",
308
368
  expected: "number & Minimum<0>",
309
369
  value: input.size
310
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
370
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
311
371
  path: _path + ".size",
312
- expected: "number & Type<\"uint32\">",
372
+ expected: "number & Type<\"uint64\">",
313
373
  value: input.size
314
374
  }, errorFactory)) || $guard(_exceptionable, {
315
375
  path: _path + ".size",
316
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
376
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
317
377
  value: input.size
318
378
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
319
379
  path: _path + ".hash",
@@ -327,19 +387,40 @@ export const assertStringifyBlock = (input, errorFactory) => { const assert = (i
327
387
  path: _path + ".btime",
328
388
  expected: "number & Minimum<0>",
329
389
  value: input.btime
330
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
390
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
331
391
  path: _path + ".btime",
332
- expected: "number & Type<\"uint32\">",
392
+ expected: "number & Type<\"uint64\">",
333
393
  value: input.btime
334
394
  }, errorFactory)) || $guard(_exceptionable, {
335
395
  path: _path + ".btime",
336
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
396
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
337
397
  value: input.btime
338
398
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
339
399
  path: _path + ".path",
340
400
  expected: "string",
341
401
  value: input.path
402
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
403
+ path: _path + ".error",
404
+ expected: "(Array<__type> | null)",
405
+ value: input.error
406
+ }, errorFactory)) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
407
+ path: _path + ".error[" + _index1 + "]",
408
+ expected: "__type",
409
+ value: elem
410
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
411
+ path: _path + ".error[" + _index1 + "]",
412
+ expected: "__type",
413
+ value: elem
414
+ }, errorFactory)) || $guard(_exceptionable, {
415
+ path: _path + ".error",
416
+ expected: "(Array<__type> | null)",
417
+ value: input.error
342
418
  }, errorFactory));
419
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
420
+ path: _path + ".message",
421
+ expected: "string",
422
+ value: input.message
423
+ }, errorFactory);
343
424
  return ("object" === typeof input && null !== input || $guard(true, {
344
425
  path: _path + "",
345
426
  expected: "Block",
@@ -352,15 +433,21 @@ export const assertStringifyBlock = (input, errorFactory) => { const assert = (i
352
433
  })(input, "$input", true);
353
434
  return input;
354
435
  }; const stringify = input => {
436
+ const $io1 = input => "string" === typeof input.message;
355
437
  const $string = __typia.json.createAssertStringify.string;
356
- return `{"id":${$string(input.id)},"file":${$string(input.file)},"location":${$string(input.location)},"offset":${input.offset},"size":${input.size},"hash":${$string(input.hash)},"btime":${input.btime},"path":${$string(input.path)}}`;
438
+ const $so0 = input => `{"id":${$string(input.id)},"file":${$string(input.file)},"location":${$string(input.location)},"offset":${input.offset},"size":${input.size},"hash":${$string(input.hash)},"btime":${input.btime},"path":${$string(input.path)},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"}}`;
439
+ return $so0(input);
357
440
  }; return stringify(assert(input, errorFactory)); };
358
441
  export const isBlockStats = input => {
359
- return "object" === typeof input && null !== input && ("number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path);
442
+ const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
443
+ const $io1 = input => "string" === typeof input.message;
444
+ return "object" === typeof input && null !== input && $io0(input);
360
445
  };
361
446
  export const assertBlockStats = (input, errorFactory) => {
362
447
  const __is = input => {
363
- return "object" === typeof input && null !== input && ("number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path);
448
+ const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
449
+ const $io1 = input => "string" === typeof input.message;
450
+ return "object" === typeof input && null !== input && $io0(input);
364
451
  };
365
452
  if (false === __is(input))
366
453
  ((input, _path, _exceptionable = true) => {
@@ -369,13 +456,13 @@ export const assertBlockStats = (input, errorFactory) => {
369
456
  path: _path + ".position",
370
457
  expected: "number & Minimum<0>",
371
458
  value: input.position
372
- }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295 || $guard(_exceptionable, {
459
+ }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000 || $guard(_exceptionable, {
373
460
  path: _path + ".position",
374
- expected: "number & Type<\"uint32\">",
461
+ expected: "number & Type<\"uint64\">",
375
462
  value: input.position
376
463
  }, errorFactory)) || $guard(_exceptionable, {
377
464
  path: _path + ".position",
378
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
465
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
379
466
  value: input.position
380
467
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
381
468
  path: _path + ".id",
@@ -405,25 +492,25 @@ export const assertBlockStats = (input, errorFactory) => {
405
492
  path: _path + ".offset",
406
493
  expected: "number & Minimum<0>",
407
494
  value: input.offset
408
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
495
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
409
496
  path: _path + ".offset",
410
- expected: "number & Type<\"uint32\">",
497
+ expected: "number & Type<\"uint64\">",
411
498
  value: input.offset
412
499
  }, errorFactory)) || $guard(_exceptionable, {
413
500
  path: _path + ".offset",
414
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
501
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
415
502
  value: input.offset
416
503
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
417
504
  path: _path + ".size",
418
505
  expected: "number & Minimum<0>",
419
506
  value: input.size
420
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
507
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
421
508
  path: _path + ".size",
422
- expected: "number & Type<\"uint32\">",
509
+ expected: "number & Type<\"uint64\">",
423
510
  value: input.size
424
511
  }, errorFactory)) || $guard(_exceptionable, {
425
512
  path: _path + ".size",
426
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
513
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
427
514
  value: input.size
428
515
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
429
516
  path: _path + ".hash",
@@ -437,19 +524,40 @@ export const assertBlockStats = (input, errorFactory) => {
437
524
  path: _path + ".btime",
438
525
  expected: "number & Minimum<0>",
439
526
  value: input.btime
440
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
527
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
441
528
  path: _path + ".btime",
442
- expected: "number & Type<\"uint32\">",
529
+ expected: "number & Type<\"uint64\">",
443
530
  value: input.btime
444
531
  }, errorFactory)) || $guard(_exceptionable, {
445
532
  path: _path + ".btime",
446
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
533
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
447
534
  value: input.btime
448
535
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
449
536
  path: _path + ".path",
450
537
  expected: "string",
451
538
  value: input.path
539
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
540
+ path: _path + ".error",
541
+ expected: "(Array<__type> | null)",
542
+ value: input.error
543
+ }, errorFactory)) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
544
+ path: _path + ".error[" + _index1 + "]",
545
+ expected: "__type",
546
+ value: elem
547
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
548
+ path: _path + ".error[" + _index1 + "]",
549
+ expected: "__type",
550
+ value: elem
551
+ }, errorFactory)) || $guard(_exceptionable, {
552
+ path: _path + ".error",
553
+ expected: "(Array<__type> | null)",
554
+ value: input.error
452
555
  }, errorFactory));
556
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
557
+ path: _path + ".message",
558
+ expected: "string",
559
+ value: input.message
560
+ }, errorFactory);
453
561
  return ("object" === typeof input && null !== input || $guard(true, {
454
562
  path: _path + "",
455
563
  expected: "BlockStats",
@@ -464,6 +572,7 @@ export const assertBlockStats = (input, errorFactory) => {
464
572
  };
465
573
  export const randomBlockStats = generator => {
466
574
  const $generator = __typia.createRandom.generator;
575
+ const $pick = __typia.createRandom.pick;
467
576
  const $ro0 = (_recursive = false, _depth = 0) => ({
468
577
  position: (generator?.customs ?? $generator.customs)?.number?.([
469
578
  {
@@ -472,9 +581,9 @@ export const randomBlockStats = generator => {
472
581
  value: 0
473
582
  },
474
583
  {
475
- name: "Type<\"uint32\">",
584
+ name: "Type<\"uint64\">",
476
585
  kind: "type",
477
- value: "uint32"
586
+ value: "uint64"
478
587
  }
479
588
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
480
589
  id: (generator?.customs ?? $generator.customs)?.string?.([
@@ -505,9 +614,9 @@ export const randomBlockStats = generator => {
505
614
  value: 0
506
615
  },
507
616
  {
508
- name: "Type<\"uint32\">",
617
+ name: "Type<\"uint64\">",
509
618
  kind: "type",
510
- value: "uint32"
619
+ value: "uint64"
511
620
  }
512
621
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
513
622
  size: (generator?.customs ?? $generator.customs)?.number?.([
@@ -517,9 +626,9 @@ export const randomBlockStats = generator => {
517
626
  value: 0
518
627
  },
519
628
  {
520
- name: "Type<\"uint32\">",
629
+ name: "Type<\"uint64\">",
521
630
  kind: "type",
522
- value: "uint32"
631
+ value: "uint64"
523
632
  }
524
633
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
525
634
  hash: (generator?.customs ?? $generator.customs)?.string?.([
@@ -536,18 +645,27 @@ export const randomBlockStats = generator => {
536
645
  value: 0
537
646
  },
538
647
  {
539
- name: "Type<\"uint32\">",
648
+ name: "Type<\"uint64\">",
540
649
  kind: "type",
541
- value: "uint32"
650
+ value: "uint64"
542
651
  }
543
652
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
544
- path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
653
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
654
+ error: $pick([
655
+ () => null,
656
+ () => (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
657
+ ])()
658
+ });
659
+ const $ro1 = (_recursive = false, _depth = 0) => ({
660
+ message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
545
661
  });
546
662
  return $ro0();
547
663
  };
548
664
  export const assertGuardBlockStats = (input, errorFactory) => {
549
665
  const __is = input => {
550
- return "object" === typeof input && null !== input && ("number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path);
666
+ const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
667
+ const $io1 = input => "string" === typeof input.message;
668
+ return "object" === typeof input && null !== input && $io0(input);
551
669
  };
552
670
  if (false === __is(input))
553
671
  ((input, _path, _exceptionable = true) => {
@@ -556,13 +674,13 @@ export const assertGuardBlockStats = (input, errorFactory) => {
556
674
  path: _path + ".position",
557
675
  expected: "number & Minimum<0>",
558
676
  value: input.position
559
- }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295 || $guard(_exceptionable, {
677
+ }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000 || $guard(_exceptionable, {
560
678
  path: _path + ".position",
561
- expected: "number & Type<\"uint32\">",
679
+ expected: "number & Type<\"uint64\">",
562
680
  value: input.position
563
681
  }, errorFactory)) || $guard(_exceptionable, {
564
682
  path: _path + ".position",
565
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
683
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
566
684
  value: input.position
567
685
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
568
686
  path: _path + ".id",
@@ -592,25 +710,25 @@ export const assertGuardBlockStats = (input, errorFactory) => {
592
710
  path: _path + ".offset",
593
711
  expected: "number & Minimum<0>",
594
712
  value: input.offset
595
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
713
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
596
714
  path: _path + ".offset",
597
- expected: "number & Type<\"uint32\">",
715
+ expected: "number & Type<\"uint64\">",
598
716
  value: input.offset
599
717
  }, errorFactory)) || $guard(_exceptionable, {
600
718
  path: _path + ".offset",
601
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
719
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
602
720
  value: input.offset
603
721
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
604
722
  path: _path + ".size",
605
723
  expected: "number & Minimum<0>",
606
724
  value: input.size
607
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
725
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
608
726
  path: _path + ".size",
609
- expected: "number & Type<\"uint32\">",
727
+ expected: "number & Type<\"uint64\">",
610
728
  value: input.size
611
729
  }, errorFactory)) || $guard(_exceptionable, {
612
730
  path: _path + ".size",
613
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
731
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
614
732
  value: input.size
615
733
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
616
734
  path: _path + ".hash",
@@ -624,19 +742,40 @@ export const assertGuardBlockStats = (input, errorFactory) => {
624
742
  path: _path + ".btime",
625
743
  expected: "number & Minimum<0>",
626
744
  value: input.btime
627
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
745
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
628
746
  path: _path + ".btime",
629
- expected: "number & Type<\"uint32\">",
747
+ expected: "number & Type<\"uint64\">",
630
748
  value: input.btime
631
749
  }, errorFactory)) || $guard(_exceptionable, {
632
750
  path: _path + ".btime",
633
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
751
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
634
752
  value: input.btime
635
753
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
636
754
  path: _path + ".path",
637
755
  expected: "string",
638
756
  value: input.path
757
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
758
+ path: _path + ".error",
759
+ expected: "(Array<__type> | null)",
760
+ value: input.error
761
+ }, errorFactory)) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
762
+ path: _path + ".error[" + _index1 + "]",
763
+ expected: "__type",
764
+ value: elem
765
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
766
+ path: _path + ".error[" + _index1 + "]",
767
+ expected: "__type",
768
+ value: elem
769
+ }, errorFactory)) || $guard(_exceptionable, {
770
+ path: _path + ".error",
771
+ expected: "(Array<__type> | null)",
772
+ value: input.error
639
773
  }, errorFactory));
774
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
775
+ path: _path + ".message",
776
+ expected: "string",
777
+ value: input.message
778
+ }, errorFactory);
640
779
  return ("object" === typeof input && null !== input || $guard(true, {
641
780
  path: _path + "",
642
781
  expected: "BlockStats",
@@ -649,12 +788,16 @@ export const assertGuardBlockStats = (input, errorFactory) => {
649
788
  })(input, "$input", true);
650
789
  };
651
790
  export const stringifyBlockStats = input => {
791
+ const $io1 = input => "string" === typeof input.message;
652
792
  const $string = __typia.json.createStringify.string;
653
- return `{"position":${input.position},"id":${$string(input.id)},"file":${$string(input.file)},"location":${$string(input.location)},"offset":${input.offset},"size":${input.size},"hash":${$string(input.hash)},"btime":${input.btime},"path":${$string(input.path)}}`;
793
+ const $so0 = input => `{"position":${input.position},"id":${$string(input.id)},"file":${$string(input.file)},"location":${$string(input.location)},"offset":${input.offset},"size":${input.size},"hash":${$string(input.hash)},"btime":${input.btime},"path":${$string(input.path)},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"}}`;
794
+ return $so0(input);
654
795
  };
655
796
  export const assertStringifyBlockStats = (input, errorFactory) => { const assert = (input, errorFactory) => {
656
797
  const __is = input => {
657
- return "object" === typeof input && null !== input && ("number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path);
798
+ const $io0 = input => "number" === typeof input.position && (0 <= input.position && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000)) && ("string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id)) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
799
+ const $io1 = input => "string" === typeof input.message;
800
+ return "object" === typeof input && null !== input && $io0(input);
658
801
  };
659
802
  if (false === __is(input))
660
803
  ((input, _path, _exceptionable = true) => {
@@ -663,13 +806,13 @@ export const assertStringifyBlockStats = (input, errorFactory) => { const assert
663
806
  path: _path + ".position",
664
807
  expected: "number & Minimum<0>",
665
808
  value: input.position
666
- }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 4294967295 || $guard(_exceptionable, {
809
+ }, errorFactory)) && (Math.floor(input.position) === input.position && 0 <= input.position && input.position <= 18446744073709552000 || $guard(_exceptionable, {
667
810
  path: _path + ".position",
668
- expected: "number & Type<\"uint32\">",
811
+ expected: "number & Type<\"uint64\">",
669
812
  value: input.position
670
813
  }, errorFactory)) || $guard(_exceptionable, {
671
814
  path: _path + ".position",
672
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
815
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
673
816
  value: input.position
674
817
  }, errorFactory)) && ("string" === typeof input.id && (/^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) || $guard(_exceptionable, {
675
818
  path: _path + ".id",
@@ -699,25 +842,25 @@ export const assertStringifyBlockStats = (input, errorFactory) => { const assert
699
842
  path: _path + ".offset",
700
843
  expected: "number & Minimum<0>",
701
844
  value: input.offset
702
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
845
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
703
846
  path: _path + ".offset",
704
- expected: "number & Type<\"uint32\">",
847
+ expected: "number & Type<\"uint64\">",
705
848
  value: input.offset
706
849
  }, errorFactory)) || $guard(_exceptionable, {
707
850
  path: _path + ".offset",
708
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
851
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
709
852
  value: input.offset
710
853
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
711
854
  path: _path + ".size",
712
855
  expected: "number & Minimum<0>",
713
856
  value: input.size
714
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
857
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
715
858
  path: _path + ".size",
716
- expected: "number & Type<\"uint32\">",
859
+ expected: "number & Type<\"uint64\">",
717
860
  value: input.size
718
861
  }, errorFactory)) || $guard(_exceptionable, {
719
862
  path: _path + ".size",
720
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
863
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
721
864
  value: input.size
722
865
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
723
866
  path: _path + ".hash",
@@ -731,19 +874,40 @@ export const assertStringifyBlockStats = (input, errorFactory) => { const assert
731
874
  path: _path + ".btime",
732
875
  expected: "number & Minimum<0>",
733
876
  value: input.btime
734
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
877
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
735
878
  path: _path + ".btime",
736
- expected: "number & Type<\"uint32\">",
879
+ expected: "number & Type<\"uint64\">",
737
880
  value: input.btime
738
881
  }, errorFactory)) || $guard(_exceptionable, {
739
882
  path: _path + ".btime",
740
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
883
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
741
884
  value: input.btime
742
885
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
743
886
  path: _path + ".path",
744
887
  expected: "string",
745
888
  value: input.path
889
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
890
+ path: _path + ".error",
891
+ expected: "(Array<__type> | null)",
892
+ value: input.error
893
+ }, errorFactory)) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
894
+ path: _path + ".error[" + _index1 + "]",
895
+ expected: "__type",
896
+ value: elem
897
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
898
+ path: _path + ".error[" + _index1 + "]",
899
+ expected: "__type",
900
+ value: elem
901
+ }, errorFactory)) || $guard(_exceptionable, {
902
+ path: _path + ".error",
903
+ expected: "(Array<__type> | null)",
904
+ value: input.error
746
905
  }, errorFactory));
906
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
907
+ path: _path + ".message",
908
+ expected: "string",
909
+ value: input.message
910
+ }, errorFactory);
747
911
  return ("object" === typeof input && null !== input || $guard(true, {
748
912
  path: _path + "",
749
913
  expected: "BlockStats",
@@ -756,16 +920,20 @@ export const assertStringifyBlockStats = (input, errorFactory) => { const assert
756
920
  })(input, "$input", true);
757
921
  return input;
758
922
  }; const stringify = input => {
923
+ const $io1 = input => "string" === typeof input.message;
759
924
  const $string = __typia.json.createAssertStringify.string;
760
- return `{"position":${input.position},"id":${$string(input.id)},"file":${$string(input.file)},"location":${$string(input.location)},"offset":${input.offset},"size":${input.size},"hash":${$string(input.hash)},"btime":${input.btime},"path":${$string(input.path)}}`;
925
+ const $so0 = input => `{"position":${input.position},"id":${$string(input.id)},"file":${$string(input.file)},"location":${$string(input.location)},"offset":${input.offset},"size":${input.size},"hash":${$string(input.hash)},"btime":${input.btime},"path":${$string(input.path)},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"}}`;
926
+ return $so0(input);
761
927
  }; return stringify(assert(input, errorFactory)); };
762
928
  export const isBlocks = input => {
763
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path;
929
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
930
+ const $io1 = input => "string" === typeof input.message;
764
931
  return Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && $io0(elem));
765
932
  };
766
933
  export const assertBlocks = (input, errorFactory) => {
767
934
  const __is = input => {
768
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path;
935
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
936
+ const $io1 = input => "string" === typeof input.message;
769
937
  return Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && $io0(elem));
770
938
  };
771
939
  if (false === __is(input))
@@ -799,25 +967,25 @@ export const assertBlocks = (input, errorFactory) => {
799
967
  path: _path + ".offset",
800
968
  expected: "number & Minimum<0>",
801
969
  value: input.offset
802
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
970
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
803
971
  path: _path + ".offset",
804
- expected: "number & Type<\"uint32\">",
972
+ expected: "number & Type<\"uint64\">",
805
973
  value: input.offset
806
974
  }, errorFactory)) || $guard(_exceptionable, {
807
975
  path: _path + ".offset",
808
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
976
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
809
977
  value: input.offset
810
978
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
811
979
  path: _path + ".size",
812
980
  expected: "number & Minimum<0>",
813
981
  value: input.size
814
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
982
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
815
983
  path: _path + ".size",
816
- expected: "number & Type<\"uint32\">",
984
+ expected: "number & Type<\"uint64\">",
817
985
  value: input.size
818
986
  }, errorFactory)) || $guard(_exceptionable, {
819
987
  path: _path + ".size",
820
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
988
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
821
989
  value: input.size
822
990
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
823
991
  path: _path + ".hash",
@@ -831,19 +999,40 @@ export const assertBlocks = (input, errorFactory) => {
831
999
  path: _path + ".btime",
832
1000
  expected: "number & Minimum<0>",
833
1001
  value: input.btime
834
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
1002
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
835
1003
  path: _path + ".btime",
836
- expected: "number & Type<\"uint32\">",
1004
+ expected: "number & Type<\"uint64\">",
837
1005
  value: input.btime
838
1006
  }, errorFactory)) || $guard(_exceptionable, {
839
1007
  path: _path + ".btime",
840
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1008
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
841
1009
  value: input.btime
842
1010
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
843
1011
  path: _path + ".path",
844
1012
  expected: "string",
845
1013
  value: input.path
1014
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
1015
+ path: _path + ".error",
1016
+ expected: "(Array<__type> | null)",
1017
+ value: input.error
1018
+ }, errorFactory)) && input.error.every((elem, _index2) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1019
+ path: _path + ".error[" + _index2 + "]",
1020
+ expected: "__type",
1021
+ value: elem
1022
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
1023
+ path: _path + ".error[" + _index2 + "]",
1024
+ expected: "__type",
1025
+ value: elem
1026
+ }, errorFactory)) || $guard(_exceptionable, {
1027
+ path: _path + ".error",
1028
+ expected: "(Array<__type> | null)",
1029
+ value: input.error
846
1030
  }, errorFactory));
1031
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
1032
+ path: _path + ".message",
1033
+ expected: "string",
1034
+ value: input.message
1035
+ }, errorFactory);
847
1036
  return (Array.isArray(input) || $guard(true, {
848
1037
  path: _path + "",
849
1038
  expected: "Blocks",
@@ -866,6 +1055,7 @@ export const assertBlocks = (input, errorFactory) => {
866
1055
  };
867
1056
  export const randomBlocks = generator => {
868
1057
  const $generator = __typia.createRandom.generator;
1058
+ const $pick = __typia.createRandom.pick;
869
1059
  const $ro0 = (_recursive = false, _depth = 0) => ({
870
1060
  id: (generator?.customs ?? $generator.customs)?.string?.([
871
1061
  {
@@ -895,9 +1085,9 @@ export const randomBlocks = generator => {
895
1085
  value: 0
896
1086
  },
897
1087
  {
898
- name: "Type<\"uint32\">",
1088
+ name: "Type<\"uint64\">",
899
1089
  kind: "type",
900
- value: "uint32"
1090
+ value: "uint64"
901
1091
  }
902
1092
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
903
1093
  size: (generator?.customs ?? $generator.customs)?.number?.([
@@ -907,9 +1097,9 @@ export const randomBlocks = generator => {
907
1097
  value: 0
908
1098
  },
909
1099
  {
910
- name: "Type<\"uint32\">",
1100
+ name: "Type<\"uint64\">",
911
1101
  kind: "type",
912
- value: "uint32"
1102
+ value: "uint64"
913
1103
  }
914
1104
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
915
1105
  hash: (generator?.customs ?? $generator.customs)?.string?.([
@@ -926,18 +1116,26 @@ export const randomBlocks = generator => {
926
1116
  value: 0
927
1117
  },
928
1118
  {
929
- name: "Type<\"uint32\">",
1119
+ name: "Type<\"uint64\">",
930
1120
  kind: "type",
931
- value: "uint32"
1121
+ value: "uint64"
932
1122
  }
933
1123
  ]) ?? (generator?.integer ?? $generator.integer)(0, 10),
934
- path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1124
+ path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1125
+ error: $pick([
1126
+ () => null,
1127
+ () => (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
1128
+ ])()
1129
+ });
1130
+ const $ro1 = (_recursive = false, _depth = 0) => ({
1131
+ message: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
935
1132
  });
936
1133
  return (generator?.array ?? $generator.array)(() => $ro0());
937
1134
  };
938
1135
  export const assertGuardBlocks = (input, errorFactory) => {
939
1136
  const __is = input => {
940
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path;
1137
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
1138
+ const $io1 = input => "string" === typeof input.message;
941
1139
  return Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && $io0(elem));
942
1140
  };
943
1141
  if (false === __is(input))
@@ -971,25 +1169,25 @@ export const assertGuardBlocks = (input, errorFactory) => {
971
1169
  path: _path + ".offset",
972
1170
  expected: "number & Minimum<0>",
973
1171
  value: input.offset
974
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
1172
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
975
1173
  path: _path + ".offset",
976
- expected: "number & Type<\"uint32\">",
1174
+ expected: "number & Type<\"uint64\">",
977
1175
  value: input.offset
978
1176
  }, errorFactory)) || $guard(_exceptionable, {
979
1177
  path: _path + ".offset",
980
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1178
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
981
1179
  value: input.offset
982
1180
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
983
1181
  path: _path + ".size",
984
1182
  expected: "number & Minimum<0>",
985
1183
  value: input.size
986
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
1184
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
987
1185
  path: _path + ".size",
988
- expected: "number & Type<\"uint32\">",
1186
+ expected: "number & Type<\"uint64\">",
989
1187
  value: input.size
990
1188
  }, errorFactory)) || $guard(_exceptionable, {
991
1189
  path: _path + ".size",
992
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1190
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
993
1191
  value: input.size
994
1192
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
995
1193
  path: _path + ".hash",
@@ -1003,19 +1201,40 @@ export const assertGuardBlocks = (input, errorFactory) => {
1003
1201
  path: _path + ".btime",
1004
1202
  expected: "number & Minimum<0>",
1005
1203
  value: input.btime
1006
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
1204
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
1007
1205
  path: _path + ".btime",
1008
- expected: "number & Type<\"uint32\">",
1206
+ expected: "number & Type<\"uint64\">",
1009
1207
  value: input.btime
1010
1208
  }, errorFactory)) || $guard(_exceptionable, {
1011
1209
  path: _path + ".btime",
1012
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1210
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1013
1211
  value: input.btime
1014
1212
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1015
1213
  path: _path + ".path",
1016
1214
  expected: "string",
1017
1215
  value: input.path
1216
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
1217
+ path: _path + ".error",
1218
+ expected: "(Array<__type> | null)",
1219
+ value: input.error
1220
+ }, errorFactory)) && input.error.every((elem, _index2) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1221
+ path: _path + ".error[" + _index2 + "]",
1222
+ expected: "__type",
1223
+ value: elem
1224
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
1225
+ path: _path + ".error[" + _index2 + "]",
1226
+ expected: "__type",
1227
+ value: elem
1228
+ }, errorFactory)) || $guard(_exceptionable, {
1229
+ path: _path + ".error",
1230
+ expected: "(Array<__type> | null)",
1231
+ value: input.error
1018
1232
  }, errorFactory));
1233
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
1234
+ path: _path + ".message",
1235
+ expected: "string",
1236
+ value: input.message
1237
+ }, errorFactory);
1019
1238
  return (Array.isArray(input) || $guard(true, {
1020
1239
  path: _path + "",
1021
1240
  expected: "Blocks",
@@ -1036,12 +1255,15 @@ export const assertGuardBlocks = (input, errorFactory) => {
1036
1255
  })(input, "$input", true);
1037
1256
  };
1038
1257
  export const stringifyBlocks = input => {
1258
+ const $io1 = input => "string" === typeof input.message;
1039
1259
  const $string = __typia.json.createStringify.string;
1040
- return `[${input.map(elem => `{"id":${$string(elem.id)},"file":${$string(elem.file)},"location":${$string(elem.location)},"offset":${elem.offset},"size":${elem.size},"hash":${$string(elem.hash)},"btime":${elem.btime},"path":${$string(elem.path)}}`).join(",")}]`;
1260
+ const $so0 = input => `{"id":${$string(input.id)},"file":${$string(input.file)},"location":${$string(input.location)},"offset":${input.offset},"size":${input.size},"hash":${$string(input.hash)},"btime":${input.btime},"path":${$string(input.path)},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"}}`;
1261
+ return `[${input.map(elem => $so0(elem)).join(",")}]`;
1041
1262
  };
1042
1263
  export const assertStringifyBlocks = (input, errorFactory) => { const assert = (input, errorFactory) => {
1043
1264
  const __is = input => {
1044
- const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295))) && ("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 <= 4294967295))) && "string" === typeof input.path;
1265
+ const $io0 = input => "string" === typeof input.id && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.id) && ("string" === typeof input.file && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.file)) && ("string" === typeof input.location && /^[0-9A-Za-z~][0-9A-Za-z~._: -]*$/.test(input.location)) && ("number" === typeof input.offset && (0 <= input.offset && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000))) && ("number" === typeof input.size && (0 <= input.size && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000))) && ("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))) && "string" === typeof input.path && (null === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && $io1(elem)));
1266
+ const $io1 = input => "string" === typeof input.message;
1045
1267
  return Array.isArray(input) && input.every(elem => "object" === typeof elem && null !== elem && $io0(elem));
1046
1268
  };
1047
1269
  if (false === __is(input))
@@ -1075,25 +1297,25 @@ export const assertStringifyBlocks = (input, errorFactory) => { const assert = (
1075
1297
  path: _path + ".offset",
1076
1298
  expected: "number & Minimum<0>",
1077
1299
  value: input.offset
1078
- }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 4294967295 || $guard(_exceptionable, {
1300
+ }, errorFactory)) && (Math.floor(input.offset) === input.offset && 0 <= input.offset && input.offset <= 18446744073709552000 || $guard(_exceptionable, {
1079
1301
  path: _path + ".offset",
1080
- expected: "number & Type<\"uint32\">",
1302
+ expected: "number & Type<\"uint64\">",
1081
1303
  value: input.offset
1082
1304
  }, errorFactory)) || $guard(_exceptionable, {
1083
1305
  path: _path + ".offset",
1084
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1306
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1085
1307
  value: input.offset
1086
1308
  }, errorFactory)) && ("number" === typeof input.size && (0 <= input.size || $guard(_exceptionable, {
1087
1309
  path: _path + ".size",
1088
1310
  expected: "number & Minimum<0>",
1089
1311
  value: input.size
1090
- }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 4294967295 || $guard(_exceptionable, {
1312
+ }, errorFactory)) && (Math.floor(input.size) === input.size && 0 <= input.size && input.size <= 18446744073709552000 || $guard(_exceptionable, {
1091
1313
  path: _path + ".size",
1092
- expected: "number & Type<\"uint32\">",
1314
+ expected: "number & Type<\"uint64\">",
1093
1315
  value: input.size
1094
1316
  }, errorFactory)) || $guard(_exceptionable, {
1095
1317
  path: _path + ".size",
1096
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1318
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1097
1319
  value: input.size
1098
1320
  }, errorFactory)) && ("string" === typeof input.hash && (/^([A-Fa-f0-9]{32})?$/.test(input.hash) || $guard(_exceptionable, {
1099
1321
  path: _path + ".hash",
@@ -1107,19 +1329,40 @@ export const assertStringifyBlocks = (input, errorFactory) => { const assert = (
1107
1329
  path: _path + ".btime",
1108
1330
  expected: "number & Minimum<0>",
1109
1331
  value: input.btime
1110
- }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 4294967295 || $guard(_exceptionable, {
1332
+ }, errorFactory)) && (Math.floor(input.btime) === input.btime && 0 <= input.btime && input.btime <= 18446744073709552000 || $guard(_exceptionable, {
1111
1333
  path: _path + ".btime",
1112
- expected: "number & Type<\"uint32\">",
1334
+ expected: "number & Type<\"uint64\">",
1113
1335
  value: input.btime
1114
1336
  }, errorFactory)) || $guard(_exceptionable, {
1115
1337
  path: _path + ".btime",
1116
- expected: "(number & Minimum<0> & Type<\"uint32\">)",
1338
+ expected: "(number & Minimum<0> & Type<\"uint64\">)",
1117
1339
  value: input.btime
1118
1340
  }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1119
1341
  path: _path + ".path",
1120
1342
  expected: "string",
1121
1343
  value: input.path
1344
+ }, errorFactory)) && (null === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
1345
+ path: _path + ".error",
1346
+ expected: "(Array<__type> | null)",
1347
+ value: input.error
1348
+ }, errorFactory)) && input.error.every((elem, _index2) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1349
+ path: _path + ".error[" + _index2 + "]",
1350
+ expected: "__type",
1351
+ value: elem
1352
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
1353
+ path: _path + ".error[" + _index2 + "]",
1354
+ expected: "__type",
1355
+ value: elem
1356
+ }, errorFactory)) || $guard(_exceptionable, {
1357
+ path: _path + ".error",
1358
+ expected: "(Array<__type> | null)",
1359
+ value: input.error
1122
1360
  }, errorFactory));
1361
+ const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.message || $guard(_exceptionable, {
1362
+ path: _path + ".message",
1363
+ expected: "string",
1364
+ value: input.message
1365
+ }, errorFactory);
1123
1366
  return (Array.isArray(input) || $guard(true, {
1124
1367
  path: _path + "",
1125
1368
  expected: "Blocks",
@@ -1140,6 +1383,8 @@ export const assertStringifyBlocks = (input, errorFactory) => { const assert = (
1140
1383
  })(input, "$input", true);
1141
1384
  return input;
1142
1385
  }; const stringify = input => {
1386
+ const $io1 = input => "string" === typeof input.message;
1143
1387
  const $string = __typia.json.createAssertStringify.string;
1144
- return `[${input.map(elem => `{"id":${$string(elem.id)},"file":${$string(elem.file)},"location":${$string(elem.location)},"offset":${elem.offset},"size":${elem.size},"hash":${$string(elem.hash)},"btime":${elem.btime},"path":${$string(elem.path)}}`).join(",")}]`;
1388
+ const $so0 = input => `{"id":${$string(input.id)},"file":${$string(input.file)},"location":${$string(input.location)},"offset":${input.offset},"size":${input.size},"hash":${$string(input.hash)},"btime":${input.btime},"path":${$string(input.path)},"error":${null !== input.error ? `[${input.error.map(elem => `{"message":${$string(elem.message)}}`).join(",")}]` : "null"}}`;
1389
+ return `[${input.map(elem => $so0(elem)).join(",")}]`;
1145
1390
  }; return stringify(assert(input, errorFactory)); };