@urun-sh/core 0.2.60 → 0.3.1

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.
@@ -33,6 +33,23 @@ interface MediaRecorderChunkSourceOptions {
33
33
 
34
34
  declare function mediaRecorderChunkSource(binding: MediaChunkBinding, options?: MediaRecorderChunkSourceOptions): MediaChunkSource;
35
35
 
36
+ interface GenerationTick {
37
+
38
+ seconds: number;
39
+
40
+ estimatedCredits?: number;
41
+ }
42
+
43
+ declare const GENERATION_TICK_EMIT_INTERVAL_MS = 1000;
44
+
45
+ declare const GENERATION_TICK_MAX_EXTRAPOLATION_MS = 12000;
46
+ interface WatchGenerationTickOptions {
47
+
48
+ creditsPerSecond?: number;
49
+ }
50
+
51
+ declare function watchGenerationTick(control: Pick<SessionDocument, 'get' | 'on'>, handler: (tick: GenerationTick) => void, options?: WatchGenerationTickOptions): () => void;
52
+
36
53
  declare const DOC_SYNC_WIRE_CONTRACT_VERSION = 1;
37
54
 
38
55
  interface DocConnectionState {
@@ -48,6 +65,8 @@ interface DocConnectionState {
48
65
 
49
66
  type DocTokenSupplier = () => string | undefined | Promise<string | undefined>;
50
67
 
68
+ type DocServerUrlResolver = () => string | undefined | Promise<string | undefined>;
69
+
51
70
  interface DocConnection {
52
71
 
53
72
  readonly awareness: Awareness;
@@ -80,6 +99,8 @@ interface WebsocketDocConnectorOptions {
80
99
  maxBackoffTimeMs?: number;
81
100
 
82
101
  dialTimeoutMs?: number;
102
+
103
+ resolveServerUrl?: DocServerUrlResolver;
83
104
  }
84
105
 
85
106
  declare function createWebsocketDocConnector(opts: WebsocketDocConnectorOptions): DocConnector;
@@ -117,7 +138,7 @@ declare function createPresence(awareness: Awareness): Presence;
117
138
 
118
139
  type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
119
140
 
120
- type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'connecting' | 'live' | 'error' | 'ended' | 'expired';
141
+ type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live' | 'error' | 'ended' | 'expired' | 'unknown';
121
142
 
122
143
  interface RuntimeAvailability {
123
144
  state: 'unavailable' | 'starting' | 'busy';
@@ -156,7 +177,7 @@ type RuntimeWakeDetail = (RuntimeWakeDetailBase & {
156
177
  golden?: never;
157
178
  });
158
179
 
159
- type SessionFailureKind = 'create-failed' | 'never-live' | 'transport-failed' | 'media-permission' | 'ended' | 'runtime-failed' | 'expired' | 'produce-timeout';
180
+ type SessionFailureKind = 'create-failed' | 'never-live' | 'transport-failed' | 'media-permission' | 'ended' | 'runtime-failed' | 'expired' | 'insufficient-credits' | 'produce-timeout';
160
181
 
161
182
  interface SessionPhaseError {
162
183
 
@@ -213,6 +234,8 @@ interface SessionPhase {
213
234
  endsAt?: Date;
214
235
 
215
236
  error?: SessionPhaseError;
237
+
238
+ reason?: string;
216
239
  }
217
240
 
218
241
  interface SessionStatus {
@@ -481,6 +504,8 @@ interface Session {
481
504
 
482
505
  onStats?(handler: (sample: SessionStatsSample) => void): () => void;
483
506
 
507
+ on(event: 'generationTick', handler: (tick: GenerationTick) => void): () => void;
508
+
484
509
  whenLive(options?: {
485
510
  timeout?: number;
486
511
  signal?: AbortSignal;
@@ -600,6 +625,8 @@ interface AppOptions {
600
625
 
601
626
  allowWebTransport?: boolean;
602
627
 
628
+ allowWebRtcFallback?: boolean;
629
+
603
630
  releaseOnLeave?: boolean;
604
631
 
605
632
  sessionKey?: string;
@@ -638,9 +665,15 @@ interface App {
638
665
  [fnName: string]: (args?: Record<string, unknown>) => Session;
639
666
  }
640
667
 
641
- type SessionGatewayStatus = 'allocated' | 'pending' | 'queued' | 'rejected' | 'failed' | 'canceled';
668
+ type SessionGatewayStatus = 'allocated' | 'pending' | 'queued' | 'rejected' | 'failed' | 'canceled'
669
+
670
+ | 'redirect';
642
671
  interface SessionGatewayResponse {
643
672
  status?: SessionGatewayStatus;
673
+
674
+ location?: string;
675
+
676
+ session_api_base?: string;
644
677
  request_id?: string;
645
678
  session_id?: string;
646
679
  ws_url?: string;
@@ -660,6 +693,11 @@ interface SessionGatewayResponse {
660
693
  ends_at?: string;
661
694
  error_code?: string;
662
695
  error_message?: string;
696
+
697
+ message?: string;
698
+ error?: string;
699
+
700
+ balance_credits?: number;
663
701
  }
664
702
 
665
703
  interface AdmissionUpdate {
@@ -779,6 +817,331 @@ declare class DeferredChannelMultiplexer implements ChannelEndpoint {
779
817
  private detachTarget;
780
818
  }
781
819
 
820
+ type WtMicSource = MediaStreamTrack | AudioNode;
821
+
822
+ interface WtMicUplinkHandle {
823
+ setSource(source: WtMicSource | null): void;
824
+ }
825
+
826
+ interface WtAudioUplinkSeam {
827
+ onUplink(handle: WtMicUplinkHandle): void;
828
+ onUplinkLost(reason: string): void;
829
+ }
830
+
831
+ interface WtCamUplinkHandle {
832
+ setSource(track: MediaStreamTrack | null): void;
833
+
834
+ requestKeyframe(): void;
835
+ }
836
+
837
+ interface WtVideoUplinkSeam {
838
+ onUplink(handle: WtCamUplinkHandle): void;
839
+ onUplinkLost(reason: string): void;
840
+ }
841
+
842
+ declare const WT_DATA_STREAM_VERSION = 1;
843
+
844
+ interface WtDataEnvelope {
845
+ name: string;
846
+ payload: unknown;
847
+ }
848
+
849
+ interface WtDataLaneSink {
850
+ onData(name: string, payload: unknown): void;
851
+ onLaneError(err: Error): void;
852
+ }
853
+
854
+ interface QuicStreamDataTransport {
855
+
856
+ markStreamDataLaneQuic(): void;
857
+
858
+ dispatchQuicStreamData(name: string, payload: unknown): void;
859
+
860
+ quicStreamDataLaneLost(reason: string): void;
861
+
862
+ raiseQuicStreamDataError(err: Error): void;
863
+ }
864
+
865
+ declare class WtDataStreamParser {
866
+ private buf;
867
+ private name;
868
+ private ended;
869
+
870
+ get streamName(): string | null;
871
+ push(chunk: Uint8Array): WtDataEnvelope[];
872
+
873
+ finish(): void;
874
+ }
875
+
876
+ interface WtByteReader {
877
+ read(): Promise<{
878
+ value?: Uint8Array;
879
+ done: boolean;
880
+ }>;
881
+ cancel?(reason?: unknown): Promise<void>;
882
+ }
883
+ interface WtIncomingUniStream {
884
+ getReader(): WtByteReader;
885
+ }
886
+ interface WtIncomingUniStreams {
887
+ getReader(): {
888
+ read(): Promise<{
889
+ value?: WtIncomingUniStream;
890
+ done: boolean;
891
+ }>;
892
+ };
893
+ }
894
+
895
+ declare function consumeWtDataStreams(incoming: WtIncomingUniStreams, sink: WtDataLaneSink): Promise<void>;
896
+
897
+ interface MediaSession {
898
+ readonly kind: 'webtransport' | 'webrtc';
899
+ start(): Promise<void>;
900
+ stop(): Promise<void>;
901
+
902
+ onDead(cb: (reason: string) => void): void;
903
+
904
+ stats(): {
905
+ recvBps: number;
906
+ lossPct: number;
907
+ jitterMs: number;
908
+ };
909
+
910
+ readonly firstMedia: Promise<void>;
911
+
912
+ consumeDataStreams?(sink: WtDataLaneSink): void;
913
+ }
914
+
915
+ interface Signaling {
916
+ request<T = unknown>(method: string, params?: unknown): Promise<T>;
917
+ notify(method: string, params?: unknown): void;
918
+
919
+ on(method: string, handler: (params: Record<string, unknown>) => void): () => void;
920
+ }
921
+
922
+ interface SignalCarrier {
923
+
924
+ sendSignal(msg: Record<string, unknown>): boolean;
925
+
926
+ onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
927
+
928
+ emitDiagnostic(diagnostic: SessionDiagnostic): void;
929
+ }
930
+ declare class TransportSessionSignaling implements Signaling {
931
+ private carrier;
932
+ private requestTimeoutMs;
933
+ constructor(carrier: SignalCarrier, requestTimeoutMs?: number);
934
+ request<T = unknown>(method: string, params?: unknown): Promise<T>;
935
+ notify(method: string, params?: unknown): void;
936
+ on(method: string, handler: (params: Record<string, unknown>) => void): () => void;
937
+ }
938
+
939
+ interface TransportOfferRequest {
940
+ sessionId: string;
941
+ capabilities: {
942
+
943
+ webtransport: boolean;
944
+
945
+ webcodecs: boolean;
946
+
947
+ codecs: string[];
948
+
949
+ wtData?: boolean;
950
+
951
+ wtAudio?: boolean;
952
+
953
+ wtAudioUp?: boolean;
954
+
955
+ wtVideoUp?: boolean;
956
+
957
+ wtDataUp?: boolean;
958
+ };
959
+ }
960
+ interface TransportOfferResponse {
961
+
962
+ webrtc: {
963
+ routerRtpCapabilities: unknown;
964
+ };
965
+
966
+ webtransport?: {
967
+ url: string;
968
+
969
+ certHashes: string[];
970
+
971
+ token: string;
972
+
973
+ codec?: string;
974
+
975
+ data?: boolean;
976
+
977
+ audio?: {
978
+ codec: string;
979
+ sampleRate: number;
980
+ channels: number;
981
+ };
982
+
983
+ audioUp?: boolean;
984
+
985
+ videoUp?: boolean;
986
+
987
+ dataUp?: boolean;
988
+ };
989
+ }
990
+ interface TransportEstablishedNotify {
991
+ sessionId: string;
992
+ transport: 'webtransport' | 'webrtc';
993
+
994
+ fallbackReason?: string;
995
+ }
996
+ type WtControlMessage = {
997
+ t: 'hello';
998
+ token: string;
999
+ sessionId: string;
1000
+ } | {
1001
+ t: 'hello-ack';
1002
+ codec: string;
1003
+ width: number;
1004
+ height: number;
1005
+ } | {
1006
+ t: 'ping';
1007
+ ts: number;
1008
+ } | {
1009
+ t: 'pong';
1010
+ ts: number;
1011
+ } | {
1012
+ t: 'keyframe-request';
1013
+ } | {
1014
+ t: 'feedback';
1015
+ recvBps: number;
1016
+ lossPct: number;
1017
+ jitterMs: number;
1018
+ };
1019
+
1020
+ declare const WT_CONTROL_FRAME_MAX: number;
1021
+
1022
+ declare function encodeWtControlFrame(msg: WtControlMessage): Uint8Array;
1023
+
1024
+ declare class WtControlDecoder {
1025
+ private buf;
1026
+ push(bytes: Uint8Array): WtControlMessage[];
1027
+ }
1028
+ declare const DGRAM_HEADER_BYTES = 12;
1029
+ interface DgramHeader {
1030
+ groupId: number;
1031
+ frameSeq: number;
1032
+ keyframe: boolean;
1033
+ fragIndex: number;
1034
+ fragCount: number;
1035
+
1036
+ lane: number;
1037
+ }
1038
+
1039
+ declare function parseDgramHeader(view: DataView): DgramHeader;
1040
+
1041
+ declare function writeDgramHeader(h: Omit<DgramHeader, 'lane'> & {
1042
+ lane?: number;
1043
+ }): Uint8Array;
1044
+
1045
+ interface WtAudioLaneSeam {
1046
+
1047
+ jitterBufferTargetMs?: number;
1048
+
1049
+ onTrack: (track: MediaStreamTrack | null) => void;
1050
+ }
1051
+
1052
+ interface WtDataUplinkTransport {
1053
+ openUniStream(): Promise<{
1054
+ write(chunk: Uint8Array): Promise<void>;
1055
+ close(): Promise<void>;
1056
+ }>;
1057
+ }
1058
+
1059
+ declare class WtDataUplinkSender {
1060
+ private transport;
1061
+ private streams;
1062
+ private dead;
1063
+ private deadCb;
1064
+
1065
+ private chain;
1066
+ constructor(transport: WtDataUplinkTransport);
1067
+ onDead(cb: (reason: string) => void): void;
1068
+
1069
+ send(name: string, envelope: Uint8Array): Promise<void>;
1070
+ stop(reason?: string): void;
1071
+ private die;
1072
+ }
1073
+
1074
+ interface WtDataUplinkSeam {
1075
+ onUplink(sender: WtDataUplinkSender): void;
1076
+ onUplinkLost(reason: string): void;
1077
+ }
1078
+
1079
+ interface NegotiatorDataLaneSeam {
1080
+
1081
+ onData(name: string, payload: unknown): void;
1082
+
1083
+ onQuicLane(): void;
1084
+
1085
+ onQuicLaneLost(reason: string): void;
1086
+
1087
+ onLaneError(err: Error): void;
1088
+ }
1089
+ interface NegotiatorOptions {
1090
+
1091
+ quicDeadlineMs?: number;
1092
+
1093
+ allowWebTransport?: boolean;
1094
+ onTransportChange?: (kind: MediaSession['kind'], reason?: string) => void;
1095
+
1096
+ canvas?: HTMLCanvasElement;
1097
+
1098
+ createWebRtcSession: () => MediaSession;
1099
+ createWebTransportSession?: (offer: NonNullable<TransportOfferResponse['webtransport']>) => MediaSession;
1100
+
1101
+ dataLane?: NegotiatorDataLaneSeam;
1102
+
1103
+ audioLane?: WtAudioLaneSeam;
1104
+
1105
+ audioUplink?: WtAudioUplinkSeam;
1106
+
1107
+ videoUplink?: WtVideoUplinkSeam;
1108
+
1109
+ dataUplink?: WtDataUplinkSeam;
1110
+
1111
+ webRtcDial?: {
1112
+ proceed(reason: string): void;
1113
+ skip(reason: string): void;
1114
+ };
1115
+
1116
+ allowWebRtcFallback?: boolean;
1117
+
1118
+ onWtRequiredOutage?: (reason: string) => void;
1119
+ }
1120
+ declare class TransportNegotiator {
1121
+ private signaling;
1122
+ private sessionId;
1123
+ private opts;
1124
+ private session;
1125
+ private offer;
1126
+
1127
+ private quicDataLane;
1128
+
1129
+ private wtOnlyLeg;
1130
+ constructor(signaling: Signaling, sessionId: string, opts: NegotiatorOptions);
1131
+ get activeTransport(): MediaSession['kind'] | null;
1132
+ connect(): Promise<MediaSession>;
1133
+ disconnect(): Promise<void>;
1134
+
1135
+ retryWebTransport(): Promise<MediaSession | null>;
1136
+
1137
+ private engageQuicDataLane;
1138
+ private createWebTransportSession;
1139
+ private startWebRtc;
1140
+
1141
+ private armFailover;
1142
+ private notifyEstablished;
1143
+ }
1144
+
782
1145
  interface TransportConnection {
783
1146
  url: string;
784
1147
  sessionId: string;
@@ -817,6 +1180,8 @@ interface TransportEvents {
817
1180
 
818
1181
  signal: (msg: Record<string, unknown>) => void;
819
1182
  }
1183
+
1184
+ declare const SIGNALING_PROTOCOL_VERSION = "v1";
820
1185
  interface SessionStartOptions {
821
1186
  app?: string;
822
1187
  functionName?: string;
@@ -853,6 +1218,9 @@ declare class TransportSession {
853
1218
  private _videoProducer;
854
1219
  private _publishedAudio;
855
1220
  private _publishedVideo;
1221
+ private _wtMicUplink;
1222
+ private _wtCamUplink;
1223
+ private _wtDataUpSender;
856
1224
  private _pendingProduce;
857
1225
  private _multiplexer;
858
1226
  private _reconnectAttempts;
@@ -895,7 +1263,9 @@ declare class TransportSession {
895
1263
 
896
1264
  private _selectedCandidatePair;
897
1265
 
898
- private _candidatePairDiagnosticEmitted;
1266
+ private _reportedCandidatePairKey;
1267
+
1268
+ private _candidatePairRefreshSeq;
899
1269
 
900
1270
  private _diagnosticSinkFailed;
901
1271
 
@@ -939,6 +1309,8 @@ declare class TransportSession {
939
1309
 
940
1310
  get connectedUrl(): string | null;
941
1311
 
1312
+ get intentionalDisconnect(): boolean;
1313
+
942
1314
  getTrackByName(name: string): MediaStreamTrack | undefined;
943
1315
 
944
1316
  private _streamNameOf;
@@ -963,16 +1335,20 @@ declare class TransportSession {
963
1335
  private _emitDiagnostic;
964
1336
  sendInput(data: Record<string, unknown>, sequence?: number): void;
965
1337
 
966
- sendSignal(msg: Record<string, unknown>): void;
1338
+ sendSignal(msg: Record<string, unknown>): boolean;
967
1339
 
968
1340
  onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
969
1341
 
1342
+ emitDiagnostic(diagnostic: SessionDiagnostic): void;
1343
+
970
1344
  onStreamData(name: string, handler: (payload: unknown) => void): () => void;
971
1345
 
972
1346
  sendStreamData(name: string, payload: unknown, _options?: {
973
1347
  to?: string;
974
1348
  }): Promise<void>;
975
1349
 
1350
+ get wtDataUplinkSeam(): WtDataUplinkSeam;
1351
+
976
1352
  private _awaitSendTransport;
977
1353
 
978
1354
  private _settleSendTransportWaiters;
@@ -1016,6 +1392,15 @@ declare class TransportSession {
1016
1392
  private _onStreamSeeked;
1017
1393
 
1018
1394
  private _onStatus;
1395
+
1396
+ private _webRtcDialHeld;
1397
+
1398
+ private _heldRouterCaps;
1399
+
1400
+ holdWebRtcDial(): {
1401
+ proceed: (reason: string) => void;
1402
+ skip: (reason: string) => void;
1403
+ };
1019
1404
  private _onRouterCapabilities;
1020
1405
  private _onCreateRecvTransport;
1021
1406
 
@@ -1039,6 +1424,14 @@ declare class TransportSession {
1039
1424
  private _onConsumeData;
1040
1425
  private _onConsume;
1041
1426
 
1427
+
1428
+ get audioPlayoutOptions(): {
1429
+ jitterBufferTargetMs?: number;
1430
+ } | undefined;
1431
+
1432
+ get wtMicUplinkSeam(): WtAudioUplinkSeam;
1433
+
1434
+ get wtCamUplinkSeam(): WtVideoUplinkSeam;
1042
1435
  private _jitterBufferTargetMs;
1043
1436
 
1044
1437
  private _capJitterBuffer;
@@ -1079,6 +1472,7 @@ declare class TransportSession {
1079
1472
 
1080
1473
  private _cleanupDataChannels;
1081
1474
  private _cleanupMedia;
1475
+
1082
1476
  private _send;
1083
1477
  private _setState;
1084
1478
 
@@ -1098,7 +1492,7 @@ declare class TransportSession {
1098
1492
 
1099
1493
  private _emitError;
1100
1494
 
1101
- reportAllocationFailure(error: Error, httpStatus?: number): void;
1495
+ reportAllocationFailure(error: Error, httpStatus?: number, code?: string): void;
1102
1496
  }
1103
1497
 
1104
1498
  declare class SessionDocumentImpl implements SessionDocument {
@@ -1156,6 +1550,12 @@ declare class SessionTextImpl implements SessionText {
1156
1550
  dispose(): void;
1157
1551
  }
1158
1552
 
1553
+ declare const STREAM_END: unique symbol;
1554
+
1555
+ declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
1556
+
1557
+ declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
1558
+
1159
1559
  interface StreamDataTransport {
1160
1560
 
1161
1561
  readonly consumerId: string;
@@ -1187,4 +1587,4 @@ interface DataChannelTransport {
1187
1587
 
1188
1588
  declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
1189
1589
 
1190
- export { SessionDocumentImpl as $, type AccessTokenOptions$1 as A, type PrewakeResult as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type PrewakeStatus as E, type RecordingBucket as F, type RecordingLifecycle as G, type RecordingStatus as H, type InboundStatsSample as I, type RecordingsAccessor as J, type ReleaseSessionBeaconOptions as K, LoopbackStreamData as L, type MediaChunkBinding as M, type RequestOptions as N, type RequestStreamOptions as O, type Presence as P, type RuntimeArtifact as Q, type Recording as R, type RuntimeArtifactDownload as S, type RuntimeArtifactsAccessor as T, type RuntimeAvailability as U, type RuntimeWakeDetail as V, type RuntimeWakeGolden as W, type RuntimeWakeReasonCode as X, type Session as Y, type SessionDiagnostic as Z, type SessionDocument as _, type AccessTokenOptions as a, type SessionEndResult as a0, type SessionFailureKind as a1, type SessionPhase as a2, type SessionPhaseError as a3, type SessionPhaseName as a4, type SessionStartOptions as a5, type SessionStatsOptions as a6, type SessionStatsSample as a7, type SessionStatus as a8, type SessionStream as a9, type SessionText as aa, type Store as ab, type StoreOptions as ac, type StreamChunkOptions as ad, type StreamDataTransport as ae, TransportSession as af, type TransportSessionOptions as ag, type TransportState as ah, type VideoPlayoutOptions as ai, allocateSession as aj, createPresence as ak, createWebsocketDocConnector as al, deriveYjsServerUrl as am, derivedLegName as an, derivedLegRole as ao, isPendingRecording as ap, mediaRecorderChunkSource as aq, prewake as ar, releaseSessionBeacon as as, streamDataLabel as at, transportStreamData as au, type ActivationEvent as b, type ActivationState as c, type AllocateSessionOptions as d, type AllocatedSession as e, type App as f, type AppOptions as g, type AttachOptions as h, type AudioPlayoutOptions as i, type ChannelMessage as j, ChannelMultiplexer as k, type ChannelName as l, type ChunkReadable as m, DOC_SYNC_WIRE_CONTRACT_VERSION as n, DeferredChannelMultiplexer as o, DeferredDocConnector as p, type DerivedLegRole as q, type DocConnection as r, type DocConnectionState as s, type DocConnector as t, type DocTokenSupplier as u, type MediaChunkSource as v, type MediaChunkSourceFactory as w, type MediaRecorderChunkSourceOptions as x, type PresenceState as y, type PrewakeOptions as z };
1590
+ export { type RuntimeArtifact as $, type AccessTokenOptions$1 as A, type MediaChunkSource as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type MediaChunkSourceFactory as E, type MediaRecorderChunkSourceOptions as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, type MediaSession as H, type InboundStatsSample as I, type NegotiatorOptions as J, type PresenceState as K, LoopbackStreamData as L, type MediaChunkBinding as M, type NegotiatorDataLaneSeam as N, type PrewakeOptions as O, type Presence as P, type PrewakeResult as Q, type PrewakeStatus as R, type QuicStreamDataTransport as S, type Recording as T, type RecordingBucket as U, type RecordingLifecycle as V, type RecordingStatus as W, type RecordingsAccessor as X, type ReleaseSessionBeaconOptions as Y, type RequestOptions as Z, type RequestStreamOptions as _, type AccessTokenOptions as a, prewake as a$, type RuntimeArtifactDownload as a0, type RuntimeArtifactsAccessor as a1, type RuntimeAvailability as a2, type RuntimeWakeDetail as a3, type RuntimeWakeGolden as a4, type RuntimeWakeReasonCode as a5, SIGNALING_PROTOCOL_VERSION as a6, STREAM_END as a7, type Session as a8, type SessionDiagnostic as a9, type TransportState as aA, type VideoPlayoutOptions as aB, WT_CONTROL_FRAME_MAX as aC, WT_DATA_STREAM_VERSION as aD, type WatchGenerationTickOptions as aE, type WtAudioLaneSeam as aF, type WtAudioUplinkSeam as aG, WtControlDecoder as aH, type WtControlMessage as aI, type WtDataEnvelope as aJ, type WtDataLaneSink as aK, WtDataStreamParser as aL, WtDataUplinkSender as aM, type WtVideoUplinkSeam as aN, allocateSession as aO, consumeWtDataStreams as aP, createPresence as aQ, createWebsocketDocConnector as aR, decodeStreamEnvelope as aS, deriveYjsServerUrl as aT, derivedLegName as aU, derivedLegRole as aV, encodeStreamEnvelope as aW, encodeWtControlFrame as aX, isPendingRecording as aY, mediaRecorderChunkSource as aZ, parseDgramHeader as a_, type SessionDocument as aa, SessionDocumentImpl as ab, type SessionEndResult as ac, type SessionFailureKind as ad, type SessionPhase as ae, type SessionPhaseError as af, type SessionPhaseName as ag, type SessionStartOptions as ah, type SessionStatsOptions as ai, type SessionStatsSample as aj, type SessionStatus as ak, type SessionStream as al, type SessionText as am, type SignalCarrier as an, type Signaling as ao, type Store as ap, type StoreOptions as aq, type StreamChunkOptions as ar, type StreamDataTransport as as, type TransportEstablishedNotify as at, TransportNegotiator as au, type TransportOfferRequest as av, type TransportOfferResponse as aw, TransportSession as ax, type TransportSessionOptions as ay, TransportSessionSignaling as az, type ActivationEvent as b, releaseSessionBeacon as b0, streamDataLabel as b1, transportStreamData as b2, watchGenerationTick as b3, writeDgramHeader as b4, type ActivationState as c, type AllocateSessionOptions as d, type AllocatedSession as e, type App as f, type AppOptions as g, type AttachOptions as h, type AudioPlayoutOptions as i, type ChannelMessage as j, ChannelMultiplexer as k, type ChannelName as l, type ChunkReadable as m, DGRAM_HEADER_BYTES as n, DOC_SYNC_WIRE_CONTRACT_VERSION as o, DeferredChannelMultiplexer as p, DeferredDocConnector as q, type DerivedLegRole as r, type DgramHeader as s, type DocConnection as t, type DocConnectionState as u, type DocConnector as v, type DocServerUrlResolver as w, type DocTokenSupplier as x, GENERATION_TICK_MAX_EXTRAPOLATION_MS as y, type GenerationTick as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urun-sh/core",
3
- "version": "0.2.60",
3
+ "version": "0.3.1",
4
4
  "description": "Core transport and channel primitives for the urun TypeScript SDK",
5
5
  "repository": {
6
6
  "type": "git",