@urun-sh/core 0.2.41 → 0.2.43

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{D as r,G as t,H as a,I as n,K as s,L as p,M as m,N as c,O as i,P as l,Q as f,R as x,S,T as C,a as e,b as o}from"./chunk-JGXO6MFH.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,s as LoopbackStreamData,S as SessionDocumentImpl,c as TransportSession,r as allocateSession,C as createPresence,f as createWebsocketDocConnector,l as deriveYjsServerUrl,n as ensureNodeWebRTC,t as isNodeRuntime,a as nodeMediasoupHandlerName,m as streamDataLabel,p as transportStreamData};
2
+ import{D as r,G as t,H as a,I as n,K as s,L as p,M as m,Q as c,R as i,S as l,T as f,U as x,V as S,W as C,a as e,b as o}from"./chunk-YZM4E6M3.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,s as LoopbackStreamData,S as SessionDocumentImpl,c as TransportSession,r as allocateSession,C as createPresence,f as createWebsocketDocConnector,l as deriveYjsServerUrl,n as ensureNodeWebRTC,t as isNodeRuntime,a as nodeMediasoupHandlerName,m as streamDataLabel,p as transportStreamData};
@@ -659,6 +659,14 @@ interface TransportConnection {
659
659
  endsAt?: Date | null;
660
660
  }
661
661
  declare function streamDataLabel(name: string): string;
662
+
663
+ declare const DERIVED_LEG_SEP = "--";
664
+ declare const DERIVED_LEG_ROLES: readonly ["video", "audio"];
665
+ type DerivedLegRole = (typeof DERIVED_LEG_ROLES)[number];
666
+
667
+ declare function derivedLegRole(name: string): DerivedLegRole | undefined;
668
+
669
+ declare function derivedLegName(parent: string, role: DerivedLegRole): string;
662
670
  interface TransportEvents {
663
671
  connected: () => void;
664
672
  disconnected: () => void;
@@ -1022,4 +1030,4 @@ interface DataChannelTransport {
1022
1030
 
1023
1031
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
1024
1032
 
1025
- export { type SessionText as $, type AccessTokenOptions$1 as A, type RecordingsAccessor as B, type ChannelEndpoint as C, DOC_SYNC_WIRE_CONTRACT_VERSION as D, type ReleaseSessionBeaconOptions as E, type RequestOptions as F, type RequestStreamOptions as G, type RuntimeArtifact as H, type RuntimeArtifactDownload as I, type RuntimeArtifactsAccessor as J, type RuntimeAvailability as K, LoopbackStreamData as L, type MediaChunkBinding as M, type SessionDiagnostic as N, type SessionDocument as O, type Presence as P, SessionDocumentImpl as Q, type Recording as R, type Session as S, type SessionEndResult as T, type SessionFailureKind as U, type SessionPhase as V, type SessionPhaseError as W, type SessionPhaseName as X, type SessionStartOptions as Y, type SessionStatus as Z, type SessionStream as _, type AccessTokenOptions as a, type Store as a0, type StoreOptions as a1, type StreamChunkOptions as a2, type StreamDataTransport as a3, TransportSession as a4, type TransportSessionOptions as a5, type TransportState as a6, allocateSession as a7, createPresence as a8, createWebsocketDocConnector as a9, deriveYjsServerUrl as aa, isPendingRecording as ab, mediaRecorderChunkSource as ac, prewake as ad, releaseSessionBeacon as ae, streamDataLabel as af, transportStreamData as ag, 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, DeferredChannelMultiplexer as m, DeferredDocConnector as n, type DocConnection as o, type DocConnector as p, type MediaChunkSource as q, type MediaChunkSourceFactory as r, type MediaRecorderChunkSourceOptions as s, type PresenceState as t, type PrewakeOptions as u, type PrewakeResult as v, type PrewakeStatus as w, type RecordingBucket as x, type RecordingLifecycle as y, type RecordingStatus as z };
1033
+ export { type SessionStatus as $, type AccessTokenOptions$1 as A, type RecordingLifecycle as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type RecordingStatus as E, type RecordingsAccessor as F, type ReleaseSessionBeaconOptions as G, type RequestOptions as H, type RequestStreamOptions as I, type RuntimeArtifact as J, type RuntimeArtifactDownload as K, LoopbackStreamData as L, type MediaChunkBinding as M, type RuntimeArtifactsAccessor as N, type RuntimeAvailability as O, type Presence as P, type SessionDiagnostic as Q, type Recording as R, type Session as S, type SessionDocument as T, SessionDocumentImpl as U, type SessionEndResult as V, type SessionFailureKind as W, type SessionPhase as X, type SessionPhaseError as Y, type SessionPhaseName as Z, type SessionStartOptions as _, type AccessTokenOptions as a, type SessionStream as a0, type SessionText as a1, type Store as a2, type StoreOptions as a3, type StreamChunkOptions as a4, type StreamDataTransport as a5, TransportSession as a6, type TransportSessionOptions as a7, type TransportState as a8, allocateSession as a9, createPresence as aa, createWebsocketDocConnector as ab, deriveYjsServerUrl as ac, derivedLegName as ad, derivedLegRole as ae, isPendingRecording as af, mediaRecorderChunkSource as ag, prewake as ah, releaseSessionBeacon as ai, streamDataLabel as aj, transportStreamData as ak, 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 DocConnector as r, type MediaChunkSource as s, type MediaChunkSourceFactory as t, type MediaRecorderChunkSourceOptions as u, type PresenceState as v, type PrewakeOptions as w, type PrewakeResult as x, type PrewakeStatus as y, type RecordingBucket as z };
@@ -659,6 +659,14 @@ interface TransportConnection {
659
659
  endsAt?: Date | null;
660
660
  }
661
661
  declare function streamDataLabel(name: string): string;
662
+
663
+ declare const DERIVED_LEG_SEP = "--";
664
+ declare const DERIVED_LEG_ROLES: readonly ["video", "audio"];
665
+ type DerivedLegRole = (typeof DERIVED_LEG_ROLES)[number];
666
+
667
+ declare function derivedLegRole(name: string): DerivedLegRole | undefined;
668
+
669
+ declare function derivedLegName(parent: string, role: DerivedLegRole): string;
662
670
  interface TransportEvents {
663
671
  connected: () => void;
664
672
  disconnected: () => void;
@@ -1022,4 +1030,4 @@ interface DataChannelTransport {
1022
1030
 
1023
1031
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
1024
1032
 
1025
- export { type SessionText as $, type AccessTokenOptions$1 as A, type RecordingsAccessor as B, type ChannelEndpoint as C, DOC_SYNC_WIRE_CONTRACT_VERSION as D, type ReleaseSessionBeaconOptions as E, type RequestOptions as F, type RequestStreamOptions as G, type RuntimeArtifact as H, type RuntimeArtifactDownload as I, type RuntimeArtifactsAccessor as J, type RuntimeAvailability as K, LoopbackStreamData as L, type MediaChunkBinding as M, type SessionDiagnostic as N, type SessionDocument as O, type Presence as P, SessionDocumentImpl as Q, type Recording as R, type Session as S, type SessionEndResult as T, type SessionFailureKind as U, type SessionPhase as V, type SessionPhaseError as W, type SessionPhaseName as X, type SessionStartOptions as Y, type SessionStatus as Z, type SessionStream as _, type AccessTokenOptions as a, type Store as a0, type StoreOptions as a1, type StreamChunkOptions as a2, type StreamDataTransport as a3, TransportSession as a4, type TransportSessionOptions as a5, type TransportState as a6, allocateSession as a7, createPresence as a8, createWebsocketDocConnector as a9, deriveYjsServerUrl as aa, isPendingRecording as ab, mediaRecorderChunkSource as ac, prewake as ad, releaseSessionBeacon as ae, streamDataLabel as af, transportStreamData as ag, 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, DeferredChannelMultiplexer as m, DeferredDocConnector as n, type DocConnection as o, type DocConnector as p, type MediaChunkSource as q, type MediaChunkSourceFactory as r, type MediaRecorderChunkSourceOptions as s, type PresenceState as t, type PrewakeOptions as u, type PrewakeResult as v, type PrewakeStatus as w, type RecordingBucket as x, type RecordingLifecycle as y, type RecordingStatus as z };
1033
+ export { type SessionStatus as $, type AccessTokenOptions$1 as A, type RecordingLifecycle as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type RecordingStatus as E, type RecordingsAccessor as F, type ReleaseSessionBeaconOptions as G, type RequestOptions as H, type RequestStreamOptions as I, type RuntimeArtifact as J, type RuntimeArtifactDownload as K, LoopbackStreamData as L, type MediaChunkBinding as M, type RuntimeArtifactsAccessor as N, type RuntimeAvailability as O, type Presence as P, type SessionDiagnostic as Q, type Recording as R, type Session as S, type SessionDocument as T, SessionDocumentImpl as U, type SessionEndResult as V, type SessionFailureKind as W, type SessionPhase as X, type SessionPhaseError as Y, type SessionPhaseName as Z, type SessionStartOptions as _, type AccessTokenOptions as a, type SessionStream as a0, type SessionText as a1, type Store as a2, type StoreOptions as a3, type StreamChunkOptions as a4, type StreamDataTransport as a5, TransportSession as a6, type TransportSessionOptions as a7, type TransportState as a8, allocateSession as a9, createPresence as aa, createWebsocketDocConnector as ab, deriveYjsServerUrl as ac, derivedLegName as ad, derivedLegRole as ae, isPendingRecording as af, mediaRecorderChunkSource as ag, prewake as ah, releaseSessionBeacon as ai, streamDataLabel as aj, transportStreamData as ak, 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 DocConnector as r, type MediaChunkSource as s, type MediaChunkSourceFactory as t, type MediaRecorderChunkSourceOptions as u, type PresenceState as v, type PrewakeOptions as w, type PrewakeResult as x, type PrewakeStatus as y, type RecordingBucket as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.2.41",
3
+ "version": "0.2.43",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",