@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/draft17.js
CHANGED
|
@@ -36,8 +36,9 @@ import {
|
|
|
36
36
|
encodeDatagram,
|
|
37
37
|
encodeFetchStream,
|
|
38
38
|
encodeMessage,
|
|
39
|
-
encodeSubgroupStream
|
|
40
|
-
|
|
39
|
+
encodeSubgroupStream,
|
|
40
|
+
redactAuthTokens
|
|
41
|
+
} from "./chunk-FDLQSWHK.js";
|
|
41
42
|
import {
|
|
42
43
|
BIDIRECTIONAL_MESSAGES,
|
|
43
44
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -48,7 +49,74 @@ import {
|
|
|
48
49
|
getLegalIncoming,
|
|
49
50
|
getLegalOutgoing
|
|
50
51
|
} from "./chunk-Q7IGWV3P.js";
|
|
51
|
-
import
|
|
52
|
+
import {
|
|
53
|
+
REDACTION_FILL
|
|
54
|
+
} from "./chunk-YRZQVNZO.js";
|
|
55
|
+
|
|
56
|
+
// src/drafts/draft17/error-codes.ts
|
|
57
|
+
var SessionTerminationCode = {
|
|
58
|
+
NoError: 0x0n,
|
|
59
|
+
InternalError: 0x1n,
|
|
60
|
+
Unauthorized: 0x2n,
|
|
61
|
+
ProtocolViolation: 0x3n,
|
|
62
|
+
InvalidRequestId: 0x4n,
|
|
63
|
+
DuplicateTrackAlias: 0x5n,
|
|
64
|
+
KeyValueFormattingError: 0x6n,
|
|
65
|
+
InvalidRequiredRequestId: 0x7n,
|
|
66
|
+
InvalidPath: 0x8n,
|
|
67
|
+
MalformedPath: 0x9n,
|
|
68
|
+
GoawayTimeout: 0x10n,
|
|
69
|
+
ControlMessageTimeout: 0x11n,
|
|
70
|
+
DataStreamTimeout: 0x12n,
|
|
71
|
+
AuthTokenCacheOverflow: 0x13n,
|
|
72
|
+
DuplicateAuthTokenAlias: 0x14n,
|
|
73
|
+
VersionNegotiationFailed: 0x15n,
|
|
74
|
+
MalformedAuthToken: 0x16n,
|
|
75
|
+
UnknownAuthTokenAlias: 0x17n,
|
|
76
|
+
ExpiredAuthToken: 0x18n,
|
|
77
|
+
InvalidAuthority: 0x19n,
|
|
78
|
+
MalformedAuthority: 0x1an
|
|
79
|
+
};
|
|
80
|
+
var RequestErrorCode = {
|
|
81
|
+
InternalError: 0x0n,
|
|
82
|
+
Unauthorized: 0x1n,
|
|
83
|
+
Timeout: 0x2n,
|
|
84
|
+
NotSupported: 0x3n,
|
|
85
|
+
MalformedAuthToken: 0x4n,
|
|
86
|
+
ExpiredAuthToken: 0x5n,
|
|
87
|
+
GoingAway: 0x6n,
|
|
88
|
+
ExcessiveLoad: 0x9n,
|
|
89
|
+
DoesNotExist: 0x10n,
|
|
90
|
+
InvalidRange: 0x11n,
|
|
91
|
+
MalformedTrack: 0x12n,
|
|
92
|
+
DuplicateSubscription: 0x19n,
|
|
93
|
+
Uninterested: 0x20n,
|
|
94
|
+
PrefixOverlap: 0x30n,
|
|
95
|
+
NamespaceTooLarge: 0x31n,
|
|
96
|
+
InvalidJoiningRequestId: 0x32n
|
|
97
|
+
};
|
|
98
|
+
var PublishDoneCode = {
|
|
99
|
+
InternalError: 0x0n,
|
|
100
|
+
Unauthorized: 0x1n,
|
|
101
|
+
TrackEnded: 0x2n,
|
|
102
|
+
SubscriptionEnded: 0x3n,
|
|
103
|
+
GoingAway: 0x4n,
|
|
104
|
+
Expired: 0x5n,
|
|
105
|
+
TooFarBehind: 0x6n,
|
|
106
|
+
UpdateFailed: 0x8n,
|
|
107
|
+
ExcessiveLoad: 0x9n,
|
|
108
|
+
MalformedTrack: 0x12n
|
|
109
|
+
};
|
|
110
|
+
var DataStreamResetCode = {
|
|
111
|
+
InternalError: 0x0n,
|
|
112
|
+
Cancelled: 0x1n,
|
|
113
|
+
DeliveryTimeout: 0x2n,
|
|
114
|
+
SessionClosed: 0x3n,
|
|
115
|
+
UnknownObjectStatus: 0x4n,
|
|
116
|
+
TooFarBehind: 0x5n,
|
|
117
|
+
ExcessiveLoad: 0x9n,
|
|
118
|
+
MalformedTrack: 0x12n
|
|
119
|
+
};
|
|
52
120
|
|
|
53
121
|
// src/drafts/draft17/index.ts
|
|
54
122
|
var DRAFT_VERSION = 0xff000011n;
|
|
@@ -57,6 +125,7 @@ export {
|
|
|
57
125
|
CLIENT_ONLY_MESSAGES,
|
|
58
126
|
CONTROL_MESSAGES,
|
|
59
127
|
DRAFT_VERSION,
|
|
128
|
+
DataStreamResetCode,
|
|
60
129
|
Draft17SessionFSM,
|
|
61
130
|
MESSAGE_ID_MAP,
|
|
62
131
|
MESSAGE_TYPE_MAP,
|
|
@@ -78,11 +147,15 @@ export {
|
|
|
78
147
|
MSG_SUBSCRIBE_NAMESPACE,
|
|
79
148
|
MSG_SUBSCRIBE_OK,
|
|
80
149
|
MSG_TRACK_STATUS,
|
|
150
|
+
PublishDoneCode,
|
|
151
|
+
REDACTION_FILL,
|
|
152
|
+
RequestErrorCode,
|
|
81
153
|
SERVER_ONLY_MESSAGES,
|
|
82
154
|
SETUP_OPT_AUTHORITY,
|
|
83
155
|
SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE,
|
|
84
156
|
SETUP_OPT_MOQT_IMPLEMENTATION,
|
|
85
157
|
SETUP_OPT_PATH,
|
|
158
|
+
SessionTerminationCode,
|
|
86
159
|
createDataStreamDecoder,
|
|
87
160
|
createDraft17Codec,
|
|
88
161
|
createDraft17SessionState,
|
|
@@ -99,5 +172,6 @@ export {
|
|
|
99
172
|
encodeMessage,
|
|
100
173
|
encodeSubgroupStream,
|
|
101
174
|
getLegalIncoming,
|
|
102
|
-
getLegalOutgoing
|
|
175
|
+
getLegalOutgoing,
|
|
176
|
+
redactAuthTokens
|
|
103
177
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-B9idsih-.cjs';
|
|
2
2
|
export { P as ProtocolViolation, h as SideEffect } from './session-types-B9idsih-.cjs';
|
|
3
|
-
import { a as Draft18MessageType, D as Draft18Message } from './types-
|
|
3
|
+
import { a as Draft18MessageType, D as Draft18Message } from './types-DxXNP32l.cjs';
|
|
4
4
|
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare class Draft18SessionFSM {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-Dn7b3RZM.js';
|
|
2
2
|
export { P as ProtocolViolation, h as SideEffect } from './session-types-Dn7b3RZM.js';
|
|
3
|
-
import { a as Draft18MessageType, D as Draft18Message } from './types-
|
|
3
|
+
import { a as Draft18MessageType, D as Draft18Message } from './types-DxXNP32l.js';
|
|
4
4
|
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare class Draft18SessionFSM {
|
package/dist/draft18.cjs
CHANGED
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
|
|
43
|
+
var _chunkA3UCQOIBcjs = require('./chunk-A3UCQOIB.cjs');
|
|
43
44
|
|
|
44
45
|
|
|
45
46
|
|
|
@@ -50,7 +51,9 @@ var _chunkUZO5Z2XTcjs = require('./chunk-UZO5Z2XT.cjs');
|
|
|
50
51
|
|
|
51
52
|
|
|
52
53
|
var _chunkA655PHFXcjs = require('./chunk-A655PHFX.cjs');
|
|
53
|
-
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
var _chunk5IMHJIAZcjs = require('./chunk-5IMHJIAZ.cjs');
|
|
54
57
|
|
|
55
58
|
// src/drafts/draft18/error-codes.ts
|
|
56
59
|
var SessionTerminationCode = {
|
|
@@ -176,4 +179,6 @@ var DRAFT_VERSION = 0xff000012n;
|
|
|
176
179
|
|
|
177
180
|
|
|
178
181
|
|
|
179
|
-
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
exports.BIDIRECTIONAL_MESSAGES = _chunkA655PHFXcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkA655PHFXcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkA655PHFXcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.DataStreamResetCode = DataStreamResetCode; exports.Draft18SessionFSM = _chunkA655PHFXcjs.Draft18SessionFSM; exports.MESSAGE_ID_MAP = _chunkA3UCQOIBcjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunkA3UCQOIBcjs.MESSAGE_TYPE_MAP; exports.MSG_FETCH = _chunkA3UCQOIBcjs.MSG_FETCH; exports.MSG_FETCH_OK = _chunkA3UCQOIBcjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunkA3UCQOIBcjs.MSG_GOAWAY; exports.MSG_NAMESPACE = _chunkA3UCQOIBcjs.MSG_NAMESPACE; exports.MSG_NAMESPACE_DONE = _chunkA3UCQOIBcjs.MSG_NAMESPACE_DONE; exports.MSG_PUBLISH = _chunkA3UCQOIBcjs.MSG_PUBLISH; exports.MSG_PUBLISH_BLOCKED = _chunkA3UCQOIBcjs.MSG_PUBLISH_BLOCKED; exports.MSG_PUBLISH_DONE = _chunkA3UCQOIBcjs.MSG_PUBLISH_DONE; exports.MSG_PUBLISH_NAMESPACE = _chunkA3UCQOIBcjs.MSG_PUBLISH_NAMESPACE; exports.MSG_PUBLISH_OK = _chunkA3UCQOIBcjs.MSG_PUBLISH_OK; exports.MSG_REQUEST_ERROR = _chunkA3UCQOIBcjs.MSG_REQUEST_ERROR; exports.MSG_REQUEST_OK = _chunkA3UCQOIBcjs.MSG_REQUEST_OK; exports.MSG_REQUEST_UPDATE = _chunkA3UCQOIBcjs.MSG_REQUEST_UPDATE; exports.MSG_SETUP = _chunkA3UCQOIBcjs.MSG_SETUP; exports.MSG_SUBSCRIBE = _chunkA3UCQOIBcjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_NAMESPACE = _chunkA3UCQOIBcjs.MSG_SUBSCRIBE_NAMESPACE; exports.MSG_SUBSCRIBE_OK = _chunkA3UCQOIBcjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_TRACKS = _chunkA3UCQOIBcjs.MSG_SUBSCRIBE_TRACKS; exports.MSG_TRACK_STATUS = _chunkA3UCQOIBcjs.MSG_TRACK_STATUS; exports.PublishDoneCode = PublishDoneCode; exports.REDACTION_FILL = _chunk5IMHJIAZcjs.REDACTION_FILL; exports.RequestErrorCode = RequestErrorCode; exports.SERVER_ONLY_MESSAGES = _chunkA655PHFXcjs.SERVER_ONLY_MESSAGES; exports.SETUP_OPT_AUTHORITY = _chunkA3UCQOIBcjs.SETUP_OPT_AUTHORITY; exports.SETUP_OPT_AUTHORIZATION_TOKEN = _chunkA3UCQOIBcjs.SETUP_OPT_AUTHORIZATION_TOKEN; exports.SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE = _chunkA3UCQOIBcjs.SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE; exports.SETUP_OPT_MOQT_IMPLEMENTATION = _chunkA3UCQOIBcjs.SETUP_OPT_MOQT_IMPLEMENTATION; exports.SETUP_OPT_PATH = _chunkA3UCQOIBcjs.SETUP_OPT_PATH; exports.SessionTerminationCode = SessionTerminationCode; exports.createDataStreamDecoder = _chunkA3UCQOIBcjs.createDataStreamDecoder; exports.createDraft18Codec = _chunkA3UCQOIBcjs.createDraft18Codec; exports.createDraft18SessionState = _chunkA655PHFXcjs.createDraft18SessionState; exports.createFetchStreamDecoder = _chunkA3UCQOIBcjs.createFetchStreamDecoder; exports.createStreamDecoder = _chunkA3UCQOIBcjs.createStreamDecoder; exports.createSubgroupStreamDecoder = _chunkA3UCQOIBcjs.createSubgroupStreamDecoder; exports.decodeDataStream = _chunkA3UCQOIBcjs.decodeDataStream; exports.decodeDatagram = _chunkA3UCQOIBcjs.decodeDatagram; exports.decodeFetchStream = _chunkA3UCQOIBcjs.decodeFetchStream; exports.decodeMessage = _chunkA3UCQOIBcjs.decodeMessage; exports.decodeSubgroupStream = _chunkA3UCQOIBcjs.decodeSubgroupStream; exports.encodeDatagram = _chunkA3UCQOIBcjs.encodeDatagram; exports.encodeFetchStream = _chunkA3UCQOIBcjs.encodeFetchStream; exports.encodeMessage = _chunkA3UCQOIBcjs.encodeMessage; exports.encodeSubgroupStream = _chunkA3UCQOIBcjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkA655PHFXcjs.getLegalIncoming; exports.getLegalOutgoing = _chunkA655PHFXcjs.getLegalOutgoing; exports.redactAuthTokens = _chunkA3UCQOIBcjs.redactAuthTokens;
|
package/dist/draft18.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 Draft18Codec, c as createDraft18Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-DELe00w_.cjs';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft18DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft18MessageType } from './types-DxXNP32l.cjs';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft18BaseMessage, i as Draft18Fetch, j as Draft18FetchOk, k as Draft18GoAway, D as Draft18Message, l as Draft18Namespace, m as Draft18NamespaceDone, n as Draft18Params, o as Draft18Publish, p as Draft18PublishBlocked, q as Draft18PublishDone, r as Draft18PublishNamespace, s as Draft18RequestError, t as Draft18RequestOk, u as Draft18RequestUpdate, v as Draft18Setup, w as Draft18SetupOptions, x as Draft18Subscribe, y as Draft18SubscribeNamespace, z as Draft18SubscribeOk, A as Draft18SubscribeTracks, B as Draft18TrackProperties, C as Draft18TrackStatus, E as FetchObjectPayload, J as JoiningFetch, L as LargestObject, R as Redirect, G as StandaloneFetch, H as SubscriptionFilter, U as UnknownParam } from './types-DxXNP32l.cjs';
|
|
4
5
|
export { Draft18SessionFSM, createDraft18SessionState } from './draft18-session.cjs';
|
|
5
6
|
export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
6
7
|
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
package/dist/draft18.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 Draft18Codec, c as createDraft18Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-ejDu-va6.js';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft18DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft18MessageType } from './types-DxXNP32l.js';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft18BaseMessage, i as Draft18Fetch, j as Draft18FetchOk, k as Draft18GoAway, D as Draft18Message, l as Draft18Namespace, m as Draft18NamespaceDone, n as Draft18Params, o as Draft18Publish, p as Draft18PublishBlocked, q as Draft18PublishDone, r as Draft18PublishNamespace, s as Draft18RequestError, t as Draft18RequestOk, u as Draft18RequestUpdate, v as Draft18Setup, w as Draft18SetupOptions, x as Draft18Subscribe, y as Draft18SubscribeNamespace, z as Draft18SubscribeOk, A as Draft18SubscribeTracks, B as Draft18TrackProperties, C as Draft18TrackStatus, E as FetchObjectPayload, J as JoiningFetch, L as LargestObject, R as Redirect, G as StandaloneFetch, H as SubscriptionFilter, U as UnknownParam } from './types-DxXNP32l.js';
|
|
4
5
|
export { Draft18SessionFSM, createDraft18SessionState } from './draft18-session.js';
|
|
5
6
|
export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
6
7
|
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
package/dist/draft18.js
CHANGED
|
@@ -38,8 +38,9 @@ import {
|
|
|
38
38
|
encodeDatagram,
|
|
39
39
|
encodeFetchStream,
|
|
40
40
|
encodeMessage,
|
|
41
|
-
encodeSubgroupStream
|
|
42
|
-
|
|
41
|
+
encodeSubgroupStream,
|
|
42
|
+
redactAuthTokens
|
|
43
|
+
} from "./chunk-5AWIXOLB.js";
|
|
43
44
|
import {
|
|
44
45
|
BIDIRECTIONAL_MESSAGES,
|
|
45
46
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -50,7 +51,9 @@ import {
|
|
|
50
51
|
getLegalIncoming,
|
|
51
52
|
getLegalOutgoing
|
|
52
53
|
} from "./chunk-IWYKDCXP.js";
|
|
53
|
-
import
|
|
54
|
+
import {
|
|
55
|
+
REDACTION_FILL
|
|
56
|
+
} from "./chunk-YRZQVNZO.js";
|
|
54
57
|
|
|
55
58
|
// src/drafts/draft18/error-codes.ts
|
|
56
59
|
var SessionTerminationCode = {
|
|
@@ -151,6 +154,7 @@ export {
|
|
|
151
154
|
MSG_SUBSCRIBE_TRACKS,
|
|
152
155
|
MSG_TRACK_STATUS,
|
|
153
156
|
PublishDoneCode,
|
|
157
|
+
REDACTION_FILL,
|
|
154
158
|
RequestErrorCode,
|
|
155
159
|
SERVER_ONLY_MESSAGES,
|
|
156
160
|
SETUP_OPT_AUTHORITY,
|
|
@@ -175,5 +179,6 @@ export {
|
|
|
175
179
|
encodeMessage,
|
|
176
180
|
encodeSubgroupStream,
|
|
177
181
|
getLegalIncoming,
|
|
178
|
-
getLegalOutgoing
|
|
182
|
+
getLegalOutgoing,
|
|
183
|
+
redactAuthTokens
|
|
179
184
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-B9idsih-.cjs';
|
|
2
2
|
export { P as ProtocolViolation, h as SideEffect } from './session-types-B9idsih-.cjs';
|
|
3
|
-
import { a as Draft19MessageType, D as Draft19Message } from './types-
|
|
3
|
+
import { a as Draft19MessageType, D as Draft19Message } from './types-Btp416jt.cjs';
|
|
4
4
|
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare class Draft19SessionFSM {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-Dn7b3RZM.js';
|
|
2
2
|
export { P as ProtocolViolation, h as SideEffect } from './session-types-Dn7b3RZM.js';
|
|
3
|
-
import { a as Draft19MessageType, D as Draft19Message } from './types-
|
|
3
|
+
import { a as Draft19MessageType, D as Draft19Message } from './types-Btp416jt.js';
|
|
4
4
|
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare class Draft19SessionFSM {
|
package/dist/draft19.cjs
CHANGED
|
@@ -41,7 +41,8 @@
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
|
|
45
|
+
var _chunk5JGZCKJOcjs = require('./chunk-5JGZCKJO.cjs');
|
|
45
46
|
|
|
46
47
|
|
|
47
48
|
|
|
@@ -52,7 +53,9 @@ var _chunkTVSFDQYEcjs = require('./chunk-TVSFDQYE.cjs');
|
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
var _chunkCQ65LKPQcjs = require('./chunk-CQ65LKPQ.cjs');
|
|
55
|
-
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
var _chunk5IMHJIAZcjs = require('./chunk-5IMHJIAZ.cjs');
|
|
56
59
|
|
|
57
60
|
// src/drafts/draft19/error-codes.ts
|
|
58
61
|
var SessionTerminationCode = {
|
|
@@ -91,7 +94,9 @@ var RequestErrorCode = {
|
|
|
91
94
|
DoesNotExist: 0x10n,
|
|
92
95
|
InvalidRange: 0x11n,
|
|
93
96
|
MalformedTrack: 0x12n,
|
|
94
|
-
//
|
|
97
|
+
// 0x19 is unassigned in draft-19: Section 5.1 lets an endpoint hold multiple concurrent
|
|
98
|
+
// subscriptions to the same Track, so there is no DuplicateSubscription error. Draft-18
|
|
99
|
+
// binds 0x19 to DUPLICATE_SUBSCRIPTION.
|
|
95
100
|
Uninterested: 0x20n,
|
|
96
101
|
PrefixOverlap: 0x30n,
|
|
97
102
|
NamespaceTooLarge: 0x31n,
|
|
@@ -186,4 +191,6 @@ var DRAFT_VERSION = 0xff000013n;
|
|
|
186
191
|
|
|
187
192
|
|
|
188
193
|
|
|
189
|
-
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
exports.BIDIRECTIONAL_MESSAGES = _chunkCQ65LKPQcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkCQ65LKPQcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkCQ65LKPQcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.DataStreamResetCode = DataStreamResetCode; exports.Draft19SessionFSM = _chunkCQ65LKPQcjs.Draft19SessionFSM; exports.MESSAGE_ID_MAP = _chunk5JGZCKJOcjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunk5JGZCKJOcjs.MESSAGE_TYPE_MAP; exports.MSG_FETCH = _chunk5JGZCKJOcjs.MSG_FETCH; exports.MSG_FETCH_OK = _chunk5JGZCKJOcjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunk5JGZCKJOcjs.MSG_GOAWAY; exports.MSG_NAMESPACE = _chunk5JGZCKJOcjs.MSG_NAMESPACE; exports.MSG_NAMESPACE_DONE = _chunk5JGZCKJOcjs.MSG_NAMESPACE_DONE; exports.MSG_PUBLISH = _chunk5JGZCKJOcjs.MSG_PUBLISH; exports.MSG_PUBLISH_DONE = _chunk5JGZCKJOcjs.MSG_PUBLISH_DONE; exports.MSG_PUBLISH_NAMESPACE = _chunk5JGZCKJOcjs.MSG_PUBLISH_NAMESPACE; exports.MSG_PUBLISH_OK = _chunk5JGZCKJOcjs.MSG_PUBLISH_OK; exports.MSG_PUBLISH_SKIPPED = _chunk5JGZCKJOcjs.MSG_PUBLISH_SKIPPED; exports.MSG_REQUEST_ERROR = _chunk5JGZCKJOcjs.MSG_REQUEST_ERROR; exports.MSG_REQUEST_OK = _chunk5JGZCKJOcjs.MSG_REQUEST_OK; exports.MSG_REQUEST_UPDATE = _chunk5JGZCKJOcjs.MSG_REQUEST_UPDATE; exports.MSG_SETUP = _chunk5JGZCKJOcjs.MSG_SETUP; exports.MSG_SUBSCRIBE = _chunk5JGZCKJOcjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_NAMESPACE = _chunk5JGZCKJOcjs.MSG_SUBSCRIBE_NAMESPACE; exports.MSG_SUBSCRIBE_OK = _chunk5JGZCKJOcjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_TRACKS = _chunk5JGZCKJOcjs.MSG_SUBSCRIBE_TRACKS; exports.MSG_TRACK_STATUS = _chunk5JGZCKJOcjs.MSG_TRACK_STATUS; exports.PublishDoneCode = PublishDoneCode; exports.REDACTION_FILL = _chunk5IMHJIAZcjs.REDACTION_FILL; exports.RequestErrorCode = RequestErrorCode; exports.SERVER_ONLY_MESSAGES = _chunkCQ65LKPQcjs.SERVER_ONLY_MESSAGES; exports.SETUP_OPT_AUTHORITY = _chunk5JGZCKJOcjs.SETUP_OPT_AUTHORITY; exports.SETUP_OPT_AUTHORIZATION_TOKEN = _chunk5JGZCKJOcjs.SETUP_OPT_AUTHORIZATION_TOKEN; exports.SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE = _chunk5JGZCKJOcjs.SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE; exports.SETUP_OPT_MAX_FILTER_RANGES = _chunk5JGZCKJOcjs.SETUP_OPT_MAX_FILTER_RANGES; exports.SETUP_OPT_MAX_REQUEST_UPDATES = _chunk5JGZCKJOcjs.SETUP_OPT_MAX_REQUEST_UPDATES; exports.SETUP_OPT_MOQT_IMPLEMENTATION = _chunk5JGZCKJOcjs.SETUP_OPT_MOQT_IMPLEMENTATION; exports.SETUP_OPT_PATH = _chunk5JGZCKJOcjs.SETUP_OPT_PATH; exports.SessionTerminationCode = SessionTerminationCode; exports.createDataStreamDecoder = _chunk5JGZCKJOcjs.createDataStreamDecoder; exports.createDraft19Codec = _chunk5JGZCKJOcjs.createDraft19Codec; exports.createDraft19SessionState = _chunkCQ65LKPQcjs.createDraft19SessionState; exports.createFetchStreamDecoder = _chunk5JGZCKJOcjs.createFetchStreamDecoder; exports.createStreamDecoder = _chunk5JGZCKJOcjs.createStreamDecoder; exports.createSubgroupStreamDecoder = _chunk5JGZCKJOcjs.createSubgroupStreamDecoder; exports.decodeDataStream = _chunk5JGZCKJOcjs.decodeDataStream; exports.decodeDatagram = _chunk5JGZCKJOcjs.decodeDatagram; exports.decodeFetchStream = _chunk5JGZCKJOcjs.decodeFetchStream; exports.decodeMessage = _chunk5JGZCKJOcjs.decodeMessage; exports.decodeSubgroupStream = _chunk5JGZCKJOcjs.decodeSubgroupStream; exports.encodeDatagram = _chunk5JGZCKJOcjs.encodeDatagram; exports.encodeFetchStream = _chunk5JGZCKJOcjs.encodeFetchStream; exports.encodeMessage = _chunk5JGZCKJOcjs.encodeMessage; exports.encodeSubgroupStream = _chunk5JGZCKJOcjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkCQ65LKPQcjs.getLegalIncoming; exports.getLegalOutgoing = _chunkCQ65LKPQcjs.getLegalOutgoing; exports.redactAuthTokens = _chunk5JGZCKJOcjs.redactAuthTokens;
|
package/dist/draft19.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 Draft19Codec, c as createDraft19Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-C5s1eBJX.cjs';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft19DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft19MessageType } from './types-Btp416jt.cjs';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft19BaseMessage, i as Draft19Fetch, j as Draft19FetchOk, k as Draft19GoAway, D as Draft19Message, l as Draft19Namespace, m as Draft19NamespaceDone, n as Draft19Params, o as Draft19Publish, p as Draft19PublishDone, q as Draft19PublishNamespace, r as Draft19PublishSkipped, s as Draft19RequestError, t as Draft19RequestOk, u as Draft19RequestUpdate, v as Draft19Setup, w as Draft19SetupOptions, x as Draft19Subscribe, y as Draft19SubscribeNamespace, z as Draft19SubscribeOk, A as Draft19SubscribeTracks, B as Draft19TrackProperties, C as Draft19TrackStatus, E as FetchObjectPayload, J as JoiningFetch, L as LargestObject, G as LocationFilter, R as RangeFilter, H as RangeFilterRange, I as Redirect, K as StandaloneFetch, U as UnknownParam } from './types-Btp416jt.cjs';
|
|
4
5
|
export { Draft19SessionFSM, createDraft19SessionState } from './draft19-session.cjs';
|
|
5
6
|
export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
6
7
|
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
package/dist/draft19.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 Draft19Codec, c as createDraft19Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-DlxGuYMv.js';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft19DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft19MessageType } from './types-Btp416jt.js';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft19BaseMessage, i as Draft19Fetch, j as Draft19FetchOk, k as Draft19GoAway, D as Draft19Message, l as Draft19Namespace, m as Draft19NamespaceDone, n as Draft19Params, o as Draft19Publish, p as Draft19PublishDone, q as Draft19PublishNamespace, r as Draft19PublishSkipped, s as Draft19RequestError, t as Draft19RequestOk, u as Draft19RequestUpdate, v as Draft19Setup, w as Draft19SetupOptions, x as Draft19Subscribe, y as Draft19SubscribeNamespace, z as Draft19SubscribeOk, A as Draft19SubscribeTracks, B as Draft19TrackProperties, C as Draft19TrackStatus, E as FetchObjectPayload, J as JoiningFetch, L as LargestObject, G as LocationFilter, R as RangeFilter, H as RangeFilterRange, I as Redirect, K as StandaloneFetch, U as UnknownParam } from './types-Btp416jt.js';
|
|
4
5
|
export { Draft19SessionFSM, createDraft19SessionState } from './draft19-session.js';
|
|
5
6
|
export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
6
7
|
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
package/dist/draft19.js
CHANGED
|
@@ -40,8 +40,9 @@ import {
|
|
|
40
40
|
encodeDatagram,
|
|
41
41
|
encodeFetchStream,
|
|
42
42
|
encodeMessage,
|
|
43
|
-
encodeSubgroupStream
|
|
44
|
-
|
|
43
|
+
encodeSubgroupStream,
|
|
44
|
+
redactAuthTokens
|
|
45
|
+
} from "./chunk-YCNIVZS7.js";
|
|
45
46
|
import {
|
|
46
47
|
BIDIRECTIONAL_MESSAGES,
|
|
47
48
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -52,7 +53,9 @@ import {
|
|
|
52
53
|
getLegalIncoming,
|
|
53
54
|
getLegalOutgoing
|
|
54
55
|
} from "./chunk-O5DQ44TM.js";
|
|
55
|
-
import
|
|
56
|
+
import {
|
|
57
|
+
REDACTION_FILL
|
|
58
|
+
} from "./chunk-YRZQVNZO.js";
|
|
56
59
|
|
|
57
60
|
// src/drafts/draft19/error-codes.ts
|
|
58
61
|
var SessionTerminationCode = {
|
|
@@ -91,7 +94,9 @@ var RequestErrorCode = {
|
|
|
91
94
|
DoesNotExist: 0x10n,
|
|
92
95
|
InvalidRange: 0x11n,
|
|
93
96
|
MalformedTrack: 0x12n,
|
|
94
|
-
//
|
|
97
|
+
// 0x19 is unassigned in draft-19: Section 5.1 lets an endpoint hold multiple concurrent
|
|
98
|
+
// subscriptions to the same Track, so there is no DuplicateSubscription error. Draft-18
|
|
99
|
+
// binds 0x19 to DUPLICATE_SUBSCRIPTION.
|
|
95
100
|
Uninterested: 0x20n,
|
|
96
101
|
PrefixOverlap: 0x30n,
|
|
97
102
|
NamespaceTooLarge: 0x31n,
|
|
@@ -159,6 +164,7 @@ export {
|
|
|
159
164
|
MSG_SUBSCRIBE_TRACKS,
|
|
160
165
|
MSG_TRACK_STATUS,
|
|
161
166
|
PublishDoneCode,
|
|
167
|
+
REDACTION_FILL,
|
|
162
168
|
RequestErrorCode,
|
|
163
169
|
SERVER_ONLY_MESSAGES,
|
|
164
170
|
SETUP_OPT_AUTHORITY,
|
|
@@ -185,5 +191,6 @@ export {
|
|
|
185
191
|
encodeMessage,
|
|
186
192
|
encodeSubgroupStream,
|
|
187
193
|
getLegalIncoming,
|
|
188
|
-
getLegalOutgoing
|
|
194
|
+
getLegalOutgoing,
|
|
195
|
+
redactAuthTokens
|
|
189
196
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult, h as SideEffect } from './session-types-B9idsih-.cjs';
|
|
2
2
|
export { P as ProtocolViolation } from './session-types-B9idsih-.cjs';
|
|
3
|
-
import { a as Draft20MessageType, D as Draft20Message } from './types-
|
|
3
|
+
import { a as Draft20MessageType, D as Draft20Message } from './types-CwN7AEoL.cjs';
|
|
4
4
|
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult, h as SideEffect } from './session-types-Dn7b3RZM.js';
|
|
2
2
|
export { P as ProtocolViolation } from './session-types-Dn7b3RZM.js';
|
|
3
|
-
import { a as Draft20MessageType, D as Draft20Message } from './types-
|
|
3
|
+
import { a as Draft20MessageType, D as Draft20Message } from './types-CwN7AEoL.js';
|
|
4
4
|
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/draft20.cjs
CHANGED
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
var _chunkBNIUVOCJcjs = require('./chunk-BNIUVOCJ.cjs');
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
|
|
@@ -55,7 +56,9 @@ var _chunkMAXEHYVBcjs = require('./chunk-MAXEHYVB.cjs');
|
|
|
55
56
|
|
|
56
57
|
|
|
57
58
|
var _chunkBMJMY6FXcjs = require('./chunk-BMJMY6FX.cjs');
|
|
58
|
-
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
var _chunk5IMHJIAZcjs = require('./chunk-5IMHJIAZ.cjs');
|
|
59
62
|
|
|
60
63
|
// src/drafts/draft20/error-codes.ts
|
|
61
64
|
var SessionTerminationCode = {
|
|
@@ -214,4 +217,6 @@ var DRAFT_VERSION = 0xff000014n;
|
|
|
214
217
|
|
|
215
218
|
|
|
216
219
|
|
|
217
|
-
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
exports.BIDIRECTIONAL_MESSAGES = _chunkBMJMY6FXcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkBMJMY6FXcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkBMJMY6FXcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.DataStreamResetCode = DataStreamResetCode; exports.Draft20SessionFSM = _chunkBMJMY6FXcjs.Draft20SessionFSM; exports.MESSAGE_ID_MAP = _chunkBNIUVOCJcjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunkBNIUVOCJcjs.MESSAGE_TYPE_MAP; exports.MSG_FETCH = _chunkBNIUVOCJcjs.MSG_FETCH; exports.MSG_FETCH_OK = _chunkBNIUVOCJcjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunkBNIUVOCJcjs.MSG_GOAWAY; exports.MSG_NAMESPACE = _chunkBNIUVOCJcjs.MSG_NAMESPACE; exports.MSG_NAMESPACE_DONE = _chunkBNIUVOCJcjs.MSG_NAMESPACE_DONE; exports.MSG_PUBLISH = _chunkBNIUVOCJcjs.MSG_PUBLISH; exports.MSG_PUBLISH_DONE = _chunkBNIUVOCJcjs.MSG_PUBLISH_DONE; exports.MSG_PUBLISH_NAMESPACE = _chunkBNIUVOCJcjs.MSG_PUBLISH_NAMESPACE; exports.MSG_PUBLISH_OK = _chunkBNIUVOCJcjs.MSG_PUBLISH_OK; exports.MSG_PUBLISH_SKIPPED = _chunkBNIUVOCJcjs.MSG_PUBLISH_SKIPPED; exports.MSG_PUBLISH_STATE_NOTIFY = _chunkBNIUVOCJcjs.MSG_PUBLISH_STATE_NOTIFY; exports.MSG_REQUEST_ERROR = _chunkBNIUVOCJcjs.MSG_REQUEST_ERROR; exports.MSG_REQUEST_OK = _chunkBNIUVOCJcjs.MSG_REQUEST_OK; exports.MSG_REQUEST_UPDATE = _chunkBNIUVOCJcjs.MSG_REQUEST_UPDATE; exports.MSG_SETUP = _chunkBNIUVOCJcjs.MSG_SETUP; exports.MSG_SUBSCRIBE = _chunkBNIUVOCJcjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_NAMESPACE = _chunkBNIUVOCJcjs.MSG_SUBSCRIBE_NAMESPACE; exports.MSG_SUBSCRIBE_OK = _chunkBNIUVOCJcjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_TRACKS = _chunkBNIUVOCJcjs.MSG_SUBSCRIBE_TRACKS; exports.MSG_TRACK_STATUS = _chunkBNIUVOCJcjs.MSG_TRACK_STATUS; exports.PROTOCOL_STRING = PROTOCOL_STRING; exports.PublishDoneCode = PublishDoneCode; exports.REDACTION_FILL = _chunk5IMHJIAZcjs.REDACTION_FILL; exports.REQUEST_STREAM_OPENERS = _chunkBMJMY6FXcjs.REQUEST_STREAM_OPENERS; exports.RETIRED_PUBLISH_DONE_CODES = RETIRED_PUBLISH_DONE_CODES; exports.RETIRED_REQUEST_ERROR_CODES = RETIRED_REQUEST_ERROR_CODES; exports.RETIRED_SESSION_TERMINATION_CODES = RETIRED_SESSION_TERMINATION_CODES; exports.RequestErrorCode = RequestErrorCode; exports.SERVER_ONLY_MESSAGES = _chunkBMJMY6FXcjs.SERVER_ONLY_MESSAGES; exports.SETUP_OPT_AUTHORITY = _chunkBNIUVOCJcjs.SETUP_OPT_AUTHORITY; exports.SETUP_OPT_AUTHORIZATION_TOKEN = _chunkBNIUVOCJcjs.SETUP_OPT_AUTHORIZATION_TOKEN; exports.SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE = _chunkBNIUVOCJcjs.SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE; exports.SETUP_OPT_MAX_FILTER_RANGES = _chunkBNIUVOCJcjs.SETUP_OPT_MAX_FILTER_RANGES; exports.SETUP_OPT_MAX_REQUEST_UPDATES = _chunkBNIUVOCJcjs.SETUP_OPT_MAX_REQUEST_UPDATES; exports.SETUP_OPT_MOQT_IMPLEMENTATION = _chunkBNIUVOCJcjs.SETUP_OPT_MOQT_IMPLEMENTATION; exports.SETUP_OPT_PATH = _chunkBNIUVOCJcjs.SETUP_OPT_PATH; exports.SessionTerminationCode = SessionTerminationCode; exports.UNKNOWN_STREAM_COUNT = _chunkBNIUVOCJcjs.UNKNOWN_STREAM_COUNT; exports.createDataStreamDecoder = _chunkBNIUVOCJcjs.createDataStreamDecoder; exports.createDraft20Codec = _chunkBNIUVOCJcjs.createDraft20Codec; exports.createDraft20SessionState = _chunkBMJMY6FXcjs.createDraft20SessionState; exports.createFetchStreamDecoder = _chunkBNIUVOCJcjs.createFetchStreamDecoder; exports.createStreamDecoder = _chunkBNIUVOCJcjs.createStreamDecoder; exports.createSubgroupStreamDecoder = _chunkBNIUVOCJcjs.createSubgroupStreamDecoder; exports.decodeDataStream = _chunkBNIUVOCJcjs.decodeDataStream; exports.decodeDatagram = _chunkBNIUVOCJcjs.decodeDatagram; exports.decodeFetchStream = _chunkBNIUVOCJcjs.decodeFetchStream; exports.decodeMessage = _chunkBNIUVOCJcjs.decodeMessage; exports.decodeSubgroupStream = _chunkBNIUVOCJcjs.decodeSubgroupStream; exports.encodeDatagram = _chunkBNIUVOCJcjs.encodeDatagram; exports.encodeFetchStream = _chunkBNIUVOCJcjs.encodeFetchStream; exports.encodeMessage = _chunkBNIUVOCJcjs.encodeMessage; exports.encodeSubgroupStream = _chunkBNIUVOCJcjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkBMJMY6FXcjs.getLegalIncoming; exports.getLegalOutgoing = _chunkBMJMY6FXcjs.getLegalOutgoing; exports.redactAuthTokens = _chunkBNIUVOCJcjs.redactAuthTokens;
|
package/dist/draft20.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 Draft20Codec, U as UNKNOWN_STREAM_COUNT, c as createDraft20Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-76xzrLTL.cjs';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft20DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft20MessageType } from './types-CwN7AEoL.cjs';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft20BaseMessage, i as Draft20Fetch, j as Draft20FetchOk, k as Draft20FillParameters, l as Draft20GoAway, D as Draft20Message, m as Draft20Namespace, n as Draft20NamespaceDone, o as Draft20Params, p as Draft20Publish, q as Draft20PublishDone, r as Draft20PublishNamespace, s as Draft20PublishSkipped, t as Draft20PublishStateNotify, u as Draft20RequestError, v as Draft20RequestOk, w as Draft20RequestUpdate, x as Draft20Setup, y as Draft20SetupOptions, z as Draft20Subscribe, A as Draft20SubscribeNamespace, B as Draft20SubscribeOk, C as Draft20SubscribeTracks, E as Draft20TrackProperties, G as Draft20TrackStatus, H as FetchObjectPayload, L as LargestObject, I as LocationFilter, R as RangeFilter, J as RangeFilterRange, K as Redirect, U as UnknownParam } from './types-CwN7AEoL.cjs';
|
|
4
5
|
export { Draft20SessionFSM, FillFetchStreamPhase, FillFetchStreamState, PublisherSide, RequestKind, createDraft20SessionState } from './draft20-session.cjs';
|
|
5
6
|
export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
6
7
|
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
package/dist/draft20.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 Draft20Codec, U as UNKNOWN_STREAM_COUNT, c as createDraft20Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-mVYqkIUF.js';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft20DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft20MessageType } from './types-CwN7AEoL.js';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft20BaseMessage, i as Draft20Fetch, j as Draft20FetchOk, k as Draft20FillParameters, l as Draft20GoAway, D as Draft20Message, m as Draft20Namespace, n as Draft20NamespaceDone, o as Draft20Params, p as Draft20Publish, q as Draft20PublishDone, r as Draft20PublishNamespace, s as Draft20PublishSkipped, t as Draft20PublishStateNotify, u as Draft20RequestError, v as Draft20RequestOk, w as Draft20RequestUpdate, x as Draft20Setup, y as Draft20SetupOptions, z as Draft20Subscribe, A as Draft20SubscribeNamespace, B as Draft20SubscribeOk, C as Draft20SubscribeTracks, E as Draft20TrackProperties, G as Draft20TrackStatus, H as FetchObjectPayload, L as LargestObject, I as LocationFilter, R as RangeFilter, J as RangeFilterRange, K as Redirect, U as UnknownParam } from './types-CwN7AEoL.js';
|
|
4
5
|
export { Draft20SessionFSM, FillFetchStreamPhase, FillFetchStreamState, PublisherSide, RequestKind, createDraft20SessionState } from './draft20-session.js';
|
|
5
6
|
export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
6
7
|
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
package/dist/draft20.js
CHANGED
|
@@ -42,8 +42,9 @@ import {
|
|
|
42
42
|
encodeDatagram,
|
|
43
43
|
encodeFetchStream,
|
|
44
44
|
encodeMessage,
|
|
45
|
-
encodeSubgroupStream
|
|
46
|
-
|
|
45
|
+
encodeSubgroupStream,
|
|
46
|
+
redactAuthTokens
|
|
47
|
+
} from "./chunk-PJK2ZS3I.js";
|
|
47
48
|
import {
|
|
48
49
|
BIDIRECTIONAL_MESSAGES,
|
|
49
50
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -55,7 +56,9 @@ import {
|
|
|
55
56
|
getLegalIncoming,
|
|
56
57
|
getLegalOutgoing
|
|
57
58
|
} from "./chunk-WX5PU7HF.js";
|
|
58
|
-
import
|
|
59
|
+
import {
|
|
60
|
+
REDACTION_FILL
|
|
61
|
+
} from "./chunk-YRZQVNZO.js";
|
|
59
62
|
|
|
60
63
|
// src/drafts/draft20/error-codes.ts
|
|
61
64
|
var SessionTerminationCode = {
|
|
@@ -182,6 +185,7 @@ export {
|
|
|
182
185
|
MSG_TRACK_STATUS,
|
|
183
186
|
PROTOCOL_STRING,
|
|
184
187
|
PublishDoneCode,
|
|
188
|
+
REDACTION_FILL,
|
|
185
189
|
REQUEST_STREAM_OPENERS,
|
|
186
190
|
RETIRED_PUBLISH_DONE_CODES,
|
|
187
191
|
RETIRED_REQUEST_ERROR_CODES,
|
|
@@ -213,5 +217,6 @@ export {
|
|
|
213
217
|
encodeMessage,
|
|
214
218
|
encodeSubgroupStream,
|
|
215
219
|
getLegalIncoming,
|
|
216
|
-
getLegalOutgoing
|
|
220
|
+
getLegalOutgoing,
|
|
221
|
+
redactAuthTokens
|
|
217
222
|
};
|