@keystrokehq/semanticscholar 0.1.4 → 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 -6
- 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 -6
- 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 -6
- 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 -6
- 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 -6
- 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 -6
- 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 -4
- package/dist/actions/details-about-a-paper.d.cts.map +1 -1
- package/dist/actions/details-about-a-paper.d.mts +3 -4
- 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 -6
- 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 -6
- 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 -4
- package/dist/actions/details-about-an-author.d.cts.map +1 -1
- package/dist/actions/details-about-an-author.d.mts +3 -4
- 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 -5
- package/dist/actions/get-dataset-diffs.d.cts.map +1 -1
- package/dist/actions/get-dataset-diffs.d.mts +3 -5
- 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 -4
- package/dist/actions/get-dataset.d.cts.map +1 -1
- package/dist/actions/get-dataset.d.mts +3 -4
- 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 -4
- 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 -4
- 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 -4
- 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 -4
- 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 -6
- package/dist/actions/get-paper-recommendations.d.cts.map +1 -1
- package/dist/actions/get-paper-recommendations.d.mts +3 -6
- 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 -6
- package/dist/actions/get-recommendations-for-paper.d.cts.map +1 -1
- package/dist/actions/get-recommendations-for-paper.d.mts +3 -6
- 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 -3
- package/dist/actions/get-release.d.cts.map +1 -1
- package/dist/actions/get-release.d.mts +3 -3
- 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 -1
- package/dist/actions/list-releases.d.cts.map +1 -1
- package/dist/actions/list-releases.d.mts +3 -1
- 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 -11
- package/dist/actions/paper-title-search.d.cts.map +1 -1
- package/dist/actions/paper-title-search.d.mts +3 -11
- 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 -13
- package/dist/actions/search-bulk-papers.d.cts.map +1 -1
- package/dist/actions/search-bulk-papers.d.mts +3 -13
- 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 -6
- package/dist/actions/search-for-authors-by-name.d.cts.map +1 -1
- package/dist/actions/search-for-authors-by-name.d.mts +3 -6
- 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 -13
- package/dist/actions/search-papers.d.cts.map +1 -1
- package/dist/actions/search-papers.d.mts +3 -13
- 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 -3
- package/dist/actions/suggest-paper-query-completions.d.cts.map +1 -1
- package/dist/actions/suggest-paper-query-completions.d.mts +3 -3
- 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 -12
- package/dist/actions/text-snippet-search.d.cts.map +1 -1
- package/dist/actions/text-snippet-search.d.mts +3 -12
- 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 +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- 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,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/details-about-an-author.d.ts
|
|
@@ -25,10 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
30
|
+
declare const semanticscholarDetailsAboutAnAuthor: AppAction<typeof SemanticscholarDetailsAboutAnAuthorInput, typeof SemanticscholarDetailsAboutAnAuthorOutput, typeof semanticscholar.credential>;
|
|
32
31
|
//#endregion
|
|
33
32
|
export { semanticscholarDetailsAboutAnAuthor };
|
|
34
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,10 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
30
|
+
declare const semanticscholarDetailsAboutAnAuthor: AppAction<typeof SemanticscholarDetailsAboutAnAuthorInput, typeof SemanticscholarDetailsAboutAnAuthorOutput, typeof semanticscholar.credential>;
|
|
32
31
|
//#endregion
|
|
33
32
|
export { semanticscholarDetailsAboutAnAuthor };
|
|
34
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,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B;AAcvD,MAAa,sCAIT,OAAO,2CAA2C;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAtBuD,EAAE,OAAO;EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,QAAQ,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,aAAa,sDAAsD,SAAS,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dataset-diffs.cjs","names":["z","action"],"sources":["../../src/actions/get-dataset-diffs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDatasetDiffsInput = z.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,11 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const semanticscholarGetDatasetDiffs: AppAction<typeof SemanticscholarGetDatasetDiffsInput, typeof SemanticscholarGetDatasetDiffsOutput, typeof semanticscholar.credential>;
|
|
25
23
|
//#endregion
|
|
26
24
|
export { semanticscholarGetDatasetDiffs };
|
|
27
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,11 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const semanticscholarGetDatasetDiffs: AppAction<typeof SemanticscholarGetDatasetDiffsInput, typeof SemanticscholarGetDatasetDiffsOutput, typeof semanticscholar.credential>;
|
|
25
23
|
//#endregion
|
|
26
24
|
export { semanticscholarGetDatasetDiffs };
|
|
27
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,10 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
|
+
declare const semanticscholarGetDataset: AppAction<typeof SemanticscholarGetDatasetInput, typeof SemanticscholarGetDatasetOutput, typeof semanticscholar.credential>;
|
|
18
17
|
//#endregion
|
|
19
18
|
export { semanticscholarGetDataset };
|
|
20
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,10 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
16
|
+
declare const semanticscholarGetDataset: AppAction<typeof SemanticscholarGetDatasetInput, typeof SemanticscholarGetDatasetOutput, typeof semanticscholar.credential>;
|
|
18
17
|
//#endregion
|
|
19
18
|
export { semanticscholarGetDataset };
|
|
20
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,10 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
11
|
+
declare const semanticscholarGetDetailsForMultipleAuthorsAtOnce: AppAction<typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput, typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput, typeof semanticscholar.credential>;
|
|
13
12
|
//#endregion
|
|
14
13
|
export { semanticscholarGetDetailsForMultipleAuthorsAtOnce };
|
|
15
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,10 +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]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
11
|
+
declare const semanticscholarGetDetailsForMultipleAuthorsAtOnce: AppAction<typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceInput, typeof SemanticscholarGetDetailsForMultipleAuthorsAtOnceOutput, typeof semanticscholar.credential>;
|
|
13
12
|
//#endregion
|
|
14
13
|
export { semanticscholarGetDetailsForMultipleAuthorsAtOnce };
|
|
15
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-details-for-multiple-papers-at-once.cjs","names":["z","action"],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceInput = z.object({\n ids: z.array(z.string()).describe(\"A list of paper IDs to retrieve (maximum 500 IDs per request). Supports multiple ID formats: Semantic Scholar Paper ID (e.g., '649def34f8be52c8b66281af98ae884c09aef38b'), CorpusId (e.g., 'CorpusId:37220927'), DOI (e.g., '10.1038/nature14539'), ArXiv ID (e.g., 'arXiv:1706.03762'), PubMed ID (e.g., 'PMID:29446767'), PubMed Central ID (e.g., 'PMCID:PMC5833129'), MAG ID, ACL ID, or paper URL. Papers not found will return null in the response array.\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. <p>Use a period (“.”) for fields that have version numbers or subfields, such as the <code>embedding</code>, <code>authors</code>, <code>citations</code>, and <code>references</code> fields: <ul> <li>When requesting <code>authors</code>, the <code>authorId</code> and <code>name</code> subfields are returned by default. To request other subfields, use the format <code>author.url,author.paperCount</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>citations</code> and <code>references</code>, the <code>paperId</code> and <code>title</code> subfields are returned by default. To request other subfields, use the format <code>citations.title,citations.abstract</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>embedding</code>, the default <a href=\\\"https://github.com/allenai/specter\\\">Spector embedding version</a> is v1. Specify <code>embedding.specter_v2</code> to select v2 embeddings.</li> </ul> Examples: <ul> <li><code>fields=title,url</code></li> <li><code>fields=title,embedding.specter_v2</code></li> <li><code>fields=title,authors,citations.title,citations.abstract</code></li> </ul>\").optional(),\n}).describe(\"Request schema for `GetDetailsForMultiplePapersAtOnce`\");\nconst SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the paper\").nullable().optional(),\n year: z.number().int().describe(\"Publication year\").nullable().optional(),\n title: z.string().describe(\"Paper title\").nullable().optional(),\n venue: z.string().describe(\"Publication venue\").nullable().optional(),\n authors: z.array(z.record(z.string(), z.unknown())).describe(\"List of authors with authorId, name, and optional subfields\").nullable().optional(),\n journal: z.record(z.string(), z.unknown()).describe(\"Journal information\").nullable().optional(),\n paperId: z.string().describe(\"Unique Semantic Scholar paper ID\").nullable().optional(),\n abstract: z.string().describe(\"Paper abstract\").nullable().optional(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers citing this paper\").nullable().optional(),\n embedding: z.record(z.string(), z.unknown()).describe(\"Paper embedding vector (SPECTER)\").nullable().optional(),\n references: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers referenced by this paper\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Fields of study\").nullable().optional(),\n openAccessPdf: z.record(z.string(), z.unknown()).describe(\"Open access PDF information\").nullable().optional(),\n referenceCount: z.number().int().describe(\"Number of references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(z.record(z.string(), z.unknown())).describe(\"Semantic Scholar fields of study with categories\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n publicationVenue: z.record(z.string(), z.unknown()).describe(\"Detailed publication venue information\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of influential citations\").nullable().optional(),\n}).passthrough().describe(\"Details for a single paper. Available fields vary based on the 'fields' parameter.\");\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput = z.object({\n details: z.array(SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema.nullable()).describe(\"Array of paper details. Each entry contains the requested fields for a paper. If a paper ID is not found, the corresponding entry will be null. Papers appear in the same order as the input IDs.\"),\n}).passthrough().describe(\"Response schema for `GetDetailsForMultiplePapersAtOnce`\");\n\nexport const semanticscholarGetDetailsForMultiplePapersAtOnce = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_PAPERS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-papers-at-once\",\n name: \"Get details for multiple papers at once\",\n description: \"Retrieve detailed information for multiple academic papers in a single API call using the Semantic Scholar paper batch endpoint. This endpoint efficiently fetches data for up to 500 papers at once, significantly reducing the number of individual API requests needed. Key features: - Accepts multiple paper ID formats (Semantic Scholar ID, CorpusId, DOI, ArXiv, PMID, etc.) - Customizable field selection to retrieve only needed data - Papers not found return null in the corresponding array position - Results maintain the same order as input IDs - Supports nested field queries (e.g., authors.name, citations.title) Use this endpoint when you have a list of known paper IDs and want to retrieve their details simultaneously, rather than making individual requests for each paper.\",\n input: SemanticscholarGetDetailsForMultiplePapersAtOnceInput,\n output: SemanticscholarGetDetailsForMultiplePapersAtOnceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-details-for-multiple-papers-at-once.cjs","names":["z","action"],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceInput = z.object({\n ids: z.array(z.string()).describe(\"A list of paper IDs to retrieve (maximum 500 IDs per request). Supports multiple ID formats: Semantic Scholar Paper ID (e.g., '649def34f8be52c8b66281af98ae884c09aef38b'), CorpusId (e.g., 'CorpusId:37220927'), DOI (e.g., '10.1038/nature14539'), ArXiv ID (e.g., 'arXiv:1706.03762'), PubMed ID (e.g., 'PMID:29446767'), PubMed Central ID (e.g., 'PMCID:PMC5833129'), MAG ID, ACL ID, or paper URL. Papers not found will return null in the response array.\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. <p>Use a period (“.”) for fields that have version numbers or subfields, such as the <code>embedding</code>, <code>authors</code>, <code>citations</code>, and <code>references</code> fields: <ul> <li>When requesting <code>authors</code>, the <code>authorId</code> and <code>name</code> subfields are returned by default. To request other subfields, use the format <code>author.url,author.paperCount</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>citations</code> and <code>references</code>, the <code>paperId</code> and <code>title</code> subfields are returned by default. To request other subfields, use the format <code>citations.title,citations.abstract</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>embedding</code>, the default <a href=\\\"https://github.com/allenai/specter\\\">Spector embedding version</a> is v1. Specify <code>embedding.specter_v2</code> to select v2 embeddings.</li> </ul> Examples: <ul> <li><code>fields=title,url</code></li> <li><code>fields=title,embedding.specter_v2</code></li> <li><code>fields=title,authors,citations.title,citations.abstract</code></li> </ul>\").optional(),\n}).describe(\"Request schema for `GetDetailsForMultiplePapersAtOnce`\");\nconst SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the paper\").nullable().optional(),\n year: z.number().int().describe(\"Publication year\").nullable().optional(),\n title: z.string().describe(\"Paper title\").nullable().optional(),\n venue: z.string().describe(\"Publication venue\").nullable().optional(),\n authors: z.array(z.record(z.string(), z.unknown())).describe(\"List of authors with authorId, name, and optional subfields\").nullable().optional(),\n journal: z.record(z.string(), z.unknown()).describe(\"Journal information\").nullable().optional(),\n paperId: z.string().describe(\"Unique Semantic Scholar paper ID\").nullable().optional(),\n abstract: z.string().describe(\"Paper abstract\").nullable().optional(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers citing this paper\").nullable().optional(),\n embedding: z.record(z.string(), z.unknown()).describe(\"Paper embedding vector (SPECTER)\").nullable().optional(),\n references: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers referenced by this paper\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Fields of study\").nullable().optional(),\n openAccessPdf: z.record(z.string(), z.unknown()).describe(\"Open access PDF information\").nullable().optional(),\n referenceCount: z.number().int().describe(\"Number of references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(z.record(z.string(), z.unknown())).describe(\"Semantic Scholar fields of study with categories\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n publicationVenue: z.record(z.string(), z.unknown()).describe(\"Detailed publication venue information\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of influential citations\").nullable().optional(),\n}).passthrough().describe(\"Details for a single paper. Available fields vary based on the 'fields' parameter.\");\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput = z.object({\n details: z.array(SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema.nullable()).describe(\"Array of paper details. Each entry contains the requested fields for a paper. If a paper ID is not found, the corresponding entry will be null. Papers appear in the same order as the input IDs.\"),\n}).passthrough().describe(\"Response schema for `GetDetailsForMultiplePapersAtOnce`\");\n\nexport const semanticscholarGetDetailsForMultiplePapersAtOnce: AppAction<\n typeof SemanticscholarGetDetailsForMultiplePapersAtOnceInput,\n typeof SemanticscholarGetDetailsForMultiplePapersAtOnceOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_PAPERS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-papers-at-once\",\n name: \"Get details for multiple papers at once\",\n description: \"Retrieve detailed information for multiple academic papers in a single API call using the Semantic Scholar paper batch endpoint. This endpoint efficiently fetches data for up to 500 papers at once, significantly reducing the number of individual API requests needed. Key features: - Accepts multiple paper ID formats (Semantic Scholar ID, CorpusId, DOI, ArXiv, PMID, etc.) - Customizable field selection to retrieve only needed data - Papers not found return null in the corresponding array position - Results maintain the same order as input IDs - Supports nested field queries (e.g., authors.name, citations.title) Use this endpoint when you have a list of known paper IDs and want to retrieve their details simultaneously, rather than making individual requests for each paper.\",\n input: SemanticscholarGetDetailsForMultiplePapersAtOnceInput,\n output: SemanticscholarGetDetailsForMultiplePapersAtOnceOutput,\n});\n"],"mappings":"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"}
|
|
@@ -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-papers-at-once.d.ts
|
|
@@ -29,10 +31,7 @@ declare const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput: z.ZodObjec
|
|
|
29
31
|
influentialCitationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
32
|
}, z.core.$loose>>>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const semanticscholarGetDetailsForMultiplePapersAtOnce:
|
|
33
|
-
ids?: string[] | undefined;
|
|
34
|
-
fields?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
34
|
+
declare const semanticscholarGetDetailsForMultiplePapersAtOnce: AppAction<typeof SemanticscholarGetDetailsForMultiplePapersAtOnceInput, typeof SemanticscholarGetDetailsForMultiplePapersAtOnceOutput, typeof semanticscholar.credential>;
|
|
36
35
|
//#endregion
|
|
37
36
|
export { semanticscholarGetDetailsForMultiplePapersAtOnce };
|
|
38
37
|
//# sourceMappingURL=get-details-for-multiple-papers-at-once.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-details-for-multiple-papers-at-once.d.cts","names":[],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-details-for-multiple-papers-at-once.d.cts","names":[],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"mappings":";;;;;cAMa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;cA0BrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAItD,gDAAA,EAAkD,SAAA,QACtD,qDAAA,SACA,sDAAA,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-papers-at-once.d.ts
|
|
@@ -29,10 +31,7 @@ declare const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput: z.ZodObjec
|
|
|
29
31
|
influentialCitationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
30
32
|
}, z.core.$loose>>>;
|
|
31
33
|
}, z.core.$loose>;
|
|
32
|
-
declare const semanticscholarGetDetailsForMultiplePapersAtOnce:
|
|
33
|
-
ids?: string[] | undefined;
|
|
34
|
-
fields?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
34
|
+
declare const semanticscholarGetDetailsForMultiplePapersAtOnce: AppAction<typeof SemanticscholarGetDetailsForMultiplePapersAtOnceInput, typeof SemanticscholarGetDetailsForMultiplePapersAtOnceOutput, typeof semanticscholar.credential>;
|
|
36
35
|
//#endregion
|
|
37
36
|
export { semanticscholarGetDetailsForMultiplePapersAtOnce };
|
|
38
37
|
//# sourceMappingURL=get-details-for-multiple-papers-at-once.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-details-for-multiple-papers-at-once.d.mts","names":[],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-details-for-multiple-papers-at-once.d.mts","names":[],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"mappings":";;;;;cAMa,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;cA0BrD,sDAAA,EAAsD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAItD,gDAAA,EAAkD,SAAA,QACtD,qDAAA,SACA,sDAAA,SACA,eAAA,CAAgB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-details-for-multiple-papers-at-once.mjs","names":[],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceInput = z.object({\n ids: z.array(z.string()).describe(\"A list of paper IDs to retrieve (maximum 500 IDs per request). Supports multiple ID formats: Semantic Scholar Paper ID (e.g., '649def34f8be52c8b66281af98ae884c09aef38b'), CorpusId (e.g., 'CorpusId:37220927'), DOI (e.g., '10.1038/nature14539'), ArXiv ID (e.g., 'arXiv:1706.03762'), PubMed ID (e.g., 'PMID:29446767'), PubMed Central ID (e.g., 'PMCID:PMC5833129'), MAG ID, ACL ID, or paper URL. Papers not found will return null in the response array.\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. <p>Use a period (“.”) for fields that have version numbers or subfields, such as the <code>embedding</code>, <code>authors</code>, <code>citations</code>, and <code>references</code> fields: <ul> <li>When requesting <code>authors</code>, the <code>authorId</code> and <code>name</code> subfields are returned by default. To request other subfields, use the format <code>author.url,author.paperCount</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>citations</code> and <code>references</code>, the <code>paperId</code> and <code>title</code> subfields are returned by default. To request other subfields, use the format <code>citations.title,citations.abstract</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>embedding</code>, the default <a href=\\\"https://github.com/allenai/specter\\\">Spector embedding version</a> is v1. Specify <code>embedding.specter_v2</code> to select v2 embeddings.</li> </ul> Examples: <ul> <li><code>fields=title,url</code></li> <li><code>fields=title,embedding.specter_v2</code></li> <li><code>fields=title,authors,citations.title,citations.abstract</code></li> </ul>\").optional(),\n}).describe(\"Request schema for `GetDetailsForMultiplePapersAtOnce`\");\nconst SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the paper\").nullable().optional(),\n year: z.number().int().describe(\"Publication year\").nullable().optional(),\n title: z.string().describe(\"Paper title\").nullable().optional(),\n venue: z.string().describe(\"Publication venue\").nullable().optional(),\n authors: z.array(z.record(z.string(), z.unknown())).describe(\"List of authors with authorId, name, and optional subfields\").nullable().optional(),\n journal: z.record(z.string(), z.unknown()).describe(\"Journal information\").nullable().optional(),\n paperId: z.string().describe(\"Unique Semantic Scholar paper ID\").nullable().optional(),\n abstract: z.string().describe(\"Paper abstract\").nullable().optional(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers citing this paper\").nullable().optional(),\n embedding: z.record(z.string(), z.unknown()).describe(\"Paper embedding vector (SPECTER)\").nullable().optional(),\n references: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers referenced by this paper\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Fields of study\").nullable().optional(),\n openAccessPdf: z.record(z.string(), z.unknown()).describe(\"Open access PDF information\").nullable().optional(),\n referenceCount: z.number().int().describe(\"Number of references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(z.record(z.string(), z.unknown())).describe(\"Semantic Scholar fields of study with categories\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n publicationVenue: z.record(z.string(), z.unknown()).describe(\"Detailed publication venue information\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of influential citations\").nullable().optional(),\n}).passthrough().describe(\"Details for a single paper. Available fields vary based on the 'fields' parameter.\");\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput = z.object({\n details: z.array(SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema.nullable()).describe(\"Array of paper details. Each entry contains the requested fields for a paper. If a paper ID is not found, the corresponding entry will be null. Papers appear in the same order as the input IDs.\"),\n}).passthrough().describe(\"Response schema for `GetDetailsForMultiplePapersAtOnce`\");\n\nexport const semanticscholarGetDetailsForMultiplePapersAtOnce = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_PAPERS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-papers-at-once\",\n name: \"Get details for multiple papers at once\",\n description: \"Retrieve detailed information for multiple academic papers in a single API call using the Semantic Scholar paper batch endpoint. This endpoint efficiently fetches data for up to 500 papers at once, significantly reducing the number of individual API requests needed. Key features: - Accepts multiple paper ID formats (Semantic Scholar ID, CorpusId, DOI, ArXiv, PMID, etc.) - Customizable field selection to retrieve only needed data - Papers not found return null in the corresponding array position - Results maintain the same order as input IDs - Supports nested field queries (e.g., authors.name, citations.title) Use this endpoint when you have a list of known paper IDs and want to retrieve their details simultaneously, rather than making individual requests for each paper.\",\n input: SemanticscholarGetDetailsForMultiplePapersAtOnceInput,\n output: SemanticscholarGetDetailsForMultiplePapersAtOnceOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-details-for-multiple-papers-at-once.mjs","names":[],"sources":["../../src/actions/get-details-for-multiple-papers-at-once.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { semanticscholar } from \"../app\";\n\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceInput = z.object({\n ids: z.array(z.string()).describe(\"A list of paper IDs to retrieve (maximum 500 IDs per request). Supports multiple ID formats: Semantic Scholar Paper ID (e.g., '649def34f8be52c8b66281af98ae884c09aef38b'), CorpusId (e.g., 'CorpusId:37220927'), DOI (e.g., '10.1038/nature14539'), ArXiv ID (e.g., 'arXiv:1706.03762'), PubMed ID (e.g., 'PMID:29446767'), PubMed Central ID (e.g., 'PMCID:PMC5833129'), MAG ID, ACL ID, or paper URL. Papers not found will return null in the response array.\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. <p>Use a period (“.”) for fields that have version numbers or subfields, such as the <code>embedding</code>, <code>authors</code>, <code>citations</code>, and <code>references</code> fields: <ul> <li>When requesting <code>authors</code>, the <code>authorId</code> and <code>name</code> subfields are returned by default. To request other subfields, use the format <code>author.url,author.paperCount</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>citations</code> and <code>references</code>, the <code>paperId</code> and <code>title</code> subfields are returned by default. To request other subfields, use the format <code>citations.title,citations.abstract</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>embedding</code>, the default <a href=\\\"https://github.com/allenai/specter\\\">Spector embedding version</a> is v1. Specify <code>embedding.specter_v2</code> to select v2 embeddings.</li> </ul> Examples: <ul> <li><code>fields=title,url</code></li> <li><code>fields=title,embedding.specter_v2</code></li> <li><code>fields=title,authors,citations.title,citations.abstract</code></li> </ul>\").optional(),\n}).describe(\"Request schema for `GetDetailsForMultiplePapersAtOnce`\");\nconst SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the paper\").nullable().optional(),\n year: z.number().int().describe(\"Publication year\").nullable().optional(),\n title: z.string().describe(\"Paper title\").nullable().optional(),\n venue: z.string().describe(\"Publication venue\").nullable().optional(),\n authors: z.array(z.record(z.string(), z.unknown())).describe(\"List of authors with authorId, name, and optional subfields\").nullable().optional(),\n journal: z.record(z.string(), z.unknown()).describe(\"Journal information\").nullable().optional(),\n paperId: z.string().describe(\"Unique Semantic Scholar paper ID\").nullable().optional(),\n abstract: z.string().describe(\"Paper abstract\").nullable().optional(),\n citations: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers citing this paper\").nullable().optional(),\n embedding: z.record(z.string(), z.unknown()).describe(\"Paper embedding vector (SPECTER)\").nullable().optional(),\n references: z.array(z.record(z.string(), z.unknown())).describe(\"List of papers referenced by this paper\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Fields of study\").nullable().optional(),\n openAccessPdf: z.record(z.string(), z.unknown()).describe(\"Open access PDF information\").nullable().optional(),\n referenceCount: z.number().int().describe(\"Number of references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(z.record(z.string(), z.unknown())).describe(\"Semantic Scholar fields of study with categories\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n publicationVenue: z.record(z.string(), z.unknown()).describe(\"Detailed publication venue information\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of influential citations\").nullable().optional(),\n}).passthrough().describe(\"Details for a single paper. Available fields vary based on the 'fields' parameter.\");\nexport const SemanticscholarGetDetailsForMultiplePapersAtOnceOutput = z.object({\n details: z.array(SemanticscholarGetDetailsForMultiplePapersAtOnce_PaperDetailsSchema.nullable()).describe(\"Array of paper details. Each entry contains the requested fields for a paper. If a paper ID is not found, the corresponding entry will be null. Papers appear in the same order as the input IDs.\"),\n}).passthrough().describe(\"Response schema for `GetDetailsForMultiplePapersAtOnce`\");\n\nexport const semanticscholarGetDetailsForMultiplePapersAtOnce: AppAction<\n typeof SemanticscholarGetDetailsForMultiplePapersAtOnceInput,\n typeof SemanticscholarGetDetailsForMultiplePapersAtOnceOutput,\n typeof semanticscholar.credential\n> = action(\"SEMANTICSCHOLAR_GET_DETAILS_FOR_MULTIPLE_PAPERS_AT_ONCE\", {\n slug: \"semanticscholar-get-details-for-multiple-papers-at-once\",\n name: \"Get details for multiple papers at once\",\n description: \"Retrieve detailed information for multiple academic papers in a single API call using the Semantic Scholar paper batch endpoint. This endpoint efficiently fetches data for up to 500 papers at once, significantly reducing the number of individual API requests needed. Key features: - Accepts multiple paper ID formats (Semantic Scholar ID, CorpusId, DOI, ArXiv, PMID, etc.) - Customizable field selection to retrieve only needed data - Papers not found return null in the corresponding array position - Results maintain the same order as input IDs - Supports nested field queries (e.g., authors.name, citations.title) Use this endpoint when you have a list of known paper IDs and want to retrieve their details simultaneously, rather than making individual requests for each paper.\",\n input: SemanticscholarGetDetailsForMultiplePapersAtOnceInput,\n output: SemanticscholarGetDetailsForMultiplePapersAtOnceOutput,\n});\n"],"mappings":"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"}
|