@keystrokehq/mixpanel 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +22 -5
- 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 +22 -5
- 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 +20 -4
- package/dist/actions/aggregate-events.d.mts +20 -4
- 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 +19 -3
- package/dist/actions/aggregated-event-property-values.d.mts +19 -3
- 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 +19 -3
- package/dist/actions/cohorts-list.d.mts +19 -3
- 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 +18 -2
- package/dist/actions/create-annotation-tag.d.mts +18 -2
- 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 +18 -2
- package/dist/actions/create-identity.d.mts +18 -2
- 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 +21 -4
- package/dist/actions/create-service-account.d.mts +21 -4
- 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 +18 -2
- package/dist/actions/delete-group.d.mts +18 -2
- 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 +20 -3
- package/dist/actions/delete-profile-batch.d.mts +20 -3
- 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 +18 -2
- package/dist/actions/delete-profile-property.d.mts +18 -2
- 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 +18 -2
- package/dist/actions/delete-profile.d.mts +18 -2
- 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 +19 -3
- package/dist/actions/get-all-projects.d.cts.map +1 -1
- package/dist/actions/get-all-projects.d.mts +19 -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 +2 -2
- package/dist/actions/get-annotation-tags-alt1.cjs.map +1 -1
- package/dist/actions/get-annotation-tags-alt1.d.cts +19 -3
- package/dist/actions/get-annotation-tags-alt1.d.mts +19 -3
- 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 +22 -5
- package/dist/actions/group-batch-update.d.mts +22 -5
- 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 +18 -2
- package/dist/actions/group-delete-property.d.mts +18 -2
- 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 +18 -2
- package/dist/actions/identity-create-alias.d.mts +18 -2
- 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 +18 -2
- package/dist/actions/jql-query.d.cts.map +1 -1
- package/dist/actions/jql-query.d.mts +18 -2
- 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 +2 -2
- package/dist/actions/list-funnels.cjs.map +1 -1
- package/dist/actions/list-funnels.d.cts +19 -3
- package/dist/actions/list-funnels.d.mts +19 -3
- 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 +19 -3
- package/dist/actions/list-service-accounts.d.mts +19 -3
- 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 +20 -3
- package/dist/actions/profile-append-to-list-property.d.cts.map +1 -1
- package/dist/actions/profile-append-to-list-property.d.mts +20 -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 +5 -5
- package/dist/actions/profile-batch-update.cjs.map +1 -1
- package/dist/actions/profile-batch-update.d.cts +25 -8
- package/dist/actions/profile-batch-update.d.mts +25 -8
- 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 +21 -5
- package/dist/actions/profile-event-activity.d.mts +21 -5
- 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 +20 -4
- package/dist/actions/profile-numerical-add.d.cts.map +1 -1
- package/dist/actions/profile-numerical-add.d.mts +20 -4
- 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 +20 -3
- package/dist/actions/profile-remove-from-list-property.d.cts.map +1 -1
- package/dist/actions/profile-remove-from-list-property.d.mts +20 -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 +18 -2
- package/dist/actions/profile-set.d.cts.map +1 -1
- package/dist/actions/profile-set.d.mts +18 -2
- 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 +19 -3
- package/dist/actions/query-frequency-report.d.mts +19 -3
- 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 +20 -4
- package/dist/actions/query-funnel.d.mts +20 -4
- 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 +20 -4
- package/dist/actions/query-insight.d.mts +20 -4
- 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 +19 -3
- package/dist/actions/query-numeric-average.d.mts +19 -3
- 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 +19 -3
- package/dist/actions/query-numeric-sum.d.mts +19 -3
- 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 +21 -5
- package/dist/actions/query-profiles.d.cts.map +1 -1
- package/dist/actions/query-profiles.d.mts +21 -5
- package/dist/actions/query-profiles.d.mts.map +1 -1
- 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 +19 -3
- package/dist/actions/query-retention-report.d.mts +19 -3
- 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 +20 -4
- package/dist/actions/query-segmentation.d.mts +20 -4
- 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 +19 -3
- package/dist/actions/query-top-events.d.mts +19 -3
- 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 +20 -3
- package/dist/actions/remove-from-group-list-property.d.cts.map +1 -1
- package/dist/actions/remove-from-group-list-property.d.mts +20 -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 +18 -2
- package/dist/actions/remove-from-list-property.d.cts.map +1 -1
- package/dist/actions/remove-from-list-property.d.mts +18 -2
- 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 +19 -3
- package/dist/actions/segmentation-numeric-query.d.mts +19 -3
- 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 +18 -2
- package/dist/actions/set-group-property-once.d.cts.map +1 -1
- package/dist/actions/set-group-property-once.d.mts +18 -2
- 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 +18 -2
- package/dist/actions/set-profile-property-once.d.cts.map +1 -1
- package/dist/actions/set-profile-property-once.d.mts +18 -2
- 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.d.cts +17 -1
- package/dist/actions/top-event-properties.d.mts +17 -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 +18 -2
- package/dist/actions/top-event-property-values.d.mts +18 -2
- 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 +18 -2
- package/dist/actions/top-events.d.mts +18 -2
- 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 +22 -5
- package/dist/actions/update-group-list-property.d.cts.map +1 -1
- package/dist/actions/update-group-list-property.d.mts +22 -5
- 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/app.cjs +9 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +11 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +11 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +7 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
declare const MixpanelProfileBatchUpdateInput: z.ZodObject<{
|
|
5
5
|
profiles: z.ZodArray<z.ZodObject<{
|
|
6
6
|
ip: z.ZodOptional<z.ZodString>;
|
|
7
|
-
add: z.ZodOptional<z.
|
|
7
|
+
add: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
8
|
set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
9
|
time: z.ZodOptional<z.ZodNumber>;
|
|
10
10
|
token: z.ZodString;
|
|
11
|
-
union: z.ZodOptional<z.
|
|
11
|
+
union: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
12
|
unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
13
|
append: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
14
|
delete: z.ZodOptional<z.ZodString>;
|
|
@@ -17,7 +17,7 @@ declare const MixpanelProfileBatchUpdateInput: z.ZodObject<{
|
|
|
17
17
|
set_once: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
18
|
distinct_id: z.ZodOptional<z.ZodString>;
|
|
19
19
|
ignore_time: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
declare const MixpanelProfileBatchUpdateOutput: z.ZodObject<{
|
|
23
23
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -26,17 +26,18 @@ declare const MixpanelProfileBatchUpdateOutput: z.ZodObject<{
|
|
|
26
26
|
field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
index: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
message: z.ZodNullable<z.ZodString>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
30
|
num_records_imported: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const mixpanelProfileBatchUpdate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
profiles: {
|
|
34
|
+
[x: string]: unknown;
|
|
34
35
|
token: string;
|
|
35
36
|
ip?: string | undefined;
|
|
36
|
-
add?: Record<string,
|
|
37
|
+
add?: Record<string, unknown> | undefined;
|
|
37
38
|
set?: Record<string, unknown> | undefined;
|
|
38
39
|
time?: number | undefined;
|
|
39
|
-
union?: Record<string,
|
|
40
|
+
union?: Record<string, unknown> | undefined;
|
|
40
41
|
unset?: string[] | undefined;
|
|
41
42
|
append?: Record<string, unknown> | undefined;
|
|
42
43
|
delete?: string | undefined;
|
|
@@ -46,7 +47,23 @@ declare const mixpanelProfileBatchUpdate: import("@keystrokehq/action").Workflow
|
|
|
46
47
|
distinct_id?: string | undefined;
|
|
47
48
|
ignore_time?: boolean | undefined;
|
|
48
49
|
}[];
|
|
49
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
50
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
51
|
+
connectionId: z.ZodString;
|
|
52
|
+
entityId: z.ZodString;
|
|
53
|
+
instanceId: z.ZodString;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
username: z.ZodString;
|
|
56
|
+
password: z.ZodString;
|
|
57
|
+
region: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
59
|
+
connectionId: z.ZodString;
|
|
60
|
+
entityId: z.ZodString;
|
|
61
|
+
instanceId: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
username: z.ZodString;
|
|
64
|
+
password: z.ZodString;
|
|
65
|
+
region: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>]>;
|
|
50
67
|
//#endregion
|
|
51
68
|
export { mixpanelProfileBatchUpdate };
|
|
52
69
|
//# sourceMappingURL=profile-batch-update.d.cts.map
|
|
@@ -4,11 +4,11 @@ import { z } from "zod";
|
|
|
4
4
|
declare const MixpanelProfileBatchUpdateInput: z.ZodObject<{
|
|
5
5
|
profiles: z.ZodArray<z.ZodObject<{
|
|
6
6
|
ip: z.ZodOptional<z.ZodString>;
|
|
7
|
-
add: z.ZodOptional<z.
|
|
7
|
+
add: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
8
|
set: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
9
9
|
time: z.ZodOptional<z.ZodNumber>;
|
|
10
10
|
token: z.ZodString;
|
|
11
|
-
union: z.ZodOptional<z.
|
|
11
|
+
union: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
12
12
|
unset: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
13
|
append: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
14
|
delete: z.ZodOptional<z.ZodString>;
|
|
@@ -17,7 +17,7 @@ declare const MixpanelProfileBatchUpdateInput: z.ZodObject<{
|
|
|
17
17
|
set_once: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
18
|
distinct_id: z.ZodOptional<z.ZodString>;
|
|
19
19
|
ignore_time: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
}, z.core.$
|
|
20
|
+
}, z.core.$loose>>;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
declare const MixpanelProfileBatchUpdateOutput: z.ZodObject<{
|
|
23
23
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -26,17 +26,18 @@ declare const MixpanelProfileBatchUpdateOutput: z.ZodObject<{
|
|
|
26
26
|
field: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
index: z.ZodNullable<z.ZodNumber>;
|
|
28
28
|
message: z.ZodNullable<z.ZodString>;
|
|
29
|
-
}, z.core.$
|
|
29
|
+
}, z.core.$loose>>>>;
|
|
30
30
|
num_records_imported: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const mixpanelProfileBatchUpdate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
profiles: {
|
|
34
|
+
[x: string]: unknown;
|
|
34
35
|
token: string;
|
|
35
36
|
ip?: string | undefined;
|
|
36
|
-
add?: Record<string,
|
|
37
|
+
add?: Record<string, unknown> | undefined;
|
|
37
38
|
set?: Record<string, unknown> | undefined;
|
|
38
39
|
time?: number | undefined;
|
|
39
|
-
union?: Record<string,
|
|
40
|
+
union?: Record<string, unknown> | undefined;
|
|
40
41
|
unset?: string[] | undefined;
|
|
41
42
|
append?: Record<string, unknown> | undefined;
|
|
42
43
|
delete?: string | undefined;
|
|
@@ -46,7 +47,23 @@ declare const mixpanelProfileBatchUpdate: import("@keystrokehq/action").Workflow
|
|
|
46
47
|
distinct_id?: string | undefined;
|
|
47
48
|
ignore_time?: boolean | undefined;
|
|
48
49
|
}[];
|
|
49
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
50
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
51
|
+
connectionId: z.ZodString;
|
|
52
|
+
entityId: z.ZodString;
|
|
53
|
+
instanceId: z.ZodString;
|
|
54
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
+
username: z.ZodString;
|
|
56
|
+
password: z.ZodString;
|
|
57
|
+
region: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
59
|
+
connectionId: z.ZodString;
|
|
60
|
+
entityId: z.ZodString;
|
|
61
|
+
instanceId: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
63
|
+
username: z.ZodString;
|
|
64
|
+
password: z.ZodString;
|
|
65
|
+
region: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>]>;
|
|
50
67
|
//#endregion
|
|
51
68
|
export { mixpanelProfileBatchUpdate };
|
|
52
69
|
//# sourceMappingURL=profile-batch-update.d.mts.map
|
|
@@ -3,11 +3,11 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/profile-batch-update.ts
|
|
4
4
|
const MixpanelProfileBatchUpdateInput = z.object({ profiles: z.array(z.object({
|
|
5
5
|
ip: z.string().describe("IP address for geolocation. Set to '0' to not update geolocation data.").optional(),
|
|
6
|
-
add: z.
|
|
6
|
+
add: z.record(z.string(), z.unknown()).describe("Increment numerical properties by the specified amounts.").optional(),
|
|
7
7
|
set: z.record(z.string(), z.unknown()).describe("Properties to set or update on the profile. Overwrites existing values.").optional(),
|
|
8
8
|
time: z.number().int().describe("Unix timestamp for when the profile update occurred.").optional(),
|
|
9
9
|
token: z.string().describe("Project authentication token. Required for each profile update."),
|
|
10
|
-
union: z.
|
|
10
|
+
union: z.record(z.string(), z.unknown()).describe("Add values to list properties without creating duplicates.").optional(),
|
|
11
11
|
unset: z.array(z.string()).describe("List of property names to remove from the profile.").optional(),
|
|
12
12
|
append: z.record(z.string(), z.unknown()).describe("Append values to list properties.").optional(),
|
|
13
13
|
"delete": z.string().describe("Set to empty string to delete the entire profile.").optional(),
|
|
@@ -16,12 +16,12 @@ const MixpanelProfileBatchUpdateInput = z.object({ profiles: z.array(z.object({
|
|
|
16
16
|
set_once: z.record(z.string(), z.unknown()).describe("Properties to set only if not already set on the profile.").optional(),
|
|
17
17
|
distinct_id: z.string().describe("User identifier for the profile being updated. Either this or $user_id is required.").optional(),
|
|
18
18
|
ignore_time: z.boolean().describe("If true, Mixpanel will not automatically update the 'Last Seen' property.").optional()
|
|
19
|
-
}).describe("Model for a single profile update in the batch.")).describe("List of profile updates to send. Maximum 50 updates per request. Each profile must include $token and either $distinct_id or $user_id, plus at least one operation ($set, $set_once, $add, $union, $append, $remove, $unset, or $delete).") }).describe("Request model for batch profile updates.");
|
|
19
|
+
}).passthrough().describe("Model for a single profile update in the batch.")).describe("List of profile updates to send. Maximum 50 updates per request. Each profile must include $token and either $distinct_id or $user_id, plus at least one operation ($set, $set_once, $add, $union, $append, $remove, $unset, or $delete).") }).describe("Request model for batch profile updates.");
|
|
20
20
|
const MixpanelProfileBatchUpdate_FailedRecordSchema = z.object({
|
|
21
21
|
field: z.string().describe("The field that caused the error.").nullable().optional(),
|
|
22
22
|
index: z.number().int().describe("Position in the request array (0-indexed) of the failed update.").nullable(),
|
|
23
23
|
message: z.string().describe("Description of the validation error.").nullable()
|
|
24
|
-
}).describe("Model for a failed profile update record.");
|
|
24
|
+
}).passthrough().describe("Model for a failed profile update record.");
|
|
25
25
|
const mixpanelProfileBatchUpdate = action("MIXPANEL_PROFILE_BATCH_UPDATE", {
|
|
26
26
|
slug: "mixpanel-profile-batch-update",
|
|
27
27
|
name: "Update Multiple Profiles (Batch)",
|
|
@@ -32,7 +32,7 @@ const mixpanelProfileBatchUpdate = action("MIXPANEL_PROFILE_BATCH_UPDATE", {
|
|
|
32
32
|
status: z.union([z.number().int(), z.string()]),
|
|
33
33
|
failed_records: z.array(MixpanelProfileBatchUpdate_FailedRecordSchema).describe("Details about each failed update (only present when some updates fail validation).").nullable().optional(),
|
|
34
34
|
num_records_imported: z.number().int().describe("Number of successfully processed updates (only present in partial success responses).").nullable().optional()
|
|
35
|
-
}).describe("Response model for batch profile updates.")
|
|
35
|
+
}).passthrough().describe("Response model for batch profile updates.")
|
|
36
36
|
});
|
|
37
37
|
//#endregion
|
|
38
38
|
export { mixpanelProfileBatchUpdate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-batch-update.mjs","names":[],"sources":["../../src/actions/profile-batch-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelProfileBatchUpdateInput = z.object({\n profiles: z.array(z.object({\n ip: z.string().describe(\"IP address for geolocation. Set to '0' to not update geolocation data.\").optional(),\n add: z.
|
|
1
|
+
{"version":3,"file":"profile-batch-update.mjs","names":[],"sources":["../../src/actions/profile-batch-update.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelProfileBatchUpdateInput = z.object({\n profiles: z.array(z.object({\n ip: z.string().describe(\"IP address for geolocation. Set to '0' to not update geolocation data.\").optional(),\n add: z.record(z.string(), z.unknown()).describe(\"Increment numerical properties by the specified amounts.\").optional(),\n set: z.record(z.string(), z.unknown()).describe(\"Properties to set or update on the profile. Overwrites existing values.\").optional(),\n time: z.number().int().describe(\"Unix timestamp for when the profile update occurred.\").optional(),\n token: z.string().describe(\"Project authentication token. Required for each profile update.\"),\n union: z.record(z.string(), z.unknown()).describe(\"Add values to list properties without creating duplicates.\").optional(),\n unset: z.array(z.string()).describe(\"List of property names to remove from the profile.\").optional(),\n append: z.record(z.string(), z.unknown()).describe(\"Append values to list properties.\").optional(),\n \"delete\": z.string().describe(\"Set to empty string to delete the entire profile.\").optional(),\n remove: z.record(z.string(), z.unknown()).describe(\"Remove specific values from list properties.\").optional(),\n user_id: z.string().describe(\"Alternative user identifier. Either this or $distinct_id is required.\").optional(),\n set_once: z.record(z.string(), z.unknown()).describe(\"Properties to set only if not already set on the profile.\").optional(),\n distinct_id: z.string().describe(\"User identifier for the profile being updated. Either this or $user_id is required.\").optional(),\n ignore_time: z.boolean().describe(\"If true, Mixpanel will not automatically update the 'Last Seen' property.\").optional(),\n}).passthrough().describe(\"Model for a single profile update in the batch.\")).describe(\"List of profile updates to send. Maximum 50 updates per request. Each profile must include $token and either $distinct_id or $user_id, plus at least one operation ($set, $set_once, $add, $union, $append, $remove, $unset, or $delete).\"),\n}).describe(\"Request model for batch profile updates.\");\nconst MixpanelProfileBatchUpdate_FailedRecordSchema = z.object({\n field: z.string().describe(\"The field that caused the error.\").nullable().optional(),\n index: z.number().int().describe(\"Position in the request array (0-indexed) of the failed update.\").nullable(),\n message: z.string().describe(\"Description of the validation error.\").nullable(),\n}).passthrough().describe(\"Model for a failed profile update record.\");\nexport const MixpanelProfileBatchUpdateOutput = z.object({\n error: z.string().describe(\"Error message if the request failed.\").nullable().optional(),\n status: z.union([z.number().int(), z.string()]),\n failed_records: z.array(MixpanelProfileBatchUpdate_FailedRecordSchema).describe(\"Details about each failed update (only present when some updates fail validation).\").nullable().optional(),\n num_records_imported: z.number().int().describe(\"Number of successfully processed updates (only present in partial success responses).\").nullable().optional(),\n}).passthrough().describe(\"Response model for batch profile updates.\");\n\nexport const mixpanelProfileBatchUpdate = action(\"MIXPANEL_PROFILE_BATCH_UPDATE\", {\n slug: \"mixpanel-profile-batch-update\",\n name: \"Update Multiple Profiles (Batch)\",\n description: \"Tool to update multiple user profiles in Mixpanel in a single batch request. Use when you need to update properties for multiple users efficiently. Supports operations: $set (update/add), $set_once (set if not exists), $add (increment), $union (add to list uniquely), $append (append to list), $remove (remove from list), $unset (delete property), $delete (delete profile). Maximum 50 updates per request. Always check the response status and failed_records for individual update failures.\",\n input: MixpanelProfileBatchUpdateInput,\n output: MixpanelProfileBatchUpdateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO,EACtD,UAAU,EAAE,MAAM,EAAE,OAAO;CAC3B,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC3G,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACrH,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACpI,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACjG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC5F,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACzH,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACnG,QAAQ,EAAE,OAAO,EAAE,O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Q,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC;EAC9C,gBAAgB,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1L,sBAAsB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}
|
|
@@ -44,16 +44,16 @@ const MixpanelProfileEventActivity_EventPropertiesSchema = zod.z.object({
|
|
|
44
44
|
$mp_api_timestamp_ms: zod.z.number().int().describe("UTC timestamp in milliseconds when the API received the event").nullable().optional(),
|
|
45
45
|
mp_processing_time_ms: zod.z.number().int().describe("UTC timestamp when Mixpanel servers processed the event").nullable().optional(),
|
|
46
46
|
$initial_referring_domain: zod.z.string().describe("First-arrival referring domain").nullable().optional()
|
|
47
|
-
}).describe("Model for event properties including time, distinct_id, and other attributes.");
|
|
47
|
+
}).passthrough().describe("Model for event properties including time, distinct_id, and other attributes.");
|
|
48
48
|
const MixpanelProfileEventActivity_EventSchema = zod.z.object({
|
|
49
49
|
event: zod.z.string().describe("The name of the event that occurred").nullable(),
|
|
50
50
|
properties: MixpanelProfileEventActivity_EventPropertiesSchema.nullable()
|
|
51
|
-
}).describe("Model for individual event in the activity feed.");
|
|
52
|
-
const MixpanelProfileEventActivity_ResultsSchema = zod.z.object({ events: zod.z.array(MixpanelProfileEventActivity_EventSchema).describe("Array of events in the user's activity feed") }).describe("Container for query results.");
|
|
51
|
+
}).passthrough().describe("Model for individual event in the activity feed.");
|
|
52
|
+
const MixpanelProfileEventActivity_ResultsSchema = zod.z.object({ events: zod.z.array(MixpanelProfileEventActivity_EventSchema).describe("Array of events in the user's activity feed") }).passthrough().describe("Container for query results.");
|
|
53
53
|
const MixpanelProfileEventActivityOutput = zod.z.object({
|
|
54
54
|
status: zod.z.string().describe("Indicates whether the API request was successful").nullable(),
|
|
55
55
|
results: MixpanelProfileEventActivity_ResultsSchema.nullable()
|
|
56
|
-
}).describe("Response model for profile event activity data.");
|
|
56
|
+
}).passthrough().describe("Response model for profile event activity data.");
|
|
57
57
|
const mixpanelProfileEventActivity = require_action.action("MIXPANEL_PROFILE_EVENT_ACTIVITY", {
|
|
58
58
|
slug: "mixpanel-profile-event-activity",
|
|
59
59
|
name: "Get Profile Event Activity",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-event-activity.cjs","names":["z","action"],"sources":["../../src/actions/profile-event-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelProfileEventActivityInput = z.object({\n to_date: z.string().describe(\"End date for the query (inclusive, format: YYYY-MM-DD)\"),\n from_date: z.string().describe(\"Start date for the query (inclusive, format: YYYY-MM-DD)\"),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n distinct_ids: z.array(z.string()).describe(\"List of distinct_ids to return activity feeds for\"),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting profile event activity data from Mixpanel.\");\nconst MixpanelProfileEventActivity_EventPropertiesSchema = z.object({\n $os: z.string().describe(\"Operating system name\").nullable().optional(),\n time: z.number().int().describe(\"Unix timestamp indicating when the event occurred\").nullable().optional(),\n $city: z.string().describe(\"The city of the event sender parsed from the IP property or the Latitude and Longitude properties\").nullable().optional(),\n $wifi: z.boolean().describe(\"WiFi connectivity status\").nullable().optional(),\n $brand: z.string().describe(\"Device brand\").nullable().optional(),\n $model: z.string().describe(\"Device model\").nullable().optional(),\n mp_lib: z.string().describe(\"The Mixpanel library that sent the event (web, android, iphone, swift, etc.)\").nullable().optional(),\n $import: z.boolean().describe(\"Flag indicating events sent through the /import API\").nullable().optional(),\n $region: z.string().describe(\"The state or province derived from IP or coordinates\").nullable().optional(),\n $browser: z.string().describe(\"Browser name\").nullable().optional(),\n $user_id: z.string().describe(\"The identified user ID set via identify()\").nullable().optional(),\n $duration: z.number().describe(\"Elapsed time in seconds between time_event and track calls\").nullable().optional(),\n $referrer: z.string().describe(\"Current session referral source\").nullable().optional(),\n $device_id: z.string().describe(\"Autogenerated local device identifier\").nullable().optional(),\n $insert_id: z.string().describe(\"Unique event identifier for deduplication\").nullable().optional(),\n utm_medium: z.string().describe(\"UTM medium parameter from the arrival URL\").nullable().optional(),\n utm_source: z.string().describe(\"UTM source parameter from the arrival URL\").nullable().optional(),\n $os_version: z.string().describe(\"Operating system version\").nullable().optional(),\n $current_url: z.string().describe(\"The page URL where tracking occurred\").nullable().optional(),\n $distinct_id: z.string().describe(\"User identifier to tie all events belonging to the same user\").nullable().optional(),\n $lib_version: z.string().describe(\"Library version number\").nullable().optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter from the arrival URL\").nullable().optional(),\n $manufacturer: z.string().describe(\"Device manufacturer\").nullable().optional(),\n $screen_width: z.number().int().describe(\"Display width in pixels\").nullable().optional(),\n $mp_event_size: z.number().int().describe(\"Event size in bytes before transformation\").nullable().optional(),\n $screen_height: z.number().int().describe(\"Display height in pixels\").nullable().optional(),\n mp_country_code: z.string().describe(\"Two-letter country code converted to country name in the UI\").nullable().optional(),\n $browser_version: z.string().describe(\"Browser version number\").nullable().optional(),\n $mp_api_endpoint: z.string().describe(\"Records which ingestion endpoint received the data\").nullable().optional(),\n $initial_referrer: z.string().describe(\"First-arrival referral source\").nullable().optional(),\n $referring_domain: z.string().describe(\"Current session referring domain\").nullable().optional(),\n $bluetooth_enabled: z.boolean().describe(\"Bluetooth connectivity status\").nullable().optional(),\n $mp_api_timestamp_ms: z.number().int().describe(\"UTC timestamp in milliseconds when the API received the event\").nullable().optional(),\n mp_processing_time_ms: z.number().int().describe(\"UTC timestamp when Mixpanel servers processed the event\").nullable().optional(),\n $initial_referring_domain: z.string().describe(\"First-arrival referring domain\").nullable().optional(),\n}).describe(\"Model for event properties including time, distinct_id, and other attributes.\");\nconst MixpanelProfileEventActivity_EventSchema = z.object({\n event: z.string().describe(\"The name of the event that occurred\").nullable(),\n properties: MixpanelProfileEventActivity_EventPropertiesSchema.nullable(),\n}).describe(\"Model for individual event in the activity feed.\");\nconst MixpanelProfileEventActivity_ResultsSchema = z.object({\n events: z.array(MixpanelProfileEventActivity_EventSchema).describe(\"Array of events in the user's activity feed\"),\n}).describe(\"Container for query results.\");\nexport const MixpanelProfileEventActivityOutput = z.object({\n status: z.string().describe(\"Indicates whether the API request was successful\").nullable(),\n results: MixpanelProfileEventActivity_ResultsSchema.nullable(),\n}).describe(\"Response model for profile event activity data.\");\n\nexport const mixpanelProfileEventActivity = action(\"MIXPANEL_PROFILE_EVENT_ACTIVITY\", {\n slug: \"mixpanel-profile-event-activity\",\n name: \"Get Profile Event Activity\",\n description: \"Get event activity feed for specified users from Mixpanel Query API. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelProfileEventActivityInput,\n output: MixpanelProfileEventActivityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,S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,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,6CAA6C,EAClH,CAAC,CAAC,CAAC,SAAS,8BAA8B;AAC1C,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,SAAS,2CAA2C,SAAS;AAC/D,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"profile-event-activity.cjs","names":["z","action"],"sources":["../../src/actions/profile-event-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelProfileEventActivityInput = z.object({\n to_date: z.string().describe(\"End date for the query (inclusive, format: YYYY-MM-DD)\"),\n from_date: z.string().describe(\"Start date for the query (inclusive, format: YYYY-MM-DD)\"),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n distinct_ids: z.array(z.string()).describe(\"List of distinct_ids to return activity feeds for\"),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting profile event activity data from Mixpanel.\");\nconst MixpanelProfileEventActivity_EventPropertiesSchema = z.object({\n $os: z.string().describe(\"Operating system name\").nullable().optional(),\n time: z.number().int().describe(\"Unix timestamp indicating when the event occurred\").nullable().optional(),\n $city: z.string().describe(\"The city of the event sender parsed from the IP property or the Latitude and Longitude properties\").nullable().optional(),\n $wifi: z.boolean().describe(\"WiFi connectivity status\").nullable().optional(),\n $brand: z.string().describe(\"Device brand\").nullable().optional(),\n $model: z.string().describe(\"Device model\").nullable().optional(),\n mp_lib: z.string().describe(\"The Mixpanel library that sent the event (web, android, iphone, swift, etc.)\").nullable().optional(),\n $import: z.boolean().describe(\"Flag indicating events sent through the /import API\").nullable().optional(),\n $region: z.string().describe(\"The state or province derived from IP or coordinates\").nullable().optional(),\n $browser: z.string().describe(\"Browser name\").nullable().optional(),\n $user_id: z.string().describe(\"The identified user ID set via identify()\").nullable().optional(),\n $duration: z.number().describe(\"Elapsed time in seconds between time_event and track calls\").nullable().optional(),\n $referrer: z.string().describe(\"Current session referral source\").nullable().optional(),\n $device_id: z.string().describe(\"Autogenerated local device identifier\").nullable().optional(),\n $insert_id: z.string().describe(\"Unique event identifier for deduplication\").nullable().optional(),\n utm_medium: z.string().describe(\"UTM medium parameter from the arrival URL\").nullable().optional(),\n utm_source: z.string().describe(\"UTM source parameter from the arrival URL\").nullable().optional(),\n $os_version: z.string().describe(\"Operating system version\").nullable().optional(),\n $current_url: z.string().describe(\"The page URL where tracking occurred\").nullable().optional(),\n $distinct_id: z.string().describe(\"User identifier to tie all events belonging to the same user\").nullable().optional(),\n $lib_version: z.string().describe(\"Library version number\").nullable().optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter from the arrival URL\").nullable().optional(),\n $manufacturer: z.string().describe(\"Device manufacturer\").nullable().optional(),\n $screen_width: z.number().int().describe(\"Display width in pixels\").nullable().optional(),\n $mp_event_size: z.number().int().describe(\"Event size in bytes before transformation\").nullable().optional(),\n $screen_height: z.number().int().describe(\"Display height in pixels\").nullable().optional(),\n mp_country_code: z.string().describe(\"Two-letter country code converted to country name in the UI\").nullable().optional(),\n $browser_version: z.string().describe(\"Browser version number\").nullable().optional(),\n $mp_api_endpoint: z.string().describe(\"Records which ingestion endpoint received the data\").nullable().optional(),\n $initial_referrer: z.string().describe(\"First-arrival referral source\").nullable().optional(),\n $referring_domain: z.string().describe(\"Current session referring domain\").nullable().optional(),\n $bluetooth_enabled: z.boolean().describe(\"Bluetooth connectivity status\").nullable().optional(),\n $mp_api_timestamp_ms: z.number().int().describe(\"UTC timestamp in milliseconds when the API received the event\").nullable().optional(),\n mp_processing_time_ms: z.number().int().describe(\"UTC timestamp when Mixpanel servers processed the event\").nullable().optional(),\n $initial_referring_domain: z.string().describe(\"First-arrival referring domain\").nullable().optional(),\n}).passthrough().describe(\"Model for event properties including time, distinct_id, and other attributes.\");\nconst MixpanelProfileEventActivity_EventSchema = z.object({\n event: z.string().describe(\"The name of the event that occurred\").nullable(),\n properties: MixpanelProfileEventActivity_EventPropertiesSchema.nullable(),\n}).passthrough().describe(\"Model for individual event in the activity feed.\");\nconst MixpanelProfileEventActivity_ResultsSchema = z.object({\n events: z.array(MixpanelProfileEventActivity_EventSchema).describe(\"Array of events in the user's activity feed\"),\n}).passthrough().describe(\"Container for query results.\");\nexport const MixpanelProfileEventActivityOutput = z.object({\n status: z.string().describe(\"Indicates whether the API request was successful\").nullable(),\n results: MixpanelProfileEventActivity_ResultsSchema.nullable(),\n}).passthrough().describe(\"Response model for profile event activity data.\");\n\nexport const mixpanelProfileEventActivity = action(\"MIXPANEL_PROFILE_EVENT_ACTIVITY\", {\n slug: \"mixpanel-profile-event-activity\",\n name: \"Get Profile Event Activity\",\n description: \"Get event activity feed for specified users from Mixpanel Query API. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelProfileEventActivityInput,\n output: MixpanelProfileEventActivityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;CAC9F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF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AmD,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,6CAA6CA,IAAAA,EAAE,OAAO,EAC1D,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,6CAA6C,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AACxD,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,SAAS,2CAA2C,SAAS;AAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,+BAA+BC,eAAAA,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -49,17 +49,33 @@ declare const MixpanelProfileEventActivityOutput: z.ZodObject<{
|
|
|
49
49
|
$mp_api_timestamp_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
50
|
mp_processing_time_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
51
|
$initial_referring_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
-
}, z.core.$
|
|
53
|
-
}, z.core.$
|
|
54
|
-
}, z.core.$
|
|
55
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>>;
|
|
53
|
+
}, z.core.$loose>>;
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
|
+
}, z.core.$loose>;
|
|
56
56
|
declare const mixpanelProfileEventActivity: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
57
57
|
to_date: string;
|
|
58
58
|
from_date: string;
|
|
59
59
|
project_id: number;
|
|
60
60
|
distinct_ids: string[];
|
|
61
61
|
workspace_id?: number | undefined;
|
|
62
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
62
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
63
|
+
connectionId: z.ZodString;
|
|
64
|
+
entityId: z.ZodString;
|
|
65
|
+
instanceId: z.ZodString;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
+
username: z.ZodString;
|
|
68
|
+
password: z.ZodString;
|
|
69
|
+
region: z.ZodString;
|
|
70
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
71
|
+
connectionId: z.ZodString;
|
|
72
|
+
entityId: z.ZodString;
|
|
73
|
+
instanceId: z.ZodString;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
username: z.ZodString;
|
|
76
|
+
password: z.ZodString;
|
|
77
|
+
region: z.ZodString;
|
|
78
|
+
}, z.core.$strip>>]>;
|
|
63
79
|
//#endregion
|
|
64
80
|
export { mixpanelProfileEventActivity };
|
|
65
81
|
//# sourceMappingURL=profile-event-activity.d.cts.map
|
|
@@ -49,17 +49,33 @@ declare const MixpanelProfileEventActivityOutput: z.ZodObject<{
|
|
|
49
49
|
$mp_api_timestamp_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
50
|
mp_processing_time_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
51
51
|
$initial_referring_domain: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
-
}, z.core.$
|
|
53
|
-
}, z.core.$
|
|
54
|
-
}, z.core.$
|
|
55
|
-
}, z.core.$
|
|
52
|
+
}, z.core.$loose>>;
|
|
53
|
+
}, z.core.$loose>>;
|
|
54
|
+
}, z.core.$loose>>;
|
|
55
|
+
}, z.core.$loose>;
|
|
56
56
|
declare const mixpanelProfileEventActivity: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
57
57
|
to_date: string;
|
|
58
58
|
from_date: string;
|
|
59
59
|
project_id: number;
|
|
60
60
|
distinct_ids: string[];
|
|
61
61
|
workspace_id?: number | undefined;
|
|
62
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
62
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
63
|
+
connectionId: z.ZodString;
|
|
64
|
+
entityId: z.ZodString;
|
|
65
|
+
instanceId: z.ZodString;
|
|
66
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
67
|
+
username: z.ZodString;
|
|
68
|
+
password: z.ZodString;
|
|
69
|
+
region: z.ZodString;
|
|
70
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
71
|
+
connectionId: z.ZodString;
|
|
72
|
+
entityId: z.ZodString;
|
|
73
|
+
instanceId: z.ZodString;
|
|
74
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
75
|
+
username: z.ZodString;
|
|
76
|
+
password: z.ZodString;
|
|
77
|
+
region: z.ZodString;
|
|
78
|
+
}, z.core.$strip>>]>;
|
|
63
79
|
//#endregion
|
|
64
80
|
export { mixpanelProfileEventActivity };
|
|
65
81
|
//# sourceMappingURL=profile-event-activity.d.mts.map
|
|
@@ -44,12 +44,12 @@ const MixpanelProfileEventActivity_EventPropertiesSchema = z.object({
|
|
|
44
44
|
$mp_api_timestamp_ms: z.number().int().describe("UTC timestamp in milliseconds when the API received the event").nullable().optional(),
|
|
45
45
|
mp_processing_time_ms: z.number().int().describe("UTC timestamp when Mixpanel servers processed the event").nullable().optional(),
|
|
46
46
|
$initial_referring_domain: z.string().describe("First-arrival referring domain").nullable().optional()
|
|
47
|
-
}).describe("Model for event properties including time, distinct_id, and other attributes.");
|
|
47
|
+
}).passthrough().describe("Model for event properties including time, distinct_id, and other attributes.");
|
|
48
48
|
const MixpanelProfileEventActivity_EventSchema = z.object({
|
|
49
49
|
event: z.string().describe("The name of the event that occurred").nullable(),
|
|
50
50
|
properties: MixpanelProfileEventActivity_EventPropertiesSchema.nullable()
|
|
51
|
-
}).describe("Model for individual event in the activity feed.");
|
|
52
|
-
const MixpanelProfileEventActivity_ResultsSchema = z.object({ events: z.array(MixpanelProfileEventActivity_EventSchema).describe("Array of events in the user's activity feed") }).describe("Container for query results.");
|
|
51
|
+
}).passthrough().describe("Model for individual event in the activity feed.");
|
|
52
|
+
const MixpanelProfileEventActivity_ResultsSchema = z.object({ events: z.array(MixpanelProfileEventActivity_EventSchema).describe("Array of events in the user's activity feed") }).passthrough().describe("Container for query results.");
|
|
53
53
|
const mixpanelProfileEventActivity = action("MIXPANEL_PROFILE_EVENT_ACTIVITY", {
|
|
54
54
|
slug: "mixpanel-profile-event-activity",
|
|
55
55
|
name: "Get Profile Event Activity",
|
|
@@ -58,7 +58,7 @@ const mixpanelProfileEventActivity = action("MIXPANEL_PROFILE_EVENT_ACTIVITY", {
|
|
|
58
58
|
output: z.object({
|
|
59
59
|
status: z.string().describe("Indicates whether the API request was successful").nullable(),
|
|
60
60
|
results: MixpanelProfileEventActivity_ResultsSchema.nullable()
|
|
61
|
-
}).describe("Response model for profile event activity data.")
|
|
61
|
+
}).passthrough().describe("Response model for profile event activity data.")
|
|
62
62
|
});
|
|
63
63
|
//#endregion
|
|
64
64
|
export { mixpanelProfileEventActivity };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-event-activity.mjs","names":[],"sources":["../../src/actions/profile-event-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelProfileEventActivityInput = z.object({\n to_date: z.string().describe(\"End date for the query (inclusive, format: YYYY-MM-DD)\"),\n from_date: z.string().describe(\"Start date for the query (inclusive, format: YYYY-MM-DD)\"),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n distinct_ids: z.array(z.string()).describe(\"List of distinct_ids to return activity feeds for\"),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting profile event activity data from Mixpanel.\");\nconst MixpanelProfileEventActivity_EventPropertiesSchema = z.object({\n $os: z.string().describe(\"Operating system name\").nullable().optional(),\n time: z.number().int().describe(\"Unix timestamp indicating when the event occurred\").nullable().optional(),\n $city: z.string().describe(\"The city of the event sender parsed from the IP property or the Latitude and Longitude properties\").nullable().optional(),\n $wifi: z.boolean().describe(\"WiFi connectivity status\").nullable().optional(),\n $brand: z.string().describe(\"Device brand\").nullable().optional(),\n $model: z.string().describe(\"Device model\").nullable().optional(),\n mp_lib: z.string().describe(\"The Mixpanel library that sent the event (web, android, iphone, swift, etc.)\").nullable().optional(),\n $import: z.boolean().describe(\"Flag indicating events sent through the /import API\").nullable().optional(),\n $region: z.string().describe(\"The state or province derived from IP or coordinates\").nullable().optional(),\n $browser: z.string().describe(\"Browser name\").nullable().optional(),\n $user_id: z.string().describe(\"The identified user ID set via identify()\").nullable().optional(),\n $duration: z.number().describe(\"Elapsed time in seconds between time_event and track calls\").nullable().optional(),\n $referrer: z.string().describe(\"Current session referral source\").nullable().optional(),\n $device_id: z.string().describe(\"Autogenerated local device identifier\").nullable().optional(),\n $insert_id: z.string().describe(\"Unique event identifier for deduplication\").nullable().optional(),\n utm_medium: z.string().describe(\"UTM medium parameter from the arrival URL\").nullable().optional(),\n utm_source: z.string().describe(\"UTM source parameter from the arrival URL\").nullable().optional(),\n $os_version: z.string().describe(\"Operating system version\").nullable().optional(),\n $current_url: z.string().describe(\"The page URL where tracking occurred\").nullable().optional(),\n $distinct_id: z.string().describe(\"User identifier to tie all events belonging to the same user\").nullable().optional(),\n $lib_version: z.string().describe(\"Library version number\").nullable().optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter from the arrival URL\").nullable().optional(),\n $manufacturer: z.string().describe(\"Device manufacturer\").nullable().optional(),\n $screen_width: z.number().int().describe(\"Display width in pixels\").nullable().optional(),\n $mp_event_size: z.number().int().describe(\"Event size in bytes before transformation\").nullable().optional(),\n $screen_height: z.number().int().describe(\"Display height in pixels\").nullable().optional(),\n mp_country_code: z.string().describe(\"Two-letter country code converted to country name in the UI\").nullable().optional(),\n $browser_version: z.string().describe(\"Browser version number\").nullable().optional(),\n $mp_api_endpoint: z.string().describe(\"Records which ingestion endpoint received the data\").nullable().optional(),\n $initial_referrer: z.string().describe(\"First-arrival referral source\").nullable().optional(),\n $referring_domain: z.string().describe(\"Current session referring domain\").nullable().optional(),\n $bluetooth_enabled: z.boolean().describe(\"Bluetooth connectivity status\").nullable().optional(),\n $mp_api_timestamp_ms: z.number().int().describe(\"UTC timestamp in milliseconds when the API received the event\").nullable().optional(),\n mp_processing_time_ms: z.number().int().describe(\"UTC timestamp when Mixpanel servers processed the event\").nullable().optional(),\n $initial_referring_domain: z.string().describe(\"First-arrival referring domain\").nullable().optional(),\n}).describe(\"Model for event properties including time, distinct_id, and other attributes.\");\nconst MixpanelProfileEventActivity_EventSchema = z.object({\n event: z.string().describe(\"The name of the event that occurred\").nullable(),\n properties: MixpanelProfileEventActivity_EventPropertiesSchema.nullable(),\n}).describe(\"Model for individual event in the activity feed.\");\nconst MixpanelProfileEventActivity_ResultsSchema = z.object({\n events: z.array(MixpanelProfileEventActivity_EventSchema).describe(\"Array of events in the user's activity feed\"),\n}).describe(\"Container for query results.\");\nexport const MixpanelProfileEventActivityOutput = z.object({\n status: z.string().describe(\"Indicates whether the API request was successful\").nullable(),\n results: MixpanelProfileEventActivity_ResultsSchema.nullable(),\n}).describe(\"Response model for profile event activity data.\");\n\nexport const mixpanelProfileEventActivity = action(\"MIXPANEL_PROFILE_EVENT_ACTIVITY\", {\n slug: \"mixpanel-profile-event-activity\",\n name: \"Get Profile Event Activity\",\n description: \"Get event activity feed for specified users from Mixpanel Query API. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelProfileEventActivityInput,\n output: MixpanelProfileEventActivityOutput,\n});\n"],"mappings":";;;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ources":["../../src/actions/profile-event-activity.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelProfileEventActivityInput = z.object({\n to_date: z.string().describe(\"End date for the query (inclusive, format: YYYY-MM-DD)\"),\n from_date: z.string().describe(\"Start date for the query (inclusive, format: YYYY-MM-DD)\"),\n project_id: z.number().int().describe(\"The ID of the project to query. Required if using service account authentication.\"),\n distinct_ids: z.array(z.string()).describe(\"List of distinct_ids to return activity feeds for\"),\n workspace_id: z.number().int().describe(\"The ID of the workspace if applicable\").optional(),\n}).describe(\"Request model for getting profile event activity data from Mixpanel.\");\nconst MixpanelProfileEventActivity_EventPropertiesSchema = z.object({\n $os: z.string().describe(\"Operating system name\").nullable().optional(),\n time: z.number().int().describe(\"Unix timestamp indicating when the event occurred\").nullable().optional(),\n $city: z.string().describe(\"The city of the event sender parsed from the IP property or the Latitude and Longitude properties\").nullable().optional(),\n $wifi: z.boolean().describe(\"WiFi connectivity status\").nullable().optional(),\n $brand: z.string().describe(\"Device brand\").nullable().optional(),\n $model: z.string().describe(\"Device model\").nullable().optional(),\n mp_lib: z.string().describe(\"The Mixpanel library that sent the event (web, android, iphone, swift, etc.)\").nullable().optional(),\n $import: z.boolean().describe(\"Flag indicating events sent through the /import API\").nullable().optional(),\n $region: z.string().describe(\"The state or province derived from IP or coordinates\").nullable().optional(),\n $browser: z.string().describe(\"Browser name\").nullable().optional(),\n $user_id: z.string().describe(\"The identified user ID set via identify()\").nullable().optional(),\n $duration: z.number().describe(\"Elapsed time in seconds between time_event and track calls\").nullable().optional(),\n $referrer: z.string().describe(\"Current session referral source\").nullable().optional(),\n $device_id: z.string().describe(\"Autogenerated local device identifier\").nullable().optional(),\n $insert_id: z.string().describe(\"Unique event identifier for deduplication\").nullable().optional(),\n utm_medium: z.string().describe(\"UTM medium parameter from the arrival URL\").nullable().optional(),\n utm_source: z.string().describe(\"UTM source parameter from the arrival URL\").nullable().optional(),\n $os_version: z.string().describe(\"Operating system version\").nullable().optional(),\n $current_url: z.string().describe(\"The page URL where tracking occurred\").nullable().optional(),\n $distinct_id: z.string().describe(\"User identifier to tie all events belonging to the same user\").nullable().optional(),\n $lib_version: z.string().describe(\"Library version number\").nullable().optional(),\n utm_campaign: z.string().describe(\"UTM campaign parameter from the arrival URL\").nullable().optional(),\n $manufacturer: z.string().describe(\"Device manufacturer\").nullable().optional(),\n $screen_width: z.number().int().describe(\"Display width in pixels\").nullable().optional(),\n $mp_event_size: z.number().int().describe(\"Event size in bytes before transformation\").nullable().optional(),\n $screen_height: z.number().int().describe(\"Display height in pixels\").nullable().optional(),\n mp_country_code: z.string().describe(\"Two-letter country code converted to country name in the UI\").nullable().optional(),\n $browser_version: z.string().describe(\"Browser version number\").nullable().optional(),\n $mp_api_endpoint: z.string().describe(\"Records which ingestion endpoint received the data\").nullable().optional(),\n $initial_referrer: z.string().describe(\"First-arrival referral source\").nullable().optional(),\n $referring_domain: z.string().describe(\"Current session referring domain\").nullable().optional(),\n $bluetooth_enabled: z.boolean().describe(\"Bluetooth connectivity status\").nullable().optional(),\n $mp_api_timestamp_ms: z.number().int().describe(\"UTC timestamp in milliseconds when the API received the event\").nullable().optional(),\n mp_processing_time_ms: z.number().int().describe(\"UTC timestamp when Mixpanel servers processed the event\").nullable().optional(),\n $initial_referring_domain: z.string().describe(\"First-arrival referring domain\").nullable().optional(),\n}).passthrough().describe(\"Model for event properties including time, distinct_id, and other attributes.\");\nconst MixpanelProfileEventActivity_EventSchema = z.object({\n event: z.string().describe(\"The name of the event that occurred\").nullable(),\n properties: MixpanelProfileEventActivity_EventPropertiesSchema.nullable(),\n}).passthrough().describe(\"Model for individual event in the activity feed.\");\nconst MixpanelProfileEventActivity_ResultsSchema = z.object({\n events: z.array(MixpanelProfileEventActivity_EventSchema).describe(\"Array of events in the user's activity feed\"),\n}).passthrough().describe(\"Container for query results.\");\nexport const MixpanelProfileEventActivityOutput = z.object({\n status: z.string().describe(\"Indicates whether the API request was successful\").nullable(),\n results: MixpanelProfileEventActivity_ResultsSchema.nullable(),\n}).passthrough().describe(\"Response model for profile event activity data.\");\n\nexport const mixpanelProfileEventActivity = action(\"MIXPANEL_PROFILE_EVENT_ACTIVITY\", {\n slug: \"mixpanel-profile-event-activity\",\n name: \"Get Profile Event Activity\",\n description: \"Get event activity feed for specified users from Mixpanel Query API. The Query API has a rate limit of 60 queries per hour and a maximum of 5 concurrent queries.\",\n input: MixpanelProfileEventActivityInput,\n output: MixpanelProfileEventActivityOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAoC,EAAE,OAAO;CACxD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF;CACzH,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD;CAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,qDAAqD,EAAE,OAAO;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpJ,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,QAAQ,EAAE,OAAO,CA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D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrI,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AACzG,MAAM,2CAA2C,EAAE,OAAO;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC3E,YAAY,mDAAmD,SAAS;AAC1E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAC5E,MAAM,6CAA6C,EAAE,OAAO,EAC1D,QAAQ,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,6CAA6C,EAClH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8BAA8B;AAMxD,MAAa,+BAA+B,OAAO,mCAAmC;CACpF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVgD,EAAE,OAAO;EACzD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACzF,SAAS,2CAA2C,SAAS;CAC/D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -3,7 +3,7 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/profile-numerical-add.ts
|
|
4
4
|
const MixpanelProfileNumericalAddInput = zod.z.object({
|
|
5
5
|
ip: zod.z.union([zod.z.string(), zod.z.number().int()]).optional(),
|
|
6
|
-
add: zod.z.
|
|
6
|
+
add: zod.z.record(zod.z.string(), zod.z.unknown()).describe("A JSON object containing property names as keys and numerical increment values. Properties will be incremented by the specified amount. If a property doesn't exist, the value is added to zero. Use negative values to decrement."),
|
|
7
7
|
time: zod.z.number().int().describe("Unix timestamp to override the time of the update. If not provided, uses current server time.").optional(),
|
|
8
8
|
token: zod.z.string().describe("Your Mixpanel project authentication token"),
|
|
9
9
|
verbose: zod.z.number().int().describe("When set to 1, returns detailed JSON response with status and error fields. When set to 0 (default), returns plain text status (1 for success, 0 for failure).").optional(),
|
|
@@ -13,7 +13,7 @@ const MixpanelProfileNumericalAddInput = zod.z.object({
|
|
|
13
13
|
const MixpanelProfileNumericalAddOutput = zod.z.object({
|
|
14
14
|
error: zod.z.string().describe("Error message if the request failed, null if successful.").nullable().optional(),
|
|
15
15
|
status: zod.z.union([zod.z.string(), zod.z.number().int()])
|
|
16
|
-
}).describe("Response model for profile numerical add operation.");
|
|
16
|
+
}).passthrough().describe("Response model for profile numerical add operation.");
|
|
17
17
|
const mixpanelProfileNumericalAdd = require_action.action("MIXPANEL_PROFILE_NUMERICAL_ADD", {
|
|
18
18
|
slug: "mixpanel-profile-numerical-add",
|
|
19
19
|
name: "Increment Profile Numerical Property",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-numerical-add.cjs","names":["z","action"],"sources":["../../src/actions/profile-numerical-add.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelProfileNumericalAddInput = z.object({\n ip: z.union([z.string(), z.number().int()]).optional(),\n add: z.
|
|
1
|
+
{"version":3,"file":"profile-numerical-add.cjs","names":["z","action"],"sources":["../../src/actions/profile-numerical-add.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const MixpanelProfileNumericalAddInput = z.object({\n ip: z.union([z.string(), z.number().int()]).optional(),\n add: z.record(z.string(), z.unknown()).describe(\"A JSON object containing property names as keys and numerical increment values. Properties will be incremented by the specified amount. If a property doesn't exist, the value is added to zero. Use negative values to decrement.\"),\n time: z.number().int().describe(\"Unix timestamp to override the time of the update. If not provided, uses current server time.\").optional(),\n token: z.string().describe(\"Your Mixpanel project authentication token\"),\n verbose: z.number().int().describe(\"When set to 1, returns detailed JSON response with status and error fields. When set to 0 (default), returns plain text status (1 for success, 0 for failure).\").optional(),\n distinct_id: z.string().describe(\"The unique identifier for the user profile\"),\n ignore_time: z.boolean().describe(\"If true, prevents updating the 'Last Seen' property. Defaults to false.\").optional(),\n}).describe(\"Request model for incrementing numerical properties on user profiles.\");\nexport const MixpanelProfileNumericalAddOutput = z.object({\n error: z.string().describe(\"Error message if the request failed, null if successful.\").nullable().optional(),\n status: z.union([z.string(), z.number().int()]),\n}).passthrough().describe(\"Response model for profile numerical add operation.\");\n\nexport const mixpanelProfileNumericalAdd = action(\"MIXPANEL_PROFILE_NUMERICAL_ADD\", {\n slug: \"mixpanel-profile-numerical-add\",\n name: \"Increment Profile Numerical Property\",\n description: \"Tool to increment or decrement numerical properties on user profiles in Mixpanel. Use when you need to add values to existing numerical properties (e.g., login counts, points, credits). Properties are incremented by the specified amount. If a property doesn't exist, the value is added to zero. Use negative values to decrement properties.\",\n input: MixpanelProfileNumericalAddInput,\n output: MixpanelProfileNumericalAddOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oOAAoO;CACpR,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CAC9M,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC7E,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAAqD;AAE/E,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/profile-numerical-add.d.ts
|
|
4
4
|
declare const MixpanelProfileNumericalAddInput: z.ZodObject<{
|
|
5
5
|
ip: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
6
|
-
add: z.
|
|
6
|
+
add: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
7
|
time: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
token: z.ZodString;
|
|
9
9
|
verbose: z.ZodOptional<z.ZodNumber>;
|
|
@@ -13,16 +13,32 @@ declare const MixpanelProfileNumericalAddInput: z.ZodObject<{
|
|
|
13
13
|
declare const MixpanelProfileNumericalAddOutput: z.ZodObject<{
|
|
14
14
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
status: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const mixpanelProfileNumericalAdd: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
-
add: Record<string,
|
|
18
|
+
add: Record<string, unknown>;
|
|
19
19
|
token: string;
|
|
20
20
|
distinct_id: string;
|
|
21
21
|
ip?: string | number | undefined;
|
|
22
22
|
time?: number | undefined;
|
|
23
23
|
verbose?: number | undefined;
|
|
24
24
|
ignore_time?: boolean | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
26
|
+
connectionId: z.ZodString;
|
|
27
|
+
entityId: z.ZodString;
|
|
28
|
+
instanceId: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
username: z.ZodString;
|
|
31
|
+
password: z.ZodString;
|
|
32
|
+
region: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
34
|
+
connectionId: z.ZodString;
|
|
35
|
+
entityId: z.ZodString;
|
|
36
|
+
instanceId: z.ZodString;
|
|
37
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
+
username: z.ZodString;
|
|
39
|
+
password: z.ZodString;
|
|
40
|
+
region: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>]>;
|
|
26
42
|
//#endregion
|
|
27
43
|
export { mixpanelProfileNumericalAdd };
|
|
28
44
|
//# sourceMappingURL=profile-numerical-add.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-numerical-add.d.cts","names":[],"sources":["../../src/actions/profile-numerical-add.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;cAShC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAKjC,2BAAA,gCAA2B,wBAAA
|
|
1
|
+
{"version":3,"file":"profile-numerical-add.d.cts","names":[],"sources":["../../src/actions/profile-numerical-add.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;cAShC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/profile-numerical-add.d.ts
|
|
4
4
|
declare const MixpanelProfileNumericalAddInput: z.ZodObject<{
|
|
5
5
|
ip: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
6
|
-
add: z.
|
|
6
|
+
add: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
7
7
|
time: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
token: z.ZodString;
|
|
9
9
|
verbose: z.ZodOptional<z.ZodNumber>;
|
|
@@ -13,16 +13,32 @@ declare const MixpanelProfileNumericalAddInput: z.ZodObject<{
|
|
|
13
13
|
declare const MixpanelProfileNumericalAddOutput: z.ZodObject<{
|
|
14
14
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
15
|
status: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>;
|
|
17
17
|
declare const mixpanelProfileNumericalAdd: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
-
add: Record<string,
|
|
18
|
+
add: Record<string, unknown>;
|
|
19
19
|
token: string;
|
|
20
20
|
distinct_id: string;
|
|
21
21
|
ip?: string | number | undefined;
|
|
22
22
|
time?: number | undefined;
|
|
23
23
|
verbose?: number | undefined;
|
|
24
24
|
ignore_time?: boolean | undefined;
|
|
25
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
25
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
26
|
+
connectionId: z.ZodString;
|
|
27
|
+
entityId: z.ZodString;
|
|
28
|
+
instanceId: z.ZodString;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
username: z.ZodString;
|
|
31
|
+
password: z.ZodString;
|
|
32
|
+
region: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"mixpanel", z.ZodObject<{
|
|
34
|
+
connectionId: z.ZodString;
|
|
35
|
+
entityId: z.ZodString;
|
|
36
|
+
instanceId: z.ZodString;
|
|
37
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
38
|
+
username: z.ZodString;
|
|
39
|
+
password: z.ZodString;
|
|
40
|
+
region: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>]>;
|
|
26
42
|
//#endregion
|
|
27
43
|
export { mixpanelProfileNumericalAdd };
|
|
28
44
|
//# sourceMappingURL=profile-numerical-add.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-numerical-add.d.mts","names":[],"sources":["../../src/actions/profile-numerical-add.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;cAShC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAKjC,2BAAA,gCAA2B,wBAAA
|
|
1
|
+
{"version":3,"file":"profile-numerical-add.d.mts","names":[],"sources":["../../src/actions/profile-numerical-add.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;cAShC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -6,7 +6,7 @@ const mixpanelProfileNumericalAdd = action("MIXPANEL_PROFILE_NUMERICAL_ADD", {
|
|
|
6
6
|
description: "Tool to increment or decrement numerical properties on user profiles in Mixpanel. Use when you need to add values to existing numerical properties (e.g., login counts, points, credits). Properties are incremented by the specified amount. If a property doesn't exist, the value is added to zero. Use negative values to decrement properties.",
|
|
7
7
|
input: z.object({
|
|
8
8
|
ip: z.union([z.string(), z.number().int()]).optional(),
|
|
9
|
-
add: z.
|
|
9
|
+
add: z.record(z.string(), z.unknown()).describe("A JSON object containing property names as keys and numerical increment values. Properties will be incremented by the specified amount. If a property doesn't exist, the value is added to zero. Use negative values to decrement."),
|
|
10
10
|
time: z.number().int().describe("Unix timestamp to override the time of the update. If not provided, uses current server time.").optional(),
|
|
11
11
|
token: z.string().describe("Your Mixpanel project authentication token"),
|
|
12
12
|
verbose: z.number().int().describe("When set to 1, returns detailed JSON response with status and error fields. When set to 0 (default), returns plain text status (1 for success, 0 for failure).").optional(),
|
|
@@ -16,7 +16,7 @@ const mixpanelProfileNumericalAdd = action("MIXPANEL_PROFILE_NUMERICAL_ADD", {
|
|
|
16
16
|
output: z.object({
|
|
17
17
|
error: z.string().describe("Error message if the request failed, null if successful.").nullable().optional(),
|
|
18
18
|
status: z.union([z.string(), z.number().int()])
|
|
19
|
-
}).describe("Response model for profile numerical add operation.")
|
|
19
|
+
}).passthrough().describe("Response model for profile numerical add operation.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { mixpanelProfileNumericalAdd };
|