@blockcast/mmt-container 0.1.0-main.149f78a4adae
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 +432 -0
- package/dist/.build-stamp +0 -0
- package/dist/__tests__/test-utils.d.ts +71 -0
- package/dist/__tests__/test-utils.d.ts.map +1 -0
- package/dist/align.d.ts +148 -0
- package/dist/align.d.ts.map +1 -0
- package/dist/align.js +88 -0
- package/dist/align.js.map +7 -0
- package/dist/audio-init-parser.d.ts +66 -0
- package/dist/audio-init-parser.d.ts.map +1 -0
- package/dist/audio-init-parser.js +118 -0
- package/dist/audio-init-parser.js.map +7 -0
- package/dist/audio-ring-buffer.d.ts +50 -0
- package/dist/audio-ring-buffer.d.ts.map +1 -0
- package/dist/audio-ring-buffer.js +93 -0
- package/dist/audio-ring-buffer.js.map +7 -0
- package/dist/authored-timing.d.ts +32 -0
- package/dist/authored-timing.d.ts.map +1 -0
- package/dist/authored-timing.js +32 -0
- package/dist/authored-timing.js.map +7 -0
- package/dist/browser-runtime.js +17109 -0
- package/dist/browser-runtime.js.map +7 -0
- package/dist/carp-catalog.d.ts +318 -0
- package/dist/carp-catalog.d.ts.map +1 -0
- package/dist/carp-catalog.js +549 -0
- package/dist/carp-catalog.js.map +7 -0
- package/dist/catalog-fec-params.d.ts +82 -0
- package/dist/catalog-fec-params.d.ts.map +1 -0
- package/dist/catalog-fec-params.js +66 -0
- package/dist/catalog-fec-params.js.map +7 -0
- package/dist/catalog-network-source.d.ts +19 -0
- package/dist/catalog-network-source.d.ts.map +1 -0
- package/dist/catalog-network-source.js +22 -0
- package/dist/catalog-network-source.js.map +7 -0
- package/dist/catalog-validator.d.ts +18 -0
- package/dist/catalog-validator.d.ts.map +1 -0
- package/dist/catalog-validator.js +7747 -0
- package/dist/catalog-validator.js.map +7 -0
- package/dist/cmaf-block-assembler.d.ts +168 -0
- package/dist/cmaf-block-assembler.d.ts.map +1 -0
- package/dist/cmaf-block-assembler.js +1755 -0
- package/dist/cmaf-block-assembler.js.map +7 -0
- package/dist/cmaf-group-batcher.d.ts +38 -0
- package/dist/cmaf-group-batcher.d.ts.map +1 -0
- package/dist/cmaf-group-batcher.js +195 -0
- package/dist/cmaf-group-batcher.js.map +7 -0
- package/dist/cmcd-producer.d.ts +104 -0
- package/dist/cmcd-producer.d.ts.map +1 -0
- package/dist/cmcd-producer.js +207 -0
- package/dist/cmcd-producer.js.map +7 -0
- package/dist/codec-utils.d.ts +235 -0
- package/dist/codec-utils.d.ts.map +1 -0
- package/dist/codec-utils.js +1225 -0
- package/dist/codec-utils.js.map +7 -0
- package/dist/fec-codec.d.ts +32 -0
- package/dist/fec-codec.d.ts.map +1 -0
- package/dist/fec-codec.js +47 -0
- package/dist/fec-codec.js.map +7 -0
- package/dist/fec-manager.d.ts +266 -0
- package/dist/fec-manager.d.ts.map +1 -0
- package/dist/fec-manager.js +1447 -0
- package/dist/fec-manager.js.map +7 -0
- package/dist/fec-starvation-detector.d.ts +59 -0
- package/dist/fec-starvation-detector.d.ts.map +1 -0
- package/dist/fec-starvation-detector.js +75 -0
- package/dist/fec-starvation-detector.js.map +7 -0
- package/dist/fec-worker-setup.d.ts +76 -0
- package/dist/fec-worker-setup.d.ts.map +1 -0
- package/dist/fec-worker-setup.js +603 -0
- package/dist/fec-worker-setup.js.map +7 -0
- package/dist/fmp4-completion.d.ts +30 -0
- package/dist/fmp4-completion.d.ts.map +1 -0
- package/dist/fmp4-completion.js +21 -0
- package/dist/fmp4-completion.js.map +7 -0
- package/dist/fmp4-reader.d.ts +37 -0
- package/dist/fmp4-reader.d.ts.map +1 -0
- package/dist/fmp4-reader.js +100 -0
- package/dist/fmp4-reader.js.map +7 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +330 -0
- package/dist/index.js.map +7 -0
- package/dist/iso-bmff-timing.d.ts +47 -0
- package/dist/iso-bmff-timing.d.ts.map +1 -0
- package/dist/iso-bmff-timing.js +526 -0
- package/dist/iso-bmff-timing.js.map +7 -0
- package/dist/loc.d.ts +68 -0
- package/dist/loc.d.ts.map +1 -0
- package/dist/loc.js +143 -0
- package/dist/loc.js.map +7 -0
- package/dist/manifest-auth-plan.d.ts +30 -0
- package/dist/manifest-auth-plan.d.ts.map +1 -0
- package/dist/manifest-auth-plan.js +1267 -0
- package/dist/manifest-auth-plan.js.map +7 -0
- package/dist/media-router.d.ts +338 -0
- package/dist/media-router.d.ts.map +1 -0
- package/dist/media-router.js +802 -0
- package/dist/media-router.js.map +7 -0
- package/dist/mfu-reassembler.d.ts +264 -0
- package/dist/mfu-reassembler.d.ts.map +1 -0
- package/dist/mfu-reassembler.js +2668 -0
- package/dist/mfu-reassembler.js.map +7 -0
- package/dist/mfu-reassembly-policy.d.ts +24 -0
- package/dist/mfu-reassembly-policy.d.ts.map +1 -0
- package/dist/mfu-reassembly-policy.js +99 -0
- package/dist/mfu-reassembly-policy.js.map +7 -0
- package/dist/mmtp-container-parser.d.ts +304 -0
- package/dist/mmtp-container-parser.d.ts.map +1 -0
- package/dist/mmtp-container-parser.js +5378 -0
- package/dist/mmtp-container-parser.js.map +7 -0
- package/dist/mmtp-container-parser.no-modules.js +7853 -0
- package/dist/mmtp-container-parser.no-modules.js.map +7 -0
- package/dist/mmtp-decode-pipeline.d.ts +96 -0
- package/dist/mmtp-decode-pipeline.d.ts.map +1 -0
- package/dist/mmtp-decode-pipeline.js +5589 -0
- package/dist/mmtp-decode-pipeline.js.map +7 -0
- package/dist/mmtp-router.d.ts +383 -0
- package/dist/mmtp-router.d.ts.map +1 -0
- package/dist/mmtp-router.js +8384 -0
- package/dist/mmtp-router.js.map +7 -0
- package/dist/mmtp-to-cmaf.d.ts +166 -0
- package/dist/mmtp-to-cmaf.d.ts.map +1 -0
- package/dist/mmtp-to-cmaf.js +781 -0
- package/dist/mmtp-to-cmaf.js.map +7 -0
- package/dist/multicast-auth-catalog.d.ts +115 -0
- package/dist/multicast-auth-catalog.d.ts.map +1 -0
- package/dist/multicast-auth-catalog.js +202 -0
- package/dist/multicast-auth-catalog.js.map +7 -0
- package/dist/multicast-input.d.ts +107 -0
- package/dist/multicast-input.d.ts.map +1 -0
- package/dist/multicast-input.js +256 -0
- package/dist/multicast-input.js.map +7 -0
- package/dist/multicast-manager.d.ts +330 -0
- package/dist/multicast-manager.d.ts.map +1 -0
- package/dist/multicast-manager.js +11032 -0
- package/dist/multicast-manager.js.map +7 -0
- package/dist/multicast-transport.d.ts +62 -0
- package/dist/multicast-transport.d.ts.map +1 -0
- package/dist/multicast-transport.js +338 -0
- package/dist/multicast-transport.js.map +7 -0
- package/dist/multicast-unwrap.d.ts +57 -0
- package/dist/multicast-unwrap.d.ts.map +1 -0
- package/dist/multicast-unwrap.js +384 -0
- package/dist/multicast-unwrap.js.map +7 -0
- package/dist/no-modules.d.ts +9 -0
- package/dist/no-modules.d.ts.map +1 -0
- package/dist/no-modules.js +7819 -0
- package/dist/no-modules.js.map +7 -0
- package/dist/phase14-catalog-override.d.ts +126 -0
- package/dist/phase14-catalog-override.d.ts.map +1 -0
- package/dist/phase14-catalog-override.js +155 -0
- package/dist/phase14-catalog-override.js.map +7 -0
- package/dist/repair-fetch.d.ts +58 -0
- package/dist/repair-fetch.d.ts.map +1 -0
- package/dist/repair-fetch.js +117 -0
- package/dist/repair-fetch.js.map +7 -0
- package/dist/sample-combiner.d.ts +182 -0
- package/dist/sample-combiner.d.ts.map +1 -0
- package/dist/sample-combiner.js +571 -0
- package/dist/sample-combiner.js.map +7 -0
- package/dist/signaling.d.ts +29 -0
- package/dist/signaling.d.ts.map +1 -0
- package/dist/signaling.js +232 -0
- package/dist/signaling.js.map +7 -0
- package/dist/source-auth.d.ts +2 -0
- package/dist/source-auth.d.ts.map +1 -0
- package/dist/source-auth.js +1220 -0
- package/dist/source-auth.js.map +7 -0
- package/dist/switching-set-alignment.d.ts +61 -0
- package/dist/switching-set-alignment.d.ts.map +1 -0
- package/dist/switching-set-alignment.js +85 -0
- package/dist/switching-set-alignment.js.map +7 -0
- package/dist/timestamp-codec.d.ts +34 -0
- package/dist/timestamp-codec.d.ts.map +1 -0
- package/dist/timestamp-codec.js +456 -0
- package/dist/timestamp-codec.js.map +7 -0
- package/dist/track-pipeline-setup.d.ts +72 -0
- package/dist/track-pipeline-setup.d.ts.map +1 -0
- package/dist/track-pipeline-setup.js +306 -0
- package/dist/track-pipeline-setup.js.map +7 -0
- package/dist/track-pipeline.d.ts +121 -0
- package/dist/track-pipeline.d.ts.map +1 -0
- package/dist/track-pipeline.js +229 -0
- package/dist/track-pipeline.js.map +7 -0
- package/dist/track-session.d.ts +269 -0
- package/dist/track-session.d.ts.map +1 -0
- package/dist/track-session.js +597 -0
- package/dist/track-session.js.map +7 -0
- package/dist/transport-pool.d.ts +69 -0
- package/dist/transport-pool.d.ts.map +1 -0
- package/dist/transport-pool.js +88 -0
- package/dist/transport-pool.js.map +7 -0
- package/dist/wasm-mfu-reassembler.d.ts +81 -0
- package/dist/wasm-mfu-reassembler.d.ts.map +1 -0
- package/dist/wasm-mfu-reassembler.js +1915 -0
- package/dist/wasm-mfu-reassembler.js.map +7 -0
- package/dist/wasm-mmtp-container-parser.d.ts +10 -0
- package/dist/wasm-mmtp-container-parser.d.ts.map +1 -0
- package/dist/wasm-mmtp-container-parser.js +5635 -0
- package/dist/wasm-mmtp-container-parser.js.map +7 -0
- package/node_modules/@blockcast/fec-worker/README.md +213 -0
- package/node_modules/@blockcast/fec-worker/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts +80 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.js +270 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-client.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.d.ts +252 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.js +11 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker-types.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.d.ts +14 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.js +565 -0
- package/node_modules/@blockcast/fec-worker/dist/fec-worker.js.map +7 -0
- package/node_modules/@blockcast/fec-worker/dist/index.d.ts +10 -0
- package/node_modules/@blockcast/fec-worker/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/index.js +8 -0
- package/node_modules/@blockcast/fec-worker/dist/index.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.d.ts +20 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.js +349 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-fec-worker.js.map +7 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.d.ts +104 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.js +181 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-client.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.d.ts +179 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.js +47 -0
- package/node_modules/@blockcast/fec-worker/dist/shred-worker-types.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/transfer.d.ts +9 -0
- package/node_modules/@blockcast/fec-worker/dist/transfer.d.ts.map +1 -0
- package/node_modules/@blockcast/fec-worker/dist/transfer.js +13 -0
- package/node_modules/@blockcast/fec-worker/dist/transfer.js.map +1 -0
- package/node_modules/@blockcast/fec-worker/package.json +59 -0
- package/node_modules/@blockcast/fec-worker/src/fec-worker-client.ts +309 -0
- package/node_modules/@blockcast/fec-worker/src/fec-worker-types.ts +268 -0
- package/node_modules/@blockcast/fec-worker/src/fec-worker.ts +1048 -0
- package/node_modules/@blockcast/fec-worker/src/index.ts +32 -0
- package/node_modules/@blockcast/fec-worker/src/shred-fec-worker.ts +558 -0
- package/node_modules/@blockcast/fec-worker/src/shred-worker-client.ts +222 -0
- package/node_modules/@blockcast/fec-worker/src/shred-worker-types.ts +194 -0
- package/node_modules/@blockcast/fec-worker/src/transfer.ts +12 -0
- package/node_modules/@blockcast/mmt-alta-parse/README.md +181 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts +57 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.js +115 -0
- package/node_modules/@blockcast/mmt-alta-parse/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-alta-parse/package.json +50 -0
- package/node_modules/@blockcast/mmt-alta-parse/src/index.ts +136 -0
- package/node_modules/@blockcast/mmt-base/README.md +120 -0
- package/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-base/dist/index.d.ts +2 -0
- package/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/index.js +2 -0
- package/node_modules/@blockcast/mmt-base/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +275 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.js +644 -0
- package/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +1 -0
- package/node_modules/@blockcast/mmt-base/package.json +49 -0
- package/node_modules/@blockcast/mmt-base/src/index.ts +1 -0
- package/node_modules/@blockcast/mmt-base/src/mmtp.ts +898 -0
- package/node_modules/@blockcast/mmt-fec/README.md +270 -0
- package/node_modules/@blockcast/mmt-fec/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts +80 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.js +294 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-manager.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.d.ts +72 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.js +192 -0
- package/node_modules/@blockcast/mmt-fec/dist/block-processor.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.d.ts +46 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.js +96 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-recovery.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.d.ts +33 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.js +57 -0
- package/node_modules/@blockcast/mmt-fec/dist/cmaf-symbols.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.d.ts +185 -0
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.js +273 -0
- package/node_modules/@blockcast/mmt-fec/dist/fec-block-mapper.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/index.d.ts +22 -0
- package/node_modules/@blockcast/mmt-fec/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/index.js +22 -0
- package/node_modules/@blockcast/mmt-fec/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.d.ts +20 -0
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.js +28 -0
- package/node_modules/@blockcast/mmt-fec/dist/loc-symbols.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts +174 -0
- package/node_modules/@blockcast/mmt-fec/dist/oti.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/oti.js +256 -0
- package/node_modules/@blockcast/mmt-fec/dist/oti.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.d.ts +41 -0
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.js +81 -0
- package/node_modules/@blockcast/mmt-fec/dist/reorder-buffer.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/README.md +181 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts +57 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.js +115 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/package.json +50 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-alta-parse/src/index.ts +136 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/README.md +120 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts +2 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.js +2 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts +275 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.js +644 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/dist/mmtp.js.map +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/package.json +49 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/index.ts +1 -0
- package/node_modules/@blockcast/mmt-fec/node_modules/@blockcast/mmt-base/src/mmtp.ts +898 -0
- package/node_modules/@blockcast/mmt-fec/package.json +79 -0
- package/node_modules/@blockcast/mmt-fec/src/block-manager.ts +369 -0
- package/node_modules/@blockcast/mmt-fec/src/block-processor.ts +277 -0
- package/node_modules/@blockcast/mmt-fec/src/cmaf-recovery.ts +127 -0
- package/node_modules/@blockcast/mmt-fec/src/cmaf-symbols.ts +68 -0
- package/node_modules/@blockcast/mmt-fec/src/fec-block-mapper.ts +332 -0
- package/node_modules/@blockcast/mmt-fec/src/index.ts +77 -0
- package/node_modules/@blockcast/mmt-fec/src/loc-symbols.ts +34 -0
- package/node_modules/@blockcast/mmt-fec/src/oti.ts +319 -0
- package/node_modules/@blockcast/mmt-fec/src/reorder-buffer.ts +101 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/.build-stamp +0 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.d.ts +28 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.js +128 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/admission.js.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.d.ts +4 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.js +4 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/index.js.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.d.ts +37 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.js +179 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/source-auth.js.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.d.ts +90 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.d.ts.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.js +462 -0
- package/node_modules/@blockcast/mmt-manifest-verify/dist/verifier.js.map +1 -0
- package/node_modules/@blockcast/mmt-manifest-verify/package.json +45 -0
- package/node_modules/@blockcast/mmt-manifest-verify/src/admission.ts +171 -0
- package/node_modules/@blockcast/mmt-manifest-verify/src/index.ts +3 -0
- package/node_modules/@blockcast/mmt-manifest-verify/src/source-auth.ts +230 -0
- package/node_modules/@blockcast/mmt-manifest-verify/src/verifier.ts +636 -0
- package/node_modules/@noble/hashes/LICENSE +21 -0
- package/node_modules/@noble/hashes/README.md +521 -0
- package/node_modules/@noble/hashes/_assert.d.ts +17 -0
- package/node_modules/@noble/hashes/_assert.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_assert.js +18 -0
- package/node_modules/@noble/hashes/_assert.js.map +1 -0
- package/node_modules/@noble/hashes/_blake.d.ts +14 -0
- package/node_modules/@noble/hashes/_blake.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_blake.js +50 -0
- package/node_modules/@noble/hashes/_blake.js.map +1 -0
- package/node_modules/@noble/hashes/_md.d.ts +51 -0
- package/node_modules/@noble/hashes/_md.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_md.js +162 -0
- package/node_modules/@noble/hashes/_md.js.map +1 -0
- package/node_modules/@noble/hashes/_u64.d.ts +55 -0
- package/node_modules/@noble/hashes/_u64.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_u64.js +90 -0
- package/node_modules/@noble/hashes/_u64.js.map +1 -0
- package/node_modules/@noble/hashes/argon2.d.ts +32 -0
- package/node_modules/@noble/hashes/argon2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/argon2.js +401 -0
- package/node_modules/@noble/hashes/argon2.js.map +1 -0
- package/node_modules/@noble/hashes/blake1.d.ts +106 -0
- package/node_modules/@noble/hashes/blake1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake1.js +459 -0
- package/node_modules/@noble/hashes/blake1.js.map +1 -0
- package/node_modules/@noble/hashes/blake2.d.ts +116 -0
- package/node_modules/@noble/hashes/blake2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2.js +420 -0
- package/node_modules/@noble/hashes/blake2.js.map +1 -0
- package/node_modules/@noble/hashes/blake2b.d.ts +11 -0
- package/node_modules/@noble/hashes/blake2b.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2b.js +14 -0
- package/node_modules/@noble/hashes/blake2b.js.map +1 -0
- package/node_modules/@noble/hashes/blake2s.d.ts +20 -0
- package/node_modules/@noble/hashes/blake2s.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2s.js +24 -0
- package/node_modules/@noble/hashes/blake2s.js.map +1 -0
- package/node_modules/@noble/hashes/blake3.d.ts +54 -0
- package/node_modules/@noble/hashes/blake3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake3.js +255 -0
- package/node_modules/@noble/hashes/blake3.js.map +1 -0
- package/node_modules/@noble/hashes/crypto.d.ts +2 -0
- package/node_modules/@noble/hashes/crypto.d.ts.map +1 -0
- package/node_modules/@noble/hashes/crypto.js +5 -0
- package/node_modules/@noble/hashes/crypto.js.map +1 -0
- package/node_modules/@noble/hashes/cryptoNode.d.ts +2 -0
- package/node_modules/@noble/hashes/cryptoNode.d.ts.map +1 -0
- package/node_modules/@noble/hashes/cryptoNode.js +18 -0
- package/node_modules/@noble/hashes/cryptoNode.js.map +1 -0
- package/node_modules/@noble/hashes/eskdf.d.ts +47 -0
- package/node_modules/@noble/hashes/eskdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/eskdf.js +166 -0
- package/node_modules/@noble/hashes/eskdf.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_assert.d.ts +17 -0
- package/node_modules/@noble/hashes/esm/_assert.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_assert.js +15 -0
- package/node_modules/@noble/hashes/esm/_assert.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_blake.d.ts +14 -0
- package/node_modules/@noble/hashes/esm/_blake.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_blake.js +45 -0
- package/node_modules/@noble/hashes/esm/_blake.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_md.d.ts +51 -0
- package/node_modules/@noble/hashes/esm/_md.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_md.js +155 -0
- package/node_modules/@noble/hashes/esm/_md.js.map +1 -0
- package/node_modules/@noble/hashes/esm/_u64.d.ts +55 -0
- package/node_modules/@noble/hashes/esm/_u64.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/_u64.js +67 -0
- package/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
- package/node_modules/@noble/hashes/esm/argon2.d.ts +32 -0
- package/node_modules/@noble/hashes/esm/argon2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/argon2.js +392 -0
- package/node_modules/@noble/hashes/esm/argon2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake1.d.ts +106 -0
- package/node_modules/@noble/hashes/esm/blake1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake1.js +452 -0
- package/node_modules/@noble/hashes/esm/blake1.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2.d.ts +116 -0
- package/node_modules/@noble/hashes/esm/blake2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2.js +413 -0
- package/node_modules/@noble/hashes/esm/blake2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2b.d.ts +11 -0
- package/node_modules/@noble/hashes/esm/blake2b.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2b.js +11 -0
- package/node_modules/@noble/hashes/esm/blake2b.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2s.d.ts +20 -0
- package/node_modules/@noble/hashes/esm/blake2s.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake2s.js +21 -0
- package/node_modules/@noble/hashes/esm/blake2s.js.map +1 -0
- package/node_modules/@noble/hashes/esm/blake3.d.ts +54 -0
- package/node_modules/@noble/hashes/esm/blake3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/blake3.js +251 -0
- package/node_modules/@noble/hashes/esm/blake3.js.map +1 -0
- package/node_modules/@noble/hashes/esm/crypto.d.ts +2 -0
- package/node_modules/@noble/hashes/esm/crypto.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/crypto.js +2 -0
- package/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.d.ts +2 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.js +15 -0
- package/node_modules/@noble/hashes/esm/cryptoNode.js.map +1 -0
- package/node_modules/@noble/hashes/esm/eskdf.d.ts +47 -0
- package/node_modules/@noble/hashes/esm/eskdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/eskdf.js +160 -0
- package/node_modules/@noble/hashes/esm/eskdf.js.map +1 -0
- package/node_modules/@noble/hashes/esm/hkdf.d.ts +36 -0
- package/node_modules/@noble/hashes/esm/hkdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/hkdf.js +82 -0
- package/node_modules/@noble/hashes/esm/hkdf.js.map +1 -0
- package/node_modules/@noble/hashes/esm/hmac.d.ts +35 -0
- package/node_modules/@noble/hashes/esm/hmac.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/hmac.js +86 -0
- package/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
- package/node_modules/@noble/hashes/esm/index.d.ts +2 -0
- package/node_modules/@noble/hashes/esm/index.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/index.js +33 -0
- package/node_modules/@noble/hashes/esm/index.js.map +1 -0
- package/node_modules/@noble/hashes/esm/legacy.d.ts +71 -0
- package/node_modules/@noble/hashes/esm/legacy.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/legacy.js +281 -0
- package/node_modules/@noble/hashes/esm/legacy.js.map +1 -0
- package/node_modules/@noble/hashes/esm/package.json +10 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.d.ts +23 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.js +97 -0
- package/node_modules/@noble/hashes/esm/pbkdf2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/ripemd160.d.ts +13 -0
- package/node_modules/@noble/hashes/esm/ripemd160.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/ripemd160.js +13 -0
- package/node_modules/@noble/hashes/esm/ripemd160.js.map +1 -0
- package/node_modules/@noble/hashes/esm/scrypt.d.ts +34 -0
- package/node_modules/@noble/hashes/esm/scrypt.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/scrypt.js +228 -0
- package/node_modules/@noble/hashes/esm/scrypt.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha1.d.ts +11 -0
- package/node_modules/@noble/hashes/esm/sha1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha1.js +11 -0
- package/node_modules/@noble/hashes/esm/sha1.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha2.d.ts +159 -0
- package/node_modules/@noble/hashes/esm/sha2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha2.js +375 -0
- package/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha256.d.ts +20 -0
- package/node_modules/@noble/hashes/esm/sha256.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha256.js +20 -0
- package/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.d.ts +142 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.js +393 -0
- package/node_modules/@noble/hashes/esm/sha3-addons.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3.d.ts +53 -0
- package/node_modules/@noble/hashes/esm/sha3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha3.js +234 -0
- package/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
- package/node_modules/@noble/hashes/esm/sha512.d.ts +26 -0
- package/node_modules/@noble/hashes/esm/sha512.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/sha512.js +26 -0
- package/node_modules/@noble/hashes/esm/sha512.js.map +1 -0
- package/node_modules/@noble/hashes/esm/utils.d.ts +161 -0
- package/node_modules/@noble/hashes/esm/utils.d.ts.map +1 -0
- package/node_modules/@noble/hashes/esm/utils.js +281 -0
- package/node_modules/@noble/hashes/esm/utils.js.map +1 -0
- package/node_modules/@noble/hashes/hkdf.d.ts +36 -0
- package/node_modules/@noble/hashes/hkdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/hkdf.js +88 -0
- package/node_modules/@noble/hashes/hkdf.js.map +1 -0
- package/node_modules/@noble/hashes/hmac.d.ts +35 -0
- package/node_modules/@noble/hashes/hmac.d.ts.map +1 -0
- package/node_modules/@noble/hashes/hmac.js +91 -0
- package/node_modules/@noble/hashes/hmac.js.map +1 -0
- package/node_modules/@noble/hashes/index.d.ts +1 -0
- package/node_modules/@noble/hashes/index.d.ts.map +1 -0
- package/node_modules/@noble/hashes/index.js +33 -0
- package/node_modules/@noble/hashes/index.js.map +1 -0
- package/node_modules/@noble/hashes/legacy.d.ts +71 -0
- package/node_modules/@noble/hashes/legacy.d.ts.map +1 -0
- package/node_modules/@noble/hashes/legacy.js +287 -0
- package/node_modules/@noble/hashes/legacy.js.map +1 -0
- package/node_modules/@noble/hashes/package.json +266 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts +23 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/pbkdf2.js +101 -0
- package/node_modules/@noble/hashes/pbkdf2.js.map +1 -0
- package/node_modules/@noble/hashes/ripemd160.d.ts +13 -0
- package/node_modules/@noble/hashes/ripemd160.d.ts.map +1 -0
- package/node_modules/@noble/hashes/ripemd160.js +16 -0
- package/node_modules/@noble/hashes/ripemd160.js.map +1 -0
- package/node_modules/@noble/hashes/scrypt.d.ts +34 -0
- package/node_modules/@noble/hashes/scrypt.d.ts.map +1 -0
- package/node_modules/@noble/hashes/scrypt.js +232 -0
- package/node_modules/@noble/hashes/scrypt.js.map +1 -0
- package/node_modules/@noble/hashes/sha1.d.ts +11 -0
- package/node_modules/@noble/hashes/sha1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha1.js +14 -0
- package/node_modules/@noble/hashes/sha1.js.map +1 -0
- package/node_modules/@noble/hashes/sha2.d.ts +159 -0
- package/node_modules/@noble/hashes/sha2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha2.js +384 -0
- package/node_modules/@noble/hashes/sha2.js.map +1 -0
- package/node_modules/@noble/hashes/sha256.d.ts +20 -0
- package/node_modules/@noble/hashes/sha256.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha256.js +23 -0
- package/node_modules/@noble/hashes/sha256.js.map +1 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts +142 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha3-addons.js +402 -0
- package/node_modules/@noble/hashes/sha3-addons.js.map +1 -0
- package/node_modules/@noble/hashes/sha3.d.ts +53 -0
- package/node_modules/@noble/hashes/sha3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha3.js +239 -0
- package/node_modules/@noble/hashes/sha3.js.map +1 -0
- package/node_modules/@noble/hashes/sha512.d.ts +26 -0
- package/node_modules/@noble/hashes/sha512.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha512.js +29 -0
- package/node_modules/@noble/hashes/sha512.js.map +1 -0
- package/node_modules/@noble/hashes/src/_assert.ts +22 -0
- package/node_modules/@noble/hashes/src/_blake.ts +50 -0
- package/node_modules/@noble/hashes/src/_md.ts +176 -0
- package/node_modules/@noble/hashes/src/_u64.ts +91 -0
- package/node_modules/@noble/hashes/src/argon2.ts +497 -0
- package/node_modules/@noble/hashes/src/blake1.ts +534 -0
- package/node_modules/@noble/hashes/src/blake2.ts +486 -0
- package/node_modules/@noble/hashes/src/blake2b.ts +10 -0
- package/node_modules/@noble/hashes/src/blake2s.ts +20 -0
- package/node_modules/@noble/hashes/src/blake3.ts +272 -0
- package/node_modules/@noble/hashes/src/crypto.ts +9 -0
- package/node_modules/@noble/hashes/src/cryptoNode.ts +15 -0
- package/node_modules/@noble/hashes/src/eskdf.ts +187 -0
- package/node_modules/@noble/hashes/src/hkdf.ts +88 -0
- package/node_modules/@noble/hashes/src/hmac.ts +94 -0
- package/node_modules/@noble/hashes/src/index.ts +31 -0
- package/node_modules/@noble/hashes/src/legacy.ts +293 -0
- package/node_modules/@noble/hashes/src/pbkdf2.ts +122 -0
- package/node_modules/@noble/hashes/src/ripemd160.ts +12 -0
- package/node_modules/@noble/hashes/src/scrypt.ts +257 -0
- package/node_modules/@noble/hashes/src/sha1.ts +10 -0
- package/node_modules/@noble/hashes/src/sha2.ts +402 -0
- package/node_modules/@noble/hashes/src/sha256.ts +24 -0
- package/node_modules/@noble/hashes/src/sha3-addons.ts +499 -0
- package/node_modules/@noble/hashes/src/sha3.ts +258 -0
- package/node_modules/@noble/hashes/src/sha512.ts +34 -0
- package/node_modules/@noble/hashes/src/utils.ts +395 -0
- package/node_modules/@noble/hashes/utils.d.ts +161 -0
- package/node_modules/@noble/hashes/utils.d.ts.map +1 -0
- package/node_modules/@noble/hashes/utils.js +313 -0
- package/node_modules/@noble/hashes/utils.js.map +1 -0
- package/package.json +203 -0
- package/schemas/catalog.schema.json +283 -0
- package/src/align.ts +235 -0
- package/src/audio-init-parser.ts +189 -0
- package/src/audio-ring-buffer.ts +120 -0
- package/src/authored-timing.ts +63 -0
- package/src/carp-catalog.ts +776 -0
- package/src/catalog-fec-params.ts +167 -0
- package/src/catalog-network-source.ts +49 -0
- package/src/catalog-validator.ts +34 -0
- package/src/cmaf-block-assembler.ts +1058 -0
- package/src/cmaf-group-batcher.ts +104 -0
- package/src/cmcd-producer.ts +329 -0
- package/src/codec-utils.ts +1539 -0
- package/src/fec-codec.ts +61 -0
- package/src/fec-manager.ts +1939 -0
- package/src/fec-starvation-detector.ts +128 -0
- package/src/fec-worker-setup.ts +177 -0
- package/src/fmp4-completion.ts +47 -0
- package/src/fmp4-reader.ts +112 -0
- package/src/index.ts +443 -0
- package/src/iso-bmff-timing.ts +688 -0
- package/src/loc.ts +181 -0
- package/src/manifest-auth-plan.ts +107 -0
- package/src/media-router.ts +1185 -0
- package/src/mfu-reassembler.ts +2842 -0
- package/src/mfu-reassembly-policy.ts +134 -0
- package/src/mmtp-container-parser.ts +1498 -0
- package/src/mmtp-decode-pipeline.ts +315 -0
- package/src/mmtp-router.ts +3027 -0
- package/src/mmtp-to-cmaf.ts +956 -0
- package/src/multicast-auth-catalog.ts +340 -0
- package/src/multicast-input.ts +439 -0
- package/src/multicast-manager.ts +1503 -0
- package/src/multicast-transport.ts +320 -0
- package/src/multicast-unwrap.ts +132 -0
- package/src/no-modules.ts +20 -0
- package/src/phase14-catalog-override.ts +336 -0
- package/src/repair-fetch.ts +217 -0
- package/src/sample-combiner.ts +846 -0
- package/src/signaling.ts +78 -0
- package/src/source-auth.ts +1 -0
- package/src/switching-set-alignment.ts +109 -0
- package/src/timestamp-codec.ts +265 -0
- package/src/track-pipeline-setup.ts +189 -0
- package/src/track-pipeline.ts +332 -0
- package/src/track-session.ts +778 -0
- package/src/transport-pool.ts +128 -0
- package/src/wasm-mfu-reassembler.ts +372 -0
- package/src/wasm-mmtp-container-parser.ts +23 -0
- package/test-vectors/align.json +199 -0
- package/test-vectors/catalog/README.md +25 -0
- package/test-vectors/catalog/negative/legacy-selection-params.json +15 -0
- package/test-vectors/catalog/negative/missing-mmtp-fields.json +12 -0
- package/test-vectors/catalog/negative/multicast-auth-padded-key.json +37 -0
- package/test-vectors/catalog/negative/multicast-auth-reused-track-format.json +53 -0
- package/test-vectors/catalog/negative/multicast-auth-trailing-pad-bits.json +37 -0
- package/test-vectors/catalog/negative/multicast-endpoint-missing-protocol-and-source.json +24 -0
- package/test-vectors/catalog/negative/network-source-object.json +25 -0
- package/test-vectors/catalog/negative/raptorq-unaligned-symbol.json +26 -0
- package/test-vectors/catalog/negative/repair-track-legacy-shape.json +18 -0
- package/test-vectors/catalog/negative/track-role-empty.json +16 -0
- package/test-vectors/catalog/negative/track-role-non-string.json +16 -0
- package/test-vectors/catalog/positive/fec-multicast.json +51 -0
- package/test-vectors/catalog/positive/flat-av.json +30 -0
- package/test-vectors/catalog/positive/multicast-auth-rotation.json +55 -0
- package/test-vectors/catalog/positive/ticks-and-mixed-timescales.json +39 -0
- package/test-vectors/catalog/positive/track-role.json +49 -0
- package/test-vectors/catalog/releases/moqcast-native-v16-v1/catalog.json +65 -0
- package/test-vectors/catalog/releases/moqcast-native-v16-v1.archive.sha256 +1 -0
- package/test-vectors/catalog-multicast-auth-v1.json +26 -0
- package/test-vectors/catalog-validation.json +148 -0
- package/test-vectors/catalog-validator-public-api.mjs +25 -0
- package/test-vectors/generate-source-auth-fixture.mjs +114 -0
- package/test-vectors/source-auth-v1.json +61 -0
- package/test-vectors/subsample-placement-v1.json +230 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import {
|
|
2
|
+
sourceAuthMerkleRoot,
|
|
3
|
+
sourceAuthObjectDigest,
|
|
4
|
+
sourceAuthSignaturePreimage,
|
|
5
|
+
trimRecoveredSourceAuthObject,
|
|
6
|
+
type SourceAuthGroupClose,
|
|
7
|
+
type SourceAuthObjectEntry,
|
|
8
|
+
} from './source-auth.js'
|
|
9
|
+
|
|
10
|
+
export type SourceAuthAdmissionState =
|
|
11
|
+
| 'pending-entry'
|
|
12
|
+
| 'pending-object'
|
|
13
|
+
| 'provisional'
|
|
14
|
+
| 'authenticated'
|
|
15
|
+
|
|
16
|
+
export interface SourceAuthObjectAdmission {
|
|
17
|
+
groupId: bigint
|
|
18
|
+
objectId: number
|
|
19
|
+
recovered: boolean
|
|
20
|
+
state: Exclude<SourceAuthAdmissionState, 'pending-object'>
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface PendingSourceAuthObject {
|
|
24
|
+
bytes: Uint8Array
|
|
25
|
+
recovered: boolean
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function requireU64(name: string, value: bigint): void {
|
|
29
|
+
if (value < 0n || value > 0xffff_ffff_ffff_ffffn) {
|
|
30
|
+
throw new Error(`${name} must be an unsigned 64-bit integer`)
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function equalBytes(left: Uint8Array, right: Uint8Array): boolean {
|
|
35
|
+
if (left.byteLength !== right.byteLength) return false
|
|
36
|
+
return left.every((value, index) => value === right[index])
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Bounded media/manifest rendezvous for the browser player receive path.
|
|
41
|
+
* Object digest admission is synchronous; only the group-close signature is deferred.
|
|
42
|
+
*/
|
|
43
|
+
export class SourceAuthAdmission {
|
|
44
|
+
readonly #manifestAuthenticated: boolean
|
|
45
|
+
readonly #entries = new Map<number, SourceAuthObjectEntry>()
|
|
46
|
+
readonly #pendingObjects = new Map<number, PendingSourceAuthObject>()
|
|
47
|
+
readonly #entriesAwaitingObjects = new Set<number>()
|
|
48
|
+
readonly #admissions = new Map<number, SourceAuthObjectAdmission>()
|
|
49
|
+
#groupId: bigint | null = null
|
|
50
|
+
#closed = false
|
|
51
|
+
|
|
52
|
+
constructor(options: { manifestAuthenticated: boolean }) {
|
|
53
|
+
this.#manifestAuthenticated = options.manifestAuthenticated
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
admitObject(input: {
|
|
57
|
+
groupId: bigint
|
|
58
|
+
objectId: number
|
|
59
|
+
bytes: Uint8Array
|
|
60
|
+
recovered?: boolean
|
|
61
|
+
}): SourceAuthObjectAdmission {
|
|
62
|
+
this.#requireGroup(input.groupId)
|
|
63
|
+
if (this.#closed) throw new Error('source-auth group is already closed')
|
|
64
|
+
if (this.#admissions.has(input.objectId) || this.#pendingObjects.has(input.objectId)) {
|
|
65
|
+
throw new Error(`duplicate source-auth object ${input.objectId}`)
|
|
66
|
+
}
|
|
67
|
+
const entry = this.#entries.get(input.objectId)
|
|
68
|
+
if (entry) {
|
|
69
|
+
this.#entriesAwaitingObjects.delete(input.objectId)
|
|
70
|
+
return this.#verifyObject(entry, input.bytes, input.recovered ?? false)
|
|
71
|
+
}
|
|
72
|
+
if (this.#pendingObjects.size >= 1) {
|
|
73
|
+
throw new Error('source-auth media exceeds one-object manifest skew')
|
|
74
|
+
}
|
|
75
|
+
this.#pendingObjects.set(input.objectId, {
|
|
76
|
+
bytes: input.bytes,
|
|
77
|
+
recovered: input.recovered ?? false,
|
|
78
|
+
})
|
|
79
|
+
return {
|
|
80
|
+
groupId: input.groupId,
|
|
81
|
+
objectId: input.objectId,
|
|
82
|
+
recovered: input.recovered ?? false,
|
|
83
|
+
state: 'pending-entry',
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
admitEntry(entry: SourceAuthObjectEntry): SourceAuthObjectAdmission | SourceAuthAdmissionState {
|
|
88
|
+
this.#requireGroup(entry.groupId)
|
|
89
|
+
if (this.#closed) throw new Error('source-auth group is already closed')
|
|
90
|
+
if (this.#entries.has(entry.objectId)) {
|
|
91
|
+
throw new Error(`duplicate source-auth manifest entry ${entry.objectId}`)
|
|
92
|
+
}
|
|
93
|
+
const pending = this.#pendingObjects.get(entry.objectId)
|
|
94
|
+
if (!pending && this.#entriesAwaitingObjects.size >= 1) {
|
|
95
|
+
throw new Error('source-auth manifest exceeds one-object media skew')
|
|
96
|
+
}
|
|
97
|
+
this.#entries.set(entry.objectId, entry)
|
|
98
|
+
if (!pending) {
|
|
99
|
+
this.#entriesAwaitingObjects.add(entry.objectId)
|
|
100
|
+
return 'pending-object'
|
|
101
|
+
}
|
|
102
|
+
this.#pendingObjects.delete(entry.objectId)
|
|
103
|
+
return this.#verifyObject(entry, pending.bytes, pending.recovered)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
objectState(objectId: number): SourceAuthAdmissionState | undefined {
|
|
107
|
+
if (this.#pendingObjects.has(objectId)) return 'pending-entry'
|
|
108
|
+
if (this.#entriesAwaitingObjects.has(objectId)) return 'pending-object'
|
|
109
|
+
if (this.#closed && this.#admissions.has(objectId)) return 'authenticated'
|
|
110
|
+
return this.#admissions.get(objectId)?.state
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
async verifyClose(
|
|
114
|
+
close: SourceAuthGroupClose,
|
|
115
|
+
authScope: Uint8Array,
|
|
116
|
+
publicKey: CryptoKey,
|
|
117
|
+
subtle: SubtleCrypto = globalThis.crypto.subtle,
|
|
118
|
+
): Promise<void> {
|
|
119
|
+
this.#requireGroup(close.groupId)
|
|
120
|
+
if (this.#closed) throw new Error('source-auth group is already closed')
|
|
121
|
+
if (this.#pendingObjects.size !== 0 || this.#entriesAwaitingObjects.size !== 0) {
|
|
122
|
+
throw new Error('source-auth group closed with unmatched objects or entries')
|
|
123
|
+
}
|
|
124
|
+
if (close.objectCount !== this.#entries.size || this.#admissions.size !== this.#entries.size) {
|
|
125
|
+
throw new Error('source-auth group close object count mismatch')
|
|
126
|
+
}
|
|
127
|
+
const root = sourceAuthMerkleRoot([...this.#entries.values()])
|
|
128
|
+
if (!equalBytes(root, close.root)) throw new Error('source-auth group root mismatch')
|
|
129
|
+
const verified = await subtle.verify(
|
|
130
|
+
'Ed25519',
|
|
131
|
+
publicKey,
|
|
132
|
+
new Uint8Array(close.signature).buffer,
|
|
133
|
+
new Uint8Array(
|
|
134
|
+
sourceAuthSignaturePreimage(authScope, close.groupId, close.objectCount, root),
|
|
135
|
+
).buffer,
|
|
136
|
+
)
|
|
137
|
+
if (!verified) throw new Error('source-auth group close signature failed')
|
|
138
|
+
for (const admission of this.#admissions.values()) admission.state = 'authenticated'
|
|
139
|
+
this.#closed = true
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#requireGroup(groupId: bigint): void {
|
|
143
|
+
requireU64('groupId', groupId)
|
|
144
|
+
if (this.#groupId === null) this.#groupId = groupId
|
|
145
|
+
else if (this.#groupId !== groupId) throw new Error('source-auth group identity mismatch')
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
#verifyObject(
|
|
149
|
+
entry: SourceAuthObjectEntry,
|
|
150
|
+
bytes: Uint8Array,
|
|
151
|
+
recovered: boolean,
|
|
152
|
+
): SourceAuthObjectAdmission {
|
|
153
|
+
const authenticated = recovered
|
|
154
|
+
? trimRecoveredSourceAuthObject(bytes, entry.trueLength)
|
|
155
|
+
: bytes
|
|
156
|
+
if (!recovered && bytes.byteLength !== entry.trueLength) {
|
|
157
|
+
throw new Error(`direct source-auth object length mismatch for ${entry.objectId}`)
|
|
158
|
+
}
|
|
159
|
+
if (!equalBytes(sourceAuthObjectDigest(authenticated), entry.digest)) {
|
|
160
|
+
throw new Error(`source-auth object digest mismatch for ${entry.objectId}`)
|
|
161
|
+
}
|
|
162
|
+
const admission: SourceAuthObjectAdmission = {
|
|
163
|
+
groupId: entry.groupId,
|
|
164
|
+
objectId: entry.objectId,
|
|
165
|
+
recovered,
|
|
166
|
+
state: this.#manifestAuthenticated ? 'authenticated' : 'provisional',
|
|
167
|
+
}
|
|
168
|
+
this.#admissions.set(entry.objectId, admission)
|
|
169
|
+
return admission
|
|
170
|
+
}
|
|
171
|
+
}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
import { blake3 } from '@noble/hashes/blake3'
|
|
2
|
+
|
|
3
|
+
export const SOURCE_AUTH_MANIFEST_VERSION = 1
|
|
4
|
+
export const SOURCE_AUTH_OBJECT_ENTRY_FRAME = 1
|
|
5
|
+
export const SOURCE_AUTH_GROUP_CLOSE_FRAME = 2
|
|
6
|
+
export const SOURCE_AUTH_OBJECT_ENTRY_LENGTH = 52
|
|
7
|
+
export const SOURCE_AUTH_GROUP_CLOSE_LENGTH = 112
|
|
8
|
+
export const SOURCE_AUTH_MAX_OBJECTS_PER_GROUP = 4096
|
|
9
|
+
export const SOURCE_AUTH_MAX_TRUE_LENGTH = 16 * 1024 * 1024
|
|
10
|
+
export const SOURCE_AUTH_SCOPE_LENGTH = 32
|
|
11
|
+
|
|
12
|
+
const SIGNATURE_DOMAIN = new TextEncoder().encode('blockcast-mmt-root-v1\0\0\0')
|
|
13
|
+
|
|
14
|
+
export interface SourceAuthObjectEntry {
|
|
15
|
+
kind: 'object'
|
|
16
|
+
groupId: bigint
|
|
17
|
+
objectId: number
|
|
18
|
+
trueLength: number
|
|
19
|
+
digest: Uint8Array
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface SourceAuthGroupClose {
|
|
23
|
+
kind: 'close'
|
|
24
|
+
groupId: bigint
|
|
25
|
+
objectCount: number
|
|
26
|
+
root: Uint8Array
|
|
27
|
+
signature: Uint8Array
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type SourceAuthManifestFrame = SourceAuthObjectEntry | SourceAuthGroupClose
|
|
31
|
+
|
|
32
|
+
function requireBytes(name: string, value: Uint8Array, length: number): void {
|
|
33
|
+
if (value.byteLength !== length) {
|
|
34
|
+
throw new Error(`${name} must be ${length} bytes, got ${value.byteLength}`)
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function requireU32(name: string, value: number): void {
|
|
39
|
+
if (!Number.isInteger(value) || value < 0 || value > 0xffff_ffff) {
|
|
40
|
+
throw new Error(`${name} must be an unsigned 32-bit integer`)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function requireU64(name: string, value: bigint): void {
|
|
45
|
+
if (value < 0n || value > 0xffff_ffff_ffff_ffffn) {
|
|
46
|
+
throw new Error(`${name} must be an unsigned 64-bit integer`)
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function requireTrueLength(value: number): void {
|
|
51
|
+
requireU32('trueLength', value)
|
|
52
|
+
if (value > SOURCE_AUTH_MAX_TRUE_LENGTH) {
|
|
53
|
+
throw new Error(`trueLength exceeds the ${SOURCE_AUTH_MAX_TRUE_LENGTH}-byte profile maximum`)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function sourceAuthObjectDigest(object: Uint8Array): Uint8Array {
|
|
58
|
+
return blake3(object)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function sourceAuthLeafHash(
|
|
62
|
+
groupId: bigint,
|
|
63
|
+
objectId: number,
|
|
64
|
+
digest: Uint8Array,
|
|
65
|
+
trueLength: number,
|
|
66
|
+
): Uint8Array {
|
|
67
|
+
requireU64('groupId', groupId)
|
|
68
|
+
requireU32('objectId', objectId)
|
|
69
|
+
requireBytes('digest', digest, 32)
|
|
70
|
+
requireTrueLength(trueLength)
|
|
71
|
+
const preimage = new Uint8Array(49)
|
|
72
|
+
const view = new DataView(preimage.buffer)
|
|
73
|
+
view.setBigUint64(1, groupId)
|
|
74
|
+
view.setUint32(9, objectId)
|
|
75
|
+
preimage.set(digest, 13)
|
|
76
|
+
view.setUint32(45, trueLength)
|
|
77
|
+
return blake3(preimage)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function sourceAuthMerkleRoot(
|
|
81
|
+
entries: readonly {
|
|
82
|
+
groupId: bigint
|
|
83
|
+
objectId: number
|
|
84
|
+
digest: Uint8Array
|
|
85
|
+
trueLength: number
|
|
86
|
+
}[],
|
|
87
|
+
): Uint8Array {
|
|
88
|
+
if (entries.length === 0) throw new Error('Merkle tree requires at least one object')
|
|
89
|
+
if (entries.length > SOURCE_AUTH_MAX_OBJECTS_PER_GROUP) {
|
|
90
|
+
throw new Error(`group exceeds ${SOURCE_AUTH_MAX_OBJECTS_PER_GROUP} objects`)
|
|
91
|
+
}
|
|
92
|
+
const groupId = entries[0]!.groupId
|
|
93
|
+
const objectIds = new Set<number>()
|
|
94
|
+
const ordered = [...entries].sort((left, right) => left.objectId - right.objectId)
|
|
95
|
+
let level = ordered.map((entry) => {
|
|
96
|
+
if (entry.groupId !== groupId) throw new Error('Merkle entries must belong to one group')
|
|
97
|
+
if (objectIds.has(entry.objectId)) throw new Error(`duplicate objectId ${entry.objectId}`)
|
|
98
|
+
objectIds.add(entry.objectId)
|
|
99
|
+
return sourceAuthLeafHash(entry.groupId, entry.objectId, entry.digest, entry.trueLength)
|
|
100
|
+
})
|
|
101
|
+
while (level.length > 1) {
|
|
102
|
+
const parents: Uint8Array[] = []
|
|
103
|
+
for (let index = 0; index < level.length; index += 2) {
|
|
104
|
+
const left = level[index]!
|
|
105
|
+
const right = level[index + 1] ?? left
|
|
106
|
+
const preimage = new Uint8Array(65)
|
|
107
|
+
preimage[0] = 1
|
|
108
|
+
preimage.set(left, 1)
|
|
109
|
+
preimage.set(right, 33)
|
|
110
|
+
parents.push(blake3(preimage))
|
|
111
|
+
}
|
|
112
|
+
level = parents
|
|
113
|
+
}
|
|
114
|
+
return level[0]!
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function trimRecoveredSourceAuthObject(
|
|
118
|
+
recoveredSymbol: Uint8Array,
|
|
119
|
+
trueLength: number,
|
|
120
|
+
): Uint8Array {
|
|
121
|
+
requireTrueLength(trueLength)
|
|
122
|
+
if (trueLength > recoveredSymbol.byteLength) {
|
|
123
|
+
throw new Error(`true length ${trueLength} exceeds recovered object size ${recoveredSymbol.byteLength}`)
|
|
124
|
+
}
|
|
125
|
+
return recoveredSymbol.subarray(0, trueLength)
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export function encodeSourceAuthObjectEntry(
|
|
129
|
+
entry: Omit<SourceAuthObjectEntry, 'kind'>,
|
|
130
|
+
): Uint8Array {
|
|
131
|
+
requireU32('objectId', entry.objectId)
|
|
132
|
+
requireTrueLength(entry.trueLength)
|
|
133
|
+
requireU64('groupId', entry.groupId)
|
|
134
|
+
requireBytes('digest', entry.digest, 32)
|
|
135
|
+
const frame = new Uint8Array(SOURCE_AUTH_OBJECT_ENTRY_LENGTH)
|
|
136
|
+
const view = new DataView(frame.buffer)
|
|
137
|
+
frame[0] = SOURCE_AUTH_OBJECT_ENTRY_FRAME
|
|
138
|
+
frame[1] = SOURCE_AUTH_MANIFEST_VERSION
|
|
139
|
+
view.setBigUint64(4, entry.groupId)
|
|
140
|
+
view.setUint32(12, entry.objectId)
|
|
141
|
+
view.setUint32(16, entry.trueLength)
|
|
142
|
+
frame.set(entry.digest, 20)
|
|
143
|
+
return frame
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export function encodeSourceAuthGroupClose(
|
|
147
|
+
close: Omit<SourceAuthGroupClose, 'kind'>,
|
|
148
|
+
): Uint8Array {
|
|
149
|
+
requireU32('objectCount', close.objectCount)
|
|
150
|
+
if (close.objectCount === 0 || close.objectCount > SOURCE_AUTH_MAX_OBJECTS_PER_GROUP) {
|
|
151
|
+
throw new Error(`objectCount must be between 1 and ${SOURCE_AUTH_MAX_OBJECTS_PER_GROUP}`)
|
|
152
|
+
}
|
|
153
|
+
requireU64('groupId', close.groupId)
|
|
154
|
+
requireBytes('root', close.root, 32)
|
|
155
|
+
requireBytes('signature', close.signature, 64)
|
|
156
|
+
const frame = new Uint8Array(SOURCE_AUTH_GROUP_CLOSE_LENGTH)
|
|
157
|
+
const view = new DataView(frame.buffer)
|
|
158
|
+
frame[0] = SOURCE_AUTH_GROUP_CLOSE_FRAME
|
|
159
|
+
frame[1] = SOURCE_AUTH_MANIFEST_VERSION
|
|
160
|
+
view.setBigUint64(4, close.groupId)
|
|
161
|
+
view.setUint32(12, close.objectCount)
|
|
162
|
+
frame.set(close.root, 16)
|
|
163
|
+
frame.set(close.signature, 48)
|
|
164
|
+
return frame
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function sourceAuthSignaturePreimage(
|
|
168
|
+
authScope: Uint8Array,
|
|
169
|
+
groupId: bigint,
|
|
170
|
+
objectCount: number,
|
|
171
|
+
root: Uint8Array,
|
|
172
|
+
): Uint8Array {
|
|
173
|
+
requireU32('objectCount', objectCount)
|
|
174
|
+
if (objectCount === 0 || objectCount > SOURCE_AUTH_MAX_OBJECTS_PER_GROUP) {
|
|
175
|
+
throw new Error(`objectCount must be between 1 and ${SOURCE_AUTH_MAX_OBJECTS_PER_GROUP}`)
|
|
176
|
+
}
|
|
177
|
+
requireU64('groupId', groupId)
|
|
178
|
+
requireBytes('authScope', authScope, SOURCE_AUTH_SCOPE_LENGTH)
|
|
179
|
+
requireBytes('root', root, 32)
|
|
180
|
+
const preimage = new Uint8Array(100)
|
|
181
|
+
const view = new DataView(preimage.buffer)
|
|
182
|
+
preimage.set(SIGNATURE_DOMAIN)
|
|
183
|
+
preimage.set(authScope, 24)
|
|
184
|
+
view.setBigUint64(56, groupId)
|
|
185
|
+
view.setUint32(64, objectCount)
|
|
186
|
+
preimage.set(root, 68)
|
|
187
|
+
return preimage
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export function decodeSourceAuthManifestFrame(frame: Uint8Array): SourceAuthManifestFrame {
|
|
191
|
+
const frameType = frame[0]
|
|
192
|
+
const expectedLength = frameType === SOURCE_AUTH_OBJECT_ENTRY_FRAME
|
|
193
|
+
? SOURCE_AUTH_OBJECT_ENTRY_LENGTH
|
|
194
|
+
: frameType === SOURCE_AUTH_GROUP_CLOSE_FRAME
|
|
195
|
+
? SOURCE_AUTH_GROUP_CLOSE_LENGTH
|
|
196
|
+
: 0
|
|
197
|
+
if (expectedLength === 0) throw new Error(`unsupported manifest frame type ${frameType}`)
|
|
198
|
+
if (frame.byteLength !== expectedLength) {
|
|
199
|
+
throw new Error(`manifest frame has invalid length ${frame.byteLength} for type ${frameType}`)
|
|
200
|
+
}
|
|
201
|
+
if (frame[1] !== SOURCE_AUTH_MANIFEST_VERSION) {
|
|
202
|
+
throw new Error(`unsupported manifest version ${frame[1]}`)
|
|
203
|
+
}
|
|
204
|
+
if (frame[2] !== 0 || frame[3] !== 0) throw new Error('manifest reserved bits must be zero')
|
|
205
|
+
|
|
206
|
+
const view = new DataView(frame.buffer, frame.byteOffset, frame.byteLength)
|
|
207
|
+
const groupId = view.getBigUint64(4)
|
|
208
|
+
if (frameType === SOURCE_AUTH_OBJECT_ENTRY_FRAME) {
|
|
209
|
+
const entry: SourceAuthObjectEntry = {
|
|
210
|
+
kind: 'object',
|
|
211
|
+
groupId,
|
|
212
|
+
objectId: view.getUint32(12),
|
|
213
|
+
trueLength: view.getUint32(16),
|
|
214
|
+
digest: frame.slice(20, 52),
|
|
215
|
+
}
|
|
216
|
+
requireTrueLength(entry.trueLength)
|
|
217
|
+
return entry
|
|
218
|
+
}
|
|
219
|
+
const close: SourceAuthGroupClose = {
|
|
220
|
+
kind: 'close',
|
|
221
|
+
groupId,
|
|
222
|
+
objectCount: view.getUint32(12),
|
|
223
|
+
root: frame.slice(16, 48),
|
|
224
|
+
signature: frame.slice(48, 112),
|
|
225
|
+
}
|
|
226
|
+
if (close.objectCount === 0 || close.objectCount > SOURCE_AUTH_MAX_OBJECTS_PER_GROUP) {
|
|
227
|
+
throw new Error(`objectCount must be between 1 and ${SOURCE_AUTH_MAX_OBJECTS_PER_GROUP}`)
|
|
228
|
+
}
|
|
229
|
+
return close
|
|
230
|
+
}
|