refactor(security): harden CommandAuthorized plumbing
This commit is contained in:
1 parent
31e8ecca10
commit
69ba2765de
16 files changed
+92
-56
No files matched your search
@@ -103,6 +103,14 @@ export type MsgContext = {
|
||||
HookMessages?: string[];
|
||||
};
|
||||
|
||||
export type FinalizedMsgContext = Omit<MsgContext, "CommandAuthorized"> & {
|
||||
/**
|
||||
* Always set by finalizeInboundContext().
|
||||
* Default-deny: missing/undefined becomes false.
|
||||
*/
|
||||
CommandAuthorized: boolean;
|
||||
};
|
||||
|
||||
export type TemplateContext = MsgContext & {
|
||||
BodyStripped?: string;
|
||||
SessionId?: string;
|
||||
|
||||
Reference in new issue
Block a user