@urun-sh/core 0.4.3 → 0.5.0
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 +33 -1
- package/dist/{chunk-ZDP4CEYV.mjs → chunk-PAXFCPIL.mjs} +2 -2
- package/dist/{chunk-SBNQYRRW.mjs → chunk-XHXPCJYZ.mjs} +5 -5
- package/dist/index.browser.d.mts +14 -4
- package/dist/index.browser.d.ts +14 -4
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +14 -4
- package/dist/index.d.ts +14 -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 +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 +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-LLN1glOn.d.mts → stream-data-BSG8Cuxh.d.mts} +13 -3
- package/dist/{stream-data-LLN1glOn.d.ts → stream-data-BSG8Cuxh.d.ts} +13 -3
- package/package.json +1 -1
package/dist/index.browser.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ac as SessionDirectoryRequestOptions, g as AppOptions, f as App$1, ah as SessionPhase, an as SessionStatus, aj as SessionPhaseName, A as AccessTokenOptions, a1 as RuntimeArtifact, a2 as RuntimeArtifactDownload, V as Recording, aE as TransportState, aa as Session$1, C as ChannelEndpoint, aB as TransportSession, h as AttachOptions, ab as SessionDiagnostic, b as ActivationEvent, am as SessionStatsSample, z as GenerationTick, Z as RecordingsAccessor, a3 as RuntimeArtifactsAccessor, af as SessionEndResult, ao as SessionStream$1, aw as StreamDataTransport, ae as SessionDocumentImpl, av as StreamChunkOptions, m as ChunkReadable, O as Presence, v as DocConnector, x as DocTokenSupplier, w as DocServerUrlResolver, $ as RequestOptions, a0 as RequestStreamOptions, au as StoreOptions, at as Store, k as ChannelMultiplexer, ag as SessionFailureKind, H as MediaSession, P as PathHealthReporting, aA as TransportOfferResponse, aJ as WtAudioLaneSeam, aK as WtAudioUplinkSeam, aR as WtVideoUplinkSeam, aQ as WtDataUplinkSender, K as PathLiveness, aO as WtDataLaneSink } from './stream-data-
|
|
2
|
-
export { c as ActivationState, i as AudioPlayoutOptions, D as DERIVED_LEG_SEP, n as DGRAM_HEADER_BYTES, r as DerivedLegRole, s as DgramHeader, u as DocConnectionState, G as GENERATION_TICK_EMIT_INTERVAL_MS, y as GENERATION_TICK_MAX_EXTRAPOLATION_MS, I as InboundStatsSample, M as MediaChunkBinding, B as MediaChunkSource, E as MediaChunkSourceFactory, F as MediaRecorderChunkSourceOptions, N as NegotiatorDataLaneSeam, J as NegotiatorOptions, Q as PresenceState, R as PrewakeOptions, S as PrewakeResult, T as PrewakeStatus, U as QuicStreamDataTransport, W as RecordingBucket, X as RecordingLifecycle, Y as RecordingStatus, _ as ReleaseSessionBeaconOptions, a4 as RuntimeAvailability, a5 as RuntimeWakeDetail, a6 as RuntimeWakeGolden, a7 as RuntimeWakeReasonCode, a8 as SIGNALING_PROTOCOL_VERSION, a9 as STREAM_END, ad as SessionDocument, ai as SessionPhaseError, al as SessionStatsOptions, ap as SessionText, aq as SignalCarrier, ar as Signaling, as as StartSessionOptions, ax as TransportEstablishedNotify, ay as TransportNegotiator, az as TransportOfferRequest, aD as TransportSessionSignaling, aF as VideoPlayoutOptions, aG as WT_CONTROL_FRAME_MAX, aH as WT_DATA_STREAM_VERSION, aI as WatchGenerationTickOptions, aL as WtControlDecoder, aM as WtControlMessage, aN as WtDataEnvelope, aP as WtDataStreamParser, aT as consumeWtDataStreams, aW as decodeStreamEnvelope, aY as derivedLegName, aZ as derivedLegRole, a_ as encodeStreamEnvelope, a$ as encodeWtControlFrame, b0 as isPendingRecording, b1 as mediaRecorderChunkSource, b2 as parseDgramHeader, b3 as prewake, b4 as releaseSessionBeacon, b7 as watchGenerationTick, b8 as writeDgramHeader } from './stream-data-
|
|
1
|
+
import { ac as SessionDirectoryRequestOptions, g as AppOptions, f as App$1, ah as SessionPhase, an as SessionStatus, aj as SessionPhaseName, A as AccessTokenOptions, a1 as RuntimeArtifact, a2 as RuntimeArtifactDownload, V as Recording, aE as TransportState, aa as Session$1, C as ChannelEndpoint, aB as TransportSession, h as AttachOptions, ab as SessionDiagnostic, b as ActivationEvent, am as SessionStatsSample, z as GenerationTick, Z as RecordingsAccessor, a3 as RuntimeArtifactsAccessor, af as SessionEndResult, ao as SessionStream$1, aw as StreamDataTransport, ae as SessionDocumentImpl, av as StreamChunkOptions, m as ChunkReadable, O as Presence, v as DocConnector, x as DocTokenSupplier, w as DocServerUrlResolver, $ as RequestOptions, a0 as RequestStreamOptions, au as StoreOptions, at as Store, k as ChannelMultiplexer, ag as SessionFailureKind, H as MediaSession, P as PathHealthReporting, aA as TransportOfferResponse, aJ as WtAudioLaneSeam, aK as WtAudioUplinkSeam, aR as WtVideoUplinkSeam, aQ as WtDataUplinkSender, K as PathLiveness, aO as WtDataLaneSink } from './stream-data-BSG8Cuxh.mjs';
|
|
2
|
+
export { c as ActivationState, i as AudioPlayoutOptions, D as DERIVED_LEG_SEP, n as DGRAM_HEADER_BYTES, r as DerivedLegRole, s as DgramHeader, u as DocConnectionState, G as GENERATION_TICK_EMIT_INTERVAL_MS, y as GENERATION_TICK_MAX_EXTRAPOLATION_MS, I as InboundStatsSample, M as MediaChunkBinding, B as MediaChunkSource, E as MediaChunkSourceFactory, F as MediaRecorderChunkSourceOptions, N as NegotiatorDataLaneSeam, J as NegotiatorOptions, Q as PresenceState, R as PrewakeOptions, S as PrewakeResult, T as PrewakeStatus, U as QuicStreamDataTransport, W as RecordingBucket, X as RecordingLifecycle, Y as RecordingStatus, _ as ReleaseSessionBeaconOptions, a4 as RuntimeAvailability, a5 as RuntimeWakeDetail, a6 as RuntimeWakeGolden, a7 as RuntimeWakeReasonCode, a8 as SIGNALING_PROTOCOL_VERSION, a9 as STREAM_END, ad as SessionDocument, ai as SessionPhaseError, al as SessionStatsOptions, ap as SessionText, aq as SignalCarrier, ar as Signaling, as as StartSessionOptions, ax as TransportEstablishedNotify, ay as TransportNegotiator, az as TransportOfferRequest, aD as TransportSessionSignaling, aF as VideoPlayoutOptions, aG as WT_CONTROL_FRAME_MAX, aH as WT_DATA_STREAM_VERSION, aI as WatchGenerationTickOptions, aL as WtControlDecoder, aM as WtControlMessage, aN as WtDataEnvelope, aP as WtDataStreamParser, aT as consumeWtDataStreams, aW as decodeStreamEnvelope, aY as derivedLegName, aZ as derivedLegRole, a_ as encodeStreamEnvelope, a$ as encodeWtControlFrame, b0 as isPendingRecording, b1 as mediaRecorderChunkSource, b2 as parseDgramHeader, b3 as prewake, b4 as releaseSessionBeacon, b7 as watchGenerationTick, b8 as writeDgramHeader } from './stream-data-BSG8Cuxh.mjs';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
5
|
|
|
@@ -431,6 +431,8 @@ declare class Session implements Session$1 {
|
|
|
431
431
|
private _activeRequests;
|
|
432
432
|
private _endHandler?;
|
|
433
433
|
private _endPromise?;
|
|
434
|
+
private _cancelHandler?;
|
|
435
|
+
private _cancelPromise?;
|
|
434
436
|
|
|
435
437
|
private _recordingsAuth?;
|
|
436
438
|
|
|
@@ -483,6 +485,8 @@ declare class Session implements Session$1 {
|
|
|
483
485
|
setSessionId(sessionId: string): void;
|
|
484
486
|
|
|
485
487
|
setEndHandler(handler: () => Promise<SessionEndResult>): void;
|
|
488
|
+
|
|
489
|
+
setCancelHandler(handler: () => Promise<SessionEndResult>): void;
|
|
486
490
|
stream(name: string): SessionStream;
|
|
487
491
|
|
|
488
492
|
doc(key: string): SessionDocumentImpl;
|
|
@@ -530,6 +534,8 @@ declare class Session implements Session$1 {
|
|
|
530
534
|
get mediaTransport(): 'webtransport' | 'webrtc' | null;
|
|
531
535
|
end(): Promise<SessionEndResult>;
|
|
532
536
|
|
|
537
|
+
cancel(): Promise<SessionEndResult>;
|
|
538
|
+
|
|
533
539
|
disconnect(): void;
|
|
534
540
|
|
|
535
541
|
detach(): void;
|
|
@@ -637,9 +643,13 @@ declare class SessionEndUnavailableError extends Error {
|
|
|
637
643
|
declare class SessionEndError extends Error {
|
|
638
644
|
readonly code: string;
|
|
639
645
|
readonly httpStatus?: number;
|
|
640
|
-
|
|
646
|
+
|
|
647
|
+
readonly requestId?: string;
|
|
648
|
+
|
|
649
|
+
readonly sessionId?: string;
|
|
641
650
|
constructor(message: string, options: {
|
|
642
|
-
requestId
|
|
651
|
+
requestId?: string;
|
|
652
|
+
sessionId?: string;
|
|
643
653
|
code?: string;
|
|
644
654
|
httpStatus?: number;
|
|
645
655
|
cause?: unknown;
|
package/dist/index.browser.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ac as SessionDirectoryRequestOptions, g as AppOptions, f as App$1, ah as SessionPhase, an as SessionStatus, aj as SessionPhaseName, A as AccessTokenOptions, a1 as RuntimeArtifact, a2 as RuntimeArtifactDownload, V as Recording, aE as TransportState, aa as Session$1, C as ChannelEndpoint, aB as TransportSession, h as AttachOptions, ab as SessionDiagnostic, b as ActivationEvent, am as SessionStatsSample, z as GenerationTick, Z as RecordingsAccessor, a3 as RuntimeArtifactsAccessor, af as SessionEndResult, ao as SessionStream$1, aw as StreamDataTransport, ae as SessionDocumentImpl, av as StreamChunkOptions, m as ChunkReadable, O as Presence, v as DocConnector, x as DocTokenSupplier, w as DocServerUrlResolver, $ as RequestOptions, a0 as RequestStreamOptions, au as StoreOptions, at as Store, k as ChannelMultiplexer, ag as SessionFailureKind, H as MediaSession, P as PathHealthReporting, aA as TransportOfferResponse, aJ as WtAudioLaneSeam, aK as WtAudioUplinkSeam, aR as WtVideoUplinkSeam, aQ as WtDataUplinkSender, K as PathLiveness, aO as WtDataLaneSink } from './stream-data-
|
|
2
|
-
export { c as ActivationState, i as AudioPlayoutOptions, D as DERIVED_LEG_SEP, n as DGRAM_HEADER_BYTES, r as DerivedLegRole, s as DgramHeader, u as DocConnectionState, G as GENERATION_TICK_EMIT_INTERVAL_MS, y as GENERATION_TICK_MAX_EXTRAPOLATION_MS, I as InboundStatsSample, M as MediaChunkBinding, B as MediaChunkSource, E as MediaChunkSourceFactory, F as MediaRecorderChunkSourceOptions, N as NegotiatorDataLaneSeam, J as NegotiatorOptions, Q as PresenceState, R as PrewakeOptions, S as PrewakeResult, T as PrewakeStatus, U as QuicStreamDataTransport, W as RecordingBucket, X as RecordingLifecycle, Y as RecordingStatus, _ as ReleaseSessionBeaconOptions, a4 as RuntimeAvailability, a5 as RuntimeWakeDetail, a6 as RuntimeWakeGolden, a7 as RuntimeWakeReasonCode, a8 as SIGNALING_PROTOCOL_VERSION, a9 as STREAM_END, ad as SessionDocument, ai as SessionPhaseError, al as SessionStatsOptions, ap as SessionText, aq as SignalCarrier, ar as Signaling, as as StartSessionOptions, ax as TransportEstablishedNotify, ay as TransportNegotiator, az as TransportOfferRequest, aD as TransportSessionSignaling, aF as VideoPlayoutOptions, aG as WT_CONTROL_FRAME_MAX, aH as WT_DATA_STREAM_VERSION, aI as WatchGenerationTickOptions, aL as WtControlDecoder, aM as WtControlMessage, aN as WtDataEnvelope, aP as WtDataStreamParser, aT as consumeWtDataStreams, aW as decodeStreamEnvelope, aY as derivedLegName, aZ as derivedLegRole, a_ as encodeStreamEnvelope, a$ as encodeWtControlFrame, b0 as isPendingRecording, b1 as mediaRecorderChunkSource, b2 as parseDgramHeader, b3 as prewake, b4 as releaseSessionBeacon, b7 as watchGenerationTick, b8 as writeDgramHeader } from './stream-data-
|
|
1
|
+
import { ac as SessionDirectoryRequestOptions, g as AppOptions, f as App$1, ah as SessionPhase, an as SessionStatus, aj as SessionPhaseName, A as AccessTokenOptions, a1 as RuntimeArtifact, a2 as RuntimeArtifactDownload, V as Recording, aE as TransportState, aa as Session$1, C as ChannelEndpoint, aB as TransportSession, h as AttachOptions, ab as SessionDiagnostic, b as ActivationEvent, am as SessionStatsSample, z as GenerationTick, Z as RecordingsAccessor, a3 as RuntimeArtifactsAccessor, af as SessionEndResult, ao as SessionStream$1, aw as StreamDataTransport, ae as SessionDocumentImpl, av as StreamChunkOptions, m as ChunkReadable, O as Presence, v as DocConnector, x as DocTokenSupplier, w as DocServerUrlResolver, $ as RequestOptions, a0 as RequestStreamOptions, au as StoreOptions, at as Store, k as ChannelMultiplexer, ag as SessionFailureKind, H as MediaSession, P as PathHealthReporting, aA as TransportOfferResponse, aJ as WtAudioLaneSeam, aK as WtAudioUplinkSeam, aR as WtVideoUplinkSeam, aQ as WtDataUplinkSender, K as PathLiveness, aO as WtDataLaneSink } from './stream-data-BSG8Cuxh.js';
|
|
2
|
+
export { c as ActivationState, i as AudioPlayoutOptions, D as DERIVED_LEG_SEP, n as DGRAM_HEADER_BYTES, r as DerivedLegRole, s as DgramHeader, u as DocConnectionState, G as GENERATION_TICK_EMIT_INTERVAL_MS, y as GENERATION_TICK_MAX_EXTRAPOLATION_MS, I as InboundStatsSample, M as MediaChunkBinding, B as MediaChunkSource, E as MediaChunkSourceFactory, F as MediaRecorderChunkSourceOptions, N as NegotiatorDataLaneSeam, J as NegotiatorOptions, Q as PresenceState, R as PrewakeOptions, S as PrewakeResult, T as PrewakeStatus, U as QuicStreamDataTransport, W as RecordingBucket, X as RecordingLifecycle, Y as RecordingStatus, _ as ReleaseSessionBeaconOptions, a4 as RuntimeAvailability, a5 as RuntimeWakeDetail, a6 as RuntimeWakeGolden, a7 as RuntimeWakeReasonCode, a8 as SIGNALING_PROTOCOL_VERSION, a9 as STREAM_END, ad as SessionDocument, ai as SessionPhaseError, al as SessionStatsOptions, ap as SessionText, aq as SignalCarrier, ar as Signaling, as as StartSessionOptions, ax as TransportEstablishedNotify, ay as TransportNegotiator, az as TransportOfferRequest, aD as TransportSessionSignaling, aF as VideoPlayoutOptions, aG as WT_CONTROL_FRAME_MAX, aH as WT_DATA_STREAM_VERSION, aI as WatchGenerationTickOptions, aL as WtControlDecoder, aM as WtControlMessage, aN as WtDataEnvelope, aP as WtDataStreamParser, aT as consumeWtDataStreams, aW as decodeStreamEnvelope, aY as derivedLegName, aZ as derivedLegRole, a_ as encodeStreamEnvelope, a$ as encodeWtControlFrame, b0 as isPendingRecording, b1 as mediaRecorderChunkSource, b2 as parseDgramHeader, b3 as prewake, b4 as releaseSessionBeacon, b7 as watchGenerationTick, b8 as writeDgramHeader } from './stream-data-BSG8Cuxh.js';
|
|
3
3
|
import 'yjs';
|
|
4
4
|
import 'y-protocols/awareness';
|
|
5
5
|
|
|
@@ -431,6 +431,8 @@ declare class Session implements Session$1 {
|
|
|
431
431
|
private _activeRequests;
|
|
432
432
|
private _endHandler?;
|
|
433
433
|
private _endPromise?;
|
|
434
|
+
private _cancelHandler?;
|
|
435
|
+
private _cancelPromise?;
|
|
434
436
|
|
|
435
437
|
private _recordingsAuth?;
|
|
436
438
|
|
|
@@ -483,6 +485,8 @@ declare class Session implements Session$1 {
|
|
|
483
485
|
setSessionId(sessionId: string): void;
|
|
484
486
|
|
|
485
487
|
setEndHandler(handler: () => Promise<SessionEndResult>): void;
|
|
488
|
+
|
|
489
|
+
setCancelHandler(handler: () => Promise<SessionEndResult>): void;
|
|
486
490
|
stream(name: string): SessionStream;
|
|
487
491
|
|
|
488
492
|
doc(key: string): SessionDocumentImpl;
|
|
@@ -530,6 +534,8 @@ declare class Session implements Session$1 {
|
|
|
530
534
|
get mediaTransport(): 'webtransport' | 'webrtc' | null;
|
|
531
535
|
end(): Promise<SessionEndResult>;
|
|
532
536
|
|
|
537
|
+
cancel(): Promise<SessionEndResult>;
|
|
538
|
+
|
|
533
539
|
disconnect(): void;
|
|
534
540
|
|
|
535
541
|
detach(): void;
|
|
@@ -637,9 +643,13 @@ declare class SessionEndUnavailableError extends Error {
|
|
|
637
643
|
declare class SessionEndError extends Error {
|
|
638
644
|
readonly code: string;
|
|
639
645
|
readonly httpStatus?: number;
|
|
640
|
-
|
|
646
|
+
|
|
647
|
+
readonly requestId?: string;
|
|
648
|
+
|
|
649
|
+
readonly sessionId?: string;
|
|
641
650
|
constructor(message: string, options: {
|
|
642
|
-
requestId
|
|
651
|
+
requestId?: string;
|
|
652
|
+
sessionId?: string;
|
|
643
653
|
code?: string;
|
|
644
654
|
httpStatus?: number;
|
|
645
655
|
cause?: unknown;
|