Function: commandsSentBy()
commandsSentBy(
principal,input?): readonlystring[]
Defined in: packages/contracts/src/permissions/hosts.ts:115
The commands a principal may send to an agent: every command key that lists a
participant the principal hosts in its sentBy.
This is the list an agent binds a sender's envelope key to (D3.8). The broker grants the same principal publish on the same keys, from the same rows, so the two lines cannot come to disagree: a command absent from here is one the principal can neither publish nor sign for.
Parameters
principal
string
A broker principal, such as credential or provisioning.
input?
HostingInput = ESTATE_HOSTING
Defaults to the real estate.
Returns
readonly string[]
The command keys, in table order; empty for a principal that sends none.