import { z } from 'zod'; import { ChatIntegrationRegistry } from './agent-chat-integration'; import { ChatIntegrationService } from './chat-integration.service'; import type { IntegrationAction, IntegrationActionExecutor, IntegrationActionResult, IntegrationMessageContext, IntegrationToolConnectionDescriptor } from './integration-tools'; export declare const respondInputSchema: z.ZodObject<{ message: z.ZodEffects; card: z.ZodOptional; title: z.ZodOptional; message: z.ZodOptional; components: z.ZodArray; text: z.ZodString; button: z.ZodOptional; text: z.ZodOptional; value: z.ZodString; style: z.ZodOptional>; }, "strict", z.ZodTypeAny, { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; }, { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; }>>; }, "strict", z.ZodTypeAny, { type: "section"; text: string; button?: { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | undefined; }, { type: "section"; text: string; button?: { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | undefined; }>, z.ZodEffects; fields: z.ZodOptional, "many">>; items: z.ZodOptional, "many">>; }, "strict", z.ZodTypeAny, { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; }, { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; }>, { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; }, { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"image">; url: z.ZodString; alt: z.ZodOptional; altText: z.ZodOptional; }, "strict", z.ZodTypeAny, { type: "image"; url: string; alt?: string | undefined; altText?: string | undefined; }, { type: "image"; url: string; alt?: string | undefined; altText?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"divider">; }, "strict", z.ZodTypeAny, { type: "divider"; }, { type: "divider"; }>, z.ZodObject<{ type: z.ZodLiteral<"button">; label: z.ZodOptional; text: z.ZodOptional; value: z.ZodString; style: z.ZodOptional>; }, "strict", z.ZodTypeAny, { type: "button"; label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; }, { type: "button"; label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"select">; id: z.ZodOptional; label: z.ZodOptional; placeholder: z.ZodOptional; options: z.ZodArray; }, "strict", z.ZodTypeAny, { label: string; value: string; description?: string | undefined; }, { label: string; value: string; description?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { type: "select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; }, { type: "select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; }>, z.ZodObject<{ type: z.ZodLiteral<"radio_select">; id: z.ZodOptional; label: z.ZodOptional; placeholder: z.ZodOptional; options: z.ZodArray; }, "strict", z.ZodTypeAny, { label: string; value: string; description?: string | undefined; }, { label: string; value: string; description?: string | undefined; }>, "many">; }, "strict", z.ZodTypeAny, { type: "radio_select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; }, { type: "radio_select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; }>]>, "many">; }, "strict", z.ZodTypeAny, { awaitResponse?: boolean | undefined; title?: string | undefined; message?: string | undefined; components: ({ type: "section"; text: string; button?: { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | undefined; } | { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; } | { type: "image"; url: string; alt?: string | undefined; altText?: string | undefined; } | { type: "divider"; } | { type: "button"; label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | { type: "select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; } | { type: "radio_select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; })[]; }, { awaitResponse?: boolean | undefined; title?: string | undefined; message?: string | undefined; components: ({ type: "section"; text: string; button?: { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | undefined; } | { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; } | { type: "image"; url: string; alt?: string | undefined; altText?: string | undefined; } | { type: "divider"; } | { type: "button"; label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | { type: "select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; } | { type: "radio_select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; })[]; }>>; }, "strict", z.ZodTypeAny, { text?: string | undefined; card?: { awaitResponse?: boolean | undefined; title?: string | undefined; message?: string | undefined; components: ({ type: "section"; text: string; button?: { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | undefined; } | { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; } | { type: "image"; url: string; alt?: string | undefined; altText?: string | undefined; } | { type: "divider"; } | { type: "button"; label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | { type: "select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; } | { type: "radio_select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; })[]; } | undefined; }, { text?: string | undefined; card?: { awaitResponse?: boolean | undefined; title?: string | undefined; message?: string | undefined; components: ({ type: "section"; text: string; button?: { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | undefined; } | { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; } | { type: "image"; url: string; alt?: string | undefined; altText?: string | undefined; } | { type: "divider"; } | { type: "button"; label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | { type: "select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; } | { type: "radio_select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; })[]; } | undefined; }>, { text?: string | undefined; card?: { awaitResponse?: boolean | undefined; title?: string | undefined; message?: string | undefined; components: ({ type: "section"; text: string; button?: { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | undefined; } | { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; } | { type: "image"; url: string; alt?: string | undefined; altText?: string | undefined; } | { type: "divider"; } | { type: "button"; label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | { type: "select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; } | { type: "radio_select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; })[]; } | undefined; }, { text?: string | undefined; card?: { awaitResponse?: boolean | undefined; title?: string | undefined; message?: string | undefined; components: ({ type: "section"; text: string; button?: { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | undefined; } | { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; } | { type: "image"; url: string; alt?: string | undefined; altText?: string | undefined; } | { type: "divider"; } | { type: "button"; label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | { type: "select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; } | { type: "radio_select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; })[]; } | undefined; }>; }, "strip", z.ZodTypeAny, { message: { text?: string | undefined; card?: { awaitResponse?: boolean | undefined; title?: string | undefined; message?: string | undefined; components: ({ type: "section"; text: string; button?: { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | undefined; } | { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; } | { type: "image"; url: string; alt?: string | undefined; altText?: string | undefined; } | { type: "divider"; } | { type: "button"; label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | { type: "select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; } | { type: "radio_select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; })[]; } | undefined; }; }, { message: { text?: string | undefined; card?: { awaitResponse?: boolean | undefined; title?: string | undefined; message?: string | undefined; components: ({ type: "section"; text: string; button?: { label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | undefined; } | { type: "fields"; fields?: { label: string; value: string; }[] | undefined; items?: { label: string; value: string; }[] | undefined; } | { type: "image"; url: string; alt?: string | undefined; altText?: string | undefined; } | { type: "divider"; } | { type: "button"; label?: string | undefined; text?: string | undefined; value: string; style?: "danger" | "default" | "primary" | undefined; } | { type: "select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; } | { type: "radio_select"; id?: string | undefined; label?: string | undefined; placeholder?: string | undefined; options: { label: string; value: string; description?: string | undefined; }[]; })[]; } | undefined; }; }>; export declare class ChatIntegrationActionExecutor implements IntegrationActionExecutor { private readonly chatIntegrationService; private readonly integrationRegistry; private readonly componentMapper; constructor(chatIntegrationService: ChatIntegrationService, integrationRegistry: ChatIntegrationRegistry); execute(params: { descriptor: IntegrationToolConnectionDescriptor; action: IntegrationAction; input: Record; awaitResponse: boolean; runId?: string; toolCallId?: string; currentMessageContext?: IntegrationMessageContext; }): Promise; private respondInCurrentThread; private sendDirectMessage; private sendChannelMessage; private toPostable; private getShortenCallback; }