@keystrokehq/neutrino 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/add-watermark-to-image.cjs +43 -0
- package/dist/actions/add-watermark-to-image.cjs.map +1 -0
- package/dist/actions/add-watermark-to-image.d.cts +9 -0
- package/dist/actions/add-watermark-to-image.d.cts.map +1 -0
- package/dist/actions/add-watermark-to-image.d.mts +9 -0
- package/dist/actions/add-watermark-to-image.d.mts.map +1 -0
- package/dist/actions/add-watermark-to-image.mjs +42 -0
- package/dist/actions/add-watermark-to-image.mjs.map +1 -0
- package/dist/actions/bad-word-filter.cjs +27 -0
- package/dist/actions/bad-word-filter.cjs.map +1 -0
- package/dist/actions/bad-word-filter.d.cts +9 -0
- package/dist/actions/bad-word-filter.d.cts.map +1 -0
- package/dist/actions/bad-word-filter.d.mts +9 -0
- package/dist/actions/bad-word-filter.d.mts.map +1 -0
- package/dist/actions/bad-word-filter.mjs +24 -0
- package/dist/actions/bad-word-filter.mjs.map +1 -0
- package/dist/actions/bin-lookup.cjs +44 -0
- package/dist/actions/bin-lookup.cjs.map +1 -0
- package/dist/actions/bin-lookup.d.cts +9 -0
- package/dist/actions/bin-lookup.d.cts.map +1 -0
- package/dist/actions/bin-lookup.d.mts +9 -0
- package/dist/actions/bin-lookup.d.mts.map +1 -0
- package/dist/actions/bin-lookup.mjs +41 -0
- package/dist/actions/bin-lookup.mjs.map +1 -0
- package/dist/actions/check-ip-blocklist.cjs +43 -0
- package/dist/actions/check-ip-blocklist.cjs.map +1 -0
- package/dist/actions/check-ip-blocklist.d.cts +9 -0
- package/dist/actions/check-ip-blocklist.d.cts.map +1 -0
- package/dist/actions/check-ip-blocklist.d.mts +9 -0
- package/dist/actions/check-ip-blocklist.d.mts.map +1 -0
- package/dist/actions/check-ip-blocklist.mjs +42 -0
- package/dist/actions/check-ip-blocklist.mjs.map +1 -0
- package/dist/actions/convert.cjs +33 -0
- package/dist/actions/convert.cjs.map +1 -0
- package/dist/actions/convert.d.cts +9 -0
- package/dist/actions/convert.d.cts.map +1 -0
- package/dist/actions/convert.d.mts +9 -0
- package/dist/actions/convert.d.mts.map +1 -0
- package/dist/actions/convert.mjs +30 -0
- package/dist/actions/convert.mjs.map +1 -0
- package/dist/actions/email-validate.cjs +32 -0
- package/dist/actions/email-validate.cjs.map +1 -0
- package/dist/actions/email-validate.d.cts +9 -0
- package/dist/actions/email-validate.d.cts.map +1 -0
- package/dist/actions/email-validate.d.mts +9 -0
- package/dist/actions/email-validate.d.mts.map +1 -0
- package/dist/actions/email-validate.mjs +29 -0
- package/dist/actions/email-validate.mjs.map +1 -0
- package/dist/actions/email-verify.cjs +39 -0
- package/dist/actions/email-verify.cjs.map +1 -0
- package/dist/actions/email-verify.d.cts +9 -0
- package/dist/actions/email-verify.d.cts.map +1 -0
- package/dist/actions/email-verify.d.mts +9 -0
- package/dist/actions/email-verify.d.mts.map +1 -0
- package/dist/actions/email-verify.mjs +36 -0
- package/dist/actions/email-verify.mjs.map +1 -0
- package/dist/actions/geocode-address.cjs +49 -0
- package/dist/actions/geocode-address.cjs.map +1 -0
- package/dist/actions/geocode-address.d.cts +9 -0
- package/dist/actions/geocode-address.d.cts.map +1 -0
- package/dist/actions/geocode-address.d.mts +9 -0
- package/dist/actions/geocode-address.d.mts.map +1 -0
- package/dist/actions/geocode-address.mjs +48 -0
- package/dist/actions/geocode-address.mjs.map +1 -0
- package/dist/actions/geocode-reverse.cjs +67 -0
- package/dist/actions/geocode-reverse.cjs.map +1 -0
- package/dist/actions/geocode-reverse.d.cts +9 -0
- package/dist/actions/geocode-reverse.d.cts.map +1 -0
- package/dist/actions/geocode-reverse.d.mts +9 -0
- package/dist/actions/geocode-reverse.d.mts.map +1 -0
- package/dist/actions/geocode-reverse.mjs +66 -0
- package/dist/actions/geocode-reverse.mjs.map +1 -0
- package/dist/actions/hlr-lookup.cjs +46 -0
- package/dist/actions/hlr-lookup.cjs.map +1 -0
- package/dist/actions/hlr-lookup.d.cts +9 -0
- package/dist/actions/hlr-lookup.d.cts.map +1 -0
- package/dist/actions/hlr-lookup.d.mts +9 -0
- package/dist/actions/hlr-lookup.d.mts.map +1 -0
- package/dist/actions/hlr-lookup.mjs +43 -0
- package/dist/actions/hlr-lookup.mjs.map +1 -0
- package/dist/actions/host-reputation.cjs +34 -0
- package/dist/actions/host-reputation.cjs.map +1 -0
- package/dist/actions/host-reputation.d.cts +9 -0
- package/dist/actions/host-reputation.d.cts.map +1 -0
- package/dist/actions/host-reputation.d.mts +9 -0
- package/dist/actions/host-reputation.d.mts.map +1 -0
- package/dist/actions/host-reputation.mjs +33 -0
- package/dist/actions/host-reputation.mjs.map +1 -0
- package/dist/actions/html-clean.cjs +25 -0
- package/dist/actions/html-clean.cjs.map +1 -0
- package/dist/actions/html-clean.d.cts +9 -0
- package/dist/actions/html-clean.d.cts.map +1 -0
- package/dist/actions/html-clean.d.mts +9 -0
- package/dist/actions/html-clean.d.mts.map +1 -0
- package/dist/actions/html-clean.mjs +22 -0
- package/dist/actions/html-clean.mjs.map +1 -0
- package/dist/actions/html-render.cjs +49 -0
- package/dist/actions/html-render.cjs.map +1 -0
- package/dist/actions/html-render.d.cts +9 -0
- package/dist/actions/html-render.d.cts.map +1 -0
- package/dist/actions/html-render.d.mts +9 -0
- package/dist/actions/html-render.d.mts.map +1 -0
- package/dist/actions/html-render.mjs +46 -0
- package/dist/actions/html-render.mjs.map +1 -0
- package/dist/actions/image-resize.cjs +33 -0
- package/dist/actions/image-resize.cjs.map +1 -0
- package/dist/actions/image-resize.d.cts +9 -0
- package/dist/actions/image-resize.d.cts.map +1 -0
- package/dist/actions/image-resize.d.mts +9 -0
- package/dist/actions/image-resize.d.mts.map +1 -0
- package/dist/actions/image-resize.mjs +32 -0
- package/dist/actions/image-resize.mjs.map +1 -0
- package/dist/actions/index.cjs +49 -0
- package/dist/actions/index.d.cts +25 -0
- package/dist/actions/index.d.mts +25 -0
- package/dist/actions/index.mjs +25 -0
- package/dist/actions/ip-info.cjs +47 -0
- package/dist/actions/ip-info.cjs.map +1 -0
- package/dist/actions/ip-info.d.cts +9 -0
- package/dist/actions/ip-info.d.cts.map +1 -0
- package/dist/actions/ip-info.d.mts +9 -0
- package/dist/actions/ip-info.d.mts.map +1 -0
- package/dist/actions/ip-info.mjs +46 -0
- package/dist/actions/ip-info.mjs.map +1 -0
- package/dist/actions/ip-probe.cjs +55 -0
- package/dist/actions/ip-probe.cjs.map +1 -0
- package/dist/actions/ip-probe.d.cts +9 -0
- package/dist/actions/ip-probe.d.cts.map +1 -0
- package/dist/actions/ip-probe.d.mts +9 -0
- package/dist/actions/ip-probe.d.mts.map +1 -0
- package/dist/actions/ip-probe.mjs +52 -0
- package/dist/actions/ip-probe.mjs.map +1 -0
- package/dist/actions/lookup-domain.cjs +49 -0
- package/dist/actions/lookup-domain.cjs.map +1 -0
- package/dist/actions/lookup-domain.d.cts +9 -0
- package/dist/actions/lookup-domain.d.cts.map +1 -0
- package/dist/actions/lookup-domain.d.mts +9 -0
- package/dist/actions/lookup-domain.d.mts.map +1 -0
- package/dist/actions/lookup-domain.mjs +48 -0
- package/dist/actions/lookup-domain.mjs.map +1 -0
- package/dist/actions/phone-validate.cjs +33 -0
- package/dist/actions/phone-validate.cjs.map +1 -0
- package/dist/actions/phone-validate.d.cts +9 -0
- package/dist/actions/phone-validate.d.cts.map +1 -0
- package/dist/actions/phone-validate.d.mts +9 -0
- package/dist/actions/phone-validate.d.mts.map +1 -0
- package/dist/actions/phone-validate.mjs +30 -0
- package/dist/actions/phone-validate.mjs.map +1 -0
- package/dist/actions/qr-code.cjs +23 -0
- package/dist/actions/qr-code.cjs.map +1 -0
- package/dist/actions/qr-code.d.cts +9 -0
- package/dist/actions/qr-code.d.cts.map +1 -0
- package/dist/actions/qr-code.d.mts +9 -0
- package/dist/actions/qr-code.d.mts.map +1 -0
- package/dist/actions/qr-code.mjs +20 -0
- package/dist/actions/qr-code.mjs.map +1 -0
- package/dist/actions/run-browser-bot.cjs +68 -0
- package/dist/actions/run-browser-bot.cjs.map +1 -0
- package/dist/actions/run-browser-bot.d.cts +9 -0
- package/dist/actions/run-browser-bot.d.cts.map +1 -0
- package/dist/actions/run-browser-bot.d.mts +9 -0
- package/dist/actions/run-browser-bot.d.mts.map +1 -0
- package/dist/actions/run-browser-bot.mjs +67 -0
- package/dist/actions/run-browser-bot.mjs.map +1 -0
- package/dist/actions/sms-verify.cjs +29 -0
- package/dist/actions/sms-verify.cjs.map +1 -0
- package/dist/actions/sms-verify.d.cts +9 -0
- package/dist/actions/sms-verify.d.cts.map +1 -0
- package/dist/actions/sms-verify.d.mts +9 -0
- package/dist/actions/sms-verify.d.mts.map +1 -0
- package/dist/actions/sms-verify.mjs +26 -0
- package/dist/actions/sms-verify.mjs.map +1 -0
- package/dist/actions/ua-lookup.cjs +47 -0
- package/dist/actions/ua-lookup.cjs.map +1 -0
- package/dist/actions/ua-lookup.d.cts +9 -0
- package/dist/actions/ua-lookup.d.cts.map +1 -0
- package/dist/actions/ua-lookup.d.mts +9 -0
- package/dist/actions/ua-lookup.d.mts.map +1 -0
- package/dist/actions/ua-lookup.mjs +44 -0
- package/dist/actions/ua-lookup.mjs.map +1 -0
- package/dist/actions/url-info.cjs +47 -0
- package/dist/actions/url-info.cjs.map +1 -0
- package/dist/actions/url-info.d.cts +9 -0
- package/dist/actions/url-info.d.cts.map +1 -0
- package/dist/actions/url-info.d.mts +9 -0
- package/dist/actions/url-info.d.mts.map +1 -0
- package/dist/actions/url-info.mjs +44 -0
- package/dist/actions/url-info.mjs.map +1 -0
- package/dist/actions/verify-security-code.cjs +19 -0
- package/dist/actions/verify-security-code.cjs.map +1 -0
- package/dist/actions/verify-security-code.d.cts +9 -0
- package/dist/actions/verify-security-code.d.cts.map +1 -0
- package/dist/actions/verify-security-code.d.mts +9 -0
- package/dist/actions/verify-security-code.d.mts.map +1 -0
- package/dist/actions/verify-security-code.mjs +16 -0
- package/dist/actions/verify-security-code.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 +54 -0
- package/dist/index.d.cts +27 -0
- package/dist/index.d.mts +27 -0
- package/dist/index.mjs +28 -0
- package/package.json +49 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const neutrinoHtmlClean = action("NEUTRINO_HTML_CLEAN", {
|
|
4
|
+
slug: "neutrino-html-clean",
|
|
5
|
+
name: "HTML Clean",
|
|
6
|
+
description: "Tool to clean and sanitize untrusted HTML. Use when you need to strip or neutralize unwanted tags and attributes before rendering.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
content: z.string().describe("The HTML content to clean. This can be a URL to load HTML from or an HTML content string."),
|
|
9
|
+
"output-type": z.enum([
|
|
10
|
+
"plain-text",
|
|
11
|
+
"simple-text",
|
|
12
|
+
"basic-html",
|
|
13
|
+
"basic-html-with-images",
|
|
14
|
+
"advanced-html"
|
|
15
|
+
]).default("basic-html").describe("The output format: 'plain-text' (text only, no HTML tags), 'simple-text' (basic text formatting like b, em, i, strong, u), 'basic-html' (advanced text formatting and hyperlinks), 'basic-html-with-images' (basic-html plus image tags), 'advanced-html' (includes tables, lists, pre tags, etc.).").optional()
|
|
16
|
+
}).describe("Parameters for HTMLClean action."),
|
|
17
|
+
output: z.object({ "clean-html": z.string().describe("The cleaned and sanitized HTML content.") }).describe("Response from HTMLClean action.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { neutrinoHtmlClean };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=html-clean.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-clean.mjs","names":[],"sources":["../../src/actions/html-clean.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoHtmlCleanInput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The HTML content to clean. This can be a URL to load HTML from or an HTML content string.\"),\n \"output-type\": z.enum([\"plain-text\", \"simple-text\", \"basic-html\", \"basic-html-with-images\", \"advanced-html\"]).default(\"basic-html\").describe(\"The output format: 'plain-text' (text only, no HTML tags), 'simple-text' (basic text formatting like b, em, i, strong, u), 'basic-html' (advanced text formatting and hyperlinks), 'basic-html-with-images' (basic-html plus image tags), 'advanced-html' (includes tables, lists, pre tags, etc.).\").optional(),\n}).describe(\"Parameters for HTMLClean action.\");\nexport const NeutrinoHtmlCleanOutput: z.ZodTypeAny = z.object({\n \"clean-html\": z.string().describe(\"The cleaned and sanitized HTML content.\"),\n}).describe(\"Response from HTMLClean action.\");\n\nexport const neutrinoHtmlClean = action(\"NEUTRINO_HTML_CLEAN\", {\n slug: \"neutrino-html-clean\",\n name: \"HTML Clean\",\n description: \"Tool to clean and sanitize untrusted HTML. Use when you need to strip or neutralize unwanted tags and attributes before rendering.\",\n input: NeutrinoHtmlCleanInput,\n output: NeutrinoHtmlCleanOutput,\n});\n"],"mappings":";;AAYA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZkD,EAAE,OAAO;EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F;EACxH,eAAe,EAAE,KAAK;GAAC;GAAc;GAAe;GAAc;GAA0B;EAAe,CAAC,CAAC,CAAC,QAAQ,YAAY,CAAC,CAAC,SAAS,qSAAqS,CAAC,CAAC,SAAS;CAC/b,CAAC,CAAC,CAAC,SAAS,kCASH;CACP,QATmD,EAAE,OAAO,EAC5D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,EAC7E,CAAC,CAAC,CAAC,SAAS,iCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/html-render.ts
|
|
4
|
+
const NeutrinoHtmlRenderInput = zod.z.object({
|
|
5
|
+
css: zod.z.string().describe("Inject custom CSS into the HTML before rendering.").optional(),
|
|
6
|
+
exec: zod.z.string().describe("Execute custom JavaScript before rendering. Supports functions: click(), focus(), keys(), sleep(), enter(), tab().").optional(),
|
|
7
|
+
zoom: zod.z.number().describe("Zoom factor for rendering. 2.0 doubles the size, 0.5 halves it. Default is 1.0.").optional(),
|
|
8
|
+
delay: zod.z.number().int().describe("Delay in seconds to wait before rendering (useful for JavaScript-heavy pages). Default is 0.").optional(),
|
|
9
|
+
title: zod.z.string().describe("The document title.").optional(),
|
|
10
|
+
footer: zod.z.string().describe("Footer HTML for each page. Supports variables: {date}, {title}, {url}, {pageNumber}, {totalPages}.").optional(),
|
|
11
|
+
format: zod.z.enum([
|
|
12
|
+
"PDF",
|
|
13
|
+
"PNG",
|
|
14
|
+
"JPG"
|
|
15
|
+
]).default("PDF").describe("Output format: PDF, PNG, or JPG. Values are case-sensitive and must be uppercase. Default is 'PDF'.").optional(),
|
|
16
|
+
header: zod.z.string().describe("Header HTML for each page. Supports variables: {date}, {title}, {url}, {pageNumber}, {totalPages}.").optional(),
|
|
17
|
+
margin: zod.z.number().describe("Document margin in millimeters for all sides. Default is 0.").optional(),
|
|
18
|
+
content: zod.z.string().describe("The HTML content to render. Can be a URL to load from, a file upload, or an HTML content string."),
|
|
19
|
+
timeout: zod.z.number().int().describe("Timeout in seconds for loading the content. Default is 300 seconds.").optional(),
|
|
20
|
+
"bg-color": zod.z.string().describe("Background color in hex notation (e.g., '#FFFFFF'). Use 'transparent' for PNG with transparency.").optional(),
|
|
21
|
+
grayscale: zod.z.boolean().describe("Render the final document in grayscale. Default is false.").optional(),
|
|
22
|
+
landscape: zod.z.boolean().describe("Enable landscape orientation for the document. Default is false (portrait).").optional(),
|
|
23
|
+
"page-size": zod.z.string().describe("Page size for PDF output. Options: A0-A9, B0-B10, Comm10E, DLE, or Letter. Default is 'A4'.").optional(),
|
|
24
|
+
"margin-top": zod.z.number().describe("Top margin in millimeters. Default is 0.").optional(),
|
|
25
|
+
"page-width": zod.z.number().describe("PDF page width in millimeters. Overrides page-size width if specified.").optional(),
|
|
26
|
+
"user-agent": zod.z.string().describe("Override the default browser User-Agent string.").optional(),
|
|
27
|
+
"image-width": zod.z.number().int().describe("Image width in pixels for PNG/JPG output. Default is 1024 pixels.").optional(),
|
|
28
|
+
"margin-left": zod.z.number().describe("Left margin in millimeters. Default is 0.").optional(),
|
|
29
|
+
"page-height": zod.z.number().describe("PDF page height in millimeters. Overrides page-size height if specified.").optional(),
|
|
30
|
+
"image-height": zod.z.number().int().describe("Image height in pixels for PNG/JPG output. If not specified, height is calculated automatically.").optional(),
|
|
31
|
+
"margin-right": zod.z.number().describe("Right margin in millimeters. Default is 0.").optional(),
|
|
32
|
+
"margin-bottom": zod.z.number().describe("Bottom margin in millimeters. Default is 0.").optional(),
|
|
33
|
+
"ignore-certificate-errors": zod.z.boolean().describe("Ignore TLS/SSL certificate errors when loading content. Default is false.").optional()
|
|
34
|
+
});
|
|
35
|
+
const NeutrinoHtmlRenderOutput = zod.z.object({
|
|
36
|
+
file: zod.z.string().describe("The rendered file content as binary data (PDF, PNG, or JPG)."),
|
|
37
|
+
"content-type": zod.z.string().describe("The MIME type of the rendered output (e.g., 'application/pdf', 'image/png', 'image/jpeg').")
|
|
38
|
+
});
|
|
39
|
+
const neutrinoHtmlRender = require_action.action("NEUTRINO_HTML_RENDER", {
|
|
40
|
+
slug: "neutrino-html-render",
|
|
41
|
+
name: "HTML Render",
|
|
42
|
+
description: "Render HTML content to PDF, PNG, or JPG format. Converts HTML strings or URLs into downloadable files with extensive customization options including page size, margins, headers/footers, and JavaScript execution.",
|
|
43
|
+
input: NeutrinoHtmlRenderInput,
|
|
44
|
+
output: NeutrinoHtmlRenderOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.neutrinoHtmlRender = neutrinoHtmlRender;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=html-render.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-render.cjs","names":["z","action"],"sources":["../../src/actions/html-render.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoHtmlRenderInput: z.ZodTypeAny = z.object({\n css: z.string().describe(\"Inject custom CSS into the HTML before rendering.\").optional(),\n exec: z.string().describe(\"Execute custom JavaScript before rendering. Supports functions: click(), focus(), keys(), sleep(), enter(), tab().\").optional(),\n zoom: z.number().describe(\"Zoom factor for rendering. 2.0 doubles the size, 0.5 halves it. Default is 1.0.\").optional(),\n delay: z.number().int().describe(\"Delay in seconds to wait before rendering (useful for JavaScript-heavy pages). Default is 0.\").optional(),\n title: z.string().describe(\"The document title.\").optional(),\n footer: z.string().describe(\"Footer HTML for each page. Supports variables: {date}, {title}, {url}, {pageNumber}, {totalPages}.\").optional(),\n format: z.enum([\"PDF\", \"PNG\", \"JPG\"]).default(\"PDF\").describe(\"Output format: PDF, PNG, or JPG. Values are case-sensitive and must be uppercase. Default is 'PDF'.\").optional(),\n header: z.string().describe(\"Header HTML for each page. Supports variables: {date}, {title}, {url}, {pageNumber}, {totalPages}.\").optional(),\n margin: z.number().describe(\"Document margin in millimeters for all sides. Default is 0.\").optional(),\n content: z.string().describe(\"The HTML content to render. Can be a URL to load from, a file upload, or an HTML content string.\"),\n timeout: z.number().int().describe(\"Timeout in seconds for loading the content. Default is 300 seconds.\").optional(),\n \"bg-color\": z.string().describe(\"Background color in hex notation (e.g., '#FFFFFF'). Use 'transparent' for PNG with transparency.\").optional(),\n grayscale: z.boolean().describe(\"Render the final document in grayscale. Default is false.\").optional(),\n landscape: z.boolean().describe(\"Enable landscape orientation for the document. Default is false (portrait).\").optional(),\n \"page-size\": z.string().describe(\"Page size for PDF output. Options: A0-A9, B0-B10, Comm10E, DLE, or Letter. Default is 'A4'.\").optional(),\n \"margin-top\": z.number().describe(\"Top margin in millimeters. Default is 0.\").optional(),\n \"page-width\": z.number().describe(\"PDF page width in millimeters. Overrides page-size width if specified.\").optional(),\n \"user-agent\": z.string().describe(\"Override the default browser User-Agent string.\").optional(),\n \"image-width\": z.number().int().describe(\"Image width in pixels for PNG/JPG output. Default is 1024 pixels.\").optional(),\n \"margin-left\": z.number().describe(\"Left margin in millimeters. Default is 0.\").optional(),\n \"page-height\": z.number().describe(\"PDF page height in millimeters. Overrides page-size height if specified.\").optional(),\n \"image-height\": z.number().int().describe(\"Image height in pixels for PNG/JPG output. If not specified, height is calculated automatically.\").optional(),\n \"margin-right\": z.number().describe(\"Right margin in millimeters. Default is 0.\").optional(),\n \"margin-bottom\": z.number().describe(\"Bottom margin in millimeters. Default is 0.\").optional(),\n \"ignore-certificate-errors\": z.boolean().describe(\"Ignore TLS/SSL certificate errors when loading content. Default is false.\").optional(),\n});\nexport const NeutrinoHtmlRenderOutput: z.ZodTypeAny = z.object({\n file: z.string().describe(\"The rendered file content as binary data (PDF, PNG, or JPG).\"),\n \"content-type\": z.string().describe(\"The MIME type of the rendered output (e.g., 'application/pdf', 'image/png', 'image/jpeg').\"),\n});\n\nexport const neutrinoHtmlRender = action(\"NEUTRINO_HTML_RENDER\", {\n slug: \"neutrino-html-render\",\n name: \"HTML Render\",\n description: \"Render HTML content to PDF, PNG, or JPG format. Converts HTML strings or URLs into downloadable files with extensive customization options including page size, margins, headers/footers, and JavaScript execution.\",\n input: NeutrinoHtmlRenderInput,\n output: NeutrinoHtmlRenderOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACzJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CACtH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC3I,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAO;CAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC9K,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC3I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACpG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;CAC/H,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACnH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC7I,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACtG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACxH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CACzI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC9F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CACvH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACxH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC3F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC7F,6BAA6BA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;AAC1I,CAAC;AACD,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACxF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;AAClI,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,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/html-render.d.ts
|
|
4
|
+
declare const NeutrinoHtmlRenderInput: z.ZodTypeAny;
|
|
5
|
+
declare const NeutrinoHtmlRenderOutput: z.ZodTypeAny;
|
|
6
|
+
declare const neutrinoHtmlRender: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { neutrinoHtmlRender };
|
|
9
|
+
//# sourceMappingURL=html-render.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-render.d.cts","names":[],"sources":["../../src/actions/html-render.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UA0BtC;AAAA,cACW,wBAAA,EAA0B,CAAA,CAAE,UAGvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/html-render.d.ts
|
|
4
|
+
declare const NeutrinoHtmlRenderInput: z.ZodTypeAny;
|
|
5
|
+
declare const NeutrinoHtmlRenderOutput: z.ZodTypeAny;
|
|
6
|
+
declare const neutrinoHtmlRender: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { neutrinoHtmlRender };
|
|
9
|
+
//# sourceMappingURL=html-render.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-render.d.mts","names":[],"sources":["../../src/actions/html-render.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UA0BtC;AAAA,cACW,wBAAA,EAA0B,CAAA,CAAE,UAGvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const neutrinoHtmlRender = action("NEUTRINO_HTML_RENDER", {
|
|
4
|
+
slug: "neutrino-html-render",
|
|
5
|
+
name: "HTML Render",
|
|
6
|
+
description: "Render HTML content to PDF, PNG, or JPG format. Converts HTML strings or URLs into downloadable files with extensive customization options including page size, margins, headers/footers, and JavaScript execution.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
css: z.string().describe("Inject custom CSS into the HTML before rendering.").optional(),
|
|
9
|
+
exec: z.string().describe("Execute custom JavaScript before rendering. Supports functions: click(), focus(), keys(), sleep(), enter(), tab().").optional(),
|
|
10
|
+
zoom: z.number().describe("Zoom factor for rendering. 2.0 doubles the size, 0.5 halves it. Default is 1.0.").optional(),
|
|
11
|
+
delay: z.number().int().describe("Delay in seconds to wait before rendering (useful for JavaScript-heavy pages). Default is 0.").optional(),
|
|
12
|
+
title: z.string().describe("The document title.").optional(),
|
|
13
|
+
footer: z.string().describe("Footer HTML for each page. Supports variables: {date}, {title}, {url}, {pageNumber}, {totalPages}.").optional(),
|
|
14
|
+
format: z.enum([
|
|
15
|
+
"PDF",
|
|
16
|
+
"PNG",
|
|
17
|
+
"JPG"
|
|
18
|
+
]).default("PDF").describe("Output format: PDF, PNG, or JPG. Values are case-sensitive and must be uppercase. Default is 'PDF'.").optional(),
|
|
19
|
+
header: z.string().describe("Header HTML for each page. Supports variables: {date}, {title}, {url}, {pageNumber}, {totalPages}.").optional(),
|
|
20
|
+
margin: z.number().describe("Document margin in millimeters for all sides. Default is 0.").optional(),
|
|
21
|
+
content: z.string().describe("The HTML content to render. Can be a URL to load from, a file upload, or an HTML content string."),
|
|
22
|
+
timeout: z.number().int().describe("Timeout in seconds for loading the content. Default is 300 seconds.").optional(),
|
|
23
|
+
"bg-color": z.string().describe("Background color in hex notation (e.g., '#FFFFFF'). Use 'transparent' for PNG with transparency.").optional(),
|
|
24
|
+
grayscale: z.boolean().describe("Render the final document in grayscale. Default is false.").optional(),
|
|
25
|
+
landscape: z.boolean().describe("Enable landscape orientation for the document. Default is false (portrait).").optional(),
|
|
26
|
+
"page-size": z.string().describe("Page size for PDF output. Options: A0-A9, B0-B10, Comm10E, DLE, or Letter. Default is 'A4'.").optional(),
|
|
27
|
+
"margin-top": z.number().describe("Top margin in millimeters. Default is 0.").optional(),
|
|
28
|
+
"page-width": z.number().describe("PDF page width in millimeters. Overrides page-size width if specified.").optional(),
|
|
29
|
+
"user-agent": z.string().describe("Override the default browser User-Agent string.").optional(),
|
|
30
|
+
"image-width": z.number().int().describe("Image width in pixels for PNG/JPG output. Default is 1024 pixels.").optional(),
|
|
31
|
+
"margin-left": z.number().describe("Left margin in millimeters. Default is 0.").optional(),
|
|
32
|
+
"page-height": z.number().describe("PDF page height in millimeters. Overrides page-size height if specified.").optional(),
|
|
33
|
+
"image-height": z.number().int().describe("Image height in pixels for PNG/JPG output. If not specified, height is calculated automatically.").optional(),
|
|
34
|
+
"margin-right": z.number().describe("Right margin in millimeters. Default is 0.").optional(),
|
|
35
|
+
"margin-bottom": z.number().describe("Bottom margin in millimeters. Default is 0.").optional(),
|
|
36
|
+
"ignore-certificate-errors": z.boolean().describe("Ignore TLS/SSL certificate errors when loading content. Default is false.").optional()
|
|
37
|
+
}),
|
|
38
|
+
output: z.object({
|
|
39
|
+
file: z.string().describe("The rendered file content as binary data (PDF, PNG, or JPG)."),
|
|
40
|
+
"content-type": z.string().describe("The MIME type of the rendered output (e.g., 'application/pdf', 'image/png', 'image/jpeg').")
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { neutrinoHtmlRender };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=html-render.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-render.mjs","names":[],"sources":["../../src/actions/html-render.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoHtmlRenderInput: z.ZodTypeAny = z.object({\n css: z.string().describe(\"Inject custom CSS into the HTML before rendering.\").optional(),\n exec: z.string().describe(\"Execute custom JavaScript before rendering. Supports functions: click(), focus(), keys(), sleep(), enter(), tab().\").optional(),\n zoom: z.number().describe(\"Zoom factor for rendering. 2.0 doubles the size, 0.5 halves it. Default is 1.0.\").optional(),\n delay: z.number().int().describe(\"Delay in seconds to wait before rendering (useful for JavaScript-heavy pages). Default is 0.\").optional(),\n title: z.string().describe(\"The document title.\").optional(),\n footer: z.string().describe(\"Footer HTML for each page. Supports variables: {date}, {title}, {url}, {pageNumber}, {totalPages}.\").optional(),\n format: z.enum([\"PDF\", \"PNG\", \"JPG\"]).default(\"PDF\").describe(\"Output format: PDF, PNG, or JPG. Values are case-sensitive and must be uppercase. Default is 'PDF'.\").optional(),\n header: z.string().describe(\"Header HTML for each page. Supports variables: {date}, {title}, {url}, {pageNumber}, {totalPages}.\").optional(),\n margin: z.number().describe(\"Document margin in millimeters for all sides. Default is 0.\").optional(),\n content: z.string().describe(\"The HTML content to render. Can be a URL to load from, a file upload, or an HTML content string.\"),\n timeout: z.number().int().describe(\"Timeout in seconds for loading the content. Default is 300 seconds.\").optional(),\n \"bg-color\": z.string().describe(\"Background color in hex notation (e.g., '#FFFFFF'). Use 'transparent' for PNG with transparency.\").optional(),\n grayscale: z.boolean().describe(\"Render the final document in grayscale. Default is false.\").optional(),\n landscape: z.boolean().describe(\"Enable landscape orientation for the document. Default is false (portrait).\").optional(),\n \"page-size\": z.string().describe(\"Page size for PDF output. Options: A0-A9, B0-B10, Comm10E, DLE, or Letter. Default is 'A4'.\").optional(),\n \"margin-top\": z.number().describe(\"Top margin in millimeters. Default is 0.\").optional(),\n \"page-width\": z.number().describe(\"PDF page width in millimeters. Overrides page-size width if specified.\").optional(),\n \"user-agent\": z.string().describe(\"Override the default browser User-Agent string.\").optional(),\n \"image-width\": z.number().int().describe(\"Image width in pixels for PNG/JPG output. Default is 1024 pixels.\").optional(),\n \"margin-left\": z.number().describe(\"Left margin in millimeters. Default is 0.\").optional(),\n \"page-height\": z.number().describe(\"PDF page height in millimeters. Overrides page-size height if specified.\").optional(),\n \"image-height\": z.number().int().describe(\"Image height in pixels for PNG/JPG output. If not specified, height is calculated automatically.\").optional(),\n \"margin-right\": z.number().describe(\"Right margin in millimeters. Default is 0.\").optional(),\n \"margin-bottom\": z.number().describe(\"Bottom margin in millimeters. Default is 0.\").optional(),\n \"ignore-certificate-errors\": z.boolean().describe(\"Ignore TLS/SSL certificate errors when loading content. Default is false.\").optional(),\n});\nexport const NeutrinoHtmlRenderOutput: z.ZodTypeAny = z.object({\n file: z.string().describe(\"The rendered file content as binary data (PDF, PNG, or JPG).\"),\n \"content-type\": z.string().describe(\"The MIME type of the rendered output (e.g., 'application/pdf', 'image/png', 'image/jpeg').\"),\n});\n\nexport const neutrinoHtmlRender = action(\"NEUTRINO_HTML_RENDER\", {\n slug: \"neutrino-html-render\",\n name: \"HTML Render\",\n description: \"Render HTML content to PDF, PNG, or JPG format. Converts HTML strings or URLs into downloadable files with extensive customization options including page size, margins, headers/footers, and JavaScript execution.\",\n input: NeutrinoHtmlRenderInput,\n output: NeutrinoHtmlRenderOutput,\n});\n"],"mappings":";;AAoCA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApCmD,EAAE,OAAO;EAC5D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;EACzJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EACtH,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EAC1I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAC3I,QAAQ,EAAE,KAAK;GAAC;GAAO;GAAO;EAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC9K,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAC3I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EACpG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;EAC/H,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACnH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EAC7I,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACtG,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACxH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EACzI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EACrH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC9F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;EACvH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACzF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACxH,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACvJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC3F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAC7F,6BAA6B,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC1I,CAUS;CACP,QAVoD,EAAE,OAAO;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;EACxF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4FAA4F;CAClI,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/image-resize.ts
|
|
4
|
+
const NeutrinoImageResizeInput = zod.z.object({
|
|
5
|
+
image: zod.z.string().describe("Raw image file bytes (max 10 MB). Supports GIF, ICO, JPEG, PNG, TIFF formats. Required if not providing 'image-url'.").optional(),
|
|
6
|
+
width: zod.z.number().int().describe("Target width in pixels for the resized image (1-5000)."),
|
|
7
|
+
format: zod.z.enum(["png", "jpg"]).default("png").describe("Output image format. Either 'png' or 'jpg'. Defaults to 'png'.").optional(),
|
|
8
|
+
height: zod.z.number().int().describe("Target height in pixels for the resized image (1-5000). If not specified, height is auto-calculated to preserve aspect ratio.").optional(),
|
|
9
|
+
"bg-color": zod.z.string().default("transparent").describe("Background color in hexadecimal notation (e.g. '#ffffff') or 'transparent' for PNG. Used when resize-mode is 'pad'. Defaults to 'transparent'.").optional(),
|
|
10
|
+
"image-url": zod.z.string().describe("The URL or Base64 encoded Data URL for the source image. Supports GIF, ICO, JPEG, PNG, TIFF formats (max 10 MB). Required if not providing 'image'.").optional(),
|
|
11
|
+
"resize-mode": zod.z.enum([
|
|
12
|
+
"scale",
|
|
13
|
+
"pad",
|
|
14
|
+
"crop"
|
|
15
|
+
]).default("scale").describe("Resize mode: 'scale' (preserve aspect ratio), 'pad' (fill space with bg-color), or 'crop' (centered crop). Defaults to 'scale'.").optional()
|
|
16
|
+
}).describe("Request model for the IMAGE_RESIZE action.");
|
|
17
|
+
const NeutrinoImageResize_FileDownloadableSchema = zod.z.object({
|
|
18
|
+
name: zod.z.string().describe("Name of the file"),
|
|
19
|
+
s3url: zod.z.string().describe("S3 URL of the downloaded file."),
|
|
20
|
+
mimetype: zod.z.string().describe("Mime type of the file.")
|
|
21
|
+
});
|
|
22
|
+
const NeutrinoImageResizeOutput = zod.z.object({ image: NeutrinoImageResize_FileDownloadableSchema.nullable() }).describe("Response model for the IMAGE_RESIZE action.");
|
|
23
|
+
const neutrinoImageResize = require_action.action("NEUTRINO_IMAGE_RESIZE", {
|
|
24
|
+
slug: "neutrino-image-resize",
|
|
25
|
+
name: "Resize Image",
|
|
26
|
+
description: "Resize, crop, and convert images to PNG or JPG format. Supports multiple resize modes (scale to preserve aspect ratio, pad with background color, or crop). Use when you need to adjust image dimensions, change format, or prepare images for specific size requirements. Supports GIF, ICO, JPEG, PNG, and TIFF input formats.",
|
|
27
|
+
input: NeutrinoImageResizeInput,
|
|
28
|
+
output: NeutrinoImageResizeOutput
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.neutrinoImageResize = neutrinoImageResize;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=image-resize.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-resize.cjs","names":["z","action"],"sources":["../../src/actions/image-resize.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoImageResizeInput: z.ZodTypeAny = z.object({\n image: z.string().describe(\"Raw image file bytes (max 10 MB). Supports GIF, ICO, JPEG, PNG, TIFF formats. Required if not providing 'image-url'.\").optional(),\n width: z.number().int().describe(\"Target width in pixels for the resized image (1-5000).\"),\n format: z.enum([\"png\", \"jpg\"]).default(\"png\").describe(\"Output image format. Either 'png' or 'jpg'. Defaults to 'png'.\").optional(),\n height: z.number().int().describe(\"Target height in pixels for the resized image (1-5000). If not specified, height is auto-calculated to preserve aspect ratio.\").optional(),\n \"bg-color\": z.string().default(\"transparent\").describe(\"Background color in hexadecimal notation (e.g. '#ffffff') or 'transparent' for PNG. Used when resize-mode is 'pad'. Defaults to 'transparent'.\").optional(),\n \"image-url\": z.string().describe(\"The URL or Base64 encoded Data URL for the source image. Supports GIF, ICO, JPEG, PNG, TIFF formats (max 10 MB). Required if not providing 'image'.\").optional(),\n \"resize-mode\": z.enum([\"scale\", \"pad\", \"crop\"]).default(\"scale\").describe(\"Resize mode: 'scale' (preserve aspect ratio), 'pad' (fill space with bg-color), or 'crop' (centered crop). Defaults to 'scale'.\").optional(),\n}).describe(\"Request model for the IMAGE_RESIZE action.\");\nconst NeutrinoImageResize_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 NeutrinoImageResizeOutput: z.ZodTypeAny = z.object({\n image: NeutrinoImageResize_FileDownloadableSchema.nullable(),\n}).describe(\"Response model for the IMAGE_RESIZE action.\");\n\nexport const neutrinoImageResize = action(\"NEUTRINO_IMAGE_RESIZE\", {\n slug: \"neutrino-image-resize\",\n name: \"Resize Image\",\n description: \"Resize, crop, and convert images to PNG or JPG format. Supports multiple resize modes (scale to preserve aspect ratio, pad with background color, or crop). Use when you need to adjust image dimensions, change format, or prepare images for specific size requirements. Supports GIF, ICO, JPEG, PNG, and TIFF input formats.\",\n input: NeutrinoImageResizeInput,\n output: NeutrinoImageResizeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC5J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD;CACzF,QAAQA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAClI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAC5K,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CAClN,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CACjM,eAAeA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAO;CAAM,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;AACxN,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AACD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,OAAO,2CAA2C,SAAS,EAC7D,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,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/image-resize.d.ts
|
|
4
|
+
declare const NeutrinoImageResizeInput: z.ZodTypeAny;
|
|
5
|
+
declare const NeutrinoImageResizeOutput: z.ZodTypeAny;
|
|
6
|
+
declare const neutrinoImageResize: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { neutrinoImageResize };
|
|
9
|
+
//# sourceMappingURL=image-resize.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-resize.d.cts","names":[],"sources":["../../src/actions/image-resize.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAQgB;AAAA,cAM5C,yBAAA,EAA2B,CAAA,CAAE,UAEgB;AAAA,cAE7C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/image-resize.d.ts
|
|
4
|
+
declare const NeutrinoImageResizeInput: z.ZodTypeAny;
|
|
5
|
+
declare const NeutrinoImageResizeOutput: z.ZodTypeAny;
|
|
6
|
+
declare const neutrinoImageResize: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { neutrinoImageResize };
|
|
9
|
+
//# sourceMappingURL=image-resize.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-resize.d.mts","names":[],"sources":["../../src/actions/image-resize.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAQgB;AAAA,cAM5C,yBAAA,EAA2B,CAAA,CAAE,UAEgB;AAAA,cAE7C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/image-resize.ts
|
|
4
|
+
const NeutrinoImageResizeInput = z.object({
|
|
5
|
+
image: z.string().describe("Raw image file bytes (max 10 MB). Supports GIF, ICO, JPEG, PNG, TIFF formats. Required if not providing 'image-url'.").optional(),
|
|
6
|
+
width: z.number().int().describe("Target width in pixels for the resized image (1-5000)."),
|
|
7
|
+
format: z.enum(["png", "jpg"]).default("png").describe("Output image format. Either 'png' or 'jpg'. Defaults to 'png'.").optional(),
|
|
8
|
+
height: z.number().int().describe("Target height in pixels for the resized image (1-5000). If not specified, height is auto-calculated to preserve aspect ratio.").optional(),
|
|
9
|
+
"bg-color": z.string().default("transparent").describe("Background color in hexadecimal notation (e.g. '#ffffff') or 'transparent' for PNG. Used when resize-mode is 'pad'. Defaults to 'transparent'.").optional(),
|
|
10
|
+
"image-url": z.string().describe("The URL or Base64 encoded Data URL for the source image. Supports GIF, ICO, JPEG, PNG, TIFF formats (max 10 MB). Required if not providing 'image'.").optional(),
|
|
11
|
+
"resize-mode": z.enum([
|
|
12
|
+
"scale",
|
|
13
|
+
"pad",
|
|
14
|
+
"crop"
|
|
15
|
+
]).default("scale").describe("Resize mode: 'scale' (preserve aspect ratio), 'pad' (fill space with bg-color), or 'crop' (centered crop). Defaults to 'scale'.").optional()
|
|
16
|
+
}).describe("Request model for the IMAGE_RESIZE action.");
|
|
17
|
+
const NeutrinoImageResize_FileDownloadableSchema = z.object({
|
|
18
|
+
name: z.string().describe("Name of the file"),
|
|
19
|
+
s3url: z.string().describe("S3 URL of the downloaded file."),
|
|
20
|
+
mimetype: z.string().describe("Mime type of the file.")
|
|
21
|
+
});
|
|
22
|
+
const neutrinoImageResize = action("NEUTRINO_IMAGE_RESIZE", {
|
|
23
|
+
slug: "neutrino-image-resize",
|
|
24
|
+
name: "Resize Image",
|
|
25
|
+
description: "Resize, crop, and convert images to PNG or JPG format. Supports multiple resize modes (scale to preserve aspect ratio, pad with background color, or crop). Use when you need to adjust image dimensions, change format, or prepare images for specific size requirements. Supports GIF, ICO, JPEG, PNG, and TIFF input formats.",
|
|
26
|
+
input: NeutrinoImageResizeInput,
|
|
27
|
+
output: z.object({ image: NeutrinoImageResize_FileDownloadableSchema.nullable() }).describe("Response model for the IMAGE_RESIZE action.")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { neutrinoImageResize };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=image-resize.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-resize.mjs","names":[],"sources":["../../src/actions/image-resize.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoImageResizeInput: z.ZodTypeAny = z.object({\n image: z.string().describe(\"Raw image file bytes (max 10 MB). Supports GIF, ICO, JPEG, PNG, TIFF formats. Required if not providing 'image-url'.\").optional(),\n width: z.number().int().describe(\"Target width in pixels for the resized image (1-5000).\"),\n format: z.enum([\"png\", \"jpg\"]).default(\"png\").describe(\"Output image format. Either 'png' or 'jpg'. Defaults to 'png'.\").optional(),\n height: z.number().int().describe(\"Target height in pixels for the resized image (1-5000). If not specified, height is auto-calculated to preserve aspect ratio.\").optional(),\n \"bg-color\": z.string().default(\"transparent\").describe(\"Background color in hexadecimal notation (e.g. '#ffffff') or 'transparent' for PNG. Used when resize-mode is 'pad'. Defaults to 'transparent'.\").optional(),\n \"image-url\": z.string().describe(\"The URL or Base64 encoded Data URL for the source image. Supports GIF, ICO, JPEG, PNG, TIFF formats (max 10 MB). Required if not providing 'image'.\").optional(),\n \"resize-mode\": z.enum([\"scale\", \"pad\", \"crop\"]).default(\"scale\").describe(\"Resize mode: 'scale' (preserve aspect ratio), 'pad' (fill space with bg-color), or 'crop' (centered crop). Defaults to 'scale'.\").optional(),\n}).describe(\"Request model for the IMAGE_RESIZE action.\");\nconst NeutrinoImageResize_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 NeutrinoImageResizeOutput: z.ZodTypeAny = z.object({\n image: NeutrinoImageResize_FileDownloadableSchema.nullable(),\n}).describe(\"Response model for the IMAGE_RESIZE action.\");\n\nexport const neutrinoImageResize = action(\"NEUTRINO_IMAGE_RESIZE\", {\n slug: \"neutrino-image-resize\",\n name: \"Resize Image\",\n description: \"Resize, crop, and convert images to PNG or JPG format. Supports multiple resize modes (scale to preserve aspect ratio, pad with background color, or crop). Use when you need to adjust image dimensions, change format, or prepare images for specific size requirements. Supports GIF, ICO, JPEG, PNG, and TIFF input formats.\",\n input: NeutrinoImageResizeInput,\n output: NeutrinoImageResizeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CAC5J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD;CACzF,QAAQ,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAClI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CAC5K,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,aAAa,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CAClN,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ,CAAC,CAAC,SAAS;CACjM,eAAe,EAAE,KAAK;EAAC;EAAS;EAAO;CAAM,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;AACxN,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AAKD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,OAAO,2CAA2C,SAAS,EAC7D,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_add_watermark_to_image = require("./add-watermark-to-image.cjs");
|
|
3
|
+
const require_bad_word_filter = require("./bad-word-filter.cjs");
|
|
4
|
+
const require_bin_lookup = require("./bin-lookup.cjs");
|
|
5
|
+
const require_check_ip_blocklist = require("./check-ip-blocklist.cjs");
|
|
6
|
+
const require_convert = require("./convert.cjs");
|
|
7
|
+
const require_email_validate = require("./email-validate.cjs");
|
|
8
|
+
const require_email_verify = require("./email-verify.cjs");
|
|
9
|
+
const require_geocode_address = require("./geocode-address.cjs");
|
|
10
|
+
const require_geocode_reverse = require("./geocode-reverse.cjs");
|
|
11
|
+
const require_hlr_lookup = require("./hlr-lookup.cjs");
|
|
12
|
+
const require_host_reputation = require("./host-reputation.cjs");
|
|
13
|
+
const require_html_clean = require("./html-clean.cjs");
|
|
14
|
+
const require_html_render = require("./html-render.cjs");
|
|
15
|
+
const require_image_resize = require("./image-resize.cjs");
|
|
16
|
+
const require_ip_info = require("./ip-info.cjs");
|
|
17
|
+
const require_ip_probe = require("./ip-probe.cjs");
|
|
18
|
+
const require_lookup_domain = require("./lookup-domain.cjs");
|
|
19
|
+
const require_phone_validate = require("./phone-validate.cjs");
|
|
20
|
+
const require_qr_code = require("./qr-code.cjs");
|
|
21
|
+
const require_run_browser_bot = require("./run-browser-bot.cjs");
|
|
22
|
+
const require_sms_verify = require("./sms-verify.cjs");
|
|
23
|
+
const require_ua_lookup = require("./ua-lookup.cjs");
|
|
24
|
+
const require_url_info = require("./url-info.cjs");
|
|
25
|
+
const require_verify_security_code = require("./verify-security-code.cjs");
|
|
26
|
+
exports.neutrinoAddWatermarkToImage = require_add_watermark_to_image.neutrinoAddWatermarkToImage;
|
|
27
|
+
exports.neutrinoBadWordFilter = require_bad_word_filter.neutrinoBadWordFilter;
|
|
28
|
+
exports.neutrinoBinLookup = require_bin_lookup.neutrinoBinLookup;
|
|
29
|
+
exports.neutrinoCheckIpBlocklist = require_check_ip_blocklist.neutrinoCheckIpBlocklist;
|
|
30
|
+
exports.neutrinoConvert = require_convert.neutrinoConvert;
|
|
31
|
+
exports.neutrinoEmailValidate = require_email_validate.neutrinoEmailValidate;
|
|
32
|
+
exports.neutrinoEmailVerify = require_email_verify.neutrinoEmailVerify;
|
|
33
|
+
exports.neutrinoGeocodeAddress = require_geocode_address.neutrinoGeocodeAddress;
|
|
34
|
+
exports.neutrinoGeocodeReverse = require_geocode_reverse.neutrinoGeocodeReverse;
|
|
35
|
+
exports.neutrinoHlrLookup = require_hlr_lookup.neutrinoHlrLookup;
|
|
36
|
+
exports.neutrinoHostReputation = require_host_reputation.neutrinoHostReputation;
|
|
37
|
+
exports.neutrinoHtmlClean = require_html_clean.neutrinoHtmlClean;
|
|
38
|
+
exports.neutrinoHtmlRender = require_html_render.neutrinoHtmlRender;
|
|
39
|
+
exports.neutrinoImageResize = require_image_resize.neutrinoImageResize;
|
|
40
|
+
exports.neutrinoIpInfo = require_ip_info.neutrinoIpInfo;
|
|
41
|
+
exports.neutrinoIpProbe = require_ip_probe.neutrinoIpProbe;
|
|
42
|
+
exports.neutrinoLookupDomain = require_lookup_domain.neutrinoLookupDomain;
|
|
43
|
+
exports.neutrinoPhoneValidate = require_phone_validate.neutrinoPhoneValidate;
|
|
44
|
+
exports.neutrinoQrCode = require_qr_code.neutrinoQrCode;
|
|
45
|
+
exports.neutrinoRunBrowserBot = require_run_browser_bot.neutrinoRunBrowserBot;
|
|
46
|
+
exports.neutrinoSmsVerify = require_sms_verify.neutrinoSmsVerify;
|
|
47
|
+
exports.neutrinoUaLookup = require_ua_lookup.neutrinoUaLookup;
|
|
48
|
+
exports.neutrinoUrlInfo = require_url_info.neutrinoUrlInfo;
|
|
49
|
+
exports.neutrinoVerifySecurityCode = require_verify_security_code.neutrinoVerifySecurityCode;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { neutrinoAddWatermarkToImage } from "./add-watermark-to-image.cjs";
|
|
2
|
+
import { neutrinoBadWordFilter } from "./bad-word-filter.cjs";
|
|
3
|
+
import { neutrinoBinLookup } from "./bin-lookup.cjs";
|
|
4
|
+
import { neutrinoCheckIpBlocklist } from "./check-ip-blocklist.cjs";
|
|
5
|
+
import { neutrinoConvert } from "./convert.cjs";
|
|
6
|
+
import { neutrinoEmailValidate } from "./email-validate.cjs";
|
|
7
|
+
import { neutrinoEmailVerify } from "./email-verify.cjs";
|
|
8
|
+
import { neutrinoGeocodeAddress } from "./geocode-address.cjs";
|
|
9
|
+
import { neutrinoGeocodeReverse } from "./geocode-reverse.cjs";
|
|
10
|
+
import { neutrinoHlrLookup } from "./hlr-lookup.cjs";
|
|
11
|
+
import { neutrinoHostReputation } from "./host-reputation.cjs";
|
|
12
|
+
import { neutrinoHtmlClean } from "./html-clean.cjs";
|
|
13
|
+
import { neutrinoHtmlRender } from "./html-render.cjs";
|
|
14
|
+
import { neutrinoImageResize } from "./image-resize.cjs";
|
|
15
|
+
import { neutrinoIpInfo } from "./ip-info.cjs";
|
|
16
|
+
import { neutrinoIpProbe } from "./ip-probe.cjs";
|
|
17
|
+
import { neutrinoLookupDomain } from "./lookup-domain.cjs";
|
|
18
|
+
import { neutrinoPhoneValidate } from "./phone-validate.cjs";
|
|
19
|
+
import { neutrinoQrCode } from "./qr-code.cjs";
|
|
20
|
+
import { neutrinoRunBrowserBot } from "./run-browser-bot.cjs";
|
|
21
|
+
import { neutrinoSmsVerify } from "./sms-verify.cjs";
|
|
22
|
+
import { neutrinoUaLookup } from "./ua-lookup.cjs";
|
|
23
|
+
import { neutrinoUrlInfo } from "./url-info.cjs";
|
|
24
|
+
import { neutrinoVerifySecurityCode } from "./verify-security-code.cjs";
|
|
25
|
+
export { neutrinoAddWatermarkToImage, neutrinoBadWordFilter, neutrinoBinLookup, neutrinoCheckIpBlocklist, neutrinoConvert, neutrinoEmailValidate, neutrinoEmailVerify, neutrinoGeocodeAddress, neutrinoGeocodeReverse, neutrinoHlrLookup, neutrinoHostReputation, neutrinoHtmlClean, neutrinoHtmlRender, neutrinoImageResize, neutrinoIpInfo, neutrinoIpProbe, neutrinoLookupDomain, neutrinoPhoneValidate, neutrinoQrCode, neutrinoRunBrowserBot, neutrinoSmsVerify, neutrinoUaLookup, neutrinoUrlInfo, neutrinoVerifySecurityCode };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { neutrinoAddWatermarkToImage } from "./add-watermark-to-image.mjs";
|
|
2
|
+
import { neutrinoBadWordFilter } from "./bad-word-filter.mjs";
|
|
3
|
+
import { neutrinoBinLookup } from "./bin-lookup.mjs";
|
|
4
|
+
import { neutrinoCheckIpBlocklist } from "./check-ip-blocklist.mjs";
|
|
5
|
+
import { neutrinoConvert } from "./convert.mjs";
|
|
6
|
+
import { neutrinoEmailValidate } from "./email-validate.mjs";
|
|
7
|
+
import { neutrinoEmailVerify } from "./email-verify.mjs";
|
|
8
|
+
import { neutrinoGeocodeAddress } from "./geocode-address.mjs";
|
|
9
|
+
import { neutrinoGeocodeReverse } from "./geocode-reverse.mjs";
|
|
10
|
+
import { neutrinoHlrLookup } from "./hlr-lookup.mjs";
|
|
11
|
+
import { neutrinoHostReputation } from "./host-reputation.mjs";
|
|
12
|
+
import { neutrinoHtmlClean } from "./html-clean.mjs";
|
|
13
|
+
import { neutrinoHtmlRender } from "./html-render.mjs";
|
|
14
|
+
import { neutrinoImageResize } from "./image-resize.mjs";
|
|
15
|
+
import { neutrinoIpInfo } from "./ip-info.mjs";
|
|
16
|
+
import { neutrinoIpProbe } from "./ip-probe.mjs";
|
|
17
|
+
import { neutrinoLookupDomain } from "./lookup-domain.mjs";
|
|
18
|
+
import { neutrinoPhoneValidate } from "./phone-validate.mjs";
|
|
19
|
+
import { neutrinoQrCode } from "./qr-code.mjs";
|
|
20
|
+
import { neutrinoRunBrowserBot } from "./run-browser-bot.mjs";
|
|
21
|
+
import { neutrinoSmsVerify } from "./sms-verify.mjs";
|
|
22
|
+
import { neutrinoUaLookup } from "./ua-lookup.mjs";
|
|
23
|
+
import { neutrinoUrlInfo } from "./url-info.mjs";
|
|
24
|
+
import { neutrinoVerifySecurityCode } from "./verify-security-code.mjs";
|
|
25
|
+
export { neutrinoAddWatermarkToImage, neutrinoBadWordFilter, neutrinoBinLookup, neutrinoCheckIpBlocklist, neutrinoConvert, neutrinoEmailValidate, neutrinoEmailVerify, neutrinoGeocodeAddress, neutrinoGeocodeReverse, neutrinoHlrLookup, neutrinoHostReputation, neutrinoHtmlClean, neutrinoHtmlRender, neutrinoImageResize, neutrinoIpInfo, neutrinoIpProbe, neutrinoLookupDomain, neutrinoPhoneValidate, neutrinoQrCode, neutrinoRunBrowserBot, neutrinoSmsVerify, neutrinoUaLookup, neutrinoUrlInfo, neutrinoVerifySecurityCode };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { neutrinoAddWatermarkToImage } from "./add-watermark-to-image.mjs";
|
|
2
|
+
import { neutrinoBadWordFilter } from "./bad-word-filter.mjs";
|
|
3
|
+
import { neutrinoBinLookup } from "./bin-lookup.mjs";
|
|
4
|
+
import { neutrinoCheckIpBlocklist } from "./check-ip-blocklist.mjs";
|
|
5
|
+
import { neutrinoConvert } from "./convert.mjs";
|
|
6
|
+
import { neutrinoEmailValidate } from "./email-validate.mjs";
|
|
7
|
+
import { neutrinoEmailVerify } from "./email-verify.mjs";
|
|
8
|
+
import { neutrinoGeocodeAddress } from "./geocode-address.mjs";
|
|
9
|
+
import { neutrinoGeocodeReverse } from "./geocode-reverse.mjs";
|
|
10
|
+
import { neutrinoHlrLookup } from "./hlr-lookup.mjs";
|
|
11
|
+
import { neutrinoHostReputation } from "./host-reputation.mjs";
|
|
12
|
+
import { neutrinoHtmlClean } from "./html-clean.mjs";
|
|
13
|
+
import { neutrinoHtmlRender } from "./html-render.mjs";
|
|
14
|
+
import { neutrinoImageResize } from "./image-resize.mjs";
|
|
15
|
+
import { neutrinoIpInfo } from "./ip-info.mjs";
|
|
16
|
+
import { neutrinoIpProbe } from "./ip-probe.mjs";
|
|
17
|
+
import { neutrinoLookupDomain } from "./lookup-domain.mjs";
|
|
18
|
+
import { neutrinoPhoneValidate } from "./phone-validate.mjs";
|
|
19
|
+
import { neutrinoQrCode } from "./qr-code.mjs";
|
|
20
|
+
import { neutrinoRunBrowserBot } from "./run-browser-bot.mjs";
|
|
21
|
+
import { neutrinoSmsVerify } from "./sms-verify.mjs";
|
|
22
|
+
import { neutrinoUaLookup } from "./ua-lookup.mjs";
|
|
23
|
+
import { neutrinoUrlInfo } from "./url-info.mjs";
|
|
24
|
+
import { neutrinoVerifySecurityCode } from "./verify-security-code.mjs";
|
|
25
|
+
export { neutrinoAddWatermarkToImage, neutrinoBadWordFilter, neutrinoBinLookup, neutrinoCheckIpBlocklist, neutrinoConvert, neutrinoEmailValidate, neutrinoEmailVerify, neutrinoGeocodeAddress, neutrinoGeocodeReverse, neutrinoHlrLookup, neutrinoHostReputation, neutrinoHtmlClean, neutrinoHtmlRender, neutrinoImageResize, neutrinoIpInfo, neutrinoIpProbe, neutrinoLookupDomain, neutrinoPhoneValidate, neutrinoQrCode, neutrinoRunBrowserBot, neutrinoSmsVerify, neutrinoUaLookup, neutrinoUrlInfo, neutrinoVerifySecurityCode };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/ip-info.ts
|
|
4
|
+
const NeutrinoIpInfoInput = zod.z.object({
|
|
5
|
+
ip: zod.z.string().describe("IPv4 or IPv6 address to look up (supports CIDR notation)"),
|
|
6
|
+
"reverse-lookup": zod.z.boolean().default(false).describe("Enable reverse DNS (PTR) lookup to get hostname. May add latency to the request.").optional()
|
|
7
|
+
}).describe("Request model for the IP_INFO action.");
|
|
8
|
+
const NeutrinoIpInfo_TimezoneInfoSchema = zod.z.object({
|
|
9
|
+
id: zod.z.string().describe("IANA timezone identifier (e.g., 'America/Los_Angeles')").nullable().optional(),
|
|
10
|
+
abbr: zod.z.string().describe("Timezone abbreviation (e.g., 'PST')").nullable().optional(),
|
|
11
|
+
date: zod.z.string().describe("Current date at the location (YYYY-MM-DD)").nullable().optional(),
|
|
12
|
+
name: zod.z.string().describe("Full timezone name (e.g., 'Pacific Standard Time')").nullable().optional(),
|
|
13
|
+
time: zod.z.string().describe("Current time at the location").nullable().optional(),
|
|
14
|
+
offset: zod.z.string().describe("UTC offset in ±hh:mm format (e.g., '-08:00')").nullable().optional()
|
|
15
|
+
}).passthrough().describe("Timezone information for the IP location");
|
|
16
|
+
const NeutrinoIpInfoOutput = zod.z.object({
|
|
17
|
+
ip: zod.z.string().describe("The IP address that was looked up").nullable().optional(),
|
|
18
|
+
city: zod.z.string().describe("City name if available").nullable().optional(),
|
|
19
|
+
"is-v6": zod.z.boolean().describe("True if this is an IPv6 address").nullable().optional(),
|
|
20
|
+
valid: zod.z.boolean().describe("True if this is a valid IP address"),
|
|
21
|
+
region: zod.z.string().describe("Full region or state name").nullable().optional(),
|
|
22
|
+
country: zod.z.string().describe("Full country name").nullable().optional(),
|
|
23
|
+
hostname: zod.z.string().describe("Reverse DNS hostname (only if reverse-lookup parameter is true)").nullable().optional(),
|
|
24
|
+
"is-bogon": zod.z.boolean().describe("True if this is a bogon (reserved/private) IP address").nullable().optional(),
|
|
25
|
+
latitude: zod.z.number().describe("Latitude coordinate").nullable().optional(),
|
|
26
|
+
timezone: NeutrinoIpInfo_TimezoneInfoSchema.nullable().optional(),
|
|
27
|
+
longitude: zod.z.number().describe("Longitude coordinate").nullable().optional(),
|
|
28
|
+
"host-domain": zod.z.string().describe("Domain name extracted from hostname (only if reverse-lookup is true)").nullable().optional(),
|
|
29
|
+
"region-code": zod.z.string().describe("Region code (e.g., state code)").nullable().optional(),
|
|
30
|
+
"country-code": zod.z.string().describe("ISO 2-letter country code").nullable().optional(),
|
|
31
|
+
"is-v4-mapped": zod.z.boolean().describe("True if this is an IPv4-mapped IPv6 address").nullable().optional(),
|
|
32
|
+
"country-code3": zod.z.string().describe("ISO 3-letter country code").nullable().optional(),
|
|
33
|
+
"currency-code": zod.z.string().describe("ISO 4217 currency code").nullable().optional(),
|
|
34
|
+
"language-code": zod.z.string().describe("ISO 639 language code").nullable().optional(),
|
|
35
|
+
"continent-code": zod.z.string().describe("Two-letter continent code (e.g., 'NA' for North America)").nullable().optional()
|
|
36
|
+
}).describe("Response model for the IP_INFO action.");
|
|
37
|
+
const neutrinoIpInfo = require_action.action("NEUTRINO_IP_INFO", {
|
|
38
|
+
slug: "neutrino-ip-info",
|
|
39
|
+
name: "IP Info",
|
|
40
|
+
description: "Get comprehensive geolocation and network information for an IPv4 or IPv6 address. Returns location data (country, region, city, coordinates), timezone information, and optionally reverse DNS hostname. Does NOT include VPN/proxy detection or user-agent parsing. For VPN detection, use the IP Probe action instead.",
|
|
41
|
+
input: NeutrinoIpInfoInput,
|
|
42
|
+
output: NeutrinoIpInfoOutput
|
|
43
|
+
});
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.neutrinoIpInfo = neutrinoIpInfo;
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=ip-info.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip-info.cjs","names":["z","action"],"sources":["../../src/actions/ip-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoIpInfoInput: z.ZodTypeAny = z.object({\n ip: z.string().describe(\"IPv4 or IPv6 address to look up (supports CIDR notation)\"),\n \"reverse-lookup\": z.boolean().default(false).describe(\"Enable reverse DNS (PTR) lookup to get hostname. May add latency to the request.\").optional(),\n}).describe(\"Request model for the IP_INFO action.\");\nconst NeutrinoIpInfo_TimezoneInfoSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"IANA timezone identifier (e.g., 'America/Los_Angeles')\").nullable().optional(),\n abbr: z.string().describe(\"Timezone abbreviation (e.g., 'PST')\").nullable().optional(),\n date: z.string().describe(\"Current date at the location (YYYY-MM-DD)\").nullable().optional(),\n name: z.string().describe(\"Full timezone name (e.g., 'Pacific Standard Time')\").nullable().optional(),\n time: z.string().describe(\"Current time at the location\").nullable().optional(),\n offset: z.string().describe(\"UTC offset in ±hh:mm format (e.g., '-08:00')\").nullable().optional(),\n}).passthrough().describe(\"Timezone information for the IP location\");\nexport const NeutrinoIpInfoOutput: z.ZodTypeAny = z.object({\n ip: z.string().describe(\"The IP address that was looked up\").nullable().optional(),\n city: z.string().describe(\"City name if available\").nullable().optional(),\n \"is-v6\": z.boolean().describe(\"True if this is an IPv6 address\").nullable().optional(),\n valid: z.boolean().describe(\"True if this is a valid IP address\"),\n region: z.string().describe(\"Full region or state name\").nullable().optional(),\n country: z.string().describe(\"Full country name\").nullable().optional(),\n hostname: z.string().describe(\"Reverse DNS hostname (only if reverse-lookup parameter is true)\").nullable().optional(),\n \"is-bogon\": z.boolean().describe(\"True if this is a bogon (reserved/private) IP address\").nullable().optional(),\n latitude: z.number().describe(\"Latitude coordinate\").nullable().optional(),\n timezone: NeutrinoIpInfo_TimezoneInfoSchema.nullable().optional(),\n longitude: z.number().describe(\"Longitude coordinate\").nullable().optional(),\n \"host-domain\": z.string().describe(\"Domain name extracted from hostname (only if reverse-lookup is true)\").nullable().optional(),\n \"region-code\": z.string().describe(\"Region code (e.g., state code)\").nullable().optional(),\n \"country-code\": z.string().describe(\"ISO 2-letter country code\").nullable().optional(),\n \"is-v4-mapped\": z.boolean().describe(\"True if this is an IPv4-mapped IPv6 address\").nullable().optional(),\n \"country-code3\": z.string().describe(\"ISO 3-letter country code\").nullable().optional(),\n \"currency-code\": z.string().describe(\"ISO 4217 currency code\").nullable().optional(),\n \"language-code\": z.string().describe(\"ISO 639 language code\").nullable().optional(),\n \"continent-code\": z.string().describe(\"Two-letter continent code (e.g., 'NA' for North America)\").nullable().optional(),\n}).describe(\"Response model for the IP_INFO action.\");\n\nexport const neutrinoIpInfo = action(\"NEUTRINO_IP_INFO\", {\n slug: \"neutrino-ip-info\",\n name: \"IP Info\",\n description: \"Get comprehensive geolocation and network information for an IPv4 or IPv6 address. Returns location data (country, region, city, coordinates), timezone information, and optionally reverse DNS hostname. Does NOT include VPN/proxy detection or user-agent parsing. For VPN detection, use the IP Probe action instead.\",\n input: NeutrinoIpInfoInput,\n output: NeutrinoIpInfoOutput,\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/ip-info.d.ts
|
|
4
|
+
declare const NeutrinoIpInfoInput: z.ZodTypeAny;
|
|
5
|
+
declare const NeutrinoIpInfoOutput: z.ZodTypeAny;
|
|
6
|
+
declare const neutrinoIpInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { neutrinoIpInfo };
|
|
9
|
+
//# sourceMappingURL=ip-info.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip-info.d.cts","names":[],"sources":["../../src/actions/ip-info.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAGgB;AAAA,cASvC,oBAAA,EAAsB,CAAA,CAAE,UAoBgB;AAAA,cAExC,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/ip-info.d.ts
|
|
4
|
+
declare const NeutrinoIpInfoInput: z.ZodTypeAny;
|
|
5
|
+
declare const NeutrinoIpInfoOutput: z.ZodTypeAny;
|
|
6
|
+
declare const neutrinoIpInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { neutrinoIpInfo };
|
|
9
|
+
//# sourceMappingURL=ip-info.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip-info.d.mts","names":[],"sources":["../../src/actions/ip-info.ts"],"mappings":";;;cAIa,mBAAA,EAAqB,CAAA,CAAE,UAGgB;AAAA,cASvC,oBAAA,EAAsB,CAAA,CAAE,UAoBgB;AAAA,cAExC,cAAA,gCAAc,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/ip-info.ts
|
|
4
|
+
const NeutrinoIpInfoInput = z.object({
|
|
5
|
+
ip: z.string().describe("IPv4 or IPv6 address to look up (supports CIDR notation)"),
|
|
6
|
+
"reverse-lookup": z.boolean().default(false).describe("Enable reverse DNS (PTR) lookup to get hostname. May add latency to the request.").optional()
|
|
7
|
+
}).describe("Request model for the IP_INFO action.");
|
|
8
|
+
const NeutrinoIpInfo_TimezoneInfoSchema = z.object({
|
|
9
|
+
id: z.string().describe("IANA timezone identifier (e.g., 'America/Los_Angeles')").nullable().optional(),
|
|
10
|
+
abbr: z.string().describe("Timezone abbreviation (e.g., 'PST')").nullable().optional(),
|
|
11
|
+
date: z.string().describe("Current date at the location (YYYY-MM-DD)").nullable().optional(),
|
|
12
|
+
name: z.string().describe("Full timezone name (e.g., 'Pacific Standard Time')").nullable().optional(),
|
|
13
|
+
time: z.string().describe("Current time at the location").nullable().optional(),
|
|
14
|
+
offset: z.string().describe("UTC offset in ±hh:mm format (e.g., '-08:00')").nullable().optional()
|
|
15
|
+
}).passthrough().describe("Timezone information for the IP location");
|
|
16
|
+
const neutrinoIpInfo = action("NEUTRINO_IP_INFO", {
|
|
17
|
+
slug: "neutrino-ip-info",
|
|
18
|
+
name: "IP Info",
|
|
19
|
+
description: "Get comprehensive geolocation and network information for an IPv4 or IPv6 address. Returns location data (country, region, city, coordinates), timezone information, and optionally reverse DNS hostname. Does NOT include VPN/proxy detection or user-agent parsing. For VPN detection, use the IP Probe action instead.",
|
|
20
|
+
input: NeutrinoIpInfoInput,
|
|
21
|
+
output: z.object({
|
|
22
|
+
ip: z.string().describe("The IP address that was looked up").nullable().optional(),
|
|
23
|
+
city: z.string().describe("City name if available").nullable().optional(),
|
|
24
|
+
"is-v6": z.boolean().describe("True if this is an IPv6 address").nullable().optional(),
|
|
25
|
+
valid: z.boolean().describe("True if this is a valid IP address"),
|
|
26
|
+
region: z.string().describe("Full region or state name").nullable().optional(),
|
|
27
|
+
country: z.string().describe("Full country name").nullable().optional(),
|
|
28
|
+
hostname: z.string().describe("Reverse DNS hostname (only if reverse-lookup parameter is true)").nullable().optional(),
|
|
29
|
+
"is-bogon": z.boolean().describe("True if this is a bogon (reserved/private) IP address").nullable().optional(),
|
|
30
|
+
latitude: z.number().describe("Latitude coordinate").nullable().optional(),
|
|
31
|
+
timezone: NeutrinoIpInfo_TimezoneInfoSchema.nullable().optional(),
|
|
32
|
+
longitude: z.number().describe("Longitude coordinate").nullable().optional(),
|
|
33
|
+
"host-domain": z.string().describe("Domain name extracted from hostname (only if reverse-lookup is true)").nullable().optional(),
|
|
34
|
+
"region-code": z.string().describe("Region code (e.g., state code)").nullable().optional(),
|
|
35
|
+
"country-code": z.string().describe("ISO 2-letter country code").nullable().optional(),
|
|
36
|
+
"is-v4-mapped": z.boolean().describe("True if this is an IPv4-mapped IPv6 address").nullable().optional(),
|
|
37
|
+
"country-code3": z.string().describe("ISO 3-letter country code").nullable().optional(),
|
|
38
|
+
"currency-code": z.string().describe("ISO 4217 currency code").nullable().optional(),
|
|
39
|
+
"language-code": z.string().describe("ISO 639 language code").nullable().optional(),
|
|
40
|
+
"continent-code": z.string().describe("Two-letter continent code (e.g., 'NA' for North America)").nullable().optional()
|
|
41
|
+
}).describe("Response model for the IP_INFO action.")
|
|
42
|
+
});
|
|
43
|
+
//#endregion
|
|
44
|
+
export { neutrinoIpInfo };
|
|
45
|
+
|
|
46
|
+
//# sourceMappingURL=ip-info.mjs.map
|