@keystrokehq/serply 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/perform-image-search.cjs +1 -0
- package/dist/actions/perform-image-search.cjs.map +1 -1
- package/dist/actions/perform-image-search.d.cts +3 -8
- package/dist/actions/perform-image-search.d.cts.map +1 -1
- package/dist/actions/perform-image-search.d.mts +3 -8
- package/dist/actions/perform-image-search.d.mts.map +1 -1
- package/dist/actions/perform-image-search.mjs +1 -0
- package/dist/actions/perform-image-search.mjs.map +1 -1
- package/dist/actions/perform-maps-search.cjs +1 -0
- package/dist/actions/perform-maps-search.cjs.map +1 -1
- package/dist/actions/perform-maps-search.d.cts +3 -4
- package/dist/actions/perform-maps-search.d.cts.map +1 -1
- package/dist/actions/perform-maps-search.d.mts +3 -4
- package/dist/actions/perform-maps-search.d.mts.map +1 -1
- package/dist/actions/perform-maps-search.mjs +1 -0
- package/dist/actions/perform-maps-search.mjs.map +1 -1
- package/dist/actions/perform-scholar-search.cjs +1 -0
- package/dist/actions/perform-scholar-search.cjs.map +1 -1
- package/dist/actions/perform-scholar-search.d.cts +3 -7
- package/dist/actions/perform-scholar-search.d.cts.map +1 -1
- package/dist/actions/perform-scholar-search.d.mts +3 -7
- package/dist/actions/perform-scholar-search.d.mts.map +1 -1
- package/dist/actions/perform-scholar-search.mjs +1 -0
- package/dist/actions/perform-scholar-search.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["serply","executeSerplyTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { serply } from \"./app\";\nimport { executeSerplyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["serply","executeSerplyTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { serply } from \"./app\";\nimport { executeSerplyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof serply.credential> {\n return serply.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSerplyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { serply } from \"./app\";\nimport { executeSerplyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { serply } from \"./app\";\nimport { executeSerplyTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof serply.credential> {\n return serply.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeSerplyTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-image-search.cjs","names":["z","action"],"sources":["../../src/actions/perform-image-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SerplyPerformImageSearchInput = z.object({\n gl: z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2) for geographic localization of search results. For example, 'US' for United States, 'UK' for United Kingdom, 'FR' for France.\").optional(),\n hl: z.string().describe(\"Two-letter language code (ISO 639-1) for the language of search results. For example, 'en' for English, 'fr' for French, 'es' for Spanish.\").optional(),\n num: z.number().int().default(10).describe(\"Number of image results to return per page. Default is 10, maximum is 100.\").optional(),\n safe: z.string().describe(\"SafeSearch filter to exclude explicit content. Use 'active' to filter adult content, or 'off' to disable filtering. Default is off when not specified.\").optional(),\n query: z.string().describe(\"The search query string to find images. Can be any text describing what images you want to search for.\"),\n start: z.number().int().default(0).describe(\"Starting index for pagination (zero-based). Use this to retrieve results beyond the first page. Default is 0.\").optional(),\n});\nconst SerplyPerformImageSearch_ImageResultSchema = z.object({\n url: z.string().describe(\"Direct URL to the full-size image file.\").nullable().optional(),\n title: z.string().describe(\"Title or caption describing the image content.\").nullable().optional(),\n width: z.number().int().describe(\"Width of the image in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the image in pixels.\").nullable().optional(),\n source: z.string().describe(\"Domain name or website where the image originates.\").nullable().optional(),\n contextLink: z.string().describe(\"URL of the webpage where this image appears, providing context about the image.\").nullable().optional(),\n thumbnailUrl: z.string().describe(\"URL to a thumbnail version of the image for preview purposes.\").nullable().optional(),\n}).passthrough().describe(\"Individual image search result with metadata.\");\nexport const SerplyPerformImageSearchOutput = z.object({\n total: z.number().int().describe(\"Estimated total number of images available for this query across all pages. May be null if unavailable.\").nullable().optional(),\n image_results: z.array(SerplyPerformImageSearch_ImageResultSchema).describe(\"List of image search results matching the query. Each result includes the image URL, dimensions, title, and source information.\").nullable().optional(),\n}).passthrough().describe(\"Response containing image search results and metadata.\");\n\nexport const serplyPerformImageSearch = action(\"SERPLY_PERFORM_IMAGE_SEARCH\", {\n slug: \"serply-perform-image-search\",\n name: \"Perform Image Search\",\n description: \"Performs an image search using the Serply API to find images matching a text query. This tool searches for images on the web and returns results with image URLs, thumbnails, dimensions, titles, and source information. Ideal for finding visual content, gathering image references, or discovering images related to specific topics or keywords. Use this when you need to: - Find images matching specific descriptions or keywords - Gather visual references for a topic - Retrieve image URLs for display or download - Search for images with specific characteristics Supports pagination, localization (language/country), and safe search filtering.\",\n input: SerplyPerformImageSearchInput,\n output: SerplyPerformImageSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-image-search.cjs","names":["z","action"],"sources":["../../src/actions/perform-image-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { serply } from \"../app\";\n\nexport const SerplyPerformImageSearchInput = z.object({\n gl: z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2) for geographic localization of search results. For example, 'US' for United States, 'UK' for United Kingdom, 'FR' for France.\").optional(),\n hl: z.string().describe(\"Two-letter language code (ISO 639-1) for the language of search results. For example, 'en' for English, 'fr' for French, 'es' for Spanish.\").optional(),\n num: z.number().int().default(10).describe(\"Number of image results to return per page. Default is 10, maximum is 100.\").optional(),\n safe: z.string().describe(\"SafeSearch filter to exclude explicit content. Use 'active' to filter adult content, or 'off' to disable filtering. Default is off when not specified.\").optional(),\n query: z.string().describe(\"The search query string to find images. Can be any text describing what images you want to search for.\"),\n start: z.number().int().default(0).describe(\"Starting index for pagination (zero-based). Use this to retrieve results beyond the first page. Default is 0.\").optional(),\n});\nconst SerplyPerformImageSearch_ImageResultSchema = z.object({\n url: z.string().describe(\"Direct URL to the full-size image file.\").nullable().optional(),\n title: z.string().describe(\"Title or caption describing the image content.\").nullable().optional(),\n width: z.number().int().describe(\"Width of the image in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the image in pixels.\").nullable().optional(),\n source: z.string().describe(\"Domain name or website where the image originates.\").nullable().optional(),\n contextLink: z.string().describe(\"URL of the webpage where this image appears, providing context about the image.\").nullable().optional(),\n thumbnailUrl: z.string().describe(\"URL to a thumbnail version of the image for preview purposes.\").nullable().optional(),\n}).passthrough().describe(\"Individual image search result with metadata.\");\nexport const SerplyPerformImageSearchOutput = z.object({\n total: z.number().int().describe(\"Estimated total number of images available for this query across all pages. May be null if unavailable.\").nullable().optional(),\n image_results: z.array(SerplyPerformImageSearch_ImageResultSchema).describe(\"List of image search results matching the query. Each result includes the image URL, dimensions, title, and source information.\").nullable().optional(),\n}).passthrough().describe(\"Response containing image search results and metadata.\");\n\nexport const serplyPerformImageSearch: AppAction<\n typeof SerplyPerformImageSearchInput,\n typeof SerplyPerformImageSearchOutput,\n typeof serply.credential\n> = action(\"SERPLY_PERFORM_IMAGE_SEARCH\", {\n slug: \"serply-perform-image-search\",\n name: \"Perform Image Search\",\n description: \"Performs an image search using the Serply API to find images matching a text query. This tool searches for images on the web and returns results with image URLs, thumbnails, dimensions, titles, and source information. Ideal for finding visual content, gathering image references, or discovering images related to specific topics or keywords. Use this when you need to: - Find images matching specific descriptions or keywords - Gather visual references for a topic - Retrieve image URLs for display or download - Search for images with specific characteristics Supports pagination, localization (language/country), and safe search filtering.\",\n input: SerplyPerformImageSearchInput,\n output: SerplyPerformImageSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;CAC/M,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CAC/K,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAClI,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC7L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;CACnI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AACxK,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChK,eAAeA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { serply } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/perform-image-search.d.ts
|
|
@@ -21,14 +23,7 @@ declare const SerplyPerformImageSearchOutput: z.ZodObject<{
|
|
|
21
23
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>>>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const serplyPerformImageSearch:
|
|
25
|
-
query: string;
|
|
26
|
-
gl?: string | undefined;
|
|
27
|
-
hl?: string | undefined;
|
|
28
|
-
num?: number | undefined;
|
|
29
|
-
safe?: string | undefined;
|
|
30
|
-
start?: number | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const serplyPerformImageSearch: AppAction<typeof SerplyPerformImageSearchInput, typeof SerplyPerformImageSearchOutput, typeof serply.credential>;
|
|
32
27
|
//#endregion
|
|
33
28
|
export { serplyPerformImageSearch };
|
|
34
29
|
//# sourceMappingURL=perform-image-search.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-image-search.d.cts","names":[],"sources":["../../src/actions/perform-image-search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-image-search.d.cts","names":[],"sources":["../../src/actions/perform-image-search.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cAiB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { serply } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/perform-image-search.d.ts
|
|
@@ -21,14 +23,7 @@ declare const SerplyPerformImageSearchOutput: z.ZodObject<{
|
|
|
21
23
|
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
24
|
}, z.core.$loose>>>>;
|
|
23
25
|
}, z.core.$loose>;
|
|
24
|
-
declare const serplyPerformImageSearch:
|
|
25
|
-
query: string;
|
|
26
|
-
gl?: string | undefined;
|
|
27
|
-
hl?: string | undefined;
|
|
28
|
-
num?: number | undefined;
|
|
29
|
-
safe?: string | undefined;
|
|
30
|
-
start?: number | undefined;
|
|
31
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
26
|
+
declare const serplyPerformImageSearch: AppAction<typeof SerplyPerformImageSearchInput, typeof SerplyPerformImageSearchOutput, typeof serply.credential>;
|
|
32
27
|
//#endregion
|
|
33
28
|
export { serplyPerformImageSearch };
|
|
34
29
|
//# sourceMappingURL=perform-image-search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-image-search.d.mts","names":[],"sources":["../../src/actions/perform-image-search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-image-search.d.mts","names":[],"sources":["../../src/actions/perform-image-search.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;cAiB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-image-search.mjs","names":[],"sources":["../../src/actions/perform-image-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SerplyPerformImageSearchInput = z.object({\n gl: z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2) for geographic localization of search results. For example, 'US' for United States, 'UK' for United Kingdom, 'FR' for France.\").optional(),\n hl: z.string().describe(\"Two-letter language code (ISO 639-1) for the language of search results. For example, 'en' for English, 'fr' for French, 'es' for Spanish.\").optional(),\n num: z.number().int().default(10).describe(\"Number of image results to return per page. Default is 10, maximum is 100.\").optional(),\n safe: z.string().describe(\"SafeSearch filter to exclude explicit content. Use 'active' to filter adult content, or 'off' to disable filtering. Default is off when not specified.\").optional(),\n query: z.string().describe(\"The search query string to find images. Can be any text describing what images you want to search for.\"),\n start: z.number().int().default(0).describe(\"Starting index for pagination (zero-based). Use this to retrieve results beyond the first page. Default is 0.\").optional(),\n});\nconst SerplyPerformImageSearch_ImageResultSchema = z.object({\n url: z.string().describe(\"Direct URL to the full-size image file.\").nullable().optional(),\n title: z.string().describe(\"Title or caption describing the image content.\").nullable().optional(),\n width: z.number().int().describe(\"Width of the image in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the image in pixels.\").nullable().optional(),\n source: z.string().describe(\"Domain name or website where the image originates.\").nullable().optional(),\n contextLink: z.string().describe(\"URL of the webpage where this image appears, providing context about the image.\").nullable().optional(),\n thumbnailUrl: z.string().describe(\"URL to a thumbnail version of the image for preview purposes.\").nullable().optional(),\n}).passthrough().describe(\"Individual image search result with metadata.\");\nexport const SerplyPerformImageSearchOutput = z.object({\n total: z.number().int().describe(\"Estimated total number of images available for this query across all pages. May be null if unavailable.\").nullable().optional(),\n image_results: z.array(SerplyPerformImageSearch_ImageResultSchema).describe(\"List of image search results matching the query. Each result includes the image URL, dimensions, title, and source information.\").nullable().optional(),\n}).passthrough().describe(\"Response containing image search results and metadata.\");\n\nexport const serplyPerformImageSearch = action(\"SERPLY_PERFORM_IMAGE_SEARCH\", {\n slug: \"serply-perform-image-search\",\n name: \"Perform Image Search\",\n description: \"Performs an image search using the Serply API to find images matching a text query. This tool searches for images on the web and returns results with image URLs, thumbnails, dimensions, titles, and source information. Ideal for finding visual content, gathering image references, or discovering images related to specific topics or keywords. Use this when you need to: - Find images matching specific descriptions or keywords - Gather visual references for a topic - Retrieve image URLs for display or download - Search for images with specific characteristics Supports pagination, localization (language/country), and safe search filtering.\",\n input: SerplyPerformImageSearchInput,\n output: SerplyPerformImageSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-image-search.mjs","names":[],"sources":["../../src/actions/perform-image-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { serply } from \"../app\";\n\nexport const SerplyPerformImageSearchInput = z.object({\n gl: z.string().describe(\"Two-letter country code (ISO 3166-1 alpha-2) for geographic localization of search results. For example, 'US' for United States, 'UK' for United Kingdom, 'FR' for France.\").optional(),\n hl: z.string().describe(\"Two-letter language code (ISO 639-1) for the language of search results. For example, 'en' for English, 'fr' for French, 'es' for Spanish.\").optional(),\n num: z.number().int().default(10).describe(\"Number of image results to return per page. Default is 10, maximum is 100.\").optional(),\n safe: z.string().describe(\"SafeSearch filter to exclude explicit content. Use 'active' to filter adult content, or 'off' to disable filtering. Default is off when not specified.\").optional(),\n query: z.string().describe(\"The search query string to find images. Can be any text describing what images you want to search for.\"),\n start: z.number().int().default(0).describe(\"Starting index for pagination (zero-based). Use this to retrieve results beyond the first page. Default is 0.\").optional(),\n});\nconst SerplyPerformImageSearch_ImageResultSchema = z.object({\n url: z.string().describe(\"Direct URL to the full-size image file.\").nullable().optional(),\n title: z.string().describe(\"Title or caption describing the image content.\").nullable().optional(),\n width: z.number().int().describe(\"Width of the image in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the image in pixels.\").nullable().optional(),\n source: z.string().describe(\"Domain name or website where the image originates.\").nullable().optional(),\n contextLink: z.string().describe(\"URL of the webpage where this image appears, providing context about the image.\").nullable().optional(),\n thumbnailUrl: z.string().describe(\"URL to a thumbnail version of the image for preview purposes.\").nullable().optional(),\n}).passthrough().describe(\"Individual image search result with metadata.\");\nexport const SerplyPerformImageSearchOutput = z.object({\n total: z.number().int().describe(\"Estimated total number of images available for this query across all pages. May be null if unavailable.\").nullable().optional(),\n image_results: z.array(SerplyPerformImageSearch_ImageResultSchema).describe(\"List of image search results matching the query. Each result includes the image URL, dimensions, title, and source information.\").nullable().optional(),\n}).passthrough().describe(\"Response containing image search results and metadata.\");\n\nexport const serplyPerformImageSearch: AppAction<\n typeof SerplyPerformImageSearchInput,\n typeof SerplyPerformImageSearchOutput,\n typeof serply.credential\n> = action(\"SERPLY_PERFORM_IMAGE_SEARCH\", {\n slug: \"serply-perform-image-search\",\n name: \"Perform Image Search\",\n description: \"Performs an image search using the Serply API to find images matching a text query. This tool searches for images on the web and returns results with image URLs, thumbnails, dimensions, titles, and source information. Ideal for finding visual content, gathering image references, or discovering images related to specific topics or keywords. Use this when you need to: - Find images matching specific descriptions or keywords - Gather visual references for a topic - Retrieve image URLs for display or download - Search for images with specific characteristics Supports pagination, localization (language/country), and safe search filtering.\",\n input: SerplyPerformImageSearchInput,\n output: SerplyPerformImageSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO;CACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;CAC/M,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CAC/K,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CAClI,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CAC7L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG;CACnI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AACxK,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAMzE,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd4C,EAAE,OAAO;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChK,eAAe,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-maps-search.cjs","names":["z","action"],"sources":["../../src/actions/perform-maps-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SerplyPerformMapsSearchInput = z.object({\n limit: z.number().int().describe(\"Maximum number of results to return.\").optional(),\n query: z.string().describe(\"The search query for maps (e.g., 'restaurants in Paris').\"),\n});\nconst SerplyPerformMapsSearch_MapSearchResultSchema = z.object({\n url: z.string().describe(\"Link to the place on maps.\").nullable(),\n name: z.string().describe(\"Name of the place.\").nullable(),\n rating: z.number().describe(\"User rating of the place, if available.\").nullable().optional(),\n address: z.string().describe(\"Address of the place.\").nullable(),\n category: z.string().describe(\"Category/type of place (e.g., restaurant).\").nullable(),\n latitude: z.number().describe(\"Latitude of the location.\").nullable(),\n longitude: z.number().describe(\"Longitude of the location.\").nullable(),\n}).passthrough();\nexport const SerplyPerformMapsSearchOutput = z.object({\n status: z.string().describe(\"Status of the response (e.g., 'success' or 'error').\").nullable(),\n message: z.string().describe(\"Additional message, typically for errors.\").nullable().optional(),\n results: z.array(SerplyPerformMapsSearch_MapSearchResultSchema).describe(\"List of map search results.\"),\n}).passthrough();\n\nexport const serplyPerformMapsSearch = action(\"SERPLY_PERFORM_MAPS_SEARCH\", {\n slug: \"serply-perform-maps-search\",\n name: \"Perform Maps Search\",\n description: \"Tool to perform a maps search. Use when you need to find geographic locations for a given query.\",\n input: SerplyPerformMapsSearchInput,\n output: SerplyPerformMapsSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-maps-search.cjs","names":["z","action"],"sources":["../../src/actions/perform-maps-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { serply } from \"../app\";\n\nexport const SerplyPerformMapsSearchInput = z.object({\n limit: z.number().int().describe(\"Maximum number of results to return.\").optional(),\n query: z.string().describe(\"The search query for maps (e.g., 'restaurants in Paris').\"),\n});\nconst SerplyPerformMapsSearch_MapSearchResultSchema = z.object({\n url: z.string().describe(\"Link to the place on maps.\").nullable(),\n name: z.string().describe(\"Name of the place.\").nullable(),\n rating: z.number().describe(\"User rating of the place, if available.\").nullable().optional(),\n address: z.string().describe(\"Address of the place.\").nullable(),\n category: z.string().describe(\"Category/type of place (e.g., restaurant).\").nullable(),\n latitude: z.number().describe(\"Latitude of the location.\").nullable(),\n longitude: z.number().describe(\"Longitude of the location.\").nullable(),\n}).passthrough();\nexport const SerplyPerformMapsSearchOutput = z.object({\n status: z.string().describe(\"Status of the response (e.g., 'success' or 'error').\").nullable(),\n message: z.string().describe(\"Additional message, typically for errors.\").nullable().optional(),\n results: z.array(SerplyPerformMapsSearch_MapSearchResultSchema).describe(\"List of map search results.\"),\n}).passthrough();\n\nexport const serplyPerformMapsSearch: AppAction<\n typeof SerplyPerformMapsSearchInput,\n typeof SerplyPerformMapsSearchOutput,\n typeof serply.credential\n> = action(\"SERPLY_PERFORM_MAPS_SEARCH\", {\n slug: \"serply-perform-maps-search\",\n name: \"Perform Maps Search\",\n description: \"Tool to perform a maps search. Use when you need to find geographic locations for a given query.\",\n input: SerplyPerformMapsSearchInput,\n output: SerplyPerformMapsSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AACxF,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,SAASA,IAAAA,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6BAA6B;AACxG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { serply } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/perform-maps-search.d.ts
|
|
@@ -18,10 +20,7 @@ declare const SerplyPerformMapsSearchOutput: z.ZodObject<{
|
|
|
18
20
|
longitude: z.ZodNullable<z.ZodNumber>;
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const serplyPerformMapsSearch:
|
|
22
|
-
query: string;
|
|
23
|
-
limit?: number | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
declare const serplyPerformMapsSearch: AppAction<typeof SerplyPerformMapsSearchInput, typeof SerplyPerformMapsSearchOutput, typeof serply.credential>;
|
|
25
24
|
//#endregion
|
|
26
25
|
export { serplyPerformMapsSearch };
|
|
27
26
|
//# sourceMappingURL=perform-maps-search.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-maps-search.d.cts","names":[],"sources":["../../src/actions/perform-maps-search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-maps-search.d.cts","names":[],"sources":["../../src/actions/perform-maps-search.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { serply } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/perform-maps-search.d.ts
|
|
@@ -18,10 +20,7 @@ declare const SerplyPerformMapsSearchOutput: z.ZodObject<{
|
|
|
18
20
|
longitude: z.ZodNullable<z.ZodNumber>;
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const serplyPerformMapsSearch:
|
|
22
|
-
query: string;
|
|
23
|
-
limit?: number | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
declare const serplyPerformMapsSearch: AppAction<typeof SerplyPerformMapsSearchInput, typeof SerplyPerformMapsSearchOutput, typeof serply.credential>;
|
|
25
24
|
//#endregion
|
|
26
25
|
export { serplyPerformMapsSearch };
|
|
27
26
|
//# sourceMappingURL=perform-maps-search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-maps-search.d.mts","names":[],"sources":["../../src/actions/perform-maps-search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-maps-search.d.mts","names":[],"sources":["../../src/actions/perform-maps-search.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAa5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAM7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-maps-search.mjs","names":[],"sources":["../../src/actions/perform-maps-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SerplyPerformMapsSearchInput = z.object({\n limit: z.number().int().describe(\"Maximum number of results to return.\").optional(),\n query: z.string().describe(\"The search query for maps (e.g., 'restaurants in Paris').\"),\n});\nconst SerplyPerformMapsSearch_MapSearchResultSchema = z.object({\n url: z.string().describe(\"Link to the place on maps.\").nullable(),\n name: z.string().describe(\"Name of the place.\").nullable(),\n rating: z.number().describe(\"User rating of the place, if available.\").nullable().optional(),\n address: z.string().describe(\"Address of the place.\").nullable(),\n category: z.string().describe(\"Category/type of place (e.g., restaurant).\").nullable(),\n latitude: z.number().describe(\"Latitude of the location.\").nullable(),\n longitude: z.number().describe(\"Longitude of the location.\").nullable(),\n}).passthrough();\nexport const SerplyPerformMapsSearchOutput = z.object({\n status: z.string().describe(\"Status of the response (e.g., 'success' or 'error').\").nullable(),\n message: z.string().describe(\"Additional message, typically for errors.\").nullable().optional(),\n results: z.array(SerplyPerformMapsSearch_MapSearchResultSchema).describe(\"List of map search results.\"),\n}).passthrough();\n\nexport const serplyPerformMapsSearch = action(\"SERPLY_PERFORM_MAPS_SEARCH\", {\n slug: \"serply-perform-maps-search\",\n name: \"Perform Maps Search\",\n description: \"Tool to perform a maps search. Use when you need to find geographic locations for a given query.\",\n input: SerplyPerformMapsSearchInput,\n output: SerplyPerformMapsSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-maps-search.mjs","names":[],"sources":["../../src/actions/perform-maps-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { serply } from \"../app\";\n\nexport const SerplyPerformMapsSearchInput = z.object({\n limit: z.number().int().describe(\"Maximum number of results to return.\").optional(),\n query: z.string().describe(\"The search query for maps (e.g., 'restaurants in Paris').\"),\n});\nconst SerplyPerformMapsSearch_MapSearchResultSchema = z.object({\n url: z.string().describe(\"Link to the place on maps.\").nullable(),\n name: z.string().describe(\"Name of the place.\").nullable(),\n rating: z.number().describe(\"User rating of the place, if available.\").nullable().optional(),\n address: z.string().describe(\"Address of the place.\").nullable(),\n category: z.string().describe(\"Category/type of place (e.g., restaurant).\").nullable(),\n latitude: z.number().describe(\"Latitude of the location.\").nullable(),\n longitude: z.number().describe(\"Longitude of the location.\").nullable(),\n}).passthrough();\nexport const SerplyPerformMapsSearchOutput = z.object({\n status: z.string().describe(\"Status of the response (e.g., 'success' or 'error').\").nullable(),\n message: z.string().describe(\"Additional message, typically for errors.\").nullable().optional(),\n results: z.array(SerplyPerformMapsSearch_MapSearchResultSchema).describe(\"List of map search results.\"),\n}).passthrough();\n\nexport const serplyPerformMapsSearch: AppAction<\n typeof SerplyPerformMapsSearchInput,\n typeof SerplyPerformMapsSearchOutput,\n typeof serply.credential\n> = action(\"SERPLY_PERFORM_MAPS_SEARCH\", {\n slug: \"serply-perform-maps-search\",\n name: \"Perform Maps Search\",\n description: \"Tool to perform a maps search. Use when you need to find geographic locations for a given query.\",\n input: SerplyPerformMapsSearchInput,\n output: SerplyPerformMapsSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AACxF,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAChE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC/D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,0BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf2C,EAAE,OAAO;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAC7F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,SAAS,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,6BAA6B;CACxG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-scholar-search.cjs","names":["z","action"],"sources":["../../src/actions/perform-scholar-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SerplyPerformScholarSearchInput = z.object({\n gl: z.string().describe(\"Country code for geotargeting, e.g., 'us'.\").optional(),\n hl: z.string().describe(\"Language code for results (ISO 639-1), e.g., 'en'.\").optional(),\n num: z.number().int().describe(\"Number of results to return (max 20).\").optional(),\n query: z.string().describe(\"The search query string for academic literature.\"),\n newWindow: z.boolean().describe(\"Whether to open result links in a new window.\").optional(),\n}).describe(\"Request model for performing an academic scholar search via Serply API.\");\nconst SerplyPerformScholarSearch_DocumentInfoSchema = z.object({\n link: z.string().describe(\"Direct link to the document.\").nullable(),\n type: z.string().describe(\"Document type (e.g., PDF, HTML, PS).\").nullable(),\n}).passthrough().describe(\"Document type and link information.\");\nconst SerplyPerformScholarSearch_AuthorInfoSchema = z.object({\n link: z.string().describe(\"Link to author's Google Scholar profile.\").nullable().optional(),\n name: z.string().describe(\"Author's name.\").nullable(),\n}).passthrough().describe(\"Author details for a scholar article.\");\nconst SerplyPerformScholarSearch_AuthorDetailsSchema = z.object({\n names: z.string().describe(\"Full author names and publication info string.\").nullable(),\n authors: z.array(SerplyPerformScholarSearch_AuthorInfoSchema).describe(\"List of individual authors.\").nullable().optional(),\n}).passthrough().describe(\"Detailed author information.\");\nconst SerplyPerformScholarSearch_RelatedInfoSchema = z.object({\n link: z.string().describe(\"Link to related articles.\").nullable(),\n}).passthrough().describe(\"Related articles information.\");\nconst SerplyPerformScholarSearch_VersionInfoSchema = z.object({\n link: z.string().describe(\"Link to all versions.\").nullable(),\n count: z.string().describe(\"Version count as string.\").nullable(),\n}).passthrough().describe(\"Version information for articles.\");\nconst SerplyPerformScholarSearch_CitationInfoSchema = z.object({\n link: z.string().describe(\"Link to citing articles.\").nullable(),\n count: z.string().describe(\"Citation count as string.\").nullable(),\n}).passthrough().describe(\"Citation count and link.\");\nconst SerplyPerformScholarSearch_ExtrasSchema = z.object({\n related: SerplyPerformScholarSearch_RelatedInfoSchema.nullable().optional(),\n versions: SerplyPerformScholarSearch_VersionInfoSchema.nullable().optional(),\n citations: SerplyPerformScholarSearch_CitationInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Extra metadata for scholar articles.\");\nconst SerplyPerformScholarSearch_ScholarArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the article.\").nullable(),\n doc: SerplyPerformScholarSearch_DocumentInfoSchema.nullable().optional(),\n cite: z.string().describe(\"Link to citation information.\").nullable(),\n link: z.string().describe(\"URL to the paper's page.\").nullable(),\n title: z.string().describe(\"Title of the academic paper.\").nullable(),\n author: SerplyPerformScholarSearch_AuthorDetailsSchema.nullable().optional(),\n extras: SerplyPerformScholarSearch_ExtrasSchema.nullable().optional(),\n description: z.string().describe(\"Description or snippet of the paper.\").nullable(),\n}).passthrough().describe(\"A single scholar search result article.\");\nexport const SerplyPerformScholarSearchOutput = z.object({\n ts: z.number().describe(\"Timestamp of the search in seconds.\").nullable().optional(),\n articles: z.array(SerplyPerformScholarSearch_ScholarArticleSchema).describe(\"List of academic articles found.\").nullable().optional(),\n device_type: z.string().describe(\"Device type used for search.\").nullable().optional(),\n}).passthrough().describe(\"Response model for scholar search results returned by Serply API.\");\n\nexport const serplyPerformScholarSearch = action(\"SERPLY_PERFORM_SCHOLAR_SEARCH\", {\n slug: \"serply-perform-scholar-search\",\n name: \"Perform Scholar Search\",\n description: \"Tool to perform an academic scholar search via Serply. Use when you need scholarly literature search results for a specific query.\",\n input: SerplyPerformScholarSearchInput,\n output: SerplyPerformScholarSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-scholar-search.cjs","names":["z","action"],"sources":["../../src/actions/perform-scholar-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { serply } from \"../app\";\n\nexport const SerplyPerformScholarSearchInput = z.object({\n gl: z.string().describe(\"Country code for geotargeting, e.g., 'us'.\").optional(),\n hl: z.string().describe(\"Language code for results (ISO 639-1), e.g., 'en'.\").optional(),\n num: z.number().int().describe(\"Number of results to return (max 20).\").optional(),\n query: z.string().describe(\"The search query string for academic literature.\"),\n newWindow: z.boolean().describe(\"Whether to open result links in a new window.\").optional(),\n}).describe(\"Request model for performing an academic scholar search via Serply API.\");\nconst SerplyPerformScholarSearch_DocumentInfoSchema = z.object({\n link: z.string().describe(\"Direct link to the document.\").nullable(),\n type: z.string().describe(\"Document type (e.g., PDF, HTML, PS).\").nullable(),\n}).passthrough().describe(\"Document type and link information.\");\nconst SerplyPerformScholarSearch_AuthorInfoSchema = z.object({\n link: z.string().describe(\"Link to author's Google Scholar profile.\").nullable().optional(),\n name: z.string().describe(\"Author's name.\").nullable(),\n}).passthrough().describe(\"Author details for a scholar article.\");\nconst SerplyPerformScholarSearch_AuthorDetailsSchema = z.object({\n names: z.string().describe(\"Full author names and publication info string.\").nullable(),\n authors: z.array(SerplyPerformScholarSearch_AuthorInfoSchema).describe(\"List of individual authors.\").nullable().optional(),\n}).passthrough().describe(\"Detailed author information.\");\nconst SerplyPerformScholarSearch_RelatedInfoSchema = z.object({\n link: z.string().describe(\"Link to related articles.\").nullable(),\n}).passthrough().describe(\"Related articles information.\");\nconst SerplyPerformScholarSearch_VersionInfoSchema = z.object({\n link: z.string().describe(\"Link to all versions.\").nullable(),\n count: z.string().describe(\"Version count as string.\").nullable(),\n}).passthrough().describe(\"Version information for articles.\");\nconst SerplyPerformScholarSearch_CitationInfoSchema = z.object({\n link: z.string().describe(\"Link to citing articles.\").nullable(),\n count: z.string().describe(\"Citation count as string.\").nullable(),\n}).passthrough().describe(\"Citation count and link.\");\nconst SerplyPerformScholarSearch_ExtrasSchema = z.object({\n related: SerplyPerformScholarSearch_RelatedInfoSchema.nullable().optional(),\n versions: SerplyPerformScholarSearch_VersionInfoSchema.nullable().optional(),\n citations: SerplyPerformScholarSearch_CitationInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Extra metadata for scholar articles.\");\nconst SerplyPerformScholarSearch_ScholarArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the article.\").nullable(),\n doc: SerplyPerformScholarSearch_DocumentInfoSchema.nullable().optional(),\n cite: z.string().describe(\"Link to citation information.\").nullable(),\n link: z.string().describe(\"URL to the paper's page.\").nullable(),\n title: z.string().describe(\"Title of the academic paper.\").nullable(),\n author: SerplyPerformScholarSearch_AuthorDetailsSchema.nullable().optional(),\n extras: SerplyPerformScholarSearch_ExtrasSchema.nullable().optional(),\n description: z.string().describe(\"Description or snippet of the paper.\").nullable(),\n}).passthrough().describe(\"A single scholar search result article.\");\nexport const SerplyPerformScholarSearchOutput = z.object({\n ts: z.number().describe(\"Timestamp of the search in seconds.\").nullable().optional(),\n articles: z.array(SerplyPerformScholarSearch_ScholarArticleSchema).describe(\"List of academic articles found.\").nullable().optional(),\n device_type: z.string().describe(\"Device type used for search.\").nullable().optional(),\n}).passthrough().describe(\"Response model for scholar search results returned by Serply API.\");\n\nexport const serplyPerformScholarSearch: AppAction<\n typeof SerplyPerformScholarSearchInput,\n typeof SerplyPerformScholarSearchOutput,\n typeof serply.credential\n> = action(\"SERPLY_PERFORM_SCHOLAR_SEARCH\", {\n slug: \"serply-perform-scholar-search\",\n name: \"Perform Scholar Search\",\n description: \"Tool to perform an academic scholar search via Serply. Use when you need scholarly literature search results for a specific query.\",\n input: SerplyPerformScholarSearchInput,\n output: SerplyPerformScholarSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACvF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CAC7E,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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,CAAC,SAAS,CAAC,CAAC,SAAS;CACpI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAE7F,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { serply } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/perform-scholar-search.d.ts
|
|
@@ -43,13 +45,7 @@ declare const SerplyPerformScholarSearchOutput: z.ZodObject<{
|
|
|
43
45
|
}, z.core.$loose>>>>;
|
|
44
46
|
device_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const serplyPerformScholarSearch:
|
|
47
|
-
query: string;
|
|
48
|
-
gl?: string | undefined;
|
|
49
|
-
hl?: string | undefined;
|
|
50
|
-
num?: number | undefined;
|
|
51
|
-
newWindow?: boolean | undefined;
|
|
52
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
declare const serplyPerformScholarSearch: AppAction<typeof SerplyPerformScholarSearchInput, typeof SerplyPerformScholarSearchOutput, typeof serply.credential>;
|
|
53
49
|
//#endregion
|
|
54
50
|
export { serplyPerformScholarSearch };
|
|
55
51
|
//# sourceMappingURL=perform-scholar-search.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-scholar-search.d.cts","names":[],"sources":["../../src/actions/perform-scholar-search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-scholar-search.d.cts","names":[],"sources":["../../src/actions/perform-scholar-search.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cA6C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { serply } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/perform-scholar-search.d.ts
|
|
@@ -43,13 +45,7 @@ declare const SerplyPerformScholarSearchOutput: z.ZodObject<{
|
|
|
43
45
|
}, z.core.$loose>>>>;
|
|
44
46
|
device_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const serplyPerformScholarSearch:
|
|
47
|
-
query: string;
|
|
48
|
-
gl?: string | undefined;
|
|
49
|
-
hl?: string | undefined;
|
|
50
|
-
num?: number | undefined;
|
|
51
|
-
newWindow?: boolean | undefined;
|
|
52
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
declare const serplyPerformScholarSearch: AppAction<typeof SerplyPerformScholarSearchInput, typeof SerplyPerformScholarSearchOutput, typeof serply.credential>;
|
|
53
49
|
//#endregion
|
|
54
50
|
export { serplyPerformScholarSearch };
|
|
55
51
|
//# sourceMappingURL=perform-scholar-search.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-scholar-search.d.mts","names":[],"sources":["../../src/actions/perform-scholar-search.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-scholar-search.d.mts","names":[],"sources":["../../src/actions/perform-scholar-search.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cA6C/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perform-scholar-search.mjs","names":[],"sources":["../../src/actions/perform-scholar-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SerplyPerformScholarSearchInput = z.object({\n gl: z.string().describe(\"Country code for geotargeting, e.g., 'us'.\").optional(),\n hl: z.string().describe(\"Language code for results (ISO 639-1), e.g., 'en'.\").optional(),\n num: z.number().int().describe(\"Number of results to return (max 20).\").optional(),\n query: z.string().describe(\"The search query string for academic literature.\"),\n newWindow: z.boolean().describe(\"Whether to open result links in a new window.\").optional(),\n}).describe(\"Request model for performing an academic scholar search via Serply API.\");\nconst SerplyPerformScholarSearch_DocumentInfoSchema = z.object({\n link: z.string().describe(\"Direct link to the document.\").nullable(),\n type: z.string().describe(\"Document type (e.g., PDF, HTML, PS).\").nullable(),\n}).passthrough().describe(\"Document type and link information.\");\nconst SerplyPerformScholarSearch_AuthorInfoSchema = z.object({\n link: z.string().describe(\"Link to author's Google Scholar profile.\").nullable().optional(),\n name: z.string().describe(\"Author's name.\").nullable(),\n}).passthrough().describe(\"Author details for a scholar article.\");\nconst SerplyPerformScholarSearch_AuthorDetailsSchema = z.object({\n names: z.string().describe(\"Full author names and publication info string.\").nullable(),\n authors: z.array(SerplyPerformScholarSearch_AuthorInfoSchema).describe(\"List of individual authors.\").nullable().optional(),\n}).passthrough().describe(\"Detailed author information.\");\nconst SerplyPerformScholarSearch_RelatedInfoSchema = z.object({\n link: z.string().describe(\"Link to related articles.\").nullable(),\n}).passthrough().describe(\"Related articles information.\");\nconst SerplyPerformScholarSearch_VersionInfoSchema = z.object({\n link: z.string().describe(\"Link to all versions.\").nullable(),\n count: z.string().describe(\"Version count as string.\").nullable(),\n}).passthrough().describe(\"Version information for articles.\");\nconst SerplyPerformScholarSearch_CitationInfoSchema = z.object({\n link: z.string().describe(\"Link to citing articles.\").nullable(),\n count: z.string().describe(\"Citation count as string.\").nullable(),\n}).passthrough().describe(\"Citation count and link.\");\nconst SerplyPerformScholarSearch_ExtrasSchema = z.object({\n related: SerplyPerformScholarSearch_RelatedInfoSchema.nullable().optional(),\n versions: SerplyPerformScholarSearch_VersionInfoSchema.nullable().optional(),\n citations: SerplyPerformScholarSearch_CitationInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Extra metadata for scholar articles.\");\nconst SerplyPerformScholarSearch_ScholarArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the article.\").nullable(),\n doc: SerplyPerformScholarSearch_DocumentInfoSchema.nullable().optional(),\n cite: z.string().describe(\"Link to citation information.\").nullable(),\n link: z.string().describe(\"URL to the paper's page.\").nullable(),\n title: z.string().describe(\"Title of the academic paper.\").nullable(),\n author: SerplyPerformScholarSearch_AuthorDetailsSchema.nullable().optional(),\n extras: SerplyPerformScholarSearch_ExtrasSchema.nullable().optional(),\n description: z.string().describe(\"Description or snippet of the paper.\").nullable(),\n}).passthrough().describe(\"A single scholar search result article.\");\nexport const SerplyPerformScholarSearchOutput = z.object({\n ts: z.number().describe(\"Timestamp of the search in seconds.\").nullable().optional(),\n articles: z.array(SerplyPerformScholarSearch_ScholarArticleSchema).describe(\"List of academic articles found.\").nullable().optional(),\n device_type: z.string().describe(\"Device type used for search.\").nullable().optional(),\n}).passthrough().describe(\"Response model for scholar search results returned by Serply API.\");\n\nexport const serplyPerformScholarSearch = action(\"SERPLY_PERFORM_SCHOLAR_SEARCH\", {\n slug: \"serply-perform-scholar-search\",\n name: \"Perform Scholar Search\",\n description: \"Tool to perform an academic scholar search via Serply. Use when you need scholarly literature search results for a specific query.\",\n input: SerplyPerformScholarSearchInput,\n output: SerplyPerformScholarSearchOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"perform-scholar-search.mjs","names":[],"sources":["../../src/actions/perform-scholar-search.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { serply } from \"../app\";\n\nexport const SerplyPerformScholarSearchInput = z.object({\n gl: z.string().describe(\"Country code for geotargeting, e.g., 'us'.\").optional(),\n hl: z.string().describe(\"Language code for results (ISO 639-1), e.g., 'en'.\").optional(),\n num: z.number().int().describe(\"Number of results to return (max 20).\").optional(),\n query: z.string().describe(\"The search query string for academic literature.\"),\n newWindow: z.boolean().describe(\"Whether to open result links in a new window.\").optional(),\n}).describe(\"Request model for performing an academic scholar search via Serply API.\");\nconst SerplyPerformScholarSearch_DocumentInfoSchema = z.object({\n link: z.string().describe(\"Direct link to the document.\").nullable(),\n type: z.string().describe(\"Document type (e.g., PDF, HTML, PS).\").nullable(),\n}).passthrough().describe(\"Document type and link information.\");\nconst SerplyPerformScholarSearch_AuthorInfoSchema = z.object({\n link: z.string().describe(\"Link to author's Google Scholar profile.\").nullable().optional(),\n name: z.string().describe(\"Author's name.\").nullable(),\n}).passthrough().describe(\"Author details for a scholar article.\");\nconst SerplyPerformScholarSearch_AuthorDetailsSchema = z.object({\n names: z.string().describe(\"Full author names and publication info string.\").nullable(),\n authors: z.array(SerplyPerformScholarSearch_AuthorInfoSchema).describe(\"List of individual authors.\").nullable().optional(),\n}).passthrough().describe(\"Detailed author information.\");\nconst SerplyPerformScholarSearch_RelatedInfoSchema = z.object({\n link: z.string().describe(\"Link to related articles.\").nullable(),\n}).passthrough().describe(\"Related articles information.\");\nconst SerplyPerformScholarSearch_VersionInfoSchema = z.object({\n link: z.string().describe(\"Link to all versions.\").nullable(),\n count: z.string().describe(\"Version count as string.\").nullable(),\n}).passthrough().describe(\"Version information for articles.\");\nconst SerplyPerformScholarSearch_CitationInfoSchema = z.object({\n link: z.string().describe(\"Link to citing articles.\").nullable(),\n count: z.string().describe(\"Citation count as string.\").nullable(),\n}).passthrough().describe(\"Citation count and link.\");\nconst SerplyPerformScholarSearch_ExtrasSchema = z.object({\n related: SerplyPerformScholarSearch_RelatedInfoSchema.nullable().optional(),\n versions: SerplyPerformScholarSearch_VersionInfoSchema.nullable().optional(),\n citations: SerplyPerformScholarSearch_CitationInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Extra metadata for scholar articles.\");\nconst SerplyPerformScholarSearch_ScholarArticleSchema = z.object({\n id: z.string().describe(\"Unique identifier for the article.\").nullable(),\n doc: SerplyPerformScholarSearch_DocumentInfoSchema.nullable().optional(),\n cite: z.string().describe(\"Link to citation information.\").nullable(),\n link: z.string().describe(\"URL to the paper's page.\").nullable(),\n title: z.string().describe(\"Title of the academic paper.\").nullable(),\n author: SerplyPerformScholarSearch_AuthorDetailsSchema.nullable().optional(),\n extras: SerplyPerformScholarSearch_ExtrasSchema.nullable().optional(),\n description: z.string().describe(\"Description or snippet of the paper.\").nullable(),\n}).passthrough().describe(\"A single scholar search result article.\");\nexport const SerplyPerformScholarSearchOutput = z.object({\n ts: z.number().describe(\"Timestamp of the search in seconds.\").nullable().optional(),\n articles: z.array(SerplyPerformScholarSearch_ScholarArticleSchema).describe(\"List of academic articles found.\").nullable().optional(),\n device_type: z.string().describe(\"Device type used for search.\").nullable().optional(),\n}).passthrough().describe(\"Response model for scholar search results returned by Serply API.\");\n\nexport const serplyPerformScholarSearch: AppAction<\n typeof SerplyPerformScholarSearchInput,\n typeof SerplyPerformScholarSearchOutput,\n typeof serply.credential\n> = action(\"SERPLY_PERFORM_SCHOLAR_SEARCH\", {\n slug: \"serply-perform-scholar-search\",\n name: \"Perform Scholar Search\",\n description: \"Tool to perform an academic scholar search via Serply. Use when you need scholarly literature search results for a specific query.\",\n input: SerplyPerformScholarSearchInput,\n output: SerplyPerformScholarSearchOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;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CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAOnE,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
1
2
|
//#region src/app.ts
|
|
2
|
-
const
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
|
+
const serply = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "serply",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.serply = serply;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const serply = defineApp({\n slug: \"serply\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,UAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const serply: KeystrokeApp<\"serply\", typeof credential> = defineApp({\n slug: \"serply\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAA8D;CACzE,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const serply: KeystrokeApp<"serply", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { serply };
|
|
5
11
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
generic_api_key: z.ZodString;
|
|
7
|
+
};
|
|
8
|
+
declare const serply: KeystrokeApp<"serply", typeof credential>;
|
|
3
9
|
//#endregion
|
|
4
10
|
export { serply };
|
|
5
11
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,MAAA,EAAQ,YAAY,kBAAkB,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const serply = defineApp({
|
|
4
4
|
slug: "serply",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: { generic_api_key: z.string() }
|
|
6
7
|
});
|
|
7
8
|
//#endregion
|
|
8
9
|
export { serply };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const serply = defineApp({\n slug: \"serply\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const serply: KeystrokeApp<\"serply\", typeof credential> = defineApp({\n slug: \"serply\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,SAAoD,UAAU;CACzE,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { serply } from "./app.cjs";
|
|
1
2
|
import { serplyPerformImageSearch } from "./actions/perform-image-search.cjs";
|
|
2
3
|
import { serplyPerformMapsSearch } from "./actions/perform-maps-search.cjs";
|
|
3
4
|
import { serplyPerformScholarSearch } from "./actions/perform-scholar-search.cjs";
|
|
4
|
-
import { serply } from "./app.cjs";
|
|
5
5
|
import { serplyCatalog } from "./catalog.cjs";
|
|
6
6
|
export { serply, serplyCatalog, serplyPerformImageSearch, serplyPerformMapsSearch, serplyPerformScholarSearch };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { serply } from "./app.mjs";
|
|
1
2
|
import { serplyPerformImageSearch } from "./actions/perform-image-search.mjs";
|
|
2
3
|
import { serplyPerformMapsSearch } from "./actions/perform-maps-search.mjs";
|
|
3
4
|
import { serplyPerformScholarSearch } from "./actions/perform-scholar-search.mjs";
|
|
4
|
-
import { serply } from "./app.mjs";
|
|
5
5
|
import { serplyCatalog } from "./catalog.mjs";
|
|
6
6
|
export { serply, serplyCatalog, serplyPerformImageSearch, serplyPerformMapsSearch, serplyPerformScholarSearch };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/serply",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|