@blockcast/mmt-container 0.4.0-main.3ce0fa24e37d → 0.4.0-main.3db2b1977a44

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.
Files changed (97) hide show
  1. package/README.md +6 -4
  2. package/dist/browser-runtime.js +395 -67
  3. package/dist/browser-runtime.js.map +3 -3
  4. package/dist/carp-catalog.d.ts +12 -8
  5. package/dist/carp-catalog.d.ts.map +1 -1
  6. package/dist/carp-catalog.js +26 -3
  7. package/dist/carp-catalog.js.map +2 -2
  8. package/dist/catalog-fec-params.js.map +2 -2
  9. package/dist/catalog-network-source.d.ts +24 -2
  10. package/dist/catalog-network-source.d.ts.map +1 -1
  11. package/dist/catalog-network-source.js +21 -1
  12. package/dist/catalog-network-source.js.map +2 -2
  13. package/dist/delivery-catalog.js +14 -0
  14. package/dist/delivery-catalog.js.map +2 -2
  15. package/dist/fec-manager.d.ts +36 -1
  16. package/dist/fec-manager.d.ts.map +1 -1
  17. package/dist/fec-manager.js +161 -23
  18. package/dist/fec-manager.js.map +3 -3
  19. package/dist/index.d.ts +3 -3
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +2 -0
  22. package/dist/index.js.map +2 -2
  23. package/dist/iso-block-locator.d.ts +29 -0
  24. package/dist/iso-block-locator.d.ts.map +1 -1
  25. package/dist/iso-block-locator.js +97 -17
  26. package/dist/iso-block-locator.js.map +3 -3
  27. package/dist/manifest-auth-plan.js +16 -8
  28. package/dist/manifest-auth-plan.js.map +4 -4
  29. package/dist/mmtp-container-parser.no-modules.js +65 -12
  30. package/dist/mmtp-container-parser.no-modules.js.map +4 -4
  31. package/dist/mmtp-fec-session.d.ts.map +1 -1
  32. package/dist/mmtp-fec-session.js +3 -1
  33. package/dist/mmtp-fec-session.js.map +2 -2
  34. package/dist/mmtp-router.d.ts +14 -1
  35. package/dist/mmtp-router.d.ts.map +1 -1
  36. package/dist/mmtp-router.js +11 -0
  37. package/dist/mmtp-router.js.map +2 -2
  38. package/dist/multicast-auth-catalog.js +16 -8
  39. package/dist/multicast-auth-catalog.js.map +4 -4
  40. package/dist/multicast-input.d.ts +3 -3
  41. package/dist/multicast-input.d.ts.map +1 -1
  42. package/dist/multicast-input.js +20 -15
  43. package/dist/multicast-input.js.map +2 -2
  44. package/dist/multicast-manager.d.ts +17 -1
  45. package/dist/multicast-manager.d.ts.map +1 -1
  46. package/dist/multicast-manager.js +205 -24
  47. package/dist/multicast-manager.js.map +3 -3
  48. package/dist/multicast-transport.d.ts +6 -0
  49. package/dist/multicast-transport.d.ts.map +1 -1
  50. package/dist/multicast-transport.js +16 -1
  51. package/dist/multicast-transport.js.map +2 -2
  52. package/dist/no-modules.d.ts +1 -1
  53. package/dist/no-modules.d.ts.map +1 -1
  54. package/dist/no-modules.js +65 -12
  55. package/dist/no-modules.js.map +4 -4
  56. package/dist/phase14-catalog-override.d.ts +1 -1
  57. package/dist/phase14-catalog-override.d.ts.map +1 -1
  58. package/dist/phase14-catalog-override.js +2 -2
  59. package/dist/phase14-catalog-override.js.map +2 -2
  60. package/dist/repair-fetch.d.ts +58 -5
  61. package/dist/repair-fetch.d.ts.map +1 -1
  62. package/dist/repair-fetch.js +122 -22
  63. package/dist/repair-fetch.js.map +3 -3
  64. package/dist/source-auth.js +2688 -1
  65. package/dist/source-auth.js.map +4 -4
  66. package/package.json +5 -5
  67. package/schemas/catalog.schema.json +39 -9
  68. package/src/carp-catalog.ts +47 -10
  69. package/src/catalog-network-source.ts +45 -2
  70. package/src/fec-manager.ts +99 -14
  71. package/src/index.ts +5 -0
  72. package/src/iso-block-locator.ts +97 -6
  73. package/src/mmtp-fec-session.ts +7 -1
  74. package/src/mmtp-router.ts +24 -0
  75. package/src/multicast-input.ts +31 -24
  76. package/src/multicast-manager.ts +27 -0
  77. package/src/multicast-transport.ts +3 -0
  78. package/src/no-modules.ts +1 -1
  79. package/src/phase14-catalog-override.ts +3 -3
  80. package/src/repair-fetch.ts +204 -25
  81. package/test-vectors/bc-provenance-v2.json +1526 -0
  82. package/test-vectors/catalog/README.md +17 -0
  83. package/test-vectors/catalog/negative/fec-block-profile-missing.json +1 -1
  84. package/test-vectors/catalog/negative/fec-block-profile-retired.json +1 -1
  85. package/test-vectors/catalog/negative/fec-block-profile-unknown.json +1 -1
  86. package/test-vectors/catalog/negative/init-data-inline-without-data.json +22 -0
  87. package/test-vectors/catalog/negative/mmtp-mode-mpu.json +15 -0
  88. package/test-vectors/catalog/negative/multicast-amt-dns-without-relay.json +37 -0
  89. package/test-vectors/catalog/negative/presentation-anchor-unsafe.json +16 -0
  90. package/test-vectors/catalog/positive/fec-iso-ssbg1.json +1 -1
  91. package/test-vectors/catalog/positive/fec-multicast.json +1 -1
  92. package/test-vectors/catalog/positive/mmt01-12-1-init-ref-anchor.json +29 -0
  93. package/test-vectors/catalog/positive/multicast-amt-discovery-omitted.json +37 -0
  94. package/test-vectors/catalog/positive/multicast-amt-dns-relay.json +38 -0
  95. package/test-vectors/catalog/positive/presentation-anchor-negative.json +27 -0
  96. package/test-vectors/catalog/section-codes.json +4 -0
  97. package/test-vectors/generate-bc-provenance-v2.mjs +252 -0
package/README.md CHANGED
@@ -203,9 +203,10 @@ interface MulticastEndpoint {
203
203
  }
204
204
 
205
205
  // Relay/tuning discovery is catalog-level, not per-endpoint:
206
- // multicast.networkSource: [{ type: "amt", discovery: "driad" | "manual",
206
+ // multicast.networkSource: [{ type: "amt", discovery?: "dns" | "driad" | "manual",
207
207
  // relay?: string, port?: number }]
208
- // `relay` is REQUIRED for discovery: "manual"; "driad" resolves it at runtime.
208
+ // `relay` is REQUIRED for "dns" and "manual"; "driad" resolves it at runtime.
209
+ // An omitted `discovery` with a hostname relay is "dns" (multicast-01 4.2.1).
209
210
  // An endpoint-level `relayAddress` is retired — the schema, moq-rs and
210
211
  // `validateCmsfMmtpCatalog` (`multicast_relay_address`) all reject it.
211
212
 
@@ -249,8 +250,9 @@ DRIAD *and* a named relay — emit both entries, `[{type: "amt", discovery:
249
250
  non-DRIAD AMT entry, so the manual one carries the relay while the DRIAD one
250
251
  keeps the discovery request. An `atsc3` endpoint now
251
252
  requires a `{type: "atsc3", …}` entry and throws `atsc3_requires_tuning`
252
- without one: that entry carries the frequency, PLP, service id and SLS URI,
253
- which is the only tuning information an ATSC3 receiver has (the SLS behind
253
+ without one: that entry carries the frequency in kHz (REQUIRED) and,
254
+ optionally, the PLP, service id and SLS URI (draft -01 4.2.2/4.2.3) — the only
255
+ tuning information an ATSC3 receiver has (the SLS behind
254
256
  `slsUri` describes the MMTP session, MP table included, per A/331:2026-04 7.2,
255
257
  and nothing of this profile, so `manifestPort` and keys come from provisioning), and the schema
256
258
  cannot enforce it because `networkSource` is optional there (a native join has