@moq/net 0.4.7 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/announce.d.ts +1 -1
- package/announce.d.ts.map +1 -1
- package/announce.js +1 -2
- package/announce.js.map +1 -1
- package/announced.d.ts +51 -47
- package/announced.d.ts.map +1 -1
- package/announced.js +183 -32
- package/announced.js.map +1 -1
- package/announced.test-util.d.ts +2 -0
- package/announced.test-util.d.ts.map +1 -0
- package/announced.test-util.js +27 -0
- package/announced.test-util.js.map +1 -0
- package/auth.d.ts +64 -0
- package/auth.d.ts.map +1 -0
- package/auth.js +20 -0
- package/auth.js.map +1 -0
- package/auth_gate.d.ts +2 -0
- package/auth_gate.d.ts.map +1 -0
- package/auth_gate.js +24 -0
- package/auth_gate.js.map +1 -0
- package/auth_session.d.ts +49 -0
- package/auth_session.d.ts.map +1 -0
- package/auth_session.js +1097 -0
- package/auth_session.js.map +1 -0
- package/bandwidth.d.ts +129 -25
- package/bandwidth.d.ts.map +1 -1
- package/bandwidth.js +410 -139
- package/bandwidth.js.map +1 -1
- package/bandwidth_api.d.ts +1 -1
- package/bandwidth_api.d.ts.map +1 -1
- package/bandwidth_api.js +1 -2
- package/bandwidth_api.js.map +1 -1
- package/broadcast.d.ts +64 -38
- package/broadcast.d.ts.map +1 -1
- package/broadcast.js +556 -173
- package/broadcast.js.map +1 -1
- package/cache.d.ts +103 -0
- package/cache.d.ts.map +1 -0
- package/cache.js +254 -0
- package/cache.js.map +1 -0
- package/claim.test-util.d.ts +5 -0
- package/claim.test-util.d.ts.map +1 -0
- package/claim.test-util.js +13 -0
- package/claim.test-util.js.map +1 -0
- package/connection/accept.d.ts +21 -13
- package/connection/accept.d.ts.map +1 -1
- package/connection/accept.js +97 -130
- package/connection/accept.js.map +1 -1
- package/connection/browser.d.ts.map +1 -1
- package/connection/browser.js +28 -20
- package/connection/browser.js.map +1 -1
- package/connection/connect.d.ts +120 -24
- package/connection/connect.d.ts.map +1 -1
- package/connection/connect.js +535 -217
- package/connection/connect.js.map +1 -1
- package/connection/dials.d.ts +45 -0
- package/connection/dials.d.ts.map +1 -0
- package/connection/dials.js +109 -0
- package/connection/dials.js.map +1 -0
- package/connection/endpoint.d.ts +60 -0
- package/connection/endpoint.d.ts.map +1 -0
- package/connection/endpoint.js +114 -0
- package/connection/endpoint.js.map +1 -0
- package/connection/forward.d.ts +7 -1
- package/connection/forward.d.ts.map +1 -1
- package/connection/forward.js +265 -81
- package/connection/forward.js.map +1 -1
- package/connection/goaway.d.ts +16 -9
- package/connection/goaway.d.ts.map +1 -1
- package/connection/goaway.js +22 -95
- package/connection/goaway.js.map +1 -1
- package/connection/handshake.d.ts +34 -8
- package/connection/handshake.d.ts.map +1 -1
- package/connection/handshake.js +97 -21
- package/connection/handshake.js.map +1 -1
- package/connection/index.d.ts +4 -7
- package/connection/index.d.ts.map +1 -1
- package/connection/index.js +1 -3
- package/connection/index.js.map +1 -1
- package/connection/liveness.d.ts +14 -0
- package/connection/liveness.d.ts.map +1 -0
- package/connection/liveness.js +30 -0
- package/connection/liveness.js.map +1 -0
- package/connection/pool.d.ts +142 -63
- package/connection/pool.d.ts.map +1 -1
- package/connection/pool.js +281 -118
- package/connection/pool.js.map +1 -1
- package/connection/reload.d.ts +60 -12
- package/connection/reload.d.ts.map +1 -1
- package/connection/reload.js +859 -234
- package/connection/reload.js.map +1 -1
- package/connection/session.d.ts +91 -0
- package/connection/session.d.ts.map +1 -0
- package/connection/session.js +2 -0
- package/connection/session.js.map +1 -0
- package/connection/stats.d.ts +20 -11
- package/connection/stats.d.ts.map +1 -1
- package/connection/stats.js +64 -9
- package/connection/stats.js.map +1 -1
- package/connection/ticker.d.ts +4 -0
- package/connection/ticker.d.ts.map +1 -0
- package/connection/ticker.js +66 -0
- package/connection/ticker.js.map +1 -0
- package/connection/tokens.d.ts +2 -0
- package/connection/tokens.d.ts.map +1 -0
- package/connection/tokens.js +404 -0
- package/connection/tokens.js.map +1 -0
- package/connection/transport.d.ts.map +1 -1
- package/connection/transport.js +4 -5
- package/connection/transport.js.map +1 -1
- package/connection/withdrawal.d.ts +2 -0
- package/connection/withdrawal.d.ts.map +1 -0
- package/connection/withdrawal.js +23 -0
- package/connection/withdrawal.js.map +1 -0
- package/consume.js +213 -47
- package/consume.js.map +1 -1
- package/cover.d.ts +59 -0
- package/cover.d.ts.map +1 -0
- package/cover.js +375 -0
- package/cover.js.map +1 -0
- package/datagram.d.ts +70 -11
- package/datagram.d.ts.map +1 -1
- package/datagram.js +317 -2
- package/datagram.js.map +1 -1
- package/datagram_stream.d.ts +18 -0
- package/datagram_stream.d.ts.map +1 -0
- package/datagram_stream.js +67 -0
- package/datagram_stream.js.map +1 -0
- package/defined.test-util.d.ts +2 -0
- package/defined.test-util.d.ts.map +1 -0
- package/defined.test-util.js +7 -0
- package/defined.test-util.js.map +1 -0
- package/delivered.d.ts +75 -0
- package/delivered.d.ts.map +1 -0
- package/delivered.js +228 -0
- package/delivered.js.map +1 -0
- package/demand.d.ts +173 -0
- package/demand.d.ts.map +1 -0
- package/demand.js +582 -0
- package/demand.js.map +1 -0
- package/drops.d.ts +93 -0
- package/drops.d.ts.map +1 -0
- package/drops.js +283 -0
- package/drops.js.map +1 -0
- package/error.d.ts +120 -21
- package/error.d.ts.map +1 -1
- package/error.js +230 -38
- package/error.js.map +1 -1
- package/errors.d.ts +2 -2
- package/errors.d.ts.map +1 -1
- package/errors.js +2 -3
- package/errors.js.map +1 -1
- package/fill.d.ts +174 -0
- package/fill.d.ts.map +1 -0
- package/fill.js +760 -0
- package/fill.js.map +1 -0
- package/flate/decoder.d.ts +2 -0
- package/flate/decoder.d.ts.map +1 -0
- package/flate/decoder.js +63 -0
- package/flate/decoder.js.map +1 -0
- package/flate/encoder.d.ts +2 -0
- package/flate/encoder.d.ts.map +1 -0
- package/flate/encoder.js +64 -0
- package/flate/encoder.js.map +1 -0
- package/flate/group.d.ts +34 -0
- package/flate/group.d.ts.map +1 -0
- package/flate/group.js +140 -0
- package/flate/group.js.map +1 -0
- package/frame.d.ts +80 -0
- package/frame.d.ts.map +1 -0
- package/frame.js +296 -0
- package/frame.js.map +1 -0
- package/frame.test-util.d.ts +5 -0
- package/frame.test-util.d.ts.map +1 -0
- package/frame.test-util.js +9 -0
- package/frame.test-util.js.map +1 -0
- package/group.d.ts +108 -45
- package/group.d.ts.map +1 -1
- package/group.js +1616 -308
- package/group.js.map +1 -1
- package/group_api.d.ts +7 -0
- package/group_api.d.ts.map +1 -0
- package/group_api.js +7 -0
- package/group_api.js.map +1 -0
- package/hop.d.ts +62 -76
- package/hop.d.ts.map +1 -1
- package/hop.js +92 -65
- package/hop.js.map +1 -1
- package/identity.d.ts +39 -0
- package/identity.d.ts.map +1 -0
- package/identity.js +47 -0
- package/identity.js.map +1 -0
- package/ietf/active_count.d.ts +2 -0
- package/ietf/active_count.d.ts.map +1 -0
- package/ietf/active_count.js +30 -0
- package/ietf/active_count.js.map +1 -0
- package/ietf/aliases.js +69 -36
- package/ietf/aliases.js.map +1 -1
- package/ietf/cluster.d.ts +3 -3
- package/ietf/cluster.js +14 -55
- package/ietf/cluster.js.map +1 -1
- package/ietf/connection.d.ts +1 -31
- package/ietf/connection.d.ts.map +1 -1
- package/ietf/connection.js +305 -144
- package/ietf/connection.js.map +1 -1
- package/ietf/datagram.d.ts +60 -0
- package/ietf/datagram.d.ts.map +1 -0
- package/ietf/datagram.js +152 -0
- package/ietf/datagram.js.map +1 -0
- package/ietf/error.d.ts +3 -3
- package/ietf/error.js +82 -101
- package/ietf/error.js.map +1 -1
- package/ietf/fetch.d.ts +93 -37
- package/ietf/fetch.d.ts.map +1 -1
- package/ietf/fetch.js +172 -94
- package/ietf/fetch.js.map +1 -1
- package/ietf/filter.d.ts +21 -31
- package/ietf/filter.d.ts.map +1 -1
- package/ietf/filter.js +140 -172
- package/ietf/filter.js.map +1 -1
- package/ietf/goaway.d.ts +12 -10
- package/ietf/goaway.d.ts.map +1 -1
- package/ietf/goaway.js +22 -36
- package/ietf/goaway.js.map +1 -1
- package/ietf/hidden.js +1 -2
- package/ietf/hidden.js.map +1 -1
- package/ietf/index.d.ts +8 -20
- package/ietf/index.d.ts.map +1 -1
- package/ietf/index.js +4 -15
- package/ietf/index.js.map +1 -1
- package/ietf/join.d.ts +7 -0
- package/ietf/join.d.ts.map +1 -0
- package/ietf/join.js +234 -0
- package/ietf/join.js.map +1 -0
- package/ietf/message.d.ts +18 -2
- package/ietf/message.d.ts.map +1 -1
- package/ietf/message.js +60 -41
- package/ietf/message.js.map +1 -1
- package/ietf/message.test-util.d.ts +6 -0
- package/ietf/message.test-util.d.ts.map +1 -0
- package/ietf/message.test-util.js +13 -0
- package/ietf/message.test-util.js.map +1 -0
- package/ietf/namespace.d.ts +19 -5
- package/ietf/namespace.d.ts.map +1 -1
- package/ietf/namespace.js +78 -27
- package/ietf/namespace.js.map +1 -1
- package/ietf/object.d.ts +195 -33
- package/ietf/object.d.ts.map +1 -1
- package/ietf/object.js +405 -179
- package/ietf/object.js.map +1 -1
- package/ietf/parameters.d.ts +25 -45
- package/ietf/parameters.d.ts.map +1 -1
- package/ietf/parameters.js +260 -473
- package/ietf/parameters.js.map +1 -1
- package/ietf/priority.d.ts +17 -2
- package/ietf/priority.d.ts.map +1 -1
- package/ietf/priority.js +19 -5
- package/ietf/priority.js.map +1 -1
- package/ietf/properties.d.ts +6 -5
- package/ietf/properties.d.ts.map +1 -1
- package/ietf/properties.js +78 -49
- package/ietf/properties.js.map +1 -1
- package/ietf/publish.d.ts +25 -33
- package/ietf/publish.d.ts.map +1 -1
- package/ietf/publish.js +45 -140
- package/ietf/publish.js.map +1 -1
- package/ietf/publish_namespace.d.ts +49 -72
- package/ietf/publish_namespace.d.ts.map +1 -1
- package/ietf/publish_namespace.js +66 -185
- package/ietf/publish_namespace.js.map +1 -1
- package/ietf/publisher.js +1800 -601
- package/ietf/publisher.js.map +1 -1
- package/ietf/range.d.ts +2 -0
- package/ietf/range.d.ts.map +1 -0
- package/ietf/range.js +222 -0
- package/ietf/range.js.map +1 -0
- package/ietf/request.d.ts +6 -30
- package/ietf/request.d.ts.map +1 -1
- package/ietf/request.js +41 -79
- package/ietf/request.js.map +1 -1
- package/ietf/request_stream.d.ts +1 -6
- package/ietf/request_stream.d.ts.map +1 -1
- package/ietf/request_stream.js +306 -17
- package/ietf/request_stream.js.map +1 -1
- package/ietf/session.d.ts +41 -0
- package/ietf/session.d.ts.map +1 -0
- package/ietf/session.js +65 -0
- package/ietf/session.js.map +1 -0
- package/ietf/setup.d.ts +5 -30
- package/ietf/setup.d.ts.map +1 -1
- package/ietf/setup.js +6 -118
- package/ietf/setup.js.map +1 -1
- package/ietf/setup_options.d.ts +31 -0
- package/ietf/setup_options.d.ts.map +1 -0
- package/ietf/setup_options.js +138 -0
- package/ietf/setup_options.js.map +1 -0
- package/ietf/solicit.js +4 -15
- package/ietf/solicit.js.map +1 -1
- package/ietf/subscribe.d.ts +52 -45
- package/ietf/subscribe.d.ts.map +1 -1
- package/ietf/subscribe.js +118 -240
- package/ietf/subscribe.js.map +1 -1
- package/ietf/subscribe_namespace.d.ts +16 -79
- package/ietf/subscribe_namespace.d.ts.map +1 -1
- package/ietf/subscribe_namespace.js +30 -202
- package/ietf/subscribe_namespace.js.map +1 -1
- package/ietf/subscriber.js +1839 -537
- package/ietf/subscriber.js.map +1 -1
- package/ietf/token.js +105 -28
- package/ietf/token.js.map +1 -1
- package/ietf/track.d.ts +27 -24
- package/ietf/track.d.ts.map +1 -1
- package/ietf/track.js +48 -62
- package/ietf/track.js.map +1 -1
- package/ietf/version.d.ts +13 -42
- package/ietf/version.d.ts.map +1 -1
- package/ietf/version.js +22 -49
- package/ietf/version.js.map +1 -1
- package/implementation.d.ts +2 -0
- package/implementation.d.ts.map +1 -0
- package/implementation.js +5 -0
- package/implementation.js.map +1 -0
- package/index.d.ts +34 -19
- package/index.d.ts.map +1 -1
- package/index.js +19 -7
- package/index.js.map +1 -1
- package/internal.d.ts +1515 -67
- package/internal.d.ts.map +1 -1
- package/internal.js +557 -80
- package/internal.js.map +1 -1
- package/ledger.d.ts +23 -0
- package/ledger.d.ts.map +1 -0
- package/ledger.js +247 -0
- package/ledger.js.map +1 -0
- package/listing.d.ts +132 -0
- package/listing.d.ts.map +1 -0
- package/listing.js +486 -0
- package/listing.js.map +1 -0
- package/lite/announce.d.ts +127 -66
- package/lite/announce.d.ts.map +1 -1
- package/lite/announce.js +384 -159
- package/lite/announce.js.map +1 -1
- package/lite/announce_stream.d.ts +2 -0
- package/lite/announce_stream.d.ts.map +1 -0
- package/lite/announce_stream.js +92 -0
- package/lite/announce_stream.js.map +1 -0
- package/lite/answer.d.ts +22 -0
- package/lite/answer.d.ts.map +1 -0
- package/lite/answer.js +301 -0
- package/lite/answer.js.map +1 -0
- package/lite/auth.d.ts +45 -0
- package/lite/auth.d.ts.map +1 -0
- package/lite/auth.js +204 -0
- package/lite/auth.js.map +1 -0
- package/lite/compat.d.ts +31 -0
- package/lite/compat.d.ts.map +1 -0
- package/lite/compat.js +86 -0
- package/lite/compat.js.map +1 -0
- package/lite/connection.d.ts +1 -45
- package/lite/connection.d.ts.map +1 -1
- package/lite/connection.js +360 -78
- package/lite/connection.js.map +1 -1
- package/lite/datagram-end.d.ts +26 -0
- package/lite/datagram-end.d.ts.map +1 -0
- package/lite/datagram-end.js +30 -0
- package/lite/datagram-end.js.map +1 -0
- package/lite/datagram.d.ts +73 -8
- package/lite/datagram.d.ts.map +1 -1
- package/lite/datagram.js +144 -10
- package/lite/datagram.js.map +1 -1
- package/lite/duration.d.ts +6 -0
- package/lite/duration.d.ts.map +1 -0
- package/lite/duration.js +14 -0
- package/lite/duration.js.map +1 -0
- package/lite/error.d.ts +9 -0
- package/lite/error.d.ts.map +1 -0
- package/lite/error.js +24 -0
- package/lite/error.js.map +1 -0
- package/lite/fills.d.ts +162 -0
- package/lite/fills.d.ts.map +1 -0
- package/lite/fills.js +486 -0
- package/lite/fills.js.map +1 -0
- package/lite/fit.d.ts +49 -0
- package/lite/fit.d.ts.map +1 -0
- package/lite/fit.js +305 -0
- package/lite/fit.js.map +1 -0
- package/lite/goaway.d.ts +2 -2
- package/lite/goaway.d.ts.map +1 -1
- package/lite/goaway.js +5 -14
- package/lite/goaway.js.map +1 -1
- package/lite/group.d.ts +67 -16
- package/lite/group.d.ts.map +1 -1
- package/lite/group.js +108 -31
- package/lite/group.js.map +1 -1
- package/lite/identity.d.ts +25 -0
- package/lite/identity.d.ts.map +1 -0
- package/lite/identity.js +79 -0
- package/lite/identity.js.map +1 -0
- package/lite/index.d.ts +14 -13
- package/lite/index.d.ts.map +1 -1
- package/lite/index.js +2 -2
- package/lite/index.js.map +1 -1
- package/lite/message.d.ts +10 -2
- package/lite/message.d.ts.map +1 -1
- package/lite/message.js +28 -45
- package/lite/message.js.map +1 -1
- package/lite/priority.d.ts +9 -2
- package/lite/priority.d.ts.map +1 -1
- package/lite/priority.js +11 -106
- package/lite/priority.js.map +1 -1
- package/lite/probe.d.ts +2 -2
- package/lite/probe.d.ts.map +1 -1
- package/lite/probe.js +9 -1
- package/lite/probe.js.map +1 -1
- package/lite/publisher.d.ts +10 -1
- package/lite/publisher.d.ts.map +1 -1
- package/lite/publisher.js +2548 -438
- package/lite/publisher.js.map +1 -1
- package/lite/routed.d.ts +59 -0
- package/lite/routed.d.ts.map +1 -0
- package/lite/routed.js +564 -0
- package/lite/routed.js.map +1 -0
- package/lite/session.d.ts +2 -28
- package/lite/session.d.ts.map +1 -1
- package/lite/session.js +0 -100
- package/lite/session.js.map +1 -1
- package/lite/setup.d.ts +32 -5
- package/lite/setup.d.ts.map +1 -1
- package/lite/setup.js +95 -22
- package/lite/setup.js.map +1 -1
- package/lite/stream.d.ts +5 -11
- package/lite/stream.d.ts.map +1 -1
- package/lite/stream.js +5 -2
- package/lite/stream.js.map +1 -1
- package/lite/subscribe.d.ts +478 -78
- package/lite/subscribe.d.ts.map +1 -1
- package/lite/subscribe.js +1373 -143
- package/lite/subscribe.js.map +1 -1
- package/lite/subscriber.d.ts +7 -44
- package/lite/subscriber.d.ts.map +1 -1
- package/lite/subscriber.js +3290 -516
- package/lite/subscriber.js.map +1 -1
- package/lite/track.d.ts +27 -12
- package/lite/track.d.ts.map +1 -1
- package/lite/track.js +116 -38
- package/lite/track.js.map +1 -1
- package/lite/tracks.d.ts +55 -0
- package/lite/tracks.d.ts.map +1 -0
- package/lite/tracks.js +114 -0
- package/lite/tracks.js.map +1 -0
- package/lite/version.d.ts +132 -24
- package/lite/version.d.ts.map +1 -1
- package/lite/version.js +378 -34
- package/lite/version.js.map +1 -1
- package/meta.d.ts +77 -0
- package/meta.d.ts.map +1 -0
- package/meta.js +130 -0
- package/meta.js.map +1 -0
- package/meta_api.d.ts +7 -0
- package/meta_api.d.ts.map +1 -0
- package/meta_api.js +7 -0
- package/meta_api.js.map +1 -0
- package/mint.d.ts +28 -0
- package/mint.d.ts.map +1 -0
- package/mint.js +66 -0
- package/mint.js.map +1 -0
- package/open.d.ts +63 -0
- package/open.d.ts.map +1 -0
- package/open.js +250 -0
- package/open.js.map +1 -0
- package/origin.d.ts +394 -142
- package/origin.d.ts.map +1 -1
- package/origin.js +2533 -687
- package/origin.js.map +1 -1
- package/package.json +8 -13
- package/path.d.ts +51 -51
- package/path.d.ts.map +1 -1
- package/path.js +210 -58
- package/path.js.map +1 -1
- package/payload.d.ts +33 -0
- package/payload.d.ts.map +1 -0
- package/payload.js +65 -0
- package/payload.js.map +1 -0
- package/prefix.d.ts +152 -0
- package/prefix.d.ts.map +1 -0
- package/prefix.js +349 -0
- package/prefix.js.map +1 -0
- package/priority.d.ts +8 -0
- package/priority.d.ts.map +1 -0
- package/priority.js +185 -0
- package/priority.js.map +1 -0
- package/queue.d.ts +2 -0
- package/queue.d.ts.map +1 -0
- package/queue.js +46 -0
- package/queue.js.map +1 -0
- package/ranges.d.ts +36 -0
- package/ranges.d.ts.map +1 -0
- package/ranges.js +312 -0
- package/ranges.js.map +1 -0
- package/rescale.d.ts +24 -0
- package/rescale.d.ts.map +1 -0
- package/rescale.js +39 -0
- package/rescale.js.map +1 -0
- package/resume.d.ts +55 -0
- package/resume.d.ts.map +1 -0
- package/resume.js +4173 -0
- package/resume.js.map +1 -0
- package/resume.test-util.d.ts +2 -0
- package/resume.test-util.d.ts.map +1 -0
- package/resume.test-util.js +25 -0
- package/resume.test-util.js.map +1 -0
- package/skips.d.ts +48 -0
- package/skips.d.ts.map +1 -0
- package/skips.js +182 -0
- package/skips.js.map +1 -0
- package/stream.d.ts +78 -40
- package/stream.d.ts.map +1 -1
- package/stream.js +236 -93
- package/stream.js.map +1 -1
- package/subscription.test-util.d.ts +2 -0
- package/subscription.test-util.d.ts.map +1 -0
- package/subscription.test-util.js +49 -0
- package/subscription.test-util.js.map +1 -0
- package/tail.d.ts +23 -14
- package/tail.d.ts.map +1 -1
- package/tail.js +224 -98
- package/tail.js.map +1 -1
- package/time.d.ts +41 -102
- package/time.d.ts.map +1 -1
- package/time.js +129 -92
- package/time.js.map +1 -1
- package/timed.d.ts +21 -0
- package/timed.d.ts.map +1 -0
- package/timed.js +2 -0
- package/timed.js.map +1 -0
- package/track.d.ts +578 -246
- package/track.d.ts.map +1 -1
- package/track.js +7306 -772
- package/track.js.map +1 -1
- package/track_api.d.ts +7 -0
- package/track_api.d.ts.map +1 -0
- package/track_api.js +7 -0
- package/track_api.js.map +1 -0
- package/util/abort.d.ts +1 -0
- package/util/abort.d.ts.map +1 -1
- package/util/abort.js +23 -2
- package/util/abort.js.map +1 -1
- package/util/announce.d.ts +4 -0
- package/util/announce.d.ts.map +1 -0
- package/util/announce.js +11 -0
- package/util/announce.js.map +1 -0
- package/util/bigint.d.ts +3 -0
- package/util/bigint.d.ts.map +1 -0
- package/util/bigint.js +8 -0
- package/util/bigint.js.map +1 -0
- package/util/change.d.ts +12 -0
- package/util/change.d.ts.map +1 -0
- package/util/change.js +18 -0
- package/util/change.js.map +1 -0
- package/util/deadline.d.ts +2 -0
- package/util/deadline.d.ts.map +1 -0
- package/util/deadline.js +108 -0
- package/util/deadline.js.map +1 -0
- package/util/decode_error.d.ts +3 -0
- package/util/decode_error.d.ts.map +1 -0
- package/util/decode_error.js +11 -0
- package/util/decode_error.js.map +1 -0
- package/util/demand.d.ts +8 -0
- package/util/demand.d.ts.map +1 -0
- package/util/demand.js +24 -0
- package/util/demand.js.map +1 -0
- package/util/given_up.d.ts +2 -0
- package/util/given_up.d.ts.map +1 -0
- package/util/given_up.js +101 -0
- package/util/given_up.js.map +1 -0
- package/util/hex.d.ts +6 -0
- package/util/hex.d.ts.map +1 -1
- package/util/hex.js +19 -5
- package/util/hex.js.map +1 -1
- package/util/key.d.ts +15 -0
- package/util/key.d.ts.map +1 -0
- package/util/key.js +38 -0
- package/util/key.js.map +1 -0
- package/util/limits.d.ts +2 -0
- package/util/limits.d.ts.map +1 -0
- package/util/limits.js +76 -0
- package/util/limits.js.map +1 -0
- package/util/observed.d.ts +23 -0
- package/util/observed.d.ts.map +1 -0
- package/util/observed.js +122 -0
- package/util/observed.js.map +1 -0
- package/util/sorted.d.ts +2 -0
- package/util/sorted.d.ts.map +1 -0
- package/util/sorted.js +149 -0
- package/util/sorted.js.map +1 -0
- package/util/timeout.d.ts +2 -1
- package/util/timeout.d.ts.map +1 -1
- package/util/timeout.js +13 -10
- package/util/timeout.js.map +1 -1
- package/util/timer.d.ts +2 -0
- package/util/timer.d.ts.map +1 -0
- package/util/timer.js +19 -0
- package/util/timer.js.map +1 -0
- package/util/u64.js +0 -1
- package/util/utf8.d.ts +2 -0
- package/util/utf8.d.ts.map +1 -1
- package/util/utf8.js +7 -2
- package/util/utf8.js.map +1 -1
- package/util/varint.d.ts.map +1 -1
- package/util/varint.js +8 -2
- package/util/varint.js.map +1 -1
- package/util/watch.d.ts +8 -0
- package/util/watch.d.ts.map +1 -0
- package/util/watch.js +38 -0
- package/util/watch.js.map +1 -0
- package/util/yield.d.ts +2 -0
- package/util/yield.d.ts.map +1 -0
- package/util/yield.js +31 -0
- package/util/yield.js.map +1 -0
- package/varint.d.ts +0 -29
- package/varint.d.ts.map +1 -1
- package/varint.js +7 -29
- package/varint.js.map +1 -1
- package/varint_api.d.ts +7 -0
- package/varint_api.d.ts.map +1 -0
- package/varint_api.js +7 -0
- package/varint_api.js.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +4 -0
- package/version.js.map +1 -0
- package/window.d.ts +570 -0
- package/window.d.ts.map +1 -0
- package/window.js +1677 -0
- package/window.js.map +1 -0
- package/wire.d.ts +150 -35
- package/wire.d.ts.map +1 -1
- package/wire.js +27 -1
- package/wire.js.map +1 -1
- package/connection/established.d.ts +0 -53
- package/connection/established.d.ts.map +0 -1
- package/connection/established.js +0 -3
- package/connection/established.js.map +0 -1
- package/ietf/adapter.d.ts +0 -75
- package/ietf/adapter.d.ts.map +0 -1
- package/ietf/adapter.js +0 -700
- package/ietf/adapter.js.map +0 -1
- package/lite/datagram_stream.d.ts +0 -8
- package/lite/datagram_stream.d.ts.map +0 -1
- package/lite/datagram_stream.js +0 -44
- package/lite/datagram_stream.js.map +0 -1
- package/lite/fetch.d.ts +0 -28
- package/lite/fetch.d.ts.map +0 -1
- package/lite/fetch.js +0 -79
- package/lite/fetch.js.map +0 -1
- package/util/log.d.ts +0 -5
- package/util/log.d.ts.map +0 -1
- package/util/log.js +0 -17
- package/util/log.js.map +0 -1
- package/zod.d.ts +0 -13
- package/zod.d.ts.map +0 -1
- package/zod.js +0 -19
- package/zod.js.map +0 -1
package/ietf/error.js
CHANGED
|
@@ -1,153 +1,112 @@
|
|
|
1
|
-
/* @ts-self-types="./error.d.ts" */
|
|
2
1
|
/**
|
|
3
2
|
* The moq-transport error code registries, per negotiated draft.
|
|
4
3
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Draft-22 added INVALID_FILTER and removed INVALID_JOINING_REQUEST_ID; the rest
|
|
5
|
+
* holds from draft-18 on. Mirrors the Rust `moq_net::ietf::error` module, and the two have
|
|
6
|
+
* to agree value for value.
|
|
8
7
|
*
|
|
9
8
|
* @module
|
|
10
9
|
*/
|
|
11
10
|
import { Version } from "./version.js";
|
|
12
11
|
/**
|
|
13
|
-
*
|
|
14
|
-
* does in moq-lite's.
|
|
12
|
+
* Session close codes only moq-transport defines.
|
|
15
13
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
14
|
+
* moq-lite assigns none of them, so {@link SessionCode} names none: this layer sends them, and
|
|
15
|
+
* one a peer sends reads back as its number. Mirrors the Rust `ietf::error::session` module.
|
|
18
16
|
*
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
export const IetfSessionCode = Object.freeze({
|
|
20
|
+
/** A request ID was reused or broke the negotiated draft's order or parity rules. */
|
|
21
|
+
InvalidRequestId: 0x4,
|
|
22
|
+
/** A key-value pair was malformed or repeated more than allowed. */
|
|
23
|
+
KeyValueFormatting: 0x6,
|
|
24
|
+
/** A PATH the peer may not send, such as a server sending one at all. */
|
|
25
|
+
InvalidPath: 0x8,
|
|
26
|
+
/** A token registration would exceed the advertised token cache size, which is 0 when unadvertised. */
|
|
27
|
+
AuthTokenCacheOverflow: 0x13,
|
|
28
|
+
/** A token named an alias that was never registered. */
|
|
29
|
+
UnknownAuthTokenAlias: 0x17,
|
|
30
|
+
/** An AUTHORITY the peer may not send, such as a server sending one at all. */
|
|
31
|
+
InvalidAuthority: 0x19,
|
|
32
|
+
});
|
|
33
|
+
/**
|
|
34
|
+
* Whether `code` means the same thing in the moq-transport stream reset registry as it does
|
|
35
|
+
* in moq-lite's.
|
|
28
36
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
37
|
+
* The two agree on 0x0-0x5 (INTERNAL_ERROR, CANCELLED, DELIVERY_TIMEOUT, SESSION_CLOSED,
|
|
38
|
+
* GOING_AWAY, TOO_FAR_BEHIND) and 0x12 (MALFORMED_TRACK). Anything else is sent as, and read
|
|
39
|
+
* as, INTERNAL_ERROR: the codes moq-lite assigns in its own 48-63 range, and the ones the
|
|
40
|
+
* draft assigns that moq-lite has no name for (UNKNOWN_OBJECT_STATUS, EXPIRED_AUTH_TOKEN,
|
|
41
|
+
* EXCESSIVE_LOAD).
|
|
34
42
|
*
|
|
35
43
|
* @internal
|
|
36
44
|
*/
|
|
37
|
-
export function sharedStreamCode(code
|
|
38
|
-
|
|
39
|
-
case 0x0:
|
|
40
|
-
case 0x1:
|
|
41
|
-
case 0x2:
|
|
42
|
-
case 0x3:
|
|
43
|
-
return true;
|
|
44
|
-
// Draft-16 and 17 give 0x4 to UNKNOWN_OBJECT_STATUS, which draft-18 moved to 0x6 when
|
|
45
|
-
// it took 0x4 for GOING_AWAY. Draft-14 and 15 assign it nothing.
|
|
46
|
-
case 0x4:
|
|
47
|
-
return version >= Version.DRAFT_18;
|
|
48
|
-
// TOO_FAR_BEHIND arrived in draft-17.
|
|
49
|
-
case 0x5:
|
|
50
|
-
return version >= Version.DRAFT_17;
|
|
51
|
-
// MALFORMED_TRACK arrived in draft-16.
|
|
52
|
-
case 0x12:
|
|
53
|
-
return version >= Version.DRAFT_16;
|
|
54
|
-
default:
|
|
55
|
-
return false;
|
|
56
|
-
}
|
|
45
|
+
export function sharedStreamCode(code) {
|
|
46
|
+
return (code >= 0x0 && code <= 0x5) || code === 0x12;
|
|
57
47
|
}
|
|
58
48
|
/** An implementation-specific error. Assigned by every draft, for every request. */
|
|
59
49
|
const INTERNAL_ERROR = 0x0;
|
|
60
50
|
const UNAUTHORIZED = 0x1;
|
|
61
51
|
const TIMEOUT = 0x2;
|
|
62
52
|
const NOT_SUPPORTED = 0x3;
|
|
63
|
-
/** A draining session. Draft-17 and later. */
|
|
64
53
|
const GOING_AWAY = 0x6;
|
|
65
|
-
|
|
66
|
-
const
|
|
54
|
+
const MALFORMED_AUTH_TOKEN = 0x4;
|
|
55
|
+
const EXPIRED_AUTH_TOKEN = 0x5;
|
|
56
|
+
const DOES_NOT_EXIST = 0x10;
|
|
57
|
+
const MALFORMED_TRACK = 0x12;
|
|
58
|
+
const UNINTERESTED = 0x20;
|
|
59
|
+
/** FETCH-only errors. Draft-22 has no INVALID_JOINING_REQUEST_ID. */
|
|
67
60
|
const INVALID_RANGE = 0x11;
|
|
68
|
-
const INVALID_JOINING_REQUEST_ID_14 = 0x7;
|
|
69
61
|
const INVALID_JOINING_REQUEST_ID = 0x32;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return
|
|
62
|
+
/** Draft-22 added it. */
|
|
63
|
+
const INVALID_FILTER = 0x36;
|
|
64
|
+
function invalidRange(kind) {
|
|
65
|
+
return kind === "fetch" ? INVALID_RANGE : undefined;
|
|
74
66
|
}
|
|
75
67
|
function invalidJoiningRequestId(kind, version) {
|
|
76
|
-
|
|
77
|
-
return undefined;
|
|
78
|
-
if (version === Version.DRAFT_14)
|
|
79
|
-
return INVALID_JOINING_REQUEST_ID_14;
|
|
80
|
-
return version <= Version.DRAFT_19 ? INVALID_JOINING_REQUEST_ID : undefined;
|
|
81
|
-
}
|
|
82
|
-
/** Draft-14 calls it TRACK_DOES_NOT_EXIST; draft-15 renamed it and moved it off 0x4. */
|
|
83
|
-
const DOES_NOT_EXIST_14 = 0x4;
|
|
84
|
-
const DOES_NOT_EXIST = 0x10;
|
|
85
|
-
/** Draft-14 assigns UNINTERESTED only to the two requests that offer content. */
|
|
86
|
-
const UNINTERESTED_14 = 0x4;
|
|
87
|
-
const UNINTERESTED = 0x20;
|
|
88
|
-
/** Draft-14 assigns MALFORMED_TRACK to FETCH_ERROR only. */
|
|
89
|
-
const MALFORMED_TRACK_14 = 0x9;
|
|
90
|
-
const MALFORMED_TRACK = 0x12;
|
|
91
|
-
/** The value for "the thing you asked for is not here", or undefined where none is assigned. */
|
|
92
|
-
function doesNotExist(kind, version) {
|
|
93
|
-
if (version !== Version.DRAFT_14)
|
|
94
|
-
return DOES_NOT_EXIST;
|
|
95
|
-
return kind === "subscribe" || kind === "fetch" || kind === "track_status" ? DOES_NOT_EXIST_14 : undefined;
|
|
96
|
-
}
|
|
97
|
-
/** The value for "we do not want this", or undefined where none is assigned. */
|
|
98
|
-
function uninterested(kind, version) {
|
|
99
|
-
if (version !== Version.DRAFT_14)
|
|
100
|
-
return UNINTERESTED;
|
|
101
|
-
return kind === "publish" || kind === "publish_namespace" ? UNINTERESTED_14 : undefined;
|
|
102
|
-
}
|
|
103
|
-
/** The value for a track we could not parse, or undefined where none is assigned. */
|
|
104
|
-
function malformedTrack(kind, version) {
|
|
105
|
-
if (version !== Version.DRAFT_14)
|
|
106
|
-
return MALFORMED_TRACK;
|
|
107
|
-
return kind === "fetch" ? MALFORMED_TRACK_14 : undefined;
|
|
108
|
-
}
|
|
109
|
-
/** The value for a draining session, or undefined before draft-17 registered one. */
|
|
110
|
-
function goingAway(version) {
|
|
111
|
-
return version >= Version.DRAFT_17 ? GOING_AWAY : undefined;
|
|
68
|
+
return kind === "fetch" && version <= Version.DRAFT_18 ? INVALID_JOINING_REQUEST_ID : undefined;
|
|
112
69
|
}
|
|
113
70
|
/**
|
|
114
71
|
* The code to reject a request with, on the negotiated draft.
|
|
115
72
|
*
|
|
116
73
|
* A condition the draft does not register for this request falls back to INTERNAL_ERROR
|
|
117
74
|
* rather than borrowing a number from another draft, which would say something the peer's
|
|
118
|
-
* registry gives a different meaning.
|
|
119
|
-
* gives 0x4 to TRACK_DOES_NOT_EXIST and 0x10 to MALFORMED_AUTH_TOKEN, and draft-15 swaps
|
|
120
|
-
* the two.
|
|
75
|
+
* registry gives a different meaning.
|
|
121
76
|
*
|
|
122
77
|
* @internal
|
|
123
78
|
*/
|
|
124
79
|
export function toRequestCode(condition, kind, version) {
|
|
125
80
|
switch (condition) {
|
|
81
|
+
case "invalid_filter":
|
|
82
|
+
return version >= Version.DRAFT_20 ? INVALID_FILTER : INTERNAL_ERROR;
|
|
126
83
|
case "internal":
|
|
127
84
|
return INTERNAL_ERROR;
|
|
128
85
|
case "unauthorized":
|
|
129
86
|
return UNAUTHORIZED;
|
|
87
|
+
case "expired":
|
|
88
|
+
return EXPIRED_AUTH_TOKEN;
|
|
130
89
|
case "timeout":
|
|
131
90
|
return TIMEOUT;
|
|
132
91
|
case "not_supported":
|
|
133
92
|
return NOT_SUPPORTED;
|
|
134
93
|
case "invalid_range":
|
|
135
|
-
return invalidRange(kind
|
|
94
|
+
return invalidRange(kind) ?? INTERNAL_ERROR;
|
|
136
95
|
case "invalid_joining_request_id":
|
|
137
96
|
return invalidJoiningRequestId(kind, version) ?? INTERNAL_ERROR;
|
|
138
97
|
case "does_not_exist":
|
|
139
|
-
return
|
|
98
|
+
return DOES_NOT_EXIST;
|
|
140
99
|
// A subscriber that asked for content cannot act on "we do not want it": what it needs
|
|
141
100
|
// to know is that we do not have it, which is the same refusal from its side. Only the
|
|
142
101
|
// requests that offer content say UNINTERESTED.
|
|
143
102
|
case "uninterested":
|
|
144
|
-
return kind === "subscribe" || kind === "fetch" || kind === "track_status"
|
|
145
|
-
? (doesNotExist(kind, version) ?? INTERNAL_ERROR)
|
|
146
|
-
: (uninterested(kind, version) ?? INTERNAL_ERROR);
|
|
103
|
+
return kind === "subscribe" || kind === "fetch" || kind === "track_status" ? DOES_NOT_EXIST : UNINTERESTED;
|
|
147
104
|
case "malformed_track":
|
|
148
|
-
return
|
|
105
|
+
return MALFORMED_TRACK;
|
|
106
|
+
case "malformed_auth_token":
|
|
107
|
+
return MALFORMED_AUTH_TOKEN;
|
|
149
108
|
case "going_away":
|
|
150
|
-
return
|
|
109
|
+
return GOING_AWAY;
|
|
151
110
|
}
|
|
152
111
|
}
|
|
153
112
|
/**
|
|
@@ -167,17 +126,21 @@ export function fromRequestCode(code, kind, version) {
|
|
|
167
126
|
case NOT_SUPPORTED:
|
|
168
127
|
return "not_supported";
|
|
169
128
|
}
|
|
170
|
-
if (code ===
|
|
129
|
+
if (code === INVALID_FILTER && version >= Version.DRAFT_20)
|
|
130
|
+
return "invalid_filter";
|
|
131
|
+
if (code === DOES_NOT_EXIST)
|
|
171
132
|
return "does_not_exist";
|
|
172
|
-
if (code === invalidRange(kind
|
|
133
|
+
if (code === invalidRange(kind))
|
|
173
134
|
return "invalid_range";
|
|
174
135
|
if (code === invalidJoiningRequestId(kind, version))
|
|
175
136
|
return "invalid_joining_request_id";
|
|
176
|
-
if (code ===
|
|
137
|
+
if (code === EXPIRED_AUTH_TOKEN)
|
|
138
|
+
return "expired";
|
|
139
|
+
if (code === UNINTERESTED)
|
|
177
140
|
return "uninterested";
|
|
178
|
-
if (code ===
|
|
141
|
+
if (code === MALFORMED_TRACK)
|
|
179
142
|
return "malformed_track";
|
|
180
|
-
if (code ===
|
|
143
|
+
if (code === GOING_AWAY)
|
|
181
144
|
return "going_away";
|
|
182
145
|
return undefined;
|
|
183
146
|
}
|
|
@@ -190,4 +153,22 @@ export function requestReason(code, reasonPhrase, kind, version) {
|
|
|
190
153
|
const condition = fromRequestCode(code, kind, version) ?? "unregistered";
|
|
191
154
|
return `${condition} (code=${code}) ${reasonPhrase}`;
|
|
192
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* A peer's REQUEST_ERROR refusing a SUBSCRIBE: what it reads as, and the Retry Interval it asked
|
|
158
|
+
* for, which a relay forwards to its own readers unchanged.
|
|
159
|
+
*
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
162
|
+
export class SubscribeRefused extends Error {
|
|
163
|
+
/** The condition the code reads as, `internal` for one the draft does not register. */
|
|
164
|
+
condition;
|
|
165
|
+
/** The Retry Interval, in milliseconds. */
|
|
166
|
+
retryInterval;
|
|
167
|
+
constructor(code, reasonPhrase, retryInterval, version) {
|
|
168
|
+
super(`SUBSCRIBE error: ${requestReason(code, reasonPhrase, "subscribe", version)}`);
|
|
169
|
+
this.name = "SubscribeRefused";
|
|
170
|
+
this.condition = fromRequestCode(code, "subscribe", version) ?? "internal";
|
|
171
|
+
this.retryInterval = retryInterval;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
193
174
|
//# sourceMappingURL=error.js.map
|
package/ietf/error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/ietf/error.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAoB,OAAO,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAY,EAAE,OAAoB;IAClE,QAAQ,IAAI,EAAE,CAAC;QACd,KAAK,GAAG,CAAC;QACT,KAAK,GAAG,CAAC;QACT,KAAK,GAAG,CAAC;QACT,KAAK,GAAG;YACP,OAAO,IAAI,CAAC;QACb,sFAAsF;QACtF,iEAAiE;QACjE,KAAK,GAAG;YACP,OAAO,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC;QACpC,sCAAsC;QACtC,KAAK,GAAG;YACP,OAAO,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC;QACpC,uCAAuC;QACvC,KAAK,IAAI;YACR,OAAO,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC;QACpC;YACC,OAAO,KAAK,CAAC;IACf,CAAC;AACF,CAAC;AA+CD,oFAAoF;AACpF,MAAM,cAAc,GAAG,GAAG,CAAC;AAC3B,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,MAAM,OAAO,GAAG,GAAG,CAAC;AACpB,MAAM,aAAa,GAAG,GAAG,CAAC;AAE1B,8CAA8C;AAC9C,MAAM,UAAU,GAAG,GAAG,CAAC;AAEvB,6EAA6E;AAC7E,MAAM,gBAAgB,GAAG,GAAG,CAAC;AAC7B,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,6BAA6B,GAAG,GAAG,CAAC;AAC1C,MAAM,0BAA0B,GAAG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SAAS,UAAU,IAAI,KAAK,YAAY,EAAE,CAAC;AACtD,CAAC","sourcesContent":["/**\n * The moq-transport error code registries, per negotiated draft.\n *\n * A code only means something once you know which draft carried it: the registries grew,\n * moved values, and in draft-15 collapsed five per-message tables into one. Mirrors the\n * Rust `moq_net::ietf::error` module, and the two have to agree value for value.\n *\n * @module\n */\n\nimport { type IetfVersion, Version } from \"./version.ts\";\n\n/**\n * Whether `code` means the same thing in the negotiated draft's stream reset registry as it\n * does in moq-lite's.\n *\n * The two registries agree on most of what they both assign, but this one grew across the\n * drafts we negotiate and moved a value on the way:\n *\n * | Code | draft-14/15 | draft-16/17 | draft-18+ |\n * |------|-------------|-------------|-----------|\n * | 0x0 | INTERNAL_ERROR | INTERNAL_ERROR | INTERNAL_ERROR |\n * | 0x1 | CANCELLED | CANCELLED | CANCELLED |\n * | 0x2 | DELIVERY_TIMEOUT | DELIVERY_TIMEOUT | DELIVERY_TIMEOUT |\n * | 0x3 | SESSION_CLOSED | SESSION_CLOSED | SESSION_CLOSED |\n * | 0x4 | - | UNKNOWN_OBJECT_STATUS | GOING_AWAY |\n * | 0x5 | - | TOO_FAR_BEHIND (17) | TOO_FAR_BEHIND |\n * | 0x12 | - | MALFORMED_TRACK | MALFORMED_TRACK |\n *\n * So GOING_AWAY sent to a draft-17 peer reads as UNKNOWN_OBJECT_STATUS, and that peer's\n * UNKNOWN_OBJECT_STATUS read as GOING_AWAY would retire a session that is not going\n * anywhere. Anything this says `false` about is sent as, and read as, INTERNAL_ERROR: the\n * codes moq-lite assigns in its own 48-63 range, and the ones the draft assigns that\n * moq-lite has no name for (UNKNOWN_OBJECT_STATUS, EXPIRED_AUTH_TOKEN, EXCESSIVE_LOAD).\n *\n * @internal\n */\nexport function sharedStreamCode(code: number, version: IetfVersion): boolean {\n\tswitch (code) {\n\t\tcase 0x0:\n\t\tcase 0x1:\n\t\tcase 0x2:\n\t\tcase 0x3:\n\t\t\treturn true;\n\t\t// Draft-16 and 17 give 0x4 to UNKNOWN_OBJECT_STATUS, which draft-18 moved to 0x6 when\n\t\t// it took 0x4 for GOING_AWAY. Draft-14 and 15 assign it nothing.\n\t\tcase 0x4:\n\t\t\treturn version >= Version.DRAFT_18;\n\t\t// TOO_FAR_BEHIND arrived in draft-17.\n\t\tcase 0x5:\n\t\t\treturn version >= Version.DRAFT_17;\n\t\t// MALFORMED_TRACK arrived in draft-16.\n\t\tcase 0x12:\n\t\t\treturn version >= Version.DRAFT_16;\n\t\tdefault:\n\t\t\treturn false;\n\t}\n}\n\n/**\n * Which request a rejection answers, so draft-14 picks the right registry.\n *\n * Draft-14 gives each error message its own registry and they disagree about 0x4; draft-15\n * folded them all into REQUEST_ERROR with a single registry, so from there on the kind\n * changes nothing.\n *\n * @internal\n */\nexport type RequestKind =\n\t| \"subscribe\"\n\t| \"fetch\"\n\t| \"publish\"\n\t| \"publish_namespace\"\n\t| \"subscribe_namespace\"\n\t| \"track_status\";\n\n/**\n * What a rejection reports, before the draft picks the number for it.\n *\n * Named separately from the wire code because a rejection says less than a failure does: a\n * dozen local errors are one INTERNAL_ERROR on the wire.\n *\n * @internal\n */\nexport type RequestCondition =\n\t/** Something went wrong that the registry has no value for. */\n\t| \"internal\"\n\t/** The peer's credentials do not cover the request. */\n\t| \"unauthorized\"\n\t/** The request outlived an implementation-specific deadline. */\n\t| \"timeout\"\n\t/** This endpoint does not implement the request at all. */\n\t| \"not_supported\"\n\t/** The broadcast or track the peer asked for is not here. */\n\t| \"invalid_range\"\n\t| \"invalid_joining_request_id\"\n\t| \"does_not_exist\"\n\t/** The content the peer offered is not wanted here, so it should stop offering it. */\n\t| \"uninterested\"\n\t/** The track's content could not be parsed. */\n\t| \"malformed_track\"\n\t/** A GOAWAY is draining the session, so no new request is accepted. */\n\t| \"going_away\";\n\n/** An implementation-specific error. Assigned by every draft, for every request. */\nconst INTERNAL_ERROR = 0x0;\nconst UNAUTHORIZED = 0x1;\nconst TIMEOUT = 0x2;\nconst NOT_SUPPORTED = 0x3;\n\n/** A draining session. Draft-17 and later. */\nconst GOING_AWAY = 0x6;\n\n/** FETCH-only errors. INVALID_JOINING_REQUEST_ID was removed in draft-20. */\nconst INVALID_RANGE_14 = 0x5;\nconst INVALID_RANGE = 0x11;\nconst INVALID_JOINING_REQUEST_ID_14 = 0x7;\nconst INVALID_JOINING_REQUEST_ID = 0x32;\n\nfunction invalidRange(kind: RequestKind, version: IetfVersion): number | undefined {\n\tif (kind !== \"fetch\") return undefined;\n\treturn version === Version.DRAFT_14 ? INVALID_RANGE_14 : INVALID_RANGE;\n}\n\nfunction invalidJoiningRequestId(kind: RequestKind, version: IetfVersion): number | undefined {\n\tif (kind !== \"fetch\") return undefined;\n\tif (version === Version.DRAFT_14) return INVALID_JOINING_REQUEST_ID_14;\n\treturn version <= Version.DRAFT_19 ? INVALID_JOINING_REQUEST_ID : undefined;\n}\n\n/** Draft-14 calls it TRACK_DOES_NOT_EXIST; draft-15 renamed it and moved it off 0x4. */\nconst DOES_NOT_EXIST_14 = 0x4;\nconst DOES_NOT_EXIST = 0x10;\n\n/** Draft-14 assigns UNINTERESTED only to the two requests that offer content. */\nconst UNINTERESTED_14 = 0x4;\nconst UNINTERESTED = 0x20;\n\n/** Draft-14 assigns MALFORMED_TRACK to FETCH_ERROR only. */\nconst MALFORMED_TRACK_14 = 0x9;\nconst MALFORMED_TRACK = 0x12;\n\n/** The value for \"the thing you asked for is not here\", or undefined where none is assigned. */\nfunction doesNotExist(kind: RequestKind, version: IetfVersion): number | undefined {\n\tif (version !== Version.DRAFT_14) return DOES_NOT_EXIST;\n\treturn kind === \"subscribe\" || kind === \"fetch\" || kind === \"track_status\" ? DOES_NOT_EXIST_14 : undefined;\n}\n\n/** The value for \"we do not want this\", or undefined where none is assigned. */\nfunction uninterested(kind: RequestKind, version: IetfVersion): number | undefined {\n\tif (version !== Version.DRAFT_14) return UNINTERESTED;\n\treturn kind === \"publish\" || kind === \"publish_namespace\" ? UNINTERESTED_14 : undefined;\n}\n\n/** The value for a track we could not parse, or undefined where none is assigned. */\nfunction malformedTrack(kind: RequestKind, version: IetfVersion): number | undefined {\n\tif (version !== Version.DRAFT_14) return MALFORMED_TRACK;\n\treturn kind === \"fetch\" ? MALFORMED_TRACK_14 : undefined;\n}\n\n/** The value for a draining session, or undefined before draft-17 registered one. */\nfunction goingAway(version: IetfVersion): number | undefined {\n\treturn version >= Version.DRAFT_17 ? GOING_AWAY : undefined;\n}\n\n/**\n * The code to reject a request with, on the negotiated draft.\n *\n * A condition the draft does not register for this request falls back to INTERNAL_ERROR\n * rather than borrowing a number from another draft, which would say something the peer's\n * registry gives a different meaning. The renumbering is the trap: draft-14 SUBSCRIBE_ERROR\n * gives 0x4 to TRACK_DOES_NOT_EXIST and 0x10 to MALFORMED_AUTH_TOKEN, and draft-15 swaps\n * the two.\n *\n * @internal\n */\nexport function toRequestCode(condition: RequestCondition, kind: RequestKind, version: IetfVersion): number {\n\tswitch (condition) {\n\t\tcase \"internal\":\n\t\t\treturn INTERNAL_ERROR;\n\t\tcase \"unauthorized\":\n\t\t\treturn UNAUTHORIZED;\n\t\tcase \"timeout\":\n\t\t\treturn TIMEOUT;\n\t\tcase \"not_supported\":\n\t\t\treturn NOT_SUPPORTED;\n\t\tcase \"invalid_range\":\n\t\t\treturn invalidRange(kind, version) ?? INTERNAL_ERROR;\n\t\tcase \"invalid_joining_request_id\":\n\t\t\treturn invalidJoiningRequestId(kind, version) ?? INTERNAL_ERROR;\n\t\tcase \"does_not_exist\":\n\t\t\treturn doesNotExist(kind, version) ?? INTERNAL_ERROR;\n\t\t// A subscriber that asked for content cannot act on \"we do not want it\": what it needs\n\t\t// to know is that we do not have it, which is the same refusal from its side. Only the\n\t\t// requests that offer content say UNINTERESTED.\n\t\tcase \"uninterested\":\n\t\t\treturn kind === \"subscribe\" || kind === \"fetch\" || kind === \"track_status\"\n\t\t\t\t? (doesNotExist(kind, version) ?? INTERNAL_ERROR)\n\t\t\t\t: (uninterested(kind, version) ?? INTERNAL_ERROR);\n\t\tcase \"malformed_track\":\n\t\t\treturn malformedTrack(kind, version) ?? INTERNAL_ERROR;\n\t\tcase \"going_away\":\n\t\t\treturn goingAway(version) ?? INTERNAL_ERROR;\n\t}\n}\n\n/**\n * Read a rejection code received on the negotiated draft.\n *\n * A code the draft does not assign for this request, INTERNAL_ERROR included, is\n * `undefined`: an error, but never one given a meaning it did not carry.\n *\n * @internal\n */\nexport function fromRequestCode(code: number, kind: RequestKind, version: IetfVersion): RequestCondition | undefined {\n\tswitch (code) {\n\t\tcase UNAUTHORIZED:\n\t\t\treturn \"unauthorized\";\n\t\tcase TIMEOUT:\n\t\t\treturn \"timeout\";\n\t\tcase NOT_SUPPORTED:\n\t\t\treturn \"not_supported\";\n\t}\n\n\tif (code === doesNotExist(kind, version)) return \"does_not_exist\";\n\tif (code === invalidRange(kind, version)) return \"invalid_range\";\n\tif (code === invalidJoiningRequestId(kind, version)) return \"invalid_joining_request_id\";\n\tif (code === uninterested(kind, version)) return \"uninterested\";\n\tif (code === malformedTrack(kind, version)) return \"malformed_track\";\n\tif (code === goingAway(version)) return \"going_away\";\n\treturn undefined;\n}\n\n/**\n * Describe a rejection a peer sent, naming the condition when the draft registers one.\n *\n * @internal\n */\nexport function requestReason(code: number, reasonPhrase: string, kind: RequestKind, version: IetfVersion): string {\n\tconst condition = fromRequestCode(code, kind, version) ?? \"unregistered\";\n\treturn `${condition} (code=${code}) ${reasonPhrase}`;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../src/ietf/error.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAoB,OAAO,EAAE,MAAM,cAAc,CAAC;AAEzD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;IAC5C,qFAAqF;IACrF,gBAAgB,EAAE,GAAkB;IACpC,oEAAoE;IACpE,kBAAkB,EAAE,GAAkB;IACtC,yEAAyE;IACzE,WAAW,EAAE,GAA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aAAa,CAAC;IACpC,CAAC;CACD","sourcesContent":["/**\n * The moq-transport error code registries, per negotiated draft.\n *\n * Draft-22 added INVALID_FILTER and removed INVALID_JOINING_REQUEST_ID; the rest\n * holds from draft-18 on. Mirrors the Rust `moq_net::ietf::error` module, and the two have\n * to agree value for value.\n *\n * @module\n */\n\nimport type { SessionCode } from \"../error.ts\";\nimport { type IetfVersion, Version } from \"./version.ts\";\n\n/**\n * Session close codes only moq-transport defines.\n *\n * moq-lite assigns none of them, so {@link SessionCode} names none: this layer sends them, and\n * one a peer sends reads back as its number. Mirrors the Rust `ietf::error::session` module.\n *\n * @internal\n */\nexport const IetfSessionCode = Object.freeze({\n\t/** A request ID was reused or broke the negotiated draft's order or parity rules. */\n\tInvalidRequestId: 0x4 as SessionCode,\n\t/** A key-value pair was malformed or repeated more than allowed. */\n\tKeyValueFormatting: 0x6 as SessionCode,\n\t/** A PATH the peer may not send, such as a server sending one at all. */\n\tInvalidPath: 0x8 as SessionCode,\n\t/** A token registration would exceed the advertised token cache size, which is 0 when unadvertised. */\n\tAuthTokenCacheOverflow: 0x13 as SessionCode,\n\t/** A token named an alias that was never registered. */\n\tUnknownAuthTokenAlias: 0x17 as SessionCode,\n\t/** An AUTHORITY the peer may not send, such as a server sending one at all. */\n\tInvalidAuthority: 0x19 as SessionCode,\n} as const);\n\n/**\n * Whether `code` means the same thing in the moq-transport stream reset registry as it does\n * in moq-lite's.\n *\n * The two agree on 0x0-0x5 (INTERNAL_ERROR, CANCELLED, DELIVERY_TIMEOUT, SESSION_CLOSED,\n * GOING_AWAY, TOO_FAR_BEHIND) and 0x12 (MALFORMED_TRACK). Anything else is sent as, and read\n * as, INTERNAL_ERROR: the codes moq-lite assigns in its own 48-63 range, and the ones the\n * draft assigns that moq-lite has no name for (UNKNOWN_OBJECT_STATUS, EXPIRED_AUTH_TOKEN,\n * EXCESSIVE_LOAD).\n *\n * @internal\n */\nexport function sharedStreamCode(code: number): boolean {\n\treturn (code >= 0x0 && code <= 0x5) || code === 0x12;\n}\n\n/**\n * Which request a rejection answers: some codes are registered for only some requests.\n *\n * @internal\n */\nexport type RequestKind =\n\t| \"subscribe\"\n\t| \"fetch\"\n\t| \"publish\"\n\t| \"publish_namespace\"\n\t| \"subscribe_namespace\"\n\t| \"track_status\";\n\n/**\n * What a rejection reports, before the draft picks the number for it.\n *\n * Named separately from the wire code because a rejection says less than a failure does: a\n * dozen local errors are one INTERNAL_ERROR on the wire.\n *\n * @internal\n */\nexport type RequestCondition =\n\t/** Something went wrong that the registry has no value for. */\n\t| \"internal\"\n\t/** The peer's credentials do not cover the request. */\n\t| \"unauthorized\"\n\t/** The token expired and can be refreshed. */\n\t| \"expired\"\n\t/** The request outlived an implementation-specific deadline. */\n\t| \"timeout\"\n\t/** This endpoint does not implement the request at all. */\n\t| \"not_supported\"\n\t/** The broadcast or track the peer asked for is not here. */\n\t| \"invalid_range\"\n\t| \"invalid_filter\"\n\t| \"invalid_joining_request_id\"\n\t| \"does_not_exist\"\n\t/** The content the peer offered is not wanted here, so it should stop offering it. */\n\t| \"uninterested\"\n\t/** The track's content could not be parsed. */\n\t| \"malformed_track\"\n\t/** A well-formed AUTHORIZATION TOKEN this endpoint cannot use, such as a repeat. */\n\t| \"malformed_auth_token\"\n\t/** A GOAWAY is draining the session, so no new request is accepted. */\n\t| \"going_away\";\n\n/** An implementation-specific error. Assigned by every draft, for every request. */\nconst INTERNAL_ERROR = 0x0;\nconst UNAUTHORIZED = 0x1;\nconst TIMEOUT = 0x2;\nconst NOT_SUPPORTED = 0x3;\n\nconst GOING_AWAY = 0x6;\nconst MALFORMED_AUTH_TOKEN = 0x4;\nconst EXPIRED_AUTH_TOKEN = 0x5;\nconst DOES_NOT_EXIST = 0x10;\nconst MALFORMED_TRACK = 0x12;\nconst UNINTERESTED = 0x20;\n\n/** FETCH-only errors. Draft-22 has no INVALID_JOINING_REQUEST_ID. */\nconst INVALID_RANGE = 0x11;\nconst INVALID_JOINING_REQUEST_ID = 0x32;\n\n/** Draft-22 added it. */\nconst INVALID_FILTER = 0x36;\n\nfunction invalidRange(kind: RequestKind): number | undefined {\n\treturn kind === \"fetch\" ? INVALID_RANGE : undefined;\n}\n\nfunction invalidJoiningRequestId(kind: RequestKind, version: IetfVersion): number | undefined {\n\treturn kind === \"fetch\" && version <= Version.DRAFT_18 ? INVALID_JOINING_REQUEST_ID : undefined;\n}\n\n/**\n * The code to reject a request with, on the negotiated draft.\n *\n * A condition the draft does not register for this request falls back to INTERNAL_ERROR\n * rather than borrowing a number from another draft, which would say something the peer's\n * registry gives a different meaning.\n *\n * @internal\n */\nexport function toRequestCode(condition: RequestCondition, kind: RequestKind, version: IetfVersion): number {\n\tswitch (condition) {\n\t\tcase \"invalid_filter\":\n\t\t\treturn version >= Version.DRAFT_20 ? INVALID_FILTER : INTERNAL_ERROR;\n\t\tcase \"internal\":\n\t\t\treturn INTERNAL_ERROR;\n\t\tcase \"unauthorized\":\n\t\t\treturn UNAUTHORIZED;\n\t\tcase \"expired\":\n\t\t\treturn EXPIRED_AUTH_TOKEN;\n\t\tcase \"timeout\":\n\t\t\treturn TIMEOUT;\n\t\tcase \"not_supported\":\n\t\t\treturn NOT_SUPPORTED;\n\t\tcase \"invalid_range\":\n\t\t\treturn invalidRange(kind) ?? INTERNAL_ERROR;\n\t\tcase \"invalid_joining_request_id\":\n\t\t\treturn invalidJoiningRequestId(kind, version) ?? INTERNAL_ERROR;\n\t\tcase \"does_not_exist\":\n\t\t\treturn DOES_NOT_EXIST;\n\t\t// A subscriber that asked for content cannot act on \"we do not want it\": what it needs\n\t\t// to know is that we do not have it, which is the same refusal from its side. Only the\n\t\t// requests that offer content say UNINTERESTED.\n\t\tcase \"uninterested\":\n\t\t\treturn kind === \"subscribe\" || kind === \"fetch\" || kind === \"track_status\" ? DOES_NOT_EXIST : UNINTERESTED;\n\t\tcase \"malformed_track\":\n\t\t\treturn MALFORMED_TRACK;\n\t\tcase \"malformed_auth_token\":\n\t\t\treturn MALFORMED_AUTH_TOKEN;\n\t\tcase \"going_away\":\n\t\t\treturn GOING_AWAY;\n\t}\n}\n\n/**\n * Read a rejection code received on the negotiated draft.\n *\n * A code the draft does not assign for this request, INTERNAL_ERROR included, is\n * `undefined`: an error, but never one given a meaning it did not carry.\n *\n * @internal\n */\nexport function fromRequestCode(code: number, kind: RequestKind, version: IetfVersion): RequestCondition | undefined {\n\tswitch (code) {\n\t\tcase UNAUTHORIZED:\n\t\t\treturn \"unauthorized\";\n\t\tcase TIMEOUT:\n\t\t\treturn \"timeout\";\n\t\tcase NOT_SUPPORTED:\n\t\t\treturn \"not_supported\";\n\t}\n\n\tif (code === INVALID_FILTER && version >= Version.DRAFT_20) return \"invalid_filter\";\n\tif (code === DOES_NOT_EXIST) return \"does_not_exist\";\n\tif (code === invalidRange(kind)) return \"invalid_range\";\n\tif (code === invalidJoiningRequestId(kind, version)) return \"invalid_joining_request_id\";\n\tif (code === EXPIRED_AUTH_TOKEN) return \"expired\";\n\tif (code === UNINTERESTED) return \"uninterested\";\n\tif (code === MALFORMED_TRACK) return \"malformed_track\";\n\tif (code === GOING_AWAY) return \"going_away\";\n\treturn undefined;\n}\n\n/**\n * Describe a rejection a peer sent, naming the condition when the draft registers one.\n *\n * @internal\n */\nexport function requestReason(code: number, reasonPhrase: string, kind: RequestKind, version: IetfVersion): string {\n\tconst condition = fromRequestCode(code, kind, version) ?? \"unregistered\";\n\treturn `${condition} (code=${code}) ${reasonPhrase}`;\n}\n\n/**\n * A peer's REQUEST_ERROR refusing a SUBSCRIBE: what it reads as, and the Retry Interval it asked\n * for, which a relay forwards to its own readers unchanged.\n *\n * @internal\n */\nexport class SubscribeRefused extends Error {\n\t/** The condition the code reads as, `internal` for one the draft does not register. */\n\treadonly condition: RequestCondition;\n\t/** The Retry Interval, in milliseconds. */\n\treadonly retryInterval: bigint;\n\n\tconstructor(code: number, reasonPhrase: string, retryInterval: bigint, version: IetfVersion) {\n\t\tsuper(`SUBSCRIBE error: ${requestReason(code, reasonPhrase, \"subscribe\", version)}`);\n\t\tthis.name = \"SubscribeRefused\";\n\t\tthis.condition = fromRequestCode(code, \"subscribe\", version) ?? \"internal\";\n\t\tthis.retryInterval = retryInterval;\n\t}\n}\n"]}
|
package/ietf/fetch.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { type
|
|
1
|
+
import type * as Path from "../path.ts";
|
|
2
|
+
import { type Reader, Writer } from "../stream.ts";
|
|
3
|
+
import type { Order } from "../track.ts";
|
|
4
|
+
import * as Filter from "./filter.ts";
|
|
5
|
+
import * as Properties from "./properties.ts";
|
|
6
|
+
import { type IetfVersion } from "./version.ts";
|
|
3
7
|
/**
|
|
4
|
-
* The header that begins a fetch stream (draft-
|
|
5
|
-
* answers. Written by the publisher when serving a subscription's fill.
|
|
8
|
+
* The header that begins a fetch stream (draft-22 section 11.4), naming the request it
|
|
9
|
+
* answers. Written by the publisher when serving a FETCH or a subscription's fill.
|
|
6
10
|
*/
|
|
7
11
|
export declare class FetchHeader {
|
|
8
12
|
/** The uni stream type, not a control message id. */
|
|
@@ -17,52 +21,104 @@ export declare class FetchHeader {
|
|
|
17
21
|
/** Read the header, with the stream type already consumed. */
|
|
18
22
|
static decode(r: Reader, _version: IetfVersion): Promise<FetchHeader>;
|
|
19
23
|
}
|
|
24
|
+
/** A `{Group, Object}` Location. */
|
|
25
|
+
export interface Location {
|
|
26
|
+
/** The group's sequence number. */
|
|
27
|
+
group: bigint;
|
|
28
|
+
/** The object's id within that group. */
|
|
29
|
+
object: bigint;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* What a FETCH asks for.
|
|
33
|
+
*
|
|
34
|
+
* Through draft-18 a Fetch Type tag picks one of the first three. Draft-22 dropped the tag
|
|
35
|
+
* and the joining forms, leaving `filtered`.
|
|
36
|
+
*/
|
|
37
|
+
export type FetchType =
|
|
20
38
|
/**
|
|
21
|
-
* A
|
|
22
|
-
*
|
|
39
|
+
* A range of a track, through draft-18. `end` is one past the last object, or Object 0
|
|
40
|
+
* for the whole End Group.
|
|
23
41
|
*/
|
|
42
|
+
{
|
|
43
|
+
kind: "standalone";
|
|
44
|
+
trackNamespace: Path.Valid;
|
|
45
|
+
trackName: string;
|
|
46
|
+
start: Location;
|
|
47
|
+
end: Location;
|
|
48
|
+
}
|
|
49
|
+
/** The groups `offset` back from a subscription's Largest Object group, through draft-18. */
|
|
50
|
+
| {
|
|
51
|
+
kind: "relativeJoining";
|
|
52
|
+
subscription: bigint;
|
|
53
|
+
offset: bigint;
|
|
54
|
+
}
|
|
55
|
+
/** The groups from `group` up to a subscription's Largest Object group, through draft-18. */
|
|
56
|
+
| {
|
|
57
|
+
kind: "absoluteJoining";
|
|
58
|
+
subscription: bigint;
|
|
59
|
+
group: bigint;
|
|
60
|
+
}
|
|
61
|
+
/** A track with the range as a LOCATION_FILTER, from draft-22 on. */
|
|
62
|
+
| {
|
|
63
|
+
kind: "filtered";
|
|
64
|
+
trackNamespace: Path.Valid;
|
|
65
|
+
trackName: string;
|
|
66
|
+
filter: Filter.Filter;
|
|
67
|
+
};
|
|
68
|
+
/** A FETCH request. */
|
|
24
69
|
export declare class Fetch {
|
|
25
70
|
#private;
|
|
26
71
|
static id: number;
|
|
27
72
|
requestId: bigint;
|
|
28
|
-
|
|
73
|
+
/** What the request asks for. */
|
|
74
|
+
type: FetchType;
|
|
75
|
+
/** The SUBSCRIBER_PRIORITY wire byte, lower first. */
|
|
76
|
+
subscriberPriority: number;
|
|
77
|
+
/** The order the response's groups go out in, or the publisher's pick when absent. */
|
|
78
|
+
groupOrder?: Order;
|
|
79
|
+
/** Whether the request carried Range Filters, which we refuse. Never encoded. */
|
|
80
|
+
rangeFilters: boolean;
|
|
81
|
+
/** Whether the requester wants Track Properties in FETCH_OK (INCLUDE_PROPERTIES, draft-22). */
|
|
82
|
+
propertiesWanted: boolean;
|
|
83
|
+
constructor({ requestId, type, subscriberPriority, groupOrder, rangeFilters, propertiesWanted, }: {
|
|
29
84
|
requestId: bigint;
|
|
85
|
+
type: FetchType;
|
|
86
|
+
subscriberPriority?: number;
|
|
87
|
+
groupOrder?: Order;
|
|
88
|
+
rangeFilters?: boolean;
|
|
89
|
+
propertiesWanted?: boolean;
|
|
30
90
|
});
|
|
31
|
-
encode(w: Writer,
|
|
91
|
+
encode(w: Writer, version: IetfVersion): Promise<void>;
|
|
32
92
|
static decode(r: Reader, version: IetfVersion): Promise<Fetch>;
|
|
33
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* The answer to a FETCH, sent before its fetch stream: the FETCH_OK message (0x18) through
|
|
96
|
+
* draft-22, and a REQUEST_OK (0x07) from draft-23 on (section 9.3).
|
|
97
|
+
*/
|
|
34
98
|
export declare class FetchOk {
|
|
35
99
|
#private;
|
|
36
100
|
static id: number;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
101
|
+
/** Whether the response holds the track's final object. Through draft-22 only. */
|
|
102
|
+
endOfTrack: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* Where the response ends. Draft-18 uses the last object plus one, or Object 0 for the
|
|
105
|
+
* whole End Group; draft-22 an inclusive End Location. Draft-23 has none: the answer ends
|
|
106
|
+
* at {@link largest} when set, and at the requested end otherwise (section 3.2).
|
|
107
|
+
*/
|
|
108
|
+
endLocation: Location;
|
|
109
|
+
/** Draft-23's LARGEST_OBJECT, where the answer ends when the requested range reaches it. */
|
|
110
|
+
largest?: Location;
|
|
111
|
+
/** The track's properties, as SUBSCRIBE_OK carries them. */
|
|
112
|
+
properties: Properties.Properties;
|
|
113
|
+
constructor({ endOfTrack, endLocation, largest, properties, }: {
|
|
114
|
+
endOfTrack: boolean;
|
|
115
|
+
endLocation: Location;
|
|
116
|
+
largest?: Location;
|
|
117
|
+
properties?: Properties.Properties;
|
|
40
118
|
});
|
|
41
|
-
|
|
42
|
-
static
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
#private;
|
|
46
|
-
static id: number;
|
|
47
|
-
requestId: bigint;
|
|
48
|
-
errorCode: number;
|
|
49
|
-
reasonPhrase: string;
|
|
50
|
-
constructor({ requestId, errorCode, reasonPhrase, }: {
|
|
51
|
-
requestId: bigint;
|
|
52
|
-
errorCode: number;
|
|
53
|
-
reasonPhrase: string;
|
|
54
|
-
});
|
|
55
|
-
encode(w: Writer, _version: IetfVersion): Promise<void>;
|
|
56
|
-
static decode(r: Reader, _version: IetfVersion): Promise<FetchError>;
|
|
57
|
-
}
|
|
58
|
-
export declare class FetchCancel {
|
|
59
|
-
#private;
|
|
60
|
-
static id: number;
|
|
61
|
-
requestId: bigint;
|
|
62
|
-
constructor({ requestId }: {
|
|
63
|
-
requestId: bigint;
|
|
64
|
-
});
|
|
65
|
-
encode(w: Writer, _version: IetfVersion): Promise<void>;
|
|
66
|
-
static decode(r: Reader, _version: IetfVersion): Promise<FetchCancel>;
|
|
119
|
+
/** The message type answering a FETCH on `version`; FETCH_OK's own is reserved from draft-23. */
|
|
120
|
+
static idFor(version: IetfVersion): number;
|
|
121
|
+
encode(w: Writer, version: IetfVersion): Promise<void>;
|
|
122
|
+
static decode(r: Reader, version: IetfVersion): Promise<FetchOk>;
|
|
67
123
|
}
|
|
68
124
|
//# sourceMappingURL=fetch.d.ts.map
|
package/ietf/fetch.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/ietf/fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"fetch.d.ts","sourceRoot":"","sources":["../../src/ietf/fetch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,IAAI,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,a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