@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/codes.js
CHANGED
|
@@ -3,21 +3,33 @@
|
|
|
3
3
|
const codes = {
|
|
4
4
|
ST377_1: {
|
|
5
5
|
NotMxf: "ST377-1/NotMxf",
|
|
6
|
-
ParseError: "ST377-1/ParseError",
|
|
7
6
|
NoEssenceContainers: "ST377-1/NoEssenceContainers",
|
|
8
|
-
Op1a: "ST377-1/Op1a",
|
|
9
7
|
NonHeaderFirstPartition: "ST377-1/NonHeaderFirstPartition",
|
|
10
8
|
HeaderPartitionOpen: "ST377-1/HeaderPartitionOpen",
|
|
11
9
|
MissingHeaderMetadata: "ST377-1/MissingHeaderMetadata",
|
|
12
10
|
StructuralComponentDurationMissing: "ST377-1/StructuralComponentDurationMissing",
|
|
11
|
+
FileDescriptorEssenceContainerMissing: "ST377-1/FileDescriptorEssenceContainerMissing",
|
|
12
|
+
PrefaceEssenceContainersIncomplete: "ST377-1/PrefaceEssenceContainersIncomplete",
|
|
13
|
+
PartitionEssenceContainersIncomplete: "ST377-1/PartitionEssenceContainersIncomplete",
|
|
14
|
+
OpenPartitionEssenceContainersIncomplete: "ST377-1/OpenPartitionEssenceContainersIncomplete",
|
|
15
|
+
FooterPartitionMissing: "ST377-1/FooterPartitionMissing",
|
|
16
|
+
RunInPresent: "ST377-1/RunInPresent",
|
|
17
|
+
OperationalPatternMarkerBit: "ST377-1/OperationalPatternMarkerBit",
|
|
18
|
+
SequenceDurationMismatch: "ST377-1/SequenceDurationMismatch",
|
|
19
|
+
StaticTrackComponentDuration: "ST377-1/StaticTrackComponentDuration",
|
|
20
|
+
StaticTrackDmComponentDuration: "ST377-1/StaticTrackDmComponentDuration",
|
|
13
21
|
},
|
|
14
22
|
ST377_4: {
|
|
15
23
|
MCALinkIDMissing: "ST377-4/MCALinkIDMissing",
|
|
16
24
|
SoundfieldGroupLinkIDMismatch: "ST377-4/SoundfieldGroupLinkIDMismatch",
|
|
25
|
+
MCALinkIDNotUnique: "ST377-4/MCALinkIDNotUnique",
|
|
26
|
+
MCATagSymbolSyntax: "ST377-4/MCATagSymbolSyntax",
|
|
27
|
+
SoundfieldGroupUnreferenced: "ST377-4/SoundfieldGroupUnreferenced",
|
|
17
28
|
},
|
|
18
29
|
ST429_8: {
|
|
19
30
|
SizeMismatch: "ST429-8/SizeMismatch",
|
|
20
31
|
ChecksumMismatch: "ST429-8/ChecksumMismatch",
|
|
32
|
+
MalformedXml: "ST429-8/MalformedXml",
|
|
21
33
|
},
|
|
22
34
|
ST429_9: {
|
|
23
35
|
AssetListEmpty: "ST429-9/AssetListEmpty",
|
|
@@ -31,10 +43,22 @@ const codes = {
|
|
|
31
43
|
AssetMapFileName: "ST429-9/AssetMapFileName",
|
|
32
44
|
AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList",
|
|
33
45
|
PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap",
|
|
46
|
+
AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml",
|
|
47
|
+
PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl",
|
|
48
|
+
VolumeCountNotOne: "ST429-9/VolumeCountNotOne",
|
|
49
|
+
ChunkCountNotOne: "ST429-9/ChunkCountNotOne",
|
|
50
|
+
ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne",
|
|
51
|
+
ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero",
|
|
52
|
+
ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch",
|
|
53
|
+
SymbolicLink: "ST429-9/SymbolicLink",
|
|
34
54
|
},
|
|
35
55
|
ST2067_2: {
|
|
36
|
-
|
|
56
|
+
NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist",
|
|
57
|
+
ApplicationCplMismatch: "ST2067-2/ApplicationCplMismatch",
|
|
58
|
+
ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing",
|
|
59
|
+
ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate",
|
|
37
60
|
PklMalformedXml: "ST2067-2/PklMalformedXml",
|
|
61
|
+
NoPackingList: "ST2067-2/NoPackingList",
|
|
38
62
|
NoCpls: "ST2067-2/NoCpls",
|
|
39
63
|
SizeMismatch: "ST2067-2/SizeMismatch",
|
|
40
64
|
FileNotFound: "ST2067-2/FileNotFound",
|
|
@@ -43,30 +67,6 @@ const codes = {
|
|
|
43
67
|
TrackFileNotInPackage: "ST2067-2/TrackFileNotInPackage",
|
|
44
68
|
DuplicateUuid: "ST2067-2/DuplicateUuid",
|
|
45
69
|
PklUnknownNamespace: "ST2067-2/PklUnknownNamespace",
|
|
46
|
-
ResourceListEmpty: "ST2067-2/ResourceListEmpty",
|
|
47
|
-
ContentTitle: "ST2067-2/ContentTitle",
|
|
48
|
-
TotalRunningTimeFormat: "ST2067-2/TotalRunningTimeFormat",
|
|
49
|
-
SegmentList: "ST2067-2/SegmentList",
|
|
50
|
-
Segment: "ST2067-2/Segment",
|
|
51
|
-
EditRate: "ST2067-2/EditRate",
|
|
52
|
-
IssueDate: "ST2067-2/IssueDate",
|
|
53
|
-
IssueDateFormat: "ST2067-2/IssueDateFormat",
|
|
54
|
-
CompositionTimecodeDropFrame: "ST2067-2/CompositionTimecodeDropFrame",
|
|
55
|
-
CompositionTimecodeRate: "ST2067-2/CompositionTimecodeRate",
|
|
56
|
-
CompositionTimecodeStartAddress: "ST2067-2/CompositionTimecodeStartAddress",
|
|
57
|
-
CompositionTimecodeRateZero: "ST2067-2/CompositionTimecodeRateZero",
|
|
58
|
-
CompositionTimecodeStartAddressFormat: "ST2067-2/CompositionTimecodeStartAddressFormat",
|
|
59
|
-
CompositionTimecodeRateMismatch: "ST2067-2/CompositionTimecodeRateMismatch",
|
|
60
|
-
LocaleListNonEmpty: "ST2067-2/LocaleListNonEmpty",
|
|
61
|
-
UniqueSegmentId: "ST2067-2/UniqueSegmentId",
|
|
62
|
-
UniqueEssenceDescriptorId: "ST2067-2/UniqueEssenceDescriptorId",
|
|
63
|
-
UniqueResourceId: "ST2067-2/UniqueResourceId",
|
|
64
|
-
IntrinsicDuration: "ST2067-2/IntrinsicDuration",
|
|
65
|
-
EntryPoint: "ST2067-2/EntryPoint",
|
|
66
|
-
ResourceDuration: "ST2067-2/ResourceDuration",
|
|
67
|
-
RepeatCount: "ST2067-2/RepeatCount",
|
|
68
|
-
TrackFileId: "ST2067-2/TrackFileId",
|
|
69
|
-
VirtualTrackContinuity: "ST2067-2/VirtualTrackContinuity",
|
|
70
70
|
VirtualTrackEditRate: "ST2067-2/VirtualTrackEditRate",
|
|
71
71
|
TimedTextSampleRate: "ST2067-2/TimedTextSampleRate",
|
|
72
72
|
TimedTextEmptyLanguageTag: "ST2067-2/TimedTextEmptyLanguageTag",
|
|
@@ -79,8 +79,9 @@ const codes = {
|
|
|
79
79
|
MCATagSymbol: "ST2067-2/MCATagSymbol",
|
|
80
80
|
SoundfieldChannelCount: "ST2067-2/SoundfieldChannelCount",
|
|
81
81
|
DigitalSignature: "ST2067-2/DigitalSignature",
|
|
82
|
-
DanglingEssenceDescriptor: "ST2067-2/DanglingEssenceDescriptor",
|
|
83
82
|
EssenceDescriptorList: "ST2067-2/EssenceDescriptorList",
|
|
83
|
+
EssenceDescriptorContainerFormatMissing: "ST2067-2/EssenceDescriptorContainerFormatMissing",
|
|
84
|
+
EssenceDescriptorDiffersFromTrackFile: "ST2067-2/EssenceDescriptorDiffersFromTrackFile",
|
|
84
85
|
CplIdAssetMapMismatch: "ST2067-2/CplIdAssetMapMismatch",
|
|
85
86
|
OperationalPatternNotOP1A: "ST2067-2/OperationalPatternNotOP1A",
|
|
86
87
|
SoundDescriptorNotWAVEPCM: "ST2067-2/SoundDescriptorNotWAVEPCM",
|
|
@@ -98,12 +99,38 @@ const codes = {
|
|
|
98
99
|
SoundfieldGroupMissingMCATitleVersion: "ST2067-2/SoundfieldGroupMissingMCATitleVersion",
|
|
99
100
|
SoundfieldGroupMissingMCAAudioContentKind: "ST2067-2/SoundfieldGroupMissingMCAAudioContentKind",
|
|
100
101
|
SoundfieldGroupMissingMCAAudioElementKind: "ST2067-2/SoundfieldGroupMissingMCAAudioElementKind",
|
|
102
|
+
MCATagNameMissing: "ST2067-2/MCATagNameMissing",
|
|
103
|
+
GroupOfSoundfieldGroupsMissingMCATitle: "ST2067-2/GroupOfSoundfieldGroupsMissingMCATitle",
|
|
104
|
+
GroupOfSoundfieldGroupsMissingMCATitleVersion: "ST2067-2/GroupOfSoundfieldGroupsMissingMCATitleVersion",
|
|
105
|
+
GroupOfSoundfieldGroupsMissingMCAAudioContentKind: "ST2067-2/GroupOfSoundfieldGroupsMissingMCAAudioContentKind",
|
|
106
|
+
GroupOfSoundfieldGroupsMissingMCAAudioElementKind: "ST2067-2/GroupOfSoundfieldGroupsMissingMCAAudioElementKind",
|
|
107
|
+
AudioEssenceNotHomogeneous: "ST2067-2/AudioEssenceNotHomogeneous",
|
|
108
|
+
AudioVirtualTrackLabelsDiffer: "ST2067-2/AudioVirtualTrackLabelsDiffer",
|
|
101
109
|
TimedTextUCSEncodingNotUTF8: "ST2067-2/TimedTextUCSEncodingNotUTF8",
|
|
102
110
|
TimedTextNamespaceNotIMSC: "ST2067-2/TimedTextNamespaceNotIMSC",
|
|
103
111
|
TimedTextResourceMIMETypeUnsupported: "ST2067-2/TimedTextResourceMIMETypeUnsupported",
|
|
104
112
|
TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13",
|
|
113
|
+
TimedTextDataEssenceCodingPresent: "ST2067-2/TimedTextDataEssenceCodingPresent",
|
|
114
|
+
TopLevelFilePackageOriginNotZero: "ST2067-2/TopLevelFilePackageOriginNotZero",
|
|
115
|
+
TopLevelFilePackageFiller: "ST2067-2/TopLevelFilePackageFiller",
|
|
116
|
+
MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount",
|
|
117
|
+
AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing",
|
|
118
|
+
TrackFileMediaType: "ST2067-2/TrackFileMediaType",
|
|
119
|
+
CompositionEditRateMismatch: "ST2067-2/CompositionEditRateMismatch",
|
|
120
|
+
MainImageEditRateMismatch: "ST2067-2/MainImageEditRateMismatch",
|
|
121
|
+
AudioEditRateMismatch: "ST2067-2/AudioEditRateMismatch",
|
|
122
|
+
ContentVersionMissing: "ST2067-2/ContentVersionMissing",
|
|
123
|
+
ReferenceImageEditRateMissing: "ST2067-2/ReferenceImageEditRateMissing",
|
|
124
|
+
ReferenceImageEditRateMismatch: "ST2067-2/ReferenceImageEditRateMismatch",
|
|
125
|
+
AssetIdPackageUidMismatch: "ST2067-2/AssetIdPackageUidMismatch",
|
|
126
|
+
TrackFileIdPackageUidMismatch: "ST2067-2/TrackFileIdPackageUidMismatch",
|
|
127
|
+
PackageUidForm: "ST2067-2/PackageUidForm",
|
|
128
|
+
UuidNotVersion4: "ST2067-2/UuidNotVersion4",
|
|
129
|
+
AssetIdNotType5: "ST2067-2/AssetIdNotType5",
|
|
105
130
|
},
|
|
106
131
|
ST2067_3: {
|
|
132
|
+
ContentTitleEmpty: "ST2067-3/ContentTitleEmpty",
|
|
133
|
+
ResourceListEmpty: "ST2067-3/ResourceListEmpty",
|
|
107
134
|
ContentKindUnknown: "ST2067-3/ContentKindUnknown",
|
|
108
135
|
SourceEncodingNoEssenceDescriptorList: "ST2067-3/SourceEncodingNoEssenceDescriptorList",
|
|
109
136
|
SourceEncodingUnresolved: "ST2067-3/SourceEncodingUnresolved",
|
|
@@ -118,6 +145,34 @@ const codes = {
|
|
|
118
145
|
SegmentDuration: "ST2067-3/SegmentDuration",
|
|
119
146
|
ContentVersionIdDuplicate: "ST2067-3/ContentVersionIdDuplicate",
|
|
120
147
|
SegmentDurationIntegerEditUnits: "ST2067-3/SegmentDurationIntegerEditUnits",
|
|
148
|
+
UniqueSegmentId: "ST2067-3/UniqueSegmentId",
|
|
149
|
+
UniqueEssenceDescriptorId: "ST2067-3/UniqueEssenceDescriptorId",
|
|
150
|
+
UniqueResourceId: "ST2067-3/UniqueResourceId",
|
|
151
|
+
EntryPoint: "ST2067-3/EntryPoint",
|
|
152
|
+
ResourceDuration: "ST2067-3/ResourceDuration",
|
|
153
|
+
RepeatCount: "ST2067-3/RepeatCount",
|
|
154
|
+
TrackFileId: "ST2067-3/TrackFileId",
|
|
155
|
+
SourceEncodingMissing: "ST2067-3/SourceEncodingMissing",
|
|
156
|
+
VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity",
|
|
157
|
+
VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind",
|
|
158
|
+
ExtensionSequenceNotSequenceType: "ST2067-3/ExtensionSequenceNotSequenceType",
|
|
159
|
+
ResourceTypeMixed: "ST2067-3/ResourceTypeMixed",
|
|
160
|
+
MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType",
|
|
161
|
+
DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
|
|
162
|
+
CplMediaType: "ST2067-3/CplMediaType",
|
|
163
|
+
UniqueSequenceId: "ST2067-3/UniqueSequenceId",
|
|
164
|
+
ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate",
|
|
165
|
+
LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid",
|
|
166
|
+
SignerWithoutSignature: "ST2067-3/SignerWithoutSignature",
|
|
167
|
+
SignatureWithoutSigner: "ST2067-3/SignatureWithoutSigner",
|
|
168
|
+
HashAlgorithmMissing: "ST2067-3/HashAlgorithmMissing",
|
|
169
|
+
HashAlgorithmWithoutHash: "ST2067-3/HashAlgorithmWithoutHash",
|
|
170
|
+
ResourceHashMismatch: "ST2067-3/ResourceHashMismatch",
|
|
171
|
+
},
|
|
172
|
+
ST2067_5: {
|
|
173
|
+
OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier",
|
|
174
|
+
KagSizeNotOne: "ST2067-5/KagSizeNotOne",
|
|
175
|
+
EssenceContainerLabelNotSingle: "ST2067-5/EssenceContainerLabelNotSingle",
|
|
121
176
|
},
|
|
122
177
|
ST2067_9: {
|
|
123
178
|
MalformedXml: "ST2067-9/MalformedXml",
|
|
@@ -129,6 +184,57 @@ const codes = {
|
|
|
129
184
|
CplNotFound: "ST2067-9/CplNotFound",
|
|
130
185
|
DuplicateCplId: "ST2067-9/DuplicateCplId",
|
|
131
186
|
},
|
|
187
|
+
ST2067_20: {
|
|
188
|
+
ApplicationIdentification: "ST2067-20/ApplicationIdentification",
|
|
189
|
+
AppIdMismatch: "ST2067-20/AppIdMismatch",
|
|
190
|
+
ImageCharacteristics: "ST2067-20/ImageCharacteristics",
|
|
191
|
+
TransferCharacteristic: "ST2067-20/TransferCharacteristic",
|
|
192
|
+
CodingEquations: "ST2067-20/CodingEquations",
|
|
193
|
+
ColorPrimaries: "ST2067-20/ColorPrimaries",
|
|
194
|
+
J2KRequired: "ST2067-20/J2KRequired",
|
|
195
|
+
PictureEssenceCoding: "ST2067-20/PictureEssenceCoding",
|
|
196
|
+
FrameLayout: "ST2067-20/FrameLayout",
|
|
197
|
+
StoredF2Offset: "ST2067-20/StoredF2Offset",
|
|
198
|
+
SampledWidth: "ST2067-20/SampledWidth",
|
|
199
|
+
SampledHeight: "ST2067-20/SampledHeight",
|
|
200
|
+
SampledXOffset: "ST2067-20/SampledXOffset",
|
|
201
|
+
SampledYOffset: "ST2067-20/SampledYOffset",
|
|
202
|
+
DisplayF2Offset: "ST2067-20/DisplayF2Offset",
|
|
203
|
+
AlphaTransparency: "ST2067-20/AlphaTransparency",
|
|
204
|
+
ImageAlignmentOffset: "ST2067-20/ImageAlignmentOffset",
|
|
205
|
+
ImageStartOffset: "ST2067-20/ImageStartOffset",
|
|
206
|
+
ImageEndOffset: "ST2067-20/ImageEndOffset",
|
|
207
|
+
FieldDominance: "ST2067-20/FieldDominance",
|
|
208
|
+
TransferCharacteristicMissing: "ST2067-20/TransferCharacteristicMissing",
|
|
209
|
+
ColorPrimariesMissing: "ST2067-20/ColorPrimariesMissing",
|
|
210
|
+
CodingEquationsMissing: "ST2067-20/CodingEquationsMissing",
|
|
211
|
+
RequiredPictureCompression: "ST2067-20/RequiredPictureCompression",
|
|
212
|
+
ComponentMaxRef: "ST2067-20/ComponentMaxRef",
|
|
213
|
+
ComponentMinRef: "ST2067-20/ComponentMinRef",
|
|
214
|
+
AlphaMaxRef: "ST2067-20/AlphaMaxRef",
|
|
215
|
+
AlphaMinRef: "ST2067-20/AlphaMinRef",
|
|
216
|
+
ScanningDirection: "ST2067-20/ScanningDirection",
|
|
217
|
+
Palette: "ST2067-20/Palette",
|
|
218
|
+
PaletteLayout: "ST2067-20/PaletteLayout",
|
|
219
|
+
ComponentRefValues: "ST2067-20/ComponentRefValues",
|
|
220
|
+
ComponentDepth: "ST2067-20/ComponentDepth",
|
|
221
|
+
VerticalSubsampling: "ST2067-20/VerticalSubsampling",
|
|
222
|
+
ColorSiting: "ST2067-20/ColorSiting",
|
|
223
|
+
ReversedByteOrder: "ST2067-20/ReversedByteOrder",
|
|
224
|
+
PaddingBits: "ST2067-20/PaddingBits",
|
|
225
|
+
AlphaSampleDepth: "ST2067-20/AlphaSampleDepth",
|
|
226
|
+
RefLevelMissing: "ST2067-20/RefLevelMissing",
|
|
227
|
+
HorizontalSubsampling: "ST2067-20/HorizontalSubsampling",
|
|
228
|
+
BlackRefLevel: "ST2067-20/BlackRefLevel",
|
|
229
|
+
WhiteRefLevel: "ST2067-20/WhiteRefLevel",
|
|
230
|
+
ColorRange: "ST2067-20/ColorRange",
|
|
231
|
+
Jpeg2000SubDescriptor: "ST2067-20/Jpeg2000SubDescriptor",
|
|
232
|
+
CodingStyle: "ST2067-20/CodingStyle",
|
|
233
|
+
J2CLayout: "ST2067-20/J2CLayout",
|
|
234
|
+
J2CLayoutValue: "ST2067-20/J2CLayoutValue",
|
|
235
|
+
HomogeneousImageEssence: "ST2067-20/HomogeneousImageEssence",
|
|
236
|
+
SegmentDurationMultiple: "ST2067-20/SegmentDurationMultiple",
|
|
237
|
+
},
|
|
132
238
|
ST2067_21: {
|
|
133
239
|
ColorSystem: "ST2067-21/ColorSystem",
|
|
134
240
|
BlackRefLevel: "ST2067-21/BlackRefLevel",
|
|
@@ -195,6 +301,37 @@ const codes = {
|
|
|
195
301
|
HtIrvParameterBMax: "ST2067-21/HtIrvParameterBMax",
|
|
196
302
|
HtIrvParameterBRecommended: "ST2067-21/HtIrvParameterBRecommended",
|
|
197
303
|
J2K8KResolution: "ST2067-21/J2K8KResolution",
|
|
304
|
+
RefLevelMissing: "ST2067-21/RefLevelMissing",
|
|
305
|
+
DisplayF2Offset: "ST2067-21/DisplayF2Offset",
|
|
306
|
+
J2CLayoutValue: "ST2067-21/J2CLayoutValue",
|
|
307
|
+
PictureEssenceCoding: "ST2067-21/PictureEssenceCoding",
|
|
308
|
+
HtCodestreamConstraints: "ST2067-21/HtCodestreamConstraints",
|
|
309
|
+
},
|
|
310
|
+
ST2067_50: {
|
|
311
|
+
ApplicationIdentification: "ST2067-50/ApplicationIdentification",
|
|
312
|
+
ImageDescriptorNotRgba: "ST2067-50/ImageDescriptorNotRgba",
|
|
313
|
+
EssenceContainer: "ST2067-50/EssenceContainer",
|
|
314
|
+
PictureEssenceCoding: "ST2067-50/PictureEssenceCoding",
|
|
315
|
+
TransferCharacteristic: "ST2067-50/TransferCharacteristic",
|
|
316
|
+
ColorPrimaries: "ST2067-50/ColorPrimaries",
|
|
317
|
+
DescriptorItemNotAllowed: "ST2067-50/DescriptorItemNotAllowed",
|
|
318
|
+
FrameLayout: "ST2067-50/FrameLayout",
|
|
319
|
+
SampledArea: "ST2067-50/SampledArea",
|
|
320
|
+
VideoLineMap: "ST2067-50/VideoLineMap",
|
|
321
|
+
ScanningDirection: "ST2067-50/ScanningDirection",
|
|
322
|
+
PixelLayout: "ST2067-50/PixelLayout",
|
|
323
|
+
ContainerConstraintsSubDescriptorMissing: "ST2067-50/ContainerConstraintsSubDescriptorMissing",
|
|
324
|
+
FrameRate: "ST2067-50/FrameRate",
|
|
325
|
+
HomogeneousImageEssence: "ST2067-50/HomogeneousImageEssence",
|
|
326
|
+
SegmentDuration: "ST2067-50/SegmentDuration",
|
|
327
|
+
MasteringDisplayItems: "ST2067-50/MasteringDisplayItems",
|
|
328
|
+
TargetFrameCount: "ST2067-50/TargetFrameCount",
|
|
329
|
+
TargetFrameItemsMissing: "ST2067-50/TargetFrameItemsMissing",
|
|
330
|
+
TargetFrameAncillaryResourceId: "ST2067-50/TargetFrameAncillaryResourceId",
|
|
331
|
+
TargetFrameMediaType: "ST2067-50/TargetFrameMediaType",
|
|
332
|
+
TargetFrameIndex: "ST2067-50/TargetFrameIndex",
|
|
333
|
+
TargetFrameAcesReference: "ST2067-50/TargetFrameAcesReference",
|
|
334
|
+
TargetFrameViewingEnvironment: "ST2067-50/TargetFrameViewingEnvironment",
|
|
198
335
|
},
|
|
199
336
|
ST2067_201: {
|
|
200
337
|
CodecForbidden: "ST2067-201/CodecForbidden",
|
|
@@ -221,7 +358,11 @@ const codes = {
|
|
|
221
358
|
SubDescriptorDuplicate: "ST2067-201/SubDescriptorDuplicate",
|
|
222
359
|
MCAChannelIDForbidden: "ST2067-201/MCAChannelIDForbidden",
|
|
223
360
|
EditRateNotIntegerMultiple: "ST2067-201/EditRateNotIntegerMultiple",
|
|
361
|
+
ResourceEditRateNotSampleRate: "ST2067-201/ResourceEditRateNotSampleRate",
|
|
224
362
|
IabChannelSubDescriptorRecommended: "ST2067-201/IabChannelSubDescriptorRecommended",
|
|
363
|
+
ConformsToSpecificationsMissing: "ST2067-201/ConformsToSpecificationsMissing",
|
|
364
|
+
ConformsToSpecificationsInvalid: "ST2067-201/ConformsToSpecificationsInvalid",
|
|
365
|
+
EssenceNotHomogeneous: "ST2067-201/EssenceNotHomogeneous",
|
|
225
366
|
},
|
|
226
367
|
ST2067_202: {
|
|
227
368
|
NamespaceUriMissing: "ST2067-202/NamespaceUriMissing",
|
|
@@ -232,6 +373,91 @@ const codes = {
|
|
|
232
373
|
ISXDVirtualTrackMissing: "ST2067-202/ISXDVirtualTrackMissing",
|
|
233
374
|
DataEssenceCodingMissing: "ST2067-202/DataEssenceCodingMissing",
|
|
234
375
|
DataEssenceCodingInvalid: "ST2067-202/DataEssenceCodingInvalid",
|
|
376
|
+
EssenceContainerInvalid: "ST2067-202/EssenceContainerInvalid",
|
|
377
|
+
},
|
|
378
|
+
ST2067_203: {
|
|
379
|
+
SequenceResourceNotTrackFile: "ST2067-203/SequenceResourceNotTrackFile",
|
|
380
|
+
VirtualTrackParameterSetMissing: "ST2067-203/VirtualTrackParameterSetMissing",
|
|
381
|
+
VirtualTrackParameterSetDuplicate: "ST2067-203/VirtualTrackParameterSetDuplicate",
|
|
382
|
+
VirtualTrackParameterSetIdDuplicate: "ST2067-203/VirtualTrackParameterSetIdDuplicate",
|
|
383
|
+
VirtualTrackParameterSetOrphaned: "ST2067-203/VirtualTrackParameterSetOrphaned",
|
|
384
|
+
VirtualTrackParameterSetInvalid: "ST2067-203/VirtualTrackParameterSetInvalid",
|
|
385
|
+
OperationalModeUnknown: "ST2067-203/OperationalModeUnknown",
|
|
386
|
+
OperationalModeNotRecognized: "ST2067-203/OperationalModeNotRecognized",
|
|
387
|
+
SoundfieldGroupSelectorDuplicate: "ST2067-203/SoundfieldGroupSelectorDuplicate",
|
|
388
|
+
SoundfieldGroupSelectorResourceIdOrphaned: "ST2067-203/SoundfieldGroupSelectorResourceIdOrphaned",
|
|
389
|
+
SoundfieldGroupLinkIdDuplicate: "ST2067-203/SoundfieldGroupLinkIdDuplicate",
|
|
390
|
+
EditRateNotHomogeneous: "ST2067-203/EditRateNotHomogeneous",
|
|
391
|
+
EditRateNotMultipleOfMainImage: "ST2067-203/EditRateNotMultipleOfMainImage",
|
|
392
|
+
TrackFileNotMGA: "ST2067-203/TrackFileNotMGA",
|
|
393
|
+
TrackFileAudioSampleRate: "ST2067-203/TrackFileAudioSampleRate",
|
|
394
|
+
TrackFileQuantizationBits: "ST2067-203/TrackFileQuantizationBits",
|
|
395
|
+
TrackFileSoundCompression: "ST2067-203/TrackFileSoundCompression",
|
|
396
|
+
TrackFileReferenceItemMissing: "ST2067-203/TrackFileReferenceItemMissing",
|
|
397
|
+
TrackFileNotClipWrapped: "ST2067-203/TrackFileNotClipWrapped",
|
|
398
|
+
ContainerConstraintsSubDescriptorMissing: "ST2067-203/ContainerConstraintsSubDescriptorMissing",
|
|
399
|
+
SADMSectionCount: "ST2067-203/SADMSectionCount",
|
|
400
|
+
SADMSectionIdentifier: "ST2067-203/SADMSectionIdentifier",
|
|
401
|
+
SADMSectionNotFirst: "ST2067-203/SADMSectionNotFirst",
|
|
402
|
+
AudioMetadataPackUsed: "ST2067-203/AudioMetadataPackUsed",
|
|
403
|
+
SADMSubDescriptorMismatch: "ST2067-203/SADMSubDescriptorMismatch",
|
|
404
|
+
SADMProfileLevelULBatchMissing: "ST2067-203/SADMProfileLevelULBatchMissing",
|
|
405
|
+
ForbiddenMCASubDescriptor: "ST2067-203/ForbiddenMCASubDescriptor",
|
|
406
|
+
SoundfieldGroupLabelForSupplementalSection: "ST2067-203/SoundfieldGroupLabelForSupplementalSection",
|
|
407
|
+
SoundfieldGroupLabelValue: "ST2067-203/SoundfieldGroupLabelValue",
|
|
408
|
+
MCATagNameMissing: "ST2067-203/MCATagNameMissing",
|
|
409
|
+
MCAChannelIDPresent: "ST2067-203/MCAChannelIDPresent",
|
|
410
|
+
SoundfieldGroupLabelItemMissing: "ST2067-203/SoundfieldGroupLabelItemMissing",
|
|
411
|
+
ResourceEditRateNotTrackFile: "ST2067-203/ResourceEditRateNotTrackFile",
|
|
412
|
+
AudioSampleRateNotHomogeneous: "ST2067-203/AudioSampleRateNotHomogeneous",
|
|
413
|
+
SoundfieldGroupLinkIdNotInTrackFile: "ST2067-203/SoundfieldGroupLinkIdNotInTrackFile",
|
|
414
|
+
OperationalModeALabelItems: "ST2067-203/OperationalModeALabelItems",
|
|
415
|
+
},
|
|
416
|
+
ST2067_204: {
|
|
417
|
+
SequenceResourceNotTrackFile: "ST2067-204/SequenceResourceNotTrackFile",
|
|
418
|
+
VirtualTrackParameterSetMissing: "ST2067-204/VirtualTrackParameterSetMissing",
|
|
419
|
+
VirtualTrackParameterSetDuplicate: "ST2067-204/VirtualTrackParameterSetDuplicate",
|
|
420
|
+
VirtualTrackParameterSetIdDuplicate: "ST2067-204/VirtualTrackParameterSetIdDuplicate",
|
|
421
|
+
VirtualTrackParameterSetOrphaned: "ST2067-204/VirtualTrackParameterSetOrphaned",
|
|
422
|
+
VirtualTrackParameterSetInvalid: "ST2067-204/VirtualTrackParameterSetInvalid",
|
|
423
|
+
OperationalModeUnknown: "ST2067-204/OperationalModeUnknown",
|
|
424
|
+
OperationalModeNotRecognized: "ST2067-204/OperationalModeNotRecognized",
|
|
425
|
+
SoundfieldGroupSelectorDuplicate: "ST2067-204/SoundfieldGroupSelectorDuplicate",
|
|
426
|
+
SoundfieldGroupSelectorResourceIdOrphaned: "ST2067-204/SoundfieldGroupSelectorResourceIdOrphaned",
|
|
427
|
+
SoundfieldGroupLinkIdDuplicate: "ST2067-204/SoundfieldGroupLinkIdDuplicate",
|
|
428
|
+
EditRateNotHomogeneous: "ST2067-204/EditRateNotHomogeneous",
|
|
429
|
+
TrackFileNotWAVEPCM: "ST2067-204/TrackFileNotWAVEPCM",
|
|
430
|
+
TrackFileChannelAssignment: "ST2067-204/TrackFileChannelAssignment",
|
|
431
|
+
ForbiddenMCASubDescriptor: "ST2067-204/ForbiddenMCASubDescriptor",
|
|
432
|
+
ResourceEditRateNotTrackFile: "ST2067-204/ResourceEditRateNotTrackFile",
|
|
433
|
+
AudioSampleRateNotHomogeneous: "ST2067-204/AudioSampleRateNotHomogeneous",
|
|
434
|
+
},
|
|
435
|
+
ST2067_100: {
|
|
436
|
+
DuplicateAlias: "ST2067-100/DuplicateAlias",
|
|
437
|
+
DuplicateMacroName: "ST2067-100/DuplicateMacroName",
|
|
438
|
+
SignerWithoutSignature: "ST2067-100/SignerWithoutSignature",
|
|
439
|
+
SignatureWithoutSigner: "ST2067-100/SignatureWithoutSigner",
|
|
440
|
+
MacroOrder: "ST2067-100/MacroOrder",
|
|
441
|
+
HandleNotRelativePath: "ST2067-100/HandleNotRelativePath",
|
|
442
|
+
HandleUnresolved: "ST2067-100/HandleUnresolved",
|
|
443
|
+
PresetNotAlone: "ST2067-100/PresetNotAlone",
|
|
444
|
+
},
|
|
445
|
+
ST2067_101: {
|
|
446
|
+
PixelDecoderStructure: "ST2067-101/PixelDecoderStructure",
|
|
447
|
+
PixelEncoderStructure: "ST2067-101/PixelEncoderStructure",
|
|
448
|
+
ImageCropStructure: "ST2067-101/ImageCropStructure",
|
|
449
|
+
ImageScaleStructure: "ST2067-101/ImageScaleStructure",
|
|
450
|
+
ColorEncodingUnknown: "ST2067-101/ColorEncodingUnknown",
|
|
451
|
+
FillColorUnknown: "ST2067-101/FillColorUnknown",
|
|
452
|
+
},
|
|
453
|
+
ST2067_102: {
|
|
454
|
+
PixelValueOutOfRange: "ST2067-102/PixelValueOutOfRange",
|
|
455
|
+
DeprecatedColorScheme: "ST2067-102/DeprecatedColorScheme",
|
|
456
|
+
},
|
|
457
|
+
ST2067_103: {
|
|
458
|
+
AudioRoutingStructure: "ST2067-103/AudioRoutingStructure",
|
|
459
|
+
DuplicateOutputChannelHandle: "ST2067-103/DuplicateOutputChannelHandle",
|
|
460
|
+
DuplicateInputEntityHandle: "ST2067-103/DuplicateInputEntityHandle",
|
|
235
461
|
},
|
|
236
462
|
XSD: {
|
|
237
463
|
ElementMissing: "XSD/ElementMissing",
|
|
@@ -243,11 +469,21 @@ const codes = {
|
|
|
243
469
|
NotValidated: "XSD/NotValidated",
|
|
244
470
|
},
|
|
245
471
|
IMFERNO: {
|
|
472
|
+
ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated",
|
|
473
|
+
OplNotFullyValidated: "IMFERNO/OplNotFullyValidated",
|
|
474
|
+
SequenceListUnreadable: "IMFERNO/SequenceListUnreadable",
|
|
475
|
+
TrackFileIdentityNotValidated: "IMFERNO/TrackFileIdentityNotValidated",
|
|
246
476
|
EditionAssumed: "IMFERNO/EditionAssumed",
|
|
477
|
+
EditionConflict: "IMFERNO/EditionConflict",
|
|
478
|
+
EditionPinned: "IMFERNO/EditionPinned",
|
|
479
|
+
PinNotApplied: "IMFERNO/PinNotApplied",
|
|
247
480
|
DeliveryNotChecked: "IMFERNO/DeliveryNotChecked",
|
|
481
|
+
DiskChecksNotRun: "IMFERNO/DiskChecksNotRun",
|
|
248
482
|
OpenFailed: "IMFERNO/OpenFailed",
|
|
249
483
|
PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed",
|
|
250
484
|
RegXmlConversionFailed: "IMFERNO/RegXmlConversionFailed",
|
|
485
|
+
MxfHeaderUnreadable: "IMFERNO/MxfHeaderUnreadable",
|
|
486
|
+
MxfFooterNotLocated: "IMFERNO/MxfFooterNotLocated",
|
|
251
487
|
EssenceContainersDetected: "IMFERNO/EssenceContainersDetected",
|
|
252
488
|
IoError: "IMFERNO/IoError",
|
|
253
489
|
UnreferencedAsset: "IMFERNO/UnreferencedAsset",
|
|
@@ -255,11 +491,13 @@ const codes = {
|
|
|
255
491
|
ParseError: "IMFERNO/ParseError",
|
|
256
492
|
PklParseError: "IMFERNO/PklParseError",
|
|
257
493
|
XmlAssetParseError: "IMFERNO/XmlAssetParseError",
|
|
494
|
+
CplUnparseable: "IMFERNO/CplUnparseable",
|
|
258
495
|
XmlReadError: "IMFERNO/XmlReadError",
|
|
259
496
|
ReadDirError: "IMFERNO/ReadDirError",
|
|
260
497
|
DirEntryError: "IMFERNO/DirEntryError",
|
|
261
498
|
PathTraversal: "IMFERNO/PathTraversal",
|
|
262
499
|
ApplicationProfileNotValidated: "IMFERNO/ApplicationProfileNotValidated",
|
|
500
|
+
ApplicationNotFullyValidated: "IMFERNO/ApplicationNotFullyValidated",
|
|
263
501
|
RuleNotInEdition: "IMFERNO/RuleNotInEdition",
|
|
264
502
|
}
|
|
265
503
|
};
|
package/index.d.ts
CHANGED
|
@@ -13,10 +13,18 @@ import type {
|
|
|
13
13
|
export * from "./types";
|
|
14
14
|
export { codes } from "./codes";
|
|
15
15
|
|
|
16
|
-
/** Options for validating a package on disk (`validatePath`, `buildReportFromPath`). */
|
|
16
|
+
/** Options for validating a package on disk (`validatePath`, `buildReportFromPath` and their `…Async` variants). */
|
|
17
17
|
export interface PathValidateOptions extends ValidateOptions {
|
|
18
|
-
/**
|
|
18
|
+
/**
|
|
19
|
+
* Skip every disk read: asset presence, size and hash checks and MXF
|
|
20
|
+
* header checks (implies `skipHashes`). Only the XML is validated. Default: `false`.
|
|
21
|
+
*/
|
|
19
22
|
skipDiskChecks?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Skip hashing the assets against their Packing List `<Hash>`; presence and
|
|
25
|
+
* size are still checked. Hashing reads every asset. Default: `false`.
|
|
26
|
+
*/
|
|
27
|
+
skipHashes?: boolean;
|
|
20
28
|
}
|
|
21
29
|
|
|
22
30
|
/** Explicit S3 credentials for `s3://` URIs. Omit to use the default AWS credential chain. */
|
|
@@ -28,7 +36,12 @@ export interface S3Credentials {
|
|
|
28
36
|
endpoint?: string;
|
|
29
37
|
}
|
|
30
38
|
|
|
31
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Options for `validateUri` / `buildReportFromUri` (and their `…Async` variants).
|
|
41
|
+
* For an `s3://` URI only the XML is read: the disk checks do not run, and the
|
|
42
|
+
* result carries an `IMFERNO:Package/DiskChecksNotRun` notice unless
|
|
43
|
+
* `skipDiskChecks` is set.
|
|
44
|
+
*/
|
|
32
45
|
export interface UriValidateOptions extends PathValidateOptions {
|
|
33
46
|
/** Ignored for filesystem URIs. */
|
|
34
47
|
credentials?: S3Credentials | null;
|
|
@@ -48,7 +61,7 @@ export interface SarifLog {
|
|
|
48
61
|
* Disk checks are always skipped (there is no package on disk).
|
|
49
62
|
*
|
|
50
63
|
* @param files - A map of filename to XML content (e.g. `{ "ASSETMAP.xml": "..." }`)
|
|
51
|
-
* @param options - Optional validation options (`coreSpec`, `app2eSpec`, `rules`, `aggregateRepeats`)
|
|
64
|
+
* @param options - Optional validation options (`coreSpec`, `cplSpec`, `iabSpec`, `app2eSpec`, `rules`, `aggregateRepeats`)
|
|
52
65
|
* @returns An `ImfReport` with `package`, `cpls`, and `validation` fields.
|
|
53
66
|
* @throws If the package cannot be parsed or the options are invalid.
|
|
54
67
|
*/
|
|
@@ -58,13 +71,26 @@ export declare function buildReport(files: Record<string, string>, options?: Val
|
|
|
58
71
|
* Validate an IMF package directory on disk, returning the legacy
|
|
59
72
|
* `ImfReport` summary. Prefer `validatePath` for new code.
|
|
60
73
|
*
|
|
74
|
+
* Hashes the assets in parallel and blocks until done; see
|
|
75
|
+
* `buildReportFromPathAsync`.
|
|
76
|
+
*
|
|
61
77
|
* @param path - Path to the IMP directory
|
|
62
|
-
* @param options - Optional validation options (`coreSpec`, `app2eSpec`, `skipDiskChecks`, `rules`, `aggregateRepeats`)
|
|
78
|
+
* @param options - Optional validation options (`coreSpec`, `cplSpec`, `iabSpec`, `app2eSpec`, `skipDiskChecks`, `skipHashes`, `rules`, `aggregateRepeats`)
|
|
63
79
|
* @returns An `ImfReport` with `package`, `cpls`, and `validation` fields.
|
|
64
80
|
* @throws If the directory cannot be read, the package cannot be parsed, or the options are invalid.
|
|
65
81
|
*/
|
|
66
82
|
export declare function buildReportFromPath(path: string, options?: PathValidateOptions | undefined | null): ImfReport
|
|
67
83
|
|
|
84
|
+
/**
|
|
85
|
+
* `buildReportFromPath` on the libuv thread pool: the event loop keeps
|
|
86
|
+
* running while the assets are hashed.
|
|
87
|
+
*
|
|
88
|
+
* @param path - Path to the IMP directory
|
|
89
|
+
* @param options - Optional validation options, as for `buildReportFromPath`
|
|
90
|
+
* @returns A Promise of the `ImfReport`; rejects where `buildReportFromPath` throws.
|
|
91
|
+
*/
|
|
92
|
+
export declare function buildReportFromPathAsync(path: string, options?: PathValidateOptions | undefined | null): Promise<ImfReport>
|
|
93
|
+
|
|
68
94
|
/**
|
|
69
95
|
* Build the legacy `ImfReport` summary from a URI. Accepts the same URI forms
|
|
70
96
|
* as `validateUri`; prefer `validateUri` for new code.
|
|
@@ -76,6 +102,15 @@ export declare function buildReportFromPath(path: string, options?: PathValidate
|
|
|
76
102
|
*/
|
|
77
103
|
export declare function buildReportFromUri(uri: string, options?: UriValidateOptions | undefined | null): ImfReport
|
|
78
104
|
|
|
105
|
+
/**
|
|
106
|
+
* `buildReportFromUri` on the libuv thread pool.
|
|
107
|
+
*
|
|
108
|
+
* @param uri - Path or URI to the IMP
|
|
109
|
+
* @param options - Optional validation options, as for `buildReportFromUri`
|
|
110
|
+
* @returns A Promise of the `ImfReport`; rejects where `buildReportFromUri` throws.
|
|
111
|
+
*/
|
|
112
|
+
export declare function buildReportFromUriAsync(uri: string, options?: UriValidateOptions | undefined | null): Promise<ImfReport>
|
|
113
|
+
|
|
79
114
|
/**
|
|
80
115
|
* Pretty-print a validation result as a human-readable string.
|
|
81
116
|
*
|
|
@@ -139,25 +174,44 @@ export declare function toSarif(report: ValidationResult | ValidationReport): Sa
|
|
|
139
174
|
* @param files - A map of filename to XML content
|
|
140
175
|
* @param options - Optional validation options
|
|
141
176
|
* @returns `{ package, validation }` — the full parsed package and all findings.
|
|
142
|
-
* @throws Only if the options are invalid.
|
|
177
|
+
* @throws Only if the options are invalid (wrong type, unknown key).
|
|
143
178
|
*/
|
|
144
179
|
export declare function validate(files: Record<string, string>, options?: ValidateOptions | undefined | null): ValidationResult
|
|
145
180
|
|
|
146
181
|
/**
|
|
147
182
|
* Parse and validate an IMF package directory on disk.
|
|
148
183
|
*
|
|
184
|
+
* Like the CLI, checks every asset's presence and size and hashes it against
|
|
185
|
+
* its Packing List `<Hash>` unless `skipHashes` (or `skipDiskChecks`) is set.
|
|
186
|
+
* Hashing reads every asset (several at a time) and blocks until done; use
|
|
187
|
+
* `validatePathAsync` to keep the event loop running.
|
|
188
|
+
*
|
|
149
189
|
* @param path - Path to the IMP directory
|
|
150
190
|
* @param options - Optional validation options
|
|
151
191
|
* @returns `{ package, validation }` — the full parsed package and all findings.
|
|
152
|
-
* @throws If the directory cannot be read or the options are invalid
|
|
192
|
+
* @throws If the directory cannot be read or the options are invalid
|
|
193
|
+
* (wrong type, unknown key).
|
|
153
194
|
*/
|
|
154
195
|
export declare function validatePath(path: string, options?: PathValidateOptions | undefined | null): ValidationResult
|
|
155
196
|
|
|
197
|
+
/**
|
|
198
|
+
* `validatePath` on the libuv thread pool: the event loop keeps running
|
|
199
|
+
* while the assets are hashed. Same result as `validatePath`.
|
|
200
|
+
*
|
|
201
|
+
* @param path - Path to the IMP directory
|
|
202
|
+
* @param options - Optional validation options, as for `validatePath`
|
|
203
|
+
* @returns A Promise of `{ package, validation }`; rejects where `validatePath` throws.
|
|
204
|
+
*/
|
|
205
|
+
export declare function validatePathAsync(path: string, options?: PathValidateOptions | undefined | null): Promise<ValidationResult>
|
|
206
|
+
|
|
156
207
|
/**
|
|
157
208
|
* Parse and validate an IMF package from a URI.
|
|
158
209
|
*
|
|
159
210
|
* Accepts `file://` URIs, bare filesystem paths, and (when built with the
|
|
160
211
|
* `aws-s3` feature, as the prebuilt npm binaries are) `s3://bucket/prefix/`.
|
|
212
|
+
* Local packages get the disk checks of `validatePath`. An `s3://` package
|
|
213
|
+
* has only its XML read: presence, size and hash checks are not run, and the
|
|
214
|
+
* result says so with an `IMFERNO:Package/DiskChecksNotRun` notice.
|
|
161
215
|
*
|
|
162
216
|
* @param uri - Path or URI to the IMP
|
|
163
217
|
* @param options - Optional validation options (plus `credentials` for S3)
|
|
@@ -165,3 +219,14 @@ export declare function validatePath(path: string, options?: PathValidateOptions
|
|
|
165
219
|
* @throws If the URI cannot be read or the options are invalid.
|
|
166
220
|
*/
|
|
167
221
|
export declare function validateUri(uri: string, options?: UriValidateOptions | undefined | null): ValidationResult
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* `validateUri` on the libuv thread pool: the event loop keeps running
|
|
225
|
+
* while the package is read and its assets are hashed. Same result as
|
|
226
|
+
* `validateUri`.
|
|
227
|
+
*
|
|
228
|
+
* @param uri - Path or URI to the IMP
|
|
229
|
+
* @param options - Optional validation options (plus `credentials` for S3)
|
|
230
|
+
* @returns A Promise of `{ package, validation }`; rejects where `validateUri` throws.
|
|
231
|
+
*/
|
|
232
|
+
export declare function validateUriAsync(uri: string, options?: UriValidateOptions | undefined | null): Promise<ValidationResult>
|
package/index.mjs
CHANGED
|
@@ -49,12 +49,16 @@ export const {
|
|
|
49
49
|
buildReport,
|
|
50
50
|
buildReportFromPath,
|
|
51
51
|
buildReportFromUri,
|
|
52
|
+
buildReportFromPathAsync,
|
|
53
|
+
buildReportFromUriAsync,
|
|
52
54
|
formatReport,
|
|
53
55
|
parsePackage,
|
|
54
56
|
parsePackageFromPath,
|
|
55
57
|
validate,
|
|
56
58
|
validatePath,
|
|
57
59
|
validateUri,
|
|
60
|
+
validatePathAsync,
|
|
61
|
+
validateUriAsync,
|
|
58
62
|
listRules,
|
|
59
63
|
toSarif,
|
|
60
64
|
} = nativeModule;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@imferno/node",
|
|
3
|
-
"version": "3.0.2-beta.
|
|
3
|
+
"version": "3.0.2-beta.bf185b8",
|
|
4
4
|
"description": "Native Node.js bindings for the imferno SMPTE ST 2067 IMF validator",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -45,12 +45,12 @@
|
|
|
45
45
|
"test": "vitest run"
|
|
46
46
|
},
|
|
47
47
|
"optionalDependencies": {
|
|
48
|
-
"@imferno/node-darwin-arm64": "3.0.2-beta.
|
|
49
|
-
"@imferno/node-darwin-x64": "3.0.2-beta.
|
|
50
|
-
"@imferno/node-linux-x64-gnu": "3.0.2-beta.
|
|
51
|
-
"@imferno/node-linux-arm64-gnu": "3.0.2-beta.
|
|
52
|
-
"@imferno/node-win32-x64-msvc": "3.0.2-beta.
|
|
53
|
-
"@imferno/node-win32-arm64-msvc": "3.0.2-beta.
|
|
48
|
+
"@imferno/node-darwin-arm64": "3.0.2-beta.bf185b8",
|
|
49
|
+
"@imferno/node-darwin-x64": "3.0.2-beta.bf185b8",
|
|
50
|
+
"@imferno/node-linux-x64-gnu": "3.0.2-beta.bf185b8",
|
|
51
|
+
"@imferno/node-linux-arm64-gnu": "3.0.2-beta.bf185b8",
|
|
52
|
+
"@imferno/node-win32-x64-msvc": "3.0.2-beta.bf185b8",
|
|
53
|
+
"@imferno/node-win32-arm64-msvc": "3.0.2-beta.bf185b8"
|
|
54
54
|
},
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|