@urun-sh/core 0.6.35 → 0.6.36
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 +12 -0
- package/dist/adapter/index.js +2 -2
- package/dist/adapter/index.mjs +1 -1
- package/dist/{app-GEWRPB7Q.mjs → app-U7LBEKWS.mjs} +1 -1
- package/dist/{backoff-CyVkhffu.d.ts → backoff-C36bg4oV.d.mts} +31 -2
- package/dist/{backoff--nkq_Dka.d.mts → backoff-C36bg4oV.d.ts} +31 -2
- package/dist/{backoff--nkq_Dka.d.ts → backoff-C60lcU4l.d.mts} +31 -2
- package/dist/{backoff-CyVkhffu.d.mts → backoff-C60lcU4l.d.ts} +31 -2
- package/dist/{chunk-H6RKAM2X.mjs → chunk-N7XWLJO5.mjs} +1 -1
- package/dist/{chunk-2W2Z5DN7.mjs → chunk-VHDCUDOI.mjs} +2 -2
- package/dist/{chunk-O6Z5YCMX.mjs → chunk-W52BJWP6.mjs} +2 -2
- package/dist/index.browser.d.mts +2 -2
- package/dist/index.browser.d.ts +2 -2
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +1 -1
- package/dist/internal.browser.d.mts +56 -2
- package/dist/internal.browser.d.ts +56 -2
- package/dist/internal.browser.js +2 -2
- package/dist/internal.browser.mjs +1 -1
- package/dist/internal.d.mts +56 -2
- package/dist/internal.d.ts +56 -2
- package/dist/internal.js +5 -5
- package/dist/internal.mjs +1 -1
- package/package.json +1 -1
package/dist/adapter/index.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"../chunk-NLAOQUYQ.mjs";var p="serve";function d(n,o){let e=`[urun/${o.adapter}]`,r=n.baseUrl!==void 0||n.orgId!==void 0||n.app!==void 0||n.functionName!==void 0;if(n.session&&r)throw new Error(`${e} pass EITHER a \`session\` (BYO) OR connection settings (\`baseUrl\`/\`orgId\`/\`app\`) \u2014 not both.`);let u,c=()=>{if(n.session){let s=n.session;return Promise.resolve(typeof s=="function"?s():s)}let{baseUrl:i,orgId:t,app:a}=n;if(!i||!t||!a)throw new Error(`${e} missing connection settings: \`baseUrl\`, \`orgId\` and \`app\` are required (or pass a \`session\`).`);return l({...n,baseUrl:i,orgId:t,app:a})};return()=>u??=c()}async function l(n){let{App:o}=await import("../app-
|
|
2
|
+
import"../chunk-NLAOQUYQ.mjs";var p="serve";function d(n,o){let e=`[urun/${o.adapter}]`,r=n.baseUrl!==void 0||n.orgId!==void 0||n.app!==void 0||n.functionName!==void 0;if(n.session&&r)throw new Error(`${e} pass EITHER a \`session\` (BYO) OR connection settings (\`baseUrl\`/\`orgId\`/\`app\`) \u2014 not both.`);let u,c=()=>{if(n.session){let s=n.session;return Promise.resolve(typeof s=="function"?s():s)}let{baseUrl:i,orgId:t,app:a}=n;if(!i||!t||!a)throw new Error(`${e} missing connection settings: \`baseUrl\`, \`orgId\` and \`app\` are required (or pass a \`session\`).`);return l({...n,baseUrl:i,orgId:t,app:a})};return()=>u??=c()}async function l(n){let{App:o}=await import("../app-U7LBEKWS.mjs"),e=o(n.app,{baseUrl:n.baseUrl,orgId:n.orgId,jwt:n.jwt,getAccessToken:n.getAccessToken,authProvider:n.authProvider}),r=n.functionName??p;return e[r]()}export{d as createSessionResolver};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
|
|
2
|
-
import{ea as a,fa as b}from"./chunk-
|
|
2
|
+
import{ea as a,fa as b}from"./chunk-VHDCUDOI.mjs";import"./chunk-N7XWLJO5.mjs";import"./chunk-NLAOQUYQ.mjs";export{b as App,a as sessionDirectory};
|
|
@@ -83,6 +83,9 @@ interface SessionGatewayResponse {
|
|
|
83
83
|
|
|
84
84
|
runtime_reason?: string;
|
|
85
85
|
|
|
86
|
+
runtime_ready?: boolean;
|
|
87
|
+
runtime_status?: string;
|
|
88
|
+
|
|
86
89
|
reason?: string;
|
|
87
90
|
|
|
88
91
|
decision_reason?: string;
|
|
@@ -127,6 +130,10 @@ interface AdmissionUpdate {
|
|
|
127
130
|
refusalMessage?: string;
|
|
128
131
|
|
|
129
132
|
region?: string | null;
|
|
133
|
+
|
|
134
|
+
runtimeReady?: boolean;
|
|
135
|
+
|
|
136
|
+
runtimeStatus?: 'unbound' | 'starting' | 'ready';
|
|
130
137
|
}
|
|
131
138
|
interface AllocateSessionOptions {
|
|
132
139
|
baseUrl: string;
|
|
@@ -323,7 +330,9 @@ declare function createPresence(awareness: Awareness): Presence;
|
|
|
323
330
|
|
|
324
331
|
type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
|
|
325
332
|
|
|
326
|
-
type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
|
|
333
|
+
type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
|
|
334
|
+
|
|
335
|
+
| 'degraded' | 'paused' | 'error' | 'unknown';
|
|
327
336
|
|
|
328
337
|
interface RuntimeAvailability {
|
|
329
338
|
state: 'unavailable' | 'starting' | 'busy';
|
|
@@ -1239,6 +1248,8 @@ interface AudioBufferSourceLike {
|
|
|
1239
1248
|
buffer: AudioBufferLike | null;
|
|
1240
1249
|
connect(node: unknown): void;
|
|
1241
1250
|
start(when: number): void;
|
|
1251
|
+
stop(when?: number): void;
|
|
1252
|
+
onended?: ((this: never, ev: never) => void) | null;
|
|
1242
1253
|
}
|
|
1243
1254
|
|
|
1244
1255
|
interface WtDataUplinkTransport {
|
|
@@ -1818,12 +1829,30 @@ declare class SessionTextImpl implements SessionText {
|
|
|
1818
1829
|
dispose(): void;
|
|
1819
1830
|
}
|
|
1820
1831
|
|
|
1832
|
+
declare const ENVELOPE_KIND: {
|
|
1833
|
+
readonly BINARY: 0;
|
|
1834
|
+
readonly TEXT: 1;
|
|
1835
|
+
readonly JSON: 2;
|
|
1836
|
+
readonly END: 3;
|
|
1837
|
+
|
|
1838
|
+
readonly CHUNK: 4;
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1821
1841
|
declare const STREAM_END: unique symbol;
|
|
1822
1842
|
|
|
1823
1843
|
declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
|
|
1824
1844
|
|
|
1845
|
+
declare function encodeStreamFragments(payload: unknown): Uint8Array[];
|
|
1846
|
+
|
|
1825
1847
|
declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
|
|
1826
1848
|
|
|
1849
|
+
declare class StreamFragmentReassembler {
|
|
1850
|
+
private _chunks;
|
|
1851
|
+
private _bufferedLength;
|
|
1852
|
+
|
|
1853
|
+
feed(frame: Uint8Array | ArrayBuffer): unknown;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1827
1856
|
interface StreamDataTransport {
|
|
1828
1857
|
|
|
1829
1858
|
readonly consumerId: string;
|
|
@@ -1865,4 +1894,4 @@ declare function computeBackoffDelay(attempt: number, random?: () => number): nu
|
|
|
1865
1894
|
|
|
1866
1895
|
declare function isRetryableSessionError(error: unknown): boolean;
|
|
1867
1896
|
|
|
1868
|
-
export { type
|
|
1897
|
+
export { type RecordingBucket as $, type AccessTokenOptions$1 as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, ENVELOPE_KIND as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, GENERATION_TICK_MAX_EXTRAPOLATION_MS as H, type GenerationTick as I, type InboundStatsSample as J, type MediaChunkSource as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaChunkSourceFactory as N, type MediaRecorderChunkSourceOptions as O, type MediaSession as P, type NegotiatorDataLaneSeam as Q, type NegotiatorOptions as R, type PathHealthReporting as S, type PathLiveness as T, type Presence as U, type PresenceState as V, type PrewakeOptions as W, type PrewakeResult as X, type PrewakeStatus as Y, type QuicStreamDataTransport as Z, type Recording as _, type AccessTokenOptions as a, computeBackoffDelay as a$, type RecordingLifecycle as a0, type RecordingStatus as a1, type RecordingsAccessor as a2, type ReleaseSessionBeaconOptions as a3, type RequestOptions as a4, type RequestStreamOptions as a5, type RuntimeArtifact as a6, type RuntimeArtifactDownload as a7, type RuntimeArtifactsAccessor as a8, type RuntimeAvailability as a9, type Store as aA, type StoreOptions as aB, type StreamChunkOptions as aC, type StreamDataTransport as aD, StreamFragmentReassembler as aE, type TransportEstablishedNotify as aF, TransportNegotiator as aG, type TransportOfferRequest as aH, type TransportOfferResponse as aI, TransportSession as aJ, type TransportSessionOptions as aK, TransportSessionSignaling as aL, type TransportState as aM, type VideoPlayoutOptions as aN, WT_CONTROL_FRAME_MAX as aO, WT_DATA_STREAM_VERSION as aP, type WatchGenerationTickOptions as aQ, type WtAudioLaneSeam as aR, type WtAudioUplinkSeam as aS, WtControlDecoder as aT, type WtControlMessage as aU, type WtDataEnvelope as aV, type WtDataLaneSink as aW, WtDataStreamParser as aX, WtDataUplinkSender as aY, type WtVideoUplinkSeam as aZ, allocateSession as a_, type RuntimeWakeDetail as aa, type RuntimeWakeGolden as ab, type RuntimeWakeReasonCode as ac, SIGNALING_PROTOCOL_VERSION as ad, STREAM_END as ae, type Session as af, type SessionDiagnostic as ag, type SessionDirectoryRequestOptions as ah, type SessionDocument as ai, SessionDocumentImpl as aj, type SessionEndResult as ak, type SessionFailureKind as al, type SessionNameSource as am, type SessionPhase as an, type SessionPhaseError as ao, type SessionPhaseName as ap, type SessionStartOptions as aq, type SessionStatsOptions as ar, type SessionStatsSample as as, type SessionStatus as at, type SessionStream as au, type SessionText as av, type SfuAttachCredential as aw, type SignalCarrier as ax, type Signaling as ay, type StartSessionOptions as az, type ActivationEvent as b, consumeWtDataStreams as b0, createPresence as b1, createWebsocketDocConnector as b2, decodeStreamEnvelope as b3, deriveYjsServerUrl as b4, derivedLegName as b5, derivedLegRole as b6, encodeStreamEnvelope as b7, encodeStreamFragments as b8, encodeWtControlFrame as b9, isPendingRecording as ba, isRetryableSessionError as bb, mediaRecorderChunkSource as bc, parseDgramHeader as bd, prewake as be, releaseSessionBeacon as bf, streamDataLabel as bg, transportStreamData as bh, watchGenerationTick as bi, writeDgramHeader as bj, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
|
|
@@ -83,6 +83,9 @@ interface SessionGatewayResponse {
|
|
|
83
83
|
|
|
84
84
|
runtime_reason?: string;
|
|
85
85
|
|
|
86
|
+
runtime_ready?: boolean;
|
|
87
|
+
runtime_status?: string;
|
|
88
|
+
|
|
86
89
|
reason?: string;
|
|
87
90
|
|
|
88
91
|
decision_reason?: string;
|
|
@@ -127,6 +130,10 @@ interface AdmissionUpdate {
|
|
|
127
130
|
refusalMessage?: string;
|
|
128
131
|
|
|
129
132
|
region?: string | null;
|
|
133
|
+
|
|
134
|
+
runtimeReady?: boolean;
|
|
135
|
+
|
|
136
|
+
runtimeStatus?: 'unbound' | 'starting' | 'ready';
|
|
130
137
|
}
|
|
131
138
|
interface AllocateSessionOptions {
|
|
132
139
|
baseUrl: string;
|
|
@@ -323,7 +330,9 @@ declare function createPresence(awareness: Awareness): Presence;
|
|
|
323
330
|
|
|
324
331
|
type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
|
|
325
332
|
|
|
326
|
-
type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
|
|
333
|
+
type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
|
|
334
|
+
|
|
335
|
+
| 'degraded' | 'paused' | 'error' | 'unknown';
|
|
327
336
|
|
|
328
337
|
interface RuntimeAvailability {
|
|
329
338
|
state: 'unavailable' | 'starting' | 'busy';
|
|
@@ -1239,6 +1248,8 @@ interface AudioBufferSourceLike {
|
|
|
1239
1248
|
buffer: AudioBufferLike | null;
|
|
1240
1249
|
connect(node: unknown): void;
|
|
1241
1250
|
start(when: number): void;
|
|
1251
|
+
stop(when?: number): void;
|
|
1252
|
+
onended?: ((this: never, ev: never) => void) | null;
|
|
1242
1253
|
}
|
|
1243
1254
|
|
|
1244
1255
|
interface WtDataUplinkTransport {
|
|
@@ -1818,12 +1829,30 @@ declare class SessionTextImpl implements SessionText {
|
|
|
1818
1829
|
dispose(): void;
|
|
1819
1830
|
}
|
|
1820
1831
|
|
|
1832
|
+
declare const ENVELOPE_KIND: {
|
|
1833
|
+
readonly BINARY: 0;
|
|
1834
|
+
readonly TEXT: 1;
|
|
1835
|
+
readonly JSON: 2;
|
|
1836
|
+
readonly END: 3;
|
|
1837
|
+
|
|
1838
|
+
readonly CHUNK: 4;
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1821
1841
|
declare const STREAM_END: unique symbol;
|
|
1822
1842
|
|
|
1823
1843
|
declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
|
|
1824
1844
|
|
|
1845
|
+
declare function encodeStreamFragments(payload: unknown): Uint8Array[];
|
|
1846
|
+
|
|
1825
1847
|
declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
|
|
1826
1848
|
|
|
1849
|
+
declare class StreamFragmentReassembler {
|
|
1850
|
+
private _chunks;
|
|
1851
|
+
private _bufferedLength;
|
|
1852
|
+
|
|
1853
|
+
feed(frame: Uint8Array | ArrayBuffer): unknown;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1827
1856
|
interface StreamDataTransport {
|
|
1828
1857
|
|
|
1829
1858
|
readonly consumerId: string;
|
|
@@ -1865,4 +1894,4 @@ declare function computeBackoffDelay(attempt: number, random?: () => number): nu
|
|
|
1865
1894
|
|
|
1866
1895
|
declare function isRetryableSessionError(error: unknown): boolean;
|
|
1867
1896
|
|
|
1868
|
-
export { type
|
|
1897
|
+
export { type RecordingBucket as $, type AccessTokenOptions$1 as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, ENVELOPE_KIND as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, GENERATION_TICK_MAX_EXTRAPOLATION_MS as H, type GenerationTick as I, type InboundStatsSample as J, type MediaChunkSource as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaChunkSourceFactory as N, type MediaRecorderChunkSourceOptions as O, type MediaSession as P, type NegotiatorDataLaneSeam as Q, type NegotiatorOptions as R, type PathHealthReporting as S, type PathLiveness as T, type Presence as U, type PresenceState as V, type PrewakeOptions as W, type PrewakeResult as X, type PrewakeStatus as Y, type QuicStreamDataTransport as Z, type Recording as _, type AccessTokenOptions as a, computeBackoffDelay as a$, type RecordingLifecycle as a0, type RecordingStatus as a1, type RecordingsAccessor as a2, type ReleaseSessionBeaconOptions as a3, type RequestOptions as a4, type RequestStreamOptions as a5, type RuntimeArtifact as a6, type RuntimeArtifactDownload as a7, type RuntimeArtifactsAccessor as a8, type RuntimeAvailability as a9, type Store as aA, type StoreOptions as aB, type StreamChunkOptions as aC, type StreamDataTransport as aD, StreamFragmentReassembler as aE, type TransportEstablishedNotify as aF, TransportNegotiator as aG, type TransportOfferRequest as aH, type TransportOfferResponse as aI, TransportSession as aJ, type TransportSessionOptions as aK, TransportSessionSignaling as aL, type TransportState as aM, type VideoPlayoutOptions as aN, WT_CONTROL_FRAME_MAX as aO, WT_DATA_STREAM_VERSION as aP, type WatchGenerationTickOptions as aQ, type WtAudioLaneSeam as aR, type WtAudioUplinkSeam as aS, WtControlDecoder as aT, type WtControlMessage as aU, type WtDataEnvelope as aV, type WtDataLaneSink as aW, WtDataStreamParser as aX, WtDataUplinkSender as aY, type WtVideoUplinkSeam as aZ, allocateSession as a_, type RuntimeWakeDetail as aa, type RuntimeWakeGolden as ab, type RuntimeWakeReasonCode as ac, SIGNALING_PROTOCOL_VERSION as ad, STREAM_END as ae, type Session as af, type SessionDiagnostic as ag, type SessionDirectoryRequestOptions as ah, type SessionDocument as ai, SessionDocumentImpl as aj, type SessionEndResult as ak, type SessionFailureKind as al, type SessionNameSource as am, type SessionPhase as an, type SessionPhaseError as ao, type SessionPhaseName as ap, type SessionStartOptions as aq, type SessionStatsOptions as ar, type SessionStatsSample as as, type SessionStatus as at, type SessionStream as au, type SessionText as av, type SfuAttachCredential as aw, type SignalCarrier as ax, type Signaling as ay, type StartSessionOptions as az, type ActivationEvent as b, consumeWtDataStreams as b0, createPresence as b1, createWebsocketDocConnector as b2, decodeStreamEnvelope as b3, deriveYjsServerUrl as b4, derivedLegName as b5, derivedLegRole as b6, encodeStreamEnvelope as b7, encodeStreamFragments as b8, encodeWtControlFrame as b9, isPendingRecording as ba, isRetryableSessionError as bb, mediaRecorderChunkSource as bc, parseDgramHeader as bd, prewake as be, releaseSessionBeacon as bf, streamDataLabel as bg, transportStreamData as bh, watchGenerationTick as bi, writeDgramHeader as bj, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
|
|
@@ -83,6 +83,9 @@ interface SessionGatewayResponse {
|
|
|
83
83
|
|
|
84
84
|
runtime_reason?: string;
|
|
85
85
|
|
|
86
|
+
runtime_ready?: boolean;
|
|
87
|
+
runtime_status?: string;
|
|
88
|
+
|
|
86
89
|
reason?: string;
|
|
87
90
|
|
|
88
91
|
decision_reason?: string;
|
|
@@ -127,6 +130,10 @@ interface AdmissionUpdate {
|
|
|
127
130
|
refusalMessage?: string;
|
|
128
131
|
|
|
129
132
|
region?: string | null;
|
|
133
|
+
|
|
134
|
+
runtimeReady?: boolean;
|
|
135
|
+
|
|
136
|
+
runtimeStatus?: 'unbound' | 'starting' | 'ready';
|
|
130
137
|
}
|
|
131
138
|
interface AllocateSessionOptions {
|
|
132
139
|
baseUrl: string;
|
|
@@ -323,7 +330,9 @@ declare function createPresence(awareness: Awareness): Presence;
|
|
|
323
330
|
|
|
324
331
|
type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
|
|
325
332
|
|
|
326
|
-
type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
|
|
333
|
+
type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
|
|
334
|
+
|
|
335
|
+
| 'degraded' | 'paused' | 'error' | 'unknown';
|
|
327
336
|
|
|
328
337
|
interface RuntimeAvailability {
|
|
329
338
|
state: 'unavailable' | 'starting' | 'busy';
|
|
@@ -1239,6 +1248,8 @@ interface AudioBufferSourceLike {
|
|
|
1239
1248
|
buffer: AudioBufferLike | null;
|
|
1240
1249
|
connect(node: unknown): void;
|
|
1241
1250
|
start(when: number): void;
|
|
1251
|
+
stop(when?: number): void;
|
|
1252
|
+
onended?: ((this: never, ev: never) => void) | null;
|
|
1242
1253
|
}
|
|
1243
1254
|
|
|
1244
1255
|
interface WtDataUplinkTransport {
|
|
@@ -1818,12 +1829,30 @@ declare class SessionTextImpl implements SessionText {
|
|
|
1818
1829
|
dispose(): void;
|
|
1819
1830
|
}
|
|
1820
1831
|
|
|
1832
|
+
declare const ENVELOPE_KIND: {
|
|
1833
|
+
readonly BINARY: 0;
|
|
1834
|
+
readonly TEXT: 1;
|
|
1835
|
+
readonly JSON: 2;
|
|
1836
|
+
readonly END: 3;
|
|
1837
|
+
|
|
1838
|
+
readonly CHUNK: 4;
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1821
1841
|
declare const STREAM_END: unique symbol;
|
|
1822
1842
|
|
|
1823
1843
|
declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
|
|
1824
1844
|
|
|
1845
|
+
declare function encodeStreamFragments(payload: unknown): Uint8Array[];
|
|
1846
|
+
|
|
1825
1847
|
declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
|
|
1826
1848
|
|
|
1849
|
+
declare class StreamFragmentReassembler {
|
|
1850
|
+
private _chunks;
|
|
1851
|
+
private _bufferedLength;
|
|
1852
|
+
|
|
1853
|
+
feed(frame: Uint8Array | ArrayBuffer): unknown;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1827
1856
|
interface StreamDataTransport {
|
|
1828
1857
|
|
|
1829
1858
|
readonly consumerId: string;
|
|
@@ -1865,4 +1894,4 @@ declare function computeBackoffDelay(attempt: number, random?: () => number): nu
|
|
|
1865
1894
|
|
|
1866
1895
|
declare function isRetryableSessionError(error: unknown): boolean;
|
|
1867
1896
|
|
|
1868
|
-
export { type
|
|
1897
|
+
export { type RecordingBucket as $, type AccessTokenOptions as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, ENVELOPE_KIND as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, GENERATION_TICK_MAX_EXTRAPOLATION_MS as H, type GenerationTick as I, type InboundStatsSample as J, type MediaChunkSource as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaChunkSourceFactory as N, type MediaRecorderChunkSourceOptions as O, type MediaSession as P, type NegotiatorDataLaneSeam as Q, type NegotiatorOptions as R, type PathHealthReporting as S, type PathLiveness as T, type Presence as U, type PresenceState as V, type PrewakeOptions as W, type PrewakeResult as X, type PrewakeStatus as Y, type QuicStreamDataTransport as Z, type Recording as _, type AccessTokenOptions$1 as a, computeBackoffDelay as a$, type RecordingLifecycle as a0, type RecordingStatus as a1, type RecordingsAccessor as a2, type ReleaseSessionBeaconOptions as a3, type RequestOptions as a4, type RequestStreamOptions as a5, type RuntimeArtifact as a6, type RuntimeArtifactDownload as a7, type RuntimeArtifactsAccessor as a8, type RuntimeAvailability as a9, type Store as aA, type StoreOptions as aB, type StreamChunkOptions as aC, type StreamDataTransport as aD, StreamFragmentReassembler as aE, type TransportEstablishedNotify as aF, TransportNegotiator as aG, type TransportOfferRequest as aH, type TransportOfferResponse as aI, TransportSession as aJ, type TransportSessionOptions as aK, TransportSessionSignaling as aL, type TransportState as aM, type VideoPlayoutOptions as aN, WT_CONTROL_FRAME_MAX as aO, WT_DATA_STREAM_VERSION as aP, type WatchGenerationTickOptions as aQ, type WtAudioLaneSeam as aR, type WtAudioUplinkSeam as aS, WtControlDecoder as aT, type WtControlMessage as aU, type WtDataEnvelope as aV, type WtDataLaneSink as aW, WtDataStreamParser as aX, WtDataUplinkSender as aY, type WtVideoUplinkSeam as aZ, allocateSession as a_, type RuntimeWakeDetail as aa, type RuntimeWakeGolden as ab, type RuntimeWakeReasonCode as ac, SIGNALING_PROTOCOL_VERSION as ad, STREAM_END as ae, type Session as af, type SessionDiagnostic as ag, type SessionDirectoryRequestOptions as ah, type SessionDocument as ai, SessionDocumentImpl as aj, type SessionEndResult as ak, type SessionFailureKind as al, type SessionNameSource as am, type SessionPhase as an, type SessionPhaseError as ao, type SessionPhaseName as ap, type SessionStartOptions as aq, type SessionStatsOptions as ar, type SessionStatsSample as as, type SessionStatus as at, type SessionStream as au, type SessionText as av, type SfuAttachCredential as aw, type SignalCarrier as ax, type Signaling as ay, type StartSessionOptions as az, type ActivationEvent as b, consumeWtDataStreams as b0, createPresence as b1, createWebsocketDocConnector as b2, decodeStreamEnvelope as b3, deriveYjsServerUrl as b4, derivedLegName as b5, derivedLegRole as b6, encodeStreamEnvelope as b7, encodeStreamFragments as b8, encodeWtControlFrame as b9, isPendingRecording as ba, isRetryableSessionError as bb, mediaRecorderChunkSource as bc, parseDgramHeader as bd, prewake as be, releaseSessionBeacon as bf, streamDataLabel as bg, transportStreamData as bh, watchGenerationTick as bi, writeDgramHeader as bj, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
|
|
@@ -83,6 +83,9 @@ interface SessionGatewayResponse {
|
|
|
83
83
|
|
|
84
84
|
runtime_reason?: string;
|
|
85
85
|
|
|
86
|
+
runtime_ready?: boolean;
|
|
87
|
+
runtime_status?: string;
|
|
88
|
+
|
|
86
89
|
reason?: string;
|
|
87
90
|
|
|
88
91
|
decision_reason?: string;
|
|
@@ -127,6 +130,10 @@ interface AdmissionUpdate {
|
|
|
127
130
|
refusalMessage?: string;
|
|
128
131
|
|
|
129
132
|
region?: string | null;
|
|
133
|
+
|
|
134
|
+
runtimeReady?: boolean;
|
|
135
|
+
|
|
136
|
+
runtimeStatus?: 'unbound' | 'starting' | 'ready';
|
|
130
137
|
}
|
|
131
138
|
interface AllocateSessionOptions {
|
|
132
139
|
baseUrl: string;
|
|
@@ -323,7 +330,9 @@ declare function createPresence(awareness: Awareness): Presence;
|
|
|
323
330
|
|
|
324
331
|
type TransportState = 'connecting' | 'connected' | 'reconnecting' | 'renegotiating' | 'disconnected' | 'failed';
|
|
325
332
|
|
|
326
|
-
type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
|
|
333
|
+
type SessionPhaseName = 'idle' | 'queued' | 'unavailable' | 'provisioning' | 'waiting_for_capacity' | 'connecting' | 'live'
|
|
334
|
+
|
|
335
|
+
| 'degraded' | 'paused' | 'error' | 'unknown';
|
|
327
336
|
|
|
328
337
|
interface RuntimeAvailability {
|
|
329
338
|
state: 'unavailable' | 'starting' | 'busy';
|
|
@@ -1239,6 +1248,8 @@ interface AudioBufferSourceLike {
|
|
|
1239
1248
|
buffer: AudioBufferLike | null;
|
|
1240
1249
|
connect(node: unknown): void;
|
|
1241
1250
|
start(when: number): void;
|
|
1251
|
+
stop(when?: number): void;
|
|
1252
|
+
onended?: ((this: never, ev: never) => void) | null;
|
|
1242
1253
|
}
|
|
1243
1254
|
|
|
1244
1255
|
interface WtDataUplinkTransport {
|
|
@@ -1818,12 +1829,30 @@ declare class SessionTextImpl implements SessionText {
|
|
|
1818
1829
|
dispose(): void;
|
|
1819
1830
|
}
|
|
1820
1831
|
|
|
1832
|
+
declare const ENVELOPE_KIND: {
|
|
1833
|
+
readonly BINARY: 0;
|
|
1834
|
+
readonly TEXT: 1;
|
|
1835
|
+
readonly JSON: 2;
|
|
1836
|
+
readonly END: 3;
|
|
1837
|
+
|
|
1838
|
+
readonly CHUNK: 4;
|
|
1839
|
+
};
|
|
1840
|
+
|
|
1821
1841
|
declare const STREAM_END: unique symbol;
|
|
1822
1842
|
|
|
1823
1843
|
declare function encodeStreamEnvelope(payload: unknown): Uint8Array;
|
|
1824
1844
|
|
|
1845
|
+
declare function encodeStreamFragments(payload: unknown): Uint8Array[];
|
|
1846
|
+
|
|
1825
1847
|
declare function decodeStreamEnvelope(frame: Uint8Array | ArrayBuffer): unknown;
|
|
1826
1848
|
|
|
1849
|
+
declare class StreamFragmentReassembler {
|
|
1850
|
+
private _chunks;
|
|
1851
|
+
private _bufferedLength;
|
|
1852
|
+
|
|
1853
|
+
feed(frame: Uint8Array | ArrayBuffer): unknown;
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1827
1856
|
interface StreamDataTransport {
|
|
1828
1857
|
|
|
1829
1858
|
readonly consumerId: string;
|
|
@@ -1865,4 +1894,4 @@ declare function computeBackoffDelay(attempt: number, random?: () => number): nu
|
|
|
1865
1894
|
|
|
1866
1895
|
declare function isRetryableSessionError(error: unknown): boolean;
|
|
1867
1896
|
|
|
1868
|
-
export { type
|
|
1897
|
+
export { type RecordingBucket as $, type AccessTokenOptions as A, BACKOFF_BASE_MS as B, type ChannelEndpoint as C, DERIVED_LEG_SEP as D, type DocTokenSupplier as E, ENVELOPE_KIND as F, GENERATION_TICK_EMIT_INTERVAL_MS as G, GENERATION_TICK_MAX_EXTRAPOLATION_MS as H, type GenerationTick as I, type InboundStatsSample as J, type MediaChunkSource as K, LoopbackStreamData as L, type MediaChunkBinding as M, type MediaChunkSourceFactory as N, type MediaRecorderChunkSourceOptions as O, type MediaSession as P, type NegotiatorDataLaneSeam as Q, type NegotiatorOptions as R, type PathHealthReporting as S, type PathLiveness as T, type Presence as U, type PresenceState as V, type PrewakeOptions as W, type PrewakeResult as X, type PrewakeStatus as Y, type QuicStreamDataTransport as Z, type Recording as _, type AccessTokenOptions$1 as a, computeBackoffDelay as a$, type RecordingLifecycle as a0, type RecordingStatus as a1, type RecordingsAccessor as a2, type ReleaseSessionBeaconOptions as a3, type RequestOptions as a4, type RequestStreamOptions as a5, type RuntimeArtifact as a6, type RuntimeArtifactDownload as a7, type RuntimeArtifactsAccessor as a8, type RuntimeAvailability as a9, type Store as aA, type StoreOptions as aB, type StreamChunkOptions as aC, type StreamDataTransport as aD, StreamFragmentReassembler as aE, type TransportEstablishedNotify as aF, TransportNegotiator as aG, type TransportOfferRequest as aH, type TransportOfferResponse as aI, TransportSession as aJ, type TransportSessionOptions as aK, TransportSessionSignaling as aL, type TransportState as aM, type VideoPlayoutOptions as aN, WT_CONTROL_FRAME_MAX as aO, WT_DATA_STREAM_VERSION as aP, type WatchGenerationTickOptions as aQ, type WtAudioLaneSeam as aR, type WtAudioUplinkSeam as aS, WtControlDecoder as aT, type WtControlMessage as aU, type WtDataEnvelope as aV, type WtDataLaneSink as aW, WtDataStreamParser as aX, WtDataUplinkSender as aY, type WtVideoUplinkSeam as aZ, allocateSession as a_, type RuntimeWakeDetail as aa, type RuntimeWakeGolden as ab, type RuntimeWakeReasonCode as ac, SIGNALING_PROTOCOL_VERSION as ad, STREAM_END as ae, type Session as af, type SessionDiagnostic as ag, type SessionDirectoryRequestOptions as ah, type SessionDocument as ai, SessionDocumentImpl as aj, type SessionEndResult as ak, type SessionFailureKind as al, type SessionNameSource as am, type SessionPhase as an, type SessionPhaseError as ao, type SessionPhaseName as ap, type SessionStartOptions as aq, type SessionStatsOptions as ar, type SessionStatsSample as as, type SessionStatus as at, type SessionStream as au, type SessionText as av, type SfuAttachCredential as aw, type SignalCarrier as ax, type Signaling as ay, type StartSessionOptions as az, type ActivationEvent as b, consumeWtDataStreams as b0, createPresence as b1, createWebsocketDocConnector as b2, decodeStreamEnvelope as b3, deriveYjsServerUrl as b4, derivedLegName as b5, derivedLegRole as b6, encodeStreamEnvelope as b7, encodeStreamFragments as b8, encodeWtControlFrame as b9, isPendingRecording as ba, isRetryableSessionError as bb, mediaRecorderChunkSource as bc, parseDgramHeader as bd, prewake as be, releaseSessionBeacon as bf, streamDataLabel as bg, transportStreamData as bh, watchGenerationTick as bi, writeDgramHeader as bj, type ActivationState as c, type ActivitySignalMode as d, type AllocateSessionOptions as e, type AllocatedSession as f, type App as g, type AppOptions as h, type AttachOptions as i, type AudioPlayoutOptions as j, BACKOFF_MAX_ATTEMPTS as k, BACKOFF_MAX_MS as l, type ChannelMessage as m, ChannelMultiplexer as n, type ChannelName as o, type ChunkReadable as p, DGRAM_HEADER_BYTES as q, DOC_SYNC_WIRE_CONTRACT_VERSION as r, DeferredChannelMultiplexer as s, DeferredDocConnector as t, type DerivedLegRole as u, type DgramHeader as v, type DocConnection as w, type DocConnectionState as x, type DocConnector as y, type DocServerUrlResolver as z };
|