@urun-sh/core 0.1.33 → 0.1.35

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/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as AppOptions, A as App$1, i as SessionDocument, h as Session$1, C as ChannelEndpoint, T as TransportSession, k as SessionStream$1, m as StoreOptions, l as Store, c as ChannelMultiplexer } from './internal-dmugzBC7.mjs';
2
- export { L as Layer, e as LayoutConfig, f as LayoutContext, S as SceneContext, g as SceneGraph, o as TransportState } from './internal-dmugzBC7.mjs';
1
+ import { a as AppOptions, A as App$1, j as SessionDocument, i as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, k as SessionPhase, n as SessionStream$1, p as StoreOptions, o as Store, d as ChannelMultiplexer } from './internal-B-5h9uZU.mjs';
2
+ export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, h as SceneGraph, l as SessionPhaseName, r as TransportState } from './internal-B-5h9uZU.mjs';
3
3
 
4
4
  declare function App(appId: string, options: AppOptions): App$1;
5
5
 
@@ -68,7 +68,13 @@ declare class Session implements Session$1 {
68
68
  private _docs;
69
69
  private _streams;
70
70
  constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession);
71
+
72
+ static attach(sessionId: string, options: AttachOptions): Promise<Session>;
71
73
  get id(): string;
74
+
75
+ get phase(): SessionPhase;
76
+
77
+ onPhase(handler: (phase: SessionPhase) => void): () => void;
72
78
  setSessionId(sessionId: string): void;
73
79
  stream(name: string): SessionStream;
74
80
 
@@ -90,4 +96,4 @@ interface VideoStreamOptions {
90
96
 
91
97
  declare function videoStream(source: ReadableStream<Uint8Array>, options?: VideoStreamOptions): MediaStream;
92
98
 
93
- export { App, App$1 as AppInterface, AppOptions, Session, SessionDocument, Session$1 as SessionInterface, SessionStream$1 as SessionStream, Store, StoreOptions, type VideoStreamOptions, createStore, videoStream };
99
+ export { App, App$1 as AppInterface, AppOptions, AttachOptions, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, Store, StoreOptions, type VideoStreamOptions, createStore, videoStream };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as AppOptions, A as App$1, i as SessionDocument, h as Session$1, C as ChannelEndpoint, T as TransportSession, k as SessionStream$1, m as StoreOptions, l as Store, c as ChannelMultiplexer } from './internal-dmugzBC7.js';
2
- export { L as Layer, e as LayoutConfig, f as LayoutContext, S as SceneContext, g as SceneGraph, o as TransportState } from './internal-dmugzBC7.js';
1
+ import { a as AppOptions, A as App$1, j as SessionDocument, i as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, k as SessionPhase, n as SessionStream$1, p as StoreOptions, o as Store, d as ChannelMultiplexer } from './internal-B-5h9uZU.js';
2
+ export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, h as SceneGraph, l as SessionPhaseName, r as TransportState } from './internal-B-5h9uZU.js';
3
3
 
4
4
  declare function App(appId: string, options: AppOptions): App$1;
5
5
 
@@ -68,7 +68,13 @@ declare class Session implements Session$1 {
68
68
  private _docs;
69
69
  private _streams;
70
70
  constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession);
71
+
72
+ static attach(sessionId: string, options: AttachOptions): Promise<Session>;
71
73
  get id(): string;
74
+
75
+ get phase(): SessionPhase;
76
+
77
+ onPhase(handler: (phase: SessionPhase) => void): () => void;
72
78
  setSessionId(sessionId: string): void;
73
79
  stream(name: string): SessionStream;
74
80
 
@@ -90,4 +96,4 @@ interface VideoStreamOptions {
90
96
 
91
97
  declare function videoStream(source: ReadableStream<Uint8Array>, options?: VideoStreamOptions): MediaStream;
92
98
 
93
- export { App, App$1 as AppInterface, AppOptions, Session, SessionDocument, Session$1 as SessionInterface, SessionStream$1 as SessionStream, Store, StoreOptions, type VideoStreamOptions, createStore, videoStream };
99
+ export { App, App$1 as AppInterface, AppOptions, AttachOptions, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, Store, StoreOptions, type VideoStreamOptions, createStore, videoStream };