{"_id":"@3d3n_!/sdk","_rev":"2-1d3ed18bcc0ab36d6de8a8b5c672c069","name":"@3d3n_!/sdk","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@3d3n_!/sdk","version":"0.1.0","_id":"@3d3n_!/sdk@0.1.0","maintainers":[{"name":"3d3n_!","email":"edens.etuk@gmail.com"}],"dist":{"shasum":"d45e58f3d18227279a90d7a933c337fc5cd493a8","tarball":"https://registry.npmjs.org/@3d3n_!/sdk/-/sdk-0.1.0.tgz","fileCount":4,"integrity":"sha512-FuVJ0EILsCbLAnrgMqga6Y3lNnvVD2EF8gYrUtI0DiApJ2gHmhpRzm1pVWvH59VKn1dtKpZCevVbXcULnQPXww==","signatures":[{"sig":"MEQCIDB9t3EbxeqQLZLU/HdJ1Y5gD71dVW4ma1MYj28PyLPcAiB7B/Yn95C5vVQUG6mzEBvIMSmYJfgUsIoMR/cBtukJGw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7424},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","scripts":{"test":"jest","build":"npm run clean && tsc -p tsconfig.json","clean":"rimraf dist","prepublishOnly":"npm test && npm run build"},"_npmUser":{"name":"3d3n_!","email":"edens.etuk@gmail.com"},"_npmVersion":"10.9.2","description":"Minimal SDK for AgentAuth. Auto-discovers endpoints, exchanges API keys for JWTs, auto-refreshes tokens, and provides a `fetch` wrapper.","directories":{},"_nodeVersion":"22.14.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^30.0.5","rimraf":"^6.0.1","ts-jest":"^29.4.1","typescript":"^5.5.4","@types/jest":"^30.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sdk_0.1.0_1755333320883_0.7440093862792789","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-08-16T08:35:20.817Z","modified":"2025-10-03T17:05:02.757Z","0.1.0":"2025-08-16T08:35:21.068Z"},"description":"Minimal SDK for AgentAuth. Auto-discovers endpoints, exchanges API keys for JWTs, auto-refreshes tokens, and provides a `fetch` wrapper.","maintainers":[{"email":"edens.etuk@gmail.com","name":"edennn-1"}],"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"}