@urun-sh/core 0.2.7 → 0.2.8
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/{chunk-YYZIRCR7.mjs → chunk-C2B5BLQW.mjs} +2 -2
- package/dist/{chunk-47GHXEPH.mjs → chunk-MDOFFR4J.mjs} +2 -2
- package/dist/index.browser.d.mts +17 -3
- package/dist/index.browser.d.ts +17 -3
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +17 -3
- package/dist/index.d.ts +17 -3
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/internal.browser.d.mts +1 -1
- package/dist/internal.browser.d.ts +1 -1
- package/dist/internal.browser.js +2 -2
- package/dist/internal.browser.mjs +1 -1
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +2 -2
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-B16nTnox.d.mts → stream-data-BS3Z4V1D.d.mts} +20 -2
- package/dist/{stream-data-B16nTnox.d.ts → stream-data-BS3Z4V1D.d.ts} +20 -2
- package/package.json +1 -1
package/dist/index.browser.d.mts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { b as AppOptions, a as App$1,
|
|
2
|
-
export { L as Layer,
|
|
1
|
+
import { b as AppOptions, a as App$1, K as SessionPhase, T as SessionStatus, O as SessionPhaseName, A as AccessTokenOptions, y as RuntimeArtifact, z as RuntimeArtifactDownload, R as Recording, G as Session$1, C as ChannelEndpoint, _ as TransportSession, c as AttachOptions, v as RecordingsAccessor, B as RuntimeArtifactsAccessor, U as SessionStream$1, Z as StreamDataTransport, I as SessionDocumentImpl, Y as StreamChunkOptions, g as ChunkReadable, P as Presence, k as DocConnector, w as RequestOptions, x as RequestStreamOptions, X as StoreOptions, W as Store, e as ChannelMultiplexer, J as SessionFailureKind } from './stream-data-BS3Z4V1D.mjs';
|
|
2
|
+
export { L as Layer, l as LayoutConfig, m as LayoutContext, M as MediaChunkBinding, o as MediaChunkSource, p as MediaChunkSourceFactory, q as MediaRecorderChunkSourceOptions, r as PresenceState, s as RecordingBucket, t as RecordingLifecycle, u as RecordingStatus, E as RuntimeAvailability, S as SceneContext, F as SceneGraph, H as SessionDocument, N as SessionPhaseError, V as SessionText, a0 as TransportState, a4 as isPendingRecording, a5 as mediaRecorderChunkSource } from './stream-data-BS3Z4V1D.mjs';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
5
|
|
|
6
6
|
declare function App(appId: string, options: AppOptions): App$1;
|
|
7
7
|
|
|
8
|
+
declare function isWakingPhase(phase: SessionPhase | SessionPhaseName | null | undefined): boolean;
|
|
9
|
+
|
|
8
10
|
interface PhaseObservable {
|
|
9
11
|
|
|
10
12
|
readonly phase: SessionPhase;
|
|
@@ -227,6 +229,10 @@ declare class Session implements Session$1 {
|
|
|
227
229
|
private _recordingsAccessor;
|
|
228
230
|
|
|
229
231
|
private _artifactsAccessor;
|
|
232
|
+
|
|
233
|
+
private _recoveryHooks;
|
|
234
|
+
|
|
235
|
+
private _lifecycleUnsub;
|
|
230
236
|
constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions);
|
|
231
237
|
private _wireControlDocIncarnation;
|
|
232
238
|
|
|
@@ -273,9 +279,17 @@ declare class Session implements Session$1 {
|
|
|
273
279
|
requestStream(payload: unknown, options?: RequestStreamOptions): AsyncIterable<string>;
|
|
274
280
|
|
|
275
281
|
complete(payload: unknown, options?: RequestStreamOptions): Promise<unknown>;
|
|
282
|
+
|
|
283
|
+
recover(): void;
|
|
284
|
+
|
|
285
|
+
onRecovery(hook: () => void): () => void;
|
|
276
286
|
disconnect(): void;
|
|
277
287
|
}
|
|
278
288
|
|
|
289
|
+
declare const FOREGROUND_COALESCE_MS = 250;
|
|
290
|
+
|
|
291
|
+
declare function observePageLifecycle(onForeground: () => void): () => void;
|
|
292
|
+
|
|
279
293
|
declare function createStore(options: StoreOptions): Store & {
|
|
280
294
|
_getInternals(): {
|
|
281
295
|
multiplexer: ChannelMultiplexer;
|
|
@@ -359,4 +373,4 @@ declare class SessionAllocationError extends Error {
|
|
|
359
373
|
});
|
|
360
374
|
}
|
|
361
375
|
|
|
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 };
|
|
376
|
+
export { App, App$1 as AppInterface, AppOptions, AttachOptions, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, FOREGROUND_COALESCE_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, SessionPhaseName, SessionStatus, SessionStream$1 as SessionStream, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, type WhenLiveOptions, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, isDurationString, isWakingPhase, normalizeRetention, observePageLifecycle, sessionFailureFromMediaError, videoStream, whenLive };
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { b as AppOptions, a as App$1,
|
|
2
|
-
export { L as Layer,
|
|
1
|
+
import { b as AppOptions, a as App$1, K as SessionPhase, T as SessionStatus, O as SessionPhaseName, A as AccessTokenOptions, y as RuntimeArtifact, z as RuntimeArtifactDownload, R as Recording, G as Session$1, C as ChannelEndpoint, _ as TransportSession, c as AttachOptions, v as RecordingsAccessor, B as RuntimeArtifactsAccessor, U as SessionStream$1, Z as StreamDataTransport, I as SessionDocumentImpl, Y as StreamChunkOptions, g as ChunkReadable, P as Presence, k as DocConnector, w as RequestOptions, x as RequestStreamOptions, X as StoreOptions, W as Store, e as ChannelMultiplexer, J as SessionFailureKind } from './stream-data-BS3Z4V1D.js';
|
|
2
|
+
export { L as Layer, l as LayoutConfig, m as LayoutContext, M as MediaChunkBinding, o as MediaChunkSource, p as MediaChunkSourceFactory, q as MediaRecorderChunkSourceOptions, r as PresenceState, s as RecordingBucket, t as RecordingLifecycle, u as RecordingStatus, E as RuntimeAvailability, S as SceneContext, F as SceneGraph, H as SessionDocument, N as SessionPhaseError, V as SessionText, a0 as TransportState, a4 as isPendingRecording, a5 as mediaRecorderChunkSource } from './stream-data-BS3Z4V1D.js';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
5
|
|
|
6
6
|
declare function App(appId: string, options: AppOptions): App$1;
|
|
7
7
|
|
|
8
|
+
declare function isWakingPhase(phase: SessionPhase | SessionPhaseName | null | undefined): boolean;
|
|
9
|
+
|
|
8
10
|
interface PhaseObservable {
|
|
9
11
|
|
|
10
12
|
readonly phase: SessionPhase;
|
|
@@ -227,6 +229,10 @@ declare class Session implements Session$1 {
|
|
|
227
229
|
private _recordingsAccessor;
|
|
228
230
|
|
|
229
231
|
private _artifactsAccessor;
|
|
232
|
+
|
|
233
|
+
private _recoveryHooks;
|
|
234
|
+
|
|
235
|
+
private _lifecycleUnsub;
|
|
230
236
|
constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions);
|
|
231
237
|
private _wireControlDocIncarnation;
|
|
232
238
|
|
|
@@ -273,9 +279,17 @@ declare class Session implements Session$1 {
|
|
|
273
279
|
requestStream(payload: unknown, options?: RequestStreamOptions): AsyncIterable<string>;
|
|
274
280
|
|
|
275
281
|
complete(payload: unknown, options?: RequestStreamOptions): Promise<unknown>;
|
|
282
|
+
|
|
283
|
+
recover(): void;
|
|
284
|
+
|
|
285
|
+
onRecovery(hook: () => void): () => void;
|
|
276
286
|
disconnect(): void;
|
|
277
287
|
}
|
|
278
288
|
|
|
289
|
+
declare const FOREGROUND_COALESCE_MS = 250;
|
|
290
|
+
|
|
291
|
+
declare function observePageLifecycle(onForeground: () => void): () => void;
|
|
292
|
+
|
|
279
293
|
declare function createStore(options: StoreOptions): Store & {
|
|
280
294
|
_getInternals(): {
|
|
281
295
|
multiplexer: ChannelMultiplexer;
|
|
@@ -359,4 +373,4 @@ declare class SessionAllocationError extends Error {
|
|
|
359
373
|
});
|
|
360
374
|
}
|
|
361
375
|
|
|
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 };
|
|
376
|
+
export { App, App$1 as AppInterface, AppOptions, AttachOptions, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, FOREGROUND_COALESCE_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, SessionPhaseName, SessionStatus, SessionStream$1 as SessionStream, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, type WhenLiveOptions, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, isDurationString, isWakingPhase, normalizeRetention, observePageLifecycle, sessionFailureFromMediaError, videoStream, whenLive };
|