@urun-sh/core 0.1.46 → 0.1.48

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, k as SessionDocument, p as SessionText, j as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, l as SessionPhase, o as SessionStream$1, R as RequestOptions, h as RequestStreamOptions, r as StoreOptions, q as Store, d as ChannelMultiplexer } from './transport-DwP_VpLT.mjs';
2
- export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, i as SceneGraph, m as SessionPhaseName, t as TransportState } from './transport-DwP_VpLT.mjs';
1
+ import { a as AppOptions, A as App$1, o as SessionDocument, t as SessionText, n as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, p as SessionPhase, s as SessionStream$1, w as StreamChunkOptions, f as ChunkReadable, R as RequestOptions, l as RequestStreamOptions, v as StoreOptions, u as Store, d as ChannelMultiplexer } from './transport-C3iRb9nz.mjs';
2
+ export { L as Layer, g as LayoutConfig, h as LayoutContext, M as MediaChunkBinding, i as MediaChunkSource, j as MediaChunkSourceFactory, k as MediaRecorderChunkSourceOptions, S as SceneContext, m as SceneGraph, q as SessionPhaseName, y as TransportState, E as mediaRecorderChunkSource } from './transport-C3iRb9nz.mjs';
3
3
  import * as Y from 'yjs';
4
4
 
5
5
  declare function App(appId: string, options: AppOptions): App$1;
@@ -115,6 +115,10 @@ declare class SessionStream implements SessionStream$1 {
115
115
 
116
116
  detachVideo(): Promise<void>;
117
117
  seek(target: number | 'live'): Promise<void>;
118
+
119
+ chunks(options?: StreamChunkOptions): ChunkReadable;
120
+
121
+ onSeeked(handler: (target: number | 'live') => void): () => void;
118
122
  on(event: 'track', handler: (track: MediaStreamTrack | null) => void): () => void;
119
123
  dispose(): void;
120
124
  private _setTrack;
@@ -212,4 +216,4 @@ declare class RequestCancelledError extends RequestError {
212
216
  constructor(requestId?: string);
213
217
  }
214
218
 
215
- export { App, App$1 as AppInterface, AppOptions, AttachOptions, DEFAULT_DOC_SYNC_TIMEOUT_MS, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamDirectionConflict, type VideoStreamOptions, createStore, videoStream };
219
+ export { App, App$1 as AppInterface, AppOptions, AttachOptions, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, createStore, videoStream };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { a as AppOptions, A as App$1, k as SessionDocument, p as SessionText, j as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, l as SessionPhase, o as SessionStream$1, R as RequestOptions, h as RequestStreamOptions, r as StoreOptions, q as Store, d as ChannelMultiplexer } from './transport-DwP_VpLT.js';
2
- export { L as Layer, f as LayoutConfig, g as LayoutContext, S as SceneContext, i as SceneGraph, m as SessionPhaseName, t as TransportState } from './transport-DwP_VpLT.js';
1
+ import { a as AppOptions, A as App$1, o as SessionDocument, t as SessionText, n as Session$1, C as ChannelEndpoint, T as TransportSession, b as AttachOptions, p as SessionPhase, s as SessionStream$1, w as StreamChunkOptions, f as ChunkReadable, R as RequestOptions, l as RequestStreamOptions, v as StoreOptions, u as Store, d as ChannelMultiplexer } from './transport-C3iRb9nz.js';
2
+ export { L as Layer, g as LayoutConfig, h as LayoutContext, M as MediaChunkBinding, i as MediaChunkSource, j as MediaChunkSourceFactory, k as MediaRecorderChunkSourceOptions, S as SceneContext, m as SceneGraph, q as SessionPhaseName, y as TransportState, E as mediaRecorderChunkSource } from './transport-C3iRb9nz.js';
3
3
  import * as Y from 'yjs';
4
4
 
5
5
  declare function App(appId: string, options: AppOptions): App$1;
@@ -115,6 +115,10 @@ declare class SessionStream implements SessionStream$1 {
115
115
 
116
116
  detachVideo(): Promise<void>;
117
117
  seek(target: number | 'live'): Promise<void>;
118
+
119
+ chunks(options?: StreamChunkOptions): ChunkReadable;
120
+
121
+ onSeeked(handler: (target: number | 'live') => void): () => void;
118
122
  on(event: 'track', handler: (track: MediaStreamTrack | null) => void): () => void;
119
123
  dispose(): void;
120
124
  private _setTrack;
@@ -212,4 +216,4 @@ declare class RequestCancelledError extends RequestError {
212
216
  constructor(requestId?: string);
213
217
  }
214
218
 
215
- export { App, App$1 as AppInterface, AppOptions, AttachOptions, DEFAULT_DOC_SYNC_TIMEOUT_MS, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamDirectionConflict, type VideoStreamOptions, createStore, videoStream };
219
+ export { App, App$1 as AppInterface, AppOptions, AttachOptions, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, createStore, videoStream };