@apex-inc/mcp-server 0.74.0 → 0.78.0
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/api-client.d.ts +13 -19
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +173 -59
- package/dist/api-client.js.map +1 -1
- package/dist/auth.d.ts.map +1 -1
- package/dist/auth.js +7 -6
- package/dist/auth.js.map +1 -1
- package/dist/fetch-timeout.d.ts +23 -0
- package/dist/fetch-timeout.d.ts.map +1 -0
- package/dist/fetch-timeout.js +78 -0
- package/dist/fetch-timeout.js.map +1 -0
- package/dist/hosted.d.ts +28 -0
- package/dist/hosted.d.ts.map +1 -0
- package/dist/hosted.js +56 -0
- package/dist/hosted.js.map +1 -0
- package/dist/index.js +40 -118
- package/dist/index.js.map +1 -1
- package/dist/live-test-files.d.ts +35 -0
- package/dist/live-test-files.d.ts.map +1 -0
- package/dist/live-test-files.js +114 -0
- package/dist/live-test-files.js.map +1 -0
- package/dist/live-test-guard.d.ts.map +1 -1
- package/dist/live-test-guard.js +7 -1
- package/dist/live-test-guard.js.map +1 -1
- package/dist/request-context.d.ts +38 -0
- package/dist/request-context.d.ts.map +1 -0
- package/dist/request-context.js +11 -0
- package/dist/request-context.js.map +1 -0
- package/dist/server-factory.d.ts +18 -0
- package/dist/server-factory.d.ts.map +1 -0
- package/dist/server-factory.js +221 -0
- package/dist/server-factory.js.map +1 -0
- package/dist/setup-catchup-tools.d.ts +4 -0
- package/dist/setup-catchup-tools.d.ts.map +1 -1
- package/dist/setup-catchup-tools.js +16 -5
- package/dist/setup-catchup-tools.js.map +1 -1
- package/dist/smoke-tools.d.ts.map +1 -1
- package/dist/smoke-tools.js +2 -0
- package/dist/smoke-tools.js.map +1 -1
- package/dist/tool-catalog.d.ts +2 -0
- package/dist/tool-catalog.d.ts.map +1 -1
- package/dist/tool-catalog.js +6 -1
- package/dist/tool-catalog.js.map +1 -1
- package/dist/tool-groups.d.ts.map +1 -1
- package/dist/tool-groups.js +14 -0
- package/dist/tool-groups.js.map +1 -1
- package/dist/tool-shared.d.ts +2 -1
- package/dist/tool-shared.d.ts.map +1 -1
- package/dist/tool-shared.js +17 -2
- package/dist/tool-shared.js.map +1 -1
- package/dist/tools/adoption.d.ts.map +1 -1
- package/dist/tools/adoption.js +2 -1
- package/dist/tools/adoption.js.map +1 -1
- package/dist/tools/apex-campaigns.d.ts +390 -0
- package/dist/tools/apex-campaigns.d.ts.map +1 -1
- package/dist/tools/apex-campaigns.js +253 -1
- package/dist/tools/apex-campaigns.js.map +1 -1
- package/dist/tools/context.d.ts +2 -2
- package/dist/tools/experiments.d.ts +69 -1
- package/dist/tools/experiments.d.ts.map +1 -1
- package/dist/tools/experiments.js +88 -24
- package/dist/tools/experiments.js.map +1 -1
- package/dist/tools/letters.d.ts +423 -65
- package/dist/tools/letters.d.ts.map +1 -1
- package/dist/tools/letters.js +383 -42
- package/dist/tools/letters.js.map +1 -1
- package/dist/tools/measurement.d.ts +80 -38
- package/dist/tools/measurement.d.ts.map +1 -1
- package/dist/tools/measurement.js +151 -13
- package/dist/tools/measurement.js.map +1 -1
- package/dist/tools.d.ts +1047 -157
- package/dist/tools.d.ts.map +1 -1
- package/package.json +11 -1
- package/skills/apex-growth-intelligence/SKILL.md +4 -0
- package/skills/apex-growth-tracking/SKILL.md +1 -1
- package/skills/apex-integration-cookbook/SKILL.md +23 -3
- package/skills/apex-setup/SKILL.md +1 -1
- package/skills/apex-spec/SKILL.md +6 -1
package/dist/tools/letters.d.ts
CHANGED
|
@@ -39,14 +39,14 @@ export declare const letterTools: {
|
|
|
39
39
|
includeArchived: z.ZodOptional<z.ZodBoolean>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
41
|
search?: string | undefined;
|
|
42
|
+
includeArchived?: boolean | undefined;
|
|
42
43
|
pipeline?: "transactional" | "marketing" | undefined;
|
|
43
44
|
channel?: "email" | "mobile_push" | "inbox" | "web_push" | undefined;
|
|
44
|
-
includeArchived?: boolean | undefined;
|
|
45
45
|
}, {
|
|
46
46
|
search?: string | undefined;
|
|
47
|
+
includeArchived?: boolean | undefined;
|
|
47
48
|
pipeline?: "transactional" | "marketing" | undefined;
|
|
48
49
|
channel?: "email" | "mobile_push" | "inbox" | "web_push" | undefined;
|
|
49
|
-
includeArchived?: boolean | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
handler: (args: {
|
|
52
52
|
pipeline?: "transactional" | "marketing";
|
|
@@ -325,6 +325,7 @@ export declare const letterTools: {
|
|
|
325
325
|
description: string;
|
|
326
326
|
schema: z.ZodObject<{
|
|
327
327
|
communicationId: z.ZodString;
|
|
328
|
+
title: z.ZodOptional<z.ZodString>;
|
|
328
329
|
subject: z.ZodOptional<z.ZodString>;
|
|
329
330
|
slots: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
330
331
|
blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -408,6 +409,7 @@ export declare const letterTools: {
|
|
|
408
409
|
status?: "active" | "draft" | "paused" | undefined;
|
|
409
410
|
subject?: string | undefined;
|
|
410
411
|
intent?: "replace" | "compete" | undefined;
|
|
412
|
+
title?: string | undefined;
|
|
411
413
|
categoryId?: string | undefined;
|
|
412
414
|
slots?: Record<string, string> | undefined;
|
|
413
415
|
blocks?: {
|
|
@@ -443,6 +445,7 @@ export declare const letterTools: {
|
|
|
443
445
|
status?: "active" | "draft" | "paused" | undefined;
|
|
444
446
|
subject?: string | undefined;
|
|
445
447
|
intent?: "replace" | "compete" | undefined;
|
|
448
|
+
title?: string | undefined;
|
|
446
449
|
categoryId?: string | undefined;
|
|
447
450
|
slots?: Record<string, string> | undefined;
|
|
448
451
|
blocks?: {
|
|
@@ -475,6 +478,7 @@ export declare const letterTools: {
|
|
|
475
478
|
}>;
|
|
476
479
|
handler: (args: {
|
|
477
480
|
communicationId: string;
|
|
481
|
+
title?: string;
|
|
478
482
|
subject?: string;
|
|
479
483
|
slots?: Record<string, string>;
|
|
480
484
|
blocks?: LetterBlockInput[];
|
|
@@ -891,6 +895,46 @@ export declare const letterTools: {
|
|
|
891
895
|
}[];
|
|
892
896
|
}>;
|
|
893
897
|
};
|
|
898
|
+
update_journey: {
|
|
899
|
+
description: string;
|
|
900
|
+
schema: z.ZodObject<{
|
|
901
|
+
journeyId: z.ZodString;
|
|
902
|
+
name: z.ZodOptional<z.ZodString>;
|
|
903
|
+
description: z.ZodOptional<z.ZodString>;
|
|
904
|
+
audience_bucket: z.ZodOptional<z.ZodEnum<["production", "beta", "dev"]>>;
|
|
905
|
+
attributionWindowDays: z.ZodOptional<z.ZodNumber>;
|
|
906
|
+
}, "strip", z.ZodTypeAny, {
|
|
907
|
+
journeyId: string;
|
|
908
|
+
name?: string | undefined;
|
|
909
|
+
attributionWindowDays?: number | undefined;
|
|
910
|
+
description?: string | undefined;
|
|
911
|
+
audience_bucket?: "production" | "beta" | "dev" | undefined;
|
|
912
|
+
}, {
|
|
913
|
+
journeyId: string;
|
|
914
|
+
name?: string | undefined;
|
|
915
|
+
attributionWindowDays?: number | undefined;
|
|
916
|
+
description?: string | undefined;
|
|
917
|
+
audience_bucket?: "production" | "beta" | "dev" | undefined;
|
|
918
|
+
}>;
|
|
919
|
+
handler: ({ journeyId, name, description, audience_bucket, attributionWindowDays, }: {
|
|
920
|
+
journeyId: string;
|
|
921
|
+
name?: string;
|
|
922
|
+
description?: string;
|
|
923
|
+
audience_bucket?: "production" | "beta" | "dev";
|
|
924
|
+
attributionWindowDays?: number;
|
|
925
|
+
}) => Promise<{
|
|
926
|
+
content: {
|
|
927
|
+
type: "text";
|
|
928
|
+
text: string;
|
|
929
|
+
}[];
|
|
930
|
+
isError: boolean;
|
|
931
|
+
} | {
|
|
932
|
+
content: {
|
|
933
|
+
type: "text";
|
|
934
|
+
text: string;
|
|
935
|
+
}[];
|
|
936
|
+
}>;
|
|
937
|
+
};
|
|
894
938
|
create_journey_from_template: {
|
|
895
939
|
description: string;
|
|
896
940
|
schema: z.ZodObject<{
|
|
@@ -915,6 +959,134 @@ export declare const letterTools: {
|
|
|
915
959
|
}[];
|
|
916
960
|
}>;
|
|
917
961
|
};
|
|
962
|
+
get_journey_funnel_coverage: {
|
|
963
|
+
description: string;
|
|
964
|
+
schema: z.ZodObject<{
|
|
965
|
+
days: z.ZodOptional<z.ZodNumber>;
|
|
966
|
+
}, "strip", z.ZodTypeAny, {
|
|
967
|
+
days?: number | undefined;
|
|
968
|
+
}, {
|
|
969
|
+
days?: number | undefined;
|
|
970
|
+
}>;
|
|
971
|
+
handler: ({ days }: {
|
|
972
|
+
days?: number;
|
|
973
|
+
}) => Promise<{
|
|
974
|
+
content: {
|
|
975
|
+
type: "text";
|
|
976
|
+
text: string;
|
|
977
|
+
}[];
|
|
978
|
+
isError: boolean;
|
|
979
|
+
} | {
|
|
980
|
+
content: {
|
|
981
|
+
type: "text";
|
|
982
|
+
text: string;
|
|
983
|
+
}[];
|
|
984
|
+
}>;
|
|
985
|
+
};
|
|
986
|
+
create_journey_from_funnel_gap: {
|
|
987
|
+
description: string;
|
|
988
|
+
schema: z.ZodObject<{
|
|
989
|
+
fromKeyEventId: z.ZodString;
|
|
990
|
+
toKeyEventId: z.ZodString;
|
|
991
|
+
mode: z.ZodOptional<z.ZodEnum<["starter_sequence", "template", "blank"]>>;
|
|
992
|
+
templateId: z.ZodOptional<z.ZodString>;
|
|
993
|
+
name: z.ZodOptional<z.ZodString>;
|
|
994
|
+
description: z.ZodOptional<z.ZodString>;
|
|
995
|
+
attributionWindowDays: z.ZodOptional<z.ZodNumber>;
|
|
996
|
+
audienceBucket: z.ZodOptional<z.ZodEnum<["production", "beta", "dev"]>>;
|
|
997
|
+
}, "strip", z.ZodTypeAny, {
|
|
998
|
+
fromKeyEventId: string;
|
|
999
|
+
toKeyEventId: string;
|
|
1000
|
+
mode?: "starter_sequence" | "template" | "blank" | undefined;
|
|
1001
|
+
name?: string | undefined;
|
|
1002
|
+
attributionWindowDays?: number | undefined;
|
|
1003
|
+
description?: string | undefined;
|
|
1004
|
+
templateId?: string | undefined;
|
|
1005
|
+
audienceBucket?: "production" | "beta" | "dev" | undefined;
|
|
1006
|
+
}, {
|
|
1007
|
+
fromKeyEventId: string;
|
|
1008
|
+
toKeyEventId: string;
|
|
1009
|
+
mode?: "starter_sequence" | "template" | "blank" | undefined;
|
|
1010
|
+
name?: string | undefined;
|
|
1011
|
+
attributionWindowDays?: number | undefined;
|
|
1012
|
+
description?: string | undefined;
|
|
1013
|
+
templateId?: string | undefined;
|
|
1014
|
+
audienceBucket?: "production" | "beta" | "dev" | undefined;
|
|
1015
|
+
}>;
|
|
1016
|
+
handler: ({ fromKeyEventId, toKeyEventId, mode, templateId, name, description, attributionWindowDays, audienceBucket, }: {
|
|
1017
|
+
fromKeyEventId: string;
|
|
1018
|
+
toKeyEventId: string;
|
|
1019
|
+
mode?: "starter_sequence" | "template" | "blank";
|
|
1020
|
+
templateId?: string;
|
|
1021
|
+
name?: string;
|
|
1022
|
+
description?: string;
|
|
1023
|
+
attributionWindowDays?: number;
|
|
1024
|
+
audienceBucket?: "production" | "beta" | "dev";
|
|
1025
|
+
}) => Promise<{
|
|
1026
|
+
content: {
|
|
1027
|
+
type: "text";
|
|
1028
|
+
text: string;
|
|
1029
|
+
}[];
|
|
1030
|
+
isError: boolean;
|
|
1031
|
+
} | {
|
|
1032
|
+
content: {
|
|
1033
|
+
type: "text";
|
|
1034
|
+
text: string;
|
|
1035
|
+
}[];
|
|
1036
|
+
}>;
|
|
1037
|
+
};
|
|
1038
|
+
sync_journey_funnel_exits: {
|
|
1039
|
+
description: string;
|
|
1040
|
+
schema: z.ZodObject<{
|
|
1041
|
+
journeyId: z.ZodString;
|
|
1042
|
+
}, "strip", z.ZodTypeAny, {
|
|
1043
|
+
journeyId: string;
|
|
1044
|
+
}, {
|
|
1045
|
+
journeyId: string;
|
|
1046
|
+
}>;
|
|
1047
|
+
handler: ({ journeyId }: {
|
|
1048
|
+
journeyId: string;
|
|
1049
|
+
}) => Promise<{
|
|
1050
|
+
content: {
|
|
1051
|
+
type: "text";
|
|
1052
|
+
text: string;
|
|
1053
|
+
}[];
|
|
1054
|
+
isError: boolean;
|
|
1055
|
+
} | {
|
|
1056
|
+
content: {
|
|
1057
|
+
type: "text";
|
|
1058
|
+
text: string;
|
|
1059
|
+
}[];
|
|
1060
|
+
}>;
|
|
1061
|
+
};
|
|
1062
|
+
fill_funnel_gaps: {
|
|
1063
|
+
description: string;
|
|
1064
|
+
schema: z.ZodObject<{
|
|
1065
|
+
gapIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1066
|
+
audienceBucket: z.ZodOptional<z.ZodEnum<["production", "beta", "dev"]>>;
|
|
1067
|
+
}, "strip", z.ZodTypeAny, {
|
|
1068
|
+
audienceBucket?: "production" | "beta" | "dev" | undefined;
|
|
1069
|
+
gapIds?: string[] | undefined;
|
|
1070
|
+
}, {
|
|
1071
|
+
audienceBucket?: "production" | "beta" | "dev" | undefined;
|
|
1072
|
+
gapIds?: string[] | undefined;
|
|
1073
|
+
}>;
|
|
1074
|
+
handler: ({ gapIds, audienceBucket, }: {
|
|
1075
|
+
gapIds?: string[];
|
|
1076
|
+
audienceBucket?: "production" | "beta" | "dev";
|
|
1077
|
+
}) => Promise<{
|
|
1078
|
+
content: {
|
|
1079
|
+
type: "text";
|
|
1080
|
+
text: string;
|
|
1081
|
+
}[];
|
|
1082
|
+
isError: boolean;
|
|
1083
|
+
} | {
|
|
1084
|
+
content: {
|
|
1085
|
+
type: "text";
|
|
1086
|
+
text: string;
|
|
1087
|
+
}[];
|
|
1088
|
+
}>;
|
|
1089
|
+
};
|
|
918
1090
|
list_trigger_contracts: {
|
|
919
1091
|
description: string;
|
|
920
1092
|
schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
@@ -1071,7 +1243,7 @@ export declare const letterTools: {
|
|
|
1071
1243
|
key_event_id: z.ZodOptional<z.ZodString>;
|
|
1072
1244
|
scope: z.ZodOptional<z.ZodEnum<["person", "account"]>>;
|
|
1073
1245
|
field_path: z.ZodOptional<z.ZodString>;
|
|
1074
|
-
operator: z.ZodOptional<z.ZodEnum<["equals", "not_equals", "greater_than", "less_than", "in", "exists", "not_exists"]>>;
|
|
1246
|
+
operator: z.ZodOptional<z.ZodEnum<["equals", "not_equals", "contains", "greater_than", "less_than", "in", "exists", "not_exists"]>>;
|
|
1075
1247
|
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>>;
|
|
1076
1248
|
event_name: z.ZodOptional<z.ZodString>;
|
|
1077
1249
|
window_days: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1079,21 +1251,21 @@ export declare const letterTools: {
|
|
|
1079
1251
|
}, "strip", z.ZodTypeAny, {
|
|
1080
1252
|
kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
|
|
1081
1253
|
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1082
|
-
operator?: "equals" | "not_equals" | "exists" | "
|
|
1254
|
+
operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
|
|
1083
1255
|
event_name?: string | undefined;
|
|
1084
1256
|
key_event_id?: string | undefined;
|
|
1085
|
-
scope?: "account" | "person" | undefined;
|
|
1086
1257
|
field_path?: string | undefined;
|
|
1258
|
+
scope?: "account" | "person" | undefined;
|
|
1087
1259
|
window_days?: number | undefined;
|
|
1088
1260
|
wait_days?: number | undefined;
|
|
1089
1261
|
}, {
|
|
1090
1262
|
kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
|
|
1091
1263
|
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1092
|
-
operator?: "equals" | "not_equals" | "exists" | "
|
|
1264
|
+
operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
|
|
1093
1265
|
event_name?: string | undefined;
|
|
1094
1266
|
key_event_id?: string | undefined;
|
|
1095
|
-
scope?: "account" | "person" | undefined;
|
|
1096
1267
|
field_path?: string | undefined;
|
|
1268
|
+
scope?: "account" | "person" | undefined;
|
|
1097
1269
|
window_days?: number | undefined;
|
|
1098
1270
|
wait_days?: number | undefined;
|
|
1099
1271
|
}>;
|
|
@@ -1104,11 +1276,11 @@ export declare const letterTools: {
|
|
|
1104
1276
|
condition: {
|
|
1105
1277
|
kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
|
|
1106
1278
|
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1107
|
-
operator?: "equals" | "not_equals" | "exists" | "
|
|
1279
|
+
operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
|
|
1108
1280
|
event_name?: string | undefined;
|
|
1109
1281
|
key_event_id?: string | undefined;
|
|
1110
|
-
scope?: "account" | "person" | undefined;
|
|
1111
1282
|
field_path?: string | undefined;
|
|
1283
|
+
scope?: "account" | "person" | undefined;
|
|
1112
1284
|
window_days?: number | undefined;
|
|
1113
1285
|
wait_days?: number | undefined;
|
|
1114
1286
|
};
|
|
@@ -1121,11 +1293,11 @@ export declare const letterTools: {
|
|
|
1121
1293
|
condition: {
|
|
1122
1294
|
kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
|
|
1123
1295
|
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1124
|
-
operator?: "equals" | "not_equals" | "exists" | "
|
|
1296
|
+
operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
|
|
1125
1297
|
event_name?: string | undefined;
|
|
1126
1298
|
key_event_id?: string | undefined;
|
|
1127
|
-
scope?: "account" | "person" | undefined;
|
|
1128
1299
|
field_path?: string | undefined;
|
|
1300
|
+
scope?: "account" | "person" | undefined;
|
|
1129
1301
|
window_days?: number | undefined;
|
|
1130
1302
|
wait_days?: number | undefined;
|
|
1131
1303
|
};
|
|
@@ -1571,30 +1743,69 @@ export declare const letterTools: {
|
|
|
1571
1743
|
conditions: z.ZodArray<z.ZodObject<{
|
|
1572
1744
|
verb: z.ZodOptional<z.ZodEnum<["has", "hasnt"]>>;
|
|
1573
1745
|
event: z.ZodOptional<z.ZodString>;
|
|
1746
|
+
where: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1747
|
+
field_path: z.ZodString;
|
|
1748
|
+
operator: z.ZodEnum<["equals", "not_equals", "in", "contains", "gt", "gte", "lt", "lte", "exists", "not_exists"]>;
|
|
1749
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>>;
|
|
1750
|
+
}, "strip", z.ZodTypeAny, {
|
|
1751
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1752
|
+
field_path: string;
|
|
1753
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1754
|
+
}, {
|
|
1755
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1756
|
+
field_path: string;
|
|
1757
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1758
|
+
}>, "many">>;
|
|
1759
|
+
at_least: z.ZodOptional<z.ZodNumber>;
|
|
1574
1760
|
key_event_id: z.ZodOptional<z.ZodString>;
|
|
1575
1761
|
scope: z.ZodOptional<z.ZodEnum<["person", "account"]>>;
|
|
1576
1762
|
window_days: z.ZodOptional<z.ZodNumber>;
|
|
1577
1763
|
attribute: z.ZodOptional<z.ZodString>;
|
|
1578
|
-
op: z.ZodOptional<z.ZodEnum<["is", "is_not", "exists"]>>;
|
|
1764
|
+
op: z.ZodOptional<z.ZodEnum<["is", "is_not", "contains", "exists"]>>;
|
|
1579
1765
|
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
1766
|
+
brought_by_campaign: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1767
|
+
campaign_id: z.ZodString;
|
|
1768
|
+
}, "strip", z.ZodTypeAny, {
|
|
1769
|
+
campaign_id: string;
|
|
1770
|
+
}, {
|
|
1771
|
+
campaign_id: string;
|
|
1772
|
+
}>]>>;
|
|
1580
1773
|
}, "strip", z.ZodTypeAny, {
|
|
1581
1774
|
event?: string | undefined;
|
|
1582
1775
|
value?: string | number | boolean | undefined;
|
|
1583
1776
|
key_event_id?: string | undefined;
|
|
1777
|
+
verb?: "has" | "hasnt" | undefined;
|
|
1778
|
+
where?: {
|
|
1779
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1780
|
+
field_path: string;
|
|
1781
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1782
|
+
}[] | undefined;
|
|
1783
|
+
at_least?: number | undefined;
|
|
1584
1784
|
scope?: "account" | "person" | undefined;
|
|
1585
|
-
attribute?: string | undefined;
|
|
1586
1785
|
window_days?: number | undefined;
|
|
1587
|
-
|
|
1588
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
1786
|
+
attribute?: string | undefined;
|
|
1787
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
1788
|
+
brought_by_campaign?: string | {
|
|
1789
|
+
campaign_id: string;
|
|
1790
|
+
} | undefined;
|
|
1589
1791
|
}, {
|
|
1590
1792
|
event?: string | undefined;
|
|
1591
1793
|
value?: string | number | boolean | undefined;
|
|
1592
1794
|
key_event_id?: string | undefined;
|
|
1795
|
+
verb?: "has" | "hasnt" | undefined;
|
|
1796
|
+
where?: {
|
|
1797
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1798
|
+
field_path: string;
|
|
1799
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1800
|
+
}[] | undefined;
|
|
1801
|
+
at_least?: number | undefined;
|
|
1593
1802
|
scope?: "account" | "person" | undefined;
|
|
1594
|
-
attribute?: string | undefined;
|
|
1595
1803
|
window_days?: number | undefined;
|
|
1596
|
-
|
|
1597
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
1804
|
+
attribute?: string | undefined;
|
|
1805
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
1806
|
+
brought_by_campaign?: string | {
|
|
1807
|
+
campaign_id: string;
|
|
1808
|
+
} | undefined;
|
|
1598
1809
|
}>, "many">;
|
|
1599
1810
|
}, "strip", z.ZodTypeAny, {
|
|
1600
1811
|
match: "all" | "any";
|
|
@@ -1602,11 +1813,20 @@ export declare const letterTools: {
|
|
|
1602
1813
|
event?: string | undefined;
|
|
1603
1814
|
value?: string | number | boolean | undefined;
|
|
1604
1815
|
key_event_id?: string | undefined;
|
|
1816
|
+
verb?: "has" | "hasnt" | undefined;
|
|
1817
|
+
where?: {
|
|
1818
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1819
|
+
field_path: string;
|
|
1820
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1821
|
+
}[] | undefined;
|
|
1822
|
+
at_least?: number | undefined;
|
|
1605
1823
|
scope?: "account" | "person" | undefined;
|
|
1606
|
-
attribute?: string | undefined;
|
|
1607
1824
|
window_days?: number | undefined;
|
|
1608
|
-
|
|
1609
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
1825
|
+
attribute?: string | undefined;
|
|
1826
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
1827
|
+
brought_by_campaign?: string | {
|
|
1828
|
+
campaign_id: string;
|
|
1829
|
+
} | undefined;
|
|
1610
1830
|
}[];
|
|
1611
1831
|
}, {
|
|
1612
1832
|
match: "all" | "any";
|
|
@@ -1614,11 +1834,20 @@ export declare const letterTools: {
|
|
|
1614
1834
|
event?: string | undefined;
|
|
1615
1835
|
value?: string | number | boolean | undefined;
|
|
1616
1836
|
key_event_id?: string | undefined;
|
|
1837
|
+
verb?: "has" | "hasnt" | undefined;
|
|
1838
|
+
where?: {
|
|
1839
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1840
|
+
field_path: string;
|
|
1841
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1842
|
+
}[] | undefined;
|
|
1843
|
+
at_least?: number | undefined;
|
|
1617
1844
|
scope?: "account" | "person" | undefined;
|
|
1618
|
-
attribute?: string | undefined;
|
|
1619
1845
|
window_days?: number | undefined;
|
|
1620
|
-
|
|
1621
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
1846
|
+
attribute?: string | undefined;
|
|
1847
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
1848
|
+
brought_by_campaign?: string | {
|
|
1849
|
+
campaign_id: string;
|
|
1850
|
+
} | undefined;
|
|
1622
1851
|
}[];
|
|
1623
1852
|
}>, "many">;
|
|
1624
1853
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1629,11 +1858,20 @@ export declare const letterTools: {
|
|
|
1629
1858
|
event?: string | undefined;
|
|
1630
1859
|
value?: string | number | boolean | undefined;
|
|
1631
1860
|
key_event_id?: string | undefined;
|
|
1861
|
+
verb?: "has" | "hasnt" | undefined;
|
|
1862
|
+
where?: {
|
|
1863
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1864
|
+
field_path: string;
|
|
1865
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1866
|
+
}[] | undefined;
|
|
1867
|
+
at_least?: number | undefined;
|
|
1632
1868
|
scope?: "account" | "person" | undefined;
|
|
1633
|
-
attribute?: string | undefined;
|
|
1634
1869
|
window_days?: number | undefined;
|
|
1635
|
-
|
|
1636
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
1870
|
+
attribute?: string | undefined;
|
|
1871
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
1872
|
+
brought_by_campaign?: string | {
|
|
1873
|
+
campaign_id: string;
|
|
1874
|
+
} | undefined;
|
|
1637
1875
|
}[];
|
|
1638
1876
|
}[];
|
|
1639
1877
|
}, {
|
|
@@ -1644,11 +1882,20 @@ export declare const letterTools: {
|
|
|
1644
1882
|
event?: string | undefined;
|
|
1645
1883
|
value?: string | number | boolean | undefined;
|
|
1646
1884
|
key_event_id?: string | undefined;
|
|
1885
|
+
verb?: "has" | "hasnt" | undefined;
|
|
1886
|
+
where?: {
|
|
1887
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1888
|
+
field_path: string;
|
|
1889
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1890
|
+
}[] | undefined;
|
|
1891
|
+
at_least?: number | undefined;
|
|
1647
1892
|
scope?: "account" | "person" | undefined;
|
|
1648
|
-
attribute?: string | undefined;
|
|
1649
1893
|
window_days?: number | undefined;
|
|
1650
|
-
|
|
1651
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
1894
|
+
attribute?: string | undefined;
|
|
1895
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
1896
|
+
brought_by_campaign?: string | {
|
|
1897
|
+
campaign_id: string;
|
|
1898
|
+
} | undefined;
|
|
1652
1899
|
}[];
|
|
1653
1900
|
}[];
|
|
1654
1901
|
}>>;
|
|
@@ -1656,7 +1903,6 @@ export declare const letterTools: {
|
|
|
1656
1903
|
}, "strip", z.ZodTypeAny, {
|
|
1657
1904
|
name: string;
|
|
1658
1905
|
description?: string | undefined;
|
|
1659
|
-
scope?: "workspace" | "org" | undefined;
|
|
1660
1906
|
conditions?: {
|
|
1661
1907
|
match: "all" | "any";
|
|
1662
1908
|
groups: {
|
|
@@ -1665,19 +1911,28 @@ export declare const letterTools: {
|
|
|
1665
1911
|
event?: string | undefined;
|
|
1666
1912
|
value?: string | number | boolean | undefined;
|
|
1667
1913
|
key_event_id?: string | undefined;
|
|
1914
|
+
verb?: "has" | "hasnt" | undefined;
|
|
1915
|
+
where?: {
|
|
1916
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1917
|
+
field_path: string;
|
|
1918
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1919
|
+
}[] | undefined;
|
|
1920
|
+
at_least?: number | undefined;
|
|
1668
1921
|
scope?: "account" | "person" | undefined;
|
|
1669
|
-
attribute?: string | undefined;
|
|
1670
1922
|
window_days?: number | undefined;
|
|
1671
|
-
|
|
1672
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
1923
|
+
attribute?: string | undefined;
|
|
1924
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
1925
|
+
brought_by_campaign?: string | {
|
|
1926
|
+
campaign_id: string;
|
|
1927
|
+
} | undefined;
|
|
1673
1928
|
}[];
|
|
1674
1929
|
}[];
|
|
1675
1930
|
} | undefined;
|
|
1931
|
+
scope?: "workspace" | "org" | undefined;
|
|
1676
1932
|
predicate?: Record<string, unknown> | undefined;
|
|
1677
1933
|
}, {
|
|
1678
1934
|
name: string;
|
|
1679
1935
|
description?: string | undefined;
|
|
1680
|
-
scope?: "workspace" | "org" | undefined;
|
|
1681
1936
|
conditions?: {
|
|
1682
1937
|
match: "all" | "any";
|
|
1683
1938
|
groups: {
|
|
@@ -1686,14 +1941,24 @@ export declare const letterTools: {
|
|
|
1686
1941
|
event?: string | undefined;
|
|
1687
1942
|
value?: string | number | boolean | undefined;
|
|
1688
1943
|
key_event_id?: string | undefined;
|
|
1944
|
+
verb?: "has" | "hasnt" | undefined;
|
|
1945
|
+
where?: {
|
|
1946
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1947
|
+
field_path: string;
|
|
1948
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1949
|
+
}[] | undefined;
|
|
1950
|
+
at_least?: number | undefined;
|
|
1689
1951
|
scope?: "account" | "person" | undefined;
|
|
1690
|
-
attribute?: string | undefined;
|
|
1691
1952
|
window_days?: number | undefined;
|
|
1692
|
-
|
|
1693
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
1953
|
+
attribute?: string | undefined;
|
|
1954
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
1955
|
+
brought_by_campaign?: string | {
|
|
1956
|
+
campaign_id: string;
|
|
1957
|
+
} | undefined;
|
|
1694
1958
|
}[];
|
|
1695
1959
|
}[];
|
|
1696
1960
|
} | undefined;
|
|
1961
|
+
scope?: "workspace" | "org" | undefined;
|
|
1697
1962
|
predicate?: Record<string, unknown> | undefined;
|
|
1698
1963
|
}>;
|
|
1699
1964
|
handler: (args: {
|
|
@@ -1723,30 +1988,69 @@ export declare const letterTools: {
|
|
|
1723
1988
|
conditions: z.ZodArray<z.ZodObject<{
|
|
1724
1989
|
verb: z.ZodOptional<z.ZodEnum<["has", "hasnt"]>>;
|
|
1725
1990
|
event: z.ZodOptional<z.ZodString>;
|
|
1991
|
+
where: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1992
|
+
field_path: z.ZodString;
|
|
1993
|
+
operator: z.ZodEnum<["equals", "not_equals", "in", "contains", "gt", "gte", "lt", "lte", "exists", "not_exists"]>;
|
|
1994
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>>;
|
|
1995
|
+
}, "strip", z.ZodTypeAny, {
|
|
1996
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
1997
|
+
field_path: string;
|
|
1998
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
1999
|
+
}, {
|
|
2000
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
2001
|
+
field_path: string;
|
|
2002
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
2003
|
+
}>, "many">>;
|
|
2004
|
+
at_least: z.ZodOptional<z.ZodNumber>;
|
|
1726
2005
|
key_event_id: z.ZodOptional<z.ZodString>;
|
|
1727
2006
|
scope: z.ZodOptional<z.ZodEnum<["person", "account"]>>;
|
|
1728
2007
|
window_days: z.ZodOptional<z.ZodNumber>;
|
|
1729
2008
|
attribute: z.ZodOptional<z.ZodString>;
|
|
1730
|
-
op: z.ZodOptional<z.ZodEnum<["is", "is_not", "exists"]>>;
|
|
2009
|
+
op: z.ZodOptional<z.ZodEnum<["is", "is_not", "contains", "exists"]>>;
|
|
1731
2010
|
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
2011
|
+
brought_by_campaign: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2012
|
+
campaign_id: z.ZodString;
|
|
2013
|
+
}, "strip", z.ZodTypeAny, {
|
|
2014
|
+
campaign_id: string;
|
|
2015
|
+
}, {
|
|
2016
|
+
campaign_id: string;
|
|
2017
|
+
}>]>>;
|
|
1732
2018
|
}, "strip", z.ZodTypeAny, {
|
|
1733
2019
|
event?: string | undefined;
|
|
1734
2020
|
value?: string | number | boolean | undefined;
|
|
1735
2021
|
key_event_id?: string | undefined;
|
|
2022
|
+
verb?: "has" | "hasnt" | undefined;
|
|
2023
|
+
where?: {
|
|
2024
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
2025
|
+
field_path: string;
|
|
2026
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
2027
|
+
}[] | undefined;
|
|
2028
|
+
at_least?: number | undefined;
|
|
1736
2029
|
scope?: "account" | "person" | undefined;
|
|
1737
|
-
attribute?: string | undefined;
|
|
1738
2030
|
window_days?: number | undefined;
|
|
1739
|
-
|
|
1740
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
2031
|
+
attribute?: string | undefined;
|
|
2032
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
2033
|
+
brought_by_campaign?: string | {
|
|
2034
|
+
campaign_id: string;
|
|
2035
|
+
} | undefined;
|
|
1741
2036
|
}, {
|
|
1742
2037
|
event?: string | undefined;
|
|
1743
2038
|
value?: string | number | boolean | undefined;
|
|
1744
2039
|
key_event_id?: string | undefined;
|
|
2040
|
+
verb?: "has" | "hasnt" | undefined;
|
|
2041
|
+
where?: {
|
|
2042
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
2043
|
+
field_path: string;
|
|
2044
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
2045
|
+
}[] | undefined;
|
|
2046
|
+
at_least?: number | undefined;
|
|
1745
2047
|
scope?: "account" | "person" | undefined;
|
|
1746
|
-
attribute?: string | undefined;
|
|
1747
2048
|
window_days?: number | undefined;
|
|
1748
|
-
|
|
1749
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
2049
|
+
attribute?: string | undefined;
|
|
2050
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
2051
|
+
brought_by_campaign?: string | {
|
|
2052
|
+
campaign_id: string;
|
|
2053
|
+
} | undefined;
|
|
1750
2054
|
}>, "many">;
|
|
1751
2055
|
}, "strip", z.ZodTypeAny, {
|
|
1752
2056
|
match: "all" | "any";
|
|
@@ -1754,11 +2058,20 @@ export declare const letterTools: {
|
|
|
1754
2058
|
event?: string | undefined;
|
|
1755
2059
|
value?: string | number | boolean | undefined;
|
|
1756
2060
|
key_event_id?: string | undefined;
|
|
2061
|
+
verb?: "has" | "hasnt" | undefined;
|
|
2062
|
+
where?: {
|
|
2063
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
2064
|
+
field_path: string;
|
|
2065
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
2066
|
+
}[] | undefined;
|
|
2067
|
+
at_least?: number | undefined;
|
|
1757
2068
|
scope?: "account" | "person" | undefined;
|
|
1758
|
-
attribute?: string | undefined;
|
|
1759
2069
|
window_days?: number | undefined;
|
|
1760
|
-
|
|
1761
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
2070
|
+
attribute?: string | undefined;
|
|
2071
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
2072
|
+
brought_by_campaign?: string | {
|
|
2073
|
+
campaign_id: string;
|
|
2074
|
+
} | undefined;
|
|
1762
2075
|
}[];
|
|
1763
2076
|
}, {
|
|
1764
2077
|
match: "all" | "any";
|
|
@@ -1766,11 +2079,20 @@ export declare const letterTools: {
|
|
|
1766
2079
|
event?: string | undefined;
|
|
1767
2080
|
value?: string | number | boolean | undefined;
|
|
1768
2081
|
key_event_id?: string | undefined;
|
|
2082
|
+
verb?: "has" | "hasnt" | undefined;
|
|
2083
|
+
where?: {
|
|
2084
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
2085
|
+
field_path: string;
|
|
2086
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
2087
|
+
}[] | undefined;
|
|
2088
|
+
at_least?: number | undefined;
|
|
1769
2089
|
scope?: "account" | "person" | undefined;
|
|
1770
|
-
attribute?: string | undefined;
|
|
1771
2090
|
window_days?: number | undefined;
|
|
1772
|
-
|
|
1773
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
2091
|
+
attribute?: string | undefined;
|
|
2092
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
2093
|
+
brought_by_campaign?: string | {
|
|
2094
|
+
campaign_id: string;
|
|
2095
|
+
} | undefined;
|
|
1774
2096
|
}[];
|
|
1775
2097
|
}>, "many">;
|
|
1776
2098
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1781,11 +2103,20 @@ export declare const letterTools: {
|
|
|
1781
2103
|
event?: string | undefined;
|
|
1782
2104
|
value?: string | number | boolean | undefined;
|
|
1783
2105
|
key_event_id?: string | undefined;
|
|
2106
|
+
verb?: "has" | "hasnt" | undefined;
|
|
2107
|
+
where?: {
|
|
2108
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
2109
|
+
field_path: string;
|
|
2110
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
2111
|
+
}[] | undefined;
|
|
2112
|
+
at_least?: number | undefined;
|
|
1784
2113
|
scope?: "account" | "person" | undefined;
|
|
1785
|
-
attribute?: string | undefined;
|
|
1786
2114
|
window_days?: number | undefined;
|
|
1787
|
-
|
|
1788
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
2115
|
+
attribute?: string | undefined;
|
|
2116
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
2117
|
+
brought_by_campaign?: string | {
|
|
2118
|
+
campaign_id: string;
|
|
2119
|
+
} | undefined;
|
|
1789
2120
|
}[];
|
|
1790
2121
|
}[];
|
|
1791
2122
|
}, {
|
|
@@ -1796,11 +2127,20 @@ export declare const letterTools: {
|
|
|
1796
2127
|
event?: string | undefined;
|
|
1797
2128
|
value?: string | number | boolean | undefined;
|
|
1798
2129
|
key_event_id?: string | undefined;
|
|
2130
|
+
verb?: "has" | "hasnt" | undefined;
|
|
2131
|
+
where?: {
|
|
2132
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
2133
|
+
field_path: string;
|
|
2134
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
2135
|
+
}[] | undefined;
|
|
2136
|
+
at_least?: number | undefined;
|
|
1799
2137
|
scope?: "account" | "person" | undefined;
|
|
1800
|
-
attribute?: string | undefined;
|
|
1801
2138
|
window_days?: number | undefined;
|
|
1802
|
-
|
|
1803
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
2139
|
+
attribute?: string | undefined;
|
|
2140
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
2141
|
+
brought_by_campaign?: string | {
|
|
2142
|
+
campaign_id: string;
|
|
2143
|
+
} | undefined;
|
|
1804
2144
|
}[];
|
|
1805
2145
|
}[];
|
|
1806
2146
|
}>>;
|
|
@@ -1809,7 +2149,6 @@ export declare const letterTools: {
|
|
|
1809
2149
|
segmentId: string;
|
|
1810
2150
|
name?: string | undefined;
|
|
1811
2151
|
description?: string | undefined;
|
|
1812
|
-
scope?: "workspace" | "org" | undefined;
|
|
1813
2152
|
conditions?: {
|
|
1814
2153
|
match: "all" | "any";
|
|
1815
2154
|
groups: {
|
|
@@ -1818,20 +2157,29 @@ export declare const letterTools: {
|
|
|
1818
2157
|
event?: string | undefined;
|
|
1819
2158
|
value?: string | number | boolean | undefined;
|
|
1820
2159
|
key_event_id?: string | undefined;
|
|
2160
|
+
verb?: "has" | "hasnt" | undefined;
|
|
2161
|
+
where?: {
|
|
2162
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
2163
|
+
field_path: string;
|
|
2164
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
2165
|
+
}[] | undefined;
|
|
2166
|
+
at_least?: number | undefined;
|
|
1821
2167
|
scope?: "account" | "person" | undefined;
|
|
1822
|
-
attribute?: string | undefined;
|
|
1823
2168
|
window_days?: number | undefined;
|
|
1824
|
-
|
|
1825
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
2169
|
+
attribute?: string | undefined;
|
|
2170
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
2171
|
+
brought_by_campaign?: string | {
|
|
2172
|
+
campaign_id: string;
|
|
2173
|
+
} | undefined;
|
|
1826
2174
|
}[];
|
|
1827
2175
|
}[];
|
|
1828
2176
|
} | undefined;
|
|
2177
|
+
scope?: "workspace" | "org" | undefined;
|
|
1829
2178
|
predicate?: Record<string, unknown> | undefined;
|
|
1830
2179
|
}, {
|
|
1831
2180
|
segmentId: string;
|
|
1832
2181
|
name?: string | undefined;
|
|
1833
2182
|
description?: string | undefined;
|
|
1834
|
-
scope?: "workspace" | "org" | undefined;
|
|
1835
2183
|
conditions?: {
|
|
1836
2184
|
match: "all" | "any";
|
|
1837
2185
|
groups: {
|
|
@@ -1840,14 +2188,24 @@ export declare const letterTools: {
|
|
|
1840
2188
|
event?: string | undefined;
|
|
1841
2189
|
value?: string | number | boolean | undefined;
|
|
1842
2190
|
key_event_id?: string | undefined;
|
|
2191
|
+
verb?: "has" | "hasnt" | undefined;
|
|
2192
|
+
where?: {
|
|
2193
|
+
operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
|
|
2194
|
+
field_path: string;
|
|
2195
|
+
value?: string | number | boolean | (string | number | boolean)[] | undefined;
|
|
2196
|
+
}[] | undefined;
|
|
2197
|
+
at_least?: number | undefined;
|
|
1843
2198
|
scope?: "account" | "person" | undefined;
|
|
1844
|
-
attribute?: string | undefined;
|
|
1845
2199
|
window_days?: number | undefined;
|
|
1846
|
-
|
|
1847
|
-
op?: "exists" | "is" | "is_not" | undefined;
|
|
2200
|
+
attribute?: string | undefined;
|
|
2201
|
+
op?: "exists" | "contains" | "is" | "is_not" | undefined;
|
|
2202
|
+
brought_by_campaign?: string | {
|
|
2203
|
+
campaign_id: string;
|
|
2204
|
+
} | undefined;
|
|
1848
2205
|
}[];
|
|
1849
2206
|
}[];
|
|
1850
2207
|
} | undefined;
|
|
2208
|
+
scope?: "workspace" | "org" | undefined;
|
|
1851
2209
|
predicate?: Record<string, unknown> | undefined;
|
|
1852
2210
|
}>;
|
|
1853
2211
|
handler: (args: {
|