@urun-sh/core 0.2.2 → 0.2.3

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 +1 @@
1
- import{a as e,b as r,c as o,d as t,e as a,g as n,h as p,i as s,j as m,l as c,m as i,n as f,o as x}from"./chunk-2TYDFOWI.mjs";export{e as ChannelMultiplexer,r as DeferredChannelMultiplexer,f as DeferredDocConnector,n as LoopbackStreamData,m as TransportSession,x as createPresence,i as createWebsocketDocConnector,c as deriveYjsServerUrl,a as ensureNodeWebRTC,o as isNodeRuntime,t as nodeMediasoupHandlerName,s as streamDataLabel,p as transportStreamData};
1
+ import{a as e,b as r,c as o,d as t,e as a,g as n,h as p,i as s,j as m,l as c,m as i,n as f,o as x}from"./chunk-O4WPKVLL.mjs";export{e as ChannelMultiplexer,r as DeferredChannelMultiplexer,f as DeferredDocConnector,n as LoopbackStreamData,m as TransportSession,x as createPresence,i as createWebsocketDocConnector,c as deriveYjsServerUrl,a as ensureNodeWebRTC,o as isNodeRuntime,t as nodeMediasoupHandlerName,s as streamDataLabel,p as transportStreamData};
@@ -330,6 +330,8 @@ interface Session {
330
330
 
331
331
  readonly recordings: RecordingsAccessor;
332
332
 
333
+ readonly artifacts: RuntimeArtifactsAccessor;
334
+
333
335
  disconnect(): void;
334
336
  }
335
337
 
@@ -392,6 +394,27 @@ interface RecordingsAccessor {
392
394
 
393
395
  delete(id: string): Promise<Recording>;
394
396
  }
397
+ interface RuntimeArtifact {
398
+ artifactId: string;
399
+ kind: string;
400
+ filename: string;
401
+ contentType: string;
402
+ sizeBytes: number;
403
+ sha256: string;
404
+ status: string;
405
+ createdAt?: string;
406
+ expiresAt?: string;
407
+ }
408
+ interface RuntimeArtifactDownload {
409
+ artifact: RuntimeArtifact;
410
+ downloadUrl: string;
411
+ }
412
+ interface RuntimeArtifactsAccessor {
413
+
414
+ list(sessionId?: string): Promise<RuntimeArtifact[]>;
415
+
416
+ getDownloadUrl(artifactId: string, sessionId?: string): Promise<RuntimeArtifactDownload>;
417
+ }
395
418
 
396
419
  interface AppOptions {
397
420
 
@@ -536,6 +559,10 @@ declare class TransportSession {
536
559
  private _lastConsumeMsg;
537
560
  private _recvConnectWatchdog;
538
561
  private _recvTcpFailoverDone;
562
+ private _recvIceRestartAttempts;
563
+ private _recvIceRestartTimer;
564
+ private _sendIceRestartAttempts;
565
+ private _sendIceRestartTimer;
539
566
  private _phase;
540
567
  private _requestId;
541
568
  private _liveReached;
@@ -632,6 +659,17 @@ declare class TransportSession {
632
659
  private _clearRecvWatchdog;
633
660
 
634
661
  private _failoverRecvToTcp;
662
+
663
+ private _tryRestartRecvIce;
664
+ private _trySendIceRestart;
665
+
666
+ private _requestIceRestart;
667
+
668
+ private _onIceRestarted;
669
+ private _armRecvIceRestartWatchdog;
670
+ private _armSendIceRestartWatchdog;
671
+ private _clearRecvIceRestart;
672
+ private _clearSendIceRestart;
635
673
  private _onCreateSendTransport;
636
674
 
637
675
  private _onConsumeData;
@@ -694,4 +732,4 @@ interface DataChannelTransport {
694
732
 
695
733
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
696
734
 
697
- export { type AccessTokenOptions as A, type SessionPhase as B, type ChannelEndpoint as C, DeferredChannelMultiplexer as D, type SessionPhaseName as E, type SessionStartOptions as F, type SessionStream as G, type SessionText as H, type Store as I, type StoreOptions as J, type StreamChunkOptions as K, type Layer as L, type MediaChunkBinding as M, type StreamDataTransport as N, type TransportSessionOptions as O, type Presence as P, type TransportState as Q, type Recording as R, type SceneContext as S, TransportSession as T, createPresence as U, createWebsocketDocConnector as V, deriveYjsServerUrl as W, isPendingRecording as X, mediaRecorderChunkSource as Y, streamDataLabel as Z, transportStreamData as _, type App as a, type AppOptions as b, type AttachOptions as c, type ChannelMessage as d, ChannelMultiplexer as e, type ChannelName as f, type ChunkReadable as g, DeferredDocConnector as h, type DocConnection as i, type DocConnector as j, type LayoutConfig as k, type LayoutContext as l, LoopbackStreamData as m, type MediaChunkSource as n, type MediaChunkSourceFactory as o, type MediaRecorderChunkSourceOptions as p, type PresenceState as q, type RecordingBucket as r, type RecordingLifecycle as s, type RecordingStatus as t, type RecordingsAccessor as u, type RequestOptions as v, type RequestStreamOptions as w, type SceneGraph as x, type Session as y, type SessionDocument as z };
735
+ export { mediaRecorderChunkSource as $, type AccessTokenOptions as A, type SceneGraph as B, type ChannelEndpoint as C, DeferredChannelMultiplexer as D, type Session as E, type SessionDocument as F, type SessionPhase as G, type SessionPhaseName as H, type SessionStartOptions as I, type SessionStream as J, type SessionText as K, type Layer as L, type MediaChunkBinding as M, type Store as N, type StoreOptions as O, type Presence as P, type StreamChunkOptions as Q, type Recording as R, type SceneContext as S, type StreamDataTransport as T, TransportSession as U, type TransportSessionOptions as V, type TransportState as W, createPresence as X, createWebsocketDocConnector as Y, deriveYjsServerUrl as Z, isPendingRecording as _, type App as a, streamDataLabel as a0, transportStreamData as a1, type AppOptions as b, type AttachOptions as c, type ChannelMessage as d, ChannelMultiplexer as e, type ChannelName as f, type ChunkReadable as g, DeferredDocConnector as h, type DocConnection as i, type DocConnector as j, type LayoutConfig as k, type LayoutContext as l, LoopbackStreamData as m, type MediaChunkSource as n, type MediaChunkSourceFactory as o, type MediaRecorderChunkSourceOptions as p, type PresenceState as q, type RecordingBucket as r, type RecordingLifecycle as s, type RecordingStatus as t, type RecordingsAccessor as u, type RequestOptions as v, type RequestStreamOptions as w, type RuntimeArtifact as x, type RuntimeArtifactDownload as y, type RuntimeArtifactsAccessor as z };
@@ -330,6 +330,8 @@ interface Session {
330
330
 
331
331
  readonly recordings: RecordingsAccessor;
332
332
 
333
+ readonly artifacts: RuntimeArtifactsAccessor;
334
+
333
335
  disconnect(): void;
334
336
  }
335
337
 
@@ -392,6 +394,27 @@ interface RecordingsAccessor {
392
394
 
393
395
  delete(id: string): Promise<Recording>;
394
396
  }
397
+ interface RuntimeArtifact {
398
+ artifactId: string;
399
+ kind: string;
400
+ filename: string;
401
+ contentType: string;
402
+ sizeBytes: number;
403
+ sha256: string;
404
+ status: string;
405
+ createdAt?: string;
406
+ expiresAt?: string;
407
+ }
408
+ interface RuntimeArtifactDownload {
409
+ artifact: RuntimeArtifact;
410
+ downloadUrl: string;
411
+ }
412
+ interface RuntimeArtifactsAccessor {
413
+
414
+ list(sessionId?: string): Promise<RuntimeArtifact[]>;
415
+
416
+ getDownloadUrl(artifactId: string, sessionId?: string): Promise<RuntimeArtifactDownload>;
417
+ }
395
418
 
396
419
  interface AppOptions {
397
420
 
@@ -536,6 +559,10 @@ declare class TransportSession {
536
559
  private _lastConsumeMsg;
537
560
  private _recvConnectWatchdog;
538
561
  private _recvTcpFailoverDone;
562
+ private _recvIceRestartAttempts;
563
+ private _recvIceRestartTimer;
564
+ private _sendIceRestartAttempts;
565
+ private _sendIceRestartTimer;
539
566
  private _phase;
540
567
  private _requestId;
541
568
  private _liveReached;
@@ -632,6 +659,17 @@ declare class TransportSession {
632
659
  private _clearRecvWatchdog;
633
660
 
634
661
  private _failoverRecvToTcp;
662
+
663
+ private _tryRestartRecvIce;
664
+ private _trySendIceRestart;
665
+
666
+ private _requestIceRestart;
667
+
668
+ private _onIceRestarted;
669
+ private _armRecvIceRestartWatchdog;
670
+ private _armSendIceRestartWatchdog;
671
+ private _clearRecvIceRestart;
672
+ private _clearSendIceRestart;
635
673
  private _onCreateSendTransport;
636
674
 
637
675
  private _onConsumeData;
@@ -694,4 +732,4 @@ interface DataChannelTransport {
694
732
 
695
733
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
696
734
 
697
- export { type AccessTokenOptions as A, type SessionPhase as B, type ChannelEndpoint as C, DeferredChannelMultiplexer as D, type SessionPhaseName as E, type SessionStartOptions as F, type SessionStream as G, type SessionText as H, type Store as I, type StoreOptions as J, type StreamChunkOptions as K, type Layer as L, type MediaChunkBinding as M, type StreamDataTransport as N, type TransportSessionOptions as O, type Presence as P, type TransportState as Q, type Recording as R, type SceneContext as S, TransportSession as T, createPresence as U, createWebsocketDocConnector as V, deriveYjsServerUrl as W, isPendingRecording as X, mediaRecorderChunkSource as Y, streamDataLabel as Z, transportStreamData as _, type App as a, type AppOptions as b, type AttachOptions as c, type ChannelMessage as d, ChannelMultiplexer as e, type ChannelName as f, type ChunkReadable as g, DeferredDocConnector as h, type DocConnection as i, type DocConnector as j, type LayoutConfig as k, type LayoutContext as l, LoopbackStreamData as m, type MediaChunkSource as n, type MediaChunkSourceFactory as o, type MediaRecorderChunkSourceOptions as p, type PresenceState as q, type RecordingBucket as r, type RecordingLifecycle as s, type RecordingStatus as t, type RecordingsAccessor as u, type RequestOptions as v, type RequestStreamOptions as w, type SceneGraph as x, type Session as y, type SessionDocument as z };
735
+ export { mediaRecorderChunkSource as $, type AccessTokenOptions as A, type SceneGraph as B, type ChannelEndpoint as C, DeferredChannelMultiplexer as D, type Session as E, type SessionDocument as F, type SessionPhase as G, type SessionPhaseName as H, type SessionStartOptions as I, type SessionStream as J, type SessionText as K, type Layer as L, type MediaChunkBinding as M, type Store as N, type StoreOptions as O, type Presence as P, type StreamChunkOptions as Q, type Recording as R, type SceneContext as S, type StreamDataTransport as T, TransportSession as U, type TransportSessionOptions as V, type TransportState as W, createPresence as X, createWebsocketDocConnector as Y, deriveYjsServerUrl as Z, isPendingRecording as _, type App as a, streamDataLabel as a0, transportStreamData as a1, type AppOptions as b, type AttachOptions as c, type ChannelMessage as d, ChannelMultiplexer as e, type ChannelName as f, type ChunkReadable as g, DeferredDocConnector as h, type DocConnection as i, type DocConnector as j, type LayoutConfig as k, type LayoutContext as l, LoopbackStreamData as m, type MediaChunkSource as n, type MediaChunkSourceFactory as o, type MediaRecorderChunkSourceOptions as p, type PresenceState as q, type RecordingBucket as r, type RecordingLifecycle as s, type RecordingStatus as t, type RecordingsAccessor as u, type RequestOptions as v, type RequestStreamOptions as w, type RuntimeArtifact as x, type RuntimeArtifactDownload as y, type RuntimeArtifactsAccessor as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",