openrtc 2.0.0-rc.3 → 2.0.0-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DelegatingRuntimeAdapter-BLNigcS4.d.ts +134 -0
- package/dist/{OpenRTCShared-ZQPu5LqL.d.ts → OpenRTCShared-BswnbjpG.d.ts} +3 -4
- package/dist/chunk-6OLYXEOG.js +1 -0
- package/dist/chunk-GHGHBGHY.js +1 -0
- package/dist/chunk-HXMHYSZF.js +1 -0
- package/dist/{chunk-7H2JPCBN.js → chunk-PRBVSCKN.js} +1 -1
- package/dist/{chunk-3USHQ7QW.js → chunk-XPEDISSU.js} +3 -3
- package/dist/factories-PLRICK7J.js +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/ipcFactory-MYHIVIM2.js +1 -0
- package/dist/native.d.ts +5 -5
- package/dist/native.js +1 -1
- package/dist/openrtc_bg.wasm +0 -0
- package/dist/runtime/WasmRuntimeAdapter.d.ts +3 -3
- package/dist/runtime/WasmRuntimeAdapter.js +1 -1
- package/dist/runtime/device-status.d.ts +2 -2
- package/dist/runtime/index.d.ts +10 -25
- package/dist/runtime/index.js +1 -1
- package/dist/runtime/legacy.d.ts +3 -3
- package/dist/runtime/legacy.js +1 -1
- package/dist/runtime/tauri.d.ts +4 -4
- package/dist/{tauri-Cz9n17g8.d.ts → tauri-BgLgJoQA.d.ts} +2 -2
- package/dist/testing.d.ts +4 -4
- package/dist/testing.js +1 -1
- package/dist/transport/index.d.ts +2 -2
- package/dist/{types-BVJr065k.d.ts → types-BHePJWbM.d.ts} +1 -1
- package/dist/{types-DkgaCyqS.d.ts → types-D0pqNSOf.d.ts} +1 -1
- package/dist/{types-DNl4KHHY.d.ts → types-DzJ8-t1p.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/DelegatingRuntimeAdapter-DqfHkjLy.d.ts +0 -373
- package/dist/chunk-6TAVJ46R.js +0 -1
- package/dist/chunk-GW7P3D54.js +0 -1
- package/dist/chunk-PRVFZI2T.js +0 -1
- package/dist/factories-LI53SFLH.js +0 -1
- package/dist/ipcFactory-QY44OIKA.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as createIpcClient,a as createWasmClient}from'./chunk-6OLYXEOG.js';import'./chunk-GHGHBGHY.js';import'./chunk-XPEDISSU.js';import'./chunk-F2XGNLXL.js';import'./chunk-A3IAG6EL.js';import'./chunk-7Z6N46RB.js';import'./chunk-YBXGNKM7.js';import'./chunk-VK6KX433.js';import'./chunk-NT5YHZQH.js';import'./chunk-K37WVIZL.js';import'./chunk-BXFXPIXO.js';import'./chunk-N26S7V4N.js';import'./chunk-NB4H5TP3.js';import'./chunk-RD3JEGGF.js';import'./chunk-C7YN5MSV.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
|
|
2
|
-
import { O as OpenRTCOptions, a as OpenRTCClient } from './types-
|
|
3
|
-
export { c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, f as OpenRTCCapabilityHandle, h as OpenRTCDevicesHandle, i as OpenRTCDevicesStartOptions, k as OpenRTCRoomHandle, l as OpenRTCRoomJoinOptions, m as OpenRTCSpaceHandle, n as OpenRTCSpaceJoinOptions, o as OpenRTCTicketHandle, p as OpenRTCTicketIssueOptions, q as OpenRTCTransportPreferences, s as OpenRTCUsageUpdate, t as OpenRTCUsageWarning } from './types-
|
|
4
|
-
import './OpenRTCShared-
|
|
5
|
-
import './types-
|
|
2
|
+
import { O as OpenRTCOptions, a as OpenRTCClient } from './types-DzJ8-t1p.js';
|
|
3
|
+
export { c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, f as OpenRTCCapabilityHandle, h as OpenRTCDevicesHandle, i as OpenRTCDevicesStartOptions, k as OpenRTCRoomHandle, l as OpenRTCRoomJoinOptions, m as OpenRTCSpaceHandle, n as OpenRTCSpaceJoinOptions, o as OpenRTCTicketHandle, p as OpenRTCTicketIssueOptions, q as OpenRTCTransportPreferences, s as OpenRTCUsageUpdate, t as OpenRTCUsageWarning } from './types-DzJ8-t1p.js';
|
|
4
|
+
import './OpenRTCShared-BswnbjpG.js';
|
|
5
|
+
import './types-BHePJWbM.js';
|
|
6
6
|
import './IEngineBridge-BbsT8hof.js';
|
|
7
|
-
import './types-
|
|
7
|
+
import './types-D0pqNSOf.js';
|
|
8
8
|
import './ITransport-BsPcaov7.js';
|
|
9
9
|
import './capabilities-YSskrE8H.js';
|
|
10
10
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';export{a as OPENRTC_ERROR_CODES,b as OpenRtcError,e as classifyOpenRtcFailure,d as openRtcError,c as projectOpenRtcErrorFields}from'./chunk-NT5YHZQH.js';import {d}from'./chunk-K37WVIZL.js';function i(p){return c(p,{platform:"web",runtimeFactory:async e=>{let{createWasmClient:t}=await import('./factories-
|
|
1
|
+
import {a}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';export{a as OPENRTC_ERROR_CODES,b as OpenRtcError,e as classifyOpenRtcFailure,d as openRtcError,c as projectOpenRtcErrorFields}from'./chunk-NT5YHZQH.js';import {d}from'./chunk-K37WVIZL.js';function i(p){return c(p,{platform:"web",runtimeFactory:async e=>{let{createWasmClient:t}=await import('./factories-PLRICK7J.js');return t(e)}})}i.native=function(p,e=d()){return c(p,{platform:"native",deviceKeyProvider:a(e),deviceIdProvider:async()=>{let t=await e.invoke("get_rtc_local_device_info");return String(t?.deviceId??"")},runtimeFactory:async t=>{let{createIpcClient:a}=await import('./ipcFactory-MYHIVIM2.js');return a(t,e)}})};export{i as OpenRTC};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as createIpcClient}from'./chunk-HXMHYSZF.js';import'./chunk-GHGHBGHY.js';import'./chunk-XPEDISSU.js';import'./chunk-F2XGNLXL.js';import'./chunk-A3IAG6EL.js';import'./chunk-7Z6N46RB.js';import'./chunk-YBXGNKM7.js';import'./chunk-VK6KX433.js';import'./chunk-NT5YHZQH.js';import'./chunk-K37WVIZL.js';import'./chunk-BXFXPIXO.js';import'./chunk-N26S7V4N.js';import'./chunk-NB4H5TP3.js';import'./chunk-RD3JEGGF.js';import'./chunk-C7YN5MSV.js';
|
package/dist/native.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
|
|
2
2
|
export { c as classifyNativeIpcFailure, i as isNativeIpcCommandUnavailable } from './ipc-CflAVodw.js';
|
|
3
|
-
import { O as OpenRTCOptions, a as OpenRTCClient } from './types-
|
|
4
|
-
export { b as OpenRTCAccessMode, c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, e as OpenRTCBotVerificationProvider, f as OpenRTCCapabilityHandle, g as OpenRTCChannelCatalog, h as OpenRTCDevicesHandle, i as OpenRTCDevicesStartOptions, j as OpenRTCLatestStateMode, k as OpenRTCRoomHandle, l as OpenRTCRoomJoinOptions, m as OpenRTCSpaceHandle, n as OpenRTCSpaceJoinOptions, o as OpenRTCTicketHandle, p as OpenRTCTicketIssueOptions, q as OpenRTCTransportPreferences, r as OpenRTCUsageNamespace, s as OpenRTCUsageUpdate, t as OpenRTCUsageWarning } from './types-
|
|
5
|
-
import './OpenRTCShared-
|
|
6
|
-
import './types-
|
|
3
|
+
import { O as OpenRTCOptions, a as OpenRTCClient } from './types-DzJ8-t1p.js';
|
|
4
|
+
export { b as OpenRTCAccessMode, c as OpenRTCAttestationProvider, d as OpenRTCAuthProvider, e as OpenRTCBotVerificationProvider, f as OpenRTCCapabilityHandle, g as OpenRTCChannelCatalog, h as OpenRTCDevicesHandle, i as OpenRTCDevicesStartOptions, j as OpenRTCLatestStateMode, k as OpenRTCRoomHandle, l as OpenRTCRoomJoinOptions, m as OpenRTCSpaceHandle, n as OpenRTCSpaceJoinOptions, o as OpenRTCTicketHandle, p as OpenRTCTicketIssueOptions, q as OpenRTCTransportPreferences, r as OpenRTCUsageNamespace, s as OpenRTCUsageUpdate, t as OpenRTCUsageWarning } from './types-DzJ8-t1p.js';
|
|
5
|
+
import './OpenRTCShared-BswnbjpG.js';
|
|
6
|
+
import './types-BHePJWbM.js';
|
|
7
7
|
import './IEngineBridge-BbsT8hof.js';
|
|
8
|
-
import './types-
|
|
8
|
+
import './types-D0pqNSOf.js';
|
|
9
9
|
import './ITransport-BsPcaov7.js';
|
|
10
10
|
import './capabilities-YSskrE8H.js';
|
|
11
11
|
|
package/dist/native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';export{a as classifyNativeIpcFailure,b as isNativeIpcCommandUnavailable}from'./chunk-K37WVIZL.js';function m(n,e){return c(n,{platform:"native",deviceKeyProvider:a(e),deviceIdProvider:async()=>{let t=await e.invoke("get_rtc_local_device_info");return String(t?.deviceId??"")},runtimeFactory:async t=>{let{createIpcClient:o}=await import('./ipcFactory-
|
|
1
|
+
import {a}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';export{a as classifyNativeIpcFailure,b as isNativeIpcCommandUnavailable}from'./chunk-K37WVIZL.js';function m(n,e){return c(n,{platform:"native",deviceKeyProvider:a(e),deviceIdProvider:async()=>{let t=await e.invoke("get_rtc_local_device_info");return String(t?.deviceId??"")},runtimeFactory:async t=>{let{createIpcClient:o}=await import('./ipcFactory-MYHIVIM2.js');return o(t,e)}})}export{m as createNativeOpenRTC};
|
package/dist/openrtc_bg.wasm
CHANGED
|
Binary file
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { D as DelegatingRuntimeAdapter, W as WasmBridgeOptions } from '../DelegatingRuntimeAdapter-
|
|
2
|
-
import '../types-
|
|
3
|
-
import '../capabilities-YSskrE8H.js';
|
|
1
|
+
import { D as DelegatingRuntimeAdapter, W as WasmBridgeOptions } from '../DelegatingRuntimeAdapter-BLNigcS4.js';
|
|
2
|
+
import '../types-BHePJWbM.js';
|
|
4
3
|
import '../IEngineBridge-BbsT8hof.js';
|
|
4
|
+
import '../capabilities-YSskrE8H.js';
|
|
5
5
|
|
|
6
6
|
declare class WasmRuntimeAdapter extends DelegatingRuntimeAdapter {
|
|
7
7
|
constructor(options: WasmBridgeOptions);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import {a}from'../chunk-A3IAG6EL.js';import {w}from'../chunk-YBXGNKM7.js';import'../chunk-VK6KX433.js';import'../chunk-NT5YHZQH.js';import'../chunk-N26S7V4N.js';import'../chunk-NB4H5TP3.js';import'../chunk-RD3JEGGF.js';import'../chunk-C7YN5MSV.js';var n=class extends a{constructor(e){super(new w(e));}setWasmClient(e){this.unwrap().setWasmClient(e);}};export{n as WasmRuntimeAdapter};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as RuntimeDevice, m as RuntimeDeviceStatusSnapshot } from '../types-
|
|
1
|
+
import { j as RuntimeDevice, m as RuntimeDeviceStatusSnapshot } from '../types-D0pqNSOf.js';
|
|
2
2
|
import '../IEngineBridge-BbsT8hof.js';
|
|
3
|
-
import '../types-
|
|
3
|
+
import '../types-BHePJWbM.js';
|
|
4
4
|
import '../ITransport-BsPcaov7.js';
|
|
5
5
|
|
|
6
6
|
interface RuntimeDeviceActiveOptions {
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { f as OpenRTCCapabilityHandle } from '../types-
|
|
4
|
-
import { C as Connection, r as RuntimeConnectionTarget, v as RuntimeRawConnection } from '../types-
|
|
5
|
-
export { A as ChannelDescriptor, B as ConnectionEvent, D as ConnectionTarget, E as DeviceProfile, I as IncomingStream, P as PeerConnectOptions, F as PeerReadiness, G as PeerStreamOptions, H as PresenceLoopOptions, J as RawConnection, y as RuntimeApplicationPayloadReadinessOptions, K as RuntimeApplicationPayloadRouteOptions, L as RuntimeAuthContext, g as RuntimeAuthIdentity, M as RuntimeAutoConnectPolicy, R as RuntimeChannelDescriptor, a as RuntimeClientOptions, z as RuntimeConnectionEvent, c as RuntimeConnectionStateSnapshot, j as RuntimeDevice, n as RuntimeDeviceConnectOptions, N as RuntimeDevicePresenceStatus, O as RuntimeDeviceStatus, m as RuntimeDeviceStatusSnapshot, f as RuntimeIncomingStream, p as RuntimeJoinRoomOptions, h as RuntimeLocalDeviceInfo, i as RuntimeLocalDeviceProfile, Q as RuntimeLogicalChannelFraming, l as RuntimeManagedSession, S as RuntimeManagedSessionKind, k as RuntimeManagedSessionOptions, T as RuntimeManagedSessionPlatform, e as RuntimePeerConnectOptions, x as RuntimePeerHealth, U as RuntimePeerLifecycleStatus, d as RuntimePeerReadinessSnapshot, V as RuntimePeerScope, W as RuntimePeerSessionSnapshot, b as RuntimePeerState, u as RuntimePeerStreamOptions, w as RuntimePresenceLoopOptions, X as RuntimePresencePolicy, q as RuntimeRoomMember, s as RuntimeScopedChannelOptions, t as RuntimeScopedLogicalChannel, o as RuntimeSession, Y as RuntimeUiConnectionStatus, Z as ScopedChannelOptions, _ as ScopedLogicalChannel, $ as Session, a0 as SessionOptions } from '../types-
|
|
1
|
+
import { d as OpenRTCClient, P as PeerReconciliationStats } from '../OpenRTCShared-BswnbjpG.js';
|
|
2
|
+
export { e as OPENRTC_RUNTIME_POLICY, R as RuntimeClient, f as RuntimePolicySnapshot, D as ScopedConnectionActorError, g as ScopedConnectionActorErrorKind, h as ScopedConnectionActorHandle, i as ScopedConnectionActorHandleOptions, j as ScopedConnectionActorRegistry, k as ScopedConnectionActorState, l as ScopedConnectionClose, m as ScopedConnectionDial, n as ScopedConnectionKey, o as ScopedLogicalChannelHandle, p as ScopedPreferredTransport, q as getRuntimePolicy, r as scopedConnectionKey, s as scopedConnectionKeyToString } from '../OpenRTCShared-BswnbjpG.js';
|
|
3
|
+
import { f as OpenRTCCapabilityHandle } from '../types-DzJ8-t1p.js';
|
|
4
|
+
import { C as Connection, r as RuntimeConnectionTarget, v as RuntimeRawConnection } from '../types-D0pqNSOf.js';
|
|
5
|
+
export { A as ChannelDescriptor, B as ConnectionEvent, D as ConnectionTarget, E as DeviceProfile, I as IncomingStream, P as PeerConnectOptions, F as PeerReadiness, G as PeerStreamOptions, H as PresenceLoopOptions, J as RawConnection, y as RuntimeApplicationPayloadReadinessOptions, K as RuntimeApplicationPayloadRouteOptions, L as RuntimeAuthContext, g as RuntimeAuthIdentity, M as RuntimeAutoConnectPolicy, R as RuntimeChannelDescriptor, a as RuntimeClientOptions, z as RuntimeConnectionEvent, c as RuntimeConnectionStateSnapshot, j as RuntimeDevice, n as RuntimeDeviceConnectOptions, N as RuntimeDevicePresenceStatus, O as RuntimeDeviceStatus, m as RuntimeDeviceStatusSnapshot, f as RuntimeIncomingStream, p as RuntimeJoinRoomOptions, h as RuntimeLocalDeviceInfo, i as RuntimeLocalDeviceProfile, Q as RuntimeLogicalChannelFraming, l as RuntimeManagedSession, S as RuntimeManagedSessionKind, k as RuntimeManagedSessionOptions, T as RuntimeManagedSessionPlatform, e as RuntimePeerConnectOptions, x as RuntimePeerHealth, U as RuntimePeerLifecycleStatus, d as RuntimePeerReadinessSnapshot, V as RuntimePeerScope, W as RuntimePeerSessionSnapshot, b as RuntimePeerState, u as RuntimePeerStreamOptions, w as RuntimePresenceLoopOptions, X as RuntimePresencePolicy, q as RuntimeRoomMember, s as RuntimeScopedChannelOptions, t as RuntimeScopedLogicalChannel, o as RuntimeSession, Y as RuntimeUiConnectionStatus, Z as ScopedChannelOptions, _ as ScopedLogicalChannel, $ as Session, a0 as SessionOptions } from '../types-D0pqNSOf.js';
|
|
6
6
|
import * as Draft14 from '@moq/net';
|
|
7
|
-
import {
|
|
7
|
+
import { $ as SignalingOptions, I as ISignalingBackend, R as RuntimeIdentity, a as RoomMember, e as SignalingEnvelope, h as SignalingSession, b as Device, g as DesiredPeerProjection, m as BackendConnectionState, _ as AppLimits, G as GrantScope, J as JoinRoomOptions, x as IncomingStreamChannelMetadata, Q as ApplicationCryptoStreamTools, a0 as RoomCreationMode, C as ClientOptions, o as ApplicationPayloadCrypto, D as DiscoveryMode, O as ProtocolCapabilityMap, a1 as ScanningLoopOptions, a2 as ScanningLoopHandle, a3 as RuntimeBootstrapOptions, a4 as RuntimeBootstrapResult, p as ApplicationPayloadReadinessOptions, a5 as ManagedApplicationRouteOptions, t as PeerState, u as PeerScope, v as PeerHealth, w as ChannelDescriptor, a6 as JoinRequest, k as NativeConnectParams, l as NativeConnectResult, a7 as SpaceTokenProvider } from '../types-BHePJWbM.js';
|
|
8
8
|
import { R as RuntimeCapabilities } from '../capabilities-YSskrE8H.js';
|
|
9
9
|
export { B as BROWSER_WASM_RUNTIME_CAPABILITIES, b as BrowserRuntimeCapabilityHost, N as NATIVE_IPC_RUNTIME_CAPABILITIES, c as NativeRuntimeStatusSnapshot, d as NativeRuntimeTransportFeatureStatus, e as RuntimeAdapterKind, a as RuntimeCapabilityProfile, f as cloneRuntimeCapabilities, r as runtimeCapabilitiesForBrowserHost, g as runtimeCapabilitiesFromNativeStatus, h as runtimeCapabilityProfile } from '../capabilities-YSskrE8H.js';
|
|
10
10
|
export { RuntimeDeviceActiveOptions, isRuntimeDeviceActive, isRuntimeDeviceConnectable, isRuntimeDeviceRoutable } from './device-status.js';
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
import { a as WasmBridge } from '../DelegatingRuntimeAdapter-DqfHkjLy.js';
|
|
14
|
-
import { P as PlutoIpcBridge } from '../ipc-CflAVodw.js';
|
|
15
|
-
export { N as NativeIpcFailureKind, a as PlutoIpcUnlisten, c as classifyNativeIpcFailure, i as isNativeIpcCommandUnavailable } from '../ipc-CflAVodw.js';
|
|
16
|
-
export { WasmRuntimeAdapter } from './WasmRuntimeAdapter.js';
|
|
11
|
+
export { I as IpcRuntimeAdapter, a as IpcRuntimeAdapterOptions, T as TauriRuntimeAdapter, b as TauriRuntimeAdapterOptions, c as createTauriIpcBridge } from '../tauri-BgLgJoQA.js';
|
|
12
|
+
export { P as NativeBridge, N as NativeIpcFailureKind, P as PlutoIpcBridge, a as PlutoIpcUnlisten, c as classifyNativeIpcFailure, i as isNativeIpcCommandUnavailable } from '../ipc-CflAVodw.js';
|
|
17
13
|
import '../IEngineBridge-BbsT8hof.js';
|
|
18
14
|
import '../ITransport-BsPcaov7.js';
|
|
15
|
+
import '../DelegatingRuntimeAdapter-BLNigcS4.js';
|
|
19
16
|
|
|
20
17
|
declare class Signaling {
|
|
21
18
|
private readonly appTag;
|
|
@@ -63,18 +60,6 @@ declare class Signaling {
|
|
|
63
60
|
setWasmClient(client: any): void;
|
|
64
61
|
}
|
|
65
62
|
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated Legacy assembly helper. Use `OpenRTC()` for app code.
|
|
68
|
-
* Removal target: OpenRTC 0.2.0.
|
|
69
|
-
*/
|
|
70
|
-
declare function createWasmClient(options: RuntimeFactoryOptions): Promise<PlutoRuntimeAssembly<WasmBridge>>;
|
|
71
|
-
/**
|
|
72
|
-
* @deprecated Legacy assembly helper. Native applications should use
|
|
73
|
-
* `createNativeOpenRTC` from `openrtc/native`.
|
|
74
|
-
* Removal target: OpenRTC 0.2.0.
|
|
75
|
-
*/
|
|
76
|
-
declare function createIpcClient(options: RuntimeFactoryOptions, bridge: PlutoIpcBridge): PlutoRuntimeAssembly<IpcRuntimeAdapter>;
|
|
77
|
-
|
|
78
63
|
type OpenRTCCapabilityRuntime = OpenRTCClient;
|
|
79
64
|
/**
|
|
80
65
|
* Low-level escape hatch used only by `openrtc/runtime`. Product code should
|
|
@@ -588,4 +573,4 @@ declare function sandboxSpaceKey(spaceKey: string, sandboxAppId?: string): strin
|
|
|
588
573
|
declare const spaceToken: typeof createPublicSpaceTokenProvider;
|
|
589
574
|
declare const createSpaceTokenProvider: typeof createPublicSpaceTokenProvider;
|
|
590
575
|
|
|
591
|
-
export { Connection, type CorrelationFields, type EnableSpaceAuthResponse,
|
|
576
|
+
export { Connection, type CorrelationFields, type EnableSpaceAuthResponse, type MintSpaceTokenRequest, type MintSpaceTokenResponse, type OpenRTCCapabilityRuntime, RuntimeCapabilities, RuntimeConnectionController, RuntimeConnectionTarget, type RuntimeJsonFrameDecoderOptions, type RuntimeJsonFrameHandler, RuntimeRawConnection, type RuntimeU32BEFrameHandler, clog, concatRuntimeBytes, correlationForDriveGrantScope, createPublicSpaceTokenProvider, createRuntimeJsonFrameDecoder, createRuntimeU32BEFrameDecoder, createSpaceTokenProvider, decodeRuntimeJsonPayload, enableSpaceAuth, encodeRuntimeJsonFrame, encodeRuntimeJsonPayload, encodeRuntimeU32BEFrame, logOpenRtcTeardownTrace, mintSpaceToken, openRtcDebug, openRtcDebugEnabled, openRtcDebugInfo, openRtcDebugLog, readRuntimeU32BE, renderCorrelationFields, runtimeForCapability as runtimeFromCapability, sandboxSpaceKey, spaceToken };
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{b as TauriRuntimeAdapter,a as createTauriIpcBridge}from'../chunk-5LRLWIT5.js';export{b as runtimeFromCapability}from'../chunk-PODAMIL6.js';export{b as Connection,t as RuntimeClient,c as RuntimeConnectionController,g as ScopedConnectionActorError,j as ScopedConnectionActorHandle,k as ScopedConnectionActorRegistry,f as clog,r as concatRuntimeBytes,e as correlationForDriveGrantScope,q as createRuntimeJsonFrameDecoder,m as createRuntimeU32BEFrameDecoder,o as decodeRuntimeJsonPayload,p as encodeRuntimeJsonFrame,n as encodeRuntimeJsonPayload,l as encodeRuntimeU32BEFrame,s as readRuntimeU32BE,d as renderCorrelationFields,h as scopedConnectionKey,i as scopedConnectionKeyToString}from'../chunk-XPEDISSU.js';export{f as IpcRuntimeAdapter}from'../chunk-F2XGNLXL.js';import'../chunk-A3IAG6EL.js';import'../chunk-7Z6N46RB.js';export{q as BROWSER_WASM_RUNTIME_CAPABILITIES,r as NATIVE_IPC_RUNTIME_CAPABILITIES,o as OPENRTC_RUNTIME_POLICY,s as cloneRuntimeCapabilities,p as getRuntimePolicy,g as logOpenRtcTeardownTrace,t as runtimeCapabilitiesForBrowserHost,u as runtimeCapabilitiesFromNativeStatus,v as runtimeCapabilityProfile}from'../chunk-YBXGNKM7.js';export{b as openRtcDebug,a as openRtcDebugEnabled,c as openRtcDebugInfo,d as openRtcDebugLog}from'../chunk-VK6KX433.js';import'../chunk-NT5YHZQH.js';export{a as classifyNativeIpcFailure,b as isNativeIpcCommandUnavailable}from'../chunk-K37WVIZL.js';import'../chunk-BXFXPIXO.js';import {b}from'../chunk-N26S7V4N.js';import'../chunk-NB4H5TP3.js';import'../chunk-RD3JEGGF.js';import'../chunk-C7YN5MSV.js';export{a as isRuntimeDeviceActive,c as isRuntimeDeviceConnectable,b as isRuntimeDeviceRoutable}from'../chunk-CK6WQV7J.js';var j="https://api.openrtc.app";function c(e){if(typeof globalThis.crypto?.randomUUID!="function")throw new Error(`Secure request identity is unavailable for ${e}.`);return `${e}:${globalThis.crypto.randomUUID()}`}async function z(e,t,n){let o=e.replace(/\/$/,""),r=await fetch(`${o}/v1/spaces/${encodeURIComponent(n)}/scoped-auth`,{method:"POST",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json","X-OpenRTC-Idempotency-Key":c("enable-space-auth")},body:"{}"}),a=await r.json().catch(()=>({}));if(!r.ok){let s=typeof a?.error=="string"?a.error:`enableSpaceAuth failed (${r.status})`;throw new Error(s)}return a}async function q(e,t,n){let o=await fetch(e,{method:"POST",headers:{Authorization:`Bearer ${t}`,"Content-Type":"application/json","X-OpenRTC-Idempotency-Key":c("mint-space-token")},body:JSON.stringify(n)}),r=await o.json().catch(()=>({}));if(!o.ok){let a=typeof r?.error=="string"?r.error:`mintSpaceToken failed (${o.status})`;throw new Error(a)}if(typeof r?.token!="string"||!r.token.trim())throw new Error("mintSpaceToken response missing token");return r}function d(e){let t=e.apiKey.trim(),n=(e.spaceKey??e.space??"").trim(),o=g(e.sandboxAppId),r=(e.endpointUrl??j).replace(/\/$/,""),a=e.memberIdStorageKey??`openrtc:space-member:${n}${o?`:sandbox:${o}`:""}`;return async()=>{if(!t||!n)throw new Error("spaceToken requires apiKey and space");let s=null;typeof sessionStorage<"u"?(s=sessionStorage.getItem(a),s||(s=globalThis.crypto?.randomUUID?.()??`member-${Date.now()}`,sessionStorage.setItem(a,s))):s=`member-${Date.now()}`;let m=await b().getAppCheckToken(),i=await fetch(`${r}/v1SpacePublicTokens`,{method:"POST",headers:{"Content-Type":"application/json","X-OpenRTC-Idempotency-Key":c("mint-public-space-token"),...m?{"X-Firebase-AppCheck":m}:{}},body:JSON.stringify({apiKey:t,spaceKey:n,memberId:s,...o?{sandboxAppId:o}:{}})}),{text:u,payload:p}=await B(i);if(!i.ok){let f=typeof p?.error=="string"?p.error:u.trim()?u.trim().slice(0,240):`public space token mint failed (${i.status})`;throw new Error(f)}let l=typeof p?.token=="string"?p.token.trim():"";if(!l)throw new Error("public space token response missing token");return {customToken:l}}}function M(e){if(!e.trim())return {};try{let t=JSON.parse(e);return t&&typeof t=="object"?t:{}}catch{return {}}}async function B(e){let t=e.text;if(typeof t=="function"){let o=await t.call(e).catch(()=>"");return {text:o,payload:M(o)}}let n=await e.json().catch(()=>({}));return {text:JSON.stringify(n),payload:n&&typeof n=="object"?n:{}}}function g(e){let t=e?.trim().toLowerCase()??"";if(!t)return "";if(!/^[a-z0-9][a-z0-9-]{0,47}$/.test(t))throw new Error("sandboxAppId must be 1-48 lowercase letters, numbers, or dashes.");return t}function J(e,t){let n=e.trim(),o=g(t);return o?`${n}::sandbox::${o}`:n}var L=d,H=d;
|
|
2
2
|
export{d as createPublicSpaceTokenProvider,H as createSpaceTokenProvider,z as enableSpaceAuth,q as mintSpaceToken,J as sandboxSpaceKey,L as spaceToken};
|
package/dist/runtime/legacy.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as OpenRTCClient } from '../OpenRTCShared-
|
|
1
|
+
import { d as OpenRTCClient } from '../OpenRTCShared-BswnbjpG.js';
|
|
2
2
|
import { P as PlutoIpcBridge } from '../ipc-CflAVodw.js';
|
|
3
|
-
import { a as RuntimeClientOptions } from '../types-
|
|
4
|
-
import '../types-
|
|
3
|
+
import { a as RuntimeClientOptions } from '../types-D0pqNSOf.js';
|
|
4
|
+
import '../types-BHePJWbM.js';
|
|
5
5
|
import '../IEngineBridge-BbsT8hof.js';
|
|
6
6
|
import '../capabilities-YSskrE8H.js';
|
|
7
7
|
import '../ITransport-BsPcaov7.js';
|
package/dist/runtime/legacy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as createLegacyOpenRTC}from'../chunk-
|
|
1
|
+
export{a as createLegacyOpenRTC}from'../chunk-PRBVSCKN.js';import'../chunk-2QHDEGVX.js';import'../chunk-6OLYXEOG.js';import'../chunk-HXMHYSZF.js';import'../chunk-GHGHBGHY.js';import'../chunk-N4SX7C3W.js';import'../chunk-XPEDISSU.js';import'../chunk-F2XGNLXL.js';import'../chunk-A3IAG6EL.js';import'../chunk-7Z6N46RB.js';import'../chunk-YBXGNKM7.js';import'../chunk-VK6KX433.js';import'../chunk-NT5YHZQH.js';import'../chunk-K37WVIZL.js';import'../chunk-BXFXPIXO.js';import'../chunk-N26S7V4N.js';import'../chunk-NB4H5TP3.js';import'../chunk-RD3JEGGF.js';import'../chunk-C7YN5MSV.js';
|
package/dist/runtime/tauri.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { T as TauriRuntimeAdapter, b as TauriRuntimeAdapterOptions, c as createTauriIpcBridge } from '../tauri-
|
|
1
|
+
export { T as TauriRuntimeAdapter, b as TauriRuntimeAdapterOptions, c as createTauriIpcBridge } from '../tauri-BgLgJoQA.js';
|
|
2
2
|
import '../ipc-CflAVodw.js';
|
|
3
|
-
import '../types-
|
|
4
|
-
import '../DelegatingRuntimeAdapter-
|
|
5
|
-
import '../capabilities-YSskrE8H.js';
|
|
3
|
+
import '../types-BHePJWbM.js';
|
|
4
|
+
import '../DelegatingRuntimeAdapter-BLNigcS4.js';
|
|
6
5
|
import '../IEngineBridge-BbsT8hof.js';
|
|
6
|
+
import '../capabilities-YSskrE8H.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { W as WasmBridgeOptions, D as DelegatingRuntimeAdapter } from './DelegatingRuntimeAdapter-
|
|
1
|
+
import { C as ClientOptions } from './types-BHePJWbM.js';
|
|
2
|
+
import { W as WasmBridgeOptions, D as DelegatingRuntimeAdapter } from './DelegatingRuntimeAdapter-BLNigcS4.js';
|
|
3
3
|
import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
|
|
4
4
|
|
|
5
5
|
interface NativeIpcBridgeOptions extends WasmBridgeOptions {
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as OpenRTCClient } from './OpenRTCShared-
|
|
1
|
+
import { d as OpenRTCClient } from './OpenRTCShared-BswnbjpG.js';
|
|
2
2
|
import { P as PlutoIpcBridge } from './ipc-CflAVodw.js';
|
|
3
|
-
import { a as RuntimeClientOptions } from './types-
|
|
4
|
-
import { O as OpenRTCOptions, a as OpenRTCClient$1 } from './types-
|
|
5
|
-
import './types-
|
|
3
|
+
import { a as RuntimeClientOptions } from './types-D0pqNSOf.js';
|
|
4
|
+
import { O as OpenRTCOptions, a as OpenRTCClient$1 } from './types-DzJ8-t1p.js';
|
|
5
|
+
import './types-BHePJWbM.js';
|
|
6
6
|
import './IEngineBridge-BbsT8hof.js';
|
|
7
7
|
import './capabilities-YSskrE8H.js';
|
|
8
8
|
import './ITransport-BsPcaov7.js';
|
package/dist/testing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';import {a}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-UEYM6WTT.js';import {c}from'./chunk-PODAMIL6.js';import {a}from'./chunk-PRBVSCKN.js';import'./chunk-2QHDEGVX.js';import'./chunk-6OLYXEOG.js';import'./chunk-HXMHYSZF.js';import'./chunk-GHGHBGHY.js';import'./chunk-N4SX7C3W.js';import'./chunk-XPEDISSU.js';import'./chunk-F2XGNLXL.js';import'./chunk-A3IAG6EL.js';import'./chunk-7Z6N46RB.js';import'./chunk-YBXGNKM7.js';import'./chunk-VK6KX433.js';import'./chunk-NT5YHZQH.js';import'./chunk-K37WVIZL.js';import'./chunk-BXFXPIXO.js';import'./chunk-N26S7V4N.js';import'./chunk-NB4H5TP3.js';import'./chunk-RD3JEGGF.js';import'./chunk-C7YN5MSV.js';function m(e,t,n={}){return c(e,{endpoints:t,testingAllowInsecureLoopback:true,platform:"web",...n.deviceId?{deviceIdProvider:async()=>n.deviceId}:{},...n.irohTestRelayUrl?{irohTestRelayUrl:n.irohTestRelayUrl}:{},runtimeFactory:async i=>{let{createWasmClient:o}=await import('./factories-PLRICK7J.js');return o(i)}})}function d(e,t,n){return c(e,{endpoints:t,testingAllowInsecureLoopback:true,platform:"native",deviceKeyProvider:a$1(n),deviceIdProvider:async()=>{let i=await n.invoke("get_rtc_local_device_info");return String(i?.deviceId??"")},runtimeFactory:async i=>{let{createIpcClient:o}=await import('./ipcFactory-MYHIVIM2.js');return o(i,n)}})}function p(e){let t=e.coordinationGateway;return {...e,...t?{coordinationGateway:{...t,testingAllowInsecureLoopback:true}}:{}}}var C=Object.assign(e=>a(p(e)),{native:(e,t)=>a.native(p(e),t)});export{C as createTestingLegacyOpenRTC,d as createTestingNativeOpenRTC,m as createTestingOpenRTC};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { r as ProtocolName, H as RouteDescriptor, K as ProtocolCapability, O as ProtocolCapabilityMap, o as ApplicationPayloadCrypto, Q as ApplicationCryptoStreamTools } from '../types-BHePJWbM.js';
|
|
2
|
+
export { U as ApplicationCryptoBiStream, V as RouteFamily, W as RouteImplementationKind } from '../types-BHePJWbM.js';
|
|
3
3
|
import { I as ITransport } from '../ITransport-BsPcaov7.js';
|
|
4
4
|
|
|
5
5
|
declare const TRANSPORT_LABELS: readonly ProtocolName[];
|
|
@@ -1080,4 +1080,4 @@ interface JoinRequest {
|
|
|
1080
1080
|
state: 'pending' | 'accepted' | 'rejected';
|
|
1081
1081
|
}
|
|
1082
1082
|
|
|
1083
|
-
export type {
|
|
1083
|
+
export type { SignalingOptions as $, AuthMode as A, BackendPeerBiStream as B, ClientOptions as C, DiscoveryMode as D, ExplicitFileDataSendParams as E, PeerLifecycleStatus as F, GrantScope as G, RouteDescriptor as H, ISignalingBackend as I, JoinRoomOptions as J, ProtocolCapability as K, LocalDeviceInfo as L, ManagedConnectionRecord as M, NativeManagedSessionStartResult as N, ProtocolCapabilityMap as O, PeerSessionSnapshot as P, ApplicationCryptoStreamTools as Q, RuntimeIdentity as R, SignalingMode as S, TransportLatencySnapshot as T, ApplicationCryptoBiStream as U, RouteFamily as V, RouteImplementationKind as W, ConnectDeviceHooks as X, ConnectDeviceOptions as Y, ConnectDeviceResult as Z, AppLimits as _, RoomMember as a, RoomCreationMode as a0, ScanningLoopOptions as a1, ScanningLoopHandle as a2, RuntimeBootstrapOptions as a3, RuntimeBootstrapResult as a4, ManagedApplicationRouteOptions as a5, JoinRequest as a6, SpaceTokenProvider as a7, Device as b, DeviceStatusSnapshot as c, ResolvedPeerIdentity as d, SignalingEnvelope as e, DeviceEvent as f, DesiredPeerProjection as g, SignalingSession as h, SessionEvent as i, BackendPeerUniStream as j, NativeConnectParams as k, NativeConnectResult as l, BackendConnectionState as m, ConnectionOptions as n, ApplicationPayloadCrypto as o, ApplicationPayloadReadinessOptions as p, ApplicationPayloadRouteOptions as q, ProtocolName as r, ApplicationPayloadSendOptions as s, PeerState as t, PeerScope as u, PeerHealth as v, ChannelDescriptor as w, IncomingStreamChannelMetadata as x, ManagedDeviceConnectOptions as y, DevicePresenceStatus as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as AuthContext } from './IEngineBridge-BbsT8hof.js';
|
|
2
|
-
import {
|
|
2
|
+
import { n as ConnectionOptions, o as ApplicationPayloadCrypto, p as ApplicationPayloadReadinessOptions, q as ApplicationPayloadRouteOptions, r as ProtocolName, s as ApplicationPayloadSendOptions, T as TransportLatencySnapshot, t as PeerState, u as PeerScope, v as PeerHealth, w as ChannelDescriptor$1, x as IncomingStreamChannelMetadata, b as Device, m as BackendConnectionState, L as LocalDeviceInfo, c as DeviceStatusSnapshot, y as ManagedDeviceConnectOptions, C as ClientOptions, h as SignalingSession, R as RuntimeIdentity, J as JoinRoomOptions, a as RoomMember, z as DevicePresenceStatus, F as PeerLifecycleStatus, P as PeerSessionSnapshot } from './types-BHePJWbM.js';
|
|
3
3
|
import { I as ITransport } from './ITransport-BsPcaov7.js';
|
|
4
4
|
|
|
5
5
|
type ConnectionHealth = 'unknown' | 'healthy' | 'suspect' | 'stale';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { O as OpenRTCPeerNamespace, a as OpenRTCChannelNamespace, b as OpenRTCDiagnosticsNamespace, c as OpenRTCDeviceNamespace } from './OpenRTCShared-
|
|
2
|
-
import { R as RuntimeChannelDescriptor } from './types-
|
|
1
|
+
import { O as OpenRTCPeerNamespace, a as OpenRTCChannelNamespace, b as OpenRTCDiagnosticsNamespace, c as OpenRTCDeviceNamespace } from './OpenRTCShared-BswnbjpG.js';
|
|
2
|
+
import { R as RuntimeChannelDescriptor } from './types-D0pqNSOf.js';
|
|
3
3
|
|
|
4
4
|
interface OpenRTCAuthProvider {
|
|
5
5
|
/** Registered provider ID from the developer app capability manifest. */
|