openclaw/extensions/discord/src/runtime-api.ts

61 lines
2.0 KiB
TypeScript

export {
buildComputedAccountStatusSnapshot,
buildTokenChannelStatusSummary,
PAIRING_APPROVED_MESSAGE,
projectCredentialSnapshotFields,
resolveConfiguredFromCredentialStatuses,
} from "openclaw/plugin-sdk/channel-status";
export { buildChannelConfigSchema, DiscordConfigSchema } from "../config-api.js";
export type {
ChannelMessageActionAdapter,
ChannelMessageActionContext,
ChannelMessageActionName,
} from "openclaw/plugin-sdk/channel-contract";
export type { ChannelPlugin, OpenClawPluginApi, PluginRuntime } from "openclaw/plugin-sdk/core";
export type {
DiscordAccountConfig,
DiscordActionConfig,
DiscordConfig,
OpenClawConfig,
} from "openclaw/plugin-sdk/config-runtime";
export {
jsonResult,
readNumberParam,
readStringArrayParam,
readStringParam,
resolvePollMaxSelections,
} from "openclaw/plugin-sdk/channel-actions";
export type { ActionGate } from "openclaw/plugin-sdk/channel-actions";
export { readBooleanParam } from "openclaw/plugin-sdk/boolean-param";
export {
assertMediaNotDataUrl,
parseAvailableTags,
readReactionParams,
withNormalizedTimestamp,
} from "openclaw/plugin-sdk/channel-actions";
export {
createHybridChannelConfigAdapter,
createScopedChannelConfigAdapter,
createScopedAccountConfigAccessors,
createScopedChannelConfigBase,
createTopLevelChannelConfigAdapter,
} from "openclaw/plugin-sdk/channel-config-helpers";
export {
createAccountActionGate,
createAccountListHelpers,
} from "openclaw/plugin-sdk/account-helpers";
export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk/account-id";
export {
emptyPluginConfigSchema,
formatPairingApproveHint,
getChatChannelMeta,
} from "openclaw/plugin-sdk/core";
export { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
export { resolveAccountEntry } from "openclaw/plugin-sdk/routing";
export {
hasConfiguredSecretInput,
normalizeResolvedSecretInputString,
normalizeSecretInputString,
} from "openclaw/plugin-sdk/secret-input";
export { resolveDiscordOutboundSessionRoute } from "./outbound-session-route.js";