@imferno/node 3.0.2-fix-review-cli-settings.8910c9e → 3.0.2-fix-review-extension-sequences.bf6b634

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
@@ -127,13 +127,9 @@ console.log(getVersion()); // e.g. "2.0.0"
127
127
  | `app2eSpec` | `"auto" \| "none" \| "v2014" \| "v2016" \| "v2020" \| "v2023" \| "v2026"` | Application spec version |
128
128
  | `rules` | `Record<string, "off" \| "info" \| "warn" \| "error" \| "critical">` | ESLint-style per-rule severity overrides |
129
129
  | `aggregateRepeats` | `boolean` | Collapse repeated identical findings into one issue with `additional_instances` |
130
- | `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) |
131
- | `skipHashes` | `boolean` | Skip hashing the assets; existence and size are still checked (path / URI functions only). Hashes are verified by default, like the CLI |
130
+ | `skipDiskChecks` | `boolean` | Skip file manifest and MXF checks (path / URI functions only; in-memory input never touches disk) |
132
131
  | `credentials` | `S3Credentials \| null` | Explicit S3 credentials (URI functions only) |
133
132
 
134
- An option the function does not accept, or a value of the wrong type, throws
135
- (`null` means not set).
136
-
137
133
  ### TypeScript
138
134
 
139
135
  The package ships precise declarations, generated from the Rust types (no
package/codes.d.ts CHANGED
@@ -104,6 +104,9 @@ export declare const codes: {
104
104
  readonly RepeatCount: "ST2067-3/RepeatCount";
105
105
  readonly TrackFileId: "ST2067-3/TrackFileId";
106
106
  readonly VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity";
107
+ readonly VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind";
108
+ readonly ResourceTypeMixed: "ST2067-3/ResourceTypeMixed";
109
+ readonly MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType";
107
110
  readonly DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor";
108
111
  };
109
112
  readonly ST2067_5: {
package/codes.js CHANGED
@@ -104,6 +104,9 @@ const codes = {
104
104
  RepeatCount: "ST2067-3/RepeatCount",
105
105
  TrackFileId: "ST2067-3/TrackFileId",
106
106
  VirtualTrackContinuity: "ST2067-3/VirtualTrackContinuity",
107
+ VirtualTrackSequenceKind: "ST2067-3/VirtualTrackSequenceKind",
108
+ ResourceTypeMixed: "ST2067-3/ResourceTypeMixed",
109
+ MarkerSequenceResourceType: "ST2067-3/MarkerSequenceResourceType",
107
110
  DanglingEssenceDescriptor: "ST2067-3/DanglingEssenceDescriptor",
108
111
  },
109
112
  ST2067_5: {
package/index.d.ts CHANGED
@@ -15,16 +15,8 @@ export { codes } from "./codes";
15
15
 
16
16
  /** Options for validating a package on disk (`validatePath`, `buildReportFromPath`). */
17
17
  export interface PathValidateOptions extends ValidateOptions {
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
- */
18
+ /** Skip file-manifest (size/presence) and MXF header checks. Default: `false`. */
22
19
  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;
28
20
  }
29
21
 
30
22
  /** Explicit S3 credentials for `s3://` URIs. Omit to use the default AWS credential chain. */
@@ -67,7 +59,7 @@ export declare function buildReport(files: Record<string, string>, options?: Val
67
59
  * `ImfReport` summary. Prefer `validatePath` for new code.
68
60
  *
69
61
  * @param path - Path to the IMP directory
70
- * @param options - Optional validation options (`coreSpec`, `cplSpec`, `iabSpec`, `app2eSpec`, `skipDiskChecks`, `skipHashes`, `rules`, `aggregateRepeats`)
62
+ * @param options - Optional validation options (`coreSpec`, `cplSpec`, `iabSpec`, `app2eSpec`, `skipDiskChecks`, `rules`, `aggregateRepeats`)
71
63
  * @returns An `ImfReport` with `package`, `cpls`, and `validation` fields.
72
64
  * @throws If the directory cannot be read, the package cannot be parsed, or the options are invalid.
73
65
  */
@@ -147,22 +139,17 @@ export declare function toSarif(report: ValidationResult | ValidationReport): Sa
147
139
  * @param files - A map of filename to XML content
148
140
  * @param options - Optional validation options
149
141
  * @returns `{ package, validation }` — the full parsed package and all findings.
150
- * @throws Only if the options are invalid (wrong type, unknown key).
142
+ * @throws Only if the options are invalid.
151
143
  */
152
144
  export declare function validate(files: Record<string, string>, options?: ValidateOptions | undefined | null): ValidationResult
153
145
 
154
146
  /**
155
147
  * Parse and validate an IMF package directory on disk.
156
148
  *
157
- * Like the CLI, checks every asset's presence and size and hashes it against
158
- * its Packing List `<Hash>` unless `skipHashes` (or `skipDiskChecks`) is set.
159
- * Hashing reads every asset and blocks until done.
160
- *
161
149
  * @param path - Path to the IMP directory
162
150
  * @param options - Optional validation options
163
151
  * @returns `{ package, validation }` — the full parsed package and all findings.
164
- * @throws If the directory cannot be read or the options are invalid
165
- * (wrong type, unknown key).
152
+ * @throws If the directory cannot be read or the options are invalid.
166
153
  */
167
154
  export declare function validatePath(path: string, options?: PathValidateOptions | undefined | null): ValidationResult
168
155
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imferno/node",
3
- "version": "3.0.2-fix-review-cli-settings.8910c9e",
3
+ "version": "3.0.2-fix-review-extension-sequences.bf6b634",
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-cli-settings.8910c9e",
49
- "@imferno/node-darwin-x64": "3.0.2-fix-review-cli-settings.8910c9e",
50
- "@imferno/node-linux-x64-gnu": "3.0.2-fix-review-cli-settings.8910c9e",
51
- "@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-cli-settings.8910c9e",
52
- "@imferno/node-win32-x64-msvc": "3.0.2-fix-review-cli-settings.8910c9e",
53
- "@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-cli-settings.8910c9e"
48
+ "@imferno/node-darwin-arm64": "3.0.2-fix-review-extension-sequences.bf6b634",
49
+ "@imferno/node-darwin-x64": "3.0.2-fix-review-extension-sequences.bf6b634",
50
+ "@imferno/node-linux-x64-gnu": "3.0.2-fix-review-extension-sequences.bf6b634",
51
+ "@imferno/node-linux-arm64-gnu": "3.0.2-fix-review-extension-sequences.bf6b634",
52
+ "@imferno/node-win32-x64-msvc": "3.0.2-fix-review-extension-sequences.bf6b634",
53
+ "@imferno/node-win32-arm64-msvc": "3.0.2-fix-review-extension-sequences.bf6b634"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
package/types.d.ts CHANGED
@@ -6,18 +6,6 @@
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
- };
21
9
  /**
22
10
  * A SMPTE IMF UUID, serialised as a bare UUID string (e.g. "0eb3d1b9-b77b-4d3f-bbe5-7c69b15dca85")
23
11
  */
@@ -218,6 +206,18 @@ export type MimeType =
218
206
  * Mirrors ESLint's `"off"` / `"warn"` / `"error"` vocabulary, extended with the two IMF severity levels.
219
207
  */
220
208
  export type RuleSeverity = "off" | "info" | "warn" | "error" | "critical";
209
+ export type RuleValidationReason =
210
+ | {
211
+ kind: "unknown_source";
212
+ variant: string;
213
+ }
214
+ | {
215
+ kind: "matches_nothing";
216
+ }
217
+ | {
218
+ hint: string;
219
+ kind: "unsupported_pattern";
220
+ };
221
221
 
222
222
  /**
223
223
  * @deprecated
@@ -228,10 +228,6 @@ export type RuleSeverity = "off" | "info" | "warn" | "error" | "critical";
228
228
  export interface ImfReport {
229
229
  cpls: CplReport[];
230
230
  package: PackageSummary;
231
- /**
232
- * Keys of the `rules` option that select no rule (typos, unknown editions); they were ignored. Absent when every key matched.
233
- */
234
- ruleWarnings?: RuleValidationWarning[];
235
231
  validation: ValidationReport;
236
232
  }
237
233
  export interface CplReport {
@@ -322,18 +318,6 @@ export interface UnreferencedAsset {
322
318
  id: string;
323
319
  path: string;
324
320
  }
325
- /**
326
- * A diagnostic about a `RulesConfig` key that the engine couldn't match.
327
- *
328
- * Produced by `RulesConfig::validate`. Operators can use these at config-load time to catch typos before any validation work runs.
329
- */
330
- export interface RuleValidationWarning {
331
- /**
332
- * The configured key that triggered the warning.
333
- */
334
- key: string;
335
- reason: RuleValidationReason;
336
- }
337
321
  /**
338
322
  * Comprehensive validation report
339
323
  */
@@ -1153,6 +1137,10 @@ export interface Segment {
1153
1137
  SequenceList: SequenceList;
1154
1138
  }
1155
1139
  export interface SequenceList {
1140
+ /**
1141
+ * 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.
1142
+ */
1143
+ ExtensionSequence?: ExtensionSequence[];
1156
1144
  ForcedNarrativeSequence?: ForcedNarrativeSequence[];
1157
1145
  HearingImpairedCaptionsSequence?: HearingImpairedCaptionsSequence[];
1158
1146
  IABSequence?: IABSequence[];
@@ -1162,8 +1150,13 @@ export interface SequenceList {
1162
1150
  MarkerSequence?: MarkerSequence[];
1163
1151
  SubtitlesSequence?: SubtitlesSequence[];
1164
1152
  }
1165
- export interface ForcedNarrativeSequence {
1153
+ /**
1154
+ * 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).
1155
+ */
1156
+ export interface ExtensionSequence {
1166
1157
  Id: ImfUuid;
1158
+ Name?: string;
1159
+ Namespace?: string | null;
1167
1160
  ResourceList: ResourceList;
1168
1161
  TrackId: ImfUuid;
1169
1162
  }
@@ -1189,6 +1182,11 @@ export interface MarkerInfo {
1189
1182
  Label: MarkerLabelElement;
1190
1183
  Offset: number;
1191
1184
  }
1185
+ export interface ForcedNarrativeSequence {
1186
+ Id: ImfUuid;
1187
+ ResourceList: ResourceList;
1188
+ TrackId: ImfUuid;
1189
+ }
1192
1190
  export interface HearingImpairedCaptionsSequence {
1193
1191
  Id: ImfUuid;
1194
1192
  ResourceList: ResourceList;
@@ -1460,6 +1458,18 @@ export interface ValidationResult {
1460
1458
  rule_warnings?: RuleValidationWarning[];
1461
1459
  validation: ValidationReport;
1462
1460
  }
1461
+ /**
1462
+ * A diagnostic about a `RulesConfig` key that the engine couldn't match.
1463
+ *
1464
+ * Produced by `RulesConfig::validate`. Operators can use these at config-load time to catch typos before any validation work runs.
1465
+ */
1466
+ export interface RuleValidationWarning {
1467
+ /**
1468
+ * The configured key that triggered the warning.
1469
+ */
1470
+ key: string;
1471
+ reason: RuleValidationReason;
1472
+ }
1463
1473
 
1464
1474
  /**
1465
1475
  * Core constraints (ST 2067-2) edition to validate against. `"auto"` detects