Constructs a ResultReference
A unique symbol identifying the invocation being referenced
The name of the method call being referenced (e.g., "Foo/set")
A JSON Pointer (RFC 6901) path to the value in the result (e.g., "/id")
Get the unique identifier symbol for the invocation being referenced
Get the method name of the invocation being referenced
Get the JSON Pointer path to the value in the referenced result
Resolves this result reference to a JMAP result reference format
Converts the internal symbol-based invocation ID to a string invocation ID suitable for serialisation in a JMAP request.
A function that maps the invocation symbol to its string ID
A JMAP result reference object with resultOf, name, and path properties
InternalSerialises this result reference to an internal JSON format
Produces a JSON-serialisable representation that preserves the symbol-based invocation ID for internal use. This is used during the pre-serialisation phase before invocation IDs are resolved to strings.
An internal result reference object with the symbol ID
Represents a JMAP result reference that allows one method call to reference the result of a previous method call within the same request.
Result references are a core feature of JMAP (RFC 8620 Section 3.7) that enable method calls to depend on the results of earlier method calls in the same request. This allows for efficient batching of interdependent operations without requiring multiple round trips to the server.
Remarks
This class is primarily used internally by the JMAP client and invocation system. Users typically create result references through invocation method arguments that accept
ResultReferenceInterfaceobjects.A result reference consists of:
Example
See
RFC 8620 Section 3.7: References to Previous Method Results