@mantra-ai/core 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (385) hide show
  1. package/dist/ai/google/client.d.ts +67 -0
  2. package/dist/ai/google/client.d.ts.map +1 -0
  3. package/dist/ai/google/client.js +169 -0
  4. package/dist/ai/google/client.js.map +1 -0
  5. package/dist/ai/google/generate.d.ts +10 -0
  6. package/dist/ai/google/generate.d.ts.map +1 -0
  7. package/dist/ai/google/generate.js +137 -0
  8. package/dist/ai/google/generate.js.map +1 -0
  9. package/dist/ai/google/index.d.ts +4 -0
  10. package/dist/ai/google/index.d.ts.map +1 -0
  11. package/dist/ai/google/index.js +4 -0
  12. package/dist/ai/google/index.js.map +1 -0
  13. package/dist/ai/google/types.d.ts +88 -0
  14. package/dist/ai/google/types.d.ts.map +1 -0
  15. package/dist/ai/google/types.js +55 -0
  16. package/dist/ai/google/types.js.map +1 -0
  17. package/dist/ai/index.d.ts +3 -0
  18. package/dist/ai/index.d.ts.map +1 -0
  19. package/dist/ai/index.js +3 -0
  20. package/dist/ai/index.js.map +1 -0
  21. package/dist/ai/openai/client.d.ts +22 -0
  22. package/dist/ai/openai/client.d.ts.map +1 -0
  23. package/dist/ai/openai/client.js +49 -0
  24. package/dist/ai/openai/client.js.map +1 -0
  25. package/dist/ai/openai/generate.d.ts +14 -0
  26. package/dist/ai/openai/generate.d.ts.map +1 -0
  27. package/dist/ai/openai/generate.js +178 -0
  28. package/dist/ai/openai/generate.js.map +1 -0
  29. package/dist/ai/openai/index.d.ts +4 -0
  30. package/dist/ai/openai/index.d.ts.map +1 -0
  31. package/dist/ai/openai/index.js +4 -0
  32. package/dist/ai/openai/index.js.map +1 -0
  33. package/dist/ai/openai/types.d.ts +86 -0
  34. package/dist/ai/openai/types.d.ts.map +1 -0
  35. package/dist/ai/openai/types.js +56 -0
  36. package/dist/ai/openai/types.js.map +1 -0
  37. package/dist/ai/prompts/index.d.ts +1 -0
  38. package/dist/ai/prompts/index.d.ts.map +1 -0
  39. package/dist/ai/prompts/index.js +2 -0
  40. package/dist/ai/prompts/index.js.map +1 -0
  41. package/dist/errors/index.d.ts +3 -0
  42. package/dist/errors/index.d.ts.map +1 -0
  43. package/dist/errors/index.js +4 -0
  44. package/dist/errors/index.js.map +1 -0
  45. package/dist/errors/schemas.d.ts +304 -0
  46. package/dist/errors/schemas.d.ts.map +1 -0
  47. package/dist/errors/schemas.js +57 -0
  48. package/dist/errors/schemas.js.map +1 -0
  49. package/dist/errors/types.d.ts +30 -0
  50. package/dist/errors/types.d.ts.map +1 -0
  51. package/dist/errors/types.js +33 -0
  52. package/dist/errors/types.js.map +1 -0
  53. package/dist/index.d.ts +21 -0
  54. package/dist/index.d.ts.map +1 -0
  55. package/dist/index.js +21 -0
  56. package/dist/index.js.map +1 -0
  57. package/dist/normalization/jats/index.d.ts +4 -0
  58. package/dist/normalization/jats/index.d.ts.map +1 -0
  59. package/dist/normalization/jats/index.js +3 -0
  60. package/dist/normalization/jats/index.js.map +1 -0
  61. package/dist/normalization/jats/normalize.d.ts +7 -0
  62. package/dist/normalization/jats/normalize.d.ts.map +1 -0
  63. package/dist/normalization/jats/normalize.js +213 -0
  64. package/dist/normalization/jats/normalize.js.map +1 -0
  65. package/dist/normalization/jats/utils/build/finalize.d.ts +3 -0
  66. package/dist/normalization/jats/utils/build/finalize.d.ts.map +1 -0
  67. package/dist/normalization/jats/utils/build/finalize.js +462 -0
  68. package/dist/normalization/jats/utils/build/finalize.js.map +1 -0
  69. package/dist/normalization/jats/utils/build/flatten.d.ts +20 -0
  70. package/dist/normalization/jats/utils/build/flatten.d.ts.map +1 -0
  71. package/dist/normalization/jats/utils/build/flatten.js +502 -0
  72. package/dist/normalization/jats/utils/build/flatten.js.map +1 -0
  73. package/dist/normalization/jats/utils/build/meta.d.ts +10 -0
  74. package/dist/normalization/jats/utils/build/meta.d.ts.map +1 -0
  75. package/dist/normalization/jats/utils/build/meta.js +32 -0
  76. package/dist/normalization/jats/utils/build/meta.js.map +1 -0
  77. package/dist/normalization/jats/utils/build/version.d.ts +3 -0
  78. package/dist/normalization/jats/utils/build/version.d.ts.map +1 -0
  79. package/dist/normalization/jats/utils/build/version.js +11 -0
  80. package/dist/normalization/jats/utils/build/version.js.map +1 -0
  81. package/dist/normalization/jats/utils/category.d.ts +11 -0
  82. package/dist/normalization/jats/utils/category.d.ts.map +1 -0
  83. package/dist/normalization/jats/utils/category.js +431 -0
  84. package/dist/normalization/jats/utils/category.js.map +1 -0
  85. package/dist/normalization/jats/utils/collectors/abstracts.d.ts +3 -0
  86. package/dist/normalization/jats/utils/collectors/abstracts.d.ts.map +1 -0
  87. package/dist/normalization/jats/utils/collectors/abstracts.js +168 -0
  88. package/dist/normalization/jats/utils/collectors/abstracts.js.map +1 -0
  89. package/dist/normalization/jats/utils/collectors/back.d.ts +35 -0
  90. package/dist/normalization/jats/utils/collectors/back.d.ts.map +1 -0
  91. package/dist/normalization/jats/utils/collectors/back.js +801 -0
  92. package/dist/normalization/jats/utils/collectors/back.js.map +1 -0
  93. package/dist/normalization/jats/utils/collectors/contributors.d.ts +4 -0
  94. package/dist/normalization/jats/utils/collectors/contributors.d.ts.map +1 -0
  95. package/dist/normalization/jats/utils/collectors/contributors.js +77 -0
  96. package/dist/normalization/jats/utils/collectors/contributors.js.map +1 -0
  97. package/dist/normalization/jats/utils/collectors/keywords.d.ts +2 -0
  98. package/dist/normalization/jats/utils/collectors/keywords.d.ts.map +1 -0
  99. package/dist/normalization/jats/utils/collectors/keywords.js +14 -0
  100. package/dist/normalization/jats/utils/collectors/keywords.js.map +1 -0
  101. package/dist/normalization/jats/utils/collectors/meta.d.ts +6 -0
  102. package/dist/normalization/jats/utils/collectors/meta.d.ts.map +1 -0
  103. package/dist/normalization/jats/utils/collectors/meta.js +103 -0
  104. package/dist/normalization/jats/utils/collectors/meta.js.map +1 -0
  105. package/dist/normalization/jats/utils/collectors/sections.d.ts +7 -0
  106. package/dist/normalization/jats/utils/collectors/sections.d.ts.map +1 -0
  107. package/dist/normalization/jats/utils/collectors/sections.js +484 -0
  108. package/dist/normalization/jats/utils/collectors/sections.js.map +1 -0
  109. package/dist/normalization/jats/utils/licenses.d.ts +5 -0
  110. package/dist/normalization/jats/utils/licenses.d.ts.map +1 -0
  111. package/dist/normalization/jats/utils/licenses.js +64 -0
  112. package/dist/normalization/jats/utils/licenses.js.map +1 -0
  113. package/dist/normalization/jats/utils/po/nodes.d.ts +6 -0
  114. package/dist/normalization/jats/utils/po/nodes.d.ts.map +1 -0
  115. package/dist/normalization/jats/utils/po/nodes.js +60 -0
  116. package/dist/normalization/jats/utils/po/nodes.js.map +1 -0
  117. package/dist/normalization/jats/utils/po/query.d.ts +7 -0
  118. package/dist/normalization/jats/utils/po/query.d.ts.map +1 -0
  119. package/dist/normalization/jats/utils/po/query.js +67 -0
  120. package/dist/normalization/jats/utils/po/query.js.map +1 -0
  121. package/dist/normalization/jats/utils/po/serialize.d.ts +4 -0
  122. package/dist/normalization/jats/utils/po/serialize.d.ts.map +1 -0
  123. package/dist/normalization/jats/utils/po/serialize.js +329 -0
  124. package/dist/normalization/jats/utils/po/serialize.js.map +1 -0
  125. package/dist/normalization/jats/utils/po/text.d.ts +7 -0
  126. package/dist/normalization/jats/utils/po/text.d.ts.map +1 -0
  127. package/dist/normalization/jats/utils/po/text.js +114 -0
  128. package/dist/normalization/jats/utils/po/text.js.map +1 -0
  129. package/dist/normalization/jats/utils/references.d.ts +26 -0
  130. package/dist/normalization/jats/utils/references.d.ts.map +1 -0
  131. package/dist/normalization/jats/utils/references.js +371 -0
  132. package/dist/normalization/jats/utils/references.js.map +1 -0
  133. package/dist/normalization/jats/utils/strings.d.ts +8 -0
  134. package/dist/normalization/jats/utils/strings.d.ts.map +1 -0
  135. package/dist/normalization/jats/utils/strings.js +197 -0
  136. package/dist/normalization/jats/utils/strings.js.map +1 -0
  137. package/dist/normalization/jats/utils/types.d.ts +233 -0
  138. package/dist/normalization/jats/utils/types.d.ts.map +1 -0
  139. package/dist/normalization/jats/utils/types.js +2 -0
  140. package/dist/normalization/jats/utils/types.js.map +1 -0
  141. package/dist/normalization/jats/utils/xml.d.ts +5 -0
  142. package/dist/normalization/jats/utils/xml.d.ts.map +1 -0
  143. package/dist/normalization/jats/utils/xml.js +69 -0
  144. package/dist/normalization/jats/utils/xml.js.map +1 -0
  145. package/dist/normalization/normalized-doc-schema.d.ts +1094 -0
  146. package/dist/normalization/normalized-doc-schema.d.ts.map +1 -0
  147. package/dist/normalization/normalized-doc-schema.js +410 -0
  148. package/dist/normalization/normalized-doc-schema.js.map +1 -0
  149. package/dist/normalization/pdf/index.d.ts +4 -0
  150. package/dist/normalization/pdf/index.d.ts.map +1 -0
  151. package/dist/normalization/pdf/index.js +3 -0
  152. package/dist/normalization/pdf/index.js.map +1 -0
  153. package/dist/normalization/pdf/normalize.d.ts +31 -0
  154. package/dist/normalization/pdf/normalize.d.ts.map +1 -0
  155. package/dist/normalization/pdf/normalize.js +321 -0
  156. package/dist/normalization/pdf/normalize.js.map +1 -0
  157. package/dist/normalization/pdf/prompt.d.ts +3 -0
  158. package/dist/normalization/pdf/prompt.d.ts.map +1 -0
  159. package/dist/normalization/pdf/prompt.js +118 -0
  160. package/dist/normalization/pdf/prompt.js.map +1 -0
  161. package/dist/sources/arxiv/client.d.ts +4 -0
  162. package/dist/sources/arxiv/client.d.ts.map +1 -0
  163. package/dist/sources/arxiv/client.js +13 -0
  164. package/dist/sources/arxiv/client.js.map +1 -0
  165. package/dist/sources/biorxiv/client.d.ts +21 -0
  166. package/dist/sources/biorxiv/client.d.ts.map +1 -0
  167. package/dist/sources/biorxiv/client.js +173 -0
  168. package/dist/sources/biorxiv/client.js.map +1 -0
  169. package/dist/sources/crossref/client.d.ts +3 -0
  170. package/dist/sources/crossref/client.d.ts.map +1 -0
  171. package/dist/sources/crossref/client.js +24 -0
  172. package/dist/sources/crossref/client.js.map +1 -0
  173. package/dist/sources/europepmc/client.d.ts +3 -0
  174. package/dist/sources/europepmc/client.d.ts.map +1 -0
  175. package/dist/sources/europepmc/client.js +29 -0
  176. package/dist/sources/europepmc/client.js.map +1 -0
  177. package/dist/sources/medrxiv/browser.d.ts +16 -0
  178. package/dist/sources/medrxiv/browser.d.ts.map +1 -0
  179. package/dist/sources/medrxiv/browser.js +210 -0
  180. package/dist/sources/medrxiv/browser.js.map +1 -0
  181. package/dist/sources/medrxiv/client.d.ts +34 -0
  182. package/dist/sources/medrxiv/client.d.ts.map +1 -0
  183. package/dist/sources/medrxiv/client.js +673 -0
  184. package/dist/sources/medrxiv/client.js.map +1 -0
  185. package/dist/sources/medrxiv/shared.d.ts +7 -0
  186. package/dist/sources/medrxiv/shared.d.ts.map +1 -0
  187. package/dist/sources/medrxiv/shared.js +18 -0
  188. package/dist/sources/medrxiv/shared.js.map +1 -0
  189. package/dist/sources/plos/client.d.ts +13 -0
  190. package/dist/sources/plos/client.d.ts.map +1 -0
  191. package/dist/sources/plos/client.js +147 -0
  192. package/dist/sources/plos/client.js.map +1 -0
  193. package/dist/sources/preprint-discovery.d.ts +55 -0
  194. package/dist/sources/preprint-discovery.d.ts.map +1 -0
  195. package/dist/sources/preprint-discovery.js +115 -0
  196. package/dist/sources/preprint-discovery.js.map +1 -0
  197. package/dist/types/expand.d.ts +5 -0
  198. package/dist/types/expand.d.ts.map +1 -0
  199. package/dist/types/expand.js +20 -0
  200. package/dist/types/expand.js.map +1 -0
  201. package/dist/types/methods-types.d.ts +37 -0
  202. package/dist/types/methods-types.d.ts.map +1 -0
  203. package/dist/types/methods-types.js +2 -0
  204. package/dist/types/methods-types.js.map +1 -0
  205. package/dist/types/multi-input-types.d.ts +57 -0
  206. package/dist/types/multi-input-types.d.ts.map +1 -0
  207. package/dist/types/multi-input-types.js +2 -0
  208. package/dist/types/multi-input-types.js.map +1 -0
  209. package/dist/types/paper/types.d.ts +41 -0
  210. package/dist/types/paper/types.d.ts.map +1 -0
  211. package/dist/types/paper/types.js +2 -0
  212. package/dist/types/paper/types.js.map +1 -0
  213. package/dist/types/results-types.d.ts +122 -0
  214. package/dist/types/results-types.d.ts.map +1 -0
  215. package/dist/types/results-types.js +17 -0
  216. package/dist/types/results-types.js.map +1 -0
  217. package/dist/types/supp-types.d.ts +6 -0
  218. package/dist/types/supp-types.d.ts.map +1 -0
  219. package/dist/types/supp-types.js +2 -0
  220. package/dist/types/supp-types.js.map +1 -0
  221. package/dist/types/version.d.ts +1828 -0
  222. package/dist/types/version.d.ts.map +1 -0
  223. package/dist/types/version.js +311 -0
  224. package/dist/types/version.js.map +1 -0
  225. package/dist/types/work.d.ts +4455 -0
  226. package/dist/types/work.d.ts.map +1 -0
  227. package/dist/types/work.js +330 -0
  228. package/dist/types/work.js.map +1 -0
  229. package/dist/works/adapters/crossref.d.ts +28 -0
  230. package/dist/works/adapters/crossref.d.ts.map +1 -0
  231. package/dist/works/adapters/crossref.js +43 -0
  232. package/dist/works/adapters/crossref.js.map +1 -0
  233. package/dist/works/adapters/europepmc.d.ts +14 -0
  234. package/dist/works/adapters/europepmc.d.ts.map +1 -0
  235. package/dist/works/adapters/europepmc.js +46 -0
  236. package/dist/works/adapters/europepmc.js.map +1 -0
  237. package/dist/works/adapters/openalex.d.ts +5 -0
  238. package/dist/works/adapters/openalex.d.ts.map +1 -0
  239. package/dist/works/adapters/openalex.js +75 -0
  240. package/dist/works/adapters/openalex.js.map +1 -0
  241. package/dist/works/errors.d.ts +23 -0
  242. package/dist/works/errors.d.ts.map +1 -0
  243. package/dist/works/errors.js +37 -0
  244. package/dist/works/errors.js.map +1 -0
  245. package/dist/works/id/detect-identifier.d.ts +15 -0
  246. package/dist/works/id/detect-identifier.d.ts.map +1 -0
  247. package/dist/works/id/detect-identifier.js +50 -0
  248. package/dist/works/id/detect-identifier.js.map +1 -0
  249. package/dist/works/id/normalize-external-id.d.ts +3 -0
  250. package/dist/works/id/normalize-external-id.d.ts.map +1 -0
  251. package/dist/works/id/normalize-external-id.js +44 -0
  252. package/dist/works/id/normalize-external-id.js.map +1 -0
  253. package/dist/works/id/normalize-ids.d.ts +66 -0
  254. package/dist/works/id/normalize-ids.d.ts.map +1 -0
  255. package/dist/works/id/normalize-ids.js +112 -0
  256. package/dist/works/id/normalize-ids.js.map +1 -0
  257. package/dist/works/id/normalize-internals.d.ts +7 -0
  258. package/dist/works/id/normalize-internals.d.ts.map +1 -0
  259. package/dist/works/id/normalize-internals.js +65 -0
  260. package/dist/works/id/normalize-internals.js.map +1 -0
  261. package/dist/works/id/resolve.d.ts +31 -0
  262. package/dist/works/id/resolve.d.ts.map +1 -0
  263. package/dist/works/id/resolve.js +123 -0
  264. package/dist/works/id/resolve.js.map +1 -0
  265. package/dist/works/id/resolveIds/assign.d.ts +4 -0
  266. package/dist/works/id/resolveIds/assign.d.ts.map +1 -0
  267. package/dist/works/id/resolveIds/assign.js +15 -0
  268. package/dist/works/id/resolveIds/assign.js.map +1 -0
  269. package/dist/works/id/resolveIds/flags.d.ts +11 -0
  270. package/dist/works/id/resolveIds/flags.d.ts.map +1 -0
  271. package/dist/works/id/resolveIds/flags.js +27 -0
  272. package/dist/works/id/resolveIds/flags.js.map +1 -0
  273. package/dist/works/id/resolveIds/idctx.d.ts +4 -0
  274. package/dist/works/id/resolveIds/idctx.d.ts.map +1 -0
  275. package/dist/works/id/resolveIds/idctx.js +25 -0
  276. package/dist/works/id/resolveIds/idctx.js.map +1 -0
  277. package/dist/works/id/resolveIds/index.d.ts +13 -0
  278. package/dist/works/id/resolveIds/index.d.ts.map +1 -0
  279. package/dist/works/id/resolveIds/index.js +498 -0
  280. package/dist/works/id/resolveIds/index.js.map +1 -0
  281. package/dist/works/id/resolveIds/versioning.d.ts +27 -0
  282. package/dist/works/id/resolveIds/versioning.d.ts.map +1 -0
  283. package/dist/works/id/resolveIds/versioning.js +156 -0
  284. package/dist/works/id/resolveIds/versioning.js.map +1 -0
  285. package/dist/works/id/resolveIds/workWhere.d.ts +3 -0
  286. package/dist/works/id/resolveIds/workWhere.d.ts.map +1 -0
  287. package/dist/works/id/resolveIds/workWhere.js +35 -0
  288. package/dist/works/id/resolveIds/workWhere.js.map +1 -0
  289. package/dist/works/id/types.d.ts +6 -0
  290. package/dist/works/id/types.d.ts.map +1 -0
  291. package/dist/works/id/types.js +2 -0
  292. package/dist/works/id/types.js.map +1 -0
  293. package/dist/works/pdf-fallback/candidates.d.ts +12 -0
  294. package/dist/works/pdf-fallback/candidates.d.ts.map +1 -0
  295. package/dist/works/pdf-fallback/candidates.js +51 -0
  296. package/dist/works/pdf-fallback/candidates.js.map +1 -0
  297. package/dist/works/pdf-fallback/fetch.d.ts +21 -0
  298. package/dist/works/pdf-fallback/fetch.d.ts.map +1 -0
  299. package/dist/works/pdf-fallback/fetch.js +89 -0
  300. package/dist/works/pdf-fallback/fetch.js.map +1 -0
  301. package/dist/works/pdf-fallback/index.d.ts +28 -0
  302. package/dist/works/pdf-fallback/index.d.ts.map +1 -0
  303. package/dist/works/pdf-fallback/index.js +35 -0
  304. package/dist/works/pdf-fallback/index.js.map +1 -0
  305. package/dist/works/plan.d.ts +8 -0
  306. package/dist/works/plan.d.ts.map +1 -0
  307. package/dist/works/plan.js +62 -0
  308. package/dist/works/plan.js.map +1 -0
  309. package/dist/works/strategies/arxiv.d.ts +3 -0
  310. package/dist/works/strategies/arxiv.d.ts.map +1 -0
  311. package/dist/works/strategies/arxiv.js +56 -0
  312. package/dist/works/strategies/arxiv.js.map +1 -0
  313. package/dist/works/strategies/biorxiv.d.ts +3 -0
  314. package/dist/works/strategies/biorxiv.d.ts.map +1 -0
  315. package/dist/works/strategies/biorxiv.js +63 -0
  316. package/dist/works/strategies/biorxiv.js.map +1 -0
  317. package/dist/works/strategies/europepmc.d.ts +3 -0
  318. package/dist/works/strategies/europepmc.d.ts.map +1 -0
  319. package/dist/works/strategies/europepmc.js +15 -0
  320. package/dist/works/strategies/europepmc.js.map +1 -0
  321. package/dist/works/strategies/index.d.ts +12 -0
  322. package/dist/works/strategies/index.d.ts.map +1 -0
  323. package/dist/works/strategies/index.js +19 -0
  324. package/dist/works/strategies/index.js.map +1 -0
  325. package/dist/works/strategies/landing-url.d.ts +3 -0
  326. package/dist/works/strategies/landing-url.d.ts.map +1 -0
  327. package/dist/works/strategies/landing-url.js +10 -0
  328. package/dist/works/strategies/landing-url.js.map +1 -0
  329. package/dist/works/strategies/medrxiv.d.ts +3 -0
  330. package/dist/works/strategies/medrxiv.d.ts.map +1 -0
  331. package/dist/works/strategies/medrxiv.js +47 -0
  332. package/dist/works/strategies/medrxiv.js.map +1 -0
  333. package/dist/works/strategies/plos.d.ts +3 -0
  334. package/dist/works/strategies/plos.d.ts.map +1 -0
  335. package/dist/works/strategies/plos.js +15 -0
  336. package/dist/works/strategies/plos.js.map +1 -0
  337. package/dist/works/strategies/shared.d.ts +11 -0
  338. package/dist/works/strategies/shared.d.ts.map +1 -0
  339. package/dist/works/strategies/shared.js +97 -0
  340. package/dist/works/strategies/shared.js.map +1 -0
  341. package/dist/works/strategies/ten1101.d.ts +3 -0
  342. package/dist/works/strategies/ten1101.d.ts.map +1 -0
  343. package/dist/works/strategies/ten1101.js +84 -0
  344. package/dist/works/strategies/ten1101.js.map +1 -0
  345. package/dist/works/text/acquire-fulltext.d.ts +7 -0
  346. package/dist/works/text/acquire-fulltext.d.ts.map +1 -0
  347. package/dist/works/text/acquire-fulltext.js +62 -0
  348. package/dist/works/text/acquire-fulltext.js.map +1 -0
  349. package/dist/works/text/normalize.d.ts +40 -0
  350. package/dist/works/text/normalize.d.ts.map +1 -0
  351. package/dist/works/text/normalize.js +188 -0
  352. package/dist/works/text/normalize.js.map +1 -0
  353. package/dist/works/types.d.ts +215 -0
  354. package/dist/works/types.d.ts.map +1 -0
  355. package/dist/works/types.js +6 -0
  356. package/dist/works/types.js.map +1 -0
  357. package/dist/works/util/debug.d.ts +7 -0
  358. package/dist/works/util/debug.d.ts.map +1 -0
  359. package/dist/works/util/debug.js +9 -0
  360. package/dist/works/util/debug.js.map +1 -0
  361. package/dist/works/util/license.d.ts +9 -0
  362. package/dist/works/util/license.d.ts.map +1 -0
  363. package/dist/works/util/license.js +39 -0
  364. package/dist/works/util/license.js.map +1 -0
  365. package/dist/works/util/normalize.d.ts +2 -0
  366. package/dist/works/util/normalize.d.ts.map +1 -0
  367. package/dist/works/util/normalize.js +76 -0
  368. package/dist/works/util/normalize.js.map +1 -0
  369. package/dist/works/util/parse.d.ts +8 -0
  370. package/dist/works/util/parse.d.ts.map +1 -0
  371. package/dist/works/util/parse.js +32 -0
  372. package/dist/works/util/parse.js.map +1 -0
  373. package/dist/works/util/source.d.ts +10 -0
  374. package/dist/works/util/source.d.ts.map +1 -0
  375. package/dist/works/util/source.js +48 -0
  376. package/dist/works/util/source.js.map +1 -0
  377. package/dist/works/util/version-label.d.ts +2 -0
  378. package/dist/works/util/version-label.d.ts.map +1 -0
  379. package/dist/works/util/version-label.js +8 -0
  380. package/dist/works/util/version-label.js.map +1 -0
  381. package/dist/works/util/work-id.d.ts +2 -0
  382. package/dist/works/util/work-id.d.ts.map +1 -0
  383. package/dist/works/util/work-id.js +27 -0
  384. package/dist/works/util/work-id.js.map +1 -0
  385. package/package.json +208 -0
@@ -0,0 +1,4455 @@
1
+ import { z } from "zod";
2
+ export declare const WorkIdsSchema: z.ZodObject<{
3
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ doi?: string | null | undefined;
12
+ pmid?: string | null | undefined;
13
+ pmcid?: string | null | undefined;
14
+ arxiv_id?: string | null | undefined;
15
+ biorxiv_id?: string | null | undefined;
16
+ medrxiv_id?: string | null | undefined;
17
+ openalex_id?: string | null | undefined;
18
+ }, {
19
+ doi?: string | null | undefined;
20
+ pmid?: string | null | undefined;
21
+ pmcid?: string | null | undefined;
22
+ arxiv_id?: string | null | undefined;
23
+ biorxiv_id?: string | null | undefined;
24
+ medrxiv_id?: string | null | undefined;
25
+ openalex_id?: string | null | undefined;
26
+ }>;
27
+ export declare const WorkVersionSchema: z.ZodObject<{
28
+ id: z.ZodString;
29
+ version_label: z.ZodString;
30
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ released_at: z.ZodString;
32
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ open_access: z.ZodOptional<z.ZodBoolean>;
35
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ ingested: z.ZodOptional<z.ZodBoolean>;
37
+ normalized: z.ZodOptional<z.ZodBoolean>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ id: string;
40
+ released_at: string;
41
+ version_label: string;
42
+ license?: string | null | undefined;
43
+ doi?: string | null | undefined;
44
+ ingested?: boolean | undefined;
45
+ normalized?: boolean | undefined;
46
+ open_access?: boolean | undefined;
47
+ previous_version_id?: string | null | undefined;
48
+ schema_version?: string | null | undefined;
49
+ }, {
50
+ id: string;
51
+ released_at: string;
52
+ version_label: string;
53
+ license?: string | null | undefined;
54
+ doi?: string | null | undefined;
55
+ ingested?: boolean | undefined;
56
+ normalized?: boolean | undefined;
57
+ open_access?: boolean | undefined;
58
+ previous_version_id?: string | null | undefined;
59
+ schema_version?: string | null | undefined;
60
+ }>;
61
+ export declare const WorkVersionMinimalSchema: z.ZodObject<{
62
+ public_id: z.ZodString;
63
+ open_access: z.ZodOptional<z.ZodBoolean>;
64
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ public_id: string;
67
+ license?: string | null | undefined;
68
+ open_access?: boolean | undefined;
69
+ }, {
70
+ public_id: string;
71
+ license?: string | null | undefined;
72
+ open_access?: boolean | undefined;
73
+ }>;
74
+ export declare const AuthorSchema: z.ZodObject<{
75
+ role: z.ZodString;
76
+ given: z.ZodString;
77
+ surname: z.ZodString;
78
+ corresp: z.ZodBoolean;
79
+ xref_aff: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
80
+ email: z.ZodOptional<z.ZodString>;
81
+ corresp_id: z.ZodOptional<z.ZodString>;
82
+ full: z.ZodOptional<z.ZodString>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ role: string;
85
+ given: string;
86
+ surname: string;
87
+ corresp: boolean;
88
+ full?: string | undefined;
89
+ xref_aff?: string[] | undefined;
90
+ corresp_id?: string | undefined;
91
+ email?: string | undefined;
92
+ }, {
93
+ role: string;
94
+ given: string;
95
+ surname: string;
96
+ corresp: boolean;
97
+ full?: string | undefined;
98
+ xref_aff?: string[] | undefined;
99
+ corresp_id?: string | undefined;
100
+ email?: string | undefined;
101
+ }>;
102
+ export type Author = z.infer<typeof AuthorSchema>;
103
+ export declare const WorkLinksSchema: z.ZodObject<{
104
+ self: z.ZodString;
105
+ versions: z.ZodString;
106
+ }, "strip", z.ZodTypeAny, {
107
+ self: string;
108
+ versions: string;
109
+ }, {
110
+ self: string;
111
+ versions: string;
112
+ }>;
113
+ export declare const WorkCoreSchema: z.ZodObject<{
114
+ public_id: z.ZodString;
115
+ title: z.ZodString;
116
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
+ ids: z.ZodObject<{
118
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ doi?: string | null | undefined;
127
+ pmid?: string | null | undefined;
128
+ pmcid?: string | null | undefined;
129
+ arxiv_id?: string | null | undefined;
130
+ biorxiv_id?: string | null | undefined;
131
+ medrxiv_id?: string | null | undefined;
132
+ openalex_id?: string | null | undefined;
133
+ }, {
134
+ doi?: string | null | undefined;
135
+ pmid?: string | null | undefined;
136
+ pmcid?: string | null | undefined;
137
+ arxiv_id?: string | null | undefined;
138
+ biorxiv_id?: string | null | undefined;
139
+ medrxiv_id?: string | null | undefined;
140
+ openalex_id?: string | null | undefined;
141
+ }>;
142
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
144
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ created_at: z.ZodString;
148
+ updated_at: z.ZodString;
149
+ versions: z.ZodArray<z.ZodObject<{
150
+ id: z.ZodString;
151
+ version_label: z.ZodString;
152
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ released_at: z.ZodString;
154
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
155
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
+ open_access: z.ZodOptional<z.ZodBoolean>;
157
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
+ ingested: z.ZodOptional<z.ZodBoolean>;
159
+ normalized: z.ZodOptional<z.ZodBoolean>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ id: string;
162
+ released_at: string;
163
+ version_label: string;
164
+ license?: string | null | undefined;
165
+ doi?: string | null | undefined;
166
+ ingested?: boolean | undefined;
167
+ normalized?: boolean | undefined;
168
+ open_access?: boolean | undefined;
169
+ previous_version_id?: string | null | undefined;
170
+ schema_version?: string | null | undefined;
171
+ }, {
172
+ id: string;
173
+ released_at: string;
174
+ version_label: string;
175
+ license?: string | null | undefined;
176
+ doi?: string | null | undefined;
177
+ ingested?: boolean | undefined;
178
+ normalized?: boolean | undefined;
179
+ open_access?: boolean | undefined;
180
+ previous_version_id?: string | null | undefined;
181
+ schema_version?: string | null | undefined;
182
+ }>, "many">;
183
+ _links: z.ZodObject<{
184
+ self: z.ZodString;
185
+ versions: z.ZodString;
186
+ }, "strip", z.ZodTypeAny, {
187
+ self: string;
188
+ versions: string;
189
+ }, {
190
+ self: string;
191
+ versions: string;
192
+ }>;
193
+ sections: z.ZodOptional<z.ZodUnknown>;
194
+ blocks: z.ZodOptional<z.ZodUnknown>;
195
+ assets: z.ZodOptional<z.ZodUnknown>;
196
+ citations: z.ZodOptional<z.ZodUnknown>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ ids: {
199
+ doi?: string | null | undefined;
200
+ pmid?: string | null | undefined;
201
+ pmcid?: string | null | undefined;
202
+ arxiv_id?: string | null | undefined;
203
+ biorxiv_id?: string | null | undefined;
204
+ medrxiv_id?: string | null | undefined;
205
+ openalex_id?: string | null | undefined;
206
+ };
207
+ title: string;
208
+ public_id: string;
209
+ created_at: string;
210
+ updated_at: string;
211
+ _links: {
212
+ self: string;
213
+ versions: string;
214
+ };
215
+ versions: {
216
+ id: string;
217
+ released_at: string;
218
+ version_label: string;
219
+ license?: string | null | undefined;
220
+ doi?: string | null | undefined;
221
+ ingested?: boolean | undefined;
222
+ normalized?: boolean | undefined;
223
+ open_access?: boolean | undefined;
224
+ previous_version_id?: string | null | undefined;
225
+ schema_version?: string | null | undefined;
226
+ }[];
227
+ abstract?: string | null | undefined;
228
+ blocks?: unknown;
229
+ sections?: unknown;
230
+ citations?: unknown;
231
+ assets?: unknown;
232
+ landing_url?: string | null | undefined;
233
+ is_open_access?: boolean | undefined;
234
+ best_license?: string | null | undefined;
235
+ first_published_at?: string | null | undefined;
236
+ latest_released_at?: string | null | undefined;
237
+ }, {
238
+ ids: {
239
+ doi?: string | null | undefined;
240
+ pmid?: string | null | undefined;
241
+ pmcid?: string | null | undefined;
242
+ arxiv_id?: string | null | undefined;
243
+ biorxiv_id?: string | null | undefined;
244
+ medrxiv_id?: string | null | undefined;
245
+ openalex_id?: string | null | undefined;
246
+ };
247
+ title: string;
248
+ public_id: string;
249
+ created_at: string;
250
+ updated_at: string;
251
+ _links: {
252
+ self: string;
253
+ versions: string;
254
+ };
255
+ versions: {
256
+ id: string;
257
+ released_at: string;
258
+ version_label: string;
259
+ license?: string | null | undefined;
260
+ doi?: string | null | undefined;
261
+ ingested?: boolean | undefined;
262
+ normalized?: boolean | undefined;
263
+ open_access?: boolean | undefined;
264
+ previous_version_id?: string | null | undefined;
265
+ schema_version?: string | null | undefined;
266
+ }[];
267
+ abstract?: string | null | undefined;
268
+ blocks?: unknown;
269
+ sections?: unknown;
270
+ citations?: unknown;
271
+ assets?: unknown;
272
+ landing_url?: string | null | undefined;
273
+ is_open_access?: boolean | undefined;
274
+ best_license?: string | null | undefined;
275
+ first_published_at?: string | null | undefined;
276
+ latest_released_at?: string | null | undefined;
277
+ }>;
278
+ export declare const WorkResponseSchema: z.ZodObject<{
279
+ public_id: z.ZodString;
280
+ title: z.ZodString;
281
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
282
+ ids: z.ZodObject<{
283
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
284
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
286
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
287
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
288
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
289
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
290
+ }, "strip", z.ZodTypeAny, {
291
+ doi?: string | null | undefined;
292
+ pmid?: string | null | undefined;
293
+ pmcid?: string | null | undefined;
294
+ arxiv_id?: string | null | undefined;
295
+ biorxiv_id?: string | null | undefined;
296
+ medrxiv_id?: string | null | undefined;
297
+ openalex_id?: string | null | undefined;
298
+ }, {
299
+ doi?: string | null | undefined;
300
+ pmid?: string | null | undefined;
301
+ pmcid?: string | null | undefined;
302
+ arxiv_id?: string | null | undefined;
303
+ biorxiv_id?: string | null | undefined;
304
+ medrxiv_id?: string | null | undefined;
305
+ openalex_id?: string | null | undefined;
306
+ }>;
307
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
309
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
+ created_at: z.ZodString;
313
+ updated_at: z.ZodString;
314
+ versions: z.ZodArray<z.ZodObject<{
315
+ id: z.ZodString;
316
+ version_label: z.ZodString;
317
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
+ released_at: z.ZodString;
319
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
321
+ open_access: z.ZodOptional<z.ZodBoolean>;
322
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
+ ingested: z.ZodOptional<z.ZodBoolean>;
324
+ normalized: z.ZodOptional<z.ZodBoolean>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ id: string;
327
+ released_at: string;
328
+ version_label: string;
329
+ license?: string | null | undefined;
330
+ doi?: string | null | undefined;
331
+ ingested?: boolean | undefined;
332
+ normalized?: boolean | undefined;
333
+ open_access?: boolean | undefined;
334
+ previous_version_id?: string | null | undefined;
335
+ schema_version?: string | null | undefined;
336
+ }, {
337
+ id: string;
338
+ released_at: string;
339
+ version_label: string;
340
+ license?: string | null | undefined;
341
+ doi?: string | null | undefined;
342
+ ingested?: boolean | undefined;
343
+ normalized?: boolean | undefined;
344
+ open_access?: boolean | undefined;
345
+ previous_version_id?: string | null | undefined;
346
+ schema_version?: string | null | undefined;
347
+ }>, "many">;
348
+ _links: z.ZodObject<{
349
+ self: z.ZodString;
350
+ versions: z.ZodString;
351
+ }, "strip", z.ZodTypeAny, {
352
+ self: string;
353
+ versions: string;
354
+ }, {
355
+ self: string;
356
+ versions: string;
357
+ }>;
358
+ } & {
359
+ sections: z.ZodOptional<z.ZodUnknown>;
360
+ blocks: z.ZodOptional<z.ZodUnknown>;
361
+ _blocks_pagination: z.ZodOptional<z.ZodObject<{
362
+ total: z.ZodNumber;
363
+ offset: z.ZodNumber;
364
+ limit: z.ZodNumber;
365
+ has_more: z.ZodBoolean;
366
+ }, "strip", z.ZodTypeAny, {
367
+ total: number;
368
+ offset: number;
369
+ limit: number;
370
+ has_more: boolean;
371
+ }, {
372
+ total: number;
373
+ offset: number;
374
+ limit: number;
375
+ has_more: boolean;
376
+ }>>;
377
+ assets: z.ZodOptional<z.ZodUnknown>;
378
+ citations: z.ZodOptional<z.ZodUnknown>;
379
+ _citations_pagination: z.ZodOptional<z.ZodObject<{
380
+ total: z.ZodNumber;
381
+ offset: z.ZodNumber;
382
+ limit: z.ZodNumber;
383
+ has_more: z.ZodBoolean;
384
+ }, "strip", z.ZodTypeAny, {
385
+ total: number;
386
+ offset: number;
387
+ limit: number;
388
+ has_more: boolean;
389
+ }, {
390
+ total: number;
391
+ offset: number;
392
+ limit: number;
393
+ has_more: boolean;
394
+ }>>;
395
+ }, "strip", z.ZodTypeAny, {
396
+ ids: {
397
+ doi?: string | null | undefined;
398
+ pmid?: string | null | undefined;
399
+ pmcid?: string | null | undefined;
400
+ arxiv_id?: string | null | undefined;
401
+ biorxiv_id?: string | null | undefined;
402
+ medrxiv_id?: string | null | undefined;
403
+ openalex_id?: string | null | undefined;
404
+ };
405
+ title: string;
406
+ public_id: string;
407
+ created_at: string;
408
+ updated_at: string;
409
+ _links: {
410
+ self: string;
411
+ versions: string;
412
+ };
413
+ versions: {
414
+ id: string;
415
+ released_at: string;
416
+ version_label: string;
417
+ license?: string | null | undefined;
418
+ doi?: string | null | undefined;
419
+ ingested?: boolean | undefined;
420
+ normalized?: boolean | undefined;
421
+ open_access?: boolean | undefined;
422
+ previous_version_id?: string | null | undefined;
423
+ schema_version?: string | null | undefined;
424
+ }[];
425
+ abstract?: string | null | undefined;
426
+ blocks?: unknown;
427
+ sections?: unknown;
428
+ citations?: unknown;
429
+ assets?: unknown;
430
+ _blocks_pagination?: {
431
+ total: number;
432
+ offset: number;
433
+ limit: number;
434
+ has_more: boolean;
435
+ } | undefined;
436
+ _citations_pagination?: {
437
+ total: number;
438
+ offset: number;
439
+ limit: number;
440
+ has_more: boolean;
441
+ } | undefined;
442
+ landing_url?: string | null | undefined;
443
+ is_open_access?: boolean | undefined;
444
+ best_license?: string | null | undefined;
445
+ first_published_at?: string | null | undefined;
446
+ latest_released_at?: string | null | undefined;
447
+ }, {
448
+ ids: {
449
+ doi?: string | null | undefined;
450
+ pmid?: string | null | undefined;
451
+ pmcid?: string | null | undefined;
452
+ arxiv_id?: string | null | undefined;
453
+ biorxiv_id?: string | null | undefined;
454
+ medrxiv_id?: string | null | undefined;
455
+ openalex_id?: string | null | undefined;
456
+ };
457
+ title: string;
458
+ public_id: string;
459
+ created_at: string;
460
+ updated_at: string;
461
+ _links: {
462
+ self: string;
463
+ versions: string;
464
+ };
465
+ versions: {
466
+ id: string;
467
+ released_at: string;
468
+ version_label: string;
469
+ license?: string | null | undefined;
470
+ doi?: string | null | undefined;
471
+ ingested?: boolean | undefined;
472
+ normalized?: boolean | undefined;
473
+ open_access?: boolean | undefined;
474
+ previous_version_id?: string | null | undefined;
475
+ schema_version?: string | null | undefined;
476
+ }[];
477
+ abstract?: string | null | undefined;
478
+ blocks?: unknown;
479
+ sections?: unknown;
480
+ citations?: unknown;
481
+ assets?: unknown;
482
+ _blocks_pagination?: {
483
+ total: number;
484
+ offset: number;
485
+ limit: number;
486
+ has_more: boolean;
487
+ } | undefined;
488
+ _citations_pagination?: {
489
+ total: number;
490
+ offset: number;
491
+ limit: number;
492
+ has_more: boolean;
493
+ } | undefined;
494
+ landing_url?: string | null | undefined;
495
+ is_open_access?: boolean | undefined;
496
+ best_license?: string | null | undefined;
497
+ first_published_at?: string | null | undefined;
498
+ latest_released_at?: string | null | undefined;
499
+ }>;
500
+ export declare const WorkDownloadPresignedSchema: z.ZodObject<{
501
+ mode: z.ZodLiteral<"presigned">;
502
+ url: z.ZodString;
503
+ expires_in: z.ZodNumber;
504
+ }, "strict", z.ZodTypeAny, {
505
+ url: string;
506
+ mode: "presigned";
507
+ expires_in: number;
508
+ }, {
509
+ url: string;
510
+ mode: "presigned";
511
+ expires_in: number;
512
+ }>;
513
+ export declare const WorkDownloadSavedSchema: z.ZodObject<{
514
+ mode: z.ZodLiteral<"saved">;
515
+ path: z.ZodString;
516
+ size: z.ZodNumber;
517
+ content_type: z.ZodString;
518
+ }, "strict", z.ZodTypeAny, {
519
+ path: string;
520
+ mode: "saved";
521
+ size: number;
522
+ content_type: string;
523
+ }, {
524
+ path: string;
525
+ mode: "saved";
526
+ size: number;
527
+ content_type: string;
528
+ }>;
529
+ export declare const WorkDownloadSchema: z.ZodUnion<[z.ZodObject<{
530
+ mode: z.ZodLiteral<"presigned">;
531
+ url: z.ZodString;
532
+ expires_in: z.ZodNumber;
533
+ }, "strict", z.ZodTypeAny, {
534
+ url: string;
535
+ mode: "presigned";
536
+ expires_in: number;
537
+ }, {
538
+ url: string;
539
+ mode: "presigned";
540
+ expires_in: number;
541
+ }>, z.ZodObject<{
542
+ mode: z.ZodLiteral<"saved">;
543
+ path: z.ZodString;
544
+ size: z.ZodNumber;
545
+ content_type: z.ZodString;
546
+ }, "strict", z.ZodTypeAny, {
547
+ path: string;
548
+ mode: "saved";
549
+ size: number;
550
+ content_type: string;
551
+ }, {
552
+ path: string;
553
+ mode: "saved";
554
+ size: number;
555
+ content_type: string;
556
+ }>]>;
557
+ export declare const WorkExpandedDataSchema: z.ZodOptional<z.ZodObject<{
558
+ sections: z.ZodOptional<z.ZodUnknown>;
559
+ blocks: z.ZodOptional<z.ZodUnknown>;
560
+ _blocks_pagination: z.ZodOptional<z.ZodObject<{
561
+ total: z.ZodNumber;
562
+ offset: z.ZodNumber;
563
+ limit: z.ZodNumber;
564
+ has_more: z.ZodBoolean;
565
+ }, "strip", z.ZodTypeAny, {
566
+ total: number;
567
+ offset: number;
568
+ limit: number;
569
+ has_more: boolean;
570
+ }, {
571
+ total: number;
572
+ offset: number;
573
+ limit: number;
574
+ has_more: boolean;
575
+ }>>;
576
+ assets: z.ZodOptional<z.ZodUnknown>;
577
+ citations: z.ZodOptional<z.ZodUnknown>;
578
+ _citations_pagination: z.ZodOptional<z.ZodObject<{
579
+ total: z.ZodNumber;
580
+ offset: z.ZodNumber;
581
+ limit: z.ZodNumber;
582
+ has_more: z.ZodBoolean;
583
+ }, "strip", z.ZodTypeAny, {
584
+ total: number;
585
+ offset: number;
586
+ limit: number;
587
+ has_more: boolean;
588
+ }, {
589
+ total: number;
590
+ offset: number;
591
+ limit: number;
592
+ has_more: boolean;
593
+ }>>;
594
+ }, "strict", z.ZodTypeAny, {
595
+ blocks?: unknown;
596
+ sections?: unknown;
597
+ citations?: unknown;
598
+ assets?: unknown;
599
+ _blocks_pagination?: {
600
+ total: number;
601
+ offset: number;
602
+ limit: number;
603
+ has_more: boolean;
604
+ } | undefined;
605
+ _citations_pagination?: {
606
+ total: number;
607
+ offset: number;
608
+ limit: number;
609
+ has_more: boolean;
610
+ } | undefined;
611
+ }, {
612
+ blocks?: unknown;
613
+ sections?: unknown;
614
+ citations?: unknown;
615
+ assets?: unknown;
616
+ _blocks_pagination?: {
617
+ total: number;
618
+ offset: number;
619
+ limit: number;
620
+ has_more: boolean;
621
+ } | undefined;
622
+ _citations_pagination?: {
623
+ total: number;
624
+ offset: number;
625
+ limit: number;
626
+ has_more: boolean;
627
+ } | undefined;
628
+ }>>;
629
+ export declare const WorkErrorSchema: z.ZodObject<{
630
+ code: z.ZodString;
631
+ message: z.ZodString;
632
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
633
+ }, "strict", z.ZodTypeAny, {
634
+ code: string;
635
+ message: string;
636
+ details?: Record<string, unknown> | undefined;
637
+ }, {
638
+ code: string;
639
+ message: string;
640
+ details?: Record<string, unknown> | undefined;
641
+ }>;
642
+ export declare const WorkEnvelopeSuccessSchema: z.ZodObject<{
643
+ status: z.ZodLiteral<"completed">;
644
+ work: z.ZodObject<{
645
+ public_id: z.ZodString;
646
+ title: z.ZodString;
647
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
648
+ ids: z.ZodObject<{
649
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
650
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
651
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
652
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
653
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
654
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
655
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
656
+ }, "strip", z.ZodTypeAny, {
657
+ doi?: string | null | undefined;
658
+ pmid?: string | null | undefined;
659
+ pmcid?: string | null | undefined;
660
+ arxiv_id?: string | null | undefined;
661
+ biorxiv_id?: string | null | undefined;
662
+ medrxiv_id?: string | null | undefined;
663
+ openalex_id?: string | null | undefined;
664
+ }, {
665
+ doi?: string | null | undefined;
666
+ pmid?: string | null | undefined;
667
+ pmcid?: string | null | undefined;
668
+ arxiv_id?: string | null | undefined;
669
+ biorxiv_id?: string | null | undefined;
670
+ medrxiv_id?: string | null | undefined;
671
+ openalex_id?: string | null | undefined;
672
+ }>;
673
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
674
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
675
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
676
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
677
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
678
+ created_at: z.ZodString;
679
+ updated_at: z.ZodString;
680
+ versions: z.ZodArray<z.ZodObject<{
681
+ id: z.ZodString;
682
+ version_label: z.ZodString;
683
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
684
+ released_at: z.ZodString;
685
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
686
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
687
+ open_access: z.ZodOptional<z.ZodBoolean>;
688
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ ingested: z.ZodOptional<z.ZodBoolean>;
690
+ normalized: z.ZodOptional<z.ZodBoolean>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ id: string;
693
+ released_at: string;
694
+ version_label: string;
695
+ license?: string | null | undefined;
696
+ doi?: string | null | undefined;
697
+ ingested?: boolean | undefined;
698
+ normalized?: boolean | undefined;
699
+ open_access?: boolean | undefined;
700
+ previous_version_id?: string | null | undefined;
701
+ schema_version?: string | null | undefined;
702
+ }, {
703
+ id: string;
704
+ released_at: string;
705
+ version_label: string;
706
+ license?: string | null | undefined;
707
+ doi?: string | null | undefined;
708
+ ingested?: boolean | undefined;
709
+ normalized?: boolean | undefined;
710
+ open_access?: boolean | undefined;
711
+ previous_version_id?: string | null | undefined;
712
+ schema_version?: string | null | undefined;
713
+ }>, "many">;
714
+ _links: z.ZodObject<{
715
+ self: z.ZodString;
716
+ versions: z.ZodString;
717
+ }, "strip", z.ZodTypeAny, {
718
+ self: string;
719
+ versions: string;
720
+ }, {
721
+ self: string;
722
+ versions: string;
723
+ }>;
724
+ sections: z.ZodOptional<z.ZodUnknown>;
725
+ blocks: z.ZodOptional<z.ZodUnknown>;
726
+ assets: z.ZodOptional<z.ZodUnknown>;
727
+ citations: z.ZodOptional<z.ZodUnknown>;
728
+ }, "strip", z.ZodTypeAny, {
729
+ ids: {
730
+ doi?: string | null | undefined;
731
+ pmid?: string | null | undefined;
732
+ pmcid?: string | null | undefined;
733
+ arxiv_id?: string | null | undefined;
734
+ biorxiv_id?: string | null | undefined;
735
+ medrxiv_id?: string | null | undefined;
736
+ openalex_id?: string | null | undefined;
737
+ };
738
+ title: string;
739
+ public_id: string;
740
+ created_at: string;
741
+ updated_at: string;
742
+ _links: {
743
+ self: string;
744
+ versions: string;
745
+ };
746
+ versions: {
747
+ id: string;
748
+ released_at: string;
749
+ version_label: string;
750
+ license?: string | null | undefined;
751
+ doi?: string | null | undefined;
752
+ ingested?: boolean | undefined;
753
+ normalized?: boolean | undefined;
754
+ open_access?: boolean | undefined;
755
+ previous_version_id?: string | null | undefined;
756
+ schema_version?: string | null | undefined;
757
+ }[];
758
+ abstract?: string | null | undefined;
759
+ blocks?: unknown;
760
+ sections?: unknown;
761
+ citations?: unknown;
762
+ assets?: unknown;
763
+ landing_url?: string | null | undefined;
764
+ is_open_access?: boolean | undefined;
765
+ best_license?: string | null | undefined;
766
+ first_published_at?: string | null | undefined;
767
+ latest_released_at?: string | null | undefined;
768
+ }, {
769
+ ids: {
770
+ doi?: string | null | undefined;
771
+ pmid?: string | null | undefined;
772
+ pmcid?: string | null | undefined;
773
+ arxiv_id?: string | null | undefined;
774
+ biorxiv_id?: string | null | undefined;
775
+ medrxiv_id?: string | null | undefined;
776
+ openalex_id?: string | null | undefined;
777
+ };
778
+ title: string;
779
+ public_id: string;
780
+ created_at: string;
781
+ updated_at: string;
782
+ _links: {
783
+ self: string;
784
+ versions: string;
785
+ };
786
+ versions: {
787
+ id: string;
788
+ released_at: string;
789
+ version_label: string;
790
+ license?: string | null | undefined;
791
+ doi?: string | null | undefined;
792
+ ingested?: boolean | undefined;
793
+ normalized?: boolean | undefined;
794
+ open_access?: boolean | undefined;
795
+ previous_version_id?: string | null | undefined;
796
+ schema_version?: string | null | undefined;
797
+ }[];
798
+ abstract?: string | null | undefined;
799
+ blocks?: unknown;
800
+ sections?: unknown;
801
+ citations?: unknown;
802
+ assets?: unknown;
803
+ landing_url?: string | null | undefined;
804
+ is_open_access?: boolean | undefined;
805
+ best_license?: string | null | undefined;
806
+ first_published_at?: string | null | undefined;
807
+ latest_released_at?: string | null | undefined;
808
+ }>;
809
+ data: z.ZodOptional<z.ZodObject<{
810
+ sections: z.ZodOptional<z.ZodUnknown>;
811
+ blocks: z.ZodOptional<z.ZodUnknown>;
812
+ _blocks_pagination: z.ZodOptional<z.ZodObject<{
813
+ total: z.ZodNumber;
814
+ offset: z.ZodNumber;
815
+ limit: z.ZodNumber;
816
+ has_more: z.ZodBoolean;
817
+ }, "strip", z.ZodTypeAny, {
818
+ total: number;
819
+ offset: number;
820
+ limit: number;
821
+ has_more: boolean;
822
+ }, {
823
+ total: number;
824
+ offset: number;
825
+ limit: number;
826
+ has_more: boolean;
827
+ }>>;
828
+ assets: z.ZodOptional<z.ZodUnknown>;
829
+ citations: z.ZodOptional<z.ZodUnknown>;
830
+ _citations_pagination: z.ZodOptional<z.ZodObject<{
831
+ total: z.ZodNumber;
832
+ offset: z.ZodNumber;
833
+ limit: z.ZodNumber;
834
+ has_more: z.ZodBoolean;
835
+ }, "strip", z.ZodTypeAny, {
836
+ total: number;
837
+ offset: number;
838
+ limit: number;
839
+ has_more: boolean;
840
+ }, {
841
+ total: number;
842
+ offset: number;
843
+ limit: number;
844
+ has_more: boolean;
845
+ }>>;
846
+ }, "strict", z.ZodTypeAny, {
847
+ blocks?: unknown;
848
+ sections?: unknown;
849
+ citations?: unknown;
850
+ assets?: unknown;
851
+ _blocks_pagination?: {
852
+ total: number;
853
+ offset: number;
854
+ limit: number;
855
+ has_more: boolean;
856
+ } | undefined;
857
+ _citations_pagination?: {
858
+ total: number;
859
+ offset: number;
860
+ limit: number;
861
+ has_more: boolean;
862
+ } | undefined;
863
+ }, {
864
+ blocks?: unknown;
865
+ sections?: unknown;
866
+ citations?: unknown;
867
+ assets?: unknown;
868
+ _blocks_pagination?: {
869
+ total: number;
870
+ offset: number;
871
+ limit: number;
872
+ has_more: boolean;
873
+ } | undefined;
874
+ _citations_pagination?: {
875
+ total: number;
876
+ offset: number;
877
+ limit: number;
878
+ has_more: boolean;
879
+ } | undefined;
880
+ }>>;
881
+ download: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
882
+ mode: z.ZodLiteral<"presigned">;
883
+ url: z.ZodString;
884
+ expires_in: z.ZodNumber;
885
+ }, "strict", z.ZodTypeAny, {
886
+ url: string;
887
+ mode: "presigned";
888
+ expires_in: number;
889
+ }, {
890
+ url: string;
891
+ mode: "presigned";
892
+ expires_in: number;
893
+ }>, z.ZodObject<{
894
+ mode: z.ZodLiteral<"saved">;
895
+ path: z.ZodString;
896
+ size: z.ZodNumber;
897
+ content_type: z.ZodString;
898
+ }, "strict", z.ZodTypeAny, {
899
+ path: string;
900
+ mode: "saved";
901
+ size: number;
902
+ content_type: string;
903
+ }, {
904
+ path: string;
905
+ mode: "saved";
906
+ size: number;
907
+ content_type: string;
908
+ }>]>>;
909
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
910
+ }, "strict", z.ZodTypeAny, {
911
+ status: "completed";
912
+ work: {
913
+ ids: {
914
+ doi?: string | null | undefined;
915
+ pmid?: string | null | undefined;
916
+ pmcid?: string | null | undefined;
917
+ arxiv_id?: string | null | undefined;
918
+ biorxiv_id?: string | null | undefined;
919
+ medrxiv_id?: string | null | undefined;
920
+ openalex_id?: string | null | undefined;
921
+ };
922
+ title: string;
923
+ public_id: string;
924
+ created_at: string;
925
+ updated_at: string;
926
+ _links: {
927
+ self: string;
928
+ versions: string;
929
+ };
930
+ versions: {
931
+ id: string;
932
+ released_at: string;
933
+ version_label: string;
934
+ license?: string | null | undefined;
935
+ doi?: string | null | undefined;
936
+ ingested?: boolean | undefined;
937
+ normalized?: boolean | undefined;
938
+ open_access?: boolean | undefined;
939
+ previous_version_id?: string | null | undefined;
940
+ schema_version?: string | null | undefined;
941
+ }[];
942
+ abstract?: string | null | undefined;
943
+ blocks?: unknown;
944
+ sections?: unknown;
945
+ citations?: unknown;
946
+ assets?: unknown;
947
+ landing_url?: string | null | undefined;
948
+ is_open_access?: boolean | undefined;
949
+ best_license?: string | null | undefined;
950
+ first_published_at?: string | null | undefined;
951
+ latest_released_at?: string | null | undefined;
952
+ };
953
+ data?: {
954
+ blocks?: unknown;
955
+ sections?: unknown;
956
+ citations?: unknown;
957
+ assets?: unknown;
958
+ _blocks_pagination?: {
959
+ total: number;
960
+ offset: number;
961
+ limit: number;
962
+ has_more: boolean;
963
+ } | undefined;
964
+ _citations_pagination?: {
965
+ total: number;
966
+ offset: number;
967
+ limit: number;
968
+ has_more: boolean;
969
+ } | undefined;
970
+ } | undefined;
971
+ download?: {
972
+ url: string;
973
+ mode: "presigned";
974
+ expires_in: number;
975
+ } | {
976
+ path: string;
977
+ mode: "saved";
978
+ size: number;
979
+ content_type: string;
980
+ } | undefined;
981
+ warnings?: string[] | undefined;
982
+ }, {
983
+ status: "completed";
984
+ work: {
985
+ ids: {
986
+ doi?: string | null | undefined;
987
+ pmid?: string | null | undefined;
988
+ pmcid?: string | null | undefined;
989
+ arxiv_id?: string | null | undefined;
990
+ biorxiv_id?: string | null | undefined;
991
+ medrxiv_id?: string | null | undefined;
992
+ openalex_id?: string | null | undefined;
993
+ };
994
+ title: string;
995
+ public_id: string;
996
+ created_at: string;
997
+ updated_at: string;
998
+ _links: {
999
+ self: string;
1000
+ versions: string;
1001
+ };
1002
+ versions: {
1003
+ id: string;
1004
+ released_at: string;
1005
+ version_label: string;
1006
+ license?: string | null | undefined;
1007
+ doi?: string | null | undefined;
1008
+ ingested?: boolean | undefined;
1009
+ normalized?: boolean | undefined;
1010
+ open_access?: boolean | undefined;
1011
+ previous_version_id?: string | null | undefined;
1012
+ schema_version?: string | null | undefined;
1013
+ }[];
1014
+ abstract?: string | null | undefined;
1015
+ blocks?: unknown;
1016
+ sections?: unknown;
1017
+ citations?: unknown;
1018
+ assets?: unknown;
1019
+ landing_url?: string | null | undefined;
1020
+ is_open_access?: boolean | undefined;
1021
+ best_license?: string | null | undefined;
1022
+ first_published_at?: string | null | undefined;
1023
+ latest_released_at?: string | null | undefined;
1024
+ };
1025
+ data?: {
1026
+ blocks?: unknown;
1027
+ sections?: unknown;
1028
+ citations?: unknown;
1029
+ assets?: unknown;
1030
+ _blocks_pagination?: {
1031
+ total: number;
1032
+ offset: number;
1033
+ limit: number;
1034
+ has_more: boolean;
1035
+ } | undefined;
1036
+ _citations_pagination?: {
1037
+ total: number;
1038
+ offset: number;
1039
+ limit: number;
1040
+ has_more: boolean;
1041
+ } | undefined;
1042
+ } | undefined;
1043
+ download?: {
1044
+ url: string;
1045
+ mode: "presigned";
1046
+ expires_in: number;
1047
+ } | {
1048
+ path: string;
1049
+ mode: "saved";
1050
+ size: number;
1051
+ content_type: string;
1052
+ } | undefined;
1053
+ warnings?: string[] | undefined;
1054
+ }>;
1055
+ export declare const WorkEnvelopeErrorSchema: z.ZodObject<{
1056
+ status: z.ZodLiteral<"error">;
1057
+ error: z.ZodObject<{
1058
+ code: z.ZodString;
1059
+ message: z.ZodString;
1060
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1061
+ }, "strict", z.ZodTypeAny, {
1062
+ code: string;
1063
+ message: string;
1064
+ details?: Record<string, unknown> | undefined;
1065
+ }, {
1066
+ code: string;
1067
+ message: string;
1068
+ details?: Record<string, unknown> | undefined;
1069
+ }>;
1070
+ }, "strict", z.ZodTypeAny, {
1071
+ error: {
1072
+ code: string;
1073
+ message: string;
1074
+ details?: Record<string, unknown> | undefined;
1075
+ };
1076
+ status: "error";
1077
+ }, {
1078
+ error: {
1079
+ code: string;
1080
+ message: string;
1081
+ details?: Record<string, unknown> | undefined;
1082
+ };
1083
+ status: "error";
1084
+ }>;
1085
+ export declare const WorkEnvelopeSchema: z.ZodUnion<[z.ZodObject<{
1086
+ status: z.ZodLiteral<"completed">;
1087
+ work: z.ZodObject<{
1088
+ public_id: z.ZodString;
1089
+ title: z.ZodString;
1090
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1091
+ ids: z.ZodObject<{
1092
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1093
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1094
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1095
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1096
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1097
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1098
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
+ }, "strip", z.ZodTypeAny, {
1100
+ doi?: string | null | undefined;
1101
+ pmid?: string | null | undefined;
1102
+ pmcid?: string | null | undefined;
1103
+ arxiv_id?: string | null | undefined;
1104
+ biorxiv_id?: string | null | undefined;
1105
+ medrxiv_id?: string | null | undefined;
1106
+ openalex_id?: string | null | undefined;
1107
+ }, {
1108
+ doi?: string | null | undefined;
1109
+ pmid?: string | null | undefined;
1110
+ pmcid?: string | null | undefined;
1111
+ arxiv_id?: string | null | undefined;
1112
+ biorxiv_id?: string | null | undefined;
1113
+ medrxiv_id?: string | null | undefined;
1114
+ openalex_id?: string | null | undefined;
1115
+ }>;
1116
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1117
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
1118
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1119
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1120
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
+ created_at: z.ZodString;
1122
+ updated_at: z.ZodString;
1123
+ versions: z.ZodArray<z.ZodObject<{
1124
+ id: z.ZodString;
1125
+ version_label: z.ZodString;
1126
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1127
+ released_at: z.ZodString;
1128
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1129
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1130
+ open_access: z.ZodOptional<z.ZodBoolean>;
1131
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1132
+ ingested: z.ZodOptional<z.ZodBoolean>;
1133
+ normalized: z.ZodOptional<z.ZodBoolean>;
1134
+ }, "strip", z.ZodTypeAny, {
1135
+ id: string;
1136
+ released_at: string;
1137
+ version_label: string;
1138
+ license?: string | null | undefined;
1139
+ doi?: string | null | undefined;
1140
+ ingested?: boolean | undefined;
1141
+ normalized?: boolean | undefined;
1142
+ open_access?: boolean | undefined;
1143
+ previous_version_id?: string | null | undefined;
1144
+ schema_version?: string | null | undefined;
1145
+ }, {
1146
+ id: string;
1147
+ released_at: string;
1148
+ version_label: string;
1149
+ license?: string | null | undefined;
1150
+ doi?: string | null | undefined;
1151
+ ingested?: boolean | undefined;
1152
+ normalized?: boolean | undefined;
1153
+ open_access?: boolean | undefined;
1154
+ previous_version_id?: string | null | undefined;
1155
+ schema_version?: string | null | undefined;
1156
+ }>, "many">;
1157
+ _links: z.ZodObject<{
1158
+ self: z.ZodString;
1159
+ versions: z.ZodString;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ self: string;
1162
+ versions: string;
1163
+ }, {
1164
+ self: string;
1165
+ versions: string;
1166
+ }>;
1167
+ sections: z.ZodOptional<z.ZodUnknown>;
1168
+ blocks: z.ZodOptional<z.ZodUnknown>;
1169
+ assets: z.ZodOptional<z.ZodUnknown>;
1170
+ citations: z.ZodOptional<z.ZodUnknown>;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ ids: {
1173
+ doi?: string | null | undefined;
1174
+ pmid?: string | null | undefined;
1175
+ pmcid?: string | null | undefined;
1176
+ arxiv_id?: string | null | undefined;
1177
+ biorxiv_id?: string | null | undefined;
1178
+ medrxiv_id?: string | null | undefined;
1179
+ openalex_id?: string | null | undefined;
1180
+ };
1181
+ title: string;
1182
+ public_id: string;
1183
+ created_at: string;
1184
+ updated_at: string;
1185
+ _links: {
1186
+ self: string;
1187
+ versions: string;
1188
+ };
1189
+ versions: {
1190
+ id: string;
1191
+ released_at: string;
1192
+ version_label: string;
1193
+ license?: string | null | undefined;
1194
+ doi?: string | null | undefined;
1195
+ ingested?: boolean | undefined;
1196
+ normalized?: boolean | undefined;
1197
+ open_access?: boolean | undefined;
1198
+ previous_version_id?: string | null | undefined;
1199
+ schema_version?: string | null | undefined;
1200
+ }[];
1201
+ abstract?: string | null | undefined;
1202
+ blocks?: unknown;
1203
+ sections?: unknown;
1204
+ citations?: unknown;
1205
+ assets?: unknown;
1206
+ landing_url?: string | null | undefined;
1207
+ is_open_access?: boolean | undefined;
1208
+ best_license?: string | null | undefined;
1209
+ first_published_at?: string | null | undefined;
1210
+ latest_released_at?: string | null | undefined;
1211
+ }, {
1212
+ ids: {
1213
+ doi?: string | null | undefined;
1214
+ pmid?: string | null | undefined;
1215
+ pmcid?: string | null | undefined;
1216
+ arxiv_id?: string | null | undefined;
1217
+ biorxiv_id?: string | null | undefined;
1218
+ medrxiv_id?: string | null | undefined;
1219
+ openalex_id?: string | null | undefined;
1220
+ };
1221
+ title: string;
1222
+ public_id: string;
1223
+ created_at: string;
1224
+ updated_at: string;
1225
+ _links: {
1226
+ self: string;
1227
+ versions: string;
1228
+ };
1229
+ versions: {
1230
+ id: string;
1231
+ released_at: string;
1232
+ version_label: string;
1233
+ license?: string | null | undefined;
1234
+ doi?: string | null | undefined;
1235
+ ingested?: boolean | undefined;
1236
+ normalized?: boolean | undefined;
1237
+ open_access?: boolean | undefined;
1238
+ previous_version_id?: string | null | undefined;
1239
+ schema_version?: string | null | undefined;
1240
+ }[];
1241
+ abstract?: string | null | undefined;
1242
+ blocks?: unknown;
1243
+ sections?: unknown;
1244
+ citations?: unknown;
1245
+ assets?: unknown;
1246
+ landing_url?: string | null | undefined;
1247
+ is_open_access?: boolean | undefined;
1248
+ best_license?: string | null | undefined;
1249
+ first_published_at?: string | null | undefined;
1250
+ latest_released_at?: string | null | undefined;
1251
+ }>;
1252
+ data: z.ZodOptional<z.ZodObject<{
1253
+ sections: z.ZodOptional<z.ZodUnknown>;
1254
+ blocks: z.ZodOptional<z.ZodUnknown>;
1255
+ _blocks_pagination: z.ZodOptional<z.ZodObject<{
1256
+ total: z.ZodNumber;
1257
+ offset: z.ZodNumber;
1258
+ limit: z.ZodNumber;
1259
+ has_more: z.ZodBoolean;
1260
+ }, "strip", z.ZodTypeAny, {
1261
+ total: number;
1262
+ offset: number;
1263
+ limit: number;
1264
+ has_more: boolean;
1265
+ }, {
1266
+ total: number;
1267
+ offset: number;
1268
+ limit: number;
1269
+ has_more: boolean;
1270
+ }>>;
1271
+ assets: z.ZodOptional<z.ZodUnknown>;
1272
+ citations: z.ZodOptional<z.ZodUnknown>;
1273
+ _citations_pagination: z.ZodOptional<z.ZodObject<{
1274
+ total: z.ZodNumber;
1275
+ offset: z.ZodNumber;
1276
+ limit: z.ZodNumber;
1277
+ has_more: z.ZodBoolean;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ total: number;
1280
+ offset: number;
1281
+ limit: number;
1282
+ has_more: boolean;
1283
+ }, {
1284
+ total: number;
1285
+ offset: number;
1286
+ limit: number;
1287
+ has_more: boolean;
1288
+ }>>;
1289
+ }, "strict", z.ZodTypeAny, {
1290
+ blocks?: unknown;
1291
+ sections?: unknown;
1292
+ citations?: unknown;
1293
+ assets?: unknown;
1294
+ _blocks_pagination?: {
1295
+ total: number;
1296
+ offset: number;
1297
+ limit: number;
1298
+ has_more: boolean;
1299
+ } | undefined;
1300
+ _citations_pagination?: {
1301
+ total: number;
1302
+ offset: number;
1303
+ limit: number;
1304
+ has_more: boolean;
1305
+ } | undefined;
1306
+ }, {
1307
+ blocks?: unknown;
1308
+ sections?: unknown;
1309
+ citations?: unknown;
1310
+ assets?: unknown;
1311
+ _blocks_pagination?: {
1312
+ total: number;
1313
+ offset: number;
1314
+ limit: number;
1315
+ has_more: boolean;
1316
+ } | undefined;
1317
+ _citations_pagination?: {
1318
+ total: number;
1319
+ offset: number;
1320
+ limit: number;
1321
+ has_more: boolean;
1322
+ } | undefined;
1323
+ }>>;
1324
+ download: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1325
+ mode: z.ZodLiteral<"presigned">;
1326
+ url: z.ZodString;
1327
+ expires_in: z.ZodNumber;
1328
+ }, "strict", z.ZodTypeAny, {
1329
+ url: string;
1330
+ mode: "presigned";
1331
+ expires_in: number;
1332
+ }, {
1333
+ url: string;
1334
+ mode: "presigned";
1335
+ expires_in: number;
1336
+ }>, z.ZodObject<{
1337
+ mode: z.ZodLiteral<"saved">;
1338
+ path: z.ZodString;
1339
+ size: z.ZodNumber;
1340
+ content_type: z.ZodString;
1341
+ }, "strict", z.ZodTypeAny, {
1342
+ path: string;
1343
+ mode: "saved";
1344
+ size: number;
1345
+ content_type: string;
1346
+ }, {
1347
+ path: string;
1348
+ mode: "saved";
1349
+ size: number;
1350
+ content_type: string;
1351
+ }>]>>;
1352
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1353
+ }, "strict", z.ZodTypeAny, {
1354
+ status: "completed";
1355
+ work: {
1356
+ ids: {
1357
+ doi?: string | null | undefined;
1358
+ pmid?: string | null | undefined;
1359
+ pmcid?: string | null | undefined;
1360
+ arxiv_id?: string | null | undefined;
1361
+ biorxiv_id?: string | null | undefined;
1362
+ medrxiv_id?: string | null | undefined;
1363
+ openalex_id?: string | null | undefined;
1364
+ };
1365
+ title: string;
1366
+ public_id: string;
1367
+ created_at: string;
1368
+ updated_at: string;
1369
+ _links: {
1370
+ self: string;
1371
+ versions: string;
1372
+ };
1373
+ versions: {
1374
+ id: string;
1375
+ released_at: string;
1376
+ version_label: string;
1377
+ license?: string | null | undefined;
1378
+ doi?: string | null | undefined;
1379
+ ingested?: boolean | undefined;
1380
+ normalized?: boolean | undefined;
1381
+ open_access?: boolean | undefined;
1382
+ previous_version_id?: string | null | undefined;
1383
+ schema_version?: string | null | undefined;
1384
+ }[];
1385
+ abstract?: string | null | undefined;
1386
+ blocks?: unknown;
1387
+ sections?: unknown;
1388
+ citations?: unknown;
1389
+ assets?: unknown;
1390
+ landing_url?: string | null | undefined;
1391
+ is_open_access?: boolean | undefined;
1392
+ best_license?: string | null | undefined;
1393
+ first_published_at?: string | null | undefined;
1394
+ latest_released_at?: string | null | undefined;
1395
+ };
1396
+ data?: {
1397
+ blocks?: unknown;
1398
+ sections?: unknown;
1399
+ citations?: unknown;
1400
+ assets?: unknown;
1401
+ _blocks_pagination?: {
1402
+ total: number;
1403
+ offset: number;
1404
+ limit: number;
1405
+ has_more: boolean;
1406
+ } | undefined;
1407
+ _citations_pagination?: {
1408
+ total: number;
1409
+ offset: number;
1410
+ limit: number;
1411
+ has_more: boolean;
1412
+ } | undefined;
1413
+ } | undefined;
1414
+ download?: {
1415
+ url: string;
1416
+ mode: "presigned";
1417
+ expires_in: number;
1418
+ } | {
1419
+ path: string;
1420
+ mode: "saved";
1421
+ size: number;
1422
+ content_type: string;
1423
+ } | undefined;
1424
+ warnings?: string[] | undefined;
1425
+ }, {
1426
+ status: "completed";
1427
+ work: {
1428
+ ids: {
1429
+ doi?: string | null | undefined;
1430
+ pmid?: string | null | undefined;
1431
+ pmcid?: string | null | undefined;
1432
+ arxiv_id?: string | null | undefined;
1433
+ biorxiv_id?: string | null | undefined;
1434
+ medrxiv_id?: string | null | undefined;
1435
+ openalex_id?: string | null | undefined;
1436
+ };
1437
+ title: string;
1438
+ public_id: string;
1439
+ created_at: string;
1440
+ updated_at: string;
1441
+ _links: {
1442
+ self: string;
1443
+ versions: string;
1444
+ };
1445
+ versions: {
1446
+ id: string;
1447
+ released_at: string;
1448
+ version_label: string;
1449
+ license?: string | null | undefined;
1450
+ doi?: string | null | undefined;
1451
+ ingested?: boolean | undefined;
1452
+ normalized?: boolean | undefined;
1453
+ open_access?: boolean | undefined;
1454
+ previous_version_id?: string | null | undefined;
1455
+ schema_version?: string | null | undefined;
1456
+ }[];
1457
+ abstract?: string | null | undefined;
1458
+ blocks?: unknown;
1459
+ sections?: unknown;
1460
+ citations?: unknown;
1461
+ assets?: unknown;
1462
+ landing_url?: string | null | undefined;
1463
+ is_open_access?: boolean | undefined;
1464
+ best_license?: string | null | undefined;
1465
+ first_published_at?: string | null | undefined;
1466
+ latest_released_at?: string | null | undefined;
1467
+ };
1468
+ data?: {
1469
+ blocks?: unknown;
1470
+ sections?: unknown;
1471
+ citations?: unknown;
1472
+ assets?: unknown;
1473
+ _blocks_pagination?: {
1474
+ total: number;
1475
+ offset: number;
1476
+ limit: number;
1477
+ has_more: boolean;
1478
+ } | undefined;
1479
+ _citations_pagination?: {
1480
+ total: number;
1481
+ offset: number;
1482
+ limit: number;
1483
+ has_more: boolean;
1484
+ } | undefined;
1485
+ } | undefined;
1486
+ download?: {
1487
+ url: string;
1488
+ mode: "presigned";
1489
+ expires_in: number;
1490
+ } | {
1491
+ path: string;
1492
+ mode: "saved";
1493
+ size: number;
1494
+ content_type: string;
1495
+ } | undefined;
1496
+ warnings?: string[] | undefined;
1497
+ }>, z.ZodObject<{
1498
+ status: z.ZodLiteral<"error">;
1499
+ error: z.ZodObject<{
1500
+ code: z.ZodString;
1501
+ message: z.ZodString;
1502
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1503
+ }, "strict", z.ZodTypeAny, {
1504
+ code: string;
1505
+ message: string;
1506
+ details?: Record<string, unknown> | undefined;
1507
+ }, {
1508
+ code: string;
1509
+ message: string;
1510
+ details?: Record<string, unknown> | undefined;
1511
+ }>;
1512
+ }, "strict", z.ZodTypeAny, {
1513
+ error: {
1514
+ code: string;
1515
+ message: string;
1516
+ details?: Record<string, unknown> | undefined;
1517
+ };
1518
+ status: "error";
1519
+ }, {
1520
+ error: {
1521
+ code: string;
1522
+ message: string;
1523
+ details?: Record<string, unknown> | undefined;
1524
+ };
1525
+ status: "error";
1526
+ }>]>;
1527
+ export declare const BatchWorkResultSuccessSchema: z.ZodObject<{
1528
+ index: z.ZodNumber;
1529
+ status: z.ZodLiteral<"success">;
1530
+ work: z.ZodObject<{
1531
+ public_id: z.ZodString;
1532
+ title: z.ZodString;
1533
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1534
+ ids: z.ZodObject<{
1535
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1536
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1537
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1538
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1539
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1540
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1541
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1542
+ }, "strip", z.ZodTypeAny, {
1543
+ doi?: string | null | undefined;
1544
+ pmid?: string | null | undefined;
1545
+ pmcid?: string | null | undefined;
1546
+ arxiv_id?: string | null | undefined;
1547
+ biorxiv_id?: string | null | undefined;
1548
+ medrxiv_id?: string | null | undefined;
1549
+ openalex_id?: string | null | undefined;
1550
+ }, {
1551
+ doi?: string | null | undefined;
1552
+ pmid?: string | null | undefined;
1553
+ pmcid?: string | null | undefined;
1554
+ arxiv_id?: string | null | undefined;
1555
+ biorxiv_id?: string | null | undefined;
1556
+ medrxiv_id?: string | null | undefined;
1557
+ openalex_id?: string | null | undefined;
1558
+ }>;
1559
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1560
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
1561
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1562
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1563
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1564
+ created_at: z.ZodString;
1565
+ updated_at: z.ZodString;
1566
+ versions: z.ZodArray<z.ZodObject<{
1567
+ id: z.ZodString;
1568
+ version_label: z.ZodString;
1569
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1570
+ released_at: z.ZodString;
1571
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1572
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1573
+ open_access: z.ZodOptional<z.ZodBoolean>;
1574
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1575
+ ingested: z.ZodOptional<z.ZodBoolean>;
1576
+ normalized: z.ZodOptional<z.ZodBoolean>;
1577
+ }, "strip", z.ZodTypeAny, {
1578
+ id: string;
1579
+ released_at: string;
1580
+ version_label: string;
1581
+ license?: string | null | undefined;
1582
+ doi?: string | null | undefined;
1583
+ ingested?: boolean | undefined;
1584
+ normalized?: boolean | undefined;
1585
+ open_access?: boolean | undefined;
1586
+ previous_version_id?: string | null | undefined;
1587
+ schema_version?: string | null | undefined;
1588
+ }, {
1589
+ id: string;
1590
+ released_at: string;
1591
+ version_label: string;
1592
+ license?: string | null | undefined;
1593
+ doi?: string | null | undefined;
1594
+ ingested?: boolean | undefined;
1595
+ normalized?: boolean | undefined;
1596
+ open_access?: boolean | undefined;
1597
+ previous_version_id?: string | null | undefined;
1598
+ schema_version?: string | null | undefined;
1599
+ }>, "many">;
1600
+ _links: z.ZodObject<{
1601
+ self: z.ZodString;
1602
+ versions: z.ZodString;
1603
+ }, "strip", z.ZodTypeAny, {
1604
+ self: string;
1605
+ versions: string;
1606
+ }, {
1607
+ self: string;
1608
+ versions: string;
1609
+ }>;
1610
+ sections: z.ZodOptional<z.ZodUnknown>;
1611
+ blocks: z.ZodOptional<z.ZodUnknown>;
1612
+ assets: z.ZodOptional<z.ZodUnknown>;
1613
+ citations: z.ZodOptional<z.ZodUnknown>;
1614
+ }, "strip", z.ZodTypeAny, {
1615
+ ids: {
1616
+ doi?: string | null | undefined;
1617
+ pmid?: string | null | undefined;
1618
+ pmcid?: string | null | undefined;
1619
+ arxiv_id?: string | null | undefined;
1620
+ biorxiv_id?: string | null | undefined;
1621
+ medrxiv_id?: string | null | undefined;
1622
+ openalex_id?: string | null | undefined;
1623
+ };
1624
+ title: string;
1625
+ public_id: string;
1626
+ created_at: string;
1627
+ updated_at: string;
1628
+ _links: {
1629
+ self: string;
1630
+ versions: string;
1631
+ };
1632
+ versions: {
1633
+ id: string;
1634
+ released_at: string;
1635
+ version_label: string;
1636
+ license?: string | null | undefined;
1637
+ doi?: string | null | undefined;
1638
+ ingested?: boolean | undefined;
1639
+ normalized?: boolean | undefined;
1640
+ open_access?: boolean | undefined;
1641
+ previous_version_id?: string | null | undefined;
1642
+ schema_version?: string | null | undefined;
1643
+ }[];
1644
+ abstract?: string | null | undefined;
1645
+ blocks?: unknown;
1646
+ sections?: unknown;
1647
+ citations?: unknown;
1648
+ assets?: unknown;
1649
+ landing_url?: string | null | undefined;
1650
+ is_open_access?: boolean | undefined;
1651
+ best_license?: string | null | undefined;
1652
+ first_published_at?: string | null | undefined;
1653
+ latest_released_at?: string | null | undefined;
1654
+ }, {
1655
+ ids: {
1656
+ doi?: string | null | undefined;
1657
+ pmid?: string | null | undefined;
1658
+ pmcid?: string | null | undefined;
1659
+ arxiv_id?: string | null | undefined;
1660
+ biorxiv_id?: string | null | undefined;
1661
+ medrxiv_id?: string | null | undefined;
1662
+ openalex_id?: string | null | undefined;
1663
+ };
1664
+ title: string;
1665
+ public_id: string;
1666
+ created_at: string;
1667
+ updated_at: string;
1668
+ _links: {
1669
+ self: string;
1670
+ versions: string;
1671
+ };
1672
+ versions: {
1673
+ id: string;
1674
+ released_at: string;
1675
+ version_label: string;
1676
+ license?: string | null | undefined;
1677
+ doi?: string | null | undefined;
1678
+ ingested?: boolean | undefined;
1679
+ normalized?: boolean | undefined;
1680
+ open_access?: boolean | undefined;
1681
+ previous_version_id?: string | null | undefined;
1682
+ schema_version?: string | null | undefined;
1683
+ }[];
1684
+ abstract?: string | null | undefined;
1685
+ blocks?: unknown;
1686
+ sections?: unknown;
1687
+ citations?: unknown;
1688
+ assets?: unknown;
1689
+ landing_url?: string | null | undefined;
1690
+ is_open_access?: boolean | undefined;
1691
+ best_license?: string | null | undefined;
1692
+ first_published_at?: string | null | undefined;
1693
+ latest_released_at?: string | null | undefined;
1694
+ }>;
1695
+ data: z.ZodOptional<z.ZodObject<{
1696
+ sections: z.ZodOptional<z.ZodUnknown>;
1697
+ blocks: z.ZodOptional<z.ZodUnknown>;
1698
+ _blocks_pagination: z.ZodOptional<z.ZodObject<{
1699
+ total: z.ZodNumber;
1700
+ offset: z.ZodNumber;
1701
+ limit: z.ZodNumber;
1702
+ has_more: z.ZodBoolean;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ total: number;
1705
+ offset: number;
1706
+ limit: number;
1707
+ has_more: boolean;
1708
+ }, {
1709
+ total: number;
1710
+ offset: number;
1711
+ limit: number;
1712
+ has_more: boolean;
1713
+ }>>;
1714
+ assets: z.ZodOptional<z.ZodUnknown>;
1715
+ citations: z.ZodOptional<z.ZodUnknown>;
1716
+ _citations_pagination: z.ZodOptional<z.ZodObject<{
1717
+ total: z.ZodNumber;
1718
+ offset: z.ZodNumber;
1719
+ limit: z.ZodNumber;
1720
+ has_more: z.ZodBoolean;
1721
+ }, "strip", z.ZodTypeAny, {
1722
+ total: number;
1723
+ offset: number;
1724
+ limit: number;
1725
+ has_more: boolean;
1726
+ }, {
1727
+ total: number;
1728
+ offset: number;
1729
+ limit: number;
1730
+ has_more: boolean;
1731
+ }>>;
1732
+ }, "strict", z.ZodTypeAny, {
1733
+ blocks?: unknown;
1734
+ sections?: unknown;
1735
+ citations?: unknown;
1736
+ assets?: unknown;
1737
+ _blocks_pagination?: {
1738
+ total: number;
1739
+ offset: number;
1740
+ limit: number;
1741
+ has_more: boolean;
1742
+ } | undefined;
1743
+ _citations_pagination?: {
1744
+ total: number;
1745
+ offset: number;
1746
+ limit: number;
1747
+ has_more: boolean;
1748
+ } | undefined;
1749
+ }, {
1750
+ blocks?: unknown;
1751
+ sections?: unknown;
1752
+ citations?: unknown;
1753
+ assets?: unknown;
1754
+ _blocks_pagination?: {
1755
+ total: number;
1756
+ offset: number;
1757
+ limit: number;
1758
+ has_more: boolean;
1759
+ } | undefined;
1760
+ _citations_pagination?: {
1761
+ total: number;
1762
+ offset: number;
1763
+ limit: number;
1764
+ has_more: boolean;
1765
+ } | undefined;
1766
+ }>>;
1767
+ download: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1768
+ mode: z.ZodLiteral<"presigned">;
1769
+ url: z.ZodString;
1770
+ expires_in: z.ZodNumber;
1771
+ }, "strict", z.ZodTypeAny, {
1772
+ url: string;
1773
+ mode: "presigned";
1774
+ expires_in: number;
1775
+ }, {
1776
+ url: string;
1777
+ mode: "presigned";
1778
+ expires_in: number;
1779
+ }>, z.ZodObject<{
1780
+ mode: z.ZodLiteral<"saved">;
1781
+ path: z.ZodString;
1782
+ size: z.ZodNumber;
1783
+ content_type: z.ZodString;
1784
+ }, "strict", z.ZodTypeAny, {
1785
+ path: string;
1786
+ mode: "saved";
1787
+ size: number;
1788
+ content_type: string;
1789
+ }, {
1790
+ path: string;
1791
+ mode: "saved";
1792
+ size: number;
1793
+ content_type: string;
1794
+ }>]>>;
1795
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1796
+ }, "strict", z.ZodTypeAny, {
1797
+ status: "success";
1798
+ work: {
1799
+ ids: {
1800
+ doi?: string | null | undefined;
1801
+ pmid?: string | null | undefined;
1802
+ pmcid?: string | null | undefined;
1803
+ arxiv_id?: string | null | undefined;
1804
+ biorxiv_id?: string | null | undefined;
1805
+ medrxiv_id?: string | null | undefined;
1806
+ openalex_id?: string | null | undefined;
1807
+ };
1808
+ title: string;
1809
+ public_id: string;
1810
+ created_at: string;
1811
+ updated_at: string;
1812
+ _links: {
1813
+ self: string;
1814
+ versions: string;
1815
+ };
1816
+ versions: {
1817
+ id: string;
1818
+ released_at: string;
1819
+ version_label: string;
1820
+ license?: string | null | undefined;
1821
+ doi?: string | null | undefined;
1822
+ ingested?: boolean | undefined;
1823
+ normalized?: boolean | undefined;
1824
+ open_access?: boolean | undefined;
1825
+ previous_version_id?: string | null | undefined;
1826
+ schema_version?: string | null | undefined;
1827
+ }[];
1828
+ abstract?: string | null | undefined;
1829
+ blocks?: unknown;
1830
+ sections?: unknown;
1831
+ citations?: unknown;
1832
+ assets?: unknown;
1833
+ landing_url?: string | null | undefined;
1834
+ is_open_access?: boolean | undefined;
1835
+ best_license?: string | null | undefined;
1836
+ first_published_at?: string | null | undefined;
1837
+ latest_released_at?: string | null | undefined;
1838
+ };
1839
+ index: number;
1840
+ data?: {
1841
+ blocks?: unknown;
1842
+ sections?: unknown;
1843
+ citations?: unknown;
1844
+ assets?: unknown;
1845
+ _blocks_pagination?: {
1846
+ total: number;
1847
+ offset: number;
1848
+ limit: number;
1849
+ has_more: boolean;
1850
+ } | undefined;
1851
+ _citations_pagination?: {
1852
+ total: number;
1853
+ offset: number;
1854
+ limit: number;
1855
+ has_more: boolean;
1856
+ } | undefined;
1857
+ } | undefined;
1858
+ download?: {
1859
+ url: string;
1860
+ mode: "presigned";
1861
+ expires_in: number;
1862
+ } | {
1863
+ path: string;
1864
+ mode: "saved";
1865
+ size: number;
1866
+ content_type: string;
1867
+ } | undefined;
1868
+ warnings?: string[] | undefined;
1869
+ }, {
1870
+ status: "success";
1871
+ work: {
1872
+ ids: {
1873
+ doi?: string | null | undefined;
1874
+ pmid?: string | null | undefined;
1875
+ pmcid?: string | null | undefined;
1876
+ arxiv_id?: string | null | undefined;
1877
+ biorxiv_id?: string | null | undefined;
1878
+ medrxiv_id?: string | null | undefined;
1879
+ openalex_id?: string | null | undefined;
1880
+ };
1881
+ title: string;
1882
+ public_id: string;
1883
+ created_at: string;
1884
+ updated_at: string;
1885
+ _links: {
1886
+ self: string;
1887
+ versions: string;
1888
+ };
1889
+ versions: {
1890
+ id: string;
1891
+ released_at: string;
1892
+ version_label: string;
1893
+ license?: string | null | undefined;
1894
+ doi?: string | null | undefined;
1895
+ ingested?: boolean | undefined;
1896
+ normalized?: boolean | undefined;
1897
+ open_access?: boolean | undefined;
1898
+ previous_version_id?: string | null | undefined;
1899
+ schema_version?: string | null | undefined;
1900
+ }[];
1901
+ abstract?: string | null | undefined;
1902
+ blocks?: unknown;
1903
+ sections?: unknown;
1904
+ citations?: unknown;
1905
+ assets?: unknown;
1906
+ landing_url?: string | null | undefined;
1907
+ is_open_access?: boolean | undefined;
1908
+ best_license?: string | null | undefined;
1909
+ first_published_at?: string | null | undefined;
1910
+ latest_released_at?: string | null | undefined;
1911
+ };
1912
+ index: number;
1913
+ data?: {
1914
+ blocks?: unknown;
1915
+ sections?: unknown;
1916
+ citations?: unknown;
1917
+ assets?: unknown;
1918
+ _blocks_pagination?: {
1919
+ total: number;
1920
+ offset: number;
1921
+ limit: number;
1922
+ has_more: boolean;
1923
+ } | undefined;
1924
+ _citations_pagination?: {
1925
+ total: number;
1926
+ offset: number;
1927
+ limit: number;
1928
+ has_more: boolean;
1929
+ } | undefined;
1930
+ } | undefined;
1931
+ download?: {
1932
+ url: string;
1933
+ mode: "presigned";
1934
+ expires_in: number;
1935
+ } | {
1936
+ path: string;
1937
+ mode: "saved";
1938
+ size: number;
1939
+ content_type: string;
1940
+ } | undefined;
1941
+ warnings?: string[] | undefined;
1942
+ }>;
1943
+ export declare const BatchWorkResultErrorSchema: z.ZodObject<{
1944
+ index: z.ZodNumber;
1945
+ status: z.ZodLiteral<"error">;
1946
+ error: z.ZodObject<{
1947
+ code: z.ZodString;
1948
+ message: z.ZodString;
1949
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1950
+ }, "strict", z.ZodTypeAny, {
1951
+ code: string;
1952
+ message: string;
1953
+ details?: Record<string, unknown> | undefined;
1954
+ }, {
1955
+ code: string;
1956
+ message: string;
1957
+ details?: Record<string, unknown> | undefined;
1958
+ }>;
1959
+ }, "strict", z.ZodTypeAny, {
1960
+ error: {
1961
+ code: string;
1962
+ message: string;
1963
+ details?: Record<string, unknown> | undefined;
1964
+ };
1965
+ status: "error";
1966
+ index: number;
1967
+ }, {
1968
+ error: {
1969
+ code: string;
1970
+ message: string;
1971
+ details?: Record<string, unknown> | undefined;
1972
+ };
1973
+ status: "error";
1974
+ index: number;
1975
+ }>;
1976
+ export declare const BatchWorkResultSchema: z.ZodUnion<[z.ZodObject<{
1977
+ index: z.ZodNumber;
1978
+ status: z.ZodLiteral<"success">;
1979
+ work: z.ZodObject<{
1980
+ public_id: z.ZodString;
1981
+ title: z.ZodString;
1982
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1983
+ ids: z.ZodObject<{
1984
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1985
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1986
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1987
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1988
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1989
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1990
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1991
+ }, "strip", z.ZodTypeAny, {
1992
+ doi?: string | null | undefined;
1993
+ pmid?: string | null | undefined;
1994
+ pmcid?: string | null | undefined;
1995
+ arxiv_id?: string | null | undefined;
1996
+ biorxiv_id?: string | null | undefined;
1997
+ medrxiv_id?: string | null | undefined;
1998
+ openalex_id?: string | null | undefined;
1999
+ }, {
2000
+ doi?: string | null | undefined;
2001
+ pmid?: string | null | undefined;
2002
+ pmcid?: string | null | undefined;
2003
+ arxiv_id?: string | null | undefined;
2004
+ biorxiv_id?: string | null | undefined;
2005
+ medrxiv_id?: string | null | undefined;
2006
+ openalex_id?: string | null | undefined;
2007
+ }>;
2008
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2009
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
2010
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2011
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2012
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2013
+ created_at: z.ZodString;
2014
+ updated_at: z.ZodString;
2015
+ versions: z.ZodArray<z.ZodObject<{
2016
+ id: z.ZodString;
2017
+ version_label: z.ZodString;
2018
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2019
+ released_at: z.ZodString;
2020
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2021
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2022
+ open_access: z.ZodOptional<z.ZodBoolean>;
2023
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2024
+ ingested: z.ZodOptional<z.ZodBoolean>;
2025
+ normalized: z.ZodOptional<z.ZodBoolean>;
2026
+ }, "strip", z.ZodTypeAny, {
2027
+ id: string;
2028
+ released_at: string;
2029
+ version_label: string;
2030
+ license?: string | null | undefined;
2031
+ doi?: string | null | undefined;
2032
+ ingested?: boolean | undefined;
2033
+ normalized?: boolean | undefined;
2034
+ open_access?: boolean | undefined;
2035
+ previous_version_id?: string | null | undefined;
2036
+ schema_version?: string | null | undefined;
2037
+ }, {
2038
+ id: string;
2039
+ released_at: string;
2040
+ version_label: string;
2041
+ license?: string | null | undefined;
2042
+ doi?: string | null | undefined;
2043
+ ingested?: boolean | undefined;
2044
+ normalized?: boolean | undefined;
2045
+ open_access?: boolean | undefined;
2046
+ previous_version_id?: string | null | undefined;
2047
+ schema_version?: string | null | undefined;
2048
+ }>, "many">;
2049
+ _links: z.ZodObject<{
2050
+ self: z.ZodString;
2051
+ versions: z.ZodString;
2052
+ }, "strip", z.ZodTypeAny, {
2053
+ self: string;
2054
+ versions: string;
2055
+ }, {
2056
+ self: string;
2057
+ versions: string;
2058
+ }>;
2059
+ sections: z.ZodOptional<z.ZodUnknown>;
2060
+ blocks: z.ZodOptional<z.ZodUnknown>;
2061
+ assets: z.ZodOptional<z.ZodUnknown>;
2062
+ citations: z.ZodOptional<z.ZodUnknown>;
2063
+ }, "strip", z.ZodTypeAny, {
2064
+ ids: {
2065
+ doi?: string | null | undefined;
2066
+ pmid?: string | null | undefined;
2067
+ pmcid?: string | null | undefined;
2068
+ arxiv_id?: string | null | undefined;
2069
+ biorxiv_id?: string | null | undefined;
2070
+ medrxiv_id?: string | null | undefined;
2071
+ openalex_id?: string | null | undefined;
2072
+ };
2073
+ title: string;
2074
+ public_id: string;
2075
+ created_at: string;
2076
+ updated_at: string;
2077
+ _links: {
2078
+ self: string;
2079
+ versions: string;
2080
+ };
2081
+ versions: {
2082
+ id: string;
2083
+ released_at: string;
2084
+ version_label: string;
2085
+ license?: string | null | undefined;
2086
+ doi?: string | null | undefined;
2087
+ ingested?: boolean | undefined;
2088
+ normalized?: boolean | undefined;
2089
+ open_access?: boolean | undefined;
2090
+ previous_version_id?: string | null | undefined;
2091
+ schema_version?: string | null | undefined;
2092
+ }[];
2093
+ abstract?: string | null | undefined;
2094
+ blocks?: unknown;
2095
+ sections?: unknown;
2096
+ citations?: unknown;
2097
+ assets?: unknown;
2098
+ landing_url?: string | null | undefined;
2099
+ is_open_access?: boolean | undefined;
2100
+ best_license?: string | null | undefined;
2101
+ first_published_at?: string | null | undefined;
2102
+ latest_released_at?: string | null | undefined;
2103
+ }, {
2104
+ ids: {
2105
+ doi?: string | null | undefined;
2106
+ pmid?: string | null | undefined;
2107
+ pmcid?: string | null | undefined;
2108
+ arxiv_id?: string | null | undefined;
2109
+ biorxiv_id?: string | null | undefined;
2110
+ medrxiv_id?: string | null | undefined;
2111
+ openalex_id?: string | null | undefined;
2112
+ };
2113
+ title: string;
2114
+ public_id: string;
2115
+ created_at: string;
2116
+ updated_at: string;
2117
+ _links: {
2118
+ self: string;
2119
+ versions: string;
2120
+ };
2121
+ versions: {
2122
+ id: string;
2123
+ released_at: string;
2124
+ version_label: string;
2125
+ license?: string | null | undefined;
2126
+ doi?: string | null | undefined;
2127
+ ingested?: boolean | undefined;
2128
+ normalized?: boolean | undefined;
2129
+ open_access?: boolean | undefined;
2130
+ previous_version_id?: string | null | undefined;
2131
+ schema_version?: string | null | undefined;
2132
+ }[];
2133
+ abstract?: string | null | undefined;
2134
+ blocks?: unknown;
2135
+ sections?: unknown;
2136
+ citations?: unknown;
2137
+ assets?: unknown;
2138
+ landing_url?: string | null | undefined;
2139
+ is_open_access?: boolean | undefined;
2140
+ best_license?: string | null | undefined;
2141
+ first_published_at?: string | null | undefined;
2142
+ latest_released_at?: string | null | undefined;
2143
+ }>;
2144
+ data: z.ZodOptional<z.ZodObject<{
2145
+ sections: z.ZodOptional<z.ZodUnknown>;
2146
+ blocks: z.ZodOptional<z.ZodUnknown>;
2147
+ _blocks_pagination: z.ZodOptional<z.ZodObject<{
2148
+ total: z.ZodNumber;
2149
+ offset: z.ZodNumber;
2150
+ limit: z.ZodNumber;
2151
+ has_more: z.ZodBoolean;
2152
+ }, "strip", z.ZodTypeAny, {
2153
+ total: number;
2154
+ offset: number;
2155
+ limit: number;
2156
+ has_more: boolean;
2157
+ }, {
2158
+ total: number;
2159
+ offset: number;
2160
+ limit: number;
2161
+ has_more: boolean;
2162
+ }>>;
2163
+ assets: z.ZodOptional<z.ZodUnknown>;
2164
+ citations: z.ZodOptional<z.ZodUnknown>;
2165
+ _citations_pagination: z.ZodOptional<z.ZodObject<{
2166
+ total: z.ZodNumber;
2167
+ offset: z.ZodNumber;
2168
+ limit: z.ZodNumber;
2169
+ has_more: z.ZodBoolean;
2170
+ }, "strip", z.ZodTypeAny, {
2171
+ total: number;
2172
+ offset: number;
2173
+ limit: number;
2174
+ has_more: boolean;
2175
+ }, {
2176
+ total: number;
2177
+ offset: number;
2178
+ limit: number;
2179
+ has_more: boolean;
2180
+ }>>;
2181
+ }, "strict", z.ZodTypeAny, {
2182
+ blocks?: unknown;
2183
+ sections?: unknown;
2184
+ citations?: unknown;
2185
+ assets?: unknown;
2186
+ _blocks_pagination?: {
2187
+ total: number;
2188
+ offset: number;
2189
+ limit: number;
2190
+ has_more: boolean;
2191
+ } | undefined;
2192
+ _citations_pagination?: {
2193
+ total: number;
2194
+ offset: number;
2195
+ limit: number;
2196
+ has_more: boolean;
2197
+ } | undefined;
2198
+ }, {
2199
+ blocks?: unknown;
2200
+ sections?: unknown;
2201
+ citations?: unknown;
2202
+ assets?: unknown;
2203
+ _blocks_pagination?: {
2204
+ total: number;
2205
+ offset: number;
2206
+ limit: number;
2207
+ has_more: boolean;
2208
+ } | undefined;
2209
+ _citations_pagination?: {
2210
+ total: number;
2211
+ offset: number;
2212
+ limit: number;
2213
+ has_more: boolean;
2214
+ } | undefined;
2215
+ }>>;
2216
+ download: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2217
+ mode: z.ZodLiteral<"presigned">;
2218
+ url: z.ZodString;
2219
+ expires_in: z.ZodNumber;
2220
+ }, "strict", z.ZodTypeAny, {
2221
+ url: string;
2222
+ mode: "presigned";
2223
+ expires_in: number;
2224
+ }, {
2225
+ url: string;
2226
+ mode: "presigned";
2227
+ expires_in: number;
2228
+ }>, z.ZodObject<{
2229
+ mode: z.ZodLiteral<"saved">;
2230
+ path: z.ZodString;
2231
+ size: z.ZodNumber;
2232
+ content_type: z.ZodString;
2233
+ }, "strict", z.ZodTypeAny, {
2234
+ path: string;
2235
+ mode: "saved";
2236
+ size: number;
2237
+ content_type: string;
2238
+ }, {
2239
+ path: string;
2240
+ mode: "saved";
2241
+ size: number;
2242
+ content_type: string;
2243
+ }>]>>;
2244
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2245
+ }, "strict", z.ZodTypeAny, {
2246
+ status: "success";
2247
+ work: {
2248
+ ids: {
2249
+ doi?: string | null | undefined;
2250
+ pmid?: string | null | undefined;
2251
+ pmcid?: string | null | undefined;
2252
+ arxiv_id?: string | null | undefined;
2253
+ biorxiv_id?: string | null | undefined;
2254
+ medrxiv_id?: string | null | undefined;
2255
+ openalex_id?: string | null | undefined;
2256
+ };
2257
+ title: string;
2258
+ public_id: string;
2259
+ created_at: string;
2260
+ updated_at: string;
2261
+ _links: {
2262
+ self: string;
2263
+ versions: string;
2264
+ };
2265
+ versions: {
2266
+ id: string;
2267
+ released_at: string;
2268
+ version_label: string;
2269
+ license?: string | null | undefined;
2270
+ doi?: string | null | undefined;
2271
+ ingested?: boolean | undefined;
2272
+ normalized?: boolean | undefined;
2273
+ open_access?: boolean | undefined;
2274
+ previous_version_id?: string | null | undefined;
2275
+ schema_version?: string | null | undefined;
2276
+ }[];
2277
+ abstract?: string | null | undefined;
2278
+ blocks?: unknown;
2279
+ sections?: unknown;
2280
+ citations?: unknown;
2281
+ assets?: unknown;
2282
+ landing_url?: string | null | undefined;
2283
+ is_open_access?: boolean | undefined;
2284
+ best_license?: string | null | undefined;
2285
+ first_published_at?: string | null | undefined;
2286
+ latest_released_at?: string | null | undefined;
2287
+ };
2288
+ index: number;
2289
+ data?: {
2290
+ blocks?: unknown;
2291
+ sections?: unknown;
2292
+ citations?: unknown;
2293
+ assets?: unknown;
2294
+ _blocks_pagination?: {
2295
+ total: number;
2296
+ offset: number;
2297
+ limit: number;
2298
+ has_more: boolean;
2299
+ } | undefined;
2300
+ _citations_pagination?: {
2301
+ total: number;
2302
+ offset: number;
2303
+ limit: number;
2304
+ has_more: boolean;
2305
+ } | undefined;
2306
+ } | undefined;
2307
+ download?: {
2308
+ url: string;
2309
+ mode: "presigned";
2310
+ expires_in: number;
2311
+ } | {
2312
+ path: string;
2313
+ mode: "saved";
2314
+ size: number;
2315
+ content_type: string;
2316
+ } | undefined;
2317
+ warnings?: string[] | undefined;
2318
+ }, {
2319
+ status: "success";
2320
+ work: {
2321
+ ids: {
2322
+ doi?: string | null | undefined;
2323
+ pmid?: string | null | undefined;
2324
+ pmcid?: string | null | undefined;
2325
+ arxiv_id?: string | null | undefined;
2326
+ biorxiv_id?: string | null | undefined;
2327
+ medrxiv_id?: string | null | undefined;
2328
+ openalex_id?: string | null | undefined;
2329
+ };
2330
+ title: string;
2331
+ public_id: string;
2332
+ created_at: string;
2333
+ updated_at: string;
2334
+ _links: {
2335
+ self: string;
2336
+ versions: string;
2337
+ };
2338
+ versions: {
2339
+ id: string;
2340
+ released_at: string;
2341
+ version_label: string;
2342
+ license?: string | null | undefined;
2343
+ doi?: string | null | undefined;
2344
+ ingested?: boolean | undefined;
2345
+ normalized?: boolean | undefined;
2346
+ open_access?: boolean | undefined;
2347
+ previous_version_id?: string | null | undefined;
2348
+ schema_version?: string | null | undefined;
2349
+ }[];
2350
+ abstract?: string | null | undefined;
2351
+ blocks?: unknown;
2352
+ sections?: unknown;
2353
+ citations?: unknown;
2354
+ assets?: unknown;
2355
+ landing_url?: string | null | undefined;
2356
+ is_open_access?: boolean | undefined;
2357
+ best_license?: string | null | undefined;
2358
+ first_published_at?: string | null | undefined;
2359
+ latest_released_at?: string | null | undefined;
2360
+ };
2361
+ index: number;
2362
+ data?: {
2363
+ blocks?: unknown;
2364
+ sections?: unknown;
2365
+ citations?: unknown;
2366
+ assets?: unknown;
2367
+ _blocks_pagination?: {
2368
+ total: number;
2369
+ offset: number;
2370
+ limit: number;
2371
+ has_more: boolean;
2372
+ } | undefined;
2373
+ _citations_pagination?: {
2374
+ total: number;
2375
+ offset: number;
2376
+ limit: number;
2377
+ has_more: boolean;
2378
+ } | undefined;
2379
+ } | undefined;
2380
+ download?: {
2381
+ url: string;
2382
+ mode: "presigned";
2383
+ expires_in: number;
2384
+ } | {
2385
+ path: string;
2386
+ mode: "saved";
2387
+ size: number;
2388
+ content_type: string;
2389
+ } | undefined;
2390
+ warnings?: string[] | undefined;
2391
+ }>, z.ZodObject<{
2392
+ index: z.ZodNumber;
2393
+ status: z.ZodLiteral<"error">;
2394
+ error: z.ZodObject<{
2395
+ code: z.ZodString;
2396
+ message: z.ZodString;
2397
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2398
+ }, "strict", z.ZodTypeAny, {
2399
+ code: string;
2400
+ message: string;
2401
+ details?: Record<string, unknown> | undefined;
2402
+ }, {
2403
+ code: string;
2404
+ message: string;
2405
+ details?: Record<string, unknown> | undefined;
2406
+ }>;
2407
+ }, "strict", z.ZodTypeAny, {
2408
+ error: {
2409
+ code: string;
2410
+ message: string;
2411
+ details?: Record<string, unknown> | undefined;
2412
+ };
2413
+ status: "error";
2414
+ index: number;
2415
+ }, {
2416
+ error: {
2417
+ code: string;
2418
+ message: string;
2419
+ details?: Record<string, unknown> | undefined;
2420
+ };
2421
+ status: "error";
2422
+ index: number;
2423
+ }>]>;
2424
+ export declare const BatchWorkProcessingEnvelopeSchema: z.ZodObject<{
2425
+ status: z.ZodLiteral<"processing">;
2426
+ idempotency_key: z.ZodString;
2427
+ job_id: z.ZodString;
2428
+ created_at: z.ZodString;
2429
+ }, "strict", z.ZodTypeAny, {
2430
+ status: "processing";
2431
+ created_at: string;
2432
+ idempotency_key: string;
2433
+ job_id: string;
2434
+ }, {
2435
+ status: "processing";
2436
+ created_at: string;
2437
+ idempotency_key: string;
2438
+ job_id: string;
2439
+ }>;
2440
+ export declare const BatchWorkEnvelopeSchema: z.ZodUnion<[z.ZodObject<{
2441
+ status: z.ZodEnum<["completed", "partial", "failed"]>;
2442
+ results: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2443
+ index: z.ZodNumber;
2444
+ status: z.ZodLiteral<"success">;
2445
+ work: z.ZodObject<{
2446
+ public_id: z.ZodString;
2447
+ title: z.ZodString;
2448
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2449
+ ids: z.ZodObject<{
2450
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2451
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2452
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2453
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2454
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2455
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2456
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2457
+ }, "strip", z.ZodTypeAny, {
2458
+ doi?: string | null | undefined;
2459
+ pmid?: string | null | undefined;
2460
+ pmcid?: string | null | undefined;
2461
+ arxiv_id?: string | null | undefined;
2462
+ biorxiv_id?: string | null | undefined;
2463
+ medrxiv_id?: string | null | undefined;
2464
+ openalex_id?: string | null | undefined;
2465
+ }, {
2466
+ doi?: string | null | undefined;
2467
+ pmid?: string | null | undefined;
2468
+ pmcid?: string | null | undefined;
2469
+ arxiv_id?: string | null | undefined;
2470
+ biorxiv_id?: string | null | undefined;
2471
+ medrxiv_id?: string | null | undefined;
2472
+ openalex_id?: string | null | undefined;
2473
+ }>;
2474
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2475
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
2476
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2477
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2478
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2479
+ created_at: z.ZodString;
2480
+ updated_at: z.ZodString;
2481
+ versions: z.ZodArray<z.ZodObject<{
2482
+ id: z.ZodString;
2483
+ version_label: z.ZodString;
2484
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2485
+ released_at: z.ZodString;
2486
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2487
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2488
+ open_access: z.ZodOptional<z.ZodBoolean>;
2489
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2490
+ ingested: z.ZodOptional<z.ZodBoolean>;
2491
+ normalized: z.ZodOptional<z.ZodBoolean>;
2492
+ }, "strip", z.ZodTypeAny, {
2493
+ id: string;
2494
+ released_at: string;
2495
+ version_label: string;
2496
+ license?: string | null | undefined;
2497
+ doi?: string | null | undefined;
2498
+ ingested?: boolean | undefined;
2499
+ normalized?: boolean | undefined;
2500
+ open_access?: boolean | undefined;
2501
+ previous_version_id?: string | null | undefined;
2502
+ schema_version?: string | null | undefined;
2503
+ }, {
2504
+ id: string;
2505
+ released_at: string;
2506
+ version_label: string;
2507
+ license?: string | null | undefined;
2508
+ doi?: string | null | undefined;
2509
+ ingested?: boolean | undefined;
2510
+ normalized?: boolean | undefined;
2511
+ open_access?: boolean | undefined;
2512
+ previous_version_id?: string | null | undefined;
2513
+ schema_version?: string | null | undefined;
2514
+ }>, "many">;
2515
+ _links: z.ZodObject<{
2516
+ self: z.ZodString;
2517
+ versions: z.ZodString;
2518
+ }, "strip", z.ZodTypeAny, {
2519
+ self: string;
2520
+ versions: string;
2521
+ }, {
2522
+ self: string;
2523
+ versions: string;
2524
+ }>;
2525
+ sections: z.ZodOptional<z.ZodUnknown>;
2526
+ blocks: z.ZodOptional<z.ZodUnknown>;
2527
+ assets: z.ZodOptional<z.ZodUnknown>;
2528
+ citations: z.ZodOptional<z.ZodUnknown>;
2529
+ }, "strip", z.ZodTypeAny, {
2530
+ ids: {
2531
+ doi?: string | null | undefined;
2532
+ pmid?: string | null | undefined;
2533
+ pmcid?: string | null | undefined;
2534
+ arxiv_id?: string | null | undefined;
2535
+ biorxiv_id?: string | null | undefined;
2536
+ medrxiv_id?: string | null | undefined;
2537
+ openalex_id?: string | null | undefined;
2538
+ };
2539
+ title: string;
2540
+ public_id: string;
2541
+ created_at: string;
2542
+ updated_at: string;
2543
+ _links: {
2544
+ self: string;
2545
+ versions: string;
2546
+ };
2547
+ versions: {
2548
+ id: string;
2549
+ released_at: string;
2550
+ version_label: string;
2551
+ license?: string | null | undefined;
2552
+ doi?: string | null | undefined;
2553
+ ingested?: boolean | undefined;
2554
+ normalized?: boolean | undefined;
2555
+ open_access?: boolean | undefined;
2556
+ previous_version_id?: string | null | undefined;
2557
+ schema_version?: string | null | undefined;
2558
+ }[];
2559
+ abstract?: string | null | undefined;
2560
+ blocks?: unknown;
2561
+ sections?: unknown;
2562
+ citations?: unknown;
2563
+ assets?: unknown;
2564
+ landing_url?: string | null | undefined;
2565
+ is_open_access?: boolean | undefined;
2566
+ best_license?: string | null | undefined;
2567
+ first_published_at?: string | null | undefined;
2568
+ latest_released_at?: string | null | undefined;
2569
+ }, {
2570
+ ids: {
2571
+ doi?: string | null | undefined;
2572
+ pmid?: string | null | undefined;
2573
+ pmcid?: string | null | undefined;
2574
+ arxiv_id?: string | null | undefined;
2575
+ biorxiv_id?: string | null | undefined;
2576
+ medrxiv_id?: string | null | undefined;
2577
+ openalex_id?: string | null | undefined;
2578
+ };
2579
+ title: string;
2580
+ public_id: string;
2581
+ created_at: string;
2582
+ updated_at: string;
2583
+ _links: {
2584
+ self: string;
2585
+ versions: string;
2586
+ };
2587
+ versions: {
2588
+ id: string;
2589
+ released_at: string;
2590
+ version_label: string;
2591
+ license?: string | null | undefined;
2592
+ doi?: string | null | undefined;
2593
+ ingested?: boolean | undefined;
2594
+ normalized?: boolean | undefined;
2595
+ open_access?: boolean | undefined;
2596
+ previous_version_id?: string | null | undefined;
2597
+ schema_version?: string | null | undefined;
2598
+ }[];
2599
+ abstract?: string | null | undefined;
2600
+ blocks?: unknown;
2601
+ sections?: unknown;
2602
+ citations?: unknown;
2603
+ assets?: unknown;
2604
+ landing_url?: string | null | undefined;
2605
+ is_open_access?: boolean | undefined;
2606
+ best_license?: string | null | undefined;
2607
+ first_published_at?: string | null | undefined;
2608
+ latest_released_at?: string | null | undefined;
2609
+ }>;
2610
+ data: z.ZodOptional<z.ZodObject<{
2611
+ sections: z.ZodOptional<z.ZodUnknown>;
2612
+ blocks: z.ZodOptional<z.ZodUnknown>;
2613
+ _blocks_pagination: z.ZodOptional<z.ZodObject<{
2614
+ total: z.ZodNumber;
2615
+ offset: z.ZodNumber;
2616
+ limit: z.ZodNumber;
2617
+ has_more: z.ZodBoolean;
2618
+ }, "strip", z.ZodTypeAny, {
2619
+ total: number;
2620
+ offset: number;
2621
+ limit: number;
2622
+ has_more: boolean;
2623
+ }, {
2624
+ total: number;
2625
+ offset: number;
2626
+ limit: number;
2627
+ has_more: boolean;
2628
+ }>>;
2629
+ assets: z.ZodOptional<z.ZodUnknown>;
2630
+ citations: z.ZodOptional<z.ZodUnknown>;
2631
+ _citations_pagination: z.ZodOptional<z.ZodObject<{
2632
+ total: z.ZodNumber;
2633
+ offset: z.ZodNumber;
2634
+ limit: z.ZodNumber;
2635
+ has_more: z.ZodBoolean;
2636
+ }, "strip", z.ZodTypeAny, {
2637
+ total: number;
2638
+ offset: number;
2639
+ limit: number;
2640
+ has_more: boolean;
2641
+ }, {
2642
+ total: number;
2643
+ offset: number;
2644
+ limit: number;
2645
+ has_more: boolean;
2646
+ }>>;
2647
+ }, "strict", z.ZodTypeAny, {
2648
+ blocks?: unknown;
2649
+ sections?: unknown;
2650
+ citations?: unknown;
2651
+ assets?: unknown;
2652
+ _blocks_pagination?: {
2653
+ total: number;
2654
+ offset: number;
2655
+ limit: number;
2656
+ has_more: boolean;
2657
+ } | undefined;
2658
+ _citations_pagination?: {
2659
+ total: number;
2660
+ offset: number;
2661
+ limit: number;
2662
+ has_more: boolean;
2663
+ } | undefined;
2664
+ }, {
2665
+ blocks?: unknown;
2666
+ sections?: unknown;
2667
+ citations?: unknown;
2668
+ assets?: unknown;
2669
+ _blocks_pagination?: {
2670
+ total: number;
2671
+ offset: number;
2672
+ limit: number;
2673
+ has_more: boolean;
2674
+ } | undefined;
2675
+ _citations_pagination?: {
2676
+ total: number;
2677
+ offset: number;
2678
+ limit: number;
2679
+ has_more: boolean;
2680
+ } | undefined;
2681
+ }>>;
2682
+ download: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2683
+ mode: z.ZodLiteral<"presigned">;
2684
+ url: z.ZodString;
2685
+ expires_in: z.ZodNumber;
2686
+ }, "strict", z.ZodTypeAny, {
2687
+ url: string;
2688
+ mode: "presigned";
2689
+ expires_in: number;
2690
+ }, {
2691
+ url: string;
2692
+ mode: "presigned";
2693
+ expires_in: number;
2694
+ }>, z.ZodObject<{
2695
+ mode: z.ZodLiteral<"saved">;
2696
+ path: z.ZodString;
2697
+ size: z.ZodNumber;
2698
+ content_type: z.ZodString;
2699
+ }, "strict", z.ZodTypeAny, {
2700
+ path: string;
2701
+ mode: "saved";
2702
+ size: number;
2703
+ content_type: string;
2704
+ }, {
2705
+ path: string;
2706
+ mode: "saved";
2707
+ size: number;
2708
+ content_type: string;
2709
+ }>]>>;
2710
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2711
+ }, "strict", z.ZodTypeAny, {
2712
+ status: "success";
2713
+ work: {
2714
+ ids: {
2715
+ doi?: string | null | undefined;
2716
+ pmid?: string | null | undefined;
2717
+ pmcid?: string | null | undefined;
2718
+ arxiv_id?: string | null | undefined;
2719
+ biorxiv_id?: string | null | undefined;
2720
+ medrxiv_id?: string | null | undefined;
2721
+ openalex_id?: string | null | undefined;
2722
+ };
2723
+ title: string;
2724
+ public_id: string;
2725
+ created_at: string;
2726
+ updated_at: string;
2727
+ _links: {
2728
+ self: string;
2729
+ versions: string;
2730
+ };
2731
+ versions: {
2732
+ id: string;
2733
+ released_at: string;
2734
+ version_label: string;
2735
+ license?: string | null | undefined;
2736
+ doi?: string | null | undefined;
2737
+ ingested?: boolean | undefined;
2738
+ normalized?: boolean | undefined;
2739
+ open_access?: boolean | undefined;
2740
+ previous_version_id?: string | null | undefined;
2741
+ schema_version?: string | null | undefined;
2742
+ }[];
2743
+ abstract?: string | null | undefined;
2744
+ blocks?: unknown;
2745
+ sections?: unknown;
2746
+ citations?: unknown;
2747
+ assets?: unknown;
2748
+ landing_url?: string | null | undefined;
2749
+ is_open_access?: boolean | undefined;
2750
+ best_license?: string | null | undefined;
2751
+ first_published_at?: string | null | undefined;
2752
+ latest_released_at?: string | null | undefined;
2753
+ };
2754
+ index: number;
2755
+ data?: {
2756
+ blocks?: unknown;
2757
+ sections?: unknown;
2758
+ citations?: unknown;
2759
+ assets?: unknown;
2760
+ _blocks_pagination?: {
2761
+ total: number;
2762
+ offset: number;
2763
+ limit: number;
2764
+ has_more: boolean;
2765
+ } | undefined;
2766
+ _citations_pagination?: {
2767
+ total: number;
2768
+ offset: number;
2769
+ limit: number;
2770
+ has_more: boolean;
2771
+ } | undefined;
2772
+ } | undefined;
2773
+ download?: {
2774
+ url: string;
2775
+ mode: "presigned";
2776
+ expires_in: number;
2777
+ } | {
2778
+ path: string;
2779
+ mode: "saved";
2780
+ size: number;
2781
+ content_type: string;
2782
+ } | undefined;
2783
+ warnings?: string[] | undefined;
2784
+ }, {
2785
+ status: "success";
2786
+ work: {
2787
+ ids: {
2788
+ doi?: string | null | undefined;
2789
+ pmid?: string | null | undefined;
2790
+ pmcid?: string | null | undefined;
2791
+ arxiv_id?: string | null | undefined;
2792
+ biorxiv_id?: string | null | undefined;
2793
+ medrxiv_id?: string | null | undefined;
2794
+ openalex_id?: string | null | undefined;
2795
+ };
2796
+ title: string;
2797
+ public_id: string;
2798
+ created_at: string;
2799
+ updated_at: string;
2800
+ _links: {
2801
+ self: string;
2802
+ versions: string;
2803
+ };
2804
+ versions: {
2805
+ id: string;
2806
+ released_at: string;
2807
+ version_label: string;
2808
+ license?: string | null | undefined;
2809
+ doi?: string | null | undefined;
2810
+ ingested?: boolean | undefined;
2811
+ normalized?: boolean | undefined;
2812
+ open_access?: boolean | undefined;
2813
+ previous_version_id?: string | null | undefined;
2814
+ schema_version?: string | null | undefined;
2815
+ }[];
2816
+ abstract?: string | null | undefined;
2817
+ blocks?: unknown;
2818
+ sections?: unknown;
2819
+ citations?: unknown;
2820
+ assets?: unknown;
2821
+ landing_url?: string | null | undefined;
2822
+ is_open_access?: boolean | undefined;
2823
+ best_license?: string | null | undefined;
2824
+ first_published_at?: string | null | undefined;
2825
+ latest_released_at?: string | null | undefined;
2826
+ };
2827
+ index: number;
2828
+ data?: {
2829
+ blocks?: unknown;
2830
+ sections?: unknown;
2831
+ citations?: unknown;
2832
+ assets?: unknown;
2833
+ _blocks_pagination?: {
2834
+ total: number;
2835
+ offset: number;
2836
+ limit: number;
2837
+ has_more: boolean;
2838
+ } | undefined;
2839
+ _citations_pagination?: {
2840
+ total: number;
2841
+ offset: number;
2842
+ limit: number;
2843
+ has_more: boolean;
2844
+ } | undefined;
2845
+ } | undefined;
2846
+ download?: {
2847
+ url: string;
2848
+ mode: "presigned";
2849
+ expires_in: number;
2850
+ } | {
2851
+ path: string;
2852
+ mode: "saved";
2853
+ size: number;
2854
+ content_type: string;
2855
+ } | undefined;
2856
+ warnings?: string[] | undefined;
2857
+ }>, z.ZodObject<{
2858
+ index: z.ZodNumber;
2859
+ status: z.ZodLiteral<"error">;
2860
+ error: z.ZodObject<{
2861
+ code: z.ZodString;
2862
+ message: z.ZodString;
2863
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2864
+ }, "strict", z.ZodTypeAny, {
2865
+ code: string;
2866
+ message: string;
2867
+ details?: Record<string, unknown> | undefined;
2868
+ }, {
2869
+ code: string;
2870
+ message: string;
2871
+ details?: Record<string, unknown> | undefined;
2872
+ }>;
2873
+ }, "strict", z.ZodTypeAny, {
2874
+ error: {
2875
+ code: string;
2876
+ message: string;
2877
+ details?: Record<string, unknown> | undefined;
2878
+ };
2879
+ status: "error";
2880
+ index: number;
2881
+ }, {
2882
+ error: {
2883
+ code: string;
2884
+ message: string;
2885
+ details?: Record<string, unknown> | undefined;
2886
+ };
2887
+ status: "error";
2888
+ index: number;
2889
+ }>]>, "many">;
2890
+ }, "strict", z.ZodTypeAny, {
2891
+ status: "completed" | "failed" | "partial";
2892
+ results: ({
2893
+ status: "success";
2894
+ work: {
2895
+ ids: {
2896
+ doi?: string | null | undefined;
2897
+ pmid?: string | null | undefined;
2898
+ pmcid?: string | null | undefined;
2899
+ arxiv_id?: string | null | undefined;
2900
+ biorxiv_id?: string | null | undefined;
2901
+ medrxiv_id?: string | null | undefined;
2902
+ openalex_id?: string | null | undefined;
2903
+ };
2904
+ title: string;
2905
+ public_id: string;
2906
+ created_at: string;
2907
+ updated_at: string;
2908
+ _links: {
2909
+ self: string;
2910
+ versions: string;
2911
+ };
2912
+ versions: {
2913
+ id: string;
2914
+ released_at: string;
2915
+ version_label: string;
2916
+ license?: string | null | undefined;
2917
+ doi?: string | null | undefined;
2918
+ ingested?: boolean | undefined;
2919
+ normalized?: boolean | undefined;
2920
+ open_access?: boolean | undefined;
2921
+ previous_version_id?: string | null | undefined;
2922
+ schema_version?: string | null | undefined;
2923
+ }[];
2924
+ abstract?: string | null | undefined;
2925
+ blocks?: unknown;
2926
+ sections?: unknown;
2927
+ citations?: unknown;
2928
+ assets?: unknown;
2929
+ landing_url?: string | null | undefined;
2930
+ is_open_access?: boolean | undefined;
2931
+ best_license?: string | null | undefined;
2932
+ first_published_at?: string | null | undefined;
2933
+ latest_released_at?: string | null | undefined;
2934
+ };
2935
+ index: number;
2936
+ data?: {
2937
+ blocks?: unknown;
2938
+ sections?: unknown;
2939
+ citations?: unknown;
2940
+ assets?: unknown;
2941
+ _blocks_pagination?: {
2942
+ total: number;
2943
+ offset: number;
2944
+ limit: number;
2945
+ has_more: boolean;
2946
+ } | undefined;
2947
+ _citations_pagination?: {
2948
+ total: number;
2949
+ offset: number;
2950
+ limit: number;
2951
+ has_more: boolean;
2952
+ } | undefined;
2953
+ } | undefined;
2954
+ download?: {
2955
+ url: string;
2956
+ mode: "presigned";
2957
+ expires_in: number;
2958
+ } | {
2959
+ path: string;
2960
+ mode: "saved";
2961
+ size: number;
2962
+ content_type: string;
2963
+ } | undefined;
2964
+ warnings?: string[] | undefined;
2965
+ } | {
2966
+ error: {
2967
+ code: string;
2968
+ message: string;
2969
+ details?: Record<string, unknown> | undefined;
2970
+ };
2971
+ status: "error";
2972
+ index: number;
2973
+ })[];
2974
+ }, {
2975
+ status: "completed" | "failed" | "partial";
2976
+ results: ({
2977
+ status: "success";
2978
+ work: {
2979
+ ids: {
2980
+ doi?: string | null | undefined;
2981
+ pmid?: string | null | undefined;
2982
+ pmcid?: string | null | undefined;
2983
+ arxiv_id?: string | null | undefined;
2984
+ biorxiv_id?: string | null | undefined;
2985
+ medrxiv_id?: string | null | undefined;
2986
+ openalex_id?: string | null | undefined;
2987
+ };
2988
+ title: string;
2989
+ public_id: string;
2990
+ created_at: string;
2991
+ updated_at: string;
2992
+ _links: {
2993
+ self: string;
2994
+ versions: string;
2995
+ };
2996
+ versions: {
2997
+ id: string;
2998
+ released_at: string;
2999
+ version_label: string;
3000
+ license?: string | null | undefined;
3001
+ doi?: string | null | undefined;
3002
+ ingested?: boolean | undefined;
3003
+ normalized?: boolean | undefined;
3004
+ open_access?: boolean | undefined;
3005
+ previous_version_id?: string | null | undefined;
3006
+ schema_version?: string | null | undefined;
3007
+ }[];
3008
+ abstract?: string | null | undefined;
3009
+ blocks?: unknown;
3010
+ sections?: unknown;
3011
+ citations?: unknown;
3012
+ assets?: unknown;
3013
+ landing_url?: string | null | undefined;
3014
+ is_open_access?: boolean | undefined;
3015
+ best_license?: string | null | undefined;
3016
+ first_published_at?: string | null | undefined;
3017
+ latest_released_at?: string | null | undefined;
3018
+ };
3019
+ index: number;
3020
+ data?: {
3021
+ blocks?: unknown;
3022
+ sections?: unknown;
3023
+ citations?: unknown;
3024
+ assets?: unknown;
3025
+ _blocks_pagination?: {
3026
+ total: number;
3027
+ offset: number;
3028
+ limit: number;
3029
+ has_more: boolean;
3030
+ } | undefined;
3031
+ _citations_pagination?: {
3032
+ total: number;
3033
+ offset: number;
3034
+ limit: number;
3035
+ has_more: boolean;
3036
+ } | undefined;
3037
+ } | undefined;
3038
+ download?: {
3039
+ url: string;
3040
+ mode: "presigned";
3041
+ expires_in: number;
3042
+ } | {
3043
+ path: string;
3044
+ mode: "saved";
3045
+ size: number;
3046
+ content_type: string;
3047
+ } | undefined;
3048
+ warnings?: string[] | undefined;
3049
+ } | {
3050
+ error: {
3051
+ code: string;
3052
+ message: string;
3053
+ details?: Record<string, unknown> | undefined;
3054
+ };
3055
+ status: "error";
3056
+ index: number;
3057
+ })[];
3058
+ }>, z.ZodObject<{
3059
+ status: z.ZodLiteral<"processing">;
3060
+ idempotency_key: z.ZodString;
3061
+ job_id: z.ZodString;
3062
+ created_at: z.ZodString;
3063
+ }, "strict", z.ZodTypeAny, {
3064
+ status: "processing";
3065
+ created_at: string;
3066
+ idempotency_key: string;
3067
+ job_id: string;
3068
+ }, {
3069
+ status: "processing";
3070
+ created_at: string;
3071
+ idempotency_key: string;
3072
+ job_id: string;
3073
+ }>]>;
3074
+ export type BatchWorkProcessingEnvelope = z.infer<typeof BatchWorkProcessingEnvelopeSchema>;
3075
+ export declare const WorksListResponseSchema: z.ZodObject<{
3076
+ items: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3077
+ public_id: z.ZodString;
3078
+ title: z.ZodString;
3079
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3080
+ ids: z.ZodObject<{
3081
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3082
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3083
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3084
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3085
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3086
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3087
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3088
+ }, "strip", z.ZodTypeAny, {
3089
+ doi?: string | null | undefined;
3090
+ pmid?: string | null | undefined;
3091
+ pmcid?: string | null | undefined;
3092
+ arxiv_id?: string | null | undefined;
3093
+ biorxiv_id?: string | null | undefined;
3094
+ medrxiv_id?: string | null | undefined;
3095
+ openalex_id?: string | null | undefined;
3096
+ }, {
3097
+ doi?: string | null | undefined;
3098
+ pmid?: string | null | undefined;
3099
+ pmcid?: string | null | undefined;
3100
+ arxiv_id?: string | null | undefined;
3101
+ biorxiv_id?: string | null | undefined;
3102
+ medrxiv_id?: string | null | undefined;
3103
+ openalex_id?: string | null | undefined;
3104
+ }>;
3105
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3106
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
3107
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3108
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3109
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3110
+ created_at: z.ZodString;
3111
+ updated_at: z.ZodString;
3112
+ versions: z.ZodArray<z.ZodObject<{
3113
+ id: z.ZodString;
3114
+ version_label: z.ZodString;
3115
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3116
+ released_at: z.ZodString;
3117
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3118
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3119
+ open_access: z.ZodOptional<z.ZodBoolean>;
3120
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3121
+ ingested: z.ZodOptional<z.ZodBoolean>;
3122
+ normalized: z.ZodOptional<z.ZodBoolean>;
3123
+ }, "strip", z.ZodTypeAny, {
3124
+ id: string;
3125
+ released_at: string;
3126
+ version_label: string;
3127
+ license?: string | null | undefined;
3128
+ doi?: string | null | undefined;
3129
+ ingested?: boolean | undefined;
3130
+ normalized?: boolean | undefined;
3131
+ open_access?: boolean | undefined;
3132
+ previous_version_id?: string | null | undefined;
3133
+ schema_version?: string | null | undefined;
3134
+ }, {
3135
+ id: string;
3136
+ released_at: string;
3137
+ version_label: string;
3138
+ license?: string | null | undefined;
3139
+ doi?: string | null | undefined;
3140
+ ingested?: boolean | undefined;
3141
+ normalized?: boolean | undefined;
3142
+ open_access?: boolean | undefined;
3143
+ previous_version_id?: string | null | undefined;
3144
+ schema_version?: string | null | undefined;
3145
+ }>, "many">;
3146
+ _links: z.ZodObject<{
3147
+ self: z.ZodString;
3148
+ versions: z.ZodString;
3149
+ }, "strip", z.ZodTypeAny, {
3150
+ self: string;
3151
+ versions: string;
3152
+ }, {
3153
+ self: string;
3154
+ versions: string;
3155
+ }>;
3156
+ sections: z.ZodOptional<z.ZodUnknown>;
3157
+ blocks: z.ZodOptional<z.ZodUnknown>;
3158
+ assets: z.ZodOptional<z.ZodUnknown>;
3159
+ citations: z.ZodOptional<z.ZodUnknown>;
3160
+ }, "strip", z.ZodTypeAny, {
3161
+ ids: {
3162
+ doi?: string | null | undefined;
3163
+ pmid?: string | null | undefined;
3164
+ pmcid?: string | null | undefined;
3165
+ arxiv_id?: string | null | undefined;
3166
+ biorxiv_id?: string | null | undefined;
3167
+ medrxiv_id?: string | null | undefined;
3168
+ openalex_id?: string | null | undefined;
3169
+ };
3170
+ title: string;
3171
+ public_id: string;
3172
+ created_at: string;
3173
+ updated_at: string;
3174
+ _links: {
3175
+ self: string;
3176
+ versions: string;
3177
+ };
3178
+ versions: {
3179
+ id: string;
3180
+ released_at: string;
3181
+ version_label: string;
3182
+ license?: string | null | undefined;
3183
+ doi?: string | null | undefined;
3184
+ ingested?: boolean | undefined;
3185
+ normalized?: boolean | undefined;
3186
+ open_access?: boolean | undefined;
3187
+ previous_version_id?: string | null | undefined;
3188
+ schema_version?: string | null | undefined;
3189
+ }[];
3190
+ abstract?: string | null | undefined;
3191
+ blocks?: unknown;
3192
+ sections?: unknown;
3193
+ citations?: unknown;
3194
+ assets?: unknown;
3195
+ landing_url?: string | null | undefined;
3196
+ is_open_access?: boolean | undefined;
3197
+ best_license?: string | null | undefined;
3198
+ first_published_at?: string | null | undefined;
3199
+ latest_released_at?: string | null | undefined;
3200
+ }, {
3201
+ ids: {
3202
+ doi?: string | null | undefined;
3203
+ pmid?: string | null | undefined;
3204
+ pmcid?: string | null | undefined;
3205
+ arxiv_id?: string | null | undefined;
3206
+ biorxiv_id?: string | null | undefined;
3207
+ medrxiv_id?: string | null | undefined;
3208
+ openalex_id?: string | null | undefined;
3209
+ };
3210
+ title: string;
3211
+ public_id: string;
3212
+ created_at: string;
3213
+ updated_at: string;
3214
+ _links: {
3215
+ self: string;
3216
+ versions: string;
3217
+ };
3218
+ versions: {
3219
+ id: string;
3220
+ released_at: string;
3221
+ version_label: string;
3222
+ license?: string | null | undefined;
3223
+ doi?: string | null | undefined;
3224
+ ingested?: boolean | undefined;
3225
+ normalized?: boolean | undefined;
3226
+ open_access?: boolean | undefined;
3227
+ previous_version_id?: string | null | undefined;
3228
+ schema_version?: string | null | undefined;
3229
+ }[];
3230
+ abstract?: string | null | undefined;
3231
+ blocks?: unknown;
3232
+ sections?: unknown;
3233
+ citations?: unknown;
3234
+ assets?: unknown;
3235
+ landing_url?: string | null | undefined;
3236
+ is_open_access?: boolean | undefined;
3237
+ best_license?: string | null | undefined;
3238
+ first_published_at?: string | null | undefined;
3239
+ latest_released_at?: string | null | undefined;
3240
+ }>, z.ZodObject<{
3241
+ public_id: z.ZodString;
3242
+ title: z.ZodString;
3243
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3244
+ ids: z.ZodObject<{
3245
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3246
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3247
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3248
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3249
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3250
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3251
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3252
+ }, "strip", z.ZodTypeAny, {
3253
+ doi?: string | null | undefined;
3254
+ pmid?: string | null | undefined;
3255
+ pmcid?: string | null | undefined;
3256
+ arxiv_id?: string | null | undefined;
3257
+ biorxiv_id?: string | null | undefined;
3258
+ medrxiv_id?: string | null | undefined;
3259
+ openalex_id?: string | null | undefined;
3260
+ }, {
3261
+ doi?: string | null | undefined;
3262
+ pmid?: string | null | undefined;
3263
+ pmcid?: string | null | undefined;
3264
+ arxiv_id?: string | null | undefined;
3265
+ biorxiv_id?: string | null | undefined;
3266
+ medrxiv_id?: string | null | undefined;
3267
+ openalex_id?: string | null | undefined;
3268
+ }>;
3269
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3270
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
3271
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3272
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3273
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3274
+ created_at: z.ZodString;
3275
+ updated_at: z.ZodString;
3276
+ versions: z.ZodArray<z.ZodObject<{
3277
+ id: z.ZodString;
3278
+ version_label: z.ZodString;
3279
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3280
+ released_at: z.ZodString;
3281
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3282
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3283
+ open_access: z.ZodOptional<z.ZodBoolean>;
3284
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3285
+ ingested: z.ZodOptional<z.ZodBoolean>;
3286
+ normalized: z.ZodOptional<z.ZodBoolean>;
3287
+ }, "strip", z.ZodTypeAny, {
3288
+ id: string;
3289
+ released_at: string;
3290
+ version_label: string;
3291
+ license?: string | null | undefined;
3292
+ doi?: string | null | undefined;
3293
+ ingested?: boolean | undefined;
3294
+ normalized?: boolean | undefined;
3295
+ open_access?: boolean | undefined;
3296
+ previous_version_id?: string | null | undefined;
3297
+ schema_version?: string | null | undefined;
3298
+ }, {
3299
+ id: string;
3300
+ released_at: string;
3301
+ version_label: string;
3302
+ license?: string | null | undefined;
3303
+ doi?: string | null | undefined;
3304
+ ingested?: boolean | undefined;
3305
+ normalized?: boolean | undefined;
3306
+ open_access?: boolean | undefined;
3307
+ previous_version_id?: string | null | undefined;
3308
+ schema_version?: string | null | undefined;
3309
+ }>, "many">;
3310
+ _links: z.ZodObject<{
3311
+ self: z.ZodString;
3312
+ versions: z.ZodString;
3313
+ }, "strip", z.ZodTypeAny, {
3314
+ self: string;
3315
+ versions: string;
3316
+ }, {
3317
+ self: string;
3318
+ versions: string;
3319
+ }>;
3320
+ } & {
3321
+ sections: z.ZodOptional<z.ZodUnknown>;
3322
+ blocks: z.ZodOptional<z.ZodUnknown>;
3323
+ _blocks_pagination: z.ZodOptional<z.ZodObject<{
3324
+ total: z.ZodNumber;
3325
+ offset: z.ZodNumber;
3326
+ limit: z.ZodNumber;
3327
+ has_more: z.ZodBoolean;
3328
+ }, "strip", z.ZodTypeAny, {
3329
+ total: number;
3330
+ offset: number;
3331
+ limit: number;
3332
+ has_more: boolean;
3333
+ }, {
3334
+ total: number;
3335
+ offset: number;
3336
+ limit: number;
3337
+ has_more: boolean;
3338
+ }>>;
3339
+ assets: z.ZodOptional<z.ZodUnknown>;
3340
+ citations: z.ZodOptional<z.ZodUnknown>;
3341
+ _citations_pagination: z.ZodOptional<z.ZodObject<{
3342
+ total: z.ZodNumber;
3343
+ offset: z.ZodNumber;
3344
+ limit: z.ZodNumber;
3345
+ has_more: z.ZodBoolean;
3346
+ }, "strip", z.ZodTypeAny, {
3347
+ total: number;
3348
+ offset: number;
3349
+ limit: number;
3350
+ has_more: boolean;
3351
+ }, {
3352
+ total: number;
3353
+ offset: number;
3354
+ limit: number;
3355
+ has_more: boolean;
3356
+ }>>;
3357
+ }, "strip", z.ZodTypeAny, {
3358
+ ids: {
3359
+ doi?: string | null | undefined;
3360
+ pmid?: string | null | undefined;
3361
+ pmcid?: string | null | undefined;
3362
+ arxiv_id?: string | null | undefined;
3363
+ biorxiv_id?: string | null | undefined;
3364
+ medrxiv_id?: string | null | undefined;
3365
+ openalex_id?: string | null | undefined;
3366
+ };
3367
+ title: string;
3368
+ public_id: string;
3369
+ created_at: string;
3370
+ updated_at: string;
3371
+ _links: {
3372
+ self: string;
3373
+ versions: string;
3374
+ };
3375
+ versions: {
3376
+ id: string;
3377
+ released_at: string;
3378
+ version_label: string;
3379
+ license?: string | null | undefined;
3380
+ doi?: string | null | undefined;
3381
+ ingested?: boolean | undefined;
3382
+ normalized?: boolean | undefined;
3383
+ open_access?: boolean | undefined;
3384
+ previous_version_id?: string | null | undefined;
3385
+ schema_version?: string | null | undefined;
3386
+ }[];
3387
+ abstract?: string | null | undefined;
3388
+ blocks?: unknown;
3389
+ sections?: unknown;
3390
+ citations?: unknown;
3391
+ assets?: unknown;
3392
+ _blocks_pagination?: {
3393
+ total: number;
3394
+ offset: number;
3395
+ limit: number;
3396
+ has_more: boolean;
3397
+ } | undefined;
3398
+ _citations_pagination?: {
3399
+ total: number;
3400
+ offset: number;
3401
+ limit: number;
3402
+ has_more: boolean;
3403
+ } | undefined;
3404
+ landing_url?: string | null | undefined;
3405
+ is_open_access?: boolean | undefined;
3406
+ best_license?: string | null | undefined;
3407
+ first_published_at?: string | null | undefined;
3408
+ latest_released_at?: string | null | undefined;
3409
+ }, {
3410
+ ids: {
3411
+ doi?: string | null | undefined;
3412
+ pmid?: string | null | undefined;
3413
+ pmcid?: string | null | undefined;
3414
+ arxiv_id?: string | null | undefined;
3415
+ biorxiv_id?: string | null | undefined;
3416
+ medrxiv_id?: string | null | undefined;
3417
+ openalex_id?: string | null | undefined;
3418
+ };
3419
+ title: string;
3420
+ public_id: string;
3421
+ created_at: string;
3422
+ updated_at: string;
3423
+ _links: {
3424
+ self: string;
3425
+ versions: string;
3426
+ };
3427
+ versions: {
3428
+ id: string;
3429
+ released_at: string;
3430
+ version_label: string;
3431
+ license?: string | null | undefined;
3432
+ doi?: string | null | undefined;
3433
+ ingested?: boolean | undefined;
3434
+ normalized?: boolean | undefined;
3435
+ open_access?: boolean | undefined;
3436
+ previous_version_id?: string | null | undefined;
3437
+ schema_version?: string | null | undefined;
3438
+ }[];
3439
+ abstract?: string | null | undefined;
3440
+ blocks?: unknown;
3441
+ sections?: unknown;
3442
+ citations?: unknown;
3443
+ assets?: unknown;
3444
+ _blocks_pagination?: {
3445
+ total: number;
3446
+ offset: number;
3447
+ limit: number;
3448
+ has_more: boolean;
3449
+ } | undefined;
3450
+ _citations_pagination?: {
3451
+ total: number;
3452
+ offset: number;
3453
+ limit: number;
3454
+ has_more: boolean;
3455
+ } | undefined;
3456
+ landing_url?: string | null | undefined;
3457
+ is_open_access?: boolean | undefined;
3458
+ best_license?: string | null | undefined;
3459
+ first_published_at?: string | null | undefined;
3460
+ latest_released_at?: string | null | undefined;
3461
+ }>]>, "many">;
3462
+ next_cursor: z.ZodNullable<z.ZodString>;
3463
+ }, "strip", z.ZodTypeAny, {
3464
+ next_cursor: string | null;
3465
+ items: ({
3466
+ ids: {
3467
+ doi?: string | null | undefined;
3468
+ pmid?: string | null | undefined;
3469
+ pmcid?: string | null | undefined;
3470
+ arxiv_id?: string | null | undefined;
3471
+ biorxiv_id?: string | null | undefined;
3472
+ medrxiv_id?: string | null | undefined;
3473
+ openalex_id?: string | null | undefined;
3474
+ };
3475
+ title: string;
3476
+ public_id: string;
3477
+ created_at: string;
3478
+ updated_at: string;
3479
+ _links: {
3480
+ self: string;
3481
+ versions: string;
3482
+ };
3483
+ versions: {
3484
+ id: string;
3485
+ released_at: string;
3486
+ version_label: string;
3487
+ license?: string | null | undefined;
3488
+ doi?: string | null | undefined;
3489
+ ingested?: boolean | undefined;
3490
+ normalized?: boolean | undefined;
3491
+ open_access?: boolean | undefined;
3492
+ previous_version_id?: string | null | undefined;
3493
+ schema_version?: string | null | undefined;
3494
+ }[];
3495
+ abstract?: string | null | undefined;
3496
+ blocks?: unknown;
3497
+ sections?: unknown;
3498
+ citations?: unknown;
3499
+ assets?: unknown;
3500
+ landing_url?: string | null | undefined;
3501
+ is_open_access?: boolean | undefined;
3502
+ best_license?: string | null | undefined;
3503
+ first_published_at?: string | null | undefined;
3504
+ latest_released_at?: string | null | undefined;
3505
+ } | {
3506
+ ids: {
3507
+ doi?: string | null | undefined;
3508
+ pmid?: string | null | undefined;
3509
+ pmcid?: string | null | undefined;
3510
+ arxiv_id?: string | null | undefined;
3511
+ biorxiv_id?: string | null | undefined;
3512
+ medrxiv_id?: string | null | undefined;
3513
+ openalex_id?: string | null | undefined;
3514
+ };
3515
+ title: string;
3516
+ public_id: string;
3517
+ created_at: string;
3518
+ updated_at: string;
3519
+ _links: {
3520
+ self: string;
3521
+ versions: string;
3522
+ };
3523
+ versions: {
3524
+ id: string;
3525
+ released_at: string;
3526
+ version_label: string;
3527
+ license?: string | null | undefined;
3528
+ doi?: string | null | undefined;
3529
+ ingested?: boolean | undefined;
3530
+ normalized?: boolean | undefined;
3531
+ open_access?: boolean | undefined;
3532
+ previous_version_id?: string | null | undefined;
3533
+ schema_version?: string | null | undefined;
3534
+ }[];
3535
+ abstract?: string | null | undefined;
3536
+ blocks?: unknown;
3537
+ sections?: unknown;
3538
+ citations?: unknown;
3539
+ assets?: unknown;
3540
+ _blocks_pagination?: {
3541
+ total: number;
3542
+ offset: number;
3543
+ limit: number;
3544
+ has_more: boolean;
3545
+ } | undefined;
3546
+ _citations_pagination?: {
3547
+ total: number;
3548
+ offset: number;
3549
+ limit: number;
3550
+ has_more: boolean;
3551
+ } | undefined;
3552
+ landing_url?: string | null | undefined;
3553
+ is_open_access?: boolean | undefined;
3554
+ best_license?: string | null | undefined;
3555
+ first_published_at?: string | null | undefined;
3556
+ latest_released_at?: string | null | undefined;
3557
+ })[];
3558
+ }, {
3559
+ next_cursor: string | null;
3560
+ items: ({
3561
+ ids: {
3562
+ doi?: string | null | undefined;
3563
+ pmid?: string | null | undefined;
3564
+ pmcid?: string | null | undefined;
3565
+ arxiv_id?: string | null | undefined;
3566
+ biorxiv_id?: string | null | undefined;
3567
+ medrxiv_id?: string | null | undefined;
3568
+ openalex_id?: string | null | undefined;
3569
+ };
3570
+ title: string;
3571
+ public_id: string;
3572
+ created_at: string;
3573
+ updated_at: string;
3574
+ _links: {
3575
+ self: string;
3576
+ versions: string;
3577
+ };
3578
+ versions: {
3579
+ id: string;
3580
+ released_at: string;
3581
+ version_label: string;
3582
+ license?: string | null | undefined;
3583
+ doi?: string | null | undefined;
3584
+ ingested?: boolean | undefined;
3585
+ normalized?: boolean | undefined;
3586
+ open_access?: boolean | undefined;
3587
+ previous_version_id?: string | null | undefined;
3588
+ schema_version?: string | null | undefined;
3589
+ }[];
3590
+ abstract?: string | null | undefined;
3591
+ blocks?: unknown;
3592
+ sections?: unknown;
3593
+ citations?: unknown;
3594
+ assets?: unknown;
3595
+ landing_url?: string | null | undefined;
3596
+ is_open_access?: boolean | undefined;
3597
+ best_license?: string | null | undefined;
3598
+ first_published_at?: string | null | undefined;
3599
+ latest_released_at?: string | null | undefined;
3600
+ } | {
3601
+ ids: {
3602
+ doi?: string | null | undefined;
3603
+ pmid?: string | null | undefined;
3604
+ pmcid?: string | null | undefined;
3605
+ arxiv_id?: string | null | undefined;
3606
+ biorxiv_id?: string | null | undefined;
3607
+ medrxiv_id?: string | null | undefined;
3608
+ openalex_id?: string | null | undefined;
3609
+ };
3610
+ title: string;
3611
+ public_id: string;
3612
+ created_at: string;
3613
+ updated_at: string;
3614
+ _links: {
3615
+ self: string;
3616
+ versions: string;
3617
+ };
3618
+ versions: {
3619
+ id: string;
3620
+ released_at: string;
3621
+ version_label: string;
3622
+ license?: string | null | undefined;
3623
+ doi?: string | null | undefined;
3624
+ ingested?: boolean | undefined;
3625
+ normalized?: boolean | undefined;
3626
+ open_access?: boolean | undefined;
3627
+ previous_version_id?: string | null | undefined;
3628
+ schema_version?: string | null | undefined;
3629
+ }[];
3630
+ abstract?: string | null | undefined;
3631
+ blocks?: unknown;
3632
+ sections?: unknown;
3633
+ citations?: unknown;
3634
+ assets?: unknown;
3635
+ _blocks_pagination?: {
3636
+ total: number;
3637
+ offset: number;
3638
+ limit: number;
3639
+ has_more: boolean;
3640
+ } | undefined;
3641
+ _citations_pagination?: {
3642
+ total: number;
3643
+ offset: number;
3644
+ limit: number;
3645
+ has_more: boolean;
3646
+ } | undefined;
3647
+ landing_url?: string | null | undefined;
3648
+ is_open_access?: boolean | undefined;
3649
+ best_license?: string | null | undefined;
3650
+ first_published_at?: string | null | undefined;
3651
+ latest_released_at?: string | null | undefined;
3652
+ })[];
3653
+ }>;
3654
+ export declare const WorkShortViewSchema: z.ZodObject<{
3655
+ public_id: z.ZodString;
3656
+ title: z.ZodString;
3657
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3658
+ ids: z.ZodObject<{
3659
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3660
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3661
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3662
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3663
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3664
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3665
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3666
+ }, "strip", z.ZodTypeAny, {
3667
+ doi?: string | null | undefined;
3668
+ pmid?: string | null | undefined;
3669
+ pmcid?: string | null | undefined;
3670
+ arxiv_id?: string | null | undefined;
3671
+ biorxiv_id?: string | null | undefined;
3672
+ medrxiv_id?: string | null | undefined;
3673
+ openalex_id?: string | null | undefined;
3674
+ }, {
3675
+ doi?: string | null | undefined;
3676
+ pmid?: string | null | undefined;
3677
+ pmcid?: string | null | undefined;
3678
+ arxiv_id?: string | null | undefined;
3679
+ biorxiv_id?: string | null | undefined;
3680
+ medrxiv_id?: string | null | undefined;
3681
+ openalex_id?: string | null | undefined;
3682
+ }>;
3683
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3684
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
3685
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3686
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3687
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3688
+ created_at: z.ZodString;
3689
+ updated_at: z.ZodString;
3690
+ versions: z.ZodArray<z.ZodObject<{
3691
+ id: z.ZodString;
3692
+ version_label: z.ZodString;
3693
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3694
+ released_at: z.ZodString;
3695
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3696
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3697
+ open_access: z.ZodOptional<z.ZodBoolean>;
3698
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3699
+ ingested: z.ZodOptional<z.ZodBoolean>;
3700
+ normalized: z.ZodOptional<z.ZodBoolean>;
3701
+ }, "strip", z.ZodTypeAny, {
3702
+ id: string;
3703
+ released_at: string;
3704
+ version_label: string;
3705
+ license?: string | null | undefined;
3706
+ doi?: string | null | undefined;
3707
+ ingested?: boolean | undefined;
3708
+ normalized?: boolean | undefined;
3709
+ open_access?: boolean | undefined;
3710
+ previous_version_id?: string | null | undefined;
3711
+ schema_version?: string | null | undefined;
3712
+ }, {
3713
+ id: string;
3714
+ released_at: string;
3715
+ version_label: string;
3716
+ license?: string | null | undefined;
3717
+ doi?: string | null | undefined;
3718
+ ingested?: boolean | undefined;
3719
+ normalized?: boolean | undefined;
3720
+ open_access?: boolean | undefined;
3721
+ previous_version_id?: string | null | undefined;
3722
+ schema_version?: string | null | undefined;
3723
+ }>, "many">;
3724
+ _links: z.ZodObject<{
3725
+ self: z.ZodString;
3726
+ versions: z.ZodString;
3727
+ }, "strip", z.ZodTypeAny, {
3728
+ self: string;
3729
+ versions: string;
3730
+ }, {
3731
+ self: string;
3732
+ versions: string;
3733
+ }>;
3734
+ sections: z.ZodOptional<z.ZodUnknown>;
3735
+ blocks: z.ZodOptional<z.ZodUnknown>;
3736
+ assets: z.ZodOptional<z.ZodUnknown>;
3737
+ citations: z.ZodOptional<z.ZodUnknown>;
3738
+ }, "strip", z.ZodTypeAny, {
3739
+ ids: {
3740
+ doi?: string | null | undefined;
3741
+ pmid?: string | null | undefined;
3742
+ pmcid?: string | null | undefined;
3743
+ arxiv_id?: string | null | undefined;
3744
+ biorxiv_id?: string | null | undefined;
3745
+ medrxiv_id?: string | null | undefined;
3746
+ openalex_id?: string | null | undefined;
3747
+ };
3748
+ title: string;
3749
+ public_id: string;
3750
+ created_at: string;
3751
+ updated_at: string;
3752
+ _links: {
3753
+ self: string;
3754
+ versions: string;
3755
+ };
3756
+ versions: {
3757
+ id: string;
3758
+ released_at: string;
3759
+ version_label: string;
3760
+ license?: string | null | undefined;
3761
+ doi?: string | null | undefined;
3762
+ ingested?: boolean | undefined;
3763
+ normalized?: boolean | undefined;
3764
+ open_access?: boolean | undefined;
3765
+ previous_version_id?: string | null | undefined;
3766
+ schema_version?: string | null | undefined;
3767
+ }[];
3768
+ abstract?: string | null | undefined;
3769
+ blocks?: unknown;
3770
+ sections?: unknown;
3771
+ citations?: unknown;
3772
+ assets?: unknown;
3773
+ landing_url?: string | null | undefined;
3774
+ is_open_access?: boolean | undefined;
3775
+ best_license?: string | null | undefined;
3776
+ first_published_at?: string | null | undefined;
3777
+ latest_released_at?: string | null | undefined;
3778
+ }, {
3779
+ ids: {
3780
+ doi?: string | null | undefined;
3781
+ pmid?: string | null | undefined;
3782
+ pmcid?: string | null | undefined;
3783
+ arxiv_id?: string | null | undefined;
3784
+ biorxiv_id?: string | null | undefined;
3785
+ medrxiv_id?: string | null | undefined;
3786
+ openalex_id?: string | null | undefined;
3787
+ };
3788
+ title: string;
3789
+ public_id: string;
3790
+ created_at: string;
3791
+ updated_at: string;
3792
+ _links: {
3793
+ self: string;
3794
+ versions: string;
3795
+ };
3796
+ versions: {
3797
+ id: string;
3798
+ released_at: string;
3799
+ version_label: string;
3800
+ license?: string | null | undefined;
3801
+ doi?: string | null | undefined;
3802
+ ingested?: boolean | undefined;
3803
+ normalized?: boolean | undefined;
3804
+ open_access?: boolean | undefined;
3805
+ previous_version_id?: string | null | undefined;
3806
+ schema_version?: string | null | undefined;
3807
+ }[];
3808
+ abstract?: string | null | undefined;
3809
+ blocks?: unknown;
3810
+ sections?: unknown;
3811
+ citations?: unknown;
3812
+ assets?: unknown;
3813
+ landing_url?: string | null | undefined;
3814
+ is_open_access?: boolean | undefined;
3815
+ best_license?: string | null | undefined;
3816
+ first_published_at?: string | null | undefined;
3817
+ latest_released_at?: string | null | undefined;
3818
+ }>;
3819
+ export declare const WorkFullViewSchema: z.ZodObject<{
3820
+ public_id: z.ZodString;
3821
+ title: z.ZodString;
3822
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3823
+ ids: z.ZodObject<{
3824
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3825
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3826
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3827
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3828
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3829
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3830
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3831
+ }, "strip", z.ZodTypeAny, {
3832
+ doi?: string | null | undefined;
3833
+ pmid?: string | null | undefined;
3834
+ pmcid?: string | null | undefined;
3835
+ arxiv_id?: string | null | undefined;
3836
+ biorxiv_id?: string | null | undefined;
3837
+ medrxiv_id?: string | null | undefined;
3838
+ openalex_id?: string | null | undefined;
3839
+ }, {
3840
+ doi?: string | null | undefined;
3841
+ pmid?: string | null | undefined;
3842
+ pmcid?: string | null | undefined;
3843
+ arxiv_id?: string | null | undefined;
3844
+ biorxiv_id?: string | null | undefined;
3845
+ medrxiv_id?: string | null | undefined;
3846
+ openalex_id?: string | null | undefined;
3847
+ }>;
3848
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3849
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
3850
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3851
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3852
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3853
+ created_at: z.ZodString;
3854
+ updated_at: z.ZodString;
3855
+ versions: z.ZodArray<z.ZodObject<{
3856
+ id: z.ZodString;
3857
+ version_label: z.ZodString;
3858
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3859
+ released_at: z.ZodString;
3860
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3861
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3862
+ open_access: z.ZodOptional<z.ZodBoolean>;
3863
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3864
+ ingested: z.ZodOptional<z.ZodBoolean>;
3865
+ normalized: z.ZodOptional<z.ZodBoolean>;
3866
+ }, "strip", z.ZodTypeAny, {
3867
+ id: string;
3868
+ released_at: string;
3869
+ version_label: string;
3870
+ license?: string | null | undefined;
3871
+ doi?: string | null | undefined;
3872
+ ingested?: boolean | undefined;
3873
+ normalized?: boolean | undefined;
3874
+ open_access?: boolean | undefined;
3875
+ previous_version_id?: string | null | undefined;
3876
+ schema_version?: string | null | undefined;
3877
+ }, {
3878
+ id: string;
3879
+ released_at: string;
3880
+ version_label: string;
3881
+ license?: string | null | undefined;
3882
+ doi?: string | null | undefined;
3883
+ ingested?: boolean | undefined;
3884
+ normalized?: boolean | undefined;
3885
+ open_access?: boolean | undefined;
3886
+ previous_version_id?: string | null | undefined;
3887
+ schema_version?: string | null | undefined;
3888
+ }>, "many">;
3889
+ _links: z.ZodObject<{
3890
+ self: z.ZodString;
3891
+ versions: z.ZodString;
3892
+ }, "strip", z.ZodTypeAny, {
3893
+ self: string;
3894
+ versions: string;
3895
+ }, {
3896
+ self: string;
3897
+ versions: string;
3898
+ }>;
3899
+ } & {
3900
+ sections: z.ZodOptional<z.ZodUnknown>;
3901
+ blocks: z.ZodOptional<z.ZodUnknown>;
3902
+ _blocks_pagination: z.ZodOptional<z.ZodObject<{
3903
+ total: z.ZodNumber;
3904
+ offset: z.ZodNumber;
3905
+ limit: z.ZodNumber;
3906
+ has_more: z.ZodBoolean;
3907
+ }, "strip", z.ZodTypeAny, {
3908
+ total: number;
3909
+ offset: number;
3910
+ limit: number;
3911
+ has_more: boolean;
3912
+ }, {
3913
+ total: number;
3914
+ offset: number;
3915
+ limit: number;
3916
+ has_more: boolean;
3917
+ }>>;
3918
+ assets: z.ZodOptional<z.ZodUnknown>;
3919
+ citations: z.ZodOptional<z.ZodUnknown>;
3920
+ _citations_pagination: z.ZodOptional<z.ZodObject<{
3921
+ total: z.ZodNumber;
3922
+ offset: z.ZodNumber;
3923
+ limit: z.ZodNumber;
3924
+ has_more: z.ZodBoolean;
3925
+ }, "strip", z.ZodTypeAny, {
3926
+ total: number;
3927
+ offset: number;
3928
+ limit: number;
3929
+ has_more: boolean;
3930
+ }, {
3931
+ total: number;
3932
+ offset: number;
3933
+ limit: number;
3934
+ has_more: boolean;
3935
+ }>>;
3936
+ }, "strip", z.ZodTypeAny, {
3937
+ ids: {
3938
+ doi?: string | null | undefined;
3939
+ pmid?: string | null | undefined;
3940
+ pmcid?: string | null | undefined;
3941
+ arxiv_id?: string | null | undefined;
3942
+ biorxiv_id?: string | null | undefined;
3943
+ medrxiv_id?: string | null | undefined;
3944
+ openalex_id?: string | null | undefined;
3945
+ };
3946
+ title: string;
3947
+ public_id: string;
3948
+ created_at: string;
3949
+ updated_at: string;
3950
+ _links: {
3951
+ self: string;
3952
+ versions: string;
3953
+ };
3954
+ versions: {
3955
+ id: string;
3956
+ released_at: string;
3957
+ version_label: string;
3958
+ license?: string | null | undefined;
3959
+ doi?: string | null | undefined;
3960
+ ingested?: boolean | undefined;
3961
+ normalized?: boolean | undefined;
3962
+ open_access?: boolean | undefined;
3963
+ previous_version_id?: string | null | undefined;
3964
+ schema_version?: string | null | undefined;
3965
+ }[];
3966
+ abstract?: string | null | undefined;
3967
+ blocks?: unknown;
3968
+ sections?: unknown;
3969
+ citations?: unknown;
3970
+ assets?: unknown;
3971
+ _blocks_pagination?: {
3972
+ total: number;
3973
+ offset: number;
3974
+ limit: number;
3975
+ has_more: boolean;
3976
+ } | undefined;
3977
+ _citations_pagination?: {
3978
+ total: number;
3979
+ offset: number;
3980
+ limit: number;
3981
+ has_more: boolean;
3982
+ } | undefined;
3983
+ landing_url?: string | null | undefined;
3984
+ is_open_access?: boolean | undefined;
3985
+ best_license?: string | null | undefined;
3986
+ first_published_at?: string | null | undefined;
3987
+ latest_released_at?: string | null | undefined;
3988
+ }, {
3989
+ ids: {
3990
+ doi?: string | null | undefined;
3991
+ pmid?: string | null | undefined;
3992
+ pmcid?: string | null | undefined;
3993
+ arxiv_id?: string | null | undefined;
3994
+ biorxiv_id?: string | null | undefined;
3995
+ medrxiv_id?: string | null | undefined;
3996
+ openalex_id?: string | null | undefined;
3997
+ };
3998
+ title: string;
3999
+ public_id: string;
4000
+ created_at: string;
4001
+ updated_at: string;
4002
+ _links: {
4003
+ self: string;
4004
+ versions: string;
4005
+ };
4006
+ versions: {
4007
+ id: string;
4008
+ released_at: string;
4009
+ version_label: string;
4010
+ license?: string | null | undefined;
4011
+ doi?: string | null | undefined;
4012
+ ingested?: boolean | undefined;
4013
+ normalized?: boolean | undefined;
4014
+ open_access?: boolean | undefined;
4015
+ previous_version_id?: string | null | undefined;
4016
+ schema_version?: string | null | undefined;
4017
+ }[];
4018
+ abstract?: string | null | undefined;
4019
+ blocks?: unknown;
4020
+ sections?: unknown;
4021
+ citations?: unknown;
4022
+ assets?: unknown;
4023
+ _blocks_pagination?: {
4024
+ total: number;
4025
+ offset: number;
4026
+ limit: number;
4027
+ has_more: boolean;
4028
+ } | undefined;
4029
+ _citations_pagination?: {
4030
+ total: number;
4031
+ offset: number;
4032
+ limit: number;
4033
+ has_more: boolean;
4034
+ } | undefined;
4035
+ landing_url?: string | null | undefined;
4036
+ is_open_access?: boolean | undefined;
4037
+ best_license?: string | null | undefined;
4038
+ first_published_at?: string | null | undefined;
4039
+ latest_released_at?: string | null | undefined;
4040
+ }>;
4041
+ export declare const WorkShortViewGetSchema: z.ZodObject<{
4042
+ public_id: z.ZodString;
4043
+ title: z.ZodString;
4044
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4045
+ ids: z.ZodObject<{
4046
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4047
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4048
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4049
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4050
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4051
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4052
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4053
+ }, "strip", z.ZodTypeAny, {
4054
+ doi?: string | null | undefined;
4055
+ pmid?: string | null | undefined;
4056
+ pmcid?: string | null | undefined;
4057
+ arxiv_id?: string | null | undefined;
4058
+ biorxiv_id?: string | null | undefined;
4059
+ medrxiv_id?: string | null | undefined;
4060
+ openalex_id?: string | null | undefined;
4061
+ }, {
4062
+ doi?: string | null | undefined;
4063
+ pmid?: string | null | undefined;
4064
+ pmcid?: string | null | undefined;
4065
+ arxiv_id?: string | null | undefined;
4066
+ biorxiv_id?: string | null | undefined;
4067
+ medrxiv_id?: string | null | undefined;
4068
+ openalex_id?: string | null | undefined;
4069
+ }>;
4070
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4071
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
4072
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4073
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4074
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4075
+ created_at: z.ZodString;
4076
+ updated_at: z.ZodString;
4077
+ versions: z.ZodArray<z.ZodObject<{
4078
+ id: z.ZodString;
4079
+ version_label: z.ZodString;
4080
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4081
+ released_at: z.ZodString;
4082
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4083
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4084
+ open_access: z.ZodOptional<z.ZodBoolean>;
4085
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4086
+ ingested: z.ZodOptional<z.ZodBoolean>;
4087
+ normalized: z.ZodOptional<z.ZodBoolean>;
4088
+ }, "strip", z.ZodTypeAny, {
4089
+ id: string;
4090
+ released_at: string;
4091
+ version_label: string;
4092
+ license?: string | null | undefined;
4093
+ doi?: string | null | undefined;
4094
+ ingested?: boolean | undefined;
4095
+ normalized?: boolean | undefined;
4096
+ open_access?: boolean | undefined;
4097
+ previous_version_id?: string | null | undefined;
4098
+ schema_version?: string | null | undefined;
4099
+ }, {
4100
+ id: string;
4101
+ released_at: string;
4102
+ version_label: string;
4103
+ license?: string | null | undefined;
4104
+ doi?: string | null | undefined;
4105
+ ingested?: boolean | undefined;
4106
+ normalized?: boolean | undefined;
4107
+ open_access?: boolean | undefined;
4108
+ previous_version_id?: string | null | undefined;
4109
+ schema_version?: string | null | undefined;
4110
+ }>, "many">;
4111
+ _links: z.ZodObject<{
4112
+ self: z.ZodString;
4113
+ versions: z.ZodString;
4114
+ }, "strip", z.ZodTypeAny, {
4115
+ self: string;
4116
+ versions: string;
4117
+ }, {
4118
+ self: string;
4119
+ versions: string;
4120
+ }>;
4121
+ sections: z.ZodOptional<z.ZodUnknown>;
4122
+ blocks: z.ZodOptional<z.ZodUnknown>;
4123
+ assets: z.ZodOptional<z.ZodUnknown>;
4124
+ citations: z.ZodOptional<z.ZodUnknown>;
4125
+ }, "strip", z.ZodTypeAny, {
4126
+ ids: {
4127
+ doi?: string | null | undefined;
4128
+ pmid?: string | null | undefined;
4129
+ pmcid?: string | null | undefined;
4130
+ arxiv_id?: string | null | undefined;
4131
+ biorxiv_id?: string | null | undefined;
4132
+ medrxiv_id?: string | null | undefined;
4133
+ openalex_id?: string | null | undefined;
4134
+ };
4135
+ title: string;
4136
+ public_id: string;
4137
+ created_at: string;
4138
+ updated_at: string;
4139
+ _links: {
4140
+ self: string;
4141
+ versions: string;
4142
+ };
4143
+ versions: {
4144
+ id: string;
4145
+ released_at: string;
4146
+ version_label: string;
4147
+ license?: string | null | undefined;
4148
+ doi?: string | null | undefined;
4149
+ ingested?: boolean | undefined;
4150
+ normalized?: boolean | undefined;
4151
+ open_access?: boolean | undefined;
4152
+ previous_version_id?: string | null | undefined;
4153
+ schema_version?: string | null | undefined;
4154
+ }[];
4155
+ abstract?: string | null | undefined;
4156
+ blocks?: unknown;
4157
+ sections?: unknown;
4158
+ citations?: unknown;
4159
+ assets?: unknown;
4160
+ landing_url?: string | null | undefined;
4161
+ is_open_access?: boolean | undefined;
4162
+ best_license?: string | null | undefined;
4163
+ first_published_at?: string | null | undefined;
4164
+ latest_released_at?: string | null | undefined;
4165
+ }, {
4166
+ ids: {
4167
+ doi?: string | null | undefined;
4168
+ pmid?: string | null | undefined;
4169
+ pmcid?: string | null | undefined;
4170
+ arxiv_id?: string | null | undefined;
4171
+ biorxiv_id?: string | null | undefined;
4172
+ medrxiv_id?: string | null | undefined;
4173
+ openalex_id?: string | null | undefined;
4174
+ };
4175
+ title: string;
4176
+ public_id: string;
4177
+ created_at: string;
4178
+ updated_at: string;
4179
+ _links: {
4180
+ self: string;
4181
+ versions: string;
4182
+ };
4183
+ versions: {
4184
+ id: string;
4185
+ released_at: string;
4186
+ version_label: string;
4187
+ license?: string | null | undefined;
4188
+ doi?: string | null | undefined;
4189
+ ingested?: boolean | undefined;
4190
+ normalized?: boolean | undefined;
4191
+ open_access?: boolean | undefined;
4192
+ previous_version_id?: string | null | undefined;
4193
+ schema_version?: string | null | undefined;
4194
+ }[];
4195
+ abstract?: string | null | undefined;
4196
+ blocks?: unknown;
4197
+ sections?: unknown;
4198
+ citations?: unknown;
4199
+ assets?: unknown;
4200
+ landing_url?: string | null | undefined;
4201
+ is_open_access?: boolean | undefined;
4202
+ best_license?: string | null | undefined;
4203
+ first_published_at?: string | null | undefined;
4204
+ latest_released_at?: string | null | undefined;
4205
+ }>;
4206
+ export declare const WorkFullViewGetSchema: z.ZodObject<{
4207
+ public_id: z.ZodString;
4208
+ title: z.ZodString;
4209
+ abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4210
+ ids: z.ZodObject<{
4211
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4212
+ pmid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4213
+ pmcid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4214
+ arxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4215
+ biorxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4216
+ medrxiv_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4217
+ openalex_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4218
+ }, "strip", z.ZodTypeAny, {
4219
+ doi?: string | null | undefined;
4220
+ pmid?: string | null | undefined;
4221
+ pmcid?: string | null | undefined;
4222
+ arxiv_id?: string | null | undefined;
4223
+ biorxiv_id?: string | null | undefined;
4224
+ medrxiv_id?: string | null | undefined;
4225
+ openalex_id?: string | null | undefined;
4226
+ }, {
4227
+ doi?: string | null | undefined;
4228
+ pmid?: string | null | undefined;
4229
+ pmcid?: string | null | undefined;
4230
+ arxiv_id?: string | null | undefined;
4231
+ biorxiv_id?: string | null | undefined;
4232
+ medrxiv_id?: string | null | undefined;
4233
+ openalex_id?: string | null | undefined;
4234
+ }>;
4235
+ landing_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4236
+ is_open_access: z.ZodOptional<z.ZodBoolean>;
4237
+ best_license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4238
+ first_published_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4239
+ latest_released_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4240
+ created_at: z.ZodString;
4241
+ updated_at: z.ZodString;
4242
+ versions: z.ZodArray<z.ZodObject<{
4243
+ id: z.ZodString;
4244
+ version_label: z.ZodString;
4245
+ doi: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4246
+ released_at: z.ZodString;
4247
+ previous_version_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4248
+ schema_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4249
+ open_access: z.ZodOptional<z.ZodBoolean>;
4250
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4251
+ ingested: z.ZodOptional<z.ZodBoolean>;
4252
+ normalized: z.ZodOptional<z.ZodBoolean>;
4253
+ }, "strip", z.ZodTypeAny, {
4254
+ id: string;
4255
+ released_at: string;
4256
+ version_label: string;
4257
+ license?: string | null | undefined;
4258
+ doi?: string | null | undefined;
4259
+ ingested?: boolean | undefined;
4260
+ normalized?: boolean | undefined;
4261
+ open_access?: boolean | undefined;
4262
+ previous_version_id?: string | null | undefined;
4263
+ schema_version?: string | null | undefined;
4264
+ }, {
4265
+ id: string;
4266
+ released_at: string;
4267
+ version_label: string;
4268
+ license?: string | null | undefined;
4269
+ doi?: string | null | undefined;
4270
+ ingested?: boolean | undefined;
4271
+ normalized?: boolean | undefined;
4272
+ open_access?: boolean | undefined;
4273
+ previous_version_id?: string | null | undefined;
4274
+ schema_version?: string | null | undefined;
4275
+ }>, "many">;
4276
+ _links: z.ZodObject<{
4277
+ self: z.ZodString;
4278
+ versions: z.ZodString;
4279
+ }, "strip", z.ZodTypeAny, {
4280
+ self: string;
4281
+ versions: string;
4282
+ }, {
4283
+ self: string;
4284
+ versions: string;
4285
+ }>;
4286
+ } & {
4287
+ sections: z.ZodOptional<z.ZodUnknown>;
4288
+ blocks: z.ZodOptional<z.ZodUnknown>;
4289
+ _blocks_pagination: z.ZodOptional<z.ZodObject<{
4290
+ total: z.ZodNumber;
4291
+ offset: z.ZodNumber;
4292
+ limit: z.ZodNumber;
4293
+ has_more: z.ZodBoolean;
4294
+ }, "strip", z.ZodTypeAny, {
4295
+ total: number;
4296
+ offset: number;
4297
+ limit: number;
4298
+ has_more: boolean;
4299
+ }, {
4300
+ total: number;
4301
+ offset: number;
4302
+ limit: number;
4303
+ has_more: boolean;
4304
+ }>>;
4305
+ assets: z.ZodOptional<z.ZodUnknown>;
4306
+ citations: z.ZodOptional<z.ZodUnknown>;
4307
+ _citations_pagination: z.ZodOptional<z.ZodObject<{
4308
+ total: z.ZodNumber;
4309
+ offset: z.ZodNumber;
4310
+ limit: z.ZodNumber;
4311
+ has_more: z.ZodBoolean;
4312
+ }, "strip", z.ZodTypeAny, {
4313
+ total: number;
4314
+ offset: number;
4315
+ limit: number;
4316
+ has_more: boolean;
4317
+ }, {
4318
+ total: number;
4319
+ offset: number;
4320
+ limit: number;
4321
+ has_more: boolean;
4322
+ }>>;
4323
+ }, "strip", z.ZodTypeAny, {
4324
+ ids: {
4325
+ doi?: string | null | undefined;
4326
+ pmid?: string | null | undefined;
4327
+ pmcid?: string | null | undefined;
4328
+ arxiv_id?: string | null | undefined;
4329
+ biorxiv_id?: string | null | undefined;
4330
+ medrxiv_id?: string | null | undefined;
4331
+ openalex_id?: string | null | undefined;
4332
+ };
4333
+ title: string;
4334
+ public_id: string;
4335
+ created_at: string;
4336
+ updated_at: string;
4337
+ _links: {
4338
+ self: string;
4339
+ versions: string;
4340
+ };
4341
+ versions: {
4342
+ id: string;
4343
+ released_at: string;
4344
+ version_label: string;
4345
+ license?: string | null | undefined;
4346
+ doi?: string | null | undefined;
4347
+ ingested?: boolean | undefined;
4348
+ normalized?: boolean | undefined;
4349
+ open_access?: boolean | undefined;
4350
+ previous_version_id?: string | null | undefined;
4351
+ schema_version?: string | null | undefined;
4352
+ }[];
4353
+ abstract?: string | null | undefined;
4354
+ blocks?: unknown;
4355
+ sections?: unknown;
4356
+ citations?: unknown;
4357
+ assets?: unknown;
4358
+ _blocks_pagination?: {
4359
+ total: number;
4360
+ offset: number;
4361
+ limit: number;
4362
+ has_more: boolean;
4363
+ } | undefined;
4364
+ _citations_pagination?: {
4365
+ total: number;
4366
+ offset: number;
4367
+ limit: number;
4368
+ has_more: boolean;
4369
+ } | undefined;
4370
+ landing_url?: string | null | undefined;
4371
+ is_open_access?: boolean | undefined;
4372
+ best_license?: string | null | undefined;
4373
+ first_published_at?: string | null | undefined;
4374
+ latest_released_at?: string | null | undefined;
4375
+ }, {
4376
+ ids: {
4377
+ doi?: string | null | undefined;
4378
+ pmid?: string | null | undefined;
4379
+ pmcid?: string | null | undefined;
4380
+ arxiv_id?: string | null | undefined;
4381
+ biorxiv_id?: string | null | undefined;
4382
+ medrxiv_id?: string | null | undefined;
4383
+ openalex_id?: string | null | undefined;
4384
+ };
4385
+ title: string;
4386
+ public_id: string;
4387
+ created_at: string;
4388
+ updated_at: string;
4389
+ _links: {
4390
+ self: string;
4391
+ versions: string;
4392
+ };
4393
+ versions: {
4394
+ id: string;
4395
+ released_at: string;
4396
+ version_label: string;
4397
+ license?: string | null | undefined;
4398
+ doi?: string | null | undefined;
4399
+ ingested?: boolean | undefined;
4400
+ normalized?: boolean | undefined;
4401
+ open_access?: boolean | undefined;
4402
+ previous_version_id?: string | null | undefined;
4403
+ schema_version?: string | null | undefined;
4404
+ }[];
4405
+ abstract?: string | null | undefined;
4406
+ blocks?: unknown;
4407
+ sections?: unknown;
4408
+ citations?: unknown;
4409
+ assets?: unknown;
4410
+ _blocks_pagination?: {
4411
+ total: number;
4412
+ offset: number;
4413
+ limit: number;
4414
+ has_more: boolean;
4415
+ } | undefined;
4416
+ _citations_pagination?: {
4417
+ total: number;
4418
+ offset: number;
4419
+ limit: number;
4420
+ has_more: boolean;
4421
+ } | undefined;
4422
+ landing_url?: string | null | undefined;
4423
+ is_open_access?: boolean | undefined;
4424
+ best_license?: string | null | undefined;
4425
+ first_published_at?: string | null | undefined;
4426
+ latest_released_at?: string | null | undefined;
4427
+ }>;
4428
+ export type WorkIds = z.infer<typeof WorkIdsSchema>;
4429
+ export type WorkVersion = z.infer<typeof WorkVersionSchema>;
4430
+ export type WorkVersionMinimal = z.infer<typeof WorkVersionMinimalSchema>;
4431
+ export type WorkLinks = z.infer<typeof WorkLinksSchema>;
4432
+ export type WorkCore = z.infer<typeof WorkCoreSchema>;
4433
+ export type WorkResponse = z.infer<typeof WorkResponseSchema>;
4434
+ export type WorksListResponse = z.infer<typeof WorksListResponseSchema>;
4435
+ export type WorkDownload = z.infer<typeof WorkDownloadSchema>;
4436
+ export type WorkExpandedData = z.infer<typeof WorkExpandedDataSchema>;
4437
+ export type WorkEnvelope = z.infer<typeof WorkEnvelopeSchema>;
4438
+ export type BatchWorkResult = z.infer<typeof BatchWorkResultSchema>;
4439
+ export type BatchWorkEnvelope = z.infer<typeof BatchWorkEnvelopeSchema>;
4440
+ export type WorkObject = WorkCore;
4441
+ export type WorkShortView = WorkCore;
4442
+ export type WorkFullView = WorkResponse;
4443
+ export type WorkShortViewGet = z.infer<typeof WorkShortViewGetSchema>;
4444
+ export type WorkFullViewGet = z.infer<typeof WorkFullViewGetSchema>;
4445
+ export type WorkViewType = "short" | "full";
4446
+ export declare function createWorkObject(data: Partial<WorkCore>, view?: WorkViewType): WorkCore;
4447
+ export declare function transformPrismaWorkToWorkObject(prismaWork: any, options?: {
4448
+ includeVersions?: boolean;
4449
+ selectedVersion?: WorkVersion | null;
4450
+ versionsToInclude?: WorkVersion[];
4451
+ jobId?: string;
4452
+ idempotencyKey?: string;
4453
+ correlationId?: string;
4454
+ }): WorkCore;
4455
+ //# sourceMappingURL=work.d.ts.map