@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/draft12.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-DsdLq4Qs.cjs';
|
|
2
|
+
export { D as Draft12Codec, c as createDraft12Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-GAY4lybi.cjs';
|
|
2
3
|
import { b as Draft12DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft12MessageType, D as Draft12Message } from './types-CI_SX4Xe.cjs';
|
|
3
4
|
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft12Announce, g as Draft12AnnounceCancel, h as Draft12AnnounceError, i as Draft12AnnounceOk, j as Draft12BaseMessage, k as Draft12ClientSetup, l as Draft12Fetch, m as Draft12FetchCancel, n as Draft12FetchError, o as Draft12FetchOk, p as Draft12GoAway, q as Draft12MaxRequestId, r as Draft12Params, s as Draft12Publish, t as Draft12PublishError, u as Draft12PublishOk, v as Draft12RequestsBlocked, w as Draft12ServerSetup, x as Draft12SetupParams, y as Draft12Subscribe, z as Draft12SubscribeAnnounces, B as Draft12SubscribeAnnouncesError, C as Draft12SubscribeAnnouncesOk, E as Draft12SubscribeDone, G as Draft12SubscribeError, H as Draft12SubscribeOk, I as Draft12SubscribeUpdate, J as Draft12TrackStatus, K as Draft12TrackStatusRequest, L as Draft12Unannounce, M as Draft12Unsubscribe, N as Draft12UnsubscribeAnnounces, O as FetchObjectPayload, P as FetchStreamHeader, Q as JoiningFetch, R as LargestLocation, T as ObjectPayload, U as StandaloneFetch, V as SubgroupStreamHeader, W as UnknownParam } from './types-CI_SX4Xe.cjs';
|
|
4
5
|
export { createDraft12SessionState } from './draft12-session.cjs';
|
|
@@ -14,6 +15,110 @@ declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>
|
|
|
14
15
|
declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
15
16
|
declare function decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft12DataStream>;
|
|
16
17
|
|
|
18
|
+
declare const SessionErrorCode: {
|
|
19
|
+
readonly NoError: 0n;
|
|
20
|
+
readonly InternalError: 1n;
|
|
21
|
+
readonly Unauthorized: 2n;
|
|
22
|
+
readonly ProtocolViolation: 3n;
|
|
23
|
+
readonly InvalidRequestId: 4n;
|
|
24
|
+
readonly DuplicateTrackAlias: 5n;
|
|
25
|
+
readonly KeyValueFormattingError: 6n;
|
|
26
|
+
readonly TooManyRequests: 7n;
|
|
27
|
+
readonly InvalidPath: 8n;
|
|
28
|
+
readonly MalformedPath: 9n;
|
|
29
|
+
readonly GoawayTimeout: 16n;
|
|
30
|
+
readonly ControlMessageTimeout: 17n;
|
|
31
|
+
readonly DataStreamTimeout: 18n;
|
|
32
|
+
readonly AuthTokenCacheOverflow: 19n;
|
|
33
|
+
readonly DuplicateAuthTokenAlias: 20n;
|
|
34
|
+
readonly VersionNegotiationFailed: 21n;
|
|
35
|
+
readonly MalformedAuthToken: 22n;
|
|
36
|
+
readonly UnknownAuthTokenAlias: 23n;
|
|
37
|
+
readonly ExpiredAuthToken: 24n;
|
|
38
|
+
};
|
|
39
|
+
type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
|
|
40
|
+
declare const SubscribeErrorCode: {
|
|
41
|
+
readonly InternalError: 0n;
|
|
42
|
+
readonly Unauthorized: 1n;
|
|
43
|
+
readonly Timeout: 2n;
|
|
44
|
+
readonly NotSupported: 3n;
|
|
45
|
+
readonly TrackDoesNotExist: 4n;
|
|
46
|
+
readonly InvalidRange: 5n;
|
|
47
|
+
readonly MalformedAuthToken: 16n;
|
|
48
|
+
readonly ExpiredAuthToken: 18n;
|
|
49
|
+
};
|
|
50
|
+
type SubscribeErrorCodeValue = (typeof SubscribeErrorCode)[keyof typeof SubscribeErrorCode];
|
|
51
|
+
declare const SubscribeDoneStatusCode: {
|
|
52
|
+
readonly InternalError: 0n;
|
|
53
|
+
readonly Unauthorized: 1n;
|
|
54
|
+
readonly TrackEnded: 2n;
|
|
55
|
+
readonly SubscriptionEnded: 3n;
|
|
56
|
+
readonly GoingAway: 4n;
|
|
57
|
+
readonly Expired: 5n;
|
|
58
|
+
readonly TooFarBehind: 6n;
|
|
59
|
+
readonly MalformedTrack: 7n;
|
|
60
|
+
};
|
|
61
|
+
type SubscribeDoneStatusCodeValue = (typeof SubscribeDoneStatusCode)[keyof typeof SubscribeDoneStatusCode];
|
|
62
|
+
declare const PublishErrorCode: {
|
|
63
|
+
readonly InternalError: 0n;
|
|
64
|
+
readonly Unauthorized: 1n;
|
|
65
|
+
readonly Timeout: 2n;
|
|
66
|
+
readonly NotSupported: 3n;
|
|
67
|
+
readonly Uninterested: 4n;
|
|
68
|
+
};
|
|
69
|
+
type PublishErrorCodeValue = (typeof PublishErrorCode)[keyof typeof PublishErrorCode];
|
|
70
|
+
declare const FetchErrorCode: {
|
|
71
|
+
readonly InternalError: 0n;
|
|
72
|
+
readonly Unauthorized: 1n;
|
|
73
|
+
readonly Timeout: 2n;
|
|
74
|
+
readonly NotSupported: 3n;
|
|
75
|
+
readonly TrackDoesNotExist: 4n;
|
|
76
|
+
readonly InvalidRange: 5n;
|
|
77
|
+
readonly NoObjects: 6n;
|
|
78
|
+
readonly InvalidJoiningRequestId: 7n;
|
|
79
|
+
readonly UnknownStatusInRange: 8n;
|
|
80
|
+
readonly MalformedTrack: 9n;
|
|
81
|
+
readonly MalformedAuthToken: 16n;
|
|
82
|
+
readonly ExpiredAuthToken: 18n;
|
|
83
|
+
};
|
|
84
|
+
type FetchErrorCodeValue = (typeof FetchErrorCode)[keyof typeof FetchErrorCode];
|
|
85
|
+
declare const AnnounceErrorCode: {
|
|
86
|
+
readonly InternalError: 0n;
|
|
87
|
+
readonly Unauthorized: 1n;
|
|
88
|
+
readonly Timeout: 2n;
|
|
89
|
+
readonly NotSupported: 3n;
|
|
90
|
+
readonly Uninterested: 4n;
|
|
91
|
+
readonly MalformedAuthToken: 16n;
|
|
92
|
+
readonly ExpiredAuthToken: 18n;
|
|
93
|
+
};
|
|
94
|
+
type AnnounceErrorCodeValue = (typeof AnnounceErrorCode)[keyof typeof AnnounceErrorCode];
|
|
95
|
+
declare const SubscribeAnnouncesErrorCode: {
|
|
96
|
+
readonly InternalError: 0n;
|
|
97
|
+
readonly Unauthorized: 1n;
|
|
98
|
+
readonly Timeout: 2n;
|
|
99
|
+
readonly NotSupported: 3n;
|
|
100
|
+
readonly NamespacePrefixUnknown: 4n;
|
|
101
|
+
readonly NamespacePrefixOverlap: 5n;
|
|
102
|
+
readonly MalformedAuthToken: 16n;
|
|
103
|
+
readonly ExpiredAuthToken: 18n;
|
|
104
|
+
};
|
|
105
|
+
type SubscribeAnnouncesErrorCodeValue = (typeof SubscribeAnnouncesErrorCode)[keyof typeof SubscribeAnnouncesErrorCode];
|
|
106
|
+
declare const StreamResetErrorCode: {
|
|
107
|
+
readonly InternalError: 0n;
|
|
108
|
+
readonly Cancelled: 1n;
|
|
109
|
+
readonly DeliveryTimeout: 2n;
|
|
110
|
+
readonly SessionClosed: 3n;
|
|
111
|
+
};
|
|
112
|
+
type StreamResetErrorCodeValue = (typeof StreamResetErrorCode)[keyof typeof StreamResetErrorCode];
|
|
113
|
+
declare const TrackStatusCode: {
|
|
114
|
+
readonly InProgress: 0n;
|
|
115
|
+
readonly TrackDoesNotExist: 1n;
|
|
116
|
+
readonly NotYetBegun: 2n;
|
|
117
|
+
readonly Finished: 3n;
|
|
118
|
+
readonly RelayStatusUnavailable: 4n;
|
|
119
|
+
};
|
|
120
|
+
type TrackStatusCodeValue = (typeof TrackStatusCode)[keyof typeof TrackStatusCode];
|
|
121
|
+
|
|
17
122
|
declare const MSG_SUBSCRIBE_UPDATE = 2n;
|
|
18
123
|
declare const MSG_SUBSCRIBE = 3n;
|
|
19
124
|
declare const MSG_SUBSCRIBE_OK = 4n;
|
|
@@ -113,4 +218,4 @@ declare class Draft12SessionFSM {
|
|
|
113
218
|
|
|
114
219
|
declare const DRAFT_VERSION = 4278190092n;
|
|
115
220
|
|
|
116
|
-
export { AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft12DataStream, Draft12Message, Draft12MessageType, Draft12SessionFSM, FetchState, FetchStream, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_ANNOUNCE, MSG_ANNOUNCE_CANCEL, MSG_ANNOUNCE_ERROR, MSG_ANNOUNCE_OK, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_ERROR, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_ANNOUNCES, MSG_SUBSCRIBE_ANNOUNCES_ERROR, MSG_SUBSCRIBE_ANNOUNCES_OK, MSG_SUBSCRIBE_DONE, MSG_SUBSCRIBE_ERROR, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_TRACK_STATUS_REQUEST, MSG_UNANNOUNCE, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_ANNOUNCES, PARAM_AUTHORIZATION_TOKEN, PARAM_DELIVERY_TIMEOUT, SERVER_ONLY_MESSAGES, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_PATH, SessionPhase, SubgroupStream, SubscriptionState, TransitionResult, VARINT_FRAMED_MESSAGES, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
|
221
|
+
export { AnnounceErrorCode, type AnnounceErrorCodeValue, AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft12DataStream, Draft12Message, Draft12MessageType, Draft12SessionFSM, FetchErrorCode, type FetchErrorCodeValue, FetchState, FetchStream, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_ANNOUNCE, MSG_ANNOUNCE_CANCEL, MSG_ANNOUNCE_ERROR, MSG_ANNOUNCE_OK, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_ERROR, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_ANNOUNCES, MSG_SUBSCRIBE_ANNOUNCES_ERROR, MSG_SUBSCRIBE_ANNOUNCES_OK, MSG_SUBSCRIBE_DONE, MSG_SUBSCRIBE_ERROR, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_TRACK_STATUS_REQUEST, MSG_UNANNOUNCE, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_ANNOUNCES, PARAM_AUTHORIZATION_TOKEN, PARAM_DELIVERY_TIMEOUT, PublishErrorCode, type PublishErrorCodeValue, SERVER_ONLY_MESSAGES, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_PATH, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, StreamResetErrorCode, type StreamResetErrorCodeValue, SubgroupStream, SubscribeAnnouncesErrorCode, type SubscribeAnnouncesErrorCodeValue, SubscribeDoneStatusCode, type SubscribeDoneStatusCodeValue, SubscribeErrorCode, type SubscribeErrorCodeValue, SubscriptionState, TrackStatusCode, type TrackStatusCodeValue, TransitionResult, VARINT_FRAMED_MESSAGES, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
package/dist/draft12.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 Draft12Codec, c as createDraft12Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-8p40WdLg.js';
|
|
2
3
|
import { b as Draft12DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft12MessageType, D as Draft12Message } from './types-CI_SX4Xe.js';
|
|
3
4
|
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft12Announce, g as Draft12AnnounceCancel, h as Draft12AnnounceError, i as Draft12AnnounceOk, j as Draft12BaseMessage, k as Draft12ClientSetup, l as Draft12Fetch, m as Draft12FetchCancel, n as Draft12FetchError, o as Draft12FetchOk, p as Draft12GoAway, q as Draft12MaxRequestId, r as Draft12Params, s as Draft12Publish, t as Draft12PublishError, u as Draft12PublishOk, v as Draft12RequestsBlocked, w as Draft12ServerSetup, x as Draft12SetupParams, y as Draft12Subscribe, z as Draft12SubscribeAnnounces, B as Draft12SubscribeAnnouncesError, C as Draft12SubscribeAnnouncesOk, E as Draft12SubscribeDone, G as Draft12SubscribeError, H as Draft12SubscribeOk, I as Draft12SubscribeUpdate, J as Draft12TrackStatus, K as Draft12TrackStatusRequest, L as Draft12Unannounce, M as Draft12Unsubscribe, N as Draft12UnsubscribeAnnounces, O as FetchObjectPayload, P as FetchStreamHeader, Q as JoiningFetch, R as LargestLocation, T as ObjectPayload, U as StandaloneFetch, V as SubgroupStreamHeader, W as UnknownParam } from './types-CI_SX4Xe.js';
|
|
4
5
|
export { createDraft12SessionState } from './draft12-session.js';
|
|
@@ -14,6 +15,110 @@ declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>
|
|
|
14
15
|
declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
15
16
|
declare function decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft12DataStream>;
|
|
16
17
|
|
|
18
|
+
declare const SessionErrorCode: {
|
|
19
|
+
readonly NoError: 0n;
|
|
20
|
+
readonly InternalError: 1n;
|
|
21
|
+
readonly Unauthorized: 2n;
|
|
22
|
+
readonly ProtocolViolation: 3n;
|
|
23
|
+
readonly InvalidRequestId: 4n;
|
|
24
|
+
readonly DuplicateTrackAlias: 5n;
|
|
25
|
+
readonly KeyValueFormattingError: 6n;
|
|
26
|
+
readonly TooManyRequests: 7n;
|
|
27
|
+
readonly InvalidPath: 8n;
|
|
28
|
+
readonly MalformedPath: 9n;
|
|
29
|
+
readonly GoawayTimeout: 16n;
|
|
30
|
+
readonly ControlMessageTimeout: 17n;
|
|
31
|
+
readonly DataStreamTimeout: 18n;
|
|
32
|
+
readonly AuthTokenCacheOverflow: 19n;
|
|
33
|
+
readonly DuplicateAuthTokenAlias: 20n;
|
|
34
|
+
readonly VersionNegotiationFailed: 21n;
|
|
35
|
+
readonly MalformedAuthToken: 22n;
|
|
36
|
+
readonly UnknownAuthTokenAlias: 23n;
|
|
37
|
+
readonly ExpiredAuthToken: 24n;
|
|
38
|
+
};
|
|
39
|
+
type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
|
|
40
|
+
declare const SubscribeErrorCode: {
|
|
41
|
+
readonly InternalError: 0n;
|
|
42
|
+
readonly Unauthorized: 1n;
|
|
43
|
+
readonly Timeout: 2n;
|
|
44
|
+
readonly NotSupported: 3n;
|
|
45
|
+
readonly TrackDoesNotExist: 4n;
|
|
46
|
+
readonly InvalidRange: 5n;
|
|
47
|
+
readonly MalformedAuthToken: 16n;
|
|
48
|
+
readonly ExpiredAuthToken: 18n;
|
|
49
|
+
};
|
|
50
|
+
type SubscribeErrorCodeValue = (typeof SubscribeErrorCode)[keyof typeof SubscribeErrorCode];
|
|
51
|
+
declare const SubscribeDoneStatusCode: {
|
|
52
|
+
readonly InternalError: 0n;
|
|
53
|
+
readonly Unauthorized: 1n;
|
|
54
|
+
readonly TrackEnded: 2n;
|
|
55
|
+
readonly SubscriptionEnded: 3n;
|
|
56
|
+
readonly GoingAway: 4n;
|
|
57
|
+
readonly Expired: 5n;
|
|
58
|
+
readonly TooFarBehind: 6n;
|
|
59
|
+
readonly MalformedTrack: 7n;
|
|
60
|
+
};
|
|
61
|
+
type SubscribeDoneStatusCodeValue = (typeof SubscribeDoneStatusCode)[keyof typeof SubscribeDoneStatusCode];
|
|
62
|
+
declare const PublishErrorCode: {
|
|
63
|
+
readonly InternalError: 0n;
|
|
64
|
+
readonly Unauthorized: 1n;
|
|
65
|
+
readonly Timeout: 2n;
|
|
66
|
+
readonly NotSupported: 3n;
|
|
67
|
+
readonly Uninterested: 4n;
|
|
68
|
+
};
|
|
69
|
+
type PublishErrorCodeValue = (typeof PublishErrorCode)[keyof typeof PublishErrorCode];
|
|
70
|
+
declare const FetchErrorCode: {
|
|
71
|
+
readonly InternalError: 0n;
|
|
72
|
+
readonly Unauthorized: 1n;
|
|
73
|
+
readonly Timeout: 2n;
|
|
74
|
+
readonly NotSupported: 3n;
|
|
75
|
+
readonly TrackDoesNotExist: 4n;
|
|
76
|
+
readonly InvalidRange: 5n;
|
|
77
|
+
readonly NoObjects: 6n;
|
|
78
|
+
readonly InvalidJoiningRequestId: 7n;
|
|
79
|
+
readonly UnknownStatusInRange: 8n;
|
|
80
|
+
readonly MalformedTrack: 9n;
|
|
81
|
+
readonly MalformedAuthToken: 16n;
|
|
82
|
+
readonly ExpiredAuthToken: 18n;
|
|
83
|
+
};
|
|
84
|
+
type FetchErrorCodeValue = (typeof FetchErrorCode)[keyof typeof FetchErrorCode];
|
|
85
|
+
declare const AnnounceErrorCode: {
|
|
86
|
+
readonly InternalError: 0n;
|
|
87
|
+
readonly Unauthorized: 1n;
|
|
88
|
+
readonly Timeout: 2n;
|
|
89
|
+
readonly NotSupported: 3n;
|
|
90
|
+
readonly Uninterested: 4n;
|
|
91
|
+
readonly MalformedAuthToken: 16n;
|
|
92
|
+
readonly ExpiredAuthToken: 18n;
|
|
93
|
+
};
|
|
94
|
+
type AnnounceErrorCodeValue = (typeof AnnounceErrorCode)[keyof typeof AnnounceErrorCode];
|
|
95
|
+
declare const SubscribeAnnouncesErrorCode: {
|
|
96
|
+
readonly InternalError: 0n;
|
|
97
|
+
readonly Unauthorized: 1n;
|
|
98
|
+
readonly Timeout: 2n;
|
|
99
|
+
readonly NotSupported: 3n;
|
|
100
|
+
readonly NamespacePrefixUnknown: 4n;
|
|
101
|
+
readonly NamespacePrefixOverlap: 5n;
|
|
102
|
+
readonly MalformedAuthToken: 16n;
|
|
103
|
+
readonly ExpiredAuthToken: 18n;
|
|
104
|
+
};
|
|
105
|
+
type SubscribeAnnouncesErrorCodeValue = (typeof SubscribeAnnouncesErrorCode)[keyof typeof SubscribeAnnouncesErrorCode];
|
|
106
|
+
declare const StreamResetErrorCode: {
|
|
107
|
+
readonly InternalError: 0n;
|
|
108
|
+
readonly Cancelled: 1n;
|
|
109
|
+
readonly DeliveryTimeout: 2n;
|
|
110
|
+
readonly SessionClosed: 3n;
|
|
111
|
+
};
|
|
112
|
+
type StreamResetErrorCodeValue = (typeof StreamResetErrorCode)[keyof typeof StreamResetErrorCode];
|
|
113
|
+
declare const TrackStatusCode: {
|
|
114
|
+
readonly InProgress: 0n;
|
|
115
|
+
readonly TrackDoesNotExist: 1n;
|
|
116
|
+
readonly NotYetBegun: 2n;
|
|
117
|
+
readonly Finished: 3n;
|
|
118
|
+
readonly RelayStatusUnavailable: 4n;
|
|
119
|
+
};
|
|
120
|
+
type TrackStatusCodeValue = (typeof TrackStatusCode)[keyof typeof TrackStatusCode];
|
|
121
|
+
|
|
17
122
|
declare const MSG_SUBSCRIBE_UPDATE = 2n;
|
|
18
123
|
declare const MSG_SUBSCRIBE = 3n;
|
|
19
124
|
declare const MSG_SUBSCRIBE_OK = 4n;
|
|
@@ -113,4 +218,4 @@ declare class Draft12SessionFSM {
|
|
|
113
218
|
|
|
114
219
|
declare const DRAFT_VERSION = 4278190092n;
|
|
115
220
|
|
|
116
|
-
export { AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft12DataStream, Draft12Message, Draft12MessageType, Draft12SessionFSM, FetchState, FetchStream, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_ANNOUNCE, MSG_ANNOUNCE_CANCEL, MSG_ANNOUNCE_ERROR, MSG_ANNOUNCE_OK, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_ERROR, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_ANNOUNCES, MSG_SUBSCRIBE_ANNOUNCES_ERROR, MSG_SUBSCRIBE_ANNOUNCES_OK, MSG_SUBSCRIBE_DONE, MSG_SUBSCRIBE_ERROR, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_TRACK_STATUS_REQUEST, MSG_UNANNOUNCE, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_ANNOUNCES, PARAM_AUTHORIZATION_TOKEN, PARAM_DELIVERY_TIMEOUT, SERVER_ONLY_MESSAGES, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_PATH, SessionPhase, SubgroupStream, SubscriptionState, TransitionResult, VARINT_FRAMED_MESSAGES, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
|
221
|
+
export { AnnounceErrorCode, type AnnounceErrorCodeValue, AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft12DataStream, Draft12Message, Draft12MessageType, Draft12SessionFSM, FetchErrorCode, type FetchErrorCodeValue, FetchState, FetchStream, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_ANNOUNCE, MSG_ANNOUNCE_CANCEL, MSG_ANNOUNCE_ERROR, MSG_ANNOUNCE_OK, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_ERROR, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_ANNOUNCES, MSG_SUBSCRIBE_ANNOUNCES_ERROR, MSG_SUBSCRIBE_ANNOUNCES_OK, MSG_SUBSCRIBE_DONE, MSG_SUBSCRIBE_ERROR, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_TRACK_STATUS_REQUEST, MSG_UNANNOUNCE, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_ANNOUNCES, PARAM_AUTHORIZATION_TOKEN, PARAM_DELIVERY_TIMEOUT, PublishErrorCode, type PublishErrorCodeValue, SERVER_ONLY_MESSAGES, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_PATH, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, StreamResetErrorCode, type StreamResetErrorCodeValue, SubgroupStream, SubscribeAnnouncesErrorCode, type SubscribeAnnouncesErrorCodeValue, SubscribeDoneStatusCode, type SubscribeDoneStatusCodeValue, SubscribeErrorCode, type SubscribeErrorCodeValue, SubscriptionState, TrackStatusCode, type TrackStatusCodeValue, TransitionResult, VARINT_FRAMED_MESSAGES, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
package/dist/draft12.js
CHANGED
|
@@ -45,8 +45,9 @@ import {
|
|
|
45
45
|
encodeDatagram,
|
|
46
46
|
encodeFetchStream,
|
|
47
47
|
encodeMessage,
|
|
48
|
-
encodeSubgroupStream
|
|
49
|
-
|
|
48
|
+
encodeSubgroupStream,
|
|
49
|
+
redactAuthTokens
|
|
50
|
+
} from "./chunk-BBICOMW6.js";
|
|
50
51
|
import {
|
|
51
52
|
BIDIRECTIONAL_MESSAGES,
|
|
52
53
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -57,16 +58,116 @@ import {
|
|
|
57
58
|
getLegalIncoming,
|
|
58
59
|
getLegalOutgoing
|
|
59
60
|
} from "./chunk-LORZMJJB.js";
|
|
60
|
-
import
|
|
61
|
+
import {
|
|
62
|
+
REDACTION_FILL
|
|
63
|
+
} from "./chunk-YRZQVNZO.js";
|
|
64
|
+
|
|
65
|
+
// src/drafts/draft12/error-codes.ts
|
|
66
|
+
var SessionErrorCode = {
|
|
67
|
+
NoError: 0x0n,
|
|
68
|
+
InternalError: 0x1n,
|
|
69
|
+
Unauthorized: 0x2n,
|
|
70
|
+
ProtocolViolation: 0x3n,
|
|
71
|
+
InvalidRequestId: 0x4n,
|
|
72
|
+
DuplicateTrackAlias: 0x5n,
|
|
73
|
+
KeyValueFormattingError: 0x6n,
|
|
74
|
+
TooManyRequests: 0x7n,
|
|
75
|
+
InvalidPath: 0x8n,
|
|
76
|
+
MalformedPath: 0x9n,
|
|
77
|
+
GoawayTimeout: 0x10n,
|
|
78
|
+
ControlMessageTimeout: 0x11n,
|
|
79
|
+
DataStreamTimeout: 0x12n,
|
|
80
|
+
AuthTokenCacheOverflow: 0x13n,
|
|
81
|
+
DuplicateAuthTokenAlias: 0x14n,
|
|
82
|
+
VersionNegotiationFailed: 0x15n,
|
|
83
|
+
MalformedAuthToken: 0x16n,
|
|
84
|
+
UnknownAuthTokenAlias: 0x17n,
|
|
85
|
+
ExpiredAuthToken: 0x18n
|
|
86
|
+
};
|
|
87
|
+
var SubscribeErrorCode = {
|
|
88
|
+
InternalError: 0x0n,
|
|
89
|
+
Unauthorized: 0x1n,
|
|
90
|
+
Timeout: 0x2n,
|
|
91
|
+
NotSupported: 0x3n,
|
|
92
|
+
TrackDoesNotExist: 0x4n,
|
|
93
|
+
InvalidRange: 0x5n,
|
|
94
|
+
MalformedAuthToken: 0x10n,
|
|
95
|
+
ExpiredAuthToken: 0x12n
|
|
96
|
+
};
|
|
97
|
+
var SubscribeDoneStatusCode = {
|
|
98
|
+
InternalError: 0x0n,
|
|
99
|
+
Unauthorized: 0x1n,
|
|
100
|
+
TrackEnded: 0x2n,
|
|
101
|
+
SubscriptionEnded: 0x3n,
|
|
102
|
+
GoingAway: 0x4n,
|
|
103
|
+
Expired: 0x5n,
|
|
104
|
+
TooFarBehind: 0x6n,
|
|
105
|
+
MalformedTrack: 0x7n
|
|
106
|
+
};
|
|
107
|
+
var PublishErrorCode = {
|
|
108
|
+
InternalError: 0x0n,
|
|
109
|
+
Unauthorized: 0x1n,
|
|
110
|
+
Timeout: 0x2n,
|
|
111
|
+
NotSupported: 0x3n,
|
|
112
|
+
Uninterested: 0x4n
|
|
113
|
+
};
|
|
114
|
+
var FetchErrorCode = {
|
|
115
|
+
InternalError: 0x0n,
|
|
116
|
+
Unauthorized: 0x1n,
|
|
117
|
+
Timeout: 0x2n,
|
|
118
|
+
NotSupported: 0x3n,
|
|
119
|
+
TrackDoesNotExist: 0x4n,
|
|
120
|
+
InvalidRange: 0x5n,
|
|
121
|
+
NoObjects: 0x6n,
|
|
122
|
+
InvalidJoiningRequestId: 0x7n,
|
|
123
|
+
UnknownStatusInRange: 0x8n,
|
|
124
|
+
MalformedTrack: 0x9n,
|
|
125
|
+
MalformedAuthToken: 0x10n,
|
|
126
|
+
ExpiredAuthToken: 0x12n
|
|
127
|
+
};
|
|
128
|
+
var AnnounceErrorCode = {
|
|
129
|
+
InternalError: 0x0n,
|
|
130
|
+
Unauthorized: 0x1n,
|
|
131
|
+
Timeout: 0x2n,
|
|
132
|
+
NotSupported: 0x3n,
|
|
133
|
+
Uninterested: 0x4n,
|
|
134
|
+
MalformedAuthToken: 0x10n,
|
|
135
|
+
ExpiredAuthToken: 0x12n
|
|
136
|
+
};
|
|
137
|
+
var SubscribeAnnouncesErrorCode = {
|
|
138
|
+
InternalError: 0x0n,
|
|
139
|
+
Unauthorized: 0x1n,
|
|
140
|
+
Timeout: 0x2n,
|
|
141
|
+
NotSupported: 0x3n,
|
|
142
|
+
NamespacePrefixUnknown: 0x4n,
|
|
143
|
+
NamespacePrefixOverlap: 0x5n,
|
|
144
|
+
MalformedAuthToken: 0x10n,
|
|
145
|
+
ExpiredAuthToken: 0x12n
|
|
146
|
+
};
|
|
147
|
+
var StreamResetErrorCode = {
|
|
148
|
+
InternalError: 0x0n,
|
|
149
|
+
Cancelled: 0x1n,
|
|
150
|
+
DeliveryTimeout: 0x2n,
|
|
151
|
+
SessionClosed: 0x3n
|
|
152
|
+
};
|
|
153
|
+
var TrackStatusCode = {
|
|
154
|
+
InProgress: 0x00n,
|
|
155
|
+
TrackDoesNotExist: 0x01n,
|
|
156
|
+
NotYetBegun: 0x02n,
|
|
157
|
+
Finished: 0x03n,
|
|
158
|
+
RelayStatusUnavailable: 0x04n
|
|
159
|
+
};
|
|
61
160
|
|
|
62
161
|
// src/drafts/draft12/index.ts
|
|
63
162
|
var DRAFT_VERSION = 0xff00000cn;
|
|
64
163
|
export {
|
|
164
|
+
AnnounceErrorCode,
|
|
65
165
|
BIDIRECTIONAL_MESSAGES,
|
|
66
166
|
CLIENT_ONLY_MESSAGES,
|
|
67
167
|
CONTROL_MESSAGES,
|
|
68
168
|
DRAFT_VERSION,
|
|
69
169
|
Draft12SessionFSM,
|
|
170
|
+
FetchErrorCode,
|
|
70
171
|
MESSAGE_ID_MAP,
|
|
71
172
|
MESSAGE_TYPE_MAP,
|
|
72
173
|
MSG_ANNOUNCE,
|
|
@@ -100,9 +201,17 @@ export {
|
|
|
100
201
|
MSG_UNSUBSCRIBE_ANNOUNCES,
|
|
101
202
|
PARAM_AUTHORIZATION_TOKEN,
|
|
102
203
|
PARAM_DELIVERY_TIMEOUT,
|
|
204
|
+
PublishErrorCode,
|
|
205
|
+
REDACTION_FILL,
|
|
103
206
|
SERVER_ONLY_MESSAGES,
|
|
104
207
|
SETUP_PARAM_MAX_REQUEST_ID,
|
|
105
208
|
SETUP_PARAM_PATH,
|
|
209
|
+
SessionErrorCode,
|
|
210
|
+
StreamResetErrorCode,
|
|
211
|
+
SubscribeAnnouncesErrorCode,
|
|
212
|
+
SubscribeDoneStatusCode,
|
|
213
|
+
SubscribeErrorCode,
|
|
214
|
+
TrackStatusCode,
|
|
106
215
|
VARINT_FRAMED_MESSAGES,
|
|
107
216
|
createDraft12Codec,
|
|
108
217
|
createDraft12SessionState,
|
|
@@ -117,5 +226,6 @@ export {
|
|
|
117
226
|
encodeMessage,
|
|
118
227
|
encodeSubgroupStream,
|
|
119
228
|
getLegalIncoming,
|
|
120
|
-
getLegalOutgoing
|
|
229
|
+
getLegalOutgoing,
|
|
230
|
+
redactAuthTokens
|
|
121
231
|
};
|
package/dist/draft13.cjs
CHANGED
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
|
|
51
|
+
var _chunkACQHZLRZcjs = require('./chunk-ACQHZLRZ.cjs');
|
|
51
52
|
|
|
52
53
|
|
|
53
54
|
|
|
@@ -58,7 +59,98 @@ var _chunkAQ445VV7cjs = require('./chunk-AQ445VV7.cjs');
|
|
|
58
59
|
|
|
59
60
|
|
|
60
61
|
var _chunkLV5C6MECcjs = require('./chunk-LV5C6MEC.cjs');
|
|
61
|
-
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
var _chunk5IMHJIAZcjs = require('./chunk-5IMHJIAZ.cjs');
|
|
65
|
+
|
|
66
|
+
// src/drafts/draft13/error-codes.ts
|
|
67
|
+
var SessionErrorCode = {
|
|
68
|
+
NoError: 0x0n,
|
|
69
|
+
InternalError: 0x1n,
|
|
70
|
+
Unauthorized: 0x2n,
|
|
71
|
+
ProtocolViolation: 0x3n,
|
|
72
|
+
InvalidRequestId: 0x4n,
|
|
73
|
+
DuplicateTrackAlias: 0x5n,
|
|
74
|
+
KeyValueFormattingError: 0x6n,
|
|
75
|
+
TooManyRequests: 0x7n,
|
|
76
|
+
InvalidPath: 0x8n,
|
|
77
|
+
MalformedPath: 0x9n,
|
|
78
|
+
GoawayTimeout: 0x10n,
|
|
79
|
+
ControlMessageTimeout: 0x11n,
|
|
80
|
+
DataStreamTimeout: 0x12n,
|
|
81
|
+
AuthTokenCacheOverflow: 0x13n,
|
|
82
|
+
DuplicateAuthTokenAlias: 0x14n,
|
|
83
|
+
VersionNegotiationFailed: 0x15n,
|
|
84
|
+
MalformedAuthToken: 0x16n,
|
|
85
|
+
UnknownAuthTokenAlias: 0x17n,
|
|
86
|
+
ExpiredAuthToken: 0x18n
|
|
87
|
+
};
|
|
88
|
+
var SubscribeErrorCode = {
|
|
89
|
+
InternalError: 0x0n,
|
|
90
|
+
Unauthorized: 0x1n,
|
|
91
|
+
Timeout: 0x2n,
|
|
92
|
+
NotSupported: 0x3n,
|
|
93
|
+
TrackDoesNotExist: 0x4n,
|
|
94
|
+
InvalidRange: 0x5n,
|
|
95
|
+
MalformedAuthToken: 0x10n,
|
|
96
|
+
ExpiredAuthToken: 0x12n
|
|
97
|
+
};
|
|
98
|
+
var SubscribeDoneStatusCode = {
|
|
99
|
+
InternalError: 0x0n,
|
|
100
|
+
Unauthorized: 0x1n,
|
|
101
|
+
TrackEnded: 0x2n,
|
|
102
|
+
SubscriptionEnded: 0x3n,
|
|
103
|
+
GoingAway: 0x4n,
|
|
104
|
+
Expired: 0x5n,
|
|
105
|
+
TooFarBehind: 0x6n,
|
|
106
|
+
MalformedTrack: 0x7n
|
|
107
|
+
};
|
|
108
|
+
var PublishErrorCode = {
|
|
109
|
+
InternalError: 0x0n,
|
|
110
|
+
Unauthorized: 0x1n,
|
|
111
|
+
Timeout: 0x2n,
|
|
112
|
+
NotSupported: 0x3n,
|
|
113
|
+
Uninterested: 0x4n
|
|
114
|
+
};
|
|
115
|
+
var FetchErrorCode = {
|
|
116
|
+
InternalError: 0x0n,
|
|
117
|
+
Unauthorized: 0x1n,
|
|
118
|
+
Timeout: 0x2n,
|
|
119
|
+
NotSupported: 0x3n,
|
|
120
|
+
TrackDoesNotExist: 0x4n,
|
|
121
|
+
InvalidRange: 0x5n,
|
|
122
|
+
NoObjects: 0x6n,
|
|
123
|
+
InvalidJoiningRequestId: 0x7n,
|
|
124
|
+
UnknownStatusInRange: 0x8n,
|
|
125
|
+
MalformedTrack: 0x9n,
|
|
126
|
+
MalformedAuthToken: 0x10n,
|
|
127
|
+
ExpiredAuthToken: 0x12n
|
|
128
|
+
};
|
|
129
|
+
var AnnounceErrorCode = {
|
|
130
|
+
InternalError: 0x0n,
|
|
131
|
+
Unauthorized: 0x1n,
|
|
132
|
+
Timeout: 0x2n,
|
|
133
|
+
NotSupported: 0x3n,
|
|
134
|
+
Uninterested: 0x4n,
|
|
135
|
+
MalformedAuthToken: 0x10n,
|
|
136
|
+
ExpiredAuthToken: 0x12n
|
|
137
|
+
};
|
|
138
|
+
var SubscribeNamespaceErrorCode = {
|
|
139
|
+
InternalError: 0x0n,
|
|
140
|
+
Unauthorized: 0x1n,
|
|
141
|
+
Timeout: 0x2n,
|
|
142
|
+
NotSupported: 0x3n,
|
|
143
|
+
NamespacePrefixUnknown: 0x4n,
|
|
144
|
+
NamespacePrefixOverlap: 0x5n,
|
|
145
|
+
MalformedAuthToken: 0x10n,
|
|
146
|
+
ExpiredAuthToken: 0x12n
|
|
147
|
+
};
|
|
148
|
+
var StreamResetErrorCode = {
|
|
149
|
+
InternalError: 0x0n,
|
|
150
|
+
Cancelled: 0x1n,
|
|
151
|
+
DeliveryTimeout: 0x2n,
|
|
152
|
+
SessionClosed: 0x3n
|
|
153
|
+
};
|
|
62
154
|
|
|
63
155
|
// src/drafts/draft13/index.ts
|
|
64
156
|
var DRAFT_VERSION = 0xff00000dn;
|
|
@@ -120,4 +212,14 @@ var DRAFT_VERSION = 0xff00000dn;
|
|
|
120
212
|
|
|
121
213
|
|
|
122
214
|
|
|
123
|
-
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
exports.AnnounceErrorCode = AnnounceErrorCode; exports.BIDIRECTIONAL_MESSAGES = _chunkLV5C6MECcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkLV5C6MECcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkLV5C6MECcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.Draft13SessionFSM = _chunkLV5C6MECcjs.Draft13SessionFSM; exports.FetchErrorCode = FetchErrorCode; exports.MESSAGE_ID_MAP = _chunkACQHZLRZcjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunkACQHZLRZcjs.MESSAGE_TYPE_MAP; exports.MSG_ANNOUNCE = _chunkACQHZLRZcjs.MSG_ANNOUNCE; exports.MSG_ANNOUNCE_CANCEL = _chunkACQHZLRZcjs.MSG_ANNOUNCE_CANCEL; exports.MSG_ANNOUNCE_ERROR = _chunkACQHZLRZcjs.MSG_ANNOUNCE_ERROR; exports.MSG_ANNOUNCE_OK = _chunkACQHZLRZcjs.MSG_ANNOUNCE_OK; exports.MSG_CLIENT_SETUP = _chunkACQHZLRZcjs.MSG_CLIENT_SETUP; exports.MSG_FETCH = _chunkACQHZLRZcjs.MSG_FETCH; exports.MSG_FETCH_CANCEL = _chunkACQHZLRZcjs.MSG_FETCH_CANCEL; exports.MSG_FETCH_ERROR = _chunkACQHZLRZcjs.MSG_FETCH_ERROR; exports.MSG_FETCH_OK = _chunkACQHZLRZcjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunkACQHZLRZcjs.MSG_GOAWAY; exports.MSG_MAX_REQUEST_ID = _chunkACQHZLRZcjs.MSG_MAX_REQUEST_ID; exports.MSG_PUBLISH = _chunkACQHZLRZcjs.MSG_PUBLISH; exports.MSG_PUBLISH_ERROR = _chunkACQHZLRZcjs.MSG_PUBLISH_ERROR; exports.MSG_PUBLISH_OK = _chunkACQHZLRZcjs.MSG_PUBLISH_OK; exports.MSG_REQUESTS_BLOCKED = _chunkACQHZLRZcjs.MSG_REQUESTS_BLOCKED; exports.MSG_SERVER_SETUP = _chunkACQHZLRZcjs.MSG_SERVER_SETUP; exports.MSG_SUBSCRIBE = _chunkACQHZLRZcjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_DONE = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_DONE; exports.MSG_SUBSCRIBE_ERROR = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_ERROR; exports.MSG_SUBSCRIBE_NAMESPACE = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_NAMESPACE; exports.MSG_SUBSCRIBE_NAMESPACE_ERROR = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_NAMESPACE_ERROR; exports.MSG_SUBSCRIBE_NAMESPACE_OK = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_NAMESPACE_OK; exports.MSG_SUBSCRIBE_OK = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_UPDATE = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_UPDATE; exports.MSG_TRACK_STATUS = _chunkACQHZLRZcjs.MSG_TRACK_STATUS; exports.MSG_TRACK_STATUS_ERROR = _chunkACQHZLRZcjs.MSG_TRACK_STATUS_ERROR; exports.MSG_TRACK_STATUS_OK = _chunkACQHZLRZcjs.MSG_TRACK_STATUS_OK; exports.MSG_UNANNOUNCE = _chunkACQHZLRZcjs.MSG_UNANNOUNCE; exports.MSG_UNSUBSCRIBE = _chunkACQHZLRZcjs.MSG_UNSUBSCRIBE; exports.MSG_UNSUBSCRIBE_NAMESPACE = _chunkACQHZLRZcjs.MSG_UNSUBSCRIBE_NAMESPACE; exports.PARAM_AUTHORIZATION_TOKEN = _chunkACQHZLRZcjs.PARAM_AUTHORIZATION_TOKEN; exports.PARAM_DELIVERY_TIMEOUT = _chunkACQHZLRZcjs.PARAM_DELIVERY_TIMEOUT; exports.PublishErrorCode = PublishErrorCode; exports.REDACTION_FILL = _chunk5IMHJIAZcjs.REDACTION_FILL; exports.SERVER_ONLY_MESSAGES = _chunkLV5C6MECcjs.SERVER_ONLY_MESSAGES; exports.SETUP_PARAM_MAX_REQUEST_ID = _chunkACQHZLRZcjs.SETUP_PARAM_MAX_REQUEST_ID; exports.SETUP_PARAM_PATH = _chunkACQHZLRZcjs.SETUP_PARAM_PATH; exports.SessionErrorCode = SessionErrorCode; exports.StreamResetErrorCode = StreamResetErrorCode; exports.SubscribeDoneStatusCode = SubscribeDoneStatusCode; exports.SubscribeErrorCode = SubscribeErrorCode; exports.SubscribeNamespaceErrorCode = SubscribeNamespaceErrorCode; exports.VARINT_FRAMED_MESSAGES = _chunkACQHZLRZcjs.VARINT_FRAMED_MESSAGES; exports.createDraft13Codec = _chunkACQHZLRZcjs.createDraft13Codec; exports.createDraft13SessionState = _chunkLV5C6MECcjs.createDraft13SessionState; exports.createStreamDecoder = _chunkACQHZLRZcjs.createStreamDecoder; exports.decodeDataStream = _chunkACQHZLRZcjs.decodeDataStream; exports.decodeDatagram = _chunkACQHZLRZcjs.decodeDatagram; exports.decodeFetchStream = _chunkACQHZLRZcjs.decodeFetchStream; exports.decodeMessage = _chunkACQHZLRZcjs.decodeMessage; exports.decodeSubgroupStream = _chunkACQHZLRZcjs.decodeSubgroupStream; exports.encodeDatagram = _chunkACQHZLRZcjs.encodeDatagram; exports.encodeFetchStream = _chunkACQHZLRZcjs.encodeFetchStream; exports.encodeMessage = _chunkACQHZLRZcjs.encodeMessage; exports.encodeSubgroupStream = _chunkACQHZLRZcjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkLV5C6MECcjs.getLegalIncoming; exports.getLegalOutgoing = _chunkLV5C6MECcjs.getLegalOutgoing; exports.redactAuthTokens = _chunkACQHZLRZcjs.redactAuthTokens;
|
package/dist/draft13.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-DsdLq4Qs.cjs';
|
|
2
|
+
export { D as Draft13Codec, c as createDraft13Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-DHzKAUCa.cjs';
|
|
2
3
|
import { b as Draft13DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft13MessageType, D as Draft13Message } from './types-DjxexghA.cjs';
|
|
3
4
|
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft13Announce, g as Draft13AnnounceCancel, h as Draft13AnnounceError, i as Draft13AnnounceOk, j as Draft13BaseMessage, k as Draft13ClientSetup, l as Draft13Fetch, m as Draft13FetchCancel, n as Draft13FetchError, o as Draft13FetchOk, p as Draft13GoAway, q as Draft13MaxRequestId, r as Draft13Params, s as Draft13Publish, t as Draft13PublishError, u as Draft13PublishOk, v as Draft13RequestsBlocked, w as Draft13ServerSetup, x as Draft13SetupParams, y as Draft13Subscribe, z as Draft13SubscribeDone, B as Draft13SubscribeError, C as Draft13SubscribeNamespace, E as Draft13SubscribeNamespaceError, G as Draft13SubscribeNamespaceOk, H as Draft13SubscribeOk, I as Draft13SubscribeUpdate, J as Draft13TrackStatus, K as Draft13TrackStatusError, L as Draft13TrackStatusOk, M as Draft13Unannounce, N as Draft13Unsubscribe, O as Draft13UnsubscribeNamespace, P as FetchObjectPayload, Q as FetchStreamHeader, R as JoiningFetch, T as LargestLocation, U as ObjectPayload, V as StandaloneFetch, W as SubgroupStreamHeader, X as UnknownParam } from './types-DjxexghA.cjs';
|
|
4
5
|
export { createDraft13SessionState } from './draft13-session.cjs';
|
|
@@ -14,6 +15,102 @@ declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>
|
|
|
14
15
|
declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
15
16
|
declare function decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft13DataStream>;
|
|
16
17
|
|
|
18
|
+
declare const SessionErrorCode: {
|
|
19
|
+
readonly NoError: 0n;
|
|
20
|
+
readonly InternalError: 1n;
|
|
21
|
+
readonly Unauthorized: 2n;
|
|
22
|
+
readonly ProtocolViolation: 3n;
|
|
23
|
+
readonly InvalidRequestId: 4n;
|
|
24
|
+
readonly DuplicateTrackAlias: 5n;
|
|
25
|
+
readonly KeyValueFormattingError: 6n;
|
|
26
|
+
readonly TooManyRequests: 7n;
|
|
27
|
+
readonly InvalidPath: 8n;
|
|
28
|
+
readonly MalformedPath: 9n;
|
|
29
|
+
readonly GoawayTimeout: 16n;
|
|
30
|
+
readonly ControlMessageTimeout: 17n;
|
|
31
|
+
readonly DataStreamTimeout: 18n;
|
|
32
|
+
readonly AuthTokenCacheOverflow: 19n;
|
|
33
|
+
readonly DuplicateAuthTokenAlias: 20n;
|
|
34
|
+
readonly VersionNegotiationFailed: 21n;
|
|
35
|
+
readonly MalformedAuthToken: 22n;
|
|
36
|
+
readonly UnknownAuthTokenAlias: 23n;
|
|
37
|
+
readonly ExpiredAuthToken: 24n;
|
|
38
|
+
};
|
|
39
|
+
type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
|
|
40
|
+
declare const SubscribeErrorCode: {
|
|
41
|
+
readonly InternalError: 0n;
|
|
42
|
+
readonly Unauthorized: 1n;
|
|
43
|
+
readonly Timeout: 2n;
|
|
44
|
+
readonly NotSupported: 3n;
|
|
45
|
+
readonly TrackDoesNotExist: 4n;
|
|
46
|
+
readonly InvalidRange: 5n;
|
|
47
|
+
readonly MalformedAuthToken: 16n;
|
|
48
|
+
readonly ExpiredAuthToken: 18n;
|
|
49
|
+
};
|
|
50
|
+
type SubscribeErrorCodeValue = (typeof SubscribeErrorCode)[keyof typeof SubscribeErrorCode];
|
|
51
|
+
declare const SubscribeDoneStatusCode: {
|
|
52
|
+
readonly InternalError: 0n;
|
|
53
|
+
readonly Unauthorized: 1n;
|
|
54
|
+
readonly TrackEnded: 2n;
|
|
55
|
+
readonly SubscriptionEnded: 3n;
|
|
56
|
+
readonly GoingAway: 4n;
|
|
57
|
+
readonly Expired: 5n;
|
|
58
|
+
readonly TooFarBehind: 6n;
|
|
59
|
+
readonly MalformedTrack: 7n;
|
|
60
|
+
};
|
|
61
|
+
type SubscribeDoneStatusCodeValue = (typeof SubscribeDoneStatusCode)[keyof typeof SubscribeDoneStatusCode];
|
|
62
|
+
declare const PublishErrorCode: {
|
|
63
|
+
readonly InternalError: 0n;
|
|
64
|
+
readonly Unauthorized: 1n;
|
|
65
|
+
readonly Timeout: 2n;
|
|
66
|
+
readonly NotSupported: 3n;
|
|
67
|
+
readonly Uninterested: 4n;
|
|
68
|
+
};
|
|
69
|
+
type PublishErrorCodeValue = (typeof PublishErrorCode)[keyof typeof PublishErrorCode];
|
|
70
|
+
declare const FetchErrorCode: {
|
|
71
|
+
readonly InternalError: 0n;
|
|
72
|
+
readonly Unauthorized: 1n;
|
|
73
|
+
readonly Timeout: 2n;
|
|
74
|
+
readonly NotSupported: 3n;
|
|
75
|
+
readonly TrackDoesNotExist: 4n;
|
|
76
|
+
readonly InvalidRange: 5n;
|
|
77
|
+
readonly NoObjects: 6n;
|
|
78
|
+
readonly InvalidJoiningRequestId: 7n;
|
|
79
|
+
readonly UnknownStatusInRange: 8n;
|
|
80
|
+
readonly MalformedTrack: 9n;
|
|
81
|
+
readonly MalformedAuthToken: 16n;
|
|
82
|
+
readonly ExpiredAuthToken: 18n;
|
|
83
|
+
};
|
|
84
|
+
type FetchErrorCodeValue = (typeof FetchErrorCode)[keyof typeof FetchErrorCode];
|
|
85
|
+
declare const AnnounceErrorCode: {
|
|
86
|
+
readonly InternalError: 0n;
|
|
87
|
+
readonly Unauthorized: 1n;
|
|
88
|
+
readonly Timeout: 2n;
|
|
89
|
+
readonly NotSupported: 3n;
|
|
90
|
+
readonly Uninterested: 4n;
|
|
91
|
+
readonly MalformedAuthToken: 16n;
|
|
92
|
+
readonly ExpiredAuthToken: 18n;
|
|
93
|
+
};
|
|
94
|
+
type AnnounceErrorCodeValue = (typeof AnnounceErrorCode)[keyof typeof AnnounceErrorCode];
|
|
95
|
+
declare const SubscribeNamespaceErrorCode: {
|
|
96
|
+
readonly InternalError: 0n;
|
|
97
|
+
readonly Unauthorized: 1n;
|
|
98
|
+
readonly Timeout: 2n;
|
|
99
|
+
readonly NotSupported: 3n;
|
|
100
|
+
readonly NamespacePrefixUnknown: 4n;
|
|
101
|
+
readonly NamespacePrefixOverlap: 5n;
|
|
102
|
+
readonly MalformedAuthToken: 16n;
|
|
103
|
+
readonly ExpiredAuthToken: 18n;
|
|
104
|
+
};
|
|
105
|
+
type SubscribeNamespaceErrorCodeValue = (typeof SubscribeNamespaceErrorCode)[keyof typeof SubscribeNamespaceErrorCode];
|
|
106
|
+
declare const StreamResetErrorCode: {
|
|
107
|
+
readonly InternalError: 0n;
|
|
108
|
+
readonly Cancelled: 1n;
|
|
109
|
+
readonly DeliveryTimeout: 2n;
|
|
110
|
+
readonly SessionClosed: 3n;
|
|
111
|
+
};
|
|
112
|
+
type StreamResetErrorCodeValue = (typeof StreamResetErrorCode)[keyof typeof StreamResetErrorCode];
|
|
113
|
+
|
|
17
114
|
declare const MSG_SUBSCRIBE_UPDATE = 2n;
|
|
18
115
|
declare const MSG_SUBSCRIBE = 3n;
|
|
19
116
|
declare const MSG_SUBSCRIBE_OK = 4n;
|
|
@@ -115,4 +212,4 @@ declare class Draft13SessionFSM {
|
|
|
115
212
|
|
|
116
213
|
declare const DRAFT_VERSION = 4278190093n;
|
|
117
214
|
|
|
118
|
-
export { AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft13DataStream, Draft13Message, Draft13MessageType, Draft13SessionFSM, FetchState, FetchStream, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_ANNOUNCE, MSG_ANNOUNCE_CANCEL, MSG_ANNOUNCE_ERROR, MSG_ANNOUNCE_OK, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_ERROR, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_DONE, 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_UNANNOUNCE, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_NAMESPACE, PARAM_AUTHORIZATION_TOKEN, PARAM_DELIVERY_TIMEOUT, SERVER_ONLY_MESSAGES, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_PATH, SessionPhase, SubgroupStream, SubscriptionState, TransitionResult, VARINT_FRAMED_MESSAGES, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
|
215
|
+
export { AnnounceErrorCode, type AnnounceErrorCodeValue, AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft13DataStream, Draft13Message, Draft13MessageType, Draft13SessionFSM, FetchErrorCode, type FetchErrorCodeValue, FetchState, FetchStream, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_ANNOUNCE, MSG_ANNOUNCE_CANCEL, MSG_ANNOUNCE_ERROR, MSG_ANNOUNCE_OK, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_ERROR, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_DONE, 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_UNANNOUNCE, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_NAMESPACE, PARAM_AUTHORIZATION_TOKEN, PARAM_DELIVERY_TIMEOUT, PublishErrorCode, type PublishErrorCodeValue, SERVER_ONLY_MESSAGES, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_PATH, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, StreamResetErrorCode, type StreamResetErrorCodeValue, SubgroupStream, SubscribeDoneStatusCode, type SubscribeDoneStatusCodeValue, SubscribeErrorCode, type SubscribeErrorCodeValue, SubscribeNamespaceErrorCode, type SubscribeNamespaceErrorCodeValue, SubscriptionState, TransitionResult, VARINT_FRAMED_MESSAGES, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|