mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:10:44 +00:00
refactor: trim bluebubbles config helper exports
This commit is contained in:
@@ -19,7 +19,7 @@ type BlueBubblesTarget =
|
||||
| { kind: "chat_identifier"; chatIdentifier: string }
|
||||
| { kind: "handle"; to: string; service: BlueBubblesService };
|
||||
|
||||
export type BlueBubblesAllowTarget = ParsedChatTarget | { kind: "handle"; handle: string };
|
||||
type BlueBubblesAllowTarget = ParsedChatTarget | { kind: "handle"; handle: string };
|
||||
|
||||
const CHAT_ID_PREFIXES = ["chat_id:", "chatid:", "chat:"];
|
||||
const CHAT_GUID_PREFIXES = ["chat_guid:", "chatguid:", "guid:"];
|
||||
|
||||
@@ -2,10 +2,7 @@ import { fetchWithRuntimeDispatcherOrMockedGlobal } from "openclaw/plugin-sdk/ru
|
||||
import type { DmPolicy, GroupPolicy } from "openclaw/plugin-sdk/setup";
|
||||
import { fetchWithSsrFGuard, type SsrFPolicy } from "openclaw/plugin-sdk/ssrf-runtime";
|
||||
|
||||
export type { SsrFPolicy } from "openclaw/plugin-sdk/ssrf-runtime";
|
||||
export type { DmPolicy, GroupPolicy } from "openclaw/plugin-sdk/setup";
|
||||
|
||||
export type BlueBubblesGroupConfig = {
|
||||
type BlueBubblesGroupConfig = {
|
||||
/** If true, only respond in this group when mentioned. */
|
||||
requireMention?: boolean;
|
||||
/** Optional tool policy overrides for this group. */
|
||||
@@ -17,7 +14,7 @@ export type BlueBubblesGroupConfig = {
|
||||
systemPrompt?: string;
|
||||
};
|
||||
|
||||
export type BlueBubblesActionConfig = {
|
||||
type BlueBubblesActionConfig = {
|
||||
reactions?: boolean;
|
||||
edit?: boolean;
|
||||
unsend?: boolean;
|
||||
@@ -31,7 +28,7 @@ export type BlueBubblesActionConfig = {
|
||||
sendAttachment?: boolean;
|
||||
};
|
||||
|
||||
export type BlueBubblesNetworkConfig = {
|
||||
type BlueBubblesNetworkConfig = {
|
||||
/** Dangerous opt-in for same-host or trusted private/internal BlueBubbles deployments. */
|
||||
dangerouslyAllowPrivateNetwork?: boolean;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user