import { z } from "zod"; export declare const TRIGGER_SERVICE_KEY_HEADER = "x-service-key"; /** Provider-owned address fields are opaque to MDA. */ declare const opaqueObject: z.ZodRecord; declare const messageEventSchema: z.ZodObject<{ version: z.ZodLiteral<"1">; event_id: z.ZodString; delivery_id: z.ZodString; created_at: z.ZodString; channel_id: z.ZodString; source_thread_key: z.ZodString; address: z.ZodRecord; type: z.ZodLiteral<"message">; input: z.ZodObject<{ messages: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>; declare const interruptResumeEventSchema: z.ZodObject<{ version: z.ZodLiteral<"1">; event_id: z.ZodString; delivery_id: z.ZodString; created_at: z.ZodString; channel_id: z.ZodString; source_thread_key: z.ZodString; address: z.ZodRecord; type: z.ZodLiteral<"interrupt_resume">; interaction: z.ZodObject<{ type: z.ZodLiteral<"interrupt_resume">; resume: z.ZodRecord; }, z.core.$strip>; }, z.core.$strip>; declare const eventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ version: z.ZodLiteral<"1">; event_id: z.ZodString; delivery_id: z.ZodString; created_at: z.ZodString; channel_id: z.ZodString; source_thread_key: z.ZodString; address: z.ZodRecord; type: z.ZodLiteral<"message">; input: z.ZodObject<{ messages: z.ZodArray>; }, z.core.$strip>; }, z.core.$strip>, z.ZodObject<{ version: z.ZodLiteral<"1">; event_id: z.ZodString; delivery_id: z.ZodString; created_at: z.ZodString; channel_id: z.ZodString; source_thread_key: z.ZodString; address: z.ZodRecord; type: z.ZodLiteral<"interrupt_resume">; interaction: z.ZodObject<{ type: z.ZodLiteral<"interrupt_resume">; resume: z.ZodRecord; }, z.core.$strip>; }, z.core.$strip>], "type">; export type TriggerChannelAddress = z.infer; export type TriggerChannelMessageInput = z.infer; export type TriggerChannelMessageEvent = z.infer; export type TriggerChannelInterruptResumeEvent = z.infer; /** Keyed LangGraph resume: `{ [interruptId]: value }`. Values are opaque (`interrupt()` results or HITL `{ decisions }`). */ export type TriggerChannelResume = TriggerChannelInterruptResumeEvent["interaction"]["resume"]; export type TriggerChannelEvent = z.infer; export interface TriggerChannelActionRequest { type: "post"; action_id: string; address: TriggerChannelAddress; source_thread_key: string; message: { text: string; }; } export interface TriggerChannelActionResponse { id: string; } export type TriggerChannelRuntimeEventType = "run.started" | "run.completed" | "run.interrupted" | "run.failed"; /** * One pending LangGraph interrupt, forwarded verbatim on `run.interrupted`. * * `id` is the resume key the Trigger Server sends back in * `interaction.resume`; `value` is opaque to MDA. */ export interface TriggerChannelInterrupt { id: string; value: unknown; } export interface TriggerChannelRuntimeEventRequest { id: string; type: TriggerChannelRuntimeEventType; delivery_id: string; source_thread_key: string; address: TriggerChannelAddress; run_thread_id: string; run_id: string; /** * Present on `run.interrupted`. The Trigger Server cannot read the * deployment's threads, so pending interrupts travel on the event itself. */ interrupts?: TriggerChannelInterrupt[]; } export interface TriggerChannelRuntimeEventResponse { status: string; } /** Validate the envelope while retaining all original opaque object identities. */ export declare function parseTriggerChannelEvent(value: unknown): TriggerChannelEvent; export {}; //# sourceMappingURL=types.d.ts.map