My agentic slop goes here. Not intended for anyone else!
1(** {1 Interface to the Zotero Translation Server} *)
2
3type t
4
5type format =
6 | Bibtex
7 | Biblatex
8 | Bookmarks
9 | Coins
10 | Csljson
11 | Csv
12 | Endnote_xml
13 | Evernote
14 | Mods
15 | Rdf_bibliontology
16 | Rdf_dc
17 | Rdf_zotero
18 | Refer
19 | Refworks_tagged
20 | Ris
21 | Tei
22 | Wikipedia
23
24val format_to_string: format -> string
25val format_of_string: string -> format option
26
27(** Create a Zotero Translation client.
28 @param requests_session Shared Requests session for connection pooling.
29 @param base_uri Base URI of the Zotero translation server (e.g., "http://localhost:1969"). *)
30val create :
31 requests_session:Requests.t ->
32 string -> t
33
34val resolve_doi: t ->
35 string -> (Jsont.json, [>`Msg of string]) result
36
37val resolve_url: t ->
38 string -> (Jsont.json, [>`Msg of string]) result
39
40val search_id: t ->
41 string -> (Jsont.json, [>`Msg of string]) result
42
43val export: t ->
44 format -> Jsont.json -> (string, [>`Msg of string]) result
45
46val json_of_doi : t ->
47 slug:string -> string -> Jsont.object'