@urun-sh/core 0.6.37 → 0.6.39

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.
@@ -1,5 +1,5 @@
1
- import { ah as SessionDirectoryRequestOptions, am as SessionNameSource, h as AppOptions, g as App$1, an as SessionPhase, at as SessionStatus, ap as SessionPhaseName, A as AccessTokenOptions, a6 as RuntimeArtifact, a7 as RuntimeArtifactDownload, _ as Recording, aM as TransportState, af as Session$1, C as ChannelEndpoint, aJ as TransportSession, d as ActivitySignalMode, i as AttachOptions, ag as SessionDiagnostic, b as ActivationEvent, as as SessionStatsSample, I as GenerationTick, a2 as RecordingsAccessor, a8 as RuntimeArtifactsAccessor, ak as SessionEndResult, au as SessionStream$1, aD as StreamDataTransport, aj as SessionDocumentImpl, aC as StreamChunkOptions, p as ChunkReadable, U as Presence, y as DocConnector, E as DocTokenSupplier, z as DocServerUrlResolver, aw as SfuAttachCredential, a4 as RequestOptions, a5 as RequestStreamOptions, aB as StoreOptions, aA as Store, n as ChannelMultiplexer, al as SessionFailureKind, P as MediaSession, S as PathHealthReporting, aI as TransportOfferResponse, aR as WtAudioLaneSeam, aS as WtAudioUplinkSeam, aZ as WtVideoUplinkSeam, aY as WtDataUplinkSender, T as PathLiveness, aW as WtDataLaneSink } from './backoff-C60lcU4l.mjs';
2
- export { c as ActivationState, j as AudioPlayoutOptions, B as BACKOFF_BASE_MS, k as BACKOFF_MAX_ATTEMPTS, l as BACKOFF_MAX_MS, D as DERIVED_LEG_SEP, q as DGRAM_HEADER_BYTES, u as DerivedLegRole, v as DgramHeader, x as DocConnectionState, F as ENVELOPE_KIND, G as GENERATION_TICK_EMIT_INTERVAL_MS, H as GENERATION_TICK_MAX_EXTRAPOLATION_MS, J as InboundStatsSample, M as MediaChunkBinding, K as MediaChunkSource, N as MediaChunkSourceFactory, O as MediaRecorderChunkSourceOptions, Q as NegotiatorDataLaneSeam, R as NegotiatorOptions, V as PresenceState, W as PrewakeOptions, X as PrewakeResult, Y as PrewakeStatus, Z as QuicStreamDataTransport, $ as RecordingBucket, a0 as RecordingLifecycle, a1 as RecordingStatus, a3 as ReleaseSessionBeaconOptions, a9 as RuntimeAvailability, aa as RuntimeWakeDetail, ab as RuntimeWakeGolden, ac as RuntimeWakeReasonCode, ad as SIGNALING_PROTOCOL_VERSION, ae as STREAM_END, ai as SessionDocument, ao as SessionPhaseError, ar as SessionStatsOptions, av as SessionText, ax as SignalCarrier, ay as Signaling, az as StartSessionOptions, aE as StreamFragmentReassembler, aF as TransportEstablishedNotify, aG as TransportNegotiator, aH as TransportOfferRequest, aL as TransportSessionSignaling, aN as VideoPlayoutOptions, aO as WT_CONTROL_FRAME_MAX, aP as WT_DATA_STREAM_VERSION, aQ as WatchGenerationTickOptions, aT as WtControlDecoder, aU as WtControlMessage, aV as WtDataEnvelope, aX as WtDataStreamParser, a$ as computeBackoffDelay, b0 as consumeWtDataStreams, b3 as decodeStreamEnvelope, b5 as derivedLegName, b6 as derivedLegRole, b7 as encodeStreamEnvelope, b8 as encodeStreamFragments, b9 as encodeWtControlFrame, ba as isPendingRecording, bb as isRetryableSessionError, bc as mediaRecorderChunkSource, bd as parseDgramHeader, be as prewake, bf as releaseSessionBeacon, bi as watchGenerationTick, bj as writeDgramHeader } from './backoff-C60lcU4l.mjs';
1
+ import { ah as SessionDirectoryRequestOptions, am as SessionNameSource, h as AppOptions, g as App$1, an as SessionPhase, at as SessionStatus, ap as SessionPhaseName, A as AccessTokenOptions, a6 as RuntimeArtifact, a7 as RuntimeArtifactDownload, _ as Recording, aM as TransportState, af as Session$1, C as ChannelEndpoint, aJ as TransportSession, d as ActivitySignalMode, i as AttachOptions, ag as SessionDiagnostic, b as ActivationEvent, as as SessionStatsSample, I as GenerationTick, a2 as RecordingsAccessor, a8 as RuntimeArtifactsAccessor, ak as SessionEndResult, au as SessionStream$1, aD as StreamDataTransport, aj as SessionDocumentImpl, aC as StreamChunkOptions, p as ChunkReadable, U as Presence, y as DocConnector, E as DocTokenSupplier, z as DocServerUrlResolver, aw as SfuAttachCredential, a4 as RequestOptions, a5 as RequestStreamOptions, aB as StoreOptions, aA as Store, n as ChannelMultiplexer, al as SessionFailureKind, P as MediaSession, S as PathHealthReporting, aI as TransportOfferResponse, aR as WtAudioLaneSeam, aS as WtAudioUplinkSeam, aZ as WtVideoUplinkSeam, aY as WtDataUplinkSender, T as PathLiveness, aW as WtDataLaneSink } from './backoff-Couy-f6a.mjs';
2
+ export { c as ActivationState, j as AudioPlayoutOptions, B as BACKOFF_BASE_MS, k as BACKOFF_MAX_ATTEMPTS, l as BACKOFF_MAX_MS, D as DERIVED_LEG_SEP, q as DGRAM_HEADER_BYTES, u as DerivedLegRole, v as DgramHeader, x as DocConnectionState, F as ENVELOPE_KIND, G as GENERATION_TICK_EMIT_INTERVAL_MS, H as GENERATION_TICK_MAX_EXTRAPOLATION_MS, J as InboundStatsSample, M as MediaChunkBinding, K as MediaChunkSource, N as MediaChunkSourceFactory, O as MediaRecorderChunkSourceOptions, Q as NegotiatorDataLaneSeam, R as NegotiatorOptions, V as PresenceState, W as PrewakeOptions, X as PrewakeResult, Y as PrewakeStatus, Z as QuicStreamDataTransport, $ as RecordingBucket, a0 as RecordingLifecycle, a1 as RecordingStatus, a3 as ReleaseSessionBeaconOptions, a9 as RuntimeAvailability, aa as RuntimeWakeDetail, ab as RuntimeWakeGolden, ac as RuntimeWakeReasonCode, ad as SIGNALING_PROTOCOL_VERSION, ae as STREAM_END, ai as SessionDocument, ao as SessionPhaseError, ar as SessionStatsOptions, av as SessionText, ax as SignalCarrier, ay as Signaling, az as StartSessionOptions, aE as StreamFragmentReassembler, aF as TransportEstablishedNotify, aG as TransportNegotiator, aH as TransportOfferRequest, aL as TransportSessionSignaling, aN as VideoPlayoutOptions, aO as WT_CONTROL_FRAME_MAX, aP as WT_DATA_STREAM_VERSION, aQ as WatchGenerationTickOptions, aT as WtControlDecoder, aU as WtControlMessage, aV as WtDataEnvelope, aX as WtDataStreamParser, a$ as computeBackoffDelay, b0 as consumeWtDataStreams, b3 as decodeStreamEnvelope, b5 as derivedLegName, b6 as derivedLegRole, b7 as encodeStreamEnvelope, b8 as encodeStreamFragments, b9 as encodeWtControlFrame, ba as isPendingRecording, bb as isRetryableSessionError, bc as mediaRecorderChunkSource, bd as parseDgramHeader, be as prewake, bf as releaseSessionBeacon, bi as watchGenerationTick, bj as writeDgramHeader } from './backoff-Couy-f6a.mjs';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
5
5
 
@@ -366,6 +366,8 @@ interface SessionConstructorOptions {
366
366
  activity?: ActivitySignalMode;
367
367
  }
368
368
 
369
+ declare const DOC_LIVE_GATE_TIMEOUT_MS = 20000;
370
+
369
371
  declare const DEFAULT_DOC_SYNC_TIMEOUT_MS = 30000;
370
372
  declare class SessionStream implements SessionStream$1 {
371
373
  private _name;
@@ -459,6 +461,19 @@ declare class Session implements Session$1 {
459
461
 
460
462
  private _presenceTracker;
461
463
 
464
+ private _gateDocUp;
465
+
466
+ private _gate;
467
+ private _gateTimer;
468
+ private _gateDocUnsubs;
469
+
470
+ private _gateOff;
471
+
472
+ private _gatedFrom;
473
+ private _gatedWith;
474
+ private _publicPhase;
475
+ private _phaseHandlers;
476
+
462
477
  private _activation;
463
478
 
464
479
  private _activeRequests;
@@ -490,6 +505,8 @@ declare class Session implements Session$1 {
490
505
  private _generationTickHandlers;
491
506
  private _generationTickStop;
492
507
  constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions, sessionOptions?: SessionConstructorOptions);
508
+
509
+ private _applyLiveGate;
493
510
  private _wireControlDocIncarnation;
494
511
 
495
512
  static attach(sessionId: string, options: AttachOptions): Promise<Session>;
@@ -1267,6 +1284,8 @@ declare class WebTransportSession implements MediaSession, PathHealthReporting {
1267
1284
  private audioUplinkRetry;
1268
1285
  private videoUplinkRetry;
1269
1286
 
1287
+
1288
+ private uplinkSeqState;
1270
1289
  private uplinkSink;
1271
1290
  private engageAudioUplink;
1272
1291
  private engageVideoUplink;
@@ -1370,4 +1389,4 @@ declare class FrameReassembler {
1370
1389
  private requestKeyframe;
1371
1390
  }
1372
1391
 
1373
- 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, COLD_BOOT_WHEN_LIVE_TIMEOUT_MS, type CameraWarp, type CameraWarpOptions, type CameraWarpTransform, type CaptureClaim, CaptureController, type CaptureControllerOptions, type CaptureKind, CaptureUnavailableError, ChunkReadable, type ClientToken, ClientTokenError, type ConsumingTransport, type CreateClientTokenOptions, type CreditBalance, type CreditLedgerEntry, CreditsClient, type CreditsClientOptions, CreditsError, type CreditsLedgerOptions, CreditsUnauthorizedError, DATA_CHANNEL_MESSAGE_CEILING, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_GATEWAY_URL, DEFAULT_PRODUCE_ACK_TIMEOUT_MS, DEFAULT_REFERENCE_JPEG_QUALITY, DEFAULT_REFERENCE_MAX_SIZE, DEFAULT_WHEN_LIVE_TIMEOUT_MS, DocTokenSupplier, FOCUS_FIELD, FOREGROUND_COALESCE_MS, FrameReassembler, GenerationTick, INPUT_PRESENCE_DEFAULT_HZ, INPUT_PRESENCE_FIELD, type InputPresenceAwareness, type InputPresencePublisher, type InputPresencePublisherOptions, type InputPresenceState, InvalidDurationError, LEGACY_ACTIVATION_HINT_PATH, type ListOptions, type ListResult, MediaSession, type NormalizeReferenceImageOptions, PLATFORM_DOC_NAME, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, type PresenceAwarenessSink, type PresenceConnectivityState, type PresenceFocus, type PresenceInteractionKind, PresenceTracker, type PresenceTrackerOptions, type PresenceTransportLike, type PresenceVisibility, ProduceAckTimeoutError, type ReassembledFrame, type ReassemblerCallbacks, type ReassemblerOptions, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, type ReferenceImage, type ReferenceImageSource, type ReferenceImageType, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, RuntimeArtifact, RuntimeArtifactDownload, RuntimeArtifactNotFoundError, RuntimeArtifactsAccessor, RuntimeArtifactsClient, type RuntimeArtifactsClientOptions, RuntimeArtifactsError, RuntimeArtifactsUnauthorizedError, Session, SessionAllocationError, SessionDiagnostic, SessionDirectory, SessionDirectoryError, SessionEndError, SessionEndResult, SessionEndUnavailableError, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionNameSource, SessionPhase, SessionPhaseName, type SessionRetention, type SessionState, SessionStatsSample, SessionStatus, SessionStream$1 as SessionStream, type SessionSummary, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, TransportOfferResponse, TransportSessionMismatchError, TransportState, URUN_DEV_ENV, USER_ACTIVITY_FIELD, USER_ACTIVITY_MIN_INTERVAL_MS, type UserActivityPayload, VISIBILITY_FIELD, type VideoStreamOptions, WIRE_MESSAGE_BUDGET, WebRtcSession, WebTransportSession, type WhenLiveOptions, WtDataLaneSink, activationHintFrom, cameraCaptureAvailable, captureStillFromVideo, createActivityTracker, createCameraWarp, createClientToken, createCreditsClient, createInputPresencePublisher, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, fitWithin, isDurationString, isPausedPhase, isWakingPhase, normalizeReferenceImage, normalizeRetention, observeLeaveConfirm, observePageLifecycle, observePageTeardown, referenceImageErrorMessage, sessionDirectory, sessionFailureFromMediaError, sharedCaptureController, videoStream, whenLive };
1392
+ 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, COLD_BOOT_WHEN_LIVE_TIMEOUT_MS, type CameraWarp, type CameraWarpOptions, type CameraWarpTransform, type CaptureClaim, CaptureController, type CaptureControllerOptions, type CaptureKind, CaptureUnavailableError, ChunkReadable, type ClientToken, ClientTokenError, type ConsumingTransport, type CreateClientTokenOptions, type CreditBalance, type CreditLedgerEntry, CreditsClient, type CreditsClientOptions, CreditsError, type CreditsLedgerOptions, CreditsUnauthorizedError, DATA_CHANNEL_MESSAGE_CEILING, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_GATEWAY_URL, DEFAULT_PRODUCE_ACK_TIMEOUT_MS, DEFAULT_REFERENCE_JPEG_QUALITY, DEFAULT_REFERENCE_MAX_SIZE, DEFAULT_WHEN_LIVE_TIMEOUT_MS, DOC_LIVE_GATE_TIMEOUT_MS, DocTokenSupplier, FOCUS_FIELD, FOREGROUND_COALESCE_MS, FrameReassembler, GenerationTick, INPUT_PRESENCE_DEFAULT_HZ, INPUT_PRESENCE_FIELD, type InputPresenceAwareness, type InputPresencePublisher, type InputPresencePublisherOptions, type InputPresenceState, InvalidDurationError, LEGACY_ACTIVATION_HINT_PATH, type ListOptions, type ListResult, MediaSession, type NormalizeReferenceImageOptions, PLATFORM_DOC_NAME, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, type PresenceAwarenessSink, type PresenceConnectivityState, type PresenceFocus, type PresenceInteractionKind, PresenceTracker, type PresenceTrackerOptions, type PresenceTransportLike, type PresenceVisibility, ProduceAckTimeoutError, type ReassembledFrame, type ReassemblerCallbacks, type ReassemblerOptions, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, type ReferenceImage, type ReferenceImageSource, type ReferenceImageType, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, RuntimeArtifact, RuntimeArtifactDownload, RuntimeArtifactNotFoundError, RuntimeArtifactsAccessor, RuntimeArtifactsClient, type RuntimeArtifactsClientOptions, RuntimeArtifactsError, RuntimeArtifactsUnauthorizedError, Session, SessionAllocationError, SessionDiagnostic, SessionDirectory, SessionDirectoryError, SessionEndError, SessionEndResult, SessionEndUnavailableError, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionNameSource, SessionPhase, SessionPhaseName, type SessionRetention, type SessionState, SessionStatsSample, SessionStatus, SessionStream$1 as SessionStream, type SessionSummary, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, TransportOfferResponse, TransportSessionMismatchError, TransportState, URUN_DEV_ENV, USER_ACTIVITY_FIELD, USER_ACTIVITY_MIN_INTERVAL_MS, type UserActivityPayload, VISIBILITY_FIELD, type VideoStreamOptions, WIRE_MESSAGE_BUDGET, WebRtcSession, WebTransportSession, type WhenLiveOptions, WtDataLaneSink, activationHintFrom, cameraCaptureAvailable, captureStillFromVideo, createActivityTracker, createCameraWarp, createClientToken, createCreditsClient, createInputPresencePublisher, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, fitWithin, isDurationString, isPausedPhase, isWakingPhase, normalizeReferenceImage, normalizeRetention, observeLeaveConfirm, observePageLifecycle, observePageTeardown, referenceImageErrorMessage, sessionDirectory, sessionFailureFromMediaError, sharedCaptureController, videoStream, whenLive };
@@ -1,5 +1,5 @@
1
- import { ah as SessionDirectoryRequestOptions, am as SessionNameSource, h as AppOptions, g as App$1, an as SessionPhase, at as SessionStatus, ap as SessionPhaseName, A as AccessTokenOptions, a6 as RuntimeArtifact, a7 as RuntimeArtifactDownload, _ as Recording, aM as TransportState, af as Session$1, C as ChannelEndpoint, aJ as TransportSession, d as ActivitySignalMode, i as AttachOptions, ag as SessionDiagnostic, b as ActivationEvent, as as SessionStatsSample, I as GenerationTick, a2 as RecordingsAccessor, a8 as RuntimeArtifactsAccessor, ak as SessionEndResult, au as SessionStream$1, aD as StreamDataTransport, aj as SessionDocumentImpl, aC as StreamChunkOptions, p as ChunkReadable, U as Presence, y as DocConnector, E as DocTokenSupplier, z as DocServerUrlResolver, aw as SfuAttachCredential, a4 as RequestOptions, a5 as RequestStreamOptions, aB as StoreOptions, aA as Store, n as ChannelMultiplexer, al as SessionFailureKind, P as MediaSession, S as PathHealthReporting, aI as TransportOfferResponse, aR as WtAudioLaneSeam, aS as WtAudioUplinkSeam, aZ as WtVideoUplinkSeam, aY as WtDataUplinkSender, T as PathLiveness, aW as WtDataLaneSink } from './backoff-C60lcU4l.js';
2
- export { c as ActivationState, j as AudioPlayoutOptions, B as BACKOFF_BASE_MS, k as BACKOFF_MAX_ATTEMPTS, l as BACKOFF_MAX_MS, D as DERIVED_LEG_SEP, q as DGRAM_HEADER_BYTES, u as DerivedLegRole, v as DgramHeader, x as DocConnectionState, F as ENVELOPE_KIND, G as GENERATION_TICK_EMIT_INTERVAL_MS, H as GENERATION_TICK_MAX_EXTRAPOLATION_MS, J as InboundStatsSample, M as MediaChunkBinding, K as MediaChunkSource, N as MediaChunkSourceFactory, O as MediaRecorderChunkSourceOptions, Q as NegotiatorDataLaneSeam, R as NegotiatorOptions, V as PresenceState, W as PrewakeOptions, X as PrewakeResult, Y as PrewakeStatus, Z as QuicStreamDataTransport, $ as RecordingBucket, a0 as RecordingLifecycle, a1 as RecordingStatus, a3 as ReleaseSessionBeaconOptions, a9 as RuntimeAvailability, aa as RuntimeWakeDetail, ab as RuntimeWakeGolden, ac as RuntimeWakeReasonCode, ad as SIGNALING_PROTOCOL_VERSION, ae as STREAM_END, ai as SessionDocument, ao as SessionPhaseError, ar as SessionStatsOptions, av as SessionText, ax as SignalCarrier, ay as Signaling, az as StartSessionOptions, aE as StreamFragmentReassembler, aF as TransportEstablishedNotify, aG as TransportNegotiator, aH as TransportOfferRequest, aL as TransportSessionSignaling, aN as VideoPlayoutOptions, aO as WT_CONTROL_FRAME_MAX, aP as WT_DATA_STREAM_VERSION, aQ as WatchGenerationTickOptions, aT as WtControlDecoder, aU as WtControlMessage, aV as WtDataEnvelope, aX as WtDataStreamParser, a$ as computeBackoffDelay, b0 as consumeWtDataStreams, b3 as decodeStreamEnvelope, b5 as derivedLegName, b6 as derivedLegRole, b7 as encodeStreamEnvelope, b8 as encodeStreamFragments, b9 as encodeWtControlFrame, ba as isPendingRecording, bb as isRetryableSessionError, bc as mediaRecorderChunkSource, bd as parseDgramHeader, be as prewake, bf as releaseSessionBeacon, bi as watchGenerationTick, bj as writeDgramHeader } from './backoff-C60lcU4l.js';
1
+ import { ah as SessionDirectoryRequestOptions, am as SessionNameSource, h as AppOptions, g as App$1, an as SessionPhase, at as SessionStatus, ap as SessionPhaseName, A as AccessTokenOptions, a6 as RuntimeArtifact, a7 as RuntimeArtifactDownload, _ as Recording, aM as TransportState, af as Session$1, C as ChannelEndpoint, aJ as TransportSession, d as ActivitySignalMode, i as AttachOptions, ag as SessionDiagnostic, b as ActivationEvent, as as SessionStatsSample, I as GenerationTick, a2 as RecordingsAccessor, a8 as RuntimeArtifactsAccessor, ak as SessionEndResult, au as SessionStream$1, aD as StreamDataTransport, aj as SessionDocumentImpl, aC as StreamChunkOptions, p as ChunkReadable, U as Presence, y as DocConnector, E as DocTokenSupplier, z as DocServerUrlResolver, aw as SfuAttachCredential, a4 as RequestOptions, a5 as RequestStreamOptions, aB as StoreOptions, aA as Store, n as ChannelMultiplexer, al as SessionFailureKind, P as MediaSession, S as PathHealthReporting, aI as TransportOfferResponse, aR as WtAudioLaneSeam, aS as WtAudioUplinkSeam, aZ as WtVideoUplinkSeam, aY as WtDataUplinkSender, T as PathLiveness, aW as WtDataLaneSink } from './backoff-Couy-f6a.js';
2
+ export { c as ActivationState, j as AudioPlayoutOptions, B as BACKOFF_BASE_MS, k as BACKOFF_MAX_ATTEMPTS, l as BACKOFF_MAX_MS, D as DERIVED_LEG_SEP, q as DGRAM_HEADER_BYTES, u as DerivedLegRole, v as DgramHeader, x as DocConnectionState, F as ENVELOPE_KIND, G as GENERATION_TICK_EMIT_INTERVAL_MS, H as GENERATION_TICK_MAX_EXTRAPOLATION_MS, J as InboundStatsSample, M as MediaChunkBinding, K as MediaChunkSource, N as MediaChunkSourceFactory, O as MediaRecorderChunkSourceOptions, Q as NegotiatorDataLaneSeam, R as NegotiatorOptions, V as PresenceState, W as PrewakeOptions, X as PrewakeResult, Y as PrewakeStatus, Z as QuicStreamDataTransport, $ as RecordingBucket, a0 as RecordingLifecycle, a1 as RecordingStatus, a3 as ReleaseSessionBeaconOptions, a9 as RuntimeAvailability, aa as RuntimeWakeDetail, ab as RuntimeWakeGolden, ac as RuntimeWakeReasonCode, ad as SIGNALING_PROTOCOL_VERSION, ae as STREAM_END, ai as SessionDocument, ao as SessionPhaseError, ar as SessionStatsOptions, av as SessionText, ax as SignalCarrier, ay as Signaling, az as StartSessionOptions, aE as StreamFragmentReassembler, aF as TransportEstablishedNotify, aG as TransportNegotiator, aH as TransportOfferRequest, aL as TransportSessionSignaling, aN as VideoPlayoutOptions, aO as WT_CONTROL_FRAME_MAX, aP as WT_DATA_STREAM_VERSION, aQ as WatchGenerationTickOptions, aT as WtControlDecoder, aU as WtControlMessage, aV as WtDataEnvelope, aX as WtDataStreamParser, a$ as computeBackoffDelay, b0 as consumeWtDataStreams, b3 as decodeStreamEnvelope, b5 as derivedLegName, b6 as derivedLegRole, b7 as encodeStreamEnvelope, b8 as encodeStreamFragments, b9 as encodeWtControlFrame, ba as isPendingRecording, bb as isRetryableSessionError, bc as mediaRecorderChunkSource, bd as parseDgramHeader, be as prewake, bf as releaseSessionBeacon, bi as watchGenerationTick, bj as writeDgramHeader } from './backoff-Couy-f6a.js';
3
3
  import 'yjs';
4
4
  import 'y-protocols/awareness';
5
5
 
@@ -366,6 +366,8 @@ interface SessionConstructorOptions {
366
366
  activity?: ActivitySignalMode;
367
367
  }
368
368
 
369
+ declare const DOC_LIVE_GATE_TIMEOUT_MS = 20000;
370
+
369
371
  declare const DEFAULT_DOC_SYNC_TIMEOUT_MS = 30000;
370
372
  declare class SessionStream implements SessionStream$1 {
371
373
  private _name;
@@ -459,6 +461,19 @@ declare class Session implements Session$1 {
459
461
 
460
462
  private _presenceTracker;
461
463
 
464
+ private _gateDocUp;
465
+
466
+ private _gate;
467
+ private _gateTimer;
468
+ private _gateDocUnsubs;
469
+
470
+ private _gateOff;
471
+
472
+ private _gatedFrom;
473
+ private _gatedWith;
474
+ private _publicPhase;
475
+ private _phaseHandlers;
476
+
462
477
  private _activation;
463
478
 
464
479
  private _activeRequests;
@@ -490,6 +505,8 @@ declare class Session implements Session$1 {
490
505
  private _generationTickHandlers;
491
506
  private _generationTickStop;
492
507
  constructor(sessionId: string, multiplexer: ChannelEndpoint, transport: TransportSession, recordingsAuth?: RecordingsClientOptions, artifactsAuth?: RuntimeArtifactsClientOptions, sessionOptions?: SessionConstructorOptions);
508
+
509
+ private _applyLiveGate;
493
510
  private _wireControlDocIncarnation;
494
511
 
495
512
  static attach(sessionId: string, options: AttachOptions): Promise<Session>;
@@ -1267,6 +1284,8 @@ declare class WebTransportSession implements MediaSession, PathHealthReporting {
1267
1284
  private audioUplinkRetry;
1268
1285
  private videoUplinkRetry;
1269
1286
 
1287
+
1288
+ private uplinkSeqState;
1270
1289
  private uplinkSink;
1271
1290
  private engageAudioUplink;
1272
1291
  private engageVideoUplink;
@@ -1370,4 +1389,4 @@ declare class FrameReassembler {
1370
1389
  private requestKeyframe;
1371
1390
  }
1372
1391
 
1373
- 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, COLD_BOOT_WHEN_LIVE_TIMEOUT_MS, type CameraWarp, type CameraWarpOptions, type CameraWarpTransform, type CaptureClaim, CaptureController, type CaptureControllerOptions, type CaptureKind, CaptureUnavailableError, ChunkReadable, type ClientToken, ClientTokenError, type ConsumingTransport, type CreateClientTokenOptions, type CreditBalance, type CreditLedgerEntry, CreditsClient, type CreditsClientOptions, CreditsError, type CreditsLedgerOptions, CreditsUnauthorizedError, DATA_CHANNEL_MESSAGE_CEILING, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_GATEWAY_URL, DEFAULT_PRODUCE_ACK_TIMEOUT_MS, DEFAULT_REFERENCE_JPEG_QUALITY, DEFAULT_REFERENCE_MAX_SIZE, DEFAULT_WHEN_LIVE_TIMEOUT_MS, DocTokenSupplier, FOCUS_FIELD, FOREGROUND_COALESCE_MS, FrameReassembler, GenerationTick, INPUT_PRESENCE_DEFAULT_HZ, INPUT_PRESENCE_FIELD, type InputPresenceAwareness, type InputPresencePublisher, type InputPresencePublisherOptions, type InputPresenceState, InvalidDurationError, LEGACY_ACTIVATION_HINT_PATH, type ListOptions, type ListResult, MediaSession, type NormalizeReferenceImageOptions, PLATFORM_DOC_NAME, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, type PresenceAwarenessSink, type PresenceConnectivityState, type PresenceFocus, type PresenceInteractionKind, PresenceTracker, type PresenceTrackerOptions, type PresenceTransportLike, type PresenceVisibility, ProduceAckTimeoutError, type ReassembledFrame, type ReassemblerCallbacks, type ReassemblerOptions, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, type ReferenceImage, type ReferenceImageSource, type ReferenceImageType, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, RuntimeArtifact, RuntimeArtifactDownload, RuntimeArtifactNotFoundError, RuntimeArtifactsAccessor, RuntimeArtifactsClient, type RuntimeArtifactsClientOptions, RuntimeArtifactsError, RuntimeArtifactsUnauthorizedError, Session, SessionAllocationError, SessionDiagnostic, SessionDirectory, SessionDirectoryError, SessionEndError, SessionEndResult, SessionEndUnavailableError, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionNameSource, SessionPhase, SessionPhaseName, type SessionRetention, type SessionState, SessionStatsSample, SessionStatus, SessionStream$1 as SessionStream, type SessionSummary, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, TransportOfferResponse, TransportSessionMismatchError, TransportState, URUN_DEV_ENV, USER_ACTIVITY_FIELD, USER_ACTIVITY_MIN_INTERVAL_MS, type UserActivityPayload, VISIBILITY_FIELD, type VideoStreamOptions, WIRE_MESSAGE_BUDGET, WebRtcSession, WebTransportSession, type WhenLiveOptions, WtDataLaneSink, activationHintFrom, cameraCaptureAvailable, captureStillFromVideo, createActivityTracker, createCameraWarp, createClientToken, createCreditsClient, createInputPresencePublisher, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, fitWithin, isDurationString, isPausedPhase, isWakingPhase, normalizeReferenceImage, normalizeRetention, observeLeaveConfirm, observePageLifecycle, observePageTeardown, referenceImageErrorMessage, sessionDirectory, sessionFailureFromMediaError, sharedCaptureController, videoStream, whenLive };
1392
+ 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, COLD_BOOT_WHEN_LIVE_TIMEOUT_MS, type CameraWarp, type CameraWarpOptions, type CameraWarpTransform, type CaptureClaim, CaptureController, type CaptureControllerOptions, type CaptureKind, CaptureUnavailableError, ChunkReadable, type ClientToken, ClientTokenError, type ConsumingTransport, type CreateClientTokenOptions, type CreditBalance, type CreditLedgerEntry, CreditsClient, type CreditsClientOptions, CreditsError, type CreditsLedgerOptions, CreditsUnauthorizedError, DATA_CHANNEL_MESSAGE_CEILING, DEFAULT_DOC_SYNC_TIMEOUT_MS, DEFAULT_GATEWAY_URL, DEFAULT_PRODUCE_ACK_TIMEOUT_MS, DEFAULT_REFERENCE_JPEG_QUALITY, DEFAULT_REFERENCE_MAX_SIZE, DEFAULT_WHEN_LIVE_TIMEOUT_MS, DOC_LIVE_GATE_TIMEOUT_MS, DocTokenSupplier, FOCUS_FIELD, FOREGROUND_COALESCE_MS, FrameReassembler, GenerationTick, INPUT_PRESENCE_DEFAULT_HZ, INPUT_PRESENCE_FIELD, type InputPresenceAwareness, type InputPresencePublisher, type InputPresencePublisherOptions, type InputPresenceState, InvalidDurationError, LEGACY_ACTIVATION_HINT_PATH, type ListOptions, type ListResult, MediaSession, type NormalizeReferenceImageOptions, PLATFORM_DOC_NAME, PermanentLockedError, type PhaseObservable, PinRequiresActiveTempError, Presence, type PresenceAwarenessSink, type PresenceConnectivityState, type PresenceFocus, type PresenceInteractionKind, PresenceTracker, type PresenceTrackerOptions, type PresenceTransportLike, type PresenceVisibility, ProduceAckTimeoutError, type ReassembledFrame, type ReassemblerCallbacks, type ReassemblerOptions, Recording, RecordingNotFoundError, RecordingsAccessor, RecordingsClient, type RecordingsClientOptions, RecordingsError, RecordingsUnauthorizedError, type ReferenceImage, type ReferenceImageSource, type ReferenceImageType, RequestAbortError, RequestCancelledError, RequestDocSyncError, RequestError, RequestOptions, RequestStreamOptions, RequestTimeoutError, RetainNotTempError, type RetentionIntent, RuntimeArtifact, RuntimeArtifactDownload, RuntimeArtifactNotFoundError, RuntimeArtifactsAccessor, RuntimeArtifactsClient, type RuntimeArtifactsClientOptions, RuntimeArtifactsError, RuntimeArtifactsUnauthorizedError, Session, SessionAllocationError, SessionDiagnostic, SessionDirectory, SessionDirectoryError, SessionEndError, SessionEndResult, SessionEndUnavailableError, SessionFailedError, SessionFailureKind, Session$1 as SessionInterface, SessionNameSource, SessionPhase, SessionPhaseName, type SessionRetention, type SessionState, SessionStatsSample, SessionStatus, SessionStream$1 as SessionStream, type SessionSummary, Store, StoreOptions, StreamChunkOptions, StreamDirectionConflict, TransportOfferResponse, TransportSessionMismatchError, TransportState, URUN_DEV_ENV, USER_ACTIVITY_FIELD, USER_ACTIVITY_MIN_INTERVAL_MS, type UserActivityPayload, VISIBILITY_FIELD, type VideoStreamOptions, WIRE_MESSAGE_BUDGET, WebRtcSession, WebTransportSession, type WhenLiveOptions, WtDataLaneSink, activationHintFrom, cameraCaptureAvailable, captureStillFromVideo, createActivityTracker, createCameraWarp, createClientToken, createCreditsClient, createInputPresencePublisher, createRecordingsClient, createRuntimeArtifactsClient, createStore, describeSessionFailure, describeSessionPhase, fitWithin, isDurationString, isPausedPhase, isWakingPhase, normalizeReferenceImage, normalizeRetention, observeLeaveConfirm, observePageLifecycle, observePageTeardown, referenceImageErrorMessage, sessionDirectory, sessionFailureFromMediaError, sharedCaptureController, videoStream, whenLive };