moqtail 0.8.1 → 0.10.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.
@@ -1,1659 +0,0 @@
1
- import { e as FetchHeaderType, F as FrozenByteBuffer, B as BaseByteBuffer, S as SubgroupHeaderType, m as FullTrackName, c as Tuple, K as KeyValuePair, L as Location, R as ReasonPhrase } from './byte_buffer-BM4uNj4n.cjs';
2
-
3
- /**
4
- * Copyright 2025 The MOQtail Authors
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
- declare class FetchHeader {
20
- readonly type: FetchHeaderType;
21
- readonly requestId: bigint;
22
- constructor(type: FetchHeaderType, requestId: bigint | number);
23
- serialize(): FrozenByteBuffer;
24
- static deserialize(buf: BaseByteBuffer): FetchHeader;
25
- }
26
-
27
- /**
28
- * Copyright 2025 The MOQtail Authors
29
- *
30
- * Licensed under the Apache License, Version 2.0 (the "License");
31
- * you may not use this file except in compliance with the License.
32
- * You may obtain a copy of the License at
33
- *
34
- * http://www.apache.org/licenses/LICENSE-2.0
35
- *
36
- * Unless required by applicable law or agreed to in writing, software
37
- * distributed under the License is distributed on an "AS IS" BASIS,
38
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39
- * See the License for the specific language governing permissions and
40
- * limitations under the License.
41
- */
42
-
43
- declare class SubgroupHeader {
44
- readonly type: SubgroupHeaderType;
45
- readonly publisherPriority: number;
46
- readonly subgroupId: bigint | undefined;
47
- readonly trackAlias: bigint;
48
- readonly groupId: bigint;
49
- constructor(type: SubgroupHeaderType, trackAlias: bigint | number, groupId: bigint | number, subgroupId: bigint | number | undefined, publisherPriority: number);
50
- serialize(): FrozenByteBuffer;
51
- static deserialize(buf: BaseByteBuffer): SubgroupHeader;
52
- }
53
-
54
- /**
55
- * Copyright 2025 The MOQtail Authors
56
- *
57
- * Licensed under the Apache License, Version 2.0 (the "License");
58
- * you may not use this file except in compliance with the License.
59
- * You may obtain a copy of the License at
60
- *
61
- * http://www.apache.org/licenses/LICENSE-2.0
62
- *
63
- * Unless required by applicable law or agreed to in writing, software
64
- * distributed under the License is distributed on an "AS IS" BASIS,
65
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
66
- * See the License for the specific language governing permissions and
67
- * limitations under the License.
68
- */
69
-
70
- /**
71
- * A bidirectional map between requestId (bigint) and full track names.
72
- * Used to efficiently look up either by requestId or by name, enforcing uniqueness.
73
- *
74
- * @public
75
- */
76
- declare class RequestIdMap {
77
- private requestIdToName;
78
- private nameToRequestId;
79
- /**
80
- * @public
81
- * Adds a mapping between a requestId and a full track name.
82
- *
83
- * @param requestId - The requestId to associate.
84
- * @param name - The full track name to associate.
85
- * @throws :{@link RequestIdError} if the requestId or name is already mapped to a different value.
86
- */
87
- addMapping(requestId: bigint, name: FullTrackName): void;
88
- /**
89
- * @public
90
- * Gets the full track name for a given requestId.
91
- *
92
- * @param requestId - The requestId to look up.
93
- * @returns The associated full track name.
94
- * @throws :{@link RequestIdError} if the requestId does not exist.
95
- */
96
- getNameByRequestId(requestId: bigint): FullTrackName;
97
- /**
98
- * @public
99
- * Gets the requestId for a given full track name.
100
- *
101
- * @param name - The full track name to look up.
102
- * @returns The associated requestId.
103
- * @throws :{@link RequestIdError} if the name does not exist.
104
- */
105
- getRequestIdByName(name: FullTrackName): bigint;
106
- /**
107
- * @public
108
- * Removes a mapping by requestId.
109
- *
110
- * @param requestId - The requestId to remove.
111
- * @returns The removed full track name, or undefined if not found.
112
- */
113
- removeMappingByRequestId(requestId: bigint): FullTrackName | undefined;
114
- /**
115
- * @public
116
- * Removes a mapping by full track name.
117
- *
118
- * @param name - The full track name to remove.
119
- * @returns The removed requestId, or undefined if not found.
120
- */
121
- removeMappingByName(name: FullTrackName): bigint | undefined;
122
- /**
123
- * @public
124
- * Checks if the map contains a given requestId.
125
- *
126
- * @param requestId - The requestId to check.
127
- * @returns True if the requestId exists, false otherwise.
128
- */
129
- containsRequestId(requestId: bigint): boolean;
130
- /**
131
- * @public
132
- * Checks if the map contains a given full track name.
133
- *
134
- * @param name - The full track name to check.
135
- * @returns True if the name exists, false otherwise.
136
- */
137
- containsName(name: FullTrackName): boolean;
138
- }
139
-
140
- /**
141
- * Copyright 2025 The MOQtail Authors
142
- *
143
- * Licensed under the Apache License, Version 2.0 (the "License");
144
- * you may not use this file except in compliance with the License.
145
- * You may obtain a copy of the License at
146
- *
147
- * http://www.apache.org/licenses/LICENSE-2.0
148
- *
149
- * Unless required by applicable law or agreed to in writing, software
150
- * distributed under the License is distributed on an "AS IS" BASIS,
151
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
152
- * See the License for the specific language governing permissions and
153
- * limitations under the License.
154
- */
155
-
156
- type Header = FetchHeader | SubgroupHeader;
157
- declare namespace Header {
158
- function newFetch(...args: ConstructorParameters<typeof FetchHeader>): Header;
159
- function newSubgroup(...args: ConstructorParameters<typeof SubgroupHeader>): Header;
160
- function isFetch(header: Header): header is FetchHeader;
161
- function isSubgroup(header: Header): header is SubgroupHeader;
162
- function serialize(header: Header): FrozenByteBuffer;
163
- function deserialize(buf: BaseByteBuffer): Header;
164
- }
165
-
166
- /**
167
- * Copyright 2025 The MOQtail Authors
168
- *
169
- * Licensed under the Apache License, Version 2.0 (the "License");
170
- * you may not use this file except in compliance with the License.
171
- * You may obtain a copy of the License at
172
- *
173
- * http://www.apache.org/licenses/LICENSE-2.0
174
- *
175
- * Unless required by applicable law or agreed to in writing, software
176
- * distributed under the License is distributed on an "AS IS" BASIS,
177
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
178
- * See the License for the specific language governing permissions and
179
- * limitations under the License.
180
- */
181
- /**
182
- * 32 bit MOQT Draft-14 version number exchanged in {@link ClientSetup} and {@link ServerSetup}
183
- */
184
- declare const DRAFT_14 = 4278190094;
185
- /**
186
- * @public
187
- * Control message types for MOQT protocol.
188
- * Each value corresponds to a specific control frame.
189
- */
190
- declare enum ControlMessageType {
191
- ReservedSetupV00 = 1,
192
- ReservedClientSetupV10 = 64,
193
- ReservedServerSetupV10 = 65,
194
- ClientSetup = 32,
195
- ServerSetup = 33,
196
- GoAway = 16,
197
- MaxRequestId = 21,
198
- RequestsBlocked = 26,
199
- Subscribe = 3,
200
- SubscribeOk = 4,
201
- SubscribeError = 5,
202
- Unsubscribe = 10,
203
- SubscribeUpdate = 2,
204
- PublishDone = 11,
205
- Fetch = 22,
206
- FetchOk = 24,
207
- FetchError = 25,
208
- FetchCancel = 23,
209
- TrackStatus = 13,
210
- TrackStatusOk = 14,
211
- TrackStatusError = 15,
212
- PublishNamespace = 6,
213
- PublishNamespaceOk = 7,
214
- PublishNamespaceError = 8,
215
- PublishNamespaceDone = 9,
216
- PublishNamespaceCancel = 12,
217
- SubscribeNamespace = 17,
218
- SubscribeNamespaceOk = 18,
219
- SubscribeNamespaceError = 19,
220
- UnsubscribeNamespace = 20,
221
- Publish = 29,
222
- PublishOk = 30,
223
- PublishError = 31,
224
- Switch = 34
225
- }
226
- /**
227
- * Converts a bigint value to a ControlMessageType enum.
228
- * @param v - The bigint value.
229
- * @returns The corresponding ControlMessageType.
230
- * @throws Error if the value is not a valid control message type.
231
- */
232
- declare function controlMessageTypeFromBigInt(v: bigint): ControlMessageType;
233
- /**
234
- * @public
235
- * Error codes for PublishNamespace control messages.
236
- */
237
- declare enum PublishNamespaceErrorCode {
238
- InternalError = 0,
239
- Unauthorized = 1,
240
- Timeout = 2,
241
- NotSupported = 3,
242
- Uninterested = 4,
243
- MalformedAuthToken = 16,
244
- UnknownAuthTokenAlias = 17,
245
- ExpiredAuthToken = 18
246
- }
247
- /**
248
- * Converts a bigint value to an enum.
249
- * @param v - The bigint value.
250
- * @returns The corresponding PublishNamespaceErrorCode.
251
- * @throws Error if the value is not a valid announce error code.
252
- */
253
- declare function publishNamespaceErrorCodeFromBigInt(v: bigint): PublishNamespaceErrorCode;
254
- /**
255
- * @public
256
- * Filter types for subscription requests.
257
- */
258
- declare enum FilterType {
259
- NextGroupStart = 1,
260
- LatestObject = 2,
261
- AbsoluteStart = 3,
262
- AbsoluteRange = 4
263
- }
264
- /**
265
- * Converts a bigint value to a FilterType enum.
266
- * @param v - The bigint value.
267
- * @returns The corresponding FilterType.
268
- * @throws Error if the value is not a valid filter type.
269
- */
270
- declare function filterTypeFromBigInt(v: bigint): FilterType;
271
- /**
272
- * @public
273
- * Fetch request types for MOQT protocol.
274
- */
275
- declare enum FetchType {
276
- StandAlone = 1,
277
- Relative = 2,
278
- Absolute = 3
279
- }
280
- /**
281
- * Converts a bigint value to a FetchType enum.
282
- * @param v - The bigint value.
283
- * @returns The corresponding FetchType.
284
- * @throws CastingError if the value is not a valid fetch type.
285
- */
286
- declare function fetchTypeFromBigInt(v: bigint): FetchType;
287
- /**
288
- * @public
289
- * Group ordering options for object delivery.
290
- */
291
- declare enum GroupOrder {
292
- Original = 0,
293
- Ascending = 1,
294
- Descending = 2
295
- }
296
- /**
297
- * Converts a number value to a GroupOrder enum.
298
- * @param v - The number value.
299
- * @returns The corresponding GroupOrder.
300
- * @throws CastingError if the value is not a valid group order.
301
- */
302
- declare function groupOrderFromNumber(v: number): GroupOrder;
303
- /**
304
- * @public
305
- * Error codes for Subscribe control messages.
306
- */
307
- declare enum SubscribeErrorCode {
308
- InternalError = 0,
309
- Unauthorized = 1,
310
- Timeout = 2,
311
- NotSupported = 3,
312
- TrackDoesNotExist = 4,
313
- InvalidRange = 5,
314
- MalformedAuthToken = 16,
315
- ExpiredAuthToken = 18
316
- }
317
- /**
318
- * Converts a bigint value to a SubscribeErrorCode enum.
319
- * @param v - The bigint value.
320
- * @returns The corresponding SubscribeErrorCode.
321
- * @throws Error if the value is not a valid subscribe error code.
322
- */
323
- declare function subscribeErrorCodeFromBigInt(v: bigint): SubscribeErrorCode;
324
- /**
325
- * @public
326
- * Error codes for Fetch control messages.
327
- */
328
- declare enum FetchErrorCode {
329
- InternalError = 0,
330
- Unauthorized = 1,
331
- Timeout = 2,
332
- NotSupported = 3,
333
- TrackDoesNotExist = 4,
334
- InvalidRange = 5,
335
- NoObjects = 6,
336
- InvalidJoiningRequestId = 7,
337
- UnknownStatusInRange = 8,
338
- MalformedTrack = 9,
339
- MalformedAuthToken = 16,
340
- ExpiredAuthToken = 18
341
- }
342
- /**
343
- * Converts a bigint value to a FetchErrorCode enum.
344
- * @param v - The bigint value.
345
- * @returns The corresponding FetchErrorCode.
346
- * @throws CastingError if the value is not a valid fetch error code.
347
- */
348
- declare function fetchErrorCodeFromBigInt(v: bigint): FetchErrorCode;
349
- /**
350
- * @public
351
- * Status codes for track status responses.
352
- */
353
- declare enum TrackStatusCode {
354
- InProgress = 0,
355
- DoesNotExist = 1,
356
- NotYetBegun = 2,
357
- Finished = 3,
358
- RelayUnavailable = 4
359
- }
360
- /**
361
- * Converts a bigint value to a TrackStatusCode enum.
362
- * @param v - The bigint value.
363
- * @returns The corresponding TrackStatusCode.
364
- * @throws Error if the value is not a valid track status code.
365
- */
366
- declare function trackStatusCodeFromBigInt(v: bigint): TrackStatusCode;
367
- /**
368
- * @public
369
- * Error codes for SubscribeNamespace control messages.
370
- */
371
- declare enum SubscribeNamespaceErrorCode {
372
- InternalError = 0,
373
- Unauthorized = 1,
374
- Timeout = 2,
375
- NotSupported = 3,
376
- NamespacePrefixUnknown = 4,
377
- NamespacePrefixOverlap = 5,
378
- MalformedAuthToken = 16,
379
- ExpiredAuthToken = 18
380
- }
381
- /**
382
- * Converts a bigint value to a SubscribeNamespaceErrorCode enum.
383
- * @param v - The bigint value.
384
- * @returns The corresponding SubscribeNamespaceErrorCode.
385
- * @throws Error if the value is not a valid subscribe announces error code.
386
- */
387
- declare function subscribeNamespaceErrorCodeFromBigInt(v: bigint): SubscribeNamespaceErrorCode;
388
- /**
389
- * @public
390
- * Status codes for PublishDone control messages.
391
- */
392
- declare enum PublishDoneStatusCode {
393
- InternalError = 0,
394
- Unauthorized = 1,
395
- TrackEnded = 2,
396
- SubscriptionEnded = 3,
397
- GoingAway = 4,
398
- Expired = 5,
399
- TooFarBehind = 6
400
- }
401
- /**
402
- * Converts a bigint value to a PublishDoneStatusCode enum.
403
- * @param v - The bigint value.
404
- * @returns The corresponding PublishDoneStatusCode.
405
- * @throws Error if the value is not a valid subscribe done status code.
406
- */
407
- declare function publishDoneStatusCodeFromBigInt(v: bigint): PublishDoneStatusCode;
408
- /**
409
- * @public
410
- * Error codes for Publish control messages.
411
- */
412
- declare enum PublishErrorCode {
413
- InternalError = 0,
414
- Unauthorized = 1,
415
- Timeout = 2,
416
- NotSupported = 3,
417
- InvalidNamespace = 4,
418
- InvalidTrackName = 5,
419
- MalformedAuthToken = 16,
420
- UnknownAuthTokenAlias = 17,
421
- ExpiredAuthToken = 18
422
- }
423
- /**
424
- * Converts a bigint value to a PublishErrorCode enum.
425
- * @param v - The bigint value.
426
- * @returns The corresponding PublishErrorCode.
427
- * @throws Error if the value is not a valid publish error code.
428
- */
429
- declare function publishErrorCodeFromBigInt(v: bigint): PublishErrorCode;
430
-
431
- /**
432
- * Copyright 2025 The MOQtail Authors
433
- *
434
- * Licensed under the Apache License, Version 2.0 (the "License");
435
- * you may not use this file except in compliance with the License.
436
- * You may obtain a copy of the License at
437
- *
438
- * http://www.apache.org/licenses/LICENSE-2.0
439
- *
440
- * Unless required by applicable law or agreed to in writing, software
441
- * distributed under the License is distributed on an "AS IS" BASIS,
442
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
443
- * See the License for the specific language governing permissions and
444
- * limitations under the License.
445
- */
446
-
447
- /**
448
- * Represents a protocol PublishNamespace message, used to announce a track and its parameters.
449
- *
450
- * @public
451
- */
452
- declare class PublishNamespace {
453
- readonly requestId: bigint;
454
- readonly trackNamespace: Tuple;
455
- readonly parameters: KeyValuePair[];
456
- /**
457
- * @public
458
- * Constructs a PublishNamespace message.
459
- *
460
- * @param requestId - The request ID for this publish namespace message.
461
- * @param trackNamespace - The track namespace as a Tuple.
462
- * @param parameters - The list of key-value parameters for the track.
463
- */
464
- constructor(requestId: bigint, trackNamespace: Tuple, parameters: KeyValuePair[]);
465
- /**
466
- * @public
467
- * Gets the message type for this PublishNamespace message.
468
- *
469
- * @returns The ControlMessageType.Announce value.
470
- */
471
- getType(): ControlMessageType;
472
- /**
473
- * @public
474
- * Serializes the PublishNamespace message into a {@link FrozenByteBuffer}.
475
- *
476
- * @returns The serialized buffer.
477
- * @throws :{@link LengthExceedsMaxError} If the payload exceeds 65535 bytes.
478
- */
479
- serialize(): FrozenByteBuffer;
480
- /**
481
- * @public
482
- * Parses a PublishNamespace message from the given buffer.
483
- *
484
- * @param buf - The buffer to parse from.
485
- * @returns The parsed PublishNamespace message.
486
- * @throws :{@link NotEnoughBytesError} If the buffer does not contain enough bytes.
487
- */
488
- static parsePayload(buf: BaseByteBuffer): PublishNamespace;
489
- }
490
-
491
- /**
492
- * Copyright 2025 The MOQtail Authors
493
- *
494
- * Licensed under the Apache License, Version 2.0 (the "License");
495
- * you may not use this file except in compliance with the License.
496
- * You may obtain a copy of the License at
497
- *
498
- * http://www.apache.org/licenses/LICENSE-2.0
499
- *
500
- * Unless required by applicable law or agreed to in writing, software
501
- * distributed under the License is distributed on an "AS IS" BASIS,
502
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
503
- * See the License for the specific language governing permissions and
504
- * limitations under the License.
505
- */
506
-
507
- declare class Subscribe {
508
- requestId: bigint;
509
- fullTrackName: FullTrackName;
510
- subscriberPriority: number;
511
- groupOrder: GroupOrder;
512
- forward: boolean;
513
- filterType: FilterType;
514
- startLocation: Location | undefined;
515
- endGroup: bigint | undefined;
516
- parameters: KeyValuePair[];
517
- private constructor();
518
- static newNextGroupStart(requestId: bigint, fullTrackName: FullTrackName, subscriberPriority: number, groupOrder: GroupOrder, forward: boolean, parameters: KeyValuePair[]): Subscribe;
519
- static newLatestObject(requestId: bigint, fullTrackName: FullTrackName, subscriberPriority: number, groupOrder: GroupOrder, forward: boolean, parameters: KeyValuePair[]): Subscribe;
520
- static newAbsoluteStart(requestId: bigint, fullTrackName: FullTrackName, subscriberPriority: number, groupOrder: GroupOrder, forward: boolean, startLocation: Location, parameters: KeyValuePair[]): Subscribe;
521
- static newAbsoluteRange(requestId: bigint, fullTrackName: FullTrackName, subscriberPriority: number, groupOrder: GroupOrder, forward: boolean, startLocation: Location, endGroup: bigint, parameters: KeyValuePair[]): Subscribe;
522
- serialize(): FrozenByteBuffer;
523
- static parsePayload(buf: BaseByteBuffer): Subscribe;
524
- }
525
-
526
- /**
527
- * Copyright 2025 The MOQtail Authors
528
- *
529
- * Licensed under the Apache License, Version 2.0 (the "License");
530
- * you may not use this file except in compliance with the License.
531
- * You may obtain a copy of the License at
532
- *
533
- * http://www.apache.org/licenses/LICENSE-2.0
534
- *
535
- * Unless required by applicable law or agreed to in writing, software
536
- * distributed under the License is distributed on an "AS IS" BASIS,
537
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
538
- * See the License for the specific language governing permissions and
539
- * limitations under the License.
540
- */
541
-
542
- declare class PublishNamespaceError {
543
- readonly requestId: bigint;
544
- readonly errorCode: PublishNamespaceErrorCode;
545
- readonly reasonPhrase: ReasonPhrase;
546
- constructor(requestId: bigint, errorCode: PublishNamespaceErrorCode, reasonPhrase: ReasonPhrase);
547
- getType(): ControlMessageType;
548
- serialize(): FrozenByteBuffer;
549
- static parsePayload(buf: BaseByteBuffer): PublishNamespaceError;
550
- }
551
-
552
- /**
553
- * Copyright 2025 The MOQtail Authors
554
- *
555
- * Licensed under the Apache License, Version 2.0 (the "License");
556
- * you may not use this file except in compliance with the License.
557
- * You may obtain a copy of the License at
558
- *
559
- * http://www.apache.org/licenses/LICENSE-2.0
560
- *
561
- * Unless required by applicable law or agreed to in writing, software
562
- * distributed under the License is distributed on an "AS IS" BASIS,
563
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
564
- * See the License for the specific language governing permissions and
565
- * limitations under the License.
566
- */
567
-
568
- declare class PublishNamespaceOk {
569
- readonly requestId: bigint;
570
- constructor(requestId: bigint | number);
571
- getType(): ControlMessageType;
572
- serialize(): FrozenByteBuffer;
573
- static parsePayload(buf: BaseByteBuffer): PublishNamespaceOk;
574
- }
575
-
576
- /**
577
- * Copyright 2025 The MOQtail Authors
578
- *
579
- * Licensed under the Apache License, Version 2.0 (the "License");
580
- * you may not use this file except in compliance with the License.
581
- * You may obtain a copy of the License at
582
- *
583
- * http://www.apache.org/licenses/LICENSE-2.0
584
- *
585
- * Unless required by applicable law or agreed to in writing, software
586
- * distributed under the License is distributed on an "AS IS" BASIS,
587
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
588
- * See the License for the specific language governing permissions and
589
- * limitations under the License.
590
- */
591
-
592
- declare class PublishNamespaceCancel {
593
- readonly trackNamespace: Tuple;
594
- readonly errorCode: PublishNamespaceErrorCode;
595
- readonly reasonPhrase: ReasonPhrase;
596
- constructor(trackNamespace: Tuple, errorCode: PublishNamespaceErrorCode, reasonPhrase: ReasonPhrase);
597
- getType(): ControlMessageType;
598
- serialize(): FrozenByteBuffer;
599
- static parsePayload(buf: BaseByteBuffer): PublishNamespaceCancel;
600
- }
601
-
602
- /**
603
- * Copyright 2025 The MOQtail Authors
604
- *
605
- * Licensed under the Apache License, Version 2.0 (the "License");
606
- * you may not use this file except in compliance with the License.
607
- * You may obtain a copy of the License at
608
- *
609
- * http://www.apache.org/licenses/LICENSE-2.0
610
- *
611
- * Unless required by applicable law or agreed to in writing, software
612
- * distributed under the License is distributed on an "AS IS" BASIS,
613
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
614
- * See the License for the specific language governing permissions and
615
- * limitations under the License.
616
- */
617
-
618
- declare class ClientSetup {
619
- readonly supportedVersions: number[];
620
- readonly setupParameters: KeyValuePair[];
621
- constructor(supportedVersions: number[], setupParameters: KeyValuePair[]);
622
- getType(): ControlMessageType;
623
- serialize(): FrozenByteBuffer;
624
- static parsePayload(buf: BaseByteBuffer): ClientSetup;
625
- }
626
-
627
- /**
628
- * Copyright 2025 The MOQtail Authors
629
- *
630
- * Licensed under the Apache License, Version 2.0 (the "License");
631
- * you may not use this file except in compliance with the License.
632
- * You may obtain a copy of the License at
633
- *
634
- * http://www.apache.org/licenses/LICENSE-2.0
635
- *
636
- * Unless required by applicable law or agreed to in writing, software
637
- * distributed under the License is distributed on an "AS IS" BASIS,
638
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
639
- * See the License for the specific language governing permissions and
640
- * limitations under the License.
641
- */
642
-
643
- declare class Fetch {
644
- readonly requestId: bigint;
645
- readonly subscriberPriority: number;
646
- readonly groupOrder: GroupOrder;
647
- readonly typeAndProps: {
648
- readonly type: FetchType.StandAlone;
649
- readonly props: {
650
- fullTrackName: FullTrackName;
651
- startLocation: Location;
652
- endLocation: Location;
653
- };
654
- } | {
655
- readonly type: FetchType.Relative;
656
- readonly props: {
657
- joiningRequestId: bigint;
658
- joiningStart: bigint;
659
- };
660
- } | {
661
- readonly type: FetchType.Absolute;
662
- readonly props: {
663
- joiningRequestId: bigint;
664
- joiningStart: bigint;
665
- };
666
- };
667
- readonly parameters: KeyValuePair[];
668
- constructor(requestId: bigint, subscriberPriority: number, groupOrder: GroupOrder, typeAndProps: {
669
- readonly type: FetchType.StandAlone;
670
- readonly props: {
671
- fullTrackName: FullTrackName;
672
- startLocation: Location;
673
- endLocation: Location;
674
- };
675
- } | {
676
- readonly type: FetchType.Relative;
677
- readonly props: {
678
- joiningRequestId: bigint;
679
- joiningStart: bigint;
680
- };
681
- } | {
682
- readonly type: FetchType.Absolute;
683
- readonly props: {
684
- joiningRequestId: bigint;
685
- joiningStart: bigint;
686
- };
687
- }, parameters: KeyValuePair[]);
688
- getType(): ControlMessageType;
689
- serialize(): FrozenByteBuffer;
690
- static parsePayload(buf: BaseByteBuffer): Fetch;
691
- }
692
-
693
- /**
694
- * Copyright 2025 The MOQtail Authors
695
- *
696
- * Licensed under the Apache License, Version 2.0 (the "License");
697
- * you may not use this file except in compliance with the License.
698
- * You may obtain a copy of the License at
699
- *
700
- * http://www.apache.org/licenses/LICENSE-2.0
701
- *
702
- * Unless required by applicable law or agreed to in writing, software
703
- * distributed under the License is distributed on an "AS IS" BASIS,
704
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
705
- * See the License for the specific language governing permissions and
706
- * limitations under the License.
707
- */
708
-
709
- declare class FetchCancel {
710
- readonly requestId: bigint;
711
- constructor(requestId: bigint | number);
712
- getType(): ControlMessageType;
713
- serialize(): FrozenByteBuffer;
714
- static parsePayload(buf: BaseByteBuffer): FetchCancel;
715
- }
716
-
717
- /**
718
- * Copyright 2025 The MOQtail Authors
719
- *
720
- * Licensed under the Apache License, Version 2.0 (the "License");
721
- * you may not use this file except in compliance with the License.
722
- * You may obtain a copy of the License at
723
- *
724
- * http://www.apache.org/licenses/LICENSE-2.0
725
- *
726
- * Unless required by applicable law or agreed to in writing, software
727
- * distributed under the License is distributed on an "AS IS" BASIS,
728
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
729
- * See the License for the specific language governing permissions and
730
- * limitations under the License.
731
- */
732
-
733
- declare class FetchError {
734
- readonly requestId: bigint;
735
- readonly errorCode: FetchErrorCode;
736
- readonly reasonPhrase: ReasonPhrase;
737
- constructor(requestId: bigint, errorCode: FetchErrorCode, reasonPhrase: ReasonPhrase);
738
- getType(): ControlMessageType;
739
- serialize(): FrozenByteBuffer;
740
- static parsePayload(buf: BaseByteBuffer): FetchError;
741
- }
742
-
743
- /**
744
- * Copyright 2025 The MOQtail Authors
745
- *
746
- * Licensed under the Apache License, Version 2.0 (the "License");
747
- * you may not use this file except in compliance with the License.
748
- * You may obtain a copy of the License at
749
- *
750
- * http://www.apache.org/licenses/LICENSE-2.0
751
- *
752
- * Unless required by applicable law or agreed to in writing, software
753
- * distributed under the License is distributed on an "AS IS" BASIS,
754
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
755
- * See the License for the specific language governing permissions and
756
- * limitations under the License.
757
- */
758
-
759
- declare class FetchOk {
760
- readonly requestId: bigint;
761
- readonly groupOrder: GroupOrder;
762
- readonly endOfTrack: boolean;
763
- readonly endLocation: Location;
764
- readonly parameters: KeyValuePair[];
765
- private constructor();
766
- static newAscending(requestId: bigint | number, endOfTrack: boolean, endLocation: Location, parameters: KeyValuePair[]): FetchOk;
767
- static newDescending(requestId: bigint | number, endOfTrack: boolean, endLocation: Location, parameters: KeyValuePair[]): FetchOk;
768
- serialize(): FrozenByteBuffer;
769
- static parsePayload(buf: BaseByteBuffer): FetchOk;
770
- }
771
-
772
- /**
773
- * Copyright 2025 The MOQtail Authors
774
- *
775
- * Licensed under the Apache License, Version 2.0 (the "License");
776
- * you may not use this file except in compliance with the License.
777
- * You may obtain a copy of the License at
778
- *
779
- * http://www.apache.org/licenses/LICENSE-2.0
780
- *
781
- * Unless required by applicable law or agreed to in writing, software
782
- * distributed under the License is distributed on an "AS IS" BASIS,
783
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
784
- * See the License for the specific language governing permissions and
785
- * limitations under the License.
786
- */
787
-
788
- declare class GoAway {
789
- newSessionUri?: string | undefined;
790
- constructor(newSessionUri?: string);
791
- static getType(): ControlMessageType;
792
- serialize(): FrozenByteBuffer;
793
- static parsePayload(buf: BaseByteBuffer): GoAway;
794
- }
795
-
796
- /**
797
- * Copyright 2025 The MOQtail Authors
798
- *
799
- * Licensed under the Apache License, Version 2.0 (the "License");
800
- * you may not use this file except in compliance with the License.
801
- * You may obtain a copy of the License at
802
- *
803
- * http://www.apache.org/licenses/LICENSE-2.0
804
- *
805
- * Unless required by applicable law or agreed to in writing, software
806
- * distributed under the License is distributed on an "AS IS" BASIS,
807
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
808
- * See the License for the specific language governing permissions and
809
- * limitations under the License.
810
- */
811
-
812
- declare class MaxRequestId$1 {
813
- readonly requestId: bigint;
814
- constructor(requestId: bigint | number);
815
- getType(): ControlMessageType;
816
- serialize(): FrozenByteBuffer;
817
- static parsePayload(buf: BaseByteBuffer): MaxRequestId$1;
818
- }
819
-
820
- /**
821
- * Copyright 2025 The MOQtail Authors
822
- *
823
- * Licensed under the Apache License, Version 2.0 (the "License");
824
- * you may not use this file except in compliance with the License.
825
- * You may obtain a copy of the License at
826
- *
827
- * http://www.apache.org/licenses/LICENSE-2.0
828
- *
829
- * Unless required by applicable law or agreed to in writing, software
830
- * distributed under the License is distributed on an "AS IS" BASIS,
831
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
832
- * See the License for the specific language governing permissions and
833
- * limitations under the License.
834
- */
835
-
836
- declare class ServerSetup {
837
- readonly selectedVersion: number;
838
- readonly setupParameters: KeyValuePair[];
839
- constructor(selectedVersion: number, setupParameters: KeyValuePair[]);
840
- getType(): ControlMessageType;
841
- serialize(): FrozenByteBuffer;
842
- static parsePayload(buf: BaseByteBuffer): ServerSetup;
843
- }
844
-
845
- /**
846
- * Copyright 2025 The MOQtail Authors
847
- *
848
- * Licensed under the Apache License, Version 2.0 (the "License");
849
- * you may not use this file except in compliance with the License.
850
- * You may obtain a copy of the License at
851
- *
852
- * http://www.apache.org/licenses/LICENSE-2.0
853
- *
854
- * Unless required by applicable law or agreed to in writing, software
855
- * distributed under the License is distributed on an "AS IS" BASIS,
856
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
857
- * See the License for the specific language governing permissions and
858
- * limitations under the License.
859
- */
860
-
861
- declare class PublishDone {
862
- readonly requestId: bigint;
863
- readonly statusCode: PublishDoneStatusCode;
864
- readonly streamCount: bigint;
865
- readonly errorReason: ReasonPhrase;
866
- constructor(requestId: bigint, statusCode: PublishDoneStatusCode, streamCount: bigint, errorReason: ReasonPhrase);
867
- static new(requestId: bigint | number, statusCode: PublishDoneStatusCode, streamCount: bigint, errorReason: ReasonPhrase): PublishDone;
868
- getType(): ControlMessageType;
869
- serialize(): FrozenByteBuffer;
870
- static parsePayload(buf: BaseByteBuffer): PublishDone;
871
- }
872
-
873
- /**
874
- * Copyright 2025 The MOQtail Authors
875
- *
876
- * Licensed under the Apache License, Version 2.0 (the "License");
877
- * you may not use this file except in compliance with the License.
878
- * You may obtain a copy of the License at
879
- *
880
- * http://www.apache.org/licenses/LICENSE-2.0
881
- *
882
- * Unless required by applicable law or agreed to in writing, software
883
- * distributed under the License is distributed on an "AS IS" BASIS,
884
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
885
- * See the License for the specific language governing permissions and
886
- * limitations under the License.
887
- */
888
-
889
- declare class Publish {
890
- readonly requestId: bigint;
891
- readonly fullTrackName: FullTrackName;
892
- readonly trackAlias: bigint;
893
- readonly groupOrder: number;
894
- readonly contentExists: number;
895
- readonly largestLocation: Location | undefined;
896
- readonly forward: number;
897
- readonly parameters: KeyValuePair[];
898
- constructor(requestId: bigint, fullTrackName: FullTrackName, trackAlias: bigint, groupOrder: number, contentExists: number, largestLocation: Location | undefined, forward: number, parameters: KeyValuePair[]);
899
- static new(requestId: bigint | number, fullTrackName: FullTrackName, trackAlias: bigint | number, groupOrder: number, contentExists: number, largestLocation: Location | undefined, forward: number, parameters: KeyValuePair[]): Publish;
900
- getType(): ControlMessageType;
901
- serialize(): FrozenByteBuffer;
902
- static parsePayload(buf: BaseByteBuffer): Publish;
903
- }
904
-
905
- /**
906
- * Copyright 2025 The MOQtail Authors
907
- *
908
- * Licensed under the Apache License, Version 2.0 (the "License");
909
- * you may not use this file except in compliance with the License.
910
- * You may obtain a copy of the License at
911
- *
912
- * http://www.apache.org/licenses/LICENSE-2.0
913
- *
914
- * Unless required by applicable law or agreed to in writing, software
915
- * distributed under the License is distributed on an "AS IS" BASIS,
916
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
917
- * See the License for the specific language governing permissions and
918
- * limitations under the License.
919
- */
920
-
921
- declare class PublishOk {
922
- readonly requestId: bigint;
923
- readonly forward: number;
924
- readonly subscriberPriority: number;
925
- readonly groupOrder: number;
926
- readonly filterType: FilterType;
927
- readonly startLocation: Location | undefined;
928
- readonly endGroup: bigint | undefined;
929
- readonly parameters: KeyValuePair[];
930
- constructor(requestId: bigint, forward: number, subscriberPriority: number, groupOrder: number, filterType: FilterType, startLocation: Location | undefined, endGroup: bigint | undefined, parameters: KeyValuePair[]);
931
- static new(requestId: bigint | number, forward: number, subscriberPriority: number, groupOrder: number, filterType: FilterType, startLocation: Location | undefined, endGroup: bigint | number | undefined, parameters: KeyValuePair[]): PublishOk;
932
- getType(): ControlMessageType;
933
- serialize(): FrozenByteBuffer;
934
- static parsePayload(buf: BaseByteBuffer): PublishOk;
935
- }
936
-
937
- /**
938
- * Copyright 2025 The MOQtail Authors
939
- *
940
- * Licensed under the Apache License, Version 2.0 (the "License");
941
- * you may not use this file except in compliance with the License.
942
- * You may obtain a copy of the License at
943
- *
944
- * http://www.apache.org/licenses/LICENSE-2.0
945
- *
946
- * Unless required by applicable law or agreed to in writing, software
947
- * distributed under the License is distributed on an "AS IS" BASIS,
948
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
949
- * See the License for the specific language governing permissions and
950
- * limitations under the License.
951
- */
952
-
953
- declare class PublishError {
954
- readonly requestId: bigint;
955
- readonly errorCode: PublishErrorCode;
956
- readonly errorReason: ReasonPhrase;
957
- constructor(requestId: bigint, errorCode: PublishErrorCode, errorReason: ReasonPhrase);
958
- static new(requestId: bigint | number, errorCode: PublishErrorCode, errorReason: ReasonPhrase): PublishError;
959
- getType(): ControlMessageType;
960
- serialize(): FrozenByteBuffer;
961
- static parsePayload(buf: BaseByteBuffer): PublishError;
962
- }
963
-
964
- /**
965
- * Copyright 2025 The MOQtail Authors
966
- *
967
- * Licensed under the Apache License, Version 2.0 (the "License");
968
- * you may not use this file except in compliance with the License.
969
- * You may obtain a copy of the License at
970
- *
971
- * http://www.apache.org/licenses/LICENSE-2.0
972
- *
973
- * Unless required by applicable law or agreed to in writing, software
974
- * distributed under the License is distributed on an "AS IS" BASIS,
975
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
976
- * See the License for the specific language governing permissions and
977
- * limitations under the License.
978
- */
979
-
980
- declare class SubscribeError {
981
- readonly requestId: bigint;
982
- readonly errorCode: SubscribeErrorCode;
983
- readonly errorReason: ReasonPhrase;
984
- constructor(requestId: bigint, errorCode: SubscribeErrorCode, errorReason: ReasonPhrase);
985
- static new(requestId: bigint | number, errorCode: SubscribeErrorCode, errorReason: ReasonPhrase): SubscribeError;
986
- getType(): ControlMessageType;
987
- serialize(): FrozenByteBuffer;
988
- static parsePayload(buf: BaseByteBuffer): SubscribeError;
989
- }
990
-
991
- /**
992
- * Copyright 2025 The MOQtail Authors
993
- *
994
- * Licensed under the Apache License, Version 2.0 (the "License");
995
- * you may not use this file except in compliance with the License.
996
- * You may obtain a copy of the License at
997
- *
998
- * http://www.apache.org/licenses/LICENSE-2.0
999
- *
1000
- * Unless required by applicable law or agreed to in writing, software
1001
- * distributed under the License is distributed on an "AS IS" BASIS,
1002
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1003
- * See the License for the specific language governing permissions and
1004
- * limitations under the License.
1005
- */
1006
-
1007
- declare class SubscribeOk {
1008
- requestId: bigint;
1009
- trackAlias: bigint;
1010
- expires: bigint;
1011
- groupOrder: GroupOrder;
1012
- contentExists: boolean;
1013
- largestLocation?: Location | undefined;
1014
- parameters: KeyValuePair[];
1015
- private constructor();
1016
- static newAscendingNoContent(requestId: bigint, trackAlias: bigint, expires: bigint, parameters: KeyValuePair[]): SubscribeOk;
1017
- static newDescendingNoContent(requestId: bigint, trackAlias: bigint, expires: bigint, parameters: KeyValuePair[]): SubscribeOk;
1018
- static newAscendingWithContent(requestId: bigint, trackAlias: bigint, expires: bigint, largestLocation: Location, parameters: KeyValuePair[]): SubscribeOk;
1019
- static newDescendingWithContent(requestId: bigint, trackAlias: bigint, expires: bigint, largestLocation: Location, parameters: KeyValuePair[]): SubscribeOk;
1020
- serialize(): FrozenByteBuffer;
1021
- static parsePayload(buf: BaseByteBuffer): SubscribeOk;
1022
- }
1023
-
1024
- /**
1025
- * Copyright 2025 The MOQtail Authors
1026
- *
1027
- * Licensed under the Apache License, Version 2.0 (the "License");
1028
- * you may not use this file except in compliance with the License.
1029
- * You may obtain a copy of the License at
1030
- *
1031
- * http://www.apache.org/licenses/LICENSE-2.0
1032
- *
1033
- * Unless required by applicable law or agreed to in writing, software
1034
- * distributed under the License is distributed on an "AS IS" BASIS,
1035
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1036
- * See the License for the specific language governing permissions and
1037
- * limitations under the License.
1038
- */
1039
-
1040
- declare class SubscribeUpdate {
1041
- requestId: bigint;
1042
- subscriptionRequestId: bigint;
1043
- startLocation: Location;
1044
- endGroup: bigint;
1045
- subscriberPriority: number;
1046
- forward: boolean;
1047
- parameters: KeyValuePair[];
1048
- constructor(requestId: bigint, subscriptionRequestId: bigint, startLocation: Location, endGroup: bigint, subscriberPriority: number, forward: boolean, parameters: KeyValuePair[]);
1049
- serialize(): FrozenByteBuffer;
1050
- static parsePayload(buf: BaseByteBuffer): SubscribeUpdate;
1051
- equals(other: SubscribeUpdate): boolean;
1052
- }
1053
-
1054
- /**
1055
- * Copyright 2025 The MOQtail Authors
1056
- *
1057
- * Licensed under the Apache License, Version 2.0 (the "License");
1058
- * you may not use this file except in compliance with the License.
1059
- * You may obtain a copy of the License at
1060
- *
1061
- * http://www.apache.org/licenses/LICENSE-2.0
1062
- *
1063
- * Unless required by applicable law or agreed to in writing, software
1064
- * distributed under the License is distributed on an "AS IS" BASIS,
1065
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1066
- * See the License for the specific language governing permissions and
1067
- * limitations under the License.
1068
- */
1069
-
1070
- declare class RequestsBlocked {
1071
- readonly maximumRequestId: bigint;
1072
- constructor(maximumRequestId: bigint | number);
1073
- getType(): ControlMessageType;
1074
- serialize(): FrozenByteBuffer;
1075
- static parsePayload(buf: BaseByteBuffer): RequestsBlocked;
1076
- }
1077
-
1078
- /**
1079
- * Copyright 2025 The MOQtail Authors
1080
- *
1081
- * Licensed under the Apache License, Version 2.0 (the "License");
1082
- * you may not use this file except in compliance with the License.
1083
- * You may obtain a copy of the License at
1084
- *
1085
- * http://www.apache.org/licenses/LICENSE-2.0
1086
- *
1087
- * Unless required by applicable law or agreed to in writing, software
1088
- * distributed under the License is distributed on an "AS IS" BASIS,
1089
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1090
- * See the License for the specific language governing permissions and
1091
- * limitations under the License.
1092
- */
1093
-
1094
- declare class TrackStatus {
1095
- requestId: bigint;
1096
- trackAlias: bigint;
1097
- fullTrackName: FullTrackName;
1098
- subscriberPriority: number;
1099
- groupOrder: GroupOrder;
1100
- forward: boolean;
1101
- filterType: FilterType;
1102
- startLocation: Location | undefined;
1103
- endGroup: bigint | undefined;
1104
- subscribeParameters: KeyValuePair[];
1105
- private constructor();
1106
- static newNextGroupStart(requestId: bigint, trackAlias: bigint, fullTrackName: FullTrackName, subscriberPriority: number, groupOrder: GroupOrder, forward: boolean, subscribeParameters: KeyValuePair[]): TrackStatus;
1107
- static newLatestObject(requestId: bigint, trackAlias: bigint, fullTrackName: FullTrackName, subscriberPriority: number, groupOrder: GroupOrder, forward: boolean, subscribeParameters: KeyValuePair[]): TrackStatus;
1108
- static newAbsoluteStart(requestId: bigint, trackAlias: bigint, fullTrackName: FullTrackName, subscriberPriority: number, groupOrder: GroupOrder, forward: boolean, startLocation: Location, subscribeParameters: KeyValuePair[]): TrackStatus;
1109
- static newAbsoluteRange(requestId: bigint, trackAlias: bigint, fullTrackName: FullTrackName, subscriberPriority: number, groupOrder: GroupOrder, forward: boolean, startLocation: Location, endGroup: bigint, subscribeParameters: KeyValuePair[]): TrackStatus;
1110
- serialize(): FrozenByteBuffer;
1111
- static parsePayload(buf: BaseByteBuffer): TrackStatus;
1112
- }
1113
-
1114
- /**
1115
- * Copyright 2025 The MOQtail Authors
1116
- *
1117
- * Licensed under the Apache License, Version 2.0 (the "License");
1118
- * you may not use this file except in compliance with the License.
1119
- * You may obtain a copy of the License at
1120
- *
1121
- * http://www.apache.org/licenses/LICENSE-2.0
1122
- *
1123
- * Unless required by applicable law or agreed to in writing, software
1124
- * distributed under the License is distributed on an "AS IS" BASIS,
1125
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1126
- * See the License for the specific language governing permissions and
1127
- * limitations under the License.
1128
- */
1129
-
1130
- /**
1131
- * @public
1132
- * Represents a protocol PublishNamespaceDone message, used to unpublish a track namespace.
1133
- */
1134
- declare class PublishNamespaceDone {
1135
- readonly trackNamespace: Tuple;
1136
- /**
1137
- * Constructs a PublishNamespaceDone message.
1138
- * @param trackNamespace - The track namespace to unpublish.
1139
- */
1140
- constructor(trackNamespace: Tuple);
1141
- /**
1142
- * Gets the control message type for this PublishNamespaceDone message.
1143
- * @returns The ControlMessageType.PublishNamespaceDone enum value.
1144
- */
1145
- getType(): ControlMessageType;
1146
- /**
1147
- * Serializes the PublishNamespaceDone message to a frozen byte buffer.
1148
- * @returns The serialized message as a FrozenByteBuffer.
1149
- * @throws :{@link LengthExceedsMaxError} If the payload exceeds 65535 bytes.
1150
- */
1151
- serialize(): FrozenByteBuffer;
1152
- /**
1153
- * Parses a PublishNamespaceDone message payload from a buffer.
1154
- * @param buf - The buffer containing the payload.
1155
- * @returns The parsed PublishNamespaceDone message.
1156
- */
1157
- static parsePayload(buf: BaseByteBuffer): PublishNamespaceDone;
1158
- }
1159
-
1160
- /**
1161
- * Copyright 2025 The MOQtail Authors
1162
- *
1163
- * Licensed under the Apache License, Version 2.0 (the "License");
1164
- * you may not use this file except in compliance with the License.
1165
- * You may obtain a copy of the License at
1166
- *
1167
- * http://www.apache.org/licenses/LICENSE-2.0
1168
- *
1169
- * Unless required by applicable law or agreed to in writing, software
1170
- * distributed under the License is distributed on an "AS IS" BASIS,
1171
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1172
- * See the License for the specific language governing permissions and
1173
- * limitations under the License.
1174
- */
1175
-
1176
- declare class Unsubscribe {
1177
- readonly requestId: bigint;
1178
- constructor(requestId: bigint | number);
1179
- getType(): ControlMessageType;
1180
- serialize(): FrozenByteBuffer;
1181
- static parsePayload(buf: BaseByteBuffer): Unsubscribe;
1182
- }
1183
-
1184
- /**
1185
- * Copyright 2025 The MOQtail Authors
1186
- *
1187
- * Licensed under the Apache License, Version 2.0 (the "License");
1188
- * you may not use this file except in compliance with the License.
1189
- * You may obtain a copy of the License at
1190
- *
1191
- * http://www.apache.org/licenses/LICENSE-2.0
1192
- *
1193
- * Unless required by applicable law or agreed to in writing, software
1194
- * distributed under the License is distributed on an "AS IS" BASIS,
1195
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1196
- * See the License for the specific language governing permissions and
1197
- * limitations under the License.
1198
- */
1199
-
1200
- declare class SubscribeNamespace {
1201
- readonly requestId: bigint;
1202
- readonly trackNamespacePrefix: Tuple;
1203
- readonly parameters: KeyValuePair[];
1204
- constructor(requestId: bigint, trackNamespacePrefix: Tuple, parameters: KeyValuePair[]);
1205
- getType(): ControlMessageType;
1206
- serialize(): FrozenByteBuffer;
1207
- static parsePayload(buf: BaseByteBuffer): SubscribeNamespace;
1208
- }
1209
-
1210
- /**
1211
- * Copyright 2025 The MOQtail Authors
1212
- *
1213
- * Licensed under the Apache License, Version 2.0 (the "License");
1214
- * you may not use this file except in compliance with the License.
1215
- * You may obtain a copy of the License at
1216
- *
1217
- * http://www.apache.org/licenses/LICENSE-2.0
1218
- *
1219
- * Unless required by applicable law or agreed to in writing, software
1220
- * distributed under the License is distributed on an "AS IS" BASIS,
1221
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1222
- * See the License for the specific language governing permissions and
1223
- * limitations under the License.
1224
- */
1225
-
1226
- declare class SubscribeNamespaceOk {
1227
- readonly requestId: bigint;
1228
- constructor(requestId: bigint | number);
1229
- getType(): ControlMessageType;
1230
- serialize(): FrozenByteBuffer;
1231
- static parsePayload(buf: BaseByteBuffer): SubscribeNamespaceOk;
1232
- }
1233
-
1234
- /**
1235
- * Copyright 2025 The MOQtail Authors
1236
- *
1237
- * Licensed under the Apache License, Version 2.0 (the "License");
1238
- * you may not use this file except in compliance with the License.
1239
- * You may obtain a copy of the License at
1240
- *
1241
- * http://www.apache.org/licenses/LICENSE-2.0
1242
- *
1243
- * Unless required by applicable law or agreed to in writing, software
1244
- * distributed under the License is distributed on an "AS IS" BASIS,
1245
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1246
- * See the License for the specific language governing permissions and
1247
- * limitations under the License.
1248
- */
1249
-
1250
- declare class SubscribeNamespaceError {
1251
- readonly requestId: bigint;
1252
- readonly errorCode: SubscribeNamespaceErrorCode;
1253
- readonly reasonPhrase: ReasonPhrase;
1254
- constructor(requestId: bigint, errorCode: SubscribeNamespaceErrorCode, reasonPhrase: ReasonPhrase);
1255
- getType(): ControlMessageType;
1256
- serialize(): FrozenByteBuffer;
1257
- static parsePayload(buf: BaseByteBuffer): SubscribeNamespaceError;
1258
- }
1259
-
1260
- /**
1261
- * Copyright 2025 The MOQtail Authors
1262
- *
1263
- * Licensed under the Apache License, Version 2.0 (the "License");
1264
- * you may not use this file except in compliance with the License.
1265
- * You may obtain a copy of the License at
1266
- *
1267
- * http://www.apache.org/licenses/LICENSE-2.0
1268
- *
1269
- * Unless required by applicable law or agreed to in writing, software
1270
- * distributed under the License is distributed on an "AS IS" BASIS,
1271
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1272
- * See the License for the specific language governing permissions and
1273
- * limitations under the License.
1274
- */
1275
-
1276
- declare class UnsubscribeNamespace {
1277
- readonly trackNamespacePrefix: Tuple;
1278
- constructor(trackNamespacePrefix: Tuple);
1279
- getType(): ControlMessageType;
1280
- serialize(): FrozenByteBuffer;
1281
- static parsePayload(buf: BaseByteBuffer): UnsubscribeNamespace;
1282
- }
1283
-
1284
- /**
1285
- * Copyright 2025 The MOQtail Authors
1286
- *
1287
- * Licensed under the Apache License, Version 2.0 (the "License");
1288
- * you may not use this file except in compliance with the License.
1289
- * You may obtain a copy of the License at
1290
- *
1291
- * http://www.apache.org/licenses/LICENSE-2.0
1292
- *
1293
- * Unless required by applicable law or agreed to in writing, software
1294
- * distributed under the License is distributed on an "AS IS" BASIS,
1295
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1296
- * See the License for the specific language governing permissions and
1297
- * limitations under the License.
1298
- */
1299
-
1300
- declare class TrackStatusOk {
1301
- requestId: bigint;
1302
- expires: bigint;
1303
- groupOrder: GroupOrder;
1304
- contentExists: boolean;
1305
- largestLocation?: Location | undefined;
1306
- subscribeParameters: KeyValuePair[];
1307
- private constructor();
1308
- static newAscendingNoContent(requestId: bigint, expires: bigint, subscribeParameters: KeyValuePair[]): TrackStatusOk;
1309
- static newDescendingNoContent(requestId: bigint, expires: bigint, subscribeParameters: KeyValuePair[]): TrackStatusOk;
1310
- static newAscendingWithContent(requestId: bigint, expires: bigint, largestLocation: Location, subscribeParameters: KeyValuePair[]): TrackStatusOk;
1311
- static newDescendingWithContent(requestId: bigint, expires: bigint, largestLocation: Location, subscribeParameters: KeyValuePair[]): TrackStatusOk;
1312
- serialize(): FrozenByteBuffer;
1313
- static parsePayload(buf: BaseByteBuffer): TrackStatusOk;
1314
- }
1315
-
1316
- /**
1317
- * Copyright 2025 The MOQtail Authors
1318
- *
1319
- * Licensed under the Apache License, Version 2.0 (the "License");
1320
- * you may not use this file except in compliance with the License.
1321
- * You may obtain a copy of the License at
1322
- *
1323
- * http://www.apache.org/licenses/LICENSE-2.0
1324
- *
1325
- * Unless required by applicable law or agreed to in writing, software
1326
- * distributed under the License is distributed on an "AS IS" BASIS,
1327
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1328
- * See the License for the specific language governing permissions and
1329
- * limitations under the License.
1330
- */
1331
-
1332
- declare class TrackStatusError {
1333
- readonly requestId: bigint;
1334
- readonly errorCode: SubscribeErrorCode;
1335
- readonly errorReason: ReasonPhrase;
1336
- readonly trackAlias: bigint;
1337
- constructor(requestId: bigint, errorCode: SubscribeErrorCode, errorReason: ReasonPhrase, trackAlias: bigint);
1338
- static new(requestId: bigint | number, errorCode: SubscribeErrorCode, errorReason: ReasonPhrase, trackAlias: bigint): TrackStatusError;
1339
- getType(): ControlMessageType;
1340
- serialize(): FrozenByteBuffer;
1341
- static parsePayload(buf: BaseByteBuffer): TrackStatusError;
1342
- }
1343
-
1344
- /**
1345
- * Copyright 2025 The MOQtail Authors
1346
- *
1347
- * Licensed under the Apache License, Version 2.0 (the "License");
1348
- * you may not use this file except in compliance with the License.
1349
- * You may obtain a copy of the License at
1350
- *
1351
- * http://www.apache.org/licenses/LICENSE-2.0
1352
- *
1353
- * Unless required by applicable law or agreed to in writing, software
1354
- * distributed under the License is distributed on an "AS IS" BASIS,
1355
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1356
- * See the License for the specific language governing permissions and
1357
- * limitations under the License.
1358
- */
1359
-
1360
- type ControlMessage = Publish | PublishError | PublishOk | PublishDone | PublishNamespace | PublishNamespaceCancel | PublishNamespaceError | PublishNamespaceOk | ClientSetup | Fetch | FetchCancel | FetchError | FetchOk | GoAway | MaxRequestId$1 | ServerSetup | Subscribe | SubscribeError | SubscribeOk | SubscribeUpdate | RequestsBlocked | TrackStatus | TrackStatusOk | TrackStatusError | PublishNamespaceDone | Unsubscribe | SubscribeNamespace | SubscribeNamespaceOk | SubscribeNamespaceError | UnsubscribeNamespace;
1361
- declare namespace ControlMessage {
1362
- function deserialize(buf: FrozenByteBuffer): ControlMessage;
1363
- function serialize(msg: ControlMessage): FrozenByteBuffer;
1364
- }
1365
-
1366
- /**
1367
- * Copyright 2025 The MOQtail Authors
1368
- *
1369
- * Licensed under the Apache License, Version 2.0 (the "License");
1370
- * you may not use this file except in compliance with the License.
1371
- * You may obtain a copy of the License at
1372
- *
1373
- * http://www.apache.org/licenses/LICENSE-2.0
1374
- *
1375
- * Unless required by applicable law or agreed to in writing, software
1376
- * distributed under the License is distributed on an "AS IS" BASIS,
1377
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1378
- * See the License for the specific language governing permissions and
1379
- * limitations under the License.
1380
- */
1381
- declare enum CommonType {
1382
- AuthorizationToken = 3
1383
- }
1384
- declare function commonTypeFromNumber(value: number): CommonType;
1385
- declare enum SetupParameterType {
1386
- Path = 1,
1387
- MaxRequestId = 2,
1388
- MaxAuthTokenCacheSize = 4
1389
- }
1390
- declare function setupParameterTypeFromNumber(value: number): SetupParameterType;
1391
- declare enum VersionSpecificParameterType {
1392
- AuthorizationToken = 1,
1393
- DeliveryTimeout = 2,
1394
- MaxCacheDuration = 4
1395
- }
1396
- declare function versionSpecificParameterTypeFromNumber(value: number): VersionSpecificParameterType;
1397
- declare enum TokenAliasType {
1398
- Delete = 0,
1399
- Register = 1,
1400
- UseAlias = 2,
1401
- UseValue = 3
1402
- }
1403
- declare function tokenAliasTypeFromNumber(value: number): TokenAliasType;
1404
-
1405
- /**
1406
- * Copyright 2025 The MOQtail Authors
1407
- *
1408
- * Licensed under the Apache License, Version 2.0 (the "License");
1409
- * you may not use this file except in compliance with the License.
1410
- * You may obtain a copy of the License at
1411
- *
1412
- * http://www.apache.org/licenses/LICENSE-2.0
1413
- *
1414
- * Unless required by applicable law or agreed to in writing, software
1415
- * distributed under the License is distributed on an "AS IS" BASIS,
1416
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1417
- * See the License for the specific language governing permissions and
1418
- * limitations under the License.
1419
- */
1420
-
1421
- interface Parameter {
1422
- toKeyValuePair(): KeyValuePair;
1423
- }
1424
-
1425
- /**
1426
- * Copyright 2025 The MOQtail Authors
1427
- *
1428
- * Licensed under the Apache License, Version 2.0 (the "License");
1429
- * you may not use this file except in compliance with the License.
1430
- * You may obtain a copy of the License at
1431
- *
1432
- * http://www.apache.org/licenses/LICENSE-2.0
1433
- *
1434
- * Unless required by applicable law or agreed to in writing, software
1435
- * distributed under the License is distributed on an "AS IS" BASIS,
1436
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1437
- * See the License for the specific language governing permissions and
1438
- * limitations under the License.
1439
- */
1440
-
1441
- declare class MaxRequestId implements Parameter {
1442
- readonly maxId: bigint;
1443
- static readonly TYPE = SetupParameterType.MaxRequestId;
1444
- constructor(maxId: bigint);
1445
- toKeyValuePair(): KeyValuePair;
1446
- static fromKeyValuePair(pair: KeyValuePair): MaxRequestId | undefined;
1447
- }
1448
-
1449
- /**
1450
- * Copyright 2025 The MOQtail Authors
1451
- *
1452
- * Licensed under the Apache License, Version 2.0 (the "License");
1453
- * you may not use this file except in compliance with the License.
1454
- * You may obtain a copy of the License at
1455
- *
1456
- * http://www.apache.org/licenses/LICENSE-2.0
1457
- *
1458
- * Unless required by applicable law or agreed to in writing, software
1459
- * distributed under the License is distributed on an "AS IS" BASIS,
1460
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1461
- * See the License for the specific language governing permissions and
1462
- * limitations under the License.
1463
- */
1464
-
1465
- declare class Path implements Parameter {
1466
- readonly moqtPath: string;
1467
- static readonly TYPE = SetupParameterType.Path;
1468
- constructor(moqtPath: string);
1469
- toKeyValuePair(): KeyValuePair;
1470
- static fromKeyValuePair(pair: KeyValuePair): Path | undefined;
1471
- }
1472
-
1473
- /**
1474
- * Copyright 2025 The MOQtail Authors
1475
- *
1476
- * Licensed under the Apache License, Version 2.0 (the "License");
1477
- * you may not use this file except in compliance with the License.
1478
- * You may obtain a copy of the License at
1479
- *
1480
- * http://www.apache.org/licenses/LICENSE-2.0
1481
- *
1482
- * Unless required by applicable law or agreed to in writing, software
1483
- * distributed under the License is distributed on an "AS IS" BASIS,
1484
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1485
- * See the License for the specific language governing permissions and
1486
- * limitations under the License.
1487
- */
1488
-
1489
- declare class MaxAuthTokenCacheSize implements Parameter {
1490
- readonly maxSize: bigint;
1491
- static readonly TYPE = SetupParameterType.MaxAuthTokenCacheSize;
1492
- constructor(maxSize: bigint);
1493
- toKeyValuePair(): KeyValuePair;
1494
- static fromKeyValuePair(pair: KeyValuePair): MaxAuthTokenCacheSize | undefined;
1495
- }
1496
-
1497
- /**
1498
- * Copyright 2025 The MOQtail Authors
1499
- *
1500
- * Licensed under the Apache License, Version 2.0 (the "License");
1501
- * you may not use this file except in compliance with the License.
1502
- * You may obtain a copy of the License at
1503
- *
1504
- * http://www.apache.org/licenses/LICENSE-2.0
1505
- *
1506
- * Unless required by applicable law or agreed to in writing, software
1507
- * distributed under the License is distributed on an "AS IS" BASIS,
1508
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1509
- * See the License for the specific language governing permissions and
1510
- * limitations under the License.
1511
- */
1512
-
1513
- type AuthTokenVariant = {
1514
- aliasType: TokenAliasType.Delete;
1515
- tokenAlias: bigint;
1516
- } | {
1517
- aliasType: TokenAliasType.Register;
1518
- tokenAlias: bigint;
1519
- tokenType: bigint;
1520
- tokenValue: Uint8Array;
1521
- } | {
1522
- aliasType: TokenAliasType.UseAlias;
1523
- tokenAlias: bigint;
1524
- } | {
1525
- aliasType: TokenAliasType.UseValue;
1526
- tokenType: bigint;
1527
- tokenValue: Uint8Array;
1528
- };
1529
- declare class AuthorizationToken implements Parameter {
1530
- readonly variant: AuthTokenVariant;
1531
- static readonly TYPE = CommonType.AuthorizationToken;
1532
- private constructor();
1533
- static newDelete(tokenAlias: bigint | number): AuthorizationToken;
1534
- static newRegister(tokenAlias: bigint | number, tokenType: bigint | number, tokenValue: Uint8Array): AuthorizationToken;
1535
- static newUseAlias(tokenAlias: bigint | number): AuthorizationToken;
1536
- static newUseValue(tokenType: bigint | number, tokenValue: Uint8Array): AuthorizationToken;
1537
- toKeyValuePair(): KeyValuePair;
1538
- static fromKeyValuePair(pair: KeyValuePair): AuthorizationToken | undefined;
1539
- }
1540
-
1541
- /**
1542
- * Copyright 2025 The MOQtail Authors
1543
- *
1544
- * Licensed under the Apache License, Version 2.0 (the "License");
1545
- * you may not use this file except in compliance with the License.
1546
- * You may obtain a copy of the License at
1547
- *
1548
- * http://www.apache.org/licenses/LICENSE-2.0
1549
- *
1550
- * Unless required by applicable law or agreed to in writing, software
1551
- * distributed under the License is distributed on an "AS IS" BASIS,
1552
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1553
- * See the License for the specific language governing permissions and
1554
- * limitations under the License.
1555
- */
1556
-
1557
- type SetupParameter = Path | MaxRequestId | MaxAuthTokenCacheSize | AuthorizationToken;
1558
- declare namespace SetupParameter {
1559
- function fromKeyValuePair(pair: KeyValuePair): SetupParameter | undefined;
1560
- function toKeyValuePair(param: SetupParameter): KeyValuePair;
1561
- function isPath(param: SetupParameter): param is Path;
1562
- function isMaxRequestId(param: SetupParameter): param is MaxRequestId;
1563
- function isMaxAuthTokenCacheSize(param: SetupParameter): param is MaxAuthTokenCacheSize;
1564
- function isAuthorizationToken(param: SetupParameter): param is AuthorizationToken;
1565
- }
1566
- declare class SetupParameters {
1567
- private kvps;
1568
- addMaxAuthTokenCacheSize(maxSize: bigint | number): this;
1569
- addMaxRequestId(maxId: bigint | number): this;
1570
- addPath(moqtPath: string): this;
1571
- addAuthorizationToken(auth: AuthorizationToken): this;
1572
- addRaw(pair: KeyValuePair): this;
1573
- build(): KeyValuePair[];
1574
- static fromKeyValuePairs(kvps: KeyValuePair[]): SetupParameter[];
1575
- }
1576
-
1577
- /**
1578
- * Copyright 2025 The MOQtail Authors
1579
- *
1580
- * Licensed under the Apache License, Version 2.0 (the "License");
1581
- * you may not use this file except in compliance with the License.
1582
- * You may obtain a copy of the License at
1583
- *
1584
- * http://www.apache.org/licenses/LICENSE-2.0
1585
- *
1586
- * Unless required by applicable law or agreed to in writing, software
1587
- * distributed under the License is distributed on an "AS IS" BASIS,
1588
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1589
- * See the License for the specific language governing permissions and
1590
- * limitations under the License.
1591
- */
1592
-
1593
- declare class DeliveryTimeout implements Parameter {
1594
- readonly objectTimeout: bigint;
1595
- static readonly TYPE = VersionSpecificParameterType.DeliveryTimeout;
1596
- constructor(objectTimeout: bigint);
1597
- toKeyValuePair(): KeyValuePair;
1598
- static fromKeyValuePair(pair: KeyValuePair): DeliveryTimeout | undefined;
1599
- }
1600
-
1601
- /**
1602
- * Copyright 2025 The MOQtail Authors
1603
- *
1604
- * Licensed under the Apache License, Version 2.0 (the "License");
1605
- * you may not use this file except in compliance with the License.
1606
- * You may obtain a copy of the License at
1607
- *
1608
- * http://www.apache.org/licenses/LICENSE-2.0
1609
- *
1610
- * Unless required by applicable law or agreed to in writing, software
1611
- * distributed under the License is distributed on an "AS IS" BASIS,
1612
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1613
- * See the License for the specific language governing permissions and
1614
- * limitations under the License.
1615
- */
1616
-
1617
- declare class MaxCacheDuration implements Parameter {
1618
- readonly duration: bigint;
1619
- static readonly TYPE = VersionSpecificParameterType.MaxCacheDuration;
1620
- constructor(duration: bigint);
1621
- toKeyValuePair(): KeyValuePair;
1622
- static fromKeyValuePair(pair: KeyValuePair): MaxCacheDuration | undefined;
1623
- }
1624
-
1625
- /**
1626
- * Copyright 2025 The MOQtail Authors
1627
- *
1628
- * Licensed under the Apache License, Version 2.0 (the "License");
1629
- * you may not use this file except in compliance with the License.
1630
- * You may obtain a copy of the License at
1631
- *
1632
- * http://www.apache.org/licenses/LICENSE-2.0
1633
- *
1634
- * Unless required by applicable law or agreed to in writing, software
1635
- * distributed under the License is distributed on an "AS IS" BASIS,
1636
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1637
- * See the License for the specific language governing permissions and
1638
- * limitations under the License.
1639
- */
1640
-
1641
- type VersionSpecificParameter = MaxCacheDuration | DeliveryTimeout | AuthorizationToken;
1642
- declare namespace VersionSpecificParameter {
1643
- function fromKeyValuePair(pair: KeyValuePair): VersionSpecificParameter | undefined;
1644
- function toKeyValuePair(param: VersionSpecificParameter): KeyValuePair;
1645
- function isMaxCacheDuration(param: VersionSpecificParameter): param is MaxCacheDuration;
1646
- function isDeliveryTimeout(param: VersionSpecificParameter): param is DeliveryTimeout;
1647
- function isAuthorizationToken(param: VersionSpecificParameter): param is AuthorizationToken;
1648
- }
1649
- declare class VersionSpecificParameters {
1650
- private kvps;
1651
- addMaxCacheDuration(duration: bigint | number): this;
1652
- addDeliveryTimeout(timeout: bigint | number): this;
1653
- addAuthorizationToken(auth: AuthorizationToken): this;
1654
- addRaw(pair: KeyValuePair): this;
1655
- build(): KeyValuePair[];
1656
- static fromKeyValuePairs(kvps: KeyValuePair[]): VersionSpecificParameter[];
1657
- }
1658
-
1659
- export { UnsubscribeNamespace as $, FetchOk as A, GoAway as B, ClientSetup as C, DRAFT_14 as D, ServerSetup as E, FilterType as F, GroupOrder as G, SubscribeNamespace as H, SubscribeNamespaceError as I, SubscribeNamespaceOk as J, PublishDone as K, Publish as L, MaxRequestId$1 as M, PublishError as N, PublishOk as O, PublishNamespace as P, SubscribeError as Q, RequestsBlocked as R, Subscribe as S, TrackStatusCode as T, SubscribeOk as U, SubscribeUpdate as V, TrackStatus as W, TrackStatusError as X, TrackStatusOk as Y, PublishNamespaceDone as Z, Unsubscribe as _, PublishNamespaceError as a, FetchHeader as a0, SubgroupHeader as a1, RequestIdMap as a2, Header as a3, SetupParameter as a4, SetupParameters as a5, VersionSpecificParameter as a6, VersionSpecificParameters as a7, type Parameter as a8, CommonType as a9, commonTypeFromNumber as aa, SetupParameterType as ab, setupParameterTypeFromNumber as ac, VersionSpecificParameterType as ad, versionSpecificParameterTypeFromNumber as ae, TokenAliasType as af, tokenAliasTypeFromNumber as ag, type AuthTokenVariant as ah, AuthorizationToken as ai, MaxRequestId as aj, Path as ak, MaxAuthTokenCacheSize as al, DeliveryTimeout as am, MaxCacheDuration as an, PublishNamespaceOk as b, PublishNamespaceCancel as c, ControlMessageType as d, controlMessageTypeFromBigInt as e, PublishNamespaceErrorCode as f, filterTypeFromBigInt as g, FetchType as h, fetchTypeFromBigInt as i, groupOrderFromNumber as j, SubscribeErrorCode as k, FetchErrorCode as l, fetchErrorCodeFromBigInt as m, SubscribeNamespaceErrorCode as n, subscribeNamespaceErrorCodeFromBigInt as o, publishNamespaceErrorCodeFromBigInt as p, PublishDoneStatusCode as q, publishDoneStatusCodeFromBigInt as r, subscribeErrorCodeFromBigInt as s, trackStatusCodeFromBigInt as t, PublishErrorCode as u, publishErrorCodeFromBigInt as v, ControlMessage as w, Fetch as x, FetchCancel as y, FetchError as z };