@urun-sh/core 0.2.50 → 0.2.51

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,L as s,M as p,N as m,R as c,S as i,T as l,U as S,V as f,W as x,X as C,a as e,b as o}from"./chunk-BQIH7RYF.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,f as DeferredDocConnector,s as LoopbackStreamData,x as SessionDocumentImpl,c as TransportSession,r as allocateSession,C as createPresence,S as createWebsocketDocConnector,l as deriveYjsServerUrl,a as ensureNodeWebRTC,t as isNodeRuntime,n as nodeMediasoupHandlerName,m as streamDataLabel,p 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-2MG7ASFV.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};
@@ -171,7 +171,7 @@ interface SessionPhaseError {
171
171
 
172
172
  interface SessionDiagnostic {
173
173
 
174
- level: 'info' | 'warning' | 'error';
174
+ level: 'debug' | 'info' | 'warning' | 'error';
175
175
 
176
176
  kind: string;
177
177
 
@@ -765,6 +765,9 @@ declare class TransportSession {
765
765
 
766
766
  private _connectedUrl;
767
767
  private _device;
768
+ private _mediaUnavailableReason;
769
+ private _mediaVerdictResolve;
770
+ private _mediaVerdict;
768
771
  private _recvTransport;
769
772
  private _sendTransport;
770
773
  private _consumers;
@@ -895,6 +898,12 @@ declare class TransportSession {
895
898
  private _dispatchStreamData;
896
899
 
897
900
  private _streamNameFromLabel;
901
+
902
+ mediaUnavailableReason(): string | null;
903
+
904
+ mediaAvailability(): Promise<string | null>;
905
+
906
+ private _requireMediaSupport;
898
907
  addTrack(track: MediaStreamTrack, name?: string): Promise<void>;
899
908
 
900
909
  private _publishTrack;
@@ -171,7 +171,7 @@ interface SessionPhaseError {
171
171
 
172
172
  interface SessionDiagnostic {
173
173
 
174
- level: 'info' | 'warning' | 'error';
174
+ level: 'debug' | 'info' | 'warning' | 'error';
175
175
 
176
176
  kind: string;
177
177
 
@@ -765,6 +765,9 @@ declare class TransportSession {
765
765
 
766
766
  private _connectedUrl;
767
767
  private _device;
768
+ private _mediaUnavailableReason;
769
+ private _mediaVerdictResolve;
770
+ private _mediaVerdict;
768
771
  private _recvTransport;
769
772
  private _sendTransport;
770
773
  private _consumers;
@@ -895,6 +898,12 @@ declare class TransportSession {
895
898
  private _dispatchStreamData;
896
899
 
897
900
  private _streamNameFromLabel;
901
+
902
+ mediaUnavailableReason(): string | null;
903
+
904
+ mediaAvailability(): Promise<string | null>;
905
+
906
+ private _requireMediaSupport;
898
907
  addTrack(track: MediaStreamTrack, name?: string): Promise<void>;
899
908
 
900
909
  private _publishTrack;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.2.50",
3
+ "version": "0.2.51",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",