Principal

Who acts: a verified sender, approver or operator.

Every Thread method that appends takes one, for example the local operator {issuer: "api", tenant: "local", subject: "operator"}. In TypeScript, Principal is also the schema that parses one.

Fields

issuerstringrequired

The identity authority that verified it, such as "api" or "slack:T024BE7LD". Non-empty.

tenantstringrequired

The isolation scope: a principal may act only on threads of its own tenant. Non-empty.

subjectstringrequired

Who it is within the issuer, such as a user id. Non-empty.

Edit on GitHub

On this page