2024-10-24 10:44:38 -04:00
|
|
|
|
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 {
|
2024-10-24 10:44:38 -04:00
|
|
|
# The DID of the invoker
|
2024-10-02 10:53:30 +02:00
|
|
|
iss DID
|
2024-10-24 10:44:38 -04:00
|
|
|
# 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
|
|
|
|
2024-10-24 10:44:38 -04:00
|
|
|
# The Command
|
2024-10-02 10:53:30 +02:00
|
|
|
cmd String
|
2024-10-24 10:44:38 -04:00
|
|
|
# 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
|
2024-10-24 10:44:38 -04:00
|
|
|
meta optional { String : Any }
|
2024-10-02 10:53:30 +02:00
|
|
|
|
2024-10-24 10:44:38 -04: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
|
2024-10-24 10:44:38 -04:00
|
|
|
# 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
|
|
|
}
|