@keystrokehq/mixpanel 0.1.2 → 0.1.4

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 (289) hide show
  1. package/dist/actions/add-unique-to-profile-list-property.cjs +3 -3
  2. package/dist/actions/add-unique-to-profile-list-property.cjs.map +1 -1
  3. package/dist/actions/add-unique-to-profile-list-property.d.cts +22 -5
  4. package/dist/actions/add-unique-to-profile-list-property.d.cts.map +1 -1
  5. package/dist/actions/add-unique-to-profile-list-property.d.mts +22 -5
  6. package/dist/actions/add-unique-to-profile-list-property.d.mts.map +1 -1
  7. package/dist/actions/add-unique-to-profile-list-property.mjs +3 -3
  8. package/dist/actions/add-unique-to-profile-list-property.mjs.map +1 -1
  9. package/dist/actions/aggregate-events.cjs +3 -3
  10. package/dist/actions/aggregate-events.cjs.map +1 -1
  11. package/dist/actions/aggregate-events.d.cts +20 -4
  12. package/dist/actions/aggregate-events.d.mts +20 -4
  13. package/dist/actions/aggregate-events.mjs +3 -3
  14. package/dist/actions/aggregate-events.mjs.map +1 -1
  15. package/dist/actions/aggregated-event-property-values.cjs +2 -2
  16. package/dist/actions/aggregated-event-property-values.cjs.map +1 -1
  17. package/dist/actions/aggregated-event-property-values.d.cts +19 -3
  18. package/dist/actions/aggregated-event-property-values.d.mts +19 -3
  19. package/dist/actions/aggregated-event-property-values.mjs +2 -2
  20. package/dist/actions/aggregated-event-property-values.mjs.map +1 -1
  21. package/dist/actions/cohorts-list.cjs +2 -2
  22. package/dist/actions/cohorts-list.cjs.map +1 -1
  23. package/dist/actions/cohorts-list.d.cts +19 -3
  24. package/dist/actions/cohorts-list.d.mts +19 -3
  25. package/dist/actions/cohorts-list.mjs +2 -2
  26. package/dist/actions/cohorts-list.mjs.map +1 -1
  27. package/dist/actions/create-annotation-tag.cjs +1 -1
  28. package/dist/actions/create-annotation-tag.cjs.map +1 -1
  29. package/dist/actions/create-annotation-tag.d.cts +18 -2
  30. package/dist/actions/create-annotation-tag.d.mts +18 -2
  31. package/dist/actions/create-annotation-tag.mjs +1 -1
  32. package/dist/actions/create-annotation-tag.mjs.map +1 -1
  33. package/dist/actions/create-identity.cjs +1 -1
  34. package/dist/actions/create-identity.cjs.map +1 -1
  35. package/dist/actions/create-identity.d.cts +18 -2
  36. package/dist/actions/create-identity.d.mts +18 -2
  37. package/dist/actions/create-identity.mjs +1 -1
  38. package/dist/actions/create-identity.mjs.map +1 -1
  39. package/dist/actions/create-service-account.cjs +3 -3
  40. package/dist/actions/create-service-account.cjs.map +1 -1
  41. package/dist/actions/create-service-account.d.cts +21 -4
  42. package/dist/actions/create-service-account.d.mts +21 -4
  43. package/dist/actions/create-service-account.mjs +3 -3
  44. package/dist/actions/create-service-account.mjs.map +1 -1
  45. package/dist/actions/delete-group.cjs +1 -1
  46. package/dist/actions/delete-group.cjs.map +1 -1
  47. package/dist/actions/delete-group.d.cts +18 -2
  48. package/dist/actions/delete-group.d.mts +18 -2
  49. package/dist/actions/delete-group.mjs +1 -1
  50. package/dist/actions/delete-group.mjs.map +1 -1
  51. package/dist/actions/delete-profile-batch.cjs +2 -2
  52. package/dist/actions/delete-profile-batch.cjs.map +1 -1
  53. package/dist/actions/delete-profile-batch.d.cts +20 -3
  54. package/dist/actions/delete-profile-batch.d.mts +20 -3
  55. package/dist/actions/delete-profile-batch.mjs +2 -2
  56. package/dist/actions/delete-profile-batch.mjs.map +1 -1
  57. package/dist/actions/delete-profile-property.cjs +1 -1
  58. package/dist/actions/delete-profile-property.cjs.map +1 -1
  59. package/dist/actions/delete-profile-property.d.cts +18 -2
  60. package/dist/actions/delete-profile-property.d.mts +18 -2
  61. package/dist/actions/delete-profile-property.mjs +1 -1
  62. package/dist/actions/delete-profile-property.mjs.map +1 -1
  63. package/dist/actions/delete-profile.cjs +1 -1
  64. package/dist/actions/delete-profile.cjs.map +1 -1
  65. package/dist/actions/delete-profile.d.cts +18 -2
  66. package/dist/actions/delete-profile.d.mts +18 -2
  67. package/dist/actions/delete-profile.mjs +1 -1
  68. package/dist/actions/delete-profile.mjs.map +1 -1
  69. package/dist/actions/get-all-projects.cjs +1 -1
  70. package/dist/actions/get-all-projects.cjs.map +1 -1
  71. package/dist/actions/get-all-projects.d.cts +19 -3
  72. package/dist/actions/get-all-projects.d.cts.map +1 -1
  73. package/dist/actions/get-all-projects.d.mts +19 -3
  74. package/dist/actions/get-all-projects.d.mts.map +1 -1
  75. package/dist/actions/get-all-projects.mjs +1 -1
  76. package/dist/actions/get-all-projects.mjs.map +1 -1
  77. package/dist/actions/get-annotation-tags-alt1.cjs +2 -2
  78. package/dist/actions/get-annotation-tags-alt1.cjs.map +1 -1
  79. package/dist/actions/get-annotation-tags-alt1.d.cts +19 -3
  80. package/dist/actions/get-annotation-tags-alt1.d.mts +19 -3
  81. package/dist/actions/get-annotation-tags-alt1.mjs +2 -2
  82. package/dist/actions/get-annotation-tags-alt1.mjs.map +1 -1
  83. package/dist/actions/group-batch-update.cjs +3 -3
  84. package/dist/actions/group-batch-update.cjs.map +1 -1
  85. package/dist/actions/group-batch-update.d.cts +22 -5
  86. package/dist/actions/group-batch-update.d.mts +22 -5
  87. package/dist/actions/group-batch-update.mjs +3 -3
  88. package/dist/actions/group-batch-update.mjs.map +1 -1
  89. package/dist/actions/group-delete-property.cjs +1 -1
  90. package/dist/actions/group-delete-property.cjs.map +1 -1
  91. package/dist/actions/group-delete-property.d.cts +18 -2
  92. package/dist/actions/group-delete-property.d.mts +18 -2
  93. package/dist/actions/group-delete-property.mjs +1 -1
  94. package/dist/actions/group-delete-property.mjs.map +1 -1
  95. package/dist/actions/identity-create-alias.cjs +1 -1
  96. package/dist/actions/identity-create-alias.cjs.map +1 -1
  97. package/dist/actions/identity-create-alias.d.cts +18 -2
  98. package/dist/actions/identity-create-alias.d.mts +18 -2
  99. package/dist/actions/identity-create-alias.mjs +1 -1
  100. package/dist/actions/identity-create-alias.mjs.map +1 -1
  101. package/dist/actions/jql-query.cjs +1 -1
  102. package/dist/actions/jql-query.cjs.map +1 -1
  103. package/dist/actions/jql-query.d.cts +18 -2
  104. package/dist/actions/jql-query.d.cts.map +1 -1
  105. package/dist/actions/jql-query.d.mts +18 -2
  106. package/dist/actions/jql-query.d.mts.map +1 -1
  107. package/dist/actions/jql-query.mjs +1 -1
  108. package/dist/actions/jql-query.mjs.map +1 -1
  109. package/dist/actions/list-funnels.cjs +2 -2
  110. package/dist/actions/list-funnels.cjs.map +1 -1
  111. package/dist/actions/list-funnels.d.cts +19 -3
  112. package/dist/actions/list-funnels.d.mts +19 -3
  113. package/dist/actions/list-funnels.mjs +2 -2
  114. package/dist/actions/list-funnels.mjs.map +1 -1
  115. package/dist/actions/list-service-accounts.cjs +2 -2
  116. package/dist/actions/list-service-accounts.cjs.map +1 -1
  117. package/dist/actions/list-service-accounts.d.cts +19 -3
  118. package/dist/actions/list-service-accounts.d.mts +19 -3
  119. package/dist/actions/list-service-accounts.mjs +2 -2
  120. package/dist/actions/list-service-accounts.mjs.map +1 -1
  121. package/dist/actions/profile-append-to-list-property.cjs +2 -2
  122. package/dist/actions/profile-append-to-list-property.cjs.map +1 -1
  123. package/dist/actions/profile-append-to-list-property.d.cts +20 -3
  124. package/dist/actions/profile-append-to-list-property.d.cts.map +1 -1
  125. package/dist/actions/profile-append-to-list-property.d.mts +20 -3
  126. package/dist/actions/profile-append-to-list-property.d.mts.map +1 -1
  127. package/dist/actions/profile-append-to-list-property.mjs +2 -2
  128. package/dist/actions/profile-append-to-list-property.mjs.map +1 -1
  129. package/dist/actions/profile-batch-update.cjs +5 -5
  130. package/dist/actions/profile-batch-update.cjs.map +1 -1
  131. package/dist/actions/profile-batch-update.d.cts +25 -8
  132. package/dist/actions/profile-batch-update.d.mts +25 -8
  133. package/dist/actions/profile-batch-update.mjs +5 -5
  134. package/dist/actions/profile-batch-update.mjs.map +1 -1
  135. package/dist/actions/profile-event-activity.cjs +4 -4
  136. package/dist/actions/profile-event-activity.cjs.map +1 -1
  137. package/dist/actions/profile-event-activity.d.cts +21 -5
  138. package/dist/actions/profile-event-activity.d.mts +21 -5
  139. package/dist/actions/profile-event-activity.mjs +4 -4
  140. package/dist/actions/profile-event-activity.mjs.map +1 -1
  141. package/dist/actions/profile-numerical-add.cjs +2 -2
  142. package/dist/actions/profile-numerical-add.cjs.map +1 -1
  143. package/dist/actions/profile-numerical-add.d.cts +20 -4
  144. package/dist/actions/profile-numerical-add.d.cts.map +1 -1
  145. package/dist/actions/profile-numerical-add.d.mts +20 -4
  146. package/dist/actions/profile-numerical-add.d.mts.map +1 -1
  147. package/dist/actions/profile-numerical-add.mjs +2 -2
  148. package/dist/actions/profile-numerical-add.mjs.map +1 -1
  149. package/dist/actions/profile-remove-from-list-property.cjs +2 -2
  150. package/dist/actions/profile-remove-from-list-property.cjs.map +1 -1
  151. package/dist/actions/profile-remove-from-list-property.d.cts +20 -3
  152. package/dist/actions/profile-remove-from-list-property.d.cts.map +1 -1
  153. package/dist/actions/profile-remove-from-list-property.d.mts +20 -3
  154. package/dist/actions/profile-remove-from-list-property.d.mts.map +1 -1
  155. package/dist/actions/profile-remove-from-list-property.mjs +2 -2
  156. package/dist/actions/profile-remove-from-list-property.mjs.map +1 -1
  157. package/dist/actions/profile-set.cjs +1 -1
  158. package/dist/actions/profile-set.cjs.map +1 -1
  159. package/dist/actions/profile-set.d.cts +18 -2
  160. package/dist/actions/profile-set.d.cts.map +1 -1
  161. package/dist/actions/profile-set.d.mts +18 -2
  162. package/dist/actions/profile-set.d.mts.map +1 -1
  163. package/dist/actions/profile-set.mjs +1 -1
  164. package/dist/actions/profile-set.mjs.map +1 -1
  165. package/dist/actions/query-frequency-report.cjs +1 -1
  166. package/dist/actions/query-frequency-report.cjs.map +1 -1
  167. package/dist/actions/query-frequency-report.d.cts +19 -3
  168. package/dist/actions/query-frequency-report.d.mts +19 -3
  169. package/dist/actions/query-frequency-report.mjs +1 -1
  170. package/dist/actions/query-frequency-report.mjs.map +1 -1
  171. package/dist/actions/query-funnel.cjs +3 -3
  172. package/dist/actions/query-funnel.cjs.map +1 -1
  173. package/dist/actions/query-funnel.d.cts +20 -4
  174. package/dist/actions/query-funnel.d.mts +20 -4
  175. package/dist/actions/query-funnel.mjs +3 -3
  176. package/dist/actions/query-funnel.mjs.map +1 -1
  177. package/dist/actions/query-insight.cjs +3 -3
  178. package/dist/actions/query-insight.cjs.map +1 -1
  179. package/dist/actions/query-insight.d.cts +20 -4
  180. package/dist/actions/query-insight.d.mts +20 -4
  181. package/dist/actions/query-insight.mjs +3 -3
  182. package/dist/actions/query-insight.mjs.map +1 -1
  183. package/dist/actions/query-numeric-average.cjs +2 -2
  184. package/dist/actions/query-numeric-average.cjs.map +1 -1
  185. package/dist/actions/query-numeric-average.d.cts +19 -3
  186. package/dist/actions/query-numeric-average.d.mts +19 -3
  187. package/dist/actions/query-numeric-average.mjs +2 -2
  188. package/dist/actions/query-numeric-average.mjs.map +1 -1
  189. package/dist/actions/query-numeric-sum.cjs +2 -2
  190. package/dist/actions/query-numeric-sum.cjs.map +1 -1
  191. package/dist/actions/query-numeric-sum.d.cts +19 -3
  192. package/dist/actions/query-numeric-sum.d.mts +19 -3
  193. package/dist/actions/query-numeric-sum.mjs +2 -2
  194. package/dist/actions/query-numeric-sum.mjs.map +1 -1
  195. package/dist/actions/query-profiles.cjs +3 -3
  196. package/dist/actions/query-profiles.cjs.map +1 -1
  197. package/dist/actions/query-profiles.d.cts +21 -5
  198. package/dist/actions/query-profiles.d.cts.map +1 -1
  199. package/dist/actions/query-profiles.d.mts +21 -5
  200. package/dist/actions/query-profiles.d.mts.map +1 -1
  201. package/dist/actions/query-profiles.mjs +3 -3
  202. package/dist/actions/query-profiles.mjs.map +1 -1
  203. package/dist/actions/query-retention-report.cjs +1 -1
  204. package/dist/actions/query-retention-report.cjs.map +1 -1
  205. package/dist/actions/query-retention-report.d.cts +19 -3
  206. package/dist/actions/query-retention-report.d.mts +19 -3
  207. package/dist/actions/query-retention-report.mjs +1 -1
  208. package/dist/actions/query-retention-report.mjs.map +1 -1
  209. package/dist/actions/query-segmentation.cjs +3 -3
  210. package/dist/actions/query-segmentation.cjs.map +1 -1
  211. package/dist/actions/query-segmentation.d.cts +20 -4
  212. package/dist/actions/query-segmentation.d.mts +20 -4
  213. package/dist/actions/query-segmentation.mjs +3 -3
  214. package/dist/actions/query-segmentation.mjs.map +1 -1
  215. package/dist/actions/query-top-events.cjs +2 -2
  216. package/dist/actions/query-top-events.cjs.map +1 -1
  217. package/dist/actions/query-top-events.d.cts +19 -3
  218. package/dist/actions/query-top-events.d.mts +19 -3
  219. package/dist/actions/query-top-events.mjs +2 -2
  220. package/dist/actions/query-top-events.mjs.map +1 -1
  221. package/dist/actions/remove-from-group-list-property.cjs +2 -2
  222. package/dist/actions/remove-from-group-list-property.cjs.map +1 -1
  223. package/dist/actions/remove-from-group-list-property.d.cts +20 -3
  224. package/dist/actions/remove-from-group-list-property.d.cts.map +1 -1
  225. package/dist/actions/remove-from-group-list-property.d.mts +20 -3
  226. package/dist/actions/remove-from-group-list-property.d.mts.map +1 -1
  227. package/dist/actions/remove-from-group-list-property.mjs +2 -2
  228. package/dist/actions/remove-from-group-list-property.mjs.map +1 -1
  229. package/dist/actions/remove-from-list-property.cjs +1 -1
  230. package/dist/actions/remove-from-list-property.cjs.map +1 -1
  231. package/dist/actions/remove-from-list-property.d.cts +18 -2
  232. package/dist/actions/remove-from-list-property.d.cts.map +1 -1
  233. package/dist/actions/remove-from-list-property.d.mts +18 -2
  234. package/dist/actions/remove-from-list-property.d.mts.map +1 -1
  235. package/dist/actions/remove-from-list-property.mjs +1 -1
  236. package/dist/actions/remove-from-list-property.mjs.map +1 -1
  237. package/dist/actions/segmentation-numeric-query.cjs +2 -2
  238. package/dist/actions/segmentation-numeric-query.cjs.map +1 -1
  239. package/dist/actions/segmentation-numeric-query.d.cts +19 -3
  240. package/dist/actions/segmentation-numeric-query.d.mts +19 -3
  241. package/dist/actions/segmentation-numeric-query.mjs +2 -2
  242. package/dist/actions/segmentation-numeric-query.mjs.map +1 -1
  243. package/dist/actions/set-group-property-once.cjs +1 -1
  244. package/dist/actions/set-group-property-once.cjs.map +1 -1
  245. package/dist/actions/set-group-property-once.d.cts +18 -2
  246. package/dist/actions/set-group-property-once.d.cts.map +1 -1
  247. package/dist/actions/set-group-property-once.d.mts +18 -2
  248. package/dist/actions/set-group-property-once.d.mts.map +1 -1
  249. package/dist/actions/set-group-property-once.mjs +1 -1
  250. package/dist/actions/set-group-property-once.mjs.map +1 -1
  251. package/dist/actions/set-profile-property-once.cjs +1 -1
  252. package/dist/actions/set-profile-property-once.cjs.map +1 -1
  253. package/dist/actions/set-profile-property-once.d.cts +18 -2
  254. package/dist/actions/set-profile-property-once.d.cts.map +1 -1
  255. package/dist/actions/set-profile-property-once.d.mts +18 -2
  256. package/dist/actions/set-profile-property-once.d.mts.map +1 -1
  257. package/dist/actions/set-profile-property-once.mjs +1 -1
  258. package/dist/actions/set-profile-property-once.mjs.map +1 -1
  259. package/dist/actions/top-event-properties.d.cts +17 -1
  260. package/dist/actions/top-event-properties.d.mts +17 -1
  261. package/dist/actions/top-event-property-values.cjs +1 -1
  262. package/dist/actions/top-event-property-values.cjs.map +1 -1
  263. package/dist/actions/top-event-property-values.d.cts +18 -2
  264. package/dist/actions/top-event-property-values.d.mts +18 -2
  265. package/dist/actions/top-event-property-values.mjs +1 -1
  266. package/dist/actions/top-event-property-values.mjs.map +1 -1
  267. package/dist/actions/top-events.cjs +1 -1
  268. package/dist/actions/top-events.cjs.map +1 -1
  269. package/dist/actions/top-events.d.cts +18 -2
  270. package/dist/actions/top-events.d.mts +18 -2
  271. package/dist/actions/top-events.mjs +1 -1
  272. package/dist/actions/top-events.mjs.map +1 -1
  273. package/dist/actions/update-group-list-property.cjs +3 -3
  274. package/dist/actions/update-group-list-property.cjs.map +1 -1
  275. package/dist/actions/update-group-list-property.d.cts +22 -5
  276. package/dist/actions/update-group-list-property.d.cts.map +1 -1
  277. package/dist/actions/update-group-list-property.d.mts +22 -5
  278. package/dist/actions/update-group-list-property.d.mts.map +1 -1
  279. package/dist/actions/update-group-list-property.mjs +3 -3
  280. package/dist/actions/update-group-list-property.mjs.map +1 -1
  281. package/dist/app.cjs +9 -2
  282. package/dist/app.cjs.map +1 -1
  283. package/dist/app.d.cts +11 -1
  284. package/dist/app.d.cts.map +1 -1
  285. package/dist/app.d.mts +11 -1
  286. package/dist/app.d.mts.map +1 -1
  287. package/dist/app.mjs +7 -1
  288. package/dist/app.mjs.map +1 -1
  289. package/package.json +1 -1
@@ -12,7 +12,7 @@ declare const MixpanelQueryProfilesInput: z.ZodObject<{
12
12
  workspace_id: z.ZodOptional<z.ZodNumber>;
13
13
  data_group_id: z.ZodOptional<z.ZodString>;
14
14
  as_of_timestamp: z.ZodOptional<z.ZodNumber>;
15
- filter_by_cohort: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
15
+ filter_by_cohort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
16
16
  include_all_users: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
17
17
  output_properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
18
18
  }, z.core.$strip>;
@@ -23,10 +23,10 @@ declare const MixpanelQueryProfilesOutput: z.ZodObject<{
23
23
  results: z.ZodArray<z.ZodObject<{
24
24
  $properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
25
25
  $distinct_id: z.ZodNullable<z.ZodString>;
26
- }, z.core.$strip>>;
26
+ }, z.core.$loose>>;
27
27
  page_size: z.ZodNullable<z.ZodNumber>;
28
28
  session_id: z.ZodNullable<z.ZodString>;
29
- }, z.core.$strip>;
29
+ }, z.core.$loose>;
30
30
  declare const mixpanelQueryProfiles: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  project_id: number;
32
32
  page?: number | undefined;
@@ -38,10 +38,26 @@ declare const mixpanelQueryProfiles: import("@keystrokehq/action").WorkflowActio
38
38
  workspace_id?: number | undefined;
39
39
  data_group_id?: string | undefined;
40
40
  as_of_timestamp?: number | undefined;
41
- filter_by_cohort?: Record<string, never> | undefined;
41
+ filter_by_cohort?: Record<string, unknown> | undefined;
42
42
  include_all_users?: boolean | undefined;
43
43
  output_properties?: string[] | undefined;
44
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
44
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
45
+ connectionId: z.ZodString;
46
+ entityId: z.ZodString;
47
+ instanceId: z.ZodString;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ username: z.ZodString;
50
+ password: z.ZodString;
51
+ region: z.ZodString;
52
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
53
+ connectionId: z.ZodString;
54
+ entityId: z.ZodString;
55
+ instanceId: z.ZodString;
56
+ }, z.core.$strip>, z.ZodObject<{
57
+ username: z.ZodString;
58
+ password: z.ZodString;
59
+ region: z.ZodString;
60
+ }, z.core.$strip>>]>;
45
61
  //#endregion
46
62
  export { mixpanelQueryProfiles };
47
63
  //# 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,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAmB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA;;;;;;;;;;;qBAMhC,MAAA"}
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"}
@@ -12,14 +12,14 @@ const MixpanelQueryProfilesInput = z.object({
12
12
  workspace_id: z.number().int().describe("The ID of the workspace if applicable").optional(),
13
13
  data_group_id: z.string().describe("The ID of the group key, used when querying group profiles").optional(),
14
14
  as_of_timestamp: z.number().int().describe("Used with behaviors parameter for large exports").optional(),
15
- filter_by_cohort: z.object({}).describe("Filter by cohort ID. Example: {'id': 12345}").optional(),
15
+ filter_by_cohort: z.record(z.string(), z.unknown()).describe("Filter by cohort ID. Example: {'id': 12345}").optional(),
16
16
  include_all_users: z.boolean().default(true).describe("When using filter_by_cohort, whether to include all distinct_ids even without profiles").optional(),
17
17
  output_properties: z.array(z.string()).describe("List of property names to return in the response").optional()
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
21
  $distinct_id: z.string().describe("The unique identifier of the user or group profile").nullable()
22
- }).describe("Model for a single profile result.");
22
+ }).passthrough().describe("Model for a single profile result.");
23
23
  const mixpanelQueryProfiles = action("MIXPANEL_QUERY_PROFILES", {
24
24
  slug: "mixpanel-query-profiles",
25
25
  name: "Query Profiles",
@@ -32,7 +32,7 @@ const mixpanelQueryProfiles = action("MIXPANEL_QUERY_PROFILES", {
32
32
  results: z.array(MixpanelQueryProfiles_ProfileResultSchema).describe("Array of user or group profile objects matching the query criteria"),
33
33
  page_size: z.number().int().describe("The max number of results in a single page").nullable(),
34
34
  session_id: z.string().describe("Session identifier for pagination and caching purposes").nullable()
35
- }).describe("Response model for profile query data.")
35
+ }).passthrough().describe("Response model for profile query data.")
36
36
  });
37
37
  //#endregion
38
38
  export { mixpanelQueryProfiles };
@@ -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.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
+ {"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.record(z.string(), z.unknown()).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}).passthrough().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}).passthrough().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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrH,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,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAU9D,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,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -21,7 +21,7 @@ const MixpanelQueryRetentionReportInput = zod.z.object({
21
21
  retention_type: zod.z.enum(["birth", "compounded"]).default("birth").describe("Type of retention analysis: 'birth' for first-time retention or 'compounded' for recurring retention").optional(),
22
22
  unbounded_retention: zod.z.boolean().default(false).describe("When true, uses accumulation method where values accumulate from right to left").optional()
23
23
  }).describe("Request model for querying retention report from Mixpanel Query API");
24
- const MixpanelQueryRetentionReportOutput = zod.z.object({ data: zod.z.object({}).describe("Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size") }).describe("Response model for retention report query from Mixpanel Query API");
24
+ const MixpanelQueryRetentionReportOutput = zod.z.object({ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size") }).passthrough().describe("Response model for retention report query from Mixpanel Query API");
25
25
  const mixpanelQueryRetentionReport = require_action.action("MIXPANEL_QUERY_RETENTION_REPORT", {
26
26
  slug: "mixpanel-query-retention-report",
27
27
  name: "Query Retention Report",
@@ -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.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
+ {"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.record(z.string(), z.unknown()).describe(\"Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size\"),\n}).passthrough().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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,EACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAE7F,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -25,8 +25,8 @@ declare const MixpanelQueryRetentionReportInput: z.ZodObject<{
25
25
  unbounded_retention: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
26
26
  }, z.core.$strip>;
27
27
  declare const MixpanelQueryRetentionReportOutput: z.ZodObject<{
28
- data: z.ZodObject<{}, z.core.$strip>;
29
- }, z.core.$strip>;
28
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
29
+ }, z.core.$loose>;
30
30
  declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  to_date: string;
32
32
  from_date: string;
@@ -42,7 +42,23 @@ declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").Workfl
42
42
  interval_count?: number | undefined;
43
43
  retention_type?: "birth" | "compounded" | undefined;
44
44
  unbounded_retention?: boolean | undefined;
45
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
45
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
46
+ connectionId: z.ZodString;
47
+ entityId: z.ZodString;
48
+ instanceId: z.ZodString;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ username: z.ZodString;
51
+ password: z.ZodString;
52
+ region: z.ZodString;
53
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
54
+ connectionId: z.ZodString;
55
+ entityId: z.ZodString;
56
+ instanceId: z.ZodString;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ username: z.ZodString;
59
+ password: z.ZodString;
60
+ region: z.ZodString;
61
+ }, z.core.$strip>>]>;
46
62
  //#endregion
47
63
  export { mixpanelQueryRetentionReport };
48
64
  //# sourceMappingURL=query-retention-report.d.cts.map
@@ -25,8 +25,8 @@ declare const MixpanelQueryRetentionReportInput: z.ZodObject<{
25
25
  unbounded_retention: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
26
26
  }, z.core.$strip>;
27
27
  declare const MixpanelQueryRetentionReportOutput: z.ZodObject<{
28
- data: z.ZodObject<{}, z.core.$strip>;
29
- }, z.core.$strip>;
28
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
29
+ }, z.core.$loose>;
30
30
  declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  to_date: string;
32
32
  from_date: string;
@@ -42,7 +42,23 @@ declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").Workfl
42
42
  interval_count?: number | undefined;
43
43
  retention_type?: "birth" | "compounded" | undefined;
44
44
  unbounded_retention?: boolean | undefined;
45
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
45
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
46
+ connectionId: z.ZodString;
47
+ entityId: z.ZodString;
48
+ instanceId: z.ZodString;
49
+ }, z.core.$strip>, z.ZodObject<{
50
+ username: z.ZodString;
51
+ password: z.ZodString;
52
+ region: z.ZodString;
53
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
54
+ connectionId: z.ZodString;
55
+ entityId: z.ZodString;
56
+ instanceId: z.ZodString;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ username: z.ZodString;
59
+ password: z.ZodString;
60
+ region: z.ZodString;
61
+ }, z.core.$strip>>]>;
46
62
  //#endregion
47
63
  export { mixpanelQueryRetentionReport };
48
64
  //# sourceMappingURL=query-retention-report.d.mts.map
@@ -24,7 +24,7 @@ const mixpanelQueryRetentionReport = action("MIXPANEL_QUERY_RETENTION_REPORT", {
24
24
  retention_type: z.enum(["birth", "compounded"]).default("birth").describe("Type of retention analysis: 'birth' for first-time retention or 'compounded' for recurring retention").optional(),
25
25
  unbounded_retention: z.boolean().default(false).describe("When true, uses accumulation method where values accumulate from right to left").optional()
26
26
  }).describe("Request model for querying retention report from Mixpanel Query API"),
27
- output: z.object({ data: z.object({}).describe("Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size") }).describe("Response model for retention report query from Mixpanel Query API")
27
+ output: z.object({ data: z.record(z.string(), z.unknown()).describe("Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size") }).passthrough().describe("Response model for retention report query from Mixpanel Query API")
28
28
  });
29
29
  //#endregion
30
30
  export { mixpanelQueryRetentionReport };
@@ -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.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"}
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.record(z.string(), z.unknown()).describe(\"Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size\"),\n}).passthrough().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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,EACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAOhB;AACV,CAAC"}
@@ -24,12 +24,12 @@ const MixpanelQuerySegmentationInput = zod.z.object({
24
24
  }).describe("Request model for querying segmentation data");
25
25
  const MixpanelQuerySegmentation_SegmentationDataSchema = zod.z.object({
26
26
  series: zod.z.array(zod.z.string()).describe("All dates we have data for in the response"),
27
- values: zod.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")
28
- }).describe("Container for segmentation query results");
27
+ values: zod.z.record(zod.z.string(), zod.z.unknown()).describe("A mapping of event names to date-value pairs, where each date maps to the number of specified events that took place")
28
+ }).passthrough().describe("Container for segmentation query results");
29
29
  const MixpanelQuerySegmentationOutput = zod.z.object({
30
30
  data: MixpanelQuerySegmentation_SegmentationDataSchema.nullable(),
31
31
  legend_size: zod.z.number().int().describe("Count of all events in the values object").nullable()
32
- }).describe("Response model for segmentation query data");
32
+ }).passthrough().describe("Response model for segmentation query data");
33
33
  const mixpanelQuerySegmentation = require_action.action("MIXPANEL_QUERY_SEGMENTATION", {
34
34
  slug: "mixpanel-query-segmentation",
35
35
  name: "Query Segmentation Report",
@@ -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.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"}
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.record(z.string(), z.unknown()).describe(\"A mapping of event names to date-value pairs, where each date maps to the number of specified events that took place\"),\n}).passthrough().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}).passthrough().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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH;AAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,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,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -25,10 +25,10 @@ declare const MixpanelQuerySegmentationInput: z.ZodObject<{
25
25
  declare const MixpanelQuerySegmentationOutput: z.ZodObject<{
26
26
  data: z.ZodNullable<z.ZodObject<{
27
27
  series: z.ZodArray<z.ZodString>;
28
- values: z.ZodObject<{}, z.core.$strip>;
29
- }, z.core.$strip>>;
28
+ values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
29
+ }, z.core.$loose>>;
30
30
  legend_size: z.ZodNullable<z.ZodNumber>;
31
- }, z.core.$strip>;
31
+ }, z.core.$loose>;
32
32
  declare const mixpanelQuerySegmentation: import("@keystrokehq/action").WorkflowActionDefinition<{
33
33
  event: string;
34
34
  to_date: string;
@@ -40,7 +40,23 @@ declare const mixpanelQuerySegmentation: import("@keystrokehq/action").WorkflowA
40
40
  limit?: number | undefined;
41
41
  where?: string | undefined;
42
42
  workspace_id?: number | undefined;
43
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
44
+ connectionId: z.ZodString;
45
+ entityId: z.ZodString;
46
+ instanceId: z.ZodString;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ username: z.ZodString;
49
+ password: z.ZodString;
50
+ region: z.ZodString;
51
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
52
+ connectionId: z.ZodString;
53
+ entityId: z.ZodString;
54
+ instanceId: z.ZodString;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ username: z.ZodString;
57
+ password: z.ZodString;
58
+ region: z.ZodString;
59
+ }, z.core.$strip>>]>;
44
60
  //#endregion
45
61
  export { mixpanelQuerySegmentation };
46
62
  //# sourceMappingURL=query-segmentation.d.cts.map
@@ -25,10 +25,10 @@ declare const MixpanelQuerySegmentationInput: z.ZodObject<{
25
25
  declare const MixpanelQuerySegmentationOutput: z.ZodObject<{
26
26
  data: z.ZodNullable<z.ZodObject<{
27
27
  series: z.ZodArray<z.ZodString>;
28
- values: z.ZodObject<{}, z.core.$strip>;
29
- }, z.core.$strip>>;
28
+ values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
29
+ }, z.core.$loose>>;
30
30
  legend_size: z.ZodNullable<z.ZodNumber>;
31
- }, z.core.$strip>;
31
+ }, z.core.$loose>;
32
32
  declare const mixpanelQuerySegmentation: import("@keystrokehq/action").WorkflowActionDefinition<{
33
33
  event: string;
34
34
  to_date: string;
@@ -40,7 +40,23 @@ declare const mixpanelQuerySegmentation: import("@keystrokehq/action").WorkflowA
40
40
  limit?: number | undefined;
41
41
  where?: string | undefined;
42
42
  workspace_id?: number | undefined;
43
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
44
+ connectionId: z.ZodString;
45
+ entityId: z.ZodString;
46
+ instanceId: z.ZodString;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ username: z.ZodString;
49
+ password: z.ZodString;
50
+ region: z.ZodString;
51
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
52
+ connectionId: z.ZodString;
53
+ entityId: z.ZodString;
54
+ instanceId: z.ZodString;
55
+ }, z.core.$strip>, z.ZodObject<{
56
+ username: z.ZodString;
57
+ password: z.ZodString;
58
+ region: z.ZodString;
59
+ }, z.core.$strip>>]>;
44
60
  //#endregion
45
61
  export { mixpanelQuerySegmentation };
46
62
  //# sourceMappingURL=query-segmentation.d.mts.map
@@ -24,8 +24,8 @@ const MixpanelQuerySegmentationInput = z.object({
24
24
  }).describe("Request model for querying segmentation data");
25
25
  const MixpanelQuerySegmentation_SegmentationDataSchema = z.object({
26
26
  series: z.array(z.string()).describe("All dates we have data for in the response"),
27
- 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")
28
- }).describe("Container for segmentation query results");
27
+ values: z.record(z.string(), z.unknown()).describe("A mapping of event names to date-value pairs, where each date maps to the number of specified events that took place")
28
+ }).passthrough().describe("Container for segmentation query results");
29
29
  const mixpanelQuerySegmentation = action("MIXPANEL_QUERY_SEGMENTATION", {
30
30
  slug: "mixpanel-query-segmentation",
31
31
  name: "Query Segmentation Report",
@@ -34,7 +34,7 @@ const mixpanelQuerySegmentation = action("MIXPANEL_QUERY_SEGMENTATION", {
34
34
  output: z.object({
35
35
  data: MixpanelQuerySegmentation_SegmentationDataSchema.nullable(),
36
36
  legend_size: z.number().int().describe("Count of all events in the values object").nullable()
37
- }).describe("Response model for segmentation query data")
37
+ }).passthrough().describe("Response model for segmentation query data")
38
38
  });
39
39
  //#endregion
40
40
  export { mixpanelQuerySegmentation };
@@ -1 +1 @@
1
- {"version":3,"file":"query-segmentation.mjs","names":[],"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,iCAAiC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CAClN,MAAM,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtI,MAAM,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL;CAClN,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8MAA8M;CACpP,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,mDAAmD,EAAE,OAAO;CAChE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sHAAsH;AACtJ,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAMtD,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,iDAAiD,SAAS;EAChE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"query-segmentation.mjs","names":[],"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.record(z.string(), z.unknown()).describe(\"A mapping of event names to date-value pairs, where each date maps to the number of specified events that took place\"),\n}).passthrough().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}).passthrough().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,iCAAiC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CAClN,MAAM,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtI,MAAM,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL;CAClN,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8MAA8M;CACpP,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,mDAAmD,EAAE,OAAO;CAChE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACjF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH;AAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAMpE,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,iDAAiD,SAAS;EAChE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -20,11 +20,11 @@ const MixpanelQueryTopEvents_EventItemSchema = zod.z.object({
20
20
  event: zod.z.string().describe("The name of the event").nullable(),
21
21
  amount: zod.z.number().describe("Number of events (integer for general/unique types, float for average type)").nullable(),
22
22
  percent_change: zod.z.number().describe("The percent change from yesterday").nullable()
23
- }).describe("Model for individual event in the response");
23
+ }).passthrough().describe("Model for individual event in the response");
24
24
  const MixpanelQueryTopEventsOutput = zod.z.object({
25
25
  type: MixpanelQueryTopEvents_AnalysisTypeSchema.nullable(),
26
26
  events: zod.z.array(MixpanelQueryTopEvents_EventItemSchema).describe("List of top events with their statistics")
27
- }).describe("Response model for top events query");
27
+ }).passthrough().describe("Response model for top events query");
28
28
  const mixpanelQueryTopEvents = require_action.action("MIXPANEL_QUERY_TOP_EVENTS", {
29
29
  slug: "mixpanel-query-top-events",
30
30
  name: "Query Top Events",
@@ -1 +1 @@
1
- {"version":3,"file":"query-top-events.cjs","names":["z","action"],"sources":["../../src/actions/query-top-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryTopEventsInput = z.object({\n type: z.enum([\"general\", \"unique\", \"average\"]).describe(\"The analysis type - general, unique, or average\"),\n limit: z.number().int().default(100).describe(\"Maximum number of events to return\").optional(),\n project_id: z.number().int().describe(\"The project identifier. Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The workspace identifier if applicable\").optional(),\n}).describe(\"Request model for querying top events\");\nconst MixpanelQueryTopEvents_AnalysisTypeSchema = z.enum([\"general\", \"unique\", \"average\"]).describe(\"Analysis types for Mixpanel event aggregation.\");\nconst MixpanelQueryTopEvents_EventItemSchema = z.object({\n event: z.string().describe(\"The name of the event\").nullable(),\n amount: z.number().describe(\"Number of events (integer for general/unique types, float for average type)\").nullable(),\n percent_change: z.number().describe(\"The percent change from yesterday\").nullable(),\n}).describe(\"Model for individual event in the response\");\nexport const MixpanelQueryTopEventsOutput = z.object({\n type: MixpanelQueryTopEvents_AnalysisTypeSchema.nullable(),\n events: z.array(MixpanelQueryTopEvents_EventItemSchema).describe(\"List of top events with their statistics\"),\n}).describe(\"Response model for top events query\");\n\nexport const mixpanelQueryTopEvents = action(\"MIXPANEL_QUERY_TOP_EVENTS\", {\n slug: \"mixpanel-query-top-events\",\n name: \"Query Top Events\",\n description: \"Get the top events for today, with their counts and the normalized percent change from yesterday. Use when you need to analyze today's event performance compared to yesterday.\",\n input: MixpanelQueryTopEventsInput,\n output: MixpanelQueryTopEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,iDAAiD;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4CA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAU;AAAS,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpJ,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,0CAA0C,SAAS;CACzD,QAAQA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0CAA0C;AAC7G,CAAC,CAAC,CAAC,SAAS,qCAAqC;AAEjD,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"query-top-events.cjs","names":["z","action"],"sources":["../../src/actions/query-top-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryTopEventsInput = z.object({\n type: z.enum([\"general\", \"unique\", \"average\"]).describe(\"The analysis type - general, unique, or average\"),\n limit: z.number().int().default(100).describe(\"Maximum number of events to return\").optional(),\n project_id: z.number().int().describe(\"The project identifier. Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The workspace identifier if applicable\").optional(),\n}).describe(\"Request model for querying top events\");\nconst MixpanelQueryTopEvents_AnalysisTypeSchema = z.enum([\"general\", \"unique\", \"average\"]).describe(\"Analysis types for Mixpanel event aggregation.\");\nconst MixpanelQueryTopEvents_EventItemSchema = z.object({\n event: z.string().describe(\"The name of the event\").nullable(),\n amount: z.number().describe(\"Number of events (integer for general/unique types, float for average type)\").nullable(),\n percent_change: z.number().describe(\"The percent change from yesterday\").nullable(),\n}).passthrough().describe(\"Model for individual event in the response\");\nexport const MixpanelQueryTopEventsOutput = z.object({\n type: MixpanelQueryTopEvents_AnalysisTypeSchema.nullable(),\n events: z.array(MixpanelQueryTopEvents_EventItemSchema).describe(\"List of top events with their statistics\"),\n}).passthrough().describe(\"Response model for top events query\");\n\nexport const mixpanelQueryTopEvents = action(\"MIXPANEL_QUERY_TOP_EVENTS\", {\n slug: \"mixpanel-query-top-events\",\n name: \"Query Top Events\",\n description: \"Get the top events for today, with their counts and the normalized percent change from yesterday. Use when you need to analyze today's event performance compared to yesterday.\",\n input: MixpanelQueryTopEventsInput,\n output: MixpanelQueryTopEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,iDAAiD;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4CA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAU;AAAS,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpJ,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,0CAA0C,SAAS;CACzD,QAAQA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0CAA0C;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -21,14 +21,30 @@ declare const MixpanelQueryTopEventsOutput: z.ZodObject<{
21
21
  event: z.ZodNullable<z.ZodString>;
22
22
  amount: z.ZodNullable<z.ZodNumber>;
23
23
  percent_change: z.ZodNullable<z.ZodNumber>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
26
  declare const mixpanelQueryTopEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  type: "general" | "unique" | "average";
28
28
  project_id: number;
29
29
  limit?: number | undefined;
30
30
  workspace_id?: number | undefined;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
32
+ connectionId: z.ZodString;
33
+ entityId: z.ZodString;
34
+ instanceId: z.ZodString;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ username: z.ZodString;
37
+ password: z.ZodString;
38
+ region: z.ZodString;
39
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
40
+ connectionId: z.ZodString;
41
+ entityId: z.ZodString;
42
+ instanceId: z.ZodString;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ username: z.ZodString;
45
+ password: z.ZodString;
46
+ region: z.ZodString;
47
+ }, z.core.$strip>>]>;
32
48
  //#endregion
33
49
  export { mixpanelQueryTopEvents };
34
50
  //# sourceMappingURL=query-top-events.d.cts.map
@@ -21,14 +21,30 @@ declare const MixpanelQueryTopEventsOutput: z.ZodObject<{
21
21
  event: z.ZodNullable<z.ZodString>;
22
22
  amount: z.ZodNullable<z.ZodNumber>;
23
23
  percent_change: z.ZodNullable<z.ZodNumber>;
24
- }, z.core.$strip>>;
25
- }, z.core.$strip>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
26
  declare const mixpanelQueryTopEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
27
27
  type: "general" | "unique" | "average";
28
28
  project_id: number;
29
29
  limit?: number | undefined;
30
30
  workspace_id?: number | undefined;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
32
+ connectionId: z.ZodString;
33
+ entityId: z.ZodString;
34
+ instanceId: z.ZodString;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ username: z.ZodString;
37
+ password: z.ZodString;
38
+ region: z.ZodString;
39
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
40
+ connectionId: z.ZodString;
41
+ entityId: z.ZodString;
42
+ instanceId: z.ZodString;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ username: z.ZodString;
45
+ password: z.ZodString;
46
+ region: z.ZodString;
47
+ }, z.core.$strip>>]>;
32
48
  //#endregion
33
49
  export { mixpanelQueryTopEvents };
34
50
  //# sourceMappingURL=query-top-events.d.mts.map
@@ -20,7 +20,7 @@ const MixpanelQueryTopEvents_EventItemSchema = z.object({
20
20
  event: z.string().describe("The name of the event").nullable(),
21
21
  amount: z.number().describe("Number of events (integer for general/unique types, float for average type)").nullable(),
22
22
  percent_change: z.number().describe("The percent change from yesterday").nullable()
23
- }).describe("Model for individual event in the response");
23
+ }).passthrough().describe("Model for individual event in the response");
24
24
  const mixpanelQueryTopEvents = action("MIXPANEL_QUERY_TOP_EVENTS", {
25
25
  slug: "mixpanel-query-top-events",
26
26
  name: "Query Top Events",
@@ -29,7 +29,7 @@ const mixpanelQueryTopEvents = action("MIXPANEL_QUERY_TOP_EVENTS", {
29
29
  output: z.object({
30
30
  type: MixpanelQueryTopEvents_AnalysisTypeSchema.nullable(),
31
31
  events: z.array(MixpanelQueryTopEvents_EventItemSchema).describe("List of top events with their statistics")
32
- }).describe("Response model for top events query")
32
+ }).passthrough().describe("Response model for top events query")
33
33
  });
34
34
  //#endregion
35
35
  export { mixpanelQueryTopEvents };
@@ -1 +1 @@
1
- {"version":3,"file":"query-top-events.mjs","names":[],"sources":["../../src/actions/query-top-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryTopEventsInput = z.object({\n type: z.enum([\"general\", \"unique\", \"average\"]).describe(\"The analysis type - general, unique, or average\"),\n limit: z.number().int().default(100).describe(\"Maximum number of events to return\").optional(),\n project_id: z.number().int().describe(\"The project identifier. Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The workspace identifier if applicable\").optional(),\n}).describe(\"Request model for querying top events\");\nconst MixpanelQueryTopEvents_AnalysisTypeSchema = z.enum([\"general\", \"unique\", \"average\"]).describe(\"Analysis types for Mixpanel event aggregation.\");\nconst MixpanelQueryTopEvents_EventItemSchema = z.object({\n event: z.string().describe(\"The name of the event\").nullable(),\n amount: z.number().describe(\"Number of events (integer for general/unique types, float for average type)\").nullable(),\n percent_change: z.number().describe(\"The percent change from yesterday\").nullable(),\n}).describe(\"Model for individual event in the response\");\nexport const MixpanelQueryTopEventsOutput = z.object({\n type: MixpanelQueryTopEvents_AnalysisTypeSchema.nullable(),\n events: z.array(MixpanelQueryTopEvents_EventItemSchema).describe(\"List of top events with their statistics\"),\n}).describe(\"Response model for top events query\");\n\nexport const mixpanelQueryTopEvents = action(\"MIXPANEL_QUERY_TOP_EVENTS\", {\n slug: \"mixpanel-query-top-events\",\n name: \"Query Top Events\",\n description: \"Get the top events for today, with their counts and the normalized percent change from yesterday. Use when you need to analyze today's event performance compared to yesterday.\",\n input: MixpanelQueryTopEventsInput,\n output: MixpanelQueryTopEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,iDAAiD;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4C,EAAE,KAAK;CAAC;CAAW;CAAU;AAAS,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpJ,MAAM,yCAAyC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAMxD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,0CAA0C,SAAS;EACzD,QAAQ,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0CAA0C;CAC7G,CAAC,CAAC,CAAC,SAAS,qCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"query-top-events.mjs","names":[],"sources":["../../src/actions/query-top-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryTopEventsInput = z.object({\n type: z.enum([\"general\", \"unique\", \"average\"]).describe(\"The analysis type - general, unique, or average\"),\n limit: z.number().int().default(100).describe(\"Maximum number of events to return\").optional(),\n project_id: z.number().int().describe(\"The project identifier. Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The workspace identifier if applicable\").optional(),\n}).describe(\"Request model for querying top events\");\nconst MixpanelQueryTopEvents_AnalysisTypeSchema = z.enum([\"general\", \"unique\", \"average\"]).describe(\"Analysis types for Mixpanel event aggregation.\");\nconst MixpanelQueryTopEvents_EventItemSchema = z.object({\n event: z.string().describe(\"The name of the event\").nullable(),\n amount: z.number().describe(\"Number of events (integer for general/unique types, float for average type)\").nullable(),\n percent_change: z.number().describe(\"The percent change from yesterday\").nullable(),\n}).passthrough().describe(\"Model for individual event in the response\");\nexport const MixpanelQueryTopEventsOutput = z.object({\n type: MixpanelQueryTopEvents_AnalysisTypeSchema.nullable(),\n events: z.array(MixpanelQueryTopEvents_EventItemSchema).describe(\"List of top events with their statistics\"),\n}).passthrough().describe(\"Response model for top events query\");\n\nexport const mixpanelQueryTopEvents = action(\"MIXPANEL_QUERY_TOP_EVENTS\", {\n slug: \"mixpanel-query-top-events\",\n name: \"Query Top Events\",\n description: \"Get the top events for today, with their counts and the normalized percent change from yesterday. Use when you need to analyze today's event performance compared to yesterday.\",\n input: MixpanelQueryTopEventsInput,\n output: MixpanelQueryTopEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,iDAAiD;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4C,EAAE,KAAK;CAAC;CAAW;CAAU;AAAS,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpJ,MAAM,yCAAyC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAMtE,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,0CAA0C,SAAS;EACzD,QAAQ,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0CAA0C;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAOhB;AACV,CAAC"}
@@ -6,12 +6,12 @@ const MixpanelRemoveFromGroupListPropertyInput = zod.z.object({ data: zod.z.arra
6
6
  remove: zod.z.record(zod.z.string(), zod.z.unknown()).describe("A JSON object containing key-value pairs where each key is a list property name and each value is the item to remove from that list property. If the value doesn't exist in the list, no updates are made."),
7
7
  group_id: zod.z.string().describe("The unique identifier for the group"),
8
8
  group_key: zod.z.string().describe("The group category/type (e.g., 'Company', 'Organization')")
9
- }).describe("Individual group profile update object for removing from list properties.")).describe("A list of group profile update objects. Each object must contain $token, $group_key, $group_id, and $remove properties.") }).describe("Request model for removing values from list properties on group profiles.");
9
+ }).passthrough().describe("Individual group profile update object for removing from list properties.")).describe("A list of group profile update objects. Each object must contain $token, $group_key, $group_id, and $remove properties.") }).describe("Request model for removing values from list properties on group profiles.");
10
10
  const MixpanelRemoveFromGroupListPropertyOutput = zod.z.object({
11
11
  code: zod.z.number().int().describe("HTTP status code (200 for success)").nullable().optional(),
12
12
  error: zod.z.string().describe("Error message if the request failed, null if successful.").nullable().optional(),
13
13
  status: zod.z.union([zod.z.string(), zod.z.number().int()])
14
- }).describe("Response model for group remove operation.");
14
+ }).passthrough().describe("Response model for group remove operation.");
15
15
  const mixpanelRemoveFromGroupListProperty = require_action.action("MIXPANEL_REMOVE_FROM_GROUP_LIST_PROPERTY", {
16
16
  slug: "mixpanel-remove-from-group-list-property",
17
17
  name: "Remove from Group List Property",
@@ -1 +1 @@
1
- {"version":3,"file":"remove-from-group-list-property.cjs","names":["z","action"],"sources":["../../src/actions/remove-from-group-list-property.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelRemoveFromGroupListPropertyInput = z.object({\n data: z.array(z.object({\n token: z.string().describe(\"Your Mixpanel project authentication token\"),\n remove: z.record(z.string(), z.unknown()).describe(\"A JSON object containing key-value pairs where each key is a list property name and each value is the item to remove from that list property. If the value doesn't exist in the list, no updates are made.\"),\n group_id: z.string().describe(\"The unique identifier for the group\"),\n group_key: z.string().describe(\"The group category/type (e.g., 'Company', 'Organization')\"),\n}).describe(\"Individual group profile update object for removing from list properties.\")).describe(\"A list of group profile update objects. Each object must contain $token, $group_key, $group_id, and $remove properties.\"),\n}).describe(\"Request model for removing values from list properties on group profiles.\");\nexport const MixpanelRemoveFromGroupListPropertyOutput = z.object({\n code: z.number().int().describe(\"HTTP status code (200 for success)\").nullable().optional(),\n error: z.string().describe(\"Error message if the request failed, null if successful.\").nullable().optional(),\n status: z.union([z.string(), z.number().int()]),\n}).describe(\"Response model for group remove operation.\");\n\nexport const mixpanelRemoveFromGroupListProperty = action(\"MIXPANEL_REMOVE_FROM_GROUP_LIST_PROPERTY\", {\n slug: \"mixpanel-remove-from-group-list-property\",\n name: \"Remove from Group List Property\",\n description: \"Tool to remove values from list properties on group profiles in Mixpanel. Use when you need to remove specific items from list-type properties on groups (companies, organizations, etc.). If the value doesn't exist in the list, no updates are made. If the property doesn't exist or is not list-valued, the operation is ignored.\",\n input: MixpanelRemoveFromGroupListPropertyInput,\n output: MixpanelRemoveFromGroupListPropertyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO,EAC/D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACvB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACvE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4MAA4M;CAC/P,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AAC5F,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,CAAC,SAAS,yHAAyH,EAC5N,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"remove-from-group-list-property.cjs","names":["z","action"],"sources":["../../src/actions/remove-from-group-list-property.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelRemoveFromGroupListPropertyInput = z.object({\n data: z.array(z.object({\n token: z.string().describe(\"Your Mixpanel project authentication token\"),\n remove: z.record(z.string(), z.unknown()).describe(\"A JSON object containing key-value pairs where each key is a list property name and each value is the item to remove from that list property. If the value doesn't exist in the list, no updates are made.\"),\n group_id: z.string().describe(\"The unique identifier for the group\"),\n group_key: z.string().describe(\"The group category/type (e.g., 'Company', 'Organization')\"),\n}).passthrough().describe(\"Individual group profile update object for removing from list properties.\")).describe(\"A list of group profile update objects. Each object must contain $token, $group_key, $group_id, and $remove properties.\"),\n}).describe(\"Request model for removing values from list properties on group profiles.\");\nexport const MixpanelRemoveFromGroupListPropertyOutput = z.object({\n code: z.number().int().describe(\"HTTP status code (200 for success)\").nullable().optional(),\n error: z.string().describe(\"Error message if the request failed, null if successful.\").nullable().optional(),\n status: z.union([z.string(), z.number().int()]),\n}).passthrough().describe(\"Response model for group remove operation.\");\n\nexport const mixpanelRemoveFromGroupListProperty = action(\"MIXPANEL_REMOVE_FROM_GROUP_LIST_PROPERTY\", {\n slug: \"mixpanel-remove-from-group-list-property\",\n name: \"Remove from Group List Property\",\n description: \"Tool to remove values from list properties on group profiles in Mixpanel. Use when you need to remove specific items from list-type properties on groups (companies, organizations, etc.). If the value doesn't exist in the list, no updates are made. If the property doesn't exist or is not list-valued, the operation is ignored.\",\n input: MixpanelRemoveFromGroupListPropertyInput,\n output: MixpanelRemoveFromGroupListPropertyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO,EAC/D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;CACvB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACvE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4MAA4M;CAC/P,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACnE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,CAAC,SAAS,yHAAyH,EAC1O,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}