{"_id":"@apian-labs/relay","name":"@apian-labs/relay","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@apian-labs/relay","version":"0.1.0","description":"Apian Labs Relay Node SDK","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit","lint":"eslint src --ext .ts","test":"node -e \"console.log('sdk ok')\""},"dependencies":{"axios":"^1.7.9"},"devDependencies":{"@typescript-eslint/eslint-plugin":"^8.18.0","@typescript-eslint/parser":"^8.18.0","@types/node":"^22.10.2","eslint":"^9.17.0","typescript":"^5.7.2"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/TSimpson2080/apian-labs.git"},"bugs":{"url":"https://github.com/TSimpson2080/apian-labs/issues"},"homepage":"https://github.com/TSimpson2080/apian-labs#readme","publishConfig":{"access":"public"},"_id":"@apian-labs/relay@0.1.0","gitHead":"7951e70b3be6b5fe9c0cd91b5a1f3dae38636292","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-25gDISNkUdY7B+ldnkirmO2nWLQplQapqzPFlgN9CESEkrw06RK8Fs2nroVkAnhqhjqmq4Xd7Znw6IOgy5dnsg==","shasum":"76f1de63c3088fbb4eef444e7d6495c61dbebde3","tarball":"https://registry.npmjs.org/@apian-labs/relay/-/relay-0.1.0.tgz","fileCount":11,"unpackedSize":11817,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCtZfD6yXdWJe481jWyZod7zCYgItMn9y5xqc+q+BwY6gIhAJrHhLtdS20yeD+FlQdeR4q61SnShPUqy6Wvu2pdArc1"}]},"_npmUser":{"name":"tsimpson69","email":"tom@apianlabs.com"},"directories":{},"maintainers":[{"name":"tsimpson69","email":"tom@apianlabs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/relay_0.1.0_1767140379471_0.17120634679609292"},"_hasShrinkwrap":false}},"time":{"created":"2025-12-31T00:19:39.357Z","0.1.0":"2025-12-31T00:19:39.631Z","modified":"2025-12-31T00:19:39.959Z"},"maintainers":[{"name":"tsimpson69","email":"tom@apianlabs.com"}],"description":"Apian Labs Relay Node SDK","homepage":"https://github.com/TSimpson2080/apian-labs#readme","repository":{"type":"git","url":"git+https://github.com/TSimpson2080/apian-labs.git"},"bugs":{"url":"https://github.com/TSimpson2080/apian-labs/issues"},"license":"MIT","readme":"# Apian Labs Relay Node SDK\n\n## What you will learn\n\nThis README shows how to send messages with the Relay SDK and verify webhook signatures. It also explains the basic client options and helper methods.\n\n## Install\n\n```bash\nnpm install @apian-labs/relay\n```\n\n## Usage\n\n```js\nimport { Relay } from \"@apian-labs/relay\";\n\nconst relay = new Relay({\n  apiKey: process.env.API_KEY,\n  baseUrl: \"https://api.apianlabs.com\",\n});\n\nconst message = await relay.sendMessage({\n  to: \"+15551234567\",\n  body: \"Relay test\",\n  testMode: true,\n});\n\nconst trace = await relay.getTrace(message.messageId);\n```\n\n## Webhook verification\n\n```js\nimport { verifyWebhookSignature } from \"@apian-labs/relay\";\n\nconst isValid = verifyWebhookSignature(rawBody, headers, webhookSecret);\n```\n\n## Next steps\n\n- Review the Relay docs in `docs/relay/`.\n- Try the Next.js example in `examples/nextjs-send-and-trace/`.\n","readmeFilename":"README.md","_rev":"1-67b607b2579571cdde2179ae66f81e57"}