@imferno/node 3.0.2-fix-review-package-loading.ad171d6 → 3.0.2-fix-review-extension-sequences.b9aa7d1

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/codes.d.ts CHANGED
@@ -19,7 +19,6 @@ export declare const codes: {
19
19
  readonly ST429_8: {
20
20
  readonly SizeMismatch: "ST429-8/SizeMismatch";
21
21
  readonly ChecksumMismatch: "ST429-8/ChecksumMismatch";
22
- readonly MalformedXml: "ST429-8/MalformedXml";
23
22
  };
24
23
  readonly ST429_9: {
25
24
  readonly AssetListEmpty: "ST429-9/AssetListEmpty";
@@ -34,13 +33,6 @@ export declare const codes: {
34
33
  readonly AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList";
35
34
  readonly PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap";
36
35
  readonly AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml";
37
- readonly PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl";
38
- readonly VolumeCountNotOne: "ST429-9/VolumeCountNotOne";
39
- readonly ChunkCountNotOne: "ST429-9/ChunkCountNotOne";
40
- readonly ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne";
41
- readonly ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero";
42
- readonly ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch";
43
- readonly SymbolicLink: "ST429-9/SymbolicLink";
44
36
  };
45
37
  readonly ST2067_2: {
46
38
  readonly NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist";
@@ -96,7 +88,6 @@ export declare const codes: {
96
88
  readonly TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13";
97
89
  readonly MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount";
98
90
  readonly AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing";
99
- readonly TrackFileMediaType: "ST2067-2/TrackFileMediaType";
100
91
  };
101
92
  readonly ST2067_3: {
102
93
  readonly ContentTitleEmpty: "ST2067-3/ContentTitleEmpty";
@@ -124,8 +115,10 @@ export declare const codes: {
124
115
  readonly TrackFileId: "ST2067-3/TrackFileId";
125
116
  readonly SourceEncodingMissing: "ST2067-3/SourceEncodingMissing";
126
117
  readonly VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity";
118
+ readonly VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind";
119
+ readonly ResourceTypeMixed: "ST2067-3/ResourceTypeMixed";
120
+ readonly MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType";
127
121
  readonly DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor";
128
- readonly CplMediaType: "ST2067-3/CplMediaType";
129
122
  };
130
123
  readonly ST2067_5: {
131
124
  readonly OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier";
@@ -259,6 +252,7 @@ export declare const codes: {
259
252
  readonly NotValidated: "XSD/NotValidated";
260
253
  };
261
254
  readonly IMFERNO: {
255
+ readonly ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated";
262
256
  readonly EditionAssumed: "IMFERNO/EditionAssumed";
263
257
  readonly EditionConflict: "IMFERNO/EditionConflict";
264
258
  readonly EditionPinned: "IMFERNO/EditionPinned";
package/codes.js CHANGED
@@ -19,7 +19,6 @@ const codes = {
19
19
  ST429_8: {
20
20
  SizeMismatch: "ST429-8/SizeMismatch",
21
21
  ChecksumMismatch: "ST429-8/ChecksumMismatch",
22
- MalformedXml: "ST429-8/MalformedXml",
23
22
  },
24
23
  ST429_9: {
25
24
  AssetListEmpty: "ST429-9/AssetListEmpty",
@@ -34,13 +33,6 @@ const codes = {
34
33
  AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList",
35
34
  PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap",
36
35
  AssetMapMalformedXml: "ST429-9/AssetMapMalformedXml",
37
- PackingListFlagNotPkl: "ST429-9/PackingListFlagNotPkl",
38
- VolumeCountNotOne: "ST429-9/VolumeCountNotOne",
39
- ChunkCountNotOne: "ST429-9/ChunkCountNotOne",
40
- ChunkVolumeIndexNotOne: "ST429-9/ChunkVolumeIndexNotOne",
41
- ChunkOffsetNotZero: "ST429-9/ChunkOffsetNotZero",
42
- ChunkLengthMismatch: "ST429-9/ChunkLengthMismatch",
43
- SymbolicLink: "ST429-9/SymbolicLink",
44
36
  },
45
37
  ST2067_2: {
46
38
  NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist",
@@ -96,7 +88,6 @@ const codes = {
96
88
  TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13",
97
89
  MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount",
98
90
  AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing",
99
- TrackFileMediaType: "ST2067-2/TrackFileMediaType",
100
91
  },
101
92
  ST2067_3: {
102
93
  ContentTitleEmpty: "ST2067-3/ContentTitleEmpty",
@@ -124,8 +115,10 @@ const codes = {
124
115
  TrackFileId: "ST2067-3/TrackFileId",
125
116
  SourceEncodingMissing: "ST2067-3/SourceEncodingMissing",
126
117
  VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity",
118
+ VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind",
119
+ ResourceTypeMixed: "ST2067-3/ResourceTypeMixed",
120
+ MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType",
127
121
  DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
128
- CplMediaType: "ST2067-3/CplMediaType",
129
122
  },
130
123
  ST2067_5: {
131
124
  OperationalPatternQualifier: "ST2067-5/OperationalPatternQualifier",
@@ -259,6 +252,7 @@ const codes = {
259
252
  NotValidated: "XSD/NotValidated",
260
253
  },
261
254
  IMFERNO: {
255
+ ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated",
262
256
  EditionAssumed: "IMFERNO/EditionAssumed",
263
257
  EditionConflict: "IMFERNO/EditionConflict",
264
258
  EditionPinned: "IMFERNO/EditionPinned",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imferno/node",
3
- "version": "3.0.2-fix-review-package-loading.ad171d6",
3
+ "version": "3.0.2-fix-review-extension-sequences.b9aa7d1",
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-fix-review-package-loading.ad171d6",
49
- "@imferno/node-darwin-x64": "3.0.2-fix-review-package-loading.ad171d6",
50
- "@imferno/node-linux-x64-gnu": "3.0.2-fix-review-package-loading.ad171d6",
51
- "@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-package-loading.ad171d6",
52
- "@imferno/node-win32-x64-msvc": "3.0.2-fix-review-package-loading.ad171d6",
53
- "@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-package-loading.ad171d6"
48
+ "@imferno/node-darwin-arm64": "3.0.2-fix-review-extension-sequences.b9aa7d1",
49
+ "@imferno/node-darwin-x64": "3.0.2-fix-review-extension-sequences.b9aa7d1",
50
+ "@imferno/node-linux-x64-gnu": "3.0.2-fix-review-extension-sequences.b9aa7d1",
51
+ "@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-extension-sequences.b9aa7d1",
52
+ "@imferno/node-win32-x64-msvc": "3.0.2-fix-review-extension-sequences.b9aa7d1",
53
+ "@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-extension-sequences.b9aa7d1"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
package/types.d.ts CHANGED
@@ -355,6 +355,10 @@ export interface ValidationReport {
355
355
  * Whether the package is compliant with base SMPTE standards
356
356
  */
357
357
  is_compliant: boolean;
358
+ /**
359
+ * 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.
360
+ */
361
+ is_fully_validated: boolean;
358
362
  /**
359
363
  * Whether the package is playable despite issues
360
364
  */
@@ -556,21 +560,10 @@ export interface ChunkList {
556
560
  * A single file path entry in a ChunkList.
557
561
  */
558
562
  export interface Chunk {
559
- /**
560
- * `<Length>` in bytes, when present.
561
- */
562
- length?: number | null;
563
- /**
564
- * `<Offset>` in bytes, when present.
565
- */
566
- offset?: number | null;
567
563
  /**
568
564
  * File path relative to the IMP root directory.
569
565
  */
570
566
  path: string;
571
- /**
572
- * `<VolumeIndex>`; 1 when absent.
573
- */
574
567
  volumeIndex: number;
575
568
  }
576
569
  /**
@@ -1165,6 +1158,10 @@ export interface Segment {
1165
1158
  SequenceList: SequenceList;
1166
1159
  }
1167
1160
  export interface SequenceList {
1161
+ /**
1162
+ * 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.
1163
+ */
1164
+ ExtensionSequence?: ExtensionSequence[];
1168
1165
  ForcedNarrativeSequence?: ForcedNarrativeSequence[];
1169
1166
  HearingImpairedCaptionsSequence?: HearingImpairedCaptionsSequence[];
1170
1167
  IABSequence?: IABSequence[];
@@ -1174,8 +1171,13 @@ export interface SequenceList {
1174
1171
  MarkerSequence?: MarkerSequence[];
1175
1172
  SubtitlesSequence?: SubtitlesSequence[];
1176
1173
  }
1177
- export interface ForcedNarrativeSequence {
1174
+ /**
1175
+ * 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, `None` when unbound).
1176
+ */
1177
+ export interface ExtensionSequence {
1178
1178
  Id: ImfUuid;
1179
+ Name?: string;
1180
+ Namespace?: string | null;
1179
1181
  ResourceList: ResourceList;
1180
1182
  TrackId: ImfUuid;
1181
1183
  }
@@ -1219,6 +1221,11 @@ export interface MarkerInfo {
1219
1221
  Label: MarkerLabelElement;
1220
1222
  Offset: number;
1221
1223
  }
1224
+ export interface ForcedNarrativeSequence {
1225
+ Id: ImfUuid;
1226
+ ResourceList: ResourceList;
1227
+ TrackId: ImfUuid;
1228
+ }
1222
1229
  export interface HearingImpairedCaptionsSequence {
1223
1230
  Id: ImfUuid;
1224
1231
  ResourceList: ResourceList;