@keystrokehq/parsera 0.1.5 → 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/create-scraper.cjs +1 -0
- package/dist/actions/create-scraper.cjs.map +1 -1
- package/dist/actions/create-scraper.d.cts +3 -13
- package/dist/actions/create-scraper.d.cts.map +1 -1
- package/dist/actions/create-scraper.d.mts +3 -13
- package/dist/actions/create-scraper.d.mts.map +1 -1
- package/dist/actions/create-scraper.mjs +1 -0
- package/dist/actions/create-scraper.mjs.map +1 -1
- package/dist/actions/delete-scraper.cjs +1 -0
- package/dist/actions/delete-scraper.cjs.map +1 -1
- package/dist/actions/delete-scraper.d.cts +3 -15
- package/dist/actions/delete-scraper.d.cts.map +1 -1
- package/dist/actions/delete-scraper.d.mts +3 -15
- package/dist/actions/delete-scraper.d.mts.map +1 -1
- package/dist/actions/delete-scraper.mjs +1 -0
- package/dist/actions/delete-scraper.mjs.map +1 -1
- package/dist/actions/extract-data.cjs +1 -0
- package/dist/actions/extract-data.cjs.map +1 -1
- package/dist/actions/extract-data.d.cts +3 -20
- package/dist/actions/extract-data.d.cts.map +1 -1
- package/dist/actions/extract-data.d.mts +3 -20
- package/dist/actions/extract-data.d.mts.map +1 -1
- package/dist/actions/extract-data.mjs +1 -0
- package/dist/actions/extract-data.mjs.map +1 -1
- package/dist/actions/extract-markdown.cjs +1 -0
- package/dist/actions/extract-markdown.cjs.map +1 -1
- package/dist/actions/extract-markdown.d.cts +3 -20
- package/dist/actions/extract-markdown.d.cts.map +1 -1
- package/dist/actions/extract-markdown.d.mts +3 -20
- package/dist/actions/extract-markdown.d.mts.map +1 -1
- package/dist/actions/extract-markdown.mjs +1 -0
- package/dist/actions/extract-markdown.mjs.map +1 -1
- package/dist/actions/get-llm-specs.cjs +1 -0
- package/dist/actions/get-llm-specs.cjs.map +1 -1
- package/dist/actions/get-llm-specs.d.cts +3 -13
- package/dist/actions/get-llm-specs.d.cts.map +1 -1
- package/dist/actions/get-llm-specs.d.mts +3 -13
- package/dist/actions/get-llm-specs.d.mts.map +1 -1
- package/dist/actions/get-llm-specs.mjs +1 -0
- package/dist/actions/get-llm-specs.mjs.map +1 -1
- package/dist/actions/get-proxy-countries.cjs +1 -0
- package/dist/actions/get-proxy-countries.cjs.map +1 -1
- package/dist/actions/get-proxy-countries.d.cts +3 -13
- package/dist/actions/get-proxy-countries.d.cts.map +1 -1
- package/dist/actions/get-proxy-countries.d.mts +3 -13
- package/dist/actions/get-proxy-countries.d.mts.map +1 -1
- package/dist/actions/get-proxy-countries.mjs +1 -0
- package/dist/actions/get-proxy-countries.mjs.map +1 -1
- package/dist/actions/health-check.cjs +1 -0
- package/dist/actions/health-check.cjs.map +1 -1
- package/dist/actions/health-check.d.cts +3 -13
- package/dist/actions/health-check.d.cts.map +1 -1
- package/dist/actions/health-check.d.mts +3 -13
- package/dist/actions/health-check.d.mts.map +1 -1
- package/dist/actions/health-check.mjs +1 -0
- package/dist/actions/health-check.mjs.map +1 -1
- package/dist/actions/list-agents.cjs +1 -0
- package/dist/actions/list-agents.cjs.map +1 -1
- package/dist/actions/list-agents.d.cts +3 -13
- package/dist/actions/list-agents.d.cts.map +1 -1
- package/dist/actions/list-agents.d.mts +3 -13
- package/dist/actions/list-agents.d.mts.map +1 -1
- package/dist/actions/list-agents.mjs +1 -0
- package/dist/actions/list-agents.mjs.map +1 -1
- package/dist/actions/list-scrapers.cjs +1 -0
- package/dist/actions/list-scrapers.cjs.map +1 -1
- package/dist/actions/list-scrapers.d.cts +3 -13
- package/dist/actions/list-scrapers.d.cts.map +1 -1
- package/dist/actions/list-scrapers.d.mts +3 -13
- package/dist/actions/list-scrapers.d.mts.map +1 -1
- package/dist/actions/list-scrapers.mjs +1 -0
- package/dist/actions/list-scrapers.mjs.map +1 -1
- package/dist/actions/parse-content2.cjs +1 -0
- package/dist/actions/parse-content2.cjs.map +1 -1
- package/dist/actions/parse-content2.d.cts +3 -25
- package/dist/actions/parse-content2.d.cts.map +1 -1
- package/dist/actions/parse-content2.d.mts +3 -25
- package/dist/actions/parse-content2.d.mts.map +1 -1
- package/dist/actions/parse-content2.mjs +1 -0
- package/dist/actions/parse-content2.mjs.map +1 -1
- package/dist/actions/remove-agent.cjs +1 -0
- package/dist/actions/remove-agent.cjs.map +1 -1
- package/dist/actions/remove-agent.d.cts +3 -15
- package/dist/actions/remove-agent.d.cts.map +1 -1
- package/dist/actions/remove-agent.d.mts +3 -15
- package/dist/actions/remove-agent.d.mts.map +1 -1
- package/dist/actions/remove-agent.mjs +1 -0
- package/dist/actions/remove-agent.mjs.map +1 -1
- package/dist/actions/run-scraper-template.cjs +1 -0
- package/dist/actions/run-scraper-template.cjs.map +1 -1
- package/dist/actions/run-scraper-template.d.cts +3 -23
- package/dist/actions/run-scraper-template.d.cts.map +1 -1
- package/dist/actions/run-scraper-template.d.mts +3 -23
- package/dist/actions/run-scraper-template.d.mts.map +1 -1
- package/dist/actions/run-scraper-template.mjs +1 -0
- package/dist/actions/run-scraper-template.mjs.map +1 -1
- package/dist/actions/scrape-with-agent.cjs +1 -0
- package/dist/actions/scrape-with-agent.cjs.map +1 -1
- package/dist/actions/scrape-with-agent.d.cts +3 -18
- package/dist/actions/scrape-with-agent.d.cts.map +1 -1
- package/dist/actions/scrape-with-agent.d.mts +3 -18
- package/dist/actions/scrape-with-agent.d.mts.map +1 -1
- package/dist/actions/scrape-with-agent.mjs +1 -0
- package/dist/actions/scrape-with-agent.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-agent.cjs","names":["z","action"],"sources":["../../src/actions/remove-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraRemoveAgentInput = z.object({\n name: z.string().describe(\"Name of the agent to be removed. This should match the name used when the agent was created.\"),\n}).describe(\"Request model for POST /v1/remove endpoint.\");\nexport const ParseraRemoveAgentOutput = z.object({\n message: z.string().describe(\"Status message or additional information about the removal operation.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the agent was successfully removed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for agent removal operation.\");\n\nexport const parseraRemoveAgent = action(\"PARSERA_REMOVE_AGENT\", {\n slug: \"parsera-remove-agent\",\n name: \"Remove Agent\",\n description: \"Tool to delete an existing agent by name. Use when you need to remove a previously created agent from the Parsera platform.\",\n input: ParseraRemoveAgentInput,\n output: ParseraRemoveAgentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-agent.cjs","names":["z","action"],"sources":["../../src/actions/remove-agent.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parsera } from \"../app\";\n\nexport const ParseraRemoveAgentInput = z.object({\n name: z.string().describe(\"Name of the agent to be removed. This should match the name used when the agent was created.\"),\n}).describe(\"Request model for POST /v1/remove endpoint.\");\nexport const ParseraRemoveAgentOutput = z.object({\n message: z.string().describe(\"Status message or additional information about the removal operation.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the agent was successfully removed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for agent removal operation.\");\n\nexport const parseraRemoveAgent: AppAction<\n typeof ParseraRemoveAgentInput,\n typeof ParseraRemoveAgentOutput,\n typeof parsera.credential\n> = action(\"PARSERA_REMOVE_AGENT\", {\n slug: \"parsera-remove-agent\",\n name: \"Remove Agent\",\n description: \"Tool to delete an existing agent by name. Use when you need to remove a previously created agent from the Parsera platform.\",\n input: ParseraRemoveAgentInput,\n output: ParseraRemoveAgentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,EAC1H,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parsera } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/remove-agent.d.ts
|
|
@@ -8,21 +10,7 @@ declare const ParseraRemoveAgentOutput: z.ZodObject<{
|
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const parseraRemoveAgent:
|
|
12
|
-
name: string;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
generic_api_key: z.ZodString;
|
|
19
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
generic_api_key: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const parseraRemoveAgent: AppAction<typeof ParseraRemoveAgentInput, typeof ParseraRemoveAgentOutput, typeof parsera.credential>;
|
|
26
14
|
//#endregion
|
|
27
15
|
export { parseraRemoveAgent };
|
|
28
16
|
//# sourceMappingURL=remove-agent.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-agent.d.cts","names":[],"sources":["../../src/actions/remove-agent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-agent.d.cts","names":[],"sources":["../../src/actions/remove-agent.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parsera } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/remove-agent.d.ts
|
|
@@ -8,21 +10,7 @@ declare const ParseraRemoveAgentOutput: z.ZodObject<{
|
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const parseraRemoveAgent:
|
|
12
|
-
name: string;
|
|
13
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
14
|
-
connectionId: z.ZodString;
|
|
15
|
-
entityId: z.ZodString;
|
|
16
|
-
instanceId: z.ZodString;
|
|
17
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
18
|
-
generic_api_key: z.ZodString;
|
|
19
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
generic_api_key: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const parseraRemoveAgent: AppAction<typeof ParseraRemoveAgentInput, typeof ParseraRemoveAgentOutput, typeof parsera.credential>;
|
|
26
14
|
//#endregion
|
|
27
15
|
export { parseraRemoveAgent };
|
|
28
16
|
//# sourceMappingURL=remove-agent.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-agent.d.mts","names":[],"sources":["../../src/actions/remove-agent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-agent.d.mts","names":[],"sources":["../../src/actions/remove-agent.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-agent.mjs","names":[],"sources":["../../src/actions/remove-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraRemoveAgentInput = z.object({\n name: z.string().describe(\"Name of the agent to be removed. This should match the name used when the agent was created.\"),\n}).describe(\"Request model for POST /v1/remove endpoint.\");\nexport const ParseraRemoveAgentOutput = z.object({\n message: z.string().describe(\"Status message or additional information about the removal operation.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the agent was successfully removed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for agent removal operation.\");\n\nexport const parseraRemoveAgent = action(\"PARSERA_REMOVE_AGENT\", {\n slug: \"parsera-remove-agent\",\n name: \"Remove Agent\",\n description: \"Tool to delete an existing agent by name. Use when you need to remove a previously created agent from the Parsera platform.\",\n input: ParseraRemoveAgentInput,\n output: ParseraRemoveAgentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"remove-agent.mjs","names":[],"sources":["../../src/actions/remove-agent.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parsera } from \"../app\";\n\nexport const ParseraRemoveAgentInput = z.object({\n name: z.string().describe(\"Name of the agent to be removed. This should match the name used when the agent was created.\"),\n}).describe(\"Request model for POST /v1/remove endpoint.\");\nexport const ParseraRemoveAgentOutput = z.object({\n message: z.string().describe(\"Status message or additional information about the removal operation.\").nullable().optional(),\n success: z.boolean().describe(\"Indicates whether the agent was successfully removed.\").nullable().optional(),\n}).passthrough().describe(\"Response model for agent removal operation.\");\n\nexport const parseraRemoveAgent: AppAction<\n typeof ParseraRemoveAgentInput,\n typeof ParseraRemoveAgentOutput,\n typeof parsera.credential\n> = action(\"PARSERA_REMOVE_AGENT\", {\n slug: \"parsera-remove-agent\",\n name: \"Remove Agent\",\n description: \"Tool to delete an existing agent by name. Use when you need to remove a previously created agent from the Parsera platform.\",\n input: ParseraRemoveAgentInput,\n output: ParseraRemoveAgentOutput,\n});\n"],"mappings":";;;AAcA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqC,EAAE,OAAO,EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,EAC1H,CAAC,CAAC,CAAC,SAAS,6CAcH;CACP,QAdsC,EAAE,OAAO;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-scraper-template.cjs","names":["z","action"],"sources":["../../src/actions/run-scraper-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraRunScraperTemplateInput = z.object({\n url: z.union([z.string(), z.array(z.string())]).optional(),\n cookies: z.array(z.object({\n name: z.string().describe(\"Cookie name.\"),\n value: z.string().describe(\"Cookie value.\"),\n domain: z.string().describe(\"Domain for which the cookie is valid.\"),\n}).passthrough().describe(\"Represents a browser cookie to include with the request.\")).describe(\"Browser cookies to include with the request. Useful for authenticated sessions or maintaining state.\").optional(),\n template_id: z.string().describe(\"Identifier for the template or scraper to execute. Template IDs prefixed with 'scraper:' route to the legacy scrapers API, while others execute as template extractions.\"),\n proxy_country: z.string().describe(\"Country code for proxy routing during requests. Use to route requests through a proxy server in a specific country. See GET /v1/proxy-countries for available country codes.\").optional(),\n});\nexport const ParseraRunScraperTemplateOutput = z.unknown();\n\nexport const parseraRunScraperTemplate = action(\"PARSERA_RUN_SCRAPER_TEMPLATE\", {\n slug: \"parsera-run-scraper-template\",\n name: \"Run Scraper Template\",\n description: \"Tool to run a scraper template on a specified URL with optional proxy and cookies. Use when you need to execute a pre-defined scraper template to extract structured data from web pages.\",\n input: ParseraRunScraperTemplateInput,\n output: ParseraRunScraperTemplateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-scraper-template.cjs","names":["z","action"],"sources":["../../src/actions/run-scraper-template.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parsera } from \"../app\";\n\nexport const ParseraRunScraperTemplateInput = z.object({\n url: z.union([z.string(), z.array(z.string())]).optional(),\n cookies: z.array(z.object({\n name: z.string().describe(\"Cookie name.\"),\n value: z.string().describe(\"Cookie value.\"),\n domain: z.string().describe(\"Domain for which the cookie is valid.\"),\n}).passthrough().describe(\"Represents a browser cookie to include with the request.\")).describe(\"Browser cookies to include with the request. Useful for authenticated sessions or maintaining state.\").optional(),\n template_id: z.string().describe(\"Identifier for the template or scraper to execute. Template IDs prefixed with 'scraper:' route to the legacy scrapers API, while others execute as template extractions.\"),\n proxy_country: z.string().describe(\"Country code for proxy routing during requests. Use to route requests through a proxy server in a specific country. See GET /v1/proxy-countries for available country codes.\").optional(),\n});\nexport const ParseraRunScraperTemplateOutput = z.unknown();\n\nexport const parseraRunScraperTemplate: AppAction<\n typeof ParseraRunScraperTemplateInput,\n typeof ParseraRunScraperTemplateOutput,\n typeof parsera.credential\n> = action(\"PARSERA_RUN_SCRAPER_TEMPLATE\", {\n slug: \"parsera-run-scraper-template\",\n name: \"Run Scraper Template\",\n description: \"Tool to run a scraper template on a specified URL with optional proxy and cookies. Use when you need to execute a pre-defined scraper template to extract structured data from web pages.\",\n input: ParseraRunScraperTemplateInput,\n output: ParseraRunScraperTemplateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,KAAKA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACzD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC1B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;EACxC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;EAC1C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC/M,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K;CAC3M,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;AAC9N,CAAC;AACD,MAAa,kCAAkCA,IAAAA,EAAE,QAAQ;AAEzD,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parsera } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/run-scraper-template.d.ts
|
|
@@ -12,29 +14,7 @@ declare const ParseraRunScraperTemplateInput: z.ZodObject<{
|
|
|
12
14
|
proxy_country: z.ZodOptional<z.ZodString>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
declare const ParseraRunScraperTemplateOutput: z.ZodUnknown;
|
|
15
|
-
declare const parseraRunScraperTemplate:
|
|
16
|
-
template_id: string;
|
|
17
|
-
url?: string | string[] | undefined;
|
|
18
|
-
cookies?: {
|
|
19
|
-
[x: string]: unknown;
|
|
20
|
-
name: string;
|
|
21
|
-
value: string;
|
|
22
|
-
domain: string;
|
|
23
|
-
}[] | undefined;
|
|
24
|
-
proxy_country?: string | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
26
|
-
connectionId: z.ZodString;
|
|
27
|
-
entityId: z.ZodString;
|
|
28
|
-
instanceId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const parseraRunScraperTemplate: AppAction<typeof ParseraRunScraperTemplateInput, typeof ParseraRunScraperTemplateOutput, typeof parsera.credential>;
|
|
38
18
|
//#endregion
|
|
39
19
|
export { parseraRunScraperTemplate };
|
|
40
20
|
//# sourceMappingURL=run-scraper-template.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-scraper-template.d.cts","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-scraper-template.d.cts","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAU9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parsera } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/run-scraper-template.d.ts
|
|
@@ -12,29 +14,7 @@ declare const ParseraRunScraperTemplateInput: z.ZodObject<{
|
|
|
12
14
|
proxy_country: z.ZodOptional<z.ZodString>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
declare const ParseraRunScraperTemplateOutput: z.ZodUnknown;
|
|
15
|
-
declare const parseraRunScraperTemplate:
|
|
16
|
-
template_id: string;
|
|
17
|
-
url?: string | string[] | undefined;
|
|
18
|
-
cookies?: {
|
|
19
|
-
[x: string]: unknown;
|
|
20
|
-
name: string;
|
|
21
|
-
value: string;
|
|
22
|
-
domain: string;
|
|
23
|
-
}[] | undefined;
|
|
24
|
-
proxy_country?: string | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
26
|
-
connectionId: z.ZodString;
|
|
27
|
-
entityId: z.ZodString;
|
|
28
|
-
instanceId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
generic_api_key: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
32
|
-
connectionId: z.ZodString;
|
|
33
|
-
entityId: z.ZodString;
|
|
34
|
-
instanceId: z.ZodString;
|
|
35
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
-
generic_api_key: z.ZodString;
|
|
37
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const parseraRunScraperTemplate: AppAction<typeof ParseraRunScraperTemplateInput, typeof ParseraRunScraperTemplateOutput, typeof parsera.credential>;
|
|
38
18
|
//#endregion
|
|
39
19
|
export { parseraRunScraperTemplate };
|
|
40
20
|
//# sourceMappingURL=run-scraper-template.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-scraper-template.d.mts","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-scraper-template.d.mts","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAU9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-scraper-template.mjs","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraRunScraperTemplateInput = z.object({\n url: z.union([z.string(), z.array(z.string())]).optional(),\n cookies: z.array(z.object({\n name: z.string().describe(\"Cookie name.\"),\n value: z.string().describe(\"Cookie value.\"),\n domain: z.string().describe(\"Domain for which the cookie is valid.\"),\n}).passthrough().describe(\"Represents a browser cookie to include with the request.\")).describe(\"Browser cookies to include with the request. Useful for authenticated sessions or maintaining state.\").optional(),\n template_id: z.string().describe(\"Identifier for the template or scraper to execute. Template IDs prefixed with 'scraper:' route to the legacy scrapers API, while others execute as template extractions.\"),\n proxy_country: z.string().describe(\"Country code for proxy routing during requests. Use to route requests through a proxy server in a specific country. See GET /v1/proxy-countries for available country codes.\").optional(),\n});\nexport const ParseraRunScraperTemplateOutput = z.unknown();\n\nexport const parseraRunScraperTemplate = action(\"PARSERA_RUN_SCRAPER_TEMPLATE\", {\n slug: \"parsera-run-scraper-template\",\n name: \"Run Scraper Template\",\n description: \"Tool to run a scraper template on a specified URL with optional proxy and cookies. Use when you need to execute a pre-defined scraper template to extract structured data from web pages.\",\n input: ParseraRunScraperTemplateInput,\n output: ParseraRunScraperTemplateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-scraper-template.mjs","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parsera } from \"../app\";\n\nexport const ParseraRunScraperTemplateInput = z.object({\n url: z.union([z.string(), z.array(z.string())]).optional(),\n cookies: z.array(z.object({\n name: z.string().describe(\"Cookie name.\"),\n value: z.string().describe(\"Cookie value.\"),\n domain: z.string().describe(\"Domain for which the cookie is valid.\"),\n}).passthrough().describe(\"Represents a browser cookie to include with the request.\")).describe(\"Browser cookies to include with the request. Useful for authenticated sessions or maintaining state.\").optional(),\n template_id: z.string().describe(\"Identifier for the template or scraper to execute. Template IDs prefixed with 'scraper:' route to the legacy scrapers API, while others execute as template extractions.\"),\n proxy_country: z.string().describe(\"Country code for proxy routing during requests. Use to route requests through a proxy server in a specific country. See GET /v1/proxy-countries for available country codes.\").optional(),\n});\nexport const ParseraRunScraperTemplateOutput = z.unknown();\n\nexport const parseraRunScraperTemplate: AppAction<\n typeof ParseraRunScraperTemplateInput,\n typeof ParseraRunScraperTemplateOutput,\n typeof parsera.credential\n> = action(\"PARSERA_RUN_SCRAPER_TEMPLATE\", {\n slug: \"parsera-run-scraper-template\",\n name: \"Run Scraper Template\",\n description: \"Tool to run a scraper template on a specified URL with optional proxy and cookies. Use when you need to execute a pre-defined scraper template to extract structured data from web pages.\",\n input: ParseraRunScraperTemplateInput,\n output: ParseraRunScraperTemplateOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB4C,EAAE,OAAO;EACrD,KAAK,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;EACzD,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;GACxC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;GAC1C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EAC/M,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K;EAC3M,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CAC9N,CAWS;CACP,QAX6C,EAAE,QAWvC;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrape-with-agent.cjs","names":["z","action"],"sources":["../../src/actions/scrape-with-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraScrapeWithAgentInput = z.object({\n url: z.string().describe(\"The webpage URL where data extraction will occur.\"),\n name: z.string().describe(\"Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase').\"),\n cookies: z.array(z.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.\").optional(),\n proxy_country: z.string().describe(\"Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.\").optional(),\n}).describe(\"Request model for POST /v1/scrape endpoint.\");\nexport const ParseraScrapeWithAgentOutput = z.unknown();\n\nexport const parseraScrapeWithAgent = action(\"PARSERA_SCRAPE_WITH_AGENT\", {\n slug: \"parsera-scrape-with-agent\",\n name: \"Scrape With Agent\",\n description: \"Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.\",\n input: ParseraScrapeWithAgentInput,\n output: ParseraScrapeWithAgentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"scrape-with-agent.cjs","names":["z","action"],"sources":["../../src/actions/scrape-with-agent.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parsera } from \"../app\";\n\nexport const ParseraScrapeWithAgentInput = z.object({\n url: z.string().describe(\"The webpage URL where data extraction will occur.\"),\n name: z.string().describe(\"Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase').\"),\n cookies: z.array(z.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.\").optional(),\n proxy_country: z.string().describe(\"Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.\").optional(),\n}).describe(\"Request model for POST /v1/scrape endpoint.\");\nexport const ParseraScrapeWithAgentOutput = z.unknown();\n\nexport const parseraScrapeWithAgent: AppAction<\n typeof ParseraScrapeWithAgentInput,\n typeof ParseraScrapeWithAgentOutput,\n typeof parsera.credential\n> = action(\"PARSERA_SCRAPE_WITH_AGENT\", {\n slug: \"parsera-scrape-with-agent\",\n name: \"Scrape With Agent\",\n description: \"Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.\",\n input: ParseraScrapeWithAgentInput,\n output: ParseraScrapeWithAgentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;CAClK,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAC/L,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,+BAA+BA,IAAAA,EAAE,QAAQ;AAEtD,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parsera } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/scrape-with-agent.d.ts
|
|
@@ -8,24 +10,7 @@ declare const ParseraScrapeWithAgentInput: z.ZodObject<{
|
|
|
8
10
|
proxy_country: z.ZodOptional<z.ZodString>;
|
|
9
11
|
}, z.core.$strip>;
|
|
10
12
|
declare const ParseraScrapeWithAgentOutput: z.ZodUnknown;
|
|
11
|
-
declare const parseraScrapeWithAgent:
|
|
12
|
-
url: string;
|
|
13
|
-
name: string;
|
|
14
|
-
cookies?: Record<string, unknown>[] | undefined;
|
|
15
|
-
proxy_country?: string | undefined;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
17
|
-
connectionId: z.ZodString;
|
|
18
|
-
entityId: z.ZodString;
|
|
19
|
-
instanceId: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
generic_api_key: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const parseraScrapeWithAgent: AppAction<typeof ParseraScrapeWithAgentInput, typeof ParseraScrapeWithAgentOutput, typeof parsera.credential>;
|
|
29
14
|
//#endregion
|
|
30
15
|
export { parseraScrapeWithAgent };
|
|
31
16
|
//# sourceMappingURL=scrape-with-agent.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrape-with-agent.d.cts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"scrape-with-agent.d.cts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { parsera } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/scrape-with-agent.d.ts
|
|
@@ -8,24 +10,7 @@ declare const ParseraScrapeWithAgentInput: z.ZodObject<{
|
|
|
8
10
|
proxy_country: z.ZodOptional<z.ZodString>;
|
|
9
11
|
}, z.core.$strip>;
|
|
10
12
|
declare const ParseraScrapeWithAgentOutput: z.ZodUnknown;
|
|
11
|
-
declare const parseraScrapeWithAgent:
|
|
12
|
-
url: string;
|
|
13
|
-
name: string;
|
|
14
|
-
cookies?: Record<string, unknown>[] | undefined;
|
|
15
|
-
proxy_country?: string | undefined;
|
|
16
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
17
|
-
connectionId: z.ZodString;
|
|
18
|
-
entityId: z.ZodString;
|
|
19
|
-
instanceId: z.ZodString;
|
|
20
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
-
generic_api_key: z.ZodString;
|
|
22
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
23
|
-
connectionId: z.ZodString;
|
|
24
|
-
entityId: z.ZodString;
|
|
25
|
-
instanceId: z.ZodString;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
generic_api_key: z.ZodString;
|
|
28
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const parseraScrapeWithAgent: AppAction<typeof ParseraScrapeWithAgentInput, typeof ParseraScrapeWithAgentOutput, typeof parsera.credential>;
|
|
29
14
|
//#endregion
|
|
30
15
|
export { parseraScrapeWithAgent };
|
|
31
16
|
//# sourceMappingURL=scrape-with-agent.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrape-with-agent.d.mts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"scrape-with-agent.d.mts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scrape-with-agent.mjs","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraScrapeWithAgentInput = z.object({\n url: z.string().describe(\"The webpage URL where data extraction will occur.\"),\n name: z.string().describe(\"Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase').\"),\n cookies: z.array(z.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.\").optional(),\n proxy_country: z.string().describe(\"Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.\").optional(),\n}).describe(\"Request model for POST /v1/scrape endpoint.\");\nexport const ParseraScrapeWithAgentOutput = z.unknown();\n\nexport const parseraScrapeWithAgent = action(\"PARSERA_SCRAPE_WITH_AGENT\", {\n slug: \"parsera-scrape-with-agent\",\n name: \"Scrape With Agent\",\n description: \"Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.\",\n input: ParseraScrapeWithAgentInput,\n output: ParseraScrapeWithAgentOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"scrape-with-agent.mjs","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parsera } from \"../app\";\n\nexport const ParseraScrapeWithAgentInput = z.object({\n url: z.string().describe(\"The webpage URL where data extraction will occur.\"),\n name: z.string().describe(\"Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase').\"),\n cookies: z.array(z.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.\").optional(),\n proxy_country: z.string().describe(\"Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.\").optional(),\n}).describe(\"Request model for POST /v1/scrape endpoint.\");\nexport const ParseraScrapeWithAgentOutput = z.unknown();\n\nexport const parseraScrapeWithAgent: AppAction<\n typeof ParseraScrapeWithAgentInput,\n typeof ParseraScrapeWithAgentOutput,\n typeof parsera.credential\n> = action(\"PARSERA_SCRAPE_WITH_AGENT\", {\n slug: \"parsera-scrape-with-agent\",\n name: \"Scrape With Agent\",\n description: \"Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.\",\n input: ParseraScrapeWithAgentInput,\n output: ParseraScrapeWithAgentOutput,\n});\n"],"mappings":";;;AAcA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhByC,EAAE,OAAO;EAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;EAClK,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;EAC/L,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACzJ,CAAC,CAAC,CAAC,SAAS,6CAWH;CACP,QAX0C,EAAE,QAWpC;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
-
let zod = require("zod");
|
|
3
2
|
//#region src/app.ts
|
|
3
|
+
const credential = { generic_api_key: require("zod").z.string() };
|
|
4
4
|
const parsera = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
5
5
|
slug: "parsera",
|
|
6
6
|
auth: "keystroke",
|
|
7
|
-
credential
|
|
7
|
+
credential
|
|
8
8
|
});
|
|
9
9
|
//#endregion
|
|
10
10
|
exports.parsera = parsera;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const parsera = defineApp({\n slug: \"parsera\",\n auth: \"keystroke\",\n credential
|
|
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 parsera: KeystrokeApp<\"parsera\", typeof credential> = defineApp({\n slug: \"parsera\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAgE;CAC3E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const parsera: KeystrokeApp<"parsera", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { parsera };
|
|
13
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,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
4
|
//#region src/app.d.ts
|
|
4
|
-
declare const
|
|
5
|
-
connectionId: z.ZodString;
|
|
6
|
-
entityId: z.ZodString;
|
|
7
|
-
instanceId: z.ZodString;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
5
|
+
declare const credential: {
|
|
9
6
|
generic_api_key: z.ZodString;
|
|
10
|
-
}
|
|
7
|
+
};
|
|
8
|
+
declare const parsera: KeystrokeApp<"parsera", typeof credential>;
|
|
11
9
|
//#endregion
|
|
12
10
|
export { parsera };
|
|
13
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,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
|
package/dist/app.mjs
CHANGED
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\";\nimport { z } from \"zod\";\n\nexport const parsera = defineApp({\n slug: \"parsera\",\n auth: \"keystroke\",\n credential
|
|
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 parsera: KeystrokeApp<\"parsera\", typeof credential> = defineApp({\n slug: \"parsera\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,UAAsD,UAAU;CAC3E,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { parsera } from "./app.cjs";
|
|
1
2
|
import { parseraCreateScraper } from "./actions/create-scraper.cjs";
|
|
2
3
|
import { parseraDeleteScraper } from "./actions/delete-scraper.cjs";
|
|
3
4
|
import { parseraExtractData } from "./actions/extract-data.cjs";
|
|
@@ -11,6 +12,5 @@ import { parseraParseContent2 } from "./actions/parse-content2.cjs";
|
|
|
11
12
|
import { parseraRemoveAgent } from "./actions/remove-agent.cjs";
|
|
12
13
|
import { parseraRunScraperTemplate } from "./actions/run-scraper-template.cjs";
|
|
13
14
|
import { parseraScrapeWithAgent } from "./actions/scrape-with-agent.cjs";
|
|
14
|
-
import { parsera } from "./app.cjs";
|
|
15
15
|
import { parseraCatalog } from "./catalog.cjs";
|
|
16
16
|
export { parsera, parseraCatalog, parseraCreateScraper, parseraDeleteScraper, parseraExtractData, parseraExtractMarkdown, parseraGetLlmSpecs, parseraGetProxyCountries, parseraHealthCheck, parseraListAgents, parseraListScrapers, parseraParseContent2, parseraRemoveAgent, parseraRunScraperTemplate, parseraScrapeWithAgent };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { parsera } from "./app.mjs";
|
|
1
2
|
import { parseraCreateScraper } from "./actions/create-scraper.mjs";
|
|
2
3
|
import { parseraDeleteScraper } from "./actions/delete-scraper.mjs";
|
|
3
4
|
import { parseraExtractData } from "./actions/extract-data.mjs";
|
|
@@ -11,6 +12,5 @@ import { parseraParseContent2 } from "./actions/parse-content2.mjs";
|
|
|
11
12
|
import { parseraRemoveAgent } from "./actions/remove-agent.mjs";
|
|
12
13
|
import { parseraRunScraperTemplate } from "./actions/run-scraper-template.mjs";
|
|
13
14
|
import { parseraScrapeWithAgent } from "./actions/scrape-with-agent.mjs";
|
|
14
|
-
import { parsera } from "./app.mjs";
|
|
15
15
|
import { parseraCatalog } from "./catalog.mjs";
|
|
16
16
|
export { parsera, parseraCatalog, parseraCreateScraper, parseraDeleteScraper, parseraExtractData, parseraExtractMarkdown, parseraGetLlmSpecs, parseraGetProxyCountries, parseraHealthCheck, parseraListAgents, parseraListScrapers, parseraParseContent2, parseraRemoveAgent, parseraRunScraperTemplate, parseraScrapeWithAgent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/parsera",
|
|
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": {
|