@urun-sh/core 0.3.0 → 0.3.2
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-PWRSYBG2.mjs +8 -0
- package/dist/chunk-TYT5X4G2.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-Bl4UHVAa.d.mts} +55 -7
- package/dist/{stream-data-ChGPDdoN.d.ts → stream-data-Bl4UHVAa.d.ts} +55 -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-PWRSYBG2.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 {
|
|
@@ -723,6 +754,8 @@ interface ReleaseSessionBeaconOptions {
|
|
|
723
754
|
|
|
724
755
|
jwt?: string;
|
|
725
756
|
authProvider?: string;
|
|
757
|
+
|
|
758
|
+
reason?: string;
|
|
726
759
|
}
|
|
727
760
|
|
|
728
761
|
declare function releaseSessionBeacon(options: ReleaseSessionBeaconOptions): void;
|
|
@@ -890,9 +923,11 @@ interface Signaling {
|
|
|
890
923
|
|
|
891
924
|
interface SignalCarrier {
|
|
892
925
|
|
|
893
|
-
sendSignal(msg: Record<string, unknown>):
|
|
926
|
+
sendSignal(msg: Record<string, unknown>): boolean;
|
|
894
927
|
|
|
895
928
|
onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
|
|
929
|
+
|
|
930
|
+
emitDiagnostic(diagnostic: SessionDiagnostic): void;
|
|
896
931
|
}
|
|
897
932
|
declare class TransportSessionSignaling implements Signaling {
|
|
898
933
|
private carrier;
|
|
@@ -1230,7 +1265,9 @@ declare class TransportSession {
|
|
|
1230
1265
|
|
|
1231
1266
|
private _selectedCandidatePair;
|
|
1232
1267
|
|
|
1233
|
-
private
|
|
1268
|
+
private _reportedCandidatePairKey;
|
|
1269
|
+
|
|
1270
|
+
private _candidatePairRefreshSeq;
|
|
1234
1271
|
|
|
1235
1272
|
private _diagnosticSinkFailed;
|
|
1236
1273
|
|
|
@@ -1274,6 +1311,8 @@ declare class TransportSession {
|
|
|
1274
1311
|
|
|
1275
1312
|
get connectedUrl(): string | null;
|
|
1276
1313
|
|
|
1314
|
+
get intentionalDisconnect(): boolean;
|
|
1315
|
+
|
|
1277
1316
|
getTrackByName(name: string): MediaStreamTrack | undefined;
|
|
1278
1317
|
|
|
1279
1318
|
private _streamNameOf;
|
|
@@ -1298,10 +1337,12 @@ declare class TransportSession {
|
|
|
1298
1337
|
private _emitDiagnostic;
|
|
1299
1338
|
sendInput(data: Record<string, unknown>, sequence?: number): void;
|
|
1300
1339
|
|
|
1301
|
-
sendSignal(msg: Record<string, unknown>):
|
|
1340
|
+
sendSignal(msg: Record<string, unknown>): boolean;
|
|
1302
1341
|
|
|
1303
1342
|
onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
|
|
1304
1343
|
|
|
1344
|
+
emitDiagnostic(diagnostic: SessionDiagnostic): void;
|
|
1345
|
+
|
|
1305
1346
|
onStreamData(name: string, handler: (payload: unknown) => void): () => void;
|
|
1306
1347
|
|
|
1307
1348
|
sendStreamData(name: string, payload: unknown, _options?: {
|
|
@@ -1433,6 +1474,7 @@ declare class TransportSession {
|
|
|
1433
1474
|
|
|
1434
1475
|
private _cleanupDataChannels;
|
|
1435
1476
|
private _cleanupMedia;
|
|
1477
|
+
|
|
1436
1478
|
private _send;
|
|
1437
1479
|
private _setState;
|
|
1438
1480
|
|
|
@@ -1452,7 +1494,7 @@ declare class TransportSession {
|
|
|
1452
1494
|
|
|
1453
1495
|
private _emitError;
|
|
1454
1496
|
|
|
1455
|
-
reportAllocationFailure(error: Error, httpStatus?: number): void;
|
|
1497
|
+
reportAllocationFailure(error: Error, httpStatus?: number, code?: string): void;
|
|
1456
1498
|
}
|
|
1457
1499
|
|
|
1458
1500
|
declare class SessionDocumentImpl implements SessionDocument {
|
|
@@ -1510,6 +1552,12 @@ declare class SessionTextImpl implements SessionText {
|
|
|
1510
1552
|
dispose(): void;
|
|
1511
1553
|
}
|
|
1512
1554
|
|
|
1555
|
+
declare const STREAM_END: unique symbol;
|
|
1556
|
+
|
|
1557
|
+
declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
|
|
1558
|
+
|
|
1559
|
+
declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
|
|
1560
|
+
|
|
1513
1561
|
interface StreamDataTransport {
|
|
1514
1562
|
|
|
1515
1563
|
readonly consumerId: string;
|
|
@@ -1541,4 +1589,4 @@ interface DataChannelTransport {
|
|
|
1541
1589
|
|
|
1542
1590
|
declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
|
|
1543
1591
|
|
|
1544
|
-
export { type
|
|
1592
|
+
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 {
|
|
@@ -723,6 +754,8 @@ interface ReleaseSessionBeaconOptions {
|
|
|
723
754
|
|
|
724
755
|
jwt?: string;
|
|
725
756
|
authProvider?: string;
|
|
757
|
+
|
|
758
|
+
reason?: string;
|
|
726
759
|
}
|
|
727
760
|
|
|
728
761
|
declare function releaseSessionBeacon(options: ReleaseSessionBeaconOptions): void;
|
|
@@ -890,9 +923,11 @@ interface Signaling {
|
|
|
890
923
|
|
|
891
924
|
interface SignalCarrier {
|
|
892
925
|
|
|
893
|
-
sendSignal(msg: Record<string, unknown>):
|
|
926
|
+
sendSignal(msg: Record<string, unknown>): boolean;
|
|
894
927
|
|
|
895
928
|
onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
|
|
929
|
+
|
|
930
|
+
emitDiagnostic(diagnostic: SessionDiagnostic): void;
|
|
896
931
|
}
|
|
897
932
|
declare class TransportSessionSignaling implements Signaling {
|
|
898
933
|
private carrier;
|
|
@@ -1230,7 +1265,9 @@ declare class TransportSession {
|
|
|
1230
1265
|
|
|
1231
1266
|
private _selectedCandidatePair;
|
|
1232
1267
|
|
|
1233
|
-
private
|
|
1268
|
+
private _reportedCandidatePairKey;
|
|
1269
|
+
|
|
1270
|
+
private _candidatePairRefreshSeq;
|
|
1234
1271
|
|
|
1235
1272
|
private _diagnosticSinkFailed;
|
|
1236
1273
|
|
|
@@ -1274,6 +1311,8 @@ declare class TransportSession {
|
|
|
1274
1311
|
|
|
1275
1312
|
get connectedUrl(): string | null;
|
|
1276
1313
|
|
|
1314
|
+
get intentionalDisconnect(): boolean;
|
|
1315
|
+
|
|
1277
1316
|
getTrackByName(name: string): MediaStreamTrack | undefined;
|
|
1278
1317
|
|
|
1279
1318
|
private _streamNameOf;
|
|
@@ -1298,10 +1337,12 @@ declare class TransportSession {
|
|
|
1298
1337
|
private _emitDiagnostic;
|
|
1299
1338
|
sendInput(data: Record<string, unknown>, sequence?: number): void;
|
|
1300
1339
|
|
|
1301
|
-
sendSignal(msg: Record<string, unknown>):
|
|
1340
|
+
sendSignal(msg: Record<string, unknown>): boolean;
|
|
1302
1341
|
|
|
1303
1342
|
onSignal(handler: (msg: Record<string, unknown>) => void): () => void;
|
|
1304
1343
|
|
|
1344
|
+
emitDiagnostic(diagnostic: SessionDiagnostic): void;
|
|
1345
|
+
|
|
1305
1346
|
onStreamData(name: string, handler: (payload: unknown) => void): () => void;
|
|
1306
1347
|
|
|
1307
1348
|
sendStreamData(name: string, payload: unknown, _options?: {
|
|
@@ -1433,6 +1474,7 @@ declare class TransportSession {
|
|
|
1433
1474
|
|
|
1434
1475
|
private _cleanupDataChannels;
|
|
1435
1476
|
private _cleanupMedia;
|
|
1477
|
+
|
|
1436
1478
|
private _send;
|
|
1437
1479
|
private _setState;
|
|
1438
1480
|
|
|
@@ -1452,7 +1494,7 @@ declare class TransportSession {
|
|
|
1452
1494
|
|
|
1453
1495
|
private _emitError;
|
|
1454
1496
|
|
|
1455
|
-
reportAllocationFailure(error: Error, httpStatus?: number): void;
|
|
1497
|
+
reportAllocationFailure(error: Error, httpStatus?: number, code?: string): void;
|
|
1456
1498
|
}
|
|
1457
1499
|
|
|
1458
1500
|
declare class SessionDocumentImpl implements SessionDocument {
|
|
@@ -1510,6 +1552,12 @@ declare class SessionTextImpl implements SessionText {
|
|
|
1510
1552
|
dispose(): void;
|
|
1511
1553
|
}
|
|
1512
1554
|
|
|
1555
|
+
declare const STREAM_END: unique symbol;
|
|
1556
|
+
|
|
1557
|
+
declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
|
|
1558
|
+
|
|
1559
|
+
declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
|
|
1560
|
+
|
|
1513
1561
|
interface StreamDataTransport {
|
|
1514
1562
|
|
|
1515
1563
|
readonly consumerId: string;
|
|
@@ -1541,4 +1589,4 @@ interface DataChannelTransport {
|
|
|
1541
1589
|
|
|
1542
1590
|
declare function transportStreamData(transport: DataChannelTransport): StreamDataTransport;
|
|
1543
1591
|
|
|
1544
|
-
export { type
|
|
1592
|
+
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 };
|