@keystrokehq/semanticscholar 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-authors.cjs +1 -0
- package/dist/actions/details-about-a-paper-s-authors.cjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-authors.d.cts +3 -18
- package/dist/actions/details-about-a-paper-s-authors.d.cts.map +1 -1
- package/dist/actions/details-about-a-paper-s-authors.d.mts +3 -18
- package/dist/actions/details-about-a-paper-s-authors.d.mts.map +1 -1
- package/dist/actions/details-about-a-paper-s-authors.mjs +1 -0
- package/dist/actions/details-about-a-paper-s-authors.mjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-citations.cjs +1 -0
- package/dist/actions/details-about-a-paper-s-citations.cjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-citations.d.cts +3 -18
- package/dist/actions/details-about-a-paper-s-citations.d.cts.map +1 -1
- package/dist/actions/details-about-a-paper-s-citations.d.mts +3 -18
- package/dist/actions/details-about-a-paper-s-citations.d.mts.map +1 -1
- package/dist/actions/details-about-a-paper-s-citations.mjs +1 -0
- package/dist/actions/details-about-a-paper-s-citations.mjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-references.cjs +1 -0
- package/dist/actions/details-about-a-paper-s-references.cjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-references.d.cts +3 -18
- package/dist/actions/details-about-a-paper-s-references.d.cts.map +1 -1
- package/dist/actions/details-about-a-paper-s-references.d.mts +3 -18
- package/dist/actions/details-about-a-paper-s-references.d.mts.map +1 -1
- package/dist/actions/details-about-a-paper-s-references.mjs +1 -0
- package/dist/actions/details-about-a-paper-s-references.mjs.map +1 -1
- package/dist/actions/details-about-a-paper.cjs +1 -0
- package/dist/actions/details-about-a-paper.cjs.map +1 -1
- package/dist/actions/details-about-a-paper.d.cts +3 -16
- package/dist/actions/details-about-a-paper.d.cts.map +1 -1
- package/dist/actions/details-about-a-paper.d.mts +3 -16
- package/dist/actions/details-about-a-paper.d.mts.map +1 -1
- package/dist/actions/details-about-a-paper.mjs +1 -0
- package/dist/actions/details-about-a-paper.mjs.map +1 -1
- package/dist/actions/details-about-an-author-s-papers.cjs +1 -0
- package/dist/actions/details-about-an-author-s-papers.cjs.map +1 -1
- package/dist/actions/details-about-an-author-s-papers.d.cts +3 -18
- package/dist/actions/details-about-an-author-s-papers.d.cts.map +1 -1
- package/dist/actions/details-about-an-author-s-papers.d.mts +3 -18
- package/dist/actions/details-about-an-author-s-papers.d.mts.map +1 -1
- package/dist/actions/details-about-an-author-s-papers.mjs +1 -0
- package/dist/actions/details-about-an-author-s-papers.mjs.map +1 -1
- package/dist/actions/details-about-an-author.cjs +1 -0
- package/dist/actions/details-about-an-author.cjs.map +1 -1
- package/dist/actions/details-about-an-author.d.cts +3 -16
- package/dist/actions/details-about-an-author.d.cts.map +1 -1
- package/dist/actions/details-about-an-author.d.mts +3 -16
- package/dist/actions/details-about-an-author.d.mts.map +1 -1
- package/dist/actions/details-about-an-author.mjs +1 -0
- package/dist/actions/details-about-an-author.mjs.map +1 -1
- package/dist/actions/get-dataset-diffs.cjs +1 -0
- package/dist/actions/get-dataset-diffs.cjs.map +1 -1
- package/dist/actions/get-dataset-diffs.d.cts +3 -17
- package/dist/actions/get-dataset-diffs.d.cts.map +1 -1
- package/dist/actions/get-dataset-diffs.d.mts +3 -17
- package/dist/actions/get-dataset-diffs.d.mts.map +1 -1
- package/dist/actions/get-dataset-diffs.mjs +1 -0
- package/dist/actions/get-dataset-diffs.mjs.map +1 -1
- package/dist/actions/get-dataset.cjs +1 -0
- package/dist/actions/get-dataset.cjs.map +1 -1
- package/dist/actions/get-dataset.d.cts +3 -16
- package/dist/actions/get-dataset.d.cts.map +1 -1
- package/dist/actions/get-dataset.d.mts +3 -16
- package/dist/actions/get-dataset.d.mts.map +1 -1
- package/dist/actions/get-dataset.mjs +1 -0
- package/dist/actions/get-dataset.mjs.map +1 -1
- package/dist/actions/get-details-for-multiple-authors-at-once.cjs +1 -0
- package/dist/actions/get-details-for-multiple-authors-at-once.cjs.map +1 -1
- package/dist/actions/get-details-for-multiple-authors-at-once.d.cts +3 -16
- package/dist/actions/get-details-for-multiple-authors-at-once.d.cts.map +1 -1
- package/dist/actions/get-details-for-multiple-authors-at-once.d.mts +3 -16
- package/dist/actions/get-details-for-multiple-authors-at-once.d.mts.map +1 -1
- package/dist/actions/get-details-for-multiple-authors-at-once.mjs +1 -0
- package/dist/actions/get-details-for-multiple-authors-at-once.mjs.map +1 -1
- package/dist/actions/get-details-for-multiple-papers-at-once.cjs +1 -0
- package/dist/actions/get-details-for-multiple-papers-at-once.cjs.map +1 -1
- package/dist/actions/get-details-for-multiple-papers-at-once.d.cts +3 -16
- package/dist/actions/get-details-for-multiple-papers-at-once.d.cts.map +1 -1
- package/dist/actions/get-details-for-multiple-papers-at-once.d.mts +3 -16
- package/dist/actions/get-details-for-multiple-papers-at-once.d.mts.map +1 -1
- package/dist/actions/get-details-for-multiple-papers-at-once.mjs +1 -0
- package/dist/actions/get-details-for-multiple-papers-at-once.mjs.map +1 -1
- package/dist/actions/get-paper-recommendations.cjs +1 -0
- package/dist/actions/get-paper-recommendations.cjs.map +1 -1
- package/dist/actions/get-paper-recommendations.d.cts +3 -18
- package/dist/actions/get-paper-recommendations.d.cts.map +1 -1
- package/dist/actions/get-paper-recommendations.d.mts +3 -18
- package/dist/actions/get-paper-recommendations.d.mts.map +1 -1
- package/dist/actions/get-paper-recommendations.mjs +1 -0
- package/dist/actions/get-paper-recommendations.mjs.map +1 -1
- package/dist/actions/get-recommendations-for-paper.cjs +1 -0
- package/dist/actions/get-recommendations-for-paper.cjs.map +1 -1
- package/dist/actions/get-recommendations-for-paper.d.cts +3 -18
- package/dist/actions/get-recommendations-for-paper.d.cts.map +1 -1
- package/dist/actions/get-recommendations-for-paper.d.mts +3 -18
- package/dist/actions/get-recommendations-for-paper.d.mts.map +1 -1
- package/dist/actions/get-recommendations-for-paper.mjs +1 -0
- package/dist/actions/get-recommendations-for-paper.mjs.map +1 -1
- package/dist/actions/get-release.cjs +1 -0
- package/dist/actions/get-release.cjs.map +1 -1
- package/dist/actions/get-release.d.cts +3 -15
- package/dist/actions/get-release.d.cts.map +1 -1
- package/dist/actions/get-release.d.mts +3 -15
- package/dist/actions/get-release.d.mts.map +1 -1
- package/dist/actions/get-release.mjs +1 -0
- package/dist/actions/get-release.mjs.map +1 -1
- package/dist/actions/list-releases.cjs +1 -0
- package/dist/actions/list-releases.cjs.map +1 -1
- package/dist/actions/list-releases.d.cts +3 -13
- package/dist/actions/list-releases.d.cts.map +1 -1
- package/dist/actions/list-releases.d.mts +3 -13
- package/dist/actions/list-releases.d.mts.map +1 -1
- package/dist/actions/list-releases.mjs +1 -0
- package/dist/actions/list-releases.mjs.map +1 -1
- package/dist/actions/paper-title-search.cjs +1 -0
- package/dist/actions/paper-title-search.cjs.map +1 -1
- package/dist/actions/paper-title-search.d.cts +3 -23
- package/dist/actions/paper-title-search.d.cts.map +1 -1
- package/dist/actions/paper-title-search.d.mts +3 -23
- package/dist/actions/paper-title-search.d.mts.map +1 -1
- package/dist/actions/paper-title-search.mjs +1 -0
- package/dist/actions/paper-title-search.mjs.map +1 -1
- package/dist/actions/search-bulk-papers.cjs +1 -0
- package/dist/actions/search-bulk-papers.cjs.map +1 -1
- package/dist/actions/search-bulk-papers.d.cts +3 -25
- package/dist/actions/search-bulk-papers.d.cts.map +1 -1
- package/dist/actions/search-bulk-papers.d.mts +3 -25
- package/dist/actions/search-bulk-papers.d.mts.map +1 -1
- package/dist/actions/search-bulk-papers.mjs +1 -0
- package/dist/actions/search-bulk-papers.mjs.map +1 -1
- package/dist/actions/search-for-authors-by-name.cjs +1 -0
- package/dist/actions/search-for-authors-by-name.cjs.map +1 -1
- package/dist/actions/search-for-authors-by-name.d.cts +3 -18
- package/dist/actions/search-for-authors-by-name.d.cts.map +1 -1
- package/dist/actions/search-for-authors-by-name.d.mts +3 -18
- package/dist/actions/search-for-authors-by-name.d.mts.map +1 -1
- package/dist/actions/search-for-authors-by-name.mjs +1 -0
- package/dist/actions/search-for-authors-by-name.mjs.map +1 -1
- package/dist/actions/search-papers.cjs +1 -0
- package/dist/actions/search-papers.cjs.map +1 -1
- package/dist/actions/search-papers.d.cts +3 -25
- package/dist/actions/search-papers.d.cts.map +1 -1
- package/dist/actions/search-papers.d.mts +3 -25
- package/dist/actions/search-papers.d.mts.map +1 -1
- package/dist/actions/search-papers.mjs +1 -0
- package/dist/actions/search-papers.mjs.map +1 -1
- package/dist/actions/suggest-paper-query-completions.cjs +1 -0
- package/dist/actions/suggest-paper-query-completions.cjs.map +1 -1
- package/dist/actions/suggest-paper-query-completions.d.cts +3 -15
- package/dist/actions/suggest-paper-query-completions.d.cts.map +1 -1
- package/dist/actions/suggest-paper-query-completions.d.mts +3 -15
- package/dist/actions/suggest-paper-query-completions.d.mts.map +1 -1
- package/dist/actions/suggest-paper-query-completions.mjs +1 -0
- package/dist/actions/suggest-paper-query-completions.mjs.map +1 -1
- package/dist/actions/text-snippet-search.cjs +1 -0
- package/dist/actions/text-snippet-search.cjs.map +1 -1
- package/dist/actions/text-snippet-search.d.cts +3 -24
- package/dist/actions/text-snippet-search.d.cts.map +1 -1
- package/dist/actions/text-snippet-search.d.mts +3 -24
- package/dist/actions/text-snippet-search.d.mts.map +1 -1
- package/dist/actions/text-snippet-search.mjs +1 -0
- package/dist/actions/text-snippet-search.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details-about-an-author-s-papers.mjs","names":[],"sources":["../../src/actions/details-about-an-author-s-papers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorSPapersInput = z.object({\n limit: z.number().int().default(100).describe(\"The maximum number of results to return.<br> Must be <= 1000\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of the <code>data</code> array in Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. To fetch more references or citations per paper, reduce the number of papers in the batch with <code>limit=</code>. <p>Use a period (“.”) for subfields of <code>citations</code> and <code>references</code>.<br><br> Examples: <ul> <li><code>fields=title,fieldsOfStudy,references</code></li> <li><code>fields=abstract,citations.url,citations.venue</code></li> </ul>\").optional(),\n offset: z.number().int().default(0).describe(\"Used for pagination. When returning a list of results, start with the element at this position in the list.\").optional(),\n author_id: z.string().describe(\"Author Id\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthorSPapers`\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema = z.object({\n text: z.string().describe(\"Summary text\").nullable().optional(),\n model: z.string().describe(\"Model used to generate summary\").nullable().optional(),\n}).passthrough().describe(\"AI-generated summary of the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema = z.object({\n url: z.string().describe(\"URL to author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar author identifier\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Author's institutional affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Author's total citation count\").nullable().optional(),\n}).passthrough().describe(\"Author information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_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 information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema = z.object({\n url: z.string().describe(\"URL to paper\").nullable().optional(),\n year: z.number().int().describe(\"Publication year\").nullable().optional(),\n title: z.string().describe(\"Paper title\").nullable().optional(),\n venue: z.string().describe(\"Publication venue\").nullable().optional(),\n intent: z.array(z.string()).describe(\"Citation intent categories\").nullable().optional(),\n authors: z.array(z.unknown()).describe(\"Authors of the paper\").nullable().optional(),\n paperId: z.string().describe(\"Paper identifier\").nullable().optional(),\n isInfluential: z.boolean().describe(\"Whether this is an influential reference/citation\").nullable().optional(),\n}).passthrough().describe(\"Reference or citation paper information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema = z.object({\n model: z.string().describe(\"Embedding model name\").nullable().optional(),\n vector: z.array(z.number()).describe(\"Embedding vector values\").nullable().optional(),\n}).passthrough().describe(\"SPECTER2 embedding vectors for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_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 PMID: z.string().describe(\"PubMed identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"ArXiv identifier\").nullable().optional(),\n PMCID: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n CorpusId: z.number().int().describe(\"Corpus identifier\").nullable().optional(),\n}).passthrough().describe(\"External identifiers for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema = z.object({\n url: z.string().describe(\"URL to the open access PDF\").nullable().optional(),\n status: z.string().describe(\"Open access status (e.g., GOLD, GREEN, BRONZE, HYBRID)\").nullable().optional(),\n}).passthrough().describe(\"Open access PDF link and licensing information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema = z.object({\n bibtex: z.string().describe(\"BibTeX formatted citation\").nullable().optional(),\n}).passthrough().describe(\"Formatted citations in various styles\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema = z.object({\n source: z.string().describe(\"Source of the classification\").nullable().optional(),\n category: z.string().describe(\"Field of study category\").nullable().optional(),\n}).passthrough().describe(\"Semantic Scholar's field of study classification with score\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the paper\").nullable().optional(),\n tldr: SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema.nullable().optional(),\n year: z.number().int().describe(\"Publication year of the paper\").nullable().optional(),\n title: z.string().describe(\"Title of the paper\").nullable().optional(),\n venue: z.string().describe(\"Extracted publication venue of the paper\").nullable().optional(),\n authors: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema).describe(\"List of paper authors\").nullable().optional(),\n journal: SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar unique identifier for the paper\").nullable(),\n abstract: z.string().describe(\"Extracted abstract of the paper\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar Corpus ID (S2CID)\").nullable().optional(),\n citations: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers that cite this paper (max 10,000 per batch)\").nullable().optional(),\n embedding: SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema.nullable().optional(),\n references: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers referenced by this paper (max 10,000 per batch)\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether the paper is open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations received by this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Academic field classifications\").nullable().optional(),\n openAccessPdf: SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total number of references made by this paper\").nullable().optional(),\n publicationDate: z.string().describe(\"Full publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema).describe(\"Semantic Scholar's field of study classifications with scores\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of highly influential citations\").nullable().optional(),\n}).passthrough().describe(\"Paper object with detailed information\");\nexport const SemanticscholarDetailsAboutAnAuthorSPapersOutput = z.object({\n data: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema).describe(\"Collection of paper objects\"),\n next: z.number().int().describe(\"Starting position of the subsequent batch; omitted if no additional data exists\").nullable().optional(),\n offset: z.number().int().describe(\"Starting position for this batch of results\").nullable(),\n}).passthrough().describe(\"Response schema for `DetailsAboutAnAuthorSPapers`\");\n\nexport const semanticscholarDetailsAboutAnAuthorSPapers = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR_S_PAPERS\", {\n slug: \"semanticscholar-details-about-an-author-s-papers\",\n name: \"Details about an author s papers\",\n description: \"Retrieves a list of papers authored or co-authored by a specific researcher identified by their unique Semantic Scholar author ID. This endpoint is particularly useful for conducting literature reviews, analyzing an author's body of work, or tracking a researcher's publications over time. It provides a comprehensive view of an author's contributions to their field of study, including all papers where the author is listed as an author regardless of their authorship position. The response may be paginated for authors with a large number of publications, and additional API calls might be necessary to retrieve the complete list of papers. Use the offset and limit parameters to control pagination.\",\n input: SemanticscholarDetailsAboutAnAuthorSPapersInput,\n output: SemanticscholarDetail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S,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAOlE,MAAa,6CAA6C,OAAO,oDAAoD;CACnH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX8D,EAAE,OAAO;EACvE,MAAM,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,6BAA6B;EAC5G,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"details-about-an-author-s-papers.mjs","names":[],"sources":["../../src/actions/details-about-an-author-s-papers.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarDetailsAboutAnAuthorSPapersInput = z.object({\n limit: z.number().int().default(100).describe(\"The maximum number of results to return.<br> Must be <= 1000\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of the <code>data</code> array in Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. To fetch more references or citations per paper, reduce the number of papers in the batch with <code>limit=</code>. <p>Use a period (“.”) for subfields of <code>citations</code> and <code>references</code>.<br><br> Examples: <ul> <li><code>fields=title,fieldsOfStudy,references</code></li> <li><code>fields=abstract,citations.url,citations.venue</code></li> </ul>\").optional(),\n offset: z.number().int().default(0).describe(\"Used for pagination. When returning a list of results, start with the element at this position in the list.\").optional(),\n author_id: z.string().describe(\"Author Id\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthorSPapers`\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema = z.object({\n text: z.string().describe(\"Summary text\").nullable().optional(),\n model: z.string().describe(\"Model used to generate summary\").nullable().optional(),\n}).passthrough().describe(\"AI-generated summary of the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema = z.object({\n url: z.string().describe(\"URL to author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar author identifier\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Author's institutional affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Author's total citation count\").nullable().optional(),\n}).passthrough().describe(\"Author information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_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 information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema = z.object({\n url: z.string().describe(\"URL to paper\").nullable().optional(),\n year: z.number().int().describe(\"Publication year\").nullable().optional(),\n title: z.string().describe(\"Paper title\").nullable().optional(),\n venue: z.string().describe(\"Publication venue\").nullable().optional(),\n intent: z.array(z.string()).describe(\"Citation intent categories\").nullable().optional(),\n authors: z.array(z.unknown()).describe(\"Authors of the paper\").nullable().optional(),\n paperId: z.string().describe(\"Paper identifier\").nullable().optional(),\n isInfluential: z.boolean().describe(\"Whether this is an influential reference/citation\").nullable().optional(),\n}).passthrough().describe(\"Reference or citation paper information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema = z.object({\n model: z.string().describe(\"Embedding model name\").nullable().optional(),\n vector: z.array(z.number()).describe(\"Embedding vector values\").nullable().optional(),\n}).passthrough().describe(\"SPECTER2 embedding vectors for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_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 PMID: z.string().describe(\"PubMed identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"ArXiv identifier\").nullable().optional(),\n PMCID: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n CorpusId: z.number().int().describe(\"Corpus identifier\").nullable().optional(),\n}).passthrough().describe(\"External identifiers for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema = z.object({\n url: z.string().describe(\"URL to the open access PDF\").nullable().optional(),\n status: z.string().describe(\"Open access status (e.g., GOLD, GREEN, BRONZE, HYBRID)\").nullable().optional(),\n}).passthrough().describe(\"Open access PDF link and licensing information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema = z.object({\n bibtex: z.string().describe(\"BibTeX formatted citation\").nullable().optional(),\n}).passthrough().describe(\"Formatted citations in various styles\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema = z.object({\n source: z.string().describe(\"Source of the classification\").nullable().optional(),\n category: z.string().describe(\"Field of study category\").nullable().optional(),\n}).passthrough().describe(\"Semantic Scholar's field of study classification with score\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the paper\").nullable().optional(),\n tldr: SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema.nullable().optional(),\n year: z.number().int().describe(\"Publication year of the paper\").nullable().optional(),\n title: z.string().describe(\"Title of the paper\").nullable().optional(),\n venue: z.string().describe(\"Extracted publication venue of the paper\").nullable().optional(),\n authors: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema).describe(\"List of paper authors\").nullable().optional(),\n journal: SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar unique identifier for the paper\").nullable(),\n abstract: z.string().describe(\"Extracted abstract of the paper\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar Corpus ID (S2CID)\").nullable().optional(),\n citations: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers that cite this paper (max 10,000 per batch)\").nullable().optional(),\n embedding: SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema.nullable().optional(),\n references: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers referenced by this paper (max 10,000 per batch)\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether the paper is open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations received by this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Academic field classifications\").nullable().optional(),\n openAccessPdf: SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total number of references made by this paper\").nullable().optional(),\n publicationDate: z.string().describe(\"Full publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema).describe(\"Semantic Scholar's field of study classifications with scores\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of highly influential citations\").nullable().optional(),\n}).passthrough().describe(\"Paper object with detailed information\");\nexport const SemanticscholarDetailsAboutAnAuthorSPapersOutput = z.object({\n data: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema).describe(\"Collection of paper objects\"),\n next: z.number().int().describe(\"Starting position of the subsequent batch; omitted if no additional data exists\").nullable().optional(),\n offset: z.number().int().describe(\"Starting position for this batch of results\").nullable(),\n}).passthrough().describe(\"Response schema for `DetailsAboutAnAuthorSPapers`\");\n\nexport const semanticscholarDetailsAboutAnAuthorSPapers: AppAction<\n typeof SemanticscholarDetailsAboutAnAuthorSPapersInput,\n typeof SemanticscholarDetailsAboutAnAuthorSPapersOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR_S_PAPERS\", {\n slug: \"semanticscholar-details-about-an-author-s-papers\",\n name: \"Details about an author s papers\",\n description: \"Retrieves a list of papers authored or co-authored by a specific researcher identified by their unique Semantic Scholar author ID. This endpoint is particularly useful for conducting literature reviews, analyzing an author's body of work, or tracking a researcher's publications over time. It provides a comprehensive view of an author's contributions to their field of study, including all papers where the author is listed as an author regardless of their authorship position. The response may be paginated for authors with a large number of publications, and additional API calls might be necessary to retrieve the complete list of papers. Use the offset and limit parameters to control pagination.\",\n input: SemanticscholarDetailsAboutAnAuthorSPapersInput,\n output: SemanticscholarDetailsAboutAnAuthorSPapersOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kDAAkD,EAAE,OAAO;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0sBAA0sB,CAAC,CAAC,SAAS;CACjvB,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACrK,WAAW,EAAE,OAAO,CAAC,C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AAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details-about-an-author.cjs","names":["z","action"],"sources":["../../src/actions/details-about-an-author.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorInput = z.object({\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n author_id: z.string().describe(\"The unique Semantic Scholar author ID (e.g., '1688882'). This can be obtained from the author search endpoint.\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthor`\");\nconst SemanticscholarDetailsAboutAnAuthor_BasePaperSchema = z.object({\n year: z.number().int().nullable().optional(),\n title: z.string().nullable().optional(),\n paperId: z.string().nullable(),\n citationCount: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Basic paper information\");\nconst SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema = z.object({\n DBLP: z.array(z.string()).nullable().optional(),\n ORCID: z.array(z.string()).nullable().optional(),\n}).passthrough().describe(\"External IDs for the author\");\nexport const SemanticscholarDetailsAboutAnAuthorOutput = z.object({\n url: z.string().describe(\"URL of author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n papers: z.array(SemanticscholarDetailsAboutAnAuthor_BasePaperSchema).describe(\"List of papers authored\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique ID for the author\").nullable(),\n homepage: z.string().describe(\"Author's homepage\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total publications count\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema.nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Organizational affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations count\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `DetailsAboutAnAuthor`\");\n\nexport const semanticscholarDetailsAboutAnAuthor = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR\", {\n slug: \"semanticscholar-details-about-an-author\",\n name: \"Details about an author\",\n description: \"Retrieve detailed information about an author from Semantic Scholar, including name, affiliations, publication statistics (paperCount, citationCount, h-index), external IDs (ORCID, DBLP), and optionally papers. By default returns authorId and name only. Use 'fields' parameter for additional data: name, url, affiliations, homepage, externalIds, paperCount, citationCount, hIndex, papers (supports nested fields like papers.title, papers.year). Limit: 10 MB per request.\",\n input: SemanticscholarDetailsAboutAnAuthorInput,\n output: SemanticscholarDetailsAboutAnAuthorOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"details-about-an-author.cjs","names":["z","action"],"sources":["../../src/actions/details-about-an-author.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarDetailsAboutAnAuthorInput = z.object({\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n author_id: z.string().describe(\"The unique Semantic Scholar author ID (e.g., '1688882'). This can be obtained from the author search endpoint.\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthor`\");\nconst SemanticscholarDetailsAboutAnAuthor_BasePaperSchema = z.object({\n year: z.number().int().nullable().optional(),\n title: z.string().nullable().optional(),\n paperId: z.string().nullable(),\n citationCount: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Basic paper information\");\nconst SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema = z.object({\n DBLP: z.array(z.string()).nullable().optional(),\n ORCID: z.array(z.string()).nullable().optional(),\n}).passthrough().describe(\"External IDs for the author\");\nexport const SemanticscholarDetailsAboutAnAuthorOutput = z.object({\n url: z.string().describe(\"URL of author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n papers: z.array(SemanticscholarDetailsAboutAnAuthor_BasePaperSchema).describe(\"List of papers authored\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique ID for the author\").nullable(),\n homepage: z.string().describe(\"Author's homepage\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total publications count\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema.nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Organizational affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations count\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `DetailsAboutAnAuthor`\");\n\nexport const semanticscholarDetailsAboutAnAuthor: AppAction<\n typeof SemanticscholarDetailsAboutAnAuthorInput,\n typeof SemanticscholarDetailsAboutAnAuthorOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR\", {\n slug: \"semanticscholar-details-about-an-author\",\n name: \"Details about an author\",\n description: \"Retrieve detailed information about an author from Semantic Scholar, including name, affiliations, publication statistics (paperCount, citationCount, h-index), external IDs (ORCID, DBLP), and optionally papers. By default returns authorId and name only. Use 'fields' parameter for additional data: name, url, affiliations, homepage, externalIds, paperCount, citationCount, hIndex, papers (supports nested fields like papers.title, papers.year). Limit: 10 MB per request.\",\n input: SemanticscholarDetailsAboutAnAuthorInput,\n output: SemanticscholarDetailsAboutAnAuthorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2gBAA2gB,CAAC,CAAC,SAAS;CACljB,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;AACjJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtC,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS;CAC7B,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AACnD,MAAM,wDAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9C,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AACvD,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CA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3
5
|
//#region src/actions/details-about-an-author.d.ts
|
|
@@ -25,22 +27,7 @@ declare const SemanticscholarDetailsAboutAnAuthorOutput: z.ZodObject<{
|
|
|
25
27
|
affiliations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
28
|
citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
29
|
}, z.core.$loose>;
|
|
28
|
-
declare const semanticscholarDetailsAboutAnAuthor:
|
|
29
|
-
author_id: string;
|
|
30
|
-
fields?: string | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
30
|
+
declare const semanticscholarDetailsAboutAnAuthor: AppAction<typeof SemanticscholarDetailsAboutAnAuthorInput, typeof SemanticscholarDetailsAboutAnAuthorOutput, typeof semanticscholar.credential>;
|
|
44
31
|
//#endregion
|
|
45
32
|
export { semanticscholarDetailsAboutAnAuthor };
|
|
46
33
|
//# sourceMappingURL=details-about-an-author.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details-about-an-author.d.cts","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"details-about-an-author.d.cts","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAcxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAazC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,SACA,eAAA,CAAgB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { semanticscholar } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/details-about-an-author.d.ts
|
|
@@ -25,22 +27,7 @@ declare const SemanticscholarDetailsAboutAnAuthorOutput: z.ZodObject<{
|
|
|
25
27
|
affiliations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
28
|
citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
29
|
}, z.core.$loose>;
|
|
28
|
-
declare const semanticscholarDetailsAboutAnAuthor:
|
|
29
|
-
author_id: string;
|
|
30
|
-
fields?: string | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
38
|
-
connectionId: z.ZodString;
|
|
39
|
-
entityId: z.ZodString;
|
|
40
|
-
instanceId: z.ZodString;
|
|
41
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
-
generic_api_key: z.ZodString;
|
|
43
|
-
}, z.core.$strip>>]>;
|
|
30
|
+
declare const semanticscholarDetailsAboutAnAuthor: AppAction<typeof SemanticscholarDetailsAboutAnAuthorInput, typeof SemanticscholarDetailsAboutAnAuthorOutput, typeof semanticscholar.credential>;
|
|
44
31
|
//#endregion
|
|
45
32
|
export { semanticscholarDetailsAboutAnAuthor };
|
|
46
33
|
//# sourceMappingURL=details-about-an-author.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details-about-an-author.d.mts","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"details-about-an-author.d.mts","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAcxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAazC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,SACA,eAAA,CAAgB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details-about-an-author.mjs","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorInput = z.object({\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n author_id: z.string().describe(\"The unique Semantic Scholar author ID (e.g., '1688882'). This can be obtained from the author search endpoint.\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthor`\");\nconst SemanticscholarDetailsAboutAnAuthor_BasePaperSchema = z.object({\n year: z.number().int().nullable().optional(),\n title: z.string().nullable().optional(),\n paperId: z.string().nullable(),\n citationCount: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Basic paper information\");\nconst SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema = z.object({\n DBLP: z.array(z.string()).nullable().optional(),\n ORCID: z.array(z.string()).nullable().optional(),\n}).passthrough().describe(\"External IDs for the author\");\nexport const SemanticscholarDetailsAboutAnAuthorOutput = z.object({\n url: z.string().describe(\"URL of author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n papers: z.array(SemanticscholarDetailsAboutAnAuthor_BasePaperSchema).describe(\"List of papers authored\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique ID for the author\").nullable(),\n homepage: z.string().describe(\"Author's homepage\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total publications count\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema.nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Organizational affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations count\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `DetailsAboutAnAuthor`\");\n\nexport const semanticscholarDetailsAboutAnAuthor = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR\", {\n slug: \"semanticscholar-details-about-an-author\",\n name: \"Details about an author\",\n description: \"Retrieve detailed information about an author from Semantic Scholar, including name, affiliations, publication statistics (paperCount, citationCount, h-index), external IDs (ORCID, DBLP), and optionally papers. By default returns authorId and name only. Use 'fields' parameter for additional data: name, url, affiliations, homepage, externalIds, paperCount, citationCount, hIndex, papers (supports nested fields like papers.title, papers.year). Limit: 10 MB per request.\",\n input: SemanticscholarDetailsAboutAnAuthorInput,\n output: SemanticscholarDetailsAboutAnAuthorOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"details-about-an-author.mjs","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarDetailsAboutAnAuthorInput = z.object({\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n author_id: z.string().describe(\"The unique Semantic Scholar author ID (e.g., '1688882'). This can be obtained from the author search endpoint.\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthor`\");\nconst SemanticscholarDetailsAboutAnAuthor_BasePaperSchema = z.object({\n year: z.number().int().nullable().optional(),\n title: z.string().nullable().optional(),\n paperId: z.string().nullable(),\n citationCount: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Basic paper information\");\nconst SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema = z.object({\n DBLP: z.array(z.string()).nullable().optional(),\n ORCID: z.array(z.string()).nullable().optional(),\n}).passthrough().describe(\"External IDs for the author\");\nexport const SemanticscholarDetailsAboutAnAuthorOutput = z.object({\n url: z.string().describe(\"URL of author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n papers: z.array(SemanticscholarDetailsAboutAnAuthor_BasePaperSchema).describe(\"List of papers authored\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique ID for the author\").nullable(),\n homepage: z.string().describe(\"Author's homepage\").nullable().optional(),\n paperCount: z.number().int().describe(\"Total publications count\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema.nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Organizational affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total citations count\").nullable().optional(),\n}).passthrough().describe(\"Response schema for `DetailsAboutAnAuthor`\");\n\nexport const semanticscholarDetailsAboutAnAuthor: AppAction<\n typeof SemanticscholarDetailsAboutAnAuthorInput,\n typeof SemanticscholarDetailsAboutAnAuthorOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR\", {\n slug: \"semanticscholar-details-about-an-author\",\n name: \"Details about an author\",\n description: \"Retrieve detailed information about an author from Semantic Scholar, including name, affiliations, publication statistics (paperCount, citationCount, h-index), external IDs (ORCID, DBLP), and optionally papers. By default returns authorId and name only. Use 'fields' parameter for additional data: name, url, affiliations, homepage, externalIds, paperCount, citationCount, hIndex, papers (supports nested fields like papers.title, papers.year). Limit: 10 MB per request.\",\n input: SemanticscholarDetailsAboutAnAuthorInput,\n output: SemanticscholarDetailsAboutAnAuthorOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2gBAA2gB,CAAC,CAAC,SAAS;CACljB,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;AACjJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,sDAAsD,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtC,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS;CAC7B,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yBAAyB;AACnD,MAAM,wDAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9C,OAAO,EAAE,MAAM,EAAE,OAAO,CA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"],"sources":["../../src/actions/get-dataset-diffs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDatasetDiffsInput = z.object({\n dataset_name: z.string().describe(\"Name of the dataset to retrieve diffs for. Common datasets include 'papers', 'authors', 'citations', 'abstracts', etc.\"),\n end_release_id: z.string().describe(\"ID of the ending release. Use date format YYYY-MM-DD (e.g., '2025-01-15') or 'latest' for the most recent release.\"),\n start_release_id: z.string().describe(\"ID of the starting release. Use date format YYYY-MM-DD (e.g., '2024-12-31') or 'latest' for the most recent release.\"),\n}).describe(\"Request schema for `GetDatasetDiffs`\");\nconst SemanticscholarGetDatasetDiffs_DatasetDiffSchema = z.object({\n to_release: z.string().describe(\"Target release for this specific diff\").nullable(),\n delete_files: z.array(z.string()).describe(\"Download links to files with records that need removing from the dataset\"),\n from_release: z.string().describe(\"Baseline release for this specific diff\").nullable(),\n update_files: z.array(z.string()).describe(\"Download links to files with records that need inserting or updating by their primary key\"),\n}).passthrough().describe(\"Individual diff object representing changes between two releases\");\nexport const SemanticscholarGetDatasetDiffsOutput = z.object({\n diffs: z.array(SemanticscholarGetDatasetDiffs_DatasetDiffSchema).describe(\"List of diff objects containing download links for incremental updates. Each diff contains 'update_files' and 'delete_files' lists.\"),\n dataset: z.string().describe(\"Name of the dataset these diffs are for\").nullable(),\n end_release: z.string().describe(\"Ending release, i.e. the release the client wants to update to\").nullable(),\n start_release: z.string().describe(\"Beginning release, i.e. the release currently held by the client\").nullable(),\n}).passthrough().describe(\"Response schema for `GetDatasetDiffs`\");\n\nexport const semanticscholarGetDatasetDiffs = action(\"SEMANTICSCHOLAR_GET_DATASET_DIFFS\", {\n slug: \"semanticscholar-get-dataset-diffs\",\n name: \"Get dataset diffs\",\n description: \"Get download links for incremental diffs between dataset releases. Returns a list of diffs required to update a dataset from start_release to end_release, enabling efficient dataset synchronization. Use when you need to update a local dataset copy without re-downloading the entire dataset.\",\n input: SemanticscholarGetDatasetDiffsInput,\n output: SemanticscholarGetDatasetDiffsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-dataset-diffs.cjs","names":["z","action"],"sources":["../../src/actions/get-dataset-diffs.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetDatasetDiffsInput = z.object({\n dataset_name: z.string().describe(\"Name of the dataset to retrieve diffs for. Common datasets include 'papers', 'authors', 'citations', 'abstracts', etc.\"),\n end_release_id: z.string().describe(\"ID of the ending release. Use date format YYYY-MM-DD (e.g., '2025-01-15') or 'latest' for the most recent release.\"),\n start_release_id: z.string().describe(\"ID of the starting release. Use date format YYYY-MM-DD (e.g., '2024-12-31') or 'latest' for the most recent release.\"),\n}).describe(\"Request schema for `GetDatasetDiffs`\");\nconst SemanticscholarGetDatasetDiffs_DatasetDiffSchema = z.object({\n to_release: z.string().describe(\"Target release for this specific diff\").nullable(),\n delete_files: z.array(z.string()).describe(\"Download links to files with records that need removing from the dataset\"),\n from_release: z.string().describe(\"Baseline release for this specific diff\").nullable(),\n update_files: z.array(z.string()).describe(\"Download links to files with records that need inserting or updating by their primary key\"),\n}).passthrough().describe(\"Individual diff object representing changes between two releases\");\nexport const SemanticscholarGetDatasetDiffsOutput = z.object({\n diffs: z.array(SemanticscholarGetDatasetDiffs_DatasetDiffSchema).describe(\"List of diff objects containing download links for incremental updates. Each diff contains 'update_files' and 'delete_files' lists.\"),\n dataset: z.string().describe(\"Name of the dataset these diffs are for\").nullable(),\n end_release: z.string().describe(\"Ending release, i.e. the release the client wants to update to\").nullable(),\n start_release: z.string().describe(\"Beginning release, i.e. the release currently held by the client\").nullable(),\n}).passthrough().describe(\"Response schema for `GetDatasetDiffs`\");\n\nexport const semanticscholarGetDatasetDiffs: AppAction<\n typeof SemanticscholarGetDatasetDiffsInput,\n typeof SemanticscholarGetDatasetDiffsOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_DATASET_DIFFS\", {\n slug: \"semanticscholar-get-dataset-diffs\",\n name: \"Get dataset diffs\",\n description: \"Get download links for incremental diffs between dataset releases. Returns a list of diffs required to update a dataset from start_release to end_release, enabling efficient dataset synchronization. Use when you need to update a local dataset copy without re-downloading the entire dataset.\",\n input: SemanticscholarGetDatasetDiffsInput,\n output: SemanticscholarGetDatasetDiffsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;CAC1J,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACxJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;AAC9J,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0EAA0E;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACtF,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAC5F,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,qIAAqI;CAC/M,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,iCAITC,eAAAA,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { semanticscholar } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-dataset-diffs.d.ts
|
|
@@ -17,23 +19,7 @@ declare const SemanticscholarGetDatasetDiffsOutput: z.ZodObject<{
|
|
|
17
19
|
end_release: z.ZodNullable<z.ZodString>;
|
|
18
20
|
start_release: z.ZodNullable<z.ZodString>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const semanticscholarGetDatasetDiffs:
|
|
21
|
-
dataset_name: string;
|
|
22
|
-
end_release_id: string;
|
|
23
|
-
start_release_id: string;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const semanticscholarGetDatasetDiffs: AppAction<typeof SemanticscholarGetDatasetDiffsInput, typeof SemanticscholarGetDatasetDiffsOutput, typeof semanticscholar.credential>;
|
|
37
23
|
//#endregion
|
|
38
24
|
export { semanticscholarGetDatasetDiffs };
|
|
39
25
|
//# sourceMappingURL=get-dataset-diffs.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dataset-diffs.d.cts","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-dataset-diffs.d.cts","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAWnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cAOpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,eAAA,CAAgB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { semanticscholar } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-dataset-diffs.d.ts
|
|
@@ -17,23 +19,7 @@ declare const SemanticscholarGetDatasetDiffsOutput: z.ZodObject<{
|
|
|
17
19
|
end_release: z.ZodNullable<z.ZodString>;
|
|
18
20
|
start_release: z.ZodNullable<z.ZodString>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const semanticscholarGetDatasetDiffs:
|
|
21
|
-
dataset_name: string;
|
|
22
|
-
end_release_id: string;
|
|
23
|
-
start_release_id: string;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
22
|
+
declare const semanticscholarGetDatasetDiffs: AppAction<typeof SemanticscholarGetDatasetDiffsInput, typeof SemanticscholarGetDatasetDiffsOutput, typeof semanticscholar.credential>;
|
|
37
23
|
//#endregion
|
|
38
24
|
export { semanticscholarGetDatasetDiffs };
|
|
39
25
|
//# sourceMappingURL=get-dataset-diffs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dataset-diffs.d.mts","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-dataset-diffs.d.mts","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAWnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cAOpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,eAAA,CAAgB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dataset-diffs.mjs","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDatasetDiffsInput = z.object({\n dataset_name: z.string().describe(\"Name of the dataset to retrieve diffs for. Common datasets include 'papers', 'authors', 'citations', 'abstracts', etc.\"),\n end_release_id: z.string().describe(\"ID of the ending release. Use date format YYYY-MM-DD (e.g., '2025-01-15') or 'latest' for the most recent release.\"),\n start_release_id: z.string().describe(\"ID of the starting release. Use date format YYYY-MM-DD (e.g., '2024-12-31') or 'latest' for the most recent release.\"),\n}).describe(\"Request schema for `GetDatasetDiffs`\");\nconst SemanticscholarGetDatasetDiffs_DatasetDiffSchema = z.object({\n to_release: z.string().describe(\"Target release for this specific diff\").nullable(),\n delete_files: z.array(z.string()).describe(\"Download links to files with records that need removing from the dataset\"),\n from_release: z.string().describe(\"Baseline release for this specific diff\").nullable(),\n update_files: z.array(z.string()).describe(\"Download links to files with records that need inserting or updating by their primary key\"),\n}).passthrough().describe(\"Individual diff object representing changes between two releases\");\nexport const SemanticscholarGetDatasetDiffsOutput = z.object({\n diffs: z.array(SemanticscholarGetDatasetDiffs_DatasetDiffSchema).describe(\"List of diff objects containing download links for incremental updates. Each diff contains 'update_files' and 'delete_files' lists.\"),\n dataset: z.string().describe(\"Name of the dataset these diffs are for\").nullable(),\n end_release: z.string().describe(\"Ending release, i.e. the release the client wants to update to\").nullable(),\n start_release: z.string().describe(\"Beginning release, i.e. the release currently held by the client\").nullable(),\n}).passthrough().describe(\"Response schema for `GetDatasetDiffs`\");\n\nexport const semanticscholarGetDatasetDiffs = action(\"SEMANTICSCHOLAR_GET_DATASET_DIFFS\", {\n slug: \"semanticscholar-get-dataset-diffs\",\n name: \"Get dataset diffs\",\n description: \"Get download links for incremental diffs between dataset releases. Returns a list of diffs required to update a dataset from start_release to end_release, enabling efficient dataset synchronization. Use when you need to update a local dataset copy without re-downloading the entire dataset.\",\n input: SemanticscholarGetDatasetDiffsInput,\n output: SemanticscholarGetDatasetDiffsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-dataset-diffs.mjs","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetDatasetDiffsInput = z.object({\n dataset_name: z.string().describe(\"Name of the dataset to retrieve diffs for. Common datasets include 'papers', 'authors', 'citations', 'abstracts', etc.\"),\n end_release_id: z.string().describe(\"ID of the ending release. Use date format YYYY-MM-DD (e.g., '2025-01-15') or 'latest' for the most recent release.\"),\n start_release_id: z.string().describe(\"ID of the starting release. Use date format YYYY-MM-DD (e.g., '2024-12-31') or 'latest' for the most recent release.\"),\n}).describe(\"Request schema for `GetDatasetDiffs`\");\nconst SemanticscholarGetDatasetDiffs_DatasetDiffSchema = z.object({\n to_release: z.string().describe(\"Target release for this specific diff\").nullable(),\n delete_files: z.array(z.string()).describe(\"Download links to files with records that need removing from the dataset\"),\n from_release: z.string().describe(\"Baseline release for this specific diff\").nullable(),\n update_files: z.array(z.string()).describe(\"Download links to files with records that need inserting or updating by their primary key\"),\n}).passthrough().describe(\"Individual diff object representing changes between two releases\");\nexport const SemanticscholarGetDatasetDiffsOutput = z.object({\n diffs: z.array(SemanticscholarGetDatasetDiffs_DatasetDiffSchema).describe(\"List of diff objects containing download links for incremental updates. Each diff contains 'update_files' and 'delete_files' lists.\"),\n dataset: z.string().describe(\"Name of the dataset these diffs are for\").nullable(),\n end_release: z.string().describe(\"Ending release, i.e. the release the client wants to update to\").nullable(),\n start_release: z.string().describe(\"Beginning release, i.e. the release currently held by the client\").nullable(),\n}).passthrough().describe(\"Response schema for `GetDatasetDiffs`\");\n\nexport const semanticscholarGetDatasetDiffs: AppAction<\n typeof SemanticscholarGetDatasetDiffsInput,\n typeof SemanticscholarGetDatasetDiffsOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_DATASET_DIFFS\", {\n slug: \"semanticscholar-get-dataset-diffs\",\n name: \"Get dataset diffs\",\n description: \"Get download links for incremental diffs between dataset releases. Returns a list of diffs required to update a dataset from start_release to end_release, enabling efficient dataset synchronization. Use when you need to update a local dataset copy without re-downloading the entire dataset.\",\n input: SemanticscholarGetDatasetDiffsInput,\n output: SemanticscholarGetDatasetDiffsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH;CAC1J,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH;CACxJ,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;AAC9J,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,mDAAmD,EAAE,OAAO;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClF,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0EAA0E;CACrH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACtF,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACxI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAQ5F,MAAa,iCAIT,OAAO,qCAAqC;CAC9C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhBkD,EAAE,OAAO;EAC3D,OAAO,EAAE,MAAM,gDAAgD,CAAC,CAAC,SAAS,qIAAqI;EAC/M,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC5G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dataset.cjs","names":["z","action"],"sources":["../../src/actions/get-dataset.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDatasetInput = z.object({\n release_id: z.string().describe(\"ID of the release. Use 'latest' for the most recent release, or a specific date in YYYY-MM-DD format (e.g., '2024-12-31')\"),\n dataset_name: z.string().describe(\"Name of the dataset to retrieve. Common dataset names include: 'papers', 'abstracts', 'authors', 'citations', 'embeddings'\"),\n}).describe(\"Request schema for GetDataset\");\nexport const SemanticscholarGetDatasetOutput = z.object({\n name: z.string().describe(\"Name of the dataset\").nullable(),\n files: z.array(z.string()).describe(\"List of temporary, pre-signed S3 download URLs for dataset partitions. These URLs expire after a limited time and must be used promptly\"),\n README: z.string().describe(\"License and usage information for the dataset\").nullable(),\n description: z.string().describe(\"Description of the data contained in this dataset\").nullable(),\n}).passthrough().describe(\"Response schema for GetDataset\");\n\nexport const semanticscholarGetDataset = action(\"SEMANTICSCHOLAR_GET_DATASET\", {\n slug: \"semanticscholar-get-dataset\",\n name: \"Get dataset download links\",\n description: \"Tool to get download links for a specific dataset within a release. Use when you need to download Semantic Scholar dataset files from S3. Returns pre-signed URLs for all dataset partitions.\",\n input: SemanticscholarGetDatasetInput,\n output: SemanticscholarGetDatasetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-dataset.cjs","names":["z","action"],"sources":["../../src/actions/get-dataset.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetDatasetInput = z.object({\n release_id: z.string().describe(\"ID of the release. Use 'latest' for the most recent release, or a specific date in YYYY-MM-DD format (e.g., '2024-12-31')\"),\n dataset_name: z.string().describe(\"Name of the dataset to retrieve. Common dataset names include: 'papers', 'abstracts', 'authors', 'citations', 'embeddings'\"),\n}).describe(\"Request schema for GetDataset\");\nexport const SemanticscholarGetDatasetOutput = z.object({\n name: z.string().describe(\"Name of the dataset\").nullable(),\n files: z.array(z.string()).describe(\"List of temporary, pre-signed S3 download URLs for dataset partitions. These URLs expire after a limited time and must be used promptly\"),\n README: z.string().describe(\"License and usage information for the dataset\").nullable(),\n description: z.string().describe(\"Description of the data contained in this dataset\").nullable(),\n}).passthrough().describe(\"Response schema for GetDataset\");\n\nexport const semanticscholarGetDataset: AppAction<\n typeof SemanticscholarGetDatasetInput,\n typeof SemanticscholarGetDatasetOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_DATASET\", {\n slug: \"semanticscholar-get-dataset\",\n name: \"Get dataset download links\",\n description: \"Tool to get download links for a specific dataset within a release. Use when you need to download Semantic Scholar dataset files from S3. Returns pre-signed URLs for all dataset partitions.\",\n input: SemanticscholarGetDatasetInput,\n output: SemanticscholarGetDatasetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;CAC3J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H;AAChK,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yIAAyI;CAC7K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAE1D,MAAa,4BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { semanticscholar } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-dataset.d.ts
|
|
@@ -11,22 +13,7 @@ declare const SemanticscholarGetDatasetOutput: z.ZodObject<{
|
|
|
11
13
|
README: z.ZodNullable<z.ZodString>;
|
|
12
14
|
description: z.ZodNullable<z.ZodString>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const semanticscholarGetDataset:
|
|
15
|
-
release_id: string;
|
|
16
|
-
dataset_name: string;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const semanticscholarGetDataset: AppAction<typeof SemanticscholarGetDatasetInput, typeof SemanticscholarGetDatasetOutput, typeof semanticscholar.credential>;
|
|
30
17
|
//#endregion
|
|
31
18
|
export { semanticscholarGetDataset };
|
|
32
19
|
//# sourceMappingURL=get-dataset.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dataset.d.cts","names":[],"sources":["../../src/actions/get-dataset.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-dataset.d.cts","names":[],"sources":["../../src/actions/get-dataset.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAO/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,eAAA,CAAgB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { semanticscholar } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-dataset.d.ts
|
|
@@ -11,22 +13,7 @@ declare const SemanticscholarGetDatasetOutput: z.ZodObject<{
|
|
|
11
13
|
README: z.ZodNullable<z.ZodString>;
|
|
12
14
|
description: z.ZodNullable<z.ZodString>;
|
|
13
15
|
}, z.core.$loose>;
|
|
14
|
-
declare const semanticscholarGetDataset:
|
|
15
|
-
release_id: string;
|
|
16
|
-
dataset_name: string;
|
|
17
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
18
|
-
connectionId: z.ZodString;
|
|
19
|
-
entityId: z.ZodString;
|
|
20
|
-
instanceId: z.ZodString;
|
|
21
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
-
generic_api_key: z.ZodString;
|
|
23
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>;
|
|
16
|
+
declare const semanticscholarGetDataset: AppAction<typeof SemanticscholarGetDatasetInput, typeof SemanticscholarGetDatasetOutput, typeof semanticscholar.credential>;
|
|
30
17
|
//#endregion
|
|
31
18
|
export { semanticscholarGetDataset };
|
|
32
19
|
//# sourceMappingURL=get-dataset.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dataset.d.mts","names":[],"sources":["../../src/actions/get-dataset.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-dataset.d.mts","names":[],"sources":["../../src/actions/get-dataset.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;cAI9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAO/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,eAAA,CAAgB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dataset.mjs","names":[],"sources":["../../src/actions/get-dataset.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDatasetInput = z.object({\n release_id: z.string().describe(\"ID of the release. Use 'latest' for the most recent release, or a specific date in YYYY-MM-DD format (e.g., '2024-12-31')\"),\n dataset_name: z.string().describe(\"Name of the dataset to retrieve. Common dataset names include: 'papers', 'abstracts', 'authors', 'citations', 'embeddings'\"),\n}).describe(\"Request schema for GetDataset\");\nexport const SemanticscholarGetDatasetOutput = z.object({\n name: z.string().describe(\"Name of the dataset\").nullable(),\n files: z.array(z.string()).describe(\"List of temporary, pre-signed S3 download URLs for dataset partitions. These URLs expire after a limited time and must be used promptly\"),\n README: z.string().describe(\"License and usage information for the dataset\").nullable(),\n description: z.string().describe(\"Description of the data contained in this dataset\").nullable(),\n}).passthrough().describe(\"Response schema for GetDataset\");\n\nexport const semanticscholarGetDataset = action(\"SEMANTICSCHOLAR_GET_DATASET\", {\n slug: \"semanticscholar-get-dataset\",\n name: \"Get dataset download links\",\n description: \"Tool to get download links for a specific dataset within a release. Use when you need to download Semantic Scholar dataset files from S3. Returns pre-signed URLs for all dataset partitions.\",\n input: SemanticscholarGetDatasetInput,\n output: SemanticscholarGetDatasetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-dataset.mjs","names":[],"sources":["../../src/actions/get-dataset.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetDatasetInput = z.object({\n release_id: z.string().describe(\"ID of the release. Use 'latest' for the most recent release, or a specific date in YYYY-MM-DD format (e.g., '2024-12-31')\"),\n dataset_name: z.string().describe(\"Name of the dataset to retrieve. Common dataset names include: 'papers', 'abstracts', 'authors', 'citations', 'embeddings'\"),\n}).describe(\"Request schema for GetDataset\");\nexport const SemanticscholarGetDatasetOutput = z.object({\n name: z.string().describe(\"Name of the dataset\").nullable(),\n files: z.array(z.string()).describe(\"List of temporary, pre-signed S3 download URLs for dataset partitions. These URLs expire after a limited time and must be used promptly\"),\n README: z.string().describe(\"License and usage information for the dataset\").nullable(),\n description: z.string().describe(\"Description of the data contained in this dataset\").nullable(),\n}).passthrough().describe(\"Response schema for GetDataset\");\n\nexport const semanticscholarGetDataset: AppAction<\n typeof SemanticscholarGetDatasetInput,\n typeof SemanticscholarGetDatasetOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_DATASET\", {\n slug: \"semanticscholar-get-dataset\",\n name: \"Get dataset download links\",\n description: \"Tool to get download links for a specific dataset within a release. Use when you need to download Semantic Scholar dataset files from S3. Returns pre-signed URLs for all dataset partitions.\",\n input: SemanticscholarGetDatasetInput,\n output: SemanticscholarGetDatasetOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,4BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB4C,EAAE,OAAO;EACrD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H;EAC3J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4HAA4H;CAChK,CAAC,CAAC,CAAC,SAAS,+BAgBH;CACP,QAhB6C,EAAE,OAAO;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC1D,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yIAAyI;EAC7K,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACjG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-details-for-multiple-authors-at-once.cjs","names":["z","action"],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Semantic Scholar author IDs to retrieve details for. Author IDs are unique identifiers in the format of numeric strings (e.g., '144388777', '1688882'). You can obtain author IDs by searching for authors by name using the author search endpoint. The API will return author details for each valid ID, and null for any invalid or non-existent IDs.\"),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n}).describe(\"Request schema for `GetDetailsForMultipleAuthorsAtOnce`\");\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput = z.unknown();\n\nexport const semanticscholarGetDetailsForMultipleAuthorsAtOnce = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_AUTHORS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-authors-at-once\",\n name: \"Get details for multiple authors at once\",\n description: \"Retrieves detailed information for multiple authors from Semantic Scholar in a single API call. This endpoint allows users to efficiently fetch data for a batch of authors by providing their unique Semantic Scholar IDs. It's particularly useful for applications that need to gather information on multiple authors simultaneously, reducing the number of individual API calls required. The endpoint accepts a list of author IDs and returns comprehensive details for each author, which may include their publications, citations, and other relevant academic information. While the exact response structure is not specified in the given schema, users can expect rich metadata about the requested authors.\",\n input: SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput,\n output: SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-details-for-multiple-authors-at-once.cjs","names":["z","action"],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Semantic Scholar author IDs to retrieve details for. Author IDs are unique identifiers in the format of numeric strings (e.g., '144388777', '1688882'). You can obtain author IDs by searching for authors by name using the author search endpoint. The API will return author details for each valid ID, and null for any invalid or non-existent IDs.\"),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n}).describe(\"Request schema for `GetDetailsForMultipleAuthorsAtOnce`\");\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput = z.unknown();\n\nexport const semanticscholarGetDetailsForMultipleAuthorsAtOnce: AppAction<\n typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput,\n typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_AUTHORS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-authors-at-once\",\n name: \"Get details for multiple authors at once\",\n description: \"Retrieves detailed information for multiple authors from Semantic Scholar in a single API call. This endpoint allows users to efficiently fetch data for a batch of authors by providing their unique Semantic Scholar IDs. It's particularly useful for applications that need to gather information on multiple authors simultaneously, reducing the number of individual API calls required. The endpoint accepts a list of author IDs and returns comprehensive details for each author, which may include their publications, citations, and other relevant academic information. While the exact response structure is not specified in the given schema, users can expect rich metadata about the requested authors.\",\n input: SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput,\n output: SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yDAAyDA,IAAAA,EAAE,OAAO;CAC7E,KAAKA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oWAAoW;CACtY,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2gBAA2gB,CAAC,CAAC,SAAS;AACpjB,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,0DAA0DA,IAAAA,EAAE,QAAQ;AAEjF,MAAa,oDAITC,eAAAA,OAAO,4DAA4D;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { semanticscholar } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-details-for-multiple-authors-at-once.d.ts
|
|
@@ -6,22 +8,7 @@ declare const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput: z.ZodObjec
|
|
|
6
8
|
fields: z.ZodOptional<z.ZodString>;
|
|
7
9
|
}, z.core.$strip>;
|
|
8
10
|
declare const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput: z.ZodUnknown;
|
|
9
|
-
declare const semanticscholarGetDetailsForMultipleAuthorsAtOnce:
|
|
10
|
-
ids: string[];
|
|
11
|
-
fields?: string | undefined;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
generic_api_key: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>;
|
|
11
|
+
declare const semanticscholarGetDetailsForMultipleAuthorsAtOnce: AppAction<typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput, typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput, typeof semanticscholar.credential>;
|
|
25
12
|
//#endregion
|
|
26
13
|
export { semanticscholarGetDetailsForMultipleAuthorsAtOnce };
|
|
27
14
|
//# sourceMappingURL=get-details-for-multiple-authors-at-once.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-details-for-multiple-authors-at-once.d.cts","names":[],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-details-for-multiple-authors-at-once.d.cts","names":[],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"mappings":";;;;;cAMa,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;cAItD,uDAAA,EAAuD,CAAA,CAAA,UAAc;AAAA,cAErE,iDAAA,EAAmD,SAAA,QACvD,sDAAA,SACA,uDAAA,SACA,eAAA,CAAgB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { semanticscholar } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/get-details-for-multiple-authors-at-once.d.ts
|
|
@@ -6,22 +8,7 @@ declare const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput: z.ZodObjec
|
|
|
6
8
|
fields: z.ZodOptional<z.ZodString>;
|
|
7
9
|
}, z.core.$strip>;
|
|
8
10
|
declare const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput: z.ZodUnknown;
|
|
9
|
-
declare const semanticscholarGetDetailsForMultipleAuthorsAtOnce:
|
|
10
|
-
ids: string[];
|
|
11
|
-
fields?: string | undefined;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
generic_api_key: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"semanticscholar", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>;
|
|
11
|
+
declare const semanticscholarGetDetailsForMultipleAuthorsAtOnce: AppAction<typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput, typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput, typeof semanticscholar.credential>;
|
|
25
12
|
//#endregion
|
|
26
13
|
export { semanticscholarGetDetailsForMultipleAuthorsAtOnce };
|
|
27
14
|
//# sourceMappingURL=get-details-for-multiple-authors-at-once.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-details-for-multiple-authors-at-once.d.mts","names":[],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-details-for-multiple-authors-at-once.d.mts","names":[],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"mappings":";;;;;cAMa,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;cAItD,uDAAA,EAAuD,CAAA,CAAA,UAAc;AAAA,cAErE,iDAAA,EAAmD,SAAA,QACvD,sDAAA,SACA,uDAAA,SACA,eAAA,CAAgB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-details-for-multiple-authors-at-once.mjs","names":[],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Semantic Scholar author IDs to retrieve details for. Author IDs are unique identifiers in the format of numeric strings (e.g., '144388777', '1688882'). You can obtain author IDs by searching for authors by name using the author search endpoint. The API will return author details for each valid ID, and null for any invalid or non-existent IDs.\"),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n}).describe(\"Request schema for `GetDetailsForMultipleAuthorsAtOnce`\");\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput = z.unknown();\n\nexport const semanticscholarGetDetailsForMultipleAuthorsAtOnce = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_AUTHORS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-authors-at-once\",\n name: \"Get details for multiple authors at once\",\n description: \"Retrieves detailed information for multiple authors from Semantic Scholar in a single API call. This endpoint allows users to efficiently fetch data for a batch of authors by providing their unique Semantic Scholar IDs. It's particularly useful for applications that need to gather information on multiple authors simultaneously, reducing the number of individual API calls required. The endpoint accepts a list of author IDs and returns comprehensive details for each author, which may include their publications, citations, and other relevant academic information. While the exact response structure is not specified in the given schema, users can expect rich metadata about the requested authors.\",\n input: SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput,\n output: SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-details-for-multiple-authors-at-once.mjs","names":[],"sources":["../../src/actions/get-details-for-multiple-authors-at-once.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput = z.object({\n ids: z.array(z.string()).describe(\"A list of Semantic Scholar author IDs to retrieve details for. Author IDs are unique identifiers in the format of numeric strings (e.g., '144388777', '1688882'). You can obtain author IDs by searching for authors by name using the author search endpoint. The API will return author details for each valid ID, and null for any invalid or non-existent IDs.\"),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n}).describe(\"Request schema for `GetDetailsForMultipleAuthorsAtOnce`\");\nexport const SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput = z.unknown();\n\nexport const semanticscholarGetDetailsForMultipleAuthorsAtOnce: AppAction<\n typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput,\n typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_AUTHORS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-authors-at-once\",\n name: \"Get details for multiple authors at once\",\n description: \"Retrieves detailed information for multiple authors from Semantic Scholar in a single API call. This endpoint allows users to efficiently fetch data for a batch of authors by providing their unique Semantic Scholar IDs. It's particularly useful for applications that need to gather information on multiple authors simultaneously, reducing the number of individual API calls required. The endpoint accepts a list of author IDs and returns comprehensive details for each author, which may include their publications, citations, and other relevant academic information. While the exact response structure is not specified in the given schema, users can expect rich metadata about the requested authors.\",\n input: SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput,\n output: SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput,\n});\n"],"mappings":";;;AAYA,MAAa,oDAIT,OAAO,4DAA4D;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoE,EAAE,OAAO;EAC7E,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oWAAoW;EACtY,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2gBAA2gB,CAAC,CAAC,SAAS;CACpjB,CAAC,CAAC,CAAC,SAAS,yDAWH;CACP,QAXqE,EAAE,QAW/D;AACV,CAAC"}
|