googlechat: implement typing indicator via message editing
This commit is contained in:
committed by
Peter Steinberger
parent
70e7034a1c
commit
c64184fcfa
@@ -87,6 +87,15 @@ export type GoogleChatAccountConfig = {
|
||||
/** Per-action tool gating (default: true for all). */
|
||||
actions?: GoogleChatActionConfig;
|
||||
dm?: GoogleChatDmConfig;
|
||||
/**
|
||||
* Typing indicator mode (default: "message").
|
||||
* - "none": No indicator
|
||||
* - "message": Send "_<name> is typing..._" then edit with response
|
||||
* - "reaction": React with 👀 to user message, remove on reply
|
||||
* NOTE: Reaction mode requires user OAuth (not supported with service account auth).
|
||||
* If configured, falls back to message mode with a warning.
|
||||
*/
|
||||
typingIndicator?: "none" | "message" | "reaction";
|
||||
};
|
||||
|
||||
export type GoogleChatConfig = {
|
||||
|
||||
@@ -321,6 +321,7 @@ export const GoogleChatAccountSchema = z
|
||||
.strict()
|
||||
.optional(),
|
||||
dm: GoogleChatDmSchema.optional(),
|
||||
typingIndicator: z.enum(["none", "message", "reaction"]).optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user