{"_id":"@capitalthought/chatbot-client","_rev":"3-bd5156ea9abaddd9bf4dbc6e32eb488b","name":"@capitalthought/chatbot-client","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@capitalthought/chatbot-client","version":"0.1.0","license":"UNLICENSED","_id":"@capitalthought/chatbot-client@0.1.0","maintainers":[{"name":"joshuabaer","email":"npmjs@joshspam.com"}],"dist":{"shasum":"e4b1ace98055efa62ab1226675f2d1ef03c77a28","tarball":"https://registry.npmjs.org/@capitalthought/chatbot-client/-/chatbot-client-0.1.0.tgz","fileCount":10,"integrity":"sha512-x7mYSRx5IQ5SbC+mbJCW96Educm0R1Xi/Rwe3NS0XJpH//lnqeLi/wUF1/c7H8gwdwB4Ir7BPLcMCWfaBXAEnA==","signatures":[{"sig":"MEUCIQCLP8JnKH1zT7mUdP8vQhDk1RN9U+0pE99CkM/Y2KZLNQIgduIeKVlxPVW6qhgogXtlA9Q9tDWdzdB6aXnKWOaFjQM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20504},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"5390df1d7638717b189e4a80540d7f38b426e6cc","scripts":{"build":"tsc -p tsconfig.json","check":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"joshuabaer","email":"npmjs@joshspam.com"},"_npmVersion":"10.8.2","description":"TypeScript client for the mikeybot messaging gateway. Handles the Ed25519 signed-request envelope and exposes typed methods for every public endpoint.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@noble/curves":"^1.6.0","@noble/hashes":"^1.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/chatbot-client_0.1.0_1779765227381_0.07161065155987067","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@capitalthought/chatbot-client","version":"0.1.1","license":"UNLICENSED","_id":"@capitalthought/chatbot-client@0.1.1","maintainers":[{"name":"joshuabaer","email":"npmjs@joshspam.com"}],"dist":{"shasum":"64b42ab7687059a5262a94ede3c4c722e660b76c","tarball":"https://registry.npmjs.org/@capitalthought/chatbot-client/-/chatbot-client-0.1.1.tgz","fileCount":10,"integrity":"sha512-5iU40JYD/DIjmcmHzzzdaEDtMTsEELrqD9ldoMCGmplEHtFCaMZr7p0buqTJ2sNswq7txS2v+AyOV2Z7+TrnkQ==","signatures":[{"sig":"MEYCIQDqoeWsojA0fOm99R4e9qeyF+6+k/OIjQSvCp3kdfWirgIhAOM+lmqhZUY3gCfZs5x4JfsqUn7MXajo3mCzrJdtrcn3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21407},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"7f3614fc32373d792bcaaa6209cf29d2f2638fa4","scripts":{"build":"tsc -p tsconfig.json","check":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"joshuabaer","email":"npmjs@joshspam.com"},"_npmVersion":"10.8.2","description":"TypeScript client for the mikeybot messaging gateway. Handles the Ed25519 signed-request envelope and exposes typed methods for every public endpoint.","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@noble/curves":"^1.6.0","@noble/hashes":"^1.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/chatbot-client_0.1.1_1780256718688_0.8472492965387495","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@capitalthought/chatbot-client","version":"0.1.2","description":"TypeScript client for the mikeybot messaging gateway. Handles the Ed25519 signed-request envelope and exposes typed methods for every public endpoint.","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","check":"tsc -p tsconfig.json --noEmit"},"dependencies":{"@noble/curves":"^1.6.0","@noble/hashes":"^1.5.0"},"engines":{"node":">=20"},"publishConfig":{"access":"public"},"license":"UNLICENSED","_id":"@capitalthought/chatbot-client@0.1.2","gitHead":"eff6eae3bc02a9dbae1a9682baaf3204f978ab45","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-I3a2TrzJft9RMe/UbCr4uKjq9Bp+SLDpi7+XqCNtJh5dwRwQkEiStSozEUmlHO1CXrdHccjSh92blwfe+b3JAg==","shasum":"d8168cdc185f3cdf90590c31fcd213d39a2f6ab4","tarball":"https://registry.npmjs.org/@capitalthought/chatbot-client/-/chatbot-client-0.1.2.tgz","fileCount":10,"unpackedSize":21443,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIDhea3SUVsM1pCaLazh/GfmUd1otqpcdn7s4IYsEFCshAiBj8M1rhkcvEKk09FtonhXjqsAAHfrPi0+9IVEP3GM3/Q=="}]},"_npmUser":{"name":"joshuabaer","email":"npmjs@joshspam.com"},"directories":{},"maintainers":[{"name":"joshuabaer","email":"npmjs@joshspam.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/chatbot-client_0.1.2_1780330681978_0.22668209864589617"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-26T03:13:47.200Z","modified":"2026-06-01T16:18:02.253Z","0.1.0":"2026-05-26T03:13:47.531Z","0.1.1":"2026-05-31T19:45:18.867Z","0.1.2":"2026-06-01T16:18:02.136Z"},"license":"UNLICENSED","description":"TypeScript client for the mikeybot messaging gateway. Handles the Ed25519 signed-request envelope and exposes typed methods for every public endpoint.","maintainers":[{"name":"joshuabaer","email":"npmjs@joshspam.com"}],"readme":"# @capitalthought/chatbot-client\n\nTyped TypeScript client for the [mikeybot](https://github.com/capitalthought/chatbot) messaging gateway — iMessage, WhatsApp, and Slack under the `mikey@capitalfactory.com` identity. Handles the Ed25519 signed-request envelope and exposes typed methods for every public endpoint.\n\n## Install\n\n```bash\nnpm install @capitalthought/chatbot-client\n```\n\nRequires Node 20+.\n\n## Usage\n\n```ts\nimport { ChatbotClient } from '@capitalthought/chatbot-client';\n\nconst client = new ChatbotClient({\n  baseUrl: 'https://mikeybot.capitalthought.com',\n  consumerId: process.env.MIKEYBOT_CONSUMER_ID!,\n  keyId: process.env.MIKEYBOT_KEY_ID!,\n  privateKey: process.env.MIKEYBOT_PRIVATE_KEY_B64!, // base64 32-byte Ed25519 seed\n  timeoutMs: 1500,\n});\n\nawait client.sendSlack({\n  to: '#some-channel',\n  body: 'Hello from a registered consumer.',\n  idempotency_key: 'my-event-id:posted',\n});\n```\n\nThe full surface mirrors `openapi.yaml` in the mikeybot repo — `sendImessage`, `sendWhatsapp`, `sendSlack`, `registerWebhook`, `pullInbox`, etc.\n\n## Authentication\n\nEvery consumer holds an Ed25519 keypair registered with mikeybot via `mikeyctl chatbot consumer register`. The private seed signs every request body; mikeybot verifies against the registered public key + the per-consumer capability allowlist.\n\nGet your consumer credentials by running the registration verb on the mikeybot machine (Josh-side operation).\n\n## License\n\nUNLICENSED — internal Capital Thought, LLC use. Not for public redistribution.\n","readmeFilename":"README.md"}