openrtc 2.9.6 → 2.9.8

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 (81) hide show
  1. package/dist/BrowserManagedBroadcastHost-6VGHQQMF.js +1 -0
  2. package/dist/{Connection-gaN-X7kf.d.ts → Connection-DJoPKC0L.d.ts} +34 -1
  3. package/dist/{DelegatingRuntimeAdapter-Bh0rLvly.d.ts → DelegatingRuntimeAdapter-d1xrjmHE.d.ts} +7 -2
  4. package/dist/{IpcRuntimeAdapter-DZj7Rn-o.d.ts → IpcRuntimeAdapter-BkJdH7OQ.d.ts} +2 -2
  5. package/dist/NativeProjectionBroker-Z6LCR4WB.js +1 -0
  6. package/dist/WasmBridge-VGIBWCAC.js +1 -0
  7. package/dist/{assembly-DX6MlDlZ.d.ts → assembly-0EnNAgmm.d.ts} +6 -2
  8. package/dist/{capabilities-wJO8ZWyF.d.ts → capabilities-dnGwtGmQ.d.ts} +1 -1
  9. package/dist/{chunk-IJXTRVQS.js → chunk-4EOOERQ4.js} +1 -1
  10. package/dist/{chunk-RB4UWXK6.js → chunk-5VJXDYP6.js} +1 -1
  11. package/dist/chunk-72MN7BNQ.js +2 -0
  12. package/dist/chunk-IXQ4KWGP.js +2 -0
  13. package/dist/{chunk-XMYBBLYK.js → chunk-L4HWDDXL.js} +2 -2
  14. package/dist/{chunk-F5ORG763.js → chunk-L7N4T2PX.js} +1 -1
  15. package/dist/chunk-MTCLMTJN.js +1 -0
  16. package/dist/{chunk-QO5WF4IG.js → chunk-O5EGI6OZ.js} +1 -1
  17. package/dist/{chunk-2QE5HAPB.js → chunk-O7Z6WLGA.js} +1 -1
  18. package/dist/chunk-P6G2PAWP.js +1 -0
  19. package/dist/chunk-S67YUD3E.js +1 -0
  20. package/dist/{chunk-COXQYBTI.js → chunk-TPF643LU.js} +1 -1
  21. package/dist/chunk-TWTPJDUN.js +1 -0
  22. package/dist/chunk-WNCBDRFC.js +2 -0
  23. package/dist/chunk-XR5JZKFP.js +2 -0
  24. package/dist/{chunk-LJBVXWWV.js → chunk-XXZEDZUU.js} +1 -1
  25. package/dist/controlPlane-HLMTVL5V.js +1 -0
  26. package/dist/coreClient.d.ts +7 -3
  27. package/dist/coreClient.js +1 -1
  28. package/dist/{deviceEnrollment-3AOGMX7C.js → deviceEnrollment-IPKFITV6.js} +1 -1
  29. package/dist/deviceHandle-ZYN473A4.js +1 -0
  30. package/dist/external-broadcast.d.ts +4 -4
  31. package/dist/external-broadcast.js +1 -1
  32. package/dist/index.d.ts +7 -6
  33. package/dist/index.js +1 -1
  34. package/dist/ipcFactory-L73S4NGQ.js +1 -0
  35. package/dist/native.d.ts +5 -5
  36. package/dist/native.js +1 -1
  37. package/dist/node.d.ts +6 -6
  38. package/dist/node.js +2 -2
  39. package/dist/openrtc-YI4N7T34.js +2 -0
  40. package/dist/openrtc_bg.wasm +0 -0
  41. package/dist/{room-5FG5L44X.js → room-5NW3SV4C.js} +1 -1
  42. package/dist/runtime/WasmRuntimeAdapter.d.ts +3 -3
  43. package/dist/runtime/WasmRuntimeAdapter.js +1 -1
  44. package/dist/runtime/device-status.d.ts +1 -1
  45. package/dist/runtime/factories.d.ts +13 -5
  46. package/dist/runtime/factories.js +1 -1
  47. package/dist/runtime/index.d.ts +10 -9
  48. package/dist/runtime/index.js +1 -1
  49. package/dist/server-browser.d.ts +4 -4
  50. package/dist/server.d.ts +4 -4
  51. package/dist/server.js +1 -1
  52. package/dist/service-node.d.ts +4 -4
  53. package/dist/service-node.js +1 -1
  54. package/dist/testing/native.d.ts +4 -4
  55. package/dist/testing/native.js +1 -1
  56. package/dist/testing.d.ts +4 -4
  57. package/dist/testing.js +1 -1
  58. package/dist/transport/index.d.ts +2 -2
  59. package/dist/{types-CzogmfJl.d.ts → types-uDwIMPRk.d.ts} +5 -1
  60. package/native/darwin-arm64/openrtc-node-host +0 -0
  61. package/native/darwin-arm64/openrtc-node-host.manifest.json +4 -4
  62. package/native/darwin-x64/openrtc-node-host +0 -0
  63. package/native/darwin-x64/openrtc-node-host.manifest.json +4 -4
  64. package/native/linux-x64/openrtc-node-host +0 -0
  65. package/native/linux-x64/openrtc-node-host.manifest.json +4 -4
  66. package/package.json +1 -1
  67. package/dist/BrowserManagedBroadcastHost-GLSYJIOR.js +0 -1
  68. package/dist/NativeProjectionBroker-VFPBNUGH.js +0 -1
  69. package/dist/WasmBridge-3TYL6SE7.js +0 -1
  70. package/dist/chunk-AZHDR5G7.js +0 -2
  71. package/dist/chunk-BGWJHPBC.js +0 -2
  72. package/dist/chunk-DMCUS3TY.js +0 -2
  73. package/dist/chunk-DZR5WWVW.js +0 -1
  74. package/dist/chunk-FXVEX4SB.js +0 -1
  75. package/dist/chunk-TOKXRZSS.js +0 -1
  76. package/dist/chunk-TRUMV4SI.js +0 -1
  77. package/dist/chunk-WALOTASO.js +0 -2
  78. package/dist/controlPlane-U6XREYI4.js +0 -1
  79. package/dist/deviceHandle-2DLEXKFM.js +0 -1
  80. package/dist/ipcFactory-7DTAMYUQ.js +0 -1
  81. package/dist/openrtc-DW7MUYZN.js +0 -2
package/dist/testing.js CHANGED
@@ -1 +1 @@
1
- import {a}from'./chunk-IJXTRVQS.js';import {a as a$1}from'./chunk-IAYQJZQQ.js';import {a as a$2,d,c}from'./chunk-L2ZZXECX.js';import'./chunk-GMPEZXPD.js';import {i}from'./chunk-TRUMV4SI.js';import'./chunk-FKAQDDUM.js';import'./chunk-ZA44REGI.js';import'./chunk-2QE5HAPB.js';import'./chunk-CCCYE3XN.js';import'./chunk-JPBW67B3.js';import'./chunk-F5ORG763.js';import'./chunk-WALOTASO.js';import'./chunk-2GX6GB6L.js';function v(i,o,e){let n=s=>{let t=new URL(s);return t.protocol==="http:"&&["localhost","127.0.0.1","[::1]"].includes(t.hostname)&&Number(t.port)>0&&t.pathname==="/"&&!t.username&&!t.password&&!t.search&&!t.hash};if(i.apiKey!=="pk_test_0000000000000000000000000000000000000000"||!n(o.controlPlane)||!n(o.gateway)||!/^[A-Za-z0-9_-]{1,64}$/.test(e.keyNamespace))throw new Error("Local broadcast testing requires the disposable loopback service lane")}function b(i){let o=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(Math.ceil(i.length/4)*4,"=");return Uint8Array.from(atob(o),e=>e.charCodeAt(0))}function A(i,o,e){return new a(i,o,a$1(e))}function R(i$1,o,e={}){if(e.localBroadcast&&v(i$1,o,e.localBroadcast),e.initialTicketLifetimeMs!==void 0){let t=(p,c)=>{let a=new URL(p);return a.protocol===c&&["127.0.0.1","[::1]"].includes(a.hostname)&&Number(a.port)>0&&a.pathname==="/"&&!a.username&&!a.password&&!a.search&&!a.hash};if(e.initialTicketLifetimeMs!==9e4||i$1.apiKey!=="pk_test_0000000000000000000000000000000000000000"||!t(o.controlPlane,"http:")||!t(o.gateway,"http:")||!e.irohTestRelayUrl||!t(e.irohTestRelayUrl,"https:"))throw new Error("Short initial tickets require the disposable local service lane")}let n=e.localBroadcast,s=n?a$1(n.keyNamespace):void 0;return i(i$1,{endpoints:o,testingAllowInsecureLoopback:true,platform:"web",...s?{deviceKeyProvider:s}:{},...n&&s?{broadcastHostFactory:async t=>{let[{BrowserManagedBroadcastHost:p},{loadBrowserWasmRuntimeModule:c}]=await Promise.all([import('./BrowserManagedBroadcastHost-GLSYJIOR.js'),import('./WasmBridge-3TYL6SE7.js')]),a=c().then(async r=>(await r.initWasm(),r.start(),new r.WasmClient(t.apiKey))),y=await s.getOrCreate(`app_${t.apiKey.slice(-16)}`);return new p({resolve:async(r,l)=>({token:r,...await n.resolve(r,l),signBindingChallenge:async m=>b(await y.sign(m))}),loadWasm:()=>a})}}:{},...e.deviceId?{deviceIdProvider:async()=>e.deviceId}:{},...e.irohTestRelayUrl?{irohTestRelayUrl:e.irohTestRelayUrl}:{},runtimeFactory:async t=>{let{createWasmClient:p}=await import('./runtime/factories.js'),c$1=await p(t);if(e.initialTicketLifetimeMs!==void 0){let a=c$1.runtime,y=a.getTicketWithToken.bind(a);a.getTicketWithToken=async(r,l=0)=>{if(a.getTicketWithToken=y,!r.startsWith("v2:room:"))throw new Error("Short initial ticket requires room scope");let{irohTicket:m,tokenSuffix:u}=a$2(await y(r,l)),d$1=u&&d(m,u);if(!d$1||!d$1.t||d$1.s!==r||d$1.m!==l)throw new Error("Invalid initial service ticket");let f=Date.now()+9e4;return await a.registerToken({token:d$1.t,scope:r,maxConnections:l,expiresAtMs:f}),c(m,d$1.t,r,l,f)};}return c$1}})}export{R as OpenRTC,A as controlPlane};
1
+ import {a}from'./chunk-4EOOERQ4.js';import {a as a$1}from'./chunk-IAYQJZQQ.js';import {a as a$2,d,c}from'./chunk-L2ZZXECX.js';import'./chunk-GMPEZXPD.js';import {i}from'./chunk-MTCLMTJN.js';import'./chunk-FKAQDDUM.js';import'./chunk-ZA44REGI.js';import'./chunk-O7Z6WLGA.js';import'./chunk-CCCYE3XN.js';import'./chunk-JPBW67B3.js';import'./chunk-L7N4T2PX.js';import'./chunk-72MN7BNQ.js';import'./chunk-2GX6GB6L.js';function v(i,o,e){let n=s=>{let t=new URL(s);return t.protocol==="http:"&&["localhost","127.0.0.1","[::1]"].includes(t.hostname)&&Number(t.port)>0&&t.pathname==="/"&&!t.username&&!t.password&&!t.search&&!t.hash};if(i.apiKey!=="pk_test_0000000000000000000000000000000000000000"||!n(o.controlPlane)||!n(o.gateway)||!/^[A-Za-z0-9_-]{1,64}$/.test(e.keyNamespace))throw new Error("Local broadcast testing requires the disposable loopback service lane")}function b(i){let o=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(Math.ceil(i.length/4)*4,"=");return Uint8Array.from(atob(o),e=>e.charCodeAt(0))}function A(i,o,e){return new a(i,o,a$1(e))}function R(i$1,o,e={}){if(e.localBroadcast&&v(i$1,o,e.localBroadcast),e.initialTicketLifetimeMs!==void 0){let t=(p,c)=>{let a=new URL(p);return a.protocol===c&&["127.0.0.1","[::1]"].includes(a.hostname)&&Number(a.port)>0&&a.pathname==="/"&&!a.username&&!a.password&&!a.search&&!a.hash};if(e.initialTicketLifetimeMs!==9e4||i$1.apiKey!=="pk_test_0000000000000000000000000000000000000000"||!t(o.controlPlane,"http:")||!t(o.gateway,"http:")||!e.irohTestRelayUrl||!t(e.irohTestRelayUrl,"https:"))throw new Error("Short initial tickets require the disposable local service lane")}let n=e.localBroadcast,s=n?a$1(n.keyNamespace):void 0;return i(i$1,{endpoints:o,testingAllowInsecureLoopback:true,platform:"web",...s?{deviceKeyProvider:s}:{},...n&&s?{broadcastHostFactory:async t=>{let[{BrowserManagedBroadcastHost:p},{loadBrowserWasmRuntimeModule:c}]=await Promise.all([import('./BrowserManagedBroadcastHost-6VGHQQMF.js'),import('./WasmBridge-VGIBWCAC.js')]),a=c().then(async r=>(await r.initWasm(),r.start(),new r.WasmClient(t.apiKey))),y=await s.getOrCreate(`app_${t.apiKey.slice(-16)}`);return new p({resolve:async(r,l)=>({token:r,...await n.resolve(r,l),signBindingChallenge:async m=>b(await y.sign(m))}),loadWasm:()=>a})}}:{},...e.deviceId?{deviceIdProvider:async()=>e.deviceId}:{},...e.irohTestRelayUrl?{irohTestRelayUrl:e.irohTestRelayUrl}:{},runtimeFactory:async t=>{let{createWasmClient:p}=await import('./runtime/factories.js'),c$1=await p(t);if(e.initialTicketLifetimeMs!==void 0){let a=c$1.runtime,y=a.getTicketWithToken.bind(a);a.getTicketWithToken=async(r,l=0)=>{if(a.getTicketWithToken=y,!r.startsWith("v2:room:"))throw new Error("Short initial ticket requires room scope");let{irohTicket:m,tokenSuffix:u}=a$2(await y(r,l)),d$1=u&&d(m,u);if(!d$1||!d$1.t||d$1.s!==r||d$1.m!==l)throw new Error("Invalid initial service ticket");let f=Date.now()+9e4;return await a.registerToken({token:d$1.t,scope:r,maxConnections:l,expiresAtMs:f}),c(m,d$1.t,r,l,f)};}return c$1}})}export{R as OpenRTC,A as controlPlane};
@@ -1,5 +1,5 @@
1
- import { g as ProtocolName, at as RouteDescriptor, au as PayloadCrypto, av as CryptoStreams } from '../Connection-gaN-X7kf.js';
2
- export { aw as CryptoBiStream, ax as RouteFamily, ay as RouteKind } from '../Connection-gaN-X7kf.js';
1
+ import { j as ProtocolName, ax as RouteDescriptor, ay as PayloadCrypto, az as CryptoStreams } from '../Connection-DJoPKC0L.js';
2
+ export { aA as CryptoBiStream, aB as RouteFamily, aC as RouteKind } from '../Connection-DJoPKC0L.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-gaN-X7kf.js';
2
+ import { R as RoomArchitectureMode, b as RoomArchitectureSnapshot, c as RoomAuthorityAssignment, C as ChannelDescriptor, S as ServiceErrorObservation, P as PlutoIrohConfiguration, g as PlutoRTCConfiguration, h as PlutoMoQConfiguration, i as RouteOptimization, j as ProtocolName } from './Connection-DJoPKC0L.js';
3
3
 
4
4
  interface AuthProvider {
5
5
  /** Registered provider ID from the developer app capability manifest. */
@@ -359,6 +359,10 @@ interface Avenue {
359
359
  close(): Promise<void>;
360
360
  }
361
361
  interface Devices extends Avenue {
362
+ requestTransferPeer: DeviceNamespace['requestTransferPeer'];
363
+ transferPeerDemandStatus: DeviceNamespace['transferPeerDemandStatus'];
364
+ releaseTransferPeer: DeviceNamespace['releaseTransferPeer'];
365
+ setTransferPeerBudget: DeviceNamespace['setTransferPeerBudget'];
362
366
  readonly kind: 'devices';
363
367
  localId(): ReturnType<DeviceNamespace['localId']>;
364
368
  localInfo(): ReturnType<DeviceNamespace['localInfo']>;
@@ -4,9 +4,9 @@
4
4
  "platform": "darwin",
5
5
  "arch": "arm64",
6
6
  "rustTarget": "aarch64-apple-darwin",
7
- "sourceCommit": "73b8c7f0abb8a42571c5977244d859fd65f3fedc",
8
- "sourceDigest": "20bfb1c9b57c3ee614cea37a5ac26597e9e23a5644002a083eb8e0d38ae4e1e8",
9
- "binarySha256": "dea4f9b67a6511f833824edc0fb5fa50027bcb200c8217398e45381e6e12e543",
7
+ "sourceCommit": "1cc311469ea5193f6892597261cc10cd8ab0a4a3",
8
+ "sourceDigest": "24099eea68f4e78d4a68f179409cdad3366350d1f9d68460530294ce751dc00d",
9
+ "binarySha256": "7ad36e1a18d3506ca4629a3a3c31e3ae8f230cb262ff8c9d84d31f67508bbff6",
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": "/5cpKcweowCtfpLLJ24C5lpSGPfLadaITrGeUsqpHimEcjiCJGrB0xveobsmZQTvqnBGTavzFFncWrt2n3geAg=="
19
+ "signature": "0yHfOW8f00EZMSVXQWQjqhFsHzJn9PrNaqsOwhjZ1hHcXzcG0xd2jPf30MO2naK37LXHOISZ1Q4iDueEElafDg=="
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": "73b8c7f0abb8a42571c5977244d859fd65f3fedc",
8
- "sourceDigest": "20bfb1c9b57c3ee614cea37a5ac26597e9e23a5644002a083eb8e0d38ae4e1e8",
9
- "binarySha256": "3e0a0aebdb94a6d20f7383388f19f48b52010a1937b657c4fdafab0b6ead25ed",
7
+ "sourceCommit": "1cc311469ea5193f6892597261cc10cd8ab0a4a3",
8
+ "sourceDigest": "24099eea68f4e78d4a68f179409cdad3366350d1f9d68460530294ce751dc00d",
9
+ "binarySha256": "0767b2dfc56609965a2f479632c48bc351f5655075e4fa6040887ef89bdd6ce1",
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": "GN/6XPUNXiktCHdxCSqMPUWmbmHbnuYripxGWuB6pPrgyS6ofBIrlhaLWUXKt+IBx4nOqoX0WAYkJeW+bFC2Bw=="
19
+ "signature": "PrBwx+3H4a5Ge7U4FtGk47jaew9se2qs1eXoEsL3rc+aTMimX66C0hB7qxgPxTV195j7YYbP1/kyD7MjDemmAA=="
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": "989a14d8b55d83ace8e1e1fa84aa9390e2af0e65",
8
- "sourceDigest": "20bfb1c9b57c3ee614cea37a5ac26597e9e23a5644002a083eb8e0d38ae4e1e8",
9
- "binarySha256": "4da7a063dcd6884ec3a9219ef1b3598bc77e9cb904efb803ff4492fe1f758fcd",
7
+ "sourceCommit": "20f11eaf24a2864f9f08defdc9031b32489e6919",
8
+ "sourceDigest": "24099eea68f4e78d4a68f179409cdad3366350d1f9d68460530294ce751dc00d",
9
+ "binarySha256": "dc9ffc62e13975ff74a84260bd38f2227caf4916ce6dc80daefb67460bf75cb9",
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": "PYGsG/rY7zyvyHxhQXKxcTXUJHUlxjRzMRMYh0zHOEP4YpeigSYI4e6akh+rmUkbW01PisqIEHT96fuoY19CCA=="
19
+ "signature": "e4Qlu8ZDrgFo+8/cFStYKw7H33DyY8XyRegqLFe/yDf1YjNfoHbQ3YkY9o1ojBWkl6ydDlBChYHAHDP//spWCQ=="
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openrtc",
3
- "version": "2.9.6",
3
+ "version": "2.9.8",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1 +0,0 @@
1
- export{a as BrowserManagedBroadcastHost}from'./chunk-RB4UWXK6.js';import'./chunk-BGWJHPBC.js';import'./chunk-AYHD4X2R.js';import'./chunk-FKAQDDUM.js';import'./chunk-JPBW67B3.js';
@@ -1 +0,0 @@
1
- export{a as NativeProjectionBroker}from'./chunk-LJBVXWWV.js';import'./chunk-COXQYBTI.js';import'./chunk-WALOTASO.js';
@@ -1 +0,0 @@
1
- export{b as WasmBridge,a as loadBrowserWasmRuntimeModule}from'./chunk-TOKXRZSS.js';import'./chunk-AYHD4X2R.js';import'./chunk-DMCUS3TY.js';import'./chunk-XMYBBLYK.js';import'./chunk-OT7IPLZE.js';import'./chunk-OWKAJPOI.js';import'./chunk-COXQYBTI.js';import'./chunk-L2ZZXECX.js';import'./chunk-CCCYE3XN.js';import'./chunk-JPBW67B3.js';import'./chunk-F5ORG763.js';import'./chunk-WALOTASO.js';import'./chunk-2GX6GB6L.js';