@nxtedition/types 23.0.40 → 23.0.41

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 +2 -15
  28. package/dist/common/render-preset.js +1 -1202
  29. package/dist/common/render-profile.d.ts +0 -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 +2 -15
  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 +507 -331
  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 +7 -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 +145 -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 +9 -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 +10 -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 +15861 -0
  143. package/dist/records/validate/assert.d.ts +4 -0
  144. package/dist/records/validate/assert.js +15990 -0
  145. package/dist/records/validate/is.d.ts +4 -0
  146. package/dist/records/validate/is.js +1017 -0
  147. package/dist/records/validate/schemas.d.ts +9 -0
  148. package/dist/records/validate/schemas.js +12613 -0
  149. package/dist/records/validate/stringify.d.ts +4 -0
  150. package/dist/records/validate/stringify.js +1904 -0
  151. package/dist/records/validate/utils.d.ts +15 -0
  152. package/dist/records/validate/utils.js +18 -0
  153. package/dist/records/validate/utils.test.d.ts +1 -0
  154. package/dist/records/validate/utils.test.js +35 -0
  155. package/dist/records/validate/validate.d.ts +5 -0
  156. package/dist/records/validate/validate.js +14943 -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,1843 +1 @@
1
- import __typia from "typia";
2
- export const isRenderQuery = input => {
3
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
4
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io11(elem))) || "object" === typeof input.profile && null !== input.profile && $io11(input.profile))));
5
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(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) && $io10(input.transcribe));
6
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
7
- const $io4 = input => Object.keys(input).every(key => {
8
- const value = input[key];
9
- if (undefined === value)
10
- return true;
11
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
12
- });
13
- const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
14
- const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
15
- const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
16
- const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
17
- const $io9 = 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);
18
- const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
19
- const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(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) && $io15(input.subtitle)));
20
- const $io12 = input => "string" === typeof input.engine;
21
- const $io13 = input => "string" === typeof input.language;
22
- const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
23
- const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
24
- return "object" === typeof input && null !== input && $io0(input);
25
- };
26
- export const assertRenderQuery = (input, errorFactory) => {
27
- const __is = input => {
28
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
29
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io11(elem))) || "object" === typeof input.profile && null !== input.profile && $io11(input.profile))));
30
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(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) && $io10(input.transcribe));
31
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
32
- const $io4 = input => Object.keys(input).every(key => {
33
- const value = input[key];
34
- if (undefined === value)
35
- return true;
36
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
37
- });
38
- const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
39
- const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
40
- const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
41
- const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
42
- const $io9 = 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);
43
- const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
44
- const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(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) && $io15(input.subtitle)));
45
- const $io12 = input => "string" === typeof input.engine;
46
- const $io13 = input => "string" === typeof input.language;
47
- const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
48
- const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
49
- return "object" === typeof input && null !== input && $io0(input);
50
- };
51
- if (false === __is(input))
52
- ((input, _path, _exceptionable = true) => {
53
- const $guard = __typia.createAssert.guard;
54
- const $join = __typia.createAssert.join;
55
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
56
- path: _path + ".type",
57
- expected: "string",
58
- value: input.type
59
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
60
- path: _path + ".title",
61
- expected: "string",
62
- value: input.title
63
- }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
64
- path: _path + ".parent",
65
- expected: "(string | undefined)",
66
- value: input.parent
67
- }, errorFactory)) && (undefined === input.description || ("object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) || $guard(_exceptionable, {
68
- path: _path + ".description",
69
- expected: "(__type | undefined)",
70
- value: input.description
71
- }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
72
- path: _path + ".description",
73
- expected: "(__type | undefined)",
74
- value: input.description
75
- }, errorFactory));
76
- const $ao1 = (input, _path, _exceptionable = true) => (null !== input.scene || $guard(_exceptionable, {
77
- path: _path + ".scene",
78
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
79
- value: input.scene
80
- }, errorFactory)) && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
81
- path: _path + ".scene[" + _index1 + "]",
82
- expected: "(RenderSceneObject | string)",
83
- value: elem
84
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
85
- path: _path + ".scene[" + _index1 + "]",
86
- expected: "(RenderSceneObject | string)",
87
- value: elem
88
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
89
- path: _path + ".scene[" + _index1 + "]",
90
- expected: "(RenderSceneObject | string)",
91
- value: elem
92
- }, errorFactory)) && $ao2(elem, _path + ".scene[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
93
- path: _path + ".scene[" + _index1 + "]",
94
- expected: "(RenderSceneObject | string)",
95
- value: elem
96
- }, errorFactory))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
97
- path: _path + ".scene",
98
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
99
- value: input.scene
100
- }, errorFactory)) || $guard(_exceptionable, {
101
- path: _path + ".scene",
102
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
103
- value: input.scene
104
- }, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
105
- path: _path + ".profile",
106
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
107
- value: input.profile
108
- }, errorFactory)) && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
109
- path: _path + ".profile[" + _index2 + "]",
110
- expected: "(RenderProfileObject | string)",
111
- value: elem
112
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
113
- path: _path + ".profile[" + _index2 + "]",
114
- expected: "(RenderProfileObject | string)",
115
- value: elem
116
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
117
- path: _path + ".profile[" + _index2 + "]",
118
- expected: "(RenderProfileObject | string)",
119
- value: elem
120
- }, errorFactory)) && $ao11(elem, _path + ".profile[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
121
- path: _path + ".profile[" + _index2 + "]",
122
- expected: "(RenderProfileObject | string)",
123
- value: elem
124
- }, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao11(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
125
- path: _path + ".profile",
126
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
127
- value: input.profile
128
- }, errorFactory)) || $guard(_exceptionable, {
129
- path: _path + ".profile",
130
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
131
- value: input.profile
132
- }, errorFactory)));
133
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
134
- path: _path + ".id",
135
- expected: "(string | undefined)",
136
- value: input.id
137
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
138
- path: _path + ".preset",
139
- expected: "(string | undefined)",
140
- value: input.preset
141
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
142
- path: _path + ".input",
143
- expected: "(__type.o1 | undefined)",
144
- value: input.input
145
- }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
146
- path: _path + ".input",
147
- expected: "(__type.o1 | undefined)",
148
- value: input.input
149
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
150
- path: _path + ".lang",
151
- expected: "(string | undefined)",
152
- value: input.lang
153
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
154
- path: _path + ".subtitle",
155
- expected: "(string | undefined)",
156
- value: input.subtitle
157
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
158
- path: _path + ".subtitleTracks",
159
- expected: "(__type.o2 | undefined)",
160
- value: input.subtitleTracks
161
- }, errorFactory)) && $ao4(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
162
- path: _path + ".subtitleTracks",
163
- expected: "(__type.o2 | undefined)",
164
- value: input.subtitleTracks
165
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
166
- path: _path + ".video",
167
- expected: "(__type.o5 | undefined)",
168
- value: input.video
169
- }, errorFactory)) && $ao8(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
170
- path: _path + ".video",
171
- expected: "(__type.o5 | undefined)",
172
- value: input.video
173
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
174
- path: _path + ".start",
175
- expected: "(number | undefined)",
176
- value: input.start
177
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
178
- path: _path + ".end",
179
- expected: "(number | undefined)",
180
- value: input.end
181
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
182
- path: _path + ".transcribe",
183
- expected: "(__type.o7 | undefined)",
184
- value: input.transcribe
185
- }, errorFactory)) && $ao10(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
186
- path: _path + ".transcribe",
187
- expected: "(__type.o7 | undefined)",
188
- value: input.transcribe
189
- }, errorFactory));
190
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
191
- path: _path + ".type",
192
- expected: "(string | undefined)",
193
- value: input.type
194
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
195
- path: _path + ".file",
196
- expected: "(null | string | undefined)",
197
- value: input.file
198
- }, errorFactory));
199
- const $ao4 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
200
- const value = input[key];
201
- if (undefined === value)
202
- return true;
203
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
204
- path: _path + $join(key),
205
- expected: "__type.o3",
206
- value: value
207
- }, errorFactory)) && $ao5(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
208
- path: _path + $join(key),
209
- expected: "__type.o3",
210
- value: value
211
- }, errorFactory);
212
- });
213
- const $ao5 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
214
- path: _path + ".style",
215
- expected: "(null | string | undefined)",
216
- value: input.style
217
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
218
- path: _path + ".styleOverrides",
219
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
220
- value: input.styleOverrides
221
- }, errorFactory)) && $ao6(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
222
- path: _path + ".styleOverrides",
223
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
224
- value: input.styleOverrides
225
- }, errorFactory));
226
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
227
- path: _path + ".name",
228
- expected: "(string | undefined)",
229
- value: input.name
230
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
231
- path: _path + ".fontname",
232
- expected: "(string | undefined)",
233
- value: input.fontname
234
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
235
- path: _path + ".fontsize",
236
- expected: "(string | undefined)",
237
- value: input.fontsize
238
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
239
- path: _path + ".primaryColour",
240
- expected: "(string | undefined)",
241
- value: input.primaryColour
242
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
243
- path: _path + ".secondaryColour",
244
- expected: "(string | undefined)",
245
- value: input.secondaryColour
246
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
247
- path: _path + ".outlineColour",
248
- expected: "(string | undefined)",
249
- value: input.outlineColour
250
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
251
- path: _path + ".backColour",
252
- expected: "(string | undefined)",
253
- value: input.backColour
254
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
255
- path: _path + ".bold",
256
- expected: "(string | undefined)",
257
- value: input.bold
258
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
259
- path: _path + ".italic",
260
- expected: "(string | undefined)",
261
- value: input.italic
262
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
263
- path: _path + ".underline",
264
- expected: "(string | undefined)",
265
- value: input.underline
266
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
267
- path: _path + ".strikeOut",
268
- expected: "(string | undefined)",
269
- value: input.strikeOut
270
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
271
- path: _path + ".scaleX",
272
- expected: "(string | undefined)",
273
- value: input.scaleX
274
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
275
- path: _path + ".scaleY",
276
- expected: "(string | undefined)",
277
- value: input.scaleY
278
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
279
- path: _path + ".spacing",
280
- expected: "(string | undefined)",
281
- value: input.spacing
282
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
283
- path: _path + ".angle",
284
- expected: "(string | undefined)",
285
- value: input.angle
286
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
287
- path: _path + ".borderStyle",
288
- expected: "(string | undefined)",
289
- value: input.borderStyle
290
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
291
- path: _path + ".outline",
292
- expected: "(string | undefined)",
293
- value: input.outline
294
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
295
- path: _path + ".shadow",
296
- expected: "(string | undefined)",
297
- value: input.shadow
298
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
299
- path: _path + ".alignment",
300
- expected: "(string | undefined)",
301
- value: input.alignment
302
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
303
- path: _path + ".marginL",
304
- expected: "(string | undefined)",
305
- value: input.marginL
306
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
307
- path: _path + ".marginR",
308
- expected: "(string | undefined)",
309
- value: input.marginR
310
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
311
- path: _path + ".marginV",
312
- expected: "(string | undefined)",
313
- value: input.marginV
314
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
315
- path: _path + ".encoding",
316
- expected: "(string | undefined)",
317
- value: input.encoding
318
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
319
- path: _path + ".previewSettings",
320
- expected: "(__type.o4 | undefined)",
321
- value: input.previewSettings
322
- }, errorFactory)) && $ao7(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
323
- path: _path + ".previewSettings",
324
- expected: "(__type.o4 | undefined)",
325
- value: input.previewSettings
326
- }, errorFactory));
327
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
328
- path: _path + ".aspectRatio",
329
- expected: "(string | undefined)",
330
- value: input.aspectRatio
331
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
332
- path: _path + ".backgroundAssetId",
333
- expected: "(string | undefined)",
334
- value: input.backgroundAssetId
335
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
336
- path: _path + ".text",
337
- expected: "(string | undefined)",
338
- value: input.text
339
- }, errorFactory));
340
- const $ao8 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
341
- path: _path + ".crop",
342
- expected: "(__type.o6 | undefined)",
343
- value: input.crop
344
- }, errorFactory)) && $ao9(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
345
- path: _path + ".crop",
346
- expected: "(__type.o6 | undefined)",
347
- value: input.crop
348
- }, errorFactory);
349
- const $ao9 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
350
- path: _path + ".x",
351
- expected: "(number | undefined)",
352
- value: input.x
353
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
354
- path: _path + ".y",
355
- expected: "(number | undefined)",
356
- value: input.y
357
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
358
- path: _path + ".width",
359
- expected: "(number | undefined)",
360
- value: input.width
361
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
362
- path: _path + ".height",
363
- expected: "(number | undefined)",
364
- value: input.height
365
- }, errorFactory));
366
- const $ao10 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
367
- path: _path + ".language",
368
- expected: "(string | undefined)",
369
- value: input.language
370
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
371
- path: _path + ".pan",
372
- expected: "(Array<number> | undefined)",
373
- value: input.pan
374
- }, errorFactory)) && input.pan.every((elem, _index3) => "number" === typeof elem || $guard(_exceptionable, {
375
- path: _path + ".pan[" + _index3 + "]",
376
- expected: "number",
377
- value: elem
378
- }, errorFactory)) || $guard(_exceptionable, {
379
- path: _path + ".pan",
380
- expected: "(Array<number> | undefined)",
381
- value: input.pan
382
- }, errorFactory));
383
- const $ao11 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
384
- path: _path + ".format",
385
- expected: "string",
386
- value: input.format
387
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
388
- path: _path + ".transcribe",
389
- expected: "(__type.o8 | undefined)",
390
- value: input.transcribe
391
- }, errorFactory)) && $ao12(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
392
- path: _path + ".transcribe",
393
- expected: "(__type.o8 | undefined)",
394
- value: input.transcribe
395
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
396
- path: _path + ".translate",
397
- expected: "(__type.o9 | undefined)",
398
- value: input.translate
399
- }, errorFactory)) && $ao13(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
400
- path: _path + ".translate",
401
- expected: "(__type.o9 | undefined)",
402
- value: input.translate
403
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
404
- path: _path + ".audio",
405
- expected: "(__type.o10 | undefined)",
406
- value: input.audio
407
- }, errorFactory)) && $ao14(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
408
- path: _path + ".audio",
409
- expected: "(__type.o10 | undefined)",
410
- value: input.audio
411
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
412
- path: _path + ".pick",
413
- expected: "(Array<string> | undefined)",
414
- value: input.pick
415
- }, errorFactory)) && input.pick.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
416
- path: _path + ".pick[" + _index4 + "]",
417
- expected: "string",
418
- value: elem
419
- }, errorFactory)) || $guard(_exceptionable, {
420
- path: _path + ".pick",
421
- expected: "(Array<string> | undefined)",
422
- value: input.pick
423
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
424
- path: _path + ".subtitle",
425
- expected: "(SubtitleProfile | string | undefined)",
426
- value: input.subtitle
427
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
428
- path: _path + ".subtitle",
429
- expected: "(SubtitleProfile | string | undefined)",
430
- value: input.subtitle
431
- }, errorFactory)) && $ao15(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
432
- path: _path + ".subtitle",
433
- expected: "(SubtitleProfile | string | undefined)",
434
- value: input.subtitle
435
- }, errorFactory)));
436
- const $ao12 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
437
- path: _path + ".engine",
438
- expected: "string",
439
- value: input.engine
440
- }, errorFactory);
441
- const $ao13 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
442
- path: _path + ".language",
443
- expected: "string",
444
- value: input.language
445
- }, errorFactory);
446
- const $ao14 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
447
- path: _path + ".pan",
448
- expected: "(string | undefined)",
449
- value: input.pan
450
- }, errorFactory);
451
- const $ao15 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
452
- path: _path + ".lang",
453
- expected: "(string | undefined)",
454
- value: input.lang
455
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
456
- path: _path + ".style",
457
- expected: "(string | undefined)",
458
- value: input.style
459
- }, errorFactory));
460
- return ("object" === typeof input && null !== input || $guard(true, {
461
- path: _path + "",
462
- expected: "RenderQuery",
463
- value: input
464
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
465
- path: _path + "",
466
- expected: "RenderQuery",
467
- value: input
468
- }, errorFactory);
469
- })(input, "$input", true);
470
- return input;
471
- };
472
- export const randomRenderQuery = generator => {
473
- const $generator = __typia.createRandom.generator;
474
- const $pick = __typia.createRandom.pick;
475
- const $ro0 = (_recursive = false, _depth = 0) => ({
476
- type: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
477
- title: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
478
- parent: $pick([
479
- () => undefined,
480
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
481
- ])(),
482
- description: $pick([
483
- () => undefined,
484
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
485
- ])()
486
- });
487
- const $ro1 = (_recursive = false, _depth = 0) => ({
488
- scene: $pick([
489
- () => undefined,
490
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
491
- () => (generator?.array ?? $generator.array)(() => $pick([
492
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
493
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
494
- ])()),
495
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
496
- ])(),
497
- profile: $pick([
498
- () => undefined,
499
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
500
- () => (generator?.array ?? $generator.array)(() => $pick([
501
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
502
- () => $ro11(_recursive, _recursive ? 1 + _depth : _depth)
503
- ])()),
504
- () => $ro11(_recursive, _recursive ? 1 + _depth : _depth)
505
- ])()
506
- });
507
- const $ro2 = (_recursive = false, _depth = 0) => ({
508
- id: $pick([
509
- () => undefined,
510
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
511
- ])(),
512
- preset: $pick([
513
- () => undefined,
514
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
515
- ])(),
516
- input: $pick([
517
- () => undefined,
518
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
519
- ])(),
520
- lang: $pick([
521
- () => undefined,
522
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
523
- ])(),
524
- subtitle: $pick([
525
- () => undefined,
526
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
527
- ])(),
528
- subtitleTracks: $pick([
529
- () => undefined,
530
- () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
531
- ])(),
532
- video: $pick([
533
- () => undefined,
534
- () => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
535
- ])(),
536
- start: $pick([
537
- () => undefined,
538
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
539
- ])(),
540
- end: $pick([
541
- () => undefined,
542
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
543
- ])(),
544
- transcribe: $pick([
545
- () => undefined,
546
- () => $ro10(_recursive, _recursive ? 1 + _depth : _depth)
547
- ])()
548
- });
549
- const $ro3 = (_recursive = false, _depth = 0) => ({
550
- type: $pick([
551
- () => undefined,
552
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
553
- ])(),
554
- file: $pick([
555
- () => undefined,
556
- () => null,
557
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
558
- ])()
559
- });
560
- const $ro4 = (_recursive = false, _depth = 0) => {
561
- const output = {};
562
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro5(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
563
- return output;
564
- };
565
- const $ro5 = (_recursive = false, _depth = 0) => ({
566
- style: $pick([
567
- () => undefined,
568
- () => null,
569
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
570
- ])(),
571
- styleOverrides: $pick([
572
- () => undefined,
573
- () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
574
- ])()
575
- });
576
- const $ro6 = (_recursive = false, _depth = 0) => ({
577
- name: $pick([
578
- () => undefined,
579
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
580
- ])(),
581
- fontname: $pick([
582
- () => undefined,
583
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
584
- ])(),
585
- fontsize: $pick([
586
- () => undefined,
587
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
588
- ])(),
589
- primaryColour: $pick([
590
- () => undefined,
591
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
592
- ])(),
593
- secondaryColour: $pick([
594
- () => undefined,
595
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
596
- ])(),
597
- outlineColour: $pick([
598
- () => undefined,
599
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
600
- ])(),
601
- backColour: $pick([
602
- () => undefined,
603
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
604
- ])(),
605
- bold: $pick([
606
- () => undefined,
607
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
608
- ])(),
609
- italic: $pick([
610
- () => undefined,
611
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
612
- ])(),
613
- underline: $pick([
614
- () => undefined,
615
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
616
- ])(),
617
- strikeOut: $pick([
618
- () => undefined,
619
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
620
- ])(),
621
- scaleX: $pick([
622
- () => undefined,
623
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
624
- ])(),
625
- scaleY: $pick([
626
- () => undefined,
627
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
628
- ])(),
629
- spacing: $pick([
630
- () => undefined,
631
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
632
- ])(),
633
- angle: $pick([
634
- () => undefined,
635
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
636
- ])(),
637
- borderStyle: $pick([
638
- () => undefined,
639
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
640
- ])(),
641
- outline: $pick([
642
- () => undefined,
643
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
644
- ])(),
645
- shadow: $pick([
646
- () => undefined,
647
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
648
- ])(),
649
- alignment: $pick([
650
- () => undefined,
651
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
652
- ])(),
653
- marginL: $pick([
654
- () => undefined,
655
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
656
- ])(),
657
- marginR: $pick([
658
- () => undefined,
659
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
660
- ])(),
661
- marginV: $pick([
662
- () => undefined,
663
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
664
- ])(),
665
- encoding: $pick([
666
- () => undefined,
667
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
668
- ])(),
669
- previewSettings: $pick([
670
- () => undefined,
671
- () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
672
- ])()
673
- });
674
- const $ro7 = (_recursive = false, _depth = 0) => ({
675
- aspectRatio: $pick([
676
- () => undefined,
677
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
678
- ])(),
679
- backgroundAssetId: $pick([
680
- () => undefined,
681
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
682
- ])(),
683
- text: $pick([
684
- () => undefined,
685
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
686
- ])()
687
- });
688
- const $ro8 = (_recursive = false, _depth = 0) => ({
689
- crop: $pick([
690
- () => undefined,
691
- () => $ro9(_recursive, _recursive ? 1 + _depth : _depth)
692
- ])()
693
- });
694
- const $ro9 = (_recursive = false, _depth = 0) => ({
695
- x: $pick([
696
- () => undefined,
697
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
698
- ])(),
699
- y: $pick([
700
- () => undefined,
701
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
702
- ])(),
703
- width: $pick([
704
- () => undefined,
705
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
706
- ])(),
707
- height: $pick([
708
- () => undefined,
709
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
710
- ])()
711
- });
712
- const $ro10 = (_recursive = false, _depth = 0) => ({
713
- language: $pick([
714
- () => undefined,
715
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
716
- ])(),
717
- pan: $pick([
718
- () => undefined,
719
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100))
720
- ])()
721
- });
722
- const $ro11 = (_recursive = false, _depth = 0) => ({
723
- format: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
724
- transcribe: $pick([
725
- () => undefined,
726
- () => $ro12(_recursive, _recursive ? 1 + _depth : _depth)
727
- ])(),
728
- translate: $pick([
729
- () => undefined,
730
- () => $ro13(_recursive, _recursive ? 1 + _depth : _depth)
731
- ])(),
732
- audio: $pick([
733
- () => undefined,
734
- () => $ro14(_recursive, _recursive ? 1 + _depth : _depth)
735
- ])(),
736
- video: $pick([
737
- () => "any type used...",
738
- () => undefined
739
- ])(),
740
- pick: $pick([
741
- () => undefined,
742
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
743
- ])(),
744
- subtitle: $pick([
745
- () => undefined,
746
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
747
- () => $ro15(_recursive, _recursive ? 1 + _depth : _depth)
748
- ])()
749
- });
750
- const $ro12 = (_recursive = false, _depth = 0) => ({
751
- engine: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
752
- });
753
- const $ro13 = (_recursive = false, _depth = 0) => ({
754
- language: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
755
- });
756
- const $ro14 = (_recursive = false, _depth = 0) => ({
757
- pan: $pick([
758
- () => undefined,
759
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
760
- ])()
761
- });
762
- const $ro15 = (_recursive = false, _depth = 0) => ({
763
- lang: $pick([
764
- () => undefined,
765
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
766
- ])(),
767
- style: $pick([
768
- () => undefined,
769
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
770
- ])()
771
- });
772
- return $ro0();
773
- };
774
- export const assertGuardRenderQuery = (input, errorFactory) => {
775
- const __is = input => {
776
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
777
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io11(elem))) || "object" === typeof input.profile && null !== input.profile && $io11(input.profile))));
778
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(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) && $io10(input.transcribe));
779
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
780
- const $io4 = input => Object.keys(input).every(key => {
781
- const value = input[key];
782
- if (undefined === value)
783
- return true;
784
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
785
- });
786
- const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
787
- const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
788
- const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
789
- const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
790
- const $io9 = 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);
791
- const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
792
- const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(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) && $io15(input.subtitle)));
793
- const $io12 = input => "string" === typeof input.engine;
794
- const $io13 = input => "string" === typeof input.language;
795
- const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
796
- const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
797
- return "object" === typeof input && null !== input && $io0(input);
798
- };
799
- if (false === __is(input))
800
- ((input, _path, _exceptionable = true) => {
801
- const $guard = __typia.createAssertGuard.guard;
802
- const $join = __typia.createAssertGuard.join;
803
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
804
- path: _path + ".type",
805
- expected: "string",
806
- value: input.type
807
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
808
- path: _path + ".title",
809
- expected: "string",
810
- value: input.title
811
- }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
812
- path: _path + ".parent",
813
- expected: "(string | undefined)",
814
- value: input.parent
815
- }, errorFactory)) && (undefined === input.description || ("object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) || $guard(_exceptionable, {
816
- path: _path + ".description",
817
- expected: "(__type | undefined)",
818
- value: input.description
819
- }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
820
- path: _path + ".description",
821
- expected: "(__type | undefined)",
822
- value: input.description
823
- }, errorFactory));
824
- const $ao1 = (input, _path, _exceptionable = true) => (null !== input.scene || $guard(_exceptionable, {
825
- path: _path + ".scene",
826
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
827
- value: input.scene
828
- }, errorFactory)) && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
829
- path: _path + ".scene[" + _index1 + "]",
830
- expected: "(RenderSceneObject | string)",
831
- value: elem
832
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
833
- path: _path + ".scene[" + _index1 + "]",
834
- expected: "(RenderSceneObject | string)",
835
- value: elem
836
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
837
- path: _path + ".scene[" + _index1 + "]",
838
- expected: "(RenderSceneObject | string)",
839
- value: elem
840
- }, errorFactory)) && $ao2(elem, _path + ".scene[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
841
- path: _path + ".scene[" + _index1 + "]",
842
- expected: "(RenderSceneObject | string)",
843
- value: elem
844
- }, errorFactory))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
845
- path: _path + ".scene",
846
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
847
- value: input.scene
848
- }, errorFactory)) || $guard(_exceptionable, {
849
- path: _path + ".scene",
850
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
851
- value: input.scene
852
- }, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
853
- path: _path + ".profile",
854
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
855
- value: input.profile
856
- }, errorFactory)) && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
857
- path: _path + ".profile[" + _index2 + "]",
858
- expected: "(RenderProfileObject | string)",
859
- value: elem
860
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
861
- path: _path + ".profile[" + _index2 + "]",
862
- expected: "(RenderProfileObject | string)",
863
- value: elem
864
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
865
- path: _path + ".profile[" + _index2 + "]",
866
- expected: "(RenderProfileObject | string)",
867
- value: elem
868
- }, errorFactory)) && $ao11(elem, _path + ".profile[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
869
- path: _path + ".profile[" + _index2 + "]",
870
- expected: "(RenderProfileObject | string)",
871
- value: elem
872
- }, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao11(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
873
- path: _path + ".profile",
874
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
875
- value: input.profile
876
- }, errorFactory)) || $guard(_exceptionable, {
877
- path: _path + ".profile",
878
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
879
- value: input.profile
880
- }, errorFactory)));
881
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
882
- path: _path + ".id",
883
- expected: "(string | undefined)",
884
- value: input.id
885
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
886
- path: _path + ".preset",
887
- expected: "(string | undefined)",
888
- value: input.preset
889
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
890
- path: _path + ".input",
891
- expected: "(__type.o1 | undefined)",
892
- value: input.input
893
- }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
894
- path: _path + ".input",
895
- expected: "(__type.o1 | undefined)",
896
- value: input.input
897
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
898
- path: _path + ".lang",
899
- expected: "(string | undefined)",
900
- value: input.lang
901
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
902
- path: _path + ".subtitle",
903
- expected: "(string | undefined)",
904
- value: input.subtitle
905
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
906
- path: _path + ".subtitleTracks",
907
- expected: "(__type.o2 | undefined)",
908
- value: input.subtitleTracks
909
- }, errorFactory)) && $ao4(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
910
- path: _path + ".subtitleTracks",
911
- expected: "(__type.o2 | undefined)",
912
- value: input.subtitleTracks
913
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
914
- path: _path + ".video",
915
- expected: "(__type.o5 | undefined)",
916
- value: input.video
917
- }, errorFactory)) && $ao8(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
918
- path: _path + ".video",
919
- expected: "(__type.o5 | undefined)",
920
- value: input.video
921
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
922
- path: _path + ".start",
923
- expected: "(number | undefined)",
924
- value: input.start
925
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
926
- path: _path + ".end",
927
- expected: "(number | undefined)",
928
- value: input.end
929
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
930
- path: _path + ".transcribe",
931
- expected: "(__type.o7 | undefined)",
932
- value: input.transcribe
933
- }, errorFactory)) && $ao10(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
934
- path: _path + ".transcribe",
935
- expected: "(__type.o7 | undefined)",
936
- value: input.transcribe
937
- }, errorFactory));
938
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
939
- path: _path + ".type",
940
- expected: "(string | undefined)",
941
- value: input.type
942
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
943
- path: _path + ".file",
944
- expected: "(null | string | undefined)",
945
- value: input.file
946
- }, errorFactory));
947
- const $ao4 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
948
- const value = input[key];
949
- if (undefined === value)
950
- return true;
951
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
952
- path: _path + $join(key),
953
- expected: "__type.o3",
954
- value: value
955
- }, errorFactory)) && $ao5(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
956
- path: _path + $join(key),
957
- expected: "__type.o3",
958
- value: value
959
- }, errorFactory);
960
- });
961
- const $ao5 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
962
- path: _path + ".style",
963
- expected: "(null | string | undefined)",
964
- value: input.style
965
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
966
- path: _path + ".styleOverrides",
967
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
968
- value: input.styleOverrides
969
- }, errorFactory)) && $ao6(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
970
- path: _path + ".styleOverrides",
971
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
972
- value: input.styleOverrides
973
- }, errorFactory));
974
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
975
- path: _path + ".name",
976
- expected: "(string | undefined)",
977
- value: input.name
978
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
979
- path: _path + ".fontname",
980
- expected: "(string | undefined)",
981
- value: input.fontname
982
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
983
- path: _path + ".fontsize",
984
- expected: "(string | undefined)",
985
- value: input.fontsize
986
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
987
- path: _path + ".primaryColour",
988
- expected: "(string | undefined)",
989
- value: input.primaryColour
990
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
991
- path: _path + ".secondaryColour",
992
- expected: "(string | undefined)",
993
- value: input.secondaryColour
994
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
995
- path: _path + ".outlineColour",
996
- expected: "(string | undefined)",
997
- value: input.outlineColour
998
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
999
- path: _path + ".backColour",
1000
- expected: "(string | undefined)",
1001
- value: input.backColour
1002
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
1003
- path: _path + ".bold",
1004
- expected: "(string | undefined)",
1005
- value: input.bold
1006
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
1007
- path: _path + ".italic",
1008
- expected: "(string | undefined)",
1009
- value: input.italic
1010
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
1011
- path: _path + ".underline",
1012
- expected: "(string | undefined)",
1013
- value: input.underline
1014
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
1015
- path: _path + ".strikeOut",
1016
- expected: "(string | undefined)",
1017
- value: input.strikeOut
1018
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
1019
- path: _path + ".scaleX",
1020
- expected: "(string | undefined)",
1021
- value: input.scaleX
1022
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
1023
- path: _path + ".scaleY",
1024
- expected: "(string | undefined)",
1025
- value: input.scaleY
1026
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
1027
- path: _path + ".spacing",
1028
- expected: "(string | undefined)",
1029
- value: input.spacing
1030
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
1031
- path: _path + ".angle",
1032
- expected: "(string | undefined)",
1033
- value: input.angle
1034
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
1035
- path: _path + ".borderStyle",
1036
- expected: "(string | undefined)",
1037
- value: input.borderStyle
1038
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
1039
- path: _path + ".outline",
1040
- expected: "(string | undefined)",
1041
- value: input.outline
1042
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
1043
- path: _path + ".shadow",
1044
- expected: "(string | undefined)",
1045
- value: input.shadow
1046
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
1047
- path: _path + ".alignment",
1048
- expected: "(string | undefined)",
1049
- value: input.alignment
1050
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
1051
- path: _path + ".marginL",
1052
- expected: "(string | undefined)",
1053
- value: input.marginL
1054
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
1055
- path: _path + ".marginR",
1056
- expected: "(string | undefined)",
1057
- value: input.marginR
1058
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
1059
- path: _path + ".marginV",
1060
- expected: "(string | undefined)",
1061
- value: input.marginV
1062
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
1063
- path: _path + ".encoding",
1064
- expected: "(string | undefined)",
1065
- value: input.encoding
1066
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
1067
- path: _path + ".previewSettings",
1068
- expected: "(__type.o4 | undefined)",
1069
- value: input.previewSettings
1070
- }, errorFactory)) && $ao7(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
1071
- path: _path + ".previewSettings",
1072
- expected: "(__type.o4 | undefined)",
1073
- value: input.previewSettings
1074
- }, errorFactory));
1075
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
1076
- path: _path + ".aspectRatio",
1077
- expected: "(string | undefined)",
1078
- value: input.aspectRatio
1079
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
1080
- path: _path + ".backgroundAssetId",
1081
- expected: "(string | undefined)",
1082
- value: input.backgroundAssetId
1083
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
1084
- path: _path + ".text",
1085
- expected: "(string | undefined)",
1086
- value: input.text
1087
- }, errorFactory));
1088
- const $ao8 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
1089
- path: _path + ".crop",
1090
- expected: "(__type.o6 | undefined)",
1091
- value: input.crop
1092
- }, errorFactory)) && $ao9(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1093
- path: _path + ".crop",
1094
- expected: "(__type.o6 | undefined)",
1095
- value: input.crop
1096
- }, errorFactory);
1097
- const $ao9 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x || $guard(_exceptionable, {
1098
- path: _path + ".x",
1099
- expected: "(number | undefined)",
1100
- value: input.x
1101
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y || $guard(_exceptionable, {
1102
- path: _path + ".y",
1103
- expected: "(number | undefined)",
1104
- value: input.y
1105
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width || $guard(_exceptionable, {
1106
- path: _path + ".width",
1107
- expected: "(number | undefined)",
1108
- value: input.width
1109
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height || $guard(_exceptionable, {
1110
- path: _path + ".height",
1111
- expected: "(number | undefined)",
1112
- value: input.height
1113
- }, errorFactory));
1114
- const $ao10 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1115
- path: _path + ".language",
1116
- expected: "(string | undefined)",
1117
- value: input.language
1118
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1119
- path: _path + ".pan",
1120
- expected: "(Array<number> | undefined)",
1121
- value: input.pan
1122
- }, errorFactory)) && input.pan.every((elem, _index3) => "number" === typeof elem || $guard(_exceptionable, {
1123
- path: _path + ".pan[" + _index3 + "]",
1124
- expected: "number",
1125
- value: elem
1126
- }, errorFactory)) || $guard(_exceptionable, {
1127
- path: _path + ".pan",
1128
- expected: "(Array<number> | undefined)",
1129
- value: input.pan
1130
- }, errorFactory));
1131
- const $ao11 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
1132
- path: _path + ".format",
1133
- expected: "string",
1134
- value: input.format
1135
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
1136
- path: _path + ".transcribe",
1137
- expected: "(__type.o8 | undefined)",
1138
- value: input.transcribe
1139
- }, errorFactory)) && $ao12(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1140
- path: _path + ".transcribe",
1141
- expected: "(__type.o8 | undefined)",
1142
- value: input.transcribe
1143
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
1144
- path: _path + ".translate",
1145
- expected: "(__type.o9 | undefined)",
1146
- value: input.translate
1147
- }, errorFactory)) && $ao13(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
1148
- path: _path + ".translate",
1149
- expected: "(__type.o9 | undefined)",
1150
- value: input.translate
1151
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
1152
- path: _path + ".audio",
1153
- expected: "(__type.o10 | undefined)",
1154
- value: input.audio
1155
- }, errorFactory)) && $ao14(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
1156
- path: _path + ".audio",
1157
- expected: "(__type.o10 | undefined)",
1158
- value: input.audio
1159
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
1160
- path: _path + ".pick",
1161
- expected: "(Array<string> | undefined)",
1162
- value: input.pick
1163
- }, errorFactory)) && input.pick.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
1164
- path: _path + ".pick[" + _index4 + "]",
1165
- expected: "string",
1166
- value: elem
1167
- }, errorFactory)) || $guard(_exceptionable, {
1168
- path: _path + ".pick",
1169
- expected: "(Array<string> | undefined)",
1170
- value: input.pick
1171
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
1172
- path: _path + ".subtitle",
1173
- expected: "(SubtitleProfile | string | undefined)",
1174
- value: input.subtitle
1175
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
1176
- path: _path + ".subtitle",
1177
- expected: "(SubtitleProfile | string | undefined)",
1178
- value: input.subtitle
1179
- }, errorFactory)) && $ao15(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
1180
- path: _path + ".subtitle",
1181
- expected: "(SubtitleProfile | string | undefined)",
1182
- value: input.subtitle
1183
- }, errorFactory)));
1184
- const $ao12 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
1185
- path: _path + ".engine",
1186
- expected: "string",
1187
- value: input.engine
1188
- }, errorFactory);
1189
- const $ao13 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
1190
- path: _path + ".language",
1191
- expected: "string",
1192
- value: input.language
1193
- }, errorFactory);
1194
- const $ao14 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
1195
- path: _path + ".pan",
1196
- expected: "(string | undefined)",
1197
- value: input.pan
1198
- }, errorFactory);
1199
- const $ao15 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1200
- path: _path + ".lang",
1201
- expected: "(string | undefined)",
1202
- value: input.lang
1203
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1204
- path: _path + ".style",
1205
- expected: "(string | undefined)",
1206
- value: input.style
1207
- }, errorFactory));
1208
- return ("object" === typeof input && null !== input || $guard(true, {
1209
- path: _path + "",
1210
- expected: "RenderQuery",
1211
- value: input
1212
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1213
- path: _path + "",
1214
- expected: "RenderQuery",
1215
- value: input
1216
- }, errorFactory);
1217
- })(input, "$input", true);
1218
- };
1219
- export const stringifyRenderQuery = input => {
1220
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io11(elem))) || "object" === typeof input.profile && null !== input.profile && $io11(input.profile))));
1221
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(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) && $io10(input.transcribe));
1222
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1223
- const $io4 = input => Object.keys(input).every(key => {
1224
- const value = input[key];
1225
- if (undefined === value)
1226
- return true;
1227
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
1228
- });
1229
- const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
1230
- const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
1231
- const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
1232
- const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
1233
- const $io9 = 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);
1234
- const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1235
- const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(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) && $io15(input.subtitle)));
1236
- const $io12 = input => "string" === typeof input.engine;
1237
- const $io13 = input => "string" === typeof input.language;
1238
- const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
1239
- const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
1240
- const $string = __typia.json.createStringify.string;
1241
- const $throws = __typia.json.createStringify.throws;
1242
- const $tail = __typia.json.createStringify.tail;
1243
- const $so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? $string(input.parent) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $so1(input.description) : undefined},`}"type":${$string(input.type)},"title":${$string(input.title)}}`;
1244
- const $so1 = input => `{${$tail(`${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? (() => {
1245
- if ("string" === typeof input.scene)
1246
- return $string(input.scene);
1247
- if (Array.isArray(input.scene))
1248
- return `[${input.scene.map(elem => (() => {
1249
- if ("string" === typeof elem)
1250
- return $string(elem);
1251
- if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
1252
- return $so2(elem);
1253
- $throws({
1254
- expected: "(RenderSceneObject | string)",
1255
- value: elem
1256
- });
1257
- })()).join(",")}]`;
1258
- if ("object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene))
1259
- return $so2(input.scene);
1260
- $throws({
1261
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1262
- value: input.scene
1263
- });
1264
- })() : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? (() => {
1265
- if ("string" === typeof input.profile)
1266
- return $string(input.profile);
1267
- if (Array.isArray(input.profile))
1268
- return `[${input.profile.map(elem => (() => {
1269
- if ("string" === typeof elem)
1270
- return $string(elem);
1271
- if ("object" === typeof elem && null !== elem)
1272
- return $so11(elem);
1273
- $throws({
1274
- expected: "(RenderProfileObject | string)",
1275
- value: elem
1276
- });
1277
- })()).join(",")}]`;
1278
- if ("object" === typeof input.profile && null !== input.profile)
1279
- return $so11(input.profile);
1280
- $throws({
1281
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1282
- value: input.profile
1283
- });
1284
- })() : undefined}`}`)}}`;
1285
- 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.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so4(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so8(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 ? $so10(input.transcribe) : undefined}`}`)}}`;
1286
- 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}`}`)}}`;
1287
- const $so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1288
- return ""; return `${JSON.stringify(key)}:${$so5(value)}`; }).filter(str => "" !== str).join(",")}}`;
1289
- const $so5 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so6(input.styleOverrides) : undefined}`}`)}}`;
1290
- const $so6 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? $so7(input.previewSettings) : undefined}`}`)}}`;
1291
- const $so7 = input => `{${$tail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? $string(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? $string(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined}`}`)}}`;
1292
- const $so8 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so9(input.crop) : undefined}`}`)}}`;
1293
- const $so9 = 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}`}`)}}`;
1294
- const $so10 = 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}`}`)}}`;
1295
- const $so11 = 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 ? $so14(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 ? (() => {
1296
- if ("string" === typeof input.subtitle)
1297
- return $string(input.subtitle);
1298
- if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
1299
- return $so15(input.subtitle);
1300
- $throws({
1301
- expected: "(SubtitleProfile | string | undefined)",
1302
- value: input.subtitle
1303
- });
1304
- })() : undefined},`}"format":${$string(input.format)}}`;
1305
- const $so14 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
1306
- const $so15 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
1307
- return $so0(input);
1308
- };
1309
- export const assertStringifyRenderQuery = (input, errorFactory) => { const assert = (input, errorFactory) => {
1310
- const __is = input => {
1311
- const $io0 = input => "string" === typeof input.type && "string" === typeof input.title && (undefined === input.parent || "string" === typeof input.parent) && (undefined === input.description || "object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) && $io1(input.description));
1312
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io11(elem))) || "object" === typeof input.profile && null !== input.profile && $io11(input.profile))));
1313
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(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) && $io10(input.transcribe));
1314
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1315
- const $io4 = input => Object.keys(input).every(key => {
1316
- const value = input[key];
1317
- if (undefined === value)
1318
- return true;
1319
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
1320
- });
1321
- const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
1322
- const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
1323
- const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
1324
- const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
1325
- const $io9 = 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));
1326
- const $io10 = 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)));
1327
- const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(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) && $io15(input.subtitle)));
1328
- const $io12 = input => "string" === typeof input.engine;
1329
- const $io13 = input => "string" === typeof input.language;
1330
- const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
1331
- const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
1332
- return "object" === typeof input && null !== input && $io0(input);
1333
- };
1334
- if (false === __is(input))
1335
- ((input, _path, _exceptionable = true) => {
1336
- const $guard = __typia.json.createAssertStringify.guard;
1337
- const $join = __typia.json.createAssertStringify.join;
1338
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || $guard(_exceptionable, {
1339
- path: _path + ".type",
1340
- expected: "string",
1341
- value: input.type
1342
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
1343
- path: _path + ".title",
1344
- expected: "string",
1345
- value: input.title
1346
- }, errorFactory)) && (undefined === input.parent || "string" === typeof input.parent || $guard(_exceptionable, {
1347
- path: _path + ".parent",
1348
- expected: "(string | undefined)",
1349
- value: input.parent
1350
- }, errorFactory)) && (undefined === input.description || ("object" === typeof input.description && null !== input.description && false === Array.isArray(input.description) || $guard(_exceptionable, {
1351
- path: _path + ".description",
1352
- expected: "(__type | undefined)",
1353
- value: input.description
1354
- }, errorFactory)) && $ao1(input.description, _path + ".description", true && _exceptionable) || $guard(_exceptionable, {
1355
- path: _path + ".description",
1356
- expected: "(__type | undefined)",
1357
- value: input.description
1358
- }, errorFactory));
1359
- const $ao1 = (input, _path, _exceptionable = true) => (null !== input.scene || $guard(_exceptionable, {
1360
- path: _path + ".scene",
1361
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1362
- value: input.scene
1363
- }, errorFactory)) && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
1364
- path: _path + ".scene[" + _index1 + "]",
1365
- expected: "(RenderSceneObject | string)",
1366
- value: elem
1367
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
1368
- path: _path + ".scene[" + _index1 + "]",
1369
- expected: "(RenderSceneObject | string)",
1370
- value: elem
1371
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || $guard(_exceptionable, {
1372
- path: _path + ".scene[" + _index1 + "]",
1373
- expected: "(RenderSceneObject | string)",
1374
- value: elem
1375
- }, errorFactory)) && $ao2(elem, _path + ".scene[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1376
- path: _path + ".scene[" + _index1 + "]",
1377
- expected: "(RenderSceneObject | string)",
1378
- value: elem
1379
- }, errorFactory))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $ao2(input.scene, _path + ".scene", true && _exceptionable) || $guard(_exceptionable, {
1380
- path: _path + ".scene",
1381
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1382
- value: input.scene
1383
- }, errorFactory)) || $guard(_exceptionable, {
1384
- path: _path + ".scene",
1385
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1386
- value: input.scene
1387
- }, errorFactory)) && ((null !== input.profile || $guard(_exceptionable, {
1388
- path: _path + ".profile",
1389
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1390
- value: input.profile
1391
- }, errorFactory)) && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
1392
- path: _path + ".profile[" + _index2 + "]",
1393
- expected: "(RenderProfileObject | string)",
1394
- value: elem
1395
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
1396
- path: _path + ".profile[" + _index2 + "]",
1397
- expected: "(RenderProfileObject | string)",
1398
- value: elem
1399
- }, errorFactory)) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
1400
- path: _path + ".profile[" + _index2 + "]",
1401
- expected: "(RenderProfileObject | string)",
1402
- value: elem
1403
- }, errorFactory)) && $ao11(elem, _path + ".profile[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
1404
- path: _path + ".profile[" + _index2 + "]",
1405
- expected: "(RenderProfileObject | string)",
1406
- value: elem
1407
- }, errorFactory))) || "object" === typeof input.profile && null !== input.profile && $ao11(input.profile, _path + ".profile", true && _exceptionable) || $guard(_exceptionable, {
1408
- path: _path + ".profile",
1409
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1410
- value: input.profile
1411
- }, errorFactory)) || $guard(_exceptionable, {
1412
- path: _path + ".profile",
1413
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1414
- value: input.profile
1415
- }, errorFactory)));
1416
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
1417
- path: _path + ".id",
1418
- expected: "(string | undefined)",
1419
- value: input.id
1420
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
1421
- path: _path + ".preset",
1422
- expected: "(string | undefined)",
1423
- value: input.preset
1424
- }, errorFactory)) && (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
1425
- path: _path + ".input",
1426
- expected: "(__type.o1 | undefined)",
1427
- value: input.input
1428
- }, errorFactory)) && $ao3(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
1429
- path: _path + ".input",
1430
- expected: "(__type.o1 | undefined)",
1431
- value: input.input
1432
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1433
- path: _path + ".lang",
1434
- expected: "(string | undefined)",
1435
- value: input.lang
1436
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || $guard(_exceptionable, {
1437
- path: _path + ".subtitle",
1438
- expected: "(string | undefined)",
1439
- value: input.subtitle
1440
- }, errorFactory)) && (undefined === input.subtitleTracks || ("object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) || $guard(_exceptionable, {
1441
- path: _path + ".subtitleTracks",
1442
- expected: "(__type.o2 | undefined)",
1443
- value: input.subtitleTracks
1444
- }, errorFactory)) && $ao4(input.subtitleTracks, _path + ".subtitleTracks", true && _exceptionable) || $guard(_exceptionable, {
1445
- path: _path + ".subtitleTracks",
1446
- expected: "(__type.o2 | undefined)",
1447
- value: input.subtitleTracks
1448
- }, errorFactory)) && (undefined === input.video || ("object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) || $guard(_exceptionable, {
1449
- path: _path + ".video",
1450
- expected: "(__type.o5 | undefined)",
1451
- value: input.video
1452
- }, errorFactory)) && $ao8(input.video, _path + ".video", true && _exceptionable) || $guard(_exceptionable, {
1453
- path: _path + ".video",
1454
- expected: "(__type.o5 | undefined)",
1455
- value: input.video
1456
- }, errorFactory)) && (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
1457
- path: _path + ".start",
1458
- expected: "(number | undefined)",
1459
- value: input.start
1460
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
1461
- path: _path + ".end",
1462
- expected: "(number | undefined)",
1463
- value: input.end
1464
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) || $guard(_exceptionable, {
1465
- path: _path + ".transcribe",
1466
- expected: "(__type.o7 | undefined)",
1467
- value: input.transcribe
1468
- }, errorFactory)) && $ao10(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1469
- path: _path + ".transcribe",
1470
- expected: "(__type.o7 | undefined)",
1471
- value: input.transcribe
1472
- }, errorFactory));
1473
- const $ao3 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
1474
- path: _path + ".type",
1475
- expected: "(string | undefined)",
1476
- value: input.type
1477
- }, errorFactory)) && (null === input.file || undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
1478
- path: _path + ".file",
1479
- expected: "(null | string | undefined)",
1480
- value: input.file
1481
- }, errorFactory));
1482
- const $ao4 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1483
- const value = input[key];
1484
- if (undefined === value)
1485
- return true;
1486
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
1487
- path: _path + $join(key),
1488
- expected: "__type.o3",
1489
- value: value
1490
- }, errorFactory)) && $ao5(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1491
- path: _path + $join(key),
1492
- expected: "__type.o3",
1493
- value: value
1494
- }, errorFactory);
1495
- });
1496
- const $ao5 = (input, _path, _exceptionable = true) => (null === input.style || undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1497
- path: _path + ".style",
1498
- expected: "(null | string | undefined)",
1499
- value: input.style
1500
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
1501
- path: _path + ".styleOverrides",
1502
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1503
- value: input.styleOverrides
1504
- }, errorFactory)) && $ao6(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
1505
- path: _path + ".styleOverrides",
1506
- expected: "(Omit<SubtitleStyleDomainRecord, \"scaledBorderAndShadow\" | \"futureWordWrapping\"> | undefined)",
1507
- value: input.styleOverrides
1508
- }, errorFactory));
1509
- const $ao6 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
1510
- path: _path + ".name",
1511
- expected: "(string | undefined)",
1512
- value: input.name
1513
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
1514
- path: _path + ".fontname",
1515
- expected: "(string | undefined)",
1516
- value: input.fontname
1517
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
1518
- path: _path + ".fontsize",
1519
- expected: "(string | undefined)",
1520
- value: input.fontsize
1521
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
1522
- path: _path + ".primaryColour",
1523
- expected: "(string | undefined)",
1524
- value: input.primaryColour
1525
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
1526
- path: _path + ".secondaryColour",
1527
- expected: "(string | undefined)",
1528
- value: input.secondaryColour
1529
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
1530
- path: _path + ".outlineColour",
1531
- expected: "(string | undefined)",
1532
- value: input.outlineColour
1533
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
1534
- path: _path + ".backColour",
1535
- expected: "(string | undefined)",
1536
- value: input.backColour
1537
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
1538
- path: _path + ".bold",
1539
- expected: "(string | undefined)",
1540
- value: input.bold
1541
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
1542
- path: _path + ".italic",
1543
- expected: "(string | undefined)",
1544
- value: input.italic
1545
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
1546
- path: _path + ".underline",
1547
- expected: "(string | undefined)",
1548
- value: input.underline
1549
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
1550
- path: _path + ".strikeOut",
1551
- expected: "(string | undefined)",
1552
- value: input.strikeOut
1553
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
1554
- path: _path + ".scaleX",
1555
- expected: "(string | undefined)",
1556
- value: input.scaleX
1557
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
1558
- path: _path + ".scaleY",
1559
- expected: "(string | undefined)",
1560
- value: input.scaleY
1561
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
1562
- path: _path + ".spacing",
1563
- expected: "(string | undefined)",
1564
- value: input.spacing
1565
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
1566
- path: _path + ".angle",
1567
- expected: "(string | undefined)",
1568
- value: input.angle
1569
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
1570
- path: _path + ".borderStyle",
1571
- expected: "(string | undefined)",
1572
- value: input.borderStyle
1573
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
1574
- path: _path + ".outline",
1575
- expected: "(string | undefined)",
1576
- value: input.outline
1577
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
1578
- path: _path + ".shadow",
1579
- expected: "(string | undefined)",
1580
- value: input.shadow
1581
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
1582
- path: _path + ".alignment",
1583
- expected: "(string | undefined)",
1584
- value: input.alignment
1585
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
1586
- path: _path + ".marginL",
1587
- expected: "(string | undefined)",
1588
- value: input.marginL
1589
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
1590
- path: _path + ".marginR",
1591
- expected: "(string | undefined)",
1592
- value: input.marginR
1593
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
1594
- path: _path + ".marginV",
1595
- expected: "(string | undefined)",
1596
- value: input.marginV
1597
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
1598
- path: _path + ".encoding",
1599
- expected: "(string | undefined)",
1600
- value: input.encoding
1601
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
1602
- path: _path + ".previewSettings",
1603
- expected: "(__type.o4 | undefined)",
1604
- value: input.previewSettings
1605
- }, errorFactory)) && $ao7(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
1606
- path: _path + ".previewSettings",
1607
- expected: "(__type.o4 | undefined)",
1608
- value: input.previewSettings
1609
- }, errorFactory));
1610
- const $ao7 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
1611
- path: _path + ".aspectRatio",
1612
- expected: "(string | undefined)",
1613
- value: input.aspectRatio
1614
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
1615
- path: _path + ".backgroundAssetId",
1616
- expected: "(string | undefined)",
1617
- value: input.backgroundAssetId
1618
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
1619
- path: _path + ".text",
1620
- expected: "(string | undefined)",
1621
- value: input.text
1622
- }, errorFactory));
1623
- const $ao8 = (input, _path, _exceptionable = true) => undefined === input.crop || ("object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) || $guard(_exceptionable, {
1624
- path: _path + ".crop",
1625
- expected: "(__type.o6 | undefined)",
1626
- value: input.crop
1627
- }, errorFactory)) && $ao9(input.crop, _path + ".crop", true && _exceptionable) || $guard(_exceptionable, {
1628
- path: _path + ".crop",
1629
- expected: "(__type.o6 | undefined)",
1630
- value: input.crop
1631
- }, errorFactory);
1632
- const $ao9 = (input, _path, _exceptionable = true) => (undefined === input.x || "number" === typeof input.x && !Number.isNaN(input.x) || $guard(_exceptionable, {
1633
- path: _path + ".x",
1634
- expected: "(number | undefined)",
1635
- value: input.x
1636
- }, errorFactory)) && (undefined === input.y || "number" === typeof input.y && !Number.isNaN(input.y) || $guard(_exceptionable, {
1637
- path: _path + ".y",
1638
- expected: "(number | undefined)",
1639
- value: input.y
1640
- }, errorFactory)) && (undefined === input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
1641
- path: _path + ".width",
1642
- expected: "(number | undefined)",
1643
- value: input.width
1644
- }, errorFactory)) && (undefined === input.height || "number" === typeof input.height && !Number.isNaN(input.height) || $guard(_exceptionable, {
1645
- path: _path + ".height",
1646
- expected: "(number | undefined)",
1647
- value: input.height
1648
- }, errorFactory));
1649
- const $ao10 = (input, _path, _exceptionable = true) => (undefined === input.language || "string" === typeof input.language || $guard(_exceptionable, {
1650
- path: _path + ".language",
1651
- expected: "(string | undefined)",
1652
- value: input.language
1653
- }, errorFactory)) && (undefined === input.pan || (Array.isArray(input.pan) || $guard(_exceptionable, {
1654
- path: _path + ".pan",
1655
- expected: "(Array<number> | undefined)",
1656
- value: input.pan
1657
- }, errorFactory)) && input.pan.every((elem, _index3) => "number" === typeof elem && !Number.isNaN(elem) || $guard(_exceptionable, {
1658
- path: _path + ".pan[" + _index3 + "]",
1659
- expected: "number",
1660
- value: elem
1661
- }, errorFactory)) || $guard(_exceptionable, {
1662
- path: _path + ".pan",
1663
- expected: "(Array<number> | undefined)",
1664
- value: input.pan
1665
- }, errorFactory));
1666
- const $ao11 = (input, _path, _exceptionable = true) => ("string" === typeof input.format || $guard(_exceptionable, {
1667
- path: _path + ".format",
1668
- expected: "string",
1669
- value: input.format
1670
- }, errorFactory)) && (undefined === input.transcribe || ("object" === typeof input.transcribe && null !== input.transcribe || $guard(_exceptionable, {
1671
- path: _path + ".transcribe",
1672
- expected: "(__type.o8 | undefined)",
1673
- value: input.transcribe
1674
- }, errorFactory)) && $ao12(input.transcribe, _path + ".transcribe", true && _exceptionable) || $guard(_exceptionable, {
1675
- path: _path + ".transcribe",
1676
- expected: "(__type.o8 | undefined)",
1677
- value: input.transcribe
1678
- }, errorFactory)) && (undefined === input.translate || ("object" === typeof input.translate && null !== input.translate || $guard(_exceptionable, {
1679
- path: _path + ".translate",
1680
- expected: "(__type.o9 | undefined)",
1681
- value: input.translate
1682
- }, errorFactory)) && $ao13(input.translate, _path + ".translate", true && _exceptionable) || $guard(_exceptionable, {
1683
- path: _path + ".translate",
1684
- expected: "(__type.o9 | undefined)",
1685
- value: input.translate
1686
- }, errorFactory)) && (undefined === input.audio || ("object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) || $guard(_exceptionable, {
1687
- path: _path + ".audio",
1688
- expected: "(__type.o10 | undefined)",
1689
- value: input.audio
1690
- }, errorFactory)) && $ao14(input.audio, _path + ".audio", true && _exceptionable) || $guard(_exceptionable, {
1691
- path: _path + ".audio",
1692
- expected: "(__type.o10 | undefined)",
1693
- value: input.audio
1694
- }, errorFactory)) && true && (undefined === input.pick || (Array.isArray(input.pick) || $guard(_exceptionable, {
1695
- path: _path + ".pick",
1696
- expected: "(Array<string> | undefined)",
1697
- value: input.pick
1698
- }, errorFactory)) && input.pick.every((elem, _index4) => "string" === typeof elem || $guard(_exceptionable, {
1699
- path: _path + ".pick[" + _index4 + "]",
1700
- expected: "string",
1701
- value: elem
1702
- }, errorFactory)) || $guard(_exceptionable, {
1703
- path: _path + ".pick",
1704
- expected: "(Array<string> | undefined)",
1705
- value: input.pick
1706
- }, errorFactory)) && ((null !== input.subtitle || $guard(_exceptionable, {
1707
- path: _path + ".subtitle",
1708
- expected: "(SubtitleProfile | string | undefined)",
1709
- value: input.subtitle
1710
- }, errorFactory)) && (undefined === input.subtitle || "string" === typeof input.subtitle || ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle) || $guard(_exceptionable, {
1711
- path: _path + ".subtitle",
1712
- expected: "(SubtitleProfile | string | undefined)",
1713
- value: input.subtitle
1714
- }, errorFactory)) && $ao15(input.subtitle, _path + ".subtitle", true && _exceptionable) || $guard(_exceptionable, {
1715
- path: _path + ".subtitle",
1716
- expected: "(SubtitleProfile | string | undefined)",
1717
- value: input.subtitle
1718
- }, errorFactory)));
1719
- const $ao12 = (input, _path, _exceptionable = true) => "string" === typeof input.engine || $guard(_exceptionable, {
1720
- path: _path + ".engine",
1721
- expected: "string",
1722
- value: input.engine
1723
- }, errorFactory);
1724
- const $ao13 = (input, _path, _exceptionable = true) => "string" === typeof input.language || $guard(_exceptionable, {
1725
- path: _path + ".language",
1726
- expected: "string",
1727
- value: input.language
1728
- }, errorFactory);
1729
- const $ao14 = (input, _path, _exceptionable = true) => undefined === input.pan || "string" === typeof input.pan || $guard(_exceptionable, {
1730
- path: _path + ".pan",
1731
- expected: "(string | undefined)",
1732
- value: input.pan
1733
- }, errorFactory);
1734
- const $ao15 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
1735
- path: _path + ".lang",
1736
- expected: "(string | undefined)",
1737
- value: input.lang
1738
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
1739
- path: _path + ".style",
1740
- expected: "(string | undefined)",
1741
- value: input.style
1742
- }, errorFactory));
1743
- return ("object" === typeof input && null !== input || $guard(true, {
1744
- path: _path + "",
1745
- expected: "RenderQuery",
1746
- value: input
1747
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1748
- path: _path + "",
1749
- expected: "RenderQuery",
1750
- value: input
1751
- }, errorFactory);
1752
- })(input, "$input", true);
1753
- return input;
1754
- }; const stringify = input => {
1755
- const $io1 = input => null !== input.scene && (undefined === input.scene || "string" === typeof input.scene || (Array.isArray(input.scene) && input.scene.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io2(elem))) || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && $io2(input.scene))) && (null !== input.profile && (undefined === input.profile || "string" === typeof input.profile || (Array.isArray(input.profile) && input.profile.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io11(elem))) || "object" === typeof input.profile && null !== input.profile && $io11(input.profile))));
1756
- 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.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && $io4(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && $io8(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) && $io10(input.transcribe));
1757
- const $io3 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file);
1758
- const $io4 = input => Object.keys(input).every(key => {
1759
- const value = input[key];
1760
- if (undefined === value)
1761
- return true;
1762
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io5(value);
1763
- });
1764
- const $io5 = input => (null === input.style || undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io6(input.styleOverrides));
1765
- const $io6 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io7(input.previewSettings));
1766
- const $io7 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
1767
- const $io8 = input => undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && $io9(input.crop);
1768
- const $io9 = 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);
1769
- const $io10 = input => (undefined === input.language || "string" === typeof input.language) && (undefined === input.pan || Array.isArray(input.pan) && input.pan.every(elem => "number" === typeof elem));
1770
- const $io11 = input => "string" === typeof input.format && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && $io12(input.transcribe)) && (undefined === input.translate || "object" === typeof input.translate && null !== input.translate && $io13(input.translate)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && $io14(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) && $io15(input.subtitle)));
1771
- const $io12 = input => "string" === typeof input.engine;
1772
- const $io13 = input => "string" === typeof input.language;
1773
- const $io14 = input => undefined === input.pan || "string" === typeof input.pan;
1774
- const $io15 = input => (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style);
1775
- const $string = __typia.json.createAssertStringify.string;
1776
- const $throws = __typia.json.createAssertStringify.throws;
1777
- const $tail = __typia.json.createAssertStringify.tail;
1778
- const $so0 = input => `{${undefined === input.parent ? "" : `"parent":${undefined !== input.parent ? $string(input.parent) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $so1(input.description) : undefined},`}"type":${$string(input.type)},"title":${$string(input.title)}}`;
1779
- const $so1 = input => `{${$tail(`${undefined === input.scene ? "" : `"scene":${undefined !== input.scene ? (() => {
1780
- if ("string" === typeof input.scene)
1781
- return $string(input.scene);
1782
- if (Array.isArray(input.scene))
1783
- return `[${input.scene.map(elem => (() => {
1784
- if ("string" === typeof elem)
1785
- return $string(elem);
1786
- if ("object" === typeof elem && null !== elem && false === Array.isArray(elem))
1787
- return $so2(elem);
1788
- $throws({
1789
- expected: "(RenderSceneObject | string)",
1790
- value: elem
1791
- });
1792
- })()).join(",")}]`;
1793
- if ("object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene))
1794
- return $so2(input.scene);
1795
- $throws({
1796
- expected: "(Array<string | RenderSceneObject> | RenderSceneObject | string | undefined)",
1797
- value: input.scene
1798
- });
1799
- })() : undefined},`}${undefined === input.profile ? "" : `"profile":${undefined !== input.profile ? (() => {
1800
- if ("string" === typeof input.profile)
1801
- return $string(input.profile);
1802
- if (Array.isArray(input.profile))
1803
- return `[${input.profile.map(elem => (() => {
1804
- if ("string" === typeof elem)
1805
- return $string(elem);
1806
- if ("object" === typeof elem && null !== elem)
1807
- return $so11(elem);
1808
- $throws({
1809
- expected: "(RenderProfileObject | string)",
1810
- value: elem
1811
- });
1812
- })()).join(",")}]`;
1813
- if ("object" === typeof input.profile && null !== input.profile)
1814
- return $so11(input.profile);
1815
- $throws({
1816
- expected: "(Array<string | RenderProfileObject> | RenderProfileObject | string | undefined)",
1817
- value: input.profile
1818
- });
1819
- })() : undefined}`}`)}}`;
1820
- 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.subtitleTracks ? "" : `"subtitleTracks":${undefined !== input.subtitleTracks ? $so4(input.subtitleTracks) : undefined},`}${undefined === input.video ? "" : `"video":${undefined !== input.video ? $so8(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 ? $so10(input.transcribe) : undefined}`}`)}}`;
1821
- 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}`}`)}}`;
1822
- const $so4 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1823
- return ""; return `${JSON.stringify(key)}:${$so5(value)}`; }).filter(str => "" !== str).join(",")}}`;
1824
- const $so5 = input => `{${$tail(`${undefined === input.style ? "" : `"style":${undefined !== input.style ? null !== input.style ? $string(input.style) : "null" : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so6(input.styleOverrides) : undefined}`}`)}}`;
1825
- const $so6 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? $so7(input.previewSettings) : undefined}`}`)}}`;
1826
- const $so7 = input => `{${$tail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? $string(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? $string(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined}`}`)}}`;
1827
- const $so8 = input => `{${$tail(`${undefined === input.crop ? "" : `"crop":${undefined !== input.crop ? $so9(input.crop) : undefined}`}`)}}`;
1828
- const $so9 = 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}`}`)}}`;
1829
- const $so10 = 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}`}`)}}`;
1830
- const $so11 = 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 ? $so14(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 ? (() => {
1831
- if ("string" === typeof input.subtitle)
1832
- return $string(input.subtitle);
1833
- if ("object" === typeof input.subtitle && null !== input.subtitle && false === Array.isArray(input.subtitle))
1834
- return $so15(input.subtitle);
1835
- $throws({
1836
- expected: "(SubtitleProfile | string | undefined)",
1837
- value: input.subtitle
1838
- });
1839
- })() : undefined},`}"format":${$string(input.format)}}`;
1840
- const $so14 = input => `{${$tail(`${undefined === input.pan ? "" : `"pan":${undefined !== input.pan ? $string(input.pan) : undefined}`}`)}}`;
1841
- const $so15 = input => `{${$tail(`${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined}`}`)}}`;
1842
- return $so0(input);
1843
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};