@keystrokehq/neutrino 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-watermark-to-image.cjs +5 -5
- package/dist/actions/add-watermark-to-image.cjs.map +1 -1
- package/dist/actions/add-watermark-to-image.d.cts +44 -3
- package/dist/actions/add-watermark-to-image.d.cts.map +1 -1
- package/dist/actions/add-watermark-to-image.d.mts +44 -3
- package/dist/actions/add-watermark-to-image.d.mts.map +1 -1
- package/dist/actions/add-watermark-to-image.mjs +5 -5
- package/dist/actions/add-watermark-to-image.mjs.map +1 -1
- package/dist/actions/bad-word-filter.cjs +4 -4
- package/dist/actions/bad-word-filter.cjs.map +1 -1
- package/dist/actions/bad-word-filter.d.cts +23 -3
- package/dist/actions/bad-word-filter.d.cts.map +1 -1
- package/dist/actions/bad-word-filter.d.mts +23 -3
- package/dist/actions/bad-word-filter.d.mts.map +1 -1
- package/dist/actions/bad-word-filter.mjs +4 -4
- package/dist/actions/bad-word-filter.mjs.map +1 -1
- package/dist/actions/bin-lookup.cjs +23 -23
- package/dist/actions/bin-lookup.cjs.map +1 -1
- package/dist/actions/bin-lookup.d.cts +38 -3
- package/dist/actions/bin-lookup.d.cts.map +1 -1
- package/dist/actions/bin-lookup.d.mts +38 -3
- package/dist/actions/bin-lookup.d.mts.map +1 -1
- package/dist/actions/bin-lookup.mjs +23 -23
- package/dist/actions/bin-lookup.mjs.map +1 -1
- package/dist/actions/check-ip-blocklist.cjs +20 -20
- package/dist/actions/check-ip-blocklist.cjs.map +1 -1
- package/dist/actions/check-ip-blocklist.d.cts +32 -3
- package/dist/actions/check-ip-blocklist.d.cts.map +1 -1
- package/dist/actions/check-ip-blocklist.d.mts +32 -3
- package/dist/actions/check-ip-blocklist.d.mts.map +1 -1
- package/dist/actions/check-ip-blocklist.mjs +20 -20
- package/dist/actions/check-ip-blocklist.mjs.map +1 -1
- package/dist/actions/convert.cjs +11 -11
- package/dist/actions/convert.cjs.map +1 -1
- package/dist/actions/convert.d.cts +25 -3
- package/dist/actions/convert.d.cts.map +1 -1
- package/dist/actions/convert.d.mts +25 -3
- package/dist/actions/convert.d.mts.map +1 -1
- package/dist/actions/convert.mjs +11 -11
- package/dist/actions/convert.mjs.map +1 -1
- package/dist/actions/email-validate.cjs +11 -11
- package/dist/actions/email-validate.cjs.map +1 -1
- package/dist/actions/email-validate.d.cts +22 -3
- package/dist/actions/email-validate.d.cts.map +1 -1
- package/dist/actions/email-validate.d.mts +22 -3
- package/dist/actions/email-validate.d.mts.map +1 -1
- package/dist/actions/email-validate.mjs +11 -11
- package/dist/actions/email-validate.mjs.map +1 -1
- package/dist/actions/email-verify.cjs +17 -17
- package/dist/actions/email-verify.cjs.map +1 -1
- package/dist/actions/email-verify.d.cts +29 -3
- package/dist/actions/email-verify.d.cts.map +1 -1
- package/dist/actions/email-verify.d.mts +29 -3
- package/dist/actions/email-verify.d.mts.map +1 -1
- package/dist/actions/email-verify.mjs +17 -17
- package/dist/actions/email-verify.mjs.map +1 -1
- package/dist/actions/geocode-address.cjs +5 -5
- package/dist/actions/geocode-address.cjs.map +1 -1
- package/dist/actions/geocode-address.d.cts +39 -3
- package/dist/actions/geocode-address.d.cts.map +1 -1
- package/dist/actions/geocode-address.d.mts +39 -3
- package/dist/actions/geocode-address.d.mts.map +1 -1
- package/dist/actions/geocode-address.mjs +5 -5
- package/dist/actions/geocode-address.mjs.map +1 -1
- package/dist/actions/geocode-reverse.cjs +5 -5
- package/dist/actions/geocode-reverse.cjs.map +1 -1
- package/dist/actions/geocode-reverse.d.cts +57 -3
- package/dist/actions/geocode-reverse.d.cts.map +1 -1
- package/dist/actions/geocode-reverse.d.mts +57 -3
- package/dist/actions/geocode-reverse.d.mts.map +1 -1
- package/dist/actions/geocode-reverse.mjs +5 -5
- package/dist/actions/geocode-reverse.mjs.map +1 -1
- package/dist/actions/hlr-lookup.cjs +26 -26
- package/dist/actions/hlr-lookup.cjs.map +1 -1
- package/dist/actions/hlr-lookup.d.cts +37 -3
- package/dist/actions/hlr-lookup.d.cts.map +1 -1
- package/dist/actions/hlr-lookup.d.mts +37 -3
- package/dist/actions/hlr-lookup.d.mts.map +1 -1
- package/dist/actions/hlr-lookup.mjs +26 -26
- package/dist/actions/hlr-lookup.mjs.map +1 -1
- package/dist/actions/host-reputation.cjs +12 -12
- package/dist/actions/host-reputation.cjs.map +1 -1
- package/dist/actions/host-reputation.d.cts +24 -3
- package/dist/actions/host-reputation.d.cts.map +1 -1
- package/dist/actions/host-reputation.d.mts +24 -3
- package/dist/actions/host-reputation.d.mts.map +1 -1
- package/dist/actions/host-reputation.mjs +12 -12
- package/dist/actions/host-reputation.mjs.map +1 -1
- package/dist/actions/html-clean.cjs +1 -1
- package/dist/actions/html-clean.cjs.map +1 -1
- package/dist/actions/html-clean.d.cts +17 -3
- package/dist/actions/html-clean.d.cts.map +1 -1
- package/dist/actions/html-clean.d.mts +17 -3
- package/dist/actions/html-clean.d.mts.map +1 -1
- package/dist/actions/html-clean.mjs +1 -1
- package/dist/actions/html-clean.mjs.map +1 -1
- package/dist/actions/html-render.cjs +3 -3
- package/dist/actions/html-render.cjs.map +1 -1
- package/dist/actions/html-render.d.cts +62 -3
- package/dist/actions/html-render.d.cts.map +1 -1
- package/dist/actions/html-render.d.mts +62 -3
- package/dist/actions/html-render.d.mts.map +1 -1
- package/dist/actions/html-render.mjs +3 -3
- package/dist/actions/html-render.mjs.map +1 -1
- package/dist/actions/image-resize.cjs +5 -5
- package/dist/actions/image-resize.cjs.map +1 -1
- package/dist/actions/image-resize.d.cts +32 -3
- package/dist/actions/image-resize.d.cts.map +1 -1
- package/dist/actions/image-resize.d.mts +32 -3
- package/dist/actions/image-resize.d.mts.map +1 -1
- package/dist/actions/image-resize.mjs +5 -5
- package/dist/actions/image-resize.mjs.map +1 -1
- package/dist/actions/ip-info.cjs +2 -2
- package/dist/actions/ip-info.cjs.map +1 -1
- package/dist/actions/ip-info.d.cts +36 -3
- package/dist/actions/ip-info.d.cts.map +1 -1
- package/dist/actions/ip-info.d.mts +36 -3
- package/dist/actions/ip-info.d.mts.map +1 -1
- package/dist/actions/ip-info.mjs +2 -2
- package/dist/actions/ip-info.mjs.map +1 -1
- package/dist/actions/ip-probe.cjs +3 -3
- package/dist/actions/ip-probe.cjs.map +1 -1
- package/dist/actions/ip-probe.d.cts +47 -3
- package/dist/actions/ip-probe.d.cts.map +1 -1
- package/dist/actions/ip-probe.d.mts +47 -3
- package/dist/actions/ip-probe.d.mts.map +1 -1
- package/dist/actions/ip-probe.mjs +3 -3
- package/dist/actions/ip-probe.mjs.map +1 -1
- package/dist/actions/lookup-domain.cjs +27 -27
- package/dist/actions/lookup-domain.cjs.map +1 -1
- package/dist/actions/lookup-domain.d.cts +38 -3
- package/dist/actions/lookup-domain.d.cts.map +1 -1
- package/dist/actions/lookup-domain.d.mts +38 -3
- package/dist/actions/lookup-domain.d.mts.map +1 -1
- package/dist/actions/lookup-domain.mjs +27 -27
- package/dist/actions/lookup-domain.mjs.map +1 -1
- package/dist/actions/phone-validate.cjs +13 -13
- package/dist/actions/phone-validate.cjs.map +1 -1
- package/dist/actions/phone-validate.d.cts +24 -3
- package/dist/actions/phone-validate.d.cts.map +1 -1
- package/dist/actions/phone-validate.d.mts +24 -3
- package/dist/actions/phone-validate.d.mts.map +1 -1
- package/dist/actions/phone-validate.mjs +13 -13
- package/dist/actions/phone-validate.mjs.map +1 -1
- package/dist/actions/qr-code.cjs +1 -1
- package/dist/actions/qr-code.cjs.map +1 -1
- package/dist/actions/qr-code.d.cts +22 -3
- package/dist/actions/qr-code.d.cts.map +1 -1
- package/dist/actions/qr-code.d.mts +22 -3
- package/dist/actions/qr-code.d.mts.map +1 -1
- package/dist/actions/qr-code.mjs +1 -1
- package/dist/actions/qr-code.mjs.map +1 -1
- package/dist/actions/run-browser-bot.cjs +7 -7
- package/dist/actions/run-browser-bot.cjs.map +1 -1
- package/dist/actions/run-browser-bot.d.cts +60 -3
- package/dist/actions/run-browser-bot.d.cts.map +1 -1
- package/dist/actions/run-browser-bot.d.mts +60 -3
- package/dist/actions/run-browser-bot.d.mts.map +1 -1
- package/dist/actions/run-browser-bot.mjs +7 -7
- package/dist/actions/run-browser-bot.mjs.map +1 -1
- package/dist/actions/sms-verify.cjs +4 -4
- package/dist/actions/sms-verify.cjs.map +1 -1
- package/dist/actions/sms-verify.d.cts +25 -3
- package/dist/actions/sms-verify.d.cts.map +1 -1
- package/dist/actions/sms-verify.d.mts +25 -3
- package/dist/actions/sms-verify.d.mts.map +1 -1
- package/dist/actions/sms-verify.mjs +4 -4
- package/dist/actions/sms-verify.mjs.map +1 -1
- package/dist/actions/ua-lookup.cjs +2 -2
- package/dist/actions/ua-lookup.cjs.map +1 -1
- package/dist/actions/ua-lookup.d.cts +37 -3
- package/dist/actions/ua-lookup.d.cts.map +1 -1
- package/dist/actions/ua-lookup.d.mts +37 -3
- package/dist/actions/ua-lookup.d.mts.map +1 -1
- package/dist/actions/ua-lookup.mjs +2 -2
- package/dist/actions/ua-lookup.mjs.map +1 -1
- package/dist/actions/url-info.cjs +17 -17
- package/dist/actions/url-info.cjs.map +1 -1
- package/dist/actions/url-info.d.cts +37 -3
- package/dist/actions/url-info.d.cts.map +1 -1
- package/dist/actions/url-info.d.mts +37 -3
- package/dist/actions/url-info.d.mts.map +1 -1
- package/dist/actions/url-info.mjs +17 -17
- package/dist/actions/url-info.mjs.map +1 -1
- package/dist/actions/verify-security-code.cjs +1 -1
- package/dist/actions/verify-security-code.cjs.map +1 -1
- package/dist/actions/verify-security-code.d.cts +11 -3
- package/dist/actions/verify-security-code.d.cts.map +1 -1
- package/dist/actions/verify-security-code.d.mts +11 -3
- package/dist/actions/verify-security-code.d.mts.map +1 -1
- package/dist/actions/verify-security-code.mjs +1 -1
- package/dist/actions/verify-security-code.mjs.map +1 -1
- package/dist/catalog.cjs +14 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +13 -0
- package/dist/catalog.d.mts +13 -0
- package/dist/catalog.mjs +14 -1
- package/dist/catalog.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/phone-validate.d.ts
|
|
4
|
-
declare const NeutrinoPhoneValidateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeutrinoPhoneValidateInput: z.ZodObject<{
|
|
5
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
6
|
+
number: z.ZodString;
|
|
7
|
+
"country-code": z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NeutrinoPhoneValidateOutput: z.ZodObject<{
|
|
10
|
+
type: z.ZodNullable<z.ZodString>;
|
|
11
|
+
valid: z.ZodNullable<z.ZodBoolean>;
|
|
12
|
+
country: z.ZodNullable<z.ZodString>;
|
|
13
|
+
location: z.ZodNullable<z.ZodString>;
|
|
14
|
+
"is-mobile": z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
"country-code": z.ZodNullable<z.ZodString>;
|
|
16
|
+
"local-number": z.ZodNullable<z.ZodString>;
|
|
17
|
+
"country-code3": z.ZodNullable<z.ZodString>;
|
|
18
|
+
"currency-code": z.ZodNullable<z.ZodString>;
|
|
19
|
+
"prefix-network": z.ZodNullable<z.ZodString>;
|
|
20
|
+
"international-number": z.ZodNullable<z.ZodString>;
|
|
21
|
+
"international-calling-code": z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const neutrinoPhoneValidate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
number: string;
|
|
25
|
+
ip?: string | undefined;
|
|
26
|
+
"country-code"?: string | undefined;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { neutrinoPhoneValidate };
|
|
9
30
|
//# sourceMappingURL=phone-validate.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-validate.d.cts","names":[],"sources":["../../src/actions/phone-validate.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"phone-validate.d.cts","names":[],"sources":["../../src/actions/phone-validate.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAe3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/phone-validate.d.ts
|
|
4
|
-
declare const NeutrinoPhoneValidateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeutrinoPhoneValidateInput: z.ZodObject<{
|
|
5
|
+
ip: z.ZodOptional<z.ZodString>;
|
|
6
|
+
number: z.ZodString;
|
|
7
|
+
"country-code": z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NeutrinoPhoneValidateOutput: z.ZodObject<{
|
|
10
|
+
type: z.ZodNullable<z.ZodString>;
|
|
11
|
+
valid: z.ZodNullable<z.ZodBoolean>;
|
|
12
|
+
country: z.ZodNullable<z.ZodString>;
|
|
13
|
+
location: z.ZodNullable<z.ZodString>;
|
|
14
|
+
"is-mobile": z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
"country-code": z.ZodNullable<z.ZodString>;
|
|
16
|
+
"local-number": z.ZodNullable<z.ZodString>;
|
|
17
|
+
"country-code3": z.ZodNullable<z.ZodString>;
|
|
18
|
+
"currency-code": z.ZodNullable<z.ZodString>;
|
|
19
|
+
"prefix-network": z.ZodNullable<z.ZodString>;
|
|
20
|
+
"international-number": z.ZodNullable<z.ZodString>;
|
|
21
|
+
"international-calling-code": z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$loose>;
|
|
23
|
+
declare const neutrinoPhoneValidate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
24
|
+
number: string;
|
|
25
|
+
ip?: string | undefined;
|
|
26
|
+
"country-code"?: string | undefined;
|
|
27
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
28
|
//#endregion
|
|
8
29
|
export { neutrinoPhoneValidate };
|
|
9
30
|
//# sourceMappingURL=phone-validate.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-validate.d.mts","names":[],"sources":["../../src/actions/phone-validate.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"phone-validate.d.mts","names":[],"sources":["../../src/actions/phone-validate.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAe3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -10,19 +10,19 @@ const neutrinoPhoneValidate = action("NEUTRINO_PHONE_VALIDATE", {
|
|
|
10
10
|
"country-code": z.string().describe("ISO 2-letter country code (required if number not in international format).").optional()
|
|
11
11
|
}).describe("Request model for phone number validation and lookup."),
|
|
12
12
|
output: z.object({
|
|
13
|
-
type: z.string().describe("Phone number type (mobile, fixed-line, premium-rate, toll-free, voip, or unknown)."),
|
|
14
|
-
valid: z.boolean().describe("True if the phone number is valid."),
|
|
15
|
-
country: z.string().describe("Country name."),
|
|
16
|
-
location: z.string().describe("Location description for the number."),
|
|
17
|
-
"is-mobile": z.boolean().describe("True if the number is a mobile number."),
|
|
18
|
-
"country-code": z.string().describe("ISO 2-letter country code."),
|
|
19
|
-
"local-number": z.string().describe("Number in local format."),
|
|
20
|
-
"country-code3": z.string().describe("ISO 3-letter country code."),
|
|
21
|
-
"currency-code": z.string().describe("ISO 3-letter currency code."),
|
|
22
|
-
"prefix-network": z.string().describe("Network/carrier that owns the prefix (may be empty if unavailable)."),
|
|
23
|
-
"international-number": z.string().describe("Number in international format."),
|
|
24
|
-
"international-calling-code": z.string().describe("International calling code (e.g., '1' for US).")
|
|
25
|
-
}).describe("Response model for phone number validation and lookup.")
|
|
13
|
+
type: z.string().describe("Phone number type (mobile, fixed-line, premium-rate, toll-free, voip, or unknown).").nullable(),
|
|
14
|
+
valid: z.boolean().describe("True if the phone number is valid.").nullable(),
|
|
15
|
+
country: z.string().describe("Country name.").nullable(),
|
|
16
|
+
location: z.string().describe("Location description for the number.").nullable(),
|
|
17
|
+
"is-mobile": z.boolean().describe("True if the number is a mobile number.").nullable(),
|
|
18
|
+
"country-code": z.string().describe("ISO 2-letter country code.").nullable(),
|
|
19
|
+
"local-number": z.string().describe("Number in local format.").nullable(),
|
|
20
|
+
"country-code3": z.string().describe("ISO 3-letter country code.").nullable(),
|
|
21
|
+
"currency-code": z.string().describe("ISO 3-letter currency code.").nullable(),
|
|
22
|
+
"prefix-network": z.string().describe("Network/carrier that owns the prefix (may be empty if unavailable).").nullable(),
|
|
23
|
+
"international-number": z.string().describe("Number in international format.").nullable(),
|
|
24
|
+
"international-calling-code": z.string().describe("International calling code (e.g., '1' for US).").nullable()
|
|
25
|
+
}).passthrough().describe("Response model for phone number validation and lookup.")
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
28
28
|
export { neutrinoPhoneValidate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phone-validate.mjs","names":[],"sources":["../../src/actions/phone-validate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoPhoneValidateInput
|
|
1
|
+
{"version":3,"file":"phone-validate.mjs","names":[],"sources":["../../src/actions/phone-validate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoPhoneValidateInput = z.object({\n ip: z.string().describe(\"User's IP address to help with number location.\").optional(),\n number: z.string().describe(\"The phone number to validate in international format.\"),\n \"country-code\": z.string().describe(\"ISO 2-letter country code (required if number not in international format).\").optional(),\n}).describe(\"Request model for phone number validation and lookup.\");\nexport const NeutrinoPhoneValidateOutput = z.object({\n type: z.string().describe(\"Phone number type (mobile, fixed-line, premium-rate, toll-free, voip, or unknown).\").nullable(),\n valid: z.boolean().describe(\"True if the phone number is valid.\").nullable(),\n country: z.string().describe(\"Country name.\").nullable(),\n location: z.string().describe(\"Location description for the number.\").nullable(),\n \"is-mobile\": z.boolean().describe(\"True if the number is a mobile number.\").nullable(),\n \"country-code\": z.string().describe(\"ISO 2-letter country code.\").nullable(),\n \"local-number\": z.string().describe(\"Number in local format.\").nullable(),\n \"country-code3\": z.string().describe(\"ISO 3-letter country code.\").nullable(),\n \"currency-code\": z.string().describe(\"ISO 3-letter currency code.\").nullable(),\n \"prefix-network\": z.string().describe(\"Network/carrier that owns the prefix (may be empty if unavailable).\").nullable(),\n \"international-number\": z.string().describe(\"Number in international format.\").nullable(),\n \"international-calling-code\": z.string().describe(\"International calling code (e.g., '1' for US).\").nullable(),\n}).passthrough().describe(\"Response model for phone number validation and lookup.\");\n\nexport const neutrinoPhoneValidate = action(\"NEUTRINO_PHONE_VALIDATE\", {\n slug: \"neutrino-phone-validate\",\n name: \"Phone Validate\",\n description: \"Tool to validate and lookup phone numbers. Use when you need to confirm number format and fetch location, carrier, and type details.\",\n input: NeutrinoPhoneValidateInput,\n output: NeutrinoPhoneValidateOutput,\n});\n"],"mappings":";;AAwBA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxBwC,EAAE,OAAO;EACjD,IAA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od.z.object({
|
|
|
9
9
|
"fg-color": zod.z.string().default("#000000").describe("The QR code foreground color as hex value; default is #000000 (black)").optional(),
|
|
10
10
|
"code-format": zod.z.enum(["qr", "c128"]).default("qr").describe("The barcode format to output: 'qr' for QR code or 'c128' for Code 128 barcode; default is 'qr'").optional()
|
|
11
11
|
}).describe("Request model for the QR_CODE action.");
|
|
12
|
-
const NeutrinoQrCodeOutput = zod.z.object({ file: zod.z.string().describe("The generated QR code image as binary data.") }).describe("Response model for the QR_CODE action.");
|
|
12
|
+
const NeutrinoQrCodeOutput = zod.z.object({ file: zod.z.string().describe("The generated QR code image as binary data.").nullable() }).passthrough().describe("Response model for the QR_CODE action.");
|
|
13
13
|
const neutrinoQrCode = require_action.action("NEUTRINO_QR_CODE", {
|
|
14
14
|
slug: "neutrino-qr-code",
|
|
15
15
|
name: "QR Code",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qr-code.cjs","names":["z","action"],"sources":["../../src/actions/qr-code.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoQrCodeInput
|
|
1
|
+
{"version":3,"file":"qr-code.cjs","names":["z","action"],"sources":["../../src/actions/qr-code.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoQrCodeInput = z.object({\n width: z.number().int().default(256).describe(\"The width of the QR code in pixels; default is 256\").optional(),\n height: z.number().int().default(256).describe(\"The height of the QR code in pixels; default is 256\").optional(),\n content: z.string().describe(\"The content to encode into the QR code (e.g. a URL or a phone number)\"),\n \"bg-color\": z.string().default(\"#ffffff\").describe(\"The QR code background color as hex value; default is #ffffff (white)\").optional(),\n \"fg-color\": z.string().default(\"#000000\").describe(\"The QR code foreground color as hex value; default is #000000 (black)\").optional(),\n \"code-format\": z.enum([\"qr\", \"c128\"]).default(\"qr\").describe(\"The barcode format to output: 'qr' for QR code or 'c128' for Code 128 barcode; default is 'qr'\").optional(),\n}).describe(\"Request model for the QR_CODE action.\");\nexport const NeutrinoQrCodeOutput = z.object({\n file: z.string().describe(\"The generated QR code image as binary data.\").nullable(),\n}).passthrough().describe(\"Response model for the QR_CODE action.\");\n\nexport const neutrinoQrCode = action(\"NEUTRINO_QR_CODE\", {\n slug: \"neutrino-qr-code\",\n name: \"QR Code\",\n description: \"Generate a QR code or Code 128 barcode as a PNG image. Use when you need to encode URLs, text, phone numbers, or other data into a scannable code. Examples: Create QR code for a website URL, encode contact information, generate barcode for product tracking.\",\n input: NeutrinoQrCodeInput,\n output: NeutrinoQrCodeOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sBAAsBA,IAAAA,EAAE,OAAO;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC7G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC/G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;CACpG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACrI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CACrI,eAAeA,IAAAA,EAAE,KAAK,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,uBAAuBA,IAAAA,EAAE,OAAO,EAC3C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,EACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,iBAAiBC,eAAAA,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/qr-code.d.ts
|
|
4
|
-
declare const NeutrinoQrCodeInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeutrinoQrCodeInput: z.ZodObject<{
|
|
5
|
+
width: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
height: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
"bg-color": z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
9
|
+
"fg-color": z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
10
|
+
"code-format": z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
qr: "qr";
|
|
12
|
+
c128: "c128";
|
|
13
|
+
}>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const NeutrinoQrCodeOutput: z.ZodObject<{
|
|
16
|
+
file: z.ZodNullable<z.ZodString>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const neutrinoQrCode: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
content: string;
|
|
20
|
+
width?: number | undefined;
|
|
21
|
+
height?: number | undefined;
|
|
22
|
+
"bg-color"?: string | undefined;
|
|
23
|
+
"fg-color"?: string | undefined;
|
|
24
|
+
"code-format"?: "qr" | "c128" | undefined;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { neutrinoQrCode };
|
|
9
28
|
//# sourceMappingURL=qr-code.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qr-code.d.cts","names":[],"sources":["../../src/actions/qr-code.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"qr-code.d.cts","names":[],"sources":["../../src/actions/qr-code.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAIpB,cAAA,gCAAc,wBAAA"}
|
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/qr-code.d.ts
|
|
4
|
-
declare const NeutrinoQrCodeInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeutrinoQrCodeInput: z.ZodObject<{
|
|
5
|
+
width: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
6
|
+
height: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
7
|
+
content: z.ZodString;
|
|
8
|
+
"bg-color": z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
9
|
+
"fg-color": z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
10
|
+
"code-format": z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
11
|
+
qr: "qr";
|
|
12
|
+
c128: "c128";
|
|
13
|
+
}>>>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const NeutrinoQrCodeOutput: z.ZodObject<{
|
|
16
|
+
file: z.ZodNullable<z.ZodString>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const neutrinoQrCode: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
content: string;
|
|
20
|
+
width?: number | undefined;
|
|
21
|
+
height?: number | undefined;
|
|
22
|
+
"bg-color"?: string | undefined;
|
|
23
|
+
"fg-color"?: string | undefined;
|
|
24
|
+
"code-format"?: "qr" | "c128" | undefined;
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
26
|
//#endregion
|
|
8
27
|
export { neutrinoQrCode };
|
|
9
28
|
//# sourceMappingURL=qr-code.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qr-code.d.mts","names":[],"sources":["../../src/actions/qr-code.ts"],"mappings":";;;cAIa,mBAAA,
|
|
1
|
+
{"version":3,"file":"qr-code.d.mts","names":[],"sources":["../../src/actions/qr-code.ts"],"mappings":";;;cAIa,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;cAQnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;cAIpB,cAAA,gCAAc,wBAAA"}
|
package/dist/actions/qr-code.mjs
CHANGED
|
@@ -12,7 +12,7 @@ const neutrinoQrCode = action("NEUTRINO_QR_CODE", {
|
|
|
12
12
|
"fg-color": z.string().default("#000000").describe("The QR code foreground color as hex value; default is #000000 (black)").optional(),
|
|
13
13
|
"code-format": z.enum(["qr", "c128"]).default("qr").describe("The barcode format to output: 'qr' for QR code or 'c128' for Code 128 barcode; default is 'qr'").optional()
|
|
14
14
|
}).describe("Request model for the QR_CODE action."),
|
|
15
|
-
output: z.object({ file: z.string().describe("The generated QR code image as binary data.") }).describe("Response model for the QR_CODE action.")
|
|
15
|
+
output: z.object({ file: z.string().describe("The generated QR code image as binary data.").nullable() }).passthrough().describe("Response model for the QR_CODE action.")
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
export { neutrinoQrCode };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qr-code.mjs","names":[],"sources":["../../src/actions/qr-code.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoQrCodeInput
|
|
1
|
+
{"version":3,"file":"qr-code.mjs","names":[],"sources":["../../src/actions/qr-code.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoQrCodeInput = z.object({\n width: z.number().int().default(256).describe(\"The width of the QR code in pixels; default is 256\").optional(),\n height: z.number().int().default(256).describe(\"The height of the QR code in pixels; default is 256\").optional(),\n content: z.string().describe(\"The content to encode into the QR code (e.g. a URL or a phone number)\"),\n \"bg-color\": z.string().default(\"#ffffff\").describe(\"The QR code background color as hex value; default is #ffffff (white)\").optional(),\n \"fg-color\": z.string().default(\"#000000\").describe(\"The QR code foreground color as hex value; default is #000000 (black)\").optional(),\n \"code-format\": z.enum([\"qr\", \"c128\"]).default(\"qr\").describe(\"The barcode format to output: 'qr' for QR code or 'c128' for Code 128 barcode; default is 'qr'\").optional(),\n}).describe(\"Request model for the QR_CODE action.\");\nexport const NeutrinoQrCodeOutput = z.object({\n file: z.string().describe(\"The generated QR code image as binary data.\").nullable(),\n}).passthrough().describe(\"Response model for the QR_CODE action.\");\n\nexport const neutrinoQrCode = action(\"NEUTRINO_QR_CODE\", {\n slug: \"neutrino-qr-code\",\n name: \"QR Code\",\n description: \"Generate a QR code or Code 128 barcode as a PNG image. Use when you need to encode URLs, text, phone numbers, or other data into a scannable code. Examples: Create QR code for a website URL, encode contact information, generate barcode for product tracking.\",\n input: NeutrinoQrCodeInput,\n output: NeutrinoQrCodeOutput,\n});\n"],"mappings":";;AAgBA,MAAa,iBAAiB,OAAO,oBAAoB;CACvD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBiC,EAAE,OAAO;EAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC7G,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC/G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE;EACpG,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACrI,YAAY,EAAE,OAAO,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EACrI,eAAe,EAAE,KAAK,CAAC,MAAM,MAAM,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC1K,CAAC,CAAC,CAAC,SAAS,uCASH;CACP,QATkC,EAAE,OAAO,EAC3C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,EACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -16,19 +16,19 @@ const NeutrinoRunBrowserBot_HTMLElementSchema = zod.z.object({
|
|
|
16
16
|
html: zod.z.string().describe("The HTML content of the element").nullable().optional(),
|
|
17
17
|
text: zod.z.string().describe("The text content of the element").nullable().optional(),
|
|
18
18
|
"class": zod.z.string().describe("The class attribute of the element").nullable().optional()
|
|
19
|
-
}).describe("Model representing an HTML element extracted by a CSS selector.");
|
|
19
|
+
}).passthrough().describe("Model representing an HTML element extracted by a CSS selector.");
|
|
20
20
|
const NeutrinoRunBrowserBot_ExecResultSchema = zod.z.object({
|
|
21
21
|
result: zod.z.string().describe("The result returned by the statement").nullable().optional(),
|
|
22
22
|
statement: zod.z.string().describe("The JavaScript statement that was executed").nullable().optional()
|
|
23
|
-
}).describe("Model representing the result of executing JavaScript.");
|
|
23
|
+
}).passthrough().describe("Model representing the result of executing JavaScript.");
|
|
24
24
|
const NeutrinoRunBrowserBot_URLComponentsSchema = zod.z.object({
|
|
25
25
|
url: zod.z.string().describe("The complete and final URL").nullable().optional(),
|
|
26
26
|
host: zod.z.string().describe("The host of the URL. Will be either a domain name, sub-domain or IP address").nullable().optional(),
|
|
27
27
|
path: zod.z.string().describe("The path of the URL. This is the part coming after the host and specifies which resource to load").nullable().optional(),
|
|
28
28
|
port: zod.z.number().int().describe("The port of the URL. This is usually 443 for HTTPS and 80 for HTTP unless otherwise specified in the URL").nullable().optional(),
|
|
29
|
-
query: zod.z.
|
|
29
|
+
query: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The query of the URL. Contains a key/value map of any HTTP GET query parameters present in the URL").nullable().optional(),
|
|
30
30
|
protocol: zod.z.string().describe("The protocol of the URL. For a website URL this will be either 'https' or 'http'").nullable().optional()
|
|
31
|
-
}).describe("Model representing the components of a URL.");
|
|
31
|
+
}).passthrough().describe("Model representing the components of a URL.");
|
|
32
32
|
const NeutrinoRunBrowserBotOutput = zod.z.object({
|
|
33
33
|
url: zod.z.string().describe("The requested URL. This may not be the same as the final destination URL, if the URL redirects then it will be set in 'http-redirect-url' and 'is-http-redirect' will also be true").nullable().optional(),
|
|
34
34
|
title: zod.z.string().describe("The document title").nullable().optional(),
|
|
@@ -50,11 +50,11 @@ const NeutrinoRunBrowserBotOutput = zod.z.object({
|
|
|
50
50
|
"server-hostname": zod.z.string().describe("The HTTP servers hostname (PTR/RDNS record)").nullable().optional(),
|
|
51
51
|
"http-status-code": zod.z.number().int().describe("The HTTP status code the URL returned").nullable().optional(),
|
|
52
52
|
"is-http-redirect": zod.z.boolean().describe("True if the URL responded with an HTTP redirect").nullable().optional(),
|
|
53
|
-
"response-headers": zod.z.
|
|
54
|
-
"security-details": zod.z.
|
|
53
|
+
"response-headers": zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map containing all the HTTP response headers the URL responded with").nullable().optional(),
|
|
54
|
+
"security-details": zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map containing details of the TLS/SSL setup").nullable().optional(),
|
|
55
55
|
"http-redirect-url": zod.z.string().describe("The redirected URL if the URL responded with an HTTP redirect").nullable().optional(),
|
|
56
56
|
"http-status-message": zod.z.string().describe("The HTTP status message the URL returned").nullable().optional()
|
|
57
|
-
}).describe("Response model for Browser Bot action.");
|
|
57
|
+
}).passthrough().describe("Response model for Browser Bot action.");
|
|
58
58
|
const neutrinoRunBrowserBot = require_action.action("NEUTRINO_RUN_BROWSER_BOT", {
|
|
59
59
|
slug: "neutrino-run-browser-bot",
|
|
60
60
|
name: "Browser Bot",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-browser-bot.cjs","names":["z","action"],"sources":["../../src/actions/run-browser-bot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoRunBrowserBotInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL to load\"),\n exec: z.array(z.string()).describe(\"Execute JavaScript on the website. This parameter accepts JavaScript as either a string containing JavaScript or for sending multiple separate statements a JSON array. If a statement returns any value it will be returned in the 'exec-results' response. You can also use the following specially defined user interaction functions: sleep(seconds); click('selector'); focus('selector'); keys('characters'); enter(); tab();\").optional(),\n delay: z.number().int().describe(\"Delay in seconds to wait before capturing any page data, executing selectors or JavaScript. Default is 3.\").optional(),\n timeout: z.number().int().describe(\"Timeout in seconds. Give up if still trying to load the page after this number of seconds. Default is 30.\").optional(),\n selector: z.string().describe(\"Extract content from the page DOM using this CSS selector. You can find a good reference at https://www.w3schools.com/cssref/css_selectors.asp\").optional(),\n \"user-agent\": z.string().describe(\"Override the browser's default user-agent string with this one\").optional(),\n \"ignore-certificate-errors\": z.boolean().describe(\"Ignore any TLS/SSL certificate errors and load the page anyway. Default is false.\").optional(),\n}).describe(\"Request model for Browser Bot action.\");\nconst NeutrinoRunBrowserBot_HTMLElementSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The id attribute of the element\").nullable().optional(),\n href: z.string().describe(\"The href attribute of the element\").nullable().optional(),\n html: z.string().describe(\"The HTML content of the element\").nullable().optional(),\n text: z.string().describe(\"The text content of the element\").nullable().optional(),\n \"class\": z.string().describe(\"The class attribute of the element\").nullable().optional(),\n}).describe(\"Model representing an HTML element extracted by a CSS selector.\");\nconst NeutrinoRunBrowserBot_ExecResultSchema: z.ZodTypeAny = z.object({\n result: z.string().describe(\"The result returned by the statement\").nullable().optional(),\n statement: z.string().describe(\"The JavaScript statement that was executed\").nullable().optional(),\n}).describe(\"Model representing the result of executing JavaScript.\");\nconst NeutrinoRunBrowserBot_URLComponentsSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The complete and final URL\").nullable().optional(),\n host: z.string().describe(\"The host of the URL. Will be either a domain name, sub-domain or IP address\").nullable().optional(),\n path: z.string().describe(\"The path of the URL. This is the part coming after the host and specifies which resource to load\").nullable().optional(),\n port: z.number().int().describe(\"The port of the URL. This is usually 443 for HTTPS and 80 for HTTP unless otherwise specified in the URL\").nullable().optional(),\n query: z.object({}).describe(\"The query of the URL. Contains a key/value map of any HTTP GET query parameters present in the URL\").nullable().optional(),\n protocol: z.string().describe(\"The protocol of the URL. For a website URL this will be either 'https' or 'http'\").nullable().optional(),\n}).describe(\"Model representing the components of a URL.\");\nexport const NeutrinoRunBrowserBotOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The requested URL. This may not be the same as the final destination URL, if the URL redirects then it will be set in 'http-redirect-url' and 'is-http-redirect' will also be true\").nullable().optional(),\n title: z.string().describe(\"The document title\").nullable().optional(),\n content: z.string().describe(\"The complete raw, decompressed and decoded page content. Usually will be either HTML, JSON or XML\").nullable().optional(),\n elements: z.array(NeutrinoRunBrowserBot_HTMLElementSchema).describe(\"Array containing all the elements matching the supplied selector\").nullable().optional(),\n \"is-error\": z.boolean().describe(\"True if an error has occurred loading the page. Check the 'error-message' field for details\").nullable().optional(),\n \"is-secure\": z.boolean().describe(\"True if the page is secured using TLS/SSL\").nullable().optional(),\n \"load-time\": z.number().describe(\"The number of seconds taken to load the page (from initial request until DOM ready)\").nullable().optional(),\n \"mime-type\": z.string().describe(\"The document MIME type\").nullable().optional(),\n \"server-ip\": z.string().describe(\"The HTTP servers IP address\").nullable().optional(),\n \"url-valid\": z.boolean().describe(\"True if the URL supplied is valid\").nullable().optional(),\n \"is-http-ok\": z.boolean().describe(\"True if the HTTP status is OK (200)\").nullable().optional(),\n \"is-timeout\": z.boolean().describe(\"True if a timeout occurred while loading the page. You can set the timeout with the request parameter 'timeout'\").nullable().optional(),\n \"content-size\": z.number().int().describe(\"The size of the returned content in bytes\").nullable().optional(),\n \"exec-results\": z.array(NeutrinoRunBrowserBot_ExecResultSchema).describe(\"If you executed any JavaScript this array holds the results as objects\").nullable().optional(),\n \"error-message\": z.string().describe(\"Contains the error message if an error has occurred ('is-error' will be true)\").nullable().optional(),\n \"language-code\": z.string().describe(\"The ISO 2-letter language code of the page. Extracted from either the HTML document or via HTTP headers\").nullable().optional(),\n \"url-components\": NeutrinoRunBrowserBot_URLComponentsSchema.nullable().optional(),\n \"server-hostname\": z.string().describe(\"The HTTP servers hostname (PTR/RDNS record)\").nullable().optional(),\n \"http-status-code\": z.number().int().describe(\"The HTTP status code the URL returned\").nullable().optional(),\n \"is-http-redirect\": z.boolean().describe(\"True if the URL responded with an HTTP redirect\").nullable().optional(),\n \"response-headers\": z.object({}).describe(\"Map containing all the HTTP response headers the URL responded with\").nullable().optional(),\n \"security-details\": z.object({}).describe(\"Map containing details of the TLS/SSL setup\").nullable().optional(),\n \"http-redirect-url\": z.string().describe(\"The redirected URL if the URL responded with an HTTP redirect\").nullable().optional(),\n \"http-status-message\": z.string().describe(\"The HTTP status message the URL returned\").nullable().optional(),\n}).describe(\"Response model for Browser Bot action.\");\n\nexport const neutrinoRunBrowserBot = action(\"NEUTRINO_RUN_BROWSER_BOT\", {\n slug: \"neutrino-run-browser-bot\",\n name: \"Browser Bot\",\n description: \"Tool to automate browser interactions using a real Chromium browser. Use when you need to extract content, fill forms, capture screenshots, or navigate complex JavaScript-heavy websites.\",\n input: NeutrinoRunBrowserBotInput,\n output: NeutrinoRunBrowserBotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS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,CAAC,CAAC,SAAS;CACpK,kBAAkB,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAChF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"run-browser-bot.cjs","names":["z","action"],"sources":["../../src/actions/run-browser-bot.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NeutrinoRunBrowserBotInput = z.object({\n url: z.string().describe(\"The URL to load\"),\n exec: z.array(z.string()).describe(\"Execute JavaScript on the website. This parameter accepts JavaScript as either a string containing JavaScript or for sending multiple separate statements a JSON array. If a statement returns any value it will be returned in the 'exec-results' response. You can also use the following specially defined user interaction functions: sleep(seconds); click('selector'); focus('selector'); keys('characters'); enter(); tab();\").optional(),\n delay: z.number().int().describe(\"Delay in seconds to wait before capturing any page data, executing selectors or JavaScript. Default is 3.\").optional(),\n timeout: z.number().int().describe(\"Timeout in seconds. Give up if still trying to load the page after this number of seconds. Default is 30.\").optional(),\n selector: z.string().describe(\"Extract content from the page DOM using this CSS selector. You can find a good reference at https://www.w3schools.com/cssref/css_selectors.asp\").optional(),\n \"user-agent\": z.string().describe(\"Override the browser's default user-agent string with this one\").optional(),\n \"ignore-certificate-errors\": z.boolean().describe(\"Ignore any TLS/SSL certificate errors and load the page anyway. Default is false.\").optional(),\n}).describe(\"Request model for Browser Bot action.\");\nconst NeutrinoRunBrowserBot_HTMLElementSchema = z.object({\n id: z.string().describe(\"The id attribute of the element\").nullable().optional(),\n href: z.string().describe(\"The href attribute of the element\").nullable().optional(),\n html: z.string().describe(\"The HTML content of the element\").nullable().optional(),\n text: z.string().describe(\"The text content of the element\").nullable().optional(),\n \"class\": z.string().describe(\"The class attribute of the element\").nullable().optional(),\n}).passthrough().describe(\"Model representing an HTML element extracted by a CSS selector.\");\nconst NeutrinoRunBrowserBot_ExecResultSchema = z.object({\n result: z.string().describe(\"The result returned by the statement\").nullable().optional(),\n statement: z.string().describe(\"The JavaScript statement that was executed\").nullable().optional(),\n}).passthrough().describe(\"Model representing the result of executing JavaScript.\");\nconst NeutrinoRunBrowserBot_URLComponentsSchema = z.object({\n url: z.string().describe(\"The complete and final URL\").nullable().optional(),\n host: z.string().describe(\"The host of the URL. Will be either a domain name, sub-domain or IP address\").nullable().optional(),\n path: z.string().describe(\"The path of the URL. This is the part coming after the host and specifies which resource to load\").nullable().optional(),\n port: z.number().int().describe(\"The port of the URL. This is usually 443 for HTTPS and 80 for HTTP unless otherwise specified in the URL\").nullable().optional(),\n query: z.record(z.string(), z.unknown()).describe(\"The query of the URL. Contains a key/value map of any HTTP GET query parameters present in the URL\").nullable().optional(),\n protocol: z.string().describe(\"The protocol of the URL. For a website URL this will be either 'https' or 'http'\").nullable().optional(),\n}).passthrough().describe(\"Model representing the components of a URL.\");\nexport const NeutrinoRunBrowserBotOutput = z.object({\n url: z.string().describe(\"The requested URL. This may not be the same as the final destination URL, if the URL redirects then it will be set in 'http-redirect-url' and 'is-http-redirect' will also be true\").nullable().optional(),\n title: z.string().describe(\"The document title\").nullable().optional(),\n content: z.string().describe(\"The complete raw, decompressed and decoded page content. Usually will be either HTML, JSON or XML\").nullable().optional(),\n elements: z.array(NeutrinoRunBrowserBot_HTMLElementSchema).describe(\"Array containing all the elements matching the supplied selector\").nullable().optional(),\n \"is-error\": z.boolean().describe(\"True if an error has occurred loading the page. Check the 'error-message' field for details\").nullable().optional(),\n \"is-secure\": z.boolean().describe(\"True if the page is secured using TLS/SSL\").nullable().optional(),\n \"load-time\": z.number().describe(\"The number of seconds taken to load the page (from initial request until DOM ready)\").nullable().optional(),\n \"mime-type\": z.string().describe(\"The document MIME type\").nullable().optional(),\n \"server-ip\": z.string().describe(\"The HTTP servers IP address\").nullable().optional(),\n \"url-valid\": z.boolean().describe(\"True if the URL supplied is valid\").nullable().optional(),\n \"is-http-ok\": z.boolean().describe(\"True if the HTTP status is OK (200)\").nullable().optional(),\n \"is-timeout\": z.boolean().describe(\"True if a timeout occurred while loading the page. You can set the timeout with the request parameter 'timeout'\").nullable().optional(),\n \"content-size\": z.number().int().describe(\"The size of the returned content in bytes\").nullable().optional(),\n \"exec-results\": z.array(NeutrinoRunBrowserBot_ExecResultSchema).describe(\"If you executed any JavaScript this array holds the results as objects\").nullable().optional(),\n \"error-message\": z.string().describe(\"Contains the error message if an error has occurred ('is-error' will be true)\").nullable().optional(),\n \"language-code\": z.string().describe(\"The ISO 2-letter language code of the page. Extracted from either the HTML document or via HTTP headers\").nullable().optional(),\n \"url-components\": NeutrinoRunBrowserBot_URLComponentsSchema.nullable().optional(),\n \"server-hostname\": z.string().describe(\"The HTTP servers hostname (PTR/RDNS record)\").nullable().optional(),\n \"http-status-code\": z.number().int().describe(\"The HTTP status code the URL returned\").nullable().optional(),\n \"is-http-redirect\": z.boolean().describe(\"True if the URL responded with an HTTP redirect\").nullable().optional(),\n \"response-headers\": z.record(z.string(), z.unknown()).describe(\"Map containing all the HTTP response headers the URL responded with\").nullable().optional(),\n \"security-details\": z.record(z.string(), z.unknown()).describe(\"Map containing details of the TLS/SSL setup\").nullable().optional(),\n \"http-redirect-url\": z.string().describe(\"The redirected URL if the URL responded with an HTTP redirect\").nullable().optional(),\n \"http-status-message\": z.string().describe(\"The HTTP status message the URL returned\").nullable().optional(),\n}).passthrough().describe(\"Response model for Browser Bot action.\");\n\nexport const neutrinoRunBrowserBot = action(\"NEUTRINO_RUN_BROWSER_BOT\", {\n slug: \"neutrino-run-browser-bot\",\n name: \"Browser Bot\",\n description: \"Tool to automate browser interactions using a real Chromium browser. Use when you need to extract content, fill forms, capture screenshots, or navigate complex JavaScript-heavy websites.\",\n input: NeutrinoRunBrowserBotInput,\n output: NeutrinoRunBrowserBotOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC1C,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qaAAqa,CAAC,CAAC,SAAS;CACnd,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACvJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACzJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CACzL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC7G,6BAA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AS;CAChH,oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,oBAAoBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,66 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/run-browser-bot.d.ts
|
|
4
|
-
declare const NeutrinoRunBrowserBotInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeutrinoRunBrowserBotInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
exec: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
selector: z.ZodOptional<z.ZodString>;
|
|
10
|
+
"user-agent": z.ZodOptional<z.ZodString>;
|
|
11
|
+
"ignore-certificate-errors": z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const NeutrinoRunBrowserBotOutput: z.ZodObject<{
|
|
14
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
elements: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
|
+
"is-error": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
|
+
"is-secure": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
"load-time": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
"mime-type": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
"server-ip": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
"url-valid": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
|
+
"is-http-ok": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
|
+
"is-timeout": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
32
|
+
"content-size": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
"exec-results": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
34
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
statement: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
}, z.core.$loose>>>>;
|
|
37
|
+
"error-message": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
"language-code": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
"url-components": z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
host: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
port: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
45
|
+
protocol: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
|
+
"server-hostname": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
"http-status-code": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
"is-http-redirect": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
50
|
+
"response-headers": z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
|
+
"security-details": z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
52
|
+
"http-redirect-url": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
"http-status-message": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
}, z.core.$loose>;
|
|
55
|
+
declare const neutrinoRunBrowserBot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
56
|
+
url: string;
|
|
57
|
+
exec?: string[] | undefined;
|
|
58
|
+
delay?: number | undefined;
|
|
59
|
+
timeout?: number | undefined;
|
|
60
|
+
selector?: string | undefined;
|
|
61
|
+
"user-agent"?: string | undefined;
|
|
62
|
+
"ignore-certificate-errors"?: boolean | undefined;
|
|
63
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
64
|
//#endregion
|
|
8
65
|
export { neutrinoRunBrowserBot };
|
|
9
66
|
//# sourceMappingURL=run-browser-bot.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-browser-bot.d.cts","names":[],"sources":["../../src/actions/run-browser-bot.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"run-browser-bot.d.cts","names":[],"sources":["../../src/actions/run-browser-bot.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;cA4B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,66 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/run-browser-bot.d.ts
|
|
4
|
-
declare const NeutrinoRunBrowserBotInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NeutrinoRunBrowserBotInput: z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
exec: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
delay: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
selector: z.ZodOptional<z.ZodString>;
|
|
10
|
+
"user-agent": z.ZodOptional<z.ZodString>;
|
|
11
|
+
"ignore-certificate-errors": z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
}, z.core.$strip>;
|
|
13
|
+
declare const NeutrinoRunBrowserBotOutput: z.ZodObject<{
|
|
14
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
elements: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
18
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$loose>>>>;
|
|
24
|
+
"is-error": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
25
|
+
"is-secure": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
26
|
+
"load-time": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
"mime-type": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
"server-ip": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
"url-valid": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
|
+
"is-http-ok": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
31
|
+
"is-timeout": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
32
|
+
"content-size": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
33
|
+
"exec-results": z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
34
|
+
result: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
statement: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
}, z.core.$loose>>>>;
|
|
37
|
+
"error-message": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
38
|
+
"language-code": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
"url-components": z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
40
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
host: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
43
|
+
port: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
+
query: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
45
|
+
protocol: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
+
}, z.core.$loose>>>;
|
|
47
|
+
"server-hostname": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
"http-status-code": z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
49
|
+
"is-http-redirect": z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
50
|
+
"response-headers": z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
51
|
+
"security-details": z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
52
|
+
"http-redirect-url": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
"http-status-message": z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
|
+
}, z.core.$loose>;
|
|
55
|
+
declare const neutrinoRunBrowserBot: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
56
|
+
url: string;
|
|
57
|
+
exec?: string[] | undefined;
|
|
58
|
+
delay?: number | undefined;
|
|
59
|
+
timeout?: number | undefined;
|
|
60
|
+
selector?: string | undefined;
|
|
61
|
+
"user-agent"?: string | undefined;
|
|
62
|
+
"ignore-certificate-errors"?: boolean | undefined;
|
|
63
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
64
|
//#endregion
|
|
8
65
|
export { neutrinoRunBrowserBot };
|
|
9
66
|
//# sourceMappingURL=run-browser-bot.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-browser-bot.d.mts","names":[],"sources":["../../src/actions/run-browser-bot.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"run-browser-bot.d.mts","names":[],"sources":["../../src/actions/run-browser-bot.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;cA4B1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2B3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -16,19 +16,19 @@ const NeutrinoRunBrowserBot_HTMLElementSchema = z.object({
|
|
|
16
16
|
html: z.string().describe("The HTML content of the element").nullable().optional(),
|
|
17
17
|
text: z.string().describe("The text content of the element").nullable().optional(),
|
|
18
18
|
"class": z.string().describe("The class attribute of the element").nullable().optional()
|
|
19
|
-
}).describe("Model representing an HTML element extracted by a CSS selector.");
|
|
19
|
+
}).passthrough().describe("Model representing an HTML element extracted by a CSS selector.");
|
|
20
20
|
const NeutrinoRunBrowserBot_ExecResultSchema = z.object({
|
|
21
21
|
result: z.string().describe("The result returned by the statement").nullable().optional(),
|
|
22
22
|
statement: z.string().describe("The JavaScript statement that was executed").nullable().optional()
|
|
23
|
-
}).describe("Model representing the result of executing JavaScript.");
|
|
23
|
+
}).passthrough().describe("Model representing the result of executing JavaScript.");
|
|
24
24
|
const NeutrinoRunBrowserBot_URLComponentsSchema = z.object({
|
|
25
25
|
url: z.string().describe("The complete and final URL").nullable().optional(),
|
|
26
26
|
host: z.string().describe("The host of the URL. Will be either a domain name, sub-domain or IP address").nullable().optional(),
|
|
27
27
|
path: z.string().describe("The path of the URL. This is the part coming after the host and specifies which resource to load").nullable().optional(),
|
|
28
28
|
port: z.number().int().describe("The port of the URL. This is usually 443 for HTTPS and 80 for HTTP unless otherwise specified in the URL").nullable().optional(),
|
|
29
|
-
query: z.
|
|
29
|
+
query: z.record(z.string(), z.unknown()).describe("The query of the URL. Contains a key/value map of any HTTP GET query parameters present in the URL").nullable().optional(),
|
|
30
30
|
protocol: z.string().describe("The protocol of the URL. For a website URL this will be either 'https' or 'http'").nullable().optional()
|
|
31
|
-
}).describe("Model representing the components of a URL.");
|
|
31
|
+
}).passthrough().describe("Model representing the components of a URL.");
|
|
32
32
|
const neutrinoRunBrowserBot = action("NEUTRINO_RUN_BROWSER_BOT", {
|
|
33
33
|
slug: "neutrino-run-browser-bot",
|
|
34
34
|
name: "Browser Bot",
|
|
@@ -55,11 +55,11 @@ const neutrinoRunBrowserBot = action("NEUTRINO_RUN_BROWSER_BOT", {
|
|
|
55
55
|
"server-hostname": z.string().describe("The HTTP servers hostname (PTR/RDNS record)").nullable().optional(),
|
|
56
56
|
"http-status-code": z.number().int().describe("The HTTP status code the URL returned").nullable().optional(),
|
|
57
57
|
"is-http-redirect": z.boolean().describe("True if the URL responded with an HTTP redirect").nullable().optional(),
|
|
58
|
-
"response-headers": z.
|
|
59
|
-
"security-details": z.
|
|
58
|
+
"response-headers": z.record(z.string(), z.unknown()).describe("Map containing all the HTTP response headers the URL responded with").nullable().optional(),
|
|
59
|
+
"security-details": z.record(z.string(), z.unknown()).describe("Map containing details of the TLS/SSL setup").nullable().optional(),
|
|
60
60
|
"http-redirect-url": z.string().describe("The redirected URL if the URL responded with an HTTP redirect").nullable().optional(),
|
|
61
61
|
"http-status-message": z.string().describe("The HTTP status message the URL returned").nullable().optional()
|
|
62
|
-
}).describe("Response model for Browser Bot action.")
|
|
62
|
+
}).passthrough().describe("Response model for Browser Bot action.")
|
|
63
63
|
});
|
|
64
64
|
//#endregion
|
|
65
65
|
export { neutrinoRunBrowserBot };
|