@moqtap/codec 0.4.2 → 0.5.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 (164) hide show
  1. package/dist/chunk-A33U4WVS.cjs +1993 -0
  2. package/dist/chunk-A655PHFX.cjs +446 -0
  3. package/dist/{chunk-UJU63EFY.cjs → chunk-BAG6YWCP.cjs} +2 -3
  4. package/dist/{chunk-2UTVXWFF.js → chunk-COWGGUL4.js} +2 -3
  5. package/dist/{chunk-4IVZZOY3.js → chunk-CXFAQKL3.js} +2 -3
  6. package/dist/chunk-DLSGOZ6P.js +1993 -0
  7. package/dist/{chunk-SDWRXXOO.cjs → chunk-HO44OANK.cjs} +2 -3
  8. package/dist/{chunk-Q46ZURKX.js → chunk-HYI6LFMD.js} +2 -3
  9. package/dist/chunk-IWYKDCXP.js +446 -0
  10. package/dist/{chunk-WPFBK7UX.cjs → chunk-JB5VDJ2V.cjs} +4 -6
  11. package/dist/{chunk-2SGE5GMU.cjs → chunk-JTRU76JN.cjs} +4 -4
  12. package/dist/{chunk-TKBYPIN7.js → chunk-NZ7GYEMT.js} +4 -6
  13. package/dist/{chunk-5O764MBD.cjs → chunk-OGZTQA24.cjs} +6 -6
  14. package/dist/{chunk-76774UFF.js → chunk-Q5D6OW6Q.js} +4 -4
  15. package/dist/{chunk-XS77RBY7.js → chunk-RZ3UML47.js} +2 -4
  16. package/dist/{chunk-3XKO6PCR.cjs → chunk-SIYYMFCC.cjs} +2 -3
  17. package/dist/{chunk-Z6U26IRI.js → chunk-UP4XPH4J.js} +6 -6
  18. package/dist/{chunk-OKG2HT25.cjs → chunk-WMJVSBBE.cjs} +2 -4
  19. package/dist/{codec-CewFCsEy.d.ts → codec-3ZgEK-Yj.d.ts} +1 -1
  20. package/dist/{codec-C-Yk2RNa.d.ts → codec-6s9d5yZm.d.ts} +2 -2
  21. package/dist/{codec-w8z2j_uo.d.cts → codec-B6ouUJrm.d.cts} +2 -2
  22. package/dist/{codec-3Ppy_5Gd.d.ts → codec-BhW5CGZq.d.ts} +1 -1
  23. package/dist/{codec-wtt6WF1K.d.ts → codec-Bp4HPezr.d.ts} +1 -1
  24. package/dist/{codec-BB0U8MF2.d.cts → codec-BsSNjvB3.d.cts} +2 -2
  25. package/dist/codec-BvSmr-Jp.d.ts +30 -0
  26. package/dist/{codec-BU0gaSZm.d.ts → codec-BvzKRqiP.d.ts} +2 -2
  27. package/dist/{codec-D8REY9TB.d.ts → codec-BzRIVIzS.d.ts} +2 -2
  28. package/dist/{codec-DDUBJGn0.d.cts → codec-C17JvsEU.d.cts} +1 -1
  29. package/dist/{codec-CpBWhz9f.d.cts → codec-CBLLytyP.d.cts} +2 -2
  30. package/dist/{codec-DNfml-se.d.ts → codec-Cbv3sG2y.d.ts} +2 -2
  31. package/dist/{codec-R9TJCq-E.d.cts → codec-CzBmYisK.d.cts} +1 -1
  32. package/dist/{codec-CFWQY9Lj.d.cts → codec-D2YMCU11.d.cts} +1 -1
  33. package/dist/{codec-BN6jk0Td.d.cts → codec-D5Ss123f.d.cts} +2 -2
  34. package/dist/{codec-j819z_hL.d.cts → codec-DS-As0Pp.d.cts} +1 -1
  35. package/dist/{codec-D2QVSH9D.d.ts → codec-D_9X0i31.d.ts} +2 -2
  36. package/dist/{codec-z6_2PSzi.d.cts → codec-DbpLHKXN.d.cts} +2 -2
  37. package/dist/{codec-BHHfBTnV.d.ts → codec-DqHwYWM-.d.ts} +2 -2
  38. package/dist/{codec-iMEwV1UO.d.ts → codec-GayA_uN0.d.ts} +2 -2
  39. package/dist/codec-MxIhLDR5.d.cts +30 -0
  40. package/dist/{codec-DoOGjjDq.d.cts → codec-R28KwiGM.d.cts} +2 -2
  41. package/dist/{codec-ZwV-Njt6.d.ts → codec-Tdey03Bo.d.ts} +1 -1
  42. package/dist/{codec-BO5Go0Lm.d.cts → codec-yJ_axwtp.d.cts} +2 -2
  43. package/dist/draft07-session.d.cts +3 -3
  44. package/dist/draft07-session.d.ts +3 -3
  45. package/dist/draft07.d.cts +3 -3
  46. package/dist/draft07.d.ts +3 -3
  47. package/dist/draft08-session.d.cts +3 -3
  48. package/dist/draft08-session.d.ts +3 -3
  49. package/dist/draft08.d.cts +4 -4
  50. package/dist/draft08.d.ts +4 -4
  51. package/dist/draft09-session.d.cts +3 -3
  52. package/dist/draft09-session.d.ts +3 -3
  53. package/dist/draft09.d.cts +4 -4
  54. package/dist/draft09.d.ts +4 -4
  55. package/dist/draft10-session.d.cts +3 -3
  56. package/dist/draft10-session.d.ts +3 -3
  57. package/dist/draft10.d.cts +4 -4
  58. package/dist/draft10.d.ts +4 -4
  59. package/dist/draft11-session.d.cts +4 -4
  60. package/dist/draft11-session.d.ts +4 -4
  61. package/dist/draft11.cjs +2 -2
  62. package/dist/draft11.d.cts +6 -6
  63. package/dist/draft11.d.ts +6 -6
  64. package/dist/draft11.js +1 -1
  65. package/dist/draft12-session.d.cts +4 -4
  66. package/dist/draft12-session.d.ts +4 -4
  67. package/dist/draft12.cjs +2 -2
  68. package/dist/draft12.d.cts +6 -6
  69. package/dist/draft12.d.ts +6 -6
  70. package/dist/draft12.js +1 -1
  71. package/dist/draft13-session.d.cts +4 -4
  72. package/dist/draft13-session.d.ts +4 -4
  73. package/dist/draft13.cjs +2 -2
  74. package/dist/draft13.d.cts +6 -6
  75. package/dist/draft13.d.ts +6 -6
  76. package/dist/draft13.js +1 -1
  77. package/dist/draft14-session.d.cts +4 -4
  78. package/dist/draft14-session.d.ts +4 -4
  79. package/dist/draft14.cjs +2 -2
  80. package/dist/draft14.d.cts +6 -6
  81. package/dist/draft14.d.ts +6 -6
  82. package/dist/draft14.js +1 -1
  83. package/dist/draft15-session.d.cts +4 -4
  84. package/dist/draft15-session.d.ts +4 -4
  85. package/dist/draft15.cjs +2 -2
  86. package/dist/draft15.d.cts +6 -6
  87. package/dist/draft15.d.ts +6 -6
  88. package/dist/draft15.js +1 -1
  89. package/dist/draft16-session.d.cts +4 -4
  90. package/dist/draft16-session.d.ts +4 -4
  91. package/dist/draft16.cjs +2 -2
  92. package/dist/draft16.d.cts +6 -6
  93. package/dist/draft16.d.ts +6 -6
  94. package/dist/draft16.js +1 -1
  95. package/dist/draft17-session.d.cts +4 -4
  96. package/dist/draft17-session.d.ts +4 -4
  97. package/dist/draft17.cjs +2 -2
  98. package/dist/draft17.d.cts +5 -5
  99. package/dist/draft17.d.ts +5 -5
  100. package/dist/draft17.js +1 -1
  101. package/dist/draft18-session.cjs +8 -0
  102. package/dist/draft18-session.d.cts +50 -0
  103. package/dist/draft18-session.d.ts +50 -0
  104. package/dist/draft18-session.js +8 -0
  105. package/dist/draft18.cjs +179 -0
  106. package/dist/draft18.d.cts +126 -0
  107. package/dist/draft18.d.ts +126 -0
  108. package/dist/draft18.js +179 -0
  109. package/dist/index.cjs +21 -15
  110. package/dist/index.d.cts +26 -21
  111. package/dist/index.d.ts +26 -21
  112. package/dist/index.js +14 -8
  113. package/dist/{session-types-X-IYEGoG.d.ts → session-types-DBpCRtrL.d.ts} +1 -1
  114. package/dist/{session-types-C7UONex5.d.cts → session-types-sBaTRwDh.d.cts} +1 -1
  115. package/dist/session.cjs +5 -1
  116. package/dist/session.d.cts +12 -10
  117. package/dist/session.d.ts +12 -10
  118. package/dist/session.js +5 -1
  119. package/dist/{types-DuyE0ygT.d.cts → types-Bio-91Rt.d.cts} +1 -1
  120. package/dist/{types-DuyE0ygT.d.ts → types-Bio-91Rt.d.ts} +1 -1
  121. package/dist/{types-DuxfOYiO.d.cts → types-CPaYBsMG.d.cts} +1 -1
  122. package/dist/{types-DuxfOYiO.d.ts → types-CPaYBsMG.d.ts} +1 -1
  123. package/dist/{types-DrQpTW1G.d.cts → types-CXlSn0I9.d.cts} +1 -1
  124. package/dist/{types-DrQpTW1G.d.ts → types-CXlSn0I9.d.ts} +1 -1
  125. package/dist/{types--Q7_DcvP.d.cts → types-Ck45Ex5S.d.cts} +1 -1
  126. package/dist/{types--Q7_DcvP.d.ts → types-Ck45Ex5S.d.ts} +1 -1
  127. package/dist/{types-BFpFNM_m.d.cts → types-Cm9fjeYC.d.cts} +1 -1
  128. package/dist/{types-BFpFNM_m.d.ts → types-Cm9fjeYC.d.ts} +1 -1
  129. package/dist/{types-DuIO7cWK.d.cts → types-CnBuq68e.d.cts} +1 -1
  130. package/dist/{types-DuIO7cWK.d.ts → types-CnBuq68e.d.ts} +1 -1
  131. package/dist/types-Cqp10JtB.d.cts +249 -0
  132. package/dist/types-Cqp10JtB.d.ts +249 -0
  133. package/dist/{types-Br7fm2mf.d.cts → types-D9eiB_9A.d.cts} +2 -2
  134. package/dist/{types-Br7fm2mf.d.ts → types-D9eiB_9A.d.ts} +2 -2
  135. package/dist/{types--FGt0sAp.d.cts → types-DjmrHp_s.d.cts} +1 -1
  136. package/dist/{types--FGt0sAp.d.ts → types-DjmrHp_s.d.ts} +1 -1
  137. package/package.json +14 -2
  138. package/src/core/types.ts +13 -1
  139. package/src/drafts/draft11/codec.ts +2 -3
  140. package/src/drafts/draft11/types.ts +1 -1
  141. package/src/drafts/draft12/codec.ts +4 -6
  142. package/src/drafts/draft12/types.ts +1 -1
  143. package/src/drafts/draft13/codec.ts +2 -3
  144. package/src/drafts/draft13/types.ts +1 -1
  145. package/src/drafts/draft14/codec.ts +4 -4
  146. package/src/drafts/draft14/types.ts +1 -1
  147. package/src/drafts/draft15/codec.ts +2 -4
  148. package/src/drafts/draft15/types.ts +1 -1
  149. package/src/drafts/draft16/codec.ts +2 -3
  150. package/src/drafts/draft16/types.ts +1 -1
  151. package/src/drafts/draft17/codec.ts +6 -6
  152. package/src/drafts/draft17/error-codes.ts +72 -0
  153. package/src/drafts/draft17/types.ts +2 -2
  154. package/src/drafts/draft18/codec.ts +1310 -0
  155. package/src/drafts/draft18/data-streams.ts +996 -0
  156. package/src/drafts/draft18/error-codes.ts +75 -0
  157. package/src/drafts/draft18/index.ts +122 -0
  158. package/src/drafts/draft18/messages.ts +56 -0
  159. package/src/drafts/draft18/rules.ts +85 -0
  160. package/src/drafts/draft18/session-fsm.ts +451 -0
  161. package/src/drafts/draft18/session.ts +15 -0
  162. package/src/drafts/draft18/types.ts +347 -0
  163. package/src/index.ts +9 -1
  164. package/src/session.ts +4 -0
@@ -0,0 +1,126 @@
1
+ export { D as Draft18Codec, c as createDraft18Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-MxIhLDR5.cjs';
2
+ 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-Cqp10JtB.cjs';
3
+ 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-Cqp10JtB.cjs';
4
+ export { Draft18SessionFSM, createDraft18SessionState } from './draft18-session.cjs';
5
+ export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-sBaTRwDh.cjs';
6
+ import { b as DecodeResult } from './types-CnBuq68e.cjs';
7
+
8
+ declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
9
+ declare function encodeDatagram(dg: DatagramObject): Uint8Array;
10
+ declare function encodeFetchStream(stream: FetchStream): Uint8Array;
11
+ declare function decodeSubgroupStream(bytes: Uint8Array): DecodeResult<SubgroupStream>;
12
+ declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>;
13
+ declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
14
+ declare function decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft18DataStream>;
15
+ declare function createSubgroupStreamDecoder(): TransformStream<Uint8Array, SubgroupStreamHeader | ObjectPayload>;
16
+ declare function createFetchStreamDecoder(): TransformStream<Uint8Array, FetchStreamHeader | ObjectPayload>;
17
+ declare function createDataStreamDecoder(): TransformStream<Uint8Array, DataStreamEvent>;
18
+
19
+ declare const SessionTerminationCode: {
20
+ readonly NoError: 0n;
21
+ readonly InternalError: 1n;
22
+ readonly Unauthorized: 2n;
23
+ readonly ProtocolViolation: 3n;
24
+ readonly InvalidRequestId: 4n;
25
+ readonly DuplicateTrackAlias: 5n;
26
+ readonly KeyValueFormattingError: 6n;
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
+ readonly InvalidAuthority: 25n;
39
+ readonly MalformedAuthority: 26n;
40
+ };
41
+ type SessionTerminationCodeValue = (typeof SessionTerminationCode)[keyof typeof SessionTerminationCode];
42
+ declare const RequestErrorCode: {
43
+ readonly InternalError: 0n;
44
+ readonly Unauthorized: 1n;
45
+ readonly Timeout: 2n;
46
+ readonly NotSupported: 3n;
47
+ readonly MalformedAuthToken: 4n;
48
+ readonly ExpiredAuthToken: 5n;
49
+ readonly GoingAway: 6n;
50
+ readonly ExcessiveLoad: 9n;
51
+ readonly DoesNotExist: 16n;
52
+ readonly InvalidRange: 17n;
53
+ readonly MalformedTrack: 18n;
54
+ readonly DuplicateSubscription: 25n;
55
+ readonly Uninterested: 32n;
56
+ readonly PrefixOverlap: 48n;
57
+ readonly NamespaceTooLarge: 49n;
58
+ readonly InvalidJoiningRequestId: 50n;
59
+ readonly UnsupportedExtension: 51n;
60
+ readonly Redirect: 52n;
61
+ };
62
+ type RequestErrorCodeValue = (typeof RequestErrorCode)[keyof typeof RequestErrorCode];
63
+ declare const PublishDoneCode: {
64
+ readonly InternalError: 0n;
65
+ readonly Unauthorized: 1n;
66
+ readonly TrackEnded: 2n;
67
+ readonly SubscriptionEnded: 3n;
68
+ readonly GoingAway: 4n;
69
+ readonly TooFarBehind: 5n;
70
+ readonly Expired: 6n;
71
+ readonly UpdateFailed: 8n;
72
+ readonly ExcessiveLoad: 9n;
73
+ readonly MalformedTrack: 18n;
74
+ };
75
+ type PublishDoneCodeValue = (typeof PublishDoneCode)[keyof typeof PublishDoneCode];
76
+ declare const DataStreamResetCode: {
77
+ readonly InternalError: 0n;
78
+ readonly Cancelled: 1n;
79
+ readonly DeliveryTimeout: 2n;
80
+ readonly SessionClosed: 3n;
81
+ readonly GoingAway: 4n;
82
+ readonly TooFarBehind: 5n;
83
+ readonly UnknownObjectStatus: 6n;
84
+ readonly ExpiredAuthToken: 7n;
85
+ readonly ExcessiveLoad: 9n;
86
+ readonly MalformedTrack: 18n;
87
+ };
88
+ type DataStreamResetCodeValue = (typeof DataStreamResetCode)[keyof typeof DataStreamResetCode];
89
+
90
+ declare const MSG_REQUEST_UPDATE = 2n;
91
+ declare const MSG_SUBSCRIBE = 3n;
92
+ declare const MSG_SUBSCRIBE_OK = 4n;
93
+ declare const MSG_REQUEST_ERROR = 5n;
94
+ declare const MSG_PUBLISH_NAMESPACE = 6n;
95
+ declare const MSG_REQUEST_OK = 7n;
96
+ declare const MSG_NAMESPACE = 8n;
97
+ declare const MSG_PUBLISH_DONE = 11n;
98
+ declare const MSG_TRACK_STATUS = 13n;
99
+ declare const MSG_NAMESPACE_DONE = 14n;
100
+ declare const MSG_PUBLISH_BLOCKED = 15n;
101
+ declare const MSG_GOAWAY = 16n;
102
+ declare const MSG_FETCH = 22n;
103
+ declare const MSG_FETCH_OK = 24n;
104
+ declare const MSG_PUBLISH = 29n;
105
+ declare const MSG_PUBLISH_OK = 7n;
106
+ declare const MSG_SUBSCRIBE_NAMESPACE = 80n;
107
+ declare const MSG_SUBSCRIBE_TRACKS = 81n;
108
+ declare const MSG_SETUP = 12032n;
109
+ declare const SETUP_OPT_PATH = 1n;
110
+ declare const SETUP_OPT_AUTHORIZATION_TOKEN = 3n;
111
+ declare const SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE = 4n;
112
+ declare const SETUP_OPT_AUTHORITY = 5n;
113
+ declare const SETUP_OPT_MOQT_IMPLEMENTATION = 7n;
114
+ declare const MESSAGE_TYPE_MAP: ReadonlyMap<bigint, string>;
115
+ declare const MESSAGE_ID_MAP: ReadonlyMap<string, bigint>;
116
+
117
+ declare const CONTROL_MESSAGES: ReadonlySet<Draft18MessageType>;
118
+ declare const CLIENT_ONLY_MESSAGES: ReadonlySet<Draft18MessageType>;
119
+ declare const SERVER_ONLY_MESSAGES: ReadonlySet<Draft18MessageType>;
120
+ declare const BIDIRECTIONAL_MESSAGES: ReadonlySet<Draft18MessageType>;
121
+ declare function getLegalOutgoing(phase: string, _role: 'client' | 'server'): Set<Draft18MessageType>;
122
+ declare function getLegalIncoming(phase: string, role: 'client' | 'server'): Set<Draft18MessageType>;
123
+
124
+ declare const DRAFT_VERSION = 4278190098n;
125
+
126
+ export { BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DataStreamEvent, DataStreamResetCode, type DataStreamResetCodeValue, DatagramObject, Draft18DataStream, Draft18MessageType, FetchStream, FetchStreamHeader, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_FETCH, MSG_FETCH_OK, MSG_GOAWAY, MSG_NAMESPACE, MSG_NAMESPACE_DONE, MSG_PUBLISH, MSG_PUBLISH_BLOCKED, MSG_PUBLISH_DONE, MSG_PUBLISH_NAMESPACE, MSG_PUBLISH_OK, MSG_REQUEST_ERROR, MSG_REQUEST_OK, MSG_REQUEST_UPDATE, MSG_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_NAMESPACE, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_TRACKS, MSG_TRACK_STATUS, ObjectPayload, PublishDoneCode, type PublishDoneCodeValue, RequestErrorCode, type RequestErrorCodeValue, SERVER_ONLY_MESSAGES, SETUP_OPT_AUTHORITY, SETUP_OPT_AUTHORIZATION_TOKEN, SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE, SETUP_OPT_MOQT_IMPLEMENTATION, SETUP_OPT_PATH, SessionTerminationCode, type SessionTerminationCodeValue, SubgroupStream, SubgroupStreamHeader, createDataStreamDecoder, createFetchStreamDecoder, createSubgroupStreamDecoder, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
@@ -0,0 +1,126 @@
1
+ export { D as Draft18Codec, c as createDraft18Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-BvSmr-Jp.js';
2
+ 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-Cqp10JtB.js';
3
+ 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-Cqp10JtB.js';
4
+ export { Draft18SessionFSM, createDraft18SessionState } from './draft18-session.js';
5
+ export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-DBpCRtrL.js';
6
+ import { b as DecodeResult } from './types-CnBuq68e.js';
7
+
8
+ declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
9
+ declare function encodeDatagram(dg: DatagramObject): Uint8Array;
10
+ declare function encodeFetchStream(stream: FetchStream): Uint8Array;
11
+ declare function decodeSubgroupStream(bytes: Uint8Array): DecodeResult<SubgroupStream>;
12
+ declare function decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>;
13
+ declare function decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
14
+ declare function decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft18DataStream>;
15
+ declare function createSubgroupStreamDecoder(): TransformStream<Uint8Array, SubgroupStreamHeader | ObjectPayload>;
16
+ declare function createFetchStreamDecoder(): TransformStream<Uint8Array, FetchStreamHeader | ObjectPayload>;
17
+ declare function createDataStreamDecoder(): TransformStream<Uint8Array, DataStreamEvent>;
18
+
19
+ declare const SessionTerminationCode: {
20
+ readonly NoError: 0n;
21
+ readonly InternalError: 1n;
22
+ readonly Unauthorized: 2n;
23
+ readonly ProtocolViolation: 3n;
24
+ readonly InvalidRequestId: 4n;
25
+ readonly DuplicateTrackAlias: 5n;
26
+ readonly KeyValueFormattingError: 6n;
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
+ readonly InvalidAuthority: 25n;
39
+ readonly MalformedAuthority: 26n;
40
+ };
41
+ type SessionTerminationCodeValue = (typeof SessionTerminationCode)[keyof typeof SessionTerminationCode];
42
+ declare const RequestErrorCode: {
43
+ readonly InternalError: 0n;
44
+ readonly Unauthorized: 1n;
45
+ readonly Timeout: 2n;
46
+ readonly NotSupported: 3n;
47
+ readonly MalformedAuthToken: 4n;
48
+ readonly ExpiredAuthToken: 5n;
49
+ readonly GoingAway: 6n;
50
+ readonly ExcessiveLoad: 9n;
51
+ readonly DoesNotExist: 16n;
52
+ readonly InvalidRange: 17n;
53
+ readonly MalformedTrack: 18n;
54
+ readonly DuplicateSubscription: 25n;
55
+ readonly Uninterested: 32n;
56
+ readonly PrefixOverlap: 48n;
57
+ readonly NamespaceTooLarge: 49n;
58
+ readonly InvalidJoiningRequestId: 50n;
59
+ readonly UnsupportedExtension: 51n;
60
+ readonly Redirect: 52n;
61
+ };
62
+ type RequestErrorCodeValue = (typeof RequestErrorCode)[keyof typeof RequestErrorCode];
63
+ declare const PublishDoneCode: {
64
+ readonly InternalError: 0n;
65
+ readonly Unauthorized: 1n;
66
+ readonly TrackEnded: 2n;
67
+ readonly SubscriptionEnded: 3n;
68
+ readonly GoingAway: 4n;
69
+ readonly TooFarBehind: 5n;
70
+ readonly Expired: 6n;
71
+ readonly UpdateFailed: 8n;
72
+ readonly ExcessiveLoad: 9n;
73
+ readonly MalformedTrack: 18n;
74
+ };
75
+ type PublishDoneCodeValue = (typeof PublishDoneCode)[keyof typeof PublishDoneCode];
76
+ declare const DataStreamResetCode: {
77
+ readonly InternalError: 0n;
78
+ readonly Cancelled: 1n;
79
+ readonly DeliveryTimeout: 2n;
80
+ readonly SessionClosed: 3n;
81
+ readonly GoingAway: 4n;
82
+ readonly TooFarBehind: 5n;
83
+ readonly UnknownObjectStatus: 6n;
84
+ readonly ExpiredAuthToken: 7n;
85
+ readonly ExcessiveLoad: 9n;
86
+ readonly MalformedTrack: 18n;
87
+ };
88
+ type DataStreamResetCodeValue = (typeof DataStreamResetCode)[keyof typeof DataStreamResetCode];
89
+
90
+ declare const MSG_REQUEST_UPDATE = 2n;
91
+ declare const MSG_SUBSCRIBE = 3n;
92
+ declare const MSG_SUBSCRIBE_OK = 4n;
93
+ declare const MSG_REQUEST_ERROR = 5n;
94
+ declare const MSG_PUBLISH_NAMESPACE = 6n;
95
+ declare const MSG_REQUEST_OK = 7n;
96
+ declare const MSG_NAMESPACE = 8n;
97
+ declare const MSG_PUBLISH_DONE = 11n;
98
+ declare const MSG_TRACK_STATUS = 13n;
99
+ declare const MSG_NAMESPACE_DONE = 14n;
100
+ declare const MSG_PUBLISH_BLOCKED = 15n;
101
+ declare const MSG_GOAWAY = 16n;
102
+ declare const MSG_FETCH = 22n;
103
+ declare const MSG_FETCH_OK = 24n;
104
+ declare const MSG_PUBLISH = 29n;
105
+ declare const MSG_PUBLISH_OK = 7n;
106
+ declare const MSG_SUBSCRIBE_NAMESPACE = 80n;
107
+ declare const MSG_SUBSCRIBE_TRACKS = 81n;
108
+ declare const MSG_SETUP = 12032n;
109
+ declare const SETUP_OPT_PATH = 1n;
110
+ declare const SETUP_OPT_AUTHORIZATION_TOKEN = 3n;
111
+ declare const SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE = 4n;
112
+ declare const SETUP_OPT_AUTHORITY = 5n;
113
+ declare const SETUP_OPT_MOQT_IMPLEMENTATION = 7n;
114
+ declare const MESSAGE_TYPE_MAP: ReadonlyMap<bigint, string>;
115
+ declare const MESSAGE_ID_MAP: ReadonlyMap<string, bigint>;
116
+
117
+ declare const CONTROL_MESSAGES: ReadonlySet<Draft18MessageType>;
118
+ declare const CLIENT_ONLY_MESSAGES: ReadonlySet<Draft18MessageType>;
119
+ declare const SERVER_ONLY_MESSAGES: ReadonlySet<Draft18MessageType>;
120
+ declare const BIDIRECTIONAL_MESSAGES: ReadonlySet<Draft18MessageType>;
121
+ declare function getLegalOutgoing(phase: string, _role: 'client' | 'server'): Set<Draft18MessageType>;
122
+ declare function getLegalIncoming(phase: string, role: 'client' | 'server'): Set<Draft18MessageType>;
123
+
124
+ declare const DRAFT_VERSION = 4278190098n;
125
+
126
+ export { BIDIRECTIONAL_MESSAGES, CLIENT_ONLY_MESSAGES, CONTROL_MESSAGES, DRAFT_VERSION, DataStreamEvent, DataStreamResetCode, type DataStreamResetCodeValue, DatagramObject, Draft18DataStream, Draft18MessageType, FetchStream, FetchStreamHeader, MESSAGE_ID_MAP, MESSAGE_TYPE_MAP, MSG_FETCH, MSG_FETCH_OK, MSG_GOAWAY, MSG_NAMESPACE, MSG_NAMESPACE_DONE, MSG_PUBLISH, MSG_PUBLISH_BLOCKED, MSG_PUBLISH_DONE, MSG_PUBLISH_NAMESPACE, MSG_PUBLISH_OK, MSG_REQUEST_ERROR, MSG_REQUEST_OK, MSG_REQUEST_UPDATE, MSG_SETUP, MSG_SUBSCRIBE, MSG_SUBSCRIBE_NAMESPACE, MSG_SUBSCRIBE_OK, MSG_SUBSCRIBE_TRACKS, MSG_TRACK_STATUS, ObjectPayload, PublishDoneCode, type PublishDoneCodeValue, RequestErrorCode, type RequestErrorCodeValue, SERVER_ONLY_MESSAGES, SETUP_OPT_AUTHORITY, SETUP_OPT_AUTHORIZATION_TOKEN, SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE, SETUP_OPT_MOQT_IMPLEMENTATION, SETUP_OPT_PATH, SessionTerminationCode, type SessionTerminationCodeValue, SubgroupStream, SubgroupStreamHeader, createDataStreamDecoder, createFetchStreamDecoder, createSubgroupStreamDecoder, decodeDataStream, decodeDatagram, decodeFetchStream, decodeSubgroupStream, encodeDatagram, encodeFetchStream, encodeSubgroupStream, getLegalIncoming, getLegalOutgoing };
@@ -0,0 +1,179 @@
1
+ import {
2
+ MESSAGE_ID_MAP,
3
+ MESSAGE_TYPE_MAP,
4
+ MSG_FETCH,
5
+ MSG_FETCH_OK,
6
+ MSG_GOAWAY,
7
+ MSG_NAMESPACE,
8
+ MSG_NAMESPACE_DONE,
9
+ MSG_PUBLISH,
10
+ MSG_PUBLISH_BLOCKED,
11
+ MSG_PUBLISH_DONE,
12
+ MSG_PUBLISH_NAMESPACE,
13
+ MSG_PUBLISH_OK,
14
+ MSG_REQUEST_ERROR,
15
+ MSG_REQUEST_OK,
16
+ MSG_REQUEST_UPDATE,
17
+ MSG_SETUP,
18
+ MSG_SUBSCRIBE,
19
+ MSG_SUBSCRIBE_NAMESPACE,
20
+ MSG_SUBSCRIBE_OK,
21
+ MSG_SUBSCRIBE_TRACKS,
22
+ MSG_TRACK_STATUS,
23
+ SETUP_OPT_AUTHORITY,
24
+ SETUP_OPT_AUTHORIZATION_TOKEN,
25
+ SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE,
26
+ SETUP_OPT_MOQT_IMPLEMENTATION,
27
+ SETUP_OPT_PATH,
28
+ createDataStreamDecoder,
29
+ createDraft18Codec,
30
+ createFetchStreamDecoder,
31
+ createStreamDecoder,
32
+ createSubgroupStreamDecoder,
33
+ decodeDataStream,
34
+ decodeDatagram,
35
+ decodeFetchStream,
36
+ decodeMessage,
37
+ decodeSubgroupStream,
38
+ encodeDatagram,
39
+ encodeFetchStream,
40
+ encodeMessage,
41
+ encodeSubgroupStream
42
+ } from "./chunk-DLSGOZ6P.js";
43
+ import {
44
+ BIDIRECTIONAL_MESSAGES,
45
+ CLIENT_ONLY_MESSAGES,
46
+ CONTROL_MESSAGES,
47
+ Draft18SessionFSM,
48
+ SERVER_ONLY_MESSAGES,
49
+ createDraft18SessionState,
50
+ getLegalIncoming,
51
+ getLegalOutgoing
52
+ } from "./chunk-IWYKDCXP.js";
53
+ import "./chunk-VOU7PNHI.js";
54
+
55
+ // src/drafts/draft18/error-codes.ts
56
+ var SessionTerminationCode = {
57
+ NoError: 0x0n,
58
+ InternalError: 0x1n,
59
+ Unauthorized: 0x2n,
60
+ ProtocolViolation: 0x3n,
61
+ InvalidRequestId: 0x4n,
62
+ DuplicateTrackAlias: 0x5n,
63
+ KeyValueFormattingError: 0x6n,
64
+ InvalidPath: 0x8n,
65
+ MalformedPath: 0x9n,
66
+ GoawayTimeout: 0x10n,
67
+ ControlMessageTimeout: 0x11n,
68
+ DataStreamTimeout: 0x12n,
69
+ AuthTokenCacheOverflow: 0x13n,
70
+ DuplicateAuthTokenAlias: 0x14n,
71
+ VersionNegotiationFailed: 0x15n,
72
+ MalformedAuthToken: 0x16n,
73
+ UnknownAuthTokenAlias: 0x17n,
74
+ ExpiredAuthToken: 0x18n,
75
+ InvalidAuthority: 0x19n,
76
+ MalformedAuthority: 0x1an
77
+ };
78
+ var RequestErrorCode = {
79
+ InternalError: 0x0n,
80
+ Unauthorized: 0x1n,
81
+ Timeout: 0x2n,
82
+ NotSupported: 0x3n,
83
+ MalformedAuthToken: 0x4n,
84
+ ExpiredAuthToken: 0x5n,
85
+ GoingAway: 0x6n,
86
+ ExcessiveLoad: 0x9n,
87
+ DoesNotExist: 0x10n,
88
+ InvalidRange: 0x11n,
89
+ MalformedTrack: 0x12n,
90
+ DuplicateSubscription: 0x19n,
91
+ Uninterested: 0x20n,
92
+ PrefixOverlap: 0x30n,
93
+ NamespaceTooLarge: 0x31n,
94
+ InvalidJoiningRequestId: 0x32n,
95
+ UnsupportedExtension: 0x33n,
96
+ Redirect: 0x34n
97
+ };
98
+ var PublishDoneCode = {
99
+ InternalError: 0x0n,
100
+ Unauthorized: 0x1n,
101
+ TrackEnded: 0x2n,
102
+ SubscriptionEnded: 0x3n,
103
+ GoingAway: 0x4n,
104
+ TooFarBehind: 0x5n,
105
+ Expired: 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
+ GoingAway: 0x4n,
116
+ TooFarBehind: 0x5n,
117
+ UnknownObjectStatus: 0x6n,
118
+ ExpiredAuthToken: 0x7n,
119
+ ExcessiveLoad: 0x9n,
120
+ MalformedTrack: 0x12n
121
+ };
122
+
123
+ // src/drafts/draft18/index.ts
124
+ var DRAFT_VERSION = 0xff000012n;
125
+ export {
126
+ BIDIRECTIONAL_MESSAGES,
127
+ CLIENT_ONLY_MESSAGES,
128
+ CONTROL_MESSAGES,
129
+ DRAFT_VERSION,
130
+ DataStreamResetCode,
131
+ Draft18SessionFSM,
132
+ MESSAGE_ID_MAP,
133
+ MESSAGE_TYPE_MAP,
134
+ MSG_FETCH,
135
+ MSG_FETCH_OK,
136
+ MSG_GOAWAY,
137
+ MSG_NAMESPACE,
138
+ MSG_NAMESPACE_DONE,
139
+ MSG_PUBLISH,
140
+ MSG_PUBLISH_BLOCKED,
141
+ MSG_PUBLISH_DONE,
142
+ MSG_PUBLISH_NAMESPACE,
143
+ MSG_PUBLISH_OK,
144
+ MSG_REQUEST_ERROR,
145
+ MSG_REQUEST_OK,
146
+ MSG_REQUEST_UPDATE,
147
+ MSG_SETUP,
148
+ MSG_SUBSCRIBE,
149
+ MSG_SUBSCRIBE_NAMESPACE,
150
+ MSG_SUBSCRIBE_OK,
151
+ MSG_SUBSCRIBE_TRACKS,
152
+ MSG_TRACK_STATUS,
153
+ PublishDoneCode,
154
+ RequestErrorCode,
155
+ SERVER_ONLY_MESSAGES,
156
+ SETUP_OPT_AUTHORITY,
157
+ SETUP_OPT_AUTHORIZATION_TOKEN,
158
+ SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE,
159
+ SETUP_OPT_MOQT_IMPLEMENTATION,
160
+ SETUP_OPT_PATH,
161
+ SessionTerminationCode,
162
+ createDataStreamDecoder,
163
+ createDraft18Codec,
164
+ createDraft18SessionState,
165
+ createFetchStreamDecoder,
166
+ createStreamDecoder,
167
+ createSubgroupStreamDecoder,
168
+ decodeDataStream,
169
+ decodeDatagram,
170
+ decodeFetchStream,
171
+ decodeMessage,
172
+ decodeSubgroupStream,
173
+ encodeDatagram,
174
+ encodeFetchStream,
175
+ encodeMessage,
176
+ encodeSubgroupStream,
177
+ getLegalIncoming,
178
+ getLegalOutgoing
179
+ };
package/dist/index.cjs CHANGED
@@ -1,27 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunk2SGE5GMUcjs = require('./chunk-2SGE5GMU.cjs');
3
+ var _chunkA33U4WVScjs = require('./chunk-A33U4WVS.cjs');
4
4
 
5
5
 
6
- var _chunkOKG2HT25cjs = require('./chunk-OKG2HT25.cjs');
6
+ var _chunkJTRU76JNcjs = require('./chunk-JTRU76JN.cjs');
7
7
 
8
8
 
9
- var _chunkUJU63EFYcjs = require('./chunk-UJU63EFY.cjs');
9
+ var _chunkWMJVSBBEcjs = require('./chunk-WMJVSBBE.cjs');
10
10
 
11
11
 
12
- var _chunk5O764MBDcjs = require('./chunk-5O764MBD.cjs');
12
+ var _chunkBAG6YWCPcjs = require('./chunk-BAG6YWCP.cjs');
13
+
14
+
15
+ var _chunkOGZTQA24cjs = require('./chunk-OGZTQA24.cjs');
13
16
 
14
17
 
15
18
  var _chunkPKEOQSSZcjs = require('./chunk-PKEOQSSZ.cjs');
16
19
 
17
20
 
18
- var _chunkSDWRXXOOcjs = require('./chunk-SDWRXXOO.cjs');
21
+ var _chunkHO44OANKcjs = require('./chunk-HO44OANK.cjs');
19
22
 
20
23
 
21
- var _chunkWPFBK7UXcjs = require('./chunk-WPFBK7UX.cjs');
24
+ var _chunkJB5VDJ2Vcjs = require('./chunk-JB5VDJ2V.cjs');
22
25
 
23
26
 
24
- var _chunk3XKO6PCRcjs = require('./chunk-3XKO6PCR.cjs');
27
+ var _chunkSIYYMFCCcjs = require('./chunk-SIYYMFCC.cjs');
25
28
 
26
29
 
27
30
  var _chunkHZHSO7EWcjs = require('./chunk-HZHSO7EW.cjs');
@@ -47,7 +50,8 @@ var DRAFT_VERSIONS = {
47
50
  "14": 0xff00000en,
48
51
  "15": 0xff00000fn,
49
52
  "16": 0xff000010n,
50
- "17": 0xff000011n
53
+ "17": 0xff000011n,
54
+ "18": 0xff000012n
51
55
  };
52
56
  function createCodec(options) {
53
57
  const draft = DRAFT_VERSIONS[options.draft];
@@ -67,19 +71,21 @@ Supported draft values: ${Object.keys(DRAFT_VERSIONS).join(", ")}`
67
71
  case "10":
68
72
  return _chunkPKEOQSSZcjs.createDraft10Codec.call(void 0, );
69
73
  case "11":
70
- return _chunkSDWRXXOOcjs.createDraft11Codec.call(void 0, );
74
+ return _chunkHO44OANKcjs.createDraft11Codec.call(void 0, );
71
75
  case "12":
72
- return _chunkWPFBK7UXcjs.createDraft12Codec.call(void 0, );
76
+ return _chunkJB5VDJ2Vcjs.createDraft12Codec.call(void 0, );
73
77
  case "13":
74
- return _chunk3XKO6PCRcjs.createDraft13Codec.call(void 0, );
78
+ return _chunkSIYYMFCCcjs.createDraft13Codec.call(void 0, );
75
79
  case "14":
76
- return _chunk2SGE5GMUcjs.createDraft14Codec.call(void 0, );
80
+ return _chunkJTRU76JNcjs.createDraft14Codec.call(void 0, );
77
81
  case "15":
78
- return _chunkOKG2HT25cjs.createDraft15Codec.call(void 0, );
82
+ return _chunkWMJVSBBEcjs.createDraft15Codec.call(void 0, );
79
83
  case "16":
80
- return _chunkUJU63EFYcjs.createDraft16Codec.call(void 0, );
84
+ return _chunkBAG6YWCPcjs.createDraft16Codec.call(void 0, );
81
85
  case "17":
82
- return _chunk5O764MBDcjs.createDraft17Codec.call(void 0, );
86
+ return _chunkOGZTQA24cjs.createDraft17Codec.call(void 0, );
87
+ case "18":
88
+ return _chunkA33U4WVScjs.createDraft18Codec.call(void 0, );
83
89
  default:
84
90
  throw new Error(`Unsupported draft: ${draft}`);
85
91
  }
package/dist/index.d.cts CHANGED
@@ -1,27 +1,29 @@
1
- import { C as CodecOptions } from './types-DuIO7cWK.cjs';
2
- export { B as BaseCodec, D as DecodeError, a as DecodeErrorCode, b as DecodeResult, c as Draft } from './types-DuIO7cWK.cjs';
3
- import { D as Draft07Codec } from './codec-CFWQY9Lj.cjs';
4
- import { D as Draft08Codec } from './codec-R9TJCq-E.cjs';
5
- import { D as Draft09Codec } from './codec-j819z_hL.cjs';
6
- import { D as Draft10Codec } from './codec-DDUBJGn0.cjs';
7
- import { D as Draft11Codec } from './codec-w8z2j_uo.cjs';
8
- import { D as Draft12Codec } from './codec-CpBWhz9f.cjs';
9
- import { D as Draft13Codec } from './codec-DoOGjjDq.cjs';
10
- import { D as Draft14Codec } from './codec-BO5Go0Lm.cjs';
11
- import { D as Draft15Codec } from './codec-BB0U8MF2.cjs';
12
- import { D as Draft16Codec } from './codec-z6_2PSzi.cjs';
13
- import { D as Draft17Codec } from './codec-BN6jk0Td.cjs';
1
+ import { C as CodecOptions } from './types-CnBuq68e.cjs';
2
+ export { B as BaseCodec, D as DecodeError, a as DecodeErrorCode, b as DecodeResult, c as Draft } from './types-CnBuq68e.cjs';
3
+ import { D as Draft07Codec } from './codec-D2YMCU11.cjs';
4
+ import { D as Draft08Codec } from './codec-CzBmYisK.cjs';
5
+ import { D as Draft09Codec } from './codec-DS-As0Pp.cjs';
6
+ import { D as Draft10Codec } from './codec-C17JvsEU.cjs';
7
+ import { D as Draft11Codec } from './codec-B6ouUJrm.cjs';
8
+ import { D as Draft12Codec } from './codec-CBLLytyP.cjs';
9
+ import { D as Draft13Codec } from './codec-R28KwiGM.cjs';
10
+ import { D as Draft14Codec } from './codec-yJ_axwtp.cjs';
11
+ import { D as Draft15Codec } from './codec-BsSNjvB3.cjs';
12
+ import { D as Draft16Codec } from './codec-DbpLHKXN.cjs';
13
+ import { D as Draft17Codec } from './codec-D5Ss123f.cjs';
14
+ import { D as Draft18Codec } from './codec-MxIhLDR5.cjs';
14
15
  import './types-Dl4IaAHR.cjs';
15
16
  import './types-jV1yDDBA.cjs';
16
17
  import './types-B3g5G9KP.cjs';
17
18
  import './types-0IWbU9Z_.cjs';
18
- import './types--Q7_DcvP.cjs';
19
- import './types-DuyE0ygT.cjs';
20
- import './types-DrQpTW1G.cjs';
21
- import './types--FGt0sAp.cjs';
22
- import './types-DuxfOYiO.cjs';
23
- import './types-BFpFNM_m.cjs';
24
- import './types-Br7fm2mf.cjs';
19
+ import './types-Ck45Ex5S.cjs';
20
+ import './types-Bio-91Rt.cjs';
21
+ import './types-CXlSn0I9.cjs';
22
+ import './types-DjmrHp_s.cjs';
23
+ import './types-CPaYBsMG.cjs';
24
+ import './types-Cm9fjeYC.cjs';
25
+ import './types-D9eiB_9A.cjs';
26
+ import './types-Cqp10JtB.cjs';
25
27
 
26
28
  /**
27
29
  * @moqtap/codec — MoQT wire-format codec
@@ -73,12 +75,15 @@ declare function createCodec(options: CodecOptions & {
73
75
  declare function createCodec(options: CodecOptions & {
74
76
  draft: '17';
75
77
  }): Draft17Codec;
78
+ declare function createCodec(options: CodecOptions & {
79
+ draft: '18';
80
+ }): Draft18Codec;
76
81
  /**
77
82
  * Create a codec for the specified draft version.
78
83
  *
79
84
  * A draft must always be specified — there is no default while the
80
85
  * MoQT specification is still in draft stage.
81
86
  */
82
- declare function createCodec(options: CodecOptions): Draft07Codec | Draft08Codec | Draft09Codec | Draft10Codec | Draft11Codec | Draft12Codec | Draft13Codec | Draft14Codec | Draft15Codec | Draft16Codec | Draft17Codec;
87
+ declare function createCodec(options: CodecOptions): Draft07Codec | Draft08Codec | Draft09Codec | Draft10Codec | Draft11Codec | Draft12Codec | Draft13Codec | Draft14Codec | Draft15Codec | Draft16Codec | Draft17Codec | Draft18Codec;
83
88
 
84
89
  export { CodecOptions, DRAFT_VERSIONS, createCodec };
package/dist/index.d.ts CHANGED
@@ -1,27 +1,29 @@
1
- import { C as CodecOptions } from './types-DuIO7cWK.js';
2
- export { B as BaseCodec, D as DecodeError, a as DecodeErrorCode, b as DecodeResult, c as Draft } from './types-DuIO7cWK.js';
3
- import { D as Draft07Codec } from './codec-CewFCsEy.js';
4
- import { D as Draft08Codec } from './codec-wtt6WF1K.js';
5
- import { D as Draft09Codec } from './codec-3Ppy_5Gd.js';
6
- import { D as Draft10Codec } from './codec-ZwV-Njt6.js';
7
- import { D as Draft11Codec } from './codec-DNfml-se.js';
8
- import { D as Draft12Codec } from './codec-D8REY9TB.js';
9
- import { D as Draft13Codec } from './codec-BU0gaSZm.js';
10
- import { D as Draft14Codec } from './codec-iMEwV1UO.js';
11
- import { D as Draft15Codec } from './codec-BHHfBTnV.js';
12
- import { D as Draft16Codec } from './codec-C-Yk2RNa.js';
13
- import { D as Draft17Codec } from './codec-D2QVSH9D.js';
1
+ import { C as CodecOptions } from './types-CnBuq68e.js';
2
+ export { B as BaseCodec, D as DecodeError, a as DecodeErrorCode, b as DecodeResult, c as Draft } from './types-CnBuq68e.js';
3
+ import { D as Draft07Codec } from './codec-3ZgEK-Yj.js';
4
+ import { D as Draft08Codec } from './codec-Bp4HPezr.js';
5
+ import { D as Draft09Codec } from './codec-BhW5CGZq.js';
6
+ import { D as Draft10Codec } from './codec-Tdey03Bo.js';
7
+ import { D as Draft11Codec } from './codec-Cbv3sG2y.js';
8
+ import { D as Draft12Codec } from './codec-BzRIVIzS.js';
9
+ import { D as Draft13Codec } from './codec-BvzKRqiP.js';
10
+ import { D as Draft14Codec } from './codec-GayA_uN0.js';
11
+ import { D as Draft15Codec } from './codec-DqHwYWM-.js';
12
+ import { D as Draft16Codec } from './codec-6s9d5yZm.js';
13
+ import { D as Draft17Codec } from './codec-D_9X0i31.js';
14
+ import { D as Draft18Codec } from './codec-BvSmr-Jp.js';
14
15
  import './types-Dl4IaAHR.js';
15
16
  import './types-jV1yDDBA.js';
16
17
  import './types-B3g5G9KP.js';
17
18
  import './types-0IWbU9Z_.js';
18
- import './types--Q7_DcvP.js';
19
- import './types-DuyE0ygT.js';
20
- import './types-DrQpTW1G.js';
21
- import './types--FGt0sAp.js';
22
- import './types-DuxfOYiO.js';
23
- import './types-BFpFNM_m.js';
24
- import './types-Br7fm2mf.js';
19
+ import './types-Ck45Ex5S.js';
20
+ import './types-Bio-91Rt.js';
21
+ import './types-CXlSn0I9.js';
22
+ import './types-DjmrHp_s.js';
23
+ import './types-CPaYBsMG.js';
24
+ import './types-Cm9fjeYC.js';
25
+ import './types-D9eiB_9A.js';
26
+ import './types-Cqp10JtB.js';
25
27
 
26
28
  /**
27
29
  * @moqtap/codec — MoQT wire-format codec
@@ -73,12 +75,15 @@ declare function createCodec(options: CodecOptions & {
73
75
  declare function createCodec(options: CodecOptions & {
74
76
  draft: '17';
75
77
  }): Draft17Codec;
78
+ declare function createCodec(options: CodecOptions & {
79
+ draft: '18';
80
+ }): Draft18Codec;
76
81
  /**
77
82
  * Create a codec for the specified draft version.
78
83
  *
79
84
  * A draft must always be specified — there is no default while the
80
85
  * MoQT specification is still in draft stage.
81
86
  */
82
- declare function createCodec(options: CodecOptions): Draft07Codec | Draft08Codec | Draft09Codec | Draft10Codec | Draft11Codec | Draft12Codec | Draft13Codec | Draft14Codec | Draft15Codec | Draft16Codec | Draft17Codec;
87
+ declare function createCodec(options: CodecOptions): Draft07Codec | Draft08Codec | Draft09Codec | Draft10Codec | Draft11Codec | Draft12Codec | Draft13Codec | Draft14Codec | Draft15Codec | Draft16Codec | Draft17Codec | Draft18Codec;
83
88
 
84
89
  export { CodecOptions, DRAFT_VERSIONS, createCodec };