openrtc 2.8.3 → 2.8.5
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/{Connection-DnZeUt3p.d.ts → Connection-BU8g28lx.d.ts} +3 -1
- package/dist/{DelegatingRuntimeAdapter-DtNdkP9H.d.ts → DelegatingRuntimeAdapter-DLrTF5Nr.d.ts} +18 -2
- package/dist/{IpcRuntimeAdapter-BSartqkw.d.ts → IpcRuntimeAdapter-Cp2QsHX2.d.ts} +2 -2
- package/dist/WasmBridge-PDU7DG4B.js +1 -0
- package/dist/{assembly-CMe7xj2N.d.ts → assembly-CJjfcYrA.d.ts} +24 -2
- package/dist/{capabilities-CsnXfI4b.d.ts → capabilities-BOyxv_kT.d.ts} +1 -1
- package/dist/chunk-577A77JB.js +2 -0
- package/dist/{chunk-ISTROQQJ.js → chunk-67RYEH6T.js} +1 -1
- package/dist/{chunk-5Y7XBP6X.js → chunk-7KH73BX6.js} +1 -1
- package/dist/{chunk-HDGSSJGQ.js → chunk-ESBROG6S.js} +1 -1
- package/dist/{chunk-HK44XVRM.js → chunk-EUVLZSGT.js} +1 -1
- package/dist/chunk-LAL63F6X.js +2 -0
- package/dist/chunk-OC4VXLX7.js +1 -0
- package/dist/{chunk-4KY4I6W5.js → chunk-S3U4WUZ2.js} +1 -1
- package/dist/chunk-T3G55YPI.js +1 -0
- package/dist/chunk-TWIZQT6M.js +1 -0
- package/dist/{chunk-NHIANLEM.js → chunk-WD2FZUOM.js} +1 -1
- package/dist/{chunk-UPWTSOR7.js → chunk-WD47V4PK.js} +2 -2
- package/dist/controlPlane-C5RUPLAM.js +1 -0
- package/dist/coreClient.d.ts +3 -3
- package/dist/{deviceEnrollment-2UW67OPP.js → deviceEnrollment-27EVK3E3.js} +1 -1
- package/dist/index.d.ts +26 -7
- package/dist/index.js +1 -1
- package/dist/ipcFactory-DOEPQPOP.js +1 -0
- package/dist/native.d.ts +5 -5
- package/dist/native.js +1 -1
- package/dist/node.d.ts +6 -6
- package/dist/node.js +2 -2
- package/dist/openrtc-DVUKUV46.js +2 -0
- package/dist/openrtc_bg.wasm +0 -0
- package/dist/{room-XOMUNWSD.js → room-VVZXY3M2.js} +1 -1
- package/dist/runtime/WasmRuntimeAdapter.d.ts +3 -3
- package/dist/runtime/WasmRuntimeAdapter.js +1 -1
- package/dist/runtime/device-status.d.ts +1 -1
- package/dist/runtime/factories.d.ts +26 -5
- package/dist/runtime/factories.js +1 -1
- package/dist/runtime/index.d.ts +10 -9
- package/dist/runtime/index.js +1 -1
- package/dist/server-browser.d.ts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +1 -1
- package/dist/service-node.d.ts +4 -4
- package/dist/service-node.js +1 -1
- package/dist/testing/native.d.ts +4 -4
- package/dist/testing/native.js +1 -1
- package/dist/testing.d.ts +4 -4
- package/dist/testing.js +1 -1
- package/dist/transport/index.d.ts +2 -2
- package/dist/{types-CJ5FGAyJ.d.ts → types-ldAq2oqi.d.ts} +11 -2
- 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/WasmBridge-IXZ7TSSW.js +0 -1
- package/dist/chunk-3IKLXFBJ.js +0 -2
- package/dist/chunk-4R5BLX2U.js +0 -2
- package/dist/chunk-DUY34MGT.js +0 -1
- package/dist/chunk-JQBYZHKY.js +0 -1
- package/dist/chunk-VGG7KR7S.js +0 -1
- package/dist/controlPlane-GRIKNHDP.js +0 -1
- package/dist/ipcFactory-LMB5IQVZ.js +0 -1
- package/dist/openrtc-CAKLL7FT.js +0 -2
package/dist/service-node.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DelegatedAuthorityService,b as ServiceNode}from'./chunk-
|
|
1
|
+
export{a as DelegatedAuthorityService,b as ServiceNode}from'./chunk-S3U4WUZ2.js';import'./chunk-TWIZQT6M.js';import'./chunk-ZA44REGI.js';import'./chunk-LLZT3MR6.js';import'./chunk-OC4VXLX7.js';import'./chunk-CCCYE3XN.js';import'./chunk-577A77JB.js';import'./chunk-JPBW67B3.js';import'./chunk-2GX6GB6L.js';
|
package/dist/testing/native.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { O as Options, C as Client } from '../types-
|
|
1
|
+
import { O as Options, C as Client } from '../types-ldAq2oqi.js';
|
|
2
2
|
import { E as Endpoints } from '../protocol-BSBjMb7p.js';
|
|
3
3
|
import { P as PlutoIpcBridge } from '../ipc-DgzKqHH3.js';
|
|
4
4
|
import '../coreClient.js';
|
|
5
|
-
import '../assembly-
|
|
6
|
-
import '../Connection-
|
|
7
|
-
import '../capabilities-
|
|
5
|
+
import '../assembly-CJjfcYrA.js';
|
|
6
|
+
import '../Connection-BU8g28lx.js';
|
|
7
|
+
import '../capabilities-BOyxv_kT.js';
|
|
8
8
|
|
|
9
9
|
declare function OpenRTC(options: Options, endpoints: Endpoints, bridge: PlutoIpcBridge): Client;
|
|
10
10
|
|
package/dist/testing/native.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'../chunk-UBLYBL3O.js';import {a}from'../chunk-
|
|
1
|
+
import {a as a$1}from'../chunk-UBLYBL3O.js';import {a}from'../chunk-WD2FZUOM.js';import'../chunk-67RYEH6T.js';import'../chunk-AUICRD2W.js';import {i}from'../chunk-TWIZQT6M.js';import'../chunk-ZA44REGI.js';import'../chunk-LLZT3MR6.js';import'../chunk-OC4VXLX7.js';import'../chunk-CCCYE3XN.js';import'../chunk-577A77JB.js';import'../chunk-JPBW67B3.js';import'../chunk-2GX6GB6L.js';function v(c,p,e){let o=new a;return i(c,{endpoints:p,testingAllowInsecureLoopback:true,platform:"native",close:()=>o.close(),deviceKeyProvider:a$1(e),deviceIdProvider:async()=>{let t=await e.invoke("get_rtc_local_device_info");return String(t?.deviceId??"")},runtimeFactory:async t=>{let{createIpcClient:a}=await import('../ipcFactory-DOEPQPOP.js');return a(t,e,o)}})}export{v as OpenRTC};
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { R as RoomArchitectureMode, ai as CoordinationGatewayGrantRequest, aj as CoordinationGatewayGrant } from './Connection-
|
|
2
|
-
import { a as AttestationProvider, b as AuthProvider, B as BotVerificationProvider, e as BroadcastGrant, d as BroadcastCreateOptions, f as BroadcastInvite, g as BroadcastInviteOptions, D as Delivery, t as DeviceProfile, O as Options, C as Client } from './types-
|
|
1
|
+
import { R as RoomArchitectureMode, ai as CoordinationGatewayGrantRequest, aj as CoordinationGatewayGrant } from './Connection-BU8g28lx.js';
|
|
2
|
+
import { a as AttestationProvider, b as AuthProvider, B as BotVerificationProvider, e as BroadcastGrant, d as BroadcastCreateOptions, f as BroadcastInvite, g as BroadcastInviteOptions, D as Delivery, t as DeviceProfile, O as Options, C as Client } from './types-ldAq2oqi.js';
|
|
3
3
|
import { E as Endpoints } from './protocol-BSBjMb7p.js';
|
|
4
4
|
import './coreClient.js';
|
|
5
|
-
import './assembly-
|
|
6
|
-
import './capabilities-
|
|
5
|
+
import './assembly-CJjfcYrA.js';
|
|
6
|
+
import './capabilities-BOyxv_kT.js';
|
|
7
7
|
|
|
8
8
|
interface DeviceProof {
|
|
9
9
|
publicKeyJwk: JsonWebKey;
|
package/dist/testing.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-ESBROG6S.js';import {a as a$1,d,c}from'./chunk-CNAW5BZ3.js';import {c as c$1}from'./chunk-AUICRD2W.js';import {i}from'./chunk-TWIZQT6M.js';import'./chunk-ZA44REGI.js';import'./chunk-LLZT3MR6.js';import'./chunk-OC4VXLX7.js';import'./chunk-CCCYE3XN.js';import'./chunk-577A77JB.js';import'./chunk-JPBW67B3.js';import'./chunk-2GX6GB6L.js';function v(o){let t=e=>`${e}:${o}`;return {getOrCreate:e=>c$1.getOrCreate(t(e)),delete:async e=>{await c$1.delete?.(t(e));},readSecureRecord:(e,i)=>c$1.readSecureRecord?.(t(e),i)??Promise.resolve(null),writeSecureRecord:(e,i,c)=>c$1.writeSecureRecord?.(t(e),i,c)??Promise.resolve(),deleteSecureRecord:(e,i)=>c$1.deleteSecureRecord?.(t(e),i)??Promise.resolve()}}function b(o,t,e){return new a(o,t,v(e))}function g(o,t,e={}){if(e.initialTicketLifetimeMs!==void 0){let i=(c,s)=>{let r=new URL(c);return r.protocol===s&&["127.0.0.1","[::1]"].includes(r.hostname)&&Number(r.port)>0&&r.pathname==="/"&&!r.username&&!r.password&&!r.search&&!r.hash};if(e.initialTicketLifetimeMs!==9e4||o.apiKey!=="pk_test_0000000000000000000000000000000000000000"||!i(t.controlPlane,"http:")||!i(t.gateway,"http:")||!e.irohTestRelayUrl||!i(e.irohTestRelayUrl,"https:"))throw new Error("Short initial tickets require the disposable local service lane")}return i(o,{endpoints:t,testingAllowInsecureLoopback:true,platform:"web",...e.deviceId?{deviceIdProvider:async()=>e.deviceId}:{},...e.irohTestRelayUrl?{irohTestRelayUrl:e.irohTestRelayUrl}:{},runtimeFactory:async i=>{let{createWasmClient:c$1}=await import('./runtime/factories.js'),s=await c$1(i);if(e.initialTicketLifetimeMs!==void 0){let r=s.runtime,p=r.getTicketWithToken.bind(r);r.getTicketWithToken=async(l,d$1=0)=>{if(r.getTicketWithToken=p,!l.startsWith("v2:room:"))throw new Error("Short initial ticket requires room scope");let{irohTicket:u,tokenSuffix:m}=a$1(await p(l,d$1)),n=m&&d(u,m);if(!n||!n.t||n.s!==l||n.m!==d$1)throw new Error("Invalid initial service ticket");let h=Date.now()+9e4;return await r.registerToken({token:n.t,scope:l,maxConnections:d$1,expiresAtMs:h}),c(u,n.t,l,d$1,h)};}return s}})}export{g as OpenRTC,b as controlPlane};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as ProtocolName, as as RouteDescriptor, at as PayloadCrypto, au as CryptoStreams } from '../Connection-
|
|
2
|
-
export { av as CryptoBiStream, aw as RouteFamily, ax as RouteKind } from '../Connection-
|
|
1
|
+
import { g as ProtocolName, as as RouteDescriptor, at as PayloadCrypto, au as CryptoStreams } from '../Connection-BU8g28lx.js';
|
|
2
|
+
export { av as CryptoBiStream, aw as RouteFamily, ax as RouteKind } from '../Connection-BU8g28lx.js';
|
|
3
3
|
|
|
4
4
|
declare const TRANSPORT_LABELS: readonly ProtocolName[];
|
|
5
5
|
declare function normalizeTransport(value: unknown): ProtocolName | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PeerNamespace, ChannelNamespace, DiagnosticsNamespace, DeviceNamespace } from './coreClient.js';
|
|
2
|
-
import { R as RoomArchitectureMode, b as RoomArchitectureSnapshot, c as RoomAuthorityAssignment, C as ChannelDescriptor, S as ServiceErrorObservation, P as PlutoIrohConfiguration, d as PlutoRTCConfiguration, e as PlutoMoQConfiguration, f as RouteOptimization, g as ProtocolName } from './Connection-
|
|
2
|
+
import { R as RoomArchitectureMode, b as RoomArchitectureSnapshot, c as RoomAuthorityAssignment, C as ChannelDescriptor, S as ServiceErrorObservation, P as PlutoIrohConfiguration, d as PlutoRTCConfiguration, e as PlutoMoQConfiguration, f as RouteOptimization, g as ProtocolName } from './Connection-BU8g28lx.js';
|
|
3
3
|
|
|
4
4
|
interface AuthProvider {
|
|
5
5
|
/** Registered provider ID from the developer app capability manifest. */
|
|
@@ -388,6 +388,12 @@ interface Room extends Avenue {
|
|
|
388
388
|
}
|
|
389
389
|
interface Ticket extends Avenue {
|
|
390
390
|
readonly kind: 'ticket';
|
|
391
|
+
/** Current transferable bearer for a ticket mesh; present when `mesh: true` or joined. */
|
|
392
|
+
readonly invite: string | null;
|
|
393
|
+
/** Observe invitation renewal so a displayed link or QR remains current. */
|
|
394
|
+
watchInvite(callback: (invitation: string | null) => void): () => void;
|
|
395
|
+
/** Rust-verified issuer node of this mesh; useful for labeling the host. */
|
|
396
|
+
issuerNode(): Promise<string>;
|
|
391
397
|
/**
|
|
392
398
|
* Opaque, install-bound OpenRTC capability credential. This is not a
|
|
393
399
|
* transferable invitation or recipient redemption token. Do not display,
|
|
@@ -446,9 +452,11 @@ interface RoomOptions {
|
|
|
446
452
|
advancedFanout?: boolean;
|
|
447
453
|
}
|
|
448
454
|
interface TicketOptions {
|
|
449
|
-
/** Use a new memory-only identity
|
|
455
|
+
/** Use a new memory-only identity. Ticket meshes default to this; direct tickets retain the client default. */
|
|
450
456
|
identity?: 'session';
|
|
451
457
|
maxPeers?: number;
|
|
458
|
+
/** Connect admitted guests to one another through a small Rust-owned mesh. */
|
|
459
|
+
mesh?: boolean;
|
|
452
460
|
/** Requires the app manifest's advanced-fanout opt-in. */
|
|
453
461
|
advancedFanout?: boolean;
|
|
454
462
|
}
|
|
@@ -617,6 +625,7 @@ interface Client {
|
|
|
617
625
|
};
|
|
618
626
|
readonly tickets: {
|
|
619
627
|
issue(id: string, options?: TicketOptions): Promise<Ticket>;
|
|
628
|
+
join(invite: string): Promise<Ticket>;
|
|
620
629
|
};
|
|
621
630
|
readonly broadcasts: {
|
|
622
631
|
/** Reserve hard limits and mint a device/key-bound owner grant. */
|
|
Binary file
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"platform": "darwin",
|
|
5
5
|
"arch": "arm64",
|
|
6
6
|
"rustTarget": "aarch64-apple-darwin",
|
|
7
|
-
"sourceCommit": "
|
|
8
|
-
"sourceDigest": "
|
|
9
|
-
"binarySha256": "
|
|
7
|
+
"sourceCommit": "dd5f698d0f9e7d288f480194c872e6a9cd6a2b6f",
|
|
8
|
+
"sourceDigest": "72f16379c6d17996e066574f3d938b4123296a73ed2cdf45b5d1d6b0aef04e56",
|
|
9
|
+
"binarySha256": "b8c4d94a5d136d47867030531a0ecf5d5677d85112b5c5f4dcbb7526bfe5631b",
|
|
10
10
|
"protocol": {
|
|
11
11
|
"lifecycleOwner": "rust-peer-session",
|
|
12
12
|
"maxApplicationPayloadBytes": 65536,
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
},
|
|
17
17
|
"signingKeySha256": "0391c617f3df12611b419e129cace36fa792e73da03271649cbed9e9f9f155ef",
|
|
18
18
|
"signatureAlgorithm": "ed25519",
|
|
19
|
-
"signature": "
|
|
19
|
+
"signature": "jk7LrSYrbDV3d6Vp5nZbCQZQ080CiY05UAoywcFeTQnWdbpE3rw6dLn/tPFFD9CnPH8mxaFbvfNhbcY4tiyCCA=="
|
|
20
20
|
}
|
|
Binary file
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"platform": "darwin",
|
|
5
5
|
"arch": "x64",
|
|
6
6
|
"rustTarget": "x86_64-apple-darwin",
|
|
7
|
-
"sourceCommit": "
|
|
8
|
-
"sourceDigest": "
|
|
9
|
-
"binarySha256": "
|
|
7
|
+
"sourceCommit": "dd5f698d0f9e7d288f480194c872e6a9cd6a2b6f",
|
|
8
|
+
"sourceDigest": "72f16379c6d17996e066574f3d938b4123296a73ed2cdf45b5d1d6b0aef04e56",
|
|
9
|
+
"binarySha256": "23930626df6ba955e82ff2002c22d7f440846647a946ff31b478148a6fcfd7fe",
|
|
10
10
|
"protocol": {
|
|
11
11
|
"lifecycleOwner": "rust-peer-session",
|
|
12
12
|
"maxApplicationPayloadBytes": 65536,
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
},
|
|
17
17
|
"signingKeySha256": "0391c617f3df12611b419e129cace36fa792e73da03271649cbed9e9f9f155ef",
|
|
18
18
|
"signatureAlgorithm": "ed25519",
|
|
19
|
-
"signature": "
|
|
19
|
+
"signature": "mdczu+wyvQyKRA6O6zN3S/xXyVekc79RrCdf9D3i5UQNKUTKMC93KV+B5LF+qTl8HGffKVjfLqDYEp9lqjB0Aw=="
|
|
20
20
|
}
|
|
Binary file
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"platform": "linux",
|
|
5
5
|
"arch": "x64",
|
|
6
6
|
"rustTarget": "x86_64-unknown-linux-gnu",
|
|
7
|
-
"sourceCommit": "
|
|
8
|
-
"sourceDigest": "
|
|
9
|
-
"binarySha256": "
|
|
7
|
+
"sourceCommit": "3104d3777429551143beb97542881522b5e4e7ad",
|
|
8
|
+
"sourceDigest": "72f16379c6d17996e066574f3d938b4123296a73ed2cdf45b5d1d6b0aef04e56",
|
|
9
|
+
"binarySha256": "7b2543a832b0026f3560fb4dce198f96fe669e57067b3445640be0159be0ae9f",
|
|
10
10
|
"protocol": {
|
|
11
11
|
"lifecycleOwner": "rust-peer-session",
|
|
12
12
|
"maxApplicationPayloadBytes": 65536,
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
},
|
|
17
17
|
"signingKeySha256": "0391c617f3df12611b419e129cace36fa792e73da03271649cbed9e9f9f155ef",
|
|
18
18
|
"signatureAlgorithm": "ed25519",
|
|
19
|
-
"signature": "
|
|
19
|
+
"signature": "5ARJC7Z/3A2ZD7SGG4qK/MLuYmrqLAQYTbB7vb2g6yoHtJC0I12MMhd6GEuDDHXYlzV2IoCCJPM+3Ye1DEBqAg=="
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openrtc",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -94,7 +94,8 @@
|
|
|
94
94
|
"check:entrypoints": "node scripts/check-entrypoints.mjs",
|
|
95
95
|
"check:pack-install": "node scripts/check-pack-install.mjs",
|
|
96
96
|
"build:clean": "rm -rf dist && pnpm run build",
|
|
97
|
-
"release:
|
|
97
|
+
"release:build": "pnpm run build:wasm && pnpm run build:clean && pnpm run check:lightweight-entry && pnpm run check:native-bundle && pnpm run check:entrypoints",
|
|
98
|
+
"release:prepare": "pnpm run release:build && pnpm run check:pack-install",
|
|
98
99
|
"build:types": "tsc --noEmit",
|
|
99
100
|
"build:wasm": "node ../../scripts/build-openrtc-wasm-artifact.mjs",
|
|
100
101
|
"test": "pnpm run test:deterministic && pnpm run test:emulator",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{b as WasmBridge,a as loadBrowserWasmRuntimeModule}from'./chunk-5Y7XBP6X.js';import'./chunk-AYHD4X2R.js';import'./chunk-UPWTSOR7.js';import'./chunk-XMYBBLYK.js';import'./chunk-OT7IPLZE.js';import'./chunk-OWKAJPOI.js';import'./chunk-ISTROQQJ.js';import'./chunk-CNAW5BZ3.js';import'./chunk-CCCYE3XN.js';import'./chunk-4R5BLX2U.js';import'./chunk-JPBW67B3.js';import'./chunk-2GX6GB6L.js';
|