@moq/net 0.4.7 → 0.4.8

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.
Files changed (151) hide show
  1. package/announce.d.ts +1 -1
  2. package/announce.js +0 -1
  3. package/announced.js +0 -1
  4. package/bandwidth.js +0 -1
  5. package/bandwidth_api.d.ts +1 -1
  6. package/bandwidth_api.js +0 -1
  7. package/broadcast.d.ts +3 -3
  8. package/broadcast.js +0 -1
  9. package/connection/accept.d.ts +2 -2
  10. package/connection/accept.js +0 -1
  11. package/connection/browser.js +0 -1
  12. package/connection/connect.d.ts +3 -3
  13. package/connection/connect.js +0 -1
  14. package/connection/established.d.ts +4 -4
  15. package/connection/established.js +0 -1
  16. package/connection/forward.js +0 -1
  17. package/connection/goaway.d.ts +1 -1
  18. package/connection/goaway.js +15 -2
  19. package/connection/goaway.js.map +1 -1
  20. package/connection/handshake.d.ts +2 -2
  21. package/connection/handshake.js +0 -1
  22. package/connection/index.d.ts +7 -7
  23. package/connection/index.js +0 -1
  24. package/connection/pool.d.ts +13 -13
  25. package/connection/pool.js +0 -1
  26. package/connection/reload.d.ts +1 -1
  27. package/connection/reload.js +0 -1
  28. package/connection/stats.d.ts +1 -1
  29. package/connection/stats.js +0 -1
  30. package/connection/transport.js +0 -1
  31. package/consume.js +0 -1
  32. package/datagram.d.ts +1 -1
  33. package/datagram.js +0 -1
  34. package/error.js +0 -1
  35. package/errors.d.ts +1 -1
  36. package/errors.js +0 -1
  37. package/group.d.ts +1 -1
  38. package/group.js +0 -1
  39. package/hop.js +0 -1
  40. package/ietf/adapter.d.ts +3 -3
  41. package/ietf/adapter.js +0 -1
  42. package/ietf/aliases.js +0 -1
  43. package/ietf/cluster.js +10 -3
  44. package/ietf/cluster.js.map +1 -1
  45. package/ietf/connection.d.ts +5 -5
  46. package/ietf/connection.js +0 -1
  47. package/ietf/error.js +0 -1
  48. package/ietf/fetch.d.ts +2 -2
  49. package/ietf/fetch.js +0 -1
  50. package/ietf/filter.d.ts +2 -2
  51. package/ietf/filter.js +0 -1
  52. package/ietf/goaway.d.ts +3 -3
  53. package/ietf/goaway.js +0 -1
  54. package/ietf/hidden.js +0 -1
  55. package/ietf/index.d.ts +20 -20
  56. package/ietf/index.js +0 -1
  57. package/ietf/message.d.ts +1 -1
  58. package/ietf/message.js +0 -1
  59. package/ietf/namespace.d.ts +2 -2
  60. package/ietf/namespace.js +0 -1
  61. package/ietf/object.d.ts +3 -3
  62. package/ietf/object.js +0 -1
  63. package/ietf/parameters.d.ts +3 -3
  64. package/ietf/parameters.js +0 -1
  65. package/ietf/priority.js +0 -1
  66. package/ietf/properties.d.ts +3 -3
  67. package/ietf/properties.js +0 -1
  68. package/ietf/publish.d.ts +3 -3
  69. package/ietf/publish.js +0 -1
  70. package/ietf/publish_namespace.d.ts +4 -4
  71. package/ietf/publish_namespace.js +0 -1
  72. package/ietf/publisher.js +0 -1
  73. package/ietf/request.d.ts +3 -3
  74. package/ietf/request.js +0 -1
  75. package/ietf/request_stream.d.ts +2 -2
  76. package/ietf/request_stream.js +0 -1
  77. package/ietf/setup.d.ts +3 -3
  78. package/ietf/setup.js +0 -1
  79. package/ietf/solicit.js +0 -1
  80. package/ietf/subscribe.d.ts +6 -6
  81. package/ietf/subscribe.js +0 -1
  82. package/ietf/subscribe_namespace.d.ts +4 -4
  83. package/ietf/subscribe_namespace.js +0 -1
  84. package/ietf/subscriber.js +0 -1
  85. package/ietf/token.js +0 -1
  86. package/ietf/track.d.ts +3 -3
  87. package/ietf/track.js +0 -1
  88. package/ietf/version.js +0 -1
  89. package/index.d.ts +13 -13
  90. package/index.d.ts.map +1 -1
  91. package/index.js +0 -1
  92. package/index.js.map +1 -1
  93. package/internal.d.ts +7 -7
  94. package/internal.js +0 -1
  95. package/lite/announce.d.ts +4 -4
  96. package/lite/announce.js +0 -1
  97. package/lite/connection.d.ts +7 -7
  98. package/lite/connection.js +0 -1
  99. package/lite/datagram.d.ts +1 -1
  100. package/lite/datagram.js +0 -1
  101. package/lite/datagram_stream.js +0 -1
  102. package/lite/fetch.d.ts +3 -3
  103. package/lite/fetch.js +0 -1
  104. package/lite/goaway.d.ts +2 -2
  105. package/lite/goaway.js +0 -1
  106. package/lite/group.d.ts +3 -3
  107. package/lite/group.js +0 -1
  108. package/lite/index.d.ts +13 -13
  109. package/lite/index.js +0 -1
  110. package/lite/message.d.ts +1 -1
  111. package/lite/message.js +0 -1
  112. package/lite/priority.js +0 -1
  113. package/lite/probe.d.ts +2 -2
  114. package/lite/probe.js +0 -1
  115. package/lite/publisher.js +0 -1
  116. package/lite/session.d.ts +2 -2
  117. package/lite/session.js +0 -1
  118. package/lite/setup.d.ts +3 -3
  119. package/lite/setup.js +0 -1
  120. package/lite/stream.d.ts +6 -6
  121. package/lite/stream.js +0 -1
  122. package/lite/subscribe.d.ts +3 -3
  123. package/lite/subscribe.js +0 -1
  124. package/lite/subscriber.d.ts +7 -7
  125. package/lite/subscriber.js +0 -1
  126. package/lite/track.d.ts +3 -3
  127. package/lite/track.js +0 -1
  128. package/lite/version.js +0 -1
  129. package/origin.d.ts +6 -6
  130. package/origin.js +0 -1
  131. package/package.json +2 -2
  132. package/path.js +0 -1
  133. package/stream.d.ts +3 -3
  134. package/stream.js +0 -1
  135. package/tail.d.ts +1 -1
  136. package/tail.js +0 -1
  137. package/time.js +0 -1
  138. package/track.d.ts +4 -4
  139. package/track.js +0 -1
  140. package/util/abort.js +0 -1
  141. package/util/hex.js +0 -1
  142. package/util/log.js +0 -1
  143. package/util/timeout.js +0 -1
  144. package/util/u64.js +0 -1
  145. package/util/utf8.js +0 -1
  146. package/util/varint.js +0 -1
  147. package/varint.js +0 -1
  148. package/wire.d.ts +7 -7
  149. package/wire.js +0 -1
  150. package/zod.d.ts +2 -2
  151. package/zod.js +0 -1
package/lite/index.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./index.d.ts" */
2
1
  export * from "./announce.js";
3
2
  export * from "./connection.js";
4
3
  export * from "./datagram.js";
package/lite/message.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Reader, Writer } from "../stream";
1
+ import { Reader, Writer } from "../stream.ts";
2
2
  export declare function encode(writer: Writer, f: (w: Writer) => Promise<void>, max?: number): Promise<void>;
3
3
  export declare function decode<T>(reader: Reader, f: (r: Reader) => Promise<T>, max?: number): Promise<T>;
4
4
  export declare function decodeMaybe<T>(reader: Reader, f: (r: Reader) => Promise<T>): Promise<T | undefined>;
package/lite/message.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./message.d.ts" */
2
1
  import { Reader, Writer } from "../stream.js";
3
2
  /** The largest message body either side accepts, matching the Rust implementation. */
4
3
  const MAX_SIZE = 64 * 1024 * 1024;
package/lite/priority.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./priority.d.ts" */
2
1
  /**
3
2
  * Stream prioritization for moq-lite, mirroring the Rust `lite::priority` queue.
4
3
  *
package/lite/probe.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Reader, Writer } from "../stream";
2
- import { Version } from "./version";
1
+ import type { Reader, Writer } from "../stream.ts";
2
+ import { Version } from "./version.ts";
3
3
  /** The metrics a PROBE message carries. Each is independently optional. */
4
4
  export interface ProbeInit {
5
5
  /** Estimated send bitrate in bits per second. Omit if unknown. */
package/lite/probe.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./probe.d.ts" */
2
1
  import * as Message from "./message.js";
3
2
  import { hasProbeRtt, Version } from "./version.js";
4
3
  function guardProbe(version) {
package/lite/publisher.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./publisher.d.ts" */
2
1
  import { race, Signal } from "@moq/signals";
3
2
  import { error, NotFound, reason, StreamCode, StreamError } from "../error.js";
4
3
  import { Cost, routesEqual } from "../hop.js";
package/lite/session.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Reader, Writer } from "../stream";
2
- import { Version } from "./version";
1
+ import type { Reader, Writer } from "../stream.ts";
2
+ import { Version } from "./version.ts";
3
3
  export declare class Extensions {
4
4
  entries: Map<bigint, Uint8Array>;
5
5
  constructor();
package/lite/session.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./session.d.ts" */
2
1
  import * as Message from "./message.js";
3
2
  import { Version } from "./version.js";
4
3
  export class Extensions {
package/lite/setup.d.ts CHANGED
@@ -4,9 +4,9 @@
4
4
  *
5
5
  * @module
6
6
  */
7
- import { type Hop } from "../hop";
8
- import { Reader, type Writer } from "../stream";
9
- import { type Version } from "./version";
7
+ import { type Hop } from "../hop.ts";
8
+ import { Reader, type Writer } from "../stream.ts";
9
+ import { type Version } from "./version.ts";
10
10
  /**
11
11
  * The probe capability an endpoint advertises in SETUP.
12
12
  *
package/lite/setup.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./setup.d.ts" */
2
1
  /**
3
2
  * The lite-05+ SETUP message: each endpoint advertises its capabilities once, as the
4
3
  * sole message on a unidirectional Setup Stream ({@link DataType.Setup}), then closes it.
package/lite/stream.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import type { AnnounceRequest } from "./announce";
2
- import type { Goaway } from "./goaway";
3
- import type { Group } from "./group";
4
- import type { SessionClient } from "./session";
5
- import type { Subscribe } from "./subscribe";
6
- import type { Track } from "./track";
1
+ import type { AnnounceRequest } from "./announce.ts";
2
+ import type { Goaway } from "./goaway.ts";
3
+ import type { Group } from "./group.ts";
4
+ import type { SessionClient } from "./session.ts";
5
+ import type { Subscribe } from "./subscribe.ts";
6
+ import type { Track } from "./track.ts";
7
7
  export type StreamBi = SessionClient | AnnounceRequest | Subscribe | Track | Goaway;
8
8
  export type StreamUni = Group;
9
9
  export declare const StreamId: {
package/lite/stream.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./stream.d.ts" */
2
1
  export const StreamId = {
3
2
  Session: 0,
4
3
  Announce: 1,
@@ -1,6 +1,6 @@
1
- import * as Path from "../path";
2
- import type { Reader, Writer } from "../stream";
3
- import { Version } from "./version";
1
+ import * as Path from "../path.ts";
2
+ import type { Reader, Writer } from "../stream.ts";
3
+ import { Version } from "./version.ts";
4
4
  /**
5
5
  * Exclusive model/local cap from a decoded inclusive last group.
6
6
  *
package/lite/subscribe.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./subscribe.d.ts" */
2
1
  import * as Path from "../path.js";
3
2
  import * as Message from "./message.js";
4
3
  import { hasFrameBounds, hasGroupOrder, hasStreamCount, resolvesStart, Version } from "./version.js";
@@ -1,10 +1,10 @@
1
- import * as announce from "../announced";
2
- import * as broadcast from "../broadcast";
3
- import * as netGroup from "../group";
4
- import { type Hop } from "../hop";
5
- import * as Path from "../path";
6
- import type * as track from "../track";
7
- import { Version } from "./version";
1
+ import * as announce from "../announced.ts";
2
+ import * as broadcast from "../broadcast.ts";
3
+ import * as netGroup from "../group.ts";
4
+ import { type Hop } from "../hop.ts";
5
+ import * as Path from "../path.ts";
6
+ import type * as track from "../track.ts";
7
+ import { Version } from "./version.ts";
8
8
  export declare class Subscriber {
9
9
  #private;
10
10
  readonly version: Version;
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./subscriber.d.ts" */
2
1
  import { race, Signal } from "@moq/signals";
3
2
  import * as announce from "../announced.js";
4
3
  import * as broadcast from "../broadcast.js";
package/lite/track.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import * as Path from "../path";
2
- import type { Reader, Writer } from "../stream";
3
- import { Version } from "./version";
1
+ import * as Path from "../path.ts";
2
+ import type { Reader, Writer } from "../stream.ts";
3
+ import { Version } from "./version.ts";
4
4
  /**
5
5
  * TRACK request: the first (and only) subscriber message on a Track Stream (0x6).
6
6
  * Asks for a track's immutable publisher properties without subscribing or fetching.
package/lite/track.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./track.d.ts" */
2
1
  import * as Path from "../path.js";
3
2
  import { Timescale } from "../time.js";
4
3
  import * as Message from "./message.js";
package/lite/version.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./version.d.ts" */
2
1
  export const Version = {
3
2
  DRAFT_01: 0xff0dad01,
4
3
  DRAFT_02: 0xff0dad02,
package/origin.d.ts CHANGED
@@ -11,12 +11,12 @@
11
11
  * @module
12
12
  */
13
13
  import { type GetPromise, type Getter } from "@moq/signals";
14
- import * as announce from "./announced";
15
- import * as broadcast from "./broadcast";
16
- import { Route } from "./hop";
17
- import * as Path from "./path";
18
- export type { Cost, Hop, Route } from "./hop";
19
- export { isAnonymous } from "./hop";
14
+ import * as announce from "./announced.ts";
15
+ import * as broadcast from "./broadcast.ts";
16
+ import { Route } from "./hop.ts";
17
+ import * as Path from "./path.ts";
18
+ export type { Cost, Hop, Route } from "./hop.ts";
19
+ export { isAnonymous } from "./hop.ts";
20
20
  /**
21
21
  * A non-owning handle on an origin: publish into it and read it, without its lifecycle.
22
22
  *
package/origin.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./origin.d.ts" */
2
1
  /**
3
2
  * A broadcast routing table, independent of any connection.
4
3
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@moq/net",
3
3
  "type": "module",
4
- "version": "0.4.7",
4
+ "version": "0.4.8",
5
5
  "description": "The networking layer for Media over QUIC: real-time pub/sub with built-in caching, fan-out, and prioritization.",
6
6
  "license": "(MIT OR Apache-2.0)",
7
7
  "repository": {
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@moq/pattern": "^0.2.1",
25
- "@moq/qmux": "^0.3.3",
25
+ "@moq/qmux": "^0.3.5",
26
26
  "@moq/signals": "^0.2.6",
27
27
  "async-mutex": "^0.5.0",
28
28
  "bowser": "^2.14.1"
package/path.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./path.d.ts" */
2
1
  /**
3
2
  * Maximum number of slash-separated parts in a path.
4
3
  *
package/stream.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { IetfVersion } from "./ietf/version";
2
- import { type Version as LiteVersion } from "./lite/version";
3
- import { U64 } from "./util/u64";
1
+ import type { IetfVersion } from "./ietf/version.ts";
2
+ import { type Version as LiteVersion } from "./lite/version.ts";
3
+ import { U64 } from "./util/u64.ts";
4
4
  /**
5
5
  * Options handed to the transport for one outgoing stream.
6
6
  *
package/stream.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./stream.d.ts" */
2
1
  import { race } from "@moq/signals";
3
2
  import { fromTransport, StreamCode, StreamError, toStreamCode, toTransport } from "./error.js";
4
3
  import { Version } from "./ietf/version.js";
package/tail.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Milli } from "./time";
1
+ import { Milli } from "./time.ts";
2
2
  /**
3
3
  * How long a subscriber waits for a group stream it cannot account for once the publisher
4
4
  * has ended the subscription.
package/tail.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./tail.d.ts" */
2
1
  import { Signal } from "@moq/signals";
3
2
  import { Milli } from "./time.js";
4
3
  /**
package/time.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./time.d.ts" */
2
1
  /**
3
2
  * Branded time types (nanoseconds, microseconds, milliseconds, seconds) with conversions,
4
3
  * plus {@link Timescale} and {@link Timestamp} for presentation timing.
package/track.d.ts CHANGED
@@ -4,10 +4,10 @@
4
4
  * @module
5
5
  */
6
6
  import { type GetPromise, type Getter } from "@moq/signals";
7
- import type { Datagram } from "./datagram";
8
- import { type Frame, type Consumer as GroupConsumer, Producer as GroupProducer } from "./group";
9
- import { Milli, Timescale, type Timestamp } from "./time";
10
- export type { Datagram } from "./datagram";
7
+ import type { Datagram } from "./datagram.ts";
8
+ import { type Frame, type Consumer as GroupConsumer, Producer as GroupProducer } from "./group.ts";
9
+ import { Milli, Timescale, type Timestamp } from "./time.ts";
10
+ export type { Datagram } from "./datagram.ts";
11
11
  /** Default {@link Info.maxAge} window (milliseconds) when the publisher does not set one. */
12
12
  export declare const DEFAULT_MAX_AGE_MS: Milli;
13
13
  /** A position within a track: a group's sequence and a frame's index inside it. */
package/track.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./track.d.ts" */
2
1
  /**
3
2
  * Track role handles: a live stream of groups (and best-effort datagrams) within a broadcast.
4
3
  *
package/util/abort.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./abort.d.ts" */
2
1
  import { race } from "@moq/signals";
3
2
  // Settle with `promise`, or reject with the signal's reason once it aborts. An already-aborted
4
3
  // signal rejects at once. There's no cancellation of `promise` itself; the caller releases
package/util/hex.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./hex.d.ts" */
2
1
  export function toBytes(hex) {
3
2
  hex = hex.startsWith("0x") ? hex.slice(2) : hex;
4
3
  if (hex.length % 2) {
package/util/log.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./log.d.ts" */
2
1
  /** Renders a relay URL without user credentials, query parameters, or fragment. */
3
2
  export function redact(url) {
4
3
  return `${url.origin}${url.pathname}`;
package/util/timeout.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./timeout.d.ts" */
2
1
  export class TimeoutError extends Error {
3
2
  constructor(message) {
4
3
  super(message);
package/util/u64.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./u64.d.ts" */
2
1
  // An unsigned 64-bit integer as two u32 halves, so nothing on the hot path needs a BigInt.
3
2
  // Package-internal. Varints are only its wire encoding; see ./varint.ts.
4
3
  /** 2^32, the weight of the upper half. */
package/util/utf8.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./utf8.d.ts" */
2
1
  const decoder = new TextDecoder("utf-8", { fatal: true });
3
2
  /** Decode a protocol string, rejecting bytes that are not valid UTF-8. */
4
3
  export function decodeUtf8(buffer) {
package/util/varint.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./varint.d.ts" */
2
1
  // The varint wire codec on 32-bit halves (see ./u64.ts), so neither format needs a BigInt.
3
2
  // Package-internal: the public API in ../varint.ts and the stream Cursor and Writer are built on it.
4
3
  //
package/varint.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./varint.d.ts" */
2
1
  /**
3
2
  * Variable-length integers: QUIC's (RFC 9000 Section 16) and moq-transport's leading-ones form.
4
3
  * https://www.rfc-editor.org/rfc/rfc9000#section-16
package/wire.d.ts CHANGED
@@ -8,13 +8,13 @@
8
8
  * @module
9
9
  */
10
10
  import type { Dispose, GetPromise, Getter } from "@moq/signals";
11
- import type * as broadcast from "./broadcast";
12
- import type { Drain } from "./connection/goaway";
13
- import type { Consumer as GroupConsumer } from "./group";
14
- import type { Route } from "./hop";
15
- import type * as origin from "./origin";
16
- import type * as Path from "./path";
17
- import type * as track from "./track";
11
+ import type * as broadcast from "./broadcast.ts";
12
+ import type { Drain } from "./connection/goaway.ts";
13
+ import type { Consumer as GroupConsumer } from "./group.ts";
14
+ import type { Route } from "./hop.ts";
15
+ import type * as origin from "./origin.ts";
16
+ import type * as Path from "./path.ts";
17
+ import type * as track from "./track.ts";
18
18
  /** The protocol-facing operations behind a broadcast handle. */
19
19
  export interface Broadcast {
20
20
  subscribe(name: string, options?: track.Subscription): track.Subscriber;
package/wire.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./wire.d.ts" */
2
1
  const views = new WeakMap();
3
2
  /** Register the package-private view for a handle. */
4
3
  export function registerWire(handle, view) {
package/zod.d.ts CHANGED
@@ -4,8 +4,8 @@
4
4
  * @module
5
5
  */
6
6
  import type * as z from "@zod/mini";
7
- import type * as group from "./group";
8
- import type * as track from "./track";
7
+ import type * as group from "./group.ts";
8
+ import type * as track from "./track.ts";
9
9
  /** Read the next JSON frame and validate it against the schema. Returns undefined at end of stream. */
10
10
  export declare function read<T = unknown>(source: track.Ordered | group.Consumer, schema: z.ZodMiniType<T>): Promise<T | undefined>;
11
11
  /** Validate a value against the schema, then write it as a JSON frame. */
package/zod.js CHANGED
@@ -1,4 +1,3 @@
1
- /* @ts-self-types="./zod.d.ts" */
2
1
  /**
3
2
  * Helpers for reading and writing Zod-validated JSON frames on a track or group.
4
3
  *