@moqtap/codec 0.8.1 → 0.10.0
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/CHANGELOG.md +75 -0
- package/README.md +16 -4
- package/dist/{chunk-KCH4BQXK.cjs → chunk-AQ445VV7.cjs} +15 -9
- package/dist/{chunk-UZO5Z2XT.cjs → chunk-BIBMDTU5.cjs} +12 -6
- package/dist/chunk-BMJMY6FX.cjs +868 -0
- package/dist/{chunk-23KRITJ6.js → chunk-BX2N7TZM.js} +14 -8
- package/dist/{chunk-XQGEOFGE.js → chunk-CF5DDD3Q.js} +14 -8
- package/dist/chunk-FT3HDNIB.js +2374 -0
- package/dist/{chunk-TMXRYOBS.js → chunk-G53WYUXL.js} +13 -7
- package/dist/{chunk-JKMYAUGY.js → chunk-K2B3OVFK.js} +11 -8
- package/dist/{chunk-3YAR3I3S.js → chunk-KGDVC4O6.js} +36 -22
- package/dist/{chunk-VWXUT5R2.cjs → chunk-KTNERCTZ.cjs} +36 -22
- package/dist/{chunk-H6DTAIWM.js → chunk-L5DRACXS.js} +22 -16
- package/dist/{chunk-UA5XFP4O.cjs → chunk-OUNN4IQB.cjs} +14 -8
- package/dist/{chunk-NH4L6NIY.js → chunk-OZRK73NQ.js} +12 -6
- package/dist/{chunk-PU2KV7VP.cjs → chunk-RYKQXBG6.cjs} +12 -6
- package/dist/{chunk-EVCPBFSR.cjs → chunk-SDJTSMOW.cjs} +23 -17
- package/dist/chunk-T4VWPKDG.cjs +2374 -0
- package/dist/{chunk-2XH6PHXR.js → chunk-TSUZ6GJV.js} +12 -6
- package/dist/{chunk-QGIHC6BA.cjs → chunk-UKKDOOUO.cjs} +12 -9
- package/dist/{chunk-BV6MITLO.js → chunk-WCPENYNE.js} +14 -8
- package/dist/{chunk-IADVBKEJ.cjs → chunk-WCTMPDUX.cjs} +15 -9
- package/dist/chunk-WX5PU7HF.js +868 -0
- package/dist/{chunk-7ENEWAMZ.cjs → chunk-XCRCAUGI.cjs} +15 -9
- package/dist/{codec-BLYAy2OP.d.ts → codec--CVeqGQv.d.ts} +1 -1
- package/dist/{codec-BNS3gS77.d.ts → codec-08ZOr5wI.d.ts} +2 -2
- package/dist/{codec-DujHf55Z.d.ts → codec-BJ7BHuiZ.d.ts} +1 -1
- package/dist/{codec-CI0BjmHc.d.ts → codec-BNy5syCU.d.ts} +1 -1
- package/dist/{codec-N3g1lxQQ.d.cts → codec-Bd60SGKH.d.cts} +2 -2
- package/dist/{codec-xeuGZY77.d.cts → codec-BrTi4K7r.d.cts} +3 -3
- package/dist/{codec-DJmV04i0.d.ts → codec-Bux_Q40X.d.ts} +2 -2
- package/dist/{codec-BqqoYdh_.d.cts → codec-BxQTybUX.d.cts} +2 -2
- package/dist/{codec-D2JbI2tp.d.ts → codec-C3mdsGx3.d.ts} +2 -2
- package/dist/{codec-DQWQSam3.d.cts → codec-C6Mx4bwz.d.cts} +1 -1
- package/dist/{codec-DAePx2NL.d.ts → codec-CBdOIfMY.d.ts} +3 -3
- package/dist/codec-CFWu5KVT.d.cts +49 -0
- package/dist/{codec-CyApDKwf.d.cts → codec-CWnf8mn_.d.cts} +2 -2
- package/dist/{codec-DvcJgYKq.d.cts → codec-CXCjya_G.d.cts} +1 -1
- package/dist/{codec-BOyrk_C9.d.cts → codec-Cfo_z5ET.d.cts} +1 -1
- package/dist/{codec-v6Vloc7H.d.ts → codec-Cm3D261p.d.ts} +2 -2
- package/dist/codec-CwZ6OCPP.d.ts +49 -0
- package/dist/{codec-NMsTK0GX.d.cts → codec-Czejcmxr.d.cts} +2 -2
- package/dist/{codec-hvkJfCF5.d.cts → codec-DNmiG2e0.d.cts} +2 -2
- package/dist/{codec-CWj5iTxA.d.ts → codec-DOmAmFkI.d.ts} +2 -2
- package/dist/{codec-WwwUipaU.d.ts → codec-DaXjRrOV.d.ts} +2 -2
- package/dist/{codec-DplRgIKq.d.ts → codec-Dl_QIXMz.d.ts} +1 -1
- package/dist/{codec-D95gT98n.d.cts → codec-DzkdW4kO.d.cts} +1 -1
- package/dist/{codec-cou9XBMF.d.cts → codec-EvybrBuY.d.cts} +2 -2
- package/dist/{codec-DL0njGkL.d.ts → codec-alVA27Uc.d.ts} +2 -2
- package/dist/{codec-D89DWXbv.d.cts → codec-f7vxeVIS.d.cts} +2 -2
- package/dist/{codec-D47r_-Rl.d.ts → codec-gl4_QEva.d.ts} +2 -2
- package/dist/{codec-BOtv3R5j.d.cts → codec-guzqtfMk.d.cts} +2 -2
- package/dist/draft07-session.d.cts +3 -3
- package/dist/draft07-session.d.ts +3 -3
- package/dist/draft07.d.cts +3 -3
- package/dist/draft07.d.ts +3 -3
- package/dist/draft08-session.d.cts +3 -3
- package/dist/draft08-session.d.ts +3 -3
- package/dist/draft08.d.cts +4 -4
- package/dist/draft08.d.ts +4 -4
- package/dist/draft09-session.d.cts +3 -3
- package/dist/draft09-session.d.ts +3 -3
- package/dist/draft09.d.cts +4 -4
- package/dist/draft09.d.ts +4 -4
- package/dist/draft10-session.d.cts +3 -3
- package/dist/draft10-session.d.ts +3 -3
- package/dist/draft10.d.cts +4 -4
- package/dist/draft10.d.ts +4 -4
- package/dist/draft11-session.d.cts +4 -4
- package/dist/draft11-session.d.ts +4 -4
- package/dist/draft11.cjs +2 -2
- package/dist/draft11.d.cts +6 -6
- package/dist/draft11.d.ts +6 -6
- package/dist/draft11.js +1 -1
- package/dist/draft12-session.d.cts +4 -4
- package/dist/draft12-session.d.ts +4 -4
- package/dist/draft12.cjs +2 -2
- package/dist/draft12.d.cts +6 -6
- package/dist/draft12.d.ts +6 -6
- package/dist/draft12.js +1 -1
- package/dist/draft13-session.d.cts +4 -4
- package/dist/draft13-session.d.ts +4 -4
- package/dist/draft13.cjs +2 -2
- package/dist/draft13.d.cts +6 -6
- package/dist/draft13.d.ts +6 -6
- package/dist/draft13.js +1 -1
- package/dist/draft14-session.d.cts +4 -4
- package/dist/draft14-session.d.ts +4 -4
- package/dist/draft14.cjs +2 -2
- package/dist/draft14.d.cts +6 -6
- package/dist/draft14.d.ts +6 -6
- package/dist/draft14.js +1 -1
- package/dist/draft15-session.d.cts +4 -4
- package/dist/draft15-session.d.ts +4 -4
- package/dist/draft15.cjs +2 -2
- package/dist/draft15.d.cts +6 -6
- package/dist/draft15.d.ts +6 -6
- package/dist/draft15.js +1 -1
- package/dist/draft16-session.d.cts +4 -4
- package/dist/draft16-session.d.ts +4 -4
- package/dist/draft16.cjs +2 -2
- package/dist/draft16.d.cts +6 -6
- package/dist/draft16.d.ts +6 -6
- package/dist/draft16.js +1 -1
- package/dist/draft17-session.d.cts +4 -4
- package/dist/draft17-session.d.ts +4 -4
- package/dist/draft17.cjs +2 -2
- package/dist/draft17.d.cts +5 -5
- package/dist/draft17.d.ts +5 -5
- package/dist/draft17.js +1 -1
- package/dist/draft18-session.d.cts +4 -4
- package/dist/draft18-session.d.ts +4 -4
- package/dist/draft18.cjs +2 -2
- package/dist/draft18.d.cts +5 -5
- package/dist/draft18.d.ts +5 -5
- package/dist/draft18.js +1 -1
- package/dist/draft19-session.d.cts +4 -4
- package/dist/draft19-session.d.ts +4 -4
- package/dist/draft19.cjs +2 -2
- package/dist/draft19.d.cts +5 -5
- package/dist/draft19.d.ts +5 -5
- package/dist/draft19.js +1 -1
- package/dist/draft20-session.cjs +8 -0
- package/dist/draft20-session.d.cts +195 -0
- package/dist/draft20-session.d.ts +195 -0
- package/dist/draft20-session.js +8 -0
- package/dist/draft20.cjs +217 -0
- package/dist/draft20.d.cts +175 -0
- package/dist/draft20.d.ts +175 -0
- package/dist/draft20.js +217 -0
- package/dist/index.cjs +25 -19
- package/dist/index.d.cts +41 -26
- package/dist/index.d.ts +41 -26
- package/dist/index.js +16 -10
- package/dist/{session-types-KsqyVp6y.d.cts → session-types-B9idsih-.d.cts} +13 -1
- package/dist/{session-types-C0l_-Ups.d.ts → session-types-Dn7b3RZM.d.ts} +13 -1
- package/dist/session.cjs +5 -1
- package/dist/session.d.cts +14 -12
- package/dist/session.d.ts +14 -12
- package/dist/session.js +5 -1
- package/dist/{types-Cqp10JtB.d.cts → types-Bg86GGVZ.d.cts} +2 -2
- package/dist/{types-Cqp10JtB.d.ts → types-Bg86GGVZ.d.ts} +2 -2
- package/dist/{types-zHgCS6o5.d.cts → types-C1rxh-id.d.cts} +7 -7
- package/dist/{types-zHgCS6o5.d.ts → types-C1rxh-id.d.ts} +7 -7
- package/dist/{types-Bio-91Rt.d.cts → types-CI_SX4Xe.d.cts} +2 -2
- package/dist/{types-Bio-91Rt.d.ts → types-CI_SX4Xe.d.ts} +2 -2
- package/dist/types-CY-QWxd-.d.cts +359 -0
- package/dist/types-CY-QWxd-.d.ts +359 -0
- package/dist/{types-Cm9fjeYC.d.cts → types-CZTzbIzQ.d.cts} +2 -2
- package/dist/{types-Cm9fjeYC.d.ts → types-CZTzbIzQ.d.ts} +2 -2
- package/dist/{types-HI_bbXka.d.cts → types-CmqT0jUf.d.cts} +1 -1
- package/dist/{types-HI_bbXka.d.ts → types-CmqT0jUf.d.ts} +1 -1
- package/dist/{types-Ck45Ex5S.d.cts → types-D0kTgUuL.d.cts} +1 -1
- package/dist/{types-Ck45Ex5S.d.ts → types-D0kTgUuL.d.ts} +1 -1
- package/dist/{types-D9eiB_9A.d.cts → types-D4bmW8rY.d.cts} +2 -2
- package/dist/{types-D9eiB_9A.d.ts → types-D4bmW8rY.d.ts} +2 -2
- package/dist/{types-CdCSIfvI.d.cts → types-DG5_iKuv.d.cts} +1 -1
- package/dist/{types-CdCSIfvI.d.ts → types-DG5_iKuv.d.ts} +1 -1
- package/dist/{types-CXlSn0I9.d.cts → types-DjxexghA.d.cts} +2 -2
- package/dist/{types-CXlSn0I9.d.ts → types-DjxexghA.d.ts} +2 -2
- package/dist/{types-CPaYBsMG.d.cts → types-pShrs3fN.d.cts} +2 -2
- package/dist/{types-CPaYBsMG.d.ts → types-pShrs3fN.d.ts} +2 -2
- package/package.json +16 -3
- package/src/core/session-types.ts +7 -0
- package/src/core/types.ts +1 -0
- package/src/drafts/draft11/codec.ts +11 -8
- package/src/drafts/draft11/types.ts +1 -1
- package/src/drafts/draft12/codec.ts +22 -16
- package/src/drafts/draft12/types.ts +2 -2
- package/src/drafts/draft13/codec.ts +14 -8
- package/src/drafts/draft13/types.ts +2 -2
- package/src/drafts/draft14/codec.ts +14 -8
- package/src/drafts/draft14/types.ts +1 -1
- package/src/drafts/draft15/codec.ts +14 -8
- package/src/drafts/draft15/types.ts +2 -2
- package/src/drafts/draft16/codec.ts +13 -7
- package/src/drafts/draft16/types.ts +2 -2
- package/src/drafts/draft17/codec.ts +12 -6
- package/src/drafts/draft17/types.ts +2 -2
- package/src/drafts/draft18/codec.ts +12 -6
- package/src/drafts/draft18/types.ts +2 -2
- package/src/drafts/draft19/codec.ts +37 -23
- package/src/drafts/draft19/types.ts +10 -7
- package/src/drafts/draft20/codec.ts +1749 -0
- package/src/drafts/draft20/data-streams.ts +1291 -0
- package/src/drafts/draft20/error-codes.ts +135 -0
- package/src/drafts/draft20/index.ts +165 -0
- package/src/drafts/draft20/messages.ts +68 -0
- package/src/drafts/draft20/rules.ts +107 -0
- package/src/drafts/draft20/session-fsm.ts +1063 -0
- package/src/drafts/draft20/session.ts +21 -0
- package/src/drafts/draft20/types.ts +461 -0
- package/src/index.ts +20 -2
- package/src/session.ts +4 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -801,7 +801,7 @@ function encodeSetupParams(params, writer) {
|
|
|
801
801
|
if (params.role !== void 0) count++;
|
|
802
802
|
if (params.path !== void 0) count++;
|
|
803
803
|
if (params.max_request_id !== void 0) count++;
|
|
804
|
-
|
|
804
|
+
count += _nullishCoalesce(_optionalChain([params, 'access', _ => _.authorization_token, 'optionalAccess', _2 => _2.length]), () => ( 0));
|
|
805
805
|
if (params.authority !== void 0) count++;
|
|
806
806
|
if (params.max_auth_token_cache_size !== void 0) count++;
|
|
807
807
|
if (params.moqt_implementation !== void 0) count++;
|
|
@@ -821,9 +821,9 @@ function encodeSetupParams(params, writer) {
|
|
|
821
821
|
writer.writeVarInt(PARAM_MAX_REQUEST_ID);
|
|
822
822
|
writer.writeVarInt(params.max_request_id);
|
|
823
823
|
}
|
|
824
|
-
|
|
824
|
+
for (const token of _nullishCoalesce(params.authorization_token, () => ( []))) {
|
|
825
825
|
writer.writeVarInt(PARAM_AUTHORIZATION_TOKEN);
|
|
826
|
-
const tok =
|
|
826
|
+
const tok = token;
|
|
827
827
|
const tmpWriter = new (0, _chunk4XLYCT5Qcjs.BufferWriter)(64);
|
|
828
828
|
tmpWriter.writeVarInt(tok.alias_type);
|
|
829
829
|
if (tok.token_type !== void 0) {
|
|
@@ -905,7 +905,10 @@ function decodeSetupParams(reader) {
|
|
|
905
905
|
tok.token_value = new Uint8Array(tokenValue);
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
result.authorization_token =
|
|
908
|
+
result.authorization_token = [
|
|
909
|
+
..._nullishCoalesce(result.authorization_token, () => ( [])),
|
|
910
|
+
tok
|
|
911
|
+
];
|
|
909
912
|
} else if (paramType === PARAM_AUTHORITY) {
|
|
910
913
|
result.authority = textDecoder.decode(bytes);
|
|
911
914
|
} else if (paramType === PARAM_MOQT_IMPLEMENTATION) {
|
|
@@ -925,7 +928,7 @@ function decodeSetupParams(reader) {
|
|
|
925
928
|
function encodeMessageParams(params, writer) {
|
|
926
929
|
let count = 0;
|
|
927
930
|
if (params.delivery_timeout !== void 0) count++;
|
|
928
|
-
|
|
931
|
+
count += _nullishCoalesce(_optionalChain([params, 'access', _3 => _3.authorization_token, 'optionalAccess', _4 => _4.length]), () => ( 0));
|
|
929
932
|
if (params.max_cache_duration !== void 0) count++;
|
|
930
933
|
if (params.unknown) count += params.unknown.length;
|
|
931
934
|
writer.writeVarInt(count);
|
|
@@ -933,9 +936,9 @@ function encodeMessageParams(params, writer) {
|
|
|
933
936
|
writer.writeVarInt(PARAM_DELIVERY_TIMEOUT);
|
|
934
937
|
writer.writeVarInt(params.delivery_timeout);
|
|
935
938
|
}
|
|
936
|
-
|
|
939
|
+
for (const token of _nullishCoalesce(params.authorization_token, () => ( []))) {
|
|
937
940
|
writer.writeVarInt(PARAM_AUTHORIZATION_TOKEN);
|
|
938
|
-
const tok =
|
|
941
|
+
const tok = token;
|
|
939
942
|
const tmpWriter = new (0, _chunk4XLYCT5Qcjs.BufferWriter)(64);
|
|
940
943
|
tmpWriter.writeVarInt(tok.alias_type);
|
|
941
944
|
if (tok.token_type !== void 0) {
|
|
@@ -1001,7 +1004,10 @@ function decodeMessageParams(reader) {
|
|
|
1001
1004
|
tok.token_value = new Uint8Array(tokenValue);
|
|
1002
1005
|
}
|
|
1003
1006
|
}
|
|
1004
|
-
result.authorization_token =
|
|
1007
|
+
result.authorization_token = [
|
|
1008
|
+
..._nullishCoalesce(result.authorization_token, () => ( [])),
|
|
1009
|
+
tok
|
|
1010
|
+
];
|
|
1005
1011
|
} else {
|
|
1006
1012
|
unknown.push({
|
|
1007
1013
|
id: `0x${paramType.toString(16)}`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft10Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft10DataStream } from './types-0IWbU9Z_.js';
|
|
3
3
|
|
|
4
4
|
declare function encodeMessage(message: Draft10Message): Uint8Array;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft15Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft15DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft15Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft15DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-pShrs3fN.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-15 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft07Message, S as SubgroupStream, b as DatagramObject, F as FetchStream } from './types-Dl4IaAHR.js';
|
|
3
3
|
|
|
4
4
|
interface Draft07Codec extends BaseCodec<Draft07Message> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft09Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft09DataStream } from './types-B3g5G9KP.js';
|
|
3
3
|
|
|
4
4
|
declare function encodeMessage(message: Draft09Message): Uint8Array;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft14Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft14DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft14Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft14DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-CmqT0jUf.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-14 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft19Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft19DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft19Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft19DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-C1rxh-id.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-18 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -12,7 +12,7 @@ declare function decodeMessage(bytes: Uint8Array): DecodeResult<Draft19Message>;
|
|
|
12
12
|
|
|
13
13
|
declare function createStreamDecoder(): TransformStream<Uint8Array, Draft19Message>;
|
|
14
14
|
interface Draft19Codec extends BaseCodec<Draft19Message> {
|
|
15
|
-
readonly draft: '
|
|
15
|
+
readonly draft: '19';
|
|
16
16
|
encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
17
17
|
encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
18
18
|
encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft17Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft17DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft17Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft17DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-D4bmW8rY.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-17 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft15Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft15DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft15Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft15DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-pShrs3fN.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-15 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft16Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft16DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft16Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft16DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-CZTzbIzQ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-16 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft07Message, S as SubgroupStream, b as DatagramObject, F as FetchStream } from './types-Dl4IaAHR.cjs';
|
|
3
3
|
|
|
4
4
|
interface Draft07Codec extends BaseCodec<Draft07Message> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft19Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft19DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft19Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft19DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-C1rxh-id.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-18 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -12,7 +12,7 @@ declare function decodeMessage(bytes: Uint8Array): DecodeResult<Draft19Message>;
|
|
|
12
12
|
|
|
13
13
|
declare function createStreamDecoder(): TransformStream<Uint8Array, Draft19Message>;
|
|
14
14
|
interface Draft19Codec extends BaseCodec<Draft19Message> {
|
|
15
|
-
readonly draft: '
|
|
15
|
+
readonly draft: '19';
|
|
16
16
|
encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
17
17
|
encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
18
18
|
encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft20Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft20DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-CY-QWxd-.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `PUBLISH_DONE.Stream Count` "unknown" sentinel — draft-20 Section 10.12.
|
|
6
|
+
*
|
|
7
|
+
* draft-19 used `2^62 - 1`; draft-20 raised it to `2^64 - 1`. Both are
|
|
8
|
+
* encodable because MOQT's vi64 (Section 1.4.1) is a leading-ones-length
|
|
9
|
+
* prefix reaching a full 64 bits in nine bytes — it is NOT the QUIC varint and
|
|
10
|
+
* has no `2^62 - 1` ceiling. On the wire this is `ff` followed by eight `ff`
|
|
11
|
+
* bytes.
|
|
12
|
+
*
|
|
13
|
+
* JS `bigint` is required: `2^64 - 1` does not fit a `number`, and comparing a
|
|
14
|
+
* `Number(stream_count)` against this sentinel would be wrong for every value
|
|
15
|
+
* above `2^53`.
|
|
16
|
+
*
|
|
17
|
+
* Note (SPEC-DELTA Section 11 Q14): unlike the old `2^62 - 1` marker, this
|
|
18
|
+
* value is also a well-formed exact count. There is no longer any headroom
|
|
19
|
+
* that separates "unknown" from "absurdly many streams"; the draft does not
|
|
20
|
+
* acknowledge the collision.
|
|
21
|
+
*/
|
|
22
|
+
declare const UNKNOWN_STREAM_COUNT = 18446744073709551615n;
|
|
23
|
+
/**
|
|
24
|
+
* Encode a draft-20 control message: type (vi64) + length (uint16 BE) + payload.
|
|
25
|
+
*/
|
|
26
|
+
declare function encodeMessage(message: Draft20Message): Uint8Array;
|
|
27
|
+
/**
|
|
28
|
+
* Decode a draft-20 control message from bytes (type + uint16 length + payload).
|
|
29
|
+
*/
|
|
30
|
+
declare function decodeMessage(bytes: Uint8Array): DecodeResult<Draft20Message>;
|
|
31
|
+
|
|
32
|
+
declare function createStreamDecoder(): TransformStream<Uint8Array, Draft20Message>;
|
|
33
|
+
interface Draft20Codec extends BaseCodec<Draft20Message> {
|
|
34
|
+
readonly draft: '20';
|
|
35
|
+
encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
36
|
+
encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
37
|
+
encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
38
|
+
decodeSubgroupStream(bytes: Uint8Array): DecodeResult<SubgroupStream>;
|
|
39
|
+
decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>;
|
|
40
|
+
decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
41
|
+
decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft20DataStream>;
|
|
42
|
+
createStreamDecoder(): TransformStream<Uint8Array, Draft20Message>;
|
|
43
|
+
createSubgroupStreamDecoder(): TransformStream<Uint8Array, SubgroupStreamHeader | ObjectPayload>;
|
|
44
|
+
createFetchStreamDecoder(): TransformStream<Uint8Array, FetchStreamHeader | ObjectPayload>;
|
|
45
|
+
createDataStreamDecoder(): TransformStream<Uint8Array, DataStreamEvent>;
|
|
46
|
+
}
|
|
47
|
+
declare function createDraft20Codec(): Draft20Codec;
|
|
48
|
+
|
|
49
|
+
export { type Draft20Codec as D, UNKNOWN_STREAM_COUNT as U, createStreamDecoder as a, createDraft20Codec as c, decodeMessage as d, encodeMessage as e };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft16Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft16DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft16Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft16DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-CZTzbIzQ.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-16 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft09Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft09DataStream } from './types-B3g5G9KP.cjs';
|
|
3
3
|
|
|
4
4
|
declare function encodeMessage(message: Draft09Message): Uint8Array;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft10Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft10DataStream } from './types-0IWbU9Z_.cjs';
|
|
3
3
|
|
|
4
4
|
declare function encodeMessage(message: Draft10Message): Uint8Array;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft14Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft14DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft14Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft14DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-CmqT0jUf.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-14 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft20Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft20DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-CY-QWxd-.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `PUBLISH_DONE.Stream Count` "unknown" sentinel — draft-20 Section 10.12.
|
|
6
|
+
*
|
|
7
|
+
* draft-19 used `2^62 - 1`; draft-20 raised it to `2^64 - 1`. Both are
|
|
8
|
+
* encodable because MOQT's vi64 (Section 1.4.1) is a leading-ones-length
|
|
9
|
+
* prefix reaching a full 64 bits in nine bytes — it is NOT the QUIC varint and
|
|
10
|
+
* has no `2^62 - 1` ceiling. On the wire this is `ff` followed by eight `ff`
|
|
11
|
+
* bytes.
|
|
12
|
+
*
|
|
13
|
+
* JS `bigint` is required: `2^64 - 1` does not fit a `number`, and comparing a
|
|
14
|
+
* `Number(stream_count)` against this sentinel would be wrong for every value
|
|
15
|
+
* above `2^53`.
|
|
16
|
+
*
|
|
17
|
+
* Note (SPEC-DELTA Section 11 Q14): unlike the old `2^62 - 1` marker, this
|
|
18
|
+
* value is also a well-formed exact count. There is no longer any headroom
|
|
19
|
+
* that separates "unknown" from "absurdly many streams"; the draft does not
|
|
20
|
+
* acknowledge the collision.
|
|
21
|
+
*/
|
|
22
|
+
declare const UNKNOWN_STREAM_COUNT = 18446744073709551615n;
|
|
23
|
+
/**
|
|
24
|
+
* Encode a draft-20 control message: type (vi64) + length (uint16 BE) + payload.
|
|
25
|
+
*/
|
|
26
|
+
declare function encodeMessage(message: Draft20Message): Uint8Array;
|
|
27
|
+
/**
|
|
28
|
+
* Decode a draft-20 control message from bytes (type + uint16 length + payload).
|
|
29
|
+
*/
|
|
30
|
+
declare function decodeMessage(bytes: Uint8Array): DecodeResult<Draft20Message>;
|
|
31
|
+
|
|
32
|
+
declare function createStreamDecoder(): TransformStream<Uint8Array, Draft20Message>;
|
|
33
|
+
interface Draft20Codec extends BaseCodec<Draft20Message> {
|
|
34
|
+
readonly draft: '20';
|
|
35
|
+
encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
36
|
+
encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
37
|
+
encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
38
|
+
decodeSubgroupStream(bytes: Uint8Array): DecodeResult<SubgroupStream>;
|
|
39
|
+
decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>;
|
|
40
|
+
decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
41
|
+
decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft20DataStream>;
|
|
42
|
+
createStreamDecoder(): TransformStream<Uint8Array, Draft20Message>;
|
|
43
|
+
createSubgroupStreamDecoder(): TransformStream<Uint8Array, SubgroupStreamHeader | ObjectPayload>;
|
|
44
|
+
createFetchStreamDecoder(): TransformStream<Uint8Array, FetchStreamHeader | ObjectPayload>;
|
|
45
|
+
createDataStreamDecoder(): TransformStream<Uint8Array, DataStreamEvent>;
|
|
46
|
+
}
|
|
47
|
+
declare function createDraft20Codec(): Draft20Codec;
|
|
48
|
+
|
|
49
|
+
export { type Draft20Codec as D, UNKNOWN_STREAM_COUNT as U, createStreamDecoder as a, createDraft20Codec as c, decodeMessage as d, encodeMessage as e };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft17Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft17DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft17Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft17DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-D4bmW8rY.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-17 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft13Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft13DataStream } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft13Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft13DataStream } from './types-DjxexghA.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-13 control message.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft13Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft13DataStream } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft13Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft13DataStream } from './types-DjxexghA.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-13 control message.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft18Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft18DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft18Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft18DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-Bg86GGVZ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-18 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft08Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft08DataStream } from './types-jV1yDDBA.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft08Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft08DataStream } from './types-jV1yDDBA.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft11Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft11DataStream } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft11Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft11DataStream } from './types-D0kTgUuL.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-11 control message with type(varint) + length(varint) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft11Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft11DataStream } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft11Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft11DataStream } from './types-D0kTgUuL.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-11 control message with type(varint) + length(varint) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft18Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft18DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft18Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft18DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-Bg86GGVZ.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-18 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft12Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft12DataStream } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft12Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft12DataStream } from './types-CI_SX4Xe.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-12 control message.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
2
|
-
import { D as Draft12Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft12DataStream } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft12Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft12DataStream } from './types-CI_SX4Xe.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-12 control message.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
3
3
|
import { D as Draft07Message, a as Draft07MessageType } from './types-Dl4IaAHR.cjs';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft07SessionState(role: SessionStateOptionsRole): SessionState<Draft07Message, Draft07MessageType>;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
3
3
|
import { D as Draft07Message, a as Draft07MessageType } from './types-Dl4IaAHR.js';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft07SessionState(role: SessionStateOptionsRole): SessionState<Draft07Message, Draft07MessageType>;
|
|
7
7
|
|
package/dist/draft07.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as DecodeResult } from './types-
|
|
2
|
-
export { D as DecodeError, a as DecodeErrorCode } from './types-
|
|
3
|
-
export { D as Draft07Codec, c as createDraft07Codec } from './codec-
|
|
1
|
+
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
export { D as DecodeError, a as DecodeErrorCode } from './types-DG5_iKuv.cjs';
|
|
3
|
+
export { D as Draft07Codec, c as createDraft07Codec } from './codec-C6Mx4bwz.cjs';
|
|
4
4
|
import { b as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft07MessageType, D as Draft07Message } from './types-Dl4IaAHR.cjs';
|
|
5
5
|
export { A as Announce, c as AnnounceCancel, d as AnnounceError, e as AnnounceOk, C as ClientSetup, f as DataStreamEvent, g as DataStreamHeader, h as Draft07DataStream, i as Draft07Params, j as Draft07SetupParams, k as Fetch, l as FetchCancel, m as FetchError, n as FetchObjectPayload, o as FetchOk, p as FetchStreamHeader, G as GoAway, M as MaxSubscribeId, O as ObjectDatagram, q as ObjectPayload, r as ServerSetup, s as StreamHeaderSubgroup, t as SubgroupStreamHeader, u as Subscribe, v as SubscribeAnnounces, w as SubscribeAnnouncesError, x as SubscribeAnnouncesOk, y as SubscribeDone, z as SubscribeError, B as SubscribeOk, E as SubscribeUpdate, T as TrackStatus, H as TrackStatusRequest, U as Unannounce, I as UnknownParam, J as Unsubscribe, K as UnsubscribeAnnounces } from './types-Dl4IaAHR.cjs';
|
|
6
6
|
|
package/dist/draft07.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as DecodeResult } from './types-
|
|
2
|
-
export { D as DecodeError, a as DecodeErrorCode } from './types-
|
|
3
|
-
export { D as Draft07Codec, c as createDraft07Codec } from './codec-
|
|
1
|
+
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
export { D as DecodeError, a as DecodeErrorCode } from './types-DG5_iKuv.js';
|
|
3
|
+
export { D as Draft07Codec, c as createDraft07Codec } from './codec-BJ7BHuiZ.js';
|
|
4
4
|
import { b as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft07MessageType, D as Draft07Message } from './types-Dl4IaAHR.js';
|
|
5
5
|
export { A as Announce, c as AnnounceCancel, d as AnnounceError, e as AnnounceOk, C as ClientSetup, f as DataStreamEvent, g as DataStreamHeader, h as Draft07DataStream, i as Draft07Params, j as Draft07SetupParams, k as Fetch, l as FetchCancel, m as FetchError, n as FetchObjectPayload, o as FetchOk, p as FetchStreamHeader, G as GoAway, M as MaxSubscribeId, O as ObjectDatagram, q as ObjectPayload, r as ServerSetup, s as StreamHeaderSubgroup, t as SubgroupStreamHeader, u as Subscribe, v as SubscribeAnnounces, w as SubscribeAnnouncesError, x as SubscribeAnnouncesOk, y as SubscribeDone, z as SubscribeError, B as SubscribeOk, E as SubscribeUpdate, T as TrackStatus, H as TrackStatusRequest, U as Unannounce, I as UnknownParam, J as Unsubscribe, K as UnsubscribeAnnounces } from './types-Dl4IaAHR.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
3
3
|
import { D as Draft08Message, a as Draft08MessageType } from './types-jV1yDDBA.cjs';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft08SessionState(role: SessionStateOptionsRole): SessionState<Draft08Message, Draft08MessageType>;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
3
3
|
import { D as Draft08Message, a as Draft08MessageType } from './types-jV1yDDBA.js';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft08SessionState(role: SessionStateOptionsRole): SessionState<Draft08Message, Draft08MessageType>;
|
|
7
7
|
|
package/dist/draft08.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as Draft08Codec, c as createDraft08Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
1
|
+
export { D as Draft08Codec, c as createDraft08Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-DzkdW4kO.cjs';
|
|
2
2
|
import { b as Draft08DataStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, S as SubgroupStream, a as Draft08MessageType, D as Draft08Message } from './types-jV1yDDBA.cjs';
|
|
3
3
|
export { e as DataStreamEvent, f as DataStreamHeader, g as Draft08Announce, h as Draft08AnnounceCancel, i as Draft08AnnounceError, j as Draft08AnnounceOk, k as Draft08BaseMessage, l as Draft08ClientSetup, m as Draft08Fetch, n as Draft08FetchCancel, o as Draft08FetchError, p as Draft08FetchOk, q as Draft08GoAway, r as Draft08MaxSubscribeId, s as Draft08Params, t as Draft08ServerSetup, u as Draft08SetupParams, v as Draft08Subscribe, w as Draft08SubscribeAnnounces, x as Draft08SubscribeAnnouncesError, y as Draft08SubscribeAnnouncesOk, z as Draft08SubscribeDone, A as Draft08SubscribeError, B as Draft08SubscribeOk, C as Draft08SubscribeUpdate, E as Draft08SubscribesBlocked, G as Draft08TrackStatus, H as Draft08TrackStatusRequest, I as Draft08Unannounce, J as Draft08Unsubscribe, K as Draft08UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as ObjectPayload, P as StandaloneFetch, Q as SubgroupStreamHeader, U as UnknownParam } from './types-jV1yDDBA.cjs';
|
|
4
4
|
export { createDraft08SessionState } from './draft08-session.cjs';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
5
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-B9idsih-.cjs';
|
|
6
|
+
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-B9idsih-.cjs';
|
|
7
|
+
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
8
8
|
|
|
9
9
|
declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
10
10
|
declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
package/dist/draft08.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as Draft08Codec, c as createDraft08Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
1
|
+
export { D as Draft08Codec, c as createDraft08Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-Dl_QIXMz.js';
|
|
2
2
|
import { b as Draft08DataStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, S as SubgroupStream, a as Draft08MessageType, D as Draft08Message } from './types-jV1yDDBA.js';
|
|
3
3
|
export { e as DataStreamEvent, f as DataStreamHeader, g as Draft08Announce, h as Draft08AnnounceCancel, i as Draft08AnnounceError, j as Draft08AnnounceOk, k as Draft08BaseMessage, l as Draft08ClientSetup, m as Draft08Fetch, n as Draft08FetchCancel, o as Draft08FetchError, p as Draft08FetchOk, q as Draft08GoAway, r as Draft08MaxSubscribeId, s as Draft08Params, t as Draft08ServerSetup, u as Draft08SetupParams, v as Draft08Subscribe, w as Draft08SubscribeAnnounces, x as Draft08SubscribeAnnouncesError, y as Draft08SubscribeAnnouncesOk, z as Draft08SubscribeDone, A as Draft08SubscribeError, B as Draft08SubscribeOk, C as Draft08SubscribeUpdate, E as Draft08SubscribesBlocked, G as Draft08TrackStatus, H as Draft08TrackStatusRequest, I as Draft08Unannounce, J as Draft08Unsubscribe, K as Draft08UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as ObjectPayload, P as StandaloneFetch, Q as SubgroupStreamHeader, U as UnknownParam } from './types-jV1yDDBA.js';
|
|
4
4
|
export { createDraft08SessionState } from './draft08-session.js';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
5
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-Dn7b3RZM.js';
|
|
6
|
+
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-Dn7b3RZM.js';
|
|
7
|
+
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
|
8
8
|
|
|
9
9
|
declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
10
10
|
declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
3
3
|
import { D as Draft09Message, a as Draft09MessageType } from './types-B3g5G9KP.cjs';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft09SessionState(role: SessionStateOptionsRole): SessionState<Draft09Message, Draft09MessageType>;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
3
3
|
import { D as Draft09Message, a as Draft09MessageType } from './types-B3g5G9KP.js';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft09SessionState(role: SessionStateOptionsRole): SessionState<Draft09Message, Draft09MessageType>;
|
|
7
7
|
|
package/dist/draft09.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as Draft09Codec, c as createDraft09Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
1
|
+
export { D as Draft09Codec, c as createDraft09Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-CXCjya_G.cjs';
|
|
2
2
|
import { b as Draft09DataStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, S as SubgroupStream, a as Draft09MessageType, D as Draft09Message } from './types-B3g5G9KP.cjs';
|
|
3
3
|
export { e as DataStreamEvent, f as DataStreamHeader, g as Draft09Announce, h as Draft09AnnounceCancel, i as Draft09AnnounceError, j as Draft09AnnounceOk, k as Draft09BaseMessage, l as Draft09ClientSetup, m as Draft09Fetch, n as Draft09FetchCancel, o as Draft09FetchError, p as Draft09FetchOk, q as Draft09GoAway, r as Draft09MaxSubscribeId, s as Draft09Params, t as Draft09ServerSetup, u as Draft09SetupParams, v as Draft09Subscribe, w as Draft09SubscribeAnnounces, x as Draft09SubscribeAnnouncesError, y as Draft09SubscribeAnnouncesOk, z as Draft09SubscribeDone, A as Draft09SubscribeError, B as Draft09SubscribeOk, C as Draft09SubscribeUpdate, E as Draft09SubscribesBlocked, G as Draft09TrackStatus, H as Draft09TrackStatusRequest, I as Draft09Unannounce, J as Draft09Unsubscribe, K as Draft09UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as ObjectPayload, P as StandaloneFetch, Q as SubgroupStreamHeader, U as UnknownParam } from './types-B3g5G9KP.cjs';
|
|
4
4
|
export { createDraft09SessionState } from './draft09-session.cjs';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
5
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-B9idsih-.cjs';
|
|
6
|
+
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-B9idsih-.cjs';
|
|
7
|
+
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
8
8
|
|
|
9
9
|
declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
10
10
|
declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
package/dist/draft09.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as Draft09Codec, c as createDraft09Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
1
|
+
export { D as Draft09Codec, c as createDraft09Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-BNy5syCU.js';
|
|
2
2
|
import { b as Draft09DataStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, S as SubgroupStream, a as Draft09MessageType, D as Draft09Message } from './types-B3g5G9KP.js';
|
|
3
3
|
export { e as DataStreamEvent, f as DataStreamHeader, g as Draft09Announce, h as Draft09AnnounceCancel, i as Draft09AnnounceError, j as Draft09AnnounceOk, k as Draft09BaseMessage, l as Draft09ClientSetup, m as Draft09Fetch, n as Draft09FetchCancel, o as Draft09FetchError, p as Draft09FetchOk, q as Draft09GoAway, r as Draft09MaxSubscribeId, s as Draft09Params, t as Draft09ServerSetup, u as Draft09SetupParams, v as Draft09Subscribe, w as Draft09SubscribeAnnounces, x as Draft09SubscribeAnnouncesError, y as Draft09SubscribeAnnouncesOk, z as Draft09SubscribeDone, A as Draft09SubscribeError, B as Draft09SubscribeOk, C as Draft09SubscribeUpdate, E as Draft09SubscribesBlocked, G as Draft09TrackStatus, H as Draft09TrackStatusRequest, I as Draft09Unannounce, J as Draft09Unsubscribe, K as Draft09UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as ObjectPayload, P as StandaloneFetch, Q as SubgroupStreamHeader, U as UnknownParam } from './types-B3g5G9KP.js';
|
|
4
4
|
export { createDraft09SessionState } from './draft09-session.js';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
5
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-Dn7b3RZM.js';
|
|
6
|
+
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-Dn7b3RZM.js';
|
|
7
|
+
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
|
8
8
|
|
|
9
9
|
declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
10
10
|
declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|