{"_id":"@leadpipe/client","_rev":"2-1d3a477dd3e1c461fe7f7192a74cfeb3","name":"@leadpipe/client","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@leadpipe/client","version":"0.1.0","keywords":["leadpipe","intent","audience","api","sdk","typescript","agents","gtm"],"license":"MIT","_id":"@leadpipe/client@0.1.0","maintainers":[{"name":"ggogidze","email":"gg@leadpipe.com"}],"homepage":"https://api.aws53.cloud/docs/intent-api","bugs":{"url":"https://github.com/leadpipe-com/sdk/issues"},"dist":{"shasum":"8dbd4a335ba7ee7fbea388b15c44a643ca40021c","tarball":"https://registry.npmjs.org/@leadpipe/client/-/client-0.1.0.tgz","fileCount":8,"integrity":"sha512-+7RGxIjj+5j9D49YlDVfXORs8Bpg/QO+yMdxxUVDjgiduSgvc2u9bWK43wAxyCfAAvGHmOWZS3z45Q6aPOI0ow==","signatures":[{"sig":"MEQCIAG0FZo/AFUxw3EbxbeXgkRXwZzX5ovRziJaT1a5CJhyAiAfCW2SKxy6gFmWeqIrr/Qdh2pjXoIpILhKCrkBFnetmw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":92323},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e60afc6033383615053e3b74138b4ac9fecb8c96","scripts":{"build":"tsup src/index.ts --format esm,cjs --dts --clean --sourcemap","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"ggogidze","email":"gg@leadpipe.com"},"repository":{"url":"git+https://github.com/leadpipe-com/sdk.git","type":"git","directory":"packages/typescript"},"_npmVersion":"11.6.1","description":"Official TypeScript client for Leadpipe intent APIs: public topic discovery plus authenticated audience workflows.","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/client_0.1.0_1775074506900_0.6075069325282827","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@leadpipe/client","version":"0.1.1","description":"Official TypeScript client for Leadpipe intent APIs: public topic discovery plus authenticated audience workflows.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/leadpipe-com/sdk.git","directory":"packages/typescript"},"homepage":"https://leadpipe.com","bugs":{"url":"https://github.com/leadpipe-com/sdk/issues"},"keywords":["leadpipe","intent","audience","api","sdk","typescript","agents","gtm"],"type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"build":"tsup src/index.ts --format esm,cjs --dts --clean --sourcemap","clean":"rm -rf dist","typecheck":"tsc -p tsconfig.json --noEmit"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"gitHead":"406d85919a6cffd7cb704de05225d8727c0e0590","_id":"@leadpipe/client@0.1.1","_nodeVersion":"22.20.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-kFBQe6qeIVnKbUctIWUDjCnPdkrqc5MJ64WCEXvzQlVJyc/1sWj2fOKrGMf/uIj4ClE3AIDlAv2y++E9TUxktA==","shasum":"c746a6f3e97533815f3dd8b00f559e301bc82578","tarball":"https://registry.npmjs.org/@leadpipe/client/-/client-0.1.1.tgz","fileCount":8,"unpackedSize":92304,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCg1R6/OR/xn/B4u3wva3K0FwKAohpoNeIG9yCh7wCYtgIgG4OBIqIQVbnqIVBD5ddQU3byEbO8xDspSb5V4vaOryA="}]},"_npmUser":{"name":"ggogidze","email":"gg@leadpipe.com"},"directories":{},"maintainers":[{"name":"ggogidze","email":"gg@leadpipe.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/client_0.1.1_1775074611405_0.7182258429669655"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-01T20:15:06.796Z","modified":"2026-04-01T20:16:51.707Z","0.1.0":"2026-04-01T20:15:07.066Z","0.1.1":"2026-04-01T20:16:51.568Z"},"bugs":{"url":"https://github.com/leadpipe-com/sdk/issues"},"license":"MIT","homepage":"https://leadpipe.com","keywords":["leadpipe","intent","audience","api","sdk","typescript","agents","gtm"],"repository":{"type":"git","url":"git+https://github.com/leadpipe-com/sdk.git","directory":"packages/typescript"},"description":"Official TypeScript client for Leadpipe intent APIs: public topic discovery plus authenticated audience workflows.","maintainers":[{"name":"ggogidze","email":"gg@leadpipe.com"}],"readme":"# @leadpipe/client\n\nOfficial TypeScript client for Leadpipe intent APIs.\n\nUse `@leadpipe/client` for:\n- topic discovery\n- audience preview\n- saved audience CRUD\n- polling materialization status\n- fetching paginated results\n- runs, stats, and exports\n\n## Install\n\n```bash\nnpm install @leadpipe/client\n```\n\nMost real integrations should set `LEADPIPE_API_KEY`. Only topic discovery and site analysis routes can be used anonymously.\n\n## Quickstart\n\n```ts\nimport { Leadpipe } from \"@leadpipe/client\";\n\nconst client = new Leadpipe({ apiKey: process.env.LEADPIPE_API_KEY });\n\nconst topics = await client.intent.topics.search({ q: \"crm\", limit: 2 });\nconst topicIds = topics.data.slice(0, 2).map((topic) => topic.topicId);\n\nconst preview = await client.intent.audiences.preview({\n  topicIds,\n  filters: {\n    companyIndustry: [\"software development\"],\n    hasBusinessEmail: true,\n  },\n});\n\nconsole.log(preview.data.totalCount);\n```\n\n## Auth\n\nUse an authenticated client for audience methods:\n\n```ts\nimport { Leadpipe } from \"@leadpipe/client\";\n\nconst client = new Leadpipe({ apiKey: process.env.LEADPIPE_API_KEY });\n```\n\nAnonymous clients are only for public discovery methods:\n\n```ts\nconst publicClient = new Leadpipe();\nconst apiKeyClient = new Leadpipe({ apiKey: process.env.LEADPIPE_API_KEY });\nconst bearerClient = new Leadpipe({ bearerToken: process.env.LEADPIPE_BEARER_TOKEN });\n```\n\nRequires auth:\n- `intent.audiences.preview`\n- `intent.audiences.query`\n- `intent.audiences.create`\n- `intent.audiences.update`\n- `intent.audiences.status`\n- `intent.audiences.results`\n- `intent.audiences.runs`\n- `intent.audiences.stats`\n- `intent.audiences.export`\n- `intent.audiences.waitUntilReady`\n\n## Docs\n\n- API docs: `https://api.aws53.cloud/docs/intent-api`\n- OpenAPI: `https://api.aws53.cloud/openapi-intent.json`\n\nThis package currently covers Leadpipe intent APIs only. Identification / resolution modules are not included yet.\n\nThe SDK tracks the live public API behavior. If the checked-in OpenAPI snapshot lags behind runtime for a response shape, the SDK types follow the live API until the snapshot is refreshed.\n","readmeFilename":"README.md"}