UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

45 lines • 2.9 kB
import { oA as ChannelSetupDmPolicy, sA as ChannelSetupWizard } from "../config-contracts--zSNHFlu.js"; import { t as DEFAULT_ACCOUNT_ID } from "../account-id-Dn0dJeta.js"; import { d as ChannelSetupAdapter, f as ChannelSetupInput, u as defineChannelSetupContract } from "../manifest-registry-DEOm-7AJ.js"; import { L as setSetupChannelEnabled, g as createTopLevelChannelDmPolicy, n as defineTokenCredential, t as baseUrlTextInput, z as splitSetupEntries } from "../setup-credential-BwsK94f7.js"; import { t as formatDocsLink } from "../links-DFoSOaCI.js"; import "../setup-CaDtbkoo.js"; type OptionalChannelSetupParams$1 = { /** Channel id used by setup wizard status and routing. */ channel: string; /** Human-readable plugin label shown in operator-facing install guidance. */ label: string; /** Package spec operators should install before running real channel setup. */ npmSpec?: string; /** Docs path linked from validation and wizard status messages. */ docsPath?: string; }; /** * Creates a setup adapter for optional channel plugins that are not installed. * Validation returns install guidance, while config mutation fails with the same * message so setup flows cannot silently create partial channel config. */ export declare function createOptionalChannelSetupAdapter( /** Optional plugin metadata used to build setup validation guidance. */ params: OptionalChannelSetupParams$1): ChannelSetupAdapter; /** * Creates a wizard surface for optional channel plugins that are not installed. * The wizard is always unconfigured and stops finalize with install guidance. */ export declare function createOptionalChannelSetupWizard( /** Optional plugin metadata used to build setup wizard status guidance. */ params: OptionalChannelSetupParams$1): ChannelSetupWizard; /** Metadata used to advertise an optional channel plugin during setup flows. */ type OptionalChannelSetupParams = Parameters<typeof createOptionalChannelSetupAdapter>[0]; /** Paired setup adapter + setup wizard for channels that may not be installed yet. */ export type OptionalChannelSetupSurface = { /** Adapter that fails validation with install guidance until the plugin is installed. */ setupAdapter: ChannelSetupAdapter; /** Wizard status/finalize surface that points operators to the missing plugin. */ setupWizard: ChannelSetupWizard; }; /** Build both optional setup surfaces from one metadata object. */ export declare function createOptionalChannelSetupSurface( /** Optional plugin metadata shared by the adapter and wizard. */ params: OptionalChannelSetupParams): OptionalChannelSetupSurface; export { type ChannelSetupAdapter, type ChannelSetupDmPolicy, type ChannelSetupInput, type ChannelSetupWizard, DEFAULT_ACCOUNT_ID, baseUrlTextInput, createTopLevelChannelDmPolicy, defineChannelSetupContract, defineTokenCredential, formatDocsLink, setSetupChannelEnabled, splitSetupEntries };