@apex-inc/mcp-server 0.65.0 → 0.68.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 (48) hide show
  1. package/dist/api-client.d.ts +2 -0
  2. package/dist/api-client.d.ts.map +1 -1
  3. package/dist/api-client.js +11 -0
  4. package/dist/api-client.js.map +1 -1
  5. package/dist/letter-blocks.d.ts +15 -3
  6. package/dist/letter-blocks.d.ts.map +1 -1
  7. package/dist/letter-blocks.js +28 -1
  8. package/dist/letter-blocks.js.map +1 -1
  9. package/dist/setup-catchup-tools.d.ts +130 -4
  10. package/dist/setup-catchup-tools.d.ts.map +1 -1
  11. package/dist/setup-catchup-tools.js +205 -14
  12. package/dist/setup-catchup-tools.js.map +1 -1
  13. package/dist/tool-groups.d.ts.map +1 -1
  14. package/dist/tool-groups.js +8 -1
  15. package/dist/tool-groups.js.map +1 -1
  16. package/dist/tool-shared.d.ts +10 -2
  17. package/dist/tool-shared.d.ts.map +1 -1
  18. package/dist/tool-shared.js +36 -2
  19. package/dist/tool-shared.js.map +1 -1
  20. package/dist/tools/ad-platforms.d.ts +24 -16
  21. package/dist/tools/ad-platforms.d.ts.map +1 -1
  22. package/dist/tools/ad-platforms.js +54 -11
  23. package/dist/tools/ad-platforms.js.map +1 -1
  24. package/dist/tools/apex-campaigns.d.ts +2 -2
  25. package/dist/tools/context.d.ts +48 -8
  26. package/dist/tools/context.d.ts.map +1 -1
  27. package/dist/tools/context.js +114 -35
  28. package/dist/tools/context.js.map +1 -1
  29. package/dist/tools/experiments.d.ts.map +1 -1
  30. package/dist/tools/experiments.js +31 -14
  31. package/dist/tools/experiments.js.map +1 -1
  32. package/dist/tools/letters.d.ts +115 -26
  33. package/dist/tools/letters.d.ts.map +1 -1
  34. package/dist/tools/letters.js +243 -24
  35. package/dist/tools/letters.js.map +1 -1
  36. package/dist/tools/measurement.d.ts +150 -7
  37. package/dist/tools/measurement.d.ts.map +1 -1
  38. package/dist/tools/measurement.js +270 -34
  39. package/dist/tools/measurement.js.map +1 -1
  40. package/dist/tools/partners.d.ts +27 -4
  41. package/dist/tools/partners.d.ts.map +1 -1
  42. package/dist/tools/partners.js +74 -6
  43. package/dist/tools/partners.js.map +1 -1
  44. package/dist/tools.d.ts +503 -67
  45. package/dist/tools.d.ts.map +1 -1
  46. package/package.json +1 -1
  47. package/skills/apex-communications/SKILL.md +4 -3
  48. package/skills/apex-integration-cookbook/SKILL.md +25 -0
package/dist/tools.d.ts CHANGED
@@ -260,6 +260,18 @@ export declare const toolDefinitions: {
260
260
  } & {
261
261
  group: ToolGroup;
262
262
  };
263
+ get_consent_posture: {
264
+ description: string;
265
+ schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
266
+ handler: () => Promise<{
267
+ content: {
268
+ type: "text";
269
+ text: string;
270
+ }[];
271
+ }>;
272
+ } & {
273
+ group: ToolGroup;
274
+ };
263
275
  set_consent_posture: {
264
276
  description: string;
265
277
  schema: import("zod").ZodObject<{
@@ -430,6 +442,28 @@ export declare const toolDefinitions: {
430
442
  mobile_push: number;
431
443
  };
432
444
  }>>;
445
+ quietHours: import("zod").ZodOptional<import("zod").ZodObject<{
446
+ enabled: import("zod").ZodBoolean;
447
+ start_hour: import("zod").ZodOptional<import("zod").ZodNumber>;
448
+ end_hour: import("zod").ZodOptional<import("zod").ZodNumber>;
449
+ timezone: import("zod").ZodOptional<import("zod").ZodString>;
450
+ use_recipient_timezone: import("zod").ZodOptional<import("zod").ZodBoolean>;
451
+ channels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["email", "in_app", "mobile_push"]>, "many">>;
452
+ }, "strip", import("zod").ZodTypeAny, {
453
+ enabled: boolean;
454
+ channels?: ("email" | "in_app" | "mobile_push")[] | undefined;
455
+ start_hour?: number | undefined;
456
+ end_hour?: number | undefined;
457
+ timezone?: string | undefined;
458
+ use_recipient_timezone?: boolean | undefined;
459
+ }, {
460
+ enabled: boolean;
461
+ channels?: ("email" | "in_app" | "mobile_push")[] | undefined;
462
+ start_hour?: number | undefined;
463
+ end_hour?: number | undefined;
464
+ timezone?: string | undefined;
465
+ use_recipient_timezone?: boolean | undefined;
466
+ }>>;
433
467
  }, "strip", import("zod").ZodTypeAny, {
434
468
  resetToDefaults?: boolean | undefined;
435
469
  holdoutPct?: number | undefined;
@@ -448,6 +482,14 @@ export declare const toolDefinitions: {
448
482
  mobile_push: number;
449
483
  };
450
484
  } | undefined;
485
+ quietHours?: {
486
+ enabled: boolean;
487
+ channels?: ("email" | "in_app" | "mobile_push")[] | undefined;
488
+ start_hour?: number | undefined;
489
+ end_hour?: number | undefined;
490
+ timezone?: string | undefined;
491
+ use_recipient_timezone?: boolean | undefined;
492
+ } | undefined;
451
493
  }, {
452
494
  resetToDefaults?: boolean | undefined;
453
495
  holdoutPct?: number | undefined;
@@ -466,6 +508,14 @@ export declare const toolDefinitions: {
466
508
  mobile_push: number;
467
509
  };
468
510
  } | undefined;
511
+ quietHours?: {
512
+ enabled: boolean;
513
+ channels?: ("email" | "in_app" | "mobile_push")[] | undefined;
514
+ start_hour?: number | undefined;
515
+ end_hour?: number | undefined;
516
+ timezone?: string | undefined;
517
+ use_recipient_timezone?: boolean | undefined;
518
+ } | undefined;
469
519
  }>;
470
520
  handler: (args: {
471
521
  resetToDefaults?: boolean;
@@ -485,6 +535,14 @@ export declare const toolDefinitions: {
485
535
  mobile_push: number;
486
536
  };
487
537
  };
538
+ quietHours?: {
539
+ enabled: boolean;
540
+ start_hour?: number;
541
+ end_hour?: number;
542
+ timezone?: string;
543
+ use_recipient_timezone?: boolean;
544
+ channels?: Array<"email" | "in_app" | "mobile_push">;
545
+ };
488
546
  }) => Promise<{
489
547
  content: {
490
548
  type: "text";
@@ -830,8 +888,10 @@ export declare const toolDefinitions: {
830
888
  set_app_platforms: {
831
889
  description: string;
832
890
  schema: import("zod").ZodObject<{
833
- platforms: import("zod").ZodArray<import("zod").ZodEnum<["ios", "android", "web"]>, "many">;
891
+ platforms: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["ios", "android", "web"]>, "many">>;
834
892
  outcome: import("zod").ZodOptional<import("zod").ZodEnum<["behavior", "ad-roi", "partners"]>>;
893
+ appStoreId: import("zod").ZodOptional<import("zod").ZodString>;
894
+ playStoreUrl: import("zod").ZodOptional<import("zod").ZodString>;
835
895
  attributionWindows: import("zod").ZodOptional<import("zod").ZodObject<{
836
896
  click_through: import("zod").ZodOptional<import("zod").ZodNumber>;
837
897
  view_through: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -849,8 +909,10 @@ export declare const toolDefinitions: {
849
909
  reengagement?: number | undefined;
850
910
  }>>;
851
911
  }, "strip", import("zod").ZodTypeAny, {
852
- platforms: ("ios" | "android" | "web")[];
912
+ platforms?: ("ios" | "android" | "web")[] | undefined;
853
913
  outcome?: "behavior" | "ad-roi" | "partners" | undefined;
914
+ appStoreId?: string | undefined;
915
+ playStoreUrl?: string | undefined;
854
916
  attributionWindows?: {
855
917
  click_through?: number | undefined;
856
918
  view_through?: number | undefined;
@@ -858,8 +920,10 @@ export declare const toolDefinitions: {
858
920
  reengagement?: number | undefined;
859
921
  } | undefined;
860
922
  }, {
861
- platforms: ("ios" | "android" | "web")[];
923
+ platforms?: ("ios" | "android" | "web")[] | undefined;
862
924
  outcome?: "behavior" | "ad-roi" | "partners" | undefined;
925
+ appStoreId?: string | undefined;
926
+ playStoreUrl?: string | undefined;
863
927
  attributionWindows?: {
864
928
  click_through?: number | undefined;
865
929
  view_through?: number | undefined;
@@ -868,8 +932,10 @@ export declare const toolDefinitions: {
868
932
  } | undefined;
869
933
  }>;
870
934
  handler: (args: {
871
- platforms: Array<"ios" | "android" | "web">;
935
+ platforms?: Array<"ios" | "android" | "web">;
872
936
  outcome?: "behavior" | "ad-roi" | "partners";
937
+ appStoreId?: string;
938
+ playStoreUrl?: string;
873
939
  attributionWindows?: {
874
940
  click_through?: number;
875
941
  view_through?: number;
@@ -1007,50 +1073,62 @@ export declare const toolDefinitions: {
1007
1073
  ios: import("zod").ZodOptional<import("zod").ZodObject<{
1008
1074
  bundle_id: import("zod").ZodString;
1009
1075
  team_id: import("zod").ZodString;
1076
+ app_store_id: import("zod").ZodOptional<import("zod").ZodString>;
1010
1077
  }, "strip", import("zod").ZodTypeAny, {
1011
1078
  bundle_id: string;
1012
1079
  team_id: string;
1080
+ app_store_id?: string | undefined;
1013
1081
  }, {
1014
1082
  bundle_id: string;
1015
1083
  team_id: string;
1084
+ app_store_id?: string | undefined;
1016
1085
  }>>;
1017
1086
  android: import("zod").ZodOptional<import("zod").ZodObject<{
1018
1087
  package_name: import("zod").ZodString;
1019
1088
  sha256_cert_fingerprint: import("zod").ZodString;
1089
+ play_store_url: import("zod").ZodOptional<import("zod").ZodString>;
1020
1090
  }, "strip", import("zod").ZodTypeAny, {
1021
1091
  package_name: string;
1022
1092
  sha256_cert_fingerprint: string;
1093
+ play_store_url?: string | undefined;
1023
1094
  }, {
1024
1095
  package_name: string;
1025
1096
  sha256_cert_fingerprint: string;
1097
+ play_store_url?: string | undefined;
1026
1098
  }>>;
1027
1099
  }, "strip", import("zod").ZodTypeAny, {
1028
1100
  ios?: {
1029
1101
  bundle_id: string;
1030
1102
  team_id: string;
1103
+ app_store_id?: string | undefined;
1031
1104
  } | undefined;
1032
1105
  android?: {
1033
1106
  package_name: string;
1034
1107
  sha256_cert_fingerprint: string;
1108
+ play_store_url?: string | undefined;
1035
1109
  } | undefined;
1036
1110
  }, {
1037
1111
  ios?: {
1038
1112
  bundle_id: string;
1039
1113
  team_id: string;
1114
+ app_store_id?: string | undefined;
1040
1115
  } | undefined;
1041
1116
  android?: {
1042
1117
  package_name: string;
1043
1118
  sha256_cert_fingerprint: string;
1119
+ play_store_url?: string | undefined;
1044
1120
  } | undefined;
1045
1121
  }>;
1046
1122
  handler: (args: {
1047
1123
  ios?: {
1048
1124
  bundle_id: string;
1049
1125
  team_id: string;
1126
+ app_store_id?: string;
1050
1127
  };
1051
1128
  android?: {
1052
1129
  package_name: string;
1053
1130
  sha256_cert_fingerprint: string;
1131
+ play_store_url?: string;
1054
1132
  };
1055
1133
  }) => Promise<{
1056
1134
  content: {
@@ -1281,6 +1359,9 @@ export declare const toolDefinitions: {
1281
1359
  description: string;
1282
1360
  schema: import("zod").ZodObject<{
1283
1361
  destinationUrl: import("zod").ZodString;
1362
+ iosUrl: import("zod").ZodOptional<import("zod").ZodString>;
1363
+ androidUrl: import("zod").ZodOptional<import("zod").ZodString>;
1364
+ storeRouting: import("zod").ZodOptional<import("zod").ZodBoolean>;
1284
1365
  placement: import("zod").ZodOptional<import("zod").ZodEnum<["paid-ad", "social-post", "social-bio", "other"]>>;
1285
1366
  platform: import("zod").ZodOptional<import("zod").ZodString>;
1286
1367
  source: import("zod").ZodOptional<import("zod").ZodString>;
@@ -1297,6 +1378,9 @@ export declare const toolDefinitions: {
1297
1378
  name?: string | undefined;
1298
1379
  platform?: string | undefined;
1299
1380
  slug?: string | undefined;
1381
+ iosUrl?: string | undefined;
1382
+ androidUrl?: string | undefined;
1383
+ storeRouting?: boolean | undefined;
1300
1384
  placement?: "other" | "paid-ad" | "social-post" | "social-bio" | undefined;
1301
1385
  source?: string | undefined;
1302
1386
  campaignName?: string | undefined;
@@ -1310,6 +1394,9 @@ export declare const toolDefinitions: {
1310
1394
  name?: string | undefined;
1311
1395
  platform?: string | undefined;
1312
1396
  slug?: string | undefined;
1397
+ iosUrl?: string | undefined;
1398
+ androidUrl?: string | undefined;
1399
+ storeRouting?: boolean | undefined;
1313
1400
  placement?: "other" | "paid-ad" | "social-post" | "social-bio" | undefined;
1314
1401
  source?: string | undefined;
1315
1402
  campaignName?: string | undefined;
@@ -1322,6 +1409,9 @@ export declare const toolDefinitions: {
1322
1409
  handler: (args: {
1323
1410
  postUrl?: string;
1324
1411
  destinationUrl: string;
1412
+ iosUrl?: string;
1413
+ androidUrl?: string;
1414
+ storeRouting?: boolean;
1325
1415
  placement?: "other" | "paid-ad" | "social-post" | "social-bio";
1326
1416
  platform?: string;
1327
1417
  source?: string;
@@ -1341,6 +1431,46 @@ export declare const toolDefinitions: {
1341
1431
  } & {
1342
1432
  group: ToolGroup;
1343
1433
  };
1434
+ update_apex_link: {
1435
+ description: string;
1436
+ schema: import("zod").ZodObject<{
1437
+ slug: import("zod").ZodString;
1438
+ handle: import("zod").ZodOptional<import("zod").ZodString>;
1439
+ destinationUrl: import("zod").ZodOptional<import("zod").ZodString>;
1440
+ iosUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1441
+ androidUrl: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
1442
+ name: import("zod").ZodOptional<import("zod").ZodString>;
1443
+ }, "strip", import("zod").ZodTypeAny, {
1444
+ slug: string;
1445
+ name?: string | undefined;
1446
+ handle?: string | undefined;
1447
+ destinationUrl?: string | undefined;
1448
+ iosUrl?: string | null | undefined;
1449
+ androidUrl?: string | null | undefined;
1450
+ }, {
1451
+ slug: string;
1452
+ name?: string | undefined;
1453
+ handle?: string | undefined;
1454
+ destinationUrl?: string | undefined;
1455
+ iosUrl?: string | null | undefined;
1456
+ androidUrl?: string | null | undefined;
1457
+ }>;
1458
+ handler: (args: {
1459
+ slug: string;
1460
+ handle?: string;
1461
+ destinationUrl?: string;
1462
+ iosUrl?: string | null;
1463
+ androidUrl?: string | null;
1464
+ name?: string;
1465
+ }) => Promise<{
1466
+ content: {
1467
+ type: "text";
1468
+ text: string;
1469
+ }[];
1470
+ }>;
1471
+ } & {
1472
+ group: ToolGroup;
1473
+ };
1344
1474
  get_skan_schema: {
1345
1475
  description: string;
1346
1476
  schema: import("zod").ZodObject<{
@@ -1659,18 +1789,46 @@ export declare const toolDefinitions: {
1659
1789
  set_workspace_environments: {
1660
1790
  description: string;
1661
1791
  schema: import("zod").ZodObject<{
1662
- production_hosts: import("zod").ZodArray<import("zod").ZodString, "many">;
1792
+ production_hosts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1663
1793
  beta_hosts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
1794
+ store_rows: import("zod").ZodOptional<import("zod").ZodObject<{
1795
+ sideloaded: import("zod").ZodOptional<import("zod").ZodEnum<["production", "dev"]>>;
1796
+ }, "strip", import("zod").ZodTypeAny, {
1797
+ sideloaded?: "production" | "dev" | undefined;
1798
+ }, {
1799
+ sideloaded?: "production" | "dev" | undefined;
1800
+ }>>;
1801
+ sideloaded_audience: import("zod").ZodOptional<import("zod").ZodEnum<["production", "dev"]>>;
1802
+ app_store_id: import("zod").ZodOptional<import("zod").ZodString>;
1803
+ play_store_url: import("zod").ZodOptional<import("zod").ZodString>;
1664
1804
  }, "strip", import("zod").ZodTypeAny, {
1665
- production_hosts: string[];
1805
+ app_store_id?: string | undefined;
1806
+ play_store_url?: string | undefined;
1807
+ production_hosts?: string[] | undefined;
1666
1808
  beta_hosts?: string[] | undefined;
1809
+ store_rows?: {
1810
+ sideloaded?: "production" | "dev" | undefined;
1811
+ } | undefined;
1812
+ sideloaded_audience?: "production" | "dev" | undefined;
1667
1813
  }, {
1668
- production_hosts: string[];
1814
+ app_store_id?: string | undefined;
1815
+ play_store_url?: string | undefined;
1816
+ production_hosts?: string[] | undefined;
1669
1817
  beta_hosts?: string[] | undefined;
1818
+ store_rows?: {
1819
+ sideloaded?: "production" | "dev" | undefined;
1820
+ } | undefined;
1821
+ sideloaded_audience?: "production" | "dev" | undefined;
1670
1822
  }>;
1671
- handler: ({ production_hosts, beta_hosts, }: {
1672
- production_hosts: string[];
1823
+ handler: ({ production_hosts, beta_hosts, store_rows, sideloaded_audience, app_store_id, play_store_url, }: {
1824
+ production_hosts?: string[];
1673
1825
  beta_hosts?: string[];
1826
+ store_rows?: {
1827
+ sideloaded?: "production" | "dev";
1828
+ };
1829
+ sideloaded_audience?: "production" | "dev";
1830
+ app_store_id?: string;
1831
+ play_store_url?: string;
1674
1832
  }) => Promise<{
1675
1833
  content: {
1676
1834
  type: "text";
@@ -1702,8 +1860,16 @@ export declare const toolDefinitions: {
1702
1860
  };
1703
1861
  start_apex_login: {
1704
1862
  description: string;
1705
- schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
1706
- handler: () => Promise<{
1863
+ schema: import("zod").ZodObject<{
1864
+ state: import("zod").ZodOptional<import("zod").ZodString>;
1865
+ }, "strip", import("zod").ZodTypeAny, {
1866
+ state?: string | undefined;
1867
+ }, {
1868
+ state?: string | undefined;
1869
+ }>;
1870
+ handler: ({ state }?: {
1871
+ state?: string;
1872
+ }) => Promise<{
1707
1873
  content: {
1708
1874
  type: "text";
1709
1875
  text: string;
@@ -1729,16 +1895,20 @@ export declare const toolDefinitions: {
1729
1895
  schema: import("zod").ZodObject<{
1730
1896
  type: import("zod").ZodString;
1731
1897
  orgId: import("zod").ZodOptional<import("zod").ZodString>;
1898
+ state: import("zod").ZodOptional<import("zod").ZodString>;
1732
1899
  }, "strip", import("zod").ZodTypeAny, {
1733
1900
  type: string;
1734
1901
  orgId?: string | undefined;
1902
+ state?: string | undefined;
1735
1903
  }, {
1736
1904
  type: string;
1737
1905
  orgId?: string | undefined;
1906
+ state?: string | undefined;
1738
1907
  }>;
1739
- handler: ({ type, orgId }: {
1908
+ handler: ({ type, orgId, state, }: {
1740
1909
  type: string;
1741
1910
  orgId?: string;
1911
+ state?: string;
1742
1912
  }) => Promise<{
1743
1913
  content: {
1744
1914
  type: "text";
@@ -2503,19 +2673,19 @@ export declare const toolDefinitions: {
2503
2673
  is_primary?: boolean | undefined;
2504
2674
  }>, "many">;
2505
2675
  }, "strip", import("zod").ZodTypeAny, {
2676
+ campaignId: string;
2506
2677
  members: {
2507
2678
  platform: "meta-ads" | "google-ads" | "linkedin-ads" | "tiktok-ads" | "microsoft-ads" | "reddit-ads" | "snapchat-ads";
2508
2679
  platform_campaign_id: string;
2509
2680
  is_primary?: boolean | undefined;
2510
2681
  }[];
2511
- campaignId: string;
2512
2682
  }, {
2683
+ campaignId: string;
2513
2684
  members: {
2514
2685
  platform: "meta-ads" | "google-ads" | "linkedin-ads" | "tiktok-ads" | "microsoft-ads" | "reddit-ads" | "snapchat-ads";
2515
2686
  platform_campaign_id: string;
2516
2687
  is_primary?: boolean | undefined;
2517
2688
  }[];
2518
- campaignId: string;
2519
2689
  }>;
2520
2690
  handler: (args: {
2521
2691
  campaignId: string;
@@ -2693,18 +2863,22 @@ export declare const toolDefinitions: {
2693
2863
  preview_ad_platform_send: {
2694
2864
  description: string;
2695
2865
  schema: import("zod").ZodObject<{
2696
- event_name: import("zod").ZodString;
2697
- meaning: import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "signup", "subscription", "begin_checkout", "add_to_cart", "book_appointment", "request_quote", "contact", "something_else"]>;
2866
+ key_event_id: import("zod").ZodOptional<import("zod").ZodString>;
2867
+ event_name: import("zod").ZodOptional<import("zod").ZodString>;
2868
+ meaning: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "signup", "subscription", "begin_checkout", "add_to_cart", "book_appointment", "request_quote", "contact", "something_else"]>>;
2698
2869
  }, "strip", import("zod").ZodTypeAny, {
2699
- event_name: string;
2700
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2870
+ event_name?: string | undefined;
2871
+ key_event_id?: string | undefined;
2872
+ meaning?: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else" | undefined;
2701
2873
  }, {
2702
- event_name: string;
2703
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2874
+ event_name?: string | undefined;
2875
+ key_event_id?: string | undefined;
2876
+ meaning?: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else" | undefined;
2704
2877
  }>;
2705
2878
  handler: (args: {
2706
- event_name: string;
2707
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2879
+ key_event_id?: string;
2880
+ event_name?: string;
2881
+ meaning?: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2708
2882
  }) => Promise<{
2709
2883
  content: {
2710
2884
  type: "text";
@@ -2729,27 +2903,31 @@ export declare const toolDefinitions: {
2729
2903
  add_ad_platform_send: {
2730
2904
  description: string;
2731
2905
  schema: import("zod").ZodObject<{
2732
- event_name: import("zod").ZodString;
2733
- meaning: import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "signup", "subscription", "begin_checkout", "add_to_cart", "book_appointment", "request_quote", "contact", "something_else"]>;
2906
+ key_event_id: import("zod").ZodOptional<import("zod").ZodString>;
2907
+ event_name: import("zod").ZodOptional<import("zod").ZodString>;
2908
+ meaning: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "signup", "subscription", "begin_checkout", "add_to_cart", "book_appointment", "request_quote", "contact", "something_else"]>>;
2734
2909
  send_value: import("zod").ZodOptional<import("zod").ZodBoolean>;
2735
2910
  name: import("zod").ZodOptional<import("zod").ZodString>;
2736
2911
  confirm: import("zod").ZodLiteral<true>;
2737
2912
  }, "strip", import("zod").ZodTypeAny, {
2738
- event_name: string;
2739
2913
  confirm: true;
2740
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2741
2914
  name?: string | undefined;
2915
+ event_name?: string | undefined;
2916
+ key_event_id?: string | undefined;
2917
+ meaning?: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else" | undefined;
2742
2918
  send_value?: boolean | undefined;
2743
2919
  }, {
2744
- event_name: string;
2745
2920
  confirm: true;
2746
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2747
2921
  name?: string | undefined;
2922
+ event_name?: string | undefined;
2923
+ key_event_id?: string | undefined;
2924
+ meaning?: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else" | undefined;
2748
2925
  send_value?: boolean | undefined;
2749
2926
  }>;
2750
2927
  handler: (args: {
2751
- event_name: string;
2752
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2928
+ key_event_id?: string;
2929
+ event_name?: string;
2930
+ meaning?: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2753
2931
  send_value?: boolean;
2754
2932
  name?: string;
2755
2933
  confirm: true;
@@ -2984,8 +3162,16 @@ export declare const toolDefinitions: {
2984
3162
  };
2985
3163
  list_key_events: {
2986
3164
  description: string;
2987
- schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
2988
- handler: () => Promise<{
3165
+ schema: import("zod").ZodObject<{
3166
+ includeArchived: import("zod").ZodOptional<import("zod").ZodBoolean>;
3167
+ }, "strip", import("zod").ZodTypeAny, {
3168
+ includeArchived?: boolean | undefined;
3169
+ }, {
3170
+ includeArchived?: boolean | undefined;
3171
+ }>;
3172
+ handler: (args?: {
3173
+ includeArchived?: boolean;
3174
+ }) => Promise<{
2989
3175
  content: {
2990
3176
  type: "text";
2991
3177
  text: string;
@@ -3037,6 +3223,7 @@ export declare const toolDefinitions: {
3037
3223
  field_path: string;
3038
3224
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3039
3225
  }>, "many">>;
3226
+ revenue_stream: import("zod").ZodOptional<import("zod").ZodEnum<["dedupe_with_billing", "additive"]>>;
3040
3227
  }, "strip", import("zod").ZodTypeAny, {
3041
3228
  type: "form_submit" | "custom_event";
3042
3229
  event_name?: string | undefined;
@@ -3047,6 +3234,7 @@ export declare const toolDefinitions: {
3047
3234
  field_path: string;
3048
3235
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3049
3236
  }[] | undefined;
3237
+ revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3050
3238
  }, {
3051
3239
  type: "form_submit" | "custom_event";
3052
3240
  event_name?: string | undefined;
@@ -3057,11 +3245,13 @@ export declare const toolDefinitions: {
3057
3245
  field_path: string;
3058
3246
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3059
3247
  }[] | undefined;
3248
+ revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3060
3249
  }>, "many">;
3061
3250
  category: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "engagement", "expansion", "referral", "completion", "retention", "advocacy", "churn", "other"]>>;
3062
3251
  entityScope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
3063
3252
  description: import("zod").ZodOptional<import("zod").ZodString>;
3064
3253
  template: import("zod").ZodOptional<import("zod").ZodString>;
3254
+ position: import("zod").ZodOptional<import("zod").ZodNumber>;
3065
3255
  }, "strip", import("zod").ZodTypeAny, {
3066
3256
  name: string;
3067
3257
  sources: {
@@ -3074,11 +3264,13 @@ export declare const toolDefinitions: {
3074
3264
  field_path: string;
3075
3265
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3076
3266
  }[] | undefined;
3267
+ revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3077
3268
  }[];
3078
3269
  description?: string | undefined;
3270
+ position?: number | undefined;
3271
+ template?: string | undefined;
3079
3272
  category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | undefined;
3080
3273
  entityScope?: "account" | "person" | undefined;
3081
- template?: string | undefined;
3082
3274
  }, {
3083
3275
  name: string;
3084
3276
  sources: {
@@ -3091,11 +3283,13 @@ export declare const toolDefinitions: {
3091
3283
  field_path: string;
3092
3284
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3093
3285
  }[] | undefined;
3286
+ revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3094
3287
  }[];
3095
3288
  description?: string | undefined;
3289
+ position?: number | undefined;
3290
+ template?: string | undefined;
3096
3291
  category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | undefined;
3097
3292
  entityScope?: "account" | "person" | undefined;
3098
- template?: string | undefined;
3099
3293
  }>;
3100
3294
  handler: (args: {
3101
3295
  name: string;
@@ -3109,11 +3303,13 @@ export declare const toolDefinitions: {
3109
3303
  field_path: string;
3110
3304
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3111
3305
  }[] | undefined;
3306
+ revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3112
3307
  }[];
3113
3308
  category?: string;
3114
3309
  entityScope?: string;
3115
3310
  description?: string;
3116
3311
  template?: string;
3312
+ position?: number;
3117
3313
  }) => Promise<{
3118
3314
  isError?: boolean | undefined;
3119
3315
  content: {
@@ -3147,6 +3343,7 @@ export declare const toolDefinitions: {
3147
3343
  field_path: string;
3148
3344
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3149
3345
  }>, "many">>;
3346
+ revenue_stream: import("zod").ZodOptional<import("zod").ZodEnum<["dedupe_with_billing", "additive"]>>;
3150
3347
  }, "strip", import("zod").ZodTypeAny, {
3151
3348
  type: "form_submit" | "custom_event";
3152
3349
  event_name?: string | undefined;
@@ -3157,6 +3354,7 @@ export declare const toolDefinitions: {
3157
3354
  field_path: string;
3158
3355
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3159
3356
  }[] | undefined;
3357
+ revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3160
3358
  }, {
3161
3359
  type: "form_submit" | "custom_event";
3162
3360
  event_name?: string | undefined;
@@ -3167,15 +3365,18 @@ export declare const toolDefinitions: {
3167
3365
  field_path: string;
3168
3366
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3169
3367
  }[] | undefined;
3368
+ revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3170
3369
  }>, "many">>;
3171
3370
  category: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "engagement", "expansion", "referral", "completion", "retention", "advocacy", "churn", "other"]>>;
3172
3371
  entityScope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
3173
3372
  description: import("zod").ZodOptional<import("zod").ZodString>;
3373
+ position: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
3174
3374
  isCurrentGoal: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
3175
3375
  }, "strip", import("zod").ZodTypeAny, {
3176
3376
  keyEventId: string;
3177
3377
  name?: string | undefined;
3178
3378
  description?: string | undefined;
3379
+ position?: number | null | undefined;
3179
3380
  sources?: {
3180
3381
  type: "form_submit" | "custom_event";
3181
3382
  event_name?: string | undefined;
@@ -3186,6 +3387,7 @@ export declare const toolDefinitions: {
3186
3387
  field_path: string;
3187
3388
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3188
3389
  }[] | undefined;
3390
+ revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3189
3391
  }[] | undefined;
3190
3392
  category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | undefined;
3191
3393
  entityScope?: "account" | "person" | undefined;
@@ -3194,6 +3396,7 @@ export declare const toolDefinitions: {
3194
3396
  keyEventId: string;
3195
3397
  name?: string | undefined;
3196
3398
  description?: string | undefined;
3399
+ position?: number | null | undefined;
3197
3400
  sources?: {
3198
3401
  type: "form_submit" | "custom_event";
3199
3402
  event_name?: string | undefined;
@@ -3204,6 +3407,7 @@ export declare const toolDefinitions: {
3204
3407
  field_path: string;
3205
3408
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3206
3409
  }[] | undefined;
3410
+ revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3207
3411
  }[] | undefined;
3208
3412
  category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | undefined;
3209
3413
  entityScope?: "account" | "person" | undefined;
@@ -3222,10 +3426,12 @@ export declare const toolDefinitions: {
3222
3426
  field_path: string;
3223
3427
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3224
3428
  }[] | undefined;
3429
+ revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3225
3430
  }[];
3226
3431
  category?: string;
3227
3432
  entityScope?: string;
3228
3433
  description?: string;
3434
+ position?: number | null;
3229
3435
  isCurrentGoal?: true;
3230
3436
  }) => Promise<{
3231
3437
  isError?: boolean | undefined;
@@ -3237,7 +3443,87 @@ export declare const toolDefinitions: {
3237
3443
  } & {
3238
3444
  group: ToolGroup;
3239
3445
  };
3240
- delete_key_event: {
3446
+ get_revenue_sources: {
3447
+ description: string;
3448
+ schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
3449
+ handler: () => Promise<{
3450
+ isError?: boolean | undefined;
3451
+ content: {
3452
+ type: "text";
3453
+ text: string;
3454
+ }[];
3455
+ }>;
3456
+ } & {
3457
+ group: ToolGroup;
3458
+ };
3459
+ set_revenue_source_of_truth: {
3460
+ description: string;
3461
+ schema: import("zod").ZodObject<{
3462
+ sourceOfTruth: import("zod").ZodEnum<["stripe", "shopify", "quickbooks", "hubspot", "server", "sdk", "manual"]>;
3463
+ confirm: import("zod").ZodOptional<import("zod").ZodBoolean>;
3464
+ }, "strip", import("zod").ZodTypeAny, {
3465
+ sourceOfTruth: "manual" | "sdk" | "stripe" | "shopify" | "quickbooks" | "hubspot" | "server";
3466
+ confirm?: boolean | undefined;
3467
+ }, {
3468
+ sourceOfTruth: "manual" | "sdk" | "stripe" | "shopify" | "quickbooks" | "hubspot" | "server";
3469
+ confirm?: boolean | undefined;
3470
+ }>;
3471
+ handler: (args: {
3472
+ sourceOfTruth: "stripe" | "shopify" | "quickbooks" | "hubspot" | "server" | "sdk" | "manual";
3473
+ confirm?: boolean;
3474
+ }) => Promise<{
3475
+ isError?: boolean | undefined;
3476
+ content: {
3477
+ type: "text";
3478
+ text: string;
3479
+ }[];
3480
+ }>;
3481
+ } & {
3482
+ group: ToolGroup;
3483
+ };
3484
+ reorder_key_events: {
3485
+ description: string;
3486
+ schema: import("zod").ZodObject<{
3487
+ keyEventIds: import("zod").ZodArray<import("zod").ZodString, "many">;
3488
+ }, "strip", import("zod").ZodTypeAny, {
3489
+ keyEventIds: string[];
3490
+ }, {
3491
+ keyEventIds: string[];
3492
+ }>;
3493
+ handler: ({ keyEventIds }: {
3494
+ keyEventIds: string[];
3495
+ }) => Promise<{
3496
+ isError?: boolean | undefined;
3497
+ content: {
3498
+ type: "text";
3499
+ text: string;
3500
+ }[];
3501
+ }>;
3502
+ } & {
3503
+ group: ToolGroup;
3504
+ };
3505
+ archive_key_event: {
3506
+ description: string;
3507
+ schema: import("zod").ZodObject<{
3508
+ keyEventId: import("zod").ZodString;
3509
+ }, "strip", import("zod").ZodTypeAny, {
3510
+ keyEventId: string;
3511
+ }, {
3512
+ keyEventId: string;
3513
+ }>;
3514
+ handler: ({ keyEventId }: {
3515
+ keyEventId: string;
3516
+ }) => Promise<{
3517
+ isError?: boolean | undefined;
3518
+ content: {
3519
+ type: "text";
3520
+ text: string;
3521
+ }[];
3522
+ }>;
3523
+ } & {
3524
+ group: ToolGroup;
3525
+ };
3526
+ restore_key_event: {
3241
3527
  description: string;
3242
3528
  schema: import("zod").ZodObject<{
3243
3529
  keyEventId: import("zod").ZodString;
@@ -3320,6 +3606,47 @@ export declare const toolDefinitions: {
3320
3606
  } & {
3321
3607
  group: ToolGroup;
3322
3608
  };
3609
+ get_key_event_timing: {
3610
+ description: string;
3611
+ schema: import("zod").ZodObject<{
3612
+ fromKeyEventId: import("zod").ZodString;
3613
+ toKeyEventId: import("zod").ZodOptional<import("zod").ZodString>;
3614
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
3615
+ campaignId: import("zod").ZodOptional<import("zod").ZodString>;
3616
+ start: import("zod").ZodOptional<import("zod").ZodString>;
3617
+ end: import("zod").ZodOptional<import("zod").ZodString>;
3618
+ }, "strip", import("zod").ZodTypeAny, {
3619
+ fromKeyEventId: string;
3620
+ start?: string | undefined;
3621
+ end?: string | undefined;
3622
+ scope?: "account" | "person" | undefined;
3623
+ toKeyEventId?: string | undefined;
3624
+ campaignId?: string | undefined;
3625
+ }, {
3626
+ fromKeyEventId: string;
3627
+ start?: string | undefined;
3628
+ end?: string | undefined;
3629
+ scope?: "account" | "person" | undefined;
3630
+ toKeyEventId?: string | undefined;
3631
+ campaignId?: string | undefined;
3632
+ }>;
3633
+ handler: (args: {
3634
+ fromKeyEventId: string;
3635
+ toKeyEventId?: string;
3636
+ scope?: "person" | "account";
3637
+ campaignId?: string;
3638
+ start?: string;
3639
+ end?: string;
3640
+ }) => Promise<{
3641
+ isError?: boolean | undefined;
3642
+ content: {
3643
+ type: "text";
3644
+ text: string;
3645
+ }[];
3646
+ }>;
3647
+ } & {
3648
+ group: ToolGroup;
3649
+ };
3323
3650
  suggest_key_events: {
3324
3651
  description: string;
3325
3652
  schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
@@ -3885,14 +4212,14 @@ export declare const toolDefinitions: {
3885
4212
  fields: Record<string, string>;
3886
4213
  scope?: "workspace" | "org" | undefined;
3887
4214
  primary_metric?: boolean | undefined;
3888
- recommended_transport?: "client" | "server" | "either" | undefined;
4215
+ recommended_transport?: "server" | "client" | "either" | undefined;
3889
4216
  }, {
3890
4217
  name: string;
3891
4218
  description: string;
3892
4219
  fields: Record<string, string>;
3893
4220
  scope?: "workspace" | "org" | undefined;
3894
4221
  primary_metric?: boolean | undefined;
3895
- recommended_transport?: "client" | "server" | "either" | undefined;
4222
+ recommended_transport?: "server" | "client" | "either" | undefined;
3896
4223
  }>;
3897
4224
  handler: (args: {
3898
4225
  name: string;
@@ -3974,6 +4301,7 @@ export declare const toolDefinitions: {
3974
4301
  handler: ({ includeArchived }: {
3975
4302
  includeArchived?: boolean;
3976
4303
  }) => Promise<{
4304
+ isError?: boolean | undefined;
3977
4305
  content: {
3978
4306
  type: "text";
3979
4307
  text: string;
@@ -3998,6 +4326,7 @@ export declare const toolDefinitions: {
3998
4326
  kind: string;
3999
4327
  name: string;
4000
4328
  }) => Promise<{
4329
+ isError?: boolean | undefined;
4001
4330
  content: {
4002
4331
  type: "text";
4003
4332
  text: string;
@@ -4018,6 +4347,7 @@ export declare const toolDefinitions: {
4018
4347
  handler: ({ id }: {
4019
4348
  id: string;
4020
4349
  }) => Promise<{
4350
+ isError?: boolean | undefined;
4021
4351
  content: {
4022
4352
  type: "text";
4023
4353
  text: string;
@@ -4374,8 +4704,10 @@ export declare const toolDefinitions: {
4374
4704
  percentage?: number | undefined;
4375
4705
  amountUsd?: number | undefined;
4376
4706
  }>;
4707
+ payoutKeyEventId: import("zod").ZodOptional<import("zod").ZodString>;
4377
4708
  visibility: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["public", "private"]>>>;
4378
4709
  approvalMode: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<["auto", "manual"]>>>;
4710
+ coverImagePath: import("zod").ZodOptional<import("zod").ZodString>;
4379
4711
  }, "strip", import("zod").ZodTypeAny, {
4380
4712
  name: string;
4381
4713
  vertical: "ecommerce" | "marketplace" | "other" | "saas" | "fintech" | "hardware" | "enterprise" | "creator_tools";
@@ -4388,6 +4720,8 @@ export declare const toolDefinitions: {
4388
4720
  visibility: "public" | "private";
4389
4721
  approvalMode: "manual" | "auto";
4390
4722
  description?: string | undefined;
4723
+ coverImagePath?: string | undefined;
4724
+ payoutKeyEventId?: string | undefined;
4391
4725
  }, {
4392
4726
  name: string;
4393
4727
  vertical: "ecommerce" | "marketplace" | "other" | "saas" | "fintech" | "hardware" | "enterprise" | "creator_tools";
@@ -4398,7 +4732,9 @@ export declare const toolDefinitions: {
4398
4732
  amountUsd?: number | undefined;
4399
4733
  };
4400
4734
  description?: string | undefined;
4735
+ coverImagePath?: string | undefined;
4401
4736
  visibility?: "public" | "private" | undefined;
4737
+ payoutKeyEventId?: string | undefined;
4402
4738
  approvalMode?: "manual" | "auto" | undefined;
4403
4739
  }>;
4404
4740
  handler: (args: Record<string, unknown>) => Promise<{
@@ -4414,22 +4750,33 @@ export declare const toolDefinitions: {
4414
4750
  description: string;
4415
4751
  schema: import("zod").ZodObject<{
4416
4752
  programId: import("zod").ZodString;
4417
- updates: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
4753
+ updates: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
4754
+ coverImagePath: import("zod").ZodOptional<import("zod").ZodString>;
4418
4755
  }, "strip", import("zod").ZodTypeAny, {
4419
4756
  programId: string;
4420
- updates: Record<string, unknown>;
4757
+ coverImagePath?: string | undefined;
4758
+ updates?: Record<string, unknown> | undefined;
4421
4759
  }, {
4422
4760
  programId: string;
4423
- updates: Record<string, unknown>;
4761
+ coverImagePath?: string | undefined;
4762
+ updates?: Record<string, unknown> | undefined;
4424
4763
  }>;
4425
4764
  handler: (args: {
4426
4765
  programId: string;
4427
- updates: Record<string, unknown>;
4766
+ updates?: Record<string, unknown>;
4767
+ coverImagePath?: string;
4428
4768
  }) => Promise<{
4429
4769
  content: {
4430
4770
  type: "text";
4431
4771
  text: string;
4432
4772
  }[];
4773
+ isError: boolean;
4774
+ } | {
4775
+ content: {
4776
+ type: "text";
4777
+ text: string;
4778
+ }[];
4779
+ isError?: undefined;
4433
4780
  }>;
4434
4781
  } & {
4435
4782
  group: ToolGroup;
@@ -5358,12 +5705,31 @@ export declare const toolDefinitions: {
5358
5705
  };
5359
5706
  list_communication_themes: {
5360
5707
  description: string;
5361
- schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
5362
- handler: () => Promise<{
5708
+ schema: import("zod").ZodObject<{
5709
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["workspace", "org"]>>;
5710
+ org_id: import("zod").ZodOptional<import("zod").ZodString>;
5711
+ }, "strip", import("zod").ZodTypeAny, {
5712
+ org_id?: string | undefined;
5713
+ scope?: "workspace" | "org" | undefined;
5714
+ }, {
5715
+ org_id?: string | undefined;
5716
+ scope?: "workspace" | "org" | undefined;
5717
+ }>;
5718
+ handler: (args: {
5719
+ scope?: "workspace" | "org";
5720
+ org_id?: string;
5721
+ }) => Promise<{
5722
+ content: {
5723
+ type: "text";
5724
+ text: string;
5725
+ }[];
5726
+ isError: boolean;
5727
+ } | {
5363
5728
  content: {
5364
5729
  type: "text";
5365
5730
  text: string;
5366
5731
  }[];
5732
+ isError?: undefined;
5367
5733
  }>;
5368
5734
  } & {
5369
5735
  group: ToolGroup;
@@ -5371,24 +5737,44 @@ export declare const toolDefinitions: {
5371
5737
  create_communication_theme: {
5372
5738
  description: string;
5373
5739
  schema: import("zod").ZodObject<{
5374
- name: import("zod").ZodString;
5740
+ name: import("zod").ZodOptional<import("zod").ZodString>;
5741
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["workspace", "org"]>>;
5742
+ org_id: import("zod").ZodOptional<import("zod").ZodString>;
5375
5743
  clone_from_id: import("zod").ZodOptional<import("zod").ZodString>;
5744
+ promote_theme_id: import("zod").ZodOptional<import("zod").ZodString>;
5745
+ promote_from_workspace_key: import("zod").ZodOptional<import("zod").ZodString>;
5746
+ set_default: import("zod").ZodOptional<import("zod").ZodBoolean>;
5376
5747
  style: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
5377
5748
  roles: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
5378
5749
  }, "strip", import("zod").ZodTypeAny, {
5379
- name: string;
5750
+ org_id?: string | undefined;
5751
+ name?: string | undefined;
5380
5752
  style?: Record<string, unknown> | undefined;
5753
+ scope?: "workspace" | "org" | undefined;
5381
5754
  clone_from_id?: string | undefined;
5755
+ promote_theme_id?: string | undefined;
5756
+ promote_from_workspace_key?: string | undefined;
5757
+ set_default?: boolean | undefined;
5382
5758
  roles?: Record<string, unknown> | undefined;
5383
5759
  }, {
5384
- name: string;
5760
+ org_id?: string | undefined;
5761
+ name?: string | undefined;
5385
5762
  style?: Record<string, unknown> | undefined;
5763
+ scope?: "workspace" | "org" | undefined;
5386
5764
  clone_from_id?: string | undefined;
5765
+ promote_theme_id?: string | undefined;
5766
+ promote_from_workspace_key?: string | undefined;
5767
+ set_default?: boolean | undefined;
5387
5768
  roles?: Record<string, unknown> | undefined;
5388
5769
  }>;
5389
5770
  handler: (args: {
5390
- name: string;
5771
+ name?: string;
5772
+ scope?: "workspace" | "org";
5773
+ org_id?: string;
5391
5774
  clone_from_id?: string;
5775
+ promote_theme_id?: string;
5776
+ promote_from_workspace_key?: string;
5777
+ set_default?: boolean;
5392
5778
  style?: Record<string, unknown>;
5393
5779
  roles?: Record<string, unknown>;
5394
5780
  }) => Promise<{
@@ -5396,6 +5782,13 @@ export declare const toolDefinitions: {
5396
5782
  type: "text";
5397
5783
  text: string;
5398
5784
  }[];
5785
+ isError: boolean;
5786
+ } | {
5787
+ content: {
5788
+ type: "text";
5789
+ text: string;
5790
+ }[];
5791
+ isError?: undefined;
5399
5792
  }>;
5400
5793
  } & {
5401
5794
  group: ToolGroup;
@@ -5404,25 +5797,37 @@ export declare const toolDefinitions: {
5404
5797
  description: string;
5405
5798
  schema: import("zod").ZodObject<{
5406
5799
  theme_id: import("zod").ZodString;
5800
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["workspace", "org"]>>;
5801
+ org_id: import("zod").ZodOptional<import("zod").ZodString>;
5802
+ reset_to_org: import("zod").ZodOptional<import("zod").ZodBoolean>;
5407
5803
  name: import("zod").ZodOptional<import("zod").ZodString>;
5408
5804
  style: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
5409
5805
  roles: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
5410
5806
  set_default: import("zod").ZodOptional<import("zod").ZodBoolean>;
5411
5807
  }, "strip", import("zod").ZodTypeAny, {
5412
5808
  theme_id: string;
5809
+ org_id?: string | undefined;
5413
5810
  name?: string | undefined;
5414
5811
  style?: Record<string, unknown> | undefined;
5415
- roles?: Record<string, unknown> | undefined;
5812
+ scope?: "workspace" | "org" | undefined;
5416
5813
  set_default?: boolean | undefined;
5814
+ roles?: Record<string, unknown> | undefined;
5815
+ reset_to_org?: boolean | undefined;
5417
5816
  }, {
5418
5817
  theme_id: string;
5818
+ org_id?: string | undefined;
5419
5819
  name?: string | undefined;
5420
5820
  style?: Record<string, unknown> | undefined;
5421
- roles?: Record<string, unknown> | undefined;
5821
+ scope?: "workspace" | "org" | undefined;
5422
5822
  set_default?: boolean | undefined;
5823
+ roles?: Record<string, unknown> | undefined;
5824
+ reset_to_org?: boolean | undefined;
5423
5825
  }>;
5424
5826
  handler: (args: {
5425
5827
  theme_id: string;
5828
+ scope?: "workspace" | "org";
5829
+ org_id?: string;
5830
+ reset_to_org?: boolean;
5426
5831
  name?: string;
5427
5832
  style?: Record<string, unknown>;
5428
5833
  roles?: Record<string, unknown>;
@@ -5432,6 +5837,13 @@ export declare const toolDefinitions: {
5432
5837
  type: "text";
5433
5838
  text: string;
5434
5839
  }[];
5840
+ isError?: undefined;
5841
+ } | {
5842
+ content: {
5843
+ type: "text";
5844
+ text: string;
5845
+ }[];
5846
+ isError: boolean;
5435
5847
  }>;
5436
5848
  } & {
5437
5849
  group: ToolGroup;
@@ -5575,7 +5987,7 @@ export declare const toolDefinitions: {
5575
5987
  subject: import("zod").ZodOptional<import("zod").ZodString>;
5576
5988
  slots: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
5577
5989
  blocks: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
5578
- type: import("zod").ZodEnum<["heading", "text", "image", "button", "html", "spacer", "divider", "keep"]>;
5990
+ type: import("zod").ZodEnum<["heading", "text", "image", "button", "stat", "html", "spacer", "divider", "keep"]>;
5579
5991
  id: import("zod").ZodOptional<import("zod").ZodString>;
5580
5992
  kind: import("zod").ZodOptional<import("zod").ZodString>;
5581
5993
  text: import("zod").ZodOptional<import("zod").ZodString>;
@@ -5588,15 +6000,20 @@ export declare const toolDefinitions: {
5588
6000
  image_natural_height: import("zod").ZodOptional<import("zod").ZodNumber>;
5589
6001
  label: import("zod").ZodOptional<import("zod").ZodString>;
5590
6002
  button_width: import("zod").ZodOptional<import("zod").ZodEnum<["hug", "fill"]>>;
6003
+ eyebrow: import("zod").ZodOptional<import("zod").ZodString>;
6004
+ value: import("zod").ZodOptional<import("zod").ZodString>;
6005
+ caption: import("zod").ZodOptional<import("zod").ZodString>;
6006
+ tone: import("zod").ZodOptional<import("zod").ZodEnum<["plain", "success", "warning", "neutral"]>>;
5591
6007
  html: import("zod").ZodOptional<import("zod").ZodString>;
5592
6008
  height: import("zod").ZodOptional<import("zod").ZodNumber>;
5593
6009
  color: import("zod").ZodOptional<import("zod").ZodString>;
5594
6010
  thickness: import("zod").ZodOptional<import("zod").ZodNumber>;
5595
6011
  }, "strip", import("zod").ZodTypeAny, {
5596
- type: "text" | "heading" | "image" | "button" | "html" | "spacer" | "divider" | "keep";
6012
+ type: "text" | "heading" | "image" | "button" | "stat" | "html" | "spacer" | "divider" | "keep";
5597
6013
  id?: string | undefined;
5598
6014
  label?: string | undefined;
5599
6015
  kind?: string | undefined;
6016
+ value?: string | undefined;
5600
6017
  text?: string | undefined;
5601
6018
  url?: string | undefined;
5602
6019
  html?: string | undefined;
@@ -5607,14 +6024,18 @@ export declare const toolDefinitions: {
5607
6024
  image_natural_width?: number | undefined;
5608
6025
  image_natural_height?: number | undefined;
5609
6026
  button_width?: "fill" | "hug" | undefined;
6027
+ eyebrow?: string | undefined;
6028
+ caption?: string | undefined;
6029
+ tone?: "plain" | "success" | "warning" | "neutral" | undefined;
5610
6030
  height?: number | undefined;
5611
6031
  color?: string | undefined;
5612
6032
  thickness?: number | undefined;
5613
6033
  }, {
5614
- type: "text" | "heading" | "image" | "button" | "html" | "spacer" | "divider" | "keep";
6034
+ type: "text" | "heading" | "image" | "button" | "stat" | "html" | "spacer" | "divider" | "keep";
5615
6035
  id?: string | undefined;
5616
6036
  label?: string | undefined;
5617
6037
  kind?: string | undefined;
6038
+ value?: string | undefined;
5618
6039
  text?: string | undefined;
5619
6040
  url?: string | undefined;
5620
6041
  html?: string | undefined;
@@ -5625,6 +6046,9 @@ export declare const toolDefinitions: {
5625
6046
  image_natural_width?: number | undefined;
5626
6047
  image_natural_height?: number | undefined;
5627
6048
  button_width?: "fill" | "hug" | undefined;
6049
+ eyebrow?: string | undefined;
6050
+ caption?: string | undefined;
6051
+ tone?: "plain" | "success" | "warning" | "neutral" | undefined;
5628
6052
  height?: number | undefined;
5629
6053
  color?: string | undefined;
5630
6054
  thickness?: number | undefined;
@@ -5646,10 +6070,11 @@ export declare const toolDefinitions: {
5646
6070
  categoryId?: string | undefined;
5647
6071
  slots?: Record<string, string> | undefined;
5648
6072
  blocks?: {
5649
- type: "text" | "heading" | "image" | "button" | "html" | "spacer" | "divider" | "keep";
6073
+ type: "text" | "heading" | "image" | "button" | "stat" | "html" | "spacer" | "divider" | "keep";
5650
6074
  id?: string | undefined;
5651
6075
  label?: string | undefined;
5652
6076
  kind?: string | undefined;
6077
+ value?: string | undefined;
5653
6078
  text?: string | undefined;
5654
6079
  url?: string | undefined;
5655
6080
  html?: string | undefined;
@@ -5660,6 +6085,9 @@ export declare const toolDefinitions: {
5660
6085
  image_natural_width?: number | undefined;
5661
6086
  image_natural_height?: number | undefined;
5662
6087
  button_width?: "fill" | "hug" | undefined;
6088
+ eyebrow?: string | undefined;
6089
+ caption?: string | undefined;
6090
+ tone?: "plain" | "success" | "warning" | "neutral" | undefined;
5663
6091
  height?: number | undefined;
5664
6092
  color?: string | undefined;
5665
6093
  thickness?: number | undefined;
@@ -5677,10 +6105,11 @@ export declare const toolDefinitions: {
5677
6105
  categoryId?: string | undefined;
5678
6106
  slots?: Record<string, string> | undefined;
5679
6107
  blocks?: {
5680
- type: "text" | "heading" | "image" | "button" | "html" | "spacer" | "divider" | "keep";
6108
+ type: "text" | "heading" | "image" | "button" | "stat" | "html" | "spacer" | "divider" | "keep";
5681
6109
  id?: string | undefined;
5682
6110
  label?: string | undefined;
5683
6111
  kind?: string | undefined;
6112
+ value?: string | undefined;
5684
6113
  text?: string | undefined;
5685
6114
  url?: string | undefined;
5686
6115
  html?: string | undefined;
@@ -5691,6 +6120,9 @@ export declare const toolDefinitions: {
5691
6120
  image_natural_width?: number | undefined;
5692
6121
  image_natural_height?: number | undefined;
5693
6122
  button_width?: "fill" | "hug" | undefined;
6123
+ eyebrow?: string | undefined;
6124
+ caption?: string | undefined;
6125
+ tone?: "plain" | "success" | "warning" | "neutral" | undefined;
5694
6126
  height?: number | undefined;
5695
6127
  color?: string | undefined;
5696
6128
  thickness?: number | undefined;
@@ -6184,22 +6616,26 @@ export declare const toolDefinitions: {
6184
6616
  journeyId: import("zod").ZodString;
6185
6617
  eventName: import("zod").ZodOptional<import("zod").ZodString>;
6186
6618
  keyEventId: import("zod").ZodOptional<import("zod").ZodString>;
6619
+ segmentId: import("zod").ZodOptional<import("zod").ZodString>;
6187
6620
  triggerContractId: import("zod").ZodOptional<import("zod").ZodString>;
6188
6621
  }, "strip", import("zod").ZodTypeAny, {
6189
6622
  journeyId: string;
6190
6623
  eventName?: string | undefined;
6191
6624
  keyEventId?: string | undefined;
6625
+ segmentId?: string | undefined;
6192
6626
  triggerContractId?: string | undefined;
6193
6627
  }, {
6194
6628
  journeyId: string;
6195
6629
  eventName?: string | undefined;
6196
6630
  keyEventId?: string | undefined;
6631
+ segmentId?: string | undefined;
6197
6632
  triggerContractId?: string | undefined;
6198
6633
  }>;
6199
- handler: ({ journeyId, eventName, keyEventId, triggerContractId, }: {
6634
+ handler: ({ journeyId, eventName, keyEventId, segmentId, triggerContractId, }: {
6200
6635
  journeyId: string;
6201
6636
  eventName?: string;
6202
6637
  keyEventId?: string;
6638
+ segmentId?: string;
6203
6639
  triggerContractId?: string;
6204
6640
  }) => Promise<{
6205
6641
  content: {
@@ -6336,8 +6772,8 @@ export declare const toolDefinitions: {
6336
6772
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
6337
6773
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
6338
6774
  event_name?: string | undefined;
6339
- key_event_id?: string | undefined;
6340
6775
  scope?: "account" | "person" | undefined;
6776
+ key_event_id?: string | undefined;
6341
6777
  field_path?: string | undefined;
6342
6778
  window_days?: number | undefined;
6343
6779
  wait_days?: number | undefined;
@@ -6346,8 +6782,8 @@ export declare const toolDefinitions: {
6346
6782
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
6347
6783
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
6348
6784
  event_name?: string | undefined;
6349
- key_event_id?: string | undefined;
6350
6785
  scope?: "account" | "person" | undefined;
6786
+ key_event_id?: string | undefined;
6351
6787
  field_path?: string | undefined;
6352
6788
  window_days?: number | undefined;
6353
6789
  wait_days?: number | undefined;
@@ -6361,8 +6797,8 @@ export declare const toolDefinitions: {
6361
6797
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
6362
6798
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
6363
6799
  event_name?: string | undefined;
6364
- key_event_id?: string | undefined;
6365
6800
  scope?: "account" | "person" | undefined;
6801
+ key_event_id?: string | undefined;
6366
6802
  field_path?: string | undefined;
6367
6803
  window_days?: number | undefined;
6368
6804
  wait_days?: number | undefined;
@@ -6378,8 +6814,8 @@ export declare const toolDefinitions: {
6378
6814
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
6379
6815
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
6380
6816
  event_name?: string | undefined;
6381
- key_event_id?: string | undefined;
6382
6817
  scope?: "account" | "person" | undefined;
6818
+ key_event_id?: string | undefined;
6383
6819
  field_path?: string | undefined;
6384
6820
  window_days?: number | undefined;
6385
6821
  wait_days?: number | undefined;
@@ -6867,18 +7303,18 @@ export declare const toolDefinitions: {
6867
7303
  }, "strip", import("zod").ZodTypeAny, {
6868
7304
  event?: string | undefined;
6869
7305
  value?: string | number | boolean | undefined;
7306
+ scope?: "account" | "person" | undefined;
6870
7307
  attribute?: string | undefined;
6871
7308
  key_event_id?: string | undefined;
6872
- scope?: "account" | "person" | undefined;
6873
7309
  window_days?: number | undefined;
6874
7310
  verb?: "has" | "hasnt" | undefined;
6875
7311
  op?: "exists" | "is" | "is_not" | undefined;
6876
7312
  }, {
6877
7313
  event?: string | undefined;
6878
7314
  value?: string | number | boolean | undefined;
7315
+ scope?: "account" | "person" | undefined;
6879
7316
  attribute?: string | undefined;
6880
7317
  key_event_id?: string | undefined;
6881
- scope?: "account" | "person" | undefined;
6882
7318
  window_days?: number | undefined;
6883
7319
  verb?: "has" | "hasnt" | undefined;
6884
7320
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6888,9 +7324,9 @@ export declare const toolDefinitions: {
6888
7324
  conditions: {
6889
7325
  event?: string | undefined;
6890
7326
  value?: string | number | boolean | undefined;
7327
+ scope?: "account" | "person" | undefined;
6891
7328
  attribute?: string | undefined;
6892
7329
  key_event_id?: string | undefined;
6893
- scope?: "account" | "person" | undefined;
6894
7330
  window_days?: number | undefined;
6895
7331
  verb?: "has" | "hasnt" | undefined;
6896
7332
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6900,9 +7336,9 @@ export declare const toolDefinitions: {
6900
7336
  conditions: {
6901
7337
  event?: string | undefined;
6902
7338
  value?: string | number | boolean | undefined;
7339
+ scope?: "account" | "person" | undefined;
6903
7340
  attribute?: string | undefined;
6904
7341
  key_event_id?: string | undefined;
6905
- scope?: "account" | "person" | undefined;
6906
7342
  window_days?: number | undefined;
6907
7343
  verb?: "has" | "hasnt" | undefined;
6908
7344
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6915,9 +7351,9 @@ export declare const toolDefinitions: {
6915
7351
  conditions: {
6916
7352
  event?: string | undefined;
6917
7353
  value?: string | number | boolean | undefined;
7354
+ scope?: "account" | "person" | undefined;
6918
7355
  attribute?: string | undefined;
6919
7356
  key_event_id?: string | undefined;
6920
- scope?: "account" | "person" | undefined;
6921
7357
  window_days?: number | undefined;
6922
7358
  verb?: "has" | "hasnt" | undefined;
6923
7359
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6930,9 +7366,9 @@ export declare const toolDefinitions: {
6930
7366
  conditions: {
6931
7367
  event?: string | undefined;
6932
7368
  value?: string | number | boolean | undefined;
7369
+ scope?: "account" | "person" | undefined;
6933
7370
  attribute?: string | undefined;
6934
7371
  key_event_id?: string | undefined;
6935
- scope?: "account" | "person" | undefined;
6936
7372
  window_days?: number | undefined;
6937
7373
  verb?: "has" | "hasnt" | undefined;
6938
7374
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6951,9 +7387,9 @@ export declare const toolDefinitions: {
6951
7387
  conditions: {
6952
7388
  event?: string | undefined;
6953
7389
  value?: string | number | boolean | undefined;
7390
+ scope?: "account" | "person" | undefined;
6954
7391
  attribute?: string | undefined;
6955
7392
  key_event_id?: string | undefined;
6956
- scope?: "account" | "person" | undefined;
6957
7393
  window_days?: number | undefined;
6958
7394
  verb?: "has" | "hasnt" | undefined;
6959
7395
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6972,9 +7408,9 @@ export declare const toolDefinitions: {
6972
7408
  conditions: {
6973
7409
  event?: string | undefined;
6974
7410
  value?: string | number | boolean | undefined;
7411
+ scope?: "account" | "person" | undefined;
6975
7412
  attribute?: string | undefined;
6976
7413
  key_event_id?: string | undefined;
6977
- scope?: "account" | "person" | undefined;
6978
7414
  window_days?: number | undefined;
6979
7415
  verb?: "has" | "hasnt" | undefined;
6980
7416
  op?: "exists" | "is" | "is_not" | undefined;