@moqtap/codec 0.10.0 → 0.12.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 +175 -0
- package/README.md +3 -2
- package/dist/auth-redaction-B9JJOlIY.d.cts +100 -0
- package/dist/auth-redaction-B9JJOlIY.d.ts +100 -0
- package/dist/{chunk-RYKQXBG6.cjs → chunk-27K5BUAG.cjs} +481 -517
- package/dist/{chunk-WCPENYNE.js → chunk-3RNQMGKA.js} +359 -390
- package/dist/{chunk-TSUZ6GJV.js → chunk-5AWIXOLB.js} +438 -469
- package/dist/{chunk-4XLYCT5Q.cjs → chunk-5IMHJIAZ.cjs} +52 -2
- package/dist/{chunk-KTNERCTZ.cjs → chunk-5JGZCKJO.cjs} +488 -518
- package/dist/{chunk-WCTMPDUX.cjs → chunk-73K4OSAN.cjs} +401 -432
- package/dist/{chunk-N2V7Z37J.js → chunk-7VQKRGRD.js} +19 -3
- package/dist/{chunk-BIBMDTU5.cjs → chunk-A3UCQOIB.cjs} +486 -517
- package/dist/{chunk-K2B3OVFK.js → chunk-A7PDMVXM.js} +24 -3
- package/dist/{chunk-VZHL2U2N.cjs → chunk-A7VQO6YC.cjs} +54 -38
- package/dist/{chunk-AQ445VV7.cjs → chunk-ACQHZLRZ.cjs} +66 -46
- package/dist/{chunk-L5DRACXS.js → chunk-BBICOMW6.js} +25 -3
- package/dist/{chunk-T4VWPKDG.cjs → chunk-BNIUVOCJ.cjs} +529 -599
- package/dist/{chunk-UKKDOOUO.cjs → chunk-CNC6ANS4.cjs} +58 -37
- package/dist/{chunk-OZRK73NQ.js → chunk-FDLQSWHK.js} +433 -469
- package/dist/{chunk-IJAF6PAY.js → chunk-FFNOE4UR.js} +19 -3
- package/dist/{chunk-CZNW3R5E.cjs → chunk-GMENT63T.cjs} +54 -38
- package/dist/{chunk-XCRCAUGI.cjs → chunk-HM7BLRVP.cjs} +291 -297
- package/dist/{chunk-XHAP2YST.js → chunk-HZONHFNO.js} +19 -3
- package/dist/{chunk-SDJTSMOW.cjs → chunk-ILYABWDK.cjs} +60 -38
- package/dist/{chunk-IDV2JYJ6.cjs → chunk-KRSFTZVO.cjs} +56 -40
- package/dist/{chunk-RIIA4ALQ.cjs → chunk-KSPH6KMH.cjs} +54 -38
- package/dist/{chunk-OUNN4IQB.cjs → chunk-KTY4LAUV.cjs} +482 -497
- package/dist/chunk-OBATJBNL.cjs +868 -0
- package/dist/{chunk-RZTLQAKF.js → chunk-OJNLJT5D.js} +0 -1
- package/dist/{chunk-FT3HDNIB.js → chunk-PJK2ZS3I.js} +467 -537
- package/dist/{chunk-G53WYUXL.js → chunk-PSMZKHOC.js} +441 -456
- package/dist/{chunk-7RE6KSIY.cjs → chunk-Q5JQGHWY.cjs} +0 -1
- package/dist/{chunk-BX2N7TZM.js → chunk-SQTUQY5E.js} +31 -11
- package/dist/chunk-T2TCLZZV.js +2304 -0
- package/dist/chunk-WB65UG7G.cjs +2304 -0
- package/dist/{chunk-CF5DDD3Q.js → chunk-WCRLAKDW.js} +239 -245
- package/dist/{chunk-KYVTM5VI.js → chunk-WL2YUEXH.js} +19 -3
- package/dist/chunk-XPCBPACE.js +868 -0
- package/dist/{chunk-KGDVC4O6.js → chunk-YCNIVZS7.js} +439 -469
- package/dist/{chunk-KLPWJU6W.js → chunk-YRZQVNZO.js} +50 -0
- package/dist/{codec-DOmAmFkI.d.ts → codec-B-oUU-cp.d.ts} +21 -2
- package/dist/{codec-DNmiG2e0.d.cts → codec-B3RpCI9k.d.cts} +21 -2
- package/dist/codec-B5pcOS3m.d.cts +38 -0
- package/dist/{codec-BNy5syCU.d.ts → codec-BLjxwK2f.d.ts} +21 -2
- package/dist/{codec-alVA27Uc.d.ts → codec-BV3CL_3m.d.ts} +21 -2
- package/dist/{codec-Czejcmxr.d.cts → codec-BYCDWgED.d.ts} +22 -3
- package/dist/{codec-DaXjRrOV.d.ts → codec-Bwqq7ZQT.d.ts} +22 -3
- package/dist/{codec-CFWu5KVT.d.cts → codec-BzWxOFby.d.cts} +22 -3
- package/dist/codec-C-nJhNNl.d.ts +38 -0
- package/dist/{codec-EvybrBuY.d.cts → codec-C11VEPbQ.d.cts} +21 -2
- package/dist/codec-C9U0Vzy9.d.cts +68 -0
- package/dist/{codec-Cm3D261p.d.ts → codec-CCx22jnd.d.ts} +21 -2
- package/dist/{codec-CwZ6OCPP.d.ts → codec-CP3zkfTv.d.ts} +22 -3
- package/dist/{codec-BxQTybUX.d.cts → codec-CRmOLDpt.d.ts} +22 -3
- package/dist/{codec-DzkdW4kO.d.cts → codec-CUu56DDU.d.cts} +21 -2
- package/dist/codec-Cb8mUre3.d.ts +68 -0
- package/dist/{codec-f7vxeVIS.d.cts → codec-CemqAQdR.d.cts} +22 -3
- package/dist/{codec-gl4_QEva.d.ts → codec-CxMvsVMS.d.ts} +21 -2
- package/dist/{codec-Bd60SGKH.d.cts → codec-DIgMVTi4.d.cts} +21 -2
- package/dist/{codec--CVeqGQv.d.ts → codec-DYzozF68.d.ts} +21 -2
- package/dist/{codec-CWnf8mn_.d.cts → codec-D_O9zxax.d.ts} +22 -3
- package/dist/{codec-08ZOr5wI.d.ts → codec-Ddc-QxV6.d.cts} +22 -3
- package/dist/{codec-CBdOIfMY.d.ts → codec-DoojMl2z.d.cts} +22 -3
- package/dist/{codec-BrTi4K7r.d.cts → codec-DqdjiOQF.d.ts} +22 -3
- package/dist/{codec-CXCjya_G.d.cts → codec-Dstemwrq.d.cts} +21 -2
- package/dist/{codec-Dl_QIXMz.d.ts → codec-Dt6nuejp.d.ts} +21 -2
- package/dist/{codec-Bux_Q40X.d.ts → codec-DuYhd8fP.d.cts} +22 -3
- package/dist/{codec-Cfo_z5ET.d.cts → codec-DwNOFgPU.d.cts} +21 -2
- package/dist/{codec-guzqtfMk.d.cts → codec-l01BpNhF.d.cts} +21 -2
- package/dist/{codec-C3mdsGx3.d.ts → codec-psN2vB6I.d.cts} +22 -3
- package/dist/draft07-session.d.cts +3 -3
- package/dist/draft07-session.d.ts +3 -3
- package/dist/draft07.cjs +48 -4
- package/dist/draft07.d.cts +44 -4
- package/dist/draft07.d.ts +44 -4
- package/dist/draft07.js +49 -5
- package/dist/draft08-session.d.cts +3 -3
- package/dist/draft08-session.d.ts +3 -3
- package/dist/draft08.cjs +76 -3
- package/dist/draft08.d.cts +73 -5
- package/dist/draft08.d.ts +73 -5
- package/dist/draft08.js +77 -4
- package/dist/draft09-session.d.cts +3 -3
- package/dist/draft09-session.d.ts +3 -3
- package/dist/draft09.cjs +76 -3
- package/dist/draft09.d.cts +73 -5
- package/dist/draft09.d.ts +73 -5
- package/dist/draft09.js +77 -4
- package/dist/draft10-session.d.cts +3 -3
- package/dist/draft10-session.d.ts +3 -3
- package/dist/draft10.cjs +76 -3
- package/dist/draft10.d.cts +73 -5
- package/dist/draft10.d.ts +73 -5
- package/dist/draft10.js +77 -4
- package/dist/draft11-session.d.cts +3 -3
- package/dist/draft11-session.d.ts +3 -3
- package/dist/draft11.cjs +104 -3
- package/dist/draft11.d.cts +101 -5
- package/dist/draft11.d.ts +101 -5
- package/dist/draft11.js +105 -4
- package/dist/draft12-session.d.cts +3 -3
- package/dist/draft12-session.d.ts +3 -3
- package/dist/draft12.cjs +113 -3
- package/dist/draft12.d.cts +110 -5
- package/dist/draft12.d.ts +110 -5
- package/dist/draft12.js +114 -4
- package/dist/draft13-session.d.cts +3 -3
- package/dist/draft13-session.d.ts +3 -3
- package/dist/draft13.cjs +105 -3
- package/dist/draft13.d.cts +102 -5
- package/dist/draft13.d.ts +102 -5
- package/dist/draft13.js +106 -4
- package/dist/draft14-session.d.cts +3 -3
- package/dist/draft14-session.d.ts +3 -3
- package/dist/draft14.cjs +107 -3
- package/dist/draft14.d.cts +104 -31
- package/dist/draft14.d.ts +104 -31
- package/dist/draft14.js +108 -4
- package/dist/draft15-session.d.cts +4 -4
- package/dist/draft15-session.d.ts +4 -4
- package/dist/draft15.cjs +69 -3
- package/dist/draft15.d.cts +68 -25
- package/dist/draft15.d.ts +68 -25
- package/dist/draft15.js +70 -4
- package/dist/draft16-session.cjs +2 -2
- package/dist/draft16-session.d.cts +4 -4
- package/dist/draft16-session.d.ts +4 -4
- package/dist/draft16-session.js +1 -1
- package/dist/draft16.cjs +76 -8
- package/dist/draft16.d.cts +70 -16
- package/dist/draft16.d.ts +70 -16
- package/dist/draft16.js +73 -5
- package/dist/draft17-session.d.cts +4 -4
- package/dist/draft17-session.d.ts +4 -4
- package/dist/draft17.cjs +77 -3
- package/dist/draft17.d.cts +75 -6
- package/dist/draft17.d.ts +75 -6
- package/dist/draft17.js +78 -4
- package/dist/draft18-session.d.cts +4 -4
- package/dist/draft18-session.d.ts +4 -4
- package/dist/draft18.cjs +8 -3
- package/dist/draft18.d.cts +6 -5
- package/dist/draft18.d.ts +6 -5
- package/dist/draft18.js +9 -4
- package/dist/draft19-session.d.cts +4 -4
- package/dist/draft19-session.d.ts +4 -4
- package/dist/draft19.cjs +11 -4
- package/dist/draft19.d.cts +6 -5
- package/dist/draft19.d.ts +6 -5
- package/dist/draft19.js +12 -5
- package/dist/draft20-session.d.cts +4 -4
- package/dist/draft20-session.d.ts +4 -4
- package/dist/draft20.cjs +8 -3
- package/dist/draft20.d.cts +6 -5
- package/dist/draft20.d.ts +6 -5
- package/dist/draft20.js +9 -4
- package/dist/draft21-session.cjs +8 -0
- package/dist/draft21-session.d.cts +195 -0
- package/dist/draft21-session.d.ts +195 -0
- package/dist/draft21-session.js +8 -0
- package/dist/draft21.cjs +222 -0
- package/dist/draft21.d.cts +176 -0
- package/dist/draft21.d.ts +176 -0
- package/dist/draft21.js +222 -0
- package/dist/index.cjs +37 -31
- package/dist/index.d.cts +29 -23
- package/dist/index.d.ts +29 -23
- package/dist/index.js +22 -16
- package/dist/{session-types-Dn7b3RZM.d.ts → session-types-Cxx7W8zZ.d.ts} +1 -1
- package/dist/{session-types-B9idsih-.d.cts → session-types-DZkI_qFG.d.cts} +1 -1
- package/dist/session.cjs +7 -3
- package/dist/session.d.cts +11 -9
- package/dist/session.d.ts +11 -9
- package/dist/session.js +6 -2
- package/dist/{types-DG5_iKuv.d.cts → types-2NisMA8_.d.cts} +1 -1
- package/dist/{types-DG5_iKuv.d.ts → types-2NisMA8_.d.ts} +1 -1
- package/dist/{types-C1rxh-id.d.cts → types-Btp416jt.d.cts} +8 -0
- package/dist/{types-C1rxh-id.d.ts → types-Btp416jt.d.ts} +8 -0
- package/dist/{types-CZTzbIzQ.d.cts → types-BxTL1NXw.d.cts} +7 -0
- package/dist/{types-CZTzbIzQ.d.ts → types-BxTL1NXw.d.ts} +7 -0
- package/dist/{types-pShrs3fN.d.cts → types-CuibHYcf.d.cts} +7 -0
- package/dist/{types-pShrs3fN.d.ts → types-CuibHYcf.d.ts} +7 -0
- package/dist/{types-CY-QWxd-.d.cts → types-CwN7AEoL.d.cts} +13 -1
- package/dist/{types-CY-QWxd-.d.ts → types-CwN7AEoL.d.ts} +13 -1
- package/dist/{types-D4bmW8rY.d.cts → types-DAnalt5K.d.cts} +7 -0
- package/dist/{types-D4bmW8rY.d.ts → types-DAnalt5K.d.ts} +7 -0
- package/dist/types-DDwidj2d.d.cts +371 -0
- package/dist/types-DDwidj2d.d.ts +371 -0
- package/dist/{types-Bg86GGVZ.d.cts → types-DxXNP32l.d.cts} +8 -0
- package/dist/{types-Bg86GGVZ.d.ts → types-DxXNP32l.d.ts} +8 -0
- package/package.json +15 -3
- package/src/core/auth-redaction.ts +190 -0
- package/src/core/types.ts +1 -0
- package/src/drafts/draft07/codec.ts +40 -0
- package/src/drafts/draft07/error-codes.ts +44 -0
- package/src/drafts/draft07/index.ts +15 -0
- package/src/drafts/draft08/codec.ts +40 -0
- package/src/drafts/draft08/error-codes.ts +76 -0
- package/src/drafts/draft08/index.ts +21 -0
- package/src/drafts/draft09/codec.ts +40 -0
- package/src/drafts/draft09/error-codes.ts +76 -0
- package/src/drafts/draft09/index.ts +21 -0
- package/src/drafts/draft10/codec.ts +40 -0
- package/src/drafts/draft10/error-codes.ts +76 -0
- package/src/drafts/draft10/index.ts +21 -0
- package/src/drafts/draft11/codec.ts +60 -0
- package/src/drafts/draft11/error-codes.ts +106 -0
- package/src/drafts/draft11/index.ts +23 -0
- package/src/drafts/draft12/codec.ts +61 -0
- package/src/drafts/draft12/error-codes.ts +116 -0
- package/src/drafts/draft12/index.ts +25 -0
- package/src/drafts/draft13/codec.ts +69 -11
- package/src/drafts/draft13/error-codes.ts +107 -0
- package/src/drafts/draft13/index.ts +23 -0
- package/src/drafts/draft13/types.ts +1 -1
- package/src/drafts/draft14/codec.ts +65 -4
- package/src/drafts/draft14/data-streams.ts +331 -259
- package/src/drafts/draft14/error-codes.ts +109 -0
- package/src/drafts/draft14/index.ts +23 -0
- package/src/drafts/draft15/codec.ts +65 -8
- package/src/drafts/draft15/data-streams.ts +489 -444
- package/src/drafts/draft15/error-codes.ts +66 -0
- package/src/drafts/draft15/index.ts +15 -0
- package/src/drafts/draft15/types.ts +7 -0
- package/src/drafts/draft16/codec.ts +146 -52
- package/src/drafts/draft16/data-streams.ts +513 -442
- package/src/drafts/draft16/error-codes.ts +68 -0
- package/src/drafts/draft16/index.ts +15 -0
- package/src/drafts/draft16/messages.ts +4 -4
- package/src/drafts/draft16/session-fsm.ts +0 -1
- package/src/drafts/draft16/types.ts +22 -8
- package/src/drafts/draft17/codec.ts +73 -12
- package/src/drafts/draft17/data-streams.ts +567 -488
- package/src/drafts/draft17/index.ts +15 -0
- package/src/drafts/draft17/types.ts +7 -0
- package/src/drafts/draft18/codec.ts +66 -9
- package/src/drafts/draft18/data-streams.ts +570 -482
- package/src/drafts/draft18/index.ts +3 -0
- package/src/drafts/draft18/types.ts +16 -8
- package/src/drafts/draft19/codec.ts +70 -10
- package/src/drafts/draft19/data-streams.ts +570 -482
- package/src/drafts/draft19/error-codes.ts +3 -1
- package/src/drafts/draft19/index.ts +3 -0
- package/src/drafts/draft19/messages.ts +3 -1
- package/src/drafts/draft19/types.ts +22 -11
- package/src/drafts/draft20/codec.ts +90 -23
- package/src/drafts/draft20/data-streams.ts +610 -563
- package/src/drafts/draft20/index.ts +3 -0
- package/src/drafts/draft20/types.ts +14 -2
- package/src/drafts/draft21/codec.ts +1816 -0
- package/src/drafts/draft21/data-streams.ts +1338 -0
- package/src/drafts/draft21/error-codes.ts +135 -0
- package/src/drafts/draft21/index.ts +168 -0
- package/src/drafts/draft21/messages.ts +68 -0
- package/src/drafts/draft21/rules.ts +107 -0
- package/src/drafts/draft21/session-fsm.ts +1063 -0
- package/src/drafts/draft21/session.ts +21 -0
- package/src/drafts/draft21/types.ts +473 -0
- package/src/index.ts +9 -1
- package/src/session.ts +4 -0
- package/dist/codec-BJ7BHuiZ.d.ts +0 -18
- package/dist/codec-C6Mx4bwz.d.cts +0 -18
package/dist/draft15.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-B9JJOlIY.cjs';
|
|
2
|
+
export { D as Draft15Codec, c as createDraft15Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-Ddc-QxV6.cjs';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft15DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft15MessageType, D as Draft15Message } from './types-CuibHYcf.cjs';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft15BaseMessage, i as Draft15ClientSetup, j as Draft15Fetch, k as Draft15FetchCancel, l as Draft15FetchOk, m as Draft15GoAway, n as Draft15MaxRequestId, o as Draft15Params, p as Draft15Publish, q as Draft15PublishDone, r as Draft15PublishNamespace, s as Draft15PublishNamespaceCancel, t as Draft15PublishNamespaceDone, u as Draft15PublishOk, v as Draft15RequestError, w as Draft15RequestOk, x as Draft15RequestsBlocked, y as Draft15ServerSetup, z as Draft15SetupParams, A as Draft15Subscribe, B as Draft15SubscribeNamespace, C as Draft15SubscribeOk, E as Draft15SubscribeUpdate, G as Draft15TrackStatus, H as Draft15Unsubscribe, I as Draft15UnsubscribeNamespace, J as FetchObjectPayload, K as JoiningFetch, L as LargestObject, M as StandaloneFetch, N as SubscriptionFilter, U as UnknownParam } from './types-CuibHYcf.cjs';
|
|
4
5
|
export { createDraft15SessionState } from './draft15-session.cjs';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, e as PublishPhase, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
6
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-DZkI_qFG.cjs';
|
|
7
|
+
export { F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, e as PublishPhase, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-DZkI_qFG.cjs';
|
|
8
|
+
import { b as DecodeResult } from './types-2NisMA8_.cjs';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Encode a subgroup stream header + objects.
|
|
@@ -20,35 +21,77 @@ declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
|
20
21
|
* Encode a fetch stream header + objects.
|
|
21
22
|
*/
|
|
22
23
|
declare function encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
23
|
-
/**
|
|
24
|
-
* Decode a subgroup data stream from raw bytes.
|
|
25
|
-
*/
|
|
26
24
|
declare function decodeSubgroupStream(bytes: Uint8Array): DecodeResult<SubgroupStream>;
|
|
27
|
-
/**
|
|
28
|
-
* Decode a datagram object from raw bytes.
|
|
29
|
-
*/
|
|
30
25
|
declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>;
|
|
31
|
-
/**
|
|
32
|
-
* Decode a fetch data stream from raw bytes.
|
|
33
|
-
*/
|
|
34
26
|
declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
35
27
|
/**
|
|
36
28
|
* Decode a data stream, dispatching by stream type.
|
|
37
29
|
*/
|
|
38
30
|
declare function decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft15DataStream>;
|
|
39
|
-
/**
|
|
40
|
-
* Create a TransformStream that decodes a subgroup data stream.
|
|
41
|
-
*/
|
|
42
31
|
declare function createSubgroupStreamDecoder(): TransformStream<Uint8Array, SubgroupStreamHeader | ObjectPayload>;
|
|
43
|
-
/**
|
|
44
|
-
* Create a TransformStream that decodes a fetch data stream.
|
|
45
|
-
*/
|
|
46
32
|
declare function createFetchStreamDecoder(): TransformStream<Uint8Array, FetchStreamHeader | ObjectPayload>;
|
|
47
|
-
/**
|
|
48
|
-
* Create a unified auto-detecting data stream decoder.
|
|
49
|
-
*/
|
|
50
33
|
declare function createDataStreamDecoder(): TransformStream<Uint8Array, DataStreamEvent>;
|
|
51
34
|
|
|
35
|
+
declare const SessionErrorCode: {
|
|
36
|
+
readonly NoError: 0n;
|
|
37
|
+
readonly InternalError: 1n;
|
|
38
|
+
readonly Unauthorized: 2n;
|
|
39
|
+
readonly ProtocolViolation: 3n;
|
|
40
|
+
readonly InvalidRequestId: 4n;
|
|
41
|
+
readonly DuplicateTrackAlias: 5n;
|
|
42
|
+
readonly KeyValueFormattingError: 6n;
|
|
43
|
+
readonly TooManyRequests: 7n;
|
|
44
|
+
readonly InvalidPath: 8n;
|
|
45
|
+
readonly MalformedPath: 9n;
|
|
46
|
+
readonly GoawayTimeout: 16n;
|
|
47
|
+
readonly ControlMessageTimeout: 17n;
|
|
48
|
+
readonly DataStreamTimeout: 18n;
|
|
49
|
+
readonly AuthTokenCacheOverflow: 19n;
|
|
50
|
+
readonly DuplicateAuthTokenAlias: 20n;
|
|
51
|
+
readonly VersionNegotiationFailed: 21n;
|
|
52
|
+
readonly MalformedAuthToken: 22n;
|
|
53
|
+
readonly UnknownAuthTokenAlias: 23n;
|
|
54
|
+
readonly ExpiredAuthToken: 24n;
|
|
55
|
+
readonly InvalidAuthority: 25n;
|
|
56
|
+
readonly MalformedAuthority: 26n;
|
|
57
|
+
};
|
|
58
|
+
type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
|
|
59
|
+
declare const RequestErrorCode: {
|
|
60
|
+
readonly InternalError: 0n;
|
|
61
|
+
readonly Unauthorized: 1n;
|
|
62
|
+
readonly Timeout: 2n;
|
|
63
|
+
readonly NotSupported: 3n;
|
|
64
|
+
readonly MalformedAuthToken: 4n;
|
|
65
|
+
readonly ExpiredAuthToken: 5n;
|
|
66
|
+
readonly DoesNotExist: 16n;
|
|
67
|
+
readonly InvalidRange: 17n;
|
|
68
|
+
readonly MalformedTrack: 18n;
|
|
69
|
+
readonly Uninterested: 32n;
|
|
70
|
+
readonly PrefixOverlap: 48n;
|
|
71
|
+
readonly InvalidJoiningRequestId: 50n;
|
|
72
|
+
readonly UnknownStatusInRange: 51n;
|
|
73
|
+
};
|
|
74
|
+
type RequestErrorCodeValue = (typeof RequestErrorCode)[keyof typeof RequestErrorCode];
|
|
75
|
+
declare const PublishDoneStatusCode: {
|
|
76
|
+
readonly InternalError: 0n;
|
|
77
|
+
readonly Unauthorized: 1n;
|
|
78
|
+
readonly TrackEnded: 2n;
|
|
79
|
+
readonly SubscriptionEnded: 3n;
|
|
80
|
+
readonly GoingAway: 4n;
|
|
81
|
+
readonly Expired: 5n;
|
|
82
|
+
readonly TooFarBehind: 6n;
|
|
83
|
+
readonly MalformedTrack: 7n;
|
|
84
|
+
readonly UpdateFailed: 8n;
|
|
85
|
+
};
|
|
86
|
+
type PublishDoneStatusCodeValue = (typeof PublishDoneStatusCode)[keyof typeof PublishDoneStatusCode];
|
|
87
|
+
declare const DataStreamResetErrorCode: {
|
|
88
|
+
readonly InternalError: 0n;
|
|
89
|
+
readonly Cancelled: 1n;
|
|
90
|
+
readonly DeliveryTimeout: 2n;
|
|
91
|
+
readonly SessionClosed: 3n;
|
|
92
|
+
};
|
|
93
|
+
type DataStreamResetErrorCodeValue = (typeof DataStreamResetErrorCode)[keyof typeof DataStreamResetErrorCode];
|
|
94
|
+
|
|
52
95
|
declare const MSG_SUBSCRIBE_UPDATE = 2n;
|
|
53
96
|
declare const MSG_SUBSCRIBE = 3n;
|
|
54
97
|
declare const MSG_SUBSCRIBE_OK = 4n;
|
|
@@ -135,4 +178,4 @@ declare class Draft15SessionFSM {
|
|
|
135
178
|
|
|
136
179
|
declare const DRAFT_VERSION = 4278190095n;
|
|
137
180
|
|
|
138
|
-
export { BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DataStreamEvent, DatagramObject, Draft15DataStream, Draft15Message, Draft15MessageType, Draft15SessionFSM, FetchState, FetchStream, FetchStreamHeader, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_DONE, MSG_PUBLISH_NAMESPACE, MSG_PUBLISH_NAMESPACE_CANCEL, MSG_PUBLISH_NAMESPACE_DONE, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_REQUEST_ERROR, MSG_REQUEST_OK, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_NAMESPACE, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_NAMESPACE, ObjectPayload, PublishState, SERVER_ONLY_MESSAGES, SETUP_PARAM_AUTHORITY, SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_MOQT_IMPLEMENTATION, SETUP_PARAM_PATH, SessionPhase, SubgroupStream, SubgroupStreamHeader, SubscriptionState, TransitionResult, ValidationResult, createDataStreamDecoder, createFetchStreamDecoder, createSubgroupStreamDecoder, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
|
181
|
+
export { BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DataStreamEvent, DataStreamResetErrorCode, type DataStreamResetErrorCodeValue, DatagramObject, Draft15DataStream, Draft15Message, Draft15MessageType, Draft15SessionFSM, FetchState, FetchStream, FetchStreamHeader, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_DONE, MSG_PUBLISH_NAMESPACE, MSG_PUBLISH_NAMESPACE_CANCEL, MSG_PUBLISH_NAMESPACE_DONE, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_REQUEST_ERROR, MSG_REQUEST_OK, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_NAMESPACE, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_NAMESPACE, ObjectPayload, PublishDoneStatusCode, type PublishDoneStatusCodeValue, PublishState, RequestErrorCode, type RequestErrorCodeValue, SERVER_ONLY_MESSAGES, SETUP_PARAM_AUTHORITY, SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_MOQT_IMPLEMENTATION, SETUP_PARAM_PATH, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, SubgroupStream, SubgroupStreamHeader, SubscriptionState, TransitionResult, ValidationResult, createDataStreamDecoder, createFetchStreamDecoder, createSubgroupStreamDecoder, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
package/dist/draft15.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-B9JJOlIY.js';
|
|
2
|
+
export { D as Draft15Codec, c as createDraft15Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-CRmOLDpt.js';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft15DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft15MessageType, D as Draft15Message } from './types-CuibHYcf.js';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft15BaseMessage, i as Draft15ClientSetup, j as Draft15Fetch, k as Draft15FetchCancel, l as Draft15FetchOk, m as Draft15GoAway, n as Draft15MaxRequestId, o as Draft15Params, p as Draft15Publish, q as Draft15PublishDone, r as Draft15PublishNamespace, s as Draft15PublishNamespaceCancel, t as Draft15PublishNamespaceDone, u as Draft15PublishOk, v as Draft15RequestError, w as Draft15RequestOk, x as Draft15RequestsBlocked, y as Draft15ServerSetup, z as Draft15SetupParams, A as Draft15Subscribe, B as Draft15SubscribeNamespace, C as Draft15SubscribeOk, E as Draft15SubscribeUpdate, G as Draft15TrackStatus, H as Draft15Unsubscribe, I as Draft15UnsubscribeNamespace, J as FetchObjectPayload, K as JoiningFetch, L as LargestObject, M as StandaloneFetch, N as SubscriptionFilter, U as UnknownParam } from './types-CuibHYcf.js';
|
|
4
5
|
export { createDraft15SessionState } from './draft15-session.js';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, e as PublishPhase, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
6
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-Cxx7W8zZ.js';
|
|
7
|
+
export { F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, e as PublishPhase, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-Cxx7W8zZ.js';
|
|
8
|
+
import { b as DecodeResult } from './types-2NisMA8_.js';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Encode a subgroup stream header + objects.
|
|
@@ -20,35 +21,77 @@ declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
|
20
21
|
* Encode a fetch stream header + objects.
|
|
21
22
|
*/
|
|
22
23
|
declare function encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
23
|
-
/**
|
|
24
|
-
* Decode a subgroup data stream from raw bytes.
|
|
25
|
-
*/
|
|
26
24
|
declare function decodeSubgroupStream(bytes: Uint8Array): DecodeResult<SubgroupStream>;
|
|
27
|
-
/**
|
|
28
|
-
* Decode a datagram object from raw bytes.
|
|
29
|
-
*/
|
|
30
25
|
declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>;
|
|
31
|
-
/**
|
|
32
|
-
* Decode a fetch data stream from raw bytes.
|
|
33
|
-
*/
|
|
34
26
|
declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
35
27
|
/**
|
|
36
28
|
* Decode a data stream, dispatching by stream type.
|
|
37
29
|
*/
|
|
38
30
|
declare function decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft15DataStream>;
|
|
39
|
-
/**
|
|
40
|
-
* Create a TransformStream that decodes a subgroup data stream.
|
|
41
|
-
*/
|
|
42
31
|
declare function createSubgroupStreamDecoder(): TransformStream<Uint8Array, SubgroupStreamHeader | ObjectPayload>;
|
|
43
|
-
/**
|
|
44
|
-
* Create a TransformStream that decodes a fetch data stream.
|
|
45
|
-
*/
|
|
46
32
|
declare function createFetchStreamDecoder(): TransformStream<Uint8Array, FetchStreamHeader | ObjectPayload>;
|
|
47
|
-
/**
|
|
48
|
-
* Create a unified auto-detecting data stream decoder.
|
|
49
|
-
*/
|
|
50
33
|
declare function createDataStreamDecoder(): TransformStream<Uint8Array, DataStreamEvent>;
|
|
51
34
|
|
|
35
|
+
declare const SessionErrorCode: {
|
|
36
|
+
readonly NoError: 0n;
|
|
37
|
+
readonly InternalError: 1n;
|
|
38
|
+
readonly Unauthorized: 2n;
|
|
39
|
+
readonly ProtocolViolation: 3n;
|
|
40
|
+
readonly InvalidRequestId: 4n;
|
|
41
|
+
readonly DuplicateTrackAlias: 5n;
|
|
42
|
+
readonly KeyValueFormattingError: 6n;
|
|
43
|
+
readonly TooManyRequests: 7n;
|
|
44
|
+
readonly InvalidPath: 8n;
|
|
45
|
+
readonly MalformedPath: 9n;
|
|
46
|
+
readonly GoawayTimeout: 16n;
|
|
47
|
+
readonly ControlMessageTimeout: 17n;
|
|
48
|
+
readonly DataStreamTimeout: 18n;
|
|
49
|
+
readonly AuthTokenCacheOverflow: 19n;
|
|
50
|
+
readonly DuplicateAuthTokenAlias: 20n;
|
|
51
|
+
readonly VersionNegotiationFailed: 21n;
|
|
52
|
+
readonly MalformedAuthToken: 22n;
|
|
53
|
+
readonly UnknownAuthTokenAlias: 23n;
|
|
54
|
+
readonly ExpiredAuthToken: 24n;
|
|
55
|
+
readonly InvalidAuthority: 25n;
|
|
56
|
+
readonly MalformedAuthority: 26n;
|
|
57
|
+
};
|
|
58
|
+
type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
|
|
59
|
+
declare const RequestErrorCode: {
|
|
60
|
+
readonly InternalError: 0n;
|
|
61
|
+
readonly Unauthorized: 1n;
|
|
62
|
+
readonly Timeout: 2n;
|
|
63
|
+
readonly NotSupported: 3n;
|
|
64
|
+
readonly MalformedAuthToken: 4n;
|
|
65
|
+
readonly ExpiredAuthToken: 5n;
|
|
66
|
+
readonly DoesNotExist: 16n;
|
|
67
|
+
readonly InvalidRange: 17n;
|
|
68
|
+
readonly MalformedTrack: 18n;
|
|
69
|
+
readonly Uninterested: 32n;
|
|
70
|
+
readonly PrefixOverlap: 48n;
|
|
71
|
+
readonly InvalidJoiningRequestId: 50n;
|
|
72
|
+
readonly UnknownStatusInRange: 51n;
|
|
73
|
+
};
|
|
74
|
+
type RequestErrorCodeValue = (typeof RequestErrorCode)[keyof typeof RequestErrorCode];
|
|
75
|
+
declare const PublishDoneStatusCode: {
|
|
76
|
+
readonly InternalError: 0n;
|
|
77
|
+
readonly Unauthorized: 1n;
|
|
78
|
+
readonly TrackEnded: 2n;
|
|
79
|
+
readonly SubscriptionEnded: 3n;
|
|
80
|
+
readonly GoingAway: 4n;
|
|
81
|
+
readonly Expired: 5n;
|
|
82
|
+
readonly TooFarBehind: 6n;
|
|
83
|
+
readonly MalformedTrack: 7n;
|
|
84
|
+
readonly UpdateFailed: 8n;
|
|
85
|
+
};
|
|
86
|
+
type PublishDoneStatusCodeValue = (typeof PublishDoneStatusCode)[keyof typeof PublishDoneStatusCode];
|
|
87
|
+
declare const DataStreamResetErrorCode: {
|
|
88
|
+
readonly InternalError: 0n;
|
|
89
|
+
readonly Cancelled: 1n;
|
|
90
|
+
readonly DeliveryTimeout: 2n;
|
|
91
|
+
readonly SessionClosed: 3n;
|
|
92
|
+
};
|
|
93
|
+
type DataStreamResetErrorCodeValue = (typeof DataStreamResetErrorCode)[keyof typeof DataStreamResetErrorCode];
|
|
94
|
+
|
|
52
95
|
declare const MSG_SUBSCRIBE_UPDATE = 2n;
|
|
53
96
|
declare const MSG_SUBSCRIBE = 3n;
|
|
54
97
|
declare const MSG_SUBSCRIBE_OK = 4n;
|
|
@@ -135,4 +178,4 @@ declare class Draft15SessionFSM {
|
|
|
135
178
|
|
|
136
179
|
declare const DRAFT_VERSION = 4278190095n;
|
|
137
180
|
|
|
138
|
-
export { BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DataStreamEvent, DatagramObject, Draft15DataStream, Draft15Message, Draft15MessageType, Draft15SessionFSM, FetchState, FetchStream, FetchStreamHeader, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_DONE, MSG_PUBLISH_NAMESPACE, MSG_PUBLISH_NAMESPACE_CANCEL, MSG_PUBLISH_NAMESPACE_DONE, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_REQUEST_ERROR, MSG_REQUEST_OK, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_NAMESPACE, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_NAMESPACE, ObjectPayload, PublishState, SERVER_ONLY_MESSAGES, SETUP_PARAM_AUTHORITY, SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_MOQT_IMPLEMENTATION, SETUP_PARAM_PATH, SessionPhase, SubgroupStream, SubgroupStreamHeader, SubscriptionState, TransitionResult, ValidationResult, createDataStreamDecoder, createFetchStreamDecoder, createSubgroupStreamDecoder, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
|
181
|
+
export { BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DataStreamEvent, DataStreamResetErrorCode, type DataStreamResetErrorCodeValue, DatagramObject, Draft15DataStream, Draft15Message, Draft15MessageType, Draft15SessionFSM, FetchState, FetchStream, FetchStreamHeader, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_DONE, MSG_PUBLISH_NAMESPACE, MSG_PUBLISH_NAMESPACE_CANCEL, MSG_PUBLISH_NAMESPACE_DONE, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_REQUEST_ERROR, MSG_REQUEST_OK, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_NAMESPACE, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_NAMESPACE, ObjectPayload, PublishDoneStatusCode, type PublishDoneStatusCodeValue, PublishState, RequestErrorCode, type RequestErrorCodeValue, SERVER_ONLY_MESSAGES, SETUP_PARAM_AUTHORITY, SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_MOQT_IMPLEMENTATION, SETUP_PARAM_PATH, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, SubgroupStream, SubgroupStreamHeader, SubscriptionState, TransitionResult, ValidationResult, createDataStreamDecoder, createFetchStreamDecoder, createSubgroupStreamDecoder, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
package/dist/draft15.js
CHANGED
|
@@ -42,8 +42,9 @@ import {
|
|
|
42
42
|
encodeDatagram,
|
|
43
43
|
encodeFetchStream,
|
|
44
44
|
encodeMessage,
|
|
45
|
-
encodeSubgroupStream
|
|
46
|
-
|
|
45
|
+
encodeSubgroupStream,
|
|
46
|
+
redactAuthTokens
|
|
47
|
+
} from "./chunk-3RNQMGKA.js";
|
|
47
48
|
import {
|
|
48
49
|
BIDIRECTIONAL_MESSAGES,
|
|
49
50
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -54,7 +55,66 @@ import {
|
|
|
54
55
|
getLegalIncoming,
|
|
55
56
|
getLegalOutgoing
|
|
56
57
|
} from "./chunk-AY6IAHUM.js";
|
|
57
|
-
import
|
|
58
|
+
import {
|
|
59
|
+
REDACTION_FILL
|
|
60
|
+
} from "./chunk-YRZQVNZO.js";
|
|
61
|
+
|
|
62
|
+
// src/drafts/draft15/error-codes.ts
|
|
63
|
+
var SessionErrorCode = {
|
|
64
|
+
NoError: 0x0n,
|
|
65
|
+
InternalError: 0x1n,
|
|
66
|
+
Unauthorized: 0x2n,
|
|
67
|
+
ProtocolViolation: 0x3n,
|
|
68
|
+
InvalidRequestId: 0x4n,
|
|
69
|
+
DuplicateTrackAlias: 0x5n,
|
|
70
|
+
KeyValueFormattingError: 0x6n,
|
|
71
|
+
TooManyRequests: 0x7n,
|
|
72
|
+
InvalidPath: 0x8n,
|
|
73
|
+
MalformedPath: 0x9n,
|
|
74
|
+
GoawayTimeout: 0x10n,
|
|
75
|
+
ControlMessageTimeout: 0x11n,
|
|
76
|
+
DataStreamTimeout: 0x12n,
|
|
77
|
+
AuthTokenCacheOverflow: 0x13n,
|
|
78
|
+
DuplicateAuthTokenAlias: 0x14n,
|
|
79
|
+
VersionNegotiationFailed: 0x15n,
|
|
80
|
+
MalformedAuthToken: 0x16n,
|
|
81
|
+
UnknownAuthTokenAlias: 0x17n,
|
|
82
|
+
ExpiredAuthToken: 0x18n,
|
|
83
|
+
InvalidAuthority: 0x19n,
|
|
84
|
+
MalformedAuthority: 0x1an
|
|
85
|
+
};
|
|
86
|
+
var RequestErrorCode = {
|
|
87
|
+
InternalError: 0x0n,
|
|
88
|
+
Unauthorized: 0x1n,
|
|
89
|
+
Timeout: 0x2n,
|
|
90
|
+
NotSupported: 0x3n,
|
|
91
|
+
MalformedAuthToken: 0x4n,
|
|
92
|
+
ExpiredAuthToken: 0x5n,
|
|
93
|
+
DoesNotExist: 0x10n,
|
|
94
|
+
InvalidRange: 0x11n,
|
|
95
|
+
MalformedTrack: 0x12n,
|
|
96
|
+
Uninterested: 0x20n,
|
|
97
|
+
PrefixOverlap: 0x30n,
|
|
98
|
+
InvalidJoiningRequestId: 0x32n,
|
|
99
|
+
UnknownStatusInRange: 0x33n
|
|
100
|
+
};
|
|
101
|
+
var PublishDoneStatusCode = {
|
|
102
|
+
InternalError: 0x0n,
|
|
103
|
+
Unauthorized: 0x1n,
|
|
104
|
+
TrackEnded: 0x2n,
|
|
105
|
+
SubscriptionEnded: 0x3n,
|
|
106
|
+
GoingAway: 0x4n,
|
|
107
|
+
Expired: 0x5n,
|
|
108
|
+
TooFarBehind: 0x6n,
|
|
109
|
+
MalformedTrack: 0x7n,
|
|
110
|
+
UpdateFailed: 0x8n
|
|
111
|
+
};
|
|
112
|
+
var DataStreamResetErrorCode = {
|
|
113
|
+
InternalError: 0x0n,
|
|
114
|
+
Cancelled: 0x1n,
|
|
115
|
+
DeliveryTimeout: 0x2n,
|
|
116
|
+
SessionClosed: 0x3n
|
|
117
|
+
};
|
|
58
118
|
|
|
59
119
|
// src/drafts/draft15/index.ts
|
|
60
120
|
var DRAFT_VERSION = 0xff00000fn;
|
|
@@ -63,6 +123,7 @@ export {
|
|
|
63
123
|
CLIENT_ONLY_MESSAGES,
|
|
64
124
|
CONTROL_MESSAGES,
|
|
65
125
|
DRAFT_VERSION,
|
|
126
|
+
DataStreamResetErrorCode,
|
|
66
127
|
Draft15SessionFSM,
|
|
67
128
|
MESSAGE_ID_MAP,
|
|
68
129
|
MESSAGE_TYPE_MAP,
|
|
@@ -89,12 +150,16 @@ export {
|
|
|
89
150
|
MSG_TRACK_STATUS,
|
|
90
151
|
MSG_UNSUBSCRIBE,
|
|
91
152
|
MSG_UNSUBSCRIBE_NAMESPACE,
|
|
153
|
+
PublishDoneStatusCode,
|
|
154
|
+
REDACTION_FILL,
|
|
155
|
+
RequestErrorCode,
|
|
92
156
|
SERVER_ONLY_MESSAGES,
|
|
93
157
|
SETUP_PARAM_AUTHORITY,
|
|
94
158
|
SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE,
|
|
95
159
|
SETUP_PARAM_MAX_REQUEST_ID,
|
|
96
160
|
SETUP_PARAM_MOQT_IMPLEMENTATION,
|
|
97
161
|
SETUP_PARAM_PATH,
|
|
162
|
+
SessionErrorCode,
|
|
98
163
|
createDataStreamDecoder,
|
|
99
164
|
createDraft15Codec,
|
|
100
165
|
createDraft15SessionState,
|
|
@@ -111,5 +176,6 @@ export {
|
|
|
111
176
|
encodeMessage,
|
|
112
177
|
encodeSubgroupStream,
|
|
113
178
|
getLegalIncoming,
|
|
114
|
-
getLegalOutgoing
|
|
179
|
+
getLegalOutgoing,
|
|
180
|
+
redactAuthTokens
|
|
115
181
|
};
|
package/dist/draft16-session.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQ5JQGHWYcjs = require('./chunk-Q5JQGHWY.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
exports.createDraft16SessionState =
|
|
6
|
+
exports.createDraft16SessionState = _chunkQ5JQGHWYcjs.createDraft16SessionState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, e as PublishPhase, f as PublishState, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
3
|
-
import { D as Draft16Message, a as Draft16MessageType } from './types-
|
|
4
|
-
import './types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-DZkI_qFG.cjs';
|
|
2
|
+
export { F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, e as PublishPhase, f as PublishState, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-DZkI_qFG.cjs';
|
|
3
|
+
import { D as Draft16Message, a as Draft16MessageType } from './types-BxTL1NXw.cjs';
|
|
4
|
+
import './types-2NisMA8_.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft16SessionState(role: SessionStateOptionsRole): SessionState<Draft16Message, Draft16MessageType>;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, e as PublishPhase, f as PublishState, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
3
|
-
import { D as Draft16Message, a as Draft16MessageType } from './types-
|
|
4
|
-
import './types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Cxx7W8zZ.js';
|
|
2
|
+
export { F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, e as PublishPhase, f as PublishState, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-Cxx7W8zZ.js';
|
|
3
|
+
import { D as Draft16Message, a as Draft16MessageType } from './types-BxTL1NXw.js';
|
|
4
|
+
import './types-2NisMA8_.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft16SessionState(role: SessionStateOptionsRole): SessionState<Draft16Message, Draft16MessageType>;
|
|
7
7
|
|
package/dist/draft16-session.js
CHANGED
package/dist/draft16.cjs
CHANGED
|
@@ -42,23 +42,91 @@
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var _chunkOUNN4IQBcjs = require('./chunk-OUNN4IQB.cjs');
|
|
48
45
|
|
|
49
46
|
|
|
50
47
|
|
|
48
|
+
var _chunkKTY4LAUVcjs = require('./chunk-KTY4LAUV.cjs');
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
var _chunkQ5JQGHWYcjs = require('./chunk-Q5JQGHWY.cjs');
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
var _chunk5IMHJIAZcjs = require('./chunk-5IMHJIAZ.cjs');
|
|
62
|
+
|
|
63
|
+
// src/drafts/draft16/error-codes.ts
|
|
64
|
+
var SessionErrorCode = {
|
|
65
|
+
NoError: 0x0n,
|
|
66
|
+
InternalError: 0x1n,
|
|
67
|
+
Unauthorized: 0x2n,
|
|
68
|
+
ProtocolViolation: 0x3n,
|
|
69
|
+
InvalidRequestId: 0x4n,
|
|
70
|
+
DuplicateTrackAlias: 0x5n,
|
|
71
|
+
KeyValueFormattingError: 0x6n,
|
|
72
|
+
TooManyRequests: 0x7n,
|
|
73
|
+
InvalidPath: 0x8n,
|
|
74
|
+
MalformedPath: 0x9n,
|
|
75
|
+
GoawayTimeout: 0x10n,
|
|
76
|
+
ControlMessageTimeout: 0x11n,
|
|
77
|
+
DataStreamTimeout: 0x12n,
|
|
78
|
+
AuthTokenCacheOverflow: 0x13n,
|
|
79
|
+
DuplicateAuthTokenAlias: 0x14n,
|
|
80
|
+
VersionNegotiationFailed: 0x15n,
|
|
81
|
+
MalformedAuthToken: 0x16n,
|
|
82
|
+
UnknownAuthTokenAlias: 0x17n,
|
|
83
|
+
ExpiredAuthToken: 0x18n,
|
|
84
|
+
InvalidAuthority: 0x19n,
|
|
85
|
+
MalformedAuthority: 0x1an
|
|
86
|
+
};
|
|
87
|
+
var RequestErrorCode = {
|
|
88
|
+
InternalError: 0x0n,
|
|
89
|
+
Unauthorized: 0x1n,
|
|
90
|
+
Timeout: 0x2n,
|
|
91
|
+
NotSupported: 0x3n,
|
|
92
|
+
MalformedAuthToken: 0x4n,
|
|
93
|
+
ExpiredAuthToken: 0x5n,
|
|
94
|
+
DoesNotExist: 0x10n,
|
|
95
|
+
InvalidRange: 0x11n,
|
|
96
|
+
MalformedTrack: 0x12n,
|
|
97
|
+
DuplicateSubscription: 0x19n,
|
|
98
|
+
Uninterested: 0x20n,
|
|
99
|
+
PrefixOverlap: 0x30n,
|
|
100
|
+
InvalidJoiningRequestId: 0x32n
|
|
101
|
+
};
|
|
102
|
+
var PublishDoneStatusCode = {
|
|
103
|
+
InternalError: 0x0n,
|
|
104
|
+
Unauthorized: 0x1n,
|
|
105
|
+
TrackEnded: 0x2n,
|
|
106
|
+
SubscriptionEnded: 0x3n,
|
|
107
|
+
GoingAway: 0x4n,
|
|
108
|
+
Expired: 0x5n,
|
|
109
|
+
TooFarBehind: 0x6n,
|
|
110
|
+
UpdateFailed: 0x8n,
|
|
111
|
+
MalformedTrack: 0x12n
|
|
112
|
+
};
|
|
113
|
+
var DataStreamResetErrorCode = {
|
|
114
|
+
InternalError: 0x0n,
|
|
115
|
+
Cancelled: 0x1n,
|
|
116
|
+
DeliveryTimeout: 0x2n,
|
|
117
|
+
SessionClosed: 0x3n,
|
|
118
|
+
UnknownObjectStatus: 0x4n,
|
|
119
|
+
MalformedTrack: 0x12n
|
|
120
|
+
};
|
|
51
121
|
|
|
122
|
+
// src/drafts/draft16/index.ts
|
|
123
|
+
var DRAFT_VERSION = 0xff000010n;
|
|
52
124
|
|
|
53
125
|
|
|
54
126
|
|
|
55
127
|
|
|
56
128
|
|
|
57
|
-
var _chunk7RE6KSIYcjs = require('./chunk-7RE6KSIY.cjs');
|
|
58
|
-
require('./chunk-4XLYCT5Q.cjs');
|
|
59
129
|
|
|
60
|
-
// src/drafts/draft16/index.ts
|
|
61
|
-
var DRAFT_VERSION = 0xff000010n;
|
|
62
130
|
|
|
63
131
|
|
|
64
132
|
|
|
@@ -114,4 +182,4 @@ var DRAFT_VERSION = 0xff000010n;
|
|
|
114
182
|
|
|
115
183
|
|
|
116
184
|
|
|
117
|
-
exports.BIDIRECTIONAL_MESSAGES =
|
|
185
|
+
exports.BIDIRECTIONAL_MESSAGES = _chunkQ5JQGHWYcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkQ5JQGHWYcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkQ5JQGHWYcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.DataStreamResetErrorCode = DataStreamResetErrorCode; exports.Draft16SessionFSM = _chunkQ5JQGHWYcjs.Draft16SessionFSM; exports.MESSAGE_ID_MAP = _chunkKTY4LAUVcjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunkKTY4LAUVcjs.MESSAGE_TYPE_MAP; exports.MSG_CLIENT_SETUP = _chunkKTY4LAUVcjs.MSG_CLIENT_SETUP; exports.MSG_FETCH = _chunkKTY4LAUVcjs.MSG_FETCH; exports.MSG_FETCH_CANCEL = _chunkKTY4LAUVcjs.MSG_FETCH_CANCEL; exports.MSG_FETCH_OK = _chunkKTY4LAUVcjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunkKTY4LAUVcjs.MSG_GOAWAY; exports.MSG_MAX_REQUEST_ID = _chunkKTY4LAUVcjs.MSG_MAX_REQUEST_ID; exports.MSG_NAMESPACE = _chunkKTY4LAUVcjs.MSG_NAMESPACE; exports.MSG_NAMESPACE_DONE = _chunkKTY4LAUVcjs.MSG_NAMESPACE_DONE; exports.MSG_PUBLISH = _chunkKTY4LAUVcjs.MSG_PUBLISH; exports.MSG_PUBLISH_DONE = _chunkKTY4LAUVcjs.MSG_PUBLISH_DONE; exports.MSG_PUBLISH_NAMESPACE = _chunkKTY4LAUVcjs.MSG_PUBLISH_NAMESPACE; exports.MSG_PUBLISH_NAMESPACE_CANCEL = _chunkKTY4LAUVcjs.MSG_PUBLISH_NAMESPACE_CANCEL; exports.MSG_PUBLISH_NAMESPACE_DONE = _chunkKTY4LAUVcjs.MSG_PUBLISH_NAMESPACE_DONE; exports.MSG_PUBLISH_OK = _chunkKTY4LAUVcjs.MSG_PUBLISH_OK; exports.MSG_REQUESTS_BLOCKED = _chunkKTY4LAUVcjs.MSG_REQUESTS_BLOCKED; exports.MSG_REQUEST_ERROR = _chunkKTY4LAUVcjs.MSG_REQUEST_ERROR; exports.MSG_REQUEST_OK = _chunkKTY4LAUVcjs.MSG_REQUEST_OK; exports.MSG_REQUEST_UPDATE = _chunkKTY4LAUVcjs.MSG_REQUEST_UPDATE; exports.MSG_SERVER_SETUP = _chunkKTY4LAUVcjs.MSG_SERVER_SETUP; exports.MSG_SUBSCRIBE = _chunkKTY4LAUVcjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_NAMESPACE = _chunkKTY4LAUVcjs.MSG_SUBSCRIBE_NAMESPACE; exports.MSG_SUBSCRIBE_OK = _chunkKTY4LAUVcjs.MSG_SUBSCRIBE_OK; exports.MSG_TRACK_STATUS = _chunkKTY4LAUVcjs.MSG_TRACK_STATUS; exports.MSG_UNSUBSCRIBE = _chunkKTY4LAUVcjs.MSG_UNSUBSCRIBE; exports.PublishDoneStatusCode = PublishDoneStatusCode; exports.REDACTION_FILL = _chunk5IMHJIAZcjs.REDACTION_FILL; exports.RequestErrorCode = RequestErrorCode; exports.SERVER_ONLY_MESSAGES = _chunkQ5JQGHWYcjs.SERVER_ONLY_MESSAGES; exports.SETUP_PARAM_AUTHORITY = _chunkKTY4LAUVcjs.SETUP_PARAM_AUTHORITY; exports.SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE = _chunkKTY4LAUVcjs.SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE; exports.SETUP_PARAM_MAX_REQUEST_ID = _chunkKTY4LAUVcjs.SETUP_PARAM_MAX_REQUEST_ID; exports.SETUP_PARAM_MOQT_IMPLEMENTATION = _chunkKTY4LAUVcjs.SETUP_PARAM_MOQT_IMPLEMENTATION; exports.SETUP_PARAM_PATH = _chunkKTY4LAUVcjs.SETUP_PARAM_PATH; exports.SessionErrorCode = SessionErrorCode; exports.createDataStreamDecoder = _chunkKTY4LAUVcjs.createDataStreamDecoder; exports.createDraft16Codec = _chunkKTY4LAUVcjs.createDraft16Codec; exports.createDraft16SessionState = _chunkQ5JQGHWYcjs.createDraft16SessionState; exports.createFetchStreamDecoder = _chunkKTY4LAUVcjs.createFetchStreamDecoder; exports.createStreamDecoder = _chunkKTY4LAUVcjs.createStreamDecoder; exports.createSubgroupStreamDecoder = _chunkKTY4LAUVcjs.createSubgroupStreamDecoder; exports.decodeDataStream = _chunkKTY4LAUVcjs.decodeDataStream; exports.decodeDatagram = _chunkKTY4LAUVcjs.decodeDatagram; exports.decodeFetchStream = _chunkKTY4LAUVcjs.decodeFetchStream; exports.decodeMessage = _chunkKTY4LAUVcjs.decodeMessage; exports.decodeSubgroupStream = _chunkKTY4LAUVcjs.decodeSubgroupStream; exports.encodeDatagram = _chunkKTY4LAUVcjs.encodeDatagram; exports.encodeFetchStream = _chunkKTY4LAUVcjs.encodeFetchStream; exports.encodeMessage = _chunkKTY4LAUVcjs.encodeMessage; exports.encodeSubgroupStream = _chunkKTY4LAUVcjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkQ5JQGHWYcjs.getLegalIncoming; exports.getLegalOutgoing = _chunkQ5JQGHWYcjs.getLegalOutgoing; exports.redactAuthTokens = _chunkKTY4LAUVcjs.redactAuthTokens;
|
package/dist/draft16.d.cts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-B9JJOlIY.cjs';
|
|
2
|
+
export { D as Draft16Codec, c as createDraft16Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-psN2vB6I.cjs';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft16DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft16MessageType, D as Draft16Message } from './types-BxTL1NXw.cjs';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft16BaseMessage, i as Draft16ClientSetup, j as Draft16Fetch, k as Draft16FetchCancel, l as Draft16FetchOk, m as Draft16GoAway, n as Draft16MaxRequestId, o as Draft16Namespace, p as Draft16NamespaceDone, q as Draft16Params, r as Draft16Publish, s as Draft16PublishDone, t as Draft16PublishNamespace, u as Draft16PublishNamespaceCancel, v as Draft16PublishNamespaceDone, w as Draft16PublishOk, x as Draft16RequestError, y as Draft16RequestOk, z as Draft16RequestUpdate, A as Draft16RequestsBlocked, B as Draft16ServerSetup, C as Draft16SetupParams, E as Draft16Subscribe, G as Draft16SubscribeNamespace, H as Draft16SubscribeOk, I as Draft16TrackStatus, J as Draft16Unsubscribe, K as FetchObjectPayload, L as JoiningFetch, M as LargestObject, N as StandaloneFetch, P as SubscriptionFilter, U as UnknownParam } from './types-BxTL1NXw.cjs';
|
|
4
5
|
export { createDraft16SessionState } from './draft16-session.cjs';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, e as PublishPhase, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
6
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-DZkI_qFG.cjs';
|
|
7
|
+
export { F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, e as PublishPhase, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-DZkI_qFG.cjs';
|
|
8
|
+
import { b as DecodeResult } from './types-2NisMA8_.cjs';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* Encode a subgroup stream header + objects.
|
|
@@ -18,17 +19,8 @@ declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
|
18
19
|
* Encode a fetch stream header + objects.
|
|
19
20
|
*/
|
|
20
21
|
declare function encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
21
|
-
/**
|
|
22
|
-
* Decode a subgroup data stream from raw bytes.
|
|
23
|
-
*/
|
|
24
22
|
declare function decodeSubgroupStream(bytes: Uint8Array): DecodeResult<SubgroupStream>;
|
|
25
|
-
/**
|
|
26
|
-
* Decode a datagram object from raw bytes.
|
|
27
|
-
*/
|
|
28
23
|
declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>;
|
|
29
|
-
/**
|
|
30
|
-
* Decode a fetch data stream from raw bytes.
|
|
31
|
-
*/
|
|
32
24
|
declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
33
25
|
/**
|
|
34
26
|
* Decode a data stream, dispatching by stream type.
|
|
@@ -38,6 +30,68 @@ declare function createSubgroupStreamDecoder(): TransformStream<Uint8Array, Subg
|
|
|
38
30
|
declare function createFetchStreamDecoder(): TransformStream<Uint8Array, FetchStreamHeader | ObjectPayload>;
|
|
39
31
|
declare function createDataStreamDecoder(): TransformStream<Uint8Array, DataStreamEvent>;
|
|
40
32
|
|
|
33
|
+
declare const SessionErrorCode: {
|
|
34
|
+
readonly NoError: 0n;
|
|
35
|
+
readonly InternalError: 1n;
|
|
36
|
+
readonly Unauthorized: 2n;
|
|
37
|
+
readonly ProtocolViolation: 3n;
|
|
38
|
+
readonly InvalidRequestId: 4n;
|
|
39
|
+
readonly DuplicateTrackAlias: 5n;
|
|
40
|
+
readonly KeyValueFormattingError: 6n;
|
|
41
|
+
readonly TooManyRequests: 7n;
|
|
42
|
+
readonly InvalidPath: 8n;
|
|
43
|
+
readonly MalformedPath: 9n;
|
|
44
|
+
readonly GoawayTimeout: 16n;
|
|
45
|
+
readonly ControlMessageTimeout: 17n;
|
|
46
|
+
readonly DataStreamTimeout: 18n;
|
|
47
|
+
readonly AuthTokenCacheOverflow: 19n;
|
|
48
|
+
readonly DuplicateAuthTokenAlias: 20n;
|
|
49
|
+
readonly VersionNegotiationFailed: 21n;
|
|
50
|
+
readonly MalformedAuthToken: 22n;
|
|
51
|
+
readonly UnknownAuthTokenAlias: 23n;
|
|
52
|
+
readonly ExpiredAuthToken: 24n;
|
|
53
|
+
readonly InvalidAuthority: 25n;
|
|
54
|
+
readonly MalformedAuthority: 26n;
|
|
55
|
+
};
|
|
56
|
+
type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
|
|
57
|
+
declare const RequestErrorCode: {
|
|
58
|
+
readonly InternalError: 0n;
|
|
59
|
+
readonly Unauthorized: 1n;
|
|
60
|
+
readonly Timeout: 2n;
|
|
61
|
+
readonly NotSupported: 3n;
|
|
62
|
+
readonly MalformedAuthToken: 4n;
|
|
63
|
+
readonly ExpiredAuthToken: 5n;
|
|
64
|
+
readonly DoesNotExist: 16n;
|
|
65
|
+
readonly InvalidRange: 17n;
|
|
66
|
+
readonly MalformedTrack: 18n;
|
|
67
|
+
readonly DuplicateSubscription: 25n;
|
|
68
|
+
readonly Uninterested: 32n;
|
|
69
|
+
readonly PrefixOverlap: 48n;
|
|
70
|
+
readonly InvalidJoiningRequestId: 50n;
|
|
71
|
+
};
|
|
72
|
+
type RequestErrorCodeValue = (typeof RequestErrorCode)[keyof typeof RequestErrorCode];
|
|
73
|
+
declare const PublishDoneStatusCode: {
|
|
74
|
+
readonly InternalError: 0n;
|
|
75
|
+
readonly Unauthorized: 1n;
|
|
76
|
+
readonly TrackEnded: 2n;
|
|
77
|
+
readonly SubscriptionEnded: 3n;
|
|
78
|
+
readonly GoingAway: 4n;
|
|
79
|
+
readonly Expired: 5n;
|
|
80
|
+
readonly TooFarBehind: 6n;
|
|
81
|
+
readonly UpdateFailed: 8n;
|
|
82
|
+
readonly MalformedTrack: 18n;
|
|
83
|
+
};
|
|
84
|
+
type PublishDoneStatusCodeValue = (typeof PublishDoneStatusCode)[keyof typeof PublishDoneStatusCode];
|
|
85
|
+
declare const DataStreamResetErrorCode: {
|
|
86
|
+
readonly InternalError: 0n;
|
|
87
|
+
readonly Cancelled: 1n;
|
|
88
|
+
readonly DeliveryTimeout: 2n;
|
|
89
|
+
readonly SessionClosed: 3n;
|
|
90
|
+
readonly UnknownObjectStatus: 4n;
|
|
91
|
+
readonly MalformedTrack: 18n;
|
|
92
|
+
};
|
|
93
|
+
type DataStreamResetErrorCodeValue = (typeof DataStreamResetErrorCode)[keyof typeof DataStreamResetErrorCode];
|
|
94
|
+
|
|
41
95
|
declare const MSG_REQUEST_UPDATE = 2n;
|
|
42
96
|
declare const MSG_SUBSCRIBE = 3n;
|
|
43
97
|
declare const MSG_SUBSCRIBE_OK = 4n;
|
|
@@ -125,4 +179,4 @@ declare class Draft16SessionFSM {
|
|
|
125
179
|
|
|
126
180
|
declare const DRAFT_VERSION = 4278190096n;
|
|
127
181
|
|
|
128
|
-
export { BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DataStreamEvent, DatagramObject, Draft16DataStream, Draft16Message, Draft16MessageType, Draft16SessionFSM, FetchState, FetchStream, FetchStreamHeader, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_NAMESPACE, MSG_NAMESPACE_DONE, MSG_PUBLISH, MSG_PUBLISH_DONE, MSG_PUBLISH_NAMESPACE, MSG_PUBLISH_NAMESPACE_CANCEL, MSG_PUBLISH_NAMESPACE_DONE, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_REQUEST_ERROR, MSG_REQUEST_OK, MSG_REQUEST_UPDATE, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_NAMESPACE, MSG_SUBSCRIBE_OK, MSG_TRACK_STATUS, MSG_UNSUBSCRIBE, ObjectPayload, PublishState, SERVER_ONLY_MESSAGES, SETUP_PARAM_AUTHORITY, SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_MOQT_IMPLEMENTATION, SETUP_PARAM_PATH, SessionPhase, SubgroupStream, SubgroupStreamHeader, SubscriptionState, TransitionResult, ValidationResult, createDataStreamDecoder, createFetchStreamDecoder, createSubgroupStreamDecoder, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
|
182
|
+
export { BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DataStreamEvent, DataStreamResetErrorCode, type DataStreamResetErrorCodeValue, DatagramObject, Draft16DataStream, Draft16Message, Draft16MessageType, Draft16SessionFSM, FetchState, FetchStream, FetchStreamHeader, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_NAMESPACE, MSG_NAMESPACE_DONE, MSG_PUBLISH, MSG_PUBLISH_DONE, MSG_PUBLISH_NAMESPACE, MSG_PUBLISH_NAMESPACE_CANCEL, MSG_PUBLISH_NAMESPACE_DONE, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_REQUEST_ERROR, MSG_REQUEST_OK, MSG_REQUEST_UPDATE, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_NAMESPACE, MSG_SUBSCRIBE_OK, MSG_TRACK_STATUS, MSG_UNSUBSCRIBE, ObjectPayload, PublishDoneStatusCode, type PublishDoneStatusCodeValue, PublishState, RequestErrorCode, type RequestErrorCodeValue, SERVER_ONLY_MESSAGES, SETUP_PARAM_AUTHORITY, SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_MOQT_IMPLEMENTATION, SETUP_PARAM_PATH, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, SubgroupStream, SubgroupStreamHeader, SubscriptionState, TransitionResult, ValidationResult, createDataStreamDecoder, createFetchStreamDecoder, createSubgroupStreamDecoder, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|