@keystrokehq/mixpanel 0.1.2 → 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/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 +5 -4
- 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 +5 -4
- 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 +3 -3
- package/dist/actions/aggregate-events.cjs.map +1 -1
- package/dist/actions/aggregate-events.d.cts +3 -3
- package/dist/actions/aggregate-events.d.mts +3 -3
- package/dist/actions/aggregate-events.mjs +3 -3
- package/dist/actions/aggregate-events.mjs.map +1 -1
- package/dist/actions/aggregated-event-property-values.cjs +2 -2
- package/dist/actions/aggregated-event-property-values.cjs.map +1 -1
- package/dist/actions/aggregated-event-property-values.d.cts +2 -2
- package/dist/actions/aggregated-event-property-values.d.mts +2 -2
- package/dist/actions/aggregated-event-property-values.mjs +2 -2
- package/dist/actions/aggregated-event-property-values.mjs.map +1 -1
- package/dist/actions/cohorts-list.cjs +2 -2
- package/dist/actions/cohorts-list.cjs.map +1 -1
- package/dist/actions/cohorts-list.d.cts +2 -2
- package/dist/actions/cohorts-list.d.mts +2 -2
- package/dist/actions/cohorts-list.mjs +2 -2
- package/dist/actions/cohorts-list.mjs.map +1 -1
- package/dist/actions/create-annotation-tag.cjs +1 -1
- package/dist/actions/create-annotation-tag.cjs.map +1 -1
- package/dist/actions/create-annotation-tag.d.cts +1 -1
- package/dist/actions/create-annotation-tag.d.mts +1 -1
- package/dist/actions/create-annotation-tag.mjs +1 -1
- 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 +1 -1
- package/dist/actions/create-identity.d.mts +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 +3 -3
- package/dist/actions/create-service-account.cjs.map +1 -1
- package/dist/actions/create-service-account.d.cts +4 -3
- package/dist/actions/create-service-account.d.mts +4 -3
- package/dist/actions/create-service-account.mjs +3 -3
- 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 +1 -1
- package/dist/actions/delete-group.d.mts +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 +3 -2
- package/dist/actions/delete-profile-batch.d.mts +3 -2
- 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 +1 -1
- package/dist/actions/delete-profile-property.d.mts +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 +1 -1
- package/dist/actions/delete-profile.d.mts +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 +2 -2
- package/dist/actions/get-all-projects.d.mts +2 -2
- 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 +2 -2
- package/dist/actions/get-annotation-tags-alt1.cjs.map +1 -1
- package/dist/actions/get-annotation-tags-alt1.d.cts +2 -2
- package/dist/actions/get-annotation-tags-alt1.d.mts +2 -2
- package/dist/actions/get-annotation-tags-alt1.mjs +2 -2
- package/dist/actions/get-annotation-tags-alt1.mjs.map +1 -1
- package/dist/actions/group-batch-update.cjs +3 -3
- package/dist/actions/group-batch-update.cjs.map +1 -1
- package/dist/actions/group-batch-update.d.cts +5 -4
- package/dist/actions/group-batch-update.d.mts +5 -4
- package/dist/actions/group-batch-update.mjs +3 -3
- package/dist/actions/group-batch-update.mjs.map +1 -1
- package/dist/actions/group-delete-property.cjs +1 -1
- package/dist/actions/group-delete-property.cjs.map +1 -1
- package/dist/actions/group-delete-property.d.cts +1 -1
- package/dist/actions/group-delete-property.d.mts +1 -1
- package/dist/actions/group-delete-property.mjs +1 -1
- 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 +1 -1
- package/dist/actions/identity-create-alias.d.mts +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 +1 -1
- package/dist/actions/jql-query.d.mts +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 +2 -2
- package/dist/actions/list-funnels.cjs.map +1 -1
- package/dist/actions/list-funnels.d.cts +2 -2
- package/dist/actions/list-funnels.d.mts +2 -2
- package/dist/actions/list-funnels.mjs +2 -2
- package/dist/actions/list-funnels.mjs.map +1 -1
- package/dist/actions/list-service-accounts.cjs +2 -2
- package/dist/actions/list-service-accounts.cjs.map +1 -1
- package/dist/actions/list-service-accounts.d.cts +2 -2
- package/dist/actions/list-service-accounts.d.mts +2 -2
- package/dist/actions/list-service-accounts.mjs +2 -2
- 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 +3 -2
- package/dist/actions/profile-append-to-list-property.d.cts.map +1 -1
- package/dist/actions/profile-append-to-list-property.d.mts +3 -2
- 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 +5 -5
- package/dist/actions/profile-batch-update.cjs.map +1 -1
- package/dist/actions/profile-batch-update.d.cts +8 -7
- package/dist/actions/profile-batch-update.d.mts +8 -7
- package/dist/actions/profile-batch-update.mjs +5 -5
- package/dist/actions/profile-batch-update.mjs.map +1 -1
- package/dist/actions/profile-event-activity.cjs +4 -4
- package/dist/actions/profile-event-activity.cjs.map +1 -1
- package/dist/actions/profile-event-activity.d.cts +4 -4
- package/dist/actions/profile-event-activity.d.mts +4 -4
- package/dist/actions/profile-event-activity.mjs +4 -4
- 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 +3 -3
- package/dist/actions/profile-numerical-add.d.mts +3 -3
- 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 +3 -2
- package/dist/actions/profile-remove-from-list-property.d.cts.map +1 -1
- package/dist/actions/profile-remove-from-list-property.d.mts +3 -2
- 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 +1 -1
- package/dist/actions/profile-set.d.mts +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 +2 -2
- package/dist/actions/query-frequency-report.d.mts +2 -2
- 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 +3 -3
- package/dist/actions/query-funnel.d.mts +3 -3
- package/dist/actions/query-funnel.mjs +3 -3
- package/dist/actions/query-funnel.mjs.map +1 -1
- package/dist/actions/query-insight.cjs +3 -3
- package/dist/actions/query-insight.cjs.map +1 -1
- package/dist/actions/query-insight.d.cts +3 -3
- package/dist/actions/query-insight.d.mts +3 -3
- package/dist/actions/query-insight.mjs +3 -3
- package/dist/actions/query-insight.mjs.map +1 -1
- package/dist/actions/query-numeric-average.cjs +2 -2
- package/dist/actions/query-numeric-average.cjs.map +1 -1
- package/dist/actions/query-numeric-average.d.cts +2 -2
- package/dist/actions/query-numeric-average.d.mts +2 -2
- package/dist/actions/query-numeric-average.mjs +2 -2
- package/dist/actions/query-numeric-average.mjs.map +1 -1
- package/dist/actions/query-numeric-sum.cjs +2 -2
- package/dist/actions/query-numeric-sum.cjs.map +1 -1
- package/dist/actions/query-numeric-sum.d.cts +2 -2
- package/dist/actions/query-numeric-sum.d.mts +2 -2
- package/dist/actions/query-numeric-sum.mjs +2 -2
- package/dist/actions/query-numeric-sum.mjs.map +1 -1
- package/dist/actions/query-profiles.cjs +3 -3
- package/dist/actions/query-profiles.cjs.map +1 -1
- package/dist/actions/query-profiles.d.cts +4 -4
- package/dist/actions/query-profiles.d.mts +4 -4
- package/dist/actions/query-profiles.mjs +3 -3
- 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 +2 -2
- package/dist/actions/query-retention-report.d.mts +2 -2
- 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 +3 -3
- package/dist/actions/query-segmentation.cjs.map +1 -1
- package/dist/actions/query-segmentation.d.cts +3 -3
- package/dist/actions/query-segmentation.d.mts +3 -3
- package/dist/actions/query-segmentation.mjs +3 -3
- package/dist/actions/query-segmentation.mjs.map +1 -1
- package/dist/actions/query-top-events.cjs +2 -2
- package/dist/actions/query-top-events.cjs.map +1 -1
- package/dist/actions/query-top-events.d.cts +2 -2
- package/dist/actions/query-top-events.d.mts +2 -2
- package/dist/actions/query-top-events.mjs +2 -2
- 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 +3 -2
- package/dist/actions/remove-from-group-list-property.d.cts.map +1 -1
- package/dist/actions/remove-from-group-list-property.d.mts +3 -2
- 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 +1 -1
- package/dist/actions/remove-from-list-property.d.mts +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 +2 -2
- package/dist/actions/segmentation-numeric-query.d.mts +2 -2
- 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 +1 -1
- package/dist/actions/set-group-property-once.d.mts +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 +1 -1
- package/dist/actions/set-profile-property-once.d.mts +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-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 +1 -1
- package/dist/actions/top-event-property-values.d.mts +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 +1 -1
- package/dist/actions/top-events.d.mts +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 +5 -4
- package/dist/actions/update-group-list-property.d.cts.map +1 -1
- package/dist/actions/update-group-list-property.d.mts +5 -4
- 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/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-funnel.mjs","names":[],"sources":["../../src/actions/query-funnel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryFunnelInput = z.object({\n on: z.string().describe(\"The property expression to segment the event on\").optional(),\n unit: z.enum([\"day\", \"week\", \"month\"]).describe(\"Medium range time units for Mixpanel operations.\").optional(),\n limit: z.number().int().default(255).describe(\"Return the top property values. Maximum value 10,000\").optional(),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n length: z.number().int().describe(\"The number of units each user has to complete the funnel. May not be greater than 90 days\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n interval: z.number().int().default(1).describe(\"The number of days you want each bucket to contain\").optional(),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n funnel_id: z.number().int().describe(\"The funnel that you wish to get data for\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n length_unit: z.enum([\"second\", \"minute\", \"hour\", \"day\"]).describe(\"Extended time units including seconds for funnel analysis.\").optional(),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for querying funnel data\");\nconst MixpanelQueryFunnel_FunnelMetaSchema = z.object({\n dates: z.array(z.string()).describe(\"Date in YYYY-mm-dd format for each data point\"),\n}).describe(\"Model for funnel metadata\");\nexport const MixpanelQueryFunnelOutput = z.object({\n data: z.
|
|
1
|
+
{"version":3,"file":"query-funnel.mjs","names":[],"sources":["../../src/actions/query-funnel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryFunnelInput = z.object({\n on: z.string().describe(\"The property expression to segment the event on\").optional(),\n unit: z.enum([\"day\", \"week\", \"month\"]).describe(\"Medium range time units for Mixpanel operations.\").optional(),\n limit: z.number().int().default(255).describe(\"Return the top property values. Maximum value 10,000\").optional(),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n length: z.number().int().describe(\"The number of units each user has to complete the funnel. May not be greater than 90 days\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n interval: z.number().int().default(1).describe(\"The number of days you want each bucket to contain\").optional(),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n funnel_id: z.number().int().describe(\"The funnel that you wish to get data for\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n length_unit: z.enum([\"second\", \"minute\", \"hour\", \"day\"]).describe(\"Extended time units including seconds for funnel analysis.\").optional(),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for querying funnel data\");\nconst MixpanelQueryFunnel_FunnelMetaSchema = z.object({\n dates: z.array(z.string()).describe(\"Date in YYYY-mm-dd format for each data point\"),\n}).passthrough().describe(\"Model for funnel metadata\");\nexport const MixpanelQueryFunnelOutput = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Maps dates to funnel step data. Each key is a date string in YYYY-mm-dd format, and each value contains steps and analysis for that date bucket\"),\n meta: MixpanelQueryFunnel_FunnelMetaSchema.nullable(),\n}).passthrough().describe(\"Response model for funnel query data\");\n\nexport const mixpanelQueryFunnel = action(\"MIXPANEL_QUERY_FUNNEL\", {\n slug: \"mixpanel-query-funnel\",\n name: \"Query Saved Funnel\",\n description: \"Get data for a funnel. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelQueryFunnelInput,\n output: MixpanelQueryFunnelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,KAAK;EAAC;EAAO;EAAQ;CAAO,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CA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ACtD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
|
|
@@ -9,13 +9,13 @@ const MixpanelQueryInsightInput = zod.z.object({
|
|
|
9
9
|
const MixpanelQueryInsight_DateRangeSchema = zod.z.object({
|
|
10
10
|
toDate: zod.z.string().describe("End date of the query range in ISO 8601 format with timezone.").nullable(),
|
|
11
11
|
fromDate: zod.z.string().describe("Start date of the query range in ISO 8601 format with timezone.").nullable()
|
|
12
|
-
}).describe("Model for date range information");
|
|
12
|
+
}).passthrough().describe("Model for date range information");
|
|
13
13
|
const MixpanelQueryInsightOutput = zod.z.object({
|
|
14
|
-
series: zod.z.
|
|
14
|
+
series: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Object mapping event names to time-series data. Each event name key contains an object with ISO 8601 date strings as keys and integer event counts as values."),
|
|
15
15
|
headers: zod.z.array(zod.z.string()).describe("Array of strings explaining what the nested keys mean in the series object. Typically contains '$event' to indicate event names."),
|
|
16
16
|
dateRange: MixpanelQueryInsight_DateRangeSchema.nullable(),
|
|
17
17
|
computedAt: zod.z.string().describe("ISO 8601 timestamp indicating when the query results were computed.").nullable()
|
|
18
|
-
}).describe("Response model for insight query data");
|
|
18
|
+
}).passthrough().describe("Response model for insight query data");
|
|
19
19
|
const mixpanelQueryInsight = require_action.action("MIXPANEL_QUERY_INSIGHT", {
|
|
20
20
|
slug: "mixpanel-query-insight",
|
|
21
21
|
name: "Query Saved Insight",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-insight.cjs","names":["z","action"],"sources":["../../src/actions/query-insight.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryInsightInput = z.object({\n project_id: z.number().int().describe(\"Required if using service account to authenticate request Must match the configured connection region/cluster; a mismatch returns 'invalid project id for cluster'.\"),\n bookmark_id: z.number().int().describe(\"The ID of your Insights report\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for querying insight data\");\nconst MixpanelQueryInsight_DateRangeSchema = z.object({\n toDate: z.string().describe(\"End date of the query range in ISO 8601 format with timezone.\").nullable(),\n fromDate: z.string().describe(\"Start date of the query range in ISO 8601 format with timezone.\").nullable(),\n}).describe(\"Model for date range information\");\nexport const MixpanelQueryInsightOutput = z.object({\n series: z.
|
|
1
|
+
{"version":3,"file":"query-insight.cjs","names":["z","action"],"sources":["../../src/actions/query-insight.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryInsightInput = z.object({\n project_id: z.number().int().describe(\"Required if using service account to authenticate request Must match the configured connection region/cluster; a mismatch returns 'invalid project id for cluster'.\"),\n bookmark_id: z.number().int().describe(\"The ID of your Insights report\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for querying insight data\");\nconst MixpanelQueryInsight_DateRangeSchema = z.object({\n toDate: z.string().describe(\"End date of the query range in ISO 8601 format with timezone.\").nullable(),\n fromDate: z.string().describe(\"Start date of the query range in ISO 8601 format with timezone.\").nullable(),\n}).passthrough().describe(\"Model for date range information\");\nexport const MixpanelQueryInsightOutput = z.object({\n series: z.record(z.string(), z.unknown()).describe(\"Object mapping event names to time-series data. Each event name key contains an object with ISO 8601 date strings as keys and integer event counts as values.\"),\n headers: z.array(z.string()).describe(\"Array of strings explaining what the nested keys mean in the series object. Typically contains '$event' to indicate event names.\"),\n dateRange: MixpanelQueryInsight_DateRangeSchema.nullable(),\n computedAt: z.string().describe(\"ISO 8601 timestamp indicating when the query results were computed.\").nullable(),\n}).passthrough().describe(\"Response model for insight query data\");\n\nexport const mixpanelQueryInsight = action(\"MIXPANEL_QUERY_INSIGHT\", {\n slug: \"mixpanel-query-insight\",\n name: \"Query Saved Insight\",\n description: \"Get data from your Insights reports. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelQueryInsightInput,\n output: MixpanelQueryInsightOutput,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z.core.$strip>;
|
|
9
9
|
declare const MixpanelQueryInsightOutput: z.ZodObject<{
|
|
10
|
-
series: z.
|
|
10
|
+
series: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
11
|
headers: z.ZodArray<z.ZodString>;
|
|
12
12
|
dateRange: z.ZodNullable<z.ZodObject<{
|
|
13
13
|
toDate: z.ZodNullable<z.ZodString>;
|
|
14
14
|
fromDate: z.ZodNullable<z.ZodString>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
16
|
computedAt: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const mixpanelQueryInsight: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
project_id: number;
|
|
20
20
|
bookmark_id: number;
|
|
@@ -7,14 +7,14 @@ declare const MixpanelQueryInsightInput: z.ZodObject<{
|
|
|
7
7
|
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const MixpanelQueryInsightOutput: z.ZodObject<{
|
|
10
|
-
series: z.
|
|
10
|
+
series: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11
11
|
headers: z.ZodArray<z.ZodString>;
|
|
12
12
|
dateRange: z.ZodNullable<z.ZodObject<{
|
|
13
13
|
toDate: z.ZodNullable<z.ZodString>;
|
|
14
14
|
fromDate: z.ZodNullable<z.ZodString>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
16
|
computedAt: z.ZodNullable<z.ZodString>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>;
|
|
18
18
|
declare const mixpanelQueryInsight: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
19
|
project_id: number;
|
|
20
20
|
bookmark_id: number;
|
|
@@ -9,18 +9,18 @@ const MixpanelQueryInsightInput = z.object({
|
|
|
9
9
|
const MixpanelQueryInsight_DateRangeSchema = z.object({
|
|
10
10
|
toDate: z.string().describe("End date of the query range in ISO 8601 format with timezone.").nullable(),
|
|
11
11
|
fromDate: z.string().describe("Start date of the query range in ISO 8601 format with timezone.").nullable()
|
|
12
|
-
}).describe("Model for date range information");
|
|
12
|
+
}).passthrough().describe("Model for date range information");
|
|
13
13
|
const mixpanelQueryInsight = action("MIXPANEL_QUERY_INSIGHT", {
|
|
14
14
|
slug: "mixpanel-query-insight",
|
|
15
15
|
name: "Query Saved Insight",
|
|
16
16
|
description: "Get data from your Insights reports. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.",
|
|
17
17
|
input: MixpanelQueryInsightInput,
|
|
18
18
|
output: z.object({
|
|
19
|
-
series: z.
|
|
19
|
+
series: z.record(z.string(), z.unknown()).describe("Object mapping event names to time-series data. Each event name key contains an object with ISO 8601 date strings as keys and integer event counts as values."),
|
|
20
20
|
headers: z.array(z.string()).describe("Array of strings explaining what the nested keys mean in the series object. Typically contains '$event' to indicate event names."),
|
|
21
21
|
dateRange: MixpanelQueryInsight_DateRangeSchema.nullable(),
|
|
22
22
|
computedAt: z.string().describe("ISO 8601 timestamp indicating when the query results were computed.").nullable()
|
|
23
|
-
}).describe("Response model for insight query data")
|
|
23
|
+
}).passthrough().describe("Response model for insight query data")
|
|
24
24
|
});
|
|
25
25
|
//#endregion
|
|
26
26
|
export { mixpanelQueryInsight };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-insight.mjs","names":[],"sources":["../../src/actions/query-insight.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryInsightInput = z.object({\n project_id: z.number().int().describe(\"Required if using service account to authenticate request Must match the configured connection region/cluster; a mismatch returns 'invalid project id for cluster'.\"),\n bookmark_id: z.number().int().describe(\"The ID of your Insights report\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for querying insight data\");\nconst MixpanelQueryInsight_DateRangeSchema = z.object({\n toDate: z.string().describe(\"End date of the query range in ISO 8601 format with timezone.\").nullable(),\n fromDate: z.string().describe(\"Start date of the query range in ISO 8601 format with timezone.\").nullable(),\n}).describe(\"Model for date range information\");\nexport const MixpanelQueryInsightOutput = z.object({\n series: z.
|
|
1
|
+
{"version":3,"file":"query-insight.mjs","names":[],"sources":["../../src/actions/query-insight.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryInsightInput = z.object({\n project_id: z.number().int().describe(\"Required if using service account to authenticate request Must match the configured connection region/cluster; a mismatch returns 'invalid project id for cluster'.\"),\n bookmark_id: z.number().int().describe(\"The ID of your Insights report\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for querying insight data\");\nconst MixpanelQueryInsight_DateRangeSchema = z.object({\n toDate: z.string().describe(\"End date of the query range in ISO 8601 format with timezone.\").nullable(),\n fromDate: z.string().describe(\"Start date of the query range in ISO 8601 format with timezone.\").nullable(),\n}).passthrough().describe(\"Model for date range information\");\nexport const MixpanelQueryInsightOutput = z.object({\n series: z.record(z.string(), z.unknown()).describe(\"Object mapping event names to time-series data. Each event name key contains an object with ISO 8601 date strings as keys and integer event counts as values.\"),\n headers: z.array(z.string()).describe(\"Array of strings explaining what the nested keys mean in the series object. Typically contains '$event' to indicate event names.\"),\n dateRange: MixpanelQueryInsight_DateRangeSchema.nullable(),\n computedAt: z.string().describe(\"ISO 8601 timestamp indicating when the query results were computed.\").nullable(),\n}).passthrough().describe(\"Response model for insight query data\");\n\nexport const mixpanelQueryInsight = action(\"MIXPANEL_QUERY_INSIGHT\", {\n slug: \"mixpanel-query-insight\",\n name: \"Query Saved Insight\",\n description: \"Get data from your Insights reports. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelQueryInsightInput,\n output: MixpanelQueryInsightOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qKAAqK;CAC3M,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC;CACvE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,uCAAuC,EAAE,OAAO;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACtG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAQ5D,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+JAA+J;EAClN,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kIAAkI;EACxK,WAAW,qCAAqC,SAAS;EACzD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
|
|
@@ -13,8 +13,8 @@ const MixpanelQueryNumericAverageInput = zod.z.object({
|
|
|
13
13
|
}).describe("Request model for averaging numeric expressions");
|
|
14
14
|
const MixpanelQueryNumericAverageOutput = zod.z.object({
|
|
15
15
|
status: zod.z.string().describe("Status of the query").nullable(),
|
|
16
|
-
results: zod.z.
|
|
17
|
-
}).describe("Response model for numeric average query data");
|
|
16
|
+
results: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of dates to averaged values (can be null if no data)")
|
|
17
|
+
}).passthrough().describe("Response model for numeric average query data");
|
|
18
18
|
const mixpanelQueryNumericAverage = require_action.action("MIXPANEL_QUERY_NUMERIC_AVERAGE", {
|
|
19
19
|
slug: "mixpanel-query-numeric-average",
|
|
20
20
|
name: "Query Numeric Average Report",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-numeric-average.cjs","names":["z","action"],"sources":["../../src/actions/query-numeric-average.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericAverageInput = z.object({\n on: z.string().describe(\"The numeric expression to average per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for averaging numeric expressions\");\nexport const MixpanelQueryNumericAverageOutput = z.object({\n status: z.string().describe(\"Status of the query\").nullable(),\n results: z.
|
|
1
|
+
{"version":3,"file":"query-numeric-average.cjs","names":["z","action"],"sources":["../../src/actions/query-numeric-average.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericAverageInput = z.object({\n on: z.string().describe(\"The numeric expression to average per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for averaging numeric expressions\");\nexport const MixpanelQueryNumericAverageOutput = z.object({\n status: z.string().describe(\"Status of the query\").nullable(),\n results: z.record(z.string(), z.unknown()).describe(\"Map of dates to averaged values (can be null if no data)\"),\n}).passthrough().describe(\"Response model for numeric average query data\");\n\nexport const mixpanelQueryNumericAverage = action(\"MIXPANEL_QUERY_NUMERIC_AVERAGE\", {\n slug: \"mixpanel-query-numeric-average\",\n name: \"Query Numeric Average Report\",\n description: \"Averages an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Example response: { \\\"status\\\": \\\"ok\\\", \\\"results\\\": { \\\"2024-01-01\\\": 25.5, \\\"2024-01-02\\\": 32.75, \\\"2024-01-03\\\": 28.25 } }\",\n input: MixpanelQueryNumericAverageInput,\n output: MixpanelQueryNumericAverageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CACvG,MAAMA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACtH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC5D,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,8 +16,8 @@ declare const MixpanelQueryNumericAverageInput: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const MixpanelQueryNumericAverageOutput: z.ZodObject<{
|
|
18
18
|
status: z.ZodNullable<z.ZodString>;
|
|
19
|
-
results: z.
|
|
20
|
-
}, z.core.$
|
|
19
|
+
results: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const mixpanelQueryNumericAverage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
on: string;
|
|
23
23
|
event: string;
|
|
@@ -16,8 +16,8 @@ declare const MixpanelQueryNumericAverageInput: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const MixpanelQueryNumericAverageOutput: z.ZodObject<{
|
|
18
18
|
status: z.ZodNullable<z.ZodString>;
|
|
19
|
-
results: z.
|
|
20
|
-
}, z.core.$
|
|
19
|
+
results: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20
|
+
}, z.core.$loose>;
|
|
21
21
|
declare const mixpanelQueryNumericAverage: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
on: string;
|
|
23
23
|
event: string;
|
|
@@ -16,8 +16,8 @@ const mixpanelQueryNumericAverage = action("MIXPANEL_QUERY_NUMERIC_AVERAGE", {
|
|
|
16
16
|
}).describe("Request model for averaging numeric expressions"),
|
|
17
17
|
output: z.object({
|
|
18
18
|
status: z.string().describe("Status of the query").nullable(),
|
|
19
|
-
results: z.
|
|
20
|
-
}).describe("Response model for numeric average query data")
|
|
19
|
+
results: z.record(z.string(), z.unknown()).describe("Map of dates to averaged values (can be null if no data)")
|
|
20
|
+
}).passthrough().describe("Response model for numeric average query data")
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
23
23
|
export { mixpanelQueryNumericAverage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-numeric-average.mjs","names":[],"sources":["../../src/actions/query-numeric-average.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericAverageInput = z.object({\n on: z.string().describe(\"The numeric expression to average per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for averaging numeric expressions\");\nexport const MixpanelQueryNumericAverageOutput = z.object({\n status: z.string().describe(\"Status of the query\").nullable(),\n results: z.
|
|
1
|
+
{"version":3,"file":"query-numeric-average.mjs","names":[],"sources":["../../src/actions/query-numeric-average.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericAverageInput = z.object({\n on: z.string().describe(\"The numeric expression to average per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for averaging numeric expressions\");\nexport const MixpanelQueryNumericAverageOutput = z.object({\n status: z.string().describe(\"Status of the query\").nullable(),\n results: z.record(z.string(), z.unknown()).describe(\"Map of dates to averaged values (can be null if no data)\"),\n}).passthrough().describe(\"Response model for numeric average query data\");\n\nexport const mixpanelQueryNumericAverage = action(\"MIXPANEL_QUERY_NUMERIC_AVERAGE\", {\n slug: \"mixpanel-query-numeric-average\",\n name: \"Query Numeric Average Report\",\n description: \"Averages an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Example response: { \\\"status\\\": \\\"ok\\\", \\\"results\\\": { \\\"2024-01-01\\\": 25.5, \\\"2024-01-02\\\": 32.75, \\\"2024-01-03\\\": 28.25 } }\",\n input: MixpanelQueryNumericAverageInput,\n output: MixpanelQueryNumericAverageOutput,\n});\n"],"mappings":";;AAmBA,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EACvG,MAAM,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EACjG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,iDAUH;CACP,QAV+C,EAAE,OAAO;EACxD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAC5D,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D;CAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
|
|
@@ -13,9 +13,9 @@ const MixpanelQueryNumericSumInput = zod.z.object({
|
|
|
13
13
|
}).describe("Request model for summing numeric expressions");
|
|
14
14
|
const MixpanelQueryNumericSumOutput = zod.z.object({
|
|
15
15
|
status: zod.z.string().describe("Indicates whether the request was successful (e.g., 'ok').").nullable(),
|
|
16
|
-
results: zod.z.
|
|
16
|
+
results: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Maps date strings to numeric sum values. Each key is a date in 'YYYY-MM-DD' format and each value is the summed expression result for that date."),
|
|
17
17
|
computed_at: zod.z.string().describe("ISO 8601 timestamp showing when the computation occurred.").nullable()
|
|
18
|
-
}).describe("Response model for numeric sum query data");
|
|
18
|
+
}).passthrough().describe("Response model for numeric sum query data");
|
|
19
19
|
const mixpanelQueryNumericSum = require_action.action("MIXPANEL_QUERY_NUMERIC_SUM", {
|
|
20
20
|
slug: "mixpanel-query-numeric-sum",
|
|
21
21
|
name: "Query Numeric Sum Report",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-numeric-sum.cjs","names":["z","action"],"sources":["../../src/actions/query-numeric-sum.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericSumInput = z.object({\n on: z.string().describe(\"The numeric expression to sum per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for summing numeric expressions\");\nexport const MixpanelQueryNumericSumOutput = z.object({\n status: z.string().describe(\"Indicates whether the request was successful (e.g., 'ok').\").nullable(),\n results: z.
|
|
1
|
+
{"version":3,"file":"query-numeric-sum.cjs","names":["z","action"],"sources":["../../src/actions/query-numeric-sum.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericSumInput = z.object({\n on: z.string().describe(\"The numeric expression to sum per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for summing numeric expressions\");\nexport const MixpanelQueryNumericSumOutput = z.object({\n status: z.string().describe(\"Indicates whether the request was successful (e.g., 'ok').\").nullable(),\n results: z.record(z.string(), z.unknown()).describe(\"Maps date strings to numeric sum values. Each key is a date in 'YYYY-MM-DD' format and each value is the summed expression result for that date.\"),\n computed_at: z.string().describe(\"ISO 8601 timestamp showing when the computation occurred.\").nullable(),\n}).passthrough().describe(\"Response model for numeric sum query data\");\n\nexport const mixpanelQueryNumericSum = action(\"MIXPANEL_QUERY_NUMERIC_SUM\", {\n slug: \"mixpanel-query-numeric-sum\",\n name: \"Query Numeric Sum Report\",\n description: \"Sums an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Example response: { \\\"status\\\": \\\"ok\\\", \\\"computed_at\\\": \\\"2024-01-20T12:00:00\\\", \\\"results\\\": { \\\"2024-01-01\\\": 150.5, \\\"2024-01-02\\\": 245.75, \\\"2024-01-03\\\": 198.25 } }\",\n input: MixpanelQueryNumericSumInput,\n output: MixpanelQueryNumericSumOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;CACnG,MAAMA,IAAAA,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACtH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACpF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kJAAkJ;CACtM,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -16,9 +16,9 @@ declare const MixpanelQueryNumericSumInput: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const MixpanelQueryNumericSumOutput: z.ZodObject<{
|
|
18
18
|
status: z.ZodNullable<z.ZodString>;
|
|
19
|
-
results: z.
|
|
19
|
+
results: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20
20
|
computed_at: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const mixpanelQueryNumericSum: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
on: string;
|
|
24
24
|
event: string;
|
|
@@ -16,9 +16,9 @@ declare const MixpanelQueryNumericSumInput: z.ZodObject<{
|
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
declare const MixpanelQueryNumericSumOutput: z.ZodObject<{
|
|
18
18
|
status: z.ZodNullable<z.ZodString>;
|
|
19
|
-
results: z.
|
|
19
|
+
results: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20
20
|
computed_at: z.ZodNullable<z.ZodString>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const mixpanelQueryNumericSum: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
on: string;
|
|
24
24
|
event: string;
|
|
@@ -16,9 +16,9 @@ const mixpanelQueryNumericSum = action("MIXPANEL_QUERY_NUMERIC_SUM", {
|
|
|
16
16
|
}).describe("Request model for summing numeric expressions"),
|
|
17
17
|
output: z.object({
|
|
18
18
|
status: z.string().describe("Indicates whether the request was successful (e.g., 'ok').").nullable(),
|
|
19
|
-
results: z.
|
|
19
|
+
results: z.record(z.string(), z.unknown()).describe("Maps date strings to numeric sum values. Each key is a date in 'YYYY-MM-DD' format and each value is the summed expression result for that date."),
|
|
20
20
|
computed_at: z.string().describe("ISO 8601 timestamp showing when the computation occurred.").nullable()
|
|
21
|
-
}).describe("Response model for numeric sum query data")
|
|
21
|
+
}).passthrough().describe("Response model for numeric sum query data")
|
|
22
22
|
});
|
|
23
23
|
//#endregion
|
|
24
24
|
export { mixpanelQueryNumericSum };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-numeric-sum.mjs","names":[],"sources":["../../src/actions/query-numeric-sum.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericSumInput = z.object({\n on: z.string().describe(\"The numeric expression to sum per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for summing numeric expressions\");\nexport const MixpanelQueryNumericSumOutput = z.object({\n status: z.string().describe(\"Indicates whether the request was successful (e.g., 'ok').\").nullable(),\n results: z.
|
|
1
|
+
{"version":3,"file":"query-numeric-sum.mjs","names":[],"sources":["../../src/actions/query-numeric-sum.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryNumericSumInput = z.object({\n on: z.string().describe(\"The numeric expression to sum per unit time (should evaluate to a number)\"),\n unit: z.enum([\"hour\", \"day\"]).default(\"day\").describe(\"Shorter time units for certain Mixpanel operations.\").optional(),\n event: z.string().describe(\"The event to get data for (single event name)\"),\n where: z.string().describe(\"An expression to filter events by\").optional(),\n to_date: z.string().describe(\"The date in yyyy-mm-dd format to query to (inclusive)\"),\n from_date: z.string().describe(\"The date in yyyy-mm-dd format to begin querying from (inclusive)\"),\n project_id: z.number().int().describe(\"Required if using service account to authenticate request\"),\n workspace_id: z.number().int().describe(\"The id of the workspace if applicable\").optional(),\n}).describe(\"Request model for summing numeric expressions\");\nexport const MixpanelQueryNumericSumOutput = z.object({\n status: z.string().describe(\"Indicates whether the request was successful (e.g., 'ok').\").nullable(),\n results: z.record(z.string(), z.unknown()).describe(\"Maps date strings to numeric sum values. Each key is a date in 'YYYY-MM-DD' format and each value is the summed expression result for that date.\"),\n computed_at: z.string().describe(\"ISO 8601 timestamp showing when the computation occurred.\").nullable(),\n}).passthrough().describe(\"Response model for numeric sum query data\");\n\nexport const mixpanelQueryNumericSum = action(\"MIXPANEL_QUERY_NUMERIC_SUM\", {\n slug: \"mixpanel-query-numeric-sum\",\n name: \"Query Numeric Sum Report\",\n description: \"Sums an expression for events per unit time. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries. Example response: { \\\"status\\\": \\\"ok\\\", \\\"computed_at\\\": \\\"2024-01-20T12:00:00\\\", \\\"results\\\": { \\\"2024-01-01\\\": 150.5, \\\"2024-01-02\\\": 245.75, \\\"2024-01-03\\\": 198.25 } }\",\n input: MixpanelQueryNumericSumInput,\n output: MixpanelQueryNumericSumOutput,\n});\n"],"mappings":";;AAoBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E;EACnG,MAAM,EAAE,KAAK,CAAC,QAAQ,KAAK,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;EACpF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EACjG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,+CAWH;CACP,QAX2C,EAAE,OAAO;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kJAAkJ;EACtM,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -12,14 +12,14 @@ const MixpanelQueryProfilesInput = zod.z.object({
|
|
|
12
12
|
workspace_id: zod.z.number().int().describe("The ID of the workspace if applicable").optional(),
|
|
13
13
|
data_group_id: zod.z.string().describe("The ID of the group key, used when querying group profiles").optional(),
|
|
14
14
|
as_of_timestamp: zod.z.number().int().describe("Used with behaviors parameter for large exports").optional(),
|
|
15
|
-
filter_by_cohort: zod.z.
|
|
15
|
+
filter_by_cohort: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Filter by cohort ID. Example: {'id': 12345}").optional(),
|
|
16
16
|
include_all_users: zod.z.boolean().default(true).describe("When using filter_by_cohort, whether to include all distinct_ids even without profiles").optional(),
|
|
17
17
|
output_properties: zod.z.array(zod.z.string()).describe("List of property names to return in the response").optional()
|
|
18
18
|
}).describe("Request model for querying profile data from Mixpanel.");
|
|
19
19
|
const MixpanelQueryProfiles_ProfileResultSchema = zod.z.object({
|
|
20
20
|
$properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Object containing all profile properties for this user or group. Common properties include $created (account creation timestamp), $email (user email), $first_name, $last_name, $last_seen (last activity timestamp), and custom properties defined by the user"),
|
|
21
21
|
$distinct_id: zod.z.string().describe("The unique identifier of the user or group profile").nullable()
|
|
22
|
-
}).describe("Model for a single profile result.");
|
|
22
|
+
}).passthrough().describe("Model for a single profile result.");
|
|
23
23
|
const MixpanelQueryProfilesOutput = zod.z.object({
|
|
24
24
|
page: zod.z.number().int().describe("The page number of the results").nullable(),
|
|
25
25
|
total: zod.z.number().int().describe("The number of users in the results payload").nullable(),
|
|
@@ -27,7 +27,7 @@ const MixpanelQueryProfilesOutput = zod.z.object({
|
|
|
27
27
|
results: zod.z.array(MixpanelQueryProfiles_ProfileResultSchema).describe("Array of user or group profile objects matching the query criteria"),
|
|
28
28
|
page_size: zod.z.number().int().describe("The max number of results in a single page").nullable(),
|
|
29
29
|
session_id: zod.z.string().describe("Session identifier for pagination and caching purposes").nullable()
|
|
30
|
-
}).describe("Response model for profile query data.");
|
|
30
|
+
}).passthrough().describe("Response model for profile query data.");
|
|
31
31
|
const mixpanelQueryProfiles = require_action.action("MIXPANEL_QUERY_PROFILES", {
|
|
32
32
|
slug: "mixpanel-query-profiles",
|
|
33
33
|
name: "Query Profiles",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-profiles.cjs","names":["z","action"],"sources":["../../src/actions/query-profiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryProfilesInput = z.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.
|
|
1
|
+
{"version":3,"file":"query-profiles.cjs","names":["z","action"],"sources":["../../src/actions/query-profiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryProfilesInput = z.object({\n page: z.number().int().describe(\"Which page of results to retrieve (starts at 0)\").optional(),\n where: z.string().describe(\"An expression to filter users (or groups) by\").optional(),\n behaviors: z.number().int().describe(\"Required when using event selector for user profiles\").optional(),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n session_id: z.string().describe(\"Session ID from a previous query for pagination\").optional(),\n distinct_id: z.string().describe(\"A unique identifier used to distinguish an individual profile\").optional(),\n distinct_ids: z.array(z.string()).describe(\"A list of distinct_ids to retrieve profiles for\").optional(),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n data_group_id: z.string().describe(\"The ID of the group key, used when querying group profiles\").optional(),\n as_of_timestamp: z.number().int().describe(\"Used with behaviors parameter for large exports\").optional(),\n filter_by_cohort: z.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,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,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AAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iQAAiQ;CACzT,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACrF,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,oEAAoE;CACzI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ declare const MixpanelQueryProfilesInput: z.ZodObject<{
|
|
|
12
12
|
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
data_group_id: z.ZodOptional<z.ZodString>;
|
|
14
14
|
as_of_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
15
|
-
filter_by_cohort: z.ZodOptional<z.
|
|
15
|
+
filter_by_cohort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
16
|
include_all_users: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
17
17
|
output_properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
@@ -23,10 +23,10 @@ declare const MixpanelQueryProfilesOutput: z.ZodObject<{
|
|
|
23
23
|
results: z.ZodArray<z.ZodObject<{
|
|
24
24
|
$properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
25
|
$distinct_id: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
27
|
page_size: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
session_id: z.ZodNullable<z.ZodString>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const mixpanelQueryProfiles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
project_id: number;
|
|
32
32
|
page?: number | undefined;
|
|
@@ -38,7 +38,7 @@ declare const mixpanelQueryProfiles: import("@keystrokehq/action").WorkflowActio
|
|
|
38
38
|
workspace_id?: number | undefined;
|
|
39
39
|
data_group_id?: string | undefined;
|
|
40
40
|
as_of_timestamp?: number | undefined;
|
|
41
|
-
filter_by_cohort?: Record<string,
|
|
41
|
+
filter_by_cohort?: Record<string, unknown> | undefined;
|
|
42
42
|
include_all_users?: boolean | undefined;
|
|
43
43
|
output_properties?: string[] | undefined;
|
|
44
44
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -12,7 +12,7 @@ declare const MixpanelQueryProfilesInput: z.ZodObject<{
|
|
|
12
12
|
workspace_id: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
data_group_id: z.ZodOptional<z.ZodString>;
|
|
14
14
|
as_of_timestamp: z.ZodOptional<z.ZodNumber>;
|
|
15
|
-
filter_by_cohort: z.ZodOptional<z.
|
|
15
|
+
filter_by_cohort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
16
|
include_all_users: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
17
17
|
output_properties: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
18
18
|
}, z.core.$strip>;
|
|
@@ -23,10 +23,10 @@ declare const MixpanelQueryProfilesOutput: z.ZodObject<{
|
|
|
23
23
|
results: z.ZodArray<z.ZodObject<{
|
|
24
24
|
$properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
25
25
|
$distinct_id: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>;
|
|
27
27
|
page_size: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
session_id: z.ZodNullable<z.ZodString>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const mixpanelQueryProfiles: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
project_id: number;
|
|
32
32
|
page?: number | undefined;
|
|
@@ -38,7 +38,7 @@ declare const mixpanelQueryProfiles: import("@keystrokehq/action").WorkflowActio
|
|
|
38
38
|
workspace_id?: number | undefined;
|
|
39
39
|
data_group_id?: string | undefined;
|
|
40
40
|
as_of_timestamp?: number | undefined;
|
|
41
|
-
filter_by_cohort?: Record<string,
|
|
41
|
+
filter_by_cohort?: Record<string, unknown> | undefined;
|
|
42
42
|
include_all_users?: boolean | undefined;
|
|
43
43
|
output_properties?: string[] | undefined;
|
|
44
44
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -12,14 +12,14 @@ const MixpanelQueryProfilesInput = z.object({
|
|
|
12
12
|
workspace_id: z.number().int().describe("The ID of the workspace if applicable").optional(),
|
|
13
13
|
data_group_id: z.string().describe("The ID of the group key, used when querying group profiles").optional(),
|
|
14
14
|
as_of_timestamp: z.number().int().describe("Used with behaviors parameter for large exports").optional(),
|
|
15
|
-
filter_by_cohort: z.
|
|
15
|
+
filter_by_cohort: z.record(z.string(), z.unknown()).describe("Filter by cohort ID. Example: {'id': 12345}").optional(),
|
|
16
16
|
include_all_users: z.boolean().default(true).describe("When using filter_by_cohort, whether to include all distinct_ids even without profiles").optional(),
|
|
17
17
|
output_properties: z.array(z.string()).describe("List of property names to return in the response").optional()
|
|
18
18
|
}).describe("Request model for querying profile data from Mixpanel.");
|
|
19
19
|
const MixpanelQueryProfiles_ProfileResultSchema = z.object({
|
|
20
20
|
$properties: z.record(z.string(), z.unknown()).describe("Object containing all profile properties for this user or group. Common properties include $created (account creation timestamp), $email (user email), $first_name, $last_name, $last_seen (last activity timestamp), and custom properties defined by the user"),
|
|
21
21
|
$distinct_id: z.string().describe("The unique identifier of the user or group profile").nullable()
|
|
22
|
-
}).describe("Model for a single profile result.");
|
|
22
|
+
}).passthrough().describe("Model for a single profile result.");
|
|
23
23
|
const mixpanelQueryProfiles = action("MIXPANEL_QUERY_PROFILES", {
|
|
24
24
|
slug: "mixpanel-query-profiles",
|
|
25
25
|
name: "Query Profiles",
|
|
@@ -32,7 +32,7 @@ const mixpanelQueryProfiles = action("MIXPANEL_QUERY_PROFILES", {
|
|
|
32
32
|
results: z.array(MixpanelQueryProfiles_ProfileResultSchema).describe("Array of user or group profile objects matching the query criteria"),
|
|
33
33
|
page_size: z.number().int().describe("The max number of results in a single page").nullable(),
|
|
34
34
|
session_id: z.string().describe("Session identifier for pagination and caching purposes").nullable()
|
|
35
|
-
}).describe("Response model for profile query data.")
|
|
35
|
+
}).passthrough().describe("Response model for profile query data.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { mixpanelQueryProfiles };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-profiles.mjs","names":[],"sources":["../../src/actions/query-profiles.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelQueryProfilesInput = z.object({\n page: z.number().int().describe(\"Which page of results to retrieve (starts at 0)\").optional(),\n where: z.string().describe(\"An expression to filter users (or groups) by\").optional(),\n behaviors: z.number().int().describe(\"Required when using event selector for user profiles\").optional(),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n session_id: z.string().describe(\"Session ID from a previous query for pagination\").optional(),\n distinct_id: z.string().describe(\"A unique identifier used to distinguish an individual profile\").optional(),\n distinct_ids: z.array(z.string()).describe(\"A list of distinct_ids to retrieve profiles for\").optional(),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n data_group_id: z.string().describe(\"The ID of the group key, used when querying group profiles\").optional(),\n as_of_timestamp: z.number().int().describe(\"Used with behaviors parameter for large exports\").optional(),\n filter_by_cohort: z.
|
|
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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AC,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 = 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.
|
|
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,CAA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CAAC,CAAC,CAAC,SAAS,sHAAsH,EACzK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAE7F,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -25,8 +25,8 @@ declare const MixpanelQueryRetentionReportInput: z.ZodObject<{
|
|
|
25
25
|
unbounded_retention: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
declare const MixpanelQueryRetentionReportOutput: z.ZodObject<{
|
|
28
|
-
data: z.
|
|
29
|
-
}, z.core.$
|
|
28
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
to_date: string;
|
|
32
32
|
from_date: string;
|
|
@@ -25,8 +25,8 @@ declare const MixpanelQueryRetentionReportInput: z.ZodObject<{
|
|
|
25
25
|
unbounded_retention: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
26
26
|
}, z.core.$strip>;
|
|
27
27
|
declare const MixpanelQueryRetentionReportOutput: z.ZodObject<{
|
|
28
|
-
data: z.
|
|
29
|
-
}, z.core.$
|
|
28
|
+
data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
29
|
+
}, z.core.$loose>;
|
|
30
30
|
declare const mixpanelQueryRetentionReport: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
31
31
|
to_date: string;
|
|
32
32
|
from_date: string;
|
|
@@ -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 };
|