@urun-sh/core 0.2.6 → 0.2.7

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.
@@ -1,7 +1,7 @@
1
- import { b as AppOptions, a as App$1, H as SessionPhase, N as SessionStatus, A as AccessTokenOptions, x as RuntimeArtifact, y as RuntimeArtifactDownload, R as Recording, F as SessionDocument, j as DocConnector, Q as SessionText, E as Session$1, C as ChannelEndpoint, X as TransportSession, c as AttachOptions, u as RecordingsAccessor, z as RuntimeArtifactsAccessor, O as SessionStream$1, W as StreamDataTransport, V as StreamChunkOptions, g as ChunkReadable, P as Presence, v as RequestOptions, w as RequestStreamOptions, U as StoreOptions, T as Store, e as ChannelMultiplexer, G as SessionFailureKind } from './stream-data-u76USIkQ.mjs';
2
- export { L as Layer, k as LayoutConfig, l as LayoutContext, M as MediaChunkBinding, n as MediaChunkSource, o as MediaChunkSourceFactory, p as MediaRecorderChunkSourceOptions, q as PresenceState, r as RecordingBucket, s as RecordingLifecycle, t as RecordingStatus, S as SceneContext, B as SceneGraph, I as SessionPhaseError, J as SessionPhaseName, Z as TransportState, a1 as isPendingRecording, a2 as mediaRecorderChunkSource } from './stream-data-u76USIkQ.mjs';
3
- import * as Y from 'yjs';
4
- import { Awareness } from 'y-protocols/awareness';
1
+ import { b as AppOptions, a as App$1, J as SessionPhase, Q as SessionStatus, A as AccessTokenOptions, x as RuntimeArtifact, y as RuntimeArtifactDownload, R as Recording, F as Session$1, C as ChannelEndpoint, Z as TransportSession, c as AttachOptions, u as RecordingsAccessor, z as RuntimeArtifactsAccessor, T as SessionStream$1, Y as StreamDataTransport, H as SessionDocumentImpl, X as StreamChunkOptions, g as ChunkReadable, P as Presence, j as DocConnector, v as RequestOptions, w as RequestStreamOptions, W as StoreOptions, V as Store, e as ChannelMultiplexer, I as SessionFailureKind } from './stream-data-B16nTnox.mjs';
2
+ export { L as Layer, k as LayoutConfig, l as LayoutContext, M as MediaChunkBinding, n as MediaChunkSource, o as MediaChunkSourceFactory, p as MediaRecorderChunkSourceOptions, q as PresenceState, r as RecordingBucket, s as RecordingLifecycle, t as RecordingStatus, B as RuntimeAvailability, S as SceneContext, E as SceneGraph, G as SessionDocument, K as SessionPhaseError, N as SessionPhaseName, U as SessionText, $ as TransportState, a3 as isPendingRecording, a4 as mediaRecorderChunkSource } from './stream-data-B16nTnox.mjs';
3
+ import 'yjs';
4
+ import 'y-protocols/awareness';
5
5
 
6
6
  declare function App(appId: string, options: AppOptions): App$1;
7
7
 
@@ -25,6 +25,8 @@ declare const DEFAULT_WHEN_LIVE_TIMEOUT_MS = 45000;
25
25
 
26
26
  declare function whenLive(session: PhaseObservable, options?: WhenLiveOptions): Promise<void>;
27
27
 
28
+ declare function describeSessionPhase(phase: SessionPhase): string;
29
+
28
30
  interface RuntimeArtifactsClientOptions {
29
31
  baseUrl: string;
30
32
  fallbackUrls?: readonly string[];
@@ -149,57 +151,6 @@ declare class RecordingsClient {
149
151
 
150
152
  declare function createRecordingsClient(options: RecordingsClientOptions): RecordingsClient;
151
153
 
152
- declare class SessionDocumentImpl implements SessionDocument {
153
- private _doc;
154
- private _root;
155
- private _awareness;
156
- private _listeners;
157
- private _key;
158
- private _sessionId;
159
- private _connection;
160
- private _connUnsub;
161
-
162
- private _synced;
163
-
164
- private _syncWaiters;
165
-
166
- private _texts;
167
- private _observer;
168
- constructor(key: string, sessionId: string, connector?: DocConnector | null);
169
-
170
- get awareness(): Awareness;
171
-
172
- setSessionId(sessionId: string): void;
173
-
174
- get synced(): boolean;
175
-
176
- onSynced(handler: () => void): () => void;
177
-
178
- set(patch: Record<string, unknown>): void;
179
- get(path?: string, defaultValue?: unknown): unknown;
180
- on(event: 'change', handler: (snap: Record<string, unknown>) => void): () => void;
181
-
182
- text(field: string): SessionTextImpl;
183
- dispose(): void;
184
- private _markSynced;
185
-
186
- private applyPatch;
187
- private snapshot;
188
- private notify;
189
- }
190
-
191
- declare class SessionTextImpl implements SessionText {
192
- private _ytext;
193
- private _delta;
194
- private _observer;
195
- constructor(_ytext: Y.Text);
196
- append(text: string): void;
197
- toString(): string;
198
- get length(): number;
199
- on(event: 'delta', handler: (inserted: string) => void): () => void;
200
- dispose(): void;
201
- }
202
-
203
154
  declare const DEFAULT_DOC_SYNC_TIMEOUT_MS = 30000;
204
155
  declare class SessionStream implements SessionStream$1 {
205
156
  private _name;
@@ -408,4 +359,4 @@ declare class SessionAllocationError extends Error {
408
359
  });
409
360
  }
410
361
 
411
- export { App, App$1 as AppInterface, AppOptions, AttachOptions, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, InvalidDurationError, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, RuntimeArtifact, RuntimeArtifactDownload, RuntimeArtifactNotFoundError, RuntimeArtifactsAccessor, RuntimeArtifactsClient, type RuntimeArtifactsClientOptions, RuntimeArtifactsError, RuntimeArtifactsUnauthorizedError, Session, SessionAllocationError, SessionDocument, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionPhase, SessionStatus, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, type WhenLiveOptions, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, isDurationString, normalizeRetention, sessionFailureFromMediaError, videoStream, whenLive };
362
+ export { App, App$1 as AppInterface, AppOptions, AttachOptions, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, InvalidDurationError, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, RuntimeArtifact, RuntimeArtifactDownload, RuntimeArtifactNotFoundError, RuntimeArtifactsAccessor, RuntimeArtifactsClient, type RuntimeArtifactsClientOptions, RuntimeArtifactsError, RuntimeArtifactsUnauthorizedError, Session, SessionAllocationError, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionPhase, SessionStatus, SessionStream$1 as SessionStream, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, type WhenLiveOptions, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, isDurationString, normalizeRetention, sessionFailureFromMediaError, videoStream, whenLive };
@@ -1,7 +1,7 @@
1
- import { b as AppOptions, a as App$1, H as SessionPhase, N as SessionStatus, A as AccessTokenOptions, x as RuntimeArtifact, y as RuntimeArtifactDownload, R as Recording, F as SessionDocument, j as DocConnector, Q as SessionText, E as Session$1, C as ChannelEndpoint, X as TransportSession, c as AttachOptions, u as RecordingsAccessor, z as RuntimeArtifactsAccessor, O as SessionStream$1, W as StreamDataTransport, V as StreamChunkOptions, g as ChunkReadable, P as Presence, v as RequestOptions, w as RequestStreamOptions, U as StoreOptions, T as Store, e as ChannelMultiplexer, G as SessionFailureKind } from './stream-data-u76USIkQ.js';
2
- export { L as Layer, k as LayoutConfig, l as LayoutContext, M as MediaChunkBinding, n as MediaChunkSource, o as MediaChunkSourceFactory, p as MediaRecorderChunkSourceOptions, q as PresenceState, r as RecordingBucket, s as RecordingLifecycle, t as RecordingStatus, S as SceneContext, B as SceneGraph, I as SessionPhaseError, J as SessionPhaseName, Z as TransportState, a1 as isPendingRecording, a2 as mediaRecorderChunkSource } from './stream-data-u76USIkQ.js';
3
- import * as Y from 'yjs';
4
- import { Awareness } from 'y-protocols/awareness';
1
+ import { b as AppOptions, a as App$1, J as SessionPhase, Q as SessionStatus, A as AccessTokenOptions, x as RuntimeArtifact, y as RuntimeArtifactDownload, R as Recording, F as Session$1, C as ChannelEndpoint, Z as TransportSession, c as AttachOptions, u as RecordingsAccessor, z as RuntimeArtifactsAccessor, T as SessionStream$1, Y as StreamDataTransport, H as SessionDocumentImpl, X as StreamChunkOptions, g as ChunkReadable, P as Presence, j as DocConnector, v as RequestOptions, w as RequestStreamOptions, W as StoreOptions, V as Store, e as ChannelMultiplexer, I as SessionFailureKind } from './stream-data-B16nTnox.js';
2
+ export { L as Layer, k as LayoutConfig, l as LayoutContext, M as MediaChunkBinding, n as MediaChunkSource, o as MediaChunkSourceFactory, p as MediaRecorderChunkSourceOptions, q as PresenceState, r as RecordingBucket, s as RecordingLifecycle, t as RecordingStatus, B as RuntimeAvailability, S as SceneContext, E as SceneGraph, G as SessionDocument, K as SessionPhaseError, N as SessionPhaseName, U as SessionText, $ as TransportState, a3 as isPendingRecording, a4 as mediaRecorderChunkSource } from './stream-data-B16nTnox.js';
3
+ import 'yjs';
4
+ import 'y-protocols/awareness';
5
5
 
6
6
  declare function App(appId: string, options: AppOptions): App$1;
7
7
 
@@ -25,6 +25,8 @@ declare const DEFAULT_WHEN_LIVE_TIMEOUT_MS = 45000;
25
25
 
26
26
  declare function whenLive(session: PhaseObservable, options?: WhenLiveOptions): Promise<void>;
27
27
 
28
+ declare function describeSessionPhase(phase: SessionPhase): string;
29
+
28
30
  interface RuntimeArtifactsClientOptions {
29
31
  baseUrl: string;
30
32
  fallbackUrls?: readonly string[];
@@ -149,57 +151,6 @@ declare class RecordingsClient {
149
151
 
150
152
  declare function createRecordingsClient(options: RecordingsClientOptions): RecordingsClient;
151
153
 
152
- declare class SessionDocumentImpl implements SessionDocument {
153
- private _doc;
154
- private _root;
155
- private _awareness;
156
- private _listeners;
157
- private _key;
158
- private _sessionId;
159
- private _connection;
160
- private _connUnsub;
161
-
162
- private _synced;
163
-
164
- private _syncWaiters;
165
-
166
- private _texts;
167
- private _observer;
168
- constructor(key: string, sessionId: string, connector?: DocConnector | null);
169
-
170
- get awareness(): Awareness;
171
-
172
- setSessionId(sessionId: string): void;
173
-
174
- get synced(): boolean;
175
-
176
- onSynced(handler: () => void): () => void;
177
-
178
- set(patch: Record<string, unknown>): void;
179
- get(path?: string, defaultValue?: unknown): unknown;
180
- on(event: 'change', handler: (snap: Record<string, unknown>) => void): () => void;
181
-
182
- text(field: string): SessionTextImpl;
183
- dispose(): void;
184
- private _markSynced;
185
-
186
- private applyPatch;
187
- private snapshot;
188
- private notify;
189
- }
190
-
191
- declare class SessionTextImpl implements SessionText {
192
- private _ytext;
193
- private _delta;
194
- private _observer;
195
- constructor(_ytext: Y.Text);
196
- append(text: string): void;
197
- toString(): string;
198
- get length(): number;
199
- on(event: 'delta', handler: (inserted: string) => void): () => void;
200
- dispose(): void;
201
- }
202
-
203
154
  declare const DEFAULT_DOC_SYNC_TIMEOUT_MS = 30000;
204
155
  declare class SessionStream implements SessionStream$1 {
205
156
  private _name;
@@ -408,4 +359,4 @@ declare class SessionAllocationError extends Error {
408
359
  });
409
360
  }
410
361
 
411
- export { App, App$1 as AppInterface, AppOptions, AttachOptions, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, InvalidDurationError, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, RuntimeArtifact, RuntimeArtifactDownload, RuntimeArtifactNotFoundError, RuntimeArtifactsAccessor, RuntimeArtifactsClient, type RuntimeArtifactsClientOptions, RuntimeArtifactsError, RuntimeArtifactsUnauthorizedError, Session, SessionAllocationError, SessionDocument, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionPhase, SessionStatus, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, type WhenLiveOptions, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, isDurationString, normalizeRetention, sessionFailureFromMediaError, videoStream, whenLive };
362
+ export { App, App$1 as AppInterface, AppOptions, AttachOptions, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, InvalidDurationError, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, RuntimeArtifact, RuntimeArtifactDownload, RuntimeArtifactNotFoundError, RuntimeArtifactsAccessor, RuntimeArtifactsClient, type RuntimeArtifactsClientOptions, RuntimeArtifactsError, RuntimeArtifactsUnauthorizedError, Session, SessionAllocationError, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionPhase, SessionStatus, SessionStream$1 as SessionStream, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, type WhenLiveOptions, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, isDurationString, normalizeRetention, sessionFailureFromMediaError, videoStream, whenLive };