refactor: align channel chatType

This commit is contained in:
Peter Steinberger
2026-01-17 04:13:06 +00:00
parent 388b2bce01
commit 87cecd0268
7 changed files with 36 additions and 48 deletions

View File

@@ -41,7 +41,7 @@ export type HumanDelayConfig = {
export type SessionSendPolicyAction = "allow" | "deny";
export type SessionSendPolicyMatch = {
channel?: string;
chatType?: "direct" | "group" | "room";
chatType?: "direct" | "group" | "channel" | "room";
keyPrefix?: string;
};
export type SessionSendPolicyRule = {

View File

@@ -2,7 +2,7 @@ import type { AgentElevatedAllowFromConfig, SessionSendPolicyAction } from "./ty
export type MediaUnderstandingScopeMatch = {
channel?: string;
chatType?: "direct" | "group" | "room";
chatType?: "direct" | "group" | "channel" | "room";
keyPrefix?: string;
};

View File

@@ -251,7 +251,12 @@ export const MediaUnderstandingScopeSchema = z
.object({
channel: z.string().optional(),
chatType: z
.union([z.literal("direct"), z.literal("group"), z.literal("room")])
.union([
z.literal("direct"),
z.literal("group"),
z.literal("channel"),
z.literal("room"),
])
.optional(),
keyPrefix: z.string().optional(),
})