@tool-bridge/server 0.21.0 → 0.22.1

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-ML2GIGCH.js +790 -0
  3. package/dist/{alt_text_generator_ai-RELFQ5FV.js → alt_text_generator_ai-FGYQAF2A.js} +12 -11
  4. package/dist/{amap-YSYEACKQ.js → amap-G7V65NGK.js} +221 -220
  5. package/dist/anthropic-6ZK24TBB.js +203 -0
  6. package/dist/apify-VDGYHP6W.js +248 -0
  7. package/dist/brave_search-TAATLZOS.js +302 -0
  8. package/dist/chunk-2IAI3XQM.js +302 -0
  9. package/dist/chunk-7ISGFRC6.js +161 -0
  10. package/dist/{chunk-Q74GLIDK.js → chunk-BNMLA2RC.js} +6 -5
  11. package/dist/chunk-HA4BGL6C.js +8429 -0
  12. package/dist/{chunk-MDY7K5CX.js → chunk-RMAWSG7E.js} +20135 -26920
  13. package/dist/{chunk-JEWFX6Z6.js → chunk-RTW5VRTK.js} +3 -3
  14. package/dist/chunk-U7PTOA3U.js +7320 -0
  15. package/dist/chunk-UY6ANCOY.js +378 -0
  16. package/dist/{chunk-QR4LK3HF.js → chunk-X7ZUTKHR.js} +4 -2
  17. package/dist/circleci-BQ2UWXL2.js +389 -0
  18. package/dist/clerk-2JYWQNOI.js +1019 -0
  19. package/dist/cohere-6MI7AQM4.js +185 -0
  20. package/dist/{confluence-52I37IUT.js → confluence-6Y6GDETF.js} +105 -104
  21. package/dist/{convertapi-3TRJ3WEO.js → convertapi-HBZCSWOX.js} +32 -31
  22. package/dist/{currencyapi-LWEANWVI.js → currencyapi-337U5TGI.js} +71 -71
  23. package/dist/deepseek-OSPASO7O.js +210 -0
  24. package/dist/docker_hub-3ATQOY5L.js +933 -0
  25. package/dist/dropbox-LSA4GM2Y.js +1305 -0
  26. package/dist/dub-VZPJSPI6.js +680 -0
  27. package/dist/e2b-6SDYQZL2.js +278 -0
  28. package/dist/exa-B6EUYDVP.js +332 -0
  29. package/dist/{fal_ai-VJPMCNRH.js → fal_ai-K4Q27IME.js} +81 -80
  30. package/dist/feishu-4TKXG4SU.js +11975 -0
  31. package/dist/{feishu_custom_bot-ADSE23KU.js → feishu_custom_bot-7CTEAKRB.js} +57 -53
  32. package/dist/figma-OUKSZLD5.js +777 -0
  33. package/dist/firehydrant-7MOYL7QH.js +563 -0
  34. package/dist/{fixer-OAMF4DKP.js → fixer-H2BV2NO4.js} +34 -33
  35. package/dist/fly-PXKY6PNH.js +469 -0
  36. package/dist/{front-6GTVYKUM.js → front-UZYIV5DW.js} +104 -104
  37. package/dist/geocodio-NSYO7TFP.js +213 -0
  38. package/dist/ghost-QBKKQQMF.js +338 -0
  39. package/dist/github-ENLSJ4CL.js +5421 -0
  40. package/dist/gmail-KQSDEB47.js +1887 -0
  41. package/dist/googlecalendar-5YCX4SZF.js +2524 -0
  42. package/dist/{googledocs-YNKKBM6Q.js → googledocs-SSWIVFKA.js} +343 -341
  43. package/dist/{grafana-353VSGXN.js → grafana-TF2LXDQA.js} +221 -220
  44. package/dist/graphhopper-CURBVHYK.js +325 -0
  45. package/dist/index.d.ts +1132 -332
  46. package/dist/index.js +31 -13
  47. package/dist/{ip2proxy-DBGRWH7S.js → ip2proxy-YNVMTZEM.js} +28 -27
  48. package/dist/ipgeolocation_io-NAU7VJ4J.js +315 -0
  49. package/dist/ipqualityscore-OT63L4TI.js +279 -0
  50. package/dist/{jina_ai-L5BH455V.js → jina_ai-6WBMBGWM.js} +23 -23
  51. package/dist/{jira-IGTILUZA.js → jira-DVDVTHNO.js} +118 -117
  52. package/dist/langsmith-IM5N4YAU.js +593 -0
  53. package/dist/lemlist-277SHUQF.js +289 -0
  54. package/dist/{linear-HLGOWISN.js → linear-AEPH7B5V.js} +329 -327
  55. package/dist/logsnag-VEWRAGBG.js +150 -0
  56. package/dist/main.js +57 -279
  57. package/dist/{mattermost-BONGXVC7.js → mattermost-Q3A2BIZA.js} +59 -58
  58. package/dist/mem0-AXS7GZGI.js +544 -0
  59. package/dist/memos-7TXG4ZTU.js +744 -0
  60. package/dist/{metabase-ZHXHRHZK.js → metabase-NSVACWQM.js} +90 -89
  61. package/dist/mistral_ai-YZ52RGD4.js +1196 -0
  62. package/dist/{mother_duck-TKVQM35M.js → mother_duck-XLLL6FVL.js} +94 -93
  63. package/dist/ngrok-4O4W3WZW.js +356 -0
  64. package/dist/{notes-KXRNNYDW.js → notes-YTB3TJOO.js} +11 -9
  65. package/dist/notion-4W4O7J7V.js +940 -0
  66. package/dist/open_exchange_rates-23QJXVO5.js +215 -0
  67. package/dist/openai-ZS7GLSLH.js +800 -0
  68. package/dist/opengraph_io-PMVH7OYI.js +362 -0
  69. package/dist/openrouter-ONRGFNB6.js +441 -0
  70. package/dist/outline-UCUYZZ7J.js +599 -0
  71. package/dist/paddle-35HTKTUL.js +454 -0
  72. package/dist/perplexity-NVOBYN24.js +220 -0
  73. package/dist/pinecone-55CJY73C.js +571 -0
  74. package/dist/{pipedrive-CW7HONYW.js → pipedrive-WMCAKS72.js} +99 -98
  75. package/dist/polar-SM4ZM53B.js +395 -0
  76. package/dist/posthog-NWCXVXNJ.js +3464 -0
  77. package/dist/postmark-QJV5PHUQ.js +427 -0
  78. package/dist/{prerender-5EAY7GDM.js → prerender-2W7UT4SC.js} +31 -30
  79. package/dist/{pubmed-GRQUBGVA.js → pubmed-VVV7XYLU.js} +241 -239
  80. package/dist/{railway-FTM75TMX.js → railway-KGI57S3O.js} +118 -117
  81. package/dist/readwise-AGHTQB42.js +470 -0
  82. package/dist/render-O4HBROCK.js +461 -0
  83. package/dist/{replicate-RJCMDB7H.js → replicate-KWBOMX7D.js} +81 -80
  84. package/dist/{resend-YYN22NIL.js → resend-DRH6Y6I4.js} +20 -16
  85. package/dist/rootly-XGCUDW6X.js +336 -0
  86. package/dist/{scrapfly-ZJJ6XM4Q.js → scrapfly-OIQ3OY6L.js} +62 -61
  87. package/dist/{scrapingbee-QNGEOD6D.js → scrapingbee-OCZO4FHX.js} +56 -56
  88. package/dist/{screenshot_fyi-SPZAABVD.js → screenshot_fyi-CUNGFZOC.js} +16 -16
  89. package/dist/semantic_scholar-3UJRLKES.js +611 -0
  90. package/dist/{sentry-SJ5NN4C4.js → sentry-5BWVZFJV.js} +208 -207
  91. package/dist/{shodan-YMGOY7KW.js → shodan-HI37CTEW.js} +62 -61
  92. package/dist/shopify-LJ2EV2HH.js +610 -0
  93. package/dist/stripe-3LHMV55K.js +585 -0
  94. package/dist/{supabase-GQ2OFVIL.js → supabase-H2KPX3Q2.js} +245 -244
  95. package/dist/tavily-FBEWGH3Z.js +326 -0
  96. package/dist/telegram-MYYO3JND.js +1767 -0
  97. package/dist/{telnyx-4JGMC3K7.js → telnyx-H4ALEGAX.js} +57 -56
  98. package/dist/todoist-OBWICA5Q.js +664 -0
  99. package/dist/trello-GUFUJRWO.js +1080 -0
  100. package/dist/turso-NIAK4UMS.js +416 -0
  101. package/dist/{twilio-VYF3HUU6.js → twilio-K6SLK2CX.js} +72 -70
  102. package/dist/umami-42RS2EPS.js +389 -0
  103. package/dist/unsplash-V7TOTETT.js +351 -0
  104. package/dist/{upstash_redis-IUM2HDLU.js → upstash_redis-AWQMB6Y3.js} +51 -50
  105. package/dist/uptimerobot-AZC2DHOT.js +483 -0
  106. package/dist/v2ex-4TVRNMLS.js +667 -0
  107. package/dist/vercel-DPHTJ3XR.js +1076 -0
  108. package/dist/{wolfram_alpha_api-6CRVUZOJ.js → wolfram_alpha_api-XAG7IXBW.js} +36 -35
  109. package/dist/wordpress-KMPKVGUX.js +812 -0
  110. package/dist/workos-PKB2YR7S.js +664 -0
  111. package/dist/zhihu-Y4H4XYPB.js +254 -0
  112. package/package.json +18 -9
  113. package/dist/airtable-DMJEEGJP.js +0 -789
  114. package/dist/anthropic-D5X5GSYE.js +0 -202
  115. package/dist/apify-5NVFU3IZ.js +0 -247
  116. package/dist/brave_search-X557FMGO.js +0 -301
  117. package/dist/chunk-MZCIPUNQ.js +0 -23424
  118. package/dist/chunk-ZTTN6AJG.js +0 -977
  119. package/dist/circleci-3P3QTUX2.js +0 -388
  120. package/dist/clerk-GNMZQ2MY.js +0 -1019
  121. package/dist/cloudflare_dns-VWZH3ZTR.js +0 -588
  122. package/dist/cohere-C7QVIIMG.js +0 -185
  123. package/dist/deepseek-5U24YG4P.js +0 -209
  124. package/dist/docker_hub-CMISLRSE.js +0 -932
  125. package/dist/dropbox-TW4QN6FT.js +0 -1304
  126. package/dist/dub-EFXGI5UH.js +0 -679
  127. package/dist/e2b-PHM63OVF.js +0 -277
  128. package/dist/exa-DYOQWURR.js +0 -331
  129. package/dist/feishu-TFIZXPIN.js +0 -231
  130. package/dist/figma-4AK47AYY.js +0 -773
  131. package/dist/firehydrant-RGPTW4EA.js +0 -562
  132. package/dist/fly-YB4AQD4O.js +0 -468
  133. package/dist/geocodio-YRT4K25M.js +0 -212
  134. package/dist/ghost-JCW6UIP2.js +0 -337
  135. package/dist/github-CEGVRMNX.js +0 -5420
  136. package/dist/gmail-JCMJD55P.js +0 -1886
  137. package/dist/googlecalendar-2EAW4MNM.js +0 -2522
  138. package/dist/graphhopper-H3IVJNDS.js +0 -324
  139. package/dist/ipgeolocation_io-5I2BDVMG.js +0 -315
  140. package/dist/ipqualityscore-ILV7TQCV.js +0 -277
  141. package/dist/langsmith-BYRX4AOF.js +0 -592
  142. package/dist/lemlist-ZGNYTIQO.js +0 -288
  143. package/dist/logsnag-5RGTMTU2.js +0 -150
  144. package/dist/mem0-RUVNUPTE.js +0 -543
  145. package/dist/memos-TED4HI54.js +0 -739
  146. package/dist/mistral_ai-NGP5SHU7.js +0 -1195
  147. package/dist/ngrok-BYCUJ7QV.js +0 -356
  148. package/dist/notion-2ILYKJOO.js +0 -936
  149. package/dist/open_exchange_rates-JU4DC6HZ.js +0 -214
  150. package/dist/openai-6SOT26ZK.js +0 -799
  151. package/dist/opengraph_io-ZEFHV2OL.js +0 -361
  152. package/dist/openrouter-R4P7JL5L.js +0 -437
  153. package/dist/outline-VCTQ5V2X.js +0 -595
  154. package/dist/paddle-AZOAKBJS.js +0 -453
  155. package/dist/perplexity-OMRLGVAT.js +0 -219
  156. package/dist/pinecone-DI62W3ZX.js +0 -570
  157. package/dist/polar-5DRGTXNR.js +0 -394
  158. package/dist/posthog-3DTHFCKE.js +0 -3463
  159. package/dist/postmark-ME2V2XXI.js +0 -426
  160. package/dist/readwise-IJQGV6IQ.js +0 -469
  161. package/dist/render-TMSPHRTY.js +0 -460
  162. package/dist/rootly-7RXE4K7L.js +0 -336
  163. package/dist/semantic_scholar-SDPVGDDI.js +0 -610
  164. package/dist/shopify-SU5ABP54.js +0 -609
  165. package/dist/stripe-JAC425KE.js +0 -584
  166. package/dist/tavily-Y7MDA5CI.js +0 -326
  167. package/dist/telegram-OIDT3ZLH.js +0 -1766
  168. package/dist/todoist-O7S2OUGX.js +0 -663
  169. package/dist/trello-3LDE4TAQ.js +0 -1079
  170. package/dist/turso-MUQ44KCA.js +0 -415
  171. package/dist/umami-SVQIK26J.js +0 -388
  172. package/dist/unsplash-333XYDCJ.js +0 -350
  173. package/dist/uptimerobot-7ZRU2NJV.js +0 -482
  174. package/dist/v2ex-AVSJCQPS.js +0 -666
  175. package/dist/vercel-J7RGXNSA.js +0 -1075
  176. package/dist/wordpress-THOJLPKA.js +0 -811
  177. package/dist/workos-ENTGRWF2.js +0 -663
  178. package/dist/zhihu-W2BXICTX.js +0 -253
@@ -8,14 +8,15 @@ import {
8
8
  import {
9
9
  createProviderPlugin,
10
10
  upstreamError
11
- } from "./chunk-QR4LK3HF.js";
11
+ } from "./chunk-X7ZUTKHR.js";
12
12
  import {
13
13
  guardedFetch
14
- } from "./chunk-ZTTN6AJG.js";
14
+ } from "./chunk-7ISGFRC6.js";
15
+ import "./chunk-UY6ANCOY.js";
15
16
  import {
16
17
  TBError,
17
- external_exports
18
- } from "./chunk-MZCIPUNQ.js";
18
+ isTBError
19
+ } from "./chunk-HA4BGL6C.js";
19
20
  import "./chunk-U67V476Y.js";
20
21
 
21
22
  // ../plugins/src/pubmed/api.ts
@@ -142,7 +143,7 @@ async function requestText(input) {
142
143
  signal: AbortSignal.timeout(REQUEST_TIMEOUT_MS)
143
144
  });
144
145
  } catch (error) {
145
- if (error instanceof TBError) throw error;
146
+ if (isTBError(error)) throw error;
146
147
  if (error instanceof Error && error.name === "TimeoutError") {
147
148
  throw upstreamError(504, `${input.source} request timed out`);
148
149
  }
@@ -675,276 +676,277 @@ async function convertArticleIds(input) {
675
676
  }
676
677
 
677
678
  // ../plugins/src/pubmed/schema.ts
678
- var searchArticlesInput = external_exports.strictObject({
679
- 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]."),
680
- offset: external_exports.int().min(0).max(9999).default(0).describe("The zero-based search result offset.").optional(),
681
- limit: external_exports.int().min(1).max(50).default(10).describe("The maximum number of articles to return.").optional(),
682
- sort: external_exports.enum(["relevance", "publication_date", "first_author", "journal"]).describe("The PubMed result sort order.").optional(),
683
- publicationDateRange: external_exports.strictObject({
684
- from: external_exports.iso.date().describe("The earliest publication date to include.").optional(),
685
- 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()
686
688
  }).describe("An inclusive PubMed publication date range.").optional()
687
689
  }).describe("Input parameters for searching PubMed articles.");
688
- var searchArticlesOutput = external_exports.strictObject({
689
- total: external_exports.int().min(0).describe("The total number of matching PubMed records.").optional(),
690
- offset: external_exports.int().min(0).describe("The zero-based result offset.").optional(),
691
- limit: external_exports.int().min(1).describe("The requested page size.").optional(),
692
- queryTranslation: external_exports.string().describe("The query translation reported by PubMed.").nullable().optional(),
693
- articles: external_exports.array(external_exports.strictObject({
694
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
695
- title: external_exports.string().describe("The article title.").optional(),
696
- abstract: external_exports.array(external_exports.strictObject({
697
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
698
- 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()
699
701
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
700
- authors: external_exports.array(external_exports.strictObject({
701
- name: external_exports.string().describe("The author or collective author name.").optional(),
702
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
703
- 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()
704
706
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
705
- journal: external_exports.strictObject({
706
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
707
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
708
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
709
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
710
- 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()
711
713
  }).describe("The journal information attached to a PubMed record.").optional(),
712
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
713
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
714
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
715
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
716
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
717
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
718
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
719
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
720
- 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()
721
723
  }).describe("A normalized PubMed article record.")).describe("The normalized articles in this page.").optional()
722
724
  }).describe("A page of normalized PubMed search results.");
723
- var matchCitationInput = external_exports.strictObject({
724
- 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()
725
727
  }).describe("Input parameters for matching one citation.");
726
- var matchCitationOutput = external_exports.strictObject({
727
- matched: external_exports.boolean().describe("Whether PubMed returned at least one candidate article.").optional(),
728
- articles: external_exports.array(external_exports.strictObject({
729
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
730
- title: external_exports.string().describe("The article title.").optional(),
731
- abstract: external_exports.array(external_exports.strictObject({
732
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
733
- 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()
734
736
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
735
- authors: external_exports.array(external_exports.strictObject({
736
- name: external_exports.string().describe("The author or collective author name.").optional(),
737
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
738
- 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()
739
741
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
740
- journal: external_exports.strictObject({
741
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
742
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
743
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
744
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
745
- 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()
746
748
  }).describe("The journal information attached to a PubMed record.").optional(),
747
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
748
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
749
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
750
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
751
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
752
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
753
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
754
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
755
- 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()
756
758
  }).describe("A normalized PubMed article record.")).describe("The normalized candidate articles returned by PubMed.").optional()
757
759
  }).describe("The PubMed articles matched from the citation text.");
758
- var getArticleInput = external_exports.strictObject({
759
- 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()
760
762
  }).describe("Input parameters for getting one PubMed article.");
761
- var getArticleOutput = external_exports.strictObject({
762
- found: external_exports.boolean().describe("Whether PubMed returned the requested record.").optional(),
763
- article: external_exports.strictObject({
764
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
765
- title: external_exports.string().describe("The article title.").optional(),
766
- abstract: external_exports.array(external_exports.strictObject({
767
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
768
- 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()
769
771
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
770
- authors: external_exports.array(external_exports.strictObject({
771
- name: external_exports.string().describe("The author or collective author name.").optional(),
772
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
773
- 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()
774
776
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
775
- journal: external_exports.strictObject({
776
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
777
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
778
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
779
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
780
- 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()
781
783
  }).describe("The journal information attached to a PubMed record.").optional(),
782
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
783
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
784
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
785
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
786
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
787
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
788
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
789
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
790
- 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()
791
793
  }).describe("A normalized PubMed article record.").nullable().optional()
792
794
  }).describe("The result of retrieving one PubMed article.");
793
- var getArticlesInput = external_exports.strictObject({
794
- 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()
795
797
  }).describe("Input parameters for getting multiple PubMed articles.");
796
- var getArticlesOutput = external_exports.strictObject({
797
- articles: external_exports.array(external_exports.strictObject({
798
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
799
- title: external_exports.string().describe("The article title.").optional(),
800
- abstract: external_exports.array(external_exports.strictObject({
801
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
802
- 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()
803
805
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
804
- authors: external_exports.array(external_exports.strictObject({
805
- name: external_exports.string().describe("The author or collective author name.").optional(),
806
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
807
- 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()
808
810
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
809
- journal: external_exports.strictObject({
810
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
811
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
812
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
813
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
814
- 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()
815
817
  }).describe("The journal information attached to a PubMed record.").optional(),
816
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
817
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
818
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
819
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
820
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
821
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
822
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
823
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
824
- 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()
825
827
  }).describe("A normalized PubMed article record.")).describe("The PubMed records that were found.").optional(),
826
- 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()
827
829
  }).describe("The result of retrieving multiple PubMed articles.");
828
- var findRelatedArticlesInput = external_exports.strictObject({
829
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
830
- 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()
831
833
  }).describe("Input parameters for finding related PubMed articles.");
832
- var findRelatedArticlesOutput = external_exports.strictObject({
833
- sourcePmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
834
- articles: external_exports.array(external_exports.strictObject({
835
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
836
- title: external_exports.string().describe("The article title.").optional(),
837
- abstract: external_exports.array(external_exports.strictObject({
838
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
839
- 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()
840
842
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
841
- authors: external_exports.array(external_exports.strictObject({
842
- name: external_exports.string().describe("The author or collective author name.").optional(),
843
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
844
- 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()
845
847
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
846
- journal: external_exports.strictObject({
847
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
848
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
849
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
850
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
851
- 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()
852
854
  }).describe("The journal information attached to a PubMed record.").optional(),
853
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
854
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
855
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
856
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
857
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
858
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
859
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
860
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
861
- 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()
862
864
  }).describe("A normalized PubMed article record.")).describe("The normalized related PubMed articles.").optional()
863
865
  }).describe("The related PubMed articles returned for one source record.");
864
- var getCitingArticlesInput = external_exports.strictObject({
865
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
866
- 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()
867
869
  }).describe("Input parameters for getting articles that cite a source PubMed record.");
868
- var getCitingArticlesOutput = external_exports.strictObject({
869
- sourcePmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
870
- articles: external_exports.array(external_exports.strictObject({
871
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
872
- title: external_exports.string().describe("The article title.").optional(),
873
- abstract: external_exports.array(external_exports.strictObject({
874
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
875
- 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()
876
878
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
877
- authors: external_exports.array(external_exports.strictObject({
878
- name: external_exports.string().describe("The author or collective author name.").optional(),
879
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
880
- 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()
881
883
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
882
- journal: external_exports.strictObject({
883
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
884
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
885
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
886
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
887
- 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()
888
890
  }).describe("The journal information attached to a PubMed record.").optional(),
889
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
890
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
891
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
892
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
893
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
894
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
895
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
896
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
897
- 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()
898
900
  }).describe("A normalized PubMed article record.")).describe("The normalized articles known to cite the source record.").optional()
899
901
  }).describe("The citing PubMed articles returned for one source record.");
900
- var getArticleReferencesInput = external_exports.strictObject({
901
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID)."),
902
- 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()
903
905
  }).describe("Input parameters for getting references from a source PubMed record.");
904
- var getArticleReferencesOutput = external_exports.strictObject({
905
- sourcePmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
906
- articles: external_exports.array(external_exports.strictObject({
907
- pmid: external_exports.string().min(1).regex(new RegExp("^[0-9]+$")).describe("The numeric PubMed identifier (PMID).").optional(),
908
- title: external_exports.string().describe("The article title.").optional(),
909
- abstract: external_exports.array(external_exports.strictObject({
910
- label: external_exports.string().describe("The structured abstract section label when present.").nullable().optional(),
911
- 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()
912
914
  }).describe("One section of a PubMed abstract.")).describe("The structured or unstructured abstract sections.").optional(),
913
- authors: external_exports.array(external_exports.strictObject({
914
- name: external_exports.string().describe("The author or collective author name.").optional(),
915
- orcid: external_exports.string().describe("The author's ORCID when present.").nullable().optional(),
916
- 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()
917
919
  }).describe("A normalized PubMed author or author group.")).describe("The article authors.").optional(),
918
- journal: external_exports.strictObject({
919
- title: external_exports.string().describe("The full journal title.").nullable().optional(),
920
- abbreviation: external_exports.string().describe("The NLM journal abbreviation.").nullable().optional(),
921
- issn: external_exports.string().describe("The journal ISSN returned by PubMed.").nullable().optional(),
922
- volume: external_exports.string().describe("The journal volume.").nullable().optional(),
923
- 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()
924
926
  }).describe("The journal information attached to a PubMed record.").optional(),
925
- publicationDate: external_exports.string().describe("The publication date or source Medline date.").nullable().optional(),
926
- publicationTypes: external_exports.array(external_exports.string().describe("One publication type.")).describe("The PubMed publication types.").optional(),
927
- meshTerms: external_exports.array(external_exports.string().describe("One MeSH descriptor.")).describe("The assigned Medical Subject Headings.").optional(),
928
- keywords: external_exports.array(external_exports.string().describe("One keyword.")).describe("The keywords attached to the PubMed record.").optional(),
929
- languages: external_exports.array(external_exports.string().describe("One language code.")).describe("The article language codes returned by PubMed.").optional(),
930
- doi: external_exports.string().describe("The article DOI when present.").nullable().optional(),
931
- pmcid: external_exports.string().describe("The PubMed Central identifier when present.").nullable().optional(),
932
- pubmedUrl: external_exports.url().describe("The canonical PubMed record URL.").optional(),
933
- 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()
934
936
  }).describe("A normalized PubMed article record.")).describe("The normalized PubMed articles referenced by the source record.").optional()
935
937
  }).describe("The PubMed references returned for one source record.");
936
- var convertArticleIdsInput = external_exports.strictObject({
937
- 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(),
938
- 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()
939
941
  }).describe("Input parameters for converting article identifiers.");
940
- var convertArticleIdsOutput = external_exports.strictObject({
941
- records: external_exports.array(external_exports.strictObject({
942
- requestedId: external_exports.string().describe("The original identifier from the request.").optional(),
943
- pmid: external_exports.string().describe("The PubMed identifier when the article has one.").nullable().optional(),
944
- pmcid: external_exports.string().describe("The PubMed Central identifier when the article is represented in PMC.").nullable().optional(),
945
- doi: external_exports.string().describe("The DOI when PMC reports one.").nullable().optional(),
946
- mid: external_exports.string().describe("The author manuscript identifier when PMC reports one.").nullable().optional(),
947
- 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()
948
950
  }).describe("The available identifiers for one requested article.")).describe("One conversion result for each identifier returned by PMC.").optional()
949
951
  }).describe("The available identifier mappings returned by PMC.");
950
952
  var pubmedActions = {
@@ -952,49 +954,49 @@ var pubmedActions = {
952
954
  description: "Search PubMed with the official query syntax and return normalized article records.",
953
955
  effect: "read",
954
956
  inputSchema: searchArticlesInput,
955
- outputSchema: external_exports.toJSONSchema(searchArticlesOutput, { io: "output", unrepresentable: "any" })
957
+ outputSchema: z.toJSONSchema(searchArticlesOutput, { io: "output", unrepresentable: "any" })
956
958
  },
957
959
  match_citation: {
958
960
  description: "Match one raw biomedical citation to PubMed and return normalized candidate articles.",
959
961
  effect: "write",
960
962
  inputSchema: matchCitationInput,
961
- outputSchema: external_exports.toJSONSchema(matchCitationOutput, { io: "output", unrepresentable: "any" })
963
+ outputSchema: z.toJSONSchema(matchCitationOutput, { io: "output", unrepresentable: "any" })
962
964
  },
963
965
  get_article: {
964
966
  description: "Get one normalized PubMed article by PMID.",
965
967
  effect: "read",
966
968
  inputSchema: getArticleInput,
967
- outputSchema: external_exports.toJSONSchema(getArticleOutput, { io: "output", unrepresentable: "any" })
969
+ outputSchema: z.toJSONSchema(getArticleOutput, { io: "output", unrepresentable: "any" })
968
970
  },
969
971
  get_articles: {
970
972
  description: "Get multiple normalized PubMed articles by PMID in one request.",
971
973
  effect: "read",
972
974
  inputSchema: getArticlesInput,
973
- outputSchema: external_exports.toJSONSchema(getArticlesOutput, { io: "output", unrepresentable: "any" })
975
+ outputSchema: z.toJSONSchema(getArticlesOutput, { io: "output", unrepresentable: "any" })
974
976
  },
975
977
  find_related_articles: {
976
978
  description: "Find normalized PubMed articles related to one source PMID.",
977
979
  effect: "read",
978
980
  inputSchema: findRelatedArticlesInput,
979
- outputSchema: external_exports.toJSONSchema(findRelatedArticlesOutput, { io: "output", unrepresentable: "any" })
981
+ outputSchema: z.toJSONSchema(findRelatedArticlesOutput, { io: "output", unrepresentable: "any" })
980
982
  },
981
983
  get_citing_articles: {
982
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.",
983
985
  effect: "read",
984
986
  inputSchema: getCitingArticlesInput,
985
- outputSchema: external_exports.toJSONSchema(getCitingArticlesOutput, { io: "output", unrepresentable: "any" })
987
+ outputSchema: z.toJSONSchema(getCitingArticlesOutput, { io: "output", unrepresentable: "any" })
986
988
  },
987
989
  get_article_references: {
988
990
  description: "Get normalized PubMed references for one source PMID. References are available only when supplied by publishers or recoverable from PMC data.",
989
991
  effect: "read",
990
992
  inputSchema: getArticleReferencesInput,
991
- outputSchema: external_exports.toJSONSchema(getArticleReferencesOutput, { io: "output", unrepresentable: "any" })
993
+ outputSchema: z.toJSONSchema(getArticleReferencesOutput, { io: "output", unrepresentable: "any" })
992
994
  },
993
995
  convert_article_ids: {
994
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.",
995
997
  effect: "write",
996
998
  inputSchema: convertArticleIdsInput,
997
- outputSchema: external_exports.toJSONSchema(convertArticleIdsOutput, { io: "output", unrepresentable: "any" })
999
+ outputSchema: z.toJSONSchema(convertArticleIdsOutput, { io: "output", unrepresentable: "any" })
998
1000
  }
999
1001
  };
1000
1002