@imferno/node 3.0.2-beta.2b20aac → 3.0.2-beta.3a5e210

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
@@ -8,6 +8,9 @@ export declare const codes: {
8
8
  readonly HeaderPartitionOpen: "ST377-1/HeaderPartitionOpen";
9
9
  readonly MissingHeaderMetadata: "ST377-1/MissingHeaderMetadata";
10
10
  readonly StructuralComponentDurationMissing: "ST377-1/StructuralComponentDurationMissing";
11
+ readonly FileDescriptorEssenceContainerMissing: "ST377-1/FileDescriptorEssenceContainerMissing";
12
+ readonly PrefaceEssenceContainersIncomplete: "ST377-1/PrefaceEssenceContainersIncomplete";
13
+ readonly PartitionEssenceContainersIncomplete: "ST377-1/PartitionEssenceContainersIncomplete";
11
14
  };
12
15
  readonly ST377_4: {
13
16
  readonly MCALinkIDMissing: "ST377-4/MCALinkIDMissing";
@@ -44,6 +47,8 @@ export declare const codes: {
44
47
  };
45
48
  readonly ST2067_2: {
46
49
  readonly NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist";
50
+ readonly ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing";
51
+ readonly ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate";
47
52
  readonly PklMalformedXml: "ST2067-2/PklMalformedXml";
48
53
  readonly NoPackingList: "ST2067-2/NoPackingList";
49
54
  readonly NoCpls: "ST2067-2/NoCpls";
@@ -67,6 +72,7 @@ export declare const codes: {
67
72
  readonly SoundfieldChannelCount: "ST2067-2/SoundfieldChannelCount";
68
73
  readonly DigitalSignature: "ST2067-2/DigitalSignature";
69
74
  readonly EssenceDescriptorList: "ST2067-2/EssenceDescriptorList";
75
+ readonly EssenceDescriptorContainerFormatMissing: "ST2067-2/EssenceDescriptorContainerFormatMissing";
70
76
  readonly CplIdAssetMapMismatch: "ST2067-2/CplIdAssetMapMismatch";
71
77
  readonly OperationalPatternNotOP1A: "ST2067-2/OperationalPatternNotOP1A";
72
78
  readonly SoundDescriptorNotWAVEPCM: "ST2067-2/SoundDescriptorNotWAVEPCM";
@@ -98,6 +104,17 @@ export declare const codes: {
98
104
  readonly MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount";
99
105
  readonly AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing";
100
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";
101
118
  };
102
119
  readonly ST2067_3: {
103
120
  readonly ContentTitleEmpty: "ST2067-3/ContentTitleEmpty";
@@ -125,6 +142,10 @@ export declare const codes: {
125
142
  readonly TrackFileId: "ST2067-3/TrackFileId";
126
143
  readonly SourceEncodingMissing: "ST2067-3/SourceEncodingMissing";
127
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";
128
149
  readonly DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor";
129
150
  readonly CplMediaType: "ST2067-3/CplMediaType";
130
151
  readonly UniqueSequenceId: "ST2067-3/UniqueSequenceId";
@@ -246,7 +267,11 @@ export declare const codes: {
246
267
  readonly SubDescriptorDuplicate: "ST2067-201/SubDescriptorDuplicate";
247
268
  readonly MCAChannelIDForbidden: "ST2067-201/MCAChannelIDForbidden";
248
269
  readonly EditRateNotIntegerMultiple: "ST2067-201/EditRateNotIntegerMultiple";
270
+ readonly ResourceEditRateNotSampleRate: "ST2067-201/ResourceEditRateNotSampleRate";
249
271
  readonly IabChannelSubDescriptorRecommended: "ST2067-201/IabChannelSubDescriptorRecommended";
272
+ readonly ConformsToSpecificationsMissing: "ST2067-201/ConformsToSpecificationsMissing";
273
+ readonly ConformsToSpecificationsInvalid: "ST2067-201/ConformsToSpecificationsInvalid";
274
+ readonly EssenceNotHomogeneous: "ST2067-201/EssenceNotHomogeneous";
250
275
  };
251
276
  readonly ST2067_202: {
252
277
  readonly NamespaceUriMissing: "ST2067-202/NamespaceUriMissing";
@@ -257,6 +282,7 @@ export declare const codes: {
257
282
  readonly ISXDVirtualTrackMissing: "ST2067-202/ISXDVirtualTrackMissing";
258
283
  readonly DataEssenceCodingMissing: "ST2067-202/DataEssenceCodingMissing";
259
284
  readonly DataEssenceCodingInvalid: "ST2067-202/DataEssenceCodingInvalid";
285
+ readonly EssenceContainerInvalid: "ST2067-202/EssenceContainerInvalid";
260
286
  };
261
287
  readonly XSD: {
262
288
  readonly ElementMissing: "XSD/ElementMissing";
@@ -268,6 +294,9 @@ export declare const codes: {
268
294
  readonly NotValidated: "XSD/NotValidated";
269
295
  };
270
296
  readonly IMFERNO: {
297
+ readonly ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated";
298
+ readonly SequenceListUnreadable: "IMFERNO/SequenceListUnreadable";
299
+ readonly TrackFileIdentityNotValidated: "IMFERNO/TrackFileIdentityNotValidated";
271
300
  readonly EditionAssumed: "IMFERNO/EditionAssumed";
272
301
  readonly EditionConflict: "IMFERNO/EditionConflict";
273
302
  readonly EditionPinned: "IMFERNO/EditionPinned";
@@ -285,6 +314,7 @@ export declare const codes: {
285
314
  readonly ParseError: "IMFERNO/ParseError";
286
315
  readonly PklParseError: "IMFERNO/PklParseError";
287
316
  readonly XmlAssetParseError: "IMFERNO/XmlAssetParseError";
317
+ readonly CplUnparseable: "IMFERNO/CplUnparseable";
288
318
  readonly XmlReadError: "IMFERNO/XmlReadError";
289
319
  readonly ReadDirError: "IMFERNO/ReadDirError";
290
320
  readonly DirEntryError: "IMFERNO/DirEntryError";
package/codes.js CHANGED
@@ -8,6 +8,9 @@ const codes = {
8
8
  HeaderPartitionOpen: "ST377-1/HeaderPartitionOpen",
9
9
  MissingHeaderMetadata: "ST377-1/MissingHeaderMetadata",
10
10
  StructuralComponentDurationMissing: "ST377-1/StructuralComponentDurationMissing",
11
+ FileDescriptorEssenceContainerMissing: "ST377-1/FileDescriptorEssenceContainerMissing",
12
+ PrefaceEssenceContainersIncomplete: "ST377-1/PrefaceEssenceContainersIncomplete",
13
+ PartitionEssenceContainersIncomplete: "ST377-1/PartitionEssenceContainersIncomplete",
11
14
  },
12
15
  ST377_4: {
13
16
  MCALinkIDMissing: "ST377-4/MCALinkIDMissing",
@@ -44,6 +47,8 @@ const codes = {
44
47
  },
45
48
  ST2067_2: {
46
49
  NotImfCompositionPlaylist: "ST2067-2/NotImfCompositionPlaylist",
50
+ ApplicationIdentificationMissing: "ST2067-2/ApplicationIdentificationMissing",
51
+ ApplicationIdentificationDuplicate: "ST2067-2/ApplicationIdentificationDuplicate",
47
52
  PklMalformedXml: "ST2067-2/PklMalformedXml",
48
53
  NoPackingList: "ST2067-2/NoPackingList",
49
54
  NoCpls: "ST2067-2/NoCpls",
@@ -67,6 +72,7 @@ const codes = {
67
72
  SoundfieldChannelCount: "ST2067-2/SoundfieldChannelCount",
68
73
  DigitalSignature: "ST2067-2/DigitalSignature",
69
74
  EssenceDescriptorList: "ST2067-2/EssenceDescriptorList",
75
+ EssenceDescriptorContainerFormatMissing: "ST2067-2/EssenceDescriptorContainerFormatMissing",
70
76
  CplIdAssetMapMismatch: "ST2067-2/CplIdAssetMapMismatch",
71
77
  OperationalPatternNotOP1A: "ST2067-2/OperationalPatternNotOP1A",
72
78
  SoundDescriptorNotWAVEPCM: "ST2067-2/SoundDescriptorNotWAVEPCM",
@@ -98,6 +104,17 @@ const codes = {
98
104
  MainImageVirtualTrackCount: "ST2067-2/MainImageVirtualTrackCount",
99
105
  AudioVirtualTrackMissing: "ST2067-2/AudioVirtualTrackMissing",
100
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",
101
118
  },
102
119
  ST2067_3: {
103
120
  ContentTitleEmpty: "ST2067-3/ContentTitleEmpty",
@@ -125,6 +142,10 @@ const codes = {
125
142
  TrackFileId: "ST2067-3/TrackFileId",
126
143
  SourceEncodingMissing: "ST2067-3/SourceEncodingMissing",
127
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",
128
149
  DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
129
150
  CplMediaType: "ST2067-3/CplMediaType",
130
151
  UniqueSequenceId: "ST2067-3/UniqueSequenceId",
@@ -246,7 +267,11 @@ const codes = {
246
267
  SubDescriptorDuplicate: "ST2067-201/SubDescriptorDuplicate",
247
268
  MCAChannelIDForbidden: "ST2067-201/MCAChannelIDForbidden",
248
269
  EditRateNotIntegerMultiple: "ST2067-201/EditRateNotIntegerMultiple",
270
+ ResourceEditRateNotSampleRate: "ST2067-201/ResourceEditRateNotSampleRate",
249
271
  IabChannelSubDescriptorRecommended: "ST2067-201/IabChannelSubDescriptorRecommended",
272
+ ConformsToSpecificationsMissing: "ST2067-201/ConformsToSpecificationsMissing",
273
+ ConformsToSpecificationsInvalid: "ST2067-201/ConformsToSpecificationsInvalid",
274
+ EssenceNotHomogeneous: "ST2067-201/EssenceNotHomogeneous",
250
275
  },
251
276
  ST2067_202: {
252
277
  NamespaceUriMissing: "ST2067-202/NamespaceUriMissing",
@@ -257,6 +282,7 @@ const codes = {
257
282
  ISXDVirtualTrackMissing: "ST2067-202/ISXDVirtualTrackMissing",
258
283
  DataEssenceCodingMissing: "ST2067-202/DataEssenceCodingMissing",
259
284
  DataEssenceCodingInvalid: "ST2067-202/DataEssenceCodingInvalid",
285
+ EssenceContainerInvalid: "ST2067-202/EssenceContainerInvalid",
260
286
  },
261
287
  XSD: {
262
288
  ElementMissing: "XSD/ElementMissing",
@@ -268,6 +294,9 @@ const codes = {
268
294
  NotValidated: "XSD/NotValidated",
269
295
  },
270
296
  IMFERNO: {
297
+ ExtensionSequenceNotValidated: "IMFERNO/ExtensionSequenceNotValidated",
298
+ SequenceListUnreadable: "IMFERNO/SequenceListUnreadable",
299
+ TrackFileIdentityNotValidated: "IMFERNO/TrackFileIdentityNotValidated",
271
300
  EditionAssumed: "IMFERNO/EditionAssumed",
272
301
  EditionConflict: "IMFERNO/EditionConflict",
273
302
  EditionPinned: "IMFERNO/EditionPinned",
@@ -285,6 +314,7 @@ const codes = {
285
314
  ParseError: "IMFERNO/ParseError",
286
315
  PklParseError: "IMFERNO/PklParseError",
287
316
  XmlAssetParseError: "IMFERNO/XmlAssetParseError",
317
+ CplUnparseable: "IMFERNO/CplUnparseable",
288
318
  XmlReadError: "IMFERNO/XmlReadError",
289
319
  ReadDirError: "IMFERNO/ReadDirError",
290
320
  DirEntryError: "IMFERNO/DirEntryError",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imferno/node",
3
- "version": "3.0.2-beta.2b20aac",
3
+ "version": "3.0.2-beta.3a5e210",
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.2b20aac",
49
- "@imferno/node-darwin-x64": "3.0.2-beta.2b20aac",
50
- "@imferno/node-linux-x64-gnu": "3.0.2-beta.2b20aac",
51
- "@imferno/node-linux-arm64-gnu": "3.0.2-beta.2b20aac",
52
- "@imferno/node-win32-x64-msvc": "3.0.2-beta.2b20aac",
53
- "@imferno/node-win32-arm64-msvc": "3.0.2-beta.2b20aac"
48
+ "@imferno/node-darwin-arm64": "3.0.2-beta.3a5e210",
49
+ "@imferno/node-darwin-x64": "3.0.2-beta.3a5e210",
50
+ "@imferno/node-linux-x64-gnu": "3.0.2-beta.3a5e210",
51
+ "@imferno/node-linux-arm64-gnu": "3.0.2-beta.3a5e210",
52
+ "@imferno/node-win32-x64-msvc": "3.0.2-beta.3a5e210",
53
+ "@imferno/node-win32-arm64-msvc": "3.0.2-beta.3a5e210"
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. A rule override that switches such a finding `off` moves it to `suppressed` but keeps this false.
360
+ */
361
+ is_fully_validated: boolean;
358
362
  /**
359
363
  * Whether the package is playable despite issues
360
364
  */
@@ -916,9 +920,9 @@ export interface IABEssenceDescriptor {
916
920
  */
917
921
  ContainerFormat?: string | null;
918
922
  /**
919
- * ST 2067-201 §5.9: ElectrospatialFormulation shall NOT be present.
923
+ * 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`.
920
924
  */
921
- ElectrospatialFormulation?: number | null;
925
+ ElectrospatialFormulation?: string | null;
922
926
  InstanceID?: string | null;
923
927
  LinkedTrackID?: number | null;
924
928
  /**
@@ -942,7 +946,7 @@ export interface IABSubDescriptors {
942
946
  /**
943
947
  * Presence-only stub for ST 2067-201:2026 Annex E `IABChannelSubDescriptor`.
944
948
  *
945
- * 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.
949
+ * 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.
946
950
  */
947
951
  export interface IABChannelSubDescriptor {
948
952
  /**
@@ -971,6 +975,10 @@ export interface IABSoundfieldLabelSubDescriptor {
971
975
  * ISXD (Immersive Sound XML Data) essence descriptor — Dolby Atmos sidecar format
972
976
  */
973
977
  export interface ISXDDataEssenceDescriptor {
978
+ /**
979
+ * ST 2067-202 §9.1: the Essence Container UL shall be the Frame Wrapped ISXD Container UL (Table 3).
980
+ */
981
+ ContainerFormat?: string | null;
974
982
  DataEssenceCoding?: string | null;
975
983
  InstanceID?: string | null;
976
984
  LinkedTrackID?: number | null;
@@ -1096,6 +1104,10 @@ export interface WAVEPCMDescriptor {
1096
1104
  InstanceID?: string | null;
1097
1105
  LinkedTrackID?: number | null;
1098
1106
  QuantizationBits?: number | null;
1107
+ /**
1108
+ * 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).
1109
+ */
1110
+ ReferenceImageEditRate?: EditRate | null;
1099
1111
  SampleRate?: EditRate | null;
1100
1112
  SubDescriptors?: AudioSubDescriptors | null;
1101
1113
  }
@@ -1117,6 +1129,9 @@ export interface SoundfieldGroupLabelSubDescriptor {
1117
1129
  */
1118
1130
  RFC5646SpokenLanguage?: LanguageTag | null;
1119
1131
  }
1132
+ /**
1133
+ * The CPL's `ExtensionProperties`: ApplicationIdentification (the Application IDs of every ST 2067-2 instance, space-separated), MaxCLL and MaxFALL.
1134
+ */
1120
1135
  export interface ExtensionProperties {
1121
1136
  ApplicationIdentification?: string | null;
1122
1137
  MaxCLL?: number | null;
@@ -1165,6 +1180,10 @@ export interface Segment {
1165
1180
  SequenceList: SequenceList;
1166
1181
  }
1167
1182
  export interface SequenceList {
1183
+ /**
1184
+ * 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.
1185
+ */
1186
+ ExtensionSequence?: ExtensionSequence[];
1168
1187
  ForcedNarrativeSequence?: ForcedNarrativeSequence[];
1169
1188
  HearingImpairedCaptionsSequence?: HearingImpairedCaptionsSequence[];
1170
1189
  IABSequence?: IABSequence[];
@@ -1174,8 +1193,13 @@ export interface SequenceList {
1174
1193
  MarkerSequence?: MarkerSequence[];
1175
1194
  SubtitlesSequence?: SubtitlesSequence[];
1176
1195
  }
1177
- export interface ForcedNarrativeSequence {
1196
+ /**
1197
+ * 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).
1198
+ */
1199
+ export interface ExtensionSequence {
1178
1200
  Id: ImfUuid;
1201
+ Name?: string;
1202
+ Namespace?: string | null;
1179
1203
  ResourceList: ResourceList;
1180
1204
  TrackId: ImfUuid;
1181
1205
  }
@@ -1219,6 +1243,11 @@ export interface MarkerInfo {
1219
1243
  Label: MarkerLabelElement;
1220
1244
  Offset: number;
1221
1245
  }
1246
+ export interface ForcedNarrativeSequence {
1247
+ Id: ImfUuid;
1248
+ ResourceList: ResourceList;
1249
+ TrackId: ImfUuid;
1250
+ }
1222
1251
  export interface HearingImpairedCaptionsSequence {
1223
1252
  Id: ImfUuid;
1224
1253
  ResourceList: ResourceList;