@imferno/node 3.0.2-feat-rule-model-per-edition.a92877c → 3.0.2-feat-rule-model-per-edition.97aa826

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
@@ -15,7 +15,12 @@ export declare const codes: {
15
15
  readonly MCALinkIDMissing: "ST377-4/MCALinkIDMissing";
16
16
  readonly SoundfieldGroupLinkIDMismatch: "ST377-4/SoundfieldGroupLinkIDMismatch";
17
17
  };
18
+ readonly ST429_8: {
19
+ readonly SizeMismatch: "ST429-8/SizeMismatch";
20
+ readonly ChecksumMismatch: "ST429-8/ChecksumMismatch";
21
+ };
18
22
  readonly ST429_9: {
23
+ readonly AssetListEmpty: "ST429-9/AssetListEmpty";
19
24
  readonly VolindexMissing: "ST429-9/VolindexMissing";
20
25
  readonly MalformedXml: "ST429-9/MalformedXml";
21
26
  readonly PathNotRelative: "ST429-9/PathNotRelative";
@@ -28,7 +33,6 @@ export declare const codes: {
28
33
  readonly PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap";
29
34
  };
30
35
  readonly ST2067_2: {
31
- readonly AssetMap: "ST2067-2/AssetMap";
32
36
  readonly AssetMapMalformedXml: "ST2067-2/AssetMapMalformedXml";
33
37
  readonly PklMalformedXml: "ST2067-2/PklMalformedXml";
34
38
  readonly NoCpls: "ST2067-2/NoCpls";
@@ -239,6 +243,8 @@ export declare const codes: {
239
243
  readonly NotValidated: "XSD/NotValidated";
240
244
  };
241
245
  readonly IMFERNO: {
246
+ readonly EditionAssumed: "IMFERNO/EditionAssumed";
247
+ readonly DeliveryNotChecked: "IMFERNO/DeliveryNotChecked";
242
248
  readonly OpenFailed: "IMFERNO/OpenFailed";
243
249
  readonly PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed";
244
250
  readonly RegXmlConversionFailed: "IMFERNO/RegXmlConversionFailed";
package/codes.js CHANGED
@@ -15,7 +15,12 @@ const codes = {
15
15
  MCALinkIDMissing: "ST377-4/MCALinkIDMissing",
16
16
  SoundfieldGroupLinkIDMismatch: "ST377-4/SoundfieldGroupLinkIDMismatch",
17
17
  },
18
+ ST429_8: {
19
+ SizeMismatch: "ST429-8/SizeMismatch",
20
+ ChecksumMismatch: "ST429-8/ChecksumMismatch",
21
+ },
18
22
  ST429_9: {
23
+ AssetListEmpty: "ST429-9/AssetListEmpty",
19
24
  VolindexMissing: "ST429-9/VolindexMissing",
20
25
  MalformedXml: "ST429-9/MalformedXml",
21
26
  PathNotRelative: "ST429-9/PathNotRelative",
@@ -28,7 +33,6 @@ const codes = {
28
33
  PklIdNotInAssetMap: "ST429-9/PklIdNotInAssetMap",
29
34
  },
30
35
  ST2067_2: {
31
- AssetMap: "ST2067-2/AssetMap",
32
36
  AssetMapMalformedXml: "ST2067-2/AssetMapMalformedXml",
33
37
  PklMalformedXml: "ST2067-2/PklMalformedXml",
34
38
  NoCpls: "ST2067-2/NoCpls",
@@ -239,6 +243,8 @@ const codes = {
239
243
  NotValidated: "XSD/NotValidated",
240
244
  },
241
245
  IMFERNO: {
246
+ EditionAssumed: "IMFERNO/EditionAssumed",
247
+ DeliveryNotChecked: "IMFERNO/DeliveryNotChecked",
242
248
  OpenFailed: "IMFERNO/OpenFailed",
243
249
  PartitionPackParseFailed: "IMFERNO/PartitionPackParseFailed",
244
250
  RegXmlConversionFailed: "IMFERNO/RegXmlConversionFailed",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imferno/node",
3
- "version": "3.0.2-feat-rule-model-per-edition.a92877c",
3
+ "version": "3.0.2-feat-rule-model-per-edition.97aa826",
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-feat-rule-model-per-edition.a92877c",
49
- "@imferno/node-darwin-x64": "3.0.2-feat-rule-model-per-edition.a92877c",
50
- "@imferno/node-linux-x64-gnu": "3.0.2-feat-rule-model-per-edition.a92877c",
51
- "@imferno/node-linux-arm64-gnu": "3.0.2-feat-rule-model-per-edition.a92877c",
52
- "@imferno/node-win32-x64-msvc": "3.0.2-feat-rule-model-per-edition.a92877c",
53
- "@imferno/node-win32-arm64-msvc": "3.0.2-feat-rule-model-per-edition.a92877c"
48
+ "@imferno/node-darwin-arm64": "3.0.2-feat-rule-model-per-edition.97aa826",
49
+ "@imferno/node-darwin-x64": "3.0.2-feat-rule-model-per-edition.97aa826",
50
+ "@imferno/node-linux-x64-gnu": "3.0.2-feat-rule-model-per-edition.97aa826",
51
+ "@imferno/node-linux-arm64-gnu": "3.0.2-feat-rule-model-per-edition.97aa826",
52
+ "@imferno/node-win32-x64-msvc": "3.0.2-feat-rule-model-per-edition.97aa826",
53
+ "@imferno/node-win32-arm64-msvc": "3.0.2-feat-rule-model-per-edition.97aa826"
54
54
  },
55
55
  "publishConfig": {
56
56
  "access": "public"
package/types.d.ts CHANGED
@@ -48,6 +48,7 @@ export type IssueSource = "XsdLayer" | "ProseRule" | "EngineInternal";
48
48
  export type Spec =
49
49
  | "ST377-1"
50
50
  | "ST377-4"
51
+ | "ST429-8"
51
52
  | "ST429-9"
52
53
  | "ST2067-2"
53
54
  | "ST2067-3"
@@ -204,6 +205,18 @@ export type MimeType =
204
205
  * Mirrors ESLint's `"off"` / `"warn"` / `"error"` vocabulary, extended with the two IMF severity levels.
205
206
  */
206
207
  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
+ };
207
220
 
208
221
  /**
209
222
  * @deprecated
@@ -1390,7 +1403,11 @@ export interface EditionInfo {
1390
1403
  */
1391
1404
  strengthVerified: boolean;
1392
1405
  /**
1393
- * `false` when the clause is known or suspected wrong, or not yet checked against this edition's text.
1406
+ * The clause is known or suspected to be wrong.
1407
+ */
1408
+ suspect: boolean;
1409
+ /**
1410
+ * `true` only when the row was checked against this edition's text.
1394
1411
  */
1395
1412
  verified: boolean;
1396
1413
  }
@@ -1420,8 +1437,24 @@ export interface RulesConfig {
1420
1437
  */
1421
1438
  export interface ValidationResult {
1422
1439
  package: Imferno;
1440
+ /**
1441
+ * Keys of the `rules` option that select no rule (typos, unknown editions); they were ignored. Absent when every key matched.
1442
+ */
1443
+ rule_warnings?: RuleValidationWarning[];
1423
1444
  validation: ValidationReport;
1424
1445
  }
1446
+ /**
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.
1450
+ */
1451
+ export interface RuleValidationWarning {
1452
+ /**
1453
+ * The configured key that triggered the warning.
1454
+ */
1455
+ key: string;
1456
+ reason: RuleValidationReason;
1457
+ }
1425
1458
 
1426
1459
  /** Core constraints (ST 2067-2) edition to validate against. `"auto"` detects it from the CPL. */
1427
1460
  export type CoreSpec = "auto" | "v2013" | "v2016" | "v2020";