import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema" ;
import { z } from "openclaw/plugin-sdk/zod" ;
const QaChannelActionConfigSchema = z
.object({
messages: z.boolean ().optional(),
reactions: z.boolean ().optional(),
search: z.boolean ().optional(),
threads: z.boolean ().optional(),
})
.strict();
export const QaChannelAccountConfigSchema = z
.object({
name: z.string().optional(),
enabled: z.boolean ().optional(),
baseUrl: z.string().url().optional(),
botUserId: z.string().optional(),
botDisplayName: z.string().optional(),
pollTimeoutMs: z.number().int ().min(100 ).max(30 _000 ).optional(),
allowFrom: z.array(z.union([z.string(), z.number()])).optional(),
defaultTo: z.string().optional(),
actions: QaChannelActionConfigSchema.optional(),
})
.strict();
export const QaChannelConfigSchema = QaChannelAccountConfigSchema.extend({
accounts: z.record(z.string(), QaChannelAccountConfigSchema.partial()).optional(),
defaultAccount: z.string().optional(),
}).strict();
export const qaChannelPluginConfigSchema = buildChannelConfigSchema(QaChannelConfigSchema);
Messung V0.5 in Prozent C=100 H=100 G=100
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland