@urun-sh/core 0.2.52 → 0.2.54

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{E as r,H as t,I as n,J as a,K as s,M as p,N as m,O as c,S as i,T as l,U as S,V as f,W as x,X as C,Y as D,a as e,b as o}from"./chunk-TPHPHD73.mjs";export{e as ChannelMultiplexer,l as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,i 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,c as streamDataLabel,m as transportStreamData};
2
+ import{E as r,H as t,I as n,J as a,K as s,M as p,N as m,O as c,S as i,T as l,U as S,V as f,W as x,X as C,Y as D,a as e,b as o}from"./chunk-ROHOB3GT.mjs";export{e as ChannelMultiplexer,l as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,i 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,c as streamDataLabel,m as transportStreamData};
@@ -260,6 +260,15 @@ interface TransportSessionOptions {
260
260
  iceServers?: RTCIceServer[];
261
261
 
262
262
  mediaLiveness?: MediaLivenessOptions;
263
+
264
+ audioPlayout?: AudioPlayoutOptions;
265
+
266
+ diagnosticSink?: (diagnostic: SessionDiagnostic) => void;
267
+ }
268
+
269
+ interface AudioPlayoutOptions {
270
+
271
+ jitterBufferTargetMs?: number;
263
272
  }
264
273
 
265
274
  interface MediaLivenessOptions {
@@ -528,6 +537,8 @@ interface AppOptions {
528
537
 
529
538
  authProvider?: string;
530
539
 
540
+ diagnosticSink?: (diagnostic: SessionDiagnostic) => void;
541
+
531
542
  functionsUrl?: string;
532
543
 
533
544
  allowWebTransport?: boolean;
@@ -537,6 +548,8 @@ interface AppOptions {
537
548
  sessionKey?: string;
538
549
 
539
550
  priority?: 'preempt';
551
+
552
+ audioPlayout?: AudioPlayoutOptions;
540
553
  }
541
554
  interface AccessTokenOptions$1 {
542
555
  forceRefresh?: boolean;
@@ -817,6 +830,8 @@ declare class TransportSession {
817
830
 
818
831
  private _candidatePairDiagnosticEmitted;
819
832
 
833
+ private _diagnosticSinkFailed;
834
+
820
835
  private _currentEpoch;
821
836
 
822
837
  private _consumerId;
@@ -947,6 +962,10 @@ declare class TransportSession {
947
962
  private _onConsumeData;
948
963
  private _onConsume;
949
964
 
965
+ private _audioJitterBufferTargetMs;
966
+
967
+ private _capAudioJitterBuffer;
968
+
950
969
  private _closeConsumer;
951
970
 
952
971
  private _closeConsumersByProducer;
@@ -1084,4 +1103,4 @@ interface DataChannelTransport {
1084
1103
 
1085
1104
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
1086
1105
 
1087
- export { type SessionFailureKind as $, type AccessTokenOptions$1 as A, type PrewakeStatus as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type RecordingBucket as E, type RecordingLifecycle as F, type RecordingStatus as G, type RecordingsAccessor as H, type ReleaseSessionBeaconOptions as I, type RequestOptions as J, type RequestStreamOptions as K, LoopbackStreamData as L, type MediaChunkBinding as M, type RuntimeArtifact as N, type RuntimeArtifactDownload as O, type Presence as P, type RuntimeArtifactsAccessor as Q, type Recording as R, type RuntimeAvailability as S, type RuntimeWakeDetail as T, type RuntimeWakeGolden as U, type RuntimeWakeReasonCode as V, type Session as W, type SessionDiagnostic as X, type SessionDocument as Y, SessionDocumentImpl as Z, type SessionEndResult as _, type AccessTokenOptions as a, type SessionPhase as a0, type SessionPhaseError as a1, type SessionPhaseName as a2, type SessionStartOptions as a3, type SessionStatus as a4, type SessionStream as a5, type SessionText as a6, type Store as a7, type StoreOptions as a8, type StreamChunkOptions as a9, type StreamDataTransport as aa, TransportSession as ab, type TransportSessionOptions as ac, type TransportState as ad, allocateSession as ae, createPresence as af, createWebsocketDocConnector as ag, deriveYjsServerUrl as ah, derivedLegName as ai, derivedLegRole as aj, isPendingRecording as ak, mediaRecorderChunkSource as al, prewake as am, releaseSessionBeacon as an, streamDataLabel as ao, transportStreamData as ap, type ActivationEvent as b, 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 ChannelMessage as i, ChannelMultiplexer as j, type ChannelName as k, type ChunkReadable as l, DOC_SYNC_WIRE_CONTRACT_VERSION as m, DeferredChannelMultiplexer as n, DeferredDocConnector as o, type DerivedLegRole as p, type DocConnection as q, type DocConnectionState as r, type DocConnector as s, type DocTokenSupplier as t, type MediaChunkSource as u, type MediaChunkSourceFactory as v, type MediaRecorderChunkSourceOptions as w, type PresenceState as x, type PrewakeOptions as y, type PrewakeResult as z };
1106
+ export { type SessionEndResult as $, type AccessTokenOptions$1 as A, type PrewakeResult as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type PrewakeStatus as E, type RecordingBucket as F, type RecordingLifecycle as G, type RecordingStatus as H, type RecordingsAccessor as I, type ReleaseSessionBeaconOptions as J, type RequestOptions as K, LoopbackStreamData as L, type MediaChunkBinding as M, type RequestStreamOptions as N, type RuntimeArtifact as O, type Presence as P, type RuntimeArtifactDownload as Q, type Recording as R, type RuntimeArtifactsAccessor as S, type RuntimeAvailability as T, type RuntimeWakeDetail as U, type RuntimeWakeGolden as V, type RuntimeWakeReasonCode as W, type Session as X, type SessionDiagnostic as Y, type SessionDocument as Z, SessionDocumentImpl as _, type AccessTokenOptions as a, type SessionFailureKind as a0, type SessionPhase as a1, type SessionPhaseError as a2, type SessionPhaseName as a3, type SessionStartOptions as a4, type SessionStatus as a5, type SessionStream as a6, type SessionText as a7, type Store as a8, type StoreOptions as a9, type StreamChunkOptions as aa, type StreamDataTransport as ab, TransportSession as ac, type TransportSessionOptions as ad, type TransportState as ae, allocateSession as af, createPresence as ag, createWebsocketDocConnector as ah, deriveYjsServerUrl as ai, derivedLegName as aj, derivedLegRole as ak, isPendingRecording as al, mediaRecorderChunkSource as am, prewake as an, releaseSessionBeacon as ao, streamDataLabel as ap, transportStreamData as aq, type ActivationEvent as b, 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, DOC_SYNC_WIRE_CONTRACT_VERSION as n, DeferredChannelMultiplexer as o, DeferredDocConnector as p, type DerivedLegRole as q, type DocConnection as r, type DocConnectionState as s, type DocConnector as t, type DocTokenSupplier as u, type MediaChunkSource as v, type MediaChunkSourceFactory as w, type MediaRecorderChunkSourceOptions as x, type PresenceState as y, type PrewakeOptions as z };
@@ -260,6 +260,15 @@ interface TransportSessionOptions {
260
260
  iceServers?: RTCIceServer[];
261
261
 
262
262
  mediaLiveness?: MediaLivenessOptions;
263
+
264
+ audioPlayout?: AudioPlayoutOptions;
265
+
266
+ diagnosticSink?: (diagnostic: SessionDiagnostic) => void;
267
+ }
268
+
269
+ interface AudioPlayoutOptions {
270
+
271
+ jitterBufferTargetMs?: number;
263
272
  }
264
273
 
265
274
  interface MediaLivenessOptions {
@@ -528,6 +537,8 @@ interface AppOptions {
528
537
 
529
538
  authProvider?: string;
530
539
 
540
+ diagnosticSink?: (diagnostic: SessionDiagnostic) => void;
541
+
531
542
  functionsUrl?: string;
532
543
 
533
544
  allowWebTransport?: boolean;
@@ -537,6 +548,8 @@ interface AppOptions {
537
548
  sessionKey?: string;
538
549
 
539
550
  priority?: 'preempt';
551
+
552
+ audioPlayout?: AudioPlayoutOptions;
540
553
  }
541
554
  interface AccessTokenOptions$1 {
542
555
  forceRefresh?: boolean;
@@ -817,6 +830,8 @@ declare class TransportSession {
817
830
 
818
831
  private _candidatePairDiagnosticEmitted;
819
832
 
833
+ private _diagnosticSinkFailed;
834
+
820
835
  private _currentEpoch;
821
836
 
822
837
  private _consumerId;
@@ -947,6 +962,10 @@ declare class TransportSession {
947
962
  private _onConsumeData;
948
963
  private _onConsume;
949
964
 
965
+ private _audioJitterBufferTargetMs;
966
+
967
+ private _capAudioJitterBuffer;
968
+
950
969
  private _closeConsumer;
951
970
 
952
971
  private _closeConsumersByProducer;
@@ -1084,4 +1103,4 @@ interface DataChannelTransport {
1084
1103
 
1085
1104
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
1086
1105
 
1087
- export { type SessionFailureKind as $, type AccessTokenOptions$1 as A, type PrewakeStatus as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type RecordingBucket as E, type RecordingLifecycle as F, type RecordingStatus as G, type RecordingsAccessor as H, type ReleaseSessionBeaconOptions as I, type RequestOptions as J, type RequestStreamOptions as K, LoopbackStreamData as L, type MediaChunkBinding as M, type RuntimeArtifact as N, type RuntimeArtifactDownload as O, type Presence as P, type RuntimeArtifactsAccessor as Q, type Recording as R, type RuntimeAvailability as S, type RuntimeWakeDetail as T, type RuntimeWakeGolden as U, type RuntimeWakeReasonCode as V, type Session as W, type SessionDiagnostic as X, type SessionDocument as Y, SessionDocumentImpl as Z, type SessionEndResult as _, type AccessTokenOptions as a, type SessionPhase as a0, type SessionPhaseError as a1, type SessionPhaseName as a2, type SessionStartOptions as a3, type SessionStatus as a4, type SessionStream as a5, type SessionText as a6, type Store as a7, type StoreOptions as a8, type StreamChunkOptions as a9, type StreamDataTransport as aa, TransportSession as ab, type TransportSessionOptions as ac, type TransportState as ad, allocateSession as ae, createPresence as af, createWebsocketDocConnector as ag, deriveYjsServerUrl as ah, derivedLegName as ai, derivedLegRole as aj, isPendingRecording as ak, mediaRecorderChunkSource as al, prewake as am, releaseSessionBeacon as an, streamDataLabel as ao, transportStreamData as ap, type ActivationEvent as b, 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 ChannelMessage as i, ChannelMultiplexer as j, type ChannelName as k, type ChunkReadable as l, DOC_SYNC_WIRE_CONTRACT_VERSION as m, DeferredChannelMultiplexer as n, DeferredDocConnector as o, type DerivedLegRole as p, type DocConnection as q, type DocConnectionState as r, type DocConnector as s, type DocTokenSupplier as t, type MediaChunkSource as u, type MediaChunkSourceFactory as v, type MediaRecorderChunkSourceOptions as w, type PresenceState as x, type PrewakeOptions as y, type PrewakeResult as z };
1106
+ export { type SessionEndResult as $, type AccessTokenOptions$1 as A, type PrewakeResult as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type PrewakeStatus as E, type RecordingBucket as F, type RecordingLifecycle as G, type RecordingStatus as H, type RecordingsAccessor as I, type ReleaseSessionBeaconOptions as J, type RequestOptions as K, LoopbackStreamData as L, type MediaChunkBinding as M, type RequestStreamOptions as N, type RuntimeArtifact as O, type Presence as P, type RuntimeArtifactDownload as Q, type Recording as R, type RuntimeArtifactsAccessor as S, type RuntimeAvailability as T, type RuntimeWakeDetail as U, type RuntimeWakeGolden as V, type RuntimeWakeReasonCode as W, type Session as X, type SessionDiagnostic as Y, type SessionDocument as Z, SessionDocumentImpl as _, type AccessTokenOptions as a, type SessionFailureKind as a0, type SessionPhase as a1, type SessionPhaseError as a2, type SessionPhaseName as a3, type SessionStartOptions as a4, type SessionStatus as a5, type SessionStream as a6, type SessionText as a7, type Store as a8, type StoreOptions as a9, type StreamChunkOptions as aa, type StreamDataTransport as ab, TransportSession as ac, type TransportSessionOptions as ad, type TransportState as ae, allocateSession as af, createPresence as ag, createWebsocketDocConnector as ah, deriveYjsServerUrl as ai, derivedLegName as aj, derivedLegRole as ak, isPendingRecording as al, mediaRecorderChunkSource as am, prewake as an, releaseSessionBeacon as ao, streamDataLabel as ap, transportStreamData as aq, type ActivationEvent as b, 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, DOC_SYNC_WIRE_CONTRACT_VERSION as n, DeferredChannelMultiplexer as o, DeferredDocConnector as p, type DerivedLegRole as q, type DocConnection as r, type DocConnectionState as s, type DocConnector as t, type DocTokenSupplier as u, type MediaChunkSource as v, type MediaChunkSourceFactory as w, type MediaRecorderChunkSourceOptions as x, type PresenceState as y, type PrewakeOptions as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.2.52",
3
+ "version": "0.2.54",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",