Wardrik. Token
(wardrik_protocol v0.1.0-rc.1)
Copy Markdown
An API token, without its secret.
:idand:name- which token.:principal- the ID of the principal it acts for.:statements- what it allows, asWardrik.Statements.:policy- the policy every agent it defines is held to.:expires- when it expires.:created_at- when it was made.
Summary
Functions
Builds one from the protocol's JSON.
Returns it as the protocol's JSON, without fields that are nil.