@apex-inc/mcp-server 0.75.0 → 0.79.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.
Files changed (86) hide show
  1. package/README.md +8 -0
  2. package/dist/api-client.d.ts +13 -21
  3. package/dist/api-client.d.ts.map +1 -1
  4. package/dist/api-client.js +203 -61
  5. package/dist/api-client.js.map +1 -1
  6. package/dist/auth.d.ts.map +1 -1
  7. package/dist/auth.js +7 -6
  8. package/dist/auth.js.map +1 -1
  9. package/dist/fetch-timeout.d.ts +23 -0
  10. package/dist/fetch-timeout.d.ts.map +1 -0
  11. package/dist/fetch-timeout.js +78 -0
  12. package/dist/fetch-timeout.js.map +1 -0
  13. package/dist/hosted.d.ts +34 -0
  14. package/dist/hosted.d.ts.map +1 -0
  15. package/dist/hosted.js +74 -0
  16. package/dist/hosted.js.map +1 -0
  17. package/dist/index.js +49 -117
  18. package/dist/index.js.map +1 -1
  19. package/dist/letter-blocks.d.ts.map +1 -1
  20. package/dist/letter-blocks.js +13 -22
  21. package/dist/letter-blocks.js.map +1 -1
  22. package/dist/live-test-files.d.ts +35 -0
  23. package/dist/live-test-files.d.ts.map +1 -0
  24. package/dist/live-test-files.js +114 -0
  25. package/dist/live-test-files.js.map +1 -0
  26. package/dist/live-test-guard.d.ts.map +1 -1
  27. package/dist/live-test-guard.js +7 -1
  28. package/dist/live-test-guard.js.map +1 -1
  29. package/dist/request-context.d.ts +40 -0
  30. package/dist/request-context.d.ts.map +1 -0
  31. package/dist/request-context.js +11 -0
  32. package/dist/request-context.js.map +1 -0
  33. package/dist/server-factory.d.ts +31 -0
  34. package/dist/server-factory.d.ts.map +1 -0
  35. package/dist/server-factory.js +585 -0
  36. package/dist/server-factory.js.map +1 -0
  37. package/dist/setup-catchup-tools.d.ts +4 -0
  38. package/dist/setup-catchup-tools.d.ts.map +1 -1
  39. package/dist/setup-catchup-tools.js +33 -67
  40. package/dist/setup-catchup-tools.js.map +1 -1
  41. package/dist/smoke-tools.d.ts.map +1 -1
  42. package/dist/smoke-tools.js +2 -0
  43. package/dist/smoke-tools.js.map +1 -1
  44. package/dist/tool-catalog.d.ts +2 -0
  45. package/dist/tool-catalog.d.ts.map +1 -1
  46. package/dist/tool-catalog.js +6 -1
  47. package/dist/tool-catalog.js.map +1 -1
  48. package/dist/tool-groups.d.ts.map +1 -1
  49. package/dist/tool-groups.js +12 -0
  50. package/dist/tool-groups.js.map +1 -1
  51. package/dist/tool-mode.d.ts +48 -0
  52. package/dist/tool-mode.d.ts.map +1 -0
  53. package/dist/tool-mode.js +189 -0
  54. package/dist/tool-mode.js.map +1 -0
  55. package/dist/tool-shared.d.ts +9 -1
  56. package/dist/tool-shared.d.ts.map +1 -1
  57. package/dist/tool-shared.js +52 -6
  58. package/dist/tool-shared.js.map +1 -1
  59. package/dist/tools/adoption.d.ts.map +1 -1
  60. package/dist/tools/adoption.js +2 -1
  61. package/dist/tools/adoption.js.map +1 -1
  62. package/dist/tools/apex-campaigns.d.ts +394 -0
  63. package/dist/tools/apex-campaigns.d.ts.map +1 -1
  64. package/dist/tools/apex-campaigns.js +256 -1
  65. package/dist/tools/apex-campaigns.js.map +1 -1
  66. package/dist/tools/context.d.ts +2 -2
  67. package/dist/tools/experiments.d.ts +69 -1
  68. package/dist/tools/experiments.d.ts.map +1 -1
  69. package/dist/tools/experiments.js +140 -76
  70. package/dist/tools/experiments.js.map +1 -1
  71. package/dist/tools/letters.d.ts +214 -48
  72. package/dist/tools/letters.d.ts.map +1 -1
  73. package/dist/tools/letters.js +240 -44
  74. package/dist/tools/letters.js.map +1 -1
  75. package/dist/tools/measurement.d.ts +70 -28
  76. package/dist/tools/measurement.d.ts.map +1 -1
  77. package/dist/tools/measurement.js +165 -27
  78. package/dist/tools/measurement.js.map +1 -1
  79. package/dist/tools.d.ts +774 -76
  80. package/dist/tools.d.ts.map +1 -1
  81. package/package.json +11 -1
  82. package/skills/apex-growth-intelligence/SKILL.md +4 -0
  83. package/skills/apex-growth-tracking/SKILL.md +1 -1
  84. package/skills/apex-integration-cookbook/SKILL.md +23 -3
  85. package/skills/apex-setup/SKILL.md +2 -1
  86. package/skills/apex-spec/SKILL.md +6 -1
@@ -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<{
@@ -944,6 +988,8 @@ export declare const letterTools: {
944
988
  schema: z.ZodObject<{
945
989
  fromKeyEventId: z.ZodString;
946
990
  toKeyEventId: z.ZodString;
991
+ mode: z.ZodOptional<z.ZodEnum<["starter_sequence", "template", "blank"]>>;
992
+ templateId: z.ZodOptional<z.ZodString>;
947
993
  name: z.ZodOptional<z.ZodString>;
948
994
  description: z.ZodOptional<z.ZodString>;
949
995
  attributionWindowDays: z.ZodOptional<z.ZodNumber>;
@@ -951,21 +997,27 @@ export declare const letterTools: {
951
997
  }, "strip", z.ZodTypeAny, {
952
998
  fromKeyEventId: string;
953
999
  toKeyEventId: string;
1000
+ mode?: "starter_sequence" | "template" | "blank" | undefined;
954
1001
  name?: string | undefined;
955
1002
  attributionWindowDays?: number | undefined;
956
1003
  description?: string | undefined;
1004
+ templateId?: string | undefined;
957
1005
  audienceBucket?: "production" | "beta" | "dev" | undefined;
958
1006
  }, {
959
1007
  fromKeyEventId: string;
960
1008
  toKeyEventId: string;
1009
+ mode?: "starter_sequence" | "template" | "blank" | undefined;
961
1010
  name?: string | undefined;
962
1011
  attributionWindowDays?: number | undefined;
963
1012
  description?: string | undefined;
1013
+ templateId?: string | undefined;
964
1014
  audienceBucket?: "production" | "beta" | "dev" | undefined;
965
1015
  }>;
966
- handler: ({ fromKeyEventId, toKeyEventId, name, description, attributionWindowDays, audienceBucket, }: {
1016
+ handler: ({ fromKeyEventId, toKeyEventId, mode, templateId, name, description, attributionWindowDays, audienceBucket, }: {
967
1017
  fromKeyEventId: string;
968
1018
  toKeyEventId: string;
1019
+ mode?: "starter_sequence" | "template" | "blank";
1020
+ templateId?: string;
969
1021
  name?: string;
970
1022
  description?: string;
971
1023
  attributionWindowDays?: number;
@@ -983,6 +1035,58 @@ export declare const letterTools: {
983
1035
  }[];
984
1036
  }>;
985
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
+ };
986
1090
  list_trigger_contracts: {
987
1091
  description: string;
988
1092
  schema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -1139,7 +1243,7 @@ export declare const letterTools: {
1139
1243
  key_event_id: z.ZodOptional<z.ZodString>;
1140
1244
  scope: z.ZodOptional<z.ZodEnum<["person", "account"]>>;
1141
1245
  field_path: z.ZodOptional<z.ZodString>;
1142
- 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"]>>;
1143
1247
  value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>>;
1144
1248
  event_name: z.ZodOptional<z.ZodString>;
1145
1249
  window_days: z.ZodOptional<z.ZodNumber>;
@@ -1147,7 +1251,7 @@ export declare const letterTools: {
1147
1251
  }, "strip", z.ZodTypeAny, {
1148
1252
  kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
1149
1253
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1150
- operator?: "equals" | "not_equals" | "exists" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
1254
+ operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
1151
1255
  event_name?: string | undefined;
1152
1256
  key_event_id?: string | undefined;
1153
1257
  field_path?: string | undefined;
@@ -1157,7 +1261,7 @@ export declare const letterTools: {
1157
1261
  }, {
1158
1262
  kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
1159
1263
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1160
- operator?: "equals" | "not_equals" | "exists" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
1264
+ operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
1161
1265
  event_name?: string | undefined;
1162
1266
  key_event_id?: string | undefined;
1163
1267
  field_path?: string | undefined;
@@ -1172,7 +1276,7 @@ export declare const letterTools: {
1172
1276
  condition: {
1173
1277
  kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
1174
1278
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1175
- operator?: "equals" | "not_equals" | "exists" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
1279
+ operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
1176
1280
  event_name?: string | undefined;
1177
1281
  key_event_id?: string | undefined;
1178
1282
  field_path?: string | undefined;
@@ -1189,7 +1293,7 @@ export declare const letterTools: {
1189
1293
  condition: {
1190
1294
  kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
1191
1295
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1192
- operator?: "equals" | "not_equals" | "exists" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
1296
+ operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
1193
1297
  event_name?: string | undefined;
1194
1298
  key_event_id?: string | undefined;
1195
1299
  field_path?: string | undefined;
@@ -1641,14 +1745,14 @@ export declare const letterTools: {
1641
1745
  event: z.ZodOptional<z.ZodString>;
1642
1746
  where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1643
1747
  field_path: z.ZodString;
1644
- operator: z.ZodEnum<["equals", "not_equals", "in", "exists", "not_exists"]>;
1748
+ operator: z.ZodEnum<["equals", "not_equals", "in", "contains", "gt", "gte", "lt", "lte", "exists", "not_exists"]>;
1645
1749
  value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>>;
1646
1750
  }, "strip", z.ZodTypeAny, {
1647
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1751
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1648
1752
  field_path: string;
1649
1753
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1650
1754
  }, {
1651
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1755
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1652
1756
  field_path: string;
1653
1757
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1654
1758
  }>, "many">>;
@@ -1657,15 +1761,22 @@ export declare const letterTools: {
1657
1761
  scope: z.ZodOptional<z.ZodEnum<["person", "account"]>>;
1658
1762
  window_days: z.ZodOptional<z.ZodNumber>;
1659
1763
  attribute: z.ZodOptional<z.ZodString>;
1660
- op: z.ZodOptional<z.ZodEnum<["is", "is_not", "exists"]>>;
1764
+ op: z.ZodOptional<z.ZodEnum<["is", "is_not", "contains", "exists"]>>;
1661
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
+ }>]>>;
1662
1773
  }, "strip", z.ZodTypeAny, {
1663
1774
  event?: string | undefined;
1664
1775
  value?: string | number | boolean | undefined;
1665
1776
  key_event_id?: string | undefined;
1666
1777
  verb?: "has" | "hasnt" | undefined;
1667
1778
  where?: {
1668
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1779
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1669
1780
  field_path: string;
1670
1781
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1671
1782
  }[] | undefined;
@@ -1673,14 +1784,17 @@ export declare const letterTools: {
1673
1784
  scope?: "account" | "person" | undefined;
1674
1785
  window_days?: number | undefined;
1675
1786
  attribute?: string | undefined;
1676
- op?: "exists" | "is" | "is_not" | undefined;
1787
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
1788
+ brought_by_campaign?: string | {
1789
+ campaign_id: string;
1790
+ } | undefined;
1677
1791
  }, {
1678
1792
  event?: string | undefined;
1679
1793
  value?: string | number | boolean | undefined;
1680
1794
  key_event_id?: string | undefined;
1681
1795
  verb?: "has" | "hasnt" | undefined;
1682
1796
  where?: {
1683
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1797
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1684
1798
  field_path: string;
1685
1799
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1686
1800
  }[] | undefined;
@@ -1688,7 +1802,10 @@ export declare const letterTools: {
1688
1802
  scope?: "account" | "person" | undefined;
1689
1803
  window_days?: number | undefined;
1690
1804
  attribute?: string | undefined;
1691
- op?: "exists" | "is" | "is_not" | undefined;
1805
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
1806
+ brought_by_campaign?: string | {
1807
+ campaign_id: string;
1808
+ } | undefined;
1692
1809
  }>, "many">;
1693
1810
  }, "strip", z.ZodTypeAny, {
1694
1811
  match: "all" | "any";
@@ -1698,7 +1815,7 @@ export declare const letterTools: {
1698
1815
  key_event_id?: string | undefined;
1699
1816
  verb?: "has" | "hasnt" | undefined;
1700
1817
  where?: {
1701
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1818
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1702
1819
  field_path: string;
1703
1820
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1704
1821
  }[] | undefined;
@@ -1706,7 +1823,10 @@ export declare const letterTools: {
1706
1823
  scope?: "account" | "person" | undefined;
1707
1824
  window_days?: number | undefined;
1708
1825
  attribute?: string | undefined;
1709
- op?: "exists" | "is" | "is_not" | undefined;
1826
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
1827
+ brought_by_campaign?: string | {
1828
+ campaign_id: string;
1829
+ } | undefined;
1710
1830
  }[];
1711
1831
  }, {
1712
1832
  match: "all" | "any";
@@ -1716,7 +1836,7 @@ export declare const letterTools: {
1716
1836
  key_event_id?: string | undefined;
1717
1837
  verb?: "has" | "hasnt" | undefined;
1718
1838
  where?: {
1719
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1839
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1720
1840
  field_path: string;
1721
1841
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1722
1842
  }[] | undefined;
@@ -1724,7 +1844,10 @@ export declare const letterTools: {
1724
1844
  scope?: "account" | "person" | undefined;
1725
1845
  window_days?: number | undefined;
1726
1846
  attribute?: string | undefined;
1727
- op?: "exists" | "is" | "is_not" | undefined;
1847
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
1848
+ brought_by_campaign?: string | {
1849
+ campaign_id: string;
1850
+ } | undefined;
1728
1851
  }[];
1729
1852
  }>, "many">;
1730
1853
  }, "strip", z.ZodTypeAny, {
@@ -1737,7 +1860,7 @@ export declare const letterTools: {
1737
1860
  key_event_id?: string | undefined;
1738
1861
  verb?: "has" | "hasnt" | undefined;
1739
1862
  where?: {
1740
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1863
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1741
1864
  field_path: string;
1742
1865
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1743
1866
  }[] | undefined;
@@ -1745,7 +1868,10 @@ export declare const letterTools: {
1745
1868
  scope?: "account" | "person" | undefined;
1746
1869
  window_days?: number | undefined;
1747
1870
  attribute?: string | undefined;
1748
- op?: "exists" | "is" | "is_not" | undefined;
1871
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
1872
+ brought_by_campaign?: string | {
1873
+ campaign_id: string;
1874
+ } | undefined;
1749
1875
  }[];
1750
1876
  }[];
1751
1877
  }, {
@@ -1758,7 +1884,7 @@ export declare const letterTools: {
1758
1884
  key_event_id?: string | undefined;
1759
1885
  verb?: "has" | "hasnt" | undefined;
1760
1886
  where?: {
1761
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1887
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1762
1888
  field_path: string;
1763
1889
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1764
1890
  }[] | undefined;
@@ -1766,7 +1892,10 @@ export declare const letterTools: {
1766
1892
  scope?: "account" | "person" | undefined;
1767
1893
  window_days?: number | undefined;
1768
1894
  attribute?: string | undefined;
1769
- op?: "exists" | "is" | "is_not" | undefined;
1895
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
1896
+ brought_by_campaign?: string | {
1897
+ campaign_id: string;
1898
+ } | undefined;
1770
1899
  }[];
1771
1900
  }[];
1772
1901
  }>>;
@@ -1784,7 +1913,7 @@ export declare const letterTools: {
1784
1913
  key_event_id?: string | undefined;
1785
1914
  verb?: "has" | "hasnt" | undefined;
1786
1915
  where?: {
1787
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1916
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1788
1917
  field_path: string;
1789
1918
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1790
1919
  }[] | undefined;
@@ -1792,7 +1921,10 @@ export declare const letterTools: {
1792
1921
  scope?: "account" | "person" | undefined;
1793
1922
  window_days?: number | undefined;
1794
1923
  attribute?: string | undefined;
1795
- op?: "exists" | "is" | "is_not" | undefined;
1924
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
1925
+ brought_by_campaign?: string | {
1926
+ campaign_id: string;
1927
+ } | undefined;
1796
1928
  }[];
1797
1929
  }[];
1798
1930
  } | undefined;
@@ -1811,7 +1943,7 @@ export declare const letterTools: {
1811
1943
  key_event_id?: string | undefined;
1812
1944
  verb?: "has" | "hasnt" | undefined;
1813
1945
  where?: {
1814
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1946
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1815
1947
  field_path: string;
1816
1948
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1817
1949
  }[] | undefined;
@@ -1819,7 +1951,10 @@ export declare const letterTools: {
1819
1951
  scope?: "account" | "person" | undefined;
1820
1952
  window_days?: number | undefined;
1821
1953
  attribute?: string | undefined;
1822
- op?: "exists" | "is" | "is_not" | undefined;
1954
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
1955
+ brought_by_campaign?: string | {
1956
+ campaign_id: string;
1957
+ } | undefined;
1823
1958
  }[];
1824
1959
  }[];
1825
1960
  } | undefined;
@@ -1855,14 +1990,14 @@ export declare const letterTools: {
1855
1990
  event: z.ZodOptional<z.ZodString>;
1856
1991
  where: z.ZodOptional<z.ZodArray<z.ZodObject<{
1857
1992
  field_path: z.ZodString;
1858
- operator: z.ZodEnum<["equals", "not_equals", "in", "exists", "not_exists"]>;
1993
+ operator: z.ZodEnum<["equals", "not_equals", "in", "contains", "gt", "gte", "lt", "lte", "exists", "not_exists"]>;
1859
1994
  value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>, "many">]>>;
1860
1995
  }, "strip", z.ZodTypeAny, {
1861
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
1996
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1862
1997
  field_path: string;
1863
1998
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1864
1999
  }, {
1865
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2000
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1866
2001
  field_path: string;
1867
2002
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1868
2003
  }>, "many">>;
@@ -1871,15 +2006,22 @@ export declare const letterTools: {
1871
2006
  scope: z.ZodOptional<z.ZodEnum<["person", "account"]>>;
1872
2007
  window_days: z.ZodOptional<z.ZodNumber>;
1873
2008
  attribute: z.ZodOptional<z.ZodString>;
1874
- op: z.ZodOptional<z.ZodEnum<["is", "is_not", "exists"]>>;
2009
+ op: z.ZodOptional<z.ZodEnum<["is", "is_not", "contains", "exists"]>>;
1875
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
+ }>]>>;
1876
2018
  }, "strip", z.ZodTypeAny, {
1877
2019
  event?: string | undefined;
1878
2020
  value?: string | number | boolean | undefined;
1879
2021
  key_event_id?: string | undefined;
1880
2022
  verb?: "has" | "hasnt" | undefined;
1881
2023
  where?: {
1882
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2024
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1883
2025
  field_path: string;
1884
2026
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1885
2027
  }[] | undefined;
@@ -1887,14 +2029,17 @@ export declare const letterTools: {
1887
2029
  scope?: "account" | "person" | undefined;
1888
2030
  window_days?: number | undefined;
1889
2031
  attribute?: string | undefined;
1890
- op?: "exists" | "is" | "is_not" | undefined;
2032
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
2033
+ brought_by_campaign?: string | {
2034
+ campaign_id: string;
2035
+ } | undefined;
1891
2036
  }, {
1892
2037
  event?: string | undefined;
1893
2038
  value?: string | number | boolean | undefined;
1894
2039
  key_event_id?: string | undefined;
1895
2040
  verb?: "has" | "hasnt" | undefined;
1896
2041
  where?: {
1897
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2042
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1898
2043
  field_path: string;
1899
2044
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1900
2045
  }[] | undefined;
@@ -1902,7 +2047,10 @@ export declare const letterTools: {
1902
2047
  scope?: "account" | "person" | undefined;
1903
2048
  window_days?: number | undefined;
1904
2049
  attribute?: string | undefined;
1905
- op?: "exists" | "is" | "is_not" | undefined;
2050
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
2051
+ brought_by_campaign?: string | {
2052
+ campaign_id: string;
2053
+ } | undefined;
1906
2054
  }>, "many">;
1907
2055
  }, "strip", z.ZodTypeAny, {
1908
2056
  match: "all" | "any";
@@ -1912,7 +2060,7 @@ export declare const letterTools: {
1912
2060
  key_event_id?: string | undefined;
1913
2061
  verb?: "has" | "hasnt" | undefined;
1914
2062
  where?: {
1915
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2063
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1916
2064
  field_path: string;
1917
2065
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1918
2066
  }[] | undefined;
@@ -1920,7 +2068,10 @@ export declare const letterTools: {
1920
2068
  scope?: "account" | "person" | undefined;
1921
2069
  window_days?: number | undefined;
1922
2070
  attribute?: string | undefined;
1923
- op?: "exists" | "is" | "is_not" | undefined;
2071
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
2072
+ brought_by_campaign?: string | {
2073
+ campaign_id: string;
2074
+ } | undefined;
1924
2075
  }[];
1925
2076
  }, {
1926
2077
  match: "all" | "any";
@@ -1930,7 +2081,7 @@ export declare const letterTools: {
1930
2081
  key_event_id?: string | undefined;
1931
2082
  verb?: "has" | "hasnt" | undefined;
1932
2083
  where?: {
1933
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2084
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1934
2085
  field_path: string;
1935
2086
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1936
2087
  }[] | undefined;
@@ -1938,7 +2089,10 @@ export declare const letterTools: {
1938
2089
  scope?: "account" | "person" | undefined;
1939
2090
  window_days?: number | undefined;
1940
2091
  attribute?: string | undefined;
1941
- op?: "exists" | "is" | "is_not" | undefined;
2092
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
2093
+ brought_by_campaign?: string | {
2094
+ campaign_id: string;
2095
+ } | undefined;
1942
2096
  }[];
1943
2097
  }>, "many">;
1944
2098
  }, "strip", z.ZodTypeAny, {
@@ -1951,7 +2105,7 @@ export declare const letterTools: {
1951
2105
  key_event_id?: string | undefined;
1952
2106
  verb?: "has" | "hasnt" | undefined;
1953
2107
  where?: {
1954
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2108
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1955
2109
  field_path: string;
1956
2110
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1957
2111
  }[] | undefined;
@@ -1959,7 +2113,10 @@ export declare const letterTools: {
1959
2113
  scope?: "account" | "person" | undefined;
1960
2114
  window_days?: number | undefined;
1961
2115
  attribute?: string | undefined;
1962
- op?: "exists" | "is" | "is_not" | undefined;
2116
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
2117
+ brought_by_campaign?: string | {
2118
+ campaign_id: string;
2119
+ } | undefined;
1963
2120
  }[];
1964
2121
  }[];
1965
2122
  }, {
@@ -1972,7 +2129,7 @@ export declare const letterTools: {
1972
2129
  key_event_id?: string | undefined;
1973
2130
  verb?: "has" | "hasnt" | undefined;
1974
2131
  where?: {
1975
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2132
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
1976
2133
  field_path: string;
1977
2134
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
1978
2135
  }[] | undefined;
@@ -1980,7 +2137,10 @@ export declare const letterTools: {
1980
2137
  scope?: "account" | "person" | undefined;
1981
2138
  window_days?: number | undefined;
1982
2139
  attribute?: string | undefined;
1983
- op?: "exists" | "is" | "is_not" | undefined;
2140
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
2141
+ brought_by_campaign?: string | {
2142
+ campaign_id: string;
2143
+ } | undefined;
1984
2144
  }[];
1985
2145
  }[];
1986
2146
  }>>;
@@ -1999,7 +2159,7 @@ export declare const letterTools: {
1999
2159
  key_event_id?: string | undefined;
2000
2160
  verb?: "has" | "hasnt" | undefined;
2001
2161
  where?: {
2002
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2162
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
2003
2163
  field_path: string;
2004
2164
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
2005
2165
  }[] | undefined;
@@ -2007,7 +2167,10 @@ export declare const letterTools: {
2007
2167
  scope?: "account" | "person" | undefined;
2008
2168
  window_days?: number | undefined;
2009
2169
  attribute?: string | undefined;
2010
- op?: "exists" | "is" | "is_not" | undefined;
2170
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
2171
+ brought_by_campaign?: string | {
2172
+ campaign_id: string;
2173
+ } | undefined;
2011
2174
  }[];
2012
2175
  }[];
2013
2176
  } | undefined;
@@ -2027,7 +2190,7 @@ export declare const letterTools: {
2027
2190
  key_event_id?: string | undefined;
2028
2191
  verb?: "has" | "hasnt" | undefined;
2029
2192
  where?: {
2030
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2193
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
2031
2194
  field_path: string;
2032
2195
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
2033
2196
  }[] | undefined;
@@ -2035,7 +2198,10 @@ export declare const letterTools: {
2035
2198
  scope?: "account" | "person" | undefined;
2036
2199
  window_days?: number | undefined;
2037
2200
  attribute?: string | undefined;
2038
- op?: "exists" | "is" | "is_not" | undefined;
2201
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
2202
+ brought_by_campaign?: string | {
2203
+ campaign_id: string;
2204
+ } | undefined;
2039
2205
  }[];
2040
2206
  }[];
2041
2207
  } | undefined;