import { z as z$1 } from "zod"; import { PluginRuntime } from "openclaw/plugin-sdk/runtime-store"; import { ChannelPlugin } from "openclaw/plugin-sdk/core"; //#region src/config/schema.d.ts declare const DingtalkConfigSchema: z$1.ZodObject<{ dmPolicy: z$1.ZodDefault>>; groupPolicy: z$1.ZodDefault>>; requireMention: z$1.ZodDefault>; separateSessionByConversation: z$1.ZodDefault>; sharedMemoryAcrossConversations: z$1.ZodDefault>; groupSessionScope: z$1.ZodDefault>>>; accounts: z$1.ZodOptional>; cardTemplateId: z$1.ZodOptional; cardShowMetadata: z$1.ZodOptional; questionCardTemplateId: z$1.ZodOptional; questionTimeoutMs: z$1.ZodOptional; experimentalMultiAgent: z$1.ZodOptional; aliases: z$1.ZodOptional>; maxTargets: z$1.ZodOptional; }, z$1.core.$strict>>; dmPolicy: z$1.ZodOptional>; allowFrom: z$1.ZodOptional>>; groupPolicy: z$1.ZodOptional>; groupAllowFrom: z$1.ZodOptional>>; requireMention: z$1.ZodOptional; groups: z$1.ZodOptional; tools: z$1.ZodOptional>; deny: z$1.ZodOptional>; }, z$1.core.$strict>>; enabled: z$1.ZodOptional; allowFrom: z$1.ZodOptional>>; systemPrompt: z$1.ZodOptional; groupSessionScope: z$1.ZodOptional>; }, z$1.core.$strict>>>>; historyLimit: z$1.ZodOptional; textChunkLimit: z$1.ZodOptional; mediaMaxMb: z$1.ZodOptional; tools: z$1.ZodOptional; media: z$1.ZodOptional; }, z$1.core.$strict>>; typingIndicator: z$1.ZodOptional; resolveSenderNames: z$1.ZodOptional; separateSessionByConversation: z$1.ZodOptional; sharedMemoryAcrossConversations: z$1.ZodOptional; groupSessionScope: z$1.ZodOptional>; asyncMode: z$1.ZodOptional; ackText: z$1.ZodOptional; endpoint: z$1.ZodOptional; debug: z$1.ZodOptional; enableMediaUpload: z$1.ZodOptional; systemPrompt: z$1.ZodOptional; groupReplyMode: z$1.ZodOptional>; enabled: z$1.ZodOptional; name: z$1.ZodOptional; clientId: z$1.ZodOptional>; clientSecret: z$1.ZodOptional; provider: z$1.ZodString; id: z$1.ZodString; }, z$1.core.$strict>, z$1.ZodObject<{ source: z$1.ZodLiteral<"file">; provider: z$1.ZodString; id: z$1.ZodString; }, z$1.core.$strict>, z$1.ZodObject<{ source: z$1.ZodLiteral<"exec">; provider: z$1.ZodString; id: z$1.ZodString; }, z$1.core.$strict>, z$1.ZodObject<{ source: z$1.ZodLiteral<"store">; provider: z$1.ZodString; id: z$1.ZodString; }, z$1.core.$strict>], "source">]>>; chatbotUserId: z$1.ZodOptional; chatbotCorpId: z$1.ZodOptional; }, z$1.core.$strict>>>>; cardTemplateMode: z$1.ZodOptional>; cardTemplateId: z$1.ZodOptional; cardShowMetadata: z$1.ZodOptional; questionCardTemplateId: z$1.ZodOptional; questionTimeoutMs: z$1.ZodOptional; experimentalMultiAgent: z$1.ZodOptional; aliases: z$1.ZodOptional>; maxTargets: z$1.ZodOptional; }, z$1.core.$strict>>; allowFrom: z$1.ZodOptional>>; groupAllowFrom: z$1.ZodOptional>>; groups: z$1.ZodOptional; tools: z$1.ZodOptional>; deny: z$1.ZodOptional>; }, z$1.core.$strict>>; enabled: z$1.ZodOptional; allowFrom: z$1.ZodOptional>>; systemPrompt: z$1.ZodOptional; groupSessionScope: z$1.ZodOptional>; }, z$1.core.$strict>>>>; historyLimit: z$1.ZodOptional; textChunkLimit: z$1.ZodOptional; mediaMaxMb: z$1.ZodOptional; tools: z$1.ZodOptional; media: z$1.ZodOptional; }, z$1.core.$strict>>; typingIndicator: z$1.ZodOptional; resolveSenderNames: z$1.ZodOptional; asyncMode: z$1.ZodOptional; ackText: z$1.ZodOptional; endpoint: z$1.ZodOptional; debug: z$1.ZodOptional; enableMediaUpload: z$1.ZodOptional; systemPrompt: z$1.ZodOptional; groupReplyMode: z$1.ZodOptional>; enabled: z$1.ZodOptional; defaultAccount: z$1.ZodOptional; clientId: z$1.ZodOptional>; clientSecret: z$1.ZodOptional; provider: z$1.ZodString; id: z$1.ZodString; }, z$1.core.$strict>, z$1.ZodObject<{ source: z$1.ZodLiteral<"file">; provider: z$1.ZodString; id: z$1.ZodString; }, z$1.core.$strict>, z$1.ZodObject<{ source: z$1.ZodLiteral<"exec">; provider: z$1.ZodString; id: z$1.ZodString; }, z$1.core.$strict>, z$1.ZodObject<{ source: z$1.ZodLiteral<"store">; provider: z$1.ZodString; id: z$1.ZodString; }, z$1.core.$strict>], "source">]>>; }, z$1.core.$strict>; //#endregion //#region src/types/index.d.ts type DingtalkConfig = z$1.infer; type DingtalkDefaultAccountSelectionSource = "explicit-default" | "mapped-default" | "fallback"; type DingtalkAccountSelectionSource = "explicit" | DingtalkDefaultAccountSelectionSource; type ResolvedDingtalkAccount = { accountId: string; selectionSource: DingtalkAccountSelectionSource; enabled: boolean; configured: boolean; name?: string; clientId?: string; clientSecret?: string; /** Merged config (top-level defaults + account-specific overrides) */ config: DingtalkConfig; }; //#endregion //#region src/channel.d.ts declare const dingtalkPlugin: ChannelPlugin; /** * Synchronously initializes `dingtalkPlugin.configSchema` using `createRequire`. * * Static SDK imports caused * "Cannot find package 'openclaw'" when the plugin is installed to * `~/.openclaw/extensions/` (Issue #527) because the ESM loader resolves * bare specifiers at parse time before the gateway's jiti alias map is active. * * By deferring the resolve to `register()` time and using `createRequire` * (which searches the gateway's own `node_modules`), we avoid the crash * while keeping the call synchronous as required by the plugin API. */ declare function initDingtalkPluginConfigSchema(): void; //#endregion //#region src/runtime.d.ts declare const setDingtalkRuntime: (next: PluginRuntime) => void, getDingtalkRuntime: () => PluginRuntime; //#endregion export { dingtalkPlugin as n, initDingtalkPluginConfigSchema as r, setDingtalkRuntime as t };