Files
ucan/token/invocation/invocation.ipldsch

33 lines
814 B
Plaintext
Raw Permalink Normal View History

2024-10-02 10:53:30 +02:00
type DID string
# The Invocation Payload attaches sender, receiver, and provenance to the Task.
type Payload struct {
# The DID of the invoker
2024-10-02 10:53:30 +02:00
iss DID
# The Subject being invoked
sub DID
# The DID of the intended Executor if different from the Subject
aud optional DID
2024-10-02 10:53:30 +02:00
# The Command
2024-10-02 10:53:30 +02:00
cmd String
# The Command's Arguments
args { String : Any}
# Delegations that prove the chain of authority
prf [ Link ]
2024-10-02 10:53:30 +02:00
# Arbitrary Metadata
meta optional { String : Any }
2024-10-02 10:53:30 +02:00
# A unique, random nonce
nonce optional Bytes
2024-10-02 10:53:30 +02:00
# The timestamp at which the Invocation becomes invalid
exp nullable Int
# The Timestamp at which the Invocation was created
iat optional Int
# An optional CID of the Receipt that enqueued the Task
cause optional Link
2024-10-02 10:53:30 +02:00
}