@moqtap/codec 0.10.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (262) hide show
  1. package/CHANGELOG.md +175 -0
  2. package/README.md +3 -2
  3. package/dist/auth-redaction-B9JJOlIY.d.cts +100 -0
  4. package/dist/auth-redaction-B9JJOlIY.d.ts +100 -0
  5. package/dist/{chunk-RYKQXBG6.cjs → chunk-27K5BUAG.cjs} +481 -517
  6. package/dist/{chunk-WCPENYNE.js → chunk-3RNQMGKA.js} +359 -390
  7. package/dist/{chunk-TSUZ6GJV.js → chunk-5AWIXOLB.js} +438 -469
  8. package/dist/{chunk-4XLYCT5Q.cjs → chunk-5IMHJIAZ.cjs} +52 -2
  9. package/dist/{chunk-KTNERCTZ.cjs → chunk-5JGZCKJO.cjs} +488 -518
  10. package/dist/{chunk-WCTMPDUX.cjs → chunk-73K4OSAN.cjs} +401 -432
  11. package/dist/{chunk-N2V7Z37J.js → chunk-7VQKRGRD.js} +19 -3
  12. package/dist/{chunk-BIBMDTU5.cjs → chunk-A3UCQOIB.cjs} +486 -517
  13. package/dist/{chunk-K2B3OVFK.js → chunk-A7PDMVXM.js} +24 -3
  14. package/dist/{chunk-VZHL2U2N.cjs → chunk-A7VQO6YC.cjs} +54 -38
  15. package/dist/{chunk-AQ445VV7.cjs → chunk-ACQHZLRZ.cjs} +66 -46
  16. package/dist/{chunk-L5DRACXS.js → chunk-BBICOMW6.js} +25 -3
  17. package/dist/{chunk-T4VWPKDG.cjs → chunk-BNIUVOCJ.cjs} +529 -599
  18. package/dist/{chunk-UKKDOOUO.cjs → chunk-CNC6ANS4.cjs} +58 -37
  19. package/dist/{chunk-OZRK73NQ.js → chunk-FDLQSWHK.js} +433 -469
  20. package/dist/{chunk-IJAF6PAY.js → chunk-FFNOE4UR.js} +19 -3
  21. package/dist/{chunk-CZNW3R5E.cjs → chunk-GMENT63T.cjs} +54 -38
  22. package/dist/{chunk-XCRCAUGI.cjs → chunk-HM7BLRVP.cjs} +291 -297
  23. package/dist/{chunk-XHAP2YST.js → chunk-HZONHFNO.js} +19 -3
  24. package/dist/{chunk-SDJTSMOW.cjs → chunk-ILYABWDK.cjs} +60 -38
  25. package/dist/{chunk-IDV2JYJ6.cjs → chunk-KRSFTZVO.cjs} +56 -40
  26. package/dist/{chunk-RIIA4ALQ.cjs → chunk-KSPH6KMH.cjs} +54 -38
  27. package/dist/{chunk-OUNN4IQB.cjs → chunk-KTY4LAUV.cjs} +482 -497
  28. package/dist/chunk-OBATJBNL.cjs +868 -0
  29. package/dist/{chunk-RZTLQAKF.js → chunk-OJNLJT5D.js} +0 -1
  30. package/dist/{chunk-FT3HDNIB.js → chunk-PJK2ZS3I.js} +467 -537
  31. package/dist/{chunk-G53WYUXL.js → chunk-PSMZKHOC.js} +441 -456
  32. package/dist/{chunk-7RE6KSIY.cjs → chunk-Q5JQGHWY.cjs} +0 -1
  33. package/dist/{chunk-BX2N7TZM.js → chunk-SQTUQY5E.js} +31 -11
  34. package/dist/chunk-T2TCLZZV.js +2304 -0
  35. package/dist/chunk-WB65UG7G.cjs +2304 -0
  36. package/dist/{chunk-CF5DDD3Q.js → chunk-WCRLAKDW.js} +239 -245
  37. package/dist/{chunk-KYVTM5VI.js → chunk-WL2YUEXH.js} +19 -3
  38. package/dist/chunk-XPCBPACE.js +868 -0
  39. package/dist/{chunk-KGDVC4O6.js → chunk-YCNIVZS7.js} +439 -469
  40. package/dist/{chunk-KLPWJU6W.js → chunk-YRZQVNZO.js} +50 -0
  41. package/dist/{codec-DOmAmFkI.d.ts → codec-B-oUU-cp.d.ts} +21 -2
  42. package/dist/{codec-DNmiG2e0.d.cts → codec-B3RpCI9k.d.cts} +21 -2
  43. package/dist/codec-B5pcOS3m.d.cts +38 -0
  44. package/dist/{codec-BNy5syCU.d.ts → codec-BLjxwK2f.d.ts} +21 -2
  45. package/dist/{codec-alVA27Uc.d.ts → codec-BV3CL_3m.d.ts} +21 -2
  46. package/dist/{codec-Czejcmxr.d.cts → codec-BYCDWgED.d.ts} +22 -3
  47. package/dist/{codec-DaXjRrOV.d.ts → codec-Bwqq7ZQT.d.ts} +22 -3
  48. package/dist/{codec-CFWu5KVT.d.cts → codec-BzWxOFby.d.cts} +22 -3
  49. package/dist/codec-C-nJhNNl.d.ts +38 -0
  50. package/dist/{codec-EvybrBuY.d.cts → codec-C11VEPbQ.d.cts} +21 -2
  51. package/dist/codec-C9U0Vzy9.d.cts +68 -0
  52. package/dist/{codec-Cm3D261p.d.ts → codec-CCx22jnd.d.ts} +21 -2
  53. package/dist/{codec-CwZ6OCPP.d.ts → codec-CP3zkfTv.d.ts} +22 -3
  54. package/dist/{codec-BxQTybUX.d.cts → codec-CRmOLDpt.d.ts} +22 -3
  55. package/dist/{codec-DzkdW4kO.d.cts → codec-CUu56DDU.d.cts} +21 -2
  56. package/dist/codec-Cb8mUre3.d.ts +68 -0
  57. package/dist/{codec-f7vxeVIS.d.cts → codec-CemqAQdR.d.cts} +22 -3
  58. package/dist/{codec-gl4_QEva.d.ts → codec-CxMvsVMS.d.ts} +21 -2
  59. package/dist/{codec-Bd60SGKH.d.cts → codec-DIgMVTi4.d.cts} +21 -2
  60. package/dist/{codec--CVeqGQv.d.ts → codec-DYzozF68.d.ts} +21 -2
  61. package/dist/{codec-CWnf8mn_.d.cts → codec-D_O9zxax.d.ts} +22 -3
  62. package/dist/{codec-08ZOr5wI.d.ts → codec-Ddc-QxV6.d.cts} +22 -3
  63. package/dist/{codec-CBdOIfMY.d.ts → codec-DoojMl2z.d.cts} +22 -3
  64. package/dist/{codec-BrTi4K7r.d.cts → codec-DqdjiOQF.d.ts} +22 -3
  65. package/dist/{codec-CXCjya_G.d.cts → codec-Dstemwrq.d.cts} +21 -2
  66. package/dist/{codec-Dl_QIXMz.d.ts → codec-Dt6nuejp.d.ts} +21 -2
  67. package/dist/{codec-Bux_Q40X.d.ts → codec-DuYhd8fP.d.cts} +22 -3
  68. package/dist/{codec-Cfo_z5ET.d.cts → codec-DwNOFgPU.d.cts} +21 -2
  69. package/dist/{codec-guzqtfMk.d.cts → codec-l01BpNhF.d.cts} +21 -2
  70. package/dist/{codec-C3mdsGx3.d.ts → codec-psN2vB6I.d.cts} +22 -3
  71. package/dist/draft07-session.d.cts +3 -3
  72. package/dist/draft07-session.d.ts +3 -3
  73. package/dist/draft07.cjs +48 -4
  74. package/dist/draft07.d.cts +44 -4
  75. package/dist/draft07.d.ts +44 -4
  76. package/dist/draft07.js +49 -5
  77. package/dist/draft08-session.d.cts +3 -3
  78. package/dist/draft08-session.d.ts +3 -3
  79. package/dist/draft08.cjs +76 -3
  80. package/dist/draft08.d.cts +73 -5
  81. package/dist/draft08.d.ts +73 -5
  82. package/dist/draft08.js +77 -4
  83. package/dist/draft09-session.d.cts +3 -3
  84. package/dist/draft09-session.d.ts +3 -3
  85. package/dist/draft09.cjs +76 -3
  86. package/dist/draft09.d.cts +73 -5
  87. package/dist/draft09.d.ts +73 -5
  88. package/dist/draft09.js +77 -4
  89. package/dist/draft10-session.d.cts +3 -3
  90. package/dist/draft10-session.d.ts +3 -3
  91. package/dist/draft10.cjs +76 -3
  92. package/dist/draft10.d.cts +73 -5
  93. package/dist/draft10.d.ts +73 -5
  94. package/dist/draft10.js +77 -4
  95. package/dist/draft11-session.d.cts +3 -3
  96. package/dist/draft11-session.d.ts +3 -3
  97. package/dist/draft11.cjs +104 -3
  98. package/dist/draft11.d.cts +101 -5
  99. package/dist/draft11.d.ts +101 -5
  100. package/dist/draft11.js +105 -4
  101. package/dist/draft12-session.d.cts +3 -3
  102. package/dist/draft12-session.d.ts +3 -3
  103. package/dist/draft12.cjs +113 -3
  104. package/dist/draft12.d.cts +110 -5
  105. package/dist/draft12.d.ts +110 -5
  106. package/dist/draft12.js +114 -4
  107. package/dist/draft13-session.d.cts +3 -3
  108. package/dist/draft13-session.d.ts +3 -3
  109. package/dist/draft13.cjs +105 -3
  110. package/dist/draft13.d.cts +102 -5
  111. package/dist/draft13.d.ts +102 -5
  112. package/dist/draft13.js +106 -4
  113. package/dist/draft14-session.d.cts +3 -3
  114. package/dist/draft14-session.d.ts +3 -3
  115. package/dist/draft14.cjs +107 -3
  116. package/dist/draft14.d.cts +104 -31
  117. package/dist/draft14.d.ts +104 -31
  118. package/dist/draft14.js +108 -4
  119. package/dist/draft15-session.d.cts +4 -4
  120. package/dist/draft15-session.d.ts +4 -4
  121. package/dist/draft15.cjs +69 -3
  122. package/dist/draft15.d.cts +68 -25
  123. package/dist/draft15.d.ts +68 -25
  124. package/dist/draft15.js +70 -4
  125. package/dist/draft16-session.cjs +2 -2
  126. package/dist/draft16-session.d.cts +4 -4
  127. package/dist/draft16-session.d.ts +4 -4
  128. package/dist/draft16-session.js +1 -1
  129. package/dist/draft16.cjs +76 -8
  130. package/dist/draft16.d.cts +70 -16
  131. package/dist/draft16.d.ts +70 -16
  132. package/dist/draft16.js +73 -5
  133. package/dist/draft17-session.d.cts +4 -4
  134. package/dist/draft17-session.d.ts +4 -4
  135. package/dist/draft17.cjs +77 -3
  136. package/dist/draft17.d.cts +75 -6
  137. package/dist/draft17.d.ts +75 -6
  138. package/dist/draft17.js +78 -4
  139. package/dist/draft18-session.d.cts +4 -4
  140. package/dist/draft18-session.d.ts +4 -4
  141. package/dist/draft18.cjs +8 -3
  142. package/dist/draft18.d.cts +6 -5
  143. package/dist/draft18.d.ts +6 -5
  144. package/dist/draft18.js +9 -4
  145. package/dist/draft19-session.d.cts +4 -4
  146. package/dist/draft19-session.d.ts +4 -4
  147. package/dist/draft19.cjs +11 -4
  148. package/dist/draft19.d.cts +6 -5
  149. package/dist/draft19.d.ts +6 -5
  150. package/dist/draft19.js +12 -5
  151. package/dist/draft20-session.d.cts +4 -4
  152. package/dist/draft20-session.d.ts +4 -4
  153. package/dist/draft20.cjs +8 -3
  154. package/dist/draft20.d.cts +6 -5
  155. package/dist/draft20.d.ts +6 -5
  156. package/dist/draft20.js +9 -4
  157. package/dist/draft21-session.cjs +8 -0
  158. package/dist/draft21-session.d.cts +195 -0
  159. package/dist/draft21-session.d.ts +195 -0
  160. package/dist/draft21-session.js +8 -0
  161. package/dist/draft21.cjs +222 -0
  162. package/dist/draft21.d.cts +176 -0
  163. package/dist/draft21.d.ts +176 -0
  164. package/dist/draft21.js +222 -0
  165. package/dist/index.cjs +37 -31
  166. package/dist/index.d.cts +29 -23
  167. package/dist/index.d.ts +29 -23
  168. package/dist/index.js +22 -16
  169. package/dist/{session-types-Dn7b3RZM.d.ts → session-types-Cxx7W8zZ.d.ts} +1 -1
  170. package/dist/{session-types-B9idsih-.d.cts → session-types-DZkI_qFG.d.cts} +1 -1
  171. package/dist/session.cjs +7 -3
  172. package/dist/session.d.cts +11 -9
  173. package/dist/session.d.ts +11 -9
  174. package/dist/session.js +6 -2
  175. package/dist/{types-DG5_iKuv.d.cts → types-2NisMA8_.d.cts} +1 -1
  176. package/dist/{types-DG5_iKuv.d.ts → types-2NisMA8_.d.ts} +1 -1
  177. package/dist/{types-C1rxh-id.d.cts → types-Btp416jt.d.cts} +8 -0
  178. package/dist/{types-C1rxh-id.d.ts → types-Btp416jt.d.ts} +8 -0
  179. package/dist/{types-CZTzbIzQ.d.cts → types-BxTL1NXw.d.cts} +7 -0
  180. package/dist/{types-CZTzbIzQ.d.ts → types-BxTL1NXw.d.ts} +7 -0
  181. package/dist/{types-pShrs3fN.d.cts → types-CuibHYcf.d.cts} +7 -0
  182. package/dist/{types-pShrs3fN.d.ts → types-CuibHYcf.d.ts} +7 -0
  183. package/dist/{types-CY-QWxd-.d.cts → types-CwN7AEoL.d.cts} +13 -1
  184. package/dist/{types-CY-QWxd-.d.ts → types-CwN7AEoL.d.ts} +13 -1
  185. package/dist/{types-D4bmW8rY.d.cts → types-DAnalt5K.d.cts} +7 -0
  186. package/dist/{types-D4bmW8rY.d.ts → types-DAnalt5K.d.ts} +7 -0
  187. package/dist/types-DDwidj2d.d.cts +371 -0
  188. package/dist/types-DDwidj2d.d.ts +371 -0
  189. package/dist/{types-Bg86GGVZ.d.cts → types-DxXNP32l.d.cts} +8 -0
  190. package/dist/{types-Bg86GGVZ.d.ts → types-DxXNP32l.d.ts} +8 -0
  191. package/package.json +15 -3
  192. package/src/core/auth-redaction.ts +190 -0
  193. package/src/core/types.ts +1 -0
  194. package/src/drafts/draft07/codec.ts +40 -0
  195. package/src/drafts/draft07/error-codes.ts +44 -0
  196. package/src/drafts/draft07/index.ts +15 -0
  197. package/src/drafts/draft08/codec.ts +40 -0
  198. package/src/drafts/draft08/error-codes.ts +76 -0
  199. package/src/drafts/draft08/index.ts +21 -0
  200. package/src/drafts/draft09/codec.ts +40 -0
  201. package/src/drafts/draft09/error-codes.ts +76 -0
  202. package/src/drafts/draft09/index.ts +21 -0
  203. package/src/drafts/draft10/codec.ts +40 -0
  204. package/src/drafts/draft10/error-codes.ts +76 -0
  205. package/src/drafts/draft10/index.ts +21 -0
  206. package/src/drafts/draft11/codec.ts +60 -0
  207. package/src/drafts/draft11/error-codes.ts +106 -0
  208. package/src/drafts/draft11/index.ts +23 -0
  209. package/src/drafts/draft12/codec.ts +61 -0
  210. package/src/drafts/draft12/error-codes.ts +116 -0
  211. package/src/drafts/draft12/index.ts +25 -0
  212. package/src/drafts/draft13/codec.ts +69 -11
  213. package/src/drafts/draft13/error-codes.ts +107 -0
  214. package/src/drafts/draft13/index.ts +23 -0
  215. package/src/drafts/draft13/types.ts +1 -1
  216. package/src/drafts/draft14/codec.ts +65 -4
  217. package/src/drafts/draft14/data-streams.ts +331 -259
  218. package/src/drafts/draft14/error-codes.ts +109 -0
  219. package/src/drafts/draft14/index.ts +23 -0
  220. package/src/drafts/draft15/codec.ts +65 -8
  221. package/src/drafts/draft15/data-streams.ts +489 -444
  222. package/src/drafts/draft15/error-codes.ts +66 -0
  223. package/src/drafts/draft15/index.ts +15 -0
  224. package/src/drafts/draft15/types.ts +7 -0
  225. package/src/drafts/draft16/codec.ts +146 -52
  226. package/src/drafts/draft16/data-streams.ts +513 -442
  227. package/src/drafts/draft16/error-codes.ts +68 -0
  228. package/src/drafts/draft16/index.ts +15 -0
  229. package/src/drafts/draft16/messages.ts +4 -4
  230. package/src/drafts/draft16/session-fsm.ts +0 -1
  231. package/src/drafts/draft16/types.ts +22 -8
  232. package/src/drafts/draft17/codec.ts +73 -12
  233. package/src/drafts/draft17/data-streams.ts +567 -488
  234. package/src/drafts/draft17/index.ts +15 -0
  235. package/src/drafts/draft17/types.ts +7 -0
  236. package/src/drafts/draft18/codec.ts +66 -9
  237. package/src/drafts/draft18/data-streams.ts +570 -482
  238. package/src/drafts/draft18/index.ts +3 -0
  239. package/src/drafts/draft18/types.ts +16 -8
  240. package/src/drafts/draft19/codec.ts +70 -10
  241. package/src/drafts/draft19/data-streams.ts +570 -482
  242. package/src/drafts/draft19/error-codes.ts +3 -1
  243. package/src/drafts/draft19/index.ts +3 -0
  244. package/src/drafts/draft19/messages.ts +3 -1
  245. package/src/drafts/draft19/types.ts +22 -11
  246. package/src/drafts/draft20/codec.ts +90 -23
  247. package/src/drafts/draft20/data-streams.ts +610 -563
  248. package/src/drafts/draft20/index.ts +3 -0
  249. package/src/drafts/draft20/types.ts +14 -2
  250. package/src/drafts/draft21/codec.ts +1816 -0
  251. package/src/drafts/draft21/data-streams.ts +1338 -0
  252. package/src/drafts/draft21/error-codes.ts +135 -0
  253. package/src/drafts/draft21/index.ts +168 -0
  254. package/src/drafts/draft21/messages.ts +68 -0
  255. package/src/drafts/draft21/rules.ts +107 -0
  256. package/src/drafts/draft21/session-fsm.ts +1063 -0
  257. package/src/drafts/draft21/session.ts +21 -0
  258. package/src/drafts/draft21/types.ts +473 -0
  259. package/src/index.ts +9 -1
  260. package/src/session.ts +4 -0
  261. package/dist/codec-BJ7BHuiZ.d.ts +0 -18
  262. package/dist/codec-C6Mx4bwz.d.cts +0 -18
@@ -1,10 +1,11 @@
1
- export { D as Draft12Codec, c as createDraft12Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-guzqtfMk.cjs';
1
+ export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-B9JJOlIY.cjs';
2
+ export { D as Draft12Codec, c as createDraft12Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-l01BpNhF.cjs';
2
3
  import { b as Draft12DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft12MessageType, D as Draft12Message } from './types-CI_SX4Xe.cjs';
3
4
  export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft12Announce, g as Draft12AnnounceCancel, h as Draft12AnnounceError, i as Draft12AnnounceOk, j as Draft12BaseMessage, k as Draft12ClientSetup, l as Draft12Fetch, m as Draft12FetchCancel, n as Draft12FetchError, o as Draft12FetchOk, p as Draft12GoAway, q as Draft12MaxRequestId, r as Draft12Params, s as Draft12Publish, t as Draft12PublishError, u as Draft12PublishOk, v as Draft12RequestsBlocked, w as Draft12ServerSetup, x as Draft12SetupParams, y as Draft12Subscribe, z as Draft12SubscribeAnnounces, B as Draft12SubscribeAnnouncesError, C as Draft12SubscribeAnnouncesOk, E as Draft12SubscribeDone, G as Draft12SubscribeError, H as Draft12SubscribeOk, I as Draft12SubscribeUpdate, J as Draft12TrackStatus, K as Draft12TrackStatusRequest, L as Draft12Unannounce, M as Draft12Unsubscribe, N as Draft12UnsubscribeAnnounces, O as FetchObjectPayload, P as FetchStreamHeader, Q as JoiningFetch, R as LargestLocation, T as ObjectPayload, U as StandaloneFetch, V as SubgroupStreamHeader, W as UnknownParam } from './types-CI_SX4Xe.cjs';
4
5
  export { createDraft12SessionState } from './draft12-session.cjs';
5
- 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
- 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';
7
- import { b as DecodeResult } from './types-DG5_iKuv.cjs';
6
+ import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-DZkI_qFG.cjs';
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-DZkI_qFG.cjs';
8
+ import { b as DecodeResult } from './types-2NisMA8_.cjs';
8
9
 
9
10
  declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
10
11
  declare function encodeDatagram(dg: DatagramObject): Uint8Array;
@@ -14,6 +15,110 @@ declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>
14
15
  declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
15
16
  declare function decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft12DataStream>;
16
17
 
18
+ declare const SessionErrorCode: {
19
+ readonly NoError: 0n;
20
+ readonly InternalError: 1n;
21
+ readonly Unauthorized: 2n;
22
+ readonly ProtocolViolation: 3n;
23
+ readonly InvalidRequestId: 4n;
24
+ readonly DuplicateTrackAlias: 5n;
25
+ readonly KeyValueFormattingError: 6n;
26
+ readonly TooManyRequests: 7n;
27
+ readonly InvalidPath: 8n;
28
+ readonly MalformedPath: 9n;
29
+ readonly GoawayTimeout: 16n;
30
+ readonly ControlMessageTimeout: 17n;
31
+ readonly DataStreamTimeout: 18n;
32
+ readonly AuthTokenCacheOverflow: 19n;
33
+ readonly DuplicateAuthTokenAlias: 20n;
34
+ readonly VersionNegotiationFailed: 21n;
35
+ readonly MalformedAuthToken: 22n;
36
+ readonly UnknownAuthTokenAlias: 23n;
37
+ readonly ExpiredAuthToken: 24n;
38
+ };
39
+ type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
40
+ declare const SubscribeErrorCode: {
41
+ readonly InternalError: 0n;
42
+ readonly Unauthorized: 1n;
43
+ readonly Timeout: 2n;
44
+ readonly NotSupported: 3n;
45
+ readonly TrackDoesNotExist: 4n;
46
+ readonly InvalidRange: 5n;
47
+ readonly MalformedAuthToken: 16n;
48
+ readonly ExpiredAuthToken: 18n;
49
+ };
50
+ type SubscribeErrorCodeValue = (typeof SubscribeErrorCode)[keyof typeof SubscribeErrorCode];
51
+ declare const SubscribeDoneStatusCode: {
52
+ readonly InternalError: 0n;
53
+ readonly Unauthorized: 1n;
54
+ readonly TrackEnded: 2n;
55
+ readonly SubscriptionEnded: 3n;
56
+ readonly GoingAway: 4n;
57
+ readonly Expired: 5n;
58
+ readonly TooFarBehind: 6n;
59
+ readonly MalformedTrack: 7n;
60
+ };
61
+ type SubscribeDoneStatusCodeValue = (typeof SubscribeDoneStatusCode)[keyof typeof SubscribeDoneStatusCode];
62
+ declare const PublishErrorCode: {
63
+ readonly InternalError: 0n;
64
+ readonly Unauthorized: 1n;
65
+ readonly Timeout: 2n;
66
+ readonly NotSupported: 3n;
67
+ readonly Uninterested: 4n;
68
+ };
69
+ type PublishErrorCodeValue = (typeof PublishErrorCode)[keyof typeof PublishErrorCode];
70
+ declare const FetchErrorCode: {
71
+ readonly InternalError: 0n;
72
+ readonly Unauthorized: 1n;
73
+ readonly Timeout: 2n;
74
+ readonly NotSupported: 3n;
75
+ readonly TrackDoesNotExist: 4n;
76
+ readonly InvalidRange: 5n;
77
+ readonly NoObjects: 6n;
78
+ readonly InvalidJoiningRequestId: 7n;
79
+ readonly UnknownStatusInRange: 8n;
80
+ readonly MalformedTrack: 9n;
81
+ readonly MalformedAuthToken: 16n;
82
+ readonly ExpiredAuthToken: 18n;
83
+ };
84
+ type FetchErrorCodeValue = (typeof FetchErrorCode)[keyof typeof FetchErrorCode];
85
+ declare const AnnounceErrorCode: {
86
+ readonly InternalError: 0n;
87
+ readonly Unauthorized: 1n;
88
+ readonly Timeout: 2n;
89
+ readonly NotSupported: 3n;
90
+ readonly Uninterested: 4n;
91
+ readonly MalformedAuthToken: 16n;
92
+ readonly ExpiredAuthToken: 18n;
93
+ };
94
+ type AnnounceErrorCodeValue = (typeof AnnounceErrorCode)[keyof typeof AnnounceErrorCode];
95
+ declare const SubscribeAnnouncesErrorCode: {
96
+ readonly InternalError: 0n;
97
+ readonly Unauthorized: 1n;
98
+ readonly Timeout: 2n;
99
+ readonly NotSupported: 3n;
100
+ readonly NamespacePrefixUnknown: 4n;
101
+ readonly NamespacePrefixOverlap: 5n;
102
+ readonly MalformedAuthToken: 16n;
103
+ readonly ExpiredAuthToken: 18n;
104
+ };
105
+ type SubscribeAnnouncesErrorCodeValue = (typeof SubscribeAnnouncesErrorCode)[keyof typeof SubscribeAnnouncesErrorCode];
106
+ declare const StreamResetErrorCode: {
107
+ readonly InternalError: 0n;
108
+ readonly Cancelled: 1n;
109
+ readonly DeliveryTimeout: 2n;
110
+ readonly SessionClosed: 3n;
111
+ };
112
+ type StreamResetErrorCodeValue = (typeof StreamResetErrorCode)[keyof typeof StreamResetErrorCode];
113
+ declare const TrackStatusCode: {
114
+ readonly InProgress: 0n;
115
+ readonly TrackDoesNotExist: 1n;
116
+ readonly NotYetBegun: 2n;
117
+ readonly Finished: 3n;
118
+ readonly RelayStatusUnavailable: 4n;
119
+ };
120
+ type TrackStatusCodeValue = (typeof TrackStatusCode)[keyof typeof TrackStatusCode];
121
+
17
122
  declare const MSG_SUBSCRIBE_UPDATE = 2n;
18
123
  declare const MSG_SUBSCRIBE = 3n;
19
124
  declare const MSG_SUBSCRIBE_OK = 4n;
@@ -113,4 +218,4 @@ declare class Draft12SessionFSM {
113
218
 
114
219
  declare const DRAFT_VERSION = 4278190092n;
115
220
 
116
- export { AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft12DataStream, Draft12Message, Draft12MessageType, Draft12SessionFSM, FetchState, FetchStream, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_ANNOUNCE, MSG_ANNOUNCE_CANCEL, MSG_ANNOUNCE_ERROR, MSG_ANNOUNCE_OK, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_ERROR, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_ANNOUNCES, MSG_SUBSCRIBE_ANNOUNCES_ERROR, MSG_SUBSCRIBE_ANNOUNCES_OK, MSG_SUBSCRIBE_DONE, MSG_SUBSCRIBE_ERROR, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_TRACK_STATUS_REQUEST, MSG_UNANNOUNCE, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_ANNOUNCES, PARAM_AUTHORIZATION_TOKEN, PARAM_DELIVERY_TIMEOUT, SERVER_ONLY_MESSAGES, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_PATH, SessionPhase, SubgroupStream, SubscriptionState, TransitionResult, VARINT_FRAMED_MESSAGES, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
221
+ export { AnnounceErrorCode, type AnnounceErrorCodeValue, AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft12DataStream, Draft12Message, Draft12MessageType, Draft12SessionFSM, FetchErrorCode, type FetchErrorCodeValue, FetchState, FetchStream, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_ANNOUNCE, MSG_ANNOUNCE_CANCEL, MSG_ANNOUNCE_ERROR, MSG_ANNOUNCE_OK, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_ERROR, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_ANNOUNCES, MSG_SUBSCRIBE_ANNOUNCES_ERROR, MSG_SUBSCRIBE_ANNOUNCES_OK, MSG_SUBSCRIBE_DONE, MSG_SUBSCRIBE_ERROR, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_TRACK_STATUS_REQUEST, MSG_UNANNOUNCE, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_ANNOUNCES, PARAM_AUTHORIZATION_TOKEN, PARAM_DELIVERY_TIMEOUT, PublishErrorCode, type PublishErrorCodeValue, SERVER_ONLY_MESSAGES, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_PATH, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, StreamResetErrorCode, type StreamResetErrorCodeValue, SubgroupStream, SubscribeAnnouncesErrorCode, type SubscribeAnnouncesErrorCodeValue, SubscribeDoneStatusCode, type SubscribeDoneStatusCodeValue, SubscribeErrorCode, type SubscribeErrorCodeValue, SubscriptionState, TrackStatusCode, type TrackStatusCodeValue, TransitionResult, VARINT_FRAMED_MESSAGES, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
package/dist/draft12.d.ts CHANGED
@@ -1,10 +1,11 @@
1
- export { D as Draft12Codec, c as createDraft12Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-gl4_QEva.js';
1
+ export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-B9JJOlIY.js';
2
+ export { D as Draft12Codec, c as createDraft12Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-CxMvsVMS.js';
2
3
  import { b as Draft12DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft12MessageType, D as Draft12Message } from './types-CI_SX4Xe.js';
3
4
  export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft12Announce, g as Draft12AnnounceCancel, h as Draft12AnnounceError, i as Draft12AnnounceOk, j as Draft12BaseMessage, k as Draft12ClientSetup, l as Draft12Fetch, m as Draft12FetchCancel, n as Draft12FetchError, o as Draft12FetchOk, p as Draft12GoAway, q as Draft12MaxRequestId, r as Draft12Params, s as Draft12Publish, t as Draft12PublishError, u as Draft12PublishOk, v as Draft12RequestsBlocked, w as Draft12ServerSetup, x as Draft12SetupParams, y as Draft12Subscribe, z as Draft12SubscribeAnnounces, B as Draft12SubscribeAnnouncesError, C as Draft12SubscribeAnnouncesOk, E as Draft12SubscribeDone, G as Draft12SubscribeError, H as Draft12SubscribeOk, I as Draft12SubscribeUpdate, J as Draft12TrackStatus, K as Draft12TrackStatusRequest, L as Draft12Unannounce, M as Draft12Unsubscribe, N as Draft12UnsubscribeAnnounces, O as FetchObjectPayload, P as FetchStreamHeader, Q as JoiningFetch, R as LargestLocation, T as ObjectPayload, U as StandaloneFetch, V as SubgroupStreamHeader, W as UnknownParam } from './types-CI_SX4Xe.js';
4
5
  export { createDraft12SessionState } from './draft12-session.js';
5
- 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
- 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';
7
- import { b as DecodeResult } from './types-DG5_iKuv.js';
6
+ import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-Cxx7W8zZ.js';
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-Cxx7W8zZ.js';
8
+ import { b as DecodeResult } from './types-2NisMA8_.js';
8
9
 
9
10
  declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
10
11
  declare function encodeDatagram(dg: DatagramObject): Uint8Array;
@@ -14,6 +15,110 @@ declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>
14
15
  declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
15
16
  declare function decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft12DataStream>;
16
17
 
18
+ declare const SessionErrorCode: {
19
+ readonly NoError: 0n;
20
+ readonly InternalError: 1n;
21
+ readonly Unauthorized: 2n;
22
+ readonly ProtocolViolation: 3n;
23
+ readonly InvalidRequestId: 4n;
24
+ readonly DuplicateTrackAlias: 5n;
25
+ readonly KeyValueFormattingError: 6n;
26
+ readonly TooManyRequests: 7n;
27
+ readonly InvalidPath: 8n;
28
+ readonly MalformedPath: 9n;
29
+ readonly GoawayTimeout: 16n;
30
+ readonly ControlMessageTimeout: 17n;
31
+ readonly DataStreamTimeout: 18n;
32
+ readonly AuthTokenCacheOverflow: 19n;
33
+ readonly DuplicateAuthTokenAlias: 20n;
34
+ readonly VersionNegotiationFailed: 21n;
35
+ readonly MalformedAuthToken: 22n;
36
+ readonly UnknownAuthTokenAlias: 23n;
37
+ readonly ExpiredAuthToken: 24n;
38
+ };
39
+ type SessionErrorCodeValue = (typeof SessionErrorCode)[keyof typeof SessionErrorCode];
40
+ declare const SubscribeErrorCode: {
41
+ readonly InternalError: 0n;
42
+ readonly Unauthorized: 1n;
43
+ readonly Timeout: 2n;
44
+ readonly NotSupported: 3n;
45
+ readonly TrackDoesNotExist: 4n;
46
+ readonly InvalidRange: 5n;
47
+ readonly MalformedAuthToken: 16n;
48
+ readonly ExpiredAuthToken: 18n;
49
+ };
50
+ type SubscribeErrorCodeValue = (typeof SubscribeErrorCode)[keyof typeof SubscribeErrorCode];
51
+ declare const SubscribeDoneStatusCode: {
52
+ readonly InternalError: 0n;
53
+ readonly Unauthorized: 1n;
54
+ readonly TrackEnded: 2n;
55
+ readonly SubscriptionEnded: 3n;
56
+ readonly GoingAway: 4n;
57
+ readonly Expired: 5n;
58
+ readonly TooFarBehind: 6n;
59
+ readonly MalformedTrack: 7n;
60
+ };
61
+ type SubscribeDoneStatusCodeValue = (typeof SubscribeDoneStatusCode)[keyof typeof SubscribeDoneStatusCode];
62
+ declare const PublishErrorCode: {
63
+ readonly InternalError: 0n;
64
+ readonly Unauthorized: 1n;
65
+ readonly Timeout: 2n;
66
+ readonly NotSupported: 3n;
67
+ readonly Uninterested: 4n;
68
+ };
69
+ type PublishErrorCodeValue = (typeof PublishErrorCode)[keyof typeof PublishErrorCode];
70
+ declare const FetchErrorCode: {
71
+ readonly InternalError: 0n;
72
+ readonly Unauthorized: 1n;
73
+ readonly Timeout: 2n;
74
+ readonly NotSupported: 3n;
75
+ readonly TrackDoesNotExist: 4n;
76
+ readonly InvalidRange: 5n;
77
+ readonly NoObjects: 6n;
78
+ readonly InvalidJoiningRequestId: 7n;
79
+ readonly UnknownStatusInRange: 8n;
80
+ readonly MalformedTrack: 9n;
81
+ readonly MalformedAuthToken: 16n;
82
+ readonly ExpiredAuthToken: 18n;
83
+ };
84
+ type FetchErrorCodeValue = (typeof FetchErrorCode)[keyof typeof FetchErrorCode];
85
+ declare const AnnounceErrorCode: {
86
+ readonly InternalError: 0n;
87
+ readonly Unauthorized: 1n;
88
+ readonly Timeout: 2n;
89
+ readonly NotSupported: 3n;
90
+ readonly Uninterested: 4n;
91
+ readonly MalformedAuthToken: 16n;
92
+ readonly ExpiredAuthToken: 18n;
93
+ };
94
+ type AnnounceErrorCodeValue = (typeof AnnounceErrorCode)[keyof typeof AnnounceErrorCode];
95
+ declare const SubscribeAnnouncesErrorCode: {
96
+ readonly InternalError: 0n;
97
+ readonly Unauthorized: 1n;
98
+ readonly Timeout: 2n;
99
+ readonly NotSupported: 3n;
100
+ readonly NamespacePrefixUnknown: 4n;
101
+ readonly NamespacePrefixOverlap: 5n;
102
+ readonly MalformedAuthToken: 16n;
103
+ readonly ExpiredAuthToken: 18n;
104
+ };
105
+ type SubscribeAnnouncesErrorCodeValue = (typeof SubscribeAnnouncesErrorCode)[keyof typeof SubscribeAnnouncesErrorCode];
106
+ declare const StreamResetErrorCode: {
107
+ readonly InternalError: 0n;
108
+ readonly Cancelled: 1n;
109
+ readonly DeliveryTimeout: 2n;
110
+ readonly SessionClosed: 3n;
111
+ };
112
+ type StreamResetErrorCodeValue = (typeof StreamResetErrorCode)[keyof typeof StreamResetErrorCode];
113
+ declare const TrackStatusCode: {
114
+ readonly InProgress: 0n;
115
+ readonly TrackDoesNotExist: 1n;
116
+ readonly NotYetBegun: 2n;
117
+ readonly Finished: 3n;
118
+ readonly RelayStatusUnavailable: 4n;
119
+ };
120
+ type TrackStatusCodeValue = (typeof TrackStatusCode)[keyof typeof TrackStatusCode];
121
+
17
122
  declare const MSG_SUBSCRIBE_UPDATE = 2n;
18
123
  declare const MSG_SUBSCRIBE = 3n;
19
124
  declare const MSG_SUBSCRIBE_OK = 4n;
@@ -113,4 +218,4 @@ declare class Draft12SessionFSM {
113
218
 
114
219
  declare const DRAFT_VERSION = 4278190092n;
115
220
 
116
- export { AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft12DataStream, Draft12Message, Draft12MessageType, Draft12SessionFSM, FetchState, FetchStream, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_ANNOUNCE, MSG_ANNOUNCE_CANCEL, MSG_ANNOUNCE_ERROR, MSG_ANNOUNCE_OK, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_ERROR, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_ANNOUNCES, MSG_SUBSCRIBE_ANNOUNCES_ERROR, MSG_SUBSCRIBE_ANNOUNCES_OK, MSG_SUBSCRIBE_DONE, MSG_SUBSCRIBE_ERROR, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_TRACK_STATUS_REQUEST, MSG_UNANNOUNCE, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_ANNOUNCES, PARAM_AUTHORIZATION_TOKEN, PARAM_DELIVERY_TIMEOUT, SERVER_ONLY_MESSAGES, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_PATH, SessionPhase, SubgroupStream, SubscriptionState, TransitionResult, VARINT_FRAMED_MESSAGES, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
221
+ export { AnnounceErrorCode, type AnnounceErrorCodeValue, AnnounceState, BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DatagramObject, Draft12DataStream, Draft12Message, Draft12MessageType, Draft12SessionFSM, FetchErrorCode, type FetchErrorCodeValue, FetchState, FetchStream, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_ANNOUNCE, MSG_ANNOUNCE_CANCEL, MSG_ANNOUNCE_ERROR, MSG_ANNOUNCE_OK, MSG_CLIENT_SETUP, MSG_FETCH, MSG_FETCH_CANCEL, MSG_FETCH_ERROR, MSG_FETCH_OK, MSG_GOAWAY, MSG_MAX_REQUEST_ID, MSG_PUBLISH, MSG_PUBLISH_ERROR, MSG_PUBLISH_OK, MSG_REQUESTS_BLOCKED, MSG_SERVER_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_ANNOUNCES, MSG_SUBSCRIBE_ANNOUNCES_ERROR, MSG_SUBSCRIBE_ANNOUNCES_OK, MSG_SUBSCRIBE_DONE, MSG_SUBSCRIBE_ERROR, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_UPDATE, MSG_TRACK_STATUS, MSG_TRACK_STATUS_REQUEST, MSG_UNANNOUNCE, MSG_UNSUBSCRIBE, MSG_UNSUBSCRIBE_ANNOUNCES, PARAM_AUTHORIZATION_TOKEN, PARAM_DELIVERY_TIMEOUT, PublishErrorCode, type PublishErrorCodeValue, SERVER_ONLY_MESSAGES, SETUP_PARAM_MAX_REQUEST_ID, SETUP_PARAM_PATH, SessionErrorCode, type SessionErrorCodeValue, SessionPhase, StreamResetErrorCode, type StreamResetErrorCodeValue, SubgroupStream, SubscribeAnnouncesErrorCode, type SubscribeAnnouncesErrorCodeValue, SubscribeDoneStatusCode, type SubscribeDoneStatusCodeValue, SubscribeErrorCode, type SubscribeErrorCodeValue, SubscriptionState, TrackStatusCode, type TrackStatusCodeValue, TransitionResult, VARINT_FRAMED_MESSAGES, ValidationResult, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
package/dist/draft12.js CHANGED
@@ -45,8 +45,9 @@ import {
45
45
  encodeDatagram,
46
46
  encodeFetchStream,
47
47
  encodeMessage,
48
- encodeSubgroupStream
49
- } from "./chunk-L5DRACXS.js";
48
+ encodeSubgroupStream,
49
+ redactAuthTokens
50
+ } from "./chunk-BBICOMW6.js";
50
51
  import {
51
52
  BIDIRECTIONAL_MESSAGES,
52
53
  CLIENT_ONLY_MESSAGES,
@@ -57,16 +58,116 @@ import {
57
58
  getLegalIncoming,
58
59
  getLegalOutgoing
59
60
  } from "./chunk-LORZMJJB.js";
60
- import "./chunk-KLPWJU6W.js";
61
+ import {
62
+ REDACTION_FILL
63
+ } from "./chunk-YRZQVNZO.js";
64
+
65
+ // src/drafts/draft12/error-codes.ts
66
+ var SessionErrorCode = {
67
+ NoError: 0x0n,
68
+ InternalError: 0x1n,
69
+ Unauthorized: 0x2n,
70
+ ProtocolViolation: 0x3n,
71
+ InvalidRequestId: 0x4n,
72
+ DuplicateTrackAlias: 0x5n,
73
+ KeyValueFormattingError: 0x6n,
74
+ TooManyRequests: 0x7n,
75
+ InvalidPath: 0x8n,
76
+ MalformedPath: 0x9n,
77
+ GoawayTimeout: 0x10n,
78
+ ControlMessageTimeout: 0x11n,
79
+ DataStreamTimeout: 0x12n,
80
+ AuthTokenCacheOverflow: 0x13n,
81
+ DuplicateAuthTokenAlias: 0x14n,
82
+ VersionNegotiationFailed: 0x15n,
83
+ MalformedAuthToken: 0x16n,
84
+ UnknownAuthTokenAlias: 0x17n,
85
+ ExpiredAuthToken: 0x18n
86
+ };
87
+ var SubscribeErrorCode = {
88
+ InternalError: 0x0n,
89
+ Unauthorized: 0x1n,
90
+ Timeout: 0x2n,
91
+ NotSupported: 0x3n,
92
+ TrackDoesNotExist: 0x4n,
93
+ InvalidRange: 0x5n,
94
+ MalformedAuthToken: 0x10n,
95
+ ExpiredAuthToken: 0x12n
96
+ };
97
+ var SubscribeDoneStatusCode = {
98
+ InternalError: 0x0n,
99
+ Unauthorized: 0x1n,
100
+ TrackEnded: 0x2n,
101
+ SubscriptionEnded: 0x3n,
102
+ GoingAway: 0x4n,
103
+ Expired: 0x5n,
104
+ TooFarBehind: 0x6n,
105
+ MalformedTrack: 0x7n
106
+ };
107
+ var PublishErrorCode = {
108
+ InternalError: 0x0n,
109
+ Unauthorized: 0x1n,
110
+ Timeout: 0x2n,
111
+ NotSupported: 0x3n,
112
+ Uninterested: 0x4n
113
+ };
114
+ var FetchErrorCode = {
115
+ InternalError: 0x0n,
116
+ Unauthorized: 0x1n,
117
+ Timeout: 0x2n,
118
+ NotSupported: 0x3n,
119
+ TrackDoesNotExist: 0x4n,
120
+ InvalidRange: 0x5n,
121
+ NoObjects: 0x6n,
122
+ InvalidJoiningRequestId: 0x7n,
123
+ UnknownStatusInRange: 0x8n,
124
+ MalformedTrack: 0x9n,
125
+ MalformedAuthToken: 0x10n,
126
+ ExpiredAuthToken: 0x12n
127
+ };
128
+ var AnnounceErrorCode = {
129
+ InternalError: 0x0n,
130
+ Unauthorized: 0x1n,
131
+ Timeout: 0x2n,
132
+ NotSupported: 0x3n,
133
+ Uninterested: 0x4n,
134
+ MalformedAuthToken: 0x10n,
135
+ ExpiredAuthToken: 0x12n
136
+ };
137
+ var SubscribeAnnouncesErrorCode = {
138
+ InternalError: 0x0n,
139
+ Unauthorized: 0x1n,
140
+ Timeout: 0x2n,
141
+ NotSupported: 0x3n,
142
+ NamespacePrefixUnknown: 0x4n,
143
+ NamespacePrefixOverlap: 0x5n,
144
+ MalformedAuthToken: 0x10n,
145
+ ExpiredAuthToken: 0x12n
146
+ };
147
+ var StreamResetErrorCode = {
148
+ InternalError: 0x0n,
149
+ Cancelled: 0x1n,
150
+ DeliveryTimeout: 0x2n,
151
+ SessionClosed: 0x3n
152
+ };
153
+ var TrackStatusCode = {
154
+ InProgress: 0x00n,
155
+ TrackDoesNotExist: 0x01n,
156
+ NotYetBegun: 0x02n,
157
+ Finished: 0x03n,
158
+ RelayStatusUnavailable: 0x04n
159
+ };
61
160
 
62
161
  // src/drafts/draft12/index.ts
63
162
  var DRAFT_VERSION = 0xff00000cn;
64
163
  export {
164
+ AnnounceErrorCode,
65
165
  BIDIRECTIONAL_MESSAGES,
66
166
  CLIENT_ONLY_MESSAGES,
67
167
  CONTROL_MESSAGES,
68
168
  DRAFT_VERSION,
69
169
  Draft12SessionFSM,
170
+ FetchErrorCode,
70
171
  MESSAGE_ID_MAP,
71
172
  MESSAGE_TYPE_MAP,
72
173
  MSG_ANNOUNCE,
@@ -100,9 +201,17 @@ export {
100
201
  MSG_UNSUBSCRIBE_ANNOUNCES,
101
202
  PARAM_AUTHORIZATION_TOKEN,
102
203
  PARAM_DELIVERY_TIMEOUT,
204
+ PublishErrorCode,
205
+ REDACTION_FILL,
103
206
  SERVER_ONLY_MESSAGES,
104
207
  SETUP_PARAM_MAX_REQUEST_ID,
105
208
  SETUP_PARAM_PATH,
209
+ SessionErrorCode,
210
+ StreamResetErrorCode,
211
+ SubscribeAnnouncesErrorCode,
212
+ SubscribeDoneStatusCode,
213
+ SubscribeErrorCode,
214
+ TrackStatusCode,
106
215
  VARINT_FRAMED_MESSAGES,
107
216
  createDraft12Codec,
108
217
  createDraft12SessionState,
@@ -117,5 +226,6 @@ export {
117
226
  encodeMessage,
118
227
  encodeSubgroupStream,
119
228
  getLegalIncoming,
120
- getLegalOutgoing
229
+ getLegalOutgoing,
230
+ redactAuthTokens
121
231
  };
@@ -1,7 +1,7 @@
1
- import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
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';
1
+ import { k as SessionStateOptionsRole, a as SessionState } from './session-types-DZkI_qFG.cjs';
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-DZkI_qFG.cjs';
3
3
  import { D as Draft13Message, a as Draft13MessageType } from './types-DjxexghA.cjs';
4
- import './types-DG5_iKuv.cjs';
4
+ import './types-2NisMA8_.cjs';
5
5
 
6
6
  declare function createDraft13SessionState(role: SessionStateOptionsRole): SessionState<Draft13Message, Draft13MessageType>;
7
7
 
@@ -1,7 +1,7 @@
1
- import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
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';
1
+ import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Cxx7W8zZ.js';
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-Cxx7W8zZ.js';
3
3
  import { D as Draft13Message, a as Draft13MessageType } from './types-DjxexghA.js';
4
- import './types-DG5_iKuv.js';
4
+ import './types-2NisMA8_.js';
5
5
 
6
6
  declare function createDraft13SessionState(role: SessionStateOptionsRole): SessionState<Draft13Message, Draft13MessageType>;
7
7
 
package/dist/draft13.cjs CHANGED
@@ -47,7 +47,8 @@
47
47
 
48
48
 
49
49
 
50
- var _chunkAQ445VV7cjs = require('./chunk-AQ445VV7.cjs');
50
+
51
+ var _chunkACQHZLRZcjs = require('./chunk-ACQHZLRZ.cjs');
51
52
 
52
53
 
53
54
 
@@ -58,7 +59,98 @@ var _chunkAQ445VV7cjs = require('./chunk-AQ445VV7.cjs');
58
59
 
59
60
 
60
61
  var _chunkLV5C6MECcjs = require('./chunk-LV5C6MEC.cjs');
61
- require('./chunk-4XLYCT5Q.cjs');
62
+
63
+
64
+ var _chunk5IMHJIAZcjs = require('./chunk-5IMHJIAZ.cjs');
65
+
66
+ // src/drafts/draft13/error-codes.ts
67
+ var SessionErrorCode = {
68
+ NoError: 0x0n,
69
+ InternalError: 0x1n,
70
+ Unauthorized: 0x2n,
71
+ ProtocolViolation: 0x3n,
72
+ InvalidRequestId: 0x4n,
73
+ DuplicateTrackAlias: 0x5n,
74
+ KeyValueFormattingError: 0x6n,
75
+ TooManyRequests: 0x7n,
76
+ InvalidPath: 0x8n,
77
+ MalformedPath: 0x9n,
78
+ GoawayTimeout: 0x10n,
79
+ ControlMessageTimeout: 0x11n,
80
+ DataStreamTimeout: 0x12n,
81
+ AuthTokenCacheOverflow: 0x13n,
82
+ DuplicateAuthTokenAlias: 0x14n,
83
+ VersionNegotiationFailed: 0x15n,
84
+ MalformedAuthToken: 0x16n,
85
+ UnknownAuthTokenAlias: 0x17n,
86
+ ExpiredAuthToken: 0x18n
87
+ };
88
+ var SubscribeErrorCode = {
89
+ InternalError: 0x0n,
90
+ Unauthorized: 0x1n,
91
+ Timeout: 0x2n,
92
+ NotSupported: 0x3n,
93
+ TrackDoesNotExist: 0x4n,
94
+ InvalidRange: 0x5n,
95
+ MalformedAuthToken: 0x10n,
96
+ ExpiredAuthToken: 0x12n
97
+ };
98
+ var SubscribeDoneStatusCode = {
99
+ InternalError: 0x0n,
100
+ Unauthorized: 0x1n,
101
+ TrackEnded: 0x2n,
102
+ SubscriptionEnded: 0x3n,
103
+ GoingAway: 0x4n,
104
+ Expired: 0x5n,
105
+ TooFarBehind: 0x6n,
106
+ MalformedTrack: 0x7n
107
+ };
108
+ var PublishErrorCode = {
109
+ InternalError: 0x0n,
110
+ Unauthorized: 0x1n,
111
+ Timeout: 0x2n,
112
+ NotSupported: 0x3n,
113
+ Uninterested: 0x4n
114
+ };
115
+ var FetchErrorCode = {
116
+ InternalError: 0x0n,
117
+ Unauthorized: 0x1n,
118
+ Timeout: 0x2n,
119
+ NotSupported: 0x3n,
120
+ TrackDoesNotExist: 0x4n,
121
+ InvalidRange: 0x5n,
122
+ NoObjects: 0x6n,
123
+ InvalidJoiningRequestId: 0x7n,
124
+ UnknownStatusInRange: 0x8n,
125
+ MalformedTrack: 0x9n,
126
+ MalformedAuthToken: 0x10n,
127
+ ExpiredAuthToken: 0x12n
128
+ };
129
+ var AnnounceErrorCode = {
130
+ InternalError: 0x0n,
131
+ Unauthorized: 0x1n,
132
+ Timeout: 0x2n,
133
+ NotSupported: 0x3n,
134
+ Uninterested: 0x4n,
135
+ MalformedAuthToken: 0x10n,
136
+ ExpiredAuthToken: 0x12n
137
+ };
138
+ var SubscribeNamespaceErrorCode = {
139
+ InternalError: 0x0n,
140
+ Unauthorized: 0x1n,
141
+ Timeout: 0x2n,
142
+ NotSupported: 0x3n,
143
+ NamespacePrefixUnknown: 0x4n,
144
+ NamespacePrefixOverlap: 0x5n,
145
+ MalformedAuthToken: 0x10n,
146
+ ExpiredAuthToken: 0x12n
147
+ };
148
+ var StreamResetErrorCode = {
149
+ InternalError: 0x0n,
150
+ Cancelled: 0x1n,
151
+ DeliveryTimeout: 0x2n,
152
+ SessionClosed: 0x3n
153
+ };
62
154
 
63
155
  // src/drafts/draft13/index.ts
64
156
  var DRAFT_VERSION = 0xff00000dn;
@@ -120,4 +212,14 @@ var DRAFT_VERSION = 0xff00000dn;
120
212
 
121
213
 
122
214
 
123
- exports.BIDIRECTIONAL_MESSAGES = _chunkLV5C6MECcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkLV5C6MECcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkLV5C6MECcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.Draft13SessionFSM = _chunkLV5C6MECcjs.Draft13SessionFSM; exports.MESSAGE_ID_MAP = _chunkAQ445VV7cjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunkAQ445VV7cjs.MESSAGE_TYPE_MAP; exports.MSG_ANNOUNCE = _chunkAQ445VV7cjs.MSG_ANNOUNCE; exports.MSG_ANNOUNCE_CANCEL = _chunkAQ445VV7cjs.MSG_ANNOUNCE_CANCEL; exports.MSG_ANNOUNCE_ERROR = _chunkAQ445VV7cjs.MSG_ANNOUNCE_ERROR; exports.MSG_ANNOUNCE_OK = _chunkAQ445VV7cjs.MSG_ANNOUNCE_OK; exports.MSG_CLIENT_SETUP = _chunkAQ445VV7cjs.MSG_CLIENT_SETUP; exports.MSG_FETCH = _chunkAQ445VV7cjs.MSG_FETCH; exports.MSG_FETCH_CANCEL = _chunkAQ445VV7cjs.MSG_FETCH_CANCEL; exports.MSG_FETCH_ERROR = _chunkAQ445VV7cjs.MSG_FETCH_ERROR; exports.MSG_FETCH_OK = _chunkAQ445VV7cjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunkAQ445VV7cjs.MSG_GOAWAY; exports.MSG_MAX_REQUEST_ID = _chunkAQ445VV7cjs.MSG_MAX_REQUEST_ID; exports.MSG_PUBLISH = _chunkAQ445VV7cjs.MSG_PUBLISH; exports.MSG_PUBLISH_ERROR = _chunkAQ445VV7cjs.MSG_PUBLISH_ERROR; exports.MSG_PUBLISH_OK = _chunkAQ445VV7cjs.MSG_PUBLISH_OK; exports.MSG_REQUESTS_BLOCKED = _chunkAQ445VV7cjs.MSG_REQUESTS_BLOCKED; exports.MSG_SERVER_SETUP = _chunkAQ445VV7cjs.MSG_SERVER_SETUP; exports.MSG_SUBSCRIBE = _chunkAQ445VV7cjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_DONE = _chunkAQ445VV7cjs.MSG_SUBSCRIBE_DONE; exports.MSG_SUBSCRIBE_ERROR = _chunkAQ445VV7cjs.MSG_SUBSCRIBE_ERROR; exports.MSG_SUBSCRIBE_NAMESPACE = _chunkAQ445VV7cjs.MSG_SUBSCRIBE_NAMESPACE; exports.MSG_SUBSCRIBE_NAMESPACE_ERROR = _chunkAQ445VV7cjs.MSG_SUBSCRIBE_NAMESPACE_ERROR; exports.MSG_SUBSCRIBE_NAMESPACE_OK = _chunkAQ445VV7cjs.MSG_SUBSCRIBE_NAMESPACE_OK; exports.MSG_SUBSCRIBE_OK = _chunkAQ445VV7cjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_UPDATE = _chunkAQ445VV7cjs.MSG_SUBSCRIBE_UPDATE; exports.MSG_TRACK_STATUS = _chunkAQ445VV7cjs.MSG_TRACK_STATUS; exports.MSG_TRACK_STATUS_ERROR = _chunkAQ445VV7cjs.MSG_TRACK_STATUS_ERROR; exports.MSG_TRACK_STATUS_OK = _chunkAQ445VV7cjs.MSG_TRACK_STATUS_OK; exports.MSG_UNANNOUNCE = _chunkAQ445VV7cjs.MSG_UNANNOUNCE; exports.MSG_UNSUBSCRIBE = _chunkAQ445VV7cjs.MSG_UNSUBSCRIBE; exports.MSG_UNSUBSCRIBE_NAMESPACE = _chunkAQ445VV7cjs.MSG_UNSUBSCRIBE_NAMESPACE; exports.PARAM_AUTHORIZATION_TOKEN = _chunkAQ445VV7cjs.PARAM_AUTHORIZATION_TOKEN; exports.PARAM_DELIVERY_TIMEOUT = _chunkAQ445VV7cjs.PARAM_DELIVERY_TIMEOUT; exports.SERVER_ONLY_MESSAGES = _chunkLV5C6MECcjs.SERVER_ONLY_MESSAGES; exports.SETUP_PARAM_MAX_REQUEST_ID = _chunkAQ445VV7cjs.SETUP_PARAM_MAX_REQUEST_ID; exports.SETUP_PARAM_PATH = _chunkAQ445VV7cjs.SETUP_PARAM_PATH; exports.VARINT_FRAMED_MESSAGES = _chunkAQ445VV7cjs.VARINT_FRAMED_MESSAGES; exports.createDraft13Codec = _chunkAQ445VV7cjs.createDraft13Codec; exports.createDraft13SessionState = _chunkLV5C6MECcjs.createDraft13SessionState; exports.createStreamDecoder = _chunkAQ445VV7cjs.createStreamDecoder; exports.decodeDataStream = _chunkAQ445VV7cjs.decodeDataStream; exports.decodeDatagram = _chunkAQ445VV7cjs.decodeDatagram; exports.decodeFetchStream = _chunkAQ445VV7cjs.decodeFetchStream; exports.decodeMessage = _chunkAQ445VV7cjs.decodeMessage; exports.decodeSubgroupStream = _chunkAQ445VV7cjs.decodeSubgroupStream; exports.encodeDatagram = _chunkAQ445VV7cjs.encodeDatagram; exports.encodeFetchStream = _chunkAQ445VV7cjs.encodeFetchStream; exports.encodeMessage = _chunkAQ445VV7cjs.encodeMessage; exports.encodeSubgroupStream = _chunkAQ445VV7cjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkLV5C6MECcjs.getLegalIncoming; exports.getLegalOutgoing = _chunkLV5C6MECcjs.getLegalOutgoing;
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+ exports.AnnounceErrorCode = AnnounceErrorCode; exports.BIDIRECTIONAL_MESSAGES = _chunkLV5C6MECcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkLV5C6MECcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkLV5C6MECcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.Draft13SessionFSM = _chunkLV5C6MECcjs.Draft13SessionFSM; exports.FetchErrorCode = FetchErrorCode; exports.MESSAGE_ID_MAP = _chunkACQHZLRZcjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunkACQHZLRZcjs.MESSAGE_TYPE_MAP; exports.MSG_ANNOUNCE = _chunkACQHZLRZcjs.MSG_ANNOUNCE; exports.MSG_ANNOUNCE_CANCEL = _chunkACQHZLRZcjs.MSG_ANNOUNCE_CANCEL; exports.MSG_ANNOUNCE_ERROR = _chunkACQHZLRZcjs.MSG_ANNOUNCE_ERROR; exports.MSG_ANNOUNCE_OK = _chunkACQHZLRZcjs.MSG_ANNOUNCE_OK; exports.MSG_CLIENT_SETUP = _chunkACQHZLRZcjs.MSG_CLIENT_SETUP; exports.MSG_FETCH = _chunkACQHZLRZcjs.MSG_FETCH; exports.MSG_FETCH_CANCEL = _chunkACQHZLRZcjs.MSG_FETCH_CANCEL; exports.MSG_FETCH_ERROR = _chunkACQHZLRZcjs.MSG_FETCH_ERROR; exports.MSG_FETCH_OK = _chunkACQHZLRZcjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunkACQHZLRZcjs.MSG_GOAWAY; exports.MSG_MAX_REQUEST_ID = _chunkACQHZLRZcjs.MSG_MAX_REQUEST_ID; exports.MSG_PUBLISH = _chunkACQHZLRZcjs.MSG_PUBLISH; exports.MSG_PUBLISH_ERROR = _chunkACQHZLRZcjs.MSG_PUBLISH_ERROR; exports.MSG_PUBLISH_OK = _chunkACQHZLRZcjs.MSG_PUBLISH_OK; exports.MSG_REQUESTS_BLOCKED = _chunkACQHZLRZcjs.MSG_REQUESTS_BLOCKED; exports.MSG_SERVER_SETUP = _chunkACQHZLRZcjs.MSG_SERVER_SETUP; exports.MSG_SUBSCRIBE = _chunkACQHZLRZcjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_DONE = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_DONE; exports.MSG_SUBSCRIBE_ERROR = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_ERROR; exports.MSG_SUBSCRIBE_NAMESPACE = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_NAMESPACE; exports.MSG_SUBSCRIBE_NAMESPACE_ERROR = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_NAMESPACE_ERROR; exports.MSG_SUBSCRIBE_NAMESPACE_OK = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_NAMESPACE_OK; exports.MSG_SUBSCRIBE_OK = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_UPDATE = _chunkACQHZLRZcjs.MSG_SUBSCRIBE_UPDATE; exports.MSG_TRACK_STATUS = _chunkACQHZLRZcjs.MSG_TRACK_STATUS; exports.MSG_TRACK_STATUS_ERROR = _chunkACQHZLRZcjs.MSG_TRACK_STATUS_ERROR; exports.MSG_TRACK_STATUS_OK = _chunkACQHZLRZcjs.MSG_TRACK_STATUS_OK; exports.MSG_UNANNOUNCE = _chunkACQHZLRZcjs.MSG_UNANNOUNCE; exports.MSG_UNSUBSCRIBE = _chunkACQHZLRZcjs.MSG_UNSUBSCRIBE; exports.MSG_UNSUBSCRIBE_NAMESPACE = _chunkACQHZLRZcjs.MSG_UNSUBSCRIBE_NAMESPACE; exports.PARAM_AUTHORIZATION_TOKEN = _chunkACQHZLRZcjs.PARAM_AUTHORIZATION_TOKEN; exports.PARAM_DELIVERY_TIMEOUT = _chunkACQHZLRZcjs.PARAM_DELIVERY_TIMEOUT; exports.PublishErrorCode = PublishErrorCode; exports.REDACTION_FILL = _chunk5IMHJIAZcjs.REDACTION_FILL; exports.SERVER_ONLY_MESSAGES = _chunkLV5C6MECcjs.SERVER_ONLY_MESSAGES; exports.SETUP_PARAM_MAX_REQUEST_ID = _chunkACQHZLRZcjs.SETUP_PARAM_MAX_REQUEST_ID; exports.SETUP_PARAM_PATH = _chunkACQHZLRZcjs.SETUP_PARAM_PATH; exports.SessionErrorCode = SessionErrorCode; exports.StreamResetErrorCode = StreamResetErrorCode; exports.SubscribeDoneStatusCode = SubscribeDoneStatusCode; exports.SubscribeErrorCode = SubscribeErrorCode; exports.SubscribeNamespaceErrorCode = SubscribeNamespaceErrorCode; exports.VARINT_FRAMED_MESSAGES = _chunkACQHZLRZcjs.VARINT_FRAMED_MESSAGES; exports.createDraft13Codec = _chunkACQHZLRZcjs.createDraft13Codec; exports.createDraft13SessionState = _chunkLV5C6MECcjs.createDraft13SessionState; exports.createStreamDecoder = _chunkACQHZLRZcjs.createStreamDecoder; exports.decodeDataStream = _chunkACQHZLRZcjs.decodeDataStream; exports.decodeDatagram = _chunkACQHZLRZcjs.decodeDatagram; exports.decodeFetchStream = _chunkACQHZLRZcjs.decodeFetchStream; exports.decodeMessage = _chunkACQHZLRZcjs.decodeMessage; exports.decodeSubgroupStream = _chunkACQHZLRZcjs.decodeSubgroupStream; exports.encodeDatagram = _chunkACQHZLRZcjs.encodeDatagram; exports.encodeFetchStream = _chunkACQHZLRZcjs.encodeFetchStream; exports.encodeMessage = _chunkACQHZLRZcjs.encodeMessage; exports.encodeSubgroupStream = _chunkACQHZLRZcjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkLV5C6MECcjs.getLegalIncoming; exports.getLegalOutgoing = _chunkLV5C6MECcjs.getLegalOutgoing; exports.redactAuthTokens = _chunkACQHZLRZcjs.redactAuthTokens;