refactor: collapse zalo runtime api barrel

This commit is contained in:
Vincent Koc
2026-05-30 01:41:37 +02:00
parent 914f313740
commit 3e35f599bc

View File

@@ -1,71 +1,87 @@
export {
addWildcardAllowFrom,
applyAccountNameToChannelSection,
applyBasicWebhookRequestGuards,
applySetupAccountConfigPatch,
type BaseProbeResult,
type BaseTokenResolution,
buildBaseAccountStatusSnapshot,
buildChannelConfigSchema,
buildSecretInputSchema,
buildSingleChannelSecretPromptState,
buildTokenChannelStatusSummary,
type ChannelAccountSnapshot,
type ChannelMessageActionAdapter,
type ChannelMessageActionName,
type ChannelPlugin,
type ChannelStatusIssue,
chunkTextForOutbound,
createChannelPairingController,
createChannelMessageReplyPipeline,
createDedupeCache,
createFixedWindowRateLimiter,
createWebhookAnomalyTracker,
DEFAULT_ACCOUNT_ID,
deliverTextOrMediaReply,
formatAllowFromLowercase,
formatPairingApproveHint,
type GroupPolicy,
hasConfiguredSecretInput,
isNormalizedSenderAllowed,
isNumericTargetId,
jsonResult,
logTypingFailure,
type MarkdownTableMode,
mergeAllowFromEntries,
migrateBaseNameToDefaultAccount,
normalizeAccountId,
normalizeResolvedSecretInputString,
normalizeSecretInputString,
type OpenClawConfig,
type OutboundReplyPayload,
PAIRING_APPROVED_MESSAGE,
type PluginRuntime,
promptSingleChannelSecretInput,
readJsonWebhookBodyOrReject,
readStringParam,
registerPluginHttpRoute,
type RegisterWebhookPluginRouteOptions,
registerWebhookTarget,
type RegisterWebhookTargetOptions,
registerWebhookTargetWithPluginRoute,
type ReplyPayload,
resolveClientIp,
resolveDefaultGroupPolicy,
resolveInboundRouteEnvelopeBuilderWithRuntime,
resolveOpenProviderRuntimeGroupPolicy,
resolveWebhookPath,
resolveWebhookTargetWithAuthOrRejectSync,
runSingleChannelSecretStep,
type RuntimeEnv,
type SecretInput,
sendPayloadWithChunkedTextAndMedia,
setTopLevelChannelDmPolicyWithAllowFrom,
waitForAbortSignal,
warnMissingProviderGroupPolicyFallbackOnce,
WEBHOOK_ANOMALY_COUNTER_DEFAULTS,
WEBHOOK_RATE_LIMIT_DEFAULTS,
withResolvedWebhookRequestPipeline,
type WizardPrompter,
} from "./runtime-support.js";
export {
DEFAULT_ACCOUNT_ID,
buildChannelConfigSchema,
createDedupeCache,
formatPairingApproveHint,
jsonResult,
normalizeAccountId,
readStringParam,
resolveClientIp,
} from "./runtime-support.js";
export {
addWildcardAllowFrom,
applyAccountNameToChannelSection,
applySetupAccountConfigPatch,
buildSingleChannelSecretPromptState,
mergeAllowFromEntries,
migrateBaseNameToDefaultAccount,
promptSingleChannelSecretInput,
runSingleChannelSecretStep,
setTopLevelChannelDmPolicyWithAllowFrom,
} from "./runtime-support.js";
export {
buildSecretInputSchema,
hasConfiguredSecretInput,
normalizeResolvedSecretInputString,
normalizeSecretInputString,
} from "./runtime-support.js";
export {
buildTokenChannelStatusSummary,
PAIRING_APPROVED_MESSAGE,
} from "./runtime-support.js";
export { buildBaseAccountStatusSnapshot } from "./runtime-support.js";
export { chunkTextForOutbound } from "./runtime-support.js";
export {
formatAllowFromLowercase,
isNormalizedSenderAllowed,
} from "./runtime-support.js";
export {
resolveDefaultGroupPolicy,
resolveOpenProviderRuntimeGroupPolicy,
warnMissingProviderGroupPolicyFallbackOnce,
} from "./runtime-support.js";
export { createChannelPairingController } from "./runtime-support.js";
export { createChannelMessageReplyPipeline } from "./runtime-support.js";
export { logTypingFailure } from "./runtime-support.js";
export {
deliverTextOrMediaReply,
isNumericTargetId,
sendPayloadWithChunkedTextAndMedia,
} from "./runtime-support.js";
export { resolveInboundRouteEnvelopeBuilderWithRuntime } from "./runtime-support.js";
export { waitForAbortSignal } from "./runtime-support.js";
export {
WEBHOOK_ANOMALY_COUNTER_DEFAULTS,
WEBHOOK_RATE_LIMIT_DEFAULTS,
applyBasicWebhookRequestGuards,
createFixedWindowRateLimiter,
createWebhookAnomalyTracker,
readJsonWebhookBodyOrReject,
registerPluginHttpRoute,
registerWebhookTarget,
registerWebhookTargetWithPluginRoute,
resolveWebhookPath,
resolveWebhookTargetWithAuthOrRejectSync,
withResolvedWebhookRequestPipeline,
} from "./runtime-support.js";
export { setZaloRuntime } from "./runtime.js";