refactor: drop legacy room chatType
This commit is contained in:
@@ -10,9 +10,7 @@ export type SessionChannelId = ChannelId | "webchat";
|
||||
export type SessionChatType =
|
||||
| "direct"
|
||||
| "group"
|
||||
| "channel"
|
||||
// Legacy alias for "channel".
|
||||
| "room";
|
||||
| "channel";
|
||||
|
||||
export type SessionEntry = {
|
||||
/**
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user