@urun-sh/core 0.2.1 → 0.2.3
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-DJP5IED4.mjs} +5 -5
- package/dist/{chunk-2TYDFOWI.mjs → chunk-O4WPKVLL.mjs} +5 -5
- package/dist/index.browser.d.mts +43 -4
- package/dist/index.browser.d.ts +43 -4
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +43 -4
- package/dist/index.d.ts +43 -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-DFTD9vJY.d.mts} +39 -1
- package/dist/{stream-data-BQHZia_W.d.ts → stream-data-DFTD9vJY.d.ts} +39 -1
- package/package.json +1 -1
package/dist/index.browser.d.mts
CHANGED
|
@@ -1,10 +1,42 @@
|
|
|
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, 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, G as SessionPhase, 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-DFTD9vJY.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-DFTD9vJY.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 RuntimeArtifactsClientOptions {
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
fallbackUrls?: readonly string[];
|
|
11
|
+
orgId: string;
|
|
12
|
+
jwt?: string;
|
|
13
|
+
getAccessToken?: (options?: AccessTokenOptions) => string | null | undefined | Promise<string | null | undefined>;
|
|
14
|
+
authProvider?: string;
|
|
15
|
+
}
|
|
16
|
+
declare class RuntimeArtifactsError extends Error {
|
|
17
|
+
readonly status: number;
|
|
18
|
+
readonly code: string;
|
|
19
|
+
constructor(message: string, status: number, code?: string, cause?: unknown);
|
|
20
|
+
}
|
|
21
|
+
declare class RuntimeArtifactsUnauthorizedError extends RuntimeArtifactsError {
|
|
22
|
+
constructor(message?: string, code?: string);
|
|
23
|
+
}
|
|
24
|
+
declare class RuntimeArtifactNotFoundError extends RuntimeArtifactsError {
|
|
25
|
+
constructor(message?: string, code?: string);
|
|
26
|
+
}
|
|
27
|
+
declare function createRuntimeArtifactsClient(options: RuntimeArtifactsClientOptions): RuntimeArtifactsClient;
|
|
28
|
+
declare class RuntimeArtifactsClient {
|
|
29
|
+
private readonly _options;
|
|
30
|
+
constructor(options: RuntimeArtifactsClientOptions);
|
|
31
|
+
list(sessionId: string): Promise<RuntimeArtifact[]>;
|
|
32
|
+
getDownloadUrl(artifactId: string, sessionId: string): Promise<RuntimeArtifactDownload>;
|
|
33
|
+
private _request;
|
|
34
|
+
private _requestFromBase;
|
|
35
|
+
private _resolveToken;
|
|
36
|
+
private _headers;
|
|
37
|
+
private _readError;
|
|
38
|
+
}
|
|
39
|
+
|
|
8
40
|
interface RecordingsClientOptions {
|
|
9
41
|
|
|
10
42
|
functionsUrl: string;
|
|
@@ -219,8 +251,12 @@ declare class Session implements Session$1 {
|
|
|
219
251
|
|
|
220
252
|
private _recordingsAuth?;
|
|
221
253
|
|
|
254
|
+
private _artifactsAuth?;
|
|
255
|
+
|
|
222
256
|
private _recordingsAccessor;
|
|
223
|
-
|
|
257
|
+
|
|
258
|
+
private _artifactsAccessor;
|
|
259
|
+
constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions);
|
|
224
260
|
private _wireControlDocIncarnation;
|
|
225
261
|
|
|
226
262
|
static attach(sessionId: string, options: AttachOptions): Promise<Session>;
|
|
@@ -231,6 +267,9 @@ declare class Session implements Session$1 {
|
|
|
231
267
|
onPhase(handler: (phase: SessionPhase) => void): () => void;
|
|
232
268
|
|
|
233
269
|
get recordings(): RecordingsAccessor;
|
|
270
|
+
get artifacts(): RuntimeArtifactsAccessor;
|
|
271
|
+
setArtifactsAuth(auth: RuntimeArtifactsClientOptions): void;
|
|
272
|
+
private _requireArtifactsAuth;
|
|
234
273
|
setSessionId(sessionId: string): void;
|
|
235
274
|
stream(name: string): SessionStream;
|
|
236
275
|
|
|
@@ -318,4 +357,4 @@ declare class RequestCancelledError extends RequestError {
|
|
|
318
357
|
constructor(requestId?: string);
|
|
319
358
|
}
|
|
320
359
|
|
|
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 };
|
|
360
|
+
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, 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, createRecordingsClient, createRuntimeArtifactsClient, createStore, isDurationString, normalizeRetention, videoStream };
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,10 +1,42 @@
|
|
|
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, 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, G as SessionPhase, 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-DFTD9vJY.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-DFTD9vJY.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 RuntimeArtifactsClientOptions {
|
|
9
|
+
baseUrl: string;
|
|
10
|
+
fallbackUrls?: readonly string[];
|
|
11
|
+
orgId: string;
|
|
12
|
+
jwt?: string;
|
|
13
|
+
getAccessToken?: (options?: AccessTokenOptions) => string | null | undefined | Promise<string | null | undefined>;
|
|
14
|
+
authProvider?: string;
|
|
15
|
+
}
|
|
16
|
+
declare class RuntimeArtifactsError extends Error {
|
|
17
|
+
readonly status: number;
|
|
18
|
+
readonly code: string;
|
|
19
|
+
constructor(message: string, status: number, code?: string, cause?: unknown);
|
|
20
|
+
}
|
|
21
|
+
declare class RuntimeArtifactsUnauthorizedError extends RuntimeArtifactsError {
|
|
22
|
+
constructor(message?: string, code?: string);
|
|
23
|
+
}
|
|
24
|
+
declare class RuntimeArtifactNotFoundError extends RuntimeArtifactsError {
|
|
25
|
+
constructor(message?: string, code?: string);
|
|
26
|
+
}
|
|
27
|
+
declare function createRuntimeArtifactsClient(options: RuntimeArtifactsClientOptions): RuntimeArtifactsClient;
|
|
28
|
+
declare class RuntimeArtifactsClient {
|
|
29
|
+
private readonly _options;
|
|
30
|
+
constructor(options: RuntimeArtifactsClientOptions);
|
|
31
|
+
list(sessionId: string): Promise<RuntimeArtifact[]>;
|
|
32
|
+
getDownloadUrl(artifactId: string, sessionId: string): Promise<RuntimeArtifactDownload>;
|
|
33
|
+
private _request;
|
|
34
|
+
private _requestFromBase;
|
|
35
|
+
private _resolveToken;
|
|
36
|
+
private _headers;
|
|
37
|
+
private _readError;
|
|
38
|
+
}
|
|
39
|
+
|
|
8
40
|
interface RecordingsClientOptions {
|
|
9
41
|
|
|
10
42
|
functionsUrl: string;
|
|
@@ -219,8 +251,12 @@ declare class Session implements Session$1 {
|
|
|
219
251
|
|
|
220
252
|
private _recordingsAuth?;
|
|
221
253
|
|
|
254
|
+
private _artifactsAuth?;
|
|
255
|
+
|
|
222
256
|
private _recordingsAccessor;
|
|
223
|
-
|
|
257
|
+
|
|
258
|
+
private _artifactsAccessor;
|
|
259
|
+
constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions);
|
|
224
260
|
private _wireControlDocIncarnation;
|
|
225
261
|
|
|
226
262
|
static attach(sessionId: string, options: AttachOptions): Promise<Session>;
|
|
@@ -231,6 +267,9 @@ declare class Session implements Session$1 {
|
|
|
231
267
|
onPhase(handler: (phase: SessionPhase) => void): () => void;
|
|
232
268
|
|
|
233
269
|
get recordings(): RecordingsAccessor;
|
|
270
|
+
get artifacts(): RuntimeArtifactsAccessor;
|
|
271
|
+
setArtifactsAuth(auth: RuntimeArtifactsClientOptions): void;
|
|
272
|
+
private _requireArtifactsAuth;
|
|
234
273
|
setSessionId(sessionId: string): void;
|
|
235
274
|
stream(name: string): SessionStream;
|
|
236
275
|
|
|
@@ -318,4 +357,4 @@ declare class RequestCancelledError extends RequestError {
|
|
|
318
357
|
constructor(requestId?: string);
|
|
319
358
|
}
|
|
320
359
|
|
|
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 };
|
|
360
|
+
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, 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, createRecordingsClient, createRuntimeArtifactsClient, createStore, isDurationString, normalizeRetention, videoStream };
|