openrtc 2.5.4 → 2.6.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.
Files changed (65) hide show
  1. package/dist/{Connection-CovQdc8E.d.ts → Connection-CQdRHqjO.d.ts} +36 -1
  2. package/dist/{DelegatingRuntimeAdapter-3ykiNvyh.d.ts → DelegatingRuntimeAdapter-B8ubDv86.d.ts} +2 -2
  3. package/dist/{IpcRuntimeAdapter-BkM_1HyL.d.ts → IpcRuntimeAdapter-D4vIpOre.d.ts} +16 -6
  4. package/dist/WasmBridge-W3GRBTTZ.js +1 -0
  5. package/dist/{assembly-C235UKSS.d.ts → assembly-D9vP5Q6M.d.ts} +2 -2
  6. package/dist/{capabilities-CdZpAKvE.d.ts → capabilities-BgxJVk9q.d.ts} +1 -1
  7. package/dist/chunk-4R5BLX2U.js +2 -0
  8. package/dist/{chunk-WMA4OMJL.js → chunk-5KN6YOM6.js} +1 -1
  9. package/dist/chunk-BEYBIRAN.js +2 -0
  10. package/dist/chunk-C7UBBRYW.js +2 -0
  11. package/dist/{chunk-CHT46RA7.js → chunk-DOI7F3VQ.js} +1 -1
  12. package/dist/{chunk-4CC6YIGG.js → chunk-FQB3VTOC.js} +1 -1
  13. package/dist/chunk-GQWHEDGU.js +2 -0
  14. package/dist/chunk-HQ6ANBIU.js +1 -0
  15. package/dist/chunk-ISTROQQJ.js +1 -0
  16. package/dist/chunk-NHIANLEM.js +1 -0
  17. package/dist/{chunk-2ESWBXLF.js → chunk-V7E4OUN5.js} +1 -1
  18. package/dist/controlPlane-T3TOHY3D.js +1 -0
  19. package/dist/coreClient.d.ts +3 -3
  20. package/dist/deviceEnrollment-2UW67OPP.js +2 -0
  21. package/dist/index.d.ts +24 -7
  22. package/dist/index.js +1 -1
  23. package/dist/ipcFactory-ZEHQMCEM.js +1 -0
  24. package/dist/native.d.ts +5 -5
  25. package/dist/native.js +1 -1
  26. package/dist/node.d.ts +8 -5
  27. package/dist/node.js +2 -2
  28. package/dist/{openrtc-UBIKDAZ5.js → openrtc-R6EPOY3N.js} +1 -1
  29. package/dist/openrtc_bg.wasm +0 -0
  30. package/dist/{room-2MUFAJ4M.js → room-Z6F46KMH.js} +1 -1
  31. package/dist/runtime/WasmRuntimeAdapter.d.ts +3 -3
  32. package/dist/runtime/WasmRuntimeAdapter.js +1 -1
  33. package/dist/runtime/device-status.d.ts +1 -1
  34. package/dist/runtime/factories.d.ts +5 -5
  35. package/dist/runtime/factories.js +1 -1
  36. package/dist/runtime/index.d.ts +9 -9
  37. package/dist/runtime/index.js +1 -1
  38. package/dist/server-browser.d.ts +4 -4
  39. package/dist/server.d.ts +4 -4
  40. package/dist/server.js +1 -1
  41. package/dist/service-node.d.ts +4 -4
  42. package/dist/service-node.js +1 -1
  43. package/dist/testing/native.d.ts +4 -4
  44. package/dist/testing/native.js +1 -1
  45. package/dist/testing.d.ts +4 -4
  46. package/dist/testing.js +1 -1
  47. package/dist/transport/index.d.ts +2 -2
  48. package/dist/{types-C6SMXBzJ.d.ts → types-jxyrOzCw.d.ts} +7 -1
  49. package/native/darwin-arm64/openrtc-node-host +0 -0
  50. package/native/darwin-arm64/openrtc-node-host.manifest.json +4 -4
  51. package/native/darwin-x64/openrtc-node-host +0 -0
  52. package/native/darwin-x64/openrtc-node-host.manifest.json +4 -4
  53. package/native/linux-x64/openrtc-node-host +0 -0
  54. package/native/linux-x64/openrtc-node-host.manifest.json +4 -4
  55. package/package.json +1 -1
  56. package/dist/WasmBridge-UZC7G4NP.js +0 -1
  57. package/dist/chunk-25CN4MLA.js +0 -2
  58. package/dist/chunk-42TNJH5S.js +0 -1
  59. package/dist/chunk-4J4F32QT.js +0 -1
  60. package/dist/chunk-BFN3AVHA.js +0 -2
  61. package/dist/chunk-N6LGTNUI.js +0 -1
  62. package/dist/chunk-VC7TGJFS.js +0 -2
  63. package/dist/controlPlane-IIPEJ77Q.js +0 -1
  64. package/dist/deviceEnrollment-ZQZ2WP5H.js +0 -2
  65. package/dist/ipcFactory-2WMR4PH6.js +0 -1
@@ -1 +0,0 @@
1
- export{a as ControlPlane}from'./chunk-BFN3AVHA.js';export{a as PRODUCTION_ENDPOINTS,b as decodeClaims}from'./chunk-ZA44REGI.js';
@@ -1,2 +0,0 @@
1
- import {d,a}from'./chunk-N6LGTNUI.js';function v(e){return e.status===403&&e.reason==="device-enrollment-revoked"}async function p(e){let r=e.identity,a$1=async(o=false,t=e.recoverRevokedEnrollment)=>{let n=await e.key.proof((d,l)=>["openrtc:v2:device-enroll",e.appTag,r.principalId,e.deviceId,d,l].join(":")),i=e.attestation?{kind:e.attestation.kind,...await e.attestation.getEvidence({challenge:`openrtc:v2:attestation:${e.appTag}:${r.principalId}:${e.deviceId}:${n.nonce}`,apiKey:e.apiKey})}:void 0;return e.post("/v2/devices/enroll",{identitySession:r.identitySession,deviceId:e.deviceId,deviceProof:n,...e.profile?.name||e.profile?.platform?{deviceProfile:{...e.profile.name?{name:e.profile.name}:{},...e.profile.platform?{platform:e.profile.platform}:{}}}:{},...t?{recoverRevokedEnrollment:true}:{},...o?{recoverDeviceKey:true}:{},...i?{attestation:i}:{}})};try{return {identity:r,enrollment:await a$1()}}catch(o){let t=o;if(!(t instanceof Error))throw o;if(v(t)){if(r.deviceRecoveryAuthorized===false)throw d(a.AUTH_DEVICE_REENROLLMENT_REQUIRED,"This device was removed. Sign in again to authorize re-enrollment.",{retryable:true,plane:"auth",cause:o});return {identity:r,enrollment:await a$1(false,true)}}if(t.status!==412||t.reason!=="device-key-recovery-required")throw o;let n=await e.auth.getAssertion({audience:"https://api.openrtc.app/v2/assertions/exchange",forceRefresh:true,deviceId:e.deviceId,recoveryReason:"device-key-rotation"});if(!n)throw new Error("The OpenRTC auth provider returned no assertion.");let i=await e.post("/v2/assertions/exchange",{assertion:n,...e.auth.providerId?{providerId:e.auth.providerId}:{}});if(e.recordAssertionExchange(),i.principalId!==r.principalId)throw new Error("The authenticated principal changed during device-key recovery.");return r=i,{identity:r,enrollment:await a$1(true)}}}
2
- export{p as enrollDevice};
@@ -1 +0,0 @@
1
- import {a as a$2}from'./chunk-WMA4OMJL.js';import {s}from'./chunk-VC7TGJFS.js';import'./chunk-BGWJHPBC.js';import'./chunk-4CC6YIGG.js';import'./chunk-25CN4MLA.js';import {a as a$1}from'./chunk-XMYBBLYK.js';import'./chunk-TYZS5LXQ.js';import'./chunk-OT7IPLZE.js';import'./chunk-OWKAJPOI.js';import {a}from'./chunk-4J4F32QT.js';import'./chunk-72NEEJQG.js';import'./chunk-CNAW5BZ3.js';import'./chunk-DUY34MGT.js';import'./chunk-CCCYE3XN.js';import'./chunk-N6LGTNUI.js';import'./chunk-JPBW67B3.js';import'./chunk-2GX6GB6L.js';function l(p,n,m=new a){let t=a$1(p);return a$2(t,new s({...t,bridge:n,projectionBroker:m}))}export{l as createIpcClient};