Files
openclaw/src/plugin-sdk/channel-config-schema.ts
Peter Steinberger ebec398543 refactor: move Telegram and iMessage config schemas to plugins (#112850)
* refactor: move telegram and imessage schemas to plugins

* test: allow bundled schema facade regression coverage

* refactor: remove orphaned command config helper
2026-07-22 23:01:47 -04:00

55 lines
1.8 KiB
TypeScript

/**
* Shared config-schema primitives for channel plugins with DM/group policy knobs.
*
* Canonical config-schema module: internal/bundled code imports this subpath;
* the primitives/bundled/legacy facades are re-export shells over it.
*/
export {
AllowFromListSchema,
ChannelGroupEntrySchema,
buildChannelConfigSchema,
buildCatchallMultiAccountChannelSchema,
buildGroupEntrySchema,
buildJsonChannelConfigSchema,
buildMultiAccountChannelSchema,
buildNestedDmConfigSchema,
} from "../channels/plugins/config-schema.js";
export {
BlockStreamingChunkSchema,
BlockStreamingCoalesceSchema,
ChannelDeliveryStreamingConfigSchema,
ChannelStreamingBlockSchema,
ContextVisibilityModeSchema,
DmConfigSchema,
DmPolicySchema,
ExecutableTokenSchema,
GroupPolicySchema,
MarkdownConfigSchema,
MentionPatternsPolicySchema,
MSTeamsReplyStyleSchema,
ProviderCommandsSchema,
ReplyToModeSchema,
ReplyRuntimeConfigSchemaShape,
TextChunkModeSchema,
TtsConfigSchema,
requireAllowlistAllowFrom,
requireOpenAllowFrom,
} from "../config/zod-schema.core.js";
export {
buildChannelAllowBotsSchema,
buildChannelExecApprovalsSchema,
buildChannelReactionShape,
buildCommonChannelAccountShape,
ChannelBotLoopProtectionSchema,
ChannelDangerouslyAllowNameMatchingSchema,
ChannelPreviewStreamingConfigSchema,
ChannelSendReadReceiptsSchema,
ChannelStreamingProgressSchema,
ChannelStreamingPreviewSchema,
UnifiedStreamingModeSchema,
} from "../config/zod-schema.channel-messaging-common.js";
export { ChannelImplicitMentionsSchema } from "../config/zod-schema.implicit-mentions.js";
export { ToolPolicySchema } from "../config/zod-schema.agent-runtime.js";
export { isSafeScpRemoteHost } from "../infra/scp-host.js";
export { isValidInboundPathRootPattern } from "@openclaw/media-core/inbound-path-policy";