{"_id":"@ai-passport-core/sdk","_rev":"2-7979854a9cc34aadebe1dcfea6baaea4","name":"@ai-passport-core/sdk","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"@ai-passport-core/sdk","version":"0.1.0","keywords":["ai","identity","passport","sdk","encryption","developer-tools"],"author":{"name":"Mendocan"},"license":"MIT","_id":"@ai-passport-core/sdk@0.1.0","maintainers":[{"name":"mendocan","email":"mendokurtoglu@gmail.com"}],"homepage":"https://mendocan.github.io/ai-passport/SDK.html","bugs":{"url":"https://github.com/Mendocan/ai-passport/issues"},"dist":{"shasum":"72f4948075cded22e5a0ca7022bf2a187a3d4dc0","tarball":"https://registry.npmjs.org/@ai-passport-core/sdk/-/sdk-0.1.0.tgz","fileCount":69,"integrity":"sha512-PJfAj9kXG69xek38ldmf0jVtHOuU628LNd2OxNtlGHNgiTq2qVoRACu0tsy/Rr9YWKUSOohz4B3TFZdsLyr5mQ==","signatures":[{"sig":"MEUCIBAnAT4360lKM3+43UN9xQBLGA34EwnG4q8VGUgd2+jjAiEA5nZvaQ9g8zg2z3ahCtBp6EdY2Z6YwJkzdkIKrGnP8Uo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":124182},"main":"./dist/sdk/index.js","type":"module","types":"./dist/sdk/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/sdk/index.d.ts","import":"./dist/sdk/index.js"},"./package.json":"./package.json"},"gitHead":"bd911952c9aedd473d0798fa301bf054c1d5be11","scripts":{"build":"tsc && node scripts/copy-schemas.mjs","clean":"node --input-type=module -e \"import fs from 'node:fs'; fs.rmSync('dist',{recursive:true,force:true}); fs.rmSync('schemas',{recursive:true,force:true})\"","prepack":"npm run rebuild","rebuild":"npm run clean && npm run build","typecheck":"tsc --noEmit","prepublishOnly":"npm run rebuild"},"_npmUser":{"name":"mendocan","email":"mendokurtoglu@gmail.com"},"repository":{"url":"git+https://github.com/Mendocan/ai-passport.git","type":"git","directory":"packages/sdk"},"_npmVersion":"11.14.0","description":"Lightweight SDK for AI Passport — user-owned identity for AI apps (no CLI/MCP deps)","directories":{},"_nodeVersion":"24.11.0","dependencies":{"ajv":"^8.17.1","keytar":"^7.9.0","ajv-formats":"^3.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1783162228325_0.6405365240935352","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@ai-passport-core/sdk","version":"0.3.1","description":"Lightweight SDK for AI Passport — user-owned identity and permissioned memory for AI apps (no CLI/MCP deps)","type":"module","main":"./dist/sdk/index.js","types":"./dist/sdk/index.d.ts","exports":{".":{"types":"./dist/sdk/index.d.ts","import":"./dist/sdk/index.js"},"./package.json":"./package.json"},"scripts":{"build":"tsc && node scripts/copy-schemas.mjs","clean":"node --input-type=module -e \"import fs from 'node:fs'; fs.rmSync('dist',{recursive:true,force:true}); fs.rmSync('schemas',{recursive:true,force:true})\"","rebuild":"npm run clean && npm run build","prepublishOnly":"npm run rebuild","prepack":"npm run rebuild","typecheck":"tsc --noEmit"},"engines":{"node":">=20"},"keywords":["ai","identity","passport","sdk","encryption","developer-tools"],"author":{"name":"Mendocan"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Mendocan/ai-passport.git","directory":"packages/sdk"},"homepage":"https://mendocan.github.io/ai-passport/SDK.html","bugs":{"url":"https://github.com/Mendocan/ai-passport/issues"},"publishConfig":{"access":"public"},"dependencies":{"ajv":"^8.17.1","ajv-formats":"^3.0.1","keytar":"^7.9.0"},"devDependencies":{"@types/node":"^22.15.21","typescript":"^5.8.3"},"gitHead":"ed319e0ec61c6a2df38cad99ea6b524f869053d6","_id":"@ai-passport-core/sdk@0.3.1","_nodeVersion":"24.11.0","_npmVersion":"11.14.0","dist":{"integrity":"sha512-gM0dTm9wS+p9gJKlW2IYic+zcEXjinQWbQ/YtBBgjieDMJzvdsnZ2OydhANIjUQfmbkxNsXRrxMk2g2I8NzfkA==","shasum":"04ffa9b008c1644a51add3fdc655b9c4e643b657","tarball":"https://registry.npmjs.org/@ai-passport-core/sdk/-/sdk-0.3.1.tgz","fileCount":113,"unpackedSize":197134,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBWCOYwOV/QFrK3VceM7/WeOjjbOmjaWT0orwuPgFoCpAiEA13U7KawHfqOo/dUCJm8c+b8Y9UGb35ZAQB7IaU862UY="}]},"_npmUser":{"name":"mendocan","email":"mendokurtoglu@gmail.com"},"directories":{},"maintainers":[{"name":"mendocan","email":"mendokurtoglu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.3.1_1783364266981_0.6382726395503777"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-04T10:50:28.219Z","modified":"2026-07-06T18:57:47.258Z","0.1.0":"2026-07-04T10:50:28.462Z","0.3.1":"2026-07-06T18:57:47.127Z"},"bugs":{"url":"https://github.com/Mendocan/ai-passport/issues"},"author":{"name":"Mendocan"},"license":"MIT","homepage":"https://mendocan.github.io/ai-passport/SDK.html","keywords":["ai","identity","passport","sdk","encryption","developer-tools"],"repository":{"type":"git","url":"git+https://github.com/Mendocan/ai-passport.git","directory":"packages/sdk"},"description":"Lightweight SDK for AI Passport — user-owned identity and permissioned memory for AI apps (no CLI/MCP deps)","maintainers":[{"name":"mendocan","email":"mendokurtoglu@gmail.com"}],"readme":"# @ai-passport-core/sdk\r\n\r\nLightweight Node.js SDK for [AI Passport](https://github.com/Mendocan/ai-passport) — identity, grants, and memory-enriched export. No CLI or MCP dependencies.\r\n\r\n**Version:** aligned with `@ai-passport-core/cli` (currently `0.3.1`).\r\n\r\n## Install\r\n\r\n```bash\r\nnpm install @ai-passport-core/sdk\r\n```\r\n\r\n## Quick start\r\n\r\n```typescript\r\nimport { Passport } from '@ai-passport-core/sdk';\r\n\r\nconst passport = await Passport.load();\r\nconst context = await passport.export('my-app');\r\n// When grant includes memory namespaces, context.memory is populated (RFC 0007).\r\n```\r\n\r\nRequires an existing passport (`ai-passport init` via the CLI, or `Passport.create()`).\r\n\r\n## vs `@ai-passport-core/cli/sdk`\r\n\r\n| Package | Use when |\r\n|---------|----------|\r\n| `@ai-passport-core/sdk` | Embedding in apps — lighter deps |\r\n| `@ai-passport-core/cli/sdk` | Same API; you already depend on the CLI |\r\n\r\nFull API: [SDK.md](https://mendocan.github.io/ai-passport/SDK.html)\r\n\r\nMIT · Open source\r\n","readmeFilename":"README.md"}