@keystrokehq/opengraph_io 0.1.2 → 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.
@@ -28,16 +28,16 @@ const OpengraphIoCaptureScreenshotInput = zod.z.object({
28
28
  const OpengraphIoCaptureScreenshot_DimensionsSchema = zod.z.object({
29
29
  width: zod.z.number().int().describe("Width of the screenshot in pixels.").nullable().optional(),
30
30
  height: zod.z.number().int().describe("Height of the screenshot in pixels.").nullable().optional()
31
- }).describe("Dimensions of the captured screenshot.");
31
+ }).passthrough().describe("Dimensions of the captured screenshot.");
32
32
  const OpengraphIoCaptureScreenshot_RequestInfoSchema = zod.z.object({
33
33
  host: zod.z.string().describe("The hostname of the target URL.").nullable().optional(),
34
34
  responseCode: zod.z.number().int().describe("HTTP response code from the target URL.").nullable().optional()
35
- }).describe("Information about the HTTP request to the target URL.");
35
+ }).passthrough().describe("Information about the HTTP request to the target URL.");
36
36
  const OpengraphIoCaptureScreenshotOutput = zod.z.object({
37
37
  dimensions: OpengraphIoCaptureScreenshot_DimensionsSchema.nullable().optional(),
38
38
  requestInfo: OpengraphIoCaptureScreenshot_RequestInfoSchema.nullable().optional(),
39
39
  screenshotUrl: zod.z.string().describe("URL to the captured screenshot image. This URL is valid for 24 hours after generation.").nullable().optional()
40
- }).describe("Response schema for screenshot capture operation.");
40
+ }).passthrough().describe("Response schema for screenshot capture operation.");
41
41
  const opengraphIoCaptureScreenshot = require_action.action("OPENGRAPH_IO_CAPTURE_SCREENSHOT", {
42
42
  slug: "opengraph_io-capture-screenshot",
43
43
  name: "Capture Screenshot",
@@ -1 +1 @@
1
- {"version":3,"file":"capture-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/capture-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoCaptureScreenshotInput = z.object({\n url: z.string().describe(\"The target webpage URL to capture. Must be a valid HTTP or HTTPS URL.\"),\n format: z.enum([\"jpeg\", \"png\", \"webp\"]).describe(\"Image format options for the screenshot.\").optional(),\n quality: z.number().int().describe(\"Image quality from 10 to 80 (rounded to nearest 10). Higher values mean better quality but larger file size. Defaults to 80.\").optional(),\n cache_ok: z.boolean().describe(\"Allow returning a cached screenshot if available. Set to false to force a fresh capture. Defaults to true.\").optional(),\n selector: z.string().describe(\"CSS selector to capture a specific element instead of the full page. Example: '.main-content' or '#header'.\").optional(),\n dark_mode: z.boolean().describe(\"Set browser preference to dark mode before capturing. Useful for capturing dark-themed versions of websites. Defaults to false.\").optional(),\n full_page: z.boolean().describe(\"Capture the entire scrollable page instead of just the viewport. Set to true for full-page screenshots. Defaults to false.\").optional(),\n use_proxy: z.boolean().describe(\"Use a proxy for accessing protected or restricted sites. Defaults to false.\").optional(),\n dimensions: z.enum([\"xs\", \"sm\", \"md\", \"lg\"]).describe(\"Viewport size presets for different device types.\").optional(),\n capture_delay: z.number().int().describe(\"Delay in milliseconds before capturing the screenshot. Useful for waiting for dynamic content to load. Range: 0-10000ms.\").optional(),\n exclude_selectors: z.string().describe(\"Comma-separated CSS selectors of elements to hide from the screenshot. Useful for removing ads, popups, or unwanted elements. Example: '.header,.footer,.ads'.\").optional(),\n navigationTimeout: z.number().int().describe(\"Navigation timeout in milliseconds. Maximum time to wait for the page to load. Range: 1000-60000ms. Defaults to 30000ms (30 seconds).\").optional(),\n block_cookie_banner: z.boolean().describe(\"Automatically block known cookie consent banners from appearing in the screenshot. Defaults to true.\").optional(),\n}).describe(\"Request parameters for capturing a screenshot of a webpage.\");\nconst OpengraphIoCaptureScreenshot_DimensionsSchema = z.object({\n width: z.number().int().describe(\"Width of the screenshot in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the screenshot in pixels.\").nullable().optional(),\n}).describe(\"Dimensions of the captured screenshot.\");\nconst OpengraphIoCaptureScreenshot_RequestInfoSchema = z.object({\n host: z.string().describe(\"The hostname of the target URL.\").nullable().optional(),\n responseCode: z.number().int().describe(\"HTTP response code from the target URL.\").nullable().optional(),\n}).describe(\"Information about the HTTP request to the target URL.\");\nexport const OpengraphIoCaptureScreenshotOutput = z.object({\n dimensions: OpengraphIoCaptureScreenshot_DimensionsSchema.nullable().optional(),\n requestInfo: OpengraphIoCaptureScreenshot_RequestInfoSchema.nullable().optional(),\n screenshotUrl: z.string().describe(\"URL to the captured screenshot image. This URL is valid for 24 hours after generation.\").nullable().optional(),\n}).describe(\"Response schema for screenshot capture operation.\");\n\nexport const opengraphIoCaptureScreenshot = action(\"OPENGRAPH_IO_CAPTURE_SCREENSHOT\", {\n slug: \"opengraph_io-capture-screenshot\",\n name: \"Capture Screenshot\",\n description: \"Tool to capture high-quality screenshots of any webpage programmatically. Supports full-page captures, custom dimensions, device presets, element-specific screenshots, and quality settings. Screenshots are available for 24 hours after generation. Use when you need to capture visual snapshots of websites with specific rendering requirements or device simulations.\",\n input: OpengraphIoCaptureScreenshotInput,\n output: OpengraphIoCaptureScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CAChG,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAM,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CAC5K,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACtJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACtJ,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC5K,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SA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D,YAAY,8CAA8C,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,+CAA+C,SAAS,CAAC,CAAC,SAAS;CAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"capture-screenshot.cjs","names":["z","action"],"sources":["../../src/actions/capture-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoCaptureScreenshotInput = z.object({\n url: z.string().describe(\"The target webpage URL to capture. Must be a valid HTTP or HTTPS URL.\"),\n format: z.enum([\"jpeg\", \"png\", \"webp\"]).describe(\"Image format options for the screenshot.\").optional(),\n quality: z.number().int().describe(\"Image quality from 10 to 80 (rounded to nearest 10). Higher values mean better quality but larger file size. Defaults to 80.\").optional(),\n cache_ok: z.boolean().describe(\"Allow returning a cached screenshot if available. Set to false to force a fresh capture. Defaults to true.\").optional(),\n selector: z.string().describe(\"CSS selector to capture a specific element instead of the full page. Example: '.main-content' or '#header'.\").optional(),\n dark_mode: z.boolean().describe(\"Set browser preference to dark mode before capturing. Useful for capturing dark-themed versions of websites. Defaults to false.\").optional(),\n full_page: z.boolean().describe(\"Capture the entire scrollable page instead of just the viewport. Set to true for full-page screenshots. Defaults to false.\").optional(),\n use_proxy: z.boolean().describe(\"Use a proxy for accessing protected or restricted sites. Defaults to false.\").optional(),\n dimensions: z.enum([\"xs\", \"sm\", \"md\", \"lg\"]).describe(\"Viewport size presets for different device types.\").optional(),\n capture_delay: z.number().int().describe(\"Delay in milliseconds before capturing the screenshot. Useful for waiting for dynamic content to load. Range: 0-10000ms.\").optional(),\n exclude_selectors: z.string().describe(\"Comma-separated CSS selectors of elements to hide from the screenshot. Useful for removing ads, popups, or unwanted elements. Example: '.header,.footer,.ads'.\").optional(),\n navigationTimeout: z.number().int().describe(\"Navigation timeout in milliseconds. Maximum time to wait for the page to load. Range: 1000-60000ms. Defaults to 30000ms (30 seconds).\").optional(),\n block_cookie_banner: z.boolean().describe(\"Automatically block known cookie consent banners from appearing in the screenshot. Defaults to true.\").optional(),\n}).describe(\"Request parameters for capturing a screenshot of a webpage.\");\nconst OpengraphIoCaptureScreenshot_DimensionsSchema = z.object({\n width: z.number().int().describe(\"Width of the screenshot in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the screenshot in pixels.\").nullable().optional(),\n}).passthrough().describe(\"Dimensions of the captured screenshot.\");\nconst OpengraphIoCaptureScreenshot_RequestInfoSchema = z.object({\n host: z.string().describe(\"The hostname of the target URL.\").nullable().optional(),\n responseCode: z.number().int().describe(\"HTTP response code from the target URL.\").nullable().optional(),\n}).passthrough().describe(\"Information about the HTTP request to the target URL.\");\nexport const OpengraphIoCaptureScreenshotOutput = z.object({\n dimensions: OpengraphIoCaptureScreenshot_DimensionsSchema.nullable().optional(),\n requestInfo: OpengraphIoCaptureScreenshot_RequestInfoSchema.nullable().optional(),\n screenshotUrl: z.string().describe(\"URL to the captured screenshot image. This URL is valid for 24 hours after generation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for screenshot capture operation.\");\n\nexport const opengraphIoCaptureScreenshot = action(\"OPENGRAPH_IO_CAPTURE_SCREENSHOT\", {\n slug: \"opengraph_io-capture-screenshot\",\n name: \"Capture Screenshot\",\n description: \"Tool to capture high-quality screenshots of any webpage programmatically. Supports full-page captures, custom dimensions, device presets, element-specific screenshots, and quality settings. Screenshots are available for 24 hours after generation. Use when you need to capture visual snapshots of websites with specific rendering requirements or device simulations.\",\n input: OpengraphIoCaptureScreenshotInput,\n output: OpengraphIoCaptureScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,KA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AC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAClE,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,YAAY,8CAA8C,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,+CAA+C,SAAS,CAAC,CAAC,SAAS;CAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -29,13 +29,13 @@ declare const OpengraphIoCaptureScreenshotOutput: z.ZodObject<{
29
29
  dimensions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
30
30
  width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
31
  height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
- }, z.core.$strip>>>;
32
+ }, z.core.$loose>>>;
33
33
  requestInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34
34
  host: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  responseCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
- }, z.core.$strip>>>;
36
+ }, z.core.$loose>>>;
37
37
  screenshotUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
- }, z.core.$strip>;
38
+ }, z.core.$loose>;
39
39
  declare const opengraphIoCaptureScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
40
40
  url: string;
41
41
  format?: "jpeg" | "png" | "webp" | undefined;
@@ -29,13 +29,13 @@ declare const OpengraphIoCaptureScreenshotOutput: z.ZodObject<{
29
29
  dimensions: z.ZodOptional<z.ZodNullable<z.ZodObject<{
30
30
  width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
31
  height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
32
- }, z.core.$strip>>>;
32
+ }, z.core.$loose>>>;
33
33
  requestInfo: z.ZodOptional<z.ZodNullable<z.ZodObject<{
34
34
  host: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
35
  responseCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
36
- }, z.core.$strip>>>;
36
+ }, z.core.$loose>>>;
37
37
  screenshotUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
- }, z.core.$strip>;
38
+ }, z.core.$loose>;
39
39
  declare const opengraphIoCaptureScreenshot: import("@keystrokehq/action").WorkflowActionDefinition<{
40
40
  url: string;
41
41
  format?: "jpeg" | "png" | "webp" | undefined;
@@ -28,11 +28,11 @@ const OpengraphIoCaptureScreenshotInput = z.object({
28
28
  const OpengraphIoCaptureScreenshot_DimensionsSchema = z.object({
29
29
  width: z.number().int().describe("Width of the screenshot in pixels.").nullable().optional(),
30
30
  height: z.number().int().describe("Height of the screenshot in pixels.").nullable().optional()
31
- }).describe("Dimensions of the captured screenshot.");
31
+ }).passthrough().describe("Dimensions of the captured screenshot.");
32
32
  const OpengraphIoCaptureScreenshot_RequestInfoSchema = z.object({
33
33
  host: z.string().describe("The hostname of the target URL.").nullable().optional(),
34
34
  responseCode: z.number().int().describe("HTTP response code from the target URL.").nullable().optional()
35
- }).describe("Information about the HTTP request to the target URL.");
35
+ }).passthrough().describe("Information about the HTTP request to the target URL.");
36
36
  const opengraphIoCaptureScreenshot = action("OPENGRAPH_IO_CAPTURE_SCREENSHOT", {
37
37
  slug: "opengraph_io-capture-screenshot",
38
38
  name: "Capture Screenshot",
@@ -42,7 +42,7 @@ const opengraphIoCaptureScreenshot = action("OPENGRAPH_IO_CAPTURE_SCREENSHOT", {
42
42
  dimensions: OpengraphIoCaptureScreenshot_DimensionsSchema.nullable().optional(),
43
43
  requestInfo: OpengraphIoCaptureScreenshot_RequestInfoSchema.nullable().optional(),
44
44
  screenshotUrl: z.string().describe("URL to the captured screenshot image. This URL is valid for 24 hours after generation.").nullable().optional()
45
- }).describe("Response schema for screenshot capture operation.")
45
+ }).passthrough().describe("Response schema for screenshot capture operation.")
46
46
  });
47
47
  //#endregion
48
48
  export { opengraphIoCaptureScreenshot };
@@ -1 +1 @@
1
- {"version":3,"file":"capture-screenshot.mjs","names":[],"sources":["../../src/actions/capture-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoCaptureScreenshotInput = z.object({\n url: z.string().describe(\"The target webpage URL to capture. Must be a valid HTTP or HTTPS URL.\"),\n format: z.enum([\"jpeg\", \"png\", \"webp\"]).describe(\"Image format options for the screenshot.\").optional(),\n quality: z.number().int().describe(\"Image quality from 10 to 80 (rounded to nearest 10). Higher values mean better quality but larger file size. Defaults to 80.\").optional(),\n cache_ok: z.boolean().describe(\"Allow returning a cached screenshot if available. Set to false to force a fresh capture. Defaults to true.\").optional(),\n selector: z.string().describe(\"CSS selector to capture a specific element instead of the full page. Example: '.main-content' or '#header'.\").optional(),\n dark_mode: z.boolean().describe(\"Set browser preference to dark mode before capturing. Useful for capturing dark-themed versions of websites. Defaults to false.\").optional(),\n full_page: z.boolean().describe(\"Capture the entire scrollable page instead of just the viewport. Set to true for full-page screenshots. Defaults to false.\").optional(),\n use_proxy: z.boolean().describe(\"Use a proxy for accessing protected or restricted sites. Defaults to false.\").optional(),\n dimensions: z.enum([\"xs\", \"sm\", \"md\", \"lg\"]).describe(\"Viewport size presets for different device types.\").optional(),\n capture_delay: z.number().int().describe(\"Delay in milliseconds before capturing the screenshot. Useful for waiting for dynamic content to load. Range: 0-10000ms.\").optional(),\n exclude_selectors: z.string().describe(\"Comma-separated CSS selectors of elements to hide from the screenshot. Useful for removing ads, popups, or unwanted elements. Example: '.header,.footer,.ads'.\").optional(),\n navigationTimeout: z.number().int().describe(\"Navigation timeout in milliseconds. Maximum time to wait for the page to load. Range: 1000-60000ms. Defaults to 30000ms (30 seconds).\").optional(),\n block_cookie_banner: z.boolean().describe(\"Automatically block known cookie consent banners from appearing in the screenshot. Defaults to true.\").optional(),\n}).describe(\"Request parameters for capturing a screenshot of a webpage.\");\nconst OpengraphIoCaptureScreenshot_DimensionsSchema = z.object({\n width: z.number().int().describe(\"Width of the screenshot in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the screenshot in pixels.\").nullable().optional(),\n}).describe(\"Dimensions of the captured screenshot.\");\nconst OpengraphIoCaptureScreenshot_RequestInfoSchema = z.object({\n host: z.string().describe(\"The hostname of the target URL.\").nullable().optional(),\n responseCode: z.number().int().describe(\"HTTP response code from the target URL.\").nullable().optional(),\n}).describe(\"Information about the HTTP request to the target URL.\");\nexport const OpengraphIoCaptureScreenshotOutput = z.object({\n dimensions: OpengraphIoCaptureScreenshot_DimensionsSchema.nullable().optional(),\n requestInfo: OpengraphIoCaptureScreenshot_RequestInfoSchema.nullable().optional(),\n screenshotUrl: z.string().describe(\"URL to the captured screenshot image. This URL is valid for 24 hours after generation.\").nullable().optional(),\n}).describe(\"Response schema for screenshot capture operation.\");\n\nexport const opengraphIoCaptureScreenshot = action(\"OPENGRAPH_IO_CAPTURE_SCREENSHOT\", {\n slug: \"opengraph_io-capture-screenshot\",\n name: \"Capture Screenshot\",\n description: \"Tool to capture high-quality screenshots of any webpage programmatically. Supports full-page captures, custom dimensions, device presets, element-specific screenshots, and quality settings. Screenshots are available for 24 hours after generation. Use when you need to capture visual snapshots of websites with specific rendering requirements or device simulations.\",\n input: OpengraphIoCaptureScreenshotInput,\n output: OpengraphIoCaptureScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CAChG,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAM,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CAC5K,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACtJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACtJ,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC5K,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACvK,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACxH,YAAY,EAAE,KAAK;EAAC;EAAM;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0HAA0H,CAAC,CAAC,SAAS;CAC9K,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CAClN,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uIAAuI,CAAC,CAAC,SAAS;CAC/L,qBAAqB,EAAE,QAAQ,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,gDAAgD,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,iDAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAOnE,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXgD,EAAE,OAAO;EACzD,YAAY,8CAA8C,SAAS,CAAC,CAAC,SAAS;EAC9E,aAAa,+CAA+C,SAAS,CAAC,CAAC,SAAS;EAChF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"capture-screenshot.mjs","names":[],"sources":["../../src/actions/capture-screenshot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoCaptureScreenshotInput = z.object({\n url: z.string().describe(\"The target webpage URL to capture. Must be a valid HTTP or HTTPS URL.\"),\n format: z.enum([\"jpeg\", \"png\", \"webp\"]).describe(\"Image format options for the screenshot.\").optional(),\n quality: z.number().int().describe(\"Image quality from 10 to 80 (rounded to nearest 10). Higher values mean better quality but larger file size. Defaults to 80.\").optional(),\n cache_ok: z.boolean().describe(\"Allow returning a cached screenshot if available. Set to false to force a fresh capture. Defaults to true.\").optional(),\n selector: z.string().describe(\"CSS selector to capture a specific element instead of the full page. Example: '.main-content' or '#header'.\").optional(),\n dark_mode: z.boolean().describe(\"Set browser preference to dark mode before capturing. Useful for capturing dark-themed versions of websites. Defaults to false.\").optional(),\n full_page: z.boolean().describe(\"Capture the entire scrollable page instead of just the viewport. Set to true for full-page screenshots. Defaults to false.\").optional(),\n use_proxy: z.boolean().describe(\"Use a proxy for accessing protected or restricted sites. Defaults to false.\").optional(),\n dimensions: z.enum([\"xs\", \"sm\", \"md\", \"lg\"]).describe(\"Viewport size presets for different device types.\").optional(),\n capture_delay: z.number().int().describe(\"Delay in milliseconds before capturing the screenshot. Useful for waiting for dynamic content to load. Range: 0-10000ms.\").optional(),\n exclude_selectors: z.string().describe(\"Comma-separated CSS selectors of elements to hide from the screenshot. Useful for removing ads, popups, or unwanted elements. Example: '.header,.footer,.ads'.\").optional(),\n navigationTimeout: z.number().int().describe(\"Navigation timeout in milliseconds. Maximum time to wait for the page to load. Range: 1000-60000ms. Defaults to 30000ms (30 seconds).\").optional(),\n block_cookie_banner: z.boolean().describe(\"Automatically block known cookie consent banners from appearing in the screenshot. Defaults to true.\").optional(),\n}).describe(\"Request parameters for capturing a screenshot of a webpage.\");\nconst OpengraphIoCaptureScreenshot_DimensionsSchema = z.object({\n width: z.number().int().describe(\"Width of the screenshot in pixels.\").nullable().optional(),\n height: z.number().int().describe(\"Height of the screenshot in pixels.\").nullable().optional(),\n}).passthrough().describe(\"Dimensions of the captured screenshot.\");\nconst OpengraphIoCaptureScreenshot_RequestInfoSchema = z.object({\n host: z.string().describe(\"The hostname of the target URL.\").nullable().optional(),\n responseCode: z.number().int().describe(\"HTTP response code from the target URL.\").nullable().optional(),\n}).passthrough().describe(\"Information about the HTTP request to the target URL.\");\nexport const OpengraphIoCaptureScreenshotOutput = z.object({\n dimensions: OpengraphIoCaptureScreenshot_DimensionsSchema.nullable().optional(),\n requestInfo: OpengraphIoCaptureScreenshot_RequestInfoSchema.nullable().optional(),\n screenshotUrl: z.string().describe(\"URL to the captured screenshot image. This URL is valid for 24 hours after generation.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for screenshot capture operation.\");\n\nexport const opengraphIoCaptureScreenshot = action(\"OPENGRAPH_IO_CAPTURE_SCREENSHOT\", {\n slug: \"opengraph_io-capture-screenshot\",\n name: \"Capture Screenshot\",\n description: \"Tool to capture high-quality screenshots of any webpage programmatically. Supports full-page captures, custom dimensions, device presets, element-specific screenshots, and quality settings. Screenshots are available for 24 hours after generation. Use when you need to capture visual snapshots of websites with specific rendering requirements or device simulations.\",\n input: OpengraphIoCaptureScreenshotInput,\n output: OpengraphIoCaptureScreenshotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CAChG,QAAQ,EAAE,KAAK;EAAC;EAAQ;EAAO;CAAM,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACtG,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CAC5K,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACtJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACtJ,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC5K,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACvK,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC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AAC,SAAS;EAChF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
@@ -17,7 +17,7 @@ const OpengraphIoExtractSiteOutput = zod.z.object({
17
17
  hybridGraph: zod.z.record(zod.z.string(), zod.z.unknown()).describe("All returned fields from Open Graph, meta, and other signals.").nullable().optional(),
18
18
  twitterCard: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Twitter-specific metadata if present.").nullable().optional(),
19
19
  htmlInferred: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Data extracted from HTML where OG tags are missing.").nullable().optional()
20
- }).describe("Response model for site metadata extraction.\nContains extracted HTML tags from the page.");
20
+ }).passthrough().describe("Response model for site metadata extraction.\nContains extracted HTML tags from the page.");
21
21
  const opengraphIoExtractSite = require_action.action("OPENGRAPH_IO_EXTRACT_SITE", {
22
22
  slug: "opengraph_io-extract-site",
23
23
  name: "Extract Site Metadata",
@@ -1 +1 @@
1
- {"version":3,"file":"extract-site.cjs","names":["z","action"],"sources":["../../src/actions/extract-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoExtractSiteInput = z.object({\n site: z.string().describe(\"URL of the site to extract metadata from\"),\n scrape: z.boolean().describe(\"Scrape all data instead of just Open Graph and meta tags\").optional(),\n use_proxy: z.boolean().describe(\"Use a proxy during extraction\").optional(),\n accept_lang: z.string().describe(\"Preferred language for extracted data (e.g., 'en-US')\").optional(),\n full_render: z.boolean().describe(\"Render the page in a browser before extraction\").optional(),\n}).describe(\"Request model for extracting site metadata.\");\nexport const OpengraphIoExtractSiteOutput = z.object({\n tags: z.array(z.record(z.string(), z.unknown())).describe(\"List of extracted HTML tags with their innerText and position.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the extracted site.\").nullable().optional(),\n oEmbed: z.record(z.string(), z.unknown()).describe(\"oEmbed metadata if present.\").nullable().optional(),\n openGraph: z.record(z.string(), z.unknown()).describe(\"Open Graph-specific fields extracted from content.\").nullable().optional(),\n requestUrl: z.string().describe(\"Final URL used for data request (after redirects).\").nullable().optional(),\n hybridGraph: z.record(z.string(), z.unknown()).describe(\"All returned fields from Open Graph, meta, and other signals.\").nullable().optional(),\n twitterCard: z.record(z.string(), z.unknown()).describe(\"Twitter-specific metadata if present.\").nullable().optional(),\n htmlInferred: z.record(z.string(), z.unknown()).describe(\"Data extracted from HTML where OG tags are missing.\").nullable().optional(),\n}).describe(\"Response model for site metadata extraction.\\nContains extracted HTML tags from the page.\");\n\nexport const opengraphIoExtractSite = action(\"OPENGRAPH_IO_EXTRACT_SITE\", {\n slug: \"opengraph_io-extract-site\",\n name: \"Extract Site Metadata\",\n description: \"Tool to extract site metadata. Use when you need to retrieve Open Graph and other meta signals from a website.\",\n input: OpengraphIoExtractSiteInput,\n output: OpengraphIoExtractSiteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACnG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC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z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoExtractSiteInput = z.object({\n site: z.string().describe(\"URL of the site to extract metadata from\"),\n scrape: z.boolean().describe(\"Scrape all data instead of just Open Graph and meta tags\").optional(),\n use_proxy: z.boolean().describe(\"Use a proxy during extraction\").optional(),\n accept_lang: z.string().describe(\"Preferred language for extracted data (e.g., 'en-US')\").optional(),\n full_render: z.boolean().describe(\"Render the page in a browser before extraction\").optional(),\n}).describe(\"Request model for extracting site metadata.\");\nexport const OpengraphIoExtractSiteOutput = z.object({\n tags: z.array(z.record(z.string(), z.unknown())).describe(\"List of extracted HTML tags with their innerText and position.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the extracted site.\").nullable().optional(),\n oEmbed: z.record(z.string(), z.unknown()).describe(\"oEmbed metadata if present.\").nullable().optional(),\n openGraph: z.record(z.string(), z.unknown()).describe(\"Open Graph-specific fields extracted from content.\").nullable().optional(),\n requestUrl: z.string().describe(\"Final URL used for data request (after redirects).\").nullable().optional(),\n hybridGraph: z.record(z.string(), z.unknown()).describe(\"All returned fields from Open Graph, meta, and other signals.\").nullable().optional(),\n twitterCard: z.record(z.string(), z.unknown()).describe(\"Twitter-specific metadata if present.\").nullable().optional(),\n htmlInferred: z.record(z.string(), z.unknown()).describe(\"Data extracted from HTML where OG tags are missing.\").nullable().optional(),\n}).passthrough().describe(\"Response model for site metadata extraction.\\nContains extracted HTML tags from the page.\");\n\nexport const opengraphIoExtractSite = action(\"OPENGRAPH_IO_EXTRACT_SITE\", {\n slug: \"opengraph_io-extract-site\",\n name: \"Extract Site Metadata\",\n description: \"Tool to extract site metadata. Use when you need to retrieve Open Graph and other meta signals from a website.\",\n input: OpengraphIoExtractSiteInput,\n output: OpengraphIoExtractSiteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,QAAQA,IAAAA,E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AE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,cAAcA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAA2F;AAErH,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -17,7 +17,7 @@ declare const OpengraphIoExtractSiteOutput: z.ZodObject<{
17
17
  hybridGraph: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
18
  twitterCard: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
19
  htmlInferred: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
20
- }, z.core.$strip>;
20
+ }, z.core.$loose>;
21
21
  declare const opengraphIoExtractSite: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  site: string;
23
23
  scrape?: boolean | undefined;
@@ -17,7 +17,7 @@ declare const OpengraphIoExtractSiteOutput: z.ZodObject<{
17
17
  hybridGraph: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
18
  twitterCard: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
19
  htmlInferred: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
20
- }, z.core.$strip>;
20
+ }, z.core.$loose>;
21
21
  declare const opengraphIoExtractSite: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  site: string;
23
23
  scrape?: boolean | undefined;
@@ -20,7 +20,7 @@ const opengraphIoExtractSite = action("OPENGRAPH_IO_EXTRACT_SITE", {
20
20
  hybridGraph: z.record(z.string(), z.unknown()).describe("All returned fields from Open Graph, meta, and other signals.").nullable().optional(),
21
21
  twitterCard: z.record(z.string(), z.unknown()).describe("Twitter-specific metadata if present.").nullable().optional(),
22
22
  htmlInferred: z.record(z.string(), z.unknown()).describe("Data extracted from HTML where OG tags are missing.").nullable().optional()
23
- }).describe("Response model for site metadata extraction.\nContains extracted HTML tags from the page.")
23
+ }).passthrough().describe("Response model for site metadata extraction.\nContains extracted HTML tags from the page.")
24
24
  });
25
25
  //#endregion
26
26
  export { opengraphIoExtractSite };
@@ -1 +1 @@
1
- {"version":3,"file":"extract-site.mjs","names":[],"sources":["../../src/actions/extract-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoExtractSiteInput = z.object({\n site: z.string().describe(\"URL of the site to extract metadata from\"),\n scrape: z.boolean().describe(\"Scrape all data instead of just Open Graph and meta tags\").optional(),\n use_proxy: z.boolean().describe(\"Use a proxy during extraction\").optional(),\n accept_lang: z.string().describe(\"Preferred language for extracted data (e.g., 'en-US')\").optional(),\n full_render: z.boolean().describe(\"Render the page in a browser before extraction\").optional(),\n}).describe(\"Request model for extracting site metadata.\");\nexport const OpengraphIoExtractSiteOutput = z.object({\n tags: z.array(z.record(z.string(), z.unknown())).describe(\"List of extracted HTML tags with their innerText and position.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the extracted site.\").nullable().optional(),\n oEmbed: z.record(z.string(), z.unknown()).describe(\"oEmbed metadata if present.\").nullable().optional(),\n openGraph: z.record(z.string(), z.unknown()).describe(\"Open Graph-specific fields extracted from content.\").nullable().optional(),\n requestUrl: z.string().describe(\"Final URL used for data request (after redirects).\").nullable().optional(),\n hybridGraph: z.record(z.string(), z.unknown()).describe(\"All returned fields from Open Graph, meta, and other signals.\").nullable().optional(),\n twitterCard: z.record(z.string(), z.unknown()).describe(\"Twitter-specific metadata if present.\").nullable().optional(),\n htmlInferred: z.record(z.string(), z.unknown()).describe(\"Data extracted from HTML where OG tags are missing.\").nullable().optional(),\n}).describe(\"Response model for site metadata extraction.\\nContains extracted HTML tags from the page.\");\n\nexport const opengraphIoExtractSite = action(\"OPENGRAPH_IO_EXTRACT_SITE\", {\n slug: \"opengraph_io-extract-site\",\n name: \"Extract Site Metadata\",\n description: \"Tool to extract site metadata. Use when you need to retrieve Open Graph and other meta signals from a website.\",\n input: OpengraphIoExtractSiteInput,\n output: OpengraphIoExtractSiteOutput,\n});\n"],"mappings":";;AAsBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACpE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAClG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACnG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,6CAgBH;CACP,QAhB0C,EAAE,OAAO;EACnD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,SAAS,2FAOF;AACV,CAAC"}
1
+ {"version":3,"file":"extract-site.mjs","names":[],"sources":["../../src/actions/extract-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoExtractSiteInput = z.object({\n site: z.string().describe(\"URL of the site to extract metadata from\"),\n scrape: z.boolean().describe(\"Scrape all data instead of just Open Graph and meta tags\").optional(),\n use_proxy: z.boolean().describe(\"Use a proxy during extraction\").optional(),\n accept_lang: z.string().describe(\"Preferred language for extracted data (e.g., 'en-US')\").optional(),\n full_render: z.boolean().describe(\"Render the page in a browser before extraction\").optional(),\n}).describe(\"Request model for extracting site metadata.\");\nexport const OpengraphIoExtractSiteOutput = z.object({\n tags: z.array(z.record(z.string(), z.unknown())).describe(\"List of extracted HTML tags with their innerText and position.\").nullable().optional(),\n domain: z.string().describe(\"Domain of the extracted site.\").nullable().optional(),\n oEmbed: z.record(z.string(), z.unknown()).describe(\"oEmbed metadata if present.\").nullable().optional(),\n openGraph: z.record(z.string(), z.unknown()).describe(\"Open Graph-specific fields extracted from content.\").nullable().optional(),\n requestUrl: z.string().describe(\"Final URL used for data request (after redirects).\").nullable().optional(),\n hybridGraph: z.record(z.string(), z.unknown()).describe(\"All returned fields from Open Graph, meta, and other signals.\").nullable().optional(),\n twitterCard: z.record(z.string(), z.unknown()).describe(\"Twitter-specific metadata if present.\").nullable().optional(),\n htmlInferred: z.record(z.string(), z.unknown()).describe(\"Data extracted from HTML where OG tags are missing.\").nullable().optional(),\n}).passthrough().describe(\"Response model for site metadata extraction.\\nContains extracted HTML tags from the page.\");\n\nexport const opengraphIoExtractSite = action(\"OPENGRAPH_IO_EXTRACT_SITE\", {\n slug: \"opengraph_io-extract-site\",\n name: \"Extract Site Metadata\",\n description: \"Tool to extract site metadata. Use when you need to retrieve Open Graph and other meta signals from a website.\",\n input: OpengraphIoExtractSiteInput,\n output: OpengraphIoExtractSiteOutput,\n});\n"],"mappings":";;AAsBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACpE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAClG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACnG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,6CAgBH;CACP,QAhB0C,EAAE,OAAO;EACnD,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrH,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2FAOhB;AACV,CAAC"}
@@ -14,7 +14,7 @@ const OpengraphIoScrapeSiteOutput = zod.z.object({
14
14
  hybridGraph: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Parsed OpenGraph and social metadata fields detected on the page.").nullable().optional(),
15
15
  twitterCard: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Twitter card metadata detected, if any.").nullable().optional(),
16
16
  htmlInferred: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Fallback metadata discovered by scraping regular HTML tags.").nullable().optional()
17
- }).describe("Response model for scraped site metadata.");
17
+ }).passthrough().describe("Response model for scraped site metadata.");
18
18
  const opengraphIoScrapeSite = require_action.action("OPENGRAPH_IO_SCRAPE_SITE", {
19
19
  slug: "opengraph_io-scrape-site",
20
20
  name: "Scrape Site",
@@ -1 +1 @@
1
- {"version":3,"file":"scrape-site.cjs","names":["z","action"],"sources":["../../src/actions/scrape-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoScrapeSiteInput = z.object({\n site: z.string().describe(\"The URL of the site to scrape. This will be URL-encoded by the action. E.g., 'https://example.com'.\"),\n scrape: z.boolean().describe(\"If true, forces scraping regardless of cache. Otherwise may return cached result.\").optional(),\n cache_ok: z.boolean().describe(\"If false, forces a fresh scrape instead of returning cached data. Defaults to using cache if not set.\").optional(),\n full_render: z.boolean().describe(\"If true, performs a full page render (runs JavaScript). Defaults to a lightweight scrape if not set.\").optional(),\n}).describe(\"Request model for scraping a site's raw HTML and metadata.\");\nexport const OpengraphIoScrapeSiteOutput = z.object({\n oEmbed: z.record(z.string(), z.unknown()).describe(\"oEmbed metadata, if any.\").nullable().optional(),\n openGraph: z.record(z.string(), z.unknown()).describe(\"Raw OpenGraph properties, if detected.\").nullable().optional(),\n requestUrl: z.string().describe(\"The actual URL that was scraped.\").nullable().optional(),\n hybridGraph: z.record(z.string(), z.unknown()).describe(\"Parsed OpenGraph and social metadata fields detected on the page.\").nullable().optional(),\n twitterCard: z.record(z.string(), z.unknown()).describe(\"Twitter card metadata detected, if any.\").nullable().optional(),\n htmlInferred: z.record(z.string(), z.unknown()).describe(\"Fallback metadata discovered by scraping regular HTML tags.\").nullable().optional(),\n}).describe(\"Response model for scraped site metadata.\");\n\nexport const opengraphIoScrapeSite = action(\"OPENGRAPH_IO_SCRAPE_SITE\", {\n slug: \"opengraph_io-scrape-site\",\n name: \"Scrape Site\",\n description: \"Tool to scrape a site for its raw HTML and social/OpenGraph metadata. Use when you need the full page content and metadata. Use after confirming the URL.\",\n input: OpengraphIoScrapeSiteInput,\n output: OpengraphIoScrapeSiteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,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,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"scrape-site.cjs","names":["z","action"],"sources":["../../src/actions/scrape-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoScrapeSiteInput = z.object({\n site: z.string().describe(\"The URL of the site to scrape. This will be URL-encoded by the action. E.g., 'https://example.com'.\"),\n scrape: z.boolean().describe(\"If true, forces scraping regardless of cache. Otherwise may return cached result.\").optional(),\n cache_ok: z.boolean().describe(\"If false, forces a fresh scrape instead of returning cached data. Defaults to using cache if not set.\").optional(),\n full_render: z.boolean().describe(\"If true, performs a full page render (runs JavaScript). Defaults to a lightweight scrape if not set.\").optional(),\n}).describe(\"Request model for scraping a site's raw HTML and metadata.\");\nexport const OpengraphIoScrapeSiteOutput = z.object({\n oEmbed: z.record(z.string(), z.unknown()).describe(\"oEmbed metadata, if any.\").nullable().optional(),\n openGraph: z.record(z.string(), z.unknown()).describe(\"Raw OpenGraph properties, if detected.\").nullable().optional(),\n requestUrl: z.string().describe(\"The actual URL that was scraped.\").nullable().optional(),\n hybridGraph: z.record(z.string(), z.unknown()).describe(\"Parsed OpenGraph and social metadata fields detected on the page.\").nullable().optional(),\n twitterCard: z.record(z.string(), z.unknown()).describe(\"Twitter card metadata detected, if any.\").nullable().optional(),\n htmlInferred: z.record(z.string(), z.unknown()).describe(\"Fallback metadata discovered by scraping regular HTML tags.\").nullable().optional(),\n}).passthrough().describe(\"Response model for scraped site metadata.\");\n\nexport const opengraphIoScrapeSite = action(\"OPENGRAPH_IO_SCRAPE_SITE\", {\n slug: \"opengraph_io-scrape-site\",\n name: \"Scrape Site\",\n description: \"Tool to scrape a site for its raw HTML and social/OpenGraph metadata. Use when you need the full page content and metadata. Use after confirming the URL.\",\n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GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -14,7 +14,7 @@ declare const OpengraphIoScrapeSiteOutput: z.ZodObject<{
14
14
  hybridGraph: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
15
  twitterCard: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  htmlInferred: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
- }, z.core.$strip>;
17
+ }, z.core.$loose>;
18
18
  declare const opengraphIoScrapeSite: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  site: string;
20
20
  scrape?: boolean | undefined;
@@ -14,7 +14,7 @@ declare const OpengraphIoScrapeSiteOutput: z.ZodObject<{
14
14
  hybridGraph: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
15
  twitterCard: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
16
  htmlInferred: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
- }, z.core.$strip>;
17
+ }, z.core.$loose>;
18
18
  declare const opengraphIoScrapeSite: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  site: string;
20
20
  scrape?: boolean | undefined;
@@ -17,7 +17,7 @@ const opengraphIoScrapeSite = action("OPENGRAPH_IO_SCRAPE_SITE", {
17
17
  hybridGraph: z.record(z.string(), z.unknown()).describe("Parsed OpenGraph and social metadata fields detected on the page.").nullable().optional(),
18
18
  twitterCard: z.record(z.string(), z.unknown()).describe("Twitter card metadata detected, if any.").nullable().optional(),
19
19
  htmlInferred: z.record(z.string(), z.unknown()).describe("Fallback metadata discovered by scraping regular HTML tags.").nullable().optional()
20
- }).describe("Response model for scraped site metadata.")
20
+ }).passthrough().describe("Response model for scraped site metadata.")
21
21
  });
22
22
  //#endregion
23
23
  export { opengraphIoScrapeSite };
@@ -1 +1 @@
1
- {"version":3,"file":"scrape-site.mjs","names":[],"sources":["../../src/actions/scrape-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoScrapeSiteInput = z.object({\n site: z.string().describe(\"The URL of the site to scrape. This will be URL-encoded by the action. E.g., 'https://example.com'.\"),\n scrape: z.boolean().describe(\"If true, forces scraping regardless of cache. Otherwise may return cached result.\").optional(),\n cache_ok: z.boolean().describe(\"If false, forces a fresh scrape instead of returning cached data. Defaults to using cache if not set.\").optional(),\n full_render: z.boolean().describe(\"If true, performs a full page render (runs JavaScript). Defaults to a lightweight scrape if not set.\").optional(),\n}).describe(\"Request model for scraping a site's raw HTML and metadata.\");\nexport const OpengraphIoScrapeSiteOutput = z.object({\n oEmbed: z.record(z.string(), z.unknown()).describe(\"oEmbed metadata, if any.\").nullable().optional(),\n openGraph: z.record(z.string(), z.unknown()).describe(\"Raw OpenGraph properties, if detected.\").nullable().optional(),\n requestUrl: z.string().describe(\"The actual URL that was scraped.\").nullable().optional(),\n hybridGraph: z.record(z.string(), z.unknown()).describe(\"Parsed OpenGraph and social metadata fields detected on the page.\").nullable().optional(),\n twitterCard: z.record(z.string(), z.unknown()).describe(\"Twitter card metadata detected, if any.\").nullable().optional(),\n htmlInferred: z.record(z.string(), z.unknown()).describe(\"Fallback metadata discovered by scraping regular HTML tags.\").nullable().optional(),\n}).describe(\"Response model for scraped site metadata.\");\n\nexport const opengraphIoScrapeSite = action(\"OPENGRAPH_IO_SCRAPE_SITE\", {\n slug: \"opengraph_io-scrape-site\",\n name: \"Scrape Site\",\n description: \"Tool to scrape a site for its raw HTML and social/OpenGraph metadata. Use when you need the full page content and metadata. Use after confirming the URL.\",\n input: OpengraphIoScrapeSiteInput,\n output: OpengraphIoScrapeSiteOutput,\n});\n"],"mappings":";;AAmBA,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG;EAC/H,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC3H,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EACjJ,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CACrJ,CAAC,CAAC,CAAC,SAAS,4DAcH;CACP,QAdyC,EAAE,OAAO;EAClD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjJ,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"scrape-site.mjs","names":[],"sources":["../../src/actions/scrape-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoScrapeSiteInput = z.object({\n site: z.string().describe(\"The URL of the site to scrape. This will be URL-encoded by the action. E.g., 'https://example.com'.\"),\n scrape: z.boolean().describe(\"If true, forces scraping regardless of cache. Otherwise may return cached result.\").optional(),\n cache_ok: z.boolean().describe(\"If false, forces a fresh scrape instead of returning cached data. Defaults to using cache if not set.\").optional(),\n full_render: z.boolean().describe(\"If true, performs a full page render (runs JavaScript). Defaults to a lightweight scrape if not set.\").optional(),\n}).describe(\"Request model for scraping a site's raw HTML and metadata.\");\nexport const OpengraphIoScrapeSiteOutput = z.object({\n oEmbed: z.record(z.string(), z.unknown()).describe(\"oEmbed metadata, if any.\").nullable().optional(),\n openGraph: z.record(z.string(), z.unknown()).describe(\"Raw OpenGraph properties, if detected.\").nullable().optional(),\n requestUrl: z.string().describe(\"The actual URL that was scraped.\").nullable().optional(),\n hybridGraph: z.record(z.string(), z.unknown()).describe(\"Parsed OpenGraph and social metadata fields detected on the page.\").nullable().optional(),\n twitterCard: z.record(z.string(), z.unknown()).describe(\"Twitter card metadata detected, if any.\").nullable().optional(),\n htmlInferred: z.record(z.string(), z.unknown()).describe(\"Fallback metadata discovered by scraping regular HTML tags.\").nullable().optional(),\n}).passthrough().describe(\"Response model for scraped site metadata.\");\n\nexport const opengraphIoScrapeSite = action(\"OPENGRAPH_IO_SCRAPE_SITE\", {\n slug: \"opengraph_io-scrape-site\",\n name: \"Scrape Site\",\n description: \"Tool to scrape a site for its raw HTML and social/OpenGraph metadata. Use when you need the full page content and metadata. Use after confirming the URL.\",\n input: OpengraphIoScrapeSiteInput,\n output: OpengraphIoScrapeSiteOutput,\n});\n"],"mappings":";;AAmBA,MAAa,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foSchema = zod.z.object({
15
15
  redirects: zod.z.number().int().describe("Number of redirects followed").nullable().optional(),
16
16
  responseCode: zod.z.number().int().describe("HTTP response code from the target site").nullable().optional(),
17
17
  responseContentType: zod.z.string().describe("Content-Type header from the response").nullable().optional()
18
- }).describe("Information about the HTTP request execution.");
18
+ }).passthrough().describe("Information about the HTTP request execution.");
19
19
  const OpengraphIoScrapeUrlOutput = zod.z.object({
20
20
  htmlContent: zod.z.string().describe("Raw HTML content of the scraped page").nullable().optional(),
21
21
  requestInfo: OpengraphIoScrapeUrl_RequestInfoSchema.nullable().optional()
22
- }).describe("Response model containing raw HTML content and request information.");
22
+ }).passthrough().describe("Response model containing raw HTML content and request information.");
23
23
  const opengraphIoScrapeUrl = require_action.action("OPENGRAPH_IO_SCRAPE_URL", {
24
24
  slug: "opengraph_io-scrape-url",
25
25
  name: "Scrape URL for HTML",
@@ -1 +1 @@
1
- {"version":3,"file":"scrape-url.cjs","names":["z","action"],"sources":["../../src/actions/scrape-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoScrapeUrlInput = z.object({\n url: z.string().describe(\"The target website URL to scrape. Must start with http:// or https://. This will be URL-encoded automatically.\"),\n cache_ok: z.boolean().describe(\"Allow cached results. Set to false to force a fresh scrape. Defaults to true to improve performance.\").optional(),\n use_proxy: z.boolean().describe(\"Use standard datacenter proxy for the request. Helps bypass basic bot detection. Defaults to false.\").optional(),\n accept_lang: z.string().describe(\"Language header for localized content (e.g., 'en-US', 'fr-FR', 'es-ES'). Defaults to 'en-US'.\").optional(),\n full_render: z.boolean().describe(\"Enable JavaScript rendering. Required for Single Page Applications (SPAs) and dynamic content. Defaults to false for faster lightweight scraping.\").optional(),\n use_premium: z.boolean().describe(\"Use residential proxy for the request. Better for scraping protected sites with stronger bot detection. Defaults to false.\").optional(),\n use_superior: z.boolean().describe(\"Use mobile proxy for the request. Best for heavily protected sites with advanced bot detection. Defaults to false.\").optional(),\n}).describe(\"Request model for scraping raw HTML content from a URL.\");\nconst OpengraphIoScrapeUrl_RequestInfoSchema = z.object({\n host: z.string().describe(\"The host that responded to the request\").nullable().optional(),\n redirects: z.number().int().describe(\"Number of redirects followed\").nullable().optional(),\n responseCode: z.number().int().describe(\"HTTP response code from the target site\").nullable().optional(),\n responseContentType: z.string().describe(\"Content-Type header from the response\").nullable().optional(),\n}).describe(\"Information about the HTTP request execution.\");\nexport const OpengraphIoScrapeUrlOutput = z.object({\n htmlContent: z.string().describe(\"Raw HTML content of the scraped page\").nullable().optional(),\n requestInfo: OpengraphIoScrapeUrl_RequestInfoSchema.nullable().optional(),\n}).describe(\"Response model containing raw HTML content and request information.\");\n\nexport const opengraphIoScrapeUrl = action(\"OPENGRAPH_IO_SCRAPE_URL\", {\n slug: \"opengraph_io-scrape-url\",\n name: \"Scrape URL for HTML\",\n description: \"Tool to scrape raw HTML content from a website with anti-bot protection and optional JavaScript rendering. Use when you need the full HTML source code of a page, especially for sites with bot detection or dynamic content.\",\n input: OpengraphIoScrapeUrlInput,\n output: OpengraphIoScrapeUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;CACzI,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAChJ,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAChJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC3I,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CAChM,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACzK,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;AACpK,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAa,uCAAuC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"scrape-url.cjs","names":["z","action"],"sources":["../../src/actions/scrape-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoScrapeUrlInput = z.object({\n url: z.string().describe(\"The target website URL to scrape. Must start with http:// or https://. This will be URL-encoded automatically.\"),\n cache_ok: z.boolean().describe(\"Allow cached results. Set to false to force a fresh scrape. Defaults to true to improve performance.\").optional(),\n use_proxy: z.boolean().describe(\"Use standard datacenter proxy for the request. Helps bypass basic bot detection. Defaults to false.\").optional(),\n accept_lang: z.string().describe(\"Language header for localized content (e.g., 'en-US', 'fr-FR', 'es-ES'). Defaults to 'en-US'.\").optional(),\n full_render: z.boolean().describe(\"Enable JavaScript rendering. Required for Single Page Applications (SPAs) and dynamic content. Defaults to false for faster lightweight scraping.\").optional(),\n use_premium: z.boolean().describe(\"Use residential proxy for the request. Better for scraping protected sites with stronger bot detection. Defaults to false.\").optional(),\n use_superior: z.boolean().describe(\"Use mobile proxy for the request. Best for heavily protected sites with advanced bot detection. Defaults to false.\").optional(),\n}).describe(\"Request model for scraping raw HTML content from a URL.\");\nconst OpengraphIoScrapeUrl_RequestInfoSchema = z.object({\n host: z.string().describe(\"The host that responded to the request\").nullable().optional(),\n redirects: z.number().int().describe(\"Number of redirects followed\").nullable().optional(),\n responseCode: z.number().int().describe(\"HTTP response code from the target site\").nullable().optional(),\n responseContentType: z.string().describe(\"Content-Type header from the response\").nullable().optional(),\n}).passthrough().describe(\"Information about the HTTP request execution.\");\nexport const OpengraphIoScrapeUrlOutput = z.object({\n htmlContent: z.string().describe(\"Raw HTML content of the scraped page\").nullable().optional(),\n requestInfo: OpengraphIoScrapeUrl_RequestInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing raw HTML content and request information.\");\n\nexport const opengraphIoScrapeUrl = action(\"OPENGRAPH_IO_SCRAPE_URL\", {\n slug: \"opengraph_io-scrape-url\",\n name: \"Scrape URL for HTML\",\n description: \"Tool to scrape raw HTML content from a website with anti-bot protection and optional JavaScript rendering. Use when you need the full HTML source code of a page, especially for sites with bot detection or dynamic content.\",\n input: OpengraphIoScrapeUrlInput,\n output: OpengraphIoScrapeUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;CACzI,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CA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ACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -17,8 +17,8 @@ declare const OpengraphIoScrapeUrlOutput: z.ZodObject<{
17
17
  redirects: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
18
  responseCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
19
  responseContentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- }, z.core.$strip>>>;
21
- }, z.core.$strip>;
20
+ }, z.core.$loose>>>;
21
+ }, z.core.$loose>;
22
22
  declare const opengraphIoScrapeUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
23
23
  url: string;
24
24
  cache_ok?: boolean | undefined;
@@ -17,8 +17,8 @@ declare const OpengraphIoScrapeUrlOutput: z.ZodObject<{
17
17
  redirects: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
18
  responseCode: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
19
  responseContentType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- }, z.core.$strip>>>;
21
- }, z.core.$strip>;
20
+ }, z.core.$loose>>>;
21
+ }, z.core.$loose>;
22
22
  declare const opengraphIoScrapeUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
23
23
  url: string;
24
24
  cache_ok?: boolean | undefined;
@@ -15,7 +15,7 @@ const OpengraphIoScrapeUrl_RequestInfoSchema = z.object({
15
15
  redirects: z.number().int().describe("Number of redirects followed").nullable().optional(),
16
16
  responseCode: z.number().int().describe("HTTP response code from the target site").nullable().optional(),
17
17
  responseContentType: z.string().describe("Content-Type header from the response").nullable().optional()
18
- }).describe("Information about the HTTP request execution.");
18
+ }).passthrough().describe("Information about the HTTP request execution.");
19
19
  const opengraphIoScrapeUrl = action("OPENGRAPH_IO_SCRAPE_URL", {
20
20
  slug: "opengraph_io-scrape-url",
21
21
  name: "Scrape URL for HTML",
@@ -24,7 +24,7 @@ const opengraphIoScrapeUrl = action("OPENGRAPH_IO_SCRAPE_URL", {
24
24
  output: z.object({
25
25
  htmlContent: z.string().describe("Raw HTML content of the scraped page").nullable().optional(),
26
26
  requestInfo: OpengraphIoScrapeUrl_RequestInfoSchema.nullable().optional()
27
- }).describe("Response model containing raw HTML content and request information.")
27
+ }).passthrough().describe("Response model containing raw HTML content and request information.")
28
28
  });
29
29
  //#endregion
30
30
  export { opengraphIoScrapeUrl };
@@ -1 +1 @@
1
- {"version":3,"file":"scrape-url.mjs","names":[],"sources":["../../src/actions/scrape-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoScrapeUrlInput = z.object({\n url: z.string().describe(\"The target website URL to scrape. Must start with http:// or https://. This will be URL-encoded automatically.\"),\n cache_ok: z.boolean().describe(\"Allow cached results. Set to false to force a fresh scrape. Defaults to true to improve performance.\").optional(),\n use_proxy: z.boolean().describe(\"Use standard datacenter proxy for the request. Helps bypass basic bot detection. Defaults to false.\").optional(),\n accept_lang: z.string().describe(\"Language header for localized content (e.g., 'en-US', 'fr-FR', 'es-ES'). Defaults to 'en-US'.\").optional(),\n full_render: z.boolean().describe(\"Enable JavaScript rendering. Required for Single Page Applications (SPAs) and dynamic content. Defaults to false for faster lightweight scraping.\").optional(),\n use_premium: z.boolean().describe(\"Use residential proxy for the request. Better for scraping protected sites with stronger bot detection. Defaults to false.\").optional(),\n use_superior: z.boolean().describe(\"Use mobile proxy for the request. Best for heavily protected sites with advanced bot detection. Defaults to false.\").optional(),\n}).describe(\"Request model for scraping raw HTML content from a URL.\");\nconst OpengraphIoScrapeUrl_RequestInfoSchema = z.object({\n host: z.string().describe(\"The host that responded to the request\").nullable().optional(),\n redirects: z.number().int().describe(\"Number of redirects followed\").nullable().optional(),\n responseCode: z.number().int().describe(\"HTTP response code from the target site\").nullable().optional(),\n responseContentType: z.string().describe(\"Content-Type header from the response\").nullable().optional(),\n}).describe(\"Information about the HTTP request execution.\");\nexport const OpengraphIoScrapeUrlOutput = z.object({\n htmlContent: z.string().describe(\"Raw HTML content of the scraped page\").nullable().optional(),\n requestInfo: OpengraphIoScrapeUrl_RequestInfoSchema.nullable().optional(),\n}).describe(\"Response model containing raw HTML content and request information.\");\n\nexport const opengraphIoScrapeUrl = action(\"OPENGRAPH_IO_SCRAPE_URL\", {\n slug: \"opengraph_io-scrape-url\",\n name: \"Scrape URL for HTML\",\n description: \"Tool to scrape raw HTML content from a website with anti-bot protection and optional JavaScript rendering. Use when you need the full HTML source code of a page, especially for sites with bot detection or dynamic content.\",\n input: OpengraphIoScrapeUrlInput,\n output: OpengraphIoScrapeUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;CACzI,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAChJ,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAChJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC3I,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CAChM,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACzK,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;AACpK,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAM3D,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,EAAE,OAAO;EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,aAAa,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"scrape-url.mjs","names":[],"sources":["../../src/actions/scrape-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpengraphIoScrapeUrlInput = z.object({\n url: z.string().describe(\"The target website URL to scrape. Must start with http:// or https://. This will be URL-encoded automatically.\"),\n cache_ok: z.boolean().describe(\"Allow cached results. Set to false to force a fresh scrape. Defaults to true to improve performance.\").optional(),\n use_proxy: z.boolean().describe(\"Use standard datacenter proxy for the request. Helps bypass basic bot detection. Defaults to false.\").optional(),\n accept_lang: z.string().describe(\"Language header for localized content (e.g., 'en-US', 'fr-FR', 'es-ES'). Defaults to 'en-US'.\").optional(),\n full_render: z.boolean().describe(\"Enable JavaScript rendering. Required for Single Page Applications (SPAs) and dynamic content. Defaults to false for faster lightweight scraping.\").optional(),\n use_premium: z.boolean().describe(\"Use residential proxy for the request. Better for scraping protected sites with stronger bot detection. Defaults to false.\").optional(),\n use_superior: z.boolean().describe(\"Use mobile proxy for the request. Best for heavily protected sites with advanced bot detection. Defaults to false.\").optional(),\n}).describe(\"Request model for scraping raw HTML content from a URL.\");\nconst OpengraphIoScrapeUrl_RequestInfoSchema = z.object({\n host: z.string().describe(\"The host that responded to the request\").nullable().optional(),\n redirects: z.number().int().describe(\"Number of redirects followed\").nullable().optional(),\n responseCode: z.number().int().describe(\"HTTP response code from the target site\").nullable().optional(),\n responseContentType: z.string().describe(\"Content-Type header from the response\").nullable().optional(),\n}).passthrough().describe(\"Information about the HTTP request execution.\");\nexport const OpengraphIoScrapeUrlOutput = z.object({\n htmlContent: z.string().describe(\"Raw HTML content of the scraped page\").nullable().optional(),\n requestInfo: OpengraphIoScrapeUrl_RequestInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Response model containing raw HTML content and request information.\");\n\nexport const opengraphIoScrapeUrl = action(\"OPENGRAPH_IO_SCRAPE_URL\", {\n slug: \"opengraph_io-scrape-url\",\n name: \"Scrape URL for HTML\",\n description: \"Tool to scrape raw HTML content from a website with anti-bot protection and optional JavaScript rendering. Use when you need the full HTML source code of a page, especially for sites with bot detection or dynamic content.\",\n input: OpengraphIoScrapeUrlInput,\n output: OpengraphIoScrapeUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;CACzI,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAChJ,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAChJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC3I,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CAChM,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;CACzK,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;AACpK,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,yCAAyC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAMzE,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,EAAE,OAAO;EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,aAAa,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAOhB;AACV,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/opengraph_io",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"