@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.
- package/dist/admin.js +170 -0
- package/dist/airtable-VMQVXLHK.js +790 -0
- package/dist/{alt_text_generator_ai-W7O34SNG.js → alt_text_generator_ai-FTWY4RU4.js} +12 -11
- package/dist/{amap-VOX4T2AW.js → amap-OK5VBHYC.js} +221 -220
- package/dist/anthropic-S67AZFZ3.js +203 -0
- package/dist/apify-ZE6MYQI3.js +248 -0
- package/dist/brave_search-TG2M2KOD.js +302 -0
- package/dist/chunk-2JNAI4OC.js +161 -0
- package/dist/{chunk-KMTT3I6D.js → chunk-4XJPN3DY.js} +19392 -26136
- package/dist/chunk-5ICRY3VU.js +8432 -0
- package/dist/chunk-7CTWGTDU.js +302 -0
- package/dist/chunk-BADVCN6K.js +378 -0
- package/dist/{chunk-XYBU3WZH.js → chunk-TDAWLMDE.js} +3 -3
- package/dist/chunk-U7PTOA3U.js +7320 -0
- package/dist/{chunk-E6JCVKW6.js → chunk-VWRUGUSU.js} +3 -3
- package/dist/{chunk-ATK45BXV.js → chunk-WJHG6OK7.js} +4 -2
- package/dist/circleci-3L3WJVSK.js +389 -0
- package/dist/clerk-EZPF2V7T.js +1019 -0
- package/dist/cohere-U27DPO64.js +185 -0
- package/dist/{confluence-B3EWPZVE.js → confluence-G2KL6ERH.js} +105 -104
- package/dist/{convertapi-EUWSQYPF.js → convertapi-L4CLJ2M3.js} +32 -31
- package/dist/{currencyapi-KVTIK3GL.js → currencyapi-YPYXG7YY.js} +71 -71
- package/dist/deepseek-6HT6WF3M.js +210 -0
- package/dist/docker_hub-LPE3PCVB.js +933 -0
- package/dist/dropbox-V56ABHTA.js +1305 -0
- package/dist/dub-6OKQ7MHT.js +680 -0
- package/dist/e2b-JS2U2QFU.js +278 -0
- package/dist/exa-DPWVYXSP.js +332 -0
- package/dist/{fal_ai-23E7JPNT.js → fal_ai-DK6Y27ZF.js} +81 -80
- package/dist/{feishu-7QRIDUV6.js → feishu-K7EGSRF3.js} +528 -572
- package/dist/{feishu_custom_bot-TJ4K7QNJ.js → feishu_custom_bot-2JUGFYNG.js} +57 -53
- package/dist/figma-FT5I7ITD.js +777 -0
- package/dist/firehydrant-EIKLKHX2.js +563 -0
- package/dist/{fixer-BWON27UO.js → fixer-U5QXIAKD.js} +34 -33
- package/dist/fly-T3JYFZ2M.js +469 -0
- package/dist/{front-QCGXYEDJ.js → front-D72MGVOR.js} +104 -104
- package/dist/geocodio-BOTD5TI5.js +213 -0
- package/dist/ghost-KYP7SZGB.js +338 -0
- package/dist/github-AGMZT3VY.js +5421 -0
- package/dist/gmail-BLJNJOBG.js +1887 -0
- package/dist/googlecalendar-GTHWNCF6.js +2524 -0
- package/dist/{googledocs-BUHL4J2H.js → googledocs-6EEDMEBQ.js} +341 -340
- package/dist/{grafana-GLU2DWF2.js → grafana-GMW6EKSQ.js} +221 -220
- package/dist/graphhopper-6OLGBDGB.js +325 -0
- package/dist/index.d.ts +1132 -332
- package/dist/index.js +31 -14
- package/dist/{ip2proxy-EZ64Y4ZH.js → ip2proxy-4QN42E6T.js} +28 -27
- package/dist/ipgeolocation_io-SK4XKDA2.js +315 -0
- package/dist/ipqualityscore-6ANBPXKT.js +279 -0
- package/dist/{jina_ai-EFBHTBXL.js → jina_ai-IHPSVRM5.js} +23 -23
- package/dist/{jira-HQSHAA5K.js → jira-46KKM4LC.js} +118 -117
- package/dist/langsmith-JZA345I5.js +593 -0
- package/dist/lemlist-43IV7DK6.js +289 -0
- package/dist/{linear-K7RYFYAD.js → linear-5LFH7XNL.js} +327 -326
- package/dist/logsnag-5RMYAHIL.js +150 -0
- package/dist/main.js +57 -280
- package/dist/{mattermost-S2BRCWLQ.js → mattermost-XFL6SHGG.js} +59 -58
- package/dist/mem0-NYO4DTP6.js +544 -0
- package/dist/memos-37MPQOLV.js +744 -0
- package/dist/{metabase-MMSEPCOF.js → metabase-KYBKZFMG.js} +90 -89
- package/dist/mistral_ai-6PL3K4PM.js +1196 -0
- package/dist/{mother_duck-H7PCQNZ2.js → mother_duck-2NH7W5M5.js} +94 -93
- package/dist/ngrok-UO6CDYCA.js +356 -0
- package/dist/{notes-PFMKRO33.js → notes-I3P32WP4.js} +11 -9
- package/dist/notion-BEAJFUOE.js +940 -0
- package/dist/open_exchange_rates-CMF62JB4.js +215 -0
- package/dist/openai-IHOMKVND.js +800 -0
- package/dist/opengraph_io-ZQ2FGLHX.js +362 -0
- package/dist/openrouter-HXLW3NR5.js +441 -0
- package/dist/outline-ELCP4NEU.js +599 -0
- package/dist/paddle-O77LALVN.js +454 -0
- package/dist/perplexity-JCU654QV.js +220 -0
- package/dist/pinecone-W5W4LRKL.js +571 -0
- package/dist/{pipedrive-Y2O7QGFF.js → pipedrive-ITMJLLPZ.js} +99 -98
- package/dist/polar-R33XU4L3.js +395 -0
- package/dist/posthog-JVNTOLTV.js +3464 -0
- package/dist/postmark-6SBG7HWV.js +427 -0
- package/dist/{prerender-MENYM2TY.js → prerender-GPNKTNFC.js} +31 -30
- package/dist/{pubmed-GOXUVVH5.js → pubmed-UP6ZEEIH.js} +239 -238
- package/dist/{railway-V2SID4WV.js → railway-KWEWXHTY.js} +118 -117
- package/dist/readwise-BLATSMC3.js +470 -0
- package/dist/render-QYRVIXII.js +461 -0
- package/dist/{replicate-756MXPYX.js → replicate-JYTWH4NF.js} +81 -80
- package/dist/{resend-ZKH3BTBI.js → resend-L5N75SZM.js} +20 -16
- package/dist/rootly-MHCPEQ26.js +336 -0
- package/dist/{scrapfly-NSRHFDIQ.js → scrapfly-PTPGYSJM.js} +62 -61
- package/dist/{scrapingbee-OQHLAVEY.js → scrapingbee-JN6UH5PY.js} +56 -56
- package/dist/{screenshot_fyi-DVWG3AXC.js → screenshot_fyi-4QRVSV55.js} +16 -16
- package/dist/semantic_scholar-LRSWA2GE.js +611 -0
- package/dist/{sentry-546MNDJG.js → sentry-2G6PF5W6.js} +208 -207
- package/dist/{shodan-C3OON3Z3.js → shodan-WKKPP5C6.js} +62 -61
- package/dist/shopify-64YDK5T2.js +610 -0
- package/dist/stripe-QAIGGOTF.js +585 -0
- package/dist/{supabase-U2SL4D63.js → supabase-WHTGR6ND.js} +245 -244
- package/dist/tavily-QIXCDDWO.js +326 -0
- package/dist/telegram-E6G7CWI6.js +1767 -0
- package/dist/{telnyx-CXQ4EZUX.js → telnyx-ZDVVS7PK.js} +57 -56
- package/dist/todoist-DMYF3G7J.js +664 -0
- package/dist/trello-HY2RYIRP.js +1080 -0
- package/dist/turso-HAQWMGRP.js +416 -0
- package/dist/{twilio-4PDBJKWX.js → twilio-MLXYPHJE.js} +70 -69
- package/dist/umami-DZHBLPVG.js +389 -0
- package/dist/unsplash-GS2OPXKE.js +351 -0
- package/dist/{upstash_redis-G4LQBYHA.js → upstash_redis-XMXWTNAJ.js} +51 -50
- package/dist/uptimerobot-TF5WRZ4G.js +483 -0
- package/dist/v2ex-2BVXAPDF.js +667 -0
- package/dist/vercel-YMJGQYJE.js +1076 -0
- package/dist/{wolfram_alpha_api-3G4PUJWB.js → wolfram_alpha_api-I56SXWFZ.js} +36 -35
- package/dist/wordpress-R7TDFZ2P.js +812 -0
- package/dist/workos-HDNHWVMS.js +664 -0
- package/dist/zhihu-LX6AGGDS.js +254 -0
- package/package.json +18 -9
- package/dist/airtable-LLZDFN7M.js +0 -789
- package/dist/anthropic-G23NN3X5.js +0 -202
- package/dist/apify-Y3SS734K.js +0 -247
- package/dist/brave_search-ZC7OAPSZ.js +0 -301
- package/dist/chunk-R6P4XAE5.js +0 -248
- package/dist/chunk-U7B6DS2O.js +0 -977
- package/dist/chunk-UZM2RXZH.js +0 -23436
- package/dist/circleci-3BAX5FCG.js +0 -388
- package/dist/clerk-6LEM6TNU.js +0 -1019
- package/dist/cloudflare_dns-KINYTJUD.js +0 -588
- package/dist/cohere-XCJ5AJ6B.js +0 -185
- package/dist/deepseek-PC5YGNC5.js +0 -209
- package/dist/docker_hub-C3MA5FU6.js +0 -932
- package/dist/dropbox-XBV7Z2IR.js +0 -1304
- package/dist/dub-LDOFG3HC.js +0 -679
- package/dist/e2b-JMCPSVBW.js +0 -277
- package/dist/exa-RAK7O7RD.js +0 -331
- package/dist/figma-E6IX5DTH.js +0 -773
- package/dist/firehydrant-ZBLPQREE.js +0 -562
- package/dist/fly-ZH3HFCZJ.js +0 -468
- package/dist/geocodio-YGNI7DA4.js +0 -212
- package/dist/ghost-EVSGKH2Q.js +0 -337
- package/dist/github-MA2BGRCJ.js +0 -5420
- package/dist/gmail-E5E6AADE.js +0 -1886
- package/dist/googlecalendar-BTLFPXTD.js +0 -2523
- package/dist/graphhopper-WSMB3TCD.js +0 -324
- package/dist/ipgeolocation_io-AA7HAS22.js +0 -315
- package/dist/ipqualityscore-BHJXVTJT.js +0 -277
- package/dist/langsmith-5W6SCT6F.js +0 -592
- package/dist/lemlist-HJWH6UMK.js +0 -288
- package/dist/logsnag-4KFOHL37.js +0 -150
- package/dist/mem0-CAW43CIC.js +0 -543
- package/dist/memos-TWEGPKFM.js +0 -740
- package/dist/mistral_ai-64BGZQHP.js +0 -1195
- package/dist/ngrok-GQCUGZKJ.js +0 -356
- package/dist/notion-DQWZWP4N.js +0 -936
- package/dist/open_exchange_rates-QMMD735E.js +0 -214
- package/dist/openai-W6PX32NZ.js +0 -799
- package/dist/opengraph_io-HNDBXYNW.js +0 -361
- package/dist/openrouter-JJYMEAUL.js +0 -437
- package/dist/outline-MCBNQZYY.js +0 -595
- package/dist/paddle-D2SKLUDN.js +0 -453
- package/dist/perplexity-XIFMKUAE.js +0 -219
- package/dist/pinecone-HUFTALV2.js +0 -570
- package/dist/polar-TYTOMOSR.js +0 -394
- package/dist/posthog-43JAR3VW.js +0 -3463
- package/dist/postmark-KL2QJYSG.js +0 -426
- package/dist/readwise-CI4GIMMJ.js +0 -469
- package/dist/render-SUBJ6YRZ.js +0 -460
- package/dist/rootly-CD2LJHPI.js +0 -336
- package/dist/semantic_scholar-T4A252KW.js +0 -610
- package/dist/shopify-Y2HN2MCQ.js +0 -609
- package/dist/stripe-VE3CD3AY.js +0 -584
- package/dist/tavily-KCZHK6HE.js +0 -326
- package/dist/telegram-3URFBCMY.js +0 -1766
- package/dist/todoist-HNPWNYTD.js +0 -663
- package/dist/trello-3W2MIXRP.js +0 -1079
- package/dist/turso-2EQF7C2Z.js +0 -415
- package/dist/umami-5REN7TGP.js +0 -388
- package/dist/unsplash-EIXL424F.js +0 -350
- package/dist/uptimerobot-KNJ3EYLY.js +0 -482
- package/dist/v2ex-RHJ234PZ.js +0 -666
- package/dist/vercel-AS6NCIC7.js +0 -1075
- package/dist/wordpress-KNDAAUV7.js +0 -811
- package/dist/workos-R6UITSJ7.js +0 -663
- package/dist/zhihu-AGK4HILK.js +0 -253
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
createProviderPlugin,
|
|
10
10
|
upstreamError
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WJHG6OK7.js";
|
|
12
12
|
import {
|
|
13
13
|
guardedFetch
|
|
14
|
-
} from "./chunk-
|
|
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-
|
|
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
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
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 =
|
|
690
|
-
total:
|
|
691
|
-
offset:
|
|
692
|
-
limit:
|
|
693
|
-
queryTranslation:
|
|
694
|
-
articles:
|
|
695
|
-
pmid:
|
|
696
|
-
title:
|
|
697
|
-
abstract:
|
|
698
|
-
label:
|
|
699
|
-
text:
|
|
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:
|
|
702
|
-
name:
|
|
703
|
-
orcid:
|
|
704
|
-
affiliations:
|
|
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:
|
|
707
|
-
title:
|
|
708
|
-
abbreviation:
|
|
709
|
-
issn:
|
|
710
|
-
volume:
|
|
711
|
-
issue:
|
|
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:
|
|
714
|
-
publicationTypes:
|
|
715
|
-
meshTerms:
|
|
716
|
-
keywords:
|
|
717
|
-
languages:
|
|
718
|
-
doi:
|
|
719
|
-
pmcid:
|
|
720
|
-
pubmedUrl:
|
|
721
|
-
pmcUrl:
|
|
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 =
|
|
725
|
-
citation:
|
|
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 =
|
|
728
|
-
matched:
|
|
729
|
-
articles:
|
|
730
|
-
pmid:
|
|
731
|
-
title:
|
|
732
|
-
abstract:
|
|
733
|
-
label:
|
|
734
|
-
text:
|
|
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:
|
|
737
|
-
name:
|
|
738
|
-
orcid:
|
|
739
|
-
affiliations:
|
|
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:
|
|
742
|
-
title:
|
|
743
|
-
abbreviation:
|
|
744
|
-
issn:
|
|
745
|
-
volume:
|
|
746
|
-
issue:
|
|
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:
|
|
749
|
-
publicationTypes:
|
|
750
|
-
meshTerms:
|
|
751
|
-
keywords:
|
|
752
|
-
languages:
|
|
753
|
-
doi:
|
|
754
|
-
pmcid:
|
|
755
|
-
pubmedUrl:
|
|
756
|
-
pmcUrl:
|
|
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 =
|
|
760
|
-
pmid:
|
|
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 =
|
|
763
|
-
found:
|
|
764
|
-
article:
|
|
765
|
-
pmid:
|
|
766
|
-
title:
|
|
767
|
-
abstract:
|
|
768
|
-
label:
|
|
769
|
-
text:
|
|
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:
|
|
772
|
-
name:
|
|
773
|
-
orcid:
|
|
774
|
-
affiliations:
|
|
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:
|
|
777
|
-
title:
|
|
778
|
-
abbreviation:
|
|
779
|
-
issn:
|
|
780
|
-
volume:
|
|
781
|
-
issue:
|
|
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:
|
|
784
|
-
publicationTypes:
|
|
785
|
-
meshTerms:
|
|
786
|
-
keywords:
|
|
787
|
-
languages:
|
|
788
|
-
doi:
|
|
789
|
-
pmcid:
|
|
790
|
-
pubmedUrl:
|
|
791
|
-
pmcUrl:
|
|
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 =
|
|
795
|
-
pmids:
|
|
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 =
|
|
798
|
-
articles:
|
|
799
|
-
pmid:
|
|
800
|
-
title:
|
|
801
|
-
abstract:
|
|
802
|
-
label:
|
|
803
|
-
text:
|
|
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:
|
|
806
|
-
name:
|
|
807
|
-
orcid:
|
|
808
|
-
affiliations:
|
|
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:
|
|
811
|
-
title:
|
|
812
|
-
abbreviation:
|
|
813
|
-
issn:
|
|
814
|
-
volume:
|
|
815
|
-
issue:
|
|
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:
|
|
818
|
-
publicationTypes:
|
|
819
|
-
meshTerms:
|
|
820
|
-
keywords:
|
|
821
|
-
languages:
|
|
822
|
-
doi:
|
|
823
|
-
pmcid:
|
|
824
|
-
pubmedUrl:
|
|
825
|
-
pmcUrl:
|
|
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:
|
|
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 =
|
|
830
|
-
pmid:
|
|
831
|
-
limit:
|
|
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 =
|
|
834
|
-
sourcePmid:
|
|
835
|
-
articles:
|
|
836
|
-
pmid:
|
|
837
|
-
title:
|
|
838
|
-
abstract:
|
|
839
|
-
label:
|
|
840
|
-
text:
|
|
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:
|
|
843
|
-
name:
|
|
844
|
-
orcid:
|
|
845
|
-
affiliations:
|
|
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:
|
|
848
|
-
title:
|
|
849
|
-
abbreviation:
|
|
850
|
-
issn:
|
|
851
|
-
volume:
|
|
852
|
-
issue:
|
|
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:
|
|
855
|
-
publicationTypes:
|
|
856
|
-
meshTerms:
|
|
857
|
-
keywords:
|
|
858
|
-
languages:
|
|
859
|
-
doi:
|
|
860
|
-
pmcid:
|
|
861
|
-
pubmedUrl:
|
|
862
|
-
pmcUrl:
|
|
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 =
|
|
866
|
-
pmid:
|
|
867
|
-
limit:
|
|
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 =
|
|
870
|
-
sourcePmid:
|
|
871
|
-
articles:
|
|
872
|
-
pmid:
|
|
873
|
-
title:
|
|
874
|
-
abstract:
|
|
875
|
-
label:
|
|
876
|
-
text:
|
|
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:
|
|
879
|
-
name:
|
|
880
|
-
orcid:
|
|
881
|
-
affiliations:
|
|
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:
|
|
884
|
-
title:
|
|
885
|
-
abbreviation:
|
|
886
|
-
issn:
|
|
887
|
-
volume:
|
|
888
|
-
issue:
|
|
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:
|
|
891
|
-
publicationTypes:
|
|
892
|
-
meshTerms:
|
|
893
|
-
keywords:
|
|
894
|
-
languages:
|
|
895
|
-
doi:
|
|
896
|
-
pmcid:
|
|
897
|
-
pubmedUrl:
|
|
898
|
-
pmcUrl:
|
|
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 =
|
|
902
|
-
pmid:
|
|
903
|
-
limit:
|
|
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 =
|
|
906
|
-
sourcePmid:
|
|
907
|
-
articles:
|
|
908
|
-
pmid:
|
|
909
|
-
title:
|
|
910
|
-
abstract:
|
|
911
|
-
label:
|
|
912
|
-
text:
|
|
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:
|
|
915
|
-
name:
|
|
916
|
-
orcid:
|
|
917
|
-
affiliations:
|
|
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:
|
|
920
|
-
title:
|
|
921
|
-
abbreviation:
|
|
922
|
-
issn:
|
|
923
|
-
volume:
|
|
924
|
-
issue:
|
|
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:
|
|
927
|
-
publicationTypes:
|
|
928
|
-
meshTerms:
|
|
929
|
-
keywords:
|
|
930
|
-
languages:
|
|
931
|
-
doi:
|
|
932
|
-
pmcid:
|
|
933
|
-
pubmedUrl:
|
|
934
|
-
pmcUrl:
|
|
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 =
|
|
938
|
-
ids:
|
|
939
|
-
idType:
|
|
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 =
|
|
942
|
-
records:
|
|
943
|
-
requestedId:
|
|
944
|
-
pmid:
|
|
945
|
-
pmcid:
|
|
946
|
-
doi:
|
|
947
|
-
mid:
|
|
948
|
-
error:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
999
|
+
outputSchema: z.toJSONSchema(convertArticleIdsOutput, { io: "output", unrepresentable: "any" })
|
|
999
1000
|
}
|
|
1000
1001
|
};
|
|
1001
1002
|
|