Get the map of client-specified creation IDs to server-assigned IDs
Get the collection of method calls that are included in this request
Get the reverse map of server-assigned IDs to client-specified creation IDs
Get the set of unique URIs that will be included in the using parameter of the JMAP request
Add a method call to the request. All methods must be unique. If the method already exists in the request, it will not be added again.
The method call to add to the request
The invocation builder instance to allow for method chaining
Add the map of client specified creation IDs to server assigned IDs, to be included in the request.
This may be invoked with an empty object to initialise the createdIds for the first request, or with a map of client-specified creation IDs to the server-assigned IDs that were obtained from a previous response.
The map of client-specified creation IDs to the server assigned IDs
The invocation builder instance to allow for method chaining
Build the JMAP request object from the current state of the builder.
This will generate unique IDs for each method call, and resolve any client-specified creation IDs to server-assigned IDs if they were provided.
The prefix to use for generated IDs (default is "id_")
The constructed JMAP request object
Reset the map of creation ids to remove any that had been previously added. After invoking this, the createdIds property will will be omitted from the request.
Remove a method call from the request. If the method does not exist in the request, this method will do nothing.
The method call to remove from the request
The invocation builder instance to allow for method chaining
Send this request to the JMAP server using the associated client.
Optionalsignal: AbortSignalOptional AbortSignal to cancel the request.
The parsed response from the server.
Serialise the request for sending as a request body. By default, returns a JSON string, but can be extended to support other formats.
The serialised request (string, Blob, ArrayBuffer, etc.)
Validate all invocations currently in the request.
A Promise resolving to the invocation builder instance
Get the map of created IDs that are included in this request