fix: allow node role to access chat methods for iOS
Expands NODE_ROLE_METHODS to include chat.history, chat.send, chat.abort, and sessions.list so that iOS/mobile apps can access chat functionality when connected as a node device.
This commit is contained in:
parent
c23ccee6ad
commit
299752dde5
@ -32,7 +32,16 @@ const APPROVALS_SCOPE = "operator.approvals";
|
|||||||
const PAIRING_SCOPE = "operator.pairing";
|
const PAIRING_SCOPE = "operator.pairing";
|
||||||
|
|
||||||
const APPROVAL_METHODS = new Set(["exec.approval.request", "exec.approval.resolve"]);
|
const APPROVAL_METHODS = new Set(["exec.approval.request", "exec.approval.resolve"]);
|
||||||
const NODE_ROLE_METHODS = new Set(["node.invoke.result", "node.event", "skills.bins"]);
|
const NODE_ROLE_METHODS = new Set([
|
||||||
|
"node.invoke.result",
|
||||||
|
"node.event",
|
||||||
|
"skills.bins",
|
||||||
|
// Allow node role to access chat for iOS/mobile chat UI
|
||||||
|
"chat.history",
|
||||||
|
"chat.send",
|
||||||
|
"chat.abort",
|
||||||
|
"sessions.list",
|
||||||
|
]);
|
||||||
const PAIRING_METHODS = new Set([
|
const PAIRING_METHODS = new Set([
|
||||||
"node.pair.request",
|
"node.pair.request",
|
||||||
"node.pair.list",
|
"node.pair.list",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user