docs(plugin-sdk): mark compatibility facades deprecated

This commit is contained in:
Vincent Koc
2026-04-28 22:35:51 -07:00
parent 67e8d35f1c
commit a7c3755327
3 changed files with 13 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
/**
* Deprecated bundled-channel compatibility surface.
* @deprecated Compatibility surface for bundled channel schemas.
*
* OpenClaw-maintained bundled plugins should import
* openclaw/plugin-sdk/bundled-channel-config-schema. Third-party plugins should

View File

@@ -12,6 +12,10 @@ import {
} from "./facade-loader.js";
import { getRuntimeConfig, getRuntimeConfigSnapshot } from "./runtime-config-snapshot.js";
/**
* @deprecated Compatibility facade for the `openclaw/plugin-sdk/discord` subpath.
* New channel plugins should use generic channel SDK subpaths.
*/
export type { ChannelMessageActionAdapter, ChannelMessageActionName } from "./channel-contract.js";
export type { ChannelPlugin } from "./channel-core.js";
export type { OpenClawConfig } from "./config-types.js";

View File

@@ -1,10 +1,18 @@
import type { OpenClawConfig } from "./config-types.js";
import { loadBundledPluginPublicSurfaceModuleSync } from "./facade-loader.js";
/**
* @deprecated Compatibility type for the `openclaw/plugin-sdk/telegram-account` facade.
* New channel plugins should prefer injected runtime helpers and generic SDK subpaths.
*/
export type TelegramAccountConfig = NonNullable<
NonNullable<OpenClawConfig["channels"]>["telegram"]
>;
/**
* @deprecated Compatibility type for the `openclaw/plugin-sdk/telegram-account` facade.
* New channel plugins should prefer injected runtime helpers and generic SDK subpaths.
*/
export type ResolvedTelegramAccount = {
accountId: string;
enabled: boolean;