@keystrokehq/parsera 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-scraper.cjs +1 -1
  4. package/dist/actions/create-scraper.cjs.map +1 -1
  5. package/dist/actions/create-scraper.d.cts +5 -3
  6. package/dist/actions/create-scraper.d.cts.map +1 -1
  7. package/dist/actions/create-scraper.d.mts +5 -3
  8. package/dist/actions/create-scraper.d.mts.map +1 -1
  9. package/dist/actions/create-scraper.mjs +1 -1
  10. package/dist/actions/create-scraper.mjs.map +1 -1
  11. package/dist/actions/delete-scraper.cjs +1 -1
  12. package/dist/actions/delete-scraper.cjs.map +1 -1
  13. package/dist/actions/delete-scraper.d.cts +9 -3
  14. package/dist/actions/delete-scraper.d.cts.map +1 -1
  15. package/dist/actions/delete-scraper.d.mts +9 -3
  16. package/dist/actions/delete-scraper.d.mts.map +1 -1
  17. package/dist/actions/delete-scraper.mjs +1 -1
  18. package/dist/actions/delete-scraper.mjs.map +1 -1
  19. package/dist/actions/extract-data.cjs +2 -2
  20. package/dist/actions/extract-data.cjs.map +1 -1
  21. package/dist/actions/extract-data.d.cts +20 -3
  22. package/dist/actions/extract-data.d.cts.map +1 -1
  23. package/dist/actions/extract-data.d.mts +20 -3
  24. package/dist/actions/extract-data.d.mts.map +1 -1
  25. package/dist/actions/extract-data.mjs +2 -2
  26. package/dist/actions/extract-data.mjs.map +1 -1
  27. package/dist/actions/extract-markdown.cjs +3 -3
  28. package/dist/actions/extract-markdown.cjs.map +1 -1
  29. package/dist/actions/extract-markdown.d.cts +21 -3
  30. package/dist/actions/extract-markdown.d.cts.map +1 -1
  31. package/dist/actions/extract-markdown.d.mts +21 -3
  32. package/dist/actions/extract-markdown.d.mts.map +1 -1
  33. package/dist/actions/extract-markdown.mjs +3 -3
  34. package/dist/actions/extract-markdown.mjs.map +1 -1
  35. package/dist/actions/get-llm-specs.cjs +10 -10
  36. package/dist/actions/get-llm-specs.cjs.map +1 -1
  37. package/dist/actions/get-llm-specs.d.cts +43 -3
  38. package/dist/actions/get-llm-specs.d.cts.map +1 -1
  39. package/dist/actions/get-llm-specs.d.mts +43 -3
  40. package/dist/actions/get-llm-specs.d.mts.map +1 -1
  41. package/dist/actions/get-llm-specs.mjs +10 -10
  42. package/dist/actions/get-llm-specs.mjs.map +1 -1
  43. package/dist/actions/get-proxy-countries.cjs +4 -4
  44. package/dist/actions/get-proxy-countries.cjs.map +1 -1
  45. package/dist/actions/get-proxy-countries.d.cts +8 -3
  46. package/dist/actions/get-proxy-countries.d.cts.map +1 -1
  47. package/dist/actions/get-proxy-countries.d.mts +8 -3
  48. package/dist/actions/get-proxy-countries.d.mts.map +1 -1
  49. package/dist/actions/get-proxy-countries.mjs +4 -4
  50. package/dist/actions/get-proxy-countries.mjs.map +1 -1
  51. package/dist/actions/health-check.cjs +1 -1
  52. package/dist/actions/health-check.cjs.map +1 -1
  53. package/dist/actions/health-check.d.cts +5 -3
  54. package/dist/actions/health-check.d.cts.map +1 -1
  55. package/dist/actions/health-check.d.mts +5 -3
  56. package/dist/actions/health-check.d.mts.map +1 -1
  57. package/dist/actions/health-check.mjs +1 -1
  58. package/dist/actions/health-check.mjs.map +1 -1
  59. package/dist/actions/list-agents.cjs +4 -4
  60. package/dist/actions/list-agents.cjs.map +1 -1
  61. package/dist/actions/list-agents.d.cts +8 -3
  62. package/dist/actions/list-agents.d.cts.map +1 -1
  63. package/dist/actions/list-agents.d.mts +8 -3
  64. package/dist/actions/list-agents.d.mts.map +1 -1
  65. package/dist/actions/list-agents.mjs +4 -4
  66. package/dist/actions/list-agents.mjs.map +1 -1
  67. package/dist/actions/list-scrapers.cjs +4 -4
  68. package/dist/actions/list-scrapers.cjs.map +1 -1
  69. package/dist/actions/list-scrapers.d.cts +8 -3
  70. package/dist/actions/list-scrapers.d.cts.map +1 -1
  71. package/dist/actions/list-scrapers.d.mts +8 -3
  72. package/dist/actions/list-scrapers.d.mts.map +1 -1
  73. package/dist/actions/list-scrapers.mjs +4 -4
  74. package/dist/actions/list-scrapers.mjs.map +1 -1
  75. package/dist/actions/parse-content2.cjs +1 -1
  76. package/dist/actions/parse-content2.cjs.map +1 -1
  77. package/dist/actions/parse-content2.d.cts +38 -3
  78. package/dist/actions/parse-content2.d.cts.map +1 -1
  79. package/dist/actions/parse-content2.d.mts +38 -3
  80. package/dist/actions/parse-content2.d.mts.map +1 -1
  81. package/dist/actions/parse-content2.mjs +1 -1
  82. package/dist/actions/parse-content2.mjs.map +1 -1
  83. package/dist/actions/remove-agent.cjs +1 -1
  84. package/dist/actions/remove-agent.cjs.map +1 -1
  85. package/dist/actions/remove-agent.d.cts +10 -3
  86. package/dist/actions/remove-agent.d.cts.map +1 -1
  87. package/dist/actions/remove-agent.d.mts +10 -3
  88. package/dist/actions/remove-agent.d.mts.map +1 -1
  89. package/dist/actions/remove-agent.mjs +1 -1
  90. package/dist/actions/remove-agent.mjs.map +1 -1
  91. package/dist/actions/run-scraper-template.cjs +1 -1
  92. package/dist/actions/run-scraper-template.cjs.map +1 -1
  93. package/dist/actions/run-scraper-template.d.cts +22 -3
  94. package/dist/actions/run-scraper-template.d.cts.map +1 -1
  95. package/dist/actions/run-scraper-template.d.mts +22 -3
  96. package/dist/actions/run-scraper-template.d.mts.map +1 -1
  97. package/dist/actions/run-scraper-template.mjs +1 -1
  98. package/dist/actions/run-scraper-template.mjs.map +1 -1
  99. package/dist/actions/scrape-with-agent.cjs.map +1 -1
  100. package/dist/actions/scrape-with-agent.d.cts +13 -3
  101. package/dist/actions/scrape-with-agent.d.cts.map +1 -1
  102. package/dist/actions/scrape-with-agent.d.mts +13 -3
  103. package/dist/actions/scrape-with-agent.d.mts.map +1 -1
  104. package/dist/actions/scrape-with-agent.mjs.map +1 -1
  105. package/dist/catalog.cjs +7 -1
  106. package/dist/catalog.cjs.map +1 -1
  107. package/dist/catalog.d.cts +8 -0
  108. package/dist/catalog.d.mts +8 -0
  109. package/dist/catalog.mjs +7 -1
  110. package/dist/catalog.mjs.map +1 -1
  111. package/package.json +2 -2
@@ -1,9 +1,14 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-scrapers.d.ts
4
- declare const ParseraListScrapersInput: z.ZodTypeAny;
5
- declare const ParseraListScrapersOutput: z.ZodTypeAny;
6
- declare const parseraListScrapers: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseraListScrapersInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ParseraListScrapersOutput: z.ZodObject<{
6
+ scrapers: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ }, z.core.$loose>>;
10
+ }, z.core.$loose>;
11
+ declare const parseraListScrapers: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
12
  //#endregion
8
13
  export { parseraListScrapers };
9
14
  //# sourceMappingURL=list-scrapers.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-scrapers.d.mts","names":[],"sources":["../../src/actions/list-scrapers.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAA2H;AAAA,cAKvJ,yBAAA,EAA2B,CAAA,CAAE,UAE8B;AAAA,cAE3D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-scrapers.d.mts","names":[],"sources":["../../src/actions/list-scrapers.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAKxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,15 +3,15 @@ import { z } from "zod";
3
3
  //#region src/actions/list-scrapers.ts
4
4
  const ParseraListScrapersInput = z.object({}).describe("Request model for GET /v1/scrapers endpoint.\n\nThis endpoint requires no parameters.");
5
5
  const ParseraListScrapers_ScraperItemSchema = z.object({
6
- id: z.string().describe("Unique identifier. Old scrapers have IDs prefixed with 'scraper:' to distinguish them from templates."),
7
- name: z.string().describe("Display name of the template or scraper.")
8
- }).describe("Represents a single template or scraper item.");
6
+ id: z.string().describe("Unique identifier. Old scrapers have IDs prefixed with 'scraper:' to distinguish them from templates.").nullable(),
7
+ name: z.string().describe("Display name of the template or scraper.").nullable()
8
+ }).passthrough().describe("Represents a single template or scraper item.");
9
9
  const parseraListScrapers = action("PARSERA_LIST_SCRAPERS", {
10
10
  slug: "parsera-list-scrapers",
11
11
  name: "List Scrapers",
12
12
  description: "Tool to list all templates and old scrapers for the authenticated user. Use when you need to retrieve available scraper configurations.",
13
13
  input: ParseraListScrapersInput,
14
- output: z.object({ scrapers: z.array(ParseraListScrapers_ScraperItemSchema).describe("Array of templates and old scrapers with their names and IDs.") }).describe("Response model containing list of templates and scrapers.")
14
+ output: z.object({ scrapers: z.array(ParseraListScrapers_ScraperItemSchema).describe("Array of templates and old scrapers with their names and IDs.") }).passthrough().describe("Response model containing list of templates and scrapers.")
15
15
  });
16
16
  //#endregion
17
17
  export { parseraListScrapers };
@@ -1 +1 @@
1
- {"version":3,"file":"list-scrapers.mjs","names":[],"sources":["../../src/actions/list-scrapers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraListScrapersInput: z.ZodTypeAny = z.object({}).describe(\"Request model for GET /v1/scrapers endpoint.\\n\\nThis endpoint requires no parameters.\");\nconst ParseraListScrapers_ScraperItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier. Old scrapers have IDs prefixed with 'scraper:' to distinguish them from templates.\"),\n name: z.string().describe(\"Display name of the template or scraper.\"),\n}).describe(\"Represents a single template or scraper item.\");\nexport const ParseraListScrapersOutput: z.ZodTypeAny = z.object({\n scrapers: z.array(ParseraListScrapers_ScraperItemSchema).describe(\"Array of templates and old scrapers with their names and IDs.\"),\n}).describe(\"Response model containing list of templates and scrapers.\");\n\nexport const parseraListScrapers = action(\"PARSERA_LIST_SCRAPERS\", {\n slug: \"parsera-list-scrapers\",\n name: \"List Scrapers\",\n description: \"Tool to list all templates and old scrapers for the authenticated user. Use when you need to retrieve available scraper configurations.\",\n input: ParseraListScrapersInput,\n output: ParseraListScrapersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACnK,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;CAC/H,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AACtE,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAK3D,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,UAAU,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,+DAA+D,EACnI,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-scrapers.mjs","names":[],"sources":["../../src/actions/list-scrapers.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraListScrapersInput = z.object({}).describe(\"Request model for GET /v1/scrapers endpoint.\\n\\nThis endpoint requires no parameters.\");\nconst ParseraListScrapers_ScraperItemSchema = z.object({\n id: z.string().describe(\"Unique identifier. Old scrapers have IDs prefixed with 'scraper:' to distinguish them from templates.\").nullable(),\n name: z.string().describe(\"Display name of the template or scraper.\").nullable(),\n}).passthrough().describe(\"Represents a single template or scraper item.\");\nexport const ParseraListScrapersOutput = z.object({\n scrapers: z.array(ParseraListScrapers_ScraperItemSchema).describe(\"Array of templates and old scrapers with their names and IDs.\"),\n}).passthrough().describe(\"Response model containing list of templates and scrapers.\");\n\nexport const parseraListScrapers = action(\"PARSERA_LIST_SCRAPERS\", {\n slug: \"parsera-list-scrapers\",\n name: \"List Scrapers\",\n description: \"Tool to list all templates and old scrapers for the authenticated user. Use when you need to retrieve available scraper configurations.\",\n input: ParseraListScrapersInput,\n output: ParseraListScrapersOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;AACrJ,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC1I,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAKzE,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,UAAU,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,+DAA+D,EACnI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
@@ -22,7 +22,7 @@ const ParseraParseContent2Input = zod.z.object({
22
22
  "any"
23
23
  ]).nullable().optional(),
24
24
  description: zod.z.string().nullable().optional()
25
- }).describe("Attribute object with name and description fields."))]),
25
+ }).passthrough().describe("Attribute object with name and description fields."))]),
26
26
  enable_pagination: zod.z.boolean().default(false).describe("Enable multi-page parsing. When enabled, the parser will attempt to extract data across multiple pages.").optional()
27
27
  });
28
28
  const ParseraParseContent2Output = zod.z.unknown();
@@ -1 +1 @@
1
- {"version":3,"file":"parse-content2.cjs","names":["z","action"],"sources":["../../src/actions/parse-content2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraParseContent2Input: z.ZodTypeAny = z.object({\n mode: z.enum([\"standard\", \"precision\", \"code\"]).default(\"standard\").describe(\"Extraction mode selection. 'standard' for regular extraction, 'precision' for enhanced data discovery in HTML, 'code' for code extraction.\").optional(),\n prompt: z.string().default(\"\").describe(\"Additional instructions or context for the extraction process.\").optional(),\n content: z.string().describe(\"Raw HTML or plain text content to parse and extract data from.\"),\n max_pages: z.number().int().default(2).describe(\"Maximum number of pages to parse when pagination is enabled.\").optional(),\n attributes: z.union([z.record(z.string(), z.unknown()), z.array(z.object({\n name: z.string().describe(\"Name of the attribute to extract.\"),\n type: z.enum([\"string\", \"integer\", \"number\", \"bool\", \"list\", \"object\", \"any\"]).nullable().optional(),\n description: z.string().nullable().optional(),\n}).describe(\"Attribute object with name and description fields.\"))]),\n enable_pagination: z.boolean().default(false).describe(\"Enable multi-page parsing. When enabled, the parser will attempt to extract data across multiple pages.\").optional(),\n});\nexport const ParseraParseContent2Output: z.ZodTypeAny = z.unknown();\n\nexport const parseraParseContent2 = action(\"PARSERA_PARSE_CONTENT2\", {\n slug: \"parsera-parse-content2\",\n name: \"Parse Content (Enhanced)\",\n description: \"Tool to extract structured data from raw HTML or text content using AI with advanced options. Use when you have content already loaded and need to extract specific fields with pagination or different extraction modes.\",\n input: ParseraParseContent2Input,\n output: ParseraParseContent2Output,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAa;CAAM,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACpO,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC7D,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAW;GAAU;GAAQ;GAAQ;GAAU;EAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9C,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC;CACjE,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;AAC7K,CAAC;AACD,MAAa,6BAA2CA,IAAAA,EAAE,QAAQ;AAElE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"parse-content2.cjs","names":["z","action"],"sources":["../../src/actions/parse-content2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraParseContent2Input = z.object({\n mode: z.enum([\"standard\", \"precision\", \"code\"]).default(\"standard\").describe(\"Extraction mode selection. 'standard' for regular extraction, 'precision' for enhanced data discovery in HTML, 'code' for code extraction.\").optional(),\n prompt: z.string().default(\"\").describe(\"Additional instructions or context for the extraction process.\").optional(),\n content: z.string().describe(\"Raw HTML or plain text content to parse and extract data from.\"),\n max_pages: z.number().int().default(2).describe(\"Maximum number of pages to parse when pagination is enabled.\").optional(),\n attributes: z.union([z.record(z.string(), z.unknown()), z.array(z.object({\n name: z.string().describe(\"Name of the attribute to extract.\"),\n type: z.enum([\"string\", \"integer\", \"number\", \"bool\", \"list\", \"object\", \"any\"]).nullable().optional(),\n description: z.string().nullable().optional(),\n}).passthrough().describe(\"Attribute object with name and description fields.\"))]),\n enable_pagination: z.boolean().default(false).describe(\"Enable multi-page parsing. When enabled, the parser will attempt to extract data across multiple pages.\").optional(),\n});\nexport const ParseraParseContent2Output = z.unknown();\n\nexport const parseraParseContent2 = action(\"PARSERA_PARSE_CONTENT2\", {\n slug: \"parsera-parse-content2\",\n name: \"Parse Content (Enhanced)\",\n description: \"Tool to extract structured data from raw HTML or text content using AI with advanced options. Use when you have content already loaded and need to extract specific fields with pagination or different extraction modes.\",\n input: ParseraParseContent2Input,\n output: ParseraParseContent2Output,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAa;CAAM,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;CACpO,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACzH,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC7D,MAAMA,IAAAA,EAAE,KAAK;GAAC;GAAU;GAAW;GAAU;GAAQ;GAAQ;GAAU;EAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC;CAC/E,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;AAC7K,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,QAAQ;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,44 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/parse-content2.d.ts
4
- declare const ParseraParseContent2Input: z.ZodTypeAny;
5
- declare const ParseraParseContent2Output: z.ZodTypeAny;
6
- declare const parseraParseContent2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseraParseContent2Input: z.ZodObject<{
5
+ mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
6
+ code: "code";
7
+ standard: "standard";
8
+ precision: "precision";
9
+ }>>>;
10
+ prompt: z.ZodOptional<z.ZodDefault<z.ZodString>>;
11
+ content: z.ZodString;
12
+ max_pages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
+ attributes: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodObject<{
14
+ name: z.ZodString;
15
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
16
+ string: "string";
17
+ number: "number";
18
+ object: "object";
19
+ any: "any";
20
+ integer: "integer";
21
+ bool: "bool";
22
+ list: "list";
23
+ }>>>;
24
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>>]>;
26
+ enable_pagination: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
27
+ }, z.core.$strip>;
28
+ declare const ParseraParseContent2Output: z.ZodUnknown;
29
+ declare const parseraParseContent2: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ content: string;
31
+ attributes: Record<string, unknown> | {
32
+ [x: string]: unknown;
33
+ name: string;
34
+ type?: "string" | "number" | "object" | "any" | "integer" | "bool" | "list" | null | undefined;
35
+ description?: string | null | undefined;
36
+ }[];
37
+ mode?: "code" | "standard" | "precision" | undefined;
38
+ prompt?: string | undefined;
39
+ max_pages?: number | undefined;
40
+ enable_pagination?: boolean | undefined;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
42
  //#endregion
8
43
  export { parseraParseContent2 };
9
44
  //# sourceMappingURL=parse-content2.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-content2.d.cts","names":[],"sources":["../../src/actions/parse-content2.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAWxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAAwB;AAAA,cAEtD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"parse-content2.d.cts","names":[],"sources":["../../src/actions/parse-content2.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAYzB,0BAAA,EAA0B,CAAA,CAAA,UAAc;AAAA,cAExC,oBAAA,gCAAoB,wBAAA;;cAM/B,MAAA;IAAA"}
@@ -1,9 +1,44 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/parse-content2.d.ts
4
- declare const ParseraParseContent2Input: z.ZodTypeAny;
5
- declare const ParseraParseContent2Output: z.ZodTypeAny;
6
- declare const parseraParseContent2: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseraParseContent2Input: z.ZodObject<{
5
+ mode: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
6
+ code: "code";
7
+ standard: "standard";
8
+ precision: "precision";
9
+ }>>>;
10
+ prompt: z.ZodOptional<z.ZodDefault<z.ZodString>>;
11
+ content: z.ZodString;
12
+ max_pages: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
13
+ attributes: z.ZodUnion<readonly [z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodObject<{
14
+ name: z.ZodString;
15
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
16
+ string: "string";
17
+ number: "number";
18
+ object: "object";
19
+ any: "any";
20
+ integer: "integer";
21
+ bool: "bool";
22
+ list: "list";
23
+ }>>>;
24
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>>]>;
26
+ enable_pagination: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
27
+ }, z.core.$strip>;
28
+ declare const ParseraParseContent2Output: z.ZodUnknown;
29
+ declare const parseraParseContent2: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ content: string;
31
+ attributes: Record<string, unknown> | {
32
+ [x: string]: unknown;
33
+ name: string;
34
+ type?: "string" | "number" | "object" | "any" | "integer" | "bool" | "list" | null | undefined;
35
+ description?: string | null | undefined;
36
+ }[];
37
+ mode?: "code" | "standard" | "precision" | undefined;
38
+ prompt?: string | undefined;
39
+ max_pages?: number | undefined;
40
+ enable_pagination?: boolean | undefined;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
42
  //#endregion
8
43
  export { parseraParseContent2 };
9
44
  //# sourceMappingURL=parse-content2.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parse-content2.d.mts","names":[],"sources":["../../src/actions/parse-content2.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAWxC;AAAA,cACW,0BAAA,EAA4B,CAAA,CAAE,UAAwB;AAAA,cAEtD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"parse-content2.d.mts","names":[],"sources":["../../src/actions/parse-content2.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAYzB,0BAAA,EAA0B,CAAA,CAAA,UAAc;AAAA,cAExC,oBAAA,gCAAoB,wBAAA;;cAM/B,MAAA;IAAA"}
@@ -25,7 +25,7 @@ const parseraParseContent2 = action("PARSERA_PARSE_CONTENT2", {
25
25
  "any"
26
26
  ]).nullable().optional(),
27
27
  description: z.string().nullable().optional()
28
- }).describe("Attribute object with name and description fields."))]),
28
+ }).passthrough().describe("Attribute object with name and description fields."))]),
29
29
  enable_pagination: z.boolean().default(false).describe("Enable multi-page parsing. When enabled, the parser will attempt to extract data across multiple pages.").optional()
30
30
  }),
31
31
  output: z.unknown()
@@ -1 +1 @@
1
- {"version":3,"file":"parse-content2.mjs","names":[],"sources":["../../src/actions/parse-content2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraParseContent2Input: z.ZodTypeAny = z.object({\n mode: z.enum([\"standard\", \"precision\", \"code\"]).default(\"standard\").describe(\"Extraction mode selection. 'standard' for regular extraction, 'precision' for enhanced data discovery in HTML, 'code' for code extraction.\").optional(),\n prompt: z.string().default(\"\").describe(\"Additional instructions or context for the extraction process.\").optional(),\n content: z.string().describe(\"Raw HTML or plain text content to parse and extract data from.\"),\n max_pages: z.number().int().default(2).describe(\"Maximum number of pages to parse when pagination is enabled.\").optional(),\n attributes: z.union([z.record(z.string(), z.unknown()), z.array(z.object({\n name: z.string().describe(\"Name of the attribute to extract.\"),\n type: z.enum([\"string\", \"integer\", \"number\", \"bool\", \"list\", \"object\", \"any\"]).nullable().optional(),\n description: z.string().nullable().optional(),\n}).describe(\"Attribute object with name and description fields.\"))]),\n enable_pagination: z.boolean().default(false).describe(\"Enable multi-page parsing. When enabled, the parser will attempt to extract data across multiple pages.\").optional(),\n});\nexport const ParseraParseContent2Output: z.ZodTypeAny = z.unknown();\n\nexport const parseraParseContent2 = action(\"PARSERA_PARSE_CONTENT2\", {\n slug: \"parsera-parse-content2\",\n name: \"Parse Content (Enhanced)\",\n description: \"Tool to extract structured data from raw HTML or text content using AI with advanced options. Use when you have content already loaded and need to extract specific fields with pagination or different extraction modes.\",\n input: ParseraParseContent2Input,\n output: ParseraParseContent2Output,\n});\n"],"mappings":";;AAkBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBqD,EAAE,OAAO;EAC9D,MAAM,EAAE,KAAK;GAAC;GAAY;GAAa;EAAM,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;EACpO,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAC7F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACzH,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO;GACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;GAC7D,MAAM,EAAE,KAAK;IAAC;IAAU;IAAW;IAAU;IAAQ;IAAQ;IAAU;GAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9C,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC;EACjE,mBAAmB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC7K,CAOS;CACP,QAPsD,EAAE,QAOhD;AACV,CAAC"}
1
+ {"version":3,"file":"parse-content2.mjs","names":[],"sources":["../../src/actions/parse-content2.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraParseContent2Input = z.object({\n mode: z.enum([\"standard\", \"precision\", \"code\"]).default(\"standard\").describe(\"Extraction mode selection. 'standard' for regular extraction, 'precision' for enhanced data discovery in HTML, 'code' for code extraction.\").optional(),\n prompt: z.string().default(\"\").describe(\"Additional instructions or context for the extraction process.\").optional(),\n content: z.string().describe(\"Raw HTML or plain text content to parse and extract data from.\"),\n max_pages: z.number().int().default(2).describe(\"Maximum number of pages to parse when pagination is enabled.\").optional(),\n attributes: z.union([z.record(z.string(), z.unknown()), z.array(z.object({\n name: z.string().describe(\"Name of the attribute to extract.\"),\n type: z.enum([\"string\", \"integer\", \"number\", \"bool\", \"list\", \"object\", \"any\"]).nullable().optional(),\n description: z.string().nullable().optional(),\n}).passthrough().describe(\"Attribute object with name and description fields.\"))]),\n enable_pagination: z.boolean().default(false).describe(\"Enable multi-page parsing. When enabled, the parser will attempt to extract data across multiple pages.\").optional(),\n});\nexport const ParseraParseContent2Output = z.unknown();\n\nexport const parseraParseContent2 = action(\"PARSERA_PARSE_CONTENT2\", {\n slug: \"parsera-parse-content2\",\n name: \"Parse Content (Enhanced)\",\n description: \"Tool to extract structured data from raw HTML or text content using AI with advanced options. Use when you have content already loaded and need to extract specific fields with pagination or different extraction modes.\",\n input: ParseraParseContent2Input,\n output: ParseraParseContent2Output,\n});\n"],"mappings":";;AAkBA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBuC,EAAE,OAAO;EAChD,MAAM,EAAE,KAAK;GAAC;GAAY;GAAa;EAAM,CAAC,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,4IAA4I,CAAC,CAAC,SAAS;EACpO,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE;EAC7F,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;EACzH,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO;GACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;GAC7D,MAAM,EAAE,KAAK;IAAC;IAAU;IAAW;IAAU;IAAQ;IAAQ;IAAU;GAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;GACnG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,CAAC;EAC/E,mBAAmB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CAC7K,CAOS;CACP,QAPwC,EAAE,QAOlC;AACV,CAAC"}
@@ -5,7 +5,7 @@ const ParseraRemoveAgentInput = zod.z.object({ name: zod.z.string().describe("Na
5
5
  const ParseraRemoveAgentOutput = zod.z.object({
6
6
  message: zod.z.string().describe("Status message or additional information about the removal operation.").nullable().optional(),
7
7
  success: zod.z.boolean().describe("Indicates whether the agent was successfully removed.").nullable().optional()
8
- }).describe("Response model for agent removal operation.");
8
+ }).passthrough().describe("Response model for agent removal operation.");
9
9
  const parseraRemoveAgent = require_action.action("PARSERA_REMOVE_AGENT", {
10
10
  slug: "parsera-remove-agent",
11
11
  name: "Remove Agent",
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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}).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":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,EAC1H,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,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,SAAS,6CAA6C;AAEzD,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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":";;;AAIA,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,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/remove-agent.d.ts
4
- declare const ParseraRemoveAgentInput: z.ZodTypeAny;
5
- declare const ParseraRemoveAgentOutput: z.ZodTypeAny;
6
- declare const parseraRemoveAgent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseraRemoveAgentInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ParseraRemoveAgentOutput: z.ZodObject<{
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
10
+ }, z.core.$loose>;
11
+ declare const parseraRemoveAgent: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ name: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { parseraRemoveAgent };
9
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":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEkB;AAAA,cAC7C,wBAAA,EAA0B,CAAA,CAAE,UAGiB;AAAA,cAE7C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"remove-agent.d.cts","names":[],"sources":["../../src/actions/remove-agent.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
@@ -1,9 +1,16 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/remove-agent.d.ts
4
- declare const ParseraRemoveAgentInput: z.ZodTypeAny;
5
- declare const ParseraRemoveAgentOutput: z.ZodTypeAny;
6
- declare const parseraRemoveAgent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseraRemoveAgentInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ParseraRemoveAgentOutput: z.ZodObject<{
8
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ success: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
10
+ }, z.core.$loose>;
11
+ declare const parseraRemoveAgent: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ name: string;
13
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
14
  //#endregion
8
15
  export { parseraRemoveAgent };
9
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":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEkB;AAAA,cAC7C,wBAAA,EAA0B,CAAA,CAAE,UAGiB;AAAA,cAE7C,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"remove-agent.d.mts","names":[],"sources":["../../src/actions/remove-agent.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAGvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
@@ -8,7 +8,7 @@ const parseraRemoveAgent = action("PARSERA_REMOVE_AGENT", {
8
8
  output: z.object({
9
9
  message: z.string().describe("Status message or additional information about the removal operation.").nullable().optional(),
10
10
  success: z.boolean().describe("Indicates whether the agent was successfully removed.").nullable().optional()
11
- }).describe("Response model for agent removal operation.")
11
+ }).passthrough().describe("Response model for agent removal operation.")
12
12
  });
13
13
  //#endregion
14
14
  export { parseraRemoveAgent };
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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}).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":";;AAYA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZmD,EAAE,OAAO,EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,EAC1H,CAAC,CAAC,CAAC,SAAS,6CAUH;CACP,QAVoD,EAAE,OAAO;EAC7D,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,SAAS,6CAOF;AACV,CAAC"}
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":";;AAYA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqC,EAAE,OAAO,EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,EAC1H,CAAC,CAAC,CAAC,SAAS,6CAUH;CACP,QAVsC,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,6CAOhB;AACV,CAAC"}
@@ -7,7 +7,7 @@ const ParseraRunScraperTemplateInput = zod.z.object({
7
7
  name: zod.z.string().describe("Cookie name."),
8
8
  value: zod.z.string().describe("Cookie value."),
9
9
  domain: zod.z.string().describe("Domain for which the cookie is valid.")
10
- }).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(),
10
+ }).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(),
11
11
  template_id: zod.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."),
12
12
  proxy_country: zod.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()
13
13
  });
@@ -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.ZodTypeAny = 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}).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.ZodTypeAny = 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":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,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,SAAS,0DAA0D,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACjM,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K;CAC3M,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;AAC9N,CAAC;AACD,MAAa,kCAAgDA,IAAAA,EAAE,QAAQ;AAEvE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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":";;;AAIA,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,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/run-scraper-template.d.ts
4
- declare const ParseraRunScraperTemplateInput: z.ZodTypeAny;
5
- declare const ParseraRunScraperTemplateOutput: z.ZodTypeAny;
6
- declare const parseraRunScraperTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseraRunScraperTemplateInput: z.ZodObject<{
5
+ url: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
6
+ cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ name: z.ZodString;
8
+ value: z.ZodString;
9
+ domain: z.ZodString;
10
+ }, z.core.$loose>>>;
11
+ template_id: z.ZodString;
12
+ proxy_country: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const ParseraRunScraperTemplateOutput: z.ZodUnknown;
15
+ declare const parseraRunScraperTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { parseraRunScraperTemplate };
9
28
  //# 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":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAS7C;AAAA,cACW,+BAAA,EAAiC,CAAA,CAAE,UAAwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"run-scraper-template.d.cts","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAU9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,28 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/run-scraper-template.d.ts
4
- declare const ParseraRunScraperTemplateInput: z.ZodTypeAny;
5
- declare const ParseraRunScraperTemplateOutput: z.ZodTypeAny;
6
- declare const parseraRunScraperTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseraRunScraperTemplateInput: z.ZodObject<{
5
+ url: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
6
+ cookies: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ name: z.ZodString;
8
+ value: z.ZodString;
9
+ domain: z.ZodString;
10
+ }, z.core.$loose>>>;
11
+ template_id: z.ZodString;
12
+ proxy_country: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const ParseraRunScraperTemplateOutput: z.ZodUnknown;
15
+ declare const parseraRunScraperTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
26
  //#endregion
8
27
  export { parseraRunScraperTemplate };
9
28
  //# 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":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAS7C;AAAA,cACW,+BAAA,EAAiC,CAAA,CAAE,UAAwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"run-scraper-template.d.mts","names":[],"sources":["../../src/actions/run-scraper-template.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;cAU9B,+BAAA,EAA+B,CAAA,CAAA,UAAc;AAAA,cAE7C,yBAAA,gCAAyB,wBAAA"}
@@ -10,7 +10,7 @@ const parseraRunScraperTemplate = action("PARSERA_RUN_SCRAPER_TEMPLATE", {
10
10
  name: z.string().describe("Cookie name."),
11
11
  value: z.string().describe("Cookie value."),
12
12
  domain: z.string().describe("Domain for which the cookie is valid.")
13
- }).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(),
13
+ }).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(),
14
14
  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."),
15
15
  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()
16
16
  }),
@@ -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.ZodTypeAny = 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}).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.ZodTypeAny = 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":";;AAgBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB0D,EAAE,OAAO;EACnE,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,SAAS,0DAA0D,CAAC,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EACjM,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K;EAC3M,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,8KAA8K,CAAC,CAAC,SAAS;CAC9N,CAOS;CACP,QAP2D,EAAE,QAOrD;AACV,CAAC"}
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":";;AAgBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB4C,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,CAOS;CACP,QAP6C,EAAE,QAOvC;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.ZodTypeAny = 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.ZodTypeAny = 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":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,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,+BAA6CA,IAAAA,EAAE,QAAQ;AAEpE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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":";;;AAIA,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,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/scrape-with-agent.d.ts
4
- declare const ParseraScrapeWithAgentInput: z.ZodTypeAny;
5
- declare const ParseraScrapeWithAgentOutput: z.ZodTypeAny;
6
- declare const parseraScrapeWithAgent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseraScrapeWithAgentInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ name: z.ZodString;
7
+ cookies: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
8
+ proxy_country: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const ParseraScrapeWithAgentOutput: z.ZodUnknown;
11
+ declare const parseraScrapeWithAgent: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { parseraScrapeWithAgent };
9
19
  //# 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":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAKc;AAAA,cAC7C,4BAAA,EAA8B,CAAA,CAAE,UAAwB;AAAA,cAExD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"scrape-with-agent.d.cts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA;;;YAMjC,MAAA"}
@@ -1,9 +1,19 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/scrape-with-agent.d.ts
4
- declare const ParseraScrapeWithAgentInput: z.ZodTypeAny;
5
- declare const ParseraScrapeWithAgentOutput: z.ZodTypeAny;
6
- declare const parseraScrapeWithAgent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ParseraScrapeWithAgentInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ name: z.ZodString;
7
+ cookies: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
8
+ proxy_country: z.ZodOptional<z.ZodString>;
9
+ }, z.core.$strip>;
10
+ declare const ParseraScrapeWithAgentOutput: z.ZodUnknown;
11
+ declare const parseraScrapeWithAgent: import("@keystrokehq/action").WorkflowActionDefinition<{
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]>, readonly [import("@keystrokehq/shared").Credential]>;
7
17
  //#endregion
8
18
  export { parseraScrapeWithAgent };
9
19
  //# 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":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAKc;AAAA,cAC7C,4BAAA,EAA8B,CAAA,CAAE,UAAwB;AAAA,cAExD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"scrape-with-agent.d.mts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA;;;YAMjC,MAAA"}
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO;EAChE,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,6CAOH;CACP,QAPwD,EAAE,QAOlD;AACV,CAAC"}
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":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,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,6CAOH;CACP,QAP0C,EAAE,QAOpC;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const parseraCatalog = {
7
7
  "category": "AI Web Scraping",
8
8
  "logo": "https://logos.composio.dev/api/parsera",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "api_key": {
12
+ "label": "Parsera API Key",
13
+ "secret": true,
14
+ "description": "Your Parsera API key, obtainable from the 'API' tab on the Parsera web page."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.parseraCatalog = parseraCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const parseraCatalog = {\n \"slug\": \"parsera\",\n \"name\": \"Parsera\",\n \"description\": \"Parsera is a lightweight Python library for scraping websites using large language models (LLMs).\",\n \"category\": \"AI Web Scraping\",\n \"logo\": \"https://logos.composio.dev/api/parsera\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const parseraCatalog = {\n \"slug\": \"parsera\",\n \"name\": \"Parsera\",\n \"description\": \"Parsera is a lightweight Python library for scraping websites using large language models (LLMs).\",\n \"category\": \"AI Web Scraping\",\n \"logo\": \"https://logos.composio.dev/api/parsera\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"api_key\": {\n \"label\": \"Parsera API Key\",\n \"secret\": true,\n \"description\": \"Your Parsera API key, obtainable from the 'API' tab on the Parsera web page.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,WAAW;EACT,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,14 @@ declare const parseraCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/parsera";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Parsera API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your Parsera API key, obtainable from the 'API' tab on the Parsera web page.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { parseraCatalog };
@@ -8,6 +8,14 @@ declare const parseraCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/parsera";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly api_key: {
13
+ readonly label: "Parsera API Key";
14
+ readonly secret: true;
15
+ readonly description: "Your Parsera API key, obtainable from the 'API' tab on the Parsera web page.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { parseraCatalog };