@nxtedition/types 23.0.22 → 23.0.24

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.
@@ -0,0 +1,1273 @@
1
+ import __typia from "typia";
2
+ export const isRenderDomainStatsRecord = input => {
3
+ const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status);
4
+ const $io1 = input => Object.keys(input).every(key => {
5
+ const value = input[key];
6
+ if (undefined === value)
7
+ return true;
8
+ return true;
9
+ });
10
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
11
+ };
12
+ export const assertRenderDomainStatsRecord = (input, errorFactory) => {
13
+ const __is = input => {
14
+ const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status);
15
+ const $io1 = input => Object.keys(input).every(key => {
16
+ const value = input[key];
17
+ if (undefined === value)
18
+ return true;
19
+ return true;
20
+ });
21
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
22
+ };
23
+ if (false === __is(input))
24
+ ((input, _path, _exceptionable = true) => {
25
+ const $guard = __typia.createAssert.guard;
26
+ const $join = __typia.createAssert.join;
27
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.progress || undefined === input.progress || "number" === typeof input.progress || $guard(_exceptionable, {
28
+ path: _path + ".progress",
29
+ expected: "(null | number | undefined)",
30
+ value: input.progress
31
+ }, errorFactory)) && (null === input.error || undefined === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
32
+ path: _path + ".error",
33
+ expected: "(Array<Record<string, unknown>> | null | undefined)",
34
+ value: input.error
35
+ }, errorFactory)) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
36
+ path: _path + ".error[" + _index1 + "]",
37
+ expected: "Record<string, unknown>",
38
+ value: elem
39
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
40
+ path: _path + ".error[" + _index1 + "]",
41
+ expected: "Record<string, unknown>",
42
+ value: elem
43
+ }, errorFactory)) || $guard(_exceptionable, {
44
+ path: _path + ".error",
45
+ expected: "(Array<Record<string, unknown>> | null | undefined)",
46
+ value: input.error
47
+ }, errorFactory)) && (null === input.status || undefined === input.status || "string" === typeof input.status || $guard(_exceptionable, {
48
+ path: _path + ".status",
49
+ expected: "(null | string | undefined)",
50
+ value: input.status
51
+ }, errorFactory));
52
+ const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
53
+ const value = input[key];
54
+ if (undefined === value)
55
+ return true;
56
+ return true;
57
+ });
58
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
59
+ path: _path + "",
60
+ expected: "RenderDomainStatsRecord",
61
+ value: input
62
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
63
+ path: _path + "",
64
+ expected: "RenderDomainStatsRecord",
65
+ value: input
66
+ }, errorFactory);
67
+ })(input, "$input", true);
68
+ return input;
69
+ };
70
+ export const randomRenderDomainStatsRecord = generator => {
71
+ const $generator = __typia.createRandom.generator;
72
+ const $pick = __typia.createRandom.pick;
73
+ const $ro0 = (_recursive = false, _depth = 0) => ({
74
+ progress: $pick([
75
+ () => undefined,
76
+ () => null,
77
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
78
+ ])(),
79
+ error: $pick([
80
+ () => undefined,
81
+ () => null,
82
+ () => (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
83
+ ])(),
84
+ status: $pick([
85
+ () => undefined,
86
+ () => null,
87
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
88
+ ])()
89
+ });
90
+ const $ro1 = (_recursive = false, _depth = 0) => {
91
+ const output = {};
92
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
93
+ return output;
94
+ };
95
+ return $ro0();
96
+ };
97
+ export const assertGuardRenderDomainStatsRecord = (input, errorFactory) => {
98
+ const __is = input => {
99
+ const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status);
100
+ const $io1 = input => Object.keys(input).every(key => {
101
+ const value = input[key];
102
+ if (undefined === value)
103
+ return true;
104
+ return true;
105
+ });
106
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
107
+ };
108
+ if (false === __is(input))
109
+ ((input, _path, _exceptionable = true) => {
110
+ const $guard = __typia.createAssertGuard.guard;
111
+ const $join = __typia.createAssertGuard.join;
112
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.progress || undefined === input.progress || "number" === typeof input.progress || $guard(_exceptionable, {
113
+ path: _path + ".progress",
114
+ expected: "(null | number | undefined)",
115
+ value: input.progress
116
+ }, errorFactory)) && (null === input.error || undefined === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
117
+ path: _path + ".error",
118
+ expected: "(Array<Record<string, unknown>> | null | undefined)",
119
+ value: input.error
120
+ }, errorFactory)) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
121
+ path: _path + ".error[" + _index1 + "]",
122
+ expected: "Record<string, unknown>",
123
+ value: elem
124
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
125
+ path: _path + ".error[" + _index1 + "]",
126
+ expected: "Record<string, unknown>",
127
+ value: elem
128
+ }, errorFactory)) || $guard(_exceptionable, {
129
+ path: _path + ".error",
130
+ expected: "(Array<Record<string, unknown>> | null | undefined)",
131
+ value: input.error
132
+ }, errorFactory)) && (null === input.status || undefined === input.status || "string" === typeof input.status || $guard(_exceptionable, {
133
+ path: _path + ".status",
134
+ expected: "(null | string | undefined)",
135
+ value: input.status
136
+ }, errorFactory));
137
+ const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
138
+ const value = input[key];
139
+ if (undefined === value)
140
+ return true;
141
+ return true;
142
+ });
143
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
144
+ path: _path + "",
145
+ expected: "RenderDomainStatsRecord",
146
+ value: input
147
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
148
+ path: _path + "",
149
+ expected: "RenderDomainStatsRecord",
150
+ value: input
151
+ }, errorFactory);
152
+ })(input, "$input", true);
153
+ };
154
+ export const stringifyRenderDomainStatsRecord = input => {
155
+ const $io1 = input => Object.keys(input).every(key => {
156
+ const value = input[key];
157
+ if (undefined === value)
158
+ return true;
159
+ return true;
160
+ });
161
+ const $string = __typia.json.createStringify.string;
162
+ const $tail = __typia.json.createStringify.tail;
163
+ const $so0 = input => `{${$tail(`${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? null !== input.progress ? input.progress : "null" : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? `[${input.error.map(elem => $so1(elem)).join(",")}]` : "null" : undefined},`}${undefined === input.status ? "" : `"status":${undefined !== input.status ? null !== input.status ? $string(input.status) : "null" : undefined}`}`)}}`;
164
+ const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
165
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
166
+ return $so0(input);
167
+ };
168
+ export const assertStringifyRenderDomainStatsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
169
+ const __is = input => {
170
+ const $io0 = input => (null === input.progress || undefined === input.progress || "number" === typeof input.progress && !Number.isNaN(input.progress)) && (null === input.error || undefined === input.error || Array.isArray(input.error) && input.error.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io1(elem))) && (null === input.status || undefined === input.status || "string" === typeof input.status);
171
+ const $io1 = input => Object.keys(input).every(key => {
172
+ const value = input[key];
173
+ if (undefined === value)
174
+ return true;
175
+ return true;
176
+ });
177
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
178
+ };
179
+ if (false === __is(input))
180
+ ((input, _path, _exceptionable = true) => {
181
+ const $guard = __typia.json.createAssertStringify.guard;
182
+ const $join = __typia.json.createAssertStringify.join;
183
+ const $ao0 = (input, _path, _exceptionable = true) => (null === input.progress || undefined === input.progress || "number" === typeof input.progress && !Number.isNaN(input.progress) || $guard(_exceptionable, {
184
+ path: _path + ".progress",
185
+ expected: "(null | number | undefined)",
186
+ value: input.progress
187
+ }, errorFactory)) && (null === input.error || undefined === input.error || (Array.isArray(input.error) || $guard(_exceptionable, {
188
+ path: _path + ".error",
189
+ expected: "(Array<Record<string, unknown>> | null | undefined)",
190
+ value: input.error
191
+ }, errorFactory)) && input.error.every((elem, _index1) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
192
+ path: _path + ".error[" + _index1 + "]",
193
+ expected: "Record<string, unknown>",
194
+ value: elem
195
+ }, errorFactory)) && $ao1(elem, _path + ".error[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
196
+ path: _path + ".error[" + _index1 + "]",
197
+ expected: "Record<string, unknown>",
198
+ value: elem
199
+ }, errorFactory)) || $guard(_exceptionable, {
200
+ path: _path + ".error",
201
+ expected: "(Array<Record<string, unknown>> | null | undefined)",
202
+ value: input.error
203
+ }, errorFactory)) && (null === input.status || undefined === input.status || "string" === typeof input.status || $guard(_exceptionable, {
204
+ path: _path + ".status",
205
+ expected: "(null | string | undefined)",
206
+ value: input.status
207
+ }, errorFactory));
208
+ const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
209
+ const value = input[key];
210
+ if (undefined === value)
211
+ return true;
212
+ return true;
213
+ });
214
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
215
+ path: _path + "",
216
+ expected: "RenderDomainStatsRecord",
217
+ value: input
218
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
219
+ path: _path + "",
220
+ expected: "RenderDomainStatsRecord",
221
+ value: input
222
+ }, errorFactory);
223
+ })(input, "$input", true);
224
+ return input;
225
+ }; const stringify = input => {
226
+ const $io1 = input => Object.keys(input).every(key => {
227
+ const value = input[key];
228
+ if (undefined === value)
229
+ return true;
230
+ return true;
231
+ });
232
+ const $string = __typia.json.createAssertStringify.string;
233
+ const $tail = __typia.json.createAssertStringify.tail;
234
+ const $so0 = input => `{${$tail(`${undefined === input.progress ? "" : `"progress":${undefined !== input.progress ? null !== input.progress ? input.progress : "null" : undefined},`}${undefined === input.error ? "" : `"error":${undefined !== input.error ? null !== input.error ? `[${input.error.map(elem => $so1(elem)).join(",")}]` : "null" : undefined},`}${undefined === input.status ? "" : `"status":${undefined !== input.status ? null !== input.status ? $string(input.status) : "null" : undefined}`}`)}}`;
235
+ const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
236
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
237
+ return $so0(input);
238
+ }; return stringify(assert(input, errorFactory)); };
239
+ export const isRenderDomainQueryRecord = input => {
240
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && ("object" === typeof input.description && null !== input.description && $io1(input.description));
241
+ const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io7(input.profile));
242
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
243
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
244
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
245
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
246
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
247
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
248
+ const $io8 = input => "string" === typeof input.engine;
249
+ const $io9 = input => "string" === typeof input.language;
250
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
251
+ return "object" === typeof input && null !== input && $io0(input);
252
+ };
253
+ export const assertRenderDomainQueryRecord = (input, errorFactory) => {
254
+ const __is = input => {
255
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && ("object" === typeof input.description && null !== input.description && $io1(input.description));
256
+ const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io7(input.profile));
257
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
258
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
259
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
260
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
261
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
262
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
263
+ const $io8 = input => "string" === typeof input.engine;
264
+ const $io9 = input => "string" === typeof input.language;
265
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
266
+ return "object" === typeof input && null !== input && $io0(input);
267
+ };
268
+ if (false === __is(input))
269
+ ((input, _path, _exceptionable = true) => {
270
+ const $guard = __typia.createAssert.guard;
271
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
272
+ path: _path + ".type",
273
+ expected: "string",
274
+ value: input.type
275
+ }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
276
+ path: _path + ".title",
277
+ expected: "string",
278
+ value: input.title
279
+ }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
280
+ path: _path + ".parent",
281
+ expected: "(string | undefined)",
282
+ value: input.parent
283
+ }, errorFactory)) && (("object" === typeof input.description && null !== input.description || $guard(_exceptionable, {
284
+ path: _path + ".description",
285
+ expected: "__type",
286
+ value: input.description
287
+ }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
288
+ path: _path + ".description",
289
+ expected: "__type",
290
+ value: input.description
291
+ }, errorFactory));
292
+ const $ao1 = (input, _path, _exceptionable = true) => (("object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) || $guard(_exceptionable, {
293
+ path: _path + ".scene",
294
+ expected: "RenderSceneObject",
295
+ value: input.scene
296
+ }, errorFactory)) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
297
+ path: _path + ".scene",
298
+ expected: "RenderSceneObject",
299
+ value: input.scene
300
+ }, errorFactory)) && (("object" === typeof input.profile && null !== input.profile || $guard(_exceptionable, {
301
+ path: _path + ".profile",
302
+ expected: "RenderProfileObject",
303
+ value: input.profile
304
+ }, errorFactory)) && $ao7(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
305
+ path: _path + ".profile",
306
+ expected: "RenderProfileObject",
307
+ value: input.profile
308
+ }, errorFactory));
309
+ const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
310
+ path: _path + ".id",
311
+ expected: "(string | undefined)",
312
+ value: input.id
313
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
314
+ path: _path + ".preset",
315
+ expected: "(string | undefined)",
316
+ value: input.preset
317
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
318
+ path: _path + ".input",
319
+ expected: "(__type.o1 | undefined)",
320
+ value: input.input
321
+ }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
322
+ path: _path + ".input",
323
+ expected: "(__type.o1 | undefined)",
324
+ value: input.input
325
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
326
+ path: _path + ".lang",
327
+ expected: "(string | undefined)",
328
+ value: input.lang
329
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
330
+ path: _path + ".subtitle",
331
+ expected: "(string | undefined)",
332
+ value: input.subtitle
333
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
334
+ path: _path + ".video",
335
+ expected: "(__type.o2 | undefined)",
336
+ value: input.video
337
+ }, errorFactory)) && $ao4(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
338
+ path: _path + ".video",
339
+ expected: "(__type.o2 | undefined)",
340
+ value: input.video
341
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
342
+ path: _path + ".start",
343
+ expected: "(number | undefined)",
344
+ value: input.start
345
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
346
+ path: _path + ".end",
347
+ expected: "(number | undefined)",
348
+ value: input.end
349
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
350
+ path: _path + ".transcribe",
351
+ expected: "(__type.o4 | undefined)",
352
+ value: input.transcribe
353
+ }, errorFactory)) && $ao6(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
354
+ path: _path + ".transcribe",
355
+ expected: "(__type.o4 | undefined)",
356
+ value: input.transcribe
357
+ }, errorFactory));
358
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
359
+ path: _path + ".type",
360
+ expected: "(string | undefined)",
361
+ value: input.type
362
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
363
+ path: _path + ".file",
364
+ expected: "(null | string | undefined)",
365
+ value: input.file
366
+ }, errorFactory));
367
+ const $ao4 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
368
+ path: _path + ".crop",
369
+ expected: "(__type.o3 | undefined)",
370
+ value: input.crop
371
+ }, errorFactory)) && $ao5(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
372
+ path: _path + ".crop",
373
+ expected: "(__type.o3 | undefined)",
374
+ value: input.crop
375
+ }, errorFactory);
376
+ const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
377
+ path: _path + ".x",
378
+ expected: "(number | undefined)",
379
+ value: input.x
380
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
381
+ path: _path + ".y",
382
+ expected: "(number | undefined)",
383
+ value: input.y
384
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
385
+ path: _path + ".width",
386
+ expected: "(number | undefined)",
387
+ value: input.width
388
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
389
+ path: _path + ".height",
390
+ expected: "(number | undefined)",
391
+ value: input.height
392
+ }, errorFactory));
393
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
394
+ path: _path + ".language",
395
+ expected: "(string | undefined)",
396
+ value: input.language
397
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
398
+ path: _path + ".pan",
399
+ expected: "(Array<number> | undefined)",
400
+ value: input.pan
401
+ }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem || $guard(_exceptionable, {
402
+ path: _path + ".pan[" + _index1 + "]",
403
+ expected: "number",
404
+ value: elem
405
+ }, errorFactory)) || $guard(_exceptionable, {
406
+ path: _path + ".pan",
407
+ expected: "(Array<number> | undefined)",
408
+ value: input.pan
409
+ }, errorFactory));
410
+ const $ao7 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
411
+ path: _path + ".format",
412
+ expected: "string",
413
+ value: input.format
414
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
415
+ path: _path + ".transcribe",
416
+ expected: "(__type.o5 | undefined)",
417
+ value: input.transcribe
418
+ }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
419
+ path: _path + ".transcribe",
420
+ expected: "(__type.o5 | undefined)",
421
+ value: input.transcribe
422
+ }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
423
+ path: _path + ".translate",
424
+ expected: "(__type.o6 | undefined)",
425
+ value: input.translate
426
+ }, errorFactory)) && $ao9(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
427
+ path: _path + ".translate",
428
+ expected: "(__type.o6 | undefined)",
429
+ value: input.translate
430
+ }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
431
+ path: _path + ".audio",
432
+ expected: "(__type.o7 | undefined)",
433
+ value: input.audio
434
+ }, errorFactory)) && $ao10(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
435
+ path: _path + ".audio",
436
+ expected: "(__type.o7 | undefined)",
437
+ value: input.audio
438
+ }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
439
+ path: _path + ".pick",
440
+ expected: "(Array<string> | undefined)",
441
+ value: input.pick
442
+ }, errorFactory)) && input.pick.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
443
+ path: _path + ".pick[" + _index2 + "]",
444
+ expected: "string",
445
+ value: elem
446
+ }, errorFactory)) || $guard(_exceptionable, {
447
+ path: _path + ".pick",
448
+ expected: "(Array<string> | undefined)",
449
+ value: input.pick
450
+ }, errorFactory));
451
+ const $ao8 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
452
+ path: _path + ".engine",
453
+ expected: "string",
454
+ value: input.engine
455
+ }, errorFactory);
456
+ const $ao9 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
457
+ path: _path + ".language",
458
+ expected: "string",
459
+ value: input.language
460
+ }, errorFactory);
461
+ const $ao10 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
462
+ path: _path + ".pan",
463
+ expected: "(string | undefined)",
464
+ value: input.pan
465
+ }, errorFactory);
466
+ return ("object" === typeof input && null !== input || $guard(true, {
467
+ path: _path + "",
468
+ expected: "RenderDomainQueryRecord",
469
+ value: input
470
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
471
+ path: _path + "",
472
+ expected: "RenderDomainQueryRecord",
473
+ value: input
474
+ }, errorFactory);
475
+ })(input, "$input", true);
476
+ return input;
477
+ };
478
+ export const randomRenderDomainQueryRecord = generator => {
479
+ const $generator = __typia.createRandom.generator;
480
+ const $pick = __typia.createRandom.pick;
481
+ const $ro0 = (_recursive = false, _depth = 0) => ({
482
+ type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
483
+ title: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
484
+ parent: $pick([
485
+ () => undefined,
486
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
487
+ ])(),
488
+ description: $ro1(_recursive, _recursive ? 1 + _depth : _depth)
489
+ });
490
+ const $ro1 = (_recursive = false, _depth = 0) => ({
491
+ scene: $ro2(_recursive, _recursive ? 1 + _depth : _depth),
492
+ profile: $ro7(_recursive, _recursive ? 1 + _depth : _depth)
493
+ });
494
+ const $ro2 = (_recursive = false, _depth = 0) => ({
495
+ id: $pick([
496
+ () => undefined,
497
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
498
+ ])(),
499
+ preset: $pick([
500
+ () => undefined,
501
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
502
+ ])(),
503
+ input: $pick([
504
+ () => undefined,
505
+ () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
506
+ ])(),
507
+ lang: $pick([
508
+ () => undefined,
509
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
510
+ ])(),
511
+ subtitle: $pick([
512
+ () => undefined,
513
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
514
+ ])(),
515
+ video: $pick([
516
+ () => undefined,
517
+ () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
518
+ ])(),
519
+ start: $pick([
520
+ () => undefined,
521
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
522
+ ])(),
523
+ end: $pick([
524
+ () => undefined,
525
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
526
+ ])(),
527
+ transcribe: $pick([
528
+ () => undefined,
529
+ () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
530
+ ])()
531
+ });
532
+ const $ro3 = (_recursive = false, _depth = 0) => ({
533
+ type: $pick([
534
+ () => undefined,
535
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
536
+ ])(),
537
+ file: $pick([
538
+ () => undefined,
539
+ () => null,
540
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
541
+ ])()
542
+ });
543
+ const $ro4 = (_recursive = false, _depth = 0) => ({
544
+ crop: $pick([
545
+ () => undefined,
546
+ () => $ro5(_recursive, _recursive ? 1 + _depth : _depth)
547
+ ])()
548
+ });
549
+ const $ro5 = (_recursive = false, _depth = 0) => ({
550
+ x: $pick([
551
+ () => undefined,
552
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
553
+ ])(),
554
+ y: $pick([
555
+ () => undefined,
556
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
557
+ ])(),
558
+ width: $pick([
559
+ () => undefined,
560
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
561
+ ])(),
562
+ height: $pick([
563
+ () => undefined,
564
+ () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
565
+ ])()
566
+ });
567
+ const $ro6 = (_recursive = false, _depth = 0) => ({
568
+ language: $pick([
569
+ () => undefined,
570
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
571
+ ])(),
572
+ pan: $pick([
573
+ () => undefined,
574
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
575
+ ])()
576
+ });
577
+ const $ro7 = (_recursive = false, _depth = 0) => ({
578
+ format: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
579
+ transcribe: $pick([
580
+ () => undefined,
581
+ () => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
582
+ ])(),
583
+ translate: $pick([
584
+ () => undefined,
585
+ () => $ro9(_recursive, _recursive ? 1 + _depth : _depth)
586
+ ])(),
587
+ audio: $pick([
588
+ () => undefined,
589
+ () => $ro10(_recursive, _recursive ? 1 + _depth : _depth)
590
+ ])(),
591
+ video: $pick([
592
+ () => "any type used...",
593
+ () => undefined
594
+ ])(),
595
+ pick: $pick([
596
+ () => undefined,
597
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
598
+ ])()
599
+ });
600
+ const $ro8 = (_recursive = false, _depth = 0) => ({
601
+ engine: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
602
+ });
603
+ const $ro9 = (_recursive = false, _depth = 0) => ({
604
+ language: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
605
+ });
606
+ const $ro10 = (_recursive = false, _depth = 0) => ({
607
+ pan: $pick([
608
+ () => undefined,
609
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
610
+ ])()
611
+ });
612
+ return $ro0();
613
+ };
614
+ export const assertGuardRenderDomainQueryRecord = (input, errorFactory) => {
615
+ const __is = input => {
616
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && ("object" === typeof input.description && null !== input.description && $io1(input.description));
617
+ const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io7(input.profile));
618
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
619
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
620
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
621
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
622
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
623
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
624
+ const $io8 = input => "string" === typeof input.engine;
625
+ const $io9 = input => "string" === typeof input.language;
626
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
627
+ return "object" === typeof input && null !== input && $io0(input);
628
+ };
629
+ if (false === __is(input))
630
+ ((input, _path, _exceptionable = true) => {
631
+ const $guard = __typia.createAssertGuard.guard;
632
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
633
+ path: _path + ".type",
634
+ expected: "string",
635
+ value: input.type
636
+ }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
637
+ path: _path + ".title",
638
+ expected: "string",
639
+ value: input.title
640
+ }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
641
+ path: _path + ".parent",
642
+ expected: "(string | undefined)",
643
+ value: input.parent
644
+ }, errorFactory)) && (("object" === typeof input.description && null !== input.description || $guard(_exceptionable, {
645
+ path: _path + ".description",
646
+ expected: "__type",
647
+ value: input.description
648
+ }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
649
+ path: _path + ".description",
650
+ expected: "__type",
651
+ value: input.description
652
+ }, errorFactory));
653
+ const $ao1 = (input, _path, _exceptionable = true) => (("object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) || $guard(_exceptionable, {
654
+ path: _path + ".scene",
655
+ expected: "RenderSceneObject",
656
+ value: input.scene
657
+ }, errorFactory)) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
658
+ path: _path + ".scene",
659
+ expected: "RenderSceneObject",
660
+ value: input.scene
661
+ }, errorFactory)) && (("object" === typeof input.profile && null !== input.profile || $guard(_exceptionable, {
662
+ path: _path + ".profile",
663
+ expected: "RenderProfileObject",
664
+ value: input.profile
665
+ }, errorFactory)) && $ao7(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
666
+ path: _path + ".profile",
667
+ expected: "RenderProfileObject",
668
+ value: input.profile
669
+ }, errorFactory));
670
+ const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
671
+ path: _path + ".id",
672
+ expected: "(string | undefined)",
673
+ value: input.id
674
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
675
+ path: _path + ".preset",
676
+ expected: "(string | undefined)",
677
+ value: input.preset
678
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
679
+ path: _path + ".input",
680
+ expected: "(__type.o1 | undefined)",
681
+ value: input.input
682
+ }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
683
+ path: _path + ".input",
684
+ expected: "(__type.o1 | undefined)",
685
+ value: input.input
686
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
687
+ path: _path + ".lang",
688
+ expected: "(string | undefined)",
689
+ value: input.lang
690
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
691
+ path: _path + ".subtitle",
692
+ expected: "(string | undefined)",
693
+ value: input.subtitle
694
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
695
+ path: _path + ".video",
696
+ expected: "(__type.o2 | undefined)",
697
+ value: input.video
698
+ }, errorFactory)) && $ao4(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
699
+ path: _path + ".video",
700
+ expected: "(__type.o2 | undefined)",
701
+ value: input.video
702
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
703
+ path: _path + ".start",
704
+ expected: "(number | undefined)",
705
+ value: input.start
706
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
707
+ path: _path + ".end",
708
+ expected: "(number | undefined)",
709
+ value: input.end
710
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
711
+ path: _path + ".transcribe",
712
+ expected: "(__type.o4 | undefined)",
713
+ value: input.transcribe
714
+ }, errorFactory)) && $ao6(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
715
+ path: _path + ".transcribe",
716
+ expected: "(__type.o4 | undefined)",
717
+ value: input.transcribe
718
+ }, errorFactory));
719
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
720
+ path: _path + ".type",
721
+ expected: "(string | undefined)",
722
+ value: input.type
723
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
724
+ path: _path + ".file",
725
+ expected: "(null | string | undefined)",
726
+ value: input.file
727
+ }, errorFactory));
728
+ const $ao4 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
729
+ path: _path + ".crop",
730
+ expected: "(__type.o3 | undefined)",
731
+ value: input.crop
732
+ }, errorFactory)) && $ao5(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
733
+ path: _path + ".crop",
734
+ expected: "(__type.o3 | undefined)",
735
+ value: input.crop
736
+ }, errorFactory);
737
+ const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
738
+ path: _path + ".x",
739
+ expected: "(number | undefined)",
740
+ value: input.x
741
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
742
+ path: _path + ".y",
743
+ expected: "(number | undefined)",
744
+ value: input.y
745
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
746
+ path: _path + ".width",
747
+ expected: "(number | undefined)",
748
+ value: input.width
749
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
750
+ path: _path + ".height",
751
+ expected: "(number | undefined)",
752
+ value: input.height
753
+ }, errorFactory));
754
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
755
+ path: _path + ".language",
756
+ expected: "(string | undefined)",
757
+ value: input.language
758
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
759
+ path: _path + ".pan",
760
+ expected: "(Array<number> | undefined)",
761
+ value: input.pan
762
+ }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem || $guard(_exceptionable, {
763
+ path: _path + ".pan[" + _index1 + "]",
764
+ expected: "number",
765
+ value: elem
766
+ }, errorFactory)) || $guard(_exceptionable, {
767
+ path: _path + ".pan",
768
+ expected: "(Array<number> | undefined)",
769
+ value: input.pan
770
+ }, errorFactory));
771
+ const $ao7 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
772
+ path: _path + ".format",
773
+ expected: "string",
774
+ value: input.format
775
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
776
+ path: _path + ".transcribe",
777
+ expected: "(__type.o5 | undefined)",
778
+ value: input.transcribe
779
+ }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
780
+ path: _path + ".transcribe",
781
+ expected: "(__type.o5 | undefined)",
782
+ value: input.transcribe
783
+ }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
784
+ path: _path + ".translate",
785
+ expected: "(__type.o6 | undefined)",
786
+ value: input.translate
787
+ }, errorFactory)) && $ao9(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
788
+ path: _path + ".translate",
789
+ expected: "(__type.o6 | undefined)",
790
+ value: input.translate
791
+ }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
792
+ path: _path + ".audio",
793
+ expected: "(__type.o7 | undefined)",
794
+ value: input.audio
795
+ }, errorFactory)) && $ao10(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
796
+ path: _path + ".audio",
797
+ expected: "(__type.o7 | undefined)",
798
+ value: input.audio
799
+ }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
800
+ path: _path + ".pick",
801
+ expected: "(Array<string> | undefined)",
802
+ value: input.pick
803
+ }, errorFactory)) && input.pick.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
804
+ path: _path + ".pick[" + _index2 + "]",
805
+ expected: "string",
806
+ value: elem
807
+ }, errorFactory)) || $guard(_exceptionable, {
808
+ path: _path + ".pick",
809
+ expected: "(Array<string> | undefined)",
810
+ value: input.pick
811
+ }, errorFactory));
812
+ const $ao8 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
813
+ path: _path + ".engine",
814
+ expected: "string",
815
+ value: input.engine
816
+ }, errorFactory);
817
+ const $ao9 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
818
+ path: _path + ".language",
819
+ expected: "string",
820
+ value: input.language
821
+ }, errorFactory);
822
+ const $ao10 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
823
+ path: _path + ".pan",
824
+ expected: "(string | undefined)",
825
+ value: input.pan
826
+ }, errorFactory);
827
+ return ("object" === typeof input && null !== input || $guard(true, {
828
+ path: _path + "",
829
+ expected: "RenderDomainQueryRecord",
830
+ value: input
831
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
832
+ path: _path + "",
833
+ expected: "RenderDomainQueryRecord",
834
+ value: input
835
+ }, errorFactory);
836
+ })(input, "$input", true);
837
+ };
838
+ export const stringifyRenderDomainQueryRecord = input => {
839
+ const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io7(input.profile));
840
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
841
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
842
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
843
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
844
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
845
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
846
+ const $io8 = input => "string" === typeof input.engine;
847
+ const $io9 = input => "string" === typeof input.language;
848
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
849
+ const $string = __typia.json.createStringify.string;
850
+ const $tail = __typia.json.createStringify.tail;
851
+ const $so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? $string(input.parent) : undefined},`}"type":${$string(input.type)},"title":${$string(input.title)},"description":${$so1(input.description)}}`;
852
+ const $so1 = input => `{"scene":${$so2(input.scene)},"profile":${$so7(input.profile)}}`;
853
+ const $so2 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so3(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so4(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so6(input.transcribe) : undefined}`}`)}}`;
854
+ const $so3 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
855
+ const $so4 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so5(input.crop) : undefined}`}`)}}`;
856
+ const $so5 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
857
+ const $so6 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
858
+ const $so7 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so10(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${$string(input.format)}}`;
859
+ const $so10 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
860
+ return $so0(input);
861
+ };
862
+ export const assertStringifyRenderDomainQueryRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
863
+ const __is = input => {
864
+ const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && ("object" === typeof input.description && null !== input.description && $io1(input.description));
865
+ const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io7(input.profile));
866
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
867
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
868
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
869
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height));
870
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem && !Number.isNaN(elem)));
871
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
872
+ const $io8 = input => "string" === typeof input.engine;
873
+ const $io9 = input => "string" === typeof input.language;
874
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
875
+ return "object" === typeof input && null !== input && $io0(input);
876
+ };
877
+ if (false === __is(input))
878
+ ((input, _path, _exceptionable = true) => {
879
+ const $guard = __typia.json.createAssertStringify.guard;
880
+ const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
881
+ path: _path + ".type",
882
+ expected: "string",
883
+ value: input.type
884
+ }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
885
+ path: _path + ".title",
886
+ expected: "string",
887
+ value: input.title
888
+ }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
889
+ path: _path + ".parent",
890
+ expected: "(string | undefined)",
891
+ value: input.parent
892
+ }, errorFactory)) && (("object" === typeof input.description && null !== input.description || $guard(_exceptionable, {
893
+ path: _path + ".description",
894
+ expected: "__type",
895
+ value: input.description
896
+ }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
897
+ path: _path + ".description",
898
+ expected: "__type",
899
+ value: input.description
900
+ }, errorFactory));
901
+ const $ao1 = (input, _path, _exceptionable = true) => (("object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) || $guard(_exceptionable, {
902
+ path: _path + ".scene",
903
+ expected: "RenderSceneObject",
904
+ value: input.scene
905
+ }, errorFactory)) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
906
+ path: _path + ".scene",
907
+ expected: "RenderSceneObject",
908
+ value: input.scene
909
+ }, errorFactory)) && (("object" === typeof input.profile && null !== input.profile || $guard(_exceptionable, {
910
+ path: _path + ".profile",
911
+ expected: "RenderProfileObject",
912
+ value: input.profile
913
+ }, errorFactory)) && $ao7(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
914
+ path: _path + ".profile",
915
+ expected: "RenderProfileObject",
916
+ value: input.profile
917
+ }, errorFactory));
918
+ const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
919
+ path: _path + ".id",
920
+ expected: "(string | undefined)",
921
+ value: input.id
922
+ }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
923
+ path: _path + ".preset",
924
+ expected: "(string | undefined)",
925
+ value: input.preset
926
+ }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
927
+ path: _path + ".input",
928
+ expected: "(__type.o1 | undefined)",
929
+ value: input.input
930
+ }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
931
+ path: _path + ".input",
932
+ expected: "(__type.o1 | undefined)",
933
+ value: input.input
934
+ }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
935
+ path: _path + ".lang",
936
+ expected: "(string | undefined)",
937
+ value: input.lang
938
+ }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
939
+ path: _path + ".subtitle",
940
+ expected: "(string | undefined)",
941
+ value: input.subtitle
942
+ }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
943
+ path: _path + ".video",
944
+ expected: "(__type.o2 | undefined)",
945
+ value: input.video
946
+ }, errorFactory)) && $ao4(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
947
+ path: _path + ".video",
948
+ expected: "(__type.o2 | undefined)",
949
+ value: input.video
950
+ }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
951
+ path: _path + ".start",
952
+ expected: "(number | undefined)",
953
+ value: input.start
954
+ }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
955
+ path: _path + ".end",
956
+ expected: "(number | undefined)",
957
+ value: input.end
958
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
959
+ path: _path + ".transcribe",
960
+ expected: "(__type.o4 | undefined)",
961
+ value: input.transcribe
962
+ }, errorFactory)) && $ao6(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
963
+ path: _path + ".transcribe",
964
+ expected: "(__type.o4 | undefined)",
965
+ value: input.transcribe
966
+ }, errorFactory));
967
+ const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
968
+ path: _path + ".type",
969
+ expected: "(string | undefined)",
970
+ value: input.type
971
+ }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
972
+ path: _path + ".file",
973
+ expected: "(null | string | undefined)",
974
+ value: input.file
975
+ }, errorFactory));
976
+ const $ao4 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
977
+ path: _path + ".crop",
978
+ expected: "(__type.o3 | undefined)",
979
+ value: input.crop
980
+ }, errorFactory)) && $ao5(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
981
+ path: _path + ".crop",
982
+ expected: "(__type.o3 | undefined)",
983
+ value: input.crop
984
+ }, errorFactory);
985
+ const $ao5 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
986
+ path: _path + ".x",
987
+ expected: "(number | undefined)",
988
+ value: input.x
989
+ }, errorFactory)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y) || $guard(_exceptionable, {
990
+ path: _path + ".y",
991
+ expected: "(number | undefined)",
992
+ value: input.y
993
+ }, errorFactory)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
994
+ path: _path + ".width",
995
+ expected: "(number | undefined)",
996
+ value: input.width
997
+ }, errorFactory)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height) || $guard(_exceptionable, {
998
+ path: _path + ".height",
999
+ expected: "(number | undefined)",
1000
+ value: input.height
1001
+ }, errorFactory));
1002
+ const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1003
+ path: _path + ".language",
1004
+ expected: "(string | undefined)",
1005
+ value: input.language
1006
+ }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1007
+ path: _path + ".pan",
1008
+ expected: "(Array<number> | undefined)",
1009
+ value: input.pan
1010
+ }, errorFactory)) && input.pan.every((elem, _index1) => "number" === typeof elem && !Number.isNaN(elem) || $guard(_exceptionable, {
1011
+ path: _path + ".pan[" + _index1 + "]",
1012
+ expected: "number",
1013
+ value: elem
1014
+ }, errorFactory)) || $guard(_exceptionable, {
1015
+ path: _path + ".pan",
1016
+ expected: "(Array<number> | undefined)",
1017
+ value: input.pan
1018
+ }, errorFactory));
1019
+ const $ao7 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
1020
+ path: _path + ".format",
1021
+ expected: "string",
1022
+ value: input.format
1023
+ }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
1024
+ path: _path + ".transcribe",
1025
+ expected: "(__type.o5 | undefined)",
1026
+ value: input.transcribe
1027
+ }, errorFactory)) && $ao8(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1028
+ path: _path + ".transcribe",
1029
+ expected: "(__type.o5 | undefined)",
1030
+ value: input.transcribe
1031
+ }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
1032
+ path: _path + ".translate",
1033
+ expected: "(__type.o6 | undefined)",
1034
+ value: input.translate
1035
+ }, errorFactory)) && $ao9(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
1036
+ path: _path + ".translate",
1037
+ expected: "(__type.o6 | undefined)",
1038
+ value: input.translate
1039
+ }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
1040
+ path: _path + ".audio",
1041
+ expected: "(__type.o7 | undefined)",
1042
+ value: input.audio
1043
+ }, errorFactory)) && $ao10(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
1044
+ path: _path + ".audio",
1045
+ expected: "(__type.o7 | undefined)",
1046
+ value: input.audio
1047
+ }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
1048
+ path: _path + ".pick",
1049
+ expected: "(Array<string> | undefined)",
1050
+ value: input.pick
1051
+ }, errorFactory)) && input.pick.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
1052
+ path: _path + ".pick[" + _index2 + "]",
1053
+ expected: "string",
1054
+ value: elem
1055
+ }, errorFactory)) || $guard(_exceptionable, {
1056
+ path: _path + ".pick",
1057
+ expected: "(Array<string> | undefined)",
1058
+ value: input.pick
1059
+ }, errorFactory));
1060
+ const $ao8 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
1061
+ path: _path + ".engine",
1062
+ expected: "string",
1063
+ value: input.engine
1064
+ }, errorFactory);
1065
+ const $ao9 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
1066
+ path: _path + ".language",
1067
+ expected: "string",
1068
+ value: input.language
1069
+ }, errorFactory);
1070
+ const $ao10 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
1071
+ path: _path + ".pan",
1072
+ expected: "(string | undefined)",
1073
+ value: input.pan
1074
+ }, errorFactory);
1075
+ return ("object" === typeof input && null !== input || $guard(true, {
1076
+ path: _path + "",
1077
+ expected: "RenderDomainQueryRecord",
1078
+ value: input
1079
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1080
+ path: _path + "",
1081
+ expected: "RenderDomainQueryRecord",
1082
+ value: input
1083
+ }, errorFactory);
1084
+ })(input, "$input", true);
1085
+ return input;
1086
+ }; const stringify = input => {
1087
+ const $io1 = input => "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene) && ("object" === typeof input.profile && null !== input.profile && $io7(input.profile));
1088
+ const $io2 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io3(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io4(input.video)) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io6(input.transcribe));
1089
+ const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1090
+ const $io4 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io5(input.crop);
1091
+ const $io5 = input => (undefined === input.x || "number" === typeof input.x) && (undefined === input.y || "number" === typeof input.y) && (undefined === input.width || "number" === typeof input.width) && (undefined === input.height || "number" === typeof input.height);
1092
+ const $io6 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1093
+ const $io7 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io8(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io9(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io10(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem));
1094
+ const $io8 = input => "string" === typeof input.engine;
1095
+ const $io9 = input => "string" === typeof input.language;
1096
+ const $io10 = input => undefined === input.pan || "string" === typeof input.pan;
1097
+ const $string = __typia.json.createAssertStringify.string;
1098
+ const $tail = __typia.json.createAssertStringify.tail;
1099
+ const $so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? $string(input.parent) : undefined},`}"type":${$string(input.type)},"title":${$string(input.title)},"description":${$so1(input.description)}}`;
1100
+ const $so1 = input => `{"scene":${$so2(input.scene)},"profile":${$so7(input.profile)}}`;
1101
+ const $so2 = input => `{${$tail(`${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined},`}${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so3(input.input) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? $string(input.subtitle) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so4(input.video) : undefined},`}${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so6(input.transcribe) : undefined}`}`)}}`;
1102
+ const $so3 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? null !== input.file ? $string(input.file) : "null" : undefined}`}`)}}`;
1103
+ const $so4 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so5(input.crop) : undefined}`}`)}}`;
1104
+ const $so5 = input => `{${$tail(`${undefined === input.x ? "" : `"x":${undefined !== input.x ? input.x : undefined},`}${undefined === input.y ? "" : `"y":${undefined !== input.y ? input.y : undefined},`}${undefined === input.width ? "" : `"width":${undefined !== input.width ? input.width : undefined},`}${undefined === input.height ? "" : `"height":${undefined !== input.height ? input.height : undefined}`}`)}}`;
1105
+ const $so6 = input => `{${$tail(`${undefined === input.language ? "" : `"language":${undefined !== input.language ? $string(input.language) : undefined},`}${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? `[${input.pan.map(elem => elem).join(",")}]` : undefined}`}`)}}`;
1106
+ const $so7 = input => `{${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? `{"engine":${$string(input.transcribe.engine)}}` : undefined},`}${undefined === input.translate ? "" : `"translate":${undefined !== input.translate ? `{"language":${$string(input.translate.language)}}` : undefined},`}${undefined === input.audio ? "" : `"audio":${undefined !== input.audio ? $so10(input.audio) : undefined},`}${undefined === input.video || "function" === typeof input.video ? "" : `"video":${undefined !== input.video ? JSON.stringify(input.video) : undefined},`}${undefined === input.pick ? "" : `"pick":${undefined !== input.pick ? `[${input.pick.map(elem => $string(elem)).join(",")}]` : undefined},`}"format":${$string(input.format)}}`;
1107
+ const $so10 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
1108
+ return $so0(input);
1109
+ }; return stringify(assert(input, errorFactory)); };
1110
+ export const isRenderDomainResultRecord = input => {
1111
+ const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && Object.keys(input).every(key => {
1112
+ if (["url", "result"].some(prop => key === prop))
1113
+ return true;
1114
+ const value = input[key];
1115
+ if (undefined === value)
1116
+ return true;
1117
+ return true;
1118
+ });
1119
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1120
+ };
1121
+ export const assertRenderDomainResultRecord = (input, errorFactory) => {
1122
+ const __is = input => {
1123
+ const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && Object.keys(input).every(key => {
1124
+ if (["url", "result"].some(prop => key === prop))
1125
+ return true;
1126
+ const value = input[key];
1127
+ if (undefined === value)
1128
+ return true;
1129
+ return true;
1130
+ });
1131
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1132
+ };
1133
+ if (false === __is(input))
1134
+ ((input, _path, _exceptionable = true) => {
1135
+ const $guard = __typia.createAssert.guard;
1136
+ const $join = __typia.createAssert.join;
1137
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.url || "string" === typeof input.url || $guard(_exceptionable, {
1138
+ path: _path + ".url",
1139
+ expected: "(string | undefined)",
1140
+ value: input.url
1141
+ }, errorFactory)) && true && (false === _exceptionable || Object.keys(input).every(key => {
1142
+ if (["url", "result"].some(prop => key === prop))
1143
+ return true;
1144
+ const value = input[key];
1145
+ if (undefined === value)
1146
+ return true;
1147
+ return true;
1148
+ }));
1149
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1150
+ path: _path + "",
1151
+ expected: "RenderDomainResultRecord",
1152
+ value: input
1153
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1154
+ path: _path + "",
1155
+ expected: "RenderDomainResultRecord",
1156
+ value: input
1157
+ }, errorFactory);
1158
+ })(input, "$input", true);
1159
+ return input;
1160
+ };
1161
+ export const randomRenderDomainResultRecord = generator => {
1162
+ const $generator = __typia.createRandom.generator;
1163
+ const $pick = __typia.createRandom.pick;
1164
+ const $ro0 = (_recursive = false, _depth = 0) => {
1165
+ const output = {
1166
+ url: $pick([
1167
+ () => undefined,
1168
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1169
+ ])(),
1170
+ result: $pick([
1171
+ () => "any type used...",
1172
+ () => undefined
1173
+ ])()
1174
+ };
1175
+ (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
1176
+ return output;
1177
+ };
1178
+ return $ro0();
1179
+ };
1180
+ export const assertGuardRenderDomainResultRecord = (input, errorFactory) => {
1181
+ const __is = input => {
1182
+ const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && Object.keys(input).every(key => {
1183
+ if (["url", "result"].some(prop => key === prop))
1184
+ return true;
1185
+ const value = input[key];
1186
+ if (undefined === value)
1187
+ return true;
1188
+ return true;
1189
+ });
1190
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1191
+ };
1192
+ if (false === __is(input))
1193
+ ((input, _path, _exceptionable = true) => {
1194
+ const $guard = __typia.createAssertGuard.guard;
1195
+ const $join = __typia.createAssertGuard.join;
1196
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.url || "string" === typeof input.url || $guard(_exceptionable, {
1197
+ path: _path + ".url",
1198
+ expected: "(string | undefined)",
1199
+ value: input.url
1200
+ }, errorFactory)) && true && (false === _exceptionable || Object.keys(input).every(key => {
1201
+ if (["url", "result"].some(prop => key === prop))
1202
+ return true;
1203
+ const value = input[key];
1204
+ if (undefined === value)
1205
+ return true;
1206
+ return true;
1207
+ }));
1208
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1209
+ path: _path + "",
1210
+ expected: "RenderDomainResultRecord",
1211
+ value: input
1212
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1213
+ path: _path + "",
1214
+ expected: "RenderDomainResultRecord",
1215
+ value: input
1216
+ }, errorFactory);
1217
+ })(input, "$input", true);
1218
+ };
1219
+ export const stringifyRenderDomainResultRecord = input => {
1220
+ const $string = __typia.json.createStringify.string;
1221
+ const $tail = __typia.json.createStringify.tail;
1222
+ const $so0 = input => `{${$tail(`${undefined === input.url ? "" : `"url":${undefined !== input.url ? $string(input.url) : undefined},`}${undefined === input.result || "function" === typeof input.result ? "" : `"result":${undefined !== input.result ? JSON.stringify(input.result) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
1223
+ return ""; if (["url", "result"].some(regular => regular === key))
1224
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`;
1225
+ return $so0(input);
1226
+ };
1227
+ export const assertStringifyRenderDomainResultRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
1228
+ const __is = input => {
1229
+ const $io0 = input => (undefined === input.url || "string" === typeof input.url) && true && Object.keys(input).every(key => {
1230
+ if (["url", "result"].some(prop => key === prop))
1231
+ return true;
1232
+ const value = input[key];
1233
+ if (undefined === value)
1234
+ return true;
1235
+ return true;
1236
+ });
1237
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1238
+ };
1239
+ if (false === __is(input))
1240
+ ((input, _path, _exceptionable = true) => {
1241
+ const $guard = __typia.json.createAssertStringify.guard;
1242
+ const $join = __typia.json.createAssertStringify.join;
1243
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.url || "string" === typeof input.url || $guard(_exceptionable, {
1244
+ path: _path + ".url",
1245
+ expected: "(string | undefined)",
1246
+ value: input.url
1247
+ }, errorFactory)) && true && (false === _exceptionable || Object.keys(input).every(key => {
1248
+ if (["url", "result"].some(prop => key === prop))
1249
+ return true;
1250
+ const value = input[key];
1251
+ if (undefined === value)
1252
+ return true;
1253
+ return true;
1254
+ }));
1255
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1256
+ path: _path + "",
1257
+ expected: "RenderDomainResultRecord",
1258
+ value: input
1259
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1260
+ path: _path + "",
1261
+ expected: "RenderDomainResultRecord",
1262
+ value: input
1263
+ }, errorFactory);
1264
+ })(input, "$input", true);
1265
+ return input;
1266
+ }; const stringify = input => {
1267
+ const $string = __typia.json.createAssertStringify.string;
1268
+ const $tail = __typia.json.createAssertStringify.tail;
1269
+ const $so0 = input => `{${$tail(`${undefined === input.url ? "" : `"url":${undefined !== input.url ? $string(input.url) : undefined},`}${undefined === input.result || "function" === typeof input.result ? "" : `"result":${undefined !== input.result ? JSON.stringify(input.result) : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
1270
+ return ""; if (["url", "result"].some(regular => regular === key))
1271
+ return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`;
1272
+ return $so0(input);
1273
+ }; return stringify(assert(input, errorFactory)); };