@keystrokehq/semanticscholar 0.1.0 → 0.1.2
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 +2 -2
- package/dist/actions/details-about-a-paper-s-authors.cjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-authors.d.cts +28 -3
- 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 +28 -3
- package/dist/actions/details-about-a-paper-s-authors.d.mts.map +1 -1
- package/dist/actions/details-about-a-paper-s-authors.mjs +2 -2
- package/dist/actions/details-about-a-paper-s-authors.mjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-citations.cjs +2 -2
- package/dist/actions/details-about-a-paper-s-citations.cjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-citations.d.cts +69 -3
- 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 +69 -3
- package/dist/actions/details-about-a-paper-s-citations.d.mts.map +1 -1
- package/dist/actions/details-about-a-paper-s-citations.mjs +2 -2
- package/dist/actions/details-about-a-paper-s-citations.mjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-references.cjs +3 -3
- package/dist/actions/details-about-a-paper-s-references.cjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-references.d.cts +94 -3
- 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 +94 -3
- package/dist/actions/details-about-a-paper-s-references.d.mts.map +1 -1
- package/dist/actions/details-about-a-paper-s-references.mjs +3 -3
- package/dist/actions/details-about-a-paper-s-references.mjs.map +1 -1
- package/dist/actions/details-about-a-paper.cjs +1 -1
- package/dist/actions/details-about-a-paper.cjs.map +1 -1
- package/dist/actions/details-about-a-paper.d.cts +94 -3
- package/dist/actions/details-about-a-paper.d.cts.map +1 -1
- package/dist/actions/details-about-a-paper.d.mts +94 -3
- package/dist/actions/details-about-a-paper.d.mts.map +1 -1
- package/dist/actions/details-about-a-paper.mjs +1 -1
- package/dist/actions/details-about-a-paper.mjs.map +1 -1
- package/dist/actions/details-about-an-author-s-papers.cjs +2 -2
- package/dist/actions/details-about-an-author-s-papers.cjs.map +1 -1
- package/dist/actions/details-about-an-author-s-papers.d.cts +93 -3
- 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 +93 -3
- package/dist/actions/details-about-an-author-s-papers.d.mts.map +1 -1
- package/dist/actions/details-about-an-author-s-papers.mjs +2 -2
- package/dist/actions/details-about-an-author-s-papers.mjs.map +1 -1
- package/dist/actions/details-about-an-author.cjs +2 -2
- package/dist/actions/details-about-an-author.cjs.map +1 -1
- package/dist/actions/details-about-an-author.d.cts +28 -3
- package/dist/actions/details-about-an-author.d.cts.map +1 -1
- package/dist/actions/details-about-an-author.d.mts +28 -3
- package/dist/actions/details-about-an-author.d.mts.map +1 -1
- package/dist/actions/details-about-an-author.mjs +2 -2
- package/dist/actions/details-about-an-author.mjs.map +1 -1
- package/dist/actions/get-dataset-diffs.cjs +5 -5
- package/dist/actions/get-dataset-diffs.cjs.map +1 -1
- package/dist/actions/get-dataset-diffs.d.cts +21 -3
- package/dist/actions/get-dataset-diffs.d.cts.map +1 -1
- package/dist/actions/get-dataset-diffs.d.mts +21 -3
- package/dist/actions/get-dataset-diffs.d.mts.map +1 -1
- package/dist/actions/get-dataset-diffs.mjs +5 -5
- package/dist/actions/get-dataset-diffs.mjs.map +1 -1
- package/dist/actions/get-dataset.cjs +3 -3
- package/dist/actions/get-dataset.cjs.map +1 -1
- package/dist/actions/get-dataset.d.cts +14 -3
- package/dist/actions/get-dataset.d.cts.map +1 -1
- package/dist/actions/get-dataset.d.mts +14 -3
- package/dist/actions/get-dataset.d.mts.map +1 -1
- package/dist/actions/get-dataset.mjs +3 -3
- package/dist/actions/get-dataset.mjs.map +1 -1
- 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 +9 -3
- 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 +9 -3
- 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.map +1 -1
- 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 +32 -3
- 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 +32 -3
- 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.map +1 -1
- package/dist/actions/get-paper-recommendations.cjs +1 -1
- package/dist/actions/get-paper-recommendations.cjs.map +1 -1
- package/dist/actions/get-paper-recommendations.d.cts +70 -3
- package/dist/actions/get-paper-recommendations.d.cts.map +1 -1
- package/dist/actions/get-paper-recommendations.d.mts +70 -3
- package/dist/actions/get-paper-recommendations.d.mts.map +1 -1
- package/dist/actions/get-paper-recommendations.mjs +1 -1
- package/dist/actions/get-paper-recommendations.mjs.map +1 -1
- package/dist/actions/get-recommendations-for-paper.cjs +1 -1
- package/dist/actions/get-recommendations-for-paper.cjs.map +1 -1
- package/dist/actions/get-recommendations-for-paper.d.cts +72 -3
- package/dist/actions/get-recommendations-for-paper.d.cts.map +1 -1
- package/dist/actions/get-recommendations-for-paper.d.mts +72 -3
- package/dist/actions/get-recommendations-for-paper.d.mts.map +1 -1
- package/dist/actions/get-recommendations-for-paper.mjs +1 -1
- package/dist/actions/get-recommendations-for-paper.mjs.map +1 -1
- package/dist/actions/get-release.cjs +5 -5
- package/dist/actions/get-release.cjs.map +1 -1
- package/dist/actions/get-release.d.cts +15 -3
- package/dist/actions/get-release.d.cts.map +1 -1
- package/dist/actions/get-release.d.mts +15 -3
- package/dist/actions/get-release.d.mts.map +1 -1
- package/dist/actions/get-release.mjs +5 -5
- package/dist/actions/get-release.mjs.map +1 -1
- package/dist/actions/list-releases.cjs.map +1 -1
- package/dist/actions/list-releases.d.cts +5 -3
- package/dist/actions/list-releases.d.cts.map +1 -1
- package/dist/actions/list-releases.d.mts +5 -3
- package/dist/actions/list-releases.d.mts.map +1 -1
- package/dist/actions/list-releases.mjs.map +1 -1
- package/dist/actions/paper-title-search.cjs +1 -1
- package/dist/actions/paper-title-search.cjs.map +1 -1
- package/dist/actions/paper-title-search.d.cts +99 -3
- package/dist/actions/paper-title-search.d.cts.map +1 -1
- package/dist/actions/paper-title-search.d.mts +99 -3
- package/dist/actions/paper-title-search.d.mts.map +1 -1
- package/dist/actions/paper-title-search.mjs +1 -1
- package/dist/actions/paper-title-search.mjs.map +1 -1
- package/dist/actions/search-bulk-papers.cjs +2 -2
- package/dist/actions/search-bulk-papers.cjs.map +1 -1
- package/dist/actions/search-bulk-papers.d.cts +85 -3
- package/dist/actions/search-bulk-papers.d.cts.map +1 -1
- package/dist/actions/search-bulk-papers.d.mts +85 -3
- package/dist/actions/search-bulk-papers.d.mts.map +1 -1
- package/dist/actions/search-bulk-papers.mjs +2 -2
- package/dist/actions/search-bulk-papers.mjs.map +1 -1
- package/dist/actions/search-for-authors-by-name.cjs +3 -3
- package/dist/actions/search-for-authors-by-name.cjs.map +1 -1
- package/dist/actions/search-for-authors-by-name.d.cts +28 -3
- package/dist/actions/search-for-authors-by-name.d.cts.map +1 -1
- package/dist/actions/search-for-authors-by-name.d.mts +28 -3
- package/dist/actions/search-for-authors-by-name.d.mts.map +1 -1
- package/dist/actions/search-for-authors-by-name.mjs +3 -3
- package/dist/actions/search-for-authors-by-name.mjs.map +1 -1
- package/dist/actions/search-papers.cjs +3 -3
- package/dist/actions/search-papers.cjs.map +1 -1
- package/dist/actions/search-papers.d.cts +99 -3
- package/dist/actions/search-papers.d.cts.map +1 -1
- package/dist/actions/search-papers.d.mts +99 -3
- package/dist/actions/search-papers.d.mts.map +1 -1
- package/dist/actions/search-papers.mjs +3 -3
- package/dist/actions/search-papers.mjs.map +1 -1
- package/dist/actions/suggest-paper-query-completions.cjs +3 -3
- package/dist/actions/suggest-paper-query-completions.cjs.map +1 -1
- package/dist/actions/suggest-paper-query-completions.d.cts +13 -3
- package/dist/actions/suggest-paper-query-completions.d.cts.map +1 -1
- package/dist/actions/suggest-paper-query-completions.d.mts +13 -3
- package/dist/actions/suggest-paper-query-completions.d.mts.map +1 -1
- package/dist/actions/suggest-paper-query-completions.mjs +3 -3
- package/dist/actions/suggest-paper-query-completions.mjs.map +1 -1
- package/dist/actions/text-snippet-search.cjs.map +1 -1
- package/dist/actions/text-snippet-search.d.cts +62 -3
- package/dist/actions/text-snippet-search.d.cts.map +1 -1
- package/dist/actions/text-snippet-search.d.mts +62 -3
- package/dist/actions/text-snippet-search.d.mts.map +1 -1
- package/dist/actions/text-snippet-search.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,99 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/details-about-an-author-s-papers.d.ts
|
|
4
|
-
declare const SemanticscholarDetailsAboutAnAuthorSPapersInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SemanticscholarDetailsAboutAnAuthorSPapersInput: z.ZodObject<{
|
|
5
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
7
|
+
offset: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
8
|
+
author_id: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const SemanticscholarDetailsAboutAnAuthorSPapersOutput: z.ZodObject<{
|
|
11
|
+
data: z.ZodArray<z.ZodObject<{
|
|
12
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
tldr: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
}, z.core.$strip>>>;
|
|
17
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
18
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
21
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
hIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
affiliations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
|
+
citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
}, z.core.$strip>>>>;
|
|
28
|
+
journal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
29
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
pages: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
paperId: z.ZodNullable<z.ZodString>;
|
|
34
|
+
abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
corpusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
36
|
+
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
37
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
39
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
intent: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
42
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
43
|
+
paperId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
|
+
isInfluential: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
45
|
+
}, z.core.$strip>>>>;
|
|
46
|
+
embedding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
47
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
vector: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
50
|
+
references: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
51
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
53
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
intent: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
56
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
57
|
+
paperId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
isInfluential: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
59
|
+
}, z.core.$strip>>>>;
|
|
60
|
+
externalIds: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
61
|
+
ACL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
DOI: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
MAG: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
PMID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
65
|
+
ArXiv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
PMCID: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
CorpusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
isOpenAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
70
|
+
citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
71
|
+
fieldsOfStudy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
72
|
+
openAccessPdf: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
73
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
74
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
|
+
}, z.core.$strip>>>;
|
|
76
|
+
citationStyles: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
77
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
}, z.core.$strip>>>;
|
|
79
|
+
referenceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
80
|
+
publicationDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
81
|
+
s2FieldsOfStudy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
82
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
}, z.core.$strip>>>>;
|
|
85
|
+
publicationTypes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
86
|
+
influentialCitationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
89
|
+
offset: z.ZodNullable<z.ZodNumber>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
declare const semanticscholarDetailsAboutAnAuthorSPapers: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
92
|
+
author_id: string;
|
|
93
|
+
limit?: number | undefined;
|
|
94
|
+
fields?: string | undefined;
|
|
95
|
+
offset?: number | undefined;
|
|
96
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
97
|
//#endregion
|
|
8
98
|
export { semanticscholarDetailsAboutAnAuthorSPapers };
|
|
9
99
|
//# sourceMappingURL=details-about-an-author-s-papers.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details-about-an-author-s-papers.d.mts","names":[],"sources":["../../src/actions/details-about-an-author-s-papers.ts"],"mappings":";;;cAIa,+CAAA,
|
|
1
|
+
{"version":3,"file":"details-about-an-author-s-papers.d.mts","names":[],"sources":["../../src/actions/details-about-an-author-s-papers.ts"],"mappings":";;;cAIa,+CAAA,EAA+C,CAAA,CAAA,SAAA;;;;;;cAmF/C,gDAAA,EAAgD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMhD,0CAAA,gCAA0C,wBAAA"}
|
|
@@ -64,7 +64,7 @@ const SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema = z.object({
|
|
|
64
64
|
venue: z.string().describe("Extracted publication venue of the paper").nullable().optional(),
|
|
65
65
|
authors: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema).describe("List of paper authors").nullable().optional(),
|
|
66
66
|
journal: SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema.nullable().optional(),
|
|
67
|
-
paperId: z.string().describe("Semantic Scholar unique identifier for the paper"),
|
|
67
|
+
paperId: z.string().describe("Semantic Scholar unique identifier for the paper").nullable(),
|
|
68
68
|
abstract: z.string().describe("Extracted abstract of the paper").nullable().optional(),
|
|
69
69
|
corpusId: z.number().int().describe("Semantic Scholar Corpus ID (S2CID)").nullable().optional(),
|
|
70
70
|
citations: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe("Papers that cite this paper (max 10,000 per batch)").nullable().optional(),
|
|
@@ -90,7 +90,7 @@ const semanticscholarDetailsAboutAnAuthorSPapers = action("SEMANTICSCHOLAR_DETAI
|
|
|
90
90
|
output: z.object({
|
|
91
91
|
data: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema).describe("Collection of paper objects"),
|
|
92
92
|
next: z.number().int().describe("Starting position of the subsequent batch; omitted if no additional data exists").nullable().optional(),
|
|
93
|
-
offset: z.number().int().describe("Starting position for this batch of results")
|
|
93
|
+
offset: z.number().int().describe("Starting position for this batch of results").nullable()
|
|
94
94
|
}).describe("Response schema for `DetailsAboutAnAuthorSPapers`")
|
|
95
95
|
});
|
|
96
96
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details-about-an-author-s-papers.mjs","names":[],"sources":["../../src/actions/details-about-an-author-s-papers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorSPapersInput: z.ZodTypeAny = z.object({\n limit: z.number().int().default(100).describe(\"The maximum number of results to return.<br> Must be <= 1000\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of the <code>data</code> array in Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. To fetch more references or citations per paper, reduce the number of papers in the batch with <code>limit=</code>. <p>Use a period (“.”) for subfields of <code>citations</code> and <code>references</code>.<br><br> Examples: <ul> <li><code>fields=title,fieldsOfStudy,references</code></li> <li><code>fields=abstract,citations.url,citations.venue</code></li> </ul>\").optional(),\n offset: z.number().int().default(0).describe(\"Used for pagination. When returning a list of results, start with the element at this position in the list.\").optional(),\n author_id: z.string().describe(\"Author Id\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthorSPapers`\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Summary text\").nullable().optional(),\n model: z.string().describe(\"Model used to generate summary\").nullable().optional(),\n}).describe(\"AI-generated summary of the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar author identifier\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Author's institutional affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Author's total citation count\").nullable().optional(),\n}).describe(\"Author information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Journal name\").nullable().optional(),\n pages: z.string().describe(\"Page range\").nullable().optional(),\n volume: z.string().describe(\"Volume number\").nullable().optional(),\n}).describe(\"Journal publication information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to paper\").nullable().optional(),\n year: z.number().int().describe(\"Publication year\").nullable().optional(),\n title: z.string().describe(\"Paper title\").nullable().optional(),\n venue: z.string().describe(\"Publication venue\").nullable().optional(),\n intent: z.array(z.string()).describe(\"Citation intent categories\").nullable().optional(),\n authors: z.array(z.unknown()).describe(\"Authors of the paper\").nullable().optional(),\n paperId: z.string().describe(\"Paper identifier\").nullable().optional(),\n isInfluential: z.boolean().describe(\"Whether this is an influential reference/citation\").nullable().optional(),\n}).describe(\"Reference or citation paper information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Embedding model name\").nullable().optional(),\n vector: z.array(z.number()).describe(\"Embedding vector values\").nullable().optional(),\n}).describe(\"SPECTER2 embedding vectors for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema: z.ZodTypeAny = z.object({\n ACL: z.string().describe(\"ACL Anthology identifier\").nullable().optional(),\n DOI: z.string().describe(\"Digital Object Identifier\").nullable().optional(),\n MAG: z.string().describe(\"Microsoft Academic Graph identifier\").nullable().optional(),\n PMID: z.string().describe(\"PubMed identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"ArXiv identifier\").nullable().optional(),\n PMCID: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n CorpusId: z.number().int().describe(\"Corpus identifier\").nullable().optional(),\n}).describe(\"External identifiers for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to the open access PDF\").nullable().optional(),\n status: z.string().describe(\"Open access status (e.g., GOLD, GREEN, BRONZE, HYBRID)\").nullable().optional(),\n}).describe(\"Open access PDF link and licensing information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema: z.ZodTypeAny = z.object({\n bibtex: z.string().describe(\"BibTeX formatted citation\").nullable().optional(),\n}).describe(\"Formatted citations in various styles\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema: z.ZodTypeAny = z.object({\n source: z.string().describe(\"Source of the classification\").nullable().optional(),\n category: z.string().describe(\"Field of study category\").nullable().optional(),\n}).describe(\"Semantic Scholar's field of study classification with score\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the paper\").nullable().optional(),\n tldr: SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema.nullable().optional(),\n year: z.number().int().describe(\"Publication year of the paper\").nullable().optional(),\n title: z.string().describe(\"Title of the paper\").nullable().optional(),\n venue: z.string().describe(\"Extracted publication venue of the paper\").nullable().optional(),\n authors: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema).describe(\"List of paper authors\").nullable().optional(),\n journal: SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar unique identifier for the paper\"),\n abstract: z.string().describe(\"Extracted abstract of the paper\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar Corpus ID (S2CID)\").nullable().optional(),\n citations: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers that cite this paper (max 10,000 per batch)\").nullable().optional(),\n embedding: SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema.nullable().optional(),\n references: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers referenced by this paper (max 10,000 per batch)\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether the paper is open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations received by this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Academic field classifications\").nullable().optional(),\n openAccessPdf: SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total number of references made by this paper\").nullable().optional(),\n publicationDate: z.string().describe(\"Full publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema).describe(\"Semantic Scholar's field of study classifications with scores\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of highly influential citations\").nullable().optional(),\n}).describe(\"Paper object with detailed information\");\nexport const SemanticscholarDetailsAboutAnAuthorSPapersOutput: z.ZodTypeAny = z.object({\n data: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema).describe(\"Collection of paper objects\"),\n next: z.number().int().describe(\"Starting position of the subsequent batch; omitted if no additional data exists\").nullable().optional(),\n offset: z.number().int().describe(\"Starting position for this batch of results\"),\n}).describe(\"Response schema for `DetailsAboutAnAuthorSPapers`\");\n\nexport const semanticscholarDetailsAboutAnAuthorSPapers = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR_S_PAPERS\", {\n slug: \"semanticscholar-details-about-an-author-s-papers\",\n name: \"Details about an author s papers\",\n description: \"Retrieves a list of papers authored or co-authored by a specific researcher identified by their unique Semantic Scholar author ID. This endpoint is particularly useful for conducting literature reviews, analyzing an author's body of work, or tracking a researcher's publications over time. It provides a comprehensive view of an author's contributions to their field of study, including all papers where the author is listed as an author regardless of their authorship position. The response may be paginated for authors with a large number of publications, and additional API calls might be necessary to retrieve the complete list of papers. Use the offset and limit parameters to control pagination.\",\n input: SemanticscholarDetailsAboutAnAuthorSPapersInput,\n output: SemanticscholarDetailsAboutAnAuthorSPapersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAgE,EAAE,OAAO;CACpF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvH,Q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,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;CACjF,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"details-about-an-author-s-papers.mjs","names":[],"sources":["../../src/actions/details-about-an-author-s-papers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorSPapersInput = z.object({\n limit: z.number().int().default(100).describe(\"The maximum number of results to return.<br> Must be <= 1000\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of the <code>data</code> array in Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. To fetch more references or citations per paper, reduce the number of papers in the batch with <code>limit=</code>. <p>Use a period (“.”) for subfields of <code>citations</code> and <code>references</code>.<br><br> Examples: <ul> <li><code>fields=title,fieldsOfStudy,references</code></li> <li><code>fields=abstract,citations.url,citations.venue</code></li> </ul>\").optional(),\n offset: z.number().int().default(0).describe(\"Used for pagination. When returning a list of results, start with the element at this position in the list.\").optional(),\n author_id: z.string().describe(\"Author Id\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthorSPapers`\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema = z.object({\n text: z.string().describe(\"Summary text\").nullable().optional(),\n model: z.string().describe(\"Model used to generate summary\").nullable().optional(),\n}).describe(\"AI-generated summary of the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema = z.object({\n url: z.string().describe(\"URL to author's Semantic Scholar profile\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.number().int().describe(\"Author's h-index\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar author identifier\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Author's institutional affiliations\").nullable().optional(),\n citationCount: z.number().int().describe(\"Author's total citation count\").nullable().optional(),\n}).describe(\"Author information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema = z.object({\n name: z.string().describe(\"Journal name\").nullable().optional(),\n pages: z.string().describe(\"Page range\").nullable().optional(),\n volume: z.string().describe(\"Volume number\").nullable().optional(),\n}).describe(\"Journal publication information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema = z.object({\n url: z.string().describe(\"URL to paper\").nullable().optional(),\n year: z.number().int().describe(\"Publication year\").nullable().optional(),\n title: z.string().describe(\"Paper title\").nullable().optional(),\n venue: z.string().describe(\"Publication venue\").nullable().optional(),\n intent: z.array(z.string()).describe(\"Citation intent categories\").nullable().optional(),\n authors: z.array(z.unknown()).describe(\"Authors of the paper\").nullable().optional(),\n paperId: z.string().describe(\"Paper identifier\").nullable().optional(),\n isInfluential: z.boolean().describe(\"Whether this is an influential reference/citation\").nullable().optional(),\n}).describe(\"Reference or citation paper information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema = z.object({\n model: z.string().describe(\"Embedding model name\").nullable().optional(),\n vector: z.array(z.number()).describe(\"Embedding vector values\").nullable().optional(),\n}).describe(\"SPECTER2 embedding vectors for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema = z.object({\n ACL: z.string().describe(\"ACL Anthology identifier\").nullable().optional(),\n DOI: z.string().describe(\"Digital Object Identifier\").nullable().optional(),\n MAG: z.string().describe(\"Microsoft Academic Graph identifier\").nullable().optional(),\n PMID: z.string().describe(\"PubMed identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"ArXiv identifier\").nullable().optional(),\n PMCID: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n CorpusId: z.number().int().describe(\"Corpus identifier\").nullable().optional(),\n}).describe(\"External identifiers for the paper\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema = z.object({\n url: z.string().describe(\"URL to the open access PDF\").nullable().optional(),\n status: z.string().describe(\"Open access status (e.g., GOLD, GREEN, BRONZE, HYBRID)\").nullable().optional(),\n}).describe(\"Open access PDF link and licensing information\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema = z.object({\n bibtex: z.string().describe(\"BibTeX formatted citation\").nullable().optional(),\n}).describe(\"Formatted citations in various styles\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema = z.object({\n source: z.string().describe(\"Source of the classification\").nullable().optional(),\n category: z.string().describe(\"Field of study category\").nullable().optional(),\n}).describe(\"Semantic Scholar's field of study classification with score\");\nconst SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema = z.object({\n url: z.string().describe(\"Semantic Scholar URL for the paper\").nullable().optional(),\n tldr: SemanticscholarDetailsAboutAnAuthorSPapers_TldrSchema.nullable().optional(),\n year: z.number().int().describe(\"Publication year of the paper\").nullable().optional(),\n title: z.string().describe(\"Title of the paper\").nullable().optional(),\n venue: z.string().describe(\"Extracted publication venue of the paper\").nullable().optional(),\n authors: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_AuthorSchema).describe(\"List of paper authors\").nullable().optional(),\n journal: SemanticscholarDetailsAboutAnAuthorSPapers_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar unique identifier for the paper\").nullable(),\n abstract: z.string().describe(\"Extracted abstract of the paper\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar Corpus ID (S2CID)\").nullable().optional(),\n citations: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers that cite this paper (max 10,000 per batch)\").nullable().optional(),\n embedding: SemanticscholarDetailsAboutAnAuthorSPapers_EmbeddingSchema.nullable().optional(),\n references: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_ReferenceOrCitationSchema).describe(\"Papers referenced by this paper (max 10,000 per batch)\").nullable().optional(),\n externalIds: SemanticscholarDetailsAboutAnAuthorSPapers_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether the paper is open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of citations received by this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"Academic field classifications\").nullable().optional(),\n openAccessPdf: SemanticscholarDetailsAboutAnAuthorSPapers_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarDetailsAboutAnAuthorSPapers_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total number of references made by this paper\").nullable().optional(),\n publicationDate: z.string().describe(\"Full publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_S2FieldOfStudySchema).describe(\"Semantic Scholar's field of study classifications with scores\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of highly influential citations\").nullable().optional(),\n}).describe(\"Paper object with detailed information\");\nexport const SemanticscholarDetailsAboutAnAuthorSPapersOutput = z.object({\n data: z.array(SemanticscholarDetailsAboutAnAuthorSPapers_PaperSchema).describe(\"Collection of paper objects\"),\n next: z.number().int().describe(\"Starting position of the subsequent batch; omitted if no additional data exists\").nullable().optional(),\n offset: z.number().int().describe(\"Starting position for this batch of results\").nullable(),\n}).describe(\"Response schema for `DetailsAboutAnAuthorSPapers`\");\n\nexport const semanticscholarDetailsAboutAnAuthorSPapers = action(\"SEMANTICSCHOLAR_DETAILS_ABOUT_AN_AUTHOR_S_PAPERS\", {\n slug: \"semanticscholar-details-about-an-author-s-papers\",\n name: \"Details about an author s papers\",\n description: \"Retrieves a list of papers authored or co-authored by a specific researcher identified by their unique Semantic Scholar author ID. This endpoint is particularly useful for conducting literature reviews, analyzing an author's body of work, or tracking a researcher's publications over time. It provides a comprehensive view of an author's contributions to their field of study, including all papers where the author is listed as an author regardless of their authorship position. The response may be paginated for authors with a large number of publications, and additional API calls might be necessary to retrieve the complete list of papers. Use the offset and limit parameters to control pagination.\",\n input: SemanticscholarDetailsAboutAnAuthorSPapersInput,\n output: SemanticscholarDetailsAboutAnAuthorSPapersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kDAAkD,EAAE,OAAO;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACvH,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0sBAA0sB,CAAC,CAAC,SAAS;CACjvB,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACrK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;AAC5C,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,wDAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,0DAA0D,EAAE,OAAO;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,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AS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAOpD,MAAa,6CAA6C,OAAO,oDAAoD;CACnH,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX8D,EAAE,OAAO;EACvE,MAAM,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,6BAA6B;EAC5G,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
@@ -8,7 +8,7 @@ const SemanticscholarDetailsAboutAnAuthorInput = zod.z.object({
|
|
|
8
8
|
const SemanticscholarDetailsAboutAnAuthor_BasePaperSchema = zod.z.object({
|
|
9
9
|
year: zod.z.number().int().nullable().optional(),
|
|
10
10
|
title: zod.z.string().nullable().optional(),
|
|
11
|
-
paperId: zod.z.string(),
|
|
11
|
+
paperId: zod.z.string().nullable(),
|
|
12
12
|
citationCount: zod.z.number().int().nullable().optional()
|
|
13
13
|
}).passthrough().describe("Basic paper information");
|
|
14
14
|
const SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema = zod.z.object({
|
|
@@ -20,7 +20,7 @@ const SemanticscholarDetailsAboutAnAuthorOutput = zod.z.object({
|
|
|
20
20
|
name: zod.z.string().describe("Author's name").nullable().optional(),
|
|
21
21
|
hIndex: zod.z.number().int().describe("Author's h-index").nullable().optional(),
|
|
22
22
|
papers: zod.z.array(SemanticscholarDetailsAboutAnAuthor_BasePaperSchema).describe("List of papers authored").nullable().optional(),
|
|
23
|
-
authorId: zod.z.string().describe("Semantic Scholar's unique ID for the author"),
|
|
23
|
+
authorId: zod.z.string().describe("Semantic Scholar's unique ID for the author").nullable(),
|
|
24
24
|
homepage: zod.z.string().describe("Author's homepage").nullable().optional(),
|
|
25
25
|
paperCount: zod.z.number().int().describe("Total publications count").nullable().optional(),
|
|
26
26
|
externalIds: SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema.nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"details-about-an-author.cjs","names":["z","action"],"sources":["../../src/actions/details-about-an-author.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorInput
|
|
1
|
+
{"version":3,"file":"details-about-an-author.cjs","names":["z","action"],"sources":["../../src/actions/details-about-an-author.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarDetailsAboutAnAuthorInput = z.object({\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of Response Schema below for a list of all available fields that can be returned. The <code>authorId</code> field is always returned. If the fields parameter is omitted, only the <code>authorId</code> and <code>name</code> will be returned. <p>Use a period (“.”) for subfields of <code>papers</code>.<br><br> Examples: <ul> <li><code>fields=name,affiliations,papers</code></li> <li><code>fields=url,papers.year,papers.authors</code></li> </ul>\").optional(),\n author_id: z.string().describe(\"The unique Semantic Scholar author ID (e.g., '1688882'). This can be obtained from the author search endpoint.\"),\n}).describe(\"Request schema for `DetailsAboutAnAuthor`\");\nconst SemanticscholarDetailsAboutAnAuthor_BasePaperSchema = z.object({\n year: z.number().int().nullable().optional(),\n title: z.string().nullable().optional(),\n paperId: z.string().nullable(),\n citationCount: z.number().int().nullable().optional(),\n}).passthrough().describe(\"Basic paper information\");\nconst SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema = z.object({\n DBLP: z.array(z.string()).nullable().optional(),\n ORCID: z.array(z.string()).nullable().optional(),\n}).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":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2gBAA2gB,CAAC,CAAC,SAAS;CACljB,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;AACjJ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAM,sDAAsDA,IAAAA,EAAE,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AC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAa,sDAAsD,SAAS,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,sCAAsCC,eAAAA,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/details-about-an-author.d.ts
|
|
4
|
-
declare const SemanticscholarDetailsAboutAnAuthorInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SemanticscholarDetailsAboutAnAuthorInput: z.ZodObject<{
|
|
5
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
6
|
+
author_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SemanticscholarDetailsAboutAnAuthorOutput: z.ZodObject<{
|
|
9
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
hIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
papers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
paperId: z.ZodNullable<z.ZodString>;
|
|
16
|
+
citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
|
+
authorId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
paperCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
externalIds: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
DBLP: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
ORCID: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
25
|
+
affiliations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
|
+
citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const semanticscholarDetailsAboutAnAuthor: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
author_id: string;
|
|
30
|
+
fields?: string | undefined;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { semanticscholarDetailsAboutAnAuthor };
|
|
9
34
|
//# 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":";;;cAIa,wCAAA,
|
|
1
|
+
{"version":3,"file":"details-about-an-author.d.cts","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAcxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAazC,mCAAA,gCAAmC,wBAAA"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/details-about-an-author.d.ts
|
|
4
|
-
declare const SemanticscholarDetailsAboutAnAuthorInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SemanticscholarDetailsAboutAnAuthorInput: z.ZodObject<{
|
|
5
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
6
|
+
author_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const SemanticscholarDetailsAboutAnAuthorOutput: z.ZodObject<{
|
|
9
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
hIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
12
|
+
papers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
13
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
paperId: z.ZodNullable<z.ZodString>;
|
|
16
|
+
citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
17
|
+
}, z.core.$loose>>>>;
|
|
18
|
+
authorId: z.ZodNullable<z.ZodString>;
|
|
19
|
+
homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
paperCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
externalIds: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
DBLP: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
23
|
+
ORCID: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
25
|
+
affiliations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
26
|
+
citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const semanticscholarDetailsAboutAnAuthor: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
author_id: string;
|
|
30
|
+
fields?: string | undefined;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { semanticscholarDetailsAboutAnAuthor };
|
|
9
34
|
//# 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":";;;cAIa,wCAAA,
|
|
1
|
+
{"version":3,"file":"details-about-an-author.d.mts","names":[],"sources":["../../src/actions/details-about-an-author.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAcxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAazC,mCAAA,gCAAmC,wBAAA"}
|
|
@@ -8,7 +8,7 @@ const SemanticscholarDetailsAboutAnAuthorInput = z.object({
|
|
|
8
8
|
const SemanticscholarDetailsAboutAnAuthor_BasePaperSchema = z.object({
|
|
9
9
|
year: z.number().int().nullable().optional(),
|
|
10
10
|
title: z.string().nullable().optional(),
|
|
11
|
-
paperId: z.string(),
|
|
11
|
+
paperId: z.string().nullable(),
|
|
12
12
|
citationCount: z.number().int().nullable().optional()
|
|
13
13
|
}).passthrough().describe("Basic paper information");
|
|
14
14
|
const SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema = z.object({
|
|
@@ -25,7 +25,7 @@ const semanticscholarDetailsAboutAnAuthor = action("SEMANTICSCHOLAR_DETAILS_ABOU
|
|
|
25
25
|
name: z.string().describe("Author's name").nullable().optional(),
|
|
26
26
|
hIndex: z.number().int().describe("Author's h-index").nullable().optional(),
|
|
27
27
|
papers: z.array(SemanticscholarDetailsAboutAnAuthor_BasePaperSchema).describe("List of papers authored").nullable().optional(),
|
|
28
|
-
authorId: z.string().describe("Semantic Scholar's unique ID for the author"),
|
|
28
|
+
authorId: z.string().describe("Semantic Scholar's unique ID for the author").nullable(),
|
|
29
29
|
homepage: z.string().describe("Author's homepage").nullable().optional(),
|
|
30
30
|
paperCount: z.number().int().describe("Total publications count").nullable().optional(),
|
|
31
31
|
externalIds: SemanticscholarDetailsAboutAnAuthor_ExternalIdsSchema.nullable().optional(),
|
|
@@ -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
|
|
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}).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":";;;AAIA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2gBAA2gB,CAAC,CAAC,SAAS;CAC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E,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,4CAOhB;AACV,CAAC"}
|
|
@@ -7,16 +7,16 @@ const SemanticscholarGetDatasetDiffsInput = zod.z.object({
|
|
|
7
7
|
start_release_id: zod.z.string().describe("ID of the starting release. Use date format YYYY-MM-DD (e.g., '2024-12-31') or 'latest' for the most recent release.")
|
|
8
8
|
}).describe("Request schema for `GetDatasetDiffs`");
|
|
9
9
|
const SemanticscholarGetDatasetDiffs_DatasetDiffSchema = zod.z.object({
|
|
10
|
-
to_release: zod.z.string().describe("Target release for this specific diff"),
|
|
10
|
+
to_release: zod.z.string().describe("Target release for this specific diff").nullable(),
|
|
11
11
|
delete_files: zod.z.array(zod.z.string()).describe("Download links to files with records that need removing from the dataset"),
|
|
12
|
-
from_release: zod.z.string().describe("Baseline release for this specific diff"),
|
|
12
|
+
from_release: zod.z.string().describe("Baseline release for this specific diff").nullable(),
|
|
13
13
|
update_files: zod.z.array(zod.z.string()).describe("Download links to files with records that need inserting or updating by their primary key")
|
|
14
14
|
}).describe("Individual diff object representing changes between two releases");
|
|
15
15
|
const SemanticscholarGetDatasetDiffsOutput = zod.z.object({
|
|
16
16
|
diffs: zod.z.array(SemanticscholarGetDatasetDiffs_DatasetDiffSchema).describe("List of diff objects containing download links for incremental updates. Each diff contains 'update_files' and 'delete_files' lists."),
|
|
17
|
-
dataset: zod.z.string().describe("Name of the dataset these diffs are for"),
|
|
18
|
-
end_release: zod.z.string().describe("Ending release, i.e. the release the client wants to update to"),
|
|
19
|
-
start_release: zod.z.string().describe("Beginning release, i.e. the release currently held by the client")
|
|
17
|
+
dataset: zod.z.string().describe("Name of the dataset these diffs are for").nullable(),
|
|
18
|
+
end_release: zod.z.string().describe("Ending release, i.e. the release the client wants to update to").nullable(),
|
|
19
|
+
start_release: zod.z.string().describe("Beginning release, i.e. the release currently held by the client").nullable()
|
|
20
20
|
}).describe("Response schema for `GetDatasetDiffs`");
|
|
21
21
|
const semanticscholarGetDatasetDiffs = require_action.action("SEMANTICSCHOLAR_GET_DATASET_DIFFS", {
|
|
22
22
|
slug: "semanticscholar-get-dataset-diffs",
|
|
@@ -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
|
|
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}).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}).describe(\"Response schema for `GetDatasetDiffs`\");\n\nexport const semanticscholarGetDatasetDiffs = action(\"SEMANTICSCHOLAR_GET_DATASET_DIFFS\", {\n slug: \"semanticscholar-get-dataset-diffs\",\n name: \"Get dataset diffs\",\n description: \"Get download links for incremental diffs between dataset releases. Returns a list of diffs required to update a dataset from start_release to end_release, enabling efficient dataset synchronization. Use when you need to update a local dataset copy without re-downloading the entire dataset.\",\n input: SemanticscholarGetDatasetDiffsInput,\n output: SemanticscholarGetDatasetDiffsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,kEAAkE;AAC9E,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,SAAS,uCAAuC;AAEnD,MAAa,iCAAiCC,eAAAA,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-dataset-diffs.d.ts
|
|
4
|
-
declare const SemanticscholarGetDatasetDiffsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SemanticscholarGetDatasetDiffsInput: z.ZodObject<{
|
|
5
|
+
dataset_name: z.ZodString;
|
|
6
|
+
end_release_id: z.ZodString;
|
|
7
|
+
start_release_id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SemanticscholarGetDatasetDiffsOutput: z.ZodObject<{
|
|
10
|
+
diffs: z.ZodArray<z.ZodObject<{
|
|
11
|
+
to_release: z.ZodNullable<z.ZodString>;
|
|
12
|
+
delete_files: z.ZodArray<z.ZodString>;
|
|
13
|
+
from_release: z.ZodNullable<z.ZodString>;
|
|
14
|
+
update_files: z.ZodArray<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
dataset: z.ZodNullable<z.ZodString>;
|
|
17
|
+
end_release: z.ZodNullable<z.ZodString>;
|
|
18
|
+
start_release: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const semanticscholarGetDatasetDiffs: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { semanticscholarGetDatasetDiffs };
|
|
9
27
|
//# 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":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"get-dataset-diffs.d.cts","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAWnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cAOpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -1,9 +1,27 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-dataset-diffs.d.ts
|
|
4
|
-
declare const SemanticscholarGetDatasetDiffsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SemanticscholarGetDatasetDiffsInput: z.ZodObject<{
|
|
5
|
+
dataset_name: z.ZodString;
|
|
6
|
+
end_release_id: z.ZodString;
|
|
7
|
+
start_release_id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const SemanticscholarGetDatasetDiffsOutput: z.ZodObject<{
|
|
10
|
+
diffs: z.ZodArray<z.ZodObject<{
|
|
11
|
+
to_release: z.ZodNullable<z.ZodString>;
|
|
12
|
+
delete_files: z.ZodArray<z.ZodString>;
|
|
13
|
+
from_release: z.ZodNullable<z.ZodString>;
|
|
14
|
+
update_files: z.ZodArray<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
dataset: z.ZodNullable<z.ZodString>;
|
|
17
|
+
end_release: z.ZodNullable<z.ZodString>;
|
|
18
|
+
start_release: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
declare const semanticscholarGetDatasetDiffs: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
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]>;
|
|
7
25
|
//#endregion
|
|
8
26
|
export { semanticscholarGetDatasetDiffs };
|
|
9
27
|
//# 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":";;;cAIa,mCAAA,
|
|
1
|
+
{"version":3,"file":"get-dataset-diffs.d.mts","names":[],"sources":["../../src/actions/get-dataset-diffs.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAWnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cAOpC,8BAAA,gCAA8B,wBAAA"}
|
|
@@ -7,9 +7,9 @@ const SemanticscholarGetDatasetDiffsInput = z.object({
|
|
|
7
7
|
start_release_id: z.string().describe("ID of the starting release. Use date format YYYY-MM-DD (e.g., '2024-12-31') or 'latest' for the most recent release.")
|
|
8
8
|
}).describe("Request schema for `GetDatasetDiffs`");
|
|
9
9
|
const SemanticscholarGetDatasetDiffs_DatasetDiffSchema = z.object({
|
|
10
|
-
to_release: z.string().describe("Target release for this specific diff"),
|
|
10
|
+
to_release: z.string().describe("Target release for this specific diff").nullable(),
|
|
11
11
|
delete_files: z.array(z.string()).describe("Download links to files with records that need removing from the dataset"),
|
|
12
|
-
from_release: z.string().describe("Baseline release for this specific diff"),
|
|
12
|
+
from_release: z.string().describe("Baseline release for this specific diff").nullable(),
|
|
13
13
|
update_files: z.array(z.string()).describe("Download links to files with records that need inserting or updating by their primary key")
|
|
14
14
|
}).describe("Individual diff object representing changes between two releases");
|
|
15
15
|
const semanticscholarGetDatasetDiffs = action("SEMANTICSCHOLAR_GET_DATASET_DIFFS", {
|
|
@@ -19,9 +19,9 @@ const semanticscholarGetDatasetDiffs = action("SEMANTICSCHOLAR_GET_DATASET_DIFFS
|
|
|
19
19
|
input: SemanticscholarGetDatasetDiffsInput,
|
|
20
20
|
output: z.object({
|
|
21
21
|
diffs: z.array(SemanticscholarGetDatasetDiffs_DatasetDiffSchema).describe("List of diff objects containing download links for incremental updates. Each diff contains 'update_files' and 'delete_files' lists."),
|
|
22
|
-
dataset: z.string().describe("Name of the dataset these diffs are for"),
|
|
23
|
-
end_release: z.string().describe("Ending release, i.e. the release the client wants to update to"),
|
|
24
|
-
start_release: z.string().describe("Beginning release, i.e. the release currently held by the client")
|
|
22
|
+
dataset: z.string().describe("Name of the dataset these diffs are for").nullable(),
|
|
23
|
+
end_release: z.string().describe("Ending release, i.e. the release the client wants to update to").nullable(),
|
|
24
|
+
start_release: z.string().describe("Beginning release, i.e. the release currently held by the client").nullable()
|
|
25
25
|
}).describe("Response schema for `GetDatasetDiffs`")
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
@@ -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
|
|
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}).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}).describe(\"Response schema for `GetDatasetDiffs`\");\n\nexport const semanticscholarGetDatasetDiffs = action(\"SEMANTICSCHOLAR_GET_DATASET_DIFFS\", {\n slug: \"semanticscholar-get-dataset-diffs\",\n name: \"Get dataset diffs\",\n description: \"Get download links for incremental diffs between dataset releases. Returns a list of diffs required to update a dataset from start_release to end_release, enabling efficient dataset synchronization. Use when you need to update a local dataset copy without re-downloading the entire dataset.\",\n input: SemanticscholarGetDatasetDiffsInput,\n output: SemanticscholarGetDatasetDiffsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,kEAAkE;AAQ9E,MAAa,iCAAiC,OAAO,qCAAqC;CACxF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZkD,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,SAAS,uCAOF;AACV,CAAC"}
|
|
@@ -6,10 +6,10 @@ const SemanticscholarGetDatasetInput = zod.z.object({
|
|
|
6
6
|
dataset_name: zod.z.string().describe("Name of the dataset to retrieve. Common dataset names include: 'papers', 'abstracts', 'authors', 'citations', 'embeddings'")
|
|
7
7
|
}).describe("Request schema for GetDataset");
|
|
8
8
|
const SemanticscholarGetDatasetOutput = zod.z.object({
|
|
9
|
-
name: zod.z.string().describe("Name of the dataset"),
|
|
9
|
+
name: zod.z.string().describe("Name of the dataset").nullable(),
|
|
10
10
|
files: zod.z.array(zod.z.string()).describe("List of temporary, pre-signed S3 download URLs for dataset partitions. These URLs expire after a limited time and must be used promptly"),
|
|
11
|
-
README: zod.z.string().describe("License and usage information for the dataset"),
|
|
12
|
-
description: zod.z.string().describe("Description of the data contained in this dataset")
|
|
11
|
+
README: zod.z.string().describe("License and usage information for the dataset").nullable(),
|
|
12
|
+
description: zod.z.string().describe("Description of the data contained in this dataset").nullable()
|
|
13
13
|
}).describe("Response schema for GetDataset");
|
|
14
14
|
const semanticscholarGetDataset = require_action.action("SEMANTICSCHOLAR_GET_DATASET", {
|
|
15
15
|
slug: "semanticscholar-get-dataset",
|
|
@@ -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
|
|
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}).describe(\"Response schema for GetDataset\");\n\nexport const semanticscholarGetDataset = action(\"SEMANTICSCHOLAR_GET_DATASET\", {\n slug: \"semanticscholar-get-dataset\",\n name: \"Get dataset download links\",\n description: \"Tool to get download links for a specific dataset within a release. Use when you need to download Semantic Scholar dataset files from S3. Returns pre-signed URLs for all dataset partitions.\",\n input: SemanticscholarGetDatasetInput,\n output: SemanticscholarGetDatasetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,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,SAAS,gCAAgC;AAE5C,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|