@keystrokehq/plausible_analytics 0.1.4 → 0.1.6
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 -0
- package/dist/actions/check-health.cjs.map +1 -1
- package/dist/actions/check-health.d.cts +3 -1
- package/dist/actions/check-health.d.cts.map +1 -1
- package/dist/actions/check-health.d.mts +3 -1
- package/dist/actions/check-health.d.mts.map +1 -1
- package/dist/actions/check-health.mjs +1 -0
- package/dist/actions/check-health.mjs.map +1 -1
- package/dist/actions/get-breakdown-stats.cjs +1 -0
- package/dist/actions/get-breakdown-stats.cjs.map +1 -1
- package/dist/actions/get-breakdown-stats.d.cts +3 -10
- package/dist/actions/get-breakdown-stats.d.cts.map +1 -1
- package/dist/actions/get-breakdown-stats.d.mts +3 -10
- package/dist/actions/get-breakdown-stats.d.mts.map +1 -1
- package/dist/actions/get-breakdown-stats.mjs +1 -0
- package/dist/actions/get-breakdown-stats.mjs.map +1 -1
- package/dist/actions/get-plugin-capabilities.cjs +1 -0
- package/dist/actions/get-plugin-capabilities.cjs.map +1 -1
- package/dist/actions/get-plugin-capabilities.d.cts +3 -1
- package/dist/actions/get-plugin-capabilities.d.cts.map +1 -1
- package/dist/actions/get-plugin-capabilities.d.mts +3 -1
- package/dist/actions/get-plugin-capabilities.d.mts.map +1 -1
- package/dist/actions/get-plugin-capabilities.mjs +1 -0
- package/dist/actions/get-plugin-capabilities.mjs.map +1 -1
- package/dist/actions/get-realtime-visitors.cjs +1 -0
- package/dist/actions/get-realtime-visitors.cjs.map +1 -1
- package/dist/actions/get-realtime-visitors.d.cts +3 -3
- package/dist/actions/get-realtime-visitors.d.cts.map +1 -1
- package/dist/actions/get-realtime-visitors.d.mts +3 -3
- package/dist/actions/get-realtime-visitors.d.mts.map +1 -1
- package/dist/actions/get-realtime-visitors.mjs +1 -0
- package/dist/actions/get-realtime-visitors.mjs.map +1 -1
- package/dist/actions/get-site.cjs +1 -0
- package/dist/actions/get-site.cjs.map +1 -1
- package/dist/actions/get-site.d.cts +3 -3
- package/dist/actions/get-site.d.cts.map +1 -1
- package/dist/actions/get-site.d.mts +3 -3
- package/dist/actions/get-site.d.mts.map +1 -1
- package/dist/actions/get-site.mjs +1 -0
- package/dist/actions/get-site.mjs.map +1 -1
- package/dist/actions/get-timeseries-stats.cjs +1 -0
- package/dist/actions/get-timeseries-stats.cjs.map +1 -1
- package/dist/actions/get-timeseries-stats.d.cts +3 -8
- package/dist/actions/get-timeseries-stats.d.cts.map +1 -1
- package/dist/actions/get-timeseries-stats.d.mts +3 -8
- package/dist/actions/get-timeseries-stats.d.mts.map +1 -1
- package/dist/actions/get-timeseries-stats.mjs +1 -0
- package/dist/actions/get-timeseries-stats.mjs.map +1 -1
- package/dist/actions/list-custom-props.cjs +1 -0
- package/dist/actions/list-custom-props.cjs.map +1 -1
- package/dist/actions/list-custom-props.d.cts +3 -3
- package/dist/actions/list-custom-props.d.cts.map +1 -1
- package/dist/actions/list-custom-props.d.mts +3 -3
- package/dist/actions/list-custom-props.d.mts.map +1 -1
- package/dist/actions/list-custom-props.mjs +1 -0
- package/dist/actions/list-custom-props.mjs.map +1 -1
- package/dist/actions/list-goals.cjs +1 -0
- package/dist/actions/list-goals.cjs.map +1 -1
- package/dist/actions/list-goals.d.cts +3 -6
- package/dist/actions/list-goals.d.cts.map +1 -1
- package/dist/actions/list-goals.d.mts +3 -6
- package/dist/actions/list-goals.d.mts.map +1 -1
- package/dist/actions/list-goals.mjs +1 -0
- package/dist/actions/list-goals.mjs.map +1 -1
- package/dist/actions/list-guests.cjs +1 -0
- package/dist/actions/list-guests.cjs.map +1 -1
- package/dist/actions/list-guests.d.cts +3 -3
- package/dist/actions/list-guests.d.cts.map +1 -1
- package/dist/actions/list-guests.d.mts +3 -3
- package/dist/actions/list-guests.d.mts.map +1 -1
- package/dist/actions/list-guests.mjs +1 -0
- package/dist/actions/list-guests.mjs.map +1 -1
- package/dist/actions/list-sites.cjs +1 -0
- package/dist/actions/list-sites.cjs.map +1 -1
- package/dist/actions/list-sites.d.cts +3 -6
- package/dist/actions/list-sites.d.cts.map +1 -1
- package/dist/actions/list-sites.d.mts +3 -6
- package/dist/actions/list-sites.d.mts.map +1 -1
- package/dist/actions/list-sites.mjs +1 -0
- package/dist/actions/list-sites.mjs.map +1 -1
- package/dist/actions/list-teams.cjs +1 -0
- package/dist/actions/list-teams.cjs.map +1 -1
- package/dist/actions/list-teams.d.cts +3 -5
- package/dist/actions/list-teams.d.cts.map +1 -1
- package/dist/actions/list-teams.d.mts +3 -5
- package/dist/actions/list-teams.d.mts.map +1 -1
- package/dist/actions/list-teams.mjs +1 -0
- package/dist/actions/list-teams.mjs.map +1 -1
- package/dist/actions/query-stats.cjs +1 -0
- package/dist/actions/query-stats.cjs.map +1 -1
- package/dist/actions/query-stats.d.cts +3 -7
- package/dist/actions/query-stats.d.cts.map +1 -1
- package/dist/actions/query-stats.d.mts +3 -7
- package/dist/actions/query-stats.d.mts.map +1 -1
- package/dist/actions/query-stats.mjs +1 -0
- package/dist/actions/query-stats.mjs.map +1 -1
- package/dist/actions/record-event.cjs +1 -0
- package/dist/actions/record-event.cjs.map +1 -1
- package/dist/actions/record-event.d.cts +3 -14
- package/dist/actions/record-event.d.cts.map +1 -1
- package/dist/actions/record-event.d.mts +3 -14
- package/dist/actions/record-event.d.mts.map +1 -1
- package/dist/actions/record-event.mjs +1 -0
- package/dist/actions/record-event.mjs.map +1 -1
- package/dist/app.cjs +9 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +8 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +8 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +6 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plausibleAnalytics } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/list-teams.d.ts
|
|
@@ -18,11 +20,7 @@ declare const PlausibleAnalyticsListTeamsOutput: z.ZodObject<{
|
|
|
18
20
|
api_available: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
19
21
|
}, z.core.$loose>>;
|
|
20
22
|
}, z.core.$loose>;
|
|
21
|
-
declare const plausibleAnalyticsListTeams:
|
|
22
|
-
after?: string | undefined;
|
|
23
|
-
limit?: number | undefined;
|
|
24
|
-
before?: string | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
declare const plausibleAnalyticsListTeams: AppAction<typeof PlausibleAnalyticsListTeamsInput, typeof PlausibleAnalyticsListTeamsOutput, typeof plausibleAnalytics.credential>;
|
|
26
24
|
//#endregion
|
|
27
25
|
export { plausibleAnalyticsListTeams };
|
|
28
26
|
//# sourceMappingURL=list-teams.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-teams.d.mts","names":[],"sources":["../../src/actions/list-teams.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-teams.d.mts","names":[],"sources":["../../src/actions/list-teams.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAehC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAKjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,kBAAA,CAAmB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-teams.mjs","names":[],"sources":["../../src/actions/list-teams.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsListTeamsInput = z.object({\n after: z.string().describe(\"Pagination cursor for fetching the next page of results.\").optional(),\n limit: z.number().int().describe(\"Maximum number of teams to return per page. Defaults to 100 if not specified.\").optional(),\n before: z.string().describe(\"Pagination cursor for fetching the previous page of results.\").optional(),\n}).describe(\"Request model for listing all teams available for the API key owner.\");\nconst PlausibleAnalyticsListTeams_PaginationMetaSchema = z.object({\n after: z.string().describe(\"Cursor for fetching the next page of results. Use this value in the 'after' parameter of the next request.\").nullable().optional(),\n limit: z.number().int().describe(\"The pagination limit applied to this response.\").nullable().optional(),\n before: z.string().describe(\"Cursor for fetching the previous page of results. Use this value in the 'before' parameter of the next request.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for navigating through results.\");\nconst PlausibleAnalyticsListTeams_TeamSchema = z.object({\n id: z.string().describe(\"Unique identifier for the team.\").nullable().optional(),\n name: z.string().describe(\"Name of the team.\").nullable().optional(),\n api_available: z.boolean().describe(\"Indicates whether the API is available for this team.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single team available to the API key owner.\");\nexport const PlausibleAnalyticsListTeamsOutput = z.object({\n meta: PlausibleAnalyticsListTeams_PaginationMetaSchema.nullable().optional(),\n teams: z.array(PlausibleAnalyticsListTeams_TeamSchema).describe(\"List of teams available for the API key owner.\"),\n}).passthrough().describe(\"Response containing the list of teams available for the API key owner.\");\n\nexport const plausibleAnalyticsListTeams = action(\"PLAUSIBLE_ANALYTICS_LIST_TEAMS\", {\n slug: \"plausible_analytics-list-teams\",\n name: \"List Teams\",\n description: \"Tool to list all teams available for the API key owner. Use when you need to retrieve teams for site provisioning to a specific team.\",\n input: PlausibleAnalyticsListTeamsInput,\n output: PlausibleAnalyticsListTeamsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"list-teams.mjs","names":[],"sources":["../../src/actions/list-teams.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plausibleAnalytics } from \"../app\";\n\nexport const PlausibleAnalyticsListTeamsInput = z.object({\n after: z.string().describe(\"Pagination cursor for fetching the next page of results.\").optional(),\n limit: z.number().int().describe(\"Maximum number of teams to return per page. Defaults to 100 if not specified.\").optional(),\n before: z.string().describe(\"Pagination cursor for fetching the previous page of results.\").optional(),\n}).describe(\"Request model for listing all teams available for the API key owner.\");\nconst PlausibleAnalyticsListTeams_PaginationMetaSchema = z.object({\n after: z.string().describe(\"Cursor for fetching the next page of results. Use this value in the 'after' parameter of the next request.\").nullable().optional(),\n limit: z.number().int().describe(\"The pagination limit applied to this response.\").nullable().optional(),\n before: z.string().describe(\"Cursor for fetching the previous page of results. Use this value in the 'before' parameter of the next request.\").nullable().optional(),\n}).passthrough().describe(\"Pagination metadata for navigating through results.\");\nconst PlausibleAnalyticsListTeams_TeamSchema = z.object({\n id: z.string().describe(\"Unique identifier for the team.\").nullable().optional(),\n name: z.string().describe(\"Name of the team.\").nullable().optional(),\n api_available: z.boolean().describe(\"Indicates whether the API is available for this team.\").nullable().optional(),\n}).passthrough().describe(\"Represents a single team available to the API key owner.\");\nexport const PlausibleAnalyticsListTeamsOutput = z.object({\n meta: PlausibleAnalyticsListTeams_PaginationMetaSchema.nullable().optional(),\n teams: z.array(PlausibleAnalyticsListTeams_TeamSchema).describe(\"List of teams available for the API key owner.\"),\n}).passthrough().describe(\"Response containing the list of teams available for the API key owner.\");\n\nexport const plausibleAnalyticsListTeams: AppAction<\n typeof PlausibleAnalyticsListTeamsInput,\n typeof PlausibleAnalyticsListTeamsOutput,\n typeof plausibleAnalytics.credential\n> = action(\"PLAUSIBLE_ANALYTICS_LIST_TEAMS\", {\n slug: \"plausible_analytics-list-teams\",\n name: \"List Teams\",\n description: \"Tool to list all teams available for the API key owner. Use when you need to retrieve teams for site provisioning to a specific team.\",\n input: PlausibleAnalyticsListTeamsInput,\n output: PlausibleAnalyticsListTeamsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAChG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAC3H,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,mDAAmD,EAAE,OAAO;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAC/E,MAAM,yCAAyC,EAAE,OAAO;CACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAMpF,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd+C,EAAE,OAAO;EACxD,MAAM,iDAAiD,SAAS,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,gDAAgD;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wEAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-stats.cjs","names":["z","action"],"sources":["../../src/actions/query-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsQueryStatsInput = z.object({\n filters: z.array(z.array(z.union([z.string(), z.array(z.string())]))).describe(\"Array of filter conditions to apply to the query. Each filter is an array with format: [dimension, operator, value]. Operators: 'is', 'is_not', 'contains', 'does_not_contain'. Example: [['event:page', 'is', '/blog'], ['visit:country', 'is', 'US']].\").optional(),\n metrics: z.array(z.string()).describe(\"List of metrics to calculate. Available metrics: 'visitors' (unique visitors), 'visits' (total visits), 'pageviews' (total page views), 'views_per_visit' (average pages per visit), 'bounce_rate' (percentage of single-page visits), 'visit_duration' (average visit duration in seconds), 'events' (total events), 'scroll_depth' (average scroll depth percentage), 'percentage' (percentage of total), 'conversion_rate', 'group_conversion_rate', 'average_revenue', 'total_revenue', 'time_on_page' (average time on page in seconds).\"),\n site_id: z.string().describe(\"Domain of your site on Plausible to be queried (e.g., 'example.com', 'composio').\"),\n date_range: z.union([z.string(), z.array(z.string())]),\n dimensions: z.array(z.string()).describe(\"List of dimensions to group results by. Common dimensions: 'event:goal' (goal names), 'event:page' (page paths), 'event:hostname' (hostnames), 'visit:source' (traffic sources), 'visit:referrer' (referrer URLs), 'visit:utm_medium', 'visit:utm_source', 'visit:utm_campaign', 'visit:device' (device types), 'visit:browser', 'visit:os' (operating systems), 'visit:country', 'visit:region', 'visit:city'.\").optional(),\n}).describe(\"Request model for querying analytics stats for a site using the Stats API v2.\");\nconst PlausibleAnalyticsQueryStats_QueryStatsResponseMetaSchema = z.object({\n warnings: z.array(z.string()).describe(\"List of warnings related to the query execution.\").nullable().optional(),\n}).passthrough().describe(\"Metadata about the query including warnings.\");\nconst PlausibleAnalyticsQueryStats_QueryStatsResponseResultSchema = z.object({\n metrics: z.array(z.union([z.number().int(), z.number()])).describe(\"Values for the metrics specified in the query (order matches the metrics array).\"),\n dimensions: z.array(z.union([z.string(), z.number().int(), z.number()])).describe(\"Values for the dimensions specified in the query (order matches the dimensions array).\").nullable().optional(),\n}).passthrough().describe(\"Individual result object with metrics and dimension values.\");\nexport const PlausibleAnalyticsQueryStatsOutput = z.object({\n meta: PlausibleAnalyticsQueryStats_QueryStatsResponseMetaSchema.nullable().optional(),\n results: z.array(PlausibleAnalyticsQueryStats_QueryStatsResponseResultSchema).describe(\"Array of result objects with metrics and dimension values.\"),\n}).passthrough().describe(\"Response containing query results and metadata.\");\n\nexport const plausibleAnalyticsQueryStats = action(\"PLAUSIBLE_ANALYTICS_QUERY_STATS\", {\n slug: \"plausible_analytics-query-stats\",\n name: \"Query Analytics Stats\",\n description: \"Tool to query analytics stats for a site using the Stats API v2. Use when you need to retrieve historical or real-time statistics such as visitors, pageviews, bounce rate, visit duration, and more. Supports filtering, grouping by dimensions, and custom date ranges.\",\n input: PlausibleAnalyticsQueryStatsInput,\n output: PlausibleAnalyticsQueryStatsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-stats.cjs","names":["z","action"],"sources":["../../src/actions/query-stats.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plausibleAnalytics } from \"../app\";\n\nexport const PlausibleAnalyticsQueryStatsInput = z.object({\n filters: z.array(z.array(z.union([z.string(), z.array(z.string())]))).describe(\"Array of filter conditions to apply to the query. Each filter is an array with format: [dimension, operator, value]. Operators: 'is', 'is_not', 'contains', 'does_not_contain'. Example: [['event:page', 'is', '/blog'], ['visit:country', 'is', 'US']].\").optional(),\n metrics: z.array(z.string()).describe(\"List of metrics to calculate. Available metrics: 'visitors' (unique visitors), 'visits' (total visits), 'pageviews' (total page views), 'views_per_visit' (average pages per visit), 'bounce_rate' (percentage of single-page visits), 'visit_duration' (average visit duration in seconds), 'events' (total events), 'scroll_depth' (average scroll depth percentage), 'percentage' (percentage of total), 'conversion_rate', 'group_conversion_rate', 'average_revenue', 'total_revenue', 'time_on_page' (average time on page in seconds).\"),\n site_id: z.string().describe(\"Domain of your site on Plausible to be queried (e.g., 'example.com', 'composio').\"),\n date_range: z.union([z.string(), z.array(z.string())]),\n dimensions: z.array(z.string()).describe(\"List of dimensions to group results by. Common dimensions: 'event:goal' (goal names), 'event:page' (page paths), 'event:hostname' (hostnames), 'visit:source' (traffic sources), 'visit:referrer' (referrer URLs), 'visit:utm_medium', 'visit:utm_source', 'visit:utm_campaign', 'visit:device' (device types), 'visit:browser', 'visit:os' (operating systems), 'visit:country', 'visit:region', 'visit:city'.\").optional(),\n}).describe(\"Request model for querying analytics stats for a site using the Stats API v2.\");\nconst PlausibleAnalyticsQueryStats_QueryStatsResponseMetaSchema = z.object({\n warnings: z.array(z.string()).describe(\"List of warnings related to the query execution.\").nullable().optional(),\n}).passthrough().describe(\"Metadata about the query including warnings.\");\nconst PlausibleAnalyticsQueryStats_QueryStatsResponseResultSchema = z.object({\n metrics: z.array(z.union([z.number().int(), z.number()])).describe(\"Values for the metrics specified in the query (order matches the metrics array).\"),\n dimensions: z.array(z.union([z.string(), z.number().int(), z.number()])).describe(\"Values for the dimensions specified in the query (order matches the dimensions array).\").nullable().optional(),\n}).passthrough().describe(\"Individual result object with metrics and dimension values.\");\nexport const PlausibleAnalyticsQueryStatsOutput = z.object({\n meta: PlausibleAnalyticsQueryStats_QueryStatsResponseMetaSchema.nullable().optional(),\n results: z.array(PlausibleAnalyticsQueryStats_QueryStatsResponseResultSchema).describe(\"Array of result objects with metrics and dimension values.\"),\n}).passthrough().describe(\"Response containing query results and metadata.\");\n\nexport const plausibleAnalyticsQueryStats: AppAction<\n typeof PlausibleAnalyticsQueryStatsInput,\n typeof PlausibleAnalyticsQueryStatsOutput,\n typeof plausibleAnalytics.credential\n> = action(\"PLAUSIBLE_ANALYTICS_QUERY_STATS\", {\n slug: \"plausible_analytics-query-stats\",\n name: \"Query Analytics Stats\",\n description: \"Tool to query analytics stats for a site using the Stats API v2. Use when you need to retrieve historical or real-time statistics such as visitors, pageviews, bounce rate, visit duration, and more. Supports filtering, grouping by dimensions, and custom date ranges.\",\n input: PlausibleAnalyticsQueryStatsInput,\n output: PlausibleAnalyticsQueryStatsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0PAA0P,CAAC,CAAC,SAAS;CACpV,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+gBAA+gB;CACrjB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CAChH,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC;CACrD,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iZAAiZ,CAAC,CAAC,SAAS;AACvc,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAM,4DAA4DA,IAAAA,EAAE,OAAO,EACzE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,8DAA8DA,IAAAA,EAAE,OAAO;CAC3E,SAASA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kFAAkF;CACrJ,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,OAAO;EAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI;EAAGA,IAAAA,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,MAAM,0DAA0D,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,4DAA4D;AACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,+BAITC,eAAAA,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plausibleAnalytics } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-stats.d.ts
|
|
@@ -17,13 +19,7 @@ declare const PlausibleAnalyticsQueryStatsOutput: z.ZodObject<{
|
|
|
17
19
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber]>>>>;
|
|
18
20
|
}, z.core.$loose>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const plausibleAnalyticsQueryStats:
|
|
21
|
-
metrics: string[];
|
|
22
|
-
site_id: string;
|
|
23
|
-
date_range: string | string[];
|
|
24
|
-
filters?: (string | string[])[][] | undefined;
|
|
25
|
-
dimensions?: string[] | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const plausibleAnalyticsQueryStats: AppAction<typeof PlausibleAnalyticsQueryStatsInput, typeof PlausibleAnalyticsQueryStatsOutput, typeof plausibleAnalytics.credential>;
|
|
27
23
|
//#endregion
|
|
28
24
|
export { plausibleAnalyticsQueryStats };
|
|
29
25
|
//# sourceMappingURL=query-stats.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-stats.d.cts","names":[],"sources":["../../src/actions/query-stats.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-stats.d.cts","names":[],"sources":["../../src/actions/query-stats.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;cAcjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;cAKlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,kBAAA,CAAmB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plausibleAnalytics } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/query-stats.d.ts
|
|
@@ -17,13 +19,7 @@ declare const PlausibleAnalyticsQueryStatsOutput: z.ZodObject<{
|
|
|
17
19
|
dimensions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber]>>>>;
|
|
18
20
|
}, z.core.$loose>>;
|
|
19
21
|
}, z.core.$loose>;
|
|
20
|
-
declare const plausibleAnalyticsQueryStats:
|
|
21
|
-
metrics: string[];
|
|
22
|
-
site_id: string;
|
|
23
|
-
date_range: string | string[];
|
|
24
|
-
filters?: (string | string[])[][] | undefined;
|
|
25
|
-
dimensions?: string[] | undefined;
|
|
26
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
22
|
+
declare const plausibleAnalyticsQueryStats: AppAction<typeof PlausibleAnalyticsQueryStatsInput, typeof PlausibleAnalyticsQueryStatsOutput, typeof plausibleAnalytics.credential>;
|
|
27
23
|
//#endregion
|
|
28
24
|
export { plausibleAnalyticsQueryStats };
|
|
29
25
|
//# sourceMappingURL=query-stats.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-stats.d.mts","names":[],"sources":["../../src/actions/query-stats.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-stats.d.mts","names":[],"sources":["../../src/actions/query-stats.ts"],"mappings":";;;;;cAMa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;cAcjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;cAKlC,4BAAA,EAA8B,SAAA,QAClC,iCAAA,SACA,kCAAA,SACA,kBAAA,CAAmB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-stats.mjs","names":[],"sources":["../../src/actions/query-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsQueryStatsInput = z.object({\n filters: z.array(z.array(z.union([z.string(), z.array(z.string())]))).describe(\"Array of filter conditions to apply to the query. Each filter is an array with format: [dimension, operator, value]. Operators: 'is', 'is_not', 'contains', 'does_not_contain'. Example: [['event:page', 'is', '/blog'], ['visit:country', 'is', 'US']].\").optional(),\n metrics: z.array(z.string()).describe(\"List of metrics to calculate. Available metrics: 'visitors' (unique visitors), 'visits' (total visits), 'pageviews' (total page views), 'views_per_visit' (average pages per visit), 'bounce_rate' (percentage of single-page visits), 'visit_duration' (average visit duration in seconds), 'events' (total events), 'scroll_depth' (average scroll depth percentage), 'percentage' (percentage of total), 'conversion_rate', 'group_conversion_rate', 'average_revenue', 'total_revenue', 'time_on_page' (average time on page in seconds).\"),\n site_id: z.string().describe(\"Domain of your site on Plausible to be queried (e.g., 'example.com', 'composio').\"),\n date_range: z.union([z.string(), z.array(z.string())]),\n dimensions: z.array(z.string()).describe(\"List of dimensions to group results by. Common dimensions: 'event:goal' (goal names), 'event:page' (page paths), 'event:hostname' (hostnames), 'visit:source' (traffic sources), 'visit:referrer' (referrer URLs), 'visit:utm_medium', 'visit:utm_source', 'visit:utm_campaign', 'visit:device' (device types), 'visit:browser', 'visit:os' (operating systems), 'visit:country', 'visit:region', 'visit:city'.\").optional(),\n}).describe(\"Request model for querying analytics stats for a site using the Stats API v2.\");\nconst PlausibleAnalyticsQueryStats_QueryStatsResponseMetaSchema = z.object({\n warnings: z.array(z.string()).describe(\"List of warnings related to the query execution.\").nullable().optional(),\n}).passthrough().describe(\"Metadata about the query including warnings.\");\nconst PlausibleAnalyticsQueryStats_QueryStatsResponseResultSchema = z.object({\n metrics: z.array(z.union([z.number().int(), z.number()])).describe(\"Values for the metrics specified in the query (order matches the metrics array).\"),\n dimensions: z.array(z.union([z.string(), z.number().int(), z.number()])).describe(\"Values for the dimensions specified in the query (order matches the dimensions array).\").nullable().optional(),\n}).passthrough().describe(\"Individual result object with metrics and dimension values.\");\nexport const PlausibleAnalyticsQueryStatsOutput = z.object({\n meta: PlausibleAnalyticsQueryStats_QueryStatsResponseMetaSchema.nullable().optional(),\n results: z.array(PlausibleAnalyticsQueryStats_QueryStatsResponseResultSchema).describe(\"Array of result objects with metrics and dimension values.\"),\n}).passthrough().describe(\"Response containing query results and metadata.\");\n\nexport const plausibleAnalyticsQueryStats = action(\"PLAUSIBLE_ANALYTICS_QUERY_STATS\", {\n slug: \"plausible_analytics-query-stats\",\n name: \"Query Analytics Stats\",\n description: \"Tool to query analytics stats for a site using the Stats API v2. Use when you need to retrieve historical or real-time statistics such as visitors, pageviews, bounce rate, visit duration, and more. Supports filtering, grouping by dimensions, and custom date ranges.\",\n input: PlausibleAnalyticsQueryStatsInput,\n output: PlausibleAnalyticsQueryStatsOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"query-stats.mjs","names":[],"sources":["../../src/actions/query-stats.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plausibleAnalytics } from \"../app\";\n\nexport const PlausibleAnalyticsQueryStatsInput = z.object({\n filters: z.array(z.array(z.union([z.string(), z.array(z.string())]))).describe(\"Array of filter conditions to apply to the query. Each filter is an array with format: [dimension, operator, value]. Operators: 'is', 'is_not', 'contains', 'does_not_contain'. Example: [['event:page', 'is', '/blog'], ['visit:country', 'is', 'US']].\").optional(),\n metrics: z.array(z.string()).describe(\"List of metrics to calculate. Available metrics: 'visitors' (unique visitors), 'visits' (total visits), 'pageviews' (total page views), 'views_per_visit' (average pages per visit), 'bounce_rate' (percentage of single-page visits), 'visit_duration' (average visit duration in seconds), 'events' (total events), 'scroll_depth' (average scroll depth percentage), 'percentage' (percentage of total), 'conversion_rate', 'group_conversion_rate', 'average_revenue', 'total_revenue', 'time_on_page' (average time on page in seconds).\"),\n site_id: z.string().describe(\"Domain of your site on Plausible to be queried (e.g., 'example.com', 'composio').\"),\n date_range: z.union([z.string(), z.array(z.string())]),\n dimensions: z.array(z.string()).describe(\"List of dimensions to group results by. Common dimensions: 'event:goal' (goal names), 'event:page' (page paths), 'event:hostname' (hostnames), 'visit:source' (traffic sources), 'visit:referrer' (referrer URLs), 'visit:utm_medium', 'visit:utm_source', 'visit:utm_campaign', 'visit:device' (device types), 'visit:browser', 'visit:os' (operating systems), 'visit:country', 'visit:region', 'visit:city'.\").optional(),\n}).describe(\"Request model for querying analytics stats for a site using the Stats API v2.\");\nconst PlausibleAnalyticsQueryStats_QueryStatsResponseMetaSchema = z.object({\n warnings: z.array(z.string()).describe(\"List of warnings related to the query execution.\").nullable().optional(),\n}).passthrough().describe(\"Metadata about the query including warnings.\");\nconst PlausibleAnalyticsQueryStats_QueryStatsResponseResultSchema = z.object({\n metrics: z.array(z.union([z.number().int(), z.number()])).describe(\"Values for the metrics specified in the query (order matches the metrics array).\"),\n dimensions: z.array(z.union([z.string(), z.number().int(), z.number()])).describe(\"Values for the dimensions specified in the query (order matches the dimensions array).\").nullable().optional(),\n}).passthrough().describe(\"Individual result object with metrics and dimension values.\");\nexport const PlausibleAnalyticsQueryStatsOutput = z.object({\n meta: PlausibleAnalyticsQueryStats_QueryStatsResponseMetaSchema.nullable().optional(),\n results: z.array(PlausibleAnalyticsQueryStats_QueryStatsResponseResultSchema).describe(\"Array of result objects with metrics and dimension values.\"),\n}).passthrough().describe(\"Response containing query results and metadata.\");\n\nexport const plausibleAnalyticsQueryStats: AppAction<\n typeof PlausibleAnalyticsQueryStatsInput,\n typeof PlausibleAnalyticsQueryStatsOutput,\n typeof plausibleAnalytics.credential\n> = action(\"PLAUSIBLE_ANALYTICS_QUERY_STATS\", {\n slug: \"plausible_analytics-query-stats\",\n name: \"Query Analytics Stats\",\n description: \"Tool to query analytics stats for a site using the Stats API v2. Use when you need to retrieve historical or real-time statistics such as visitors, pageviews, bounce rate, visit duration, and more. Supports filtering, grouping by dimensions, and custom date ranges.\",\n input: PlausibleAnalyticsQueryStatsInput,\n output: PlausibleAnalyticsQueryStatsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,oCAAoC,EAAE,OAAO;CACxD,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,0PAA0P,CAAC,CAAC,SAAS;CACpV,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+gBAA+gB;CACrjB,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;CAChH,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CACrD,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iZAAiZ,CAAC,CAAC,SAAS;AACvc,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAM,4DAA4D,EAAE,OAAO,EACzE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACjH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,8DAA8D,EAAE,OAAO;CAC3E,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,kFAAkF;CACrJ,YAAY,EAAE,MAAM,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,OAAO,CAAC,CAAC,IAAI;EAAG,EAAE,OAAO;CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAMvF,MAAa,+BAIT,OAAO,mCAAmC;CAC5C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdgD,EAAE,OAAO;EACzD,MAAM,0DAA0D,SAAS,CAAC,CAAC,SAAS;EACpF,SAAS,EAAE,MAAM,2DAA2D,CAAC,CAAC,SAAS,4DAA4D;CACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-event.cjs","names":["z","action"],"sources":["../../src/actions/record-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsRecordEventInput = z.object({\n url: z.string().describe(\"URL of the page where the event was triggered. UTM parameters will be automatically extracted (e.g., 'https://example.com/page?utm_source=google').\"),\n name: z.string().describe(\"Name of the event. Use 'pageview' for page views, other names become custom events (e.g., 'signup', 'purchase', 'button_click').\"),\n props: z.record(z.string(), z.unknown()).describe(\"Custom properties for the event as key-value pairs (max 30 properties). Values can be strings, numbers, or booleans.\").optional(),\n domain: z.string().describe(\"Domain name of the site in Plausible (e.g., 'example.com').\"),\n revenue: z.object({\n amount: z.string().describe(\"Revenue amount as a string (e.g., '10.50', '99.99').\"),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP).\"),\n}).describe(\"Revenue data for the event.\").optional(),\n referrer: z.string().describe(\"Referrer URL for this event (e.g., 'https://google.com/search').\").optional(),\n user_agent: z.string().describe(\"Raw User-Agent string for unique visitor identification and device detection. Should be the actual user agent from the client's browser or app.\"),\n interactive: z.boolean().describe(\"Whether the event counts towards bounce rate. Default is true. Set to false for non-interactive events like automatic tracking.\").optional(),\n x_forwarded_for: z.string().describe(\"IP address of the client for unique visitor counting and location data (e.g., '203.0.113.195'). If not provided, the server's IP will be used.\").optional(),\n}).describe(\"Request model for recording a pageview or custom event.\");\nexport const PlausibleAnalyticsRecordEventOutput = z.object({\n message: z.string().describe(\"Success or error message from the API.\").nullable(),\n success: z.boolean().describe(\"Whether the event was successfully recorded.\").nullable(),\n}).passthrough().describe(\"Response model for record event action.\");\n\nexport const plausibleAnalyticsRecordEvent = action(\"PLAUSIBLE_ANALYTICS_RECORD_EVENT\", {\n slug: \"plausible_analytics-record-event\",\n name: \"Record Event\",\n description: \"Tool to record a pageview or custom event via the Plausible Events API. Use when tracking Android/iOS mobile apps or server-side tracking. Requires proper User-Agent and optionally X-Forwarded-For headers for unique visitor counting.\",\n input: PlausibleAnalyticsRecordEventInput,\n output: PlausibleAnalyticsRecordEventOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"record-event.cjs","names":["z","action"],"sources":["../../src/actions/record-event.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plausibleAnalytics } from \"../app\";\n\nexport const PlausibleAnalyticsRecordEventInput = z.object({\n url: z.string().describe(\"URL of the page where the event was triggered. UTM parameters will be automatically extracted (e.g., 'https://example.com/page?utm_source=google').\"),\n name: z.string().describe(\"Name of the event. Use 'pageview' for page views, other names become custom events (e.g., 'signup', 'purchase', 'button_click').\"),\n props: z.record(z.string(), z.unknown()).describe(\"Custom properties for the event as key-value pairs (max 30 properties). Values can be strings, numbers, or booleans.\").optional(),\n domain: z.string().describe(\"Domain name of the site in Plausible (e.g., 'example.com').\"),\n revenue: z.object({\n amount: z.string().describe(\"Revenue amount as a string (e.g., '10.50', '99.99').\"),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP).\"),\n}).describe(\"Revenue data for the event.\").optional(),\n referrer: z.string().describe(\"Referrer URL for this event (e.g., 'https://google.com/search').\").optional(),\n user_agent: z.string().describe(\"Raw User-Agent string for unique visitor identification and device detection. Should be the actual user agent from the client's browser or app.\"),\n interactive: z.boolean().describe(\"Whether the event counts towards bounce rate. Default is true. Set to false for non-interactive events like automatic tracking.\").optional(),\n x_forwarded_for: z.string().describe(\"IP address of the client for unique visitor counting and location data (e.g., '203.0.113.195'). If not provided, the server's IP will be used.\").optional(),\n}).describe(\"Request model for recording a pageview or custom event.\");\nexport const PlausibleAnalyticsRecordEventOutput = z.object({\n message: z.string().describe(\"Success or error message from the API.\").nullable(),\n success: z.boolean().describe(\"Whether the event was successfully recorded.\").nullable(),\n}).passthrough().describe(\"Response model for record event action.\");\n\nexport const plausibleAnalyticsRecordEvent: AppAction<\n typeof PlausibleAnalyticsRecordEventInput,\n typeof PlausibleAnalyticsRecordEventOutput,\n typeof plausibleAnalytics.credential\n> = action(\"PLAUSIBLE_ANALYTICS_RECORD_EVENT\", {\n slug: \"plausible_analytics-record-event\",\n name: \"Record Event\",\n description: \"Tool to record a pageview or custom event via the Plausible Events API. Use when tracking Android/iOS mobile apps or server-side tracking. Requires proper User-Agent and optionally X-Forwarded-For headers for unique visitor counting.\",\n input: PlausibleAnalyticsRecordEventInput,\n output: PlausibleAnalyticsRecordEventOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CAC9K,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;CAC5J,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACnL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;CACzF,SAASA,IAAAA,EAAE,OAAO;EAClB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC/E,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;CACjL,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;CAC9K,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;AAClM,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,gCAITC,eAAAA,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plausibleAnalytics } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/record-event.d.ts
|
|
@@ -19,20 +21,7 @@ declare const PlausibleAnalyticsRecordEventOutput: z.ZodObject<{
|
|
|
19
21
|
message: z.ZodNullable<z.ZodString>;
|
|
20
22
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const plausibleAnalyticsRecordEvent:
|
|
23
|
-
url: string;
|
|
24
|
-
name: string;
|
|
25
|
-
domain: string;
|
|
26
|
-
user_agent: string;
|
|
27
|
-
props?: Record<string, unknown> | undefined;
|
|
28
|
-
revenue?: {
|
|
29
|
-
amount: string;
|
|
30
|
-
currency: string;
|
|
31
|
-
} | undefined;
|
|
32
|
-
referrer?: string | undefined;
|
|
33
|
-
interactive?: boolean | undefined;
|
|
34
|
-
x_forwarded_for?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const plausibleAnalyticsRecordEvent: AppAction<typeof PlausibleAnalyticsRecordEventInput, typeof PlausibleAnalyticsRecordEventOutput, typeof plausibleAnalytics.credential>;
|
|
36
25
|
//#endregion
|
|
37
26
|
export { plausibleAnalyticsRecordEvent };
|
|
38
27
|
//# sourceMappingURL=record-event.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-event.d.cts","names":[],"sources":["../../src/actions/record-event.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"record-event.d.cts","names":[],"sources":["../../src/actions/record-event.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAclC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,kBAAA,CAAmB,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { plausibleAnalytics } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/record-event.d.ts
|
|
@@ -19,20 +21,7 @@ declare const PlausibleAnalyticsRecordEventOutput: z.ZodObject<{
|
|
|
19
21
|
message: z.ZodNullable<z.ZodString>;
|
|
20
22
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
21
23
|
}, z.core.$loose>;
|
|
22
|
-
declare const plausibleAnalyticsRecordEvent:
|
|
23
|
-
url: string;
|
|
24
|
-
name: string;
|
|
25
|
-
domain: string;
|
|
26
|
-
user_agent: string;
|
|
27
|
-
props?: Record<string, unknown> | undefined;
|
|
28
|
-
revenue?: {
|
|
29
|
-
amount: string;
|
|
30
|
-
currency: string;
|
|
31
|
-
} | undefined;
|
|
32
|
-
referrer?: string | undefined;
|
|
33
|
-
interactive?: boolean | undefined;
|
|
34
|
-
x_forwarded_for?: string | undefined;
|
|
35
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
24
|
+
declare const plausibleAnalyticsRecordEvent: AppAction<typeof PlausibleAnalyticsRecordEventInput, typeof PlausibleAnalyticsRecordEventOutput, typeof plausibleAnalytics.credential>;
|
|
36
25
|
//#endregion
|
|
37
26
|
export { plausibleAnalyticsRecordEvent };
|
|
38
27
|
//# sourceMappingURL=record-event.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-event.d.mts","names":[],"sources":["../../src/actions/record-event.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"record-event.d.mts","names":[],"sources":["../../src/actions/record-event.ts"],"mappings":";;;;;cAMa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAclC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;cAKnC,6BAAA,EAA+B,SAAA,QACnC,kCAAA,SACA,mCAAA,SACA,kBAAA,CAAmB,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-event.mjs","names":[],"sources":["../../src/actions/record-event.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsRecordEventInput = z.object({\n url: z.string().describe(\"URL of the page where the event was triggered. UTM parameters will be automatically extracted (e.g., 'https://example.com/page?utm_source=google').\"),\n name: z.string().describe(\"Name of the event. Use 'pageview' for page views, other names become custom events (e.g., 'signup', 'purchase', 'button_click').\"),\n props: z.record(z.string(), z.unknown()).describe(\"Custom properties for the event as key-value pairs (max 30 properties). Values can be strings, numbers, or booleans.\").optional(),\n domain: z.string().describe(\"Domain name of the site in Plausible (e.g., 'example.com').\"),\n revenue: z.object({\n amount: z.string().describe(\"Revenue amount as a string (e.g., '10.50', '99.99').\"),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP).\"),\n}).describe(\"Revenue data for the event.\").optional(),\n referrer: z.string().describe(\"Referrer URL for this event (e.g., 'https://google.com/search').\").optional(),\n user_agent: z.string().describe(\"Raw User-Agent string for unique visitor identification and device detection. Should be the actual user agent from the client's browser or app.\"),\n interactive: z.boolean().describe(\"Whether the event counts towards bounce rate. Default is true. Set to false for non-interactive events like automatic tracking.\").optional(),\n x_forwarded_for: z.string().describe(\"IP address of the client for unique visitor counting and location data (e.g., '203.0.113.195'). If not provided, the server's IP will be used.\").optional(),\n}).describe(\"Request model for recording a pageview or custom event.\");\nexport const PlausibleAnalyticsRecordEventOutput = z.object({\n message: z.string().describe(\"Success or error message from the API.\").nullable(),\n success: z.boolean().describe(\"Whether the event was successfully recorded.\").nullable(),\n}).passthrough().describe(\"Response model for record event action.\");\n\nexport const plausibleAnalyticsRecordEvent = action(\"PLAUSIBLE_ANALYTICS_RECORD_EVENT\", {\n slug: \"plausible_analytics-record-event\",\n name: \"Record Event\",\n description: \"Tool to record a pageview or custom event via the Plausible Events API. Use when tracking Android/iOS mobile apps or server-side tracking. Requires proper User-Agent and optionally X-Forwarded-For headers for unique visitor counting.\",\n input: PlausibleAnalyticsRecordEventInput,\n output: PlausibleAnalyticsRecordEventOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"record-event.mjs","names":[],"sources":["../../src/actions/record-event.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { plausibleAnalytics } from \"../app\";\n\nexport const PlausibleAnalyticsRecordEventInput = z.object({\n url: z.string().describe(\"URL of the page where the event was triggered. UTM parameters will be automatically extracted (e.g., 'https://example.com/page?utm_source=google').\"),\n name: z.string().describe(\"Name of the event. Use 'pageview' for page views, other names become custom events (e.g., 'signup', 'purchase', 'button_click').\"),\n props: z.record(z.string(), z.unknown()).describe(\"Custom properties for the event as key-value pairs (max 30 properties). Values can be strings, numbers, or booleans.\").optional(),\n domain: z.string().describe(\"Domain name of the site in Plausible (e.g., 'example.com').\"),\n revenue: z.object({\n amount: z.string().describe(\"Revenue amount as a string (e.g., '10.50', '99.99').\"),\n currency: z.string().describe(\"ISO 4217 currency code (e.g., USD, EUR, GBP).\"),\n}).describe(\"Revenue data for the event.\").optional(),\n referrer: z.string().describe(\"Referrer URL for this event (e.g., 'https://google.com/search').\").optional(),\n user_agent: z.string().describe(\"Raw User-Agent string for unique visitor identification and device detection. Should be the actual user agent from the client's browser or app.\"),\n interactive: z.boolean().describe(\"Whether the event counts towards bounce rate. Default is true. Set to false for non-interactive events like automatic tracking.\").optional(),\n x_forwarded_for: z.string().describe(\"IP address of the client for unique visitor counting and location data (e.g., '203.0.113.195'). If not provided, the server's IP will be used.\").optional(),\n}).describe(\"Request model for recording a pageview or custom event.\");\nexport const PlausibleAnalyticsRecordEventOutput = z.object({\n message: z.string().describe(\"Success or error message from the API.\").nullable(),\n success: z.boolean().describe(\"Whether the event was successfully recorded.\").nullable(),\n}).passthrough().describe(\"Response model for record event action.\");\n\nexport const plausibleAnalyticsRecordEvent: AppAction<\n typeof PlausibleAnalyticsRecordEventInput,\n typeof PlausibleAnalyticsRecordEventOutput,\n typeof plausibleAnalytics.credential\n> = action(\"PLAUSIBLE_ANALYTICS_RECORD_EVENT\", {\n slug: \"plausible_analytics-record-event\",\n name: \"Record Event\",\n description: \"Tool to record a pageview or custom event via the Plausible Events API. Use when tracking Android/iOS mobile apps or server-side tracking. Requires proper User-Agent and optionally X-Forwarded-For headers for unique visitor counting.\",\n input: PlausibleAnalyticsRecordEventInput,\n output: PlausibleAnalyticsRecordEventOutput,\n});\n"],"mappings":";;;AAyBA,MAAa,gCAIT,OAAO,oCAAoC;CAC7C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA3BgD,EAAE,OAAO;EACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;EAC9K,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI;EAC5J,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;EACnL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACzF,SAAS,EAAE,OAAO;GAClB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;GAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC/E,CAAC,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;EACjL,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,iIAAiI,CAAC,CAAC,SAAS;EAC9K,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CAClM,CAAC,CAAC,CAAC,SAAS,yDAcH;CACP,QAdiD,EAAE,OAAO;EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAWhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
+
let zod = require("zod");
|
|
1
3
|
//#region src/app.ts
|
|
2
|
-
const
|
|
4
|
+
const credential = {
|
|
5
|
+
full: zod.z.string(),
|
|
6
|
+
generic_api_key: zod.z.string()
|
|
7
|
+
};
|
|
8
|
+
const plausibleAnalytics = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
9
|
slug: "plausible_analytics",
|
|
4
|
-
auth: "keystroke"
|
|
10
|
+
auth: "keystroke",
|
|
11
|
+
credential
|
|
5
12
|
});
|
|
6
13
|
//#endregion
|
|
7
14
|
exports.plausibleAnalytics = plausibleAnalytics;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const plausibleAnalytics = defineApp({\n slug: \"plausible_analytics\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,sBAAA,
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n full: z.string(),\n generic_api_key: z.string(),\n};\n\nexport const plausibleAnalytics: KeystrokeApp<\"plausible_analytics\", typeof credential> = defineApp({\n slug: \"plausible_analytics\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;;AAGA,MAAM,aAAa;CACjB,MAAMA,IAAAA,EAAE,OAAO;CACf,iBAAiBA,IAAAA,EAAE,OAAO;AAC5B;AAEA,MAAa,sBAAA,GAAA,2BAAA,UAAA,CAAuF;CAClG,MAAM;CACN,MAAM;CACN;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
full: z.ZodString;
|
|
7
|
+
generic_api_key: z.ZodString;
|
|
8
|
+
};
|
|
9
|
+
declare const plausibleAnalytics: KeystrokeApp<"plausible_analytics", typeof credential>;
|
|
3
10
|
//#endregion
|
|
4
11
|
export { plausibleAnalytics };
|
|
5
12
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;QAGL,CAAA,CAAA,SAAA;mBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,kBAAA,EAAoB,YAAY,+BAA+B,UAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { KeystrokeApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
1
4
|
//#region src/app.d.ts
|
|
2
|
-
declare const
|
|
5
|
+
declare const credential: {
|
|
6
|
+
full: z.ZodString;
|
|
7
|
+
generic_api_key: z.ZodString;
|
|
8
|
+
};
|
|
9
|
+
declare const plausibleAnalytics: KeystrokeApp<"plausible_analytics", typeof credential>;
|
|
3
10
|
//#endregion
|
|
4
11
|
export { plausibleAnalytics };
|
|
5
12
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;;cAGM,UAAA;QAGL,CAAA,CAAA,SAAA;mBAAA,CAAA,CAAA,SAAA;AAAA;AAAA,cAEY,kBAAA,EAAoB,YAAY,+BAA+B,UAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
-
|
|
2
|
+
import { z } from "zod";
|
|
3
3
|
const plausibleAnalytics = defineApp({
|
|
4
4
|
slug: "plausible_analytics",
|
|
5
|
-
auth: "keystroke"
|
|
5
|
+
auth: "keystroke",
|
|
6
|
+
credential: {
|
|
7
|
+
full: z.string(),
|
|
8
|
+
generic_api_key: z.string()
|
|
9
|
+
}
|
|
6
10
|
});
|
|
7
11
|
//#endregion
|
|
8
12
|
export { plausibleAnalytics };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const plausibleAnalytics = defineApp({\n slug: \"plausible_analytics\",\n auth: \"keystroke\",\n});\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nconst credential = {\n full: z.string(),\n generic_api_key: z.string(),\n};\n\nexport const plausibleAnalytics: KeystrokeApp<\"plausible_analytics\", typeof credential> = defineApp({\n slug: \"plausible_analytics\",\n auth: \"keystroke\",\n credential,\n});\n"],"mappings":";;AAQA,MAAa,qBAA6E,UAAU;CAClG,MAAM;CACN,MAAM;CACN;EAPA,MAAM,EAAE,OAAO;EACf,iBAAiB,EAAE,OAAO;CAM1B;AACF,CAAC"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { plausibleAnalytics } from "./app.cjs";
|
|
1
2
|
import { plausibleAnalyticsCheckHealth } from "./actions/check-health.cjs";
|
|
2
3
|
import { plausibleAnalyticsGetBreakdownStats } from "./actions/get-breakdown-stats.cjs";
|
|
3
4
|
import { plausibleAnalyticsGetPluginCapabilities } from "./actions/get-plugin-capabilities.cjs";
|
|
@@ -11,6 +12,5 @@ import { plausibleAnalyticsListSites } from "./actions/list-sites.cjs";
|
|
|
11
12
|
import { plausibleAnalyticsListTeams } from "./actions/list-teams.cjs";
|
|
12
13
|
import { plausibleAnalyticsQueryStats } from "./actions/query-stats.cjs";
|
|
13
14
|
import { plausibleAnalyticsRecordEvent } from "./actions/record-event.cjs";
|
|
14
|
-
import { plausibleAnalytics } from "./app.cjs";
|
|
15
15
|
import { plausibleAnalyticsCatalog } from "./catalog.cjs";
|
|
16
16
|
export { plausibleAnalytics, plausibleAnalyticsCatalog, plausibleAnalyticsCheckHealth, plausibleAnalyticsGetBreakdownStats, plausibleAnalyticsGetPluginCapabilities, plausibleAnalyticsGetRealtimeVisitors, plausibleAnalyticsGetSite, plausibleAnalyticsGetTimeseriesStats, plausibleAnalyticsListCustomProps, plausibleAnalyticsListGoals, plausibleAnalyticsListGuests, plausibleAnalyticsListSites, plausibleAnalyticsListTeams, plausibleAnalyticsQueryStats, plausibleAnalyticsRecordEvent };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { plausibleAnalytics } from "./app.mjs";
|
|
1
2
|
import { plausibleAnalyticsCheckHealth } from "./actions/check-health.mjs";
|
|
2
3
|
import { plausibleAnalyticsGetBreakdownStats } from "./actions/get-breakdown-stats.mjs";
|
|
3
4
|
import { plausibleAnalyticsGetPluginCapabilities } from "./actions/get-plugin-capabilities.mjs";
|
|
@@ -11,6 +12,5 @@ import { plausibleAnalyticsListSites } from "./actions/list-sites.mjs";
|
|
|
11
12
|
import { plausibleAnalyticsListTeams } from "./actions/list-teams.mjs";
|
|
12
13
|
import { plausibleAnalyticsQueryStats } from "./actions/query-stats.mjs";
|
|
13
14
|
import { plausibleAnalyticsRecordEvent } from "./actions/record-event.mjs";
|
|
14
|
-
import { plausibleAnalytics } from "./app.mjs";
|
|
15
15
|
import { plausibleAnalyticsCatalog } from "./catalog.mjs";
|
|
16
16
|
export { plausibleAnalytics, plausibleAnalyticsCatalog, plausibleAnalyticsCheckHealth, plausibleAnalyticsGetBreakdownStats, plausibleAnalyticsGetPluginCapabilities, plausibleAnalyticsGetRealtimeVisitors, plausibleAnalyticsGetSite, plausibleAnalyticsGetTimeseriesStats, plausibleAnalyticsListCustomProps, plausibleAnalyticsListGoals, plausibleAnalyticsListGuests, plausibleAnalyticsListSites, plausibleAnalyticsListTeams, plausibleAnalyticsQueryStats, plausibleAnalyticsRecordEvent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/plausible_analytics",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@keystrokehq/keystroke": ">=0.1.
|
|
34
|
+
"@keystrokehq/keystroke": ">=0.1.104",
|
|
35
35
|
"zod": "^4.4.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|