@tool-bridge/server 0.21.1 → 0.23.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 (178) hide show
  1. package/dist/admin.js +170 -0
  2. package/dist/airtable-VMQVXLHK.js +790 -0
  3. package/dist/{alt_text_generator_ai-W7O34SNG.js → alt_text_generator_ai-FTWY4RU4.js} +12 -11
  4. package/dist/{amap-VOX4T2AW.js → amap-OK5VBHYC.js} +221 -220
  5. package/dist/anthropic-S67AZFZ3.js +203 -0
  6. package/dist/apify-ZE6MYQI3.js +248 -0
  7. package/dist/brave_search-TG2M2KOD.js +302 -0
  8. package/dist/chunk-2JNAI4OC.js +161 -0
  9. package/dist/{chunk-KMTT3I6D.js → chunk-4XJPN3DY.js} +19392 -26136
  10. package/dist/chunk-5ICRY3VU.js +8432 -0
  11. package/dist/chunk-7CTWGTDU.js +302 -0
  12. package/dist/chunk-BADVCN6K.js +378 -0
  13. package/dist/{chunk-XYBU3WZH.js → chunk-TDAWLMDE.js} +3 -3
  14. package/dist/chunk-U7PTOA3U.js +7320 -0
  15. package/dist/{chunk-E6JCVKW6.js → chunk-VWRUGUSU.js} +3 -3
  16. package/dist/{chunk-ATK45BXV.js → chunk-WJHG6OK7.js} +4 -2
  17. package/dist/circleci-3L3WJVSK.js +389 -0
  18. package/dist/clerk-EZPF2V7T.js +1019 -0
  19. package/dist/cohere-U27DPO64.js +185 -0
  20. package/dist/{confluence-B3EWPZVE.js → confluence-G2KL6ERH.js} +105 -104
  21. package/dist/{convertapi-EUWSQYPF.js → convertapi-L4CLJ2M3.js} +32 -31
  22. package/dist/{currencyapi-KVTIK3GL.js → currencyapi-YPYXG7YY.js} +71 -71
  23. package/dist/deepseek-6HT6WF3M.js +210 -0
  24. package/dist/docker_hub-LPE3PCVB.js +933 -0
  25. package/dist/dropbox-V56ABHTA.js +1305 -0
  26. package/dist/dub-6OKQ7MHT.js +680 -0
  27. package/dist/e2b-JS2U2QFU.js +278 -0
  28. package/dist/exa-DPWVYXSP.js +332 -0
  29. package/dist/{fal_ai-23E7JPNT.js → fal_ai-DK6Y27ZF.js} +81 -80
  30. package/dist/{feishu-7QRIDUV6.js → feishu-K7EGSRF3.js} +528 -572
  31. package/dist/{feishu_custom_bot-TJ4K7QNJ.js → feishu_custom_bot-2JUGFYNG.js} +57 -53
  32. package/dist/figma-FT5I7ITD.js +777 -0
  33. package/dist/firehydrant-EIKLKHX2.js +563 -0
  34. package/dist/{fixer-BWON27UO.js → fixer-U5QXIAKD.js} +34 -33
  35. package/dist/fly-T3JYFZ2M.js +469 -0
  36. package/dist/{front-QCGXYEDJ.js → front-D72MGVOR.js} +104 -104
  37. package/dist/geocodio-BOTD5TI5.js +213 -0
  38. package/dist/ghost-KYP7SZGB.js +338 -0
  39. package/dist/github-AGMZT3VY.js +5421 -0
  40. package/dist/gmail-BLJNJOBG.js +1887 -0
  41. package/dist/googlecalendar-GTHWNCF6.js +2524 -0
  42. package/dist/{googledocs-BUHL4J2H.js → googledocs-6EEDMEBQ.js} +341 -340
  43. package/dist/{grafana-GLU2DWF2.js → grafana-GMW6EKSQ.js} +221 -220
  44. package/dist/graphhopper-6OLGBDGB.js +325 -0
  45. package/dist/index.d.ts +1132 -332
  46. package/dist/index.js +31 -14
  47. package/dist/{ip2proxy-EZ64Y4ZH.js → ip2proxy-4QN42E6T.js} +28 -27
  48. package/dist/ipgeolocation_io-SK4XKDA2.js +315 -0
  49. package/dist/ipqualityscore-6ANBPXKT.js +279 -0
  50. package/dist/{jina_ai-EFBHTBXL.js → jina_ai-IHPSVRM5.js} +23 -23
  51. package/dist/{jira-HQSHAA5K.js → jira-46KKM4LC.js} +118 -117
  52. package/dist/langsmith-JZA345I5.js +593 -0
  53. package/dist/lemlist-43IV7DK6.js +289 -0
  54. package/dist/{linear-K7RYFYAD.js → linear-5LFH7XNL.js} +327 -326
  55. package/dist/logsnag-5RMYAHIL.js +150 -0
  56. package/dist/main.js +57 -280
  57. package/dist/{mattermost-S2BRCWLQ.js → mattermost-XFL6SHGG.js} +59 -58
  58. package/dist/mem0-NYO4DTP6.js +544 -0
  59. package/dist/memos-37MPQOLV.js +744 -0
  60. package/dist/{metabase-MMSEPCOF.js → metabase-KYBKZFMG.js} +90 -89
  61. package/dist/mistral_ai-6PL3K4PM.js +1196 -0
  62. package/dist/{mother_duck-H7PCQNZ2.js → mother_duck-2NH7W5M5.js} +94 -93
  63. package/dist/ngrok-UO6CDYCA.js +356 -0
  64. package/dist/{notes-PFMKRO33.js → notes-I3P32WP4.js} +11 -9
  65. package/dist/notion-BEAJFUOE.js +940 -0
  66. package/dist/open_exchange_rates-CMF62JB4.js +215 -0
  67. package/dist/openai-IHOMKVND.js +800 -0
  68. package/dist/opengraph_io-ZQ2FGLHX.js +362 -0
  69. package/dist/openrouter-HXLW3NR5.js +441 -0
  70. package/dist/outline-ELCP4NEU.js +599 -0
  71. package/dist/paddle-O77LALVN.js +454 -0
  72. package/dist/perplexity-JCU654QV.js +220 -0
  73. package/dist/pinecone-W5W4LRKL.js +571 -0
  74. package/dist/{pipedrive-Y2O7QGFF.js → pipedrive-ITMJLLPZ.js} +99 -98
  75. package/dist/polar-R33XU4L3.js +395 -0
  76. package/dist/posthog-JVNTOLTV.js +3464 -0
  77. package/dist/postmark-6SBG7HWV.js +427 -0
  78. package/dist/{prerender-MENYM2TY.js → prerender-GPNKTNFC.js} +31 -30
  79. package/dist/{pubmed-GOXUVVH5.js → pubmed-UP6ZEEIH.js} +239 -238
  80. package/dist/{railway-V2SID4WV.js → railway-KWEWXHTY.js} +118 -117
  81. package/dist/readwise-BLATSMC3.js +470 -0
  82. package/dist/render-QYRVIXII.js +461 -0
  83. package/dist/{replicate-756MXPYX.js → replicate-JYTWH4NF.js} +81 -80
  84. package/dist/{resend-ZKH3BTBI.js → resend-L5N75SZM.js} +20 -16
  85. package/dist/rootly-MHCPEQ26.js +336 -0
  86. package/dist/{scrapfly-NSRHFDIQ.js → scrapfly-PTPGYSJM.js} +62 -61
  87. package/dist/{scrapingbee-OQHLAVEY.js → scrapingbee-JN6UH5PY.js} +56 -56
  88. package/dist/{screenshot_fyi-DVWG3AXC.js → screenshot_fyi-4QRVSV55.js} +16 -16
  89. package/dist/semantic_scholar-LRSWA2GE.js +611 -0
  90. package/dist/{sentry-546MNDJG.js → sentry-2G6PF5W6.js} +208 -207
  91. package/dist/{shodan-C3OON3Z3.js → shodan-WKKPP5C6.js} +62 -61
  92. package/dist/shopify-64YDK5T2.js +610 -0
  93. package/dist/stripe-QAIGGOTF.js +585 -0
  94. package/dist/{supabase-U2SL4D63.js → supabase-WHTGR6ND.js} +245 -244
  95. package/dist/tavily-QIXCDDWO.js +326 -0
  96. package/dist/telegram-E6G7CWI6.js +1767 -0
  97. package/dist/{telnyx-CXQ4EZUX.js → telnyx-ZDVVS7PK.js} +57 -56
  98. package/dist/todoist-DMYF3G7J.js +664 -0
  99. package/dist/trello-HY2RYIRP.js +1080 -0
  100. package/dist/turso-HAQWMGRP.js +416 -0
  101. package/dist/{twilio-4PDBJKWX.js → twilio-MLXYPHJE.js} +70 -69
  102. package/dist/umami-DZHBLPVG.js +389 -0
  103. package/dist/unsplash-GS2OPXKE.js +351 -0
  104. package/dist/{upstash_redis-G4LQBYHA.js → upstash_redis-XMXWTNAJ.js} +51 -50
  105. package/dist/uptimerobot-TF5WRZ4G.js +483 -0
  106. package/dist/v2ex-2BVXAPDF.js +667 -0
  107. package/dist/vercel-YMJGQYJE.js +1076 -0
  108. package/dist/{wolfram_alpha_api-3G4PUJWB.js → wolfram_alpha_api-I56SXWFZ.js} +36 -35
  109. package/dist/wordpress-R7TDFZ2P.js +812 -0
  110. package/dist/workos-HDNHWVMS.js +664 -0
  111. package/dist/zhihu-LX6AGGDS.js +254 -0
  112. package/package.json +18 -9
  113. package/dist/airtable-LLZDFN7M.js +0 -789
  114. package/dist/anthropic-G23NN3X5.js +0 -202
  115. package/dist/apify-Y3SS734K.js +0 -247
  116. package/dist/brave_search-ZC7OAPSZ.js +0 -301
  117. package/dist/chunk-R6P4XAE5.js +0 -248
  118. package/dist/chunk-U7B6DS2O.js +0 -977
  119. package/dist/chunk-UZM2RXZH.js +0 -23436
  120. package/dist/circleci-3BAX5FCG.js +0 -388
  121. package/dist/clerk-6LEM6TNU.js +0 -1019
  122. package/dist/cloudflare_dns-KINYTJUD.js +0 -588
  123. package/dist/cohere-XCJ5AJ6B.js +0 -185
  124. package/dist/deepseek-PC5YGNC5.js +0 -209
  125. package/dist/docker_hub-C3MA5FU6.js +0 -932
  126. package/dist/dropbox-XBV7Z2IR.js +0 -1304
  127. package/dist/dub-LDOFG3HC.js +0 -679
  128. package/dist/e2b-JMCPSVBW.js +0 -277
  129. package/dist/exa-RAK7O7RD.js +0 -331
  130. package/dist/figma-E6IX5DTH.js +0 -773
  131. package/dist/firehydrant-ZBLPQREE.js +0 -562
  132. package/dist/fly-ZH3HFCZJ.js +0 -468
  133. package/dist/geocodio-YGNI7DA4.js +0 -212
  134. package/dist/ghost-EVSGKH2Q.js +0 -337
  135. package/dist/github-MA2BGRCJ.js +0 -5420
  136. package/dist/gmail-E5E6AADE.js +0 -1886
  137. package/dist/googlecalendar-BTLFPXTD.js +0 -2523
  138. package/dist/graphhopper-WSMB3TCD.js +0 -324
  139. package/dist/ipgeolocation_io-AA7HAS22.js +0 -315
  140. package/dist/ipqualityscore-BHJXVTJT.js +0 -277
  141. package/dist/langsmith-5W6SCT6F.js +0 -592
  142. package/dist/lemlist-HJWH6UMK.js +0 -288
  143. package/dist/logsnag-4KFOHL37.js +0 -150
  144. package/dist/mem0-CAW43CIC.js +0 -543
  145. package/dist/memos-TWEGPKFM.js +0 -740
  146. package/dist/mistral_ai-64BGZQHP.js +0 -1195
  147. package/dist/ngrok-GQCUGZKJ.js +0 -356
  148. package/dist/notion-DQWZWP4N.js +0 -936
  149. package/dist/open_exchange_rates-QMMD735E.js +0 -214
  150. package/dist/openai-W6PX32NZ.js +0 -799
  151. package/dist/opengraph_io-HNDBXYNW.js +0 -361
  152. package/dist/openrouter-JJYMEAUL.js +0 -437
  153. package/dist/outline-MCBNQZYY.js +0 -595
  154. package/dist/paddle-D2SKLUDN.js +0 -453
  155. package/dist/perplexity-XIFMKUAE.js +0 -219
  156. package/dist/pinecone-HUFTALV2.js +0 -570
  157. package/dist/polar-TYTOMOSR.js +0 -394
  158. package/dist/posthog-43JAR3VW.js +0 -3463
  159. package/dist/postmark-KL2QJYSG.js +0 -426
  160. package/dist/readwise-CI4GIMMJ.js +0 -469
  161. package/dist/render-SUBJ6YRZ.js +0 -460
  162. package/dist/rootly-CD2LJHPI.js +0 -336
  163. package/dist/semantic_scholar-T4A252KW.js +0 -610
  164. package/dist/shopify-Y2HN2MCQ.js +0 -609
  165. package/dist/stripe-VE3CD3AY.js +0 -584
  166. package/dist/tavily-KCZHK6HE.js +0 -326
  167. package/dist/telegram-3URFBCMY.js +0 -1766
  168. package/dist/todoist-HNPWNYTD.js +0 -663
  169. package/dist/trello-3W2MIXRP.js +0 -1079
  170. package/dist/turso-2EQF7C2Z.js +0 -415
  171. package/dist/umami-5REN7TGP.js +0 -388
  172. package/dist/unsplash-EIXL424F.js +0 -350
  173. package/dist/uptimerobot-KNJ3EYLY.js +0 -482
  174. package/dist/v2ex-RHJ234PZ.js +0 -666
  175. package/dist/vercel-AS6NCIC7.js +0 -1075
  176. package/dist/wordpress-KNDAAUV7.js +0 -811
  177. package/dist/workos-R6UITSJ7.js +0 -663
  178. package/dist/zhihu-AGK4HILK.js +0 -253
@@ -8,15 +8,15 @@ import {
8
8
  import {
9
9
  createProviderPlugin,
10
10
  upstreamError
11
- } from "./chunk-ATK45BXV.js";
11
+ } from "./chunk-WJHG6OK7.js";
12
12
  import {
13
13
  guardedFetch
14
- } from "./chunk-U7B6DS2O.js";
14
+ } from "./chunk-2JNAI4OC.js";
15
+ import "./chunk-BADVCN6K.js";
15
16
  import {
16
17
  TBError,
17
- external_exports,
18
18
  isTBError
19
- } from "./chunk-UZM2RXZH.js";
19
+ } from "./chunk-5ICRY3VU.js";
20
20
  import "./chunk-U67V476Y.js";
21
21
 
22
22
  // ../plugins/src/pubmed/api.ts
@@ -676,276 +676,277 @@ async function convertArticleIds(input) {
676
676
  }
677
677
 
678
678
  // ../plugins/src/pubmed/schema.ts
679
- var searchArticlesInput = external_exports.strictObject({
680
- query: external_exports.string().min(1).describe("The PubMed query, including optional official field tags and Boolean operators such as cancer[Title] AND 2025[pdat]."),
681
- offset: external_exports.int().min(0).max(9999).default(0).describe("The zero-based search result offset.").optional(),
682
- limit: external_exports.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional(),
683
- sort: external_exports.enum(["relevance", "publication_date", "first_author", "journal"]).describe("The PubMed result sort order.").optional(),
684
- publicationDateRange: external_exports.strictObject({
685
- from: external_exports.iso.date().describe("The earliest publication date to include.").optional(),
686
- to: external_exports.iso.date().describe("The latest publication date to include.").optional()
679
+ import { z } from "zod/v4";
680
+ var searchArticlesInput = z.strictObject({
681
+ query: z.string().min(1).describe("The PubMed query, including optional official field tags and Boolean operators such as cancer[Title] AND 2025[pdat]."),
682
+ offset: z.int().min(0).max(9999).default(0).describe("The zero-based search result offset.").optional(),
683
+ limit: z.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional(),
684
+ sort: z.enum(["relevance", "publication_date", "first_author", "journal"]).describe("The PubMed result sort order.").optional(),
685
+ publicationDateRange: z.strictObject({
686
+ from: z.iso.date().describe("The earliest publication date to include.").optional(),
687
+ to: z.iso.date().describe("The latest publication date to include.").optional()
687
688
  }).describe("An inclusive PubMed publication date range.").optional()
688
689
  }).describe("Input parameters for searching PubMed articles.");
689
- var searchArticlesOutput = external_exports.strictObject({
690
- total: external_exports.int().min(0).describe("The total number of matching PubMed records.").optional(),
691
- offset: external_exports.int().min(0).describe("The zero-based result offset.").optional(),
692
- limit: external_exports.int().min(1).describe("The requested page size.").optional(),
693
- queryTranslation: external_exports.string().describe("The query translation reported by PubMed.").nullable().optional(),
694
- articles: external_exports.array(external_exports.strictObject({
695
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
696
- title: external_exports.string().describe("The article title.").optional(),
697
- abstract: external_exports.array(external_exports.strictObject({
698
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
699
- text: external_exports.string().describe("The normalized abstract section text.").optional()
690
+ var searchArticlesOutput = z.strictObject({
691
+ total: z.int().min(0).describe("The total number of matching PubMed records.").optional(),
692
+ offset: z.int().min(0).describe("The zero-based result offset.").optional(),
693
+ limit: z.int().min(1).describe("The requested page size.").optional(),
694
+ queryTranslation: z.string().describe("The query translation reported by PubMed.").nullable().optional(),
695
+ articles: z.array(z.strictObject({
696
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
697
+ title: z.string().describe("The article title.").optional(),
698
+ abstract: z.array(z.strictObject({
699
+ label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
700
+ text: z.string().describe("The normalized abstract section text.").optional()
700
701
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
701
- authors: external_exports.array(external_exports.strictObject({
702
- name: external_exports.string().describe("The author or collective author name.").optional(),
703
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
704
- affiliations: external_exports.array(external_exports.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
702
+ authors: z.array(z.strictObject({
703
+ name: z.string().describe("The author or collective author name.").optional(),
704
+ orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
705
+ affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
705
706
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
706
- journal: external_exports.strictObject({
707
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
708
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
709
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
710
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
711
- issue: external_exports.string().describe("The journal issue.").nullable().optional()
707
+ journal: z.strictObject({
708
+ title: z.string().describe("The full journal title.").nullable().optional(),
709
+ abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
710
+ issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
711
+ volume: z.string().describe("The journal volume.").nullable().optional(),
712
+ issue: z.string().describe("The journal issue.").nullable().optional()
712
713
  }).describe("The journal information attached to a PubMed record.").optional(),
713
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
714
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
715
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
716
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
717
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
718
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
719
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
720
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
721
- pmcUrl: external_exports.url().describe("The PubMed Central article URL when available.").nullable().optional()
714
+ publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
715
+ publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
716
+ meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
717
+ keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
718
+ languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
719
+ doi: z.string().describe("The article DOI when present.").nullable().optional(),
720
+ pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
721
+ pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
722
+ pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
722
723
  }).describe("A normalized PubMed article record.")).describe("The normalized articles in this page.").optional()
723
724
  }).describe("A page of normalized PubMed search results.");
724
- var matchCitationInput = external_exports.strictObject({
725
- citation: external_exports.string().min(1).describe("The citation text to match, such as an article title followed by its journal, year, volume, and pages.").optional()
725
+ var matchCitationInput = z.strictObject({
726
+ citation: z.string().min(1).describe("The citation text to match, such as an article title followed by its journal, year, volume, and pages.").optional()
726
727
  }).describe("Input parameters for matching one citation.");
727
- var matchCitationOutput = external_exports.strictObject({
728
- matched: external_exports.boolean().describe("Whether PubMed returned at least one candidate article.").optional(),
729
- articles: external_exports.array(external_exports.strictObject({
730
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
731
- title: external_exports.string().describe("The article title.").optional(),
732
- abstract: external_exports.array(external_exports.strictObject({
733
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
734
- text: external_exports.string().describe("The normalized abstract section text.").optional()
728
+ var matchCitationOutput = z.strictObject({
729
+ matched: z.boolean().describe("Whether PubMed returned at least one candidate article.").optional(),
730
+ articles: z.array(z.strictObject({
731
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
732
+ title: z.string().describe("The article title.").optional(),
733
+ abstract: z.array(z.strictObject({
734
+ label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
735
+ text: z.string().describe("The normalized abstract section text.").optional()
735
736
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
736
- authors: external_exports.array(external_exports.strictObject({
737
- name: external_exports.string().describe("The author or collective author name.").optional(),
738
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
739
- affiliations: external_exports.array(external_exports.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
737
+ authors: z.array(z.strictObject({
738
+ name: z.string().describe("The author or collective author name.").optional(),
739
+ orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
740
+ affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
740
741
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
741
- journal: external_exports.strictObject({
742
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
743
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
744
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
745
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
746
- issue: external_exports.string().describe("The journal issue.").nullable().optional()
742
+ journal: z.strictObject({
743
+ title: z.string().describe("The full journal title.").nullable().optional(),
744
+ abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
745
+ issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
746
+ volume: z.string().describe("The journal volume.").nullable().optional(),
747
+ issue: z.string().describe("The journal issue.").nullable().optional()
747
748
  }).describe("The journal information attached to a PubMed record.").optional(),
748
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
749
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
750
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
751
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
752
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
753
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
754
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
755
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
756
- pmcUrl: external_exports.url().describe("The PubMed Central article URL when available.").nullable().optional()
749
+ publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
750
+ publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
751
+ meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
752
+ keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
753
+ languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
754
+ doi: z.string().describe("The article DOI when present.").nullable().optional(),
755
+ pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
756
+ pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
757
+ pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
757
758
  }).describe("A normalized PubMed article record.")).describe("The normalized candidate articles returned by PubMed.").optional()
758
759
  }).describe("The PubMed articles matched from the citation text.");
759
- var getArticleInput = external_exports.strictObject({
760
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional()
760
+ var getArticleInput = z.strictObject({
761
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional()
761
762
  }).describe("Input parameters for getting one PubMed article.");
762
- var getArticleOutput = external_exports.strictObject({
763
- found: external_exports.boolean().describe("Whether PubMed returned the requested record.").optional(),
764
- article: external_exports.strictObject({
765
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
766
- title: external_exports.string().describe("The article title.").optional(),
767
- abstract: external_exports.array(external_exports.strictObject({
768
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
769
- text: external_exports.string().describe("The normalized abstract section text.").optional()
763
+ var getArticleOutput = z.strictObject({
764
+ found: z.boolean().describe("Whether PubMed returned the requested record.").optional(),
765
+ article: z.strictObject({
766
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
767
+ title: z.string().describe("The article title.").optional(),
768
+ abstract: z.array(z.strictObject({
769
+ label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
770
+ text: z.string().describe("The normalized abstract section text.").optional()
770
771
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
771
- authors: external_exports.array(external_exports.strictObject({
772
- name: external_exports.string().describe("The author or collective author name.").optional(),
773
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
774
- affiliations: external_exports.array(external_exports.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
772
+ authors: z.array(z.strictObject({
773
+ name: z.string().describe("The author or collective author name.").optional(),
774
+ orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
775
+ affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
775
776
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
776
- journal: external_exports.strictObject({
777
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
778
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
779
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
780
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
781
- issue: external_exports.string().describe("The journal issue.").nullable().optional()
777
+ journal: z.strictObject({
778
+ title: z.string().describe("The full journal title.").nullable().optional(),
779
+ abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
780
+ issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
781
+ volume: z.string().describe("The journal volume.").nullable().optional(),
782
+ issue: z.string().describe("The journal issue.").nullable().optional()
782
783
  }).describe("The journal information attached to a PubMed record.").optional(),
783
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
784
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
785
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
786
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
787
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
788
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
789
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
790
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
791
- pmcUrl: external_exports.url().describe("The PubMed Central article URL when available.").nullable().optional()
784
+ publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
785
+ publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
786
+ meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
787
+ keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
788
+ languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
789
+ doi: z.string().describe("The article DOI when present.").nullable().optional(),
790
+ pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
791
+ pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
792
+ pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
792
793
  }).describe("A normalized PubMed article record.").nullable().optional()
793
794
  }).describe("The result of retrieving one PubMed article.");
794
- var getArticlesInput = external_exports.strictObject({
795
- pmids: external_exports.array(external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).")).min(1).max(50).describe("The PubMed identifiers to retrieve.").optional()
795
+ var getArticlesInput = z.strictObject({
796
+ pmids: z.array(z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).")).min(1).max(50).describe("The PubMed identifiers to retrieve.").optional()
796
797
  }).describe("Input parameters for getting multiple PubMed articles.");
797
- var getArticlesOutput = external_exports.strictObject({
798
- articles: external_exports.array(external_exports.strictObject({
799
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
800
- title: external_exports.string().describe("The article title.").optional(),
801
- abstract: external_exports.array(external_exports.strictObject({
802
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
803
- text: external_exports.string().describe("The normalized abstract section text.").optional()
798
+ var getArticlesOutput = z.strictObject({
799
+ articles: z.array(z.strictObject({
800
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
801
+ title: z.string().describe("The article title.").optional(),
802
+ abstract: z.array(z.strictObject({
803
+ label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
804
+ text: z.string().describe("The normalized abstract section text.").optional()
804
805
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
805
- authors: external_exports.array(external_exports.strictObject({
806
- name: external_exports.string().describe("The author or collective author name.").optional(),
807
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
808
- affiliations: external_exports.array(external_exports.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
806
+ authors: z.array(z.strictObject({
807
+ name: z.string().describe("The author or collective author name.").optional(),
808
+ orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
809
+ affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
809
810
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
810
- journal: external_exports.strictObject({
811
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
812
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
813
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
814
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
815
- issue: external_exports.string().describe("The journal issue.").nullable().optional()
811
+ journal: z.strictObject({
812
+ title: z.string().describe("The full journal title.").nullable().optional(),
813
+ abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
814
+ issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
815
+ volume: z.string().describe("The journal volume.").nullable().optional(),
816
+ issue: z.string().describe("The journal issue.").nullable().optional()
816
817
  }).describe("The journal information attached to a PubMed record.").optional(),
817
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
818
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
819
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
820
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
821
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
822
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
823
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
824
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
825
- pmcUrl: external_exports.url().describe("The PubMed Central article URL when available.").nullable().optional()
818
+ publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
819
+ publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
820
+ meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
821
+ keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
822
+ languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
823
+ doi: z.string().describe("The article DOI when present.").nullable().optional(),
824
+ pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
825
+ pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
826
+ pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
826
827
  }).describe("A normalized PubMed article record.")).describe("The PubMed records that were found.").optional(),
827
- notFoundPmids: external_exports.array(external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).")).describe("The requested PMIDs that PubMed did not return.").optional()
828
+ notFoundPmids: z.array(z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).")).describe("The requested PMIDs that PubMed did not return.").optional()
828
829
  }).describe("The result of retrieving multiple PubMed articles.");
829
- var findRelatedArticlesInput = external_exports.strictObject({
830
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
831
- limit: external_exports.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional()
830
+ var findRelatedArticlesInput = z.strictObject({
831
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
832
+ limit: z.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional()
832
833
  }).describe("Input parameters for finding related PubMed articles.");
833
- var findRelatedArticlesOutput = external_exports.strictObject({
834
- sourcePmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
835
- articles: external_exports.array(external_exports.strictObject({
836
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
837
- title: external_exports.string().describe("The article title.").optional(),
838
- abstract: external_exports.array(external_exports.strictObject({
839
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
840
- text: external_exports.string().describe("The normalized abstract section text.").optional()
834
+ var findRelatedArticlesOutput = z.strictObject({
835
+ sourcePmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
836
+ articles: z.array(z.strictObject({
837
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
838
+ title: z.string().describe("The article title.").optional(),
839
+ abstract: z.array(z.strictObject({
840
+ label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
841
+ text: z.string().describe("The normalized abstract section text.").optional()
841
842
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
842
- authors: external_exports.array(external_exports.strictObject({
843
- name: external_exports.string().describe("The author or collective author name.").optional(),
844
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
845
- affiliations: external_exports.array(external_exports.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
843
+ authors: z.array(z.strictObject({
844
+ name: z.string().describe("The author or collective author name.").optional(),
845
+ orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
846
+ affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
846
847
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
847
- journal: external_exports.strictObject({
848
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
849
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
850
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
851
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
852
- issue: external_exports.string().describe("The journal issue.").nullable().optional()
848
+ journal: z.strictObject({
849
+ title: z.string().describe("The full journal title.").nullable().optional(),
850
+ abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
851
+ issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
852
+ volume: z.string().describe("The journal volume.").nullable().optional(),
853
+ issue: z.string().describe("The journal issue.").nullable().optional()
853
854
  }).describe("The journal information attached to a PubMed record.").optional(),
854
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
855
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
856
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
857
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
858
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
859
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
860
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
861
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
862
- pmcUrl: external_exports.url().describe("The PubMed Central article URL when available.").nullable().optional()
855
+ publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
856
+ publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
857
+ meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
858
+ keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
859
+ languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
860
+ doi: z.string().describe("The article DOI when present.").nullable().optional(),
861
+ pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
862
+ pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
863
+ pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
863
864
  }).describe("A normalized PubMed article record.")).describe("The normalized related PubMed articles.").optional()
864
865
  }).describe("The related PubMed articles returned for one source record.");
865
- var getCitingArticlesInput = external_exports.strictObject({
866
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
867
- limit: external_exports.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional()
866
+ var getCitingArticlesInput = z.strictObject({
867
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
868
+ limit: z.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional()
868
869
  }).describe("Input parameters for getting articles that cite a source PubMed record.");
869
- var getCitingArticlesOutput = external_exports.strictObject({
870
- sourcePmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
871
- articles: external_exports.array(external_exports.strictObject({
872
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
873
- title: external_exports.string().describe("The article title.").optional(),
874
- abstract: external_exports.array(external_exports.strictObject({
875
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
876
- text: external_exports.string().describe("The normalized abstract section text.").optional()
870
+ var getCitingArticlesOutput = z.strictObject({
871
+ sourcePmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
872
+ articles: z.array(z.strictObject({
873
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
874
+ title: z.string().describe("The article title.").optional(),
875
+ abstract: z.array(z.strictObject({
876
+ label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
877
+ text: z.string().describe("The normalized abstract section text.").optional()
877
878
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
878
- authors: external_exports.array(external_exports.strictObject({
879
- name: external_exports.string().describe("The author or collective author name.").optional(),
880
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
881
- affiliations: external_exports.array(external_exports.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
879
+ authors: z.array(z.strictObject({
880
+ name: z.string().describe("The author or collective author name.").optional(),
881
+ orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
882
+ affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
882
883
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
883
- journal: external_exports.strictObject({
884
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
885
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
886
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
887
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
888
- issue: external_exports.string().describe("The journal issue.").nullable().optional()
884
+ journal: z.strictObject({
885
+ title: z.string().describe("The full journal title.").nullable().optional(),
886
+ abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
887
+ issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
888
+ volume: z.string().describe("The journal volume.").nullable().optional(),
889
+ issue: z.string().describe("The journal issue.").nullable().optional()
889
890
  }).describe("The journal information attached to a PubMed record.").optional(),
890
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
891
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
892
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
893
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
894
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
895
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
896
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
897
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
898
- pmcUrl: external_exports.url().describe("The PubMed Central article URL when available.").nullable().optional()
891
+ publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
892
+ publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
893
+ meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
894
+ keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
895
+ languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
896
+ doi: z.string().describe("The article DOI when present.").nullable().optional(),
897
+ pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
898
+ pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
899
+ pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
899
900
  }).describe("A normalized PubMed article record.")).describe("The normalized articles known to cite the source record.").optional()
900
901
  }).describe("The citing PubMed articles returned for one source record.");
901
- var getArticleReferencesInput = external_exports.strictObject({
902
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
903
- limit: external_exports.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional()
902
+ var getArticleReferencesInput = z.strictObject({
903
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
904
+ limit: z.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional()
904
905
  }).describe("Input parameters for getting references from a source PubMed record.");
905
- var getArticleReferencesOutput = external_exports.strictObject({
906
- sourcePmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
907
- articles: external_exports.array(external_exports.strictObject({
908
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
909
- title: external_exports.string().describe("The article title.").optional(),
910
- abstract: external_exports.array(external_exports.strictObject({
911
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
912
- text: external_exports.string().describe("The normalized abstract section text.").optional()
906
+ var getArticleReferencesOutput = z.strictObject({
907
+ sourcePmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
908
+ articles: z.array(z.strictObject({
909
+ pmid: z.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
910
+ title: z.string().describe("The article title.").optional(),
911
+ abstract: z.array(z.strictObject({
912
+ label: z.string().describe("The structured abstract section label when present.").nullable().optional(),
913
+ text: z.string().describe("The normalized abstract section text.").optional()
913
914
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
914
- authors: external_exports.array(external_exports.strictObject({
915
- name: external_exports.string().describe("The author or collective author name.").optional(),
916
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
917
- affiliations: external_exports.array(external_exports.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
915
+ authors: z.array(z.strictObject({
916
+ name: z.string().describe("The author or collective author name.").optional(),
917
+ orcid: z.string().describe("The author's ORCID when present.").nullable().optional(),
918
+ affiliations: z.array(z.string().describe("One affiliation.")).describe("The author's affiliations.").optional()
918
919
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
919
- journal: external_exports.strictObject({
920
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
921
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
922
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
923
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
924
- issue: external_exports.string().describe("The journal issue.").nullable().optional()
920
+ journal: z.strictObject({
921
+ title: z.string().describe("The full journal title.").nullable().optional(),
922
+ abbreviation: z.string().describe("The NLM journal abbreviation.").nullable().optional(),
923
+ issn: z.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
924
+ volume: z.string().describe("The journal volume.").nullable().optional(),
925
+ issue: z.string().describe("The journal issue.").nullable().optional()
925
926
  }).describe("The journal information attached to a PubMed record.").optional(),
926
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
927
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
928
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
929
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
930
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
931
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
932
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
933
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
934
- pmcUrl: external_exports.url().describe("The PubMed Central article URL when available.").nullable().optional()
927
+ publicationDate: z.string().describe("The publication date or source Medline date.").nullable().optional(),
928
+ publicationTypes: z.array(z.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
929
+ meshTerms: z.array(z.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
930
+ keywords: z.array(z.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
931
+ languages: z.array(z.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
932
+ doi: z.string().describe("The article DOI when present.").nullable().optional(),
933
+ pmcid: z.string().describe("The PubMed Central identifier when present.").nullable().optional(),
934
+ pubmedUrl: z.url().describe("The canonical PubMed record URL.").optional(),
935
+ pmcUrl: z.url().describe("The PubMed Central article URL when available.").nullable().optional()
935
936
  }).describe("A normalized PubMed article record.")).describe("The normalized PubMed articles referenced by the source record.").optional()
936
937
  }).describe("The PubMed references returned for one source record.");
937
- var convertArticleIdsInput = external_exports.strictObject({
938
- ids: external_exports.array(external_exports.string().min(1).describe("One PMID, PMCID, DOI, or author manuscript identifier.")).min(1).max(200).describe("The article identifiers to convert. Every identifier must have the same idType.").optional(),
939
- idType: external_exports.enum(["pmid", "pmcid", "doi", "mid"]).describe("The type shared by every input article identifier.").optional()
938
+ var convertArticleIdsInput = z.strictObject({
939
+ ids: z.array(z.string().min(1).describe("One PMID, PMCID, DOI, or author manuscript identifier.")).min(1).max(200).describe("The article identifiers to convert. Every identifier must have the same idType.").optional(),
940
+ idType: z.enum(["pmid", "pmcid", "doi", "mid"]).describe("The type shared by every input article identifier.").optional()
940
941
  }).describe("Input parameters for converting article identifiers.");
941
- var convertArticleIdsOutput = external_exports.strictObject({
942
- records: external_exports.array(external_exports.strictObject({
943
- requestedId: external_exports.string().describe("The original identifier from the request.").optional(),
944
- pmid: external_exports.string().describe("The PubMed identifier when the article has one.").nullable().optional(),
945
- pmcid: external_exports.string().describe("The PubMed Central identifier when the article is represented in PMC.").nullable().optional(),
946
- doi: external_exports.string().describe("The DOI when PMC reports one.").nullable().optional(),
947
- mid: external_exports.string().describe("The author manuscript identifier when PMC reports one.").nullable().optional(),
948
- error: external_exports.string().describe("The PMC ID Converter error when the requested identifier could not be resolved.").nullable().optional()
942
+ var convertArticleIdsOutput = z.strictObject({
943
+ records: z.array(z.strictObject({
944
+ requestedId: z.string().describe("The original identifier from the request.").optional(),
945
+ pmid: z.string().describe("The PubMed identifier when the article has one.").nullable().optional(),
946
+ pmcid: z.string().describe("The PubMed Central identifier when the article is represented in PMC.").nullable().optional(),
947
+ doi: z.string().describe("The DOI when PMC reports one.").nullable().optional(),
948
+ mid: z.string().describe("The author manuscript identifier when PMC reports one.").nullable().optional(),
949
+ error: z.string().describe("The PMC ID Converter error when the requested identifier could not be resolved.").nullable().optional()
949
950
  }).describe("The available identifiers for one requested article.")).describe("One conversion result for each identifier returned by PMC.").optional()
950
951
  }).describe("The available identifier mappings returned by PMC.");
951
952
  var pubmedActions = {
@@ -953,49 +954,49 @@ var pubmedActions = {
953
954
  description: "Search PubMed with the official query syntax and return normalized article records.",
954
955
  effect: "read",
955
956
  inputSchema: searchArticlesInput,
956
- outputSchema: external_exports.toJSONSchema(searchArticlesOutput, { io: "output", unrepresentable: "any" })
957
+ outputSchema: z.toJSONSchema(searchArticlesOutput, { io: "output", unrepresentable: "any" })
957
958
  },
958
959
  match_citation: {
959
960
  description: "Match one raw biomedical citation to PubMed and return normalized candidate articles.",
960
961
  effect: "write",
961
962
  inputSchema: matchCitationInput,
962
- outputSchema: external_exports.toJSONSchema(matchCitationOutput, { io: "output", unrepresentable: "any" })
963
+ outputSchema: z.toJSONSchema(matchCitationOutput, { io: "output", unrepresentable: "any" })
963
964
  },
964
965
  get_article: {
965
966
  description: "Get one normalized PubMed article by PMID.",
966
967
  effect: "read",
967
968
  inputSchema: getArticleInput,
968
- outputSchema: external_exports.toJSONSchema(getArticleOutput, { io: "output", unrepresentable: "any" })
969
+ outputSchema: z.toJSONSchema(getArticleOutput, { io: "output", unrepresentable: "any" })
969
970
  },
970
971
  get_articles: {
971
972
  description: "Get multiple normalized PubMed articles by PMID in one request.",
972
973
  effect: "read",
973
974
  inputSchema: getArticlesInput,
974
- outputSchema: external_exports.toJSONSchema(getArticlesOutput, { io: "output", unrepresentable: "any" })
975
+ outputSchema: z.toJSONSchema(getArticlesOutput, { io: "output", unrepresentable: "any" })
975
976
  },
976
977
  find_related_articles: {
977
978
  description: "Find normalized PubMed articles related to one source PMID.",
978
979
  effect: "read",
979
980
  inputSchema: findRelatedArticlesInput,
980
- outputSchema: external_exports.toJSONSchema(findRelatedArticlesOutput, { io: "output", unrepresentable: "any" })
981
+ outputSchema: z.toJSONSchema(findRelatedArticlesOutput, { io: "output", unrepresentable: "any" })
981
982
  },
982
983
  get_citing_articles: {
983
984
  description: "Get normalized PubMed articles known to cite one source PMID. PubMed citation coverage depends on data supplied by publishers and NCBI sources and may be incomplete.",
984
985
  effect: "read",
985
986
  inputSchema: getCitingArticlesInput,
986
- outputSchema: external_exports.toJSONSchema(getCitingArticlesOutput, { io: "output", unrepresentable: "any" })
987
+ outputSchema: z.toJSONSchema(getCitingArticlesOutput, { io: "output", unrepresentable: "any" })
987
988
  },
988
989
  get_article_references: {
989
990
  description: "Get normalized PubMed references for one source PMID. References are available only when supplied by publishers or recoverable from PMC data.",
990
991
  effect: "read",
991
992
  inputSchema: getArticleReferencesInput,
992
- outputSchema: external_exports.toJSONSchema(getArticleReferencesOutput, { io: "output", unrepresentable: "any" })
993
+ outputSchema: z.toJSONSchema(getArticleReferencesOutput, { io: "output", unrepresentable: "any" })
993
994
  },
994
995
  convert_article_ids: {
995
996
  description: "Convert PMID, PMCID, DOI, or author manuscript identifiers with the PMC ID Converter. Complete mappings are available only for articles represented in PubMed Central.",
996
997
  effect: "write",
997
998
  inputSchema: convertArticleIdsInput,
998
- outputSchema: external_exports.toJSONSchema(convertArticleIdsOutput, { io: "output", unrepresentable: "any" })
999
+ outputSchema: z.toJSONSchema(convertArticleIdsOutput, { io: "output", unrepresentable: "any" })
999
1000
  }
1000
1001
  };
1001
1002