@keystrokehq/screenshotone 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 (53) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-usage.cjs +1 -0
  4. package/dist/actions/get-usage.cjs.map +1 -1
  5. package/dist/actions/get-usage.d.cts +3 -1
  6. package/dist/actions/get-usage.d.cts.map +1 -1
  7. package/dist/actions/get-usage.d.mts +3 -1
  8. package/dist/actions/get-usage.d.mts.map +1 -1
  9. package/dist/actions/get-usage.mjs +1 -0
  10. package/dist/actions/get-usage.mjs.map +1 -1
  11. package/dist/actions/list-devices.cjs +1 -0
  12. package/dist/actions/list-devices.cjs.map +1 -1
  13. package/dist/actions/list-devices.d.cts +3 -1
  14. package/dist/actions/list-devices.d.cts.map +1 -1
  15. package/dist/actions/list-devices.d.mts +3 -1
  16. package/dist/actions/list-devices.d.mts.map +1 -1
  17. package/dist/actions/list-devices.mjs +1 -0
  18. package/dist/actions/list-devices.mjs.map +1 -1
  19. package/dist/actions/take-animated-screenshot.cjs +1 -0
  20. package/dist/actions/take-animated-screenshot.cjs.map +1 -1
  21. package/dist/actions/take-animated-screenshot.d.cts +3 -39
  22. package/dist/actions/take-animated-screenshot.d.cts.map +1 -1
  23. package/dist/actions/take-animated-screenshot.d.mts +3 -39
  24. package/dist/actions/take-animated-screenshot.d.mts.map +1 -1
  25. package/dist/actions/take-animated-screenshot.mjs +1 -0
  26. package/dist/actions/take-animated-screenshot.mjs.map +1 -1
  27. package/dist/actions/take-bulk-screenshots.cjs +1 -0
  28. package/dist/actions/take-bulk-screenshots.cjs.map +1 -1
  29. package/dist/actions/take-bulk-screenshots.d.cts +5 -45
  30. package/dist/actions/take-bulk-screenshots.d.cts.map +1 -1
  31. package/dist/actions/take-bulk-screenshots.d.mts +5 -45
  32. package/dist/actions/take-bulk-screenshots.d.mts.map +1 -1
  33. package/dist/actions/take-bulk-screenshots.mjs +1 -0
  34. package/dist/actions/take-bulk-screenshots.mjs.map +1 -1
  35. package/dist/actions/take-screenshot.cjs +1 -0
  36. package/dist/actions/take-screenshot.cjs.map +1 -1
  37. package/dist/actions/take-screenshot.d.cts +3 -16
  38. package/dist/actions/take-screenshot.d.cts.map +1 -1
  39. package/dist/actions/take-screenshot.d.mts +3 -16
  40. package/dist/actions/take-screenshot.d.mts.map +1 -1
  41. package/dist/actions/take-screenshot.mjs +1 -0
  42. package/dist/actions/take-screenshot.mjs.map +1 -1
  43. package/dist/app.cjs +9 -2
  44. package/dist/app.cjs.map +1 -1
  45. package/dist/app.d.cts +8 -1
  46. package/dist/app.d.cts.map +1 -1
  47. package/dist/app.d.mts +8 -1
  48. package/dist/app.d.mts.map +1 -1
  49. package/dist/app.mjs +6 -2
  50. package/dist/app.mjs.map +1 -1
  51. package/dist/index.d.cts +1 -1
  52. package/dist/index.d.mts +1 -1
  53. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["screenshotone","executeScreenshotoneTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { screenshotone } from \"./app\";\nimport { executeScreenshotoneTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return screenshotone.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeScreenshotoneTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,cAAc,OAAO;EAC1B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,yBAAyB,MAAM,KAAgC,CAAC;EAChG;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["screenshotone","executeScreenshotoneTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { screenshotone } from \"./app\";\nimport { executeScreenshotoneTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof screenshotone.credential> {\n return screenshotone.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeScreenshotoneTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO6D;CAC7D,OAAOA,YAAAA,cAAc,OAAO;EAC1B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,yBAAyB,MAAM,KAAgC,CAAC;EAChG;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { screenshotone } from \"./app\";\nimport { executeScreenshotoneTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return screenshotone.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeScreenshotoneTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,cAAc,OAAO;EAC1B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,yBAAyB,MAAM,KAAgC,CAAC;EAChG;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { screenshotone } from \"./app\";\nimport { executeScreenshotoneTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof screenshotone.credential> {\n return screenshotone.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeScreenshotoneTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAO6D;CAC7D,OAAO,cAAc,OAAO;EAC1B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,yBAAyB,MAAM,KAAgC,CAAC;EAChG;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/get-usage.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScreenshotoneGetUsageInput = z.object({}).describe(\"Request model for getting usage information. No parameters required as authentication is handled via metadata.\");\nconst ScreenshotoneGetUsage_ConcurrencyInfoSchema = z.object({\n limit: z.number().int().describe(\"Total number of concurrent requests allowed per interval\").nullable(),\n reset: z.number().int().describe(\"Time when the limitation will be reset, in UNIX timestamp format in nanoseconds\").nullable(),\n remaining: z.number().int().describe(\"Number of available concurrent requests allowed per interval\").nullable(),\n}).passthrough().describe(\"Concurrency information for API requests.\");\nexport const ScreenshotoneGetUsageOutput = z.object({\n used: z.number().int().describe(\"Number of successfully executed requests\").nullable(),\n total: z.number().int().describe(\"Total number of requests allowed in the current billing period\").nullable(),\n available: z.number().int().describe(\"Number of available requests until the end of the current period\").nullable(),\n concurrency: ScreenshotoneGetUsage_ConcurrencyInfoSchema.nullable(),\n}).passthrough().describe(\"Response containing API usage information.\");\n\nexport const screenshotoneGetUsage = action(\"SCREENSHOTONE_GET_USAGE\", {\n slug: \"screenshotone-get-usage\",\n name: \"Get Usage\",\n description: \"Tool to retrieve current API plan usage information. Returns total requests allowed, available requests remaining, used requests count, and concurrency limits for the current billing period.\",\n input: ScreenshotoneGetUsageInput,\n output: ScreenshotoneGetUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gHAAgH;AAChL,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC7H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,aAAa,4CAA4C,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-usage.cjs","names":["z","action"],"sources":["../../src/actions/get-usage.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { screenshotone } from \"../app\";\n\nexport const ScreenshotoneGetUsageInput = z.object({}).describe(\"Request model for getting usage information. No parameters required as authentication is handled via metadata.\");\nconst ScreenshotoneGetUsage_ConcurrencyInfoSchema = z.object({\n limit: z.number().int().describe(\"Total number of concurrent requests allowed per interval\").nullable(),\n reset: z.number().int().describe(\"Time when the limitation will be reset, in UNIX timestamp format in nanoseconds\").nullable(),\n remaining: z.number().int().describe(\"Number of available concurrent requests allowed per interval\").nullable(),\n}).passthrough().describe(\"Concurrency information for API requests.\");\nexport const ScreenshotoneGetUsageOutput = z.object({\n used: z.number().int().describe(\"Number of successfully executed requests\").nullable(),\n total: z.number().int().describe(\"Total number of requests allowed in the current billing period\").nullable(),\n available: z.number().int().describe(\"Number of available requests until the end of the current period\").nullable(),\n concurrency: ScreenshotoneGetUsage_ConcurrencyInfoSchema.nullable(),\n}).passthrough().describe(\"Response containing API usage information.\");\n\nexport const screenshotoneGetUsage: AppAction<\n typeof ScreenshotoneGetUsageInput,\n typeof ScreenshotoneGetUsageOutput,\n typeof screenshotone.credential\n> = action(\"SCREENSHOTONE_GET_USAGE\", {\n slug: \"screenshotone-get-usage\",\n name: \"Get Usage\",\n description: \"Tool to retrieve current API plan usage information. Returns total requests allowed, available requests remaining, used requests count, and concurrency limits for the current billing period.\",\n input: ScreenshotoneGetUsageInput,\n output: ScreenshotoneGetUsageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gHAAgH;AAChL,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC7H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AACrE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAClH,aAAa,4CAA4C,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { screenshotone } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-usage.d.ts
@@ -12,7 +14,7 @@ declare const ScreenshotoneGetUsageOutput: z.ZodObject<{
12
14
  remaining: z.ZodNullable<z.ZodNumber>;
13
15
  }, z.core.$loose>>;
14
16
  }, z.core.$loose>;
15
- declare const screenshotoneGetUsage: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const screenshotoneGetUsage: AppAction<typeof ScreenshotoneGetUsageInput, typeof ScreenshotoneGetUsageOutput, typeof screenshotone.credential>;
16
18
  //#endregion
17
19
  export { screenshotoneGetUsage };
18
20
  //# sourceMappingURL=get-usage.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-usage.d.cts","names":[],"sources":["../../src/actions/get-usage.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-usage.d.cts","names":[],"sources":["../../src/actions/get-usage.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,aAAA,CAAc,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { screenshotone } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/get-usage.d.ts
@@ -12,7 +14,7 @@ declare const ScreenshotoneGetUsageOutput: z.ZodObject<{
12
14
  remaining: z.ZodNullable<z.ZodNumber>;
13
15
  }, z.core.$loose>>;
14
16
  }, z.core.$loose>;
15
- declare const screenshotoneGetUsage: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const screenshotoneGetUsage: AppAction<typeof ScreenshotoneGetUsageInput, typeof ScreenshotoneGetUsageOutput, typeof screenshotone.credential>;
16
18
  //#endregion
17
19
  export { screenshotoneGetUsage };
18
20
  //# sourceMappingURL=get-usage.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-usage.d.mts","names":[],"sources":["../../src/actions/get-usage.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-usage.d.mts","names":[],"sources":["../../src/actions/get-usage.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAO3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,aAAA,CAAc,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/get-usage.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-usage.mjs","names":[],"sources":["../../src/actions/get-usage.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScreenshotoneGetUsageInput = z.object({}).describe(\"Request model for getting usage information. No parameters required as authentication is handled via metadata.\");\nconst ScreenshotoneGetUsage_ConcurrencyInfoSchema = z.object({\n limit: z.number().int().describe(\"Total number of concurrent requests allowed per interval\").nullable(),\n reset: z.number().int().describe(\"Time when the limitation will be reset, in UNIX timestamp format in nanoseconds\").nullable(),\n remaining: z.number().int().describe(\"Number of available concurrent requests allowed per interval\").nullable(),\n}).passthrough().describe(\"Concurrency information for API requests.\");\nexport const ScreenshotoneGetUsageOutput = z.object({\n used: z.number().int().describe(\"Number of successfully executed requests\").nullable(),\n total: z.number().int().describe(\"Total number of requests allowed in the current billing period\").nullable(),\n available: z.number().int().describe(\"Number of available requests until the end of the current period\").nullable(),\n concurrency: ScreenshotoneGetUsage_ConcurrencyInfoSchema.nullable(),\n}).passthrough().describe(\"Response containing API usage information.\");\n\nexport const screenshotoneGetUsage = action(\"SCREENSHOTONE_GET_USAGE\", {\n slug: \"screenshotone-get-usage\",\n name: \"Get Usage\",\n description: \"Tool to retrieve current API plan usage information. Returns total requests allowed, available requests remaining, used requests count, and concurrency limits for the current billing period.\",\n input: ScreenshotoneGetUsageInput,\n output: ScreenshotoneGetUsageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gHAAgH;AAChL,MAAM,8CAA8C,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC7H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAQrE,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAClH,aAAa,4CAA4C,SAAS;CACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-usage.mjs","names":[],"sources":["../../src/actions/get-usage.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { screenshotone } from \"../app\";\n\nexport const ScreenshotoneGetUsageInput = z.object({}).describe(\"Request model for getting usage information. No parameters required as authentication is handled via metadata.\");\nconst ScreenshotoneGetUsage_ConcurrencyInfoSchema = z.object({\n limit: z.number().int().describe(\"Total number of concurrent requests allowed per interval\").nullable(),\n reset: z.number().int().describe(\"Time when the limitation will be reset, in UNIX timestamp format in nanoseconds\").nullable(),\n remaining: z.number().int().describe(\"Number of available concurrent requests allowed per interval\").nullable(),\n}).passthrough().describe(\"Concurrency information for API requests.\");\nexport const ScreenshotoneGetUsageOutput = z.object({\n used: z.number().int().describe(\"Number of successfully executed requests\").nullable(),\n total: z.number().int().describe(\"Total number of requests allowed in the current billing period\").nullable(),\n available: z.number().int().describe(\"Number of available requests until the end of the current period\").nullable(),\n concurrency: ScreenshotoneGetUsage_ConcurrencyInfoSchema.nullable(),\n}).passthrough().describe(\"Response containing API usage information.\");\n\nexport const screenshotoneGetUsage: AppAction<\n typeof ScreenshotoneGetUsageInput,\n typeof ScreenshotoneGetUsageOutput,\n typeof screenshotone.credential\n> = action(\"SCREENSHOTONE_GET_USAGE\", {\n slug: \"screenshotone-get-usage\",\n name: \"Get Usage\",\n description: \"Tool to retrieve current API plan usage information. Returns total requests allowed, available requests remaining, used requests count, and concurrency limits for the current billing period.\",\n input: ScreenshotoneGetUsageInput,\n output: ScreenshotoneGetUsageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gHAAgH;AAChL,MAAM,8CAA8C,EAAE,OAAO;CAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACtG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC7H,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAQrE,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAhByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAClH,aAAa,4CAA4C,SAAS;CACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-devices.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-devices.cjs","names":["z","action"],"sources":["../../src/actions/list-devices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScreenshotoneListDevicesInput = z.object({}).describe(\"Request model for listing supported devices.\");\nconst ScreenshotoneListDevices_ViewportSchema = z.object({\n width: z.number().int().describe(\"Viewport width in pixels\").nullable(),\n height: z.number().int().describe(\"Viewport height in pixels\").nullable(),\n hasTouch: z.boolean().describe(\"Whether device has touch support\").nullable(),\n isMobile: z.boolean().describe(\"Whether device is mobile\").nullable(),\n isLandscape: z.boolean().describe(\"Whether device is in landscape orientation\").nullable(),\n deviceScaleFactor: z.number().describe(\"Device pixel ratio\").nullable(),\n}).passthrough().describe(\"Viewport configuration for a device.\");\nconst ScreenshotoneListDevices_DeviceSchema = z.object({\n id: z.string().describe(\"Device ID to use with viewport_device parameter (e.g., iphone_13_pro_max_landscape)\").nullable(),\n name: z.string().describe(\"Human-readable device name\").nullable(),\n viewport: ScreenshotoneListDevices_ViewportSchema.nullable(),\n userAgent: z.string().describe(\"User agent string for the device\").nullable(),\n}).passthrough().describe(\"Device information including viewport parameters.\");\nexport const ScreenshotoneListDevicesOutput = z.object({\n devices: z.array(ScreenshotoneListDevices_DeviceSchema).describe(\"List of supported devices with their viewport parameters\"),\n}).passthrough().describe(\"Response containing the list of supported devices.\");\n\nexport const screenshotoneListDevices = action(\"SCREENSHOTONE_LIST_DEVICES\", {\n slug: \"screenshotone-list-devices\",\n name: \"List Devices\",\n description: \"Tool to retrieve the list of supported devices for viewport emulation. Use when you need to get available device IDs and their viewport configurations for device emulation in screenshot operations.\",\n input: ScreenshotoneListDevicesInput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AC,SAAS,oDAAoD;AAE9E,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-devices.cjs","names":["z","action"],"sources":["../../src/actions/list-devices.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { screenshotone } from \"../app\";\n\nexport const ScreenshotoneListDevicesInput = z.object({}).describe(\"Request model for listing supported devices.\");\nconst ScreenshotoneListDevices_ViewportSchema = z.object({\n width: z.number().int().describe(\"Viewport width in pixels\").nullable(),\n height: z.number().int().describe(\"Viewport height in pixels\").nullable(),\n hasTouch: z.boolean().describe(\"Whether device has touch support\").nullable(),\n isMobile: z.boolean().describe(\"Whether device is mobile\").nullable(),\n isLandscape: z.boolean().describe(\"Whether device is in landscape orientation\").nullable(),\n deviceScaleFactor: z.number().describe(\"Device pixel ratio\").nullable(),\n}).passthrough().describe(\"Viewport configuration for a device.\");\nconst ScreenshotoneListDevices_DeviceSchema = z.object({\n id: z.string().describe(\"Device ID to use with viewport_device parameter (e.g., iphone_13_pro_max_landscape)\").nullable(),\n name: z.string().describe(\"Human-readable device name\").nullable(),\n viewport: ScreenshotoneListDevices_ViewportSchema.nullable(),\n userAgent: z.string().describe(\"User agent string for the device\").nullable(),\n}).passthrough().describe(\"Device information including viewport parameters.\");\nexport const ScreenshotoneListDevicesOutput = z.object({\n devices: z.array(ScreenshotoneListDevices_DeviceSchema).describe(\"List of supported devices with their viewport parameters\"),\n}).passthrough().describe(\"Response containing the list of supported devices.\");\n\nexport const screenshotoneListDevices: AppAction<\n typeof ScreenshotoneListDevicesInput,\n typeof ScreenshotoneListDevicesOutput,\n typeof screenshotone.credential\n> = action(\"SCREENSHOTONE_LIST_DEVICES\", {\n slug: \"screenshotone-list-devices\",\n name: \"List Devices\",\n description: \"Tool to retrieve the list of supported devices for viewport emulation. Use when you need to get available device IDs and their viewport configurations for device emulation in screenshot operations.\",\n input: ScreenshotoneListDevicesInput,\n output: ScreenshotoneListDevicesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C;AACjH,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACxE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC5E,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACpE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACxH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,UAAU,wCAAwC,SAAS;CAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,0DAA0D,EAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { screenshotone } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-devices.d.ts
@@ -17,7 +19,7 @@ declare const ScreenshotoneListDevicesOutput: z.ZodObject<{
17
19
  userAgent: z.ZodNullable<z.ZodString>;
18
20
  }, z.core.$loose>>;
19
21
  }, z.core.$loose>;
20
- declare const screenshotoneListDevices: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const screenshotoneListDevices: AppAction<typeof ScreenshotoneListDevicesInput, typeof ScreenshotoneListDevicesOutput, typeof screenshotone.credential>;
21
23
  //#endregion
22
24
  export { screenshotoneListDevices };
23
25
  //# sourceMappingURL=list-devices.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-devices.d.cts","names":[],"sources":["../../src/actions/list-devices.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAe7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-devices.d.cts","names":[],"sources":["../../src/actions/list-devices.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAe7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,aAAA,CAAc,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { screenshotone } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-devices.d.ts
@@ -17,7 +19,7 @@ declare const ScreenshotoneListDevicesOutput: z.ZodObject<{
17
19
  userAgent: z.ZodNullable<z.ZodString>;
18
20
  }, z.core.$loose>>;
19
21
  }, z.core.$loose>;
20
- declare const screenshotoneListDevices: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const screenshotoneListDevices: AppAction<typeof ScreenshotoneListDevicesInput, typeof ScreenshotoneListDevicesOutput, typeof screenshotone.credential>;
21
23
  //#endregion
22
24
  export { screenshotoneListDevices };
23
25
  //# sourceMappingURL=list-devices.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-devices.d.mts","names":[],"sources":["../../src/actions/list-devices.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAe7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-devices.d.mts","names":[],"sources":["../../src/actions/list-devices.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAe7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,aAAA,CAAc,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-devices.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-devices.mjs","names":[],"sources":["../../src/actions/list-devices.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScreenshotoneListDevicesInput = z.object({}).describe(\"Request model for listing supported devices.\");\nconst ScreenshotoneListDevices_ViewportSchema = z.object({\n width: z.number().int().describe(\"Viewport width in pixels\").nullable(),\n height: z.number().int().describe(\"Viewport height in pixels\").nullable(),\n hasTouch: z.boolean().describe(\"Whether device has touch support\").nullable(),\n isMobile: z.boolean().describe(\"Whether device is mobile\").nullable(),\n isLandscape: z.boolean().describe(\"Whether device is in landscape orientation\").nullable(),\n deviceScaleFactor: z.number().describe(\"Device pixel ratio\").nullable(),\n}).passthrough().describe(\"Viewport configuration for a device.\");\nconst ScreenshotoneListDevices_DeviceSchema = z.object({\n id: z.string().describe(\"Device ID to use with viewport_device parameter (e.g., iphone_13_pro_max_landscape)\").nullable(),\n name: z.string().describe(\"Human-readable device name\").nullable(),\n viewport: ScreenshotoneListDevices_ViewportSchema.nullable(),\n userAgent: z.string().describe(\"User agent string for the device\").nullable(),\n}).passthrough().describe(\"Device information including viewport parameters.\");\nexport const ScreenshotoneListDevicesOutput = z.object({\n devices: z.array(ScreenshotoneListDevices_DeviceSchema).describe(\"List of supported devices with their viewport parameters\"),\n}).passthrough().describe(\"Response containing the list of supported devices.\");\n\nexport const screenshotoneListDevices = action(\"SCREENSHOTONE_LIST_DEVICES\", {\n slug: \"screenshotone-list-devices\",\n name: \"List Devices\",\n description: \"Tool to retrieve the list of supported devices for viewport emulation. Use when you need to get available device IDs and their viewport configurations for device emulation in screenshot operations.\",\n input: ScreenshotoneListDevicesInput,\n output: ScreenshotoneListD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[],"sources":["../../src/actions/list-devices.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { screenshotone } from \"../app\";\n\nexport const ScreenshotoneListDevicesInput = z.object({}).describe(\"Request model for listing supported devices.\");\nconst ScreenshotoneListDevices_ViewportSchema = z.object({\n width: z.number().int().describe(\"Viewport width in pixels\").nullable(),\n height: z.number().int().describe(\"Viewport height in pixels\").nullable(),\n hasTouch: z.boolean().describe(\"Whether device has touch support\").nullable(),\n isMobile: z.boolean().describe(\"Whether device is mobile\").nullable(),\n isLandscape: z.boolean().describe(\"Whether device is in landscape orientation\").nullable(),\n deviceScaleFactor: z.number().describe(\"Device pixel ratio\").nullable(),\n}).passthrough().describe(\"Viewport configuration for a device.\");\nconst ScreenshotoneListDevices_DeviceSchema = z.object({\n id: z.string().describe(\"Device ID to use with viewport_device parameter (e.g., iphone_13_pro_max_landscape)\").nullable(),\n name: z.string().describe(\"Human-readable device name\").nullable(),\n viewport: ScreenshotoneListDevices_ViewportSchema.nullable(),\n userAgent: z.string().describe(\"User agent string for the device\").nullable(),\n}).passthrough().describe(\"Device information including viewport parameters.\");\nexport const ScreenshotoneListDevicesOutput = z.object({\n devices: z.array(ScreenshotoneListDevices_DeviceSchema).describe(\"List of supported devices with their viewport parameters\"),\n}).passthrough().describe(\"Response containing the list of supported devices.\");\n\nexport const screenshotoneListDevices: AppAction<\n typeof ScreenshotoneListDevicesInput,\n typeof ScreenshotoneListDevicesOutput,\n typeof screenshotone.credential\n> = action(\"SCREENSHOTONE_LIST_DEVICES\", {\n slug: \"screenshotone-list-devices\",\n name: \"List Devices\",\n description: \"Tool to retrieve the list of supported devices for viewport emulation. Use when you need to get available device IDs and their viewport configurations for device emulation in screenshot operations.\",\n input: ScreenshotoneListDevicesInput,\n output: ScreenshotoneListDevicesOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C;AACjH,MAAM,0CAA0C,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACxE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC5E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACpE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACzF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAChE,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACxH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACjE,UAAU,wCAAwC,SAAS;CAC3D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAK7E,MAAa,2BAIT,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb4C,EAAE,OAAO,EACrD,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,0DAA0D,EAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/take-animated-screenshot.ts
@@ -1 +1 @@
1
- {"version":3,"file":"take-animated-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/take-animated-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScreenshotoneTakeAnimatedScreenshotInput = z.object({\n url: z.string().describe(\"The URL of the website to capture.\"),\n delay: z.number().int().describe(\"Delay before taking the screenshot in milliseconds. Set non-zero to allow heavy or complex pages to fully render before capture begins.\").optional(),\n width: z.number().int().describe(\"Width of the output animation. If specified, height must also be specified. Defaults to viewport width. Unset or misconfigured viewport_width/viewport_height can cause cropping or distortion when width is not explicitly set.\").optional(),\n clip_x: z.number().int().describe(\"X-coordinate for clipping the video. Only for GIF format.\").optional(),\n clip_y: z.number().int().describe(\"Y-coordinate for clipping the video. Only for GIF format.\").optional(),\n format: z.enum([\"mp4\", \"mov\", \"avi\", \"webm\", \"gif\"]).default(\"mp4\").describe(\"The format of the animated screenshot.\").optional(),\n height: z.number().int().describe(\"Height of the output animation. If specified, width must also be specified. Defaults to viewport height.\").optional(),\n duration: z.number().int().default(5).describe(\"Duration of the animation in seconds. Minimum 1, maximum 30.\").optional(),\n scenario: z.enum([\"default\", \"scroll\"]).default(\"default\").describe(\"Defines the animation behavior. `default` records the site as it appears after loading. `scroll` simulates scrolling.\").optional(),\n block_ads: z.boolean().describe(\"Block ads.\").optional(),\n full_page: z.boolean().describe(\"Capture the full scrollable page (Note: for animated, this might interact with scenario). Very long pages produce extremely tall output that may cause downstream display or storage issues.\").optional(),\n scroll_by: z.number().int().default(1000).describe(\"Pixels to scroll per step. Applicable if scenario is 'scroll'.\").optional(),\n clip_width: z.number().int().describe(\"Width for clipping the video. Only for GIF format.\").optional(),\n clip_height: z.number().int().describe(\"Height for clipping the video. Only for GIF format.\").optional(),\n scroll_back: z.boolean().default(true).describe(\"Scroll back to the top after reaching the bottom. Applicable if scenario is 'scroll'.\").optional(),\n aspect_ratio: z.string().describe(\"Aspect ratio for the animation (e.g., '16:9'). If specified, width and height are ignored.\").optional(),\n scroll_delay: z.number().int().default(500).describe(\"Delay in milliseconds between scrolls. Applicable if scenario is 'scroll'.\").optional(),\n scroll_easing: z.enum([\"linear\", \"ease_in_quad\", \"ease_out_quad\", \"ease_in_out_quad\", \"ease_in_cubic\", \"ease_out_cubic\", \"ease_in_out_cubic\", \"ease_in_quart\", \"ease_out_quart\", \"ease_in_out_quart\", \"ease_in_quint\", \"ease_out_quint\", \"ease_in_out_quint\"]).default(\"ease_in_out_quint\").describe(\"Scrolling easing effect. Applicable if scenario is 'scroll'.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width.\").optional(),\n omit_background: z.boolean().describe(\"Omit background (only for MOV format).\").optional(),\n scroll_complete: z.boolean().default(true).describe(\"Stop recording animation when full scrolling is completed. Applicable if scenario is 'scroll'.\").optional(),\n scroll_duration: z.number().int().default(1500).describe(\"Duration in milliseconds of one scroll. Applicable if scenario is 'scroll'.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height.\").optional(),\n scroll_start_delay: z.number().int().default(0).describe(\"Wait time in milliseconds before starting scrolling. Applicable if scenario is 'scroll'.\").optional(),\n device_scale_factor: z.number().describe(\"Device scale factor.\").optional(),\n scroll_to_end_after: z.number().int().describe(\"Scroll to the end after the specified duration in milliseconds with the specified easing in one scroll. Applicable if scenario is 'scroll'.\").optional(),\n scroll_try_navigate: z.boolean().describe(\"Navigate while scrolling and record the new opened page. Applicable if scenario is 'scroll'.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners.\").optional(),\n scroll_till_selector: z.string().describe(\"Scroll till the CSS selector is visible. Applicable if scenario is 'scroll'.\").optional(),\n scroll_back_algorithm: z.enum([\"once\", \"repeat\"]).default(\"once\").describe(\"Algorithm for scrolling back (`once` or `repeat`). Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_after: z.number().int().describe(\"Navigate after duration in milliseconds (default is half of the duration). Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_to_url: z.string().describe(\"URL to navigate to. Applicable if scenario is 'scroll'.\").optional(),\n scroll_start_immediately: z.boolean().default(true).describe(\"Scroll immediately or wait for scroll_delay. Applicable if scenario is 'scroll'.\").optional(),\n scroll_back_after_duration: z.number().int().describe(\"Scroll back after the specified duration in milliseconds. Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_link_hints: z.array(z.string()).describe(\"Hints for links to use for navigation if scroll_navigate_to_url is not specified. E.g. ['pricing', 'about']. Applicable if scenario is 'scroll'.\").optional(),\n scroll_stop_after_duration: z.number().int().describe(\"Stop scrolling after the specified duration in milliseconds. Use with scroll_complete=false and scroll_back=false. Applicable if scenario is 'scroll'.\").optional(),\n scroll_till_selector_adjust_top: z.number().int().describe(\"Adjust the top position of the selector in the viewport. Applicable if scenario is 'scroll'.\").optional(),\n});\nconst ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ScreenshotoneTakeAnimatedScreenshotOutput = z.object({\n file: ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema.nullable(),\n content_type: z.string().describe(\"The content type of the response (e.g., 'video/mp4', 'image/gif').\").nullable(),\n}).passthrough().describe(\"Response containing the animated screenshot file.\");\n\nexport const screenshotoneTakeAnimatedScreenshot = action(\"SCREENSHOTONE_TAKE_ANIMATED_SCREENSHOT\", {\n slug: \"screenshotone-take-animated-screenshot\",\n name: \"Take Animated Screenshot\",\n description: \"This tool captures an animated screenshot (video or GIF) of a given website URL. It allows customization of the animation format, duration, viewport dimensions, and animation scenario (e.g., scrolling).\",\n input: ScreenshotoneTakeAnimatedScreenshotInput,\n output: ScreenshotoneTakeAnimatedScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAA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AAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;AACtK,CAAC;AACD,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAM,2DAA2D,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,sCAAsCC,eAAAA,OAAO,0CAA0C;CAClG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"take-animated-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/take-animated-screenshot.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { screenshotone } from \"../app\";\n\nexport const ScreenshotoneTakeAnimatedScreenshotInput = z.object({\n url: z.string().describe(\"The URL of the website to capture.\"),\n delay: z.number().int().describe(\"Delay before taking the screenshot in milliseconds. Set non-zero to allow heavy or complex pages to fully render before capture begins.\").optional(),\n width: z.number().int().describe(\"Width of the output animation. If specified, height must also be specified. Defaults to viewport width. Unset or misconfigured viewport_width/viewport_height can cause cropping or distortion when width is not explicitly set.\").optional(),\n clip_x: z.number().int().describe(\"X-coordinate for clipping the video. Only for GIF format.\").optional(),\n clip_y: z.number().int().describe(\"Y-coordinate for clipping the video. Only for GIF format.\").optional(),\n format: z.enum([\"mp4\", \"mov\", \"avi\", \"webm\", \"gif\"]).default(\"mp4\").describe(\"The format of the animated screenshot.\").optional(),\n height: z.number().int().describe(\"Height of the output animation. If specified, width must also be specified. Defaults to viewport height.\").optional(),\n duration: z.number().int().default(5).describe(\"Duration of the animation in seconds. Minimum 1, maximum 30.\").optional(),\n scenario: z.enum([\"default\", \"scroll\"]).default(\"default\").describe(\"Defines the animation behavior. `default` records the site as it appears after loading. `scroll` simulates scrolling.\").optional(),\n block_ads: z.boolean().describe(\"Block ads.\").optional(),\n full_page: z.boolean().describe(\"Capture the full scrollable page (Note: for animated, this might interact with scenario). Very long pages produce extremely tall output that may cause downstream display or storage issues.\").optional(),\n scroll_by: z.number().int().default(1000).describe(\"Pixels to scroll per step. Applicable if scenario is 'scroll'.\").optional(),\n clip_width: z.number().int().describe(\"Width for clipping the video. Only for GIF format.\").optional(),\n clip_height: z.number().int().describe(\"Height for clipping the video. Only for GIF format.\").optional(),\n scroll_back: z.boolean().default(true).describe(\"Scroll back to the top after reaching the bottom. Applicable if scenario is 'scroll'.\").optional(),\n aspect_ratio: z.string().describe(\"Aspect ratio for the animation (e.g., '16:9'). If specified, width and height are ignored.\").optional(),\n scroll_delay: z.number().int().default(500).describe(\"Delay in milliseconds between scrolls. Applicable if scenario is 'scroll'.\").optional(),\n scroll_easing: z.enum([\"linear\", \"ease_in_quad\", \"ease_out_quad\", \"ease_in_out_quad\", \"ease_in_cubic\", \"ease_out_cubic\", \"ease_in_out_cubic\", \"ease_in_quart\", \"ease_out_quart\", \"ease_in_out_quart\", \"ease_in_quint\", \"ease_out_quint\", \"ease_in_out_quint\"]).default(\"ease_in_out_quint\").describe(\"Scrolling easing effect. Applicable if scenario is 'scroll'.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width.\").optional(),\n omit_background: z.boolean().describe(\"Omit background (only for MOV format).\").optional(),\n scroll_complete: z.boolean().default(true).describe(\"Stop recording animation when full scrolling is completed. Applicable if scenario is 'scroll'.\").optional(),\n scroll_duration: z.number().int().default(1500).describe(\"Duration in milliseconds of one scroll. Applicable if scenario is 'scroll'.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height.\").optional(),\n scroll_start_delay: z.number().int().default(0).describe(\"Wait time in milliseconds before starting scrolling. Applicable if scenario is 'scroll'.\").optional(),\n device_scale_factor: z.number().describe(\"Device scale factor.\").optional(),\n scroll_to_end_after: z.number().int().describe(\"Scroll to the end after the specified duration in milliseconds with the specified easing in one scroll. Applicable if scenario is 'scroll'.\").optional(),\n scroll_try_navigate: z.boolean().describe(\"Navigate while scrolling and record the new opened page. Applicable if scenario is 'scroll'.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners.\").optional(),\n scroll_till_selector: z.string().describe(\"Scroll till the CSS selector is visible. Applicable if scenario is 'scroll'.\").optional(),\n scroll_back_algorithm: z.enum([\"once\", \"repeat\"]).default(\"once\").describe(\"Algorithm for scrolling back (`once` or `repeat`). Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_after: z.number().int().describe(\"Navigate after duration in milliseconds (default is half of the duration). Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_to_url: z.string().describe(\"URL to navigate to. Applicable if scenario is 'scroll'.\").optional(),\n scroll_start_immediately: z.boolean().default(true).describe(\"Scroll immediately or wait for scroll_delay. Applicable if scenario is 'scroll'.\").optional(),\n scroll_back_after_duration: z.number().int().describe(\"Scroll back after the specified duration in milliseconds. Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_link_hints: z.array(z.string()).describe(\"Hints for links to use for navigation if scroll_navigate_to_url is not specified. E.g. ['pricing', 'about']. Applicable if scenario is 'scroll'.\").optional(),\n scroll_stop_after_duration: z.number().int().describe(\"Stop scrolling after the specified duration in milliseconds. Use with scroll_complete=false and scroll_back=false. Applicable if scenario is 'scroll'.\").optional(),\n scroll_till_selector_adjust_top: z.number().int().describe(\"Adjust the top position of the selector in the viewport. Applicable if scenario is 'scroll'.\").optional(),\n});\nconst ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ScreenshotoneTakeAnimatedScreenshotOutput = z.object({\n file: ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema.nullable(),\n content_type: z.string().describe(\"The content type of the response (e.g., 'video/mp4', 'image/gif').\").nullable(),\n}).passthrough().describe(\"Response containing the animated screenshot file.\");\n\nexport const screenshotoneTakeAnimatedScreenshot: AppAction<\n typeof ScreenshotoneTakeAnimatedScreenshotInput,\n typeof ScreenshotoneTakeAnimatedScreenshotOutput,\n typeof screenshotone.credential\n> = action(\"SCREENSHOTONE_TAKE_ANIMATED_SCREENSHOT\", {\n slug: \"screenshotone-take-animated-screenshot\",\n name: \"Take Animated Screenshot\",\n description: \"This tool captures an animated screenshot (video or GIF) of a given website URL. It allows customization of the animation format, duration, viewport dimensions, and animation scenario (e.g., scrolling).\",\n input: ScreenshotoneTakeAnimatedScreenshotInput,\n output: ScreenshotoneTakeAnimatedScreenshotOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACrL,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kOAAkO,CAAC,CAAC,SAAS;CAC9Q,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACxG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACxG,QAAQA,I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D,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,sCAITC,eAAAA,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { screenshotone } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/take-animated-screenshot.d.ts
@@ -74,45 +76,7 @@ declare const ScreenshotoneTakeAnimatedScreenshotOutput: z.ZodObject<{
74
76
  }, z.core.$loose>>;
75
77
  content_type: z.ZodNullable<z.ZodString>;
76
78
  }, z.core.$loose>;
77
- declare const screenshotoneTakeAnimatedScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
78
- url: string;
79
- delay?: number | undefined;
80
- width?: number | undefined;
81
- clip_x?: number | undefined;
82
- clip_y?: number | undefined;
83
- format?: "mp4" | "mov" | "avi" | "webm" | "gif" | undefined;
84
- height?: number | undefined;
85
- duration?: number | undefined;
86
- scenario?: "default" | "scroll" | undefined;
87
- block_ads?: boolean | undefined;
88
- full_page?: boolean | undefined;
89
- scroll_by?: number | undefined;
90
- clip_width?: number | undefined;
91
- clip_height?: number | undefined;
92
- scroll_back?: boolean | undefined;
93
- aspect_ratio?: string | undefined;
94
- scroll_delay?: number | undefined;
95
- scroll_easing?: "linear" | "ease_in_quad" | "ease_out_quad" | "ease_in_out_quad" | "ease_in_cubic" | "ease_out_cubic" | "ease_in_out_cubic" | "ease_in_quart" | "ease_out_quart" | "ease_in_out_quart" | "ease_in_quint" | "ease_out_quint" | "ease_in_out_quint" | undefined;
96
- viewport_width?: number | undefined;
97
- omit_background?: boolean | undefined;
98
- scroll_complete?: boolean | undefined;
99
- scroll_duration?: number | undefined;
100
- viewport_height?: number | undefined;
101
- scroll_start_delay?: number | undefined;
102
- device_scale_factor?: number | undefined;
103
- scroll_to_end_after?: number | undefined;
104
- scroll_try_navigate?: boolean | undefined;
105
- block_cookie_banners?: boolean | undefined;
106
- scroll_till_selector?: string | undefined;
107
- scroll_back_algorithm?: "repeat" | "once" | undefined;
108
- scroll_navigate_after?: number | undefined;
109
- scroll_navigate_to_url?: string | undefined;
110
- scroll_start_immediately?: boolean | undefined;
111
- scroll_back_after_duration?: number | undefined;
112
- scroll_navigate_link_hints?: string[] | undefined;
113
- scroll_stop_after_duration?: number | undefined;
114
- scroll_till_selector_adjust_top?: number | undefined;
115
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
79
+ declare const screenshotoneTakeAnimatedScreenshot: AppAction<typeof ScreenshotoneTakeAnimatedScreenshotInput, typeof ScreenshotoneTakeAnimatedScreenshotOutput, typeof screenshotone.credential>;
116
80
  //#endregion
117
81
  export { screenshotoneTakeAnimatedScreenshot };
118
82
  //# sourceMappingURL=take-animated-screenshot.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"take-animated-screenshot.d.cts","names":[],"sources":["../../src/actions/take-animated-screenshot.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4CxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;cAKzC,mCAAA,gCAAmC,wBAAA"}
1
+ {"version":3,"file":"take-animated-screenshot.d.cts","names":[],"sources":["../../src/actions/take-animated-screenshot.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4CxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;cAKzC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,SACA,aAAA,CAAc,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { screenshotone } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/take-animated-screenshot.d.ts
@@ -74,45 +76,7 @@ declare const ScreenshotoneTakeAnimatedScreenshotOutput: z.ZodObject<{
74
76
  }, z.core.$loose>>;
75
77
  content_type: z.ZodNullable<z.ZodString>;
76
78
  }, z.core.$loose>;
77
- declare const screenshotoneTakeAnimatedScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
78
- url: string;
79
- delay?: number | undefined;
80
- width?: number | undefined;
81
- clip_x?: number | undefined;
82
- clip_y?: number | undefined;
83
- format?: "mp4" | "mov" | "avi" | "webm" | "gif" | undefined;
84
- height?: number | undefined;
85
- duration?: number | undefined;
86
- scenario?: "default" | "scroll" | undefined;
87
- block_ads?: boolean | undefined;
88
- full_page?: boolean | undefined;
89
- scroll_by?: number | undefined;
90
- clip_width?: number | undefined;
91
- clip_height?: number | undefined;
92
- scroll_back?: boolean | undefined;
93
- aspect_ratio?: string | undefined;
94
- scroll_delay?: number | undefined;
95
- scroll_easing?: "linear" | "ease_in_quad" | "ease_out_quad" | "ease_in_out_quad" | "ease_in_cubic" | "ease_out_cubic" | "ease_in_out_cubic" | "ease_in_quart" | "ease_out_quart" | "ease_in_out_quart" | "ease_in_quint" | "ease_out_quint" | "ease_in_out_quint" | undefined;
96
- viewport_width?: number | undefined;
97
- omit_background?: boolean | undefined;
98
- scroll_complete?: boolean | undefined;
99
- scroll_duration?: number | undefined;
100
- viewport_height?: number | undefined;
101
- scroll_start_delay?: number | undefined;
102
- device_scale_factor?: number | undefined;
103
- scroll_to_end_after?: number | undefined;
104
- scroll_try_navigate?: boolean | undefined;
105
- block_cookie_banners?: boolean | undefined;
106
- scroll_till_selector?: string | undefined;
107
- scroll_back_algorithm?: "repeat" | "once" | undefined;
108
- scroll_navigate_after?: number | undefined;
109
- scroll_navigate_to_url?: string | undefined;
110
- scroll_start_immediately?: boolean | undefined;
111
- scroll_back_after_duration?: number | undefined;
112
- scroll_navigate_link_hints?: string[] | undefined;
113
- scroll_stop_after_duration?: number | undefined;
114
- scroll_till_selector_adjust_top?: number | undefined;
115
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
79
+ declare const screenshotoneTakeAnimatedScreenshot: AppAction<typeof ScreenshotoneTakeAnimatedScreenshotInput, typeof ScreenshotoneTakeAnimatedScreenshotOutput, typeof screenshotone.credential>;
116
80
  //#endregion
117
81
  export { screenshotoneTakeAnimatedScreenshot };
118
82
  //# sourceMappingURL=take-animated-screenshot.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"take-animated-screenshot.d.mts","names":[],"sources":["../../src/actions/take-animated-screenshot.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4CxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;cAKzC,mCAAA,gCAAmC,wBAAA"}
1
+ {"version":3,"file":"take-animated-screenshot.d.mts","names":[],"sources":["../../src/actions/take-animated-screenshot.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4CxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;cAKzC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,SACA,aAAA,CAAc,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/take-animated-screenshot.ts
@@ -1 +1 @@
1
- {"version":3,"file":"take-animated-screenshot.mjs","names":[],"sources":["../../src/actions/take-animated-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScreenshotoneTakeAnimatedScreenshotInput = z.object({\n url: z.string().describe(\"The URL of the website to capture.\"),\n delay: z.number().int().describe(\"Delay before taking the screenshot in milliseconds. Set non-zero to allow heavy or complex pages to fully render before capture begins.\").optional(),\n width: z.number().int().describe(\"Width of the output animation. If specified, height must also be specified. Defaults to viewport width. Unset or misconfigured viewport_width/viewport_height can cause cropping or distortion when width is not explicitly set.\").optional(),\n clip_x: z.number().int().describe(\"X-coordinate for clipping the video. Only for GIF format.\").optional(),\n clip_y: z.number().int().describe(\"Y-coordinate for clipping the video. Only for GIF format.\").optional(),\n format: z.enum([\"mp4\", \"mov\", \"avi\", \"webm\", \"gif\"]).default(\"mp4\").describe(\"The format of the animated screenshot.\").optional(),\n height: z.number().int().describe(\"Height of the output animation. If specified, width must also be specified. Defaults to viewport height.\").optional(),\n duration: z.number().int().default(5).describe(\"Duration of the animation in seconds. Minimum 1, maximum 30.\").optional(),\n scenario: z.enum([\"default\", \"scroll\"]).default(\"default\").describe(\"Defines the animation behavior. `default` records the site as it appears after loading. `scroll` simulates scrolling.\").optional(),\n block_ads: z.boolean().describe(\"Block ads.\").optional(),\n full_page: z.boolean().describe(\"Capture the full scrollable page (Note: for animated, this might interact with scenario). Very long pages produce extremely tall output that may cause downstream display or storage issues.\").optional(),\n scroll_by: z.number().int().default(1000).describe(\"Pixels to scroll per step. Applicable if scenario is 'scroll'.\").optional(),\n clip_width: z.number().int().describe(\"Width for clipping the video. Only for GIF format.\").optional(),\n clip_height: z.number().int().describe(\"Height for clipping the video. Only for GIF format.\").optional(),\n scroll_back: z.boolean().default(true).describe(\"Scroll back to the top after reaching the bottom. Applicable if scenario is 'scroll'.\").optional(),\n aspect_ratio: z.string().describe(\"Aspect ratio for the animation (e.g., '16:9'). If specified, width and height are ignored.\").optional(),\n scroll_delay: z.number().int().default(500).describe(\"Delay in milliseconds between scrolls. Applicable if scenario is 'scroll'.\").optional(),\n scroll_easing: z.enum([\"linear\", \"ease_in_quad\", \"ease_out_quad\", \"ease_in_out_quad\", \"ease_in_cubic\", \"ease_out_cubic\", \"ease_in_out_cubic\", \"ease_in_quart\", \"ease_out_quart\", \"ease_in_out_quart\", \"ease_in_quint\", \"ease_out_quint\", \"ease_in_out_quint\"]).default(\"ease_in_out_quint\").describe(\"Scrolling easing effect. Applicable if scenario is 'scroll'.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width.\").optional(),\n omit_background: z.boolean().describe(\"Omit background (only for MOV format).\").optional(),\n scroll_complete: z.boolean().default(true).describe(\"Stop recording animation when full scrolling is completed. Applicable if scenario is 'scroll'.\").optional(),\n scroll_duration: z.number().int().default(1500).describe(\"Duration in milliseconds of one scroll. Applicable if scenario is 'scroll'.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height.\").optional(),\n scroll_start_delay: z.number().int().default(0).describe(\"Wait time in milliseconds before starting scrolling. Applicable if scenario is 'scroll'.\").optional(),\n device_scale_factor: z.number().describe(\"Device scale factor.\").optional(),\n scroll_to_end_after: z.number().int().describe(\"Scroll to the end after the specified duration in milliseconds with the specified easing in one scroll. Applicable if scenario is 'scroll'.\").optional(),\n scroll_try_navigate: z.boolean().describe(\"Navigate while scrolling and record the new opened page. Applicable if scenario is 'scroll'.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners.\").optional(),\n scroll_till_selector: z.string().describe(\"Scroll till the CSS selector is visible. Applicable if scenario is 'scroll'.\").optional(),\n scroll_back_algorithm: z.enum([\"once\", \"repeat\"]).default(\"once\").describe(\"Algorithm for scrolling back (`once` or `repeat`). Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_after: z.number().int().describe(\"Navigate after duration in milliseconds (default is half of the duration). Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_to_url: z.string().describe(\"URL to navigate to. Applicable if scenario is 'scroll'.\").optional(),\n scroll_start_immediately: z.boolean().default(true).describe(\"Scroll immediately or wait for scroll_delay. Applicable if scenario is 'scroll'.\").optional(),\n scroll_back_after_duration: z.number().int().describe(\"Scroll back after the specified duration in milliseconds. Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_link_hints: z.array(z.string()).describe(\"Hints for links to use for navigation if scroll_navigate_to_url is not specified. E.g. ['pricing', 'about']. Applicable if scenario is 'scroll'.\").optional(),\n scroll_stop_after_duration: z.number().int().describe(\"Stop scrolling after the specified duration in milliseconds. Use with scroll_complete=false and scroll_back=false. Applicable if scenario is 'scroll'.\").optional(),\n scroll_till_selector_adjust_top: z.number().int().describe(\"Adjust the top position of the selector in the viewport. Applicable if scenario is 'scroll'.\").optional(),\n});\nconst ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ScreenshotoneTakeAnimatedScreenshotOutput = z.object({\n file: ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema.nullable(),\n content_type: z.string().describe(\"The content type of the response (e.g., 'video/mp4', 'image/gif').\").nullable(),\n}).passthrough().describe(\"Response containing the animated screenshot file.\");\n\nexport const screenshotoneTakeAnimatedScreenshot = action(\"SCREENSHOTONE_TAKE_ANIMATED_SCREENSHOT\", {\n slug: \"screenshotone-take-animated-screenshot\",\n name: \"Take Animated Screenshot\",\n description: \"This tool captures an animated screenshot (video or GIF) of a given website URL. It allows customization of the animation format, duration, viewport dimensions, and animation scenario (e.g., scrolling).\",\n input: ScreenshotoneTakeAnimatedScreenshotInput,\n output: ScreenshotoneTakeAnimatedScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,S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,CAAC,YAAY;AAMf,MAAa,sCAAsC,OAAO,0CAA0C;CAClG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuD,EAAE,OAAO;EAChE,MAAM,2DAA2D,SAAS;EAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"take-animated-screenshot.mjs","names":[],"sources":["../../src/actions/take-animated-screenshot.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { screenshotone } from \"../app\";\n\nexport const ScreenshotoneTakeAnimatedScreenshotInput = z.object({\n url: z.string().describe(\"The URL of the website to capture.\"),\n delay: z.number().int().describe(\"Delay before taking the screenshot in milliseconds. Set non-zero to allow heavy or complex pages to fully render before capture begins.\").optional(),\n width: z.number().int().describe(\"Width of the output animation. If specified, height must also be specified. Defaults to viewport width. Unset or misconfigured viewport_width/viewport_height can cause cropping or distortion when width is not explicitly set.\").optional(),\n clip_x: z.number().int().describe(\"X-coordinate for clipping the video. Only for GIF format.\").optional(),\n clip_y: z.number().int().describe(\"Y-coordinate for clipping the video. Only for GIF format.\").optional(),\n format: z.enum([\"mp4\", \"mov\", \"avi\", \"webm\", \"gif\"]).default(\"mp4\").describe(\"The format of the animated screenshot.\").optional(),\n height: z.number().int().describe(\"Height of the output animation. If specified, width must also be specified. Defaults to viewport height.\").optional(),\n duration: z.number().int().default(5).describe(\"Duration of the animation in seconds. Minimum 1, maximum 30.\").optional(),\n scenario: z.enum([\"default\", \"scroll\"]).default(\"default\").describe(\"Defines the animation behavior. `default` records the site as it appears after loading. `scroll` simulates scrolling.\").optional(),\n block_ads: z.boolean().describe(\"Block ads.\").optional(),\n full_page: z.boolean().describe(\"Capture the full scrollable page (Note: for animated, this might interact with scenario). Very long pages produce extremely tall output that may cause downstream display or storage issues.\").optional(),\n scroll_by: z.number().int().default(1000).describe(\"Pixels to scroll per step. Applicable if scenario is 'scroll'.\").optional(),\n clip_width: z.number().int().describe(\"Width for clipping the video. Only for GIF format.\").optional(),\n clip_height: z.number().int().describe(\"Height for clipping the video. Only for GIF format.\").optional(),\n scroll_back: z.boolean().default(true).describe(\"Scroll back to the top after reaching the bottom. Applicable if scenario is 'scroll'.\").optional(),\n aspect_ratio: z.string().describe(\"Aspect ratio for the animation (e.g., '16:9'). If specified, width and height are ignored.\").optional(),\n scroll_delay: z.number().int().default(500).describe(\"Delay in milliseconds between scrolls. Applicable if scenario is 'scroll'.\").optional(),\n scroll_easing: z.enum([\"linear\", \"ease_in_quad\", \"ease_out_quad\", \"ease_in_out_quad\", \"ease_in_cubic\", \"ease_out_cubic\", \"ease_in_out_cubic\", \"ease_in_quart\", \"ease_out_quart\", \"ease_in_out_quart\", \"ease_in_quint\", \"ease_out_quint\", \"ease_in_out_quint\"]).default(\"ease_in_out_quint\").describe(\"Scrolling easing effect. Applicable if scenario is 'scroll'.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width.\").optional(),\n omit_background: z.boolean().describe(\"Omit background (only for MOV format).\").optional(),\n scroll_complete: z.boolean().default(true).describe(\"Stop recording animation when full scrolling is completed. Applicable if scenario is 'scroll'.\").optional(),\n scroll_duration: z.number().int().default(1500).describe(\"Duration in milliseconds of one scroll. Applicable if scenario is 'scroll'.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height.\").optional(),\n scroll_start_delay: z.number().int().default(0).describe(\"Wait time in milliseconds before starting scrolling. Applicable if scenario is 'scroll'.\").optional(),\n device_scale_factor: z.number().describe(\"Device scale factor.\").optional(),\n scroll_to_end_after: z.number().int().describe(\"Scroll to the end after the specified duration in milliseconds with the specified easing in one scroll. Applicable if scenario is 'scroll'.\").optional(),\n scroll_try_navigate: z.boolean().describe(\"Navigate while scrolling and record the new opened page. Applicable if scenario is 'scroll'.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners.\").optional(),\n scroll_till_selector: z.string().describe(\"Scroll till the CSS selector is visible. Applicable if scenario is 'scroll'.\").optional(),\n scroll_back_algorithm: z.enum([\"once\", \"repeat\"]).default(\"once\").describe(\"Algorithm for scrolling back (`once` or `repeat`). Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_after: z.number().int().describe(\"Navigate after duration in milliseconds (default is half of the duration). Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_to_url: z.string().describe(\"URL to navigate to. Applicable if scenario is 'scroll'.\").optional(),\n scroll_start_immediately: z.boolean().default(true).describe(\"Scroll immediately or wait for scroll_delay. Applicable if scenario is 'scroll'.\").optional(),\n scroll_back_after_duration: z.number().int().describe(\"Scroll back after the specified duration in milliseconds. Applicable if scenario is 'scroll'.\").optional(),\n scroll_navigate_link_hints: z.array(z.string()).describe(\"Hints for links to use for navigation if scroll_navigate_to_url is not specified. E.g. ['pricing', 'about']. Applicable if scenario is 'scroll'.\").optional(),\n scroll_stop_after_duration: z.number().int().describe(\"Stop scrolling after the specified duration in milliseconds. Use with scroll_complete=false and scroll_back=false. Applicable if scenario is 'scroll'.\").optional(),\n scroll_till_selector_adjust_top: z.number().int().describe(\"Adjust the top position of the selector in the viewport. Applicable if scenario is 'scroll'.\").optional(),\n});\nconst ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ScreenshotoneTakeAnimatedScreenshotOutput = z.object({\n file: ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema.nullable(),\n content_type: z.string().describe(\"The content type of the response (e.g., 'video/mp4', 'image/gif').\").nullable(),\n}).passthrough().describe(\"Response containing the animated screenshot file.\");\n\nexport const screenshotoneTakeAnimatedScreenshot: AppAction<\n typeof ScreenshotoneTakeAnimatedScreenshotInput,\n typeof ScreenshotoneTakeAnimatedScreenshotOutput,\n typeof screenshotone.credential\n> = action(\"SCREENSHOTONE_TAKE_ANIMATED_SCREENSHOT\", {\n slug: \"screenshotone-take-animated-screenshot\",\n name: \"Take Animated Screenshot\",\n description: \"This tool captures an animated screenshot (video or GIF) of a given website URL. It allows customization of the animation format, duration, viewport dimensions, and animation scenario (e.g., scrolling).\",\n input: ScreenshotoneTakeAnimatedScreenshotInput,\n output: ScreenshotoneTakeAnimatedScreenshotOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;CACrL,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kOAAkO,CAAC,CAAC,SAAS;CAC9Q,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACxG,QAAQ,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAQ;CAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACvJ,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACxH,UAAU,EAAE,KAAK,CAAC,WAAW,QAAQ,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS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,IAAI,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CACzN,iCAAiC,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;AACtK,CAAC;AACD,MAAM,6DAA6D,EAAE,OAAO;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,sCAIT,OAAO,0CAA0C;CACnD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduD,EAAE,OAAO;EAChE,MAAM,2DAA2D,SAAS;EAC1E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/take-bulk-screenshots.ts
@@ -1 +1 @@
1
- {"version":3,"file":"take-bulk-screenshots.cjs","names":["z","action"],"sources":["../../src/actions/take-bulk-screenshots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScreenshotoneTakeBulkScreenshotsInput = z.object({\n execute: z.boolean().default(false).describe(\"Execute all screenshot requests immediately instead of lazy loading. When false (default), screenshots are taken when downloaded. When true, screenshots are taken immediately.\").optional(),\n options: z.object({\n url: z.string().describe(\"Default URL to screenshot. Can be overridden by individual requests.\").optional(),\n html: z.string().describe(\"Default raw HTML content to render instead of URL. Can be overridden by individual requests.\").optional(),\n cache: z.boolean().describe(\"Default caching setting. Can be overridden by individual requests.\").optional(),\n delay: z.number().int().describe(\"Default delay in milliseconds before taking screenshot. Can be overridden by individual requests.\").optional(),\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\"]).describe(\"Image format options for screenshots.\").optional(),\n markdown: z.string().describe(\"Default markdown content to render. Can be overridden by individual requests.\").optional(),\n block_ads: z.boolean().describe(\"Default setting to block ads. Can be overridden by individual requests.\").optional(),\n cache_ttl: z.number().int().describe(\"Default cache TTL in seconds. Can be overridden by individual requests.\").optional(),\n full_page: z.boolean().describe(\"Default setting to capture full page. Can be overridden by individual requests.\").optional(),\n block_chats: z.boolean().describe(\"Default setting to block chat widgets. Can be overridden by individual requests.\").optional(),\n storage_path: z.string().describe(\"Default S3 storage path for screenshots. Can be overridden by individual requests.\").optional(),\n block_trackers: z.boolean().describe(\"Default setting to block trackers. Can be overridden by individual requests.\").optional(),\n viewport_width: z.number().int().describe(\"Default viewport width in pixels. Can be overridden by individual requests.\").optional(),\n viewport_device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Preset device viewport options.\").optional(),\n viewport_height: z.number().int().describe(\"Default viewport height in pixels. Can be overridden by individual requests.\").optional(),\n device_scale_factor: z.number().describe(\"Default device pixel ratio. Can be overridden by individual requests.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Default setting to block cookie banners. Can be overridden by individual requests.\").optional(),\n}).describe(\"Default options applied to all screenshot requests in the bulk operation.\").optional(),\n optimize: z.boolean().default(false).describe(\"Optimize bulk screenshots for same URLs with different parameters. Only works when execute=true. Improves performance when taking multiple screenshots of the same site.\").optional(),\n requests: z.array(z.object({\n url: z.string().describe(\"URL to screenshot. Overrides default if specified.\").optional(),\n html: z.string().describe(\"Raw HTML content to render. Overrides default if specified.\").optional(),\n cache: z.boolean().describe(\"Caching setting. Overrides default if specified.\").optional(),\n delay: z.number().int().describe(\"Delay in milliseconds before taking screenshot. Overrides default if specified.\").optional(),\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\"]).describe(\"Image format options for screenshots.\").optional(),\n markdown: z.string().describe(\"Markdown content to render. Overrides default if specified.\").optional(),\n block_ads: z.boolean().describe(\"Block ads. Overrides default if specified.\").optional(),\n cache_ttl: z.number().int().describe(\"Cache TTL in seconds. Overrides default if specified.\").optional(),\n full_page: z.boolean().describe(\"Capture full page. Overrides default if specified.\").optional(),\n block_chats: z.boolean().describe(\"Block chat widgets. Overrides default if specified.\").optional(),\n storage_path: z.string().describe(\"S3 storage path for this screenshot. Overrides default if specified.\").optional(),\n block_trackers: z.boolean().describe(\"Block trackers. Overrides default if specified.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width in pixels. Overrides default if specified.\").optional(),\n viewport_device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Preset device viewport options.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height in pixels. Overrides default if specified.\").optional(),\n device_scale_factor: z.number().describe(\"Device pixel ratio. Overrides default if specified.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners. Overrides default if specified.\").optional(),\n}).passthrough().describe(\"Individual screenshot request that can override default options.\")).describe(\"Array of individual screenshot requests. Maximum 20 requests per bulk call.\"),\n}).describe(\"Request model for taking multiple screenshots in a single API call.\");\nconst ScreenshotoneTakeBulkScreenshots_ExecutionResponseSchema = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Error details if execution was not successful.\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code of the execution.\").nullable(),\n statusText: z.string().describe(\"HTTP status text of the execution.\").nullable(),\n is_successful: z.boolean().describe(\"Whether the screenshot execution was successful.\").nullable(),\n}).passthrough().describe(\"Execution response for individual screenshot when execute=true.\");\nconst ScreenshotoneTakeBulkScreenshots_BulkScreenshotResponseSchema = z.object({\n url: z.string().describe(\"URL to download the screenshot. For lazy loading (execute=false), the screenshot will be taken when this URL is accessed.\").nullable(),\n response: ScreenshotoneTakeBulkScreenshots_ExecutionResponseSchema.nullable().optional(),\n}).passthrough().describe(\"Individual response for each screenshot in the bulk request.\");\nexport const ScreenshotoneTakeBulkScreenshotsOutput = z.object({\n responses: z.array(ScreenshotoneTakeBulkScreenshots_BulkScreenshotResponseSchema).describe(\"Array of response objects containing screenshot URLs and execution status.\"),\n}).passthrough().describe(\"Response containing URLs for all requested screenshots.\");\n\nexport const screenshotoneTakeBulkScreenshots = action(\"SCREENSHOTONE_TAKE_BULK_SCREENSHOTS\", {\n slug: \"screenshotone-take-bulk-screenshots\",\n name: \"Take Bulk Screenshots\",\n description: \"Tool to take multiple screenshots in a single request with shared defaults and individual overrides. Use when you need to capture screenshots of multiple URLs or the same URL with different parameters. Supports lazy loading (default) where screenshots are taken on download, or immediate execution with execute=true.\",\n input: ScreenshotoneTakeBulkScreenshotsInput,\n output: ScreenshotoneTakeBulkScreenshotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACzO,SAASA,IAAAA,EAAE,OAAO;EAClB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC1G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACnI,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC3G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EAC/I,QAAQA,IAAAA,EAAE,KAAK;GAAC;GAAO;GAAO;GAAQ;EAAM,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACxH,WAAWA,IAAAA,EAAE,QAAQ,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AAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"take-bulk-screenshots.cjs","names":["z","action"],"sources":["../../src/actions/take-bulk-screenshots.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { screenshotone } from \"../app\";\n\nexport const ScreenshotoneTakeBulkScreenshotsInput = z.object({\n execute: z.boolean().default(false).describe(\"Execute all screenshot requests immediately instead of lazy loading. When false (default), screenshots are taken when downloaded. When true, screenshots are taken immediately.\").optional(),\n options: z.object({\n url: z.string().describe(\"Default URL to screenshot. Can be overridden by individual requests.\").optional(),\n html: z.string().describe(\"Default raw HTML content to render instead of URL. Can be overridden by individual requests.\").optional(),\n cache: z.boolean().describe(\"Default caching setting. Can be overridden by individual requests.\").optional(),\n delay: z.number().int().describe(\"Default delay in milliseconds before taking screenshot. Can be overridden by individual requests.\").optional(),\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\"]).describe(\"Image format options for screenshots.\").optional(),\n markdown: z.string().describe(\"Default markdown content to render. Can be overridden by individual requests.\").optional(),\n block_ads: z.boolean().describe(\"Default setting to block ads. Can be overridden by individual requests.\").optional(),\n cache_ttl: z.number().int().describe(\"Default cache TTL in seconds. Can be overridden by individual requests.\").optional(),\n full_page: z.boolean().describe(\"Default setting to capture full page. Can be overridden by individual requests.\").optional(),\n block_chats: z.boolean().describe(\"Default setting to block chat widgets. Can be overridden by individual requests.\").optional(),\n storage_path: z.string().describe(\"Default S3 storage path for screenshots. Can be overridden by individual requests.\").optional(),\n block_trackers: z.boolean().describe(\"Default setting to block trackers. Can be overridden by individual requests.\").optional(),\n viewport_width: z.number().int().describe(\"Default viewport width in pixels. Can be overridden by individual requests.\").optional(),\n viewport_device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Preset device viewport options.\").optional(),\n viewport_height: z.number().int().describe(\"Default viewport height in pixels. Can be overridden by individual requests.\").optional(),\n device_scale_factor: z.number().describe(\"Default device pixel ratio. Can be overridden by individual requests.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Default setting to block cookie banners. Can be overridden by individual requests.\").optional(),\n}).describe(\"Default options applied to all screenshot requests in the bulk operation.\").optional(),\n optimize: z.boolean().default(false).describe(\"Optimize bulk screenshots for same URLs with different parameters. Only works when execute=true. Improves performance when taking multiple screenshots of the same site.\").optional(),\n requests: z.array(z.object({\n url: z.string().describe(\"URL to screenshot. Overrides default if specified.\").optional(),\n html: z.string().describe(\"Raw HTML content to render. Overrides default if specified.\").optional(),\n cache: z.boolean().describe(\"Caching setting. Overrides default if specified.\").optional(),\n delay: z.number().int().describe(\"Delay in milliseconds before taking screenshot. Overrides default if specified.\").optional(),\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\"]).describe(\"Image format options for screenshots.\").optional(),\n markdown: z.string().describe(\"Markdown content to render. Overrides default if specified.\").optional(),\n block_ads: z.boolean().describe(\"Block ads. Overrides default if specified.\").optional(),\n cache_ttl: z.number().int().describe(\"Cache TTL in seconds. Overrides default if specified.\").optional(),\n full_page: z.boolean().describe(\"Capture full page. Overrides default if specified.\").optional(),\n block_chats: z.boolean().describe(\"Block chat widgets. Overrides default if specified.\").optional(),\n storage_path: z.string().describe(\"S3 storage path for this screenshot. Overrides default if specified.\").optional(),\n block_trackers: z.boolean().describe(\"Block trackers. Overrides default if specified.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width in pixels. Overrides default if specified.\").optional(),\n viewport_device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Preset device viewport options.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height in pixels. Overrides default if specified.\").optional(),\n device_scale_factor: z.number().describe(\"Device pixel ratio. Overrides default if specified.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners. Overrides default if specified.\").optional(),\n}).passthrough().describe(\"Individual screenshot request that can override default options.\")).describe(\"Array of individual screenshot requests. Maximum 20 requests per bulk call.\"),\n}).describe(\"Request model for taking multiple screenshots in a single API call.\");\nconst ScreenshotoneTakeBulkScreenshots_ExecutionResponseSchema = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Error details if execution was not successful.\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code of the execution.\").nullable(),\n statusText: z.string().describe(\"HTTP status text of the execution.\").nullable(),\n is_successful: z.boolean().describe(\"Whether the screenshot execution was successful.\").nullable(),\n}).passthrough().describe(\"Execution response for individual screenshot when execute=true.\");\nconst ScreenshotoneTakeBulkScreenshots_BulkScreenshotResponseSchema = z.object({\n url: z.string().describe(\"URL to download the screenshot. For lazy loading (execute=false), the screenshot will be taken when this URL is accessed.\").nullable(),\n response: ScreenshotoneTakeBulkScreenshots_ExecutionResponseSchema.nullable().optional(),\n}).passthrough().describe(\"Individual response for each screenshot in the bulk request.\");\nexport const ScreenshotoneTakeBulkScreenshotsOutput = z.object({\n responses: z.array(ScreenshotoneTakeBulkScreenshots_BulkScreenshotResponseSchema).describe(\"Array of response objects containing screenshot URLs and execution status.\"),\n}).passthrough().describe(\"Response containing URLs for all requested screenshots.\");\n\nexport const screenshotoneTakeBulkScreenshots: AppAction<\n typeof ScreenshotoneTakeBulkScreenshotsInput,\n typeof ScreenshotoneTakeBulkScreenshotsOutput,\n typeof screenshotone.credential\n> = action(\"SCREENSHOTONE_TAKE_BULK_SCREENSHOTS\", {\n slug: \"screenshotone-take-bulk-screenshots\",\n name: \"Take Bulk Screenshots\",\n description: \"Tool to take multiple screenshots in a single request with shared defaults and individual overrides. Use when you need to capture screenshots of multiple URLs or the same URL with different parameters. Supports lazy loading (default) where screenshots are taken on download, or immediate execution with execute=true.\",\n input: ScreenshotoneTakeBulkScreenshotsInput,\n output: ScreenshotoneTakeBulkScreenshotsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CA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AC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC/E,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAAiE;AAC3F,MAAM,gEAAgEA,IAAAA,EAAE,OAAO;CAC7E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CAC/J,UAAU,yDAAyD,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8DAA8D;AACxF,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,WAAWA,IAAAA,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,4EAA4E,EACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,mCAITC,eAAAA,OAAO,uCAAuC;CAChD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { screenshotone } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/take-bulk-screenshots.d.ts
@@ -10,9 +12,9 @@ declare const ScreenshotoneTakeBulkScreenshotsInput: z.ZodObject<{
10
12
  delay: z.ZodOptional<z.ZodNumber>;
11
13
  format: z.ZodOptional<z.ZodEnum<{
12
14
  png: "png";
15
+ jpg: "jpg";
13
16
  jpeg: "jpeg";
14
17
  webp: "webp";
15
- jpg: "jpg";
16
18
  }>>;
17
19
  markdown: z.ZodOptional<z.ZodString>;
18
20
  block_ads: z.ZodOptional<z.ZodBoolean>;
@@ -39,9 +41,9 @@ declare const ScreenshotoneTakeBulkScreenshotsInput: z.ZodObject<{
39
41
  delay: z.ZodOptional<z.ZodNumber>;
40
42
  format: z.ZodOptional<z.ZodEnum<{
41
43
  png: "png";
44
+ jpg: "jpg";
42
45
  jpeg: "jpeg";
43
46
  webp: "webp";
44
- jpg: "jpg";
45
47
  }>>;
46
48
  markdown: z.ZodOptional<z.ZodString>;
47
49
  block_ads: z.ZodOptional<z.ZodBoolean>;
@@ -72,49 +74,7 @@ declare const ScreenshotoneTakeBulkScreenshotsOutput: z.ZodObject<{
72
74
  }, z.core.$loose>>>;
73
75
  }, z.core.$loose>>;
74
76
  }, z.core.$loose>;
75
- declare const screenshotoneTakeBulkScreenshots: import("@keystrokehq/action").WorkflowActionDefinition<{
76
- requests: {
77
- [x: string]: unknown;
78
- url?: string | undefined;
79
- html?: string | undefined;
80
- cache?: boolean | undefined;
81
- delay?: number | undefined;
82
- format?: "png" | "jpeg" | "webp" | "jpg" | undefined;
83
- markdown?: string | undefined;
84
- block_ads?: boolean | undefined;
85
- cache_ttl?: number | undefined;
86
- full_page?: boolean | undefined;
87
- block_chats?: boolean | undefined;
88
- storage_path?: string | undefined;
89
- block_trackers?: boolean | undefined;
90
- viewport_width?: number | undefined;
91
- viewport_device?: "desktop" | "mobile" | "tablet" | undefined;
92
- viewport_height?: number | undefined;
93
- device_scale_factor?: number | undefined;
94
- block_cookie_banners?: boolean | undefined;
95
- }[];
96
- execute?: boolean | undefined;
97
- options?: {
98
- url?: string | undefined;
99
- html?: string | undefined;
100
- cache?: boolean | undefined;
101
- delay?: number | undefined;
102
- format?: "png" | "jpeg" | "webp" | "jpg" | undefined;
103
- markdown?: string | undefined;
104
- block_ads?: boolean | undefined;
105
- cache_ttl?: number | undefined;
106
- full_page?: boolean | undefined;
107
- block_chats?: boolean | undefined;
108
- storage_path?: string | undefined;
109
- block_trackers?: boolean | undefined;
110
- viewport_width?: number | undefined;
111
- viewport_device?: "desktop" | "mobile" | "tablet" | undefined;
112
- viewport_height?: number | undefined;
113
- device_scale_factor?: number | undefined;
114
- block_cookie_banners?: boolean | undefined;
115
- } | undefined;
116
- optimize?: boolean | undefined;
117
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
77
+ declare const screenshotoneTakeBulkScreenshots: AppAction<typeof ScreenshotoneTakeBulkScreenshotsInput, typeof ScreenshotoneTakeBulkScreenshotsOutput, typeof screenshotone.credential>;
118
78
  //#endregion
119
79
  export { screenshotoneTakeBulkScreenshots };
120
80
  //# sourceMappingURL=take-bulk-screenshots.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"take-bulk-screenshots.d.cts","names":[],"sources":["../../src/actions/take-bulk-screenshots.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"take-bulk-screenshots.d.cts","names":[],"sources":["../../src/actions/take-bulk-screenshots.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,aAAA,CAAc,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { screenshotone } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/take-bulk-screenshots.d.ts
@@ -10,9 +12,9 @@ declare const ScreenshotoneTakeBulkScreenshotsInput: z.ZodObject<{
10
12
  delay: z.ZodOptional<z.ZodNumber>;
11
13
  format: z.ZodOptional<z.ZodEnum<{
12
14
  png: "png";
15
+ jpg: "jpg";
13
16
  jpeg: "jpeg";
14
17
  webp: "webp";
15
- jpg: "jpg";
16
18
  }>>;
17
19
  markdown: z.ZodOptional<z.ZodString>;
18
20
  block_ads: z.ZodOptional<z.ZodBoolean>;
@@ -39,9 +41,9 @@ declare const ScreenshotoneTakeBulkScreenshotsInput: z.ZodObject<{
39
41
  delay: z.ZodOptional<z.ZodNumber>;
40
42
  format: z.ZodOptional<z.ZodEnum<{
41
43
  png: "png";
44
+ jpg: "jpg";
42
45
  jpeg: "jpeg";
43
46
  webp: "webp";
44
- jpg: "jpg";
45
47
  }>>;
46
48
  markdown: z.ZodOptional<z.ZodString>;
47
49
  block_ads: z.ZodOptional<z.ZodBoolean>;
@@ -72,49 +74,7 @@ declare const ScreenshotoneTakeBulkScreenshotsOutput: z.ZodObject<{
72
74
  }, z.core.$loose>>>;
73
75
  }, z.core.$loose>>;
74
76
  }, z.core.$loose>;
75
- declare const screenshotoneTakeBulkScreenshots: import("@keystrokehq/action").WorkflowActionDefinition<{
76
- requests: {
77
- [x: string]: unknown;
78
- url?: string | undefined;
79
- html?: string | undefined;
80
- cache?: boolean | undefined;
81
- delay?: number | undefined;
82
- format?: "png" | "jpeg" | "webp" | "jpg" | undefined;
83
- markdown?: string | undefined;
84
- block_ads?: boolean | undefined;
85
- cache_ttl?: number | undefined;
86
- full_page?: boolean | undefined;
87
- block_chats?: boolean | undefined;
88
- storage_path?: string | undefined;
89
- block_trackers?: boolean | undefined;
90
- viewport_width?: number | undefined;
91
- viewport_device?: "desktop" | "mobile" | "tablet" | undefined;
92
- viewport_height?: number | undefined;
93
- device_scale_factor?: number | undefined;
94
- block_cookie_banners?: boolean | undefined;
95
- }[];
96
- execute?: boolean | undefined;
97
- options?: {
98
- url?: string | undefined;
99
- html?: string | undefined;
100
- cache?: boolean | undefined;
101
- delay?: number | undefined;
102
- format?: "png" | "jpeg" | "webp" | "jpg" | undefined;
103
- markdown?: string | undefined;
104
- block_ads?: boolean | undefined;
105
- cache_ttl?: number | undefined;
106
- full_page?: boolean | undefined;
107
- block_chats?: boolean | undefined;
108
- storage_path?: string | undefined;
109
- block_trackers?: boolean | undefined;
110
- viewport_width?: number | undefined;
111
- viewport_device?: "desktop" | "mobile" | "tablet" | undefined;
112
- viewport_height?: number | undefined;
113
- device_scale_factor?: number | undefined;
114
- block_cookie_banners?: boolean | undefined;
115
- } | undefined;
116
- optimize?: boolean | undefined;
117
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
77
+ declare const screenshotoneTakeBulkScreenshots: AppAction<typeof ScreenshotoneTakeBulkScreenshotsInput, typeof ScreenshotoneTakeBulkScreenshotsOutput, typeof screenshotone.credential>;
118
78
  //#endregion
119
79
  export { screenshotoneTakeBulkScreenshots };
120
80
  //# sourceMappingURL=take-bulk-screenshots.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"take-bulk-screenshots.d.mts","names":[],"sources":["../../src/actions/take-bulk-screenshots.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;cAItC,gCAAA,gCAAgC,wBAAA"}
1
+ {"version":3,"file":"take-bulk-screenshots.d.mts","names":[],"sources":["../../src/actions/take-bulk-screenshots.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoDrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;cAItC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,aAAA,CAAc,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/take-bulk-screenshots.ts
@@ -1 +1 @@
1
- {"version":3,"file":"take-bulk-screenshots.mjs","names":[],"sources":["../../src/actions/take-bulk-screenshots.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScreenshotoneTakeBulkScreenshotsInput = z.object({\n execute: z.boolean().default(false).describe(\"Execute all screenshot requests immediately instead of lazy loading. When false (default), screenshots are taken when downloaded. When true, screenshots are taken immediately.\").optional(),\n options: z.object({\n url: z.string().describe(\"Default URL to screenshot. Can be overridden by individual requests.\").optional(),\n html: z.string().describe(\"Default raw HTML content to render instead of URL. Can be overridden by individual requests.\").optional(),\n cache: z.boolean().describe(\"Default caching setting. Can be overridden by individual requests.\").optional(),\n delay: z.number().int().describe(\"Default delay in milliseconds before taking screenshot. Can be overridden by individual requests.\").optional(),\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\"]).describe(\"Image format options for screenshots.\").optional(),\n markdown: z.string().describe(\"Default markdown content to render. Can be overridden by individual requests.\").optional(),\n block_ads: z.boolean().describe(\"Default setting to block ads. Can be overridden by individual requests.\").optional(),\n cache_ttl: z.number().int().describe(\"Default cache TTL in seconds. Can be overridden by individual requests.\").optional(),\n full_page: z.boolean().describe(\"Default setting to capture full page. Can be overridden by individual requests.\").optional(),\n block_chats: z.boolean().describe(\"Default setting to block chat widgets. Can be overridden by individual requests.\").optional(),\n storage_path: z.string().describe(\"Default S3 storage path for screenshots. Can be overridden by individual requests.\").optional(),\n block_trackers: z.boolean().describe(\"Default setting to block trackers. Can be overridden by individual requests.\").optional(),\n viewport_width: z.number().int().describe(\"Default viewport width in pixels. Can be overridden by individual requests.\").optional(),\n viewport_device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Preset device viewport options.\").optional(),\n viewport_height: z.number().int().describe(\"Default viewport height in pixels. Can be overridden by individual requests.\").optional(),\n device_scale_factor: z.number().describe(\"Default device pixel ratio. Can be overridden by individual requests.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Default setting to block cookie banners. Can be overridden by individual requests.\").optional(),\n}).describe(\"Default options applied to all screenshot requests in the bulk operation.\").optional(),\n optimize: z.boolean().default(false).describe(\"Optimize bulk screenshots for same URLs with different parameters. Only works when execute=true. Improves performance when taking multiple screenshots of the same site.\").optional(),\n requests: z.array(z.object({\n url: z.string().describe(\"URL to screenshot. Overrides default if specified.\").optional(),\n html: z.string().describe(\"Raw HTML content to render. Overrides default if specified.\").optional(),\n cache: z.boolean().describe(\"Caching setting. Overrides default if specified.\").optional(),\n delay: z.number().int().describe(\"Delay in milliseconds before taking screenshot. Overrides default if specified.\").optional(),\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\"]).describe(\"Image format options for screenshots.\").optional(),\n markdown: z.string().describe(\"Markdown content to render. Overrides default if specified.\").optional(),\n block_ads: z.boolean().describe(\"Block ads. Overrides default if specified.\").optional(),\n cache_ttl: z.number().int().describe(\"Cache TTL in seconds. Overrides default if specified.\").optional(),\n full_page: z.boolean().describe(\"Capture full page. Overrides default if specified.\").optional(),\n block_chats: z.boolean().describe(\"Block chat widgets. Overrides default if specified.\").optional(),\n storage_path: z.string().describe(\"S3 storage path for this screenshot. Overrides default if specified.\").optional(),\n block_trackers: z.boolean().describe(\"Block trackers. Overrides default if specified.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width in pixels. Overrides default if specified.\").optional(),\n viewport_device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Preset device viewport options.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height in pixels. Overrides default if specified.\").optional(),\n device_scale_factor: z.number().describe(\"Device pixel ratio. Overrides default if specified.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners. Overrides default if specified.\").optional(),\n}).passthrough().describe(\"Individual screenshot request that can override default options.\")).describe(\"Array of individual screenshot requests. Maximum 20 requests per bulk call.\"),\n}).describe(\"Request model for taking multiple screenshots in a single API call.\");\nconst ScreenshotoneTakeBulkScreenshots_ExecutionResponseSchema = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Error details if execution was not successful.\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code of the execution.\").nullable(),\n statusText: z.string().describe(\"HTTP status text of the execution.\").nullable(),\n is_successful: z.boolean().describe(\"Whether the screenshot execution was successful.\").nullable(),\n}).passthrough().describe(\"Execution response for individual screenshot when execute=true.\");\nconst ScreenshotoneTakeBulkScreenshots_BulkScreenshotResponseSchema = z.object({\n url: z.string().describe(\"URL to download the screenshot. For lazy loading (execute=false), the screenshot will be taken when this URL is accessed.\").nullable(),\n response: ScreenshotoneTakeBulkScreenshots_ExecutionResponseSchema.nullable().optional(),\n}).passthrough().describe(\"Individual response for each screenshot in the bulk request.\");\nexport const ScreenshotoneTakeBulkScreenshotsOutput = z.object({\n responses: z.array(ScreenshotoneTakeBulkScreenshots_BulkScreenshotResponseSchema).describe(\"Array of response objects containing screenshot URLs and execution status.\"),\n}).passthrough().describe(\"Response containing URLs for all requested screenshots.\");\n\nexport const screenshotoneTakeBulkScreenshots = action(\"SCREENSHOTONE_TAKE_BULK_SCREENSHOTS\", {\n slug: \"screenshotone-take-bulk-screenshots\",\n name: \"Take Bulk Screenshots\",\n description: \"Tool to take multiple screenshots in a single request with shared defaults and individual overrides. Use when you need to capture screenshots of multiple URLs or the same URL with different parameters. Supports lazy loading (default) where screenshots are taken on download, or immediate execution with execute=true.\",\n input: ScreenshotoneTakeBulkScreenshotsInput,\n output: ScreenshotoneTakeBulkScreenshotsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACzO,SAAS,EAAE,OAAO;EAClB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC1G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EACnI,OAAO,EAAE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,yDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"take-bulk-screenshots.mjs","names":[],"sources":["../../src/actions/take-bulk-screenshots.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { screenshotone } from \"../app\";\n\nexport const ScreenshotoneTakeBulkScreenshotsInput = z.object({\n execute: z.boolean().default(false).describe(\"Execute all screenshot requests immediately instead of lazy loading. When false (default), screenshots are taken when downloaded. When true, screenshots are taken immediately.\").optional(),\n options: z.object({\n url: z.string().describe(\"Default URL to screenshot. Can be overridden by individual requests.\").optional(),\n html: z.string().describe(\"Default raw HTML content to render instead of URL. Can be overridden by individual requests.\").optional(),\n cache: z.boolean().describe(\"Default caching setting. Can be overridden by individual requests.\").optional(),\n delay: z.number().int().describe(\"Default delay in milliseconds before taking screenshot. Can be overridden by individual requests.\").optional(),\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\"]).describe(\"Image format options for screenshots.\").optional(),\n markdown: z.string().describe(\"Default markdown content to render. Can be overridden by individual requests.\").optional(),\n block_ads: z.boolean().describe(\"Default setting to block ads. Can be overridden by individual requests.\").optional(),\n cache_ttl: z.number().int().describe(\"Default cache TTL in seconds. Can be overridden by individual requests.\").optional(),\n full_page: z.boolean().describe(\"Default setting to capture full page. Can be overridden by individual requests.\").optional(),\n block_chats: z.boolean().describe(\"Default setting to block chat widgets. Can be overridden by individual requests.\").optional(),\n storage_path: z.string().describe(\"Default S3 storage path for screenshots. Can be overridden by individual requests.\").optional(),\n block_trackers: z.boolean().describe(\"Default setting to block trackers. Can be overridden by individual requests.\").optional(),\n viewport_width: z.number().int().describe(\"Default viewport width in pixels. Can be overridden by individual requests.\").optional(),\n viewport_device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Preset device viewport options.\").optional(),\n viewport_height: z.number().int().describe(\"Default viewport height in pixels. Can be overridden by individual requests.\").optional(),\n device_scale_factor: z.number().describe(\"Default device pixel ratio. Can be overridden by individual requests.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Default setting to block cookie banners. Can be overridden by individual requests.\").optional(),\n}).describe(\"Default options applied to all screenshot requests in the bulk operation.\").optional(),\n optimize: z.boolean().default(false).describe(\"Optimize bulk screenshots for same URLs with different parameters. Only works when execute=true. Improves performance when taking multiple screenshots of the same site.\").optional(),\n requests: z.array(z.object({\n url: z.string().describe(\"URL to screenshot. Overrides default if specified.\").optional(),\n html: z.string().describe(\"Raw HTML content to render. Overrides default if specified.\").optional(),\n cache: z.boolean().describe(\"Caching setting. Overrides default if specified.\").optional(),\n delay: z.number().int().describe(\"Delay in milliseconds before taking screenshot. Overrides default if specified.\").optional(),\n format: z.enum([\"png\", \"jpg\", \"jpeg\", \"webp\"]).describe(\"Image format options for screenshots.\").optional(),\n markdown: z.string().describe(\"Markdown content to render. Overrides default if specified.\").optional(),\n block_ads: z.boolean().describe(\"Block ads. Overrides default if specified.\").optional(),\n cache_ttl: z.number().int().describe(\"Cache TTL in seconds. Overrides default if specified.\").optional(),\n full_page: z.boolean().describe(\"Capture full page. Overrides default if specified.\").optional(),\n block_chats: z.boolean().describe(\"Block chat widgets. Overrides default if specified.\").optional(),\n storage_path: z.string().describe(\"S3 storage path for this screenshot. Overrides default if specified.\").optional(),\n block_trackers: z.boolean().describe(\"Block trackers. Overrides default if specified.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width in pixels. Overrides default if specified.\").optional(),\n viewport_device: z.enum([\"desktop\", \"mobile\", \"tablet\"]).describe(\"Preset device viewport options.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height in pixels. Overrides default if specified.\").optional(),\n device_scale_factor: z.number().describe(\"Device pixel ratio. Overrides default if specified.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners. Overrides default if specified.\").optional(),\n}).passthrough().describe(\"Individual screenshot request that can override default options.\")).describe(\"Array of individual screenshot requests. Maximum 20 requests per bulk call.\"),\n}).describe(\"Request model for taking multiple screenshots in a single API call.\");\nconst ScreenshotoneTakeBulkScreenshots_ExecutionResponseSchema = z.object({\n body: z.record(z.string(), z.unknown()).describe(\"Error details if execution was not successful.\").nullable().optional(),\n status: z.number().int().describe(\"HTTP status code of the execution.\").nullable(),\n statusText: z.string().describe(\"HTTP status text of the execution.\").nullable(),\n is_successful: z.boolean().describe(\"Whether the screenshot execution was successful.\").nullable(),\n}).passthrough().describe(\"Execution response for individual screenshot when execute=true.\");\nconst ScreenshotoneTakeBulkScreenshots_BulkScreenshotResponseSchema = z.object({\n url: z.string().describe(\"URL to download the screenshot. For lazy loading (execute=false), the screenshot will be taken when this URL is accessed.\").nullable(),\n response: ScreenshotoneTakeBulkScreenshots_ExecutionResponseSchema.nullable().optional(),\n}).passthrough().describe(\"Individual response for each screenshot in the bulk request.\");\nexport const ScreenshotoneTakeBulkScreenshotsOutput = z.object({\n responses: z.array(ScreenshotoneTakeBulkScreenshots_BulkScreenshotResponseSchema).describe(\"Array of response objects containing screenshot URLs and execution status.\"),\n}).passthrough().describe(\"Response containing URLs for all requested screenshots.\");\n\nexport const screenshotoneTakeBulkScreenshots: AppAction<\n typeof ScreenshotoneTakeBulkScreenshotsInput,\n typeof ScreenshotoneTakeBulkScreenshotsOutput,\n typeof screenshotone.credential\n> = action(\"SCREENSHOTONE_TAKE_BULK_SCREENSHOTS\", {\n slug: \"screenshotone-take-bulk-screenshots\",\n name: \"Take Bulk Screenshots\",\n description: \"Tool to take multiple screenshots in a single request with shared defaults and individual overrides. Use when you need to capture screenshots of multiple URLs or the same URL with different parameters. Supports lazy loading (default) where screenshots are taken on download, or immediate execution with execute=true.\",\n input: ScreenshotoneTakeBulkScreenshotsInput,\n output: ScreenshotoneTakeBulkScreenshotsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iLAAiL,CAAC,CAAC,SAAS;CACzO,SAAS,E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;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAboD,EAAE,OAAO,EAC7D,WAAW,EAAE,MAAM,6DAA6D,CAAC,CAAC,SAAS,4EAA4E,EACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/take-screenshot.ts
@@ -1 +1 @@
1
- {"version":3,"file":"take-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/take-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScreenshotoneTakeScreenshotInput = z.object({\n url: z.string().describe(\"URL of the website to screenshot. Either url, html, or markdown must be provided.\").optional(),\n html: z.string().describe(\"HTML content to render. Either url, html, or markdown must be provided.\").optional(),\n cache: z.boolean().describe(\"Set to true to get cached screenshot URL when response_type is 'json'. The response will include a cache_url field.\").optional(),\n delay: z.number().int().describe(\"Delay in seconds to wait before rendering the screenshot. Must be between 0 and 30 seconds.\").optional(),\n format: z.enum([\"png\", \"jpeg\", \"webp\", \"pdf\", \"html\"]).default(\"png\").describe(\"Output format for the screenshot.\").optional(),\n markdown: z.string().describe(\"Markdown content to render. Either url, html, or markdown must be provided.\").optional(),\n block_ads: z.boolean().describe(\"Block ads on the page.\").optional(),\n dark_mode: z.boolean().describe(\"Enable dark mode for rendering the page.\").optional(),\n block_chats: z.boolean().describe(\"Block chat widgets on the page.\").optional(),\n response_type: z.enum([\"by_format\", \"json\", \"empty\"]).default(\"by_format\").describe(\"Response type for the screenshot.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width of the browser in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height of the browser in pixels.\").optional(),\n device_scale_factor: z.number().int().describe(\"Device scale factor of the viewport. Must be between 1 and 5.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners on the page.\").optional(),\n}).describe(\"Request model for taking a screenshot via POST request.\");\nconst ScreenshotoneTakeScreenshot_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ScreenshotoneTakeScreenshotOutput = z.object({\n file: ScreenshotoneTakeScreenshot_FileDownloadableSchema.nullable().optional(),\n cache_url: z.string().describe(\"The screenshot URL. Available only if cache is set to true and response_type is 'json'.\").nullable().optional(),\n content_type: z.string().describe(\"The content type of the file response.\").nullable().optional(),\n}).passthrough().describe(\"Response model for take screenshot action.\");\n\nexport const screenshotoneTakeScreenshot = action(\"SCREENSHOTONE_TAKE_SCREENSHOT\", {\n slug: \"screenshotone-take-screenshot\",\n name: \"Take Screenshot\",\n description: \"Tool to generate a screenshot or PDF of a website, render HTML, or Markdown using POST request. Use when you need to capture webpage content in various formats (PNG, JPEG, WebP, PDF, HTML). Supports both returning binary content directly or getting a cached URL via JSON response.\",\n input: ScreenshotoneTakeScreenshotInput,\n output: ScreenshotoneTakeScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACvH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC5J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAQ;EAAO;CAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mCAAmC,CAAC,CA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,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,8BAA8BC,eAAAA,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"take-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/take-screenshot.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { screenshotone } from \"../app\";\n\nexport const ScreenshotoneTakeScreenshotInput = z.object({\n url: z.string().describe(\"URL of the website to screenshot. Either url, html, or markdown must be provided.\").optional(),\n html: z.string().describe(\"HTML content to render. Either url, html, or markdown must be provided.\").optional(),\n cache: z.boolean().describe(\"Set to true to get cached screenshot URL when response_type is 'json'. The response will include a cache_url field.\").optional(),\n delay: z.number().int().describe(\"Delay in seconds to wait before rendering the screenshot. Must be between 0 and 30 seconds.\").optional(),\n format: z.enum([\"png\", \"jpeg\", \"webp\", \"pdf\", \"html\"]).default(\"png\").describe(\"Output format for the screenshot.\").optional(),\n markdown: z.string().describe(\"Markdown content to render. Either url, html, or markdown must be provided.\").optional(),\n block_ads: z.boolean().describe(\"Block ads on the page.\").optional(),\n dark_mode: z.boolean().describe(\"Enable dark mode for rendering the page.\").optional(),\n block_chats: z.boolean().describe(\"Block chat widgets on the page.\").optional(),\n response_type: z.enum([\"by_format\", \"json\", \"empty\"]).default(\"by_format\").describe(\"Response type for the screenshot.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width of the browser in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height of the browser in pixels.\").optional(),\n device_scale_factor: z.number().int().describe(\"Device scale factor of the viewport. Must be between 1 and 5.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners on the page.\").optional(),\n}).describe(\"Request model for taking a screenshot via POST request.\");\nconst ScreenshotoneTakeScreenshot_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ScreenshotoneTakeScreenshotOutput = z.object({\n file: ScreenshotoneTakeScreenshot_FileDownloadableSchema.nullable().optional(),\n cache_url: z.string().describe(\"The screenshot URL. Available only if cache is set to true and response_type is 'json'.\").nullable().optional(),\n content_type: z.string().describe(\"The content type of the file response.\").nullable().optional(),\n}).passthrough().describe(\"Response model for take screenshot action.\");\n\nexport const screenshotoneTakeScreenshot: AppAction<\n typeof ScreenshotoneTakeScreenshotInput,\n typeof ScreenshotoneTakeScreenshotOutput,\n typeof screenshotone.credential\n> = action(\"SCREENSHOTONE_TAKE_SCREENSHOT\", {\n slug: \"screenshotone-take-screenshot\",\n name: \"Take Screenshot\",\n description: \"Tool to generate a screenshot or PDF of a website, render HTML, or Markdown using POST request. Use when you need to capture webpage content in various formats (PNG, JPEG, WebP, PDF, HTML). Supports both returning binary content directly or getting a cached URL via JSON response.\",\n input: ScreenshotoneTakeScreenshotInput,\n output: ScreenshotoneTakeScreenshotOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACvH,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC5J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AAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAM,mDAAmD,SAAS,CAAC,CAAC,SAAS;CAC7E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,8BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { screenshotone } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/take-screenshot.d.ts
@@ -36,22 +38,7 @@ declare const ScreenshotoneTakeScreenshotOutput: z.ZodObject<{
36
38
  cache_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
39
  content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
40
  }, z.core.$loose>;
39
- declare const screenshotoneTakeScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
40
- url?: string | undefined;
41
- html?: string | undefined;
42
- cache?: boolean | undefined;
43
- delay?: number | undefined;
44
- format?: "html" | "png" | "jpeg" | "webp" | "pdf" | undefined;
45
- markdown?: string | undefined;
46
- block_ads?: boolean | undefined;
47
- dark_mode?: boolean | undefined;
48
- block_chats?: boolean | undefined;
49
- response_type?: "by_format" | "json" | "empty" | undefined;
50
- viewport_width?: number | undefined;
51
- viewport_height?: number | undefined;
52
- device_scale_factor?: number | undefined;
53
- block_cookie_banners?: boolean | undefined;
54
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ declare const screenshotoneTakeScreenshot: AppAction<typeof ScreenshotoneTakeScreenshotInput, typeof ScreenshotoneTakeScreenshotOutput, typeof screenshotone.credential>;
55
42
  //#endregion
56
43
  export { screenshotoneTakeScreenshot };
57
44
  //# sourceMappingURL=take-screenshot.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"take-screenshot.d.cts","names":[],"sources":["../../src/actions/take-screenshot.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cAMjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"take-screenshot.d.cts","names":[],"sources":["../../src/actions/take-screenshot.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cAMjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,aAAA,CAAc,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { screenshotone } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/take-screenshot.d.ts
@@ -36,22 +38,7 @@ declare const ScreenshotoneTakeScreenshotOutput: z.ZodObject<{
36
38
  cache_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
39
  content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
40
  }, z.core.$loose>;
39
- declare const screenshotoneTakeScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
40
- url?: string | undefined;
41
- html?: string | undefined;
42
- cache?: boolean | undefined;
43
- delay?: number | undefined;
44
- format?: "html" | "png" | "jpeg" | "webp" | "pdf" | undefined;
45
- markdown?: string | undefined;
46
- block_ads?: boolean | undefined;
47
- dark_mode?: boolean | undefined;
48
- block_chats?: boolean | undefined;
49
- response_type?: "by_format" | "json" | "empty" | undefined;
50
- viewport_width?: number | undefined;
51
- viewport_height?: number | undefined;
52
- device_scale_factor?: number | undefined;
53
- block_cookie_banners?: boolean | undefined;
54
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ declare const screenshotoneTakeScreenshot: AppAction<typeof ScreenshotoneTakeScreenshotInput, typeof ScreenshotoneTakeScreenshotOutput, typeof screenshotone.credential>;
55
42
  //#endregion
56
43
  export { screenshotoneTakeScreenshot };
57
44
  //# sourceMappingURL=take-screenshot.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"take-screenshot.d.mts","names":[],"sources":["../../src/actions/take-screenshot.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cAMjC,2BAAA,gCAA2B,wBAAA"}
1
+ {"version":3,"file":"take-screenshot.d.mts","names":[],"sources":["../../src/actions/take-screenshot.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;cAMjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,aAAA,CAAc,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/take-screenshot.ts
@@ -1 +1 @@
1
- {"version":3,"file":"take-screenshot.mjs","names":[],"sources":["../../src/actions/take-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ScreenshotoneTakeScreenshotInput = z.object({\n url: z.string().describe(\"URL of the website to screenshot. Either url, html, or markdown must be provided.\").optional(),\n html: z.string().describe(\"HTML content to render. Either url, html, or markdown must be provided.\").optional(),\n cache: z.boolean().describe(\"Set to true to get cached screenshot URL when response_type is 'json'. The response will include a cache_url field.\").optional(),\n delay: z.number().int().describe(\"Delay in seconds to wait before rendering the screenshot. Must be between 0 and 30 seconds.\").optional(),\n format: z.enum([\"png\", \"jpeg\", \"webp\", \"pdf\", \"html\"]).default(\"png\").describe(\"Output format for the screenshot.\").optional(),\n markdown: z.string().describe(\"Markdown content to render. Either url, html, or markdown must be provided.\").optional(),\n block_ads: z.boolean().describe(\"Block ads on the page.\").optional(),\n dark_mode: z.boolean().describe(\"Enable dark mode for rendering the page.\").optional(),\n block_chats: z.boolean().describe(\"Block chat widgets on the page.\").optional(),\n response_type: z.enum([\"by_format\", \"json\", \"empty\"]).default(\"by_format\").describe(\"Response type for the screenshot.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width of the browser in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height of the browser in pixels.\").optional(),\n device_scale_factor: z.number().int().describe(\"Device scale factor of the viewport. Must be between 1 and 5.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners on the page.\").optional(),\n}).describe(\"Request model for taking a screenshot via POST request.\");\nconst ScreenshotoneTakeScreenshot_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ScreenshotoneTakeScreenshotOutput = z.object({\n file: ScreenshotoneTakeScreenshot_FileDownloadableSchema.nullable().optional(),\n cache_url: z.string().describe(\"The screenshot URL. Available only if cache is set to true and response_type is 'json'.\").nullable().optional(),\n content_type: z.string().describe(\"The content type of the file response.\").nullable().optional(),\n}).passthrough().describe(\"Response model for take screenshot action.\");\n\nexport const screenshotoneTakeScreenshot = action(\"SCREENSHOTONE_TAKE_SCREENSHOT\", {\n slug: \"screenshotone-take-screenshot\",\n name: \"Take Screenshot\",\n description: \"Tool to generate a screenshot or PDF of a website, render HTML, or Markdown using POST request. Use when you need to capture webpage content in various formats (PNG, JPEG, WebP, PDF, HTML). Supports both returning binary content directly or getting a cached URL via JSON response.\",\n input: ScreenshotoneTakeScreenshotInput,\n output: ScreenshotoneTakeScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACvH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC5J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,QAAQ,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAQ;EAAO;CAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACnE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC9E,eAAe,EAAE,KAAK;EAAC;EAAa;EAAQ;CAAO,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClI,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/F,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACzH,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,8BAA8B,OAAO,iCAAiC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+C,EAAE,OAAO;EACxD,MAAM,mDAAmD,SAAS,CAAC,CAAC,SAAS;EAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"take-screenshot.mjs","names":[],"sources":["../../src/actions/take-screenshot.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { screenshotone } from \"../app\";\n\nexport const ScreenshotoneTakeScreenshotInput = z.object({\n url: z.string().describe(\"URL of the website to screenshot. Either url, html, or markdown must be provided.\").optional(),\n html: z.string().describe(\"HTML content to render. Either url, html, or markdown must be provided.\").optional(),\n cache: z.boolean().describe(\"Set to true to get cached screenshot URL when response_type is 'json'. The response will include a cache_url field.\").optional(),\n delay: z.number().int().describe(\"Delay in seconds to wait before rendering the screenshot. Must be between 0 and 30 seconds.\").optional(),\n format: z.enum([\"png\", \"jpeg\", \"webp\", \"pdf\", \"html\"]).default(\"png\").describe(\"Output format for the screenshot.\").optional(),\n markdown: z.string().describe(\"Markdown content to render. Either url, html, or markdown must be provided.\").optional(),\n block_ads: z.boolean().describe(\"Block ads on the page.\").optional(),\n dark_mode: z.boolean().describe(\"Enable dark mode for rendering the page.\").optional(),\n block_chats: z.boolean().describe(\"Block chat widgets on the page.\").optional(),\n response_type: z.enum([\"by_format\", \"json\", \"empty\"]).default(\"by_format\").describe(\"Response type for the screenshot.\").optional(),\n viewport_width: z.number().int().describe(\"Viewport width of the browser in pixels.\").optional(),\n viewport_height: z.number().int().describe(\"Viewport height of the browser in pixels.\").optional(),\n device_scale_factor: z.number().int().describe(\"Device scale factor of the viewport. Must be between 1 and 5.\").optional(),\n block_cookie_banners: z.boolean().describe(\"Block cookie banners on the page.\").optional(),\n}).describe(\"Request model for taking a screenshot via POST request.\");\nconst ScreenshotoneTakeScreenshot_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nexport const ScreenshotoneTakeScreenshotOutput = z.object({\n file: ScreenshotoneTakeScreenshot_FileDownloadableSchema.nullable().optional(),\n cache_url: z.string().describe(\"The screenshot URL. Available only if cache is set to true and response_type is 'json'.\").nullable().optional(),\n content_type: z.string().describe(\"The content type of the file response.\").nullable().optional(),\n}).passthrough().describe(\"Response model for take screenshot action.\");\n\nexport const screenshotoneTakeScreenshot: AppAction<\n typeof ScreenshotoneTakeScreenshotInput,\n typeof ScreenshotoneTakeScreenshotOutput,\n typeof screenshotone.credential\n> = action(\"SCREENSHOTONE_TAKE_SCREENSHOT\", {\n slug: \"screenshotone-take-screenshot\",\n name: \"Take Screenshot\",\n description: \"Tool to generate a screenshot or PDF of a website, render HTML, or Markdown using POST request. Use when you need to capture webpage content in various formats (PNG, JPEG, WebP, PDF, HTML). Supports both returning binary content directly or getting a cached URL via JSON response.\",\n input: ScreenshotoneTakeScreenshotInput,\n output: ScreenshotoneTakeScreenshotOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACvH,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CAC9G,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,qHAAqH,CAAC,CAAC,SAAS;CAC5J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,QAAQ,EAAE,KAAK;EAAC;EAAO;EAAQ;EAAQ;EAAO;CAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACtH,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACnE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC9E,eAAe,EAAE,KAAK;EAAC;EAAa;EAAQ;CAAO,CAAC,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClI,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/F,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACjG,qBAAqB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACzH,sBAAsB,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,qDAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AAOf,MAAa,8BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf+C,EAAE,OAAO;EACxD,MAAM,mDAAmD,SAAS,CAAC,CAAC,SAAS;EAC7E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,14 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
+ let zod = require("zod");
1
3
  //#region src/app.ts
2
- const screenshotone = (0, require("@keystrokehq/keystroke/app").defineApp)({
4
+ const credential = {
5
+ generic_api_key: zod.z.string(),
6
+ generic_secret: zod.z.string()
7
+ };
8
+ const screenshotone = (0, _keystrokehq_keystroke_app.defineApp)({
3
9
  slug: "screenshotone",
4
- auth: "keystroke"
10
+ auth: "keystroke",
11
+ credential
5
12
  });
6
13
  //#endregion
7
14
  exports.screenshotone = screenshotone;
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 screenshotone = defineApp({\n slug: \"screenshotone\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,iBAAA,uCAAA,CAAA,CAAA,UAAA,CAA0B;CACrC,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 generic_secret: z.string(),\n};\n\nexport const screenshotone: KeystrokeApp<\"screenshotone\", typeof credential> = defineApp({\n slug: \"screenshotone\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,iBAAiBA,IAAAA,EAAE,OAAO;CAC1B,gBAAgBA,IAAAA,EAAE,OAAO;AAC3B;AAEA,MAAa,iBAAA,GAAA,2BAAA,UAAA,CAA4E;CACvF,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const screenshotone: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ generic_secret: z.ZodString;
8
+ };
9
+ declare const screenshotone: KeystrokeApp<"screenshotone", typeof credential>;
3
10
  //#endregion
4
11
  export { screenshotone };
5
12
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,aAAA,6BAAa,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAGL,CAAA,CAAA,SAAA;kBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,aAAA,EAAe,YAAY,yBAAyB,UAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
3
+
1
4
  //#region src/app.d.ts
2
- declare const screenshotone: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
5
+ declare const credential: {
6
+ generic_api_key: z.ZodString;
7
+ generic_secret: z.ZodString;
8
+ };
9
+ declare const screenshotone: KeystrokeApp<"screenshotone", typeof credential>;
3
10
  //#endregion
4
11
  export { screenshotone };
5
12
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,aAAA,6BAAa,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;mBAGL,CAAA,CAAA,SAAA;kBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,aAAA,EAAe,YAAY,yBAAyB,UAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,12 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
- //#region src/app.ts
2
+ import { z } from "zod";
3
3
  const screenshotone = defineApp({
4
4
  slug: "screenshotone",
5
- auth: "keystroke"
5
+ auth: "keystroke",
6
+ credential: {
7
+ generic_api_key: z.string(),
8
+ generic_secret: z.string()
9
+ }
6
10
  });
7
11
  //#endregion
8
12
  export { screenshotone };
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 screenshotone = defineApp({\n slug: \"screenshotone\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,gBAAgB,UAAU;CACrC,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 generic_secret: z.string(),\n};\n\nexport const screenshotone: KeystrokeApp<\"screenshotone\", typeof credential> = defineApp({\n slug: \"screenshotone\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,gBAAkE,UAAU;CACvF,MAAM;CACN,MAAM;CACN;EAPA,iBAAiB,EAAE,OAAO;EAC1B,gBAAgB,EAAE,OAAO;CAMzB;AACF,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,8 +1,8 @@
1
+ import { screenshotone } from "./app.cjs";
1
2
  import { screenshotoneGetUsage } from "./actions/get-usage.cjs";
2
3
  import { screenshotoneListDevices } from "./actions/list-devices.cjs";
3
4
  import { screenshotoneTakeAnimatedScreenshot } from "./actions/take-animated-screenshot.cjs";
4
5
  import { screenshotoneTakeBulkScreenshots } from "./actions/take-bulk-screenshots.cjs";
5
6
  import { screenshotoneTakeScreenshot } from "./actions/take-screenshot.cjs";
6
- import { screenshotone } from "./app.cjs";
7
7
  import { screenshotoneCatalog } from "./catalog.cjs";
8
8
  export { screenshotone, screenshotoneCatalog, screenshotoneGetUsage, screenshotoneListDevices, screenshotoneTakeAnimatedScreenshot, screenshotoneTakeBulkScreenshots, screenshotoneTakeScreenshot };
package/dist/index.d.mts CHANGED
@@ -1,8 +1,8 @@
1
+ import { screenshotone } from "./app.mjs";
1
2
  import { screenshotoneGetUsage } from "./actions/get-usage.mjs";
2
3
  import { screenshotoneListDevices } from "./actions/list-devices.mjs";
3
4
  import { screenshotoneTakeAnimatedScreenshot } from "./actions/take-animated-screenshot.mjs";
4
5
  import { screenshotoneTakeBulkScreenshots } from "./actions/take-bulk-screenshots.mjs";
5
6
  import { screenshotoneTakeScreenshot } from "./actions/take-screenshot.mjs";
6
- import { screenshotone } from "./app.mjs";
7
7
  import { screenshotoneCatalog } from "./catalog.mjs";
8
8
  export { screenshotone, screenshotoneCatalog, screenshotoneGetUsage, screenshotoneListDevices, screenshotoneTakeAnimatedScreenshot, screenshotoneTakeBulkScreenshots, screenshotoneTakeScreenshot };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/screenshotone",
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": {