minca
ApiSchemasFunctions

Function: mayConfigure()

function mayConfigure(
   node, 
   space, 
   bot, 
   who
): Promise<boolean>;

Defined in: packages/core/src/schemas/connectors.ts:30

Whether who may configure bot in a space: tell it what to do, give it instructions, connect it to a service. Not the bot itself; someone who holds the grant to instruct bots and every role the bot holds, so nobody reaches past their own grants through it. Asked of node's view of the space; a bot, its host and an app all ask this one.

Parameters

ParameterType
nodeP2PNode
spacestring
botstring
whostring

Returns

Promise<boolean>

On this page