@urun-sh/core 0.6.35 → 0.6.36

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,2 +1,2 @@
1
1
  import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
2
- import"../chunk-NLAOQUYQ.mjs";var p="serve";function d(n,o){let e=`[urun/${o.adapter}]`,r=n.baseUrl!==void 0||n.orgId!==void 0||n.app!==void 0||n.functionName!==void 0;if(n.session&&r)throw new Error(`${e} pass EITHER a \`session\` (BYO) OR connection settings (\`baseUrl\`/\`orgId\`/\`app\`) \u2014 not both.`);let u,c=()=>{if(n.session){let s=n.session;return Promise.resolve(typeof s=="function"?s():s)}let{baseUrl:i,orgId:t,app:a}=n;if(!i||!t||!a)throw new Error(`${e} missing connection settings: \`baseUrl\`, \`orgId\` and \`app\` are required (or pass a \`session\`).`);return l({...n,baseUrl:i,orgId:t,app:a})};return()=>u??=c()}async function l(n){let{App:o}=await import("../app-GEWRPB7Q.mjs"),e=o(n.app,{baseUrl:n.baseUrl,orgId:n.orgId,jwt:n.jwt,getAccessToken:n.getAccessToken,authProvider:n.authProvider}),r=n.functionName??p;return e[r]()}export{d as createSessionResolver};
2
+ import"../chunk-NLAOQUYQ.mjs";var p="serve";function d(n,o){let e=`[urun/${o.adapter}]`,r=n.baseUrl!==void 0||n.orgId!==void 0||n.app!==void 0||n.functionName!==void 0;if(n.session&&r)throw new Error(`${e} pass EITHER a \`session\` (BYO) OR connection settings (\`baseUrl\`/\`orgId\`/\`app\`) \u2014 not both.`);let u,c=()=>{if(n.session){let s=n.session;return Promise.resolve(typeof s=="function"?s():s)}let{baseUrl:i,orgId:t,app:a}=n;if(!i||!t||!a)throw new Error(`${e} missing connection settings: \`baseUrl\`, \`orgId\` and \`app\` are required (or pass a \`session\`).`);return l({...n,baseUrl:i,orgId:t,app:a})};return()=>u??=c()}async function l(n){let{App:o}=await import("../app-U7LBEKWS.mjs"),e=o(n.app,{baseUrl:n.baseUrl,orgId:n.orgId,jwt:n.jwt,getAccessToken:n.getAccessToken,authProvider:n.authProvider}),r=n.functionName??p;return e[r]()}export{d as createSessionResolver};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
2
- import{ea as a,fa as b}from"./chunk-2W2Z5DN7.mjs";import"./chunk-H6RKAM2X.mjs";import"./chunk-NLAOQUYQ.mjs";export{b as App,a as sessionDirectory};
2
+ import{ea as a,fa as b}from"./chunk-VHDCUDOI.mjs";import"./chunk-N7XWLJO5.mjs";import"./chunk-NLAOQUYQ.mjs";export{b as App,a as sessionDirectory};
@@ -83,6 +83,9 @@ interface SessionGatewayResponse {
83
83
 
84
84
  runtime_reason?: string;
85
85
 
86
+ runtime_ready?: boolean;
87
+ runtime_status?: string;
88
+
86
89
  reason?: string;
87
90
 
88
91
  decision_reason?: string;
@@ -127,6 +130,10 @@ interface AdmissionUpdate {
127
130
  refusalMessage?: string;
128
131
 
129
132
  region?: string | null;
133
+
134
+ runtimeReady?: boolean;
135
+
136
+ runtimeStatus?: 'unbound' | 'starting' | 'ready';
130
137
  }
131
138
  interface AllocateSessionOptions {
132
139
  baseUrl: string;
@@ -323,7 +330,9 @@ declare function createPresence(awareness: Awareness): Presence;
323
330
 
324
331
  type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
325
332
 
326
- type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live' | 'paused' | 'error' | 'unknown';
333
+ type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
334
+
335
+ | 'degraded' | 'paused' | 'error' | 'unknown';
327
336
 
328
337
  interface RuntimeAvailability {
329
338
  state: 'unavailable' | 'starting' | 'busy';
@@ -1239,6 +1248,8 @@ interface AudioBufferSourceLike {
1239
1248
  buffer: AudioBufferLike | null;
1240
1249
  connect(node: unknown): void;
1241
1250
  start(when: number): void;
1251
+ stop(when?: number): void;
1252
+ onended?: ((this: never, ev: never) => void) | null;
1242
1253
  }
1243
1254
 
1244
1255
  interface WtDataUplinkTransport {
@@ -1818,12 +1829,30 @@ declare class SessionTextImpl implements SessionText {
1818
1829
  dispose(): void;
1819
1830
  }
1820
1831
 
1832
+ declare const ENVELOPE_KIND: {
1833
+ readonly BINARY: 0;
1834
+ readonly TEXT: 1;
1835
+ readonly JSON: 2;
1836
+ readonly END: 3;
1837
+
1838
+ readonly CHUNK: 4;
1839
+ };
1840
+
1821
1841
  declare const STREAM_END: unique symbol;
1822
1842
 
1823
1843
  declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
1824
1844
 
1845
+ declare function encodeStreamFragments(payload: unknown): Uint8Array[];
1846
+
1825
1847
  declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
1826
1848
 
1849
+ declare class StreamFragmentReassembler {
1850
+ private _chunks;
1851
+ private _bufferedLength;
1852
+
1853
+ feed(frame: Uint8Array | ArrayBuffer): unknown;
1854
+ }
1855
+
1827
1856
  interface StreamDataTransport {
1828
1857
 
1829
1858
  readonly consumerId: string;
@@ -1865,4 +1894,4 @@ declare function computeBackoffDelay(attempt: number, random?: () => number): nu
1865
1894
 
1866
1895
  declare function isRetryableSessionError(error: unknown): boolean;
1867
1896
 
1868
- export { type RecordingLifecycle as $, type AccessTokenOptions$1 as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, GENERATION_TICK_MAX_EXTRAPOLATION_MS as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, type GenerationTick as H, type InboundStatsSample as I, type MediaChunkSource as J, type MediaChunkSourceFactory as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaRecorderChunkSourceOptions as N, type MediaSession as O, type NegotiatorDataLaneSeam as P, type NegotiatorOptions as Q, type PathHealthReporting as R, type PathLiveness as S, type Presence as T, type PresenceState as U, type PrewakeOptions as V, type PrewakeResult as W, type PrewakeStatus as X, type QuicStreamDataTransport as Y, type Recording as Z, type RecordingBucket as _, type AccessTokenOptions as a, createPresence as a$, type RecordingStatus as a0, type RecordingsAccessor as a1, type ReleaseSessionBeaconOptions as a2, type RequestOptions as a3, type RequestStreamOptions as a4, type RuntimeArtifact as a5, type RuntimeArtifactDownload as a6, type RuntimeArtifactsAccessor as a7, type RuntimeAvailability as a8, type RuntimeWakeDetail as a9, type StoreOptions as aA, type StreamChunkOptions as aB, type StreamDataTransport as aC, type TransportEstablishedNotify as aD, TransportNegotiator as aE, type TransportOfferRequest as aF, type TransportOfferResponse as aG, TransportSession as aH, type TransportSessionOptions as aI, TransportSessionSignaling as aJ, type TransportState as aK, type VideoPlayoutOptions as aL, WT_CONTROL_FRAME_MAX as aM, WT_DATA_STREAM_VERSION as aN, type WatchGenerationTickOptions as aO, type WtAudioLaneSeam as aP, type WtAudioUplinkSeam as aQ, WtControlDecoder as aR, type WtControlMessage as aS, type WtDataEnvelope as aT, type WtDataLaneSink as aU, WtDataStreamParser as aV, WtDataUplinkSender as aW, type WtVideoUplinkSeam as aX, allocateSession as aY, computeBackoffDelay as aZ, consumeWtDataStreams as a_, type RuntimeWakeGolden as aa, type RuntimeWakeReasonCode as ab, SIGNALING_PROTOCOL_VERSION as ac, STREAM_END as ad, type Session as ae, type SessionDiagnostic as af, type SessionDirectoryRequestOptions as ag, type SessionDocument as ah, SessionDocumentImpl as ai, type SessionEndResult as aj, type SessionFailureKind as ak, type SessionNameSource as al, type SessionPhase as am, type SessionPhaseError as an, type SessionPhaseName as ao, type SessionStartOptions as ap, type SessionStatsOptions as aq, type SessionStatsSample as ar, type SessionStatus as as, type SessionStream as at, type SessionText as au, type SfuAttachCredential as av, type SignalCarrier as aw, type Signaling as ax, type StartSessionOptions as ay, type Store as az, type ActivationEvent as b, createWebsocketDocConnector as b0, decodeStreamEnvelope as b1, deriveYjsServerUrl as b2, derivedLegName as b3, derivedLegRole as b4, encodeStreamEnvelope as b5, encodeWtControlFrame as b6, isPendingRecording as b7, isRetryableSessionError as b8, mediaRecorderChunkSource as b9, parseDgramHeader as ba, prewake as bb, releaseSessionBeacon as bc, streamDataLabel as bd, transportStreamData as be, watchGenerationTick as bf, writeDgramHeader as bg, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
1897
+ export { type RecordingBucket as $, type AccessTokenOptions$1 as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, ENVELOPE_KIND as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, GENERATION_TICK_MAX_EXTRAPOLATION_MS as H, type GenerationTick as I, type InboundStatsSample as J, type MediaChunkSource as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaChunkSourceFactory as N, type MediaRecorderChunkSourceOptions as O, type MediaSession as P, type NegotiatorDataLaneSeam as Q, type NegotiatorOptions as R, type PathHealthReporting as S, type PathLiveness as T, type Presence as U, type PresenceState as V, type PrewakeOptions as W, type PrewakeResult as X, type PrewakeStatus as Y, type QuicStreamDataTransport as Z, type Recording as _, type AccessTokenOptions as a, computeBackoffDelay as a$, type RecordingLifecycle as a0, type RecordingStatus as a1, type RecordingsAccessor as a2, type ReleaseSessionBeaconOptions as a3, type RequestOptions as a4, type RequestStreamOptions as a5, type RuntimeArtifact as a6, type RuntimeArtifactDownload as a7, type RuntimeArtifactsAccessor as a8, type RuntimeAvailability as a9, type Store as aA, type StoreOptions as aB, type StreamChunkOptions as aC, type StreamDataTransport as aD, StreamFragmentReassembler as aE, type TransportEstablishedNotify as aF, TransportNegotiator as aG, type TransportOfferRequest as aH, type TransportOfferResponse as aI, TransportSession as aJ, type TransportSessionOptions as aK, TransportSessionSignaling as aL, type TransportState as aM, type VideoPlayoutOptions as aN, WT_CONTROL_FRAME_MAX as aO, WT_DATA_STREAM_VERSION as aP, type WatchGenerationTickOptions as aQ, type WtAudioLaneSeam as aR, type WtAudioUplinkSeam as aS, WtControlDecoder as aT, type WtControlMessage as aU, type WtDataEnvelope as aV, type WtDataLaneSink as aW, WtDataStreamParser as aX, WtDataUplinkSender as aY, type WtVideoUplinkSeam as aZ, allocateSession as a_, type RuntimeWakeDetail as aa, type RuntimeWakeGolden as ab, type RuntimeWakeReasonCode as ac, SIGNALING_PROTOCOL_VERSION as ad, STREAM_END as ae, type Session as af, type SessionDiagnostic as ag, type SessionDirectoryRequestOptions as ah, type SessionDocument as ai, SessionDocumentImpl as aj, type SessionEndResult as ak, type SessionFailureKind as al, type SessionNameSource as am, type SessionPhase as an, type SessionPhaseError as ao, type SessionPhaseName as ap, type SessionStartOptions as aq, type SessionStatsOptions as ar, type SessionStatsSample as as, type SessionStatus as at, type SessionStream as au, type SessionText as av, type SfuAttachCredential as aw, type SignalCarrier as ax, type Signaling as ay, type StartSessionOptions as az, type ActivationEvent as b, consumeWtDataStreams as b0, createPresence as b1, createWebsocketDocConnector as b2, decodeStreamEnvelope as b3, deriveYjsServerUrl as b4, derivedLegName as b5, derivedLegRole as b6, encodeStreamEnvelope as b7, encodeStreamFragments as b8, encodeWtControlFrame as b9, isPendingRecording as ba, isRetryableSessionError as bb, mediaRecorderChunkSource as bc, parseDgramHeader as bd, prewake as be, releaseSessionBeacon as bf, streamDataLabel as bg, transportStreamData as bh, watchGenerationTick as bi, writeDgramHeader as bj, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
@@ -83,6 +83,9 @@ interface SessionGatewayResponse {
83
83
 
84
84
  runtime_reason?: string;
85
85
 
86
+ runtime_ready?: boolean;
87
+ runtime_status?: string;
88
+
86
89
  reason?: string;
87
90
 
88
91
  decision_reason?: string;
@@ -127,6 +130,10 @@ interface AdmissionUpdate {
127
130
  refusalMessage?: string;
128
131
 
129
132
  region?: string | null;
133
+
134
+ runtimeReady?: boolean;
135
+
136
+ runtimeStatus?: 'unbound' | 'starting' | 'ready';
130
137
  }
131
138
  interface AllocateSessionOptions {
132
139
  baseUrl: string;
@@ -323,7 +330,9 @@ declare function createPresence(awareness: Awareness): Presence;
323
330
 
324
331
  type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
325
332
 
326
- type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live' | 'paused' | 'error' | 'unknown';
333
+ type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
334
+
335
+ | 'degraded' | 'paused' | 'error' | 'unknown';
327
336
 
328
337
  interface RuntimeAvailability {
329
338
  state: 'unavailable' | 'starting' | 'busy';
@@ -1239,6 +1248,8 @@ interface AudioBufferSourceLike {
1239
1248
  buffer: AudioBufferLike | null;
1240
1249
  connect(node: unknown): void;
1241
1250
  start(when: number): void;
1251
+ stop(when?: number): void;
1252
+ onended?: ((this: never, ev: never) => void) | null;
1242
1253
  }
1243
1254
 
1244
1255
  interface WtDataUplinkTransport {
@@ -1818,12 +1829,30 @@ declare class SessionTextImpl implements SessionText {
1818
1829
  dispose(): void;
1819
1830
  }
1820
1831
 
1832
+ declare const ENVELOPE_KIND: {
1833
+ readonly BINARY: 0;
1834
+ readonly TEXT: 1;
1835
+ readonly JSON: 2;
1836
+ readonly END: 3;
1837
+
1838
+ readonly CHUNK: 4;
1839
+ };
1840
+
1821
1841
  declare const STREAM_END: unique symbol;
1822
1842
 
1823
1843
  declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
1824
1844
 
1845
+ declare function encodeStreamFragments(payload: unknown): Uint8Array[];
1846
+
1825
1847
  declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
1826
1848
 
1849
+ declare class StreamFragmentReassembler {
1850
+ private _chunks;
1851
+ private _bufferedLength;
1852
+
1853
+ feed(frame: Uint8Array | ArrayBuffer): unknown;
1854
+ }
1855
+
1827
1856
  interface StreamDataTransport {
1828
1857
 
1829
1858
  readonly consumerId: string;
@@ -1865,4 +1894,4 @@ declare function computeBackoffDelay(attempt: number, random?: () => number): nu
1865
1894
 
1866
1895
  declare function isRetryableSessionError(error: unknown): boolean;
1867
1896
 
1868
- export { type RecordingLifecycle as $, type AccessTokenOptions as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, GENERATION_TICK_MAX_EXTRAPOLATION_MS as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, type GenerationTick as H, type InboundStatsSample as I, type MediaChunkSource as J, type MediaChunkSourceFactory as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaRecorderChunkSourceOptions as N, type MediaSession as O, type NegotiatorDataLaneSeam as P, type NegotiatorOptions as Q, type PathHealthReporting as R, type PathLiveness as S, type Presence as T, type PresenceState as U, type PrewakeOptions as V, type PrewakeResult as W, type PrewakeStatus as X, type QuicStreamDataTransport as Y, type Recording as Z, type RecordingBucket as _, type AccessTokenOptions$1 as a, createPresence as a$, type RecordingStatus as a0, type RecordingsAccessor as a1, type ReleaseSessionBeaconOptions as a2, type RequestOptions as a3, type RequestStreamOptions as a4, type RuntimeArtifact as a5, type RuntimeArtifactDownload as a6, type RuntimeArtifactsAccessor as a7, type RuntimeAvailability as a8, type RuntimeWakeDetail as a9, type StoreOptions as aA, type StreamChunkOptions as aB, type StreamDataTransport as aC, type TransportEstablishedNotify as aD, TransportNegotiator as aE, type TransportOfferRequest as aF, type TransportOfferResponse as aG, TransportSession as aH, type TransportSessionOptions as aI, TransportSessionSignaling as aJ, type TransportState as aK, type VideoPlayoutOptions as aL, WT_CONTROL_FRAME_MAX as aM, WT_DATA_STREAM_VERSION as aN, type WatchGenerationTickOptions as aO, type WtAudioLaneSeam as aP, type WtAudioUplinkSeam as aQ, WtControlDecoder as aR, type WtControlMessage as aS, type WtDataEnvelope as aT, type WtDataLaneSink as aU, WtDataStreamParser as aV, WtDataUplinkSender as aW, type WtVideoUplinkSeam as aX, allocateSession as aY, computeBackoffDelay as aZ, consumeWtDataStreams as a_, type RuntimeWakeGolden as aa, type RuntimeWakeReasonCode as ab, SIGNALING_PROTOCOL_VERSION as ac, STREAM_END as ad, type Session as ae, type SessionDiagnostic as af, type SessionDirectoryRequestOptions as ag, type SessionDocument as ah, SessionDocumentImpl as ai, type SessionEndResult as aj, type SessionFailureKind as ak, type SessionNameSource as al, type SessionPhase as am, type SessionPhaseError as an, type SessionPhaseName as ao, type SessionStartOptions as ap, type SessionStatsOptions as aq, type SessionStatsSample as ar, type SessionStatus as as, type SessionStream as at, type SessionText as au, type SfuAttachCredential as av, type SignalCarrier as aw, type Signaling as ax, type StartSessionOptions as ay, type Store as az, type ActivationEvent as b, createWebsocketDocConnector as b0, decodeStreamEnvelope as b1, deriveYjsServerUrl as b2, derivedLegName as b3, derivedLegRole as b4, encodeStreamEnvelope as b5, encodeWtControlFrame as b6, isPendingRecording as b7, isRetryableSessionError as b8, mediaRecorderChunkSource as b9, parseDgramHeader as ba, prewake as bb, releaseSessionBeacon as bc, streamDataLabel as bd, transportStreamData as be, watchGenerationTick as bf, writeDgramHeader as bg, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
1897
+ export { type RecordingBucket as $, type AccessTokenOptions$1 as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, ENVELOPE_KIND as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, GENERATION_TICK_MAX_EXTRAPOLATION_MS as H, type GenerationTick as I, type InboundStatsSample as J, type MediaChunkSource as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaChunkSourceFactory as N, type MediaRecorderChunkSourceOptions as O, type MediaSession as P, type NegotiatorDataLaneSeam as Q, type NegotiatorOptions as R, type PathHealthReporting as S, type PathLiveness as T, type Presence as U, type PresenceState as V, type PrewakeOptions as W, type PrewakeResult as X, type PrewakeStatus as Y, type QuicStreamDataTransport as Z, type Recording as _, type AccessTokenOptions as a, computeBackoffDelay as a$, type RecordingLifecycle as a0, type RecordingStatus as a1, type RecordingsAccessor as a2, type ReleaseSessionBeaconOptions as a3, type RequestOptions as a4, type RequestStreamOptions as a5, type RuntimeArtifact as a6, type RuntimeArtifactDownload as a7, type RuntimeArtifactsAccessor as a8, type RuntimeAvailability as a9, type Store as aA, type StoreOptions as aB, type StreamChunkOptions as aC, type StreamDataTransport as aD, StreamFragmentReassembler as aE, type TransportEstablishedNotify as aF, TransportNegotiator as aG, type TransportOfferRequest as aH, type TransportOfferResponse as aI, TransportSession as aJ, type TransportSessionOptions as aK, TransportSessionSignaling as aL, type TransportState as aM, type VideoPlayoutOptions as aN, WT_CONTROL_FRAME_MAX as aO, WT_DATA_STREAM_VERSION as aP, type WatchGenerationTickOptions as aQ, type WtAudioLaneSeam as aR, type WtAudioUplinkSeam as aS, WtControlDecoder as aT, type WtControlMessage as aU, type WtDataEnvelope as aV, type WtDataLaneSink as aW, WtDataStreamParser as aX, WtDataUplinkSender as aY, type WtVideoUplinkSeam as aZ, allocateSession as a_, type RuntimeWakeDetail as aa, type RuntimeWakeGolden as ab, type RuntimeWakeReasonCode as ac, SIGNALING_PROTOCOL_VERSION as ad, STREAM_END as ae, type Session as af, type SessionDiagnostic as ag, type SessionDirectoryRequestOptions as ah, type SessionDocument as ai, SessionDocumentImpl as aj, type SessionEndResult as ak, type SessionFailureKind as al, type SessionNameSource as am, type SessionPhase as an, type SessionPhaseError as ao, type SessionPhaseName as ap, type SessionStartOptions as aq, type SessionStatsOptions as ar, type SessionStatsSample as as, type SessionStatus as at, type SessionStream as au, type SessionText as av, type SfuAttachCredential as aw, type SignalCarrier as ax, type Signaling as ay, type StartSessionOptions as az, type ActivationEvent as b, consumeWtDataStreams as b0, createPresence as b1, createWebsocketDocConnector as b2, decodeStreamEnvelope as b3, deriveYjsServerUrl as b4, derivedLegName as b5, derivedLegRole as b6, encodeStreamEnvelope as b7, encodeStreamFragments as b8, encodeWtControlFrame as b9, isPendingRecording as ba, isRetryableSessionError as bb, mediaRecorderChunkSource as bc, parseDgramHeader as bd, prewake as be, releaseSessionBeacon as bf, streamDataLabel as bg, transportStreamData as bh, watchGenerationTick as bi, writeDgramHeader as bj, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
@@ -83,6 +83,9 @@ interface SessionGatewayResponse {
83
83
 
84
84
  runtime_reason?: string;
85
85
 
86
+ runtime_ready?: boolean;
87
+ runtime_status?: string;
88
+
86
89
  reason?: string;
87
90
 
88
91
  decision_reason?: string;
@@ -127,6 +130,10 @@ interface AdmissionUpdate {
127
130
  refusalMessage?: string;
128
131
 
129
132
  region?: string | null;
133
+
134
+ runtimeReady?: boolean;
135
+
136
+ runtimeStatus?: 'unbound' | 'starting' | 'ready';
130
137
  }
131
138
  interface AllocateSessionOptions {
132
139
  baseUrl: string;
@@ -323,7 +330,9 @@ declare function createPresence(awareness: Awareness): Presence;
323
330
 
324
331
  type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
325
332
 
326
- type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live' | 'paused' | 'error' | 'unknown';
333
+ type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
334
+
335
+ | 'degraded' | 'paused' | 'error' | 'unknown';
327
336
 
328
337
  interface RuntimeAvailability {
329
338
  state: 'unavailable' | 'starting' | 'busy';
@@ -1239,6 +1248,8 @@ interface AudioBufferSourceLike {
1239
1248
  buffer: AudioBufferLike | null;
1240
1249
  connect(node: unknown): void;
1241
1250
  start(when: number): void;
1251
+ stop(when?: number): void;
1252
+ onended?: ((this: never, ev: never) => void) | null;
1242
1253
  }
1243
1254
 
1244
1255
  interface WtDataUplinkTransport {
@@ -1818,12 +1829,30 @@ declare class SessionTextImpl implements SessionText {
1818
1829
  dispose(): void;
1819
1830
  }
1820
1831
 
1832
+ declare const ENVELOPE_KIND: {
1833
+ readonly BINARY: 0;
1834
+ readonly TEXT: 1;
1835
+ readonly JSON: 2;
1836
+ readonly END: 3;
1837
+
1838
+ readonly CHUNK: 4;
1839
+ };
1840
+
1821
1841
  declare const STREAM_END: unique symbol;
1822
1842
 
1823
1843
  declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
1824
1844
 
1845
+ declare function encodeStreamFragments(payload: unknown): Uint8Array[];
1846
+
1825
1847
  declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
1826
1848
 
1849
+ declare class StreamFragmentReassembler {
1850
+ private _chunks;
1851
+ private _bufferedLength;
1852
+
1853
+ feed(frame: Uint8Array | ArrayBuffer): unknown;
1854
+ }
1855
+
1827
1856
  interface StreamDataTransport {
1828
1857
 
1829
1858
  readonly consumerId: string;
@@ -1865,4 +1894,4 @@ declare function computeBackoffDelay(attempt: number, random?: () => number): nu
1865
1894
 
1866
1895
  declare function isRetryableSessionError(error: unknown): boolean;
1867
1896
 
1868
- export { type RecordingLifecycle as $, type AccessTokenOptions as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, GENERATION_TICK_MAX_EXTRAPOLATION_MS as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, type GenerationTick as H, type InboundStatsSample as I, type MediaChunkSource as J, type MediaChunkSourceFactory as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaRecorderChunkSourceOptions as N, type MediaSession as O, type NegotiatorDataLaneSeam as P, type NegotiatorOptions as Q, type PathHealthReporting as R, type PathLiveness as S, type Presence as T, type PresenceState as U, type PrewakeOptions as V, type PrewakeResult as W, type PrewakeStatus as X, type QuicStreamDataTransport as Y, type Recording as Z, type RecordingBucket as _, type AccessTokenOptions$1 as a, createPresence as a$, type RecordingStatus as a0, type RecordingsAccessor as a1, type ReleaseSessionBeaconOptions as a2, type RequestOptions as a3, type RequestStreamOptions as a4, type RuntimeArtifact as a5, type RuntimeArtifactDownload as a6, type RuntimeArtifactsAccessor as a7, type RuntimeAvailability as a8, type RuntimeWakeDetail as a9, type StoreOptions as aA, type StreamChunkOptions as aB, type StreamDataTransport as aC, type TransportEstablishedNotify as aD, TransportNegotiator as aE, type TransportOfferRequest as aF, type TransportOfferResponse as aG, TransportSession as aH, type TransportSessionOptions as aI, TransportSessionSignaling as aJ, type TransportState as aK, type VideoPlayoutOptions as aL, WT_CONTROL_FRAME_MAX as aM, WT_DATA_STREAM_VERSION as aN, type WatchGenerationTickOptions as aO, type WtAudioLaneSeam as aP, type WtAudioUplinkSeam as aQ, WtControlDecoder as aR, type WtControlMessage as aS, type WtDataEnvelope as aT, type WtDataLaneSink as aU, WtDataStreamParser as aV, WtDataUplinkSender as aW, type WtVideoUplinkSeam as aX, allocateSession as aY, computeBackoffDelay as aZ, consumeWtDataStreams as a_, type RuntimeWakeGolden as aa, type RuntimeWakeReasonCode as ab, SIGNALING_PROTOCOL_VERSION as ac, STREAM_END as ad, type Session as ae, type SessionDiagnostic as af, type SessionDirectoryRequestOptions as ag, type SessionDocument as ah, SessionDocumentImpl as ai, type SessionEndResult as aj, type SessionFailureKind as ak, type SessionNameSource as al, type SessionPhase as am, type SessionPhaseError as an, type SessionPhaseName as ao, type SessionStartOptions as ap, type SessionStatsOptions as aq, type SessionStatsSample as ar, type SessionStatus as as, type SessionStream as at, type SessionText as au, type SfuAttachCredential as av, type SignalCarrier as aw, type Signaling as ax, type StartSessionOptions as ay, type Store as az, type ActivationEvent as b, createWebsocketDocConnector as b0, decodeStreamEnvelope as b1, deriveYjsServerUrl as b2, derivedLegName as b3, derivedLegRole as b4, encodeStreamEnvelope as b5, encodeWtControlFrame as b6, isPendingRecording as b7, isRetryableSessionError as b8, mediaRecorderChunkSource as b9, parseDgramHeader as ba, prewake as bb, releaseSessionBeacon as bc, streamDataLabel as bd, transportStreamData as be, watchGenerationTick as bf, writeDgramHeader as bg, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
1897
+ export { type RecordingBucket as $, type AccessTokenOptions as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, ENVELOPE_KIND as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, GENERATION_TICK_MAX_EXTRAPOLATION_MS as H, type GenerationTick as I, type InboundStatsSample as J, type MediaChunkSource as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaChunkSourceFactory as N, type MediaRecorderChunkSourceOptions as O, type MediaSession as P, type NegotiatorDataLaneSeam as Q, type NegotiatorOptions as R, type PathHealthReporting as S, type PathLiveness as T, type Presence as U, type PresenceState as V, type PrewakeOptions as W, type PrewakeResult as X, type PrewakeStatus as Y, type QuicStreamDataTransport as Z, type Recording as _, type AccessTokenOptions$1 as a, computeBackoffDelay as a$, type RecordingLifecycle as a0, type RecordingStatus as a1, type RecordingsAccessor as a2, type ReleaseSessionBeaconOptions as a3, type RequestOptions as a4, type RequestStreamOptions as a5, type RuntimeArtifact as a6, type RuntimeArtifactDownload as a7, type RuntimeArtifactsAccessor as a8, type RuntimeAvailability as a9, type Store as aA, type StoreOptions as aB, type StreamChunkOptions as aC, type StreamDataTransport as aD, StreamFragmentReassembler as aE, type TransportEstablishedNotify as aF, TransportNegotiator as aG, type TransportOfferRequest as aH, type TransportOfferResponse as aI, TransportSession as aJ, type TransportSessionOptions as aK, TransportSessionSignaling as aL, type TransportState as aM, type VideoPlayoutOptions as aN, WT_CONTROL_FRAME_MAX as aO, WT_DATA_STREAM_VERSION as aP, type WatchGenerationTickOptions as aQ, type WtAudioLaneSeam as aR, type WtAudioUplinkSeam as aS, WtControlDecoder as aT, type WtControlMessage as aU, type WtDataEnvelope as aV, type WtDataLaneSink as aW, WtDataStreamParser as aX, WtDataUplinkSender as aY, type WtVideoUplinkSeam as aZ, allocateSession as a_, type RuntimeWakeDetail as aa, type RuntimeWakeGolden as ab, type RuntimeWakeReasonCode as ac, SIGNALING_PROTOCOL_VERSION as ad, STREAM_END as ae, type Session as af, type SessionDiagnostic as ag, type SessionDirectoryRequestOptions as ah, type SessionDocument as ai, SessionDocumentImpl as aj, type SessionEndResult as ak, type SessionFailureKind as al, type SessionNameSource as am, type SessionPhase as an, type SessionPhaseError as ao, type SessionPhaseName as ap, type SessionStartOptions as aq, type SessionStatsOptions as ar, type SessionStatsSample as as, type SessionStatus as at, type SessionStream as au, type SessionText as av, type SfuAttachCredential as aw, type SignalCarrier as ax, type Signaling as ay, type StartSessionOptions as az, type ActivationEvent as b, consumeWtDataStreams as b0, createPresence as b1, createWebsocketDocConnector as b2, decodeStreamEnvelope as b3, deriveYjsServerUrl as b4, derivedLegName as b5, derivedLegRole as b6, encodeStreamEnvelope as b7, encodeStreamFragments as b8, encodeWtControlFrame as b9, isPendingRecording as ba, isRetryableSessionError as bb, mediaRecorderChunkSource as bc, parseDgramHeader as bd, prewake as be, releaseSessionBeacon as bf, streamDataLabel as bg, transportStreamData as bh, watchGenerationTick as bi, writeDgramHeader as bj, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
@@ -83,6 +83,9 @@ interface SessionGatewayResponse {
83
83
 
84
84
  runtime_reason?: string;
85
85
 
86
+ runtime_ready?: boolean;
87
+ runtime_status?: string;
88
+
86
89
  reason?: string;
87
90
 
88
91
  decision_reason?: string;
@@ -127,6 +130,10 @@ interface AdmissionUpdate {
127
130
  refusalMessage?: string;
128
131
 
129
132
  region?: string | null;
133
+
134
+ runtimeReady?: boolean;
135
+
136
+ runtimeStatus?: 'unbound' | 'starting' | 'ready';
130
137
  }
131
138
  interface AllocateSessionOptions {
132
139
  baseUrl: string;
@@ -323,7 +330,9 @@ declare function createPresence(awareness: Awareness): Presence;
323
330
 
324
331
  type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
325
332
 
326
- type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live' | 'paused' | 'error' | 'unknown';
333
+ type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
334
+
335
+ | 'degraded' | 'paused' | 'error' | 'unknown';
327
336
 
328
337
  interface RuntimeAvailability {
329
338
  state: 'unavailable' | 'starting' | 'busy';
@@ -1239,6 +1248,8 @@ interface AudioBufferSourceLike {
1239
1248
  buffer: AudioBufferLike | null;
1240
1249
  connect(node: unknown): void;
1241
1250
  start(when: number): void;
1251
+ stop(when?: number): void;
1252
+ onended?: ((this: never, ev: never) => void) | null;
1242
1253
  }
1243
1254
 
1244
1255
  interface WtDataUplinkTransport {
@@ -1818,12 +1829,30 @@ declare class SessionTextImpl implements SessionText {
1818
1829
  dispose(): void;
1819
1830
  }
1820
1831
 
1832
+ declare const ENVELOPE_KIND: {
1833
+ readonly BINARY: 0;
1834
+ readonly TEXT: 1;
1835
+ readonly JSON: 2;
1836
+ readonly END: 3;
1837
+
1838
+ readonly CHUNK: 4;
1839
+ };
1840
+
1821
1841
  declare const STREAM_END: unique symbol;
1822
1842
 
1823
1843
  declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
1824
1844
 
1845
+ declare function encodeStreamFragments(payload: unknown): Uint8Array[];
1846
+
1825
1847
  declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
1826
1848
 
1849
+ declare class StreamFragmentReassembler {
1850
+ private _chunks;
1851
+ private _bufferedLength;
1852
+
1853
+ feed(frame: Uint8Array | ArrayBuffer): unknown;
1854
+ }
1855
+
1827
1856
  interface StreamDataTransport {
1828
1857
 
1829
1858
  readonly consumerId: string;
@@ -1865,4 +1894,4 @@ declare function computeBackoffDelay(attempt: number, random?: () => number): nu
1865
1894
 
1866
1895
  declare function isRetryableSessionError(error: unknown): boolean;
1867
1896
 
1868
- export { type RecordingLifecycle as $, type AccessTokenOptions$1 as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, GENERATION_TICK_MAX_EXTRAPOLATION_MS as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, type GenerationTick as H, type InboundStatsSample as I, type MediaChunkSource as J, type MediaChunkSourceFactory as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaRecorderChunkSourceOptions as N, type MediaSession as O, type NegotiatorDataLaneSeam as P, type NegotiatorOptions as Q, type PathHealthReporting as R, type PathLiveness as S, type Presence as T, type PresenceState as U, type PrewakeOptions as V, type PrewakeResult as W, type PrewakeStatus as X, type QuicStreamDataTransport as Y, type Recording as Z, type RecordingBucket as _, type AccessTokenOptions as a, createPresence as a$, type RecordingStatus as a0, type RecordingsAccessor as a1, type ReleaseSessionBeaconOptions as a2, type RequestOptions as a3, type RequestStreamOptions as a4, type RuntimeArtifact as a5, type RuntimeArtifactDownload as a6, type RuntimeArtifactsAccessor as a7, type RuntimeAvailability as a8, type RuntimeWakeDetail as a9, type StoreOptions as aA, type StreamChunkOptions as aB, type StreamDataTransport as aC, type TransportEstablishedNotify as aD, TransportNegotiator as aE, type TransportOfferRequest as aF, type TransportOfferResponse as aG, TransportSession as aH, type TransportSessionOptions as aI, TransportSessionSignaling as aJ, type TransportState as aK, type VideoPlayoutOptions as aL, WT_CONTROL_FRAME_MAX as aM, WT_DATA_STREAM_VERSION as aN, type WatchGenerationTickOptions as aO, type WtAudioLaneSeam as aP, type WtAudioUplinkSeam as aQ, WtControlDecoder as aR, type WtControlMessage as aS, type WtDataEnvelope as aT, type WtDataLaneSink as aU, WtDataStreamParser as aV, WtDataUplinkSender as aW, type WtVideoUplinkSeam as aX, allocateSession as aY, computeBackoffDelay as aZ, consumeWtDataStreams as a_, type RuntimeWakeGolden as aa, type RuntimeWakeReasonCode as ab, SIGNALING_PROTOCOL_VERSION as ac, STREAM_END as ad, type Session as ae, type SessionDiagnostic as af, type SessionDirectoryRequestOptions as ag, type SessionDocument as ah, SessionDocumentImpl as ai, type SessionEndResult as aj, type SessionFailureKind as ak, type SessionNameSource as al, type SessionPhase as am, type SessionPhaseError as an, type SessionPhaseName as ao, type SessionStartOptions as ap, type SessionStatsOptions as aq, type SessionStatsSample as ar, type SessionStatus as as, type SessionStream as at, type SessionText as au, type SfuAttachCredential as av, type SignalCarrier as aw, type Signaling as ax, type StartSessionOptions as ay, type Store as az, type ActivationEvent as b, createWebsocketDocConnector as b0, decodeStreamEnvelope as b1, deriveYjsServerUrl as b2, derivedLegName as b3, derivedLegRole as b4, encodeStreamEnvelope as b5, encodeWtControlFrame as b6, isPendingRecording as b7, isRetryableSessionError as b8, mediaRecorderChunkSource as b9, parseDgramHeader as ba, prewake as bb, releaseSessionBeacon as bc, streamDataLabel as bd, transportStreamData as be, watchGenerationTick as bf, writeDgramHeader as bg, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
1897
+ export { type RecordingBucket as $, type AccessTokenOptions as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, ENVELOPE_KIND as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, GENERATION_TICK_MAX_EXTRAPOLATION_MS as H, type GenerationTick as I, type InboundStatsSample as J, type MediaChunkSource as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaChunkSourceFactory as N, type MediaRecorderChunkSourceOptions as O, type MediaSession as P, type NegotiatorDataLaneSeam as Q, type NegotiatorOptions as R, type PathHealthReporting as S, type PathLiveness as T, type Presence as U, type PresenceState as V, type PrewakeOptions as W, type PrewakeResult as X, type PrewakeStatus as Y, type QuicStreamDataTransport as Z, type Recording as _, type AccessTokenOptions$1 as a, computeBackoffDelay as a$, type RecordingLifecycle as a0, type RecordingStatus as a1, type RecordingsAccessor as a2, type ReleaseSessionBeaconOptions as a3, type RequestOptions as a4, type RequestStreamOptions as a5, type RuntimeArtifact as a6, type RuntimeArtifactDownload as a7, type RuntimeArtifactsAccessor as a8, type RuntimeAvailability as a9, type Store as aA, type StoreOptions as aB, type StreamChunkOptions as aC, type StreamDataTransport as aD, StreamFragmentReassembler as aE, type TransportEstablishedNotify as aF, TransportNegotiator as aG, type TransportOfferRequest as aH, type TransportOfferResponse as aI, TransportSession as aJ, type TransportSessionOptions as aK, TransportSessionSignaling as aL, type TransportState as aM, type VideoPlayoutOptions as aN, WT_CONTROL_FRAME_MAX as aO, WT_DATA_STREAM_VERSION as aP, type WatchGenerationTickOptions as aQ, type WtAudioLaneSeam as aR, type WtAudioUplinkSeam as aS, WtControlDecoder as aT, type WtControlMessage as aU, type WtDataEnvelope as aV, type WtDataLaneSink as aW, WtDataStreamParser as aX, WtDataUplinkSender as aY, type WtVideoUplinkSeam as aZ, allocateSession as a_, type RuntimeWakeDetail as aa, type RuntimeWakeGolden as ab, type RuntimeWakeReasonCode as ac, SIGNALING_PROTOCOL_VERSION as ad, STREAM_END as ae, type Session as af, type SessionDiagnostic as ag, type SessionDirectoryRequestOptions as ah, type SessionDocument as ai, SessionDocumentImpl as aj, type SessionEndResult as ak, type SessionFailureKind as al, type SessionNameSource as am, type SessionPhase as an, type SessionPhaseError as ao, type SessionPhaseName as ap, type SessionStartOptions as aq, type SessionStatsOptions as ar, type SessionStatsSample as as, type SessionStatus as at, type SessionStream as au, type SessionText as av, type SfuAttachCredential as aw, type SignalCarrier as ax, type Signaling as ay, type StartSessionOptions as az, type ActivationEvent as b, consumeWtDataStreams as b0, createPresence as b1, createWebsocketDocConnector as b2, decodeStreamEnvelope as b3, deriveYjsServerUrl as b4, derivedLegName as b5, derivedLegRole as b6, encodeStreamEnvelope as b7, encodeStreamFragments as b8, encodeWtControlFrame as b9, isPendingRecording as ba, isRetryableSessionError as bb, mediaRecorderChunkSource as bc, parseDgramHeader as bd, prewake as be, releaseSessionBeacon as bf, streamDataLabel as bg, transportStreamData as bh, watchGenerationTick as bi, writeDgramHeader as bj, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };