@moqtap/codec 0.1.1 → 0.2.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 +99 -95
- package/dist/chunk-4RIXXEII.js +1275 -0
- package/dist/chunk-4XYGE53S.cjs +698 -0
- package/dist/chunk-4YJANAXU.cjs +1109 -0
- package/dist/chunk-6AEHWULA.cjs +641 -0
- package/dist/chunk-7DUBLRXC.js +680 -0
- package/dist/{chunk-YBZD3DU5.cjs → chunk-7IVGHMKJ.cjs} +44 -42
- package/dist/chunk-BISI45MN.cjs +680 -0
- package/dist/{chunk-NLYTRGXA.cjs → chunk-BPNL5YFQ.cjs} +5 -5
- package/dist/chunk-CXDHOMHG.js +1097 -0
- package/dist/chunk-DUBCL3WF.cjs +749 -0
- package/dist/chunk-DWK5ZQZ4.js +642 -0
- package/dist/chunk-E6E3NQYU.js +680 -0
- package/dist/chunk-EFM5T7OM.js +698 -0
- package/dist/chunk-ENURAVHI.cjs +680 -0
- package/dist/{chunk-Z66WDWHI.js → chunk-FXZ2MYKJ.js} +127 -1
- package/dist/chunk-G26SJ6XS.cjs +1341 -0
- package/dist/chunk-G7GI7LJA.js +737 -0
- package/dist/chunk-GXEW4COZ.cjs +737 -0
- package/dist/chunk-HSVYF6XX.cjs +1361 -0
- package/dist/chunk-IBVM4DMJ.cjs +1097 -0
- package/dist/chunk-IV2H5CFI.cjs +1275 -0
- package/dist/chunk-IV2HRJVT.js +1198 -0
- package/dist/chunk-JSQM2MG3.js +680 -0
- package/dist/chunk-K4OLITS2.cjs +1055 -0
- package/dist/{chunk-UOBWHJA5.js → chunk-KFTCU2P6.js} +2 -3
- package/dist/chunk-LH4NTURO.js +1361 -0
- package/dist/{chunk-YTXLWKOR.js → chunk-MFAP7R6L.js} +1 -1
- package/dist/chunk-NGVE2RZT.js +1097 -0
- package/dist/chunk-NUX5BHWO.js +1341 -0
- package/dist/chunk-PJRA2TQ5.js +1055 -0
- package/dist/chunk-RVJAGE4S.cjs +1198 -0
- package/dist/{chunk-QYG6KGOV.cjs → chunk-RWQ43Z4F.cjs} +2 -3
- package/dist/chunk-RZHAPEXO.js +749 -0
- package/dist/chunk-ST24APEO.js +1109 -0
- package/dist/chunk-SYHW3FLI.cjs +642 -0
- package/dist/chunk-TLYNOOQP.cjs +432 -0
- package/dist/{chunk-IXHOBNXA.js → chunk-TMNGRIPL.js} +43 -41
- package/dist/chunk-UNS34PTA.cjs +680 -0
- package/dist/chunk-UR6JKS56.js +432 -0
- package/dist/{chunk-NPWHHWXT.cjs → chunk-UYXTY6ZQ.cjs} +127 -1
- package/dist/chunk-XUUCOLWU.cjs +1097 -0
- package/dist/chunk-YG5KJESI.js +641 -0
- package/dist/chunk-ZBKE2QRQ.js +1401 -0
- package/dist/chunk-ZSPO2GF2.cjs +1401 -0
- package/dist/codec-95k8CAu5.d.cts +35 -0
- package/dist/codec-AFuOxfsO.d.ts +60 -0
- package/dist/codec-B-UJ5Iow.d.cts +75 -0
- package/dist/codec-BC5jfvMb.d.ts +35 -0
- package/dist/codec-BECYPfY8.d.ts +35 -0
- package/dist/codec-BsPU1vNC.d.ts +39 -0
- package/dist/codec-BvpuF-6u.d.cts +39 -0
- package/dist/codec-C8jZI5Cx.d.cts +39 -0
- package/dist/codec-CAevkgf5.d.cts +33 -0
- package/dist/codec-CSUqCrRs.d.ts +39 -0
- package/dist/codec-C_HMXNK_.d.ts +33 -0
- package/dist/{codec-Bvr7rFtj.d.cts → codec-CpuvYTSV.d.cts} +1 -1
- package/dist/codec-D0x8-SCw.d.cts +35 -0
- package/dist/codec-D7ARhpG1.d.ts +75 -0
- package/dist/codec-DNAUGshO.d.cts +60 -0
- package/dist/codec-DPx_QNn0.d.ts +31 -0
- package/dist/{codec-B2mc2g3i.d.ts → codec-DRhCx_hw.d.ts} +1 -1
- package/dist/codec-Db7YPe3l.d.ts +31 -0
- package/dist/codec-axkJpb7D.d.cts +31 -0
- package/dist/codec-ujAbFaep.d.cts +31 -0
- package/dist/draft10-session.cjs +6 -0
- package/dist/draft10-session.d.cts +8 -0
- package/dist/draft10-session.d.ts +8 -0
- package/dist/draft10-session.js +6 -0
- package/dist/draft10.cjs +115 -0
- package/dist/draft10.d.cts +95 -0
- package/dist/draft10.d.ts +95 -0
- package/dist/draft10.js +115 -0
- package/dist/draft11-session.cjs +6 -0
- package/dist/draft11-session.d.cts +8 -0
- package/dist/draft11-session.d.ts +8 -0
- package/dist/draft11-session.js +6 -0
- package/dist/draft11.cjs +109 -0
- package/dist/draft11.d.cts +99 -0
- package/dist/draft11.d.ts +99 -0
- package/dist/draft11.js +109 -0
- package/dist/draft12-session.cjs +6 -0
- package/dist/draft12-session.d.cts +8 -0
- package/dist/draft12-session.d.ts +8 -0
- package/dist/draft12-session.js +6 -0
- package/dist/draft12.cjs +117 -0
- package/dist/draft12.d.cts +106 -0
- package/dist/draft12.d.ts +106 -0
- package/dist/draft12.js +117 -0
- package/dist/draft13-session.cjs +6 -0
- package/dist/draft13-session.d.cts +8 -0
- package/dist/draft13-session.d.ts +8 -0
- package/dist/draft13-session.js +6 -0
- package/dist/draft13.cjs +119 -0
- package/dist/draft13.d.cts +108 -0
- package/dist/draft13.d.ts +108 -0
- package/dist/draft13.js +119 -0
- package/dist/draft14-session.cjs +2 -2
- package/dist/draft14-session.d.cts +3 -3
- package/dist/draft14-session.d.ts +3 -3
- package/dist/draft14-session.js +1 -1
- package/dist/draft14.cjs +3 -3
- package/dist/draft14.d.cts +16 -4
- package/dist/draft14.d.ts +16 -4
- package/dist/draft14.js +2 -2
- package/dist/draft15-session.cjs +6 -0
- package/dist/draft15-session.d.cts +8 -0
- package/dist/draft15-session.d.ts +8 -0
- package/dist/draft15-session.js +6 -0
- package/dist/draft15.cjs +111 -0
- package/dist/draft15.d.cts +93 -0
- package/dist/draft15.d.ts +93 -0
- package/dist/draft15.js +111 -0
- package/dist/draft16-session.cjs +6 -0
- package/dist/draft16-session.d.cts +8 -0
- package/dist/draft16-session.d.ts +8 -0
- package/dist/draft16-session.js +6 -0
- package/dist/draft16.cjs +113 -0
- package/dist/draft16.d.cts +94 -0
- package/dist/draft16.d.ts +94 -0
- package/dist/draft16.js +113 -0
- package/dist/draft17-session.cjs +8 -0
- package/dist/draft17-session.d.cts +51 -0
- package/dist/draft17-session.d.ts +51 -0
- package/dist/draft17-session.js +8 -0
- package/dist/draft17.cjs +99 -0
- package/dist/draft17.d.cts +40 -0
- package/dist/draft17.d.ts +40 -0
- package/dist/draft17.js +99 -0
- package/dist/draft7-session.cjs +3 -3
- package/dist/draft7-session.d.cts +3 -3
- package/dist/draft7-session.d.ts +3 -3
- package/dist/draft7-session.js +2 -2
- package/dist/draft7.cjs +4 -4
- package/dist/draft7.d.cts +2 -2
- package/dist/draft7.d.ts +2 -2
- package/dist/draft7.js +2 -2
- package/dist/draft8-session.cjs +6 -0
- package/dist/draft8-session.d.cts +8 -0
- package/dist/draft8-session.d.ts +8 -0
- package/dist/draft8-session.js +6 -0
- package/dist/draft8.cjs +115 -0
- package/dist/draft8.d.cts +95 -0
- package/dist/draft8.d.ts +95 -0
- package/dist/draft8.js +115 -0
- package/dist/draft9-session.cjs +6 -0
- package/dist/draft9-session.d.cts +8 -0
- package/dist/draft9-session.d.ts +8 -0
- package/dist/draft9-session.js +6 -0
- package/dist/draft9.cjs +115 -0
- package/dist/draft9.d.cts +95 -0
- package/dist/draft9.d.ts +95 -0
- package/dist/draft9.js +115 -0
- package/dist/index.cjs +76 -4
- package/dist/index.d.cts +68 -5
- package/dist/index.d.ts +68 -5
- package/dist/index.js +76 -4
- package/dist/{session-types-DFjMk4HH.d.ts → session-types-CJIFbTPd.d.ts} +1 -1
- package/dist/{session-types-DW1RSZX_.d.cts → session-types-Cbq8IGCP.d.cts} +1 -1
- package/dist/session.cjs +5 -5
- package/dist/session.d.cts +3 -3
- package/dist/session.d.ts +3 -3
- package/dist/session.js +5 -5
- package/dist/types-4VxSL2Ho.d.cts +261 -0
- package/dist/types-4VxSL2Ho.d.ts +261 -0
- package/dist/types-B2afJZM-.d.cts +236 -0
- package/dist/types-B2afJZM-.d.ts +236 -0
- package/dist/types-Bg6QYNVt.d.cts +290 -0
- package/dist/types-Bg6QYNVt.d.ts +290 -0
- package/dist/types-C_1HrqBl.d.cts +306 -0
- package/dist/types-C_1HrqBl.d.ts +306 -0
- package/dist/types-Cw4WE9dh.d.cts +261 -0
- package/dist/types-Cw4WE9dh.d.ts +261 -0
- package/dist/types-D5gNQiDj.d.cts +261 -0
- package/dist/types-D5gNQiDj.d.ts +261 -0
- package/dist/types-DqCDFqgB.d.cts +230 -0
- package/dist/types-DqCDFqgB.d.ts +230 -0
- package/dist/types-ERexTpT8.d.cts +217 -0
- package/dist/types-ERexTpT8.d.ts +217 -0
- package/dist/{types-DPYE49t0.d.cts → types-QNXoxC9Y.d.cts} +2 -7
- package/dist/{types-DPYE49t0.d.ts → types-QNXoxC9Y.d.ts} +2 -7
- package/dist/types-r-CasCf1.d.cts +262 -0
- package/dist/types-r-CasCf1.d.ts +262 -0
- package/package.json +110 -2
- package/src/core/types.ts +24 -7
- package/src/drafts/draft07/codec.ts +49 -41
- package/src/drafts/draft07/rules.ts +1 -3
- package/src/drafts/draft08/codec.ts +1254 -0
- package/src/drafts/draft08/index.ts +125 -0
- package/src/drafts/draft08/messages.ts +72 -0
- package/src/drafts/draft08/rules.ts +91 -0
- package/src/drafts/draft08/session-fsm.ts +718 -0
- package/src/drafts/draft08/session.ts +26 -0
- package/src/drafts/draft08/types.ts +377 -0
- package/src/drafts/draft09/codec.ts +1235 -0
- package/src/drafts/draft09/index.ts +125 -0
- package/src/drafts/draft09/messages.ts +72 -0
- package/src/drafts/draft09/rules.ts +91 -0
- package/src/drafts/draft09/session-fsm.ts +718 -0
- package/src/drafts/draft09/session.ts +26 -0
- package/src/drafts/draft09/types.ts +376 -0
- package/src/drafts/draft10/codec.ts +1235 -0
- package/src/drafts/draft10/index.ts +125 -0
- package/src/drafts/draft10/messages.ts +72 -0
- package/src/drafts/draft10/rules.ts +91 -0
- package/src/drafts/draft10/session-fsm.ts +718 -0
- package/src/drafts/draft10/session.ts +26 -0
- package/src/drafts/draft10/types.ts +376 -0
- package/src/drafts/draft11/codec.ts +1198 -0
- package/src/drafts/draft11/index.ts +123 -0
- package/src/drafts/draft11/messages.ts +71 -0
- package/src/drafts/draft11/rules.ts +100 -0
- package/src/drafts/draft11/session-fsm.ts +758 -0
- package/src/drafts/draft11/session.ts +26 -0
- package/src/drafts/draft11/types.ts +375 -0
- package/src/drafts/draft12/codec.ts +1354 -0
- package/src/drafts/draft12/index.ts +130 -0
- package/src/drafts/draft12/messages.ts +84 -0
- package/src/drafts/draft12/rules.ts +106 -0
- package/src/drafts/draft12/session-fsm.ts +805 -0
- package/src/drafts/draft12/session.ts +26 -0
- package/src/drafts/draft12/types.ts +414 -0
- package/src/drafts/draft13/codec.ts +1438 -0
- package/src/drafts/draft13/index.ts +132 -0
- package/src/drafts/draft13/messages.ts +86 -0
- package/src/drafts/draft13/rules.ts +108 -0
- package/src/drafts/draft13/session-fsm.ts +819 -0
- package/src/drafts/draft13/session.ts +26 -0
- package/src/drafts/draft13/types.ts +433 -0
- package/src/drafts/draft14/session-fsm.ts +182 -1
- package/src/drafts/draft15/codec.ts +1661 -0
- package/src/drafts/draft15/index.ts +121 -0
- package/src/drafts/draft15/messages.ts +64 -0
- package/src/drafts/draft15/rules.ts +95 -0
- package/src/drafts/draft15/session-fsm.ts +687 -0
- package/src/drafts/draft15/session.ts +26 -0
- package/src/drafts/draft15/types.ts +336 -0
- package/src/drafts/draft16/codec.ts +1623 -0
- package/src/drafts/draft16/index.ts +123 -0
- package/src/drafts/draft16/messages.ts +67 -0
- package/src/drafts/draft16/rules.ts +96 -0
- package/src/drafts/draft16/session-fsm.ts +682 -0
- package/src/drafts/draft16/session.ts +26 -0
- package/src/drafts/draft16/types.ts +354 -0
- package/src/drafts/draft17/codec.ts +1621 -0
- package/src/drafts/draft17/index.ts +105 -0
- package/src/drafts/draft17/messages.ts +53 -0
- package/src/drafts/draft17/rules.ts +85 -0
- package/src/drafts/draft17/session-fsm.ts +437 -0
- package/src/drafts/draft17/session.ts +15 -0
- package/src/drafts/draft17/types.ts +310 -0
- package/src/index.ts +217 -2
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
interface UnknownParam {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly length: number;
|
|
4
|
+
readonly raw_hex: string;
|
|
5
|
+
}
|
|
6
|
+
interface Draft17SetupOptions {
|
|
7
|
+
path?: string;
|
|
8
|
+
max_auth_token_cache_size?: bigint;
|
|
9
|
+
authority?: string;
|
|
10
|
+
moqt_implementation?: string;
|
|
11
|
+
unknown?: UnknownParam[];
|
|
12
|
+
}
|
|
13
|
+
interface SubscriptionFilter {
|
|
14
|
+
readonly filter_type: bigint;
|
|
15
|
+
readonly start_group?: bigint;
|
|
16
|
+
readonly start_object?: bigint;
|
|
17
|
+
readonly end_group?: bigint;
|
|
18
|
+
}
|
|
19
|
+
interface LargestObject {
|
|
20
|
+
readonly group: bigint;
|
|
21
|
+
readonly object: bigint;
|
|
22
|
+
}
|
|
23
|
+
interface Draft17Params {
|
|
24
|
+
expires?: bigint;
|
|
25
|
+
largest_object?: LargestObject;
|
|
26
|
+
subscriber_priority?: bigint;
|
|
27
|
+
subscription_filter?: SubscriptionFilter;
|
|
28
|
+
group_order?: bigint;
|
|
29
|
+
unknown?: UnknownParam[];
|
|
30
|
+
}
|
|
31
|
+
interface Draft17TrackProperties {
|
|
32
|
+
unknown?: UnknownParam[];
|
|
33
|
+
}
|
|
34
|
+
type Draft17MessageType = "setup" | "subscribe" | "subscribe_ok" | "request_update" | "publish" | "publish_ok" | "publish_done" | "publish_namespace" | "namespace" | "namespace_done" | "subscribe_namespace" | "publish_blocked" | "fetch" | "fetch_ok" | "track_status" | "request_ok" | "request_error" | "goaway";
|
|
35
|
+
interface Draft17BaseMessage {
|
|
36
|
+
readonly type: Draft17MessageType;
|
|
37
|
+
}
|
|
38
|
+
interface Draft17Setup extends Draft17BaseMessage {
|
|
39
|
+
readonly type: "setup";
|
|
40
|
+
readonly options: Draft17SetupOptions;
|
|
41
|
+
}
|
|
42
|
+
interface Draft17Subscribe extends Draft17BaseMessage {
|
|
43
|
+
readonly type: "subscribe";
|
|
44
|
+
readonly request_id: bigint;
|
|
45
|
+
readonly required_request_id_delta: bigint;
|
|
46
|
+
readonly track_namespace: string[];
|
|
47
|
+
readonly track_name: string;
|
|
48
|
+
readonly parameters: Draft17Params;
|
|
49
|
+
}
|
|
50
|
+
interface Draft17SubscribeOk extends Draft17BaseMessage {
|
|
51
|
+
readonly type: "subscribe_ok";
|
|
52
|
+
readonly track_alias: bigint;
|
|
53
|
+
readonly parameters: Draft17Params;
|
|
54
|
+
readonly track_properties: Draft17TrackProperties;
|
|
55
|
+
}
|
|
56
|
+
interface Draft17RequestUpdate extends Draft17BaseMessage {
|
|
57
|
+
readonly type: "request_update";
|
|
58
|
+
readonly request_id: bigint;
|
|
59
|
+
readonly required_request_id_delta: bigint;
|
|
60
|
+
readonly parameters: Draft17Params;
|
|
61
|
+
}
|
|
62
|
+
interface Draft17Publish extends Draft17BaseMessage {
|
|
63
|
+
readonly type: "publish";
|
|
64
|
+
readonly request_id: bigint;
|
|
65
|
+
readonly required_request_id_delta: bigint;
|
|
66
|
+
readonly track_namespace: string[];
|
|
67
|
+
readonly track_name: string;
|
|
68
|
+
readonly track_alias: bigint;
|
|
69
|
+
readonly parameters: Draft17Params;
|
|
70
|
+
readonly track_properties: Draft17TrackProperties;
|
|
71
|
+
}
|
|
72
|
+
interface Draft17PublishOk extends Draft17BaseMessage {
|
|
73
|
+
readonly type: "publish_ok";
|
|
74
|
+
readonly parameters: Draft17Params;
|
|
75
|
+
}
|
|
76
|
+
interface Draft17PublishDone extends Draft17BaseMessage {
|
|
77
|
+
readonly type: "publish_done";
|
|
78
|
+
readonly status_code: bigint;
|
|
79
|
+
readonly stream_count: bigint;
|
|
80
|
+
readonly reason_phrase: string;
|
|
81
|
+
}
|
|
82
|
+
interface Draft17PublishNamespace extends Draft17BaseMessage {
|
|
83
|
+
readonly type: "publish_namespace";
|
|
84
|
+
readonly request_id: bigint;
|
|
85
|
+
readonly required_request_id_delta: bigint;
|
|
86
|
+
readonly track_namespace: string[];
|
|
87
|
+
readonly parameters: Draft17Params;
|
|
88
|
+
}
|
|
89
|
+
interface Draft17Namespace extends Draft17BaseMessage {
|
|
90
|
+
readonly type: "namespace";
|
|
91
|
+
readonly namespace_suffix: string[];
|
|
92
|
+
}
|
|
93
|
+
interface Draft17NamespaceDone extends Draft17BaseMessage {
|
|
94
|
+
readonly type: "namespace_done";
|
|
95
|
+
readonly namespace_suffix: string[];
|
|
96
|
+
}
|
|
97
|
+
interface Draft17SubscribeNamespace extends Draft17BaseMessage {
|
|
98
|
+
readonly type: "subscribe_namespace";
|
|
99
|
+
readonly request_id: bigint;
|
|
100
|
+
readonly required_request_id_delta: bigint;
|
|
101
|
+
readonly namespace_prefix: string[];
|
|
102
|
+
readonly subscribe_options: bigint;
|
|
103
|
+
readonly parameters: Draft17Params;
|
|
104
|
+
}
|
|
105
|
+
interface Draft17PublishBlocked extends Draft17BaseMessage {
|
|
106
|
+
readonly type: "publish_blocked";
|
|
107
|
+
readonly namespace_suffix: string[];
|
|
108
|
+
readonly track_name: string;
|
|
109
|
+
}
|
|
110
|
+
interface StandaloneFetch {
|
|
111
|
+
readonly track_namespace: string[];
|
|
112
|
+
readonly track_name: string;
|
|
113
|
+
readonly start_group: bigint;
|
|
114
|
+
readonly start_object: bigint;
|
|
115
|
+
readonly end_group: bigint;
|
|
116
|
+
readonly end_object: bigint;
|
|
117
|
+
}
|
|
118
|
+
interface JoiningFetch {
|
|
119
|
+
readonly joining_request_id: bigint;
|
|
120
|
+
readonly joining_start: bigint;
|
|
121
|
+
}
|
|
122
|
+
interface Draft17Fetch extends Draft17BaseMessage {
|
|
123
|
+
readonly type: "fetch";
|
|
124
|
+
readonly request_id: bigint;
|
|
125
|
+
readonly required_request_id_delta: bigint;
|
|
126
|
+
readonly fetch_type: bigint;
|
|
127
|
+
readonly standalone?: StandaloneFetch;
|
|
128
|
+
readonly joining?: JoiningFetch;
|
|
129
|
+
readonly parameters: Draft17Params;
|
|
130
|
+
}
|
|
131
|
+
interface Draft17FetchOk extends Draft17BaseMessage {
|
|
132
|
+
readonly type: "fetch_ok";
|
|
133
|
+
readonly end_of_track: number;
|
|
134
|
+
readonly end_group: bigint;
|
|
135
|
+
readonly end_object: bigint;
|
|
136
|
+
readonly parameters: Draft17Params;
|
|
137
|
+
readonly track_properties: Draft17TrackProperties;
|
|
138
|
+
}
|
|
139
|
+
interface Draft17TrackStatus extends Draft17BaseMessage {
|
|
140
|
+
readonly type: "track_status";
|
|
141
|
+
readonly request_id: bigint;
|
|
142
|
+
readonly required_request_id_delta: bigint;
|
|
143
|
+
readonly track_namespace: string[];
|
|
144
|
+
readonly track_name: string;
|
|
145
|
+
readonly parameters: Draft17Params;
|
|
146
|
+
}
|
|
147
|
+
interface Draft17RequestOk extends Draft17BaseMessage {
|
|
148
|
+
readonly type: "request_ok";
|
|
149
|
+
readonly parameters: Draft17Params;
|
|
150
|
+
}
|
|
151
|
+
interface Draft17RequestError extends Draft17BaseMessage {
|
|
152
|
+
readonly type: "request_error";
|
|
153
|
+
readonly error_code: bigint;
|
|
154
|
+
readonly retry_interval: bigint;
|
|
155
|
+
readonly reason_phrase: string;
|
|
156
|
+
}
|
|
157
|
+
interface Draft17GoAway extends Draft17BaseMessage {
|
|
158
|
+
readonly type: "goaway";
|
|
159
|
+
readonly new_session_uri: string;
|
|
160
|
+
readonly timeout: bigint;
|
|
161
|
+
}
|
|
162
|
+
type Draft17Message = Draft17Setup | Draft17Subscribe | Draft17SubscribeOk | Draft17RequestUpdate | Draft17Publish | Draft17PublishOk | Draft17PublishDone | Draft17PublishNamespace | Draft17Namespace | Draft17NamespaceDone | Draft17SubscribeNamespace | Draft17PublishBlocked | Draft17Fetch | Draft17FetchOk | Draft17TrackStatus | Draft17RequestOk | Draft17RequestError | Draft17GoAway;
|
|
163
|
+
interface ObjectPayload {
|
|
164
|
+
readonly type: "object";
|
|
165
|
+
readonly objectId: bigint;
|
|
166
|
+
readonly payloadLength: number;
|
|
167
|
+
readonly status?: bigint;
|
|
168
|
+
readonly payload: Uint8Array;
|
|
169
|
+
}
|
|
170
|
+
interface SubgroupStream {
|
|
171
|
+
readonly type: "subgroup";
|
|
172
|
+
readonly headerType: number;
|
|
173
|
+
readonly trackAlias: bigint;
|
|
174
|
+
readonly groupId: bigint;
|
|
175
|
+
readonly subgroupId: bigint;
|
|
176
|
+
readonly publisherPriority: number;
|
|
177
|
+
readonly objects: ObjectPayload[];
|
|
178
|
+
}
|
|
179
|
+
interface DatagramObject {
|
|
180
|
+
readonly type: "datagram";
|
|
181
|
+
readonly datagramType: number;
|
|
182
|
+
readonly trackAlias: bigint;
|
|
183
|
+
readonly groupId: bigint;
|
|
184
|
+
readonly objectId: bigint;
|
|
185
|
+
readonly publisherPriority: number;
|
|
186
|
+
readonly endOfGroup?: boolean;
|
|
187
|
+
readonly objectStatus?: bigint;
|
|
188
|
+
readonly payloadLength: number;
|
|
189
|
+
readonly payload: Uint8Array;
|
|
190
|
+
}
|
|
191
|
+
interface FetchObjectPayload extends ObjectPayload {
|
|
192
|
+
readonly serializationFlags: number;
|
|
193
|
+
readonly groupId: bigint;
|
|
194
|
+
readonly subgroupId: bigint;
|
|
195
|
+
readonly publisherPriority: number;
|
|
196
|
+
}
|
|
197
|
+
interface FetchStream {
|
|
198
|
+
readonly type: "fetch";
|
|
199
|
+
readonly requestId: bigint;
|
|
200
|
+
readonly objects: FetchObjectPayload[];
|
|
201
|
+
}
|
|
202
|
+
type Draft17DataStream = SubgroupStream | DatagramObject | FetchStream;
|
|
203
|
+
interface SubgroupStreamHeader {
|
|
204
|
+
readonly type: "subgroup_header";
|
|
205
|
+
readonly trackAlias: bigint;
|
|
206
|
+
readonly groupId: bigint;
|
|
207
|
+
readonly subgroupId: bigint;
|
|
208
|
+
readonly publisherPriority: number;
|
|
209
|
+
}
|
|
210
|
+
interface FetchStreamHeader {
|
|
211
|
+
readonly type: "fetch_header";
|
|
212
|
+
readonly requestId: bigint;
|
|
213
|
+
}
|
|
214
|
+
type DataStreamHeader = SubgroupStreamHeader | FetchStreamHeader;
|
|
215
|
+
type DataStreamEvent = DataStreamHeader | ObjectPayload;
|
|
216
|
+
|
|
217
|
+
export type { Draft17TrackStatus as A, FetchStream as B, FetchStreamHeader as C, Draft17DataStream as D, SubgroupStream as E, FetchObjectPayload as F, SubgroupStreamHeader as G, SubscriptionFilter as H, JoiningFetch as J, LargestObject as L, ObjectPayload as O, StandaloneFetch as S, UnknownParam as U, Draft17Message as a, Draft17Params as b, Draft17SetupOptions as c, Draft17MessageType as d, DataStreamEvent as e, DataStreamHeader as f, DatagramObject as g, Draft17BaseMessage as h, Draft17Fetch as i, Draft17FetchOk as j, Draft17GoAway as k, Draft17Namespace as l, Draft17NamespaceDone as m, Draft17Publish as n, Draft17PublishBlocked as o, Draft17PublishDone as p, Draft17PublishNamespace as q, Draft17PublishOk as r, Draft17RequestError as s, Draft17RequestOk as t, Draft17RequestUpdate as u, Draft17Setup as v, Draft17Subscribe as w, Draft17SubscribeNamespace as x, Draft17SubscribeOk as y, Draft17TrackProperties as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
type Draft = "draft-ietf-moq-transport-07" | "draft-ietf-moq-transport-14";
|
|
2
|
-
type DraftShorthand = "07" | "14";
|
|
1
|
+
type Draft = "draft-ietf-moq-transport-07" | "draft-ietf-moq-transport-08" | "draft-ietf-moq-transport-09" | "draft-ietf-moq-transport-10" | "draft-ietf-moq-transport-11" | "draft-ietf-moq-transport-12" | "draft-ietf-moq-transport-13" | "draft-ietf-moq-transport-14" | "draft-ietf-moq-transport-15" | "draft-ietf-moq-transport-16" | "draft-ietf-moq-transport-17";
|
|
2
|
+
type DraftShorthand = "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17";
|
|
3
3
|
type MoqtMessageType = "client_setup" | "server_setup" | "subscribe" | "subscribe_ok" | "subscribe_error" | "subscribe_done" | "subscribe_update" | "unsubscribe" | "announce" | "announce_ok" | "announce_error" | "announce_cancel" | "unannounce" | "track_status_request" | "track_status" | "object_stream" | "object_datagram" | "stream_header_track" | "stream_header_group" | "stream_header_subgroup" | "goaway" | "subscribe_announces" | "subscribe_announces_ok" | "subscribe_announces_error" | "unsubscribe_announces" | "max_subscribe_id" | "fetch" | "fetch_ok" | "fetch_error" | "fetch_cancel";
|
|
4
4
|
interface BaseMessage {
|
|
5
5
|
readonly type: MoqtMessageType;
|
|
@@ -111,7 +111,6 @@ interface TrackStatus extends BaseMessage {
|
|
|
111
111
|
}
|
|
112
112
|
interface ObjectStream extends BaseMessage {
|
|
113
113
|
readonly type: "object_stream";
|
|
114
|
-
readonly subscribeId: bigint;
|
|
115
114
|
readonly trackAlias: bigint;
|
|
116
115
|
readonly groupId: bigint;
|
|
117
116
|
readonly objectId: bigint;
|
|
@@ -121,7 +120,6 @@ interface ObjectStream extends BaseMessage {
|
|
|
121
120
|
}
|
|
122
121
|
interface ObjectDatagram extends BaseMessage {
|
|
123
122
|
readonly type: "object_datagram";
|
|
124
|
-
readonly subscribeId: bigint;
|
|
125
123
|
readonly trackAlias: bigint;
|
|
126
124
|
readonly groupId: bigint;
|
|
127
125
|
readonly objectId: bigint;
|
|
@@ -131,20 +129,17 @@ interface ObjectDatagram extends BaseMessage {
|
|
|
131
129
|
}
|
|
132
130
|
interface StreamHeaderTrack extends BaseMessage {
|
|
133
131
|
readonly type: "stream_header_track";
|
|
134
|
-
readonly subscribeId: bigint;
|
|
135
132
|
readonly trackAlias: bigint;
|
|
136
133
|
readonly publisherPriority: number;
|
|
137
134
|
}
|
|
138
135
|
interface StreamHeaderGroup extends BaseMessage {
|
|
139
136
|
readonly type: "stream_header_group";
|
|
140
|
-
readonly subscribeId: bigint;
|
|
141
137
|
readonly trackAlias: bigint;
|
|
142
138
|
readonly groupId: bigint;
|
|
143
139
|
readonly publisherPriority: number;
|
|
144
140
|
}
|
|
145
141
|
interface StreamHeaderSubgroup extends BaseMessage {
|
|
146
142
|
readonly type: "stream_header_subgroup";
|
|
147
|
-
readonly subscribeId: bigint;
|
|
148
143
|
readonly trackAlias: bigint;
|
|
149
144
|
readonly groupId: bigint;
|
|
150
145
|
readonly subgroupId: bigint;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
type Draft = "draft-ietf-moq-transport-07" | "draft-ietf-moq-transport-14";
|
|
2
|
-
type DraftShorthand = "07" | "14";
|
|
1
|
+
type Draft = "draft-ietf-moq-transport-07" | "draft-ietf-moq-transport-08" | "draft-ietf-moq-transport-09" | "draft-ietf-moq-transport-10" | "draft-ietf-moq-transport-11" | "draft-ietf-moq-transport-12" | "draft-ietf-moq-transport-13" | "draft-ietf-moq-transport-14" | "draft-ietf-moq-transport-15" | "draft-ietf-moq-transport-16" | "draft-ietf-moq-transport-17";
|
|
2
|
+
type DraftShorthand = "07" | "08" | "09" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17";
|
|
3
3
|
type MoqtMessageType = "client_setup" | "server_setup" | "subscribe" | "subscribe_ok" | "subscribe_error" | "subscribe_done" | "subscribe_update" | "unsubscribe" | "announce" | "announce_ok" | "announce_error" | "announce_cancel" | "unannounce" | "track_status_request" | "track_status" | "object_stream" | "object_datagram" | "stream_header_track" | "stream_header_group" | "stream_header_subgroup" | "goaway" | "subscribe_announces" | "subscribe_announces_ok" | "subscribe_announces_error" | "unsubscribe_announces" | "max_subscribe_id" | "fetch" | "fetch_ok" | "fetch_error" | "fetch_cancel";
|
|
4
4
|
interface BaseMessage {
|
|
5
5
|
readonly type: MoqtMessageType;
|
|
@@ -111,7 +111,6 @@ interface TrackStatus extends BaseMessage {
|
|
|
111
111
|
}
|
|
112
112
|
interface ObjectStream extends BaseMessage {
|
|
113
113
|
readonly type: "object_stream";
|
|
114
|
-
readonly subscribeId: bigint;
|
|
115
114
|
readonly trackAlias: bigint;
|
|
116
115
|
readonly groupId: bigint;
|
|
117
116
|
readonly objectId: bigint;
|
|
@@ -121,7 +120,6 @@ interface ObjectStream extends BaseMessage {
|
|
|
121
120
|
}
|
|
122
121
|
interface ObjectDatagram extends BaseMessage {
|
|
123
122
|
readonly type: "object_datagram";
|
|
124
|
-
readonly subscribeId: bigint;
|
|
125
123
|
readonly trackAlias: bigint;
|
|
126
124
|
readonly groupId: bigint;
|
|
127
125
|
readonly objectId: bigint;
|
|
@@ -131,20 +129,17 @@ interface ObjectDatagram extends BaseMessage {
|
|
|
131
129
|
}
|
|
132
130
|
interface StreamHeaderTrack extends BaseMessage {
|
|
133
131
|
readonly type: "stream_header_track";
|
|
134
|
-
readonly subscribeId: bigint;
|
|
135
132
|
readonly trackAlias: bigint;
|
|
136
133
|
readonly publisherPriority: number;
|
|
137
134
|
}
|
|
138
135
|
interface StreamHeaderGroup extends BaseMessage {
|
|
139
136
|
readonly type: "stream_header_group";
|
|
140
|
-
readonly subscribeId: bigint;
|
|
141
137
|
readonly trackAlias: bigint;
|
|
142
138
|
readonly groupId: bigint;
|
|
143
139
|
readonly publisherPriority: number;
|
|
144
140
|
}
|
|
145
141
|
interface StreamHeaderSubgroup extends BaseMessage {
|
|
146
142
|
readonly type: "stream_header_subgroup";
|
|
147
|
-
readonly subscribeId: bigint;
|
|
148
143
|
readonly trackAlias: bigint;
|
|
149
144
|
readonly groupId: bigint;
|
|
150
145
|
readonly subgroupId: bigint;
|
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
interface UnknownParam {
|
|
2
|
+
readonly id: string;
|
|
3
|
+
readonly length: number;
|
|
4
|
+
readonly raw_hex: string;
|
|
5
|
+
}
|
|
6
|
+
interface Draft08SetupParams {
|
|
7
|
+
path?: string;
|
|
8
|
+
max_subscribe_id?: bigint;
|
|
9
|
+
unknown?: UnknownParam[];
|
|
10
|
+
}
|
|
11
|
+
interface Draft08Params {
|
|
12
|
+
authorization_info?: string;
|
|
13
|
+
delivery_timeout?: bigint;
|
|
14
|
+
max_cache_duration?: bigint;
|
|
15
|
+
unknown?: UnknownParam[];
|
|
16
|
+
}
|
|
17
|
+
type Draft08MessageType = "client_setup" | "server_setup" | "subscribe" | "subscribe_ok" | "subscribe_error" | "subscribe_update" | "subscribe_done" | "unsubscribe" | "announce" | "announce_ok" | "announce_error" | "unannounce" | "announce_cancel" | "subscribe_announces" | "subscribe_announces_ok" | "subscribe_announces_error" | "unsubscribe_announces" | "fetch" | "fetch_ok" | "fetch_error" | "fetch_cancel" | "track_status_request" | "track_status" | "goaway" | "max_subscribe_id" | "subscribes_blocked";
|
|
18
|
+
interface Draft08BaseMessage {
|
|
19
|
+
readonly type: Draft08MessageType;
|
|
20
|
+
}
|
|
21
|
+
interface Draft08ClientSetup extends Draft08BaseMessage {
|
|
22
|
+
readonly type: "client_setup";
|
|
23
|
+
readonly supported_versions: bigint[];
|
|
24
|
+
readonly parameters: Draft08SetupParams;
|
|
25
|
+
}
|
|
26
|
+
interface Draft08ServerSetup extends Draft08BaseMessage {
|
|
27
|
+
readonly type: "server_setup";
|
|
28
|
+
readonly selected_version: bigint;
|
|
29
|
+
readonly parameters: Draft08SetupParams;
|
|
30
|
+
}
|
|
31
|
+
interface Draft08Subscribe extends Draft08BaseMessage {
|
|
32
|
+
readonly type: "subscribe";
|
|
33
|
+
readonly subscribe_id: bigint;
|
|
34
|
+
readonly track_alias: bigint;
|
|
35
|
+
readonly track_namespace: string[];
|
|
36
|
+
readonly track_name: string;
|
|
37
|
+
readonly subscriber_priority: number;
|
|
38
|
+
readonly group_order: number;
|
|
39
|
+
readonly filter_type: bigint;
|
|
40
|
+
readonly start_group?: bigint;
|
|
41
|
+
readonly start_object?: bigint;
|
|
42
|
+
readonly end_group?: bigint;
|
|
43
|
+
readonly parameters: Draft08Params;
|
|
44
|
+
}
|
|
45
|
+
interface Draft08SubscribeOk extends Draft08BaseMessage {
|
|
46
|
+
readonly type: "subscribe_ok";
|
|
47
|
+
readonly subscribe_id: bigint;
|
|
48
|
+
readonly expires: bigint;
|
|
49
|
+
readonly group_order: number;
|
|
50
|
+
readonly content_exists: number;
|
|
51
|
+
readonly largest_group_id?: bigint;
|
|
52
|
+
readonly largest_object_id?: bigint;
|
|
53
|
+
readonly parameters: Draft08Params;
|
|
54
|
+
}
|
|
55
|
+
interface Draft08SubscribeError extends Draft08BaseMessage {
|
|
56
|
+
readonly type: "subscribe_error";
|
|
57
|
+
readonly subscribe_id: bigint;
|
|
58
|
+
readonly error_code: bigint;
|
|
59
|
+
readonly reason_phrase: string;
|
|
60
|
+
readonly track_alias: bigint;
|
|
61
|
+
}
|
|
62
|
+
interface Draft08SubscribeDone extends Draft08BaseMessage {
|
|
63
|
+
readonly type: "subscribe_done";
|
|
64
|
+
readonly subscribe_id: bigint;
|
|
65
|
+
readonly status_code: bigint;
|
|
66
|
+
readonly stream_count: bigint;
|
|
67
|
+
readonly reason_phrase: string;
|
|
68
|
+
}
|
|
69
|
+
interface Draft08SubscribeUpdate extends Draft08BaseMessage {
|
|
70
|
+
readonly type: "subscribe_update";
|
|
71
|
+
readonly subscribe_id: bigint;
|
|
72
|
+
readonly start_group: bigint;
|
|
73
|
+
readonly start_object: bigint;
|
|
74
|
+
readonly end_group: bigint;
|
|
75
|
+
readonly subscriber_priority: number;
|
|
76
|
+
readonly parameters: Draft08Params;
|
|
77
|
+
}
|
|
78
|
+
interface Draft08Unsubscribe extends Draft08BaseMessage {
|
|
79
|
+
readonly type: "unsubscribe";
|
|
80
|
+
readonly subscribe_id: bigint;
|
|
81
|
+
}
|
|
82
|
+
interface Draft08Announce extends Draft08BaseMessage {
|
|
83
|
+
readonly type: "announce";
|
|
84
|
+
readonly track_namespace: string[];
|
|
85
|
+
readonly parameters: Draft08Params;
|
|
86
|
+
}
|
|
87
|
+
interface Draft08AnnounceOk extends Draft08BaseMessage {
|
|
88
|
+
readonly type: "announce_ok";
|
|
89
|
+
readonly track_namespace: string[];
|
|
90
|
+
}
|
|
91
|
+
interface Draft08AnnounceError extends Draft08BaseMessage {
|
|
92
|
+
readonly type: "announce_error";
|
|
93
|
+
readonly track_namespace: string[];
|
|
94
|
+
readonly error_code: bigint;
|
|
95
|
+
readonly reason_phrase: string;
|
|
96
|
+
}
|
|
97
|
+
interface Draft08Unannounce extends Draft08BaseMessage {
|
|
98
|
+
readonly type: "unannounce";
|
|
99
|
+
readonly track_namespace: string[];
|
|
100
|
+
}
|
|
101
|
+
interface Draft08AnnounceCancel extends Draft08BaseMessage {
|
|
102
|
+
readonly type: "announce_cancel";
|
|
103
|
+
readonly track_namespace: string[];
|
|
104
|
+
readonly error_code: bigint;
|
|
105
|
+
readonly reason_phrase: string;
|
|
106
|
+
}
|
|
107
|
+
interface Draft08SubscribeAnnounces extends Draft08BaseMessage {
|
|
108
|
+
readonly type: "subscribe_announces";
|
|
109
|
+
readonly track_namespace_prefix: string[];
|
|
110
|
+
readonly parameters: Draft08Params;
|
|
111
|
+
}
|
|
112
|
+
interface Draft08SubscribeAnnouncesOk extends Draft08BaseMessage {
|
|
113
|
+
readonly type: "subscribe_announces_ok";
|
|
114
|
+
readonly track_namespace_prefix: string[];
|
|
115
|
+
}
|
|
116
|
+
interface Draft08SubscribeAnnouncesError extends Draft08BaseMessage {
|
|
117
|
+
readonly type: "subscribe_announces_error";
|
|
118
|
+
readonly track_namespace_prefix: string[];
|
|
119
|
+
readonly error_code: bigint;
|
|
120
|
+
readonly reason_phrase: string;
|
|
121
|
+
}
|
|
122
|
+
interface Draft08UnsubscribeAnnounces extends Draft08BaseMessage {
|
|
123
|
+
readonly type: "unsubscribe_announces";
|
|
124
|
+
readonly track_namespace_prefix: string[];
|
|
125
|
+
}
|
|
126
|
+
interface StandaloneFetch {
|
|
127
|
+
readonly track_namespace: string[];
|
|
128
|
+
readonly track_name: string;
|
|
129
|
+
readonly start_group: bigint;
|
|
130
|
+
readonly start_object: bigint;
|
|
131
|
+
readonly end_group: bigint;
|
|
132
|
+
readonly end_object: bigint;
|
|
133
|
+
}
|
|
134
|
+
interface JoiningFetch {
|
|
135
|
+
readonly joining_subscribe_id: bigint;
|
|
136
|
+
readonly preceding_group_offset: bigint;
|
|
137
|
+
}
|
|
138
|
+
interface Draft08Fetch extends Draft08BaseMessage {
|
|
139
|
+
readonly type: "fetch";
|
|
140
|
+
readonly subscribe_id: bigint;
|
|
141
|
+
readonly subscriber_priority: number;
|
|
142
|
+
readonly group_order: number;
|
|
143
|
+
readonly fetch_type: bigint;
|
|
144
|
+
readonly standalone?: StandaloneFetch;
|
|
145
|
+
readonly joining?: JoiningFetch;
|
|
146
|
+
readonly parameters: Draft08Params;
|
|
147
|
+
}
|
|
148
|
+
interface Draft08FetchOk extends Draft08BaseMessage {
|
|
149
|
+
readonly type: "fetch_ok";
|
|
150
|
+
readonly subscribe_id: bigint;
|
|
151
|
+
readonly group_order: number;
|
|
152
|
+
readonly end_of_track: number;
|
|
153
|
+
readonly largest_group_id: bigint;
|
|
154
|
+
readonly largest_object_id: bigint;
|
|
155
|
+
readonly parameters: Draft08Params;
|
|
156
|
+
}
|
|
157
|
+
interface Draft08FetchError extends Draft08BaseMessage {
|
|
158
|
+
readonly type: "fetch_error";
|
|
159
|
+
readonly subscribe_id: bigint;
|
|
160
|
+
readonly error_code: bigint;
|
|
161
|
+
readonly reason_phrase: string;
|
|
162
|
+
}
|
|
163
|
+
interface Draft08FetchCancel extends Draft08BaseMessage {
|
|
164
|
+
readonly type: "fetch_cancel";
|
|
165
|
+
readonly subscribe_id: bigint;
|
|
166
|
+
}
|
|
167
|
+
interface Draft08TrackStatusRequest extends Draft08BaseMessage {
|
|
168
|
+
readonly type: "track_status_request";
|
|
169
|
+
readonly track_namespace: string[];
|
|
170
|
+
readonly track_name: string;
|
|
171
|
+
}
|
|
172
|
+
interface Draft08TrackStatus extends Draft08BaseMessage {
|
|
173
|
+
readonly type: "track_status";
|
|
174
|
+
readonly track_namespace: string[];
|
|
175
|
+
readonly track_name: string;
|
|
176
|
+
readonly status_code: bigint;
|
|
177
|
+
readonly last_group_id: bigint;
|
|
178
|
+
readonly last_object_id: bigint;
|
|
179
|
+
}
|
|
180
|
+
interface Draft08GoAway extends Draft08BaseMessage {
|
|
181
|
+
readonly type: "goaway";
|
|
182
|
+
readonly new_session_uri: string;
|
|
183
|
+
}
|
|
184
|
+
interface Draft08MaxSubscribeId extends Draft08BaseMessage {
|
|
185
|
+
readonly type: "max_subscribe_id";
|
|
186
|
+
readonly subscribe_id: bigint;
|
|
187
|
+
}
|
|
188
|
+
interface Draft08SubscribesBlocked extends Draft08BaseMessage {
|
|
189
|
+
readonly type: "subscribes_blocked";
|
|
190
|
+
readonly maximum_subscribe_id: bigint;
|
|
191
|
+
}
|
|
192
|
+
type Draft08Message = Draft08ClientSetup | Draft08ServerSetup | Draft08Subscribe | Draft08SubscribeOk | Draft08SubscribeError | Draft08SubscribeUpdate | Draft08SubscribeDone | Draft08Unsubscribe | Draft08Announce | Draft08AnnounceOk | Draft08AnnounceError | Draft08Unannounce | Draft08AnnounceCancel | Draft08SubscribeAnnounces | Draft08SubscribeAnnouncesOk | Draft08SubscribeAnnouncesError | Draft08UnsubscribeAnnounces | Draft08Fetch | Draft08FetchOk | Draft08FetchError | Draft08FetchCancel | Draft08TrackStatusRequest | Draft08TrackStatus | Draft08GoAway | Draft08MaxSubscribeId | Draft08SubscribesBlocked;
|
|
193
|
+
interface ObjectPayload {
|
|
194
|
+
readonly type: "object";
|
|
195
|
+
readonly objectId: bigint;
|
|
196
|
+
readonly extensionCount: bigint;
|
|
197
|
+
readonly payloadLength: number;
|
|
198
|
+
readonly status?: bigint;
|
|
199
|
+
readonly payload: Uint8Array;
|
|
200
|
+
}
|
|
201
|
+
interface SubgroupStream {
|
|
202
|
+
readonly type: "subgroup";
|
|
203
|
+
readonly streamTypeId: 0x04;
|
|
204
|
+
readonly trackAlias: bigint;
|
|
205
|
+
readonly groupId: bigint;
|
|
206
|
+
readonly subgroupId: bigint;
|
|
207
|
+
readonly publisherPriority: number;
|
|
208
|
+
readonly objects: ObjectPayload[];
|
|
209
|
+
}
|
|
210
|
+
interface DatagramObject {
|
|
211
|
+
readonly type: "datagram";
|
|
212
|
+
readonly streamTypeId: 0x01;
|
|
213
|
+
readonly trackAlias: bigint;
|
|
214
|
+
readonly groupId: bigint;
|
|
215
|
+
readonly objectId: bigint;
|
|
216
|
+
readonly publisherPriority: number;
|
|
217
|
+
readonly extensionCount: bigint;
|
|
218
|
+
readonly objectStatus: bigint;
|
|
219
|
+
readonly payloadLength: number;
|
|
220
|
+
readonly payload: Uint8Array;
|
|
221
|
+
}
|
|
222
|
+
interface DatagramStatusObject {
|
|
223
|
+
readonly type: "datagram_status";
|
|
224
|
+
readonly streamTypeId: 0x02;
|
|
225
|
+
readonly trackAlias: bigint;
|
|
226
|
+
readonly groupId: bigint;
|
|
227
|
+
readonly objectId: bigint;
|
|
228
|
+
readonly publisherPriority: number;
|
|
229
|
+
readonly objectStatus: bigint;
|
|
230
|
+
}
|
|
231
|
+
interface FetchObjectPayload {
|
|
232
|
+
readonly type: "object";
|
|
233
|
+
readonly groupId: bigint;
|
|
234
|
+
readonly subgroupId: bigint;
|
|
235
|
+
readonly objectId: bigint;
|
|
236
|
+
readonly publisherPriority: number;
|
|
237
|
+
readonly extensionCount: bigint;
|
|
238
|
+
readonly payloadLength: number;
|
|
239
|
+
readonly status?: bigint;
|
|
240
|
+
readonly payload: Uint8Array;
|
|
241
|
+
}
|
|
242
|
+
interface FetchStream {
|
|
243
|
+
readonly type: "fetch";
|
|
244
|
+
readonly subscribeId: bigint;
|
|
245
|
+
readonly objects: FetchObjectPayload[];
|
|
246
|
+
}
|
|
247
|
+
type Draft08DataStream = SubgroupStream | DatagramObject | DatagramStatusObject | FetchStream;
|
|
248
|
+
interface SubgroupStreamHeader {
|
|
249
|
+
readonly type: "subgroup_header";
|
|
250
|
+
readonly trackAlias: bigint;
|
|
251
|
+
readonly groupId: bigint;
|
|
252
|
+
readonly subgroupId: bigint;
|
|
253
|
+
readonly publisherPriority: number;
|
|
254
|
+
}
|
|
255
|
+
interface FetchStreamHeader {
|
|
256
|
+
readonly type: "fetch_header";
|
|
257
|
+
readonly subscribeId: bigint;
|
|
258
|
+
}
|
|
259
|
+
type DataStreamHeader = SubgroupStreamHeader | FetchStreamHeader;
|
|
260
|
+
type DataStreamEvent = DataStreamHeader | ObjectPayload;
|
|
261
|
+
|
|
262
|
+
export type { Draft08SubscribeError as A, Draft08SubscribeOk as B, Draft08SubscribeUpdate as C, Draft08DataStream as D, Draft08SubscribesBlocked as E, Draft08TrackStatus as F, Draft08TrackStatusRequest as G, Draft08Unannounce as H, Draft08Unsubscribe as I, Draft08UnsubscribeAnnounces as J, FetchObjectPayload as K, FetchStream as L, FetchStreamHeader as M, JoiningFetch as N, ObjectPayload as O, SubgroupStream as P, SubgroupStreamHeader as Q, StandaloneFetch as S, UnknownParam as U, Draft08Message as a, Draft08Params as b, Draft08SetupParams as c, Draft08MessageType as d, DataStreamEvent as e, DataStreamHeader as f, DatagramObject as g, DatagramStatusObject as h, Draft08Announce as i, Draft08AnnounceCancel as j, Draft08AnnounceError as k, Draft08AnnounceOk as l, Draft08BaseMessage as m, Draft08ClientSetup as n, Draft08Fetch as o, Draft08FetchCancel as p, Draft08FetchError as q, Draft08FetchOk as r, Draft08GoAway as s, Draft08MaxSubscribeId as t, Draft08ServerSetup as u, Draft08Subscribe as v, Draft08SubscribeAnnounces as w, Draft08SubscribeAnnouncesError as x, Draft08SubscribeAnnouncesOk as y, Draft08SubscribeDone as z };
|