Constructs a ThreadInvocation
The name of the method being invoked (e.g., "get", "changes")
The arguments for the method invocation
OptionalmethodCallId: symbolAn optional unique symbol to identify this method call for result referencing
Get 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
StaticcreateCreate an invocation factory function
The name of the method to create
A new Thread invocation factory function for creating invocations of the specified type
ThreadInvocation represents a JMAP Thread capability invocation.
The Thread data type represents a conversation thread containing related email messages. It supports methods for retrieving threads and tracking changes.
See
RFC 8621 Section 3: Threads