@keystrokehq/parsera 0.1.0
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/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-scraper.cjs +16 -0
- package/dist/actions/create-scraper.cjs.map +1 -0
- package/dist/actions/create-scraper.d.cts +9 -0
- package/dist/actions/create-scraper.d.cts.map +1 -0
- package/dist/actions/create-scraper.d.mts +9 -0
- package/dist/actions/create-scraper.d.mts.map +1 -0
- package/dist/actions/create-scraper.mjs +13 -0
- package/dist/actions/create-scraper.mjs.map +1 -0
- package/dist/actions/delete-scraper.cjs +16 -0
- package/dist/actions/delete-scraper.cjs.map +1 -0
- package/dist/actions/delete-scraper.d.cts +9 -0
- package/dist/actions/delete-scraper.d.cts.map +1 -0
- package/dist/actions/delete-scraper.d.mts +9 -0
- package/dist/actions/delete-scraper.d.mts.map +1 -0
- package/dist/actions/delete-scraper.mjs +13 -0
- package/dist/actions/delete-scraper.mjs.map +1 -0
- package/dist/actions/extract-data.cjs +23 -0
- package/dist/actions/extract-data.cjs.map +1 -0
- package/dist/actions/extract-data.d.cts +9 -0
- package/dist/actions/extract-data.d.cts.map +1 -0
- package/dist/actions/extract-data.d.mts +9 -0
- package/dist/actions/extract-data.d.mts.map +1 -0
- package/dist/actions/extract-data.mjs +20 -0
- package/dist/actions/extract-data.mjs.map +1 -0
- package/dist/actions/extract-markdown.cjs +27 -0
- package/dist/actions/extract-markdown.cjs.map +1 -0
- package/dist/actions/extract-markdown.d.cts +9 -0
- package/dist/actions/extract-markdown.d.cts.map +1 -0
- package/dist/actions/extract-markdown.d.mts +9 -0
- package/dist/actions/extract-markdown.d.mts.map +1 -0
- package/dist/actions/extract-markdown.mjs +24 -0
- package/dist/actions/extract-markdown.mjs.map +1 -0
- package/dist/actions/get-llm-specs.cjs +48 -0
- package/dist/actions/get-llm-specs.cjs.map +1 -0
- package/dist/actions/get-llm-specs.d.cts +9 -0
- package/dist/actions/get-llm-specs.d.cts.map +1 -0
- package/dist/actions/get-llm-specs.d.mts +9 -0
- package/dist/actions/get-llm-specs.d.mts.map +1 -0
- package/dist/actions/get-llm-specs.mjs +47 -0
- package/dist/actions/get-llm-specs.mjs.map +1 -0
- package/dist/actions/get-proxy-countries.cjs +20 -0
- package/dist/actions/get-proxy-countries.cjs.map +1 -0
- package/dist/actions/get-proxy-countries.d.cts +9 -0
- package/dist/actions/get-proxy-countries.d.cts.map +1 -0
- package/dist/actions/get-proxy-countries.d.mts +9 -0
- package/dist/actions/get-proxy-countries.d.mts.map +1 -0
- package/dist/actions/get-proxy-countries.mjs +19 -0
- package/dist/actions/get-proxy-countries.mjs.map +1 -0
- package/dist/actions/health-check.cjs +16 -0
- package/dist/actions/health-check.cjs.map +1 -0
- package/dist/actions/health-check.d.cts +9 -0
- package/dist/actions/health-check.d.cts.map +1 -0
- package/dist/actions/health-check.d.mts +9 -0
- package/dist/actions/health-check.d.mts.map +1 -0
- package/dist/actions/health-check.mjs +13 -0
- package/dist/actions/health-check.mjs.map +1 -0
- package/dist/actions/index.cjs +27 -0
- package/dist/actions/index.d.cts +14 -0
- package/dist/actions/index.d.mts +14 -0
- package/dist/actions/index.mjs +14 -0
- package/dist/actions/list-agents.cjs +20 -0
- package/dist/actions/list-agents.cjs.map +1 -0
- package/dist/actions/list-agents.d.cts +9 -0
- package/dist/actions/list-agents.d.cts.map +1 -0
- package/dist/actions/list-agents.d.mts +9 -0
- package/dist/actions/list-agents.d.mts.map +1 -0
- package/dist/actions/list-agents.mjs +19 -0
- package/dist/actions/list-agents.mjs.map +1 -0
- package/dist/actions/list-scrapers.cjs +20 -0
- package/dist/actions/list-scrapers.cjs.map +1 -0
- package/dist/actions/list-scrapers.d.cts +9 -0
- package/dist/actions/list-scrapers.d.cts.map +1 -0
- package/dist/actions/list-scrapers.d.mts +9 -0
- package/dist/actions/list-scrapers.d.mts.map +1 -0
- package/dist/actions/list-scrapers.mjs +19 -0
- package/dist/actions/list-scrapers.mjs.map +1 -0
- package/dist/actions/parse-content2.cjs +39 -0
- package/dist/actions/parse-content2.cjs.map +1 -0
- package/dist/actions/parse-content2.d.cts +9 -0
- package/dist/actions/parse-content2.d.cts.map +1 -0
- package/dist/actions/parse-content2.d.mts +9 -0
- package/dist/actions/parse-content2.d.mts.map +1 -0
- package/dist/actions/parse-content2.mjs +36 -0
- package/dist/actions/parse-content2.mjs.map +1 -0
- package/dist/actions/remove-agent.cjs +19 -0
- package/dist/actions/remove-agent.cjs.map +1 -0
- package/dist/actions/remove-agent.d.cts +9 -0
- package/dist/actions/remove-agent.d.cts.map +1 -0
- package/dist/actions/remove-agent.d.mts +9 -0
- package/dist/actions/remove-agent.d.mts.map +1 -0
- package/dist/actions/remove-agent.mjs +16 -0
- package/dist/actions/remove-agent.mjs.map +1 -0
- package/dist/actions/run-scraper-template.cjs +25 -0
- package/dist/actions/run-scraper-template.cjs.map +1 -0
- package/dist/actions/run-scraper-template.d.cts +9 -0
- package/dist/actions/run-scraper-template.d.cts.map +1 -0
- package/dist/actions/run-scraper-template.d.mts +9 -0
- package/dist/actions/run-scraper-template.d.mts.map +1 -0
- package/dist/actions/run-scraper-template.mjs +22 -0
- package/dist/actions/run-scraper-template.mjs.map +1 -0
- package/dist/actions/scrape-with-agent.cjs +21 -0
- package/dist/actions/scrape-with-agent.cjs.map +1 -0
- package/dist/actions/scrape-with-agent.d.cts +9 -0
- package/dist/actions/scrape-with-agent.d.cts.map +1 -0
- package/dist/actions/scrape-with-agent.d.mts +9 -0
- package/dist/actions/scrape-with-agent.d.mts.map +1 -0
- package/dist/actions/scrape-with-agent.mjs +18 -0
- package/dist/actions/scrape-with-agent.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +32 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.mjs +17 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/parsera
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `parsera`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 13
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { parseraCreateScraper } from "@keystrokehq/parsera/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "parsera-agent",
|
|
15
|
+
tools: [parseraCreateScraper],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.parsera.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeParseraTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["parsera","executeParseraTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parsera } from \"./app\";\nimport { executeParseraTool } 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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return parsera.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 executeParseraTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,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,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { parsera } from "./app.mjs";
|
|
2
|
+
import { executeParseraTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return parsera.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeParseraTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { parsera } from \"./app\";\nimport { executeParseraTool } 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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return parsera.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 executeParseraTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-scraper.ts
|
|
4
|
+
const ParseraCreateScraperInput = zod.z.object({}).describe("Request model for POST /v1/scrapers/new endpoint.\n\nThis endpoint requires no parameters - it creates an empty scraper.");
|
|
5
|
+
const ParseraCreateScraperOutput = zod.z.object({ scraper_id: zod.z.string().describe("Unique identifier for the newly created scraper. Use this ID with the generate endpoint to generate scraping code.") }).describe("Response model for scraper creation operation.");
|
|
6
|
+
const parseraCreateScraper = require_action.action("PARSERA_CREATE_SCRAPER", {
|
|
7
|
+
slug: "parsera-create-scraper",
|
|
8
|
+
name: "Create Scraper",
|
|
9
|
+
description: "Tool to create a new empty scraper for your account. Returns a scraper_id that can be used with the generate endpoint to generate scraping code.",
|
|
10
|
+
input: ParseraCreateScraperInput,
|
|
11
|
+
output: ParseraCreateScraperOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.parseraCreateScraper = parseraCreateScraper;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=create-scraper.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-scraper.cjs","names":["z","action"],"sources":["../../src/actions/create-scraper.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraCreateScraperInput: z.ZodTypeAny = z.object({}).describe(\"Request model for POST /v1/scrapers/new endpoint.\\n\\nThis endpoint requires no parameters - it creates an empty scraper.\");\nexport const ParseraCreateScraperOutput: z.ZodTypeAny = z.object({\n scraper_id: z.string().describe(\"Unique identifier for the newly created scraper. Use this ID with the generate endpoint to generate scraping code.\"),\n}).describe(\"Response model for scraper creation operation.\");\n\nexport const parseraCreateScraper = action(\"PARSERA_CREATE_SCRAPER\", {\n slug: \"parsera-create-scraper\",\n name: \"Create Scraper\",\n description: \"Tool to create a new empty scraper for your account. Returns a scraper_id that can be used with the generate endpoint to generate scraping code.\",\n input: ParseraCreateScraperInput,\n output: ParseraCreateScraperOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0HAA0H;AACvM,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,EACtJ,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-scraper.d.ts
|
|
4
|
+
declare const ParseraCreateScraperInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraCreateScraperOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraCreateScraper: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraCreateScraper };
|
|
9
|
+
//# sourceMappingURL=create-scraper.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-scraper.d.cts","names":[],"sources":["../../src/actions/create-scraper.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAA8J;AAAA,cAC3L,0BAAA,EAA4B,CAAA,CAAE,UAEkB;AAAA,cAEhD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-scraper.d.ts
|
|
4
|
+
declare const ParseraCreateScraperInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraCreateScraperOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraCreateScraper: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraCreateScraper };
|
|
9
|
+
//# sourceMappingURL=create-scraper.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-scraper.d.mts","names":[],"sources":["../../src/actions/create-scraper.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAA8J;AAAA,cAC3L,0BAAA,EAA4B,CAAA,CAAE,UAEkB;AAAA,cAEhD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const parseraCreateScraper = action("PARSERA_CREATE_SCRAPER", {
|
|
4
|
+
slug: "parsera-create-scraper",
|
|
5
|
+
name: "Create Scraper",
|
|
6
|
+
description: "Tool to create a new empty scraper for your account. Returns a scraper_id that can be used with the generate endpoint to generate scraping code.",
|
|
7
|
+
input: z.object({}).describe("Request model for POST /v1/scrapers/new endpoint.\n\nThis endpoint requires no parameters - it creates an empty scraper."),
|
|
8
|
+
output: z.object({ scraper_id: z.string().describe("Unique identifier for the newly created scraper. Use this ID with the generate endpoint to generate scraping code.") }).describe("Response model for scraper creation operation.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { parseraCreateScraper };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=create-scraper.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-scraper.mjs","names":[],"sources":["../../src/actions/create-scraper.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraCreateScraperInput: z.ZodTypeAny = z.object({}).describe(\"Request model for POST /v1/scrapers/new endpoint.\\n\\nThis endpoint requires no parameters - it creates an empty scraper.\");\nexport const ParseraCreateScraperOutput: z.ZodTypeAny = z.object({\n scraper_id: z.string().describe(\"Unique identifier for the newly created scraper. Use this ID with the generate endpoint to generate scraping code.\"),\n}).describe(\"Response model for scraper creation operation.\");\n\nexport const parseraCreateScraper = action(\"PARSERA_CREATE_SCRAPER\", {\n slug: \"parsera-create-scraper\",\n name: \"Create Scraper\",\n description: \"Tool to create a new empty scraper for your account. Returns a scraper_id that can be used with the generate endpoint to generate scraping code.\",\n input: ParseraCreateScraperInput,\n output: ParseraCreateScraperOutput,\n});\n"],"mappings":";;AASA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATqD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0HASpE;CACP,QATsD,EAAE,OAAO,EAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,EACtJ,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-scraper.ts
|
|
4
|
+
const ParseraDeleteScraperInput = zod.z.object({ scraper_id: zod.z.string().describe("Unique identifier of the scraper to delete. Only scrapers created through the /v1/scrapers/new endpoint can be deleted.") }).describe("Request model for DELETE /v1/scrapers/{scraper_id} endpoint.");
|
|
5
|
+
const ParseraDeleteScraperOutput = zod.z.object({ message: zod.z.string().describe("Status message confirming the scraper deletion.").nullable().optional() }).describe("Response model for scraper deletion operation.");
|
|
6
|
+
const parseraDeleteScraper = require_action.action("PARSERA_DELETE_SCRAPER", {
|
|
7
|
+
slug: "parsera-delete-scraper",
|
|
8
|
+
name: "Delete Scraper",
|
|
9
|
+
description: "Tool to delete an existing scraper by its ID. Use when you need to remove a scraper that was created through the /v1/scrapers/new endpoint.",
|
|
10
|
+
input: ParseraDeleteScraperInput,
|
|
11
|
+
output: ParseraDeleteScraperOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.parseraDeleteScraper = parseraDeleteScraper;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-scraper.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-scraper.cjs","names":["z","action"],"sources":["../../src/actions/delete-scraper.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraDeleteScraperInput: z.ZodTypeAny = z.object({\n scraper_id: z.string().describe(\"Unique identifier of the scraper to delete. Only scrapers created through the /v1/scrapers/new endpoint can be deleted.\"),\n}).describe(\"Request model for DELETE /v1/scrapers/{scraper_id} endpoint.\");\nexport const ParseraDeleteScraperOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Status message confirming the scraper deletion.\").nullable().optional(),\n}).describe(\"Response model for scraper deletion operation.\");\n\nexport const parseraDeleteScraper = action(\"PARSERA_DELETE_SCRAPER\", {\n slug: \"parsera-delete-scraper\",\n name: \"Delete Scraper\",\n description: \"Tool to delete an existing scraper by its ID. Use when you need to remove a scraper that was created through the /v1/scrapers/new endpoint.\",\n input: ParseraDeleteScraperInput,\n output: ParseraDeleteScraperOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,EAC3J,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtG,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-scraper.d.ts
|
|
4
|
+
declare const ParseraDeleteScraperInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraDeleteScraperOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraDeleteScraper: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraDeleteScraper };
|
|
9
|
+
//# sourceMappingURL=delete-scraper.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-scraper.d.cts","names":[],"sources":["../../src/actions/delete-scraper.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEiC;AAAA,cAC9D,0BAAA,EAA4B,CAAA,CAAE,UAEkB;AAAA,cAEhD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-scraper.d.ts
|
|
4
|
+
declare const ParseraDeleteScraperInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraDeleteScraperOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraDeleteScraper: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraDeleteScraper };
|
|
9
|
+
//# sourceMappingURL=delete-scraper.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-scraper.d.mts","names":[],"sources":["../../src/actions/delete-scraper.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEiC;AAAA,cAC9D,0BAAA,EAA4B,CAAA,CAAE,UAEkB;AAAA,cAEhD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const parseraDeleteScraper = action("PARSERA_DELETE_SCRAPER", {
|
|
4
|
+
slug: "parsera-delete-scraper",
|
|
5
|
+
name: "Delete Scraper",
|
|
6
|
+
description: "Tool to delete an existing scraper by its ID. Use when you need to remove a scraper that was created through the /v1/scrapers/new endpoint.",
|
|
7
|
+
input: z.object({ scraper_id: z.string().describe("Unique identifier of the scraper to delete. Only scrapers created through the /v1/scrapers/new endpoint can be deleted.") }).describe("Request model for DELETE /v1/scrapers/{scraper_id} endpoint."),
|
|
8
|
+
output: z.object({ message: z.string().describe("Status message confirming the scraper deletion.").nullable().optional() }).describe("Response model for scraper deletion operation.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { parseraDeleteScraper };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=delete-scraper.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-scraper.mjs","names":[],"sources":["../../src/actions/delete-scraper.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraDeleteScraperInput: z.ZodTypeAny = z.object({\n scraper_id: z.string().describe(\"Unique identifier of the scraper to delete. Only scrapers created through the /v1/scrapers/new endpoint can be deleted.\"),\n}).describe(\"Request model for DELETE /v1/scrapers/{scraper_id} endpoint.\");\nexport const ParseraDeleteScraperOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Status message confirming the scraper deletion.\").nullable().optional(),\n}).describe(\"Response model for scraper deletion operation.\");\n\nexport const parseraDeleteScraper = action(\"PARSERA_DELETE_SCRAPER\", {\n slug: \"parsera-delete-scraper\",\n name: \"Delete Scraper\",\n description: \"Tool to delete an existing scraper by its ID. Use when you need to remove a scraper that was created through the /v1/scrapers/new endpoint.\",\n input: ParseraDeleteScraperInput,\n output: ParseraDeleteScraperOutput,\n});\n"],"mappings":";;AAWA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXqD,EAAE,OAAO,EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,EAC3J,CAAC,CAAC,CAAC,SAAS,8DASH;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtG,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/extract-data.ts
|
|
4
|
+
const ParseraExtractDataInput = zod.z.object({
|
|
5
|
+
url: zod.z.string().describe("The webpage URL to extract data from."),
|
|
6
|
+
mode: zod.z.enum(["standard", "precision"]).default("standard").describe("Extraction mode. 'standard' mode performs efficient extraction. 'precision' mode minimizes page reduction to detect data hidden in HTML tags but uses more credits.").optional(),
|
|
7
|
+
prompt: zod.z.string().describe("Additional scraping instructions to guide the extraction process.").optional(),
|
|
8
|
+
cookies: zod.z.array(zod.z.object({})).describe("Authentication or session cookies for extraction. Each cookie should be a dictionary with cookie properties.").optional(),
|
|
9
|
+
attributes: zod.z.object({}).describe("Map of field names and descriptions to extract. Supports two formats: 1) Simple format: {'field_name': 'description'}, 2) Typed format: {'field_name': {'description': '...', 'type': 'string|integer|number|bool|list|object|any'}}. NOTE: You cannot mix both formats in a single request - use either all simple strings or all typed objects."),
|
|
10
|
+
proxy_country: zod.z.string().default("UnitedStates").describe("Geographic location for proxy routing. Recommended to set as pages may be unavailable from certain locations. Use GET /v1/proxy-countries to retrieve supported countries.").optional()
|
|
11
|
+
}).describe("Request model for POST /v1/extract endpoint.");
|
|
12
|
+
const ParseraExtractDataOutput = zod.z.unknown();
|
|
13
|
+
const parseraExtractData = require_action.action("PARSERA_EXTRACT_DATA", {
|
|
14
|
+
slug: "parsera-extract-data",
|
|
15
|
+
name: "Extract Data from Webpage",
|
|
16
|
+
description: "Tool to perform LLM-powered data extraction from a live webpage URL with specified attributes. Use when you need to extract structured data from web pages based on field descriptions.",
|
|
17
|
+
input: ParseraExtractDataInput,
|
|
18
|
+
output: ParseraExtractDataOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.parseraExtractData = parseraExtractData;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=extract-data.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-data.cjs","names":["z","action"],"sources":["../../src/actions/extract-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraExtractDataInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The webpage URL to extract data from.\"),\n mode: z.enum([\"standard\", \"precision\"]).default(\"standard\").describe(\"Extraction mode. 'standard' mode performs efficient extraction. 'precision' mode minimizes page reduction to detect data hidden in HTML tags but uses more credits.\").optional(),\n prompt: z.string().describe(\"Additional scraping instructions to guide the extraction process.\").optional(),\n cookies: z.array(z.object({})).describe(\"Authentication or session cookies for extraction. Each cookie should be a dictionary with cookie properties.\").optional(),\n attributes: z.object({}).describe(\"Map of field names and descriptions to extract. Supports two formats: 1) Simple format: {'field_name': 'description'}, 2) Typed format: {'field_name': {'description': '...', 'type': 'string|integer|number|bool|list|object|any'}}. NOTE: You cannot mix both formats in a single request - use either all simple strings or all typed objects.\"),\n proxy_country: z.string().default(\"UnitedStates\").describe(\"Geographic location for proxy routing. Recommended to set as pages may be unavailable from certain locations. Use GET /v1/proxy-countries to retrieve supported countries.\").optional(),\n}).describe(\"Request model for POST /v1/extract endpoint.\");\nexport const ParseraExtractDataOutput: z.ZodTypeAny = z.unknown();\n\nexport const parseraExtractData = action(\"PARSERA_EXTRACT_DATA\", {\n slug: \"parsera-extract-data\",\n name: \"Extract Data from Webpage\",\n description: \"Tool to perform LLM-powered data extraction from a live webpage URL with specified attributes. Use when you need to extract structured data from web pages based on field descriptions.\",\n input: ParseraExtractDataInput,\n output: ParseraExtractDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,MAAMA,IAAAA,EAAE,KAAK,CAAC,YAAY,WAAW,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS;CACrP,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC1G,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACjK,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mVAAmV;CACrX,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,cAAc,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;AACpP,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,2BAAyCA,IAAAA,EAAE,QAAQ;AAEhE,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/extract-data.d.ts
|
|
4
|
+
declare const ParseraExtractDataInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraExtractDataOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraExtractData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraExtractData };
|
|
9
|
+
//# sourceMappingURL=extract-data.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-data.d.cts","names":[],"sources":["../../src/actions/extract-data.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOmB;AAAA,cAC9C,wBAAA,EAA0B,CAAA,CAAE,UAAwB;AAAA,cAEpD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/extract-data.d.ts
|
|
4
|
+
declare const ParseraExtractDataInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraExtractDataOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraExtractData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraExtractData };
|
|
9
|
+
//# sourceMappingURL=extract-data.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-data.d.mts","names":[],"sources":["../../src/actions/extract-data.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAOmB;AAAA,cAC9C,wBAAA,EAA0B,CAAA,CAAE,UAAwB;AAAA,cAEpD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const parseraExtractData = action("PARSERA_EXTRACT_DATA", {
|
|
4
|
+
slug: "parsera-extract-data",
|
|
5
|
+
name: "Extract Data from Webpage",
|
|
6
|
+
description: "Tool to perform LLM-powered data extraction from a live webpage URL with specified attributes. Use when you need to extract structured data from web pages based on field descriptions.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
url: z.string().describe("The webpage URL to extract data from."),
|
|
9
|
+
mode: z.enum(["standard", "precision"]).default("standard").describe("Extraction mode. 'standard' mode performs efficient extraction. 'precision' mode minimizes page reduction to detect data hidden in HTML tags but uses more credits.").optional(),
|
|
10
|
+
prompt: z.string().describe("Additional scraping instructions to guide the extraction process.").optional(),
|
|
11
|
+
cookies: z.array(z.object({})).describe("Authentication or session cookies for extraction. Each cookie should be a dictionary with cookie properties.").optional(),
|
|
12
|
+
attributes: z.object({}).describe("Map of field names and descriptions to extract. Supports two formats: 1) Simple format: {'field_name': 'description'}, 2) Typed format: {'field_name': {'description': '...', 'type': 'string|integer|number|bool|list|object|any'}}. NOTE: You cannot mix both formats in a single request - use either all simple strings or all typed objects."),
|
|
13
|
+
proxy_country: z.string().default("UnitedStates").describe("Geographic location for proxy routing. Recommended to set as pages may be unavailable from certain locations. Use GET /v1/proxy-countries to retrieve supported countries.").optional()
|
|
14
|
+
}).describe("Request model for POST /v1/extract endpoint."),
|
|
15
|
+
output: z.unknown()
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { parseraExtractData };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=extract-data.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-data.mjs","names":[],"sources":["../../src/actions/extract-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraExtractDataInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The webpage URL to extract data from.\"),\n mode: z.enum([\"standard\", \"precision\"]).default(\"standard\").describe(\"Extraction mode. 'standard' mode performs efficient extraction. 'precision' mode minimizes page reduction to detect data hidden in HTML tags but uses more credits.\").optional(),\n prompt: z.string().describe(\"Additional scraping instructions to guide the extraction process.\").optional(),\n cookies: z.array(z.object({})).describe(\"Authentication or session cookies for extraction. Each cookie should be a dictionary with cookie properties.\").optional(),\n attributes: z.object({}).describe(\"Map of field names and descriptions to extract. Supports two formats: 1) Simple format: {'field_name': 'description'}, 2) Typed format: {'field_name': {'description': '...', 'type': 'string|integer|number|bool|list|object|any'}}. NOTE: You cannot mix both formats in a single request - use either all simple strings or all typed objects.\"),\n proxy_country: z.string().default(\"UnitedStates\").describe(\"Geographic location for proxy routing. Recommended to set as pages may be unavailable from certain locations. Use GET /v1/proxy-countries to retrieve supported countries.\").optional(),\n}).describe(\"Request model for POST /v1/extract endpoint.\");\nexport const ParseraExtractDataOutput: z.ZodTypeAny = z.unknown();\n\nexport const parseraExtractData = action(\"PARSERA_EXTRACT_DATA\", {\n slug: \"parsera-extract-data\",\n name: \"Extract Data from Webpage\",\n description: \"Tool to perform LLM-powered data extraction from a live webpage URL with specified attributes. Use when you need to extract structured data from web pages based on field descriptions.\",\n input: ParseraExtractDataInput,\n output: ParseraExtractDataOutput,\n});\n"],"mappings":";;AAcA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAChE,MAAM,EAAE,KAAK,CAAC,YAAY,WAAW,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS;EACrP,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EAC1G,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EACjK,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mVAAmV;EACrX,eAAe,EAAE,OAAO,CAAC,CAAC,QAAQ,cAAc,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;CACpP,CAAC,CAAC,CAAC,SAAS,8CAOH;CACP,QAPoD,EAAE,QAO9C;AACV,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/extract-markdown.ts
|
|
4
|
+
const ParseraExtractMarkdownInput = zod.z.object({
|
|
5
|
+
url: zod.z.string().describe("URL of the page to extract markdown from.").optional(),
|
|
6
|
+
file: zod.z.object({
|
|
7
|
+
name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
8
|
+
s3key: zod.z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
|
|
9
|
+
mimetype: zod.z.string().describe("The MIME type of the file")
|
|
10
|
+
}).describe("File to upload for markdown extraction.").optional()
|
|
11
|
+
});
|
|
12
|
+
const ParseraExtractMarkdownOutput = zod.z.object({
|
|
13
|
+
meta: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata about the extraction process.").nullable().optional(),
|
|
14
|
+
status: zod.z.string().describe("Status of the extraction ('success')."),
|
|
15
|
+
markdown: zod.z.string().describe("Extracted markdown content.")
|
|
16
|
+
});
|
|
17
|
+
const parseraExtractMarkdown = require_action.action("PARSERA_EXTRACT_MARKDOWN", {
|
|
18
|
+
slug: "parsera-extract-markdown",
|
|
19
|
+
name: "Extract Markdown",
|
|
20
|
+
description: "Tool to extract markdown content from a file or URL.",
|
|
21
|
+
input: ParseraExtractMarkdownInput,
|
|
22
|
+
output: ParseraExtractMarkdownOutput
|
|
23
|
+
});
|
|
24
|
+
//#endregion
|
|
25
|
+
exports.parseraExtractMarkdown = parseraExtractMarkdown;
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=extract-markdown.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-markdown.cjs","names":["z","action"],"sources":["../../src/actions/extract-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraExtractMarkdownInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the page to extract markdown from.\").optional(),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload for markdown extraction.\").optional(),\n});\nexport const ParseraExtractMarkdownOutput: z.ZodTypeAny = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the extraction process.\").nullable().optional(),\n status: z.string().describe(\"Status of the extraction ('success').\"),\n markdown: z.string().describe(\"Extracted markdown content.\"),\n});\n\nexport const parseraExtractMarkdown = action(\"PARSERA_EXTRACT_MARKDOWN\", {\n slug: \"parsera-extract-markdown\",\n name: \"Extract Markdown\",\n description: \"Tool to extract markdown content from a file or URL.\",\n input: ParseraExtractMarkdownInput,\n output: ParseraExtractMarkdownOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC/E,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAChE,CAAC;AACD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC7D,CAAC;AAED,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/extract-markdown.d.ts
|
|
4
|
+
declare const ParseraExtractMarkdownInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraExtractMarkdownOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraExtractMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraExtractMarkdown };
|
|
9
|
+
//# sourceMappingURL=extract-markdown.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-markdown.d.cts","names":[],"sources":["../../src/actions/extract-markdown.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAO1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAI3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/extract-markdown.d.ts
|
|
4
|
+
declare const ParseraExtractMarkdownInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraExtractMarkdownOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraExtractMarkdown: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraExtractMarkdown };
|
|
9
|
+
//# sourceMappingURL=extract-markdown.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-markdown.d.mts","names":[],"sources":["../../src/actions/extract-markdown.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAO1C;AAAA,cACW,4BAAA,EAA8B,CAAA,CAAE,UAI3C;AAAA,cAEW,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const parseraExtractMarkdown = action("PARSERA_EXTRACT_MARKDOWN", {
|
|
4
|
+
slug: "parsera-extract-markdown",
|
|
5
|
+
name: "Extract Markdown",
|
|
6
|
+
description: "Tool to extract markdown content from a file or URL.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
url: z.string().describe("URL of the page to extract markdown from.").optional(),
|
|
9
|
+
file: z.object({
|
|
10
|
+
name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
|
|
11
|
+
s3key: z.string().describe("The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service."),
|
|
12
|
+
mimetype: z.string().describe("The MIME type of the file")
|
|
13
|
+
}).describe("File to upload for markdown extraction.").optional()
|
|
14
|
+
}),
|
|
15
|
+
output: z.object({
|
|
16
|
+
meta: z.record(z.string(), z.unknown()).describe("Metadata about the extraction process.").nullable().optional(),
|
|
17
|
+
status: z.string().describe("Status of the extraction ('success')."),
|
|
18
|
+
markdown: z.string().describe("Extracted markdown content.")
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { parseraExtractMarkdown };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=extract-markdown.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extract-markdown.mjs","names":[],"sources":["../../src/actions/extract-markdown.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraExtractMarkdownInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"URL of the page to extract markdown from.\").optional(),\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"File to upload for markdown extraction.\").optional(),\n});\nexport const ParseraExtractMarkdownOutput: z.ZodTypeAny = z.object({\n meta: z.record(z.string(), z.unknown()).describe(\"Metadata about the extraction process.\").nullable().optional(),\n status: z.string().describe(\"Status of the extraction ('success').\"),\n markdown: z.string().describe(\"Extracted markdown content.\"),\n});\n\nexport const parseraExtractMarkdown = action(\"PARSERA_EXTRACT_MARKDOWN\", {\n slug: \"parsera-extract-markdown\",\n name: \"Extract Markdown\",\n description: \"Tool to extract markdown content from a file or URL.\",\n input: ParseraExtractMarkdownInput,\n output: ParseraExtractMarkdownOutput,\n});\n"],"mappings":";;AAkBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBuD,EAAE,OAAO;EAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAC/E,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAChE,CAWS;CACP,QAXwD,EAAE,OAAO;EACjE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACnE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC7D,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-llm-specs.ts
|
|
4
|
+
const ParseraGetLlmSpecsInput = zod.z.object({}).describe("Request model for GET /v1/llm-specs endpoint.\n\nThis endpoint requires no parameters.");
|
|
5
|
+
const ParseraGetLlmSpecs_PricingTokenInfoSchema = zod.z.object({
|
|
6
|
+
input_per_million: zod.z.number().describe("Cost per million input tokens in USD.").nullable().optional(),
|
|
7
|
+
output_per_million: zod.z.number().describe("Cost per million output tokens in USD.").nullable().optional(),
|
|
8
|
+
cached_input_per_million: zod.z.number().describe("Cost per million cached input tokens in USD.").nullable().optional()
|
|
9
|
+
}).describe("Token pricing information.");
|
|
10
|
+
const ParseraGetLlmSpecs_EmbeddingsPricingSchema = zod.z.object({
|
|
11
|
+
batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),
|
|
12
|
+
standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional()
|
|
13
|
+
}).describe("Embeddings pricing structure.");
|
|
14
|
+
const ParseraGetLlmSpecs_TextTokensPricingSchema = zod.z.object({
|
|
15
|
+
batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),
|
|
16
|
+
standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional()
|
|
17
|
+
}).describe("Text tokens pricing structure.");
|
|
18
|
+
const ParseraGetLlmSpecs_PricingInfoSchema = zod.z.object({
|
|
19
|
+
embeddings: ParseraGetLlmSpecs_EmbeddingsPricingSchema.nullable().optional(),
|
|
20
|
+
text_tokens: ParseraGetLlmSpecs_TextTokensPricingSchema.nullable().optional()
|
|
21
|
+
}).describe("Pricing information for a model.");
|
|
22
|
+
const ParseraGetLlmSpecs_ModalitiesInfoSchema = zod.z.object({
|
|
23
|
+
input: zod.z.array(zod.z.string()).describe("Array of supported input modalities (e.g., 'text', 'image', 'audio')."),
|
|
24
|
+
output: zod.z.array(zod.z.string()).describe("Array of supported output modalities (e.g., 'text', 'image', 'embeddings').")
|
|
25
|
+
}).describe("Supported input/output modalities for a model.");
|
|
26
|
+
const ParseraGetLlmSpecs_LLMSpecSchema = zod.z.object({
|
|
27
|
+
id: zod.z.string().describe("Unique model identifier used for API calls."),
|
|
28
|
+
name: zod.z.string().describe("Human-readable model identifier.").nullable().optional(),
|
|
29
|
+
family: zod.z.string().describe("Model family classification."),
|
|
30
|
+
pricing: ParseraGetLlmSpecs_PricingInfoSchema.nullable().optional(),
|
|
31
|
+
provider: zod.z.string().describe("Service provider name (e.g., 'openai', 'anthropic', 'gemini', 'deepseek')."),
|
|
32
|
+
modalities: ParseraGetLlmSpecs_ModalitiesInfoSchema.nullable(),
|
|
33
|
+
capabilities: zod.z.array(zod.z.string()).describe("Array of supported features (e.g., 'function_calling', 'batch', 'structured_output').").nullable().optional(),
|
|
34
|
+
context_window: zod.z.number().int().describe("Maximum input tokens supported by the model.").nullable().optional(),
|
|
35
|
+
max_output_tokens: zod.z.number().int().describe("Maximum generation/output tokens allowed.").nullable().optional()
|
|
36
|
+
}).describe("Represents a single LLM model specification.");
|
|
37
|
+
const ParseraGetLlmSpecsOutput = zod.z.object({ models: zod.z.array(ParseraGetLlmSpecs_LLMSpecSchema).describe("Array of LLM model specifications with capabilities, pricing, and context windows.") }).describe("Response model containing list of LLM specifications.");
|
|
38
|
+
const parseraGetLlmSpecs = require_action.action("PARSERA_GET_LLM_SPECS", {
|
|
39
|
+
slug: "parsera-get-llm-specs",
|
|
40
|
+
name: "Get LLM Specifications",
|
|
41
|
+
description: "Tool to retrieve standardized LLM capabilities and pricing specifications. Use to get up-to-date information about models from various providers.",
|
|
42
|
+
input: ParseraGetLlmSpecsInput,
|
|
43
|
+
output: ParseraGetLlmSpecsOutput
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
exports.parseraGetLlmSpecs = parseraGetLlmSpecs;
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=get-llm-specs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-llm-specs.cjs","names":["z","action"],"sources":["../../src/actions/get-llm-specs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraGetLlmSpecsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for GET /v1/llm-specs endpoint.\\n\\nThis endpoint requires no parameters.\");\nconst ParseraGetLlmSpecs_PricingTokenInfoSchema: z.ZodTypeAny = z.object({\n input_per_million: z.number().describe(\"Cost per million input tokens in USD.\").nullable().optional(),\n output_per_million: z.number().describe(\"Cost per million output tokens in USD.\").nullable().optional(),\n cached_input_per_million: z.number().describe(\"Cost per million cached input tokens in USD.\").nullable().optional(),\n}).describe(\"Token pricing information.\");\nconst ParseraGetLlmSpecs_EmbeddingsPricingSchema: z.ZodTypeAny = z.object({\n batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n}).describe(\"Embeddings pricing structure.\");\nconst ParseraGetLlmSpecs_TextTokensPricingSchema: z.ZodTypeAny = z.object({\n batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n}).describe(\"Text tokens pricing structure.\");\nconst ParseraGetLlmSpecs_PricingInfoSchema: z.ZodTypeAny = z.object({\n embeddings: ParseraGetLlmSpecs_EmbeddingsPricingSchema.nullable().optional(),\n text_tokens: ParseraGetLlmSpecs_TextTokensPricingSchema.nullable().optional(),\n}).describe(\"Pricing information for a model.\");\nconst ParseraGetLlmSpecs_ModalitiesInfoSchema: z.ZodTypeAny = z.object({\n input: z.array(z.string()).describe(\"Array of supported input modalities (e.g., 'text', 'image', 'audio').\"),\n output: z.array(z.string()).describe(\"Array of supported output modalities (e.g., 'text', 'image', 'embeddings').\"),\n}).describe(\"Supported input/output modalities for a model.\");\nconst ParseraGetLlmSpecs_LLMSpecSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique model identifier used for API calls.\"),\n name: z.string().describe(\"Human-readable model identifier.\").nullable().optional(),\n family: z.string().describe(\"Model family classification.\"),\n pricing: ParseraGetLlmSpecs_PricingInfoSchema.nullable().optional(),\n provider: z.string().describe(\"Service provider name (e.g., 'openai', 'anthropic', 'gemini', 'deepseek').\"),\n modalities: ParseraGetLlmSpecs_ModalitiesInfoSchema.nullable(),\n capabilities: z.array(z.string()).describe(\"Array of supported features (e.g., 'function_calling', 'batch', 'structured_output').\").nullable().optional(),\n context_window: z.number().int().describe(\"Maximum input tokens supported by the model.\").nullable().optional(),\n max_output_tokens: z.number().int().describe(\"Maximum generation/output tokens allowed.\").nullable().optional(),\n}).describe(\"Represents a single LLM model specification.\");\nexport const ParseraGetLlmSpecsOutput: z.ZodTypeAny = z.object({\n models: z.array(ParseraGetLlmSpecs_LLMSpecSchema).describe(\"Array of LLM model specifications with capabilities, pricing, and context windows.\"),\n}).describe(\"Response model containing list of LLM specifications.\");\n\nexport const parseraGetLlmSpecs = action(\"PARSERA_GET_LLM_SPECS\", {\n slug: \"parsera-get-llm-specs\",\n name: \"Get LLM Specifications\",\n description: \"Tool to retrieve standardized LLM capabilities and pricing specifications. Use to get up-to-date information about models from various providers.\",\n input: ParseraGetLlmSpecsInput,\n output: ParseraGetLlmSpecsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF;AACnK,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrE,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrE,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,YAAY,2CAA2C,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAa,2CAA2C,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uEAAuE;CAC3G,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,SAAS,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC1G,YAAY,wCAAwC,SAAS;CAC7D,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,QAAQA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,oFAAoF,EACjJ,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-llm-specs.d.ts
|
|
4
|
+
declare const ParseraGetLlmSpecsInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraGetLlmSpecsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraGetLlmSpecs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraGetLlmSpecs };
|
|
9
|
+
//# sourceMappingURL=get-llm-specs.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-llm-specs.d.cts","names":[],"sources":["../../src/actions/get-llm-specs.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAA4H;AAAA,cAiCvJ,wBAAA,EAA0B,CAAA,CAAE,UAE2B;AAAA,cAEvD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-llm-specs.d.ts
|
|
4
|
+
declare const ParseraGetLlmSpecsInput: z.ZodTypeAny;
|
|
5
|
+
declare const ParseraGetLlmSpecsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const parseraGetLlmSpecs: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { parseraGetLlmSpecs };
|
|
9
|
+
//# sourceMappingURL=get-llm-specs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-llm-specs.d.mts","names":[],"sources":["../../src/actions/get-llm-specs.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAA4H;AAAA,cAiCvJ,wBAAA,EAA0B,CAAA,CAAE,UAE2B;AAAA,cAEvD,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-llm-specs.ts
|
|
4
|
+
const ParseraGetLlmSpecsInput = z.object({}).describe("Request model for GET /v1/llm-specs endpoint.\n\nThis endpoint requires no parameters.");
|
|
5
|
+
const ParseraGetLlmSpecs_PricingTokenInfoSchema = z.object({
|
|
6
|
+
input_per_million: z.number().describe("Cost per million input tokens in USD.").nullable().optional(),
|
|
7
|
+
output_per_million: z.number().describe("Cost per million output tokens in USD.").nullable().optional(),
|
|
8
|
+
cached_input_per_million: z.number().describe("Cost per million cached input tokens in USD.").nullable().optional()
|
|
9
|
+
}).describe("Token pricing information.");
|
|
10
|
+
const ParseraGetLlmSpecs_EmbeddingsPricingSchema = z.object({
|
|
11
|
+
batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),
|
|
12
|
+
standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional()
|
|
13
|
+
}).describe("Embeddings pricing structure.");
|
|
14
|
+
const ParseraGetLlmSpecs_TextTokensPricingSchema = z.object({
|
|
15
|
+
batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),
|
|
16
|
+
standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional()
|
|
17
|
+
}).describe("Text tokens pricing structure.");
|
|
18
|
+
const ParseraGetLlmSpecs_PricingInfoSchema = z.object({
|
|
19
|
+
embeddings: ParseraGetLlmSpecs_EmbeddingsPricingSchema.nullable().optional(),
|
|
20
|
+
text_tokens: ParseraGetLlmSpecs_TextTokensPricingSchema.nullable().optional()
|
|
21
|
+
}).describe("Pricing information for a model.");
|
|
22
|
+
const ParseraGetLlmSpecs_ModalitiesInfoSchema = z.object({
|
|
23
|
+
input: z.array(z.string()).describe("Array of supported input modalities (e.g., 'text', 'image', 'audio')."),
|
|
24
|
+
output: z.array(z.string()).describe("Array of supported output modalities (e.g., 'text', 'image', 'embeddings').")
|
|
25
|
+
}).describe("Supported input/output modalities for a model.");
|
|
26
|
+
const ParseraGetLlmSpecs_LLMSpecSchema = z.object({
|
|
27
|
+
id: z.string().describe("Unique model identifier used for API calls."),
|
|
28
|
+
name: z.string().describe("Human-readable model identifier.").nullable().optional(),
|
|
29
|
+
family: z.string().describe("Model family classification."),
|
|
30
|
+
pricing: ParseraGetLlmSpecs_PricingInfoSchema.nullable().optional(),
|
|
31
|
+
provider: z.string().describe("Service provider name (e.g., 'openai', 'anthropic', 'gemini', 'deepseek')."),
|
|
32
|
+
modalities: ParseraGetLlmSpecs_ModalitiesInfoSchema.nullable(),
|
|
33
|
+
capabilities: z.array(z.string()).describe("Array of supported features (e.g., 'function_calling', 'batch', 'structured_output').").nullable().optional(),
|
|
34
|
+
context_window: z.number().int().describe("Maximum input tokens supported by the model.").nullable().optional(),
|
|
35
|
+
max_output_tokens: z.number().int().describe("Maximum generation/output tokens allowed.").nullable().optional()
|
|
36
|
+
}).describe("Represents a single LLM model specification.");
|
|
37
|
+
const parseraGetLlmSpecs = action("PARSERA_GET_LLM_SPECS", {
|
|
38
|
+
slug: "parsera-get-llm-specs",
|
|
39
|
+
name: "Get LLM Specifications",
|
|
40
|
+
description: "Tool to retrieve standardized LLM capabilities and pricing specifications. Use to get up-to-date information about models from various providers.",
|
|
41
|
+
input: ParseraGetLlmSpecsInput,
|
|
42
|
+
output: z.object({ models: z.array(ParseraGetLlmSpecs_LLMSpecSchema).describe("Array of LLM model specifications with capabilities, pricing, and context windows.") }).describe("Response model containing list of LLM specifications.")
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
export { parseraGetLlmSpecs };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=get-llm-specs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-llm-specs.mjs","names":[],"sources":["../../src/actions/get-llm-specs.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraGetLlmSpecsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for GET /v1/llm-specs endpoint.\\n\\nThis endpoint requires no parameters.\");\nconst ParseraGetLlmSpecs_PricingTokenInfoSchema: z.ZodTypeAny = z.object({\n input_per_million: z.number().describe(\"Cost per million input tokens in USD.\").nullable().optional(),\n output_per_million: z.number().describe(\"Cost per million output tokens in USD.\").nullable().optional(),\n cached_input_per_million: z.number().describe(\"Cost per million cached input tokens in USD.\").nullable().optional(),\n}).describe(\"Token pricing information.\");\nconst ParseraGetLlmSpecs_EmbeddingsPricingSchema: z.ZodTypeAny = z.object({\n batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n}).describe(\"Embeddings pricing structure.\");\nconst ParseraGetLlmSpecs_TextTokensPricingSchema: z.ZodTypeAny = z.object({\n batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n}).describe(\"Text tokens pricing structure.\");\nconst ParseraGetLlmSpecs_PricingInfoSchema: z.ZodTypeAny = z.object({\n embeddings: ParseraGetLlmSpecs_EmbeddingsPricingSchema.nullable().optional(),\n text_tokens: ParseraGetLlmSpecs_TextTokensPricingSchema.nullable().optional(),\n}).describe(\"Pricing information for a model.\");\nconst ParseraGetLlmSpecs_ModalitiesInfoSchema: z.ZodTypeAny = z.object({\n input: z.array(z.string()).describe(\"Array of supported input modalities (e.g., 'text', 'image', 'audio').\"),\n output: z.array(z.string()).describe(\"Array of supported output modalities (e.g., 'text', 'image', 'embeddings').\"),\n}).describe(\"Supported input/output modalities for a model.\");\nconst ParseraGetLlmSpecs_LLMSpecSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique model identifier used for API calls.\"),\n name: z.string().describe(\"Human-readable model identifier.\").nullable().optional(),\n family: z.string().describe(\"Model family classification.\"),\n pricing: ParseraGetLlmSpecs_PricingInfoSchema.nullable().optional(),\n provider: z.string().describe(\"Service provider name (e.g., 'openai', 'anthropic', 'gemini', 'deepseek').\"),\n modalities: ParseraGetLlmSpecs_ModalitiesInfoSchema.nullable(),\n capabilities: z.array(z.string()).describe(\"Array of supported features (e.g., 'function_calling', 'batch', 'structured_output').\").nullable().optional(),\n context_window: z.number().int().describe(\"Maximum input tokens supported by the model.\").nullable().optional(),\n max_output_tokens: z.number().int().describe(\"Maximum generation/output tokens allowed.\").nullable().optional(),\n}).describe(\"Represents a single LLM model specification.\");\nexport const ParseraGetLlmSpecsOutput: z.ZodTypeAny = z.object({\n models: z.array(ParseraGetLlmSpecs_LLMSpecSchema).describe(\"Array of LLM model specifications with capabilities, pricing, and context windows.\"),\n}).describe(\"Response model containing list of LLM specifications.\");\n\nexport const parseraGetLlmSpecs = action(\"PARSERA_GET_LLM_SPECS\", {\n slug: \"parsera-get-llm-specs\",\n name: \"Get LLM Specifications\",\n description: \"Tool to retrieve standardized LLM capabilities and pricing specifications. Use to get up-to-date information about models from various providers.\",\n input: ParseraGetLlmSpecsInput,\n output: ParseraGetLlmSpecsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF;AACnK,MAAM,4CAA0D,EAAE,OAAO;CACvE,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAM,6CAA2D,EAAE,OAAO;CACxE,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrE,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAM,6CAA2D,EAAE,OAAO;CACxE,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrE,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAM,uCAAqD,EAAE,OAAO;CAClE,YAAY,2CAA2C,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAa,2CAA2C,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAC9C,MAAM,0CAAwD,EAAE,OAAO;CACrE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uEAAuE;CAC3G,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACpH,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,mCAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CAC1D,SAAS,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC1G,YAAY,wCAAwC,SAAS;CAC7D,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAK1D,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAToD,EAAE,OAAO,EAC7D,QAAQ,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,oFAAoF,EACjJ,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-proxy-countries.ts
|
|
4
|
+
const ParseraGetProxyCountriesInput = zod.z.object({}).describe("Request model for GET /v1/proxy-countries endpoint.\n\nThis endpoint requires no parameters.");
|
|
5
|
+
const ParseraGetProxyCountries_ProxyCountrySchema = zod.z.object({
|
|
6
|
+
code: zod.z.string().describe("API parameter code for the country (e.g., 'UnitedStates', 'UnitedKingdom')."),
|
|
7
|
+
name: zod.z.string().describe("Human-readable country name (e.g., 'United States', 'United Kingdom').")
|
|
8
|
+
}).describe("Represents a single proxy country option.");
|
|
9
|
+
const ParseraGetProxyCountriesOutput = zod.z.object({ countries: zod.z.array(ParseraGetProxyCountries_ProxyCountrySchema).describe("Array of available proxy countries for web scraping requests.") }).describe("Response model containing list of available proxy countries.");
|
|
10
|
+
const parseraGetProxyCountries = require_action.action("PARSERA_GET_PROXY_COUNTRIES", {
|
|
11
|
+
slug: "parsera-get-proxy-countries",
|
|
12
|
+
name: "Get Proxy Countries",
|
|
13
|
+
description: "Tool to retrieve the list of available proxy countries for web scraping requests. Use when you need to know which countries are supported for proxy-based scraping.",
|
|
14
|
+
input: ParseraGetProxyCountriesInput,
|
|
15
|
+
output: ParseraGetProxyCountriesOutput
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.parseraGetProxyCountries = parseraGetProxyCountries;
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=get-proxy-countries.cjs.map
|