@keystrokehq/plausible_analytics 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/check-health.cjs +1 -1
- package/dist/actions/check-health.cjs.map +1 -1
- package/dist/actions/check-health.d.cts +1 -1
- package/dist/actions/check-health.d.mts +1 -1
- package/dist/actions/check-health.mjs +1 -1
- package/dist/actions/check-health.mjs.map +1 -1
- package/dist/actions/get-breakdown-stats.cjs +2 -2
- package/dist/actions/get-breakdown-stats.cjs.map +1 -1
- package/dist/actions/get-breakdown-stats.d.cts +2 -2
- package/dist/actions/get-breakdown-stats.d.mts +2 -2
- package/dist/actions/get-breakdown-stats.mjs +2 -2
- package/dist/actions/get-breakdown-stats.mjs.map +1 -1
- package/dist/actions/get-plugin-capabilities.cjs +2 -2
- package/dist/actions/get-plugin-capabilities.cjs.map +1 -1
- package/dist/actions/get-plugin-capabilities.d.cts +2 -2
- package/dist/actions/get-plugin-capabilities.d.mts +2 -2
- package/dist/actions/get-plugin-capabilities.mjs +2 -2
- package/dist/actions/get-plugin-capabilities.mjs.map +1 -1
- package/dist/actions/get-realtime-visitors.cjs +1 -1
- package/dist/actions/get-realtime-visitors.cjs.map +1 -1
- package/dist/actions/get-realtime-visitors.d.cts +1 -1
- package/dist/actions/get-realtime-visitors.d.mts +1 -1
- package/dist/actions/get-realtime-visitors.mjs +1 -1
- package/dist/actions/get-realtime-visitors.mjs.map +1 -1
- package/dist/actions/get-site.cjs +2 -2
- package/dist/actions/get-site.cjs.map +1 -1
- package/dist/actions/get-site.d.cts +2 -2
- package/dist/actions/get-site.d.mts +2 -2
- package/dist/actions/get-site.mjs +2 -2
- package/dist/actions/get-site.mjs.map +1 -1
- package/dist/actions/get-timeseries-stats.cjs +2 -2
- package/dist/actions/get-timeseries-stats.cjs.map +1 -1
- package/dist/actions/get-timeseries-stats.d.cts +2 -2
- package/dist/actions/get-timeseries-stats.d.mts +2 -2
- package/dist/actions/get-timeseries-stats.mjs +2 -2
- package/dist/actions/get-timeseries-stats.mjs.map +1 -1
- package/dist/actions/list-custom-props.cjs +2 -2
- package/dist/actions/list-custom-props.cjs.map +1 -1
- package/dist/actions/list-custom-props.d.cts +2 -2
- package/dist/actions/list-custom-props.d.mts +2 -2
- package/dist/actions/list-custom-props.mjs +2 -2
- package/dist/actions/list-custom-props.mjs.map +1 -1
- package/dist/actions/list-goals.cjs +4 -4
- package/dist/actions/list-goals.cjs.map +1 -1
- package/dist/actions/list-goals.d.cts +4 -4
- package/dist/actions/list-goals.d.mts +4 -4
- package/dist/actions/list-goals.mjs +4 -4
- package/dist/actions/list-goals.mjs.map +1 -1
- package/dist/actions/list-guests.cjs +2 -2
- package/dist/actions/list-guests.cjs.map +1 -1
- package/dist/actions/list-guests.d.cts +2 -2
- package/dist/actions/list-guests.d.mts +2 -2
- package/dist/actions/list-guests.mjs +2 -2
- package/dist/actions/list-guests.mjs.map +1 -1
- package/dist/actions/list-sites.cjs +3 -3
- package/dist/actions/list-sites.cjs.map +1 -1
- package/dist/actions/list-sites.d.cts +3 -3
- package/dist/actions/list-sites.d.mts +3 -3
- package/dist/actions/list-sites.mjs +3 -3
- package/dist/actions/list-sites.mjs.map +1 -1
- package/dist/actions/list-teams.cjs +3 -3
- package/dist/actions/list-teams.cjs.map +1 -1
- package/dist/actions/list-teams.d.cts +3 -3
- package/dist/actions/list-teams.d.mts +3 -3
- package/dist/actions/list-teams.mjs +3 -3
- package/dist/actions/list-teams.mjs.map +1 -1
- package/dist/actions/query-stats.cjs +3 -3
- package/dist/actions/query-stats.cjs.map +1 -1
- package/dist/actions/query-stats.d.cts +3 -3
- package/dist/actions/query-stats.d.mts +3 -3
- package/dist/actions/query-stats.mjs +3 -3
- package/dist/actions/query-stats.mjs.map +1 -1
- package/dist/actions/record-event.cjs +2 -2
- package/dist/actions/record-event.cjs.map +1 -1
- package/dist/actions/record-event.d.cts +3 -3
- package/dist/actions/record-event.d.mts +3 -3
- package/dist/actions/record-event.mjs +2 -2
- package/dist/actions/record-event.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ const PlausibleAnalyticsCheckHealthInput = zod.z.object({}).describe("Request sc
|
|
|
5
5
|
const PlausibleAnalyticsCheckHealthOutput = zod.z.object({
|
|
6
6
|
status: zod.z.string().describe("Health status of the API (e.g., 'ok', 'healthy').").nullable().optional(),
|
|
7
7
|
message: zod.z.string().describe("Health check message from the API.").nullable().optional()
|
|
8
|
-
}).describe("Response schema for Plausible API health check.");
|
|
8
|
+
}).passthrough().describe("Response schema for Plausible API health check.");
|
|
9
9
|
const plausibleAnalyticsCheckHealth = require_action.action("PLAUSIBLE_ANALYTICS_CHECK_HEALTH", {
|
|
10
10
|
slug: "plausible_analytics-check-health",
|
|
11
11
|
name: "Check API Health",
|
|
@@ -1 +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.object({}).describe(\"Request schema for checking Plausible API health. No parameters required.\");\nexport const PlausibleAnalyticsCheckHealthOutput = 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,qCAAqCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACnJ,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,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;
|
|
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.object({}).describe(\"Request schema for checking Plausible API health. No parameters required.\");\nexport const PlausibleAnalyticsCheckHealthOutput = 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}).passthrough().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,qCAAqCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACnJ,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,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,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -5,7 +5,7 @@ declare const PlausibleAnalyticsCheckHealthInput: z.ZodObject<{}, z.core.$strip>
|
|
|
5
5
|
declare const PlausibleAnalyticsCheckHealthOutput: z.ZodObject<{
|
|
6
6
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
}, z.core.$
|
|
8
|
+
}, z.core.$loose>;
|
|
9
9
|
declare const plausibleAnalyticsCheckHealth: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { plausibleAnalyticsCheckHealth };
|
|
@@ -5,7 +5,7 @@ declare const PlausibleAnalyticsCheckHealthInput: z.ZodObject<{}, z.core.$strip>
|
|
|
5
5
|
declare const PlausibleAnalyticsCheckHealthOutput: z.ZodObject<{
|
|
6
6
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7
7
|
message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
-
}, z.core.$
|
|
8
|
+
}, z.core.$loose>;
|
|
9
9
|
declare const plausibleAnalyticsCheckHealth: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { plausibleAnalyticsCheckHealth };
|
|
@@ -8,7 +8,7 @@ const plausibleAnalyticsCheckHealth = action("PLAUSIBLE_ANALYTICS_CHECK_HEALTH",
|
|
|
8
8
|
output: z.object({
|
|
9
9
|
status: z.string().describe("Health status of the API (e.g., 'ok', 'healthy').").nullable().optional(),
|
|
10
10
|
message: z.string().describe("Health check message from the API.").nullable().optional()
|
|
11
|
-
}).describe("Response schema for Plausible API health check.")
|
|
11
|
+
}).passthrough().describe("Response schema for Plausible API health check.")
|
|
12
12
|
});
|
|
13
13
|
//#endregion
|
|
14
14
|
export { plausibleAnalyticsCheckHealth };
|
|
@@ -1 +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.object({}).describe(\"Request schema for checking Plausible API health. No parameters required.\");\nexport const PlausibleAnalyticsCheckHealthOutput = 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,OAVgD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAU/D;CACP,QAViD,EAAE,OAAO;EAC1D,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,
|
|
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.object({}).describe(\"Request schema for checking Plausible API health. No parameters required.\");\nexport const PlausibleAnalyticsCheckHealthOutput = 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}).passthrough().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,OAVgD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2EAU/D;CACP,QAViD,EAAE,OAAO;EAC1D,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,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -40,8 +40,8 @@ const PlausibleAnalyticsGetBreakdownStats_BreakdownResultSchema = zod.z.object({
|
|
|
40
40
|
browser_version: zod.z.string().describe("Browser version when property is visit:browser_version").nullable().optional(),
|
|
41
41
|
conversion_rate: zod.z.number().describe("Conversion rate percentage for this breakdown value").nullable().optional(),
|
|
42
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");
|
|
43
|
+
}).passthrough().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") }).passthrough().describe("Response model for breakdown stats");
|
|
45
45
|
const plausibleAnalyticsGetBreakdownStats = require_action.action("PLAUSIBLE_ANALYTICS_GET_BREAKDOWN_STATS", {
|
|
46
46
|
slug: "plausible_analytics-get-breakdown-stats",
|
|
47
47
|
name: "Get Breakdown Stats",
|
|
@@ -1 +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.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.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.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":";;;AAIA,MAAa,2CAA2CA,IAAAA,EA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,eAAAA,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
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.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.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}).passthrough().describe(\"Model for individual breakdown result\");\nexport const PlausibleAnalyticsGetBreakdownStatsOutput = 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}).passthrough().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":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wNAAwN,CAAC,CAAC,SAAS;CAC7P,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CACxJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACtJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,yRAAyR,CAAC,CAAC,SAAS;CAC/U,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oOAAoO,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S;CAC7G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,4CAA4CA,IAAAA,EAAE,OAAO,EAChE,SAASA,IAAAA,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,8IAA8I,EACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAE9D,MAAa,sCAAsCC,eAAAA,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -41,8 +41,8 @@ declare const PlausibleAnalyticsGetBreakdownStatsOutput: z.ZodObject<{
|
|
|
41
41
|
browser_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
views_per_visit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const plausibleAnalyticsGetBreakdownStats: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
site_id: string;
|
|
48
48
|
property: string;
|
|
@@ -41,8 +41,8 @@ declare const PlausibleAnalyticsGetBreakdownStatsOutput: z.ZodObject<{
|
|
|
41
41
|
browser_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
43
43
|
views_per_visit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
44
|
-
}, z.core.$
|
|
45
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>>;
|
|
45
|
+
}, z.core.$loose>;
|
|
46
46
|
declare const plausibleAnalyticsGetBreakdownStats: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
47
47
|
site_id: string;
|
|
48
48
|
property: string;
|
|
@@ -40,13 +40,13 @@ const PlausibleAnalyticsGetBreakdownStats_BreakdownResultSchema = z.object({
|
|
|
40
40
|
browser_version: z.string().describe("Browser version when property is visit:browser_version").nullable().optional(),
|
|
41
41
|
conversion_rate: z.number().describe("Conversion rate percentage for this breakdown value").nullable().optional(),
|
|
42
42
|
views_per_visit: z.number().describe("Average pageviews per visit for this breakdown value").nullable().optional()
|
|
43
|
-
}).describe("Model for individual breakdown result");
|
|
43
|
+
}).passthrough().describe("Model for individual breakdown result");
|
|
44
44
|
const plausibleAnalyticsGetBreakdownStats = action("PLAUSIBLE_ANALYTICS_GET_BREAKDOWN_STATS", {
|
|
45
45
|
slug: "plausible_analytics-get-breakdown-stats",
|
|
46
46
|
name: "Get Breakdown Stats",
|
|
47
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
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")
|
|
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") }).passthrough().describe("Response model for breakdown stats")
|
|
50
50
|
});
|
|
51
51
|
//#endregion
|
|
52
52
|
export { plausibleAnalyticsGetBreakdownStats };
|
|
@@ -1 +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.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.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.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":";;;AAIA,MAAa,2CAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wNAAwN,CAAC,CAAC,SAAS;CAC7P,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;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CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,SAAS,uCAAuC;
|
|
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.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.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}).passthrough().describe(\"Model for individual breakdown result\");\nexport const PlausibleAnalyticsGetBreakdownStatsOutput = 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}).passthrough().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: PlausibleAnalyticsGetBreak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EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAKjE,MAAa,sCAAsC,OAAO,2CAA2C;CACnG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,SAAS,EAAE,MAAM,yDAAyD,CAAC,CAAC,SAAS,8IAA8I,EACrO,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAOhB;AACV,CAAC"}
|
|
@@ -14,12 +14,12 @@ const PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema = zod.z.objec
|
|
|
14
14
|
RevenueGoals: zod.z.boolean().describe("Whether RevenueGoals feature is available").nullable(),
|
|
15
15
|
SiteSegments: zod.z.boolean().describe("Whether SiteSegments feature is available").nullable(),
|
|
16
16
|
ConsolidatedView: zod.z.boolean().describe("Whether ConsolidatedView feature is available").nullable()
|
|
17
|
-
}).describe("Available features for the Plausible Analytics plugin.");
|
|
17
|
+
}).passthrough().describe("Available features for the Plausible Analytics plugin.");
|
|
18
18
|
const PlausibleAnalyticsGetPluginCapabilitiesOutput = zod.z.object({
|
|
19
19
|
features: PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema.nullable(),
|
|
20
20
|
authorized: zod.z.boolean().describe("Whether the API token is authorized").nullable(),
|
|
21
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.");
|
|
22
|
+
}).passthrough().describe("Response model containing plugin capabilities information.");
|
|
23
23
|
const plausibleAnalyticsGetPluginCapabilities = require_action.action("PLAUSIBLE_ANALYTICS_GET_PLUGIN_CAPABILITIES", {
|
|
24
24
|
slug: "plausible_analytics-get-plugin-capabilities",
|
|
25
25
|
name: "Get Plugin Capabilities",
|
|
@@ -1 +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.object({}).describe(\"Request model for retrieving plugin capabilities.\\nThis endpoint requires no parameters.\");\nconst PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema = z.object({\n SSO: z.boolean().describe(\"Whether SSO (Single Sign-On) feature is available\").nullable(),\n Goals: z.boolean().describe(\"Whether Goals feature is available\").nullable(),\n Props: z.boolean().describe(\"Whether Props feature is available\").nullable(),\n Teams: z.boolean().describe(\"Whether Teams feature is available\").nullable().optional(),\n Funnels: z.boolean().describe(\"Whether Funnels feature is available\").nullable(),\n SitesAPI: z.boolean().describe(\"Whether SitesAPI feature is available\").nullable(),\n StatsAPI: z.boolean().describe(\"Whether StatsAPI feature is available\").nullable(),\n SharedLinks: z.boolean().describe(\"Whether SharedLinks feature is available\").nullable(),\n RevenueGoals: z.boolean().describe(\"Whether RevenueGoals feature is available\").nullable(),\n SiteSegments: z.boolean().describe(\"Whether SiteSegments feature is available\").nullable(),\n ConsolidatedView: z.boolean().describe(\"Whether ConsolidatedView feature is available\").nullable(),\n}).describe(\"Available features for the Plausible Analytics plugin.\");\nexport const PlausibleAnalyticsGetPluginCapabilitiesOutput = z.object({\n features: PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema.nullable(),\n authorized: z.boolean().describe(\"Whether the API token is authorized\").nullable(),\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,+CAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAC5K,MAAM,+DAA+DA,IAAAA,EAAE,OAAO;CAC5E,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,wDAAwD;
|
|
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.object({}).describe(\"Request model for retrieving plugin capabilities.\\nThis endpoint requires no parameters.\");\nconst PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema = z.object({\n SSO: z.boolean().describe(\"Whether SSO (Single Sign-On) feature is available\").nullable(),\n Goals: z.boolean().describe(\"Whether Goals feature is available\").nullable(),\n Props: z.boolean().describe(\"Whether Props feature is available\").nullable(),\n Teams: z.boolean().describe(\"Whether Teams feature is available\").nullable().optional(),\n Funnels: z.boolean().describe(\"Whether Funnels feature is available\").nullable(),\n SitesAPI: z.boolean().describe(\"Whether SitesAPI feature is available\").nullable(),\n StatsAPI: z.boolean().describe(\"Whether StatsAPI feature is available\").nullable(),\n SharedLinks: z.boolean().describe(\"Whether SharedLinks feature is available\").nullable(),\n RevenueGoals: z.boolean().describe(\"Whether RevenueGoals feature is available\").nullable(),\n SiteSegments: z.boolean().describe(\"Whether SiteSegments feature is available\").nullable(),\n ConsolidatedView: z.boolean().describe(\"Whether ConsolidatedView feature is available\").nullable(),\n}).passthrough().describe(\"Available features for the Plausible Analytics plugin.\");\nexport const PlausibleAnalyticsGetPluginCapabilitiesOutput = z.object({\n features: PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema.nullable(),\n authorized: z.boolean().describe(\"Whether the API token is authorized\").nullable(),\n data_domain: z.string().describe(\"The data domain associated with the plugin capabilities\").nullable().optional(),\n}).passthrough().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,+CAA+CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAC5K,MAAM,+DAA+DA,IAAAA,EAAE,OAAO;CAC5E,KAAKA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAASA,IAAA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z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
authorized: z.ZodNullable<z.ZodBoolean>;
|
|
20
20
|
data_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const plausibleAnalyticsGetPluginCapabilities: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { plausibleAnalyticsGetPluginCapabilities };
|
|
@@ -15,10 +15,10 @@ declare const PlausibleAnalyticsGetPluginCapabilitiesOutput: z.ZodObject<{
|
|
|
15
15
|
RevenueGoals: z.ZodNullable<z.ZodBoolean>;
|
|
16
16
|
SiteSegments: z.ZodNullable<z.ZodBoolean>;
|
|
17
17
|
ConsolidatedView: z.ZodNullable<z.ZodBoolean>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>;
|
|
19
19
|
authorized: z.ZodNullable<z.ZodBoolean>;
|
|
20
20
|
data_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const plausibleAnalyticsGetPluginCapabilities: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { plausibleAnalyticsGetPluginCapabilities };
|
|
@@ -14,7 +14,7 @@ const PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema = z.object({
|
|
|
14
14
|
RevenueGoals: z.boolean().describe("Whether RevenueGoals feature is available").nullable(),
|
|
15
15
|
SiteSegments: z.boolean().describe("Whether SiteSegments feature is available").nullable(),
|
|
16
16
|
ConsolidatedView: z.boolean().describe("Whether ConsolidatedView feature is available").nullable()
|
|
17
|
-
}).describe("Available features for the Plausible Analytics plugin.");
|
|
17
|
+
}).passthrough().describe("Available features for the Plausible Analytics plugin.");
|
|
18
18
|
const plausibleAnalyticsGetPluginCapabilities = action("PLAUSIBLE_ANALYTICS_GET_PLUGIN_CAPABILITIES", {
|
|
19
19
|
slug: "plausible_analytics-get-plugin-capabilities",
|
|
20
20
|
name: "Get Plugin Capabilities",
|
|
@@ -24,7 +24,7 @@ const plausibleAnalyticsGetPluginCapabilities = action("PLAUSIBLE_ANALYTICS_GET_
|
|
|
24
24
|
features: PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema.nullable(),
|
|
25
25
|
authorized: z.boolean().describe("Whether the API token is authorized").nullable(),
|
|
26
26
|
data_domain: z.string().describe("The data domain associated with the plugin capabilities").nullable().optional()
|
|
27
|
-
}).describe("Response model containing plugin capabilities information.")
|
|
27
|
+
}).passthrough().describe("Response model containing plugin capabilities information.")
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { plausibleAnalyticsGetPluginCapabilities };
|
|
@@ -1 +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.object({}).describe(\"Request model for retrieving plugin capabilities.\\nThis endpoint requires no parameters.\");\nconst PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema = z.object({\n SSO: z.boolean().describe(\"Whether SSO (Single Sign-On) feature is available\").nullable(),\n Goals: z.boolean().describe(\"Whether Goals feature is available\").nullable(),\n Props: z.boolean().describe(\"Whether Props feature is available\").nullable(),\n Teams: z.boolean().describe(\"Whether Teams feature is available\").nullable().optional(),\n Funnels: z.boolean().describe(\"Whether Funnels feature is available\").nullable(),\n SitesAPI: z.boolean().describe(\"Whether SitesAPI feature is available\").nullable(),\n StatsAPI: z.boolean().describe(\"Whether StatsAPI feature is available\").nullable(),\n SharedLinks: z.boolean().describe(\"Whether SharedLinks feature is available\").nullable(),\n RevenueGoals: z.boolean().describe(\"Whether RevenueGoals feature is available\").nullable(),\n SiteSegments: z.boolean().describe(\"Whether SiteSegments feature is available\").nullable(),\n ConsolidatedView: z.boolean().describe(\"Whether ConsolidatedView feature is available\").nullable(),\n}).describe(\"Available features for the Plausible Analytics plugin.\");\nexport const PlausibleAnalyticsGetPluginCapabilitiesOutput = z.object({\n features: PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema.nullable(),\n authorized: z.boolean().describe(\"Whether the API token is authorized\").nullable(),\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,+CAA+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAC5K,MAAM,+DAA+D,EAAE,OAAO;CAC5E,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,wDAAwD;
|
|
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.object({}).describe(\"Request model for retrieving plugin capabilities.\\nThis endpoint requires no parameters.\");\nconst PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema = z.object({\n SSO: z.boolean().describe(\"Whether SSO (Single Sign-On) feature is available\").nullable(),\n Goals: z.boolean().describe(\"Whether Goals feature is available\").nullable(),\n Props: z.boolean().describe(\"Whether Props feature is available\").nullable(),\n Teams: z.boolean().describe(\"Whether Teams feature is available\").nullable().optional(),\n Funnels: z.boolean().describe(\"Whether Funnels feature is available\").nullable(),\n SitesAPI: z.boolean().describe(\"Whether SitesAPI feature is available\").nullable(),\n StatsAPI: z.boolean().describe(\"Whether StatsAPI feature is available\").nullable(),\n SharedLinks: z.boolean().describe(\"Whether SharedLinks feature is available\").nullable(),\n RevenueGoals: z.boolean().describe(\"Whether RevenueGoals feature is available\").nullable(),\n SiteSegments: z.boolean().describe(\"Whether SiteSegments feature is available\").nullable(),\n ConsolidatedView: z.boolean().describe(\"Whether ConsolidatedView feature is available\").nullable(),\n}).passthrough().describe(\"Available features for the Plausible Analytics plugin.\");\nexport const PlausibleAnalyticsGetPluginCapabilitiesOutput = z.object({\n features: PlausibleAnalyticsGetPluginCapabilities_PluginFeaturesSchema.nullable(),\n authorized: z.boolean().describe(\"Whether the API token is authorized\").nullable(),\n data_domain: z.string().describe(\"The data domain associated with the plugin capabilities\").nullable().optional(),\n}).passthrough().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,+CAA+C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0FAA0F;AAC5K,MAAM,+DAA+D,EAAE,OAAO;CAC5E,KAAK,EAAE,QAAQ,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC/E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACvF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACzF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAOlF,MAAa,0CAA0C,OAAO,+CAA+C;CAC3G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX2D,EAAE,OAAO;EACpE,UAAU,6DAA6D,SAAS;EAChF,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/get-realtime-visitors.ts
|
|
4
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").nullable() }).describe("Response model for realtime visitors count.");
|
|
5
|
+
const PlausibleAnalyticsGetRealtimeVisitorsOutput = zod.z.object({ visitors: zod.z.number().int().describe("Number of current visitors on the site in the last 5 minutes").nullable() }).passthrough().describe("Response model for realtime visitors count.");
|
|
6
6
|
const plausibleAnalyticsGetRealtimeVisitors = require_action.action("PLAUSIBLE_ANALYTICS_GET_REALTIME_VISITORS", {
|
|
7
7
|
slug: "plausible_analytics-get-realtime-visitors",
|
|
8
8
|
name: "Get Realtime Visitors",
|
|
@@ -1 +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.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.object({\n visitors: z.number().int().describe(\"Number of current visitors on the site in the last 5 minutes\").nullable(),\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,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,EACvF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,EAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,6CAA6C;
|
|
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.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.object({\n visitors: z.number().int().describe(\"Number of current visitors on the site in the last 5 minutes\").nullable(),\n}).passthrough().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,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,EACvF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,8CAA8CA,IAAAA,EAAE,OAAO,EAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,7 +6,7 @@ declare const PlausibleAnalyticsGetRealtimeVisitorsInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PlausibleAnalyticsGetRealtimeVisitorsOutput: z.ZodObject<{
|
|
8
8
|
visitors: z.ZodNullable<z.ZodNumber>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const plausibleAnalyticsGetRealtimeVisitors: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
site_id: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ declare const PlausibleAnalyticsGetRealtimeVisitorsInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const PlausibleAnalyticsGetRealtimeVisitorsOutput: z.ZodObject<{
|
|
8
8
|
visitors: z.ZodNullable<z.ZodNumber>;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>;
|
|
10
10
|
declare const plausibleAnalyticsGetRealtimeVisitors: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
11
|
site_id: string;
|
|
12
12
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,7 +5,7 @@ const plausibleAnalyticsGetRealtimeVisitors = action("PLAUSIBLE_ANALYTICS_GET_RE
|
|
|
5
5
|
name: "Get Realtime Visitors",
|
|
6
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
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").nullable() }).describe("Response model for realtime visitors count.")
|
|
8
|
+
output: z.object({ visitors: z.number().int().describe("Number of current visitors on the site in the last 5 minutes").nullable() }).passthrough().describe("Response model for realtime visitors count.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { plausibleAnalyticsGetRealtimeVisitors };
|
|
@@ -1 +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.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.object({\n visitors: z.number().int().describe(\"Number of current visitors on the site in the last 5 minutes\").nullable(),\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,OAXwD,EAAE,OAAO,EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,EACvF,CAAC,CAAC,CAAC,SAAS,uDASH;CACP,QATyD,EAAE,OAAO,EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,SAAS,
|
|
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.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.object({\n visitors: z.number().int().describe(\"Number of current visitors on the site in the last 5 minutes\").nullable(),\n}).passthrough().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,OAXwD,EAAE,OAAO,EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,EACvF,CAAC,CAAC,CAAC,SAAS,uDASH;CACP,QATyD,EAAE,OAAO,EAClE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,EAC/G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -13,13 +13,13 @@ const PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema = zod.z.object(
|
|
|
13
13
|
revenue_tracking: zod.z.boolean().describe("Whether revenue tracking is enabled").nullable(),
|
|
14
14
|
installation_type: zod.z.string().describe("Type of installation: 'wordpress', 'manual', 'gtm', or null").nullable().optional(),
|
|
15
15
|
hash_based_routing: zod.z.boolean().describe("Whether hash-based routing changes are tracked").nullable()
|
|
16
|
-
}).describe("Configuration details for the site's tracking script.");
|
|
16
|
+
}).passthrough().describe("Configuration details for the site's tracking script.");
|
|
17
17
|
const PlausibleAnalyticsGetSiteOutput = zod.z.object({
|
|
18
18
|
domain: zod.z.string().describe("The site's domain name").nullable(),
|
|
19
19
|
timezone: zod.z.string().describe("IANA timezone identifier for the site (e.g., 'America/New_York')").nullable(),
|
|
20
20
|
custom_properties: zod.z.array(zod.z.string()).describe("List of custom property names defined for the site"),
|
|
21
21
|
tracker_script_configuration: PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema.nullable()
|
|
22
|
-
}).describe("Response model containing site details and configuration.");
|
|
22
|
+
}).passthrough().describe("Response model containing site details and configuration.");
|
|
23
23
|
const plausibleAnalyticsGetSite = require_action.action("PLAUSIBLE_ANALYTICS_GET_SITE", {
|
|
24
24
|
slug: "plausible_analytics-get-site",
|
|
25
25
|
name: "Get Site Details",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-site.cjs","names":["z","action"],"sources":["../../src/actions/get-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetSiteInput = z.object({\n site_id: z.string().describe(\"Domain/ID of the site to retrieve (e.g., 'example.com' or 'composio')\"),\n}).describe(\"Request model for retrieving details of a specific Plausible Analytics site.\");\nconst PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema = z.object({\n id: z.string().describe(\"Unique identifier for the tracker script\").nullable(),\n tagged_events: z.boolean().describe(\"Whether tagged events are enabled\").nullable(),\n file_downloads: z.boolean().describe(\"Whether file downloads are tracked\").nullable(),\n outbound_links: z.boolean().describe(\"Whether outbound link clicks are tracked\").nullable(),\n pageview_props: z.boolean().describe(\"Whether pageview properties are enabled\").nullable(),\n track_404_pages: z.boolean().describe(\"Whether 404 pages are tracked\").nullable(),\n form_submissions: z.boolean().describe(\"Whether form submissions are tracked\").nullable(),\n revenue_tracking: z.boolean().describe(\"Whether revenue tracking is enabled\").nullable(),\n installation_type: z.string().describe(\"Type of installation: 'wordpress', 'manual', 'gtm', or null\").nullable().optional(),\n hash_based_routing: z.boolean().describe(\"Whether hash-based routing changes are tracked\").nullable(),\n}).describe(\"Configuration details for the site's tracking script.\");\nexport const PlausibleAnalyticsGetSiteOutput = z.object({\n domain: z.string().describe(\"The site's domain name\").nullable(),\n timezone: z.string().describe(\"IANA timezone identifier for the site (e.g., 'America/New_York')\").nullable(),\n custom_properties: z.array(z.string()).describe(\"List of custom property names defined for the site\"),\n tracker_script_configuration: PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema.nullable(),\n}).describe(\"Response model containing site details and configuration.\");\n\nexport const plausibleAnalyticsGetSite = action(\"PLAUSIBLE_ANALYTICS_GET_SITE\", {\n slug: \"plausible_analytics-get-site\",\n name: \"Get Site Details\",\n 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.\",\n input: PlausibleAnalyticsGetSiteInput,\n output: PlausibleAnalyticsGetSiteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,EACtG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAChF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACxF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACvF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,uDAAuD;
|
|
1
|
+
{"version":3,"file":"get-site.cjs","names":["z","action"],"sources":["../../src/actions/get-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetSiteInput = z.object({\n site_id: z.string().describe(\"Domain/ID of the site to retrieve (e.g., 'example.com' or 'composio')\"),\n}).describe(\"Request model for retrieving details of a specific Plausible Analytics site.\");\nconst PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema = z.object({\n id: z.string().describe(\"Unique identifier for the tracker script\").nullable(),\n tagged_events: z.boolean().describe(\"Whether tagged events are enabled\").nullable(),\n file_downloads: z.boolean().describe(\"Whether file downloads are tracked\").nullable(),\n outbound_links: z.boolean().describe(\"Whether outbound link clicks are tracked\").nullable(),\n pageview_props: z.boolean().describe(\"Whether pageview properties are enabled\").nullable(),\n track_404_pages: z.boolean().describe(\"Whether 404 pages are tracked\").nullable(),\n form_submissions: z.boolean().describe(\"Whether form submissions are tracked\").nullable(),\n revenue_tracking: z.boolean().describe(\"Whether revenue tracking is enabled\").nullable(),\n installation_type: z.string().describe(\"Type of installation: 'wordpress', 'manual', 'gtm', or null\").nullable().optional(),\n hash_based_routing: z.boolean().describe(\"Whether hash-based routing changes are tracked\").nullable(),\n}).passthrough().describe(\"Configuration details for the site's tracking script.\");\nexport const PlausibleAnalyticsGetSiteOutput = z.object({\n domain: z.string().describe(\"The site's domain name\").nullable(),\n timezone: z.string().describe(\"IANA timezone identifier for the site (e.g., 'America/New_York')\").nullable(),\n custom_properties: z.array(z.string()).describe(\"List of custom property names defined for the site\"),\n tracker_script_configuration: PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema.nullable(),\n}).passthrough().describe(\"Response model containing site details and configuration.\");\n\nexport const plausibleAnalyticsGetSite = action(\"PLAUSIBLE_ANALYTICS_GET_SITE\", {\n slug: \"plausible_analytics-get-site\",\n name: \"Get Site Details\",\n 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.\",\n input: PlausibleAnalyticsGetSiteInput,\n output: PlausibleAnalyticsGetSiteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,EACtG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,6DAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACzF,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAChF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACxF,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACvF,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CAC/D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD;CACpG,8BAA8B,2DAA2D,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -19,8 +19,8 @@ declare const PlausibleAnalyticsGetSiteOutput: z.ZodObject<{
|
|
|
19
19
|
revenue_tracking: z.ZodNullable<z.ZodBoolean>;
|
|
20
20
|
installation_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
hash_based_routing: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
-
}, z.core.$
|
|
23
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const plausibleAnalyticsGetSite: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
site_id: string;
|
|
26
26
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -19,8 +19,8 @@ declare const PlausibleAnalyticsGetSiteOutput: z.ZodObject<{
|
|
|
19
19
|
revenue_tracking: z.ZodNullable<z.ZodBoolean>;
|
|
20
20
|
installation_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
hash_based_routing: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
-
}, z.core.$
|
|
23
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
24
|
declare const plausibleAnalyticsGetSite: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
25
|
site_id: string;
|
|
26
26
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -13,7 +13,7 @@ const PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema = z.object({
|
|
|
13
13
|
revenue_tracking: z.boolean().describe("Whether revenue tracking is enabled").nullable(),
|
|
14
14
|
installation_type: z.string().describe("Type of installation: 'wordpress', 'manual', 'gtm', or null").nullable().optional(),
|
|
15
15
|
hash_based_routing: z.boolean().describe("Whether hash-based routing changes are tracked").nullable()
|
|
16
|
-
}).describe("Configuration details for the site's tracking script.");
|
|
16
|
+
}).passthrough().describe("Configuration details for the site's tracking script.");
|
|
17
17
|
const plausibleAnalyticsGetSite = action("PLAUSIBLE_ANALYTICS_GET_SITE", {
|
|
18
18
|
slug: "plausible_analytics-get-site",
|
|
19
19
|
name: "Get Site Details",
|
|
@@ -24,7 +24,7 @@ const plausibleAnalyticsGetSite = action("PLAUSIBLE_ANALYTICS_GET_SITE", {
|
|
|
24
24
|
timezone: z.string().describe("IANA timezone identifier for the site (e.g., 'America/New_York')").nullable(),
|
|
25
25
|
custom_properties: z.array(z.string()).describe("List of custom property names defined for the site"),
|
|
26
26
|
tracker_script_configuration: PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema.nullable()
|
|
27
|
-
}).describe("Response model containing site details and configuration.")
|
|
27
|
+
}).passthrough().describe("Response model containing site details and configuration.")
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { plausibleAnalyticsGetSite };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-site.mjs","names":[],"sources":["../../src/actions/get-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetSiteInput = z.object({\n site_id: z.string().describe(\"Domain/ID of the site to retrieve (e.g., 'example.com' or 'composio')\"),\n}).describe(\"Request model for retrieving details of a specific Plausible Analytics site.\");\nconst PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema = z.object({\n id: z.string().describe(\"Unique identifier for the tracker script\").nullable(),\n tagged_events: z.boolean().describe(\"Whether tagged events are enabled\").nullable(),\n file_downloads: z.boolean().describe(\"Whether file downloads are tracked\").nullable(),\n outbound_links: z.boolean().describe(\"Whether outbound link clicks are tracked\").nullable(),\n pageview_props: z.boolean().describe(\"Whether pageview properties are enabled\").nullable(),\n track_404_pages: z.boolean().describe(\"Whether 404 pages are tracked\").nullable(),\n form_submissions: z.boolean().describe(\"Whether form submissions are tracked\").nullable(),\n revenue_tracking: z.boolean().describe(\"Whether revenue tracking is enabled\").nullable(),\n installation_type: z.string().describe(\"Type of installation: 'wordpress', 'manual', 'gtm', or null\").nullable().optional(),\n hash_based_routing: z.boolean().describe(\"Whether hash-based routing changes are tracked\").nullable(),\n}).describe(\"Configuration details for the site's tracking script.\");\nexport const PlausibleAnalyticsGetSiteOutput = z.object({\n domain: z.string().describe(\"The site's domain name\").nullable(),\n timezone: z.string().describe(\"IANA timezone identifier for the site (e.g., 'America/New_York')\").nullable(),\n custom_properties: z.array(z.string()).describe(\"List of custom property names defined for the site\"),\n tracker_script_configuration: PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema.nullable(),\n}).describe(\"Response model containing site details and configuration.\");\n\nexport const plausibleAnalyticsGetSite = action(\"PLAUSIBLE_ANALYTICS_GET_SITE\", {\n slug: \"plausible_analytics-get-site\",\n name: \"Get Site Details\",\n 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.\",\n input: PlausibleAnalyticsGetSiteInput,\n output: PlausibleAnalyticsGetSiteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,EACtG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,6DAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAClF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACpF,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACzF,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAChF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACxF,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACvF,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,uDAAuD;
|
|
1
|
+
{"version":3,"file":"get-site.mjs","names":[],"sources":["../../src/actions/get-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetSiteInput = z.object({\n site_id: z.string().describe(\"Domain/ID of the site to retrieve (e.g., 'example.com' or 'composio')\"),\n}).describe(\"Request model for retrieving details of a specific Plausible Analytics site.\");\nconst PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema = z.object({\n id: z.string().describe(\"Unique identifier for the tracker script\").nullable(),\n tagged_events: z.boolean().describe(\"Whether tagged events are enabled\").nullable(),\n file_downloads: z.boolean().describe(\"Whether file downloads are tracked\").nullable(),\n outbound_links: z.boolean().describe(\"Whether outbound link clicks are tracked\").nullable(),\n pageview_props: z.boolean().describe(\"Whether pageview properties are enabled\").nullable(),\n track_404_pages: z.boolean().describe(\"Whether 404 pages are tracked\").nullable(),\n form_submissions: z.boolean().describe(\"Whether form submissions are tracked\").nullable(),\n revenue_tracking: z.boolean().describe(\"Whether revenue tracking is enabled\").nullable(),\n installation_type: z.string().describe(\"Type of installation: 'wordpress', 'manual', 'gtm', or null\").nullable().optional(),\n hash_based_routing: z.boolean().describe(\"Whether hash-based routing changes are tracked\").nullable(),\n}).passthrough().describe(\"Configuration details for the site's tracking script.\");\nexport const PlausibleAnalyticsGetSiteOutput = z.object({\n domain: z.string().describe(\"The site's domain name\").nullable(),\n timezone: z.string().describe(\"IANA timezone identifier for the site (e.g., 'America/New_York')\").nullable(),\n custom_properties: z.array(z.string()).describe(\"List of custom property names defined for the site\"),\n tracker_script_configuration: PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema.nullable(),\n}).passthrough().describe(\"Response model containing site details and configuration.\");\n\nexport const plausibleAnalyticsGetSite = action(\"PLAUSIBLE_ANALYTICS_GET_SITE\", {\n slug: \"plausible_analytics-get-site\",\n name: \"Get Site Details\",\n 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 sett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AAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC3G,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD;EACpG,8BAA8B,2DAA2D,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
|
|
@@ -19,8 +19,8 @@ const PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema = zod.z.obj
|
|
|
19
19
|
visit_duration: zod.z.number().describe("Average visit duration in seconds").nullable().optional(),
|
|
20
20
|
conversion_rate: zod.z.number().describe("Conversion rate as a percentage (0-100)").nullable().optional(),
|
|
21
21
|
views_per_visit: zod.z.number().describe("Average number of pageviews per visit").nullable().optional()
|
|
22
|
-
}).describe("Represents a single data point in the timeseries response.");
|
|
23
|
-
const PlausibleAnalyticsGetTimeseriesStatsOutput = zod.z.object({ results: zod.z.array(PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema).describe("Array of data points, each representing metrics for a specific time period") }).describe("Response containing timeseries data from Plausible Analytics.");
|
|
22
|
+
}).passthrough().describe("Represents a single data point in the timeseries response.");
|
|
23
|
+
const PlausibleAnalyticsGetTimeseriesStatsOutput = zod.z.object({ results: zod.z.array(PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema).describe("Array of data points, each representing metrics for a specific time period") }).passthrough().describe("Response containing timeseries data from Plausible Analytics.");
|
|
24
24
|
const plausibleAnalyticsGetTimeseriesStats = require_action.action("PLAUSIBLE_ANALYTICS_GET_TIMESERIES_STATS", {
|
|
25
25
|
slug: "plausible_analytics-get-timeseries-stats",
|
|
26
26
|
name: "Get Timeseries Stats",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-timeseries-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-timeseries-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetTimeseriesStatsInput = z.object({\n period: z.string().describe(\"Time period for the timeseries data. Examples: '6mo' (6 months), '12mo' (12 months), '30d' (30 days), 'day' (today), 'month' (current month). If not specified, defaults to '30d'.\").optional(),\n filters: z.string().describe(\"Filter expression to drill down data. Format: 'property==value' or 'property==value;property2==value2'. Examples: 'event:page==/blog', 'visit:source==Twitter'.\").optional(),\n metrics: z.string().describe(\"Comma-separated list of metrics to show for each time bucket. Valid options: 'visitors', 'visits', 'pageviews', 'views_per_visit', 'bounce_rate', 'visit_duration', 'events', 'conversion_rate'. Defaults to 'visitors' if not specified.\").optional(),\n site_id: z.string().describe(\"Domain of your site on Plausible (e.g., 'example.com')\"),\n interval: z.enum([\"day\", \"month\"]).describe(\"Interval for grouping timeseries data.\").optional(),\n with_imported: z.boolean().describe(\"Whether to include imported statistics from other analytics platforms. Defaults to false if not specified.\").optional(),\n}).describe(\"Request model for fetching timeseries statistics from Plausible Analytics.\");\nconst PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema = z.object({\n date: z.string().describe(\"The date for this data point in ISO format (e.g., '2020-08-01')\").nullable(),\n events: z.number().int().describe(\"Number of custom events tracked\").nullable().optional(),\n visits: z.number().int().describe(\"Number of visits (sessions) for this time period\").nullable().optional(),\n visitors: z.number().int().describe(\"Number of unique visitors for this time period\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of pageviews for this time period\").nullable().optional(),\n bounce_rate: z.number().describe(\"Bounce rate as a percentage (0-100)\").nullable().optional(),\n visit_duration: z.number().describe(\"Average visit duration in seconds\").nullable().optional(),\n conversion_rate: z.number().describe(\"Conversion rate as a percentage (0-100)\").nullable().optional(),\n views_per_visit: z.number().describe(\"Average number of pageviews per visit\").nullable().optional(),\n}).describe(\"Represents a single data point in the timeseries response.\");\nexport const PlausibleAnalyticsGetTimeseriesStatsOutput = z.object({\n results: z.array(PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema).describe(\"Array of data points, each representing metrics for a specific time period\"),\n}).describe(\"Response containing timeseries data from Plausible Analytics.\");\n\nexport const plausibleAnalyticsGetTimeseriesStats = action(\"PLAUSIBLE_ANALYTICS_GET_TIMESERIES_STATS\", {\n slug: \"plausible_analytics-get-timeseries-stats\",\n name: \"Get Timeseries Stats\",\n description: \"Tool to retrieve timeseries visitor data from Plausible Analytics over a specified time period. Use this to get historical trends for metrics like visitors, pageviews, bounce rate, and visit duration. This is the legacy Stats API v1 endpoint typically used for the main visitor graph.\",\n input: PlausibleAnalyticsGetTimeseriesStatsInput,\n output: PlausibleAnalyticsGetTimeseriesStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CAC3N,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACzM,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2OAA2O,CAAC,CAAC,SAAS;CACnR,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrF,UAAUA,IAAAA,EAAE,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC/F,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,iEAAiEA,IAAAA,EAAE,OAAO;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACtG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,4DAA4D;
|
|
1
|
+
{"version":3,"file":"get-timeseries-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-timeseries-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetTimeseriesStatsInput = z.object({\n period: z.string().describe(\"Time period for the timeseries data. Examples: '6mo' (6 months), '12mo' (12 months), '30d' (30 days), 'day' (today), 'month' (current month). If not specified, defaults to '30d'.\").optional(),\n filters: z.string().describe(\"Filter expression to drill down data. Format: 'property==value' or 'property==value;property2==value2'. Examples: 'event:page==/blog', 'visit:source==Twitter'.\").optional(),\n metrics: z.string().describe(\"Comma-separated list of metrics to show for each time bucket. Valid options: 'visitors', 'visits', 'pageviews', 'views_per_visit', 'bounce_rate', 'visit_duration', 'events', 'conversion_rate'. Defaults to 'visitors' if not specified.\").optional(),\n site_id: z.string().describe(\"Domain of your site on Plausible (e.g., 'example.com')\"),\n interval: z.enum([\"day\", \"month\"]).describe(\"Interval for grouping timeseries data.\").optional(),\n with_imported: z.boolean().describe(\"Whether to include imported statistics from other analytics platforms. Defaults to false if not specified.\").optional(),\n}).describe(\"Request model for fetching timeseries statistics from Plausible Analytics.\");\nconst PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema = z.object({\n date: z.string().describe(\"The date for this data point in ISO format (e.g., '2020-08-01')\").nullable(),\n events: z.number().int().describe(\"Number of custom events tracked\").nullable().optional(),\n visits: z.number().int().describe(\"Number of visits (sessions) for this time period\").nullable().optional(),\n visitors: z.number().int().describe(\"Number of unique visitors for this time period\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of pageviews for this time period\").nullable().optional(),\n bounce_rate: z.number().describe(\"Bounce rate as a percentage (0-100)\").nullable().optional(),\n visit_duration: z.number().describe(\"Average visit duration in seconds\").nullable().optional(),\n conversion_rate: z.number().describe(\"Conversion rate as a percentage (0-100)\").nullable().optional(),\n views_per_visit: z.number().describe(\"Average number of pageviews per visit\").nullable().optional(),\n}).passthrough().describe(\"Represents a single data point in the timeseries response.\");\nexport const PlausibleAnalyticsGetTimeseriesStatsOutput = z.object({\n results: z.array(PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema).describe(\"Array of data points, each representing metrics for a specific time period\"),\n}).passthrough().describe(\"Response containing timeseries data from Plausible Analytics.\");\n\nexport const plausibleAnalyticsGetTimeseriesStats = action(\"PLAUSIBLE_ANALYTICS_GET_TIMESERIES_STATS\", {\n slug: \"plausible_analytics-get-timeseries-stats\",\n name: \"Get Timeseries Stats\",\n description: \"Tool to retrieve timeseries visitor data from Plausible Analytics over a specified time period. Use this to get historical trends for metrics like visitors, pageviews, bounce rate, and visit duration. This is the legacy Stats API v1 endpoint typically used for the main visitor graph.\",\n input: PlausibleAnalyticsGetTimeseriesStatsInput,\n output: PlausibleAnalyticsGetTimeseriesStatsOutput,\n});\n"],"mappings":";;;AAIA,M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A,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,SAASA,IAAAA,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,4EAA4E,EACxK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAEzF,MAAa,uCAAuCC,eAAAA,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -23,8 +23,8 @@ declare const PlausibleAnalyticsGetTimeseriesStatsOutput: z.ZodObject<{
|
|
|
23
23
|
visit_duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
25
|
views_per_visit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
-
}, z.core.$
|
|
27
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
28
|
declare const plausibleAnalyticsGetTimeseriesStats: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
29
|
site_id: string;
|
|
30
30
|
period?: string | undefined;
|
|
@@ -23,8 +23,8 @@ declare const PlausibleAnalyticsGetTimeseriesStatsOutput: z.ZodObject<{
|
|
|
23
23
|
visit_duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
24
|
conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
25
|
views_per_visit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
-
}, z.core.$
|
|
27
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
28
|
declare const plausibleAnalyticsGetTimeseriesStats: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
29
|
site_id: string;
|
|
30
30
|
period?: string | undefined;
|