@keystrokehq/mixpanel 0.1.0 → 0.1.3
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.
- package/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-unique-to-profile-list-property.cjs +3 -3
- package/dist/actions/add-unique-to-profile-list-property.cjs.map +1 -1
- package/dist/actions/add-unique-to-profile-list-property.d.cts +31 -3
- package/dist/actions/add-unique-to-profile-list-property.d.cts.map +1 -1
- package/dist/actions/add-unique-to-profile-list-property.d.mts +31 -3
- package/dist/actions/add-unique-to-profile-list-property.d.mts.map +1 -1
- package/dist/actions/add-unique-to-profile-list-property.mjs +3 -3
- package/dist/actions/add-unique-to-profile-list-property.mjs.map +1 -1
- package/dist/actions/aggregate-events.cjs +4 -4
- package/dist/actions/aggregate-events.cjs.map +1 -1
- package/dist/actions/aggregate-events.d.cts +44 -3
- package/dist/actions/aggregate-events.d.cts.map +1 -1
- package/dist/actions/aggregate-events.d.mts +44 -3
- package/dist/actions/aggregate-events.d.mts.map +1 -1
- package/dist/actions/aggregate-events.mjs +4 -4
- package/dist/actions/aggregate-events.mjs.map +1 -1
- package/dist/actions/aggregated-event-property-values.cjs +3 -3
- package/dist/actions/aggregated-event-property-values.cjs.map +1 -1
- package/dist/actions/aggregated-event-property-values.d.cts +48 -3
- package/dist/actions/aggregated-event-property-values.d.cts.map +1 -1
- package/dist/actions/aggregated-event-property-values.d.mts +48 -3
- package/dist/actions/aggregated-event-property-values.d.mts.map +1 -1
- package/dist/actions/aggregated-event-property-values.mjs +3 -3
- package/dist/actions/aggregated-event-property-values.mjs.map +1 -1
- package/dist/actions/cohorts-list.cjs +8 -8
- package/dist/actions/cohorts-list.cjs.map +1 -1
- package/dist/actions/cohorts-list.d.cts +19 -3
- package/dist/actions/cohorts-list.d.cts.map +1 -1
- package/dist/actions/cohorts-list.d.mts +19 -3
- package/dist/actions/cohorts-list.d.mts.map +1 -1
- package/dist/actions/cohorts-list.mjs +8 -8
- package/dist/actions/cohorts-list.mjs.map +1 -1
- package/dist/actions/create-annotation-tag.cjs +4 -4
- package/dist/actions/create-annotation-tag.cjs.map +1 -1
- package/dist/actions/create-annotation-tag.d.cts +14 -3
- package/dist/actions/create-annotation-tag.d.cts.map +1 -1
- package/dist/actions/create-annotation-tag.d.mts +14 -3
- package/dist/actions/create-annotation-tag.d.mts.map +1 -1
- package/dist/actions/create-annotation-tag.mjs +4 -4
- package/dist/actions/create-annotation-tag.mjs.map +1 -1
- package/dist/actions/create-identity.cjs +1 -1
- package/dist/actions/create-identity.cjs.map +1 -1
- package/dist/actions/create-identity.d.cts +18 -3
- package/dist/actions/create-identity.d.cts.map +1 -1
- package/dist/actions/create-identity.d.mts +18 -3
- package/dist/actions/create-identity.d.mts.map +1 -1
- package/dist/actions/create-identity.mjs +1 -1
- package/dist/actions/create-identity.mjs.map +1 -1
- package/dist/actions/create-service-account.cjs +9 -9
- package/dist/actions/create-service-account.cjs.map +1 -1
- package/dist/actions/create-service-account.d.cts +44 -3
- package/dist/actions/create-service-account.d.cts.map +1 -1
- package/dist/actions/create-service-account.d.mts +44 -3
- package/dist/actions/create-service-account.d.mts.map +1 -1
- package/dist/actions/create-service-account.mjs +9 -9
- package/dist/actions/create-service-account.mjs.map +1 -1
- package/dist/actions/delete-group.cjs +1 -1
- package/dist/actions/delete-group.cjs.map +1 -1
- package/dist/actions/delete-group.d.cts +16 -3
- package/dist/actions/delete-group.d.cts.map +1 -1
- package/dist/actions/delete-group.d.mts +16 -3
- package/dist/actions/delete-group.d.mts.map +1 -1
- package/dist/actions/delete-group.mjs +1 -1
- package/dist/actions/delete-group.mjs.map +1 -1
- package/dist/actions/delete-profile-batch.cjs +2 -2
- package/dist/actions/delete-profile-batch.cjs.map +1 -1
- package/dist/actions/delete-profile-batch.d.cts +21 -3
- package/dist/actions/delete-profile-batch.d.cts.map +1 -1
- package/dist/actions/delete-profile-batch.d.mts +21 -3
- package/dist/actions/delete-profile-batch.d.mts.map +1 -1
- package/dist/actions/delete-profile-batch.mjs +2 -2
- package/dist/actions/delete-profile-batch.mjs.map +1 -1
- package/dist/actions/delete-profile-property.cjs +1 -1
- package/dist/actions/delete-profile-property.cjs.map +1 -1
- package/dist/actions/delete-profile-property.d.cts +22 -3
- package/dist/actions/delete-profile-property.d.cts.map +1 -1
- package/dist/actions/delete-profile-property.d.mts +22 -3
- package/dist/actions/delete-profile-property.d.mts.map +1 -1
- package/dist/actions/delete-profile-property.mjs +1 -1
- package/dist/actions/delete-profile-property.mjs.map +1 -1
- package/dist/actions/delete-profile.cjs +1 -1
- package/dist/actions/delete-profile.cjs.map +1 -1
- package/dist/actions/delete-profile.d.cts +17 -3
- package/dist/actions/delete-profile.d.cts.map +1 -1
- package/dist/actions/delete-profile.d.mts +17 -3
- package/dist/actions/delete-profile.d.mts.map +1 -1
- package/dist/actions/delete-profile.mjs +1 -1
- package/dist/actions/delete-profile.mjs.map +1 -1
- package/dist/actions/get-all-projects.cjs +1 -1
- package/dist/actions/get-all-projects.cjs.map +1 -1
- package/dist/actions/get-all-projects.d.cts +5 -3
- package/dist/actions/get-all-projects.d.cts.map +1 -1
- package/dist/actions/get-all-projects.d.mts +5 -3
- package/dist/actions/get-all-projects.d.mts.map +1 -1
- package/dist/actions/get-all-projects.mjs +1 -1
- package/dist/actions/get-all-projects.mjs.map +1 -1
- package/dist/actions/get-annotation-tags-alt1.cjs +6 -6
- package/dist/actions/get-annotation-tags-alt1.cjs.map +1 -1
- package/dist/actions/get-annotation-tags-alt1.d.cts +14 -3
- package/dist/actions/get-annotation-tags-alt1.d.cts.map +1 -1
- package/dist/actions/get-annotation-tags-alt1.d.mts +14 -3
- package/dist/actions/get-annotation-tags-alt1.d.mts.map +1 -1
- package/dist/actions/get-annotation-tags-alt1.mjs +6 -6
- package/dist/actions/get-annotation-tags-alt1.mjs.map +1 -1
- package/dist/actions/group-batch-update.cjs +5 -5
- package/dist/actions/group-batch-update.cjs.map +1 -1
- package/dist/actions/group-batch-update.d.cts +38 -3
- package/dist/actions/group-batch-update.d.cts.map +1 -1
- package/dist/actions/group-batch-update.d.mts +38 -3
- package/dist/actions/group-batch-update.d.mts.map +1 -1
- package/dist/actions/group-batch-update.mjs +5 -5
- package/dist/actions/group-batch-update.mjs.map +1 -1
- package/dist/actions/group-delete-property.cjs +2 -2
- package/dist/actions/group-delete-property.cjs.map +1 -1
- package/dist/actions/group-delete-property.d.cts +17 -3
- package/dist/actions/group-delete-property.d.cts.map +1 -1
- package/dist/actions/group-delete-property.d.mts +17 -3
- package/dist/actions/group-delete-property.d.mts.map +1 -1
- package/dist/actions/group-delete-property.mjs +2 -2
- package/dist/actions/group-delete-property.mjs.map +1 -1
- package/dist/actions/identity-create-alias.cjs +1 -1
- package/dist/actions/identity-create-alias.cjs.map +1 -1
- package/dist/actions/identity-create-alias.d.cts +13 -3
- package/dist/actions/identity-create-alias.d.cts.map +1 -1
- package/dist/actions/identity-create-alias.d.mts +13 -3
- package/dist/actions/identity-create-alias.d.mts.map +1 -1
- package/dist/actions/identity-create-alias.mjs +1 -1
- package/dist/actions/identity-create-alias.mjs.map +1 -1
- package/dist/actions/jql-query.cjs +1 -1
- package/dist/actions/jql-query.cjs.map +1 -1
- package/dist/actions/jql-query.d.cts +15 -3
- package/dist/actions/jql-query.d.cts.map +1 -1
- package/dist/actions/jql-query.d.mts +15 -3
- package/dist/actions/jql-query.d.mts.map +1 -1
- package/dist/actions/jql-query.mjs +1 -1
- package/dist/actions/jql-query.mjs.map +1 -1
- package/dist/actions/list-funnels.cjs +4 -4
- package/dist/actions/list-funnels.cjs.map +1 -1
- package/dist/actions/list-funnels.d.cts +14 -3
- package/dist/actions/list-funnels.d.cts.map +1 -1
- package/dist/actions/list-funnels.d.mts +14 -3
- package/dist/actions/list-funnels.d.mts.map +1 -1
- package/dist/actions/list-funnels.mjs +4 -4
- package/dist/actions/list-funnels.mjs.map +1 -1
- package/dist/actions/list-service-accounts.cjs +5 -5
- package/dist/actions/list-service-accounts.cjs.map +1 -1
- package/dist/actions/list-service-accounts.d.cts +18 -3
- package/dist/actions/list-service-accounts.d.cts.map +1 -1
- package/dist/actions/list-service-accounts.d.mts +18 -3
- package/dist/actions/list-service-accounts.d.mts.map +1 -1
- package/dist/actions/list-service-accounts.mjs +5 -5
- package/dist/actions/list-service-accounts.mjs.map +1 -1
- package/dist/actions/profile-append-to-list-property.cjs +2 -2
- package/dist/actions/profile-append-to-list-property.cjs.map +1 -1
- package/dist/actions/profile-append-to-list-property.d.cts +25 -3
- package/dist/actions/profile-append-to-list-property.d.cts.map +1 -1
- package/dist/actions/profile-append-to-list-property.d.mts +25 -3
- package/dist/actions/profile-append-to-list-property.d.mts.map +1 -1
- package/dist/actions/profile-append-to-list-property.mjs +2 -2
- package/dist/actions/profile-append-to-list-property.mjs.map +1 -1
- package/dist/actions/profile-batch-update.cjs +7 -7
- package/dist/actions/profile-batch-update.cjs.map +1 -1
- package/dist/actions/profile-batch-update.d.cts +47 -3
- package/dist/actions/profile-batch-update.d.cts.map +1 -1
- package/dist/actions/profile-batch-update.d.mts +47 -3
- package/dist/actions/profile-batch-update.d.mts.map +1 -1
- package/dist/actions/profile-batch-update.mjs +7 -7
- package/dist/actions/profile-batch-update.mjs.map +1 -1
- package/dist/actions/profile-event-activity.cjs +6 -6
- package/dist/actions/profile-event-activity.cjs.map +1 -1
- package/dist/actions/profile-event-activity.d.cts +59 -3
- package/dist/actions/profile-event-activity.d.cts.map +1 -1
- package/dist/actions/profile-event-activity.d.mts +59 -3
- package/dist/actions/profile-event-activity.d.mts.map +1 -1
- package/dist/actions/profile-event-activity.mjs +6 -6
- package/dist/actions/profile-event-activity.mjs.map +1 -1
- package/dist/actions/profile-numerical-add.cjs +2 -2
- package/dist/actions/profile-numerical-add.cjs.map +1 -1
- package/dist/actions/profile-numerical-add.d.cts +22 -3
- package/dist/actions/profile-numerical-add.d.cts.map +1 -1
- package/dist/actions/profile-numerical-add.d.mts +22 -3
- package/dist/actions/profile-numerical-add.d.mts.map +1 -1
- package/dist/actions/profile-numerical-add.mjs +2 -2
- package/dist/actions/profile-numerical-add.mjs.map +1 -1
- package/dist/actions/profile-remove-from-list-property.cjs +2 -2
- package/dist/actions/profile-remove-from-list-property.cjs.map +1 -1
- package/dist/actions/profile-remove-from-list-property.d.cts +25 -3
- package/dist/actions/profile-remove-from-list-property.d.cts.map +1 -1
- package/dist/actions/profile-remove-from-list-property.d.mts +25 -3
- package/dist/actions/profile-remove-from-list-property.d.mts.map +1 -1
- package/dist/actions/profile-remove-from-list-property.mjs +2 -2
- package/dist/actions/profile-remove-from-list-property.mjs.map +1 -1
- package/dist/actions/profile-set.cjs +1 -1
- package/dist/actions/profile-set.cjs.map +1 -1
- package/dist/actions/profile-set.d.cts +20 -3
- package/dist/actions/profile-set.d.cts.map +1 -1
- package/dist/actions/profile-set.d.mts +20 -3
- package/dist/actions/profile-set.d.mts.map +1 -1
- package/dist/actions/profile-set.mjs +1 -1
- package/dist/actions/profile-set.mjs.map +1 -1
- package/dist/actions/query-frequency-report.cjs +1 -1
- package/dist/actions/query-frequency-report.cjs.map +1 -1
- package/dist/actions/query-frequency-report.d.cts +34 -3
- package/dist/actions/query-frequency-report.d.cts.map +1 -1
- package/dist/actions/query-frequency-report.d.mts +34 -3
- package/dist/actions/query-frequency-report.d.mts.map +1 -1
- package/dist/actions/query-frequency-report.mjs +1 -1
- package/dist/actions/query-frequency-report.mjs.map +1 -1
- package/dist/actions/query-funnel.cjs +3 -3
- package/dist/actions/query-funnel.cjs.map +1 -1
- package/dist/actions/query-funnel.d.cts +43 -3
- package/dist/actions/query-funnel.d.cts.map +1 -1
- package/dist/actions/query-funnel.d.mts +43 -3
- package/dist/actions/query-funnel.d.mts.map +1 -1
- package/dist/actions/query-funnel.mjs +3 -3
- package/dist/actions/query-funnel.mjs.map +1 -1
- package/dist/actions/query-insight.cjs +6 -6
- package/dist/actions/query-insight.cjs.map +1 -1
- package/dist/actions/query-insight.d.cts +19 -3
- package/dist/actions/query-insight.d.cts.map +1 -1
- package/dist/actions/query-insight.d.mts +19 -3
- package/dist/actions/query-insight.d.mts.map +1 -1
- package/dist/actions/query-insight.mjs +6 -6
- package/dist/actions/query-insight.mjs.map +1 -1
- package/dist/actions/query-numeric-average.cjs +3 -3
- package/dist/actions/query-numeric-average.cjs.map +1 -1
- package/dist/actions/query-numeric-average.d.cts +27 -3
- package/dist/actions/query-numeric-average.d.cts.map +1 -1
- package/dist/actions/query-numeric-average.d.mts +27 -3
- package/dist/actions/query-numeric-average.d.mts.map +1 -1
- package/dist/actions/query-numeric-average.mjs +3 -3
- package/dist/actions/query-numeric-average.mjs.map +1 -1
- package/dist/actions/query-numeric-sum.cjs +4 -4
- package/dist/actions/query-numeric-sum.cjs.map +1 -1
- package/dist/actions/query-numeric-sum.d.cts +28 -3
- package/dist/actions/query-numeric-sum.d.cts.map +1 -1
- package/dist/actions/query-numeric-sum.d.mts +28 -3
- package/dist/actions/query-numeric-sum.d.mts.map +1 -1
- package/dist/actions/query-numeric-sum.mjs +4 -4
- package/dist/actions/query-numeric-sum.mjs.map +1 -1
- package/dist/actions/query-profiles.cjs +9 -9
- package/dist/actions/query-profiles.cjs.map +1 -1
- package/dist/actions/query-profiles.d.cts +41 -3
- package/dist/actions/query-profiles.d.cts.map +1 -1
- package/dist/actions/query-profiles.d.mts +41 -3
- package/dist/actions/query-profiles.d.mts.map +1 -1
- package/dist/actions/query-profiles.mjs +9 -9
- package/dist/actions/query-profiles.mjs.map +1 -1
- package/dist/actions/query-retention-report.cjs +1 -1
- package/dist/actions/query-retention-report.cjs.map +1 -1
- package/dist/actions/query-retention-report.d.cts +42 -3
- package/dist/actions/query-retention-report.d.cts.map +1 -1
- package/dist/actions/query-retention-report.d.mts +42 -3
- package/dist/actions/query-retention-report.d.mts.map +1 -1
- package/dist/actions/query-retention-report.mjs +1 -1
- package/dist/actions/query-retention-report.mjs.map +1 -1
- package/dist/actions/query-segmentation.cjs +4 -4
- package/dist/actions/query-segmentation.cjs.map +1 -1
- package/dist/actions/query-segmentation.d.cts +40 -3
- package/dist/actions/query-segmentation.d.cts.map +1 -1
- package/dist/actions/query-segmentation.d.mts +40 -3
- package/dist/actions/query-segmentation.d.mts.map +1 -1
- package/dist/actions/query-segmentation.mjs +4 -4
- package/dist/actions/query-segmentation.mjs.map +1 -1
- package/dist/actions/query-top-events.cjs +5 -5
- package/dist/actions/query-top-events.cjs.map +1 -1
- package/dist/actions/query-top-events.d.cts +28 -3
- package/dist/actions/query-top-events.d.cts.map +1 -1
- package/dist/actions/query-top-events.d.mts +28 -3
- package/dist/actions/query-top-events.d.mts.map +1 -1
- package/dist/actions/query-top-events.mjs +5 -5
- package/dist/actions/query-top-events.mjs.map +1 -1
- package/dist/actions/remove-from-group-list-property.cjs +2 -2
- package/dist/actions/remove-from-group-list-property.cjs.map +1 -1
- package/dist/actions/remove-from-group-list-property.d.cts +22 -3
- package/dist/actions/remove-from-group-list-property.d.cts.map +1 -1
- package/dist/actions/remove-from-group-list-property.d.mts +22 -3
- package/dist/actions/remove-from-group-list-property.d.mts.map +1 -1
- package/dist/actions/remove-from-group-list-property.mjs +2 -2
- package/dist/actions/remove-from-group-list-property.mjs.map +1 -1
- package/dist/actions/remove-from-list-property.cjs +1 -1
- package/dist/actions/remove-from-list-property.cjs.map +1 -1
- package/dist/actions/remove-from-list-property.d.cts +20 -3
- package/dist/actions/remove-from-list-property.d.cts.map +1 -1
- package/dist/actions/remove-from-list-property.d.mts +20 -3
- package/dist/actions/remove-from-list-property.d.mts.map +1 -1
- package/dist/actions/remove-from-list-property.mjs +1 -1
- package/dist/actions/remove-from-list-property.mjs.map +1 -1
- package/dist/actions/segmentation-numeric-query.cjs +2 -2
- package/dist/actions/segmentation-numeric-query.cjs.map +1 -1
- package/dist/actions/segmentation-numeric-query.d.cts +37 -3
- package/dist/actions/segmentation-numeric-query.d.cts.map +1 -1
- package/dist/actions/segmentation-numeric-query.d.mts +37 -3
- package/dist/actions/segmentation-numeric-query.d.mts.map +1 -1
- package/dist/actions/segmentation-numeric-query.mjs +2 -2
- package/dist/actions/segmentation-numeric-query.mjs.map +1 -1
- package/dist/actions/set-group-property-once.cjs +1 -1
- package/dist/actions/set-group-property-once.cjs.map +1 -1
- package/dist/actions/set-group-property-once.d.cts +17 -3
- package/dist/actions/set-group-property-once.d.cts.map +1 -1
- package/dist/actions/set-group-property-once.d.mts +17 -3
- package/dist/actions/set-group-property-once.d.mts.map +1 -1
- package/dist/actions/set-group-property-once.mjs +1 -1
- package/dist/actions/set-group-property-once.mjs.map +1 -1
- package/dist/actions/set-profile-property-once.cjs +1 -1
- package/dist/actions/set-profile-property-once.cjs.map +1 -1
- package/dist/actions/set-profile-property-once.d.cts +20 -3
- package/dist/actions/set-profile-property-once.d.cts.map +1 -1
- package/dist/actions/set-profile-property-once.d.mts +20 -3
- package/dist/actions/set-profile-property-once.d.mts.map +1 -1
- package/dist/actions/set-profile-property-once.mjs +1 -1
- package/dist/actions/set-profile-property-once.mjs.map +1 -1
- package/dist/actions/top-event-properties.cjs.map +1 -1
- package/dist/actions/top-event-properties.d.cts +13 -3
- package/dist/actions/top-event-properties.d.cts.map +1 -1
- package/dist/actions/top-event-properties.d.mts +13 -3
- package/dist/actions/top-event-properties.d.mts.map +1 -1
- package/dist/actions/top-event-properties.mjs.map +1 -1
- package/dist/actions/top-event-property-values.cjs +1 -1
- package/dist/actions/top-event-property-values.cjs.map +1 -1
- package/dist/actions/top-event-property-values.d.cts +17 -3
- package/dist/actions/top-event-property-values.d.cts.map +1 -1
- package/dist/actions/top-event-property-values.d.mts +17 -3
- package/dist/actions/top-event-property-values.d.mts.map +1 -1
- package/dist/actions/top-event-property-values.mjs +1 -1
- package/dist/actions/top-event-property-values.mjs.map +1 -1
- package/dist/actions/top-events.cjs +1 -1
- package/dist/actions/top-events.cjs.map +1 -1
- package/dist/actions/top-events.d.cts +19 -3
- package/dist/actions/top-events.d.cts.map +1 -1
- package/dist/actions/top-events.d.mts +19 -3
- package/dist/actions/top-events.d.mts.map +1 -1
- package/dist/actions/top-events.mjs +1 -1
- package/dist/actions/top-events.mjs.map +1 -1
- package/dist/actions/update-group-list-property.cjs +3 -3
- package/dist/actions/update-group-list-property.cjs.map +1 -1
- package/dist/actions/update-group-list-property.d.cts +27 -3
- package/dist/actions/update-group-list-property.d.cts.map +1 -1
- package/dist/actions/update-group-list-property.d.mts +27 -3
- package/dist/actions/update-group-list-property.d.mts.map +1 -1
- package/dist/actions/update-group-list-property.mjs +3 -3
- package/dist/actions/update-group-list-property.mjs.map +1 -1
- package/dist/catalog.cjs +18 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +17 -0
- package/dist/catalog.d.mts +17 -0
- package/dist/catalog.mjs +18 -1
- package/dist/catalog.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-profiles.mjs","names":[],"sources":["../../src/actions/query-profiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryProfilesInput
|
|
1
|
+
{"version":3,"file":"query-profiles.mjs","names":[],"sources":["../../src/actions/query-profiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryProfilesInput = z.object({\n page: z.number().int().describe(\"Which page of results to retrieve (starts at 0)\").optional(),\n where: z.string().describe(\"An expression to filter users (or groups) by\").optional(),\n behaviors: z.number().int().describe(\"Required when using event selector for user profiles\").optional(),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n session_id: z.string().describe(\"Session ID from a previous query for pagination\").optional(),\n distinct_id: z.string().describe(\"A unique identifier used to distinguish an individual profile\").optional(),\n distinct_ids: z.array(z.string()).describe(\"A list of distinct_ids to retrieve profiles for\").optional(),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n data_group_id: z.string().describe(\"The ID of the group key, used when querying group profiles\").optional(),\n as_of_timestamp: z.number().int().describe(\"Used with behaviors parameter for large exports\").optional(),\n filter_by_cohort: z.record(z.string(), z.unknown()).describe(\"Filter by cohort ID. Example: {'id': 12345}\").optional(),\n include_all_users: z.boolean().default(true).describe(\"When using filter_by_cohort, whether to include all distinct_ids even without profiles\").optional(),\n output_properties: z.array(z.string()).describe(\"List of property names to return in the response\").optional(),\n}).describe(\"Request model for querying profile data from Mixpanel.\");\nconst MixpanelQueryProfiles_ProfileResultSchema = z.object({\n $properties: z.record(z.string(), z.unknown()).describe(\"Object containing all profile properties for this user or group. Common properties include $created (account creation timestamp), $email (user email), $first_name, $last_name, $last_seen (last activity timestamp), and custom properties defined by the user\"),\n $distinct_id: z.string().describe(\"The unique identifier of the user or group profile\").nullable(),\n}).passthrough().describe(\"Model for a single profile result.\");\nexport const MixpanelQueryProfilesOutput = z.object({\n page: z.number().int().describe(\"The page number of the results\").nullable(),\n total: z.number().int().describe(\"The number of users in the results payload\").nullable(),\n status: z.string().describe(\"Indicates whether the request was successful\").nullable(),\n results: z.array(MixpanelQueryProfiles_ProfileResultSchema).describe(\"Array of user or group profile objects matching the query criteria\"),\n page_size: z.number().int().describe(\"The max number of results in a single page\").nullable(),\n session_id: z.string().describe(\"Session identifier for pagination and caching purposes\").nullable(),\n}).passthrough().describe(\"Response model for profile query data.\");\n\nexport const mixpanelQueryProfiles = action(\"MIXPANEL_QUERY_PROFILES\", {\n slug: \"mixpanel-query-profiles\",\n name: \"Query Profiles\",\n description: \"Query user or group profile data from Mixpanel. Returns list of profiles that match specified parameters. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelQueryProfilesInput,\n output: MixpanelQueryProfilesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACtG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC1G,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvG,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACrH,mBAAmB,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACzJ,mBAAmB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,4CAA4C,EAAE,OAAO;CACzD,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iQAAiQ;CACzT,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAU9D,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACrF,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oEAAoE;EACzI,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -21,7 +21,7 @@ const MixpanelQueryRetentionReportInput = zod.z.object({
|
|
|
21
21
|
retention_type: zod.z.enum(["birth", "compounded"]).default("birth").describe("Type of retention analysis: 'birth' for first-time retention or 'compounded' for recurring retention").optional(),
|
|
22
22
|
unbounded_retention: zod.z.boolean().default(false).describe("When true, uses accumulation method where values accumulate from right to left").optional()
|
|
23
23
|
}).describe("Request model for querying retention report from Mixpanel Query API");
|
|
24
|
-
const MixpanelQueryRetentionReportOutput = zod.z.object({ data: zod.z.
|
|
24
|
+
const MixpanelQueryRetentionReportOutput = zod.z.object({ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size") }).passthrough().describe("Response model for retention report query from Mixpanel Query API");
|
|
25
25
|
const mixpanelQueryRetentionReport = require_action.action("MIXPANEL_QUERY_RETENTION_REPORT", {
|
|
26
26
|
slug: "mixpanel-query-retention-report",
|
|
27
27
|
name: "Query Retention Report",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-retention-report.cjs","names":["z","action"],"sources":["../../src/actions/query-retention-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryRetentionReportInput
|
|
1
|
+
{"version":3,"file":"query-retention-report.cjs","names":["z","action"],"sources":["../../src/actions/query-retention-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryRetentionReportInput = z.object({\n on: z.string().describe(\"Property expression for segmentation (segments results by specified property)\").optional(),\n unit: z.enum([\"day\", \"week\", \"month\"]).default(\"day\").describe(\"Medium range time units for Mixpanel operations.\").optional(),\n event: z.string().describe(\"The target event to measure retention against\").optional(),\n limit: z.number().int().describe(\"Maximum number of top segmentation values to return (only valid with 'on' parameter)\").optional(),\n where: z.string().describe(\"Filter expression for event (see Mixpanel expressions documentation)\").optional(),\n to_date: z.string().describe(\"End date for the query range in YYYY-MM-DD format (inclusive)\"),\n from_date: z.string().describe(\"Start date for the query range in YYYY-MM-DD format (inclusive)\"),\n born_event: z.string().describe(\"The initial event that defines the cohort entry (required when retention_type='birth')\").optional(),\n born_where: z.string().describe(\"Filter expression for born_event (see Mixpanel expressions documentation)\").optional(),\n project_id: z.number().int().describe(\"Project identifier (required when using service account authentication)\"),\n workspace_id: z.number().int().describe(\"Workspace identifier if applicable\").optional(),\n interval_count: z.number().int().describe(\"Number of individual buckets/intervals to return\").optional(),\n retention_type: z.enum([\"birth\", \"compounded\"]).default(\"birth\").describe(\"Type of retention analysis: 'birth' for first-time retention or 'compounded' for recurring retention\").optional(),\n unbounded_retention: z.boolean().default(false).describe(\"When true, uses accumulation method where values accumulate from right to left\").optional(),\n}).describe(\"Request model for querying retention report from Mixpanel Query API\");\nexport const MixpanelQueryRetentionReportOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size\"),\n}).passthrough().describe(\"Response model for retention report query from Mixpanel Query API\");\n\nexport const mixpanelQueryRetentionReport = action(\"MIXPANEL_QUERY_RETENTION_REPORT\", {\n slug: \"mixpanel-query-retention-report\",\n name: \"Query Retention Report\",\n description: \"Query cohort analysis showing user retention patterns over time. Tracks how users who performed an initial event (born_event) subsequently perform a target event (event). Use the 'unit' parameter to control cohort interval granularity ('day', 'week', 'month'); defaults to 'day'.\",\n input: MixpanelQueryRetentionReportInput,\n output: MixpanelQueryRetentionReportOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;CAClH,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC5H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAClI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACnI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACtH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;CAC/G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvG,gBAAgBA,IAAAA,EAAE,KAAK,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC3L,qBAAqBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAa,qCAAqCA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,EACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAE7F,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,48 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-retention-report.d.ts
|
|
4
|
-
declare const MixpanelQueryRetentionReportInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MixpanelQueryRetentionReportInput: z.ZodObject<{
|
|
5
|
+
on: z.ZodOptional<z.ZodString>;
|
|
6
|
+
unit: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
day: "day";
|
|
8
|
+
week: "week";
|
|
9
|
+
month: "month";
|
|
10
|
+
}>>>;
|
|
11
|
+
event: z.ZodOptional<z.ZodString>;
|
|
12
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
where: z.ZodOptional<z.ZodString>;
|
|
14
|
+
to_date: z.ZodString;
|
|
15
|
+
from_date: z.ZodString;
|
|
16
|
+
born_event: z.ZodOptional<z.ZodString>;
|
|
17
|
+
born_where: z.ZodOptional<z.ZodString>;
|
|
18
|
+
project_id: z.ZodNumber;
|
|
19
|
+
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
interval_count: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
retention_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
22
|
+
birth: "birth";
|
|
23
|
+
compounded: "compounded";
|
|
24
|
+
}>>>;
|
|
25
|
+
unbounded_retention: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const MixpanelQueryRetentionReportOutput: z.ZodObject<{
|
|
28
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
|
+
declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
|
+
to_date: string;
|
|
32
|
+
from_date: string;
|
|
33
|
+
project_id: number;
|
|
34
|
+
on?: string | undefined;
|
|
35
|
+
unit?: "day" | "week" | "month" | undefined;
|
|
36
|
+
event?: string | undefined;
|
|
37
|
+
limit?: number | undefined;
|
|
38
|
+
where?: string | undefined;
|
|
39
|
+
born_event?: string | undefined;
|
|
40
|
+
born_where?: string | undefined;
|
|
41
|
+
workspace_id?: number | undefined;
|
|
42
|
+
interval_count?: number | undefined;
|
|
43
|
+
retention_type?: "birth" | "compounded" | undefined;
|
|
44
|
+
unbounded_retention?: boolean | undefined;
|
|
45
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { mixpanelQueryRetentionReport };
|
|
9
48
|
//# sourceMappingURL=query-retention-report.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-retention-report.d.cts","names":[],"sources":["../../src/actions/query-retention-report.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"query-retention-report.d.cts","names":[],"sources":["../../src/actions/query-retention-report.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAgBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -1,9 +1,48 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-retention-report.d.ts
|
|
4
|
-
declare const MixpanelQueryRetentionReportInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MixpanelQueryRetentionReportInput: z.ZodObject<{
|
|
5
|
+
on: z.ZodOptional<z.ZodString>;
|
|
6
|
+
unit: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
day: "day";
|
|
8
|
+
week: "week";
|
|
9
|
+
month: "month";
|
|
10
|
+
}>>>;
|
|
11
|
+
event: z.ZodOptional<z.ZodString>;
|
|
12
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
where: z.ZodOptional<z.ZodString>;
|
|
14
|
+
to_date: z.ZodString;
|
|
15
|
+
from_date: z.ZodString;
|
|
16
|
+
born_event: z.ZodOptional<z.ZodString>;
|
|
17
|
+
born_where: z.ZodOptional<z.ZodString>;
|
|
18
|
+
project_id: z.ZodNumber;
|
|
19
|
+
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
interval_count: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
retention_type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
22
|
+
birth: "birth";
|
|
23
|
+
compounded: "compounded";
|
|
24
|
+
}>>>;
|
|
25
|
+
unbounded_retention: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const MixpanelQueryRetentionReportOutput: z.ZodObject<{
|
|
28
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
|
+
declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
|
+
to_date: string;
|
|
32
|
+
from_date: string;
|
|
33
|
+
project_id: number;
|
|
34
|
+
on?: string | undefined;
|
|
35
|
+
unit?: "day" | "week" | "month" | undefined;
|
|
36
|
+
event?: string | undefined;
|
|
37
|
+
limit?: number | undefined;
|
|
38
|
+
where?: string | undefined;
|
|
39
|
+
born_event?: string | undefined;
|
|
40
|
+
born_where?: string | undefined;
|
|
41
|
+
workspace_id?: number | undefined;
|
|
42
|
+
interval_count?: number | undefined;
|
|
43
|
+
retention_type?: "birth" | "compounded" | undefined;
|
|
44
|
+
unbounded_retention?: boolean | undefined;
|
|
45
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { mixpanelQueryRetentionReport };
|
|
9
48
|
//# sourceMappingURL=query-retention-report.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-retention-report.d.mts","names":[],"sources":["../../src/actions/query-retention-report.ts"],"mappings":";;;cAIa,iCAAA,
|
|
1
|
+
{"version":3,"file":"query-retention-report.d.mts","names":[],"sources":["../../src/actions/query-retention-report.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAgBjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;cAIlC,4BAAA,gCAA4B,wBAAA"}
|
|
@@ -24,7 +24,7 @@ const mixpanelQueryRetentionReport = action("MIXPANEL_QUERY_RETENTION_REPORT", {
|
|
|
24
24
|
retention_type: z.enum(["birth", "compounded"]).default("birth").describe("Type of retention analysis: 'birth' for first-time retention or 'compounded' for recurring retention").optional(),
|
|
25
25
|
unbounded_retention: z.boolean().default(false).describe("When true, uses accumulation method where values accumulate from right to left").optional()
|
|
26
26
|
}).describe("Request model for querying retention report from Mixpanel Query API"),
|
|
27
|
-
output: z.object({ data: z.
|
|
27
|
+
output: z.object({ data: z.record(z.string(), z.unknown()).describe("Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size") }).passthrough().describe("Response model for retention report query from Mixpanel Query API")
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { mixpanelQueryRetentionReport };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-retention-report.mjs","names":[],"sources":["../../src/actions/query-retention-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryRetentionReportInput
|
|
1
|
+
{"version":3,"file":"query-retention-report.mjs","names":[],"sources":["../../src/actions/query-retention-report.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryRetentionReportInput = z.object({\n on: z.string().describe(\"Property expression for segmentation (segments results by specified property)\").optional(),\n unit: z.enum([\"day\", \"week\", \"month\"]).default(\"day\").describe(\"Medium range time units for Mixpanel operations.\").optional(),\n event: z.string().describe(\"The target event to measure retention against\").optional(),\n limit: z.number().int().describe(\"Maximum number of top segmentation values to return (only valid with 'on' parameter)\").optional(),\n where: z.string().describe(\"Filter expression for event (see Mixpanel expressions documentation)\").optional(),\n to_date: z.string().describe(\"End date for the query range in YYYY-MM-DD format (inclusive)\"),\n from_date: z.string().describe(\"Start date for the query range in YYYY-MM-DD format (inclusive)\"),\n born_event: z.string().describe(\"The initial event that defines the cohort entry (required when retention_type='birth')\").optional(),\n born_where: z.string().describe(\"Filter expression for born_event (see Mixpanel expressions documentation)\").optional(),\n project_id: z.number().int().describe(\"Project identifier (required when using service account authentication)\"),\n workspace_id: z.number().int().describe(\"Workspace identifier if applicable\").optional(),\n interval_count: z.number().int().describe(\"Number of individual buckets/intervals to return\").optional(),\n retention_type: z.enum([\"birth\", \"compounded\"]).default(\"birth\").describe(\"Type of retention analysis: 'birth' for first-time retention or 'compounded' for recurring retention\").optional(),\n unbounded_retention: z.boolean().default(false).describe(\"When true, uses accumulation method where values accumulate from right to left\").optional(),\n}).describe(\"Request model for querying retention report from Mixpanel Query API\");\nexport const MixpanelQueryRetentionReportOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Retention data keyed by date (YYYY-MM-DD format). Each date contains cohort retention counts and initial cohort size\"),\n}).passthrough().describe(\"Response model for retention report query from Mixpanel Query API\");\n\nexport const mixpanelQueryRetentionReport = action(\"MIXPANEL_QUERY_RETENTION_REPORT\", {\n slug: \"mixpanel-query-retention-report\",\n name: \"Query Retention Report\",\n description: \"Query cohort analysis showing user retention patterns over time. Tracks how users who performed an initial event (born_event) subsequently perform a target event (event). Use the 'unit' parameter to control cohort interval granularity ('day', 'week', 'month'); defaults to 'day'.\",\n input: MixpanelQueryRetentionReportInput,\n output: MixpanelQueryRetentionReportOutput,\n});\n"],"mappings":";;AAwBA,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxB+C,EAAE,OAAO;EACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EAClH,MAAM,EAAE,KAAK;GAAC;GAAO;GAAQ;EAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EAC5H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAClI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC5G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACnI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EACtH,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE;EAC/G,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACvF,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACvG,gBAAgB,EAAE,KAAK,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EAC3L,qBAAqB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACtJ,CAAC,CAAC,CAAC,SAAS,qEASH;CACP,QATgD,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH,EACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAOhB;AACV,CAAC"}
|
|
@@ -24,12 +24,12 @@ const MixpanelQuerySegmentationInput = zod.z.object({
|
|
|
24
24
|
}).describe("Request model for querying segmentation data");
|
|
25
25
|
const MixpanelQuerySegmentation_SegmentationDataSchema = zod.z.object({
|
|
26
26
|
series: zod.z.array(zod.z.string()).describe("All dates we have data for in the response"),
|
|
27
|
-
values: zod.z.
|
|
28
|
-
}).describe("Container for segmentation query results");
|
|
27
|
+
values: zod.z.record(zod.z.string(), zod.z.unknown()).describe("A mapping of event names to date-value pairs, where each date maps to the number of specified events that took place")
|
|
28
|
+
}).passthrough().describe("Container for segmentation query results");
|
|
29
29
|
const MixpanelQuerySegmentationOutput = zod.z.object({
|
|
30
30
|
data: MixpanelQuerySegmentation_SegmentationDataSchema.nullable(),
|
|
31
|
-
legend_size: zod.z.number().int().describe("Count of all events in the values object")
|
|
32
|
-
}).describe("Response model for segmentation query data");
|
|
31
|
+
legend_size: zod.z.number().int().describe("Count of all events in the values object").nullable()
|
|
32
|
+
}).passthrough().describe("Response model for segmentation query data");
|
|
33
33
|
const mixpanelQuerySegmentation = require_action.action("MIXPANEL_QUERY_SEGMENTATION", {
|
|
34
34
|
slug: "mixpanel-query-segmentation",
|
|
35
35
|
name: "Query Segmentation Report",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-segmentation.cjs","names":["z","action"],"sources":["../../src/actions/query-segmentation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQuerySegmentationInput
|
|
1
|
+
{"version":3,"file":"query-segmentation.cjs","names":["z","action"],"sources":["../../src/actions/query-segmentation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQuerySegmentationInput = z.object({\n on: z.string().describe(\"The property expression to segment the event on Properties unset for many events produce 'undefined' segment buckets; interpret as missing instrumentation, not zero traffic.\").optional(),\n type: z.enum([\"general\", \"unique\", \"average\"]).default(\"general\").describe(\"Analysis types for Mixpanel event aggregation.\").optional(),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"month\"]).default(\"day\").describe(\"Time units for segmentation queries.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n limit: z.number().int().default(60).describe(\"Return the top N property values (max 10000)\").optional(),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive) Use project timezone to avoid off-by-one-day range errors; reversed or overly narrow ranges yield empty results.\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request Region mismatch between the Mixpanel connection and the project's cluster returns 'invalid project id for cluster'; verify region before querying.\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for querying segmentation data\");\nconst MixpanelQuerySegmentation_SegmentationDataSchema = z.object({\n series: z.array(z.string()).describe(\"All dates we have data for in the response\"),\n values: z.record(z.string(), z.unknown()).describe(\"A mapping of event names to date-value pairs, where each date maps to the number of specified events that took place\"),\n}).passthrough().describe(\"Container for segmentation query results\");\nexport const MixpanelQuerySegmentationOutput = z.object({\n data: MixpanelQuerySegmentation_SegmentationDataSchema.nullable(),\n legend_size: z.number().int().describe(\"Count of all events in the values object\").nullable(),\n}).passthrough().describe(\"Response model for segmentation query data\");\n\nexport const mixpanelQuerySegmentation = action(\"MIXPANEL_QUERY_SEGMENTATION\", {\n slug: \"mixpanel-query-segmentation\",\n name: \"Query Segmentation Report\",\n description: \"Get data for an event, segmented and filtered by properties with daily/time-series breakdown. Use the 'unit' parameter to control time bucketing ('minute', 'hour', 'day', 'month'). The Query API has a rate limit of 60 queries per hour and 5 concurrent queries, shared across related tools (e.g., MIXPANEL_JQL_QUERY, MIXPANEL_TOP_EVENT_PROPERTY_VALUES); bursts of concurrent calls return 429.\",\n input: MixpanelQuerySegmentationInput,\n output: MixpanelQuerySegmentationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CAClN,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtI,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL;CAClN,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8MAA8M;CACpP,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACjF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH;AAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAM,iDAAiD,SAAS;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-segmentation.d.ts
|
|
4
|
-
declare const MixpanelQuerySegmentationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MixpanelQuerySegmentationInput: z.ZodObject<{
|
|
5
|
+
on: z.ZodOptional<z.ZodString>;
|
|
6
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
general: "general";
|
|
8
|
+
unique: "unique";
|
|
9
|
+
average: "average";
|
|
10
|
+
}>>>;
|
|
11
|
+
unit: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
minute: "minute";
|
|
13
|
+
hour: "hour";
|
|
14
|
+
day: "day";
|
|
15
|
+
month: "month";
|
|
16
|
+
}>>>;
|
|
17
|
+
event: z.ZodString;
|
|
18
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
19
|
+
where: z.ZodOptional<z.ZodString>;
|
|
20
|
+
to_date: z.ZodString;
|
|
21
|
+
from_date: z.ZodString;
|
|
22
|
+
project_id: z.ZodNumber;
|
|
23
|
+
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const MixpanelQuerySegmentationOutput: z.ZodObject<{
|
|
26
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
series: z.ZodArray<z.ZodString>;
|
|
28
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
legend_size: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
declare const mixpanelQuerySegmentation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
event: string;
|
|
34
|
+
to_date: string;
|
|
35
|
+
from_date: string;
|
|
36
|
+
project_id: number;
|
|
37
|
+
on?: string | undefined;
|
|
38
|
+
type?: "general" | "unique" | "average" | undefined;
|
|
39
|
+
unit?: "minute" | "hour" | "day" | "month" | undefined;
|
|
40
|
+
limit?: number | undefined;
|
|
41
|
+
where?: string | undefined;
|
|
42
|
+
workspace_id?: number | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { mixpanelQuerySegmentation };
|
|
9
46
|
//# sourceMappingURL=query-segmentation.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-segmentation.d.cts","names":[],"sources":["../../src/actions/query-segmentation.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"query-segmentation.d.cts","names":[],"sources":["../../src/actions/query-segmentation.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAgB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -1,9 +1,46 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-segmentation.d.ts
|
|
4
|
-
declare const MixpanelQuerySegmentationInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MixpanelQuerySegmentationInput: z.ZodObject<{
|
|
5
|
+
on: z.ZodOptional<z.ZodString>;
|
|
6
|
+
type: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
general: "general";
|
|
8
|
+
unique: "unique";
|
|
9
|
+
average: "average";
|
|
10
|
+
}>>>;
|
|
11
|
+
unit: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
12
|
+
minute: "minute";
|
|
13
|
+
hour: "hour";
|
|
14
|
+
day: "day";
|
|
15
|
+
month: "month";
|
|
16
|
+
}>>>;
|
|
17
|
+
event: z.ZodString;
|
|
18
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
19
|
+
where: z.ZodOptional<z.ZodString>;
|
|
20
|
+
to_date: z.ZodString;
|
|
21
|
+
from_date: z.ZodString;
|
|
22
|
+
project_id: z.ZodNumber;
|
|
23
|
+
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const MixpanelQuerySegmentationOutput: z.ZodObject<{
|
|
26
|
+
data: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
series: z.ZodArray<z.ZodString>;
|
|
28
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
|
+
}, z.core.$loose>>;
|
|
30
|
+
legend_size: z.ZodNullable<z.ZodNumber>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
declare const mixpanelQuerySegmentation: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
event: string;
|
|
34
|
+
to_date: string;
|
|
35
|
+
from_date: string;
|
|
36
|
+
project_id: number;
|
|
37
|
+
on?: string | undefined;
|
|
38
|
+
type?: "general" | "unique" | "average" | undefined;
|
|
39
|
+
unit?: "minute" | "hour" | "day" | "month" | undefined;
|
|
40
|
+
limit?: number | undefined;
|
|
41
|
+
where?: string | undefined;
|
|
42
|
+
workspace_id?: number | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { mixpanelQuerySegmentation };
|
|
9
46
|
//# sourceMappingURL=query-segmentation.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-segmentation.d.mts","names":[],"sources":["../../src/actions/query-segmentation.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"query-segmentation.d.mts","names":[],"sources":["../../src/actions/query-segmentation.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAgB9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;cAK/B,yBAAA,gCAAyB,wBAAA"}
|
|
@@ -24,8 +24,8 @@ const MixpanelQuerySegmentationInput = z.object({
|
|
|
24
24
|
}).describe("Request model for querying segmentation data");
|
|
25
25
|
const MixpanelQuerySegmentation_SegmentationDataSchema = z.object({
|
|
26
26
|
series: z.array(z.string()).describe("All dates we have data for in the response"),
|
|
27
|
-
values: z.
|
|
28
|
-
}).describe("Container for segmentation query results");
|
|
27
|
+
values: z.record(z.string(), z.unknown()).describe("A mapping of event names to date-value pairs, where each date maps to the number of specified events that took place")
|
|
28
|
+
}).passthrough().describe("Container for segmentation query results");
|
|
29
29
|
const mixpanelQuerySegmentation = action("MIXPANEL_QUERY_SEGMENTATION", {
|
|
30
30
|
slug: "mixpanel-query-segmentation",
|
|
31
31
|
name: "Query Segmentation Report",
|
|
@@ -33,8 +33,8 @@ const mixpanelQuerySegmentation = action("MIXPANEL_QUERY_SEGMENTATION", {
|
|
|
33
33
|
input: MixpanelQuerySegmentationInput,
|
|
34
34
|
output: z.object({
|
|
35
35
|
data: MixpanelQuerySegmentation_SegmentationDataSchema.nullable(),
|
|
36
|
-
legend_size: z.number().int().describe("Count of all events in the values object")
|
|
37
|
-
}).describe("Response model for segmentation query data")
|
|
36
|
+
legend_size: z.number().int().describe("Count of all events in the values object").nullable()
|
|
37
|
+
}).passthrough().describe("Response model for segmentation query data")
|
|
38
38
|
});
|
|
39
39
|
//#endregion
|
|
40
40
|
export { mixpanelQuerySegmentation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-segmentation.mjs","names":[],"sources":["../../src/actions/query-segmentation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQuerySegmentationInput
|
|
1
|
+
{"version":3,"file":"query-segmentation.mjs","names":[],"sources":["../../src/actions/query-segmentation.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQuerySegmentationInput = z.object({\n on: z.string().describe(\"The property expression to segment the event on Properties unset for many events produce 'undefined' segment buckets; interpret as missing instrumentation, not zero traffic.\").optional(),\n type: z.enum([\"general\", \"unique\", \"average\"]).default(\"general\").describe(\"Analysis types for Mixpanel event aggregation.\").optional(),\n unit: z.enum([\"minute\", \"hour\", \"day\", \"month\"]).default(\"day\").describe(\"Time units for segmentation queries.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n limit: z.number().int().default(60).describe(\"Return the top N property values (max 10000)\").optional(),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive) Use project timezone to avoid off-by-one-day range errors; reversed or overly narrow ranges yield empty results.\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request Region mismatch between the Mixpanel connection and the project's cluster returns 'invalid project id for cluster'; verify region before querying.\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for querying segmentation data\");\nconst MixpanelQuerySegmentation_SegmentationDataSchema = z.object({\n series: z.array(z.string()).describe(\"All dates we have data for in the response\"),\n values: z.record(z.string(), z.unknown()).describe(\"A mapping of event names to date-value pairs, where each date maps to the number of specified events that took place\"),\n}).passthrough().describe(\"Container for segmentation query results\");\nexport const MixpanelQuerySegmentationOutput = z.object({\n data: MixpanelQuerySegmentation_SegmentationDataSchema.nullable(),\n legend_size: z.number().int().describe(\"Count of all events in the values object\").nullable(),\n}).passthrough().describe(\"Response model for segmentation query data\");\n\nexport const mixpanelQuerySegmentation = action(\"MIXPANEL_QUERY_SEGMENTATION\", {\n slug: \"mixpanel-query-segmentation\",\n name: \"Query Segmentation Report\",\n description: \"Get data for an event, segmented and filtered by properties with daily/time-series breakdown. Use the 'unit' parameter to control time bucketing ('minute', 'hour', 'day', 'month'). The Query API has a rate limit of 60 queries per hour and 5 concurrent queries, shared across related tools (e.g., MIXPANEL_JQL_QUERY, MIXPANEL_TOP_EVENT_PROPERTY_VALUES); bursts of concurrent calls return 429.\",\n input: MixpanelQuerySegmentationInput,\n output: MixpanelQuerySegmentationOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+KAA+K,CAAC,CAAC,SAAS;CAClN,MAAM,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,QAAQ,SAAS,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACtI,MAAM,EAAE,KAAK;EAAC;EAAU;EAAQ;EAAO;CAAO,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC1H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACtG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mLAAmL;CAClN,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8MAA8M;CACpP,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,mDAAmD,EAAE,OAAO;CAChE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACjF,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sHAAsH;AAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAMpE,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6C,EAAE,OAAO;EACtD,MAAM,iDAAiD,SAAS;EAChE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
|
|
@@ -17,14 +17,14 @@ const MixpanelQueryTopEvents_AnalysisTypeSchema = zod.z.enum([
|
|
|
17
17
|
"average"
|
|
18
18
|
]).describe("Analysis types for Mixpanel event aggregation.");
|
|
19
19
|
const MixpanelQueryTopEvents_EventItemSchema = zod.z.object({
|
|
20
|
-
event: zod.z.string().describe("The name of the event"),
|
|
21
|
-
amount: zod.z.number().describe("Number of events (integer for general/unique types, float for average type)"),
|
|
22
|
-
percent_change: zod.z.number().describe("The percent change from yesterday")
|
|
23
|
-
}).describe("Model for individual event in the response");
|
|
20
|
+
event: zod.z.string().describe("The name of the event").nullable(),
|
|
21
|
+
amount: zod.z.number().describe("Number of events (integer for general/unique types, float for average type)").nullable(),
|
|
22
|
+
percent_change: zod.z.number().describe("The percent change from yesterday").nullable()
|
|
23
|
+
}).passthrough().describe("Model for individual event in the response");
|
|
24
24
|
const MixpanelQueryTopEventsOutput = zod.z.object({
|
|
25
25
|
type: MixpanelQueryTopEvents_AnalysisTypeSchema.nullable(),
|
|
26
26
|
events: zod.z.array(MixpanelQueryTopEvents_EventItemSchema).describe("List of top events with their statistics")
|
|
27
|
-
}).describe("Response model for top events query");
|
|
27
|
+
}).passthrough().describe("Response model for top events query");
|
|
28
28
|
const mixpanelQueryTopEvents = require_action.action("MIXPANEL_QUERY_TOP_EVENTS", {
|
|
29
29
|
slug: "mixpanel-query-top-events",
|
|
30
30
|
name: "Query Top Events",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-top-events.cjs","names":["z","action"],"sources":["../../src/actions/query-top-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryTopEventsInput
|
|
1
|
+
{"version":3,"file":"query-top-events.cjs","names":["z","action"],"sources":["../../src/actions/query-top-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryTopEventsInput = z.object({\n type: z.enum([\"general\", \"unique\", \"average\"]).describe(\"The analysis type - general, unique, or average\"),\n limit: z.number().int().default(100).describe(\"Maximum number of events to return\").optional(),\n project_id: z.number().int().describe(\"The project identifier. Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The workspace identifier if applicable\").optional(),\n}).describe(\"Request model for querying top events\");\nconst MixpanelQueryTopEvents_AnalysisTypeSchema = z.enum([\"general\", \"unique\", \"average\"]).describe(\"Analysis types for Mixpanel event aggregation.\");\nconst MixpanelQueryTopEvents_EventItemSchema = z.object({\n event: z.string().describe(\"The name of the event\").nullable(),\n amount: z.number().describe(\"Number of events (integer for general/unique types, float for average type)\").nullable(),\n percent_change: z.number().describe(\"The percent change from yesterday\").nullable(),\n}).passthrough().describe(\"Model for individual event in the response\");\nexport const MixpanelQueryTopEventsOutput = z.object({\n type: MixpanelQueryTopEvents_AnalysisTypeSchema.nullable(),\n events: z.array(MixpanelQueryTopEvents_EventItemSchema).describe(\"List of top events with their statistics\"),\n}).passthrough().describe(\"Response model for top events query\");\n\nexport const mixpanelQueryTopEvents = action(\"MIXPANEL_QUERY_TOP_EVENTS\", {\n slug: \"mixpanel-query-top-events\",\n name: \"Query Top Events\",\n description: \"Get the top events for today, with their counts and the normalized percent change from yesterday. Use when you need to analyze today's event performance compared to yesterday.\",\n input: MixpanelQueryTopEventsInput,\n output: MixpanelQueryTopEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,iDAAiD;CACzG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4CA,IAAAA,EAAE,KAAK;CAAC;CAAW;CAAU;AAAS,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpJ,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAM,0CAA0C,SAAS;CACzD,QAAQA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0CAA0C;AAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAE/D,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-top-events.d.ts
|
|
4
|
-
declare const MixpanelQueryTopEventsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MixpanelQueryTopEventsInput: z.ZodObject<{
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
general: "general";
|
|
7
|
+
unique: "unique";
|
|
8
|
+
average: "average";
|
|
9
|
+
}>;
|
|
10
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
11
|
+
project_id: z.ZodNumber;
|
|
12
|
+
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const MixpanelQueryTopEventsOutput: z.ZodObject<{
|
|
15
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
16
|
+
general: "general";
|
|
17
|
+
unique: "unique";
|
|
18
|
+
average: "average";
|
|
19
|
+
}>>;
|
|
20
|
+
events: z.ZodArray<z.ZodObject<{
|
|
21
|
+
event: z.ZodNullable<z.ZodString>;
|
|
22
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
percent_change: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const mixpanelQueryTopEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
type: "general" | "unique" | "average";
|
|
28
|
+
project_id: number;
|
|
29
|
+
limit?: number | undefined;
|
|
30
|
+
workspace_id?: number | undefined;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { mixpanelQueryTopEvents };
|
|
9
34
|
//# sourceMappingURL=query-top-events.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-top-events.d.cts","names":[],"sources":["../../src/actions/query-top-events.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"query-top-events.d.cts","names":[],"sources":["../../src/actions/query-top-events.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAY3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/query-top-events.d.ts
|
|
4
|
-
declare const MixpanelQueryTopEventsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const MixpanelQueryTopEventsInput: z.ZodObject<{
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
general: "general";
|
|
7
|
+
unique: "unique";
|
|
8
|
+
average: "average";
|
|
9
|
+
}>;
|
|
10
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
11
|
+
project_id: z.ZodNumber;
|
|
12
|
+
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
declare const MixpanelQueryTopEventsOutput: z.ZodObject<{
|
|
15
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
16
|
+
general: "general";
|
|
17
|
+
unique: "unique";
|
|
18
|
+
average: "average";
|
|
19
|
+
}>>;
|
|
20
|
+
events: z.ZodArray<z.ZodObject<{
|
|
21
|
+
event: z.ZodNullable<z.ZodString>;
|
|
22
|
+
amount: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
percent_change: z.ZodNullable<z.ZodNumber>;
|
|
24
|
+
}, z.core.$loose>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const mixpanelQueryTopEvents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
type: "general" | "unique" | "average";
|
|
28
|
+
project_id: number;
|
|
29
|
+
limit?: number | undefined;
|
|
30
|
+
workspace_id?: number | undefined;
|
|
31
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
32
|
//#endregion
|
|
8
33
|
export { mixpanelQueryTopEvents };
|
|
9
34
|
//# sourceMappingURL=query-top-events.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-top-events.d.mts","names":[],"sources":["../../src/actions/query-top-events.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"query-top-events.d.mts","names":[],"sources":["../../src/actions/query-top-events.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;cAY3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -17,10 +17,10 @@ const MixpanelQueryTopEvents_AnalysisTypeSchema = z.enum([
|
|
|
17
17
|
"average"
|
|
18
18
|
]).describe("Analysis types for Mixpanel event aggregation.");
|
|
19
19
|
const MixpanelQueryTopEvents_EventItemSchema = z.object({
|
|
20
|
-
event: z.string().describe("The name of the event"),
|
|
21
|
-
amount: z.number().describe("Number of events (integer for general/unique types, float for average type)"),
|
|
22
|
-
percent_change: z.number().describe("The percent change from yesterday")
|
|
23
|
-
}).describe("Model for individual event in the response");
|
|
20
|
+
event: z.string().describe("The name of the event").nullable(),
|
|
21
|
+
amount: z.number().describe("Number of events (integer for general/unique types, float for average type)").nullable(),
|
|
22
|
+
percent_change: z.number().describe("The percent change from yesterday").nullable()
|
|
23
|
+
}).passthrough().describe("Model for individual event in the response");
|
|
24
24
|
const mixpanelQueryTopEvents = action("MIXPANEL_QUERY_TOP_EVENTS", {
|
|
25
25
|
slug: "mixpanel-query-top-events",
|
|
26
26
|
name: "Query Top Events",
|
|
@@ -29,7 +29,7 @@ const mixpanelQueryTopEvents = action("MIXPANEL_QUERY_TOP_EVENTS", {
|
|
|
29
29
|
output: z.object({
|
|
30
30
|
type: MixpanelQueryTopEvents_AnalysisTypeSchema.nullable(),
|
|
31
31
|
events: z.array(MixpanelQueryTopEvents_EventItemSchema).describe("List of top events with their statistics")
|
|
32
|
-
}).describe("Response model for top events query")
|
|
32
|
+
}).passthrough().describe("Response model for top events query")
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { mixpanelQueryTopEvents };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-top-events.mjs","names":[],"sources":["../../src/actions/query-top-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryTopEventsInput
|
|
1
|
+
{"version":3,"file":"query-top-events.mjs","names":[],"sources":["../../src/actions/query-top-events.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryTopEventsInput = z.object({\n type: z.enum([\"general\", \"unique\", \"average\"]).describe(\"The analysis type - general, unique, or average\"),\n limit: z.number().int().default(100).describe(\"Maximum number of events to return\").optional(),\n project_id: z.number().int().describe(\"The project identifier. Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The workspace identifier if applicable\").optional(),\n}).describe(\"Request model for querying top events\");\nconst MixpanelQueryTopEvents_AnalysisTypeSchema = z.enum([\"general\", \"unique\", \"average\"]).describe(\"Analysis types for Mixpanel event aggregation.\");\nconst MixpanelQueryTopEvents_EventItemSchema = z.object({\n event: z.string().describe(\"The name of the event\").nullable(),\n amount: z.number().describe(\"Number of events (integer for general/unique types, float for average type)\").nullable(),\n percent_change: z.number().describe(\"The percent change from yesterday\").nullable(),\n}).passthrough().describe(\"Model for individual event in the response\");\nexport const MixpanelQueryTopEventsOutput = z.object({\n type: MixpanelQueryTopEvents_AnalysisTypeSchema.nullable(),\n events: z.array(MixpanelQueryTopEvents_EventItemSchema).describe(\"List of top events with their statistics\"),\n}).passthrough().describe(\"Response model for top events query\");\n\nexport const mixpanelQueryTopEvents = action(\"MIXPANEL_QUERY_TOP_EVENTS\", {\n slug: \"mixpanel-query-top-events\",\n name: \"Query Top Events\",\n description: \"Get the top events for today, with their counts and the normalized percent change from yesterday. Use when you need to analyze today's event performance compared to yesterday.\",\n input: MixpanelQueryTopEventsInput,\n output: MixpanelQueryTopEventsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,MAAM,EAAE,KAAK;EAAC;EAAW;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,iDAAiD;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA4C,EAAE,KAAK;CAAC;CAAW;CAAU;AAAS,CAAC,CAAC,CAAC,SAAS,gDAAgD;AACpJ,MAAM,yCAAyC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAMtE,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,MAAM,0CAA0C,SAAS;EACzD,QAAQ,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,0CAA0C;CAC7G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAOhB;AACV,CAAC"}
|