@urun-sh/core 0.2.18 → 0.2.20

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/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-62CZN6MU.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};
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 StreamChunkOptions 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 SessionDocument as J, SessionDocumentImpl as K, type Layer as L, type MediaChunkBinding as M, type SessionEndResult as N, type SessionFailureKind as O, type Presence as P, type SessionPhase as Q, type Recording as R, type SceneContext as S, type SessionPhaseError as T, type SessionPhaseName as U, type SessionStartOptions as V, type SessionStatus as W, type SessionStream as X, type SessionText as Y, type Store as Z, type StoreOptions as _, type ActivationEvent as a, type StreamDataTransport as a0, TransportSession as a1, type TransportSessionOptions as a2, type TransportState as a3, createPresence as a4, createWebsocketDocConnector as a5, deriveYjsServerUrl as a6, isPendingRecording as a7, mediaRecorderChunkSource as a8, streamDataLabel as a9, transportStreamData as aa, 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 };
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 StreamChunkOptions 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 SessionDocument as J, SessionDocumentImpl as K, type Layer as L, type MediaChunkBinding as M, type SessionEndResult as N, type SessionFailureKind as O, type Presence as P, type SessionPhase as Q, type Recording as R, type SceneContext as S, type SessionPhaseError as T, type SessionPhaseName as U, type SessionStartOptions as V, type SessionStatus as W, type SessionStream as X, type SessionText as Y, type Store as Z, type StoreOptions as _, type ActivationEvent as a, type StreamDataTransport as a0, TransportSession as a1, type TransportSessionOptions as a2, type TransportState as a3, createPresence as a4, createWebsocketDocConnector as a5, deriveYjsServerUrl as a6, isPendingRecording as a7, mediaRecorderChunkSource as a8, streamDataLabel as a9, transportStreamData as aa, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.2.18",
3
+ "version": "0.2.20",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",