@urun-sh/core 0.5.1 → 0.5.2
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/CHANGELOG.md +8 -0
- package/dist/{chunk-DEL3BEYT.mjs → chunk-FJ3TNCO7.mjs} +2 -2
- package/dist/{chunk-NTMFUGAJ.mjs → chunk-R33J74SA.mjs} +5 -5
- package/dist/index.browser.d.mts +16 -3
- package/dist/index.browser.d.ts +16 -3
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +16 -3
- package/dist/index.d.ts +16 -3
- 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 +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-DR_uxiuv.d.mts → stream-data-Cjg0SjId.d.mts} +19 -1
- package/dist/{stream-data-DR_uxiuv.d.ts → stream-data-Cjg0SjId.d.ts} +19 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { c as ActivationState,
|
|
1
|
+
import { ad as SessionDirectoryRequestOptions, h as AppOptions, g as App$1, ai as SessionPhase, ao as SessionStatus, ak as SessionPhaseName, A as AccessTokenOptions, a2 as RuntimeArtifact, a3 as RuntimeArtifactDownload, W as Recording, aF as TransportState, ab as Session$1, C as ChannelEndpoint, aC as TransportSession, d as ActivitySignalMode, i as AttachOptions, ac as SessionDiagnostic, b as ActivationEvent, an as SessionStatsSample, B as GenerationTick, _ as RecordingsAccessor, a4 as RuntimeArtifactsAccessor, ag as SessionEndResult, ap as SessionStream$1, ax as StreamDataTransport, af as SessionDocumentImpl, aw as StreamChunkOptions, n as ChunkReadable, Q as Presence, w as DocConnector, y as DocTokenSupplier, x as DocServerUrlResolver, a0 as RequestOptions, a1 as RequestStreamOptions, av as StoreOptions, au as Store, l as ChannelMultiplexer, ah as SessionFailureKind, J as MediaSession, P as PathHealthReporting, aB as TransportOfferResponse, aK as WtAudioLaneSeam, aL as WtAudioUplinkSeam, aS as WtVideoUplinkSeam, aR as WtDataUplinkSender, O as PathLiveness, aP as WtDataLaneSink } from './stream-data-Cjg0SjId.mjs';
|
|
2
|
+
export { c as ActivationState, j as AudioPlayoutOptions, D as DERIVED_LEG_SEP, o as DGRAM_HEADER_BYTES, s as DerivedLegRole, t as DgramHeader, v as DocConnectionState, G as GENERATION_TICK_EMIT_INTERVAL_MS, z as GENERATION_TICK_MAX_EXTRAPOLATION_MS, I as InboundStatsSample, M as MediaChunkBinding, E as MediaChunkSource, F as MediaChunkSourceFactory, H as MediaRecorderChunkSourceOptions, N as NegotiatorDataLaneSeam, K as NegotiatorOptions, R as PresenceState, S as PrewakeOptions, T as PrewakeResult, U as PrewakeStatus, V as QuicStreamDataTransport, X as RecordingBucket, Y as RecordingLifecycle, Z as RecordingStatus, $ as ReleaseSessionBeaconOptions, a5 as RuntimeAvailability, a6 as RuntimeWakeDetail, a7 as RuntimeWakeGolden, a8 as RuntimeWakeReasonCode, a9 as SIGNALING_PROTOCOL_VERSION, aa as STREAM_END, ae as SessionDocument, aj as SessionPhaseError, am as SessionStatsOptions, aq as SessionText, ar as SignalCarrier, as as Signaling, at as StartSessionOptions, ay as TransportEstablishedNotify, az as TransportNegotiator, aA as TransportOfferRequest, aE as TransportSessionSignaling, aG as VideoPlayoutOptions, aH as WT_CONTROL_FRAME_MAX, aI as WT_DATA_STREAM_VERSION, aJ as WatchGenerationTickOptions, aM as WtControlDecoder, aN as WtControlMessage, aO as WtDataEnvelope, aQ as WtDataStreamParser, aU as consumeWtDataStreams, aX as decodeStreamEnvelope, aZ as derivedLegName, a_ as derivedLegRole, a$ as encodeStreamEnvelope, b0 as encodeWtControlFrame, b1 as isPendingRecording, b2 as mediaRecorderChunkSource, b3 as parseDgramHeader, b4 as prewake, b5 as releaseSessionBeacon, b8 as watchGenerationTick, b9 as writeDgramHeader } from './stream-data-Cjg0SjId.mjs';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
5
|
|
|
@@ -341,6 +341,11 @@ declare class PresenceTracker {
|
|
|
341
341
|
dispose(): void;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
+
interface SessionConstructorOptions {
|
|
345
|
+
|
|
346
|
+
activity?: ActivitySignalMode;
|
|
347
|
+
}
|
|
348
|
+
|
|
344
349
|
declare const DEFAULT_DOC_SYNC_TIMEOUT_MS = 30000;
|
|
345
350
|
declare class SessionStream implements SessionStream$1 {
|
|
346
351
|
private _name;
|
|
@@ -424,6 +429,8 @@ declare class Session implements Session$1 {
|
|
|
424
429
|
|
|
425
430
|
private _activity;
|
|
426
431
|
|
|
432
|
+
private _activityMode;
|
|
433
|
+
|
|
427
434
|
private _presenceTracker;
|
|
428
435
|
|
|
429
436
|
private _activation;
|
|
@@ -454,7 +461,7 @@ declare class Session implements Session$1 {
|
|
|
454
461
|
|
|
455
462
|
private _generationTickHandlers;
|
|
456
463
|
private _generationTickStop;
|
|
457
|
-
constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions);
|
|
464
|
+
constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions, sessionOptions?: SessionConstructorOptions);
|
|
458
465
|
private _wireControlDocIncarnation;
|
|
459
466
|
|
|
460
467
|
static attach(sessionId: string, options: AttachOptions): Promise<Session>;
|
|
@@ -495,6 +502,10 @@ declare class Session implements Session$1 {
|
|
|
495
502
|
|
|
496
503
|
touch(): void;
|
|
497
504
|
|
|
505
|
+
private _autoTouch;
|
|
506
|
+
|
|
507
|
+
activity(): void;
|
|
508
|
+
|
|
498
509
|
get presenceTracker(): PresenceTracker | null;
|
|
499
510
|
|
|
500
511
|
connectDocs(connector: DocConnector): void;
|
|
@@ -922,6 +933,8 @@ interface ActivityTrackerOptions {
|
|
|
922
933
|
documentTarget?: (Pick<Document, 'addEventListener' | 'removeEventListener'> & {
|
|
923
934
|
visibilityState?: string;
|
|
924
935
|
}) | null;
|
|
936
|
+
|
|
937
|
+
mode?: 'auto' | 'explicit';
|
|
925
938
|
}
|
|
926
939
|
interface ActivityTracker {
|
|
927
940
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { c as ActivationState,
|
|
1
|
+
import { ad as SessionDirectoryRequestOptions, h as AppOptions, g as App$1, ai as SessionPhase, ao as SessionStatus, ak as SessionPhaseName, A as AccessTokenOptions, a2 as RuntimeArtifact, a3 as RuntimeArtifactDownload, W as Recording, aF as TransportState, ab as Session$1, C as ChannelEndpoint, aC as TransportSession, d as ActivitySignalMode, i as AttachOptions, ac as SessionDiagnostic, b as ActivationEvent, an as SessionStatsSample, B as GenerationTick, _ as RecordingsAccessor, a4 as RuntimeArtifactsAccessor, ag as SessionEndResult, ap as SessionStream$1, ax as StreamDataTransport, af as SessionDocumentImpl, aw as StreamChunkOptions, n as ChunkReadable, Q as Presence, w as DocConnector, y as DocTokenSupplier, x as DocServerUrlResolver, a0 as RequestOptions, a1 as RequestStreamOptions, av as StoreOptions, au as Store, l as ChannelMultiplexer, ah as SessionFailureKind, J as MediaSession, P as PathHealthReporting, aB as TransportOfferResponse, aK as WtAudioLaneSeam, aL as WtAudioUplinkSeam, aS as WtVideoUplinkSeam, aR as WtDataUplinkSender, O as PathLiveness, aP as WtDataLaneSink } from './stream-data-Cjg0SjId.js';
|
|
2
|
+
export { c as ActivationState, j as AudioPlayoutOptions, D as DERIVED_LEG_SEP, o as DGRAM_HEADER_BYTES, s as DerivedLegRole, t as DgramHeader, v as DocConnectionState, G as GENERATION_TICK_EMIT_INTERVAL_MS, z as GENERATION_TICK_MAX_EXTRAPOLATION_MS, I as InboundStatsSample, M as MediaChunkBinding, E as MediaChunkSource, F as MediaChunkSourceFactory, H as MediaRecorderChunkSourceOptions, N as NegotiatorDataLaneSeam, K as NegotiatorOptions, R as PresenceState, S as PrewakeOptions, T as PrewakeResult, U as PrewakeStatus, V as QuicStreamDataTransport, X as RecordingBucket, Y as RecordingLifecycle, Z as RecordingStatus, $ as ReleaseSessionBeaconOptions, a5 as RuntimeAvailability, a6 as RuntimeWakeDetail, a7 as RuntimeWakeGolden, a8 as RuntimeWakeReasonCode, a9 as SIGNALING_PROTOCOL_VERSION, aa as STREAM_END, ae as SessionDocument, aj as SessionPhaseError, am as SessionStatsOptions, aq as SessionText, ar as SignalCarrier, as as Signaling, at as StartSessionOptions, ay as TransportEstablishedNotify, az as TransportNegotiator, aA as TransportOfferRequest, aE as TransportSessionSignaling, aG as VideoPlayoutOptions, aH as WT_CONTROL_FRAME_MAX, aI as WT_DATA_STREAM_VERSION, aJ as WatchGenerationTickOptions, aM as WtControlDecoder, aN as WtControlMessage, aO as WtDataEnvelope, aQ as WtDataStreamParser, aU as consumeWtDataStreams, aX as decodeStreamEnvelope, aZ as derivedLegName, a_ as derivedLegRole, a$ as encodeStreamEnvelope, b0 as encodeWtControlFrame, b1 as isPendingRecording, b2 as mediaRecorderChunkSource, b3 as parseDgramHeader, b4 as prewake, b5 as releaseSessionBeacon, b8 as watchGenerationTick, b9 as writeDgramHeader } from './stream-data-Cjg0SjId.js';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
5
|
|
|
@@ -341,6 +341,11 @@ declare class PresenceTracker {
|
|
|
341
341
|
dispose(): void;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
+
interface SessionConstructorOptions {
|
|
345
|
+
|
|
346
|
+
activity?: ActivitySignalMode;
|
|
347
|
+
}
|
|
348
|
+
|
|
344
349
|
declare const DEFAULT_DOC_SYNC_TIMEOUT_MS = 30000;
|
|
345
350
|
declare class SessionStream implements SessionStream$1 {
|
|
346
351
|
private _name;
|
|
@@ -424,6 +429,8 @@ declare class Session implements Session$1 {
|
|
|
424
429
|
|
|
425
430
|
private _activity;
|
|
426
431
|
|
|
432
|
+
private _activityMode;
|
|
433
|
+
|
|
427
434
|
private _presenceTracker;
|
|
428
435
|
|
|
429
436
|
private _activation;
|
|
@@ -454,7 +461,7 @@ declare class Session implements Session$1 {
|
|
|
454
461
|
|
|
455
462
|
private _generationTickHandlers;
|
|
456
463
|
private _generationTickStop;
|
|
457
|
-
constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions);
|
|
464
|
+
constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions, sessionOptions?: SessionConstructorOptions);
|
|
458
465
|
private _wireControlDocIncarnation;
|
|
459
466
|
|
|
460
467
|
static attach(sessionId: string, options: AttachOptions): Promise<Session>;
|
|
@@ -495,6 +502,10 @@ declare class Session implements Session$1 {
|
|
|
495
502
|
|
|
496
503
|
touch(): void;
|
|
497
504
|
|
|
505
|
+
private _autoTouch;
|
|
506
|
+
|
|
507
|
+
activity(): void;
|
|
508
|
+
|
|
498
509
|
get presenceTracker(): PresenceTracker | null;
|
|
499
510
|
|
|
500
511
|
connectDocs(connector: DocConnector): void;
|
|
@@ -922,6 +933,8 @@ interface ActivityTrackerOptions {
|
|
|
922
933
|
documentTarget?: (Pick<Document, 'addEventListener' | 'removeEventListener'> & {
|
|
923
934
|
visibilityState?: string;
|
|
924
935
|
}) | null;
|
|
936
|
+
|
|
937
|
+
mode?: 'auto' | 'explicit';
|
|
925
938
|
}
|
|
926
939
|
interface ActivityTracker {
|
|
927
940
|
|