@urun-sh/core 0.2.18 → 0.2.19
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 +4 -0
- package/dist/{chunk-UNVRVZHL.mjs → chunk-3OLMNSI3.mjs} +1 -1
- package/dist/{chunk-62CZN6MU.mjs → chunk-U7DZ4QVH.mjs} +5 -5
- package/dist/index.browser.d.mts +5 -3
- package/dist/index.browser.d.ts +5 -3
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1 -1
- 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 +1 -1
- 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-ChMs2mq2.d.mts → stream-data-bZAHTqK-.d.mts} +18 -1
- package/dist/{stream-data-ChMs2mq2.d.ts → stream-data-bZAHTqK-.d.ts} +18 -1
- package/package.json +1 -1
package/dist/internal.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
|
|
2
|
-
import{A as s,B as m,C as c,D as i,E as f,F as x,G as C,H as l,a as e,b as r,u as o,v as t,w as a,y as n,z as p}from"./chunk-
|
|
2
|
+
import{A as s,B as m,C as c,D as i,E as f,F as x,G as C,H as l,a as e,b as r,u as o,v as t,w as a,y as n,z as p}from"./chunk-U7DZ4QVH.mjs";export{e as ChannelMultiplexer,c as DOC_SYNC_WIRE_CONTRACT_VERSION,r as DeferredChannelMultiplexer,x as DeferredDocConnector,n as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,l as createPresence,f as createWebsocketDocConnector,i as deriveYjsServerUrl,a as ensureNodeWebRTC,o as isNodeRuntime,t as nodeMediasoupHandlerName,s as streamDataLabel,p as transportStreamData};
|
|
@@ -119,6 +119,17 @@ interface SessionPhaseError {
|
|
|
119
119
|
httpStatus?: number;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
interface SessionDiagnostic {
|
|
123
|
+
|
|
124
|
+
level: 'info' | 'warning' | 'error';
|
|
125
|
+
|
|
126
|
+
kind: string;
|
|
127
|
+
|
|
128
|
+
message: string;
|
|
129
|
+
|
|
130
|
+
detail?: Record<string, unknown>;
|
|
131
|
+
}
|
|
132
|
+
|
|
122
133
|
type ActivationState = 'activating' | 'still-activating' | 'cold-boot' | 'degraded' | 'first-media';
|
|
123
134
|
|
|
124
135
|
interface ActivationEvent {
|
|
@@ -412,6 +423,8 @@ interface Session {
|
|
|
412
423
|
|
|
413
424
|
onPhase(handler: (phase: SessionPhase) => void): () => void;
|
|
414
425
|
|
|
426
|
+
onDiagnostic(handler: (diagnostic: SessionDiagnostic) => void): () => void;
|
|
427
|
+
|
|
415
428
|
onActivation?(handler: (event: ActivationEvent) => void): () => void;
|
|
416
429
|
|
|
417
430
|
whenLive(options?: {
|
|
@@ -615,6 +628,8 @@ interface TransportEvents {
|
|
|
615
628
|
|
|
616
629
|
phase: (phase: SessionPhase) => void;
|
|
617
630
|
|
|
631
|
+
diagnostic: (diagnostic: SessionDiagnostic) => void;
|
|
632
|
+
|
|
618
633
|
seeked: (stream: string, target: number | 'live') => void;
|
|
619
634
|
|
|
620
635
|
signal: (msg: Record<string, unknown>) => void;
|
|
@@ -754,6 +769,8 @@ declare class TransportSession {
|
|
|
754
769
|
connect(startOptions?: SessionStartOptions): Promise<void>;
|
|
755
770
|
disconnect(): void;
|
|
756
771
|
on<E extends keyof TransportEvents>(event: E, handler: TransportEvents[E]): () => void;
|
|
772
|
+
|
|
773
|
+
private _emitDiagnostic;
|
|
757
774
|
sendInput(data: Record<string, unknown>, sequence?: number): void;
|
|
758
775
|
|
|
759
776
|
sendSignal(msg: Record<string, unknown>): void;
|
|
@@ -951,4 +968,4 @@ interface DataChannelTransport {
|
|
|
951
968
|
|
|
952
969
|
declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
|
|
953
970
|
|
|
954
|
-
export { type
|
|
971
|
+
export { type StoreOptions as $, type AccessTokenOptions as A, type RuntimeArtifact as B, type ChannelEndpoint as C, DOC_SYNC_WIRE_CONTRACT_VERSION as D, type RuntimeArtifactDownload as E, type RuntimeArtifactsAccessor as F, type RuntimeAvailability as G, type SceneGraph as H, type Session as I, type SessionDiagnostic as J, type SessionDocument as K, type Layer as L, type MediaChunkBinding as M, SessionDocumentImpl as N, type SessionEndResult as O, type Presence as P, type SessionFailureKind as Q, type Recording as R, type SceneContext as S, type SessionPhase as T, type SessionPhaseError as U, type SessionPhaseName as V, type SessionStartOptions as W, type SessionStatus as X, type SessionStream as Y, type SessionText as Z, type Store as _, type ActivationEvent as a, type StreamChunkOptions as a0, type StreamDataTransport as a1, TransportSession as a2, type TransportSessionOptions as a3, type TransportState as a4, createPresence as a5, createWebsocketDocConnector as a6, deriveYjsServerUrl as a7, isPendingRecording as a8, mediaRecorderChunkSource as a9, streamDataLabel as aa, transportStreamData as ab, type ActivationState as b, type App as c, type AppOptions as d, type AttachOptions as e, type ChannelMessage as f, ChannelMultiplexer as g, type ChannelName as h, type ChunkReadable as i, DeferredChannelMultiplexer as j, DeferredDocConnector as k, type DocConnection as l, type DocConnector as m, type LayoutConfig as n, type LayoutContext as o, LoopbackStreamData as p, type MediaChunkSource as q, type MediaChunkSourceFactory as r, type MediaRecorderChunkSourceOptions as s, type PresenceState as t, type RecordingBucket as u, type RecordingLifecycle as v, type RecordingStatus as w, type RecordingsAccessor as x, type RequestOptions as y, type RequestStreamOptions as z };
|
|
@@ -119,6 +119,17 @@ interface SessionPhaseError {
|
|
|
119
119
|
httpStatus?: number;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
interface SessionDiagnostic {
|
|
123
|
+
|
|
124
|
+
level: 'info' | 'warning' | 'error';
|
|
125
|
+
|
|
126
|
+
kind: string;
|
|
127
|
+
|
|
128
|
+
message: string;
|
|
129
|
+
|
|
130
|
+
detail?: Record<string, unknown>;
|
|
131
|
+
}
|
|
132
|
+
|
|
122
133
|
type ActivationState = 'activating' | 'still-activating' | 'cold-boot' | 'degraded' | 'first-media';
|
|
123
134
|
|
|
124
135
|
interface ActivationEvent {
|
|
@@ -412,6 +423,8 @@ interface Session {
|
|
|
412
423
|
|
|
413
424
|
onPhase(handler: (phase: SessionPhase) => void): () => void;
|
|
414
425
|
|
|
426
|
+
onDiagnostic(handler: (diagnostic: SessionDiagnostic) => void): () => void;
|
|
427
|
+
|
|
415
428
|
onActivation?(handler: (event: ActivationEvent) => void): () => void;
|
|
416
429
|
|
|
417
430
|
whenLive(options?: {
|
|
@@ -615,6 +628,8 @@ interface TransportEvents {
|
|
|
615
628
|
|
|
616
629
|
phase: (phase: SessionPhase) => void;
|
|
617
630
|
|
|
631
|
+
diagnostic: (diagnostic: SessionDiagnostic) => void;
|
|
632
|
+
|
|
618
633
|
seeked: (stream: string, target: number | 'live') => void;
|
|
619
634
|
|
|
620
635
|
signal: (msg: Record<string, unknown>) => void;
|
|
@@ -754,6 +769,8 @@ declare class TransportSession {
|
|
|
754
769
|
connect(startOptions?: SessionStartOptions): Promise<void>;
|
|
755
770
|
disconnect(): void;
|
|
756
771
|
on<E extends keyof TransportEvents>(event: E, handler: TransportEvents[E]): () => void;
|
|
772
|
+
|
|
773
|
+
private _emitDiagnostic;
|
|
757
774
|
sendInput(data: Record<string, unknown>, sequence?: number): void;
|
|
758
775
|
|
|
759
776
|
sendSignal(msg: Record<string, unknown>): void;
|
|
@@ -951,4 +968,4 @@ interface DataChannelTransport {
|
|
|
951
968
|
|
|
952
969
|
declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
|
|
953
970
|
|
|
954
|
-
export { type
|
|
971
|
+
export { type StoreOptions as $, type AccessTokenOptions as A, type RuntimeArtifact as B, type ChannelEndpoint as C, DOC_SYNC_WIRE_CONTRACT_VERSION as D, type RuntimeArtifactDownload as E, type RuntimeArtifactsAccessor as F, type RuntimeAvailability as G, type SceneGraph as H, type Session as I, type SessionDiagnostic as J, type SessionDocument as K, type Layer as L, type MediaChunkBinding as M, SessionDocumentImpl as N, type SessionEndResult as O, type Presence as P, type SessionFailureKind as Q, type Recording as R, type SceneContext as S, type SessionPhase as T, type SessionPhaseError as U, type SessionPhaseName as V, type SessionStartOptions as W, type SessionStatus as X, type SessionStream as Y, type SessionText as Z, type Store as _, type ActivationEvent as a, type StreamChunkOptions as a0, type StreamDataTransport as a1, TransportSession as a2, type TransportSessionOptions as a3, type TransportState as a4, createPresence as a5, createWebsocketDocConnector as a6, deriveYjsServerUrl as a7, isPendingRecording as a8, mediaRecorderChunkSource as a9, streamDataLabel as aa, transportStreamData as ab, type ActivationState as b, type App as c, type AppOptions as d, type AttachOptions as e, type ChannelMessage as f, ChannelMultiplexer as g, type ChannelName as h, type ChunkReadable as i, DeferredChannelMultiplexer as j, DeferredDocConnector as k, type DocConnection as l, type DocConnector as m, type LayoutConfig as n, type LayoutContext as o, LoopbackStreamData as p, type MediaChunkSource as q, type MediaChunkSourceFactory as r, type MediaRecorderChunkSourceOptions as s, type PresenceState as t, type RecordingBucket as u, type RecordingLifecycle as v, type RecordingStatus as w, type RecordingsAccessor as x, type RequestOptions as y, type RequestStreamOptions as z };
|