@moqtap/codec 0.10.0 → 0.11.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 +147 -0
- package/dist/auth-redaction-DsdLq4Qs.d.cts +102 -0
- package/dist/auth-redaction-DsdLq4Qs.d.ts +102 -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-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-CF5DDD3Q.js → chunk-WCRLAKDW.js} +239 -245
- package/dist/{chunk-KYVTM5VI.js → chunk-WL2YUEXH.js} +19 -3
- package/dist/{chunk-KGDVC4O6.js → chunk-YCNIVZS7.js} +439 -469
- package/dist/{chunk-KLPWJU6W.js → chunk-YRZQVNZO.js} +50 -0
- package/dist/{codec-CFWu5KVT.d.cts → codec-76xzrLTL.d.cts} +21 -2
- package/dist/{codec-gl4_QEva.d.ts → codec-8p40WdLg.d.ts} +20 -1
- package/dist/{codec-Dl_QIXMz.d.ts → codec-BN2Bu0KI.d.ts} +20 -1
- package/dist/{codec-Bux_Q40X.d.ts → codec-Bb6GKTrv.d.ts} +21 -2
- package/dist/{codec-EvybrBuY.d.cts → codec-BgpfHoAd.d.cts} +20 -1
- package/dist/{codec-alVA27Uc.d.ts → codec-BkheTXO7.d.ts} +20 -1
- package/dist/{codec-Czejcmxr.d.cts → codec-BwVDkokh.d.cts} +21 -2
- package/dist/{codec-BrTi4K7r.d.cts → codec-C5s1eBJX.d.cts} +21 -2
- package/dist/codec-CM5yd6n3.d.ts +38 -0
- package/dist/{codec-CWnf8mn_.d.cts → codec-Cb8HC3XV.d.cts} +21 -2
- package/dist/codec-Clu_skx8.d.cts +38 -0
- package/dist/{codec-DzkdW4kO.d.cts → codec-CpOpemR8.d.cts} +20 -1
- package/dist/{codec-CXCjya_G.d.cts → codec-Cshdl9Tt.d.cts} +20 -1
- package/dist/{codec-f7vxeVIS.d.cts → codec-DELe00w_.d.cts} +21 -2
- package/dist/{codec-DNmiG2e0.d.cts → codec-DHzKAUCa.d.cts} +20 -1
- package/dist/{codec--CVeqGQv.d.ts → codec-DdVBtvx7.d.ts} +20 -1
- package/dist/{codec-CBdOIfMY.d.ts → codec-DlxGuYMv.d.ts} +21 -2
- package/dist/{codec-BNy5syCU.d.ts → codec-DxtgPxJS.d.ts} +20 -1
- package/dist/{codec-guzqtfMk.d.cts → codec-GAY4lybi.d.cts} +20 -1
- package/dist/{codec-Cfo_z5ET.d.cts → codec-I8u2pfS4.d.cts} +20 -1
- package/dist/{codec-BxQTybUX.d.cts → codec-XLrnreeu.d.cts} +21 -2
- package/dist/{codec-DOmAmFkI.d.ts → codec-c0YEwwWn.d.ts} +20 -1
- package/dist/{codec-DaXjRrOV.d.ts → codec-ejDu-va6.d.ts} +21 -2
- package/dist/{codec-C3mdsGx3.d.ts → codec-kaBUzdpV.d.ts} +21 -2
- package/dist/{codec-CwZ6OCPP.d.ts → codec-mVYqkIUF.d.ts} +21 -2
- package/dist/{codec-08ZOr5wI.d.ts → codec-qSbO5nOa.d.ts} +21 -2
- package/dist/{codec-Cm3D261p.d.ts → codec-yYKGOipj.d.ts} +20 -1
- package/dist/{codec-Bd60SGKH.d.cts → codec-zfzg9uiy.d.cts} +20 -1
- package/dist/draft07.cjs +48 -4
- package/dist/draft07.d.cts +42 -2
- package/dist/draft07.d.ts +42 -2
- package/dist/draft07.js +49 -5
- package/dist/draft08.cjs +76 -3
- package/dist/draft08.d.cts +70 -2
- package/dist/draft08.d.ts +70 -2
- package/dist/draft08.js +77 -4
- package/dist/draft09.cjs +76 -3
- package/dist/draft09.d.cts +70 -2
- package/dist/draft09.d.ts +70 -2
- package/dist/draft09.js +77 -4
- package/dist/draft10.cjs +76 -3
- package/dist/draft10.d.cts +70 -2
- package/dist/draft10.d.ts +70 -2
- package/dist/draft10.js +77 -4
- package/dist/draft11.cjs +104 -3
- package/dist/draft11.d.cts +98 -2
- package/dist/draft11.d.ts +98 -2
- package/dist/draft11.js +105 -4
- package/dist/draft12.cjs +113 -3
- package/dist/draft12.d.cts +107 -2
- package/dist/draft12.d.ts +107 -2
- package/dist/draft12.js +114 -4
- package/dist/draft13.cjs +105 -3
- package/dist/draft13.d.cts +99 -2
- package/dist/draft13.d.ts +99 -2
- package/dist/draft13.js +106 -4
- package/dist/draft14.cjs +107 -3
- package/dist/draft14.d.cts +101 -28
- package/dist/draft14.d.ts +101 -28
- package/dist/draft14.js +108 -4
- package/dist/draft15-session.d.cts +1 -1
- package/dist/draft15-session.d.ts +1 -1
- package/dist/draft15.cjs +69 -3
- package/dist/draft15.d.cts +65 -22
- package/dist/draft15.d.ts +65 -22
- package/dist/draft15.js +70 -4
- package/dist/draft16-session.cjs +2 -2
- package/dist/draft16-session.d.cts +1 -1
- package/dist/draft16-session.d.ts +1 -1
- package/dist/draft16-session.js +1 -1
- package/dist/draft16.cjs +76 -8
- package/dist/draft16.d.cts +67 -13
- package/dist/draft16.d.ts +67 -13
- package/dist/draft16.js +73 -5
- package/dist/draft17-session.d.cts +1 -1
- package/dist/draft17-session.d.ts +1 -1
- package/dist/draft17.cjs +77 -3
- package/dist/draft17.d.cts +73 -4
- package/dist/draft17.d.ts +73 -4
- package/dist/draft17.js +78 -4
- package/dist/draft18-session.d.cts +1 -1
- package/dist/draft18-session.d.ts +1 -1
- package/dist/draft18.cjs +8 -3
- package/dist/draft18.d.cts +4 -3
- package/dist/draft18.d.ts +4 -3
- package/dist/draft18.js +9 -4
- package/dist/draft19-session.d.cts +1 -1
- package/dist/draft19-session.d.ts +1 -1
- package/dist/draft19.cjs +11 -4
- package/dist/draft19.d.cts +4 -3
- package/dist/draft19.d.ts +4 -3
- package/dist/draft19.js +12 -5
- package/dist/draft20-session.d.cts +1 -1
- package/dist/draft20-session.d.ts +1 -1
- package/dist/draft20.cjs +8 -3
- package/dist/draft20.d.cts +4 -3
- package/dist/draft20.d.ts +4 -3
- package/dist/draft20.js +9 -4
- package/dist/index.cjs +30 -30
- package/dist/index.d.cts +21 -20
- package/dist/index.d.ts +21 -20
- package/dist/index.js +15 -15
- package/dist/session.cjs +2 -2
- package/dist/session.d.cts +6 -6
- package/dist/session.d.ts +6 -6
- package/dist/session.js +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-Bg86GGVZ.d.cts → types-DxXNP32l.d.cts} +8 -0
- package/dist/{types-Bg86GGVZ.d.ts → types-DxXNP32l.d.ts} +8 -0
- package/package.json +3 -3
- package/src/core/auth-redaction.ts +192 -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/dist/codec-BJ7BHuiZ.d.ts +0 -18
- package/dist/codec-C6Mx4bwz.d.cts +0 -18
package/dist/draft14.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-DsdLq4Qs.js';
|
|
2
|
+
export { D as Draft14Codec, c as createDraft14Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-yYKGOipj.js';
|
|
2
3
|
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft14DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft14MessageType, D as Draft14Message } from './types-CmqT0jUf.js';
|
|
3
4
|
export { A as AuthorizationToken, g as DataStreamHeader, h as Draft14BaseMessage, i as Draft14ClientSetup, j as Draft14Fetch, k as Draft14FetchCancel, l as Draft14FetchError, m as Draft14FetchOk, n as Draft14GoAway, o as Draft14MaxRequestId, p as Draft14Params, q as Draft14Publish, r as Draft14PublishDone, s as Draft14PublishError, t as Draft14PublishNamespace, u as Draft14PublishNamespaceCancel, v as Draft14PublishNamespaceDone, w as Draft14PublishNamespaceError, x as Draft14PublishNamespaceOk, y as Draft14PublishOk, z as Draft14RequestsBlocked, B as Draft14ServerSetup, C as Draft14Subscribe, E as Draft14SubscribeError, G as Draft14SubscribeNamespace, H as Draft14SubscribeNamespaceError, I as Draft14SubscribeNamespaceOk, J as Draft14SubscribeOk, K as Draft14SubscribeUpdate, L as Draft14TrackStatus, M as Draft14TrackStatusError, N as Draft14TrackStatusOk, P as Draft14Unsubscribe, Q as Draft14UnsubscribeNamespace, R as FetchObjectPayload, T as FetchType, U as FetchTypeValue, V as FilterType, W as FilterTypeValue, X as GroupOrder, Y as GroupOrderValue, Z as Location, _ as UnknownParam } from './types-CmqT0jUf.js';
|
|
4
5
|
export { createDraft14SessionState } from './draft14-session.js';
|
|
@@ -23,43 +24,115 @@ declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
|
23
24
|
* [ObjectStatus], Payload.
|
|
24
25
|
*/
|
|
25
26
|
declare function encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
26
|
-
/**
|
|
27
|
-
* Decode a subgroup data stream from raw bytes.
|
|
28
|
-
* Accepts types 0x10-0x15 and 0x18-0x1D. Delta-decodes Object IDs.
|
|
29
|
-
*/
|
|
30
27
|
declare function decodeSubgroupStream(bytes: Uint8Array): DecodeResult<SubgroupStream>;
|
|
31
|
-
/**
|
|
32
|
-
* Decode a datagram object from raw bytes.
|
|
33
|
-
* Accepts types 0x00-0x07 and 0x20-0x21.
|
|
34
|
-
*/
|
|
35
28
|
declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>;
|
|
36
|
-
/**
|
|
37
|
-
* Decode a fetch data stream from raw bytes.
|
|
38
|
-
* Draft-14 fetch: type 0x05, per-object has all fields (no serialization flags).
|
|
39
|
-
*/
|
|
40
29
|
declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
41
30
|
/**
|
|
42
31
|
* Decode a data stream, dispatching by stream type.
|
|
43
32
|
*/
|
|
44
33
|
declare function decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft14DataStream>;
|
|
45
|
-
/**
|
|
46
|
-
* Create a TransformStream that decodes a subgroup data stream.
|
|
47
|
-
* First emits a SubgroupStreamHeader, then emits ObjectPayload events.
|
|
48
|
-
* Accepts types 0x10-0x1D. Delta-decodes Object IDs.
|
|
49
|
-
*/
|
|
50
34
|
declare function createSubgroupStreamDecoder(): TransformStream<Uint8Array, SubgroupStreamHeader | ObjectPayload>;
|
|
51
|
-
/**
|
|
52
|
-
* Create a TransformStream that decodes a fetch data stream.
|
|
53
|
-
* First emits a FetchStreamHeader, then emits FetchObjectPayload events.
|
|
54
|
-
* Draft-14 fetch: type 0x05, per-object has all fields.
|
|
55
|
-
*/
|
|
56
35
|
declare function createFetchStreamDecoder(): TransformStream<Uint8Array, FetchStreamHeader | ObjectPayload>;
|
|
57
|
-
/**
|
|
58
|
-
* Create a unified auto-detecting data stream decoder.
|
|
59
|
-
* Reads the stream type varint: 0x10-0x1D = subgroup, 0x05 = fetch.
|
|
60
|
-
*/
|
|
61
36
|
declare function createDataStreamDecoder(): TransformStream<Uint8Array, DataStreamEvent>;
|
|
62
37
|
|
|
38
|
+
declare const SessionErrorCode: {
|
|
39
|
+
readonly NoError: 0n;
|
|
40
|
+
readonly InternalError: 1n;
|
|
41
|
+
readonly Unauthorized: 2n;
|
|
42
|
+
readonly ProtocolViolation: 3n;
|
|
43
|
+
readonly InvalidRequestId: 4n;
|
|
44
|
+
readonly DuplicateTrackAlias: 5n;
|
|
45
|
+
readonly KeyValueFormattingError: 6n;
|
|
46
|
+
readonly TooManyRequests: 7n;
|
|
47
|
+
readonly InvalidPath: 8n;
|
|
48
|
+
readonly MalformedPath: 9n;
|
|
49
|
+
readonly GoawayTimeout: 16n;
|
|
50
|
+
readonly ControlMessageTimeout: 17n;
|
|
51
|
+
readonly DataStreamTimeout: 18n;
|
|
52
|
+
readonly AuthTokenCacheOverflow: 19n;
|
|
53
|
+
readonly DuplicateAuthTokenAlias: 20n;
|
|
54
|
+
readonly VersionNegotiationFailed: 21n;
|
|
55
|
+
readonly MalformedAuthToken: 22n;
|
|
56
|
+
readonly UnknownAuthTokenAlias: 23n;
|
|
57
|
+
readonly ExpiredAuthToken: 24n;
|
|
58
|
+
readonly InvalidAuthority: 25n;
|
|
59
|
+
readonly MalformedAuthority: 26n;
|
|
60
|
+
};
|
|
61
|
+
type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
|
|
62
|
+
declare const SubscribeErrorCode: {
|
|
63
|
+
readonly InternalError: 0n;
|
|
64
|
+
readonly Unauthorized: 1n;
|
|
65
|
+
readonly Timeout: 2n;
|
|
66
|
+
readonly NotSupported: 3n;
|
|
67
|
+
readonly TrackDoesNotExist: 4n;
|
|
68
|
+
readonly InvalidRange: 5n;
|
|
69
|
+
readonly MalformedAuthToken: 16n;
|
|
70
|
+
readonly ExpiredAuthToken: 18n;
|
|
71
|
+
};
|
|
72
|
+
type SubscribeErrorCodeValue = (typeof SubscribeErrorCode)[keyof typeof SubscribeErrorCode];
|
|
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 MalformedTrack: 7n;
|
|
82
|
+
};
|
|
83
|
+
type PublishDoneStatusCodeValue = (typeof PublishDoneStatusCode)[keyof typeof PublishDoneStatusCode];
|
|
84
|
+
declare const PublishErrorCode: {
|
|
85
|
+
readonly InternalError: 0n;
|
|
86
|
+
readonly Unauthorized: 1n;
|
|
87
|
+
readonly Timeout: 2n;
|
|
88
|
+
readonly NotSupported: 3n;
|
|
89
|
+
readonly Uninterested: 4n;
|
|
90
|
+
};
|
|
91
|
+
type PublishErrorCodeValue = (typeof PublishErrorCode)[keyof typeof PublishErrorCode];
|
|
92
|
+
declare const FetchErrorCode: {
|
|
93
|
+
readonly InternalError: 0n;
|
|
94
|
+
readonly Unauthorized: 1n;
|
|
95
|
+
readonly Timeout: 2n;
|
|
96
|
+
readonly NotSupported: 3n;
|
|
97
|
+
readonly TrackDoesNotExist: 4n;
|
|
98
|
+
readonly InvalidRange: 5n;
|
|
99
|
+
readonly NoObjects: 6n;
|
|
100
|
+
readonly InvalidJoiningRequestId: 7n;
|
|
101
|
+
readonly UnknownStatusInRange: 8n;
|
|
102
|
+
readonly MalformedTrack: 9n;
|
|
103
|
+
readonly MalformedAuthToken: 16n;
|
|
104
|
+
readonly ExpiredAuthToken: 18n;
|
|
105
|
+
};
|
|
106
|
+
type FetchErrorCodeValue = (typeof FetchErrorCode)[keyof typeof FetchErrorCode];
|
|
107
|
+
declare const AnnounceErrorCode: {
|
|
108
|
+
readonly InternalError: 0n;
|
|
109
|
+
readonly Unauthorized: 1n;
|
|
110
|
+
readonly Timeout: 2n;
|
|
111
|
+
readonly NotSupported: 3n;
|
|
112
|
+
readonly Uninterested: 4n;
|
|
113
|
+
readonly MalformedAuthToken: 16n;
|
|
114
|
+
readonly ExpiredAuthToken: 18n;
|
|
115
|
+
};
|
|
116
|
+
type AnnounceErrorCodeValue = (typeof AnnounceErrorCode)[keyof typeof AnnounceErrorCode];
|
|
117
|
+
declare const SubscribeNamespaceErrorCode: {
|
|
118
|
+
readonly InternalError: 0n;
|
|
119
|
+
readonly Unauthorized: 1n;
|
|
120
|
+
readonly Timeout: 2n;
|
|
121
|
+
readonly NotSupported: 3n;
|
|
122
|
+
readonly NamespacePrefixUnknown: 4n;
|
|
123
|
+
readonly NamespacePrefixOverlap: 5n;
|
|
124
|
+
readonly MalformedAuthToken: 16n;
|
|
125
|
+
readonly ExpiredAuthToken: 18n;
|
|
126
|
+
};
|
|
127
|
+
type SubscribeNamespaceErrorCodeValue = (typeof SubscribeNamespaceErrorCode)[keyof typeof SubscribeNamespaceErrorCode];
|
|
128
|
+
declare const DataStreamResetErrorCode: {
|
|
129
|
+
readonly InternalError: 0n;
|
|
130
|
+
readonly Cancelled: 1n;
|
|
131
|
+
readonly DeliveryTimeout: 2n;
|
|
132
|
+
readonly SessionClosed: 3n;
|
|
133
|
+
};
|
|
134
|
+
type DataStreamResetErrorCodeValue = (typeof DataStreamResetErrorCode)[keyof typeof DataStreamResetErrorCode];
|
|
135
|
+
|
|
63
136
|
declare const MSG_SUBSCRIBE_UPDATE = 2n;
|
|
64
137
|
declare const MSG_SUBSCRIBE = 3n;
|
|
65
138
|
declare const MSG_SUBSCRIBE_OK = 4n;
|
|
@@ -162,4 +235,4 @@ declare class Draft14SessionFSM {
|
|
|
162
235
|
|
|
163
236
|
declare const DRAFT_VERSION = 4278190094n;
|
|
164
237
|
|
|
165
|
-
export { BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DataStreamEvent, DatagramObject, Draft14DataStream, Draft14Message, Draft14MessageType, Draft14SessionFSM, FetchState, FetchStream, FetchStreamHeader, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_DONE, MSG_PUBLISH_ERROR, MSG_PUBLISH_NAMESPACE, MSG_PUBLISH_NAMESPACE_CANCEL, MSG_PUBLISH_NAMESPACE_DONE, MSG_PUBLISH_NAMESPACE_ERROR, MSG_PUBLISH_NAMESPACE_OK, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_ERROR, MSG_SUBSCRIBE_NAMESPACE, MSG_SUBSCRIBE_NAMESPACE_ERROR, MSG_SUBSCRIBE_NAMESPACE_OK, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_TRACK_STATUS_ERROR, MSG_TRACK_STATUS_OK, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_NAMESPACE, ObjectPayload, PARAM_MAX_REQUEST_ID, PARAM_MOQT_IMPLEMENTATION, PARAM_PATH, PARAM_ROLE, PublishState, SERVER_ONLY_MESSAGES, SessionPhase, SubgroupStream, SubgroupStreamHeader, SubscriptionState, TransitionResult, ValidationResult, createDataStreamDecoder, createFetchStreamDecoder, createSubgroupStreamDecoder, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
|
238
|
+
export { AnnounceErrorCode, type AnnounceErrorCodeValue, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DataStreamEvent, DataStreamResetErrorCode, type DataStreamResetErrorCodeValue, DatagramObject, Draft14DataStream, Draft14Message, Draft14MessageType, Draft14SessionFSM, FetchErrorCode, type FetchErrorCodeValue, FetchState, FetchStream, FetchStreamHeader, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_DONE, MSG_PUBLISH_ERROR, MSG_PUBLISH_NAMESPACE, MSG_PUBLISH_NAMESPACE_CANCEL, MSG_PUBLISH_NAMESPACE_DONE, MSG_PUBLISH_NAMESPACE_ERROR, MSG_PUBLISH_NAMESPACE_OK, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_ERROR, MSG_SUBSCRIBE_NAMESPACE, MSG_SUBSCRIBE_NAMESPACE_ERROR, MSG_SUBSCRIBE_NAMESPACE_OK, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_TRACK_STATUS_ERROR, MSG_TRACK_STATUS_OK, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_NAMESPACE, ObjectPayload, PARAM_MAX_REQUEST_ID, PARAM_MOQT_IMPLEMENTATION, PARAM_PATH, PARAM_ROLE, PublishDoneStatusCode, type PublishDoneStatusCodeValue, PublishErrorCode, type PublishErrorCodeValue, PublishState, SERVER_ONLY_MESSAGES, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, SubgroupStream, SubgroupStreamHeader, SubscribeErrorCode, type SubscribeErrorCodeValue, SubscribeNamespaceErrorCode, type SubscribeNamespaceErrorCodeValue, SubscriptionState, TransitionResult, ValidationResult, createDataStreamDecoder, createFetchStreamDecoder, createSubgroupStreamDecoder, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
package/dist/draft14.js
CHANGED
|
@@ -51,8 +51,9 @@ import {
|
|
|
51
51
|
encodeDatagram,
|
|
52
52
|
encodeFetchStream,
|
|
53
53
|
encodeMessage,
|
|
54
|
-
encodeSubgroupStream
|
|
55
|
-
|
|
54
|
+
encodeSubgroupStream,
|
|
55
|
+
redactAuthTokens
|
|
56
|
+
} from "./chunk-WCRLAKDW.js";
|
|
56
57
|
import {
|
|
57
58
|
BIDIRECTIONAL_MESSAGES,
|
|
58
59
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -63,16 +64,112 @@ import {
|
|
|
63
64
|
getLegalIncoming,
|
|
64
65
|
getLegalOutgoing
|
|
65
66
|
} from "./chunk-MZ7HUCGJ.js";
|
|
66
|
-
import
|
|
67
|
+
import {
|
|
68
|
+
REDACTION_FILL
|
|
69
|
+
} from "./chunk-YRZQVNZO.js";
|
|
70
|
+
|
|
71
|
+
// src/drafts/draft14/error-codes.ts
|
|
72
|
+
var SessionErrorCode = {
|
|
73
|
+
NoError: 0x0n,
|
|
74
|
+
InternalError: 0x1n,
|
|
75
|
+
Unauthorized: 0x2n,
|
|
76
|
+
ProtocolViolation: 0x3n,
|
|
77
|
+
InvalidRequestId: 0x4n,
|
|
78
|
+
DuplicateTrackAlias: 0x5n,
|
|
79
|
+
KeyValueFormattingError: 0x6n,
|
|
80
|
+
TooManyRequests: 0x7n,
|
|
81
|
+
InvalidPath: 0x8n,
|
|
82
|
+
MalformedPath: 0x9n,
|
|
83
|
+
GoawayTimeout: 0x10n,
|
|
84
|
+
ControlMessageTimeout: 0x11n,
|
|
85
|
+
DataStreamTimeout: 0x12n,
|
|
86
|
+
AuthTokenCacheOverflow: 0x13n,
|
|
87
|
+
DuplicateAuthTokenAlias: 0x14n,
|
|
88
|
+
VersionNegotiationFailed: 0x15n,
|
|
89
|
+
MalformedAuthToken: 0x16n,
|
|
90
|
+
UnknownAuthTokenAlias: 0x17n,
|
|
91
|
+
ExpiredAuthToken: 0x18n,
|
|
92
|
+
InvalidAuthority: 0x19n,
|
|
93
|
+
MalformedAuthority: 0x1an
|
|
94
|
+
};
|
|
95
|
+
var SubscribeErrorCode = {
|
|
96
|
+
InternalError: 0x0n,
|
|
97
|
+
Unauthorized: 0x1n,
|
|
98
|
+
Timeout: 0x2n,
|
|
99
|
+
NotSupported: 0x3n,
|
|
100
|
+
TrackDoesNotExist: 0x4n,
|
|
101
|
+
InvalidRange: 0x5n,
|
|
102
|
+
MalformedAuthToken: 0x10n,
|
|
103
|
+
ExpiredAuthToken: 0x12n
|
|
104
|
+
};
|
|
105
|
+
var PublishDoneStatusCode = {
|
|
106
|
+
InternalError: 0x0n,
|
|
107
|
+
Unauthorized: 0x1n,
|
|
108
|
+
TrackEnded: 0x2n,
|
|
109
|
+
SubscriptionEnded: 0x3n,
|
|
110
|
+
GoingAway: 0x4n,
|
|
111
|
+
Expired: 0x5n,
|
|
112
|
+
TooFarBehind: 0x6n,
|
|
113
|
+
MalformedTrack: 0x7n
|
|
114
|
+
};
|
|
115
|
+
var PublishErrorCode = {
|
|
116
|
+
InternalError: 0x0n,
|
|
117
|
+
Unauthorized: 0x1n,
|
|
118
|
+
Timeout: 0x2n,
|
|
119
|
+
NotSupported: 0x3n,
|
|
120
|
+
Uninterested: 0x4n
|
|
121
|
+
};
|
|
122
|
+
var FetchErrorCode = {
|
|
123
|
+
InternalError: 0x0n,
|
|
124
|
+
Unauthorized: 0x1n,
|
|
125
|
+
Timeout: 0x2n,
|
|
126
|
+
NotSupported: 0x3n,
|
|
127
|
+
TrackDoesNotExist: 0x4n,
|
|
128
|
+
InvalidRange: 0x5n,
|
|
129
|
+
NoObjects: 0x6n,
|
|
130
|
+
InvalidJoiningRequestId: 0x7n,
|
|
131
|
+
UnknownStatusInRange: 0x8n,
|
|
132
|
+
MalformedTrack: 0x9n,
|
|
133
|
+
MalformedAuthToken: 0x10n,
|
|
134
|
+
ExpiredAuthToken: 0x12n
|
|
135
|
+
};
|
|
136
|
+
var AnnounceErrorCode = {
|
|
137
|
+
InternalError: 0x0n,
|
|
138
|
+
Unauthorized: 0x1n,
|
|
139
|
+
Timeout: 0x2n,
|
|
140
|
+
NotSupported: 0x3n,
|
|
141
|
+
Uninterested: 0x4n,
|
|
142
|
+
MalformedAuthToken: 0x10n,
|
|
143
|
+
ExpiredAuthToken: 0x12n
|
|
144
|
+
};
|
|
145
|
+
var SubscribeNamespaceErrorCode = {
|
|
146
|
+
InternalError: 0x0n,
|
|
147
|
+
Unauthorized: 0x1n,
|
|
148
|
+
Timeout: 0x2n,
|
|
149
|
+
NotSupported: 0x3n,
|
|
150
|
+
NamespacePrefixUnknown: 0x4n,
|
|
151
|
+
NamespacePrefixOverlap: 0x5n,
|
|
152
|
+
MalformedAuthToken: 0x10n,
|
|
153
|
+
ExpiredAuthToken: 0x12n
|
|
154
|
+
};
|
|
155
|
+
var DataStreamResetErrorCode = {
|
|
156
|
+
InternalError: 0x0n,
|
|
157
|
+
Cancelled: 0x1n,
|
|
158
|
+
DeliveryTimeout: 0x2n,
|
|
159
|
+
SessionClosed: 0x3n
|
|
160
|
+
};
|
|
67
161
|
|
|
68
162
|
// src/drafts/draft14/index.ts
|
|
69
163
|
var DRAFT_VERSION = 0xff00000en;
|
|
70
164
|
export {
|
|
165
|
+
AnnounceErrorCode,
|
|
71
166
|
BIDIRECTIONAL_MESSAGES,
|
|
72
167
|
CLIENT_ONLY_MESSAGES,
|
|
73
168
|
CONTROL_MESSAGES,
|
|
74
169
|
DRAFT_VERSION,
|
|
170
|
+
DataStreamResetErrorCode,
|
|
75
171
|
Draft14SessionFSM,
|
|
172
|
+
FetchErrorCode,
|
|
76
173
|
FetchType,
|
|
77
174
|
FilterType,
|
|
78
175
|
GroupOrder,
|
|
@@ -112,7 +209,13 @@ export {
|
|
|
112
209
|
PARAM_MOQT_IMPLEMENTATION,
|
|
113
210
|
PARAM_PATH,
|
|
114
211
|
PARAM_ROLE,
|
|
212
|
+
PublishDoneStatusCode,
|
|
213
|
+
PublishErrorCode,
|
|
214
|
+
REDACTION_FILL,
|
|
115
215
|
SERVER_ONLY_MESSAGES,
|
|
216
|
+
SessionErrorCode,
|
|
217
|
+
SubscribeErrorCode,
|
|
218
|
+
SubscribeNamespaceErrorCode,
|
|
116
219
|
createDataStreamDecoder,
|
|
117
220
|
createDraft14Codec,
|
|
118
221
|
createDraft14SessionState,
|
|
@@ -129,5 +232,6 @@ export {
|
|
|
129
232
|
encodeMessage,
|
|
130
233
|
encodeSubgroupStream,
|
|
131
234
|
getLegalIncoming,
|
|
132
|
-
getLegalOutgoing
|
|
235
|
+
getLegalOutgoing,
|
|
236
|
+
redactAuthTokens
|
|
133
237
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
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-B9idsih-.cjs';
|
|
3
|
-
import { D as Draft15Message, a as Draft15MessageType } from './types-
|
|
3
|
+
import { D as Draft15Message, a as Draft15MessageType } from './types-CuibHYcf.cjs';
|
|
4
4
|
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft15SessionState(role: SessionStateOptionsRole): SessionState<Draft15Message, Draft15MessageType>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
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-Dn7b3RZM.js';
|
|
3
|
-
import { D as Draft15Message, a as Draft15MessageType } from './types-
|
|
3
|
+
import { D as Draft15Message, a as Draft15MessageType } from './types-CuibHYcf.js';
|
|
4
4
|
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft15SessionState(role: SessionStateOptionsRole): SessionState<Draft15Message, Draft15MessageType>;
|
package/dist/draft15.cjs
CHANGED
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
var _chunk73K4OSANcjs = require('./chunk-73K4OSAN.cjs');
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
|
|
@@ -54,7 +55,66 @@ var _chunkWCTMPDUXcjs = require('./chunk-WCTMPDUX.cjs');
|
|
|
54
55
|
|
|
55
56
|
|
|
56
57
|
var _chunkJKOEJZ5Bcjs = require('./chunk-JKOEJZ5B.cjs');
|
|
57
|
-
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
var _chunk5IMHJIAZcjs = require('./chunk-5IMHJIAZ.cjs');
|
|
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;
|
|
@@ -112,4 +172,10 @@ var DRAFT_VERSION = 0xff00000fn;
|
|
|
112
172
|
|
|
113
173
|
|
|
114
174
|
|
|
115
|
-
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
exports.BIDIRECTIONAL_MESSAGES = _chunkJKOEJZ5Bcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkJKOEJZ5Bcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkJKOEJZ5Bcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.DataStreamResetErrorCode = DataStreamResetErrorCode; exports.Draft15SessionFSM = _chunkJKOEJZ5Bcjs.Draft15SessionFSM; exports.MESSAGE_ID_MAP = _chunk73K4OSANcjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunk73K4OSANcjs.MESSAGE_TYPE_MAP; exports.MSG_CLIENT_SETUP = _chunk73K4OSANcjs.MSG_CLIENT_SETUP; exports.MSG_FETCH = _chunk73K4OSANcjs.MSG_FETCH; exports.MSG_FETCH_CANCEL = _chunk73K4OSANcjs.MSG_FETCH_CANCEL; exports.MSG_FETCH_OK = _chunk73K4OSANcjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunk73K4OSANcjs.MSG_GOAWAY; exports.MSG_MAX_REQUEST_ID = _chunk73K4OSANcjs.MSG_MAX_REQUEST_ID; exports.MSG_PUBLISH = _chunk73K4OSANcjs.MSG_PUBLISH; exports.MSG_PUBLISH_DONE = _chunk73K4OSANcjs.MSG_PUBLISH_DONE; exports.MSG_PUBLISH_NAMESPACE = _chunk73K4OSANcjs.MSG_PUBLISH_NAMESPACE; exports.MSG_PUBLISH_NAMESPACE_CANCEL = _chunk73K4OSANcjs.MSG_PUBLISH_NAMESPACE_CANCEL; exports.MSG_PUBLISH_NAMESPACE_DONE = _chunk73K4OSANcjs.MSG_PUBLISH_NAMESPACE_DONE; exports.MSG_PUBLISH_OK = _chunk73K4OSANcjs.MSG_PUBLISH_OK; exports.MSG_REQUESTS_BLOCKED = _chunk73K4OSANcjs.MSG_REQUESTS_BLOCKED; exports.MSG_REQUEST_ERROR = _chunk73K4OSANcjs.MSG_REQUEST_ERROR; exports.MSG_REQUEST_OK = _chunk73K4OSANcjs.MSG_REQUEST_OK; exports.MSG_SERVER_SETUP = _chunk73K4OSANcjs.MSG_SERVER_SETUP; exports.MSG_SUBSCRIBE = _chunk73K4OSANcjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_NAMESPACE = _chunk73K4OSANcjs.MSG_SUBSCRIBE_NAMESPACE; exports.MSG_SUBSCRIBE_OK = _chunk73K4OSANcjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_UPDATE = _chunk73K4OSANcjs.MSG_SUBSCRIBE_UPDATE; exports.MSG_TRACK_STATUS = _chunk73K4OSANcjs.MSG_TRACK_STATUS; exports.MSG_UNSUBSCRIBE = _chunk73K4OSANcjs.MSG_UNSUBSCRIBE; exports.MSG_UNSUBSCRIBE_NAMESPACE = _chunk73K4OSANcjs.MSG_UNSUBSCRIBE_NAMESPACE; exports.PublishDoneStatusCode = PublishDoneStatusCode; exports.REDACTION_FILL = _chunk5IMHJIAZcjs.REDACTION_FILL; exports.RequestErrorCode = RequestErrorCode; exports.SERVER_ONLY_MESSAGES = _chunkJKOEJZ5Bcjs.SERVER_ONLY_MESSAGES; exports.SETUP_PARAM_AUTHORITY = _chunk73K4OSANcjs.SETUP_PARAM_AUTHORITY; exports.SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE = _chunk73K4OSANcjs.SETUP_PARAM_MAX_AUTH_TOKEN_CACHE_SIZE; exports.SETUP_PARAM_MAX_REQUEST_ID = _chunk73K4OSANcjs.SETUP_PARAM_MAX_REQUEST_ID; exports.SETUP_PARAM_MOQT_IMPLEMENTATION = _chunk73K4OSANcjs.SETUP_PARAM_MOQT_IMPLEMENTATION; exports.SETUP_PARAM_PATH = _chunk73K4OSANcjs.SETUP_PARAM_PATH; exports.SessionErrorCode = SessionErrorCode; exports.createDataStreamDecoder = _chunk73K4OSANcjs.createDataStreamDecoder; exports.createDraft15Codec = _chunk73K4OSANcjs.createDraft15Codec; exports.createDraft15SessionState = _chunkJKOEJZ5Bcjs.createDraft15SessionState; exports.createFetchStreamDecoder = _chunk73K4OSANcjs.createFetchStreamDecoder; exports.createStreamDecoder = _chunk73K4OSANcjs.createStreamDecoder; exports.createSubgroupStreamDecoder = _chunk73K4OSANcjs.createSubgroupStreamDecoder; exports.decodeDataStream = _chunk73K4OSANcjs.decodeDataStream; exports.decodeDatagram = _chunk73K4OSANcjs.decodeDatagram; exports.decodeFetchStream = _chunk73K4OSANcjs.decodeFetchStream; exports.decodeMessage = _chunk73K4OSANcjs.decodeMessage; exports.decodeSubgroupStream = _chunk73K4OSANcjs.decodeSubgroupStream; exports.encodeDatagram = _chunk73K4OSANcjs.encodeDatagram; exports.encodeFetchStream = _chunk73K4OSANcjs.encodeFetchStream; exports.encodeMessage = _chunk73K4OSANcjs.encodeMessage; exports.encodeSubgroupStream = _chunk73K4OSANcjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkJKOEJZ5Bcjs.getLegalIncoming; exports.getLegalOutgoing = _chunkJKOEJZ5Bcjs.getLegalOutgoing; exports.redactAuthTokens = _chunk73K4OSANcjs.redactAuthTokens;
|
package/dist/draft15.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-DsdLq4Qs.cjs';
|
|
2
|
+
export { D as Draft15Codec, c as createDraft15Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-XLrnreeu.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
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-B9idsih-.cjs';
|
|
6
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-B9idsih-.cjs';
|
|
@@ -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,6 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-DsdLq4Qs.js';
|
|
2
|
+
export { D as Draft15Codec, c as createDraft15Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-qSbO5nOa.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
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-Dn7b3RZM.js';
|
|
6
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-Dn7b3RZM.js';
|
|
@@ -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 };
|