openrtc 0.1.0 → 0.1.2
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/README.md +1 -2
- package/dist/{core/types.d.ts → DelegatingRuntimeAdapter-CW8d78dZ.d.ts} +275 -95
- package/dist/IpcRuntimeAdapter-CT-W0Mtp.d.ts +24 -0
- package/dist/auth/index.d.ts +75 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/internal.d.ts +3 -1
- package/dist/auth/internal.js +1 -1
- package/dist/chunk-4MH42GUI.js +2 -0
- package/dist/chunk-CQAKCS2S.js +4 -0
- package/dist/chunk-D54VGRRH.js +1 -0
- package/dist/chunk-DIQYFAGL.js +2 -0
- package/dist/chunk-PZ25OCVG.js +2 -0
- package/dist/chunk-UVASANPG.js +1 -0
- package/dist/factories-0TxDPMeu.d.ts +1041 -0
- package/dist/index.d.ts +160 -3
- package/dist/index.js +1 -3
- package/dist/openrtc_bg.wasm +0 -0
- package/dist/runtime/WasmRuntimeAdapter.d.ts +5 -3
- package/dist/runtime/WasmRuntimeAdapter.js +1 -11
- package/dist/runtime/index.d.ts +796 -6
- package/dist/runtime/index.js +1 -5
- package/dist/runtime/tauri.d.ts +12 -8
- package/dist/runtime/tauri.js +1 -22
- package/package.json +11 -7
- package/wasm/openrtc.d.ts +61 -25
- package/wasm/openrtc.js +417 -259
- package/wasm/openrtc_bg.wasm +0 -0
- package/wasm/openrtc_bg.wasm.d.ts +27 -24
- package/wasm/package.json +1 -1
- package/dist/OpenRTC.d.ts +0 -71
- package/dist/OpenRTC.js +0 -130
- package/dist/api/MediaTransport.d.ts +0 -7
- package/dist/api/MediaTransport.js +0 -262
- package/dist/api/PlutoPeerConnection.d.ts +0 -50
- package/dist/api/PlutoPeerConnection.js +0 -434
- package/dist/api/PlutoWebSocket.d.ts +0 -24
- package/dist/api/PlutoWebSocket.js +0 -113
- package/dist/api/PlutoWebTransport.d.ts +0 -29
- package/dist/api/PlutoWebTransport.js +0 -105
- package/dist/auth/host.d.ts +0 -73
- package/dist/auth/host.js +0 -513
- package/dist/compat/index.d.ts +0 -20
- package/dist/compat/index.js +0 -20
- package/dist/core/Client.d.ts +0 -352
- package/dist/core/Client.js +0 -3689
- package/dist/core/Connection.d.ts +0 -67
- package/dist/core/Connection.js +0 -404
- package/dist/core/IEngineBridge.d.ts +0 -18
- package/dist/core/IEngineBridge.js +0 -1
- package/dist/core/ISignalingTransport.d.ts +0 -13
- package/dist/core/ISignalingTransport.js +0 -1
- package/dist/core/PeerLifecycleManager.d.ts +0 -43
- package/dist/core/PeerLifecycleManager.js +0 -330
- package/dist/core/PeerProjectionStore.d.ts +0 -43
- package/dist/core/PeerProjectionStore.js +0 -327
- package/dist/core/PlutoRTC.d.ts +0 -13
- package/dist/core/PlutoRTC.js +0 -26
- package/dist/core/Room.d.ts +0 -47
- package/dist/core/Room.js +0 -376
- package/dist/core/Signaling.d.ts +0 -39
- package/dist/core/Signaling.js +0 -147
- package/dist/core/bridges/BridgeCodecs.d.ts +0 -19
- package/dist/core/bridges/BridgeCodecs.js +0 -317
- package/dist/core/bridges/BrowserFirestoreRooms.d.ts +0 -36
- package/dist/core/bridges/BrowserFirestoreRooms.js +0 -169
- package/dist/core/bridges/BrowserFirestoreSignaling.d.ts +0 -111
- package/dist/core/bridges/BrowserFirestoreSignaling.js +0 -1010
- package/dist/core/bridges/NativeIpcBridge.d.ts +0 -156
- package/dist/core/bridges/NativeIpcBridge.js +0 -1472
- package/dist/core/bridges/RtdbPresence.d.ts +0 -122
- package/dist/core/bridges/RtdbPresence.js +0 -201
- package/dist/core/bridges/TauriBridge.d.ts +0 -8
- package/dist/core/bridges/TauriBridge.js +0 -7
- package/dist/core/bridges/WasmBridge.d.ts +0 -233
- package/dist/core/bridges/WasmBridge.js +0 -1811
- package/dist/core/config.d.ts +0 -31
- package/dist/core/config.js +0 -138
- package/dist/core/transports/ITransport.d.ts +0 -12
- package/dist/core/transports/ITransport.js +0 -1
- package/dist/core/transports/LocalDaemonBridge.d.ts +0 -41
- package/dist/core/transports/LocalDaemonBridge.js +0 -227
- package/dist/core/transports/TauriSignaling.d.ts +0 -28
- package/dist/core/transports/TauriSignaling.js +0 -373
- package/dist/core/transports/TransportFactory.d.ts +0 -9
- package/dist/core/transports/TransportFactory.js +0 -59
- package/dist/core/transports/WasmSignaling.d.ts +0 -78
- package/dist/core/transports/WasmSignaling.js +0 -522
- package/dist/core/transports/WebRTCTransport.d.ts +0 -23
- package/dist/core/transports/WebRTCTransport.js +0 -132
- package/dist/core/trust.d.ts +0 -23
- package/dist/core/trust.js +0 -99
- package/dist/core/types.js +0 -19
- package/dist/moq/MoQMediaTransport.d.ts +0 -6
- package/dist/moq/MoQMediaTransport.js +0 -106
- package/dist/moq/MoQPublisher.d.ts +0 -22
- package/dist/moq/MoQPublisher.js +0 -179
- package/dist/moq/MoQSession.d.ts +0 -35
- package/dist/moq/MoQSession.js +0 -166
- package/dist/moq/MoQSubscriber.d.ts +0 -19
- package/dist/moq/MoQSubscriber.js +0 -235
- package/dist/moq/common.d.ts +0 -47
- package/dist/moq/common.js +0 -304
- package/dist/moq/messages.d.ts +0 -105
- package/dist/moq/messages.js +0 -367
- package/dist/presets/plutoHosted.d.ts +0 -13
- package/dist/presets/plutoHosted.js +0 -18
- package/dist/runtime/DelegatingRuntimeAdapter.d.ts +0 -68
- package/dist/runtime/DelegatingRuntimeAdapter.js +0 -250
- package/dist/runtime/IpcRuntimeAdapter.d.ts +0 -9
- package/dist/runtime/IpcRuntimeAdapter.js +0 -13
- package/dist/runtime/RuntimeClient.d.ts +0 -257
- package/dist/runtime/RuntimeClient.js +0 -1484
- package/dist/runtime/TauriRuntimeAdapter.d.ts +0 -1
- package/dist/runtime/TauriRuntimeAdapter.js +0 -1
- package/dist/runtime/factories.d.ts +0 -24
- package/dist/runtime/factories.js +0 -66
- package/dist/runtime/ipc.d.ts +0 -8
- package/dist/runtime/ipc.js +0 -65
- package/dist/runtime/ipcContract.d.ts +0 -46
- package/dist/runtime/ipcContract.js +0 -1
- package/dist/runtime/types.d.ts +0 -110
- package/dist/runtime/types.js +0 -1
- package/dist/transports/TauriTransport.d.ts +0 -17
- package/dist/transports/TauriTransport.js +0 -49
- package/dist/transports/WebTransport.d.ts +0 -23
- package/dist/transports/WebTransport.js +0 -71
- package/dist/utils/debug.d.ts +0 -4
- package/dist/utils/debug.js +0 -33
- package/dist/utils/runtime.d.ts +0 -1
- package/dist/utils/runtime.js +0 -10
package/dist/runtime/index.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './factories';
|
|
4
|
-
export * from './IpcRuntimeAdapter';
|
|
5
|
-
export * from './WasmRuntimeAdapter';
|
|
1
|
+
export{f as DriveGrantActorError,i as DriveGrantActorHandle,j as DriveGrantActorRegistry,k as RuntimeClient,b as RuntimeConnectionController,f as ScopedConnectionActorError,i as ScopedConnectionActorHandle,j as ScopedConnectionActorRegistry,e as clog,d as correlationForDriveGrantScope,m as createIpcClient,l as createWasmClient,g as driveGrantConnectionKey,h as driveGrantConnectionKeyToString,c as renderCorrelationFields,g as scopedConnectionKey,h as scopedConnectionKeyToString}from'../chunk-CQAKCS2S.js';export{a as WasmRuntimeAdapter}from'../chunk-D54VGRRH.js';export{b as TauriRuntimeAdapter,a as createTauriIpcBridge}from'../chunk-UVASANPG.js';export{b as IpcRuntimeAdapter}from'../chunk-DIQYFAGL.js';export{r as BROWSER_WASM_RUNTIME_CAPABILITIES,s as NATIVE_IPC_RUNTIME_CAPABILITIES,p as OPENRTC_RUNTIME_POLICY,t as cloneRuntimeCapabilities,q as getRuntimePolicy,i as logOpenRtcTeardownTrace}from'../chunk-PZ25OCVG.js';import'../chunk-4MH42GUI.js';
|
package/dist/runtime/tauri.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { N as NativeIpcBridgeOptions, I as IpcRuntimeAdapter, P as PlutoIpcBridge } from '../IpcRuntimeAdapter-CT-W0Mtp.js';
|
|
2
|
+
import '../DelegatingRuntimeAdapter-CW8d78dZ.js';
|
|
3
|
+
|
|
4
|
+
type TauriBridgeOptions = NativeIpcBridgeOptions;
|
|
5
|
+
|
|
4
6
|
/**
|
|
5
7
|
* @deprecated Native Tauri support now lives in the first-party `openrtc-tauri` package.
|
|
6
|
-
* This shim remains for one compatibility cycle.
|
|
8
|
+
* Removal target: OpenRTC 0.2.0. This shim remains for one compatibility cycle.
|
|
7
9
|
*/
|
|
8
|
-
|
|
10
|
+
declare function createTauriIpcBridge(): PlutoIpcBridge;
|
|
9
11
|
/**
|
|
10
12
|
* @deprecated Native Tauri support now lives in the first-party `openrtc-tauri` package.
|
|
11
|
-
* This shim remains for one compatibility cycle.
|
|
13
|
+
* Removal target: OpenRTC 0.2.0. This shim remains for one compatibility cycle.
|
|
12
14
|
*/
|
|
13
|
-
|
|
15
|
+
declare class TauriRuntimeAdapter extends IpcRuntimeAdapter {
|
|
14
16
|
constructor(options: TauriBridgeOptions);
|
|
15
17
|
}
|
|
16
|
-
|
|
18
|
+
type TauriRuntimeAdapterOptions = TauriBridgeOptions;
|
|
19
|
+
|
|
20
|
+
export { TauriRuntimeAdapter, type TauriRuntimeAdapterOptions, createTauriIpcBridge };
|
package/dist/runtime/tauri.js
CHANGED
|
@@ -1,22 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { createCompatTauriIpcBridge } from './ipc';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Native Tauri support now lives in the first-party `openrtc-tauri` package.
|
|
5
|
-
* This shim remains for one compatibility cycle.
|
|
6
|
-
*/
|
|
7
|
-
export function createTauriIpcBridge() {
|
|
8
|
-
return createCompatTauriIpcBridge();
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Native Tauri support now lives in the first-party `openrtc-tauri` package.
|
|
12
|
-
* This shim remains for one compatibility cycle.
|
|
13
|
-
*/
|
|
14
|
-
export class TauriRuntimeAdapter extends IpcRuntimeAdapter {
|
|
15
|
-
constructor(options) {
|
|
16
|
-
super({
|
|
17
|
-
...options,
|
|
18
|
-
bridge: createCompatTauriIpcBridge(),
|
|
19
|
-
allowWasmFallback: options.allowWasmFallback ?? false,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
1
|
+
export{b as TauriRuntimeAdapter,a as createTauriIpcBridge}from'../chunk-UVASANPG.js';import'../chunk-DIQYFAGL.js';import'../chunk-PZ25OCVG.js';import'../chunk-4MH42GUI.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openrtc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist/**/*.js",
|
|
28
28
|
"dist/**/*.d.ts",
|
|
29
|
+
"dist/**/*.wasm",
|
|
29
30
|
"README.md",
|
|
30
31
|
"wasm/openrtc.js",
|
|
31
32
|
"wasm/openrtc.d.ts",
|
|
@@ -39,6 +40,10 @@
|
|
|
39
40
|
"types": "./dist/index.d.ts",
|
|
40
41
|
"import": "./dist/index.js"
|
|
41
42
|
},
|
|
43
|
+
"./auth": {
|
|
44
|
+
"types": "./dist/auth/index.d.ts",
|
|
45
|
+
"import": "./dist/auth/index.js"
|
|
46
|
+
},
|
|
42
47
|
"./runtime": {
|
|
43
48
|
"types": "./dist/runtime/index.d.ts",
|
|
44
49
|
"import": "./dist/runtime/index.js"
|
|
@@ -51,10 +56,6 @@
|
|
|
51
56
|
"types": "./dist/runtime/tauri.d.ts",
|
|
52
57
|
"import": "./dist/runtime/tauri.js"
|
|
53
58
|
},
|
|
54
|
-
"./auth": {
|
|
55
|
-
"types": "./dist/auth/index.d.ts",
|
|
56
|
-
"import": "./dist/auth/index.js"
|
|
57
|
-
},
|
|
58
59
|
"./auth/internal": {
|
|
59
60
|
"types": "./dist/auth/internal.d.ts",
|
|
60
61
|
"import": "./dist/auth/internal.js"
|
|
@@ -62,10 +63,12 @@
|
|
|
62
63
|
"./package.json": "./package.json"
|
|
63
64
|
},
|
|
64
65
|
"scripts": {
|
|
65
|
-
"build": "
|
|
66
|
-
"build:
|
|
66
|
+
"build": "tsup",
|
|
67
|
+
"build:types": "tsc --noEmit",
|
|
68
|
+
"build:wasm": "cd ../../crates/openrtc && wasm-pack build --target web --out-dir ../../packages/openrtc/wasm && rm -rf ../../packages/openrtc/wasm/.gitignore",
|
|
67
69
|
"test": "pnpm run test:deterministic",
|
|
68
70
|
"test:deterministic": "OPENRTC_LIVE_TESTS=0 vitest run tests/unit tests/contract",
|
|
71
|
+
"test:emulator": "OPENRTC_EMULATOR_TESTS=1 OPENRTC_LIVE_TESTS=1 FIREBASE_AUTH_EMULATOR_HOST=127.0.0.1:9100 VITE_USE_EMULATORS=true VITE_OPENRTC_FIRESTORE_EMULATOR_HOST=127.0.0.1:8082 VITE_OPENRTC_RTDB_EMULATOR_HOST=127.0.0.1:9001 vitest run tests/emulator",
|
|
69
72
|
"test:live": "pnpm run build:wasm && pnpm run build && OPENRTC_LIVE_TESTS=1 vitest run tests/live",
|
|
70
73
|
"test:live:emulator": "OPENRTC_LIVE_TESTS=1 FIREBASE_AUTH_EMULATOR_HOST=127.0.0.1:9099 vitest run tests/live",
|
|
71
74
|
"test:watch": "vitest",
|
|
@@ -84,6 +87,7 @@
|
|
|
84
87
|
"@vitest/coverage-v8": "^4.0.18",
|
|
85
88
|
"happy-dom": "^20.5.0",
|
|
86
89
|
"playwright": "^1.58.2",
|
|
90
|
+
"tsup": "^8.5.1",
|
|
87
91
|
"typescript": "^5.0.0",
|
|
88
92
|
"vitest": "^4.0.18"
|
|
89
93
|
},
|
package/wasm/openrtc.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export class WasmClient {
|
|
|
49
49
|
free(): void;
|
|
50
50
|
[Symbol.dispose](): void;
|
|
51
51
|
add_peer_scope(id: string, scope: string): Promise<any>;
|
|
52
|
+
bind_connection_device_id(connection_id: string, device_id: string): Promise<any>;
|
|
52
53
|
/**
|
|
53
54
|
* Clear all short-lived session tokens and admission state.
|
|
54
55
|
*/
|
|
@@ -62,6 +63,7 @@ export class WasmClient {
|
|
|
62
63
|
delete_device(user_id: string, device_id: string): Promise<void>;
|
|
63
64
|
devices_with_status(user_id: string): Promise<any>;
|
|
64
65
|
disconnect(endpoint_id: string): Promise<void>;
|
|
66
|
+
disconnect_device(device_id: string, node_id_hint?: string | null): Promise<any>;
|
|
65
67
|
endpoint_id_from_ticket(ticket: string): string;
|
|
66
68
|
endpoint_ticket(): Promise<string>;
|
|
67
69
|
/**
|
|
@@ -75,7 +77,14 @@ export class WasmClient {
|
|
|
75
77
|
heartbeat_tick(room_id: string, member_id: string, tag: string): Promise<void>;
|
|
76
78
|
incoming_streams(): Promise<ReadableStream>;
|
|
77
79
|
init_iroh(secret_key?: Uint8Array | null): Promise<string>;
|
|
80
|
+
/**
|
|
81
|
+
* Returns the current iroh path kind for a connected peer.
|
|
82
|
+
*
|
|
83
|
+
* Returns one of `"direct-quic"`, `"relay"`, or `"unknown"`.
|
|
84
|
+
*/
|
|
85
|
+
iroh_path_kind(peer_id: string): Promise<string>;
|
|
78
86
|
iroh_secret_key(): Promise<Uint8Array>;
|
|
87
|
+
is_auto_connect_excluded(device_id: string): boolean;
|
|
79
88
|
is_connected(endpoint_id: string): Promise<boolean>;
|
|
80
89
|
join_room(room_id: string, user_id: string, ticket_str: string, my_node_id: string, tag: string): Promise<void>;
|
|
81
90
|
leave_room(room_id: string, my_node_id: string, tag: string): Promise<void>;
|
|
@@ -85,6 +94,12 @@ export class WasmClient {
|
|
|
85
94
|
node_addr(): Promise<string>;
|
|
86
95
|
open_bi(endpoint_id: string): Promise<BiStream>;
|
|
87
96
|
open_peer_bi(id: string, timeout_ms?: number | null): Promise<BiStream>;
|
|
97
|
+
/**
|
|
98
|
+
* Open a bi-stream to a peer that is transport-connected but may not yet
|
|
99
|
+
* be settled (auth-ready). Use for latency probes and other transport-level
|
|
100
|
+
* diagnostics where `settled_ready` is not required.
|
|
101
|
+
*/
|
|
102
|
+
open_peer_bi_transport_only(id: string, timeout_ms?: number | null): Promise<BiStream>;
|
|
88
103
|
open_peer_uni(id: string, timeout_ms?: number | null): Promise<WritableStream>;
|
|
89
104
|
open_uni(endpoint_id: string): Promise<WritableStream>;
|
|
90
105
|
peer_scopes(id: string): Promise<any>;
|
|
@@ -96,6 +111,11 @@ export class WasmClient {
|
|
|
96
111
|
* Present a session token to the remote host over the SDK-owned
|
|
97
112
|
* native main stream before application traffic starts.
|
|
98
113
|
* Returns the approved scope string once the host acknowledges admission.
|
|
114
|
+
*
|
|
115
|
+
* Also registers the connection in the Rust connection_manager and
|
|
116
|
+
* spawns a close-watcher task so that `connection-state-changed` is
|
|
117
|
+
* emitted when the peer drops the connection (the share-client
|
|
118
|
+
* transport-only path bypasses `start_wasm_connect_event_bridge`).
|
|
99
119
|
*/
|
|
100
120
|
present_session_token_to_host(endpoint_id: string, token: string): Promise<string>;
|
|
101
121
|
/**
|
|
@@ -104,6 +124,7 @@ export class WasmClient {
|
|
|
104
124
|
register_session_token(token: string, grant_scope: string, max_connections: number): void;
|
|
105
125
|
release_peer_scope(id: string, scope?: string | null): Promise<any>;
|
|
106
126
|
report_managed_connection_settled(connection_id: string, settled: boolean, device_id?: string | null): Promise<any>;
|
|
127
|
+
report_transport_status(connection_id: string, active_transport: string, parallel_transport?: string | null): Promise<any>;
|
|
107
128
|
resolve_peer_connection_records(id: string): Promise<any>;
|
|
108
129
|
/**
|
|
109
130
|
* Revoke a single token by value.
|
|
@@ -113,12 +134,24 @@ export class WasmClient {
|
|
|
113
134
|
* Revoke all tokens that match the given scope and disconnect affected peers.
|
|
114
135
|
*/
|
|
115
136
|
revoke_tokens_by_scope(grant_scope: string): Promise<any>;
|
|
137
|
+
runtime_policy(): any;
|
|
116
138
|
same_peer(left: string, right: string): Promise<boolean>;
|
|
117
139
|
search_devices(user_id: string): Promise<any>;
|
|
118
140
|
send_message(target_id: string, payload: string, state?: string | null, reply_payload?: string | null): Promise<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Send `data` to `peer_id` using the best available transport.
|
|
143
|
+
*
|
|
144
|
+
* Priority: WebRTC (if Connected) → MoQ (if Connected) → iroh-QUIC → iroh-relay.
|
|
145
|
+
*
|
|
146
|
+
* On WASM this always routes through iroh (relay or QUIC as iroh determines).
|
|
147
|
+
* Use the TypeScript `Connection.sendTyped()` for full transport priority on the
|
|
148
|
+
* browser side — this binding is primarily for symmetry and native callers.
|
|
149
|
+
*/
|
|
150
|
+
send_peer(id: string, data: Uint8Array): Promise<void>;
|
|
119
151
|
set_auth_token(token?: string | null): void;
|
|
120
|
-
set_auto_connect_excluded(device_id: string, excluded: boolean): void
|
|
152
|
+
set_auto_connect_excluded(device_id: string, excluded: boolean): Promise<void>;
|
|
121
153
|
set_offline(user_id: string): Promise<void>;
|
|
154
|
+
start_auto_connect(user_id: string, local_device_id: string): void;
|
|
122
155
|
start_presence_loop(user_id: string, device_name: string, ticket: string, metadata?: string | null): void;
|
|
123
156
|
stop_auth_scoped_activity(): void;
|
|
124
157
|
stop_auto_connect(): void;
|
|
@@ -156,6 +189,9 @@ export interface InitOutput {
|
|
|
156
189
|
readonly bistream_recv: (a: number) => any;
|
|
157
190
|
readonly bistream_send: (a: number) => any;
|
|
158
191
|
readonly bistream_endpoint_id: (a: number) => [number, number];
|
|
192
|
+
readonly __wbg_wasmconnection_free: (a: number, b: number) => void;
|
|
193
|
+
readonly wasmconnection_new: () => [number, number, number];
|
|
194
|
+
readonly wasmconnection_create_data_channel: (a: number, b: number, c: number) => any;
|
|
159
195
|
readonly __wbg_wasmclient_free: (a: number, b: number) => void;
|
|
160
196
|
readonly wasmclient_new: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
161
197
|
readonly wasmclient_newWithAppTag: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
@@ -176,6 +212,7 @@ export interface InitOutput {
|
|
|
176
212
|
readonly wasmclient_connect: (a: number, b: number, c: number) => any;
|
|
177
213
|
readonly wasmclient_disconnect: (a: number, b: number, c: number) => any;
|
|
178
214
|
readonly wasmclient_is_connected: (a: number, b: number, c: number) => any;
|
|
215
|
+
readonly wasmclient_runtime_policy: (a: number) => [number, number, number];
|
|
179
216
|
readonly wasmclient_add_peer_scope: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
180
217
|
readonly wasmclient_release_peer_scope: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
181
218
|
readonly wasmclient_peer_scopes: (a: number, b: number, c: number) => any;
|
|
@@ -189,11 +226,16 @@ export interface InitOutput {
|
|
|
189
226
|
readonly wasmclient_wait_for_settled_peer: (a: number, b: number, c: number, d: number) => any;
|
|
190
227
|
readonly wasmclient_resolve_peer_connection_records: (a: number, b: number, c: number) => any;
|
|
191
228
|
readonly wasmclient_list_managed_connections: (a: number) => any;
|
|
229
|
+
readonly wasmclient_bind_connection_device_id: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
192
230
|
readonly wasmclient_report_managed_connection_settled: (a: number, b: number, c: number, d: number, e: number, f: number) => any;
|
|
231
|
+
readonly wasmclient_report_transport_status: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
193
232
|
readonly wasmclient_open_bi: (a: number, b: number, c: number) => any;
|
|
194
233
|
readonly wasmclient_open_peer_bi: (a: number, b: number, c: number, d: number) => any;
|
|
234
|
+
readonly wasmclient_open_peer_bi_transport_only: (a: number, b: number, c: number, d: number) => any;
|
|
195
235
|
readonly wasmclient_open_uni: (a: number, b: number, c: number) => any;
|
|
196
236
|
readonly wasmclient_open_peer_uni: (a: number, b: number, c: number, d: number) => any;
|
|
237
|
+
readonly wasmclient_send_peer: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
238
|
+
readonly wasmclient_iroh_path_kind: (a: number, b: number, c: number) => any;
|
|
197
239
|
readonly wasmclient_incoming_streams: (a: number) => any;
|
|
198
240
|
readonly wasmclient_update_presence: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: bigint) => any;
|
|
199
241
|
readonly wasmclient_send_message: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => any;
|
|
@@ -203,7 +245,10 @@ export interface InitOutput {
|
|
|
203
245
|
readonly wasmclient_force_reconnect_snapshot: (a: number) => void;
|
|
204
246
|
readonly wasmclient_stop_presence_loop: (a: number) => void;
|
|
205
247
|
readonly wasmclient_stop_auto_connect: (a: number) => void;
|
|
206
|
-
readonly
|
|
248
|
+
readonly wasmclient_start_auto_connect: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
249
|
+
readonly wasmclient_set_auto_connect_excluded: (a: number, b: number, c: number, d: number) => any;
|
|
250
|
+
readonly wasmclient_is_auto_connect_excluded: (a: number, b: number, c: number) => number;
|
|
251
|
+
readonly wasmclient_disconnect_device: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
207
252
|
readonly wasmclient_stop_auth_scoped_activity: (a: number) => void;
|
|
208
253
|
readonly wasmclient_start_presence_loop: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
209
254
|
readonly wasmclient_search_devices: (a: number, b: number, c: number) => any;
|
|
@@ -217,12 +262,6 @@ export interface InitOutput {
|
|
|
217
262
|
readonly wasmclient_leave_room: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
218
263
|
readonly wasmclient_heartbeat_tick: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
|
|
219
264
|
readonly start: () => void;
|
|
220
|
-
readonly __wbg_wasmconnection_free: (a: number, b: number) => void;
|
|
221
|
-
readonly wasmconnection_new: () => [number, number, number];
|
|
222
|
-
readonly wasmconnection_create_data_channel: (a: number, b: number, c: number) => any;
|
|
223
|
-
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
224
|
-
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
225
|
-
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
226
265
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
227
266
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
228
267
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
@@ -233,30 +272,27 @@ export interface InitOutput {
|
|
|
233
272
|
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
234
273
|
readonly intounderlyingsink_close: (a: number) => any;
|
|
235
274
|
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
275
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
276
|
+
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
277
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
236
278
|
readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
237
|
-
readonly
|
|
238
|
-
readonly
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
241
|
-
readonly
|
|
242
|
-
readonly
|
|
243
|
-
readonly
|
|
244
|
-
readonly
|
|
245
|
-
readonly
|
|
246
|
-
readonly
|
|
247
|
-
readonly wasm_bindgen__convert__closures_____invoke__hf53043a3aa608bb3: (a: number, b: number, c: any) => void;
|
|
248
|
-
readonly wasm_bindgen__convert__closures_____invoke__h14717fdf60edc0ad: (a: number, b: number, c: any) => void;
|
|
249
|
-
readonly wasm_bindgen__convert__closures_____invoke__hb5064d1dd77b5d01: (a: number, b: number, c: any) => void;
|
|
250
|
-
readonly wasm_bindgen__convert__closures_____invoke__h3736bba9aeac8b38: (a: number, b: number) => void;
|
|
251
|
-
readonly wasm_bindgen__convert__closures_____invoke__h3b2823c6a5a88a62: (a: number, b: number) => void;
|
|
252
|
-
readonly wasm_bindgen__convert__closures_____invoke__h9f65334fdbabfcc8: (a: number, b: number) => void;
|
|
253
|
-
readonly wasm_bindgen__convert__closures_____invoke__hc3d2296b352a462d: (a: number, b: number) => void;
|
|
279
|
+
readonly wasm_bindgen__convert__closures_____invoke__hd47f17ba87c541ec: (a: number, b: number, c: any) => [number, number];
|
|
280
|
+
readonly wasm_bindgen__convert__closures_____invoke__h776304867400b4e4: (a: number, b: number, c: any, d: any) => void;
|
|
281
|
+
readonly wasm_bindgen__convert__closures_____invoke__h4dc49b34d4d77b81: (a: number, b: number, c: any) => void;
|
|
282
|
+
readonly wasm_bindgen__convert__closures_____invoke__hf679ef60a72d1948: (a: number, b: number, c: any) => void;
|
|
283
|
+
readonly wasm_bindgen__convert__closures_____invoke__h4b742547b50caebd: (a: number, b: number, c: any) => void;
|
|
284
|
+
readonly wasm_bindgen__convert__closures_____invoke__h509d1e5f9a719179: (a: number, b: number) => void;
|
|
285
|
+
readonly wasm_bindgen__convert__closures_____invoke__h1ecdc95d38c8111b: (a: number, b: number) => void;
|
|
286
|
+
readonly wasm_bindgen__convert__closures_____invoke__h47f09f7820fbff6c: (a: number, b: number) => void;
|
|
287
|
+
readonly wasm_bindgen__convert__closures_____invoke__ha910581f00459fa9: (a: number, b: number) => void;
|
|
288
|
+
readonly wasm_bindgen__convert__closures_____invoke__h1893948438c6db09: (a: number, b: number) => void;
|
|
254
289
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
255
290
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
256
291
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
257
292
|
readonly __externref_table_alloc: () => number;
|
|
258
293
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
259
294
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
295
|
+
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
260
296
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
261
297
|
readonly __wbindgen_start: () => void;
|
|
262
298
|
}
|