@nxtedition/types 23.0.40 → 23.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/app.d.ts +0 -33
  2. package/dist/app.js +1 -655
  3. package/dist/common/block.d.ts +6 -13
  4. package/dist/common/block.js +597 -1607
  5. package/dist/common/clone.d.ts +0 -19
  6. package/dist/common/clone.js +1 -602
  7. package/dist/common/date.d.ts +0 -7
  8. package/dist/common/date.js +1 -59
  9. package/dist/common/error.d.ts +0 -7
  10. package/dist/common/error.js +1 -404
  11. package/dist/common/file.d.ts +1 -21
  12. package/dist/common/file.js +782 -2521
  13. package/dist/common/index.d.ts +20 -26
  14. package/dist/common/index.js +20 -134
  15. package/dist/common/location.d.ts +0 -6
  16. package/dist/common/location.js +73 -238
  17. package/dist/common/lock.d.ts +1 -8
  18. package/dist/common/lock.js +1 -211
  19. package/dist/common/media.d.ts +0 -7
  20. package/dist/common/media.js +1 -83
  21. package/dist/common/nxtpression.d.ts +2 -9
  22. package/dist/common/nxtpression.js +1 -277
  23. package/dist/common/pipeline.d.ts +0 -7
  24. package/dist/common/pipeline.js +1 -97
  25. package/dist/common/promoted-tag.d.ts +0 -7
  26. package/dist/common/promoted-tag.js +1 -147
  27. package/dist/common/render-preset.d.ts +4 -17
  28. package/dist/common/render-preset.js +1 -1202
  29. package/dist/common/render-profile.d.ts +3 -19
  30. package/dist/common/render-profile.js +1 -1052
  31. package/dist/common/render-query.d.ts +2 -9
  32. package/dist/common/render-query.js +1 -1843
  33. package/dist/common/render-scene.d.ts +3 -16
  34. package/dist/common/render-scene.js +1 -2408
  35. package/dist/common/rule.d.ts +1 -7
  36. package/dist/common/rule.js +84 -254
  37. package/dist/common/search.d.ts +0 -25
  38. package/dist/common/search.js +1 -1591
  39. package/dist/common/settings.d.ts +113 -125
  40. package/dist/common/settings.js +1 -7504
  41. package/dist/common/subtitle-style.d.ts +25 -0
  42. package/dist/common/user-notification.d.ts +0 -7
  43. package/dist/common/user-notification.js +1 -85
  44. package/dist/index.d.ts +5 -108
  45. package/dist/index.js +5 -469
  46. package/dist/nxtpression.d.ts +538 -337
  47. package/dist/nxtpression.js +1 -323
  48. package/dist/records/domains/asset.d.ts +106 -0
  49. package/dist/records/domains/bundle.d.ts +12 -0
  50. package/dist/records/domains/bundle.js +1 -0
  51. package/dist/records/domains/clone.d.ts +7 -0
  52. package/dist/records/domains/clone.js +1 -0
  53. package/dist/records/domains/comment-reaction.d.ts +8 -0
  54. package/dist/records/domains/comment-reaction.js +1 -0
  55. package/dist/records/domains/comment-read-mark.d.ts +8 -0
  56. package/dist/records/domains/comment-read-mark.js +1 -0
  57. package/dist/records/domains/comment.d.ts +81 -0
  58. package/dist/records/domains/comment.js +19 -0
  59. package/dist/records/domains/connection.d.ts +77 -0
  60. package/dist/records/domains/connection.js +1 -0
  61. package/dist/records/domains/contact.d.ts +9 -0
  62. package/dist/records/domains/contact.js +1 -0
  63. package/dist/records/domains/deepstream.d.ts +8 -0
  64. package/dist/records/domains/deepstream.js +1 -0
  65. package/dist/records/domains/design.d.ts +11 -0
  66. package/dist/records/domains/design.js +1 -0
  67. package/dist/records/domains/edit.d.ts +10 -0
  68. package/dist/records/domains/edit.js +1 -0
  69. package/dist/records/domains/event.d.ts +66 -0
  70. package/dist/records/domains/event.js +1 -0
  71. package/dist/records/domains/file.d.ts +26 -0
  72. package/dist/records/domains/file.js +1 -0
  73. package/dist/records/domains/general.d.ts +41 -0
  74. package/dist/records/domains/general.js +1 -0
  75. package/dist/records/domains/index.d.ts +77 -0
  76. package/dist/records/domains/index.js +38 -0
  77. package/dist/records/domains/media.d.ts +64 -0
  78. package/dist/records/domains/media.js +1 -0
  79. package/dist/records/domains/monitor.d.ts +116 -0
  80. package/dist/records/domains/monitor.js +1 -0
  81. package/dist/records/domains/panel.d.ts +55 -0
  82. package/dist/records/domains/panel.js +1 -0
  83. package/dist/records/domains/permission.d.ts +25 -0
  84. package/dist/records/domains/permission.js +2 -0
  85. package/dist/records/domains/pipeline-preset.d.ts +10 -0
  86. package/dist/records/domains/pipeline-preset.js +1 -0
  87. package/dist/records/domains/pipeline.d.ts +17 -0
  88. package/dist/records/domains/pipeline.js +1 -0
  89. package/dist/records/domains/planning.d.ts +14 -0
  90. package/dist/records/domains/planning.js +1 -0
  91. package/dist/records/domains/prompter.d.ts +18 -0
  92. package/dist/records/domains/prompter.js +1 -0
  93. package/dist/records/domains/publish.d.ts +149 -0
  94. package/dist/records/domains/publish.js +1 -0
  95. package/dist/records/domains/published.d.ts +12 -0
  96. package/dist/records/domains/published.js +1 -0
  97. package/dist/records/domains/render-preset.d.ts +5 -0
  98. package/dist/records/domains/render-preset.js +1 -0
  99. package/dist/records/domains/render.d.ts +115 -0
  100. package/dist/records/domains/render.js +1 -0
  101. package/dist/records/domains/revs.d.ts +6 -0
  102. package/dist/records/domains/revs.js +1 -0
  103. package/dist/records/domains/role.d.ts +6 -0
  104. package/dist/records/domains/role.js +1 -0
  105. package/dist/records/domains/script.d.ts +101 -0
  106. package/dist/records/domains/script.js +1 -0
  107. package/dist/records/domains/search.d.ts +23 -0
  108. package/dist/records/domains/search.js +1 -0
  109. package/dist/records/domains/settings.d.ts +5 -0
  110. package/dist/records/domains/settings.js +1 -0
  111. package/dist/records/domains/storyboard.d.ts +10 -0
  112. package/dist/records/domains/storyboard.js +1 -0
  113. package/dist/records/domains/subtitle-style.d.ts +13 -0
  114. package/dist/records/domains/subtitle-style.js +1 -0
  115. package/dist/records/domains/subtitle.d.ts +12 -0
  116. package/dist/records/domains/subtitle.js +1 -0
  117. package/dist/records/domains/template.d.ts +11 -0
  118. package/dist/records/domains/template.js +1 -0
  119. package/dist/records/domains/user-notification-status.d.ts +30 -0
  120. package/dist/records/domains/user-notification-status.js +1 -0
  121. package/dist/records/domains/user-notification.d.ts +69 -0
  122. package/dist/records/domains/user-notification.js +1 -0
  123. package/dist/records/domains/user.d.ts +23 -0
  124. package/dist/records/domains/user.js +1 -0
  125. package/dist/records/exact/asset.d.ts +83 -0
  126. package/dist/records/exact/asset.js +1 -0
  127. package/dist/records/exact/index.d.ts +36 -0
  128. package/dist/records/exact/index.js +4 -0
  129. package/dist/records/exact/media.d.ts +52 -0
  130. package/dist/records/exact/media.js +1 -0
  131. package/dist/records/exact/monitor.d.ts +46 -0
  132. package/dist/records/exact/monitor.js +1 -0
  133. package/dist/records/exact/storage.d.ts +32 -0
  134. package/dist/records/exact/storage.js +1 -0
  135. package/dist/records/index.d.ts +10 -0
  136. package/dist/records/index.js +2 -0
  137. package/dist/records/utils.d.ts +7 -0
  138. package/dist/records/utils.js +1 -0
  139. package/dist/records/utils.tds.d.ts +1 -0
  140. package/dist/records/utils.tds.js +7 -0
  141. package/dist/records/validate/assert-guard.d.ts +4 -0
  142. package/dist/records/validate/assert-guard.js +16068 -0
  143. package/dist/records/validate/assert.d.ts +4 -0
  144. package/dist/records/validate/assert.js +16198 -0
  145. package/dist/records/validate/is.d.ts +4 -0
  146. package/dist/records/validate/is.js +1027 -0
  147. package/dist/records/validate/schemas.d.ts +9 -0
  148. package/dist/records/validate/schemas.js +12862 -0
  149. package/dist/records/validate/stringify.d.ts +4 -0
  150. package/dist/records/validate/stringify.js +1915 -0
  151. package/dist/records/validate/utils.d.ts +15 -0
  152. package/dist/records/validate/utils.js +26 -0
  153. package/dist/records/validate/validate-equals.d.ts +5 -0
  154. package/dist/records/validate/validate-equals.js +24363 -0
  155. package/dist/records/validate/validate.d.ts +5 -0
  156. package/dist/records/validate/validate.js +15127 -0
  157. package/dist/rpc.d.ts +5 -15
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +25 -15
  161. package/dist/asset.d.ts +0 -72
  162. package/dist/domains/asset.d.ts +0 -227
  163. package/dist/domains/asset.js +0 -2672
  164. package/dist/domains/bundle.d.ts +0 -25
  165. package/dist/domains/bundle.js +0 -512
  166. package/dist/domains/clone.d.ts +0 -14
  167. package/dist/domains/clone.js +0 -192
  168. package/dist/domains/comment-reaction.d.ts +0 -15
  169. package/dist/domains/comment-reaction.js +0 -115
  170. package/dist/domains/comment-read-mark.d.ts +0 -15
  171. package/dist/domains/comment-read-mark.js +0 -115
  172. package/dist/domains/comment.d.ts +0 -153
  173. package/dist/domains/comment.js +0 -5906
  174. package/dist/domains/connection.d.ts +0 -141
  175. package/dist/domains/connection.js +0 -5860
  176. package/dist/domains/contact.d.ts +0 -16
  177. package/dist/domains/contact.js +0 -149
  178. package/dist/domains/deepstream.d.ts +0 -14
  179. package/dist/domains/deepstream.js +0 -139
  180. package/dist/domains/design.d.ts +0 -24
  181. package/dist/domains/design.js +0 -303
  182. package/dist/domains/edit.d.ts +0 -17
  183. package/dist/domains/edit.js +0 -224
  184. package/dist/domains/event.d.ts +0 -170
  185. package/dist/domains/event.js +0 -2779
  186. package/dist/domains/file.d.ts +0 -51
  187. package/dist/domains/file.js +0 -2506
  188. package/dist/domains/general.d.ts +0 -84
  189. package/dist/domains/general.js +0 -906
  190. package/dist/domains/index.d.ts +0 -75
  191. package/dist/domains/index.js +0 -37
  192. package/dist/domains/media.d.ts +0 -113
  193. package/dist/domains/media.js +0 -4642
  194. package/dist/domains/monitor.d.ts +0 -416
  195. package/dist/domains/monitor.js +0 -6382
  196. package/dist/domains/panel.d.ts +0 -371
  197. package/dist/domains/panel.js +0 -3198
  198. package/dist/domains/permission.d.ts +0 -61
  199. package/dist/domains/permission.js +0 -1926
  200. package/dist/domains/pipeline-preset.d.ts +0 -17
  201. package/dist/domains/pipeline-preset.js +0 -236
  202. package/dist/domains/pipeline.d.ts +0 -30
  203. package/dist/domains/pipeline.js +0 -460
  204. package/dist/domains/planning.d.ts +0 -33
  205. package/dist/domains/planning.js +0 -324
  206. package/dist/domains/publish.d.ts +0 -1452
  207. package/dist/domains/publish.js +0 -35415
  208. package/dist/domains/published.d.ts +0 -19
  209. package/dist/domains/published.js +0 -204
  210. package/dist/domains/render-preset.d.ts +0 -4
  211. package/dist/domains/render.d.ts +0 -158
  212. package/dist/domains/render.js +0 -4452
  213. package/dist/domains/revs.d.ts +0 -13
  214. package/dist/domains/revs.js +0 -125
  215. package/dist/domains/role.d.ts +0 -13
  216. package/dist/domains/role.js +0 -119
  217. package/dist/domains/script.d.ts +0 -263
  218. package/dist/domains/script.js +0 -6777
  219. package/dist/domains/search.d.ts +0 -16
  220. package/dist/domains/search.js +0 -168
  221. package/dist/domains/settings.d.ts +0 -12
  222. package/dist/domains/settings.js +0 -7180
  223. package/dist/domains/storyboard.d.ts +0 -14
  224. package/dist/domains/storyboard.js +0 -125
  225. package/dist/domains/subtitle-style.d.ts +0 -42
  226. package/dist/domains/subtitle-style.js +0 -574
  227. package/dist/domains/subtitle.d.ts +0 -19
  228. package/dist/domains/subtitle.js +0 -212
  229. package/dist/domains/template.d.ts +0 -23
  230. package/dist/domains/template.js +0 -372
  231. package/dist/domains/user-notification-status.d.ts +0 -55
  232. package/dist/domains/user-notification-status.js +0 -715
  233. package/dist/domains/user-notification.d.ts +0 -118
  234. package/dist/domains/user-notification.js +0 -3040
  235. package/dist/domains/user.d.ts +0 -48
  236. package/dist/domains/user.js +0 -481
  237. package/dist/monitor.d.ts +0 -71
  238. package/dist/monitor.js +0 -1942
  239. package/dist/schema.json +0 -9836
  240. package/dist/storage.d.ts +0 -51
  241. package/dist/storage.js +0 -1036
  242. /package/dist/{asset.js → common/subtitle-style.js} +0 -0
  243. /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
@@ -1,1052 +1 @@
1
- import __typia from "typia";
2
- export const isRenderProfile = input => {
3
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
4
- const $io1 = input => "string" === typeof input.engine;
5
- const $io2 = input => "string" === typeof input.language;
6
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
7
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
8
- return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io0(elem))) || "object" === typeof input && null !== input && $io0(input)));
9
- };
10
- export const assertRenderProfile = (input, errorFactory) => {
11
- const __is = input => {
12
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
13
- const $io1 = input => "string" === typeof input.engine;
14
- const $io2 = input => "string" === typeof input.language;
15
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
16
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
17
- return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io0(elem))) || "object" === typeof input && null !== input && $io0(input)));
18
- };
19
- if (false === __is(input))
20
- ((input, _path, _exceptionable = true) => {
21
- const $guard = __typia.createAssert.guard;
22
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
23
- path: _path + ".format",
24
- expected: "string",
25
- value: input.format
26
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
27
- path: _path + ".transcribe",
28
- expected: "(__type | undefined)",
29
- value: input.transcribe
30
- }, errorFactory)) && $ao1(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
31
- path: _path + ".transcribe",
32
- expected: "(__type | undefined)",
33
- value: input.transcribe
34
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
35
- path: _path + ".translate",
36
- expected: "(__type.o1 | undefined)",
37
- value: input.translate
38
- }, errorFactory)) && $ao2(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
39
- path: _path + ".translate",
40
- expected: "(__type.o1 | undefined)",
41
- value: input.translate
42
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
43
- path: _path + ".audio",
44
- expected: "(__type.o2 | undefined)",
45
- value: input.audio
46
- }, errorFactory)) && $ao3(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
47
- path: _path + ".audio",
48
- expected: "(__type.o2 | undefined)",
49
- value: input.audio
50
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
51
- path: _path + ".pick",
52
- expected: "(Array<string> | undefined)",
53
- value: input.pick
54
- }, errorFactory)) && input.pick.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
55
- path: _path + ".pick[" + _index2 + "]",
56
- expected: "string",
57
- value: elem
58
- }, errorFactory)) || $guard(_exceptionable, {
59
- path: _path + ".pick",
60
- expected: "(Array<string> | undefined)",
61
- value: input.pick
62
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
63
- path: _path + ".subtitle",
64
- expected: "(SubtitleProfile | string | undefined)",
65
- value: input.subtitle
66
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
67
- path: _path + ".subtitle",
68
- expected: "(SubtitleProfile | string | undefined)",
69
- value: input.subtitle
70
- }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
71
- path: _path + ".subtitle",
72
- expected: "(SubtitleProfile | string | undefined)",
73
- value: input.subtitle
74
- }, errorFactory)));
75
- const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
76
- path: _path + ".engine",
77
- expected: "string",
78
- value: input.engine
79
- }, errorFactory);
80
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
81
- path: _path + ".language",
82
- expected: "string",
83
- value: input.language
84
- }, errorFactory);
85
- const $ao3 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
86
- path: _path + ".pan",
87
- expected: "(string | undefined)",
88
- value: input.pan
89
- }, errorFactory);
90
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
91
- path: _path + ".lang",
92
- expected: "(string | undefined)",
93
- value: input.lang
94
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
95
- path: _path + ".style",
96
- expected: "(string | undefined)",
97
- value: input.style
98
- }, errorFactory));
99
- return (null !== input || $guard(true, {
100
- path: _path + "",
101
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
102
- value: input
103
- }, errorFactory)) && (undefined !== input || $guard(true, {
104
- path: _path + "",
105
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
106
- value: input
107
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
108
- path: _path + "[" + _index1 + "]",
109
- expected: "(RenderProfileObject | string)",
110
- value: elem
111
- }, errorFactory)) && (undefined !== elem || $guard(true, {
112
- path: _path + "[" + _index1 + "]",
113
- expected: "(RenderProfileObject | string)",
114
- value: elem
115
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(true, {
116
- path: _path + "[" + _index1 + "]",
117
- expected: "(RenderProfileObject | string)",
118
- value: elem
119
- }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
120
- path: _path + "[" + _index1 + "]",
121
- expected: "(RenderProfileObject | string)",
122
- value: elem
123
- }, errorFactory))) || "object" === typeof input && null !== input && $ao0(input, _path + "", true) || $guard(true, {
124
- path: _path + "",
125
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
126
- value: input
127
- }, errorFactory)) || $guard(true, {
128
- path: _path + "",
129
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
130
- value: input
131
- }, errorFactory));
132
- })(input, "$input", true);
133
- return input;
134
- };
135
- export const randomRenderProfile = generator => {
136
- const $generator = __typia.createRandom.generator;
137
- const $pick = __typia.createRandom.pick;
138
- const $ro0 = (_recursive = false, _depth = 0) => ({
139
- format: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
140
- transcribe: $pick([
141
- () => undefined,
142
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
143
- ])(),
144
- translate: $pick([
145
- () => undefined,
146
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
147
- ])(),
148
- audio: $pick([
149
- () => undefined,
150
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
151
- ])(),
152
- video: $pick([
153
- () => "any type used...",
154
- () => undefined
155
- ])(),
156
- pick: $pick([
157
- () => undefined,
158
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
159
- ])(),
160
- subtitle: $pick([
161
- () => undefined,
162
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
163
- () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
164
- ])()
165
- });
166
- const $ro1 = (_recursive = false, _depth = 0) => ({
167
- engine: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
168
- });
169
- const $ro2 = (_recursive = false, _depth = 0) => ({
170
- language: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
171
- });
172
- const $ro3 = (_recursive = false, _depth = 0) => ({
173
- pan: $pick([
174
- () => undefined,
175
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
176
- ])()
177
- });
178
- const $ro4 = (_recursive = false, _depth = 0) => ({
179
- lang: $pick([
180
- () => undefined,
181
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
182
- ])(),
183
- style: $pick([
184
- () => undefined,
185
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
186
- ])()
187
- });
188
- return $pick([
189
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
190
- () => (generator?.array ?? $generator.array)(() => $pick([
191
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
192
- () => $ro0()
193
- ])()),
194
- () => $ro0()
195
- ])();
196
- };
197
- export const assertGuardRenderProfile = (input, errorFactory) => {
198
- const __is = input => {
199
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
200
- const $io1 = input => "string" === typeof input.engine;
201
- const $io2 = input => "string" === typeof input.language;
202
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
203
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
204
- return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io0(elem))) || "object" === typeof input && null !== input && $io0(input)));
205
- };
206
- if (false === __is(input))
207
- ((input, _path, _exceptionable = true) => {
208
- const $guard = __typia.createAssertGuard.guard;
209
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
210
- path: _path + ".format",
211
- expected: "string",
212
- value: input.format
213
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
214
- path: _path + ".transcribe",
215
- expected: "(__type | undefined)",
216
- value: input.transcribe
217
- }, errorFactory)) && $ao1(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
218
- path: _path + ".transcribe",
219
- expected: "(__type | undefined)",
220
- value: input.transcribe
221
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
222
- path: _path + ".translate",
223
- expected: "(__type.o1 | undefined)",
224
- value: input.translate
225
- }, errorFactory)) && $ao2(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
226
- path: _path + ".translate",
227
- expected: "(__type.o1 | undefined)",
228
- value: input.translate
229
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
230
- path: _path + ".audio",
231
- expected: "(__type.o2 | undefined)",
232
- value: input.audio
233
- }, errorFactory)) && $ao3(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
234
- path: _path + ".audio",
235
- expected: "(__type.o2 | undefined)",
236
- value: input.audio
237
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
238
- path: _path + ".pick",
239
- expected: "(Array<string> | undefined)",
240
- value: input.pick
241
- }, errorFactory)) && input.pick.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
242
- path: _path + ".pick[" + _index2 + "]",
243
- expected: "string",
244
- value: elem
245
- }, errorFactory)) || $guard(_exceptionable, {
246
- path: _path + ".pick",
247
- expected: "(Array<string> | undefined)",
248
- value: input.pick
249
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
250
- path: _path + ".subtitle",
251
- expected: "(SubtitleProfile | string | undefined)",
252
- value: input.subtitle
253
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
254
- path: _path + ".subtitle",
255
- expected: "(SubtitleProfile | string | undefined)",
256
- value: input.subtitle
257
- }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
258
- path: _path + ".subtitle",
259
- expected: "(SubtitleProfile | string | undefined)",
260
- value: input.subtitle
261
- }, errorFactory)));
262
- const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
263
- path: _path + ".engine",
264
- expected: "string",
265
- value: input.engine
266
- }, errorFactory);
267
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
268
- path: _path + ".language",
269
- expected: "string",
270
- value: input.language
271
- }, errorFactory);
272
- const $ao3 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
273
- path: _path + ".pan",
274
- expected: "(string | undefined)",
275
- value: input.pan
276
- }, errorFactory);
277
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
278
- path: _path + ".lang",
279
- expected: "(string | undefined)",
280
- value: input.lang
281
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
282
- path: _path + ".style",
283
- expected: "(string | undefined)",
284
- value: input.style
285
- }, errorFactory));
286
- return (null !== input || $guard(true, {
287
- path: _path + "",
288
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
289
- value: input
290
- }, errorFactory)) && (undefined !== input || $guard(true, {
291
- path: _path + "",
292
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
293
- value: input
294
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
295
- path: _path + "[" + _index1 + "]",
296
- expected: "(RenderProfileObject | string)",
297
- value: elem
298
- }, errorFactory)) && (undefined !== elem || $guard(true, {
299
- path: _path + "[" + _index1 + "]",
300
- expected: "(RenderProfileObject | string)",
301
- value: elem
302
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(true, {
303
- path: _path + "[" + _index1 + "]",
304
- expected: "(RenderProfileObject | string)",
305
- value: elem
306
- }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
307
- path: _path + "[" + _index1 + "]",
308
- expected: "(RenderProfileObject | string)",
309
- value: elem
310
- }, errorFactory))) || "object" === typeof input && null !== input && $ao0(input, _path + "", true) || $guard(true, {
311
- path: _path + "",
312
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
313
- value: input
314
- }, errorFactory)) || $guard(true, {
315
- path: _path + "",
316
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
317
- value: input
318
- }, errorFactory));
319
- })(input, "$input", true);
320
- };
321
- export const stringifyRenderProfile = input => {
322
- const $io1 = input => "string" === typeof input.engine;
323
- const $io2 = input => "string" === typeof input.language;
324
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
325
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
326
- const $string = __typia.json.createStringify.string;
327
- const $throws = __typia.json.createStringify.throws;
328
- const $tail = __typia.json.createStringify.tail;
329
- const $so0 = 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 ? $so3(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},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
330
- if ("string" === typeof input.subtitle)
331
- return $string(input.subtitle);
332
- if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
333
- return $so4(input.subtitle);
334
- $throws({
335
- expected: "(SubtitleProfile | string | undefined)",
336
- value: input.subtitle
337
- });
338
- })() : undefined},`}"format":${$string(input.format)}}`;
339
- const $so3 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
340
- const $so4 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
341
- return (() => {
342
- if ("string" === typeof input)
343
- return $string(input);
344
- if (Array.isArray(input))
345
- return `[${input.map(elem => (() => {
346
- if ("string" === typeof elem)
347
- return $string(elem);
348
- if ("object" === typeof elem && null !== elem)
349
- return $so0(elem);
350
- $throws({
351
- expected: "(RenderProfileObject | string)",
352
- value: elem
353
- });
354
- })()).join(",")}]`;
355
- if ("object" === typeof input && null !== input)
356
- return $so0(input);
357
- $throws({
358
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
359
- value: input
360
- });
361
- })();
362
- };
363
- export const assertStringifyRenderProfile = (input, errorFactory) => { const assert = (input, errorFactory) => {
364
- const __is = input => {
365
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
366
- const $io1 = input => "string" === typeof input.engine;
367
- const $io2 = input => "string" === typeof input.language;
368
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
369
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
370
- return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io0(elem))) || "object" === typeof input && null !== input && $io0(input)));
371
- };
372
- if (false === __is(input))
373
- ((input, _path, _exceptionable = true) => {
374
- const $guard = __typia.json.createAssertStringify.guard;
375
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
376
- path: _path + ".format",
377
- expected: "string",
378
- value: input.format
379
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
380
- path: _path + ".transcribe",
381
- expected: "(__type | undefined)",
382
- value: input.transcribe
383
- }, errorFactory)) && $ao1(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
384
- path: _path + ".transcribe",
385
- expected: "(__type | undefined)",
386
- value: input.transcribe
387
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
388
- path: _path + ".translate",
389
- expected: "(__type.o1 | undefined)",
390
- value: input.translate
391
- }, errorFactory)) && $ao2(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
392
- path: _path + ".translate",
393
- expected: "(__type.o1 | undefined)",
394
- value: input.translate
395
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
396
- path: _path + ".audio",
397
- expected: "(__type.o2 | undefined)",
398
- value: input.audio
399
- }, errorFactory)) && $ao3(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
400
- path: _path + ".audio",
401
- expected: "(__type.o2 | undefined)",
402
- value: input.audio
403
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
404
- path: _path + ".pick",
405
- expected: "(Array<string> | undefined)",
406
- value: input.pick
407
- }, errorFactory)) && input.pick.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
408
- path: _path + ".pick[" + _index2 + "]",
409
- expected: "string",
410
- value: elem
411
- }, errorFactory)) || $guard(_exceptionable, {
412
- path: _path + ".pick",
413
- expected: "(Array<string> | undefined)",
414
- value: input.pick
415
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
416
- path: _path + ".subtitle",
417
- expected: "(SubtitleProfile | string | undefined)",
418
- value: input.subtitle
419
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
420
- path: _path + ".subtitle",
421
- expected: "(SubtitleProfile | string | undefined)",
422
- value: input.subtitle
423
- }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
424
- path: _path + ".subtitle",
425
- expected: "(SubtitleProfile | string | undefined)",
426
- value: input.subtitle
427
- }, errorFactory)));
428
- const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
429
- path: _path + ".engine",
430
- expected: "string",
431
- value: input.engine
432
- }, errorFactory);
433
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
434
- path: _path + ".language",
435
- expected: "string",
436
- value: input.language
437
- }, errorFactory);
438
- const $ao3 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
439
- path: _path + ".pan",
440
- expected: "(string | undefined)",
441
- value: input.pan
442
- }, errorFactory);
443
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
444
- path: _path + ".lang",
445
- expected: "(string | undefined)",
446
- value: input.lang
447
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
448
- path: _path + ".style",
449
- expected: "(string | undefined)",
450
- value: input.style
451
- }, errorFactory));
452
- return (null !== input || $guard(true, {
453
- path: _path + "",
454
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
455
- value: input
456
- }, errorFactory)) && (undefined !== input || $guard(true, {
457
- path: _path + "",
458
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
459
- value: input
460
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && input.every((elem, _index1) => (null !== elem || $guard(true, {
461
- path: _path + "[" + _index1 + "]",
462
- expected: "(RenderProfileObject | string)",
463
- value: elem
464
- }, errorFactory)) && (undefined !== elem || $guard(true, {
465
- path: _path + "[" + _index1 + "]",
466
- expected: "(RenderProfileObject | string)",
467
- value: elem
468
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(true, {
469
- path: _path + "[" + _index1 + "]",
470
- expected: "(RenderProfileObject | string)",
471
- value: elem
472
- }, errorFactory)) && $ao0(elem, _path + "[" + _index1 + "]", true) || $guard(true, {
473
- path: _path + "[" + _index1 + "]",
474
- expected: "(RenderProfileObject | string)",
475
- value: elem
476
- }, errorFactory))) || "object" === typeof input && null !== input && $ao0(input, _path + "", true) || $guard(true, {
477
- path: _path + "",
478
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
479
- value: input
480
- }, errorFactory)) || $guard(true, {
481
- path: _path + "",
482
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
483
- value: input
484
- }, errorFactory));
485
- })(input, "$input", true);
486
- return input;
487
- }; const stringify = input => {
488
- const $io1 = input => "string" === typeof input.engine;
489
- const $io2 = input => "string" === typeof input.language;
490
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
491
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
492
- const $string = __typia.json.createAssertStringify.string;
493
- const $throws = __typia.json.createAssertStringify.throws;
494
- const $tail = __typia.json.createAssertStringify.tail;
495
- const $so0 = 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 ? $so3(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},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
496
- if ("string" === typeof input.subtitle)
497
- return $string(input.subtitle);
498
- if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
499
- return $so4(input.subtitle);
500
- $throws({
501
- expected: "(SubtitleProfile | string | undefined)",
502
- value: input.subtitle
503
- });
504
- })() : undefined},`}"format":${$string(input.format)}}`;
505
- const $so3 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
506
- const $so4 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
507
- return (() => {
508
- if ("string" === typeof input)
509
- return $string(input);
510
- if (Array.isArray(input))
511
- return `[${input.map(elem => (() => {
512
- if ("string" === typeof elem)
513
- return $string(elem);
514
- if ("object" === typeof elem && null !== elem)
515
- return $so0(elem);
516
- $throws({
517
- expected: "(RenderProfileObject | string)",
518
- value: elem
519
- });
520
- })()).join(",")}]`;
521
- if ("object" === typeof input && null !== input)
522
- return $so0(input);
523
- $throws({
524
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string)",
525
- value: input
526
- });
527
- })();
528
- }; return stringify(assert(input, errorFactory)); };
529
- export const isRenderProfileObject = input => {
530
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
531
- const $io1 = input => "string" === typeof input.engine;
532
- const $io2 = input => "string" === typeof input.language;
533
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
534
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
535
- return "object" === typeof input && null !== input && $io0(input);
536
- };
537
- export const assertRenderProfileObject = (input, errorFactory) => {
538
- const __is = input => {
539
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
540
- const $io1 = input => "string" === typeof input.engine;
541
- const $io2 = input => "string" === typeof input.language;
542
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
543
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
544
- return "object" === typeof input && null !== input && $io0(input);
545
- };
546
- if (false === __is(input))
547
- ((input, _path, _exceptionable = true) => {
548
- const $guard = __typia.createAssert.guard;
549
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
550
- path: _path + ".format",
551
- expected: "string",
552
- value: input.format
553
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
554
- path: _path + ".transcribe",
555
- expected: "(__type | undefined)",
556
- value: input.transcribe
557
- }, errorFactory)) && $ao1(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
558
- path: _path + ".transcribe",
559
- expected: "(__type | undefined)",
560
- value: input.transcribe
561
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
562
- path: _path + ".translate",
563
- expected: "(__type.o1 | undefined)",
564
- value: input.translate
565
- }, errorFactory)) && $ao2(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
566
- path: _path + ".translate",
567
- expected: "(__type.o1 | undefined)",
568
- value: input.translate
569
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
570
- path: _path + ".audio",
571
- expected: "(__type.o2 | undefined)",
572
- value: input.audio
573
- }, errorFactory)) && $ao3(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
574
- path: _path + ".audio",
575
- expected: "(__type.o2 | undefined)",
576
- value: input.audio
577
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
578
- path: _path + ".pick",
579
- expected: "(Array<string> | undefined)",
580
- value: input.pick
581
- }, errorFactory)) && input.pick.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
582
- path: _path + ".pick[" + _index1 + "]",
583
- expected: "string",
584
- value: elem
585
- }, errorFactory)) || $guard(_exceptionable, {
586
- path: _path + ".pick",
587
- expected: "(Array<string> | undefined)",
588
- value: input.pick
589
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
590
- path: _path + ".subtitle",
591
- expected: "(SubtitleProfile | string | undefined)",
592
- value: input.subtitle
593
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
594
- path: _path + ".subtitle",
595
- expected: "(SubtitleProfile | string | undefined)",
596
- value: input.subtitle
597
- }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
598
- path: _path + ".subtitle",
599
- expected: "(SubtitleProfile | string | undefined)",
600
- value: input.subtitle
601
- }, errorFactory)));
602
- const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
603
- path: _path + ".engine",
604
- expected: "string",
605
- value: input.engine
606
- }, errorFactory);
607
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
608
- path: _path + ".language",
609
- expected: "string",
610
- value: input.language
611
- }, errorFactory);
612
- const $ao3 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
613
- path: _path + ".pan",
614
- expected: "(string | undefined)",
615
- value: input.pan
616
- }, errorFactory);
617
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
618
- path: _path + ".lang",
619
- expected: "(string | undefined)",
620
- value: input.lang
621
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
622
- path: _path + ".style",
623
- expected: "(string | undefined)",
624
- value: input.style
625
- }, errorFactory));
626
- return ("object" === typeof input && null !== input || $guard(true, {
627
- path: _path + "",
628
- expected: "RenderProfileObject",
629
- value: input
630
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
631
- path: _path + "",
632
- expected: "RenderProfileObject",
633
- value: input
634
- }, errorFactory);
635
- })(input, "$input", true);
636
- return input;
637
- };
638
- export const randomRenderProfileObject = generator => {
639
- const $generator = __typia.createRandom.generator;
640
- const $pick = __typia.createRandom.pick;
641
- const $ro0 = (_recursive = false, _depth = 0) => ({
642
- format: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
643
- transcribe: $pick([
644
- () => undefined,
645
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
646
- ])(),
647
- translate: $pick([
648
- () => undefined,
649
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
650
- ])(),
651
- audio: $pick([
652
- () => undefined,
653
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
654
- ])(),
655
- video: $pick([
656
- () => "any type used...",
657
- () => undefined
658
- ])(),
659
- pick: $pick([
660
- () => undefined,
661
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
662
- ])(),
663
- subtitle: $pick([
664
- () => undefined,
665
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
666
- () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
667
- ])()
668
- });
669
- const $ro1 = (_recursive = false, _depth = 0) => ({
670
- engine: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
671
- });
672
- const $ro2 = (_recursive = false, _depth = 0) => ({
673
- language: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
674
- });
675
- const $ro3 = (_recursive = false, _depth = 0) => ({
676
- pan: $pick([
677
- () => undefined,
678
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
679
- ])()
680
- });
681
- const $ro4 = (_recursive = false, _depth = 0) => ({
682
- lang: $pick([
683
- () => undefined,
684
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
685
- ])(),
686
- style: $pick([
687
- () => undefined,
688
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
689
- ])()
690
- });
691
- return $ro0();
692
- };
693
- export const assertGuardRenderProfileObject = (input, errorFactory) => {
694
- const __is = input => {
695
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
696
- const $io1 = input => "string" === typeof input.engine;
697
- const $io2 = input => "string" === typeof input.language;
698
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
699
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
700
- return "object" === typeof input && null !== input && $io0(input);
701
- };
702
- if (false === __is(input))
703
- ((input, _path, _exceptionable = true) => {
704
- const $guard = __typia.createAssertGuard.guard;
705
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
706
- path: _path + ".format",
707
- expected: "string",
708
- value: input.format
709
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
710
- path: _path + ".transcribe",
711
- expected: "(__type | undefined)",
712
- value: input.transcribe
713
- }, errorFactory)) && $ao1(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
714
- path: _path + ".transcribe",
715
- expected: "(__type | undefined)",
716
- value: input.transcribe
717
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
718
- path: _path + ".translate",
719
- expected: "(__type.o1 | undefined)",
720
- value: input.translate
721
- }, errorFactory)) && $ao2(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
722
- path: _path + ".translate",
723
- expected: "(__type.o1 | undefined)",
724
- value: input.translate
725
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
726
- path: _path + ".audio",
727
- expected: "(__type.o2 | undefined)",
728
- value: input.audio
729
- }, errorFactory)) && $ao3(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
730
- path: _path + ".audio",
731
- expected: "(__type.o2 | undefined)",
732
- value: input.audio
733
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
734
- path: _path + ".pick",
735
- expected: "(Array<string> | undefined)",
736
- value: input.pick
737
- }, errorFactory)) && input.pick.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
738
- path: _path + ".pick[" + _index1 + "]",
739
- expected: "string",
740
- value: elem
741
- }, errorFactory)) || $guard(_exceptionable, {
742
- path: _path + ".pick",
743
- expected: "(Array<string> | undefined)",
744
- value: input.pick
745
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
746
- path: _path + ".subtitle",
747
- expected: "(SubtitleProfile | string | undefined)",
748
- value: input.subtitle
749
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
750
- path: _path + ".subtitle",
751
- expected: "(SubtitleProfile | string | undefined)",
752
- value: input.subtitle
753
- }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
754
- path: _path + ".subtitle",
755
- expected: "(SubtitleProfile | string | undefined)",
756
- value: input.subtitle
757
- }, errorFactory)));
758
- const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
759
- path: _path + ".engine",
760
- expected: "string",
761
- value: input.engine
762
- }, errorFactory);
763
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
764
- path: _path + ".language",
765
- expected: "string",
766
- value: input.language
767
- }, errorFactory);
768
- const $ao3 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
769
- path: _path + ".pan",
770
- expected: "(string | undefined)",
771
- value: input.pan
772
- }, errorFactory);
773
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
774
- path: _path + ".lang",
775
- expected: "(string | undefined)",
776
- value: input.lang
777
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
778
- path: _path + ".style",
779
- expected: "(string | undefined)",
780
- value: input.style
781
- }, errorFactory));
782
- return ("object" === typeof input && null !== input || $guard(true, {
783
- path: _path + "",
784
- expected: "RenderProfileObject",
785
- value: input
786
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
787
- path: _path + "",
788
- expected: "RenderProfileObject",
789
- value: input
790
- }, errorFactory);
791
- })(input, "$input", true);
792
- };
793
- export const stringifyRenderProfileObject = input => {
794
- const $io1 = input => "string" === typeof input.engine;
795
- const $io2 = input => "string" === typeof input.language;
796
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
797
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
798
- const $string = __typia.json.createStringify.string;
799
- const $throws = __typia.json.createStringify.throws;
800
- const $tail = __typia.json.createStringify.tail;
801
- const $so0 = 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 ? $so3(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},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
802
- if ("string" === typeof input.subtitle)
803
- return $string(input.subtitle);
804
- if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
805
- return $so4(input.subtitle);
806
- $throws({
807
- expected: "(SubtitleProfile | string | undefined)",
808
- value: input.subtitle
809
- });
810
- })() : undefined},`}"format":${$string(input.format)}}`;
811
- const $so3 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
812
- const $so4 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
813
- return $so0(input);
814
- };
815
- export const assertStringifyRenderProfileObject = (input, errorFactory) => { const assert = (input, errorFactory) => {
816
- const __is = input => {
817
- const $io0 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io1(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io2(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io3(input.audio)) && true && (undefined === input.pick || Array.isArray(input.pick) && input.pick.every(elem => "string" === typeof elem)) && (null !== input.subtitle && (undefined === input.subtitle || "string" === typeof input.subtitle || "object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) && $io4(input.subtitle)));
818
- const $io1 = input => "string" === typeof input.engine;
819
- const $io2 = input => "string" === typeof input.language;
820
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
821
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
822
- return "object" === typeof input && null !== input && $io0(input);
823
- };
824
- if (false === __is(input))
825
- ((input, _path, _exceptionable = true) => {
826
- const $guard = __typia.json.createAssertStringify.guard;
827
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
828
- path: _path + ".format",
829
- expected: "string",
830
- value: input.format
831
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
832
- path: _path + ".transcribe",
833
- expected: "(__type | undefined)",
834
- value: input.transcribe
835
- }, errorFactory)) && $ao1(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
836
- path: _path + ".transcribe",
837
- expected: "(__type | undefined)",
838
- value: input.transcribe
839
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
840
- path: _path + ".translate",
841
- expected: "(__type.o1 | undefined)",
842
- value: input.translate
843
- }, errorFactory)) && $ao2(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
844
- path: _path + ".translate",
845
- expected: "(__type.o1 | undefined)",
846
- value: input.translate
847
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
848
- path: _path + ".audio",
849
- expected: "(__type.o2 | undefined)",
850
- value: input.audio
851
- }, errorFactory)) && $ao3(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
852
- path: _path + ".audio",
853
- expected: "(__type.o2 | undefined)",
854
- value: input.audio
855
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
856
- path: _path + ".pick",
857
- expected: "(Array<string> | undefined)",
858
- value: input.pick
859
- }, errorFactory)) && input.pick.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
860
- path: _path + ".pick[" + _index1 + "]",
861
- expected: "string",
862
- value: elem
863
- }, errorFactory)) || $guard(_exceptionable, {
864
- path: _path + ".pick",
865
- expected: "(Array<string> | undefined)",
866
- value: input.pick
867
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
868
- path: _path + ".subtitle",
869
- expected: "(SubtitleProfile | string | undefined)",
870
- value: input.subtitle
871
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
872
- path: _path + ".subtitle",
873
- expected: "(SubtitleProfile | string | undefined)",
874
- value: input.subtitle
875
- }, errorFactory)) && $ao4(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
876
- path: _path + ".subtitle",
877
- expected: "(SubtitleProfile | string | undefined)",
878
- value: input.subtitle
879
- }, errorFactory)));
880
- const $ao1 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
881
- path: _path + ".engine",
882
- expected: "string",
883
- value: input.engine
884
- }, errorFactory);
885
- const $ao2 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
886
- path: _path + ".language",
887
- expected: "string",
888
- value: input.language
889
- }, errorFactory);
890
- const $ao3 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
891
- path: _path + ".pan",
892
- expected: "(string | undefined)",
893
- value: input.pan
894
- }, errorFactory);
895
- const $ao4 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
896
- path: _path + ".lang",
897
- expected: "(string | undefined)",
898
- value: input.lang
899
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
900
- path: _path + ".style",
901
- expected: "(string | undefined)",
902
- value: input.style
903
- }, errorFactory));
904
- return ("object" === typeof input && null !== input || $guard(true, {
905
- path: _path + "",
906
- expected: "RenderProfileObject",
907
- value: input
908
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
909
- path: _path + "",
910
- expected: "RenderProfileObject",
911
- value: input
912
- }, errorFactory);
913
- })(input, "$input", true);
914
- return input;
915
- }; const stringify = input => {
916
- const $io1 = input => "string" === typeof input.engine;
917
- const $io2 = input => "string" === typeof input.language;
918
- const $io3 = input => undefined === input.pan || "string" === typeof input.pan;
919
- const $io4 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
920
- const $string = __typia.json.createAssertStringify.string;
921
- const $throws = __typia.json.createAssertStringify.throws;
922
- const $tail = __typia.json.createAssertStringify.tail;
923
- const $so0 = 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 ? $so3(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},`}${undefined === input.subtitle ? "" : `"subtitle":${undefined !== input.subtitle ? (() => {
924
- if ("string" === typeof input.subtitle)
925
- return $string(input.subtitle);
926
- if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
927
- return $so4(input.subtitle);
928
- $throws({
929
- expected: "(SubtitleProfile | string | undefined)",
930
- value: input.subtitle
931
- });
932
- })() : undefined},`}"format":${$string(input.format)}}`;
933
- const $so3 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
934
- const $so4 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
935
- return $so0(input);
936
- }; return stringify(assert(input, errorFactory)); };
937
- export const isSubtitleProfile = input => {
938
- const $io0 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
939
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
940
- };
941
- export const assertSubtitleProfile = (input, errorFactory) => {
942
- const __is = input => {
943
- const $io0 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
944
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
945
- };
946
- if (false === __is(input))
947
- ((input, _path, _exceptionable = true) => {
948
- const $guard = __typia.createAssert.guard;
949
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
950
- path: _path + ".lang",
951
- expected: "(string | undefined)",
952
- value: input.lang
953
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
954
- path: _path + ".style",
955
- expected: "(string | undefined)",
956
- value: input.style
957
- }, errorFactory));
958
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
959
- path: _path + "",
960
- expected: "SubtitleProfile",
961
- value: input
962
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
963
- path: _path + "",
964
- expected: "SubtitleProfile",
965
- value: input
966
- }, errorFactory);
967
- })(input, "$input", true);
968
- return input;
969
- };
970
- export const randomSubtitleProfile = generator => {
971
- const $generator = __typia.createRandom.generator;
972
- const $pick = __typia.createRandom.pick;
973
- const $ro0 = (_recursive = false, _depth = 0) => ({
974
- lang: $pick([
975
- () => undefined,
976
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
977
- ])(),
978
- style: $pick([
979
- () => undefined,
980
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
981
- ])()
982
- });
983
- return $ro0();
984
- };
985
- export const assertGuardSubtitleProfile = (input, errorFactory) => {
986
- const __is = input => {
987
- const $io0 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
988
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
989
- };
990
- if (false === __is(input))
991
- ((input, _path, _exceptionable = true) => {
992
- const $guard = __typia.createAssertGuard.guard;
993
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
994
- path: _path + ".lang",
995
- expected: "(string | undefined)",
996
- value: input.lang
997
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
998
- path: _path + ".style",
999
- expected: "(string | undefined)",
1000
- value: input.style
1001
- }, errorFactory));
1002
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1003
- path: _path + "",
1004
- expected: "SubtitleProfile",
1005
- value: input
1006
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1007
- path: _path + "",
1008
- expected: "SubtitleProfile",
1009
- value: input
1010
- }, errorFactory);
1011
- })(input, "$input", true);
1012
- };
1013
- export const stringifySubtitleProfile = input => {
1014
- const $string = __typia.json.createStringify.string;
1015
- const $tail = __typia.json.createStringify.tail;
1016
- const $so0 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
1017
- return $so0(input);
1018
- };
1019
- export const assertStringifySubtitleProfile = (input, errorFactory) => { const assert = (input, errorFactory) => {
1020
- const __is = input => {
1021
- const $io0 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
1022
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1023
- };
1024
- if (false === __is(input))
1025
- ((input, _path, _exceptionable = true) => {
1026
- const $guard = __typia.json.createAssertStringify.guard;
1027
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1028
- path: _path + ".lang",
1029
- expected: "(string | undefined)",
1030
- value: input.lang
1031
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1032
- path: _path + ".style",
1033
- expected: "(string | undefined)",
1034
- value: input.style
1035
- }, errorFactory));
1036
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1037
- path: _path + "",
1038
- expected: "SubtitleProfile",
1039
- value: input
1040
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1041
- path: _path + "",
1042
- expected: "SubtitleProfile",
1043
- value: input
1044
- }, errorFactory);
1045
- })(input, "$input", true);
1046
- return input;
1047
- }; const stringify = input => {
1048
- const $string = __typia.json.createAssertStringify.string;
1049
- const $tail = __typia.json.createAssertStringify.tail;
1050
- const $so0 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
1051
- return $so0(input);
1052
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};