@keystrokehq/semanticscholar 0.1.2 → 0.1.4

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 (109) hide show
  1. package/dist/actions/details-about-a-paper-s-authors.cjs +1 -1
  2. package/dist/actions/details-about-a-paper-s-authors.cjs.map +1 -1
  3. package/dist/actions/details-about-a-paper-s-authors.d.cts +1 -1
  4. package/dist/actions/details-about-a-paper-s-authors.d.mts +1 -1
  5. package/dist/actions/details-about-a-paper-s-authors.mjs +1 -1
  6. package/dist/actions/details-about-a-paper-s-authors.mjs.map +1 -1
  7. package/dist/actions/details-about-a-paper-s-citations.cjs +9 -9
  8. package/dist/actions/details-about-a-paper-s-citations.cjs.map +1 -1
  9. package/dist/actions/details-about-a-paper-s-citations.d.cts +9 -9
  10. package/dist/actions/details-about-a-paper-s-citations.d.mts +9 -9
  11. package/dist/actions/details-about-a-paper-s-citations.mjs +9 -9
  12. package/dist/actions/details-about-a-paper-s-citations.mjs.map +1 -1
  13. package/dist/actions/details-about-a-paper-s-references.cjs +12 -12
  14. package/dist/actions/details-about-a-paper-s-references.cjs.map +1 -1
  15. package/dist/actions/details-about-a-paper-s-references.d.cts +14 -14
  16. package/dist/actions/details-about-a-paper-s-references.d.mts +14 -14
  17. package/dist/actions/details-about-a-paper-s-references.mjs +12 -12
  18. package/dist/actions/details-about-a-paper-s-references.mjs.map +1 -1
  19. package/dist/actions/details-about-an-author-s-papers.cjs +11 -11
  20. package/dist/actions/details-about-an-author-s-papers.cjs.map +1 -1
  21. package/dist/actions/details-about-an-author-s-papers.d.cts +12 -12
  22. package/dist/actions/details-about-an-author-s-papers.d.mts +12 -12
  23. package/dist/actions/details-about-an-author-s-papers.mjs +11 -11
  24. package/dist/actions/details-about-an-author-s-papers.mjs.map +1 -1
  25. package/dist/actions/details-about-an-author.cjs +1 -1
  26. package/dist/actions/details-about-an-author.cjs.map +1 -1
  27. package/dist/actions/details-about-an-author.d.cts +1 -1
  28. package/dist/actions/details-about-an-author.d.mts +1 -1
  29. package/dist/actions/details-about-an-author.mjs +1 -1
  30. package/dist/actions/details-about-an-author.mjs.map +1 -1
  31. package/dist/actions/get-dataset-diffs.cjs +2 -2
  32. package/dist/actions/get-dataset-diffs.cjs.map +1 -1
  33. package/dist/actions/get-dataset-diffs.d.cts +2 -2
  34. package/dist/actions/get-dataset-diffs.d.mts +2 -2
  35. package/dist/actions/get-dataset-diffs.mjs +2 -2
  36. package/dist/actions/get-dataset-diffs.mjs.map +1 -1
  37. package/dist/actions/get-dataset.cjs +1 -1
  38. package/dist/actions/get-dataset.cjs.map +1 -1
  39. package/dist/actions/get-dataset.d.cts +1 -1
  40. package/dist/actions/get-dataset.d.mts +1 -1
  41. package/dist/actions/get-dataset.mjs +1 -1
  42. package/dist/actions/get-dataset.mjs.map +1 -1
  43. package/dist/actions/get-paper-recommendations.cjs +12 -12
  44. package/dist/actions/get-paper-recommendations.cjs.map +1 -1
  45. package/dist/actions/get-paper-recommendations.d.cts +12 -12
  46. package/dist/actions/get-paper-recommendations.d.mts +12 -12
  47. package/dist/actions/get-paper-recommendations.mjs +12 -12
  48. package/dist/actions/get-paper-recommendations.mjs.map +1 -1
  49. package/dist/actions/get-recommendations-for-paper.cjs +5 -5
  50. package/dist/actions/get-recommendations-for-paper.cjs.map +1 -1
  51. package/dist/actions/get-recommendations-for-paper.d.cts +5 -5
  52. package/dist/actions/get-recommendations-for-paper.d.mts +5 -5
  53. package/dist/actions/get-recommendations-for-paper.mjs +5 -5
  54. package/dist/actions/get-recommendations-for-paper.mjs.map +1 -1
  55. package/dist/actions/get-release.cjs +2 -2
  56. package/dist/actions/get-release.cjs.map +1 -1
  57. package/dist/actions/get-release.d.cts +2 -2
  58. package/dist/actions/get-release.d.mts +2 -2
  59. package/dist/actions/get-release.mjs +2 -2
  60. package/dist/actions/get-release.mjs.map +1 -1
  61. package/dist/actions/list-releases.cjs +1 -1
  62. package/dist/actions/list-releases.cjs.map +1 -1
  63. package/dist/actions/list-releases.d.cts +1 -1
  64. package/dist/actions/list-releases.d.mts +1 -1
  65. package/dist/actions/list-releases.mjs +1 -1
  66. package/dist/actions/list-releases.mjs.map +1 -1
  67. package/dist/actions/paper-title-search.cjs +11 -11
  68. package/dist/actions/paper-title-search.cjs.map +1 -1
  69. package/dist/actions/paper-title-search.d.cts +11 -11
  70. package/dist/actions/paper-title-search.d.mts +11 -11
  71. package/dist/actions/paper-title-search.mjs +11 -11
  72. package/dist/actions/paper-title-search.mjs.map +1 -1
  73. package/dist/actions/search-bulk-papers.cjs +9 -9
  74. package/dist/actions/search-bulk-papers.cjs.map +1 -1
  75. package/dist/actions/search-bulk-papers.d.cts +9 -9
  76. package/dist/actions/search-bulk-papers.d.mts +9 -9
  77. package/dist/actions/search-bulk-papers.mjs +9 -9
  78. package/dist/actions/search-bulk-papers.mjs.map +1 -1
  79. package/dist/actions/search-for-authors-by-name.cjs +1 -1
  80. package/dist/actions/search-for-authors-by-name.cjs.map +1 -1
  81. package/dist/actions/search-for-authors-by-name.d.cts +1 -1
  82. package/dist/actions/search-for-authors-by-name.d.mts +1 -1
  83. package/dist/actions/search-for-authors-by-name.mjs +1 -1
  84. package/dist/actions/search-for-authors-by-name.mjs.map +1 -1
  85. package/dist/actions/search-papers.cjs +13 -13
  86. package/dist/actions/search-papers.cjs.map +1 -1
  87. package/dist/actions/search-papers.d.cts +14 -14
  88. package/dist/actions/search-papers.d.mts +14 -14
  89. package/dist/actions/search-papers.mjs +13 -13
  90. package/dist/actions/search-papers.mjs.map +1 -1
  91. package/dist/actions/suggest-paper-query-completions.cjs +2 -2
  92. package/dist/actions/suggest-paper-query-completions.cjs.map +1 -1
  93. package/dist/actions/suggest-paper-query-completions.d.cts +2 -2
  94. package/dist/actions/suggest-paper-query-completions.d.mts +2 -2
  95. package/dist/actions/suggest-paper-query-completions.mjs +2 -2
  96. package/dist/actions/suggest-paper-query-completions.mjs.map +1 -1
  97. package/dist/actions/text-snippet-search.cjs +10 -10
  98. package/dist/actions/text-snippet-search.cjs.map +1 -1
  99. package/dist/actions/text-snippet-search.d.cts +10 -10
  100. package/dist/actions/text-snippet-search.d.mts +10 -10
  101. package/dist/actions/text-snippet-search.mjs +10 -10
  102. package/dist/actions/text-snippet-search.mjs.map +1 -1
  103. package/dist/catalog.cjs +1 -1
  104. package/dist/catalog.cjs.map +1 -1
  105. package/dist/catalog.d.cts +1 -1
  106. package/dist/catalog.d.mts +1 -1
  107. package/dist/catalog.mjs +1 -1
  108. package/dist/catalog.mjs.map +1 -1
  109. package/package.json +1 -1
@@ -17,12 +17,12 @@ const SemanticscholarSearchBulkPapersInput = z.object({
17
17
  const SemanticscholarSearchBulkPapers_AuthorSchema = z.object({
18
18
  name: z.string().describe("Author name").nullable().optional(),
19
19
  authorId: z.string().describe("Semantic Scholar author identifier").nullable().optional()
20
- }).describe("Paper author information.");
20
+ }).passthrough().describe("Paper author information.");
21
21
  const SemanticscholarSearchBulkPapers_JournalSchema = z.object({
22
22
  name: z.string().describe("Journal name").nullable().optional(),
23
23
  pages: z.string().describe("Page range").nullable().optional(),
24
24
  volume: z.string().describe("Volume number").nullable().optional()
25
- }).describe("Journal publication metadata.");
25
+ }).passthrough().describe("Journal publication metadata.");
26
26
  const SemanticscholarSearchBulkPapers_ExternalIdsSchema = z.object({
27
27
  ACL: z.string().describe("ACL Anthology identifier").nullable().optional(),
28
28
  DOI: z.string().describe("Digital Object Identifier").nullable().optional(),
@@ -33,24 +33,24 @@ const SemanticscholarSearchBulkPapers_ExternalIdsSchema = z.object({
33
33
  Medline: z.string().describe("Medline identifier").nullable().optional(),
34
34
  CorpusId: z.number().int().describe("Corpus identifier").nullable().optional(),
35
35
  PubMedCentral: z.string().describe("PubMed Central identifier").nullable().optional()
36
- }).describe("External identifiers for a paper.");
36
+ }).passthrough().describe("External identifiers for a paper.");
37
37
  const SemanticscholarSearchBulkPapers_OpenAccessPdfSchema = z.object({
38
38
  url: z.string().describe("PDF download URL").nullable().optional(),
39
39
  status: z.string().describe("Open access status").nullable().optional(),
40
40
  license: z.string().describe("License type").nullable().optional()
41
- }).describe("Open access PDF information.");
42
- const SemanticscholarSearchBulkPapers_CitationStylesSchema = z.object({ bibtex: z.string().describe("BibTeX format citation").nullable().optional() }).describe("Citation format strings.");
41
+ }).passthrough().describe("Open access PDF information.");
42
+ const SemanticscholarSearchBulkPapers_CitationStylesSchema = z.object({ bibtex: z.string().describe("BibTeX format citation").nullable().optional() }).passthrough().describe("Citation format strings.");
43
43
  const SemanticscholarSearchBulkPapers_S2FieldOfStudySchema = z.object({
44
44
  source: z.string().describe("Classification source").nullable().optional(),
45
45
  category: z.string().describe("Field category name").nullable().optional()
46
- }).describe("Semantic Scholar classified field of study.");
46
+ }).passthrough().describe("Semantic Scholar classified field of study.");
47
47
  const SemanticscholarSearchBulkPapers_PublicationVenueSchema = z.object({
48
48
  id: z.string().describe("Unique venue identifier").nullable().optional(),
49
49
  url: z.string().describe("Venue website URL").nullable().optional(),
50
50
  name: z.string().describe("Venue name").nullable().optional(),
51
51
  type: z.string().describe("Venue type (conference/journal)").nullable().optional(),
52
52
  alternate_names: z.array(z.string()).describe("Alternative venue names").nullable().optional()
53
- }).describe("Detailed publication venue information.");
53
+ }).passthrough().describe("Detailed publication venue information.");
54
54
  const SemanticscholarSearchBulkPapers_PaperItemSchema = z.object({
55
55
  url: z.string().describe("Semantic Scholar paper URL").nullable().optional(),
56
56
  year: z.number().int().describe("Publication year").nullable().optional(),
@@ -73,7 +73,7 @@ const SemanticscholarSearchBulkPapers_PaperItemSchema = z.object({
73
73
  publicationTypes: z.array(z.string()).describe("Publication type classifications").nullable().optional(),
74
74
  publicationVenue: SemanticscholarSearchBulkPapers_PublicationVenueSchema.nullable().optional(),
75
75
  influentialCitationCount: z.number().int().describe("Count of citations with significant impact").nullable().optional()
76
- }).describe("Individual paper in bulk search results.");
76
+ }).passthrough().describe("Individual paper in bulk search results.");
77
77
  const semanticscholarSearchBulkPapers = action("SEMANTICSCHOLAR_SEARCH_BULK_PAPERS", {
78
78
  slug: "semanticscholar-search-bulk-papers",
79
79
  name: "Search Bulk Papers",
@@ -83,7 +83,7 @@ const semanticscholarSearchBulkPapers = action("SEMANTICSCHOLAR_SEARCH_BULK_PAPE
83
83
  data: z.array(SemanticscholarSearchBulkPapers_PaperItemSchema).describe("Array of papers matching the search criteria. Up to 1,000 papers per response."),
84
84
  token: z.string().describe("Continuation token for fetching next page. Present only when more results available.").nullable().optional(),
85
85
  total: z.number().int().describe("Approximate number of matching search results. Due to partial phrase matching subtleties, interpret cautiously.").nullable()
86
- }).describe("Response schema for bulk paper search.")
86
+ }).passthrough().describe("Response schema for bulk paper search.")
87
87
  });
88
88
  //#endregion
89
89
  export { semanticscholarSearchBulkPapers };
@@ -1 +1 @@
1
- {"version":3,"file":"search-bulk-papers.mjs","names":[],"sources":["../../src/actions/search-bulk-papers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarSearchBulkPapersInput = z.object({\n sort: z.string().describe(\"Sort results by field:order. Available fields: paperId, publicationDate, citationCount. Default field is paperId, default order is asc. Ties broken by paperId. Records with null sort values appear at end regardless of order. Examples: 'publicationDate:asc' (oldest first), 'citationCount:desc' (most cited first), 'paperId' (ID order).\").optional(),\n year: z.string().describe(\"Publication year or year range filter (inclusive). Examples: '2019' (year 2019), '2016-2020' (range), '2010-' (on or after 2010), '-2015' (before or on 2015).\").optional(),\n query: z.string().describe(\"Optional text query matched against paper title and abstract. All terms are stemmed in English. By default, all query terms must be present. Supports boolean operators: + (AND), | (OR), - (NOT), \\\"\\\" (phrase), * (prefix match), () (precedence), ~N (fuzzy match with edit distance N, default 2). When omitted, returns all papers (subject to filters). Examples: 'fish ladder' (both terms), 'fish | ladder' (either term), '\\\"fish ladder\\\"' (exact phrase), 'fish~' (fuzzy match), '(fish ladder) | outflow' (boolean logic).\").optional(),\n token: z.string().describe(\"Pagination token from previous response. Used to fetch the next batch of papers. Each response returns a new token when more results are available.\").optional(),\n venue: z.string().describe(\"Comma-separated list of venue names. ISO4 abbreviations supported. Papers from any listed venue are returned. Examples: Nature, New England Journal of Medicine, Radiology, N. Engl. J. Med.\").optional(),\n fields: z.string().describe(\"Comma-separated list of fields to return. paperId is always returned. If omitted, only paperId and title are returned. Available fields: title, abstract, venue, publicationVenue, year, publicationDate, authors, externalIds, url, referenceCount, citationCount, influentialCitationCount, isOpenAccess, openAccessPdf, fieldsOfStudy, s2FieldsOfStudy, publicationTypes, journal, citationStyles, corpusId.\").optional(),\n fieldsOfStudy: z.string().describe(\"Comma-separated list of fields of study. Papers in any listed field are returned. Available fields: Computer Science, Medicine, Chemistry, Biology, Materials Science, Physics, Geology, Psychology, Art, History, Geography, Sociology, Business, Political Science, Economics, Philosophy, Mathematics, Engineering, Environmental Science, Agricultural and Food Sciences, Education, Law, Linguistics.\").optional(),\n openAccessPdf: z.string().describe(\"Restricts results to papers with a public PDF. This parameter does not accept any values - its presence activates the filter.\").optional(),\n minCitationCount: z.number().int().describe(\"Minimum number of citations required. Must be non-negative.\").optional(),\n publicationTypes: z.string().describe(\"Comma-separated list of publication types to include. Available types: Review, JournalArticle, CaseReport, ClinicalTrial, Conference, Dataset, Editorial, LettersAndComments, MetaAnalysis, News, Study, Book, BookSection. Papers matching any listed type are returned.\").optional(),\n publicationDateOrYear: z.string().describe(\"Date or year range filter (inclusive) in format <startDate>:<endDate>. Each date in YYYY-MM-DD format. Each term optional for open-ended ranges. Prefixes supported (e.g., 2020-06 matches June 2020). Papers without specific dates treated as published January 1st of their year. Examples: '2019-03-05' (specific date), '2019-03' (March 2019), '2019' (year 2019), '2016-03-05:2020-06-06' (date range), '1981-08-25:' (on or after), ':2015-01' (before or on), '2015:2020' (year range).\").optional(),\n}).describe(\"Request schema for bulk paper search.\");\nconst SemanticscholarSearchBulkPapers_AuthorSchema = z.object({\n name: z.string().describe(\"Author name\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar author identifier\").nullable().optional(),\n}).describe(\"Paper author information.\");\nconst SemanticscholarSearchBulkPapers_JournalSchema = z.object({\n name: z.string().describe(\"Journal name\").nullable().optional(),\n pages: z.string().describe(\"Page range\").nullable().optional(),\n volume: z.string().describe(\"Volume number\").nullable().optional(),\n}).describe(\"Journal publication metadata.\");\nconst SemanticscholarSearchBulkPapers_ExternalIdsSchema = z.object({\n ACL: z.string().describe(\"ACL Anthology identifier\").nullable().optional(),\n DOI: z.string().describe(\"Digital Object Identifier\").nullable().optional(),\n MAG: z.string().describe(\"Microsoft Academic Graph identifier\").nullable().optional(),\n DBLP: z.string().describe(\"DBLP identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"ArXiv 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(\"Corpus identifier\").nullable().optional(),\n PubMedCentral: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n}).describe(\"External identifiers for a paper.\");\nconst SemanticscholarSearchBulkPapers_OpenAccessPdfSchema = z.object({\n url: z.string().describe(\"PDF download URL\").nullable().optional(),\n status: z.string().describe(\"Open access status\").nullable().optional(),\n license: z.string().describe(\"License type\").nullable().optional(),\n}).describe(\"Open access PDF information.\");\nconst SemanticscholarSearchBulkPapers_CitationStylesSchema = z.object({\n bibtex: z.string().describe(\"BibTeX format citation\").nullable().optional(),\n}).describe(\"Citation format strings.\");\nconst SemanticscholarSearchBulkPapers_S2FieldOfStudySchema = z.object({\n source: z.string().describe(\"Classification source\").nullable().optional(),\n category: z.string().describe(\"Field category name\").nullable().optional(),\n}).describe(\"Semantic Scholar classified field of study.\");\nconst SemanticscholarSearchBulkPapers_PublicationVenueSchema = z.object({\n id: z.string().describe(\"Unique venue identifier\").nullable().optional(),\n url: z.string().describe(\"Venue website URL\").nullable().optional(),\n name: z.string().describe(\"Venue name\").nullable().optional(),\n type: z.string().describe(\"Venue type (conference/journal)\").nullable().optional(),\n alternate_names: z.array(z.string()).describe(\"Alternative venue names\").nullable().optional(),\n}).describe(\"Detailed publication venue information.\");\nconst SemanticscholarSearchBulkPapers_PaperItemSchema = z.object({\n url: z.string().describe(\"Semantic Scholar paper URL\").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(SemanticscholarSearchBulkPapers_AuthorSchema).describe(\"Paper authors with metadata (authorId, name, affiliations, etc.)\").nullable().optional(),\n journal: SemanticscholarSearchBulkPapers_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar's unique paper identifier (always returned)\").nullable(),\n abstract: z.string().describe(\"Paper abstract\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar's secondary identifier\").nullable().optional(),\n externalIds: SemanticscholarSearchBulkPapers_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether paper is open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Number of papers citing this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"High-level academic categories\").nullable().optional(),\n openAccessPdf: SemanticscholarSearchBulkPapers_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarSearchBulkPapers_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Number of papers this paper references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date (YYYY-MM-DD format)\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarSearchBulkPapers_S2FieldOfStudySchema).describe(\"Classified fields with source attribution\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Publication type classifications\").nullable().optional(),\n publicationVenue: SemanticscholarSearchBulkPapers_PublicationVenueSchema.nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Count of citations with significant impact\").nullable().optional(),\n}).describe(\"Individual paper in bulk search results.\");\nexport const SemanticscholarSearchBulkPapersOutput = z.object({\n data: z.array(SemanticscholarSearchBulkPapers_PaperItemSchema).describe(\"Array of papers matching the search criteria. Up to 1,000 papers per response.\"),\n token: z.string().describe(\"Continuation token for fetching next page. Present only when more results available.\").nullable().optional(),\n total: z.number().int().describe(\"Approximate number of matching search results. Due to partial phrase matching subtleties, interpret cautiously.\").nullable(),\n}).describe(\"Response schema for bulk paper search.\");\n\nexport const semanticscholarSearchBulkPapers = action(\"SEMANTICSCHOLAR_SEARCH_BULK_PAPERS\", {\n slug: \"semanticscholar-search-bulk-papers\",\n name: \"Search Bulk Papers\",\n description: \"Tool to perform bulk search for academic papers. Intended for bulk retrieval of basic paper data without search relevance scoring. Use when you need to retrieve large sets of papers with optional text filtering and various criteria. Supports token-based pagination for efficient fetching of up to 10 million papers (use Datasets API for larger needs).\",\n input: SemanticscholarSearchBulkPapersInput,\n output: SemanticscholarSearchBulkPapersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iVAAiV,CAAC,CAAC,SAAS;CACtX,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CACrM,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wgBAAwgB,CAAC,CAAC,SAAS;CAC9iB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CAC3L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L,CAAC,CAAC,SAAS;CACpO,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iZAAiZ,CAAC,CAAC,SAAS;CACxb,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4YAA4Y,CAAC,CAAC,SAAS;CAC1b,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAC7K,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAA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AAC,SAAS,sFAAsF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC/J,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"search-bulk-papers.mjs","names":[],"sources":["../../src/actions/search-bulk-papers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarSearchBulkPapersInput = z.object({\n sort: z.string().describe(\"Sort results by field:order. Available fields: paperId, publicationDate, citationCount. Default field is paperId, default order is asc. Ties broken by paperId. Records with null sort values appear at end regardless of order. Examples: 'publicationDate:asc' (oldest first), 'citationCount:desc' (most cited first), 'paperId' (ID order).\").optional(),\n year: z.string().describe(\"Publication year or year range filter (inclusive). Examples: '2019' (year 2019), '2016-2020' (range), '2010-' (on or after 2010), '-2015' (before or on 2015).\").optional(),\n query: z.string().describe(\"Optional text query matched against paper title and abstract. All terms are stemmed in English. By default, all query terms must be present. Supports boolean operators: + (AND), | (OR), - (NOT), \\\"\\\" (phrase), * (prefix match), () (precedence), ~N (fuzzy match with edit distance N, default 2). When omitted, returns all papers (subject to filters). Examples: 'fish ladder' (both terms), 'fish | ladder' (either term), '\\\"fish ladder\\\"' (exact phrase), 'fish~' (fuzzy match), '(fish ladder) | outflow' (boolean logic).\").optional(),\n token: z.string().describe(\"Pagination token from previous response. Used to fetch the next batch of papers. Each response returns a new token when more results are available.\").optional(),\n venue: z.string().describe(\"Comma-separated list of venue names. ISO4 abbreviations supported. Papers from any listed venue are returned. Examples: Nature, New England Journal of Medicine, Radiology, N. Engl. J. Med.\").optional(),\n fields: z.string().describe(\"Comma-separated list of fields to return. paperId is always returned. If omitted, only paperId and title are returned. Available fields: title, abstract, venue, publicationVenue, year, publicationDate, authors, externalIds, url, referenceCount, citationCount, influentialCitationCount, isOpenAccess, openAccessPdf, fieldsOfStudy, s2FieldsOfStudy, publicationTypes, journal, citationStyles, corpusId.\").optional(),\n fieldsOfStudy: z.string().describe(\"Comma-separated list of fields of study. Papers in any listed field are returned. Available fields: Computer Science, Medicine, Chemistry, Biology, Materials Science, Physics, Geology, Psychology, Art, History, Geography, Sociology, Business, Political Science, Economics, Philosophy, Mathematics, Engineering, Environmental Science, Agricultural and Food Sciences, Education, Law, Linguistics.\").optional(),\n openAccessPdf: z.string().describe(\"Restricts results to papers with a public PDF. This parameter does not accept any values - its presence activates the filter.\").optional(),\n minCitationCount: z.number().int().describe(\"Minimum number of citations required. Must be non-negative.\").optional(),\n publicationTypes: z.string().describe(\"Comma-separated list of publication types to include. Available types: Review, JournalArticle, CaseReport, ClinicalTrial, Conference, Dataset, Editorial, LettersAndComments, MetaAnalysis, News, Study, Book, BookSection. Papers matching any listed type are returned.\").optional(),\n publicationDateOrYear: z.string().describe(\"Date or year range filter (inclusive) in format <startDate>:<endDate>. Each date in YYYY-MM-DD format. Each term optional for open-ended ranges. Prefixes supported (e.g., 2020-06 matches June 2020). Papers without specific dates treated as published January 1st of their year. Examples: '2019-03-05' (specific date), '2019-03' (March 2019), '2019' (year 2019), '2016-03-05:2020-06-06' (date range), '1981-08-25:' (on or after), ':2015-01' (before or on), '2015:2020' (year range).\").optional(),\n}).describe(\"Request schema for bulk paper search.\");\nconst SemanticscholarSearchBulkPapers_AuthorSchema = z.object({\n name: z.string().describe(\"Author name\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar author identifier\").nullable().optional(),\n}).passthrough().describe(\"Paper author information.\");\nconst SemanticscholarSearchBulkPapers_JournalSchema = z.object({\n name: z.string().describe(\"Journal name\").nullable().optional(),\n pages: z.string().describe(\"Page range\").nullable().optional(),\n volume: z.string().describe(\"Volume number\").nullable().optional(),\n}).passthrough().describe(\"Journal publication metadata.\");\nconst SemanticscholarSearchBulkPapers_ExternalIdsSchema = z.object({\n ACL: z.string().describe(\"ACL Anthology identifier\").nullable().optional(),\n DOI: z.string().describe(\"Digital Object Identifier\").nullable().optional(),\n MAG: z.string().describe(\"Microsoft Academic Graph identifier\").nullable().optional(),\n DBLP: z.string().describe(\"DBLP identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"ArXiv 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(\"Corpus identifier\").nullable().optional(),\n PubMedCentral: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n}).passthrough().describe(\"External identifiers for a paper.\");\nconst SemanticscholarSearchBulkPapers_OpenAccessPdfSchema = z.object({\n url: z.string().describe(\"PDF download URL\").nullable().optional(),\n status: z.string().describe(\"Open access status\").nullable().optional(),\n license: z.string().describe(\"License type\").nullable().optional(),\n}).passthrough().describe(\"Open access PDF information.\");\nconst SemanticscholarSearchBulkPapers_CitationStylesSchema = z.object({\n bibtex: z.string().describe(\"BibTeX format citation\").nullable().optional(),\n}).passthrough().describe(\"Citation format strings.\");\nconst SemanticscholarSearchBulkPapers_S2FieldOfStudySchema = z.object({\n source: z.string().describe(\"Classification source\").nullable().optional(),\n category: z.string().describe(\"Field category name\").nullable().optional(),\n}).passthrough().describe(\"Semantic Scholar classified field of study.\");\nconst SemanticscholarSearchBulkPapers_PublicationVenueSchema = z.object({\n id: z.string().describe(\"Unique venue identifier\").nullable().optional(),\n url: z.string().describe(\"Venue website URL\").nullable().optional(),\n name: z.string().describe(\"Venue name\").nullable().optional(),\n type: z.string().describe(\"Venue type (conference/journal)\").nullable().optional(),\n alternate_names: z.array(z.string()).describe(\"Alternative venue names\").nullable().optional(),\n}).passthrough().describe(\"Detailed publication venue information.\");\nconst SemanticscholarSearchBulkPapers_PaperItemSchema = z.object({\n url: z.string().describe(\"Semantic Scholar paper URL\").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(SemanticscholarSearchBulkPapers_AuthorSchema).describe(\"Paper authors with metadata (authorId, name, affiliations, etc.)\").nullable().optional(),\n journal: SemanticscholarSearchBulkPapers_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar's unique paper identifier (always returned)\").nullable(),\n abstract: z.string().describe(\"Paper abstract\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar's secondary identifier\").nullable().optional(),\n externalIds: SemanticscholarSearchBulkPapers_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether paper is open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Number of papers citing this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"High-level academic categories\").nullable().optional(),\n openAccessPdf: SemanticscholarSearchBulkPapers_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarSearchBulkPapers_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Number of papers this paper references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date (YYYY-MM-DD format)\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarSearchBulkPapers_S2FieldOfStudySchema).describe(\"Classified fields with source attribution\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Publication type classifications\").nullable().optional(),\n publicationVenue: SemanticscholarSearchBulkPapers_PublicationVenueSchema.nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Count of citations with significant impact\").nullable().optional(),\n}).passthrough().describe(\"Individual paper in bulk search results.\");\nexport const SemanticscholarSearchBulkPapersOutput = z.object({\n data: z.array(SemanticscholarSearchBulkPapers_PaperItemSchema).describe(\"Array of papers matching the search criteria. Up to 1,000 papers per response.\"),\n token: z.string().describe(\"Continuation token for fetching next page. Present only when more results available.\").nullable().optional(),\n total: z.number().int().describe(\"Approximate number of matching search results. Due to partial phrase matching subtleties, interpret cautiously.\").nullable(),\n}).passthrough().describe(\"Response schema for bulk paper search.\");\n\nexport const semanticscholarSearchBulkPapers = action(\"SEMANTICSCHOLAR_SEARCH_BULK_PAPERS\", {\n slug: \"semanticscholar-search-bulk-papers\",\n name: \"Search Bulk Papers\",\n description: \"Tool to perform bulk search for academic papers. Intended for bulk retrieval of basic paper data without search relevance scoring. Use when you need to retrieve large sets of papers with optional text filtering and various criteria. Supports token-based pagination for efficient fetching of up to 10 million papers (use Datasets API for larger needs).\",\n input: SemanticscholarSearchBulkPapersInput,\n output: SemanticscholarSearchBulkPapersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuC,EAAE,OAAO;CAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iVAAiV,CAAC,CAAC,SAAS;CACtX,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CACrM,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wgBAAwgB,CAAC,CAAC,SAAS;CAC9iB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CAC3L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8LAA8L,CAAC,CAAC,SAAS;CACpO,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iZAAiZ,CAAC,CAAC,SAAS;CACxb,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4YAA4Y,CAAC,CAAC,SAAS;CAC1b,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAC7K,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACpH,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,2QAA2Q,CAAC,CAAC,SAAS;CAC5T,uBAAuB,EAAE,OAAO,CAAC,CAAC,SAAS,keAAke,CAAC,CAAC,SAAS;AAC1hB,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,+CAA+C,EAAE,OAAO;CA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,CAAC,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC/J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -23,7 +23,7 @@ const SemanticscholarSearchForAuthorsByNameOutput = zod.z.object({
23
23
  next: zod.z.number().int().describe("Offset for the next page of results (if available)").nullable().optional(),
24
24
  total: zod.z.number().int().describe("Total number of authors matching the search query").nullable(),
25
25
  offset: zod.z.number().int().describe("Starting position in the result set (for pagination)").nullable()
26
- }).describe("Response schema for `SearchForAuthorsByName`");
26
+ }).passthrough().describe("Response schema for `SearchForAuthorsByName`");
27
27
  const semanticscholarSearchForAuthorsByName = require_action.action("SEMANTICSCHOLAR_SEARCH_FOR_AUTHORS_BY_NAME", {
28
28
  slug: "semanticscholar-search-for-authors-by-name",
29
29
  name: "Search for authors by name",
@@ -1 +1 @@
1
- {"version":3,"file":"search-for-authors-by-name.cjs","names":["z","action"],"sources":["../../src/actions/search-for-authors-by-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarSearchForAuthorsByNameInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of results to return per request. Must be between 1 and 1000. Default: 100\").optional(),\n query: z.string().describe(\"Author name to search for (plain text). The search is case-insensitive and supports partial matches. Note: Hyphenated names should use spaces instead of hyphens for better results (e.g., use 'Alan Turing' not 'Alan-Turing'). No special query syntax (wildcards, operators, etc.) is supported.\"),\n fields: z.string().describe(\"Comma-separated list of author fields to include in the response. Available fields: name, url, affiliations, homepage, paperCount, citationCount, hIndex, papers. The 'authorId' field is always returned. If omitted, only 'authorId' and 'name' are returned. For nested paper fields, use dot notation (e.g., 'papers.title,papers.year'). Examples: 'name,affiliations,paperCount' or 'url,papers.title,papers.year'\").optional(),\n offset: z.number().int().default(0).describe(\"Starting position for pagination. Use this with 'limit' to retrieve results in batches. For example, offset=0 returns the first batch, offset=100 returns the second batch (if limit=100). Default: 0\").optional(),\n}).describe(\"Request schema for `SearchForAuthorsByName`\");\nconst SemanticscholarSearchForAuthorsByName_AuthorSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the author\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n papers: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers (when requested via fields parameter)\").nullable().optional(),\n authorId: z.string().describe(\"Unique author identifier\").nullable(),\n homepage: z.string().describe(\"Author's homepage URL\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total number of papers by this author\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"List of author affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations across all papers\").nullable().optional(),\n}).passthrough().describe(\"Individual author data\");\nexport const SemanticscholarSearchForAuthorsByNameOutput = z.object({\n data: z.array(SemanticscholarSearchForAuthorsByName_AuthorSchema).describe(\"List of author objects matching the search query\"),\n next: z.number().int().describe(\"Offset for the next page of results (if available)\").nullable().optional(),\n total: z.number().int().describe(\"Total number of authors matching the search query\").nullable(),\n offset: z.number().int().describe(\"Starting position in the result set (for pagination)\").nullable(),\n}).describe(\"Response schema for `SearchForAuthorsByName`\");\n\nexport const semanticscholarSearchForAuthorsByName = action(\"SEMANTICSCHOLAR_SEARCH_FOR_AUTHORS_BY_NAME\", {\n slug: \"semanticscholar-search-for-authors-by-name\",\n name: \"Search for authors by name\",\n description: \"Search for academic authors in the Semantic Scholar database by name. This action searches for authors using plain-text name queries. The search is case-insensitive and supports partial name matches (e.g., \\\"Smith\\\" will match \\\"John Smith\\\", \\\"Adam Smith\\\", etc.). Use cases: - Find authors by their name to get their author ID - Discover authors in a specific research area by searching common names - Retrieve author metadata including publications, affiliations, citation counts, and h-index - Build author directories or research networks The response includes pagination metadata (total, offset, next) to help retrieve large result sets. Use the 'fields' parameter to customize which author attributes are returned, and use 'offset' and 'limit' for pagination through result sets larger than 1000 authors. Note: Results are paginated with a maximum of 1000 results per request. Use the 'next' field in the response to determine the offset for the next page.\",\n input: SemanticscholarSearchForAuthorsByNameInput,\n output: SemanticscholarSearchForAuthorsByNameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACpJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qSAAqS;CAChU,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0ZAA0Z,CAAC,CAAC,SAAS;CACjc,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS;AACjQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wBAAwB;AAClD,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,kDAAkD;CAC7H,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,wCAAwCC,eAAAA,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-for-authors-by-name.cjs","names":["z","action"],"sources":["../../src/actions/search-for-authors-by-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarSearchForAuthorsByNameInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of results to return per request. Must be between 1 and 1000. Default: 100\").optional(),\n query: z.string().describe(\"Author name to search for (plain text). The search is case-insensitive and supports partial matches. Note: Hyphenated names should use spaces instead of hyphens for better results (e.g., use 'Alan Turing' not 'Alan-Turing'). No special query syntax (wildcards, operators, etc.) is supported.\"),\n fields: z.string().describe(\"Comma-separated list of author fields to include in the response. Available fields: name, url, affiliations, homepage, paperCount, citationCount, hIndex, papers. The 'authorId' field is always returned. If omitted, only 'authorId' and 'name' are returned. For nested paper fields, use dot notation (e.g., 'papers.title,papers.year'). Examples: 'name,affiliations,paperCount' or 'url,papers.title,papers.year'\").optional(),\n offset: z.number().int().default(0).describe(\"Starting position for pagination. Use this with 'limit' to retrieve results in batches. For example, offset=0 returns the first batch, offset=100 returns the second batch (if limit=100). Default: 0\").optional(),\n}).describe(\"Request schema for `SearchForAuthorsByName`\");\nconst SemanticscholarSearchForAuthorsByName_AuthorSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the author\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n papers: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers (when requested via fields parameter)\").nullable().optional(),\n authorId: z.string().describe(\"Unique author identifier\").nullable(),\n homepage: z.string().describe(\"Author's homepage URL\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total number of papers by this author\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"List of author affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations across all papers\").nullable().optional(),\n}).passthrough().describe(\"Individual author data\");\nexport const SemanticscholarSearchForAuthorsByNameOutput = z.object({\n data: z.array(SemanticscholarSearchForAuthorsByName_AuthorSchema).describe(\"List of author objects matching the search query\"),\n next: z.number().int().describe(\"Offset for the next page of results (if available)\").nullable().optional(),\n total: z.number().int().describe(\"Total number of authors matching the search query\").nullable(),\n offset: z.number().int().describe(\"Starting position in the result set (for pagination)\").nullable(),\n}).passthrough().describe(\"Response schema for `SearchForAuthorsByName`\");\n\nexport const semanticscholarSearchForAuthorsByName = action(\"SEMANTICSCHOLAR_SEARCH_FOR_AUTHORS_BY_NAME\", {\n slug: \"semanticscholar-search-for-authors-by-name\",\n name: \"Search for authors by name\",\n description: \"Search for academic authors in the Semantic Scholar database by name. This action searches for authors using plain-text name queries. The search is case-insensitive and supports partial name matches (e.g., \\\"Smith\\\" will match \\\"John Smith\\\", \\\"Adam Smith\\\", etc.). Use cases: - Find authors by their name to get their author ID - Discover authors in a specific research area by searching common names - Retrieve author metadata including publications, affiliations, citation counts, and h-index - Build author directories or research networks The response includes pagination metadata (total, offset, next) to help retrieve large result sets. Use the 'fields' parameter to customize which author attributes are returned, and use 'offset' and 'limit' for pagination through result sets larger than 1000 authors. Note: Results are paginated with a maximum of 1000 results per request. Use the 'next' field in the response to determine the offset for the next page.\",\n input: SemanticscholarSearchForAuthorsByNameInput,\n output: SemanticscholarSearchForAuthorsByNameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACpJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qSAAqS;CAChU,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0ZAA0Z,CAAC,CAAC,SAAS;CACjc,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS;AACjQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CA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C,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,wCAAwCC,eAAAA,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -22,7 +22,7 @@ declare const SemanticscholarSearchForAuthorsByNameOutput: z.ZodObject<{
22
22
  next: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  total: z.ZodNullable<z.ZodNumber>;
24
24
  offset: z.ZodNullable<z.ZodNumber>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const semanticscholarSearchForAuthorsByName: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  query: string;
28
28
  limit?: number | undefined;
@@ -22,7 +22,7 @@ declare const SemanticscholarSearchForAuthorsByNameOutput: z.ZodObject<{
22
22
  next: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
23
  total: z.ZodNullable<z.ZodNumber>;
24
24
  offset: z.ZodNullable<z.ZodNumber>;
25
- }, z.core.$strip>;
25
+ }, z.core.$loose>;
26
26
  declare const semanticscholarSearchForAuthorsByName: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  query: string;
28
28
  limit?: number | undefined;
@@ -28,7 +28,7 @@ const semanticscholarSearchForAuthorsByName = action("SEMANTICSCHOLAR_SEARCH_FOR
28
28
  next: z.number().int().describe("Offset for the next page of results (if available)").nullable().optional(),
29
29
  total: z.number().int().describe("Total number of authors matching the search query").nullable(),
30
30
  offset: z.number().int().describe("Starting position in the result set (for pagination)").nullable()
31
- }).describe("Response schema for `SearchForAuthorsByName`")
31
+ }).passthrough().describe("Response schema for `SearchForAuthorsByName`")
32
32
  });
33
33
  //#endregion
34
34
  export { semanticscholarSearchForAuthorsByName };
@@ -1 +1 @@
1
- {"version":3,"file":"search-for-authors-by-name.mjs","names":[],"sources":["../../src/actions/search-for-authors-by-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarSearchForAuthorsByNameInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of results to return per request. Must be between 1 and 1000. Default: 100\").optional(),\n query: z.string().describe(\"Author name to search for (plain text). The search is case-insensitive and supports partial matches. Note: Hyphenated names should use spaces instead of hyphens for better results (e.g., use 'Alan Turing' not 'Alan-Turing'). No special query syntax (wildcards, operators, etc.) is supported.\"),\n fields: z.string().describe(\"Comma-separated list of author fields to include in the response. Available fields: name, url, affiliations, homepage, paperCount, citationCount, hIndex, papers. The 'authorId' field is always returned. If omitted, only 'authorId' and 'name' are returned. For nested paper fields, use dot notation (e.g., 'papers.title,papers.year'). Examples: 'name,affiliations,paperCount' or 'url,papers.title,papers.year'\").optional(),\n offset: z.number().int().default(0).describe(\"Starting position for pagination. Use this with 'limit' to retrieve results in batches. For example, offset=0 returns the first batch, offset=100 returns the second batch (if limit=100). Default: 0\").optional(),\n}).describe(\"Request schema for `SearchForAuthorsByName`\");\nconst SemanticscholarSearchForAuthorsByName_AuthorSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the author\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n papers: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers (when requested via fields parameter)\").nullable().optional(),\n authorId: z.string().describe(\"Unique author identifier\").nullable(),\n homepage: z.string().describe(\"Author's homepage URL\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total number of papers by this author\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"List of author affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations across all papers\").nullable().optional(),\n}).passthrough().describe(\"Individual author data\");\nexport const SemanticscholarSearchForAuthorsByNameOutput = z.object({\n data: z.array(SemanticscholarSearchForAuthorsByName_AuthorSchema).describe(\"List of author objects matching the search query\"),\n next: z.number().int().describe(\"Offset for the next page of results (if available)\").nullable().optional(),\n total: z.number().int().describe(\"Total number of authors matching the search query\").nullable(),\n offset: z.number().int().describe(\"Starting position in the result set (for pagination)\").nullable(),\n}).describe(\"Response schema for `SearchForAuthorsByName`\");\n\nexport const semanticscholarSearchForAuthorsByName = action(\"SEMANTICSCHOLAR_SEARCH_FOR_AUTHORS_BY_NAME\", {\n slug: \"semanticscholar-search-for-authors-by-name\",\n name: \"Search for authors by name\",\n description: \"Search for academic authors in the Semantic Scholar database by name. This action searches for authors using plain-text name queries. The search is case-insensitive and supports partial name matches (e.g., \\\"Smith\\\" will match \\\"John Smith\\\", \\\"Adam Smith\\\", etc.). Use cases: - Find authors by their name to get their author ID - Discover authors in a specific research area by searching common names - Retrieve author metadata including publications, affiliations, citation counts, and h-index - Build author directories or research networks The response includes pagination metadata (total, offset, next) to help retrieve large result sets. Use the 'fields' parameter to customize which author attributes are returned, and use 'offset' and 'limit' for pagination through result sets larger than 1000 authors. Note: Results are paginated with a maximum of 1000 results per request. Use the 'next' field in the response to determine the offset for the next page.\",\n input: SemanticscholarSearchForAuthorsByNameInput,\n output: SemanticscholarSearchForAuthorsByNameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACpJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qSAAqS;CAChU,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0ZAA0Z,CAAC,CAAC,SAAS;CACjc,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS;AACjQ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MA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CAAC,SAAS;EAC1G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"search-for-authors-by-name.mjs","names":[],"sources":["../../src/actions/search-for-authors-by-name.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarSearchForAuthorsByNameInput = z.object({\n limit: z.number().int().default(100).describe(\"Maximum number of results to return per request. Must be between 1 and 1000. Default: 100\").optional(),\n query: z.string().describe(\"Author name to search for (plain text). The search is case-insensitive and supports partial matches. Note: Hyphenated names should use spaces instead of hyphens for better results (e.g., use 'Alan Turing' not 'Alan-Turing'). No special query syntax (wildcards, operators, etc.) is supported.\"),\n fields: z.string().describe(\"Comma-separated list of author fields to include in the response. Available fields: name, url, affiliations, homepage, paperCount, citationCount, hIndex, papers. The 'authorId' field is always returned. If omitted, only 'authorId' and 'name' are returned. For nested paper fields, use dot notation (e.g., 'papers.title,papers.year'). Examples: 'name,affiliations,paperCount' or 'url,papers.title,papers.year'\").optional(),\n offset: z.number().int().default(0).describe(\"Starting position for pagination. Use this with 'limit' to retrieve results in batches. For example, offset=0 returns the first batch, offset=100 returns the second batch (if limit=100). Default: 0\").optional(),\n}).describe(\"Request schema for `SearchForAuthorsByName`\");\nconst SemanticscholarSearchForAuthorsByName_AuthorSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the author\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n papers: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers (when requested via fields parameter)\").nullable().optional(),\n authorId: z.string().describe(\"Unique author identifier\").nullable(),\n homepage: z.string().describe(\"Author's homepage URL\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total number of papers by this author\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"List of author affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations across all papers\").nullable().optional(),\n}).passthrough().describe(\"Individual author data\");\nexport const SemanticscholarSearchForAuthorsByNameOutput = z.object({\n data: z.array(SemanticscholarSearchForAuthorsByName_AuthorSchema).describe(\"List of author objects matching the search query\"),\n next: z.number().int().describe(\"Offset for the next page of results (if available)\").nullable().optional(),\n total: z.number().int().describe(\"Total number of authors matching the search query\").nullable(),\n offset: z.number().int().describe(\"Starting position in the result set (for pagination)\").nullable(),\n}).passthrough().describe(\"Response schema for `SearchForAuthorsByName`\");\n\nexport const semanticscholarSearchForAuthorsByName = action(\"SEMANTICSCHOLAR_SEARCH_FOR_AUTHORS_BY_NAME\", {\n slug: \"semanticscholar-search-for-authors-by-name\",\n name: \"Search for authors by name\",\n description: \"Search for academic authors in the Semantic Scholar database by name. This action searches for authors using plain-text name queries. The search is case-insensitive and supports partial name matches (e.g., \\\"Smith\\\" will match \\\"John Smith\\\", \\\"Adam Smith\\\", etc.). Use cases: - Find authors by their name to get their author ID - Discover authors in a specific research area by searching common names - Retrieve author metadata including publications, affiliations, citation counts, and h-index - Build author directories or research networks The response includes pagination metadata (total, offset, next) to help retrieve large result sets. Use the 'fields' parameter to customize which author attributes are returned, and use 'offset' and 'limit' for pagination through result sets larger than 1000 authors. Note: Results are paginated with a maximum of 1000 results per request. Use the 'next' field in the response to determine the offset for the next page.\",\n input: SemanticscholarSearchForAuthorsByNameInput,\n output: SemanticscholarSearchForAuthorsByNameOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CACpJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,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AAwC,OAAO,8CAA8C;CACxG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZyD,EAAE,OAAO;EAClE,MAAM,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,kDAAkD;EAC7H,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
@@ -17,7 +17,7 @@ const SemanticscholarSearchPapersInput = zod.z.object({
17
17
  const SemanticscholarSearchPapers_TldrInfoSchema = zod.z.object({
18
18
  text: zod.z.string().describe("Summary text").nullable().optional(),
19
19
  model: zod.z.string().describe("Model version used for summary generation").nullable().optional()
20
- }).describe("AI-generated summary (TLDR)");
20
+ }).passthrough().describe("AI-generated summary (TLDR)");
21
21
  const SemanticscholarSearchPapers_AuthorInfoSchema = zod.z.object({
22
22
  url: zod.z.string().describe("Author's Semantic Scholar profile URL").nullable().optional(),
23
23
  name: zod.z.string().describe("Author name").nullable().optional(),
@@ -25,40 +25,40 @@ const SemanticscholarSearchPapers_AuthorInfoSchema = zod.z.object({
25
25
  authorId: zod.z.string().describe("Semantic Scholar author ID").nullable().optional(),
26
26
  homepage: zod.z.string().describe("Author's personal website").nullable().optional(),
27
27
  paperCount: zod.z.number().int().describe("Total number of papers authored").nullable().optional(),
28
- externalIds: zod.z.object({}).describe("External identifiers (ORCID, DBLP)").nullable().optional(),
28
+ externalIds: zod.z.record(zod.z.string(), zod.z.unknown()).describe("External identifiers (ORCID, DBLP)").nullable().optional(),
29
29
  affiliations: zod.z.array(zod.z.string()).describe("Organizational affiliations").nullable().optional(),
30
30
  citationCount: zod.z.number().int().describe("Total citations received").nullable().optional()
31
- }).describe("Paper author information");
31
+ }).passthrough().describe("Paper author information");
32
32
  const SemanticscholarSearchPapers_JournalInfoSchema = zod.z.object({
33
33
  name: zod.z.string().describe("Journal name").nullable().optional(),
34
34
  pages: zod.z.string().describe("Page range").nullable().optional(),
35
35
  volume: zod.z.string().describe("Volume number").nullable().optional()
36
- }).describe("Journal publication metadata");
36
+ }).passthrough().describe("Journal publication metadata");
37
37
  const SemanticscholarSearchPapers_CitationReferenceInfoSchema = zod.z.object({
38
38
  title: zod.z.string().describe("Paper title").nullable().optional(),
39
39
  paperId: zod.z.string().describe("Paper ID").nullable().optional()
40
- }).describe("Citation or reference paper information");
40
+ }).passthrough().describe("Citation or reference paper information");
41
41
  const SemanticscholarSearchPapers_EmbeddingInfoSchema = zod.z.object({
42
42
  model: zod.z.string().describe("Embedding model version").nullable().optional(),
43
43
  vector: zod.z.array(zod.z.number()).describe("Numerical embedding vector").nullable().optional()
44
- }).describe("Spector vector embedding representation");
44
+ }).passthrough().describe("Spector vector embedding representation");
45
45
  const SemanticscholarSearchPapers_OpenAccessPdfInfoSchema = zod.z.object({
46
46
  url: zod.z.string().describe("URL to access the PDF").nullable().optional(),
47
47
  status: zod.z.string().describe("Open access status type").nullable().optional(),
48
48
  license: zod.z.string().describe("License information").nullable().optional(),
49
49
  disclaimer: zod.z.string().describe("Legal disclaimer if applicable").nullable().optional()
50
- }).describe("Open access PDF information");
50
+ }).passthrough().describe("Open access PDF information");
51
51
  const SemanticscholarSearchPapers_S2FieldOfStudyInfoSchema = zod.z.object({
52
52
  source: zod.z.string().describe("Classification source (Semantic Scholar or external)").nullable().optional(),
53
53
  category: zod.z.string().describe("Field classification category").nullable().optional()
54
- }).describe("Semantic Scholar field of study classification");
54
+ }).passthrough().describe("Semantic Scholar field of study classification");
55
55
  const SemanticscholarSearchPapers_PublicationVenueInfoSchema = zod.z.object({
56
56
  id: zod.z.string().describe("Unique venue identifier").nullable().optional(),
57
57
  url: zod.z.string().describe("Venue website URL").nullable().optional(),
58
58
  name: zod.z.string().describe("Venue name").nullable().optional(),
59
59
  type: zod.z.string().describe("Venue type (conference/journal)").nullable().optional(),
60
60
  alternate_names: zod.z.array(zod.z.string()).describe("Alternative names for the venue").nullable().optional()
61
- }).describe("Detailed publication venue information");
61
+ }).passthrough().describe("Detailed publication venue information");
62
62
  const SemanticscholarSearchPapers_PaperInfoSchema = zod.z.object({
63
63
  url: zod.z.string().describe("URL to paper on Semantic Scholar website").nullable().optional(),
64
64
  tldr: SemanticscholarSearchPapers_TldrInfoSchema.nullable().optional(),
@@ -73,12 +73,12 @@ const SemanticscholarSearchPapers_PaperInfoSchema = zod.z.object({
73
73
  citations: zod.z.array(SemanticscholarSearchPapers_CitationReferenceInfoSchema).describe("Papers citing this paper").nullable().optional(),
74
74
  embedding: SemanticscholarSearchPapers_EmbeddingInfoSchema.nullable().optional(),
75
75
  references: zod.z.array(SemanticscholarSearchPapers_CitationReferenceInfoSchema).describe("Papers referenced by this paper").nullable().optional(),
76
- externalIds: zod.z.object({}).describe("External identifiers (ArXiv, DOI, PubMed, etc.)").nullable().optional(),
76
+ externalIds: zod.z.record(zod.z.string(), zod.z.unknown()).describe("External identifiers (ArXiv, DOI, PubMed, etc.)").nullable().optional(),
77
77
  isOpenAccess: zod.z.boolean().describe("Whether paper is open access").nullable().optional(),
78
78
  citationCount: zod.z.number().int().describe("Number of papers citing this paper").nullable().optional(),
79
79
  fieldsOfStudy: zod.z.array(zod.z.string()).describe("High-level academic field classifications").nullable().optional(),
80
80
  openAccessPdf: SemanticscholarSearchPapers_OpenAccessPdfInfoSchema.nullable().optional(),
81
- citationStyles: zod.z.object({}).describe("Citation formats (BibTeX, etc.)").nullable().optional(),
81
+ citationStyles: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Citation formats (BibTeX, etc.)").nullable().optional(),
82
82
  referenceCount: zod.z.number().int().describe("Number of papers this paper references").nullable().optional(),
83
83
  publicationDate: zod.z.string().describe("Publication date in YYYY-MM-DD format").nullable().optional(),
84
84
  s2FieldsOfStudy: zod.z.array(SemanticscholarSearchPapers_S2FieldOfStudyInfoSchema).describe("Detailed field classifications with sources").nullable().optional(),
@@ -86,13 +86,13 @@ const SemanticscholarSearchPapers_PaperInfoSchema = zod.z.object({
86
86
  publicationVenue: SemanticscholarSearchPapers_PublicationVenueInfoSchema.nullable().optional(),
87
87
  textAvailability: zod.z.string().describe("Text availability status (fulltext, abstract, none)").nullable().optional(),
88
88
  influentialCitationCount: zod.z.number().int().describe("Number of influential citations").nullable().optional()
89
- }).describe("Paper information returned in search results");
89
+ }).passthrough().describe("Paper information returned in search results");
90
90
  const SemanticscholarSearchPapersOutput = zod.z.object({
91
91
  data: zod.z.array(SemanticscholarSearchPapers_PaperInfoSchema).describe("List of papers matching the search criteria"),
92
92
  next: zod.z.number().int().describe("Starting position for the next batch. Absent if no more data exists").nullable().optional(),
93
93
  total: zod.z.number().int().describe("Approximate number of matching search results").nullable(),
94
94
  offset: zod.z.number().int().describe("Starting position for this batch of results").nullable()
95
- }).describe("Response schema for paper search");
95
+ }).passthrough().describe("Response schema for paper search");
96
96
  const semanticscholarSearchPapers = require_action.action("SEMANTICSCHOLAR_SEARCH_PAPERS", {
97
97
  slug: "semanticscholar-search-papers",
98
98
  name: "Search papers by relevance",
@@ -1 +1 @@
1
- {"version":3,"file":"search-papers.cjs","names":["z","action"],"sources":["../../src/actions/search-papers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarSearchPapersInput = z.object({\n year: z.string().describe(\"Filter by publication year or year range (inclusive). Examples: '2019' (in 2019), '2016-2020' (from 2016 to 2020), '2010-' (2010 or after), '-2015' (2015 or before)\").optional(),\n limit: z.number().int().default(100).describe(\"Maximum number of results to return per request. Must be between 1 and 100\").optional(),\n query: z.string().describe(\"Plain-text search query string. No special query syntax is supported. Use spaces instead of hyphens in search terms. Example: 'machine learning' or 'neural networks'\"),\n venue: z.string().describe(\"Comma-separated list of publication venues to filter by. Can use full names or ISO4 abbreviations. Examples: 'Nature', 'New England Journal of Medicine', 'N. Engl. J. Med.', 'Nature,Radiology'\").optional(),\n fields: z.string().describe(\"Comma-separated list of fields to return. paperId is always returned. If omitted, only paperId and title are returned. Available fields: title, abstract, year, venue, publicationDate, authors, citationCount, referenceCount, influentialCitationCount, isOpenAccess, openAccessPdf, fieldsOfStudy, s2FieldsOfStudy, publicationTypes, publicationVenue, journal, externalIds, url, embedding, citations, references, tldr. Use dot notation for subfields (e.g., 'authors.authorId,authors.name', 'citations.title', 'embedding.specter_v2'). Examples: 'title,abstract,year' or 'title,authors,citationCount,url'\").optional(),\n offset: z.number().int().default(0).describe(\"Pagination offset: number of results to skip before returning data. Used with limit for pagination\").optional(),\n fieldsOfStudy: z.string().describe(\"Comma-separated list of fields of study to filter by. Available fields: Computer Science, Medicine, Chemistry, Biology, Materials Science, Physics, Geology, Psychology, Art, History, Geography, Sociology, Business, Political Science, Economics, Philosophy, Mathematics, Engineering, Environmental Science, Agricultural and Food Sciences, Education, Law, Linguistics. Example: 'Physics,Mathematics'\").optional(),\n openAccessPdf: z.string().describe(\"Set to any value (e.g., '') to restrict results to papers with a public PDF available\").optional(),\n minCitationCount: z.number().int().describe(\"Minimum number of citations required. Restricts results to papers with at least this many citations. Must be non-negative\").optional(),\n publicationTypes: z.string().describe(\"Comma-separated list of publication types to filter by. Available types: Review, JournalArticle, CaseReport, ClinicalTrial, Conference, Dataset, Editorial, LettersAndComments, MetaAnalysis, News, Study, Book, BookSection. Example: 'Review,JournalArticle'\").optional(),\n publicationDateOrYear: z.string().describe(\"Filter by publication date or year range (inclusive). Format: '<startDate>:<endDate>' with dates in YYYY-MM-DD format. Each term is optional for open-ended ranges. Prefixes supported (e.g., '2020-06' for June 2020). Examples: '2019-03-05' (specific date), '2019-03' (March 2019), '2019' (entire 2019), '2016-03-05:2020-06-06' (date range), '1981-08-25:' (on or after), ':2015-01' (before or on), '2015:2020' (year range)\").optional(),\n}).describe(\"Request schema for searching papers by relevance\");\nconst SemanticscholarSearchPapers_TldrInfoSchema = z.object({\n text: z.string().describe(\"Summary text\").nullable().optional(),\n model: z.string().describe(\"Model version used for summary generation\").nullable().optional(),\n}).describe(\"AI-generated summary (TLDR)\");\nconst SemanticscholarSearchPapers_AuthorInfoSchema = z.object({\n url: z.string().describe(\"Author's Semantic Scholar profile URL\").nullable().optional(),\n name: z.string().describe(\"Author name\").nullable().optional(),\n hIndex: z.number().int().describe(\"h-index metric\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar author ID\").nullable().optional(),\n homepage: z.string().describe(\"Author's personal website\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total number of papers authored\").nullable().optional(),\n externalIds: z.object({}).describe(\"External identifiers (ORCID, DBLP)\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Organizational affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations received\").nullable().optional(),\n}).describe(\"Paper author information\");\nconst SemanticscholarSearchPapers_JournalInfoSchema = z.object({\n name: z.string().describe(\"Journal name\").nullable().optional(),\n pages: z.string().describe(\"Page range\").nullable().optional(),\n volume: z.string().describe(\"Volume number\").nullable().optional(),\n}).describe(\"Journal publication metadata\");\nconst SemanticscholarSearchPapers_CitationReferenceInfoSchema = z.object({\n title: z.string().describe(\"Paper title\").nullable().optional(),\n paperId: z.string().describe(\"Paper ID\").nullable().optional(),\n}).describe(\"Citation or reference paper information\");\nconst SemanticscholarSearchPapers_EmbeddingInfoSchema = z.object({\n model: z.string().describe(\"Embedding model version\").nullable().optional(),\n vector: z.array(z.number()).describe(\"Numerical embedding vector\").nullable().optional(),\n}).describe(\"Spector vector embedding representation\");\nconst SemanticscholarSearchPapers_OpenAccessPdfInfoSchema = z.object({\n url: z.string().describe(\"URL to access the PDF\").nullable().optional(),\n status: z.string().describe(\"Open access status type\").nullable().optional(),\n license: z.string().describe(\"License information\").nullable().optional(),\n disclaimer: z.string().describe(\"Legal disclaimer if applicable\").nullable().optional(),\n}).describe(\"Open access PDF information\");\nconst SemanticscholarSearchPapers_S2FieldOfStudyInfoSchema = z.object({\n source: z.string().describe(\"Classification source (Semantic Scholar or external)\").nullable().optional(),\n category: z.string().describe(\"Field classification category\").nullable().optional(),\n}).describe(\"Semantic Scholar field of study classification\");\nconst SemanticscholarSearchPapers_PublicationVenueInfoSchema = z.object({\n id: z.string().describe(\"Unique venue identifier\").nullable().optional(),\n url: z.string().describe(\"Venue website URL\").nullable().optional(),\n name: z.string().describe(\"Venue name\").nullable().optional(),\n type: z.string().describe(\"Venue type (conference/journal)\").nullable().optional(),\n alternate_names: z.array(z.string()).describe(\"Alternative names for the venue\").nullable().optional(),\n}).describe(\"Detailed publication venue information\");\nconst SemanticscholarSearchPapers_PaperInfoSchema = z.object({\n url: z.string().describe(\"URL to paper on Semantic Scholar website\").nullable().optional(),\n tldr: SemanticscholarSearchPapers_TldrInfoSchema.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(SemanticscholarSearchPapers_AuthorInfoSchema).describe(\"Paper authors\").nullable().optional(),\n journal: SemanticscholarSearchPapers_JournalInfoSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar's primary unique paper identifier\").nullable(),\n abstract: z.string().describe(\"Paper abstract (may be missing for legal reasons)\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar's secondary unique identifier\").nullable().optional(),\n citations: z.array(SemanticscholarSearchPapers_CitationReferenceInfoSchema).describe(\"Papers citing this paper\").nullable().optional(),\n embedding: SemanticscholarSearchPapers_EmbeddingInfoSchema.nullable().optional(),\n references: z.array(SemanticscholarSearchPapers_CitationReferenceInfoSchema).describe(\"Papers referenced by this paper\").nullable().optional(),\n externalIds: z.object({}).describe(\"External identifiers (ArXiv, DOI, PubMed, etc.)\").nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether paper is open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Number of papers citing this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"High-level academic field classifications\").nullable().optional(),\n openAccessPdf: SemanticscholarSearchPapers_OpenAccessPdfInfoSchema.nullable().optional(),\n citationStyles: z.object({}).describe(\"Citation formats (BibTeX, etc.)\").nullable().optional(),\n referenceCount: z.number().int().describe(\"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(SemanticscholarSearchPapers_S2FieldOfStudyInfoSchema).describe(\"Detailed field classifications with sources\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Publication type(s)\").nullable().optional(),\n publicationVenue: SemanticscholarSearchPapers_PublicationVenueInfoSchema.nullable().optional(),\n textAvailability: z.string().describe(\"Text availability status (fulltext, abstract, none)\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of influential citations\").nullable().optional(),\n}).describe(\"Paper information returned in search results\");\nexport const SemanticscholarSearchPapersOutput = z.object({\n data: z.array(SemanticscholarSearchPapers_PaperInfoSchema).describe(\"List of papers matching the search criteria\"),\n next: z.number().int().describe(\"Starting position for the next batch. Absent if no more data exists\").nullable().optional(),\n total: z.number().int().describe(\"Approximate number of matching search results\").nullable(),\n offset: z.number().int().describe(\"Starting position for this batch of results\").nullable(),\n}).describe(\"Response schema for paper search\");\n\nexport const semanticscholarSearchPapers = action(\"SEMANTICSCHOLAR_SEARCH_PAPERS\", {\n slug: \"semanticscholar-search-papers\",\n name: \"Search papers by relevance\",\n description: \"Tool to search for academic papers by relevance in the Semantic Scholar database. Use when searching for papers on specific topics, keywords, or research areas. Returns papers ordered by relevance score with support for extensive filtering by publication type, date, venue, field of study, and citation metrics.\",\n input: SemanticscholarSearchPapersInput,\n output: SemanticscholarSearchPapersOutput,\n});\n"],"mappings":";;;AAIA,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,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAE9C,MAAa,8BAA8BC,eAAAA,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"search-papers.cjs","names":["z","action"],"sources":["../../src/actions/search-papers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarSearchPapersInput = z.object({\n year: z.string().describe(\"Filter by publication year or year range (inclusive). Examples: '2019' (in 2019), '2016-2020' (from 2016 to 2020), '2010-' (2010 or after), '-2015' (2015 or before)\").optional(),\n limit: z.number().int().default(100).describe(\"Maximum number of results to return per request. Must be between 1 and 100\").optional(),\n query: z.string().describe(\"Plain-text search query string. No special query syntax is supported. Use spaces instead of hyphens in search terms. Example: 'machine learning' or 'neural networks'\"),\n venue: z.string().describe(\"Comma-separated list of publication venues to filter by. Can use full names or ISO4 abbreviations. Examples: 'Nature', 'New England Journal of Medicine', 'N. Engl. J. Med.', 'Nature,Radiology'\").optional(),\n fields: z.string().describe(\"Comma-separated list of fields to return. paperId is always returned. If omitted, only paperId and title are returned. Available fields: title, abstract, year, venue, publicationDate, authors, citationCount, referenceCount, influentialCitationCount, isOpenAccess, openAccessPdf, fieldsOfStudy, s2FieldsOfStudy, publicationTypes, publicationVenue, journal, externalIds, url, embedding, citations, references, tldr. Use dot notation for subfields (e.g., 'authors.authorId,authors.name', 'citations.title', 'embedding.specter_v2'). Examples: 'title,abstract,year' or 'title,authors,citationCount,url'\").optional(),\n offset: z.number().int().default(0).describe(\"Pagination offset: number of results to skip before returning data. Used with limit for pagination\").optional(),\n fieldsOfStudy: z.string().describe(\"Comma-separated list of fields of study to filter by. Available fields: Computer Science, Medicine, Chemistry, Biology, Materials Science, Physics, Geology, Psychology, Art, History, Geography, Sociology, Business, Political Science, Economics, Philosophy, Mathematics, Engineering, Environmental Science, Agricultural and Food Sciences, Education, Law, Linguistics. Example: 'Physics,Mathematics'\").optional(),\n openAccessPdf: z.string().describe(\"Set to any value (e.g., '') to restrict results to papers with a public PDF available\").optional(),\n minCitationCount: z.number().int().describe(\"Minimum number of citations required. Restricts results to papers with at least this many citations. Must be non-negative\").optional(),\n publicationTypes: z.string().describe(\"Comma-separated list of publication types to filter by. Available types: Review, JournalArticle, CaseReport, ClinicalTrial, Conference, Dataset, Editorial, LettersAndComments, MetaAnalysis, News, Study, Book, BookSection. Example: 'Review,JournalArticle'\").optional(),\n publicationDateOrYear: z.string().describe(\"Filter by publication date or year range (inclusive). Format: '<startDate>:<endDate>' with dates in YYYY-MM-DD format. Each term is optional for open-ended ranges. Prefixes supported (e.g., '2020-06' for June 2020). Examples: '2019-03-05' (specific date), '2019-03' (March 2019), '2019' (entire 2019), '2016-03-05:2020-06-06' (date range), '1981-08-25:' (on or after), ':2015-01' (before or on), '2015:2020' (year range)\").optional(),\n}).describe(\"Request schema for searching papers by relevance\");\nconst SemanticscholarSearchPapers_TldrInfoSchema = z.object({\n text: z.string().describe(\"Summary text\").nullable().optional(),\n model: z.string().describe(\"Model version used for summary generation\").nullable().optional(),\n}).passthrough().describe(\"AI-generated summary (TLDR)\");\nconst SemanticscholarSearchPapers_AuthorInfoSchema = z.object({\n url: z.string().describe(\"Author's Semantic Scholar profile URL\").nullable().optional(),\n name: z.string().describe(\"Author name\").nullable().optional(),\n hIndex: z.number().int().describe(\"h-index metric\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar author ID\").nullable().optional(),\n homepage: z.string().describe(\"Author's personal website\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total number of papers authored\").nullable().optional(),\n externalIds: z.record(z.string(), z.unknown()).describe(\"External identifiers (ORCID, DBLP)\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Organizational affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations received\").nullable().optional(),\n}).passthrough().describe(\"Paper author information\");\nconst SemanticscholarSearchPapers_JournalInfoSchema = z.object({\n name: z.string().describe(\"Journal name\").nullable().optional(),\n pages: z.string().describe(\"Page range\").nullable().optional(),\n volume: z.string().describe(\"Volume number\").nullable().optional(),\n}).passthrough().describe(\"Journal publication metadata\");\nconst SemanticscholarSearchPapers_CitationReferenceInfoSchema = z.object({\n title: z.string().describe(\"Paper title\").nullable().optional(),\n paperId: z.string().describe(\"Paper ID\").nullable().optional(),\n}).passthrough().describe(\"Citation or reference paper information\");\nconst SemanticscholarSearchPapers_EmbeddingInfoSchema = z.object({\n model: z.string().describe(\"Embedding model version\").nullable().optional(),\n vector: z.array(z.number()).describe(\"Numerical embedding vector\").nullable().optional(),\n}).passthrough().describe(\"Spector vector embedding representation\");\nconst SemanticscholarSearchPapers_OpenAccessPdfInfoSchema = z.object({\n url: z.string().describe(\"URL to access the PDF\").nullable().optional(),\n status: z.string().describe(\"Open access status type\").nullable().optional(),\n license: z.string().describe(\"License information\").nullable().optional(),\n disclaimer: z.string().describe(\"Legal disclaimer if applicable\").nullable().optional(),\n}).passthrough().describe(\"Open access PDF information\");\nconst SemanticscholarSearchPapers_S2FieldOfStudyInfoSchema = z.object({\n source: z.string().describe(\"Classification source (Semantic Scholar or external)\").nullable().optional(),\n category: z.string().describe(\"Field classification category\").nullable().optional(),\n}).passthrough().describe(\"Semantic Scholar field of study classification\");\nconst SemanticscholarSearchPapers_PublicationVenueInfoSchema = z.object({\n id: z.string().describe(\"Unique venue identifier\").nullable().optional(),\n url: z.string().describe(\"Venue website URL\").nullable().optional(),\n name: z.string().describe(\"Venue name\").nullable().optional(),\n type: z.string().describe(\"Venue type (conference/journal)\").nullable().optional(),\n alternate_names: z.array(z.string()).describe(\"Alternative names for the venue\").nullable().optional(),\n}).passthrough().describe(\"Detailed publication venue information\");\nconst SemanticscholarSearchPapers_PaperInfoSchema = z.object({\n url: z.string().describe(\"URL to paper on Semantic Scholar website\").nullable().optional(),\n tldr: SemanticscholarSearchPapers_TldrInfoSchema.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(SemanticscholarSearchPapers_AuthorInfoSchema).describe(\"Paper authors\").nullable().optional(),\n journal: SemanticscholarSearchPapers_JournalInfoSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar's primary unique paper identifier\").nullable(),\n abstract: z.string().describe(\"Paper abstract (may be missing for legal reasons)\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar's secondary unique identifier\").nullable().optional(),\n citations: z.array(SemanticscholarSearchPapers_CitationReferenceInfoSchema).describe(\"Papers citing this paper\").nullable().optional(),\n embedding: SemanticscholarSearchPapers_EmbeddingInfoSchema.nullable().optional(),\n references: z.array(SemanticscholarSearchPapers_CitationReferenceInfoSchema).describe(\"Papers referenced by this paper\").nullable().optional(),\n externalIds: z.record(z.string(), z.unknown()).describe(\"External identifiers (ArXiv, DOI, PubMed, etc.)\").nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether paper is open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Number of papers citing this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"High-level academic field classifications\").nullable().optional(),\n openAccessPdf: SemanticscholarSearchPapers_OpenAccessPdfInfoSchema.nullable().optional(),\n citationStyles: z.record(z.string(), z.unknown()).describe(\"Citation formats (BibTeX, etc.)\").nullable().optional(),\n referenceCount: z.number().int().describe(\"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(SemanticscholarSearchPapers_S2FieldOfStudyInfoSchema).describe(\"Detailed field classifications with sources\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Publication type(s)\").nullable().optional(),\n publicationVenue: SemanticscholarSearchPapers_PublicationVenueInfoSchema.nullable().optional(),\n textAvailability: z.string().describe(\"Text availability status (fulltext, abstract, none)\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of influential citations\").nullable().optional(),\n}).passthrough().describe(\"Paper information returned in search results\");\nexport const SemanticscholarSearchPapersOutput = z.object({\n data: z.array(SemanticscholarSearchPapers_PaperInfoSchema).describe(\"List of papers matching the search criteria\"),\n next: z.number().int().describe(\"Starting position for the next batch. Absent if no more data exists\").nullable().optional(),\n total: z.number().int().describe(\"Approximate number of matching search results\").nullable(),\n offset: z.number().int().describe(\"Starting position for this batch of results\").nullable(),\n}).passthrough().describe(\"Response schema for paper search\");\n\nexport const semanticscholarSearchPapers = action(\"SEMANTICSCHOLAR_SEARCH_PAPERS\", {\n slug: \"semanticscholar-search-papers\",\n name: \"Search papers by relevance\",\n description: \"Tool to search for academic papers by relevance in the Semantic Scholar database. Use when searching for papers on specific topics, keywords, or research areas. Returns papers ordered by relevance score with support for extensive filtering by publication type, date, venue, field of study, and citation metrics.\",\n input: SemanticscholarSearchPapersInput,\n output: SemanticscholarSearchPapersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sKAAsK,CAAC,CAAC,SAAS;CAC3M,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uKAAuK;CAClM,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,CAAC,CAAC,SAAS;CACxO,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,ulBAAulB,CAAC,CAAC,SAAS;CAC9nB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAA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M;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -20,7 +20,7 @@ declare const SemanticscholarSearchPapersOutput: z.ZodObject<{
20
20
  tldr: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
21
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>>>;
23
+ }, z.core.$loose>>>;
24
24
  year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -31,31 +31,31 @@ declare const SemanticscholarSearchPapersOutput: z.ZodObject<{
31
31
  authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  paperCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
- externalIds: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
34
+ externalIds: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
35
35
  affiliations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
36
36
  citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
- }, z.core.$strip>>>>;
37
+ }, z.core.$loose>>>>;
38
38
  journal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
39
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  pages: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  volume: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- }, z.core.$strip>>>;
42
+ }, z.core.$loose>>>;
43
43
  paperId: z.ZodNullable<z.ZodString>;
44
44
  abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  corpusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
46
  citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
47
47
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  paperId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
- }, z.core.$strip>>>>;
49
+ }, z.core.$loose>>>>;
50
50
  embedding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
51
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
52
  vector: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
53
- }, z.core.$strip>>>;
53
+ }, z.core.$loose>>>;
54
54
  references: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
55
55
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
56
  paperId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
- }, z.core.$strip>>>>;
58
- externalIds: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
57
+ }, z.core.$loose>>>>;
58
+ externalIds: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
59
59
  isOpenAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
60
60
  citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
61
61
  fieldsOfStudy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -64,14 +64,14 @@ declare const SemanticscholarSearchPapersOutput: z.ZodObject<{
64
64
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
65
  license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
66
  disclaimer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
- }, z.core.$strip>>>;
68
- citationStyles: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
67
+ }, z.core.$loose>>>;
68
+ citationStyles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
69
69
  referenceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
70
70
  publicationDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
71
  s2FieldsOfStudy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
72
72
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
73
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
- }, z.core.$strip>>>>;
74
+ }, z.core.$loose>>>>;
75
75
  publicationTypes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
76
76
  publicationVenue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
77
77
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -79,14 +79,14 @@ declare const SemanticscholarSearchPapersOutput: z.ZodObject<{
79
79
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
80
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
81
  alternate_names: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
82
- }, z.core.$strip>>>;
82
+ }, z.core.$loose>>>;
83
83
  textAvailability: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
84
  influentialCitationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
85
- }, z.core.$strip>>;
85
+ }, z.core.$loose>>;
86
86
  next: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
87
87
  total: z.ZodNullable<z.ZodNumber>;
88
88
  offset: z.ZodNullable<z.ZodNumber>;
89
- }, z.core.$strip>;
89
+ }, z.core.$loose>;
90
90
  declare const semanticscholarSearchPapers: import("@keystrokehq/action").WorkflowActionDefinition<{
91
91
  query: string;
92
92
  year?: string | undefined;
@@ -20,7 +20,7 @@ declare const SemanticscholarSearchPapersOutput: z.ZodObject<{
20
20
  tldr: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
21
  text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>>>;
23
+ }, z.core.$loose>>>;
24
24
  year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
25
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -31,31 +31,31 @@ declare const SemanticscholarSearchPapersOutput: z.ZodObject<{
31
31
  authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  paperCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
- externalIds: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
34
+ externalIds: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
35
35
  affiliations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
36
36
  citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
37
- }, z.core.$strip>>>>;
37
+ }, z.core.$loose>>>>;
38
38
  journal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
39
39
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  pages: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
41
  volume: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- }, z.core.$strip>>>;
42
+ }, z.core.$loose>>>;
43
43
  paperId: z.ZodNullable<z.ZodString>;
44
44
  abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
45
  corpusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
46
  citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
47
47
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
48
  paperId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
- }, z.core.$strip>>>>;
49
+ }, z.core.$loose>>>>;
50
50
  embedding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
51
51
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
52
  vector: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
53
- }, z.core.$strip>>>;
53
+ }, z.core.$loose>>>;
54
54
  references: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
55
55
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
56
  paperId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
- }, z.core.$strip>>>>;
58
- externalIds: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
57
+ }, z.core.$loose>>>>;
58
+ externalIds: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
59
59
  isOpenAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
60
60
  citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
61
61
  fieldsOfStudy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
@@ -64,14 +64,14 @@ declare const SemanticscholarSearchPapersOutput: z.ZodObject<{
64
64
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
65
  license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
66
  disclaimer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
- }, z.core.$strip>>>;
68
- citationStyles: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
67
+ }, z.core.$loose>>>;
68
+ citationStyles: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
69
69
  referenceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
70
70
  publicationDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
71
  s2FieldsOfStudy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
72
72
  source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
73
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
- }, z.core.$strip>>>>;
74
+ }, z.core.$loose>>>>;
75
75
  publicationTypes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
76
76
  publicationVenue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
77
77
  id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -79,14 +79,14 @@ declare const SemanticscholarSearchPapersOutput: z.ZodObject<{
79
79
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
80
  type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
81
81
  alternate_names: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
82
- }, z.core.$strip>>>;
82
+ }, z.core.$loose>>>;
83
83
  textAvailability: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
84
  influentialCitationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
85
- }, z.core.$strip>>;
85
+ }, z.core.$loose>>;
86
86
  next: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
87
87
  total: z.ZodNullable<z.ZodNumber>;
88
88
  offset: z.ZodNullable<z.ZodNumber>;
89
- }, z.core.$strip>;
89
+ }, z.core.$loose>;
90
90
  declare const semanticscholarSearchPapers: import("@keystrokehq/action").WorkflowActionDefinition<{
91
91
  query: string;
92
92
  year?: string | undefined;