@keystrokehq/screenshotone 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/get-usage.cjs +26 -0
- package/dist/actions/get-usage.cjs.map +1 -0
- package/dist/actions/get-usage.d.cts +9 -0
- package/dist/actions/get-usage.d.cts.map +1 -0
- package/dist/actions/get-usage.d.mts +9 -0
- package/dist/actions/get-usage.d.mts.map +1 -0
- package/dist/actions/get-usage.mjs +25 -0
- package/dist/actions/get-usage.mjs.map +1 -0
- package/dist/actions/index.cjs +11 -0
- package/dist/actions/index.d.cts +6 -0
- package/dist/actions/index.d.mts +6 -0
- package/dist/actions/index.mjs +6 -0
- package/dist/actions/list-devices.cjs +30 -0
- package/dist/actions/list-devices.cjs.map +1 -0
- package/dist/actions/list-devices.d.cts +9 -0
- package/dist/actions/list-devices.d.cts.map +1 -0
- package/dist/actions/list-devices.d.mts +9 -0
- package/dist/actions/list-devices.d.mts.map +1 -0
- package/dist/actions/list-devices.mjs +29 -0
- package/dist/actions/list-devices.mjs.map +1 -0
- package/dist/actions/take-animated-screenshot.cjs +82 -0
- package/dist/actions/take-animated-screenshot.cjs.map +1 -0
- package/dist/actions/take-animated-screenshot.d.cts +9 -0
- package/dist/actions/take-animated-screenshot.d.cts.map +1 -0
- package/dist/actions/take-animated-screenshot.d.mts +9 -0
- package/dist/actions/take-animated-screenshot.d.mts.map +1 -0
- package/dist/actions/take-animated-screenshot.mjs +81 -0
- package/dist/actions/take-animated-screenshot.mjs.map +1 -0
- package/dist/actions/take-bulk-screenshots.cjs +85 -0
- package/dist/actions/take-bulk-screenshots.cjs.map +1 -0
- package/dist/actions/take-bulk-screenshots.d.cts +9 -0
- package/dist/actions/take-bulk-screenshots.d.cts.map +1 -0
- package/dist/actions/take-bulk-screenshots.d.mts +9 -0
- package/dist/actions/take-bulk-screenshots.d.mts.map +1 -0
- package/dist/actions/take-bulk-screenshots.mjs +84 -0
- package/dist/actions/take-bulk-screenshots.mjs.map +1 -0
- package/dist/actions/take-screenshot.cjs +50 -0
- package/dist/actions/take-screenshot.cjs.map +1 -0
- package/dist/actions/take-screenshot.d.cts +9 -0
- package/dist/actions/take-screenshot.d.cts.map +1 -0
- package/dist/actions/take-screenshot.d.mts +9 -0
- package/dist/actions/take-screenshot.d.mts.map +1 -0
- package/dist/actions/take-screenshot.mjs +49 -0
- package/dist/actions/take-screenshot.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +16 -0
- package/dist/index.d.cts +8 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.mjs +9 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/screenshotone
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `screenshotone`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 5
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { screenshotoneGetUsage } from "@keystrokehq/screenshotone/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "screenshotone-agent",
|
|
15
|
+
tools: [screenshotoneGetUsage],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.screenshotone.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executeScreenshotoneTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +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"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { screenshotone } from "./app.mjs";
|
|
2
|
+
import { executeScreenshotoneTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return screenshotone.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executeScreenshotoneTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-usage.ts
|
|
4
|
+
const ScreenshotoneGetUsageInput = zod.z.object({}).describe("Request model for getting usage information. No parameters required as authentication is handled via metadata.");
|
|
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.");
|
|
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"),
|
|
14
|
+
concurrency: ScreenshotoneGetUsage_ConcurrencyInfoSchema.nullable()
|
|
15
|
+
}).describe("Response containing API usage information.");
|
|
16
|
+
const screenshotoneGetUsage = require_action.action("SCREENSHOTONE_GET_USAGE", {
|
|
17
|
+
slug: "screenshotone-get-usage",
|
|
18
|
+
name: "Get Usage",
|
|
19
|
+
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.",
|
|
20
|
+
input: ScreenshotoneGetUsageInput,
|
|
21
|
+
output: ScreenshotoneGetUsageOutput
|
|
22
|
+
});
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.screenshotoneGetUsage = screenshotoneGetUsage;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=get-usage.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { screenshotoneGetUsage };
|
|
9
|
+
//# sourceMappingURL=get-usage.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { screenshotoneGetUsage };
|
|
9
|
+
//# sourceMappingURL=get-usage.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-usage.ts
|
|
4
|
+
const ScreenshotoneGetUsageInput = z.object({}).describe("Request model for getting usage information. No parameters required as authentication is handled via metadata.");
|
|
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.");
|
|
10
|
+
const screenshotoneGetUsage = action("SCREENSHOTONE_GET_USAGE", {
|
|
11
|
+
slug: "screenshotone-get-usage",
|
|
12
|
+
name: "Get Usage",
|
|
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
|
+
input: ScreenshotoneGetUsageInput,
|
|
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"),
|
|
19
|
+
concurrency: ScreenshotoneGetUsage_ConcurrencyInfoSchema.nullable()
|
|
20
|
+
}).describe("Response containing API usage information.")
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { screenshotoneGetUsage };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=get-usage.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_get_usage = require("./get-usage.cjs");
|
|
3
|
+
const require_list_devices = require("./list-devices.cjs");
|
|
4
|
+
const require_take_animated_screenshot = require("./take-animated-screenshot.cjs");
|
|
5
|
+
const require_take_bulk_screenshots = require("./take-bulk-screenshots.cjs");
|
|
6
|
+
const require_take_screenshot = require("./take-screenshot.cjs");
|
|
7
|
+
exports.screenshotoneGetUsage = require_get_usage.screenshotoneGetUsage;
|
|
8
|
+
exports.screenshotoneListDevices = require_list_devices.screenshotoneListDevices;
|
|
9
|
+
exports.screenshotoneTakeAnimatedScreenshot = require_take_animated_screenshot.screenshotoneTakeAnimatedScreenshot;
|
|
10
|
+
exports.screenshotoneTakeBulkScreenshots = require_take_bulk_screenshots.screenshotoneTakeBulkScreenshots;
|
|
11
|
+
exports.screenshotoneTakeScreenshot = require_take_screenshot.screenshotoneTakeScreenshot;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { screenshotoneGetUsage } from "./get-usage.cjs";
|
|
2
|
+
import { screenshotoneListDevices } from "./list-devices.cjs";
|
|
3
|
+
import { screenshotoneTakeAnimatedScreenshot } from "./take-animated-screenshot.cjs";
|
|
4
|
+
import { screenshotoneTakeBulkScreenshots } from "./take-bulk-screenshots.cjs";
|
|
5
|
+
import { screenshotoneTakeScreenshot } from "./take-screenshot.cjs";
|
|
6
|
+
export { screenshotoneGetUsage, screenshotoneListDevices, screenshotoneTakeAnimatedScreenshot, screenshotoneTakeBulkScreenshots, screenshotoneTakeScreenshot };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { screenshotoneGetUsage } from "./get-usage.mjs";
|
|
2
|
+
import { screenshotoneListDevices } from "./list-devices.mjs";
|
|
3
|
+
import { screenshotoneTakeAnimatedScreenshot } from "./take-animated-screenshot.mjs";
|
|
4
|
+
import { screenshotoneTakeBulkScreenshots } from "./take-bulk-screenshots.mjs";
|
|
5
|
+
import { screenshotoneTakeScreenshot } from "./take-screenshot.mjs";
|
|
6
|
+
export { screenshotoneGetUsage, screenshotoneListDevices, screenshotoneTakeAnimatedScreenshot, screenshotoneTakeBulkScreenshots, screenshotoneTakeScreenshot };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { screenshotoneGetUsage } from "./get-usage.mjs";
|
|
2
|
+
import { screenshotoneListDevices } from "./list-devices.mjs";
|
|
3
|
+
import { screenshotoneTakeAnimatedScreenshot } from "./take-animated-screenshot.mjs";
|
|
4
|
+
import { screenshotoneTakeBulkScreenshots } from "./take-bulk-screenshots.mjs";
|
|
5
|
+
import { screenshotoneTakeScreenshot } from "./take-screenshot.mjs";
|
|
6
|
+
export { screenshotoneGetUsage, screenshotoneListDevices, screenshotoneTakeAnimatedScreenshot, screenshotoneTakeBulkScreenshots, screenshotoneTakeScreenshot };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-devices.ts
|
|
4
|
+
const ScreenshotoneListDevicesInput = zod.z.object({}).describe("Request model for listing supported devices.");
|
|
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.");
|
|
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"),
|
|
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.");
|
|
20
|
+
const screenshotoneListDevices = require_action.action("SCREENSHOTONE_LIST_DEVICES", {
|
|
21
|
+
slug: "screenshotone-list-devices",
|
|
22
|
+
name: "List Devices",
|
|
23
|
+
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.",
|
|
24
|
+
input: ScreenshotoneListDevicesInput,
|
|
25
|
+
output: ScreenshotoneListDevicesOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.screenshotoneListDevices = screenshotoneListDevices;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=list-devices.cjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { screenshotoneListDevices };
|
|
9
|
+
//# sourceMappingURL=list-devices.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { screenshotoneListDevices };
|
|
9
|
+
//# sourceMappingURL=list-devices.d.mts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-devices.ts
|
|
4
|
+
const ScreenshotoneListDevicesInput = z.object({}).describe("Request model for listing supported devices.");
|
|
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.");
|
|
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"),
|
|
16
|
+
viewport: ScreenshotoneListDevices_ViewportSchema.nullable(),
|
|
17
|
+
userAgent: z.string().describe("User agent string for the device")
|
|
18
|
+
}).describe("Device information including viewport parameters.");
|
|
19
|
+
const screenshotoneListDevices = action("SCREENSHOTONE_LIST_DEVICES", {
|
|
20
|
+
slug: "screenshotone-list-devices",
|
|
21
|
+
name: "List Devices",
|
|
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
|
+
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.")
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { screenshotoneListDevices };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=list-devices.mjs.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/take-animated-screenshot.ts
|
|
4
|
+
const ScreenshotoneTakeAnimatedScreenshotInput = zod.z.object({
|
|
5
|
+
url: zod.z.string().describe("The URL of the website to capture."),
|
|
6
|
+
delay: zod.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(),
|
|
7
|
+
width: zod.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(),
|
|
8
|
+
clip_x: zod.z.number().int().describe("X-coordinate for clipping the video. Only for GIF format.").optional(),
|
|
9
|
+
clip_y: zod.z.number().int().describe("Y-coordinate for clipping the video. Only for GIF format.").optional(),
|
|
10
|
+
format: zod.z.enum([
|
|
11
|
+
"mp4",
|
|
12
|
+
"mov",
|
|
13
|
+
"avi",
|
|
14
|
+
"webm",
|
|
15
|
+
"gif"
|
|
16
|
+
]).default("mp4").describe("The format of the animated screenshot.").optional(),
|
|
17
|
+
height: zod.z.number().int().describe("Height of the output animation. If specified, width must also be specified. Defaults to viewport height.").optional(),
|
|
18
|
+
duration: zod.z.number().int().default(5).describe("Duration of the animation in seconds. Minimum 1, maximum 30.").optional(),
|
|
19
|
+
scenario: zod.z.enum(["default", "scroll"]).default("default").describe("Defines the animation behavior. `default` records the site as it appears after loading. `scroll` simulates scrolling.").optional(),
|
|
20
|
+
block_ads: zod.z.boolean().describe("Block ads.").optional(),
|
|
21
|
+
full_page: zod.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(),
|
|
22
|
+
scroll_by: zod.z.number().int().default(1e3).describe("Pixels to scroll per step. Applicable if scenario is 'scroll'.").optional(),
|
|
23
|
+
clip_width: zod.z.number().int().describe("Width for clipping the video. Only for GIF format.").optional(),
|
|
24
|
+
clip_height: zod.z.number().int().describe("Height for clipping the video. Only for GIF format.").optional(),
|
|
25
|
+
scroll_back: zod.z.boolean().default(true).describe("Scroll back to the top after reaching the bottom. Applicable if scenario is 'scroll'.").optional(),
|
|
26
|
+
aspect_ratio: zod.z.string().describe("Aspect ratio for the animation (e.g., '16:9'). If specified, width and height are ignored.").optional(),
|
|
27
|
+
scroll_delay: zod.z.number().int().default(500).describe("Delay in milliseconds between scrolls. Applicable if scenario is 'scroll'.").optional(),
|
|
28
|
+
scroll_easing: zod.z.enum([
|
|
29
|
+
"linear",
|
|
30
|
+
"ease_in_quad",
|
|
31
|
+
"ease_out_quad",
|
|
32
|
+
"ease_in_out_quad",
|
|
33
|
+
"ease_in_cubic",
|
|
34
|
+
"ease_out_cubic",
|
|
35
|
+
"ease_in_out_cubic",
|
|
36
|
+
"ease_in_quart",
|
|
37
|
+
"ease_out_quart",
|
|
38
|
+
"ease_in_out_quart",
|
|
39
|
+
"ease_in_quint",
|
|
40
|
+
"ease_out_quint",
|
|
41
|
+
"ease_in_out_quint"
|
|
42
|
+
]).default("ease_in_out_quint").describe("Scrolling easing effect. Applicable if scenario is 'scroll'.").optional(),
|
|
43
|
+
viewport_width: zod.z.number().int().describe("Viewport width.").optional(),
|
|
44
|
+
omit_background: zod.z.boolean().describe("Omit background (only for MOV format).").optional(),
|
|
45
|
+
scroll_complete: zod.z.boolean().default(true).describe("Stop recording animation when full scrolling is completed. Applicable if scenario is 'scroll'.").optional(),
|
|
46
|
+
scroll_duration: zod.z.number().int().default(1500).describe("Duration in milliseconds of one scroll. Applicable if scenario is 'scroll'.").optional(),
|
|
47
|
+
viewport_height: zod.z.number().int().describe("Viewport height.").optional(),
|
|
48
|
+
scroll_start_delay: zod.z.number().int().default(0).describe("Wait time in milliseconds before starting scrolling. Applicable if scenario is 'scroll'.").optional(),
|
|
49
|
+
device_scale_factor: zod.z.number().describe("Device scale factor.").optional(),
|
|
50
|
+
scroll_to_end_after: zod.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(),
|
|
51
|
+
scroll_try_navigate: zod.z.boolean().describe("Navigate while scrolling and record the new opened page. Applicable if scenario is 'scroll'.").optional(),
|
|
52
|
+
block_cookie_banners: zod.z.boolean().describe("Block cookie banners.").optional(),
|
|
53
|
+
scroll_till_selector: zod.z.string().describe("Scroll till the CSS selector is visible. Applicable if scenario is 'scroll'.").optional(),
|
|
54
|
+
scroll_back_algorithm: zod.z.enum(["once", "repeat"]).default("once").describe("Algorithm for scrolling back (`once` or `repeat`). Applicable if scenario is 'scroll'.").optional(),
|
|
55
|
+
scroll_navigate_after: zod.z.number().int().describe("Navigate after duration in milliseconds (default is half of the duration). Applicable if scenario is 'scroll'.").optional(),
|
|
56
|
+
scroll_navigate_to_url: zod.z.string().describe("URL to navigate to. Applicable if scenario is 'scroll'.").optional(),
|
|
57
|
+
scroll_start_immediately: zod.z.boolean().default(true).describe("Scroll immediately or wait for scroll_delay. Applicable if scenario is 'scroll'.").optional(),
|
|
58
|
+
scroll_back_after_duration: zod.z.number().int().describe("Scroll back after the specified duration in milliseconds. Applicable if scenario is 'scroll'.").optional(),
|
|
59
|
+
scroll_navigate_link_hints: zod.z.array(zod.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(),
|
|
60
|
+
scroll_stop_after_duration: zod.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(),
|
|
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
|
+
});
|
|
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
|
+
});
|
|
68
|
+
const ScreenshotoneTakeAnimatedScreenshotOutput = zod.z.object({
|
|
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.");
|
|
72
|
+
const screenshotoneTakeAnimatedScreenshot = require_action.action("SCREENSHOTONE_TAKE_ANIMATED_SCREENSHOT", {
|
|
73
|
+
slug: "screenshotone-take-animated-screenshot",
|
|
74
|
+
name: "Take Animated Screenshot",
|
|
75
|
+
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).",
|
|
76
|
+
input: ScreenshotoneTakeAnimatedScreenshotInput,
|
|
77
|
+
output: ScreenshotoneTakeAnimatedScreenshotOutput
|
|
78
|
+
});
|
|
79
|
+
//#endregion
|
|
80
|
+
exports.screenshotoneTakeAnimatedScreenshot = screenshotoneTakeAnimatedScreenshot;
|
|
81
|
+
|
|
82
|
+
//# sourceMappingURL=take-animated-screenshot.cjs.map
|
|
@@ -0,0 +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;E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,MAAa,sCAAsCC,eAAAA,OAAO,0CAA0C;CAClG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { screenshotoneTakeAnimatedScreenshot };
|
|
9
|
+
//# sourceMappingURL=take-animated-screenshot.d.cts.map
|
|
@@ -0,0 +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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
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]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { screenshotoneTakeAnimatedScreenshot };
|
|
9
|
+
//# sourceMappingURL=take-animated-screenshot.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"take-animated-screenshot.d.mts","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"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/take-animated-screenshot.ts
|
|
4
|
+
const ScreenshotoneTakeAnimatedScreenshotInput = z.object({
|
|
5
|
+
url: z.string().describe("The URL of the website to capture."),
|
|
6
|
+
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(),
|
|
7
|
+
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(),
|
|
8
|
+
clip_x: z.number().int().describe("X-coordinate for clipping the video. Only for GIF format.").optional(),
|
|
9
|
+
clip_y: z.number().int().describe("Y-coordinate for clipping the video. Only for GIF format.").optional(),
|
|
10
|
+
format: z.enum([
|
|
11
|
+
"mp4",
|
|
12
|
+
"mov",
|
|
13
|
+
"avi",
|
|
14
|
+
"webm",
|
|
15
|
+
"gif"
|
|
16
|
+
]).default("mp4").describe("The format of the animated screenshot.").optional(),
|
|
17
|
+
height: z.number().int().describe("Height of the output animation. If specified, width must also be specified. Defaults to viewport height.").optional(),
|
|
18
|
+
duration: z.number().int().default(5).describe("Duration of the animation in seconds. Minimum 1, maximum 30.").optional(),
|
|
19
|
+
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(),
|
|
20
|
+
block_ads: z.boolean().describe("Block ads.").optional(),
|
|
21
|
+
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(),
|
|
22
|
+
scroll_by: z.number().int().default(1e3).describe("Pixels to scroll per step. Applicable if scenario is 'scroll'.").optional(),
|
|
23
|
+
clip_width: z.number().int().describe("Width for clipping the video. Only for GIF format.").optional(),
|
|
24
|
+
clip_height: z.number().int().describe("Height for clipping the video. Only for GIF format.").optional(),
|
|
25
|
+
scroll_back: z.boolean().default(true).describe("Scroll back to the top after reaching the bottom. Applicable if scenario is 'scroll'.").optional(),
|
|
26
|
+
aspect_ratio: z.string().describe("Aspect ratio for the animation (e.g., '16:9'). If specified, width and height are ignored.").optional(),
|
|
27
|
+
scroll_delay: z.number().int().default(500).describe("Delay in milliseconds between scrolls. Applicable if scenario is 'scroll'.").optional(),
|
|
28
|
+
scroll_easing: z.enum([
|
|
29
|
+
"linear",
|
|
30
|
+
"ease_in_quad",
|
|
31
|
+
"ease_out_quad",
|
|
32
|
+
"ease_in_out_quad",
|
|
33
|
+
"ease_in_cubic",
|
|
34
|
+
"ease_out_cubic",
|
|
35
|
+
"ease_in_out_cubic",
|
|
36
|
+
"ease_in_quart",
|
|
37
|
+
"ease_out_quart",
|
|
38
|
+
"ease_in_out_quart",
|
|
39
|
+
"ease_in_quint",
|
|
40
|
+
"ease_out_quint",
|
|
41
|
+
"ease_in_out_quint"
|
|
42
|
+
]).default("ease_in_out_quint").describe("Scrolling easing effect. Applicable if scenario is 'scroll'.").optional(),
|
|
43
|
+
viewport_width: z.number().int().describe("Viewport width.").optional(),
|
|
44
|
+
omit_background: z.boolean().describe("Omit background (only for MOV format).").optional(),
|
|
45
|
+
scroll_complete: z.boolean().default(true).describe("Stop recording animation when full scrolling is completed. Applicable if scenario is 'scroll'.").optional(),
|
|
46
|
+
scroll_duration: z.number().int().default(1500).describe("Duration in milliseconds of one scroll. Applicable if scenario is 'scroll'.").optional(),
|
|
47
|
+
viewport_height: z.number().int().describe("Viewport height.").optional(),
|
|
48
|
+
scroll_start_delay: z.number().int().default(0).describe("Wait time in milliseconds before starting scrolling. Applicable if scenario is 'scroll'.").optional(),
|
|
49
|
+
device_scale_factor: z.number().describe("Device scale factor.").optional(),
|
|
50
|
+
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(),
|
|
51
|
+
scroll_try_navigate: z.boolean().describe("Navigate while scrolling and record the new opened page. Applicable if scenario is 'scroll'.").optional(),
|
|
52
|
+
block_cookie_banners: z.boolean().describe("Block cookie banners.").optional(),
|
|
53
|
+
scroll_till_selector: z.string().describe("Scroll till the CSS selector is visible. Applicable if scenario is 'scroll'.").optional(),
|
|
54
|
+
scroll_back_algorithm: z.enum(["once", "repeat"]).default("once").describe("Algorithm for scrolling back (`once` or `repeat`). Applicable if scenario is 'scroll'.").optional(),
|
|
55
|
+
scroll_navigate_after: z.number().int().describe("Navigate after duration in milliseconds (default is half of the duration). Applicable if scenario is 'scroll'.").optional(),
|
|
56
|
+
scroll_navigate_to_url: z.string().describe("URL to navigate to. Applicable if scenario is 'scroll'.").optional(),
|
|
57
|
+
scroll_start_immediately: z.boolean().default(true).describe("Scroll immediately or wait for scroll_delay. Applicable if scenario is 'scroll'.").optional(),
|
|
58
|
+
scroll_back_after_duration: z.number().int().describe("Scroll back after the specified duration in milliseconds. Applicable if scenario is 'scroll'.").optional(),
|
|
59
|
+
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(),
|
|
60
|
+
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(),
|
|
61
|
+
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()
|
|
62
|
+
});
|
|
63
|
+
const ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema = z.object({
|
|
64
|
+
name: z.string().describe("Name of the file"),
|
|
65
|
+
s3url: z.string().describe("S3 URL of the downloaded file."),
|
|
66
|
+
mimetype: z.string().describe("Mime type of the file.")
|
|
67
|
+
});
|
|
68
|
+
const screenshotoneTakeAnimatedScreenshot = action("SCREENSHOTONE_TAKE_ANIMATED_SCREENSHOT", {
|
|
69
|
+
slug: "screenshotone-take-animated-screenshot",
|
|
70
|
+
name: "Take Animated Screenshot",
|
|
71
|
+
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).",
|
|
72
|
+
input: ScreenshotoneTakeAnimatedScreenshotInput,
|
|
73
|
+
output: z.object({
|
|
74
|
+
file: ScreenshotoneTakeAnimatedScreenshot_FileDownloadableSchema.nullable(),
|
|
75
|
+
content_type: z.string().describe("The content type of the response (e.g., 'video/mp4', 'image/gif').")
|
|
76
|
+
}).describe("Response containing the animated screenshot file.")
|
|
77
|
+
});
|
|
78
|
+
//#endregion
|
|
79
|
+
export { screenshotoneTakeAnimatedScreenshot };
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=take-animated-screenshot.mjs.map
|
|
@@ -0,0 +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.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,2CAAyD,EAAE,OAAO;CAC7E,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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