@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
package/dist/action.cjs.map
CHANGED
|
@@ -1 +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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["parsera","executeParseraTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof parsera.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,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.map
CHANGED
|
@@ -1 +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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output:
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { 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<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof parsera.credential> {\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":";;;;;AAOA,SAAgB,OACd,MACA,KAOuD;CACvD,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"}
|
|
@@ -1 +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.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.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.\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"create-scraper.cjs","names":["z","action"],"sources":["../../src/actions/create-scraper.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 ParseraCreateScraperInput = 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.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.\").nullable(),\n}).passthrough().describe(\"Response model for scraper creation operation.\");\n\nexport const parseraCreateScraper: AppAction<\n typeof ParseraCreateScraperInput,\n typeof ParseraCreateScraperOutput,\n typeof parsera.credential\n> = 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":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0HAA0H;AACzL,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,EACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,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/create-scraper.d.ts
|
|
@@ -5,19 +7,7 @@ declare const ParseraCreateScraperInput: z.ZodObject<{}, z.core.$strip>;
|
|
|
5
7
|
declare const ParseraCreateScraperOutput: z.ZodObject<{
|
|
6
8
|
scraper_id: z.ZodNullable<z.ZodString>;
|
|
7
9
|
}, z.core.$loose>;
|
|
8
|
-
declare const parseraCreateScraper:
|
|
9
|
-
connectionId: z.ZodString;
|
|
10
|
-
entityId: z.ZodString;
|
|
11
|
-
instanceId: z.ZodString;
|
|
12
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
-
generic_api_key: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
generic_api_key: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>;
|
|
10
|
+
declare const parseraCreateScraper: AppAction<typeof ParseraCreateScraperInput, typeof ParseraCreateScraperOutput, typeof parsera.credential>;
|
|
21
11
|
//#endregion
|
|
22
12
|
export { parseraCreateScraper };
|
|
23
13
|
//# sourceMappingURL=create-scraper.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-scraper.d.cts","names":[],"sources":["../../src/actions/create-scraper.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-scraper.d.cts","names":[],"sources":["../../src/actions/create-scraper.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,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/create-scraper.d.ts
|
|
@@ -5,19 +7,7 @@ declare const ParseraCreateScraperInput: z.ZodObject<{}, z.core.$strip>;
|
|
|
5
7
|
declare const ParseraCreateScraperOutput: z.ZodObject<{
|
|
6
8
|
scraper_id: z.ZodNullable<z.ZodString>;
|
|
7
9
|
}, z.core.$loose>;
|
|
8
|
-
declare const parseraCreateScraper:
|
|
9
|
-
connectionId: z.ZodString;
|
|
10
|
-
entityId: z.ZodString;
|
|
11
|
-
instanceId: z.ZodString;
|
|
12
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
13
|
-
generic_api_key: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
generic_api_key: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>;
|
|
10
|
+
declare const parseraCreateScraper: AppAction<typeof ParseraCreateScraperInput, typeof ParseraCreateScraperOutput, typeof parsera.credential>;
|
|
21
11
|
//#endregion
|
|
22
12
|
export { parseraCreateScraper };
|
|
23
13
|
//# sourceMappingURL=create-scraper.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-scraper.d.mts","names":[],"sources":["../../src/actions/create-scraper.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-scraper.d.mts","names":[],"sources":["../../src/actions/create-scraper.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +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.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.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.\").nullable(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"create-scraper.mjs","names":[],"sources":["../../src/actions/create-scraper.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 ParseraCreateScraperInput = 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.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.\").nullable(),\n}).passthrough().describe(\"Response model for scraper creation operation.\");\n\nexport const parseraCreateScraper: AppAction<\n typeof ParseraCreateScraperInput,\n typeof ParseraCreateScraperOutput,\n typeof parsera.credential\n> = 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":";;;AAWA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbuC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0HAatD;CACP,QAbwC,EAAE,OAAO,EACjD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS,EACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.object({\n message: z.string().describe(\"Status message confirming the scraper deletion.\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"delete-scraper.cjs","names":["z","action"],"sources":["../../src/actions/delete-scraper.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 ParseraDeleteScraperInput = 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.object({\n message: z.string().describe(\"Status message confirming the scraper deletion.\").nullable().optional(),\n}).passthrough().describe(\"Response model for scraper deletion operation.\");\n\nexport const parseraDeleteScraper: AppAction<\n typeof ParseraDeleteScraperInput,\n typeof ParseraDeleteScraperOutput,\n typeof parsera.credential\n> = 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":";;;;AAMA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,EAC3J,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,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/delete-scraper.d.ts
|
|
@@ -7,21 +9,7 @@ declare const ParseraDeleteScraperInput: z.ZodObject<{
|
|
|
7
9
|
declare const ParseraDeleteScraperOutput: z.ZodObject<{
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
}, z.core.$loose>;
|
|
10
|
-
declare const parseraDeleteScraper:
|
|
11
|
-
scraper_id: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
generic_api_key: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>;
|
|
12
|
+
declare const parseraDeleteScraper: AppAction<typeof ParseraDeleteScraperInput, typeof ParseraDeleteScraperOutput, typeof parsera.credential>;
|
|
25
13
|
//#endregion
|
|
26
14
|
export { parseraDeleteScraper };
|
|
27
15
|
//# sourceMappingURL=delete-scraper.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-scraper.d.cts","names":[],"sources":["../../src/actions/delete-scraper.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-scraper.d.cts","names":[],"sources":["../../src/actions/delete-scraper.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,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/delete-scraper.d.ts
|
|
@@ -7,21 +9,7 @@ declare const ParseraDeleteScraperInput: z.ZodObject<{
|
|
|
7
9
|
declare const ParseraDeleteScraperOutput: z.ZodObject<{
|
|
8
10
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
11
|
}, z.core.$loose>;
|
|
10
|
-
declare const parseraDeleteScraper:
|
|
11
|
-
scraper_id: string;
|
|
12
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
13
|
-
connectionId: z.ZodString;
|
|
14
|
-
entityId: z.ZodString;
|
|
15
|
-
instanceId: z.ZodString;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
generic_api_key: z.ZodString;
|
|
18
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
19
|
-
connectionId: z.ZodString;
|
|
20
|
-
entityId: z.ZodString;
|
|
21
|
-
instanceId: z.ZodString;
|
|
22
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
-
generic_api_key: z.ZodString;
|
|
24
|
-
}, z.core.$strip>>]>;
|
|
12
|
+
declare const parseraDeleteScraper: AppAction<typeof ParseraDeleteScraperInput, typeof ParseraDeleteScraperOutput, typeof parsera.credential>;
|
|
25
13
|
//#endregion
|
|
26
14
|
export { parseraDeleteScraper };
|
|
27
15
|
//# sourceMappingURL=delete-scraper.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-scraper.d.mts","names":[],"sources":["../../src/actions/delete-scraper.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"delete-scraper.d.mts","names":[],"sources":["../../src/actions/delete-scraper.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;cAGzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAI1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +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.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.object({\n message: z.string().describe(\"Status message confirming the scraper deletion.\").nullable().optional(),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"delete-scraper.mjs","names":[],"sources":["../../src/actions/delete-scraper.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 ParseraDeleteScraperInput = 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.object({\n message: z.string().describe(\"Status message confirming the scraper deletion.\").nullable().optional(),\n}).passthrough().describe(\"Response model for scraper deletion operation.\");\n\nexport const parseraDeleteScraper: AppAction<\n typeof ParseraDeleteScraperInput,\n typeof ParseraDeleteScraperOutput,\n typeof parsera.credential\n> = 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":";;;AAaA,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfuC,EAAE,OAAO,EAChD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH,EAC3J,CAAC,CAAC,CAAC,SAAS,8DAaH;CACP,QAbwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;AACV,CAAC"}
|
|
@@ -1 +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.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.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for extraction. Each cookie should be a dictionary with cookie properties.\").optional(),\n attributes: z.record(z.string(), z.unknown()).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.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":"
|
|
1
|
+
{"version":3,"file":"extract-data.cjs","names":["z","action"],"sources":["../../src/actions/extract-data.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 ParseraExtractDataInput = 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.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for extraction. Each cookie should be a dictionary with cookie properties.\").optional(),\n attributes: z.record(z.string(), z.unknown()).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.unknown();\n\nexport const parseraExtractData: AppAction<\n typeof ParseraExtractDataInput,\n typeof ParseraExtractDataOutput,\n typeof parsera.credential\n> = 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":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACtL,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mVAAmV;CAC1Y,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,cAAc,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;AACpP,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,2BAA2BA,IAAAA,EAAE,QAAQ;AAElD,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/extract-data.d.ts
|
|
@@ -13,26 +15,7 @@ declare const ParseraExtractDataInput: z.ZodObject<{
|
|
|
13
15
|
proxy_country: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
14
16
|
}, z.core.$strip>;
|
|
15
17
|
declare const ParseraExtractDataOutput: z.ZodUnknown;
|
|
16
|
-
declare const parseraExtractData:
|
|
17
|
-
url: string;
|
|
18
|
-
attributes: Record<string, unknown>;
|
|
19
|
-
mode?: "standard" | "precision" | undefined;
|
|
20
|
-
prompt?: string | undefined;
|
|
21
|
-
cookies?: Record<string, unknown>[] | undefined;
|
|
22
|
-
proxy_country?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
18
|
+
declare const parseraExtractData: AppAction<typeof ParseraExtractDataInput, typeof ParseraExtractDataOutput, typeof parsera.credential>;
|
|
36
19
|
//#endregion
|
|
37
20
|
export { parseraExtractData };
|
|
38
21
|
//# sourceMappingURL=extract-data.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data.d.cts","names":[],"sources":["../../src/actions/extract-data.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extract-data.d.cts","names":[],"sources":["../../src/actions/extract-data.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQvB,wBAAA,EAAwB,CAAA,CAAA,UAAc;AAAA,cAEtC,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/extract-data.d.ts
|
|
@@ -13,26 +15,7 @@ declare const ParseraExtractDataInput: z.ZodObject<{
|
|
|
13
15
|
proxy_country: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
14
16
|
}, z.core.$strip>;
|
|
15
17
|
declare const ParseraExtractDataOutput: z.ZodUnknown;
|
|
16
|
-
declare const parseraExtractData:
|
|
17
|
-
url: string;
|
|
18
|
-
attributes: Record<string, unknown>;
|
|
19
|
-
mode?: "standard" | "precision" | undefined;
|
|
20
|
-
prompt?: string | undefined;
|
|
21
|
-
cookies?: Record<string, unknown>[] | undefined;
|
|
22
|
-
proxy_country?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
generic_api_key: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
generic_api_key: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
18
|
+
declare const parseraExtractData: AppAction<typeof ParseraExtractDataInput, typeof ParseraExtractDataOutput, typeof parsera.credential>;
|
|
36
19
|
//#endregion
|
|
37
20
|
export { parseraExtractData };
|
|
38
21
|
//# sourceMappingURL=extract-data.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-data.d.mts","names":[],"sources":["../../src/actions/extract-data.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extract-data.d.mts","names":[],"sources":["../../src/actions/extract-data.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQvB,wBAAA,EAAwB,CAAA,CAAA,UAAc;AAAA,cAEtC,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +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.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.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for extraction. Each cookie should be a dictionary with cookie properties.\").optional(),\n attributes: z.record(z.string(), z.unknown()).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.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":"
|
|
1
|
+
{"version":3,"file":"extract-data.mjs","names":[],"sources":["../../src/actions/extract-data.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 ParseraExtractDataInput = 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.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for extraction. Each cookie should be a dictionary with cookie properties.\").optional(),\n attributes: z.record(z.string(), z.unknown()).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.unknown();\n\nexport const parseraExtractData: AppAction<\n typeof ParseraExtractDataInput,\n typeof ParseraExtractDataOutput,\n typeof parsera.credential\n> = 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":";;;AAgBA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBqC,EAAE,OAAO;EAC9C,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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EACtL,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mVAAmV;EAC1Y,eAAe,EAAE,OAAO,CAAC,CAAC,QAAQ,cAAc,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;CACpP,CAAC,CAAC,CAAC,SAAS,8CAWH;CACP,QAXsC,EAAE,QAWhC;AACV,CAAC"}
|
|
@@ -1 +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.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.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').\").nullable(),\n markdown: z.string().describe(\"Extracted markdown content.\").nullable(),\n}).passthrough();\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":"
|
|
1
|
+
{"version":3,"file":"extract-markdown.cjs","names":["z","action"],"sources":["../../src/actions/extract-markdown.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 ParseraExtractMarkdownInput = 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.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').\").nullable(),\n markdown: z.string().describe(\"Extracted markdown content.\").nullable(),\n}).passthrough();\n\nexport const parseraExtractMarkdown: AppAction<\n typeof ParseraExtractMarkdownInput,\n typeof ParseraExtractMarkdownOutput,\n typeof parsera.credential\n> = 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":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,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,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,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,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,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/extract-markdown.d.ts
|
|
@@ -14,26 +16,7 @@ declare const ParseraExtractMarkdownOutput: z.ZodObject<{
|
|
|
14
16
|
status: z.ZodNullable<z.ZodString>;
|
|
15
17
|
markdown: z.ZodNullable<z.ZodString>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const parseraExtractMarkdown:
|
|
18
|
-
url?: string | undefined;
|
|
19
|
-
file?: {
|
|
20
|
-
name: string;
|
|
21
|
-
s3key: string;
|
|
22
|
-
mimetype: string;
|
|
23
|
-
} | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const parseraExtractMarkdown: AppAction<typeof ParseraExtractMarkdownInput, typeof ParseraExtractMarkdownOutput, typeof parsera.credential>;
|
|
37
20
|
//#endregion
|
|
38
21
|
export { parseraExtractMarkdown };
|
|
39
22
|
//# sourceMappingURL=extract-markdown.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-markdown.d.cts","names":[],"sources":["../../src/actions/extract-markdown.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extract-markdown.d.cts","names":[],"sources":["../../src/actions/extract-markdown.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,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/extract-markdown.d.ts
|
|
@@ -14,26 +16,7 @@ declare const ParseraExtractMarkdownOutput: z.ZodObject<{
|
|
|
14
16
|
status: z.ZodNullable<z.ZodString>;
|
|
15
17
|
markdown: z.ZodNullable<z.ZodString>;
|
|
16
18
|
}, z.core.$loose>;
|
|
17
|
-
declare const parseraExtractMarkdown:
|
|
18
|
-
url?: string | undefined;
|
|
19
|
-
file?: {
|
|
20
|
-
name: string;
|
|
21
|
-
s3key: string;
|
|
22
|
-
mimetype: string;
|
|
23
|
-
} | undefined;
|
|
24
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
25
|
-
connectionId: z.ZodString;
|
|
26
|
-
entityId: z.ZodString;
|
|
27
|
-
instanceId: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
generic_api_key: z.ZodString;
|
|
30
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
31
|
-
connectionId: z.ZodString;
|
|
32
|
-
entityId: z.ZodString;
|
|
33
|
-
instanceId: z.ZodString;
|
|
34
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
35
|
-
generic_api_key: z.ZodString;
|
|
36
|
-
}, z.core.$strip>>]>;
|
|
19
|
+
declare const parseraExtractMarkdown: AppAction<typeof ParseraExtractMarkdownInput, typeof ParseraExtractMarkdownOutput, typeof parsera.credential>;
|
|
37
20
|
//#endregion
|
|
38
21
|
export { parseraExtractMarkdown };
|
|
39
22
|
//# sourceMappingURL=extract-markdown.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extract-markdown.d.mts","names":[],"sources":["../../src/actions/extract-markdown.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"extract-markdown.d.mts","names":[],"sources":["../../src/actions/extract-markdown.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAQ3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAM5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
|
|
@@ -1 +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.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.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').\").nullable(),\n markdown: z.string().describe(\"Extracted markdown content.\").nullable(),\n}).passthrough();\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":"
|
|
1
|
+
{"version":3,"file":"extract-markdown.mjs","names":[],"sources":["../../src/actions/extract-markdown.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 ParseraExtractMarkdownInput = 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.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').\").nullable(),\n markdown: z.string().describe(\"Extracted markdown content.\").nullable(),\n}).passthrough();\n\nexport const parseraExtractMarkdown: AppAction<\n typeof ParseraExtractMarkdownInput,\n typeof ParseraExtractMarkdownOutput,\n typeof parsera.credential\n> = 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":";;;AAoBA,MAAa,yBAIT,OAAO,4BAA4B;CACrC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtByC,EAAE,OAAO;EAClD,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,CAeS;CACP,QAf0C,EAAE,OAAO;EACnD,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,CAAC,CAAC,SAAS;EAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACxE,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +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.object({}).describe(\"Request model for GET /v1/llm-specs endpoint.\\n\\nThis endpoint requires no parameters.\");\nconst ParseraGetLlmSpecs_PricingTokenInfoSchema = 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}).passthrough().describe(\"Token pricing information.\");\nconst ParseraGetLlmSpecs_EmbeddingsPricingSchema = z.object({\n batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Embeddings pricing structure.\");\nconst ParseraGetLlmSpecs_TextTokensPricingSchema = z.object({\n batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Text tokens pricing structure.\");\nconst ParseraGetLlmSpecs_PricingInfoSchema = z.object({\n embeddings: ParseraGetLlmSpecs_EmbeddingsPricingSchema.nullable().optional(),\n text_tokens: ParseraGetLlmSpecs_TextTokensPricingSchema.nullable().optional(),\n}).passthrough().describe(\"Pricing information for a model.\");\nconst ParseraGetLlmSpecs_ModalitiesInfoSchema = 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}).passthrough().describe(\"Supported input/output modalities for a model.\");\nconst ParseraGetLlmSpecs_LLMSpecSchema = z.object({\n id: z.string().describe(\"Unique model identifier used for API calls.\").nullable(),\n name: z.string().describe(\"Human-readable model identifier.\").nullable().optional(),\n family: z.string().describe(\"Model family classification.\").nullable(),\n pricing: ParseraGetLlmSpecs_PricingInfoSchema.nullable().optional(),\n provider: z.string().describe(\"Service provider name (e.g., 'openai', 'anthropic', 'gemini', 'deepseek').\").nullable(),\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}).passthrough().describe(\"Represents a single LLM model specification.\");\nexport const ParseraGetLlmSpecsOutput = z.object({\n models: z.array(ParseraGetLlmSpecs_LLMSpecSchema).describe(\"Array of LLM model specifications with capabilities, pricing, and context windows.\"),\n}).passthrough().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":"
|
|
1
|
+
{"version":3,"file":"get-llm-specs.cjs","names":["z","action"],"sources":["../../src/actions/get-llm-specs.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 ParseraGetLlmSpecsInput = z.object({}).describe(\"Request model for GET /v1/llm-specs endpoint.\\n\\nThis endpoint requires no parameters.\");\nconst ParseraGetLlmSpecs_PricingTokenInfoSchema = 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}).passthrough().describe(\"Token pricing information.\");\nconst ParseraGetLlmSpecs_EmbeddingsPricingSchema = z.object({\n batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Embeddings pricing structure.\");\nconst ParseraGetLlmSpecs_TextTokensPricingSchema = z.object({\n batch: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n standard: ParseraGetLlmSpecs_PricingTokenInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Text tokens pricing structure.\");\nconst ParseraGetLlmSpecs_PricingInfoSchema = z.object({\n embeddings: ParseraGetLlmSpecs_EmbeddingsPricingSchema.nullable().optional(),\n text_tokens: ParseraGetLlmSpecs_TextTokensPricingSchema.nullable().optional(),\n}).passthrough().describe(\"Pricing information for a model.\");\nconst ParseraGetLlmSpecs_ModalitiesInfoSchema = 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}).passthrough().describe(\"Supported input/output modalities for a model.\");\nconst ParseraGetLlmSpecs_LLMSpecSchema = z.object({\n id: z.string().describe(\"Unique model identifier used for API calls.\").nullable(),\n name: z.string().describe(\"Human-readable model identifier.\").nullable().optional(),\n family: z.string().describe(\"Model family classification.\").nullable(),\n pricing: ParseraGetLlmSpecs_PricingInfoSchema.nullable().optional(),\n provider: z.string().describe(\"Service provider name (e.g., 'openai', 'anthropic', 'gemini', 'deepseek').\").nullable(),\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}).passthrough().describe(\"Represents a single LLM model specification.\");\nexport const ParseraGetLlmSpecsOutput = z.object({\n models: z.array(ParseraGetLlmSpecs_LLMSpecSchema).describe(\"Array of LLM model specifications with capabilities, pricing, and context windows.\"),\n}).passthrough().describe(\"Response model containing list of LLM specifications.\");\n\nexport const parseraGetLlmSpecs: AppAction<\n typeof ParseraGetLlmSpecsInput,\n typeof ParseraGetLlmSpecsOutput,\n typeof parsera.credential\n> = 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":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF;AACrJ,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,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,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrE,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B;AACzD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACrE,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAC1D,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,YAAY,2CAA2C,SAAS,CAAC,CAAC,SAAS;CAC3E,aAAa,2CAA2C,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,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,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACrE,SAAS,qCAAqC,SAAS,CAAC,CAAC,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACrH,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,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,EAC/C,QAAQA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,oFAAoF,EACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,qBAITC,eAAAA,OAAO,yBAAyB;CAClC,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/get-llm-specs.d.ts
|
|
@@ -43,19 +45,7 @@ declare const ParseraGetLlmSpecsOutput: z.ZodObject<{
|
|
|
43
45
|
max_output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
46
|
}, z.core.$loose>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const parseraGetLlmSpecs:
|
|
47
|
-
connectionId: z.ZodString;
|
|
48
|
-
entityId: z.ZodString;
|
|
49
|
-
instanceId: z.ZodString;
|
|
50
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
-
generic_api_key: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
53
|
-
connectionId: z.ZodString;
|
|
54
|
-
entityId: z.ZodString;
|
|
55
|
-
instanceId: z.ZodString;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
generic_api_key: z.ZodString;
|
|
58
|
-
}, z.core.$strip>>]>;
|
|
48
|
+
declare const parseraGetLlmSpecs: AppAction<typeof ParseraGetLlmSpecsInput, typeof ParseraGetLlmSpecsOutput, typeof parsera.credential>;
|
|
59
49
|
//#endregion
|
|
60
50
|
export { parseraGetLlmSpecs };
|
|
61
51
|
//# sourceMappingURL=get-llm-specs.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-llm-specs.d.cts","names":[],"sources":["../../src/actions/get-llm-specs.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-llm-specs.d.cts","names":[],"sources":["../../src/actions/get-llm-specs.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAiCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,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/get-llm-specs.d.ts
|
|
@@ -43,19 +45,7 @@ declare const ParseraGetLlmSpecsOutput: z.ZodObject<{
|
|
|
43
45
|
max_output_tokens: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
46
|
}, z.core.$loose>>;
|
|
45
47
|
}, z.core.$loose>;
|
|
46
|
-
declare const parseraGetLlmSpecs:
|
|
47
|
-
connectionId: z.ZodString;
|
|
48
|
-
entityId: z.ZodString;
|
|
49
|
-
instanceId: z.ZodString;
|
|
50
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
-
generic_api_key: z.ZodString;
|
|
52
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"parsera", z.ZodObject<{
|
|
53
|
-
connectionId: z.ZodString;
|
|
54
|
-
entityId: z.ZodString;
|
|
55
|
-
instanceId: z.ZodString;
|
|
56
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
-
generic_api_key: z.ZodString;
|
|
58
|
-
}, z.core.$strip>>]>;
|
|
48
|
+
declare const parseraGetLlmSpecs: AppAction<typeof ParseraGetLlmSpecsInput, typeof ParseraGetLlmSpecsOutput, typeof parsera.credential>;
|
|
59
49
|
//#endregion
|
|
60
50
|
export { parseraGetLlmSpecs };
|
|
61
51
|
//# sourceMappingURL=get-llm-specs.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-llm-specs.d.mts","names":[],"sources":["../../src/actions/get-llm-specs.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"get-llm-specs.d.mts","names":[],"sources":["../../src/actions/get-llm-specs.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAiCvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAIxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,OAAA,CAAQ,UAAA"}
|