@keystrokehq/semanticscholar 0.1.5 → 0.1.6

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 (173) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/details-about-a-paper-s-authors.cjs +1 -0
  4. package/dist/actions/details-about-a-paper-s-authors.cjs.map +1 -1
  5. package/dist/actions/details-about-a-paper-s-authors.d.cts +3 -18
  6. package/dist/actions/details-about-a-paper-s-authors.d.cts.map +1 -1
  7. package/dist/actions/details-about-a-paper-s-authors.d.mts +3 -18
  8. package/dist/actions/details-about-a-paper-s-authors.d.mts.map +1 -1
  9. package/dist/actions/details-about-a-paper-s-authors.mjs +1 -0
  10. package/dist/actions/details-about-a-paper-s-authors.mjs.map +1 -1
  11. package/dist/actions/details-about-a-paper-s-citations.cjs +1 -0
  12. package/dist/actions/details-about-a-paper-s-citations.cjs.map +1 -1
  13. package/dist/actions/details-about-a-paper-s-citations.d.cts +3 -18
  14. package/dist/actions/details-about-a-paper-s-citations.d.cts.map +1 -1
  15. package/dist/actions/details-about-a-paper-s-citations.d.mts +3 -18
  16. package/dist/actions/details-about-a-paper-s-citations.d.mts.map +1 -1
  17. package/dist/actions/details-about-a-paper-s-citations.mjs +1 -0
  18. package/dist/actions/details-about-a-paper-s-citations.mjs.map +1 -1
  19. package/dist/actions/details-about-a-paper-s-references.cjs +1 -0
  20. package/dist/actions/details-about-a-paper-s-references.cjs.map +1 -1
  21. package/dist/actions/details-about-a-paper-s-references.d.cts +3 -18
  22. package/dist/actions/details-about-a-paper-s-references.d.cts.map +1 -1
  23. package/dist/actions/details-about-a-paper-s-references.d.mts +3 -18
  24. package/dist/actions/details-about-a-paper-s-references.d.mts.map +1 -1
  25. package/dist/actions/details-about-a-paper-s-references.mjs +1 -0
  26. package/dist/actions/details-about-a-paper-s-references.mjs.map +1 -1
  27. package/dist/actions/details-about-a-paper.cjs +1 -0
  28. package/dist/actions/details-about-a-paper.cjs.map +1 -1
  29. package/dist/actions/details-about-a-paper.d.cts +3 -16
  30. package/dist/actions/details-about-a-paper.d.cts.map +1 -1
  31. package/dist/actions/details-about-a-paper.d.mts +3 -16
  32. package/dist/actions/details-about-a-paper.d.mts.map +1 -1
  33. package/dist/actions/details-about-a-paper.mjs +1 -0
  34. package/dist/actions/details-about-a-paper.mjs.map +1 -1
  35. package/dist/actions/details-about-an-author-s-papers.cjs +1 -0
  36. package/dist/actions/details-about-an-author-s-papers.cjs.map +1 -1
  37. package/dist/actions/details-about-an-author-s-papers.d.cts +3 -18
  38. package/dist/actions/details-about-an-author-s-papers.d.cts.map +1 -1
  39. package/dist/actions/details-about-an-author-s-papers.d.mts +3 -18
  40. package/dist/actions/details-about-an-author-s-papers.d.mts.map +1 -1
  41. package/dist/actions/details-about-an-author-s-papers.mjs +1 -0
  42. package/dist/actions/details-about-an-author-s-papers.mjs.map +1 -1
  43. package/dist/actions/details-about-an-author.cjs +1 -0
  44. package/dist/actions/details-about-an-author.cjs.map +1 -1
  45. package/dist/actions/details-about-an-author.d.cts +3 -16
  46. package/dist/actions/details-about-an-author.d.cts.map +1 -1
  47. package/dist/actions/details-about-an-author.d.mts +3 -16
  48. package/dist/actions/details-about-an-author.d.mts.map +1 -1
  49. package/dist/actions/details-about-an-author.mjs +1 -0
  50. package/dist/actions/details-about-an-author.mjs.map +1 -1
  51. package/dist/actions/get-dataset-diffs.cjs +1 -0
  52. package/dist/actions/get-dataset-diffs.cjs.map +1 -1
  53. package/dist/actions/get-dataset-diffs.d.cts +3 -17
  54. package/dist/actions/get-dataset-diffs.d.cts.map +1 -1
  55. package/dist/actions/get-dataset-diffs.d.mts +3 -17
  56. package/dist/actions/get-dataset-diffs.d.mts.map +1 -1
  57. package/dist/actions/get-dataset-diffs.mjs +1 -0
  58. package/dist/actions/get-dataset-diffs.mjs.map +1 -1
  59. package/dist/actions/get-dataset.cjs +1 -0
  60. package/dist/actions/get-dataset.cjs.map +1 -1
  61. package/dist/actions/get-dataset.d.cts +3 -16
  62. package/dist/actions/get-dataset.d.cts.map +1 -1
  63. package/dist/actions/get-dataset.d.mts +3 -16
  64. package/dist/actions/get-dataset.d.mts.map +1 -1
  65. package/dist/actions/get-dataset.mjs +1 -0
  66. package/dist/actions/get-dataset.mjs.map +1 -1
  67. package/dist/actions/get-details-for-multiple-authors-at-once.cjs +1 -0
  68. package/dist/actions/get-details-for-multiple-authors-at-once.cjs.map +1 -1
  69. package/dist/actions/get-details-for-multiple-authors-at-once.d.cts +3 -16
  70. package/dist/actions/get-details-for-multiple-authors-at-once.d.cts.map +1 -1
  71. package/dist/actions/get-details-for-multiple-authors-at-once.d.mts +3 -16
  72. package/dist/actions/get-details-for-multiple-authors-at-once.d.mts.map +1 -1
  73. package/dist/actions/get-details-for-multiple-authors-at-once.mjs +1 -0
  74. package/dist/actions/get-details-for-multiple-authors-at-once.mjs.map +1 -1
  75. package/dist/actions/get-details-for-multiple-papers-at-once.cjs +1 -0
  76. package/dist/actions/get-details-for-multiple-papers-at-once.cjs.map +1 -1
  77. package/dist/actions/get-details-for-multiple-papers-at-once.d.cts +3 -16
  78. package/dist/actions/get-details-for-multiple-papers-at-once.d.cts.map +1 -1
  79. package/dist/actions/get-details-for-multiple-papers-at-once.d.mts +3 -16
  80. package/dist/actions/get-details-for-multiple-papers-at-once.d.mts.map +1 -1
  81. package/dist/actions/get-details-for-multiple-papers-at-once.mjs +1 -0
  82. package/dist/actions/get-details-for-multiple-papers-at-once.mjs.map +1 -1
  83. package/dist/actions/get-paper-recommendations.cjs +1 -0
  84. package/dist/actions/get-paper-recommendations.cjs.map +1 -1
  85. package/dist/actions/get-paper-recommendations.d.cts +3 -18
  86. package/dist/actions/get-paper-recommendations.d.cts.map +1 -1
  87. package/dist/actions/get-paper-recommendations.d.mts +3 -18
  88. package/dist/actions/get-paper-recommendations.d.mts.map +1 -1
  89. package/dist/actions/get-paper-recommendations.mjs +1 -0
  90. package/dist/actions/get-paper-recommendations.mjs.map +1 -1
  91. package/dist/actions/get-recommendations-for-paper.cjs +1 -0
  92. package/dist/actions/get-recommendations-for-paper.cjs.map +1 -1
  93. package/dist/actions/get-recommendations-for-paper.d.cts +3 -18
  94. package/dist/actions/get-recommendations-for-paper.d.cts.map +1 -1
  95. package/dist/actions/get-recommendations-for-paper.d.mts +3 -18
  96. package/dist/actions/get-recommendations-for-paper.d.mts.map +1 -1
  97. package/dist/actions/get-recommendations-for-paper.mjs +1 -0
  98. package/dist/actions/get-recommendations-for-paper.mjs.map +1 -1
  99. package/dist/actions/get-release.cjs +1 -0
  100. package/dist/actions/get-release.cjs.map +1 -1
  101. package/dist/actions/get-release.d.cts +3 -15
  102. package/dist/actions/get-release.d.cts.map +1 -1
  103. package/dist/actions/get-release.d.mts +3 -15
  104. package/dist/actions/get-release.d.mts.map +1 -1
  105. package/dist/actions/get-release.mjs +1 -0
  106. package/dist/actions/get-release.mjs.map +1 -1
  107. package/dist/actions/list-releases.cjs +1 -0
  108. package/dist/actions/list-releases.cjs.map +1 -1
  109. package/dist/actions/list-releases.d.cts +3 -13
  110. package/dist/actions/list-releases.d.cts.map +1 -1
  111. package/dist/actions/list-releases.d.mts +3 -13
  112. package/dist/actions/list-releases.d.mts.map +1 -1
  113. package/dist/actions/list-releases.mjs +1 -0
  114. package/dist/actions/list-releases.mjs.map +1 -1
  115. package/dist/actions/paper-title-search.cjs +1 -0
  116. package/dist/actions/paper-title-search.cjs.map +1 -1
  117. package/dist/actions/paper-title-search.d.cts +3 -23
  118. package/dist/actions/paper-title-search.d.cts.map +1 -1
  119. package/dist/actions/paper-title-search.d.mts +3 -23
  120. package/dist/actions/paper-title-search.d.mts.map +1 -1
  121. package/dist/actions/paper-title-search.mjs +1 -0
  122. package/dist/actions/paper-title-search.mjs.map +1 -1
  123. package/dist/actions/search-bulk-papers.cjs +1 -0
  124. package/dist/actions/search-bulk-papers.cjs.map +1 -1
  125. package/dist/actions/search-bulk-papers.d.cts +3 -25
  126. package/dist/actions/search-bulk-papers.d.cts.map +1 -1
  127. package/dist/actions/search-bulk-papers.d.mts +3 -25
  128. package/dist/actions/search-bulk-papers.d.mts.map +1 -1
  129. package/dist/actions/search-bulk-papers.mjs +1 -0
  130. package/dist/actions/search-bulk-papers.mjs.map +1 -1
  131. package/dist/actions/search-for-authors-by-name.cjs +1 -0
  132. package/dist/actions/search-for-authors-by-name.cjs.map +1 -1
  133. package/dist/actions/search-for-authors-by-name.d.cts +3 -18
  134. package/dist/actions/search-for-authors-by-name.d.cts.map +1 -1
  135. package/dist/actions/search-for-authors-by-name.d.mts +3 -18
  136. package/dist/actions/search-for-authors-by-name.d.mts.map +1 -1
  137. package/dist/actions/search-for-authors-by-name.mjs +1 -0
  138. package/dist/actions/search-for-authors-by-name.mjs.map +1 -1
  139. package/dist/actions/search-papers.cjs +1 -0
  140. package/dist/actions/search-papers.cjs.map +1 -1
  141. package/dist/actions/search-papers.d.cts +3 -25
  142. package/dist/actions/search-papers.d.cts.map +1 -1
  143. package/dist/actions/search-papers.d.mts +3 -25
  144. package/dist/actions/search-papers.d.mts.map +1 -1
  145. package/dist/actions/search-papers.mjs +1 -0
  146. package/dist/actions/search-papers.mjs.map +1 -1
  147. package/dist/actions/suggest-paper-query-completions.cjs +1 -0
  148. package/dist/actions/suggest-paper-query-completions.cjs.map +1 -1
  149. package/dist/actions/suggest-paper-query-completions.d.cts +3 -15
  150. package/dist/actions/suggest-paper-query-completions.d.cts.map +1 -1
  151. package/dist/actions/suggest-paper-query-completions.d.mts +3 -15
  152. package/dist/actions/suggest-paper-query-completions.d.mts.map +1 -1
  153. package/dist/actions/suggest-paper-query-completions.mjs +1 -0
  154. package/dist/actions/suggest-paper-query-completions.mjs.map +1 -1
  155. package/dist/actions/text-snippet-search.cjs +1 -0
  156. package/dist/actions/text-snippet-search.cjs.map +1 -1
  157. package/dist/actions/text-snippet-search.d.cts +3 -24
  158. package/dist/actions/text-snippet-search.d.cts.map +1 -1
  159. package/dist/actions/text-snippet-search.d.mts +3 -24
  160. package/dist/actions/text-snippet-search.d.mts.map +1 -1
  161. package/dist/actions/text-snippet-search.mjs +1 -0
  162. package/dist/actions/text-snippet-search.mjs.map +1 -1
  163. package/dist/app.cjs +2 -2
  164. package/dist/app.cjs.map +1 -1
  165. package/dist/app.d.cts +4 -6
  166. package/dist/app.d.cts.map +1 -1
  167. package/dist/app.d.mts +4 -6
  168. package/dist/app.d.mts.map +1 -1
  169. package/dist/app.mjs +0 -1
  170. package/dist/app.mjs.map +1 -1
  171. package/dist/index.d.cts +1 -1
  172. package/dist/index.d.mts +1 -1
  173. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"get-recommendations-for-paper.mjs","names":[],"sources":["../../src/actions/get-recommendations-for-paper.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetRecommendationsForPaperInput = z.object({\n from: z.enum([\"recent\", \"all-cs\"]).describe(\"Pool of papers to recommend from\").optional(),\n limit: z.number().int().describe(\"How many recommendations to return. Default 100, maximum 500.\").optional(),\n fields: z.string().describe(\"Comma-separated list of fields to return for each recommended paper. paperId is always included. Available fields: title, abstract, year, authors, venue, publicationDate, citationCount, referenceCount, fieldsOfStudy, openAccessPdf, url, embedding, citations, references. Use dot notation for nested fields (e.g., 'authors.authorId', 'citations.title'). Examples: 'title,year,authors' or 'title,abstract,citationCount,url'\").optional(),\n paper_id: z.string().describe(\"Paper ID to find recommendations for. Supports various ID formats: <sha> (Semantic Scholar ID), CorpusId:<id>, DOI:<doi>, ARXIV:<id>, MAG:<id>, ACL:<id>, PMID:<id>, PMCID:<id>, URL:<url>. Example: 'ArXiv:1810.04805' or '649def34f8be52c8b66281af98ae884c09aef38b'\"),\n}).describe(\"Request schema for `GetRecommendationsForPaper`\");\nconst SemanticscholarGetRecommendationsForPaper_TldrSchema = z.object({\n text: z.string().describe(\"Summary text\").nullable().optional(),\n model: z.string().describe(\"Model version\").nullable().optional(),\n}).passthrough().describe(\"AI-generated TLDR summary\");\nconst SemanticscholarGetRecommendationsForPaper_AuthorSchema = z.object({\n url: z.string().describe(\"Author's Semantic Scholar profile URL\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"h-index metric\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique ID for the author\").nullable().optional(),\n homepage: z.string().describe(\"Author's personal website\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total publication count\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Organizational associations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations received\").nullable().optional(),\n}).passthrough().describe(\"Paper author information\");\nconst SemanticscholarGetRecommendationsForPaper_JournalSchema = z.object({\n name: z.string().describe(\"Journal title\").nullable().optional(),\n pages: z.string().describe(\"Page range\").nullable().optional(),\n volume: z.string().describe(\"Volume number\").nullable().optional(),\n}).passthrough().describe(\"Journal metadata\");\nconst SemanticscholarGetRecommendationsForPaper_OpenAccessPdfSchema = z.object({\n url: z.string().describe(\"PDF access link\").nullable().optional(),\n status: z.string().describe(\"Open access type classification\").nullable().optional(),\n license: z.string().describe(\"Content license designation\").nullable().optional(),\n}).passthrough().describe(\"Open access PDF information\");\nconst SemanticscholarGetRecommendationsForPaper_S2FieldOfStudySchema = z.object({\n source: z.string().describe(\"Classification source\").nullable().optional(),\n category: z.string().describe(\"Field classification\").nullable().optional(),\n}).passthrough().describe(\"Semantic Scholar field of study classification\");\nconst SemanticscholarGetRecommendationsForPaper_PublicationVenueSchema = z.object({\n id: z.string().describe(\"Unique venue identifier\").nullable().optional(),\n url: z.string().describe(\"Venue website\").nullable().optional(),\n name: z.string().describe(\"Venue name\").nullable().optional(),\n type: z.string().describe(\"Venue classification\").nullable().optional(),\n alternate_names: z.array(z.string()).describe(\"Alternative venue names\").nullable().optional(),\n}).passthrough().describe(\"Publication venue details\");\nconst SemanticscholarGetRecommendationsForPaper_RecommendedPaperSchema = z.object({\n url: z.string().describe(\"URL on Semantic Scholar website\").nullable().optional(),\n tldr: SemanticscholarGetRecommendationsForPaper_TldrSchema.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 name\").nullable().optional(),\n authors: z.array(SemanticscholarGetRecommendationsForPaper_AuthorSchema).describe(\"Paper authors\").nullable().optional(),\n journal: SemanticscholarGetRecommendationsForPaper_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar's primary unique identifier for the paper\").nullable(),\n abstract: z.string().describe(\"Paper abstract\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar's secondary unique identifier\").nullable().optional(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"Citing papers\").nullable().optional(),\n embedding: z.record(z.string(), z.unknown()).describe(\"Vector representation\").nullable().optional(),\n references: z.array(z.record(z.string(), z.unknown())).describe(\"Referenced papers\").nullable().optional(),\n externalIds: z.record(z.string(), z.unknown()).describe(\"External identifiers (ArXiv, DOI, PubMed, etc.)\").nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Open access status\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total papers citing this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"High-level academic categories\").nullable().optional(),\n openAccessPdf: SemanticscholarGetRecommendationsForPaper_OpenAccessPdfSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total papers this paper references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarGetRecommendationsForPaper_S2FieldOfStudySchema).describe(\"Classified fields with source attribution\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Publication type(s)\").nullable().optional(),\n publicationVenue: SemanticscholarGetRecommendationsForPaper_PublicationVenueSchema.nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Count of influential citations\").nullable().optional(),\n}).passthrough().describe(\"Recommended paper details\");\nexport const SemanticscholarGetRecommendationsForPaperOutput = z.object({\n recommendedPapers: z.array(SemanticscholarGetRecommendationsForPaper_RecommendedPaperSchema).describe(\"List of recommended papers similar to the input paper\"),\n}).passthrough().describe(\"Response schema for `GetRecommendationsForPaper`\");\n\nexport const semanticscholarGetRecommendationsForPaper = action(\"SEMANTICSCHOLAR_GET_RECOMMENDATIONS_FOR_PAPER\", {\n slug: \"semanticscholar-get-recommendations-for-paper\",\n name: \"Get recommendations for paper\",\n description: \"Tool to get recommended papers for a single positive example paper. Use when you need to find papers similar to a given paper based on Semantic Scholar's recommendation algorithm.\",\n input: SemanticscholarGetRecommendationsForPaperInput,\n output: SemanticscholarGetRecommendationsForPaperOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iDAAiD,EAAE,OAAO;CACrE,MAAM,EAAE,KAAK,CAAC,UAAU,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACzF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uaAAua,CAAC,CAAC,SAAS;CAC9c,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uQAAuQ;AACvS,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AACrD,MAAM,yDAAyD,EAAE,OAAO;CACtE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAM,E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,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,eAAe,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,eAAe,8DAA8D,SAAS,CAAC,CAAC,SAAS;CACjG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiB,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnK,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,kBAAkB,iEAAiE,SAAS,CAAC,CAAC,SAAS;CACvG,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AAKrD,MAAa,4CAA4C,OAAO,iDAAiD;CAC/G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT6D,EAAE,OAAO,EACtE,mBAAmB,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,uDAAuD,EAC/J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-recommendations-for-paper.mjs","names":[],"sources":["../../src/actions/get-recommendations-for-paper.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetRecommendationsForPaperInput = z.object({\n from: z.enum([\"recent\", \"all-cs\"]).describe(\"Pool of papers to recommend from\").optional(),\n limit: z.number().int().describe(\"How many recommendations to return. Default 100, maximum 500.\").optional(),\n fields: z.string().describe(\"Comma-separated list of fields to return for each recommended paper. paperId is always included. Available fields: title, abstract, year, authors, venue, publicationDate, citationCount, referenceCount, fieldsOfStudy, openAccessPdf, url, embedding, citations, references. Use dot notation for nested fields (e.g., 'authors.authorId', 'citations.title'). Examples: 'title,year,authors' or 'title,abstract,citationCount,url'\").optional(),\n paper_id: z.string().describe(\"Paper ID to find recommendations for. Supports various ID formats: <sha> (Semantic Scholar ID), CorpusId:<id>, DOI:<doi>, ARXIV:<id>, MAG:<id>, ACL:<id>, PMID:<id>, PMCID:<id>, URL:<url>. Example: 'ArXiv:1810.04805' or '649def34f8be52c8b66281af98ae884c09aef38b'\"),\n}).describe(\"Request schema for `GetRecommendationsForPaper`\");\nconst SemanticscholarGetRecommendationsForPaper_TldrSchema = z.object({\n text: z.string().describe(\"Summary text\").nullable().optional(),\n model: z.string().describe(\"Model version\").nullable().optional(),\n}).passthrough().describe(\"AI-generated TLDR summary\");\nconst SemanticscholarGetRecommendationsForPaper_AuthorSchema = z.object({\n url: z.string().describe(\"Author's Semantic Scholar profile URL\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"h-index metric\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique ID for the author\").nullable().optional(),\n homepage: z.string().describe(\"Author's personal website\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total publication count\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Organizational associations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations received\").nullable().optional(),\n}).passthrough().describe(\"Paper author information\");\nconst SemanticscholarGetRecommendationsForPaper_JournalSchema = z.object({\n name: z.string().describe(\"Journal title\").nullable().optional(),\n pages: z.string().describe(\"Page range\").nullable().optional(),\n volume: z.string().describe(\"Volume number\").nullable().optional(),\n}).passthrough().describe(\"Journal metadata\");\nconst SemanticscholarGetRecommendationsForPaper_OpenAccessPdfSchema = z.object({\n url: z.string().describe(\"PDF access link\").nullable().optional(),\n status: z.string().describe(\"Open access type classification\").nullable().optional(),\n license: z.string().describe(\"Content license designation\").nullable().optional(),\n}).passthrough().describe(\"Open access PDF information\");\nconst SemanticscholarGetRecommendationsForPaper_S2FieldOfStudySchema = z.object({\n source: z.string().describe(\"Classification source\").nullable().optional(),\n category: z.string().describe(\"Field classification\").nullable().optional(),\n}).passthrough().describe(\"Semantic Scholar field of study classification\");\nconst SemanticscholarGetRecommendationsForPaper_PublicationVenueSchema = z.object({\n id: z.string().describe(\"Unique venue identifier\").nullable().optional(),\n url: z.string().describe(\"Venue website\").nullable().optional(),\n name: z.string().describe(\"Venue name\").nullable().optional(),\n type: z.string().describe(\"Venue classification\").nullable().optional(),\n alternate_names: z.array(z.string()).describe(\"Alternative venue names\").nullable().optional(),\n}).passthrough().describe(\"Publication venue details\");\nconst SemanticscholarGetRecommendationsForPaper_RecommendedPaperSchema = z.object({\n url: z.string().describe(\"URL on Semantic Scholar website\").nullable().optional(),\n tldr: SemanticscholarGetRecommendationsForPaper_TldrSchema.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 name\").nullable().optional(),\n authors: z.array(SemanticscholarGetRecommendationsForPaper_AuthorSchema).describe(\"Paper authors\").nullable().optional(),\n journal: SemanticscholarGetRecommendationsForPaper_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar's primary unique identifier for the paper\").nullable(),\n abstract: z.string().describe(\"Paper abstract\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar's secondary unique identifier\").nullable().optional(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"Citing papers\").nullable().optional(),\n embedding: z.record(z.string(), z.unknown()).describe(\"Vector representation\").nullable().optional(),\n references: z.array(z.record(z.string(), z.unknown())).describe(\"Referenced papers\").nullable().optional(),\n externalIds: z.record(z.string(), z.unknown()).describe(\"External identifiers (ArXiv, DOI, PubMed, etc.)\").nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Open access status\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total papers citing this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"High-level academic categories\").nullable().optional(),\n openAccessPdf: SemanticscholarGetRecommendationsForPaper_OpenAccessPdfSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total papers this paper references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarGetRecommendationsForPaper_S2FieldOfStudySchema).describe(\"Classified fields with source attribution\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Publication type(s)\").nullable().optional(),\n publicationVenue: SemanticscholarGetRecommendationsForPaper_PublicationVenueSchema.nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Count of influential citations\").nullable().optional(),\n}).passthrough().describe(\"Recommended paper details\");\nexport const SemanticscholarGetRecommendationsForPaperOutput = z.object({\n recommendedPapers: z.array(SemanticscholarGetRecommendationsForPaper_RecommendedPaperSchema).describe(\"List of recommended papers similar to the input paper\"),\n}).passthrough().describe(\"Response schema for `GetRecommendationsForPaper`\");\n\nexport const semanticscholarGetRecommendationsForPaper: AppAction<\n typeof SemanticscholarGetRecommendationsForPaperInput,\n typeof SemanticscholarGetRecommendationsForPaperOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_RECOMMENDATIONS_FOR_PAPER\", {\n slug: \"semanticscholar-get-recommendations-for-paper\",\n name: \"Get recommendations for paper\",\n description: \"Tool to get recommended papers for a single positive example paper. Use when you need to find papers similar to a given paper based on Semantic Scholar's recommendation alg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E,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiB,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnK,kBAAkB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,kBAAkB,iEAAiE,SAAS,CAAC,CAAC,SAAS;CACvG,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2BAA2B;AAKrD,MAAa,4CAIT,OAAO,iDAAiD;CAC1D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb6D,EAAE,OAAO,EACtE,mBAAmB,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,uDAAuD,EAC/J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-release.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-release.cjs","names":["z","action"],"sources":["../../src/actions/get-release.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetReleaseInput = z.object({\n release_id: z.string().describe(\"ID of the release in date format (e.g., '2023-08-01') or 'latest' for the most recent release\"),\n}).describe(\"Request schema for GetRelease\");\nconst SemanticscholarGetRelease_DatasetSummarySchema = z.object({\n name: z.string().describe(\"Dataset identifier (e.g., 'papers', 'authors', 'citations')\").nullable(),\n README: z.string().describe(\"Documentation and attribution for the dataset\").nullable(),\n description: z.string().describe(\"Explanation of the dataset's contents and purpose\").nullable(),\n}).passthrough().describe(\"Dataset summary information within a release\");\nexport const SemanticscholarGetReleaseOutput = z.object({\n README: z.string().describe(\"License and usage documentation for the release\").nullable(),\n datasets: z.array(SemanticscholarGetRelease_DatasetSummarySchema).describe(\"Collection of dataset metadata objects available in this release\"),\n release_id: z.string().describe(\"Identifier in date format (e.g., '2022-01-17')\").nullable(),\n}).passthrough().describe(\"Response schema for GetRelease\");\n\nexport const semanticscholarGetRelease = action(\"SEMANTICSCHOLAR_GET_RELEASE\", {\n slug: \"semanticscholar-get-release\",\n name: \"Get dataset release information\",\n description: \"Tool to retrieve metadata for a specific Semantic Scholar dataset release. Returns release information including available datasets with their descriptions. Use when you need to discover what datasets are available in a release or get release documentation.\",\n input: SemanticscholarGetReleaseInput,\n output: SemanticscholarGetReleaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,EACjI,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,kEAAkE;CAC7I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAE1D,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-release.cjs","names":["z","action"],"sources":["../../src/actions/get-release.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetReleaseInput = z.object({\n release_id: z.string().describe(\"ID of the release in date format (e.g., '2023-08-01') or 'latest' for the most recent release\"),\n}).describe(\"Request schema for GetRelease\");\nconst SemanticscholarGetRelease_DatasetSummarySchema = z.object({\n name: z.string().describe(\"Dataset identifier (e.g., 'papers', 'authors', 'citations')\").nullable(),\n README: z.string().describe(\"Documentation and attribution for the dataset\").nullable(),\n description: z.string().describe(\"Explanation of the dataset's contents and purpose\").nullable(),\n}).passthrough().describe(\"Dataset summary information within a release\");\nexport const SemanticscholarGetReleaseOutput = z.object({\n README: z.string().describe(\"License and usage documentation for the release\").nullable(),\n datasets: z.array(SemanticscholarGetRelease_DatasetSummarySchema).describe(\"Collection of dataset metadata objects available in this release\"),\n release_id: z.string().describe(\"Identifier in date format (e.g., '2022-01-17')\").nullable(),\n}).passthrough().describe(\"Response schema for GetRelease\");\n\nexport const semanticscholarGetRelease: AppAction<\n typeof SemanticscholarGetReleaseInput,\n typeof SemanticscholarGetReleaseOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_RELEASE\", {\n slug: \"semanticscholar-get-release\",\n name: \"Get dataset release information\",\n description: \"Tool to retrieve metadata for a specific Semantic Scholar dataset release. Returns release information including available datasets with their descriptions. Use when you need to discover what datasets are available in a release or get release documentation.\",\n input: SemanticscholarGetReleaseInput,\n output: SemanticscholarGetReleaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,EACjI,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACxF,UAAUA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,kEAAkE;CAC7I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAE1D,MAAa,4BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { semanticscholar } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-release.d.ts
@@ -13,21 +15,7 @@ declare const SemanticscholarGetReleaseOutput: z.ZodObject<{
13
15
  }, z.core.$loose>>;
14
16
  release_id: z.ZodNullable<z.ZodString>;
15
17
  }, z.core.$loose>;
16
- declare const semanticscholarGetRelease: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- release_id: string;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
18
+ declare const semanticscholarGetRelease: AppAction<typeof SemanticscholarGetReleaseInput, typeof SemanticscholarGetReleaseOutput, typeof semanticscholar.credential>;
31
19
  //#endregion
32
20
  export { semanticscholarGetRelease };
33
21
  //# sourceMappingURL=get-release.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-release.d.cts","names":[],"sources":["../../src/actions/get-release.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAQ9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"get-release.d.cts","names":[],"sources":["../../src/actions/get-release.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAQ9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,eAAA,CAAgB,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { semanticscholar } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-release.d.ts
@@ -13,21 +15,7 @@ declare const SemanticscholarGetReleaseOutput: z.ZodObject<{
13
15
  }, z.core.$loose>>;
14
16
  release_id: z.ZodNullable<z.ZodString>;
15
17
  }, z.core.$loose>;
16
- declare const semanticscholarGetRelease: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- release_id: string;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
19
- connectionId: z.ZodString;
20
- entityId: z.ZodString;
21
- instanceId: z.ZodString;
22
- }, z.core.$strip>, z.ZodObject<{
23
- generic_api_key: z.ZodString;
24
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
25
- connectionId: z.ZodString;
26
- entityId: z.ZodString;
27
- instanceId: z.ZodString;
28
- }, z.core.$strip>, z.ZodObject<{
29
- generic_api_key: z.ZodString;
30
- }, z.core.$strip>>]>;
18
+ declare const semanticscholarGetRelease: AppAction<typeof SemanticscholarGetReleaseInput, typeof SemanticscholarGetReleaseOutput, typeof semanticscholar.credential>;
31
19
  //#endregion
32
20
  export { semanticscholarGetRelease };
33
21
  //# sourceMappingURL=get-release.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-release.d.mts","names":[],"sources":["../../src/actions/get-release.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAQ9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAM/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"get-release.d.mts","names":[],"sources":["../../src/actions/get-release.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAQ9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAM/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,eAAA,CAAgB,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-release.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-release.mjs","names":[],"sources":["../../src/actions/get-release.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetReleaseInput = z.object({\n release_id: z.string().describe(\"ID of the release in date format (e.g., '2023-08-01') or 'latest' for the most recent release\"),\n}).describe(\"Request schema for GetRelease\");\nconst SemanticscholarGetRelease_DatasetSummarySchema = z.object({\n name: z.string().describe(\"Dataset identifier (e.g., 'papers', 'authors', 'citations')\").nullable(),\n README: z.string().describe(\"Documentation and attribution for the dataset\").nullable(),\n description: z.string().describe(\"Explanation of the dataset's contents and purpose\").nullable(),\n}).passthrough().describe(\"Dataset summary information within a release\");\nexport const SemanticscholarGetReleaseOutput = z.object({\n README: z.string().describe(\"License and usage documentation for the release\").nullable(),\n datasets: z.array(SemanticscholarGetRelease_DatasetSummarySchema).describe(\"Collection of dataset metadata objects available in this release\"),\n release_id: z.string().describe(\"Identifier in date format (e.g., '2022-01-17')\").nullable(),\n}).passthrough().describe(\"Response schema for GetRelease\");\n\nexport const semanticscholarGetRelease = action(\"SEMANTICSCHOLAR_GET_RELEASE\", {\n slug: \"semanticscholar-get-release\",\n name: \"Get dataset release information\",\n description: \"Tool to retrieve metadata for a specific Semantic Scholar dataset release. Returns release information including available datasets with their descriptions. Use when you need to discover what datasets are available in a release or get release documentation.\",\n input: SemanticscholarGetReleaseInput,\n output: SemanticscholarGetReleaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,EACrD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,EACjI,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,iDAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAOxE,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACxF,UAAU,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,kEAAkE;EAC7I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-release.mjs","names":[],"sources":["../../src/actions/get-release.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetReleaseInput = z.object({\n release_id: z.string().describe(\"ID of the release in date format (e.g., '2023-08-01') or 'latest' for the most recent release\"),\n}).describe(\"Request schema for GetRelease\");\nconst SemanticscholarGetRelease_DatasetSummarySchema = z.object({\n name: z.string().describe(\"Dataset identifier (e.g., 'papers', 'authors', 'citations')\").nullable(),\n README: z.string().describe(\"Documentation and attribution for the dataset\").nullable(),\n description: z.string().describe(\"Explanation of the dataset's contents and purpose\").nullable(),\n}).passthrough().describe(\"Dataset summary information within a release\");\nexport const SemanticscholarGetReleaseOutput = z.object({\n README: z.string().describe(\"License and usage documentation for the release\").nullable(),\n datasets: z.array(SemanticscholarGetRelease_DatasetSummarySchema).describe(\"Collection of dataset metadata objects available in this release\"),\n release_id: z.string().describe(\"Identifier in date format (e.g., '2022-01-17')\").nullable(),\n}).passthrough().describe(\"Response schema for GetRelease\");\n\nexport const semanticscholarGetRelease: AppAction<\n typeof SemanticscholarGetReleaseInput,\n typeof SemanticscholarGetReleaseOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_RELEASE\", {\n slug: \"semanticscholar-get-release\",\n name: \"Get dataset release information\",\n description: \"Tool to retrieve metadata for a specific Semantic Scholar dataset release. Returns release information including available datasets with their descriptions. Use when you need to discover what datasets are available in a release or get release documentation.\",\n input: SemanticscholarGetReleaseInput,\n output: SemanticscholarGetReleaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiC,EAAE,OAAO,EACrD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,EACjI,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,iDAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAClG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAOxE,MAAa,4BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACxF,UAAU,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,kEAAkE;EAC7I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-releases.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-releases.cjs","names":["z","action"],"sources":["../../src/actions/list-releases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarListReleasesInput = z.object({}).describe(\"Request schema for ListReleases\");\nexport const SemanticscholarListReleasesOutput = z.object({\n releases: z.array(z.string()).describe(\"List of available dataset release identifiers in the form of date stamps (e.g., '2023-08-01'). Each release contains full data for all datasets.\"),\n}).passthrough().describe(\"Response schema for ListReleases\");\n\nexport const semanticscholarListReleases = action(\"SEMANTICSCHOLAR_LIST_RELEASES\", {\n slug: \"semanticscholar-list-releases\",\n name: \"List available dataset releases\",\n description: \"Tool to list all available dataset releases from Semantic Scholar. Use when you need to discover available release dates for downloading datasets.\",\n input: SemanticscholarListReleasesInput,\n output: SemanticscholarListReleasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iCAAiC;AACvG,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kJAAkJ,EAC3L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,8BAA8BC,eAAAA,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-releases.cjs","names":["z","action"],"sources":["../../src/actions/list-releases.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarListReleasesInput = z.object({}).describe(\"Request schema for ListReleases\");\nexport const SemanticscholarListReleasesOutput = z.object({\n releases: z.array(z.string()).describe(\"List of available dataset release identifiers in the form of date stamps (e.g., '2023-08-01'). Each release contains full data for all datasets.\"),\n}).passthrough().describe(\"Response schema for ListReleases\");\n\nexport const semanticscholarListReleases: AppAction<\n typeof SemanticscholarListReleasesInput,\n typeof SemanticscholarListReleasesOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_LIST_RELEASES\", {\n slug: \"semanticscholar-list-releases\",\n name: \"List available dataset releases\",\n description: \"Tool to list all available dataset releases from Semantic Scholar. Use when you need to discover available release dates for downloading datasets.\",\n input: SemanticscholarListReleasesInput,\n output: SemanticscholarListReleasesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iCAAiC;AACvG,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kJAAkJ,EAC3L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,8BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { semanticscholar } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-releases.d.ts
@@ -5,19 +7,7 @@ declare const SemanticscholarListReleasesInput: z.ZodObject<{}, z.core.$strip>;
5
7
  declare const SemanticscholarListReleasesOutput: z.ZodObject<{
6
8
  releases: z.ZodArray<z.ZodString>;
7
9
  }, z.core.$loose>;
8
- declare const semanticscholarListReleases: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
9
- connectionId: z.ZodString;
10
- entityId: z.ZodString;
11
- instanceId: z.ZodString;
12
- }, z.core.$strip>, z.ZodObject<{
13
- generic_api_key: z.ZodString;
14
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>;
10
+ declare const semanticscholarListReleases: AppAction<typeof SemanticscholarListReleasesInput, typeof SemanticscholarListReleasesOutput, typeof semanticscholar.credential>;
21
11
  //#endregion
22
12
  export { semanticscholarListReleases };
23
13
  //# sourceMappingURL=list-releases.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-releases.d.cts","names":[],"sources":["../../src/actions/list-releases.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,oBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-releases.d.cts","names":[],"sources":["../../src/actions/list-releases.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,eAAA,CAAgB,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { semanticscholar } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-releases.d.ts
@@ -5,19 +7,7 @@ declare const SemanticscholarListReleasesInput: z.ZodObject<{}, z.core.$strip>;
5
7
  declare const SemanticscholarListReleasesOutput: z.ZodObject<{
6
8
  releases: z.ZodArray<z.ZodString>;
7
9
  }, z.core.$loose>;
8
- declare const semanticscholarListReleases: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
9
- connectionId: z.ZodString;
10
- entityId: z.ZodString;
11
- instanceId: z.ZodString;
12
- }, z.core.$strip>, z.ZodObject<{
13
- generic_api_key: z.ZodString;
14
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>;
10
+ declare const semanticscholarListReleases: AppAction<typeof SemanticscholarListReleasesInput, typeof SemanticscholarListReleasesOutput, typeof semanticscholar.credential>;
21
11
  //#endregion
22
12
  export { semanticscholarListReleases };
23
13
  //# sourceMappingURL=list-releases.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-releases.d.mts","names":[],"sources":["../../src/actions/list-releases.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,oBAAA,CAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"list-releases.d.mts","names":[],"sources":["../../src/actions/list-releases.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,eAAA,CAAgB,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const semanticscholarListReleases = action("SEMANTICSCHOLAR_LIST_RELEASES", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-releases.mjs","names":[],"sources":["../../src/actions/list-releases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarListReleasesInput = z.object({}).describe(\"Request schema for ListReleases\");\nexport const SemanticscholarListReleasesOutput = z.object({\n releases: z.array(z.string()).describe(\"List of available dataset release identifiers in the form of date stamps (e.g., '2023-08-01'). Each release contains full data for all datasets.\"),\n}).passthrough().describe(\"Response schema for ListReleases\");\n\nexport const semanticscholarListReleases = action(\"SEMANTICSCHOLAR_LIST_RELEASES\", {\n slug: \"semanticscholar-list-releases\",\n name: \"List available dataset releases\",\n description: \"Tool to list all available dataset releases from Semantic Scholar. Use when you need to discover available release dates for downloading datasets.\",\n input: SemanticscholarListReleasesInput,\n output: SemanticscholarListReleasesOutput,\n});\n"],"mappings":";;AASA,MAAa,8BAA8B,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iCAS7D;CACP,QAT+C,EAAE,OAAO,EACxD,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kJAAkJ,EAC3L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"list-releases.mjs","names":[],"sources":["../../src/actions/list-releases.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarListReleasesInput = z.object({}).describe(\"Request schema for ListReleases\");\nexport const SemanticscholarListReleasesOutput = z.object({\n releases: z.array(z.string()).describe(\"List of available dataset release identifiers in the form of date stamps (e.g., '2023-08-01'). Each release contains full data for all datasets.\"),\n}).passthrough().describe(\"Response schema for ListReleases\");\n\nexport const semanticscholarListReleases: AppAction<\n typeof SemanticscholarListReleasesInput,\n typeof SemanticscholarListReleasesOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_LIST_RELEASES\", {\n slug: \"semanticscholar-list-releases\",\n name: \"List available dataset releases\",\n description: \"Tool to list all available dataset releases from Semantic Scholar. Use when you need to discover available release dates for downloading datasets.\",\n input: SemanticscholarListReleasesInput,\n output: SemanticscholarListReleasesOutput,\n});\n"],"mappings":";;;AAWA,MAAa,8BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iCAa7D;CACP,QAb+C,EAAE,OAAO,EACxD,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kJAAkJ,EAC3L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/paper-title-search.ts
@@ -1 +1 @@
1
- {"version":3,"file":"paper-title-search.cjs","names":["z","action"],"sources":["../../src/actions/paper-title-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarPaperTitleSearchInput = z.object({\n year: z.string().describe(\"Restricts results to the given publication year or range of years (inclusive). <br> <br> Examples: <ul> <li><code>2019</code> in 2019</li> <li><code>2016-2020</code> as early as 2016 or as late as 2020</li> <li><code>2010-</code> during or after 2010</li> <li><code>-2015</code> before or during 2015</li> </ul>\").optional(),\n query: z.string().describe(\"A plain-text search query string. * No special query syntax is supported. See our <a href=\\\"https://medium.com/ai2-blog/building-a-better-search-engine-for-semantic-scholar-ea23a0b661e7\\\">blog post</a> for a description of our search relevance algorithm.\"),\n venue: z.string().describe(\"Restricts results to papers published in the given venues, formatted as a comma-separated list. <br><br> Input could also be an ISO4 abbreviation. Examples include: <ul> <li>Nature</li> <li>New England Journal of Medicine</li> <li>Radiology</li> <li>N. Engl. J. Med.</li> </ul> Example: <code>Nature,Radiology</code> will return papers from venues Nature and/or Radiology.\").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. <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 fieldsOfStudy: z.string().describe(\"Restricts results to papers in the given fields of study, formatted as a comma-separated list: <ul> <li>Computer Science</li> <li>Medicine</li> <li>Chemistry</li> <li>Biology</li> <li>Materials Science</li> <li>Physics</li> <li>Geology</li> <li>Psychology</li> <li>Art</li> <li>History</li> <li>Geography</li> <li>Sociology</li> <li>Business</li> <li>Political Science</li> <li>Economics</li> <li>Philosophy</li> <li>Mathematics</li> <li>Engineering</li> <li>Environmental Science</li> <li>Agricultural and Food Sciences</li> <li>Education</li> <li>Law</li> <li>Linguistics</li> </ul> Example: <code>Physics,Mathematics</code> will return papers with either Physics or Mathematics in their list of fields-of-study.\").optional(),\n openAccessPdf: z.string().describe(\"Restricts results to only include papers with a public PDF. This parameter does not accept any values.\").optional(),\n minCitationCount: z.number().int().describe(\"Restricts results to only include papers with at least this many citations. Must be a non-negative integer. Example: 200\").optional(),\n publicationTypes: z.string().describe(\"Restricts results to any of the following paper publication types: <ul> <li>Review</li> <li>JournalArticle</li> <li>CaseReport</li> <li>ClinicalTrial</li> <li>Conference</li> <li>Dataset</li> <li>Editorial</li> <li>LettersAndComments</li> <li>MetaAnalysis</li> <li>News</li> <li>Study</li> <li>Book</li> <li>BookSection</li> </ul> Use a comma-separated list to include papers with any of the listed publication types. <br><br> Example: <code>Review,JournalArticle</code> will return papers with publication types Review and/or JournalArticle.\").optional(),\n publicationDateOrYear: z.string().describe(\"Restricts results to the given range of publication dates or years (inclusive). Accepts the format <code>&lt;startDate&gt;:&lt;endDate&gt;</code> with each date in <code>YYYY-MM-DD</code> format. <br> <br> Each term is optional, allowing for specific dates, fixed ranges, or open-ended ranges. In addition, prefixes are suported as a shorthand, e.g. <code>2020-06</code> matches all dates in June 2020. <br> <br> Specific dates are not known for all papers, so some records returned with this filter will have a <code>null</code> value for </code>publicationDate</code>. <code>year</code>, however, will always be present. For records where a specific publication date is not known, they will be treated as if published on January 1st of their publication year. <br> <br> Examples: <ul> <li><code>2019-03-05</code> on March 3rd, 2019</li> <li><code>2019-03</code> during March 2019</li> <li><code>2019</code> during 2019</li> <li><code>2016-03-05:2020-06-06</code> as early as March 5th, 2016 or as late as June 6th, 2020</li> <li><code>1981-08-25:</code> on or after August 25th, 1981</li> <li><code>:2015-01</code> before or on January 31st, 2015</li> <li><code>2015:2020</code> between January 1st, 2015 and December 31st, 2020</li> </ul>\").optional(),\n}).describe(\"Request schema for `PaperTitleSearch`\");\nconst SemanticscholarPaperTitleSearch_TldrSchema = z.object({\n text: z.string().describe(\"Brief AI-generated summary text\").nullable().optional(),\n model: z.string().describe(\"TLDR model version (e.g., tldr@v2.0.0)\").nullable().optional(),\n}).passthrough().describe(\"AI-generated summary of the paper\");\nconst SemanticscholarPaperTitleSearch_AuthorSchema = z.object({\n url: z.string().describe(\"URL to author's page on Semantic Scholar\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.string().describe(\"h-index measuring author's productivity and citation impact\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique identifier for the author\").nullable().optional(),\n homepage: z.string().describe(\"Author's personal homepage URL\").nullable().optional(),\n paperCount: z.string().describe(\"Total number of publications by the author\").nullable().optional(),\n externalIds: z.unknown().describe(\"External identifiers for the author (ORCID, DBLP)\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Author's organizational affiliations\").nullable().optional(),\n citationCount: z.string().describe(\"Total citations received by the author\").nullable().optional(),\n}).passthrough().describe(\"Paper author with detailed information\");\nconst SemanticscholarPaperTitleSearch_JournalSchema = z.object({\n name: z.string().describe(\"Name of the journal\").nullable().optional(),\n pages: z.string().describe(\"Page number range\").nullable().optional(),\n volume: z.string().describe(\"Journal volume number\").nullable().optional(),\n}).passthrough().describe(\"Journal-specific metadata\");\nconst SemanticscholarPaperTitleSearch_EmbeddingSchema = z.object({\n model: z.string().describe(\"Specter vector embedding model version (e.g., specter@v0.1.1)\").nullable().optional(),\n vector: z.unknown().describe(\"Numerical embedding vector representation\").nullable().optional(),\n}).passthrough().describe(\"Specter vector embedding for the paper\");\nconst SemanticscholarPaperTitleSearch_ExternalIdsSchema = z.object({\n ACL: z.string().describe(\"Association for Computational Linguistics 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 DBLP: z.string().describe(\"Digital Bibliography & Library Project identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"arXiv.org identifier\").nullable().optional(),\n PubMed: z.string().describe(\"PubMed identifier\").nullable().optional(),\n Medline: z.string().describe(\"Medline identifier\").nullable().optional(),\n CorpusId: z.number().int().describe(\"Semantic Scholar corpus identifier\").nullable().optional(),\n PubMedCentral: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n}).passthrough().describe(\"External identifiers from various academic databases\");\nconst SemanticscholarPaperTitleSearch_OpenAccessPdfSchema = z.object({\n url: z.string().describe(\"Link to the paper's PDF\").nullable().optional(),\n status: z.string().describe(\"Type of open access (HYBRID, GOLD, GREEN, BRONZE)\").nullable().optional(),\n license: z.string().describe(\"License type for the paper (e.g., CCBY)\").nullable().optional(),\n disclaimer: z.string().describe(\"Legal disclaimer regarding usage\").nullable().optional(),\n}).passthrough().describe(\"Information about open access PDF availability\");\nconst SemanticscholarPaperTitleSearch_CitationStylesSchema = z.object({\n bibtex: z.string().describe(\"BibTeX formatted citation\").nullable().optional(),\n}).passthrough().describe(\"Formatted citations in various styles\");\nconst SemanticscholarPaperTitleSearch_S2FieldOfStudySchema = z.object({\n source: z.string().describe(\"Classification source (external or s2-fos-model)\").nullable().optional(),\n category: z.string().describe(\"Field of study category\").nullable().optional(),\n}).passthrough().describe(\"Detailed field of study classification with source attribution\");\nconst SemanticscholarPaperTitleSearch_PublicationVenueSchema = z.object({\n id: z.string().describe(\"Venue's unique identifier\").nullable().optional(),\n url: z.string().describe(\"Venue's website URL\").nullable().optional(),\n name: z.string().describe(\"Name of the venue\").nullable().optional(),\n type: z.string().describe(\"Type of venue (e.g., conference, journal)\").nullable().optional(),\n alternate_names: z.array(z.string()).describe(\"Alternative names for the venue\").nullable().optional(),\n}).passthrough().describe(\"Detailed information about the publication venue\");\nconst SemanticscholarPaperTitleSearch_PaperSchema = z.object({\n url: z.string().describe(\"Link to the paper on Semantic Scholar website\").nullable().optional(),\n tldr: SemanticscholarPaperTitleSearch_TldrSchema.nullable().optional(),\n year: z.number().int().describe(\"Year of publication\").nullable().optional(),\n title: z.string().describe(\"Title of the paper\").nullable().optional(),\n venue: z.string().describe(\"Publication venue name\").nullable().optional(),\n authors: z.array(SemanticscholarPaperTitleSearch_AuthorSchema).describe(\"List of paper authors with detailed information\").nullable().optional(),\n journal: SemanticscholarPaperTitleSearch_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar's primary unique identifier for the paper\").nullable(),\n abstract: z.string().describe(\"Paper abstract or summary (may be unavailable for legal reasons)\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar's secondary unique numerical identifier for the paper\").nullable().optional(),\n citations: z.array(z.unknown()).describe(\"Papers that cite this paper (returned when requested via fields parameter)\").nullable().optional(),\n embedding: SemanticscholarPaperTitleSearch_EmbeddingSchema.nullable().optional(),\n matchScore: z.number().describe(\"Relevance score indicating how closely the paper matches the search query\").nullable().optional(),\n references: z.array(z.unknown()).describe(\"Papers referenced by this paper (returned when requested via fields parameter)\").nullable().optional(),\n externalIds: SemanticscholarPaperTitleSearch_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether the paper is available as open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of papers citing this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"High-level academic field categories\").nullable().optional(),\n openAccessPdf: SemanticscholarPaperTitleSearch_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarPaperTitleSearch_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total number of papers this paper references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarPaperTitleSearch_S2FieldOfStudySchema).describe(\"Detailed field of study classifications with source attribution\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n publicationVenue: SemanticscholarPaperTitleSearch_PublicationVenueSchema.nullable().optional(),\n textAvailability: z.string().describe(\"Level of text available: fulltext, abstract, or none\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of high-impact citations\").nullable().optional(),\n}).passthrough().describe(\"Paper object matching the search query\");\nexport const SemanticscholarPaperTitleSearchOutput = z.object({\n data: z.array(SemanticscholarPaperTitleSearch_PaperSchema).describe(\"Array containing a single paper object that is the closest title match. Each paper always includes paperId, title, and matchScore fields, plus any additional fields requested via the 'fields' parameter. Returns empty array if no match found.\"),\n}).passthrough().describe(\"Response schema for `PaperTitleSearch`\");\n\nexport const semanticscholarPaperTitleSearch = action(\"SEMANTICSCHOLAR_PAPER_TITLE_SEARCH\", {\n slug: \"semanticscholar-paper-title-search\",\n name: \"Paper title search\",\n description: \"Behaves similarly to <code>/paper/search</code>, but is intended for retrieval of a single paper based on closest title match to given query. Examples: <ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/search/match?query=Construction of the Literature Graph in Semantic Scholar</code></li> <ul> <li>Returns a single paper that is the closest title match.</li> <li>Each paper has its paperId, title, and matchScore as well as any other requested fields.</li> </ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/search/match?query=totalGarbageNonsense</code></li> <ul> <li>Returns with a 404 error and a \\\"Title match not found\\\" message.</li> </ul> </ul> <br> Limitations: <ul> <li>Will only return the single highest match result.</li> </ul> </ul>\",\n input: SemanticscholarPaperTitleSearchInput,\n output: SemanticscholarPaperTitleSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yUAAyU,CAAC,CAAC,SAAS;CAC9W,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gQAAgQ;CAC3R,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sYAAsY,CAAC,CAAC,SAAS;CAC5a,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0hDAA0hD,CAAC,CAAC,SAAS;CACjkD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4sBAA4sB,CAAC,CAAC,SAAS;CAC1vB,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACtJ,kBAAkBA,IAAAA,EAAE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AC,SAAS,mPAAmP,EACzT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"paper-title-search.cjs","names":["z","action"],"sources":["../../src/actions/paper-title-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarPaperTitleSearchInput = z.object({\n year: z.string().describe(\"Restricts results to the given publication year or range of years (inclusive). <br> <br> Examples: <ul> <li><code>2019</code> in 2019</li> <li><code>2016-2020</code> as early as 2016 or as late as 2020</li> <li><code>2010-</code> during or after 2010</li> <li><code>-2015</code> before or during 2015</li> </ul>\").optional(),\n query: z.string().describe(\"A plain-text search query string. * No special query syntax is supported. See our <a href=\\\"https://medium.com/ai2-blog/building-a-better-search-engine-for-semantic-scholar-ea23a0b661e7\\\">blog post</a> for a description of our search relevance algorithm.\"),\n venue: z.string().describe(\"Restricts results to papers published in the given venues, formatted as a comma-separated list. <br><br> Input could also be an ISO4 abbreviation. Examples include: <ul> <li>Nature</li> <li>New England Journal of Medicine</li> <li>Radiology</li> <li>N. Engl. J. Med.</li> </ul> Example: <code>Nature,Radiology</code> will return papers from venues Nature and/or Radiology.\").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. <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 fieldsOfStudy: z.string().describe(\"Restricts results to papers in the given fields of study, formatted as a comma-separated list: <ul> <li>Computer Science</li> <li>Medicine</li> <li>Chemistry</li> <li>Biology</li> <li>Materials Science</li> <li>Physics</li> <li>Geology</li> <li>Psychology</li> <li>Art</li> <li>History</li> <li>Geography</li> <li>Sociology</li> <li>Business</li> <li>Political Science</li> <li>Economics</li> <li>Philosophy</li> <li>Mathematics</li> <li>Engineering</li> <li>Environmental Science</li> <li>Agricultural and Food Sciences</li> <li>Education</li> <li>Law</li> <li>Linguistics</li> </ul> Example: <code>Physics,Mathematics</code> will return papers with either Physics or Mathematics in their list of fields-of-study.\").optional(),\n openAccessPdf: z.string().describe(\"Restricts results to only include papers with a public PDF. This parameter does not accept any values.\").optional(),\n minCitationCount: z.number().int().describe(\"Restricts results to only include papers with at least this many citations. Must be a non-negative integer. Example: 200\").optional(),\n publicationTypes: z.string().describe(\"Restricts results to any of the following paper publication types: <ul> <li>Review</li> <li>JournalArticle</li> <li>CaseReport</li> <li>ClinicalTrial</li> <li>Conference</li> <li>Dataset</li> <li>Editorial</li> <li>LettersAndComments</li> <li>MetaAnalysis</li> <li>News</li> <li>Study</li> <li>Book</li> <li>BookSection</li> </ul> Use a comma-separated list to include papers with any of the listed publication types. <br><br> Example: <code>Review,JournalArticle</code> will return papers with publication types Review and/or JournalArticle.\").optional(),\n publicationDateOrYear: z.string().describe(\"Restricts results to the given range of publication dates or years (inclusive). Accepts the format <code>&lt;startDate&gt;:&lt;endDate&gt;</code> with each date in <code>YYYY-MM-DD</code> format. <br> <br> Each term is optional, allowing for specific dates, fixed ranges, or open-ended ranges. In addition, prefixes are suported as a shorthand, e.g. <code>2020-06</code> matches all dates in June 2020. <br> <br> Specific dates are not known for all papers, so some records returned with this filter will have a <code>null</code> value for </code>publicationDate</code>. <code>year</code>, however, will always be present. For records where a specific publication date is not known, they will be treated as if published on January 1st of their publication year. <br> <br> Examples: <ul> <li><code>2019-03-05</code> on March 3rd, 2019</li> <li><code>2019-03</code> during March 2019</li> <li><code>2019</code> during 2019</li> <li><code>2016-03-05:2020-06-06</code> as early as March 5th, 2016 or as late as June 6th, 2020</li> <li><code>1981-08-25:</code> on or after August 25th, 1981</li> <li><code>:2015-01</code> before or on January 31st, 2015</li> <li><code>2015:2020</code> between January 1st, 2015 and December 31st, 2020</li> </ul>\").optional(),\n}).describe(\"Request schema for `PaperTitleSearch`\");\nconst SemanticscholarPaperTitleSearch_TldrSchema = z.object({\n text: z.string().describe(\"Brief AI-generated summary text\").nullable().optional(),\n model: z.string().describe(\"TLDR model version (e.g., tldr@v2.0.0)\").nullable().optional(),\n}).passthrough().describe(\"AI-generated summary of the paper\");\nconst SemanticscholarPaperTitleSearch_AuthorSchema = z.object({\n url: z.string().describe(\"URL to author's page on Semantic Scholar\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.string().describe(\"h-index measuring author's productivity and citation impact\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique identifier for the author\").nullable().optional(),\n homepage: z.string().describe(\"Author's personal homepage URL\").nullable().optional(),\n paperCount: z.string().describe(\"Total number of publications by the author\").nullable().optional(),\n externalIds: z.unknown().describe(\"External identifiers for the author (ORCID, DBLP)\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Author's organizational affiliations\").nullable().optional(),\n citationCount: z.string().describe(\"Total citations received by the author\").nullable().optional(),\n}).passthrough().describe(\"Paper author with detailed information\");\nconst SemanticscholarPaperTitleSearch_JournalSchema = z.object({\n name: z.string().describe(\"Name of the journal\").nullable().optional(),\n pages: z.string().describe(\"Page number range\").nullable().optional(),\n volume: z.string().describe(\"Journal volume number\").nullable().optional(),\n}).passthrough().describe(\"Journal-specific metadata\");\nconst SemanticscholarPaperTitleSearch_EmbeddingSchema = z.object({\n model: z.string().describe(\"Specter vector embedding model version (e.g., specter@v0.1.1)\").nullable().optional(),\n vector: z.unknown().describe(\"Numerical embedding vector representation\").nullable().optional(),\n}).passthrough().describe(\"Specter vector embedding for the paper\");\nconst SemanticscholarPaperTitleSearch_ExternalIdsSchema = z.object({\n ACL: z.string().describe(\"Association for Computational Linguistics 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 DBLP: z.string().describe(\"Digital Bibliography & Library Project identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"arXiv.org identifier\").nullable().optional(),\n PubMed: z.string().describe(\"PubMed identifier\").nullable().optional(),\n Medline: z.string().describe(\"Medline identifier\").nullable().optional(),\n CorpusId: z.number().int().describe(\"Semantic Scholar corpus identifier\").nullable().optional(),\n PubMedCentral: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n}).passthrough().describe(\"External identifiers from various academic databases\");\nconst SemanticscholarPaperTitleSearch_OpenAccessPdfSchema = z.object({\n url: z.string().describe(\"Link to the paper's PDF\").nullable().optional(),\n status: z.string().describe(\"Type of open access (HYBRID, GOLD, GREEN, BRONZE)\").nullable().optional(),\n license: z.string().describe(\"License type for the paper (e.g., CCBY)\").nullable().optional(),\n disclaimer: z.string().describe(\"Legal disclaimer regarding usage\").nullable().optional(),\n}).passthrough().describe(\"Information about open access PDF availability\");\nconst SemanticscholarPaperTitleSearch_CitationStylesSchema = z.object({\n bibtex: z.string().describe(\"BibTeX formatted citation\").nullable().optional(),\n}).passthrough().describe(\"Formatted citations in various styles\");\nconst SemanticscholarPaperTitleSearch_S2FieldOfStudySchema = z.object({\n source: z.string().describe(\"Classification source (external or s2-fos-model)\").nullable().optional(),\n category: z.string().describe(\"Field of study category\").nullable().optional(),\n}).passthrough().describe(\"Detailed field of study classification with source attribution\");\nconst SemanticscholarPaperTitleSearch_PublicationVenueSchema = z.object({\n id: z.string().describe(\"Venue's unique identifier\").nullable().optional(),\n url: z.string().describe(\"Venue's website URL\").nullable().optional(),\n name: z.string().describe(\"Name of the venue\").nullable().optional(),\n type: z.string().describe(\"Type of venue (e.g., conference, journal)\").nullable().optional(),\n alternate_names: z.array(z.string()).describe(\"Alternative names for the venue\").nullable().optional(),\n}).passthrough().describe(\"Detailed information about the publication venue\");\nconst SemanticscholarPaperTitleSearch_PaperSchema = z.object({\n url: z.string().describe(\"Link to the paper on Semantic Scholar website\").nullable().optional(),\n tldr: SemanticscholarPaperTitleSearch_TldrSchema.nullable().optional(),\n year: z.number().int().describe(\"Year of publication\").nullable().optional(),\n title: z.string().describe(\"Title of the paper\").nullable().optional(),\n venue: z.string().describe(\"Publication venue name\").nullable().optional(),\n authors: z.array(SemanticscholarPaperTitleSearch_AuthorSchema).describe(\"List of paper authors with detailed information\").nullable().optional(),\n journal: SemanticscholarPaperTitleSearch_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar's primary unique identifier for the paper\").nullable(),\n abstract: z.string().describe(\"Paper abstract or summary (may be unavailable for legal reasons)\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar's secondary unique numerical identifier for the paper\").nullable().optional(),\n citations: z.array(z.unknown()).describe(\"Papers that cite this paper (returned when requested via fields parameter)\").nullable().optional(),\n embedding: SemanticscholarPaperTitleSearch_EmbeddingSchema.nullable().optional(),\n matchScore: z.number().describe(\"Relevance score indicating how closely the paper matches the search query\").nullable().optional(),\n references: z.array(z.unknown()).describe(\"Papers referenced by this paper (returned when requested via fields parameter)\").nullable().optional(),\n externalIds: SemanticscholarPaperTitleSearch_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether the paper is available as open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of papers citing this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"High-level academic field categories\").nullable().optional(),\n openAccessPdf: SemanticscholarPaperTitleSearch_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarPaperTitleSearch_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total number of papers this paper references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarPaperTitleSearch_S2FieldOfStudySchema).describe(\"Detailed field of study classifications with source attribution\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n publicationVenue: SemanticscholarPaperTitleSearch_PublicationVenueSchema.nullable().optional(),\n textAvailability: z.string().describe(\"Level of text available: fulltext, abstract, or none\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of high-impact citations\").nullable().optional(),\n}).passthrough().describe(\"Paper object matching the search query\");\nexport const SemanticscholarPaperTitleSearchOutput = z.object({\n data: z.array(SemanticscholarPaperTitleSearch_PaperSchema).describe(\"Array containing a single paper object that is the closest title match. Each paper always includes paperId, title, and matchScore fields, plus any additional fields requested via the 'fields' parameter. Returns empty array if no match found.\"),\n}).passthrough().describe(\"Response schema for `PaperTitleSearch`\");\n\nexport const semanticscholarPaperTitleSearch: AppAction<\n typeof SemanticscholarPaperTitleSearchInput,\n typeof SemanticscholarPaperTitleSearchOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_PAPER_TITLE_SEARCH\", {\n slug: \"semanticscholar-paper-title-search\",\n name: \"Paper title search\",\n description: \"Behaves similarly to <code>/paper/search</code>, but is intended for retrieval of a single paper based on closest title match to given query. Examples: <ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/search/match?query=Construction of the Literature Graph in Semantic Scholar</code></li> <ul> <li>Returns a single paper that is the closest title match.</li> <li>Each paper has its paperId, title, and matchScore as well as any other requested fields.</li> </ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/search/match?query=totalGarbageNonsense</code></li> <ul> <li>Returns with a 404 error and a \\\"Title match not found\\\" message.</li> </ul> </ul> <br> Limitations: <ul> <li>Will only return the single highest match result.</li> </ul> </ul>\",\n input: SemanticscholarPaperTitleSearchInput,\n output: SemanticscholarPaperTitleSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yUAAyU,CAAC,CAAC,SAAS;CAC9W,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gQAAgQ;CAC3R,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sYAAsY,CAAC,CAAC,SAAS;CAC5a,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0hDAA0hD,CAAC,CAAC,SAAS;CACjkD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4sBAA4sB,CAAC,CAAC,SAAS;CAC1vB,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACtJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACjL,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,olBAAolB,CAAC,CAAC,SAAS;CACroB,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wvCAAwvC,CAAC,CAAC,SAAS;AAChzC,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAA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C,CAAC,SAAS;CACzF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiBA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/K,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,kBAAkB,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAC7F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,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,wCAAwC;AAClE,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,EAC5D,MAAMA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,mPAAmP,EACzT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,kCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { semanticscholar } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/paper-title-search.d.ts
@@ -89,29 +91,7 @@ declare const SemanticscholarPaperTitleSearchOutput: z.ZodObject<{
89
91
  influentialCitationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
90
92
  }, z.core.$loose>>;
91
93
  }, z.core.$loose>;
92
- declare const semanticscholarPaperTitleSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
93
- query: string;
94
- year?: string | undefined;
95
- venue?: string | undefined;
96
- fields?: string | undefined;
97
- fieldsOfStudy?: string | undefined;
98
- openAccessPdf?: string | undefined;
99
- minCitationCount?: number | undefined;
100
- publicationTypes?: string | undefined;
101
- publicationDateOrYear?: string | undefined;
102
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
103
- connectionId: z.ZodString;
104
- entityId: z.ZodString;
105
- instanceId: z.ZodString;
106
- }, z.core.$strip>, z.ZodObject<{
107
- generic_api_key: z.ZodString;
108
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
109
- connectionId: z.ZodString;
110
- entityId: z.ZodString;
111
- instanceId: z.ZodString;
112
- }, z.core.$strip>, z.ZodObject<{
113
- generic_api_key: z.ZodString;
114
- }, z.core.$strip>>]>;
94
+ declare const semanticscholarPaperTitleSearch: AppAction<typeof SemanticscholarPaperTitleSearchInput, typeof SemanticscholarPaperTitleSearchOutput, typeof semanticscholar.credential>;
115
95
  //#endregion
116
96
  export { semanticscholarPaperTitleSearch };
117
97
  //# sourceMappingURL=paper-title-search.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paper-title-search.d.cts","names":[],"sources":["../../src/actions/paper-title-search.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cA+FpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"paper-title-search.d.cts","names":[],"sources":["../../src/actions/paper-title-search.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cA+FpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,eAAA,CAAgB,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { semanticscholar } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/paper-title-search.d.ts
@@ -89,29 +91,7 @@ declare const SemanticscholarPaperTitleSearchOutput: z.ZodObject<{
89
91
  influentialCitationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
90
92
  }, z.core.$loose>>;
91
93
  }, z.core.$loose>;
92
- declare const semanticscholarPaperTitleSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
93
- query: string;
94
- year?: string | undefined;
95
- venue?: string | undefined;
96
- fields?: string | undefined;
97
- fieldsOfStudy?: string | undefined;
98
- openAccessPdf?: string | undefined;
99
- minCitationCount?: number | undefined;
100
- publicationTypes?: string | undefined;
101
- publicationDateOrYear?: string | undefined;
102
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
103
- connectionId: z.ZodString;
104
- entityId: z.ZodString;
105
- instanceId: z.ZodString;
106
- }, z.core.$strip>, z.ZodObject<{
107
- generic_api_key: z.ZodString;
108
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
109
- connectionId: z.ZodString;
110
- entityId: z.ZodString;
111
- instanceId: z.ZodString;
112
- }, z.core.$strip>, z.ZodObject<{
113
- generic_api_key: z.ZodString;
114
- }, z.core.$strip>>]>;
94
+ declare const semanticscholarPaperTitleSearch: AppAction<typeof SemanticscholarPaperTitleSearchInput, typeof SemanticscholarPaperTitleSearchOutput, typeof semanticscholar.credential>;
115
95
  //#endregion
116
96
  export { semanticscholarPaperTitleSearch };
117
97
  //# sourceMappingURL=paper-title-search.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"paper-title-search.d.mts","names":[],"sources":["../../src/actions/paper-title-search.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cA+FpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIrC,+BAAA,gCAA+B,wBAAA"}
1
+ {"version":3,"file":"paper-title-search.d.mts","names":[],"sources":["../../src/actions/paper-title-search.ts"],"mappings":";;;;;cAMa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cA+FpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIrC,+BAAA,EAAiC,SAAA,QACrC,oCAAA,SACA,qCAAA,SACA,eAAA,CAAgB,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/paper-title-search.ts