@urun-sh/core 0.2.2 → 0.2.4
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/README.md +43 -12
- package/dist/{chunk-QTLLNENF.mjs → chunk-OOZRRU3F.mjs} +5 -5
- package/dist/{chunk-2TYDFOWI.mjs → chunk-QU4I4XC5.mjs} +5 -5
- package/dist/index.browser.d.mts +63 -4
- package/dist/index.browser.d.ts +63 -4
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +63 -4
- package/dist/index.d.ts +63 -4
- package/dist/index.js +5 -5
- 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 +5 -5
- 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 +5 -5
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-BQHZia_W.d.mts → stream-data-Cuuh7KQc.d.mts} +59 -7
- package/dist/{stream-data-BQHZia_W.d.ts → stream-data-Cuuh7KQc.d.ts} +59 -7
- package/package.json +1 -1
package/dist/index.browser.d.mts
CHANGED
|
@@ -1,10 +1,60 @@
|
|
|
1
|
-
import { b as AppOptions, a as App$1, A as AccessTokenOptions, R as Recording,
|
|
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,
|
|
1
|
+
import { b as AppOptions, a as App$1, G as SessionPhase, A as AccessTokenOptions, x as RuntimeArtifact, y as RuntimeArtifactDownload, R as Recording, F as SessionDocument, j as DocConnector, K as SessionText, E as Session$1, C as ChannelEndpoint, U as TransportSession, c as AttachOptions, u as RecordingsAccessor, z as RuntimeArtifactsAccessor, J as SessionStream$1, T as StreamDataTransport, Q as StreamChunkOptions, g as ChunkReadable, P as Presence, v as RequestOptions, w as RequestStreamOptions, O as StoreOptions, N as Store, e as ChannelMultiplexer } from './stream-data-Cuuh7KQc.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, H as SessionPhaseName, W as TransportState, _ as isPendingRecording, $ as mediaRecorderChunkSource } from './stream-data-Cuuh7KQc.mjs';
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
import { Awareness } from 'y-protocols/awareness';
|
|
5
5
|
|
|
6
6
|
declare function App(appId: string, options: AppOptions): App$1;
|
|
7
7
|
|
|
8
|
+
interface PhaseObservable {
|
|
9
|
+
|
|
10
|
+
readonly phase: SessionPhase;
|
|
11
|
+
|
|
12
|
+
onPhase(handler: (phase: SessionPhase) => void): () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface WhenLiveOptions {
|
|
16
|
+
|
|
17
|
+
timeout?: number;
|
|
18
|
+
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare const DEFAULT_WHEN_LIVE_TIMEOUT_MS = 45000;
|
|
23
|
+
|
|
24
|
+
declare function whenLive(session: PhaseObservable, options?: WhenLiveOptions): Promise<void>;
|
|
25
|
+
|
|
26
|
+
interface RuntimeArtifactsClientOptions {
|
|
27
|
+
baseUrl: string;
|
|
28
|
+
fallbackUrls?: readonly string[];
|
|
29
|
+
orgId: string;
|
|
30
|
+
jwt?: string;
|
|
31
|
+
getAccessToken?: (options?: AccessTokenOptions) => string | null | undefined | Promise<string | null | undefined>;
|
|
32
|
+
authProvider?: string;
|
|
33
|
+
}
|
|
34
|
+
declare class RuntimeArtifactsError extends Error {
|
|
35
|
+
readonly status: number;
|
|
36
|
+
readonly code: string;
|
|
37
|
+
constructor(message: string, status: number, code?: string, cause?: unknown);
|
|
38
|
+
}
|
|
39
|
+
declare class RuntimeArtifactsUnauthorizedError extends RuntimeArtifactsError {
|
|
40
|
+
constructor(message?: string, code?: string);
|
|
41
|
+
}
|
|
42
|
+
declare class RuntimeArtifactNotFoundError extends RuntimeArtifactsError {
|
|
43
|
+
constructor(message?: string, code?: string);
|
|
44
|
+
}
|
|
45
|
+
declare function createRuntimeArtifactsClient(options: RuntimeArtifactsClientOptions): RuntimeArtifactsClient;
|
|
46
|
+
declare class RuntimeArtifactsClient {
|
|
47
|
+
private readonly _options;
|
|
48
|
+
constructor(options: RuntimeArtifactsClientOptions);
|
|
49
|
+
list(sessionId: string): Promise<RuntimeArtifact[]>;
|
|
50
|
+
getDownloadUrl(artifactId: string, sessionId: string): Promise<RuntimeArtifactDownload>;
|
|
51
|
+
private _request;
|
|
52
|
+
private _requestFromBase;
|
|
53
|
+
private _resolveToken;
|
|
54
|
+
private _headers;
|
|
55
|
+
private _readError;
|
|
56
|
+
}
|
|
57
|
+
|
|
8
58
|
interface RecordingsClientOptions {
|
|
9
59
|
|
|
10
60
|
functionsUrl: string;
|
|
@@ -219,8 +269,12 @@ declare class Session implements Session$1 {
|
|
|
219
269
|
|
|
220
270
|
private _recordingsAuth?;
|
|
221
271
|
|
|
272
|
+
private _artifactsAuth?;
|
|
273
|
+
|
|
222
274
|
private _recordingsAccessor;
|
|
223
|
-
|
|
275
|
+
|
|
276
|
+
private _artifactsAccessor;
|
|
277
|
+
constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions);
|
|
224
278
|
private _wireControlDocIncarnation;
|
|
225
279
|
|
|
226
280
|
static attach(sessionId: string, options: AttachOptions): Promise<Session>;
|
|
@@ -230,7 +284,12 @@ declare class Session implements Session$1 {
|
|
|
230
284
|
|
|
231
285
|
onPhase(handler: (phase: SessionPhase) => void): () => void;
|
|
232
286
|
|
|
287
|
+
whenLive(options?: WhenLiveOptions): Promise<void>;
|
|
288
|
+
|
|
233
289
|
get recordings(): RecordingsAccessor;
|
|
290
|
+
get artifacts(): RuntimeArtifactsAccessor;
|
|
291
|
+
setArtifactsAuth(auth: RuntimeArtifactsClientOptions): void;
|
|
292
|
+
private _requireArtifactsAuth;
|
|
234
293
|
setSessionId(sessionId: string): void;
|
|
235
294
|
stream(name: string): SessionStream;
|
|
236
295
|
|
|
@@ -318,4 +377,4 @@ declare class RequestCancelledError extends RequestError {
|
|
|
318
377
|
constructor(requestId?: string);
|
|
319
378
|
}
|
|
320
379
|
|
|
321
|
-
export { App, App$1 as AppInterface, AppOptions, AttachOptions, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, InvalidDurationError, PermanentLockedError, PinRequiresActiveTempError, Presence, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, createRecordingsClient, createStore, isDurationString, normalizeRetention, videoStream };
|
|
380
|
+
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, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, type WhenLiveOptions, createRecordingsClient, createRuntimeArtifactsClient, createStore, isDurationString, normalizeRetention, videoStream, whenLive };
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,10 +1,60 @@
|
|
|
1
|
-
import { b as AppOptions, a as App$1, A as AccessTokenOptions, R as Recording,
|
|
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,
|
|
1
|
+
import { b as AppOptions, a as App$1, G as SessionPhase, A as AccessTokenOptions, x as RuntimeArtifact, y as RuntimeArtifactDownload, R as Recording, F as SessionDocument, j as DocConnector, K as SessionText, E as Session$1, C as ChannelEndpoint, U as TransportSession, c as AttachOptions, u as RecordingsAccessor, z as RuntimeArtifactsAccessor, J as SessionStream$1, T as StreamDataTransport, Q as StreamChunkOptions, g as ChunkReadable, P as Presence, v as RequestOptions, w as RequestStreamOptions, O as StoreOptions, N as Store, e as ChannelMultiplexer } from './stream-data-Cuuh7KQc.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, H as SessionPhaseName, W as TransportState, _ as isPendingRecording, $ as mediaRecorderChunkSource } from './stream-data-Cuuh7KQc.js';
|
|
3
3
|
import * as Y from 'yjs';
|
|
4
4
|
import { Awareness } from 'y-protocols/awareness';
|
|
5
5
|
|
|
6
6
|
declare function App(appId: string, options: AppOptions): App$1;
|
|
7
7
|
|
|
8
|
+
interface PhaseObservable {
|
|
9
|
+
|
|
10
|
+
readonly phase: SessionPhase;
|
|
11
|
+
|
|
12
|
+
onPhase(handler: (phase: SessionPhase) => void): () => void;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface WhenLiveOptions {
|
|
16
|
+
|
|
17
|
+
timeout?: number;
|
|
18
|
+
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare const DEFAULT_WHEN_LIVE_TIMEOUT_MS = 45000;
|
|
23
|
+
|
|
24
|
+
declare function whenLive(session: PhaseObservable, options?: WhenLiveOptions): Promise<void>;
|
|
25
|
+
|
|
26
|
+
interface RuntimeArtifactsClientOptions {
|
|
27
|
+
baseUrl: string;
|
|
28
|
+
fallbackUrls?: readonly string[];
|
|
29
|
+
orgId: string;
|
|
30
|
+
jwt?: string;
|
|
31
|
+
getAccessToken?: (options?: AccessTokenOptions) => string | null | undefined | Promise<string | null | undefined>;
|
|
32
|
+
authProvider?: string;
|
|
33
|
+
}
|
|
34
|
+
declare class RuntimeArtifactsError extends Error {
|
|
35
|
+
readonly status: number;
|
|
36
|
+
readonly code: string;
|
|
37
|
+
constructor(message: string, status: number, code?: string, cause?: unknown);
|
|
38
|
+
}
|
|
39
|
+
declare class RuntimeArtifactsUnauthorizedError extends RuntimeArtifactsError {
|
|
40
|
+
constructor(message?: string, code?: string);
|
|
41
|
+
}
|
|
42
|
+
declare class RuntimeArtifactNotFoundError extends RuntimeArtifactsError {
|
|
43
|
+
constructor(message?: string, code?: string);
|
|
44
|
+
}
|
|
45
|
+
declare function createRuntimeArtifactsClient(options: RuntimeArtifactsClientOptions): RuntimeArtifactsClient;
|
|
46
|
+
declare class RuntimeArtifactsClient {
|
|
47
|
+
private readonly _options;
|
|
48
|
+
constructor(options: RuntimeArtifactsClientOptions);
|
|
49
|
+
list(sessionId: string): Promise<RuntimeArtifact[]>;
|
|
50
|
+
getDownloadUrl(artifactId: string, sessionId: string): Promise<RuntimeArtifactDownload>;
|
|
51
|
+
private _request;
|
|
52
|
+
private _requestFromBase;
|
|
53
|
+
private _resolveToken;
|
|
54
|
+
private _headers;
|
|
55
|
+
private _readError;
|
|
56
|
+
}
|
|
57
|
+
|
|
8
58
|
interface RecordingsClientOptions {
|
|
9
59
|
|
|
10
60
|
functionsUrl: string;
|
|
@@ -219,8 +269,12 @@ declare class Session implements Session$1 {
|
|
|
219
269
|
|
|
220
270
|
private _recordingsAuth?;
|
|
221
271
|
|
|
272
|
+
private _artifactsAuth?;
|
|
273
|
+
|
|
222
274
|
private _recordingsAccessor;
|
|
223
|
-
|
|
275
|
+
|
|
276
|
+
private _artifactsAccessor;
|
|
277
|
+
constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions);
|
|
224
278
|
private _wireControlDocIncarnation;
|
|
225
279
|
|
|
226
280
|
static attach(sessionId: string, options: AttachOptions): Promise<Session>;
|
|
@@ -230,7 +284,12 @@ declare class Session implements Session$1 {
|
|
|
230
284
|
|
|
231
285
|
onPhase(handler: (phase: SessionPhase) => void): () => void;
|
|
232
286
|
|
|
287
|
+
whenLive(options?: WhenLiveOptions): Promise<void>;
|
|
288
|
+
|
|
233
289
|
get recordings(): RecordingsAccessor;
|
|
290
|
+
get artifacts(): RuntimeArtifactsAccessor;
|
|
291
|
+
setArtifactsAuth(auth: RuntimeArtifactsClientOptions): void;
|
|
292
|
+
private _requireArtifactsAuth;
|
|
234
293
|
setSessionId(sessionId: string): void;
|
|
235
294
|
stream(name: string): SessionStream;
|
|
236
295
|
|
|
@@ -318,4 +377,4 @@ declare class RequestCancelledError extends RequestError {
|
|
|
318
377
|
constructor(requestId?: string);
|
|
319
378
|
}
|
|
320
379
|
|
|
321
|
-
export { App, App$1 as AppInterface, AppOptions, AttachOptions, ChunkReadable, DEFAULT_DOC_SYNC_TIMEOUT_MS, InvalidDurationError, PermanentLockedError, PinRequiresActiveTempError, Presence, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, Session, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, createRecordingsClient, createStore, isDurationString, normalizeRetention, videoStream };
|
|
380
|
+
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, SessionDocument, Session$1 as SessionInterface, SessionPhase, SessionStream$1 as SessionStream, SessionText, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type VideoStreamOptions, type WhenLiveOptions, createRecordingsClient, createRuntimeArtifactsClient, createStore, isDurationString, normalizeRetention, videoStream, whenLive };
|