moqtail 0.7.0 → 0.8.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.
@@ -531,27 +531,37 @@ var ReasonPhrase = class _ReasonPhrase {
531
531
 
532
532
  // src/model/data/constant.ts
533
533
  exports.ObjectDatagramStatusType = /* @__PURE__ */ ((ObjectDatagramStatusType2) => {
534
- ObjectDatagramStatusType2[ObjectDatagramStatusType2["WithoutExtensions"] = 2] = "WithoutExtensions";
535
- ObjectDatagramStatusType2[ObjectDatagramStatusType2["WithExtensions"] = 3] = "WithExtensions";
534
+ ObjectDatagramStatusType2[ObjectDatagramStatusType2["WithoutExtensions"] = 32] = "WithoutExtensions";
535
+ ObjectDatagramStatusType2[ObjectDatagramStatusType2["WithExtensions"] = 33] = "WithExtensions";
536
536
  return ObjectDatagramStatusType2;
537
537
  })(exports.ObjectDatagramStatusType || {});
538
538
  ((ObjectDatagramStatusType2) => {
539
539
  function tryFrom(value) {
540
540
  const v = typeof value === "bigint" ? Number(value) : value;
541
541
  switch (v) {
542
- case 2:
543
- return 2 /* WithoutExtensions */;
544
- case 3:
545
- return 3 /* WithExtensions */;
542
+ case 32:
543
+ return 32 /* WithoutExtensions */;
544
+ case 33:
545
+ return 33 /* WithExtensions */;
546
546
  default:
547
547
  throw new Error(`Invalid ObjectDatagramStatusType: ${value}`);
548
548
  }
549
549
  }
550
550
  ObjectDatagramStatusType2.tryFrom = tryFrom;
551
+ function hasExtensions(t) {
552
+ return t === 33 /* WithExtensions */;
553
+ }
554
+ ObjectDatagramStatusType2.hasExtensions = hasExtensions;
551
555
  })(exports.ObjectDatagramStatusType || (exports.ObjectDatagramStatusType = {}));
552
556
  exports.ObjectDatagramType = /* @__PURE__ */ ((ObjectDatagramType2) => {
553
- ObjectDatagramType2[ObjectDatagramType2["WithoutExtensions"] = 0] = "WithoutExtensions";
554
- ObjectDatagramType2[ObjectDatagramType2["WithExtensions"] = 1] = "WithExtensions";
557
+ ObjectDatagramType2[ObjectDatagramType2["Type0x00"] = 0] = "Type0x00";
558
+ ObjectDatagramType2[ObjectDatagramType2["Type0x01"] = 1] = "Type0x01";
559
+ ObjectDatagramType2[ObjectDatagramType2["Type0x02"] = 2] = "Type0x02";
560
+ ObjectDatagramType2[ObjectDatagramType2["Type0x03"] = 3] = "Type0x03";
561
+ ObjectDatagramType2[ObjectDatagramType2["Type0x04"] = 4] = "Type0x04";
562
+ ObjectDatagramType2[ObjectDatagramType2["Type0x05"] = 5] = "Type0x05";
563
+ ObjectDatagramType2[ObjectDatagramType2["Type0x06"] = 6] = "Type0x06";
564
+ ObjectDatagramType2[ObjectDatagramType2["Type0x07"] = 7] = "Type0x07";
555
565
  return ObjectDatagramType2;
556
566
  })(exports.ObjectDatagramType || {});
557
567
  ((ObjectDatagramType2) => {
@@ -559,14 +569,46 @@ exports.ObjectDatagramType = /* @__PURE__ */ ((ObjectDatagramType2) => {
559
569
  const v = typeof value === "bigint" ? Number(value) : value;
560
570
  switch (v) {
561
571
  case 0:
562
- return 0 /* WithoutExtensions */;
572
+ return 0 /* Type0x00 */;
563
573
  case 1:
564
- return 1 /* WithExtensions */;
574
+ return 1 /* Type0x01 */;
575
+ case 2:
576
+ return 2 /* Type0x02 */;
577
+ case 3:
578
+ return 3 /* Type0x03 */;
579
+ case 4:
580
+ return 4 /* Type0x04 */;
581
+ case 5:
582
+ return 5 /* Type0x05 */;
583
+ case 6:
584
+ return 6 /* Type0x06 */;
585
+ case 7:
586
+ return 7 /* Type0x07 */;
565
587
  default:
566
588
  throw new Error(`Invalid ObjectDatagramType: ${value}`);
567
589
  }
568
590
  }
569
591
  ObjectDatagramType2.tryFrom = tryFrom;
592
+ function hasExtensions(t) {
593
+ return (t & 1) !== 0;
594
+ }
595
+ ObjectDatagramType2.hasExtensions = hasExtensions;
596
+ function isEndOfGroup(t) {
597
+ return (t & 2) !== 0;
598
+ }
599
+ ObjectDatagramType2.isEndOfGroup = isEndOfGroup;
600
+ function hasObjectId(t) {
601
+ return (t & 4) === 0;
602
+ }
603
+ ObjectDatagramType2.hasObjectId = hasObjectId;
604
+ function fromProperties(hasExtensions2, endOfGroup, objectIdIsZero) {
605
+ let type = 0;
606
+ if (hasExtensions2) type |= 1;
607
+ if (endOfGroup) type |= 2;
608
+ if (objectIdIsZero) type |= 4;
609
+ return type;
610
+ }
611
+ ObjectDatagramType2.fromProperties = fromProperties;
570
612
  })(exports.ObjectDatagramType || (exports.ObjectDatagramType = {}));
571
613
  exports.FetchHeaderType = /* @__PURE__ */ ((FetchHeaderType2) => {
572
614
  FetchHeaderType2[FetchHeaderType2["Type0x05"] = 5] = "Type0x05";
@@ -712,11 +754,12 @@ exports.ObjectStatus = /* @__PURE__ */ ((ObjectStatus2) => {
712
754
 
713
755
  // src/model/data/datagram_object.ts
714
756
  var DatagramObject = class _DatagramObject {
715
- constructor(type, trackAlias, location, publisherPriority, extensionHeaders, payload) {
757
+ constructor(type, trackAlias, location, publisherPriority, extensionHeaders, payload, endOfGroup) {
716
758
  this.type = type;
717
759
  this.publisherPriority = publisherPriority;
718
760
  this.extensionHeaders = extensionHeaders;
719
761
  this.payload = payload;
762
+ this.endOfGroup = endOfGroup;
720
763
  this.trackAlias = BigInt(trackAlias);
721
764
  this.location = location;
722
765
  }
@@ -728,34 +771,48 @@ var DatagramObject = class _DatagramObject {
728
771
  get objectId() {
729
772
  return this.location.object;
730
773
  }
731
- static newWithExtensions(trackAlias, groupId, objectId, publisherPriority, extensionHeaders, payload) {
774
+ /**
775
+ * Create a new DatagramObject with all properties specified.
776
+ * The type is automatically determined based on extensions, endOfGroup, and objectId.
777
+ */
778
+ static new(trackAlias, groupId, objectId, publisherPriority, extensionHeaders, payload, endOfGroup = false) {
779
+ const hasExtensions = extensionHeaders !== null && extensionHeaders.length > 0;
780
+ const objectIdIsZero = objectId === 0n;
781
+ const type = exports.ObjectDatagramType.fromProperties(hasExtensions, endOfGroup, objectIdIsZero);
732
782
  return new _DatagramObject(
733
- 1 /* WithExtensions */,
783
+ type,
734
784
  trackAlias,
735
785
  new Location(groupId, objectId),
736
786
  publisherPriority,
737
- extensionHeaders,
738
- payload
787
+ hasExtensions ? extensionHeaders : null,
788
+ payload,
789
+ endOfGroup
739
790
  );
740
791
  }
741
- static newWithoutExtensions(trackAlias, groupId, objectId, publisherPriority, payload) {
742
- return new _DatagramObject(
743
- 0 /* WithoutExtensions */,
744
- trackAlias,
745
- new Location(groupId, objectId),
746
- publisherPriority,
747
- null,
748
- payload
749
- );
792
+ /**
793
+ * Create a DatagramObject with extensions.
794
+ * @deprecated Use DatagramObject.new() instead for Draft-14 compliance.
795
+ */
796
+ static newWithExtensions(trackAlias, groupId, objectId, publisherPriority, extensionHeaders, payload, endOfGroup = false) {
797
+ return _DatagramObject.new(trackAlias, groupId, objectId, publisherPriority, extensionHeaders, payload, endOfGroup);
798
+ }
799
+ /**
800
+ * Create a DatagramObject without extensions.
801
+ * @deprecated Use DatagramObject.new() instead for Draft-14 compliance.
802
+ */
803
+ static newWithoutExtensions(trackAlias, groupId, objectId, publisherPriority, payload, endOfGroup = false) {
804
+ return _DatagramObject.new(trackAlias, groupId, objectId, publisherPriority, null, payload, endOfGroup);
750
805
  }
751
806
  serialize() {
752
807
  const buf = new ByteBuffer();
753
808
  buf.putVI(this.type);
754
809
  buf.putVI(this.trackAlias);
755
810
  buf.putVI(this.location.group);
756
- buf.putVI(this.location.object);
811
+ if (exports.ObjectDatagramType.hasObjectId(this.type)) {
812
+ buf.putVI(this.location.object);
813
+ }
757
814
  buf.putU8(this.publisherPriority);
758
- if (this.type === 1 /* WithExtensions */) {
815
+ if (exports.ObjectDatagramType.hasExtensions(this.type)) {
759
816
  const extBuf = new ByteBuffer();
760
817
  if (this.extensionHeaders) {
761
818
  for (const header of this.extensionHeaders) {
@@ -773,28 +830,32 @@ var DatagramObject = class _DatagramObject {
773
830
  const msgType = exports.ObjectDatagramType.tryFrom(msgTypeRaw);
774
831
  const trackAlias = buf.getVI();
775
832
  const groupId = buf.getVI();
776
- const objectId = buf.getVI();
833
+ let objectId;
834
+ if (exports.ObjectDatagramType.hasObjectId(msgType)) {
835
+ objectId = buf.getVI();
836
+ } else {
837
+ objectId = 0n;
838
+ }
777
839
  const publisherPriority = buf.getU8();
778
840
  let extensionHeaders = null;
779
- switch (msgType) {
780
- case 1 /* WithExtensions */: {
781
- const extBytes = buf.getLengthPrefixedBytes();
782
- const headerBytes = new FrozenByteBuffer5(extBytes);
783
- extensionHeaders = [];
784
- while (headerBytes.remaining > 0) {
785
- extensionHeaders.push(headerBytes.getKeyValuePair());
786
- }
787
- break;
841
+ if (exports.ObjectDatagramType.hasExtensions(msgType)) {
842
+ const extBytes = buf.getLengthPrefixedBytes();
843
+ const headerBytes = new FrozenByteBuffer5(extBytes);
844
+ extensionHeaders = [];
845
+ while (headerBytes.remaining > 0) {
846
+ extensionHeaders.push(headerBytes.getKeyValuePair());
788
847
  }
789
848
  }
790
849
  const payload = buf.getBytes(buf.remaining);
850
+ const endOfGroup = exports.ObjectDatagramType.isEndOfGroup(msgType);
791
851
  return new _DatagramObject(
792
852
  msgType,
793
853
  trackAlias,
794
854
  new Location(groupId, objectId),
795
855
  publisherPriority,
796
856
  extensionHeaders,
797
- payload
857
+ payload,
858
+ endOfGroup
798
859
  );
799
860
  }
800
861
  };
@@ -817,25 +878,35 @@ var DatagramStatus = class _DatagramStatus {
817
878
  get objectId() {
818
879
  return this.location.object;
819
880
  }
820
- static withExtensions(trackAlias, location, publisherPriority, extensionHeaders, objectStatus) {
881
+ /**
882
+ * Create a new DatagramStatus with all properties specified.
883
+ * The type is automatically determined based on whether extensions are present.
884
+ */
885
+ static new(trackAlias, location, publisherPriority, extensionHeaders, objectStatus) {
886
+ const hasExtensions = extensionHeaders !== null && extensionHeaders.length > 0;
887
+ const type = hasExtensions ? 33 /* WithExtensions */ : 32 /* WithoutExtensions */;
821
888
  return new _DatagramStatus(
822
- 3 /* WithExtensions */,
889
+ type,
823
890
  trackAlias,
824
891
  location,
825
892
  publisherPriority,
826
- extensionHeaders,
893
+ hasExtensions ? extensionHeaders : null,
827
894
  objectStatus
828
895
  );
829
896
  }
897
+ /**
898
+ * Create a DatagramStatus with extensions.
899
+ * @deprecated Use DatagramStatus.new() instead for Draft-14 compliance.
900
+ */
901
+ static withExtensions(trackAlias, location, publisherPriority, extensionHeaders, objectStatus) {
902
+ return _DatagramStatus.new(trackAlias, location, publisherPriority, extensionHeaders, objectStatus);
903
+ }
904
+ /**
905
+ * Create a DatagramStatus without extensions.
906
+ * @deprecated Use DatagramStatus.new() instead for Draft-14 compliance.
907
+ */
830
908
  static newWithoutExtensions(trackAlias, location, publisherPriority, objectStatus) {
831
- return new _DatagramStatus(
832
- 2 /* WithoutExtensions */,
833
- trackAlias,
834
- location,
835
- publisherPriority,
836
- null,
837
- objectStatus
838
- );
909
+ return _DatagramStatus.new(trackAlias, location, publisherPriority, null, objectStatus);
839
910
  }
840
911
  serialize() {
841
912
  const buf = new ByteBuffer();
@@ -844,7 +915,7 @@ var DatagramStatus = class _DatagramStatus {
844
915
  buf.putVI(this.location.group);
845
916
  buf.putVI(this.location.object);
846
917
  buf.putU8(this.publisherPriority);
847
- if (this.type === 3 /* WithExtensions */) {
918
+ if (exports.ObjectDatagramStatusType.hasExtensions(this.type)) {
848
919
  const extBuf = new ByteBuffer();
849
920
  if (this.extensionHeaders) {
850
921
  for (const header of this.extensionHeaders) {
@@ -865,18 +936,14 @@ var DatagramStatus = class _DatagramStatus {
865
936
  const objectId = buf.getVI();
866
937
  const publisherPriority = buf.getU8();
867
938
  let extensionHeaders = null;
868
- switch (msgType) {
869
- case 3 /* WithExtensions */: {
870
- const extBytes = buf.getLengthPrefixedBytes();
871
- const headerBytes = new FrozenByteBuffer5(extBytes);
872
- extensionHeaders = [];
873
- while (headerBytes.remaining > 0) {
874
- extensionHeaders.push(headerBytes.getKeyValuePair());
875
- }
876
- break;
939
+ if (exports.ObjectDatagramStatusType.hasExtensions(msgType)) {
940
+ const extBytes = buf.getLengthPrefixedBytes();
941
+ const headerBytes = new FrozenByteBuffer5(extBytes);
942
+ extensionHeaders = [];
943
+ while (headerBytes.remaining > 0) {
944
+ extensionHeaders.push(headerBytes.getKeyValuePair());
877
945
  }
878
946
  }
879
- console.log("Came here for trying tryFrom with object status");
880
947
  const objectStatus = exports.ObjectStatus.tryFrom(buf.getVI());
881
948
  return new _DatagramStatus(
882
949
  msgType,
@@ -1477,6 +1544,14 @@ var MoqtObject = class _MoqtObject {
1477
1544
  datagramObject.payload
1478
1545
  );
1479
1546
  }
1547
+ /**
1548
+ * Returns the endOfGroup flag from the source DatagramObject.
1549
+ * This is separate from ObjectStatus.EndOfGroup - the flag indicates
1550
+ * this is the last object in the group even with Normal status.
1551
+ */
1552
+ static isDatagramEndOfGroup(datagramObject) {
1553
+ return datagramObject.endOfGroup;
1554
+ }
1480
1555
  static fromDatagramStatus(datagramStatus, fullTrackName) {
1481
1556
  return new _MoqtObject(
1482
1557
  fullTrackName,
@@ -1513,7 +1588,12 @@ var MoqtObject = class _MoqtObject {
1513
1588
  subgroupObject.payload
1514
1589
  );
1515
1590
  }
1516
- tryIntoDatagramObject(trackAlias) {
1591
+ /**
1592
+ * Convert to DatagramObject for wire transmission.
1593
+ * @param trackAlias - The track alias to use
1594
+ * @param endOfGroup - Draft-14: Whether this is the last object in the group
1595
+ */
1596
+ tryIntoDatagramObject(trackAlias, endOfGroup = false) {
1517
1597
  if (this.objectForwardingPreference !== "Datagram" /* Datagram */) {
1518
1598
  throw new CastingError(
1519
1599
  "MoqtObject.tryIntoDatagramObject",
@@ -1529,24 +1609,15 @@ var MoqtObject = class _MoqtObject {
1529
1609
  );
1530
1610
  }
1531
1611
  const alias = BigInt(trackAlias);
1532
- if (this.extensionHeaders && this.extensionHeaders.length > 0) {
1533
- return DatagramObject.newWithExtensions(
1534
- alias,
1535
- this.groupId,
1536
- this.objectId,
1537
- this.publisherPriority,
1538
- this.extensionHeaders,
1539
- this.payload
1540
- );
1541
- } else {
1542
- return DatagramObject.newWithoutExtensions(
1543
- alias,
1544
- this.groupId,
1545
- this.objectId,
1546
- this.publisherPriority,
1547
- this.payload
1548
- );
1549
- }
1612
+ return DatagramObject.new(
1613
+ alias,
1614
+ this.groupId,
1615
+ this.objectId,
1616
+ this.publisherPriority,
1617
+ this.extensionHeaders,
1618
+ this.payload,
1619
+ endOfGroup
1620
+ );
1550
1621
  }
1551
1622
  tryIntoDatagramStatus(trackAlias) {
1552
1623
  if (this.objectForwardingPreference !== "Datagram" /* Datagram */) {
@@ -3291,10 +3362,9 @@ var PublishDone = class _PublishDone {
3291
3362
 
3292
3363
  // src/model/control/publish.ts
3293
3364
  var Publish = class _Publish {
3294
- constructor(requestId, trackNamespace, trackName, trackAlias, groupOrder, contentExists, largestLocation, forward, parameters) {
3365
+ constructor(requestId, fullTrackName, trackAlias, groupOrder, contentExists, largestLocation, forward, parameters) {
3295
3366
  this.requestId = requestId;
3296
- this.trackNamespace = trackNamespace;
3297
- this.trackName = trackName;
3367
+ this.fullTrackName = fullTrackName;
3298
3368
  this.trackAlias = trackAlias;
3299
3369
  this.groupOrder = groupOrder;
3300
3370
  this.contentExists = contentExists;
@@ -3302,11 +3372,10 @@ var Publish = class _Publish {
3302
3372
  this.forward = forward;
3303
3373
  this.parameters = parameters;
3304
3374
  }
3305
- static new(requestId, trackNamespace, trackName, trackAlias, groupOrder, contentExists, largestLocation, forward, parameters) {
3375
+ static new(requestId, fullTrackName, trackAlias, groupOrder, contentExists, largestLocation, forward, parameters) {
3306
3376
  return new _Publish(
3307
3377
  BigInt(requestId),
3308
- trackNamespace,
3309
- trackName,
3378
+ fullTrackName,
3310
3379
  BigInt(trackAlias),
3311
3380
  groupOrder,
3312
3381
  contentExists,
@@ -3323,9 +3392,7 @@ var Publish = class _Publish {
3323
3392
  buf.putVI(29 /* Publish */);
3324
3393
  const payload = new ByteBuffer();
3325
3394
  payload.putVI(this.requestId);
3326
- payload.putTuple(this.trackNamespace);
3327
- payload.putVI(this.trackName.length);
3328
- payload.putBytes(new TextEncoder().encode(this.trackName));
3395
+ payload.putBytes(this.fullTrackName.serialize().toUint8Array());
3329
3396
  payload.putVI(this.trackAlias);
3330
3397
  payload.putU8(this.groupOrder);
3331
3398
  payload.putU8(this.contentExists);
@@ -3347,10 +3414,7 @@ var Publish = class _Publish {
3347
3414
  }
3348
3415
  static parsePayload(buf) {
3349
3416
  const requestId = buf.getVI();
3350
- const trackNamespace = buf.getTuple();
3351
- const trackNameLength = buf.getVI();
3352
- const trackNameBytes = buf.getBytes(Number(trackNameLength));
3353
- const trackName = new TextDecoder().decode(trackNameBytes);
3417
+ const fullTrackName = buf.getFullTrackName();
3354
3418
  const trackAlias = buf.getVI();
3355
3419
  const groupOrder = buf.getU8();
3356
3420
  const contentExists = buf.getU8();
@@ -3366,8 +3430,7 @@ var Publish = class _Publish {
3366
3430
  }
3367
3431
  return new _Publish(
3368
3432
  requestId,
3369
- trackNamespace,
3370
- trackName,
3433
+ fullTrackName,
3371
3434
  trackAlias,
3372
3435
  groupOrder,
3373
3436
  contentExists,
@@ -1,6 +1,6 @@
1
- import { m as FullTrackName, K as KeyValuePair, F as FrozenByteBuffer, B as BaseByteBuffer } from '../byte_buffer-BOK6VPTF.cjs';
2
- export { a as ByteBuffer, D as DatagramObject, h as DatagramStatus, e as FetchHeaderType, j as FetchObject, L as Location, l as MAX_FULL_TRACK_NAME_LENGTH, k as MAX_NAMESPACE_TUPLE_COUNT, M as MAX_REASON_PHRASE_LEN, n as MoqtObject, O as ObjectDatagramStatusType, d as ObjectDatagramType, f as ObjectForwardingPreference, g as ObjectStatus, R as ReasonPhrase, S as SubgroupHeaderType, o as SubgroupObject, c as Tuple, T as TupleField, b as isBytes, i as isVarInt } from '../byte_buffer-BOK6VPTF.cjs';
3
- export { ah as AuthTokenVariant, ai as AuthorizationToken, C as ClientSetup, a9 as CommonType, w as ControlMessage, d as ControlMessageType, D as DRAFT_14, am as DeliveryTimeout, x as Fetch, y as FetchCancel, z as FetchError, l as FetchErrorCode, a0 as FetchHeader, A as FetchOk, h as FetchType, F as FilterType, B as GoAway, G as GroupOrder, a3 as Header, al as MaxAuthTokenCacheSize, an as MaxCacheDuration, M as MaxRequestId, aj as MaxRequestIdParameter, a8 as Parameter, ak as Path, L as Publish, K as PublishDone, q as PublishDoneStatusCode, N as PublishError, u as PublishErrorCode, P as PublishNamespace, c as PublishNamespaceCancel, Z as PublishNamespaceDone, a as PublishNamespaceError, f as PublishNamespaceErrorCode, b as PublishNamespaceOk, O as PublishOk, a2 as RequestIdMap, R as RequestsBlocked, E as ServerSetup, a4 as SetupParameter, ab as SetupParameterType, a5 as SetupParameters, a1 as SubgroupHeader, S as Subscribe, Q as SubscribeError, k as SubscribeErrorCode, H as SubscribeNamespace, I as SubscribeNamespaceError, n as SubscribeNamespaceErrorCode, J as SubscribeNamespaceOk, U as SubscribeOk, V as SubscribeUpdate, af as TokenAliasType, W as TrackStatus, T as TrackStatusCode, X as TrackStatusError, Y as TrackStatusOk, _ as Unsubscribe, $ as UnsubscribeNamespace, a6 as VersionSpecificParameter, ad as VersionSpecificParameterType, a7 as VersionSpecificParameters, aa as commonTypeFromNumber, e as controlMessageTypeFromBigInt, m as fetchErrorCodeFromBigInt, i as fetchTypeFromBigInt, g as filterTypeFromBigInt, j as groupOrderFromNumber, r as publishDoneStatusCodeFromBigInt, v as publishErrorCodeFromBigInt, p as publishNamespaceErrorCodeFromBigInt, ac as setupParameterTypeFromNumber, s as subscribeErrorCodeFromBigInt, o as subscribeNamespaceErrorCodeFromBigInt, ag as tokenAliasTypeFromNumber, t as trackStatusCodeFromBigInt, ae as versionSpecificParameterTypeFromNumber } from '../version_parameter-DCE9_itC.cjs';
1
+ import { m as FullTrackName, K as KeyValuePair, F as FrozenByteBuffer, B as BaseByteBuffer } from '../byte_buffer-BM4uNj4n.cjs';
2
+ export { a as ByteBuffer, D as DatagramObject, h as DatagramStatus, e as FetchHeaderType, j as FetchObject, L as Location, l as MAX_FULL_TRACK_NAME_LENGTH, k as MAX_NAMESPACE_TUPLE_COUNT, M as MAX_REASON_PHRASE_LEN, n as MoqtObject, O as ObjectDatagramStatusType, d as ObjectDatagramType, f as ObjectForwardingPreference, g as ObjectStatus, R as ReasonPhrase, S as SubgroupHeaderType, o as SubgroupObject, c as Tuple, T as TupleField, b as isBytes, i as isVarInt } from '../byte_buffer-BM4uNj4n.cjs';
3
+ export { ah as AuthTokenVariant, ai as AuthorizationToken, C as ClientSetup, a9 as CommonType, w as ControlMessage, d as ControlMessageType, D as DRAFT_14, am as DeliveryTimeout, x as Fetch, y as FetchCancel, z as FetchError, l as FetchErrorCode, a0 as FetchHeader, A as FetchOk, h as FetchType, F as FilterType, B as GoAway, G as GroupOrder, a3 as Header, al as MaxAuthTokenCacheSize, an as MaxCacheDuration, M as MaxRequestId, aj as MaxRequestIdParameter, a8 as Parameter, ak as Path, L as Publish, K as PublishDone, q as PublishDoneStatusCode, N as PublishError, u as PublishErrorCode, P as PublishNamespace, c as PublishNamespaceCancel, Z as PublishNamespaceDone, a as PublishNamespaceError, f as PublishNamespaceErrorCode, b as PublishNamespaceOk, O as PublishOk, a2 as RequestIdMap, R as RequestsBlocked, E as ServerSetup, a4 as SetupParameter, ab as SetupParameterType, a5 as SetupParameters, a1 as SubgroupHeader, S as Subscribe, Q as SubscribeError, k as SubscribeErrorCode, H as SubscribeNamespace, I as SubscribeNamespaceError, n as SubscribeNamespaceErrorCode, J as SubscribeNamespaceOk, U as SubscribeOk, V as SubscribeUpdate, af as TokenAliasType, W as TrackStatus, T as TrackStatusCode, X as TrackStatusError, Y as TrackStatusOk, _ as Unsubscribe, $ as UnsubscribeNamespace, a6 as VersionSpecificParameter, ad as VersionSpecificParameterType, a7 as VersionSpecificParameters, aa as commonTypeFromNumber, e as controlMessageTypeFromBigInt, m as fetchErrorCodeFromBigInt, i as fetchTypeFromBigInt, g as filterTypeFromBigInt, j as groupOrderFromNumber, r as publishDoneStatusCodeFromBigInt, v as publishErrorCodeFromBigInt, p as publishNamespaceErrorCodeFromBigInt, ac as setupParameterTypeFromNumber, s as subscribeErrorCodeFromBigInt, o as subscribeNamespaceErrorCodeFromBigInt, ag as tokenAliasTypeFromNumber, t as trackStatusCodeFromBigInt, ae as versionSpecificParameterTypeFromNumber } from '../version_parameter-BpmuiMQj.cjs';
4
4
 
5
5
  /**
6
6
  * Copyright 2025 The MOQtail Authors
@@ -1,6 +1,6 @@
1
- import { m as FullTrackName, K as KeyValuePair, F as FrozenByteBuffer, B as BaseByteBuffer } from '../byte_buffer-BOK6VPTF.js';
2
- export { a as ByteBuffer, D as DatagramObject, h as DatagramStatus, e as FetchHeaderType, j as FetchObject, L as Location, l as MAX_FULL_TRACK_NAME_LENGTH, k as MAX_NAMESPACE_TUPLE_COUNT, M as MAX_REASON_PHRASE_LEN, n as MoqtObject, O as ObjectDatagramStatusType, d as ObjectDatagramType, f as ObjectForwardingPreference, g as ObjectStatus, R as ReasonPhrase, S as SubgroupHeaderType, o as SubgroupObject, c as Tuple, T as TupleField, b as isBytes, i as isVarInt } from '../byte_buffer-BOK6VPTF.js';
3
- export { ah as AuthTokenVariant, ai as AuthorizationToken, C as ClientSetup, a9 as CommonType, w as ControlMessage, d as ControlMessageType, D as DRAFT_14, am as DeliveryTimeout, x as Fetch, y as FetchCancel, z as FetchError, l as FetchErrorCode, a0 as FetchHeader, A as FetchOk, h as FetchType, F as FilterType, B as GoAway, G as GroupOrder, a3 as Header, al as MaxAuthTokenCacheSize, an as MaxCacheDuration, M as MaxRequestId, aj as MaxRequestIdParameter, a8 as Parameter, ak as Path, L as Publish, K as PublishDone, q as PublishDoneStatusCode, N as PublishError, u as PublishErrorCode, P as PublishNamespace, c as PublishNamespaceCancel, Z as PublishNamespaceDone, a as PublishNamespaceError, f as PublishNamespaceErrorCode, b as PublishNamespaceOk, O as PublishOk, a2 as RequestIdMap, R as RequestsBlocked, E as ServerSetup, a4 as SetupParameter, ab as SetupParameterType, a5 as SetupParameters, a1 as SubgroupHeader, S as Subscribe, Q as SubscribeError, k as SubscribeErrorCode, H as SubscribeNamespace, I as SubscribeNamespaceError, n as SubscribeNamespaceErrorCode, J as SubscribeNamespaceOk, U as SubscribeOk, V as SubscribeUpdate, af as TokenAliasType, W as TrackStatus, T as TrackStatusCode, X as TrackStatusError, Y as TrackStatusOk, _ as Unsubscribe, $ as UnsubscribeNamespace, a6 as VersionSpecificParameter, ad as VersionSpecificParameterType, a7 as VersionSpecificParameters, aa as commonTypeFromNumber, e as controlMessageTypeFromBigInt, m as fetchErrorCodeFromBigInt, i as fetchTypeFromBigInt, g as filterTypeFromBigInt, j as groupOrderFromNumber, r as publishDoneStatusCodeFromBigInt, v as publishErrorCodeFromBigInt, p as publishNamespaceErrorCodeFromBigInt, ac as setupParameterTypeFromNumber, s as subscribeErrorCodeFromBigInt, o as subscribeNamespaceErrorCodeFromBigInt, ag as tokenAliasTypeFromNumber, t as trackStatusCodeFromBigInt, ae as versionSpecificParameterTypeFromNumber } from '../version_parameter-CgEPNuUt.js';
1
+ import { m as FullTrackName, K as KeyValuePair, F as FrozenByteBuffer, B as BaseByteBuffer } from '../byte_buffer-BM4uNj4n.js';
2
+ export { a as ByteBuffer, D as DatagramObject, h as DatagramStatus, e as FetchHeaderType, j as FetchObject, L as Location, l as MAX_FULL_TRACK_NAME_LENGTH, k as MAX_NAMESPACE_TUPLE_COUNT, M as MAX_REASON_PHRASE_LEN, n as MoqtObject, O as ObjectDatagramStatusType, d as ObjectDatagramType, f as ObjectForwardingPreference, g as ObjectStatus, R as ReasonPhrase, S as SubgroupHeaderType, o as SubgroupObject, c as Tuple, T as TupleField, b as isBytes, i as isVarInt } from '../byte_buffer-BM4uNj4n.js';
3
+ export { ah as AuthTokenVariant, ai as AuthorizationToken, C as ClientSetup, a9 as CommonType, w as ControlMessage, d as ControlMessageType, D as DRAFT_14, am as DeliveryTimeout, x as Fetch, y as FetchCancel, z as FetchError, l as FetchErrorCode, a0 as FetchHeader, A as FetchOk, h as FetchType, F as FilterType, B as GoAway, G as GroupOrder, a3 as Header, al as MaxAuthTokenCacheSize, an as MaxCacheDuration, M as MaxRequestId, aj as MaxRequestIdParameter, a8 as Parameter, ak as Path, L as Publish, K as PublishDone, q as PublishDoneStatusCode, N as PublishError, u as PublishErrorCode, P as PublishNamespace, c as PublishNamespaceCancel, Z as PublishNamespaceDone, a as PublishNamespaceError, f as PublishNamespaceErrorCode, b as PublishNamespaceOk, O as PublishOk, a2 as RequestIdMap, R as RequestsBlocked, E as ServerSetup, a4 as SetupParameter, ab as SetupParameterType, a5 as SetupParameters, a1 as SubgroupHeader, S as Subscribe, Q as SubscribeError, k as SubscribeErrorCode, H as SubscribeNamespace, I as SubscribeNamespaceError, n as SubscribeNamespaceErrorCode, J as SubscribeNamespaceOk, U as SubscribeOk, V as SubscribeUpdate, af as TokenAliasType, W as TrackStatus, T as TrackStatusCode, X as TrackStatusError, Y as TrackStatusOk, _ as Unsubscribe, $ as UnsubscribeNamespace, a6 as VersionSpecificParameter, ad as VersionSpecificParameterType, a7 as VersionSpecificParameters, aa as commonTypeFromNumber, e as controlMessageTypeFromBigInt, m as fetchErrorCodeFromBigInt, i as fetchTypeFromBigInt, g as filterTypeFromBigInt, j as groupOrderFromNumber, r as publishDoneStatusCodeFromBigInt, v as publishErrorCodeFromBigInt, p as publishNamespaceErrorCodeFromBigInt, ac as setupParameterTypeFromNumber, s as subscribeErrorCodeFromBigInt, o as subscribeNamespaceErrorCodeFromBigInt, ag as tokenAliasTypeFromNumber, t as trackStatusCodeFromBigInt, ae as versionSpecificParameterTypeFromNumber } from '../version_parameter-f75NkWiO.js';
4
4
 
5
5
  /**
6
6
  * Copyright 2025 The MOQtail Authors