@nxtedition/types 23.0.1 → 23.0.3

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 (43) hide show
  1. package/dist/app.d.ts +1 -12
  2. package/dist/asset.d.ts +10 -0
  3. package/dist/asset.js +1 -0
  4. package/dist/common/block.d.ts +1 -1
  5. package/dist/common/clone.d.ts +32 -0
  6. package/dist/common/clone.js +602 -0
  7. package/dist/common/index.d.ts +3 -0
  8. package/dist/common/index.js +3 -0
  9. package/dist/common/nxtpression.d.ts +19 -0
  10. package/dist/common/nxtpression.js +240 -0
  11. package/dist/common/search.d.ts +69 -0
  12. package/dist/common/search.js +1591 -0
  13. package/dist/common/settings.d.ts +6 -5
  14. package/dist/common/settings.js +89 -36
  15. package/dist/domains/asset.d.ts +22 -0
  16. package/dist/domains/asset.js +232 -0
  17. package/dist/domains/clone.d.ts +14 -0
  18. package/dist/domains/clone.js +192 -0
  19. package/dist/domains/connection.d.ts +39 -15
  20. package/dist/domains/connection.js +621 -174
  21. package/dist/domains/design.d.ts +24 -0
  22. package/dist/domains/design.js +303 -0
  23. package/dist/domains/file.d.ts +17 -0
  24. package/dist/domains/file.js +233 -0
  25. package/dist/domains/index.d.ts +11 -1
  26. package/dist/domains/index.js +5 -0
  27. package/dist/domains/media.d.ts +28 -0
  28. package/dist/domains/media.js +346 -0
  29. package/dist/domains/published.d.ts +18 -0
  30. package/dist/domains/published.js +164 -0
  31. package/dist/domains/revs.d.ts +13 -0
  32. package/dist/domains/revs.js +125 -0
  33. package/dist/domains/search.d.ts +3 -0
  34. package/dist/domains/search.js +62 -13
  35. package/dist/domains/settings.js +70 -26
  36. package/dist/domains/user.d.ts +14 -0
  37. package/dist/domains/user.js +141 -0
  38. package/dist/index.d.ts +20 -6
  39. package/dist/index.js +135 -0
  40. package/dist/rpc.d.ts +48 -13
  41. package/dist/rpc.js +505 -1
  42. package/dist/schema.json +3014 -0
  43. package/package.json +7 -3
@@ -27,9 +27,9 @@ export const isSettingsRecord = input => {
27
27
  const $io17 = input => undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate;
28
28
  const $io18 = input => undefined === input.eventThumbnails || "boolean" === typeof input.eventThumbnails;
29
29
  const $io19 = input => undefined === input.dimOnBlur || "boolean" === typeof input.dimOnBlur;
30
- const $io20 = input => (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
30
+ const $io20 = input => (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
31
31
  const $io21 = input => undefined === input.mask || "boolean" === typeof input.mask;
32
- const $io22 = input => (undefined === input.preview || "string" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
32
+ const $io22 = input => (undefined === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "disabled" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
33
33
  const $io23 = input => (undefined === input.spacing || "number" === typeof input.spacing) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine);
34
34
  const $io24 = input => "string" === typeof input.label && "string" === typeof input.aspectRatio;
35
35
  const $io25 = input => undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && $io26(input.subtitleDisclaimer);
@@ -77,9 +77,9 @@ export const assertSettingsRecord = (input, errorFactory) => {
77
77
  const $io17 = input => undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate;
78
78
  const $io18 = input => undefined === input.eventThumbnails || "boolean" === typeof input.eventThumbnails;
79
79
  const $io19 = input => undefined === input.dimOnBlur || "boolean" === typeof input.dimOnBlur;
80
- const $io20 = input => (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
80
+ const $io20 = input => (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
81
81
  const $io21 = input => undefined === input.mask || "boolean" === typeof input.mask;
82
- const $io22 = input => (undefined === input.preview || "string" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
82
+ const $io22 = input => (undefined === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "disabled" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
83
83
  const $io23 = input => (undefined === input.spacing || "number" === typeof input.spacing) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine);
84
84
  const $io24 = input => "string" === typeof input.label && "string" === typeof input.aspectRatio;
85
85
  const $io25 = input => undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && $io26(input.subtitleDisclaimer);
@@ -493,7 +493,11 @@ export const assertSettingsRecord = (input, errorFactory) => {
493
493
  expected: "(boolean | undefined)",
494
494
  value: input.dimOnBlur
495
495
  }, errorFactory);
496
- const $ao20 = (input, _path, _exceptionable = true) => (undefined === input.guide || ("object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) || $guard(_exceptionable, {
496
+ const $ao20 = (input, _path, _exceptionable = true) => (undefined === input.placeholder || "string" === typeof input.placeholder || $guard(_exceptionable, {
497
+ path: _path + ".placeholder",
498
+ expected: "(string | undefined)",
499
+ value: input.placeholder
500
+ }, errorFactory)) && (undefined === input.guide || ("object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) || $guard(_exceptionable, {
497
501
  path: _path + ".guide",
498
502
  expected: "(PartialObjectDeep<__type, __type>.o16 | undefined)",
499
503
  value: input.guide
@@ -603,9 +607,9 @@ export const assertSettingsRecord = (input, errorFactory) => {
603
607
  expected: "(boolean | undefined)",
604
608
  value: input.mask
605
609
  }, errorFactory);
606
- const $ao22 = (input, _path, _exceptionable = true) => (undefined === input.preview || "string" === typeof input.preview || $guard(_exceptionable, {
610
+ const $ao22 = (input, _path, _exceptionable = true) => (undefined === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "disabled" === input.preview || "boolean" === typeof input.preview || $guard(_exceptionable, {
607
611
  path: _path + ".preview",
608
- expected: "(string | undefined)",
612
+ expected: "(\"disabled\" | \"play\" | \"seek\" | \"seekplay\" | boolean | undefined)",
609
613
  value: input.preview
610
614
  }, errorFactory)) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress || $guard(_exceptionable, {
611
615
  path: _path + ".showRenderProgress",
@@ -1119,6 +1123,10 @@ export const randomSettingsRecord = generator => {
1119
1123
  ])()
1120
1124
  });
1121
1125
  const $ro20 = (_recursive = false, _depth = 0) => ({
1126
+ placeholder: $pick([
1127
+ () => undefined,
1128
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1129
+ ])(),
1122
1130
  guide: $pick([
1123
1131
  () => undefined,
1124
1132
  () => $ro21(_recursive, _recursive ? 1 + _depth : _depth)
@@ -1197,7 +1205,11 @@ export const randomSettingsRecord = generator => {
1197
1205
  const $ro22 = (_recursive = false, _depth = 0) => ({
1198
1206
  preview: $pick([
1199
1207
  () => undefined,
1200
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1208
+ () => "play",
1209
+ () => "seek",
1210
+ () => "seekplay",
1211
+ () => "disabled",
1212
+ () => (generator?.boolean ?? $generator.boolean)()
1201
1213
  ])(),
1202
1214
  showRenderProgress: $pick([
1203
1215
  () => undefined,
@@ -1411,9 +1423,9 @@ export const assertGuardSettingsRecord = (input, errorFactory) => {
1411
1423
  const $io17 = input => undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate;
1412
1424
  const $io18 = input => undefined === input.eventThumbnails || "boolean" === typeof input.eventThumbnails;
1413
1425
  const $io19 = input => undefined === input.dimOnBlur || "boolean" === typeof input.dimOnBlur;
1414
- const $io20 = input => (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
1426
+ const $io20 = input => (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
1415
1427
  const $io21 = input => undefined === input.mask || "boolean" === typeof input.mask;
1416
- const $io22 = input => (undefined === input.preview || "string" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
1428
+ const $io22 = input => (undefined === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "disabled" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
1417
1429
  const $io23 = input => (undefined === input.spacing || "number" === typeof input.spacing) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine);
1418
1430
  const $io24 = input => "string" === typeof input.label && "string" === typeof input.aspectRatio;
1419
1431
  const $io25 = input => undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && $io26(input.subtitleDisclaimer);
@@ -1827,7 +1839,11 @@ export const assertGuardSettingsRecord = (input, errorFactory) => {
1827
1839
  expected: "(boolean | undefined)",
1828
1840
  value: input.dimOnBlur
1829
1841
  }, errorFactory);
1830
- const $ao20 = (input, _path, _exceptionable = true) => (undefined === input.guide || ("object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) || $guard(_exceptionable, {
1842
+ const $ao20 = (input, _path, _exceptionable = true) => (undefined === input.placeholder || "string" === typeof input.placeholder || $guard(_exceptionable, {
1843
+ path: _path + ".placeholder",
1844
+ expected: "(string | undefined)",
1845
+ value: input.placeholder
1846
+ }, errorFactory)) && (undefined === input.guide || ("object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) || $guard(_exceptionable, {
1831
1847
  path: _path + ".guide",
1832
1848
  expected: "(PartialObjectDeep<__type, __type>.o16 | undefined)",
1833
1849
  value: input.guide
@@ -1937,9 +1953,9 @@ export const assertGuardSettingsRecord = (input, errorFactory) => {
1937
1953
  expected: "(boolean | undefined)",
1938
1954
  value: input.mask
1939
1955
  }, errorFactory);
1940
- const $ao22 = (input, _path, _exceptionable = true) => (undefined === input.preview || "string" === typeof input.preview || $guard(_exceptionable, {
1956
+ const $ao22 = (input, _path, _exceptionable = true) => (undefined === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "disabled" === input.preview || "boolean" === typeof input.preview || $guard(_exceptionable, {
1941
1957
  path: _path + ".preview",
1942
- expected: "(string | undefined)",
1958
+ expected: "(\"disabled\" | \"play\" | \"seek\" | \"seekplay\" | boolean | undefined)",
1943
1959
  value: input.preview
1944
1960
  }, errorFactory)) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress || $guard(_exceptionable, {
1945
1961
  path: _path + ".showRenderProgress",
@@ -2204,9 +2220,9 @@ export const stringifySettingsRecord = input => {
2204
2220
  const $io17 = input => undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate;
2205
2221
  const $io18 = input => undefined === input.eventThumbnails || "boolean" === typeof input.eventThumbnails;
2206
2222
  const $io19 = input => undefined === input.dimOnBlur || "boolean" === typeof input.dimOnBlur;
2207
- const $io20 = input => (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
2223
+ const $io20 = input => (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
2208
2224
  const $io21 = input => undefined === input.mask || "boolean" === typeof input.mask;
2209
- const $io22 = input => (undefined === input.preview || "string" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
2225
+ const $io22 = input => (undefined === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "disabled" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
2210
2226
  const $io23 = input => (undefined === input.spacing || "number" === typeof input.spacing) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine);
2211
2227
  const $io24 = input => "string" === typeof input.label && "string" === typeof input.aspectRatio;
2212
2228
  const $io25 = input => undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && $io26(input.subtitleDisclaimer);
@@ -2225,6 +2241,7 @@ export const stringifySettingsRecord = input => {
2225
2241
  const $io38 = input => (undefined === input.utils || "boolean" === typeof input.utils) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.refs || "boolean" === typeof input.refs) && (undefined === input.access || "boolean" === typeof input.access) && (undefined === input.files || "boolean" === typeof input.files) && (undefined === input["export"] || "boolean" === typeof input["export"]) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.hlsjs || "boolean" === typeof input.hlsjs) && (undefined === input.resetRenders || "boolean" === typeof input.resetRenders) && (undefined === input.resetReplicas || "boolean" === typeof input.resetReplicas) && (undefined === input.assetStatus || "boolean" === typeof input.assetStatus) && (undefined === input.consolidateMedia || "boolean" === typeof input.consolidateMedia) && (undefined === input.hideInAssetMenu || "boolean" === typeof input.hideInAssetMenu) && (undefined === input.assetRoute || "boolean" === typeof input.assetRoute);
2226
2242
  const $string = __typia.json.createStringify.string;
2227
2243
  const $tail = __typia.json.createStringify.tail;
2244
+ const $throws = __typia.json.createStringify.throws;
2228
2245
  const $so0 = input => `{${$tail(`${undefined === input.autoLogoutTime ? "" : `"autoLogoutTime":${undefined !== input.autoLogoutTime ? input.autoLogoutTime : undefined},`}${undefined === input.permission ? "" : `"permission":${undefined !== input.permission ? $so1(input.permission) : undefined},`}${undefined === input.module ? "" : `"module":${undefined !== input.module ? $so2(input.module) : undefined},`}${undefined === input.browser ? "" : `"browser":${undefined !== input.browser ? $so6(input.browser) : undefined},`}${undefined === input.toolbarTags ? "" : `"toolbarTags":${undefined !== input.toolbarTags ? $so8(input.toolbarTags) : undefined},`}${undefined === input.deadlines ? "" : `"deadlines":${undefined !== input.deadlines ? $so9(input.deadlines) : undefined},`}${undefined === input.assignees ? "" : `"assignees":${undefined !== input.assignees ? $so10(input.assignees) : undefined},`}${undefined === input.clock ? "" : `"clock":${undefined !== input.clock ? $so11(input.clock) : undefined},`}${undefined === input.swarm ? "" : `"swarm":${undefined !== input.swarm ? $so12(input.swarm) : undefined},`}${undefined === input.dashboard ? "" : `"dashboard":${undefined !== input.dashboard ? $so13(input.dashboard) : undefined},`}${undefined === input.script ? "" : `"script":${undefined !== input.script ? $so14(input.script) : undefined},`}${undefined === input.events ? "" : `"events":${undefined !== input.events ? $so17(input.events) : undefined},`}${undefined === input.rundown ? "" : `"rundown":${undefined !== input.rundown ? $so18(input.rundown) : undefined},`}${undefined === input.gallery ? "" : `"gallery":${undefined !== input.gallery ? $so19(input.gallery) : undefined},`}${undefined === input.history ? "" : `"history":${undefined !== input.history ? input.history : undefined},`}${undefined === input.keymap || "function" === typeof input.keymap ? "" : `"keymap":${undefined !== input.keymap ? JSON.stringify(input.keymap) : undefined},`}${undefined === input.media ? "" : `"media":${undefined !== input.media ? $so20(input.media) : undefined},`}${undefined === input.predefinedTags ? "" : `"predefinedTags":${undefined !== input.predefinedTags ? `[${input.predefinedTags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.storyboard ? "" : `"storyboard":${undefined !== input.storyboard ? $so29(input.storyboard) : undefined},`}${undefined === input.plugins ? "" : `"plugins":${undefined !== input.plugins ? $so36(input.plugins) : undefined},`}${undefined === input.crashScreen ? "" : `"crashScreen":${undefined !== input.crashScreen ? input.crashScreen : undefined},`}${undefined === input.debug ? "" : `"debug":${undefined !== input.debug ? input.debug : undefined},`}${undefined === input.flags ? "" : `"flags":${undefined !== input.flags ? $so38(input.flags) : undefined}`}`)}}`;
2229
2246
  const $so1 = input => `{${$tail(`${undefined === input.overrideUserContact ? "" : `"overrideUserContact":${undefined !== input.overrideUserContact ? input.overrideUserContact : undefined},`}${undefined === input.overrideUserLogin ? "" : `"overrideUserLogin":${undefined !== input.overrideUserLogin ? input.overrideUserLogin : undefined}`}`)}}`;
2230
2247
  const $so2 = input => `{${$tail(`${undefined === input.tabs ? "" : `"tabs":${undefined !== input.tabs ? $so3(input.tabs) : undefined}`}`)}}`;
@@ -2247,9 +2264,20 @@ export const stringifySettingsRecord = input => {
2247
2264
  const $so17 = input => `{${$tail(`${undefined === input.graphicBaseTemplate ? "" : `"graphicBaseTemplate":${undefined !== input.graphicBaseTemplate ? $string(input.graphicBaseTemplate) : undefined}`}`)}}`;
2248
2265
  const $so18 = input => `{${$tail(`${undefined === input.eventThumbnails ? "" : `"eventThumbnails":${undefined !== input.eventThumbnails ? input.eventThumbnails : undefined}`}`)}}`;
2249
2266
  const $so19 = input => `{${$tail(`${undefined === input.dimOnBlur ? "" : `"dimOnBlur":${undefined !== input.dimOnBlur ? input.dimOnBlur : undefined}`}`)}}`;
2250
- const $so20 = input => `{${$tail(`${undefined === input.guide ? "" : `"guide":${undefined !== input.guide ? $so21(input.guide) : undefined},`}${undefined === input.stepManyFrames ? "" : `"stepManyFrames":${undefined !== input.stepManyFrames ? input.stepManyFrames : undefined},`}${undefined === input.liveZoomDuration ? "" : `"liveZoomDuration":${undefined !== input.liveZoomDuration ? input.liveZoomDuration : undefined},`}${undefined === input.importTitleTemplate ? "" : `"importTitleTemplate":${undefined !== input.importTitleTemplate ? $string(input.importTitleTemplate) : undefined},`}${undefined === input.tile ? "" : `"tile":${undefined !== input.tile ? $so22(input.tile) : undefined},`}${undefined === input.timecodeReference ? "" : `"timecodeReference":${undefined !== input.timecodeReference ? $string(input.timecodeReference) : undefined},`}${undefined === input.maxSubclipDuration ? "" : `"maxSubclipDuration":${undefined !== input.maxSubclipDuration ? input.maxSubclipDuration : undefined},`}${undefined === input.rewindStep ? "" : `"rewindStep":${undefined !== input.rewindStep ? input.rewindStep : undefined},`}${undefined === input.forwardStep ? "" : `"forwardStep":${undefined !== input.forwardStep ? input.forwardStep : undefined},`}${undefined === input.interlacedPlayback ? "" : `"interlacedPlayback":${undefined !== input.interlacedPlayback ? $string(input.interlacedPlayback) : undefined},`}${undefined === input.playbackRates ? "" : `"playbackRates":${undefined !== input.playbackRates ? `[${input.playbackRates.map(elem => elem).join(",")}]` : undefined},`}${undefined === input.subtitles ? "" : `"subtitles":${undefined !== input.subtitles ? $so23(input.subtitles) : undefined},`}${undefined === input.subtitleTemplateId ? "" : `"subtitleTemplateId":${undefined !== input.subtitleTemplateId ? $string(input.subtitleTemplateId) : undefined},`}${undefined === input.initialVolume ? "" : `"initialVolume":${undefined !== input.initialVolume ? $string(input.initialVolume) : undefined},`}${undefined === input.guides ? "" : `"guides":${undefined !== input.guides ? `[${input.guides.map(elem => `{"label":${$string(elem.label)},"aspectRatio":${$string(elem.aspectRatio)}}`).join(",")}]` : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? input.download : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so25(input.transcribe) : undefined}`}`)}}`;
2267
+ const $so20 = input => `{${$tail(`${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? $string(input.placeholder) : undefined},`}${undefined === input.guide ? "" : `"guide":${undefined !== input.guide ? $so21(input.guide) : undefined},`}${undefined === input.stepManyFrames ? "" : `"stepManyFrames":${undefined !== input.stepManyFrames ? input.stepManyFrames : undefined},`}${undefined === input.liveZoomDuration ? "" : `"liveZoomDuration":${undefined !== input.liveZoomDuration ? input.liveZoomDuration : undefined},`}${undefined === input.importTitleTemplate ? "" : `"importTitleTemplate":${undefined !== input.importTitleTemplate ? $string(input.importTitleTemplate) : undefined},`}${undefined === input.tile ? "" : `"tile":${undefined !== input.tile ? $so22(input.tile) : undefined},`}${undefined === input.timecodeReference ? "" : `"timecodeReference":${undefined !== input.timecodeReference ? $string(input.timecodeReference) : undefined},`}${undefined === input.maxSubclipDuration ? "" : `"maxSubclipDuration":${undefined !== input.maxSubclipDuration ? input.maxSubclipDuration : undefined},`}${undefined === input.rewindStep ? "" : `"rewindStep":${undefined !== input.rewindStep ? input.rewindStep : undefined},`}${undefined === input.forwardStep ? "" : `"forwardStep":${undefined !== input.forwardStep ? input.forwardStep : undefined},`}${undefined === input.interlacedPlayback ? "" : `"interlacedPlayback":${undefined !== input.interlacedPlayback ? $string(input.interlacedPlayback) : undefined},`}${undefined === input.playbackRates ? "" : `"playbackRates":${undefined !== input.playbackRates ? `[${input.playbackRates.map(elem => elem).join(",")}]` : undefined},`}${undefined === input.subtitles ? "" : `"subtitles":${undefined !== input.subtitles ? $so23(input.subtitles) : undefined},`}${undefined === input.subtitleTemplateId ? "" : `"subtitleTemplateId":${undefined !== input.subtitleTemplateId ? $string(input.subtitleTemplateId) : undefined},`}${undefined === input.initialVolume ? "" : `"initialVolume":${undefined !== input.initialVolume ? $string(input.initialVolume) : undefined},`}${undefined === input.guides ? "" : `"guides":${undefined !== input.guides ? `[${input.guides.map(elem => `{"label":${$string(elem.label)},"aspectRatio":${$string(elem.aspectRatio)}}`).join(",")}]` : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? input.download : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so25(input.transcribe) : undefined}`}`)}}`;
2251
2268
  const $so21 = input => `{${$tail(`${undefined === input.mask ? "" : `"mask":${undefined !== input.mask ? input.mask : undefined}`}`)}}`;
2252
- const $so22 = input => `{${$tail(`${undefined === input.preview ? "" : `"preview":${undefined !== input.preview ? $string(input.preview) : undefined},`}${undefined === input.showRenderProgress ? "" : `"showRenderProgress":${undefined !== input.showRenderProgress ? input.showRenderProgress : undefined}`}`)}}`;
2269
+ const $so22 = input => `{${$tail(`${undefined === input.preview ? "" : `"preview":${undefined !== input.preview ? (() => {
2270
+ if ("string" === typeof input.preview)
2271
+ return $string(input.preview);
2272
+ if ("string" === typeof input.preview)
2273
+ return "\"" + input.preview + "\"";
2274
+ if ("boolean" === typeof input.preview)
2275
+ return input.preview;
2276
+ $throws({
2277
+ expected: "(\"disabled\" | \"play\" | \"seek\" | \"seekplay\" | boolean | undefined)",
2278
+ value: input.preview
2279
+ });
2280
+ })() : undefined},`}${undefined === input.showRenderProgress ? "" : `"showRenderProgress":${undefined !== input.showRenderProgress ? input.showRenderProgress : undefined}`}`)}}`;
2253
2281
  const $so23 = input => `{${$tail(`${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? input.spacing : undefined},`}${undefined === input.maxCharactersPerLine ? "" : `"maxCharactersPerLine":${undefined !== input.maxCharactersPerLine ? input.maxCharactersPerLine : undefined}`}`)}}`;
2254
2282
  const $so25 = input => `{${$tail(`${undefined === input.subtitleDisclaimer ? "" : `"subtitleDisclaimer":${undefined !== input.subtitleDisclaimer ? $so26(input.subtitleDisclaimer) : undefined}`}`)}}`;
2255
2283
  const $so26 = input => `{${$tail(`${undefined === input.isUserConfigurable ? "" : `"isUserConfigurable":${undefined !== input.isUserConfigurable ? input.isUserConfigurable : undefined},`}${undefined === input.defaultValue ? "" : `"defaultValue":${undefined !== input.defaultValue ? $so27(input.defaultValue) : undefined}`}`)}}`;
@@ -2295,9 +2323,9 @@ export const assertStringifySettingsRecord = (input, errorFactory) => { const as
2295
2323
  const $io17 = input => undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate;
2296
2324
  const $io18 = input => undefined === input.eventThumbnails || "boolean" === typeof input.eventThumbnails;
2297
2325
  const $io19 = input => undefined === input.dimOnBlur || "boolean" === typeof input.dimOnBlur;
2298
- const $io20 = input => (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames && !Number.isNaN(input.stepManyFrames)) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration && !Number.isNaN(input.liveZoomDuration)) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration && !Number.isNaN(input.maxSubclipDuration)) && (undefined === input.rewindStep || "number" === typeof input.rewindStep && !Number.isNaN(input.rewindStep)) && (undefined === input.forwardStep || "number" === typeof input.forwardStep && !Number.isNaN(input.forwardStep)) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem && !Number.isNaN(elem))) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
2326
+ const $io20 = input => (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames && !Number.isNaN(input.stepManyFrames)) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration && !Number.isNaN(input.liveZoomDuration)) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration && !Number.isNaN(input.maxSubclipDuration)) && (undefined === input.rewindStep || "number" === typeof input.rewindStep && !Number.isNaN(input.rewindStep)) && (undefined === input.forwardStep || "number" === typeof input.forwardStep && !Number.isNaN(input.forwardStep)) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem && !Number.isNaN(elem))) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
2299
2327
  const $io21 = input => undefined === input.mask || "boolean" === typeof input.mask;
2300
- const $io22 = input => (undefined === input.preview || "string" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
2328
+ const $io22 = input => (undefined === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "disabled" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
2301
2329
  const $io23 = input => (undefined === input.spacing || "number" === typeof input.spacing && !Number.isNaN(input.spacing)) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine && !Number.isNaN(input.maxCharactersPerLine));
2302
2330
  const $io24 = input => "string" === typeof input.label && "string" === typeof input.aspectRatio;
2303
2331
  const $io25 = input => undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && $io26(input.subtitleDisclaimer);
@@ -2711,7 +2739,11 @@ export const assertStringifySettingsRecord = (input, errorFactory) => { const as
2711
2739
  expected: "(boolean | undefined)",
2712
2740
  value: input.dimOnBlur
2713
2741
  }, errorFactory);
2714
- const $ao20 = (input, _path, _exceptionable = true) => (undefined === input.guide || ("object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) || $guard(_exceptionable, {
2742
+ const $ao20 = (input, _path, _exceptionable = true) => (undefined === input.placeholder || "string" === typeof input.placeholder || $guard(_exceptionable, {
2743
+ path: _path + ".placeholder",
2744
+ expected: "(string | undefined)",
2745
+ value: input.placeholder
2746
+ }, errorFactory)) && (undefined === input.guide || ("object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) || $guard(_exceptionable, {
2715
2747
  path: _path + ".guide",
2716
2748
  expected: "(PartialObjectDeep<__type, __type>.o16 | undefined)",
2717
2749
  value: input.guide
@@ -2821,9 +2853,9 @@ export const assertStringifySettingsRecord = (input, errorFactory) => { const as
2821
2853
  expected: "(boolean | undefined)",
2822
2854
  value: input.mask
2823
2855
  }, errorFactory);
2824
- const $ao22 = (input, _path, _exceptionable = true) => (undefined === input.preview || "string" === typeof input.preview || $guard(_exceptionable, {
2856
+ const $ao22 = (input, _path, _exceptionable = true) => (undefined === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "disabled" === input.preview || "boolean" === typeof input.preview || $guard(_exceptionable, {
2825
2857
  path: _path + ".preview",
2826
- expected: "(string | undefined)",
2858
+ expected: "(\"disabled\" | \"play\" | \"seek\" | \"seekplay\" | boolean | undefined)",
2827
2859
  value: input.preview
2828
2860
  }, errorFactory)) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress || $guard(_exceptionable, {
2829
2861
  path: _path + ".showRenderProgress",
@@ -3088,9 +3120,9 @@ export const assertStringifySettingsRecord = (input, errorFactory) => { const as
3088
3120
  const $io17 = input => undefined === input.graphicBaseTemplate || "string" === typeof input.graphicBaseTemplate;
3089
3121
  const $io18 = input => undefined === input.eventThumbnails || "boolean" === typeof input.eventThumbnails;
3090
3122
  const $io19 = input => undefined === input.dimOnBlur || "boolean" === typeof input.dimOnBlur;
3091
- const $io20 = input => (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
3123
+ const $io20 = input => (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.guide || "object" === typeof input.guide && null !== input.guide && false === Array.isArray(input.guide) && $io21(input.guide)) && (undefined === input.stepManyFrames || "number" === typeof input.stepManyFrames) && (undefined === input.liveZoomDuration || "number" === typeof input.liveZoomDuration) && (undefined === input.importTitleTemplate || "string" === typeof input.importTitleTemplate) && (undefined === input.tile || "object" === typeof input.tile && null !== input.tile && false === Array.isArray(input.tile) && $io22(input.tile)) && (undefined === input.timecodeReference || "string" === typeof input.timecodeReference) && (undefined === input.maxSubclipDuration || "number" === typeof input.maxSubclipDuration) && (undefined === input.rewindStep || "number" === typeof input.rewindStep) && (undefined === input.forwardStep || "number" === typeof input.forwardStep) && (undefined === input.interlacedPlayback || "string" === typeof input.interlacedPlayback) && (undefined === input.playbackRates || Array.isArray(input.playbackRates) && input.playbackRates.every(elem => "number" === typeof elem)) && (undefined === input.subtitles || "object" === typeof input.subtitles && null !== input.subtitles && false === Array.isArray(input.subtitles) && $io23(input.subtitles)) && (undefined === input.subtitleTemplateId || "string" === typeof input.subtitleTemplateId) && (undefined === input.initialVolume || "string" === typeof input.initialVolume) && (undefined === input.guides || Array.isArray(input.guides) && input.guides.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (undefined === input.download || "boolean" === typeof input.download) && (undefined === input.transcribe || "object" === typeof input.transcribe && null !== input.transcribe && false === Array.isArray(input.transcribe) && $io25(input.transcribe));
3092
3124
  const $io21 = input => undefined === input.mask || "boolean" === typeof input.mask;
3093
- const $io22 = input => (undefined === input.preview || "string" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
3125
+ const $io22 = input => (undefined === input.preview || "play" === input.preview || "seek" === input.preview || "seekplay" === input.preview || "disabled" === input.preview || "boolean" === typeof input.preview) && (undefined === input.showRenderProgress || "boolean" === typeof input.showRenderProgress);
3094
3126
  const $io23 = input => (undefined === input.spacing || "number" === typeof input.spacing) && (undefined === input.maxCharactersPerLine || "number" === typeof input.maxCharactersPerLine);
3095
3127
  const $io24 = input => "string" === typeof input.label && "string" === typeof input.aspectRatio;
3096
3128
  const $io25 = input => undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && $io26(input.subtitleDisclaimer);
@@ -3109,6 +3141,7 @@ export const assertStringifySettingsRecord = (input, errorFactory) => { const as
3109
3141
  const $io38 = input => (undefined === input.utils || "boolean" === typeof input.utils) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.refs || "boolean" === typeof input.refs) && (undefined === input.access || "boolean" === typeof input.access) && (undefined === input.files || "boolean" === typeof input.files) && (undefined === input["export"] || "boolean" === typeof input["export"]) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.hlsjs || "boolean" === typeof input.hlsjs) && (undefined === input.resetRenders || "boolean" === typeof input.resetRenders) && (undefined === input.resetReplicas || "boolean" === typeof input.resetReplicas) && (undefined === input.assetStatus || "boolean" === typeof input.assetStatus) && (undefined === input.consolidateMedia || "boolean" === typeof input.consolidateMedia) && (undefined === input.hideInAssetMenu || "boolean" === typeof input.hideInAssetMenu) && (undefined === input.assetRoute || "boolean" === typeof input.assetRoute);
3110
3142
  const $string = __typia.json.createAssertStringify.string;
3111
3143
  const $tail = __typia.json.createAssertStringify.tail;
3144
+ const $throws = __typia.json.createAssertStringify.throws;
3112
3145
  const $so0 = input => `{${$tail(`${undefined === input.autoLogoutTime ? "" : `"autoLogoutTime":${undefined !== input.autoLogoutTime ? input.autoLogoutTime : undefined},`}${undefined === input.permission ? "" : `"permission":${undefined !== input.permission ? $so1(input.permission) : undefined},`}${undefined === input.module ? "" : `"module":${undefined !== input.module ? $so2(input.module) : undefined},`}${undefined === input.browser ? "" : `"browser":${undefined !== input.browser ? $so6(input.browser) : undefined},`}${undefined === input.toolbarTags ? "" : `"toolbarTags":${undefined !== input.toolbarTags ? $so8(input.toolbarTags) : undefined},`}${undefined === input.deadlines ? "" : `"deadlines":${undefined !== input.deadlines ? $so9(input.deadlines) : undefined},`}${undefined === input.assignees ? "" : `"assignees":${undefined !== input.assignees ? $so10(input.assignees) : undefined},`}${undefined === input.clock ? "" : `"clock":${undefined !== input.clock ? $so11(input.clock) : undefined},`}${undefined === input.swarm ? "" : `"swarm":${undefined !== input.swarm ? $so12(input.swarm) : undefined},`}${undefined === input.dashboard ? "" : `"dashboard":${undefined !== input.dashboard ? $so13(input.dashboard) : undefined},`}${undefined === input.script ? "" : `"script":${undefined !== input.script ? $so14(input.script) : undefined},`}${undefined === input.events ? "" : `"events":${undefined !== input.events ? $so17(input.events) : undefined},`}${undefined === input.rundown ? "" : `"rundown":${undefined !== input.rundown ? $so18(input.rundown) : undefined},`}${undefined === input.gallery ? "" : `"gallery":${undefined !== input.gallery ? $so19(input.gallery) : undefined},`}${undefined === input.history ? "" : `"history":${undefined !== input.history ? input.history : undefined},`}${undefined === input.keymap || "function" === typeof input.keymap ? "" : `"keymap":${undefined !== input.keymap ? JSON.stringify(input.keymap) : undefined},`}${undefined === input.media ? "" : `"media":${undefined !== input.media ? $so20(input.media) : undefined},`}${undefined === input.predefinedTags ? "" : `"predefinedTags":${undefined !== input.predefinedTags ? `[${input.predefinedTags.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.storyboard ? "" : `"storyboard":${undefined !== input.storyboard ? $so29(input.storyboard) : undefined},`}${undefined === input.plugins ? "" : `"plugins":${undefined !== input.plugins ? $so36(input.plugins) : undefined},`}${undefined === input.crashScreen ? "" : `"crashScreen":${undefined !== input.crashScreen ? input.crashScreen : undefined},`}${undefined === input.debug ? "" : `"debug":${undefined !== input.debug ? input.debug : undefined},`}${undefined === input.flags ? "" : `"flags":${undefined !== input.flags ? $so38(input.flags) : undefined}`}`)}}`;
3113
3146
  const $so1 = input => `{${$tail(`${undefined === input.overrideUserContact ? "" : `"overrideUserContact":${undefined !== input.overrideUserContact ? input.overrideUserContact : undefined},`}${undefined === input.overrideUserLogin ? "" : `"overrideUserLogin":${undefined !== input.overrideUserLogin ? input.overrideUserLogin : undefined}`}`)}}`;
3114
3147
  const $so2 = input => `{${$tail(`${undefined === input.tabs ? "" : `"tabs":${undefined !== input.tabs ? $so3(input.tabs) : undefined}`}`)}}`;
@@ -3131,9 +3164,20 @@ export const assertStringifySettingsRecord = (input, errorFactory) => { const as
3131
3164
  const $so17 = input => `{${$tail(`${undefined === input.graphicBaseTemplate ? "" : `"graphicBaseTemplate":${undefined !== input.graphicBaseTemplate ? $string(input.graphicBaseTemplate) : undefined}`}`)}}`;
3132
3165
  const $so18 = input => `{${$tail(`${undefined === input.eventThumbnails ? "" : `"eventThumbnails":${undefined !== input.eventThumbnails ? input.eventThumbnails : undefined}`}`)}}`;
3133
3166
  const $so19 = input => `{${$tail(`${undefined === input.dimOnBlur ? "" : `"dimOnBlur":${undefined !== input.dimOnBlur ? input.dimOnBlur : undefined}`}`)}}`;
3134
- const $so20 = input => `{${$tail(`${undefined === input.guide ? "" : `"guide":${undefined !== input.guide ? $so21(input.guide) : undefined},`}${undefined === input.stepManyFrames ? "" : `"stepManyFrames":${undefined !== input.stepManyFrames ? input.stepManyFrames : undefined},`}${undefined === input.liveZoomDuration ? "" : `"liveZoomDuration":${undefined !== input.liveZoomDuration ? input.liveZoomDuration : undefined},`}${undefined === input.importTitleTemplate ? "" : `"importTitleTemplate":${undefined !== input.importTitleTemplate ? $string(input.importTitleTemplate) : undefined},`}${undefined === input.tile ? "" : `"tile":${undefined !== input.tile ? $so22(input.tile) : undefined},`}${undefined === input.timecodeReference ? "" : `"timecodeReference":${undefined !== input.timecodeReference ? $string(input.timecodeReference) : undefined},`}${undefined === input.maxSubclipDuration ? "" : `"maxSubclipDuration":${undefined !== input.maxSubclipDuration ? input.maxSubclipDuration : undefined},`}${undefined === input.rewindStep ? "" : `"rewindStep":${undefined !== input.rewindStep ? input.rewindStep : undefined},`}${undefined === input.forwardStep ? "" : `"forwardStep":${undefined !== input.forwardStep ? input.forwardStep : undefined},`}${undefined === input.interlacedPlayback ? "" : `"interlacedPlayback":${undefined !== input.interlacedPlayback ? $string(input.interlacedPlayback) : undefined},`}${undefined === input.playbackRates ? "" : `"playbackRates":${undefined !== input.playbackRates ? `[${input.playbackRates.map(elem => elem).join(",")}]` : undefined},`}${undefined === input.subtitles ? "" : `"subtitles":${undefined !== input.subtitles ? $so23(input.subtitles) : undefined},`}${undefined === input.subtitleTemplateId ? "" : `"subtitleTemplateId":${undefined !== input.subtitleTemplateId ? $string(input.subtitleTemplateId) : undefined},`}${undefined === input.initialVolume ? "" : `"initialVolume":${undefined !== input.initialVolume ? $string(input.initialVolume) : undefined},`}${undefined === input.guides ? "" : `"guides":${undefined !== input.guides ? `[${input.guides.map(elem => `{"label":${$string(elem.label)},"aspectRatio":${$string(elem.aspectRatio)}}`).join(",")}]` : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? input.download : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so25(input.transcribe) : undefined}`}`)}}`;
3167
+ const $so20 = input => `{${$tail(`${undefined === input.placeholder ? "" : `"placeholder":${undefined !== input.placeholder ? $string(input.placeholder) : undefined},`}${undefined === input.guide ? "" : `"guide":${undefined !== input.guide ? $so21(input.guide) : undefined},`}${undefined === input.stepManyFrames ? "" : `"stepManyFrames":${undefined !== input.stepManyFrames ? input.stepManyFrames : undefined},`}${undefined === input.liveZoomDuration ? "" : `"liveZoomDuration":${undefined !== input.liveZoomDuration ? input.liveZoomDuration : undefined},`}${undefined === input.importTitleTemplate ? "" : `"importTitleTemplate":${undefined !== input.importTitleTemplate ? $string(input.importTitleTemplate) : undefined},`}${undefined === input.tile ? "" : `"tile":${undefined !== input.tile ? $so22(input.tile) : undefined},`}${undefined === input.timecodeReference ? "" : `"timecodeReference":${undefined !== input.timecodeReference ? $string(input.timecodeReference) : undefined},`}${undefined === input.maxSubclipDuration ? "" : `"maxSubclipDuration":${undefined !== input.maxSubclipDuration ? input.maxSubclipDuration : undefined},`}${undefined === input.rewindStep ? "" : `"rewindStep":${undefined !== input.rewindStep ? input.rewindStep : undefined},`}${undefined === input.forwardStep ? "" : `"forwardStep":${undefined !== input.forwardStep ? input.forwardStep : undefined},`}${undefined === input.interlacedPlayback ? "" : `"interlacedPlayback":${undefined !== input.interlacedPlayback ? $string(input.interlacedPlayback) : undefined},`}${undefined === input.playbackRates ? "" : `"playbackRates":${undefined !== input.playbackRates ? `[${input.playbackRates.map(elem => elem).join(",")}]` : undefined},`}${undefined === input.subtitles ? "" : `"subtitles":${undefined !== input.subtitles ? $so23(input.subtitles) : undefined},`}${undefined === input.subtitleTemplateId ? "" : `"subtitleTemplateId":${undefined !== input.subtitleTemplateId ? $string(input.subtitleTemplateId) : undefined},`}${undefined === input.initialVolume ? "" : `"initialVolume":${undefined !== input.initialVolume ? $string(input.initialVolume) : undefined},`}${undefined === input.guides ? "" : `"guides":${undefined !== input.guides ? `[${input.guides.map(elem => `{"label":${$string(elem.label)},"aspectRatio":${$string(elem.aspectRatio)}}`).join(",")}]` : undefined},`}${undefined === input.download ? "" : `"download":${undefined !== input.download ? input.download : undefined},`}${undefined === input.transcribe ? "" : `"transcribe":${undefined !== input.transcribe ? $so25(input.transcribe) : undefined}`}`)}}`;
3135
3168
  const $so21 = input => `{${$tail(`${undefined === input.mask ? "" : `"mask":${undefined !== input.mask ? input.mask : undefined}`}`)}}`;
3136
- const $so22 = input => `{${$tail(`${undefined === input.preview ? "" : `"preview":${undefined !== input.preview ? $string(input.preview) : undefined},`}${undefined === input.showRenderProgress ? "" : `"showRenderProgress":${undefined !== input.showRenderProgress ? input.showRenderProgress : undefined}`}`)}}`;
3169
+ const $so22 = input => `{${$tail(`${undefined === input.preview ? "" : `"preview":${undefined !== input.preview ? (() => {
3170
+ if ("string" === typeof input.preview)
3171
+ return $string(input.preview);
3172
+ if ("string" === typeof input.preview)
3173
+ return "\"" + input.preview + "\"";
3174
+ if ("boolean" === typeof input.preview)
3175
+ return input.preview;
3176
+ $throws({
3177
+ expected: "(\"disabled\" | \"play\" | \"seek\" | \"seekplay\" | boolean | undefined)",
3178
+ value: input.preview
3179
+ });
3180
+ })() : undefined},`}${undefined === input.showRenderProgress ? "" : `"showRenderProgress":${undefined !== input.showRenderProgress ? input.showRenderProgress : undefined}`}`)}}`;
3137
3181
  const $so23 = input => `{${$tail(`${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? input.spacing : undefined},`}${undefined === input.maxCharactersPerLine ? "" : `"maxCharactersPerLine":${undefined !== input.maxCharactersPerLine ? input.maxCharactersPerLine : undefined}`}`)}}`;
3138
3182
  const $so25 = input => `{${$tail(`${undefined === input.subtitleDisclaimer ? "" : `"subtitleDisclaimer":${undefined !== input.subtitleDisclaimer ? $so26(input.subtitleDisclaimer) : undefined}`}`)}}`;
3139
3183
  const $so26 = input => `{${$tail(`${undefined === input.isUserConfigurable ? "" : `"isUserConfigurable":${undefined !== input.isUserConfigurable ? input.isUserConfigurable : undefined},`}${undefined === input.defaultValue ? "" : `"defaultValue":${undefined !== input.defaultValue ? $so27(input.defaultValue) : undefined}`}`)}}`;
@@ -0,0 +1,14 @@
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ export interface UserDomainRecords {
3
+ ":user": UserRecord;
4
+ }
5
+ export interface UserRecord {
6
+ username?: string;
7
+ roles?: string[];
8
+ }
9
+ export declare const isUserRecord: (input: unknown) => input is UserRecord;
10
+ export declare const assertUserRecord: (input: unknown) => UserRecord;
11
+ export declare const randomUserRecord: () => UserRecord;
12
+ export declare const assertGuardUserRecord: __AssertionGuard<UserRecord>;
13
+ export declare const stringifyUserRecord: (input: UserRecord) => string;
14
+ export declare const assertStringifyUserRecord: (input: unknown) => string;
@@ -0,0 +1,141 @@
1
+ import __typia from "typia";
2
+ export const isUserRecord = input => {
3
+ const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
4
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
5
+ };
6
+ export const assertUserRecord = (input, errorFactory) => {
7
+ const __is = input => {
8
+ const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
9
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
10
+ };
11
+ if (false === __is(input))
12
+ ((input, _path, _exceptionable = true) => {
13
+ const $guard = __typia.createAssert.guard;
14
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
15
+ path: _path + ".username",
16
+ expected: "(string | undefined)",
17
+ value: input.username
18
+ }, errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || $guard(_exceptionable, {
19
+ path: _path + ".roles",
20
+ expected: "(Array<string> | undefined)",
21
+ value: input.roles
22
+ }, errorFactory)) && input.roles.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
23
+ path: _path + ".roles[" + _index1 + "]",
24
+ expected: "string",
25
+ value: elem
26
+ }, errorFactory)) || $guard(_exceptionable, {
27
+ path: _path + ".roles",
28
+ expected: "(Array<string> | undefined)",
29
+ value: input.roles
30
+ }, errorFactory));
31
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
32
+ path: _path + "",
33
+ expected: "UserRecord",
34
+ value: input
35
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
36
+ path: _path + "",
37
+ expected: "UserRecord",
38
+ value: input
39
+ }, errorFactory);
40
+ })(input, "$input", true);
41
+ return input;
42
+ };
43
+ export const randomUserRecord = generator => {
44
+ const $generator = __typia.createRandom.generator;
45
+ const $pick = __typia.createRandom.pick;
46
+ const $ro0 = (_recursive = false, _depth = 0) => ({
47
+ username: $pick([
48
+ () => undefined,
49
+ () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
50
+ ])(),
51
+ roles: $pick([
52
+ () => undefined,
53
+ () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
54
+ ])()
55
+ });
56
+ return $ro0();
57
+ };
58
+ export const assertGuardUserRecord = (input, errorFactory) => {
59
+ const __is = input => {
60
+ const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
61
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
62
+ };
63
+ if (false === __is(input))
64
+ ((input, _path, _exceptionable = true) => {
65
+ const $guard = __typia.createAssertGuard.guard;
66
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
67
+ path: _path + ".username",
68
+ expected: "(string | undefined)",
69
+ value: input.username
70
+ }, errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || $guard(_exceptionable, {
71
+ path: _path + ".roles",
72
+ expected: "(Array<string> | undefined)",
73
+ value: input.roles
74
+ }, errorFactory)) && input.roles.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
75
+ path: _path + ".roles[" + _index1 + "]",
76
+ expected: "string",
77
+ value: elem
78
+ }, errorFactory)) || $guard(_exceptionable, {
79
+ path: _path + ".roles",
80
+ expected: "(Array<string> | undefined)",
81
+ value: input.roles
82
+ }, errorFactory));
83
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
84
+ path: _path + "",
85
+ expected: "UserRecord",
86
+ value: input
87
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
88
+ path: _path + "",
89
+ expected: "UserRecord",
90
+ value: input
91
+ }, errorFactory);
92
+ })(input, "$input", true);
93
+ };
94
+ export const stringifyUserRecord = input => {
95
+ const $string = __typia.json.createStringify.string;
96
+ const $tail = __typia.json.createStringify.tail;
97
+ const $so0 = input => `{${$tail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? $string(input.username) : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
98
+ return $so0(input);
99
+ };
100
+ export const assertStringifyUserRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
101
+ const __is = input => {
102
+ const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
103
+ return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
104
+ };
105
+ if (false === __is(input))
106
+ ((input, _path, _exceptionable = true) => {
107
+ const $guard = __typia.json.createAssertStringify.guard;
108
+ const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
109
+ path: _path + ".username",
110
+ expected: "(string | undefined)",
111
+ value: input.username
112
+ }, errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || $guard(_exceptionable, {
113
+ path: _path + ".roles",
114
+ expected: "(Array<string> | undefined)",
115
+ value: input.roles
116
+ }, errorFactory)) && input.roles.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
117
+ path: _path + ".roles[" + _index1 + "]",
118
+ expected: "string",
119
+ value: elem
120
+ }, errorFactory)) || $guard(_exceptionable, {
121
+ path: _path + ".roles",
122
+ expected: "(Array<string> | undefined)",
123
+ value: input.roles
124
+ }, errorFactory));
125
+ return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
126
+ path: _path + "",
127
+ expected: "UserRecord",
128
+ value: input
129
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
130
+ path: _path + "",
131
+ expected: "UserRecord",
132
+ value: input
133
+ }, errorFactory);
134
+ })(input, "$input", true);
135
+ return input;
136
+ }; const stringify = input => {
137
+ const $string = __typia.json.createAssertStringify.string;
138
+ const $tail = __typia.json.createAssertStringify.tail;
139
+ const $so0 = input => `{${$tail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? $string(input.username) : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
140
+ return $so0(input);
141
+ }; return stringify(assert(input, errorFactory)); };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,24 @@
1
- import type { DomainRecords } from './domains/index.js';
1
+ import { type AssertionGuard as __AssertionGuard } from "typia";
2
+ import type { DomainRecords, DesignDomainRecords } from './domains/index.js';
2
3
  export * from './domains/index.js';
3
4
  export * from './common/index.js';
4
5
  export * from './app.js';
5
6
  export * from './rpc.js';
7
+ export * from './asset.js';
8
+ import { AssetRecords } from './asset.js';
9
+ export type Domains = Exclude<keyof DomainRecords, ":design">;
10
+ export declare const isDomains: (input: unknown) => input is Domains;
11
+ export declare const assertDomains: (input: unknown) => Domains;
12
+ export declare const randomDomains: () => Domains;
13
+ export declare const assertGuardDomains: __AssertionGuard<Domains>;
14
+ export declare const stringifyDomains: (input: Domains) => string;
15
+ export declare const assertStringifyDomains: (input: unknown) => string;
6
16
  export type Records = {
7
- [Property in keyof DomainRecords as `${string}${Property}`]: DomainRecords[Property];
17
+ [Property in Domains as `${string}${Property}`]: DomainRecords[Property];
18
+ } & {
19
+ ":permission": DomainRows;
20
+ } & {
21
+ [Property in keyof DesignDomainRecords as `${string}${Property}${string}`]: DesignDomainRecords[Property];
8
22
  } & {
9
23
  "media.subtitles?": {
10
24
  languages: Record<string, string>;
@@ -23,7 +37,7 @@ export type Records = {
23
37
  };
24
38
  pick: string[];
25
39
  };
26
- ":permission": {
27
- rows: string[];
28
- };
29
- };
40
+ } & AssetRecords;
41
+ interface DomainRows {
42
+ rows: string[];
43
+ }