{"_id":"@aitwire/sdk","name":"@aitwire/sdk","dist-tags":{"latest":"0.2.0"},"versions":{"0.2.0":{"name":"@aitwire/sdk","version":"0.2.0","description":"Official TypeScript SDK for the AITWIRE API","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","prepublishOnly":"npm run build"},"keywords":["aitwire","api","authority","ai","sdk"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/matthewjtherbert/AITWIRE.git","directory":"packages/sdk"},"engines":{"node":">=18"},"devDependencies":{"typescript":"^5.0.0"},"_id":"@aitwire/sdk@0.2.0","gitHead":"5043f3a1ecfd73dfad97020574c1e21755117d77","bugs":{"url":"https://github.com/matthewjtherbert/AITWIRE/issues"},"homepage":"https://github.com/matthewjtherbert/AITWIRE#readme","_nodeVersion":"20.20.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Krj3qjgD8pn7zaLuMhBDxn4q1xUh3EjLyz/xf87xK97k+IC7p77fPm/bpl/aD9H0bKhYXdeSOOQgjtemF77Waw==","shasum":"d1ace2784d2f4cfa883a8eb53271b96374566e34","tarball":"https://registry.npmjs.org/@aitwire/sdk/-/sdk-0.2.0.tgz","fileCount":4,"unpackedSize":13539,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC/BizqGAu+vNTONw9QQdYoFWzH7HPn+PXzZ3rgM1sKLQIgFFdIsKhHka4GxyJFhPwbjgeudyRlHm4wO9ti0Artqt8="}]},"_npmUser":{"name":"mattherbert","email":"matt@mattherbert.ca"},"directories":{},"maintainers":[{"name":"mattherbert","email":"matt@mattherbert.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk_0.2.0_1774196947801_0.0830332991081002"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-22T16:29:07.739Z","0.2.0":"2026-03-22T16:29:07.951Z","modified":"2026-03-22T16:29:08.200Z"},"maintainers":[{"name":"mattherbert","email":"matt@mattherbert.ca"}],"description":"Official TypeScript SDK for the AITWIRE API","homepage":"https://github.com/matthewjtherbert/AITWIRE#readme","keywords":["aitwire","api","authority","ai","sdk"],"repository":{"type":"git","url":"git+https://github.com/matthewjtherbert/AITWIRE.git","directory":"packages/sdk"},"bugs":{"url":"https://github.com/matthewjtherbert/AITWIRE/issues"},"license":"MIT","readme":"# @aitwire/sdk\n\nOfficial TypeScript SDK for the [AITWIRE API](https://api.aitwire.com/v1/docs).\n\n## Install\n\n```bash\nnpm install @aitwire/sdk\n```\n\n## Quick Start\n\n```typescript\nimport { AitwireClient } from \"@aitwire/sdk\";\n\nconst client = new AitwireClient({\n  apiKey: \"atwk_...\",\n  tenant: \"your-tenant-id\",\n});\n\n// List entities\nconst { results } = await client.entities.list({ type: \"product\", limit: 10 });\n\n// Run a scan\nconst { run_id } = await client.scans.run(\"example.com\");\n\n// Get authority graph\nconst graph = await client.authority.graph();\n\n// Check drift\nconst { events } = await client.drift.events({ status: \"new\" });\n\n// View API usage\nconst usage = await client.billing.usage();\nconsole.log(`${usage.total_requests} / ${usage.included_requests} calls used`);\n```\n\n## Resources\n\n| Resource | Methods |\n|----------|---------|\n| `client.entities` | `list()`, `get(id)`, `upsert(id, data)` |\n| `client.scans` | `list()`, `run(domain)`, `get(id)` |\n| `client.authority` | `graph()`, `proofs()` |\n| `client.drift` | `events()`, `resolve(id)` |\n| `client.attribution` | `summary()` |\n| `client.webhooks` | `list()`, `create(url)`, `delete(id)` |\n| `client.keys` | `list()`, `create(name, scopes)`, `scopes()`, `revoke(id)` |\n| `client.billing` | `usage()` |\n\n## API Docs\n\nInteractive docs: https://api.aitwire.com/v1/docs\n","readmeFilename":"README.md","_rev":"1-cd8d3e1c81508b1f3bd64b39a965e16c"}