@imferno/node 3.0.2-fix-review-extension-sequences.ee00c2e → 3.0.2-fix-review-package-loading.6a7557b

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,6 +19,7 @@ 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";
22
23
  };
23
24
  readonly ST429_9: {
24
25
  readonly AssetListEmpty: "ST429-9/AssetListEmpty";
@@ -33,10 +34,18 @@ export declare const codes: {
33
34
  readonly AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList";
34
35
  readonly PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap";
35
36
  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";
36
44
  };
37
45
  readonly ST2067_2: {
38
46
  readonly NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist";
39
47
  readonly PklMalformedXml: "ST2067-2/PklMalformedXml";
48
+ readonly NoPackingList: "ST2067-2/NoPackingList";
40
49
  readonly NoCpls: "ST2067-2/NoCpls";
41
50
  readonly SizeMismatch: "ST2067-2/SizeMismatch";
42
51
  readonly FileNotFound: "ST2067-2/FileNotFound";
@@ -88,6 +97,7 @@ export declare const codes: {
88
97
  readonly TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13";
89
98
  readonly MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount";
90
99
  readonly AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing";
100
+ readonly TrackFileMediaType: "ST2067-2/TrackFileMediaType";
91
101
  };
92
102
  readonly ST2067_3: {
93
103
  readonly ContentTitleEmpty: "ST2067-3/ContentTitleEmpty";
@@ -115,10 +125,8 @@ export declare const codes: {
115
125
  readonly TrackFileId: "ST2067-3/TrackFileId";
116
126
  readonly SourceEncodingMissing: "ST2067-3/SourceEncodingMissing";
117
127
  readonly VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity";
118
- readonly VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind";
119
- readonly ResourceTypeMixed: "ST2067-3/ResourceTypeMixed";
120
- readonly MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType";
121
128
  readonly DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor";
129
+ readonly CplMediaType: "ST2067-3/CplMediaType";
122
130
  readonly UniqueSequenceId: "ST2067-3/UniqueSequenceId";
123
131
  readonly ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate";
124
132
  readonly LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid";
@@ -260,7 +268,6 @@ export declare const codes: {
260
268
  readonly NotValidated: "XSD/NotValidated";
261
269
  };
262
270
  readonly IMFERNO: {
263
- readonly ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated";
264
271
  readonly EditionAssumed: "IMFERNO/EditionAssumed";
265
272
  readonly EditionConflict: "IMFERNO/EditionConflict";
266
273
  readonly EditionPinned: "IMFERNO/EditionPinned";
package/codes.js CHANGED
@@ -19,6 +19,7 @@ const codes = {
19
19
  ST429_8: {
20
20
  SizeMismatch: "ST429-8/SizeMismatch",
21
21
  ChecksumMismatch: "ST429-8/ChecksumMismatch",
22
+ MalformedXml: "ST429-8/MalformedXml",
22
23
  },
23
24
  ST429_9: {
24
25
  AssetListEmpty: "ST429-9/AssetListEmpty",
@@ -33,10 +34,18 @@ const codes = {
33
34
  AssetMapHasNoPackingList: "ST429-9/AssetMapHasNoPackingList",
34
35
  PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap",
35
36
  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",
36
44
  },
37
45
  ST2067_2: {
38
46
  NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist",
39
47
  PklMalformedXml: "ST2067-2/PklMalformedXml",
48
+ NoPackingList: "ST2067-2/NoPackingList",
40
49
  NoCpls: "ST2067-2/NoCpls",
41
50
  SizeMismatch: "ST2067-2/SizeMismatch",
42
51
  FileNotFound: "ST2067-2/FileNotFound",
@@ -88,6 +97,7 @@ const codes = {
88
97
  TimedTextMappingKindNot0x13: "ST2067-2/TimedTextMappingKindNot0x13",
89
98
  MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount",
90
99
  AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing",
100
+ TrackFileMediaType: "ST2067-2/TrackFileMediaType",
91
101
  },
92
102
  ST2067_3: {
93
103
  ContentTitleEmpty: "ST2067-3/ContentTitleEmpty",
@@ -115,10 +125,8 @@ const codes = {
115
125
  TrackFileId: "ST2067-3/TrackFileId",
116
126
  SourceEncodingMissing: "ST2067-3/SourceEncodingMissing",
117
127
  VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity",
118
- VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind",
119
- ResourceTypeMixed: "ST2067-3/ResourceTypeMixed",
120
- MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType",
121
128
  DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
129
+ CplMediaType: "ST2067-3/CplMediaType",
122
130
  UniqueSequenceId: "ST2067-3/UniqueSequenceId",
123
131
  ContentMaturityRatingAgencyDuplicate: "ST2067-3/ContentMaturityRatingAgencyDuplicate",
124
132
  LocaleRegionInvalid: "ST2067-3/LocaleRegionInvalid",
@@ -260,7 +268,6 @@ const codes = {
260
268
  NotValidated: "XSD/NotValidated",
261
269
  },
262
270
  IMFERNO: {
263
- ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated",
264
271
  EditionAssumed: "IMFERNO/EditionAssumed",
265
272
  EditionConflict: "IMFERNO/EditionConflict",
266
273
  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-extension-sequences.ee00c2e",
3
+ "version": "3.0.2-fix-review-package-loading.6a7557b",
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-extension-sequences.ee00c2e",
49
- "@imferno/node-darwin-x64": "3.0.2-fix-review-extension-sequences.ee00c2e",
50
- "@imferno/node-linux-x64-gnu": "3.0.2-fix-review-extension-sequences.ee00c2e",
51
- "@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-extension-sequences.ee00c2e",
52
- "@imferno/node-win32-x64-msvc": "3.0.2-fix-review-extension-sequences.ee00c2e",
53
- "@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-extension-sequences.ee00c2e"
48
+ "@imferno/node-darwin-arm64": "3.0.2-fix-review-package-loading.6a7557b",
49
+ "@imferno/node-darwin-x64": "3.0.2-fix-review-package-loading.6a7557b",
50
+ "@imferno/node-linux-x64-gnu": "3.0.2-fix-review-package-loading.6a7557b",
51
+ "@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-package-loading.6a7557b",
52
+ "@imferno/node-win32-x64-msvc": "3.0.2-fix-review-package-loading.6a7557b",
53
+ "@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-package-loading.6a7557b"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
package/types.d.ts CHANGED
@@ -355,10 +355,6 @@ 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;
362
358
  /**
363
359
  * Whether the package is playable despite issues
364
360
  */
@@ -560,10 +556,21 @@ export interface ChunkList {
560
556
  * A single file path entry in a ChunkList.
561
557
  */
562
558
  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;
563
567
  /**
564
568
  * File path relative to the IMP root directory.
565
569
  */
566
570
  path: string;
571
+ /**
572
+ * `<VolumeIndex>`; 1 when absent.
573
+ */
567
574
  volumeIndex: number;
568
575
  }
569
576
  /**
@@ -1158,10 +1165,6 @@ export interface Segment {
1158
1165
  SequenceList: SequenceList;
1159
1166
  }
1160
1167
  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[];
1165
1168
  ForcedNarrativeSequence?: ForcedNarrativeSequence[];
1166
1169
  HearingImpairedCaptionsSequence?: HearingImpairedCaptionsSequence[];
1167
1170
  IABSequence?: IABSequence[];
@@ -1171,13 +1174,8 @@ export interface SequenceList {
1171
1174
  MarkerSequence?: MarkerSequence[];
1172
1175
  SubtitlesSequence?: SubtitlesSequence[];
1173
1176
  }
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 {
1177
+ export interface ForcedNarrativeSequence {
1178
1178
  Id: ImfUuid;
1179
- Name?: string;
1180
- Namespace?: string | null;
1181
1179
  ResourceList: ResourceList;
1182
1180
  TrackId: ImfUuid;
1183
1181
  }
@@ -1221,11 +1219,6 @@ export interface MarkerInfo {
1221
1219
  Label: MarkerLabelElement;
1222
1220
  Offset: number;
1223
1221
  }
1224
- export interface ForcedNarrativeSequence {
1225
- Id: ImfUuid;
1226
- ResourceList: ResourceList;
1227
- TrackId: ImfUuid;
1228
- }
1229
1222
  export interface HearingImpairedCaptionsSequence {
1230
1223
  Id: ImfUuid;
1231
1224
  ResourceList: ResourceList;