37 lines
979 B
Markdown
37 lines
979 B
Markdown
# Tasks: enterprise-webhook-client
|
|
|
|
## 1. Scaffold
|
|
|
|
- [x] 1.1 `universal/messaging/webhook-client/`; 100/100/100/100; guard tests; CLAUDE/README/FOLDERS.
|
|
|
|
## 2. Errors + schemas
|
|
|
|
- [x] 2.1 `src/errors/error-codes.ts` — codes + register; `WebhookErrorCode`.
|
|
- [x] 2.2 Zod schemas per type.
|
|
|
|
## 3. Verifier
|
|
|
|
- [x] 3.1 `src/verifier/verifier.ts` — `WebhookVerifier` (HMAC-SHA256 + JWS); timing-safe compare via `@suaveplan/crypto`.
|
|
|
|
## 4. Parser
|
|
|
|
- [x] 4.1 `src/parser/parser.ts` — `WebhookParser` (JSON + form-encoded); schema validation with Zod-provided `WebhookSchema`.
|
|
|
|
## 5. Receiver
|
|
|
|
- [x] 5.1 `src/receiver/receiver.ts` — `WebhookReceiver` (request ingestion + listener dispatch + replay protection).
|
|
|
|
## 6. Hooks
|
|
|
|
- [x] 6.1 `src/hooks.ts` — `onWebhookDelivering`, `webhookHooks`.
|
|
|
|
## 7. Docs / barrel / subpath exports / README
|
|
|
|
## 8. Benchmarks
|
|
|
|
- [x] 8.1 `verify.bench.ts`, `receive.bench.ts`.
|
|
|
|
## 9. Ship gate
|
|
|
|
- [x] 9.1 Verification sequence; fold + archive.
|