Skip to content

InboundTriggerOutcome

Namespace AgentPrism · Assembly AgentPrism.Core.dll

The outcome of validating an inbound trigger request.

public enum InboundTriggerOutcome

InvalidPayload = 4

The body is not valid JSON, or the payload path did not resolve. Maps to 400.

RateLimited = 2

The trigger’s per-minute request limit was exceeded. Maps to 429.

Replayed = 3

The same signature was already accepted. Maps to 409.

Unauthorized = 1

There is no trigger for this tenant + name, it is disabled, the signature is missing or does not match, or the timestamp is outside the tolerance window. Maps to 401.

Deliberately ONE outcome for all five cases (“the response does not distinguish ‘trigger missing’ from ‘wrong signature’ — the same body and code in both”). An unknown tenant, an unknown or disabled trigger name, and every signature failure produce the IDENTICAL generic response; a caller without a valid secret must not be able to enumerate which trigger names exist by comparing responses.

Valid = 0

The request is valid; InboundTriggerValidationResult.Validated is populated.