@urun-sh/core 0.2.50 → 0.2.52

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-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};
@@ -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
 
@@ -376,9 +376,11 @@ interface RequestStreamOptions {
376
376
  type SessionEndResult = {
377
377
  status: 'ended';
378
378
  requestId: string;
379
+ platformStatus?: string;
379
380
  } | {
380
381
  status: 'canceled';
381
382
  requestId: string;
383
+ platformStatus?: string;
382
384
  };
383
385
 
384
386
  interface Session {
@@ -765,6 +767,9 @@ declare class TransportSession {
765
767
 
766
768
  private _connectedUrl;
767
769
  private _device;
770
+ private _mediaUnavailableReason;
771
+ private _mediaVerdictResolve;
772
+ private _mediaVerdict;
768
773
  private _recvTransport;
769
774
  private _sendTransport;
770
775
  private _consumers;
@@ -895,6 +900,12 @@ declare class TransportSession {
895
900
  private _dispatchStreamData;
896
901
 
897
902
  private _streamNameFromLabel;
903
+
904
+ mediaUnavailableReason(): string | null;
905
+
906
+ mediaAvailability(): Promise<string | null>;
907
+
908
+ private _requireMediaSupport;
898
909
  addTrack(track: MediaStreamTrack, name?: string): Promise<void>;
899
910
 
900
911
  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
 
@@ -376,9 +376,11 @@ interface RequestStreamOptions {
376
376
  type SessionEndResult = {
377
377
  status: 'ended';
378
378
  requestId: string;
379
+ platformStatus?: string;
379
380
  } | {
380
381
  status: 'canceled';
381
382
  requestId: string;
383
+ platformStatus?: string;
382
384
  };
383
385
 
384
386
  interface Session {
@@ -765,6 +767,9 @@ declare class TransportSession {
765
767
 
766
768
  private _connectedUrl;
767
769
  private _device;
770
+ private _mediaUnavailableReason;
771
+ private _mediaVerdictResolve;
772
+ private _mediaVerdict;
768
773
  private _recvTransport;
769
774
  private _sendTransport;
770
775
  private _consumers;
@@ -895,6 +900,12 @@ declare class TransportSession {
895
900
  private _dispatchStreamData;
896
901
 
897
902
  private _streamNameFromLabel;
903
+
904
+ mediaUnavailableReason(): string | null;
905
+
906
+ mediaAvailability(): Promise<string | null>;
907
+
908
+ private _requireMediaSupport;
898
909
  addTrack(track: MediaStreamTrack, name?: string): Promise<void>;
899
910
 
900
911
  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.52",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",