import { z } from "zod"; import type { HookConfig as ProtoHookConfig, HookGetHooksOutput as ProtoGetHooksOutput, HookTeamChatMessageCreatedInput as ProtoTeamChatMessageCreatedHookInput, HookTeamChatMessageCreatedResult as ProtoTeamChatMessageCreatedHookResult, HookUserChatOpenedInput as ProtoUserChatOpenedHookInput, HookUserChatOpenedResult as ProtoUserChatOpenedHookResult, HookWebhookConfig as ProtoWebhookConfig, OAuthFlowHookInput as ProtoOAuthFlowHookInput, OAuthFlowHookResult as ProtoOAuthFlowHookResult } from "../gen/channel/app/sdk/v1/extension.js"; type ProtoBacked = T; /** * Hook type returned from extension.hook.metadata.getHooks. */ export declare const HookTypeSchema: z.ZodEnum<["app.installed", "app.uninstalled", "command.toggle", "config.saved", "config.deleted", "widget.installed", "widget.uninstalled", "webhook.received", "oauth.connected", "oauth.disconnected", "oauth.beforeAuthorization", "oauth.afterAuthorization", "userChat.opened", "teamChat.messageCreated"]>; export type HookType = z.infer; /** Opaque flow reference and server-owned resume URL. Neither grants manager authority. */ export declare const OAuthFlowHookInputSchema: z.ZodObject<{ flowId: z.ZodString; resumeUrl: z.ZodString; expiresAt: z.ZodString; }, "strict", z.ZodTypeAny, { expiresAt: string; flowId: string; resumeUrl: string; }, { expiresAt: string; flowId: string; resumeUrl: string; }>; export type OAuthFlowHookInput = ProtoBacked, ProtoOAuthFlowHookInput>; /** A redirect must also match the hook's registered redirectOrigins on the platform. */ export declare const OAuthFlowHookResultSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"continue">; detail: z.ZodOptional; }, "strict", z.ZodTypeAny, { type: "continue"; detail?: string | undefined; }, { type: "continue"; detail?: string | undefined; }>, z.ZodObject<{ type: z.ZodLiteral<"redirect">; url: z.ZodString; detail: z.ZodOptional; }, "strict", z.ZodTypeAny, { type: "redirect"; url: string; detail?: string | undefined; }, { type: "redirect"; url: string; detail?: string | undefined; }>]>; export type OAuthFlowHookResult = ProtoBacked, ProtoOAuthFlowHookResult>; export declare const WebhookExecutionScopeSchema: z.ZodEnum<["app", "manager"]>; export declare const UserChatOpenKindSchema: z.ZodEnum<["first_open", "reopen"]>; export type UserChatOpenKind = ProtoBacked, ProtoUserChatOpenedHookInput["openKind"]>; export declare const UserChatOpenedActorKindSchema: z.ZodEnum<["customer", "manager", "auto"]>; export type UserChatOpenedActorKind = ProtoBacked, ProtoUserChatOpenedHookInput["actorKind"]>; export declare const UserChatOpenedHookInputSchema: z.ZodObject<{ eventId: z.ZodString; channelId: z.ZodString; userChatId: z.ZodString; state: z.ZodLiteral<"opened">; previousState: z.ZodString; openKind: z.ZodEnum<["first_open", "reopen"]>; actorKind: z.ZodEnum<["customer", "manager", "auto"]>; triggerMessageId: z.ZodOptional; occurredAt: z.ZodString; version: z.ZodEffects; }, "strict", z.ZodTypeAny, { channelId: string; userChatId: string; version: string; openKind: "first_open" | "reopen"; actorKind: "manager" | "customer" | "auto"; eventId: string; state: "opened"; previousState: string; occurredAt: string; triggerMessageId?: string | undefined; }, { channelId: string; userChatId: string; version: string; openKind: "first_open" | "reopen"; actorKind: "manager" | "customer" | "auto"; eventId: string; state: "opened"; previousState: string; occurredAt: string; triggerMessageId?: string | undefined; }>; export type UserChatOpenedHookInput = ProtoBacked, ProtoUserChatOpenedHookInput>; export declare const UserChatOpenedHookResultSchema: z.ZodDiscriminatedUnion<"hookHandlingResult", [z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"accepted">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "accepted"; terminal: false; }, { hookHandlingResult: "accepted"; terminal: false; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"retrying">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "retrying"; terminal: false; }, { hookHandlingResult: "retrying"; terminal: false; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"succeeded">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "succeeded"; terminal: true; }, { hookHandlingResult: "succeeded"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"skipped_reopen">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "skipped_reopen"; terminal: true; }, { hookHandlingResult: "skipped_reopen"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"skipped_ineligible_actor">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "skipped_ineligible_actor"; terminal: true; }, { hookHandlingResult: "skipped_ineligible_actor"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"skipped_disabled">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "skipped_disabled"; terminal: true; }, { hookHandlingResult: "skipped_disabled"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"failed_retry_exhausted">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "failed_retry_exhausted"; terminal: true; }, { hookHandlingResult: "failed_retry_exhausted"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"unknown">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "unknown"; terminal: true; }, { hookHandlingResult: "unknown"; terminal: true; }>]>; export type UserChatOpenedHookResult = ProtoBacked, ProtoUserChatOpenedHookResult>; export declare const TeamChatMessageCreatedHookInputSchema: z.ZodObject<{ eventId: z.ZodString; channelId: z.ZodString; groupId: z.ZodString; messageId: z.ZodString; occurredAt: z.ZodString; sourceAppId: z.ZodOptional; snapshot: z.ZodRecord; }, "strict", z.ZodTypeAny, { channelId: string; messageId: string; eventId: string; occurredAt: string; groupId: string; snapshot: Record; sourceAppId?: string | undefined; }, { channelId: string; messageId: string; eventId: string; occurredAt: string; groupId: string; snapshot: Record; sourceAppId?: string | undefined; }>; export type TeamChatMessageCreatedHookInput = ProtoBacked, ProtoTeamChatMessageCreatedHookInput>; export declare const TeamChatMessageCreatedHookResultSchema: z.ZodDiscriminatedUnion<"hookHandlingResult", [z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"succeeded">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "succeeded"; terminal: true; }, { hookHandlingResult: "succeeded"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"skipped_source_app">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "skipped_source_app"; terminal: true; }, { hookHandlingResult: "skipped_source_app"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"skipped_unlinked">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "skipped_unlinked"; terminal: true; }, { hookHandlingResult: "skipped_unlinked"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"skipped_ineligible_writer">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "skipped_ineligible_writer"; terminal: true; }, { hookHandlingResult: "skipped_ineligible_writer"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"skipped_empty">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "skipped_empty"; terminal: true; }, { hookHandlingResult: "skipped_empty"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"skipped_oauth_unavailable">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "skipped_oauth_unavailable"; terminal: true; }, { hookHandlingResult: "skipped_oauth_unavailable"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"skipped_organization_mismatch">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "skipped_organization_mismatch"; terminal: true; }, { hookHandlingResult: "skipped_organization_mismatch"; terminal: true; }>, z.ZodObject<{ hookHandlingResult: z.ZodLiteral<"unknown">; terminal: z.ZodLiteral; }, "strict", z.ZodTypeAny, { hookHandlingResult: "unknown"; terminal: true; }, { hookHandlingResult: "unknown"; terminal: true; }>]>; export type TeamChatMessageCreatedHookResult = ProtoBacked, ProtoTeamChatMessageCreatedHookResult>; export declare const WebhookConfigSchema: z.ZodUnion<[z.ZodObject<{ endpointToken: z.ZodString; executionScope: z.ZodOptional>; }, "strict", z.ZodTypeAny, { endpointToken: string; executionScope?: "app" | undefined; }, { endpointToken: string; executionScope?: "app" | undefined; }>, z.ZodObject<{ executionScope: z.ZodLiteral<"manager">; }, "strict", z.ZodTypeAny, { executionScope: "manager"; }, { executionScope: "manager"; }>]>; export type WebhookConfig = ProtoBacked, ProtoWebhookConfig>; /** * Hook metadata schema returned from extension.hook.metadata.getHooks. * * App, command, and config hooks do not require a target identifier. * Widget hooks must include a targetId that matches the widget name. * Public webhook hooks require a targetId. App-scoped hooks require a * high-entropy endpoint token; manager-scoped hooks use an AppStore-issued binding URL. */ export declare const HookConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"app.installed">; }, "strict", z.ZodTypeAny, { type: "app.installed"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "app.installed"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"app.uninstalled">; }, "strict", z.ZodTypeAny, { type: "app.uninstalled"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "app.uninstalled"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"command.toggle">; }, "strict", z.ZodTypeAny, { type: "command.toggle"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "command.toggle"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"config.saved">; }, "strict", z.ZodTypeAny, { type: "config.saved"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "config.saved"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"config.deleted">; }, "strict", z.ZodTypeAny, { type: "config.deleted"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "config.deleted"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"widget.installed">; targetId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "widget.installed"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; }, { type: "widget.installed"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"widget.uninstalled">; targetId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "widget.uninstalled"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; }, { type: "widget.uninstalled"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"webhook.received">; targetId: z.ZodString; webhook: z.ZodUnion<[z.ZodObject<{ endpointToken: z.ZodString; executionScope: z.ZodOptional>; }, "strict", z.ZodTypeAny, { endpointToken: string; executionScope?: "app" | undefined; }, { endpointToken: string; executionScope?: "app" | undefined; }>, z.ZodObject<{ executionScope: z.ZodLiteral<"manager">; }, "strict", z.ZodTypeAny, { executionScope: "manager"; }, { executionScope: "manager"; }>]>; }, "strict", z.ZodTypeAny, { type: "webhook.received"; actionFunctionName: string; targetId: string; webhook: { endpointToken: string; executionScope?: "app" | undefined; } | { executionScope: "manager"; }; systemVersion?: string | undefined; }, { type: "webhook.received"; actionFunctionName: string; targetId: string; webhook: { endpointToken: string; executionScope?: "app" | undefined; } | { executionScope: "manager"; }; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"oauth.connected">; authScope: z.ZodOptional>; }, "strict", z.ZodTypeAny, { type: "oauth.connected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; }, { type: "oauth.connected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"oauth.disconnected">; authScope: z.ZodOptional>; }, "strict", z.ZodTypeAny, { type: "oauth.disconnected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; }, { type: "oauth.disconnected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"oauth.beforeAuthorization">; authScope: z.ZodOptional>; redirectOrigins: z.ZodDefault, "many">>; display: z.ZodOptional; icon: z.ZodOptional>; i18nMap: z.ZodOptional; description: z.ZodOptional; }, "strict", z.ZodTypeAny, { description?: string | undefined; title?: string | undefined; }, { description?: string | undefined; title?: string | undefined; }>>>; }, "strict", z.ZodTypeAny, { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; }, { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; }>>; }, "strict", z.ZodTypeAny, { type: "oauth.beforeAuthorization"; redirectOrigins: string[]; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; }, { type: "oauth.beforeAuthorization"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; redirectOrigins?: string[] | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"oauth.afterAuthorization">; authScope: z.ZodOptional>; redirectOrigins: z.ZodDefault, "many">>; display: z.ZodOptional; icon: z.ZodOptional>; i18nMap: z.ZodOptional; description: z.ZodOptional; }, "strict", z.ZodTypeAny, { description?: string | undefined; title?: string | undefined; }, { description?: string | undefined; title?: string | undefined; }>>>; }, "strict", z.ZodTypeAny, { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; }, { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; }>>; }, "strict", z.ZodTypeAny, { type: "oauth.afterAuthorization"; redirectOrigins: string[]; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; }, { type: "oauth.afterAuthorization"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; redirectOrigins?: string[] | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"userChat.opened">; }, "strict", z.ZodTypeAny, { type: "userChat.opened"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "userChat.opened"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"teamChat.messageCreated">; }, "strict", z.ZodTypeAny, { type: "teamChat.messageCreated"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "teamChat.messageCreated"; actionFunctionName: string; systemVersion?: string | undefined; }>]>; export type HookConfig = ProtoBacked, ProtoHookConfig>; /** * Metadata response schema for hook registration. */ export declare const GetHooksOutputSchema: z.ZodObject<{ hooks: z.ZodEffects; } & { type: z.ZodLiteral<"app.installed">; }, "strict", z.ZodTypeAny, { type: "app.installed"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "app.installed"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"app.uninstalled">; }, "strict", z.ZodTypeAny, { type: "app.uninstalled"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "app.uninstalled"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"command.toggle">; }, "strict", z.ZodTypeAny, { type: "command.toggle"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "command.toggle"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"config.saved">; }, "strict", z.ZodTypeAny, { type: "config.saved"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "config.saved"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"config.deleted">; }, "strict", z.ZodTypeAny, { type: "config.deleted"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "config.deleted"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"widget.installed">; targetId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "widget.installed"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; }, { type: "widget.installed"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"widget.uninstalled">; targetId: z.ZodString; }, "strict", z.ZodTypeAny, { type: "widget.uninstalled"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; }, { type: "widget.uninstalled"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"webhook.received">; targetId: z.ZodString; webhook: z.ZodUnion<[z.ZodObject<{ endpointToken: z.ZodString; executionScope: z.ZodOptional>; }, "strict", z.ZodTypeAny, { endpointToken: string; executionScope?: "app" | undefined; }, { endpointToken: string; executionScope?: "app" | undefined; }>, z.ZodObject<{ executionScope: z.ZodLiteral<"manager">; }, "strict", z.ZodTypeAny, { executionScope: "manager"; }, { executionScope: "manager"; }>]>; }, "strict", z.ZodTypeAny, { type: "webhook.received"; actionFunctionName: string; targetId: string; webhook: { endpointToken: string; executionScope?: "app" | undefined; } | { executionScope: "manager"; }; systemVersion?: string | undefined; }, { type: "webhook.received"; actionFunctionName: string; targetId: string; webhook: { endpointToken: string; executionScope?: "app" | undefined; } | { executionScope: "manager"; }; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"oauth.connected">; authScope: z.ZodOptional>; }, "strict", z.ZodTypeAny, { type: "oauth.connected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; }, { type: "oauth.connected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"oauth.disconnected">; authScope: z.ZodOptional>; }, "strict", z.ZodTypeAny, { type: "oauth.disconnected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; }, { type: "oauth.disconnected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"oauth.beforeAuthorization">; authScope: z.ZodOptional>; redirectOrigins: z.ZodDefault, "many">>; display: z.ZodOptional; icon: z.ZodOptional>; i18nMap: z.ZodOptional; description: z.ZodOptional; }, "strict", z.ZodTypeAny, { description?: string | undefined; title?: string | undefined; }, { description?: string | undefined; title?: string | undefined; }>>>; }, "strict", z.ZodTypeAny, { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; }, { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; }>>; }, "strict", z.ZodTypeAny, { type: "oauth.beforeAuthorization"; redirectOrigins: string[]; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; }, { type: "oauth.beforeAuthorization"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; redirectOrigins?: string[] | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"oauth.afterAuthorization">; authScope: z.ZodOptional>; redirectOrigins: z.ZodDefault, "many">>; display: z.ZodOptional; icon: z.ZodOptional>; i18nMap: z.ZodOptional; description: z.ZodOptional; }, "strict", z.ZodTypeAny, { description?: string | undefined; title?: string | undefined; }, { description?: string | undefined; title?: string | undefined; }>>>; }, "strict", z.ZodTypeAny, { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; }, { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; }>>; }, "strict", z.ZodTypeAny, { type: "oauth.afterAuthorization"; redirectOrigins: string[]; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; }, { type: "oauth.afterAuthorization"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; redirectOrigins?: string[] | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"userChat.opened">; }, "strict", z.ZodTypeAny, { type: "userChat.opened"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "userChat.opened"; actionFunctionName: string; systemVersion?: string | undefined; }>, z.ZodObject<{ actionFunctionName: z.ZodString; systemVersion: z.ZodOptional; } & { type: z.ZodLiteral<"teamChat.messageCreated">; }, "strict", z.ZodTypeAny, { type: "teamChat.messageCreated"; actionFunctionName: string; systemVersion?: string | undefined; }, { type: "teamChat.messageCreated"; actionFunctionName: string; systemVersion?: string | undefined; }>]>, "many">, ({ type: "app.installed"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "app.uninstalled"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "command.toggle"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "config.saved"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "config.deleted"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "widget.installed"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; } | { type: "widget.uninstalled"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; } | { type: "webhook.received"; actionFunctionName: string; targetId: string; webhook: { endpointToken: string; executionScope?: "app" | undefined; } | { executionScope: "manager"; }; systemVersion?: string | undefined; } | { type: "oauth.connected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; } | { type: "oauth.disconnected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; } | { type: "oauth.beforeAuthorization"; redirectOrigins: string[]; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; } | { type: "oauth.afterAuthorization"; redirectOrigins: string[]; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; } | { type: "userChat.opened"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "teamChat.messageCreated"; actionFunctionName: string; systemVersion?: string | undefined; })[], ({ type: "app.installed"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "app.uninstalled"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "command.toggle"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "config.saved"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "config.deleted"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "widget.installed"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; } | { type: "widget.uninstalled"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; } | { type: "webhook.received"; actionFunctionName: string; targetId: string; webhook: { endpointToken: string; executionScope?: "app" | undefined; } | { executionScope: "manager"; }; systemVersion?: string | undefined; } | { type: "oauth.connected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; } | { type: "oauth.disconnected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; } | { type: "oauth.beforeAuthorization"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; redirectOrigins?: string[] | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; } | { type: "oauth.afterAuthorization"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; redirectOrigins?: string[] | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; } | { type: "userChat.opened"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "teamChat.messageCreated"; actionFunctionName: string; systemVersion?: string | undefined; })[]>; }, "strip", z.ZodTypeAny, { hooks: ({ type: "app.installed"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "app.uninstalled"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "command.toggle"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "config.saved"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "config.deleted"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "widget.installed"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; } | { type: "widget.uninstalled"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; } | { type: "webhook.received"; actionFunctionName: string; targetId: string; webhook: { endpointToken: string; executionScope?: "app" | undefined; } | { executionScope: "manager"; }; systemVersion?: string | undefined; } | { type: "oauth.connected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; } | { type: "oauth.disconnected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; } | { type: "oauth.beforeAuthorization"; redirectOrigins: string[]; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; } | { type: "oauth.afterAuthorization"; redirectOrigins: string[]; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; } | { type: "userChat.opened"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "teamChat.messageCreated"; actionFunctionName: string; systemVersion?: string | undefined; })[]; }, { hooks: ({ type: "app.installed"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "app.uninstalled"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "command.toggle"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "config.saved"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "config.deleted"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "widget.installed"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; } | { type: "widget.uninstalled"; actionFunctionName: string; targetId: string; systemVersion?: string | undefined; } | { type: "webhook.received"; actionFunctionName: string; targetId: string; webhook: { endpointToken: string; executionScope?: "app" | undefined; } | { executionScope: "manager"; }; systemVersion?: string | undefined; } | { type: "oauth.connected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; } | { type: "oauth.disconnected"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; } | { type: "oauth.beforeAuthorization"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; redirectOrigins?: string[] | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; } | { type: "oauth.afterAuthorization"; actionFunctionName: string; systemVersion?: string | undefined; authScope?: "manager" | "channel" | undefined; redirectOrigins?: string[] | undefined; display?: { title: string; description?: string | undefined; icon?: "installation" | "account" | "organization" | "permission" | "settings" | undefined; i18nMap?: Record | undefined; } | undefined; } | { type: "userChat.opened"; actionFunctionName: string; systemVersion?: string | undefined; } | { type: "teamChat.messageCreated"; actionFunctionName: string; systemVersion?: string | undefined; })[]; }>; export type GetHooksOutput = ProtoBacked, ProtoGetHooksOutput>; export {}; //# sourceMappingURL=hook.d.ts.map