@keystrokehq/plausible_analytics 0.1.5 → 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.
Files changed (117) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/check-health.cjs +1 -0
  4. package/dist/actions/check-health.cjs.map +1 -1
  5. package/dist/actions/check-health.d.cts +3 -15
  6. package/dist/actions/check-health.d.cts.map +1 -1
  7. package/dist/actions/check-health.d.mts +3 -15
  8. package/dist/actions/check-health.d.mts.map +1 -1
  9. package/dist/actions/check-health.mjs +1 -0
  10. package/dist/actions/check-health.mjs.map +1 -1
  11. package/dist/actions/get-breakdown-stats.cjs +1 -0
  12. package/dist/actions/get-breakdown-stats.cjs.map +1 -1
  13. package/dist/actions/get-breakdown-stats.d.cts +3 -24
  14. package/dist/actions/get-breakdown-stats.d.cts.map +1 -1
  15. package/dist/actions/get-breakdown-stats.d.mts +3 -24
  16. package/dist/actions/get-breakdown-stats.d.mts.map +1 -1
  17. package/dist/actions/get-breakdown-stats.mjs +1 -0
  18. package/dist/actions/get-breakdown-stats.mjs.map +1 -1
  19. package/dist/actions/get-plugin-capabilities.cjs +1 -0
  20. package/dist/actions/get-plugin-capabilities.cjs.map +1 -1
  21. package/dist/actions/get-plugin-capabilities.d.cts +3 -15
  22. package/dist/actions/get-plugin-capabilities.d.cts.map +1 -1
  23. package/dist/actions/get-plugin-capabilities.d.mts +3 -15
  24. package/dist/actions/get-plugin-capabilities.d.mts.map +1 -1
  25. package/dist/actions/get-plugin-capabilities.mjs +1 -0
  26. package/dist/actions/get-plugin-capabilities.mjs.map +1 -1
  27. package/dist/actions/get-realtime-visitors.cjs +1 -0
  28. package/dist/actions/get-realtime-visitors.cjs.map +1 -1
  29. package/dist/actions/get-realtime-visitors.d.cts +3 -17
  30. package/dist/actions/get-realtime-visitors.d.cts.map +1 -1
  31. package/dist/actions/get-realtime-visitors.d.mts +3 -17
  32. package/dist/actions/get-realtime-visitors.d.mts.map +1 -1
  33. package/dist/actions/get-realtime-visitors.mjs +1 -0
  34. package/dist/actions/get-realtime-visitors.mjs.map +1 -1
  35. package/dist/actions/get-site.cjs +1 -0
  36. package/dist/actions/get-site.cjs.map +1 -1
  37. package/dist/actions/get-site.d.cts +3 -17
  38. package/dist/actions/get-site.d.cts.map +1 -1
  39. package/dist/actions/get-site.d.mts +3 -17
  40. package/dist/actions/get-site.d.mts.map +1 -1
  41. package/dist/actions/get-site.mjs +1 -0
  42. package/dist/actions/get-site.mjs.map +1 -1
  43. package/dist/actions/get-timeseries-stats.cjs +1 -0
  44. package/dist/actions/get-timeseries-stats.cjs.map +1 -1
  45. package/dist/actions/get-timeseries-stats.d.cts +3 -22
  46. package/dist/actions/get-timeseries-stats.d.cts.map +1 -1
  47. package/dist/actions/get-timeseries-stats.d.mts +3 -22
  48. package/dist/actions/get-timeseries-stats.d.mts.map +1 -1
  49. package/dist/actions/get-timeseries-stats.mjs +1 -0
  50. package/dist/actions/get-timeseries-stats.mjs.map +1 -1
  51. package/dist/actions/list-custom-props.cjs +1 -0
  52. package/dist/actions/list-custom-props.cjs.map +1 -1
  53. package/dist/actions/list-custom-props.d.cts +3 -17
  54. package/dist/actions/list-custom-props.d.cts.map +1 -1
  55. package/dist/actions/list-custom-props.d.mts +3 -17
  56. package/dist/actions/list-custom-props.d.mts.map +1 -1
  57. package/dist/actions/list-custom-props.mjs +1 -0
  58. package/dist/actions/list-custom-props.mjs.map +1 -1
  59. package/dist/actions/list-goals.cjs +1 -0
  60. package/dist/actions/list-goals.cjs.map +1 -1
  61. package/dist/actions/list-goals.d.cts +3 -20
  62. package/dist/actions/list-goals.d.cts.map +1 -1
  63. package/dist/actions/list-goals.d.mts +3 -20
  64. package/dist/actions/list-goals.d.mts.map +1 -1
  65. package/dist/actions/list-goals.mjs +1 -0
  66. package/dist/actions/list-goals.mjs.map +1 -1
  67. package/dist/actions/list-guests.cjs +1 -0
  68. package/dist/actions/list-guests.cjs.map +1 -1
  69. package/dist/actions/list-guests.d.cts +3 -17
  70. package/dist/actions/list-guests.d.cts.map +1 -1
  71. package/dist/actions/list-guests.d.mts +3 -17
  72. package/dist/actions/list-guests.d.mts.map +1 -1
  73. package/dist/actions/list-guests.mjs +1 -0
  74. package/dist/actions/list-guests.mjs.map +1 -1
  75. package/dist/actions/list-sites.cjs +1 -0
  76. package/dist/actions/list-sites.cjs.map +1 -1
  77. package/dist/actions/list-sites.d.cts +3 -20
  78. package/dist/actions/list-sites.d.cts.map +1 -1
  79. package/dist/actions/list-sites.d.mts +3 -20
  80. package/dist/actions/list-sites.d.mts.map +1 -1
  81. package/dist/actions/list-sites.mjs +1 -0
  82. package/dist/actions/list-sites.mjs.map +1 -1
  83. package/dist/actions/list-teams.cjs +1 -0
  84. package/dist/actions/list-teams.cjs.map +1 -1
  85. package/dist/actions/list-teams.d.cts +3 -19
  86. package/dist/actions/list-teams.d.cts.map +1 -1
  87. package/dist/actions/list-teams.d.mts +3 -19
  88. package/dist/actions/list-teams.d.mts.map +1 -1
  89. package/dist/actions/list-teams.mjs +1 -0
  90. package/dist/actions/list-teams.mjs.map +1 -1
  91. package/dist/actions/query-stats.cjs +1 -0
  92. package/dist/actions/query-stats.cjs.map +1 -1
  93. package/dist/actions/query-stats.d.cts +3 -21
  94. package/dist/actions/query-stats.d.cts.map +1 -1
  95. package/dist/actions/query-stats.d.mts +3 -21
  96. package/dist/actions/query-stats.d.mts.map +1 -1
  97. package/dist/actions/query-stats.mjs +1 -0
  98. package/dist/actions/query-stats.mjs.map +1 -1
  99. package/dist/actions/record-event.cjs +1 -0
  100. package/dist/actions/record-event.cjs.map +1 -1
  101. package/dist/actions/record-event.d.cts +3 -28
  102. package/dist/actions/record-event.d.cts.map +1 -1
  103. package/dist/actions/record-event.d.mts +3 -28
  104. package/dist/actions/record-event.d.mts.map +1 -1
  105. package/dist/actions/record-event.mjs +1 -0
  106. package/dist/actions/record-event.mjs.map +1 -1
  107. package/dist/app.cjs +5 -4
  108. package/dist/app.cjs.map +1 -1
  109. package/dist/app.d.cts +4 -6
  110. package/dist/app.d.cts.map +1 -1
  111. package/dist/app.d.mts +4 -6
  112. package/dist/app.d.mts.map +1 -1
  113. package/dist/app.mjs +0 -1
  114. package/dist/app.mjs.map +1 -1
  115. package/dist/index.d.cts +1 -1
  116. package/dist/index.d.mts +1 -1
  117. package/package.json +2 -2
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const plausibleAnalyticsRecordEvent = action("PLAUSIBLE_ANALYTICS_RECORD_EVENT", {
@@ -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":";;AAuBA,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvBgD,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,yDAUH;CACP,QAViD,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,yCAOhB;AACV,CAAC"}
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,13 +1,14 @@
1
1
  let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
2
  let zod = require("zod");
3
3
  //#region src/app.ts
4
+ const credential = {
5
+ full: zod.z.string(),
6
+ generic_api_key: zod.z.string()
7
+ };
4
8
  const plausibleAnalytics = (0, _keystrokehq_keystroke_app.defineApp)({
5
9
  slug: "plausible_analytics",
6
10
  auth: "keystroke",
7
- credential: {
8
- full: zod.z.string(),
9
- generic_api_key: zod.z.string()
10
- }
11
+ credential
11
12
  });
12
13
  //#endregion
13
14
  exports.plausibleAnalytics = plausibleAnalytics;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const plausibleAnalytics = defineApp({\n slug: \"plausible_analytics\",\n auth: \"keystroke\",\n credential: {\n full: z.string(),\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,sBAAA,GAAA,2BAAA,UAAA,CAA+B;CAC1C,MAAM;CACN,MAAM;CACN,YAAY;EACV,MAAMA,IAAAA,EAAE,OAAO;EACf,iBAAiBA,IAAAA,EAAE,OAAO;CAC5B;AACF,CAAC"}
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,14 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const plausibleAnalytics: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"plausible_analytics", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  full: z.ZodString;
10
7
  generic_api_key: z.ZodString;
11
- }, z.core.$strip>>>;
8
+ };
9
+ declare const plausibleAnalytics: KeystrokeApp<"plausible_analytics", typeof credential>;
12
10
  //#endregion
13
11
  export { plausibleAnalytics };
14
12
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,kBAAA,6BAAkB,GAAA,+BAAA,UAAA,wBAAA,CAAA,CAAA,SAAA"}
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,14 +1,12 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
1
2
  import { z } from "zod";
2
3
 
3
4
  //#region src/app.d.ts
4
- declare const plausibleAnalytics: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"plausible_analytics", z.ZodObject<{
5
- connectionId: z.ZodString;
6
- entityId: z.ZodString;
7
- instanceId: z.ZodString;
8
- }, z.core.$strip>, z.ZodObject<{
5
+ declare const credential: {
9
6
  full: z.ZodString;
10
7
  generic_api_key: z.ZodString;
11
- }, z.core.$strip>>>;
8
+ };
9
+ declare const plausibleAnalytics: KeystrokeApp<"plausible_analytics", typeof credential>;
12
10
  //#endregion
13
11
  export { plausibleAnalytics };
14
12
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,kBAAA,6BAAkB,GAAA,+BAAA,UAAA,wBAAA,CAAA,CAAA,SAAA"}
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,6 +1,5 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
2
  import { z } from "zod";
3
- //#region src/app.ts
4
3
  const plausibleAnalytics = defineApp({
5
4
  slug: "plausible_analytics",
6
5
  auth: "keystroke",
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\";\nimport { z } from \"zod\";\n\nexport const plausibleAnalytics = defineApp({\n slug: \"plausible_analytics\",\n auth: \"keystroke\",\n credential: {\n full: z.string(),\n generic_api_key: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,qBAAqB,UAAU;CAC1C,MAAM;CACN,MAAM;CACN,YAAY;EACV,MAAM,EAAE,OAAO;EACf,iBAAiB,EAAE,OAAO;CAC5B;AACF,CAAC"}
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.5",
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.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {