Module Dropbox_j

type date = Dropbox_t.date
type group = Dropbox_t.group = {
group_name : string;
group_id : string;
num_members : int;
}
type json = Yojson.Safe.json
type metadata_root = Dropbox_t.metadata_root
type photo_info_variant = Dropbox_t.photo_info_variant
type user = Dropbox_t.user = {
uid : int;
display_name : string;
same_team : bool;
member_id : string;
}
type user_info = Dropbox_t.user_info = {
user : user;
access_type : string;
active : bool;
}
type shared_folder = Dropbox_t.shared_folder = {
shared_folder_id : string;
shared_folder_name : string;
path : string;
access_type : string;
owner : user option;
membership : user_info list;
groups : group list;
}
type video_info_variant = Dropbox_t.video_info_variant
type metadata = Dropbox_t.metadata = {
size : string;
bytes : int;
mime_type : string;
path : string;
is_dir : bool;
is_deleted : bool;
rev : string;
hash : string;
thumb_exists : bool;
photo_info : photo_info_variant;
video_info : video_info_variant;
icon : string;
modified : date option;
client_mtime : date option;
root : metadata_root;
contents : metadata list;
shared_folder : shared_folder option;
read_only : bool;
parent_shared_folder_id : int;
modifier : user option;
}
type visibility = Dropbox_t.visibility
type uri = Dropbox_t.uri
type token = Dropbox_t.token = {
access_token : string;
}
type team = Dropbox_t.team = {
name : string;
team_id : int;
}
type shared_folders = Dropbox_t.shared_folders
type quota_info = Dropbox_t.quota_info = {
shared : int;
quota : int;
normal : int;
}
type name_details = Dropbox_t.name_details = {
familiar_name : string;
given_name : string;
surname : string;
}
type metadata_list = Dropbox_t.metadata_list
type longpoll_delta = Dropbox_t.longpoll_delta = {
changes : bool;
backoff : int option;
}
type latest_cursor = Dropbox_t.latest_cursor = {
latest_cursor : string;
}
type info = Dropbox_t.info = {
uid : int;
display_name : string;
email_verified : bool;
name_details : name_details;
country : string;
locale : string;
is_paired : bool;
team : team option;
quota_info : quota_info;
}
type error_description = Dropbox_t.error_description = {
error : string;
error_description : string;
}
type delta_json = Dropbox_t.delta_json = {
entries : (string * metadata option) list;
reset : bool;
cursor : string;
has_more : bool;
}
type copy_ref = Dropbox_t.copy_ref = {
copy_ref : string;
expires : date;
}
type chunked_upload = Dropbox_t.chunked_upload = {
id : string;
ofs : int;
expires : date;
}
val write_date : Bi_outbuf.t -> date -> unit

Output a JSON value of type date.

val string_of_date : ?⁠len:int -> date -> string

Serialize a value of type date into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_date : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> date

Input JSON data of type date.

val date_of_string : string -> date

Deserialize JSON data of type date.

val write_group : Bi_outbuf.t -> group -> unit

Output a JSON value of type group.

val string_of_group : ?⁠len:int -> group -> string

Serialize a value of type group into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_group : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> group

Input JSON data of type group.

val group_of_string : string -> group

Deserialize JSON data of type group.

val write_json : Bi_outbuf.t -> json -> unit

Output a JSON value of type json.

val string_of_json : ?⁠len:int -> json -> string

Serialize a value of type json into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_json : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> json

Input JSON data of type json.

val json_of_string : string -> json

Deserialize JSON data of type json.

val write_metadata_root : Bi_outbuf.t -> metadata_root -> unit

Output a JSON value of type metadata_root.

val string_of_metadata_root : ?⁠len:int -> metadata_root -> string

Serialize a value of type metadata_root into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_metadata_root : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> metadata_root

Input JSON data of type metadata_root.

val metadata_root_of_string : string -> metadata_root

Deserialize JSON data of type metadata_root.

val write_photo_info_variant : Bi_outbuf.t -> photo_info_variant -> unit

Output a JSON value of type photo_info_variant.

val string_of_photo_info_variant : ?⁠len:int -> photo_info_variant -> string

Serialize a value of type photo_info_variant into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_photo_info_variant : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> photo_info_variant

Input JSON data of type photo_info_variant.

val photo_info_variant_of_string : string -> photo_info_variant

Deserialize JSON data of type photo_info_variant.

val write_user : Bi_outbuf.t -> user -> unit

Output a JSON value of type user.

val string_of_user : ?⁠len:int -> user -> string

Serialize a value of type user into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_user : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> user

Input JSON data of type user.

val user_of_string : string -> user

Deserialize JSON data of type user.

val write_user_info : Bi_outbuf.t -> user_info -> unit

Output a JSON value of type user_info.

val string_of_user_info : ?⁠len:int -> user_info -> string

Serialize a value of type user_info into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_user_info : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> user_info

Input JSON data of type user_info.

val user_info_of_string : string -> user_info

Deserialize JSON data of type user_info.

val write_shared_folder : Bi_outbuf.t -> shared_folder -> unit

Output a JSON value of type shared_folder.

val string_of_shared_folder : ?⁠len:int -> shared_folder -> string

Serialize a value of type shared_folder into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_shared_folder : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> shared_folder

Input JSON data of type shared_folder.

val shared_folder_of_string : string -> shared_folder

Deserialize JSON data of type shared_folder.

val write_video_info_variant : Bi_outbuf.t -> video_info_variant -> unit

Output a JSON value of type video_info_variant.

val string_of_video_info_variant : ?⁠len:int -> video_info_variant -> string

Serialize a value of type video_info_variant into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_video_info_variant : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> video_info_variant

Input JSON data of type video_info_variant.

val video_info_variant_of_string : string -> video_info_variant

Deserialize JSON data of type video_info_variant.

val write_metadata : Bi_outbuf.t -> metadata -> unit

Output a JSON value of type metadata.

val string_of_metadata : ?⁠len:int -> metadata -> string

Serialize a value of type metadata into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_metadata : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> metadata

Input JSON data of type metadata.

val metadata_of_string : string -> metadata

Deserialize JSON data of type metadata.

val write_visibility : Bi_outbuf.t -> visibility -> unit

Output a JSON value of type visibility.

val string_of_visibility : ?⁠len:int -> visibility -> string

Serialize a value of type visibility into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_visibility : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> visibility

Input JSON data of type visibility.

val visibility_of_string : string -> visibility

Deserialize JSON data of type visibility.

val write_uri : Bi_outbuf.t -> uri -> unit

Output a JSON value of type uri.

val string_of_uri : ?⁠len:int -> uri -> string

Serialize a value of type uri into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_uri : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> uri

Input JSON data of type uri.

val uri_of_string : string -> uri

Deserialize JSON data of type uri.

val write_token : Bi_outbuf.t -> token -> unit

Output a JSON value of type token.

val string_of_token : ?⁠len:int -> token -> string

Serialize a value of type token into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_token : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> token

Input JSON data of type token.

val token_of_string : string -> token

Deserialize JSON data of type token.

val write_team : Bi_outbuf.t -> team -> unit

Output a JSON value of type team.

val string_of_team : ?⁠len:int -> team -> string

Serialize a value of type team into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_team : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> team

Input JSON data of type team.

val team_of_string : string -> team

Deserialize JSON data of type team.

Output a JSON value of type shared_link.

Serialize a value of type shared_link into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type shared_link.

Deserialize JSON data of type shared_link.

val write_shared_folders : Bi_outbuf.t -> shared_folders -> unit

Output a JSON value of type shared_folders.

val string_of_shared_folders : ?⁠len:int -> shared_folders -> string

Serialize a value of type shared_folders into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_shared_folders : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> shared_folders

Input JSON data of type shared_folders.

val shared_folders_of_string : string -> shared_folders

Deserialize JSON data of type shared_folders.

val write_quota_info : Bi_outbuf.t -> quota_info -> unit

Output a JSON value of type quota_info.

val string_of_quota_info : ?⁠len:int -> quota_info -> string

Serialize a value of type quota_info into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_quota_info : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> quota_info

Input JSON data of type quota_info.

val quota_info_of_string : string -> quota_info

Deserialize JSON data of type quota_info.

val write_name_details : Bi_outbuf.t -> name_details -> unit

Output a JSON value of type name_details.

val string_of_name_details : ?⁠len:int -> name_details -> string

Serialize a value of type name_details into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_name_details : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> name_details

Input JSON data of type name_details.

val name_details_of_string : string -> name_details

Deserialize JSON data of type name_details.

val write_metadata_list : Bi_outbuf.t -> metadata_list -> unit

Output a JSON value of type metadata_list.

val string_of_metadata_list : ?⁠len:int -> metadata_list -> string

Serialize a value of type metadata_list into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_metadata_list : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> metadata_list

Input JSON data of type metadata_list.

val metadata_list_of_string : string -> metadata_list

Deserialize JSON data of type metadata_list.

val write_longpoll_delta : Bi_outbuf.t -> longpoll_delta -> unit

Output a JSON value of type longpoll_delta.

val string_of_longpoll_delta : ?⁠len:int -> longpoll_delta -> string

Serialize a value of type longpoll_delta into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_longpoll_delta : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> longpoll_delta

Input JSON data of type longpoll_delta.

val longpoll_delta_of_string : string -> longpoll_delta

Deserialize JSON data of type longpoll_delta.

Output a JSON value of type link.

Serialize a value of type link into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

Input JSON data of type link.

Deserialize JSON data of type link.

val write_latest_cursor : Bi_outbuf.t -> latest_cursor -> unit

Output a JSON value of type latest_cursor.

val string_of_latest_cursor : ?⁠len:int -> latest_cursor -> string

Serialize a value of type latest_cursor into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_latest_cursor : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> latest_cursor

Input JSON data of type latest_cursor.

val latest_cursor_of_string : string -> latest_cursor

Deserialize JSON data of type latest_cursor.

val write_info : Bi_outbuf.t -> info -> unit

Output a JSON value of type info.

val string_of_info : ?⁠len:int -> info -> string

Serialize a value of type info into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_info : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> info

Input JSON data of type info.

val info_of_string : string -> info

Deserialize JSON data of type info.

val write_error_description : Bi_outbuf.t -> error_description -> unit

Output a JSON value of type error_description.

val string_of_error_description : ?⁠len:int -> error_description -> string

Serialize a value of type error_description into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_error_description : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> error_description

Input JSON data of type error_description.

val error_description_of_string : string -> error_description

Deserialize JSON data of type error_description.

val write_delta_json : Bi_outbuf.t -> delta_json -> unit

Output a JSON value of type delta_json.

val string_of_delta_json : ?⁠len:int -> delta_json -> string

Serialize a value of type delta_json into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_delta_json : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> delta_json

Input JSON data of type delta_json.

val delta_json_of_string : string -> delta_json

Deserialize JSON data of type delta_json.

val write_copy_ref : Bi_outbuf.t -> copy_ref -> unit

Output a JSON value of type copy_ref.

val string_of_copy_ref : ?⁠len:int -> copy_ref -> string

Serialize a value of type copy_ref into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_copy_ref : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> copy_ref

Input JSON data of type copy_ref.

val copy_ref_of_string : string -> copy_ref

Deserialize JSON data of type copy_ref.

val write_chunked_upload : Bi_outbuf.t -> chunked_upload -> unit

Output a JSON value of type chunked_upload.

val string_of_chunked_upload : ?⁠len:int -> chunked_upload -> string

Serialize a value of type chunked_upload into a JSON string.

parameter len

specifies the initial length of the buffer used internally. Default: 1024.

val read_chunked_upload : Yojson.Safe.lexer_state -> Stdlib.Lexing.lexbuf -> chunked_upload

Input JSON data of type chunked_upload.

val chunked_upload_of_string : string -> chunked_upload

Deserialize JSON data of type chunked_upload.