@moqtap/codec 0.9.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 +173 -0
- package/dist/auth-redaction-DsdLq4Qs.d.cts +102 -0
- package/dist/auth-redaction-DsdLq4Qs.d.ts +102 -0
- package/dist/{chunk-PU2KV7VP.cjs → chunk-27K5BUAG.cjs} +485 -515
- package/dist/{chunk-BV6MITLO.js → chunk-3RNQMGKA.js} +365 -390
- package/dist/{chunk-2XH6PHXR.js → chunk-5AWIXOLB.js} +442 -467
- package/dist/{chunk-4XLYCT5Q.cjs → chunk-5IMHJIAZ.cjs} +52 -2
- package/dist/{chunk-TVSFDQYE.cjs → chunk-5JGZCKJO.cjs} +513 -531
- package/dist/{chunk-IADVBKEJ.cjs → chunk-73K4OSAN.cjs} +407 -432
- package/dist/{chunk-N2V7Z37J.js → chunk-7VQKRGRD.js} +19 -3
- package/dist/{chunk-UZO5Z2XT.cjs → chunk-A3UCQOIB.cjs} +490 -515
- package/dist/{chunk-JKMYAUGY.js → chunk-A7PDMVXM.js} +35 -11
- package/dist/{chunk-VZHL2U2N.cjs → chunk-A7VQO6YC.cjs} +54 -38
- package/dist/{chunk-KCH4BQXK.cjs → chunk-ACQHZLRZ.cjs} +73 -47
- package/dist/{chunk-H6DTAIWM.js → chunk-BBICOMW6.js} +47 -19
- package/dist/{chunk-MAXEHYVB.cjs → chunk-BNIUVOCJ.cjs} +554 -612
- package/dist/{chunk-QGIHC6BA.cjs → chunk-CNC6ANS4.cjs} +70 -46
- package/dist/{chunk-NH4L6NIY.js → chunk-FDLQSWHK.js} +437 -467
- package/dist/{chunk-IJAF6PAY.js → chunk-FFNOE4UR.js} +19 -3
- package/dist/{chunk-CZNW3R5E.cjs → chunk-GMENT63T.cjs} +54 -38
- package/dist/{chunk-7ENEWAMZ.cjs → chunk-HM7BLRVP.cjs} +305 -305
- package/dist/{chunk-XHAP2YST.js → chunk-HZONHFNO.js} +19 -3
- package/dist/{chunk-EVCPBFSR.cjs → chunk-ILYABWDK.cjs} +83 -55
- package/dist/{chunk-IDV2JYJ6.cjs → chunk-KRSFTZVO.cjs} +56 -40
- package/dist/{chunk-RIIA4ALQ.cjs → chunk-KSPH6KMH.cjs} +54 -38
- package/dist/{chunk-UA5XFP4O.cjs → chunk-KTY4LAUV.cjs} +485 -494
- package/dist/{chunk-RZTLQAKF.js → chunk-OJNLJT5D.js} +0 -1
- package/dist/{chunk-YJGOD3Y4.js → chunk-PJK2ZS3I.js} +492 -550
- package/dist/{chunk-TMXRYOBS.js → chunk-PSMZKHOC.js} +444 -453
- package/dist/{chunk-7RE6KSIY.cjs → chunk-Q5JQGHWY.cjs} +0 -1
- package/dist/{chunk-23KRITJ6.js → chunk-SQTUQY5E.js} +37 -11
- package/dist/{chunk-XQGEOFGE.js → chunk-WCRLAKDW.js} +253 -253
- package/dist/{chunk-KYVTM5VI.js → chunk-WL2YUEXH.js} +19 -3
- package/dist/{chunk-Q7NSUXXB.js → chunk-YCNIVZS7.js} +464 -482
- package/dist/{chunk-KLPWJU6W.js → chunk-YRZQVNZO.js} +50 -0
- package/dist/{codec-Bym-K2q2.d.cts → codec-76xzrLTL.d.cts} +21 -2
- package/dist/{codec-BKsVu3Fr.d.ts → codec-8p40WdLg.d.ts} +21 -2
- package/dist/{codec-Dl_QIXMz.d.ts → codec-BN2Bu0KI.d.ts} +20 -1
- package/dist/{codec-D4RvFQmu.d.ts → codec-Bb6GKTrv.d.ts} +21 -2
- package/dist/{codec-DAyiF5sq.d.cts → codec-BgpfHoAd.d.cts} +21 -2
- package/dist/{codec-CA6nbbEk.d.ts → codec-BkheTXO7.d.ts} +21 -2
- package/dist/{codec-DchsPfr3.d.cts → codec-BwVDkokh.d.cts} +21 -2
- package/dist/{codec-CgZdadPt.d.cts → codec-C5s1eBJX.d.cts} +21 -2
- package/dist/codec-CM5yd6n3.d.ts +38 -0
- package/dist/{codec-DJmqoIsp.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-CSBFdPgP.d.cts → codec-DELe00w_.d.cts} +21 -2
- package/dist/{codec-C_xxsbKy.d.cts → codec-DHzKAUCa.d.cts} +21 -2
- package/dist/{codec--CVeqGQv.d.ts → codec-DdVBtvx7.d.ts} +20 -1
- package/dist/{codec-CviAa4lp.d.ts → codec-DlxGuYMv.d.ts} +21 -2
- package/dist/{codec-BNy5syCU.d.ts → codec-DxtgPxJS.d.ts} +20 -1
- package/dist/{codec-CtvFK4aV.d.cts → codec-GAY4lybi.d.cts} +21 -2
- package/dist/{codec-Cfo_z5ET.d.cts → codec-I8u2pfS4.d.cts} +20 -1
- package/dist/{codec-vddqy0KY.d.cts → codec-XLrnreeu.d.cts} +21 -2
- package/dist/{codec-O-1Js7h4.d.ts → codec-c0YEwwWn.d.ts} +21 -2
- package/dist/{codec-Cl73EfRW.d.ts → codec-ejDu-va6.d.ts} +21 -2
- package/dist/{codec-C006F75E.d.ts → codec-kaBUzdpV.d.ts} +21 -2
- package/dist/{codec-C5evFHL-.d.ts → codec-mVYqkIUF.d.ts} +21 -2
- package/dist/{codec-BMwgZIgG.d.ts → codec-qSbO5nOa.d.ts} +21 -2
- package/dist/{codec-BQa6Qsav.d.ts → codec-yYKGOipj.d.ts} +21 -2
- package/dist/{codec-DzLvG8Wb.d.cts → codec-zfzg9uiy.d.cts} +21 -2
- 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-session.d.cts +1 -1
- package/dist/draft11-session.d.ts +1 -1
- package/dist/draft11.cjs +104 -3
- package/dist/draft11.d.cts +100 -4
- package/dist/draft11.d.ts +100 -4
- package/dist/draft11.js +105 -4
- package/dist/draft12-session.d.cts +1 -1
- package/dist/draft12-session.d.ts +1 -1
- package/dist/draft12.cjs +113 -3
- package/dist/draft12.d.cts +109 -4
- package/dist/draft12.d.ts +109 -4
- package/dist/draft12.js +114 -4
- package/dist/draft13-session.d.cts +1 -1
- package/dist/draft13-session.d.ts +1 -1
- package/dist/draft13.cjs +105 -3
- package/dist/draft13.d.cts +101 -4
- package/dist/draft13.d.ts +101 -4
- package/dist/draft13.js +106 -4
- package/dist/draft14-session.d.cts +1 -1
- package/dist/draft14-session.d.ts +1 -1
- package/dist/draft14.cjs +107 -3
- package/dist/draft14.d.cts +103 -30
- package/dist/draft14.d.ts +103 -30
- 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 +25 -24
- package/dist/index.d.ts +25 -24
- package/dist/index.js +15 -15
- package/dist/session.cjs +2 -2
- package/dist/session.d.cts +10 -10
- package/dist/session.d.ts +10 -10
- package/dist/session.js +1 -1
- package/dist/{types-zHgCS6o5.d.cts → types-Btp416jt.d.cts} +15 -7
- package/dist/{types-zHgCS6o5.d.ts → types-Btp416jt.d.ts} +15 -7
- package/dist/{types-Cm9fjeYC.d.cts → types-BxTL1NXw.d.cts} +9 -2
- package/dist/{types-Cm9fjeYC.d.ts → types-BxTL1NXw.d.ts} +9 -2
- package/dist/{types-Bio-91Rt.d.cts → types-CI_SX4Xe.d.cts} +2 -2
- package/dist/{types-Bio-91Rt.d.ts → types-CI_SX4Xe.d.ts} +2 -2
- package/dist/{types-HI_bbXka.d.cts → types-CmqT0jUf.d.cts} +1 -1
- package/dist/{types-HI_bbXka.d.ts → types-CmqT0jUf.d.ts} +1 -1
- package/dist/{types-CPaYBsMG.d.cts → types-CuibHYcf.d.cts} +9 -2
- package/dist/{types-CPaYBsMG.d.ts → types-CuibHYcf.d.ts} +9 -2
- package/dist/{types-CWCQwuvy.d.cts → types-CwN7AEoL.d.cts} +24 -12
- package/dist/{types-CWCQwuvy.d.ts → types-CwN7AEoL.d.ts} +24 -12
- package/dist/{types-Ck45Ex5S.d.cts → types-D0kTgUuL.d.cts} +1 -1
- package/dist/{types-Ck45Ex5S.d.ts → types-D0kTgUuL.d.ts} +1 -1
- package/dist/{types-D9eiB_9A.d.cts → types-DAnalt5K.d.cts} +9 -2
- package/dist/{types-D9eiB_9A.d.ts → types-DAnalt5K.d.ts} +9 -2
- package/dist/{types-CXlSn0I9.d.cts → types-DjxexghA.d.cts} +2 -2
- package/dist/{types-CXlSn0I9.d.ts → types-DjxexghA.d.ts} +2 -2
- package/dist/{types-Cqp10JtB.d.cts → types-DxXNP32l.d.cts} +10 -2
- package/dist/{types-Cqp10JtB.d.ts → types-DxXNP32l.d.ts} +10 -2
- 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 +71 -8
- package/src/drafts/draft11/error-codes.ts +106 -0
- package/src/drafts/draft11/index.ts +23 -0
- package/src/drafts/draft11/types.ts +1 -1
- package/src/drafts/draft12/codec.ts +83 -16
- package/src/drafts/draft12/error-codes.ts +116 -0
- package/src/drafts/draft12/index.ts +25 -0
- package/src/drafts/draft12/types.ts +2 -2
- package/src/drafts/draft13/codec.ts +75 -11
- package/src/drafts/draft13/error-codes.ts +107 -0
- package/src/drafts/draft13/index.ts +23 -0
- package/src/drafts/draft13/types.ts +3 -3
- package/src/drafts/draft14/codec.ts +79 -12
- 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/draft14/types.ts +1 -1
- package/src/drafts/draft15/codec.ts +71 -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 +9 -2
- package/src/drafts/draft16/codec.ts +149 -49
- 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 +24 -10
- package/src/drafts/draft17/codec.ts +77 -10
- package/src/drafts/draft17/data-streams.ts +567 -488
- package/src/drafts/draft17/index.ts +15 -0
- package/src/drafts/draft17/types.ts +9 -2
- package/src/drafts/draft18/codec.ts +70 -7
- package/src/drafts/draft18/data-streams.ts +570 -482
- package/src/drafts/draft18/index.ts +3 -0
- package/src/drafts/draft18/types.ts +18 -10
- package/src/drafts/draft19/codec.ts +95 -23
- 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 +32 -18
- package/src/drafts/draft20/codec.ts +115 -36
- package/src/drafts/draft20/data-streams.ts +610 -563
- package/src/drafts/draft20/index.ts +3 -0
- package/src/drafts/draft20/types.ts +31 -13
- package/dist/codec-BJ7BHuiZ.d.ts +0 -18
- package/dist/codec-C6Mx4bwz.d.cts +0 -18
package/dist/draft10.js
CHANGED
|
@@ -44,8 +44,9 @@ import {
|
|
|
44
44
|
encodeDatagramStatus,
|
|
45
45
|
encodeFetchStream,
|
|
46
46
|
encodeMessage,
|
|
47
|
-
encodeSubgroupStream
|
|
48
|
-
|
|
47
|
+
encodeSubgroupStream,
|
|
48
|
+
redactAuthTokens
|
|
49
|
+
} from "./chunk-7VQKRGRD.js";
|
|
49
50
|
import {
|
|
50
51
|
BIDIRECTIONAL_MESSAGES,
|
|
51
52
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -56,16 +57,81 @@ import {
|
|
|
56
57
|
getLegalIncoming,
|
|
57
58
|
getLegalOutgoing
|
|
58
59
|
} from "./chunk-WRHGCVYN.js";
|
|
59
|
-
import
|
|
60
|
+
import {
|
|
61
|
+
REDACTION_FILL
|
|
62
|
+
} from "./chunk-YRZQVNZO.js";
|
|
63
|
+
|
|
64
|
+
// src/drafts/draft10/error-codes.ts
|
|
65
|
+
var SessionErrorCode = {
|
|
66
|
+
NoError: 0x0n,
|
|
67
|
+
InternalError: 0x1n,
|
|
68
|
+
Unauthorized: 0x2n,
|
|
69
|
+
ProtocolViolation: 0x3n,
|
|
70
|
+
DuplicateTrackAlias: 0x4n,
|
|
71
|
+
ParameterLengthMismatch: 0x5n,
|
|
72
|
+
TooManySubscribes: 0x6n,
|
|
73
|
+
GoawayTimeout: 0x10n,
|
|
74
|
+
ControlMessageTimeout: 0x11n,
|
|
75
|
+
DataStreamTimeout: 0x12n
|
|
76
|
+
};
|
|
77
|
+
var SubscribeErrorCode = {
|
|
78
|
+
InternalError: 0x0n,
|
|
79
|
+
Unauthorized: 0x1n,
|
|
80
|
+
Timeout: 0x2n,
|
|
81
|
+
NotSupported: 0x3n,
|
|
82
|
+
TrackDoesNotExist: 0x4n,
|
|
83
|
+
InvalidRange: 0x5n,
|
|
84
|
+
RetryTrackAlias: 0x6n
|
|
85
|
+
};
|
|
86
|
+
var SubscribeDoneStatusCode = {
|
|
87
|
+
InternalError: 0x0n,
|
|
88
|
+
Unauthorized: 0x1n,
|
|
89
|
+
TrackEnded: 0x2n,
|
|
90
|
+
SubscriptionEnded: 0x3n,
|
|
91
|
+
GoingAway: 0x4n,
|
|
92
|
+
Expired: 0x5n,
|
|
93
|
+
TooFarBehind: 0x6n
|
|
94
|
+
};
|
|
95
|
+
var FetchErrorCode = {
|
|
96
|
+
InternalError: 0x0n,
|
|
97
|
+
Unauthorized: 0x1n,
|
|
98
|
+
Timeout: 0x2n,
|
|
99
|
+
NotSupported: 0x3n,
|
|
100
|
+
TrackDoesNotExist: 0x4n,
|
|
101
|
+
InvalidRange: 0x5n
|
|
102
|
+
};
|
|
103
|
+
var AnnounceErrorCode = {
|
|
104
|
+
InternalError: 0x0n,
|
|
105
|
+
Unauthorized: 0x1n,
|
|
106
|
+
Timeout: 0x2n,
|
|
107
|
+
NotSupported: 0x3n,
|
|
108
|
+
Uninterested: 0x4n
|
|
109
|
+
};
|
|
110
|
+
var SubscribeAnnouncesErrorCode = {
|
|
111
|
+
InternalError: 0x0n,
|
|
112
|
+
Unauthorized: 0x1n,
|
|
113
|
+
Timeout: 0x2n,
|
|
114
|
+
NotSupported: 0x3n,
|
|
115
|
+
NamespacePrefixUnknown: 0x4n
|
|
116
|
+
};
|
|
117
|
+
var TrackStatusCode = {
|
|
118
|
+
InProgress: 0x00n,
|
|
119
|
+
TrackDoesNotExist: 0x01n,
|
|
120
|
+
NotYetBegun: 0x02n,
|
|
121
|
+
Finished: 0x03n,
|
|
122
|
+
RelayStatusUnavailable: 0x04n
|
|
123
|
+
};
|
|
60
124
|
|
|
61
125
|
// src/drafts/draft10/index.ts
|
|
62
126
|
var DRAFT_VERSION = 0xff00000an;
|
|
63
127
|
export {
|
|
128
|
+
AnnounceErrorCode,
|
|
64
129
|
BIDIRECTIONAL_MESSAGES,
|
|
65
130
|
CLIENT_ONLY_MESSAGES,
|
|
66
131
|
CONTROL_MESSAGES,
|
|
67
132
|
DRAFT_VERSION,
|
|
68
133
|
Draft10SessionFSM,
|
|
134
|
+
FetchErrorCode,
|
|
69
135
|
MESSAGE_ID_MAP,
|
|
70
136
|
MESSAGE_TYPE_MAP,
|
|
71
137
|
MSG_ANNOUNCE,
|
|
@@ -97,9 +163,15 @@ export {
|
|
|
97
163
|
PARAM_AUTHORIZATION_INFO,
|
|
98
164
|
PARAM_DELIVERY_TIMEOUT,
|
|
99
165
|
PARAM_MAX_CACHE_DURATION,
|
|
166
|
+
REDACTION_FILL,
|
|
100
167
|
SERVER_ONLY_MESSAGES,
|
|
101
168
|
SETUP_PARAM_MAX_SUBSCRIBE_ID,
|
|
102
169
|
SETUP_PARAM_PATH,
|
|
170
|
+
SessionErrorCode,
|
|
171
|
+
SubscribeAnnouncesErrorCode,
|
|
172
|
+
SubscribeDoneStatusCode,
|
|
173
|
+
SubscribeErrorCode,
|
|
174
|
+
TrackStatusCode,
|
|
103
175
|
createDraft10Codec,
|
|
104
176
|
createDraft10SessionState,
|
|
105
177
|
createStreamDecoder,
|
|
@@ -115,5 +187,6 @@ export {
|
|
|
115
187
|
encodeMessage,
|
|
116
188
|
encodeSubgroupStream,
|
|
117
189
|
getLegalIncoming,
|
|
118
|
-
getLegalOutgoing
|
|
190
|
+
getLegalOutgoing,
|
|
191
|
+
redactAuthTokens
|
|
119
192
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
2
|
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
3
|
-
import { D as Draft11Message, a as Draft11MessageType } from './types-
|
|
3
|
+
import { D as Draft11Message, a as Draft11MessageType } from './types-D0kTgUuL.cjs';
|
|
4
4
|
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft11SessionState(role: SessionStateOptionsRole): SessionState<Draft11Message, Draft11MessageType>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
2
|
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
3
|
-
import { D as Draft11Message, a as Draft11MessageType } from './types-
|
|
3
|
+
import { D as Draft11Message, a as Draft11MessageType } from './types-D0kTgUuL.js';
|
|
4
4
|
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft11SessionState(role: SessionStateOptionsRole): SessionState<Draft11Message, Draft11MessageType>;
|
package/dist/draft11.cjs
CHANGED
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
|
|
46
|
+
var _chunkCNC6ANS4cjs = require('./chunk-CNC6ANS4.cjs');
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
|
|
@@ -53,7 +54,97 @@ var _chunkQGIHC6BAcjs = require('./chunk-QGIHC6BA.cjs');
|
|
|
53
54
|
|
|
54
55
|
|
|
55
56
|
var _chunkJ3XCPBW3cjs = require('./chunk-J3XCPBW3.cjs');
|
|
56
|
-
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
var _chunk5IMHJIAZcjs = require('./chunk-5IMHJIAZ.cjs');
|
|
60
|
+
|
|
61
|
+
// src/drafts/draft11/error-codes.ts
|
|
62
|
+
var SessionErrorCode = {
|
|
63
|
+
NoError: 0x0n,
|
|
64
|
+
InternalError: 0x1n,
|
|
65
|
+
Unauthorized: 0x2n,
|
|
66
|
+
ProtocolViolation: 0x3n,
|
|
67
|
+
InvalidRequestId: 0x4n,
|
|
68
|
+
DuplicateTrackAlias: 0x5n,
|
|
69
|
+
KeyValueFormattingError: 0x6n,
|
|
70
|
+
TooManyRequests: 0x7n,
|
|
71
|
+
InvalidPath: 0x8n,
|
|
72
|
+
MalformedPath: 0x9n,
|
|
73
|
+
GoawayTimeout: 0x10n,
|
|
74
|
+
ControlMessageTimeout: 0x11n,
|
|
75
|
+
DataStreamTimeout: 0x12n,
|
|
76
|
+
AuthTokenCacheOverflow: 0x13n,
|
|
77
|
+
DuplicateAuthTokenAlias: 0x14n,
|
|
78
|
+
VersionNegotiationFailed: 0x15n
|
|
79
|
+
};
|
|
80
|
+
var SubscribeErrorCode = {
|
|
81
|
+
InternalError: 0x0n,
|
|
82
|
+
Unauthorized: 0x1n,
|
|
83
|
+
Timeout: 0x2n,
|
|
84
|
+
NotSupported: 0x3n,
|
|
85
|
+
TrackDoesNotExist: 0x4n,
|
|
86
|
+
InvalidRange: 0x5n,
|
|
87
|
+
RetryTrackAlias: 0x6n,
|
|
88
|
+
MalformedAuthToken: 0x10n,
|
|
89
|
+
UnknownAuthTokenAlias: 0x11n,
|
|
90
|
+
ExpiredAuthToken: 0x12n
|
|
91
|
+
};
|
|
92
|
+
var SubscribeDoneStatusCode = {
|
|
93
|
+
InternalError: 0x0n,
|
|
94
|
+
Unauthorized: 0x1n,
|
|
95
|
+
TrackEnded: 0x2n,
|
|
96
|
+
SubscriptionEnded: 0x3n,
|
|
97
|
+
GoingAway: 0x4n,
|
|
98
|
+
Expired: 0x5n,
|
|
99
|
+
TooFarBehind: 0x6n
|
|
100
|
+
};
|
|
101
|
+
var FetchErrorCode = {
|
|
102
|
+
InternalError: 0x0n,
|
|
103
|
+
Unauthorized: 0x1n,
|
|
104
|
+
Timeout: 0x2n,
|
|
105
|
+
NotSupported: 0x3n,
|
|
106
|
+
TrackDoesNotExist: 0x4n,
|
|
107
|
+
InvalidRange: 0x5n,
|
|
108
|
+
NoObjects: 0x6n,
|
|
109
|
+
InvalidJoiningSubscribeId: 0x7n,
|
|
110
|
+
MalformedAuthToken: 0x10n,
|
|
111
|
+
UnknownAuthTokenAlias: 0x11n,
|
|
112
|
+
ExpiredAuthToken: 0x12n
|
|
113
|
+
};
|
|
114
|
+
var AnnounceErrorCode = {
|
|
115
|
+
InternalError: 0x0n,
|
|
116
|
+
Unauthorized: 0x1n,
|
|
117
|
+
Timeout: 0x2n,
|
|
118
|
+
NotSupported: 0x3n,
|
|
119
|
+
Uninterested: 0x4n,
|
|
120
|
+
MalformedAuthToken: 0x10n,
|
|
121
|
+
UnknownAuthTokenAlias: 0x11n,
|
|
122
|
+
ExpiredAuthToken: 0x12n
|
|
123
|
+
};
|
|
124
|
+
var SubscribeAnnouncesErrorCode = {
|
|
125
|
+
InternalError: 0x0n,
|
|
126
|
+
Unauthorized: 0x1n,
|
|
127
|
+
Timeout: 0x2n,
|
|
128
|
+
NotSupported: 0x3n,
|
|
129
|
+
NamespacePrefixUnknown: 0x4n,
|
|
130
|
+
NamespacePrefixOverlap: 0x5n,
|
|
131
|
+
MalformedAuthToken: 0x10n,
|
|
132
|
+
UnknownAuthTokenAlias: 0x11n,
|
|
133
|
+
ExpiredAuthToken: 0x12n
|
|
134
|
+
};
|
|
135
|
+
var TrackStatusCode = {
|
|
136
|
+
InProgress: 0x00n,
|
|
137
|
+
TrackDoesNotExist: 0x01n,
|
|
138
|
+
NotYetBegun: 0x02n,
|
|
139
|
+
Finished: 0x03n,
|
|
140
|
+
RelayStatusUnavailable: 0x04n
|
|
141
|
+
};
|
|
142
|
+
var StreamResetErrorCode = {
|
|
143
|
+
InternalError: 0x0n,
|
|
144
|
+
Cancelled: 0x1n,
|
|
145
|
+
DeliveryTimeout: 0x2n,
|
|
146
|
+
SessionClosed: 0x3n
|
|
147
|
+
};
|
|
57
148
|
|
|
58
149
|
// src/drafts/draft11/index.ts
|
|
59
150
|
var DRAFT_VERSION = 0xff00000bn;
|
|
@@ -110,4 +201,14 @@ var DRAFT_VERSION = 0xff00000bn;
|
|
|
110
201
|
|
|
111
202
|
|
|
112
203
|
|
|
113
|
-
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
exports.AnnounceErrorCode = AnnounceErrorCode; exports.BIDIRECTIONAL_MESSAGES = _chunkJ3XCPBW3cjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkJ3XCPBW3cjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkJ3XCPBW3cjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.Draft11SessionFSM = _chunkJ3XCPBW3cjs.Draft11SessionFSM; exports.FetchErrorCode = FetchErrorCode; exports.MESSAGE_ID_MAP = _chunkCNC6ANS4cjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunkCNC6ANS4cjs.MESSAGE_TYPE_MAP; exports.MSG_ANNOUNCE = _chunkCNC6ANS4cjs.MSG_ANNOUNCE; exports.MSG_ANNOUNCE_CANCEL = _chunkCNC6ANS4cjs.MSG_ANNOUNCE_CANCEL; exports.MSG_ANNOUNCE_ERROR = _chunkCNC6ANS4cjs.MSG_ANNOUNCE_ERROR; exports.MSG_ANNOUNCE_OK = _chunkCNC6ANS4cjs.MSG_ANNOUNCE_OK; exports.MSG_CLIENT_SETUP = _chunkCNC6ANS4cjs.MSG_CLIENT_SETUP; exports.MSG_FETCH = _chunkCNC6ANS4cjs.MSG_FETCH; exports.MSG_FETCH_CANCEL = _chunkCNC6ANS4cjs.MSG_FETCH_CANCEL; exports.MSG_FETCH_ERROR = _chunkCNC6ANS4cjs.MSG_FETCH_ERROR; exports.MSG_FETCH_OK = _chunkCNC6ANS4cjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunkCNC6ANS4cjs.MSG_GOAWAY; exports.MSG_MAX_REQUEST_ID = _chunkCNC6ANS4cjs.MSG_MAX_REQUEST_ID; exports.MSG_REQUESTS_BLOCKED = _chunkCNC6ANS4cjs.MSG_REQUESTS_BLOCKED; exports.MSG_SERVER_SETUP = _chunkCNC6ANS4cjs.MSG_SERVER_SETUP; exports.MSG_SUBSCRIBE = _chunkCNC6ANS4cjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_ANNOUNCES = _chunkCNC6ANS4cjs.MSG_SUBSCRIBE_ANNOUNCES; exports.MSG_SUBSCRIBE_ANNOUNCES_ERROR = _chunkCNC6ANS4cjs.MSG_SUBSCRIBE_ANNOUNCES_ERROR; exports.MSG_SUBSCRIBE_ANNOUNCES_OK = _chunkCNC6ANS4cjs.MSG_SUBSCRIBE_ANNOUNCES_OK; exports.MSG_SUBSCRIBE_DONE = _chunkCNC6ANS4cjs.MSG_SUBSCRIBE_DONE; exports.MSG_SUBSCRIBE_ERROR = _chunkCNC6ANS4cjs.MSG_SUBSCRIBE_ERROR; exports.MSG_SUBSCRIBE_OK = _chunkCNC6ANS4cjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_UPDATE = _chunkCNC6ANS4cjs.MSG_SUBSCRIBE_UPDATE; exports.MSG_TRACK_STATUS = _chunkCNC6ANS4cjs.MSG_TRACK_STATUS; exports.MSG_TRACK_STATUS_REQUEST = _chunkCNC6ANS4cjs.MSG_TRACK_STATUS_REQUEST; exports.MSG_UNANNOUNCE = _chunkCNC6ANS4cjs.MSG_UNANNOUNCE; exports.MSG_UNSUBSCRIBE = _chunkCNC6ANS4cjs.MSG_UNSUBSCRIBE; exports.MSG_UNSUBSCRIBE_ANNOUNCES = _chunkCNC6ANS4cjs.MSG_UNSUBSCRIBE_ANNOUNCES; exports.PARAM_AUTHORIZATION_TOKEN = _chunkCNC6ANS4cjs.PARAM_AUTHORIZATION_TOKEN; exports.PARAM_DELIVERY_TIMEOUT = _chunkCNC6ANS4cjs.PARAM_DELIVERY_TIMEOUT; exports.REDACTION_FILL = _chunk5IMHJIAZcjs.REDACTION_FILL; exports.SERVER_ONLY_MESSAGES = _chunkJ3XCPBW3cjs.SERVER_ONLY_MESSAGES; exports.SETUP_PARAM_MAX_REQUEST_ID = _chunkCNC6ANS4cjs.SETUP_PARAM_MAX_REQUEST_ID; exports.SETUP_PARAM_PATH = _chunkCNC6ANS4cjs.SETUP_PARAM_PATH; exports.SessionErrorCode = SessionErrorCode; exports.StreamResetErrorCode = StreamResetErrorCode; exports.SubscribeAnnouncesErrorCode = SubscribeAnnouncesErrorCode; exports.SubscribeDoneStatusCode = SubscribeDoneStatusCode; exports.SubscribeErrorCode = SubscribeErrorCode; exports.TrackStatusCode = TrackStatusCode; exports.createDraft11Codec = _chunkCNC6ANS4cjs.createDraft11Codec; exports.createDraft11SessionState = _chunkJ3XCPBW3cjs.createDraft11SessionState; exports.createStreamDecoder = _chunkCNC6ANS4cjs.createStreamDecoder; exports.decodeDataStream = _chunkCNC6ANS4cjs.decodeDataStream; exports.decodeDatagram = _chunkCNC6ANS4cjs.decodeDatagram; exports.decodeFetchStream = _chunkCNC6ANS4cjs.decodeFetchStream; exports.decodeMessage = _chunkCNC6ANS4cjs.decodeMessage; exports.decodeSubgroupStream = _chunkCNC6ANS4cjs.decodeSubgroupStream; exports.encodeDatagram = _chunkCNC6ANS4cjs.encodeDatagram; exports.encodeFetchStream = _chunkCNC6ANS4cjs.encodeFetchStream; exports.encodeMessage = _chunkCNC6ANS4cjs.encodeMessage; exports.encodeSubgroupStream = _chunkCNC6ANS4cjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkJ3XCPBW3cjs.getLegalIncoming; exports.getLegalOutgoing = _chunkJ3XCPBW3cjs.getLegalOutgoing; exports.redactAuthTokens = _chunkCNC6ANS4cjs.redactAuthTokens;
|
package/dist/draft11.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 Draft11Codec, c as createDraft11Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-BgpfHoAd.cjs';
|
|
3
|
+
import { b as Draft11DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft11MessageType, D as Draft11Message } from './types-D0kTgUuL.cjs';
|
|
4
|
+
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft11Announce, g as Draft11AnnounceCancel, h as Draft11AnnounceError, i as Draft11AnnounceOk, j as Draft11BaseMessage, k as Draft11ClientSetup, l as Draft11Fetch, m as Draft11FetchCancel, n as Draft11FetchError, o as Draft11FetchOk, p as Draft11GoAway, q as Draft11MaxRequestId, r as Draft11Params, s as Draft11RequestsBlocked, t as Draft11ServerSetup, u as Draft11SetupParams, v as Draft11Subscribe, w as Draft11SubscribeAnnounces, x as Draft11SubscribeAnnouncesError, y as Draft11SubscribeAnnouncesOk, z as Draft11SubscribeDone, B as Draft11SubscribeError, C as Draft11SubscribeOk, E as Draft11SubscribeUpdate, G as Draft11TrackStatus, H as Draft11TrackStatusRequest, I as Draft11Unannounce, J as Draft11Unsubscribe, K as Draft11UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as LargestLocation, P as ObjectPayload, Q as StandaloneFetch, R as SubgroupStreamHeader, U as UnknownParam } from './types-D0kTgUuL.cjs';
|
|
4
5
|
export { createDraft11SessionState } from './draft11-session.cjs';
|
|
5
6
|
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-B9idsih-.cjs';
|
|
6
7
|
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-B9idsih-.cjs';
|
|
@@ -14,6 +15,101 @@ 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<Draft11DataStream>;
|
|
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
|
+
};
|
|
36
|
+
type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
|
|
37
|
+
declare const SubscribeErrorCode: {
|
|
38
|
+
readonly InternalError: 0n;
|
|
39
|
+
readonly Unauthorized: 1n;
|
|
40
|
+
readonly Timeout: 2n;
|
|
41
|
+
readonly NotSupported: 3n;
|
|
42
|
+
readonly TrackDoesNotExist: 4n;
|
|
43
|
+
readonly InvalidRange: 5n;
|
|
44
|
+
readonly RetryTrackAlias: 6n;
|
|
45
|
+
readonly MalformedAuthToken: 16n;
|
|
46
|
+
readonly UnknownAuthTokenAlias: 17n;
|
|
47
|
+
readonly ExpiredAuthToken: 18n;
|
|
48
|
+
};
|
|
49
|
+
type SubscribeErrorCodeValue = (typeof SubscribeErrorCode)[keyof typeof SubscribeErrorCode];
|
|
50
|
+
declare const SubscribeDoneStatusCode: {
|
|
51
|
+
readonly InternalError: 0n;
|
|
52
|
+
readonly Unauthorized: 1n;
|
|
53
|
+
readonly TrackEnded: 2n;
|
|
54
|
+
readonly SubscriptionEnded: 3n;
|
|
55
|
+
readonly GoingAway: 4n;
|
|
56
|
+
readonly Expired: 5n;
|
|
57
|
+
readonly TooFarBehind: 6n;
|
|
58
|
+
};
|
|
59
|
+
type SubscribeDoneStatusCodeValue = (typeof SubscribeDoneStatusCode)[keyof typeof SubscribeDoneStatusCode];
|
|
60
|
+
declare const FetchErrorCode: {
|
|
61
|
+
readonly InternalError: 0n;
|
|
62
|
+
readonly Unauthorized: 1n;
|
|
63
|
+
readonly Timeout: 2n;
|
|
64
|
+
readonly NotSupported: 3n;
|
|
65
|
+
readonly TrackDoesNotExist: 4n;
|
|
66
|
+
readonly InvalidRange: 5n;
|
|
67
|
+
readonly NoObjects: 6n;
|
|
68
|
+
readonly InvalidJoiningSubscribeId: 7n;
|
|
69
|
+
readonly MalformedAuthToken: 16n;
|
|
70
|
+
readonly UnknownAuthTokenAlias: 17n;
|
|
71
|
+
readonly ExpiredAuthToken: 18n;
|
|
72
|
+
};
|
|
73
|
+
type FetchErrorCodeValue = (typeof FetchErrorCode)[keyof typeof FetchErrorCode];
|
|
74
|
+
declare const AnnounceErrorCode: {
|
|
75
|
+
readonly InternalError: 0n;
|
|
76
|
+
readonly Unauthorized: 1n;
|
|
77
|
+
readonly Timeout: 2n;
|
|
78
|
+
readonly NotSupported: 3n;
|
|
79
|
+
readonly Uninterested: 4n;
|
|
80
|
+
readonly MalformedAuthToken: 16n;
|
|
81
|
+
readonly UnknownAuthTokenAlias: 17n;
|
|
82
|
+
readonly ExpiredAuthToken: 18n;
|
|
83
|
+
};
|
|
84
|
+
type AnnounceErrorCodeValue = (typeof AnnounceErrorCode)[keyof typeof AnnounceErrorCode];
|
|
85
|
+
declare const SubscribeAnnouncesErrorCode: {
|
|
86
|
+
readonly InternalError: 0n;
|
|
87
|
+
readonly Unauthorized: 1n;
|
|
88
|
+
readonly Timeout: 2n;
|
|
89
|
+
readonly NotSupported: 3n;
|
|
90
|
+
readonly NamespacePrefixUnknown: 4n;
|
|
91
|
+
readonly NamespacePrefixOverlap: 5n;
|
|
92
|
+
readonly MalformedAuthToken: 16n;
|
|
93
|
+
readonly UnknownAuthTokenAlias: 17n;
|
|
94
|
+
readonly ExpiredAuthToken: 18n;
|
|
95
|
+
};
|
|
96
|
+
type SubscribeAnnouncesErrorCodeValue = (typeof SubscribeAnnouncesErrorCode)[keyof typeof SubscribeAnnouncesErrorCode];
|
|
97
|
+
declare const TrackStatusCode: {
|
|
98
|
+
readonly InProgress: 0n;
|
|
99
|
+
readonly TrackDoesNotExist: 1n;
|
|
100
|
+
readonly NotYetBegun: 2n;
|
|
101
|
+
readonly Finished: 3n;
|
|
102
|
+
readonly RelayStatusUnavailable: 4n;
|
|
103
|
+
};
|
|
104
|
+
type TrackStatusCodeValue = (typeof TrackStatusCode)[keyof typeof TrackStatusCode];
|
|
105
|
+
declare const StreamResetErrorCode: {
|
|
106
|
+
readonly InternalError: 0n;
|
|
107
|
+
readonly Cancelled: 1n;
|
|
108
|
+
readonly DeliveryTimeout: 2n;
|
|
109
|
+
readonly SessionClosed: 3n;
|
|
110
|
+
};
|
|
111
|
+
type StreamResetErrorCodeValue = (typeof StreamResetErrorCode)[keyof typeof StreamResetErrorCode];
|
|
112
|
+
|
|
17
113
|
declare const MSG_SUBSCRIBE_UPDATE = 2n;
|
|
18
114
|
declare const MSG_SUBSCRIBE = 3n;
|
|
19
115
|
declare const MSG_SUBSCRIBE_OK = 4n;
|
|
@@ -106,4 +202,4 @@ declare class Draft11SessionFSM {
|
|
|
106
202
|
|
|
107
203
|
declare const DRAFT_VERSION = 4278190091n;
|
|
108
204
|
|
|
109
|
-
export { AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft11DataStream, Draft11Message, Draft11MessageType, Draft11SessionFSM, 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_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, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
|
205
|
+
export { AnnounceErrorCode, type AnnounceErrorCodeValue, AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft11DataStream, Draft11Message, Draft11MessageType, Draft11SessionFSM, 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_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, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, StreamResetErrorCode, type StreamResetErrorCodeValue, SubgroupStream, SubscribeAnnouncesErrorCode, type SubscribeAnnouncesErrorCodeValue, SubscribeDoneStatusCode, type SubscribeDoneStatusCodeValue, SubscribeErrorCode, type SubscribeErrorCodeValue, SubscriptionState, TrackStatusCode, type TrackStatusCodeValue, TransitionResult, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
package/dist/draft11.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 Draft11Codec, c as createDraft11Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-BkheTXO7.js';
|
|
3
|
+
import { b as Draft11DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft11MessageType, D as Draft11Message } from './types-D0kTgUuL.js';
|
|
4
|
+
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft11Announce, g as Draft11AnnounceCancel, h as Draft11AnnounceError, i as Draft11AnnounceOk, j as Draft11BaseMessage, k as Draft11ClientSetup, l as Draft11Fetch, m as Draft11FetchCancel, n as Draft11FetchError, o as Draft11FetchOk, p as Draft11GoAway, q as Draft11MaxRequestId, r as Draft11Params, s as Draft11RequestsBlocked, t as Draft11ServerSetup, u as Draft11SetupParams, v as Draft11Subscribe, w as Draft11SubscribeAnnounces, x as Draft11SubscribeAnnouncesError, y as Draft11SubscribeAnnouncesOk, z as Draft11SubscribeDone, B as Draft11SubscribeError, C as Draft11SubscribeOk, E as Draft11SubscribeUpdate, G as Draft11TrackStatus, H as Draft11TrackStatusRequest, I as Draft11Unannounce, J as Draft11Unsubscribe, K as Draft11UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as LargestLocation, P as ObjectPayload, Q as StandaloneFetch, R as SubgroupStreamHeader, U as UnknownParam } from './types-D0kTgUuL.js';
|
|
4
5
|
export { createDraft11SessionState } from './draft11-session.js';
|
|
5
6
|
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-Dn7b3RZM.js';
|
|
6
7
|
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-Dn7b3RZM.js';
|
|
@@ -14,6 +15,101 @@ 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<Draft11DataStream>;
|
|
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
|
+
};
|
|
36
|
+
type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
|
|
37
|
+
declare const SubscribeErrorCode: {
|
|
38
|
+
readonly InternalError: 0n;
|
|
39
|
+
readonly Unauthorized: 1n;
|
|
40
|
+
readonly Timeout: 2n;
|
|
41
|
+
readonly NotSupported: 3n;
|
|
42
|
+
readonly TrackDoesNotExist: 4n;
|
|
43
|
+
readonly InvalidRange: 5n;
|
|
44
|
+
readonly RetryTrackAlias: 6n;
|
|
45
|
+
readonly MalformedAuthToken: 16n;
|
|
46
|
+
readonly UnknownAuthTokenAlias: 17n;
|
|
47
|
+
readonly ExpiredAuthToken: 18n;
|
|
48
|
+
};
|
|
49
|
+
type SubscribeErrorCodeValue = (typeof SubscribeErrorCode)[keyof typeof SubscribeErrorCode];
|
|
50
|
+
declare const SubscribeDoneStatusCode: {
|
|
51
|
+
readonly InternalError: 0n;
|
|
52
|
+
readonly Unauthorized: 1n;
|
|
53
|
+
readonly TrackEnded: 2n;
|
|
54
|
+
readonly SubscriptionEnded: 3n;
|
|
55
|
+
readonly GoingAway: 4n;
|
|
56
|
+
readonly Expired: 5n;
|
|
57
|
+
readonly TooFarBehind: 6n;
|
|
58
|
+
};
|
|
59
|
+
type SubscribeDoneStatusCodeValue = (typeof SubscribeDoneStatusCode)[keyof typeof SubscribeDoneStatusCode];
|
|
60
|
+
declare const FetchErrorCode: {
|
|
61
|
+
readonly InternalError: 0n;
|
|
62
|
+
readonly Unauthorized: 1n;
|
|
63
|
+
readonly Timeout: 2n;
|
|
64
|
+
readonly NotSupported: 3n;
|
|
65
|
+
readonly TrackDoesNotExist: 4n;
|
|
66
|
+
readonly InvalidRange: 5n;
|
|
67
|
+
readonly NoObjects: 6n;
|
|
68
|
+
readonly InvalidJoiningSubscribeId: 7n;
|
|
69
|
+
readonly MalformedAuthToken: 16n;
|
|
70
|
+
readonly UnknownAuthTokenAlias: 17n;
|
|
71
|
+
readonly ExpiredAuthToken: 18n;
|
|
72
|
+
};
|
|
73
|
+
type FetchErrorCodeValue = (typeof FetchErrorCode)[keyof typeof FetchErrorCode];
|
|
74
|
+
declare const AnnounceErrorCode: {
|
|
75
|
+
readonly InternalError: 0n;
|
|
76
|
+
readonly Unauthorized: 1n;
|
|
77
|
+
readonly Timeout: 2n;
|
|
78
|
+
readonly NotSupported: 3n;
|
|
79
|
+
readonly Uninterested: 4n;
|
|
80
|
+
readonly MalformedAuthToken: 16n;
|
|
81
|
+
readonly UnknownAuthTokenAlias: 17n;
|
|
82
|
+
readonly ExpiredAuthToken: 18n;
|
|
83
|
+
};
|
|
84
|
+
type AnnounceErrorCodeValue = (typeof AnnounceErrorCode)[keyof typeof AnnounceErrorCode];
|
|
85
|
+
declare const SubscribeAnnouncesErrorCode: {
|
|
86
|
+
readonly InternalError: 0n;
|
|
87
|
+
readonly Unauthorized: 1n;
|
|
88
|
+
readonly Timeout: 2n;
|
|
89
|
+
readonly NotSupported: 3n;
|
|
90
|
+
readonly NamespacePrefixUnknown: 4n;
|
|
91
|
+
readonly NamespacePrefixOverlap: 5n;
|
|
92
|
+
readonly MalformedAuthToken: 16n;
|
|
93
|
+
readonly UnknownAuthTokenAlias: 17n;
|
|
94
|
+
readonly ExpiredAuthToken: 18n;
|
|
95
|
+
};
|
|
96
|
+
type SubscribeAnnouncesErrorCodeValue = (typeof SubscribeAnnouncesErrorCode)[keyof typeof SubscribeAnnouncesErrorCode];
|
|
97
|
+
declare const TrackStatusCode: {
|
|
98
|
+
readonly InProgress: 0n;
|
|
99
|
+
readonly TrackDoesNotExist: 1n;
|
|
100
|
+
readonly NotYetBegun: 2n;
|
|
101
|
+
readonly Finished: 3n;
|
|
102
|
+
readonly RelayStatusUnavailable: 4n;
|
|
103
|
+
};
|
|
104
|
+
type TrackStatusCodeValue = (typeof TrackStatusCode)[keyof typeof TrackStatusCode];
|
|
105
|
+
declare const StreamResetErrorCode: {
|
|
106
|
+
readonly InternalError: 0n;
|
|
107
|
+
readonly Cancelled: 1n;
|
|
108
|
+
readonly DeliveryTimeout: 2n;
|
|
109
|
+
readonly SessionClosed: 3n;
|
|
110
|
+
};
|
|
111
|
+
type StreamResetErrorCodeValue = (typeof StreamResetErrorCode)[keyof typeof StreamResetErrorCode];
|
|
112
|
+
|
|
17
113
|
declare const MSG_SUBSCRIBE_UPDATE = 2n;
|
|
18
114
|
declare const MSG_SUBSCRIBE = 3n;
|
|
19
115
|
declare const MSG_SUBSCRIBE_OK = 4n;
|
|
@@ -106,4 +202,4 @@ declare class Draft11SessionFSM {
|
|
|
106
202
|
|
|
107
203
|
declare const DRAFT_VERSION = 4278190091n;
|
|
108
204
|
|
|
109
|
-
export { AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft11DataStream, Draft11Message, Draft11MessageType, Draft11SessionFSM, 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_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, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
|
205
|
+
export { AnnounceErrorCode, type AnnounceErrorCodeValue, AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft11DataStream, Draft11Message, Draft11MessageType, Draft11SessionFSM, 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_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, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, StreamResetErrorCode, type StreamResetErrorCodeValue, SubgroupStream, SubscribeAnnouncesErrorCode, type SubscribeAnnouncesErrorCodeValue, SubscribeDoneStatusCode, type SubscribeDoneStatusCodeValue, SubscribeErrorCode, type SubscribeErrorCodeValue, SubscriptionState, TrackStatusCode, type TrackStatusCodeValue, TransitionResult, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
|
package/dist/draft11.js
CHANGED
|
@@ -41,8 +41,9 @@ import {
|
|
|
41
41
|
encodeDatagram,
|
|
42
42
|
encodeFetchStream,
|
|
43
43
|
encodeMessage,
|
|
44
|
-
encodeSubgroupStream
|
|
45
|
-
|
|
44
|
+
encodeSubgroupStream,
|
|
45
|
+
redactAuthTokens
|
|
46
|
+
} from "./chunk-A7PDMVXM.js";
|
|
46
47
|
import {
|
|
47
48
|
BIDIRECTIONAL_MESSAGES,
|
|
48
49
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -53,16 +54,108 @@ import {
|
|
|
53
54
|
getLegalIncoming,
|
|
54
55
|
getLegalOutgoing
|
|
55
56
|
} from "./chunk-BLQDWOSG.js";
|
|
56
|
-
import
|
|
57
|
+
import {
|
|
58
|
+
REDACTION_FILL
|
|
59
|
+
} from "./chunk-YRZQVNZO.js";
|
|
60
|
+
|
|
61
|
+
// src/drafts/draft11/error-codes.ts
|
|
62
|
+
var SessionErrorCode = {
|
|
63
|
+
NoError: 0x0n,
|
|
64
|
+
InternalError: 0x1n,
|
|
65
|
+
Unauthorized: 0x2n,
|
|
66
|
+
ProtocolViolation: 0x3n,
|
|
67
|
+
InvalidRequestId: 0x4n,
|
|
68
|
+
DuplicateTrackAlias: 0x5n,
|
|
69
|
+
KeyValueFormattingError: 0x6n,
|
|
70
|
+
TooManyRequests: 0x7n,
|
|
71
|
+
InvalidPath: 0x8n,
|
|
72
|
+
MalformedPath: 0x9n,
|
|
73
|
+
GoawayTimeout: 0x10n,
|
|
74
|
+
ControlMessageTimeout: 0x11n,
|
|
75
|
+
DataStreamTimeout: 0x12n,
|
|
76
|
+
AuthTokenCacheOverflow: 0x13n,
|
|
77
|
+
DuplicateAuthTokenAlias: 0x14n,
|
|
78
|
+
VersionNegotiationFailed: 0x15n
|
|
79
|
+
};
|
|
80
|
+
var SubscribeErrorCode = {
|
|
81
|
+
InternalError: 0x0n,
|
|
82
|
+
Unauthorized: 0x1n,
|
|
83
|
+
Timeout: 0x2n,
|
|
84
|
+
NotSupported: 0x3n,
|
|
85
|
+
TrackDoesNotExist: 0x4n,
|
|
86
|
+
InvalidRange: 0x5n,
|
|
87
|
+
RetryTrackAlias: 0x6n,
|
|
88
|
+
MalformedAuthToken: 0x10n,
|
|
89
|
+
UnknownAuthTokenAlias: 0x11n,
|
|
90
|
+
ExpiredAuthToken: 0x12n
|
|
91
|
+
};
|
|
92
|
+
var SubscribeDoneStatusCode = {
|
|
93
|
+
InternalError: 0x0n,
|
|
94
|
+
Unauthorized: 0x1n,
|
|
95
|
+
TrackEnded: 0x2n,
|
|
96
|
+
SubscriptionEnded: 0x3n,
|
|
97
|
+
GoingAway: 0x4n,
|
|
98
|
+
Expired: 0x5n,
|
|
99
|
+
TooFarBehind: 0x6n
|
|
100
|
+
};
|
|
101
|
+
var FetchErrorCode = {
|
|
102
|
+
InternalError: 0x0n,
|
|
103
|
+
Unauthorized: 0x1n,
|
|
104
|
+
Timeout: 0x2n,
|
|
105
|
+
NotSupported: 0x3n,
|
|
106
|
+
TrackDoesNotExist: 0x4n,
|
|
107
|
+
InvalidRange: 0x5n,
|
|
108
|
+
NoObjects: 0x6n,
|
|
109
|
+
InvalidJoiningSubscribeId: 0x7n,
|
|
110
|
+
MalformedAuthToken: 0x10n,
|
|
111
|
+
UnknownAuthTokenAlias: 0x11n,
|
|
112
|
+
ExpiredAuthToken: 0x12n
|
|
113
|
+
};
|
|
114
|
+
var AnnounceErrorCode = {
|
|
115
|
+
InternalError: 0x0n,
|
|
116
|
+
Unauthorized: 0x1n,
|
|
117
|
+
Timeout: 0x2n,
|
|
118
|
+
NotSupported: 0x3n,
|
|
119
|
+
Uninterested: 0x4n,
|
|
120
|
+
MalformedAuthToken: 0x10n,
|
|
121
|
+
UnknownAuthTokenAlias: 0x11n,
|
|
122
|
+
ExpiredAuthToken: 0x12n
|
|
123
|
+
};
|
|
124
|
+
var SubscribeAnnouncesErrorCode = {
|
|
125
|
+
InternalError: 0x0n,
|
|
126
|
+
Unauthorized: 0x1n,
|
|
127
|
+
Timeout: 0x2n,
|
|
128
|
+
NotSupported: 0x3n,
|
|
129
|
+
NamespacePrefixUnknown: 0x4n,
|
|
130
|
+
NamespacePrefixOverlap: 0x5n,
|
|
131
|
+
MalformedAuthToken: 0x10n,
|
|
132
|
+
UnknownAuthTokenAlias: 0x11n,
|
|
133
|
+
ExpiredAuthToken: 0x12n
|
|
134
|
+
};
|
|
135
|
+
var TrackStatusCode = {
|
|
136
|
+
InProgress: 0x00n,
|
|
137
|
+
TrackDoesNotExist: 0x01n,
|
|
138
|
+
NotYetBegun: 0x02n,
|
|
139
|
+
Finished: 0x03n,
|
|
140
|
+
RelayStatusUnavailable: 0x04n
|
|
141
|
+
};
|
|
142
|
+
var StreamResetErrorCode = {
|
|
143
|
+
InternalError: 0x0n,
|
|
144
|
+
Cancelled: 0x1n,
|
|
145
|
+
DeliveryTimeout: 0x2n,
|
|
146
|
+
SessionClosed: 0x3n
|
|
147
|
+
};
|
|
57
148
|
|
|
58
149
|
// src/drafts/draft11/index.ts
|
|
59
150
|
var DRAFT_VERSION = 0xff00000bn;
|
|
60
151
|
export {
|
|
152
|
+
AnnounceErrorCode,
|
|
61
153
|
BIDIRECTIONAL_MESSAGES,
|
|
62
154
|
CLIENT_ONLY_MESSAGES,
|
|
63
155
|
CONTROL_MESSAGES,
|
|
64
156
|
DRAFT_VERSION,
|
|
65
157
|
Draft11SessionFSM,
|
|
158
|
+
FetchErrorCode,
|
|
66
159
|
MESSAGE_ID_MAP,
|
|
67
160
|
MESSAGE_TYPE_MAP,
|
|
68
161
|
MSG_ANNOUNCE,
|
|
@@ -93,9 +186,16 @@ export {
|
|
|
93
186
|
MSG_UNSUBSCRIBE_ANNOUNCES,
|
|
94
187
|
PARAM_AUTHORIZATION_TOKEN,
|
|
95
188
|
PARAM_DELIVERY_TIMEOUT,
|
|
189
|
+
REDACTION_FILL,
|
|
96
190
|
SERVER_ONLY_MESSAGES,
|
|
97
191
|
SETUP_PARAM_MAX_REQUEST_ID,
|
|
98
192
|
SETUP_PARAM_PATH,
|
|
193
|
+
SessionErrorCode,
|
|
194
|
+
StreamResetErrorCode,
|
|
195
|
+
SubscribeAnnouncesErrorCode,
|
|
196
|
+
SubscribeDoneStatusCode,
|
|
197
|
+
SubscribeErrorCode,
|
|
198
|
+
TrackStatusCode,
|
|
99
199
|
createDraft11Codec,
|
|
100
200
|
createDraft11SessionState,
|
|
101
201
|
createStreamDecoder,
|
|
@@ -109,5 +209,6 @@ export {
|
|
|
109
209
|
encodeMessage,
|
|
110
210
|
encodeSubgroupStream,
|
|
111
211
|
getLegalIncoming,
|
|
112
|
-
getLegalOutgoing
|
|
212
|
+
getLegalOutgoing,
|
|
213
|
+
redactAuthTokens
|
|
113
214
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
2
|
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
3
|
-
import { D as Draft12Message, a as Draft12MessageType } from './types-
|
|
3
|
+
import { D as Draft12Message, a as Draft12MessageType } from './types-CI_SX4Xe.cjs';
|
|
4
4
|
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft12SessionState(role: SessionStateOptionsRole): SessionState<Draft12Message, Draft12MessageType>;
|