{"_id":"@abwaters/cicd-plugin-twilio","name":"@abwaters/cicd-plugin-twilio","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abwaters/cicd-plugin-twilio","version":"1.0.0","description":"Twilio webhook plugin for @abwaters/cicd — keeps phone-number/messaging-service SMS webhooks pointed at the deployed API stage","license":"MIT","type":"commonjs","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/abwaters/cicd-plugin-twilio.git"},"scripts":{"build":"tsc","prepublishOnly":"npm run build"},"publishConfig":{"access":"public"},"peerDependencies":{"@abwaters/cicd":"^1.0.0"},"peerDependenciesMeta":{"@abwaters/cicd":{"optional":true}},"dependencies":{"twilio":"^6.0.2"},"devDependencies":{"@abwaters/cicd":"^1.1.0","@types/node":"^25.9.0","typescript":"^6.0.3"},"_id":"@abwaters/cicd-plugin-twilio@1.0.0","gitHead":"bd15240ea2668543c8a9f5800e3b28e1d1060738","bugs":{"url":"https://github.com/abwaters/cicd-plugin-twilio/issues"},"homepage":"https://github.com/abwaters/cicd-plugin-twilio#readme","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-n878Ezc+TO0LssBhuZcDFDQRmM+BlItHJauzI4bQsv9O9vcwebrYUEY6YhY+RrP3ZR283FJvLiBgVITzslPczA==","shasum":"a571b7fe11bd773db6343e83843a597298551a63","tarball":"https://registry.npmjs.org/@abwaters/cicd-plugin-twilio/-/cicd-plugin-twilio-1.0.0.tgz","fileCount":15,"unpackedSize":25105,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@abwaters%2fcicd-plugin-twilio@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCID54O6E+Jz5fJCZ3rNg3PLjPsvDPLZCjxt1k89R0Db5/AiAbtamYSi/UopJFRs5Lo6/eFwSs4LdjWvkULdSvYBup7Q=="}]},"_npmUser":{"name":"abwaters","email":"bryanw@abwaters.com"},"directories":{},"maintainers":[{"name":"abwaters","email":"bryanw@abwaters.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cicd-plugin-twilio_1.0.0_1780482305638_0.009733450591650206"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-03T10:25:05.501Z","1.0.0":"2026-06-03T10:25:05.791Z","modified":"2026-06-03T10:25:06.136Z"},"maintainers":[{"name":"abwaters","email":"bryanw@abwaters.com"}],"description":"Twilio webhook plugin for @abwaters/cicd — keeps phone-number/messaging-service SMS webhooks pointed at the deployed API stage","homepage":"https://github.com/abwaters/cicd-plugin-twilio#readme","repository":{"type":"git","url":"git+https://github.com/abwaters/cicd-plugin-twilio.git"},"bugs":{"url":"https://github.com/abwaters/cicd-plugin-twilio/issues"},"license":"MIT","readme":"# @abwaters/cicd-plugin-twilio\n\n[![CI](https://img.shields.io/github/actions/workflow/status/abwaters/cicd-plugin-twilio/ci.yml?branch=main&label=CI)](https://github.com/abwaters/cicd-plugin-twilio/actions/workflows/ci.yml)\n[![Version](https://img.shields.io/github/package-json/v/abwaters/cicd-plugin-twilio)](https://github.com/abwaters/cicd-plugin-twilio/blob/main/package.json)\n[![License](https://img.shields.io/github/license/abwaters/cicd-plugin-twilio)](LICENSE)\n\nTwilio webhook plugin for [`@abwaters/cicd`](https://github.com/abwaters/cicd).\n\nDuring `deploy` and `rollback`, this plugin points a Twilio phone number's SMS webhook (or a messaging service's inbound webhook) at the deployed API Gateway URL for the stage. During `info --verbose`, it reports the current webhook configuration.\n\n## Install\n\n```bash\nnpm install @abwaters/cicd-plugin-twilio\n```\n\nThe package is published to both the public **npm registry** and **GitHub Packages**.\n\nInstalling from npm works with no extra configuration. To install from GitHub Packages instead, point the `@abwaters` scope at it in your `~/.npmrc` (or project `.npmrc`):\n\n```\n@abwaters:registry=https://npm.pkg.github.com\n```\n\nThen add it to your `cicd.json`:\n\n```json\n{\n  \"plugins\": [\"@abwaters/cicd-plugin-twilio\"],\n  \"stages\": [\n    {\n      \"stage\": \"prod\",\n      \"mapping\": { \"domain\": \"api.example.com\", \"path\": \"\" },\n      \"twilio\": {\n        \"messagingSid\": \"MGxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n        \"smsWebhookApi\": \"myapp-sms-api\"\n      }\n    }\n  ]\n}\n```\n\n`messagingSid` accepts a Twilio phone number SID (`PN...`) or a messaging service SID (`MG...`), and supports the standard `!ImportValue`, `!ParameterStore`, and `!SetEnv` prefixes for runtime resolution.\n\n`smsWebhookApi` must be the `name` of an `api` export in `cicd.json`; the plugin composes the webhook URL from that API's stage mapping.\n\n## Credentials\n\nSet in the environment of whoever runs `cicd deploy`:\n\n```\nTWILIO_ACCOUNT_SID=AC...\nTWILIO_AUTH_TOKEN=...\n```\n\nIf either is missing, the plugin logs a verbose-mode skip and does nothing — useful for stages that aren't using Twilio.\n\n## CLI flags\n\n- `--no-twilio` — skip the plugin for a single invocation, even when listed\n- `--env`, `--api`, `--sns`, `--sqs`, `--workers`, `--web` — all auto-skip plugins (existing core behavior)\n\n## Build\n\n```bash\nnpm install\nnpm run build\n```\n","readmeFilename":"README.md","_rev":"1-fd691ea9876c79675cd288e289368d5b"}