@keystrokehq/semanticscholar 0.1.0 → 0.1.3
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 +3 -3
- 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 +3 -3
- package/dist/actions/details-about-a-paper-s-authors.mjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-citations.cjs +11 -11
- 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 +11 -11
- package/dist/actions/details-about-a-paper-s-citations.mjs.map +1 -1
- package/dist/actions/details-about-a-paper-s-references.cjs +15 -15
- 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 +15 -15
- 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 +13 -13
- 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 +13 -13
- package/dist/actions/details-about-an-author-s-papers.mjs.map +1 -1
- package/dist/actions/details-about-an-author.cjs +3 -3
- 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 +3 -3
- package/dist/actions/details-about-an-author.mjs.map +1 -1
- package/dist/actions/get-dataset-diffs.cjs +7 -7
- 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 +7 -7
- package/dist/actions/get-dataset-diffs.mjs.map +1 -1
- package/dist/actions/get-dataset.cjs +4 -4
- 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 +4 -4
- 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 +13 -13
- 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 +13 -13
- package/dist/actions/get-paper-recommendations.mjs.map +1 -1
- package/dist/actions/get-recommendations-for-paper.cjs +6 -6
- 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 +6 -6
- package/dist/actions/get-recommendations-for-paper.mjs.map +1 -1
- package/dist/actions/get-release.cjs +7 -7
- 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 +7 -7
- package/dist/actions/get-release.mjs.map +1 -1
- package/dist/actions/list-releases.cjs +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 +1 -1
- package/dist/actions/list-releases.mjs.map +1 -1
- package/dist/actions/paper-title-search.cjs +12 -12
- 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 +12 -12
- package/dist/actions/paper-title-search.mjs.map +1 -1
- package/dist/actions/search-bulk-papers.cjs +11 -11
- 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 +11 -11
- package/dist/actions/search-bulk-papers.mjs.map +1 -1
- package/dist/actions/search-for-authors-by-name.cjs +4 -4
- 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 +4 -4
- package/dist/actions/search-for-authors-by-name.mjs.map +1 -1
- package/dist/actions/search-papers.cjs +16 -16
- 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 +16 -16
- package/dist/actions/search-papers.mjs.map +1 -1
- package/dist/actions/suggest-paper-query-completions.cjs +5 -5
- 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 +5 -5
- package/dist/actions/suggest-paper-query-completions.mjs.map +1 -1
- package/dist/actions/text-snippet-search.cjs +10 -10
- 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 +10 -10
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-releases.cjs","names":["z","action"],"sources":["../../src/actions/list-releases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarListReleasesInput
|
|
1
|
+
{"version":3,"file":"list-releases.cjs","names":["z","action"],"sources":["../../src/actions/list-releases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarListReleasesInput = z.object({}).describe(\"Request schema for ListReleases\");\nexport const SemanticscholarListReleasesOutput = z.object({\n releases: z.array(z.string()).describe(\"List of available dataset release identifiers in the form of date stamps (e.g., '2023-08-01'). Each release contains full data for all datasets.\"),\n}).passthrough().describe(\"Response schema for ListReleases\");\n\nexport const semanticscholarListReleases = action(\"SEMANTICSCHOLAR_LIST_RELEASES\", {\n slug: \"semanticscholar-list-releases\",\n name: \"List available dataset releases\",\n description: \"Tool to list all available dataset releases from Semantic Scholar. Use when you need to discover available release dates for downloading datasets.\",\n input: SemanticscholarListReleasesInput,\n output: SemanticscholarListReleasesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iCAAiC;AACvG,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kJAAkJ,EAC3L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,8BAA8BC,eAAAA,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-releases.d.ts
|
|
4
|
-
declare const SemanticscholarListReleasesInput: z.
|
|
5
|
-
declare const SemanticscholarListReleasesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SemanticscholarListReleasesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SemanticscholarListReleasesOutput: z.ZodObject<{
|
|
6
|
+
releases: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$loose>;
|
|
8
|
+
declare const semanticscholarListReleases: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
9
|
//#endregion
|
|
8
10
|
export { semanticscholarListReleases };
|
|
9
11
|
//# sourceMappingURL=list-releases.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-releases.d.cts","names":[],"sources":["../../src/actions/list-releases.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"list-releases.d.cts","names":[],"sources":["../../src/actions/list-releases.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-releases.d.ts
|
|
4
|
-
declare const SemanticscholarListReleasesInput: z.
|
|
5
|
-
declare const SemanticscholarListReleasesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const SemanticscholarListReleasesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const SemanticscholarListReleasesOutput: z.ZodObject<{
|
|
6
|
+
releases: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$loose>;
|
|
8
|
+
declare const semanticscholarListReleases: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
9
|
//#endregion
|
|
8
10
|
export { semanticscholarListReleases };
|
|
9
11
|
//# sourceMappingURL=list-releases.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-releases.d.mts","names":[],"sources":["../../src/actions/list-releases.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"list-releases.d.mts","names":[],"sources":["../../src/actions/list-releases.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAChC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;cAIjC,2BAAA,gCAA2B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -5,7 +5,7 @@ const semanticscholarListReleases = action("SEMANTICSCHOLAR_LIST_RELEASES", {
|
|
|
5
5
|
name: "List available dataset releases",
|
|
6
6
|
description: "Tool to list all available dataset releases from Semantic Scholar. Use when you need to discover available release dates for downloading datasets.",
|
|
7
7
|
input: z.object({}).describe("Request schema for ListReleases"),
|
|
8
|
-
output: z.object({ releases: z.array(z.string()).describe("List of available dataset release identifiers in the form of date stamps (e.g., '2023-08-01'). Each release contains full data for all datasets.") }).describe("Response schema for ListReleases")
|
|
8
|
+
output: z.object({ releases: z.array(z.string()).describe("List of available dataset release identifiers in the form of date stamps (e.g., '2023-08-01'). Each release contains full data for all datasets.") }).passthrough().describe("Response schema for ListReleases")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { semanticscholarListReleases };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-releases.mjs","names":[],"sources":["../../src/actions/list-releases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarListReleasesInput
|
|
1
|
+
{"version":3,"file":"list-releases.mjs","names":[],"sources":["../../src/actions/list-releases.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarListReleasesInput = z.object({}).describe(\"Request schema for ListReleases\");\nexport const SemanticscholarListReleasesOutput = z.object({\n releases: z.array(z.string()).describe(\"List of available dataset release identifiers in the form of date stamps (e.g., '2023-08-01'). Each release contains full data for all datasets.\"),\n}).passthrough().describe(\"Response schema for ListReleases\");\n\nexport const semanticscholarListReleases = action(\"SEMANTICSCHOLAR_LIST_RELEASES\", {\n slug: \"semanticscholar-list-releases\",\n name: \"List available dataset releases\",\n description: \"Tool to list all available dataset releases from Semantic Scholar. Use when you need to discover available release dates for downloading datasets.\",\n input: SemanticscholarListReleasesInput,\n output: SemanticscholarListReleasesOutput,\n});\n"],"mappings":";;AASA,MAAa,8BAA8B,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iCAS7D;CACP,QAT+C,EAAE,OAAO,EACxD,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kJAAkJ,EAC3L,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAOhB;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ const SemanticscholarPaperTitleSearchInput = zod.z.object({
|
|
|
15
15
|
const SemanticscholarPaperTitleSearch_TldrSchema = zod.z.object({
|
|
16
16
|
text: zod.z.string().describe("Brief AI-generated summary text").nullable().optional(),
|
|
17
17
|
model: zod.z.string().describe("TLDR model version (e.g., tldr@v2.0.0)").nullable().optional()
|
|
18
|
-
}).describe("AI-generated summary of the paper");
|
|
18
|
+
}).passthrough().describe("AI-generated summary of the paper");
|
|
19
19
|
const SemanticscholarPaperTitleSearch_AuthorSchema = zod.z.object({
|
|
20
20
|
url: zod.z.string().describe("URL to author's page on Semantic Scholar").nullable().optional(),
|
|
21
21
|
name: zod.z.string().describe("Author's name").nullable().optional(),
|
|
@@ -26,16 +26,16 @@ const SemanticscholarPaperTitleSearch_AuthorSchema = zod.z.object({
|
|
|
26
26
|
externalIds: zod.z.unknown().describe("External identifiers for the author (ORCID, DBLP)").nullable().optional(),
|
|
27
27
|
affiliations: zod.z.array(zod.z.string()).describe("Author's organizational affiliations").nullable().optional(),
|
|
28
28
|
citationCount: zod.z.string().describe("Total citations received by the author").nullable().optional()
|
|
29
|
-
}).describe("Paper author with detailed information");
|
|
29
|
+
}).passthrough().describe("Paper author with detailed information");
|
|
30
30
|
const SemanticscholarPaperTitleSearch_JournalSchema = zod.z.object({
|
|
31
31
|
name: zod.z.string().describe("Name of the journal").nullable().optional(),
|
|
32
32
|
pages: zod.z.string().describe("Page number range").nullable().optional(),
|
|
33
33
|
volume: zod.z.string().describe("Journal volume number").nullable().optional()
|
|
34
|
-
}).describe("Journal-specific metadata");
|
|
34
|
+
}).passthrough().describe("Journal-specific metadata");
|
|
35
35
|
const SemanticscholarPaperTitleSearch_EmbeddingSchema = zod.z.object({
|
|
36
36
|
model: zod.z.string().describe("Specter vector embedding model version (e.g., specter@v0.1.1)").nullable().optional(),
|
|
37
37
|
vector: zod.z.unknown().describe("Numerical embedding vector representation").nullable().optional()
|
|
38
|
-
}).describe("Specter vector embedding for the paper");
|
|
38
|
+
}).passthrough().describe("Specter vector embedding for the paper");
|
|
39
39
|
const SemanticscholarPaperTitleSearch_ExternalIdsSchema = zod.z.object({
|
|
40
40
|
ACL: zod.z.string().describe("Association for Computational Linguistics identifier").nullable().optional(),
|
|
41
41
|
DOI: zod.z.string().describe("Digital Object Identifier").nullable().optional(),
|
|
@@ -46,25 +46,25 @@ const SemanticscholarPaperTitleSearch_ExternalIdsSchema = zod.z.object({
|
|
|
46
46
|
Medline: zod.z.string().describe("Medline identifier").nullable().optional(),
|
|
47
47
|
CorpusId: zod.z.number().int().describe("Semantic Scholar corpus identifier").nullable().optional(),
|
|
48
48
|
PubMedCentral: zod.z.string().describe("PubMed Central identifier").nullable().optional()
|
|
49
|
-
}).describe("External identifiers from various academic databases");
|
|
49
|
+
}).passthrough().describe("External identifiers from various academic databases");
|
|
50
50
|
const SemanticscholarPaperTitleSearch_OpenAccessPdfSchema = zod.z.object({
|
|
51
51
|
url: zod.z.string().describe("Link to the paper's PDF").nullable().optional(),
|
|
52
52
|
status: zod.z.string().describe("Type of open access (HYBRID, GOLD, GREEN, BRONZE)").nullable().optional(),
|
|
53
53
|
license: zod.z.string().describe("License type for the paper (e.g., CCBY)").nullable().optional(),
|
|
54
54
|
disclaimer: zod.z.string().describe("Legal disclaimer regarding usage").nullable().optional()
|
|
55
|
-
}).describe("Information about open access PDF availability");
|
|
56
|
-
const SemanticscholarPaperTitleSearch_CitationStylesSchema = zod.z.object({ bibtex: zod.z.string().describe("BibTeX formatted citation").nullable().optional() }).describe("Formatted citations in various styles");
|
|
55
|
+
}).passthrough().describe("Information about open access PDF availability");
|
|
56
|
+
const SemanticscholarPaperTitleSearch_CitationStylesSchema = zod.z.object({ bibtex: zod.z.string().describe("BibTeX formatted citation").nullable().optional() }).passthrough().describe("Formatted citations in various styles");
|
|
57
57
|
const SemanticscholarPaperTitleSearch_S2FieldOfStudySchema = zod.z.object({
|
|
58
58
|
source: zod.z.string().describe("Classification source (external or s2-fos-model)").nullable().optional(),
|
|
59
59
|
category: zod.z.string().describe("Field of study category").nullable().optional()
|
|
60
|
-
}).describe("Detailed field of study classification with source attribution");
|
|
60
|
+
}).passthrough().describe("Detailed field of study classification with source attribution");
|
|
61
61
|
const SemanticscholarPaperTitleSearch_PublicationVenueSchema = zod.z.object({
|
|
62
62
|
id: zod.z.string().describe("Venue's unique identifier").nullable().optional(),
|
|
63
63
|
url: zod.z.string().describe("Venue's website URL").nullable().optional(),
|
|
64
64
|
name: zod.z.string().describe("Name of the venue").nullable().optional(),
|
|
65
65
|
type: zod.z.string().describe("Type of venue (e.g., conference, journal)").nullable().optional(),
|
|
66
66
|
alternate_names: zod.z.array(zod.z.string()).describe("Alternative names for the venue").nullable().optional()
|
|
67
|
-
}).describe("Detailed information about the publication venue");
|
|
67
|
+
}).passthrough().describe("Detailed information about the publication venue");
|
|
68
68
|
const SemanticscholarPaperTitleSearch_PaperSchema = zod.z.object({
|
|
69
69
|
url: zod.z.string().describe("Link to the paper on Semantic Scholar website").nullable().optional(),
|
|
70
70
|
tldr: SemanticscholarPaperTitleSearch_TldrSchema.nullable().optional(),
|
|
@@ -73,7 +73,7 @@ const SemanticscholarPaperTitleSearch_PaperSchema = zod.z.object({
|
|
|
73
73
|
venue: zod.z.string().describe("Publication venue name").nullable().optional(),
|
|
74
74
|
authors: zod.z.array(SemanticscholarPaperTitleSearch_AuthorSchema).describe("List of paper authors with detailed information").nullable().optional(),
|
|
75
75
|
journal: SemanticscholarPaperTitleSearch_JournalSchema.nullable().optional(),
|
|
76
|
-
paperId: zod.z.string().describe("Semantic Scholar's primary unique identifier for the paper"),
|
|
76
|
+
paperId: zod.z.string().describe("Semantic Scholar's primary unique identifier for the paper").nullable(),
|
|
77
77
|
abstract: zod.z.string().describe("Paper abstract or summary (may be unavailable for legal reasons)").nullable().optional(),
|
|
78
78
|
corpusId: zod.z.number().int().describe("Semantic Scholar's secondary unique numerical identifier for the paper").nullable().optional(),
|
|
79
79
|
citations: zod.z.array(zod.z.unknown()).describe("Papers that cite this paper (returned when requested via fields parameter)").nullable().optional(),
|
|
@@ -93,8 +93,8 @@ const SemanticscholarPaperTitleSearch_PaperSchema = zod.z.object({
|
|
|
93
93
|
publicationVenue: SemanticscholarPaperTitleSearch_PublicationVenueSchema.nullable().optional(),
|
|
94
94
|
textAvailability: zod.z.string().describe("Level of text available: fulltext, abstract, or none").nullable().optional(),
|
|
95
95
|
influentialCitationCount: zod.z.number().int().describe("Number of high-impact citations").nullable().optional()
|
|
96
|
-
}).describe("Paper object matching the search query");
|
|
97
|
-
const SemanticscholarPaperTitleSearchOutput = zod.z.object({ data: zod.z.array(SemanticscholarPaperTitleSearch_PaperSchema).describe("Array containing a single paper object that is the closest title match. Each paper always includes paperId, title, and matchScore fields, plus any additional fields requested via the 'fields' parameter. Returns empty array if no match found.") }).describe("Response schema for `PaperTitleSearch`");
|
|
96
|
+
}).passthrough().describe("Paper object matching the search query");
|
|
97
|
+
const SemanticscholarPaperTitleSearchOutput = zod.z.object({ data: zod.z.array(SemanticscholarPaperTitleSearch_PaperSchema).describe("Array containing a single paper object that is the closest title match. Each paper always includes paperId, title, and matchScore fields, plus any additional fields requested via the 'fields' parameter. Returns empty array if no match found.") }).passthrough().describe("Response schema for `PaperTitleSearch`");
|
|
98
98
|
const semanticscholarPaperTitleSearch = require_action.action("SEMANTICSCHOLAR_PAPER_TITLE_SEARCH", {
|
|
99
99
|
slug: "semanticscholar-paper-title-search",
|
|
100
100
|
name: "Paper title search",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paper-title-search.cjs","names":["z","action"],"sources":["../../src/actions/paper-title-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarPaperTitleSearchInput: z.ZodTypeAny = z.object({\n year: z.string().describe(\"Restricts results to the given publication year or range of years (inclusive). <br> <br> Examples: <ul> <li><code>2019</code> in 2019</li> <li><code>2016-2020</code> as early as 2016 or as late as 2020</li> <li><code>2010-</code> during or after 2010</li> <li><code>-2015</code> before or during 2015</li> </ul>\").optional(),\n query: z.string().describe(\"A plain-text search query string. * No special query syntax is supported. See our <a href=\\\"https://medium.com/ai2-blog/building-a-better-search-engine-for-semantic-scholar-ea23a0b661e7\\\">blog post</a> for a description of our search relevance algorithm.\"),\n venue: z.string().describe(\"Restricts results to papers published in the given venues, formatted as a comma-separated list. <br><br> Input could also be an ISO4 abbreviation. Examples include: <ul> <li>Nature</li> <li>New England Journal of Medicine</li> <li>Radiology</li> <li>N. Engl. J. Med.</li> </ul> Example: <code>Nature,Radiology</code> will return papers from venues Nature and/or Radiology.\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of the <code>data</code> array in Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. <p>Use a period (“.”) for fields that have version numbers or subfields, such as the <code>embedding</code>, <code>authors</code>, <code>citations</code>, and <code>references</code> fields: <ul> <li>When requesting <code>authors</code>, the <code>authorId</code> and <code>name</code> subfields are returned by default. To request other subfields, use the format <code>author.url,author.paperCount</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>citations</code> and <code>references</code>, the <code>paperId</code> and <code>title</code> subfields are returned by default. To request other subfields, use the format <code>citations.title,citations.abstract</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>embedding</code>, the default <a href=\\\"https://github.com/allenai/specter\\\">Spector embedding version</a> is v1. Specify <code>embedding.specter_v2</code> to select v2 embeddings.</li> </ul> Examples: <ul> <li><code>fields=title,url</code></li> <li><code>fields=title,embedding.specter_v2</code></li> <li><code>fields=title,authors,citations.title,citations.abstract</code></li> </ul>\").optional(),\n fieldsOfStudy: z.string().describe(\"Restricts results to papers in the given fields of study, formatted as a comma-separated list: <ul> <li>Computer Science</li> <li>Medicine</li> <li>Chemistry</li> <li>Biology</li> <li>Materials Science</li> <li>Physics</li> <li>Geology</li> <li>Psychology</li> <li>Art</li> <li>History</li> <li>Geography</li> <li>Sociology</li> <li>Business</li> <li>Political Science</li> <li>Economics</li> <li>Philosophy</li> <li>Mathematics</li> <li>Engineering</li> <li>Environmental Science</li> <li>Agricultural and Food Sciences</li> <li>Education</li> <li>Law</li> <li>Linguistics</li> </ul> Example: <code>Physics,Mathematics</code> will return papers with either Physics or Mathematics in their list of fields-of-study.\").optional(),\n openAccessPdf: z.string().describe(\"Restricts results to only include papers with a public PDF. This parameter does not accept any values.\").optional(),\n minCitationCount: z.number().int().describe(\"Restricts results to only include papers with at least this many citations. Must be a non-negative integer. Example: 200\").optional(),\n publicationTypes: z.string().describe(\"Restricts results to any of the following paper publication types: <ul> <li>Review</li> <li>JournalArticle</li> <li>CaseReport</li> <li>ClinicalTrial</li> <li>Conference</li> <li>Dataset</li> <li>Editorial</li> <li>LettersAndComments</li> <li>MetaAnalysis</li> <li>News</li> <li>Study</li> <li>Book</li> <li>BookSection</li> </ul> Use a comma-separated list to include papers with any of the listed publication types. <br><br> Example: <code>Review,JournalArticle</code> will return papers with publication types Review and/or JournalArticle.\").optional(),\n publicationDateOrYear: z.string().describe(\"Restricts results to the given range of publication dates or years (inclusive). Accepts the format <code><startDate>:<endDate></code> with each date in <code>YYYY-MM-DD</code> format. <br> <br> Each term is optional, allowing for specific dates, fixed ranges, or open-ended ranges. In addition, prefixes are suported as a shorthand, e.g. <code>2020-06</code> matches all dates in June 2020. <br> <br> Specific dates are not known for all papers, so some records returned with this filter will have a <code>null</code> value for </code>publicationDate</code>. <code>year</code>, however, will always be present. For records where a specific publication date is not known, they will be treated as if published on January 1st of their publication year. <br> <br> Examples: <ul> <li><code>2019-03-05</code> on March 3rd, 2019</li> <li><code>2019-03</code> during March 2019</li> <li><code>2019</code> during 2019</li> <li><code>2016-03-05:2020-06-06</code> as early as March 5th, 2016 or as late as June 6th, 2020</li> <li><code>1981-08-25:</code> on or after August 25th, 1981</li> <li><code>:2015-01</code> before or on January 31st, 2015</li> <li><code>2015:2020</code> between January 1st, 2015 and December 31st, 2020</li> </ul>\").optional(),\n}).describe(\"Request schema for `PaperTitleSearch`\");\nconst SemanticscholarPaperTitleSearch_TldrSchema: z.ZodTypeAny = z.object({\n text: z.string().describe(\"Brief AI-generated summary text\").nullable().optional(),\n model: z.string().describe(\"TLDR model version (e.g., tldr@v2.0.0)\").nullable().optional(),\n}).describe(\"AI-generated summary of the paper\");\nconst SemanticscholarPaperTitleSearch_AuthorSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL to author's page on Semantic Scholar\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.string().describe(\"h-index measuring author's productivity and citation impact\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique identifier for the author\").nullable().optional(),\n homepage: z.string().describe(\"Author's personal homepage URL\").nullable().optional(),\n paperCount: z.string().describe(\"Total number of publications by the author\").nullable().optional(),\n externalIds: z.unknown().describe(\"External identifiers for the author (ORCID, DBLP)\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Author's organizational affiliations\").nullable().optional(),\n citationCount: z.string().describe(\"Total citations received by the author\").nullable().optional(),\n}).describe(\"Paper author with detailed information\");\nconst SemanticscholarPaperTitleSearch_JournalSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the journal\").nullable().optional(),\n pages: z.string().describe(\"Page number range\").nullable().optional(),\n volume: z.string().describe(\"Journal volume number\").nullable().optional(),\n}).describe(\"Journal-specific metadata\");\nconst SemanticscholarPaperTitleSearch_EmbeddingSchema: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Specter vector embedding model version (e.g., specter@v0.1.1)\").nullable().optional(),\n vector: z.unknown().describe(\"Numerical embedding vector representation\").nullable().optional(),\n}).describe(\"Specter vector embedding for the paper\");\nconst SemanticscholarPaperTitleSearch_ExternalIdsSchema: z.ZodTypeAny = z.object({\n ACL: z.string().describe(\"Association for Computational Linguistics identifier\").nullable().optional(),\n DOI: z.string().describe(\"Digital Object Identifier\").nullable().optional(),\n MAG: z.string().describe(\"Microsoft Academic Graph identifier\").nullable().optional(),\n DBLP: z.string().describe(\"Digital Bibliography & Library Project identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"arXiv.org identifier\").nullable().optional(),\n PubMed: z.string().describe(\"PubMed identifier\").nullable().optional(),\n Medline: z.string().describe(\"Medline identifier\").nullable().optional(),\n CorpusId: z.number().int().describe(\"Semantic Scholar corpus identifier\").nullable().optional(),\n PubMedCentral: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n}).describe(\"External identifiers from various academic databases\");\nconst SemanticscholarPaperTitleSearch_OpenAccessPdfSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Link to the paper's PDF\").nullable().optional(),\n status: z.string().describe(\"Type of open access (HYBRID, GOLD, GREEN, BRONZE)\").nullable().optional(),\n license: z.string().describe(\"License type for the paper (e.g., CCBY)\").nullable().optional(),\n disclaimer: z.string().describe(\"Legal disclaimer regarding usage\").nullable().optional(),\n}).describe(\"Information about open access PDF availability\");\nconst SemanticscholarPaperTitleSearch_CitationStylesSchema: z.ZodTypeAny = z.object({\n bibtex: z.string().describe(\"BibTeX formatted citation\").nullable().optional(),\n}).describe(\"Formatted citations in various styles\");\nconst SemanticscholarPaperTitleSearch_S2FieldOfStudySchema: z.ZodTypeAny = z.object({\n source: z.string().describe(\"Classification source (external or s2-fos-model)\").nullable().optional(),\n category: z.string().describe(\"Field of study category\").nullable().optional(),\n}).describe(\"Detailed field of study classification with source attribution\");\nconst SemanticscholarPaperTitleSearch_PublicationVenueSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Venue's unique identifier\").nullable().optional(),\n url: z.string().describe(\"Venue's website URL\").nullable().optional(),\n name: z.string().describe(\"Name of the venue\").nullable().optional(),\n type: z.string().describe(\"Type of venue (e.g., conference, journal)\").nullable().optional(),\n alternate_names: z.array(z.string()).describe(\"Alternative names for the venue\").nullable().optional(),\n}).describe(\"Detailed information about the publication venue\");\nconst SemanticscholarPaperTitleSearch_PaperSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Link to the paper on Semantic Scholar website\").nullable().optional(),\n tldr: SemanticscholarPaperTitleSearch_TldrSchema.nullable().optional(),\n year: z.number().int().describe(\"Year of publication\").nullable().optional(),\n title: z.string().describe(\"Title of the paper\").nullable().optional(),\n venue: z.string().describe(\"Publication venue name\").nullable().optional(),\n authors: z.array(SemanticscholarPaperTitleSearch_AuthorSchema).describe(\"List of paper authors with detailed information\").nullable().optional(),\n journal: SemanticscholarPaperTitleSearch_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar's primary unique identifier for the paper\"),\n abstract: z.string().describe(\"Paper abstract or summary (may be unavailable for legal reasons)\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar's secondary unique numerical identifier for the paper\").nullable().optional(),\n citations: z.array(z.unknown()).describe(\"Papers that cite this paper (returned when requested via fields parameter)\").nullable().optional(),\n embedding: SemanticscholarPaperTitleSearch_EmbeddingSchema.nullable().optional(),\n matchScore: z.number().describe(\"Relevance score indicating how closely the paper matches the search query\").nullable().optional(),\n references: z.array(z.unknown()).describe(\"Papers referenced by this paper (returned when requested via fields parameter)\").nullable().optional(),\n externalIds: SemanticscholarPaperTitleSearch_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether the paper is available as open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of papers citing this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"High-level academic field categories\").nullable().optional(),\n openAccessPdf: SemanticscholarPaperTitleSearch_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarPaperTitleSearch_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total number of papers this paper references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarPaperTitleSearch_S2FieldOfStudySchema).describe(\"Detailed field of study classifications with source attribution\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n publicationVenue: SemanticscholarPaperTitleSearch_PublicationVenueSchema.nullable().optional(),\n textAvailability: z.string().describe(\"Level of text available: fulltext, abstract, or none\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of high-impact citations\").nullable().optional(),\n}).describe(\"Paper object matching the search query\");\nexport const SemanticscholarPaperTitleSearchOutput: z.ZodTypeAny = z.object({\n data: z.array(SemanticscholarPaperTitleSearch_PaperSchema).describe(\"Array containing a single paper object that is the closest title match. Each paper always includes paperId, title, and matchScore fields, plus any additional fields requested via the 'fields' parameter. Returns empty array if no match found.\"),\n}).describe(\"Response schema for `PaperTitleSearch`\");\n\nexport const semanticscholarPaperTitleSearch = action(\"SEMANTICSCHOLAR_PAPER_TITLE_SEARCH\", {\n slug: \"semanticscholar-paper-title-search\",\n name: \"Paper title search\",\n description: \"Behaves similarly to <code>/paper/search</code>, but is intended for retrieval of a single paper based on closest title match to given query. Examples: <ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/search/match?query=Construction of the Literature Graph in Semantic Scholar</code></li> <ul> <li>Returns a single paper that is the closest title match.</li> <li>Each paper has its paperId, title, and matchScore as well as any other requested fields.</li> </ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/search/match?query=totalGarbageNonsense</code></li> <ul> <li>Returns with a 404 error and a \\\"Title match not found\\\" message.</li> </ul> </ul> <br> Limitations: <ul> <li>Will only return the single highest match result.</li> </ul> </ul>\",\n input: SemanticscholarPaperTitleSearchInput,\n output: SemanticscholarPaperTitleSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yUAAyU,CAAC,CAAC,SAAS;CAC9W,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gQAAgQ;CAC3R,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sYAAsY,CAAC,CAAC,SAAS;CAC5a,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0hDAA0hD,CAAC,CAAC,SAAS;CACjkD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4sBAA4sB,CAAC,CAAC,SAAS;CAC1vB,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACtJ,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CACjL,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,olBAAolB,CAAC,CAAC,SAAS;CACroB,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wvCAAwvC,CAAC,CAAC,SAAS;AAChzC,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,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,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,iBAAiBA,IAAAA,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/K,kBAAkBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,kBAAkB,uDAAuD,SAAS,CAAC,CAAC,SAAS;CAC7F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,wCAAsDA,IAAAA,EAAE,OAAO,EAC1E,MAAMA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,mPAAmP,EACzT,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"paper-title-search.cjs","names":["z","action"],"sources":["../../src/actions/paper-title-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SemanticscholarPaperTitleSearchInput = z.object({\n year: z.string().describe(\"Restricts results to the given publication year or range of years (inclusive). <br> <br> Examples: <ul> <li><code>2019</code> in 2019</li> <li><code>2016-2020</code> as early as 2016 or as late as 2020</li> <li><code>2010-</code> during or after 2010</li> <li><code>-2015</code> before or during 2015</li> </ul>\").optional(),\n query: z.string().describe(\"A plain-text search query string. * No special query syntax is supported. See our <a href=\\\"https://medium.com/ai2-blog/building-a-better-search-engine-for-semantic-scholar-ea23a0b661e7\\\">blog post</a> for a description of our search relevance algorithm.\"),\n venue: z.string().describe(\"Restricts results to papers published in the given venues, formatted as a comma-separated list. <br><br> Input could also be an ISO4 abbreviation. Examples include: <ul> <li>Nature</li> <li>New England Journal of Medicine</li> <li>Radiology</li> <li>N. Engl. J. Med.</li> </ul> Example: <code>Nature,Radiology</code> will return papers from venues Nature and/or Radiology.\").optional(),\n fields: z.string().describe(\"A comma-separated list of the fields to be returned. See the contents of the <code>data</code> array in Response Schema below for a list of all available fields that can be returned. The <code>paperId</code> field is always returned. If the fields parameter is omitted, only the <code>paperId</code> and <code>title</code> will be returned. <p>Use a period (“.”) for fields that have version numbers or subfields, such as the <code>embedding</code>, <code>authors</code>, <code>citations</code>, and <code>references</code> fields: <ul> <li>When requesting <code>authors</code>, the <code>authorId</code> and <code>name</code> subfields are returned by default. To request other subfields, use the format <code>author.url,author.paperCount</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>citations</code> and <code>references</code>, the <code>paperId</code> and <code>title</code> subfields are returned by default. To request other subfields, use the format <code>citations.title,citations.abstract</code>, etc. See the Response Schema below for available subfields.</li> <li>When requesting <code>embedding</code>, the default <a href=\\\"https://github.com/allenai/specter\\\">Spector embedding version</a> is v1. Specify <code>embedding.specter_v2</code> to select v2 embeddings.</li> </ul> Examples: <ul> <li><code>fields=title,url</code></li> <li><code>fields=title,embedding.specter_v2</code></li> <li><code>fields=title,authors,citations.title,citations.abstract</code></li> </ul>\").optional(),\n fieldsOfStudy: z.string().describe(\"Restricts results to papers in the given fields of study, formatted as a comma-separated list: <ul> <li>Computer Science</li> <li>Medicine</li> <li>Chemistry</li> <li>Biology</li> <li>Materials Science</li> <li>Physics</li> <li>Geology</li> <li>Psychology</li> <li>Art</li> <li>History</li> <li>Geography</li> <li>Sociology</li> <li>Business</li> <li>Political Science</li> <li>Economics</li> <li>Philosophy</li> <li>Mathematics</li> <li>Engineering</li> <li>Environmental Science</li> <li>Agricultural and Food Sciences</li> <li>Education</li> <li>Law</li> <li>Linguistics</li> </ul> Example: <code>Physics,Mathematics</code> will return papers with either Physics or Mathematics in their list of fields-of-study.\").optional(),\n openAccessPdf: z.string().describe(\"Restricts results to only include papers with a public PDF. This parameter does not accept any values.\").optional(),\n minCitationCount: z.number().int().describe(\"Restricts results to only include papers with at least this many citations. Must be a non-negative integer. Example: 200\").optional(),\n publicationTypes: z.string().describe(\"Restricts results to any of the following paper publication types: <ul> <li>Review</li> <li>JournalArticle</li> <li>CaseReport</li> <li>ClinicalTrial</li> <li>Conference</li> <li>Dataset</li> <li>Editorial</li> <li>LettersAndComments</li> <li>MetaAnalysis</li> <li>News</li> <li>Study</li> <li>Book</li> <li>BookSection</li> </ul> Use a comma-separated list to include papers with any of the listed publication types. <br><br> Example: <code>Review,JournalArticle</code> will return papers with publication types Review and/or JournalArticle.\").optional(),\n publicationDateOrYear: z.string().describe(\"Restricts results to the given range of publication dates or years (inclusive). Accepts the format <code><startDate>:<endDate></code> with each date in <code>YYYY-MM-DD</code> format. <br> <br> Each term is optional, allowing for specific dates, fixed ranges, or open-ended ranges. In addition, prefixes are suported as a shorthand, e.g. <code>2020-06</code> matches all dates in June 2020. <br> <br> Specific dates are not known for all papers, so some records returned with this filter will have a <code>null</code> value for </code>publicationDate</code>. <code>year</code>, however, will always be present. For records where a specific publication date is not known, they will be treated as if published on January 1st of their publication year. <br> <br> Examples: <ul> <li><code>2019-03-05</code> on March 3rd, 2019</li> <li><code>2019-03</code> during March 2019</li> <li><code>2019</code> during 2019</li> <li><code>2016-03-05:2020-06-06</code> as early as March 5th, 2016 or as late as June 6th, 2020</li> <li><code>1981-08-25:</code> on or after August 25th, 1981</li> <li><code>:2015-01</code> before or on January 31st, 2015</li> <li><code>2015:2020</code> between January 1st, 2015 and December 31st, 2020</li> </ul>\").optional(),\n}).describe(\"Request schema for `PaperTitleSearch`\");\nconst SemanticscholarPaperTitleSearch_TldrSchema = z.object({\n text: z.string().describe(\"Brief AI-generated summary text\").nullable().optional(),\n model: z.string().describe(\"TLDR model version (e.g., tldr@v2.0.0)\").nullable().optional(),\n}).passthrough().describe(\"AI-generated summary of the paper\");\nconst SemanticscholarPaperTitleSearch_AuthorSchema = z.object({\n url: z.string().describe(\"URL to author's page on Semantic Scholar\").nullable().optional(),\n name: z.string().describe(\"Author's name\").nullable().optional(),\n hIndex: z.string().describe(\"h-index measuring author's productivity and citation impact\").nullable().optional(),\n authorId: z.string().describe(\"Semantic Scholar's unique identifier for the author\").nullable().optional(),\n homepage: z.string().describe(\"Author's personal homepage URL\").nullable().optional(),\n paperCount: z.string().describe(\"Total number of publications by the author\").nullable().optional(),\n externalIds: z.unknown().describe(\"External identifiers for the author (ORCID, DBLP)\").nullable().optional(),\n affiliations: z.array(z.string()).describe(\"Author's organizational affiliations\").nullable().optional(),\n citationCount: z.string().describe(\"Total citations received by the author\").nullable().optional(),\n}).passthrough().describe(\"Paper author with detailed information\");\nconst SemanticscholarPaperTitleSearch_JournalSchema = z.object({\n name: z.string().describe(\"Name of the journal\").nullable().optional(),\n pages: z.string().describe(\"Page number range\").nullable().optional(),\n volume: z.string().describe(\"Journal volume number\").nullable().optional(),\n}).passthrough().describe(\"Journal-specific metadata\");\nconst SemanticscholarPaperTitleSearch_EmbeddingSchema = z.object({\n model: z.string().describe(\"Specter vector embedding model version (e.g., specter@v0.1.1)\").nullable().optional(),\n vector: z.unknown().describe(\"Numerical embedding vector representation\").nullable().optional(),\n}).passthrough().describe(\"Specter vector embedding for the paper\");\nconst SemanticscholarPaperTitleSearch_ExternalIdsSchema = z.object({\n ACL: z.string().describe(\"Association for Computational Linguistics identifier\").nullable().optional(),\n DOI: z.string().describe(\"Digital Object Identifier\").nullable().optional(),\n MAG: z.string().describe(\"Microsoft Academic Graph identifier\").nullable().optional(),\n DBLP: z.string().describe(\"Digital Bibliography & Library Project identifier\").nullable().optional(),\n ArXiv: z.string().describe(\"arXiv.org identifier\").nullable().optional(),\n PubMed: z.string().describe(\"PubMed identifier\").nullable().optional(),\n Medline: z.string().describe(\"Medline identifier\").nullable().optional(),\n CorpusId: z.number().int().describe(\"Semantic Scholar corpus identifier\").nullable().optional(),\n PubMedCentral: z.string().describe(\"PubMed Central identifier\").nullable().optional(),\n}).passthrough().describe(\"External identifiers from various academic databases\");\nconst SemanticscholarPaperTitleSearch_OpenAccessPdfSchema = z.object({\n url: z.string().describe(\"Link to the paper's PDF\").nullable().optional(),\n status: z.string().describe(\"Type of open access (HYBRID, GOLD, GREEN, BRONZE)\").nullable().optional(),\n license: z.string().describe(\"License type for the paper (e.g., CCBY)\").nullable().optional(),\n disclaimer: z.string().describe(\"Legal disclaimer regarding usage\").nullable().optional(),\n}).passthrough().describe(\"Information about open access PDF availability\");\nconst SemanticscholarPaperTitleSearch_CitationStylesSchema = z.object({\n bibtex: z.string().describe(\"BibTeX formatted citation\").nullable().optional(),\n}).passthrough().describe(\"Formatted citations in various styles\");\nconst SemanticscholarPaperTitleSearch_S2FieldOfStudySchema = z.object({\n source: z.string().describe(\"Classification source (external or s2-fos-model)\").nullable().optional(),\n category: z.string().describe(\"Field of study category\").nullable().optional(),\n}).passthrough().describe(\"Detailed field of study classification with source attribution\");\nconst SemanticscholarPaperTitleSearch_PublicationVenueSchema = z.object({\n id: z.string().describe(\"Venue's unique identifier\").nullable().optional(),\n url: z.string().describe(\"Venue's website URL\").nullable().optional(),\n name: z.string().describe(\"Name of the venue\").nullable().optional(),\n type: z.string().describe(\"Type of venue (e.g., conference, journal)\").nullable().optional(),\n alternate_names: z.array(z.string()).describe(\"Alternative names for the venue\").nullable().optional(),\n}).passthrough().describe(\"Detailed information about the publication venue\");\nconst SemanticscholarPaperTitleSearch_PaperSchema = z.object({\n url: z.string().describe(\"Link to the paper on Semantic Scholar website\").nullable().optional(),\n tldr: SemanticscholarPaperTitleSearch_TldrSchema.nullable().optional(),\n year: z.number().int().describe(\"Year of publication\").nullable().optional(),\n title: z.string().describe(\"Title of the paper\").nullable().optional(),\n venue: z.string().describe(\"Publication venue name\").nullable().optional(),\n authors: z.array(SemanticscholarPaperTitleSearch_AuthorSchema).describe(\"List of paper authors with detailed information\").nullable().optional(),\n journal: SemanticscholarPaperTitleSearch_JournalSchema.nullable().optional(),\n paperId: z.string().describe(\"Semantic Scholar's primary unique identifier for the paper\").nullable(),\n abstract: z.string().describe(\"Paper abstract or summary (may be unavailable for legal reasons)\").nullable().optional(),\n corpusId: z.number().int().describe(\"Semantic Scholar's secondary unique numerical identifier for the paper\").nullable().optional(),\n citations: z.array(z.unknown()).describe(\"Papers that cite this paper (returned when requested via fields parameter)\").nullable().optional(),\n embedding: SemanticscholarPaperTitleSearch_EmbeddingSchema.nullable().optional(),\n matchScore: z.number().describe(\"Relevance score indicating how closely the paper matches the search query\").nullable().optional(),\n references: z.array(z.unknown()).describe(\"Papers referenced by this paper (returned when requested via fields parameter)\").nullable().optional(),\n externalIds: SemanticscholarPaperTitleSearch_ExternalIdsSchema.nullable().optional(),\n isOpenAccess: z.boolean().describe(\"Whether the paper is available as open access\").nullable().optional(),\n citationCount: z.number().int().describe(\"Total number of papers citing this paper\").nullable().optional(),\n fieldsOfStudy: z.array(z.string()).describe(\"High-level academic field categories\").nullable().optional(),\n openAccessPdf: SemanticscholarPaperTitleSearch_OpenAccessPdfSchema.nullable().optional(),\n citationStyles: SemanticscholarPaperTitleSearch_CitationStylesSchema.nullable().optional(),\n referenceCount: z.number().int().describe(\"Total number of papers this paper references\").nullable().optional(),\n publicationDate: z.string().describe(\"Publication date in YYYY-MM-DD format\").nullable().optional(),\n s2FieldsOfStudy: z.array(SemanticscholarPaperTitleSearch_S2FieldOfStudySchema).describe(\"Detailed field of study classifications with source attribution\").nullable().optional(),\n publicationTypes: z.array(z.string()).describe(\"Types of publication (e.g., JournalArticle, Conference)\").nullable().optional(),\n publicationVenue: SemanticscholarPaperTitleSearch_PublicationVenueSchema.nullable().optional(),\n textAvailability: z.string().describe(\"Level of text available: fulltext, abstract, or none\").nullable().optional(),\n influentialCitationCount: z.number().int().describe(\"Number of high-impact citations\").nullable().optional(),\n}).passthrough().describe(\"Paper object matching the search query\");\nexport const SemanticscholarPaperTitleSearchOutput = z.object({\n data: z.array(SemanticscholarPaperTitleSearch_PaperSchema).describe(\"Array containing a single paper object that is the closest title match. Each paper always includes paperId, title, and matchScore fields, plus any additional fields requested via the 'fields' parameter. Returns empty array if no match found.\"),\n}).passthrough().describe(\"Response schema for `PaperTitleSearch`\");\n\nexport const semanticscholarPaperTitleSearch = action(\"SEMANTICSCHOLAR_PAPER_TITLE_SEARCH\", {\n slug: \"semanticscholar-paper-title-search\",\n name: \"Paper title search\",\n description: \"Behaves similarly to <code>/paper/search</code>, but is intended for retrieval of a single paper based on closest title match to given query. Examples: <ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/search/match?query=Construction of the Literature Graph in Semantic Scholar</code></li> <ul> <li>Returns a single paper that is the closest title match.</li> <li>Each paper has its paperId, title, and matchScore as well as any other requested fields.</li> </ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/search/match?query=totalGarbageNonsense</code></li> <ul> <li>Returns with a 404 error and a \\\"Title match not found\\\" message.</li> </ul> </ul> <br> Limitations: <ul> <li>Will only return the single highest match result.</li> </ul> </ul>\",\n input: SemanticscholarPaperTitleSearchInput,\n output: SemanticscholarPaperTitleSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yUAAyU,CAAC,CAAC,SAAS;CAC9W,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gQAAgQ;CAC3R,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sYAAsY,CAAC,CAAC,SAAS;CAC5a,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0hDAA0hD,CAAC,CAAC,SAAS;CACjkD,eAAeA,IAAAA,EAAE,OAAO,C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AAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAa,wCAAwCA,IAAAA,EAAE,OAAO,EAC5D,MAAMA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,mPAAmP,EACzT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,kCAAkCC,eAAAA,OAAO,sCAAsC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,105 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/paper-title-search.d.ts
|
|
4
|
-
declare const SemanticscholarPaperTitleSearchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SemanticscholarPaperTitleSearchInput: z.ZodObject<{
|
|
5
|
+
year: z.ZodOptional<z.ZodString>;
|
|
6
|
+
query: z.ZodString;
|
|
7
|
+
venue: z.ZodOptional<z.ZodString>;
|
|
8
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
9
|
+
fieldsOfStudy: z.ZodOptional<z.ZodString>;
|
|
10
|
+
openAccessPdf: z.ZodOptional<z.ZodString>;
|
|
11
|
+
minCitationCount: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
publicationTypes: z.ZodOptional<z.ZodString>;
|
|
13
|
+
publicationDateOrYear: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SemanticscholarPaperTitleSearchOutput: z.ZodObject<{
|
|
16
|
+
data: z.ZodArray<z.ZodObject<{
|
|
17
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
tldr: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
26
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
hIndex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
paperCount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
externalIds: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
33
|
+
affiliations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
34
|
+
citationCount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
}, z.core.$loose>>>>;
|
|
36
|
+
journal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
37
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
pages: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
|
+
paperId: z.ZodNullable<z.ZodString>;
|
|
42
|
+
abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
corpusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
+
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
45
|
+
embedding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
vector: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
48
|
+
}, z.core.$loose>>>;
|
|
49
|
+
matchScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
references: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
51
|
+
externalIds: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
52
|
+
ACL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
DOI: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
MAG: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
DBLP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
ArXiv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
PubMed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
Medline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
CorpusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
PubMedCentral: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
}, z.core.$loose>>>;
|
|
62
|
+
isOpenAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
63
|
+
citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
64
|
+
fieldsOfStudy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
65
|
+
openAccessPdf: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
66
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
disclaimer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
}, z.core.$loose>>>;
|
|
71
|
+
citationStyles: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
72
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
}, z.core.$loose>>>;
|
|
74
|
+
referenceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
75
|
+
publicationDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
s2FieldsOfStudy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
77
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
}, z.core.$loose>>>>;
|
|
80
|
+
publicationTypes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
81
|
+
publicationVenue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
82
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
alternate_names: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
87
|
+
}, z.core.$loose>>>;
|
|
88
|
+
textAvailability: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
influentialCitationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
|
+
}, z.core.$loose>>;
|
|
91
|
+
}, z.core.$loose>;
|
|
92
|
+
declare const semanticscholarPaperTitleSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
93
|
+
query: string;
|
|
94
|
+
year?: string | undefined;
|
|
95
|
+
venue?: string | undefined;
|
|
96
|
+
fields?: string | undefined;
|
|
97
|
+
fieldsOfStudy?: string | undefined;
|
|
98
|
+
openAccessPdf?: string | undefined;
|
|
99
|
+
minCitationCount?: number | undefined;
|
|
100
|
+
publicationTypes?: string | undefined;
|
|
101
|
+
publicationDateOrYear?: string | undefined;
|
|
102
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
103
|
//#endregion
|
|
8
104
|
export { semanticscholarPaperTitleSearch };
|
|
9
105
|
//# sourceMappingURL=paper-title-search.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paper-title-search.d.cts","names":[],"sources":["../../src/actions/paper-title-search.ts"],"mappings":";;;cAIa,oCAAA,
|
|
1
|
+
{"version":3,"file":"paper-title-search.d.cts","names":[],"sources":["../../src/actions/paper-title-search.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cA+FpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIrC,+BAAA,gCAA+B,wBAAA"}
|
|
@@ -1,9 +1,105 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/paper-title-search.d.ts
|
|
4
|
-
declare const SemanticscholarPaperTitleSearchInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const SemanticscholarPaperTitleSearchInput: z.ZodObject<{
|
|
5
|
+
year: z.ZodOptional<z.ZodString>;
|
|
6
|
+
query: z.ZodString;
|
|
7
|
+
venue: z.ZodOptional<z.ZodString>;
|
|
8
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
9
|
+
fieldsOfStudy: z.ZodOptional<z.ZodString>;
|
|
10
|
+
openAccessPdf: z.ZodOptional<z.ZodString>;
|
|
11
|
+
minCitationCount: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
publicationTypes: z.ZodOptional<z.ZodString>;
|
|
13
|
+
publicationDateOrYear: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const SemanticscholarPaperTitleSearchOutput: z.ZodObject<{
|
|
16
|
+
data: z.ZodArray<z.ZodObject<{
|
|
17
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
tldr: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
}, z.core.$loose>>>;
|
|
22
|
+
year: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
venue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
authors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
26
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
hIndex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
authorId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
homepage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
paperCount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
externalIds: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
33
|
+
affiliations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
34
|
+
citationCount: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
}, z.core.$loose>>>>;
|
|
36
|
+
journal: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
37
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
pages: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
volume: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
}, z.core.$loose>>>;
|
|
41
|
+
paperId: z.ZodNullable<z.ZodString>;
|
|
42
|
+
abstract: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
corpusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
+
citations: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
45
|
+
embedding: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
46
|
+
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
47
|
+
vector: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
48
|
+
}, z.core.$loose>>>;
|
|
49
|
+
matchScore: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
references: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
51
|
+
externalIds: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
52
|
+
ACL: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
DOI: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
MAG: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
DBLP: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
56
|
+
ArXiv: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
PubMed: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
Medline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
CorpusId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
60
|
+
PubMedCentral: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
61
|
+
}, z.core.$loose>>>;
|
|
62
|
+
isOpenAccess: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
63
|
+
citationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
64
|
+
fieldsOfStudy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
65
|
+
openAccessPdf: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
66
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
68
|
+
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
+
disclaimer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
70
|
+
}, z.core.$loose>>>;
|
|
71
|
+
citationStyles: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
72
|
+
bibtex: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
73
|
+
}, z.core.$loose>>>;
|
|
74
|
+
referenceCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
75
|
+
publicationDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
s2FieldsOfStudy: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
77
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
}, z.core.$loose>>>>;
|
|
80
|
+
publicationTypes: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
81
|
+
publicationVenue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
82
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
85
|
+
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
86
|
+
alternate_names: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
87
|
+
}, z.core.$loose>>>;
|
|
88
|
+
textAvailability: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
89
|
+
influentialCitationCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
90
|
+
}, z.core.$loose>>;
|
|
91
|
+
}, z.core.$loose>;
|
|
92
|
+
declare const semanticscholarPaperTitleSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
93
|
+
query: string;
|
|
94
|
+
year?: string | undefined;
|
|
95
|
+
venue?: string | undefined;
|
|
96
|
+
fields?: string | undefined;
|
|
97
|
+
fieldsOfStudy?: string | undefined;
|
|
98
|
+
openAccessPdf?: string | undefined;
|
|
99
|
+
minCitationCount?: number | undefined;
|
|
100
|
+
publicationTypes?: string | undefined;
|
|
101
|
+
publicationDateOrYear?: string | undefined;
|
|
102
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
103
|
//#endregion
|
|
8
104
|
export { semanticscholarPaperTitleSearch };
|
|
9
105
|
//# sourceMappingURL=paper-title-search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paper-title-search.d.mts","names":[],"sources":["../../src/actions/paper-title-search.ts"],"mappings":";;;cAIa,oCAAA,
|
|
1
|
+
{"version":3,"file":"paper-title-search.d.mts","names":[],"sources":["../../src/actions/paper-title-search.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cA+FpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIrC,+BAAA,gCAA+B,wBAAA"}
|
|
@@ -15,7 +15,7 @@ const SemanticscholarPaperTitleSearchInput = z.object({
|
|
|
15
15
|
const SemanticscholarPaperTitleSearch_TldrSchema = z.object({
|
|
16
16
|
text: z.string().describe("Brief AI-generated summary text").nullable().optional(),
|
|
17
17
|
model: z.string().describe("TLDR model version (e.g., tldr@v2.0.0)").nullable().optional()
|
|
18
|
-
}).describe("AI-generated summary of the paper");
|
|
18
|
+
}).passthrough().describe("AI-generated summary of the paper");
|
|
19
19
|
const SemanticscholarPaperTitleSearch_AuthorSchema = z.object({
|
|
20
20
|
url: z.string().describe("URL to author's page on Semantic Scholar").nullable().optional(),
|
|
21
21
|
name: z.string().describe("Author's name").nullable().optional(),
|
|
@@ -26,16 +26,16 @@ const SemanticscholarPaperTitleSearch_AuthorSchema = z.object({
|
|
|
26
26
|
externalIds: z.unknown().describe("External identifiers for the author (ORCID, DBLP)").nullable().optional(),
|
|
27
27
|
affiliations: z.array(z.string()).describe("Author's organizational affiliations").nullable().optional(),
|
|
28
28
|
citationCount: z.string().describe("Total citations received by the author").nullable().optional()
|
|
29
|
-
}).describe("Paper author with detailed information");
|
|
29
|
+
}).passthrough().describe("Paper author with detailed information");
|
|
30
30
|
const SemanticscholarPaperTitleSearch_JournalSchema = z.object({
|
|
31
31
|
name: z.string().describe("Name of the journal").nullable().optional(),
|
|
32
32
|
pages: z.string().describe("Page number range").nullable().optional(),
|
|
33
33
|
volume: z.string().describe("Journal volume number").nullable().optional()
|
|
34
|
-
}).describe("Journal-specific metadata");
|
|
34
|
+
}).passthrough().describe("Journal-specific metadata");
|
|
35
35
|
const SemanticscholarPaperTitleSearch_EmbeddingSchema = z.object({
|
|
36
36
|
model: z.string().describe("Specter vector embedding model version (e.g., specter@v0.1.1)").nullable().optional(),
|
|
37
37
|
vector: z.unknown().describe("Numerical embedding vector representation").nullable().optional()
|
|
38
|
-
}).describe("Specter vector embedding for the paper");
|
|
38
|
+
}).passthrough().describe("Specter vector embedding for the paper");
|
|
39
39
|
const SemanticscholarPaperTitleSearch_ExternalIdsSchema = z.object({
|
|
40
40
|
ACL: z.string().describe("Association for Computational Linguistics identifier").nullable().optional(),
|
|
41
41
|
DOI: z.string().describe("Digital Object Identifier").nullable().optional(),
|
|
@@ -46,25 +46,25 @@ const SemanticscholarPaperTitleSearch_ExternalIdsSchema = z.object({
|
|
|
46
46
|
Medline: z.string().describe("Medline identifier").nullable().optional(),
|
|
47
47
|
CorpusId: z.number().int().describe("Semantic Scholar corpus identifier").nullable().optional(),
|
|
48
48
|
PubMedCentral: z.string().describe("PubMed Central identifier").nullable().optional()
|
|
49
|
-
}).describe("External identifiers from various academic databases");
|
|
49
|
+
}).passthrough().describe("External identifiers from various academic databases");
|
|
50
50
|
const SemanticscholarPaperTitleSearch_OpenAccessPdfSchema = z.object({
|
|
51
51
|
url: z.string().describe("Link to the paper's PDF").nullable().optional(),
|
|
52
52
|
status: z.string().describe("Type of open access (HYBRID, GOLD, GREEN, BRONZE)").nullable().optional(),
|
|
53
53
|
license: z.string().describe("License type for the paper (e.g., CCBY)").nullable().optional(),
|
|
54
54
|
disclaimer: z.string().describe("Legal disclaimer regarding usage").nullable().optional()
|
|
55
|
-
}).describe("Information about open access PDF availability");
|
|
56
|
-
const SemanticscholarPaperTitleSearch_CitationStylesSchema = z.object({ bibtex: z.string().describe("BibTeX formatted citation").nullable().optional() }).describe("Formatted citations in various styles");
|
|
55
|
+
}).passthrough().describe("Information about open access PDF availability");
|
|
56
|
+
const SemanticscholarPaperTitleSearch_CitationStylesSchema = z.object({ bibtex: z.string().describe("BibTeX formatted citation").nullable().optional() }).passthrough().describe("Formatted citations in various styles");
|
|
57
57
|
const SemanticscholarPaperTitleSearch_S2FieldOfStudySchema = z.object({
|
|
58
58
|
source: z.string().describe("Classification source (external or s2-fos-model)").nullable().optional(),
|
|
59
59
|
category: z.string().describe("Field of study category").nullable().optional()
|
|
60
|
-
}).describe("Detailed field of study classification with source attribution");
|
|
60
|
+
}).passthrough().describe("Detailed field of study classification with source attribution");
|
|
61
61
|
const SemanticscholarPaperTitleSearch_PublicationVenueSchema = z.object({
|
|
62
62
|
id: z.string().describe("Venue's unique identifier").nullable().optional(),
|
|
63
63
|
url: z.string().describe("Venue's website URL").nullable().optional(),
|
|
64
64
|
name: z.string().describe("Name of the venue").nullable().optional(),
|
|
65
65
|
type: z.string().describe("Type of venue (e.g., conference, journal)").nullable().optional(),
|
|
66
66
|
alternate_names: z.array(z.string()).describe("Alternative names for the venue").nullable().optional()
|
|
67
|
-
}).describe("Detailed information about the publication venue");
|
|
67
|
+
}).passthrough().describe("Detailed information about the publication venue");
|
|
68
68
|
const SemanticscholarPaperTitleSearch_PaperSchema = z.object({
|
|
69
69
|
url: z.string().describe("Link to the paper on Semantic Scholar website").nullable().optional(),
|
|
70
70
|
tldr: SemanticscholarPaperTitleSearch_TldrSchema.nullable().optional(),
|
|
@@ -73,7 +73,7 @@ const SemanticscholarPaperTitleSearch_PaperSchema = z.object({
|
|
|
73
73
|
venue: z.string().describe("Publication venue name").nullable().optional(),
|
|
74
74
|
authors: z.array(SemanticscholarPaperTitleSearch_AuthorSchema).describe("List of paper authors with detailed information").nullable().optional(),
|
|
75
75
|
journal: SemanticscholarPaperTitleSearch_JournalSchema.nullable().optional(),
|
|
76
|
-
paperId: z.string().describe("Semantic Scholar's primary unique identifier for the paper"),
|
|
76
|
+
paperId: z.string().describe("Semantic Scholar's primary unique identifier for the paper").nullable(),
|
|
77
77
|
abstract: z.string().describe("Paper abstract or summary (may be unavailable for legal reasons)").nullable().optional(),
|
|
78
78
|
corpusId: z.number().int().describe("Semantic Scholar's secondary unique numerical identifier for the paper").nullable().optional(),
|
|
79
79
|
citations: z.array(z.unknown()).describe("Papers that cite this paper (returned when requested via fields parameter)").nullable().optional(),
|
|
@@ -93,13 +93,13 @@ const SemanticscholarPaperTitleSearch_PaperSchema = z.object({
|
|
|
93
93
|
publicationVenue: SemanticscholarPaperTitleSearch_PublicationVenueSchema.nullable().optional(),
|
|
94
94
|
textAvailability: z.string().describe("Level of text available: fulltext, abstract, or none").nullable().optional(),
|
|
95
95
|
influentialCitationCount: z.number().int().describe("Number of high-impact citations").nullable().optional()
|
|
96
|
-
}).describe("Paper object matching the search query");
|
|
96
|
+
}).passthrough().describe("Paper object matching the search query");
|
|
97
97
|
const semanticscholarPaperTitleSearch = action("SEMANTICSCHOLAR_PAPER_TITLE_SEARCH", {
|
|
98
98
|
slug: "semanticscholar-paper-title-search",
|
|
99
99
|
name: "Paper title search",
|
|
100
100
|
description: "Behaves similarly to <code>/paper/search</code>, but is intended for retrieval of a single paper based on closest title match to given query. Examples: <ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/search/match?query=Construction of the Literature Graph in Semantic Scholar</code></li> <ul> <li>Returns a single paper that is the closest title match.</li> <li>Each paper has its paperId, title, and matchScore as well as any other requested fields.</li> </ul> <li><code>https://api.semanticscholar.org/graph/v1/paper/search/match?query=totalGarbageNonsense</code></li> <ul> <li>Returns with a 404 error and a \"Title match not found\" message.</li> </ul> </ul> <br> Limitations: <ul> <li>Will only return the single highest match result.</li> </ul> </ul>",
|
|
101
101
|
input: SemanticscholarPaperTitleSearchInput,
|
|
102
|
-
output: z.object({ data: z.array(SemanticscholarPaperTitleSearch_PaperSchema).describe("Array containing a single paper object that is the closest title match. Each paper always includes paperId, title, and matchScore fields, plus any additional fields requested via the 'fields' parameter. Returns empty array if no match found.") }).describe("Response schema for `PaperTitleSearch`")
|
|
102
|
+
output: z.object({ data: z.array(SemanticscholarPaperTitleSearch_PaperSchema).describe("Array containing a single paper object that is the closest title match. Each paper always includes paperId, title, and matchScore fields, plus any additional fields requested via the 'fields' parameter. Returns empty array if no match found.") }).passthrough().describe("Response schema for `PaperTitleSearch`")
|
|
103
103
|
});
|
|
104
104
|
//#endregion
|
|
105
105
|
export { semanticscholarPaperTitleSearch };
|