@keystrokehq/plausible_analytics 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/check-health.cjs +19 -0
- package/dist/actions/check-health.cjs.map +1 -0
- package/dist/actions/check-health.d.cts +9 -0
- package/dist/actions/check-health.d.cts.map +1 -0
- package/dist/actions/check-health.d.mts +9 -0
- package/dist/actions/check-health.d.mts.map +1 -0
- package/dist/actions/check-health.mjs +16 -0
- package/dist/actions/check-health.mjs.map +1 -0
- package/dist/actions/get-breakdown-stats.cjs +55 -0
- package/dist/actions/get-breakdown-stats.cjs.map +1 -0
- package/dist/actions/get-breakdown-stats.d.cts +9 -0
- package/dist/actions/get-breakdown-stats.d.cts.map +1 -0
- package/dist/actions/get-breakdown-stats.d.mts +9 -0
- package/dist/actions/get-breakdown-stats.d.mts.map +1 -0
- package/dist/actions/get-breakdown-stats.mjs +54 -0
- package/dist/actions/get-breakdown-stats.mjs.map +1 -0
- package/dist/actions/get-plugin-capabilities.cjs +33 -0
- package/dist/actions/get-plugin-capabilities.cjs.map +1 -0
- package/dist/actions/get-plugin-capabilities.d.cts +9 -0
- package/dist/actions/get-plugin-capabilities.d.cts.map +1 -0
- package/dist/actions/get-plugin-capabilities.d.mts +9 -0
- package/dist/actions/get-plugin-capabilities.d.mts.map +1 -0
- package/dist/actions/get-plugin-capabilities.mjs +32 -0
- package/dist/actions/get-plugin-capabilities.mjs.map +1 -0
- package/dist/actions/get-realtime-visitors.cjs +16 -0
- package/dist/actions/get-realtime-visitors.cjs.map +1 -0
- package/dist/actions/get-realtime-visitors.d.cts +9 -0
- package/dist/actions/get-realtime-visitors.d.cts.map +1 -0
- package/dist/actions/get-realtime-visitors.d.mts +9 -0
- package/dist/actions/get-realtime-visitors.d.mts.map +1 -0
- package/dist/actions/get-realtime-visitors.mjs +13 -0
- package/dist/actions/get-realtime-visitors.mjs.map +1 -0
- package/dist/actions/get-site.cjs +33 -0
- package/dist/actions/get-site.cjs.map +1 -0
- package/dist/actions/get-site.d.cts +9 -0
- package/dist/actions/get-site.d.cts.map +1 -0
- package/dist/actions/get-site.d.mts +9 -0
- package/dist/actions/get-site.d.mts.map +1 -0
- package/dist/actions/get-site.mjs +32 -0
- package/dist/actions/get-site.mjs.map +1 -0
- package/dist/actions/get-timeseries-stats.cjs +34 -0
- package/dist/actions/get-timeseries-stats.cjs.map +1 -0
- package/dist/actions/get-timeseries-stats.d.cts +9 -0
- package/dist/actions/get-timeseries-stats.d.cts.map +1 -0
- package/dist/actions/get-timeseries-stats.d.mts +9 -0
- package/dist/actions/get-timeseries-stats.d.mts.map +1 -0
- package/dist/actions/get-timeseries-stats.mjs +33 -0
- package/dist/actions/get-timeseries-stats.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/list-custom-props.cjs +17 -0
- package/dist/actions/list-custom-props.cjs.map +1 -0
- package/dist/actions/list-custom-props.d.cts +9 -0
- package/dist/actions/list-custom-props.d.cts.map +1 -0
- package/dist/actions/list-custom-props.d.mts +9 -0
- package/dist/actions/list-custom-props.d.mts.map +1 -0
- package/dist/actions/list-custom-props.mjs +16 -0
- package/dist/actions/list-custom-props.mjs.map +1 -0
- package/dist/actions/list-goals.cjs +37 -0
- package/dist/actions/list-goals.cjs.map +1 -0
- package/dist/actions/list-goals.d.cts +9 -0
- package/dist/actions/list-goals.d.cts.map +1 -0
- package/dist/actions/list-goals.d.mts +9 -0
- package/dist/actions/list-goals.d.mts.map +1 -0
- package/dist/actions/list-goals.mjs +36 -0
- package/dist/actions/list-goals.mjs.map +1 -0
- package/dist/actions/list-guests.cjs +21 -0
- package/dist/actions/list-guests.cjs.map +1 -0
- package/dist/actions/list-guests.d.cts +9 -0
- package/dist/actions/list-guests.d.cts.map +1 -0
- package/dist/actions/list-guests.d.mts +9 -0
- package/dist/actions/list-guests.d.mts.map +1 -0
- package/dist/actions/list-guests.mjs +20 -0
- package/dist/actions/list-guests.mjs.map +1 -0
- package/dist/actions/list-sites.cjs +33 -0
- package/dist/actions/list-sites.cjs.map +1 -0
- package/dist/actions/list-sites.d.cts +9 -0
- package/dist/actions/list-sites.d.cts.map +1 -0
- package/dist/actions/list-sites.d.mts +9 -0
- package/dist/actions/list-sites.d.mts.map +1 -0
- package/dist/actions/list-sites.mjs +32 -0
- package/dist/actions/list-sites.mjs.map +1 -0
- package/dist/actions/list-teams.cjs +33 -0
- package/dist/actions/list-teams.cjs.map +1 -0
- package/dist/actions/list-teams.d.cts +9 -0
- package/dist/actions/list-teams.d.cts.map +1 -0
- package/dist/actions/list-teams.d.mts +9 -0
- package/dist/actions/list-teams.d.mts.map +1 -0
- package/dist/actions/list-teams.mjs +32 -0
- package/dist/actions/list-teams.mjs.map +1 -0
- package/dist/actions/query-stats.cjs +34 -0
- package/dist/actions/query-stats.cjs.map +1 -0
- package/dist/actions/query-stats.d.cts +9 -0
- package/dist/actions/query-stats.d.cts.map +1 -0
- package/dist/actions/query-stats.d.mts +9 -0
- package/dist/actions/query-stats.d.mts.map +1 -0
- package/dist/actions/query-stats.mjs +33 -0
- package/dist/actions/query-stats.mjs.map +1 -0
- package/dist/actions/record-event.cjs +32 -0
- package/dist/actions/record-event.cjs.map +1 -0
- package/dist/actions/record-event.d.cts +9 -0
- package/dist/actions/record-event.d.cts.map +1 -0
- package/dist/actions/record-event.d.mts +9 -0
- package/dist/actions/record-event.d.mts.map +1 -0
- package/dist/actions/record-event.mjs +29 -0
- package/dist/actions/record-event.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
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/plausible_analytics
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `plausible_analytics`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 13
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { plausibleAnalyticsCheckHealth } from "@keystrokehq/plausible_analytics/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "plausible_analytics-agent",
|
|
15
|
+
tools: [plausibleAnalyticsCheckHealth],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -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.plausibleAnalytics.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.executePlausibleAnalyticsTool(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":["plausibleAnalytics","executePlausibleAnalyticsTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { plausibleAnalytics } from \"./app\";\nimport { executePlausibleAnalyticsTool } 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 plausibleAnalytics.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 executePlausibleAnalyticsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,mBAAmB,OAAO;EAC/B,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,8BAA8B,MAAM,KAAgC,CAAC;EACrG;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { plausibleAnalytics } from "./app.mjs";
|
|
2
|
+
import { executePlausibleAnalyticsTool } 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 plausibleAnalytics.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 executePlausibleAnalyticsTool(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 { plausibleAnalytics } from \"./app\";\nimport { executePlausibleAnalyticsTool } 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 plausibleAnalytics.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 executePlausibleAnalyticsTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,mBAAmB,OAAO;EAC/B,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,8BAA8B,MAAM,KAAgC,CAAC;EACrG;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/check-health.ts
|
|
4
|
+
const PlausibleAnalyticsCheckHealthInput = zod.z.object({}).describe("Request schema for checking Plausible API health. No parameters required.");
|
|
5
|
+
const PlausibleAnalyticsCheckHealthOutput = zod.z.object({
|
|
6
|
+
status: zod.z.string().describe("Health status of the API (e.g., 'ok', 'healthy').").nullable().optional(),
|
|
7
|
+
message: zod.z.string().describe("Health check message from the API.").nullable().optional()
|
|
8
|
+
}).describe("Response schema for Plausible API health check.");
|
|
9
|
+
const plausibleAnalyticsCheckHealth = require_action.action("PLAUSIBLE_ANALYTICS_CHECK_HEALTH", {
|
|
10
|
+
slug: "plausible_analytics-check-health",
|
|
11
|
+
name: "Check API Health",
|
|
12
|
+
description: "Tool to check the health status of the Plausible Analytics API. Use when verifying API connectivity and service availability before making other API calls.",
|
|
13
|
+
input: PlausibleAnalyticsCheckHealthInput,
|
|
14
|
+
output: PlausibleAnalyticsCheckHealthOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.plausibleAnalyticsCheckHealth = plausibleAnalyticsCheckHealth;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=check-health.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-health.cjs","names":["z","action"],"sources":["../../src/actions/check-health.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsCheckHealthInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for checking Plausible API health. No parameters required.\");\nexport const PlausibleAnalyticsCheckHealthOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Health status of the API (e.g., 'ok', 'healthy').\").nullable().optional(),\n message: z.string().describe(\"Health check message from the API.\").nullable().optional(),\n}).describe(\"Response schema for Plausible API health check.\");\n\nexport const plausibleAnalyticsCheckHealth = action(\"PLAUSIBLE_ANALYTICS_CHECK_HEALTH\", {\n slug: \"plausible_analytics-check-health\",\n name: \"Check API Health\",\n description: \"Tool to check the health status of the Plausible Analytics API. Use when verifying API connectivity and service availability before making other API calls.\",\n input: PlausibleAnalyticsCheckHealthInput,\n output: PlausibleAnalyticsCheckHealthOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACjK,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,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/check-health.d.ts
|
|
4
|
+
declare const PlausibleAnalyticsCheckHealthInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlausibleAnalyticsCheckHealthOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plausibleAnalyticsCheckHealth: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plausibleAnalyticsCheckHealth };
|
|
9
|
+
//# sourceMappingURL=check-health.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-health.d.cts","names":[],"sources":["../../src/actions/check-health.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAA+G;AAAA,cACrJ,mCAAA,EAAqC,CAAA,CAAE,UAGU;AAAA,cAEjD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/check-health.d.ts
|
|
4
|
+
declare const PlausibleAnalyticsCheckHealthInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlausibleAnalyticsCheckHealthOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plausibleAnalyticsCheckHealth: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plausibleAnalyticsCheckHealth };
|
|
9
|
+
//# sourceMappingURL=check-health.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-health.d.mts","names":[],"sources":["../../src/actions/check-health.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAA+G;AAAA,cACrJ,mCAAA,EAAqC,CAAA,CAAE,UAGU;AAAA,cAEjD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const plausibleAnalyticsCheckHealth = action("PLAUSIBLE_ANALYTICS_CHECK_HEALTH", {
|
|
4
|
+
slug: "plausible_analytics-check-health",
|
|
5
|
+
name: "Check API Health",
|
|
6
|
+
description: "Tool to check the health status of the Plausible Analytics API. Use when verifying API connectivity and service availability before making other API calls.",
|
|
7
|
+
input: z.object({}).describe("Request schema for checking Plausible API health. No parameters required."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
status: z.string().describe("Health status of the API (e.g., 'ok', 'healthy').").nullable().optional(),
|
|
10
|
+
message: z.string().describe("Health check message from the API.").nullable().optional()
|
|
11
|
+
}).describe("Response schema for Plausible API health check.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { plausibleAnalyticsCheckHealth };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=check-health.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-health.mjs","names":[],"sources":["../../src/actions/check-health.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsCheckHealthInput: z.ZodTypeAny = z.object({}).describe(\"Request schema for checking Plausible API health. No parameters required.\");\nexport const PlausibleAnalyticsCheckHealthOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Health status of the API (e.g., 'ok', 'healthy').\").nullable().optional(),\n message: z.string().describe(\"Health check message from the API.\").nullable().optional(),\n}).describe(\"Response schema for Plausible API health check.\");\n\nexport const plausibleAnalyticsCheckHealth = action(\"PLAUSIBLE_ANALYTICS_CHECK_HEALTH\", {\n slug: \"plausible_analytics-check-health\",\n name: \"Check API Health\",\n description: \"Tool to check the health status of the Plausible Analytics API. Use when verifying API connectivity and service availability before making other API calls.\",\n input: PlausibleAnalyticsCheckHealthInput,\n output: PlausibleAnalyticsCheckHealthOutput,\n});\n"],"mappings":";;AAUA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAV8D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAU7E;CACP,QAV+D,EAAE,OAAO;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-breakdown-stats.ts
|
|
4
|
+
const PlausibleAnalyticsGetBreakdownStatsInput = zod.z.object({
|
|
5
|
+
date: zod.z.string().describe("Date for period context or custom date range. For 'custom' period, use two ISO-8601 dates separated by comma (e.g., '2023-01-01,2023-01-31'). For other periods, single date in YYYY-MM-DD format to anchor the period").optional(),
|
|
6
|
+
page: zod.z.number().int().describe("Page number for pagination. Use with limit parameter to retrieve results beyond the first page. Starts at 1").optional(),
|
|
7
|
+
limit: zod.z.number().int().describe("Maximum number of results to return (1-1000). If not specified, returns all available results up to 1000").optional(),
|
|
8
|
+
period: zod.z.string().default("30d").describe("Time period for stats. Valid values: '12mo' (last 12 months), '6mo' (last 6 months), 'month' (current month), '30d' (last 30 days), '7d' (last 7 days), 'day' (current day), 'custom' (custom range using date parameter with two ISO-8601 dates separated by comma). Defaults to '30d'").optional(),
|
|
9
|
+
filters: zod.z.string().describe("Filters to apply to the query. Format: 'property==value' or 'property==value;property2==value2'. Use semicolon to separate multiple filters. Supports operators: == (equals), != (not equals), ~ (contains), !~ (does not contain)").optional(),
|
|
10
|
+
metrics: zod.z.string().describe("Comma-separated list of metrics to include. Available metrics: visitors (unique visitors), visits (total visits), pageviews (total page views), views_per_visit, bounce_rate (percentage), visit_duration (seconds), events (total events), conversion_rate (percentage), time_on_page (seconds). If not specified, only the visitor count for each breakdown value is returned").optional(),
|
|
11
|
+
site_id: zod.z.string().describe("Domain of your site on Plausible (e.g., 'example.com'). This is the site ID as configured in your Plausible account"),
|
|
12
|
+
property: zod.z.string().describe("Property to break down by. Supported values: event:page, event:goal, visit:source, visit:referrer, visit:utm_medium, visit:utm_source, visit:utm_campaign, visit:utm_content, visit:utm_term, visit:device, visit:browser, visit:browser_version, visit:os, visit:os_version, visit:country, visit:region, visit:city, visit:entry_page, visit:exit_page, or event:props:<custom_prop_name> for custom properties")
|
|
13
|
+
}).describe("Request model for getting breakdown stats");
|
|
14
|
+
const PlausibleAnalyticsGetBreakdownStats_BreakdownResultSchema = zod.z.object({
|
|
15
|
+
os: zod.z.string().describe("Operating system name when property is visit:os").nullable().optional(),
|
|
16
|
+
city: zod.z.string().describe("City name when property is visit:city").nullable().optional(),
|
|
17
|
+
goal: zod.z.string().describe("Goal name when property is event:goal").nullable().optional(),
|
|
18
|
+
page: zod.z.string().describe("Page path when property is event:page").nullable().optional(),
|
|
19
|
+
device: zod.z.string().describe("Device type when property is visit:device").nullable().optional(),
|
|
20
|
+
events: zod.z.number().int().describe("Total number of events for this breakdown value").nullable().optional(),
|
|
21
|
+
region: zod.z.string().describe("Region name when property is visit:region").nullable().optional(),
|
|
22
|
+
source: zod.z.string().describe("Source value when property is visit:source").nullable().optional(),
|
|
23
|
+
visits: zod.z.number().int().describe("Total number of visits for this breakdown value").nullable().optional(),
|
|
24
|
+
browser: zod.z.string().describe("Browser name when property is visit:browser").nullable().optional(),
|
|
25
|
+
country: zod.z.string().describe("Country code when property is visit:country").nullable().optional(),
|
|
26
|
+
referrer: zod.z.string().describe("Referrer URL when property is visit:referrer").nullable().optional(),
|
|
27
|
+
utm_term: zod.z.string().describe("UTM term value when property is visit:utm_term").nullable().optional(),
|
|
28
|
+
visitors: zod.z.number().int().describe("Number of unique visitors for this breakdown value").nullable().optional(),
|
|
29
|
+
exit_page: zod.z.string().describe("Exit page path when property is visit:exit_page").nullable().optional(),
|
|
30
|
+
pageviews: zod.z.number().int().describe("Total number of pageviews for this breakdown value").nullable().optional(),
|
|
31
|
+
entry_page: zod.z.string().describe("Entry page path when property is visit:entry_page").nullable().optional(),
|
|
32
|
+
os_version: zod.z.string().describe("OS version when property is visit:os_version").nullable().optional(),
|
|
33
|
+
utm_medium: zod.z.string().describe("UTM medium value when property is visit:utm_medium").nullable().optional(),
|
|
34
|
+
utm_source: zod.z.string().describe("UTM source value when property is visit:utm_source").nullable().optional(),
|
|
35
|
+
bounce_rate: zod.z.number().describe("Bounce rate percentage for this breakdown value").nullable().optional(),
|
|
36
|
+
utm_content: zod.z.string().describe("UTM content value when property is visit:utm_content").nullable().optional(),
|
|
37
|
+
time_on_page: zod.z.number().describe("Average time on page in seconds for this breakdown value").nullable().optional(),
|
|
38
|
+
utm_campaign: zod.z.string().describe("UTM campaign value when property is visit:utm_campaign").nullable().optional(),
|
|
39
|
+
visit_duration: zod.z.number().describe("Average visit duration in seconds for this breakdown value").nullable().optional(),
|
|
40
|
+
browser_version: zod.z.string().describe("Browser version when property is visit:browser_version").nullable().optional(),
|
|
41
|
+
conversion_rate: zod.z.number().describe("Conversion rate percentage for this breakdown value").nullable().optional(),
|
|
42
|
+
views_per_visit: zod.z.number().describe("Average pageviews per visit for this breakdown value").nullable().optional()
|
|
43
|
+
}).describe("Model for individual breakdown result");
|
|
44
|
+
const PlausibleAnalyticsGetBreakdownStatsOutput = zod.z.object({ results: zod.z.array(PlausibleAnalyticsGetBreakdownStats_BreakdownResultSchema).describe("Array of breakdown results ordered by the primary metric (typically visitors). Each result contains the property value and requested metrics") }).describe("Response model for breakdown stats");
|
|
45
|
+
const plausibleAnalyticsGetBreakdownStats = require_action.action("PLAUSIBLE_ANALYTICS_GET_BREAKDOWN_STATS", {
|
|
46
|
+
slug: "plausible_analytics-get-breakdown-stats",
|
|
47
|
+
name: "Get Breakdown Stats",
|
|
48
|
+
description: "Tool to retrieve breakdown statistics for a specific property (dimension) from Plausible Analytics. Use when you need to analyze top sources, top pages, device breakdown, geographic distribution, or any other dimensional breakdown of your site traffic. This is a legacy Stats API v1 endpoint used for Top Sources, Top Pages and similar reports.",
|
|
49
|
+
input: PlausibleAnalyticsGetBreakdownStatsInput,
|
|
50
|
+
output: PlausibleAnalyticsGetBreakdownStatsOutput
|
|
51
|
+
});
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.plausibleAnalyticsGetBreakdownStats = plausibleAnalyticsGetBreakdownStats;
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=get-breakdown-stats.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-breakdown-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-breakdown-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetBreakdownStatsInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date for period context or custom date range. For 'custom' period, use two ISO-8601 dates separated by comma (e.g., '2023-01-01,2023-01-31'). For other periods, single date in YYYY-MM-DD format to anchor the period\").optional(),\n page: z.number().int().describe(\"Page number for pagination. Use with limit parameter to retrieve results beyond the first page. Starts at 1\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-1000). If not specified, returns all available results up to 1000\").optional(),\n period: z.string().default(\"30d\").describe(\"Time period for stats. Valid values: '12mo' (last 12 months), '6mo' (last 6 months), 'month' (current month), '30d' (last 30 days), '7d' (last 7 days), 'day' (current day), 'custom' (custom range using date parameter with two ISO-8601 dates separated by comma). Defaults to '30d'\").optional(),\n filters: z.string().describe(\"Filters to apply to the query. Format: 'property==value' or 'property==value;property2==value2'. Use semicolon to separate multiple filters. Supports operators: == (equals), != (not equals), ~ (contains), !~ (does not contain)\").optional(),\n metrics: z.string().describe(\"Comma-separated list of metrics to include. Available metrics: visitors (unique visitors), visits (total visits), pageviews (total page views), views_per_visit, bounce_rate (percentage), visit_duration (seconds), events (total events), conversion_rate (percentage), time_on_page (seconds). If not specified, only the visitor count for each breakdown value is returned\").optional(),\n site_id: z.string().describe(\"Domain of your site on Plausible (e.g., 'example.com'). This is the site ID as configured in your Plausible account\"),\n property: z.string().describe(\"Property to break down by. Supported values: event:page, event:goal, visit:source, visit:referrer, visit:utm_medium, visit:utm_source, visit:utm_campaign, visit:utm_content, visit:utm_term, visit:device, visit:browser, visit:browser_version, visit:os, visit:os_version, visit:country, visit:region, visit:city, visit:entry_page, visit:exit_page, or event:props:<custom_prop_name> for custom properties\"),\n}).describe(\"Request model for getting breakdown stats\");\nconst PlausibleAnalyticsGetBreakdownStats_BreakdownResultSchema: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Operating system name when property is visit:os\").nullable().optional(),\n city: z.string().describe(\"City name when property is visit:city\").nullable().optional(),\n goal: z.string().describe(\"Goal name when property is event:goal\").nullable().optional(),\n page: z.string().describe(\"Page path when property is event:page\").nullable().optional(),\n device: z.string().describe(\"Device type when property is visit:device\").nullable().optional(),\n events: z.number().int().describe(\"Total number of events for this breakdown value\").nullable().optional(),\n region: z.string().describe(\"Region name when property is visit:region\").nullable().optional(),\n source: z.string().describe(\"Source value when property is visit:source\").nullable().optional(),\n visits: z.number().int().describe(\"Total number of visits for this breakdown value\").nullable().optional(),\n browser: z.string().describe(\"Browser name when property is visit:browser\").nullable().optional(),\n country: z.string().describe(\"Country code when property is visit:country\").nullable().optional(),\n referrer: z.string().describe(\"Referrer URL when property is visit:referrer\").nullable().optional(),\n utm_term: z.string().describe(\"UTM term value when property is visit:utm_term\").nullable().optional(),\n visitors: z.number().int().describe(\"Number of unique visitors for this breakdown value\").nullable().optional(),\n exit_page: z.string().describe(\"Exit page path when property is visit:exit_page\").nullable().optional(),\n pageviews: z.number().int().describe(\"Total number of pageviews for this breakdown value\").nullable().optional(),\n entry_page: z.string().describe(\"Entry page path when property is visit:entry_page\").nullable().optional(),\n os_version: z.string().describe(\"OS version when property is visit:os_version\").nullable().optional(),\n utm_medium: z.string().describe(\"UTM medium value when property is visit:utm_medium\").nullable().optional(),\n utm_source: z.string().describe(\"UTM source value when property is visit:utm_source\").nullable().optional(),\n bounce_rate: z.number().describe(\"Bounce rate percentage for this breakdown value\").nullable().optional(),\n utm_content: z.string().describe(\"UTM content value when property is visit:utm_content\").nullable().optional(),\n time_on_page: z.number().describe(\"Average time on page in seconds for this breakdown value\").nullable().optional(),\n utm_campaign: z.string().describe(\"UTM campaign value when property is visit:utm_campaign\").nullable().optional(),\n visit_duration: z.number().describe(\"Average visit duration in seconds for this breakdown value\").nullable().optional(),\n browser_version: z.string().describe(\"Browser version when property is visit:browser_version\").nullable().optional(),\n conversion_rate: z.number().describe(\"Conversion rate percentage for this breakdown value\").nullable().optional(),\n views_per_visit: z.number().describe(\"Average pageviews per visit for this breakdown value\").nullable().optional(),\n}).describe(\"Model for individual breakdown result\");\nexport const PlausibleAnalyticsGetBreakdownStatsOutput: z.ZodTypeAny = z.object({\n results: z.array(PlausibleAnalyticsGetBreakdownStats_BreakdownResultSchema).describe(\"Array of breakdown results ordered by the primary metric (typically visitors). Each result contains the property value and requested metrics\"),\n}).describe(\"Response model for breakdown stats\");\n\nexport const plausibleAnalyticsGetBreakdownStats = action(\"PLAUSIBLE_ANALYTICS_GET_BREAKDOWN_STATS\", {\n slug: \"plausible_analytics-get-breakdown-stats\",\n name: \"Get Breakdown Stats\",\n description: \"Tool to retrieve breakdown statistics for a specific property (dimension) from Plausible Analytics. Use when you need to analyze top sources, top pages, device breakdown, geographic distribution, or any other dimensional breakdown of your site traffic. This is a legacy Stats API v1 endpoint used for Top Sources, Top Pages and similar reports.\",\n input: PlausibleAnalyticsGetBreakdownStatsInput,\n output: PlausibleAnalyticsGetBreakdownStatsOutput,\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-breakdown-stats.d.ts
|
|
4
|
+
declare const PlausibleAnalyticsGetBreakdownStatsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlausibleAnalyticsGetBreakdownStatsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plausibleAnalyticsGetBreakdownStats: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plausibleAnalyticsGetBreakdownStats };
|
|
9
|
+
//# sourceMappingURL=get-breakdown-stats.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-breakdown-stats.d.cts","names":[],"sources":["../../src/actions/get-breakdown-stats.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UASD;AAAA,cA+B3C,yCAAA,EAA2C,CAAA,CAAE,UAET;AAAA,cAEpC,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-breakdown-stats.d.ts
|
|
4
|
+
declare const PlausibleAnalyticsGetBreakdownStatsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlausibleAnalyticsGetBreakdownStatsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plausibleAnalyticsGetBreakdownStats: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plausibleAnalyticsGetBreakdownStats };
|
|
9
|
+
//# sourceMappingURL=get-breakdown-stats.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-breakdown-stats.d.mts","names":[],"sources":["../../src/actions/get-breakdown-stats.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UASD;AAAA,cA+B3C,yCAAA,EAA2C,CAAA,CAAE,UAET;AAAA,cAEpC,mCAAA,gCAAmC,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/get-breakdown-stats.ts
|
|
4
|
+
const PlausibleAnalyticsGetBreakdownStatsInput = z.object({
|
|
5
|
+
date: z.string().describe("Date for period context or custom date range. For 'custom' period, use two ISO-8601 dates separated by comma (e.g., '2023-01-01,2023-01-31'). For other periods, single date in YYYY-MM-DD format to anchor the period").optional(),
|
|
6
|
+
page: z.number().int().describe("Page number for pagination. Use with limit parameter to retrieve results beyond the first page. Starts at 1").optional(),
|
|
7
|
+
limit: z.number().int().describe("Maximum number of results to return (1-1000). If not specified, returns all available results up to 1000").optional(),
|
|
8
|
+
period: z.string().default("30d").describe("Time period for stats. Valid values: '12mo' (last 12 months), '6mo' (last 6 months), 'month' (current month), '30d' (last 30 days), '7d' (last 7 days), 'day' (current day), 'custom' (custom range using date parameter with two ISO-8601 dates separated by comma). Defaults to '30d'").optional(),
|
|
9
|
+
filters: z.string().describe("Filters to apply to the query. Format: 'property==value' or 'property==value;property2==value2'. Use semicolon to separate multiple filters. Supports operators: == (equals), != (not equals), ~ (contains), !~ (does not contain)").optional(),
|
|
10
|
+
metrics: z.string().describe("Comma-separated list of metrics to include. Available metrics: visitors (unique visitors), visits (total visits), pageviews (total page views), views_per_visit, bounce_rate (percentage), visit_duration (seconds), events (total events), conversion_rate (percentage), time_on_page (seconds). If not specified, only the visitor count for each breakdown value is returned").optional(),
|
|
11
|
+
site_id: z.string().describe("Domain of your site on Plausible (e.g., 'example.com'). This is the site ID as configured in your Plausible account"),
|
|
12
|
+
property: z.string().describe("Property to break down by. Supported values: event:page, event:goal, visit:source, visit:referrer, visit:utm_medium, visit:utm_source, visit:utm_campaign, visit:utm_content, visit:utm_term, visit:device, visit:browser, visit:browser_version, visit:os, visit:os_version, visit:country, visit:region, visit:city, visit:entry_page, visit:exit_page, or event:props:<custom_prop_name> for custom properties")
|
|
13
|
+
}).describe("Request model for getting breakdown stats");
|
|
14
|
+
const PlausibleAnalyticsGetBreakdownStats_BreakdownResultSchema = z.object({
|
|
15
|
+
os: z.string().describe("Operating system name when property is visit:os").nullable().optional(),
|
|
16
|
+
city: z.string().describe("City name when property is visit:city").nullable().optional(),
|
|
17
|
+
goal: z.string().describe("Goal name when property is event:goal").nullable().optional(),
|
|
18
|
+
page: z.string().describe("Page path when property is event:page").nullable().optional(),
|
|
19
|
+
device: z.string().describe("Device type when property is visit:device").nullable().optional(),
|
|
20
|
+
events: z.number().int().describe("Total number of events for this breakdown value").nullable().optional(),
|
|
21
|
+
region: z.string().describe("Region name when property is visit:region").nullable().optional(),
|
|
22
|
+
source: z.string().describe("Source value when property is visit:source").nullable().optional(),
|
|
23
|
+
visits: z.number().int().describe("Total number of visits for this breakdown value").nullable().optional(),
|
|
24
|
+
browser: z.string().describe("Browser name when property is visit:browser").nullable().optional(),
|
|
25
|
+
country: z.string().describe("Country code when property is visit:country").nullable().optional(),
|
|
26
|
+
referrer: z.string().describe("Referrer URL when property is visit:referrer").nullable().optional(),
|
|
27
|
+
utm_term: z.string().describe("UTM term value when property is visit:utm_term").nullable().optional(),
|
|
28
|
+
visitors: z.number().int().describe("Number of unique visitors for this breakdown value").nullable().optional(),
|
|
29
|
+
exit_page: z.string().describe("Exit page path when property is visit:exit_page").nullable().optional(),
|
|
30
|
+
pageviews: z.number().int().describe("Total number of pageviews for this breakdown value").nullable().optional(),
|
|
31
|
+
entry_page: z.string().describe("Entry page path when property is visit:entry_page").nullable().optional(),
|
|
32
|
+
os_version: z.string().describe("OS version when property is visit:os_version").nullable().optional(),
|
|
33
|
+
utm_medium: z.string().describe("UTM medium value when property is visit:utm_medium").nullable().optional(),
|
|
34
|
+
utm_source: z.string().describe("UTM source value when property is visit:utm_source").nullable().optional(),
|
|
35
|
+
bounce_rate: z.number().describe("Bounce rate percentage for this breakdown value").nullable().optional(),
|
|
36
|
+
utm_content: z.string().describe("UTM content value when property is visit:utm_content").nullable().optional(),
|
|
37
|
+
time_on_page: z.number().describe("Average time on page in seconds for this breakdown value").nullable().optional(),
|
|
38
|
+
utm_campaign: z.string().describe("UTM campaign value when property is visit:utm_campaign").nullable().optional(),
|
|
39
|
+
visit_duration: z.number().describe("Average visit duration in seconds for this breakdown value").nullable().optional(),
|
|
40
|
+
browser_version: z.string().describe("Browser version when property is visit:browser_version").nullable().optional(),
|
|
41
|
+
conversion_rate: z.number().describe("Conversion rate percentage for this breakdown value").nullable().optional(),
|
|
42
|
+
views_per_visit: z.number().describe("Average pageviews per visit for this breakdown value").nullable().optional()
|
|
43
|
+
}).describe("Model for individual breakdown result");
|
|
44
|
+
const plausibleAnalyticsGetBreakdownStats = action("PLAUSIBLE_ANALYTICS_GET_BREAKDOWN_STATS", {
|
|
45
|
+
slug: "plausible_analytics-get-breakdown-stats",
|
|
46
|
+
name: "Get Breakdown Stats",
|
|
47
|
+
description: "Tool to retrieve breakdown statistics for a specific property (dimension) from Plausible Analytics. Use when you need to analyze top sources, top pages, device breakdown, geographic distribution, or any other dimensional breakdown of your site traffic. This is a legacy Stats API v1 endpoint used for Top Sources, Top Pages and similar reports.",
|
|
48
|
+
input: PlausibleAnalyticsGetBreakdownStatsInput,
|
|
49
|
+
output: z.object({ results: z.array(PlausibleAnalyticsGetBreakdownStats_BreakdownResultSchema).describe("Array of breakdown results ordered by the primary metric (typically visitors). Each result contains the property value and requested metrics") }).describe("Response model for breakdown stats")
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
export { plausibleAnalyticsGetBreakdownStats };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=get-breakdown-stats.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-breakdown-stats.mjs","names":[],"sources":["../../src/actions/get-breakdown-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetBreakdownStatsInput: z.ZodTypeAny = z.object({\n date: z.string().describe(\"Date for period context or custom date range. For 'custom' period, use two ISO-8601 dates separated by comma (e.g., '2023-01-01,2023-01-31'). For other periods, single date in YYYY-MM-DD format to anchor the period\").optional(),\n page: z.number().int().describe(\"Page number for pagination. Use with limit parameter to retrieve results beyond the first page. Starts at 1\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return (1-1000). If not specified, returns all available results up to 1000\").optional(),\n period: z.string().default(\"30d\").describe(\"Time period for stats. Valid values: '12mo' (last 12 months), '6mo' (last 6 months), 'month' (current month), '30d' (last 30 days), '7d' (last 7 days), 'day' (current day), 'custom' (custom range using date parameter with two ISO-8601 dates separated by comma). Defaults to '30d'\").optional(),\n filters: z.string().describe(\"Filters to apply to the query. Format: 'property==value' or 'property==value;property2==value2'. Use semicolon to separate multiple filters. Supports operators: == (equals), != (not equals), ~ (contains), !~ (does not contain)\").optional(),\n metrics: z.string().describe(\"Comma-separated list of metrics to include. Available metrics: visitors (unique visitors), visits (total visits), pageviews (total page views), views_per_visit, bounce_rate (percentage), visit_duration (seconds), events (total events), conversion_rate (percentage), time_on_page (seconds). If not specified, only the visitor count for each breakdown value is returned\").optional(),\n site_id: z.string().describe(\"Domain of your site on Plausible (e.g., 'example.com'). This is the site ID as configured in your Plausible account\"),\n property: z.string().describe(\"Property to break down by. Supported values: event:page, event:goal, visit:source, visit:referrer, visit:utm_medium, visit:utm_source, visit:utm_campaign, visit:utm_content, visit:utm_term, visit:device, visit:browser, visit:browser_version, visit:os, visit:os_version, visit:country, visit:region, visit:city, visit:entry_page, visit:exit_page, or event:props:<custom_prop_name> for custom properties\"),\n}).describe(\"Request model for getting breakdown stats\");\nconst PlausibleAnalyticsGetBreakdownStats_BreakdownResultSchema: z.ZodTypeAny = z.object({\n os: z.string().describe(\"Operating system name when property is visit:os\").nullable().optional(),\n city: z.string().describe(\"City name when property is visit:city\").nullable().optional(),\n goal: z.string().describe(\"Goal name when property is event:goal\").nullable().optional(),\n page: z.string().describe(\"Page path when property is event:page\").nullable().optional(),\n device: z.string().describe(\"Device type when property is visit:device\").nullable().optional(),\n events: z.number().int().describe(\"Total number of events for this breakdown value\").nullable().optional(),\n region: z.string().describe(\"Region name when property is visit:region\").nullable().optional(),\n source: z.string().describe(\"Source value when property is visit:source\").nullable().optional(),\n visits: z.number().int().describe(\"Total number of visits for this breakdown value\").nullable().optional(),\n browser: z.string().describe(\"Browser name when property is visit:browser\").nullable().optional(),\n country: z.string().describe(\"Country code when property is visit:country\").nullable().optional(),\n referrer: z.string().describe(\"Referrer URL when property is visit:referrer\").nullable().optional(),\n utm_term: z.string().describe(\"UTM term value when property is visit:utm_term\").nullable().optional(),\n visitors: z.number().int().describe(\"Number of unique visitors for this breakdown value\").nullable().optional(),\n exit_page: z.string().describe(\"Exit page path when property is visit:exit_page\").nullable().optional(),\n pageviews: z.number().int().describe(\"Total number of pageviews for this breakdown value\").nullable().optional(),\n entry_page: z.string().describe(\"Entry page path when property is visit:entry_page\").nullable().optional(),\n os_version: z.string().describe(\"OS version when property is visit:os_version\").nullable().optional(),\n utm_medium: z.string().describe(\"UTM medium value when property is visit:utm_medium\").nullable().optional(),\n utm_source: z.string().describe(\"UTM source value when property is visit:utm_source\").nullable().optional(),\n bounce_rate: z.number().describe(\"Bounce rate percentage for this breakdown value\").nullable().optional(),\n utm_content: z.string().describe(\"UTM content value when property is visit:utm_content\").nullable().optional(),\n time_on_page: z.number().describe(\"Average time on page in seconds for this breakdown value\").nullable().optional(),\n utm_campaign: z.string().describe(\"UTM campaign value when property is visit:utm_campaign\").nullable().optional(),\n visit_duration: z.number().describe(\"Average visit duration in seconds for this breakdown value\").nullable().optional(),\n browser_version: z.string().describe(\"Browser version when property is visit:browser_version\").nullable().optional(),\n conversion_rate: z.number().describe(\"Conversion rate percentage for this breakdown value\").nullable().optional(),\n views_per_visit: z.number().describe(\"Average pageviews per visit for this breakdown value\").nullable().optional(),\n}).describe(\"Model for individual breakdown result\");\nexport const PlausibleAnalyticsGetBreakdownStatsOutput: z.ZodTypeAny = z.object({\n results: z.array(PlausibleAnalyticsGetBreakdownStats_BreakdownResultSchema).describe(\"Array of breakdown results ordered by the primary metric (typically visitors). Each result contains the property value and requested metrics\"),\n}).describe(\"Response model for breakdown stats\");\n\nexport const plausibleAnalyticsGetBreakdownStats = action(\"PLAUSIBLE_ANALYTICS_GET_BREAKDOWN_STATS\", {\n slug: \"plausible_analytics-get-breakdown-stats\",\n name: \"Get Breakdown Stats\",\n description: \"Tool to retrieve breakdown statistics for a specific property (dimension) from Plausible Analytics. Use when you need to analyze top sources, top pages, device breakdown, geographic distribution, or any other dimensional breakdown of your site traffic. This is a legacy Stats API v1 endpoint used for Top Sources, Top Pages and similar reports.\",\n input: PlausibleAnalyticsGetBreakdownStatsInput,\n output: PlausibleAnalyticsGetBreakdownStatsOutput,\n});\n"],"mappings":"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"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-plugin-capabilities.ts
|
|
4
|
+
const PlausibleAnalyticsGetPluginCapabilitiesInput = zod.z.object({}).describe("Request model for retrieving plugin capabilities.\nThis endpoint requires no parameters.");
|
|
5
|
+
const PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema = zod.z.object({
|
|
6
|
+
SSO: zod.z.boolean().describe("Whether SSO (Single Sign-On) feature is available"),
|
|
7
|
+
Goals: zod.z.boolean().describe("Whether Goals feature is available"),
|
|
8
|
+
Props: zod.z.boolean().describe("Whether Props feature is available"),
|
|
9
|
+
Teams: zod.z.boolean().describe("Whether Teams feature is available").nullable().optional(),
|
|
10
|
+
Funnels: zod.z.boolean().describe("Whether Funnels feature is available"),
|
|
11
|
+
SitesAPI: zod.z.boolean().describe("Whether SitesAPI feature is available"),
|
|
12
|
+
StatsAPI: zod.z.boolean().describe("Whether StatsAPI feature is available"),
|
|
13
|
+
SharedLinks: zod.z.boolean().describe("Whether SharedLinks feature is available"),
|
|
14
|
+
RevenueGoals: zod.z.boolean().describe("Whether RevenueGoals feature is available"),
|
|
15
|
+
SiteSegments: zod.z.boolean().describe("Whether SiteSegments feature is available"),
|
|
16
|
+
ConsolidatedView: zod.z.boolean().describe("Whether ConsolidatedView feature is available")
|
|
17
|
+
}).describe("Available features for the Plausible Analytics plugin.");
|
|
18
|
+
const PlausibleAnalyticsGetPluginCapabilitiesOutput = zod.z.object({
|
|
19
|
+
features: PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema.nullable(),
|
|
20
|
+
authorized: zod.z.boolean().describe("Whether the API token is authorized"),
|
|
21
|
+
data_domain: zod.z.string().describe("The data domain associated with the plugin capabilities").nullable().optional()
|
|
22
|
+
}).describe("Response model containing plugin capabilities information.");
|
|
23
|
+
const plausibleAnalyticsGetPluginCapabilities = require_action.action("PLAUSIBLE_ANALYTICS_GET_PLUGIN_CAPABILITIES", {
|
|
24
|
+
slug: "plausible_analytics-get-plugin-capabilities",
|
|
25
|
+
name: "Get Plugin Capabilities",
|
|
26
|
+
description: "Tool to retrieve available capabilities for the Plausible Analytics Plugins API. Use this to check which features are enabled for the authenticated account, such as Goals, Funnels, Stats API, and more.",
|
|
27
|
+
input: PlausibleAnalyticsGetPluginCapabilitiesInput,
|
|
28
|
+
output: PlausibleAnalyticsGetPluginCapabilitiesOutput
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.plausibleAnalyticsGetPluginCapabilities = plausibleAnalyticsGetPluginCapabilities;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=get-plugin-capabilities.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-plugin-capabilities.cjs","names":["z","action"],"sources":["../../src/actions/get-plugin-capabilities.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetPluginCapabilitiesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving plugin capabilities.\\nThis endpoint requires no parameters.\");\nconst PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema: z.ZodTypeAny = z.object({\n SSO: z.boolean().describe(\"Whether SSO (Single Sign-On) feature is available\"),\n Goals: z.boolean().describe(\"Whether Goals feature is available\"),\n Props: z.boolean().describe(\"Whether Props feature is available\"),\n Teams: z.boolean().describe(\"Whether Teams feature is available\").nullable().optional(),\n Funnels: z.boolean().describe(\"Whether Funnels feature is available\"),\n SitesAPI: z.boolean().describe(\"Whether SitesAPI feature is available\"),\n StatsAPI: z.boolean().describe(\"Whether StatsAPI feature is available\"),\n SharedLinks: z.boolean().describe(\"Whether SharedLinks feature is available\"),\n RevenueGoals: z.boolean().describe(\"Whether RevenueGoals feature is available\"),\n SiteSegments: z.boolean().describe(\"Whether SiteSegments feature is available\"),\n ConsolidatedView: z.boolean().describe(\"Whether ConsolidatedView feature is available\"),\n}).describe(\"Available features for the Plausible Analytics plugin.\");\nexport const PlausibleAnalyticsGetPluginCapabilitiesOutput: z.ZodTypeAny = z.object({\n features: PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema.nullable(),\n authorized: z.boolean().describe(\"Whether the API token is authorized\"),\n data_domain: z.string().describe(\"The data domain associated with the plugin capabilities\").nullable().optional(),\n}).describe(\"Response model containing plugin capabilities information.\");\n\nexport const plausibleAnalyticsGetPluginCapabilities = action(\"PLAUSIBLE_ANALYTICS_GET_PLUGIN_CAPABILITIES\", {\n slug: \"plausible_analytics-get-plugin-capabilities\",\n name: \"Get Plugin Capabilities\",\n description: \"Tool to retrieve available capabilities for the Plausible Analytics Plugins API. Use this to check which features are enabled for the authenticated account, such as Goals, Funnels, Stats API, and more.\",\n input: PlausibleAnalyticsGetPluginCapabilitiesInput,\n output: PlausibleAnalyticsGetPluginCapabilitiesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6DA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAC1L,MAAM,+DAA6EA,IAAAA,EAAE,OAAO;CAC1F,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD;CAC7E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CAChE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CAChE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CACtE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CACtE,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CAC5E,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CAC9E,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CAC9E,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C;AACxF,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,gDAA8DA,IAAAA,EAAE,OAAO;CAClF,UAAU,6DAA6D,SAAS;CAChF,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,0CAA0CC,eAAAA,OAAO,+CAA+C;CAC3G,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-plugin-capabilities.d.ts
|
|
4
|
+
declare const PlausibleAnalyticsGetPluginCapabilitiesInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlausibleAnalyticsGetPluginCapabilitiesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plausibleAnalyticsGetPluginCapabilities: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plausibleAnalyticsGetPluginCapabilities };
|
|
9
|
+
//# sourceMappingURL=get-plugin-capabilities.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-plugin-capabilities.d.cts","names":[],"sources":["../../src/actions/get-plugin-capabilities.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAA8H;AAAA,cAc9K,6CAAA,EAA+C,CAAA,CAAE,UAIW;AAAA,cAE5D,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-plugin-capabilities.d.ts
|
|
4
|
+
declare const PlausibleAnalyticsGetPluginCapabilitiesInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlausibleAnalyticsGetPluginCapabilitiesOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plausibleAnalyticsGetPluginCapabilities: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plausibleAnalyticsGetPluginCapabilities };
|
|
9
|
+
//# sourceMappingURL=get-plugin-capabilities.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-plugin-capabilities.d.mts","names":[],"sources":["../../src/actions/get-plugin-capabilities.ts"],"mappings":";;;cAIa,4CAAA,EAA8C,CAAA,CAAE,UAA8H;AAAA,cAc9K,6CAAA,EAA+C,CAAA,CAAE,UAIW;AAAA,cAE5D,uCAAA,gCAAuC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-plugin-capabilities.ts
|
|
4
|
+
const PlausibleAnalyticsGetPluginCapabilitiesInput = z.object({}).describe("Request model for retrieving plugin capabilities.\nThis endpoint requires no parameters.");
|
|
5
|
+
const PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema = z.object({
|
|
6
|
+
SSO: z.boolean().describe("Whether SSO (Single Sign-On) feature is available"),
|
|
7
|
+
Goals: z.boolean().describe("Whether Goals feature is available"),
|
|
8
|
+
Props: z.boolean().describe("Whether Props feature is available"),
|
|
9
|
+
Teams: z.boolean().describe("Whether Teams feature is available").nullable().optional(),
|
|
10
|
+
Funnels: z.boolean().describe("Whether Funnels feature is available"),
|
|
11
|
+
SitesAPI: z.boolean().describe("Whether SitesAPI feature is available"),
|
|
12
|
+
StatsAPI: z.boolean().describe("Whether StatsAPI feature is available"),
|
|
13
|
+
SharedLinks: z.boolean().describe("Whether SharedLinks feature is available"),
|
|
14
|
+
RevenueGoals: z.boolean().describe("Whether RevenueGoals feature is available"),
|
|
15
|
+
SiteSegments: z.boolean().describe("Whether SiteSegments feature is available"),
|
|
16
|
+
ConsolidatedView: z.boolean().describe("Whether ConsolidatedView feature is available")
|
|
17
|
+
}).describe("Available features for the Plausible Analytics plugin.");
|
|
18
|
+
const plausibleAnalyticsGetPluginCapabilities = action("PLAUSIBLE_ANALYTICS_GET_PLUGIN_CAPABILITIES", {
|
|
19
|
+
slug: "plausible_analytics-get-plugin-capabilities",
|
|
20
|
+
name: "Get Plugin Capabilities",
|
|
21
|
+
description: "Tool to retrieve available capabilities for the Plausible Analytics Plugins API. Use this to check which features are enabled for the authenticated account, such as Goals, Funnels, Stats API, and more.",
|
|
22
|
+
input: PlausibleAnalyticsGetPluginCapabilitiesInput,
|
|
23
|
+
output: z.object({
|
|
24
|
+
features: PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema.nullable(),
|
|
25
|
+
authorized: z.boolean().describe("Whether the API token is authorized"),
|
|
26
|
+
data_domain: z.string().describe("The data domain associated with the plugin capabilities").nullable().optional()
|
|
27
|
+
}).describe("Response model containing plugin capabilities information.")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { plausibleAnalyticsGetPluginCapabilities };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=get-plugin-capabilities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-plugin-capabilities.mjs","names":[],"sources":["../../src/actions/get-plugin-capabilities.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetPluginCapabilitiesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving plugin capabilities.\\nThis endpoint requires no parameters.\");\nconst PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema: z.ZodTypeAny = z.object({\n SSO: z.boolean().describe(\"Whether SSO (Single Sign-On) feature is available\"),\n Goals: z.boolean().describe(\"Whether Goals feature is available\"),\n Props: z.boolean().describe(\"Whether Props feature is available\"),\n Teams: z.boolean().describe(\"Whether Teams feature is available\").nullable().optional(),\n Funnels: z.boolean().describe(\"Whether Funnels feature is available\"),\n SitesAPI: z.boolean().describe(\"Whether SitesAPI feature is available\"),\n StatsAPI: z.boolean().describe(\"Whether StatsAPI feature is available\"),\n SharedLinks: z.boolean().describe(\"Whether SharedLinks feature is available\"),\n RevenueGoals: z.boolean().describe(\"Whether RevenueGoals feature is available\"),\n SiteSegments: z.boolean().describe(\"Whether SiteSegments feature is available\"),\n ConsolidatedView: z.boolean().describe(\"Whether ConsolidatedView feature is available\"),\n}).describe(\"Available features for the Plausible Analytics plugin.\");\nexport const PlausibleAnalyticsGetPluginCapabilitiesOutput: z.ZodTypeAny = z.object({\n features: PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema.nullable(),\n authorized: z.boolean().describe(\"Whether the API token is authorized\"),\n data_domain: z.string().describe(\"The data domain associated with the plugin capabilities\").nullable().optional(),\n}).describe(\"Response model containing plugin capabilities information.\");\n\nexport const plausibleAnalyticsGetPluginCapabilities = action(\"PLAUSIBLE_ANALYTICS_GET_PLUGIN_CAPABILITIES\", {\n slug: \"plausible_analytics-get-plugin-capabilities\",\n name: \"Get Plugin Capabilities\",\n description: \"Tool to retrieve available capabilities for the Plausible Analytics Plugins API. Use this to check which features are enabled for the authenticated account, such as Goals, Funnels, Stats API, and more.\",\n input: PlausibleAnalyticsGetPluginCapabilitiesInput,\n output: PlausibleAnalyticsGetPluginCapabilitiesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA6D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAC1L,MAAM,+DAA6E,EAAE,OAAO;CAC1F,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD;CAC7E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CAChE,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CAChE,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CACpE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CACtE,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CACtE,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CAC5E,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CAC9E,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C;CAC9E,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C;AACxF,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAOpE,MAAa,0CAA0C,OAAO,+CAA+C;CAC3G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXyE,EAAE,OAAO;EAClF,UAAU,6DAA6D,SAAS;EAChF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,SAAS,4DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-realtime-visitors.ts
|
|
4
|
+
const PlausibleAnalyticsGetRealtimeVisitorsInput = zod.z.object({ site_id: zod.z.string().describe("Domain of your site on Plausible (e.g., 'example.com')") }).describe("Request model for fetching current realtime visitors.");
|
|
5
|
+
const PlausibleAnalyticsGetRealtimeVisitorsOutput = zod.z.object({ visitors: zod.z.number().int().describe("Number of current visitors on the site in the last 5 minutes") }).describe("Response model for realtime visitors count.");
|
|
6
|
+
const plausibleAnalyticsGetRealtimeVisitors = require_action.action("PLAUSIBLE_ANALYTICS_GET_REALTIME_VISITORS", {
|
|
7
|
+
slug: "plausible_analytics-get-realtime-visitors",
|
|
8
|
+
name: "Get Realtime Visitors",
|
|
9
|
+
description: "Tool to retrieve the number of current visitors on your site in the last 5 minutes. Use this to get real-time visitor counts from the Plausible Analytics Stats API v1.",
|
|
10
|
+
input: PlausibleAnalyticsGetRealtimeVisitorsInput,
|
|
11
|
+
output: PlausibleAnalyticsGetRealtimeVisitorsOutput
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.plausibleAnalyticsGetRealtimeVisitors = plausibleAnalyticsGetRealtimeVisitors;
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=get-realtime-visitors.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-realtime-visitors.cjs","names":["z","action"],"sources":["../../src/actions/get-realtime-visitors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetRealtimeVisitorsInput: z.ZodTypeAny = z.object({\n site_id: z.string().describe(\"Domain of your site on Plausible (e.g., 'example.com')\"),\n}).describe(\"Request model for fetching current realtime visitors.\");\nexport const PlausibleAnalyticsGetRealtimeVisitorsOutput: z.ZodTypeAny = z.object({\n visitors: z.number().int().describe(\"Number of current visitors on the site in the last 5 minutes\"),\n}).describe(\"Response model for realtime visitors count.\");\n\nexport const plausibleAnalyticsGetRealtimeVisitors = action(\"PLAUSIBLE_ANALYTICS_GET_REALTIME_VISITORS\", {\n slug: \"plausible_analytics-get-realtime-visitors\",\n name: \"Get Realtime Visitors\",\n description: \"Tool to retrieve the number of current visitors on your site in the last 5 minutes. Use this to get real-time visitor counts from the Plausible Analytics Stats API v1.\",\n input: PlausibleAnalyticsGetRealtimeVisitorsInput,\n output: PlausibleAnalyticsGetRealtimeVisitorsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA2DA,IAAAA,EAAE,OAAO,EAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,EACvF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8CAA4DA,IAAAA,EAAE,OAAO,EAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,EACpG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAEzD,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,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-realtime-visitors.d.ts
|
|
4
|
+
declare const PlausibleAnalyticsGetRealtimeVisitorsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlausibleAnalyticsGetRealtimeVisitorsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plausibleAnalyticsGetRealtimeVisitors: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plausibleAnalyticsGetRealtimeVisitors };
|
|
9
|
+
//# sourceMappingURL=get-realtime-visitors.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-realtime-visitors.d.cts","names":[],"sources":["../../src/actions/get-realtime-visitors.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAES;AAAA,cACvD,2CAAA,EAA6C,CAAA,CAAE,UAEF;AAAA,cAE7C,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-realtime-visitors.d.ts
|
|
4
|
+
declare const PlausibleAnalyticsGetRealtimeVisitorsInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlausibleAnalyticsGetRealtimeVisitorsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const plausibleAnalyticsGetRealtimeVisitors: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { plausibleAnalyticsGetRealtimeVisitors };
|
|
9
|
+
//# sourceMappingURL=get-realtime-visitors.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-realtime-visitors.d.mts","names":[],"sources":["../../src/actions/get-realtime-visitors.ts"],"mappings":";;;cAIa,0CAAA,EAA4C,CAAA,CAAE,UAES;AAAA,cACvD,2CAAA,EAA6C,CAAA,CAAE,UAEF;AAAA,cAE7C,qCAAA,gCAAqC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const plausibleAnalyticsGetRealtimeVisitors = action("PLAUSIBLE_ANALYTICS_GET_REALTIME_VISITORS", {
|
|
4
|
+
slug: "plausible_analytics-get-realtime-visitors",
|
|
5
|
+
name: "Get Realtime Visitors",
|
|
6
|
+
description: "Tool to retrieve the number of current visitors on your site in the last 5 minutes. Use this to get real-time visitor counts from the Plausible Analytics Stats API v1.",
|
|
7
|
+
input: z.object({ site_id: z.string().describe("Domain of your site on Plausible (e.g., 'example.com')") }).describe("Request model for fetching current realtime visitors."),
|
|
8
|
+
output: z.object({ visitors: z.number().int().describe("Number of current visitors on the site in the last 5 minutes") }).describe("Response model for realtime visitors count.")
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { plausibleAnalyticsGetRealtimeVisitors };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=get-realtime-visitors.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-realtime-visitors.mjs","names":[],"sources":["../../src/actions/get-realtime-visitors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetRealtimeVisitorsInput: z.ZodTypeAny = z.object({\n site_id: z.string().describe(\"Domain of your site on Plausible (e.g., 'example.com')\"),\n}).describe(\"Request model for fetching current realtime visitors.\");\nexport const PlausibleAnalyticsGetRealtimeVisitorsOutput: z.ZodTypeAny = z.object({\n visitors: z.number().int().describe(\"Number of current visitors on the site in the last 5 minutes\"),\n}).describe(\"Response model for realtime visitors count.\");\n\nexport const plausibleAnalyticsGetRealtimeVisitors = action(\"PLAUSIBLE_ANALYTICS_GET_REALTIME_VISITORS\", {\n slug: \"plausible_analytics-get-realtime-visitors\",\n name: \"Get Realtime Visitors\",\n description: \"Tool to retrieve the number of current visitors on your site in the last 5 minutes. Use this to get real-time visitor counts from the Plausible Analytics Stats API v1.\",\n input: PlausibleAnalyticsGetRealtimeVisitorsInput,\n output: PlausibleAnalyticsGetRealtimeVisitorsOutput,\n});\n"],"mappings":";;AAWA,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXsE,EAAE,OAAO,EAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,EACvF,CAAC,CAAC,CAAC,SAAS,uDASH;CACP,QATuE,EAAE,OAAO,EAChF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,EACpG,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-site.ts
|
|
4
|
+
const PlausibleAnalyticsGetSiteInput = zod.z.object({ site_id: zod.z.string().describe("Domain/ID of the site to retrieve (e.g., 'example.com' or 'composio')") }).describe("Request model for retrieving details of a specific Plausible Analytics site.");
|
|
5
|
+
const PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the tracker script"),
|
|
7
|
+
tagged_events: zod.z.boolean().describe("Whether tagged events are enabled"),
|
|
8
|
+
file_downloads: zod.z.boolean().describe("Whether file downloads are tracked"),
|
|
9
|
+
outbound_links: zod.z.boolean().describe("Whether outbound link clicks are tracked"),
|
|
10
|
+
pageview_props: zod.z.boolean().describe("Whether pageview properties are enabled"),
|
|
11
|
+
track_404_pages: zod.z.boolean().describe("Whether 404 pages are tracked"),
|
|
12
|
+
form_submissions: zod.z.boolean().describe("Whether form submissions are tracked"),
|
|
13
|
+
revenue_tracking: zod.z.boolean().describe("Whether revenue tracking is enabled"),
|
|
14
|
+
installation_type: zod.z.string().describe("Type of installation: 'wordpress', 'manual', 'gtm', or null").nullable().optional(),
|
|
15
|
+
hash_based_routing: zod.z.boolean().describe("Whether hash-based routing changes are tracked")
|
|
16
|
+
}).describe("Configuration details for the site's tracking script.");
|
|
17
|
+
const PlausibleAnalyticsGetSiteOutput = zod.z.object({
|
|
18
|
+
domain: zod.z.string().describe("The site's domain name"),
|
|
19
|
+
timezone: zod.z.string().describe("IANA timezone identifier for the site (e.g., 'America/New_York')"),
|
|
20
|
+
custom_properties: zod.z.array(zod.z.string()).describe("List of custom property names defined for the site"),
|
|
21
|
+
tracker_script_configuration: PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema.nullable()
|
|
22
|
+
}).describe("Response model containing site details and configuration.");
|
|
23
|
+
const plausibleAnalyticsGetSite = require_action.action("PLAUSIBLE_ANALYTICS_GET_SITE", {
|
|
24
|
+
slug: "plausible_analytics-get-site",
|
|
25
|
+
name: "Get Site Details",
|
|
26
|
+
description: "Tool to retrieve details for a specific Plausible Analytics site. Use when you need site configuration including domain, timezone, custom properties, and tracker script settings.",
|
|
27
|
+
input: PlausibleAnalyticsGetSiteInput,
|
|
28
|
+
output: PlausibleAnalyticsGetSiteOutput
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.plausibleAnalyticsGetSite = plausibleAnalyticsGetSite;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=get-site.cjs.map
|