openrtc 2.0.0-rc.12 → 2.0.0-rc.13

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.
Files changed (66) hide show
  1. package/dist/{DelegatingRuntimeAdapter-BLNigcS4.d.ts → DelegatingRuntimeAdapter-Btvzi1s9.d.ts} +2 -2
  2. package/dist/OpenRTCShared-LDKG5RPN.js +1 -0
  3. package/dist/WasmBridge-7AS445EV.js +1 -0
  4. package/dist/chunk-GBIGWN5H.js +3 -0
  5. package/dist/{chunk-4UZFT2P6.js → chunk-MHQHFEYX.js} +1 -1
  6. package/dist/chunk-PQK5SJ47.js +1 -0
  7. package/dist/{chunk-23XC6TGK.js → chunk-QGGQ3SRF.js} +1 -1
  8. package/dist/{chunk-RD3JEGGF.js → chunk-QHSM5NFZ.js} +2 -2
  9. package/dist/{chunk-KWXAZUAZ.js → chunk-RLRBSNLB.js} +1 -1
  10. package/dist/{chunk-7Z6N46RB.js → chunk-RRMBD5OL.js} +1 -1
  11. package/dist/chunk-TAGQBG3A.js +2 -0
  12. package/dist/chunk-Z2WVSXPW.js +1 -0
  13. package/dist/chunk-ZI47WSO6.js +1 -0
  14. package/dist/dist-FIVA6EPA.js +277 -0
  15. package/dist/factories-CKVQIMP6.js +1 -0
  16. package/dist/index.d.ts +4 -6
  17. package/dist/index.js +1 -1
  18. package/dist/ipcFactory-KNWHT65X.js +1 -0
  19. package/dist/native.d.ts +4 -7
  20. package/dist/native.js +1 -1
  21. package/dist/openrtc-CBUEX4W4.js +2 -0
  22. package/dist/openrtc_bg.wasm +0 -0
  23. package/dist/runtime/WasmRuntimeAdapter.d.ts +2 -2
  24. package/dist/runtime/WasmRuntimeAdapter.js +1 -1
  25. package/dist/runtime/device-status.d.ts +2 -2
  26. package/dist/runtime/index.d.ts +22 -59
  27. package/dist/runtime/index.js +1 -2
  28. package/dist/testing.d.ts +7 -17
  29. package/dist/testing.js +1 -1
  30. package/dist/transport/index.d.ts +2 -2
  31. package/dist/transport/index.js +1 -1
  32. package/dist/{OpenRTCShared-BswnbjpG.d.ts → types-1ivghCqV.d.ts} +257 -7
  33. package/dist/{types-D0pqNSOf.d.ts → types-Br65RHyy.d.ts} +2 -2
  34. package/dist/{types-BHePJWbM.d.ts → types-DHuvdODq.d.ts} +1 -1
  35. package/package.json +1 -25
  36. package/dist/OpenRTCShared-TKAQLONA.js +0 -1
  37. package/dist/WasmBridge-FBEUEAFX.js +0 -1
  38. package/dist/auth/index.d.ts +0 -78
  39. package/dist/auth/index.js +0 -1
  40. package/dist/auth/internal.d.ts +0 -4
  41. package/dist/auth/internal.js +0 -1
  42. package/dist/chunk-2QHDEGVX.js +0 -1
  43. package/dist/chunk-3HCG7RQF.js +0 -2
  44. package/dist/chunk-7LYYPXCV.js +0 -1
  45. package/dist/chunk-AHHBPPQW.js +0 -3
  46. package/dist/chunk-BXFXPIXO.js +0 -1
  47. package/dist/chunk-EXE6ZAE7.js +0 -1
  48. package/dist/chunk-I4TY5LGB.js +0 -1
  49. package/dist/chunk-K37WVIZL.js +0 -1
  50. package/dist/chunk-N26S7V4N.js +0 -1
  51. package/dist/chunk-N4SX7C3W.js +0 -2
  52. package/dist/chunk-NB4H5TP3.js +0 -1
  53. package/dist/chunk-PDXJVQ7Z.js +0 -2
  54. package/dist/chunk-Q4QVXWCW.js +0 -1
  55. package/dist/chunk-RKLFCEAL.js +0 -1
  56. package/dist/chunk-VK6KX433.js +0 -1
  57. package/dist/factories-OKSJ3MCY.js +0 -1
  58. package/dist/ipc-CflAVodw.d.ts +0 -11
  59. package/dist/ipcFactory-MDM3O5ZJ.js +0 -1
  60. package/dist/openrtc-C53CKZUM.js +0 -2
  61. package/dist/runtime/legacy.d.ts +0 -18
  62. package/dist/runtime/legacy.js +0 -1
  63. package/dist/runtime/tauri.d.ts +0 -6
  64. package/dist/runtime/tauri.js +0 -1
  65. package/dist/tauri-BgLgJoQA.d.ts +0 -33
  66. package/dist/types-byWIP-WI.d.ts +0 -234
@@ -1,4 +1,4 @@
1
- import { D as DiscoveryMode, A as AuthMode, S as SignalingMode, C as ClientOptions, E as ExplicitFileDataSendParams, I as ISignalingBackend, R as RuntimeIdentity, a as RoomMember, b as Device, c as DeviceStatusSnapshot, P as PeerSessionSnapshot, d as ResolvedPeerIdentity, M as ManagedConnectionRecord, e as SignalingEnvelope, f as DeviceEvent, g as DesiredPeerProjection, h as SignalingSession, i as SessionEvent, L as LocalDeviceInfo, N as NativeManagedSessionStartResult, G as GrantScope, B as BackendPeerBiStream, j as BackendPeerUniStream, k as NativeConnectParams, l as NativeConnectResult, m as BackendConnectionState } from './types-BHePJWbM.js';
1
+ import { D as DiscoveryMode, A as AuthMode, S as SignalingMode, C as ClientOptions, E as ExplicitFileDataSendParams, I as ISignalingBackend, R as RuntimeIdentity, a as RoomMember, b as Device, c as DeviceStatusSnapshot, P as PeerSessionSnapshot, d as ResolvedPeerIdentity, M as ManagedConnectionRecord, e as SignalingEnvelope, f as DeviceEvent, g as DesiredPeerProjection, h as SignalingSession, i as SessionEvent, L as LocalDeviceInfo, N as NativeManagedSessionStartResult, G as GrantScope, B as BackendPeerBiStream, j as BackendPeerUniStream, k as NativeConnectParams, l as NativeConnectResult, m as BackendConnectionState } from './types-DHuvdODq.js';
2
2
  import { A as AuthContext } from './IEngineBridge-BbsT8hof.js';
3
3
  import { R as RuntimeCapabilities } from './capabilities-YSskrE8H.js';
4
4
 
@@ -97,7 +97,7 @@ declare abstract class DelegatingRuntimeAdapter implements ISignalingBackend {
97
97
  startAutoConnectOnce(userId: string, localDeviceId: string): Promise<void>;
98
98
  getEndpointTicket(): Promise<string>;
99
99
  getEndpointTicketWithToken(scope: GrantScope, maxConnections: number): Promise<string | null>;
100
- registerSessionToken(token: string, scope: GrantScope, maxConnections: number): Promise<void>;
100
+ registerSessionToken(token: string, scope: GrantScope, maxConnections: number, expiresAtMs?: number): Promise<void>;
101
101
  revokeSessionTokensByScope(scope: GrantScope): Promise<string[]>;
102
102
  openPeerBi(id: string, timeoutMs?: number): Promise<BackendPeerBiStream>;
103
103
  incoming_streams(): Promise<ReadableStream<unknown>>;
@@ -0,0 +1 @@
1
+ import {p}from'./chunk-QHSM5NFZ.js';import'./chunk-C7YN5MSV.js';function O(i){let s=p({...i});if("auth"in i&&!i.authMode){let n=i.auth;s.authMode=n==="none"?"anonymous":n;}if("identity"in i){let n=i.identity,r=n==="temporary"?"ephemeral":n;!i.deviceIdPersistence&&!i.nodeIdPersistence&&(s.deviceIdPersistence=r),!i.endpointIdPersistence&&!i.nodeIdPersistence&&(s.endpointIdPersistence=r);}return "namespace"in i&&!i.storagePrefix&&(s.storagePrefix=i.namespace),"privacy"in i&&i.strictMode===void 0&&(s.strictMode=!!i.privacy),s}function I(i,s){let n=i.runtime,r=Object.create(n),l=async e=>{if(typeof e!="string")return e;let o=(await n.listDevices()).find(c=>c.deviceId===e);if(!o)throw new Error(`OpenRTC device '${e}' is not currently discoverable.`);return o},u=async e=>({...e,localDeviceId:e?.localDeviceId??await n.getLocalDeviceId()??""}),R=async e=>{let{device:t,scope:o,...c}=e,a=c.deviceId??(typeof t=="string"?t:t?.deviceId)??null,m=c.ticket??(typeof t=="string"?void 0:t?.ticket);a&&!m&&(m=(await l(a).catch(()=>null))?.ticket);let d={...c,scope:o??"session"};return a&&(d.deviceId=a),m&&(d.ticket=m),d},g={list:()=>n.listDevices(),startSession:(e={})=>n.startManagedSession({...e,platform:e.platform??s}),stopSession:e=>n.stopManagedSession(e),listWithStatus:()=>n.listDevicesWithStatus(),watch:e=>n.watchDevices(e),watchWithStatus:e=>n.watchDevicesWithStatus(e),connect:async(e,t)=>n.connectDevice(await l(e),await u(t)),connectWithRetry:async(e,t,o)=>n.connectDeviceWithRetry(await l(e),t,o),disconnect:e=>n.disconnectDevice(e),update:(e,t)=>n.updateDevice(e,t),delete:e=>n.deleteDevice(e),localId:()=>n.getLocalDeviceId(),localInfo:()=>n.getLocalDeviceInfo(),localProfile:e=>n.getLocalDeviceProfile(e),updateLocalName:e=>n.updateLocalDeviceName(e)},v={watch:e=>n.watchPeerStates(e),watchLifecycle:e=>n.watchPeerLifecycle(e),get:e=>n.getPeerState(e),listConnected:()=>n.listConnectedPeers(),connect:e=>n.connectPeer(e),disconnect:(e,t)=>n.disconnectPeer(e,t),forceDisconnect:e=>n.forceDisconnectPeer(e),session:e=>n.getPeerSession(e),sessions:()=>n.listPeerSessions(),waitConnected:(e,t)=>n.waitForConnectedPeer(e,t),readiness:(e,t)=>n.getPeerReadiness(e,t),health:e=>n.getPeerHealth(e),identity:e=>n.resolvePeerIdentity(e),addScope:(e,t)=>n.addPeerScope(e,t),releaseScope:(e,t)=>n.releasePeerScope(e,t),scopes:e=>n.getPeerScopes(e),refresh:()=>n.refreshPeerSnapshot()},C={register:e=>n.registerChannel(e),unregister:e=>n.unregisterChannel(e),list:()=>n.listChannels(),openBi:(e,t,o)=>n.openPeerBi(e,{...o,channelId:t}),openUni:(e,t,o)=>n.openPeerUni(e,{...o,channelId:t}),onIncoming:e=>n.onIncomingStream(e),onIncomingChannel:(e,t)=>n.onIncomingChannelStream(e,o=>{if(o.channel)return t(o)}),connect:async e=>n.connectScopedChannel(await R(e)),connectScoped:e=>n.connectScopedChannel(e)},P={create:e=>n.createRoom(e),join:(e,t)=>n.joinRoom(e,t),leave:e=>n.leaveRoom(e),watch:(e,t)=>n.watchRoom(e,t),members:e=>n.getRoomMembers(e)},h={raw:()=>n.getInvite(),share:e=>n.getTicketWithToken("share",e?.maxConnections??1),grant:(e,t)=>n.getTicketWithToken(e,t?.maxConnections??0),revoke:e=>n.revokeTokensByScope(e)},S={status:()=>n.getRuntimeStatus(),policy:()=>n.getRuntimePolicy(),capabilities:()=>n.getRuntimeCapabilities(),capabilityProfile:()=>n.getCapabilityProfile(),connectionStates:()=>n.getConnectionStates(),onConnectionStateChange:e=>n.onConnectionStateChange(e),connections:()=>n.getConnections(),applicationReadyConnections:e=>n.getApplicationReadyConnections(e),onConnection:e=>n.onConnection(e),onDisconnection:e=>n.onDisconnection(e),onConnectionEvent:e=>n.onConnectionEvent(e),forceReconnectSnapshot:()=>n.forceReconnectSnapshot(),peerReconciliation:()=>n.getPeerReconciliationStats()},b={runtime:n,assembly:i,nodeId:()=>n.getNodeId(),nodeIdFromTicket:e=>n.getNodeIdFromTicket(e),endpointTicket:()=>n.getEndpointTicket(),connectRaw:e=>n.connectRaw(e),openBi:e=>n.openBi(e),openUni:e=>n.openUni(e),isConnected:e=>n.isConnected(e),disconnectNode:e=>n.disconnectNode(e),setAutoConnectExcluded:(e,t)=>n.setAutoConnectExcluded(e,t),notifyNetworkChange:e=>n.notifyNetworkChange(e)};return Object.defineProperties(r,{devices:{get:()=>g,enumerable:true},peers:{get:()=>v,enumerable:true},channels:{get:()=>C,enumerable:true},rooms:{get:()=>P,enumerable:true},tickets:{get:()=>h,enumerable:true},diagnostics:{get:()=>S,enumerable:true},advanced:{get:()=>b,enumerable:true},setAuth:{value:e=>i.setAuthContext(e),enumerable:true,writable:true,configurable:true},setAuthContext:{value:e=>i.setAuthContext(e),enumerable:true,writable:true,configurable:true},syncPlutoAuth:{value:e=>i.syncPlutoAuth(e),enumerable:true,writable:true,configurable:true},bindPlutoAuthHost:{value:()=>i.bindPlutoAuthHost(),enumerable:true,writable:true,configurable:true},signIn:{value:()=>i.signInWithPluto(),enumerable:true,writable:true,configurable:true},signOut:{value:()=>i.signOut(),enumerable:true,writable:true,configurable:true},runtime:{get:()=>n,enumerable:false},_assembly:{get:()=>i,enumerable:false}}),r}export{O as resolveOptions,I as wrapAssembly};
@@ -0,0 +1 @@
1
+ export{y as WasmBridge}from'./chunk-TAGQBG3A.js';import'./chunk-NT5YHZQH.js';import'./chunk-PQK5SJ47.js';import'./chunk-QHSM5NFZ.js';import'./chunk-C7YN5MSV.js';