@keystrokehq/parsera 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) 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 -0
  4. package/dist/actions/create-scraper.cjs.map +1 -1
  5. package/dist/actions/create-scraper.d.cts +3 -1
  6. package/dist/actions/create-scraper.d.cts.map +1 -1
  7. package/dist/actions/create-scraper.d.mts +3 -1
  8. package/dist/actions/create-scraper.d.mts.map +1 -1
  9. package/dist/actions/create-scraper.mjs +1 -0
  10. package/dist/actions/create-scraper.mjs.map +1 -1
  11. package/dist/actions/delete-scraper.cjs +1 -0
  12. package/dist/actions/delete-scraper.cjs.map +1 -1
  13. package/dist/actions/delete-scraper.d.cts +3 -3
  14. package/dist/actions/delete-scraper.d.cts.map +1 -1
  15. package/dist/actions/delete-scraper.d.mts +3 -3
  16. package/dist/actions/delete-scraper.d.mts.map +1 -1
  17. package/dist/actions/delete-scraper.mjs +1 -0
  18. package/dist/actions/delete-scraper.mjs.map +1 -1
  19. package/dist/actions/extract-data.cjs +1 -0
  20. package/dist/actions/extract-data.cjs.map +1 -1
  21. package/dist/actions/extract-data.d.cts +3 -8
  22. package/dist/actions/extract-data.d.cts.map +1 -1
  23. package/dist/actions/extract-data.d.mts +3 -8
  24. package/dist/actions/extract-data.d.mts.map +1 -1
  25. package/dist/actions/extract-data.mjs +1 -0
  26. package/dist/actions/extract-data.mjs.map +1 -1
  27. package/dist/actions/extract-markdown.cjs +1 -0
  28. package/dist/actions/extract-markdown.cjs.map +1 -1
  29. package/dist/actions/extract-markdown.d.cts +3 -8
  30. package/dist/actions/extract-markdown.d.cts.map +1 -1
  31. package/dist/actions/extract-markdown.d.mts +3 -8
  32. package/dist/actions/extract-markdown.d.mts.map +1 -1
  33. package/dist/actions/extract-markdown.mjs +1 -0
  34. package/dist/actions/extract-markdown.mjs.map +1 -1
  35. package/dist/actions/get-llm-specs.cjs +1 -0
  36. package/dist/actions/get-llm-specs.cjs.map +1 -1
  37. package/dist/actions/get-llm-specs.d.cts +3 -1
  38. package/dist/actions/get-llm-specs.d.cts.map +1 -1
  39. package/dist/actions/get-llm-specs.d.mts +3 -1
  40. package/dist/actions/get-llm-specs.d.mts.map +1 -1
  41. package/dist/actions/get-llm-specs.mjs +1 -0
  42. package/dist/actions/get-llm-specs.mjs.map +1 -1
  43. package/dist/actions/get-proxy-countries.cjs +1 -0
  44. package/dist/actions/get-proxy-countries.cjs.map +1 -1
  45. package/dist/actions/get-proxy-countries.d.cts +3 -1
  46. package/dist/actions/get-proxy-countries.d.cts.map +1 -1
  47. package/dist/actions/get-proxy-countries.d.mts +3 -1
  48. package/dist/actions/get-proxy-countries.d.mts.map +1 -1
  49. package/dist/actions/get-proxy-countries.mjs +1 -0
  50. package/dist/actions/get-proxy-countries.mjs.map +1 -1
  51. package/dist/actions/health-check.cjs +1 -0
  52. package/dist/actions/health-check.cjs.map +1 -1
  53. package/dist/actions/health-check.d.cts +3 -1
  54. package/dist/actions/health-check.d.cts.map +1 -1
  55. package/dist/actions/health-check.d.mts +3 -1
  56. package/dist/actions/health-check.d.mts.map +1 -1
  57. package/dist/actions/health-check.mjs +1 -0
  58. package/dist/actions/health-check.mjs.map +1 -1
  59. package/dist/actions/list-agents.cjs +1 -0
  60. package/dist/actions/list-agents.cjs.map +1 -1
  61. package/dist/actions/list-agents.d.cts +3 -1
  62. package/dist/actions/list-agents.d.cts.map +1 -1
  63. package/dist/actions/list-agents.d.mts +3 -1
  64. package/dist/actions/list-agents.d.mts.map +1 -1
  65. package/dist/actions/list-agents.mjs +1 -0
  66. package/dist/actions/list-agents.mjs.map +1 -1
  67. package/dist/actions/list-scrapers.cjs +1 -0
  68. package/dist/actions/list-scrapers.cjs.map +1 -1
  69. package/dist/actions/list-scrapers.d.cts +3 -1
  70. package/dist/actions/list-scrapers.d.cts.map +1 -1
  71. package/dist/actions/list-scrapers.d.mts +3 -1
  72. package/dist/actions/list-scrapers.d.mts.map +1 -1
  73. package/dist/actions/list-scrapers.mjs +1 -0
  74. package/dist/actions/list-scrapers.mjs.map +1 -1
  75. package/dist/actions/parse-content2.cjs +1 -0
  76. package/dist/actions/parse-content2.cjs.map +1 -1
  77. package/dist/actions/parse-content2.d.cts +4 -14
  78. package/dist/actions/parse-content2.d.cts.map +1 -1
  79. package/dist/actions/parse-content2.d.mts +4 -14
  80. package/dist/actions/parse-content2.d.mts.map +1 -1
  81. package/dist/actions/parse-content2.mjs +1 -0
  82. package/dist/actions/parse-content2.mjs.map +1 -1
  83. package/dist/actions/remove-agent.cjs +1 -0
  84. package/dist/actions/remove-agent.cjs.map +1 -1
  85. package/dist/actions/remove-agent.d.cts +3 -3
  86. package/dist/actions/remove-agent.d.cts.map +1 -1
  87. package/dist/actions/remove-agent.d.mts +3 -3
  88. package/dist/actions/remove-agent.d.mts.map +1 -1
  89. package/dist/actions/remove-agent.mjs +1 -0
  90. package/dist/actions/remove-agent.mjs.map +1 -1
  91. package/dist/actions/run-scraper-template.cjs +1 -0
  92. package/dist/actions/run-scraper-template.cjs.map +1 -1
  93. package/dist/actions/run-scraper-template.d.cts +3 -11
  94. package/dist/actions/run-scraper-template.d.cts.map +1 -1
  95. package/dist/actions/run-scraper-template.d.mts +3 -11
  96. package/dist/actions/run-scraper-template.d.mts.map +1 -1
  97. package/dist/actions/run-scraper-template.mjs +1 -0
  98. package/dist/actions/run-scraper-template.mjs.map +1 -1
  99. package/dist/actions/scrape-with-agent.cjs +1 -0
  100. package/dist/actions/scrape-with-agent.cjs.map +1 -1
  101. package/dist/actions/scrape-with-agent.d.cts +3 -6
  102. package/dist/actions/scrape-with-agent.d.cts.map +1 -1
  103. package/dist/actions/scrape-with-agent.d.mts +3 -6
  104. package/dist/actions/scrape-with-agent.d.mts.map +1 -1
  105. package/dist/actions/scrape-with-agent.mjs +1 -0
  106. package/dist/actions/scrape-with-agent.mjs.map +1 -1
  107. package/dist/app.cjs +5 -2
  108. package/dist/app.cjs.map +1 -1
  109. package/dist/app.d.cts +7 -1
  110. package/dist/app.d.cts.map +1 -1
  111. package/dist/app.d.mts +7 -1
  112. package/dist/app.d.mts.map +1 -1
  113. package/dist/app.mjs +3 -2
  114. package/dist/app.mjs.map +1 -1
  115. package/dist/index.d.cts +1 -1
  116. package/dist/index.d.mts +1 -1
  117. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"scrape-with-agent.cjs","names":["z","action"],"sources":["../../src/actions/scrape-with-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraScrapeWithAgentInput = z.object({\n url: z.string().describe(\"The webpage URL where data extraction will occur.\"),\n name: z.string().describe(\"Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase').\"),\n cookies: z.array(z.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.\").optional(),\n proxy_country: z.string().describe(\"Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.\").optional(),\n}).describe(\"Request model for POST /v1/scrape endpoint.\");\nexport const ParseraScrapeWithAgentOutput = z.unknown();\n\nexport const parseraScrapeWithAgent = action(\"PARSERA_SCRAPE_WITH_AGENT\", {\n slug: \"parsera-scrape-with-agent\",\n name: \"Scrape With Agent\",\n description: \"Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.\",\n input: ParseraScrapeWithAgentInput,\n output: ParseraScrapeWithAgentOutput,\n});\n"],"mappings":";;;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
+ {"version":3,"file":"scrape-with-agent.cjs","names":["z","action"],"sources":["../../src/actions/scrape-with-agent.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parsera } from \"../app\";\n\nexport const ParseraScrapeWithAgentInput = z.object({\n url: z.string().describe(\"The webpage URL where data extraction will occur.\"),\n name: z.string().describe(\"Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase').\"),\n cookies: z.array(z.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.\").optional(),\n proxy_country: z.string().describe(\"Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.\").optional(),\n}).describe(\"Request model for POST /v1/scrape endpoint.\");\nexport const ParseraScrapeWithAgentOutput = z.unknown();\n\nexport const parseraScrapeWithAgent: AppAction<\n typeof ParseraScrapeWithAgentInput,\n typeof ParseraScrapeWithAgentOutput,\n typeof parsera.credential\n> = action(\"PARSERA_SCRAPE_WITH_AGENT\", {\n slug: \"parsera-scrape-with-agent\",\n name: \"Scrape With Agent\",\n description: \"Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.\",\n input: ParseraScrapeWithAgentInput,\n output: ParseraScrapeWithAgentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;CAClK,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CAC/L,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;AACzJ,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,+BAA+BA,IAAAA,EAAE,QAAQ;AAEtD,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { parsera } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/scrape-with-agent.d.ts
@@ -8,12 +10,7 @@ declare const ParseraScrapeWithAgentInput: z.ZodObject<{
8
10
  proxy_country: z.ZodOptional<z.ZodString>;
9
11
  }, z.core.$strip>;
10
12
  declare const ParseraScrapeWithAgentOutput: z.ZodUnknown;
11
- declare const parseraScrapeWithAgent: 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]>;
13
+ declare const parseraScrapeWithAgent: AppAction<typeof ParseraScrapeWithAgentInput, typeof ParseraScrapeWithAgentOutput, typeof parsera.credential>;
17
14
  //#endregion
18
15
  export { parseraScrapeWithAgent };
19
16
  //# sourceMappingURL=scrape-with-agent.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scrape-with-agent.d.cts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA;;;YAMjC,MAAA"}
1
+ {"version":3,"file":"scrape-with-agent.d.cts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { parsera } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/scrape-with-agent.d.ts
@@ -8,12 +10,7 @@ declare const ParseraScrapeWithAgentInput: z.ZodObject<{
8
10
  proxy_country: z.ZodOptional<z.ZodString>;
9
11
  }, z.core.$strip>;
10
12
  declare const ParseraScrapeWithAgentOutput: z.ZodUnknown;
11
- declare const parseraScrapeWithAgent: 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]>;
13
+ declare const parseraScrapeWithAgent: AppAction<typeof ParseraScrapeWithAgentInput, typeof ParseraScrapeWithAgentOutput, typeof parsera.credential>;
17
14
  //#endregion
18
15
  export { parseraScrapeWithAgent };
19
16
  //# sourceMappingURL=scrape-with-agent.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scrape-with-agent.d.mts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA;;;YAMjC,MAAA"}
1
+ {"version":3,"file":"scrape-with-agent.d.mts","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAM3B,4BAAA,EAA4B,CAAA,CAAA,UAAc;AAAA,cAE1C,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,OAAA,CAAQ,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const parseraScrapeWithAgent = action("PARSERA_SCRAPE_WITH_AGENT", {
@@ -1 +1 @@
1
- {"version":3,"file":"scrape-with-agent.mjs","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ParseraScrapeWithAgentInput = z.object({\n url: z.string().describe(\"The webpage URL where data extraction will occur.\"),\n name: z.string().describe(\"Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase').\"),\n cookies: z.array(z.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.\").optional(),\n proxy_country: z.string().describe(\"Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.\").optional(),\n}).describe(\"Request model for POST /v1/scrape endpoint.\");\nexport const ParseraScrapeWithAgentOutput = z.unknown();\n\nexport const parseraScrapeWithAgent = action(\"PARSERA_SCRAPE_WITH_AGENT\", {\n slug: \"parsera-scrape-with-agent\",\n name: \"Scrape With Agent\",\n description: \"Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.\",\n input: ParseraScrapeWithAgentInput,\n output: ParseraScrapeWithAgentOutput,\n});\n"],"mappings":";;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"}
1
+ {"version":3,"file":"scrape-with-agent.mjs","names":[],"sources":["../../src/actions/scrape-with-agent.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { parsera } from \"../app\";\n\nexport const ParseraScrapeWithAgentInput = z.object({\n url: z.string().describe(\"The webpage URL where data extraction will occur.\"),\n name: z.string().describe(\"Identifier for the agent/scraper to use. For pre-built agents, prefix with 'public/' (e.g., 'public/hackernews', 'public/crunchbase').\"),\n cookies: z.array(z.record(z.string(), z.unknown())).describe(\"Authentication or session cookies for the request. Each cookie should be a dictionary with 'name' and 'value' fields.\").optional(),\n proxy_country: z.string().describe(\"Geographic location for proxy routing (e.g., 'UnitedStates', 'UnitedKingdom'). Default: 'UnitedStates'.\").optional(),\n}).describe(\"Request model for POST /v1/scrape endpoint.\");\nexport const ParseraScrapeWithAgentOutput = z.unknown();\n\nexport const parseraScrapeWithAgent: AppAction<\n typeof ParseraScrapeWithAgentInput,\n typeof ParseraScrapeWithAgentOutput,\n typeof parsera.credential\n> = action(\"PARSERA_SCRAPE_WITH_AGENT\", {\n slug: \"parsera-scrape-with-agent\",\n name: \"Scrape With Agent\",\n description: \"Tool to run a previously generated scraper agent on a specific URL to extract structured data. Use when you need to apply an existing scraper to a webpage.\",\n input: ParseraScrapeWithAgentInput,\n output: ParseraScrapeWithAgentOutput,\n});\n"],"mappings":";;;AAcA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhByC,EAAE,OAAO;EAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wIAAwI;EAClK,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;EAC/L,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACzJ,CAAC,CAAC,CAAC,SAAS,6CAWH;CACP,QAX0C,EAAE,QAWpC;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
1
2
  //#region src/app.ts
2
- const parsera = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ const credential = { generic_api_key: require("zod").z.string() };
4
+ const parsera = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "parsera",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential
5
8
  });
6
9
  //#endregion
7
10
  exports.parsera = parsera;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const parsera = defineApp({\n slug: \"parsera\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const parsera: KeystrokeApp<\"parsera\", typeof credential> = defineApp({\n slug: \"parsera\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAGA,MAAM,aAAa,EACjB,8BAAiBA,CAAAA,CAAAA,EAAE,OAAO,EAC5B;AAEA,MAAa,WAAA,GAAA,2BAAA,UAAA,CAAgE;CAC3E,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const parsera: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const parsera: KeystrokeApp<"parsera", typeof credential>;
3
9
  //#endregion
4
10
  export { parsera };
5
11
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,11 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const parsera: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ };
8
+ declare const parsera: KeystrokeApp<"parsera", typeof credential>;
3
9
  //#endregion
4
10
  export { parsera };
5
11
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAEL,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,OAAA,EAAS,YAAY,mBAAmB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const parsera = defineApp({
4
4
  slug: "parsera",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: { generic_api_key: z.string() }
6
7
  });
7
8
  //#endregion
8
9
  export { parsera };
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const parsera = defineApp({\n slug: \"parsera\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n generic_api_key: z.string(),\n};\n\nexport const parsera: KeystrokeApp<\"parsera\", typeof credential> = defineApp({\n slug: \"parsera\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAOA,MAAa,UAAsD,UAAU;CAC3E,MAAM;CACN,MAAM;CACN,cANA,iBAAiB,EAAE,OAAO,EAM1B;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { parsera } from "./app.cjs";
1
2
  import { parseraCreateScraper } from "./actions/create-scraper.cjs";
2
3
  import { parseraDeleteScraper } from "./actions/delete-scraper.cjs";
3
4
  import { parseraExtractData } from "./actions/extract-data.cjs";
@@ -11,6 +12,5 @@ import { parseraParseContent2 } from "./actions/parse-content2.cjs";
11
12
  import { parseraRemoveAgent } from "./actions/remove-agent.cjs";
12
13
  import { parseraRunScraperTemplate } from "./actions/run-scraper-template.cjs";
13
14
  import { parseraScrapeWithAgent } from "./actions/scrape-with-agent.cjs";
14
- import { parsera } from "./app.cjs";
15
15
  import { parseraCatalog } from "./catalog.cjs";
16
16
  export { parsera, parseraCatalog, parseraCreateScraper, parseraDeleteScraper, parseraExtractData, parseraExtractMarkdown, parseraGetLlmSpecs, parseraGetProxyCountries, parseraHealthCheck, parseraListAgents, parseraListScrapers, parseraParseContent2, parseraRemoveAgent, parseraRunScraperTemplate, parseraScrapeWithAgent };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { parsera } from "./app.mjs";
1
2
  import { parseraCreateScraper } from "./actions/create-scraper.mjs";
2
3
  import { parseraDeleteScraper } from "./actions/delete-scraper.mjs";
3
4
  import { parseraExtractData } from "./actions/extract-data.mjs";
@@ -11,6 +12,5 @@ import { parseraParseContent2 } from "./actions/parse-content2.mjs";
11
12
  import { parseraRemoveAgent } from "./actions/remove-agent.mjs";
12
13
  import { parseraRunScraperTemplate } from "./actions/run-scraper-template.mjs";
13
14
  import { parseraScrapeWithAgent } from "./actions/scrape-with-agent.mjs";
14
- import { parsera } from "./app.mjs";
15
15
  import { parseraCatalog } from "./catalog.mjs";
16
16
  export { parsera, parseraCatalog, parseraCreateScraper, parseraDeleteScraper, parseraExtractData, parseraExtractMarkdown, parseraGetLlmSpecs, parseraGetProxyCountries, parseraHealthCheck, parseraListAgents, parseraListScrapers, parseraParseContent2, parseraRemoveAgent, parseraRunScraperTemplate, parseraScrapeWithAgent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/parsera",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {