Skip to content

docs: update spectrum-ts documentation for v4.2.0#88

Open
photon-action-bot[bot] wants to merge 1 commit into
mainfrom
docs/update-spectrum-ts-v4.2.0
Open

docs: update spectrum-ts documentation for v4.2.0#88
photon-action-bot[bot] wants to merge 1 commit into
mainfrom
docs/update-spectrum-ts-v4.2.0

Conversation

@photon-action-bot

@photon-action-bot photon-action-bot Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Documentation Update: spectrum-ts v4.2.0

This PR updates documentation for spectrum-ts based on the v4.2.0 release.

Release Notes

New Features

  • app.webhook() now handles both native Spectrum Cloud webhooks and Fusor webhooks through the same method. Native webhooks are HMAC-signed JSON and still arrive in your handler as the familiar (space, message) pair.

  • Added webhookSecret support, with SPECTRUM_WEBHOOK_SECRET as a fallback, so native webhook signatures can be verified before your handler runs.

  • Added first-party webhook adapters for Hono, Express, and Elysia: spectrum-ts/hono, spectrum-ts/express, and spectrum-ts/elysia. These mount the endpoint for you and handle raw request bodies correctly. 🔌

  • Native webhook payloads now deserialize Spectrum content like text, attachments, contacts, rich links, reactions, and groups into normal SDK messages.

Bug Fixes

  • Fixed webhook format detection to use the payload shape instead of X-Spectrum-Signature. Both native and Fusor deliveries can include that header, so this prevents valid Fusor webhooks from being routed incorrectly.

Improvement

  • Added docs and tests for native webhooks, signature verification, payload deserialization, and the new framework plugins. This makes setup clearer and helps protect the raw-body behavior required for secure webhook verification. ✨

Version: 4.2.0


🤖 This PR was auto-generated by Claude Code via the update-docs action in buildspace.


View with Codesmith Autofix with Codesmith
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.

@mintlify

mintlify Bot commented Jun 13, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
Photon 🟡 Building Jun 13, 2026, 9:19 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants