@imferno/node 3.0.2-beta.b86ffac → 3.0.2-beta.cdb240a

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 CHANGED
@@ -35,6 +35,26 @@ for (const issue of validation.errors) {
35
35
  console.log("CPLs:", Object.keys(pkg.compositionPlaylists).length);
36
36
  ```
37
37
 
38
+ `validatePath` hashes every asset (several at a time, like the CLI) and
39
+ blocks until done. To keep the event loop running, use the async variant:
40
+ same arguments, same result, on the libuv thread pool.
41
+
42
+ ```ts
43
+ import { validatePathAsync } from "@imferno/node";
44
+
45
+ const { validation } = await validatePathAsync("./my-imp");
46
+ ```
47
+
48
+ `validateUriAsync`, `buildReportFromPathAsync` and `buildReportFromUriAsync`
49
+ work the same way.
50
+
51
+ Each running `…Async` call holds one libuv worker thread for its whole run
52
+ (the hashing itself runs on imferno's own threads). The pool has 4 workers
53
+ by default and is shared with `fs`, `dns.lookup`, `crypto` and `zlib`, so
54
+ more than a few concurrent validations queue each other and that I/O. To
55
+ run more at once, raise the pool size before Node starts it, e.g.
56
+ `UV_THREADPOOL_SIZE=16 node app.js` (max 1024).
57
+
38
58
  ### Validate from a URI (filesystem or S3)
39
59
 
40
60
  ```js
@@ -46,6 +66,8 @@ const result2 = validateUri("file:///abs/path/to/my-imp");
46
66
 
47
67
  // S3 — prebuilt npm binaries include S3 support; uses the default AWS
48
68
  // credential chain (env vars, profile, or EC2/ECS/EKS IMDS)
69
+ // Only the XML is read from S3: presence, size and hash checks do not run,
70
+ // and the result says so (IMFERNO:Package/DiskChecksNotRun).
49
71
  const result3 = validateUri("s3://my-bucket/path/to/imp/");
50
72
 
51
73
  // Same options object as validatePath
@@ -121,17 +143,26 @@ console.log(getVersion()); // e.g. "2.0.0"
121
143
 
122
144
  | Option | Type | Description |
123
145
  |--------|------|-------------|
124
- | `coreSpec` | `"auto" \| "v2013" \| "v2016" \| "v2020"` | Core constraints spec version |
146
+ | `coreSpec` | `"auto" \| "v2013" \| "v2016" \| "v2020"` | Core constraints (ST 2067-2) edition; a pin also pins the editions it cites (ST 2067-3, ST 2067-201, ST 377-1/-4) |
147
+ | `cplSpec` | `"auto" \| "v2013" \| "v2016" \| "v2020"` | Composition Playlist (ST 2067-3) edition; wins over the one `coreSpec` implies |
148
+ | `iabSpec` | `"auto" \| "v2019" \| "v2021" \| "v2026"` | IAB plug-in (ST 2067-201) edition; wins over the one `coreSpec` implies |
125
149
  | `app2eSpec` | `"auto" \| "none" \| "v2014" \| "v2016" \| "v2020" \| "v2023" \| "v2026"` | Application spec version |
126
150
  | `rules` | `Record<string, "off" \| "info" \| "warn" \| "error" \| "critical">` | ESLint-style per-rule severity overrides |
127
151
  | `aggregateRepeats` | `boolean` | Collapse repeated identical findings into one issue with `additional_instances` |
128
- | `skipDiskChecks` | `boolean` | Skip file manifest and MXF checks (path / URI functions only; in-memory input never touches disk) |
152
+ | `skipDiskChecks` | `boolean` | Skip every disk read: asset existence, size and hash checks and MXF checks (path / URI functions only; in-memory input never touches disk) |
153
+ | `skipHashes` | `boolean` | Skip hashing the assets; existence and size are still checked (path / URI functions only). Hashes are verified by default, like the CLI |
129
154
  | `credentials` | `S3Credentials \| null` | Explicit S3 credentials (URI functions only) |
130
155
 
156
+ An option the function does not accept, or a value of the wrong type, throws.
157
+ `null` and `undefined` mean not set for every option in the table, also one
158
+ the function does not take; an unknown key throws even as `null`, so a typo
159
+ like `{ skipHash: null }` is caught.
160
+
131
161
  ### TypeScript
132
162
 
133
163
  The package ships precise declarations, generated from the Rust types (no
134
- `any`). Every function is synchronous. All value types are exported from the
164
+ `any`). Every function is synchronous, except the `…Async` variants, which
165
+ return a Promise. All value types are exported from the
135
166
  main entry:
136
167
 
137
168
  ```ts
package/codes.d.ts CHANGED
@@ -3,21 +3,26 @@
3
3
  export declare const codes: {
4
4
  readonly ST377_1: {
5
5
  readonly NotMxf: "ST377-1/NotMxf";
6
- readonly ParseError: "ST377-1/ParseError";
7
6
  readonly NoEssenceContainers: "ST377-1/NoEssenceContainers";
8
- readonly Op1a: "ST377-1/Op1a";
9
7
  readonly NonHeaderFirstPartition: "ST377-1/NonHeaderFirstPartition";
10
8
  readonly HeaderPartitionOpen: "ST377-1/HeaderPartitionOpen";
11
9
  readonly MissingHeaderMetadata: "ST377-1/MissingHeaderMetadata";
12
10
  readonly StructuralComponentDurationMissing: "ST377-1/StructuralComponentDurationMissing";
11
+ readonly FileDescriptorEssenceContainerMissing: "ST377-1/FileDescriptorEssenceContainerMissing";
12
+ readonly PrefaceEssenceContainersIncomplete: "ST377-1/PrefaceEssenceContainersIncomplete";
13
+ readonly PartitionEssenceContainersIncomplete: "ST377-1/PartitionEssenceContainersIncomplete";
13
14
  };
14
15
  readonly ST377_4: {
15
16
  readonly MCALinkIDMissing: "ST377-4/MCALinkIDMissing";
16
17
  readonly SoundfieldGroupLinkIDMismatch: "ST377-4/SoundfieldGroupLinkIDMismatch";
18
+ readonly MCALinkIDNotUnique: "ST377-4/MCALinkIDNotUnique";
19
+ readonly MCATagSymbolSyntax: "ST377-4/MCATagSymbolSyntax";
20
+ readonly SoundfieldGroupUnreferenced: "ST377-4/SoundfieldGroupUnreferenced";
17
21
  };
18
22
  readonly ST429_8: {
19
23
  readonly SizeMismatch: "ST429-8/SizeMismatch";
20
24
  readonly ChecksumMismatch: "ST429-8/ChecksumMismatch";
25
+ readonly MalformedXml: "ST429-8/MalformedXml";
21
26
  };
22
27
  readonly ST429_9: {
23
28
  readonly AssetListEmpty: "ST429-9/AssetListEmpty";
@@ -31,10 +36,21 @@ export declare const codes: {
31
36
  readonly AssetMapFileName: "ST429-9/AssetMapFileName";
32
37
  readonly AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList";
33
38
  readonly PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap";
39
+ readonly AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml";
40
+ readonly PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl";
41
+ readonly VolumeCountNotOne: "ST429-9/VolumeCountNotOne";
42
+ readonly ChunkCountNotOne: "ST429-9/ChunkCountNotOne";
43
+ readonly ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne";
44
+ readonly ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero";
45
+ readonly ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch";
46
+ readonly SymbolicLink: "ST429-9/SymbolicLink";
34
47
  };
35
48
  readonly ST2067_2: {
36
- readonly AssetMapMalformedXml: "ST2067-2/AssetMapMalformedXml";
49
+ readonly NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist";
50
+ readonly ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing";
51
+ readonly ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate";
37
52
  readonly PklMalformedXml: "ST2067-2/PklMalformedXml";
53
+ readonly NoPackingList: "ST2067-2/NoPackingList";
38
54
  readonly NoCpls: "ST2067-2/NoCpls";
39
55
  readonly SizeMismatch: "ST2067-2/SizeMismatch";
40
56
  readonly FileNotFound: "ST2067-2/FileNotFound";
@@ -43,30 +59,6 @@ export declare const codes: {
43
59
  readonly TrackFileNotInPackage: "ST2067-2/TrackFileNotInPackage";
44
60
  readonly DuplicateUuid: "ST2067-2/DuplicateUuid";
45
61
  readonly PklUnknownNamespace: "ST2067-2/PklUnknownNamespace";
46
- readonly ResourceListEmpty: "ST2067-2/ResourceListEmpty";
47
- readonly ContentTitle: "ST2067-2/ContentTitle";
48
- readonly TotalRunningTimeFormat: "ST2067-2/TotalRunningTimeFormat";
49
- readonly SegmentList: "ST2067-2/SegmentList";
50
- readonly Segment: "ST2067-2/Segment";
51
- readonly EditRate: "ST2067-2/EditRate";
52
- readonly IssueDate: "ST2067-2/IssueDate";
53
- readonly IssueDateFormat: "ST2067-2/IssueDateFormat";
54
- readonly CompositionTimecodeDropFrame: "ST2067-2/CompositionTimecodeDropFrame";
55
- readonly CompositionTimecodeRate: "ST2067-2/CompositionTimecodeRate";
56
- readonly CompositionTimecodeStartAddress: "ST2067-2/CompositionTimecodeStartAddress";
57
- readonly CompositionTimecodeRateZero: "ST2067-2/CompositionTimecodeRateZero";
58
- readonly CompositionTimecodeStartAddressFormat: "ST2067-2/CompositionTimecodeStartAddressFormat";
59
- readonly CompositionTimecodeRateMismatch: "ST2067-2/CompositionTimecodeRateMismatch";
60
- readonly LocaleListNonEmpty: "ST2067-2/LocaleListNonEmpty";
61
- readonly UniqueSegmentId: "ST2067-2/UniqueSegmentId";
62
- readonly UniqueEssenceDescriptorId: "ST2067-2/UniqueEssenceDescriptorId";
63
- readonly UniqueResourceId: "ST2067-2/UniqueResourceId";
64
- readonly IntrinsicDuration: "ST2067-2/IntrinsicDuration";
65
- readonly EntryPoint: "ST2067-2/EntryPoint";
66
- readonly ResourceDuration: "ST2067-2/ResourceDuration";
67
- readonly RepeatCount: "ST2067-2/RepeatCount";
68
- readonly TrackFileId: "ST2067-2/TrackFileId";
69
- readonly VirtualTrackContinuity: "ST2067-2/VirtualTrackContinuity";
70
62
  readonly VirtualTrackEditRate: "ST2067-2/VirtualTrackEditRate";
71
63
  readonly TimedTextSampleRate: "ST2067-2/TimedTextSampleRate";
72
64
  readonly TimedTextEmptyLanguageTag: "ST2067-2/TimedTextEmptyLanguageTag";
@@ -79,8 +71,8 @@ export declare const codes: {
79
71
  readonly MCATagSymbol: "ST2067-2/MCATagSymbol";
80
72
  readonly SoundfieldChannelCount: "ST2067-2/SoundfieldChannelCount";
81
73
  readonly DigitalSignature: "ST2067-2/DigitalSignature";
82
- readonly DanglingEssenceDescriptor: "ST2067-2/DanglingEssenceDescriptor";
83
74
  readonly EssenceDescriptorList: "ST2067-2/EssenceDescriptorList";
75
+ readonly EssenceDescriptorContainerFormatMissing: "ST2067-2/EssenceDescriptorContainerFormatMissing";
84
76
  readonly CplIdAssetMapMismatch: "ST2067-2/CplIdAssetMapMismatch";
85
77
  readonly OperationalPatternNotOP1A: "ST2067-2/OperationalPatternNotOP1A";
86
78
  readonly SoundDescriptorNotWAVEPCM: "ST2067-2/SoundDescriptorNotWAVEPCM";
@@ -98,12 +90,35 @@ export declare const codes: {
98
90
  readonly SoundfieldGroupMissingMCATitleVersion: "ST2067-2/SoundfieldGroupMissingMCATitleVersion";
99
91
  readonly SoundfieldGroupMissingMCAAudioContentKind: "ST2067-2/SoundfieldGroupMissingMCAAudioContentKind";
100
92
  readonly SoundfieldGroupMissingMCAAudioElementKind: "ST2067-2/SoundfieldGroupMissingMCAAudioElementKind";
93
+ readonly MCATagNameMissing: "ST2067-2/MCATagNameMissing";
94
+ readonly GroupOfSoundfieldGroupsMissingMCATitle: "ST2067-2/GroupOfSoundfieldGroupsMissingMCATitle";
95
+ readonly GroupOfSoundfieldGroupsMissingMCATitleVersion: "ST2067-2/GroupOfSoundfieldGroupsMissingMCATitleVersion";
96
+ readonly GroupOfSoundfieldGroupsMissingMCAAudioContentKind: "ST2067-2/GroupOfSoundfieldGroupsMissingMCAAudioContentKind";
97
+ readonly GroupOfSoundfieldGroupsMissingMCAAudioElementKind: "ST2067-2/GroupOfSoundfieldGroupsMissingMCAAudioElementKind";
98
+ readonly AudioEssenceNotHomogeneous: "ST2067-2/AudioEssenceNotHomogeneous";
99
+ readonly AudioVirtualTrackLabelsDiffer: "ST2067-2/AudioVirtualTrackLabelsDiffer";
101
100
  readonly TimedTextUCSEncodingNotUTF8: "ST2067-2/TimedTextUCSEncodingNotUTF8";
102
101
  readonly TimedTextNamespaceNotIMSC: "ST2067-2/TimedTextNamespaceNotIMSC";
103
102
  readonly TimedTextResourceMIMETypeUnsupported: "ST2067-2/TimedTextResourceMIMETypeUnsupported";
104
103
  readonly TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13";
104
+ readonly MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount";
105
+ readonly AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing";
106
+ readonly TrackFileMediaType: "ST2067-2/TrackFileMediaType";
107
+ readonly CompositionEditRateMismatch: "ST2067-2/CompositionEditRateMismatch";
108
+ readonly MainImageEditRateMismatch: "ST2067-2/MainImageEditRateMismatch";
109
+ readonly AudioEditRateMismatch: "ST2067-2/AudioEditRateMismatch";
110
+ readonly ContentVersionMissing: "ST2067-2/ContentVersionMissing";
111
+ readonly ReferenceImageEditRateMissing: "ST2067-2/ReferenceImageEditRateMissing";
112
+ readonly ReferenceImageEditRateMismatch: "ST2067-2/ReferenceImageEditRateMismatch";
113
+ readonly AssetIdPackageUidMismatch: "ST2067-2/AssetIdPackageUidMismatch";
114
+ readonly TrackFileIdPackageUidMismatch: "ST2067-2/TrackFileIdPackageUidMismatch";
115
+ readonly PackageUidForm: "ST2067-2/PackageUidForm";
116
+ readonly UuidNotVersion4: "ST2067-2/UuidNotVersion4";
117
+ readonly AssetIdNotType5: "ST2067-2/AssetIdNotType5";
105
118
  };
106
119
  readonly ST2067_3: {
120
+ readonly ContentTitleEmpty: "ST2067-3/ContentTitleEmpty";
121
+ readonly ResourceListEmpty: "ST2067-3/ResourceListEmpty";
107
122
  readonly ContentKindUnknown: "ST2067-3/ContentKindUnknown";
108
123
  readonly SourceEncodingNoEssenceDescriptorList: "ST2067-3/SourceEncodingNoEssenceDescriptorList";
109
124
  readonly SourceEncodingUnresolved: "ST2067-3/SourceEncodingUnresolved";
@@ -118,6 +133,32 @@ export declare const codes: {
118
133
  readonly SegmentDuration: "ST2067-3/SegmentDuration";
119
134
  readonly ContentVersionIdDuplicate: "ST2067-3/ContentVersionIdDuplicate";
120
135
  readonly SegmentDurationIntegerEditUnits: "ST2067-3/SegmentDurationIntegerEditUnits";
136
+ readonly UniqueSegmentId: "ST2067-3/UniqueSegmentId";
137
+ readonly UniqueEssenceDescriptorId: "ST2067-3/UniqueEssenceDescriptorId";
138
+ readonly UniqueResourceId: "ST2067-3/UniqueResourceId";
139
+ readonly EntryPoint: "ST2067-3/EntryPoint";
140
+ readonly ResourceDuration: "ST2067-3/ResourceDuration";
141
+ readonly RepeatCount: "ST2067-3/RepeatCount";
142
+ readonly TrackFileId: "ST2067-3/TrackFileId";
143
+ readonly SourceEncodingMissing: "ST2067-3/SourceEncodingMissing";
144
+ readonly VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity";
145
+ readonly VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind";
146
+ readonly ExtensionSequenceNotSequenceType: "ST2067-3/ExtensionSequenceNotSequenceType";
147
+ readonly ResourceTypeMixed: "ST2067-3/ResourceTypeMixed";
148
+ readonly MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType";
149
+ readonly DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor";
150
+ readonly CplMediaType: "ST2067-3/CplMediaType";
151
+ readonly UniqueSequenceId: "ST2067-3/UniqueSequenceId";
152
+ readonly ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate";
153
+ readonly LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid";
154
+ readonly SignerWithoutSignature: "ST2067-3/SignerWithoutSignature";
155
+ readonly SignatureWithoutSigner: "ST2067-3/SignatureWithoutSigner";
156
+ readonly HashAlgorithmMissing: "ST2067-3/HashAlgorithmMissing";
157
+ readonly HashAlgorithmWithoutHash: "ST2067-3/HashAlgorithmWithoutHash";
158
+ readonly ResourceHashMismatch: "ST2067-3/ResourceHashMismatch";
159
+ };
160
+ readonly ST2067_5: {
161
+ readonly OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier";
121
162
  };
122
163
  readonly ST2067_9: {
123
164
  readonly MalformedXml: "ST2067-9/MalformedXml";
@@ -195,6 +236,11 @@ export declare const codes: {
195
236
  readonly HtIrvParameterBMax: "ST2067-21/HtIrvParameterBMax";
196
237
  readonly HtIrvParameterBRecommended: "ST2067-21/HtIrvParameterBRecommended";
197
238
  readonly J2K8KResolution: "ST2067-21/J2K8KResolution";
239
+ readonly RefLevelMissing: "ST2067-21/RefLevelMissing";
240
+ readonly DisplayF2Offset: "ST2067-21/DisplayF2Offset";
241
+ readonly J2CLayoutValue: "ST2067-21/J2CLayoutValue";
242
+ readonly PictureEssenceCoding: "ST2067-21/PictureEssenceCoding";
243
+ readonly HtCodestreamConstraints: "ST2067-21/HtCodestreamConstraints";
198
244
  };
199
245
  readonly ST2067_201: {
200
246
  readonly CodecForbidden: "ST2067-201/CodecForbidden";
@@ -221,7 +267,11 @@ export declare const codes: {
221
267
  readonly SubDescriptorDuplicate: "ST2067-201/SubDescriptorDuplicate";
222
268
  readonly MCAChannelIDForbidden: "ST2067-201/MCAChannelIDForbidden";
223
269
  readonly EditRateNotIntegerMultiple: "ST2067-201/EditRateNotIntegerMultiple";
270
+ readonly ResourceEditRateNotSampleRate: "ST2067-201/ResourceEditRateNotSampleRate";
224
271
  readonly IabChannelSubDescriptorRecommended: "ST2067-201/IabChannelSubDescriptorRecommended";
272
+ readonly ConformsToSpecificationsMissing: "ST2067-201/ConformsToSpecificationsMissing";
273
+ readonly ConformsToSpecificationsInvalid: "ST2067-201/ConformsToSpecificationsInvalid";
274
+ readonly EssenceNotHomogeneous: "ST2067-201/EssenceNotHomogeneous";
225
275
  };
226
276
  readonly ST2067_202: {
227
277
  readonly NamespaceUriMissing: "ST2067-202/NamespaceUriMissing";
@@ -232,6 +282,36 @@ export declare const codes: {
232
282
  readonly ISXDVirtualTrackMissing: "ST2067-202/ISXDVirtualTrackMissing";
233
283
  readonly DataEssenceCodingMissing: "ST2067-202/DataEssenceCodingMissing";
234
284
  readonly DataEssenceCodingInvalid: "ST2067-202/DataEssenceCodingInvalid";
285
+ readonly EssenceContainerInvalid: "ST2067-202/EssenceContainerInvalid";
286
+ };
287
+ readonly ST2067_203: {
288
+ readonly SequenceResourceNotTrackFile: "ST2067-203/SequenceResourceNotTrackFile";
289
+ readonly VirtualTrackParameterSetMissing: "ST2067-203/VirtualTrackParameterSetMissing";
290
+ readonly VirtualTrackParameterSetDuplicate: "ST2067-203/VirtualTrackParameterSetDuplicate";
291
+ readonly VirtualTrackParameterSetIdDuplicate: "ST2067-203/VirtualTrackParameterSetIdDuplicate";
292
+ readonly VirtualTrackParameterSetOrphaned: "ST2067-203/VirtualTrackParameterSetOrphaned";
293
+ readonly VirtualTrackParameterSetInvalid: "ST2067-203/VirtualTrackParameterSetInvalid";
294
+ readonly OperationalModeUnknown: "ST2067-203/OperationalModeUnknown";
295
+ readonly OperationalModeNotRecognized: "ST2067-203/OperationalModeNotRecognized";
296
+ readonly SoundfieldGroupSelectorDuplicate: "ST2067-203/SoundfieldGroupSelectorDuplicate";
297
+ readonly SoundfieldGroupSelectorResourceIdOrphaned: "ST2067-203/SoundfieldGroupSelectorResourceIdOrphaned";
298
+ readonly SoundfieldGroupLinkIdDuplicate: "ST2067-203/SoundfieldGroupLinkIdDuplicate";
299
+ readonly EditRateNotHomogeneous: "ST2067-203/EditRateNotHomogeneous";
300
+ readonly EditRateNotMultipleOfMainImage: "ST2067-203/EditRateNotMultipleOfMainImage";
301
+ };
302
+ readonly ST2067_204: {
303
+ readonly SequenceResourceNotTrackFile: "ST2067-204/SequenceResourceNotTrackFile";
304
+ readonly VirtualTrackParameterSetMissing: "ST2067-204/VirtualTrackParameterSetMissing";
305
+ readonly VirtualTrackParameterSetDuplicate: "ST2067-204/VirtualTrackParameterSetDuplicate";
306
+ readonly VirtualTrackParameterSetIdDuplicate: "ST2067-204/VirtualTrackParameterSetIdDuplicate";
307
+ readonly VirtualTrackParameterSetOrphaned: "ST2067-204/VirtualTrackParameterSetOrphaned";
308
+ readonly VirtualTrackParameterSetInvalid: "ST2067-204/VirtualTrackParameterSetInvalid";
309
+ readonly OperationalModeUnknown: "ST2067-204/OperationalModeUnknown";
310
+ readonly OperationalModeNotRecognized: "ST2067-204/OperationalModeNotRecognized";
311
+ readonly SoundfieldGroupSelectorDuplicate: "ST2067-204/SoundfieldGroupSelectorDuplicate";
312
+ readonly SoundfieldGroupSelectorResourceIdOrphaned: "ST2067-204/SoundfieldGroupSelectorResourceIdOrphaned";
313
+ readonly SoundfieldGroupLinkIdDuplicate: "ST2067-204/SoundfieldGroupLinkIdDuplicate";
314
+ readonly EditRateNotHomogeneous: "ST2067-204/EditRateNotHomogeneous";
235
315
  };
236
316
  readonly XSD: {
237
317
  readonly ElementMissing: "XSD/ElementMissing";
@@ -243,11 +323,19 @@ export declare const codes: {
243
323
  readonly NotValidated: "XSD/NotValidated";
244
324
  };
245
325
  readonly IMFERNO: {
326
+ readonly ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated";
327
+ readonly SequenceListUnreadable: "IMFERNO/SequenceListUnreadable";
328
+ readonly TrackFileIdentityNotValidated: "IMFERNO/TrackFileIdentityNotValidated";
246
329
  readonly EditionAssumed: "IMFERNO/EditionAssumed";
330
+ readonly EditionConflict: "IMFERNO/EditionConflict";
331
+ readonly EditionPinned: "IMFERNO/EditionPinned";
332
+ readonly PinNotApplied: "IMFERNO/PinNotApplied";
247
333
  readonly DeliveryNotChecked: "IMFERNO/DeliveryNotChecked";
334
+ readonly DiskChecksNotRun: "IMFERNO/DiskChecksNotRun";
248
335
  readonly OpenFailed: "IMFERNO/OpenFailed";
249
336
  readonly PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed";
250
337
  readonly RegXmlConversionFailed: "IMFERNO/RegXmlConversionFailed";
338
+ readonly MxfHeaderUnreadable: "IMFERNO/MxfHeaderUnreadable";
251
339
  readonly EssenceContainersDetected: "IMFERNO/EssenceContainersDetected";
252
340
  readonly IoError: "IMFERNO/IoError";
253
341
  readonly UnreferencedAsset: "IMFERNO/UnreferencedAsset";
@@ -255,6 +343,7 @@ export declare const codes: {
255
343
  readonly ParseError: "IMFERNO/ParseError";
256
344
  readonly PklParseError: "IMFERNO/PklParseError";
257
345
  readonly XmlAssetParseError: "IMFERNO/XmlAssetParseError";
346
+ readonly CplUnparseable: "IMFERNO/CplUnparseable";
258
347
  readonly XmlReadError: "IMFERNO/XmlReadError";
259
348
  readonly ReadDirError: "IMFERNO/ReadDirError";
260
349
  readonly DirEntryError: "IMFERNO/DirEntryError";
package/codes.js CHANGED
@@ -3,21 +3,26 @@
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",
13
14
  },
14
15
  ST377_4: {
15
16
  MCALinkIDMissing: "ST377-4/MCALinkIDMissing",
16
17
  SoundfieldGroupLinkIDMismatch: "ST377-4/SoundfieldGroupLinkIDMismatch",
18
+ MCALinkIDNotUnique: "ST377-4/MCALinkIDNotUnique",
19
+ MCATagSymbolSyntax: "ST377-4/MCATagSymbolSyntax",
20
+ SoundfieldGroupUnreferenced: "ST377-4/SoundfieldGroupUnreferenced",
17
21
  },
18
22
  ST429_8: {
19
23
  SizeMismatch: "ST429-8/SizeMismatch",
20
24
  ChecksumMismatch: "ST429-8/ChecksumMismatch",
25
+ MalformedXml: "ST429-8/MalformedXml",
21
26
  },
22
27
  ST429_9: {
23
28
  AssetListEmpty: "ST429-9/AssetListEmpty",
@@ -31,10 +36,21 @@ const codes = {
31
36
  AssetMapFileName: "ST429-9/AssetMapFileName",
32
37
  AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList",
33
38
  PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap",
39
+ AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml",
40
+ PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl",
41
+ VolumeCountNotOne: "ST429-9/VolumeCountNotOne",
42
+ ChunkCountNotOne: "ST429-9/ChunkCountNotOne",
43
+ ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne",
44
+ ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero",
45
+ ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch",
46
+ SymbolicLink: "ST429-9/SymbolicLink",
34
47
  },
35
48
  ST2067_2: {
36
- AssetMapMalformedXml: "ST2067-2/AssetMapMalformedXml",
49
+ NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist",
50
+ ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing",
51
+ ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate",
37
52
  PklMalformedXml: "ST2067-2/PklMalformedXml",
53
+ NoPackingList: "ST2067-2/NoPackingList",
38
54
  NoCpls: "ST2067-2/NoCpls",
39
55
  SizeMismatch: "ST2067-2/SizeMismatch",
40
56
  FileNotFound: "ST2067-2/FileNotFound",
@@ -43,30 +59,6 @@ const codes = {
43
59
  TrackFileNotInPackage: "ST2067-2/TrackFileNotInPackage",
44
60
  DuplicateUuid: "ST2067-2/DuplicateUuid",
45
61
  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
62
  VirtualTrackEditRate: "ST2067-2/VirtualTrackEditRate",
71
63
  TimedTextSampleRate: "ST2067-2/TimedTextSampleRate",
72
64
  TimedTextEmptyLanguageTag: "ST2067-2/TimedTextEmptyLanguageTag",
@@ -79,8 +71,8 @@ const codes = {
79
71
  MCATagSymbol: "ST2067-2/MCATagSymbol",
80
72
  SoundfieldChannelCount: "ST2067-2/SoundfieldChannelCount",
81
73
  DigitalSignature: "ST2067-2/DigitalSignature",
82
- DanglingEssenceDescriptor: "ST2067-2/DanglingEssenceDescriptor",
83
74
  EssenceDescriptorList: "ST2067-2/EssenceDescriptorList",
75
+ EssenceDescriptorContainerFormatMissing: "ST2067-2/EssenceDescriptorContainerFormatMissing",
84
76
  CplIdAssetMapMismatch: "ST2067-2/CplIdAssetMapMismatch",
85
77
  OperationalPatternNotOP1A: "ST2067-2/OperationalPatternNotOP1A",
86
78
  SoundDescriptorNotWAVEPCM: "ST2067-2/SoundDescriptorNotWAVEPCM",
@@ -98,12 +90,35 @@ const codes = {
98
90
  SoundfieldGroupMissingMCATitleVersion: "ST2067-2/SoundfieldGroupMissingMCATitleVersion",
99
91
  SoundfieldGroupMissingMCAAudioContentKind: "ST2067-2/SoundfieldGroupMissingMCAAudioContentKind",
100
92
  SoundfieldGroupMissingMCAAudioElementKind: "ST2067-2/SoundfieldGroupMissingMCAAudioElementKind",
93
+ MCATagNameMissing: "ST2067-2/MCATagNameMissing",
94
+ GroupOfSoundfieldGroupsMissingMCATitle: "ST2067-2/GroupOfSoundfieldGroupsMissingMCATitle",
95
+ GroupOfSoundfieldGroupsMissingMCATitleVersion: "ST2067-2/GroupOfSoundfieldGroupsMissingMCATitleVersion",
96
+ GroupOfSoundfieldGroupsMissingMCAAudioContentKind: "ST2067-2/GroupOfSoundfieldGroupsMissingMCAAudioContentKind",
97
+ GroupOfSoundfieldGroupsMissingMCAAudioElementKind: "ST2067-2/GroupOfSoundfieldGroupsMissingMCAAudioElementKind",
98
+ AudioEssenceNotHomogeneous: "ST2067-2/AudioEssenceNotHomogeneous",
99
+ AudioVirtualTrackLabelsDiffer: "ST2067-2/AudioVirtualTrackLabelsDiffer",
101
100
  TimedTextUCSEncodingNotUTF8: "ST2067-2/TimedTextUCSEncodingNotUTF8",
102
101
  TimedTextNamespaceNotIMSC: "ST2067-2/TimedTextNamespaceNotIMSC",
103
102
  TimedTextResourceMIMETypeUnsupported: "ST2067-2/TimedTextResourceMIMETypeUnsupported",
104
103
  TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13",
104
+ MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount",
105
+ AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing",
106
+ TrackFileMediaType: "ST2067-2/TrackFileMediaType",
107
+ CompositionEditRateMismatch: "ST2067-2/CompositionEditRateMismatch",
108
+ MainImageEditRateMismatch: "ST2067-2/MainImageEditRateMismatch",
109
+ AudioEditRateMismatch: "ST2067-2/AudioEditRateMismatch",
110
+ ContentVersionMissing: "ST2067-2/ContentVersionMissing",
111
+ ReferenceImageEditRateMissing: "ST2067-2/ReferenceImageEditRateMissing",
112
+ ReferenceImageEditRateMismatch: "ST2067-2/ReferenceImageEditRateMismatch",
113
+ AssetIdPackageUidMismatch: "ST2067-2/AssetIdPackageUidMismatch",
114
+ TrackFileIdPackageUidMismatch: "ST2067-2/TrackFileIdPackageUidMismatch",
115
+ PackageUidForm: "ST2067-2/PackageUidForm",
116
+ UuidNotVersion4: "ST2067-2/UuidNotVersion4",
117
+ AssetIdNotType5: "ST2067-2/AssetIdNotType5",
105
118
  },
106
119
  ST2067_3: {
120
+ ContentTitleEmpty: "ST2067-3/ContentTitleEmpty",
121
+ ResourceListEmpty: "ST2067-3/ResourceListEmpty",
107
122
  ContentKindUnknown: "ST2067-3/ContentKindUnknown",
108
123
  SourceEncodingNoEssenceDescriptorList: "ST2067-3/SourceEncodingNoEssenceDescriptorList",
109
124
  SourceEncodingUnresolved: "ST2067-3/SourceEncodingUnresolved",
@@ -118,6 +133,32 @@ const codes = {
118
133
  SegmentDuration: "ST2067-3/SegmentDuration",
119
134
  ContentVersionIdDuplicate: "ST2067-3/ContentVersionIdDuplicate",
120
135
  SegmentDurationIntegerEditUnits: "ST2067-3/SegmentDurationIntegerEditUnits",
136
+ UniqueSegmentId: "ST2067-3/UniqueSegmentId",
137
+ UniqueEssenceDescriptorId: "ST2067-3/UniqueEssenceDescriptorId",
138
+ UniqueResourceId: "ST2067-3/UniqueResourceId",
139
+ EntryPoint: "ST2067-3/EntryPoint",
140
+ ResourceDuration: "ST2067-3/ResourceDuration",
141
+ RepeatCount: "ST2067-3/RepeatCount",
142
+ TrackFileId: "ST2067-3/TrackFileId",
143
+ SourceEncodingMissing: "ST2067-3/SourceEncodingMissing",
144
+ VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity",
145
+ VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind",
146
+ ExtensionSequenceNotSequenceType: "ST2067-3/ExtensionSequenceNotSequenceType",
147
+ ResourceTypeMixed: "ST2067-3/ResourceTypeMixed",
148
+ MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType",
149
+ DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
150
+ CplMediaType: "ST2067-3/CplMediaType",
151
+ UniqueSequenceId: "ST2067-3/UniqueSequenceId",
152
+ ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate",
153
+ LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid",
154
+ SignerWithoutSignature: "ST2067-3/SignerWithoutSignature",
155
+ SignatureWithoutSigner: "ST2067-3/SignatureWithoutSigner",
156
+ HashAlgorithmMissing: "ST2067-3/HashAlgorithmMissing",
157
+ HashAlgorithmWithoutHash: "ST2067-3/HashAlgorithmWithoutHash",
158
+ ResourceHashMismatch: "ST2067-3/ResourceHashMismatch",
159
+ },
160
+ ST2067_5: {
161
+ OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier",
121
162
  },
122
163
  ST2067_9: {
123
164
  MalformedXml: "ST2067-9/MalformedXml",
@@ -195,6 +236,11 @@ const codes = {
195
236
  HtIrvParameterBMax: "ST2067-21/HtIrvParameterBMax",
196
237
  HtIrvParameterBRecommended: "ST2067-21/HtIrvParameterBRecommended",
197
238
  J2K8KResolution: "ST2067-21/J2K8KResolution",
239
+ RefLevelMissing: "ST2067-21/RefLevelMissing",
240
+ DisplayF2Offset: "ST2067-21/DisplayF2Offset",
241
+ J2CLayoutValue: "ST2067-21/J2CLayoutValue",
242
+ PictureEssenceCoding: "ST2067-21/PictureEssenceCoding",
243
+ HtCodestreamConstraints: "ST2067-21/HtCodestreamConstraints",
198
244
  },
199
245
  ST2067_201: {
200
246
  CodecForbidden: "ST2067-201/CodecForbidden",
@@ -221,7 +267,11 @@ const codes = {
221
267
  SubDescriptorDuplicate: "ST2067-201/SubDescriptorDuplicate",
222
268
  MCAChannelIDForbidden: "ST2067-201/MCAChannelIDForbidden",
223
269
  EditRateNotIntegerMultiple: "ST2067-201/EditRateNotIntegerMultiple",
270
+ ResourceEditRateNotSampleRate: "ST2067-201/ResourceEditRateNotSampleRate",
224
271
  IabChannelSubDescriptorRecommended: "ST2067-201/IabChannelSubDescriptorRecommended",
272
+ ConformsToSpecificationsMissing: "ST2067-201/ConformsToSpecificationsMissing",
273
+ ConformsToSpecificationsInvalid: "ST2067-201/ConformsToSpecificationsInvalid",
274
+ EssenceNotHomogeneous: "ST2067-201/EssenceNotHomogeneous",
225
275
  },
226
276
  ST2067_202: {
227
277
  NamespaceUriMissing: "ST2067-202/NamespaceUriMissing",
@@ -232,6 +282,36 @@ const codes = {
232
282
  ISXDVirtualTrackMissing: "ST2067-202/ISXDVirtualTrackMissing",
233
283
  DataEssenceCodingMissing: "ST2067-202/DataEssenceCodingMissing",
234
284
  DataEssenceCodingInvalid: "ST2067-202/DataEssenceCodingInvalid",
285
+ EssenceContainerInvalid: "ST2067-202/EssenceContainerInvalid",
286
+ },
287
+ ST2067_203: {
288
+ SequenceResourceNotTrackFile: "ST2067-203/SequenceResourceNotTrackFile",
289
+ VirtualTrackParameterSetMissing: "ST2067-203/VirtualTrackParameterSetMissing",
290
+ VirtualTrackParameterSetDuplicate: "ST2067-203/VirtualTrackParameterSetDuplicate",
291
+ VirtualTrackParameterSetIdDuplicate: "ST2067-203/VirtualTrackParameterSetIdDuplicate",
292
+ VirtualTrackParameterSetOrphaned: "ST2067-203/VirtualTrackParameterSetOrphaned",
293
+ VirtualTrackParameterSetInvalid: "ST2067-203/VirtualTrackParameterSetInvalid",
294
+ OperationalModeUnknown: "ST2067-203/OperationalModeUnknown",
295
+ OperationalModeNotRecognized: "ST2067-203/OperationalModeNotRecognized",
296
+ SoundfieldGroupSelectorDuplicate: "ST2067-203/SoundfieldGroupSelectorDuplicate",
297
+ SoundfieldGroupSelectorResourceIdOrphaned: "ST2067-203/SoundfieldGroupSelectorResourceIdOrphaned",
298
+ SoundfieldGroupLinkIdDuplicate: "ST2067-203/SoundfieldGroupLinkIdDuplicate",
299
+ EditRateNotHomogeneous: "ST2067-203/EditRateNotHomogeneous",
300
+ EditRateNotMultipleOfMainImage: "ST2067-203/EditRateNotMultipleOfMainImage",
301
+ },
302
+ ST2067_204: {
303
+ SequenceResourceNotTrackFile: "ST2067-204/SequenceResourceNotTrackFile",
304
+ VirtualTrackParameterSetMissing: "ST2067-204/VirtualTrackParameterSetMissing",
305
+ VirtualTrackParameterSetDuplicate: "ST2067-204/VirtualTrackParameterSetDuplicate",
306
+ VirtualTrackParameterSetIdDuplicate: "ST2067-204/VirtualTrackParameterSetIdDuplicate",
307
+ VirtualTrackParameterSetOrphaned: "ST2067-204/VirtualTrackParameterSetOrphaned",
308
+ VirtualTrackParameterSetInvalid: "ST2067-204/VirtualTrackParameterSetInvalid",
309
+ OperationalModeUnknown: "ST2067-204/OperationalModeUnknown",
310
+ OperationalModeNotRecognized: "ST2067-204/OperationalModeNotRecognized",
311
+ SoundfieldGroupSelectorDuplicate: "ST2067-204/SoundfieldGroupSelectorDuplicate",
312
+ SoundfieldGroupSelectorResourceIdOrphaned: "ST2067-204/SoundfieldGroupSelectorResourceIdOrphaned",
313
+ SoundfieldGroupLinkIdDuplicate: "ST2067-204/SoundfieldGroupLinkIdDuplicate",
314
+ EditRateNotHomogeneous: "ST2067-204/EditRateNotHomogeneous",
235
315
  },
236
316
  XSD: {
237
317
  ElementMissing: "XSD/ElementMissing",
@@ -243,11 +323,19 @@ const codes = {
243
323
  NotValidated: "XSD/NotValidated",
244
324
  },
245
325
  IMFERNO: {
326
+ ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated",
327
+ SequenceListUnreadable: "IMFERNO/SequenceListUnreadable",
328
+ TrackFileIdentityNotValidated: "IMFERNO/TrackFileIdentityNotValidated",
246
329
  EditionAssumed: "IMFERNO/EditionAssumed",
330
+ EditionConflict: "IMFERNO/EditionConflict",
331
+ EditionPinned: "IMFERNO/EditionPinned",
332
+ PinNotApplied: "IMFERNO/PinNotApplied",
247
333
  DeliveryNotChecked: "IMFERNO/DeliveryNotChecked",
334
+ DiskChecksNotRun: "IMFERNO/DiskChecksNotRun",
248
335
  OpenFailed: "IMFERNO/OpenFailed",
249
336
  PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed",
250
337
  RegXmlConversionFailed: "IMFERNO/RegXmlConversionFailed",
338
+ MxfHeaderUnreadable: "IMFERNO/MxfHeaderUnreadable",
251
339
  EssenceContainersDetected: "IMFERNO/EssenceContainersDetected",
252
340
  IoError: "IMFERNO/IoError",
253
341
  UnreferencedAsset: "IMFERNO/UnreferencedAsset",
@@ -255,6 +343,7 @@ const codes = {
255
343
  ParseError: "IMFERNO/ParseError",
256
344
  PklParseError: "IMFERNO/PklParseError",
257
345
  XmlAssetParseError: "IMFERNO/XmlAssetParseError",
346
+ CplUnparseable: "IMFERNO/CplUnparseable",
258
347
  XmlReadError: "IMFERNO/XmlReadError",
259
348
  ReadDirError: "IMFERNO/ReadDirError",
260
349
  DirEntryError: "IMFERNO/DirEntryError",
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
- /** Skip file-manifest (size/presence) and MXF header checks. Default: `false`. */
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
- /** Options for `validateUri` / `buildReportFromUri`. */
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.b86ffac",
3
+ "version": "3.0.2-beta.cdb240a",
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.b86ffac",
49
- "@imferno/node-darwin-x64": "3.0.2-beta.b86ffac",
50
- "@imferno/node-linux-x64-gnu": "3.0.2-beta.b86ffac",
51
- "@imferno/node-linux-arm64-gnu": "3.0.2-beta.b86ffac",
52
- "@imferno/node-win32-x64-msvc": "3.0.2-beta.b86ffac",
53
- "@imferno/node-win32-arm64-msvc": "3.0.2-beta.b86ffac"
48
+ "@imferno/node-darwin-arm64": "3.0.2-beta.cdb240a",
49
+ "@imferno/node-darwin-x64": "3.0.2-beta.cdb240a",
50
+ "@imferno/node-linux-x64-gnu": "3.0.2-beta.cdb240a",
51
+ "@imferno/node-linux-arm64-gnu": "3.0.2-beta.cdb240a",
52
+ "@imferno/node-win32-x64-msvc": "3.0.2-beta.cdb240a",
53
+ "@imferno/node-win32-arm64-msvc": "3.0.2-beta.cdb240a"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
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,13 @@ export type Spec =
52
64
  | "ST429-9"
53
65
  | "ST2067-2"
54
66
  | "ST2067-3"
67
+ | "ST2067-5"
55
68
  | "ST2067-9"
56
69
  | "ST2067-21"
57
70
  | "ST2067-201"
58
71
  | "ST2067-202"
72
+ | "ST2067-203"
73
+ | "ST2067-204"
59
74
  | "XSD"
60
75
  | "IMFERNO";
61
76
  /**
@@ -119,6 +134,7 @@ export type VideoCodec =
119
134
  | "Jpeg2000Imf8k"
120
135
  | "Jpeg2000Broadcast"
121
136
  | "Jpeg2000Ht"
137
+ | "Jpeg2000HtNode"
122
138
  | "Vc5"
123
139
  | "Mpeg2"
124
140
  | "H264"
@@ -205,18 +221,6 @@ export type MimeType =
205
221
  * Mirrors ESLint's `"off"` / `"warn"` / `"error"` vocabulary, extended with the two IMF severity levels.
206
222
  */
207
223
  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
224
 
221
225
  /**
222
226
  * @deprecated
@@ -227,6 +231,10 @@ export type RuleValidationReason =
227
231
  export interface ImfReport {
228
232
  cpls: CplReport[];
229
233
  package: PackageSummary;
234
+ /**
235
+ * Keys of the `rules` option that select no rule (typos, unknown editions); they were ignored. Absent when every key matched.
236
+ */
237
+ ruleWarnings?: RuleValidationWarning[];
230
238
  validation: ValidationReport;
231
239
  }
232
240
  export interface CplReport {
@@ -317,6 +325,18 @@ export interface UnreferencedAsset {
317
325
  id: string;
318
326
  path: string;
319
327
  }
328
+ /**
329
+ * A diagnostic about a `RulesConfig` key that the engine couldn't match.
330
+ *
331
+ * Produced by `RulesConfig::validate`. Operators can use these at config-load time to catch typos before any validation work runs.
332
+ */
333
+ export interface RuleValidationWarning {
334
+ /**
335
+ * The configured key that triggered the warning.
336
+ */
337
+ key: string;
338
+ reason: RuleValidationReason;
339
+ }
320
340
  /**
321
341
  * Comprehensive validation report
322
342
  */
@@ -337,6 +357,10 @@ export interface ValidationReport {
337
357
  * Whether the package is compliant with base SMPTE standards
338
358
  */
339
359
  is_compliant: boolean;
360
+ /**
361
+ * 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.
362
+ */
363
+ is_fully_validated: boolean;
340
364
  /**
341
365
  * Whether the package is playable despite issues
342
366
  */
@@ -373,7 +397,7 @@ export interface ValidationIssue {
373
397
  */
374
398
  clause: string;
375
399
  /**
376
- * Display code: `SPEC:EDITION:CLAUSE/Name`, with the edition actually applied (e.g. `ST2067-3:2016:7.2.2/SegmentDuration`).
400
+ * Display code: `SPEC:EDITION:CLAUSE/Name`, with the edition actually applied (e.g. `ST2067-3:2016:7.2/SegmentDuration`).
377
401
  */
378
402
  code: string;
379
403
  /**
@@ -382,13 +406,17 @@ export interface ValidationIssue {
382
406
  context: {
383
407
  [k: string]: string | undefined;
384
408
  };
409
+ /**
410
+ * 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.
411
+ */
412
+ detail?: string | null;
385
413
  /**
386
414
  * Edition of the spec that was applied (`"2016"`; empty for single-edition pseudo-specs).
387
415
  */
388
416
  edition: string;
389
417
  location: Location;
390
418
  /**
391
- * Human-readable message
419
+ * What is wrong, in one short plain sentence for a person to read.
392
420
  */
393
421
  message: string;
394
422
  /**
@@ -400,7 +428,7 @@ export interface ValidationIssue {
400
428
  spec: Spec;
401
429
  strength: Strength;
402
430
  /**
403
- * Suggestion for how to fix
431
+ * What to do about it.
404
432
  */
405
433
  suggestion?: string | null;
406
434
  }
@@ -538,10 +566,21 @@ export interface ChunkList {
538
566
  * A single file path entry in a ChunkList.
539
567
  */
540
568
  export interface Chunk {
569
+ /**
570
+ * `<Length>` in bytes, when present.
571
+ */
572
+ length?: number | null;
573
+ /**
574
+ * `<Offset>` in bytes, when present.
575
+ */
576
+ offset?: number | null;
541
577
  /**
542
578
  * File path relative to the IMP root directory.
543
579
  */
544
580
  path: string;
581
+ /**
582
+ * `<VolumeIndex>`; 1 when absent.
583
+ */
545
584
  volumeIndex: number;
546
585
  }
547
586
  /**
@@ -887,9 +926,9 @@ export interface IABEssenceDescriptor {
887
926
  */
888
927
  ContainerFormat?: string | null;
889
928
  /**
890
- * ST 2067-201 §5.9: ElectrospatialFormulation shall NOT be present.
929
+ * 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
930
  */
892
- ElectrospatialFormulation?: number | null;
931
+ ElectrospatialFormulation?: string | null;
893
932
  InstanceID?: string | null;
894
933
  LinkedTrackID?: number | null;
895
934
  /**
@@ -913,7 +952,7 @@ export interface IABSubDescriptors {
913
952
  /**
914
953
  * Presence-only stub for ST 2067-201:2026 Annex E `IABChannelSubDescriptor`.
915
954
  *
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` warning, so the inner shape is intentionally permissive — any nested content deserialises into the catch-all map without affecting presence.
955
+ * 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
956
  */
918
957
  export interface IABChannelSubDescriptor {
919
958
  /**
@@ -942,6 +981,10 @@ export interface IABSoundfieldLabelSubDescriptor {
942
981
  * ISXD (Immersive Sound XML Data) essence descriptor — Dolby Atmos sidecar format
943
982
  */
944
983
  export interface ISXDDataEssenceDescriptor {
984
+ /**
985
+ * ST 2067-202 §9.1: the Essence Container UL shall be the Frame Wrapped ISXD Container UL (Table 3).
986
+ */
987
+ ContainerFormat?: string | null;
945
988
  DataEssenceCoding?: string | null;
946
989
  InstanceID?: string | null;
947
990
  LinkedTrackID?: number | null;
@@ -1067,6 +1110,10 @@ export interface WAVEPCMDescriptor {
1067
1110
  InstanceID?: string | null;
1068
1111
  LinkedTrackID?: number | null;
1069
1112
  QuantizationBits?: number | null;
1113
+ /**
1114
+ * 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).
1115
+ */
1116
+ ReferenceImageEditRate?: EditRate | null;
1070
1117
  SampleRate?: EditRate | null;
1071
1118
  SubDescriptors?: AudioSubDescriptors | null;
1072
1119
  }
@@ -1088,6 +1135,9 @@ export interface SoundfieldGroupLabelSubDescriptor {
1088
1135
  */
1089
1136
  RFC5646SpokenLanguage?: LanguageTag | null;
1090
1137
  }
1138
+ /**
1139
+ * The CPL's `ExtensionProperties`: ApplicationIdentification (the Application IDs of every ST 2067-2 instance, space-separated), MaxCLL and MaxFALL.
1140
+ */
1091
1141
  export interface ExtensionProperties {
1092
1142
  ApplicationIdentification?: string | null;
1093
1143
  MaxCLL?: number | null;
@@ -1136,6 +1186,10 @@ export interface Segment {
1136
1186
  SequenceList: SequenceList;
1137
1187
  }
1138
1188
  export interface SequenceList {
1189
+ /**
1190
+ * 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.
1191
+ */
1192
+ ExtensionSequence?: ExtensionSequence[];
1139
1193
  ForcedNarrativeSequence?: ForcedNarrativeSequence[];
1140
1194
  HearingImpairedCaptionsSequence?: HearingImpairedCaptionsSequence[];
1141
1195
  IABSequence?: IABSequence[];
@@ -1145,8 +1199,13 @@ export interface SequenceList {
1145
1199
  MarkerSequence?: MarkerSequence[];
1146
1200
  SubtitlesSequence?: SubtitlesSequence[];
1147
1201
  }
1148
- export interface ForcedNarrativeSequence {
1202
+ /**
1203
+ * 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).
1204
+ */
1205
+ export interface ExtensionSequence {
1149
1206
  Id: ImfUuid;
1207
+ Name?: string;
1208
+ Namespace?: string | null;
1150
1209
  ResourceList: ResourceList;
1151
1210
  TrackId: ImfUuid;
1152
1211
  }
@@ -1161,17 +1220,40 @@ export interface Resource {
1161
1220
  Id: ImfUuid;
1162
1221
  IntrinsicDuration: number;
1163
1222
  KeyId?: ImfUuid | null;
1223
+ /**
1224
+ * `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.
1225
+ */
1226
+ LeftEye?: StereoEye | null;
1164
1227
  Marker?: MarkerInfo[];
1165
1228
  RepeatCount?: number | null;
1229
+ /**
1230
+ * `RightEye` of a `cc:StereoImageTrackFileResourceType` resource.
1231
+ */
1232
+ RightEye?: StereoEye | null;
1166
1233
  SourceDuration?: number | null;
1167
1234
  SourceEncoding?: ImfUuid | null;
1168
1235
  TrackFileId?: ImfUuid | null;
1169
1236
  }
1237
+ /**
1238
+ * 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.
1239
+ */
1240
+ export interface StereoEye {
1241
+ Hash?: string | null;
1242
+ Id?: ImfUuid | null;
1243
+ KeyId?: ImfUuid | null;
1244
+ SourceEncoding?: ImfUuid | null;
1245
+ TrackFileId?: ImfUuid | null;
1246
+ }
1170
1247
  export interface MarkerInfo {
1171
1248
  Annotation?: string | null;
1172
1249
  Label: MarkerLabelElement;
1173
1250
  Offset: number;
1174
1251
  }
1252
+ export interface ForcedNarrativeSequence {
1253
+ Id: ImfUuid;
1254
+ ResourceList: ResourceList;
1255
+ TrackId: ImfUuid;
1256
+ }
1175
1257
  export interface HearingImpairedCaptionsSequence {
1176
1258
  Id: ImfUuid;
1177
1259
  ResourceList: ResourceList;
@@ -1443,22 +1525,30 @@ export interface ValidationResult {
1443
1525
  rule_warnings?: RuleValidationWarning[];
1444
1526
  validation: ValidationReport;
1445
1527
  }
1528
+
1446
1529
  /**
1447
- * A diagnostic about a `RulesConfig` key that the engine couldn't match.
1448
- *
1449
- * Produced by `RulesConfig::validate`. Operators can use these at config-load time to catch typos before any validation work runs.
1530
+ * Core constraints (ST 2067-2) edition to validate against. `"auto"` detects
1531
+ * it from the package and CPLs. A pinned edition also pins the editions it
1532
+ * cites (ST 2067-3, ST 2067-201 for IAB, ST 377-1/377-4 for MXF), over the
1533
+ * documents' namespaces, unless `cplSpec` / `iabSpec` pin those separately.
1450
1534
  */
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
1535
  export type CoreSpec = "auto" | "v2013" | "v2016" | "v2020";
1461
1536
 
1537
+ /**
1538
+ * Composition Playlist (ST 2067-3) edition to validate against; wins over the
1539
+ * edition `coreSpec` implies. ST 2067-3:2016 and :2020 share one namespace;
1540
+ * `"auto"` applies the newest unless the CPL uses something only one edition
1541
+ * defines, and reports the choice.
1542
+ */
1543
+ export type CplSpec = "auto" | "v2013" | "v2016" | "v2020";
1544
+
1545
+ /**
1546
+ * IAB plug-in (ST 2067-201) edition to validate against; wins over the edition
1547
+ * `coreSpec` implies. Every edition shares one namespace; `"auto"` applies
1548
+ * the newest and reports the choice.
1549
+ */
1550
+ export type IabSpec = "auto" | "v2019" | "v2021" | "v2026";
1551
+
1462
1552
  /**
1463
1553
  * App #2E (ST 2067-21) edition to validate against. `"auto"` uses the CPL's
1464
1554
  * ApplicationIdentification; `"none"` skips application-profile validation.
@@ -1469,6 +1559,10 @@ export type App2eSpec = "auto" | "none" | "v2014" | "v2016" | "v2020" | "v2023"
1469
1559
  export interface ValidateOptions {
1470
1560
  /** Core constraints edition. Default: `"auto"`. */
1471
1561
  coreSpec?: CoreSpec;
1562
+ /** Composition Playlist (ST 2067-3) edition. Default: `"auto"`. */
1563
+ cplSpec?: CplSpec;
1564
+ /** IAB plug-in (ST 2067-201) edition. Default: `"auto"`. */
1565
+ iabSpec?: IabSpec;
1472
1566
  /** App #2E edition. Default: `"auto"`. */
1473
1567
  app2eSpec?: App2eSpec;
1474
1568
  /** ESLint-style per-rule severity overrides, keyed by code, rule suffix, glob or `source:<kind>`. */