{"_id":"@afauthhq/core","_rev":"4-ca1f8521a2e063cc09484f6922ecf3eb","name":"@afauthhq/core","dist-tags":{"alpha":"0.1.0-alpha.0","latest":"0.3.0"},"versions":{"0.1.0-alpha.0":{"name":"@afauthhq/core","version":"0.1.0-alpha.0","license":"MIT","_id":"@afauthhq/core@0.1.0-alpha.0","maintainers":[{"name":"wenguo","email":"guowen89@gmail.com"}],"homepage":"https://github.com/AFAuthHQ/typescript-sdk#readme","bugs":{"url":"https://github.com/AFAuthHQ/typescript-sdk/issues"},"dist":{"shasum":"e02da86407d8da86371ac353aced896106c536b5","tarball":"https://registry.npmjs.org/@afauthhq/core/-/core-0.1.0-alpha.0.tgz","fileCount":5,"integrity":"sha512-nPjlTAdp9SVdEH9Z9jK9IhU34kiNtHkbPxEwQhegodq9QZx6eAGzdx0AlPolsLuwWVFq4Rd4isZQwBFlFVmxvQ==","signatures":[{"sig":"MEQCIFvFkh2NUZKW8zXHp4KMP9x7gVKI/LUwAM8MaOTkpT3wAiAPjsVB4rV02juhFG0YbAZGzIBI50kWRgMlFj6x5bz/8A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19728},"main":"./dist/index.js","type":"module","_from":"file:afauthhq-core-0.1.0-alpha.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"echo TODO: configure lint","test":"vitest run --passWithNoTests","build":"tsup src/index.ts --format esm --dts --clean","coverage":"vitest run --coverage --passWithNoTests","typecheck":"tsc --noEmit"},"_npmUser":{"name":"wenguo","email":"guowen89@gmail.com"},"_resolved":"/private/var/folders/hk/yf2t06h97pdcy_ynlkn2rq3c0000gn/T/cee99b25bcf0497c0c40bb80e4092a24/afauthhq-core-0.1.0-alpha.0.tgz","_integrity":"sha512-nPjlTAdp9SVdEH9Z9jK9IhU34kiNtHkbPxEwQhegodq9QZx6eAGzdx0AlPolsLuwWVFq4Rd4isZQwBFlFVmxvQ==","repository":{"url":"git+https://github.com/AFAuthHQ/typescript-sdk.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.4","description":"AFAuth core primitives — did:key codec, RFC 9421 canonicalisation, error envelope, shared types","directories":{},"_nodeVersion":"22.22.1","dependencies":{"@noble/curves":"^2.2.0","@noble/hashes":"^2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0-alpha.0_1779354503774_0.7966819736170663","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@afauthhq/core","version":"0.1.0","license":"MIT","_id":"@afauthhq/core@0.1.0","maintainers":[{"name":"wenguo","email":"guowen89@gmail.com"}],"homepage":"https://github.com/AFAuthHQ/typescript-sdk#readme","bugs":{"url":"https://github.com/AFAuthHQ/typescript-sdk/issues"},"dist":{"shasum":"3c7504ae0c5001d656b61ce2836656dfe71cc8f9","tarball":"https://registry.npmjs.org/@afauthhq/core/-/core-0.1.0.tgz","fileCount":5,"integrity":"sha512-1DMsiVWtYk1/siOfpsFkxkEmL+4Xw8RTwdcbkjb2hPseUlR9ZnaGRxqX0I1DxRJ8q96cV6ZFGw+nI0TIyVnyFA==","signatures":[{"sig":"MEQCIG8jS6OVE2ewTcTfuR3vfaYSSwv/zWFtQr9+mXHEWdXeAiBcgh17j45Qmpj0gt+/nkY1+CapfHl+OYOVPHZRcWnc5Q==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19720},"main":"./dist/index.js","type":"module","_from":"file:afauthhq-core-0.1.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"echo TODO: configure lint","test":"vitest run --passWithNoTests","build":"tsup src/index.ts --format esm --dts --clean","coverage":"vitest run --coverage --passWithNoTests","typecheck":"tsc --noEmit"},"_npmUser":{"name":"wenguo","email":"guowen89@gmail.com"},"_resolved":"/private/var/folders/hk/yf2t06h97pdcy_ynlkn2rq3c0000gn/T/313fcaee1c070e4e05d7005f0ae60700/afauthhq-core-0.1.0.tgz","_integrity":"sha512-1DMsiVWtYk1/siOfpsFkxkEmL+4Xw8RTwdcbkjb2hPseUlR9ZnaGRxqX0I1DxRJ8q96cV6ZFGw+nI0TIyVnyFA==","repository":{"url":"git+https://github.com/AFAuthHQ/typescript-sdk.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.4","description":"AFAuth core primitives — did:key codec, RFC 9421 canonicalisation, error envelope, shared types","directories":{},"_nodeVersion":"22.22.1","dependencies":{"@noble/curves":"^2.2.0","@noble/hashes":"^2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.1.0_1779355988300_0.9146442418480789","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@afauthhq/core","version":"0.2.0","license":"MIT","_id":"@afauthhq/core@0.2.0","maintainers":[{"name":"wenguo","email":"guowen89@gmail.com"}],"homepage":"https://github.com/AFAuthHQ/typescript-sdk#readme","bugs":{"url":"https://github.com/AFAuthHQ/typescript-sdk/issues"},"dist":{"shasum":"6c2cab7580ef38a672fe3cb8be8ba86847e36426","tarball":"https://registry.npmjs.org/@afauthhq/core/-/core-0.2.0.tgz","fileCount":5,"integrity":"sha512-+lsLSU81coFG7LJMpoBC+e1qOiTMLV7OoO8uyQx3UbLIWMCwGw9U3wiE2PedfcKRwqLxsC1l2hsI4TVqfwvsDg==","signatures":[{"sig":"MEUCIBOSFrf/mkApDUYnJwzfaQKvxl4T/uHTY3/iJmiNvBgCAiEAsPpSjdTiHkakRHoyGnQXAtCuCV2K5qBDDMkeWtrC4gA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18540},"main":"./dist/index.js","type":"module","_from":"file:afauthhq-core-0.2.0.tgz","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"lint":"echo TODO: configure lint","test":"vitest run --passWithNoTests","build":"tsup src/index.ts --format esm --dts --clean","coverage":"vitest run --coverage --passWithNoTests","typecheck":"tsc --noEmit"},"_npmUser":{"name":"wenguo","email":"guowen89@gmail.com"},"_resolved":"/private/tmp/claude-501/ae38da07e5bac320f65d5b27b8e404a9/afauthhq-core-0.2.0.tgz","_integrity":"sha512-+lsLSU81coFG7LJMpoBC+e1qOiTMLV7OoO8uyQx3UbLIWMCwGw9U3wiE2PedfcKRwqLxsC1l2hsI4TVqfwvsDg==","repository":{"url":"git+https://github.com/AFAuthHQ/typescript-sdk.git","type":"git","directory":"packages/core"},"_npmVersion":"10.9.4","description":"AFAuth core primitives — did:key codec, RFC 9421 canonicalisation, error envelope, shared types","directories":{},"_nodeVersion":"22.22.1","dependencies":{"@noble/curves":"^2.2.0","@noble/hashes":"^2.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","vitest":"^2.0.0","typescript":"^5.5.0"},"_npmOperationalInternal":{"tmp":"tmp/core_0.2.0_1780414469534_0.4815346990058149","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@afauthhq/core","version":"0.3.0","description":"AFAuth core primitives — did:key codec, RFC 9421 canonicalisation, error envelope, shared types","license":"MIT","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"devDependencies":{"tsup":"^8.0.0","typescript":"^5.5.0","vitest":"^2.0.0"},"repository":{"type":"git","url":"git+https://github.com/AFAuthHQ/typescript-sdk.git","directory":"packages/core"},"publishConfig":{"access":"public"},"dependencies":{"@noble/curves":"^2.2.0","@noble/hashes":"^2.2.0"},"scripts":{"build":"tsup src/index.ts --format esm --dts --clean","test":"vitest run --passWithNoTests","coverage":"vitest run --coverage --passWithNoTests","lint":"echo TODO: configure lint","typecheck":"tsc --noEmit"},"_id":"@afauthhq/core@0.3.0","bugs":{"url":"https://github.com/AFAuthHQ/typescript-sdk/issues"},"homepage":"https://github.com/AFAuthHQ/typescript-sdk#readme","_integrity":"sha512-eVdcf/s8fh8yp30+l1M40IWHigS+9kho+LjrQr5LTjQSPeuIrJsxUz+EpU9t+OmEnsC+qIKGLbjJoEXfVTe7dg==","_resolved":"/private/var/folders/hk/yf2t06h97pdcy_ynlkn2rq3c0000gn/T/755311a3b409c509a44574df4cae55f2/afauthhq-core-0.3.0.tgz","_from":"file:afauthhq-core-0.3.0.tgz","_nodeVersion":"22.22.1","_npmVersion":"10.9.4","dist":{"integrity":"sha512-eVdcf/s8fh8yp30+l1M40IWHigS+9kho+LjrQr5LTjQSPeuIrJsxUz+EpU9t+OmEnsC+qIKGLbjJoEXfVTe7dg==","shasum":"9d74ec04b8413abe84290579800b2360f0d62c9f","tarball":"https://registry.npmjs.org/@afauthhq/core/-/core-0.3.0.tgz","fileCount":5,"unpackedSize":23128,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICX9aeBwJJ9ZUZZavlXSYyJKmtCnYntZt6iMZJ4BcpgjAiBHgtTsGeIV+5YLJbrcJllOVuKWQhEn4hXN94xMKyeuHQ=="}]},"_npmUser":{"name":"wenguo","email":"guowen89@gmail.com"},"directories":{},"maintainers":[{"name":"wenguo","email":"guowen89@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/core_0.3.0_1780972421669_0.6430985160565923"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-21T09:08:23.627Z","modified":"2026-06-09T02:33:41.939Z","0.1.0-alpha.0":"2026-05-21T09:08:23.938Z","0.1.0":"2026-05-21T09:33:08.450Z","0.2.0":"2026-06-02T15:34:29.683Z","0.3.0":"2026-06-09T02:33:41.811Z"},"bugs":{"url":"https://github.com/AFAuthHQ/typescript-sdk/issues"},"license":"MIT","homepage":"https://github.com/AFAuthHQ/typescript-sdk#readme","repository":{"type":"git","url":"git+https://github.com/AFAuthHQ/typescript-sdk.git","directory":"packages/core"},"description":"AFAuth core primitives — did:key codec, RFC 9421 canonicalisation, error envelope, shared types","maintainers":[{"name":"wenguo","email":"guowen89@gmail.com"}],"readme":"# `@afauthhq/core`\n\nShared primitives for the AFAuth Protocol — used by `@afauthhq/agent`,\n`@afauthhq/server`, and `@afauthhq/worker`.\n\n## Exports\n\n- **Identity** — `Did`, `Ed25519PublicKey`, `Ed25519PrivateKey`\n- **`did:key` codec** (§3.1.1) — `encodeDidKey(pub)`, `decodeDidKey(did)`\n- **Recipient registry** (§7.7) — `Recipient` (email / phone / oidc / did)\n- **Signature parameters** (§5.2) — `SignatureParams`, `CoveredComponent`\n- **Canonicalisation** (§5.2) — `buildCanonicalInput(req, params, covered)`\n- **Content-digest** (RFC 9530) — `sha256ContentDigest(body)`\n- **Discovery** (§4) — `DiscoveryDocument`\n- **Error envelope** (§11) — `AFAuthError`, `AFAuthErrorCode`\n- **Helpers** — `deriveInvitationId(token)` for non-secret invitation IDs\n\nThis package has no runtime dependencies on other `@afauthhq/*` packages;\nit depends on `@noble/curves` and `@noble/hashes` for crypto primitives.\n\n## See also\n\n- [`AFAuthHQ/spec`](https://github.com/AFAuthHQ/spec) — the protocol\n  specification this package implements.\n- [`AFAuthHQ/typescript-sdk`](https://github.com/AFAuthHQ/typescript-sdk)\n  — the workspace this package lives in, including the agent, server,\n  and worker packages.\n","readmeFilename":"README.md"}