@imferno/node 3.0.2-beta.b86ffac → 3.0.2-beta.bf185b8
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/README.md +34 -3
- package/codes.d.ts +266 -28
- package/codes.js +266 -28
- package/index.d.ts +72 -7
- package/index.mjs +4 -0
- package/package.json +7 -7
- package/types.d.ts +222 -38
package/types.d.ts
CHANGED
|
@@ -6,6 +6,18 @@
|
|
|
6
6
|
* ship their own copy: the WASM build serialises some CPL fields in camelCase.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
export type RuleValidationReason =
|
|
10
|
+
| {
|
|
11
|
+
kind: "unknown_source";
|
|
12
|
+
variant: string;
|
|
13
|
+
}
|
|
14
|
+
| {
|
|
15
|
+
kind: "matches_nothing";
|
|
16
|
+
}
|
|
17
|
+
| {
|
|
18
|
+
hint: string;
|
|
19
|
+
kind: "unsupported_pattern";
|
|
20
|
+
};
|
|
9
21
|
/**
|
|
10
22
|
* A SMPTE IMF UUID, serialised as a bare UUID string (e.g. "0eb3d1b9-b77b-4d3f-bbe5-7c69b15dca85")
|
|
11
23
|
*/
|
|
@@ -52,10 +64,19 @@ export type Spec =
|
|
|
52
64
|
| "ST429-9"
|
|
53
65
|
| "ST2067-2"
|
|
54
66
|
| "ST2067-3"
|
|
67
|
+
| "ST2067-5"
|
|
55
68
|
| "ST2067-9"
|
|
69
|
+
| "ST2067-20"
|
|
56
70
|
| "ST2067-21"
|
|
71
|
+
| "ST2067-50"
|
|
57
72
|
| "ST2067-201"
|
|
58
73
|
| "ST2067-202"
|
|
74
|
+
| "ST2067-203"
|
|
75
|
+
| "ST2067-204"
|
|
76
|
+
| "ST2067-100"
|
|
77
|
+
| "ST2067-101"
|
|
78
|
+
| "ST2067-102"
|
|
79
|
+
| "ST2067-103"
|
|
59
80
|
| "XSD"
|
|
60
81
|
| "IMFERNO";
|
|
61
82
|
/**
|
|
@@ -102,6 +123,7 @@ export type ColorPrimaries =
|
|
|
102
123
|
| "Bt2020"
|
|
103
124
|
| "DciP3"
|
|
104
125
|
| "P3D65"
|
|
126
|
+
| "Aces"
|
|
105
127
|
| {
|
|
106
128
|
Unknown: string;
|
|
107
129
|
};
|
|
@@ -119,12 +141,14 @@ export type VideoCodec =
|
|
|
119
141
|
| "Jpeg2000Imf8k"
|
|
120
142
|
| "Jpeg2000Broadcast"
|
|
121
143
|
| "Jpeg2000Ht"
|
|
144
|
+
| "Jpeg2000HtNode"
|
|
122
145
|
| "Vc5"
|
|
123
146
|
| "Mpeg2"
|
|
124
147
|
| "H264"
|
|
125
148
|
| "H265"
|
|
126
149
|
| "ProRes"
|
|
127
150
|
| "Av1"
|
|
151
|
+
| "Aces"
|
|
128
152
|
| {
|
|
129
153
|
Unknown: string;
|
|
130
154
|
};
|
|
@@ -205,18 +229,6 @@ export type MimeType =
|
|
|
205
229
|
* Mirrors ESLint's `"off"` / `"warn"` / `"error"` vocabulary, extended with the two IMF severity levels.
|
|
206
230
|
*/
|
|
207
231
|
export type RuleSeverity = "off" | "info" | "warn" | "error" | "critical";
|
|
208
|
-
export type RuleValidationReason =
|
|
209
|
-
| {
|
|
210
|
-
kind: "unknown_source";
|
|
211
|
-
variant: string;
|
|
212
|
-
}
|
|
213
|
-
| {
|
|
214
|
-
kind: "matches_nothing";
|
|
215
|
-
}
|
|
216
|
-
| {
|
|
217
|
-
hint: string;
|
|
218
|
-
kind: "unsupported_pattern";
|
|
219
|
-
};
|
|
220
232
|
|
|
221
233
|
/**
|
|
222
234
|
* @deprecated
|
|
@@ -227,6 +239,10 @@ export type RuleValidationReason =
|
|
|
227
239
|
export interface ImfReport {
|
|
228
240
|
cpls: CplReport[];
|
|
229
241
|
package: PackageSummary;
|
|
242
|
+
/**
|
|
243
|
+
* Keys of the `rules` option that select no rule (typos, unknown editions); they were ignored. Absent when every key matched.
|
|
244
|
+
*/
|
|
245
|
+
ruleWarnings?: RuleValidationWarning[];
|
|
230
246
|
validation: ValidationReport;
|
|
231
247
|
}
|
|
232
248
|
export interface CplReport {
|
|
@@ -317,6 +333,18 @@ export interface UnreferencedAsset {
|
|
|
317
333
|
id: string;
|
|
318
334
|
path: string;
|
|
319
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* A diagnostic about a `RulesConfig` key that the engine couldn't match.
|
|
338
|
+
*
|
|
339
|
+
* Produced by `RulesConfig::validate`. Operators can use these at config-load time to catch typos before any validation work runs.
|
|
340
|
+
*/
|
|
341
|
+
export interface RuleValidationWarning {
|
|
342
|
+
/**
|
|
343
|
+
* The configured key that triggered the warning.
|
|
344
|
+
*/
|
|
345
|
+
key: string;
|
|
346
|
+
reason: RuleValidationReason;
|
|
347
|
+
}
|
|
320
348
|
/**
|
|
321
349
|
* Comprehensive validation report
|
|
322
350
|
*/
|
|
@@ -337,6 +365,10 @@ export interface ValidationReport {
|
|
|
337
365
|
* Whether the package is compliant with base SMPTE standards
|
|
338
366
|
*/
|
|
339
367
|
is_compliant: boolean;
|
|
368
|
+
/**
|
|
369
|
+
* Whether everything in the package was validated. False when a finding says part of it was not (e.g. `IMFERNO:Cpl/ExtensionSequenceNotValidated` for S-ADM audio): then `is_compliant` only covers what was checked. A rule override that switches such a finding `off` moves it to `suppressed` but keeps this false.
|
|
370
|
+
*/
|
|
371
|
+
is_fully_validated: boolean;
|
|
340
372
|
/**
|
|
341
373
|
* Whether the package is playable despite issues
|
|
342
374
|
*/
|
|
@@ -373,7 +405,7 @@ export interface ValidationIssue {
|
|
|
373
405
|
*/
|
|
374
406
|
clause: string;
|
|
375
407
|
/**
|
|
376
|
-
* Display code: `SPEC:EDITION:CLAUSE/Name`, with the edition actually applied (e.g. `ST2067-3:2016:7.2
|
|
408
|
+
* Display code: `SPEC:EDITION:CLAUSE/Name`, with the edition actually applied (e.g. `ST2067-3:2016:7.2/SegmentDuration`).
|
|
377
409
|
*/
|
|
378
410
|
code: string;
|
|
379
411
|
/**
|
|
@@ -382,13 +414,17 @@ export interface ValidationIssue {
|
|
|
382
414
|
context: {
|
|
383
415
|
[k: string]: string | undefined;
|
|
384
416
|
};
|
|
417
|
+
/**
|
|
418
|
+
* Technical detail behind the message: the values, identifiers, URIs, file paths and clause text a person needs to locate or verify the finding. Shown after the message and the suggestion.
|
|
419
|
+
*/
|
|
420
|
+
detail?: string | null;
|
|
385
421
|
/**
|
|
386
422
|
* Edition of the spec that was applied (`"2016"`; empty for single-edition pseudo-specs).
|
|
387
423
|
*/
|
|
388
424
|
edition: string;
|
|
389
425
|
location: Location;
|
|
390
426
|
/**
|
|
391
|
-
*
|
|
427
|
+
* What is wrong, in one short plain sentence for a person to read.
|
|
392
428
|
*/
|
|
393
429
|
message: string;
|
|
394
430
|
/**
|
|
@@ -400,7 +436,7 @@ export interface ValidationIssue {
|
|
|
400
436
|
spec: Spec;
|
|
401
437
|
strength: Strength;
|
|
402
438
|
/**
|
|
403
|
-
*
|
|
439
|
+
* What to do about it.
|
|
404
440
|
*/
|
|
405
441
|
suggestion?: string | null;
|
|
406
442
|
}
|
|
@@ -538,10 +574,21 @@ export interface ChunkList {
|
|
|
538
574
|
* A single file path entry in a ChunkList.
|
|
539
575
|
*/
|
|
540
576
|
export interface Chunk {
|
|
577
|
+
/**
|
|
578
|
+
* `<Length>` in bytes, when present.
|
|
579
|
+
*/
|
|
580
|
+
length?: number | null;
|
|
581
|
+
/**
|
|
582
|
+
* `<Offset>` in bytes, when present.
|
|
583
|
+
*/
|
|
584
|
+
offset?: number | null;
|
|
541
585
|
/**
|
|
542
586
|
* File path relative to the IMP root directory.
|
|
543
587
|
*/
|
|
544
588
|
path: string;
|
|
589
|
+
/**
|
|
590
|
+
* `<VolumeIndex>`; 1 when absent.
|
|
591
|
+
*/
|
|
545
592
|
volumeIndex: number;
|
|
546
593
|
}
|
|
547
594
|
/**
|
|
@@ -637,6 +684,10 @@ export interface CDCIDescriptor {
|
|
|
637
684
|
*/
|
|
638
685
|
ColorSiting?: number | null;
|
|
639
686
|
ComponentDepth?: number | null;
|
|
687
|
+
/**
|
|
688
|
+
* File Descriptor: Essence Container label
|
|
689
|
+
*/
|
|
690
|
+
ContainerFormat?: string | null;
|
|
640
691
|
/**
|
|
641
692
|
* Generic Picture Essence Descriptor: DisplayF2Offset
|
|
642
693
|
*/
|
|
@@ -717,6 +768,14 @@ export interface CDCIDescriptor {
|
|
|
717
768
|
* SubDescriptors for video (RGBA/CDCI) descriptors
|
|
718
769
|
*/
|
|
719
770
|
export interface VideoSubDescriptors {
|
|
771
|
+
/**
|
|
772
|
+
* ST 2067-50 §8.2.4 ACES Picture SubDescriptors
|
|
773
|
+
*/
|
|
774
|
+
ACESPictureSubDescriptor?: AcesPictureSubDescriptor[];
|
|
775
|
+
/**
|
|
776
|
+
* ST 379-2 §7 Container Constraints Sub Descriptor
|
|
777
|
+
*/
|
|
778
|
+
ContainerConstraintsSubDescriptor?: ContainerConstraintsSubDescriptor | null;
|
|
720
779
|
/**
|
|
721
780
|
* JPEG 2000 Picture Sub Descriptor — Table 14 constraints
|
|
722
781
|
*/
|
|
@@ -725,6 +784,40 @@ export interface VideoSubDescriptors {
|
|
|
725
784
|
* Presence indicates Dolby Vision HDR
|
|
726
785
|
*/
|
|
727
786
|
PHDRMetadataTrackSubDescriptor?: PHDRMetadataTrackSubDescriptor | null;
|
|
787
|
+
/**
|
|
788
|
+
* ST 2067-50 §8.2.5 Target Frame SubDescriptors
|
|
789
|
+
*/
|
|
790
|
+
TargetFrameSubDescriptor?: TargetFrameSubDescriptor[];
|
|
791
|
+
}
|
|
792
|
+
/**
|
|
793
|
+
* ACES Picture SubDescriptor (ST 2067-50:2018 §8.2.4, Table 5).
|
|
794
|
+
*/
|
|
795
|
+
export interface AcesPictureSubDescriptor {
|
|
796
|
+
ACESAuthoringInformation?: string | null;
|
|
797
|
+
ACESMasteringDisplayMaximumLuminance?: string | null;
|
|
798
|
+
ACESMasteringDisplayMinimumLuminance?: string | null;
|
|
799
|
+
ACESMasteringDisplayPrimaries?: ThreeColorPrimaries | null;
|
|
800
|
+
ACESMasteringDisplayWhitePointChromaticity?: Chromaticity | null;
|
|
801
|
+
InstanceID?: string | null;
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* Three color primaries (ThreeColorPrimaries).
|
|
805
|
+
*/
|
|
806
|
+
export interface ThreeColorPrimaries {
|
|
807
|
+
ColorPrimary?: Chromaticity[];
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* A chromaticity coordinate pair, kept as text (presence is what is checked).
|
|
811
|
+
*/
|
|
812
|
+
export interface Chromaticity {
|
|
813
|
+
X?: string | null;
|
|
814
|
+
Y?: string | null;
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* ContainerConstraintsSubDescriptor — presence required by ST 2067-202 §5
|
|
818
|
+
*/
|
|
819
|
+
export interface ContainerConstraintsSubDescriptor {
|
|
820
|
+
InstanceID?: string | null;
|
|
728
821
|
}
|
|
729
822
|
/**
|
|
730
823
|
* JPEG 2000 Picture Sub Descriptor (ST 422 / ST 2067-21 Table 14)
|
|
@@ -859,6 +952,22 @@ export interface PHDRMetadataTrackSubDescriptor {
|
|
|
859
952
|
PHDRMetadataTrackSubDescriptor_SimplePayloadSID?: number | null;
|
|
860
953
|
PHDRMetadataTrackSubDescriptor_SourceTrackID?: number | null;
|
|
861
954
|
}
|
|
955
|
+
/**
|
|
956
|
+
* Target Frame SubDescriptor (ST 2067-50:2018 §8.2.5, Table 7). Values are kept as text so that a malformed value is reported, not a parse failure.
|
|
957
|
+
*/
|
|
958
|
+
export interface TargetFrameSubDescriptor {
|
|
959
|
+
ACESPictureSubDescriptorInstanceID?: string | null;
|
|
960
|
+
InstanceID?: string | null;
|
|
961
|
+
MediaType?: string | null;
|
|
962
|
+
TargetFrameAncillaryResourceID?: string | null;
|
|
963
|
+
TargetFrameColorPrimaries?: string | null;
|
|
964
|
+
TargetFrameComponentMaxRef?: string | null;
|
|
965
|
+
TargetFrameComponentMinRef?: string | null;
|
|
966
|
+
TargetFrameEssenceStreamID?: string | null;
|
|
967
|
+
TargetFrameIndex?: string | null;
|
|
968
|
+
TargetFrameTransferCharacteristic?: string | null;
|
|
969
|
+
TargetFrameViewingEnvironment?: string | null;
|
|
970
|
+
}
|
|
862
971
|
/**
|
|
863
972
|
* DC Timed Text descriptor (subtitles/captions)
|
|
864
973
|
*/
|
|
@@ -887,9 +996,9 @@ export interface IABEssenceDescriptor {
|
|
|
887
996
|
*/
|
|
888
997
|
ContainerFormat?: string | null;
|
|
889
998
|
/**
|
|
890
|
-
* ST 2067-201 §5.9: ElectrospatialFormulation shall
|
|
999
|
+
* ST 2067-201 §5.9: if present, ElectrospatialFormulation shall be 15 (multi-channel mode default). Kept as written: RegXML writes the enumeration as its register symbol (`ElectroSpatialFormulation_MultiChannelMode`), some writers as the number. See `IABEssenceDescriptor::electrospatial_formulation_value`.
|
|
891
1000
|
*/
|
|
892
|
-
ElectrospatialFormulation?:
|
|
1001
|
+
ElectrospatialFormulation?: string | null;
|
|
893
1002
|
InstanceID?: string | null;
|
|
894
1003
|
LinkedTrackID?: number | null;
|
|
895
1004
|
/**
|
|
@@ -913,7 +1022,7 @@ export interface IABSubDescriptors {
|
|
|
913
1022
|
/**
|
|
914
1023
|
* Presence-only stub for ST 2067-201:2026 Annex E `IABChannelSubDescriptor`.
|
|
915
1024
|
*
|
|
916
|
-
* The 2026 spec defines the full item set in Table E.1 (`IABBedMetaID`, `IABChannelID`, `IABAudioDescription`, `IABAudioDescriptionText`); imferno's CPL parser only needs to count occurrences to fire the `IabChannelSubDescriptorRecommended`
|
|
1025
|
+
* The 2026 spec defines the full item set in Table E.1 (`IABBedMetaID`, `IABChannelID`, `IABAudioDescription`, `IABAudioDescriptionText`); imferno's CPL parser only needs to count occurrences to fire the `IabChannelSubDescriptorRecommended` notice, so the inner shape is intentionally permissive — any nested content deserialises into the catch-all map without affecting presence.
|
|
917
1026
|
*/
|
|
918
1027
|
export interface IABChannelSubDescriptor {
|
|
919
1028
|
/**
|
|
@@ -939,9 +1048,13 @@ export interface IABSoundfieldLabelSubDescriptor {
|
|
|
939
1048
|
RFC5646SpokenLanguage?: LanguageTag | null;
|
|
940
1049
|
}
|
|
941
1050
|
/**
|
|
942
|
-
* ISXD (
|
|
1051
|
+
* ISXD (Isochronous Stream of XML Documents, ST 2067-202) data essence descriptor
|
|
943
1052
|
*/
|
|
944
1053
|
export interface ISXDDataEssenceDescriptor {
|
|
1054
|
+
/**
|
|
1055
|
+
* ST 2067-202 §9.1: the Essence Container UL shall be the Frame Wrapped ISXD Container UL (Table 3).
|
|
1056
|
+
*/
|
|
1057
|
+
ContainerFormat?: string | null;
|
|
945
1058
|
DataEssenceCoding?: string | null;
|
|
946
1059
|
InstanceID?: string | null;
|
|
947
1060
|
LinkedTrackID?: number | null;
|
|
@@ -958,16 +1071,14 @@ export interface IsxdSubDescriptors {
|
|
|
958
1071
|
*/
|
|
959
1072
|
ContainerConstraintsSubDescriptor?: ContainerConstraintsSubDescriptor | null;
|
|
960
1073
|
}
|
|
961
|
-
/**
|
|
962
|
-
* ContainerConstraintsSubDescriptor — presence required by ST 2067-202 §5
|
|
963
|
-
*/
|
|
964
|
-
export interface ContainerConstraintsSubDescriptor {
|
|
965
|
-
InstanceID?: string | null;
|
|
966
|
-
}
|
|
967
1074
|
/**
|
|
968
1075
|
* RGBA video descriptor (JPEG 2000 RGB content)
|
|
969
1076
|
*/
|
|
970
1077
|
export interface RGBADescriptor {
|
|
1078
|
+
/**
|
|
1079
|
+
* Generic Picture Essence Descriptor: Active Format Descriptor (ST 2065-5:2016 Table 10: shall not be present)
|
|
1080
|
+
*/
|
|
1081
|
+
ActiveFormatDescriptor?: string | null;
|
|
971
1082
|
/**
|
|
972
1083
|
* Table 10: AlphaMaxRef — shall not be present
|
|
973
1084
|
*/
|
|
@@ -990,6 +1101,10 @@ export interface RGBADescriptor {
|
|
|
990
1101
|
* RGBA Descriptor: Component Min Ref (Table 10/11)
|
|
991
1102
|
*/
|
|
992
1103
|
ComponentMinRef?: number | null;
|
|
1104
|
+
/**
|
|
1105
|
+
* File Descriptor: Essence Container label
|
|
1106
|
+
*/
|
|
1107
|
+
ContainerFormat?: string | null;
|
|
993
1108
|
/**
|
|
994
1109
|
* Generic Picture Essence Descriptor: DisplayF2Offset
|
|
995
1110
|
*/
|
|
@@ -1028,6 +1143,10 @@ export interface RGBADescriptor {
|
|
|
1028
1143
|
*/
|
|
1029
1144
|
PaletteLayout?: string | null;
|
|
1030
1145
|
PictureCompression?: VideoCodec | null;
|
|
1146
|
+
/**
|
|
1147
|
+
* RGBA Descriptor: Pixel Layout
|
|
1148
|
+
*/
|
|
1149
|
+
PixelLayout?: J2CLayout | null;
|
|
1031
1150
|
SampleRate?: EditRate | null;
|
|
1032
1151
|
/**
|
|
1033
1152
|
* Table 8: SampledHeight — shall not be present or shall be equal to StoredHeight
|
|
@@ -1049,6 +1168,10 @@ export interface RGBADescriptor {
|
|
|
1049
1168
|
* RGBA Descriptor: Scanning Direction (Table 10) Shall be "ScanningDirection_LeftToRightTopToBottom" (00h)
|
|
1050
1169
|
*/
|
|
1051
1170
|
ScanningDirection?: string | null;
|
|
1171
|
+
/**
|
|
1172
|
+
* Generic Picture Essence Descriptor: Signal Standard (ST 2065-5:2016 Table 10: shall not be present)
|
|
1173
|
+
*/
|
|
1174
|
+
SignalStandard?: string | null;
|
|
1052
1175
|
/**
|
|
1053
1176
|
* Table 8: StoredF2Offset — shall not be present
|
|
1054
1177
|
*/
|
|
@@ -1057,6 +1180,16 @@ export interface RGBADescriptor {
|
|
|
1057
1180
|
StoredWidth?: number | null;
|
|
1058
1181
|
SubDescriptors?: VideoSubDescriptors | null;
|
|
1059
1182
|
TransferCharacteristic?: TransferCharacteristic | null;
|
|
1183
|
+
/**
|
|
1184
|
+
* Generic Picture Essence Descriptor: Video Line Map
|
|
1185
|
+
*/
|
|
1186
|
+
VideoLineMap?: VideoLineMap | null;
|
|
1187
|
+
}
|
|
1188
|
+
/**
|
|
1189
|
+
* Video Line Map of a Generic Picture Essence Descriptor (ST 377-1).
|
|
1190
|
+
*/
|
|
1191
|
+
export interface VideoLineMap {
|
|
1192
|
+
Int32?: number[];
|
|
1060
1193
|
}
|
|
1061
1194
|
/**
|
|
1062
1195
|
* WAVE PCM audio descriptor
|
|
@@ -1067,6 +1200,10 @@ export interface WAVEPCMDescriptor {
|
|
|
1067
1200
|
InstanceID?: string | null;
|
|
1068
1201
|
LinkedTrackID?: number | null;
|
|
1069
1202
|
QuantizationBits?: number | null;
|
|
1203
|
+
/**
|
|
1204
|
+
* ST 2067-2 Annex F (2013, 2016) / Annex E (2020): the edit rate of the image the audio is designed to sync to (§5.3.5 Table 6).
|
|
1205
|
+
*/
|
|
1206
|
+
ReferenceImageEditRate?: EditRate | null;
|
|
1070
1207
|
SampleRate?: EditRate | null;
|
|
1071
1208
|
SubDescriptors?: AudioSubDescriptors | null;
|
|
1072
1209
|
}
|
|
@@ -1088,6 +1225,9 @@ export interface SoundfieldGroupLabelSubDescriptor {
|
|
|
1088
1225
|
*/
|
|
1089
1226
|
RFC5646SpokenLanguage?: LanguageTag | null;
|
|
1090
1227
|
}
|
|
1228
|
+
/**
|
|
1229
|
+
* The CPL's `ExtensionProperties`: ApplicationIdentification (the Application IDs of every ST 2067-2 instance, space-separated), MaxCLL and MaxFALL.
|
|
1230
|
+
*/
|
|
1091
1231
|
export interface ExtensionProperties {
|
|
1092
1232
|
ApplicationIdentification?: string | null;
|
|
1093
1233
|
MaxCLL?: number | null;
|
|
@@ -1136,6 +1276,10 @@ export interface Segment {
|
|
|
1136
1276
|
SequenceList: SequenceList;
|
|
1137
1277
|
}
|
|
1138
1278
|
export interface SequenceList {
|
|
1279
|
+
/**
|
|
1280
|
+
* Sequences whose element imferno does not model (ST 2067-3 §6.9.3 Extension Sequences, e.g. ST 2067-203 `MGASADMSignalSequence` or ST 2067-2 `CommentarySequence`), in document order. Filled by `parse_cpl` from the source XML so their EssenceDescriptor and Track File references resolve; no other rules are applied to them.
|
|
1281
|
+
*/
|
|
1282
|
+
ExtensionSequence?: ExtensionSequence[];
|
|
1139
1283
|
ForcedNarrativeSequence?: ForcedNarrativeSequence[];
|
|
1140
1284
|
HearingImpairedCaptionsSequence?: HearingImpairedCaptionsSequence[];
|
|
1141
1285
|
IABSequence?: IABSequence[];
|
|
@@ -1145,8 +1289,13 @@ export interface SequenceList {
|
|
|
1145
1289
|
MarkerSequence?: MarkerSequence[];
|
|
1146
1290
|
SubtitlesSequence?: SubtitlesSequence[];
|
|
1147
1291
|
}
|
|
1148
|
-
|
|
1292
|
+
/**
|
|
1293
|
+
* A Sequence of a kind imferno does not model (ST 2067-3 §6.9.3 Extension Sequence). Every Sequence derives from SequenceType, so its Id, TrackId and Resources are kept; the element is named by `name` (local name) and `namespace` (namespace URI; null when the element has no namespace).
|
|
1294
|
+
*/
|
|
1295
|
+
export interface ExtensionSequence {
|
|
1149
1296
|
Id: ImfUuid;
|
|
1297
|
+
Name?: string;
|
|
1298
|
+
Namespace?: string | null;
|
|
1150
1299
|
ResourceList: ResourceList;
|
|
1151
1300
|
TrackId: ImfUuid;
|
|
1152
1301
|
}
|
|
@@ -1161,17 +1310,40 @@ export interface Resource {
|
|
|
1161
1310
|
Id: ImfUuid;
|
|
1162
1311
|
IntrinsicDuration: number;
|
|
1163
1312
|
KeyId?: ImfUuid | null;
|
|
1313
|
+
/**
|
|
1314
|
+
* `LeftEye` of a `cc:StereoImageTrackFileResourceType` resource (ST 2067-2:2013, :2016 and :2020). A stereo resource carries its SourceEncoding and TrackFileId per eye, not on the resource itself.
|
|
1315
|
+
*/
|
|
1316
|
+
LeftEye?: StereoEye | null;
|
|
1164
1317
|
Marker?: MarkerInfo[];
|
|
1165
1318
|
RepeatCount?: number | null;
|
|
1319
|
+
/**
|
|
1320
|
+
* `RightEye` of a `cc:StereoImageTrackFileResourceType` resource.
|
|
1321
|
+
*/
|
|
1322
|
+
RightEye?: StereoEye | null;
|
|
1166
1323
|
SourceDuration?: number | null;
|
|
1167
1324
|
SourceEncoding?: ImfUuid | null;
|
|
1168
1325
|
TrackFileId?: ImfUuid | null;
|
|
1169
1326
|
}
|
|
1327
|
+
/**
|
|
1328
|
+
* One eye of a stereo resource: a `cpl:TrackFileResourceType` (ST 2067-2). Only the track file reference fields are kept; the eye's timing fields are checked by the XSD layer.
|
|
1329
|
+
*/
|
|
1330
|
+
export interface StereoEye {
|
|
1331
|
+
Hash?: string | null;
|
|
1332
|
+
Id?: ImfUuid | null;
|
|
1333
|
+
KeyId?: ImfUuid | null;
|
|
1334
|
+
SourceEncoding?: ImfUuid | null;
|
|
1335
|
+
TrackFileId?: ImfUuid | null;
|
|
1336
|
+
}
|
|
1170
1337
|
export interface MarkerInfo {
|
|
1171
1338
|
Annotation?: string | null;
|
|
1172
1339
|
Label: MarkerLabelElement;
|
|
1173
1340
|
Offset: number;
|
|
1174
1341
|
}
|
|
1342
|
+
export interface ForcedNarrativeSequence {
|
|
1343
|
+
Id: ImfUuid;
|
|
1344
|
+
ResourceList: ResourceList;
|
|
1345
|
+
TrackId: ImfUuid;
|
|
1346
|
+
}
|
|
1175
1347
|
export interface HearingImpairedCaptionsSequence {
|
|
1176
1348
|
Id: ImfUuid;
|
|
1177
1349
|
ResourceList: ResourceList;
|
|
@@ -1443,22 +1615,30 @@ export interface ValidationResult {
|
|
|
1443
1615
|
rule_warnings?: RuleValidationWarning[];
|
|
1444
1616
|
validation: ValidationReport;
|
|
1445
1617
|
}
|
|
1618
|
+
|
|
1446
1619
|
/**
|
|
1447
|
-
*
|
|
1448
|
-
*
|
|
1449
|
-
*
|
|
1620
|
+
* Core constraints (ST 2067-2) edition to validate against. `"auto"` detects
|
|
1621
|
+
* it from the package and CPLs. A pinned edition also pins the editions it
|
|
1622
|
+
* cites (ST 2067-3, ST 2067-201 for IAB, ST 377-1/377-4 for MXF), over the
|
|
1623
|
+
* documents' namespaces, unless `cplSpec` / `iabSpec` pin those separately.
|
|
1450
1624
|
*/
|
|
1451
|
-
export interface RuleValidationWarning {
|
|
1452
|
-
/**
|
|
1453
|
-
* The configured key that triggered the warning.
|
|
1454
|
-
*/
|
|
1455
|
-
key: string;
|
|
1456
|
-
reason: RuleValidationReason;
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
/** Core constraints (ST 2067-2) edition to validate against. `"auto"` detects it from the CPL. */
|
|
1460
1625
|
export type CoreSpec = "auto" | "v2013" | "v2016" | "v2020";
|
|
1461
1626
|
|
|
1627
|
+
/**
|
|
1628
|
+
* Composition Playlist (ST 2067-3) edition to validate against; wins over the
|
|
1629
|
+
* edition `coreSpec` implies. ST 2067-3:2016 and :2020 share one namespace;
|
|
1630
|
+
* `"auto"` applies the newest unless the CPL uses something only one edition
|
|
1631
|
+
* defines, and reports the choice.
|
|
1632
|
+
*/
|
|
1633
|
+
export type CplSpec = "auto" | "v2013" | "v2016" | "v2020";
|
|
1634
|
+
|
|
1635
|
+
/**
|
|
1636
|
+
* IAB plug-in (ST 2067-201) edition to validate against; wins over the edition
|
|
1637
|
+
* `coreSpec` implies. Every edition shares one namespace; `"auto"` applies
|
|
1638
|
+
* the newest and reports the choice.
|
|
1639
|
+
*/
|
|
1640
|
+
export type IabSpec = "auto" | "v2019" | "v2021" | "v2026";
|
|
1641
|
+
|
|
1462
1642
|
/**
|
|
1463
1643
|
* App #2E (ST 2067-21) edition to validate against. `"auto"` uses the CPL's
|
|
1464
1644
|
* ApplicationIdentification; `"none"` skips application-profile validation.
|
|
@@ -1469,6 +1649,10 @@ export type App2eSpec = "auto" | "none" | "v2014" | "v2016" | "v2020" | "v2023"
|
|
|
1469
1649
|
export interface ValidateOptions {
|
|
1470
1650
|
/** Core constraints edition. Default: `"auto"`. */
|
|
1471
1651
|
coreSpec?: CoreSpec;
|
|
1652
|
+
/** Composition Playlist (ST 2067-3) edition. Default: `"auto"`. */
|
|
1653
|
+
cplSpec?: CplSpec;
|
|
1654
|
+
/** IAB plug-in (ST 2067-201) edition. Default: `"auto"`. */
|
|
1655
|
+
iabSpec?: IabSpec;
|
|
1472
1656
|
/** App #2E edition. Default: `"auto"`. */
|
|
1473
1657
|
app2eSpec?: App2eSpec;
|
|
1474
1658
|
/** ESLint-style per-rule severity overrides, keyed by code, rule suffix, glob or `source:<kind>`. */
|