@keystrokehq/mx_toolbox 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/index.cjs +27 -0
- package/dist/actions/index.d.cts +14 -0
- package/dist/actions/index.d.mts +14 -0
- package/dist/actions/index.mjs +14 -0
- package/dist/actions/lookup-bimi-record.cjs +87 -0
- package/dist/actions/lookup-bimi-record.cjs.map +1 -0
- package/dist/actions/lookup-bimi-record.d.cts +9 -0
- package/dist/actions/lookup-bimi-record.d.cts.map +1 -0
- package/dist/actions/lookup-bimi-record.d.mts +9 -0
- package/dist/actions/lookup-bimi-record.d.mts.map +1 -0
- package/dist/actions/lookup-bimi-record.mjs +86 -0
- package/dist/actions/lookup-bimi-record.mjs.map +1 -0
- package/dist/actions/lookup-blacklist.cjs +58 -0
- package/dist/actions/lookup-blacklist.cjs.map +1 -0
- package/dist/actions/lookup-blacklist.d.cts +9 -0
- package/dist/actions/lookup-blacklist.d.cts.map +1 -0
- package/dist/actions/lookup-blacklist.d.mts +9 -0
- package/dist/actions/lookup-blacklist.d.mts.map +1 -0
- package/dist/actions/lookup-blacklist.mjs +57 -0
- package/dist/actions/lookup-blacklist.mjs.map +1 -0
- package/dist/actions/lookup-dkim.cjs +69 -0
- package/dist/actions/lookup-dkim.cjs.map +1 -0
- package/dist/actions/lookup-dkim.d.cts +9 -0
- package/dist/actions/lookup-dkim.d.cts.map +1 -0
- package/dist/actions/lookup-dkim.d.mts +9 -0
- package/dist/actions/lookup-dkim.d.mts.map +1 -0
- package/dist/actions/lookup-dkim.mjs +68 -0
- package/dist/actions/lookup-dkim.mjs.map +1 -0
- package/dist/actions/lookup-dmarc.cjs +39 -0
- package/dist/actions/lookup-dmarc.cjs.map +1 -0
- package/dist/actions/lookup-dmarc.d.cts +9 -0
- package/dist/actions/lookup-dmarc.d.cts.map +1 -0
- package/dist/actions/lookup-dmarc.d.mts +9 -0
- package/dist/actions/lookup-dmarc.d.mts.map +1 -0
- package/dist/actions/lookup-dmarc.mjs +38 -0
- package/dist/actions/lookup-dmarc.mjs.map +1 -0
- package/dist/actions/lookup-dns.cjs +42 -0
- package/dist/actions/lookup-dns.cjs.map +1 -0
- package/dist/actions/lookup-dns.d.cts +9 -0
- package/dist/actions/lookup-dns.d.cts.map +1 -0
- package/dist/actions/lookup-dns.d.mts +9 -0
- package/dist/actions/lookup-dns.d.mts.map +1 -0
- package/dist/actions/lookup-dns.mjs +41 -0
- package/dist/actions/lookup-dns.mjs.map +1 -0
- package/dist/actions/lookup-http.cjs +30 -0
- package/dist/actions/lookup-http.cjs.map +1 -0
- package/dist/actions/lookup-http.d.cts +9 -0
- package/dist/actions/lookup-http.d.cts.map +1 -0
- package/dist/actions/lookup-http.d.mts +9 -0
- package/dist/actions/lookup-http.d.mts.map +1 -0
- package/dist/actions/lookup-http.mjs +29 -0
- package/dist/actions/lookup-http.mjs.map +1 -0
- package/dist/actions/lookup-mta-sts-record.cjs +37 -0
- package/dist/actions/lookup-mta-sts-record.cjs.map +1 -0
- package/dist/actions/lookup-mta-sts-record.d.cts +9 -0
- package/dist/actions/lookup-mta-sts-record.d.cts.map +1 -0
- package/dist/actions/lookup-mta-sts-record.d.mts +9 -0
- package/dist/actions/lookup-mta-sts-record.d.mts.map +1 -0
- package/dist/actions/lookup-mta-sts-record.mjs +36 -0
- package/dist/actions/lookup-mta-sts-record.mjs.map +1 -0
- package/dist/actions/lookup-mx.cjs +24 -0
- package/dist/actions/lookup-mx.cjs.map +1 -0
- package/dist/actions/lookup-mx.d.cts +9 -0
- package/dist/actions/lookup-mx.d.cts.map +1 -0
- package/dist/actions/lookup-mx.d.mts +9 -0
- package/dist/actions/lookup-mx.d.mts.map +1 -0
- package/dist/actions/lookup-mx.mjs +23 -0
- package/dist/actions/lookup-mx.mjs.map +1 -0
- package/dist/actions/lookup-ping.cjs +58 -0
- package/dist/actions/lookup-ping.cjs.map +1 -0
- package/dist/actions/lookup-ping.d.cts +9 -0
- package/dist/actions/lookup-ping.d.cts.map +1 -0
- package/dist/actions/lookup-ping.d.mts +9 -0
- package/dist/actions/lookup-ping.d.mts.map +1 -0
- package/dist/actions/lookup-ping.mjs +57 -0
- package/dist/actions/lookup-ping.mjs.map +1 -0
- package/dist/actions/lookup-smtp.cjs +41 -0
- package/dist/actions/lookup-smtp.cjs.map +1 -0
- package/dist/actions/lookup-smtp.d.cts +9 -0
- package/dist/actions/lookup-smtp.d.cts.map +1 -0
- package/dist/actions/lookup-smtp.d.mts +9 -0
- package/dist/actions/lookup-smtp.d.mts.map +1 -0
- package/dist/actions/lookup-smtp.mjs +40 -0
- package/dist/actions/lookup-smtp.mjs.map +1 -0
- package/dist/actions/lookup-spf.cjs +82 -0
- package/dist/actions/lookup-spf.cjs.map +1 -0
- package/dist/actions/lookup-spf.d.cts +9 -0
- package/dist/actions/lookup-spf.d.cts.map +1 -0
- package/dist/actions/lookup-spf.d.mts +9 -0
- package/dist/actions/lookup-spf.d.mts.map +1 -0
- package/dist/actions/lookup-spf.mjs +81 -0
- package/dist/actions/lookup-spf.mjs.map +1 -0
- package/dist/actions/monitor-status.cjs +30 -0
- package/dist/actions/monitor-status.cjs.map +1 -0
- package/dist/actions/monitor-status.d.cts +9 -0
- package/dist/actions/monitor-status.d.cts.map +1 -0
- package/dist/actions/monitor-status.d.mts +9 -0
- package/dist/actions/monitor-status.d.mts.map +1 -0
- package/dist/actions/monitor-status.mjs +29 -0
- package/dist/actions/monitor-status.mjs.map +1 -0
- package/dist/actions/usage-check.cjs +23 -0
- package/dist/actions/usage-check.cjs.map +1 -0
- package/dist/actions/usage-check.d.cts +9 -0
- package/dist/actions/usage-check.d.cts.map +1 -0
- package/dist/actions/usage-check.d.mts +9 -0
- package/dist/actions/usage-check.d.mts.map +1 -0
- package/dist/actions/usage-check.mjs +20 -0
- package/dist/actions/usage-check.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 +32 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.mjs +17 -0
- package/package.json +49 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/lookup-smtp.ts
|
|
4
|
+
const MxToolboxLookupSmtpInput = z.object({ domain: z.string().describe("Domain to perform SMTP test on (must be a valid hostname, e.g. 'google.com')") }).describe("Parameters for SMTP lookup.");
|
|
5
|
+
const MxToolboxLookupSmtp_DiagnosticCheckSchema = z.object({
|
|
6
|
+
ID: z.number().int().describe("Unique identifier for the check"),
|
|
7
|
+
Url: z.string().describe("URL for more information").nullable().optional(),
|
|
8
|
+
Info: z.string().describe("Description or details of the check result"),
|
|
9
|
+
Name: z.string().describe("Name of the diagnostic check"),
|
|
10
|
+
IsExcludedByUser: z.boolean().describe("Whether user has excluded this check").nullable().optional(),
|
|
11
|
+
PublicDescription: z.string().describe("Public description of the issue").nullable().optional()
|
|
12
|
+
}).describe("Represents a diagnostic check result (warning, passed test, failed test, timeout, error, etc.)");
|
|
13
|
+
const mxToolboxLookupSmtp = action("MX_TOOLBOX_LOOKUP_SMTP", {
|
|
14
|
+
slug: "mx_toolbox-lookup-smtp",
|
|
15
|
+
name: "SMTP Lookup",
|
|
16
|
+
description: "Tool to perform an SMTP connectivity test on a domain. Returns diagnostic results including connection status, DNS checks, TLS support, and other email deliverability indicators. Use when verifying SMTP server configuration or troubleshooting email delivery issues for a domain.",
|
|
17
|
+
input: MxToolboxLookupSmtpInput,
|
|
18
|
+
output: z.object({
|
|
19
|
+
UID: z.string().describe("Unique identifier for the lookup").nullable().optional(),
|
|
20
|
+
Errors: z.array(MxToolboxLookupSmtp_DiagnosticCheckSchema).describe("Error diagnostic checks").nullable().optional(),
|
|
21
|
+
Failed: z.array(MxToolboxLookupSmtp_DiagnosticCheckSchema).describe("Failed diagnostic checks").nullable().optional(),
|
|
22
|
+
Passed: z.array(MxToolboxLookupSmtp_DiagnosticCheckSchema).describe("Passed diagnostic checks").nullable().optional(),
|
|
23
|
+
Command: z.string().describe("Command executed (e.g., 'smtp')"),
|
|
24
|
+
IsError: z.boolean().describe("Whether the lookup encountered an error"),
|
|
25
|
+
Timeouts: z.array(MxToolboxLookupSmtp_DiagnosticCheckSchema).describe("Timeout diagnostic checks").nullable().optional(),
|
|
26
|
+
Warnings: z.array(MxToolboxLookupSmtp_DiagnosticCheckSchema).describe("Warning diagnostic checks").nullable().optional(),
|
|
27
|
+
Transcript: z.array(z.record(z.string(), z.unknown())).describe("Detailed transcript of SMTP session").nullable().optional(),
|
|
28
|
+
Information: z.array(z.record(z.string(), z.unknown())).describe("General information from SMTP test (e.g., banner messages)").nullable().optional(),
|
|
29
|
+
ArgumentType: z.string().describe("Type of argument (e.g., 'domain')"),
|
|
30
|
+
TimeRecorded: z.string().describe("Timestamp of the lookup"),
|
|
31
|
+
RelatedLookups: z.array(z.object({})).describe("Related lookup suggestions").nullable().optional(),
|
|
32
|
+
TimeToComplete: z.string().describe("Time taken to complete lookup in ms"),
|
|
33
|
+
CommandArgument: z.string().describe("The domain that was queried"),
|
|
34
|
+
ReportingNameServer: z.string().describe("Name server that reported the results").nullable().optional()
|
|
35
|
+
}).passthrough().describe("Response model for SMTP lookup action containing complete diagnostic results.\nInherits all fields from SMTPData including UID, Command, Failed, Warnings, Passed,\nTimeouts, Errors, Information, Transcript, and related lookups.")
|
|
36
|
+
});
|
|
37
|
+
//#endregion
|
|
38
|
+
export { mxToolboxLookupSmtp };
|
|
39
|
+
|
|
40
|
+
//# sourceMappingURL=lookup-smtp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-smtp.mjs","names":[],"sources":["../../src/actions/lookup-smtp.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxToolboxLookupSmtpInput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"Domain to perform SMTP test on (must be a valid hostname, e.g. 'google.com')\"),\n}).describe(\"Parameters for SMTP lookup.\");\nconst MxToolboxLookupSmtp_DiagnosticCheckSchema: z.ZodTypeAny = z.object({\n ID: z.number().int().describe(\"Unique identifier for the check\"),\n Url: z.string().describe(\"URL for more information\").nullable().optional(),\n Info: z.string().describe(\"Description or details of the check result\"),\n Name: z.string().describe(\"Name of the diagnostic check\"),\n IsExcludedByUser: z.boolean().describe(\"Whether user has excluded this check\").nullable().optional(),\n PublicDescription: z.string().describe(\"Public description of the issue\").nullable().optional(),\n}).describe(\"Represents a diagnostic check result (warning, passed test, failed test, timeout, error, etc.)\");\nexport const MxToolboxLookupSmtpOutput: z.ZodTypeAny = z.object({\n UID: z.string().describe(\"Unique identifier for the lookup\").nullable().optional(),\n Errors: z.array(MxToolboxLookupSmtp_DiagnosticCheckSchema).describe(\"Error diagnostic checks\").nullable().optional(),\n Failed: z.array(MxToolboxLookupSmtp_DiagnosticCheckSchema).describe(\"Failed diagnostic checks\").nullable().optional(),\n Passed: z.array(MxToolboxLookupSmtp_DiagnosticCheckSchema).describe(\"Passed diagnostic checks\").nullable().optional(),\n Command: z.string().describe(\"Command executed (e.g., 'smtp')\"),\n IsError: z.boolean().describe(\"Whether the lookup encountered an error\"),\n Timeouts: z.array(MxToolboxLookupSmtp_DiagnosticCheckSchema).describe(\"Timeout diagnostic checks\").nullable().optional(),\n Warnings: z.array(MxToolboxLookupSmtp_DiagnosticCheckSchema).describe(\"Warning diagnostic checks\").nullable().optional(),\n Transcript: z.array(z.record(z.string(), z.unknown())).describe(\"Detailed transcript of SMTP session\").nullable().optional(),\n Information: z.array(z.record(z.string(), z.unknown())).describe(\"General information from SMTP test (e.g., banner messages)\").nullable().optional(),\n ArgumentType: z.string().describe(\"Type of argument (e.g., 'domain')\"),\n TimeRecorded: z.string().describe(\"Timestamp of the lookup\"),\n RelatedLookups: z.array(z.object({})).describe(\"Related lookup suggestions\").nullable().optional(),\n TimeToComplete: z.string().describe(\"Time taken to complete lookup in ms\"),\n CommandArgument: z.string().describe(\"The domain that was queried\"),\n ReportingNameServer: z.string().describe(\"Name server that reported the results\").nullable().optional(),\n}).passthrough().describe(\"Response model for SMTP lookup action containing complete diagnostic results.\\nInherits all fields from SMTPData including UID, Command, Failed, Warnings, Passed,\\nTimeouts, Errors, Information, Transcript, and related lookups.\");\n\nexport const mxToolboxLookupSmtp = action(\"MX_TOOLBOX_LOOKUP_SMTP\", {\n slug: \"mx_toolbox-lookup-smtp\",\n name: \"SMTP Lookup\",\n description: \"Tool to perform an SMTP connectivity test on a domain. Returns diagnostic results including connection status, DNS checks, TLS support, and other email deliverability indicators. Use when verifying SMTP server configuration or troubleshooting email delivery issues for a domain.\",\n input: MxToolboxLookupSmtpInput,\n output: MxToolboxLookupSmtpOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO,EAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,EAC5G,CAAC,CAAC,CAAC,SAAS,6BAA6B;AACzC,MAAM,4CAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAA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AO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACrE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EAC3D,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;EACzE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;EAClE,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qOAOhB;AACV,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/lookup-spf.ts
|
|
4
|
+
const MxToolboxLookupSpfInput = zod.z.object({ domain: zod.z.string().describe("The domain to perform the SPF lookup on. Must be a bare hostname with no protocol prefix (e.g., not 'https://example.com') or path suffixes.") });
|
|
5
|
+
const MxToolboxLookupSpf_LookupSpfCheckResultSchema = zod.z.object({
|
|
6
|
+
ID: zod.z.number().int().describe("Unique identifier for the check."),
|
|
7
|
+
Url: zod.z.string().describe("URL to more information about this check."),
|
|
8
|
+
Info: zod.z.string().describe("Information about the check result."),
|
|
9
|
+
Name: zod.z.string().describe("Name of the SPF check performed."),
|
|
10
|
+
IsExcludedByUser: zod.z.boolean().describe("Whether this check is excluded by the user."),
|
|
11
|
+
PublicDescription: zod.z.string().describe("Public description if available.").nullable().optional()
|
|
12
|
+
});
|
|
13
|
+
const MxToolboxLookupSpf_LookupSpfTranscriptSchema = zod.z.object({ Transcript: zod.z.string().describe("Detailed transcript of the SPF lookup process.") });
|
|
14
|
+
const MxToolboxLookupSpf_LookupSpfInformationItemSchema = zod.z.object({
|
|
15
|
+
Type: zod.z.string().describe("The SPF mechanism type (e.g., 'v', 'include', 'all', 'record')."),
|
|
16
|
+
Value: zod.z.string().describe("The value associated with the mechanism."),
|
|
17
|
+
Prefix: zod.z.string().describe("The SPF mechanism prefix (e.g., '+', '-', '~', '?')."),
|
|
18
|
+
RecordNum: zod.z.string().describe("Record number if applicable.").nullable().optional(),
|
|
19
|
+
PrefixDesc: zod.z.string().describe("Human-readable description of the prefix (e.g., 'Pass', 'SoftFail')."),
|
|
20
|
+
Description: zod.z.string().describe("Detailed description of the SPF mechanism.")
|
|
21
|
+
});
|
|
22
|
+
const MxToolboxLookupSpf_LookupSpfRelatedLookupSchema = zod.z.object({
|
|
23
|
+
URL: zod.z.string().describe("URL to perform the related lookup."),
|
|
24
|
+
Name: zod.z.string().describe("Name of the related lookup."),
|
|
25
|
+
Command: zod.z.string().describe("Command type for the related lookup."),
|
|
26
|
+
CommandArgument: zod.z.string().describe("Argument for the related lookup command.")
|
|
27
|
+
});
|
|
28
|
+
const MxToolboxLookupSpf_LookupSpfSubactionDetailSchema = zod.z.object({
|
|
29
|
+
Void_lookups: zod.z.array(zod.z.string()).describe("List of void lookups found.").nullable().optional(),
|
|
30
|
+
Recursive_Paths: zod.z.array(zod.z.string()).describe("Recursive paths found.").nullable().optional(),
|
|
31
|
+
Included_Lookups: zod.z.array(zod.z.string()).describe("List of included lookups.").nullable().optional(),
|
|
32
|
+
Invalid_Includes: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).nullable().optional(),
|
|
33
|
+
Modifier_Ignored: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).nullable().optional(),
|
|
34
|
+
Invalid_Redirects: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).nullable().optional(),
|
|
35
|
+
Duplicate_Includes: zod.z.union([zod.z.string(), zod.z.array(zod.z.string())]).nullable().optional(),
|
|
36
|
+
MX_Resource_Records: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
|
|
37
|
+
Deprecated_SPF_Records: zod.z.array(zod.z.string()).describe("Deprecated SPF records found.").nullable().optional()
|
|
38
|
+
});
|
|
39
|
+
const MxToolboxLookupSpfOutput = zod.z.object({
|
|
40
|
+
UID: zod.z.string().describe("Unique identifier for the lookup.").nullable().optional(),
|
|
41
|
+
MxRep: zod.z.number().int().describe("MX reputation score."),
|
|
42
|
+
Errors: zod.z.array(zod.z.string()).describe("List of errors if any."),
|
|
43
|
+
Failed: zod.z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe("List of failed checks."),
|
|
44
|
+
Passed: zod.z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe("List of passed checks."),
|
|
45
|
+
Command: zod.z.string().describe("Command executed (e.g., 'spf')."),
|
|
46
|
+
IsError: zod.z.boolean().describe("Whether an error occurred."),
|
|
47
|
+
Records: zod.z.array(zod.z.string()).describe("List of SPF records found."),
|
|
48
|
+
Timeouts: zod.z.array(zod.z.string()).describe("List of timeouts if any."),
|
|
49
|
+
Warnings: zod.z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe("List of warning checks."),
|
|
50
|
+
RelatedIP: zod.z.string().describe("Related IP address if applicable.").nullable().optional(),
|
|
51
|
+
CustomData: zod.z.string().describe("Custom data if any.").nullable().optional(),
|
|
52
|
+
IsEndpoint: zod.z.boolean().describe("Whether this is an endpoint."),
|
|
53
|
+
Transcript: zod.z.array(MxToolboxLookupSpf_LookupSpfTranscriptSchema).describe("Detailed transcript of the lookup process."),
|
|
54
|
+
Information: zod.z.array(MxToolboxLookupSpf_LookupSpfInformationItemSchema).describe("Detailed information about the SPF record components."),
|
|
55
|
+
ArgumentType: zod.z.string().describe("Type of argument (e.g., 'domain')."),
|
|
56
|
+
TimeRecorded: zod.z.string().describe("Timestamp when the lookup was recorded."),
|
|
57
|
+
IsTransitioned: zod.z.boolean().describe("Whether the lookup has transitioned."),
|
|
58
|
+
RelatedLookups: zod.z.array(MxToolboxLookupSpf_LookupSpfRelatedLookupSchema).describe("List of related lookups that can be performed."),
|
|
59
|
+
TimeToComplete: zod.z.string().describe("Time taken to complete the lookup in milliseconds."),
|
|
60
|
+
CommandArgument: zod.z.string().describe("The domain that was looked up."),
|
|
61
|
+
HasSubscriptions: zod.z.boolean().describe("Whether there are subscriptions."),
|
|
62
|
+
IsEmptySubDomain: zod.z.boolean().describe("Whether the subdomain is empty."),
|
|
63
|
+
MultiInformation: zod.z.array(MxToolboxLookupSpf_LookupSpfInformationItemSchema).describe("Multi-information if applicable."),
|
|
64
|
+
DnsServiceProvider: zod.z.string().describe("DNS service provider if detected.").nullable().optional(),
|
|
65
|
+
ResourceRecordType: zod.z.number().int().describe("DNS resource record type number."),
|
|
66
|
+
ReportingNameServer: zod.z.string().describe("Name server that reported the result."),
|
|
67
|
+
EmailServiceProvider: zod.z.string().describe("Email service provider if detected.").nullable().optional(),
|
|
68
|
+
SPF_Subaction_Detail: MxToolboxLookupSpf_LookupSpfSubactionDetailSchema.nullable(),
|
|
69
|
+
AlertgroupSubscriptionId: zod.z.string().describe("Alert group subscription ID if any.").nullable().optional(),
|
|
70
|
+
DnsServiceProviderIdentifier: zod.z.string().describe("DNS service provider identifier if applicable.").nullable().optional()
|
|
71
|
+
}).describe("SPF lookup response containing complete SPF record data and validation results.\nThe API returns the SPF data directly without a wrapper.");
|
|
72
|
+
const mxToolboxLookupSpf = require_action.action("MX_TOOLBOX_LOOKUP_SPF", {
|
|
73
|
+
slug: "mx_toolbox-lookup-spf",
|
|
74
|
+
name: "Lookup SPF Record",
|
|
75
|
+
description: "Tool to retrieve SPF records for a specified domain. Use when confirming email sender authorization policies.",
|
|
76
|
+
input: MxToolboxLookupSpfInput,
|
|
77
|
+
output: MxToolboxLookupSpfOutput
|
|
78
|
+
});
|
|
79
|
+
//#endregion
|
|
80
|
+
exports.mxToolboxLookupSpf = mxToolboxLookupSpf;
|
|
81
|
+
|
|
82
|
+
//# sourceMappingURL=lookup-spf.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-spf.cjs","names":["z","action"],"sources":["../../src/actions/lookup-spf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxToolboxLookupSpfInput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"The domain to perform the SPF lookup on. Must be a bare hostname with no protocol prefix (e.g., not 'https://example.com') or path suffixes.\"),\n});\nconst MxToolboxLookupSpf_LookupSpfCheckResultSchema: z.ZodTypeAny = z.object({\n ID: z.number().int().describe(\"Unique identifier for the check.\"),\n Url: z.string().describe(\"URL to more information about this check.\"),\n Info: z.string().describe(\"Information about the check result.\"),\n Name: z.string().describe(\"Name of the SPF check performed.\"),\n IsExcludedByUser: z.boolean().describe(\"Whether this check is excluded by the user.\"),\n PublicDescription: z.string().describe(\"Public description if available.\").nullable().optional(),\n});\nconst MxToolboxLookupSpf_LookupSpfTranscriptSchema: z.ZodTypeAny = z.object({\n Transcript: z.string().describe(\"Detailed transcript of the SPF lookup process.\"),\n});\nconst MxToolboxLookupSpf_LookupSpfInformationItemSchema: z.ZodTypeAny = z.object({\n Type: z.string().describe(\"The SPF mechanism type (e.g., 'v', 'include', 'all', 'record').\"),\n Value: z.string().describe(\"The value associated with the mechanism.\"),\n Prefix: z.string().describe(\"The SPF mechanism prefix (e.g., '+', '-', '~', '?').\"),\n RecordNum: z.string().describe(\"Record number if applicable.\").nullable().optional(),\n PrefixDesc: z.string().describe(\"Human-readable description of the prefix (e.g., 'Pass', 'SoftFail').\"),\n Description: z.string().describe(\"Detailed description of the SPF mechanism.\"),\n});\nconst MxToolboxLookupSpf_LookupSpfRelatedLookupSchema: z.ZodTypeAny = z.object({\n URL: z.string().describe(\"URL to perform the related lookup.\"),\n Name: z.string().describe(\"Name of the related lookup.\"),\n Command: z.string().describe(\"Command type for the related lookup.\"),\n CommandArgument: z.string().describe(\"Argument for the related lookup command.\"),\n});\nconst MxToolboxLookupSpf_LookupSpfSubactionDetailSchema: z.ZodTypeAny = z.object({\n Void_lookups: z.array(z.string()).describe(\"List of void lookups found.\").nullable().optional(),\n Recursive_Paths: z.array(z.string()).describe(\"Recursive paths found.\").nullable().optional(),\n Included_Lookups: z.array(z.string()).describe(\"List of included lookups.\").nullable().optional(),\n Invalid_Includes: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n Modifier_Ignored: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n Invalid_Redirects: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n Duplicate_Includes: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n MX_Resource_Records: z.union([z.string(), z.number().int()]).nullable().optional(),\n Deprecated_SPF_Records: z.array(z.string()).describe(\"Deprecated SPF records found.\").nullable().optional(),\n});\nexport const MxToolboxLookupSpfOutput: z.ZodTypeAny = z.object({\n UID: z.string().describe(\"Unique identifier for the lookup.\").nullable().optional(),\n MxRep: z.number().int().describe(\"MX reputation score.\"),\n Errors: z.array(z.string()).describe(\"List of errors if any.\"),\n Failed: z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe(\"List of failed checks.\"),\n Passed: z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe(\"List of passed checks.\"),\n Command: z.string().describe(\"Command executed (e.g., 'spf').\"),\n IsError: z.boolean().describe(\"Whether an error occurred.\"),\n Records: z.array(z.string()).describe(\"List of SPF records found.\"),\n Timeouts: z.array(z.string()).describe(\"List of timeouts if any.\"),\n Warnings: z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe(\"List of warning checks.\"),\n RelatedIP: z.string().describe(\"Related IP address if applicable.\").nullable().optional(),\n CustomData: z.string().describe(\"Custom data if any.\").nullable().optional(),\n IsEndpoint: z.boolean().describe(\"Whether this is an endpoint.\"),\n Transcript: z.array(MxToolboxLookupSpf_LookupSpfTranscriptSchema).describe(\"Detailed transcript of the lookup process.\"),\n Information: z.array(MxToolboxLookupSpf_LookupSpfInformationItemSchema).describe(\"Detailed information about the SPF record components.\"),\n ArgumentType: z.string().describe(\"Type of argument (e.g., 'domain').\"),\n TimeRecorded: z.string().describe(\"Timestamp when the lookup was recorded.\"),\n IsTransitioned: z.boolean().describe(\"Whether the lookup has transitioned.\"),\n RelatedLookups: z.array(MxToolboxLookupSpf_LookupSpfRelatedLookupSchema).describe(\"List of related lookups that can be performed.\"),\n TimeToComplete: z.string().describe(\"Time taken to complete the lookup in milliseconds.\"),\n CommandArgument: z.string().describe(\"The domain that was looked up.\"),\n HasSubscriptions: z.boolean().describe(\"Whether there are subscriptions.\"),\n IsEmptySubDomain: z.boolean().describe(\"Whether the subdomain is empty.\"),\n MultiInformation: z.array(MxToolboxLookupSpf_LookupSpfInformationItemSchema).describe(\"Multi-information if applicable.\"),\n DnsServiceProvider: z.string().describe(\"DNS service provider if detected.\").nullable().optional(),\n ResourceRecordType: z.number().int().describe(\"DNS resource record type number.\"),\n ReportingNameServer: z.string().describe(\"Name server that reported the result.\"),\n EmailServiceProvider: z.string().describe(\"Email service provider if detected.\").nullable().optional(),\n SPF_Subaction_Detail: MxToolboxLookupSpf_LookupSpfSubactionDetailSchema.nullable(),\n AlertgroupSubscriptionId: z.string().describe(\"Alert group subscription ID if any.\").nullable().optional(),\n DnsServiceProviderIdentifier: z.string().describe(\"DNS service provider identifier if applicable.\").nullable().optional(),\n}).describe(\"SPF lookup response containing complete SPF record data and validation results.\\nThe API returns the SPF data directly without a wrapper.\");\n\nexport const mxToolboxLookupSpf = action(\"MX_TOOLBOX_LOOKUP_SPF\", {\n slug: \"mx_toolbox-lookup-spf\",\n name: \"Lookup SPF Record\",\n description: \"Tool to retrieve SPF records for a specified domain. Use when conf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AC,CAAC,SAAS;CACrG,sBAAsB,kDAAkD,SAAS;CACjF,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,8BAA8BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,2IAA2I;AAEvJ,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,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/lookup-spf.d.ts
|
|
4
|
+
declare const MxToolboxLookupSpfInput: z.ZodTypeAny;
|
|
5
|
+
declare const MxToolboxLookupSpfOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mxToolboxLookupSpf: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mxToolboxLookupSpf };
|
|
9
|
+
//# sourceMappingURL=lookup-spf.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-spf.d.cts","names":[],"sources":["../../src/actions/lookup-spf.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAqCW,wBAAA,EAA0B,CAAA,CAAE,UAgC+G;AAAA,cAE3I,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/lookup-spf.d.ts
|
|
4
|
+
declare const MxToolboxLookupSpfInput: z.ZodTypeAny;
|
|
5
|
+
declare const MxToolboxLookupSpfOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mxToolboxLookupSpf: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mxToolboxLookupSpf };
|
|
9
|
+
//# sourceMappingURL=lookup-spf.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-spf.d.mts","names":[],"sources":["../../src/actions/lookup-spf.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAqCW,wBAAA,EAA0B,CAAA,CAAE,UAgC+G;AAAA,cAE3I,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/lookup-spf.ts
|
|
4
|
+
const MxToolboxLookupSpfInput = z.object({ domain: z.string().describe("The domain to perform the SPF lookup on. Must be a bare hostname with no protocol prefix (e.g., not 'https://example.com') or path suffixes.") });
|
|
5
|
+
const MxToolboxLookupSpf_LookupSpfCheckResultSchema = z.object({
|
|
6
|
+
ID: z.number().int().describe("Unique identifier for the check."),
|
|
7
|
+
Url: z.string().describe("URL to more information about this check."),
|
|
8
|
+
Info: z.string().describe("Information about the check result."),
|
|
9
|
+
Name: z.string().describe("Name of the SPF check performed."),
|
|
10
|
+
IsExcludedByUser: z.boolean().describe("Whether this check is excluded by the user."),
|
|
11
|
+
PublicDescription: z.string().describe("Public description if available.").nullable().optional()
|
|
12
|
+
});
|
|
13
|
+
const MxToolboxLookupSpf_LookupSpfTranscriptSchema = z.object({ Transcript: z.string().describe("Detailed transcript of the SPF lookup process.") });
|
|
14
|
+
const MxToolboxLookupSpf_LookupSpfInformationItemSchema = z.object({
|
|
15
|
+
Type: z.string().describe("The SPF mechanism type (e.g., 'v', 'include', 'all', 'record')."),
|
|
16
|
+
Value: z.string().describe("The value associated with the mechanism."),
|
|
17
|
+
Prefix: z.string().describe("The SPF mechanism prefix (e.g., '+', '-', '~', '?')."),
|
|
18
|
+
RecordNum: z.string().describe("Record number if applicable.").nullable().optional(),
|
|
19
|
+
PrefixDesc: z.string().describe("Human-readable description of the prefix (e.g., 'Pass', 'SoftFail')."),
|
|
20
|
+
Description: z.string().describe("Detailed description of the SPF mechanism.")
|
|
21
|
+
});
|
|
22
|
+
const MxToolboxLookupSpf_LookupSpfRelatedLookupSchema = z.object({
|
|
23
|
+
URL: z.string().describe("URL to perform the related lookup."),
|
|
24
|
+
Name: z.string().describe("Name of the related lookup."),
|
|
25
|
+
Command: z.string().describe("Command type for the related lookup."),
|
|
26
|
+
CommandArgument: z.string().describe("Argument for the related lookup command.")
|
|
27
|
+
});
|
|
28
|
+
const MxToolboxLookupSpf_LookupSpfSubactionDetailSchema = z.object({
|
|
29
|
+
Void_lookups: z.array(z.string()).describe("List of void lookups found.").nullable().optional(),
|
|
30
|
+
Recursive_Paths: z.array(z.string()).describe("Recursive paths found.").nullable().optional(),
|
|
31
|
+
Included_Lookups: z.array(z.string()).describe("List of included lookups.").nullable().optional(),
|
|
32
|
+
Invalid_Includes: z.union([z.string(), z.array(z.string())]).nullable().optional(),
|
|
33
|
+
Modifier_Ignored: z.union([z.string(), z.array(z.string())]).nullable().optional(),
|
|
34
|
+
Invalid_Redirects: z.union([z.string(), z.array(z.string())]).nullable().optional(),
|
|
35
|
+
Duplicate_Includes: z.union([z.string(), z.array(z.string())]).nullable().optional(),
|
|
36
|
+
MX_Resource_Records: z.union([z.string(), z.number().int()]).nullable().optional(),
|
|
37
|
+
Deprecated_SPF_Records: z.array(z.string()).describe("Deprecated SPF records found.").nullable().optional()
|
|
38
|
+
});
|
|
39
|
+
const mxToolboxLookupSpf = action("MX_TOOLBOX_LOOKUP_SPF", {
|
|
40
|
+
slug: "mx_toolbox-lookup-spf",
|
|
41
|
+
name: "Lookup SPF Record",
|
|
42
|
+
description: "Tool to retrieve SPF records for a specified domain. Use when confirming email sender authorization policies.",
|
|
43
|
+
input: MxToolboxLookupSpfInput,
|
|
44
|
+
output: z.object({
|
|
45
|
+
UID: z.string().describe("Unique identifier for the lookup.").nullable().optional(),
|
|
46
|
+
MxRep: z.number().int().describe("MX reputation score."),
|
|
47
|
+
Errors: z.array(z.string()).describe("List of errors if any."),
|
|
48
|
+
Failed: z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe("List of failed checks."),
|
|
49
|
+
Passed: z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe("List of passed checks."),
|
|
50
|
+
Command: z.string().describe("Command executed (e.g., 'spf')."),
|
|
51
|
+
IsError: z.boolean().describe("Whether an error occurred."),
|
|
52
|
+
Records: z.array(z.string()).describe("List of SPF records found."),
|
|
53
|
+
Timeouts: z.array(z.string()).describe("List of timeouts if any."),
|
|
54
|
+
Warnings: z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe("List of warning checks."),
|
|
55
|
+
RelatedIP: z.string().describe("Related IP address if applicable.").nullable().optional(),
|
|
56
|
+
CustomData: z.string().describe("Custom data if any.").nullable().optional(),
|
|
57
|
+
IsEndpoint: z.boolean().describe("Whether this is an endpoint."),
|
|
58
|
+
Transcript: z.array(MxToolboxLookupSpf_LookupSpfTranscriptSchema).describe("Detailed transcript of the lookup process."),
|
|
59
|
+
Information: z.array(MxToolboxLookupSpf_LookupSpfInformationItemSchema).describe("Detailed information about the SPF record components."),
|
|
60
|
+
ArgumentType: z.string().describe("Type of argument (e.g., 'domain')."),
|
|
61
|
+
TimeRecorded: z.string().describe("Timestamp when the lookup was recorded."),
|
|
62
|
+
IsTransitioned: z.boolean().describe("Whether the lookup has transitioned."),
|
|
63
|
+
RelatedLookups: z.array(MxToolboxLookupSpf_LookupSpfRelatedLookupSchema).describe("List of related lookups that can be performed."),
|
|
64
|
+
TimeToComplete: z.string().describe("Time taken to complete the lookup in milliseconds."),
|
|
65
|
+
CommandArgument: z.string().describe("The domain that was looked up."),
|
|
66
|
+
HasSubscriptions: z.boolean().describe("Whether there are subscriptions."),
|
|
67
|
+
IsEmptySubDomain: z.boolean().describe("Whether the subdomain is empty."),
|
|
68
|
+
MultiInformation: z.array(MxToolboxLookupSpf_LookupSpfInformationItemSchema).describe("Multi-information if applicable."),
|
|
69
|
+
DnsServiceProvider: z.string().describe("DNS service provider if detected.").nullable().optional(),
|
|
70
|
+
ResourceRecordType: z.number().int().describe("DNS resource record type number."),
|
|
71
|
+
ReportingNameServer: z.string().describe("Name server that reported the result."),
|
|
72
|
+
EmailServiceProvider: z.string().describe("Email service provider if detected.").nullable().optional(),
|
|
73
|
+
SPF_Subaction_Detail: MxToolboxLookupSpf_LookupSpfSubactionDetailSchema.nullable(),
|
|
74
|
+
AlertgroupSubscriptionId: z.string().describe("Alert group subscription ID if any.").nullable().optional(),
|
|
75
|
+
DnsServiceProviderIdentifier: z.string().describe("DNS service provider identifier if applicable.").nullable().optional()
|
|
76
|
+
}).describe("SPF lookup response containing complete SPF record data and validation results.\nThe API returns the SPF data directly without a wrapper.")
|
|
77
|
+
});
|
|
78
|
+
//#endregion
|
|
79
|
+
export { mxToolboxLookupSpf };
|
|
80
|
+
|
|
81
|
+
//# sourceMappingURL=lookup-spf.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lookup-spf.mjs","names":[],"sources":["../../src/actions/lookup-spf.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxToolboxLookupSpfInput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"The domain to perform the SPF lookup on. Must be a bare hostname with no protocol prefix (e.g., not 'https://example.com') or path suffixes.\"),\n});\nconst MxToolboxLookupSpf_LookupSpfCheckResultSchema: z.ZodTypeAny = z.object({\n ID: z.number().int().describe(\"Unique identifier for the check.\"),\n Url: z.string().describe(\"URL to more information about this check.\"),\n Info: z.string().describe(\"Information about the check result.\"),\n Name: z.string().describe(\"Name of the SPF check performed.\"),\n IsExcludedByUser: z.boolean().describe(\"Whether this check is excluded by the user.\"),\n PublicDescription: z.string().describe(\"Public description if available.\").nullable().optional(),\n});\nconst MxToolboxLookupSpf_LookupSpfTranscriptSchema: z.ZodTypeAny = z.object({\n Transcript: z.string().describe(\"Detailed transcript of the SPF lookup process.\"),\n});\nconst MxToolboxLookupSpf_LookupSpfInformationItemSchema: z.ZodTypeAny = z.object({\n Type: z.string().describe(\"The SPF mechanism type (e.g., 'v', 'include', 'all', 'record').\"),\n Value: z.string().describe(\"The value associated with the mechanism.\"),\n Prefix: z.string().describe(\"The SPF mechanism prefix (e.g., '+', '-', '~', '?').\"),\n RecordNum: z.string().describe(\"Record number if applicable.\").nullable().optional(),\n PrefixDesc: z.string().describe(\"Human-readable description of the prefix (e.g., 'Pass', 'SoftFail').\"),\n Description: z.string().describe(\"Detailed description of the SPF mechanism.\"),\n});\nconst MxToolboxLookupSpf_LookupSpfRelatedLookupSchema: z.ZodTypeAny = z.object({\n URL: z.string().describe(\"URL to perform the related lookup.\"),\n Name: z.string().describe(\"Name of the related lookup.\"),\n Command: z.string().describe(\"Command type for the related lookup.\"),\n CommandArgument: z.string().describe(\"Argument for the related lookup command.\"),\n});\nconst MxToolboxLookupSpf_LookupSpfSubactionDetailSchema: z.ZodTypeAny = z.object({\n Void_lookups: z.array(z.string()).describe(\"List of void lookups found.\").nullable().optional(),\n Recursive_Paths: z.array(z.string()).describe(\"Recursive paths found.\").nullable().optional(),\n Included_Lookups: z.array(z.string()).describe(\"List of included lookups.\").nullable().optional(),\n Invalid_Includes: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n Modifier_Ignored: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n Invalid_Redirects: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n Duplicate_Includes: z.union([z.string(), z.array(z.string())]).nullable().optional(),\n MX_Resource_Records: z.union([z.string(), z.number().int()]).nullable().optional(),\n Deprecated_SPF_Records: z.array(z.string()).describe(\"Deprecated SPF records found.\").nullable().optional(),\n});\nexport const MxToolboxLookupSpfOutput: z.ZodTypeAny = z.object({\n UID: z.string().describe(\"Unique identifier for the lookup.\").nullable().optional(),\n MxRep: z.number().int().describe(\"MX reputation score.\"),\n Errors: z.array(z.string()).describe(\"List of errors if any.\"),\n Failed: z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe(\"List of failed checks.\"),\n Passed: z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe(\"List of passed checks.\"),\n Command: z.string().describe(\"Command executed (e.g., 'spf').\"),\n IsError: z.boolean().describe(\"Whether an error occurred.\"),\n Records: z.array(z.string()).describe(\"List of SPF records found.\"),\n Timeouts: z.array(z.string()).describe(\"List of timeouts if any.\"),\n Warnings: z.array(MxToolboxLookupSpf_LookupSpfCheckResultSchema).describe(\"List of warning checks.\"),\n RelatedIP: z.string().describe(\"Related IP address if applicable.\").nullable().optional(),\n CustomData: z.string().describe(\"Custom data if any.\").nullable().optional(),\n IsEndpoint: z.boolean().describe(\"Whether this is an endpoint.\"),\n Transcript: z.array(MxToolboxLookupSpf_LookupSpfTranscriptSchema).describe(\"Detailed transcript of the lookup process.\"),\n Information: z.array(MxToolboxLookupSpf_LookupSpfInformationItemSchema).describe(\"Detailed information about the SPF record components.\"),\n ArgumentType: z.string().describe(\"Type of argument (e.g., 'domain').\"),\n TimeRecorded: z.string().describe(\"Timestamp when the lookup was recorded.\"),\n IsTransitioned: z.boolean().describe(\"Whether the lookup has transitioned.\"),\n RelatedLookups: z.array(MxToolboxLookupSpf_LookupSpfRelatedLookupSchema).describe(\"List of related lookups that can be performed.\"),\n TimeToComplete: z.string().describe(\"Time taken to complete the lookup in milliseconds.\"),\n CommandArgument: z.string().describe(\"The domain that was looked up.\"),\n HasSubscriptions: z.boolean().describe(\"Whether there are subscriptions.\"),\n IsEmptySubDomain: z.boolean().describe(\"Whether the subdomain is empty.\"),\n MultiInformation: z.array(MxToolboxLookupSpf_LookupSpfInformationItemSchema).describe(\"Multi-information if applicable.\"),\n DnsServiceProvider: z.string().describe(\"DNS service provider if detected.\").nullable().optional(),\n ResourceRecordType: z.number().int().describe(\"DNS resource record type number.\"),\n ReportingNameServer: z.string().describe(\"Name server that reported the result.\"),\n EmailServiceProvider: z.string().describe(\"Email service provider if detected.\").nullable().optional(),\n SPF_Subaction_Detail: MxToolboxLookupSpf_LookupSpfSubactionDetailSchema.nullable(),\n AlertgroupSubscriptionId: z.string().describe(\"Alert group subscription ID if any.\").nullable().optional(),\n DnsServiceProviderIdentifier: z.string().describe(\"DNS service provider identifier if applicable.\").nullable().optional(),\n}).describe(\"SPF lookup response containing complete SPF record data and validation results.\\nThe API returns the SPF data directly without a wrapper.\");\n\nexport const mxToolboxLookupSpf = action(\"MX_TOOLBOX_LOOKUP_SPF\", {\n slug: \"mx_toolbox-lookup-spf\",\n name: \"Lookup SPF Record\",\n description: \"Tool to retrieve SPF records for a specified domain. Use when confirming email sender authorization policies.\",\n input: MxToolboxLookupSpfInput,\n output: MxToolboxLookupSpfOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwC,EAAE,OAAO,EAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8IAA8I,EAC5K,CAAC;AACD,MAAM,gDAA8D,EAAE,OAAO;CAC3E,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAChE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC5D,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C;CACpF,mBAAmB,EAAE,OAAO,CAAC,C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O,CAAC,CAAC,SAAS,uCAAuC;EAChF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,sBAAsB,kDAAkD,SAAS;EACjF,0BAA0B,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,8BAA8B,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,CAAC,CAAC,CAAC,SAAS,2IAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/monitor-status.ts
|
|
4
|
+
const MxToolboxMonitorStatusInput = zod.z.object({}).describe("Request model for retrieving all monitor statuses. No parameters are required.");
|
|
5
|
+
const MxToolboxMonitorStatus_MonitorStatusItemSchema = zod.z.object({
|
|
6
|
+
MxRep: zod.z.string().describe("MX reputation score (0-100 scale)").nullable().optional(),
|
|
7
|
+
Failing: zod.z.array(zod.z.unknown()).describe("List of failing check details").nullable().optional(),
|
|
8
|
+
Warnings: zod.z.array(zod.z.unknown()).describe("List of warning messages").nullable().optional(),
|
|
9
|
+
MonitorUID: zod.z.string().describe("Unique identifier of the monitor"),
|
|
10
|
+
LastChecked: zod.z.string().describe("Timestamp of the last status check (ISO 8601 format)"),
|
|
11
|
+
ActionString: zod.z.string().describe("Monitor type and target (e.g., 'blacklist:example.com')"),
|
|
12
|
+
LastTransition: zod.z.string().describe("Timestamp when the monitor last changed status (ISO 8601 format)")
|
|
13
|
+
}).describe("Represents a single monitor status entry from the MX Toolbox API.");
|
|
14
|
+
const MxToolboxMonitorStatus_MonitorDataWrapperSchema = zod.z.object({ details: zod.z.array(MxToolboxMonitorStatus_MonitorStatusItemSchema).describe("List of monitor status items").nullable().optional() }).describe("Wrapper for the data field containing monitor details.");
|
|
15
|
+
const MxToolboxMonitorStatusOutput = zod.z.object({
|
|
16
|
+
data: MxToolboxMonitorStatus_MonitorDataWrapperSchema.nullable(),
|
|
17
|
+
error: zod.z.string().describe("Error message if the retrieval failed, null otherwise").nullable().optional(),
|
|
18
|
+
successfull: zod.z.boolean().describe("Indicates if the retrieval was successful")
|
|
19
|
+
}).describe("Response model for retrieving all monitor statuses from MX Toolbox API.");
|
|
20
|
+
const mxToolboxMonitorStatus = require_action.action("MX_TOOLBOX_MONITOR_STATUS", {
|
|
21
|
+
slug: "mx_toolbox-monitor-status",
|
|
22
|
+
name: "Monitor Status",
|
|
23
|
+
description: "Retrieves the current status of all monitors configured in the MX Toolbox account. This action returns a list of all monitors with their health status, last check time, reputation scores, and any failing checks or warnings. Use this when you need to: - Check the overall health of all configured monitors - Get a comprehensive view of monitoring status across all services - Identify which monitors are failing or have warnings - Review when monitors were last checked No parameters are required - this action retrieves all monitors for the authenticated account. Returns an empty list if no monitors are configured.",
|
|
24
|
+
input: MxToolboxMonitorStatusInput,
|
|
25
|
+
output: MxToolboxMonitorStatusOutput
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
exports.mxToolboxMonitorStatus = mxToolboxMonitorStatus;
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=monitor-status.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-status.cjs","names":["z","action"],"sources":["../../src/actions/monitor-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxToolboxMonitorStatusInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving all monitor statuses. No parameters are required.\");\nconst MxToolboxMonitorStatus_MonitorStatusItemSchema: z.ZodTypeAny = z.object({\n MxRep: z.string().describe(\"MX reputation score (0-100 scale)\").nullable().optional(),\n Failing: z.array(z.unknown()).describe(\"List of failing check details\").nullable().optional(),\n Warnings: z.array(z.unknown()).describe(\"List of warning messages\").nullable().optional(),\n MonitorUID: z.string().describe(\"Unique identifier of the monitor\"),\n LastChecked: z.string().describe(\"Timestamp of the last status check (ISO 8601 format)\"),\n ActionString: z.string().describe(\"Monitor type and target (e.g., 'blacklist:example.com')\"),\n LastTransition: z.string().describe(\"Timestamp when the monitor last changed status (ISO 8601 format)\"),\n}).describe(\"Represents a single monitor status entry from the MX Toolbox API.\");\nconst MxToolboxMonitorStatus_MonitorDataWrapperSchema: z.ZodTypeAny = z.object({\n details: z.array(MxToolboxMonitorStatus_MonitorStatusItemSchema).describe(\"List of monitor status items\").nullable().optional(),\n}).describe(\"Wrapper for the data field containing monitor details.\");\nexport const MxToolboxMonitorStatusOutput: z.ZodTypeAny = z.object({\n data: MxToolboxMonitorStatus_MonitorDataWrapperSchema.nullable(),\n error: z.string().describe(\"Error message if the retrieval failed, null otherwise\").nullable().optional(),\n successfull: z.boolean().describe(\"Indicates if the retrieval was successful\"),\n}).describe(\"Response model for retrieving all monitor statuses from MX Toolbox API.\");\n\nexport const mxToolboxMonitorStatus = action(\"MX_TOOLBOX_MONITOR_STATUS\", {\n slug: \"mx_toolbox-monitor-status\",\n name: \"Monitor Status\",\n description: \"Retrieves the current status of all monitors configured in the MX Toolbox account. This action returns a list of all monitors with their health status, last check time, reputation scores, and any failing checks or warnings. Use this when you need to: - Check the overall health of all configured monitors - Get a comprehensive view of monitoring status across all services - Identify which monitors are failing or have warnings - Review when monitors were last checked No parameters are required - this action retrieves all monitors for the authenticated account. Returns an empty list if no monitors are configured.\",\n input: MxToolboxMonitorStatusInput,\n output: MxToolboxMonitorStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC/J,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,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boxMonitorStatusOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mxToolboxMonitorStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mxToolboxMonitorStatus };
|
|
9
|
+
//# sourceMappingURL=monitor-status.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-status.d.cts","names":[],"sources":["../../src/actions/monitor-status.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAAoH;AAAA,cAanJ,4BAAA,EAA8B,CAAA,CAAE,UAIyC;AAAA,cAEzE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/monitor-status.d.ts
|
|
4
|
+
declare const MxToolboxMonitorStatusInput: z.ZodTypeAny;
|
|
5
|
+
declare const MxToolboxMonitorStatusOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mxToolboxMonitorStatus: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mxToolboxMonitorStatus };
|
|
9
|
+
//# sourceMappingURL=monitor-status.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-status.d.mts","names":[],"sources":["../../src/actions/monitor-status.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAAoH;AAAA,cAanJ,4BAAA,EAA8B,CAAA,CAAE,UAIyC;AAAA,cAEzE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/monitor-status.ts
|
|
4
|
+
const MxToolboxMonitorStatusInput = z.object({}).describe("Request model for retrieving all monitor statuses. No parameters are required.");
|
|
5
|
+
const MxToolboxMonitorStatus_MonitorStatusItemSchema = z.object({
|
|
6
|
+
MxRep: z.string().describe("MX reputation score (0-100 scale)").nullable().optional(),
|
|
7
|
+
Failing: z.array(z.unknown()).describe("List of failing check details").nullable().optional(),
|
|
8
|
+
Warnings: z.array(z.unknown()).describe("List of warning messages").nullable().optional(),
|
|
9
|
+
MonitorUID: z.string().describe("Unique identifier of the monitor"),
|
|
10
|
+
LastChecked: z.string().describe("Timestamp of the last status check (ISO 8601 format)"),
|
|
11
|
+
ActionString: z.string().describe("Monitor type and target (e.g., 'blacklist:example.com')"),
|
|
12
|
+
LastTransition: z.string().describe("Timestamp when the monitor last changed status (ISO 8601 format)")
|
|
13
|
+
}).describe("Represents a single monitor status entry from the MX Toolbox API.");
|
|
14
|
+
const MxToolboxMonitorStatus_MonitorDataWrapperSchema = z.object({ details: z.array(MxToolboxMonitorStatus_MonitorStatusItemSchema).describe("List of monitor status items").nullable().optional() }).describe("Wrapper for the data field containing monitor details.");
|
|
15
|
+
const mxToolboxMonitorStatus = action("MX_TOOLBOX_MONITOR_STATUS", {
|
|
16
|
+
slug: "mx_toolbox-monitor-status",
|
|
17
|
+
name: "Monitor Status",
|
|
18
|
+
description: "Retrieves the current status of all monitors configured in the MX Toolbox account. This action returns a list of all monitors with their health status, last check time, reputation scores, and any failing checks or warnings. Use this when you need to: - Check the overall health of all configured monitors - Get a comprehensive view of monitoring status across all services - Identify which monitors are failing or have warnings - Review when monitors were last checked No parameters are required - this action retrieves all monitors for the authenticated account. Returns an empty list if no monitors are configured.",
|
|
19
|
+
input: MxToolboxMonitorStatusInput,
|
|
20
|
+
output: z.object({
|
|
21
|
+
data: MxToolboxMonitorStatus_MonitorDataWrapperSchema.nullable(),
|
|
22
|
+
error: z.string().describe("Error message if the retrieval failed, null otherwise").nullable().optional(),
|
|
23
|
+
successfull: z.boolean().describe("Indicates if the retrieval was successful")
|
|
24
|
+
}).describe("Response model for retrieving all monitor statuses from MX Toolbox API.")
|
|
25
|
+
});
|
|
26
|
+
//#endregion
|
|
27
|
+
export { mxToolboxMonitorStatus };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=monitor-status.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"monitor-status.mjs","names":[],"sources":["../../src/actions/monitor-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxToolboxMonitorStatusInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving all monitor statuses. No parameters are required.\");\nconst MxToolboxMonitorStatus_MonitorStatusItemSchema: z.ZodTypeAny = z.object({\n MxRep: z.string().describe(\"MX reputation score (0-100 scale)\").nullable().optional(),\n Failing: z.array(z.unknown()).describe(\"List of failing check details\").nullable().optional(),\n Warnings: z.array(z.unknown()).describe(\"List of warning messages\").nullable().optional(),\n MonitorUID: z.string().describe(\"Unique identifier of the monitor\"),\n LastChecked: z.string().describe(\"Timestamp of the last status check (ISO 8601 format)\"),\n ActionString: z.string().describe(\"Monitor type and target (e.g., 'blacklist:example.com')\"),\n LastTransition: z.string().describe(\"Timestamp when the monitor last changed status (ISO 8601 format)\"),\n}).describe(\"Represents a single monitor status entry from the MX Toolbox API.\");\nconst MxToolboxMonitorStatus_MonitorDataWrapperSchema: z.ZodTypeAny = z.object({\n details: z.array(MxToolboxMonitorStatus_MonitorStatusItemSchema).describe(\"List of monitor status items\").nullable().optional(),\n}).describe(\"Wrapper for the data field containing monitor details.\");\nexport const MxToolboxMonitorStatusOutput: z.ZodTypeAny = z.object({\n data: MxToolboxMonitorStatus_MonitorDataWrapperSchema.nullable(),\n error: z.string().describe(\"Error message if the retrieval failed, null otherwise\").nullable().optional(),\n successfull: z.boolean().describe(\"Indicates if the retrieval was successful\"),\n}).describe(\"Response model for retrieving all monitor statuses from MX Toolbox API.\");\n\nexport const mxToolboxMonitorStatus = action(\"MX_TOOLBOX_MONITOR_STATUS\", {\n slug: \"mx_toolbox-monitor-status\",\n name: \"Monitor Status\",\n description: \"Retrieves the current status of all monitors configured in the MX Toolbox account. This action returns a list of all monitors with their health status, last check time, reputation scores, and any failing checks or warnings. Use this when you need to: - Check the overall health of all configured monitors - Get a comprehensive view of monitoring status across all services - Identify which monitors are failing or have warnings - Review when monitors were last checked No parameters are required - this action retrieves all monitors for the authenticated account. Returns an empty list if no monitors are configured.\",\n input: MxToolboxMonitorStatusInput,\n output: MxToolboxMonitorStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC/J,MAAM,iDAA+D,EAAE,OAAO;CAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC3F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;AACxG,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,kDAAgE,EAAE,OAAO,EAC7E,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAChI,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAOpE,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwD,EAAE,OAAO;EACjE,MAAM,gDAAgD,SAAS;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CAC/E,CAAC,CAAC,CAAC,SAAS,yEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/usage-check.ts
|
|
4
|
+
const MxToolboxUsageCheckInput = zod.z.object({}).describe("Request model for API usage statistics check.");
|
|
5
|
+
const MxToolboxUsageCheckOutput = zod.z.object({
|
|
6
|
+
DnsMax: zod.z.number().int().describe("Maximum number of DNS lookups allowed in the current cycle"),
|
|
7
|
+
NetworkMax: zod.z.number().int().describe("Maximum number of network requests allowed in the current cycle"),
|
|
8
|
+
DnsRequests: zod.z.number().int().describe("Number of DNS lookup requests made in the current cycle"),
|
|
9
|
+
NetworkRequests: zod.z.number().int().describe("Number of network (HTTP, SMTP, Ping) requests made in the current cycle"),
|
|
10
|
+
DnsOverageErrors: zod.z.number().int().describe("Number of DNS requests that resulted in overage errors"),
|
|
11
|
+
NetworkOverageErrors: zod.z.number().int().describe("Number of network requests that resulted in overage errors")
|
|
12
|
+
}).describe("Response model for API usage statistics.");
|
|
13
|
+
const mxToolboxUsageCheck = require_action.action("MX_TOOLBOX_USAGE_CHECK", {
|
|
14
|
+
slug: "mx_toolbox-usage-check",
|
|
15
|
+
name: "Check Usage",
|
|
16
|
+
description: "Retrieve API usage statistics for DNS and network lookups. Returns current request counts, maximum allowed requests, and any overage errors for both DNS lookups and network operations (HTTP, SMTP, Ping).",
|
|
17
|
+
input: MxToolboxUsageCheckInput,
|
|
18
|
+
output: MxToolboxUsageCheckOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.mxToolboxUsageCheck = mxToolboxUsageCheck;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=usage-check.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage-check.cjs","names":["z","action"],"sources":["../../src/actions/usage-check.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxToolboxUsageCheckInput: z.ZodTypeAny = z.object({}).describe(\"Request model for API usage statistics check.\");\nexport const MxToolboxUsageCheckOutput: z.ZodTypeAny = z.object({\n DnsMax: z.number().int().describe(\"Maximum number of DNS lookups allowed in the current cycle\"),\n NetworkMax: z.number().int().describe(\"Maximum number of network requests allowed in the current cycle\"),\n DnsRequests: z.number().int().describe(\"Number of DNS lookup requests made in the current cycle\"),\n NetworkRequests: z.number().int().describe(\"Number of network (HTTP, SMTP, Ping) requests made in the current cycle\"),\n DnsOverageErrors: z.number().int().describe(\"Number of DNS requests that resulted in overage errors\"),\n NetworkOverageErrors: z.number().int().describe(\"Number of network requests that resulted in overage errors\"),\n}).describe(\"Response model for API usage statistics.\");\n\nexport const mxToolboxUsageCheck = action(\"MX_TOOLBOX_USAGE_CHECK\", {\n slug: \"mx_toolbox-usage-check\",\n name: \"Check Usage\",\n description: \"Retrieve API usage statistics for DNS and network lookups. Returns current request counts, maximum allowed requests, and any overage errors for both DNS lookups and network operations (HTTP, SMTP, Ping).\",\n input: MxToolboxUsageCheckInput,\n output: MxToolboxUsageCheckOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3H,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;CAChG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;CACpH,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD;CACpG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D;AAC9G,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,MAAa,sBAAsBC,eAAAA,OAAO,0BAA0B;CAClE,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/usage-check.d.ts
|
|
4
|
+
declare const MxToolboxUsageCheckInput: z.ZodTypeAny;
|
|
5
|
+
declare const MxToolboxUsageCheckOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mxToolboxUsageCheck: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mxToolboxUsageCheck };
|
|
9
|
+
//# sourceMappingURL=usage-check.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage-check.d.cts","names":[],"sources":["../../src/actions/usage-check.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAAmF;AAAA,cAC/G,yBAAA,EAA2B,CAAA,CAAE,UAOa;AAAA,cAE1C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/usage-check.d.ts
|
|
4
|
+
declare const MxToolboxUsageCheckInput: z.ZodTypeAny;
|
|
5
|
+
declare const MxToolboxUsageCheckOutput: z.ZodTypeAny;
|
|
6
|
+
declare const mxToolboxUsageCheck: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { mxToolboxUsageCheck };
|
|
9
|
+
//# sourceMappingURL=usage-check.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage-check.d.mts","names":[],"sources":["../../src/actions/usage-check.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAAmF;AAAA,cAC/G,yBAAA,EAA2B,CAAA,CAAE,UAOa;AAAA,cAE1C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const mxToolboxUsageCheck = action("MX_TOOLBOX_USAGE_CHECK", {
|
|
4
|
+
slug: "mx_toolbox-usage-check",
|
|
5
|
+
name: "Check Usage",
|
|
6
|
+
description: "Retrieve API usage statistics for DNS and network lookups. Returns current request counts, maximum allowed requests, and any overage errors for both DNS lookups and network operations (HTTP, SMTP, Ping).",
|
|
7
|
+
input: z.object({}).describe("Request model for API usage statistics check."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
DnsMax: z.number().int().describe("Maximum number of DNS lookups allowed in the current cycle"),
|
|
10
|
+
NetworkMax: z.number().int().describe("Maximum number of network requests allowed in the current cycle"),
|
|
11
|
+
DnsRequests: z.number().int().describe("Number of DNS lookup requests made in the current cycle"),
|
|
12
|
+
NetworkRequests: z.number().int().describe("Number of network (HTTP, SMTP, Ping) requests made in the current cycle"),
|
|
13
|
+
DnsOverageErrors: z.number().int().describe("Number of DNS requests that resulted in overage errors"),
|
|
14
|
+
NetworkOverageErrors: z.number().int().describe("Number of network requests that resulted in overage errors")
|
|
15
|
+
}).describe("Response model for API usage statistics.")
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { mxToolboxUsageCheck };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=usage-check.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usage-check.mjs","names":[],"sources":["../../src/actions/usage-check.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MxToolboxUsageCheckInput: z.ZodTypeAny = z.object({}).describe(\"Request model for API usage statistics check.\");\nexport const MxToolboxUsageCheckOutput: z.ZodTypeAny = z.object({\n DnsMax: z.number().int().describe(\"Maximum number of DNS lookups allowed in the current cycle\"),\n NetworkMax: z.number().int().describe(\"Maximum number of network requests allowed in the current cycle\"),\n DnsRequests: z.number().int().describe(\"Number of DNS lookup requests made in the current cycle\"),\n NetworkRequests: z.number().int().describe(\"Number of network (HTTP, SMTP, Ping) requests made in the current cycle\"),\n DnsOverageErrors: z.number().int().describe(\"Number of DNS requests that resulted in overage errors\"),\n NetworkOverageErrors: z.number().int().describe(\"Number of network requests that resulted in overage errors\"),\n}).describe(\"Response model for API usage statistics.\");\n\nexport const mxToolboxUsageCheck = action(\"MX_TOOLBOX_USAGE_CHECK\", {\n slug: \"mx_toolbox-usage-check\",\n name: \"Check Usage\",\n description: \"Retrieve API usage statistics for DNS and network lookups. Returns current request counts, maximum allowed requests, and any overage errors for both DNS lookups and network operations (HTTP, SMTP, Ping).\",\n input: MxToolboxUsageCheckInput,\n output: MxToolboxUsageCheckOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,0BAA0B;CAClE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAcnE;CACP,QAdqD,EAAE,OAAO;EAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE;EACvG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD;EAChG,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;EACpH,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wDAAwD;EACpG,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D;CAC9G,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const mxToolbox = defineApp({\n slug: \"mx_toolbox\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
|
package/dist/app.mjs
ADDED
package/dist/app.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const mxToolbox = defineApp({\n slug: \"mx_toolbox\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/catalog.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/catalog.ts
|
|
2
|
+
/** Generated — kept in sync with src/app.ts. */
|
|
3
|
+
const mxToolboxCatalog = {
|
|
4
|
+
"slug": "mx_toolbox",
|
|
5
|
+
"name": "MXToolbox",
|
|
6
|
+
"description": "MxToolbox provides a suite of network diagnostic and monitoring tools, including DNS lookups, blacklist checks, and email health analysis.",
|
|
7
|
+
"category": "Server Monitoring",
|
|
8
|
+
"logo": "https://logos.composio.dev/api/mx_toolbox",
|
|
9
|
+
"authKind": "keystroke",
|
|
10
|
+
"oauthScopes": []
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
exports.mxToolboxCatalog = mxToolboxCatalog;
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=catalog.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const mxToolboxCatalog = {\n \"slug\": \"mx_toolbox\",\n \"name\": \"MXToolbox\",\n \"description\": \"MxToolbox provides a suite of network diagnostic and monitoring tools, including DNS lookups, blacklist checks, and email health analysis.\",\n \"category\": \"Server Monitoring\",\n \"logo\": \"https://logos.composio.dev/api/mx_toolbox\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
|