refactor: drop legacy room chatType

This commit is contained in:
Peter Steinberger
2026-01-17 05:40:28 +00:00
parent 07a3db153d
commit 8b42902cee
18 changed files with 19 additions and 42 deletions

View File

@@ -10,9 +10,7 @@ export type SessionChannelId = ChannelId | "webchat";
export type SessionChatType =
| "direct"
| "group"
| "channel"
// Legacy alias for "channel".
| "room";
| "channel";
export type SessionEntry = {
/**

View File

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

View File

@@ -255,7 +255,6 @@ export const MediaUnderstandingScopeSchema = z
z.literal("direct"),
z.literal("group"),
z.literal("channel"),
z.literal("room"),
])
.optional(),
keyPrefix: z.string().optional(),

View File

@@ -43,8 +43,6 @@ export const SessionSchema = z
z.literal("direct"),
z.literal("group"),
z.literal("channel"),
// Legacy alias for "channel".
z.literal("room"),
])
.optional(),
keyPrefix: z.string().optional(),