@keystrokehq/moz 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.
Files changed (130) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/fetch-metadata-index.cjs +21 -0
  7. package/dist/actions/fetch-metadata-index.cjs.map +1 -0
  8. package/dist/actions/fetch-metadata-index.d.cts +9 -0
  9. package/dist/actions/fetch-metadata-index.d.cts.map +1 -0
  10. package/dist/actions/fetch-metadata-index.d.mts +9 -0
  11. package/dist/actions/fetch-metadata-index.d.mts.map +1 -0
  12. package/dist/actions/fetch-metadata-index.mjs +20 -0
  13. package/dist/actions/fetch-metadata-index.mjs.map +1 -0
  14. package/dist/actions/fetch-site-metrics.cjs +55 -0
  15. package/dist/actions/fetch-site-metrics.cjs.map +1 -0
  16. package/dist/actions/fetch-site-metrics.d.cts +9 -0
  17. package/dist/actions/fetch-site-metrics.d.cts.map +1 -0
  18. package/dist/actions/fetch-site-metrics.d.mts +9 -0
  19. package/dist/actions/fetch-site-metrics.d.mts.map +1 -0
  20. package/dist/actions/fetch-site-metrics.mjs +54 -0
  21. package/dist/actions/fetch-site-metrics.mjs.map +1 -0
  22. package/dist/actions/get-global-top-root-domains.cjs +36 -0
  23. package/dist/actions/get-global-top-root-domains.cjs.map +1 -0
  24. package/dist/actions/get-global-top-root-domains.d.cts +9 -0
  25. package/dist/actions/get-global-top-root-domains.d.cts.map +1 -0
  26. package/dist/actions/get-global-top-root-domains.d.mts +9 -0
  27. package/dist/actions/get-global-top-root-domains.d.mts.map +1 -0
  28. package/dist/actions/get-global-top-root-domains.mjs +35 -0
  29. package/dist/actions/get-global-top-root-domains.mjs.map +1 -0
  30. package/dist/actions/get-usage-data.cjs +19 -0
  31. package/dist/actions/get-usage-data.cjs.map +1 -0
  32. package/dist/actions/get-usage-data.d.cts +9 -0
  33. package/dist/actions/get-usage-data.d.cts.map +1 -0
  34. package/dist/actions/get-usage-data.d.mts +9 -0
  35. package/dist/actions/get-usage-data.d.mts.map +1 -0
  36. package/dist/actions/get-usage-data.mjs +16 -0
  37. package/dist/actions/get-usage-data.mjs.map +1 -0
  38. package/dist/actions/global-top-pages.cjs +37 -0
  39. package/dist/actions/global-top-pages.cjs.map +1 -0
  40. package/dist/actions/global-top-pages.d.cts +9 -0
  41. package/dist/actions/global-top-pages.d.cts.map +1 -0
  42. package/dist/actions/global-top-pages.d.mts +9 -0
  43. package/dist/actions/global-top-pages.d.mts.map +1 -0
  44. package/dist/actions/global-top-pages.mjs +36 -0
  45. package/dist/actions/global-top-pages.mjs.map +1 -0
  46. package/dist/actions/index-metadata.cjs +19 -0
  47. package/dist/actions/index-metadata.cjs.map +1 -0
  48. package/dist/actions/index-metadata.d.cts +9 -0
  49. package/dist/actions/index-metadata.d.cts.map +1 -0
  50. package/dist/actions/index-metadata.d.mts +9 -0
  51. package/dist/actions/index-metadata.d.mts.map +1 -0
  52. package/dist/actions/index-metadata.mjs +16 -0
  53. package/dist/actions/index-metadata.mjs.map +1 -0
  54. package/dist/actions/index.cjs +25 -0
  55. package/dist/actions/index.d.cts +13 -0
  56. package/dist/actions/index.d.mts +13 -0
  57. package/dist/actions/index.mjs +13 -0
  58. package/dist/actions/link-status.cjs +29 -0
  59. package/dist/actions/link-status.cjs.map +1 -0
  60. package/dist/actions/link-status.d.cts +9 -0
  61. package/dist/actions/link-status.d.cts.map +1 -0
  62. package/dist/actions/link-status.d.mts +9 -0
  63. package/dist/actions/link-status.d.mts.map +1 -0
  64. package/dist/actions/link-status.mjs +26 -0
  65. package/dist/actions/link-status.mjs.map +1 -0
  66. package/dist/actions/list-global-top-domains.cjs +29 -0
  67. package/dist/actions/list-global-top-domains.cjs.map +1 -0
  68. package/dist/actions/list-global-top-domains.d.cts +9 -0
  69. package/dist/actions/list-global-top-domains.d.cts.map +1 -0
  70. package/dist/actions/list-global-top-domains.d.mts +9 -0
  71. package/dist/actions/list-global-top-domains.d.mts.map +1 -0
  72. package/dist/actions/list-global-top-domains.mjs +28 -0
  73. package/dist/actions/list-global-top-domains.mjs.map +1 -0
  74. package/dist/actions/list-global-top-pages.cjs +36 -0
  75. package/dist/actions/list-global-top-pages.cjs.map +1 -0
  76. package/dist/actions/list-global-top-pages.d.cts +9 -0
  77. package/dist/actions/list-global-top-pages.d.cts.map +1 -0
  78. package/dist/actions/list-global-top-pages.d.mts +9 -0
  79. package/dist/actions/list-global-top-pages.d.mts.map +1 -0
  80. package/dist/actions/list-global-top-pages.mjs +35 -0
  81. package/dist/actions/list-global-top-pages.mjs.map +1 -0
  82. package/dist/actions/lookup-quota.cjs +24 -0
  83. package/dist/actions/lookup-quota.cjs.map +1 -0
  84. package/dist/actions/lookup-quota.d.cts +9 -0
  85. package/dist/actions/lookup-quota.d.cts.map +1 -0
  86. package/dist/actions/lookup-quota.d.mts +9 -0
  87. package/dist/actions/lookup-quota.d.mts.map +1 -0
  88. package/dist/actions/lookup-quota.mjs +21 -0
  89. package/dist/actions/lookup-quota.mjs.map +1 -0
  90. package/dist/actions/post-top-pages.cjs +79 -0
  91. package/dist/actions/post-top-pages.cjs.map +1 -0
  92. package/dist/actions/post-top-pages.d.cts +9 -0
  93. package/dist/actions/post-top-pages.d.cts.map +1 -0
  94. package/dist/actions/post-top-pages.d.mts +9 -0
  95. package/dist/actions/post-top-pages.d.mts.map +1 -0
  96. package/dist/actions/post-top-pages.mjs +78 -0
  97. package/dist/actions/post-top-pages.mjs.map +1 -0
  98. package/dist/actions/usage-data.cjs +46 -0
  99. package/dist/actions/usage-data.cjs.map +1 -0
  100. package/dist/actions/usage-data.d.cts +9 -0
  101. package/dist/actions/usage-data.d.cts.map +1 -0
  102. package/dist/actions/usage-data.d.mts +9 -0
  103. package/dist/actions/usage-data.d.mts.map +1 -0
  104. package/dist/actions/usage-data.mjs +45 -0
  105. package/dist/actions/usage-data.mjs.map +1 -0
  106. package/dist/app.cjs +9 -0
  107. package/dist/app.cjs.map +1 -0
  108. package/dist/app.d.cts +5 -0
  109. package/dist/app.d.cts.map +1 -0
  110. package/dist/app.d.mts +5 -0
  111. package/dist/app.d.mts.map +1 -0
  112. package/dist/app.mjs +10 -0
  113. package/dist/app.mjs.map +1 -0
  114. package/dist/catalog.cjs +15 -0
  115. package/dist/catalog.cjs.map +1 -0
  116. package/dist/catalog.d.cts +14 -0
  117. package/dist/catalog.d.cts.map +1 -0
  118. package/dist/catalog.d.mts +14 -0
  119. package/dist/catalog.d.mts.map +1 -0
  120. package/dist/catalog.mjs +15 -0
  121. package/dist/catalog.mjs.map +1 -0
  122. package/dist/execute.cjs +18 -0
  123. package/dist/execute.cjs.map +1 -0
  124. package/dist/execute.mjs +18 -0
  125. package/dist/execute.mjs.map +1 -0
  126. package/dist/index.cjs +30 -0
  127. package/dist/index.d.cts +15 -0
  128. package/dist/index.d.mts +15 -0
  129. package/dist/index.mjs +16 -0
  130. package/package.json +49 -0
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # @keystrokehq/moz
2
+
3
+ Keystroke-managed integration.
4
+
5
+ **App:** `moz`
6
+ **Version:** `20260615_00`
7
+ **Actions:** 12
8
+
9
+ ```ts
10
+ import { defineAgent } from "@keystrokehq/keystroke/agent";
11
+ import { mozFetchMetadataIndex } from "@keystrokehq/moz/actions";
12
+
13
+ export default defineAgent({
14
+ key: "moz-agent",
15
+ tools: [mozFetchMetadataIndex],
16
+ });
17
+ ```
@@ -0,0 +1,21 @@
1
+ const require_app = require("./app.cjs");
2
+ const require_execute = require("./execute.cjs");
3
+ require("zod");
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return require_app.moz.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await require_execute.executeMozTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ exports.action = action;
20
+
21
+ //# sourceMappingURL=action.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.cjs","names":["moz","executeMozTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moz } from \"./app\";\nimport { executeMozTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return moz.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMozTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,IAAI,OAAO;EAChB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,eAAe,MAAM,KAAgC,CAAC;EACtF;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ import { moz } from "./app.mjs";
2
+ import { executeMozTool } from "./execute.mjs";
3
+ import "zod";
4
+ //#region src/action.ts
5
+ /** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
6
+ function action(tool, def) {
7
+ return moz.action({
8
+ slug: def.slug,
9
+ name: def.name,
10
+ description: def.description,
11
+ input: def.input,
12
+ output: def.output,
13
+ async run(input) {
14
+ return def.output.parse(await executeMozTool(tool, input));
15
+ }
16
+ });
17
+ }
18
+ //#endregion
19
+ export { action };
20
+
21
+ //# sourceMappingURL=action.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { moz } from \"./app\";\nimport { executeMozTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return moz.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeMozTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,IAAI,OAAO;EAChB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,eAAe,MAAM,KAAgC,CAAC;EACtF;CACF,CAAC;AACH"}
@@ -0,0 +1,21 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/fetch-metadata-index.ts
4
+ const MozFetchMetadataIndexInput = zod.z.object({ request_id: zod.z.string().describe("Optional unique identifier for the JSON-RPC request (min 24 chars). If not provided, a UUID will be generated automatically.").optional() }).describe("Request model for fetching index metadata.\nThis is a JSON-RPC 2.0 call that requires minimal parameters.");
5
+ const MozFetchMetadataIndex_IndexResultSchema = zod.z.object({ index_id: zod.z.string().describe("The current index ID that changes when data in the index is updated (base64 encoded string).") }).describe("Result object containing the index metadata.");
6
+ const MozFetchMetadataIndexOutput = zod.z.object({
7
+ id: zod.z.string().describe("The request ID echoed back from the JSON-RPC call."),
8
+ result: MozFetchMetadataIndex_IndexResultSchema.nullable(),
9
+ jsonrpc: zod.z.string().describe("JSON-RPC protocol version (should be '2.0').")
10
+ }).describe("Response from the metadata.index.fetch JSON-RPC call.");
11
+ const mozFetchMetadataIndex = require_action.action("MOZ_FETCH_METADATA_INDEX", {
12
+ slug: "moz-fetch-metadata-index",
13
+ name: "Fetch Metadata Index",
14
+ description: "Tool to fetch current index metadata from Moz via JSON-RPC. Returns an index ID that changes when the data in the index is updated. Use when you need to track index updates or verify the current index state.",
15
+ input: MozFetchMetadataIndexInput,
16
+ output: MozFetchMetadataIndexOutput
17
+ });
18
+ //#endregion
19
+ exports.mozFetchMetadataIndex = mozFetchMetadataIndex;
20
+
21
+ //# sourceMappingURL=fetch-metadata-index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-metadata-index.cjs","names":["z","action"],"sources":["../../src/actions/fetch-metadata-index.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MozFetchMetadataIndexInput: z.ZodTypeAny = z.object({\n request_id: z.string().describe(\"Optional unique identifier for the JSON-RPC request (min 24 chars). If not provided, a UUID will be generated automatically.\").optional(),\n}).describe(\"Request model for fetching index metadata.\\nThis is a JSON-RPC 2.0 call that requires minimal parameters.\");\nconst MozFetchMetadataIndex_IndexResultSchema: z.ZodTypeAny = z.object({\n index_id: z.string().describe(\"The current index ID that changes when data in the index is updated (base64 encoded string).\"),\n}).describe(\"Result object containing the index metadata.\");\nexport const MozFetchMetadataIndexOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The request ID echoed back from the JSON-RPC call.\"),\n result: MozFetchMetadataIndex_IndexResultSchema.nullable(),\n jsonrpc: z.string().describe(\"JSON-RPC protocol version (should be '2.0').\"),\n}).describe(\"Response from the metadata.index.fetch JSON-RPC call.\");\n\nexport const mozFetchMetadataIndex = action(\"MOZ_FETCH_METADATA_INDEX\", {\n slug: \"moz-fetch-metadata-index\",\n name: \"Fetch Metadata Index\",\n description: \"Tool to fetch current index metadata from Moz via JSON-RPC. Returns an index ID that changes when the data in the index is updated. Use when you need to track index updates or verify the current index state.\",\n input: MozFetchMetadataIndexInput,\n output: MozFetchMetadataIndexOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,EAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,EAC3K,CAAC,CAAC,CAAC,SAAS,2GAA2G;AACvH,MAAM,0CAAwDA,IAAAA,EAAE,OAAO,EACrE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,EAC9H,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC5E,QAAQ,wCAAwC,SAAS;CACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;AAC7E,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,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/fetch-metadata-index.d.ts
4
+ declare const MozFetchMetadataIndexInput: z.ZodTypeAny;
5
+ declare const MozFetchMetadataIndexOutput: z.ZodTypeAny;
6
+ declare const mozFetchMetadataIndex: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mozFetchMetadataIndex };
9
+ //# sourceMappingURL=fetch-metadata-index.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-metadata-index.d.cts","names":[],"sources":["../../src/actions/fetch-metadata-index.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAE6E;AAAA,cAI3G,2BAAA,EAA6B,CAAA,CAAE,UAIwB;AAAA,cAEvD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/fetch-metadata-index.d.ts
4
+ declare const MozFetchMetadataIndexInput: z.ZodTypeAny;
5
+ declare const MozFetchMetadataIndexOutput: z.ZodTypeAny;
6
+ declare const mozFetchMetadataIndex: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mozFetchMetadataIndex };
9
+ //# sourceMappingURL=fetch-metadata-index.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-metadata-index.d.mts","names":[],"sources":["../../src/actions/fetch-metadata-index.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAE6E;AAAA,cAI3G,2BAAA,EAA6B,CAAA,CAAE,UAIwB;AAAA,cAEvD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,20 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/fetch-metadata-index.ts
4
+ const MozFetchMetadataIndexInput = z.object({ request_id: z.string().describe("Optional unique identifier for the JSON-RPC request (min 24 chars). If not provided, a UUID will be generated automatically.").optional() }).describe("Request model for fetching index metadata.\nThis is a JSON-RPC 2.0 call that requires minimal parameters.");
5
+ const MozFetchMetadataIndex_IndexResultSchema = z.object({ index_id: z.string().describe("The current index ID that changes when data in the index is updated (base64 encoded string).") }).describe("Result object containing the index metadata.");
6
+ const mozFetchMetadataIndex = action("MOZ_FETCH_METADATA_INDEX", {
7
+ slug: "moz-fetch-metadata-index",
8
+ name: "Fetch Metadata Index",
9
+ description: "Tool to fetch current index metadata from Moz via JSON-RPC. Returns an index ID that changes when the data in the index is updated. Use when you need to track index updates or verify the current index state.",
10
+ input: MozFetchMetadataIndexInput,
11
+ output: z.object({
12
+ id: z.string().describe("The request ID echoed back from the JSON-RPC call."),
13
+ result: MozFetchMetadataIndex_IndexResultSchema.nullable(),
14
+ jsonrpc: z.string().describe("JSON-RPC protocol version (should be '2.0').")
15
+ }).describe("Response from the metadata.index.fetch JSON-RPC call.")
16
+ });
17
+ //#endregion
18
+ export { mozFetchMetadataIndex };
19
+
20
+ //# sourceMappingURL=fetch-metadata-index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-metadata-index.mjs","names":[],"sources":["../../src/actions/fetch-metadata-index.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MozFetchMetadataIndexInput: z.ZodTypeAny = z.object({\n request_id: z.string().describe(\"Optional unique identifier for the JSON-RPC request (min 24 chars). If not provided, a UUID will be generated automatically.\").optional(),\n}).describe(\"Request model for fetching index metadata.\\nThis is a JSON-RPC 2.0 call that requires minimal parameters.\");\nconst MozFetchMetadataIndex_IndexResultSchema: z.ZodTypeAny = z.object({\n index_id: z.string().describe(\"The current index ID that changes when data in the index is updated (base64 encoded string).\"),\n}).describe(\"Result object containing the index metadata.\");\nexport const MozFetchMetadataIndexOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The request ID echoed back from the JSON-RPC call.\"),\n result: MozFetchMetadataIndex_IndexResultSchema.nullable(),\n jsonrpc: z.string().describe(\"JSON-RPC protocol version (should be '2.0').\"),\n}).describe(\"Response from the metadata.index.fetch JSON-RPC call.\");\n\nexport const mozFetchMetadataIndex = action(\"MOZ_FETCH_METADATA_INDEX\", {\n slug: \"moz-fetch-metadata-index\",\n name: \"Fetch Metadata Index\",\n description: \"Tool to fetch current index metadata from Moz via JSON-RPC. Returns an index ID that changes when the data in the index is updated. Use when you need to track index updates or verify the current index state.\",\n input: MozFetchMetadataIndexInput,\n output: MozFetchMetadataIndexOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,EAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS,EAC3K,CAAC,CAAC,CAAC,SAAS,2GAA2G;AACvH,MAAM,0CAAwD,EAAE,OAAO,EACrE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,EAC9H,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAO1D,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXuD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;EAC5E,QAAQ,wCAAwC,SAAS;EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC7E,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
@@ -0,0 +1,55 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/fetch-site-metrics.ts
4
+ const MozFetchSiteMetricsInput = zod.z.object({
5
+ request_id: zod.z.string().describe("Unique identifier for the JSON-RPC request (min 24 characters). Auto-generated if not provided.").optional(),
6
+ site_query: zod.z.object({
7
+ query: zod.z.string().describe("The domain or URL to fetch metrics for (e.g., 'moz.com', 'example.com')."),
8
+ scope: zod.z.enum([
9
+ "page",
10
+ "domain",
11
+ "subdomain",
12
+ "root_domain"
13
+ ]).default("domain").describe("The scope of the query. Use 'domain' for root domain metrics, 'page' for specific URL metrics.").optional()
14
+ }).describe("Site query parameters containing the target domain/URL and scope.")
15
+ }).describe("Request model for fetching site metrics via Moz JSON-RPC API.");
16
+ const MozFetchSiteMetrics_SiteMetricsSchema = zod.z.object({
17
+ page: zod.z.string().describe("The queried page URL.").nullable().optional(),
18
+ title: zod.z.string().describe("Page title if available.").nullable().optional(),
19
+ http_code: zod.z.number().int().describe("HTTP status code of the page.").nullable().optional(),
20
+ subdomain: zod.z.string().describe("The subdomain of the queried URL.").nullable().optional(),
21
+ spam_score: zod.z.number().describe("Spam Score (0-100). Higher scores indicate higher spam risk.").nullable().optional(),
22
+ root_domain: zod.z.string().describe("The root domain of the queried URL.").nullable().optional(),
23
+ last_crawled: zod.z.string().describe("Date when the page was last crawled by Moz (ISO 8601 format).").nullable().optional(),
24
+ pages_to_page: zod.z.number().int().describe("Total number of pages linking to this page.").nullable().optional(),
25
+ page_authority: zod.z.number().describe("Page Authority score (0-100). Predicts ranking potential of specific page.").nullable().optional(),
26
+ domain_authority: zod.z.number().describe("Domain Authority score (0-100). Predicts ranking potential of entire domain.").nullable().optional(),
27
+ pages_to_subdomain: zod.z.number().int().describe("Total number of pages linking to this subdomain.").nullable().optional(),
28
+ pages_to_root_domain: zod.z.number().int().describe("Total number of pages linking to this root domain.").nullable().optional(),
29
+ root_domains_to_page: zod.z.number().int().describe("Number of unique root domains linking to this page.").nullable().optional(),
30
+ external_pages_to_page: zod.z.number().int().describe("Number of external pages linking to this page.").nullable().optional(),
31
+ nofollow_pages_to_page: zod.z.number().int().describe("Number of nofollow pages linking to this page.").nullable().optional(),
32
+ root_domains_to_subdomain: zod.z.number().int().describe("Number of unique root domains linking to this subdomain.").nullable().optional(),
33
+ external_pages_to_subdomain: zod.z.number().int().describe("Number of external pages linking to this subdomain.").nullable().optional(),
34
+ nofollow_pages_to_subdomain: zod.z.number().int().describe("Number of nofollow pages linking to this subdomain.").nullable().optional(),
35
+ root_domains_to_root_domain: zod.z.number().int().describe("Number of unique root domains linking to this root domain.").nullable().optional(),
36
+ external_pages_to_root_domain: zod.z.number().int().describe("Number of external pages linking to this root domain.").nullable().optional(),
37
+ nofollow_pages_to_root_domain: zod.z.number().int().describe("Number of nofollow pages linking to this root domain.").nullable().optional()
38
+ }).describe("Site metrics data returned by Moz API.");
39
+ const MozFetchSiteMetricsOutput = zod.z.object({
40
+ id: zod.z.string().describe("Request identifier echoed from the request."),
41
+ error: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Error object if the request failed. Contains 'code' and 'message' fields.").nullable().optional(),
42
+ result: MozFetchSiteMetrics_SiteMetricsSchema.nullable().optional(),
43
+ jsonrpc: zod.z.string().describe("JSON-RPC version, always '2.0'.")
44
+ }).describe("Response model for site metrics fetch action.");
45
+ const mozFetchSiteMetrics = require_action.action("MOZ_FETCH_SITE_METRICS", {
46
+ slug: "moz-fetch-site-metrics",
47
+ name: "Fetch Site Metrics",
48
+ description: "Tool to fetch site metrics from Moz including Domain Authority, Page Authority, Spam Score, and link counts. Use when you need SEO metrics for a domain or specific URL. Returns comprehensive link and authority data.",
49
+ input: MozFetchSiteMetricsInput,
50
+ output: MozFetchSiteMetricsOutput
51
+ });
52
+ //#endregion
53
+ exports.mozFetchSiteMetrics = mozFetchSiteMetrics;
54
+
55
+ //# sourceMappingURL=fetch-site-metrics.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-site-metrics.cjs","names":["z","action"],"sources":["../../src/actions/fetch-site-metrics.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MozFetchSiteMetricsInput: z.ZodTypeAny = z.object({\n request_id: z.string().describe(\"Unique identifier for the JSON-RPC request (min 24 characters). Auto-generated if not provided.\").optional(),\n site_query: z.object({\n query: z.string().describe(\"The domain or URL to fetch metrics for (e.g., 'moz.com', 'example.com').\"),\n scope: z.enum([\"page\", \"domain\", \"subdomain\", \"root_domain\"]).default(\"domain\").describe(\"The scope of the query. Use 'domain' for root domain metrics, 'page' for specific URL metrics.\").optional(),\n}).describe(\"Site query parameters containing the target domain/URL and scope.\"),\n}).describe(\"Request model for fetching site metrics via Moz JSON-RPC API.\");\nconst MozFetchSiteMetrics_SiteMetricsSchema: z.ZodTypeAny = z.object({\n page: z.string().describe(\"The queried page URL.\").nullable().optional(),\n title: z.string().describe(\"Page title if available.\").nullable().optional(),\n http_code: z.number().int().describe(\"HTTP status code of the page.\").nullable().optional(),\n subdomain: z.string().describe(\"The subdomain of the queried URL.\").nullable().optional(),\n spam_score: z.number().describe(\"Spam Score (0-100). Higher scores indicate higher spam risk.\").nullable().optional(),\n root_domain: z.string().describe(\"The root domain of the queried URL.\").nullable().optional(),\n last_crawled: z.string().describe(\"Date when the page was last crawled by Moz (ISO 8601 format).\").nullable().optional(),\n pages_to_page: z.number().int().describe(\"Total number of pages linking to this page.\").nullable().optional(),\n page_authority: z.number().describe(\"Page Authority score (0-100). Predicts ranking potential of specific page.\").nullable().optional(),\n domain_authority: z.number().describe(\"Domain Authority score (0-100). Predicts ranking potential of entire domain.\").nullable().optional(),\n pages_to_subdomain: z.number().int().describe(\"Total number of pages linking to this subdomain.\").nullable().optional(),\n pages_to_root_domain: z.number().int().describe(\"Total number of pages linking to this root domain.\").nullable().optional(),\n root_domains_to_page: z.number().int().describe(\"Number of unique root domains linking to this page.\").nullable().optional(),\n external_pages_to_page: z.number().int().describe(\"Number of external pages linking to this page.\").nullable().optional(),\n nofollow_pages_to_page: z.number().int().describe(\"Number of nofollow pages linking to this page.\").nullable().optional(),\n root_domains_to_subdomain: z.number().int().describe(\"Number of unique root domains linking to this subdomain.\").nullable().optional(),\n external_pages_to_subdomain: z.number().int().describe(\"Number of external pages linking to this subdomain.\").nullable().optional(),\n nofollow_pages_to_subdomain: z.number().int().describe(\"Number of nofollow pages linking to this subdomain.\").nullable().optional(),\n root_domains_to_root_domain: z.number().int().describe(\"Number of unique root domains linking to this root domain.\").nullable().optional(),\n external_pages_to_root_domain: z.number().int().describe(\"Number of external pages linking to this root domain.\").nullable().optional(),\n nofollow_pages_to_root_domain: z.number().int().describe(\"Number of nofollow pages linking to this root domain.\").nullable().optional(),\n}).describe(\"Site metrics data returned by Moz API.\");\nexport const MozFetchSiteMetricsOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Request identifier echoed from the request.\"),\n error: z.record(z.string(), z.unknown()).describe(\"Error object if the request failed. Contains 'code' and 'message' fields.\").nullable().optional(),\n result: MozFetchSiteMetrics_SiteMetricsSchema.nullable().optional(),\n jsonrpc: z.string().describe(\"JSON-RPC version, always '2.0'.\"),\n}).describe(\"Response model for site metrics fetch action.\");\n\nexport const mozFetchSiteMetrics = action(\"MOZ_FETCH_SITE_METRICS\", {\n slug: \"moz-fetch-site-metrics\",\n name: \"Fetch Site Metrics\",\n description: \"Tool to fetch site metrics from Moz including Domain Authority, Page Authority, Spam Score, and link counts. Use when you need SEO metrics for a domain or specific URL. Returns comprehensive link and authority data.\",\n input: MozFetchSiteMetricsInput,\n output: MozFetchSiteMetricsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC5I,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACrG,OAAOA,IAAAA,EAAE,KAAK;GAAC;GAAQ;GAAU;GAAa;EAAa,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACtM,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAaA,IAAAA,EAAE,OAAO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AAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxI,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACrE,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,QAAQ,sCAAsC,SAAS,CAAC,CAAC,SAAS;CAClE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAChE,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,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/fetch-site-metrics.d.ts
4
+ declare const MozFetchSiteMetricsInput: z.ZodTypeAny;
5
+ declare const MozFetchSiteMetricsOutput: z.ZodTypeAny;
6
+ declare const mozFetchSiteMetrics: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mozFetchSiteMetrics };
9
+ //# sourceMappingURL=fetch-site-metrics.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-site-metrics.d.cts","names":[],"sources":["../../src/actions/fetch-site-metrics.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAMmC;AAAA,cAwB/D,yBAAA,EAA2B,CAAA,CAAE,UAKkB;AAAA,cAE/C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/fetch-site-metrics.d.ts
4
+ declare const MozFetchSiteMetricsInput: z.ZodTypeAny;
5
+ declare const MozFetchSiteMetricsOutput: z.ZodTypeAny;
6
+ declare const mozFetchSiteMetrics: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mozFetchSiteMetrics };
9
+ //# sourceMappingURL=fetch-site-metrics.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-site-metrics.d.mts","names":[],"sources":["../../src/actions/fetch-site-metrics.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAMmC;AAAA,cAwB/D,yBAAA,EAA2B,CAAA,CAAE,UAKkB;AAAA,cAE/C,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,54 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/fetch-site-metrics.ts
4
+ const MozFetchSiteMetricsInput = z.object({
5
+ request_id: z.string().describe("Unique identifier for the JSON-RPC request (min 24 characters). Auto-generated if not provided.").optional(),
6
+ site_query: z.object({
7
+ query: z.string().describe("The domain or URL to fetch metrics for (e.g., 'moz.com', 'example.com')."),
8
+ scope: z.enum([
9
+ "page",
10
+ "domain",
11
+ "subdomain",
12
+ "root_domain"
13
+ ]).default("domain").describe("The scope of the query. Use 'domain' for root domain metrics, 'page' for specific URL metrics.").optional()
14
+ }).describe("Site query parameters containing the target domain/URL and scope.")
15
+ }).describe("Request model for fetching site metrics via Moz JSON-RPC API.");
16
+ const MozFetchSiteMetrics_SiteMetricsSchema = z.object({
17
+ page: z.string().describe("The queried page URL.").nullable().optional(),
18
+ title: z.string().describe("Page title if available.").nullable().optional(),
19
+ http_code: z.number().int().describe("HTTP status code of the page.").nullable().optional(),
20
+ subdomain: z.string().describe("The subdomain of the queried URL.").nullable().optional(),
21
+ spam_score: z.number().describe("Spam Score (0-100). Higher scores indicate higher spam risk.").nullable().optional(),
22
+ root_domain: z.string().describe("The root domain of the queried URL.").nullable().optional(),
23
+ last_crawled: z.string().describe("Date when the page was last crawled by Moz (ISO 8601 format).").nullable().optional(),
24
+ pages_to_page: z.number().int().describe("Total number of pages linking to this page.").nullable().optional(),
25
+ page_authority: z.number().describe("Page Authority score (0-100). Predicts ranking potential of specific page.").nullable().optional(),
26
+ domain_authority: z.number().describe("Domain Authority score (0-100). Predicts ranking potential of entire domain.").nullable().optional(),
27
+ pages_to_subdomain: z.number().int().describe("Total number of pages linking to this subdomain.").nullable().optional(),
28
+ pages_to_root_domain: z.number().int().describe("Total number of pages linking to this root domain.").nullable().optional(),
29
+ root_domains_to_page: z.number().int().describe("Number of unique root domains linking to this page.").nullable().optional(),
30
+ external_pages_to_page: z.number().int().describe("Number of external pages linking to this page.").nullable().optional(),
31
+ nofollow_pages_to_page: z.number().int().describe("Number of nofollow pages linking to this page.").nullable().optional(),
32
+ root_domains_to_subdomain: z.number().int().describe("Number of unique root domains linking to this subdomain.").nullable().optional(),
33
+ external_pages_to_subdomain: z.number().int().describe("Number of external pages linking to this subdomain.").nullable().optional(),
34
+ nofollow_pages_to_subdomain: z.number().int().describe("Number of nofollow pages linking to this subdomain.").nullable().optional(),
35
+ root_domains_to_root_domain: z.number().int().describe("Number of unique root domains linking to this root domain.").nullable().optional(),
36
+ external_pages_to_root_domain: z.number().int().describe("Number of external pages linking to this root domain.").nullable().optional(),
37
+ nofollow_pages_to_root_domain: z.number().int().describe("Number of nofollow pages linking to this root domain.").nullable().optional()
38
+ }).describe("Site metrics data returned by Moz API.");
39
+ const mozFetchSiteMetrics = action("MOZ_FETCH_SITE_METRICS", {
40
+ slug: "moz-fetch-site-metrics",
41
+ name: "Fetch Site Metrics",
42
+ description: "Tool to fetch site metrics from Moz including Domain Authority, Page Authority, Spam Score, and link counts. Use when you need SEO metrics for a domain or specific URL. Returns comprehensive link and authority data.",
43
+ input: MozFetchSiteMetricsInput,
44
+ output: z.object({
45
+ id: z.string().describe("Request identifier echoed from the request."),
46
+ error: z.record(z.string(), z.unknown()).describe("Error object if the request failed. Contains 'code' and 'message' fields.").nullable().optional(),
47
+ result: MozFetchSiteMetrics_SiteMetricsSchema.nullable().optional(),
48
+ jsonrpc: z.string().describe("JSON-RPC version, always '2.0'.")
49
+ }).describe("Response model for site metrics fetch action.")
50
+ });
51
+ //#endregion
52
+ export { mozFetchSiteMetrics };
53
+
54
+ //# sourceMappingURL=fetch-site-metrics.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetch-site-metrics.mjs","names":[],"sources":["../../src/actions/fetch-site-metrics.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MozFetchSiteMetricsInput: z.ZodTypeAny = z.object({\n request_id: z.string().describe(\"Unique identifier for the JSON-RPC request (min 24 characters). Auto-generated if not provided.\").optional(),\n site_query: z.object({\n query: z.string().describe(\"The domain or URL to fetch metrics for (e.g., 'moz.com', 'example.com').\"),\n scope: z.enum([\"page\", \"domain\", \"subdomain\", \"root_domain\"]).default(\"domain\").describe(\"The scope of the query. Use 'domain' for root domain metrics, 'page' for specific URL metrics.\").optional(),\n}).describe(\"Site query parameters containing the target domain/URL and scope.\"),\n}).describe(\"Request model for fetching site metrics via Moz JSON-RPC API.\");\nconst MozFetchSiteMetrics_SiteMetricsSchema: z.ZodTypeAny = z.object({\n page: z.string().describe(\"The queried page URL.\").nullable().optional(),\n title: z.string().describe(\"Page title if available.\").nullable().optional(),\n http_code: z.number().int().describe(\"HTTP status code of the page.\").nullable().optional(),\n subdomain: z.string().describe(\"The subdomain of the queried URL.\").nullable().optional(),\n spam_score: z.number().describe(\"Spam Score (0-100). Higher scores indicate higher spam risk.\").nullable().optional(),\n root_domain: z.string().describe(\"The root domain of the queried URL.\").nullable().optional(),\n last_crawled: z.string().describe(\"Date when the page was last crawled by Moz (ISO 8601 format).\").nullable().optional(),\n pages_to_page: z.number().int().describe(\"Total number of pages linking to this page.\").nullable().optional(),\n page_authority: z.number().describe(\"Page Authority score (0-100). Predicts ranking potential of specific page.\").nullable().optional(),\n domain_authority: z.number().describe(\"Domain Authority score (0-100). Predicts ranking potential of entire domain.\").nullable().optional(),\n pages_to_subdomain: z.number().int().describe(\"Total number of pages linking to this subdomain.\").nullable().optional(),\n pages_to_root_domain: z.number().int().describe(\"Total number of pages linking to this root domain.\").nullable().optional(),\n root_domains_to_page: z.number().int().describe(\"Number of unique root domains linking to this page.\").nullable().optional(),\n external_pages_to_page: z.number().int().describe(\"Number of external pages linking to this page.\").nullable().optional(),\n nofollow_pages_to_page: z.number().int().describe(\"Number of nofollow pages linking to this page.\").nullable().optional(),\n root_domains_to_subdomain: z.number().int().describe(\"Number of unique root domains linking to this subdomain.\").nullable().optional(),\n external_pages_to_subdomain: z.number().int().describe(\"Number of external pages linking to this subdomain.\").nullable().optional(),\n nofollow_pages_to_subdomain: z.number().int().describe(\"Number of nofollow pages linking to this subdomain.\").nullable().optional(),\n root_domains_to_root_domain: z.number().int().describe(\"Number of unique root domains linking to this root domain.\").nullable().optional(),\n external_pages_to_root_domain: z.number().int().describe(\"Number of external pages linking to this root domain.\").nullable().optional(),\n nofollow_pages_to_root_domain: z.number().int().describe(\"Number of nofollow pages linking to this root domain.\").nullable().optional(),\n}).describe(\"Site metrics data returned by Moz API.\");\nexport const MozFetchSiteMetricsOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Request identifier echoed from the request.\"),\n error: z.record(z.string(), z.unknown()).describe(\"Error object if the request failed. Contains 'code' and 'message' fields.\").nullable().optional(),\n result: MozFetchSiteMetrics_SiteMetricsSchema.nullable().optional(),\n jsonrpc: z.string().describe(\"JSON-RPC version, always '2.0'.\"),\n}).describe(\"Response model for site metrics fetch action.\");\n\nexport const mozFetchSiteMetrics = action(\"MOZ_FETCH_SITE_METRICS\", {\n slug: \"moz-fetch-site-metrics\",\n name: \"Fetch Site Metrics\",\n description: \"Tool to fetch site metrics from Moz including Domain Authority, Page Authority, Spam Score, and link counts. Use when you need SEO metrics for a domain or specific URL. Returns comprehensive link and authority data.\",\n input: MozFetchSiteMetricsInput,\n output: MozFetchSiteMetricsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC5I,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EACrG,OAAO,EAAE,KAAK;GAAC;GAAQ;GAAU;GAAa;EAAa,CAAC,CAAC,CAAC,QAAQ,QAAQ,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACtM,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,wCAAsD,EAAE,OAAO;CACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvE,OAAO,E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-0,0 +1,36 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-global-top-root-domains.ts
4
+ const MozGetGlobalTopRootDomainsInput = zod.z.object({
5
+ limit: zod.z.number().int().describe("Maximum number of results to return (1-500). Controls how many top domains are included in the response.").optional(),
6
+ next_token: zod.z.string().describe("Cursor for fetching the next set of results from a previous request. If set, return the next page of results.").optional()
7
+ }).describe("Request model for fetching global top root domains.");
8
+ const MozGetGlobalTopRootDomains_ToTargetSchema = zod.z.object({
9
+ pages: zod.z.number().int().describe("Total number of pages linking to this domain.").nullable().optional(),
10
+ deleted_pages: zod.z.number().int().describe("Number of deleted pages that previously linked to this domain.").nullable().optional(),
11
+ nofollow_pages: zod.z.number().int().describe("Number of nofollow pages linking to this domain.").nullable().optional(),
12
+ redirect_pages: zod.z.number().int().describe("Number of redirect pages linking to this domain.").nullable().optional()
13
+ }).describe("Link target metrics for a root domain.");
14
+ const MozGetGlobalTopRootDomains_RootDomainInfoSchema = zod.z.object({
15
+ to_target: MozGetGlobalTopRootDomains_ToTargetSchema.nullable().optional(),
16
+ spam_score: zod.z.number().describe("Moz Spam Score for this domain. Lower scores indicate less spam.").nullable().optional(),
17
+ root_domain: zod.z.string().describe("The root domain name.").nullable().optional(),
18
+ link_propensity: zod.z.number().describe("Link propensity metric for this domain.").nullable().optional(),
19
+ domain_authority: zod.z.number().describe("Moz Domain Authority score (0-100). Higher scores indicate stronger authority.").nullable().optional(),
20
+ root_domains_to_root_domain: zod.z.number().int().describe("Number of root domains linking to this domain (linking domains count).").nullable().optional()
21
+ }).describe("Information about a single root domain from Moz API.");
22
+ const MozGetGlobalTopRootDomainsOutput = zod.z.object({
23
+ results: zod.z.array(MozGetGlobalTopRootDomains_RootDomainInfoSchema).describe("List of top root domains sorted by descending Domain Authority."),
24
+ next_token: zod.z.string().describe("Token for next page of results, if available. Non-empty when results were limited by the 'limit' parameter.").nullable().optional()
25
+ }).describe("Response model for global top root domains listing.");
26
+ const mozGetGlobalTopRootDomains = require_action.action("MOZ_GET_GLOBAL_TOP_ROOT_DOMAINS", {
27
+ slug: "moz-get-global-top-root-domains",
28
+ name: "Get Global Top Root Domains",
29
+ description: "Tool to get the top 500 root domains across the entire web index sorted by Domain Authority. Returns the highest authority domains globally with Domain Authority, Spam Score, and linking domains count. Use when you need to identify the most authoritative domains on the web.",
30
+ input: MozGetGlobalTopRootDomainsInput,
31
+ output: MozGetGlobalTopRootDomainsOutput
32
+ });
33
+ //#endregion
34
+ exports.mozGetGlobalTopRootDomains = mozGetGlobalTopRootDomains;
35
+
36
+ //# sourceMappingURL=get-global-top-root-domains.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-global-top-root-domains.cjs","names":["z","action"],"sources":["../../src/actions/get-global-top-root-domains.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MozGetGlobalTopRootDomainsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of results to return (1-500). Controls how many top domains are included in the response.\").optional(),\n next_token: z.string().describe(\"Cursor for fetching the next set of results from a previous request. If set, return the next page of results.\").optional(),\n}).describe(\"Request model for fetching global top root domains.\");\nconst MozGetGlobalTopRootDomains_ToTargetSchema: z.ZodTypeAny = z.object({\n pages: z.number().int().describe(\"Total number of pages linking to this domain.\").nullable().optional(),\n deleted_pages: z.number().int().describe(\"Number of deleted pages that previously linked to this domain.\").nullable().optional(),\n nofollow_pages: z.number().int().describe(\"Number of nofollow pages linking to this domain.\").nullable().optional(),\n redirect_pages: z.number().int().describe(\"Number of redirect pages linking to this domain.\").nullable().optional(),\n}).describe(\"Link target metrics for a root domain.\");\nconst MozGetGlobalTopRootDomains_RootDomainInfoSchema: z.ZodTypeAny = z.object({\n to_target: MozGetGlobalTopRootDomains_ToTargetSchema.nullable().optional(),\n spam_score: z.number().describe(\"Moz Spam Score for this domain. Lower scores indicate less spam.\").nullable().optional(),\n root_domain: z.string().describe(\"The root domain name.\").nullable().optional(),\n link_propensity: z.number().describe(\"Link propensity metric for this domain.\").nullable().optional(),\n domain_authority: z.number().describe(\"Moz Domain Authority score (0-100). Higher scores indicate stronger authority.\").nullable().optional(),\n root_domains_to_root_domain: z.number().int().describe(\"Number of root domains linking to this domain (linking domains count).\").nullable().optional(),\n}).describe(\"Information about a single root domain from Moz API.\");\nexport const MozGetGlobalTopRootDomainsOutput: z.ZodTypeAny = z.object({\n results: z.array(MozGetGlobalTopRootDomains_RootDomainInfoSchema).describe(\"List of top root domains sorted by descending Domain Authority.\"),\n next_token: z.string().describe(\"Token for next page of results, if available. Non-empty when results were limited by the 'limit' parameter.\").nullable().optional(),\n}).describe(\"Response model for global top root domains listing.\");\n\nexport const mozGetGlobalTopRootDomains = action(\"MOZ_GET_GLOBAL_TOP_ROOT_DOMAINS\", {\n slug: \"moz-get-global-top-root-domains\",\n name: \"Get Global Top Root Domains\",\n description: \"Tool to get the top 500 root domains across the entire web index sorted by Domain Authority. Returns the highest authority domains globally with Domain Authority, Spam Score, and linking domains count. Use when you need to identify the most authoritative domains on the web.\",\n input: MozGetGlobalTopRootDomainsInput,\n output: MozGetGlobalTopRootDomainsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACtJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CA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AAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-global-top-root-domains.d.ts
4
+ declare const MozGetGlobalTopRootDomainsInput: z.ZodTypeAny;
5
+ declare const MozGetGlobalTopRootDomainsOutput: z.ZodTypeAny;
6
+ declare const mozGetGlobalTopRootDomains: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mozGetGlobalTopRootDomains };
9
+ //# sourceMappingURL=get-global-top-root-domains.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-global-top-root-domains.d.cts","names":[],"sources":["../../src/actions/get-global-top-root-domains.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAGkB;AAAA,cAerD,gCAAA,EAAkC,CAAA,CAAE,UAGiB;AAAA,cAErD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-global-top-root-domains.d.ts
4
+ declare const MozGetGlobalTopRootDomainsInput: z.ZodTypeAny;
5
+ declare const MozGetGlobalTopRootDomainsOutput: z.ZodTypeAny;
6
+ declare const mozGetGlobalTopRootDomains: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mozGetGlobalTopRootDomains };
9
+ //# sourceMappingURL=get-global-top-root-domains.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-global-top-root-domains.d.mts","names":[],"sources":["../../src/actions/get-global-top-root-domains.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAGkB;AAAA,cAerD,gCAAA,EAAkC,CAAA,CAAE,UAGiB;AAAA,cAErD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,35 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-global-top-root-domains.ts
4
+ const MozGetGlobalTopRootDomainsInput = z.object({
5
+ limit: z.number().int().describe("Maximum number of results to return (1-500). Controls how many top domains are included in the response.").optional(),
6
+ next_token: z.string().describe("Cursor for fetching the next set of results from a previous request. If set, return the next page of results.").optional()
7
+ }).describe("Request model for fetching global top root domains.");
8
+ const MozGetGlobalTopRootDomains_ToTargetSchema = z.object({
9
+ pages: z.number().int().describe("Total number of pages linking to this domain.").nullable().optional(),
10
+ deleted_pages: z.number().int().describe("Number of deleted pages that previously linked to this domain.").nullable().optional(),
11
+ nofollow_pages: z.number().int().describe("Number of nofollow pages linking to this domain.").nullable().optional(),
12
+ redirect_pages: z.number().int().describe("Number of redirect pages linking to this domain.").nullable().optional()
13
+ }).describe("Link target metrics for a root domain.");
14
+ const MozGetGlobalTopRootDomains_RootDomainInfoSchema = z.object({
15
+ to_target: MozGetGlobalTopRootDomains_ToTargetSchema.nullable().optional(),
16
+ spam_score: z.number().describe("Moz Spam Score for this domain. Lower scores indicate less spam.").nullable().optional(),
17
+ root_domain: z.string().describe("The root domain name.").nullable().optional(),
18
+ link_propensity: z.number().describe("Link propensity metric for this domain.").nullable().optional(),
19
+ domain_authority: z.number().describe("Moz Domain Authority score (0-100). Higher scores indicate stronger authority.").nullable().optional(),
20
+ root_domains_to_root_domain: z.number().int().describe("Number of root domains linking to this domain (linking domains count).").nullable().optional()
21
+ }).describe("Information about a single root domain from Moz API.");
22
+ const mozGetGlobalTopRootDomains = action("MOZ_GET_GLOBAL_TOP_ROOT_DOMAINS", {
23
+ slug: "moz-get-global-top-root-domains",
24
+ name: "Get Global Top Root Domains",
25
+ description: "Tool to get the top 500 root domains across the entire web index sorted by Domain Authority. Returns the highest authority domains globally with Domain Authority, Spam Score, and linking domains count. Use when you need to identify the most authoritative domains on the web.",
26
+ input: MozGetGlobalTopRootDomainsInput,
27
+ output: z.object({
28
+ results: z.array(MozGetGlobalTopRootDomains_RootDomainInfoSchema).describe("List of top root domains sorted by descending Domain Authority."),
29
+ next_token: z.string().describe("Token for next page of results, if available. Non-empty when results were limited by the 'limit' parameter.").nullable().optional()
30
+ }).describe("Response model for global top root domains listing.")
31
+ });
32
+ //#endregion
33
+ export { mozGetGlobalTopRootDomains };
34
+
35
+ //# sourceMappingURL=get-global-top-root-domains.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-global-top-root-domains.mjs","names":[],"sources":["../../src/actions/get-global-top-root-domains.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MozGetGlobalTopRootDomainsInput: z.ZodTypeAny = z.object({\n limit: z.number().int().describe(\"Maximum number of results to return (1-500). Controls how many top domains are included in the response.\").optional(),\n next_token: z.string().describe(\"Cursor for fetching the next set of results from a previous request. If set, return the next page of results.\").optional(),\n}).describe(\"Request model for fetching global top root domains.\");\nconst MozGetGlobalTopRootDomains_ToTargetSchema: z.ZodTypeAny = z.object({\n pages: z.number().int().describe(\"Total number of pages linking to this domain.\").nullable().optional(),\n deleted_pages: z.number().int().describe(\"Number of deleted pages that previously linked to this domain.\").nullable().optional(),\n nofollow_pages: z.number().int().describe(\"Number of nofollow pages linking to this domain.\").nullable().optional(),\n redirect_pages: z.number().int().describe(\"Number of redirect pages linking to this domain.\").nullable().optional(),\n}).describe(\"Link target metrics for a root domain.\");\nconst MozGetGlobalTopRootDomains_RootDomainInfoSchema: z.ZodTypeAny = z.object({\n to_target: MozGetGlobalTopRootDomains_ToTargetSchema.nullable().optional(),\n spam_score: z.number().describe(\"Moz Spam Score for this domain. Lower scores indicate less spam.\").nullable().optional(),\n root_domain: z.string().describe(\"The root domain name.\").nullable().optional(),\n link_propensity: z.number().describe(\"Link propensity metric for this domain.\").nullable().optional(),\n domain_authority: z.number().describe(\"Moz Domain Authority score (0-100). Higher scores indicate stronger authority.\").nullable().optional(),\n root_domains_to_root_domain: z.number().int().describe(\"Number of root domains linking to this domain (linking domains count).\").nullable().optional(),\n}).describe(\"Information about a single root domain from Moz API.\");\nexport const MozGetGlobalTopRootDomainsOutput: z.ZodTypeAny = z.object({\n results: z.array(MozGetGlobalTopRootDomains_RootDomainInfoSchema).describe(\"List of top root domains sorted by descending Domain Authority.\"),\n next_token: z.string().describe(\"Token for next page of results, if available. Non-empty when results were limited by the 'limit' parameter.\").nullable().optional(),\n}).describe(\"Response model for global top root domains listing.\");\n\nexport const mozGetGlobalTopRootDomains = action(\"MOZ_GET_GLOBAL_TOP_ROOT_DOMAINS\", {\n slug: \"moz-get-global-top-root-domains\",\n name: \"Get Global Top Root Domains\",\n description: \"Tool to get the top 500 root domains across the entire web index sorted by Domain Authority. Returns the highest authority domains globally with Domain Authority, Spam Score, and linking domains count. Use when you need to identify the most authoritative domains on the web.\",\n input: MozGetGlobalTopRootDomainsInput,\n output: MozGetGlobalTopRootDomainsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACtJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,4CAA0D,EAAE,OAAO;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,kDAAgE,EAAE,OAAO;CAC7E,WAAW,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,6BAA6B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAMlE,MAAa,6BAA6B,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4D,EAAE,OAAO;EACrE,SAAS,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,iEAAiE;EAC5I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrK,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-usage-data.ts
4
+ const MozGetUsageDataInput = zod.z.object({
5
+ end: zod.z.string().describe("End of time period in Unix time (seconds since 1970-01-01 UTC). Default is current time.").optional(),
6
+ start: zod.z.string().describe("Start of time period in Unix time (seconds since 1970-01-01 UTC). Default is start of current month.").optional()
7
+ }).describe("Request model for fetching API usage data from Moz.");
8
+ const MozGetUsageDataOutput = zod.z.object({ rows_consumed: zod.z.number().describe("Number of rows consumed in the specified time period") }).describe("Response model for API usage data.");
9
+ const mozGetUsageData = require_action.action("MOZ_GET_USAGE_DATA", {
10
+ slug: "moz-get-usage-data",
11
+ name: "Get API Usage Data",
12
+ description: "Tool to get API usage data including the number of rows consumed. Use when you need to track API usage for a specific time range or the current billing period.",
13
+ input: MozGetUsageDataInput,
14
+ output: MozGetUsageDataOutput
15
+ });
16
+ //#endregion
17
+ exports.mozGetUsageData = mozGetUsageData;
18
+
19
+ //# sourceMappingURL=get-usage-data.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-usage-data.cjs","names":["z","action"],"sources":["../../src/actions/get-usage-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MozGetUsageDataInput: z.ZodTypeAny = z.object({\n end: z.string().describe(\"End of time period in Unix time (seconds since 1970-01-01 UTC). Default is current time.\").optional(),\n start: z.string().describe(\"Start of time period in Unix time (seconds since 1970-01-01 UTC). Default is start of current month.\").optional(),\n}).describe(\"Request model for fetching API usage data from Moz.\");\nexport const MozGetUsageDataOutput: z.ZodTypeAny = z.object({\n rows_consumed: z.number().describe(\"Number of rows consumed in the specified time period\"),\n}).describe(\"Response model for API usage data.\");\n\nexport const mozGetUsageData = action(\"MOZ_GET_USAGE_DATA\", {\n slug: \"moz-get-usage-data\",\n name: \"Get API Usage Data\",\n description: \"Tool to get API usage data including the number of rows consumed. Use when you need to track API usage for a specific time range or the current billing period.\",\n input: MozGetUsageDataInput,\n output: MozGetUsageDataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CAC9H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAa,wBAAsCA,IAAAA,EAAE,OAAO,EAC1D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,EAC3F,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAEhD,MAAa,kBAAkBC,eAAAA,OAAO,sBAAsB;CAC1D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-usage-data.d.ts
4
+ declare const MozGetUsageDataInput: z.ZodTypeAny;
5
+ declare const MozGetUsageDataOutput: z.ZodTypeAny;
6
+ declare const mozGetUsageData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mozGetUsageData };
9
+ //# sourceMappingURL=get-usage-data.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-usage-data.d.cts","names":[],"sources":["../../src/actions/get-usage-data.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAG6B;AAAA,cACrD,qBAAA,EAAuB,CAAA,CAAE,UAEW;AAAA,cAEpC,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-usage-data.d.ts
4
+ declare const MozGetUsageDataInput: z.ZodTypeAny;
5
+ declare const MozGetUsageDataOutput: z.ZodTypeAny;
6
+ declare const mozGetUsageData: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { mozGetUsageData };
9
+ //# sourceMappingURL=get-usage-data.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-usage-data.d.mts","names":[],"sources":["../../src/actions/get-usage-data.ts"],"mappings":";;;cAIa,oBAAA,EAAsB,CAAA,CAAE,UAG6B;AAAA,cACrD,qBAAA,EAAuB,CAAA,CAAE,UAEW;AAAA,cAEpC,eAAA,gCAAe,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const mozGetUsageData = action("MOZ_GET_USAGE_DATA", {
4
+ slug: "moz-get-usage-data",
5
+ name: "Get API Usage Data",
6
+ description: "Tool to get API usage data including the number of rows consumed. Use when you need to track API usage for a specific time range or the current billing period.",
7
+ input: z.object({
8
+ end: z.string().describe("End of time period in Unix time (seconds since 1970-01-01 UTC). Default is current time.").optional(),
9
+ start: z.string().describe("Start of time period in Unix time (seconds since 1970-01-01 UTC). Default is start of current month.").optional()
10
+ }).describe("Request model for fetching API usage data from Moz."),
11
+ output: z.object({ rows_consumed: z.number().describe("Number of rows consumed in the specified time period") }).describe("Response model for API usage data.")
12
+ });
13
+ //#endregion
14
+ export { mozGetUsageData };
15
+
16
+ //# sourceMappingURL=get-usage-data.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-usage-data.mjs","names":[],"sources":["../../src/actions/get-usage-data.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MozGetUsageDataInput: z.ZodTypeAny = z.object({\n end: z.string().describe(\"End of time period in Unix time (seconds since 1970-01-01 UTC). Default is current time.\").optional(),\n start: z.string().describe(\"Start of time period in Unix time (seconds since 1970-01-01 UTC). Default is start of current month.\").optional(),\n}).describe(\"Request model for fetching API usage data from Moz.\");\nexport const MozGetUsageDataOutput: z.ZodTypeAny = z.object({\n rows_consumed: z.number().describe(\"Number of rows consumed in the specified time period\"),\n}).describe(\"Response model for API usage data.\");\n\nexport const mozGetUsageData = action(\"MOZ_GET_USAGE_DATA\", {\n slug: \"moz-get-usage-data\",\n name: \"Get API Usage Data\",\n description: \"Tool to get API usage data including the number of rows consumed. Use when you need to track API usage for a specific time range or the current billing period.\",\n input: MozGetUsageDataInput,\n output: MozGetUsageDataOutput,\n});\n"],"mappings":";;AAYA,MAAa,kBAAkB,OAAO,sBAAsB;CAC1D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;EAC9H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC9I,CAAC,CAAC,CAAC,SAAS,qDASH;CACP,QATiD,EAAE,OAAO,EAC1D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,EAC3F,CAAC,CAAC,CAAC,SAAS,oCAOF;AACV,CAAC"}
@@ -0,0 +1,37 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/global-top-pages.ts
4
+ const MozGlobalTopPagesInput = zod.z.object({
5
+ limit: zod.z.number().int().describe("Maximum number of results to return (1-50). Defaults to server default when omitted.").optional(),
6
+ next_token: zod.z.string().describe("Cursor for fetching the next page of results.").optional()
7
+ }).describe("Request model for fetching global top pages.");
8
+ const MozGlobalTopPages_PageInfoSchema = zod.z.object({
9
+ page: zod.z.string().describe("The page URL/identifier."),
10
+ title: zod.z.string().describe("The title of the page.").nullable().optional(),
11
+ http_code: zod.z.number().int().describe("HTTP status code of the page.").nullable().optional(),
12
+ subdomain: zod.z.string().describe("The subdomain of the page.").nullable().optional(),
13
+ spam_score: zod.z.number().describe("Moz Spam Score for the page.").nullable().optional(),
14
+ root_domain: zod.z.string().describe("The root domain of the page.").nullable().optional(),
15
+ last_crawled: zod.z.string().describe("Date the page was last crawled.").nullable().optional(),
16
+ pages_to_page: zod.z.number().int().describe("Count of pages linking to this page.").nullable().optional(),
17
+ page_authority: zod.z.number().describe("Moz Page Authority score (1-100).").nullable().optional(),
18
+ domain_authority: zod.z.number().describe("Moz Domain Authority score (1-100) of the page's domain.").nullable().optional(),
19
+ root_domains_to_page: zod.z.number().int().describe("Count of root domains linking to this page.").nullable().optional(),
20
+ external_pages_to_page: zod.z.number().int().describe("Count of external pages linking to this page.").nullable().optional(),
21
+ nofollow_pages_to_page: zod.z.number().int().describe("Count of nofollow pages linking to this page.").nullable().optional()
22
+ }).describe("Information about a single page from Moz API.");
23
+ const MozGlobalTopPagesOutput = zod.z.object({
24
+ results: zod.z.array(MozGlobalTopPages_PageInfoSchema).describe("List of top pages sorted by page authority."),
25
+ next_token: zod.z.string().describe("Token for next page of results, if available.").nullable().optional()
26
+ }).describe("Response model for global top pages listing.");
27
+ const mozGlobalTopPages = require_action.action("MOZ_GLOBAL_TOP_PAGES", {
28
+ slug: "moz-global-top-pages",
29
+ name: "Get Global Top Pages",
30
+ description: "Tool to fetch global top pages from Moz. Use when you need a paginated list of highest authority pages.",
31
+ input: MozGlobalTopPagesInput,
32
+ output: MozGlobalTopPagesOutput
33
+ });
34
+ //#endregion
35
+ exports.mozGlobalTopPages = mozGlobalTopPages;
36
+
37
+ //# sourceMappingURL=global-top-pages.cjs.map