@urun-sh/core 0.3.0 → 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.
- package/CHANGELOG.md +75 -0
- package/dist/chunk-CVMFNMRA.mjs +8 -0
- package/dist/chunk-JQPCE4OM.mjs +3 -0
- package/dist/index.browser.d.mts +200 -3
- package/dist/index.browser.d.ts +200 -3
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +200 -3
- package/dist/index.d.ts +200 -3
- 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 +5 -5
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-ChGPDdoN.d.mts → stream-data-BJoG7tYI.d.mts} +53 -7
- package/dist/{stream-data-ChGPDdoN.d.ts → stream-data-BJoG7tYI.d.ts} +53 -7
- package/package.json +1 -1
- package/dist/chunk-QXEFXELS.mjs +0 -3
- package/dist/chunk-WRCXYQH2.mjs +0 -8
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{$ as
|
|
2
|
+
import{$ as f,G as r,J as t,K as n,L as a,M as s,R as p,S as c,T as l,Y as m,Z as i,_ as S,a as e,aa as x,b as o,ba as C,ca as D}from"./chunk-CVMFNMRA.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,r as allocateSession,D as createPresence,f as createWebsocketDocConnector,S as deriveYjsServerUrl,s as ensureNodeWebRTC,t as isNodeRuntime,n as nodeMediasoupHandlerName,a as nodeWebRTCUnavailableReason,l as streamDataLabel,c as transportStreamData};
|
|
@@ -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;
|
|
@@ -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
|
|
|
@@ -483,6 +504,8 @@ interface Session {
|
|
|
483
504
|
|
|
484
505
|
onStats?(handler: (sample: SessionStatsSample) => void): () => void;
|
|
485
506
|
|
|
507
|
+
on(event: 'generationTick', handler: (tick: GenerationTick) => void): () => void;
|
|
508
|
+
|
|
486
509
|
whenLive(options?: {
|
|
487
510
|
timeout?: number;
|
|
488
511
|
signal?: AbortSignal;
|
|
@@ -642,9 +665,15 @@ interface App {
|
|
|
642
665
|
[fnName: string]: (args?: Record<string, unknown>) => Session;
|
|
643
666
|
}
|
|
644
667
|
|
|
645
|
-
type SessionGatewayStatus = 'allocated' | 'pending' | 'queued' | 'rejected' | 'failed' | 'canceled'
|
|
668
|
+
type SessionGatewayStatus = 'allocated' | 'pending' | 'queued' | 'rejected' | 'failed' | 'canceled'
|
|
669
|
+
|
|
670
|
+
| 'redirect';
|
|
646
671
|
interface SessionGatewayResponse {
|
|
647
672
|
status?: SessionGatewayStatus;
|
|
673
|
+
|
|
674
|
+
location?: string;
|
|
675
|
+
|
|
676
|
+
session_api_base?: string;
|
|
648
677
|
request_id?: string;
|
|
649
678
|
session_id?: string;
|
|
650
679
|
ws_url?: string;
|
|
@@ -667,6 +696,8 @@ interface SessionGatewayResponse {
|
|
|
667
696
|
|
|
668
697
|
message?: string;
|
|
669
698
|
error?: string;
|
|
699
|
+
|
|
700
|
+
balance_credits?: number;
|
|
670
701
|
}
|
|
671
702
|
|
|
672
703
|
interface AdmissionUpdate {
|
|
@@ -890,9 +921,11 @@ interface Signaling {
|
|
|
890
921
|
|
|
891
922
|
interface SignalCarrier {
|
|
892
923
|
|
|
893
|
-
sendSignal(msg: Record<string, unknown>):
|
|
924
|
+
sendSignal(msg: Record<string, unknown>): boolean;
|
|
894
925
|
|
|
895
926
|
onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
|
|
927
|
+
|
|
928
|
+
emitDiagnostic(diagnostic: SessionDiagnostic): void;
|
|
896
929
|
}
|
|
897
930
|
declare class TransportSessionSignaling implements Signaling {
|
|
898
931
|
private carrier;
|
|
@@ -1230,7 +1263,9 @@ declare class TransportSession {
|
|
|
1230
1263
|
|
|
1231
1264
|
private _selectedCandidatePair;
|
|
1232
1265
|
|
|
1233
|
-
private
|
|
1266
|
+
private _reportedCandidatePairKey;
|
|
1267
|
+
|
|
1268
|
+
private _candidatePairRefreshSeq;
|
|
1234
1269
|
|
|
1235
1270
|
private _diagnosticSinkFailed;
|
|
1236
1271
|
|
|
@@ -1274,6 +1309,8 @@ declare class TransportSession {
|
|
|
1274
1309
|
|
|
1275
1310
|
get connectedUrl(): string | null;
|
|
1276
1311
|
|
|
1312
|
+
get intentionalDisconnect(): boolean;
|
|
1313
|
+
|
|
1277
1314
|
getTrackByName(name: string): MediaStreamTrack | undefined;
|
|
1278
1315
|
|
|
1279
1316
|
private _streamNameOf;
|
|
@@ -1298,10 +1335,12 @@ declare class TransportSession {
|
|
|
1298
1335
|
private _emitDiagnostic;
|
|
1299
1336
|
sendInput(data: Record<string, unknown>, sequence?: number): void;
|
|
1300
1337
|
|
|
1301
|
-
sendSignal(msg: Record<string, unknown>):
|
|
1338
|
+
sendSignal(msg: Record<string, unknown>): boolean;
|
|
1302
1339
|
|
|
1303
1340
|
onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
|
|
1304
1341
|
|
|
1342
|
+
emitDiagnostic(diagnostic: SessionDiagnostic): void;
|
|
1343
|
+
|
|
1305
1344
|
onStreamData(name: string, handler: (payload: unknown) => void): () => void;
|
|
1306
1345
|
|
|
1307
1346
|
sendStreamData(name: string, payload: unknown, _options?: {
|
|
@@ -1433,6 +1472,7 @@ declare class TransportSession {
|
|
|
1433
1472
|
|
|
1434
1473
|
private _cleanupDataChannels;
|
|
1435
1474
|
private _cleanupMedia;
|
|
1475
|
+
|
|
1436
1476
|
private _send;
|
|
1437
1477
|
private _setState;
|
|
1438
1478
|
|
|
@@ -1452,7 +1492,7 @@ declare class TransportSession {
|
|
|
1452
1492
|
|
|
1453
1493
|
private _emitError;
|
|
1454
1494
|
|
|
1455
|
-
reportAllocationFailure(error: Error, httpStatus?: number): void;
|
|
1495
|
+
reportAllocationFailure(error: Error, httpStatus?: number, code?: string): void;
|
|
1456
1496
|
}
|
|
1457
1497
|
|
|
1458
1498
|
declare class SessionDocumentImpl implements SessionDocument {
|
|
@@ -1510,6 +1550,12 @@ declare class SessionTextImpl implements SessionText {
|
|
|
1510
1550
|
dispose(): void;
|
|
1511
1551
|
}
|
|
1512
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
|
+
|
|
1513
1559
|
interface StreamDataTransport {
|
|
1514
1560
|
|
|
1515
1561
|
readonly consumerId: string;
|
|
@@ -1541,4 +1587,4 @@ interface DataChannelTransport {
|
|
|
1541
1587
|
|
|
1542
1588
|
declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
|
|
1543
1589
|
|
|
1544
|
-
export { type
|
|
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 };
|
|
@@ -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;
|
|
@@ -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
|
|
|
@@ -483,6 +504,8 @@ interface Session {
|
|
|
483
504
|
|
|
484
505
|
onStats?(handler: (sample: SessionStatsSample) => void): () => void;
|
|
485
506
|
|
|
507
|
+
on(event: 'generationTick', handler: (tick: GenerationTick) => void): () => void;
|
|
508
|
+
|
|
486
509
|
whenLive(options?: {
|
|
487
510
|
timeout?: number;
|
|
488
511
|
signal?: AbortSignal;
|
|
@@ -642,9 +665,15 @@ interface App {
|
|
|
642
665
|
[fnName: string]: (args?: Record<string, unknown>) => Session;
|
|
643
666
|
}
|
|
644
667
|
|
|
645
|
-
type SessionGatewayStatus = 'allocated' | 'pending' | 'queued' | 'rejected' | 'failed' | 'canceled'
|
|
668
|
+
type SessionGatewayStatus = 'allocated' | 'pending' | 'queued' | 'rejected' | 'failed' | 'canceled'
|
|
669
|
+
|
|
670
|
+
| 'redirect';
|
|
646
671
|
interface SessionGatewayResponse {
|
|
647
672
|
status?: SessionGatewayStatus;
|
|
673
|
+
|
|
674
|
+
location?: string;
|
|
675
|
+
|
|
676
|
+
session_api_base?: string;
|
|
648
677
|
request_id?: string;
|
|
649
678
|
session_id?: string;
|
|
650
679
|
ws_url?: string;
|
|
@@ -667,6 +696,8 @@ interface SessionGatewayResponse {
|
|
|
667
696
|
|
|
668
697
|
message?: string;
|
|
669
698
|
error?: string;
|
|
699
|
+
|
|
700
|
+
balance_credits?: number;
|
|
670
701
|
}
|
|
671
702
|
|
|
672
703
|
interface AdmissionUpdate {
|
|
@@ -890,9 +921,11 @@ interface Signaling {
|
|
|
890
921
|
|
|
891
922
|
interface SignalCarrier {
|
|
892
923
|
|
|
893
|
-
sendSignal(msg: Record<string, unknown>):
|
|
924
|
+
sendSignal(msg: Record<string, unknown>): boolean;
|
|
894
925
|
|
|
895
926
|
onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
|
|
927
|
+
|
|
928
|
+
emitDiagnostic(diagnostic: SessionDiagnostic): void;
|
|
896
929
|
}
|
|
897
930
|
declare class TransportSessionSignaling implements Signaling {
|
|
898
931
|
private carrier;
|
|
@@ -1230,7 +1263,9 @@ declare class TransportSession {
|
|
|
1230
1263
|
|
|
1231
1264
|
private _selectedCandidatePair;
|
|
1232
1265
|
|
|
1233
|
-
private
|
|
1266
|
+
private _reportedCandidatePairKey;
|
|
1267
|
+
|
|
1268
|
+
private _candidatePairRefreshSeq;
|
|
1234
1269
|
|
|
1235
1270
|
private _diagnosticSinkFailed;
|
|
1236
1271
|
|
|
@@ -1274,6 +1309,8 @@ declare class TransportSession {
|
|
|
1274
1309
|
|
|
1275
1310
|
get connectedUrl(): string | null;
|
|
1276
1311
|
|
|
1312
|
+
get intentionalDisconnect(): boolean;
|
|
1313
|
+
|
|
1277
1314
|
getTrackByName(name: string): MediaStreamTrack | undefined;
|
|
1278
1315
|
|
|
1279
1316
|
private _streamNameOf;
|
|
@@ -1298,10 +1335,12 @@ declare class TransportSession {
|
|
|
1298
1335
|
private _emitDiagnostic;
|
|
1299
1336
|
sendInput(data: Record<string, unknown>, sequence?: number): void;
|
|
1300
1337
|
|
|
1301
|
-
sendSignal(msg: Record<string, unknown>):
|
|
1338
|
+
sendSignal(msg: Record<string, unknown>): boolean;
|
|
1302
1339
|
|
|
1303
1340
|
onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
|
|
1304
1341
|
|
|
1342
|
+
emitDiagnostic(diagnostic: SessionDiagnostic): void;
|
|
1343
|
+
|
|
1305
1344
|
onStreamData(name: string, handler: (payload: unknown) => void): () => void;
|
|
1306
1345
|
|
|
1307
1346
|
sendStreamData(name: string, payload: unknown, _options?: {
|
|
@@ -1433,6 +1472,7 @@ declare class TransportSession {
|
|
|
1433
1472
|
|
|
1434
1473
|
private _cleanupDataChannels;
|
|
1435
1474
|
private _cleanupMedia;
|
|
1475
|
+
|
|
1436
1476
|
private _send;
|
|
1437
1477
|
private _setState;
|
|
1438
1478
|
|
|
@@ -1452,7 +1492,7 @@ declare class TransportSession {
|
|
|
1452
1492
|
|
|
1453
1493
|
private _emitError;
|
|
1454
1494
|
|
|
1455
|
-
reportAllocationFailure(error: Error, httpStatus?: number): void;
|
|
1495
|
+
reportAllocationFailure(error: Error, httpStatus?: number, code?: string): void;
|
|
1456
1496
|
}
|
|
1457
1497
|
|
|
1458
1498
|
declare class SessionDocumentImpl implements SessionDocument {
|
|
@@ -1510,6 +1550,12 @@ declare class SessionTextImpl implements SessionText {
|
|
|
1510
1550
|
dispose(): void;
|
|
1511
1551
|
}
|
|
1512
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
|
+
|
|
1513
1559
|
interface StreamDataTransport {
|
|
1514
1560
|
|
|
1515
1561
|
readonly consumerId: string;
|
|
@@ -1541,4 +1587,4 @@ interface DataChannelTransport {
|
|
|
1541
1587
|
|
|
1542
1588
|
declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
|
|
1543
1589
|
|
|
1544
|
-
export { type
|
|
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 };
|