openrtc 2.8.4 → 2.8.6
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-DXeVrxQJ.d.ts → DelegatingRuntimeAdapter-DLrTF5Nr.d.ts} +16 -0
- package/dist/{IpcRuntimeAdapter-CytWufhU.d.ts → IpcRuntimeAdapter-Cp2QsHX2.d.ts} +1 -1
- package/dist/{WasmBridge-6R3LRMUA.js → WasmBridge-OTPV26MU.js} +1 -1
- package/dist/{chunk-WC6AHTD7.js → chunk-EUVLZSGT.js} +1 -1
- package/dist/{chunk-XXSKL76B.js → chunk-LAL63F6X.js} +1 -1
- package/dist/chunk-T3G55YPI.js +1 -0
- package/dist/{chunk-ODOJMY4Z.js → chunk-YCQH66MU.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{ipcFactory-XWA7RXHB.js → ipcFactory-DOEPQPOP.js} +1 -1
- package/dist/native.js +1 -1
- package/dist/node.js +1 -1
- package/dist/{openrtc-EGNQXXVW.js → openrtc-BMF7GF7L.js} +1 -1
- package/dist/openrtc_bg.wasm +0 -0
- package/dist/runtime/WasmRuntimeAdapter.d.ts +1 -1
- package/dist/runtime/WasmRuntimeAdapter.js +1 -1
- package/dist/runtime/factories.d.ts +2 -2
- package/dist/runtime/factories.js +1 -1
- package/dist/runtime/index.d.ts +2 -2
- package/dist/runtime/index.js +1 -1
- package/dist/testing/native.js +1 -1
- package/native/darwin-arm64/openrtc-node-host +0 -0
- package/native/darwin-arm64/openrtc-node-host.manifest.json +4 -4
- package/native/darwin-x64/openrtc-node-host +0 -0
- package/native/darwin-x64/openrtc-node-host.manifest.json +4 -4
- package/native/linux-x64/openrtc-node-host +0 -0
- package/native/linux-x64/openrtc-node-host.manifest.json +4 -4
- package/package.json +3 -2
- package/dist/chunk-KSIYKQR6.js +0 -1
package/dist/{DelegatingRuntimeAdapter-DXeVrxQJ.d.ts → DelegatingRuntimeAdapter-DLrTF5Nr.d.ts}
RENAMED
|
@@ -34,6 +34,15 @@ interface RuntimeBridgeOptions {
|
|
|
34
34
|
spaceAuth?: 'scoped-token';
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
type TicketMeshAction = {
|
|
38
|
+
type: 'connect' | 'send' | 'invite';
|
|
39
|
+
nodeId?: string;
|
|
40
|
+
ticket?: string;
|
|
41
|
+
frame?: string;
|
|
42
|
+
timeoutMs?: number;
|
|
43
|
+
id?: string;
|
|
44
|
+
invitation?: string;
|
|
45
|
+
};
|
|
37
46
|
declare abstract class DelegatingRuntimeAdapter implements ISignalingBackend {
|
|
38
47
|
protected readonly backend: ISignalingBackend;
|
|
39
48
|
protected constructor(backend: ISignalingBackend);
|
|
@@ -105,6 +114,13 @@ declare abstract class DelegatingRuntimeAdapter implements ISignalingBackend {
|
|
|
105
114
|
startAutoConnectOnce(userId: string, localDeviceId: string): Promise<void>;
|
|
106
115
|
getEndpointTicket(): Promise<string>;
|
|
107
116
|
getTicketWithToken(scope: GrantScope, maxConnections: number): Promise<string | null>;
|
|
117
|
+
issueTicketInvite(id: string, maxPeers: number, mesh: boolean): Promise<string>;
|
|
118
|
+
issueTicketMesh(id: string, maxPeers: number, onAction?: (action: TicketMeshAction) => Promise<void>): Promise<string>;
|
|
119
|
+
joinTicketMesh(invitation: string, onAction?: (action: TicketMeshAction) => Promise<void>): Promise<string>;
|
|
120
|
+
onTicketMeshInvite(id: string, callback: (invitation: string) => void): Promise<() => void>;
|
|
121
|
+
receiveTicketMeshFrame(id: string, connectionId: string, frame: string): Promise<void>;
|
|
122
|
+
ticketMeshIssuerNode(id: string): Promise<string>;
|
|
123
|
+
closeTicketMesh(id: string): Promise<void>;
|
|
108
124
|
registerSessionToken(token: string, scope: GrantScope, maxConnections: number, expiresAtMs?: number): Promise<void>;
|
|
109
125
|
revokeTokens(scope: GrantScope): Promise<string[]>;
|
|
110
126
|
openPeerBi(id: string, timeoutMs?: number): Promise<BackendPeerBiStream>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as RuntimeBridgeOptions, D as DelegatingRuntimeAdapter } from './DelegatingRuntimeAdapter-
|
|
1
|
+
import { R as RuntimeBridgeOptions, D as DelegatingRuntimeAdapter } from './DelegatingRuntimeAdapter-DLrTF5Nr.js';
|
|
2
2
|
import { P as PlutoIpcBridge } from './ipc-DgzKqHH3.js';
|
|
3
3
|
import { S as ServiceErrorObservation, af as BackendConnectionState, ag as NativePeerDataEvent, Y as Device } from './Connection-BU8g28lx.js';
|
|
4
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as WasmBridge,a as loadBrowserWasmRuntimeModule}from'./chunk-
|
|
1
|
+
export{b as WasmBridge,a as loadBrowserWasmRuntimeModule}from'./chunk-YCQH66MU.js';import'./chunk-AYHD4X2R.js';import'./chunk-WD47V4PK.js';import'./chunk-XMYBBLYK.js';import'./chunk-OT7IPLZE.js';import'./chunk-OWKAJPOI.js';import'./chunk-67RYEH6T.js';import'./chunk-CNAW5BZ3.js';import'./chunk-CCCYE3XN.js';import'./chunk-577A77JB.js';import'./chunk-JPBW67B3.js';import'./chunk-2GX6GB6L.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {r}from'./chunk-
|
|
1
|
+
import {r}from'./chunk-LAL63F6X.js';import {a}from'./chunk-WD47V4PK.js';function v(i,d){let t=new r(i,d),a$1=i.spaceKey??i.space,l=(i.discoveryMode===void 0||i.discoveryMode==="space")&&typeof i.apiKey=="string"&&i.apiKey.trim().length>0&&typeof a$1=="string"&&a$1.trim().length>0,o={runtime:t,async setAuthContext(e){await t.setAuthContext(e);},async syncPlutoAuth(e){if(l)return;let n=a(),c=n.getCurrentUser(),r=(typeof e?.userId=="string"?e.userId.trim():"")||c?.uid||null;if(!r){await o.setAuthContext(null);return}let m=await n.getIdToken({forceRefresh:e?.forceRefresh??false}).catch(()=>null),g=n.getCurrentUser()?.refreshToken??null,h=n.getCurrentUser()?.stsTokenManager?.expirationTime??null;await o.setAuthContext({userId:r,token:m,refreshToken:g,tokenProvider:async y=>n.getIdToken({forceRefresh:y??false}),expiresAtMs:h});},bindPlutoAuthHost(){let e=a();return o.syncPlutoAuth({userId:e.getCurrentUser()?.uid??null,forceRefresh:false}),e.onIdTokenChanged(n=>{o.syncPlutoAuth({userId:n?.uid??null,forceRefresh:false});})},signInWithPluto:()=>t.signInWithPluto(),signOut:()=>t.signOut(),stopManagedSession:()=>t.stopManagedSession(),startManagedSession:e=>t.startManagedSession(e),onAuthChange:e=>t.onIdentityChange(e),getManagedNodeId:e=>t.getManagedNodeId(e),getRuntimeStatus:()=>t.getRuntimeStatus(),listDeviceStatus:()=>t.listDeviceStatus(),watchDeviceStatus:e=>t.watchDeviceStatus(e),connectDevice:(e,n)=>t.connectDevice(e,n),excludeAutoConnect:(e,n)=>t.excludeAutoConnect(e,n)};return Object.defineProperty(o,"identity",{get:()=>t.identity,enumerable:true}),o}export{v as a};
|