AbstractThe type of the arguments for the invocation
Constructs an Invocation
The type of the arguments for the invocation
The data type of the invocation
The name of the method being invoked (e.g., "get", "set", "query")
object containing named arguments for that method or response
OptionalmethodCallId: symbolGet the arguments for the invocation
The arguments are the named parameters passed to the method being invoked.
Get the data type of the invocation
The data type of the invocation is the name of the object that methods are associated with (e.g., "Email", "Mailbox", "Thread")
Get the internal identifier for the invocation
The internal identifier is a unique symbol used to identify this invocation instance.
Get the method name of the invocation
The method name of the invocation is the name of the method being invoked (e.g., "get", "set", "query")
Get the name of the method
The name of the method in the format "{dataType}/{method}"
Create a result reference for a named argument to use in another method.
The path to the result to reference
The result reference
Delete a named argument.
The name of the argument
Whether the argument was deleted
Check if a named argument exists.
The name of the argument
Whether the argument exists
Resolve the invocation into a JMAP request invocation tuple.
Converts internal ResultReference arguments into their wire format
(#property keys with resolved resultOf ids) and produces the
[name, arguments, methodCallId] tuple expected by the JMAP protocol.
The method call id to assign to this invocation in the request
A function that resolves an invocation's internal symbol id to the string method call id assigned in the request
The resolved JMAP request invocation tuple
Set the value of a named argument.
The name of the argument
The value or result reference for the named argument.
Convert the invocation to a serialisable representation.
A serialisable representation of the invocation
Base class for invocations.
Remarks
This class is not meant to be constructed directly. Instead, use one of the capabilities subclasses, or extend it to build a new capability.