@keystrokehq/plausible_analytics 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/check-health.cjs +1 -1
- package/dist/actions/check-health.cjs.map +1 -1
- package/dist/actions/check-health.d.cts +6 -3
- package/dist/actions/check-health.d.cts.map +1 -1
- package/dist/actions/check-health.d.mts +6 -3
- package/dist/actions/check-health.d.mts.map +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 +52 -3
- package/dist/actions/get-breakdown-stats.d.cts.map +1 -1
- package/dist/actions/get-breakdown-stats.d.mts +52 -3
- package/dist/actions/get-breakdown-stats.d.mts.map +1 -1
- 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 +13 -13
- package/dist/actions/get-plugin-capabilities.cjs.map +1 -1
- package/dist/actions/get-plugin-capabilities.d.cts +19 -3
- package/dist/actions/get-plugin-capabilities.d.cts.map +1 -1
- package/dist/actions/get-plugin-capabilities.d.mts +19 -3
- package/dist/actions/get-plugin-capabilities.d.mts.map +1 -1
- package/dist/actions/get-plugin-capabilities.mjs +13 -13
- 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 +9 -3
- package/dist/actions/get-realtime-visitors.d.cts.map +1 -1
- package/dist/actions/get-realtime-visitors.d.mts +9 -3
- package/dist/actions/get-realtime-visitors.d.mts.map +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 +13 -13
- package/dist/actions/get-site.cjs.map +1 -1
- package/dist/actions/get-site.d.cts +23 -3
- package/dist/actions/get-site.d.cts.map +1 -1
- package/dist/actions/get-site.d.mts +23 -3
- package/dist/actions/get-site.d.mts.map +1 -1
- package/dist/actions/get-site.mjs +13 -13
- package/dist/actions/get-site.mjs.map +1 -1
- package/dist/actions/get-timeseries-stats.cjs +3 -3
- package/dist/actions/get-timeseries-stats.cjs.map +1 -1
- package/dist/actions/get-timeseries-stats.d.cts +32 -3
- package/dist/actions/get-timeseries-stats.d.cts.map +1 -1
- package/dist/actions/get-timeseries-stats.d.mts +32 -3
- package/dist/actions/get-timeseries-stats.d.mts.map +1 -1
- package/dist/actions/get-timeseries-stats.mjs +3 -3
- 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 +11 -3
- package/dist/actions/list-custom-props.d.cts.map +1 -1
- package/dist/actions/list-custom-props.d.mts +11 -3
- package/dist/actions/list-custom-props.d.mts.map +1 -1
- 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 +27 -3
- package/dist/actions/list-goals.d.cts.map +1 -1
- package/dist/actions/list-goals.d.mts +27 -3
- package/dist/actions/list-goals.d.mts.map +1 -1
- package/dist/actions/list-goals.mjs +4 -4
- package/dist/actions/list-goals.mjs.map +1 -1
- package/dist/actions/list-guests.cjs +5 -5
- package/dist/actions/list-guests.cjs.map +1 -1
- package/dist/actions/list-guests.d.cts +13 -3
- package/dist/actions/list-guests.d.cts.map +1 -1
- package/dist/actions/list-guests.d.mts +13 -3
- package/dist/actions/list-guests.d.mts.map +1 -1
- package/dist/actions/list-guests.mjs +5 -5
- package/dist/actions/list-guests.mjs.map +1 -1
- package/dist/actions/list-sites.cjs +6 -6
- package/dist/actions/list-sites.cjs.map +1 -1
- package/dist/actions/list-sites.d.cts +23 -3
- package/dist/actions/list-sites.d.cts.map +1 -1
- package/dist/actions/list-sites.d.mts +23 -3
- package/dist/actions/list-sites.d.mts.map +1 -1
- package/dist/actions/list-sites.mjs +6 -6
- 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 +22 -3
- package/dist/actions/list-teams.d.cts.map +1 -1
- package/dist/actions/list-teams.d.mts +22 -3
- package/dist/actions/list-teams.d.mts.map +1 -1
- 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 +23 -3
- package/dist/actions/query-stats.d.cts.map +1 -1
- package/dist/actions/query-stats.d.mts +23 -3
- package/dist/actions/query-stats.d.mts.map +1 -1
- package/dist/actions/query-stats.mjs +3 -3
- package/dist/actions/query-stats.mjs.map +1 -1
- package/dist/actions/record-event.cjs +4 -4
- package/dist/actions/record-event.cjs.map +1 -1
- package/dist/actions/record-event.d.cts +32 -3
- package/dist/actions/record-event.d.cts.map +1 -1
- package/dist/actions/record-event.d.mts +32 -3
- package/dist/actions/record-event.d.mts.map +1 -1
- package/dist/actions/record-event.mjs +4 -4
- package/dist/actions/record-event.mjs.map +1 -1
- package/dist/catalog.cjs +14 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +13 -0
- package/dist/catalog.d.mts +13 -0
- package/dist/catalog.mjs +14 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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
|
|
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"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-realtime-visitors.d.ts
|
|
4
|
-
declare const PlausibleAnalyticsGetRealtimeVisitorsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlausibleAnalyticsGetRealtimeVisitorsInput: z.ZodObject<{
|
|
5
|
+
site_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlausibleAnalyticsGetRealtimeVisitorsOutput: z.ZodObject<{
|
|
8
|
+
visitors: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const plausibleAnalyticsGetRealtimeVisitors: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
|
+
site_id: string;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { plausibleAnalyticsGetRealtimeVisitors };
|
|
9
15
|
//# sourceMappingURL=get-realtime-visitors.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-realtime-visitors.d.cts","names":[],"sources":["../../src/actions/get-realtime-visitors.ts"],"mappings":";;;cAIa,0CAAA,
|
|
1
|
+
{"version":3,"file":"get-realtime-visitors.d.cts","names":[],"sources":["../../src/actions/get-realtime-visitors.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;cAG1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-realtime-visitors.d.ts
|
|
4
|
-
declare const PlausibleAnalyticsGetRealtimeVisitorsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlausibleAnalyticsGetRealtimeVisitorsInput: z.ZodObject<{
|
|
5
|
+
site_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlausibleAnalyticsGetRealtimeVisitorsOutput: z.ZodObject<{
|
|
8
|
+
visitors: z.ZodNullable<z.ZodNumber>;
|
|
9
|
+
}, z.core.$loose>;
|
|
10
|
+
declare const plausibleAnalyticsGetRealtimeVisitors: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
11
|
+
site_id: string;
|
|
12
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
13
|
//#endregion
|
|
8
14
|
export { plausibleAnalyticsGetRealtimeVisitors };
|
|
9
15
|
//# sourceMappingURL=get-realtime-visitors.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-realtime-visitors.d.mts","names":[],"sources":["../../src/actions/get-realtime-visitors.ts"],"mappings":";;;cAIa,0CAAA,
|
|
1
|
+
{"version":3,"file":"get-realtime-visitors.d.mts","names":[],"sources":["../../src/actions/get-realtime-visitors.ts"],"mappings":";;;cAIa,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;cAG1C,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;cAI3C,qCAAA,gCAAqC,wBAAA"}
|
|
@@ -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") }).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
|
|
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"}
|
|
@@ -3,23 +3,23 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-site.ts
|
|
4
4
|
const PlausibleAnalyticsGetSiteInput = zod.z.object({ site_id: zod.z.string().describe("Domain/ID of the site to retrieve (e.g., 'example.com' or 'composio')") }).describe("Request model for retrieving details of a specific Plausible Analytics site.");
|
|
5
5
|
const PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema = zod.z.object({
|
|
6
|
-
id: zod.z.string().describe("Unique identifier for the tracker script"),
|
|
7
|
-
tagged_events: zod.z.boolean().describe("Whether tagged events are enabled"),
|
|
8
|
-
file_downloads: zod.z.boolean().describe("Whether file downloads are tracked"),
|
|
9
|
-
outbound_links: zod.z.boolean().describe("Whether outbound link clicks are tracked"),
|
|
10
|
-
pageview_props: zod.z.boolean().describe("Whether pageview properties are enabled"),
|
|
11
|
-
track_404_pages: zod.z.boolean().describe("Whether 404 pages are tracked"),
|
|
12
|
-
form_submissions: zod.z.boolean().describe("Whether form submissions are tracked"),
|
|
13
|
-
revenue_tracking: zod.z.boolean().describe("Whether revenue tracking is enabled"),
|
|
6
|
+
id: zod.z.string().describe("Unique identifier for the tracker script").nullable(),
|
|
7
|
+
tagged_events: zod.z.boolean().describe("Whether tagged events are enabled").nullable(),
|
|
8
|
+
file_downloads: zod.z.boolean().describe("Whether file downloads are tracked").nullable(),
|
|
9
|
+
outbound_links: zod.z.boolean().describe("Whether outbound link clicks are tracked").nullable(),
|
|
10
|
+
pageview_props: zod.z.boolean().describe("Whether pageview properties are enabled").nullable(),
|
|
11
|
+
track_404_pages: zod.z.boolean().describe("Whether 404 pages are tracked").nullable(),
|
|
12
|
+
form_submissions: zod.z.boolean().describe("Whether form submissions are tracked").nullable(),
|
|
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
|
-
hash_based_routing: zod.z.boolean().describe("Whether hash-based routing changes are tracked")
|
|
16
|
-
}).describe("Configuration details for the site's tracking script.");
|
|
15
|
+
hash_based_routing: zod.z.boolean().describe("Whether hash-based routing changes are tracked").nullable()
|
|
16
|
+
}).passthrough().describe("Configuration details for the site's tracking script.");
|
|
17
17
|
const PlausibleAnalyticsGetSiteOutput = zod.z.object({
|
|
18
|
-
domain: zod.z.string().describe("The site's domain name"),
|
|
19
|
-
timezone: zod.z.string().describe("IANA timezone identifier for the site (e.g., 'America/New_York')"),
|
|
18
|
+
domain: zod.z.string().describe("The site's domain name").nullable(),
|
|
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
|
|
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"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-site.d.ts
|
|
4
|
-
declare const PlausibleAnalyticsGetSiteInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlausibleAnalyticsGetSiteInput: z.ZodObject<{
|
|
5
|
+
site_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlausibleAnalyticsGetSiteOutput: z.ZodObject<{
|
|
8
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
9
|
+
timezone: z.ZodNullable<z.ZodString>;
|
|
10
|
+
custom_properties: z.ZodArray<z.ZodString>;
|
|
11
|
+
tracker_script_configuration: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
tagged_events: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
+
file_downloads: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
outbound_links: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
+
pageview_props: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
track_404_pages: z.ZodNullable<z.ZodBoolean>;
|
|
18
|
+
form_submissions: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
revenue_tracking: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
installation_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
hash_based_routing: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
|
+
declare const plausibleAnalyticsGetSite: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
site_id: string;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { plausibleAnalyticsGetSite };
|
|
9
29
|
//# sourceMappingURL=get-site.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-site.d.cts","names":[],"sources":["../../src/actions/get-site.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-site.d.cts","names":[],"sources":["../../src/actions/get-site.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-site.d.ts
|
|
4
|
-
declare const PlausibleAnalyticsGetSiteInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlausibleAnalyticsGetSiteInput: z.ZodObject<{
|
|
5
|
+
site_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlausibleAnalyticsGetSiteOutput: z.ZodObject<{
|
|
8
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
9
|
+
timezone: z.ZodNullable<z.ZodString>;
|
|
10
|
+
custom_properties: z.ZodArray<z.ZodString>;
|
|
11
|
+
tracker_script_configuration: z.ZodNullable<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
tagged_events: z.ZodNullable<z.ZodBoolean>;
|
|
14
|
+
file_downloads: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
outbound_links: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
+
pageview_props: z.ZodNullable<z.ZodBoolean>;
|
|
17
|
+
track_404_pages: z.ZodNullable<z.ZodBoolean>;
|
|
18
|
+
form_submissions: z.ZodNullable<z.ZodBoolean>;
|
|
19
|
+
revenue_tracking: z.ZodNullable<z.ZodBoolean>;
|
|
20
|
+
installation_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
hash_based_routing: z.ZodNullable<z.ZodBoolean>;
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
|
+
}, z.core.$loose>;
|
|
24
|
+
declare const plausibleAnalyticsGetSite: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
site_id: string;
|
|
26
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
27
|
//#endregion
|
|
8
28
|
export { plausibleAnalyticsGetSite };
|
|
9
29
|
//# sourceMappingURL=get-site.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-site.d.mts","names":[],"sources":["../../src/actions/get-site.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"get-site.d.mts","names":[],"sources":["../../src/actions/get-site.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAO/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -3,28 +3,28 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-site.ts
|
|
4
4
|
const PlausibleAnalyticsGetSiteInput = z.object({ site_id: z.string().describe("Domain/ID of the site to retrieve (e.g., 'example.com' or 'composio')") }).describe("Request model for retrieving details of a specific Plausible Analytics site.");
|
|
5
5
|
const PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema = z.object({
|
|
6
|
-
id: z.string().describe("Unique identifier for the tracker script"),
|
|
7
|
-
tagged_events: z.boolean().describe("Whether tagged events are enabled"),
|
|
8
|
-
file_downloads: z.boolean().describe("Whether file downloads are tracked"),
|
|
9
|
-
outbound_links: z.boolean().describe("Whether outbound link clicks are tracked"),
|
|
10
|
-
pageview_props: z.boolean().describe("Whether pageview properties are enabled"),
|
|
11
|
-
track_404_pages: z.boolean().describe("Whether 404 pages are tracked"),
|
|
12
|
-
form_submissions: z.boolean().describe("Whether form submissions are tracked"),
|
|
13
|
-
revenue_tracking: z.boolean().describe("Whether revenue tracking is enabled"),
|
|
6
|
+
id: z.string().describe("Unique identifier for the tracker script").nullable(),
|
|
7
|
+
tagged_events: z.boolean().describe("Whether tagged events are enabled").nullable(),
|
|
8
|
+
file_downloads: z.boolean().describe("Whether file downloads are tracked").nullable(),
|
|
9
|
+
outbound_links: z.boolean().describe("Whether outbound link clicks are tracked").nullable(),
|
|
10
|
+
pageview_props: z.boolean().describe("Whether pageview properties are enabled").nullable(),
|
|
11
|
+
track_404_pages: z.boolean().describe("Whether 404 pages are tracked").nullable(),
|
|
12
|
+
form_submissions: z.boolean().describe("Whether form submissions are tracked").nullable(),
|
|
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
|
-
hash_based_routing: z.boolean().describe("Whether hash-based routing changes are tracked")
|
|
16
|
-
}).describe("Configuration details for the site's tracking script.");
|
|
15
|
+
hash_based_routing: z.boolean().describe("Whether hash-based routing changes are tracked").nullable()
|
|
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",
|
|
20
20
|
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.",
|
|
21
21
|
input: PlausibleAnalyticsGetSiteInput,
|
|
22
22
|
output: z.object({
|
|
23
|
-
domain: z.string().describe("The site's domain name"),
|
|
24
|
-
timezone: z.string().describe("IANA timezone identifier for the site (e.g., 'America/New_York')"),
|
|
23
|
+
domain: z.string().describe("The site's domain name").nullable(),
|
|
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
|
|
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 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,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAQjF,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ6C,EAAE,OAAO;EACtD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EAC/D,UAAU,EAAE,OAAO,CAAC,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"}
|
|
@@ -10,7 +10,7 @@ const PlausibleAnalyticsGetTimeseriesStatsInput = zod.z.object({
|
|
|
10
10
|
with_imported: zod.z.boolean().describe("Whether to include imported statistics from other analytics platforms. Defaults to false if not specified.").optional()
|
|
11
11
|
}).describe("Request model for fetching timeseries statistics from Plausible Analytics.");
|
|
12
12
|
const PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema = zod.z.object({
|
|
13
|
-
date: zod.z.string().describe("The date for this data point in ISO format (e.g., '2020-08-01')"),
|
|
13
|
+
date: zod.z.string().describe("The date for this data point in ISO format (e.g., '2020-08-01')").nullable(),
|
|
14
14
|
events: zod.z.number().int().describe("Number of custom events tracked").nullable().optional(),
|
|
15
15
|
visits: zod.z.number().int().describe("Number of visits (sessions) for this time period").nullable().optional(),
|
|
16
16
|
visitors: zod.z.number().int().describe("Number of unique visitors for this time period").nullable().optional(),
|
|
@@ -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
|
|
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,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,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"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-timeseries-stats.d.ts
|
|
4
|
-
declare const PlausibleAnalyticsGetTimeseriesStatsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlausibleAnalyticsGetTimeseriesStatsInput: z.ZodObject<{
|
|
5
|
+
period: z.ZodOptional<z.ZodString>;
|
|
6
|
+
filters: z.ZodOptional<z.ZodString>;
|
|
7
|
+
metrics: z.ZodOptional<z.ZodString>;
|
|
8
|
+
site_id: z.ZodString;
|
|
9
|
+
interval: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
day: "day";
|
|
11
|
+
month: "month";
|
|
12
|
+
}>>;
|
|
13
|
+
with_imported: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const PlausibleAnalyticsGetTimeseriesStatsOutput: z.ZodObject<{
|
|
16
|
+
results: z.ZodArray<z.ZodObject<{
|
|
17
|
+
date: z.ZodNullable<z.ZodString>;
|
|
18
|
+
events: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
visits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
visitors: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
pageviews: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
bounce_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
visit_duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
views_per_visit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const plausibleAnalyticsGetTimeseriesStats: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
site_id: string;
|
|
30
|
+
period?: string | undefined;
|
|
31
|
+
filters?: string | undefined;
|
|
32
|
+
metrics?: string | undefined;
|
|
33
|
+
interval?: "day" | "month" | undefined;
|
|
34
|
+
with_imported?: boolean | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { plausibleAnalyticsGetTimeseriesStats };
|
|
9
38
|
//# sourceMappingURL=get-timeseries-stats.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-timeseries-stats.d.cts","names":[],"sources":["../../src/actions/get-timeseries-stats.ts"],"mappings":";;;cAIa,yCAAA,
|
|
1
|
+
{"version":3,"file":"get-timeseries-stats.d.cts","names":[],"sources":["../../src/actions/get-timeseries-stats.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;cAmBzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI1C,oCAAA,gCAAoC,wBAAA"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-timeseries-stats.d.ts
|
|
4
|
-
declare const PlausibleAnalyticsGetTimeseriesStatsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlausibleAnalyticsGetTimeseriesStatsInput: z.ZodObject<{
|
|
5
|
+
period: z.ZodOptional<z.ZodString>;
|
|
6
|
+
filters: z.ZodOptional<z.ZodString>;
|
|
7
|
+
metrics: z.ZodOptional<z.ZodString>;
|
|
8
|
+
site_id: z.ZodString;
|
|
9
|
+
interval: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
day: "day";
|
|
11
|
+
month: "month";
|
|
12
|
+
}>>;
|
|
13
|
+
with_imported: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const PlausibleAnalyticsGetTimeseriesStatsOutput: z.ZodObject<{
|
|
16
|
+
results: z.ZodArray<z.ZodObject<{
|
|
17
|
+
date: z.ZodNullable<z.ZodString>;
|
|
18
|
+
events: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
19
|
+
visits: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
visitors: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
pageviews: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
bounce_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
visit_duration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
conversion_rate: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
|
+
views_per_visit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
|
+
}, z.core.$loose>;
|
|
28
|
+
declare const plausibleAnalyticsGetTimeseriesStats: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
site_id: string;
|
|
30
|
+
period?: string | undefined;
|
|
31
|
+
filters?: string | undefined;
|
|
32
|
+
metrics?: string | undefined;
|
|
33
|
+
interval?: "day" | "month" | undefined;
|
|
34
|
+
with_imported?: boolean | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { plausibleAnalyticsGetTimeseriesStats };
|
|
9
38
|
//# sourceMappingURL=get-timeseries-stats.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-timeseries-stats.d.mts","names":[],"sources":["../../src/actions/get-timeseries-stats.ts"],"mappings":";;;cAIa,yCAAA,
|
|
1
|
+
{"version":3,"file":"get-timeseries-stats.d.mts","names":[],"sources":["../../src/actions/get-timeseries-stats.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;cAmBzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI1C,oCAAA,gCAAoC,wBAAA"}
|
|
@@ -10,7 +10,7 @@ const PlausibleAnalyticsGetTimeseriesStatsInput = z.object({
|
|
|
10
10
|
with_imported: z.boolean().describe("Whether to include imported statistics from other analytics platforms. Defaults to false if not specified.").optional()
|
|
11
11
|
}).describe("Request model for fetching timeseries statistics from Plausible Analytics.");
|
|
12
12
|
const PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema = z.object({
|
|
13
|
-
date: z.string().describe("The date for this data point in ISO format (e.g., '2020-08-01')"),
|
|
13
|
+
date: z.string().describe("The date for this data point in ISO format (e.g., '2020-08-01')").nullable(),
|
|
14
14
|
events: z.number().int().describe("Number of custom events tracked").nullable().optional(),
|
|
15
15
|
visits: z.number().int().describe("Number of visits (sessions) for this time period").nullable().optional(),
|
|
16
16
|
visitors: z.number().int().describe("Number of unique visitors for this time period").nullable().optional(),
|
|
@@ -19,13 +19,13 @@ const PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema = z.object(
|
|
|
19
19
|
visit_duration: z.number().describe("Average visit duration in seconds").nullable().optional(),
|
|
20
20
|
conversion_rate: z.number().describe("Conversion rate as a percentage (0-100)").nullable().optional(),
|
|
21
21
|
views_per_visit: z.number().describe("Average number of pageviews per visit").nullable().optional()
|
|
22
|
-
}).describe("Represents a single data point in the timeseries response.");
|
|
22
|
+
}).passthrough().describe("Represents a single data point in the timeseries response.");
|
|
23
23
|
const plausibleAnalyticsGetTimeseriesStats = action("PLAUSIBLE_ANALYTICS_GET_TIMESERIES_STATS", {
|
|
24
24
|
slug: "plausible_analytics-get-timeseries-stats",
|
|
25
25
|
name: "Get Timeseries Stats",
|
|
26
26
|
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.",
|
|
27
27
|
input: PlausibleAnalyticsGetTimeseriesStatsInput,
|
|
28
|
-
output: z.object({ results: 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.")
|
|
28
|
+
output: z.object({ results: 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.")
|
|
29
29
|
});
|
|
30
30
|
//#endregion
|
|
31
31
|
export { plausibleAnalyticsGetTimeseriesStats };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-timeseries-stats.mjs","names":[],"sources":["../../src/actions/get-timeseries-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetTimeseriesStatsInput
|
|
1
|
+
{"version":3,"file":"get-timeseries-stats.mjs","names":[],"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,MAAa,4CAA4C,EAAE,OAAO;CAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oLAAoL,CAAC,CAAC,SAAS;CAC3N,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CACzM,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2OAA2O,CAAC,CAAC,SAAS;CACnR,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrF,UAAU,EAAE,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC/F,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,4EAA4E;AACxF,MAAM,iEAAiE,EAAE,OAAO;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACtG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AAKtF,MAAa,uCAAuC,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,SAAS,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,4EAA4E,EACxK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAOhB;AACV,CAAC"}
|
|
@@ -2,8 +2,8 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/list-custom-props.ts
|
|
4
4
|
const PlausibleAnalyticsListCustomPropsInput = zod.z.object({ site_id: zod.z.string().describe("Domain of the site to retrieve custom properties for.") }).describe("Request model for listing all custom properties configured for a site.");
|
|
5
|
-
const PlausibleAnalyticsListCustomProps_CustomPropertySchema = zod.z.object({ property: zod.z.string().describe("Name of the custom property.") }).describe("Represents a single custom property configured for a site.");
|
|
6
|
-
const PlausibleAnalyticsListCustomPropsOutput = zod.z.object({ custom_properties: zod.z.array(PlausibleAnalyticsListCustomProps_CustomPropertySchema).describe("List of custom properties configured for the site.") }).describe("Response containing the list of custom properties configured for a site.");
|
|
5
|
+
const PlausibleAnalyticsListCustomProps_CustomPropertySchema = zod.z.object({ property: zod.z.string().describe("Name of the custom property.").nullable() }).passthrough().describe("Represents a single custom property configured for a site.");
|
|
6
|
+
const PlausibleAnalyticsListCustomPropsOutput = zod.z.object({ custom_properties: zod.z.array(PlausibleAnalyticsListCustomProps_CustomPropertySchema).describe("List of custom properties configured for the site.") }).passthrough().describe("Response containing the list of custom properties configured for a site.");
|
|
7
7
|
const plausibleAnalyticsListCustomProps = require_action.action("PLAUSIBLE_ANALYTICS_LIST_CUSTOM_PROPS", {
|
|
8
8
|
slug: "plausible_analytics-list-custom-props",
|
|
9
9
|
name: "List Custom Properties",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-custom-props.cjs","names":["z","action"],"sources":["../../src/actions/list-custom-props.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsListCustomPropsInput
|
|
1
|
+
{"version":3,"file":"list-custom-props.cjs","names":["z","action"],"sources":["../../src/actions/list-custom-props.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsListCustomPropsInput = z.object({\n site_id: z.string().describe(\"Domain of the site to retrieve custom properties for.\"),\n}).describe(\"Request model for listing all custom properties configured for a site.\");\nconst PlausibleAnalyticsListCustomProps_CustomPropertySchema = z.object({\n property: z.string().describe(\"Name of the custom property.\").nullable(),\n}).passthrough().describe(\"Represents a single custom property configured for a site.\");\nexport const PlausibleAnalyticsListCustomPropsOutput = z.object({\n custom_properties: z.array(PlausibleAnalyticsListCustomProps_CustomPropertySchema).describe(\"List of custom properties configured for the site.\"),\n}).passthrough().describe(\"Response containing the list of custom properties configured for a site.\");\n\nexport const plausibleAnalyticsListCustomProps = action(\"PLAUSIBLE_ANALYTICS_LIST_CUSTOM_PROPS\", {\n slug: \"plausible_analytics-list-custom-props\",\n name: \"List Custom Properties\",\n description: \"Tool to list all custom properties configured for a site. Use when you need to retrieve custom property configurations for a Plausible Analytics site. Enterprise feature only.\",\n input: PlausibleAnalyticsListCustomPropsInput,\n output: PlausibleAnalyticsListCustomPropsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yCAAyCA,IAAAA,EAAE,OAAO,EAC7D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACtF,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,yDAAyDA,IAAAA,EAAE,OAAO,EACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4DAA4D;AACtF,MAAa,0CAA0CA,IAAAA,EAAE,OAAO,EAC9D,mBAAmBA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oDAAoD,EAClJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AAEpG,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-custom-props.d.ts
|
|
4
|
-
declare const PlausibleAnalyticsListCustomPropsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlausibleAnalyticsListCustomPropsInput: z.ZodObject<{
|
|
5
|
+
site_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlausibleAnalyticsListCustomPropsOutput: z.ZodObject<{
|
|
8
|
+
custom_properties: z.ZodArray<z.ZodObject<{
|
|
9
|
+
property: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const plausibleAnalyticsListCustomProps: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
site_id: string;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { plausibleAnalyticsListCustomProps };
|
|
9
17
|
//# sourceMappingURL=list-custom-props.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-custom-props.d.cts","names":[],"sources":["../../src/actions/list-custom-props.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"list-custom-props.d.cts","names":[],"sources":["../../src/actions/list-custom-props.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAMtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-custom-props.d.ts
|
|
4
|
-
declare const PlausibleAnalyticsListCustomPropsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlausibleAnalyticsListCustomPropsInput: z.ZodObject<{
|
|
5
|
+
site_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlausibleAnalyticsListCustomPropsOutput: z.ZodObject<{
|
|
8
|
+
custom_properties: z.ZodArray<z.ZodObject<{
|
|
9
|
+
property: z.ZodNullable<z.ZodString>;
|
|
10
|
+
}, z.core.$loose>>;
|
|
11
|
+
}, z.core.$loose>;
|
|
12
|
+
declare const plausibleAnalyticsListCustomProps: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
site_id: string;
|
|
14
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
15
|
//#endregion
|
|
8
16
|
export { plausibleAnalyticsListCustomProps };
|
|
9
17
|
//# sourceMappingURL=list-custom-props.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-custom-props.d.mts","names":[],"sources":["../../src/actions/list-custom-props.ts"],"mappings":";;;cAIa,sCAAA,
|
|
1
|
+
{"version":3,"file":"list-custom-props.d.mts","names":[],"sources":["../../src/actions/list-custom-props.ts"],"mappings":";;;cAIa,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;cAMtC,uCAAA,EAAuC,CAAA,CAAA,SAAA;;;;;cAIvC,iCAAA,gCAAiC,wBAAA"}
|