@urun-sh/core 0.3.6 → 0.3.7

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.
@@ -900,6 +900,19 @@ interface WtIncomingUniStreams {
900
900
 
901
901
  declare function consumeWtDataStreams(incoming: WtIncomingUniStreams, sink: WtDataLaneSink): Promise<void>;
902
902
 
903
+ interface PathLiveness {
904
+
905
+ alive: boolean;
906
+
907
+ evidence: string;
908
+ }
909
+
910
+ interface PathHealthReporting {
911
+
912
+ pathLiveness(): PathLiveness;
913
+
914
+ fail(reason: string): void;
915
+ }
903
916
  interface MediaSession {
904
917
  readonly kind: 'webtransport' | 'webrtc';
905
918
  start(): Promise<void>;
@@ -1137,8 +1150,12 @@ declare class TransportNegotiator {
1137
1150
  private quicDataLane;
1138
1151
 
1139
1152
  private wtOnlyLeg;
1153
+
1154
+ private webRtcDialProceeded;
1140
1155
  constructor(signaling: Signaling, sessionId: string, opts: NegotiatorOptions);
1141
1156
  get activeTransport(): MediaSession['kind'] | null;
1157
+
1158
+ get isWtOnlyLeg(): boolean;
1142
1159
  connect(): Promise<MediaSession>;
1143
1160
  disconnect(): Promise<void>;
1144
1161
 
@@ -1152,6 +1169,10 @@ declare class TransportNegotiator {
1152
1169
  private startWebRtcOn;
1153
1170
  private startWebRtc;
1154
1171
 
1172
+ private skipWebRtcDial;
1173
+
1174
+ private proceedWebRtcDial;
1175
+
1155
1176
  private armFailover;
1156
1177
  private notifyEstablished;
1157
1178
  }
@@ -1603,4 +1624,4 @@ interface DataChannelTransport {
1603
1624
 
1604
1625
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
1605
1626
 
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 };
1627
+ 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, mediaRecorderChunkSource 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 TransportSessionOptions as aA, TransportSessionSignaling as aB, type TransportState as aC, type VideoPlayoutOptions as aD, WT_CONTROL_FRAME_MAX as aE, WT_DATA_STREAM_VERSION as aF, type WatchGenerationTickOptions as aG, type WtAudioLaneSeam as aH, type WtAudioUplinkSeam as aI, WtControlDecoder as aJ, type WtControlMessage as aK, type WtDataEnvelope as aL, type WtDataLaneSink as aM, WtDataStreamParser as aN, WtDataUplinkSender as aO, type WtVideoUplinkSeam as aP, allocateSession as aQ, consumeWtDataStreams as aR, createPresence as aS, createWebsocketDocConnector as aT, decodeStreamEnvelope as aU, deriveYjsServerUrl as aV, derivedLegName as aW, derivedLegRole as aX, encodeStreamEnvelope as aY, encodeWtControlFrame as aZ, isPendingRecording as a_, type Session as aa, type SessionDiagnostic as ab, type SessionDocument as ac, SessionDocumentImpl as ad, type SessionEndResult as ae, type SessionFailureKind as af, type SessionPhase as ag, type SessionPhaseError as ah, type SessionPhaseName as ai, type SessionStartOptions as aj, type SessionStatsOptions as ak, type SessionStatsSample as al, type SessionStatus as am, type SessionStream as an, type SessionText as ao, type SignalCarrier as ap, type Signaling as aq, type Store as ar, type StoreOptions as as, type StreamChunkOptions as at, type StreamDataTransport as au, type TransportEstablishedNotify as av, TransportNegotiator as aw, type TransportOfferRequest as ax, type TransportOfferResponse as ay, TransportSession as az, type ActivationEvent as b, parseDgramHeader as b0, prewake as b1, releaseSessionBeacon as b2, streamDataLabel as b3, transportStreamData as b4, watchGenerationTick as b5, writeDgramHeader as b6, 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 };
@@ -900,6 +900,19 @@ interface WtIncomingUniStreams {
900
900
 
901
901
  declare function consumeWtDataStreams(incoming: WtIncomingUniStreams, sink: WtDataLaneSink): Promise<void>;
902
902
 
903
+ interface PathLiveness {
904
+
905
+ alive: boolean;
906
+
907
+ evidence: string;
908
+ }
909
+
910
+ interface PathHealthReporting {
911
+
912
+ pathLiveness(): PathLiveness;
913
+
914
+ fail(reason: string): void;
915
+ }
903
916
  interface MediaSession {
904
917
  readonly kind: 'webtransport' | 'webrtc';
905
918
  start(): Promise<void>;
@@ -1137,8 +1150,12 @@ declare class TransportNegotiator {
1137
1150
  private quicDataLane;
1138
1151
 
1139
1152
  private wtOnlyLeg;
1153
+
1154
+ private webRtcDialProceeded;
1140
1155
  constructor(signaling: Signaling, sessionId: string, opts: NegotiatorOptions);
1141
1156
  get activeTransport(): MediaSession['kind'] | null;
1157
+
1158
+ get isWtOnlyLeg(): boolean;
1142
1159
  connect(): Promise<MediaSession>;
1143
1160
  disconnect(): Promise<void>;
1144
1161
 
@@ -1152,6 +1169,10 @@ declare class TransportNegotiator {
1152
1169
  private startWebRtcOn;
1153
1170
  private startWebRtc;
1154
1171
 
1172
+ private skipWebRtcDial;
1173
+
1174
+ private proceedWebRtcDial;
1175
+
1155
1176
  private armFailover;
1156
1177
  private notifyEstablished;
1157
1178
  }
@@ -1603,4 +1624,4 @@ interface DataChannelTransport {
1603
1624
 
1604
1625
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
1605
1626
 
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 };
1627
+ 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, mediaRecorderChunkSource 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 TransportSessionOptions as aA, TransportSessionSignaling as aB, type TransportState as aC, type VideoPlayoutOptions as aD, WT_CONTROL_FRAME_MAX as aE, WT_DATA_STREAM_VERSION as aF, type WatchGenerationTickOptions as aG, type WtAudioLaneSeam as aH, type WtAudioUplinkSeam as aI, WtControlDecoder as aJ, type WtControlMessage as aK, type WtDataEnvelope as aL, type WtDataLaneSink as aM, WtDataStreamParser as aN, WtDataUplinkSender as aO, type WtVideoUplinkSeam as aP, allocateSession as aQ, consumeWtDataStreams as aR, createPresence as aS, createWebsocketDocConnector as aT, decodeStreamEnvelope as aU, deriveYjsServerUrl as aV, derivedLegName as aW, derivedLegRole as aX, encodeStreamEnvelope as aY, encodeWtControlFrame as aZ, isPendingRecording as a_, type Session as aa, type SessionDiagnostic as ab, type SessionDocument as ac, SessionDocumentImpl as ad, type SessionEndResult as ae, type SessionFailureKind as af, type SessionPhase as ag, type SessionPhaseError as ah, type SessionPhaseName as ai, type SessionStartOptions as aj, type SessionStatsOptions as ak, type SessionStatsSample as al, type SessionStatus as am, type SessionStream as an, type SessionText as ao, type SignalCarrier as ap, type Signaling as aq, type Store as ar, type StoreOptions as as, type StreamChunkOptions as at, type StreamDataTransport as au, type TransportEstablishedNotify as av, TransportNegotiator as aw, type TransportOfferRequest as ax, type TransportOfferResponse as ay, TransportSession as az, type ActivationEvent as b, parseDgramHeader as b0, prewake as b1, releaseSessionBeacon as b2, streamDataLabel as b3, transportStreamData as b4, watchGenerationTick as b5, writeDgramHeader as b6, 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.3.7",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",