moqtail 0.9.0 → 0.10.1

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/dist/model.d.cts CHANGED
@@ -1,5 +1,31 @@
1
- import { s as FullTrackName, K as KeyValuePair, r as FrozenByteBuffer, B as BaseByteBuffer } from './version_parameter-DXBOBueW.cjs';
2
- export { A as AuthTokenVariant, a as AuthorizationToken, b as ByteBuffer, C as ClientSetup, c as CommonType, d as ControlMessage, e as ControlMessageType, D as DRAFT_14, f as DatagramObject, g as DatagramStatus, h as DeliveryTimeout, F as Fetch, i as FetchCancel, j as FetchError, k as FetchErrorCode, l as FetchHeader, m as FetchHeaderType, n as FetchObject, o as FetchOk, p as FetchType, q as FilterType, G as GoAway, t as GroupOrder, H as Header, L as Location, M as MAX_FULL_TRACK_NAME_LENGTH, u as MAX_NAMESPACE_TUPLE_COUNT, v as MAX_REASON_PHRASE_LEN, w as MaxAuthTokenCacheSize, x as MaxCacheDuration, y as MaxRequestId, z as MaxRequestIdParameter, E as MoqtObject, O as ObjectDatagramStatusType, I as ObjectDatagramType, J as ObjectForwardingPreference, N as ObjectStatus, P as Parameter, Q as Path, R as Publish, S as PublishDone, T as PublishDoneStatusCode, U as PublishError, V as PublishErrorCode, W as PublishNamespace, X as PublishNamespaceCancel, Y as PublishNamespaceDone, Z as PublishNamespaceError, _ as PublishNamespaceErrorCode, $ as PublishNamespaceOk, a0 as PublishOk, a1 as ReasonPhrase, a2 as RequestIdMap, a3 as RequestsBlocked, a4 as ServerSetup, a5 as SetupParameter, a6 as SetupParameterType, a7 as SetupParameters, a8 as SubgroupHeader, a9 as SubgroupHeaderType, aa as SubgroupObject, ab as Subscribe, ac as SubscribeError, ad as SubscribeErrorCode, ae as SubscribeNamespace, af as SubscribeNamespaceError, ag as SubscribeNamespaceErrorCode, ah as SubscribeNamespaceOk, ai as SubscribeOk, aj as SubscribeUpdate, ak as TokenAliasType, al as TrackStatus, am as TrackStatusCode, an as TrackStatusError, ao as TrackStatusOk, ap as Tuple, aq as TupleField, ar as Unsubscribe, as as UnsubscribeNamespace, at as VersionSpecificParameter, au as VersionSpecificParameterType, av as VersionSpecificParameters, aw as commonTypeFromNumber, ax as controlMessageTypeFromBigInt, ay as fetchErrorCodeFromBigInt, az as fetchTypeFromBigInt, aA as filterTypeFromBigInt, aB as groupOrderFromNumber, aC as isBytes, aD as isVarInt, aE as publishDoneStatusCodeFromBigInt, aF as publishErrorCodeFromBigInt, aG as publishNamespaceErrorCodeFromBigInt, aH as setupParameterTypeFromNumber, aI as subscribeErrorCodeFromBigInt, aJ as subscribeNamespaceErrorCodeFromBigInt, aK as tokenAliasTypeFromNumber, aL as trackStatusCodeFromBigInt, aM as versionSpecificParameterTypeFromNumber } from './version_parameter-DXBOBueW.cjs';
1
+ import { u as FullTrackName, K as KeyValuePair, t as FrozenByteBuffer, B as BaseByteBuffer, L as LOCHeaderExtensionId, av as TrackExtensionType, b as ByteBuffer } from './setup_parameter-BOeGq6Mv.cjs';
2
+ export { A as AuthTokenVariant, a as AuthorizationToken, C as ClientSetup, c as ControlMessage, d as ControlMessageType, D as Datagram, e as DefaultPublisherGroupOrderExtension, f as DefaultPublisherPriorityExtension, g as DeliveryTimeout, h as DeliveryTimeoutExtension, i as DynamicGroupsExtension, E as EndOfRangeKind, j as Expires, F as Fetch, k as FetchCancel, l as FetchHeader, m as FetchHeaderType, n as FetchObject, o as FetchObjectContext, p as FetchOk, q as FetchType, r as FilterType, s as Forward, G as GoAway, v as GroupOrder, w as GroupOrderParam, H as Header, I as ImmutableExtensionsExtension, x as LargestObject, y as Location, M as MAX_FULL_TRACK_NAME_LENGTH, z as MAX_NAMESPACE_TUPLE_COUNT, J as MAX_REASON_PHRASE_LEN, N as MaxAuthTokenCacheSize, O as MaxCacheDurationExtension, P as MaxRequestId, Q as MaxRequestIdParameter, R as MessageParameter, S as MessageParameterType, T as MessageParameters, U as MoqtObject, V as Namespace, W as NamespaceDone, X as NamespaceSubscribeOptions, Y as NewGroupRequest, Z as ObjectDatagramType, _ as ObjectForwardingPreference, $ as ObjectStatus, a0 as Parameter, a1 as Path, a2 as Publish, a3 as PublishDone, a4 as PublishDoneStatusCode, a5 as PublishNamespace, a6 as PublishNamespaceCancel, a7 as PublishNamespaceDone, a8 as PublishOk, a9 as ReasonPhrase, aa as RequestError, ab as RequestErrorCode, ac as RequestIdMap, ad as RequestOk, ae as RequestUpdate, af as RequestsBlocked, ag as SUPPORTED_VERSIONS, ah as ServerSetup, ai as SetupParameter, aj as SetupParameterType, ak as SetupParameters, al as SubgroupHeader, am as SubgroupHeaderType, an as SubgroupObject, ao as Subscribe, ap as SubscribeNamespace, aq as SubscribeOk, ar as SubscriberPriority, as as SubscriptionFilter, at as TokenAliasType, au as TrackExtension, aw as TrackStatus, ax as TrackStatusCode, ay as Tuple, az as TupleField, aA as UnknownTrackExtension, aB as Unsubscribe, aC as UnsubscribeNamespace, aD as applyMessageParameterUpdate, aE as controlMessageTypeFromBigInt, aF as fetchTypeFromBigInt, aG as filterTypeFromBigInt, aH as groupOrderFromNumber, aI as isBytes, aJ as isVarInt, aK as locHeaderExtensionIdFromNumber, aL as messageParameterTypeFromNumber, aM as publishDoneStatusCodeFromBigInt, aN as requestErrorCodeFromBigInt, aO as setupParameterTypeFromNumber, aP as tokenAliasTypeFromNumber, aQ as trackStatusCodeFromBigInt } from './setup_parameter-BOeGq6Mv.cjs';
3
+
4
+ /**
5
+ * Copyright 2025 The MOQtail Authors
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+ declare class Switch {
21
+ requestId: bigint;
22
+ fullTrackName: FullTrackName;
23
+ subscriptionRequestId: bigint;
24
+ parameters: KeyValuePair[];
25
+ constructor(requestId: bigint, fullTrackName: FullTrackName, subscriptionRequestId: bigint, parameters: KeyValuePair[]);
26
+ serialize(): FrozenByteBuffer;
27
+ static parsePayload(buf: BaseByteBuffer): Switch;
28
+ }
3
29
 
4
30
  /**
5
31
  * Copyright 2026 The MOQtail Authors
@@ -51,32 +77,6 @@ declare class CMSFCatalog {
51
77
  private extractTrackName;
52
78
  }
53
79
 
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
- declare class Switch {
71
- requestId: bigint;
72
- fullTrackName: FullTrackName;
73
- subscriptionRequestId: bigint;
74
- parameters: KeyValuePair[];
75
- constructor(requestId: bigint, fullTrackName: FullTrackName, subscriptionRequestId: bigint, parameters: KeyValuePair[]);
76
- serialize(): FrozenByteBuffer;
77
- static parsePayload(buf: BaseByteBuffer): Switch;
78
- }
79
-
80
80
  /**
81
81
  * Copyright 2025 The MOQtail Authors
82
82
  *
@@ -253,29 +253,6 @@ declare namespace TerminationCode {
253
253
  function tryFrom(code: number): TerminationCode;
254
254
  }
255
255
 
256
- /**
257
- * Copyright 2025 The MOQtail Authors
258
- *
259
- * Licensed under the Apache License, Version 2.0 (the "License");
260
- * you may not use this file except in compliance with the License.
261
- * You may obtain a copy of the License at
262
- *
263
- * http://www.apache.org/licenses/LICENSE-2.0
264
- *
265
- * Unless required by applicable law or agreed to in writing, software
266
- * distributed under the License is distributed on an "AS IS" BASIS,
267
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
268
- * See the License for the specific language governing permissions and
269
- * limitations under the License.
270
- */
271
- declare enum LOCHeaderExtensionId {
272
- CaptureTimestamp = 2,
273
- VideoFrameMarking = 4,
274
- AudioLevel = 6,
275
- VideoConfig = 13
276
- }
277
- declare function locHeaderExtensionIdFromNumber(value: number): LOCHeaderExtensionId;
278
-
279
256
  /**
280
257
  * Copyright 2025 The MOQtail Authors
281
258
  *
@@ -408,4 +385,58 @@ declare class ExtensionHeaders {
408
385
  static fromKeyValuePairs(kvps: KeyValuePair[]): ExtensionHeader[];
409
386
  }
410
387
 
411
- export { AudioLevel, BaseByteBuffer, type CMSF, CMSFCatalog, type CMSFTrack, CaptureTimestamp, CastingError, ExtensionHeader, ExtensionHeaders, FrozenByteBuffer, FullTrackName, InternalError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCHeaderExtensionId, LengthExceedsMaxError, MOQtailError, NotEnoughBytesError, ProtocolViolationError, RequestIdError, Switch, TerminationCode, TerminationError, TimeoutError, TrackNameError, VarIntOverflowError, VideoConfig, VideoFrameMarking, locHeaderExtensionIdFromNumber };
388
+ /**
389
+ * Copyright 2026 The MOQtail Authors
390
+ *
391
+ * Licensed under the Apache License, Version 2.0 (the "License");
392
+ * you may not use this file except in compliance with the License.
393
+ * You may obtain a copy of the License at
394
+ *
395
+ * http://www.apache.org/licenses/LICENSE-2.0
396
+ *
397
+ * Unless required by applicable law or agreed to in writing, software
398
+ * distributed under the License is distributed on an "AS IS" BASIS,
399
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
400
+ * See the License for the specific language governing permissions and
401
+ * limitations under the License.
402
+ */
403
+
404
+ declare class ImmutableExtensionsObjectExtension {
405
+ readonly extensions: KeyValuePair[];
406
+ static readonly TYPE = TrackExtensionType.ImmutableExtensions;
407
+ constructor(extensions: KeyValuePair[]);
408
+ toKeyValuePair(): KeyValuePair;
409
+ static fromKeyValuePair(pair: KeyValuePair): ImmutableExtensionsObjectExtension | undefined;
410
+ }
411
+ declare class PriorGroupIdGapExtension {
412
+ readonly gap: bigint;
413
+ static readonly TYPE = TrackExtensionType.PriorGroupIdGap;
414
+ constructor(gap: bigint);
415
+ toKeyValuePair(): KeyValuePair;
416
+ static fromKeyValuePair(pair: KeyValuePair): PriorGroupIdGapExtension | undefined;
417
+ }
418
+ declare class PriorObjectIdGapExtension {
419
+ readonly gap: bigint;
420
+ static readonly TYPE = TrackExtensionType.PriorObjectIdGap;
421
+ constructor(gap: bigint);
422
+ toKeyValuePair(): KeyValuePair;
423
+ static fromKeyValuePair(pair: KeyValuePair): PriorObjectIdGapExtension | undefined;
424
+ }
425
+ declare class UnknownObjectExtension {
426
+ readonly kvp: KeyValuePair;
427
+ constructor(kvp: KeyValuePair);
428
+ toKeyValuePair(): KeyValuePair;
429
+ }
430
+ type ObjectExtension = ImmutableExtensionsObjectExtension | PriorGroupIdGapExtension | PriorObjectIdGapExtension | UnknownObjectExtension;
431
+ declare namespace ObjectExtension {
432
+ function fromKeyValuePair(pair: KeyValuePair): ObjectExtension;
433
+ function toKeyValuePair(ext: ObjectExtension): KeyValuePair;
434
+ function deserializeAll(buf: BaseByteBuffer): ObjectExtension[];
435
+ function serializeInto(exts: ObjectExtension[], payload: ByteBuffer): void;
436
+ function isImmutableExtensions(ext: ObjectExtension): ext is ImmutableExtensionsObjectExtension;
437
+ function isPriorGroupIdGap(ext: ObjectExtension): ext is PriorGroupIdGapExtension;
438
+ function isPriorObjectIdGap(ext: ObjectExtension): ext is PriorObjectIdGapExtension;
439
+ function isUnknown(ext: ObjectExtension): ext is UnknownObjectExtension;
440
+ }
441
+
442
+ export { AudioLevel, BaseByteBuffer, ByteBuffer, type CMSF, CMSFCatalog, type CMSFTrack, CaptureTimestamp, CastingError, ExtensionHeader, ExtensionHeaders, FrozenByteBuffer, FullTrackName, ImmutableExtensionsObjectExtension, InternalError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCHeaderExtensionId, LengthExceedsMaxError, MOQtailError, NotEnoughBytesError, ObjectExtension, PriorGroupIdGapExtension, PriorObjectIdGapExtension, ProtocolViolationError, RequestIdError, Switch, TerminationCode, TerminationError, TimeoutError, TrackExtensionType, TrackNameError, UnknownObjectExtension, VarIntOverflowError, VideoConfig, VideoFrameMarking };
package/dist/model.d.ts CHANGED
@@ -1,5 +1,31 @@
1
- import { s as FullTrackName, K as KeyValuePair, r as FrozenByteBuffer, B as BaseByteBuffer } from './version_parameter-DXBOBueW.js';
2
- export { A as AuthTokenVariant, a as AuthorizationToken, b as ByteBuffer, C as ClientSetup, c as CommonType, d as ControlMessage, e as ControlMessageType, D as DRAFT_14, f as DatagramObject, g as DatagramStatus, h as DeliveryTimeout, F as Fetch, i as FetchCancel, j as FetchError, k as FetchErrorCode, l as FetchHeader, m as FetchHeaderType, n as FetchObject, o as FetchOk, p as FetchType, q as FilterType, G as GoAway, t as GroupOrder, H as Header, L as Location, M as MAX_FULL_TRACK_NAME_LENGTH, u as MAX_NAMESPACE_TUPLE_COUNT, v as MAX_REASON_PHRASE_LEN, w as MaxAuthTokenCacheSize, x as MaxCacheDuration, y as MaxRequestId, z as MaxRequestIdParameter, E as MoqtObject, O as ObjectDatagramStatusType, I as ObjectDatagramType, J as ObjectForwardingPreference, N as ObjectStatus, P as Parameter, Q as Path, R as Publish, S as PublishDone, T as PublishDoneStatusCode, U as PublishError, V as PublishErrorCode, W as PublishNamespace, X as PublishNamespaceCancel, Y as PublishNamespaceDone, Z as PublishNamespaceError, _ as PublishNamespaceErrorCode, $ as PublishNamespaceOk, a0 as PublishOk, a1 as ReasonPhrase, a2 as RequestIdMap, a3 as RequestsBlocked, a4 as ServerSetup, a5 as SetupParameter, a6 as SetupParameterType, a7 as SetupParameters, a8 as SubgroupHeader, a9 as SubgroupHeaderType, aa as SubgroupObject, ab as Subscribe, ac as SubscribeError, ad as SubscribeErrorCode, ae as SubscribeNamespace, af as SubscribeNamespaceError, ag as SubscribeNamespaceErrorCode, ah as SubscribeNamespaceOk, ai as SubscribeOk, aj as SubscribeUpdate, ak as TokenAliasType, al as TrackStatus, am as TrackStatusCode, an as TrackStatusError, ao as TrackStatusOk, ap as Tuple, aq as TupleField, ar as Unsubscribe, as as UnsubscribeNamespace, at as VersionSpecificParameter, au as VersionSpecificParameterType, av as VersionSpecificParameters, aw as commonTypeFromNumber, ax as controlMessageTypeFromBigInt, ay as fetchErrorCodeFromBigInt, az as fetchTypeFromBigInt, aA as filterTypeFromBigInt, aB as groupOrderFromNumber, aC as isBytes, aD as isVarInt, aE as publishDoneStatusCodeFromBigInt, aF as publishErrorCodeFromBigInt, aG as publishNamespaceErrorCodeFromBigInt, aH as setupParameterTypeFromNumber, aI as subscribeErrorCodeFromBigInt, aJ as subscribeNamespaceErrorCodeFromBigInt, aK as tokenAliasTypeFromNumber, aL as trackStatusCodeFromBigInt, aM as versionSpecificParameterTypeFromNumber } from './version_parameter-DXBOBueW.js';
1
+ import { u as FullTrackName, K as KeyValuePair, t as FrozenByteBuffer, B as BaseByteBuffer, L as LOCHeaderExtensionId, av as TrackExtensionType, b as ByteBuffer } from './setup_parameter-BOeGq6Mv.js';
2
+ export { A as AuthTokenVariant, a as AuthorizationToken, C as ClientSetup, c as ControlMessage, d as ControlMessageType, D as Datagram, e as DefaultPublisherGroupOrderExtension, f as DefaultPublisherPriorityExtension, g as DeliveryTimeout, h as DeliveryTimeoutExtension, i as DynamicGroupsExtension, E as EndOfRangeKind, j as Expires, F as Fetch, k as FetchCancel, l as FetchHeader, m as FetchHeaderType, n as FetchObject, o as FetchObjectContext, p as FetchOk, q as FetchType, r as FilterType, s as Forward, G as GoAway, v as GroupOrder, w as GroupOrderParam, H as Header, I as ImmutableExtensionsExtension, x as LargestObject, y as Location, M as MAX_FULL_TRACK_NAME_LENGTH, z as MAX_NAMESPACE_TUPLE_COUNT, J as MAX_REASON_PHRASE_LEN, N as MaxAuthTokenCacheSize, O as MaxCacheDurationExtension, P as MaxRequestId, Q as MaxRequestIdParameter, R as MessageParameter, S as MessageParameterType, T as MessageParameters, U as MoqtObject, V as Namespace, W as NamespaceDone, X as NamespaceSubscribeOptions, Y as NewGroupRequest, Z as ObjectDatagramType, _ as ObjectForwardingPreference, $ as ObjectStatus, a0 as Parameter, a1 as Path, a2 as Publish, a3 as PublishDone, a4 as PublishDoneStatusCode, a5 as PublishNamespace, a6 as PublishNamespaceCancel, a7 as PublishNamespaceDone, a8 as PublishOk, a9 as ReasonPhrase, aa as RequestError, ab as RequestErrorCode, ac as RequestIdMap, ad as RequestOk, ae as RequestUpdate, af as RequestsBlocked, ag as SUPPORTED_VERSIONS, ah as ServerSetup, ai as SetupParameter, aj as SetupParameterType, ak as SetupParameters, al as SubgroupHeader, am as SubgroupHeaderType, an as SubgroupObject, ao as Subscribe, ap as SubscribeNamespace, aq as SubscribeOk, ar as SubscriberPriority, as as SubscriptionFilter, at as TokenAliasType, au as TrackExtension, aw as TrackStatus, ax as TrackStatusCode, ay as Tuple, az as TupleField, aA as UnknownTrackExtension, aB as Unsubscribe, aC as UnsubscribeNamespace, aD as applyMessageParameterUpdate, aE as controlMessageTypeFromBigInt, aF as fetchTypeFromBigInt, aG as filterTypeFromBigInt, aH as groupOrderFromNumber, aI as isBytes, aJ as isVarInt, aK as locHeaderExtensionIdFromNumber, aL as messageParameterTypeFromNumber, aM as publishDoneStatusCodeFromBigInt, aN as requestErrorCodeFromBigInt, aO as setupParameterTypeFromNumber, aP as tokenAliasTypeFromNumber, aQ as trackStatusCodeFromBigInt } from './setup_parameter-BOeGq6Mv.js';
3
+
4
+ /**
5
+ * Copyright 2025 The MOQtail Authors
6
+ *
7
+ * Licensed under the Apache License, Version 2.0 (the "License");
8
+ * you may not use this file except in compliance with the License.
9
+ * You may obtain a copy of the License at
10
+ *
11
+ * http://www.apache.org/licenses/LICENSE-2.0
12
+ *
13
+ * Unless required by applicable law or agreed to in writing, software
14
+ * distributed under the License is distributed on an "AS IS" BASIS,
15
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
+ * See the License for the specific language governing permissions and
17
+ * limitations under the License.
18
+ */
19
+
20
+ declare class Switch {
21
+ requestId: bigint;
22
+ fullTrackName: FullTrackName;
23
+ subscriptionRequestId: bigint;
24
+ parameters: KeyValuePair[];
25
+ constructor(requestId: bigint, fullTrackName: FullTrackName, subscriptionRequestId: bigint, parameters: KeyValuePair[]);
26
+ serialize(): FrozenByteBuffer;
27
+ static parsePayload(buf: BaseByteBuffer): Switch;
28
+ }
3
29
 
4
30
  /**
5
31
  * Copyright 2026 The MOQtail Authors
@@ -51,32 +77,6 @@ declare class CMSFCatalog {
51
77
  private extractTrackName;
52
78
  }
53
79
 
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
- declare class Switch {
71
- requestId: bigint;
72
- fullTrackName: FullTrackName;
73
- subscriptionRequestId: bigint;
74
- parameters: KeyValuePair[];
75
- constructor(requestId: bigint, fullTrackName: FullTrackName, subscriptionRequestId: bigint, parameters: KeyValuePair[]);
76
- serialize(): FrozenByteBuffer;
77
- static parsePayload(buf: BaseByteBuffer): Switch;
78
- }
79
-
80
80
  /**
81
81
  * Copyright 2025 The MOQtail Authors
82
82
  *
@@ -253,29 +253,6 @@ declare namespace TerminationCode {
253
253
  function tryFrom(code: number): TerminationCode;
254
254
  }
255
255
 
256
- /**
257
- * Copyright 2025 The MOQtail Authors
258
- *
259
- * Licensed under the Apache License, Version 2.0 (the "License");
260
- * you may not use this file except in compliance with the License.
261
- * You may obtain a copy of the License at
262
- *
263
- * http://www.apache.org/licenses/LICENSE-2.0
264
- *
265
- * Unless required by applicable law or agreed to in writing, software
266
- * distributed under the License is distributed on an "AS IS" BASIS,
267
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
268
- * See the License for the specific language governing permissions and
269
- * limitations under the License.
270
- */
271
- declare enum LOCHeaderExtensionId {
272
- CaptureTimestamp = 2,
273
- VideoFrameMarking = 4,
274
- AudioLevel = 6,
275
- VideoConfig = 13
276
- }
277
- declare function locHeaderExtensionIdFromNumber(value: number): LOCHeaderExtensionId;
278
-
279
256
  /**
280
257
  * Copyright 2025 The MOQtail Authors
281
258
  *
@@ -408,4 +385,58 @@ declare class ExtensionHeaders {
408
385
  static fromKeyValuePairs(kvps: KeyValuePair[]): ExtensionHeader[];
409
386
  }
410
387
 
411
- export { AudioLevel, BaseByteBuffer, type CMSF, CMSFCatalog, type CMSFTrack, CaptureTimestamp, CastingError, ExtensionHeader, ExtensionHeaders, FrozenByteBuffer, FullTrackName, InternalError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCHeaderExtensionId, LengthExceedsMaxError, MOQtailError, NotEnoughBytesError, ProtocolViolationError, RequestIdError, Switch, TerminationCode, TerminationError, TimeoutError, TrackNameError, VarIntOverflowError, VideoConfig, VideoFrameMarking, locHeaderExtensionIdFromNumber };
388
+ /**
389
+ * Copyright 2026 The MOQtail Authors
390
+ *
391
+ * Licensed under the Apache License, Version 2.0 (the "License");
392
+ * you may not use this file except in compliance with the License.
393
+ * You may obtain a copy of the License at
394
+ *
395
+ * http://www.apache.org/licenses/LICENSE-2.0
396
+ *
397
+ * Unless required by applicable law or agreed to in writing, software
398
+ * distributed under the License is distributed on an "AS IS" BASIS,
399
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
400
+ * See the License for the specific language governing permissions and
401
+ * limitations under the License.
402
+ */
403
+
404
+ declare class ImmutableExtensionsObjectExtension {
405
+ readonly extensions: KeyValuePair[];
406
+ static readonly TYPE = TrackExtensionType.ImmutableExtensions;
407
+ constructor(extensions: KeyValuePair[]);
408
+ toKeyValuePair(): KeyValuePair;
409
+ static fromKeyValuePair(pair: KeyValuePair): ImmutableExtensionsObjectExtension | undefined;
410
+ }
411
+ declare class PriorGroupIdGapExtension {
412
+ readonly gap: bigint;
413
+ static readonly TYPE = TrackExtensionType.PriorGroupIdGap;
414
+ constructor(gap: bigint);
415
+ toKeyValuePair(): KeyValuePair;
416
+ static fromKeyValuePair(pair: KeyValuePair): PriorGroupIdGapExtension | undefined;
417
+ }
418
+ declare class PriorObjectIdGapExtension {
419
+ readonly gap: bigint;
420
+ static readonly TYPE = TrackExtensionType.PriorObjectIdGap;
421
+ constructor(gap: bigint);
422
+ toKeyValuePair(): KeyValuePair;
423
+ static fromKeyValuePair(pair: KeyValuePair): PriorObjectIdGapExtension | undefined;
424
+ }
425
+ declare class UnknownObjectExtension {
426
+ readonly kvp: KeyValuePair;
427
+ constructor(kvp: KeyValuePair);
428
+ toKeyValuePair(): KeyValuePair;
429
+ }
430
+ type ObjectExtension = ImmutableExtensionsObjectExtension | PriorGroupIdGapExtension | PriorObjectIdGapExtension | UnknownObjectExtension;
431
+ declare namespace ObjectExtension {
432
+ function fromKeyValuePair(pair: KeyValuePair): ObjectExtension;
433
+ function toKeyValuePair(ext: ObjectExtension): KeyValuePair;
434
+ function deserializeAll(buf: BaseByteBuffer): ObjectExtension[];
435
+ function serializeInto(exts: ObjectExtension[], payload: ByteBuffer): void;
436
+ function isImmutableExtensions(ext: ObjectExtension): ext is ImmutableExtensionsObjectExtension;
437
+ function isPriorGroupIdGap(ext: ObjectExtension): ext is PriorGroupIdGapExtension;
438
+ function isPriorObjectIdGap(ext: ObjectExtension): ext is PriorObjectIdGapExtension;
439
+ function isUnknown(ext: ObjectExtension): ext is UnknownObjectExtension;
440
+ }
441
+
442
+ export { AudioLevel, BaseByteBuffer, ByteBuffer, type CMSF, CMSFCatalog, type CMSFTrack, CaptureTimestamp, CastingError, ExtensionHeader, ExtensionHeaders, FrozenByteBuffer, FullTrackName, ImmutableExtensionsObjectExtension, InternalError, InvalidTypeError, InvalidUTF8Error, KeyValueFormattingError, KeyValuePair, LOCHeaderExtensionId, LengthExceedsMaxError, MOQtailError, NotEnoughBytesError, ObjectExtension, PriorGroupIdGapExtension, PriorObjectIdGapExtension, ProtocolViolationError, RequestIdError, Switch, TerminationCode, TerminationError, TimeoutError, TrackExtensionType, TrackNameError, UnknownObjectExtension, VarIntOverflowError, VideoConfig, VideoFrameMarking };