Expand description
Microsoft Teams plugin for autumn-web.
- Inbound: a Bot Framework route that checks the Connector JWT. Handlers by command, activity type, event name, invoke name, or Adaptive Card verb.
- Outbound: a Connector REST client with an app token, retry rules,
and a
serviceUrlhost allowlist. Proactive messages. - Operations: health indicator, Prometheus metrics, drain on shutdown.
See the README for setup.
Re-exports§
pub use config::TeamsConfig;
Modules§
- activity
- Bot Framework activities and Teams payloads.
- auth
- Inbound auth: the Bot Framework JWT check.
- config
[teams]configuration.- policy
- Pure policy core. Verified with Verus in
verus/policy.rs. - transport
- HTTP transport. Only this module does network I/O.
Structs§
- Teams
Client - Bot Connector REST client. A clone shares one connection pool and one token cache.
- Teams
Context - What a handler gets besides the activity.
- Teams
Health - Checks that the bot can get an app token.
- Teams
Metrics - Plugin metrics. Also a
MetricsSource. - Teams
Plugin - Microsoft Teams plugin.
- Teams
Runtime - A started plugin.
Enums§
- Teams
Error - Plugin and client errors. Messages never hold a token or a secret.
Constants§
- DEFAULT_
BASE_ PATH - Default base path of the route.
- PLUGIN_
NAME - Plugin name for duplicate detection.
Type Aliases§
- Handler
Error - Error from a handler. Any error type converts with
?. - Handler
Result - Result of a handler.