@urun-sh/core 0.2.35 → 0.2.37
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-6HLCYJ7O.mjs +3 -0
- package/dist/chunk-TQBKKR7C.mjs +8 -0
- package/dist/index.browser.d.mts +5 -42
- package/dist/index.browser.d.ts +5 -42
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +5 -42
- package/dist/index.d.ts +5 -42
- package/dist/index.js +3 -3
- 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 +5 -5
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-8bdjS6Au.d.mts → stream-data-rsZLrJmS.d.mts} +107 -4
- package/dist/{stream-data-8bdjS6Au.d.ts → stream-data-rsZLrJmS.d.ts} +107 -4
- package/package.json +1 -1
- package/dist/chunk-73X4QNRW.mjs +0 -8
- package/dist/chunk-WBUDJHD7.mjs +0 -3
package/dist/index.browser.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { g as AppOptions, f as App$1, V as SessionPhase, Z as SessionStatus, X as SessionPhaseName, A as AccessTokenOptions, H as RuntimeArtifact, I as RuntimeArtifactDownload, R as Recording, S as Session$1, C as ChannelEndpoint, a4 as TransportSession, h as AttachOptions, N as SessionDiagnostic, b as ActivationEvent, B as RecordingsAccessor, J as RuntimeArtifactsAccessor, T as SessionEndResult, _ as SessionStream$1, a3 as StreamDataTransport, Q as SessionDocumentImpl, a2 as StreamChunkOptions, l as ChunkReadable, P as Presence, p as DocConnector, F as RequestOptions, G as RequestStreamOptions, a1 as StoreOptions, a0 as Store, j as ChannelMultiplexer, U as SessionFailureKind, a6 as TransportState } from './stream-data-rsZLrJmS.mjs';
|
|
2
|
+
export { c as ActivationState, M as MediaChunkBinding, q as MediaChunkSource, r as MediaChunkSourceFactory, s as MediaRecorderChunkSourceOptions, t as PresenceState, u as PrewakeOptions, v as PrewakeResult, w as PrewakeStatus, x as RecordingBucket, y as RecordingLifecycle, z as RecordingStatus, E as ReleaseSessionBeaconOptions, K as RuntimeAvailability, O as SessionDocument, W as SessionPhaseError, $ as SessionText, ab as isPendingRecording, ac as mediaRecorderChunkSource, ad as prewake, ae as releaseSessionBeacon } from './stream-data-rsZLrJmS.mjs';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
5
|
|
|
@@ -41,43 +41,6 @@ declare class ClientTokenError extends Error {
|
|
|
41
41
|
|
|
42
42
|
declare function createClientToken(apiKey: string, options?: CreateClientTokenOptions): Promise<ClientToken>;
|
|
43
43
|
|
|
44
|
-
interface AccessTokenOptions {
|
|
45
|
-
forceRefresh?: boolean;
|
|
46
|
-
reason?: 'initial' | 'unauthorized' | 'background';
|
|
47
|
-
}
|
|
48
|
-
interface ReleaseSessionBeaconOptions {
|
|
49
|
-
baseUrl: string;
|
|
50
|
-
requestId: string;
|
|
51
|
-
orgId: string;
|
|
52
|
-
|
|
53
|
-
jwt?: string;
|
|
54
|
-
authProvider?: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
declare function releaseSessionBeacon(options: ReleaseSessionBeaconOptions): void;
|
|
58
|
-
interface PrewakeOptions {
|
|
59
|
-
baseUrl: string;
|
|
60
|
-
|
|
61
|
-
app: string;
|
|
62
|
-
|
|
63
|
-
functionName: string;
|
|
64
|
-
orgId: string;
|
|
65
|
-
jwt?: string;
|
|
66
|
-
getAccessToken?: (options?: AccessTokenOptions) => string | null | undefined | Promise<string | null | undefined>;
|
|
67
|
-
authProvider?: string;
|
|
68
|
-
}
|
|
69
|
-
type PrewakeStatus = 'warming' | 'prebound' | 'unknown-app' | 'unavailable';
|
|
70
|
-
interface PrewakeResult {
|
|
71
|
-
|
|
72
|
-
status: PrewakeStatus;
|
|
73
|
-
|
|
74
|
-
expiresAt?: string;
|
|
75
|
-
|
|
76
|
-
warmCapable?: boolean;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
declare function prewake(options: PrewakeOptions): Promise<PrewakeResult>;
|
|
80
|
-
|
|
81
44
|
declare function isWakingPhase(phase: SessionPhase | SessionPhaseName | null | undefined): boolean;
|
|
82
45
|
|
|
83
46
|
interface PhaseObservable {
|
|
@@ -107,7 +70,7 @@ interface RuntimeArtifactsClientOptions {
|
|
|
107
70
|
fallbackUrls?: readonly string[];
|
|
108
71
|
orgId: string;
|
|
109
72
|
jwt?: string;
|
|
110
|
-
getAccessToken?: (options?: AccessTokenOptions
|
|
73
|
+
getAccessToken?: (options?: AccessTokenOptions) => string | null | undefined | Promise<string | null | undefined>;
|
|
111
74
|
authProvider?: string;
|
|
112
75
|
}
|
|
113
76
|
declare class RuntimeArtifactsError extends Error {
|
|
@@ -144,7 +107,7 @@ interface RecordingsClientOptions {
|
|
|
144
107
|
|
|
145
108
|
jwt?: string;
|
|
146
109
|
|
|
147
|
-
getAccessToken?: (options?: AccessTokenOptions
|
|
110
|
+
getAccessToken?: (options?: AccessTokenOptions) => string | null | undefined | Promise<string | null | undefined>;
|
|
148
111
|
|
|
149
112
|
authProvider?: string;
|
|
150
113
|
}
|
|
@@ -987,4 +950,4 @@ declare class FrameReassembler {
|
|
|
987
950
|
private requestKeyframe;
|
|
988
951
|
}
|
|
989
952
|
|
|
990
|
-
export { ACTIVATION_COLD_BOOT_AFTER_MS, ACTIVATION_DEGRADED_AFTER_MS, ACTIVATION_HINT_PATH, ACTIVATION_STILL_AFTER_MS, ACTIVITY_DOM_EVENTS, ACTIVITY_FIELD, ACTIVITY_STAMP_MIN_INTERVAL_MS, ActivationEvent, ActivationMonitor, type ActivationMonitorOptions, type ActivationStreamLike, type ActivityAwareness, type ActivityTracker, type ActivityTrackerOptions, App, App$1 as AppInterface, AppOptions, AttachOptions, BACKOFF_BASE_MS, BACKOFF_MAX_ATTEMPTS, BACKOFF_MAX_MS, type CaptureClaim, CaptureController, type CaptureControllerOptions, type CaptureKind, CaptureUnavailableError, ChunkReadable, type ClientToken, ClientTokenError, type ConsumingTransport, type CreateClientTokenOptions, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_GATEWAY_URL, DEFAULT_PRODUCE_ACK_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, DGRAM_HEADER_BYTES, type DgramHeader, FOREGROUND_COALESCE_MS, FrameReassembler, INPUT_PRESENCE_DEFAULT_HZ, INPUT_PRESENCE_FIELD, type InputPresenceAwareness, type InputPresencePublisher, type InputPresencePublisherOptions, type InputPresenceState, InvalidDurationError, LEGACY_ACTIVATION_HINT_PATH, type MediaSession, type NegotiatorOptions, PLATFORM_DOC_NAME, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence,
|
|
953
|
+
export { ACTIVATION_COLD_BOOT_AFTER_MS, ACTIVATION_DEGRADED_AFTER_MS, ACTIVATION_HINT_PATH, ACTIVATION_STILL_AFTER_MS, ACTIVITY_DOM_EVENTS, ACTIVITY_FIELD, ACTIVITY_STAMP_MIN_INTERVAL_MS, ActivationEvent, ActivationMonitor, type ActivationMonitorOptions, type ActivationStreamLike, type ActivityAwareness, type ActivityTracker, type ActivityTrackerOptions, App, App$1 as AppInterface, AppOptions, AttachOptions, BACKOFF_BASE_MS, BACKOFF_MAX_ATTEMPTS, BACKOFF_MAX_MS, type CaptureClaim, CaptureController, type CaptureControllerOptions, type CaptureKind, CaptureUnavailableError, ChunkReadable, type ClientToken, ClientTokenError, type ConsumingTransport, type CreateClientTokenOptions, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_GATEWAY_URL, DEFAULT_PRODUCE_ACK_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, DGRAM_HEADER_BYTES, type DgramHeader, FOREGROUND_COALESCE_MS, FrameReassembler, INPUT_PRESENCE_DEFAULT_HZ, INPUT_PRESENCE_FIELD, type InputPresenceAwareness, type InputPresencePublisher, type InputPresencePublisherOptions, type InputPresenceState, InvalidDurationError, LEGACY_ACTIVATION_HINT_PATH, type MediaSession, type NegotiatorOptions, PLATFORM_DOC_NAME, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, ProduceAckTimeoutError, type ReassembledFrame, type ReassemblerCallbacks, type ReassemblerOptions, 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, SessionDiagnostic, SessionEndError, SessionEndResult, SessionEndUnavailableError, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionPhase, SessionPhaseName, SessionStatus, SessionStream$1 as SessionStream, type SignalCarrier, type Signaling, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type TransportEstablishedNotify, TransportNegotiator, type TransportOfferRequest, type TransportOfferResponse, TransportSessionSignaling, TransportState, VISIBILITY_FIELD, type VideoStreamOptions, WT_CONTROL_FRAME_MAX, WebRtcSession, WebTransportSession, type WhenLiveOptions, WtControlDecoder, type WtControlMessage, activationHintFrom, computeBackoffDelay, createActivityTracker, createClientToken, createInputPresencePublisher, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, encodeWtControlFrame, isDurationString, isRetryableSessionError, isWakingPhase, normalizeRetention, observePageLifecycle, observePageTeardown, parseDgramHeader, sessionFailureFromMediaError, sharedCaptureController, videoStream, whenLive, writeDgramHeader };
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { g as AppOptions, f as App$1, V as SessionPhase, Z as SessionStatus, X as SessionPhaseName, A as AccessTokenOptions, H as RuntimeArtifact, I as RuntimeArtifactDownload, R as Recording, S as Session$1, C as ChannelEndpoint, a4 as TransportSession, h as AttachOptions, N as SessionDiagnostic, b as ActivationEvent, B as RecordingsAccessor, J as RuntimeArtifactsAccessor, T as SessionEndResult, _ as SessionStream$1, a3 as StreamDataTransport, Q as SessionDocumentImpl, a2 as StreamChunkOptions, l as ChunkReadable, P as Presence, p as DocConnector, F as RequestOptions, G as RequestStreamOptions, a1 as StoreOptions, a0 as Store, j as ChannelMultiplexer, U as SessionFailureKind, a6 as TransportState } from './stream-data-rsZLrJmS.js';
|
|
2
|
+
export { c as ActivationState, M as MediaChunkBinding, q as MediaChunkSource, r as MediaChunkSourceFactory, s as MediaRecorderChunkSourceOptions, t as PresenceState, u as PrewakeOptions, v as PrewakeResult, w as PrewakeStatus, x as RecordingBucket, y as RecordingLifecycle, z as RecordingStatus, E as ReleaseSessionBeaconOptions, K as RuntimeAvailability, O as SessionDocument, W as SessionPhaseError, $ as SessionText, ab as isPendingRecording, ac as mediaRecorderChunkSource, ad as prewake, ae as releaseSessionBeacon } from './stream-data-rsZLrJmS.js';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
5
|
|
|
@@ -41,43 +41,6 @@ declare class ClientTokenError extends Error {
|
|
|
41
41
|
|
|
42
42
|
declare function createClientToken(apiKey: string, options?: CreateClientTokenOptions): Promise<ClientToken>;
|
|
43
43
|
|
|
44
|
-
interface AccessTokenOptions {
|
|
45
|
-
forceRefresh?: boolean;
|
|
46
|
-
reason?: 'initial' | 'unauthorized' | 'background';
|
|
47
|
-
}
|
|
48
|
-
interface ReleaseSessionBeaconOptions {
|
|
49
|
-
baseUrl: string;
|
|
50
|
-
requestId: string;
|
|
51
|
-
orgId: string;
|
|
52
|
-
|
|
53
|
-
jwt?: string;
|
|
54
|
-
authProvider?: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
declare function releaseSessionBeacon(options: ReleaseSessionBeaconOptions): void;
|
|
58
|
-
interface PrewakeOptions {
|
|
59
|
-
baseUrl: string;
|
|
60
|
-
|
|
61
|
-
app: string;
|
|
62
|
-
|
|
63
|
-
functionName: string;
|
|
64
|
-
orgId: string;
|
|
65
|
-
jwt?: string;
|
|
66
|
-
getAccessToken?: (options?: AccessTokenOptions) => string | null | undefined | Promise<string | null | undefined>;
|
|
67
|
-
authProvider?: string;
|
|
68
|
-
}
|
|
69
|
-
type PrewakeStatus = 'warming' | 'prebound' | 'unknown-app' | 'unavailable';
|
|
70
|
-
interface PrewakeResult {
|
|
71
|
-
|
|
72
|
-
status: PrewakeStatus;
|
|
73
|
-
|
|
74
|
-
expiresAt?: string;
|
|
75
|
-
|
|
76
|
-
warmCapable?: boolean;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
declare function prewake(options: PrewakeOptions): Promise<PrewakeResult>;
|
|
80
|
-
|
|
81
44
|
declare function isWakingPhase(phase: SessionPhase | SessionPhaseName | null | undefined): boolean;
|
|
82
45
|
|
|
83
46
|
interface PhaseObservable {
|
|
@@ -107,7 +70,7 @@ interface RuntimeArtifactsClientOptions {
|
|
|
107
70
|
fallbackUrls?: readonly string[];
|
|
108
71
|
orgId: string;
|
|
109
72
|
jwt?: string;
|
|
110
|
-
getAccessToken?: (options?: AccessTokenOptions
|
|
73
|
+
getAccessToken?: (options?: AccessTokenOptions) => string | null | undefined | Promise<string | null | undefined>;
|
|
111
74
|
authProvider?: string;
|
|
112
75
|
}
|
|
113
76
|
declare class RuntimeArtifactsError extends Error {
|
|
@@ -144,7 +107,7 @@ interface RecordingsClientOptions {
|
|
|
144
107
|
|
|
145
108
|
jwt?: string;
|
|
146
109
|
|
|
147
|
-
getAccessToken?: (options?: AccessTokenOptions
|
|
110
|
+
getAccessToken?: (options?: AccessTokenOptions) => string | null | undefined | Promise<string | null | undefined>;
|
|
148
111
|
|
|
149
112
|
authProvider?: string;
|
|
150
113
|
}
|
|
@@ -987,4 +950,4 @@ declare class FrameReassembler {
|
|
|
987
950
|
private requestKeyframe;
|
|
988
951
|
}
|
|
989
952
|
|
|
990
|
-
export { ACTIVATION_COLD_BOOT_AFTER_MS, ACTIVATION_DEGRADED_AFTER_MS, ACTIVATION_HINT_PATH, ACTIVATION_STILL_AFTER_MS, ACTIVITY_DOM_EVENTS, ACTIVITY_FIELD, ACTIVITY_STAMP_MIN_INTERVAL_MS, ActivationEvent, ActivationMonitor, type ActivationMonitorOptions, type ActivationStreamLike, type ActivityAwareness, type ActivityTracker, type ActivityTrackerOptions, App, App$1 as AppInterface, AppOptions, AttachOptions, BACKOFF_BASE_MS, BACKOFF_MAX_ATTEMPTS, BACKOFF_MAX_MS, type CaptureClaim, CaptureController, type CaptureControllerOptions, type CaptureKind, CaptureUnavailableError, ChunkReadable, type ClientToken, ClientTokenError, type ConsumingTransport, type CreateClientTokenOptions, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_GATEWAY_URL, DEFAULT_PRODUCE_ACK_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, DGRAM_HEADER_BYTES, type DgramHeader, FOREGROUND_COALESCE_MS, FrameReassembler, INPUT_PRESENCE_DEFAULT_HZ, INPUT_PRESENCE_FIELD, type InputPresenceAwareness, type InputPresencePublisher, type InputPresencePublisherOptions, type InputPresenceState, InvalidDurationError, LEGACY_ACTIVATION_HINT_PATH, type MediaSession, type NegotiatorOptions, PLATFORM_DOC_NAME, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence,
|
|
953
|
+
export { ACTIVATION_COLD_BOOT_AFTER_MS, ACTIVATION_DEGRADED_AFTER_MS, ACTIVATION_HINT_PATH, ACTIVATION_STILL_AFTER_MS, ACTIVITY_DOM_EVENTS, ACTIVITY_FIELD, ACTIVITY_STAMP_MIN_INTERVAL_MS, ActivationEvent, ActivationMonitor, type ActivationMonitorOptions, type ActivationStreamLike, type ActivityAwareness, type ActivityTracker, type ActivityTrackerOptions, App, App$1 as AppInterface, AppOptions, AttachOptions, BACKOFF_BASE_MS, BACKOFF_MAX_ATTEMPTS, BACKOFF_MAX_MS, type CaptureClaim, CaptureController, type CaptureControllerOptions, type CaptureKind, CaptureUnavailableError, ChunkReadable, type ClientToken, ClientTokenError, type ConsumingTransport, type CreateClientTokenOptions, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_GATEWAY_URL, DEFAULT_PRODUCE_ACK_TIMEOUT_MS, DEFAULT_WHEN_LIVE_TIMEOUT_MS, DGRAM_HEADER_BYTES, type DgramHeader, FOREGROUND_COALESCE_MS, FrameReassembler, INPUT_PRESENCE_DEFAULT_HZ, INPUT_PRESENCE_FIELD, type InputPresenceAwareness, type InputPresencePublisher, type InputPresencePublisherOptions, type InputPresenceState, InvalidDurationError, LEGACY_ACTIVATION_HINT_PATH, type MediaSession, type NegotiatorOptions, PLATFORM_DOC_NAME, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, ProduceAckTimeoutError, type ReassembledFrame, type ReassemblerCallbacks, type ReassemblerOptions, 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, SessionDiagnostic, SessionEndError, SessionEndResult, SessionEndUnavailableError, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionPhase, SessionPhaseName, SessionStatus, SessionStream$1 as SessionStream, type SignalCarrier, type Signaling, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, type TransportEstablishedNotify, TransportNegotiator, type TransportOfferRequest, type TransportOfferResponse, TransportSessionSignaling, TransportState, VISIBILITY_FIELD, type VideoStreamOptions, WT_CONTROL_FRAME_MAX, WebRtcSession, WebTransportSession, type WhenLiveOptions, WtControlDecoder, type WtControlMessage, activationHintFrom, computeBackoffDelay, createActivityTracker, createClientToken, createInputPresencePublisher, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, encodeWtControlFrame, isDurationString, isRetryableSessionError, isWakingPhase, normalizeRetention, observePageLifecycle, observePageTeardown, parseDgramHeader, sessionFailureFromMediaError, sharedCaptureController, videoStream, whenLive, writeDgramHeader };
|