@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,31 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-dataset-diffs.ts
4
+ const SemanticscholarGetDatasetDiffsInput = zod.z.object({
5
+ dataset_name: zod.z.string().describe("Name of the dataset to retrieve diffs for. Common datasets include 'papers', 'authors', 'citations', 'abstracts', etc."),
6
+ end_release_id: zod.z.string().describe("ID of the ending release. Use date format YYYY-MM-DD (e.g., '2025-01-15') or 'latest' for the most recent release."),
7
+ start_release_id: zod.z.string().describe("ID of the starting release. Use date format YYYY-MM-DD (e.g., '2024-12-31') or 'latest' for the most recent release.")
8
+ }).describe("Request schema for `GetDatasetDiffs`");
9
+ const SemanticscholarGetDatasetDiffs_DatasetDiffSchema = zod.z.object({
10
+ to_release: zod.z.string().describe("Target release for this specific diff"),
11
+ delete_files: zod.z.array(zod.z.string()).describe("Download links to files with records that need removing from the dataset"),
12
+ from_release: zod.z.string().describe("Baseline release for this specific diff"),
13
+ update_files: zod.z.array(zod.z.string()).describe("Download links to files with records that need inserting or updating by their primary key")
14
+ }).describe("Individual diff object representing changes between two releases");
15
+ const SemanticscholarGetDatasetDiffsOutput = zod.z.object({
16
+ diffs: zod.z.array(SemanticscholarGetDatasetDiffs_DatasetDiffSchema).describe("List of diff objects containing download links for incremental updates. Each diff contains 'update_files' and 'delete_files' lists."),
17
+ dataset: zod.z.string().describe("Name of the dataset these diffs are for"),
18
+ end_release: zod.z.string().describe("Ending release, i.e. the release the client wants to update to"),
19
+ start_release: zod.z.string().describe("Beginning release, i.e. the release currently held by the client")
20
+ }).describe("Response schema for `GetDatasetDiffs`");
21
+ const semanticscholarGetDatasetDiffs = require_action.action("SEMANTICSCHOLAR_GET_DATASET_DIFFS", {
22
+ slug: "semanticscholar-get-dataset-diffs",
23
+ name: "Get dataset diffs",
24
+ description: "Get download links for incremental diffs between dataset releases. Returns a list of diffs required to update a dataset from start_release to end_release, enabling efficient dataset synchronization. Use when you need to update a local dataset copy without re-downloading the entire dataset.",
25
+ input: SemanticscholarGetDatasetDiffsInput,
26
+ output: SemanticscholarGetDatasetDiffsOutput
27
+ });
28
+ //#endregion
29
+ exports.semanticscholarGetDatasetDiffs = semanticscholarGetDatasetDiffs;
30
+
31
+ //# sourceMappingURL=get-dataset-diffs.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-diffs.cjs","names":["z","action"],"sources":["../../src/actions/get-dataset-diffs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDatasetDiffsInput: z.ZodTypeAny = z.object({\n dataset_name: z.string().describe(\"Name of the dataset to retrieve diffs for. Common datasets include 'papers', 'authors', 'citations', 'abstracts', etc.\"),\n end_release_id: z.string().describe(\"ID of the ending release. Use date format YYYY-MM-DD (e.g., '2025-01-15') or 'latest' for the most recent release.\"),\n start_release_id: z.string().describe(\"ID of the starting release. Use date format YYYY-MM-DD (e.g., '2024-12-31') or 'latest' for the most recent release.\"),\n}).describe(\"Request schema for `GetDatasetDiffs`\");\nconst SemanticscholarGetDatasetDiffs_DatasetDiffSchema: z.ZodTypeAny = z.object({\n to_release: z.string().describe(\"Target release for this specific diff\"),\n delete_files: z.array(z.string()).describe(\"Download links to files with records that need removing from the dataset\"),\n from_release: z.string().describe(\"Baseline release for this specific diff\"),\n update_files: z.array(z.string()).describe(\"Download links to files with records that need inserting or updating by their primary key\"),\n}).describe(\"Individual diff object representing changes between two releases\");\nexport const SemanticscholarGetDatasetDiffsOutput: z.ZodTypeAny = z.object({\n diffs: z.array(SemanticscholarGetDatasetDiffs_DatasetDiffSchema).describe(\"List of diff objects containing download links for incremental updates. Each diff contains 'update_files' and 'delete_files' lists.\"),\n dataset: z.string().describe(\"Name of the dataset these diffs are for\"),\n end_release: z.string().describe(\"Ending release, i.e. the release the client wants to update to\"),\n start_release: z.string().describe(\"Beginning release, i.e. the release currently held by the client\"),\n}).describe(\"Response schema for `GetDatasetDiffs`\");\n\nexport const semanticscholarGetDatasetDiffs = action(\"SEMANTICSCHOLAR_GET_DATASET_DIFFS\", {\n slug: \"semanticscholar-get-dataset-diffs\",\n name: \"Get dataset diffs\",\n description: \"Get download links for incremental diffs between dataset releases. Returns a list of diffs required to update a dataset from start_release to end_release, enabling efficient dataset synchronization. Use when you need to update a local dataset copy without re-downloading the entire dataset.\",\n input: SemanticscholarGetDatasetDiffsInput,\n output: SemanticscholarGetDatasetDiffsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;CAC1J,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACxJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;AAC9J,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACvE,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0EAA0E;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAC3E,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxI,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,qIAAqI;CAC/M,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CACjG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;AACvG,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,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/get-dataset-diffs.d.ts
4
+ declare const SemanticscholarGetDatasetDiffsInput: z.ZodTypeAny;
5
+ declare const SemanticscholarGetDatasetDiffsOutput: z.ZodTypeAny;
6
+ declare const semanticscholarGetDatasetDiffs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarGetDatasetDiffs };
9
+ //# sourceMappingURL=get-dataset-diffs.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-diffs.d.cts","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAID;AAAA,cAOtC,oCAAA,EAAsC,CAAA,CAAE,UAKD;AAAA,cAEvC,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-dataset-diffs.d.ts
4
+ declare const SemanticscholarGetDatasetDiffsInput: z.ZodTypeAny;
5
+ declare const SemanticscholarGetDatasetDiffsOutput: z.ZodTypeAny;
6
+ declare const semanticscholarGetDatasetDiffs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarGetDatasetDiffs };
9
+ //# sourceMappingURL=get-dataset-diffs.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-diffs.d.mts","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAID;AAAA,cAOtC,oCAAA,EAAsC,CAAA,CAAE,UAKD;AAAA,cAEvC,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,30 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-dataset-diffs.ts
4
+ const SemanticscholarGetDatasetDiffsInput = z.object({
5
+ dataset_name: z.string().describe("Name of the dataset to retrieve diffs for. Common datasets include 'papers', 'authors', 'citations', 'abstracts', etc."),
6
+ end_release_id: z.string().describe("ID of the ending release. Use date format YYYY-MM-DD (e.g., '2025-01-15') or 'latest' for the most recent release."),
7
+ start_release_id: z.string().describe("ID of the starting release. Use date format YYYY-MM-DD (e.g., '2024-12-31') or 'latest' for the most recent release.")
8
+ }).describe("Request schema for `GetDatasetDiffs`");
9
+ const SemanticscholarGetDatasetDiffs_DatasetDiffSchema = z.object({
10
+ to_release: z.string().describe("Target release for this specific diff"),
11
+ delete_files: z.array(z.string()).describe("Download links to files with records that need removing from the dataset"),
12
+ from_release: z.string().describe("Baseline release for this specific diff"),
13
+ update_files: z.array(z.string()).describe("Download links to files with records that need inserting or updating by their primary key")
14
+ }).describe("Individual diff object representing changes between two releases");
15
+ const semanticscholarGetDatasetDiffs = action("SEMANTICSCHOLAR_GET_DATASET_DIFFS", {
16
+ slug: "semanticscholar-get-dataset-diffs",
17
+ name: "Get dataset diffs",
18
+ description: "Get download links for incremental diffs between dataset releases. Returns a list of diffs required to update a dataset from start_release to end_release, enabling efficient dataset synchronization. Use when you need to update a local dataset copy without re-downloading the entire dataset.",
19
+ input: SemanticscholarGetDatasetDiffsInput,
20
+ output: z.object({
21
+ diffs: z.array(SemanticscholarGetDatasetDiffs_DatasetDiffSchema).describe("List of diff objects containing download links for incremental updates. Each diff contains 'update_files' and 'delete_files' lists."),
22
+ dataset: z.string().describe("Name of the dataset these diffs are for"),
23
+ end_release: z.string().describe("Ending release, i.e. the release the client wants to update to"),
24
+ start_release: z.string().describe("Beginning release, i.e. the release currently held by the client")
25
+ }).describe("Response schema for `GetDatasetDiffs`")
26
+ });
27
+ //#endregion
28
+ export { semanticscholarGetDatasetDiffs };
29
+
30
+ //# sourceMappingURL=get-dataset-diffs.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset-diffs.mjs","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDatasetDiffsInput: z.ZodTypeAny = z.object({\n dataset_name: z.string().describe(\"Name of the dataset to retrieve diffs for. Common datasets include 'papers', 'authors', 'citations', 'abstracts', etc.\"),\n end_release_id: z.string().describe(\"ID of the ending release. Use date format YYYY-MM-DD (e.g., '2025-01-15') or 'latest' for the most recent release.\"),\n start_release_id: z.string().describe(\"ID of the starting release. Use date format YYYY-MM-DD (e.g., '2024-12-31') or 'latest' for the most recent release.\"),\n}).describe(\"Request schema for `GetDatasetDiffs`\");\nconst SemanticscholarGetDatasetDiffs_DatasetDiffSchema: z.ZodTypeAny = z.object({\n to_release: z.string().describe(\"Target release for this specific diff\"),\n delete_files: z.array(z.string()).describe(\"Download links to files with records that need removing from the dataset\"),\n from_release: z.string().describe(\"Baseline release for this specific diff\"),\n update_files: z.array(z.string()).describe(\"Download links to files with records that need inserting or updating by their primary key\"),\n}).describe(\"Individual diff object representing changes between two releases\");\nexport const SemanticscholarGetDatasetDiffsOutput: z.ZodTypeAny = z.object({\n diffs: z.array(SemanticscholarGetDatasetDiffs_DatasetDiffSchema).describe(\"List of diff objects containing download links for incremental updates. Each diff contains 'update_files' and 'delete_files' lists.\"),\n dataset: z.string().describe(\"Name of the dataset these diffs are for\"),\n end_release: z.string().describe(\"Ending release, i.e. the release the client wants to update to\"),\n start_release: z.string().describe(\"Beginning release, i.e. the release currently held by the client\"),\n}).describe(\"Response schema for `GetDatasetDiffs`\");\n\nexport const semanticscholarGetDatasetDiffs = action(\"SEMANTICSCHOLAR_GET_DATASET_DIFFS\", {\n slug: \"semanticscholar-get-dataset-diffs\",\n name: \"Get dataset diffs\",\n description: \"Get download links for incremental diffs between dataset releases. Returns a list of diffs required to update a dataset from start_release to end_release, enabling efficient dataset synchronization. Use when you need to update a local dataset copy without re-downloading the entire dataset.\",\n input: SemanticscholarGetDatasetDiffsInput,\n output: SemanticscholarGetDatasetDiffsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoD,EAAE,OAAO;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;CAC1J,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACxJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;AAC9J,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,mDAAiE,EAAE,OAAO;CAC9E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACvE,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0EAA0E;CACrH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CAC3E,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxI,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAQ9E,MAAa,iCAAiC,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZgE,EAAE,OAAO;EACzE,OAAO,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,qIAAqI;EAC/M,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EACjG,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CACvG,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
@@ -0,0 +1,24 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-dataset.ts
4
+ const SemanticscholarGetDatasetInput = zod.z.object({
5
+ release_id: zod.z.string().describe("ID of the release. Use 'latest' for the most recent release, or a specific date in YYYY-MM-DD format (e.g., '2024-12-31')"),
6
+ dataset_name: zod.z.string().describe("Name of the dataset to retrieve. Common dataset names include: 'papers', 'abstracts', 'authors', 'citations', 'embeddings'")
7
+ }).describe("Request schema for GetDataset");
8
+ const SemanticscholarGetDatasetOutput = zod.z.object({
9
+ name: zod.z.string().describe("Name of the dataset"),
10
+ files: zod.z.array(zod.z.string()).describe("List of temporary, pre-signed S3 download URLs for dataset partitions. These URLs expire after a limited time and must be used promptly"),
11
+ README: zod.z.string().describe("License and usage information for the dataset"),
12
+ description: zod.z.string().describe("Description of the data contained in this dataset")
13
+ }).describe("Response schema for GetDataset");
14
+ const semanticscholarGetDataset = require_action.action("SEMANTICSCHOLAR_GET_DATASET", {
15
+ slug: "semanticscholar-get-dataset",
16
+ name: "Get dataset download links",
17
+ description: "Tool to get download links for a specific dataset within a release. Use when you need to download Semantic Scholar dataset files from S3. Returns pre-signed URLs for all dataset partitions.",
18
+ input: SemanticscholarGetDatasetInput,
19
+ output: SemanticscholarGetDatasetOutput
20
+ });
21
+ //#endregion
22
+ exports.semanticscholarGetDataset = semanticscholarGetDataset;
23
+
24
+ //# sourceMappingURL=get-dataset.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset.cjs","names":["z","action"],"sources":["../../src/actions/get-dataset.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDatasetInput: z.ZodTypeAny = z.object({\n release_id: z.string().describe(\"ID of the release. Use 'latest' for the most recent release, or a specific date in YYYY-MM-DD format (e.g., '2024-12-31')\"),\n dataset_name: z.string().describe(\"Name of the dataset to retrieve. Common dataset names include: 'papers', 'abstracts', 'authors', 'citations', 'embeddings'\"),\n}).describe(\"Request schema for GetDataset\");\nexport const SemanticscholarGetDatasetOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the dataset\"),\n files: z.array(z.string()).describe(\"List of temporary, pre-signed S3 download URLs for dataset partitions. These URLs expire after a limited time and must be used promptly\"),\n README: z.string().describe(\"License and usage information for the dataset\"),\n description: z.string().describe(\"Description of the data contained in this dataset\"),\n}).describe(\"Response schema for GetDataset\");\n\nexport const semanticscholarGetDataset = action(\"SEMANTICSCHOLAR_GET_DATASET\", {\n slug: \"semanticscholar-get-dataset\",\n name: \"Get dataset download links\",\n description: \"Tool to get download links for a specific dataset within a release. Use when you need to download Semantic Scholar dataset files from S3. Returns pre-signed URLs for all dataset partitions.\",\n input: SemanticscholarGetDatasetInput,\n output: SemanticscholarGetDatasetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;CAC3J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H;AAChK,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yIAAyI;CAC7K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACtF,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,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/get-dataset.d.ts
4
+ declare const SemanticscholarGetDatasetInput: z.ZodTypeAny;
5
+ declare const SemanticscholarGetDatasetOutput: z.ZodTypeAny;
6
+ declare const semanticscholarGetDataset: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarGetDataset };
9
+ //# sourceMappingURL=get-dataset.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset.d.cts","names":[],"sources":["../../src/actions/get-dataset.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAGH;AAAA,cAC/B,+BAAA,EAAiC,CAAA,CAAE,UAKH;AAAA,cAEhC,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-dataset.d.ts
4
+ declare const SemanticscholarGetDatasetInput: z.ZodTypeAny;
5
+ declare const SemanticscholarGetDatasetOutput: z.ZodTypeAny;
6
+ declare const semanticscholarGetDataset: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarGetDataset };
9
+ //# sourceMappingURL=get-dataset.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset.d.mts","names":[],"sources":["../../src/actions/get-dataset.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAGH;AAAA,cAC/B,+BAAA,EAAiC,CAAA,CAAE,UAKH;AAAA,cAEhC,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,21 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const semanticscholarGetDataset = action("SEMANTICSCHOLAR_GET_DATASET", {
4
+ slug: "semanticscholar-get-dataset",
5
+ name: "Get dataset download links",
6
+ description: "Tool to get download links for a specific dataset within a release. Use when you need to download Semantic Scholar dataset files from S3. Returns pre-signed URLs for all dataset partitions.",
7
+ input: z.object({
8
+ release_id: z.string().describe("ID of the release. Use 'latest' for the most recent release, or a specific date in YYYY-MM-DD format (e.g., '2024-12-31')"),
9
+ dataset_name: z.string().describe("Name of the dataset to retrieve. Common dataset names include: 'papers', 'abstracts', 'authors', 'citations', 'embeddings'")
10
+ }).describe("Request schema for GetDataset"),
11
+ output: z.object({
12
+ name: z.string().describe("Name of the dataset"),
13
+ files: z.array(z.string()).describe("List of temporary, pre-signed S3 download URLs for dataset partitions. These URLs expire after a limited time and must be used promptly"),
14
+ README: z.string().describe("License and usage information for the dataset"),
15
+ description: z.string().describe("Description of the data contained in this dataset")
16
+ }).describe("Response schema for GetDataset")
17
+ });
18
+ //#endregion
19
+ export { semanticscholarGetDataset };
20
+
21
+ //# sourceMappingURL=get-dataset.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-dataset.mjs","names":[],"sources":["../../src/actions/get-dataset.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDatasetInput: z.ZodTypeAny = z.object({\n release_id: z.string().describe(\"ID of the release. Use 'latest' for the most recent release, or a specific date in YYYY-MM-DD format (e.g., '2024-12-31')\"),\n dataset_name: z.string().describe(\"Name of the dataset to retrieve. Common dataset names include: 'papers', 'abstracts', 'authors', 'citations', 'embeddings'\"),\n}).describe(\"Request schema for GetDataset\");\nexport const SemanticscholarGetDatasetOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the dataset\"),\n files: z.array(z.string()).describe(\"List of temporary, pre-signed S3 download URLs for dataset partitions. These URLs expire after a limited time and must be used promptly\"),\n README: z.string().describe(\"License and usage information for the dataset\"),\n description: z.string().describe(\"Description of the data contained in this dataset\"),\n}).describe(\"Response schema for GetDataset\");\n\nexport const semanticscholarGetDataset = action(\"SEMANTICSCHOLAR_GET_DATASET\", {\n slug: \"semanticscholar-get-dataset\",\n name: \"Get dataset download links\",\n description: \"Tool to get download links for a specific dataset within a release. Use when you need to download Semantic Scholar dataset files from S3. Returns pre-signed URLs for all dataset partitions.\",\n input: SemanticscholarGetDatasetInput,\n output: SemanticscholarGetDatasetOutput,\n});\n"],"mappings":";;AAeA,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf0D,EAAE,OAAO;EACnE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;EAC3J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H;CAChK,CAAC,CAAC,CAAC,SAAS,+BAYH;CACP,QAZ2D,EAAE,OAAO;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAC/C,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yIAAyI;EAC7K,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACtF,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-details-for-multiple-authors-at-once.ts
4
+ const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput = zod.z.object({
5
+ ids: zod.z.array(zod.z.string()).describe("A list of Semantic Scholar author IDs to retrieve details for. Author IDs are unique identifiers in the format of numeric strings (e.g., '144388777', '1688882'). You can obtain author IDs by searching for authors by name using the author search endpoint. The API will return author details for each valid ID, and null for any invalid or non-existent IDs."),
6
+ 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()
7
+ }).describe("Request schema for `GetDetailsForMultipleAuthorsAtOnce`");
8
+ const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput = zod.z.unknown();
9
+ const semanticscholarGetDetailsForMultipleAuthorsAtOnce = require_action.action("SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_AUTHORS_AT_ONCE", {
10
+ slug: "semanticscholar-get-details-for-multiple-authors-at-once",
11
+ name: "Get details for multiple authors at once",
12
+ description: "Retrieves detailed information for multiple authors from Semantic Scholar in a single API call. This endpoint allows users to efficiently fetch data for a batch of authors by providing their unique Semantic Scholar IDs. It's particularly useful for applications that need to gather information on multiple authors simultaneously, reducing the number of individual API calls required. The endpoint accepts a list of author IDs and returns comprehensive details for each author, which may include their publications, citations, and other relevant academic information. While the exact response structure is not specified in the given schema, users can expect rich metadata about the requested authors.",
13
+ input: SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput,
14
+ output: SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput
15
+ });
16
+ //#endregion
17
+ exports.semanticscholarGetDetailsForMultipleAuthorsAtOnce = semanticscholarGetDetailsForMultipleAuthorsAtOnce;
18
+
19
+ //# sourceMappingURL=get-details-for-multiple-authors-at-once.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-details-for-multiple-authors-at-once.cjs","names":["z","action"],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"A list of Semantic Scholar author IDs to retrieve details for. Author IDs are unique identifiers in the format of numeric strings (e.g., '144388777', '1688882'). You can obtain author IDs by searching for authors by name using the author search endpoint. The API will return author details for each valid ID, and null for any invalid or non-existent IDs.\"),\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}).describe(\"Request schema for `GetDetailsForMultipleAuthorsAtOnce`\");\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput: z.ZodTypeAny = z.unknown();\n\nexport const semanticscholarGetDetailsForMultipleAuthorsAtOnce = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_AUTHORS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-authors-at-once\",\n name: \"Get details for multiple authors at once\",\n description: \"Retrieves detailed information for multiple authors from Semantic Scholar in a single API call. This endpoint allows users to efficiently fetch data for a batch of authors by providing their unique Semantic Scholar IDs. It's particularly useful for applications that need to gather information on multiple authors simultaneously, reducing the number of individual API calls required. The endpoint accepts a list of author IDs and returns comprehensive details for each author, which may include their publications, citations, and other relevant academic information. While the exact response structure is not specified in the given schema, users can expect rich metadata about the requested authors.\",\n input: SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput,\n output: SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yDAAuEA,IAAAA,EAAE,OAAO;CAC3F,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oWAAoW;CACtY,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2gBAA2gB,CAAC,CAAC,SAAS;AACpjB,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,0DAAwEA,IAAAA,EAAE,QAAQ;AAE/F,MAAa,oDAAoDC,eAAAA,OAAO,4DAA4D;CAClI,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/get-details-for-multiple-authors-at-once.d.ts
4
+ declare const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput: z.ZodTypeAny;
5
+ declare const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput: z.ZodTypeAny;
6
+ declare const semanticscholarGetDetailsForMultipleAuthorsAtOnce: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarGetDetailsForMultipleAuthorsAtOnce };
9
+ //# sourceMappingURL=get-details-for-multiple-authors-at-once.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-details-for-multiple-authors-at-once.d.cts","names":[],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"mappings":";;;cAIa,sDAAA,EAAwD,CAAA,CAAE,UAGD;AAAA,cACzD,uDAAA,EAAyD,CAAA,CAAE,UAAwB;AAAA,cAEnF,iDAAA,gCAAiD,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-details-for-multiple-authors-at-once.d.ts
4
+ declare const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput: z.ZodTypeAny;
5
+ declare const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput: z.ZodTypeAny;
6
+ declare const semanticscholarGetDetailsForMultipleAuthorsAtOnce: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarGetDetailsForMultipleAuthorsAtOnce };
9
+ //# sourceMappingURL=get-details-for-multiple-authors-at-once.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-details-for-multiple-authors-at-once.d.mts","names":[],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"mappings":";;;cAIa,sDAAA,EAAwD,CAAA,CAAE,UAGD;AAAA,cACzD,uDAAA,EAAyD,CAAA,CAAE,UAAwB;AAAA,cAEnF,iDAAA,gCAAiD,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const semanticscholarGetDetailsForMultipleAuthorsAtOnce = action("SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_AUTHORS_AT_ONCE", {
4
+ slug: "semanticscholar-get-details-for-multiple-authors-at-once",
5
+ name: "Get details for multiple authors at once",
6
+ description: "Retrieves detailed information for multiple authors from Semantic Scholar in a single API call. This endpoint allows users to efficiently fetch data for a batch of authors by providing their unique Semantic Scholar IDs. It's particularly useful for applications that need to gather information on multiple authors simultaneously, reducing the number of individual API calls required. The endpoint accepts a list of author IDs and returns comprehensive details for each author, which may include their publications, citations, and other relevant academic information. While the exact response structure is not specified in the given schema, users can expect rich metadata about the requested authors.",
7
+ input: z.object({
8
+ ids: z.array(z.string()).describe("A list of Semantic Scholar author IDs to retrieve details for. Author IDs are unique identifiers in the format of numeric strings (e.g., '144388777', '1688882'). You can obtain author IDs by searching for authors by name using the author search endpoint. The API will return author details for each valid ID, and null for any invalid or non-existent IDs."),
9
+ 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()
10
+ }).describe("Request schema for `GetDetailsForMultipleAuthorsAtOnce`"),
11
+ output: z.unknown()
12
+ });
13
+ //#endregion
14
+ export { semanticscholarGetDetailsForMultipleAuthorsAtOnce };
15
+
16
+ //# sourceMappingURL=get-details-for-multiple-authors-at-once.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-details-for-multiple-authors-at-once.mjs","names":[],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"A list of Semantic Scholar author IDs to retrieve details for. Author IDs are unique identifiers in the format of numeric strings (e.g., '144388777', '1688882'). You can obtain author IDs by searching for authors by name using the author search endpoint. The API will return author details for each valid ID, and null for any invalid or non-existent IDs.\"),\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}).describe(\"Request schema for `GetDetailsForMultipleAuthorsAtOnce`\");\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput: z.ZodTypeAny = z.unknown();\n\nexport const semanticscholarGetDetailsForMultipleAuthorsAtOnce = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_AUTHORS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-authors-at-once\",\n name: \"Get details for multiple authors at once\",\n description: \"Retrieves detailed information for multiple authors from Semantic Scholar in a single API call. This endpoint allows users to efficiently fetch data for a batch of authors by providing their unique Semantic Scholar IDs. It's particularly useful for applications that need to gather information on multiple authors simultaneously, reducing the number of individual API calls required. The endpoint accepts a list of author IDs and returns comprehensive details for each author, which may include their publications, citations, and other relevant academic information. While the exact response structure is not specified in the given schema, users can expect rich metadata about the requested authors.\",\n input: SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput,\n output: SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput,\n});\n"],"mappings":";;AAUA,MAAa,oDAAoD,OAAO,4DAA4D;CAClI,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAVkF,EAAE,OAAO;EAC3F,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oWAAoW;EACtY,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2gBAA2gB,CAAC,CAAC,SAAS;CACpjB,CAAC,CAAC,CAAC,SAAS,yDAOH;CACP,QAPmF,EAAE,QAO7E;AACV,CAAC"}
@@ -0,0 +1,41 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-details-for-multiple-papers-at-once.ts
4
+ const SemanticscholarGetDetailsForMultiplePapersAtOnceInput = zod.z.object({
5
+ ids: zod.z.array(zod.z.string()).describe("A list of paper IDs to retrieve (maximum 500 IDs per request). Supports multiple ID formats: Semantic Scholar Paper ID (e.g., '649def34f8be52c8b66281af98ae884c09aef38b'), CorpusId (e.g., 'CorpusId:37220927'), DOI (e.g., '10.1038/nature14539'), ArXiv ID (e.g., 'arXiv:1706.03762'), PubMed ID (e.g., 'PMID:29446767'), PubMed Central ID (e.g., 'PMCID:PMC5833129'), MAG ID, ACL ID, or paper URL. Papers not found will return null in the response array.").optional(),
6
+ 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>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. <p>Use a period (“.”) for fields that have version numbers or subfields, such as the <code>embedding</code>, <code>authors</code>, <code>citations</code>, and <code>references</code> fields: <ul> <li>When requesting <code>authors</code>, the <code>authorId</code> and <code>name</code> subfields are returned by default. To request other subfields, use the format <code>author.url,author.paperCount</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>citations</code> and <code>references</code>, the <code>paperId</code> and <code>title</code> subfields are returned by default. To request other subfields, use the format <code>citations.title,citations.abstract</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>embedding</code>, the default <a href=\"https://github.com/allenai/specter\">Spector embedding version</a> is v1. Specify <code>embedding.specter_v2</code> to select v2 embeddings.</li> </ul> Examples: <ul> <li><code>fields=title,url</code></li> <li><code>fields=title,embedding.specter_v2</code></li> <li><code>fields=title,authors,citations.title,citations.abstract</code></li> </ul>").optional()
7
+ }).describe("Request schema for `GetDetailsForMultiplePapersAtOnce`");
8
+ const SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema = zod.z.object({
9
+ url: zod.z.string().describe("Semantic Scholar URL for the paper").nullable().optional(),
10
+ year: zod.z.number().int().describe("Publication year").nullable().optional(),
11
+ title: zod.z.string().describe("Paper title").nullable().optional(),
12
+ venue: zod.z.string().describe("Publication venue").nullable().optional(),
13
+ authors: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of authors with authorId, name, and optional subfields").nullable().optional(),
14
+ journal: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Journal information").nullable().optional(),
15
+ paperId: zod.z.string().describe("Unique Semantic Scholar paper ID").nullable().optional(),
16
+ abstract: zod.z.string().describe("Paper abstract").nullable().optional(),
17
+ citations: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of papers citing this paper").nullable().optional(),
18
+ embedding: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Paper embedding vector (SPECTER)").nullable().optional(),
19
+ references: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of papers referenced by this paper").nullable().optional(),
20
+ citationCount: zod.z.number().int().describe("Total number of citations").nullable().optional(),
21
+ fieldsOfStudy: zod.z.array(zod.z.string()).describe("Fields of study").nullable().optional(),
22
+ openAccessPdf: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Open access PDF information").nullable().optional(),
23
+ referenceCount: zod.z.number().int().describe("Number of references").nullable().optional(),
24
+ publicationDate: zod.z.string().describe("Publication date in YYYY-MM-DD format").nullable().optional(),
25
+ s2FieldsOfStudy: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Semantic Scholar fields of study with categories").nullable().optional(),
26
+ publicationTypes: zod.z.array(zod.z.string()).describe("Types of publication (e.g., JournalArticle, Conference)").nullable().optional(),
27
+ publicationVenue: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Detailed publication venue information").nullable().optional(),
28
+ influentialCitationCount: zod.z.number().int().describe("Number of influential citations").nullable().optional()
29
+ }).passthrough().describe("Details for a single paper. Available fields vary based on the 'fields' parameter.");
30
+ const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput = zod.z.object({ details: zod.z.array(SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema.nullable()).describe("Array of paper details. Each entry contains the requested fields for a paper. If a paper ID is not found, the corresponding entry will be null. Papers appear in the same order as the input IDs.") }).passthrough().describe("Response schema for `GetDetailsForMultiplePapersAtOnce`");
31
+ const semanticscholarGetDetailsForMultiplePapersAtOnce = require_action.action("SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_PAPERS_AT_ONCE", {
32
+ slug: "semanticscholar-get-details-for-multiple-papers-at-once",
33
+ name: "Get details for multiple papers at once",
34
+ description: "Retrieve detailed information for multiple academic papers in a single API call using the Semantic Scholar paper batch endpoint. This endpoint efficiently fetches data for up to 500 papers at once, significantly reducing the number of individual API requests needed. Key features: - Accepts multiple paper ID formats (Semantic Scholar ID, CorpusId, DOI, ArXiv, PMID, etc.) - Customizable field selection to retrieve only needed data - Papers not found return null in the corresponding array position - Results maintain the same order as input IDs - Supports nested field queries (e.g., authors.name, citations.title) Use this endpoint when you have a list of known paper IDs and want to retrieve their details simultaneously, rather than making individual requests for each paper.",
35
+ input: SemanticscholarGetDetailsForMultiplePapersAtOnceInput,
36
+ output: SemanticscholarGetDetailsForMultiplePapersAtOnceOutput
37
+ });
38
+ //#endregion
39
+ exports.semanticscholarGetDetailsForMultiplePapersAtOnce = semanticscholarGetDetailsForMultiplePapersAtOnce;
40
+
41
+ //# sourceMappingURL=get-details-for-multiple-papers-at-once.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-details-for-multiple-papers-at-once.cjs","names":["z","action"],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceInput: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"A list of paper IDs to retrieve (maximum 500 IDs per request). Supports multiple ID formats: Semantic Scholar Paper ID (e.g., '649def34f8be52c8b66281af98ae884c09aef38b'), CorpusId (e.g., 'CorpusId:37220927'), DOI (e.g., '10.1038/nature14539'), ArXiv ID (e.g., 'arXiv:1706.03762'), PubMed ID (e.g., 'PMID:29446767'), PubMed Central ID (e.g., 'PMCID:PMC5833129'), MAG ID, ACL ID, or paper URL. Papers not found will return null in the response array.\").optional(),\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>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. <p>Use a period (“.”) for fields that have version numbers or subfields, such as the <code>embedding</code>, <code>authors</code>, <code>citations</code>, and <code>references</code> fields: <ul> <li>When requesting <code>authors</code>, the <code>authorId</code> and <code>name</code> subfields are returned by default. To request other subfields, use the format <code>author.url,author.paperCount</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>citations</code> and <code>references</code>, the <code>paperId</code> and <code>title</code> subfields are returned by default. To request other subfields, use the format <code>citations.title,citations.abstract</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>embedding</code>, the default <a href=\\\"https://github.com/allenai/specter\\\">Spector embedding version</a> is v1. Specify <code>embedding.specter_v2</code> to select v2 embeddings.</li> </ul> Examples: <ul> <li><code>fields=title,url</code></li> <li><code>fields=title,embedding.specter_v2</code></li> <li><code>fields=title,authors,citations.title,citations.abstract</code></li> </ul>\").optional(),\n}).describe(\"Request schema for `GetDetailsForMultiplePapersAtOnce`\");\nconst SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the 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 authors: z.array(z.record(z.string(), z.unknown())).describe(\"List of authors with authorId, name, and optional subfields\").nullable().optional(),\n journal: z.record(z.string(), z.unknown()).describe(\"Journal information\").nullable().optional(),\n paperId: z.string().describe(\"Unique Semantic Scholar paper ID\").nullable().optional(),\n abstract: z.string().describe(\"Paper abstract\").nullable().optional(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers citing this paper\").nullable().optional(),\n embedding: z.record(z.string(), z.unknown()).describe(\"Paper embedding vector (SPECTER)\").nullable().optional(),\n references: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers referenced by this paper\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Fields of study\").nullable().optional(),\n openAccessPdf: z.record(z.string(), z.unknown()).describe(\"Open access PDF information\").nullable().optional(),\n referenceCount: z.number().int().describe(\"Number of references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(z.record(z.string(), z.unknown())).describe(\"Semantic Scholar fields of study with categories\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n publicationVenue: z.record(z.string(), z.unknown()).describe(\"Detailed publication venue information\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of influential citations\").nullable().optional(),\n}).passthrough().describe(\"Details for a single paper. Available fields vary based on the 'fields' parameter.\");\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput: z.ZodTypeAny = z.object({\n details: z.array(SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema.nullable()).describe(\"Array of paper details. Each entry contains the requested fields for a paper. If a paper ID is not found, the corresponding entry will be null. Papers appear in the same order as the input IDs.\"),\n}).passthrough().describe(\"Response schema for `GetDetailsForMultiplePapersAtOnce`\");\n\nexport const semanticscholarGetDetailsForMultiplePapersAtOnce = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_PAPERS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-papers-at-once\",\n name: \"Get details for multiple papers at once\",\n description: \"Retrieve detailed information for multiple academic papers in a single API call using the Semantic Scholar paper batch endpoint. This endpoint efficiently fetches data for up to 500 papers at once, significantly reducing the number of individual API requests needed. Key features: - Accepts multiple paper ID formats (Semantic Scholar ID, CorpusId, DOI, ArXiv, PMID, etc.) - Customizable field selection to retrieve only needed data - Papers not found return null in the corresponding array position - Results maintain the same order as input IDs - Supports nested field queries (e.g., authors.name, citations.title) Use this endpoint when you have a list of known paper IDs and want to retrieve their details simultaneously, rather than making individual requests for each paper.\",\n input: SemanticscholarGetDetailsForMultiplePapersAtOnceInput,\n output: SemanticscholarGetDetailsForMultiplePapersAtOnceOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wDAAsEA,IAAAA,EAAE,OAAO;CAC1F,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kcAAkc,CAAC,CAAC,SAAS;CAC/e,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2/CAA2/C,CAAC,CAAC,SAAS;AACpiD,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,sEAAoFA,IAAAA,EAAE,OAAO;CACjG,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,aAAa,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpE,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,eAAeA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,kBAAkBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oFAAoF;AAC9G,MAAa,yDAAuEA,IAAAA,EAAE,OAAO,EAC3F,SAASA,IAAAA,EAAE,MAAM,oEAAoE,SAAS,CAAC,CAAC,CAAC,SAAS,mMAAmM,EAC/S,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,mDAAmDC,eAAAA,OAAO,2DAA2D;CAChI,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/get-details-for-multiple-papers-at-once.d.ts
4
+ declare const SemanticscholarGetDetailsForMultiplePapersAtOnceInput: z.ZodTypeAny;
5
+ declare const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput: z.ZodTypeAny;
6
+ declare const semanticscholarGetDetailsForMultiplePapersAtOnce: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarGetDetailsForMultiplePapersAtOnce };
9
+ //# sourceMappingURL=get-details-for-multiple-papers-at-once.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-details-for-multiple-papers-at-once.d.cts","names":[],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"mappings":";;;cAIa,qDAAA,EAAuD,CAAA,CAAE,UAGD;AAAA,cAuBxD,sDAAA,EAAwD,CAAA,CAAE,UAEa;AAAA,cAEvE,gDAAA,gCAAgD,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-details-for-multiple-papers-at-once.d.ts
4
+ declare const SemanticscholarGetDetailsForMultiplePapersAtOnceInput: z.ZodTypeAny;
5
+ declare const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput: z.ZodTypeAny;
6
+ declare const semanticscholarGetDetailsForMultiplePapersAtOnce: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { semanticscholarGetDetailsForMultiplePapersAtOnce };
9
+ //# sourceMappingURL=get-details-for-multiple-papers-at-once.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-details-for-multiple-papers-at-once.d.mts","names":[],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"mappings":";;;cAIa,qDAAA,EAAuD,CAAA,CAAE,UAGD;AAAA,cAuBxD,sDAAA,EAAwD,CAAA,CAAE,UAEa;AAAA,cAEvE,gDAAA,gCAAgD,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,40 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-details-for-multiple-papers-at-once.ts
4
+ const SemanticscholarGetDetailsForMultiplePapersAtOnceInput = z.object({
5
+ ids: z.array(z.string()).describe("A list of paper IDs to retrieve (maximum 500 IDs per request). Supports multiple ID formats: Semantic Scholar Paper ID (e.g., '649def34f8be52c8b66281af98ae884c09aef38b'), CorpusId (e.g., 'CorpusId:37220927'), DOI (e.g., '10.1038/nature14539'), ArXiv ID (e.g., 'arXiv:1706.03762'), PubMed ID (e.g., 'PMID:29446767'), PubMed Central ID (e.g., 'PMCID:PMC5833129'), MAG ID, ACL ID, or paper URL. Papers not found will return null in the response array.").optional(),
6
+ 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>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. <p>Use a period (“.”) for fields that have version numbers or subfields, such as the <code>embedding</code>, <code>authors</code>, <code>citations</code>, and <code>references</code> fields: <ul> <li>When requesting <code>authors</code>, the <code>authorId</code> and <code>name</code> subfields are returned by default. To request other subfields, use the format <code>author.url,author.paperCount</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>citations</code> and <code>references</code>, the <code>paperId</code> and <code>title</code> subfields are returned by default. To request other subfields, use the format <code>citations.title,citations.abstract</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>embedding</code>, the default <a href=\"https://github.com/allenai/specter\">Spector embedding version</a> is v1. Specify <code>embedding.specter_v2</code> to select v2 embeddings.</li> </ul> Examples: <ul> <li><code>fields=title,url</code></li> <li><code>fields=title,embedding.specter_v2</code></li> <li><code>fields=title,authors,citations.title,citations.abstract</code></li> </ul>").optional()
7
+ }).describe("Request schema for `GetDetailsForMultiplePapersAtOnce`");
8
+ const SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema = z.object({
9
+ url: z.string().describe("Semantic Scholar URL for the paper").nullable().optional(),
10
+ year: z.number().int().describe("Publication year").nullable().optional(),
11
+ title: z.string().describe("Paper title").nullable().optional(),
12
+ venue: z.string().describe("Publication venue").nullable().optional(),
13
+ authors: z.array(z.record(z.string(), z.unknown())).describe("List of authors with authorId, name, and optional subfields").nullable().optional(),
14
+ journal: z.record(z.string(), z.unknown()).describe("Journal information").nullable().optional(),
15
+ paperId: z.string().describe("Unique Semantic Scholar paper ID").nullable().optional(),
16
+ abstract: z.string().describe("Paper abstract").nullable().optional(),
17
+ citations: z.array(z.record(z.string(), z.unknown())).describe("List of papers citing this paper").nullable().optional(),
18
+ embedding: z.record(z.string(), z.unknown()).describe("Paper embedding vector (SPECTER)").nullable().optional(),
19
+ references: z.array(z.record(z.string(), z.unknown())).describe("List of papers referenced by this paper").nullable().optional(),
20
+ citationCount: z.number().int().describe("Total number of citations").nullable().optional(),
21
+ fieldsOfStudy: z.array(z.string()).describe("Fields of study").nullable().optional(),
22
+ openAccessPdf: z.record(z.string(), z.unknown()).describe("Open access PDF information").nullable().optional(),
23
+ referenceCount: z.number().int().describe("Number of references").nullable().optional(),
24
+ publicationDate: z.string().describe("Publication date in YYYY-MM-DD format").nullable().optional(),
25
+ s2FieldsOfStudy: z.array(z.record(z.string(), z.unknown())).describe("Semantic Scholar fields of study with categories").nullable().optional(),
26
+ publicationTypes: z.array(z.string()).describe("Types of publication (e.g., JournalArticle, Conference)").nullable().optional(),
27
+ publicationVenue: z.record(z.string(), z.unknown()).describe("Detailed publication venue information").nullable().optional(),
28
+ influentialCitationCount: z.number().int().describe("Number of influential citations").nullable().optional()
29
+ }).passthrough().describe("Details for a single paper. Available fields vary based on the 'fields' parameter.");
30
+ const semanticscholarGetDetailsForMultiplePapersAtOnce = action("SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_PAPERS_AT_ONCE", {
31
+ slug: "semanticscholar-get-details-for-multiple-papers-at-once",
32
+ name: "Get details for multiple papers at once",
33
+ description: "Retrieve detailed information for multiple academic papers in a single API call using the Semantic Scholar paper batch endpoint. This endpoint efficiently fetches data for up to 500 papers at once, significantly reducing the number of individual API requests needed. Key features: - Accepts multiple paper ID formats (Semantic Scholar ID, CorpusId, DOI, ArXiv, PMID, etc.) - Customizable field selection to retrieve only needed data - Papers not found return null in the corresponding array position - Results maintain the same order as input IDs - Supports nested field queries (e.g., authors.name, citations.title) Use this endpoint when you have a list of known paper IDs and want to retrieve their details simultaneously, rather than making individual requests for each paper.",
34
+ input: SemanticscholarGetDetailsForMultiplePapersAtOnceInput,
35
+ output: z.object({ details: z.array(SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema.nullable()).describe("Array of paper details. Each entry contains the requested fields for a paper. If a paper ID is not found, the corresponding entry will be null. Papers appear in the same order as the input IDs.") }).passthrough().describe("Response schema for `GetDetailsForMultiplePapersAtOnce`")
36
+ });
37
+ //#endregion
38
+ export { semanticscholarGetDetailsForMultiplePapersAtOnce };
39
+
40
+ //# sourceMappingURL=get-details-for-multiple-papers-at-once.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-details-for-multiple-papers-at-once.mjs","names":[],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceInput: z.ZodTypeAny = z.object({\n ids: z.array(z.string()).describe(\"A list of paper IDs to retrieve (maximum 500 IDs per request). Supports multiple ID formats: Semantic Scholar Paper ID (e.g., '649def34f8be52c8b66281af98ae884c09aef38b'), CorpusId (e.g., 'CorpusId:37220927'), DOI (e.g., '10.1038/nature14539'), ArXiv ID (e.g., 'arXiv:1706.03762'), PubMed ID (e.g., 'PMID:29446767'), PubMed Central ID (e.g., 'PMCID:PMC5833129'), MAG ID, ACL ID, or paper URL. Papers not found will return null in the response array.\").optional(),\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>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. <p>Use a period (“.”) for fields that have version numbers or subfields, such as the <code>embedding</code>, <code>authors</code>, <code>citations</code>, and <code>references</code> fields: <ul> <li>When requesting <code>authors</code>, the <code>authorId</code> and <code>name</code> subfields are returned by default. To request other subfields, use the format <code>author.url,author.paperCount</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>citations</code> and <code>references</code>, the <code>paperId</code> and <code>title</code> subfields are returned by default. To request other subfields, use the format <code>citations.title,citations.abstract</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>embedding</code>, the default <a href=\\\"https://github.com/allenai/specter\\\">Spector embedding version</a> is v1. Specify <code>embedding.specter_v2</code> to select v2 embeddings.</li> </ul> Examples: <ul> <li><code>fields=title,url</code></li> <li><code>fields=title,embedding.specter_v2</code></li> <li><code>fields=title,authors,citations.title,citations.abstract</code></li> </ul>\").optional(),\n}).describe(\"Request schema for `GetDetailsForMultiplePapersAtOnce`\");\nconst SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the 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 authors: z.array(z.record(z.string(), z.unknown())).describe(\"List of authors with authorId, name, and optional subfields\").nullable().optional(),\n journal: z.record(z.string(), z.unknown()).describe(\"Journal information\").nullable().optional(),\n paperId: z.string().describe(\"Unique Semantic Scholar paper ID\").nullable().optional(),\n abstract: z.string().describe(\"Paper abstract\").nullable().optional(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers citing this paper\").nullable().optional(),\n embedding: z.record(z.string(), z.unknown()).describe(\"Paper embedding vector (SPECTER)\").nullable().optional(),\n references: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers referenced by this paper\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Fields of study\").nullable().optional(),\n openAccessPdf: z.record(z.string(), z.unknown()).describe(\"Open access PDF information\").nullable().optional(),\n referenceCount: z.number().int().describe(\"Number of references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(z.record(z.string(), z.unknown())).describe(\"Semantic Scholar fields of study with categories\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n publicationVenue: z.record(z.string(), z.unknown()).describe(\"Detailed publication venue information\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of influential citations\").nullable().optional(),\n}).passthrough().describe(\"Details for a single paper. Available fields vary based on the 'fields' parameter.\");\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput: z.ZodTypeAny = z.object({\n details: z.array(SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema.nullable()).describe(\"Array of paper details. Each entry contains the requested fields for a paper. If a paper ID is not found, the corresponding entry will be null. Papers appear in the same order as the input IDs.\"),\n}).passthrough().describe(\"Response schema for `GetDetailsForMultiplePapersAtOnce`\");\n\nexport const semanticscholarGetDetailsForMultiplePapersAtOnce = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_PAPERS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-papers-at-once\",\n name: \"Get details for multiple papers at once\",\n description: \"Retrieve detailed information for multiple academic papers in a single API call using the Semantic Scholar paper batch endpoint. This endpoint efficiently fetches data for up to 500 papers at once, significantly reducing the number of individual API requests needed. Key features: - Accepts multiple paper ID formats (Semantic Scholar ID, CorpusId, DOI, ArXiv, PMID, etc.) - Customizable field selection to retrieve only needed data - Papers not found return null in the corresponding array position - Results maintain the same order as input IDs - Supports nested field queries (e.g., authors.name, citations.title) Use this endpoint when you have a list of known paper IDs and want to retrieve their details simultaneously, rather than making individual requests for each paper.\",\n input: SemanticscholarGetDetailsForMultiplePapersAtOnceInput,\n output: SemanticscholarGetDetailsForMultiplePapersAtOnceOutput,\n});\n"],"mappings":"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"}
@@ -0,0 +1,83 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-paper-recommendations.ts
4
+ const SemanticscholarGetPaperRecommendationsInput = zod.z.object({
5
+ limit: zod.z.number().int().default(100).describe("Maximum number of paper recommendations to return. Default is 100, maximum is 500.").optional(),
6
+ fields: zod.z.string().describe("Comma-separated list of fields to return for each recommended paper. If not specified, only paperId and title are returned. Available fields include: paperId, corpusId, externalIds, url, title, abstract, venue, publicationVenue, year, referenceCount, citationCount, influentialCitationCount, isOpenAccess, openAccessPdf, fieldsOfStudy, s2FieldsOfStudy, publicationTypes, publicationDate, journal, citationStyles, authors, embedding, tldr. Use dot notation for nested fields (e.g., 'authors.authorId', 'citations.title').").optional(),
7
+ negative_paper_ids: zod.z.array(zod.z.string()).describe("Array of paper IDs that represent negative examples (papers you don't want similar recommendations for). This is optional and helps refine recommendations by excluding similar papers. Accepts the same ID formats as positive_paper_ids.").optional(),
8
+ positive_paper_ids: zod.z.array(zod.z.string()).describe("Array of paper IDs that represent positive examples (papers you like and want similar recommendations for). Supported ID formats include: Semantic Scholar ID (e.g., '649def34f8be52c8b66281af98ae884c09aef38b'), CorpusId (e.g., 'CorpusId:215416146'), DOI (e.g., 'DOI:10.18653/v1/N18-3011'), ArXiv (e.g., 'ARXIV:2106.15928'), MAG (e.g., 'MAG:112218234'), ACL (e.g., 'ACL:W12-3903'), PMID (e.g., 'PMID:19872477'), PMCID (e.g., 'PMCID:2323736'), or URL from supported sites.")
9
+ }).describe("Request schema for GetPaperRecommendations");
10
+ const SemanticscholarGetPaperRecommendations_TldrSchema = zod.z.object({
11
+ text: zod.z.string().describe("TLDR summary text").nullable().optional(),
12
+ model: zod.z.string().describe("Model used for generation").nullable().optional()
13
+ }).describe("AI-generated TLDR summary");
14
+ const SemanticscholarGetPaperRecommendations_AuthorSchema = zod.z.object({
15
+ url: zod.z.string().describe("Author profile URL").nullable().optional(),
16
+ name: zod.z.string().describe("Author name").nullable().optional(),
17
+ hIndex: zod.z.number().int().describe("h-index metric").nullable().optional(),
18
+ authorId: zod.z.string().describe("Semantic Scholar author ID").nullable().optional(),
19
+ homepage: zod.z.string().describe("Author homepage").nullable().optional(),
20
+ paperCount: zod.z.number().int().describe("Total number of papers").nullable().optional(),
21
+ externalIds: zod.z.object({}).describe("External IDs like ORCID, DBLP").nullable().optional(),
22
+ affiliations: zod.z.array(zod.z.string()).describe("Author affiliations").nullable().optional(),
23
+ citationCount: zod.z.number().int().describe("Total citation count").nullable().optional()
24
+ }).describe("Author information");
25
+ const SemanticscholarGetPaperRecommendations_JournalSchema = zod.z.object({
26
+ name: zod.z.string().describe("Journal name").nullable().optional(),
27
+ pages: zod.z.string().describe("Page range").nullable().optional(),
28
+ volume: zod.z.string().describe("Volume number").nullable().optional()
29
+ }).describe("Journal metadata");
30
+ const SemanticscholarGetPaperRecommendations_OpenAccessPdfSchema = zod.z.object({
31
+ url: zod.z.string().describe("URL to the open access PDF").nullable().optional(),
32
+ status: zod.z.string().describe("Open access status").nullable().optional(),
33
+ license: zod.z.string().describe("License information").nullable().optional(),
34
+ disclaimer: zod.z.string().describe("Disclaimer text if any").nullable().optional()
35
+ }).describe("Open access PDF information");
36
+ const SemanticscholarGetPaperRecommendations_S2FieldOfStudySchema = zod.z.object({
37
+ source: zod.z.string().describe("Classification source").nullable().optional(),
38
+ category: zod.z.string().describe("Field category").nullable().optional()
39
+ }).describe("Semantic Scholar field of study classification");
40
+ const SemanticscholarGetPaperRecommendations_PublicationVenueSchema = zod.z.object({
41
+ id: zod.z.string().describe("Venue identifier").nullable().optional(),
42
+ url: zod.z.string().describe("Venue URL").nullable().optional(),
43
+ name: zod.z.string().describe("Venue name").nullable().optional(),
44
+ type: zod.z.string().describe("Venue type (e.g., conference, journal)").nullable().optional(),
45
+ alternate_names: zod.z.array(zod.z.string()).describe("Alternative venue names").nullable().optional()
46
+ }).describe("Publication venue details");
47
+ const SemanticscholarGetPaperRecommendations_RecommendedPaperSchema = zod.z.object({
48
+ url: zod.z.string().describe("Paper URL on Semantic Scholar").nullable().optional(),
49
+ tldr: SemanticscholarGetPaperRecommendations_TldrSchema.nullable().optional(),
50
+ year: zod.z.number().int().describe("Publication year").nullable().optional(),
51
+ title: zod.z.string().describe("Paper title").nullable().optional(),
52
+ venue: zod.z.string().describe("Publication venue").nullable().optional(),
53
+ authors: zod.z.array(SemanticscholarGetPaperRecommendations_AuthorSchema).describe("Paper authors").nullable().optional(),
54
+ journal: SemanticscholarGetPaperRecommendations_JournalSchema.nullable().optional(),
55
+ paperId: zod.z.string().describe("Semantic Scholar paper ID"),
56
+ abstract: zod.z.string().describe("Paper abstract").nullable().optional(),
57
+ corpusId: zod.z.number().int().describe("Corpus ID").nullable().optional(),
58
+ embedding: zod.z.object({}).describe("Paper embedding vectors").nullable().optional(),
59
+ externalIds: zod.z.object({}).describe("External IDs (ArXiv, DOI, etc.)").nullable().optional(),
60
+ isOpenAccess: zod.z.boolean().describe("Whether paper is open access").nullable().optional(),
61
+ citationCount: zod.z.number().int().describe("Number of citations").nullable().optional(),
62
+ fieldsOfStudy: zod.z.array(zod.z.string()).describe("Fields of study").nullable().optional(),
63
+ openAccessPdf: SemanticscholarGetPaperRecommendations_OpenAccessPdfSchema.nullable().optional(),
64
+ citationStyles: zod.z.object({}).describe("Citation formats").nullable().optional(),
65
+ referenceCount: zod.z.number().int().describe("Number of references").nullable().optional(),
66
+ publicationDate: zod.z.string().describe("Publication date (YYYY-MM-DD)").nullable().optional(),
67
+ s2FieldsOfStudy: zod.z.array(SemanticscholarGetPaperRecommendations_S2FieldOfStudySchema).describe("Semantic Scholar field classifications").nullable().optional(),
68
+ publicationTypes: zod.z.array(zod.z.string()).describe("Publication types").nullable().optional(),
69
+ publicationVenue: SemanticscholarGetPaperRecommendations_PublicationVenueSchema.nullable().optional(),
70
+ influentialCitationCount: zod.z.number().int().describe("Number of influential citations").nullable().optional()
71
+ }).describe("Recommended paper information");
72
+ const SemanticscholarGetPaperRecommendationsOutput = zod.z.object({ recommendedPapers: zod.z.array(SemanticscholarGetPaperRecommendations_RecommendedPaperSchema).describe("List of recommended papers based on positive and negative examples") }).describe("Response schema for GetPaperRecommendations");
73
+ const semanticscholarGetPaperRecommendations = require_action.action("SEMANTICSCHOLAR_GET_PAPER_RECOMMENDATIONS", {
74
+ slug: "semanticscholar-get-paper-recommendations",
75
+ name: "Get paper recommendations",
76
+ description: "Tool to get paper recommendations based on positive and negative example papers. Use when you need to find papers similar to ones you like (positive examples) and optionally dissimilar to ones you don't like (negative examples). The recommendation engine analyzes the provided examples and returns relevant papers from the Semantic Scholar database.",
77
+ input: SemanticscholarGetPaperRecommendationsInput,
78
+ output: SemanticscholarGetPaperRecommendationsOutput
79
+ });
80
+ //#endregion
81
+ exports.semanticscholarGetPaperRecommendations = semanticscholarGetPaperRecommendations;
82
+
83
+ //# sourceMappingURL=get-paper-recommendations.cjs.map