@urun-sh/core 0.3.6 → 0.4.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.
package/dist/internal.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
2
- import{$ as f,G as r,J as t,K as n,L as a,M as s,R as p,S as c,T as l,Y as m,Z as i,_ as S,a as e,aa as x,b as o,ba as C,ca as D}from"./chunk-FSUNC7FS.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,r as allocateSession,D as createPresence,f as createWebsocketDocConnector,S as deriveYjsServerUrl,s as ensureNodeWebRTC,t as isNodeRuntime,n as nodeMediasoupHandlerName,a as nodeWebRTCUnavailableReason,l as streamDataLabel,c as transportStreamData};
2
+ import{$ as m,G as r,M as t,N as n,O as a,P as s,U as p,V as c,W as l,a as e,aa as i,b as o,ba as S,ca as f,da as x,ea as C,fa as D}from"./chunk-D3CIQIUV.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,r as allocateSession,D as createPresence,f as createWebsocketDocConnector,S as deriveYjsServerUrl,s as ensureNodeWebRTC,t as isNodeRuntime,n as nodeMediasoupHandlerName,a as nodeWebRTCUnavailableReason,l as streamDataLabel,c as transportStreamData};
@@ -138,7 +138,7 @@ declare function createPresence(awareness: Awareness): Presence;
138
138
 
139
139
  type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
140
140
 
141
- type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live' | 'error' | 'ended' | 'expired' | 'unknown';
141
+ type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live' | 'paused' | 'error' | 'unknown';
142
142
 
143
143
  interface RuntimeAvailability {
144
144
  state: 'unavailable' | 'starting' | 'busy';
@@ -177,7 +177,7 @@ type RuntimeWakeDetail = (RuntimeWakeDetailBase & {
177
177
  golden?: never;
178
178
  });
179
179
 
180
- type SessionFailureKind = 'create-failed' | 'never-live' | 'transport-failed' | 'media-permission' | 'ended' | 'runtime-failed' | 'expired' | 'insufficient-credits' | 'produce-timeout';
180
+ type SessionFailureKind = 'create-failed' | 'never-live' | 'transport-failed' | 'media-permission' | 'runtime-failed' | 'insufficient-credits' | 'produce-timeout';
181
181
 
182
182
  interface SessionPhaseError {
183
183
 
@@ -521,6 +521,8 @@ interface Session {
521
521
 
522
522
  end(): Promise<SessionEndResult>;
523
523
 
524
+ detach(): void;
525
+
524
526
  disconnect(): void;
525
527
  }
526
528
 
@@ -661,8 +663,15 @@ interface AttachOptions {
661
663
  functionsUrl?: string;
662
664
  }
663
665
 
666
+ interface StartSessionOptions {
667
+
668
+ sessionId?: string;
669
+
670
+ label?: string;
671
+ }
672
+
664
673
  interface App {
665
- [fnName: string]: (args?: Record<string, unknown>) => Session;
674
+ [fnName: string]: (args?: Record<string, unknown>, options?: StartSessionOptions) => Session;
666
675
  }
667
676
 
668
677
  type SessionGatewayStatus = 'allocated' | 'pending' | 'queued' | 'rejected' | 'failed' | 'canceled'
@@ -733,6 +742,8 @@ interface AllocateSessionOptions {
733
742
 
734
743
  sessionKey?: string;
735
744
 
745
+ label?: string;
746
+
736
747
  priority?: 'preempt';
737
748
  }
738
749
  interface AccessTokenOptions {
@@ -760,6 +771,15 @@ interface ReleaseSessionBeaconOptions {
760
771
 
761
772
  declare function releaseSessionBeacon(options: ReleaseSessionBeaconOptions): void;
762
773
  declare function allocateSession(options: AllocateSessionOptions): Promise<AllocatedSession>;
774
+
775
+ interface SessionDirectoryRequestOptions {
776
+ baseUrl: string;
777
+ fallbackUrls?: readonly string[];
778
+ orgId: string;
779
+ jwt?: string;
780
+ getAccessToken?: AllocateSessionOptions['getAccessToken'];
781
+ authProvider?: string;
782
+ }
763
783
  interface PrewakeOptions {
764
784
  baseUrl: string;
765
785
 
@@ -900,6 +920,19 @@ interface WtIncomingUniStreams {
900
920
 
901
921
  declare function consumeWtDataStreams(incoming: WtIncomingUniStreams, sink: WtDataLaneSink): Promise<void>;
902
922
 
923
+ interface PathLiveness {
924
+
925
+ alive: boolean;
926
+
927
+ evidence: string;
928
+ }
929
+
930
+ interface PathHealthReporting {
931
+
932
+ pathLiveness(): PathLiveness;
933
+
934
+ fail(reason: string): void;
935
+ }
903
936
  interface MediaSession {
904
937
  readonly kind: 'webtransport' | 'webrtc';
905
938
  start(): Promise<void>;
@@ -1137,8 +1170,12 @@ declare class TransportNegotiator {
1137
1170
  private quicDataLane;
1138
1171
 
1139
1172
  private wtOnlyLeg;
1173
+
1174
+ private webRtcDialProceeded;
1140
1175
  constructor(signaling: Signaling, sessionId: string, opts: NegotiatorOptions);
1141
1176
  get activeTransport(): MediaSession['kind'] | null;
1177
+
1178
+ get isWtOnlyLeg(): boolean;
1142
1179
  connect(): Promise<MediaSession>;
1143
1180
  disconnect(): Promise<void>;
1144
1181
 
@@ -1152,6 +1189,10 @@ declare class TransportNegotiator {
1152
1189
  private startWebRtcOn;
1153
1190
  private startWebRtc;
1154
1191
 
1192
+ private skipWebRtcDial;
1193
+
1194
+ private proceedWebRtcDial;
1195
+
1155
1196
  private armFailover;
1156
1197
  private notifyEstablished;
1157
1198
  }
@@ -1287,6 +1328,8 @@ declare class TransportSession {
1287
1328
 
1288
1329
  private _selfEpochAdoptUntil;
1289
1330
 
1331
+ private _pausedIncarnation;
1332
+
1290
1333
  private _consumerId;
1291
1334
 
1292
1335
  private _streamDataHandlers;
@@ -1342,6 +1385,8 @@ declare class TransportSession {
1342
1385
  isStaleIncarnation(epoch: number): boolean;
1343
1386
 
1344
1387
  isStaleClosedMarker(marker: Record<string, unknown> | null | undefined): boolean;
1388
+
1389
+ private _isStaleLivenessEvidence;
1345
1390
  connect(startOptions?: SessionStartOptions): Promise<void>;
1346
1391
 
1347
1392
  leaveLeg(): boolean;
@@ -1493,7 +1538,7 @@ declare class TransportSession {
1493
1538
  private _setState;
1494
1539
 
1495
1540
 
1496
- private _isTerminalPhase;
1541
+ private _isParkedPhase;
1497
1542
  private _setPhase;
1498
1543
 
1499
1544
  reportAdmission(update: {
@@ -1603,4 +1648,4 @@ interface DataChannelTransport {
1603
1648
 
1604
1649
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
1605
1650
 
1606
- export { type RuntimeArtifact as $, type AccessTokenOptions$1 as A, type MediaChunkSource as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type MediaChunkSourceFactory as E, type MediaRecorderChunkSourceOptions as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, type MediaSession as H, type InboundStatsSample as I, type NegotiatorOptions as J, type PresenceState as K, LoopbackStreamData as L, type MediaChunkBinding as M, type NegotiatorDataLaneSeam as N, type PrewakeOptions as O, type Presence as P, type PrewakeResult as Q, type PrewakeStatus as R, type QuicStreamDataTransport as S, type Recording as T, type RecordingBucket as U, type RecordingLifecycle as V, type RecordingStatus as W, type RecordingsAccessor as X, type ReleaseSessionBeaconOptions as Y, type RequestOptions as Z, type RequestStreamOptions as _, type AccessTokenOptions as a, prewake as a$, type RuntimeArtifactDownload as a0, type RuntimeArtifactsAccessor as a1, type RuntimeAvailability as a2, type RuntimeWakeDetail as a3, type RuntimeWakeGolden as a4, type RuntimeWakeReasonCode as a5, SIGNALING_PROTOCOL_VERSION as a6, STREAM_END as a7, type Session as a8, type SessionDiagnostic as a9, type TransportState as aA, type VideoPlayoutOptions as aB, WT_CONTROL_FRAME_MAX as aC, WT_DATA_STREAM_VERSION as aD, type WatchGenerationTickOptions as aE, type WtAudioLaneSeam as aF, type WtAudioUplinkSeam as aG, WtControlDecoder as aH, type WtControlMessage as aI, type WtDataEnvelope as aJ, type WtDataLaneSink as aK, WtDataStreamParser as aL, WtDataUplinkSender as aM, type WtVideoUplinkSeam as aN, allocateSession as aO, consumeWtDataStreams as aP, createPresence as aQ, createWebsocketDocConnector as aR, decodeStreamEnvelope as aS, deriveYjsServerUrl as aT, derivedLegName as aU, derivedLegRole as aV, encodeStreamEnvelope as aW, encodeWtControlFrame as aX, isPendingRecording as aY, mediaRecorderChunkSource as aZ, parseDgramHeader as a_, type SessionDocument as aa, SessionDocumentImpl as ab, type SessionEndResult as ac, type SessionFailureKind as ad, type SessionPhase as ae, type SessionPhaseError as af, type SessionPhaseName as ag, type SessionStartOptions as ah, type SessionStatsOptions as ai, type SessionStatsSample as aj, type SessionStatus as ak, type SessionStream as al, type SessionText as am, type SignalCarrier as an, type Signaling as ao, type Store as ap, type StoreOptions as aq, type StreamChunkOptions as ar, type StreamDataTransport as as, type TransportEstablishedNotify as at, TransportNegotiator as au, type TransportOfferRequest as av, type TransportOfferResponse as aw, TransportSession as ax, type TransportSessionOptions as ay, TransportSessionSignaling as az, type ActivationEvent as b, releaseSessionBeacon as b0, streamDataLabel as b1, transportStreamData as b2, watchGenerationTick as b3, writeDgramHeader as b4, type ActivationState as c, type AllocateSessionOptions as d, type AllocatedSession as e, type App as f, type AppOptions as g, type AttachOptions as h, type AudioPlayoutOptions as i, type ChannelMessage as j, ChannelMultiplexer as k, type ChannelName as l, type ChunkReadable as m, DGRAM_HEADER_BYTES as n, DOC_SYNC_WIRE_CONTRACT_VERSION as o, DeferredChannelMultiplexer as p, DeferredDocConnector as q, type DerivedLegRole as r, type DgramHeader as s, type DocConnection as t, type DocConnectionState as u, type DocConnector as v, type DocServerUrlResolver as w, type DocTokenSupplier as x, GENERATION_TICK_MAX_EXTRAPOLATION_MS as y, type GenerationTick as z };
1651
+ export { type RequestOptions as $, type AccessTokenOptions$1 as A, type MediaChunkSource as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type MediaChunkSourceFactory as E, type MediaRecorderChunkSourceOptions as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, type MediaSession as H, type InboundStatsSample as I, type NegotiatorOptions as J, type PathLiveness as K, LoopbackStreamData as L, type MediaChunkBinding as M, type NegotiatorDataLaneSeam as N, type Presence as O, type PathHealthReporting as P, type PresenceState as Q, type PrewakeOptions as R, type PrewakeResult as S, type PrewakeStatus as T, type QuicStreamDataTransport as U, type Recording as V, type RecordingBucket as W, type RecordingLifecycle as X, type RecordingStatus as Y, type RecordingsAccessor as Z, type ReleaseSessionBeaconOptions as _, type AccessTokenOptions as a, encodeWtControlFrame as a$, type RequestStreamOptions as a0, type RuntimeArtifact as a1, type RuntimeArtifactDownload as a2, type RuntimeArtifactsAccessor as a3, type RuntimeAvailability as a4, type RuntimeWakeDetail as a5, type RuntimeWakeGolden as a6, type RuntimeWakeReasonCode as a7, SIGNALING_PROTOCOL_VERSION as a8, STREAM_END as a9, type TransportOfferResponse as aA, TransportSession as aB, type TransportSessionOptions as aC, TransportSessionSignaling as aD, type TransportState as aE, type VideoPlayoutOptions as aF, WT_CONTROL_FRAME_MAX as aG, WT_DATA_STREAM_VERSION as aH, type WatchGenerationTickOptions as aI, type WtAudioLaneSeam as aJ, type WtAudioUplinkSeam as aK, WtControlDecoder as aL, type WtControlMessage as aM, type WtDataEnvelope as aN, type WtDataLaneSink as aO, WtDataStreamParser as aP, WtDataUplinkSender as aQ, type WtVideoUplinkSeam as aR, allocateSession as aS, consumeWtDataStreams as aT, createPresence as aU, createWebsocketDocConnector as aV, decodeStreamEnvelope as aW, deriveYjsServerUrl as aX, derivedLegName as aY, derivedLegRole as aZ, encodeStreamEnvelope as a_, type Session as aa, type SessionDiagnostic as ab, type SessionDirectoryRequestOptions as ac, type SessionDocument as ad, SessionDocumentImpl as ae, type SessionEndResult as af, type SessionFailureKind as ag, type SessionPhase as ah, type SessionPhaseError as ai, type SessionPhaseName as aj, type SessionStartOptions as ak, type SessionStatsOptions as al, type SessionStatsSample as am, type SessionStatus as an, type SessionStream as ao, type SessionText as ap, type SignalCarrier as aq, type Signaling as ar, type StartSessionOptions as as, type Store as at, type StoreOptions as au, type StreamChunkOptions as av, type StreamDataTransport as aw, type TransportEstablishedNotify as ax, TransportNegotiator as ay, type TransportOfferRequest as az, type ActivationEvent as b, isPendingRecording as b0, mediaRecorderChunkSource as b1, parseDgramHeader as b2, prewake as b3, releaseSessionBeacon as b4, streamDataLabel as b5, transportStreamData as b6, watchGenerationTick as b7, writeDgramHeader as b8, type ActivationState as c, type AllocateSessionOptions as d, type AllocatedSession as e, type App as f, type AppOptions as g, type AttachOptions as h, type AudioPlayoutOptions as i, type ChannelMessage as j, ChannelMultiplexer as k, type ChannelName as l, type ChunkReadable as m, DGRAM_HEADER_BYTES as n, DOC_SYNC_WIRE_CONTRACT_VERSION as o, DeferredChannelMultiplexer as p, DeferredDocConnector as q, type DerivedLegRole as r, type DgramHeader as s, type DocConnection as t, type DocConnectionState as u, type DocConnector as v, type DocServerUrlResolver as w, type DocTokenSupplier as x, GENERATION_TICK_MAX_EXTRAPOLATION_MS as y, type GenerationTick as z };
@@ -138,7 +138,7 @@ declare function createPresence(awareness: Awareness): Presence;
138
138
 
139
139
  type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
140
140
 
141
- type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live' | 'error' | 'ended' | 'expired' | 'unknown';
141
+ type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live' | 'paused' | 'error' | 'unknown';
142
142
 
143
143
  interface RuntimeAvailability {
144
144
  state: 'unavailable' | 'starting' | 'busy';
@@ -177,7 +177,7 @@ type RuntimeWakeDetail = (RuntimeWakeDetailBase & {
177
177
  golden?: never;
178
178
  });
179
179
 
180
- type SessionFailureKind = 'create-failed' | 'never-live' | 'transport-failed' | 'media-permission' | 'ended' | 'runtime-failed' | 'expired' | 'insufficient-credits' | 'produce-timeout';
180
+ type SessionFailureKind = 'create-failed' | 'never-live' | 'transport-failed' | 'media-permission' | 'runtime-failed' | 'insufficient-credits' | 'produce-timeout';
181
181
 
182
182
  interface SessionPhaseError {
183
183
 
@@ -521,6 +521,8 @@ interface Session {
521
521
 
522
522
  end(): Promise<SessionEndResult>;
523
523
 
524
+ detach(): void;
525
+
524
526
  disconnect(): void;
525
527
  }
526
528
 
@@ -661,8 +663,15 @@ interface AttachOptions {
661
663
  functionsUrl?: string;
662
664
  }
663
665
 
666
+ interface StartSessionOptions {
667
+
668
+ sessionId?: string;
669
+
670
+ label?: string;
671
+ }
672
+
664
673
  interface App {
665
- [fnName: string]: (args?: Record<string, unknown>) => Session;
674
+ [fnName: string]: (args?: Record<string, unknown>, options?: StartSessionOptions) => Session;
666
675
  }
667
676
 
668
677
  type SessionGatewayStatus = 'allocated' | 'pending' | 'queued' | 'rejected' | 'failed' | 'canceled'
@@ -733,6 +742,8 @@ interface AllocateSessionOptions {
733
742
 
734
743
  sessionKey?: string;
735
744
 
745
+ label?: string;
746
+
736
747
  priority?: 'preempt';
737
748
  }
738
749
  interface AccessTokenOptions {
@@ -760,6 +771,15 @@ interface ReleaseSessionBeaconOptions {
760
771
 
761
772
  declare function releaseSessionBeacon(options: ReleaseSessionBeaconOptions): void;
762
773
  declare function allocateSession(options: AllocateSessionOptions): Promise<AllocatedSession>;
774
+
775
+ interface SessionDirectoryRequestOptions {
776
+ baseUrl: string;
777
+ fallbackUrls?: readonly string[];
778
+ orgId: string;
779
+ jwt?: string;
780
+ getAccessToken?: AllocateSessionOptions['getAccessToken'];
781
+ authProvider?: string;
782
+ }
763
783
  interface PrewakeOptions {
764
784
  baseUrl: string;
765
785
 
@@ -900,6 +920,19 @@ interface WtIncomingUniStreams {
900
920
 
901
921
  declare function consumeWtDataStreams(incoming: WtIncomingUniStreams, sink: WtDataLaneSink): Promise<void>;
902
922
 
923
+ interface PathLiveness {
924
+
925
+ alive: boolean;
926
+
927
+ evidence: string;
928
+ }
929
+
930
+ interface PathHealthReporting {
931
+
932
+ pathLiveness(): PathLiveness;
933
+
934
+ fail(reason: string): void;
935
+ }
903
936
  interface MediaSession {
904
937
  readonly kind: 'webtransport' | 'webrtc';
905
938
  start(): Promise<void>;
@@ -1137,8 +1170,12 @@ declare class TransportNegotiator {
1137
1170
  private quicDataLane;
1138
1171
 
1139
1172
  private wtOnlyLeg;
1173
+
1174
+ private webRtcDialProceeded;
1140
1175
  constructor(signaling: Signaling, sessionId: string, opts: NegotiatorOptions);
1141
1176
  get activeTransport(): MediaSession['kind'] | null;
1177
+
1178
+ get isWtOnlyLeg(): boolean;
1142
1179
  connect(): Promise<MediaSession>;
1143
1180
  disconnect(): Promise<void>;
1144
1181
 
@@ -1152,6 +1189,10 @@ declare class TransportNegotiator {
1152
1189
  private startWebRtcOn;
1153
1190
  private startWebRtc;
1154
1191
 
1192
+ private skipWebRtcDial;
1193
+
1194
+ private proceedWebRtcDial;
1195
+
1155
1196
  private armFailover;
1156
1197
  private notifyEstablished;
1157
1198
  }
@@ -1287,6 +1328,8 @@ declare class TransportSession {
1287
1328
 
1288
1329
  private _selfEpochAdoptUntil;
1289
1330
 
1331
+ private _pausedIncarnation;
1332
+
1290
1333
  private _consumerId;
1291
1334
 
1292
1335
  private _streamDataHandlers;
@@ -1342,6 +1385,8 @@ declare class TransportSession {
1342
1385
  isStaleIncarnation(epoch: number): boolean;
1343
1386
 
1344
1387
  isStaleClosedMarker(marker: Record<string, unknown> | null | undefined): boolean;
1388
+
1389
+ private _isStaleLivenessEvidence;
1345
1390
  connect(startOptions?: SessionStartOptions): Promise<void>;
1346
1391
 
1347
1392
  leaveLeg(): boolean;
@@ -1493,7 +1538,7 @@ declare class TransportSession {
1493
1538
  private _setState;
1494
1539
 
1495
1540
 
1496
- private _isTerminalPhase;
1541
+ private _isParkedPhase;
1497
1542
  private _setPhase;
1498
1543
 
1499
1544
  reportAdmission(update: {
@@ -1603,4 +1648,4 @@ interface DataChannelTransport {
1603
1648
 
1604
1649
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
1605
1650
 
1606
- export { type RuntimeArtifact as $, type AccessTokenOptions$1 as A, type MediaChunkSource as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type MediaChunkSourceFactory as E, type MediaRecorderChunkSourceOptions as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, type MediaSession as H, type InboundStatsSample as I, type NegotiatorOptions as J, type PresenceState as K, LoopbackStreamData as L, type MediaChunkBinding as M, type NegotiatorDataLaneSeam as N, type PrewakeOptions as O, type Presence as P, type PrewakeResult as Q, type PrewakeStatus as R, type QuicStreamDataTransport as S, type Recording as T, type RecordingBucket as U, type RecordingLifecycle as V, type RecordingStatus as W, type RecordingsAccessor as X, type ReleaseSessionBeaconOptions as Y, type RequestOptions as Z, type RequestStreamOptions as _, type AccessTokenOptions as a, prewake as a$, type RuntimeArtifactDownload as a0, type RuntimeArtifactsAccessor as a1, type RuntimeAvailability as a2, type RuntimeWakeDetail as a3, type RuntimeWakeGolden as a4, type RuntimeWakeReasonCode as a5, SIGNALING_PROTOCOL_VERSION as a6, STREAM_END as a7, type Session as a8, type SessionDiagnostic as a9, type TransportState as aA, type VideoPlayoutOptions as aB, WT_CONTROL_FRAME_MAX as aC, WT_DATA_STREAM_VERSION as aD, type WatchGenerationTickOptions as aE, type WtAudioLaneSeam as aF, type WtAudioUplinkSeam as aG, WtControlDecoder as aH, type WtControlMessage as aI, type WtDataEnvelope as aJ, type WtDataLaneSink as aK, WtDataStreamParser as aL, WtDataUplinkSender as aM, type WtVideoUplinkSeam as aN, allocateSession as aO, consumeWtDataStreams as aP, createPresence as aQ, createWebsocketDocConnector as aR, decodeStreamEnvelope as aS, deriveYjsServerUrl as aT, derivedLegName as aU, derivedLegRole as aV, encodeStreamEnvelope as aW, encodeWtControlFrame as aX, isPendingRecording as aY, mediaRecorderChunkSource as aZ, parseDgramHeader as a_, type SessionDocument as aa, SessionDocumentImpl as ab, type SessionEndResult as ac, type SessionFailureKind as ad, type SessionPhase as ae, type SessionPhaseError as af, type SessionPhaseName as ag, type SessionStartOptions as ah, type SessionStatsOptions as ai, type SessionStatsSample as aj, type SessionStatus as ak, type SessionStream as al, type SessionText as am, type SignalCarrier as an, type Signaling as ao, type Store as ap, type StoreOptions as aq, type StreamChunkOptions as ar, type StreamDataTransport as as, type TransportEstablishedNotify as at, TransportNegotiator as au, type TransportOfferRequest as av, type TransportOfferResponse as aw, TransportSession as ax, type TransportSessionOptions as ay, TransportSessionSignaling as az, type ActivationEvent as b, releaseSessionBeacon as b0, streamDataLabel as b1, transportStreamData as b2, watchGenerationTick as b3, writeDgramHeader as b4, type ActivationState as c, type AllocateSessionOptions as d, type AllocatedSession as e, type App as f, type AppOptions as g, type AttachOptions as h, type AudioPlayoutOptions as i, type ChannelMessage as j, ChannelMultiplexer as k, type ChannelName as l, type ChunkReadable as m, DGRAM_HEADER_BYTES as n, DOC_SYNC_WIRE_CONTRACT_VERSION as o, DeferredChannelMultiplexer as p, DeferredDocConnector as q, type DerivedLegRole as r, type DgramHeader as s, type DocConnection as t, type DocConnectionState as u, type DocConnector as v, type DocServerUrlResolver as w, type DocTokenSupplier as x, GENERATION_TICK_MAX_EXTRAPOLATION_MS as y, type GenerationTick as z };
1651
+ export { type RequestOptions as $, type AccessTokenOptions$1 as A, type MediaChunkSource as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type MediaChunkSourceFactory as E, type MediaRecorderChunkSourceOptions as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, type MediaSession as H, type InboundStatsSample as I, type NegotiatorOptions as J, type PathLiveness as K, LoopbackStreamData as L, type MediaChunkBinding as M, type NegotiatorDataLaneSeam as N, type Presence as O, type PathHealthReporting as P, type PresenceState as Q, type PrewakeOptions as R, type PrewakeResult as S, type PrewakeStatus as T, type QuicStreamDataTransport as U, type Recording as V, type RecordingBucket as W, type RecordingLifecycle as X, type RecordingStatus as Y, type RecordingsAccessor as Z, type ReleaseSessionBeaconOptions as _, type AccessTokenOptions as a, encodeWtControlFrame as a$, type RequestStreamOptions as a0, type RuntimeArtifact as a1, type RuntimeArtifactDownload as a2, type RuntimeArtifactsAccessor as a3, type RuntimeAvailability as a4, type RuntimeWakeDetail as a5, type RuntimeWakeGolden as a6, type RuntimeWakeReasonCode as a7, SIGNALING_PROTOCOL_VERSION as a8, STREAM_END as a9, type TransportOfferResponse as aA, TransportSession as aB, type TransportSessionOptions as aC, TransportSessionSignaling as aD, type TransportState as aE, type VideoPlayoutOptions as aF, WT_CONTROL_FRAME_MAX as aG, WT_DATA_STREAM_VERSION as aH, type WatchGenerationTickOptions as aI, type WtAudioLaneSeam as aJ, type WtAudioUplinkSeam as aK, WtControlDecoder as aL, type WtControlMessage as aM, type WtDataEnvelope as aN, type WtDataLaneSink as aO, WtDataStreamParser as aP, WtDataUplinkSender as aQ, type WtVideoUplinkSeam as aR, allocateSession as aS, consumeWtDataStreams as aT, createPresence as aU, createWebsocketDocConnector as aV, decodeStreamEnvelope as aW, deriveYjsServerUrl as aX, derivedLegName as aY, derivedLegRole as aZ, encodeStreamEnvelope as a_, type Session as aa, type SessionDiagnostic as ab, type SessionDirectoryRequestOptions as ac, type SessionDocument as ad, SessionDocumentImpl as ae, type SessionEndResult as af, type SessionFailureKind as ag, type SessionPhase as ah, type SessionPhaseError as ai, type SessionPhaseName as aj, type SessionStartOptions as ak, type SessionStatsOptions as al, type SessionStatsSample as am, type SessionStatus as an, type SessionStream as ao, type SessionText as ap, type SignalCarrier as aq, type Signaling as ar, type StartSessionOptions as as, type Store as at, type StoreOptions as au, type StreamChunkOptions as av, type StreamDataTransport as aw, type TransportEstablishedNotify as ax, TransportNegotiator as ay, type TransportOfferRequest as az, type ActivationEvent as b, isPendingRecording as b0, mediaRecorderChunkSource as b1, parseDgramHeader as b2, prewake as b3, releaseSessionBeacon as b4, streamDataLabel as b5, transportStreamData as b6, watchGenerationTick as b7, writeDgramHeader as b8, type ActivationState as c, type AllocateSessionOptions as d, type AllocatedSession as e, type App as f, type AppOptions as g, type AttachOptions as h, type AudioPlayoutOptions as i, type ChannelMessage as j, ChannelMultiplexer as k, type ChannelName as l, type ChunkReadable as m, DGRAM_HEADER_BYTES as n, DOC_SYNC_WIRE_CONTRACT_VERSION as o, DeferredChannelMultiplexer as p, DeferredDocConnector as q, type DerivedLegRole as r, type DgramHeader as s, type DocConnection as t, type DocConnectionState as u, type DocConnector as v, type DocServerUrlResolver as w, type DocTokenSupplier as x, GENERATION_TICK_MAX_EXTRAPOLATION_MS as y, type GenerationTick as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.3.6",
3
+ "version": "0.4.0",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",