Skip to main content

Crate autumn_plugin_teams

Crate autumn_plugin_teams 

Source
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 serviceUrl host 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§

TeamsClient
Bot Connector REST client. A clone shares one connection pool and one token cache.
TeamsContext
What a handler gets besides the activity.
TeamsHealth
Checks that the bot can get an app token.
TeamsMetrics
Plugin metrics. Also a MetricsSource.
TeamsPlugin
Microsoft Teams plugin.
TeamsRuntime
A started plugin.

Enums§

TeamsError
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§

HandlerError
Error from a handler. Any error type converts with ?.
HandlerResult
Result of a handler.