openclaw/extensions/telegram/runtime-api.ts

50 lines
1.7 KiB
TypeScript

export type {
ChannelPlugin,
OpenClawConfig,
TelegramActionConfig,
} from "../../src/plugin-sdk/telegram-core.js";
export type { ChannelMessageActionAdapter } from "../../src/channels/plugins/types.js";
export type { TelegramAccountConfig, TelegramNetworkConfig } from "../../src/config/types.js";
export type {
OpenClawPluginApi,
OpenClawPluginService,
OpenClawPluginServiceContext,
PluginLogger,
} from "../../src/plugins/types.js";
export type {
AcpRuntime,
AcpRuntimeCapabilities,
AcpRuntimeDoctorReport,
AcpRuntimeEnsureInput,
AcpRuntimeEvent,
AcpRuntimeHandle,
AcpRuntimeStatus,
AcpRuntimeTurnInput,
AcpSessionUpdateTag,
} from "../../src/acp/runtime/types.js";
export type { AcpRuntimeErrorCode } from "../../src/acp/runtime/errors.js";
export { AcpRuntimeError } from "../../src/acp/runtime/errors.js";
export { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "../../src/routing/session-key.js";
export {
buildChannelConfigSchema,
getChatChannelMeta,
jsonResult,
readNumberParam,
readReactionParams,
readStringArrayParam,
readStringOrNumberParam,
readStringParam,
resolvePollMaxSelections,
TelegramConfigSchema,
} from "../../src/plugin-sdk/telegram-core.js";
export { parseTelegramTopicConversation } from "../../src/acp/conversation-id.js";
export { clearAccountEntryFields } from "../../src/channels/plugins/config-helpers.js";
export { buildTokenChannelStatusSummary } from "../../src/plugin-sdk/status-helpers.js";
export {
projectCredentialSnapshotFields,
resolveConfiguredFromCredentialStatuses,
} from "../../src/channels/account-snapshot-fields.js";
export { resolveTelegramPollVisibility } from "../../src/poll-params.js";
export { PAIRING_APPROVED_MESSAGE } from "../../src/channels/plugins/pairing-message.js";