{"_id":"@1shotapi/ows-oid4","_rev":"5-96895f0949386270764c578ee2da2a47","name":"@1shotapi/ows-oid4","dist-tags":{"latest":"0.4.0"},"versions":{"0.1.0":{"name":"@1shotapi/ows-oid4","version":"0.1.0","keywords":["ows","openid4vci","openid4vp","oid4vci","oid4vp","sd-jwt"],"license":"MIT","_id":"@1shotapi/ows-oid4@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":"fa124e580ed009056d03a25352045f1bf485f186","tarball":"https://registry.npmjs.org/@1shotapi/ows-oid4/-/ows-oid4-0.1.0.tgz","fileCount":50,"integrity":"sha512-V7TMOReu+zNoXrRK8NyyoW09wVK5UacFOYD/Zaz6jbT6xUvTZOtd/EzibnRtqfDTscCP8KPUszNrSD9MnnnSOA==","signatures":[{"sig":"MEUCIQD4Ln+B9VyT28YVzb7/Lq5BjX02QJeImpLByZI09r2a0wIgZd0/0Rka+Rel9O5/z2PAaGAX3qaYAukKwTaCugh3+Yc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88364},"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-oid4"},"_npmVersion":"10.9.8","description":"Optional OWS credentials add-on — CredentialsHelper, HTTP OID4VCI/OID4VP clients, holder signer bridge","directories":{},"_nodeVersion":"22.22.3","dependencies":{"jose":"^6.0.11","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0"},"_npmOperationalInternal":{"tmp":"tmp/ows-oid4_0.1.0_1784076108549_0.39529174770736697","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@1shotapi/ows-oid4","version":"0.1.1","keywords":["ows","openid4vci","openid4vp","oid4vci","oid4vp","sd-jwt"],"license":"MIT","_id":"@1shotapi/ows-oid4@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":"72885c408beae9266001143d0d493c4100d1ffde","tarball":"https://registry.npmjs.org/@1shotapi/ows-oid4/-/ows-oid4-0.1.1.tgz","fileCount":50,"integrity":"sha512-3Vy1sG48h8zENWDGQIHQx6LFaf74HhVFKd5vCmhiOH0lPAhVnSPlMJDHEii9kvt6tayBbmKob6IDHfsail97Rw==","signatures":[{"sig":"MEQCIFX75Y5r49YpaZKaKQwtsRxbb0Ykp5eNqShVPpyJ7PqZAiBU7b6iIazvHxfCb+CGhaITrgz2AbjRd+6/dFR29HpeKQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88955},"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-oid4"},"_npmVersion":"10.9.8","description":"Optional OWS credentials add-on — CredentialsHelper, HTTP OID4VCI/OID4VP clients, holder signer bridge","directories":{},"_nodeVersion":"22.22.3","dependencies":{"jose":"^6.0.11","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0"},"_npmOperationalInternal":{"tmp":"tmp/ows-oid4_0.1.1_1784247986662_0.8332555591339361","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@1shotapi/ows-oid4","version":"0.2.0","keywords":["ows","openid4vci","openid4vp","oid4vci","oid4vp","sd-jwt"],"license":"MIT","_id":"@1shotapi/ows-oid4@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":"8159c2602007ebf34063860f78f202344930fbf3","tarball":"https://registry.npmjs.org/@1shotapi/ows-oid4/-/ows-oid4-0.2.0.tgz","fileCount":50,"integrity":"sha512-o2rt2/mMi9ZpVnXX0gFn6zZtJTi8skfg7QvHKNqTk5opd4Pp55O+bdtQRHzwVXcKE24PvoV6aiGTZLU5vt4vZw==","signatures":[{"sig":"MEYCIQDxR83efcI7E0EIFxzJyQg3GDB90pOiYKLSSl53yHOsVQIhANxZKphLw/M/gVyM1AkxpEvFn26dZAH6uoobK5JBQVzj","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":89300},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"ab46c168750134b7888c9a4a677b17a5801246b4","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-oid4"},"_npmVersion":"10.9.8","description":"Optional OWS credentials add-on — CredentialsHelper, HTTP OID4VCI/OID4VP clients, holder signer bridge","directories":{},"_nodeVersion":"22.22.3","dependencies":{"jose":"^6.0.11","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0"},"_npmOperationalInternal":{"tmp":"tmp/ows-oid4_0.2.0_1784871013421_0.054074021617910306","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@1shotapi/ows-oid4","version":"0.3.0","keywords":["ows","openid4vci","openid4vp","oid4vci","oid4vp","sd-jwt"],"license":"MIT","_id":"@1shotapi/ows-oid4@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":"710e3e1bdea998a0e77d3e65cd8d63e5ceea382b","tarball":"https://registry.npmjs.org/@1shotapi/ows-oid4/-/ows-oid4-0.3.0.tgz","fileCount":50,"integrity":"sha512-jnxIdDUuTYi+9WUSOqJ2u/vWxeZsQ/sajwuByUZ2FvKdvPHrmIM1MXTKI5BDX174kNYX+qpFH5s9DC6rISnGfg==","signatures":[{"sig":"MEYCIQC9QJLx57AwudR2IC6smE4nMruearRYMBQqjDonKsmNMQIhANUqXjVz1btpR+O4dDuiaIuqdZQWByYHKq2PKs2LHivZ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":88309},"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-oid4"},"_npmVersion":"10.9.8","description":"Optional OWS credentials add-on — CredentialsHelper, HTTP OID4VCI/OID4VP clients, holder signer bridge","directories":{},"_nodeVersion":"22.22.3","dependencies":{"jose":"^6.0.11","@1shotapi/ows-types":"*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.19.0"},"_npmOperationalInternal":{"tmp":"tmp/ows-oid4_0.3.0_1785271314932_0.13726398085072922","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@1shotapi/ows-oid4","version":"0.4.0","description":"Optional OWS credentials add-on — CredentialsHelper, HTTP OID4VCI/OID4VP clients, holder signer bridge","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","clean":"node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\"","test":"node --import tsx --test test/*.test.ts","lint":"tsc -p tsconfig.json --noEmit"},"dependencies":{"@1shotapi/ows-types":"*","jose":"^6.0.11"},"devDependencies":{"tsx":"^4.19.0"},"keywords":["ows","openid4vci","openid4vp","oid4vci","oid4vp","sd-jwt"],"repository":{"type":"git","url":"git+https://github.com/1Shot-API/open-wallet.git","directory":"packages/ows-oid4"},"license":"MIT","publishConfig":{"access":"public"},"_id":"@1shotapi/ows-oid4@0.4.0","gitHead":"6eb1116ae5343f5c88058b6b940eb591b794d9b3","bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"homepage":"https://github.com/1Shot-API/open-wallet#readme","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-i+UCjtbZggeLtfN4kLSIqVCIWaZ/2dgaSrVVrscb7HjVDiZ4MpR9IuyycXtEbfdV7C7ZdVgFSxHQxqbBBReI5A==","shasum":"95f4cf8225fced65290c877a91d44aabc5b4cc8e","tarball":"https://registry.npmjs.org/@1shotapi/ows-oid4/-/ows-oid4-0.4.0.tgz","fileCount":50,"unpackedSize":93125,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCDHlybZYt9DcHyct3Tl+GTzvcRiRVv11NDo3hnyo5FIwIhAJaDmrmbP7UZmG/LFpaZUvfu507Ty3RoZHKyyu1IP0W7"}]},"_npmUser":{"name":"csibbach","email":"charlottewisteria@gmail.com"},"directories":{},"maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ows-oid4_0.4.0_1786150452274_0.67497405756511"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-15T00:41:48.366Z","modified":"2026-08-08T00:54:12.590Z","0.1.0":"2026-07-15T00:41:48.683Z","0.1.1":"2026-07-17T00:26:26.816Z","0.2.0":"2026-07-24T05:30:13.555Z","0.3.0":"2026-07-28T20:41:55.093Z","0.4.0":"2026-08-08T00:54:12.412Z"},"bugs":{"url":"https://github.com/1Shot-API/open-wallet/issues"},"license":"MIT","homepage":"https://github.com/1Shot-API/open-wallet#readme","keywords":["ows","openid4vci","openid4vp","oid4vci","oid4vp","sd-jwt"],"repository":{"type":"git","url":"git+https://github.com/1Shot-API/open-wallet.git","directory":"packages/ows-oid4"},"description":"Optional OWS credentials add-on — CredentialsHelper, HTTP OID4VCI/OID4VP clients, holder signer bridge","maintainers":[{"name":"tthebc01","email":"tac688@alumni.stanford.edu"},{"name":"csibbach","email":"charlottewisteria@gmail.com"},{"name":"todd_uxly","email":"todd@uxly.software"}],"readme":"# @1shotapi/ows-oid4\n\nOptional **credentials add-on** for Branding Layers that issue/present via OID4VCI / OID4VP.\n\nUse with `@1shotapi/ows-wallet-utils` (wire registration hooks) and an `IOWSSigner`\n(`OWSSigner` from `@1shotapi/ows-signer-utils`). Skip this package if your branding\nlayer is crypto-only.\n\n## Features\n\n- `CredentialsHelper` — thin adapter: resolve/match/trust → `requestDisplay` → branding `approveAnd*` → `release()`\n- `issueCredentialAfterApproval` / `presentCredentialAfterApproval` — PoP + OID4 helpers for branding hooks\n- `FetchUtils` / `ParseUtils` — injected `IFetchUtils` / `IParseUtils` defaults\n- `HttpOid4vciClient` / `HttpOid4vpClient` — fetch-based OID4 clients (pre-authorized grant, DCQL subset, `direct_post.jwt` encrypt)\n- Demo wallet attestation helper\n\nHolder signing bridge: `createCredentialsHolderSigner` (or `CredentialCryptoUtils.createOwsEd25519HolderSigner` from `@1shotapi/ows-types`).\n\nIssuer/verifier **server** demos live under `examples/credential-*` (not this package).\n\n## Install\n\n```bash\nnpm install @1shotapi/ows-oid4 @1shotapi/ows-wallet-utils\n```\n\n## Branding ownership (SignHelper parity)\n\n```ts\nimport {\n  CredentialsHelper,\n  createCredentialsHolderSigner,\n  issueCredentialAfterApproval,\n  presentCredentialAfterApproval,\n} from \"@1shotapi/ows-oid4\";\n\nconst resolveHolderSigner = createCredentialsHolderSigner(signer);\n\nnew CredentialsHelper(wallet, {\n  repository,\n  oid4vci,\n  oid4vp,\n  trust,\n  approveAndAcceptOffer: async (request) => {\n    // setup-only if needed, consent UI, then:\n    return issueCredentialAfterApproval({\n      offer: request.offer,\n      metadata: request.metadata,\n      oid4vci,\n      repository,\n      resolveHolderSigner,\n      getProofNonce,\n      attestationProvider,\n    });\n  },\n  approveAndPresent: async (request) => {\n    // consent UI, then:\n    return presentCredentialAfterApproval({\n      definition: request.definition,\n      credential: request.credential,\n      oid4vp,\n      resolveHolderSigner,\n      attestationProvider,\n    });\n  },\n}).register();\n```\n\nSetup / unlock and passkey ceremonies belong **inside** `approveAnd*`, not on helper options.\n","readmeFilename":"README.md"}