{"_id":"@1shotapi/ows-wallet-utils","_rev":"9-fc02d617469ea0f63a8d898424c6a494","name":"@1shotapi/ows-wallet-utils","dist-tags":{"latest":"0.5.1"},"versions":{"0.1.0":{"name":"@1shotapi/ows-wallet-utils","version":"0.1.0","keywords":["ows","open-wallet-standard","postmate","iframe","wallet"],"license":"MIT","_id":"@1shotapi/ows-wallet-utils@0.1.0","maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"homepage":"https://github.com/1Shot-API/open-wallet#readme","bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"dist":{"shasum":"0c399497f8ef4331a61caeb88811f2e3d70521ea","tarball":"https://registry.npmjs.org/@1shotapi/ows-wallet-utils/-/ows-wallet-utils-0.1.0.tgz","fileCount":86,"integrity":"sha512-tm0uLpQWu6fNvHIlNUy8JC88a3+i03sI2noV8XRL3RxZX73ulMzF3wYwS6w53vkZb6aRwQW4Mrp1Xr7jCcll+Q==","signatures":[{"sig":"MEQCIBvomL1dctMY7hozgbbW0zHI+5Fdd01iMR/SXVMQIfIzAiA75wP8jqpP1XuXTbkRExRCb5HseHeb4O+ISsPujbjnGw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":141839},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"9e18f3e2ac2623d0ab45a3909218e375db806c85","scripts":{"lint":"tsc -p tsconfig.json --noEmit","test":"node --import tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","clean":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""},"_npmUser":{"name":"csibbach","email":"charlottewisteria@gmail.com"},"repository":{"url":"git+https://github.com/1Shot-API/open-wallet.git","type":"git","directory":"packages/ows-wallet-utils"},"_npmVersion":"10.9.8","description":"OWS utilities for Branding Layer implementers — Host Layer ↔ Branding Layer messaging via postmate","directories":{},"_nodeVersion":"22.22.3","dependencies":{"zod":"^4.4.0","postmate":"^1.5.2","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","@types/postmate":"^1.5.4"},"_npmOperationalInternal":{"tmp":"tmp/ows-wallet-utils_0.1.0_1784076116982_0.4966342626744107","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@1shotapi/ows-wallet-utils","version":"0.1.1","keywords":["ows","open-wallet-standard","postmate","iframe","wallet"],"license":"MIT","_id":"@1shotapi/ows-wallet-utils@0.1.1","maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"homepage":"https://github.com/1Shot-API/open-wallet#readme","bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"dist":{"shasum":"51c63a40b98f0cda40702d182c1459e61838b66b","tarball":"https://registry.npmjs.org/@1shotapi/ows-wallet-utils/-/ows-wallet-utils-0.1.1.tgz","fileCount":86,"integrity":"sha512-0Ys2+z0DIIka/kwYZSJKAqZ8OVHNp2Pn82Fw5weS+bvX8em8Nbfa6zRVYNn9nKu1DTV0PpKXVEyj5gBGQ1JB6g==","signatures":[{"sig":"MEQCIF5t1/ug759gAflj7v88eaQbNf8ZasyLkIpobUmh/IdNAiA6aBfdF0krN3DinADpJmr39q9kX0Dz7rMm3ilL5XuaDQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":144568},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"7490ef6016b856f89dc0ac78472518a3ae3932ec","scripts":{"lint":"tsc -p tsconfig.json --noEmit","test":"node --import tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","clean":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""},"_npmUser":{"name":"csibbach","email":"charlottewisteria@gmail.com"},"repository":{"url":"git+https://github.com/1Shot-API/open-wallet.git","type":"git","directory":"packages/ows-wallet-utils"},"_npmVersion":"10.9.8","description":"OWS utilities for Branding Layer implementers — Host Layer ↔ Branding Layer messaging via postmate","directories":{},"_nodeVersion":"22.22.3","dependencies":{"zod":"^4.4.0","postmate":"^1.5.2","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","@types/postmate":"^1.5.4"},"_npmOperationalInternal":{"tmp":"tmp/ows-wallet-utils_0.1.1_1784247996308_0.6349838711684062","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@1shotapi/ows-wallet-utils","version":"0.1.2","keywords":["ows","open-wallet-standard","postmate","iframe","wallet"],"license":"MIT","_id":"@1shotapi/ows-wallet-utils@0.1.2","maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"homepage":"https://github.com/1Shot-API/open-wallet#readme","bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"dist":{"shasum":"eed8a499c7e2bb63d50494d8da6881c56934fa05","tarball":"https://registry.npmjs.org/@1shotapi/ows-wallet-utils/-/ows-wallet-utils-0.1.2.tgz","fileCount":94,"integrity":"sha512-vnu7QbLJgvRoxZdmTwPE/7znbwB5Y3de6PuOBsBx/UpVIg5jnGBPPiyh3k0m+2XK0vcrvHaWXeKh9VkTGAaNCQ==","signatures":[{"sig":"MEQCIHY0kvF6prTiEaWZewGfGwbenwnNxY/Wp/eAbbKVa7t1AiAKTzAfdhNAqC/GnBPJRKcj3xq7K4sYnDq4GvWT0JyhNQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":153103},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"498d8237269bfcb31125adde74bf01adb27d7b8c","scripts":{"lint":"tsc -p tsconfig.json --noEmit","test":"node --import tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","clean":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""},"_npmUser":{"name":"csibbach","email":"charlottewisteria@gmail.com"},"repository":{"url":"git+https://github.com/1Shot-API/open-wallet.git","type":"git","directory":"packages/ows-wallet-utils"},"_npmVersion":"10.9.8","description":"OWS utilities for Branding Layer implementers — Host Layer ↔ Branding Layer messaging via postmate","directories":{},"_nodeVersion":"22.22.3","dependencies":{"zod":"^4.4.0","postmate":"^1.5.2","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","viem":"^2.52.0","@types/postmate":"^1.5.4"},"peerDependencies":{"viem":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ows-wallet-utils_0.1.2_1784598983236_0.12262325701393562","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@1shotapi/ows-wallet-utils","version":"0.2.0","keywords":["ows","open-wallet-standard","postmate","iframe","wallet"],"license":"MIT","_id":"@1shotapi/ows-wallet-utils@0.2.0","maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"homepage":"https://github.com/1Shot-API/open-wallet#readme","bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"dist":{"shasum":"649873ee961c86a5cd5309fb05c94c9a8a7924c1","tarball":"https://registry.npmjs.org/@1shotapi/ows-wallet-utils/-/ows-wallet-utils-0.2.0.tgz","fileCount":94,"integrity":"sha512-FSu9q5iGAm8rvLBNXhJQOT1f2mXoAhwrIdFGPuePh5IepeMBKcHvVCt/J9vLtV+zQR+Gp7kg+OWEVv977DWThg==","signatures":[{"sig":"MEUCIQCBNXt6gMZlUqcrbdXchWVpwH9bAq/NG36SHiRo0EhCpgIga+rANHpqJq7n6FrKN+v3CSAiofsUSOKn7CJgL/XZiDg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":153035},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"465d4b9be29dd00267d5933db56cef2d71d57d5f","scripts":{"lint":"tsc -p tsconfig.json --noEmit","test":"node --import tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","clean":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""},"_npmUser":{"name":"csibbach","email":"charlottewisteria@gmail.com"},"repository":{"url":"git+https://github.com/1Shot-API/open-wallet.git","type":"git","directory":"packages/ows-wallet-utils"},"_npmVersion":"10.9.8","description":"OWS utilities for Branding Layer implementers — Host Layer ↔ Branding Layer messaging via postmate","directories":{},"_nodeVersion":"22.22.3","dependencies":{"zod":"^4.4.0","postmate":"^1.5.2","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","viem":"^2.52.0","@types/postmate":"^1.5.4"},"peerDependencies":{"viem":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ows-wallet-utils_0.2.0_1785271321396_0.3980132107044374","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@1shotapi/ows-wallet-utils","version":"0.3.0","keywords":["ows","open-wallet-standard","postmate","iframe","wallet"],"license":"MIT","_id":"@1shotapi/ows-wallet-utils@0.3.0","maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"homepage":"https://github.com/1Shot-API/open-wallet#readme","bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"dist":{"shasum":"75630c520155d24c3cea796eba231305092d03d8","tarball":"https://registry.npmjs.org/@1shotapi/ows-wallet-utils/-/ows-wallet-utils-0.3.0.tgz","fileCount":94,"integrity":"sha512-mibm2JU9JtuZB4gc6Pb0lZLszQiS7K4mcujD/iJSfz47JPx/O6TVs/XxVCsmoCSu3CBRXdnq1+NaKqRSzsg3fg==","signatures":[{"sig":"MEUCIQDAPy093GX0Q9pZtQmPUXRXSGvxtq45p6039UUs/lFPZAIgdr7Aixj0tdNN6Ft/RFEuSZt0cTAl0SQGB4NWN+eWIhQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":159424},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"ee8dcf7e317f7fba8084445861e93ddd752b928e","scripts":{"lint":"tsc -p tsconfig.json --noEmit","test":"node --import tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","clean":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""},"_npmUser":{"name":"csibbach","email":"charlottewisteria@gmail.com"},"repository":{"url":"git+https://github.com/1Shot-API/open-wallet.git","type":"git","directory":"packages/ows-wallet-utils"},"_npmVersion":"10.9.8","description":"OWS utilities for Branding Layer implementers — Host Layer ↔ Branding Layer messaging via postmate","directories":{},"_nodeVersion":"22.22.3","dependencies":{"zod":"^4.4.0","postmate":"^1.5.2","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","viem":"^2.52.0","@types/postmate":"^1.5.4"},"peerDependencies":{"viem":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ows-wallet-utils_0.3.0_1785374151373_0.18560454121483727","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@1shotapi/ows-wallet-utils","version":"0.4.0","keywords":["ows","open-wallet-standard","postmate","iframe","wallet"],"license":"MIT","_id":"@1shotapi/ows-wallet-utils@0.4.0","maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"homepage":"https://github.com/1Shot-API/open-wallet#readme","bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"dist":{"shasum":"92907e6f105f948beee1f6c62c40b2030a86f2a8","tarball":"https://registry.npmjs.org/@1shotapi/ows-wallet-utils/-/ows-wallet-utils-0.4.0.tgz","fileCount":102,"integrity":"sha512-6mDi44gsa6oRs3Wy9Snitmca084lkrXxKCn9YQH2/i8y5OE+UGiH8d8kgAn/fsN4AFMKzxP2T77/b4SL0td+Yg==","signatures":[{"sig":"MEQCIDnLy7Gpsc9hvLH3I6mn0nO3IMkh80Sa8ELkVVtFU+PYAiAF22dtVxlBAN/nDIEdU26/XDjFWHAUxqLYkaRkLiCMNw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":168422},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"ec4a1c1909e7868edb208e6b02d89e0b8133ee5e","scripts":{"lint":"tsc -p tsconfig.json --noEmit","test":"node --import tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","clean":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""},"_npmUser":{"name":"csibbach","email":"charlottewisteria@gmail.com"},"repository":{"url":"git+https://github.com/1Shot-API/open-wallet.git","type":"git","directory":"packages/ows-wallet-utils"},"_npmVersion":"10.9.8","description":"OWS utilities for Branding Layer implementers — Host Layer ↔ Branding Layer messaging via postmate","directories":{},"_nodeVersion":"22.22.3","dependencies":{"zod":"^4.4.0","postmate":"^1.5.2","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","viem":"^2.52.0","@types/postmate":"^1.5.4"},"peerDependencies":{"viem":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ows-wallet-utils_0.4.0_1785453791058_0.4162061329460851","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@1shotapi/ows-wallet-utils","version":"0.4.1","keywords":["ows","open-wallet-standard","postmate","iframe","wallet"],"license":"MIT","_id":"@1shotapi/ows-wallet-utils@0.4.1","maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"homepage":"https://github.com/1Shot-API/open-wallet#readme","bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"dist":{"shasum":"d473f80512482dad57007a2972d6e3e1b79218a7","tarball":"https://registry.npmjs.org/@1shotapi/ows-wallet-utils/-/ows-wallet-utils-0.4.1.tgz","fileCount":106,"integrity":"sha512-jsoB1bMdwNl0nyJdzyB0ZzYgMvJ3kMBIziJMQcvjQSNPEFIgnundWbB5GzSZlpQz9A16ZHbMgrNfe8H0NoVv/A==","signatures":[{"sig":"MEQCIEPQlOf0OetQ+wAhYqedbjXdNkyLxpR51DGzv542JRpBAiAW7QSCPicbe/eGnsMVbJrltiyVS53EMJpWL6XBr3nZ/w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":173343},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"8f4b8eee045cbb1a854bb4e3e739f326c9d4cd85","scripts":{"lint":"tsc -p tsconfig.json --noEmit","test":"node --import tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","clean":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""},"_npmUser":{"name":"csibbach","email":"charlottewisteria@gmail.com"},"repository":{"url":"git+https://github.com/1Shot-API/open-wallet.git","type":"git","directory":"packages/ows-wallet-utils"},"_npmVersion":"10.9.8","description":"OWS utilities for Branding Layer implementers — Host Layer ↔ Branding Layer messaging via postmate","directories":{},"_nodeVersion":"22.22.3","dependencies":{"zod":"^4.4.0","postmate":"^1.5.2","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","viem":"^2.52.0","@types/postmate":"^1.5.4"},"peerDependencies":{"viem":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ows-wallet-utils_0.4.1_1786145747709_0.5566974800543838","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"@1shotapi/ows-wallet-utils","version":"0.5.0","keywords":["ows","open-wallet-standard","postmate","iframe","wallet"],"license":"MIT","_id":"@1shotapi/ows-wallet-utils@0.5.0","maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"homepage":"https://github.com/1Shot-API/open-wallet#readme","bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"dist":{"shasum":"795ee3eb56e8e80c745b89ae65b425ec61f8eef5","tarball":"https://registry.npmjs.org/@1shotapi/ows-wallet-utils/-/ows-wallet-utils-0.5.0.tgz","fileCount":110,"integrity":"sha512-DVUbnREK9wphE102hmCnO8cacbenBtppQ9wP5eO1qWD4rhTLXry0A7oDEDwvt1vlcHxEjflT4XtfrQy6SrAGvg==","signatures":[{"sig":"MEQCIE5Nb/sDvHmMgpIbM7lgmZg42Zac23z9uWB3onyWP7E4AiAhlEVdwZRAKqCK7tTz473CedzR51GCGWw0nF6K0PyHLw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICz4na8FbyBMz6xCSnNwETKXE3wvom6rcmP0Ksr+gyPuAiEA7bLIGM3qYeRwJRIWpT0xT0lm0t+2mmn3PU4xLGM1pI8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":182333},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"728eb8dc8c12d8a1864dd482f3bccc9e53232c0a","scripts":{"lint":"tsc -p tsconfig.json --noEmit","test":"node --import tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","clean":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""},"_npmUser":{"name":"csibbach","email":"charlottewisteria@gmail.com"},"repository":{"url":"git+https://github.com/1Shot-API/open-wallet.git","type":"git","directory":"packages/ows-wallet-utils"},"_npmVersion":"10.9.8","description":"OWS utilities for Branding Layer implementers — Host Layer ↔ Branding Layer messaging via postmate","directories":{},"_nodeVersion":"22.22.3","dependencies":{"zod":"^4.4.0","postmate":"^1.5.2","@scure/base":"^2.4.0","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","viem":"^2.52.0","@types/postmate":"^1.5.4"},"peerDependencies":{"viem":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ows-wallet-utils_0.5.0_1788575049154_0.397545136284597","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"_id":"@1shotapi/ows-wallet-utils@0.5.1","bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"dist":{"shasum":"abd6a78b5b43638ad77f476da563ca278c20cfda","tarball":"https://registry.npmjs.org/@1shotapi/ows-wallet-utils/-/ows-wallet-utils-0.5.1.tgz","fileCount":110,"integrity":"sha512-VpIuwecVHlHYjWtEaHhsvjsaU2LIGJJ7gLUZOTOWASiZ4SWPziS7hEHuNr5QhU9MfD664i1xqeoDs6lZxCeZ1A==","signatures":[{"sig":"MEQCIGDEAGXK7EQxKlFRASfJXKX46hAx+mIC//DCzem4UxZhAiBvSpF4I4DmL1ncTzlfnPjIEDsg+adSCpdO+1x+LxPBwQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG3/JCUhiPj7z463mpPwfS/YcQgIO65GvRN3fbu2/48oAiBNS3TS36OXB+kwEQgteBrDTPKqfkjXPepZV19sJkw0Pw=="}],"unpackedSize":182371},"main":"./dist/index.js","name":"@1shotapi/ows-wallet-utils","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"e432a666424946f0c583ec2678d5bf4110eb4ab1","license":"MIT","scripts":{"lint":"tsc -p tsconfig.json --noEmit","test":"node --import tsx --test test/*.test.ts","build":"tsc -p tsconfig.json","clean":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\""},"version":"0.5.1","_npmUser":{"name":"csibbach","email":"charlottewisteria@gmail.com"},"homepage":"https://github.com/1Shot-API/open-wallet#readme","keywords":["ows","open-wallet-standard","postmate","iframe","wallet"],"repository":{"url":"git+https://github.com/1Shot-API/open-wallet.git","type":"git","directory":"packages/ows-wallet-utils"},"_npmVersion":"10.9.8","description":"OWS utilities for Branding Layer implementers — Host Layer ↔ Branding Layer messaging via postmate","directories":{},"maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"_nodeVersion":"22.22.3","dependencies":{"zod":"^4.4.0","postmate":"^1.5.2","@scure/base":"^2.4.0","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0","viem":"^2.52.0","@types/postmate":"^1.5.4"},"peerDependencies":{"viem":"^2.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ows-wallet-utils_0.5.1_1788812543441_0.7004239874848865"}}},"time":{"created":"2026-07-15T00:41:56.763Z","modified":"2026-09-07T20:22:23.713Z","0.1.0":"2026-07-15T00:41:57.115Z","0.1.1":"2026-07-17T00:26:36.450Z","0.1.2":"2026-07-21T01:56:23.383Z","0.2.0":"2026-07-28T20:42:01.524Z","0.3.0":"2026-07-30T01:15:51.542Z","0.4.0":"2026-07-30T23:23:11.205Z","0.4.1":"2026-08-07T23:35:47.855Z","0.5.0":"2026-09-05T02:24:09.242Z","0.5.1":"2026-09-07T20:22:23.531Z"},"bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"license":"MIT","homepage":"https://github.com/1Shot-API/open-wallet#readme","keywords":["ows","open-wallet-standard","postmate","iframe","wallet"],"repository":{"url":"git+https://github.com/1Shot-API/open-wallet.git","type":"git","directory":"packages/ows-wallet-utils"},"description":"OWS utilities for Branding Layer implementers — Host Layer ↔ Branding Layer messaging via postmate","maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"readme":"# @1shotapi/ows-wallet-utils\n\nUtilities for **Branding Layer** implementers to communicate with the **Host Layer**.\n\nBuilt on [postmate](https://github.com/dollarshaveclub/postmate) with a JSON-RPC-style callback protocol and Zod-validated EIP-1193 params.\n\n## Install\n\n```bash\nnpm install @1shotapi/ows-wallet-utils zod\n```\n\n## Quick start (Branding Layer)\n\n```typescript\nimport { OWSWallet } from \"@1shotapi/ows-wallet-utils\";\nimport { z } from \"zod\";\n\nconst wallet = await OWSWallet.create({\n  eip1193: {\n    async eth_requestAccounts() {\n      return [\"0xYourAddress\"];\n    },\n    async personal_sign(params) {\n      const [message] = params as [string, string];\n      return \"0x…\";\n    },\n  },\n  rpc: {\n    getStatus: {\n      handler: async () => ({ connected: true }),\n    },\n  },\n});\n\n// Or register before handshake:\nconst prepared = OWSWallet.prepare();\nprepared.registerRpc(\n  \"customMethod\",\n  async (params) => ({ ok: true }),\n  z.object({ foo: z.number() }),\n);\nawait prepared.start();\n```\n\nUnregistered EIP-1193 methods respond with `OwsUnimplementedError` (`-32601`). Custom RPC methods must be registered via `options.rpc` or `registerRpc()` before `start()`.\n\n### Analytics (Branding → Host)\n\nEmit product events to the host over Postmate (`ows:analytics`). Extend `OWSAnalyticsEvent` so `eventId`, `timestamp`, and branded `hostDomain` are filled in `super(...)`; add branding fields on the subclass.\n\n```typescript\nimport {\n  DomainString,\n  EVMAccountAddress,\n  OWSAnalyticsEvent,\n} from \"@1shotapi/ows-types\";\nimport { OWSWallet } from \"@1shotapi/ows-wallet-utils\";\n\nclass AccountCreatedEvent extends OWSAnalyticsEvent {\n  constructor(\n    hostDomain: DomainString,\n    public readonly accountAddress: EVMAccountAddress,\n  ) {\n    super(\"AccountCreated\", hostDomain);\n  }\n}\n\nconst wallet = await OWSWallet.create({ /* … */ });\nwallet.analytics.emit(\n  new AccountCreatedEvent(DomainString(\"app.example.com\"), EVMAccountAddress(\"0x…\")),\n);\n```\n\n### Debug logging\n\nEnable `console.debug` traces for Postmate handshake and RPC traffic:\n\n```typescript\nawait OWSWallet.create({ debug: true, eip1193: { ... } });\n```\n\nOr in the browser console before the wallet loads:\n\n```javascript\nlocalStorage.setItem(\"ows-wallet-utils:debug\", \"1\");\n// or: globalThis.OWS_WALLET_UTILS_DEBUG = true;\n```\n\n## Protocol\n\n- Host calls `child.call(method, envelope)` via Postmate\n- Child emits `ows:rpcCallback` with `{ callId, success, result | error }`\n- Host-side `OWSProxy` sets iframe `allow` (WebAuthn, clipboard) before navigation — do not override after load\n\n## Exports\n\n- `OWSWallet` — child-side Postmate model\n- `AnalyticsChildClient` — Branding→Host analytics emit (`wallet.analytics.emit`)\n- `RpcHelper` — EIP-1193 read methods + chain switching against JSON-RPC URLs\n- `EIP1193_PARAM_SCHEMAS`, `getEip1193ParamSchema` — Zod validators for standard methods\n- `CredentialWalletRegistrar`, `CREDENTIAL_PARAM_SCHEMAS` — credentials wire hooks (handlers still registered on `OWSWallet.credentials`)\n\nFor OID4 issuance/presentation orchestration, install the optional `@1shotapi/ows-oid4` add-on (`CredentialsHelper`, HTTP clients).\n\nShared protocol types and errors live in `@1shotapi/ows-types`.\n\n## Related\n\n| Package | Role |\n|---------|------|\n| `@1shotapi/ows-provider` | Host Layer `OWSProxy` + EIP-1193 |\n| `@1shotapi/ows-signer-utils` | Branding Layer ↔ Signing Layer |\n| `@1shotapi/ows-oid4` | Optional credentials add-on |\n\n## License\n\nMIT\n","readmeFilename":"README.md"}