{"_id":"@agent-auth/sdk","name":"@agent-auth/sdk","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@agent-auth/sdk","version":"0.1.1","type":"module","main":"dist/index.cjs","module":"dist/index.js","types":"dist/index.d.ts","scripts":{"test":"jest","clean":"rimraf dist","build":"npm run clean && tsc -p tsconfig.json","prepublishOnly":"npm test && npm run build"},"devDependencies":{"@types/jest":"^30.0.0","jest":"^30.0.5","rimraf":"^6.0.1","ts-jest":"^29.4.1","typescript":"^5.5.4"},"_id":"@agent-auth/sdk@0.1.1","description":"Minimal SDK for AgentAuth. Auto-discovers endpoints, exchanges API keys for JWTs, auto-refreshes tokens, and provides a `fetch` wrapper.","_nodeVersion":"22.14.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-cffXH6ioDXxzRswjwwQfMfp+r78XXCpYm5PSHQL4gQvnTMeBUA62yAofeGNAVyz3vP6OmnMBSSkIKTnWdbq2GA==","shasum":"106cecc0d48eb050da4d94ea5cdbb8a82af759c3","tarball":"https://registry.npmjs.org/@agent-auth/sdk/-/sdk-0.1.1.tgz","fileCount":4,"unpackedSize":7428,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDgi8PHACJeSQXBJhrI2IrlxC6suDH5WKJO6O3bkgIUuwIhAJNNafknebDUkebC1Hh5qUWOAloWmWx5SCr3KT64tWQN"}]},"_npmUser":{"name":"3d3n_!","email":"edens.etuk@gmail.com"},"directories":{},"maintainers":[{"name":"3d3n_!","email":"edens.etuk@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.1.1_1755334253257_0.07591292787390991"},"_hasShrinkwrap":false}},"time":{"created":"2025-08-16T08:50:53.096Z","0.1.1":"2025-08-16T08:50:53.434Z","modified":"2025-08-16T08:50:53.713Z"},"maintainers":[{"name":"3d3n_!","email":"edens.etuk@gmail.com"}],"description":"Minimal SDK for AgentAuth. Auto-discovers endpoints, exchanges API keys for JWTs, auto-refreshes tokens, and provides a `fetch` wrapper.","readme":"# @agentauth/sdk\n\nMinimal SDK for AgentAuth. Auto-discovers endpoints, exchanges API keys for JWTs, auto-refreshes tokens, and provides a `fetch` wrapper.\n\n## Install\n```bash\nnpm install @agentauth/sdk\n```\n\n## Usage\n```ts\nimport { createAgentAuth } from \"@agentauth/sdk\";\n\nconst auth = createAgentAuth({\n  issuer: \"http://localhost:8080\",\n  apiKey: process.env.AGENT_API_KEY,\n  scopes: [\"read:orders\"]\n});\n\nawait auth.loginWithApiKey(); // or pass apiKey explicitly\nconst res = await auth.fetch(\"/orders\");\nconsole.log(await res.json());\n```\n","readmeFilename":"README.md","_rev":"1-097bd7fc13d6a9ca7b5197247c45ded5"}