openrtc-tauri 1.0.8 → 2.0.0-rc.0
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 +6 -4
- package/dist/runtime/ipc.js +0 -8
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -43,7 +43,9 @@ import { createTauriIpcBridge } from 'openrtc-tauri/ipc';
|
|
|
43
43
|
|
|
44
44
|
const client = createNativeOpenRTC({
|
|
45
45
|
apiKey: 'pk_live_...',
|
|
46
|
-
|
|
46
|
+
auth: {
|
|
47
|
+
getAssertion: ({ forceRefresh }) => appAuth.openRtcAssertion({ forceRefresh }),
|
|
48
|
+
},
|
|
47
49
|
}, createTauriIpcBridge());
|
|
48
50
|
```
|
|
49
51
|
|
|
@@ -63,7 +65,6 @@ commands, make the exception explicit:
|
|
|
63
65
|
```ts
|
|
64
66
|
new TauriRuntimeAdapter({
|
|
65
67
|
apiKey: 'pk_live_...',
|
|
66
|
-
authMode: 'external',
|
|
67
68
|
ipc: { fallbackToBareCommands: true },
|
|
68
69
|
});
|
|
69
70
|
```
|
|
@@ -72,8 +73,9 @@ new TauriRuntimeAdapter({
|
|
|
72
73
|
|
|
73
74
|
`openrtc-tauri-plugin` owns the native lifecycle surface for Tauri apps:
|
|
74
75
|
|
|
75
|
-
- `openrtc::client::Client` construction from API key
|
|
76
|
-
-
|
|
76
|
+
- provider-neutral `openrtc::client::Client` construction from an API key and
|
|
77
|
+
avenue-scoped grant provider
|
|
78
|
+
- v2 identity/grant relay without Firebase project configuration
|
|
77
79
|
- native device identity, Iroh startup, endpoint tickets, presence, auto-connect,
|
|
78
80
|
connection state, device/session subscriptions, and peer streams
|
|
79
81
|
|
package/dist/runtime/ipc.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { registerDesktopAuthRelay } from 'openrtc/auth/internal';
|
|
2
1
|
import { isNativeIpcCommandUnavailable } from 'openrtc/native';
|
|
3
2
|
const DEFAULT_COMMAND_NAMESPACE = 'plugin:openrtc-tauri-plugin|';
|
|
4
3
|
const LEGACY_COMMAND_NAMESPACE = 'plugin:openrtc|';
|
|
@@ -51,10 +50,3 @@ export function createTauriIpcBridge(options = {}) {
|
|
|
51
50
|
},
|
|
52
51
|
};
|
|
53
52
|
}
|
|
54
|
-
registerDesktopAuthRelay(async (payload) => {
|
|
55
|
-
const bridge = createTauriIpcBridge();
|
|
56
|
-
await bridge.invoke('openrtc_set_auth_token', {
|
|
57
|
-
authToken: payload.authToken,
|
|
58
|
-
refreshToken: payload.refreshToken,
|
|
59
|
-
});
|
|
60
|
-
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openrtc-tauri",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,12 +29,13 @@
|
|
|
29
29
|
"prepublishOnly": "pnpm run build && pnpm run test:import"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"openrtc": "
|
|
32
|
+
"openrtc": "2.0.0-rc.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@tauri-apps/api": "^2.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
+
"@types/node": "^20.0.0",
|
|
38
39
|
"typescript": "^5.0.0"
|
|
39
40
|
}
|
|
40
41
|
}
|