Skip to content

composio

Structs

  • ComposioAction - One immutable logical action decoded from the original request.
  • ComposioContext - Sanitized metadata attached to one decoded logical action.
  • ProtocolDenial - Sanitized fail-closed protocol rejection.

Enums

Functions

  • decode - Decode a raw HTTP request before generic normalization.

Struct

One immutable logical action decoded from the original request.

Fields:

  • envelope: crate::normalizer::NormalizedEnvelope - Logical policy envelope with no arguments or sensitive headers.
  • context: ComposioContext - Sanitized Composio policy context.

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> ComposioAction
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

Struct

Sanitized metadata attached to one decoded logical action.

Fields:

  • tool_slug: String - Pinned tool slug.
  • user_id: Option<String> - Composio user selector or PAi assistant value.
  • connected_account_id: Option<String> - Requested connected account identifier or alias.
  • session_id: Option<String> - Tool Router or hosted MCP session identity.
  • batch_index: Option<u32> - Zero-based child index for a multi-execute call.
  • batch_size: Option<u32> - Total child count for a multi-execute call.

Traits: Eq

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> ComposioContext
  • PartialEq
    • fn eq(self: &Self, other: &ComposioContext) -> bool
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

Enum

Four-way Composio protocol classification.

Variants:

  • Unrelated - Traffic does not target an exact protected Composio host.
  • Passthrough - A recognized control-plane or discovery call may pass through.
  • Actions(Vec<ComposioAction>) - One or more ordered logical execution actions were decoded.
  • Deny(ProtocolDenial) - Protected traffic was malformed, ambiguous, or unsupported.

Trait Implementations:

  • Clone
    • fn clone(self: &Self) -> DecodeResult
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result

Struct

Sanitized fail-closed protocol rejection.

Fields:

  • code: &'static str - Stable machine-readable denial code.
  • detail: &'static str - Human-readable detail that never includes request arguments.

Traits: Eq

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
  • Clone
    • fn clone(self: &Self) -> ProtocolDenial
  • PartialEq
    • fn eq(self: &Self, other: &ProtocolDenial) -> bool

Function

Decode a raw HTTP request before generic normalization.

fn decode(request: &crate::normalizer::RawRequest, catalogs: &ComposioCatalogs) -> DecodeResult