import { n as DEFAULT_ACCOUNT_ID, r as normalizeAccountId } from "./session-key--_1zVBRB.js"; import { At as FasedAgentConfig, F as ChannelAccountSnapshot, Gt as WhatsAppAccountConfig, J as ChannelMessageActionAdapter, Tn as GroupPolicy, it as ChannelStatusIssue, n as ChannelPlugin, r as ChannelOnboardingAdapter, u as ChannelMessageActionName, ut as getChatChannelMeta, wn as DmPolicy } from "./types.plugin-BcSBq42x.js"; import { $t as listWhatsAppDirectoryGroupsFromConfig, Cn as createActionGate, Dn as readStringParam, Gt as resolveOpenProviderRuntimeGroupPolicy, Jt as listDiscordDirectoryPeersFromConfig, Qt as listTelegramDirectoryPeersFromConfig, Ut as resolveAllowlistProviderRuntimeGroupPolicy, Wt as resolveDefaultGroupPolicy, Xt as listSlackDirectoryPeersFromConfig, Yt as listSlackDirectoryGroupsFromConfig, Zt as listTelegramDirectoryGroupsFromConfig, _ as FasedAgentPluginApi, en as listWhatsAppDirectoryPeersFromConfig, qt as listDiscordDirectoryGroupsFromConfig, t as PluginRuntime } from "./types-CHm_inlK.js"; import { D as normalizeE164 } from "./types-jHuiH7-5.js"; import { a as buildChannelConfigSchema, c as emptyPluginConfigSchema, i as setAccountEnabledInConfigSection, n as formatPairingApproveHint, o as applyAccountNameToChannelSection, r as deleteAccountFromConfigSection, s as migrateBaseNameToDefaultAccount, t as PAIRING_APPROVED_MESSAGE } from "./pairing-message-CQJ3plrh.js"; import { _ as buildTokenChannelStatusSummary, m as resolveWhatsAppGroupToolPolicy, p as resolveWhatsAppGroupRequireMention } from "./group-mentions-q3hUTCt7.js"; import { z } from "zod"; //#region src/config/zod-schema.providers-whatsapp.d.ts declare const WhatsAppConfigSchema: z.ZodObject<{ enabled: z.ZodOptional; capabilities: z.ZodOptional>; markdown: z.ZodOptional>; }, z.core.$strict>>; configWrites: z.ZodOptional; sendReadReceipts: z.ZodOptional; messagePrefix: z.ZodOptional; responsePrefix: z.ZodOptional; dmPolicy: z.ZodDefault>>; selfChatMode: z.ZodOptional; allowFrom: z.ZodOptional>; defaultTo: z.ZodOptional; groupAllowFrom: z.ZodOptional>; groupPolicy: z.ZodDefault>>; historyLimit: z.ZodOptional; dmHistoryLimit: z.ZodOptional; dms: z.ZodOptional; }, z.core.$strict>>>>; textChunkLimit: z.ZodOptional; chunkMode: z.ZodOptional>; blockStreaming: z.ZodOptional; blockStreamingCoalesce: z.ZodOptional; maxChars: z.ZodOptional; idleMs: z.ZodOptional; }, z.core.$strict>>; groups: z.ZodOptional; tools: z.ZodOptional>; alsoAllow: z.ZodOptional>; deny: z.ZodOptional>; }, z.core.$strict>>; toolsBySender: z.ZodOptional>; alsoAllow: z.ZodOptional>; deny: z.ZodOptional>; }, z.core.$strict>>>>; }, z.core.$strict>>>>; ackReaction: z.ZodOptional; direct: z.ZodDefault>; group: z.ZodDefault>>; }, z.core.$strict>>; debounceMs: z.ZodDefault>; heartbeat: z.ZodOptional; showAlerts: z.ZodOptional; useIndicator: z.ZodOptional; }, z.core.$strict>>; accounts: z.ZodOptional>; markdown: z.ZodOptional>; }, z.core.$strict>>; configWrites: z.ZodOptional; sendReadReceipts: z.ZodOptional; messagePrefix: z.ZodOptional; responsePrefix: z.ZodOptional; dmPolicy: z.ZodDefault>>; selfChatMode: z.ZodOptional; allowFrom: z.ZodOptional>; defaultTo: z.ZodOptional; groupAllowFrom: z.ZodOptional>; groupPolicy: z.ZodDefault>>; historyLimit: z.ZodOptional; dmHistoryLimit: z.ZodOptional; dms: z.ZodOptional; }, z.core.$strict>>>>; textChunkLimit: z.ZodOptional; chunkMode: z.ZodOptional>; blockStreaming: z.ZodOptional; blockStreamingCoalesce: z.ZodOptional; maxChars: z.ZodOptional; idleMs: z.ZodOptional; }, z.core.$strict>>; groups: z.ZodOptional; tools: z.ZodOptional>; alsoAllow: z.ZodOptional>; deny: z.ZodOptional>; }, z.core.$strict>>; toolsBySender: z.ZodOptional>; alsoAllow: z.ZodOptional>; deny: z.ZodOptional>; }, z.core.$strict>>>>; }, z.core.$strict>>>>; ackReaction: z.ZodOptional; direct: z.ZodDefault>; group: z.ZodDefault>>; }, z.core.$strict>>; debounceMs: z.ZodDefault>; heartbeat: z.ZodOptional; showAlerts: z.ZodOptional; useIndicator: z.ZodOptional; }, z.core.$strict>>; name: z.ZodOptional; enabled: z.ZodOptional; authDir: z.ZodOptional; mediaMaxMb: z.ZodOptional; }, z.core.$strict>>>>; mediaMaxMb: z.ZodDefault>; actions: z.ZodOptional; sendMessage: z.ZodOptional; polls: z.ZodOptional; }, z.core.$strict>>; }, z.core.$strict>; //#endregion //#region src/web/accounts.d.ts type ResolvedWhatsAppAccount = { accountId: string; name?: string; enabled: boolean; sendReadReceipts: boolean; messagePrefix?: string; authDir: string; isLegacyAuthDir: boolean; selfChatMode?: boolean; allowFrom?: string[]; groupAllowFrom?: string[]; groupPolicy?: GroupPolicy; dmPolicy?: DmPolicy; textChunkLimit?: number; chunkMode?: "length" | "newline"; mediaMaxMb?: number; blockStreaming?: boolean; ackReaction?: WhatsAppAccountConfig["ackReaction"]; groups?: WhatsAppAccountConfig["groups"]; debounceMs?: number; }; declare const listWhatsAppAccountIds: (cfg: FasedAgentConfig) => string[]; declare const resolveDefaultWhatsAppAccountId: (cfg: FasedAgentConfig) => string; declare function resolveWhatsAppAccount(params: { cfg: FasedAgentConfig; accountId?: string | null; }): ResolvedWhatsAppAccount; //#endregion //#region src/whatsapp/resolve-outbound-target.d.ts type WhatsAppOutboundTargetResolution = { ok: true; to: string; } | { ok: false; error: Error; }; declare function resolveWhatsAppOutboundTarget(params: { to: string | null | undefined; allowFrom: Array | null | undefined; mode: string | null | undefined; }): WhatsAppOutboundTargetResolution; //#endregion //#region src/channels/plugins/onboarding/whatsapp.d.ts declare const whatsappOnboardingAdapter: ChannelOnboardingAdapter; //#endregion //#region src/channels/plugins/whatsapp-heartbeat.d.ts type HeartbeatRecipientsResult = { recipients: string[]; source: string; }; type HeartbeatRecipientsOpts = { to?: string; all?: boolean; }; declare function resolveWhatsAppHeartbeatRecipients(cfg: FasedAgentConfig, opts?: HeartbeatRecipientsOpts): HeartbeatRecipientsResult; //#endregion //#region src/channels/plugins/whatsapp-shared.d.ts declare function resolveWhatsAppGroupIntroHint(): string; declare function resolveWhatsAppMentionStripPatterns(ctx: { To?: string | null; }): string[]; //#endregion //#region src/channels/plugins/normalize/whatsapp.d.ts declare function normalizeWhatsAppMessagingTarget(raw: string): string | undefined; declare function normalizeWhatsAppAllowFromEntries(allowFrom: Array): string[]; declare function looksLikeWhatsAppTargetId(raw: string): boolean; //#endregion //#region src/channels/plugins/status-issues/whatsapp.d.ts declare function collectWhatsAppStatusIssues(accounts: ChannelAccountSnapshot[]): ChannelStatusIssue[]; //#endregion export { ChannelMessageActionAdapter, ChannelMessageActionName, ChannelPlugin, DEFAULT_ACCOUNT_ID, FasedAgentConfig, FasedAgentPluginApi, PAIRING_APPROVED_MESSAGE, PluginRuntime, type ResolvedWhatsAppAccount, WhatsAppConfigSchema, applyAccountNameToChannelSection, buildChannelConfigSchema, buildTokenChannelStatusSummary, collectWhatsAppStatusIssues, createActionGate, deleteAccountFromConfigSection, emptyPluginConfigSchema, formatPairingApproveHint, getChatChannelMeta, listDiscordDirectoryGroupsFromConfig, listDiscordDirectoryPeersFromConfig, listSlackDirectoryGroupsFromConfig, listSlackDirectoryPeersFromConfig, listTelegramDirectoryGroupsFromConfig, listTelegramDirectoryPeersFromConfig, listWhatsAppAccountIds, listWhatsAppDirectoryGroupsFromConfig, listWhatsAppDirectoryPeersFromConfig, looksLikeWhatsAppTargetId, migrateBaseNameToDefaultAccount, normalizeAccountId, normalizeE164, normalizeWhatsAppAllowFromEntries, normalizeWhatsAppMessagingTarget, readStringParam, resolveAllowlistProviderRuntimeGroupPolicy, resolveDefaultGroupPolicy, resolveDefaultWhatsAppAccountId, resolveOpenProviderRuntimeGroupPolicy, resolveWhatsAppAccount, resolveWhatsAppGroupIntroHint, resolveWhatsAppGroupRequireMention, resolveWhatsAppGroupToolPolicy, resolveWhatsAppHeartbeatRecipients, resolveWhatsAppMentionStripPatterns, resolveWhatsAppOutboundTarget, setAccountEnabledInConfigSection, whatsappOnboardingAdapter };