import { a as MessagingGatewayManifest, c as messagingGatewayConfigSchema, i as MessagingGatewayMode, n as MessagingGatewayConfig, o as MessagingGatewayManifestSchema, r as MessagingGateway, s as MessagingGatewayModeValues, t as AnyMessagingGateway } from "../chunks/types-BsYmmIlq.mjs"; //#region src/messaging-gateway/normalized-event.d.ts /** * Canonical shape of a messaging event after the server-side messaging * gateway adapter has normalized it. * * This shape is what the gateway pipeline produces before dispatching to an * agent via a messaging gateway. It is NOT emitted to webhook triggers * (including `webhookTrigger({ source: { type: 'app', ... } })`) — webhook * triggers receive the raw provider payload. */ type NormalizedMessagingEvent = Readonly<{ type: string; providerEventId?: string; providerMessageId?: string; timestamp?: string; threadRef?: Readonly<{ adapter?: string; externalChannelId?: string; externalThreadId?: string; externalWorkspaceId?: string; }>; message?: Readonly<{ text?: string; formatted?: unknown; author?: Readonly<{ externalUserId?: string; displayName?: string; isBot?: boolean; }>; isMention?: boolean; isDM?: boolean; attachments?: readonly Readonly<{ type?: string; name?: string; url?: string; mimeType?: string; size?: number; }>[]; links?: readonly Readonly<{ url?: string; title?: string; }>[]; metadata?: Readonly>; raw?: unknown; }>; emoji?: string; userId?: string; targetMessageId?: string; [key: string]: unknown; }>; //#endregion export { type AnyMessagingGateway, MessagingGateway, type MessagingGatewayConfig, type MessagingGatewayManifest, MessagingGatewayManifestSchema, type MessagingGatewayMode, MessagingGatewayModeValues, type NormalizedMessagingEvent, messagingGatewayConfigSchema };