@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
@@ -6,10 +6,10 @@ const MixpanelAddUniqueToProfileListPropertyInput = zod.z.object({
6
6
  data: zod.z.array(zod.z.object({
7
7
  ip: zod.z.string().describe("IP address for geolocation enrichment. Set to '0' to prevent updating geolocation data. If not provided, Mixpanel uses the request IP. Geolocation properties ($city, $region, mp_country_code) are derived and the IP is discarded.").optional(),
8
8
  token: zod.z.string().describe("Your Mixpanel project authentication token. Required for authenticating the request."),
9
- union: zod.z.object({}).describe("A JSON object containing key-value pairs where each key is a property name and each value is a list of items to union with that list property. Union adds values to a list property, excluding duplicates. If the property doesn't exist, it creates a new list with the provided values."),
9
+ union: zod.z.record(zod.z.string(), zod.z.unknown()).describe("A JSON object containing key-value pairs where each key is a property name and each value is a list of items to union with that list property. Union adds values to a list property, excluding duplicates. If the property doesn't exist, it creates a new list with the provided values."),
10
10
  distinct_id: zod.z.string().describe("The unique identifier for the user profile to update. This determines which profile will be modified."),
11
11
  ignore_time: zod.z.boolean().describe("If true, prevents Mixpanel from automatically updating the 'Last Seen' property. Defaults to false.").optional()
12
- }).describe("Individual profile update object for union operations on list properties.")).describe("A list of profile update objects. Each object must contain $token, $distinct_id, and $union properties. The $union operation adds values to list properties without creating duplicates."),
12
+ }).passthrough().describe("Individual profile update object for union operations on list properties.")).describe("A list of profile update objects. Each object must contain $token, $distinct_id, and $union properties. The $union operation adds values to list properties without creating duplicates."),
13
13
  strict: zod.z.number().int().describe("Enables validation with per-record error messages. Set to 1 to enable strict mode, 0 to disable. When enabled, returns detailed validation errors for each failed record.").optional(),
14
14
  verbose: zod.z.number().int().describe("Returns detailed response object. Set to 1 to get JSON response with status and error fields, 0 for plain text status (1 for success, 0 for failure). Default is 0.").optional(),
15
15
  callback: zod.z.string().describe("JSONP callback function name. Used for JSONP requests.").optional()
@@ -17,7 +17,7 @@ const MixpanelAddUniqueToProfileListPropertyInput = zod.z.object({
17
17
  const MixpanelAddUniqueToProfileListPropertyOutput = zod.z.object({
18
18
  error: zod.z.string().describe("Error message if the request failed, null if successful.").nullable().optional(),
19
19
  status: zod.z.union([zod.z.string(), zod.z.number().int()])
20
- }).describe("Response model for profile union operation.");
20
+ }).passthrough().describe("Response model for profile union operation.");
21
21
  const mixpanelAddUniqueToProfileListProperty = require_action.action("MIXPANEL_ADD_UNIQUE_TO_PROFILE_LIST_PROPERTY", {
22
22
  slug: "mixpanel-add-unique-to-profile-list-property",
23
23
  name: "Add Unique Values to Profile List Property",
@@ -1 +1 @@
1
- {"version":3,"file":"add-unique-to-profile-list-property.cjs","names":["z","action"],"sources":["../../src/actions/add-unique-to-profile-list-property.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAddUniqueToProfileListPropertyInput = z.object({\n ip: z.number().int().describe(\"Controls geolocation. Set to 0 to disable geolocation, 1 to enable. Default is 1.\").optional(),\n data: z.array(z.object({\n ip: z.string().describe(\"IP address for geolocation enrichment. Set to '0' to prevent updating geolocation data. If not provided, Mixpanel uses the request IP. Geolocation properties ($city, $region, mp_country_code) are derived and the IP is discarded.\").optional(),\n token: z.string().describe(\"Your Mixpanel project authentication token. Required for authenticating the request.\"),\n union: z.object({}).describe(\"A JSON object containing key-value pairs where each key is a property name and each value is a list of items to union with that list property. Union adds values to a list property, excluding duplicates. If the property doesn't exist, it creates a new list with the provided values.\"),\n distinct_id: z.string().describe(\"The unique identifier for the user profile to update. This determines which profile will be modified.\"),\n ignore_time: z.boolean().describe(\"If true, prevents Mixpanel from automatically updating the 'Last Seen' property. Defaults to false.\").optional(),\n}).describe(\"Individual profile update object for union operations on list properties.\")).describe(\"A list of profile update objects. Each object must contain $token, $distinct_id, and $union properties. The $union operation adds values to list properties without creating duplicates.\"),\n strict: z.number().int().describe(\"Enables validation with per-record error messages. Set to 1 to enable strict mode, 0 to disable. When enabled, returns detailed validation errors for each failed record.\").optional(),\n verbose: z.number().int().describe(\"Returns detailed response object. Set to 1 to get JSON response with status and error fields, 0 for plain text status (1 for success, 0 for failure). Default is 0.\").optional(),\n callback: z.string().describe(\"JSONP callback function name. Used for JSONP requests.\").optional(),\n}).describe(\"Request model for union operations on list properties in user profiles.\");\nexport const MixpanelAddUniqueToProfileListPropertyOutput = z.object({\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 profile union operation.\");\n\nexport const mixpanelAddUniqueToProfileListProperty = action(\"MIXPANEL_ADD_UNIQUE_TO_PROFILE_LIST_PROPERTY\", {\n slug: \"mixpanel-add-unique-to-profile-list-property\",\n name: \"Add Unique Values to Profile List Property\",\n description: \"Tool to add unique values to list properties on user profiles in Mixpanel using the $union operation. Use when you need to add items to list-type properties without creating duplicates. Unlike $append, $union ensures values are unique in the list. If the property doesn't exist, it creates a new list with the provided values.\",\n input: MixpanelAddUniqueToProfileListPropertyInput,\n output: MixpanelAddUniqueToProfileListPropertyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC5H,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACvB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS;EACzQ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACjH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2RAA2R;EACxT,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;EACxI,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,CAAC,SAAS,0LAA0L;CAC3R,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CACxN,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS;CACnN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,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,6CAA6C;AAEzD,MAAa,yCAAyCC,eAAAA,OAAO,gDAAgD;CAC3G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"add-unique-to-profile-list-property.cjs","names":["z","action"],"sources":["../../src/actions/add-unique-to-profile-list-property.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAddUniqueToProfileListPropertyInput = z.object({\n ip: z.number().int().describe(\"Controls geolocation. Set to 0 to disable geolocation, 1 to enable. Default is 1.\").optional(),\n data: z.array(z.object({\n ip: z.string().describe(\"IP address for geolocation enrichment. Set to '0' to prevent updating geolocation data. If not provided, Mixpanel uses the request IP. Geolocation properties ($city, $region, mp_country_code) are derived and the IP is discarded.\").optional(),\n token: z.string().describe(\"Your Mixpanel project authentication token. Required for authenticating the request.\"),\n union: z.record(z.string(), z.unknown()).describe(\"A JSON object containing key-value pairs where each key is a property name and each value is a list of items to union with that list property. Union adds values to a list property, excluding duplicates. If the property doesn't exist, it creates a new list with the provided values.\"),\n distinct_id: z.string().describe(\"The unique identifier for the user profile to update. This determines which profile will be modified.\"),\n ignore_time: z.boolean().describe(\"If true, prevents Mixpanel from automatically updating the 'Last Seen' property. Defaults to false.\").optional(),\n}).passthrough().describe(\"Individual profile update object for union operations on list properties.\")).describe(\"A list of profile update objects. Each object must contain $token, $distinct_id, and $union properties. The $union operation adds values to list properties without creating duplicates.\"),\n strict: z.number().int().describe(\"Enables validation with per-record error messages. Set to 1 to enable strict mode, 0 to disable. When enabled, returns detailed validation errors for each failed record.\").optional(),\n verbose: z.number().int().describe(\"Returns detailed response object. Set to 1 to get JSON response with status and error fields, 0 for plain text status (1 for success, 0 for failure). Default is 0.\").optional(),\n callback: z.string().describe(\"JSONP callback function name. Used for JSONP requests.\").optional(),\n}).describe(\"Request model for union operations on list properties in user profiles.\");\nexport const MixpanelAddUniqueToProfileListPropertyOutput = z.object({\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 profile union operation.\");\n\nexport const mixpanelAddUniqueToProfileListProperty = action(\"MIXPANEL_ADD_UNIQUE_TO_PROFILE_LIST_PROPERTY\", {\n slug: \"mixpanel-add-unique-to-profile-list-property\",\n name: \"Add Unique Values to Profile List Property\",\n description: \"Tool to add unique values to list properties on user profiles in Mixpanel using the $union operation. Use when you need to add items to list-type properties without creating duplicates. Unlike $append, $union ensures values are unique in the list. If the property doesn't exist, it creates a new list with the provided values.\",\n input: MixpanelAddUniqueToProfileListPropertyInput,\n output: MixpanelAddUniqueToProfileListPropertyOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC5H,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACvB,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS;EACzQ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACjH,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2RAA2R;EAC7U,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;EACxI,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,CAAC,SAAS,0LAA0L;CACzS,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CACxN,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS;CACnN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAa,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,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,6CAA6C;AAEvE,MAAa,yCAAyCC,eAAAA,OAAO,gDAAgD;CAC3G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,10 +6,10 @@ declare const MixpanelAddUniqueToProfileListPropertyInput: z.ZodObject<{
6
6
  data: z.ZodArray<z.ZodObject<{
7
7
  ip: z.ZodOptional<z.ZodString>;
8
8
  token: z.ZodString;
9
- union: z.ZodObject<{}, z.core.$strip>;
9
+ union: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
10
  distinct_id: z.ZodString;
11
11
  ignore_time: z.ZodOptional<z.ZodBoolean>;
12
- }, z.core.$strip>>;
12
+ }, z.core.$loose>>;
13
13
  strict: z.ZodOptional<z.ZodNumber>;
14
14
  verbose: z.ZodOptional<z.ZodNumber>;
15
15
  callback: z.ZodOptional<z.ZodString>;
@@ -17,11 +17,12 @@ declare const MixpanelAddUniqueToProfileListPropertyInput: z.ZodObject<{
17
17
  declare const MixpanelAddUniqueToProfileListPropertyOutput: z.ZodObject<{
18
18
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  status: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
20
- }, z.core.$strip>;
20
+ }, z.core.$loose>;
21
21
  declare const mixpanelAddUniqueToProfileListProperty: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  data: {
23
+ [x: string]: unknown;
23
24
  token: string;
24
- union: Record<string, never>;
25
+ union: Record<string, unknown>;
25
26
  distinct_id: string;
26
27
  ip?: string | undefined;
27
28
  ignore_time?: boolean | undefined;
@@ -30,7 +31,23 @@ declare const mixpanelAddUniqueToProfileListProperty: import("@keystrokehq/actio
30
31
  strict?: number | undefined;
31
32
  verbose?: number | undefined;
32
33
  callback?: string | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
35
+ connectionId: z.ZodString;
36
+ entityId: z.ZodString;
37
+ instanceId: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ username: z.ZodString;
40
+ password: z.ZodString;
41
+ region: z.ZodString;
42
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
43
+ connectionId: z.ZodString;
44
+ entityId: z.ZodString;
45
+ instanceId: z.ZodString;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ username: z.ZodString;
48
+ password: z.ZodString;
49
+ region: z.ZodString;
50
+ }, z.core.$strip>>]>;
34
51
  //#endregion
35
52
  export { mixpanelAddUniqueToProfileListProperty };
36
53
  //# sourceMappingURL=add-unique-to-profile-list-property.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-unique-to-profile-list-property.d.cts","names":[],"sources":["../../src/actions/add-unique-to-profile-list-property.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;cAK5C,sCAAA,gCAAsC,wBAAA;;;WAMjD,MAAA"}
1
+ {"version":3,"file":"add-unique-to-profile-list-property.d.cts","names":[],"sources":["../../src/actions/add-unique-to-profile-list-property.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;cAK5C,sCAAA,gCAAsC,wBAAA"}
@@ -6,10 +6,10 @@ declare const MixpanelAddUniqueToProfileListPropertyInput: z.ZodObject<{
6
6
  data: z.ZodArray<z.ZodObject<{
7
7
  ip: z.ZodOptional<z.ZodString>;
8
8
  token: z.ZodString;
9
- union: z.ZodObject<{}, z.core.$strip>;
9
+ union: z.ZodRecord<z.ZodString, z.ZodUnknown>;
10
10
  distinct_id: z.ZodString;
11
11
  ignore_time: z.ZodOptional<z.ZodBoolean>;
12
- }, z.core.$strip>>;
12
+ }, z.core.$loose>>;
13
13
  strict: z.ZodOptional<z.ZodNumber>;
14
14
  verbose: z.ZodOptional<z.ZodNumber>;
15
15
  callback: z.ZodOptional<z.ZodString>;
@@ -17,11 +17,12 @@ declare const MixpanelAddUniqueToProfileListPropertyInput: z.ZodObject<{
17
17
  declare const MixpanelAddUniqueToProfileListPropertyOutput: z.ZodObject<{
18
18
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  status: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
20
- }, z.core.$strip>;
20
+ }, z.core.$loose>;
21
21
  declare const mixpanelAddUniqueToProfileListProperty: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  data: {
23
+ [x: string]: unknown;
23
24
  token: string;
24
- union: Record<string, never>;
25
+ union: Record<string, unknown>;
25
26
  distinct_id: string;
26
27
  ip?: string | undefined;
27
28
  ignore_time?: boolean | undefined;
@@ -30,7 +31,23 @@ declare const mixpanelAddUniqueToProfileListProperty: import("@keystrokehq/actio
30
31
  strict?: number | undefined;
31
32
  verbose?: number | undefined;
32
33
  callback?: string | undefined;
33
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
35
+ connectionId: z.ZodString;
36
+ entityId: z.ZodString;
37
+ instanceId: z.ZodString;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ username: z.ZodString;
40
+ password: z.ZodString;
41
+ region: z.ZodString;
42
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
43
+ connectionId: z.ZodString;
44
+ entityId: z.ZodString;
45
+ instanceId: z.ZodString;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ username: z.ZodString;
48
+ password: z.ZodString;
49
+ region: z.ZodString;
50
+ }, z.core.$strip>>]>;
34
51
  //#endregion
35
52
  export { mixpanelAddUniqueToProfileListProperty };
36
53
  //# sourceMappingURL=add-unique-to-profile-list-property.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"add-unique-to-profile-list-property.d.mts","names":[],"sources":["../../src/actions/add-unique-to-profile-list-property.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;cAK5C,sCAAA,gCAAsC,wBAAA;;;WAMjD,MAAA"}
1
+ {"version":3,"file":"add-unique-to-profile-list-property.d.mts","names":[],"sources":["../../src/actions/add-unique-to-profile-list-property.ts"],"mappings":";;;cAIa,2CAAA,EAA2C,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAa3C,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;cAK5C,sCAAA,gCAAsC,wBAAA"}
@@ -9,10 +9,10 @@ const mixpanelAddUniqueToProfileListProperty = action("MIXPANEL_ADD_UNIQUE_TO_PR
9
9
  data: z.array(z.object({
10
10
  ip: z.string().describe("IP address for geolocation enrichment. Set to '0' to prevent updating geolocation data. If not provided, Mixpanel uses the request IP. Geolocation properties ($city, $region, mp_country_code) are derived and the IP is discarded.").optional(),
11
11
  token: z.string().describe("Your Mixpanel project authentication token. Required for authenticating the request."),
12
- union: z.object({}).describe("A JSON object containing key-value pairs where each key is a property name and each value is a list of items to union with that list property. Union adds values to a list property, excluding duplicates. If the property doesn't exist, it creates a new list with the provided values."),
12
+ union: z.record(z.string(), z.unknown()).describe("A JSON object containing key-value pairs where each key is a property name and each value is a list of items to union with that list property. Union adds values to a list property, excluding duplicates. If the property doesn't exist, it creates a new list with the provided values."),
13
13
  distinct_id: z.string().describe("The unique identifier for the user profile to update. This determines which profile will be modified."),
14
14
  ignore_time: z.boolean().describe("If true, prevents Mixpanel from automatically updating the 'Last Seen' property. Defaults to false.").optional()
15
- }).describe("Individual profile update object for union operations on list properties.")).describe("A list of profile update objects. Each object must contain $token, $distinct_id, and $union properties. The $union operation adds values to list properties without creating duplicates."),
15
+ }).passthrough().describe("Individual profile update object for union operations on list properties.")).describe("A list of profile update objects. Each object must contain $token, $distinct_id, and $union properties. The $union operation adds values to list properties without creating duplicates."),
16
16
  strict: z.number().int().describe("Enables validation with per-record error messages. Set to 1 to enable strict mode, 0 to disable. When enabled, returns detailed validation errors for each failed record.").optional(),
17
17
  verbose: z.number().int().describe("Returns detailed response object. Set to 1 to get JSON response with status and error fields, 0 for plain text status (1 for success, 0 for failure). Default is 0.").optional(),
18
18
  callback: z.string().describe("JSONP callback function name. Used for JSONP requests.").optional()
@@ -20,7 +20,7 @@ const mixpanelAddUniqueToProfileListProperty = action("MIXPANEL_ADD_UNIQUE_TO_PR
20
20
  output: z.object({
21
21
  error: z.string().describe("Error message if the request failed, null if successful.").nullable().optional(),
22
22
  status: z.union([z.string(), z.number().int()])
23
- }).describe("Response model for profile union operation.")
23
+ }).passthrough().describe("Response model for profile union operation.")
24
24
  });
25
25
  //#endregion
26
26
  export { mixpanelAddUniqueToProfileListProperty };
@@ -1 +1 @@
1
- {"version":3,"file":"add-unique-to-profile-list-property.mjs","names":[],"sources":["../../src/actions/add-unique-to-profile-list-property.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAddUniqueToProfileListPropertyInput = z.object({\n ip: z.number().int().describe(\"Controls geolocation. Set to 0 to disable geolocation, 1 to enable. Default is 1.\").optional(),\n data: z.array(z.object({\n ip: z.string().describe(\"IP address for geolocation enrichment. Set to '0' to prevent updating geolocation data. If not provided, Mixpanel uses the request IP. Geolocation properties ($city, $region, mp_country_code) are derived and the IP is discarded.\").optional(),\n token: z.string().describe(\"Your Mixpanel project authentication token. Required for authenticating the request.\"),\n union: z.object({}).describe(\"A JSON object containing key-value pairs where each key is a property name and each value is a list of items to union with that list property. Union adds values to a list property, excluding duplicates. If the property doesn't exist, it creates a new list with the provided values.\"),\n distinct_id: z.string().describe(\"The unique identifier for the user profile to update. This determines which profile will be modified.\"),\n ignore_time: z.boolean().describe(\"If true, prevents Mixpanel from automatically updating the 'Last Seen' property. Defaults to false.\").optional(),\n}).describe(\"Individual profile update object for union operations on list properties.\")).describe(\"A list of profile update objects. Each object must contain $token, $distinct_id, and $union properties. The $union operation adds values to list properties without creating duplicates.\"),\n strict: z.number().int().describe(\"Enables validation with per-record error messages. Set to 1 to enable strict mode, 0 to disable. When enabled, returns detailed validation errors for each failed record.\").optional(),\n verbose: z.number().int().describe(\"Returns detailed response object. Set to 1 to get JSON response with status and error fields, 0 for plain text status (1 for success, 0 for failure). Default is 0.\").optional(),\n callback: z.string().describe(\"JSONP callback function name. Used for JSONP requests.\").optional(),\n}).describe(\"Request model for union operations on list properties in user profiles.\");\nexport const MixpanelAddUniqueToProfileListPropertyOutput = z.object({\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 profile union operation.\");\n\nexport const mixpanelAddUniqueToProfileListProperty = action(\"MIXPANEL_ADD_UNIQUE_TO_PROFILE_LIST_PROPERTY\", {\n slug: \"mixpanel-add-unique-to-profile-list-property\",\n name: \"Add Unique Values to Profile List Property\",\n description: \"Tool to add unique values to list properties on user profiles in Mixpanel using the $union operation. Use when you need to add items to list-type properties without creating duplicates. Unlike $append, $union ensures values are unique in the list. If the property doesn't exist, it creates a new list with the provided values.\",\n input: MixpanelAddUniqueToProfileListPropertyInput,\n output: MixpanelAddUniqueToProfileListPropertyOutput,\n});\n"],"mappings":";;AAsBA,MAAa,yCAAyC,OAAO,gDAAgD;CAC3G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtByD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC5H,MAAM,EAAE,MAAM,EAAE,OAAO;GACvB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS;GACzQ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;GACjH,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2RAA2R;GACxT,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;GACxI,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACpJ,CAAC,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,CAAC,SAAS,0LAA0L;EAC3R,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;EACxN,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS;EACnN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,yEAUH;CACP,QAV0D,EAAE,OAAO;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAChD,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"add-unique-to-profile-list-property.mjs","names":[],"sources":["../../src/actions/add-unique-to-profile-list-property.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAddUniqueToProfileListPropertyInput = z.object({\n ip: z.number().int().describe(\"Controls geolocation. Set to 0 to disable geolocation, 1 to enable. Default is 1.\").optional(),\n data: z.array(z.object({\n ip: z.string().describe(\"IP address for geolocation enrichment. Set to '0' to prevent updating geolocation data. If not provided, Mixpanel uses the request IP. Geolocation properties ($city, $region, mp_country_code) are derived and the IP is discarded.\").optional(),\n token: z.string().describe(\"Your Mixpanel project authentication token. Required for authenticating the request.\"),\n union: z.record(z.string(), z.unknown()).describe(\"A JSON object containing key-value pairs where each key is a property name and each value is a list of items to union with that list property. Union adds values to a list property, excluding duplicates. If the property doesn't exist, it creates a new list with the provided values.\"),\n distinct_id: z.string().describe(\"The unique identifier for the user profile to update. This determines which profile will be modified.\"),\n ignore_time: z.boolean().describe(\"If true, prevents Mixpanel from automatically updating the 'Last Seen' property. Defaults to false.\").optional(),\n}).passthrough().describe(\"Individual profile update object for union operations on list properties.\")).describe(\"A list of profile update objects. Each object must contain $token, $distinct_id, and $union properties. The $union operation adds values to list properties without creating duplicates.\"),\n strict: z.number().int().describe(\"Enables validation with per-record error messages. Set to 1 to enable strict mode, 0 to disable. When enabled, returns detailed validation errors for each failed record.\").optional(),\n verbose: z.number().int().describe(\"Returns detailed response object. Set to 1 to get JSON response with status and error fields, 0 for plain text status (1 for success, 0 for failure). Default is 0.\").optional(),\n callback: z.string().describe(\"JSONP callback function name. Used for JSONP requests.\").optional(),\n}).describe(\"Request model for union operations on list properties in user profiles.\");\nexport const MixpanelAddUniqueToProfileListPropertyOutput = z.object({\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 profile union operation.\");\n\nexport const mixpanelAddUniqueToProfileListProperty = action(\"MIXPANEL_ADD_UNIQUE_TO_PROFILE_LIST_PROPERTY\", {\n slug: \"mixpanel-add-unique-to-profile-list-property\",\n name: \"Add Unique Values to Profile List Property\",\n description: \"Tool to add unique values to list properties on user profiles in Mixpanel using the $union operation. Use when you need to add items to list-type properties without creating duplicates. Unlike $append, $union ensures values are unique in the list. If the property doesn't exist, it creates a new list with the provided values.\",\n input: MixpanelAddUniqueToProfileListPropertyInput,\n output: MixpanelAddUniqueToProfileListPropertyOutput,\n});\n"],"mappings":";;AAsBA,MAAa,yCAAyC,OAAO,gDAAgD;CAC3G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtByD,EAAE,OAAO;EAClE,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC5H,MAAM,EAAE,MAAM,EAAE,OAAO;GACvB,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS;GACzQ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;GACjH,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2RAA2R;GAC7U,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG;GACxI,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EACpJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,CAAC,SAAS,0LAA0L;EACzS,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;EACxN,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qKAAqK,CAAC,CAAC,SAAS;EACnN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,SAAS,yEAUH;CACP,QAV0D,EAAE,OAAO;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,QAAQ,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;CAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -27,12 +27,12 @@ const MixpanelAggregateEventsInput = zod.z.object({
27
27
  }).describe("Request model for getting aggregate event counts.");
28
28
  const MixpanelAggregateEvents_EventDataSchema = zod.z.object({
29
29
  series: zod.z.array(zod.z.string()).describe("All dates included in values"),
30
- values: zod.z.object({}).describe("Keys are the names of events, each mapping to an object containing date-to-value mappings. Each event name maps to an object where keys are date strings (YYYY-MM-DD format) and values are numeric (int for general/unique aggregations, float for average/sum).")
31
- }).describe("Model for event breakdown data structure");
30
+ values: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Keys are the names of events, each mapping to an object containing date-to-value mappings. Each event name maps to an object where keys are date strings (YYYY-MM-DD format) and values are numeric (int for general/unique aggregations, float for average/sum).")
31
+ }).passthrough().describe("Model for event breakdown data structure");
32
32
  const MixpanelAggregateEventsOutput = zod.z.object({
33
33
  data: MixpanelAggregateEvents_EventDataSchema.nullable(),
34
34
  legend_size: zod.z.number().int().describe("The number of events defined in values").nullable()
35
- }).describe("Base response model for event breakdown data");
35
+ }).passthrough().describe("Base response model for event breakdown data");
36
36
  const mixpanelAggregateEvents = require_action.action("MIXPANEL_AGGREGATE_EVENTS", {
37
37
  slug: "mixpanel-aggregate-events",
38
38
  name: "Get Aggregate Events",
@@ -1 +1 @@
1
- {"version":3,"file":"aggregate-events.cjs","names":["z","action"],"sources":["../../src/actions/aggregate-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAggregateEventsInput = z.object({\n type: z.enum([\"general\", \"unique\", \"average\", \"sum\"]).default(\"general\").describe(\"Type of aggregation\").optional(),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\"]).default(\"day\").describe(\"Time unit for grouping results\").optional(),\n event: z.string().describe(\"Name of the event to analyze At least one of `event` or `events` must be provided per request; omitting both returns a 'Missing required parameter: event' error.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return\").optional(),\n where: z.string().describe(\"Expression to filter events\").optional(),\n events: z.array(z.string()).describe(\"List of event names to analyze\").optional(),\n to_date: z.string().describe(\"End date for the query (inclusive)\"),\n interval: z.number().int().describe(\"Time interval for the results in seconds\").optional(),\n from_date: z.string().describe(\"Start date for the query (inclusive)\"),\n project_id: z.number().int().describe(\"The ID of the project to query\"),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting aggregate event counts.\");\nconst MixpanelAggregateEvents_EventDataSchema = z.object({\n series: z.array(z.string()).describe(\"All dates included in values\"),\n values: z.object({}).describe(\"Keys are the names of events, each mapping to an object containing date-to-value mappings. Each event name maps to an object where keys are date strings (YYYY-MM-DD format) and values are numeric (int for general/unique aggregations, float for average/sum).\"),\n}).describe(\"Model for event breakdown data structure\");\nexport const MixpanelAggregateEventsOutput = z.object({\n data: MixpanelAggregateEvents_EventDataSchema.nullable(),\n legend_size: z.number().int().describe(\"The number of events defined in values\").nullable(),\n}).describe(\"Base response model for event breakdown data\");\n\nexport const mixpanelAggregateEvents = action(\"MIXPANEL_AGGREGATE_EVENTS\", {\n slug: \"mixpanel-aggregate-events\",\n name: \"Get Aggregate Events\",\n description: \"Get aggregate event counts over time. Supports different types of aggregation: general, unique, average, sum.\",\n input: MixpanelAggregateEventsInput,\n output: MixpanelAggregateEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;EAAW;CAAK,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAClH,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACzM,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B;CACnE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mQAAmQ;AACnS,CAAC,CAAC,CAAC,SAAS,0CAA0C;AACtD,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,wCAAwC,SAAS;CACvD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"aggregate-events.cjs","names":["z","action"],"sources":["../../src/actions/aggregate-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAggregateEventsInput = z.object({\n type: z.enum([\"general\", \"unique\", \"average\", \"sum\"]).default(\"general\").describe(\"Type of aggregation\").optional(),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\"]).default(\"day\").describe(\"Time unit for grouping results\").optional(),\n event: z.string().describe(\"Name of the event to analyze At least one of `event` or `events` must be provided per request; omitting both returns a 'Missing required parameter: event' error.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return\").optional(),\n where: z.string().describe(\"Expression to filter events\").optional(),\n events: z.array(z.string()).describe(\"List of event names to analyze\").optional(),\n to_date: z.string().describe(\"End date for the query (inclusive)\"),\n interval: z.number().int().describe(\"Time interval for the results in seconds\").optional(),\n from_date: z.string().describe(\"Start date for the query (inclusive)\"),\n project_id: z.number().int().describe(\"The ID of the project to query\"),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting aggregate event counts.\");\nconst MixpanelAggregateEvents_EventDataSchema = z.object({\n series: z.array(z.string()).describe(\"All dates included in values\"),\n values: z.record(z.string(), z.unknown()).describe(\"Keys are the names of events, each mapping to an object containing date-to-value mappings. Each event name maps to an object where keys are date strings (YYYY-MM-DD format) and values are numeric (int for general/unique aggregations, float for average/sum).\"),\n}).passthrough().describe(\"Model for event breakdown data structure\");\nexport const MixpanelAggregateEventsOutput = z.object({\n data: MixpanelAggregateEvents_EventDataSchema.nullable(),\n legend_size: z.number().int().describe(\"The number of events defined in values\").nullable(),\n}).passthrough().describe(\"Base response model for event breakdown data\");\n\nexport const mixpanelAggregateEvents = action(\"MIXPANEL_AGGREGATE_EVENTS\", {\n slug: \"mixpanel-aggregate-events\",\n name: \"Get Aggregate Events\",\n description: \"Get aggregate event counts over time. Supports different types of aggregation: general, unique, average, sum.\",\n input: MixpanelAggregateEventsInput,\n output: MixpanelAggregateEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;EAAW;CAAK,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAClH,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACzM,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACtE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B;CACnE,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mQAAmQ;AACxT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAM,wCAAwC,SAAS;CACvD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -28,10 +28,10 @@ declare const MixpanelAggregateEventsInput: z.ZodObject<{
28
28
  declare const MixpanelAggregateEventsOutput: z.ZodObject<{
29
29
  data: z.ZodNullable<z.ZodObject<{
30
30
  series: z.ZodArray<z.ZodString>;
31
- values: z.ZodObject<{}, z.core.$strip>;
32
- }, z.core.$strip>>;
31
+ values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
32
+ }, z.core.$loose>>;
33
33
  legend_size: z.ZodNullable<z.ZodNumber>;
34
- }, z.core.$strip>;
34
+ }, z.core.$loose>;
35
35
  declare const mixpanelAggregateEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
36
36
  to_date: string;
37
37
  from_date: string;
@@ -44,7 +44,23 @@ declare const mixpanelAggregateEvents: import("@keystrokehq/action").WorkflowAct
44
44
  events?: string[] | undefined;
45
45
  interval?: number | undefined;
46
46
  workspace_id?: number | undefined;
47
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ username: z.ZodString;
53
+ password: z.ZodString;
54
+ region: z.ZodString;
55
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
56
+ connectionId: z.ZodString;
57
+ entityId: z.ZodString;
58
+ instanceId: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ username: z.ZodString;
61
+ password: z.ZodString;
62
+ region: z.ZodString;
63
+ }, z.core.$strip>>]>;
48
64
  //#endregion
49
65
  export { mixpanelAggregateEvents };
50
66
  //# sourceMappingURL=aggregate-events.d.cts.map
@@ -28,10 +28,10 @@ declare const MixpanelAggregateEventsInput: z.ZodObject<{
28
28
  declare const MixpanelAggregateEventsOutput: z.ZodObject<{
29
29
  data: z.ZodNullable<z.ZodObject<{
30
30
  series: z.ZodArray<z.ZodString>;
31
- values: z.ZodObject<{}, z.core.$strip>;
32
- }, z.core.$strip>>;
31
+ values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
32
+ }, z.core.$loose>>;
33
33
  legend_size: z.ZodNullable<z.ZodNumber>;
34
- }, z.core.$strip>;
34
+ }, z.core.$loose>;
35
35
  declare const mixpanelAggregateEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
36
36
  to_date: string;
37
37
  from_date: string;
@@ -44,7 +44,23 @@ declare const mixpanelAggregateEvents: import("@keystrokehq/action").WorkflowAct
44
44
  events?: string[] | undefined;
45
45
  interval?: number | undefined;
46
46
  workspace_id?: number | undefined;
47
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
47
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ username: z.ZodString;
53
+ password: z.ZodString;
54
+ region: z.ZodString;
55
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
56
+ connectionId: z.ZodString;
57
+ entityId: z.ZodString;
58
+ instanceId: z.ZodString;
59
+ }, z.core.$strip>, z.ZodObject<{
60
+ username: z.ZodString;
61
+ password: z.ZodString;
62
+ region: z.ZodString;
63
+ }, z.core.$strip>>]>;
48
64
  //#endregion
49
65
  export { mixpanelAggregateEvents };
50
66
  //# sourceMappingURL=aggregate-events.d.mts.map
@@ -27,8 +27,8 @@ const MixpanelAggregateEventsInput = z.object({
27
27
  }).describe("Request model for getting aggregate event counts.");
28
28
  const MixpanelAggregateEvents_EventDataSchema = z.object({
29
29
  series: z.array(z.string()).describe("All dates included in values"),
30
- values: z.object({}).describe("Keys are the names of events, each mapping to an object containing date-to-value mappings. Each event name maps to an object where keys are date strings (YYYY-MM-DD format) and values are numeric (int for general/unique aggregations, float for average/sum).")
31
- }).describe("Model for event breakdown data structure");
30
+ values: z.record(z.string(), z.unknown()).describe("Keys are the names of events, each mapping to an object containing date-to-value mappings. Each event name maps to an object where keys are date strings (YYYY-MM-DD format) and values are numeric (int for general/unique aggregations, float for average/sum).")
31
+ }).passthrough().describe("Model for event breakdown data structure");
32
32
  const mixpanelAggregateEvents = action("MIXPANEL_AGGREGATE_EVENTS", {
33
33
  slug: "mixpanel-aggregate-events",
34
34
  name: "Get Aggregate Events",
@@ -37,7 +37,7 @@ const mixpanelAggregateEvents = action("MIXPANEL_AGGREGATE_EVENTS", {
37
37
  output: z.object({
38
38
  data: MixpanelAggregateEvents_EventDataSchema.nullable(),
39
39
  legend_size: z.number().int().describe("The number of events defined in values").nullable()
40
- }).describe("Base response model for event breakdown data")
40
+ }).passthrough().describe("Base response model for event breakdown data")
41
41
  });
42
42
  //#endregion
43
43
  export { mixpanelAggregateEvents };
@@ -1 +1 @@
1
- {"version":3,"file":"aggregate-events.mjs","names":[],"sources":["../../src/actions/aggregate-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAggregateEventsInput = z.object({\n type: z.enum([\"general\", \"unique\", \"average\", \"sum\"]).default(\"general\").describe(\"Type of aggregation\").optional(),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\"]).default(\"day\").describe(\"Time unit for grouping results\").optional(),\n event: z.string().describe(\"Name of the event to analyze At least one of `event` or `events` must be provided per request; omitting both returns a 'Missing required parameter: event' error.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return\").optional(),\n where: z.string().describe(\"Expression to filter events\").optional(),\n events: z.array(z.string()).describe(\"List of event names to analyze\").optional(),\n to_date: z.string().describe(\"End date for the query (inclusive)\"),\n interval: z.number().int().describe(\"Time interval for the results in seconds\").optional(),\n from_date: z.string().describe(\"Start date for the query (inclusive)\"),\n project_id: z.number().int().describe(\"The ID of the project to query\"),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting aggregate event counts.\");\nconst MixpanelAggregateEvents_EventDataSchema = z.object({\n series: z.array(z.string()).describe(\"All dates included in values\"),\n values: z.object({}).describe(\"Keys are the names of events, each mapping to an object containing date-to-value mappings. Each event name maps to an object where keys are date strings (YYYY-MM-DD format) and values are numeric (int for general/unique aggregations, float for average/sum).\"),\n}).describe(\"Model for event breakdown data structure\");\nexport const MixpanelAggregateEventsOutput = z.object({\n data: MixpanelAggregateEvents_EventDataSchema.nullable(),\n legend_size: z.number().int().describe(\"The number of events defined in values\").nullable(),\n}).describe(\"Base response model for event breakdown data\");\n\nexport const mixpanelAggregateEvents = action(\"MIXPANEL_AGGREGATE_EVENTS\", {\n slug: \"mixpanel-aggregate-events\",\n name: \"Get Aggregate Events\",\n description: \"Get aggregate event counts over time. Supports different types of aggregation: general, unique, average, sum.\",\n input: MixpanelAggregateEventsInput,\n output: MixpanelAggregateEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,KAAK;EAAC;EAAW;EAAU;EAAW;CAAK,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAClH,MAAM,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACzM,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACjE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACtE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,0CAA0C,EAAE,OAAO;CACvD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B;CACnE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mQAAmQ;AACnS,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAMtD,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,MAAM,wCAAwC,SAAS;EACvD,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"aggregate-events.mjs","names":[],"sources":["../../src/actions/aggregate-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAggregateEventsInput = z.object({\n type: z.enum([\"general\", \"unique\", \"average\", \"sum\"]).default(\"general\").describe(\"Type of aggregation\").optional(),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\"]).default(\"day\").describe(\"Time unit for grouping results\").optional(),\n event: z.string().describe(\"Name of the event to analyze At least one of `event` or `events` must be provided per request; omitting both returns a 'Missing required parameter: event' error.\").optional(),\n limit: z.number().int().describe(\"Maximum number of results to return\").optional(),\n where: z.string().describe(\"Expression to filter events\").optional(),\n events: z.array(z.string()).describe(\"List of event names to analyze\").optional(),\n to_date: z.string().describe(\"End date for the query (inclusive)\"),\n interval: z.number().int().describe(\"Time interval for the results in seconds\").optional(),\n from_date: z.string().describe(\"Start date for the query (inclusive)\"),\n project_id: z.number().int().describe(\"The ID of the project to query\"),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting aggregate event counts.\");\nconst MixpanelAggregateEvents_EventDataSchema = z.object({\n series: z.array(z.string()).describe(\"All dates included in values\"),\n values: z.record(z.string(), z.unknown()).describe(\"Keys are the names of events, each mapping to an object containing date-to-value mappings. Each event name maps to an object where keys are date strings (YYYY-MM-DD format) and values are numeric (int for general/unique aggregations, float for average/sum).\"),\n}).passthrough().describe(\"Model for event breakdown data structure\");\nexport const MixpanelAggregateEventsOutput = z.object({\n data: MixpanelAggregateEvents_EventDataSchema.nullable(),\n legend_size: z.number().int().describe(\"The number of events defined in values\").nullable(),\n}).passthrough().describe(\"Base response model for event breakdown data\");\n\nexport const mixpanelAggregateEvents = action(\"MIXPANEL_AGGREGATE_EVENTS\", {\n slug: \"mixpanel-aggregate-events\",\n name: \"Get Aggregate Events\",\n description: \"Get aggregate event counts over time. Supports different types of aggregation: general, unique, average, sum.\",\n input: MixpanelAggregateEventsInput,\n output: MixpanelAggregateEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,KAAK;EAAC;EAAW;EAAU;EAAW;CAAK,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAClH,MAAM,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACzM,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACnE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CACjE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACzF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACrE,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACtE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,0CAA0C,EAAE,OAAO;CACvD,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8BAA8B;CACnE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mQAAmQ;AACxT,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAMpE,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV2C,EAAE,OAAO;EACpD,MAAM,wCAAwC,SAAS;EACvD,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
@@ -28,11 +28,11 @@ const MixpanelAggregatedEventPropertyValuesInput = zod.z.object({
28
28
  const MixpanelAggregatedEventPropertyValues_SeriesDataSchema = zod.z.object({
29
29
  series: zod.z.array(zod.z.string()).describe("Array of series data"),
30
30
  values: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Values data")
31
- }).describe("Model for series data");
31
+ }).passthrough().describe("Model for series data");
32
32
  const MixpanelAggregatedEventPropertyValuesOutput = zod.z.object({
33
33
  data: MixpanelAggregatedEventPropertyValues_SeriesDataSchema.nullable(),
34
34
  legend_size: zod.z.number().int().describe("Size of the legend").nullable()
35
- }).describe("Response model for aggregated event property values data");
35
+ }).passthrough().describe("Response model for aggregated event property values data");
36
36
  const mixpanelAggregatedEventPropertyValues = require_action.action("MIXPANEL_AGGREGATED_EVENT_PROPERTY_VALUES", {
37
37
  slug: "mixpanel-aggregated-event-property-values",
38
38
  name: "Get Aggregated Event Property Values",
@@ -1 +1 @@
1
- {"version":3,"file":"aggregated-event-property-values.cjs","names":["z","action"],"sources":["../../src/actions/aggregated-event-property-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAggregatedEventPropertyValuesInput = z.object({\n name: z.string().describe(\"The name of the property you would like to get data for\"),\n type: z.enum([\"general\", \"unique\", \"average\"]).describe(\"The analysis type you would like to get data for\"),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\"]).describe(\"The level of granularity of the data\"),\n event: z.string().describe(\"The event that you wish to get data for. Note: this is a single event name, not an array\"),\n limit: z.number().int().default(255).describe(\"The maximum number of values to return\").optional(),\n format: z.enum([\"json\", \"csv\"]).default(\"json\").describe(\"Data format options for Mixpanel responses.\").optional(),\n values: z.array(z.string()).describe(\"The specific property values that you would like to get data for. Example: ['female', 'unknown']\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\").optional(),\n interval: z.number().int().describe(\"The number of units to return data for. Specify either interval or from_date and to_date\").optional(),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\").optional(),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting aggregated event property values\");\nconst MixpanelAggregatedEventPropertyValues_SeriesDataSchema = z.object({\n series: z.array(z.string()).describe(\"Array of series data\"),\n values: z.record(z.string(), z.unknown()).describe(\"Values data\"),\n}).describe(\"Model for series data\");\nexport const MixpanelAggregatedEventPropertyValuesOutput = z.object({\n data: MixpanelAggregatedEventPropertyValues_SeriesDataSchema.nullable(),\n legend_size: z.number().int().describe(\"Size of the legend\").nullable(),\n}).describe(\"Response model for aggregated event property values data\");\n\nexport const mixpanelAggregatedEventPropertyValues = action(\"MIXPANEL_AGGREGATED_EVENT_PROPERTY_VALUES\", {\n slug: \"mixpanel-aggregated-event-property-values\",\n name: \"Get Aggregated Event Property Values\",\n description: \"Get unique, total, or average data for a single event and property over days, weeks, or months. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelAggregatedEventPropertyValuesInput,\n output: MixpanelAggregatedEventPropertyValuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,kDAAkD;CAC1G,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACrH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAClJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACzI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC5G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sBAAsB;CAC3D,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,aAAa;AAClE,CAAC,CAAC,CAAC,SAAS,uBAAuB;AACnC,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAM,uDAAuD,SAAS;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"aggregated-event-property-values.cjs","names":["z","action"],"sources":["../../src/actions/aggregated-event-property-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAggregatedEventPropertyValuesInput = z.object({\n name: z.string().describe(\"The name of the property you would like to get data for\"),\n type: z.enum([\"general\", \"unique\", \"average\"]).describe(\"The analysis type you would like to get data for\"),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\"]).describe(\"The level of granularity of the data\"),\n event: z.string().describe(\"The event that you wish to get data for. Note: this is a single event name, not an array\"),\n limit: z.number().int().default(255).describe(\"The maximum number of values to return\").optional(),\n format: z.enum([\"json\", \"csv\"]).default(\"json\").describe(\"Data format options for Mixpanel responses.\").optional(),\n values: z.array(z.string()).describe(\"The specific property values that you would like to get data for. Example: ['female', 'unknown']\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\").optional(),\n interval: z.number().int().describe(\"The number of units to return data for. Specify either interval or from_date and to_date\").optional(),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\").optional(),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting aggregated event property values\");\nconst MixpanelAggregatedEventPropertyValues_SeriesDataSchema = z.object({\n series: z.array(z.string()).describe(\"Array of series data\"),\n values: z.record(z.string(), z.unknown()).describe(\"Values data\"),\n}).passthrough().describe(\"Model for series data\");\nexport const MixpanelAggregatedEventPropertyValuesOutput = z.object({\n data: MixpanelAggregatedEventPropertyValues_SeriesDataSchema.nullable(),\n legend_size: z.number().int().describe(\"Size of the legend\").nullable(),\n}).passthrough().describe(\"Response model for aggregated event property values data\");\n\nexport const mixpanelAggregatedEventPropertyValues = action(\"MIXPANEL_AGGREGATED_EVENT_PROPERTY_VALUES\", {\n slug: \"mixpanel-aggregated-event-property-values\",\n name: \"Get Aggregated Event Property Values\",\n description: \"Get unique, total, or average data for a single event and property over days, weeks, or months. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelAggregatedEventPropertyValuesInput,\n output: MixpanelAggregatedEventPropertyValuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,kDAAkD;CAC1G,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACxG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACrH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjH,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAClJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACzI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC5G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yDAAyDA,IAAAA,EAAE,OAAO;CACtE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sBAAsB;CAC3D,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,aAAa;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AACjD,MAAa,8CAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAM,uDAAuD,SAAS;CACtE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,wCAAwCC,eAAAA,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -32,9 +32,9 @@ declare const MixpanelAggregatedEventPropertyValuesOutput: z.ZodObject<{
32
32
  data: z.ZodNullable<z.ZodObject<{
33
33
  series: z.ZodArray<z.ZodString>;
34
34
  values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
35
- }, z.core.$strip>>;
35
+ }, z.core.$loose>>;
36
36
  legend_size: z.ZodNullable<z.ZodNumber>;
37
- }, z.core.$strip>;
37
+ }, z.core.$loose>;
38
38
  declare const mixpanelAggregatedEventPropertyValues: import("@keystrokehq/action").WorkflowActionDefinition<{
39
39
  name: string;
40
40
  type: "general" | "unique" | "average";
@@ -48,7 +48,23 @@ declare const mixpanelAggregatedEventPropertyValues: import("@keystrokehq/action
48
48
  interval?: number | undefined;
49
49
  from_date?: string | undefined;
50
50
  workspace_id?: number | undefined;
51
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
51
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<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>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
60
+ connectionId: z.ZodString;
61
+ entityId: z.ZodString;
62
+ instanceId: z.ZodString;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ username: z.ZodString;
65
+ password: z.ZodString;
66
+ region: z.ZodString;
67
+ }, z.core.$strip>>]>;
52
68
  //#endregion
53
69
  export { mixpanelAggregatedEventPropertyValues };
54
70
  //# sourceMappingURL=aggregated-event-property-values.d.cts.map
@@ -32,9 +32,9 @@ declare const MixpanelAggregatedEventPropertyValuesOutput: z.ZodObject<{
32
32
  data: z.ZodNullable<z.ZodObject<{
33
33
  series: z.ZodArray<z.ZodString>;
34
34
  values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
35
- }, z.core.$strip>>;
35
+ }, z.core.$loose>>;
36
36
  legend_size: z.ZodNullable<z.ZodNumber>;
37
- }, z.core.$strip>;
37
+ }, z.core.$loose>;
38
38
  declare const mixpanelAggregatedEventPropertyValues: import("@keystrokehq/action").WorkflowActionDefinition<{
39
39
  name: string;
40
40
  type: "general" | "unique" | "average";
@@ -48,7 +48,23 @@ declare const mixpanelAggregatedEventPropertyValues: import("@keystrokehq/action
48
48
  interval?: number | undefined;
49
49
  from_date?: string | undefined;
50
50
  workspace_id?: number | undefined;
51
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
51
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<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>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
60
+ connectionId: z.ZodString;
61
+ entityId: z.ZodString;
62
+ instanceId: z.ZodString;
63
+ }, z.core.$strip>, z.ZodObject<{
64
+ username: z.ZodString;
65
+ password: z.ZodString;
66
+ region: z.ZodString;
67
+ }, z.core.$strip>>]>;
52
68
  //#endregion
53
69
  export { mixpanelAggregatedEventPropertyValues };
54
70
  //# sourceMappingURL=aggregated-event-property-values.d.mts.map
@@ -28,7 +28,7 @@ const MixpanelAggregatedEventPropertyValuesInput = z.object({
28
28
  const MixpanelAggregatedEventPropertyValues_SeriesDataSchema = z.object({
29
29
  series: z.array(z.string()).describe("Array of series data"),
30
30
  values: z.record(z.string(), z.unknown()).describe("Values data")
31
- }).describe("Model for series data");
31
+ }).passthrough().describe("Model for series data");
32
32
  const mixpanelAggregatedEventPropertyValues = action("MIXPANEL_AGGREGATED_EVENT_PROPERTY_VALUES", {
33
33
  slug: "mixpanel-aggregated-event-property-values",
34
34
  name: "Get Aggregated Event Property Values",
@@ -37,7 +37,7 @@ const mixpanelAggregatedEventPropertyValues = action("MIXPANEL_AGGREGATED_EVENT_
37
37
  output: z.object({
38
38
  data: MixpanelAggregatedEventPropertyValues_SeriesDataSchema.nullable(),
39
39
  legend_size: z.number().int().describe("Size of the legend").nullable()
40
- }).describe("Response model for aggregated event property values data")
40
+ }).passthrough().describe("Response model for aggregated event property values data")
41
41
  });
42
42
  //#endregion
43
43
  export { mixpanelAggregatedEventPropertyValues };
@@ -1 +1 @@
1
- {"version":3,"file":"aggregated-event-property-values.mjs","names":[],"sources":["../../src/actions/aggregated-event-property-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAggregatedEventPropertyValuesInput = z.object({\n name: z.string().describe(\"The name of the property you would like to get data for\"),\n type: z.enum([\"general\", \"unique\", \"average\"]).describe(\"The analysis type you would like to get data for\"),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\"]).describe(\"The level of granularity of the data\"),\n event: z.string().describe(\"The event that you wish to get data for. Note: this is a single event name, not an array\"),\n limit: z.number().int().default(255).describe(\"The maximum number of values to return\").optional(),\n format: z.enum([\"json\", \"csv\"]).default(\"json\").describe(\"Data format options for Mixpanel responses.\").optional(),\n values: z.array(z.string()).describe(\"The specific property values that you would like to get data for. Example: ['female', 'unknown']\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\").optional(),\n interval: z.number().int().describe(\"The number of units to return data for. Specify either interval or from_date and to_date\").optional(),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\").optional(),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting aggregated event property values\");\nconst MixpanelAggregatedEventPropertyValues_SeriesDataSchema = z.object({\n series: z.array(z.string()).describe(\"Array of series data\"),\n values: z.record(z.string(), z.unknown()).describe(\"Values data\"),\n}).describe(\"Model for series data\");\nexport const MixpanelAggregatedEventPropertyValuesOutput = z.object({\n data: MixpanelAggregatedEventPropertyValues_SeriesDataSchema.nullable(),\n legend_size: z.number().int().describe(\"Size of the legend\").nullable(),\n}).describe(\"Response model for aggregated event property values data\");\n\nexport const mixpanelAggregatedEventPropertyValues = action(\"MIXPANEL_AGGREGATED_EVENT_PROPERTY_VALUES\", {\n slug: \"mixpanel-aggregated-event-property-values\",\n name: \"Get Aggregated Event Property Values\",\n description: \"Get unique, total, or average data for a single event and property over days, weeks, or months. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelAggregatedEventPropertyValuesInput,\n output: MixpanelAggregatedEventPropertyValuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,MAAM,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,kDAAkD;CAC1G,MAAM,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACrH,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjG,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAClJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACzI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yDAAyD,EAAE,OAAO;CACtE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sBAAsB;CAC3D,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,aAAa;AAClE,CAAC,CAAC,CAAC,SAAS,uBAAuB;AAMnC,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyD,EAAE,OAAO;EAClE,MAAM,uDAAuD,SAAS;EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxE,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"aggregated-event-property-values.mjs","names":[],"sources":["../../src/actions/aggregated-event-property-values.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelAggregatedEventPropertyValuesInput = z.object({\n name: z.string().describe(\"The name of the property you would like to get data for\"),\n type: z.enum([\"general\", \"unique\", \"average\"]).describe(\"The analysis type you would like to get data for\"),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"week\", \"month\"]).describe(\"The level of granularity of the data\"),\n event: z.string().describe(\"The event that you wish to get data for. Note: this is a single event name, not an array\"),\n limit: z.number().int().default(255).describe(\"The maximum number of values to return\").optional(),\n format: z.enum([\"json\", \"csv\"]).default(\"json\").describe(\"Data format options for Mixpanel responses.\").optional(),\n values: z.array(z.string()).describe(\"The specific property values that you would like to get data for. Example: ['female', 'unknown']\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\").optional(),\n interval: z.number().int().describe(\"The number of units to return data for. Specify either interval or from_date and to_date\").optional(),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\").optional(),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting aggregated event property values\");\nconst MixpanelAggregatedEventPropertyValues_SeriesDataSchema = z.object({\n series: z.array(z.string()).describe(\"Array of series data\"),\n values: z.record(z.string(), z.unknown()).describe(\"Values data\"),\n}).passthrough().describe(\"Model for series data\");\nexport const MixpanelAggregatedEventPropertyValuesOutput = z.object({\n data: MixpanelAggregatedEventPropertyValues_SeriesDataSchema.nullable(),\n legend_size: z.number().int().describe(\"Size of the legend\").nullable(),\n}).passthrough().describe(\"Response model for aggregated event property values data\");\n\nexport const mixpanelAggregatedEventPropertyValues = action(\"MIXPANEL_AGGREGATED_EVENT_PROPERTY_VALUES\", {\n slug: \"mixpanel-aggregated-event-property-values\",\n name: \"Get Aggregated Event Property Values\",\n description: \"Get unique, total, or average data for a single event and property over days, weeks, or months. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelAggregatedEventPropertyValuesInput,\n output: MixpanelAggregatedEventPropertyValuesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,MAAM,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,kDAAkD;CAC1G,MAAM,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,SAAS,sCAAsC;CACxG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F;CACrH,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACjG,QAAQ,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACjH,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAClJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAC/F,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACzI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yDAAyD,EAAE,OAAO;CACtE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sBAAsB;CAC3D,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,aAAa;AAClE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uBAAuB;AAMjD,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyD,EAAE,OAAO;EAClE,MAAM,uDAAuD,SAAS;EACtE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACxE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
@@ -13,8 +13,8 @@ const MixpanelCohortsList_CohortItemSchema = zod.z.object({
13
13
  is_visible: zod.z.number().int().describe("Visibility status flag (0 = not visible, 1 = visible)").nullable(),
14
14
  project_id: zod.z.number().int().describe("Associated project ID").nullable(),
15
15
  description: zod.z.string().describe("Cohort description/details").nullable().optional()
16
- }).describe("Individual cohort details.");
17
- const MixpanelCohortsListOutput = zod.z.object({ cohorts: zod.z.array(MixpanelCohortsList_CohortItemSchema).describe("List of cohorts in the project").nullable().optional() }).describe("Response model for list cohorts data.");
16
+ }).passthrough().describe("Individual cohort details.");
17
+ const MixpanelCohortsListOutput = zod.z.object({ cohorts: zod.z.array(MixpanelCohortsList_CohortItemSchema).describe("List of cohorts in the project").nullable().optional() }).passthrough().describe("Response model for list cohorts data.");
18
18
  const mixpanelCohortsList = require_action.action("MIXPANEL_COHORTS_LIST", {
19
19
  slug: "mixpanel-cohorts-list",
20
20
  name: "List Saved Cohorts",
@@ -1 +1 @@
1
- {"version":3,"file":"cohorts-list.cjs","names":["z","action"],"sources":["../../src/actions/cohorts-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelCohortsListInput = z.object({\n project_id: z.number().int().describe(\"The ID of the project to query. Required for listing cohorts.\"),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable.\").optional(),\n}).describe(\"Request model for listing cohorts from Mixpanel.\");\nconst MixpanelCohortsList_CohortItemSchema = z.object({\n id: z.number().int().describe(\"Unique cohort identifier\").nullable(),\n name: z.string().describe(\"The cohort's display name\").nullable(),\n count: z.number().int().describe(\"Number of users in the cohort\").nullable(),\n created: z.string().describe(\"Creation timestamp\").nullable(),\n is_visible: z.number().int().describe(\"Visibility status flag (0 = not visible, 1 = visible)\").nullable(),\n project_id: z.number().int().describe(\"Associated project ID\").nullable(),\n description: z.string().describe(\"Cohort description/details\").nullable().optional(),\n}).describe(\"Individual cohort details.\");\nexport const MixpanelCohortsListOutput = z.object({\n cohorts: z.array(MixpanelCohortsList_CohortItemSchema).describe(\"List of cohorts in the project\").nullable().optional(),\n}).describe(\"Response model for list cohorts data.\");\n\nexport const mixpanelCohortsList = action(\"MIXPANEL_COHORTS_LIST\", {\n slug: \"mixpanel-cohorts-list\",\n name: \"List Saved Cohorts\",\n description: \"Tool to list all saved cohorts in a Mixpanel project. Use when you need to retrieve cohort metadata including name, id, count, description, creation date, and visibility. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelCohortsListInput,\n output: MixpanelCohortsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,4BAA4B;AACxC,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxH,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"cohorts-list.cjs","names":["z","action"],"sources":["../../src/actions/cohorts-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelCohortsListInput = z.object({\n project_id: z.number().int().describe(\"The ID of the project to query. Required for listing cohorts.\"),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable.\").optional(),\n}).describe(\"Request model for listing cohorts from Mixpanel.\");\nconst MixpanelCohortsList_CohortItemSchema = z.object({\n id: z.number().int().describe(\"Unique cohort identifier\").nullable(),\n name: z.string().describe(\"The cohort's display name\").nullable(),\n count: z.number().int().describe(\"Number of users in the cohort\").nullable(),\n created: z.string().describe(\"Creation timestamp\").nullable(),\n is_visible: z.number().int().describe(\"Visibility status flag (0 = not visible, 1 = visible)\").nullable(),\n project_id: z.number().int().describe(\"Associated project ID\").nullable(),\n description: z.string().describe(\"Cohort description/details\").nullable().optional(),\n}).passthrough().describe(\"Individual cohort details.\");\nexport const MixpanelCohortsListOutput = z.object({\n cohorts: z.array(MixpanelCohortsList_CohortItemSchema).describe(\"List of cohorts in the project\").nullable().optional(),\n}).passthrough().describe(\"Response model for list cohorts data.\");\n\nexport const mixpanelCohortsList = action(\"MIXPANEL_COHORTS_LIST\", {\n slug: \"mixpanel-cohorts-list\",\n name: \"List Saved Cohorts\",\n description: \"Tool to list all saved cohorts in a Mixpanel project. Use when you need to retrieve cohort metadata including name, id, count, description, creation date, and visibility. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelCohortsListInput,\n output: MixpanelCohortsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC5D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4BAA4B;AACtD,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,SAASA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -14,12 +14,28 @@ declare const MixpanelCohortsListOutput: z.ZodObject<{
14
14
  is_visible: z.ZodNullable<z.ZodNumber>;
15
15
  project_id: z.ZodNullable<z.ZodNumber>;
16
16
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
- }, z.core.$strip>>>>;
18
- }, z.core.$strip>;
17
+ }, z.core.$loose>>>>;
18
+ }, z.core.$loose>;
19
19
  declare const mixpanelCohortsList: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  project_id: number;
21
21
  workspace_id?: number | undefined;
22
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
23
+ connectionId: z.ZodString;
24
+ entityId: z.ZodString;
25
+ instanceId: z.ZodString;
26
+ }, z.core.$strip>, z.ZodObject<{
27
+ username: z.ZodString;
28
+ password: z.ZodString;
29
+ region: z.ZodString;
30
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
31
+ connectionId: z.ZodString;
32
+ entityId: z.ZodString;
33
+ instanceId: z.ZodString;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ username: z.ZodString;
36
+ password: z.ZodString;
37
+ region: z.ZodString;
38
+ }, z.core.$strip>>]>;
23
39
  //#endregion
24
40
  export { mixpanelCohortsList };
25
41
  //# sourceMappingURL=cohorts-list.d.cts.map