@urun-sh/core 0.5.2 → 0.5.3

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{H as r,N as t,O as n,P as a,Q as s,V as p,W as c,X as l,a as e,aa as m,b as o,ba as i,ca as S,da as f,ea as x,fa as C,ga as D}from"./chunk-R33J74SA.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,m 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,l as streamDataLabel,c as transportStreamData};
2
+ import{H as r,O as t,P as n,Q as a,R as s,W as p,X as c,Y as l,a as e,b as o,ba as m,ca as i,da as S,ea as f,fa as x,ga as C,ha as D}from"./chunk-PJ3QK656.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,m 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,l as streamDataLabel,c as transportStreamData};
@@ -240,6 +240,8 @@ interface SessionPhase {
240
240
  error?: SessionPhaseError;
241
241
 
242
242
  reason?: string;
243
+
244
+ region?: string | null;
243
245
  }
244
246
 
245
247
  interface SessionStatus {
@@ -268,6 +270,8 @@ interface SessionStatus {
268
270
  wakingSince?: number;
269
271
 
270
272
  error?: SessionPhaseError;
273
+
274
+ region?: string | null;
271
275
  }
272
276
 
273
277
  interface TransportSessionOptions {
@@ -490,6 +494,8 @@ interface Session {
490
494
 
491
495
  readonly status: SessionStatus;
492
496
 
497
+ readonly region?: string | null;
498
+
493
499
  stream(name: string): SessionStream;
494
500
 
495
501
  doc(key: string): SessionDocument;
@@ -709,6 +715,8 @@ interface SessionGatewayResponse {
709
715
  location?: string;
710
716
 
711
717
  session_api_base?: string;
718
+
719
+ serving_region?: string | null;
712
720
  request_id?: string;
713
721
  session_id?: string;
714
722
  ws_url?: string;
@@ -763,6 +771,8 @@ interface AdmissionUpdate {
763
771
  refusalSource?: string;
764
772
 
765
773
  refusalMessage?: string;
774
+
775
+ region?: string | null;
766
776
  }
767
777
  interface AllocateSessionOptions {
768
778
  baseUrl: string;
@@ -1404,9 +1414,13 @@ declare class TransportSession {
1404
1414
 
1405
1415
  setEndsAt(endsAt: Date | null): void;
1406
1416
 
1417
+ seedRegion(region: string | null | undefined): void;
1418
+
1407
1419
  private _pastDeadline;
1408
1420
 
1409
1421
  get status(): SessionStatus;
1422
+
1423
+ get region(): string | null | undefined;
1410
1424
  get sessionId(): string | null;
1411
1425
  get tracks(): Map<string, MediaStreamTrack>;
1412
1426
  get multiplexer(): ChannelMultiplexer | null;
@@ -240,6 +240,8 @@ interface SessionPhase {
240
240
  error?: SessionPhaseError;
241
241
 
242
242
  reason?: string;
243
+
244
+ region?: string | null;
243
245
  }
244
246
 
245
247
  interface SessionStatus {
@@ -268,6 +270,8 @@ interface SessionStatus {
268
270
  wakingSince?: number;
269
271
 
270
272
  error?: SessionPhaseError;
273
+
274
+ region?: string | null;
271
275
  }
272
276
 
273
277
  interface TransportSessionOptions {
@@ -490,6 +494,8 @@ interface Session {
490
494
 
491
495
  readonly status: SessionStatus;
492
496
 
497
+ readonly region?: string | null;
498
+
493
499
  stream(name: string): SessionStream;
494
500
 
495
501
  doc(key: string): SessionDocument;
@@ -709,6 +715,8 @@ interface SessionGatewayResponse {
709
715
  location?: string;
710
716
 
711
717
  session_api_base?: string;
718
+
719
+ serving_region?: string | null;
712
720
  request_id?: string;
713
721
  session_id?: string;
714
722
  ws_url?: string;
@@ -763,6 +771,8 @@ interface AdmissionUpdate {
763
771
  refusalSource?: string;
764
772
 
765
773
  refusalMessage?: string;
774
+
775
+ region?: string | null;
766
776
  }
767
777
  interface AllocateSessionOptions {
768
778
  baseUrl: string;
@@ -1404,9 +1414,13 @@ declare class TransportSession {
1404
1414
 
1405
1415
  setEndsAt(endsAt: Date | null): void;
1406
1416
 
1417
+ seedRegion(region: string | null | undefined): void;
1418
+
1407
1419
  private _pastDeadline;
1408
1420
 
1409
1421
  get status(): SessionStatus;
1422
+
1423
+ get region(): string | null | undefined;
1410
1424
  get sessionId(): string | null;
1411
1425
  get tracks(): Map<string, MediaStreamTrack>;
1412
1426
  get multiplexer(): ChannelMultiplexer | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",