openrtc 1.0.18 → 1.0.21

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 (32) hide show
  1. package/dist/{DelegatingRuntimeAdapter-ew5WdyxA.d.ts → DelegatingRuntimeAdapter-B9j_lTDM.d.ts} +4 -2
  2. package/dist/IEngineBridge-BbsT8hof.d.ts +17 -0
  3. package/dist/{assembly-CXj9yrhu.d.ts → assembly-Ddq1o4NV.d.ts} +3 -3
  4. package/dist/chunk-4S2WYUYW.js +3 -0
  5. package/dist/chunk-AIHDHYZP.js +2 -0
  6. package/dist/chunk-E5CLEIY6.js +2 -0
  7. package/dist/chunk-IF5JSSMC.js +1 -0
  8. package/dist/{chunk-YR2WJPGT.js → chunk-JUXDXE5B.js} +1 -1
  9. package/dist/{chunk-5CJVJDPY.js → chunk-TWTZVAJO.js} +1 -1
  10. package/dist/index.d.ts +8 -8
  11. package/dist/index.js +1 -1
  12. package/dist/native.d.ts +6 -6
  13. package/dist/native.js +1 -1
  14. package/dist/openrtc_bg.wasm +0 -0
  15. package/dist/runtime/WasmRuntimeAdapter.d.ts +3 -3
  16. package/dist/runtime/WasmRuntimeAdapter.js +1 -1
  17. package/dist/runtime/device-status.d.ts +3 -3
  18. package/dist/runtime/index.d.ts +9 -9
  19. package/dist/runtime/index.js +1 -1
  20. package/dist/runtime/tauri.d.ts +4 -4
  21. package/dist/runtime/tauri.js +1 -1
  22. package/dist/{spaceTokens-D2zInUAM.d.ts → spaceTokens-DyOOxC7x.d.ts} +4 -4
  23. package/dist/{tauri-Briw2Hf9.d.ts → tauri-DZJ_ZEfB.d.ts} +2 -2
  24. package/dist/transport/index.d.ts +2 -2
  25. package/dist/{types-BfEvaxS7.d.ts → types-BAwo8biA.d.ts} +8 -2
  26. package/dist/{types-BDtleofB.d.ts → types-CL4Da0BR.d.ts} +9 -0
  27. package/package.json +1 -1
  28. package/dist/IEngineBridge-C7OT2CRv.d.ts +0 -10
  29. package/dist/chunk-EQ5BQO3B.js +0 -3
  30. package/dist/chunk-KLDDCOZ7.js +0 -2
  31. package/dist/chunk-KPPJMTHP.js +0 -2
  32. package/dist/chunk-RZPWE4WH.js +0 -1
@@ -1,5 +1,5 @@
1
- import { D as DiscoveryMode, A as AuthMode, d as SignalingMode, e as ClientOptions, E as ExplicitFileDataSendParams, I as ISignalingBackend, f as RuntimeIdentity, g as RoomMember, h as Device, i as DeviceStatusSnapshot, P as PeerSessionSnapshot, R as ResolvedPeerIdentity, M as ManagedConnectionRecord, j as SignalingEnvelope, k as DeviceEvent, l as DesiredPeerProjection, m as SignalingSession, n as SessionEvent, L as LocalDeviceInfo, N as NativeManagedSessionStartResult, G as GrantScope, B as BackendPeerBiStream, o as BackendPeerUniStream, p as NativeConnectParams, q as NativeConnectResult, r as BackendConnectionState } from './types-BDtleofB.js';
2
- import { A as AuthContext } from './IEngineBridge-C7OT2CRv.js';
1
+ import { D as DiscoveryMode, A as AuthMode, d as SignalingMode, e as ClientOptions, E as ExplicitFileDataSendParams, I as ISignalingBackend, f as RuntimeIdentity, g as RoomMember, h as Device, i as DeviceStatusSnapshot, P as PeerSessionSnapshot, R as ResolvedPeerIdentity, M as ManagedConnectionRecord, j as SignalingEnvelope, k as DeviceEvent, l as DesiredPeerProjection, m as SignalingSession, n as SessionEvent, L as LocalDeviceInfo, N as NativeManagedSessionStartResult, G as GrantScope, B as BackendPeerBiStream, o as BackendPeerUniStream, p as NativeConnectParams, q as NativeConnectResult, r as BackendConnectionState } from './types-CL4Da0BR.js';
2
+ import { A as AuthContext } from './IEngineBridge-BbsT8hof.js';
3
3
  import { R as RuntimeCapabilities } from './capabilities-CaqXOIUU.js';
4
4
 
5
5
  interface WasmBridgeOptions {
@@ -11,6 +11,7 @@ interface WasmBridgeOptions {
11
11
  signalingMode?: SignalingMode;
12
12
  projectId?: string;
13
13
  coordinationGateway?: ClientOptions['coordinationGateway'];
14
+ platformAttestationTokenProvider?: ClientOptions['platformAttestationTokenProvider'];
14
15
  /** Internal host hint used by the provider-neutral gateway projection. */
15
16
  coordinationPlatformType?: 'web' | 'desktop' | 'mobile';
16
17
  storagePrefix?: string;
@@ -105,6 +106,7 @@ declare abstract class DelegatingRuntimeAdapter implements ISignalingBackend {
105
106
  openPeerUni(id: string, timeoutMs?: number): Promise<BackendPeerUniStream>;
106
107
  connectToDevice(params: NativeConnectParams): Promise<NativeConnectResult>;
107
108
  disconnectDevice(deviceId: string): Promise<void>;
109
+ setAutoConnectExcluded(deviceId: string, excluded: boolean): Promise<void>;
108
110
  isConnected(nodeId: string): Promise<boolean>;
109
111
  getConnectionStates(): Promise<BackendConnectionState[]>;
110
112
  onConnectionStateChange(callback: (state: BackendConnectionState) => void): Promise<() => void> | (() => void);
@@ -0,0 +1,17 @@
1
+ type AuthContext = {
2
+ userId: string;
3
+ token?: string | null;
4
+ refreshToken?: string | null;
5
+ customToken?: string | null;
6
+ tokenProvider?: (forceRefresh?: boolean) => Promise<string | null>;
7
+ /**
8
+ * Supplies the platform attestation token required by the configured
9
+ * control plane. Firebase-backed hosted deployments use App Check today;
10
+ * keeping acquisition on the auth context prevents coordination code from
11
+ * owning a second Firebase app or assuming one global project.
12
+ */
13
+ appCheckTokenProvider?: (forceRefresh?: boolean) => Promise<string | null>;
14
+ expiresAtMs?: number | null;
15
+ };
16
+
17
+ export type { AuthContext as A };
@@ -1,6 +1,6 @@
1
- import { A as AuthContext } from './IEngineBridge-C7OT2CRv.js';
2
- import { G as GrantScope, I as ISignalingBackend, b as ConnectDeviceHooks, c as ConnectDeviceOptions, C as ConnectDeviceResult, M as ManagedConnectionRecord, P as PeerSessionSnapshot, R as ResolvedPeerIdentity, Y as AppLimits, p as NativeConnectParams, q as NativeConnectResult, E as ExplicitFileDataSendParams } from './types-BDtleofB.js';
3
- import { h as RuntimePeerState, s as RuntimeConnectionStateSnapshot, j as RuntimePeerReadinessSnapshot, i as RuntimePeerConnectOptions, C as Connection, n as RuntimeIncomingStream, R as RuntimeClientOptions, H as RuntimeAuthIdentity, f as RuntimeLocalDeviceInfo, g as RuntimeLocalDeviceProfile, c as RuntimeDevice, a as RuntimeManagedSessionOptions, b as RuntimeManagedSession, d as RuntimeDeviceStatusSnapshot, e as RuntimeDeviceConnectOptions, X as RuntimeSession, q as RuntimeJoinRoomOptions, r as RuntimeRoomMember, K as RuntimeConnectionTarget, o as RuntimeScopedChannelOptions, p as RuntimeScopedLogicalChannel, m as RuntimePeerStreamOptions, v as RuntimeRawConnection, l as RuntimeChannelDescriptor, V as RuntimePresenceLoopOptions, k as RuntimePeerHealth, t as RuntimeApplicationPayloadReadinessOptions, u as RuntimeConnectionEvent } from './types-BfEvaxS7.js';
1
+ import { A as AuthContext } from './IEngineBridge-BbsT8hof.js';
2
+ import { G as GrantScope, I as ISignalingBackend, b as ConnectDeviceHooks, c as ConnectDeviceOptions, C as ConnectDeviceResult, M as ManagedConnectionRecord, P as PeerSessionSnapshot, R as ResolvedPeerIdentity, Y as AppLimits, p as NativeConnectParams, q as NativeConnectResult, E as ExplicitFileDataSendParams } from './types-CL4Da0BR.js';
3
+ import { h as RuntimePeerState, s as RuntimeConnectionStateSnapshot, j as RuntimePeerReadinessSnapshot, i as RuntimePeerConnectOptions, C as Connection, n as RuntimeIncomingStream, R as RuntimeClientOptions, H as RuntimeAuthIdentity, f as RuntimeLocalDeviceInfo, g as RuntimeLocalDeviceProfile, c as RuntimeDevice, a as RuntimeManagedSessionOptions, b as RuntimeManagedSession, d as RuntimeDeviceStatusSnapshot, e as RuntimeDeviceConnectOptions, X as RuntimeSession, q as RuntimeJoinRoomOptions, r as RuntimeRoomMember, K as RuntimeConnectionTarget, o as RuntimeScopedChannelOptions, p as RuntimeScopedLogicalChannel, m as RuntimePeerStreamOptions, v as RuntimeRawConnection, l as RuntimeChannelDescriptor, V as RuntimePresenceLoopOptions, k as RuntimePeerHealth, t as RuntimeApplicationPayloadReadinessOptions, u as RuntimeConnectionEvent } from './types-BAwo8biA.js';
4
4
  import { R as RuntimeCapabilities, a as RuntimeCapabilityProfile } from './capabilities-CaqXOIUU.js';
5
5
 
6
6
  /**