@keystrokehq/mixpanel 0.1.0 → 0.1.2

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 (310) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/add-unique-to-profile-list-property.cjs.map +1 -1
  5. package/dist/actions/add-unique-to-profile-list-property.d.cts +30 -3
  6. package/dist/actions/add-unique-to-profile-list-property.d.cts.map +1 -1
  7. package/dist/actions/add-unique-to-profile-list-property.d.mts +30 -3
  8. package/dist/actions/add-unique-to-profile-list-property.d.mts.map +1 -1
  9. package/dist/actions/add-unique-to-profile-list-property.mjs.map +1 -1
  10. package/dist/actions/aggregate-events.cjs +1 -1
  11. package/dist/actions/aggregate-events.cjs.map +1 -1
  12. package/dist/actions/aggregate-events.d.cts +44 -3
  13. package/dist/actions/aggregate-events.d.cts.map +1 -1
  14. package/dist/actions/aggregate-events.d.mts +44 -3
  15. package/dist/actions/aggregate-events.d.mts.map +1 -1
  16. package/dist/actions/aggregate-events.mjs +1 -1
  17. package/dist/actions/aggregate-events.mjs.map +1 -1
  18. package/dist/actions/aggregated-event-property-values.cjs +1 -1
  19. package/dist/actions/aggregated-event-property-values.cjs.map +1 -1
  20. package/dist/actions/aggregated-event-property-values.d.cts +48 -3
  21. package/dist/actions/aggregated-event-property-values.d.cts.map +1 -1
  22. package/dist/actions/aggregated-event-property-values.d.mts +48 -3
  23. package/dist/actions/aggregated-event-property-values.d.mts.map +1 -1
  24. package/dist/actions/aggregated-event-property-values.mjs +1 -1
  25. package/dist/actions/aggregated-event-property-values.mjs.map +1 -1
  26. package/dist/actions/cohorts-list.cjs +6 -6
  27. package/dist/actions/cohorts-list.cjs.map +1 -1
  28. package/dist/actions/cohorts-list.d.cts +19 -3
  29. package/dist/actions/cohorts-list.d.cts.map +1 -1
  30. package/dist/actions/cohorts-list.d.mts +19 -3
  31. package/dist/actions/cohorts-list.d.mts.map +1 -1
  32. package/dist/actions/cohorts-list.mjs +6 -6
  33. package/dist/actions/cohorts-list.mjs.map +1 -1
  34. package/dist/actions/create-annotation-tag.cjs +3 -3
  35. package/dist/actions/create-annotation-tag.cjs.map +1 -1
  36. package/dist/actions/create-annotation-tag.d.cts +14 -3
  37. package/dist/actions/create-annotation-tag.d.cts.map +1 -1
  38. package/dist/actions/create-annotation-tag.d.mts +14 -3
  39. package/dist/actions/create-annotation-tag.d.mts.map +1 -1
  40. package/dist/actions/create-annotation-tag.mjs +3 -3
  41. package/dist/actions/create-annotation-tag.mjs.map +1 -1
  42. package/dist/actions/create-identity.cjs.map +1 -1
  43. package/dist/actions/create-identity.d.cts +18 -3
  44. package/dist/actions/create-identity.d.cts.map +1 -1
  45. package/dist/actions/create-identity.d.mts +18 -3
  46. package/dist/actions/create-identity.d.mts.map +1 -1
  47. package/dist/actions/create-identity.mjs.map +1 -1
  48. package/dist/actions/create-service-account.cjs +6 -6
  49. package/dist/actions/create-service-account.cjs.map +1 -1
  50. package/dist/actions/create-service-account.d.cts +43 -3
  51. package/dist/actions/create-service-account.d.cts.map +1 -1
  52. package/dist/actions/create-service-account.d.mts +43 -3
  53. package/dist/actions/create-service-account.d.mts.map +1 -1
  54. package/dist/actions/create-service-account.mjs +6 -6
  55. package/dist/actions/create-service-account.mjs.map +1 -1
  56. package/dist/actions/delete-group.cjs.map +1 -1
  57. package/dist/actions/delete-group.d.cts +16 -3
  58. package/dist/actions/delete-group.d.cts.map +1 -1
  59. package/dist/actions/delete-group.d.mts +16 -3
  60. package/dist/actions/delete-group.d.mts.map +1 -1
  61. package/dist/actions/delete-group.mjs.map +1 -1
  62. package/dist/actions/delete-profile-batch.cjs.map +1 -1
  63. package/dist/actions/delete-profile-batch.d.cts +20 -3
  64. package/dist/actions/delete-profile-batch.d.cts.map +1 -1
  65. package/dist/actions/delete-profile-batch.d.mts +20 -3
  66. package/dist/actions/delete-profile-batch.d.mts.map +1 -1
  67. package/dist/actions/delete-profile-batch.mjs.map +1 -1
  68. package/dist/actions/delete-profile-property.cjs.map +1 -1
  69. package/dist/actions/delete-profile-property.d.cts +22 -3
  70. package/dist/actions/delete-profile-property.d.cts.map +1 -1
  71. package/dist/actions/delete-profile-property.d.mts +22 -3
  72. package/dist/actions/delete-profile-property.d.mts.map +1 -1
  73. package/dist/actions/delete-profile-property.mjs.map +1 -1
  74. package/dist/actions/delete-profile.cjs.map +1 -1
  75. package/dist/actions/delete-profile.d.cts +17 -3
  76. package/dist/actions/delete-profile.d.cts.map +1 -1
  77. package/dist/actions/delete-profile.d.mts +17 -3
  78. package/dist/actions/delete-profile.d.mts.map +1 -1
  79. package/dist/actions/delete-profile.mjs.map +1 -1
  80. package/dist/actions/get-all-projects.cjs.map +1 -1
  81. package/dist/actions/get-all-projects.d.cts +5 -3
  82. package/dist/actions/get-all-projects.d.cts.map +1 -1
  83. package/dist/actions/get-all-projects.d.mts +5 -3
  84. package/dist/actions/get-all-projects.d.mts.map +1 -1
  85. package/dist/actions/get-all-projects.mjs.map +1 -1
  86. package/dist/actions/get-annotation-tags-alt1.cjs +4 -4
  87. package/dist/actions/get-annotation-tags-alt1.cjs.map +1 -1
  88. package/dist/actions/get-annotation-tags-alt1.d.cts +14 -3
  89. package/dist/actions/get-annotation-tags-alt1.d.cts.map +1 -1
  90. package/dist/actions/get-annotation-tags-alt1.d.mts +14 -3
  91. package/dist/actions/get-annotation-tags-alt1.d.mts.map +1 -1
  92. package/dist/actions/get-annotation-tags-alt1.mjs +4 -4
  93. package/dist/actions/get-annotation-tags-alt1.mjs.map +1 -1
  94. package/dist/actions/group-batch-update.cjs +2 -2
  95. package/dist/actions/group-batch-update.cjs.map +1 -1
  96. package/dist/actions/group-batch-update.d.cts +37 -3
  97. package/dist/actions/group-batch-update.d.cts.map +1 -1
  98. package/dist/actions/group-batch-update.d.mts +37 -3
  99. package/dist/actions/group-batch-update.d.mts.map +1 -1
  100. package/dist/actions/group-batch-update.mjs +2 -2
  101. package/dist/actions/group-batch-update.mjs.map +1 -1
  102. package/dist/actions/group-delete-property.cjs +1 -1
  103. package/dist/actions/group-delete-property.cjs.map +1 -1
  104. package/dist/actions/group-delete-property.d.cts +17 -3
  105. package/dist/actions/group-delete-property.d.cts.map +1 -1
  106. package/dist/actions/group-delete-property.d.mts +17 -3
  107. package/dist/actions/group-delete-property.d.mts.map +1 -1
  108. package/dist/actions/group-delete-property.mjs +1 -1
  109. package/dist/actions/group-delete-property.mjs.map +1 -1
  110. package/dist/actions/identity-create-alias.cjs +1 -1
  111. package/dist/actions/identity-create-alias.cjs.map +1 -1
  112. package/dist/actions/identity-create-alias.d.cts +13 -3
  113. package/dist/actions/identity-create-alias.d.cts.map +1 -1
  114. package/dist/actions/identity-create-alias.d.mts +13 -3
  115. package/dist/actions/identity-create-alias.d.mts.map +1 -1
  116. package/dist/actions/identity-create-alias.mjs +1 -1
  117. package/dist/actions/identity-create-alias.mjs.map +1 -1
  118. package/dist/actions/jql-query.cjs.map +1 -1
  119. package/dist/actions/jql-query.d.cts +15 -3
  120. package/dist/actions/jql-query.d.cts.map +1 -1
  121. package/dist/actions/jql-query.d.mts +15 -3
  122. package/dist/actions/jql-query.d.mts.map +1 -1
  123. package/dist/actions/jql-query.mjs.map +1 -1
  124. package/dist/actions/list-funnels.cjs +2 -2
  125. package/dist/actions/list-funnels.cjs.map +1 -1
  126. package/dist/actions/list-funnels.d.cts +14 -3
  127. package/dist/actions/list-funnels.d.cts.map +1 -1
  128. package/dist/actions/list-funnels.d.mts +14 -3
  129. package/dist/actions/list-funnels.d.mts.map +1 -1
  130. package/dist/actions/list-funnels.mjs +2 -2
  131. package/dist/actions/list-funnels.mjs.map +1 -1
  132. package/dist/actions/list-service-accounts.cjs +3 -3
  133. package/dist/actions/list-service-accounts.cjs.map +1 -1
  134. package/dist/actions/list-service-accounts.d.cts +18 -3
  135. package/dist/actions/list-service-accounts.d.cts.map +1 -1
  136. package/dist/actions/list-service-accounts.d.mts +18 -3
  137. package/dist/actions/list-service-accounts.d.mts.map +1 -1
  138. package/dist/actions/list-service-accounts.mjs +3 -3
  139. package/dist/actions/list-service-accounts.mjs.map +1 -1
  140. package/dist/actions/profile-append-to-list-property.cjs.map +1 -1
  141. package/dist/actions/profile-append-to-list-property.d.cts +24 -3
  142. package/dist/actions/profile-append-to-list-property.d.cts.map +1 -1
  143. package/dist/actions/profile-append-to-list-property.d.mts +24 -3
  144. package/dist/actions/profile-append-to-list-property.d.mts.map +1 -1
  145. package/dist/actions/profile-append-to-list-property.mjs.map +1 -1
  146. package/dist/actions/profile-batch-update.cjs +2 -2
  147. package/dist/actions/profile-batch-update.cjs.map +1 -1
  148. package/dist/actions/profile-batch-update.d.cts +46 -3
  149. package/dist/actions/profile-batch-update.d.cts.map +1 -1
  150. package/dist/actions/profile-batch-update.d.mts +46 -3
  151. package/dist/actions/profile-batch-update.d.mts.map +1 -1
  152. package/dist/actions/profile-batch-update.mjs +2 -2
  153. package/dist/actions/profile-batch-update.mjs.map +1 -1
  154. package/dist/actions/profile-event-activity.cjs +2 -2
  155. package/dist/actions/profile-event-activity.cjs.map +1 -1
  156. package/dist/actions/profile-event-activity.d.cts +59 -3
  157. package/dist/actions/profile-event-activity.d.cts.map +1 -1
  158. package/dist/actions/profile-event-activity.d.mts +59 -3
  159. package/dist/actions/profile-event-activity.d.mts.map +1 -1
  160. package/dist/actions/profile-event-activity.mjs +2 -2
  161. package/dist/actions/profile-event-activity.mjs.map +1 -1
  162. package/dist/actions/profile-numerical-add.cjs.map +1 -1
  163. package/dist/actions/profile-numerical-add.d.cts +22 -3
  164. package/dist/actions/profile-numerical-add.d.cts.map +1 -1
  165. package/dist/actions/profile-numerical-add.d.mts +22 -3
  166. package/dist/actions/profile-numerical-add.d.mts.map +1 -1
  167. package/dist/actions/profile-numerical-add.mjs.map +1 -1
  168. package/dist/actions/profile-remove-from-list-property.cjs.map +1 -1
  169. package/dist/actions/profile-remove-from-list-property.d.cts +24 -3
  170. package/dist/actions/profile-remove-from-list-property.d.cts.map +1 -1
  171. package/dist/actions/profile-remove-from-list-property.d.mts +24 -3
  172. package/dist/actions/profile-remove-from-list-property.d.mts.map +1 -1
  173. package/dist/actions/profile-remove-from-list-property.mjs.map +1 -1
  174. package/dist/actions/profile-set.cjs.map +1 -1
  175. package/dist/actions/profile-set.d.cts +20 -3
  176. package/dist/actions/profile-set.d.cts.map +1 -1
  177. package/dist/actions/profile-set.d.mts +20 -3
  178. package/dist/actions/profile-set.d.mts.map +1 -1
  179. package/dist/actions/profile-set.mjs.map +1 -1
  180. package/dist/actions/query-frequency-report.cjs.map +1 -1
  181. package/dist/actions/query-frequency-report.d.cts +34 -3
  182. package/dist/actions/query-frequency-report.d.cts.map +1 -1
  183. package/dist/actions/query-frequency-report.d.mts +34 -3
  184. package/dist/actions/query-frequency-report.d.mts.map +1 -1
  185. package/dist/actions/query-frequency-report.mjs.map +1 -1
  186. package/dist/actions/query-funnel.cjs.map +1 -1
  187. package/dist/actions/query-funnel.d.cts +43 -3
  188. package/dist/actions/query-funnel.d.cts.map +1 -1
  189. package/dist/actions/query-funnel.d.mts +43 -3
  190. package/dist/actions/query-funnel.d.mts.map +1 -1
  191. package/dist/actions/query-funnel.mjs.map +1 -1
  192. package/dist/actions/query-insight.cjs +3 -3
  193. package/dist/actions/query-insight.cjs.map +1 -1
  194. package/dist/actions/query-insight.d.cts +19 -3
  195. package/dist/actions/query-insight.d.cts.map +1 -1
  196. package/dist/actions/query-insight.d.mts +19 -3
  197. package/dist/actions/query-insight.d.mts.map +1 -1
  198. package/dist/actions/query-insight.mjs +3 -3
  199. package/dist/actions/query-insight.mjs.map +1 -1
  200. package/dist/actions/query-numeric-average.cjs +1 -1
  201. package/dist/actions/query-numeric-average.cjs.map +1 -1
  202. package/dist/actions/query-numeric-average.d.cts +27 -3
  203. package/dist/actions/query-numeric-average.d.cts.map +1 -1
  204. package/dist/actions/query-numeric-average.d.mts +27 -3
  205. package/dist/actions/query-numeric-average.d.mts.map +1 -1
  206. package/dist/actions/query-numeric-average.mjs +1 -1
  207. package/dist/actions/query-numeric-average.mjs.map +1 -1
  208. package/dist/actions/query-numeric-sum.cjs +2 -2
  209. package/dist/actions/query-numeric-sum.cjs.map +1 -1
  210. package/dist/actions/query-numeric-sum.d.cts +28 -3
  211. package/dist/actions/query-numeric-sum.d.cts.map +1 -1
  212. package/dist/actions/query-numeric-sum.d.mts +28 -3
  213. package/dist/actions/query-numeric-sum.d.mts.map +1 -1
  214. package/dist/actions/query-numeric-sum.mjs +2 -2
  215. package/dist/actions/query-numeric-sum.mjs.map +1 -1
  216. package/dist/actions/query-profiles.cjs +6 -6
  217. package/dist/actions/query-profiles.cjs.map +1 -1
  218. package/dist/actions/query-profiles.d.cts +41 -3
  219. package/dist/actions/query-profiles.d.cts.map +1 -1
  220. package/dist/actions/query-profiles.d.mts +41 -3
  221. package/dist/actions/query-profiles.d.mts.map +1 -1
  222. package/dist/actions/query-profiles.mjs +6 -6
  223. package/dist/actions/query-profiles.mjs.map +1 -1
  224. package/dist/actions/query-retention-report.cjs.map +1 -1
  225. package/dist/actions/query-retention-report.d.cts +42 -3
  226. package/dist/actions/query-retention-report.d.cts.map +1 -1
  227. package/dist/actions/query-retention-report.d.mts +42 -3
  228. package/dist/actions/query-retention-report.d.mts.map +1 -1
  229. package/dist/actions/query-retention-report.mjs.map +1 -1
  230. package/dist/actions/query-segmentation.cjs +1 -1
  231. package/dist/actions/query-segmentation.cjs.map +1 -1
  232. package/dist/actions/query-segmentation.d.cts +40 -3
  233. package/dist/actions/query-segmentation.d.cts.map +1 -1
  234. package/dist/actions/query-segmentation.d.mts +40 -3
  235. package/dist/actions/query-segmentation.d.mts.map +1 -1
  236. package/dist/actions/query-segmentation.mjs +1 -1
  237. package/dist/actions/query-segmentation.mjs.map +1 -1
  238. package/dist/actions/query-top-events.cjs +3 -3
  239. package/dist/actions/query-top-events.cjs.map +1 -1
  240. package/dist/actions/query-top-events.d.cts +28 -3
  241. package/dist/actions/query-top-events.d.cts.map +1 -1
  242. package/dist/actions/query-top-events.d.mts +28 -3
  243. package/dist/actions/query-top-events.d.mts.map +1 -1
  244. package/dist/actions/query-top-events.mjs +3 -3
  245. package/dist/actions/query-top-events.mjs.map +1 -1
  246. package/dist/actions/remove-from-group-list-property.cjs.map +1 -1
  247. package/dist/actions/remove-from-group-list-property.d.cts +21 -3
  248. package/dist/actions/remove-from-group-list-property.d.cts.map +1 -1
  249. package/dist/actions/remove-from-group-list-property.d.mts +21 -3
  250. package/dist/actions/remove-from-group-list-property.d.mts.map +1 -1
  251. package/dist/actions/remove-from-group-list-property.mjs.map +1 -1
  252. package/dist/actions/remove-from-list-property.cjs.map +1 -1
  253. package/dist/actions/remove-from-list-property.d.cts +20 -3
  254. package/dist/actions/remove-from-list-property.d.cts.map +1 -1
  255. package/dist/actions/remove-from-list-property.d.mts +20 -3
  256. package/dist/actions/remove-from-list-property.d.mts.map +1 -1
  257. package/dist/actions/remove-from-list-property.mjs.map +1 -1
  258. package/dist/actions/segmentation-numeric-query.cjs.map +1 -1
  259. package/dist/actions/segmentation-numeric-query.d.cts +37 -3
  260. package/dist/actions/segmentation-numeric-query.d.cts.map +1 -1
  261. package/dist/actions/segmentation-numeric-query.d.mts +37 -3
  262. package/dist/actions/segmentation-numeric-query.d.mts.map +1 -1
  263. package/dist/actions/segmentation-numeric-query.mjs.map +1 -1
  264. package/dist/actions/set-group-property-once.cjs.map +1 -1
  265. package/dist/actions/set-group-property-once.d.cts +17 -3
  266. package/dist/actions/set-group-property-once.d.cts.map +1 -1
  267. package/dist/actions/set-group-property-once.d.mts +17 -3
  268. package/dist/actions/set-group-property-once.d.mts.map +1 -1
  269. package/dist/actions/set-group-property-once.mjs.map +1 -1
  270. package/dist/actions/set-profile-property-once.cjs.map +1 -1
  271. package/dist/actions/set-profile-property-once.d.cts +20 -3
  272. package/dist/actions/set-profile-property-once.d.cts.map +1 -1
  273. package/dist/actions/set-profile-property-once.d.mts +20 -3
  274. package/dist/actions/set-profile-property-once.d.mts.map +1 -1
  275. package/dist/actions/set-profile-property-once.mjs.map +1 -1
  276. package/dist/actions/top-event-properties.cjs.map +1 -1
  277. package/dist/actions/top-event-properties.d.cts +13 -3
  278. package/dist/actions/top-event-properties.d.cts.map +1 -1
  279. package/dist/actions/top-event-properties.d.mts +13 -3
  280. package/dist/actions/top-event-properties.d.mts.map +1 -1
  281. package/dist/actions/top-event-properties.mjs.map +1 -1
  282. package/dist/actions/top-event-property-values.cjs.map +1 -1
  283. package/dist/actions/top-event-property-values.d.cts +17 -3
  284. package/dist/actions/top-event-property-values.d.cts.map +1 -1
  285. package/dist/actions/top-event-property-values.d.mts +17 -3
  286. package/dist/actions/top-event-property-values.d.mts.map +1 -1
  287. package/dist/actions/top-event-property-values.mjs.map +1 -1
  288. package/dist/actions/top-events.cjs.map +1 -1
  289. package/dist/actions/top-events.d.cts +19 -3
  290. package/dist/actions/top-events.d.cts.map +1 -1
  291. package/dist/actions/top-events.d.mts +19 -3
  292. package/dist/actions/top-events.d.mts.map +1 -1
  293. package/dist/actions/top-events.mjs.map +1 -1
  294. package/dist/actions/update-group-list-property.cjs.map +1 -1
  295. package/dist/actions/update-group-list-property.d.cts +26 -3
  296. package/dist/actions/update-group-list-property.d.cts.map +1 -1
  297. package/dist/actions/update-group-list-property.d.mts +26 -3
  298. package/dist/actions/update-group-list-property.d.mts.map +1 -1
  299. package/dist/actions/update-group-list-property.mjs.map +1 -1
  300. package/dist/catalog.cjs +18 -1
  301. package/dist/catalog.cjs.map +1 -1
  302. package/dist/catalog.d.cts +17 -0
  303. package/dist/catalog.d.mts +17 -0
  304. package/dist/catalog.mjs +18 -1
  305. package/dist/catalog.mjs.map +1 -1
  306. package/dist/execute.cjs +1 -1
  307. package/dist/execute.cjs.map +1 -1
  308. package/dist/execute.mjs +1 -1
  309. package/dist/execute.mjs.map +1 -1
  310. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"query-numeric-average.mjs","names":[],"sources":["../../src/actions/query-numeric-average.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericAverageInput: z.ZodTypeAny = z.object({\n on: z.string().describe(\"The numeric expression to average per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for averaging numeric expressions\");\nexport const MixpanelQueryNumericAverageOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status of the query\"),\n results: z.object({}).describe(\"Map of dates to averaged values (can be null if no data)\"),\n}).describe(\"Response model for numeric average query data\");\n\nexport const mixpanelQueryNumericAverage = action(\"MIXPANEL_QUERY_NUMERIC_AVERAGE\", {\n slug: \"mixpanel-query-numeric-average\",\n name: \"Query Numeric Average Report\",\n description: \"Averages an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Example response: { \\\"status\\\": \\\"ok\\\", \\\"results\\\": { \\\"2024-01-01\\\": 25.5, \\\"2024-01-02\\\": 32.75, \\\"2024-01-03\\\": 28.25 } }\",\n input: MixpanelQueryNumericAverageInput,\n output: MixpanelQueryNumericAverageOutput,\n});\n"],"mappings":";;AAmBA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB4D,EAAE,OAAO;EACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EACvG,MAAM,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EACjG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAV6D,EAAE,OAAO;EACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;CAC3F,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"query-numeric-average.mjs","names":[],"sources":["../../src/actions/query-numeric-average.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericAverageInput = z.object({\n on: z.string().describe(\"The numeric expression to average per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for averaging numeric expressions\");\nexport const MixpanelQueryNumericAverageOutput = z.object({\n status: z.string().describe(\"Status of the query\").nullable(),\n results: z.object({}).describe(\"Map of dates to averaged values (can be null if no data)\"),\n}).describe(\"Response model for numeric average query data\");\n\nexport const mixpanelQueryNumericAverage = action(\"MIXPANEL_QUERY_NUMERIC_AVERAGE\", {\n slug: \"mixpanel-query-numeric-average\",\n name: \"Query Numeric Average Report\",\n description: \"Averages an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Example response: { \\\"status\\\": \\\"ok\\\", \\\"results\\\": { \\\"2024-01-01\\\": 25.5, \\\"2024-01-02\\\": 32.75, \\\"2024-01-03\\\": 28.25 } }\",\n input: MixpanelQueryNumericAverageInput,\n output: MixpanelQueryNumericAverageOutput,\n});\n"],"mappings":";;AAmBA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EACvG,MAAM,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EACjG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAV+C,EAAE,OAAO;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0DAA0D;CAC3F,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
@@ -12,9 +12,9 @@ const MixpanelQueryNumericSumInput = zod.z.object({
12
12
  workspace_id: zod.z.number().int().describe("The id of the workspace if applicable").optional()
13
13
  }).describe("Request model for summing numeric expressions");
14
14
  const MixpanelQueryNumericSumOutput = zod.z.object({
15
- status: zod.z.string().describe("Indicates whether the request was successful (e.g., 'ok')."),
15
+ status: zod.z.string().describe("Indicates whether the request was successful (e.g., 'ok').").nullable(),
16
16
  results: zod.z.object({}).describe("Maps date strings to numeric sum values. Each key is a date in 'YYYY-MM-DD' format and each value is the summed expression result for that date."),
17
- computed_at: zod.z.string().describe("ISO 8601 timestamp showing when the computation occurred.")
17
+ computed_at: zod.z.string().describe("ISO 8601 timestamp showing when the computation occurred.").nullable()
18
18
  }).describe("Response model for numeric sum query data");
19
19
  const mixpanelQueryNumericSum = require_action.action("MIXPANEL_QUERY_NUMERIC_SUM", {
20
20
  slug: "mixpanel-query-numeric-sum",
@@ -1 +1 @@
1
- {"version":3,"file":"query-numeric-sum.cjs","names":["z","action"],"sources":["../../src/actions/query-numeric-sum.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericSumInput: z.ZodTypeAny = z.object({\n on: z.string().describe(\"The numeric expression to sum per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for summing numeric expressions\");\nexport const MixpanelQueryNumericSumOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Indicates whether the request was successful (e.g., 'ok').\"),\n results: z.object({}).describe(\"Maps date strings to numeric sum values. Each key is a date in 'YYYY-MM-DD' format and each value is the summed expression result for that date.\"),\n computed_at: z.string().describe(\"ISO 8601 timestamp showing when the computation occurred.\"),\n}).describe(\"Response model for numeric sum query data\");\n\nexport const mixpanelQueryNumericSum = action(\"MIXPANEL_QUERY_NUMERIC_SUM\", {\n slug: \"mixpanel-query-numeric-sum\",\n name: \"Query Numeric Sum Report\",\n description: \"Sums an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Example response: { \\\"status\\\": \\\"ok\\\", \\\"computed_at\\\": \\\"2024-01-20T12:00:00\\\", \\\"results\\\": { \\\"2024-01-01\\\": 150.5, \\\"2024-01-02\\\": 245.75, \\\"2024-01-03\\\": 198.25 } }\",\n input: MixpanelQueryNumericSumInput,\n output: MixpanelQueryNumericSumOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CACnG,MAAMA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACtH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CACxF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kJAAkJ;CACjL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AAC9F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"query-numeric-sum.cjs","names":["z","action"],"sources":["../../src/actions/query-numeric-sum.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericSumInput = z.object({\n on: z.string().describe(\"The numeric expression to sum per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for summing numeric expressions\");\nexport const MixpanelQueryNumericSumOutput = z.object({\n status: z.string().describe(\"Indicates whether the request was successful (e.g., 'ok').\").nullable(),\n results: z.object({}).describe(\"Maps date strings to numeric sum values. Each key is a date in 'YYYY-MM-DD' format and each value is the summed expression result for that date.\"),\n computed_at: z.string().describe(\"ISO 8601 timestamp showing when the computation occurred.\").nullable(),\n}).describe(\"Response model for numeric sum query data\");\n\nexport const mixpanelQueryNumericSum = action(\"MIXPANEL_QUERY_NUMERIC_SUM\", {\n slug: \"mixpanel-query-numeric-sum\",\n name: \"Query Numeric Sum Report\",\n description: \"Sums an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Example response: { \\\"status\\\": \\\"ok\\\", \\\"computed_at\\\": \\\"2024-01-20T12:00:00\\\", \\\"results\\\": { \\\"2024-01-01\\\": 150.5, \\\"2024-01-02\\\": 245.75, \\\"2024-01-03\\\": 198.25 } }\",\n input: MixpanelQueryNumericSumInput,\n output: MixpanelQueryNumericSumOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CACnG,MAAMA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACtH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kJAAkJ;CACjL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,34 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/query-numeric-sum.d.ts
4
- declare const MixpanelQueryNumericSumInput: z.ZodTypeAny;
5
- declare const MixpanelQueryNumericSumOutput: z.ZodTypeAny;
6
- declare const mixpanelQueryNumericSum: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MixpanelQueryNumericSumInput: z.ZodObject<{
5
+ on: z.ZodString;
6
+ unit: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ hour: "hour";
8
+ day: "day";
9
+ }>>>;
10
+ event: z.ZodString;
11
+ where: z.ZodOptional<z.ZodString>;
12
+ to_date: z.ZodString;
13
+ from_date: z.ZodString;
14
+ project_id: z.ZodNumber;
15
+ workspace_id: z.ZodOptional<z.ZodNumber>;
16
+ }, z.core.$strip>;
17
+ declare const MixpanelQueryNumericSumOutput: z.ZodObject<{
18
+ status: z.ZodNullable<z.ZodString>;
19
+ results: z.ZodObject<{}, z.core.$strip>;
20
+ computed_at: z.ZodNullable<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ declare const mixpanelQueryNumericSum: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ on: string;
24
+ event: string;
25
+ to_date: string;
26
+ from_date: string;
27
+ project_id: number;
28
+ unit?: "hour" | "day" | undefined;
29
+ where?: string | undefined;
30
+ workspace_id?: number | undefined;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
32
  //#endregion
8
33
  export { mixpanelQueryNumericSum };
9
34
  //# sourceMappingURL=query-numeric-sum.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-numeric-sum.d.cts","names":[],"sources":["../../src/actions/query-numeric-sum.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UASe;AAAA,cAC/C,6BAAA,EAA+B,CAAA,CAAE,UAIU;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"query-numeric-sum.d.cts","names":[],"sources":["../../src/actions/query-numeric-sum.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,gCAAuB,wBAAA"}
@@ -1,9 +1,34 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/query-numeric-sum.d.ts
4
- declare const MixpanelQueryNumericSumInput: z.ZodTypeAny;
5
- declare const MixpanelQueryNumericSumOutput: z.ZodTypeAny;
6
- declare const mixpanelQueryNumericSum: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MixpanelQueryNumericSumInput: z.ZodObject<{
5
+ on: z.ZodString;
6
+ unit: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ hour: "hour";
8
+ day: "day";
9
+ }>>>;
10
+ event: z.ZodString;
11
+ where: z.ZodOptional<z.ZodString>;
12
+ to_date: z.ZodString;
13
+ from_date: z.ZodString;
14
+ project_id: z.ZodNumber;
15
+ workspace_id: z.ZodOptional<z.ZodNumber>;
16
+ }, z.core.$strip>;
17
+ declare const MixpanelQueryNumericSumOutput: z.ZodObject<{
18
+ status: z.ZodNullable<z.ZodString>;
19
+ results: z.ZodObject<{}, z.core.$strip>;
20
+ computed_at: z.ZodNullable<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ declare const mixpanelQueryNumericSum: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ on: string;
24
+ event: string;
25
+ to_date: string;
26
+ from_date: string;
27
+ project_id: number;
28
+ unit?: "hour" | "day" | undefined;
29
+ where?: string | undefined;
30
+ workspace_id?: number | undefined;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
32
  //#endregion
8
33
  export { mixpanelQueryNumericSum };
9
34
  //# sourceMappingURL=query-numeric-sum.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-numeric-sum.d.mts","names":[],"sources":["../../src/actions/query-numeric-sum.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UASe;AAAA,cAC/C,6BAAA,EAA+B,CAAA,CAAE,UAIU;AAAA,cAE3C,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"query-numeric-sum.d.mts","names":[],"sources":["../../src/actions/query-numeric-sum.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAU5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAM7B,uBAAA,gCAAuB,wBAAA"}
@@ -15,9 +15,9 @@ const mixpanelQueryNumericSum = action("MIXPANEL_QUERY_NUMERIC_SUM", {
15
15
  workspace_id: z.number().int().describe("The id of the workspace if applicable").optional()
16
16
  }).describe("Request model for summing numeric expressions"),
17
17
  output: z.object({
18
- status: z.string().describe("Indicates whether the request was successful (e.g., 'ok')."),
18
+ status: z.string().describe("Indicates whether the request was successful (e.g., 'ok').").nullable(),
19
19
  results: z.object({}).describe("Maps date strings to numeric sum values. Each key is a date in 'YYYY-MM-DD' format and each value is the summed expression result for that date."),
20
- computed_at: z.string().describe("ISO 8601 timestamp showing when the computation occurred.")
20
+ computed_at: z.string().describe("ISO 8601 timestamp showing when the computation occurred.").nullable()
21
21
  }).describe("Response model for numeric sum query data")
22
22
  });
23
23
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"query-numeric-sum.mjs","names":[],"sources":["../../src/actions/query-numeric-sum.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericSumInput: z.ZodTypeAny = z.object({\n on: z.string().describe(\"The numeric expression to sum per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for summing numeric expressions\");\nexport const MixpanelQueryNumericSumOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Indicates whether the request was successful (e.g., 'ok').\"),\n results: z.object({}).describe(\"Maps date strings to numeric sum values. Each key is a date in 'YYYY-MM-DD' format and each value is the summed expression result for that date.\"),\n computed_at: z.string().describe(\"ISO 8601 timestamp showing when the computation occurred.\"),\n}).describe(\"Response model for numeric sum query data\");\n\nexport const mixpanelQueryNumericSum = action(\"MIXPANEL_QUERY_NUMERIC_SUM\", {\n slug: \"mixpanel-query-numeric-sum\",\n name: \"Query Numeric Sum Report\",\n description: \"Sums an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Example response: { \\\"status\\\": \\\"ok\\\", \\\"computed_at\\\": \\\"2024-01-20T12:00:00\\\", \\\"results\\\": { \\\"2024-01-01\\\": 150.5, \\\"2024-01-02\\\": 245.75, \\\"2024-01-03\\\": 198.25 } }\",\n input: MixpanelQueryNumericSumInput,\n output: MixpanelQueryNumericSumOutput,\n});\n"],"mappings":";;AAoBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;EACnG,MAAM,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EACjG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,+CAWH;CACP,QAXyD,EAAE,OAAO;EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EACxF,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kJAAkJ;EACjL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CAC9F,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"query-numeric-sum.mjs","names":[],"sources":["../../src/actions/query-numeric-sum.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericSumInput = z.object({\n on: z.string().describe(\"The numeric expression to sum per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for summing numeric expressions\");\nexport const MixpanelQueryNumericSumOutput = z.object({\n status: z.string().describe(\"Indicates whether the request was successful (e.g., 'ok').\").nullable(),\n results: z.object({}).describe(\"Maps date strings to numeric sum values. Each key is a date in 'YYYY-MM-DD' format and each value is the summed expression result for that date.\"),\n computed_at: z.string().describe(\"ISO 8601 timestamp showing when the computation occurred.\").nullable(),\n}).describe(\"Response model for numeric sum query data\");\n\nexport const mixpanelQueryNumericSum = action(\"MIXPANEL_QUERY_NUMERIC_SUM\", {\n slug: \"mixpanel-query-numeric-sum\",\n name: \"Query Numeric Sum Report\",\n description: \"Sums an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Example response: { \\\"status\\\": \\\"ok\\\", \\\"computed_at\\\": \\\"2024-01-20T12:00:00\\\", \\\"results\\\": { \\\"2024-01-01\\\": 150.5, \\\"2024-01-02\\\": 245.75, \\\"2024-01-03\\\": 198.25 } }\",\n input: MixpanelQueryNumericSumInput,\n output: MixpanelQueryNumericSumOutput,\n});\n"],"mappings":";;AAoBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;EACnG,MAAM,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EACjG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,+CAWH;CACP,QAX2C,EAAE,OAAO;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kJAAkJ;EACjL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
@@ -18,15 +18,15 @@ const MixpanelQueryProfilesInput = zod.z.object({
18
18
  }).describe("Request model for querying profile data from Mixpanel.");
19
19
  const MixpanelQueryProfiles_ProfileResultSchema = zod.z.object({
20
20
  $properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Object containing all profile properties for this user or group. Common properties include $created (account creation timestamp), $email (user email), $first_name, $last_name, $last_seen (last activity timestamp), and custom properties defined by the user"),
21
- $distinct_id: zod.z.string().describe("The unique identifier of the user or group profile")
21
+ $distinct_id: zod.z.string().describe("The unique identifier of the user or group profile").nullable()
22
22
  }).describe("Model for a single profile result.");
23
23
  const MixpanelQueryProfilesOutput = zod.z.object({
24
- page: zod.z.number().int().describe("The page number of the results"),
25
- total: zod.z.number().int().describe("The number of users in the results payload"),
26
- status: zod.z.string().describe("Indicates whether the request was successful"),
24
+ page: zod.z.number().int().describe("The page number of the results").nullable(),
25
+ total: zod.z.number().int().describe("The number of users in the results payload").nullable(),
26
+ status: zod.z.string().describe("Indicates whether the request was successful").nullable(),
27
27
  results: zod.z.array(MixpanelQueryProfiles_ProfileResultSchema).describe("Array of user or group profile objects matching the query criteria"),
28
- page_size: zod.z.number().int().describe("The max number of results in a single page"),
29
- session_id: zod.z.string().describe("Session identifier for pagination and caching purposes")
28
+ page_size: zod.z.number().int().describe("The max number of results in a single page").nullable(),
29
+ session_id: zod.z.string().describe("Session identifier for pagination and caching purposes").nullable()
30
30
  }).describe("Response model for profile query data.");
31
31
  const mixpanelQueryProfiles = require_action.action("MIXPANEL_QUERY_PROFILES", {
32
32
  slug: "mixpanel-query-profiles",
@@ -1 +1 @@
1
- {"version":3,"file":"query-profiles.cjs","names":["z","action"],"sources":["../../src/actions/query-profiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryProfilesInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Which page of results to retrieve (starts at 0)\").optional(),\n where: z.string().describe(\"An expression to filter users (or groups) by\").optional(),\n behaviors: z.number().int().describe(\"Required when using event selector for user profiles\").optional(),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n session_id: z.string().describe(\"Session ID from a previous query for pagination\").optional(),\n distinct_id: z.string().describe(\"A unique identifier used to distinguish an individual profile\").optional(),\n distinct_ids: z.array(z.string()).describe(\"A list of distinct_ids to retrieve profiles for\").optional(),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n data_group_id: z.string().describe(\"The ID of the group key, used when querying group profiles\").optional(),\n as_of_timestamp: z.number().int().describe(\"Used with behaviors parameter for large exports\").optional(),\n filter_by_cohort: z.object({}).describe(\"Filter by cohort ID. Example: {'id': 12345}\").optional(),\n include_all_users: z.boolean().default(true).describe(\"When using filter_by_cohort, whether to include all distinct_ids even without profiles\").optional(),\n output_properties: z.array(z.string()).describe(\"List of property names to return in the response\").optional(),\n}).describe(\"Request model for querying profile data from Mixpanel.\");\nconst MixpanelQueryProfiles_ProfileResultSchema: z.ZodTypeAny = z.object({\n $properties: z.record(z.string(), z.unknown()).describe(\"Object containing all profile properties for this user or group. Common properties include $created (account creation timestamp), $email (user email), $first_name, $last_name, $last_seen (last activity timestamp), and custom properties defined by the user\"),\n $distinct_id: z.string().describe(\"The unique identifier of the user or group profile\"),\n}).describe(\"Model for a single profile result.\");\nexport const MixpanelQueryProfilesOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"The page number of the results\"),\n total: z.number().int().describe(\"The number of users in the results payload\"),\n status: z.string().describe(\"Indicates whether the request was successful\"),\n results: z.array(MixpanelQueryProfiles_ProfileResultSchema).describe(\"Array of user or group profile objects matching the query criteria\"),\n page_size: z.number().int().describe(\"The max number of results in a single page\"),\n session_id: z.string().describe(\"Session identifier for pagination and caching purposes\"),\n}).describe(\"Response model for profile query data.\");\n\nexport const mixpanelQueryProfiles = action(\"MIXPANEL_QUERY_PROFILES\", {\n slug: \"mixpanel-query-profiles\",\n name: \"Query Profiles\",\n description: \"Query user or group profile data from Mixpanel. Returns list of profiles that match specified parameters. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelQueryProfilesInput,\n output: MixpanelQueryProfilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC1G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChG,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzJ,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iQAAiQ;CACzT,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACxF,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;CAC7E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC1E,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oEAAoE;CACzI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;AAC1F,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"query-profiles.cjs","names":["z","action"],"sources":["../../src/actions/query-profiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryProfilesInput = z.object({\n page: z.number().int().describe(\"Which page of results to retrieve (starts at 0)\").optional(),\n where: z.string().describe(\"An expression to filter users (or groups) by\").optional(),\n behaviors: z.number().int().describe(\"Required when using event selector for user profiles\").optional(),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n session_id: z.string().describe(\"Session ID from a previous query for pagination\").optional(),\n distinct_id: z.string().describe(\"A unique identifier used to distinguish an individual profile\").optional(),\n distinct_ids: z.array(z.string()).describe(\"A list of distinct_ids to retrieve profiles for\").optional(),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n data_group_id: z.string().describe(\"The ID of the group key, used when querying group profiles\").optional(),\n as_of_timestamp: z.number().int().describe(\"Used with behaviors parameter for large exports\").optional(),\n filter_by_cohort: z.object({}).describe(\"Filter by cohort ID. Example: {'id': 12345}\").optional(),\n include_all_users: z.boolean().default(true).describe(\"When using filter_by_cohort, whether to include all distinct_ids even without profiles\").optional(),\n output_properties: z.array(z.string()).describe(\"List of property names to return in the response\").optional(),\n}).describe(\"Request model for querying profile data from Mixpanel.\");\nconst MixpanelQueryProfiles_ProfileResultSchema = z.object({\n $properties: z.record(z.string(), z.unknown()).describe(\"Object containing all profile properties for this user or group. Common properties include $created (account creation timestamp), $email (user email), $first_name, $last_name, $last_seen (last activity timestamp), and custom properties defined by the user\"),\n $distinct_id: z.string().describe(\"The unique identifier of the user or group profile\").nullable(),\n}).describe(\"Model for a single profile result.\");\nexport const MixpanelQueryProfilesOutput = z.object({\n page: z.number().int().describe(\"The page number of the results\").nullable(),\n total: z.number().int().describe(\"The number of users in the results payload\").nullable(),\n status: z.string().describe(\"Indicates whether the request was successful\").nullable(),\n results: z.array(MixpanelQueryProfiles_ProfileResultSchema).describe(\"Array of user or group profile objects matching the query criteria\"),\n page_size: z.number().int().describe(\"The max number of results in a single page\").nullable(),\n session_id: z.string().describe(\"Session identifier for pagination and caching purposes\").nullable(),\n}).describe(\"Response model for profile query data.\");\n\nexport const mixpanelQueryProfiles = action(\"MIXPANEL_QUERY_PROFILES\", {\n slug: \"mixpanel-query-profiles\",\n name: \"Query Profiles\",\n description: \"Query user or group profile data from Mixpanel. Returns list of profiles that match specified parameters. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelQueryProfilesInput,\n output: MixpanelQueryProfilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC1G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChG,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzJ,mBAAmBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,aAAaA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iQAAiQ;CACzT,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oEAAoE;CACzI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/query-profiles.d.ts
4
- declare const MixpanelQueryProfilesInput: z.ZodTypeAny;
5
- declare const MixpanelQueryProfilesOutput: z.ZodTypeAny;
6
- declare const mixpanelQueryProfiles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MixpanelQueryProfilesInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ where: z.ZodOptional<z.ZodString>;
7
+ behaviors: z.ZodOptional<z.ZodNumber>;
8
+ project_id: z.ZodNumber;
9
+ session_id: z.ZodOptional<z.ZodString>;
10
+ distinct_id: z.ZodOptional<z.ZodString>;
11
+ distinct_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ workspace_id: z.ZodOptional<z.ZodNumber>;
13
+ data_group_id: z.ZodOptional<z.ZodString>;
14
+ as_of_timestamp: z.ZodOptional<z.ZodNumber>;
15
+ filter_by_cohort: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
16
+ include_all_users: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
+ output_properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ }, z.core.$strip>;
19
+ declare const MixpanelQueryProfilesOutput: z.ZodObject<{
20
+ page: z.ZodNullable<z.ZodNumber>;
21
+ total: z.ZodNullable<z.ZodNumber>;
22
+ status: z.ZodNullable<z.ZodString>;
23
+ results: z.ZodArray<z.ZodObject<{
24
+ $properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
+ $distinct_id: z.ZodNullable<z.ZodString>;
26
+ }, z.core.$strip>>;
27
+ page_size: z.ZodNullable<z.ZodNumber>;
28
+ session_id: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ declare const mixpanelQueryProfiles: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ project_id: number;
32
+ page?: number | undefined;
33
+ where?: string | undefined;
34
+ behaviors?: number | undefined;
35
+ session_id?: string | undefined;
36
+ distinct_id?: string | undefined;
37
+ distinct_ids?: string[] | undefined;
38
+ workspace_id?: number | undefined;
39
+ data_group_id?: string | undefined;
40
+ as_of_timestamp?: number | undefined;
41
+ filter_by_cohort?: Record<string, never> | undefined;
42
+ include_all_users?: boolean | undefined;
43
+ output_properties?: string[] | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { mixpanelQueryProfiles };
9
47
  //# sourceMappingURL=query-profiles.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-profiles.d.cts","names":[],"sources":["../../src/actions/query-profiles.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAc0B;AAAA,cAKxD,2BAAA,EAA6B,CAAA,CAAE,UAOS;AAAA,cAExC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"query-profiles.d.cts","names":[],"sources":["../../src/actions/query-profiles.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAmB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;;qBAMhC,MAAA"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/query-profiles.d.ts
4
- declare const MixpanelQueryProfilesInput: z.ZodTypeAny;
5
- declare const MixpanelQueryProfilesOutput: z.ZodTypeAny;
6
- declare const mixpanelQueryProfiles: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MixpanelQueryProfilesInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ where: z.ZodOptional<z.ZodString>;
7
+ behaviors: z.ZodOptional<z.ZodNumber>;
8
+ project_id: z.ZodNumber;
9
+ session_id: z.ZodOptional<z.ZodString>;
10
+ distinct_id: z.ZodOptional<z.ZodString>;
11
+ distinct_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
12
+ workspace_id: z.ZodOptional<z.ZodNumber>;
13
+ data_group_id: z.ZodOptional<z.ZodString>;
14
+ as_of_timestamp: z.ZodOptional<z.ZodNumber>;
15
+ filter_by_cohort: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
16
+ include_all_users: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
+ output_properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
+ }, z.core.$strip>;
19
+ declare const MixpanelQueryProfilesOutput: z.ZodObject<{
20
+ page: z.ZodNullable<z.ZodNumber>;
21
+ total: z.ZodNullable<z.ZodNumber>;
22
+ status: z.ZodNullable<z.ZodString>;
23
+ results: z.ZodArray<z.ZodObject<{
24
+ $properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
+ $distinct_id: z.ZodNullable<z.ZodString>;
26
+ }, z.core.$strip>>;
27
+ page_size: z.ZodNullable<z.ZodNumber>;
28
+ session_id: z.ZodNullable<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ declare const mixpanelQueryProfiles: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ project_id: number;
32
+ page?: number | undefined;
33
+ where?: string | undefined;
34
+ behaviors?: number | undefined;
35
+ session_id?: string | undefined;
36
+ distinct_id?: string | undefined;
37
+ distinct_ids?: string[] | undefined;
38
+ workspace_id?: number | undefined;
39
+ data_group_id?: string | undefined;
40
+ as_of_timestamp?: number | undefined;
41
+ filter_by_cohort?: Record<string, never> | undefined;
42
+ include_all_users?: boolean | undefined;
43
+ output_properties?: string[] | undefined;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { mixpanelQueryProfiles };
9
47
  //# sourceMappingURL=query-profiles.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-profiles.d.mts","names":[],"sources":["../../src/actions/query-profiles.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAc0B;AAAA,cAKxD,2BAAA,EAA6B,CAAA,CAAE,UAOS;AAAA,cAExC,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"query-profiles.d.mts","names":[],"sources":["../../src/actions/query-profiles.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAmB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;;qBAMhC,MAAA"}
@@ -18,7 +18,7 @@ const MixpanelQueryProfilesInput = z.object({
18
18
  }).describe("Request model for querying profile data from Mixpanel.");
19
19
  const MixpanelQueryProfiles_ProfileResultSchema = z.object({
20
20
  $properties: z.record(z.string(), z.unknown()).describe("Object containing all profile properties for this user or group. Common properties include $created (account creation timestamp), $email (user email), $first_name, $last_name, $last_seen (last activity timestamp), and custom properties defined by the user"),
21
- $distinct_id: z.string().describe("The unique identifier of the user or group profile")
21
+ $distinct_id: z.string().describe("The unique identifier of the user or group profile").nullable()
22
22
  }).describe("Model for a single profile result.");
23
23
  const mixpanelQueryProfiles = action("MIXPANEL_QUERY_PROFILES", {
24
24
  slug: "mixpanel-query-profiles",
@@ -26,12 +26,12 @@ const mixpanelQueryProfiles = action("MIXPANEL_QUERY_PROFILES", {
26
26
  description: "Query user or group profile data from Mixpanel. Returns list of profiles that match specified parameters. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.",
27
27
  input: MixpanelQueryProfilesInput,
28
28
  output: z.object({
29
- page: z.number().int().describe("The page number of the results"),
30
- total: z.number().int().describe("The number of users in the results payload"),
31
- status: z.string().describe("Indicates whether the request was successful"),
29
+ page: z.number().int().describe("The page number of the results").nullable(),
30
+ total: z.number().int().describe("The number of users in the results payload").nullable(),
31
+ status: z.string().describe("Indicates whether the request was successful").nullable(),
32
32
  results: z.array(MixpanelQueryProfiles_ProfileResultSchema).describe("Array of user or group profile objects matching the query criteria"),
33
- page_size: z.number().int().describe("The max number of results in a single page"),
34
- session_id: z.string().describe("Session identifier for pagination and caching purposes")
33
+ page_size: z.number().int().describe("The max number of results in a single page").nullable(),
34
+ session_id: z.string().describe("Session identifier for pagination and caching purposes").nullable()
35
35
  }).describe("Response model for profile query data.")
36
36
  });
37
37
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"query-profiles.mjs","names":[],"sources":["../../src/actions/query-profiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryProfilesInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Which page of results to retrieve (starts at 0)\").optional(),\n where: z.string().describe(\"An expression to filter users (or groups) by\").optional(),\n behaviors: z.number().int().describe(\"Required when using event selector for user profiles\").optional(),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n session_id: z.string().describe(\"Session ID from a previous query for pagination\").optional(),\n distinct_id: z.string().describe(\"A unique identifier used to distinguish an individual profile\").optional(),\n distinct_ids: z.array(z.string()).describe(\"A list of distinct_ids to retrieve profiles for\").optional(),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n data_group_id: z.string().describe(\"The ID of the group key, used when querying group profiles\").optional(),\n as_of_timestamp: z.number().int().describe(\"Used with behaviors parameter for large exports\").optional(),\n filter_by_cohort: z.object({}).describe(\"Filter by cohort ID. Example: {'id': 12345}\").optional(),\n include_all_users: z.boolean().default(true).describe(\"When using filter_by_cohort, whether to include all distinct_ids even without profiles\").optional(),\n output_properties: z.array(z.string()).describe(\"List of property names to return in the response\").optional(),\n}).describe(\"Request model for querying profile data from Mixpanel.\");\nconst MixpanelQueryProfiles_ProfileResultSchema: z.ZodTypeAny = z.object({\n $properties: z.record(z.string(), z.unknown()).describe(\"Object containing all profile properties for this user or group. Common properties include $created (account creation timestamp), $email (user email), $first_name, $last_name, $last_seen (last activity timestamp), and custom properties defined by the user\"),\n $distinct_id: z.string().describe(\"The unique identifier of the user or group profile\"),\n}).describe(\"Model for a single profile result.\");\nexport const MixpanelQueryProfilesOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"The page number of the results\"),\n total: z.number().int().describe(\"The number of users in the results payload\"),\n status: z.string().describe(\"Indicates whether the request was successful\"),\n results: z.array(MixpanelQueryProfiles_ProfileResultSchema).describe(\"Array of user or group profile objects matching the query criteria\"),\n page_size: z.number().int().describe(\"The max number of results in a single page\"),\n session_id: z.string().describe(\"Session identifier for pagination and caching purposes\"),\n}).describe(\"Response model for profile query data.\");\n\nexport const mixpanelQueryProfiles = action(\"MIXPANEL_QUERY_PROFILES\", {\n slug: \"mixpanel-query-profiles\",\n name: \"Query Profiles\",\n description: \"Query user or group profile data from Mixpanel. Returns list of profiles that match specified parameters. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelQueryProfilesInput,\n output: MixpanelQueryProfilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO;CAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC1G,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChG,mBAAmB,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzJ,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,4CAA0D,EAAE,OAAO;CACvE,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iQAAiQ;CACzT,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AACxF,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAUhD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduD,EAAE,OAAO;EAChE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;EAC7E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EAC1E,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oEAAoE;EACzI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAC1F,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"query-profiles.mjs","names":[],"sources":["../../src/actions/query-profiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryProfilesInput = z.object({\n page: z.number().int().describe(\"Which page of results to retrieve (starts at 0)\").optional(),\n where: z.string().describe(\"An expression to filter users (or groups) by\").optional(),\n behaviors: z.number().int().describe(\"Required when using event selector for user profiles\").optional(),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n session_id: z.string().describe(\"Session ID from a previous query for pagination\").optional(),\n distinct_id: z.string().describe(\"A unique identifier used to distinguish an individual profile\").optional(),\n distinct_ids: z.array(z.string()).describe(\"A list of distinct_ids to retrieve profiles for\").optional(),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n data_group_id: z.string().describe(\"The ID of the group key, used when querying group profiles\").optional(),\n as_of_timestamp: z.number().int().describe(\"Used with behaviors parameter for large exports\").optional(),\n filter_by_cohort: z.object({}).describe(\"Filter by cohort ID. Example: {'id': 12345}\").optional(),\n include_all_users: z.boolean().default(true).describe(\"When using filter_by_cohort, whether to include all distinct_ids even without profiles\").optional(),\n output_properties: z.array(z.string()).describe(\"List of property names to return in the response\").optional(),\n}).describe(\"Request model for querying profile data from Mixpanel.\");\nconst MixpanelQueryProfiles_ProfileResultSchema = z.object({\n $properties: z.record(z.string(), z.unknown()).describe(\"Object containing all profile properties for this user or group. Common properties include $created (account creation timestamp), $email (user email), $first_name, $last_name, $last_seen (last activity timestamp), and custom properties defined by the user\"),\n $distinct_id: z.string().describe(\"The unique identifier of the user or group profile\").nullable(),\n}).describe(\"Model for a single profile result.\");\nexport const MixpanelQueryProfilesOutput = z.object({\n page: z.number().int().describe(\"The page number of the results\").nullable(),\n total: z.number().int().describe(\"The number of users in the results payload\").nullable(),\n status: z.string().describe(\"Indicates whether the request was successful\").nullable(),\n results: z.array(MixpanelQueryProfiles_ProfileResultSchema).describe(\"Array of user or group profile objects matching the query criteria\"),\n page_size: z.number().int().describe(\"The max number of results in a single page\").nullable(),\n session_id: z.string().describe(\"Session identifier for pagination and caching purposes\").nullable(),\n}).describe(\"Response model for profile query data.\");\n\nexport const mixpanelQueryProfiles = action(\"MIXPANEL_QUERY_PROFILES\", {\n slug: \"mixpanel-query-profiles\",\n name: \"Query Profiles\",\n description: \"Query user or group profile data from Mixpanel. Returns list of profiles that match specified parameters. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelQueryProfilesInput,\n output: MixpanelQueryProfilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC1G,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChG,mBAAmB,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzJ,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,4CAA4C,EAAE,OAAO;CACzD,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iQAAiQ;CACzT,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAUhD,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oEAAoE;EACzI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"query-retention-report.cjs","names":["z","action"],"sources":["../../src/actions/query-retention-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryRetentionReportInput: z.ZodTypeAny = z.object({\n on: z.string().describe(\"Property expression for segmentation (segments results by specified property)\").optional(),\n unit: z.enum([\"day\", \"week\", \"month\"]).default(\"day\").describe(\"Medium range time units for Mixpanel operations.\").optional(),\n event: z.string().describe(\"The target event to measure retention against\").optional(),\n limit: z.number().int().describe(\"Maximum number of top segmentation values to return (only valid with 'on' parameter)\").optional(),\n where: z.string().describe(\"Filter expression for event (see Mixpanel expressions documentation)\").optional(),\n to_date: z.string().describe(\"End date for the query range in YYYY-MM-DD format (inclusive)\"),\n from_date: z.string().describe(\"Start date for the query range in YYYY-MM-DD format (inclusive)\"),\n born_event: z.string().describe(\"The initial event that defines the cohort entry (required when retention_type='birth')\").optional(),\n born_where: z.string().describe(\"Filter expression for born_event (see Mixpanel expressions documentation)\").optional(),\n project_id: z.number().int().describe(\"Project identifier (required when using service account authentication)\"),\n workspace_id: z.number().int().describe(\"Workspace identifier if applicable\").optional(),\n interval_count: z.number().int().describe(\"Number of individual buckets/intervals to return\").optional(),\n retention_type: z.enum([\"birth\", \"compounded\"]).default(\"birth\").describe(\"Type of retention analysis: 'birth' for first-time retention or 'compounded' for recurring retention\").optional(),\n unbounded_retention: z.boolean().default(false).describe(\"When true, uses accumulation method where values accumulate from right to left\").optional(),\n}).describe(\"Request model for querying retention report from Mixpanel Query API\");\nexport const MixpanelQueryRetentionReportOutput: z.ZodTypeAny = z.object({\n data: z.object({}).describe(\"Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size\"),\n}).describe(\"Response model for retention report query from Mixpanel Query API\");\n\nexport const mixpanelQueryRetentionReport = action(\"MIXPANEL_QUERY_RETENTION_REPORT\", {\n slug: \"mixpanel-query-retention-report\",\n name: \"Query Retention Report\",\n description: \"Query cohort analysis showing user retention patterns over time. Tracks how users who performed an initial event (born_event) subsequently perform a target event (event). Use the 'unit' parameter to control cohort interval granularity ('day', 'week', 'month'); defaults to 'day'.\",\n input: MixpanelQueryRetentionReportInput,\n output: MixpanelQueryRetentionReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAClH,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAClI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACnI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACtH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;CAC/G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvG,gBAAgBA,IAAAA,EAAE,KAAK,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC3L,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH,EACpJ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"query-retention-report.cjs","names":["z","action"],"sources":["../../src/actions/query-retention-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryRetentionReportInput = z.object({\n on: z.string().describe(\"Property expression for segmentation (segments results by specified property)\").optional(),\n unit: z.enum([\"day\", \"week\", \"month\"]).default(\"day\").describe(\"Medium range time units for Mixpanel operations.\").optional(),\n event: z.string().describe(\"The target event to measure retention against\").optional(),\n limit: z.number().int().describe(\"Maximum number of top segmentation values to return (only valid with 'on' parameter)\").optional(),\n where: z.string().describe(\"Filter expression for event (see Mixpanel expressions documentation)\").optional(),\n to_date: z.string().describe(\"End date for the query range in YYYY-MM-DD format (inclusive)\"),\n from_date: z.string().describe(\"Start date for the query range in YYYY-MM-DD format (inclusive)\"),\n born_event: z.string().describe(\"The initial event that defines the cohort entry (required when retention_type='birth')\").optional(),\n born_where: z.string().describe(\"Filter expression for born_event (see Mixpanel expressions documentation)\").optional(),\n project_id: z.number().int().describe(\"Project identifier (required when using service account authentication)\"),\n workspace_id: z.number().int().describe(\"Workspace identifier if applicable\").optional(),\n interval_count: z.number().int().describe(\"Number of individual buckets/intervals to return\").optional(),\n retention_type: z.enum([\"birth\", \"compounded\"]).default(\"birth\").describe(\"Type of retention analysis: 'birth' for first-time retention or 'compounded' for recurring retention\").optional(),\n unbounded_retention: z.boolean().default(false).describe(\"When true, uses accumulation method where values accumulate from right to left\").optional(),\n}).describe(\"Request model for querying retention report from Mixpanel Query API\");\nexport const MixpanelQueryRetentionReportOutput = z.object({\n data: z.object({}).describe(\"Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size\"),\n}).describe(\"Response model for retention report query from Mixpanel Query API\");\n\nexport const mixpanelQueryRetentionReport = action(\"MIXPANEL_QUERY_RETENTION_REPORT\", {\n slug: \"mixpanel-query-retention-report\",\n name: \"Query Retention Report\",\n description: \"Query cohort analysis showing user retention patterns over time. Tracks how users who performed an initial event (born_event) subsequently perform a target event (event). Use the 'unit' parameter to control cohort interval granularity ('day', 'week', 'month'); defaults to 'day'.\",\n input: MixpanelQueryRetentionReportInput,\n output: MixpanelQueryRetentionReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAClH,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAClI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACnI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACtH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;CAC/G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvG,gBAAgBA,IAAAA,EAAE,KAAK,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC3L,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH,EACpJ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAE/E,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,48 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/query-retention-report.d.ts
4
- declare const MixpanelQueryRetentionReportInput: z.ZodTypeAny;
5
- declare const MixpanelQueryRetentionReportOutput: z.ZodTypeAny;
6
- declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MixpanelQueryRetentionReportInput: z.ZodObject<{
5
+ on: z.ZodOptional<z.ZodString>;
6
+ unit: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ day: "day";
8
+ week: "week";
9
+ month: "month";
10
+ }>>>;
11
+ event: z.ZodOptional<z.ZodString>;
12
+ limit: z.ZodOptional<z.ZodNumber>;
13
+ where: z.ZodOptional<z.ZodString>;
14
+ to_date: z.ZodString;
15
+ from_date: z.ZodString;
16
+ born_event: z.ZodOptional<z.ZodString>;
17
+ born_where: z.ZodOptional<z.ZodString>;
18
+ project_id: z.ZodNumber;
19
+ workspace_id: z.ZodOptional<z.ZodNumber>;
20
+ interval_count: z.ZodOptional<z.ZodNumber>;
21
+ retention_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
22
+ birth: "birth";
23
+ compounded: "compounded";
24
+ }>>>;
25
+ unbounded_retention: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
26
+ }, z.core.$strip>;
27
+ declare const MixpanelQueryRetentionReportOutput: z.ZodObject<{
28
+ data: z.ZodObject<{}, z.core.$strip>;
29
+ }, z.core.$strip>;
30
+ declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ to_date: string;
32
+ from_date: string;
33
+ project_id: number;
34
+ on?: string | undefined;
35
+ unit?: "day" | "week" | "month" | undefined;
36
+ event?: string | undefined;
37
+ limit?: number | undefined;
38
+ where?: string | undefined;
39
+ born_event?: string | undefined;
40
+ born_where?: string | undefined;
41
+ workspace_id?: number | undefined;
42
+ interval_count?: number | undefined;
43
+ retention_type?: "birth" | "compounded" | undefined;
44
+ unbounded_retention?: boolean | undefined;
45
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
46
  //#endregion
8
47
  export { mixpanelQueryRetentionReport };
9
48
  //# sourceMappingURL=query-retention-report.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-retention-report.d.cts","names":[],"sources":["../../src/actions/query-retention-report.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAegC;AAAA,cACrE,kCAAA,EAAoC,CAAA,CAAE,UAE6B;AAAA,cAEnE,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"query-retention-report.d.cts","names":[],"sources":["../../src/actions/query-retention-report.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAgBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,48 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/query-retention-report.d.ts
4
- declare const MixpanelQueryRetentionReportInput: z.ZodTypeAny;
5
- declare const MixpanelQueryRetentionReportOutput: z.ZodTypeAny;
6
- declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const MixpanelQueryRetentionReportInput: z.ZodObject<{
5
+ on: z.ZodOptional<z.ZodString>;
6
+ unit: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
7
+ day: "day";
8
+ week: "week";
9
+ month: "month";
10
+ }>>>;
11
+ event: z.ZodOptional<z.ZodString>;
12
+ limit: z.ZodOptional<z.ZodNumber>;
13
+ where: z.ZodOptional<z.ZodString>;
14
+ to_date: z.ZodString;
15
+ from_date: z.ZodString;
16
+ born_event: z.ZodOptional<z.ZodString>;
17
+ born_where: z.ZodOptional<z.ZodString>;
18
+ project_id: z.ZodNumber;
19
+ workspace_id: z.ZodOptional<z.ZodNumber>;
20
+ interval_count: z.ZodOptional<z.ZodNumber>;
21
+ retention_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
22
+ birth: "birth";
23
+ compounded: "compounded";
24
+ }>>>;
25
+ unbounded_retention: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
26
+ }, z.core.$strip>;
27
+ declare const MixpanelQueryRetentionReportOutput: z.ZodObject<{
28
+ data: z.ZodObject<{}, z.core.$strip>;
29
+ }, z.core.$strip>;
30
+ declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ to_date: string;
32
+ from_date: string;
33
+ project_id: number;
34
+ on?: string | undefined;
35
+ unit?: "day" | "week" | "month" | undefined;
36
+ event?: string | undefined;
37
+ limit?: number | undefined;
38
+ where?: string | undefined;
39
+ born_event?: string | undefined;
40
+ born_where?: string | undefined;
41
+ workspace_id?: number | undefined;
42
+ interval_count?: number | undefined;
43
+ retention_type?: "birth" | "compounded" | undefined;
44
+ unbounded_retention?: boolean | undefined;
45
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
46
  //#endregion
8
47
  export { mixpanelQueryRetentionReport };
9
48
  //# sourceMappingURL=query-retention-report.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-retention-report.d.mts","names":[],"sources":["../../src/actions/query-retention-report.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAegC;AAAA,cACrE,kCAAA,EAAoC,CAAA,CAAE,UAE6B;AAAA,cAEnE,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"query-retention-report.d.mts","names":[],"sources":["../../src/actions/query-retention-report.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAgBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"query-retention-report.mjs","names":[],"sources":["../../src/actions/query-retention-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryRetentionReportInput: z.ZodTypeAny = z.object({\n on: z.string().describe(\"Property expression for segmentation (segments results by specified property)\").optional(),\n unit: z.enum([\"day\", \"week\", \"month\"]).default(\"day\").describe(\"Medium range time units for Mixpanel operations.\").optional(),\n event: z.string().describe(\"The target event to measure retention against\").optional(),\n limit: z.number().int().describe(\"Maximum number of top segmentation values to return (only valid with 'on' parameter)\").optional(),\n where: z.string().describe(\"Filter expression for event (see Mixpanel expressions documentation)\").optional(),\n to_date: z.string().describe(\"End date for the query range in YYYY-MM-DD format (inclusive)\"),\n from_date: z.string().describe(\"Start date for the query range in YYYY-MM-DD format (inclusive)\"),\n born_event: z.string().describe(\"The initial event that defines the cohort entry (required when retention_type='birth')\").optional(),\n born_where: z.string().describe(\"Filter expression for born_event (see Mixpanel expressions documentation)\").optional(),\n project_id: z.number().int().describe(\"Project identifier (required when using service account authentication)\"),\n workspace_id: z.number().int().describe(\"Workspace identifier if applicable\").optional(),\n interval_count: z.number().int().describe(\"Number of individual buckets/intervals to return\").optional(),\n retention_type: z.enum([\"birth\", \"compounded\"]).default(\"birth\").describe(\"Type of retention analysis: 'birth' for first-time retention or 'compounded' for recurring retention\").optional(),\n unbounded_retention: z.boolean().default(false).describe(\"When true, uses accumulation method where values accumulate from right to left\").optional(),\n}).describe(\"Request model for querying retention report from Mixpanel Query API\");\nexport const MixpanelQueryRetentionReportOutput: z.ZodTypeAny = z.object({\n data: z.object({}).describe(\"Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size\"),\n}).describe(\"Response model for retention report query from Mixpanel Query API\");\n\nexport const mixpanelQueryRetentionReport = action(\"MIXPANEL_QUERY_RETENTION_REPORT\", {\n slug: \"mixpanel-query-retention-report\",\n name: \"Query Retention Report\",\n description: \"Query cohort analysis showing user retention patterns over time. Tracks how users who performed an initial event (born_event) subsequently perform a target event (event). Use the 'unit' parameter to control cohort interval granularity ('day', 'week', 'month'); defaults to 'day'.\",\n input: MixpanelQueryRetentionReportInput,\n output: MixpanelQueryRetentionReportOutput,\n});\n"],"mappings":";;AAwBA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB6D,EAAE,OAAO;EACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAClH,MAAM,EAAE,KAAK;GAAC;GAAO;GAAQ;EAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAClI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACnI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACtH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;EAC/G,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACvG,gBAAgB,EAAE,KAAK,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EAC3L,qBAAqB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACtJ,CAAC,CAAC,CAAC,SAAS,qEASH;CACP,QAT8D,EAAE,OAAO,EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH,EACpJ,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"query-retention-report.mjs","names":[],"sources":["../../src/actions/query-retention-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryRetentionReportInput = z.object({\n on: z.string().describe(\"Property expression for segmentation (segments results by specified property)\").optional(),\n unit: z.enum([\"day\", \"week\", \"month\"]).default(\"day\").describe(\"Medium range time units for Mixpanel operations.\").optional(),\n event: z.string().describe(\"The target event to measure retention against\").optional(),\n limit: z.number().int().describe(\"Maximum number of top segmentation values to return (only valid with 'on' parameter)\").optional(),\n where: z.string().describe(\"Filter expression for event (see Mixpanel expressions documentation)\").optional(),\n to_date: z.string().describe(\"End date for the query range in YYYY-MM-DD format (inclusive)\"),\n from_date: z.string().describe(\"Start date for the query range in YYYY-MM-DD format (inclusive)\"),\n born_event: z.string().describe(\"The initial event that defines the cohort entry (required when retention_type='birth')\").optional(),\n born_where: z.string().describe(\"Filter expression for born_event (see Mixpanel expressions documentation)\").optional(),\n project_id: z.number().int().describe(\"Project identifier (required when using service account authentication)\"),\n workspace_id: z.number().int().describe(\"Workspace identifier if applicable\").optional(),\n interval_count: z.number().int().describe(\"Number of individual buckets/intervals to return\").optional(),\n retention_type: z.enum([\"birth\", \"compounded\"]).default(\"birth\").describe(\"Type of retention analysis: 'birth' for first-time retention or 'compounded' for recurring retention\").optional(),\n unbounded_retention: z.boolean().default(false).describe(\"When true, uses accumulation method where values accumulate from right to left\").optional(),\n}).describe(\"Request model for querying retention report from Mixpanel Query API\");\nexport const MixpanelQueryRetentionReportOutput = z.object({\n data: z.object({}).describe(\"Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size\"),\n}).describe(\"Response model for retention report query from Mixpanel Query API\");\n\nexport const mixpanelQueryRetentionReport = action(\"MIXPANEL_QUERY_RETENTION_REPORT\", {\n slug: \"mixpanel-query-retention-report\",\n name: \"Query Retention Report\",\n description: \"Query cohort analysis showing user retention patterns over time. Tracks how users who performed an initial event (born_event) subsequently perform a target event (event). Use the 'unit' parameter to control cohort interval granularity ('day', 'week', 'month'); defaults to 'day'.\",\n input: MixpanelQueryRetentionReportInput,\n output: MixpanelQueryRetentionReportOutput,\n});\n"],"mappings":";;AAwBA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB+C,EAAE,OAAO;EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAClH,MAAM,EAAE,KAAK;GAAC;GAAO;GAAQ;EAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAClI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACnI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACtH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;EAC/G,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACvG,gBAAgB,EAAE,KAAK,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EAC3L,qBAAqB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACtJ,CAAC,CAAC,CAAC,SAAS,qEASH;CACP,QATgD,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH,EACpJ,CAAC,CAAC,CAAC,SAAS,mEAOF;AACV,CAAC"}
@@ -28,7 +28,7 @@ const MixpanelQuerySegmentation_SegmentationDataSchema = zod.z.object({
28
28
  }).describe("Container for segmentation query results");
29
29
  const MixpanelQuerySegmentationOutput = zod.z.object({
30
30
  data: MixpanelQuerySegmentation_SegmentationDataSchema.nullable(),
31
- legend_size: zod.z.number().int().describe("Count of all events in the values object")
31
+ legend_size: zod.z.number().int().describe("Count of all events in the values object").nullable()
32
32
  }).describe("Response model for segmentation query data");
33
33
  const mixpanelQuerySegmentation = require_action.action("MIXPANEL_QUERY_SEGMENTATION", {
34
34
  slug: "mixpanel-query-segmentation",
@@ -1 +1 @@
1
- {"version":3,"file":"query-segmentation.cjs","names":["z","action"],"sources":["../../src/actions/query-segmentation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQuerySegmentationInput: z.ZodTypeAny = z.object({\n on: z.string().describe(\"The property expression to segment the event on Properties unset for many events produce 'undefined' segment buckets; interpret as missing instrumentation, not zero traffic.\").optional(),\n type: z.enum([\"general\", \"unique\", \"average\"]).default(\"general\").describe(\"Analysis types for Mixpanel event aggregation.\").optional(),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"month\"]).default(\"day\").describe(\"Time units for segmentation queries.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n limit: z.number().int().default(60).describe(\"Return the top N property values (max 10000)\").optional(),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive) Use project timezone to avoid off-by-one-day range errors; reversed or overly narrow ranges yield empty results.\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request Region mismatch between the Mixpanel connection and the project's cluster returns 'invalid project id for cluster'; verify region before querying.\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for querying segmentation data\");\nconst MixpanelQuerySegmentation_SegmentationDataSchema: z.ZodTypeAny = z.object({\n series: z.array(z.string()).describe(\"All dates we have data for in the response\"),\n values: z.object({}).describe(\"A mapping of event names to date-value pairs, where each date maps to the number of specified events that took place\"),\n}).describe(\"Container for segmentation query results\");\nexport const MixpanelQuerySegmentationOutput: z.ZodTypeAny = z.object({\n data: MixpanelQuerySegmentation_SegmentationDataSchema.nullable(),\n legend_size: z.number().int().describe(\"Count of all events in the values object\"),\n}).describe(\"Response model for segmentation query data\");\n\nexport const mixpanelQuerySegmentation = action(\"MIXPANEL_QUERY_SEGMENTATION\", {\n slug: \"mixpanel-query-segmentation\",\n name: \"Query Segmentation Report\",\n description: \"Get data for an event, segmented and filtered by properties with daily/time-series breakdown. Use the 'unit' parameter to control time bucketing ('minute', 'hour', 'day', 'month'). The Query API has a rate limit of 60 queries per hour and 5 concurrent queries, shared across related tools (e.g., MIXPANEL_JQL_QUERY, MIXPANEL_TOP_EVENT_PROPERTY_VALUES); bursts of concurrent calls return 429.\",\n input: MixpanelQuerySegmentationInput,\n output: MixpanelQuerySegmentationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CAClN,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtI,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL;CAClN,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8MAA8M;CACpP,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,mDAAiEA,IAAAA,EAAE,OAAO;CAC9E,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACtJ,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAM,iDAAiD,SAAS;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C;AACnF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"query-segmentation.cjs","names":["z","action"],"sources":["../../src/actions/query-segmentation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQuerySegmentationInput = z.object({\n on: z.string().describe(\"The property expression to segment the event on Properties unset for many events produce 'undefined' segment buckets; interpret as missing instrumentation, not zero traffic.\").optional(),\n type: z.enum([\"general\", \"unique\", \"average\"]).default(\"general\").describe(\"Analysis types for Mixpanel event aggregation.\").optional(),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"month\"]).default(\"day\").describe(\"Time units for segmentation queries.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n limit: z.number().int().default(60).describe(\"Return the top N property values (max 10000)\").optional(),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive) Use project timezone to avoid off-by-one-day range errors; reversed or overly narrow ranges yield empty results.\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request Region mismatch between the Mixpanel connection and the project's cluster returns 'invalid project id for cluster'; verify region before querying.\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for querying segmentation data\");\nconst MixpanelQuerySegmentation_SegmentationDataSchema = z.object({\n series: z.array(z.string()).describe(\"All dates we have data for in the response\"),\n values: z.object({}).describe(\"A mapping of event names to date-value pairs, where each date maps to the number of specified events that took place\"),\n}).describe(\"Container for segmentation query results\");\nexport const MixpanelQuerySegmentationOutput = z.object({\n data: MixpanelQuerySegmentation_SegmentationDataSchema.nullable(),\n legend_size: z.number().int().describe(\"Count of all events in the values object\").nullable(),\n}).describe(\"Response model for segmentation query data\");\n\nexport const mixpanelQuerySegmentation = action(\"MIXPANEL_QUERY_SEGMENTATION\", {\n slug: \"mixpanel-query-segmentation\",\n name: \"Query Segmentation Report\",\n description: \"Get data for an event, segmented and filtered by properties with daily/time-series breakdown. Use the 'unit' parameter to control time bucketing ('minute', 'hour', 'day', 'month'). The Query API has a rate limit of 60 queries per hour and 5 concurrent queries, shared across related tools (e.g., MIXPANEL_JQL_QUERY, MIXPANEL_TOP_EVENT_PROPERTY_VALUES); bursts of concurrent calls return 429.\",\n input: MixpanelQuerySegmentationInput,\n output: MixpanelQuerySegmentationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CAClN,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtI,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL;CAClN,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8MAA8M;CACpP,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACtJ,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAM,iDAAiD,SAAS;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}