@keystrokehq/plausible_analytics 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/check-health.cjs +19 -0
  7. package/dist/actions/check-health.cjs.map +1 -0
  8. package/dist/actions/check-health.d.cts +9 -0
  9. package/dist/actions/check-health.d.cts.map +1 -0
  10. package/dist/actions/check-health.d.mts +9 -0
  11. package/dist/actions/check-health.d.mts.map +1 -0
  12. package/dist/actions/check-health.mjs +16 -0
  13. package/dist/actions/check-health.mjs.map +1 -0
  14. package/dist/actions/get-breakdown-stats.cjs +55 -0
  15. package/dist/actions/get-breakdown-stats.cjs.map +1 -0
  16. package/dist/actions/get-breakdown-stats.d.cts +9 -0
  17. package/dist/actions/get-breakdown-stats.d.cts.map +1 -0
  18. package/dist/actions/get-breakdown-stats.d.mts +9 -0
  19. package/dist/actions/get-breakdown-stats.d.mts.map +1 -0
  20. package/dist/actions/get-breakdown-stats.mjs +54 -0
  21. package/dist/actions/get-breakdown-stats.mjs.map +1 -0
  22. package/dist/actions/get-plugin-capabilities.cjs +33 -0
  23. package/dist/actions/get-plugin-capabilities.cjs.map +1 -0
  24. package/dist/actions/get-plugin-capabilities.d.cts +9 -0
  25. package/dist/actions/get-plugin-capabilities.d.cts.map +1 -0
  26. package/dist/actions/get-plugin-capabilities.d.mts +9 -0
  27. package/dist/actions/get-plugin-capabilities.d.mts.map +1 -0
  28. package/dist/actions/get-plugin-capabilities.mjs +32 -0
  29. package/dist/actions/get-plugin-capabilities.mjs.map +1 -0
  30. package/dist/actions/get-realtime-visitors.cjs +16 -0
  31. package/dist/actions/get-realtime-visitors.cjs.map +1 -0
  32. package/dist/actions/get-realtime-visitors.d.cts +9 -0
  33. package/dist/actions/get-realtime-visitors.d.cts.map +1 -0
  34. package/dist/actions/get-realtime-visitors.d.mts +9 -0
  35. package/dist/actions/get-realtime-visitors.d.mts.map +1 -0
  36. package/dist/actions/get-realtime-visitors.mjs +13 -0
  37. package/dist/actions/get-realtime-visitors.mjs.map +1 -0
  38. package/dist/actions/get-site.cjs +33 -0
  39. package/dist/actions/get-site.cjs.map +1 -0
  40. package/dist/actions/get-site.d.cts +9 -0
  41. package/dist/actions/get-site.d.cts.map +1 -0
  42. package/dist/actions/get-site.d.mts +9 -0
  43. package/dist/actions/get-site.d.mts.map +1 -0
  44. package/dist/actions/get-site.mjs +32 -0
  45. package/dist/actions/get-site.mjs.map +1 -0
  46. package/dist/actions/get-timeseries-stats.cjs +34 -0
  47. package/dist/actions/get-timeseries-stats.cjs.map +1 -0
  48. package/dist/actions/get-timeseries-stats.d.cts +9 -0
  49. package/dist/actions/get-timeseries-stats.d.cts.map +1 -0
  50. package/dist/actions/get-timeseries-stats.d.mts +9 -0
  51. package/dist/actions/get-timeseries-stats.d.mts.map +1 -0
  52. package/dist/actions/get-timeseries-stats.mjs +33 -0
  53. package/dist/actions/get-timeseries-stats.mjs.map +1 -0
  54. package/dist/actions/index.cjs +27 -0
  55. package/dist/actions/index.d.cts +14 -0
  56. package/dist/actions/index.d.mts +14 -0
  57. package/dist/actions/index.mjs +14 -0
  58. package/dist/actions/list-custom-props.cjs +17 -0
  59. package/dist/actions/list-custom-props.cjs.map +1 -0
  60. package/dist/actions/list-custom-props.d.cts +9 -0
  61. package/dist/actions/list-custom-props.d.cts.map +1 -0
  62. package/dist/actions/list-custom-props.d.mts +9 -0
  63. package/dist/actions/list-custom-props.d.mts.map +1 -0
  64. package/dist/actions/list-custom-props.mjs +16 -0
  65. package/dist/actions/list-custom-props.mjs.map +1 -0
  66. package/dist/actions/list-goals.cjs +37 -0
  67. package/dist/actions/list-goals.cjs.map +1 -0
  68. package/dist/actions/list-goals.d.cts +9 -0
  69. package/dist/actions/list-goals.d.cts.map +1 -0
  70. package/dist/actions/list-goals.d.mts +9 -0
  71. package/dist/actions/list-goals.d.mts.map +1 -0
  72. package/dist/actions/list-goals.mjs +36 -0
  73. package/dist/actions/list-goals.mjs.map +1 -0
  74. package/dist/actions/list-guests.cjs +21 -0
  75. package/dist/actions/list-guests.cjs.map +1 -0
  76. package/dist/actions/list-guests.d.cts +9 -0
  77. package/dist/actions/list-guests.d.cts.map +1 -0
  78. package/dist/actions/list-guests.d.mts +9 -0
  79. package/dist/actions/list-guests.d.mts.map +1 -0
  80. package/dist/actions/list-guests.mjs +20 -0
  81. package/dist/actions/list-guests.mjs.map +1 -0
  82. package/dist/actions/list-sites.cjs +33 -0
  83. package/dist/actions/list-sites.cjs.map +1 -0
  84. package/dist/actions/list-sites.d.cts +9 -0
  85. package/dist/actions/list-sites.d.cts.map +1 -0
  86. package/dist/actions/list-sites.d.mts +9 -0
  87. package/dist/actions/list-sites.d.mts.map +1 -0
  88. package/dist/actions/list-sites.mjs +32 -0
  89. package/dist/actions/list-sites.mjs.map +1 -0
  90. package/dist/actions/list-teams.cjs +33 -0
  91. package/dist/actions/list-teams.cjs.map +1 -0
  92. package/dist/actions/list-teams.d.cts +9 -0
  93. package/dist/actions/list-teams.d.cts.map +1 -0
  94. package/dist/actions/list-teams.d.mts +9 -0
  95. package/dist/actions/list-teams.d.mts.map +1 -0
  96. package/dist/actions/list-teams.mjs +32 -0
  97. package/dist/actions/list-teams.mjs.map +1 -0
  98. package/dist/actions/query-stats.cjs +34 -0
  99. package/dist/actions/query-stats.cjs.map +1 -0
  100. package/dist/actions/query-stats.d.cts +9 -0
  101. package/dist/actions/query-stats.d.cts.map +1 -0
  102. package/dist/actions/query-stats.d.mts +9 -0
  103. package/dist/actions/query-stats.d.mts.map +1 -0
  104. package/dist/actions/query-stats.mjs +33 -0
  105. package/dist/actions/query-stats.mjs.map +1 -0
  106. package/dist/actions/record-event.cjs +32 -0
  107. package/dist/actions/record-event.cjs.map +1 -0
  108. package/dist/actions/record-event.d.cts +9 -0
  109. package/dist/actions/record-event.d.cts.map +1 -0
  110. package/dist/actions/record-event.d.mts +9 -0
  111. package/dist/actions/record-event.d.mts.map +1 -0
  112. package/dist/actions/record-event.mjs +29 -0
  113. package/dist/actions/record-event.mjs.map +1 -0
  114. package/dist/app.cjs +9 -0
  115. package/dist/app.cjs.map +1 -0
  116. package/dist/app.d.cts +5 -0
  117. package/dist/app.d.cts.map +1 -0
  118. package/dist/app.d.mts +5 -0
  119. package/dist/app.d.mts.map +1 -0
  120. package/dist/app.mjs +10 -0
  121. package/dist/app.mjs.map +1 -0
  122. package/dist/catalog.cjs +15 -0
  123. package/dist/catalog.cjs.map +1 -0
  124. package/dist/catalog.d.cts +14 -0
  125. package/dist/catalog.d.cts.map +1 -0
  126. package/dist/catalog.d.mts +14 -0
  127. package/dist/catalog.d.mts.map +1 -0
  128. package/dist/catalog.mjs +15 -0
  129. package/dist/catalog.mjs.map +1 -0
  130. package/dist/execute.cjs +18 -0
  131. package/dist/execute.cjs.map +1 -0
  132. package/dist/execute.mjs +18 -0
  133. package/dist/execute.mjs.map +1 -0
  134. package/dist/index.cjs +32 -0
  135. package/dist/index.d.cts +16 -0
  136. package/dist/index.d.mts +16 -0
  137. package/dist/index.mjs +17 -0
  138. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-site.cjs","names":["z","action"],"sources":["../../src/actions/get-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetSiteInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the tracker script\"),\n tagged_events: z.boolean().describe(\"Whether tagged events are enabled\"),\n file_downloads: z.boolean().describe(\"Whether file downloads are tracked\"),\n outbound_links: z.boolean().describe(\"Whether outbound link clicks are tracked\"),\n pageview_props: z.boolean().describe(\"Whether pageview properties are enabled\"),\n track_404_pages: z.boolean().describe(\"Whether 404 pages are tracked\"),\n form_submissions: z.boolean().describe(\"Whether form submissions are tracked\"),\n revenue_tracking: z.boolean().describe(\"Whether revenue tracking is enabled\"),\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\"),\n}).describe(\"Configuration details for the site's tracking script.\");\nexport const PlausibleAnalyticsGetSiteOutput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"The site's domain name\"),\n timezone: z.string().describe(\"IANA timezone identifier for the site (e.g., 'America/New_York')\"),\n custom_properties: z.array(z.string()).describe(\"List of custom property names defined for the site\"),\n tracker_script_configuration: PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema.nullable(),\n}).describe(\"Response model containing site details and configuration.\");\n\nexport const plausibleAnalyticsGetSite = action(\"PLAUSIBLE_ANALYTICS_GET_SITE\", {\n slug: \"plausible_analytics-get-site\",\n name: \"Get Site Details\",\n description: \"Tool to retrieve details for a specific Plausible Analytics site. Use when you need site configuration including domain, timezone, custom properties, and tracker script settings.\",\n input: PlausibleAnalyticsGetSiteInput,\n output: PlausibleAnalyticsGetSiteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,EACtG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,6DAA2EA,IAAAA,EAAE,OAAO;CACxF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CACvE,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CACzE,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CAC/E,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC;CAC9E,iBAAiBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;CACrE,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CAC7E,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CAC5E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;AAC3F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CAChG,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD;CACpG,8BAA8B,2DAA2D,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,2DAA2D;AAEvE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-site.d.ts
4
+ declare const PlausibleAnalyticsGetSiteInput: z.ZodTypeAny;
5
+ declare const PlausibleAnalyticsGetSiteOutput: z.ZodTypeAny;
6
+ declare const plausibleAnalyticsGetSite: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plausibleAnalyticsGetSite };
9
+ //# sourceMappingURL=get-site.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-site.d.cts","names":[],"sources":["../../src/actions/get-site.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAE4C;AAAA,cAa9E,+BAAA,EAAiC,CAAA,CAAE,UAKwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-site.d.ts
4
+ declare const PlausibleAnalyticsGetSiteInput: z.ZodTypeAny;
5
+ declare const PlausibleAnalyticsGetSiteOutput: z.ZodTypeAny;
6
+ declare const plausibleAnalyticsGetSite: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plausibleAnalyticsGetSite };
9
+ //# sourceMappingURL=get-site.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-site.d.mts","names":[],"sources":["../../src/actions/get-site.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAE4C;AAAA,cAa9E,+BAAA,EAAiC,CAAA,CAAE,UAKwB;AAAA,cAE3D,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,32 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-site.ts
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
+ 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"),
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.");
17
+ const plausibleAnalyticsGetSite = action("PLAUSIBLE_ANALYTICS_GET_SITE", {
18
+ slug: "plausible_analytics-get-site",
19
+ name: "Get Site Details",
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
+ input: PlausibleAnalyticsGetSiteInput,
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')"),
25
+ custom_properties: z.array(z.string()).describe("List of custom property names defined for the site"),
26
+ tracker_script_configuration: PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema.nullable()
27
+ }).describe("Response model containing site details and configuration.")
28
+ });
29
+ //#endregion
30
+ export { plausibleAnalyticsGetSite };
31
+
32
+ //# sourceMappingURL=get-site.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-site.mjs","names":[],"sources":["../../src/actions/get-site.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetSiteInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the tracker script\"),\n tagged_events: z.boolean().describe(\"Whether tagged events are enabled\"),\n file_downloads: z.boolean().describe(\"Whether file downloads are tracked\"),\n outbound_links: z.boolean().describe(\"Whether outbound link clicks are tracked\"),\n pageview_props: z.boolean().describe(\"Whether pageview properties are enabled\"),\n track_404_pages: z.boolean().describe(\"Whether 404 pages are tracked\"),\n form_submissions: z.boolean().describe(\"Whether form submissions are tracked\"),\n revenue_tracking: z.boolean().describe(\"Whether revenue tracking is enabled\"),\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\"),\n}).describe(\"Configuration details for the site's tracking script.\");\nexport const PlausibleAnalyticsGetSiteOutput: z.ZodTypeAny = z.object({\n domain: z.string().describe(\"The site's domain name\"),\n timezone: z.string().describe(\"IANA timezone identifier for the site (e.g., 'America/New_York')\"),\n custom_properties: z.array(z.string()).describe(\"List of custom property names defined for the site\"),\n tracker_script_configuration: PlausibleAnalyticsGetSite_TrackerScriptConfigurationSchema.nullable(),\n}).describe(\"Response model containing site details and configuration.\");\n\nexport const plausibleAnalyticsGetSite = action(\"PLAUSIBLE_ANALYTICS_GET_SITE\", {\n slug: \"plausible_analytics-get-site\",\n name: \"Get Site Details\",\n description: \"Tool to retrieve details for a specific Plausible Analytics site. Use when you need site configuration including domain, timezone, custom properties, and tracker script settings.\",\n input: PlausibleAnalyticsGetSiteInput,\n output: PlausibleAnalyticsGetSiteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,EACtG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,6DAA2E,EAAE,OAAO;CACxF,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CAClE,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC;CACvE,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC;CACzE,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C;CAC/E,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC;CAC9E,iBAAiB,EAAE,QAAQ,CAAC,CAAC,SAAS,+BAA+B;CACrE,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CAC7E,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC;CAC5E,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;AAC3F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAQnE,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZ2D,EAAE,OAAO;EACpE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;EACpD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EAChG,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD;EACpG,8BAA8B,2DAA2D,SAAS;CACpG,CAAC,CAAC,CAAC,SAAS,2DAOF;AACV,CAAC"}
@@ -0,0 +1,34 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-timeseries-stats.ts
4
+ const PlausibleAnalyticsGetTimeseriesStatsInput = zod.z.object({
5
+ period: zod.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(),
6
+ filters: zod.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(),
7
+ metrics: zod.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(),
8
+ site_id: zod.z.string().describe("Domain of your site on Plausible (e.g., 'example.com')"),
9
+ interval: zod.z.enum(["day", "month"]).describe("Interval for grouping timeseries data.").optional(),
10
+ with_imported: zod.z.boolean().describe("Whether to include imported statistics from other analytics platforms. Defaults to false if not specified.").optional()
11
+ }).describe("Request model for fetching timeseries statistics from Plausible Analytics.");
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')"),
14
+ events: zod.z.number().int().describe("Number of custom events tracked").nullable().optional(),
15
+ visits: zod.z.number().int().describe("Number of visits (sessions) for this time period").nullable().optional(),
16
+ visitors: zod.z.number().int().describe("Number of unique visitors for this time period").nullable().optional(),
17
+ pageviews: zod.z.number().int().describe("Number of pageviews for this time period").nullable().optional(),
18
+ bounce_rate: zod.z.number().describe("Bounce rate as a percentage (0-100)").nullable().optional(),
19
+ visit_duration: zod.z.number().describe("Average visit duration in seconds").nullable().optional(),
20
+ conversion_rate: zod.z.number().describe("Conversion rate as a percentage (0-100)").nullable().optional(),
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.");
24
+ const plausibleAnalyticsGetTimeseriesStats = require_action.action("PLAUSIBLE_ANALYTICS_GET_TIMESERIES_STATS", {
25
+ slug: "plausible_analytics-get-timeseries-stats",
26
+ name: "Get Timeseries Stats",
27
+ 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.",
28
+ input: PlausibleAnalyticsGetTimeseriesStatsInput,
29
+ output: PlausibleAnalyticsGetTimeseriesStatsOutput
30
+ });
31
+ //#endregion
32
+ exports.plausibleAnalyticsGetTimeseriesStats = plausibleAnalyticsGetTimeseriesStats;
33
+
34
+ //# sourceMappingURL=get-timeseries-stats.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-timeseries-stats.cjs","names":["z","action"],"sources":["../../src/actions/get-timeseries-stats.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsGetTimeseriesStatsInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n date: z.string().describe(\"The date for this data point in ISO format (e.g., '2020-08-01')\"),\n events: z.number().int().describe(\"Number of custom events tracked\").nullable().optional(),\n visits: z.number().int().describe(\"Number of visits (sessions) for this time period\").nullable().optional(),\n visitors: z.number().int().describe(\"Number of unique visitors for this time period\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of pageviews for this time period\").nullable().optional(),\n bounce_rate: z.number().describe(\"Bounce rate as a percentage (0-100)\").nullable().optional(),\n visit_duration: z.number().describe(\"Average visit duration in seconds\").nullable().optional(),\n conversion_rate: z.number().describe(\"Conversion rate as a percentage (0-100)\").nullable().optional(),\n views_per_visit: z.number().describe(\"Average number of pageviews per visit\").nullable().optional(),\n}).describe(\"Represents a single data point in the timeseries response.\");\nexport const PlausibleAnalyticsGetTimeseriesStatsOutput: z.ZodTypeAny = z.object({\n results: z.array(PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema).describe(\"Array of data points, each representing metrics for a specific time period\"),\n}).describe(\"Response containing timeseries data from Plausible Analytics.\");\n\nexport const plausibleAnalyticsGetTimeseriesStats = action(\"PLAUSIBLE_ANALYTICS_GET_TIMESERIES_STATS\", {\n slug: \"plausible_analytics-get-timeseries-stats\",\n name: \"Get Timeseries Stats\",\n description: \"Tool to retrieve timeseries visitor data from Plausible Analytics over a specified time period. Use this to get historical trends for metrics like visitors, pageviews, bounce rate, and visit duration. This is the legacy Stats API v1 endpoint typically used for the main visitor graph.\",\n input: PlausibleAnalyticsGetTimeseriesStatsInput,\n output: PlausibleAnalyticsGetTimeseriesStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,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,iEAA+EA,IAAAA,EAAE,OAAO;CAC5F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC3F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,6CAA2DA,IAAAA,EAAE,OAAO,EAC/E,SAASA,IAAAA,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,4EAA4E,EACxK,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,uCAAuCC,eAAAA,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-timeseries-stats.d.ts
4
+ declare const PlausibleAnalyticsGetTimeseriesStatsInput: z.ZodTypeAny;
5
+ declare const PlausibleAnalyticsGetTimeseriesStatsOutput: z.ZodTypeAny;
6
+ declare const plausibleAnalyticsGetTimeseriesStats: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plausibleAnalyticsGetTimeseriesStats };
9
+ //# sourceMappingURL=get-timeseries-stats.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-timeseries-stats.d.cts","names":[],"sources":["../../src/actions/get-timeseries-stats.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAO+B;AAAA,cAY5E,0CAAA,EAA4C,CAAA,CAAE,UAEiB;AAAA,cAE/D,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-timeseries-stats.d.ts
4
+ declare const PlausibleAnalyticsGetTimeseriesStatsInput: z.ZodTypeAny;
5
+ declare const PlausibleAnalyticsGetTimeseriesStatsOutput: z.ZodTypeAny;
6
+ declare const plausibleAnalyticsGetTimeseriesStats: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plausibleAnalyticsGetTimeseriesStats };
9
+ //# sourceMappingURL=get-timeseries-stats.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-timeseries-stats.d.mts","names":[],"sources":["../../src/actions/get-timeseries-stats.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAO+B;AAAA,cAY5E,0CAAA,EAA4C,CAAA,CAAE,UAEiB;AAAA,cAE/D,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,33 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-timeseries-stats.ts
4
+ const PlausibleAnalyticsGetTimeseriesStatsInput = z.object({
5
+ 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(),
6
+ 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(),
7
+ 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(),
8
+ site_id: z.string().describe("Domain of your site on Plausible (e.g., 'example.com')"),
9
+ interval: z.enum(["day", "month"]).describe("Interval for grouping timeseries data.").optional(),
10
+ with_imported: z.boolean().describe("Whether to include imported statistics from other analytics platforms. Defaults to false if not specified.").optional()
11
+ }).describe("Request model for fetching timeseries statistics from Plausible Analytics.");
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')"),
14
+ events: z.number().int().describe("Number of custom events tracked").nullable().optional(),
15
+ visits: z.number().int().describe("Number of visits (sessions) for this time period").nullable().optional(),
16
+ visitors: z.number().int().describe("Number of unique visitors for this time period").nullable().optional(),
17
+ pageviews: z.number().int().describe("Number of pageviews for this time period").nullable().optional(),
18
+ bounce_rate: z.number().describe("Bounce rate as a percentage (0-100)").nullable().optional(),
19
+ visit_duration: z.number().describe("Average visit duration in seconds").nullable().optional(),
20
+ conversion_rate: z.number().describe("Conversion rate as a percentage (0-100)").nullable().optional(),
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.");
23
+ const plausibleAnalyticsGetTimeseriesStats = action("PLAUSIBLE_ANALYTICS_GET_TIMESERIES_STATS", {
24
+ slug: "plausible_analytics-get-timeseries-stats",
25
+ name: "Get Timeseries Stats",
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
+ 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.")
29
+ });
30
+ //#endregion
31
+ export { plausibleAnalyticsGetTimeseriesStats };
32
+
33
+ //# sourceMappingURL=get-timeseries-stats.mjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n date: z.string().describe(\"The date for this data point in ISO format (e.g., '2020-08-01')\"),\n events: z.number().int().describe(\"Number of custom events tracked\").nullable().optional(),\n visits: z.number().int().describe(\"Number of visits (sessions) for this time period\").nullable().optional(),\n visitors: z.number().int().describe(\"Number of unique visitors for this time period\").nullable().optional(),\n pageviews: z.number().int().describe(\"Number of pageviews for this time period\").nullable().optional(),\n bounce_rate: z.number().describe(\"Bounce rate as a percentage (0-100)\").nullable().optional(),\n visit_duration: z.number().describe(\"Average visit duration in seconds\").nullable().optional(),\n conversion_rate: z.number().describe(\"Conversion rate as a percentage (0-100)\").nullable().optional(),\n views_per_visit: z.number().describe(\"Average number of pageviews per visit\").nullable().optional(),\n}).describe(\"Represents a single data point in the timeseries response.\");\nexport const PlausibleAnalyticsGetTimeseriesStatsOutput: z.ZodTypeAny = z.object({\n results: z.array(PlausibleAnalyticsGetTimeseriesStats_TimeseriesDataPointSchema).describe(\"Array of data points, each representing metrics for a specific time period\"),\n}).describe(\"Response containing timeseries data from Plausible Analytics.\");\n\nexport const plausibleAnalyticsGetTimeseriesStats = action(\"PLAUSIBLE_ANALYTICS_GET_TIMESERIES_STATS\", {\n slug: \"plausible_analytics-get-timeseries-stats\",\n name: \"Get Timeseries Stats\",\n description: \"Tool to retrieve timeseries visitor data from Plausible Analytics over a specified time period. Use this to get historical trends for metrics like visitors, pageviews, bounce rate, and visit duration. This is the legacy Stats API v1 endpoint typically used for the main visitor graph.\",\n input: PlausibleAnalyticsGetTimeseriesStatsInput,\n output: PlausibleAnalyticsGetTimeseriesStatsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0D,EAAE,OAAO;CAC9E,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,iEAA+E,EAAE,OAAO;CAC5F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC3F,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,SAAS,4DAA4D;AAKxE,MAAa,uCAAuC,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATsE,EAAE,OAAO,EAC/E,SAAS,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,4EAA4E,EACxK,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
@@ -0,0 +1,27 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_check_health = require("./check-health.cjs");
3
+ const require_get_breakdown_stats = require("./get-breakdown-stats.cjs");
4
+ const require_get_plugin_capabilities = require("./get-plugin-capabilities.cjs");
5
+ const require_get_realtime_visitors = require("./get-realtime-visitors.cjs");
6
+ const require_get_site = require("./get-site.cjs");
7
+ const require_get_timeseries_stats = require("./get-timeseries-stats.cjs");
8
+ const require_list_custom_props = require("./list-custom-props.cjs");
9
+ const require_list_goals = require("./list-goals.cjs");
10
+ const require_list_guests = require("./list-guests.cjs");
11
+ const require_list_sites = require("./list-sites.cjs");
12
+ const require_list_teams = require("./list-teams.cjs");
13
+ const require_query_stats = require("./query-stats.cjs");
14
+ const require_record_event = require("./record-event.cjs");
15
+ exports.plausibleAnalyticsCheckHealth = require_check_health.plausibleAnalyticsCheckHealth;
16
+ exports.plausibleAnalyticsGetBreakdownStats = require_get_breakdown_stats.plausibleAnalyticsGetBreakdownStats;
17
+ exports.plausibleAnalyticsGetPluginCapabilities = require_get_plugin_capabilities.plausibleAnalyticsGetPluginCapabilities;
18
+ exports.plausibleAnalyticsGetRealtimeVisitors = require_get_realtime_visitors.plausibleAnalyticsGetRealtimeVisitors;
19
+ exports.plausibleAnalyticsGetSite = require_get_site.plausibleAnalyticsGetSite;
20
+ exports.plausibleAnalyticsGetTimeseriesStats = require_get_timeseries_stats.plausibleAnalyticsGetTimeseriesStats;
21
+ exports.plausibleAnalyticsListCustomProps = require_list_custom_props.plausibleAnalyticsListCustomProps;
22
+ exports.plausibleAnalyticsListGoals = require_list_goals.plausibleAnalyticsListGoals;
23
+ exports.plausibleAnalyticsListGuests = require_list_guests.plausibleAnalyticsListGuests;
24
+ exports.plausibleAnalyticsListSites = require_list_sites.plausibleAnalyticsListSites;
25
+ exports.plausibleAnalyticsListTeams = require_list_teams.plausibleAnalyticsListTeams;
26
+ exports.plausibleAnalyticsQueryStats = require_query_stats.plausibleAnalyticsQueryStats;
27
+ exports.plausibleAnalyticsRecordEvent = require_record_event.plausibleAnalyticsRecordEvent;
@@ -0,0 +1,14 @@
1
+ import { plausibleAnalyticsCheckHealth } from "./check-health.cjs";
2
+ import { plausibleAnalyticsGetBreakdownStats } from "./get-breakdown-stats.cjs";
3
+ import { plausibleAnalyticsGetPluginCapabilities } from "./get-plugin-capabilities.cjs";
4
+ import { plausibleAnalyticsGetRealtimeVisitors } from "./get-realtime-visitors.cjs";
5
+ import { plausibleAnalyticsGetSite } from "./get-site.cjs";
6
+ import { plausibleAnalyticsGetTimeseriesStats } from "./get-timeseries-stats.cjs";
7
+ import { plausibleAnalyticsListCustomProps } from "./list-custom-props.cjs";
8
+ import { plausibleAnalyticsListGoals } from "./list-goals.cjs";
9
+ import { plausibleAnalyticsListGuests } from "./list-guests.cjs";
10
+ import { plausibleAnalyticsListSites } from "./list-sites.cjs";
11
+ import { plausibleAnalyticsListTeams } from "./list-teams.cjs";
12
+ import { plausibleAnalyticsQueryStats } from "./query-stats.cjs";
13
+ import { plausibleAnalyticsRecordEvent } from "./record-event.cjs";
14
+ export { plausibleAnalyticsCheckHealth, plausibleAnalyticsGetBreakdownStats, plausibleAnalyticsGetPluginCapabilities, plausibleAnalyticsGetRealtimeVisitors, plausibleAnalyticsGetSite, plausibleAnalyticsGetTimeseriesStats, plausibleAnalyticsListCustomProps, plausibleAnalyticsListGoals, plausibleAnalyticsListGuests, plausibleAnalyticsListSites, plausibleAnalyticsListTeams, plausibleAnalyticsQueryStats, plausibleAnalyticsRecordEvent };
@@ -0,0 +1,14 @@
1
+ import { plausibleAnalyticsCheckHealth } from "./check-health.mjs";
2
+ import { plausibleAnalyticsGetBreakdownStats } from "./get-breakdown-stats.mjs";
3
+ import { plausibleAnalyticsGetPluginCapabilities } from "./get-plugin-capabilities.mjs";
4
+ import { plausibleAnalyticsGetRealtimeVisitors } from "./get-realtime-visitors.mjs";
5
+ import { plausibleAnalyticsGetSite } from "./get-site.mjs";
6
+ import { plausibleAnalyticsGetTimeseriesStats } from "./get-timeseries-stats.mjs";
7
+ import { plausibleAnalyticsListCustomProps } from "./list-custom-props.mjs";
8
+ import { plausibleAnalyticsListGoals } from "./list-goals.mjs";
9
+ import { plausibleAnalyticsListGuests } from "./list-guests.mjs";
10
+ import { plausibleAnalyticsListSites } from "./list-sites.mjs";
11
+ import { plausibleAnalyticsListTeams } from "./list-teams.mjs";
12
+ import { plausibleAnalyticsQueryStats } from "./query-stats.mjs";
13
+ import { plausibleAnalyticsRecordEvent } from "./record-event.mjs";
14
+ export { plausibleAnalyticsCheckHealth, plausibleAnalyticsGetBreakdownStats, plausibleAnalyticsGetPluginCapabilities, plausibleAnalyticsGetRealtimeVisitors, plausibleAnalyticsGetSite, plausibleAnalyticsGetTimeseriesStats, plausibleAnalyticsListCustomProps, plausibleAnalyticsListGoals, plausibleAnalyticsListGuests, plausibleAnalyticsListSites, plausibleAnalyticsListTeams, plausibleAnalyticsQueryStats, plausibleAnalyticsRecordEvent };
@@ -0,0 +1,14 @@
1
+ import { plausibleAnalyticsCheckHealth } from "./check-health.mjs";
2
+ import { plausibleAnalyticsGetBreakdownStats } from "./get-breakdown-stats.mjs";
3
+ import { plausibleAnalyticsGetPluginCapabilities } from "./get-plugin-capabilities.mjs";
4
+ import { plausibleAnalyticsGetRealtimeVisitors } from "./get-realtime-visitors.mjs";
5
+ import { plausibleAnalyticsGetSite } from "./get-site.mjs";
6
+ import { plausibleAnalyticsGetTimeseriesStats } from "./get-timeseries-stats.mjs";
7
+ import { plausibleAnalyticsListCustomProps } from "./list-custom-props.mjs";
8
+ import { plausibleAnalyticsListGoals } from "./list-goals.mjs";
9
+ import { plausibleAnalyticsListGuests } from "./list-guests.mjs";
10
+ import { plausibleAnalyticsListSites } from "./list-sites.mjs";
11
+ import { plausibleAnalyticsListTeams } from "./list-teams.mjs";
12
+ import { plausibleAnalyticsQueryStats } from "./query-stats.mjs";
13
+ import { plausibleAnalyticsRecordEvent } from "./record-event.mjs";
14
+ export { plausibleAnalyticsCheckHealth, plausibleAnalyticsGetBreakdownStats, plausibleAnalyticsGetPluginCapabilities, plausibleAnalyticsGetRealtimeVisitors, plausibleAnalyticsGetSite, plausibleAnalyticsGetTimeseriesStats, plausibleAnalyticsListCustomProps, plausibleAnalyticsListGoals, plausibleAnalyticsListGuests, plausibleAnalyticsListSites, plausibleAnalyticsListTeams, plausibleAnalyticsQueryStats, plausibleAnalyticsRecordEvent };
@@ -0,0 +1,17 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-custom-props.ts
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.");
7
+ const plausibleAnalyticsListCustomProps = require_action.action("PLAUSIBLE_ANALYTICS_LIST_CUSTOM_PROPS", {
8
+ slug: "plausible_analytics-list-custom-props",
9
+ name: "List Custom Properties",
10
+ 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.",
11
+ input: PlausibleAnalyticsListCustomPropsInput,
12
+ output: PlausibleAnalyticsListCustomPropsOutput
13
+ });
14
+ //#endregion
15
+ exports.plausibleAnalyticsListCustomProps = plausibleAnalyticsListCustomProps;
16
+
17
+ //# sourceMappingURL=list-custom-props.cjs.map
@@ -0,0 +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: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n property: z.string().describe(\"Name of the custom property.\"),\n}).describe(\"Represents a single custom property configured for a site.\");\nexport const PlausibleAnalyticsListCustomPropsOutput: z.ZodTypeAny = z.object({\n custom_properties: z.array(PlausibleAnalyticsListCustomProps_CustomPropertySchema).describe(\"List of custom properties configured for the site.\"),\n}).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,yCAAuDA,IAAAA,EAAE,OAAO,EAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACtF,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,yDAAuEA,IAAAA,EAAE,OAAO,EACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EAC9D,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAa,0CAAwDA,IAAAA,EAAE,OAAO,EAC5E,mBAAmBA,IAAAA,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oDAAoD,EAClJ,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAEtF,MAAa,oCAAoCC,eAAAA,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-custom-props.d.ts
4
+ declare const PlausibleAnalyticsListCustomPropsInput: z.ZodTypeAny;
5
+ declare const PlausibleAnalyticsListCustomPropsOutput: z.ZodTypeAny;
6
+ declare const plausibleAnalyticsListCustomProps: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plausibleAnalyticsListCustomProps };
9
+ //# sourceMappingURL=list-custom-props.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-custom-props.d.cts","names":[],"sources":["../../src/actions/list-custom-props.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAE8B;AAAA,cAIxE,uCAAA,EAAyC,CAAA,CAAE,UAE+B;AAAA,cAE1E,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-custom-props.d.ts
4
+ declare const PlausibleAnalyticsListCustomPropsInput: z.ZodTypeAny;
5
+ declare const PlausibleAnalyticsListCustomPropsOutput: z.ZodTypeAny;
6
+ declare const plausibleAnalyticsListCustomProps: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plausibleAnalyticsListCustomProps };
9
+ //# sourceMappingURL=list-custom-props.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-custom-props.d.mts","names":[],"sources":["../../src/actions/list-custom-props.ts"],"mappings":";;;cAIa,sCAAA,EAAwC,CAAA,CAAE,UAE8B;AAAA,cAIxE,uCAAA,EAAyC,CAAA,CAAE,UAE+B;AAAA,cAE1E,iCAAA,gCAAiC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-custom-props.ts
4
+ const PlausibleAnalyticsListCustomPropsInput = z.object({ site_id: 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 = z.object({ property: z.string().describe("Name of the custom property.") }).describe("Represents a single custom property configured for a site.");
6
+ const plausibleAnalyticsListCustomProps = action("PLAUSIBLE_ANALYTICS_LIST_CUSTOM_PROPS", {
7
+ slug: "plausible_analytics-list-custom-props",
8
+ name: "List Custom Properties",
9
+ 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.",
10
+ input: PlausibleAnalyticsListCustomPropsInput,
11
+ output: z.object({ custom_properties: 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.")
12
+ });
13
+ //#endregion
14
+ export { plausibleAnalyticsListCustomProps };
15
+
16
+ //# sourceMappingURL=list-custom-props.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-custom-props.mjs","names":[],"sources":["../../src/actions/list-custom-props.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsListCustomPropsInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n property: z.string().describe(\"Name of the custom property.\"),\n}).describe(\"Represents a single custom property configured for a site.\");\nexport const PlausibleAnalyticsListCustomPropsOutput: z.ZodTypeAny = z.object({\n custom_properties: z.array(PlausibleAnalyticsListCustomProps_CustomPropertySchema).describe(\"List of custom properties configured for the site.\"),\n}).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,yCAAuD,EAAE,OAAO,EAC3E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,EACtF,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,yDAAuE,EAAE,OAAO,EACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,EAC9D,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAKxE,MAAa,oCAAoC,OAAO,yCAAyC;CAC/F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATmE,EAAE,OAAO,EAC5E,mBAAmB,EAAE,MAAM,sDAAsD,CAAC,CAAC,SAAS,oDAAoD,EAClJ,CAAC,CAAC,CAAC,SAAS,0EAOF;AACV,CAAC"}
@@ -0,0 +1,37 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-goals.ts
4
+ const PlausibleAnalyticsListGoalsInput = zod.z.object({
5
+ after: zod.z.number().int().describe("Pagination cursor for fetching the next page of results. Use the 'after' value from a previous response's meta.").optional(),
6
+ limit: zod.z.number().int().describe("Maximum number of goals to return per page. Defaults to API default if not specified.").optional(),
7
+ before: zod.z.number().int().describe("Pagination cursor for fetching the previous page of results. Use the 'before' value from a previous response's meta.").optional(),
8
+ site_id: zod.z.string().describe("Domain of the site to retrieve goals for.")
9
+ }).describe("Request model for listing goals configured for a site.");
10
+ const PlausibleAnalyticsListGoals_MetaSchema = zod.z.object({
11
+ after: zod.z.number().int().describe("Cursor for pagination (after).").nullable().optional(),
12
+ limit: zod.z.number().int().describe("Maximum number of items per page.").nullable().optional(),
13
+ before: zod.z.number().int().describe("Cursor for pagination (before).").nullable().optional()
14
+ }).describe("Metadata about the goals response.");
15
+ const PlausibleAnalyticsListGoals_GoalSchema = zod.z.object({
16
+ id: zod.z.union([zod.z.string(), zod.z.number().int()]).nullable().optional(),
17
+ goal_type: zod.z.string().describe("Type of the goal (e.g., custom_event, page_view).").nullable().optional(),
18
+ page_path: zod.z.string().describe("Page path for page view goals.").nullable().optional(),
19
+ event_name: zod.z.string().describe("Name of the custom event associated with the goal.").nullable().optional(),
20
+ custom_props: zod.z.union([zod.z.object({}), zod.z.object({})]).nullable().optional(),
21
+ display_name: zod.z.string().describe("Human-readable display name for the goal.").nullable().optional()
22
+ }).describe("Represents a single goal configured for a site.\nGoals track conversions and custom actions.");
23
+ const PlausibleAnalyticsListGoalsOutput = zod.z.object({
24
+ meta: PlausibleAnalyticsListGoals_MetaSchema.nullable().optional(),
25
+ goals: zod.z.array(PlausibleAnalyticsListGoals_GoalSchema).describe("List of goals configured for the site.")
26
+ }).describe("Response containing the list of goals configured for a site.");
27
+ const plausibleAnalyticsListGoals = require_action.action("PLAUSIBLE_ANALYTICS_LIST_GOALS", {
28
+ slug: "plausible_analytics-list-goals",
29
+ name: "List Goals",
30
+ description: "Tool to list all goals configured for a site. Use when you need to retrieve conversion goals and custom action tracking configured for a Plausible Analytics site.",
31
+ input: PlausibleAnalyticsListGoalsInput,
32
+ output: PlausibleAnalyticsListGoalsOutput
33
+ });
34
+ //#endregion
35
+ exports.plausibleAnalyticsListGoals = plausibleAnalyticsListGoals;
36
+
37
+ //# sourceMappingURL=list-goals.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-goals.cjs","names":["z","action"],"sources":["../../src/actions/list-goals.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsListGoalsInput: z.ZodTypeAny = z.object({\n after: z.number().int().describe(\"Pagination cursor for fetching the next page of results. Use the 'after' value from a previous response's meta.\").optional(),\n limit: z.number().int().describe(\"Maximum number of goals to return per page. Defaults to API default if not specified.\").optional(),\n before: z.number().int().describe(\"Pagination cursor for fetching the previous page of results. Use the 'before' value from a previous response's meta.\").optional(),\n site_id: z.string().describe(\"Domain of the site to retrieve goals for.\"),\n}).describe(\"Request model for listing goals configured for a site.\");\nconst PlausibleAnalyticsListGoals_MetaSchema: z.ZodTypeAny = z.object({\n after: z.number().int().describe(\"Cursor for pagination (after).\").nullable().optional(),\n limit: z.number().int().describe(\"Maximum number of items per page.\").nullable().optional(),\n before: z.number().int().describe(\"Cursor for pagination (before).\").nullable().optional(),\n}).describe(\"Metadata about the goals response.\");\nconst PlausibleAnalyticsListGoals_GoalSchema: z.ZodTypeAny = z.object({\n id: z.union([z.string(), z.number().int()]).nullable().optional(),\n goal_type: z.string().describe(\"Type of the goal (e.g., custom_event, page_view).\").nullable().optional(),\n page_path: z.string().describe(\"Page path for page view goals.\").nullable().optional(),\n event_name: z.string().describe(\"Name of the custom event associated with the goal.\").nullable().optional(),\n custom_props: z.union([z.object({}), z.object({})]).nullable().optional(),\n display_name: z.string().describe(\"Human-readable display name for the goal.\").nullable().optional(),\n}).describe(\"Represents a single goal configured for a site.\\nGoals track conversions and custom actions.\");\nexport const PlausibleAnalyticsListGoalsOutput: z.ZodTypeAny = z.object({\n meta: PlausibleAnalyticsListGoals_MetaSchema.nullable().optional(),\n goals: z.array(PlausibleAnalyticsListGoals_GoalSchema).describe(\"List of goals configured for the site.\"),\n}).describe(\"Response containing the list of goals configured for a site.\");\n\nexport const plausibleAnalyticsListGoals = action(\"PLAUSIBLE_ANALYTICS_LIST_GOALS\", {\n slug: \"plausible_analytics-list-goals\",\n name: \"List Goals\",\n description: \"Tool to list all goals configured for a site. Use when you need to retrieve conversion goals and custom action tracking configured for a Plausible Analytics site.\",\n input: PlausibleAnalyticsListGoalsInput,\n output: PlausibleAnalyticsListGoalsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC7J,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACnI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACnK,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC1E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,yCAAuDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,cAAcA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,8FAA8F;AAC1G,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,MAAM,uCAAuC,SAAS,CAAC,CAAC,SAAS;CACjE,OAAOA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,wCAAwC;AAC1G,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAE1E,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-goals.d.ts
4
+ declare const PlausibleAnalyticsListGoalsInput: z.ZodTypeAny;
5
+ declare const PlausibleAnalyticsListGoalsOutput: z.ZodTypeAny;
6
+ declare const plausibleAnalyticsListGoals: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plausibleAnalyticsListGoals };
9
+ //# sourceMappingURL=list-goals.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-goals.d.cts","names":[],"sources":["../../src/actions/list-goals.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAKoB;AAAA,cAcxD,iCAAA,EAAmC,CAAA,CAAE,UAGyB;AAAA,cAE9D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-goals.d.ts
4
+ declare const PlausibleAnalyticsListGoalsInput: z.ZodTypeAny;
5
+ declare const PlausibleAnalyticsListGoalsOutput: z.ZodTypeAny;
6
+ declare const plausibleAnalyticsListGoals: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plausibleAnalyticsListGoals };
9
+ //# sourceMappingURL=list-goals.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-goals.d.mts","names":[],"sources":["../../src/actions/list-goals.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAKoB;AAAA,cAcxD,iCAAA,EAAmC,CAAA,CAAE,UAGyB;AAAA,cAE9D,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,36 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-goals.ts
4
+ const PlausibleAnalyticsListGoalsInput = z.object({
5
+ after: z.number().int().describe("Pagination cursor for fetching the next page of results. Use the 'after' value from a previous response's meta.").optional(),
6
+ limit: z.number().int().describe("Maximum number of goals to return per page. Defaults to API default if not specified.").optional(),
7
+ before: z.number().int().describe("Pagination cursor for fetching the previous page of results. Use the 'before' value from a previous response's meta.").optional(),
8
+ site_id: z.string().describe("Domain of the site to retrieve goals for.")
9
+ }).describe("Request model for listing goals configured for a site.");
10
+ const PlausibleAnalyticsListGoals_MetaSchema = z.object({
11
+ after: z.number().int().describe("Cursor for pagination (after).").nullable().optional(),
12
+ limit: z.number().int().describe("Maximum number of items per page.").nullable().optional(),
13
+ before: z.number().int().describe("Cursor for pagination (before).").nullable().optional()
14
+ }).describe("Metadata about the goals response.");
15
+ const PlausibleAnalyticsListGoals_GoalSchema = z.object({
16
+ id: z.union([z.string(), z.number().int()]).nullable().optional(),
17
+ goal_type: z.string().describe("Type of the goal (e.g., custom_event, page_view).").nullable().optional(),
18
+ page_path: z.string().describe("Page path for page view goals.").nullable().optional(),
19
+ event_name: z.string().describe("Name of the custom event associated with the goal.").nullable().optional(),
20
+ custom_props: z.union([z.object({}), z.object({})]).nullable().optional(),
21
+ display_name: z.string().describe("Human-readable display name for the goal.").nullable().optional()
22
+ }).describe("Represents a single goal configured for a site.\nGoals track conversions and custom actions.");
23
+ const plausibleAnalyticsListGoals = action("PLAUSIBLE_ANALYTICS_LIST_GOALS", {
24
+ slug: "plausible_analytics-list-goals",
25
+ name: "List Goals",
26
+ description: "Tool to list all goals configured for a site. Use when you need to retrieve conversion goals and custom action tracking configured for a Plausible Analytics site.",
27
+ input: PlausibleAnalyticsListGoalsInput,
28
+ output: z.object({
29
+ meta: PlausibleAnalyticsListGoals_MetaSchema.nullable().optional(),
30
+ goals: z.array(PlausibleAnalyticsListGoals_GoalSchema).describe("List of goals configured for the site.")
31
+ }).describe("Response containing the list of goals configured for a site.")
32
+ });
33
+ //#endregion
34
+ export { plausibleAnalyticsListGoals };
35
+
36
+ //# sourceMappingURL=list-goals.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-goals.mjs","names":[],"sources":["../../src/actions/list-goals.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsListGoalsInput: z.ZodTypeAny = z.object({\n after: z.number().int().describe(\"Pagination cursor for fetching the next page of results. Use the 'after' value from a previous response's meta.\").optional(),\n limit: z.number().int().describe(\"Maximum number of goals to return per page. Defaults to API default if not specified.\").optional(),\n before: z.number().int().describe(\"Pagination cursor for fetching the previous page of results. Use the 'before' value from a previous response's meta.\").optional(),\n site_id: z.string().describe(\"Domain of the site to retrieve goals for.\"),\n}).describe(\"Request model for listing goals configured for a site.\");\nconst PlausibleAnalyticsListGoals_MetaSchema: z.ZodTypeAny = z.object({\n after: z.number().int().describe(\"Cursor for pagination (after).\").nullable().optional(),\n limit: z.number().int().describe(\"Maximum number of items per page.\").nullable().optional(),\n before: z.number().int().describe(\"Cursor for pagination (before).\").nullable().optional(),\n}).describe(\"Metadata about the goals response.\");\nconst PlausibleAnalyticsListGoals_GoalSchema: z.ZodTypeAny = z.object({\n id: z.union([z.string(), z.number().int()]).nullable().optional(),\n goal_type: z.string().describe(\"Type of the goal (e.g., custom_event, page_view).\").nullable().optional(),\n page_path: z.string().describe(\"Page path for page view goals.\").nullable().optional(),\n event_name: z.string().describe(\"Name of the custom event associated with the goal.\").nullable().optional(),\n custom_props: z.union([z.object({}), z.object({})]).nullable().optional(),\n display_name: z.string().describe(\"Human-readable display name for the goal.\").nullable().optional(),\n}).describe(\"Represents a single goal configured for a site.\\nGoals track conversions and custom actions.\");\nexport const PlausibleAnalyticsListGoalsOutput: z.ZodTypeAny = z.object({\n meta: PlausibleAnalyticsListGoals_MetaSchema.nullable().optional(),\n goals: z.array(PlausibleAnalyticsListGoals_GoalSchema).describe(\"List of goals configured for the site.\"),\n}).describe(\"Response containing the list of goals configured for a site.\");\n\nexport const plausibleAnalyticsListGoals = action(\"PLAUSIBLE_ANALYTICS_LIST_GOALS\", {\n slug: \"plausible_analytics-list-goals\",\n name: \"List Goals\",\n description: \"Tool to list all goals configured for a site. Use when you need to retrieve conversion goals and custom action tracking configured for a Plausible Analytics site.\",\n input: PlausibleAnalyticsListGoalsInput,\n output: PlausibleAnalyticsListGoalsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iHAAiH,CAAC,CAAC,SAAS;CAC7J,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACnI,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;CACnK,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;AAC1E,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,yCAAuD,EAAE,OAAO;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAM,yCAAuD,EAAE,OAAO;CACpE,IAAI,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,cAAc,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,8FAA8F;AAM1G,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6D,EAAE,OAAO;EACtE,MAAM,uCAAuC,SAAS,CAAC,CAAC,SAAS;EACjE,OAAO,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,wCAAwC;CAC1G,CAAC,CAAC,CAAC,SAAS,8DAOF;AACV,CAAC"}
@@ -0,0 +1,21 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-guests.ts
4
+ const PlausibleAnalyticsListGuestsInput = zod.z.object({ site_id: zod.z.string().describe("Domain of the site to list guests for (e.g., 'example.com')") }).describe("Request model for listing guest users who have access to a site's dashboard.");
5
+ const PlausibleAnalyticsListGuests_GuestSchema = zod.z.object({
6
+ role: zod.z.string().describe("Role assigned to the guest user"),
7
+ email: zod.z.string().describe("Email address of the guest user"),
8
+ status: zod.z.string().describe("Current status of the guest user")
9
+ }).describe("Represents a single guest user with access to a site's dashboard.");
10
+ const PlausibleAnalyticsListGuestsOutput = zod.z.object({ guests: zod.z.array(PlausibleAnalyticsListGuests_GuestSchema).describe("List of guest users who have access to the site's dashboard") }).describe("Response containing the list of guest users.");
11
+ const plausibleAnalyticsListGuests = require_action.action("PLAUSIBLE_ANALYTICS_LIST_GUESTS", {
12
+ slug: "plausible_analytics-list-guests",
13
+ name: "List Site Guests",
14
+ description: "Tool to list all guest users who have access to a site's dashboard in Plausible Analytics. Use when you need to see which guests have been granted access to view a specific site's analytics. This is an Enterprise feature.",
15
+ input: PlausibleAnalyticsListGuestsInput,
16
+ output: PlausibleAnalyticsListGuestsOutput
17
+ });
18
+ //#endregion
19
+ exports.plausibleAnalyticsListGuests = plausibleAnalyticsListGuests;
20
+
21
+ //# sourceMappingURL=list-guests.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-guests.cjs","names":["z","action"],"sources":["../../src/actions/list-guests.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlausibleAnalyticsListGuestsInput: z.ZodTypeAny = z.object({\n site_id: z.string().describe(\"Domain of the site to list guests for (e.g., 'example.com')\"),\n}).describe(\"Request model for listing guest users who have access to a site's dashboard.\");\nconst PlausibleAnalyticsListGuests_GuestSchema: z.ZodTypeAny = z.object({\n role: z.string().describe(\"Role assigned to the guest user\"),\n email: z.string().describe(\"Email address of the guest user\"),\n status: z.string().describe(\"Current status of the guest user\"),\n}).describe(\"Represents a single guest user with access to a site's dashboard.\");\nexport const PlausibleAnalyticsListGuestsOutput: z.ZodTypeAny = z.object({\n guests: z.array(PlausibleAnalyticsListGuests_GuestSchema).describe(\"List of guest users who have access to the site's dashboard\"),\n}).describe(\"Response containing the list of guest users.\");\n\nexport const plausibleAnalyticsListGuests = action(\"PLAUSIBLE_ANALYTICS_LIST_GUESTS\", {\n slug: \"plausible_analytics-list-guests\",\n name: \"List Site Guests\",\n description: \"Tool to list all guest users who have access to a site's dashboard in Plausible Analytics. Use when you need to see which guests have been granted access to view a specific site's analytics. This is an Enterprise feature.\",\n input: PlausibleAnalyticsListGuestsInput,\n output: PlausibleAnalyticsListGuestsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,EAC5F,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAC1F,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;AAChE,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,6DAA6D,EAClI,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-guests.d.ts
4
+ declare const PlausibleAnalyticsListGuestsInput: z.ZodTypeAny;
5
+ declare const PlausibleAnalyticsListGuestsOutput: z.ZodTypeAny;
6
+ declare const plausibleAnalyticsListGuests: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plausibleAnalyticsListGuests };
9
+ //# sourceMappingURL=list-guests.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-guests.d.cts","names":[],"sources":["../../src/actions/list-guests.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEyC;AAAA,cAM9E,kCAAA,EAAoC,CAAA,CAAE,UAEQ;AAAA,cAE9C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-guests.d.ts
4
+ declare const PlausibleAnalyticsListGuestsInput: z.ZodTypeAny;
5
+ declare const PlausibleAnalyticsListGuestsOutput: z.ZodTypeAny;
6
+ declare const plausibleAnalyticsListGuests: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { plausibleAnalyticsListGuests };
9
+ //# sourceMappingURL=list-guests.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-guests.d.mts","names":[],"sources":["../../src/actions/list-guests.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEyC;AAAA,cAM9E,kCAAA,EAAoC,CAAA,CAAE,UAEQ;AAAA,cAE9C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}