(** JMAP Binary Data Handling. @see RFC 8620, Section 6 *) open Jmap_types open Jmap_error (** Response from uploading binary data. @see RFC 8620, Section 6.1 *) module Upload_response : sig type t val account_id : t -> id val blob_id : t -> id val type_ : t -> string val size : t -> uint val v : account_id:id -> blob_id:id -> type_:string -> size:uint -> unit -> t end (** Arguments for Blob/copy. @see RFC 8620, Section 6.3 *) module Blob_copy_args : sig type t val from_account_id : t -> id val account_id : t -> id val blob_ids : t -> id list val v : from_account_id:id -> account_id:id -> blob_ids:id list -> unit -> t end (** Response for Blob/copy. @see RFC 8620, Section 6.3 *) module Blob_copy_response : sig type t val from_account_id : t -> id val account_id : t -> id val copied : t -> id id_map option val not_copied : t -> Set_error.t id_map option val v : from_account_id:id -> account_id:id -> ?copied:id id_map -> ?not_copied:Set_error.t id_map -> unit -> t end