@nxtedition/types 23.1.7 → 23.1.8
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.
- package/dist/common/render-scene.d.ts +2 -0
- package/dist/common/settings.d.ts +3 -1
- package/dist/nxtpression.d.ts +16 -1
- package/dist/records/domains/file.d.ts +7 -0
- package/dist/records/domains/publish/report.js +12 -2
- package/dist/records/domains/render.d.ts +3 -0
- package/dist/records/validate/assert-guard.js +118 -10
- package/dist/records/validate/assert.js +119 -10
- package/dist/records/validate/is.js +11 -8
- package/dist/records/validate/schemas.js +112 -1
- package/dist/records/validate/stringify.js +17 -14
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +174 -26
- package/dist/records/validate/validate.js +112 -10
- package/package.json +1 -1
|
@@ -137,6 +137,7 @@ export interface Settings {
|
|
|
137
137
|
volume?: number;
|
|
138
138
|
muted?: boolean;
|
|
139
139
|
graphics?: boolean;
|
|
140
|
+
subtitle?: string | null;
|
|
140
141
|
waveform?: boolean;
|
|
141
142
|
defaultFrameRate?: number;
|
|
142
143
|
dropFrame?: boolean;
|
|
@@ -158,7 +159,8 @@ export interface Settings {
|
|
|
158
159
|
preview?: boolean | "play" | "seek" | "seekplay" | "disabled";
|
|
159
160
|
showRenderProgress?: boolean;
|
|
160
161
|
};
|
|
161
|
-
|
|
162
|
+
showTimeCode?: boolean;
|
|
163
|
+
timecodeReference?: "subclip" | "default";
|
|
162
164
|
maxSubclipDuration?: number;
|
|
163
165
|
rewindStep?: number;
|
|
164
166
|
forwardStep?: number;
|
package/dist/nxtpression.d.ts
CHANGED
|
@@ -1033,10 +1033,18 @@ declare interface FileConnectionSmbRecord extends FileConnectionBase {
|
|
|
1033
1033
|
createFolders?: boolean;
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
|
+
declare interface FileDomainMethodsRecord {
|
|
1037
|
+
stop?: {
|
|
1038
|
+
rpcId: string;
|
|
1039
|
+
rpcData: unknown;
|
|
1040
|
+
};
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1036
1043
|
declare interface FileDomainRecords {
|
|
1037
1044
|
":file.replicate": FileReplicateRecord;
|
|
1038
1045
|
":file.restrictions": FileRestrictionsRecord;
|
|
1039
1046
|
":file.stats?": FileDomainStatsRecord;
|
|
1047
|
+
":file.methods?": FileDomainMethodsRecord;
|
|
1040
1048
|
}
|
|
1041
1049
|
|
|
1042
1050
|
declare type FileDomainStatsRecord = FileStats;
|
|
@@ -2829,6 +2837,8 @@ declare interface RenderDomainResultRecord {
|
|
|
2829
2837
|
start?: number | null;
|
|
2830
2838
|
end?: number | null;
|
|
2831
2839
|
}>;
|
|
2840
|
+
timecode?: number | null;
|
|
2841
|
+
live?: boolean | null;
|
|
2832
2842
|
result?: unknown;
|
|
2833
2843
|
error?: null | Record<string, unknown> | Array<Record<string, unknown>>;
|
|
2834
2844
|
extension?: string;
|
|
@@ -2944,6 +2954,7 @@ declare interface RenderDomainStatsRecord {
|
|
|
2944
2954
|
limits?: unknown;
|
|
2945
2955
|
taskset?: string;
|
|
2946
2956
|
end?: number | null;
|
|
2957
|
+
duration?: number | null;
|
|
2947
2958
|
}
|
|
2948
2959
|
|
|
2949
2960
|
declare type RenderPreset = RenderPresetObject | string;
|
|
@@ -3048,6 +3059,8 @@ declare interface RenderSceneObject {
|
|
|
3048
3059
|
proxyManifest?: string | null;
|
|
3049
3060
|
proxyFile?: string | null;
|
|
3050
3061
|
manifest?: string | null;
|
|
3062
|
+
timecode?: number;
|
|
3063
|
+
timezone?: string;
|
|
3051
3064
|
} | null;
|
|
3052
3065
|
lang?: string;
|
|
3053
3066
|
subtitle?: string;
|
|
@@ -3704,6 +3717,7 @@ declare interface Settings {
|
|
|
3704
3717
|
volume?: number;
|
|
3705
3718
|
muted?: boolean;
|
|
3706
3719
|
graphics?: boolean;
|
|
3720
|
+
subtitle?: string | null;
|
|
3707
3721
|
waveform?: boolean;
|
|
3708
3722
|
defaultFrameRate?: number;
|
|
3709
3723
|
dropFrame?: boolean;
|
|
@@ -3725,7 +3739,8 @@ declare interface Settings {
|
|
|
3725
3739
|
preview?: boolean | "play" | "seek" | "seekplay" | "disabled";
|
|
3726
3740
|
showRenderProgress?: boolean;
|
|
3727
3741
|
};
|
|
3728
|
-
|
|
3742
|
+
showTimeCode?: boolean;
|
|
3743
|
+
timecodeReference?: "subclip" | "default";
|
|
3729
3744
|
maxSubclipDuration?: number;
|
|
3730
3745
|
rewindStep?: number;
|
|
3731
3746
|
forwardStep?: number;
|
|
@@ -3,6 +3,7 @@ export interface FileDomainRecords {
|
|
|
3
3
|
":file.replicate": FileReplicateRecord;
|
|
4
4
|
":file.restrictions": FileRestrictionsRecord;
|
|
5
5
|
":file.stats?": FileDomainStatsRecord;
|
|
6
|
+
":file.methods?": FileDomainMethodsRecord;
|
|
6
7
|
}
|
|
7
8
|
export interface FileReplicateRecord {
|
|
8
9
|
replicas: string[];
|
|
@@ -24,3 +25,9 @@ export interface FileRestrictionsRecord {
|
|
|
24
25
|
};
|
|
25
26
|
}
|
|
26
27
|
export type FileDomainStatsRecord = FileStats;
|
|
28
|
+
export interface FileDomainMethodsRecord {
|
|
29
|
+
stop?: {
|
|
30
|
+
rpcId: string;
|
|
31
|
+
rpcData: unknown;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -25,7 +25,7 @@ export const isReportPublishRecord = (() => { const _io0 = input => (undefined =
|
|
|
25
25
|
if (undefined === value)
|
|
26
26
|
return true;
|
|
27
27
|
return true;
|
|
28
|
-
}); const _io13 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io14(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io29(input.profile)); const _io14 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io15(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io17(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io20(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io27(input.audio)) && (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) && _io28(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io25(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io21(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io15 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io16(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest); const _io16 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io17 = input => Object.keys(input).every(key => {
|
|
28
|
+
}); const _io13 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io14(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io29(input.profile)); const _io14 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io15(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io17(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io20(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io27(input.audio)) && (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) && _io28(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io25(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io21(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io15 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io16(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest) && (undefined === input.timecode || "number" === typeof input.timecode) && (undefined === input.timezone || "string" === typeof input.timezone); const _io16 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io17 = input => Object.keys(input).every(key => {
|
|
29
29
|
const value = input[key];
|
|
30
30
|
if (undefined === value)
|
|
31
31
|
return true;
|
|
@@ -63,7 +63,7 @@ export const assertReportPublishRecord = (() => { const _io0 = input => (undefin
|
|
|
63
63
|
if (undefined === value)
|
|
64
64
|
return true;
|
|
65
65
|
return true;
|
|
66
|
-
}); const _io13 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io14(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io29(input.profile)); const _io14 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io15(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io17(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io20(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io27(input.audio)) && (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) && _io28(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io25(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io21(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io15 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io16(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest); const _io16 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io17 = input => Object.keys(input).every(key => {
|
|
66
|
+
}); const _io13 = input => (undefined === input.preset || "string" === typeof input.preset) && "string" === typeof input.type && (undefined === input.scene || "object" === typeof input.scene && null !== input.scene && false === Array.isArray(input.scene) && _io14(input.scene)) && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && _io29(input.profile)); const _io14 = input => (undefined === input.id || "string" === typeof input.id) && (undefined === input.preset || "string" === typeof input.preset) && (null === input.input || undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && _io15(input.input)) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.subtitle || "string" === typeof input.subtitle) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.subtitleTracks || "object" === typeof input.subtitleTracks && null !== input.subtitleTracks && false === Array.isArray(input.subtitleTracks) && _io17(input.subtitleTracks)) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io20(input.video)) && (undefined === input.audio || "object" === typeof input.audio && null !== input.audio && false === Array.isArray(input.audio) && _io27(input.audio)) && (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) && _io28(input.transcribe)) && (undefined === input.crop || "object" === typeof input.crop && null !== input.crop && false === Array.isArray(input.crop) && _io25(input.crop)) && (undefined === input.filters || "object" === typeof input.filters && null !== input.filters && false === Array.isArray(input.filters) && _io21(input.filters)) && (undefined === input.orientation || "number" === typeof input.orientation) && (undefined === input.rotate || "number" === typeof input.rotate) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced) && (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha); const _io15 = input => (undefined === input.type || "string" === typeof input.type) && (null === input.file || undefined === input.file || "string" === typeof input.file) && (undefined === input.video || "object" === typeof input.video && null !== input.video && false === Array.isArray(input.video) && _io16(input.video)) && (null === input.proxy || undefined === input.proxy || "string" === typeof input.proxy) && (null === input.proxyManifest || undefined === input.proxyManifest || "string" === typeof input.proxyManifest) && (null === input.proxyFile || undefined === input.proxyFile || "string" === typeof input.proxyFile) && (null === input.manifest || undefined === input.manifest || "string" === typeof input.manifest) && (undefined === input.timecode || "number" === typeof input.timecode) && (undefined === input.timezone || "string" === typeof input.timezone); const _io16 = input => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha) && (null === input.interlaced || undefined === input.interlaced || false === input.interlaced || "tff" === input.interlaced || "bff" === input.interlaced); const _io17 = input => Object.keys(input).every(key => {
|
|
67
67
|
const value = input[key];
|
|
68
68
|
if (undefined === value)
|
|
69
69
|
return true;
|
|
@@ -705,6 +705,16 @@ export const assertReportPublishRecord = (() => { const _io0 = input => (undefin
|
|
|
705
705
|
path: _path + ".manifest",
|
|
706
706
|
expected: "(null | string | undefined)",
|
|
707
707
|
value: input.manifest
|
|
708
|
+
}, _errorFactory)) && (undefined === input.timecode || "number" === typeof input.timecode || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
709
|
+
method: "typia.createAssert",
|
|
710
|
+
path: _path + ".timecode",
|
|
711
|
+
expected: "(number | undefined)",
|
|
712
|
+
value: input.timecode
|
|
713
|
+
}, _errorFactory)) && (undefined === input.timezone || "string" === typeof input.timezone || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
714
|
+
method: "typia.createAssert",
|
|
715
|
+
path: _path + ".timezone",
|
|
716
|
+
expected: "(string | undefined)",
|
|
717
|
+
value: input.timezone
|
|
708
718
|
}, _errorFactory)); const _ao16 = (input, _path, _exceptionable = true) => (null === input.alpha || undefined === input.alpha || "straight" === input.alpha || "boolean" === typeof input.alpha || __typia_transform__assertGuard._assertGuard(_exceptionable, {
|
|
709
719
|
method: "typia.createAssert",
|
|
710
720
|
path: _path + ".alpha",
|
|
@@ -69,6 +69,7 @@ export interface RenderDomainStatsRecord {
|
|
|
69
69
|
limits?: unknown;
|
|
70
70
|
taskset?: string;
|
|
71
71
|
end?: number | null;
|
|
72
|
+
duration?: number | null;
|
|
72
73
|
}
|
|
73
74
|
export interface RenderDomainGpuStats {
|
|
74
75
|
[key: string]: unknown;
|
|
@@ -115,6 +116,8 @@ export interface RenderDomainResultRecord {
|
|
|
115
116
|
start?: number | null;
|
|
116
117
|
end?: number | null;
|
|
117
118
|
}>;
|
|
119
|
+
timecode?: number | null;
|
|
120
|
+
live?: boolean | null;
|
|
118
121
|
result?: unknown;
|
|
119
122
|
error?: null | Record<string, unknown> | Array<Record<string, unknown>>;
|
|
120
123
|
extension?: string;
|