refactor: drop legacy room chatType

This commit is contained in:
Peter Steinberger committed 2026-01-17 05:46:40 +00:00
1 parent 07a3db153d
commit 8b42902cee
18 files changed
+19 -42

No files matched your search

+1 -3
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 = {
/**
+1 -1
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 = {
+1 -1
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;
};
-1
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(),
-2
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(),