@keystrokehq/semanticscholar 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/details-about-a-paper-s-authors.cjs +36 -0
  7. package/dist/actions/details-about-a-paper-s-authors.cjs.map +1 -0
  8. package/dist/actions/details-about-a-paper-s-authors.d.cts +9 -0
  9. package/dist/actions/details-about-a-paper-s-authors.d.cts.map +1 -0
  10. package/dist/actions/details-about-a-paper-s-authors.d.mts +9 -0
  11. package/dist/actions/details-about-a-paper-s-authors.d.mts.map +1 -0
  12. package/dist/actions/details-about-a-paper-s-authors.mjs +35 -0
  13. package/dist/actions/details-about-a-paper-s-authors.mjs.map +1 -0
  14. package/dist/actions/details-about-a-paper-s-citations.cjs +85 -0
  15. package/dist/actions/details-about-a-paper-s-citations.cjs.map +1 -0
  16. package/dist/actions/details-about-a-paper-s-citations.d.cts +9 -0
  17. package/dist/actions/details-about-a-paper-s-citations.d.cts.map +1 -0
  18. package/dist/actions/details-about-a-paper-s-citations.d.mts +9 -0
  19. package/dist/actions/details-about-a-paper-s-citations.d.mts.map +1 -0
  20. package/dist/actions/details-about-a-paper-s-citations.mjs +84 -0
  21. package/dist/actions/details-about-a-paper-s-citations.mjs.map +1 -0
  22. package/dist/actions/details-about-a-paper-s-references.cjs +103 -0
  23. package/dist/actions/details-about-a-paper-s-references.cjs.map +1 -0
  24. package/dist/actions/details-about-a-paper-s-references.d.cts +9 -0
  25. package/dist/actions/details-about-a-paper-s-references.d.cts.map +1 -0
  26. package/dist/actions/details-about-a-paper-s-references.d.mts +9 -0
  27. package/dist/actions/details-about-a-paper-s-references.d.mts.map +1 -0
  28. package/dist/actions/details-about-a-paper-s-references.mjs +102 -0
  29. package/dist/actions/details-about-a-paper-s-references.mjs.map +1 -0
  30. package/dist/actions/details-about-a-paper.cjs +84 -0
  31. package/dist/actions/details-about-a-paper.cjs.map +1 -0
  32. package/dist/actions/details-about-a-paper.d.cts +9 -0
  33. package/dist/actions/details-about-a-paper.d.cts.map +1 -0
  34. package/dist/actions/details-about-a-paper.d.mts +9 -0
  35. package/dist/actions/details-about-a-paper.d.mts.map +1 -0
  36. package/dist/actions/details-about-a-paper.mjs +83 -0
  37. package/dist/actions/details-about-a-paper.mjs.map +1 -0
  38. package/dist/actions/details-about-an-author-s-papers.cjs +100 -0
  39. package/dist/actions/details-about-an-author-s-papers.cjs.map +1 -0
  40. package/dist/actions/details-about-an-author-s-papers.d.cts +9 -0
  41. package/dist/actions/details-about-an-author-s-papers.d.cts.map +1 -0
  42. package/dist/actions/details-about-an-author-s-papers.d.mts +9 -0
  43. package/dist/actions/details-about-an-author-s-papers.d.mts.map +1 -0
  44. package/dist/actions/details-about-an-author-s-papers.mjs +99 -0
  45. package/dist/actions/details-about-an-author-s-papers.mjs.map +1 -0
  46. package/dist/actions/details-about-an-author.cjs +40 -0
  47. package/dist/actions/details-about-an-author.cjs.map +1 -0
  48. package/dist/actions/details-about-an-author.d.cts +9 -0
  49. package/dist/actions/details-about-an-author.d.cts.map +1 -0
  50. package/dist/actions/details-about-an-author.d.mts +9 -0
  51. package/dist/actions/details-about-an-author.d.mts.map +1 -0
  52. package/dist/actions/details-about-an-author.mjs +39 -0
  53. package/dist/actions/details-about-an-author.mjs.map +1 -0
  54. package/dist/actions/get-dataset-diffs.cjs +31 -0
  55. package/dist/actions/get-dataset-diffs.cjs.map +1 -0
  56. package/dist/actions/get-dataset-diffs.d.cts +9 -0
  57. package/dist/actions/get-dataset-diffs.d.cts.map +1 -0
  58. package/dist/actions/get-dataset-diffs.d.mts +9 -0
  59. package/dist/actions/get-dataset-diffs.d.mts.map +1 -0
  60. package/dist/actions/get-dataset-diffs.mjs +30 -0
  61. package/dist/actions/get-dataset-diffs.mjs.map +1 -0
  62. package/dist/actions/get-dataset.cjs +24 -0
  63. package/dist/actions/get-dataset.cjs.map +1 -0
  64. package/dist/actions/get-dataset.d.cts +9 -0
  65. package/dist/actions/get-dataset.d.cts.map +1 -0
  66. package/dist/actions/get-dataset.d.mts +9 -0
  67. package/dist/actions/get-dataset.d.mts.map +1 -0
  68. package/dist/actions/get-dataset.mjs +21 -0
  69. package/dist/actions/get-dataset.mjs.map +1 -0
  70. package/dist/actions/get-details-for-multiple-authors-at-once.cjs +19 -0
  71. package/dist/actions/get-details-for-multiple-authors-at-once.cjs.map +1 -0
  72. package/dist/actions/get-details-for-multiple-authors-at-once.d.cts +9 -0
  73. package/dist/actions/get-details-for-multiple-authors-at-once.d.cts.map +1 -0
  74. package/dist/actions/get-details-for-multiple-authors-at-once.d.mts +9 -0
  75. package/dist/actions/get-details-for-multiple-authors-at-once.d.mts.map +1 -0
  76. package/dist/actions/get-details-for-multiple-authors-at-once.mjs +16 -0
  77. package/dist/actions/get-details-for-multiple-authors-at-once.mjs.map +1 -0
  78. package/dist/actions/get-details-for-multiple-papers-at-once.cjs +41 -0
  79. package/dist/actions/get-details-for-multiple-papers-at-once.cjs.map +1 -0
  80. package/dist/actions/get-details-for-multiple-papers-at-once.d.cts +9 -0
  81. package/dist/actions/get-details-for-multiple-papers-at-once.d.cts.map +1 -0
  82. package/dist/actions/get-details-for-multiple-papers-at-once.d.mts +9 -0
  83. package/dist/actions/get-details-for-multiple-papers-at-once.d.mts.map +1 -0
  84. package/dist/actions/get-details-for-multiple-papers-at-once.mjs +40 -0
  85. package/dist/actions/get-details-for-multiple-papers-at-once.mjs.map +1 -0
  86. package/dist/actions/get-paper-recommendations.cjs +83 -0
  87. package/dist/actions/get-paper-recommendations.cjs.map +1 -0
  88. package/dist/actions/get-paper-recommendations.d.cts +9 -0
  89. package/dist/actions/get-paper-recommendations.d.cts.map +1 -0
  90. package/dist/actions/get-paper-recommendations.d.mts +9 -0
  91. package/dist/actions/get-paper-recommendations.d.mts.map +1 -0
  92. package/dist/actions/get-paper-recommendations.mjs +82 -0
  93. package/dist/actions/get-paper-recommendations.mjs.map +1 -0
  94. package/dist/actions/get-recommendations-for-paper.cjs +82 -0
  95. package/dist/actions/get-recommendations-for-paper.cjs.map +1 -0
  96. package/dist/actions/get-recommendations-for-paper.d.cts +9 -0
  97. package/dist/actions/get-recommendations-for-paper.d.cts.map +1 -0
  98. package/dist/actions/get-recommendations-for-paper.d.mts +9 -0
  99. package/dist/actions/get-recommendations-for-paper.d.mts.map +1 -0
  100. package/dist/actions/get-recommendations-for-paper.mjs +81 -0
  101. package/dist/actions/get-recommendations-for-paper.mjs.map +1 -0
  102. package/dist/actions/get-release.cjs +25 -0
  103. package/dist/actions/get-release.cjs.map +1 -0
  104. package/dist/actions/get-release.d.cts +9 -0
  105. package/dist/actions/get-release.d.cts.map +1 -0
  106. package/dist/actions/get-release.d.mts +9 -0
  107. package/dist/actions/get-release.d.mts.map +1 -0
  108. package/dist/actions/get-release.mjs +24 -0
  109. package/dist/actions/get-release.mjs.map +1 -0
  110. package/dist/actions/index.cjs +41 -0
  111. package/dist/actions/index.d.cts +21 -0
  112. package/dist/actions/index.d.mts +21 -0
  113. package/dist/actions/index.mjs +21 -0
  114. package/dist/actions/list-releases.cjs +16 -0
  115. package/dist/actions/list-releases.cjs.map +1 -0
  116. package/dist/actions/list-releases.d.cts +9 -0
  117. package/dist/actions/list-releases.d.cts.map +1 -0
  118. package/dist/actions/list-releases.d.mts +9 -0
  119. package/dist/actions/list-releases.d.mts.map +1 -0
  120. package/dist/actions/list-releases.mjs +13 -0
  121. package/dist/actions/list-releases.mjs.map +1 -0
  122. package/dist/actions/paper-title-search.cjs +108 -0
  123. package/dist/actions/paper-title-search.cjs.map +1 -0
  124. package/dist/actions/paper-title-search.d.cts +9 -0
  125. package/dist/actions/paper-title-search.d.cts.map +1 -0
  126. package/dist/actions/paper-title-search.d.mts +9 -0
  127. package/dist/actions/paper-title-search.d.mts.map +1 -0
  128. package/dist/actions/paper-title-search.mjs +107 -0
  129. package/dist/actions/paper-title-search.mjs.map +1 -0
  130. package/dist/actions/search-bulk-papers.cjs +92 -0
  131. package/dist/actions/search-bulk-papers.cjs.map +1 -0
  132. package/dist/actions/search-bulk-papers.d.cts +9 -0
  133. package/dist/actions/search-bulk-papers.d.cts.map +1 -0
  134. package/dist/actions/search-bulk-papers.d.mts +9 -0
  135. package/dist/actions/search-bulk-papers.d.mts.map +1 -0
  136. package/dist/actions/search-bulk-papers.mjs +91 -0
  137. package/dist/actions/search-bulk-papers.mjs.map +1 -0
  138. package/dist/actions/search-for-authors-by-name.cjs +37 -0
  139. package/dist/actions/search-for-authors-by-name.cjs.map +1 -0
  140. package/dist/actions/search-for-authors-by-name.d.cts +9 -0
  141. package/dist/actions/search-for-authors-by-name.d.cts.map +1 -0
  142. package/dist/actions/search-for-authors-by-name.d.mts +9 -0
  143. package/dist/actions/search-for-authors-by-name.d.mts.map +1 -0
  144. package/dist/actions/search-for-authors-by-name.mjs +36 -0
  145. package/dist/actions/search-for-authors-by-name.mjs.map +1 -0
  146. package/dist/actions/search-papers.cjs +106 -0
  147. package/dist/actions/search-papers.cjs.map +1 -0
  148. package/dist/actions/search-papers.d.cts +9 -0
  149. package/dist/actions/search-papers.d.cts.map +1 -0
  150. package/dist/actions/search-papers.d.mts +9 -0
  151. package/dist/actions/search-papers.d.mts.map +1 -0
  152. package/dist/actions/search-papers.mjs +105 -0
  153. package/dist/actions/search-papers.mjs.map +1 -0
  154. package/dist/actions/suggest-paper-query-completions.cjs +21 -0
  155. package/dist/actions/suggest-paper-query-completions.cjs.map +1 -0
  156. package/dist/actions/suggest-paper-query-completions.d.cts +9 -0
  157. package/dist/actions/suggest-paper-query-completions.d.cts.map +1 -0
  158. package/dist/actions/suggest-paper-query-completions.d.mts +9 -0
  159. package/dist/actions/suggest-paper-query-completions.d.mts.map +1 -0
  160. package/dist/actions/suggest-paper-query-completions.mjs +20 -0
  161. package/dist/actions/suggest-paper-query-completions.mjs.map +1 -0
  162. package/dist/actions/text-snippet-search.cjs +71 -0
  163. package/dist/actions/text-snippet-search.cjs.map +1 -0
  164. package/dist/actions/text-snippet-search.d.cts +9 -0
  165. package/dist/actions/text-snippet-search.d.cts.map +1 -0
  166. package/dist/actions/text-snippet-search.d.mts +9 -0
  167. package/dist/actions/text-snippet-search.d.mts.map +1 -0
  168. package/dist/actions/text-snippet-search.mjs +70 -0
  169. package/dist/actions/text-snippet-search.mjs.map +1 -0
  170. package/dist/app.cjs +9 -0
  171. package/dist/app.cjs.map +1 -0
  172. package/dist/app.d.cts +5 -0
  173. package/dist/app.d.cts.map +1 -0
  174. package/dist/app.d.mts +5 -0
  175. package/dist/app.d.mts.map +1 -0
  176. package/dist/app.mjs +10 -0
  177. package/dist/app.mjs.map +1 -0
  178. package/dist/catalog.cjs +15 -0
  179. package/dist/catalog.cjs.map +1 -0
  180. package/dist/catalog.d.cts +14 -0
  181. package/dist/catalog.d.cts.map +1 -0
  182. package/dist/catalog.d.mts +14 -0
  183. package/dist/catalog.d.mts.map +1 -0
  184. package/dist/catalog.mjs +15 -0
  185. package/dist/catalog.mjs.map +1 -0
  186. package/dist/execute.cjs +18 -0
  187. package/dist/execute.cjs.map +1 -0
  188. package/dist/execute.mjs +18 -0
  189. package/dist/execute.mjs.map +1 -0
  190. package/dist/index.cjs +46 -0
  191. package/dist/index.d.cts +23 -0
  192. package/dist/index.d.mts +23 -0
  193. package/dist/index.mjs +24 -0
  194. package/package.json +49 -0
@@ -0,0 +1,83 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/details-about-a-paper.ts
4
+ const SemanticscholarDetailsAboutAPaperInput = z.object({
5
+ fields: z.string().default("title,abstract,year,authors,citationCount,referenceCount,url,venue,publicationDate,fieldsOfStudy").describe("A comma-separated list of the fields to be returned. The <code>paperId</code> field is always returned. If not specified, returns a useful default set of fields including title, abstract, year, authors, citation metrics, URL, venue, publication date, and fields of study. <p><b>Available fields:</b> paperId, corpusId, externalIds, url, title, abstract, venue, publicationVenue, year, publicationDate, publicationTypes, journal, citationCount, referenceCount, influentialCitationCount, isOpenAccess, openAccessPdf, fieldsOfStudy, s2FieldsOfStudy, authors, citations, references, embedding, tldr</p><p><b>Nested field notation:</b> Use a period (\".\") for fields with subfields:</p><ul> <li><b>authors</b>: Default returns authorId and name. For additional subfields use: authors.url, authors.affiliations, authors.homepage, authors.paperCount, authors.citationCount, authors.hIndex</li> <li><b>citations/references</b>: Default returns paperId and title. For additional subfields use: citations.abstract, citations.year, citations.authors, references.venue, etc.</li> <li><b>embedding</b>: Use embedding.specter_v1 or embedding.specter_v2 for specific versions</li></ul><p><b>Examples:</b></p><ul> <li><code>title,url,year</code> - Basic paper info</li> <li><code>title,authors.url,authors.hIndex</code> - Paper with author metrics</li> <li><code>title,citations.title,citations.year</code> - Paper with citation details</li> <li><code>title,embedding.specter_v2,tldr</code> - Paper with AI summary and embeddings</li></ul>").optional(),
6
+ paper_id: z.string().describe("The following types of IDs are supported: <ul> <li><code>&lt;sha&gt;</code> - a Semantic Scholar ID, e.g. <code>649def34f8be52c8b66281af98ae884c09aef38b</code></li> <li><code>CorpusId:&lt;id&gt;</code> - a Semantic Scholar numerical ID, e.g. <code>CorpusId:215416146</code></li> <li><code>DOI:&lt;doi&gt;</code> - a <a href=\"http://doi.org\">Digital Object Identifier</a>, e.g. <code>DOI:10.18653/v1/N18-3011</code></li> <li><code>ARXIV:&lt;id&gt;</code> - <a href=\"https://arxiv.org/\">arXiv.rg</a>, e.g. <code>ARXIV:2106.15928</code></li> <li><code>MAG:&lt;id&gt;</code> - Microsoft Academic Graph, e.g. <code>MAG:112218234</code></li> <li><code>ACL:&lt;id&gt;</code> - Association for Computational Linguistics, e.g. <code>ACL:W12-3903</code></li> <li><code>PMID:&lt;id&gt;</code> - PubMed/Medline, e.g. <code>PMID:19872477</code></li> <li><code>PMCID:&lt;id&gt;</code> - PubMed Central, e.g. <code>PMCID:2323736</code></li> <li><code>URL:&lt;url&gt;</code> - URL from one of the sites listed below, e.g. <code>URL:https://arxiv.org/abs/2106.15928v1</code></li> </ul> URLs are recognized from the following sites: <ul> <li><a href=\"https://www.semanticscholar.org/\">semanticscholar.org</a></li> <li><a href=\"https://arxiv.org/\">arxiv.org</a></li> <li><a href=\"https://www.aclweb.org\">aclweb.org</a></li> <li><a href=\"https://www.acm.org/\">acm.org</a></li> <li><a href=\"https://www.biorxiv.org/\">biorxiv.org</a></li> </ul>")
7
+ }).describe("Request schema for `DetailsAboutAPaper`");
8
+ const SemanticscholarDetailsAboutAPaper_TldrSummarySchema = z.object({
9
+ text: z.string().nullable().optional(),
10
+ model: z.string().nullable().optional()
11
+ }).passthrough().describe("AI-generated TLDR summary");
12
+ const SemanticscholarDetailsAboutAPaper_AuthorInfoSchema = z.object({
13
+ url: z.string().nullable().optional(),
14
+ name: z.string().nullable().optional(),
15
+ hIndex: z.number().int().nullable().optional(),
16
+ authorId: z.string().nullable().optional(),
17
+ homepage: z.string().nullable().optional(),
18
+ paperCount: z.number().int().nullable().optional(),
19
+ affiliations: z.array(z.string()).nullable().optional(),
20
+ citationCount: z.number().int().nullable().optional()
21
+ }).passthrough().describe("Author information");
22
+ const SemanticscholarDetailsAboutAPaper_CitationOrReferenceSchema = z.object({
23
+ year: z.number().int().nullable().optional(),
24
+ title: z.string().nullable().optional(),
25
+ venue: z.string().nullable().optional(),
26
+ authors: z.array(SemanticscholarDetailsAboutAPaper_AuthorInfoSchema).nullable().optional(),
27
+ paperId: z.string().nullable().optional(),
28
+ abstract: z.string().nullable().optional(),
29
+ citationCount: z.number().int().nullable().optional()
30
+ }).passthrough().describe("Citation or reference paper information");
31
+ const SemanticscholarDetailsAboutAPaper_OpenAccessPdfSchema = z.object({
32
+ url: z.string().nullable().optional(),
33
+ status: z.string().nullable().optional(),
34
+ license: z.string().nullable().optional(),
35
+ disclaimer: z.string().nullable().optional()
36
+ }).passthrough().describe("Open access PDF information");
37
+ const SemanticscholarDetailsAboutAPaper_S2FieldOfStudySchema = z.object({
38
+ source: z.string().nullable().optional(),
39
+ category: z.string().nullable().optional()
40
+ }).passthrough().describe("Semantic Scholar field of study classification");
41
+ const SemanticscholarDetailsAboutAPaper_PublicationVenueSchema = z.object({
42
+ id: z.string().nullable().optional(),
43
+ url: z.string().nullable().optional(),
44
+ name: z.string().nullable().optional(),
45
+ type: z.string().nullable().optional(),
46
+ alternate_names: z.array(z.string()).nullable().optional()
47
+ }).passthrough().describe("Publication venue details");
48
+ const semanticscholarDetailsAboutAPaper = action("SEMANTICSCHOLAR_DETAILS_ABOUT_A_PAPER", {
49
+ slug: "semanticscholar-details-about-a-paper",
50
+ name: "Details about a paper",
51
+ description: "Examples: <ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/649def34f8be52c8b66281af98ae884c09aef38b</code></li> <ul> <li>Returns a paper with its paperId and title. </li> </ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/649def34f8be52c8b66281af98ae884c09aef38b?fields=url,year,authors</code></li> <ul> <li>Returns the paper's paperId, url, year, and list of authors. </li> <li>Each author has authorId and name.</li> </ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/649def34f8be52c8b66281af98ae884c09aef38b?fields=citations.authors</code></li> <ul> <li>Returns the paper's paperId and list of citations. </li> <li>Each citation has its paperId plus its list of authors.</li> <li>Each author has their 2 always included fields of authorId and name.</li> </ul> <br> Limitations: <ul> <li>Can only return up to 10 MB of data at a time.</li> </ul> </ul>",
52
+ input: SemanticscholarDetailsAboutAPaperInput,
53
+ output: z.object({
54
+ url: z.string().nullable().optional(),
55
+ tldr: SemanticscholarDetailsAboutAPaper_TldrSummarySchema.nullable().optional(),
56
+ year: z.number().int().nullable().optional(),
57
+ title: z.string().nullable().optional(),
58
+ venue: z.string().nullable().optional(),
59
+ authors: z.array(SemanticscholarDetailsAboutAPaper_AuthorInfoSchema).nullable().optional(),
60
+ journal: z.record(z.string(), z.unknown()).nullable().optional(),
61
+ paperId: z.string(),
62
+ abstract: z.string().nullable().optional(),
63
+ corpusId: z.number().int().nullable().optional(),
64
+ citations: z.array(SemanticscholarDetailsAboutAPaper_CitationOrReferenceSchema).nullable().optional(),
65
+ embedding: z.record(z.string(), z.unknown()).nullable().optional(),
66
+ references: z.array(SemanticscholarDetailsAboutAPaper_CitationOrReferenceSchema).nullable().optional(),
67
+ externalIds: z.record(z.string(), z.unknown()).nullable().optional(),
68
+ isOpenAccess: z.boolean().nullable().optional(),
69
+ citationCount: z.number().int().nullable().optional(),
70
+ fieldsOfStudy: z.array(z.string()).nullable().optional(),
71
+ openAccessPdf: SemanticscholarDetailsAboutAPaper_OpenAccessPdfSchema.nullable().optional(),
72
+ referenceCount: z.number().int().nullable().optional(),
73
+ publicationDate: z.string().nullable().optional(),
74
+ s2FieldsOfStudy: z.array(SemanticscholarDetailsAboutAPaper_S2FieldOfStudySchema).nullable().optional(),
75
+ publicationTypes: z.array(z.string()).nullable().optional(),
76
+ publicationVenue: SemanticscholarDetailsAboutAPaper_PublicationVenueSchema.nullable().optional(),
77
+ influentialCitationCount: z.number().int().nullable().optional()
78
+ }).passthrough().describe("Response schema for `DetailsAboutAPaper`")
79
+ });
80
+ //#endregion
81
+ export { semanticscholarDetailsAboutAPaper };
82
+
83
+ //# sourceMappingURL=details-about-a-paper.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-about-a-paper.mjs","names":[],"sources":["../../src/actions/details-about-a-paper.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAPaperInput: z.ZodTypeAny = z.object({\n fields: z.string().default(\"title,abstract,year,authors,citationCount,referenceCount,url,venue,publicationDate,fieldsOfStudy\").describe(\"A comma-separated list of the fields to be returned. The <code>paperId</code> field is always returned. If not specified, returns a useful default set of fields including title, abstract, year, authors, citation metrics, URL, venue, publication date, and fields of study. <p><b>Available fields:</b> paperId, corpusId, externalIds, url, title, abstract, venue, publicationVenue, year, publicationDate, publicationTypes, journal, citationCount, referenceCount, influentialCitationCount, isOpenAccess, openAccessPdf, fieldsOfStudy, s2FieldsOfStudy, authors, citations, references, embedding, tldr</p><p><b>Nested field notation:</b> Use a period (\\\".\\\") for fields with subfields:</p><ul> <li><b>authors</b>: Default returns authorId and name. For additional subfields use: authors.url, authors.affiliations, authors.homepage, authors.paperCount, authors.citationCount, authors.hIndex</li> <li><b>citations/references</b>: Default returns paperId and title. For additional subfields use: citations.abstract, citations.year, citations.authors, references.venue, etc.</li> <li><b>embedding</b>: Use embedding.specter_v1 or embedding.specter_v2 for specific versions</li></ul><p><b>Examples:</b></p><ul> <li><code>title,url,year</code> - Basic paper info</li> <li><code>title,authors.url,authors.hIndex</code> - Paper with author metrics</li> <li><code>title,citations.title,citations.year</code> - Paper with citation details</li> <li><code>title,embedding.specter_v2,tldr</code> - Paper with AI summary and embeddings</li></ul>\").optional(),\n paper_id: z.string().describe(\"The following types of IDs are supported: <ul> <li><code>&lt;sha&gt;</code> - a Semantic Scholar ID, e.g. <code>649def34f8be52c8b66281af98ae884c09aef38b</code></li> <li><code>CorpusId:&lt;id&gt;</code> - a Semantic Scholar numerical ID, e.g. <code>CorpusId:215416146</code></li> <li><code>DOI:&lt;doi&gt;</code> - a <a href=\\\"http://doi.org\\\">Digital Object Identifier</a>, e.g. <code>DOI:10.18653/v1/N18-3011</code></li> <li><code>ARXIV:&lt;id&gt;</code> - <a href=\\\"https://arxiv.org/\\\">arXiv.rg</a>, e.g. <code>ARXIV:2106.15928</code></li> <li><code>MAG:&lt;id&gt;</code> - Microsoft Academic Graph, e.g. <code>MAG:112218234</code></li> <li><code>ACL:&lt;id&gt;</code> - Association for Computational Linguistics, e.g. <code>ACL:W12-3903</code></li> <li><code>PMID:&lt;id&gt;</code> - PubMed/Medline, e.g. <code>PMID:19872477</code></li> <li><code>PMCID:&lt;id&gt;</code> - PubMed Central, e.g. <code>PMCID:2323736</code></li> <li><code>URL:&lt;url&gt;</code> - URL from one of the sites listed below, e.g. <code>URL:https://arxiv.org/abs/2106.15928v1</code></li> </ul> URLs are recognized from the following sites: <ul> <li><a href=\\\"https://www.semanticscholar.org/\\\">semanticscholar.org</a></li> <li><a href=\\\"https://arxiv.org/\\\">arxiv.org</a></li> <li><a href=\\\"https://www.aclweb.org\\\">aclweb.org</a></li> <li><a href=\\\"https://www.acm.org/\\\">acm.org</a></li> <li><a href=\\\"https://www.biorxiv.org/\\\">biorxiv.org</a></li> </ul>\"),\n}).describe(\"Request schema for `DetailsAboutAPaper`\");\nconst SemanticscholarDetailsAboutAPaper_TldrSummarySchema: z.ZodTypeAny = z.object({\n text: z.string().nullable().optional(),\n model: z.string().nullable().optional(),\n}).passthrough().describe(\"AI-generated TLDR summary\");\nconst SemanticscholarDetailsAboutAPaper_AuthorInfoSchema: z.ZodTypeAny = z.object({\n url: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n hIndex: z.number().int().nullable().optional(),\n authorId: z.string().nullable().optional(),\n homepage: z.string().nullable().optional(),\n paperCount: z.number().int().nullable().optional(),\n affiliations: z.array(z.string()).nullable().optional(),\n citationCount: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Author information\");\nconst SemanticscholarDetailsAboutAPaper_CitationOrReferenceSchema: z.ZodTypeAny = z.object({\n year: z.number().int().nullable().optional(),\n title: z.string().nullable().optional(),\n venue: z.string().nullable().optional(),\n authors: z.array(SemanticscholarDetailsAboutAPaper_AuthorInfoSchema).nullable().optional(),\n paperId: z.string().nullable().optional(),\n abstract: z.string().nullable().optional(),\n citationCount: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Citation or reference paper information\");\nconst SemanticscholarDetailsAboutAPaper_OpenAccessPdfSchema: z.ZodTypeAny = z.object({\n url: z.string().nullable().optional(),\n status: z.string().nullable().optional(),\n license: z.string().nullable().optional(),\n disclaimer: z.string().nullable().optional(),\n}).passthrough().describe(\"Open access PDF information\");\nconst SemanticscholarDetailsAboutAPaper_S2FieldOfStudySchema: z.ZodTypeAny = z.object({\n source: z.string().nullable().optional(),\n category: z.string().nullable().optional(),\n}).passthrough().describe(\"Semantic Scholar field of study classification\");\nconst SemanticscholarDetailsAboutAPaper_PublicationVenueSchema: z.ZodTypeAny = z.object({\n id: z.string().nullable().optional(),\n url: z.string().nullable().optional(),\n name: z.string().nullable().optional(),\n type: z.string().nullable().optional(),\n alternate_names: z.array(z.string()).nullable().optional(),\n}).passthrough().describe(\"Publication venue details\");\nexport const SemanticscholarDetailsAboutAPaperOutput: z.ZodTypeAny = z.object({\n url: z.string().nullable().optional(),\n tldr: SemanticscholarDetailsAboutAPaper_TldrSummarySchema.nullable().optional(),\n year: z.number().int().nullable().optional(),\n title: z.string().nullable().optional(),\n venue: z.string().nullable().optional(),\n authors: z.array(SemanticscholarDetailsAboutAPaper_AuthorInfoSchema).nullable().optional(),\n journal: z.record(z.string(), z.unknown()).nullable().optional(),\n paperId: z.string(),\n abstract: z.string().nullable().optional(),\n corpusId: z.number().int().nullable().optional(),\n citations: z.array(SemanticscholarDetailsAboutAPaper_CitationOrReferenceSchema).nullable().optional(),\n embedding: z.record(z.string(), z.unknown()).nullable().optional(),\n references: z.array(SemanticscholarDetailsAboutAPaper_CitationOrReferenceSchema).nullable().optional(),\n externalIds: z.record(z.string(), z.unknown()).nullable().optional(),\n isOpenAccess: z.boolean().nullable().optional(),\n citationCount: z.number().int().nullable().optional(),\n fieldsOfStudy: z.array(z.string()).nullable().optional(),\n openAccessPdf: SemanticscholarDetailsAboutAPaper_OpenAccessPdfSchema.nullable().optional(),\n referenceCount: z.number().int().nullable().optional(),\n publicationDate: z.string().nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarDetailsAboutAPaper_S2FieldOfStudySchema).nullable().optional(),\n publicationTypes: z.array(z.string()).nullable().optional(),\n publicationVenue: SemanticscholarDetailsAboutAPaper_PublicationVenueSchema.nullable().optional(),\n influentialCitationCount: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Response schema for `DetailsAboutAPaper`\");\n\nexport const semanticscholarDetailsAboutAPaper = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_A_PAPER\", {\n slug: \"semanticscholar-details-about-a-paper\",\n name: \"Details about a paper\",\n description: \"Examples: <ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/649def34f8be52c8b66281af98ae884c09aef38b</code></li> <ul> <li>Returns a paper with its paperId and title. </li> </ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/649def34f8be52c8b66281af98ae884c09aef38b?fields=url,year,authors</code></li> <ul> <li>Returns the paper's paperId, url, year, and list of authors. </li> <li>Each author has authorId and name.</li> </ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/649def34f8be52c8b66281af98ae884c09aef38b?fields=citations.authors</code></li> <ul> <li>Returns the paper's paperId and list of citations. </li> <li>Each citation has its paperId plus its list of authors.</li> <li>Each author has their 2 always included fields of authorId and name.</li> </ul> <br> Limitations: <ul> <li>Can only return up to 10 MB of data at a time.</li> </ul> </ul>\",\n input: SemanticscholarDetailsAboutAPaperInput,\n output: SemanticscholarDetailsAboutAPaperOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAuD,EAAE,OAAO;CAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,kGAAkG,CAAC,CAAC,SAAS,6/CAA6/C,CAAC,CAAC,SAAS;CAChpD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,89CAA89C;AAC9/C,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,sDAAoE,EAAE,OAAO;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AACrD,MAAM,qDAAmE,EAAE,OAAO;CAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrC,QAAQ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AE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAOhB;AACV,CAAC"}
@@ -0,0 +1,100 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/details-about-an-author-s-papers.ts
4
+ const SemanticscholarDetailsAboutAnAuthorSPapersInput = zod.z.object({
5
+ limit: zod.z.number().int().default(100).describe("The maximum number of results to return.<br> Must be <= 1000").optional(),
6
+ fields: zod.z.string().describe("A comma-separated list of the fields to be returned. See the contents of the <code>data</code> array in Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. To fetch more references or citations per paper, reduce the number of papers in the batch with <code>limit=</code>. <p>Use a period (“.”) for subfields of <code>citations</code> and <code>references</code>.<br><br> Examples: <ul> <li><code>fields=title,fieldsOfStudy,references</code></li> <li><code>fields=abstract,citations.url,citations.venue</code></li> </ul>").optional(),
7
+ offset: zod.z.number().int().default(0).describe("Used for pagination. When returning a list of results, start with the element at this position in the list.").optional(),
8
+ author_id: zod.z.string().describe("Author Id")
9
+ }).describe("Request schema for `DetailsAboutAnAuthorSPapers`");
10
+ const SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema = zod.z.object({
11
+ text: zod.z.string().describe("Summary text").nullable().optional(),
12
+ model: zod.z.string().describe("Model used to generate summary").nullable().optional()
13
+ }).describe("AI-generated summary of the paper");
14
+ const SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema = zod.z.object({
15
+ url: zod.z.string().describe("URL to author's Semantic Scholar profile").nullable().optional(),
16
+ name: zod.z.string().describe("Author's name").nullable().optional(),
17
+ hIndex: zod.z.number().int().describe("Author's h-index").nullable().optional(),
18
+ authorId: zod.z.string().describe("Semantic Scholar author identifier").nullable().optional(),
19
+ affiliations: zod.z.array(zod.z.string()).describe("Author's institutional affiliations").nullable().optional(),
20
+ citationCount: zod.z.number().int().describe("Author's total citation count").nullable().optional()
21
+ }).describe("Author information");
22
+ const SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema = zod.z.object({
23
+ name: zod.z.string().describe("Journal name").nullable().optional(),
24
+ pages: zod.z.string().describe("Page range").nullable().optional(),
25
+ volume: zod.z.string().describe("Volume number").nullable().optional()
26
+ }).describe("Journal publication information");
27
+ const SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema = zod.z.object({
28
+ url: zod.z.string().describe("URL to paper").nullable().optional(),
29
+ year: zod.z.number().int().describe("Publication year").nullable().optional(),
30
+ title: zod.z.string().describe("Paper title").nullable().optional(),
31
+ venue: zod.z.string().describe("Publication venue").nullable().optional(),
32
+ intent: zod.z.array(zod.z.string()).describe("Citation intent categories").nullable().optional(),
33
+ authors: zod.z.array(zod.z.unknown()).describe("Authors of the paper").nullable().optional(),
34
+ paperId: zod.z.string().describe("Paper identifier").nullable().optional(),
35
+ isInfluential: zod.z.boolean().describe("Whether this is an influential reference/citation").nullable().optional()
36
+ }).describe("Reference or citation paper information");
37
+ const SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema = zod.z.object({
38
+ model: zod.z.string().describe("Embedding model name").nullable().optional(),
39
+ vector: zod.z.array(zod.z.number()).describe("Embedding vector values").nullable().optional()
40
+ }).describe("SPECTER2 embedding vectors for the paper");
41
+ const SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema = zod.z.object({
42
+ ACL: zod.z.string().describe("ACL Anthology identifier").nullable().optional(),
43
+ DOI: zod.z.string().describe("Digital Object Identifier").nullable().optional(),
44
+ MAG: zod.z.string().describe("Microsoft Academic Graph identifier").nullable().optional(),
45
+ PMID: zod.z.string().describe("PubMed identifier").nullable().optional(),
46
+ ArXiv: zod.z.string().describe("ArXiv identifier").nullable().optional(),
47
+ PMCID: zod.z.string().describe("PubMed Central identifier").nullable().optional(),
48
+ CorpusId: zod.z.number().int().describe("Corpus identifier").nullable().optional()
49
+ }).describe("External identifiers for the paper");
50
+ const SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema = zod.z.object({
51
+ url: zod.z.string().describe("URL to the open access PDF").nullable().optional(),
52
+ status: zod.z.string().describe("Open access status (e.g., GOLD, GREEN, BRONZE, HYBRID)").nullable().optional()
53
+ }).describe("Open access PDF link and licensing information");
54
+ const SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema = zod.z.object({ bibtex: zod.z.string().describe("BibTeX formatted citation").nullable().optional() }).describe("Formatted citations in various styles");
55
+ const SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema = zod.z.object({
56
+ source: zod.z.string().describe("Source of the classification").nullable().optional(),
57
+ category: zod.z.string().describe("Field of study category").nullable().optional()
58
+ }).describe("Semantic Scholar's field of study classification with score");
59
+ const SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema = zod.z.object({
60
+ url: zod.z.string().describe("Semantic Scholar URL for the paper").nullable().optional(),
61
+ tldr: SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema.nullable().optional(),
62
+ year: zod.z.number().int().describe("Publication year of the paper").nullable().optional(),
63
+ title: zod.z.string().describe("Title of the paper").nullable().optional(),
64
+ venue: zod.z.string().describe("Extracted publication venue of the paper").nullable().optional(),
65
+ authors: zod.z.array(SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema).describe("List of paper authors").nullable().optional(),
66
+ journal: SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema.nullable().optional(),
67
+ paperId: zod.z.string().describe("Semantic Scholar unique identifier for the paper"),
68
+ abstract: zod.z.string().describe("Extracted abstract of the paper").nullable().optional(),
69
+ corpusId: zod.z.number().int().describe("Semantic Scholar Corpus ID (S2CID)").nullable().optional(),
70
+ citations: zod.z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe("Papers that cite this paper (max 10,000 per batch)").nullable().optional(),
71
+ embedding: SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema.nullable().optional(),
72
+ references: zod.z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe("Papers referenced by this paper (max 10,000 per batch)").nullable().optional(),
73
+ externalIds: SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema.nullable().optional(),
74
+ isOpenAccess: zod.z.boolean().describe("Whether the paper is open access").nullable().optional(),
75
+ citationCount: zod.z.number().int().describe("Total number of citations received by this paper").nullable().optional(),
76
+ fieldsOfStudy: zod.z.array(zod.z.string()).describe("Academic field classifications").nullable().optional(),
77
+ openAccessPdf: SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema.nullable().optional(),
78
+ citationStyles: SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema.nullable().optional(),
79
+ referenceCount: zod.z.number().int().describe("Total number of references made by this paper").nullable().optional(),
80
+ publicationDate: zod.z.string().describe("Full publication date in YYYY-MM-DD format").nullable().optional(),
81
+ s2FieldsOfStudy: zod.z.array(SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema).describe("Semantic Scholar's field of study classifications with scores").nullable().optional(),
82
+ publicationTypes: zod.z.array(zod.z.string()).describe("Types of publication (e.g., JournalArticle, Conference)").nullable().optional(),
83
+ influentialCitationCount: zod.z.number().int().describe("Number of highly influential citations").nullable().optional()
84
+ }).describe("Paper object with detailed information");
85
+ const SemanticscholarDetailsAboutAnAuthorSPapersOutput = zod.z.object({
86
+ data: zod.z.array(SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema).describe("Collection of paper objects"),
87
+ next: zod.z.number().int().describe("Starting position of the subsequent batch; omitted if no additional data exists").nullable().optional(),
88
+ offset: zod.z.number().int().describe("Starting position for this batch of results")
89
+ }).describe("Response schema for `DetailsAboutAnAuthorSPapers`");
90
+ const semanticscholarDetailsAboutAnAuthorSPapers = require_action.action("SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR_S_PAPERS", {
91
+ slug: "semanticscholar-details-about-an-author-s-papers",
92
+ name: "Details about an author s papers",
93
+ description: "Retrieves a list of papers authored or co-authored by a specific researcher identified by their unique Semantic Scholar author ID. This endpoint is particularly useful for conducting literature reviews, analyzing an author's body of work, or tracking a researcher's publications over time. It provides a comprehensive view of an author's contributions to their field of study, including all papers where the author is listed as an author regardless of their authorship position. The response may be paginated for authors with a large number of publications, and additional API calls might be necessary to retrieve the complete list of papers. Use the offset and limit parameters to control pagination.",
94
+ input: SemanticscholarDetailsAboutAnAuthorSPapersInput,
95
+ output: SemanticscholarDetailsAboutAnAuthorSPapersOutput
96
+ });
97
+ //#endregion
98
+ exports.semanticscholarDetailsAboutAnAuthorSPapers = semanticscholarDetailsAboutAnAuthorSPapers;
99
+
100
+ //# sourceMappingURL=details-about-an-author-s-papers.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-about-an-author-s-papers.cjs","names":["z","action"],"sources":["../../src/actions/details-about-an-author-s-papers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorSPapersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"The maximum number of results to return.<br> Must be <= 1000\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of the <code>data</code> array in Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. To fetch more references or citations per paper, reduce the number of papers in the batch with <code>limit=</code>. <p>Use a period (“.”) for subfields of <code>citations</code> and <code>references</code>.<br><br> Examples: <ul> <li><code>fields=title,fieldsOfStudy,references</code></li> <li><code>fields=abstract,citations.url,citations.venue</code></li> </ul>\").optional(),\n offset: z.number().int().default(0).describe(\"Used for pagination. When returning a list of results, start with the element at this position in the list.\").optional(),\n author_id: z.string().describe(\"Author Id\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthorSPapers`\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Summary text\").nullable().optional(),\n model: z.string().describe(\"Model used to generate summary\").nullable().optional(),\n}).describe(\"AI-generated summary of the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar author identifier\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Author's institutional affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Author's total citation count\").nullable().optional(),\n}).describe(\"Author information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Journal name\").nullable().optional(),\n pages: z.string().describe(\"Page range\").nullable().optional(),\n volume: z.string().describe(\"Volume number\").nullable().optional(),\n}).describe(\"Journal publication information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to paper\").nullable().optional(),\n year: z.number().int().describe(\"Publication year\").nullable().optional(),\n title: z.string().describe(\"Paper title\").nullable().optional(),\n venue: z.string().describe(\"Publication venue\").nullable().optional(),\n intent: z.array(z.string()).describe(\"Citation intent categories\").nullable().optional(),\n authors: z.array(z.unknown()).describe(\"Authors of the paper\").nullable().optional(),\n paperId: z.string().describe(\"Paper identifier\").nullable().optional(),\n isInfluential: z.boolean().describe(\"Whether this is an influential reference/citation\").nullable().optional(),\n}).describe(\"Reference or citation paper information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Embedding model name\").nullable().optional(),\n vector: z.array(z.number()).describe(\"Embedding vector values\").nullable().optional(),\n}).describe(\"SPECTER2 embedding vectors for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema: z.ZodTypeAny = z.object({\n ACL: z.string().describe(\"ACL Anthology identifier\").nullable().optional(),\n DOI: z.string().describe(\"Digital Object Identifier\").nullable().optional(),\n MAG: z.string().describe(\"Microsoft Academic Graph identifier\").nullable().optional(),\n PMID: z.string().describe(\"PubMed identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"ArXiv identifier\").nullable().optional(),\n PMCID: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n CorpusId: z.number().int().describe(\"Corpus identifier\").nullable().optional(),\n}).describe(\"External identifiers for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the open access PDF\").nullable().optional(),\n status: z.string().describe(\"Open access status (e.g., GOLD, GREEN, BRONZE, HYBRID)\").nullable().optional(),\n}).describe(\"Open access PDF link and licensing information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema: z.ZodTypeAny = z.object({\n bibtex: z.string().describe(\"BibTeX formatted citation\").nullable().optional(),\n}).describe(\"Formatted citations in various styles\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema: z.ZodTypeAny = z.object({\n source: z.string().describe(\"Source of the classification\").nullable().optional(),\n category: z.string().describe(\"Field of study category\").nullable().optional(),\n}).describe(\"Semantic Scholar's field of study classification with score\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the paper\").nullable().optional(),\n tldr: SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema.nullable().optional(),\n year: z.number().int().describe(\"Publication year of the paper\").nullable().optional(),\n title: z.string().describe(\"Title of the paper\").nullable().optional(),\n venue: z.string().describe(\"Extracted publication venue of the paper\").nullable().optional(),\n authors: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema).describe(\"List of paper authors\").nullable().optional(),\n journal: SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar unique identifier for the paper\"),\n abstract: z.string().describe(\"Extracted abstract of the paper\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar Corpus ID (S2CID)\").nullable().optional(),\n citations: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers that cite this paper (max 10,000 per batch)\").nullable().optional(),\n embedding: SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema.nullable().optional(),\n references: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers referenced by this paper (max 10,000 per batch)\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether the paper is open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations received by this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Academic field classifications\").nullable().optional(),\n openAccessPdf: SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total number of references made by this paper\").nullable().optional(),\n publicationDate: z.string().describe(\"Full publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema).describe(\"Semantic Scholar's field of study classifications with scores\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of highly influential citations\").nullable().optional(),\n}).describe(\"Paper object with detailed information\");\nexport const SemanticscholarDetailsAboutAnAuthorSPapersOutput: z.ZodTypeAny = z.object({\n data: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema).describe(\"Collection of paper objects\"),\n next: z.number().int().describe(\"Starting position of the subsequent batch; omitted if no additional data exists\").nullable().optional(),\n offset: z.number().int().describe(\"Starting position for this batch of results\"),\n}).describe(\"Response schema for `DetailsAboutAnAuthorSPapers`\");\n\nexport const semanticscholarDetailsAboutAnAuthorSPapers = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR_S_PAPERS\", {\n slug: \"semanticscholar-details-about-an-author-s-papers\",\n name: \"Details about an author s papers\",\n description: \"Retrieves a list of papers authored or co-authored by a specific researcher identified by their unique Semantic Scholar author ID. This endpoint is particularly useful for conducting literature reviews, analyzing an author's body of work, or tracking a researcher's publications over time. It provides a comprehensive view of an author's contributions to their field of study, including all papers where the author is listed as an author regardless of their authorship position. The response may be paginated for authors with a large number of publications, and additional API calls might be necessary to retrieve the complete list of papers. Use the offset and limit parameters to control pagination.\",\n input: SemanticscholarDetailsAboutAnAuthorSPapersInput,\n output: SemanticscholarDetailsAboutAnAuthorSPapersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgEA,IAAAA,EAAE,OAAO;CACpF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0sBAA0sB,CAAC,CAAC,SAAS;CACjvB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACrK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;AAC5C,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CA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,MAAa,mDAAiEA,IAAAA,EAAE,OAAO;CACrF,MAAMA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,6BAA6B;CAC5G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AACjF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,6CAA6CC,eAAAA,OAAO,oDAAoD;CACnH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/details-about-an-author-s-papers.d.ts
4
+ declare const SemanticscholarDetailsAboutAnAuthorSPapersInput: z.ZodTypeAny;
5
+ declare const SemanticscholarDetailsAboutAnAuthorSPapersOutput: z.ZodTypeAny;
6
+ declare const semanticscholarDetailsAboutAnAuthorSPapers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarDetailsAboutAnAuthorSPapers };
9
+ //# sourceMappingURL=details-about-an-author-s-papers.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-about-an-author-s-papers.d.cts","names":[],"sources":["../../src/actions/details-about-an-author-s-papers.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAKD;AAAA,cA8ElD,gDAAA,EAAkD,CAAA,CAAE,UAID;AAAA,cAEnD,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/details-about-an-author-s-papers.d.ts
4
+ declare const SemanticscholarDetailsAboutAnAuthorSPapersInput: z.ZodTypeAny;
5
+ declare const SemanticscholarDetailsAboutAnAuthorSPapersOutput: z.ZodTypeAny;
6
+ declare const semanticscholarDetailsAboutAnAuthorSPapers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarDetailsAboutAnAuthorSPapers };
9
+ //# sourceMappingURL=details-about-an-author-s-papers.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-about-an-author-s-papers.d.mts","names":[],"sources":["../../src/actions/details-about-an-author-s-papers.ts"],"mappings":";;;cAIa,+CAAA,EAAiD,CAAA,CAAE,UAKD;AAAA,cA8ElD,gDAAA,EAAkD,CAAA,CAAE,UAID;AAAA,cAEnD,0CAAA,gCAA0C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,99 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/details-about-an-author-s-papers.ts
4
+ const SemanticscholarDetailsAboutAnAuthorSPapersInput = z.object({
5
+ limit: z.number().int().default(100).describe("The maximum number of results to return.<br> Must be <= 1000").optional(),
6
+ fields: z.string().describe("A comma-separated list of the fields to be returned. See the contents of the <code>data</code> array in Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. To fetch more references or citations per paper, reduce the number of papers in the batch with <code>limit=</code>. <p>Use a period (“.”) for subfields of <code>citations</code> and <code>references</code>.<br><br> Examples: <ul> <li><code>fields=title,fieldsOfStudy,references</code></li> <li><code>fields=abstract,citations.url,citations.venue</code></li> </ul>").optional(),
7
+ offset: z.number().int().default(0).describe("Used for pagination. When returning a list of results, start with the element at this position in the list.").optional(),
8
+ author_id: z.string().describe("Author Id")
9
+ }).describe("Request schema for `DetailsAboutAnAuthorSPapers`");
10
+ const SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema = z.object({
11
+ text: z.string().describe("Summary text").nullable().optional(),
12
+ model: z.string().describe("Model used to generate summary").nullable().optional()
13
+ }).describe("AI-generated summary of the paper");
14
+ const SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema = z.object({
15
+ url: z.string().describe("URL to author's Semantic Scholar profile").nullable().optional(),
16
+ name: z.string().describe("Author's name").nullable().optional(),
17
+ hIndex: z.number().int().describe("Author's h-index").nullable().optional(),
18
+ authorId: z.string().describe("Semantic Scholar author identifier").nullable().optional(),
19
+ affiliations: z.array(z.string()).describe("Author's institutional affiliations").nullable().optional(),
20
+ citationCount: z.number().int().describe("Author's total citation count").nullable().optional()
21
+ }).describe("Author information");
22
+ const SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema = z.object({
23
+ name: z.string().describe("Journal name").nullable().optional(),
24
+ pages: z.string().describe("Page range").nullable().optional(),
25
+ volume: z.string().describe("Volume number").nullable().optional()
26
+ }).describe("Journal publication information");
27
+ const SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema = z.object({
28
+ url: z.string().describe("URL to paper").nullable().optional(),
29
+ year: z.number().int().describe("Publication year").nullable().optional(),
30
+ title: z.string().describe("Paper title").nullable().optional(),
31
+ venue: z.string().describe("Publication venue").nullable().optional(),
32
+ intent: z.array(z.string()).describe("Citation intent categories").nullable().optional(),
33
+ authors: z.array(z.unknown()).describe("Authors of the paper").nullable().optional(),
34
+ paperId: z.string().describe("Paper identifier").nullable().optional(),
35
+ isInfluential: z.boolean().describe("Whether this is an influential reference/citation").nullable().optional()
36
+ }).describe("Reference or citation paper information");
37
+ const SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema = z.object({
38
+ model: z.string().describe("Embedding model name").nullable().optional(),
39
+ vector: z.array(z.number()).describe("Embedding vector values").nullable().optional()
40
+ }).describe("SPECTER2 embedding vectors for the paper");
41
+ const SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema = z.object({
42
+ ACL: z.string().describe("ACL Anthology identifier").nullable().optional(),
43
+ DOI: z.string().describe("Digital Object Identifier").nullable().optional(),
44
+ MAG: z.string().describe("Microsoft Academic Graph identifier").nullable().optional(),
45
+ PMID: z.string().describe("PubMed identifier").nullable().optional(),
46
+ ArXiv: z.string().describe("ArXiv identifier").nullable().optional(),
47
+ PMCID: z.string().describe("PubMed Central identifier").nullable().optional(),
48
+ CorpusId: z.number().int().describe("Corpus identifier").nullable().optional()
49
+ }).describe("External identifiers for the paper");
50
+ const SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema = z.object({
51
+ url: z.string().describe("URL to the open access PDF").nullable().optional(),
52
+ status: z.string().describe("Open access status (e.g., GOLD, GREEN, BRONZE, HYBRID)").nullable().optional()
53
+ }).describe("Open access PDF link and licensing information");
54
+ const SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema = z.object({ bibtex: z.string().describe("BibTeX formatted citation").nullable().optional() }).describe("Formatted citations in various styles");
55
+ const SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema = z.object({
56
+ source: z.string().describe("Source of the classification").nullable().optional(),
57
+ category: z.string().describe("Field of study category").nullable().optional()
58
+ }).describe("Semantic Scholar's field of study classification with score");
59
+ const SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema = z.object({
60
+ url: z.string().describe("Semantic Scholar URL for the paper").nullable().optional(),
61
+ tldr: SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema.nullable().optional(),
62
+ year: z.number().int().describe("Publication year of the paper").nullable().optional(),
63
+ title: z.string().describe("Title of the paper").nullable().optional(),
64
+ venue: z.string().describe("Extracted publication venue of the paper").nullable().optional(),
65
+ authors: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema).describe("List of paper authors").nullable().optional(),
66
+ journal: SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema.nullable().optional(),
67
+ paperId: z.string().describe("Semantic Scholar unique identifier for the paper"),
68
+ abstract: z.string().describe("Extracted abstract of the paper").nullable().optional(),
69
+ corpusId: z.number().int().describe("Semantic Scholar Corpus ID (S2CID)").nullable().optional(),
70
+ citations: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe("Papers that cite this paper (max 10,000 per batch)").nullable().optional(),
71
+ embedding: SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema.nullable().optional(),
72
+ references: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe("Papers referenced by this paper (max 10,000 per batch)").nullable().optional(),
73
+ externalIds: SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema.nullable().optional(),
74
+ isOpenAccess: z.boolean().describe("Whether the paper is open access").nullable().optional(),
75
+ citationCount: z.number().int().describe("Total number of citations received by this paper").nullable().optional(),
76
+ fieldsOfStudy: z.array(z.string()).describe("Academic field classifications").nullable().optional(),
77
+ openAccessPdf: SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema.nullable().optional(),
78
+ citationStyles: SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema.nullable().optional(),
79
+ referenceCount: z.number().int().describe("Total number of references made by this paper").nullable().optional(),
80
+ publicationDate: z.string().describe("Full publication date in YYYY-MM-DD format").nullable().optional(),
81
+ s2FieldsOfStudy: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema).describe("Semantic Scholar's field of study classifications with scores").nullable().optional(),
82
+ publicationTypes: z.array(z.string()).describe("Types of publication (e.g., JournalArticle, Conference)").nullable().optional(),
83
+ influentialCitationCount: z.number().int().describe("Number of highly influential citations").nullable().optional()
84
+ }).describe("Paper object with detailed information");
85
+ const semanticscholarDetailsAboutAnAuthorSPapers = action("SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR_S_PAPERS", {
86
+ slug: "semanticscholar-details-about-an-author-s-papers",
87
+ name: "Details about an author s papers",
88
+ description: "Retrieves a list of papers authored or co-authored by a specific researcher identified by their unique Semantic Scholar author ID. This endpoint is particularly useful for conducting literature reviews, analyzing an author's body of work, or tracking a researcher's publications over time. It provides a comprehensive view of an author's contributions to their field of study, including all papers where the author is listed as an author regardless of their authorship position. The response may be paginated for authors with a large number of publications, and additional API calls might be necessary to retrieve the complete list of papers. Use the offset and limit parameters to control pagination.",
89
+ input: SemanticscholarDetailsAboutAnAuthorSPapersInput,
90
+ output: z.object({
91
+ data: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema).describe("Collection of paper objects"),
92
+ next: z.number().int().describe("Starting position of the subsequent batch; omitted if no additional data exists").nullable().optional(),
93
+ offset: z.number().int().describe("Starting position for this batch of results")
94
+ }).describe("Response schema for `DetailsAboutAnAuthorSPapers`")
95
+ });
96
+ //#endregion
97
+ export { semanticscholarDetailsAboutAnAuthorSPapers };
98
+
99
+ //# sourceMappingURL=details-about-an-author-s-papers.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-about-an-author-s-papers.mjs","names":[],"sources":["../../src/actions/details-about-an-author-s-papers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorSPapersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"The maximum number of results to return.<br> Must be <= 1000\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of the <code>data</code> array in Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. To fetch more references or citations per paper, reduce the number of papers in the batch with <code>limit=</code>. <p>Use a period (“.”) for subfields of <code>citations</code> and <code>references</code>.<br><br> Examples: <ul> <li><code>fields=title,fieldsOfStudy,references</code></li> <li><code>fields=abstract,citations.url,citations.venue</code></li> </ul>\").optional(),\n offset: z.number().int().default(0).describe(\"Used for pagination. When returning a list of results, start with the element at this position in the list.\").optional(),\n author_id: z.string().describe(\"Author Id\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthorSPapers`\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Summary text\").nullable().optional(),\n model: z.string().describe(\"Model used to generate summary\").nullable().optional(),\n}).describe(\"AI-generated summary of the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar author identifier\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Author's institutional affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Author's total citation count\").nullable().optional(),\n}).describe(\"Author information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Journal name\").nullable().optional(),\n pages: z.string().describe(\"Page range\").nullable().optional(),\n volume: z.string().describe(\"Volume number\").nullable().optional(),\n}).describe(\"Journal publication information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to paper\").nullable().optional(),\n year: z.number().int().describe(\"Publication year\").nullable().optional(),\n title: z.string().describe(\"Paper title\").nullable().optional(),\n venue: z.string().describe(\"Publication venue\").nullable().optional(),\n intent: z.array(z.string()).describe(\"Citation intent categories\").nullable().optional(),\n authors: z.array(z.unknown()).describe(\"Authors of the paper\").nullable().optional(),\n paperId: z.string().describe(\"Paper identifier\").nullable().optional(),\n isInfluential: z.boolean().describe(\"Whether this is an influential reference/citation\").nullable().optional(),\n}).describe(\"Reference or citation paper information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Embedding model name\").nullable().optional(),\n vector: z.array(z.number()).describe(\"Embedding vector values\").nullable().optional(),\n}).describe(\"SPECTER2 embedding vectors for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema: z.ZodTypeAny = z.object({\n ACL: z.string().describe(\"ACL Anthology identifier\").nullable().optional(),\n DOI: z.string().describe(\"Digital Object Identifier\").nullable().optional(),\n MAG: z.string().describe(\"Microsoft Academic Graph identifier\").nullable().optional(),\n PMID: z.string().describe(\"PubMed identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"ArXiv identifier\").nullable().optional(),\n PMCID: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n CorpusId: z.number().int().describe(\"Corpus identifier\").nullable().optional(),\n}).describe(\"External identifiers for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the open access PDF\").nullable().optional(),\n status: z.string().describe(\"Open access status (e.g., GOLD, GREEN, BRONZE, HYBRID)\").nullable().optional(),\n}).describe(\"Open access PDF link and licensing information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema: z.ZodTypeAny = z.object({\n bibtex: z.string().describe(\"BibTeX formatted citation\").nullable().optional(),\n}).describe(\"Formatted citations in various styles\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema: z.ZodTypeAny = z.object({\n source: z.string().describe(\"Source of the classification\").nullable().optional(),\n category: z.string().describe(\"Field of study category\").nullable().optional(),\n}).describe(\"Semantic Scholar's field of study classification with score\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the paper\").nullable().optional(),\n tldr: SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema.nullable().optional(),\n year: z.number().int().describe(\"Publication year of the paper\").nullable().optional(),\n title: z.string().describe(\"Title of the paper\").nullable().optional(),\n venue: z.string().describe(\"Extracted publication venue of the paper\").nullable().optional(),\n authors: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema).describe(\"List of paper authors\").nullable().optional(),\n journal: SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar unique identifier for the paper\"),\n abstract: z.string().describe(\"Extracted abstract of the paper\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar Corpus ID (S2CID)\").nullable().optional(),\n citations: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers that cite this paper (max 10,000 per batch)\").nullable().optional(),\n embedding: SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema.nullable().optional(),\n references: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers referenced by this paper (max 10,000 per batch)\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether the paper is open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations received by this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Academic field classifications\").nullable().optional(),\n openAccessPdf: SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total number of references made by this paper\").nullable().optional(),\n publicationDate: z.string().describe(\"Full publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema).describe(\"Semantic Scholar's field of study classifications with scores\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of highly influential citations\").nullable().optional(),\n}).describe(\"Paper object with detailed information\");\nexport const SemanticscholarDetailsAboutAnAuthorSPapersOutput: z.ZodTypeAny = z.object({\n data: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema).describe(\"Collection of paper objects\"),\n next: z.number().int().describe(\"Starting position of the subsequent batch; omitted if no additional data exists\").nullable().optional(),\n offset: z.number().int().describe(\"Starting position for this batch of results\"),\n}).describe(\"Response schema for `DetailsAboutAnAuthorSPapers`\");\n\nexport const semanticscholarDetailsAboutAnAuthorSPapers = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR_S_PAPERS\", {\n slug: \"semanticscholar-details-about-an-author-s-papers\",\n name: \"Details about an author s papers\",\n description: \"Retrieves a list of papers authored or co-authored by a specific researcher identified by their unique Semantic Scholar author ID. This endpoint is particularly useful for conducting literature reviews, analyzing an author's body of work, or tracking a researcher's publications over time. It provides a comprehensive view of an author's contributions to their field of study, including all papers where the author is listed as an author regardless of their authorship position. The response may be paginated for authors with a large number of publications, and additional API calls might be necessary to retrieve the complete list of papers. Use the offset and limit parameters to control pagination.\",\n input: SemanticscholarDetailsAboutAnAuthorSPapersInput,\n output: SemanticscholarDetailsAboutAnAuthorSPapersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgE,EAAE,OAAO;CACpF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0sBAA0sB,CAAC,CAAC,SAAS;CACjvB,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACrK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;AAC5C,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,wDAAsE,EAAE,OAAO;CAC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anticscholarDetailsAboutAnAuthorInput = zod.z.object({
5
+ fields: zod.z.string().describe("A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>").optional(),
6
+ author_id: zod.z.string().describe("The unique Semantic Scholar author ID (e.g., '1688882'). This can be obtained from the author search endpoint.")
7
+ }).describe("Request schema for `DetailsAboutAnAuthor`");
8
+ const SemanticscholarDetailsAboutAnAuthor_BasePaperSchema = zod.z.object({
9
+ year: zod.z.number().int().nullable().optional(),
10
+ title: zod.z.string().nullable().optional(),
11
+ paperId: zod.z.string(),
12
+ citationCount: zod.z.number().int().nullable().optional()
13
+ }).passthrough().describe("Basic paper information");
14
+ const SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema = zod.z.object({
15
+ DBLP: zod.z.array(zod.z.string()).nullable().optional(),
16
+ ORCID: zod.z.array(zod.z.string()).nullable().optional()
17
+ }).describe("External IDs for the author");
18
+ const SemanticscholarDetailsAboutAnAuthorOutput = zod.z.object({
19
+ url: zod.z.string().describe("URL of author's Semantic Scholar profile").nullable().optional(),
20
+ name: zod.z.string().describe("Author's name").nullable().optional(),
21
+ hIndex: zod.z.number().int().describe("Author's h-index").nullable().optional(),
22
+ papers: zod.z.array(SemanticscholarDetailsAboutAnAuthor_BasePaperSchema).describe("List of papers authored").nullable().optional(),
23
+ authorId: zod.z.string().describe("Semantic Scholar's unique ID for the author"),
24
+ homepage: zod.z.string().describe("Author's homepage").nullable().optional(),
25
+ paperCount: zod.z.number().int().describe("Total publications count").nullable().optional(),
26
+ externalIds: SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema.nullable().optional(),
27
+ affiliations: zod.z.array(zod.z.string()).describe("Organizational affiliations").nullable().optional(),
28
+ citationCount: zod.z.number().int().describe("Total citations count").nullable().optional()
29
+ }).passthrough().describe("Response schema for `DetailsAboutAnAuthor`");
30
+ const semanticscholarDetailsAboutAnAuthor = require_action.action("SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR", {
31
+ slug: "semanticscholar-details-about-an-author",
32
+ name: "Details about an author",
33
+ description: "Retrieve detailed information about an author from Semantic Scholar, including name, affiliations, publication statistics (paperCount, citationCount, h-index), external IDs (ORCID, DBLP), and optionally papers. By default returns authorId and name only. Use 'fields' parameter for additional data: name, url, affiliations, homepage, externalIds, paperCount, citationCount, hIndex, papers (supports nested fields like papers.title, papers.year). Limit: 10 MB per request.",
34
+ input: SemanticscholarDetailsAboutAnAuthorInput,
35
+ output: SemanticscholarDetailsAboutAnAuthorOutput
36
+ });
37
+ //#endregion
38
+ exports.semanticscholarDetailsAboutAnAuthor = semanticscholarDetailsAboutAnAuthor;
39
+
40
+ //# sourceMappingURL=details-about-an-author.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-about-an-author.cjs","names":["z","action"],"sources":["../../src/actions/details-about-an-author.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorInput: z.ZodTypeAny = z.object({\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n author_id: z.string().describe(\"The unique Semantic Scholar author ID (e.g., '1688882'). This can be obtained from the author search endpoint.\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthor`\");\nconst SemanticscholarDetailsAboutAnAuthor_BasePaperSchema: z.ZodTypeAny = z.object({\n year: z.number().int().nullable().optional(),\n title: z.string().nullable().optional(),\n paperId: z.string(),\n citationCount: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Basic paper information\");\nconst SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema: z.ZodTypeAny = z.object({\n DBLP: z.array(z.string()).nullable().optional(),\n ORCID: z.array(z.string()).nullable().optional(),\n}).describe(\"External IDs for the author\");\nexport const SemanticscholarDetailsAboutAnAuthorOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n papers: z.array(SemanticscholarDetailsAboutAnAuthor_BasePaperSchema).describe(\"List of papers authored\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique ID for the author\"),\n homepage: z.string().describe(\"Author's homepage\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total publications count\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema.nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Organizational affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations count\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `DetailsAboutAnAuthor`\");\n\nexport const semanticscholarDetailsAboutAnAuthor = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR\", {\n slug: \"semanticscholar-details-about-an-author\",\n name: \"Details about an author\",\n description: \"Retrieve detailed information about an author from Semantic Scholar, including name, affiliations, publication statistics (paperCount, citationCount, h-index), external IDs (ORCID, DBLP), and optionally papers. By default returns authorId and name only. Use 'fields' parameter for additional data: name, url, affiliations, homepage, externalIds, paperCount, citationCount, hIndex, papers (supports nested fields like papers.title, papers.year). Limit: 10 MB per request.\",\n input: SemanticscholarDetailsAboutAnAuthorInput,\n output: SemanticscholarDetailsAboutAnAuthorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,QAAQA,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SAAS,CAAC,CAAC,SAAS;CAC7H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAa,sDAAsD,SAAS,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,sCAAsCC,eAAAA,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/details-about-an-author.d.ts
4
+ declare const SemanticscholarDetailsAboutAnAuthorInput: z.ZodTypeAny;
5
+ declare const SemanticscholarDetailsAboutAnAuthorOutput: z.ZodTypeAny;
6
+ declare const semanticscholarDetailsAboutAnAuthor: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarDetailsAboutAnAuthor };
9
+ //# sourceMappingURL=details-about-an-author.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-about-an-author.d.cts","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAGD;AAAA,cAW3C,yCAAA,EAA2C,CAAA,CAAE,UAWa;AAAA,cAE1D,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/details-about-an-author.d.ts
4
+ declare const SemanticscholarDetailsAboutAnAuthorInput: z.ZodTypeAny;
5
+ declare const SemanticscholarDetailsAboutAnAuthorOutput: z.ZodTypeAny;
6
+ declare const semanticscholarDetailsAboutAnAuthor: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarDetailsAboutAnAuthor };
9
+ //# sourceMappingURL=details-about-an-author.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-about-an-author.d.mts","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAGD;AAAA,cAW3C,yCAAA,EAA2C,CAAA,CAAE,UAWa;AAAA,cAE1D,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,39 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/details-about-an-author.ts
4
+ const SemanticscholarDetailsAboutAnAuthorInput = z.object({
5
+ fields: z.string().describe("A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>").optional(),
6
+ author_id: z.string().describe("The unique Semantic Scholar author ID (e.g., '1688882'). This can be obtained from the author search endpoint.")
7
+ }).describe("Request schema for `DetailsAboutAnAuthor`");
8
+ const SemanticscholarDetailsAboutAnAuthor_BasePaperSchema = z.object({
9
+ year: z.number().int().nullable().optional(),
10
+ title: z.string().nullable().optional(),
11
+ paperId: z.string(),
12
+ citationCount: z.number().int().nullable().optional()
13
+ }).passthrough().describe("Basic paper information");
14
+ const SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema = z.object({
15
+ DBLP: z.array(z.string()).nullable().optional(),
16
+ ORCID: z.array(z.string()).nullable().optional()
17
+ }).describe("External IDs for the author");
18
+ const semanticscholarDetailsAboutAnAuthor = action("SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR", {
19
+ slug: "semanticscholar-details-about-an-author",
20
+ name: "Details about an author",
21
+ description: "Retrieve detailed information about an author from Semantic Scholar, including name, affiliations, publication statistics (paperCount, citationCount, h-index), external IDs (ORCID, DBLP), and optionally papers. By default returns authorId and name only. Use 'fields' parameter for additional data: name, url, affiliations, homepage, externalIds, paperCount, citationCount, hIndex, papers (supports nested fields like papers.title, papers.year). Limit: 10 MB per request.",
22
+ input: SemanticscholarDetailsAboutAnAuthorInput,
23
+ output: z.object({
24
+ url: z.string().describe("URL of author's Semantic Scholar profile").nullable().optional(),
25
+ name: z.string().describe("Author's name").nullable().optional(),
26
+ hIndex: z.number().int().describe("Author's h-index").nullable().optional(),
27
+ papers: z.array(SemanticscholarDetailsAboutAnAuthor_BasePaperSchema).describe("List of papers authored").nullable().optional(),
28
+ authorId: z.string().describe("Semantic Scholar's unique ID for the author"),
29
+ homepage: z.string().describe("Author's homepage").nullable().optional(),
30
+ paperCount: z.number().int().describe("Total publications count").nullable().optional(),
31
+ externalIds: SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema.nullable().optional(),
32
+ affiliations: z.array(z.string()).describe("Organizational affiliations").nullable().optional(),
33
+ citationCount: z.number().int().describe("Total citations count").nullable().optional()
34
+ }).passthrough().describe("Response schema for `DetailsAboutAnAuthor`")
35
+ });
36
+ //#endregion
37
+ export { semanticscholarDetailsAboutAnAuthor };
38
+
39
+ //# sourceMappingURL=details-about-an-author.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-about-an-author.mjs","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorInput: z.ZodTypeAny = z.object({\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n author_id: z.string().describe(\"The unique Semantic Scholar author ID (e.g., '1688882'). This can be obtained from the author search endpoint.\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthor`\");\nconst SemanticscholarDetailsAboutAnAuthor_BasePaperSchema: z.ZodTypeAny = z.object({\n year: z.number().int().nullable().optional(),\n title: z.string().nullable().optional(),\n paperId: z.string(),\n citationCount: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Basic paper information\");\nconst SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema: z.ZodTypeAny = z.object({\n DBLP: z.array(z.string()).nullable().optional(),\n ORCID: z.array(z.string()).nullable().optional(),\n}).describe(\"External IDs for the author\");\nexport const SemanticscholarDetailsAboutAnAuthorOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n papers: z.array(SemanticscholarDetailsAboutAnAuthor_BasePaperSchema).describe(\"List of papers authored\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique ID for the author\"),\n homepage: z.string().describe(\"Author's homepage\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total publications count\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema.nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Organizational affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations count\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `DetailsAboutAnAuthor`\");\n\nexport const semanticscholarDetailsAboutAnAuthor = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR\", {\n slug: \"semanticscholar-details-about-an-author\",\n name: \"Details about an author\",\n description: \"Retrieve detailed information about an author from Semantic Scholar, including name, affiliations, publication statistics (paperCount, citationCount, h-index), external IDs (ORCID, DBLP), and optionally papers. By default returns authorId and name only. Use 'fields' parameter for additional data: name, url, affiliations, homepage, externalIds, paperCount, citationCount, hIndex, papers (supports nested fields like papers.title, papers.year). Limit: 10 MB per request.\",\n input: SemanticscholarDetailsAboutAnAuthorInput,\n output: SemanticscholarDetailsAboutAnAuthorOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyD,EAAE,OAAO;CAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2gBAA2gB,CAAC,CAAC,SAAS;CACljB,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;AACjJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,sDAAoE,EAAE,OAAO;CACjF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtC,SAAS,EAAE,OAAO;CAClB,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AACnD,MA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