mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:50:43 +00:00
refactor: trim qa channel helper exports
This commit is contained in:
@@ -21,7 +21,7 @@ const QaChannelGroupConfigSchema = z
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const QaChannelAccountConfigSchema = z
|
||||
const QaChannelAccountConfigSchema = z
|
||||
.object({
|
||||
name: z.string().optional(),
|
||||
enabled: z.boolean().optional(),
|
||||
@@ -38,7 +38,7 @@ export const QaChannelAccountConfigSchema = z
|
||||
})
|
||||
.strict();
|
||||
|
||||
export const QaChannelConfigSchema = QaChannelAccountConfigSchema.extend({
|
||||
const QaChannelConfigSchema = QaChannelAccountConfigSchema.extend({
|
||||
accounts: z.record(z.string(), QaChannelAccountConfigSchema.partial()).optional(),
|
||||
defaultAccount: z.string().optional(),
|
||||
}).strict();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export type QaChannelActionConfig = {
|
||||
type QaChannelActionConfig = {
|
||||
messages?: boolean;
|
||||
reactions?: boolean;
|
||||
search?: boolean;
|
||||
@@ -27,7 +27,7 @@ export type QaChannelAccountConfig = {
|
||||
actions?: QaChannelActionConfig;
|
||||
};
|
||||
|
||||
export type QaChannelConfig = QaChannelAccountConfig & {
|
||||
type QaChannelConfig = QaChannelAccountConfig & {
|
||||
accounts?: Record<string, Partial<QaChannelAccountConfig>>;
|
||||
defaultAccount?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user