@keystrokehq/screenshotone 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) 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 +8 -8
  4. package/dist/actions/get-usage.cjs.map +1 -1
  5. package/dist/actions/get-usage.d.cts +12 -3
  6. package/dist/actions/get-usage.d.cts.map +1 -1
  7. package/dist/actions/get-usage.d.mts +12 -3
  8. package/dist/actions/get-usage.d.mts.map +1 -1
  9. package/dist/actions/get-usage.mjs +8 -8
  10. package/dist/actions/get-usage.mjs.map +1 -1
  11. package/dist/actions/list-devices.cjs +12 -12
  12. package/dist/actions/list-devices.cjs.map +1 -1
  13. package/dist/actions/list-devices.d.cts +17 -3
  14. package/dist/actions/list-devices.d.cts.map +1 -1
  15. package/dist/actions/list-devices.d.mts +17 -3
  16. package/dist/actions/list-devices.d.mts.map +1 -1
  17. package/dist/actions/list-devices.mjs +12 -12
  18. package/dist/actions/list-devices.mjs.map +1 -1
  19. package/dist/actions/take-animated-screenshot.cjs +6 -6
  20. package/dist/actions/take-animated-screenshot.cjs.map +1 -1
  21. package/dist/actions/take-animated-screenshot.d.cts +112 -3
  22. package/dist/actions/take-animated-screenshot.d.cts.map +1 -1
  23. package/dist/actions/take-animated-screenshot.d.mts +112 -3
  24. package/dist/actions/take-animated-screenshot.d.mts.map +1 -1
  25. package/dist/actions/take-animated-screenshot.mjs +6 -6
  26. package/dist/actions/take-animated-screenshot.mjs.map +1 -1
  27. package/dist/actions/take-bulk-screenshots.cjs +9 -9
  28. package/dist/actions/take-bulk-screenshots.cjs.map +1 -1
  29. package/dist/actions/take-bulk-screenshots.d.cts +114 -3
  30. package/dist/actions/take-bulk-screenshots.d.cts.map +1 -1
  31. package/dist/actions/take-bulk-screenshots.d.mts +114 -3
  32. package/dist/actions/take-bulk-screenshots.d.mts.map +1 -1
  33. package/dist/actions/take-bulk-screenshots.mjs +9 -9
  34. package/dist/actions/take-bulk-screenshots.mjs.map +1 -1
  35. package/dist/actions/take-screenshot.cjs +5 -5
  36. package/dist/actions/take-screenshot.cjs.map +1 -1
  37. package/dist/actions/take-screenshot.d.cts +51 -3
  38. package/dist/actions/take-screenshot.d.cts.map +1 -1
  39. package/dist/actions/take-screenshot.d.mts +51 -3
  40. package/dist/actions/take-screenshot.d.mts.map +1 -1
  41. package/dist/actions/take-screenshot.mjs +5 -5
  42. package/dist/actions/take-screenshot.mjs.map +1 -1
  43. package/dist/catalog.cjs +15 -1
  44. package/dist/catalog.cjs.map +1 -1
  45. package/dist/catalog.d.cts +14 -0
  46. package/dist/catalog.d.mts +14 -0
  47. package/dist/catalog.mjs +15 -1
  48. package/dist/catalog.mjs.map +1 -1
  49. 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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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 { 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 +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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 { 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"}
@@ -3,16 +3,16 @@ let zod = require("zod");
3
3
  //#region src/actions/get-usage.ts
4
4
  const ScreenshotoneGetUsageInput = zod.z.object({}).describe("Request model for getting usage information. No parameters required as authentication is handled via metadata.");
5
5
  const ScreenshotoneGetUsage_ConcurrencyInfoSchema = zod.z.object({
6
- limit: zod.z.number().int().describe("Total number of concurrent requests allowed per interval"),
7
- reset: zod.z.number().int().describe("Time when the limitation will be reset, in UNIX timestamp format in nanoseconds"),
8
- remaining: zod.z.number().int().describe("Number of available concurrent requests allowed per interval")
9
- }).describe("Concurrency information for API requests.");
6
+ limit: zod.z.number().int().describe("Total number of concurrent requests allowed per interval").nullable(),
7
+ reset: zod.z.number().int().describe("Time when the limitation will be reset, in UNIX timestamp format in nanoseconds").nullable(),
8
+ remaining: zod.z.number().int().describe("Number of available concurrent requests allowed per interval").nullable()
9
+ }).passthrough().describe("Concurrency information for API requests.");
10
10
  const ScreenshotoneGetUsageOutput = zod.z.object({
11
- used: zod.z.number().int().describe("Number of successfully executed requests"),
12
- total: zod.z.number().int().describe("Total number of requests allowed in the current billing period"),
13
- available: zod.z.number().int().describe("Number of available requests until the end of the current period"),
11
+ used: zod.z.number().int().describe("Number of successfully executed requests").nullable(),
12
+ total: zod.z.number().int().describe("Total number of requests allowed in the current billing period").nullable(),
13
+ available: zod.z.number().int().describe("Number of available requests until the end of the current period").nullable(),
14
14
  concurrency: ScreenshotoneGetUsage_ConcurrencyInfoSchema.nullable()
15
- }).describe("Response containing API usage information.");
15
+ }).passthrough().describe("Response containing API usage information.");
16
16
  const screenshotoneGetUsage = require_action.action("SCREENSHOTONE_GET_USAGE", {
17
17
  slug: "screenshotone-get-usage",
18
18
  name: "Get Usage",
@@ -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.ZodTypeAny = z.object({}).describe(\"Request model for getting usage information. No parameters required as authentication is handled via metadata.\");\nconst ScreenshotoneGetUsage_ConcurrencyInfoSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Total number of concurrent requests allowed per interval\"),\n reset: z.number().int().describe(\"Time when the limitation will be reset, in UNIX timestamp format in nanoseconds\"),\n remaining: z.number().int().describe(\"Number of available concurrent requests allowed per interval\"),\n}).describe(\"Concurrency information for API requests.\");\nexport const ScreenshotoneGetUsageOutput: z.ZodTypeAny = z.object({\n used: z.number().int().describe(\"Number of successfully executed requests\"),\n total: z.number().int().describe(\"Total number of requests allowed in the current billing period\"),\n available: z.number().int().describe(\"Number of available requests until the end of the current period\"),\n concurrency: ScreenshotoneGetUsage_ConcurrencyInfoSchema.nullable(),\n}).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,6BAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gHAAgH;AAC9L,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAC3F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF;CAClH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D;AACrG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE;CACvG,aAAa,4CAA4C,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,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 { 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,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-usage.d.ts
4
- declare const ScreenshotoneGetUsageInput: z.ZodTypeAny;
5
- declare const ScreenshotoneGetUsageOutput: z.ZodTypeAny;
6
- declare const screenshotoneGetUsage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ScreenshotoneGetUsageInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ScreenshotoneGetUsageOutput: z.ZodObject<{
6
+ used: z.ZodNullable<z.ZodNumber>;
7
+ total: z.ZodNullable<z.ZodNumber>;
8
+ available: z.ZodNullable<z.ZodNumber>;
9
+ concurrency: z.ZodNullable<z.ZodObject<{
10
+ limit: z.ZodNullable<z.ZodNumber>;
11
+ reset: z.ZodNullable<z.ZodNumber>;
12
+ remaining: z.ZodNullable<z.ZodNumber>;
13
+ }, z.core.$loose>>;
14
+ }, 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]>;
7
16
  //#endregion
8
17
  export { screenshotoneGetUsage };
9
18
  //# 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,EAA4B,CAAA,CAAE,UAAoJ;AAAA,cAMlL,2BAAA,EAA6B,CAAA,CAAE,UAKa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-usage.d.ts
4
- declare const ScreenshotoneGetUsageInput: z.ZodTypeAny;
5
- declare const ScreenshotoneGetUsageOutput: z.ZodTypeAny;
6
- declare const screenshotoneGetUsage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ScreenshotoneGetUsageInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ScreenshotoneGetUsageOutput: z.ZodObject<{
6
+ used: z.ZodNullable<z.ZodNumber>;
7
+ total: z.ZodNullable<z.ZodNumber>;
8
+ available: z.ZodNullable<z.ZodNumber>;
9
+ concurrency: z.ZodNullable<z.ZodObject<{
10
+ limit: z.ZodNullable<z.ZodNumber>;
11
+ reset: z.ZodNullable<z.ZodNumber>;
12
+ remaining: z.ZodNullable<z.ZodNumber>;
13
+ }, z.core.$loose>>;
14
+ }, 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]>;
7
16
  //#endregion
8
17
  export { screenshotoneGetUsage };
9
18
  //# 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,EAA4B,CAAA,CAAE,UAAoJ;AAAA,cAMlL,2BAAA,EAA6B,CAAA,CAAE,UAKa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -3,21 +3,21 @@ import { z } from "zod";
3
3
  //#region src/actions/get-usage.ts
4
4
  const ScreenshotoneGetUsageInput = z.object({}).describe("Request model for getting usage information. No parameters required as authentication is handled via metadata.");
5
5
  const ScreenshotoneGetUsage_ConcurrencyInfoSchema = z.object({
6
- limit: z.number().int().describe("Total number of concurrent requests allowed per interval"),
7
- reset: z.number().int().describe("Time when the limitation will be reset, in UNIX timestamp format in nanoseconds"),
8
- remaining: z.number().int().describe("Number of available concurrent requests allowed per interval")
9
- }).describe("Concurrency information for API requests.");
6
+ limit: z.number().int().describe("Total number of concurrent requests allowed per interval").nullable(),
7
+ reset: z.number().int().describe("Time when the limitation will be reset, in UNIX timestamp format in nanoseconds").nullable(),
8
+ remaining: z.number().int().describe("Number of available concurrent requests allowed per interval").nullable()
9
+ }).passthrough().describe("Concurrency information for API requests.");
10
10
  const screenshotoneGetUsage = action("SCREENSHOTONE_GET_USAGE", {
11
11
  slug: "screenshotone-get-usage",
12
12
  name: "Get Usage",
13
13
  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.",
14
14
  input: ScreenshotoneGetUsageInput,
15
15
  output: z.object({
16
- used: z.number().int().describe("Number of successfully executed requests"),
17
- total: z.number().int().describe("Total number of requests allowed in the current billing period"),
18
- available: z.number().int().describe("Number of available requests until the end of the current period"),
16
+ used: z.number().int().describe("Number of successfully executed requests").nullable(),
17
+ total: z.number().int().describe("Total number of requests allowed in the current billing period").nullable(),
18
+ available: z.number().int().describe("Number of available requests until the end of the current period").nullable(),
19
19
  concurrency: ScreenshotoneGetUsage_ConcurrencyInfoSchema.nullable()
20
- }).describe("Response containing API usage information.")
20
+ }).passthrough().describe("Response containing API usage information.")
21
21
  });
22
22
  //#endregion
23
23
  export { screenshotoneGetUsage };
@@ -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.ZodTypeAny = z.object({}).describe(\"Request model for getting usage information. No parameters required as authentication is handled via metadata.\");\nconst ScreenshotoneGetUsage_ConcurrencyInfoSchema: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Total number of concurrent requests allowed per interval\"),\n reset: z.number().int().describe(\"Time when the limitation will be reset, in UNIX timestamp format in nanoseconds\"),\n remaining: z.number().int().describe(\"Number of available concurrent requests allowed per interval\"),\n}).describe(\"Concurrency information for API requests.\");\nexport const ScreenshotoneGetUsageOutput: z.ZodTypeAny = z.object({\n used: z.number().int().describe(\"Number of successfully executed requests\"),\n total: z.number().int().describe(\"Total number of requests allowed in the current billing period\"),\n available: z.number().int().describe(\"Number of available requests until the end of the current period\"),\n concurrency: ScreenshotoneGetUsage_ConcurrencyInfoSchema.nullable(),\n}).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,6BAA2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gHAAgH;AAC9L,MAAM,8CAA4D,EAAE,OAAO;CACzE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0DAA0D;CAC3F,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iFAAiF;CAClH,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D;AACrG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAQvD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZuD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE;EACvG,aAAa,4CAA4C,SAAS;CACpE,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
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"}
@@ -3,20 +3,20 @@ let zod = require("zod");
3
3
  //#region src/actions/list-devices.ts
4
4
  const ScreenshotoneListDevicesInput = zod.z.object({}).describe("Request model for listing supported devices.");
5
5
  const ScreenshotoneListDevices_ViewportSchema = zod.z.object({
6
- width: zod.z.number().int().describe("Viewport width in pixels"),
7
- height: zod.z.number().int().describe("Viewport height in pixels"),
8
- hasTouch: zod.z.boolean().describe("Whether device has touch support"),
9
- isMobile: zod.z.boolean().describe("Whether device is mobile"),
10
- isLandscape: zod.z.boolean().describe("Whether device is in landscape orientation"),
11
- deviceScaleFactor: zod.z.number().describe("Device pixel ratio")
12
- }).describe("Viewport configuration for a device.");
6
+ width: zod.z.number().int().describe("Viewport width in pixels").nullable(),
7
+ height: zod.z.number().int().describe("Viewport height in pixels").nullable(),
8
+ hasTouch: zod.z.boolean().describe("Whether device has touch support").nullable(),
9
+ isMobile: zod.z.boolean().describe("Whether device is mobile").nullable(),
10
+ isLandscape: zod.z.boolean().describe("Whether device is in landscape orientation").nullable(),
11
+ deviceScaleFactor: zod.z.number().describe("Device pixel ratio").nullable()
12
+ }).passthrough().describe("Viewport configuration for a device.");
13
13
  const ScreenshotoneListDevices_DeviceSchema = zod.z.object({
14
- id: zod.z.string().describe("Device ID to use with viewport_device parameter (e.g., iphone_13_pro_max_landscape)"),
15
- name: zod.z.string().describe("Human-readable device name"),
14
+ id: zod.z.string().describe("Device ID to use with viewport_device parameter (e.g., iphone_13_pro_max_landscape)").nullable(),
15
+ name: zod.z.string().describe("Human-readable device name").nullable(),
16
16
  viewport: ScreenshotoneListDevices_ViewportSchema.nullable(),
17
- userAgent: zod.z.string().describe("User agent string for the device")
18
- }).describe("Device information including viewport parameters.");
19
- const ScreenshotoneListDevicesOutput = zod.z.object({ devices: zod.z.array(ScreenshotoneListDevices_DeviceSchema).describe("List of supported devices with their viewport parameters") }).describe("Response containing the list of supported devices.");
17
+ userAgent: zod.z.string().describe("User agent string for the device").nullable()
18
+ }).passthrough().describe("Device information including viewport parameters.");
19
+ const ScreenshotoneListDevicesOutput = zod.z.object({ devices: zod.z.array(ScreenshotoneListDevices_DeviceSchema).describe("List of supported devices with their viewport parameters") }).passthrough().describe("Response containing the list of supported devices.");
20
20
  const screenshotoneListDevices = require_action.action("SCREENSHOTONE_LIST_DEVICES", {
21
21
  slug: "screenshotone-list-devices",
22
22
  name: "List Devices",
@@ -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.ZodTypeAny = z.object({}).describe(\"Request model for listing supported devices.\");\nconst ScreenshotoneListDevices_ViewportSchema: z.ZodTypeAny = z.object({\n width: z.number().int().describe(\"Viewport width in pixels\"),\n height: z.number().int().describe(\"Viewport height in pixels\"),\n hasTouch: z.boolean().describe(\"Whether device has touch support\"),\n isMobile: z.boolean().describe(\"Whether device is mobile\"),\n isLandscape: z.boolean().describe(\"Whether device is in landscape orientation\"),\n deviceScaleFactor: z.number().describe(\"Device pixel ratio\"),\n}).describe(\"Viewport configuration for a device.\");\nconst ScreenshotoneListDevices_DeviceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Device ID to use with viewport_device parameter (e.g., iphone_13_pro_max_landscape)\"),\n name: z.string().describe(\"Human-readable device name\"),\n viewport: ScreenshotoneListDevices_ViewportSchema.nullable(),\n userAgent: z.string().describe(\"User agent string for the device\"),\n}).describe(\"Device information including viewport parameters.\");\nexport const ScreenshotoneListDevicesOutput: z.ZodTypeAny = z.object({\n devices: z.array(ScreenshotoneListDevices_DeviceSchema).describe(\"List of supported devices with their viewport parameters\"),\n}).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: ScreenshotoneListDevicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC/H,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAC7D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;CACjE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B;CACzD,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;CAC9E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;AAC7D,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAC7G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,UAAU,wCAAwC,SAAS;CAC3D,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AACnE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,SAASA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,0DAA0D,EAC7H,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAEhE,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 { 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: ScreenshotoneListDevicesOutput,\n});\n"],"mappings":";;;AAIA,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,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-devices.d.ts
4
- declare const ScreenshotoneListDevicesInput: z.ZodTypeAny;
5
- declare const ScreenshotoneListDevicesOutput: z.ZodTypeAny;
6
- declare const screenshotoneListDevices: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ScreenshotoneListDevicesInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ScreenshotoneListDevicesOutput: z.ZodObject<{
6
+ devices: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ viewport: z.ZodNullable<z.ZodObject<{
10
+ width: z.ZodNullable<z.ZodNumber>;
11
+ height: z.ZodNullable<z.ZodNumber>;
12
+ hasTouch: z.ZodNullable<z.ZodBoolean>;
13
+ isMobile: z.ZodNullable<z.ZodBoolean>;
14
+ isLandscape: z.ZodNullable<z.ZodBoolean>;
15
+ deviceScaleFactor: z.ZodNullable<z.ZodNumber>;
16
+ }, z.core.$loose>>;
17
+ userAgent: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>>;
19
+ }, 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]>;
7
21
  //#endregion
8
22
  export { screenshotoneListDevices };
9
23
  //# 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,EAA+B,CAAA,CAAE,UAAkF;AAAA,cAenH,8BAAA,EAAgC,CAAA,CAAE,UAEkB;AAAA,cAEpD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,23 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-devices.d.ts
4
- declare const ScreenshotoneListDevicesInput: z.ZodTypeAny;
5
- declare const ScreenshotoneListDevicesOutput: z.ZodTypeAny;
6
- declare const screenshotoneListDevices: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ScreenshotoneListDevicesInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ScreenshotoneListDevicesOutput: z.ZodObject<{
6
+ devices: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ viewport: z.ZodNullable<z.ZodObject<{
10
+ width: z.ZodNullable<z.ZodNumber>;
11
+ height: z.ZodNullable<z.ZodNumber>;
12
+ hasTouch: z.ZodNullable<z.ZodBoolean>;
13
+ isMobile: z.ZodNullable<z.ZodBoolean>;
14
+ isLandscape: z.ZodNullable<z.ZodBoolean>;
15
+ deviceScaleFactor: z.ZodNullable<z.ZodNumber>;
16
+ }, z.core.$loose>>;
17
+ userAgent: z.ZodNullable<z.ZodString>;
18
+ }, z.core.$loose>>;
19
+ }, 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]>;
7
21
  //#endregion
8
22
  export { screenshotoneListDevices };
9
23
  //# 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,EAA+B,CAAA,CAAE,UAAkF;AAAA,cAenH,8BAAA,EAAgC,CAAA,CAAE,UAEkB;AAAA,cAEpD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -3,25 +3,25 @@ import { z } from "zod";
3
3
  //#region src/actions/list-devices.ts
4
4
  const ScreenshotoneListDevicesInput = z.object({}).describe("Request model for listing supported devices.");
5
5
  const ScreenshotoneListDevices_ViewportSchema = z.object({
6
- width: z.number().int().describe("Viewport width in pixels"),
7
- height: z.number().int().describe("Viewport height in pixels"),
8
- hasTouch: z.boolean().describe("Whether device has touch support"),
9
- isMobile: z.boolean().describe("Whether device is mobile"),
10
- isLandscape: z.boolean().describe("Whether device is in landscape orientation"),
11
- deviceScaleFactor: z.number().describe("Device pixel ratio")
12
- }).describe("Viewport configuration for a device.");
6
+ width: z.number().int().describe("Viewport width in pixels").nullable(),
7
+ height: z.number().int().describe("Viewport height in pixels").nullable(),
8
+ hasTouch: z.boolean().describe("Whether device has touch support").nullable(),
9
+ isMobile: z.boolean().describe("Whether device is mobile").nullable(),
10
+ isLandscape: z.boolean().describe("Whether device is in landscape orientation").nullable(),
11
+ deviceScaleFactor: z.number().describe("Device pixel ratio").nullable()
12
+ }).passthrough().describe("Viewport configuration for a device.");
13
13
  const ScreenshotoneListDevices_DeviceSchema = z.object({
14
- id: z.string().describe("Device ID to use with viewport_device parameter (e.g., iphone_13_pro_max_landscape)"),
15
- name: z.string().describe("Human-readable device name"),
14
+ id: z.string().describe("Device ID to use with viewport_device parameter (e.g., iphone_13_pro_max_landscape)").nullable(),
15
+ name: z.string().describe("Human-readable device name").nullable(),
16
16
  viewport: ScreenshotoneListDevices_ViewportSchema.nullable(),
17
- userAgent: z.string().describe("User agent string for the device")
18
- }).describe("Device information including viewport parameters.");
17
+ userAgent: z.string().describe("User agent string for the device").nullable()
18
+ }).passthrough().describe("Device information including viewport parameters.");
19
19
  const screenshotoneListDevices = action("SCREENSHOTONE_LIST_DEVICES", {
20
20
  slug: "screenshotone-list-devices",
21
21
  name: "List Devices",
22
22
  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.",
23
23
  input: ScreenshotoneListDevicesInput,
24
- output: z.object({ devices: z.array(ScreenshotoneListDevices_DeviceSchema).describe("List of supported devices with their viewport parameters") }).describe("Response containing the list of supported devices.")
24
+ output: z.object({ devices: z.array(ScreenshotoneListDevices_DeviceSchema).describe("List of supported devices with their viewport parameters") }).passthrough().describe("Response containing the list of supported devices.")
25
25
  });
26
26
  //#endregion
27
27
  export { screenshotoneListDevices };
@@ -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.ZodTypeAny = z.object({}).describe(\"Request model for listing supported devices.\");\nconst ScreenshotoneListDevices_ViewportSchema: z.ZodTypeAny = z.object({\n width: z.number().int().describe(\"Viewport width in pixels\"),\n height: z.number().int().describe(\"Viewport height in pixels\"),\n hasTouch: z.boolean().describe(\"Whether device has touch support\"),\n isMobile: z.boolean().describe(\"Whether device is mobile\"),\n isLandscape: z.boolean().describe(\"Whether device is in landscape orientation\"),\n deviceScaleFactor: z.number().describe(\"Device pixel ratio\"),\n}).describe(\"Viewport configuration for a device.\");\nconst ScreenshotoneListDevices_DeviceSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Device ID to use with viewport_device parameter (e.g., iphone_13_pro_max_landscape)\"),\n name: z.string().describe(\"Human-readable device name\"),\n viewport: ScreenshotoneListDevices_ViewportSchema.nullable(),\n userAgent: z.string().describe(\"User agent string for the device\"),\n}).describe(\"Device information including viewport parameters.\");\nexport const ScreenshotoneListDevicesOutput: z.ZodTypeAny = z.object({\n devices: z.array(ScreenshotoneListDevices_DeviceSchema).describe(\"List of supported devices with their viewport parameters\"),\n}).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: ScreenshotoneListDevicesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC/H,MAAM,0CAAwD,EAAE,OAAO;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B;CAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAC7D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kCAAkC;CACjE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B;CACzD,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C;CAC9E,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;AAC7D,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAClD,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF;CAC7G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,UAAU,wCAAwC,SAAS;CAC3D,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AACnE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAK/D,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0D,EAAE,OAAO,EACnE,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,0DAA0D,EAC7H,CAAC,CAAC,CAAC,SAAS,oDAOF;AACV,CAAC"}
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: ScreenshotoneListDevicesOutput,\n});\n"],"mappings":";;;AAIA,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,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,0DAA0D,EAC7H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAOhB;AACV,CAAC"}
@@ -61,14 +61,14 @@ const ScreenshotoneTakeAnimatedScreenshotInput = zod.z.object({
61
61
  scroll_till_selector_adjust_top: zod.z.number().int().describe("Adjust the top position of the selector in the viewport. Applicable if scenario is 'scroll'.").optional()
62
62
  });
63
63
  const ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema = zod.z.object({
64
- name: zod.z.string().describe("Name of the file"),
65
- s3url: zod.z.string().describe("S3 URL of the downloaded file."),
66
- mimetype: zod.z.string().describe("Mime type of the file.")
67
- });
64
+ name: zod.z.string().describe("Name of the file").nullable(),
65
+ s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
66
+ mimetype: zod.z.string().describe("Mime type of the file.").nullable()
67
+ }).passthrough();
68
68
  const ScreenshotoneTakeAnimatedScreenshotOutput = zod.z.object({
69
69
  file: ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema.nullable(),
70
- content_type: zod.z.string().describe("The content type of the response (e.g., 'video/mp4', 'image/gif').")
71
- }).describe("Response containing the animated screenshot file.");
70
+ content_type: zod.z.string().describe("The content type of the response (e.g., 'video/mp4', 'image/gif').").nullable()
71
+ }).passthrough().describe("Response containing the animated screenshot file.");
72
72
  const screenshotoneTakeAnimatedScreenshot = require_action.action("SCREENSHOTONE_TAKE_ANIMATED_SCREENSHOT", {
73
73
  slug: "screenshotone-take-animated-screenshot",
74
74
  name: "Take Animated Screenshot",
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file\"),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\"),\n mimetype: z.string().describe(\"Mime type of the file.\"),\n});\nexport const ScreenshotoneTakeAnimatedScreenshotOutput: z.ZodTypeAny = 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').\"),\n}).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,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,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,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAQ;CAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACvJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACxH,UAAUA,IAAAA,EAAE,KAAK,CAAC,WAAW,QAAQ,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,uHAAuH,CAAC,CAAC,SAAS;CACtM,WAAWA,IAAA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,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAChK,4BAA4BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CACtN,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CACzN,iCAAiCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;AACtK,CAAC;AACD,MAAM,6DAA2EA,IAAAA,EAAE,OAAO;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AACD,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,MAAM,2DAA2D,SAAS;CAC1E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;AACxG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,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 { 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,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,IAA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AY;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,9 +1,118 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/take-animated-screenshot.d.ts
4
- declare const ScreenshotoneTakeAnimatedScreenshotInput: z.ZodTypeAny;
5
- declare const ScreenshotoneTakeAnimatedScreenshotOutput: z.ZodTypeAny;
6
- declare const screenshotoneTakeAnimatedScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ScreenshotoneTakeAnimatedScreenshotInput: z.ZodObject<{
5
+ url: z.ZodString;
6
+ delay: z.ZodOptional<z.ZodNumber>;
7
+ width: z.ZodOptional<z.ZodNumber>;
8
+ clip_x: z.ZodOptional<z.ZodNumber>;
9
+ clip_y: z.ZodOptional<z.ZodNumber>;
10
+ format: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
11
+ mp4: "mp4";
12
+ mov: "mov";
13
+ avi: "avi";
14
+ webm: "webm";
15
+ gif: "gif";
16
+ }>>>;
17
+ height: z.ZodOptional<z.ZodNumber>;
18
+ duration: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
19
+ scenario: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
20
+ default: "default";
21
+ scroll: "scroll";
22
+ }>>>;
23
+ block_ads: z.ZodOptional<z.ZodBoolean>;
24
+ full_page: z.ZodOptional<z.ZodBoolean>;
25
+ scroll_by: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
26
+ clip_width: z.ZodOptional<z.ZodNumber>;
27
+ clip_height: z.ZodOptional<z.ZodNumber>;
28
+ scroll_back: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
29
+ aspect_ratio: z.ZodOptional<z.ZodString>;
30
+ scroll_delay: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
31
+ scroll_easing: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
32
+ linear: "linear";
33
+ ease_in_quad: "ease_in_quad";
34
+ ease_out_quad: "ease_out_quad";
35
+ ease_in_out_quad: "ease_in_out_quad";
36
+ ease_in_cubic: "ease_in_cubic";
37
+ ease_out_cubic: "ease_out_cubic";
38
+ ease_in_out_cubic: "ease_in_out_cubic";
39
+ ease_in_quart: "ease_in_quart";
40
+ ease_out_quart: "ease_out_quart";
41
+ ease_in_out_quart: "ease_in_out_quart";
42
+ ease_in_quint: "ease_in_quint";
43
+ ease_out_quint: "ease_out_quint";
44
+ ease_in_out_quint: "ease_in_out_quint";
45
+ }>>>;
46
+ viewport_width: z.ZodOptional<z.ZodNumber>;
47
+ omit_background: z.ZodOptional<z.ZodBoolean>;
48
+ scroll_complete: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
49
+ scroll_duration: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
50
+ viewport_height: z.ZodOptional<z.ZodNumber>;
51
+ scroll_start_delay: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
52
+ device_scale_factor: z.ZodOptional<z.ZodNumber>;
53
+ scroll_to_end_after: z.ZodOptional<z.ZodNumber>;
54
+ scroll_try_navigate: z.ZodOptional<z.ZodBoolean>;
55
+ block_cookie_banners: z.ZodOptional<z.ZodBoolean>;
56
+ scroll_till_selector: z.ZodOptional<z.ZodString>;
57
+ scroll_back_algorithm: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
58
+ repeat: "repeat";
59
+ once: "once";
60
+ }>>>;
61
+ scroll_navigate_after: z.ZodOptional<z.ZodNumber>;
62
+ scroll_navigate_to_url: z.ZodOptional<z.ZodString>;
63
+ scroll_start_immediately: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
64
+ scroll_back_after_duration: z.ZodOptional<z.ZodNumber>;
65
+ scroll_navigate_link_hints: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
+ scroll_stop_after_duration: z.ZodOptional<z.ZodNumber>;
67
+ scroll_till_selector_adjust_top: z.ZodOptional<z.ZodNumber>;
68
+ }, z.core.$strip>;
69
+ declare const ScreenshotoneTakeAnimatedScreenshotOutput: z.ZodObject<{
70
+ file: z.ZodNullable<z.ZodObject<{
71
+ name: z.ZodNullable<z.ZodString>;
72
+ s3url: z.ZodNullable<z.ZodString>;
73
+ mimetype: z.ZodNullable<z.ZodString>;
74
+ }, z.core.$loose>>;
75
+ content_type: z.ZodNullable<z.ZodString>;
76
+ }, 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]>;
7
116
  //#endregion
8
117
  export { screenshotoneTakeAnimatedScreenshot };
9
118
  //# 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,EAA0C,CAAA,CAAE,UAsCvD;AAAA,cAMW,yCAAA,EAA2C,CAAA,CAAE,UAGM;AAAA,cAEnD,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}