@apex-inc/mcp-server 0.75.0 → 0.78.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/api-client.d.ts +13 -19
  2. package/dist/api-client.d.ts.map +1 -1
  3. package/dist/api-client.js +173 -59
  4. package/dist/api-client.js.map +1 -1
  5. package/dist/auth.d.ts.map +1 -1
  6. package/dist/auth.js +7 -6
  7. package/dist/auth.js.map +1 -1
  8. package/dist/fetch-timeout.d.ts +23 -0
  9. package/dist/fetch-timeout.d.ts.map +1 -0
  10. package/dist/fetch-timeout.js +78 -0
  11. package/dist/fetch-timeout.js.map +1 -0
  12. package/dist/hosted.d.ts +28 -0
  13. package/dist/hosted.d.ts.map +1 -0
  14. package/dist/hosted.js +56 -0
  15. package/dist/hosted.js.map +1 -0
  16. package/dist/index.js +40 -118
  17. package/dist/index.js.map +1 -1
  18. package/dist/live-test-files.d.ts +35 -0
  19. package/dist/live-test-files.d.ts.map +1 -0
  20. package/dist/live-test-files.js +114 -0
  21. package/dist/live-test-files.js.map +1 -0
  22. package/dist/live-test-guard.d.ts.map +1 -1
  23. package/dist/live-test-guard.js +7 -1
  24. package/dist/live-test-guard.js.map +1 -1
  25. package/dist/request-context.d.ts +38 -0
  26. package/dist/request-context.d.ts.map +1 -0
  27. package/dist/request-context.js +11 -0
  28. package/dist/request-context.js.map +1 -0
  29. package/dist/server-factory.d.ts +18 -0
  30. package/dist/server-factory.d.ts.map +1 -0
  31. package/dist/server-factory.js +221 -0
  32. package/dist/server-factory.js.map +1 -0
  33. package/dist/setup-catchup-tools.d.ts +4 -0
  34. package/dist/setup-catchup-tools.d.ts.map +1 -1
  35. package/dist/setup-catchup-tools.js +16 -5
  36. package/dist/setup-catchup-tools.js.map +1 -1
  37. package/dist/smoke-tools.d.ts.map +1 -1
  38. package/dist/smoke-tools.js +2 -0
  39. package/dist/smoke-tools.js.map +1 -1
  40. package/dist/tool-catalog.d.ts +2 -0
  41. package/dist/tool-catalog.d.ts.map +1 -1
  42. package/dist/tool-catalog.js +6 -1
  43. package/dist/tool-catalog.js.map +1 -1
  44. package/dist/tool-groups.d.ts.map +1 -1
  45. package/dist/tool-groups.js +12 -0
  46. package/dist/tool-groups.js.map +1 -1
  47. package/dist/tool-shared.d.ts +2 -1
  48. package/dist/tool-shared.d.ts.map +1 -1
  49. package/dist/tool-shared.js +17 -2
  50. package/dist/tool-shared.js.map +1 -1
  51. package/dist/tools/adoption.d.ts.map +1 -1
  52. package/dist/tools/adoption.js +2 -1
  53. package/dist/tools/adoption.js.map +1 -1
  54. package/dist/tools/apex-campaigns.d.ts +390 -0
  55. package/dist/tools/apex-campaigns.d.ts.map +1 -1
  56. package/dist/tools/apex-campaigns.js +253 -1
  57. package/dist/tools/apex-campaigns.js.map +1 -1
  58. package/dist/tools/context.d.ts +2 -2
  59. package/dist/tools/experiments.d.ts +69 -1
  60. package/dist/tools/experiments.d.ts.map +1 -1
  61. package/dist/tools/experiments.js +88 -24
  62. package/dist/tools/experiments.js.map +1 -1
  63. package/dist/tools/letters.d.ts +214 -48
  64. package/dist/tools/letters.d.ts.map +1 -1
  65. package/dist/tools/letters.js +233 -16
  66. package/dist/tools/letters.js.map +1 -1
  67. package/dist/tools/measurement.d.ts +70 -28
  68. package/dist/tools/measurement.d.ts.map +1 -1
  69. package/dist/tools/measurement.js +151 -13
  70. package/dist/tools/measurement.js.map +1 -1
  71. package/dist/tools.d.ts +770 -76
  72. package/dist/tools.d.ts.map +1 -1
  73. package/package.json +11 -1
  74. package/skills/apex-growth-intelligence/SKILL.md +4 -0
  75. package/skills/apex-growth-tracking/SKILL.md +1 -1
  76. package/skills/apex-integration-cookbook/SKILL.md +23 -3
  77. package/skills/apex-setup/SKILL.md +1 -1
  78. package/skills/apex-spec/SKILL.md +6 -1
package/dist/tools.d.ts CHANGED
@@ -348,22 +348,26 @@ export declare const toolDefinitions: {
348
348
  addMyAddress: import("zod").ZodOptional<import("zod").ZodBoolean>;
349
349
  addresses: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
350
350
  browserLink: import("zod").ZodOptional<import("zod").ZodEnum<["create", "remove"]>>;
351
+ excludeIdPatterns: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
351
352
  host: import("zod").ZodOptional<import("zod").ZodString>;
352
353
  }, "strip", import("zod").ZodTypeAny, {
353
354
  host?: string | undefined;
354
355
  addMyAddress?: boolean | undefined;
355
356
  addresses?: string[] | undefined;
356
357
  browserLink?: "create" | "remove" | undefined;
358
+ excludeIdPatterns?: string[] | undefined;
357
359
  }, {
358
360
  host?: string | undefined;
359
361
  addMyAddress?: boolean | undefined;
360
362
  addresses?: string[] | undefined;
361
363
  browserLink?: "create" | "remove" | undefined;
364
+ excludeIdPatterns?: string[] | undefined;
362
365
  }>;
363
366
  handler: (args: {
364
367
  addMyAddress?: boolean;
365
368
  addresses?: string[];
366
369
  browserLink?: "create" | "remove";
370
+ excludeIdPatterns?: string[];
367
371
  host?: string;
368
372
  }) => Promise<{
369
373
  content: {
@@ -1990,11 +1994,11 @@ export declare const toolDefinitions: {
1990
1994
  name: import("zod").ZodOptional<import("zod").ZodString>;
1991
1995
  orgId: import("zod").ZodOptional<import("zod").ZodString>;
1992
1996
  }, "strip", import("zod").ZodTypeAny, {
1993
- name?: string | undefined;
1994
1997
  orgId?: string | undefined;
1995
- }, {
1996
1998
  name?: string | undefined;
1999
+ }, {
1997
2000
  orgId?: string | undefined;
2001
+ name?: string | undefined;
1998
2002
  }>;
1999
2003
  handler: ({ name, orgId }: {
2000
2004
  name?: string;
@@ -2696,6 +2700,43 @@ export declare const toolDefinitions: {
2696
2700
  } & {
2697
2701
  group: ToolGroup;
2698
2702
  };
2703
+ update_apex_campaign: {
2704
+ description: string;
2705
+ schema: import("zod").ZodObject<{
2706
+ campaignId: import("zod").ZodString;
2707
+ name: import("zod").ZodOptional<import("zod").ZodString>;
2708
+ description: import("zod").ZodOptional<import("zod").ZodString>;
2709
+ startDate: import("zod").ZodOptional<import("zod").ZodString>;
2710
+ endDate: import("zod").ZodOptional<import("zod").ZodString>;
2711
+ }, "strip", import("zod").ZodTypeAny, {
2712
+ campaignId: string;
2713
+ name?: string | undefined;
2714
+ description?: string | undefined;
2715
+ startDate?: string | undefined;
2716
+ endDate?: string | undefined;
2717
+ }, {
2718
+ campaignId: string;
2719
+ name?: string | undefined;
2720
+ description?: string | undefined;
2721
+ startDate?: string | undefined;
2722
+ endDate?: string | undefined;
2723
+ }>;
2724
+ handler: (args: {
2725
+ campaignId: string;
2726
+ name?: string;
2727
+ description?: string;
2728
+ startDate?: string;
2729
+ endDate?: string;
2730
+ }) => Promise<{
2731
+ isError?: boolean | undefined;
2732
+ content: {
2733
+ type: "text";
2734
+ text: string;
2735
+ }[];
2736
+ }>;
2737
+ } & {
2738
+ group: ToolGroup;
2739
+ };
2699
2740
  set_campaign_steps: {
2700
2741
  description: string;
2701
2742
  schema: import("zod").ZodObject<{
@@ -2770,6 +2811,371 @@ export declare const toolDefinitions: {
2770
2811
  } & {
2771
2812
  group: ToolGroup;
2772
2813
  };
2814
+ get_campaign_journey: {
2815
+ description: string;
2816
+ schema: import("zod").ZodObject<{
2817
+ campaignId: import("zod").ZodString;
2818
+ }, "strip", import("zod").ZodTypeAny, {
2819
+ campaignId: string;
2820
+ }, {
2821
+ campaignId: string;
2822
+ }>;
2823
+ handler: (args: {
2824
+ campaignId: string;
2825
+ }) => Promise<{
2826
+ isError?: boolean | undefined;
2827
+ content: {
2828
+ type: "text";
2829
+ text: string;
2830
+ }[];
2831
+ }>;
2832
+ } & {
2833
+ group: ToolGroup;
2834
+ };
2835
+ update_campaign_journey: {
2836
+ description: string;
2837
+ schema: import("zod").ZodObject<{
2838
+ campaignId: import("zod").ZodString;
2839
+ edits: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<"op", [import("zod").ZodObject<{
2840
+ op: import("zod").ZodLiteral<"add_stage">;
2841
+ title: import("zod").ZodString;
2842
+ after_stage_id: import("zod").ZodOptional<import("zod").ZodString>;
2843
+ id: import("zod").ZodOptional<import("zod").ZodString>;
2844
+ }, "strip", import("zod").ZodTypeAny, {
2845
+ title: string;
2846
+ op: "add_stage";
2847
+ id?: string | undefined;
2848
+ after_stage_id?: string | undefined;
2849
+ }, {
2850
+ title: string;
2851
+ op: "add_stage";
2852
+ id?: string | undefined;
2853
+ after_stage_id?: string | undefined;
2854
+ }>, import("zod").ZodObject<{
2855
+ op: import("zod").ZodLiteral<"rename_stage">;
2856
+ stage_id: import("zod").ZodString;
2857
+ title: import("zod").ZodString;
2858
+ }, "strip", import("zod").ZodTypeAny, {
2859
+ title: string;
2860
+ op: "rename_stage";
2861
+ stage_id: string;
2862
+ }, {
2863
+ title: string;
2864
+ op: "rename_stage";
2865
+ stage_id: string;
2866
+ }>, import("zod").ZodObject<{
2867
+ op: import("zod").ZodLiteral<"remove_stage">;
2868
+ stage_id: import("zod").ZodString;
2869
+ }, "strip", import("zod").ZodTypeAny, {
2870
+ op: "remove_stage";
2871
+ stage_id: string;
2872
+ }, {
2873
+ op: "remove_stage";
2874
+ stage_id: string;
2875
+ }>, import("zod").ZodObject<{
2876
+ op: import("zod").ZodLiteral<"reorder_stages">;
2877
+ stage_ids: import("zod").ZodArray<import("zod").ZodString, "many">;
2878
+ }, "strip", import("zod").ZodTypeAny, {
2879
+ op: "reorder_stages";
2880
+ stage_ids: string[];
2881
+ }, {
2882
+ op: "reorder_stages";
2883
+ stage_ids: string[];
2884
+ }>, import("zod").ZodObject<{
2885
+ op: import("zod").ZodLiteral<"add_piece">;
2886
+ stage_id: import("zod").ZodString;
2887
+ piece: import("zod").ZodObject<{
2888
+ type: import("zod").ZodEnum<["post", "ad", "link", "page", "experiment", "key_event", "journey", "communication", "ad_send"]>;
2889
+ id: import("zod").ZodString;
2890
+ }, "strip", import("zod").ZodTypeAny, {
2891
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2892
+ id: string;
2893
+ }, {
2894
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2895
+ id: string;
2896
+ }>;
2897
+ }, "strip", import("zod").ZodTypeAny, {
2898
+ op: "add_piece";
2899
+ stage_id: string;
2900
+ piece: {
2901
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2902
+ id: string;
2903
+ };
2904
+ }, {
2905
+ op: "add_piece";
2906
+ stage_id: string;
2907
+ piece: {
2908
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2909
+ id: string;
2910
+ };
2911
+ }>, import("zod").ZodObject<{
2912
+ op: import("zod").ZodLiteral<"hide_piece">;
2913
+ stage_id: import("zod").ZodString;
2914
+ piece: import("zod").ZodObject<{
2915
+ type: import("zod").ZodEnum<["post", "ad", "link", "page", "experiment", "key_event", "journey", "communication", "ad_send"]>;
2916
+ id: import("zod").ZodString;
2917
+ }, "strip", import("zod").ZodTypeAny, {
2918
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2919
+ id: string;
2920
+ }, {
2921
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2922
+ id: string;
2923
+ }>;
2924
+ }, "strip", import("zod").ZodTypeAny, {
2925
+ op: "hide_piece";
2926
+ stage_id: string;
2927
+ piece: {
2928
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2929
+ id: string;
2930
+ };
2931
+ }, {
2932
+ op: "hide_piece";
2933
+ stage_id: string;
2934
+ piece: {
2935
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2936
+ id: string;
2937
+ };
2938
+ }>, import("zod").ZodObject<{
2939
+ op: import("zod").ZodLiteral<"unhide_piece">;
2940
+ stage_id: import("zod").ZodString;
2941
+ piece: import("zod").ZodObject<{
2942
+ type: import("zod").ZodEnum<["post", "ad", "link", "page", "experiment", "key_event", "journey", "communication", "ad_send"]>;
2943
+ id: import("zod").ZodString;
2944
+ }, "strip", import("zod").ZodTypeAny, {
2945
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2946
+ id: string;
2947
+ }, {
2948
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2949
+ id: string;
2950
+ }>;
2951
+ }, "strip", import("zod").ZodTypeAny, {
2952
+ op: "unhide_piece";
2953
+ stage_id: string;
2954
+ piece: {
2955
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2956
+ id: string;
2957
+ };
2958
+ }, {
2959
+ op: "unhide_piece";
2960
+ stage_id: string;
2961
+ piece: {
2962
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2963
+ id: string;
2964
+ };
2965
+ }>, import("zod").ZodObject<{
2966
+ op: import("zod").ZodLiteral<"move_piece">;
2967
+ from_stage_id: import("zod").ZodString;
2968
+ to_stage_id: import("zod").ZodString;
2969
+ piece: import("zod").ZodObject<{
2970
+ type: import("zod").ZodEnum<["post", "ad", "link", "page", "experiment", "key_event", "journey", "communication", "ad_send"]>;
2971
+ id: import("zod").ZodString;
2972
+ }, "strip", import("zod").ZodTypeAny, {
2973
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2974
+ id: string;
2975
+ }, {
2976
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2977
+ id: string;
2978
+ }>;
2979
+ }, "strip", import("zod").ZodTypeAny, {
2980
+ op: "move_piece";
2981
+ piece: {
2982
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2983
+ id: string;
2984
+ };
2985
+ from_stage_id: string;
2986
+ to_stage_id: string;
2987
+ }, {
2988
+ op: "move_piece";
2989
+ piece: {
2990
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
2991
+ id: string;
2992
+ };
2993
+ from_stage_id: string;
2994
+ to_stage_id: string;
2995
+ }>]>, "many">;
2996
+ }, "strip", import("zod").ZodTypeAny, {
2997
+ campaignId: string;
2998
+ edits: ({
2999
+ title: string;
3000
+ op: "add_stage";
3001
+ id?: string | undefined;
3002
+ after_stage_id?: string | undefined;
3003
+ } | {
3004
+ title: string;
3005
+ op: "rename_stage";
3006
+ stage_id: string;
3007
+ } | {
3008
+ op: "remove_stage";
3009
+ stage_id: string;
3010
+ } | {
3011
+ op: "reorder_stages";
3012
+ stage_ids: string[];
3013
+ } | {
3014
+ op: "add_piece";
3015
+ stage_id: string;
3016
+ piece: {
3017
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
3018
+ id: string;
3019
+ };
3020
+ } | {
3021
+ op: "hide_piece";
3022
+ stage_id: string;
3023
+ piece: {
3024
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
3025
+ id: string;
3026
+ };
3027
+ } | {
3028
+ op: "unhide_piece";
3029
+ stage_id: string;
3030
+ piece: {
3031
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
3032
+ id: string;
3033
+ };
3034
+ } | {
3035
+ op: "move_piece";
3036
+ piece: {
3037
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
3038
+ id: string;
3039
+ };
3040
+ from_stage_id: string;
3041
+ to_stage_id: string;
3042
+ })[];
3043
+ }, {
3044
+ campaignId: string;
3045
+ edits: ({
3046
+ title: string;
3047
+ op: "add_stage";
3048
+ id?: string | undefined;
3049
+ after_stage_id?: string | undefined;
3050
+ } | {
3051
+ title: string;
3052
+ op: "rename_stage";
3053
+ stage_id: string;
3054
+ } | {
3055
+ op: "remove_stage";
3056
+ stage_id: string;
3057
+ } | {
3058
+ op: "reorder_stages";
3059
+ stage_ids: string[];
3060
+ } | {
3061
+ op: "add_piece";
3062
+ stage_id: string;
3063
+ piece: {
3064
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
3065
+ id: string;
3066
+ };
3067
+ } | {
3068
+ op: "hide_piece";
3069
+ stage_id: string;
3070
+ piece: {
3071
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
3072
+ id: string;
3073
+ };
3074
+ } | {
3075
+ op: "unhide_piece";
3076
+ stage_id: string;
3077
+ piece: {
3078
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
3079
+ id: string;
3080
+ };
3081
+ } | {
3082
+ op: "move_piece";
3083
+ piece: {
3084
+ type: "link" | "experiment" | "communication" | "journey" | "key_event" | "ad" | "post" | "page" | "ad_send";
3085
+ id: string;
3086
+ };
3087
+ from_stage_id: string;
3088
+ to_stage_id: string;
3089
+ })[];
3090
+ }>;
3091
+ handler: (args: {
3092
+ campaignId: string;
3093
+ edits: Array<Record<string, unknown>>;
3094
+ }) => Promise<{
3095
+ isError?: boolean | undefined;
3096
+ content: {
3097
+ type: "text";
3098
+ text: string;
3099
+ }[];
3100
+ }>;
3101
+ } & {
3102
+ group: ToolGroup;
3103
+ };
3104
+ get_campaign_funnel: {
3105
+ description: string;
3106
+ schema: import("zod").ZodObject<{
3107
+ campaignId: import("zod").ZodString;
3108
+ start: import("zod").ZodOptional<import("zod").ZodString>;
3109
+ end: import("zod").ZodOptional<import("zod").ZodString>;
3110
+ }, "strip", import("zod").ZodTypeAny, {
3111
+ campaignId: string;
3112
+ start?: string | undefined;
3113
+ end?: string | undefined;
3114
+ }, {
3115
+ campaignId: string;
3116
+ start?: string | undefined;
3117
+ end?: string | undefined;
3118
+ }>;
3119
+ handler: (args: {
3120
+ campaignId: string;
3121
+ start?: string;
3122
+ end?: string;
3123
+ }) => Promise<{
3124
+ isError?: boolean | undefined;
3125
+ content: {
3126
+ type: "text";
3127
+ text: string;
3128
+ }[];
3129
+ }>;
3130
+ } & {
3131
+ group: ToolGroup;
3132
+ };
3133
+ sync_campaign_platform_tests: {
3134
+ description: string;
3135
+ schema: import("zod").ZodObject<{
3136
+ campaignId: import("zod").ZodString;
3137
+ }, "strip", import("zod").ZodTypeAny, {
3138
+ campaignId: string;
3139
+ }, {
3140
+ campaignId: string;
3141
+ }>;
3142
+ handler: (args: {
3143
+ campaignId: string;
3144
+ }) => Promise<{
3145
+ isError?: boolean | undefined;
3146
+ content: {
3147
+ type: "text";
3148
+ text: string;
3149
+ }[];
3150
+ }>;
3151
+ } & {
3152
+ group: ToolGroup;
3153
+ };
3154
+ list_site_pages: {
3155
+ description: string;
3156
+ schema: import("zod").ZodObject<{
3157
+ search: import("zod").ZodOptional<import("zod").ZodString>;
3158
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
3159
+ }, "strip", import("zod").ZodTypeAny, {
3160
+ search?: string | undefined;
3161
+ limit?: number | undefined;
3162
+ }, {
3163
+ search?: string | undefined;
3164
+ limit?: number | undefined;
3165
+ }>;
3166
+ handler: (args: {
3167
+ search?: string;
3168
+ limit?: number;
3169
+ }) => Promise<{
3170
+ isError?: boolean | undefined;
3171
+ content: {
3172
+ type: "text";
3173
+ text: string;
3174
+ }[];
3175
+ }>;
3176
+ } & {
3177
+ group: ToolGroup;
3178
+ };
2773
3179
  list_audiences: {
2774
3180
  description: string;
2775
3181
  schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
@@ -3102,13 +3508,17 @@ export declare const toolDefinitions: {
3102
3508
  description: string;
3103
3509
  schema: import("zod").ZodObject<{
3104
3510
  days: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodNumber, import("zod").ZodLiteral<"all">]>>;
3511
+ keyEventId: import("zod").ZodOptional<import("zod").ZodString>;
3105
3512
  }, "strip", import("zod").ZodTypeAny, {
3106
3513
  days?: number | "all" | undefined;
3514
+ keyEventId?: string | undefined;
3107
3515
  }, {
3108
3516
  days?: number | "all" | undefined;
3517
+ keyEventId?: string | undefined;
3109
3518
  }>;
3110
- handler: ({ days }: {
3519
+ handler: ({ days, keyEventId, }: {
3111
3520
  days?: number | "all";
3521
+ keyEventId?: string;
3112
3522
  }) => Promise<{
3113
3523
  content: {
3114
3524
  type: "text";
@@ -3226,6 +3636,46 @@ export declare const toolDefinitions: {
3226
3636
  } & {
3227
3637
  group: ToolGroup;
3228
3638
  };
3639
+ get_funnel: {
3640
+ description: string;
3641
+ schema: import("zod").ZodObject<{
3642
+ start: import("zod").ZodOptional<import("zod").ZodString>;
3643
+ end: import("zod").ZodOptional<import("zod").ZodString>;
3644
+ days: import("zod").ZodOptional<import("zod").ZodNumber>;
3645
+ breakdownBy: import("zod").ZodOptional<import("zod").ZodString>;
3646
+ steps: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
3647
+ breakdownLimit: import("zod").ZodOptional<import("zod").ZodNumber>;
3648
+ }, "strip", import("zod").ZodTypeAny, {
3649
+ steps?: string[] | undefined;
3650
+ days?: number | undefined;
3651
+ start?: string | undefined;
3652
+ end?: string | undefined;
3653
+ breakdownBy?: string | undefined;
3654
+ breakdownLimit?: number | undefined;
3655
+ }, {
3656
+ steps?: string[] | undefined;
3657
+ days?: number | undefined;
3658
+ start?: string | undefined;
3659
+ end?: string | undefined;
3660
+ breakdownBy?: string | undefined;
3661
+ breakdownLimit?: number | undefined;
3662
+ }>;
3663
+ handler: (args?: {
3664
+ start?: string;
3665
+ end?: string;
3666
+ days?: number;
3667
+ breakdownBy?: string;
3668
+ steps?: string[];
3669
+ breakdownLimit?: number;
3670
+ }) => Promise<{
3671
+ content: {
3672
+ type: "text";
3673
+ text: string;
3674
+ }[];
3675
+ }>;
3676
+ } & {
3677
+ group: ToolGroup;
3678
+ };
3229
3679
  list_key_events: {
3230
3680
  description: string;
3231
3681
  schema: import("zod").ZodObject<{
@@ -3278,14 +3728,14 @@ export declare const toolDefinitions: {
3278
3728
  target_url: import("zod").ZodOptional<import("zod").ZodString>;
3279
3729
  where: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
3280
3730
  field_path: import("zod").ZodString;
3281
- operator: import("zod").ZodEnum<["equals", "not_equals", "in", "exists", "not_exists"]>;
3731
+ operator: import("zod").ZodEnum<["equals", "not_equals", "in", "contains", "gt", "gte", "lt", "lte", "exists", "not_exists"]>;
3282
3732
  value: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>, "many">]>>;
3283
3733
  }, "strip", import("zod").ZodTypeAny, {
3284
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3734
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3285
3735
  field_path: string;
3286
3736
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3287
3737
  }, {
3288
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3738
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3289
3739
  field_path: string;
3290
3740
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3291
3741
  }>, "many">>;
@@ -3295,7 +3745,7 @@ export declare const toolDefinitions: {
3295
3745
  event_name?: string | undefined;
3296
3746
  selector?: string | undefined;
3297
3747
  where?: {
3298
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3748
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3299
3749
  field_path: string;
3300
3750
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3301
3751
  }[] | undefined;
@@ -3306,14 +3756,14 @@ export declare const toolDefinitions: {
3306
3756
  event_name?: string | undefined;
3307
3757
  selector?: string | undefined;
3308
3758
  where?: {
3309
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3759
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3310
3760
  field_path: string;
3311
3761
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3312
3762
  }[] | undefined;
3313
3763
  target_url?: string | undefined;
3314
3764
  revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3315
3765
  }>, "many">;
3316
- category: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "engagement", "expansion", "referral", "completion", "retention", "advocacy", "churn", "reactivation", "other"]>>;
3766
+ category: import("zod").ZodOptional<import("zod").ZodEnum<["install", "purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "checkout", "engagement", "expansion", "referral", "completion", "retention", "advocacy", "churn", "reactivation", "other"]>>;
3317
3767
  entityScope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
3318
3768
  description: import("zod").ZodOptional<import("zod").ZodString>;
3319
3769
  template: import("zod").ZodOptional<import("zod").ZodString>;
@@ -3327,7 +3777,7 @@ export declare const toolDefinitions: {
3327
3777
  event_name?: string | undefined;
3328
3778
  selector?: string | undefined;
3329
3779
  where?: {
3330
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3780
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3331
3781
  field_path: string;
3332
3782
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3333
3783
  }[] | undefined;
@@ -3337,7 +3787,7 @@ export declare const toolDefinitions: {
3337
3787
  description?: string | undefined;
3338
3788
  position?: number | undefined;
3339
3789
  template?: string | undefined;
3340
- category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3790
+ category?: "other" | "engagement" | "referral" | "purchase" | "install" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "checkout" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3341
3791
  entityScope?: "account" | "person" | undefined;
3342
3792
  funnelRole?: "milestone" | "stage" | "off_ramp" | "return" | undefined;
3343
3793
  reactivatesChurned?: boolean | undefined;
@@ -3348,7 +3798,7 @@ export declare const toolDefinitions: {
3348
3798
  event_name?: string | undefined;
3349
3799
  selector?: string | undefined;
3350
3800
  where?: {
3351
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3801
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3352
3802
  field_path: string;
3353
3803
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3354
3804
  }[] | undefined;
@@ -3358,7 +3808,7 @@ export declare const toolDefinitions: {
3358
3808
  description?: string | undefined;
3359
3809
  position?: number | undefined;
3360
3810
  template?: string | undefined;
3361
- category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3811
+ category?: "other" | "engagement" | "referral" | "purchase" | "install" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "checkout" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3362
3812
  entityScope?: "account" | "person" | undefined;
3363
3813
  funnelRole?: "milestone" | "stage" | "off_ramp" | "return" | undefined;
3364
3814
  reactivatesChurned?: boolean | undefined;
@@ -3370,7 +3820,7 @@ export declare const toolDefinitions: {
3370
3820
  event_name?: string | undefined;
3371
3821
  selector?: string | undefined;
3372
3822
  where?: {
3373
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3823
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3374
3824
  field_path: string;
3375
3825
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3376
3826
  }[] | undefined;
@@ -3406,14 +3856,14 @@ export declare const toolDefinitions: {
3406
3856
  target_url: import("zod").ZodOptional<import("zod").ZodString>;
3407
3857
  where: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
3408
3858
  field_path: import("zod").ZodString;
3409
- operator: import("zod").ZodEnum<["equals", "not_equals", "in", "exists", "not_exists"]>;
3859
+ operator: import("zod").ZodEnum<["equals", "not_equals", "in", "contains", "gt", "gte", "lt", "lte", "exists", "not_exists"]>;
3410
3860
  value: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>, "many">]>>;
3411
3861
  }, "strip", import("zod").ZodTypeAny, {
3412
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3862
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3413
3863
  field_path: string;
3414
3864
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3415
3865
  }, {
3416
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3866
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3417
3867
  field_path: string;
3418
3868
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3419
3869
  }>, "many">>;
@@ -3423,7 +3873,7 @@ export declare const toolDefinitions: {
3423
3873
  event_name?: string | undefined;
3424
3874
  selector?: string | undefined;
3425
3875
  where?: {
3426
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3876
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3427
3877
  field_path: string;
3428
3878
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3429
3879
  }[] | undefined;
@@ -3434,14 +3884,14 @@ export declare const toolDefinitions: {
3434
3884
  event_name?: string | undefined;
3435
3885
  selector?: string | undefined;
3436
3886
  where?: {
3437
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3887
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3438
3888
  field_path: string;
3439
3889
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3440
3890
  }[] | undefined;
3441
3891
  target_url?: string | undefined;
3442
3892
  revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3443
3893
  }>, "many">>;
3444
- category: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "engagement", "expansion", "referral", "completion", "retention", "advocacy", "churn", "reactivation", "other"]>>;
3894
+ category: import("zod").ZodOptional<import("zod").ZodEnum<["install", "purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "checkout", "engagement", "expansion", "referral", "completion", "retention", "advocacy", "churn", "reactivation", "other"]>>;
3445
3895
  entityScope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
3446
3896
  description: import("zod").ZodOptional<import("zod").ZodString>;
3447
3897
  position: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
@@ -3458,14 +3908,14 @@ export declare const toolDefinitions: {
3458
3908
  event_name?: string | undefined;
3459
3909
  selector?: string | undefined;
3460
3910
  where?: {
3461
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3911
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3462
3912
  field_path: string;
3463
3913
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3464
3914
  }[] | undefined;
3465
3915
  target_url?: string | undefined;
3466
3916
  revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3467
3917
  }[] | undefined;
3468
- category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3918
+ category?: "other" | "engagement" | "referral" | "purchase" | "install" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "checkout" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3469
3919
  entityScope?: "account" | "person" | undefined;
3470
3920
  funnelRole?: "milestone" | "stage" | "off_ramp" | "return" | null | undefined;
3471
3921
  reactivatesChurned?: boolean | null | undefined;
@@ -3480,14 +3930,14 @@ export declare const toolDefinitions: {
3480
3930
  event_name?: string | undefined;
3481
3931
  selector?: string | undefined;
3482
3932
  where?: {
3483
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3933
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3484
3934
  field_path: string;
3485
3935
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3486
3936
  }[] | undefined;
3487
3937
  target_url?: string | undefined;
3488
3938
  revenue_stream?: "dedupe_with_billing" | "additive" | undefined;
3489
3939
  }[] | undefined;
3490
- category?: "other" | "engagement" | "referral" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3940
+ category?: "other" | "engagement" | "referral" | "purchase" | "install" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | "checkout" | "expansion" | "completion" | "retention" | "advocacy" | "churn" | "reactivation" | undefined;
3491
3941
  entityScope?: "account" | "person" | undefined;
3492
3942
  funnelRole?: "milestone" | "stage" | "off_ramp" | "return" | null | undefined;
3493
3943
  reactivatesChurned?: boolean | null | undefined;
@@ -3501,7 +3951,7 @@ export declare const toolDefinitions: {
3501
3951
  event_name?: string | undefined;
3502
3952
  selector?: string | undefined;
3503
3953
  where?: {
3504
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3954
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
3505
3955
  field_path: string;
3506
3956
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
3507
3957
  }[] | undefined;
@@ -3544,10 +3994,10 @@ export declare const toolDefinitions: {
3544
3994
  sourceOfTruth: import("zod").ZodEnum<["stripe", "shopify", "quickbooks", "hubspot", "server", "sdk", "manual"]>;
3545
3995
  confirm: import("zod").ZodOptional<import("zod").ZodBoolean>;
3546
3996
  }, "strip", import("zod").ZodTypeAny, {
3547
- sourceOfTruth: "manual" | "sdk" | "stripe" | "shopify" | "quickbooks" | "hubspot" | "server";
3997
+ sourceOfTruth: "manual" | "sdk" | "server" | "stripe" | "shopify" | "quickbooks" | "hubspot";
3548
3998
  confirm?: boolean | undefined;
3549
3999
  }, {
3550
- sourceOfTruth: "manual" | "sdk" | "stripe" | "shopify" | "quickbooks" | "hubspot" | "server";
4000
+ sourceOfTruth: "manual" | "sdk" | "server" | "stripe" | "shopify" | "quickbooks" | "hubspot";
3551
4001
  confirm?: boolean | undefined;
3552
4002
  }>;
3553
4003
  handler: (args: {
@@ -5882,14 +6332,14 @@ export declare const toolDefinitions: {
5882
6332
  includeArchived: import("zod").ZodOptional<import("zod").ZodBoolean>;
5883
6333
  }, "strip", import("zod").ZodTypeAny, {
5884
6334
  search?: string | undefined;
6335
+ includeArchived?: boolean | undefined;
5885
6336
  pipeline?: "transactional" | "marketing" | undefined;
5886
6337
  channel?: "email" | "mobile_push" | "inbox" | "web_push" | undefined;
5887
- includeArchived?: boolean | undefined;
5888
6338
  }, {
5889
6339
  search?: string | undefined;
6340
+ includeArchived?: boolean | undefined;
5890
6341
  pipeline?: "transactional" | "marketing" | undefined;
5891
6342
  channel?: "email" | "mobile_push" | "inbox" | "web_push" | undefined;
5892
- includeArchived?: boolean | undefined;
5893
6343
  }>;
5894
6344
  handler: (args: {
5895
6345
  pipeline?: "transactional" | "marketing";
@@ -6186,6 +6636,7 @@ export declare const toolDefinitions: {
6186
6636
  description: string;
6187
6637
  schema: import("zod").ZodObject<{
6188
6638
  communicationId: import("zod").ZodString;
6639
+ title: import("zod").ZodOptional<import("zod").ZodString>;
6189
6640
  subject: import("zod").ZodOptional<import("zod").ZodString>;
6190
6641
  slots: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>>;
6191
6642
  blocks: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
@@ -6269,6 +6720,7 @@ export declare const toolDefinitions: {
6269
6720
  status?: "active" | "draft" | "paused" | undefined;
6270
6721
  subject?: string | undefined;
6271
6722
  intent?: "replace" | "compete" | undefined;
6723
+ title?: string | undefined;
6272
6724
  categoryId?: string | undefined;
6273
6725
  slots?: Record<string, string> | undefined;
6274
6726
  blocks?: {
@@ -6304,6 +6756,7 @@ export declare const toolDefinitions: {
6304
6756
  status?: "active" | "draft" | "paused" | undefined;
6305
6757
  subject?: string | undefined;
6306
6758
  intent?: "replace" | "compete" | undefined;
6759
+ title?: string | undefined;
6307
6760
  categoryId?: string | undefined;
6308
6761
  slots?: Record<string, string> | undefined;
6309
6762
  blocks?: {
@@ -6336,6 +6789,7 @@ export declare const toolDefinitions: {
6336
6789
  }>;
6337
6790
  handler: (args: {
6338
6791
  communicationId: string;
6792
+ title?: string;
6339
6793
  subject?: string;
6340
6794
  slots?: Record<string, string>;
6341
6795
  blocks?: import("./letter-blocks.js").LetterBlockInput[];
@@ -6778,6 +7232,48 @@ export declare const toolDefinitions: {
6778
7232
  } & {
6779
7233
  group: ToolGroup;
6780
7234
  };
7235
+ update_journey: {
7236
+ description: string;
7237
+ schema: import("zod").ZodObject<{
7238
+ journeyId: import("zod").ZodString;
7239
+ name: import("zod").ZodOptional<import("zod").ZodString>;
7240
+ description: import("zod").ZodOptional<import("zod").ZodString>;
7241
+ audience_bucket: import("zod").ZodOptional<import("zod").ZodEnum<["production", "beta", "dev"]>>;
7242
+ attributionWindowDays: import("zod").ZodOptional<import("zod").ZodNumber>;
7243
+ }, "strip", import("zod").ZodTypeAny, {
7244
+ journeyId: string;
7245
+ name?: string | undefined;
7246
+ attributionWindowDays?: number | undefined;
7247
+ description?: string | undefined;
7248
+ audience_bucket?: "production" | "beta" | "dev" | undefined;
7249
+ }, {
7250
+ journeyId: string;
7251
+ name?: string | undefined;
7252
+ attributionWindowDays?: number | undefined;
7253
+ description?: string | undefined;
7254
+ audience_bucket?: "production" | "beta" | "dev" | undefined;
7255
+ }>;
7256
+ handler: ({ journeyId, name, description, audience_bucket, attributionWindowDays, }: {
7257
+ journeyId: string;
7258
+ name?: string;
7259
+ description?: string;
7260
+ audience_bucket?: "production" | "beta" | "dev";
7261
+ attributionWindowDays?: number;
7262
+ }) => Promise<{
7263
+ content: {
7264
+ type: "text";
7265
+ text: string;
7266
+ }[];
7267
+ isError: boolean;
7268
+ } | {
7269
+ content: {
7270
+ type: "text";
7271
+ text: string;
7272
+ }[];
7273
+ }>;
7274
+ } & {
7275
+ group: ToolGroup;
7276
+ };
6781
7277
  create_journey_from_template: {
6782
7278
  description: string;
6783
7279
  schema: import("zod").ZodObject<{
@@ -6835,6 +7331,8 @@ export declare const toolDefinitions: {
6835
7331
  schema: import("zod").ZodObject<{
6836
7332
  fromKeyEventId: import("zod").ZodString;
6837
7333
  toKeyEventId: import("zod").ZodString;
7334
+ mode: import("zod").ZodOptional<import("zod").ZodEnum<["starter_sequence", "template", "blank"]>>;
7335
+ templateId: import("zod").ZodOptional<import("zod").ZodString>;
6838
7336
  name: import("zod").ZodOptional<import("zod").ZodString>;
6839
7337
  description: import("zod").ZodOptional<import("zod").ZodString>;
6840
7338
  attributionWindowDays: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -6842,21 +7340,27 @@ export declare const toolDefinitions: {
6842
7340
  }, "strip", import("zod").ZodTypeAny, {
6843
7341
  fromKeyEventId: string;
6844
7342
  toKeyEventId: string;
7343
+ mode?: "starter_sequence" | "template" | "blank" | undefined;
6845
7344
  name?: string | undefined;
6846
7345
  attributionWindowDays?: number | undefined;
6847
7346
  description?: string | undefined;
7347
+ templateId?: string | undefined;
6848
7348
  audienceBucket?: "production" | "beta" | "dev" | undefined;
6849
7349
  }, {
6850
7350
  fromKeyEventId: string;
6851
7351
  toKeyEventId: string;
7352
+ mode?: "starter_sequence" | "template" | "blank" | undefined;
6852
7353
  name?: string | undefined;
6853
7354
  attributionWindowDays?: number | undefined;
6854
7355
  description?: string | undefined;
7356
+ templateId?: string | undefined;
6855
7357
  audienceBucket?: "production" | "beta" | "dev" | undefined;
6856
7358
  }>;
6857
- handler: ({ fromKeyEventId, toKeyEventId, name, description, attributionWindowDays, audienceBucket, }: {
7359
+ handler: ({ fromKeyEventId, toKeyEventId, mode, templateId, name, description, attributionWindowDays, audienceBucket, }: {
6858
7360
  fromKeyEventId: string;
6859
7361
  toKeyEventId: string;
7362
+ mode?: "starter_sequence" | "template" | "blank";
7363
+ templateId?: string;
6860
7364
  name?: string;
6861
7365
  description?: string;
6862
7366
  attributionWindowDays?: number;
@@ -6876,6 +7380,62 @@ export declare const toolDefinitions: {
6876
7380
  } & {
6877
7381
  group: ToolGroup;
6878
7382
  };
7383
+ sync_journey_funnel_exits: {
7384
+ description: string;
7385
+ schema: import("zod").ZodObject<{
7386
+ journeyId: import("zod").ZodString;
7387
+ }, "strip", import("zod").ZodTypeAny, {
7388
+ journeyId: string;
7389
+ }, {
7390
+ journeyId: string;
7391
+ }>;
7392
+ handler: ({ journeyId }: {
7393
+ journeyId: string;
7394
+ }) => Promise<{
7395
+ content: {
7396
+ type: "text";
7397
+ text: string;
7398
+ }[];
7399
+ isError: boolean;
7400
+ } | {
7401
+ content: {
7402
+ type: "text";
7403
+ text: string;
7404
+ }[];
7405
+ }>;
7406
+ } & {
7407
+ group: ToolGroup;
7408
+ };
7409
+ fill_funnel_gaps: {
7410
+ description: string;
7411
+ schema: import("zod").ZodObject<{
7412
+ gapIds: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
7413
+ audienceBucket: import("zod").ZodOptional<import("zod").ZodEnum<["production", "beta", "dev"]>>;
7414
+ }, "strip", import("zod").ZodTypeAny, {
7415
+ audienceBucket?: "production" | "beta" | "dev" | undefined;
7416
+ gapIds?: string[] | undefined;
7417
+ }, {
7418
+ audienceBucket?: "production" | "beta" | "dev" | undefined;
7419
+ gapIds?: string[] | undefined;
7420
+ }>;
7421
+ handler: ({ gapIds, audienceBucket, }: {
7422
+ gapIds?: string[];
7423
+ audienceBucket?: "production" | "beta" | "dev";
7424
+ }) => Promise<{
7425
+ content: {
7426
+ type: "text";
7427
+ text: string;
7428
+ }[];
7429
+ isError: boolean;
7430
+ } | {
7431
+ content: {
7432
+ type: "text";
7433
+ text: string;
7434
+ }[];
7435
+ }>;
7436
+ } & {
7437
+ group: ToolGroup;
7438
+ };
6879
7439
  list_trigger_contracts: {
6880
7440
  description: string;
6881
7441
  schema: import("zod").ZodObject<{}, "strip", import("zod").ZodTypeAny, {}, {}>;
@@ -7040,7 +7600,7 @@ export declare const toolDefinitions: {
7040
7600
  key_event_id: import("zod").ZodOptional<import("zod").ZodString>;
7041
7601
  scope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
7042
7602
  field_path: import("zod").ZodOptional<import("zod").ZodString>;
7043
- operator: import("zod").ZodOptional<import("zod").ZodEnum<["equals", "not_equals", "greater_than", "less_than", "in", "exists", "not_exists"]>>;
7603
+ operator: import("zod").ZodOptional<import("zod").ZodEnum<["equals", "not_equals", "contains", "greater_than", "less_than", "in", "exists", "not_exists"]>>;
7044
7604
  value: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>, "many">]>>;
7045
7605
  event_name: import("zod").ZodOptional<import("zod").ZodString>;
7046
7606
  window_days: import("zod").ZodOptional<import("zod").ZodNumber>;
@@ -7048,7 +7608,7 @@ export declare const toolDefinitions: {
7048
7608
  }, "strip", import("zod").ZodTypeAny, {
7049
7609
  kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
7050
7610
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7051
- operator?: "equals" | "not_equals" | "exists" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
7611
+ operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
7052
7612
  event_name?: string | undefined;
7053
7613
  key_event_id?: string | undefined;
7054
7614
  field_path?: string | undefined;
@@ -7058,7 +7618,7 @@ export declare const toolDefinitions: {
7058
7618
  }, {
7059
7619
  kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
7060
7620
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7061
- operator?: "equals" | "not_equals" | "exists" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
7621
+ operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
7062
7622
  event_name?: string | undefined;
7063
7623
  key_event_id?: string | undefined;
7064
7624
  field_path?: string | undefined;
@@ -7073,7 +7633,7 @@ export declare const toolDefinitions: {
7073
7633
  condition: {
7074
7634
  kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
7075
7635
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7076
- operator?: "equals" | "not_equals" | "exists" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
7636
+ operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
7077
7637
  event_name?: string | undefined;
7078
7638
  key_event_id?: string | undefined;
7079
7639
  field_path?: string | undefined;
@@ -7090,7 +7650,7 @@ export declare const toolDefinitions: {
7090
7650
  condition: {
7091
7651
  kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
7092
7652
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7093
- operator?: "equals" | "not_equals" | "exists" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
7653
+ operator?: "equals" | "not_equals" | "exists" | "contains" | "in" | "not_exists" | "greater_than" | "less_than" | undefined;
7094
7654
  event_name?: string | undefined;
7095
7655
  key_event_id?: string | undefined;
7096
7656
  field_path?: string | undefined;
@@ -7574,14 +8134,14 @@ export declare const toolDefinitions: {
7574
8134
  event: import("zod").ZodOptional<import("zod").ZodString>;
7575
8135
  where: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
7576
8136
  field_path: import("zod").ZodString;
7577
- operator: import("zod").ZodEnum<["equals", "not_equals", "in", "exists", "not_exists"]>;
8137
+ operator: import("zod").ZodEnum<["equals", "not_equals", "in", "contains", "gt", "gte", "lt", "lte", "exists", "not_exists"]>;
7578
8138
  value: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>, "many">]>>;
7579
8139
  }, "strip", import("zod").ZodTypeAny, {
7580
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8140
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7581
8141
  field_path: string;
7582
8142
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7583
8143
  }, {
7584
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8144
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7585
8145
  field_path: string;
7586
8146
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7587
8147
  }>, "many">>;
@@ -7590,15 +8150,22 @@ export declare const toolDefinitions: {
7590
8150
  scope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
7591
8151
  window_days: import("zod").ZodOptional<import("zod").ZodNumber>;
7592
8152
  attribute: import("zod").ZodOptional<import("zod").ZodString>;
7593
- op: import("zod").ZodOptional<import("zod").ZodEnum<["is", "is_not", "exists"]>>;
8153
+ op: import("zod").ZodOptional<import("zod").ZodEnum<["is", "is_not", "contains", "exists"]>>;
7594
8154
  value: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
8155
+ brought_by_campaign: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
8156
+ campaign_id: import("zod").ZodString;
8157
+ }, "strip", import("zod").ZodTypeAny, {
8158
+ campaign_id: string;
8159
+ }, {
8160
+ campaign_id: string;
8161
+ }>]>>;
7595
8162
  }, "strip", import("zod").ZodTypeAny, {
7596
8163
  event?: string | undefined;
7597
8164
  value?: string | number | boolean | undefined;
7598
8165
  key_event_id?: string | undefined;
7599
8166
  verb?: "has" | "hasnt" | undefined;
7600
8167
  where?: {
7601
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8168
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7602
8169
  field_path: string;
7603
8170
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7604
8171
  }[] | undefined;
@@ -7606,14 +8173,17 @@ export declare const toolDefinitions: {
7606
8173
  scope?: "account" | "person" | undefined;
7607
8174
  window_days?: number | undefined;
7608
8175
  attribute?: string | undefined;
7609
- op?: "exists" | "is" | "is_not" | undefined;
8176
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8177
+ brought_by_campaign?: string | {
8178
+ campaign_id: string;
8179
+ } | undefined;
7610
8180
  }, {
7611
8181
  event?: string | undefined;
7612
8182
  value?: string | number | boolean | undefined;
7613
8183
  key_event_id?: string | undefined;
7614
8184
  verb?: "has" | "hasnt" | undefined;
7615
8185
  where?: {
7616
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8186
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7617
8187
  field_path: string;
7618
8188
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7619
8189
  }[] | undefined;
@@ -7621,7 +8191,10 @@ export declare const toolDefinitions: {
7621
8191
  scope?: "account" | "person" | undefined;
7622
8192
  window_days?: number | undefined;
7623
8193
  attribute?: string | undefined;
7624
- op?: "exists" | "is" | "is_not" | undefined;
8194
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8195
+ brought_by_campaign?: string | {
8196
+ campaign_id: string;
8197
+ } | undefined;
7625
8198
  }>, "many">;
7626
8199
  }, "strip", import("zod").ZodTypeAny, {
7627
8200
  match: "all" | "any";
@@ -7631,7 +8204,7 @@ export declare const toolDefinitions: {
7631
8204
  key_event_id?: string | undefined;
7632
8205
  verb?: "has" | "hasnt" | undefined;
7633
8206
  where?: {
7634
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8207
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7635
8208
  field_path: string;
7636
8209
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7637
8210
  }[] | undefined;
@@ -7639,7 +8212,10 @@ export declare const toolDefinitions: {
7639
8212
  scope?: "account" | "person" | undefined;
7640
8213
  window_days?: number | undefined;
7641
8214
  attribute?: string | undefined;
7642
- op?: "exists" | "is" | "is_not" | undefined;
8215
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8216
+ brought_by_campaign?: string | {
8217
+ campaign_id: string;
8218
+ } | undefined;
7643
8219
  }[];
7644
8220
  }, {
7645
8221
  match: "all" | "any";
@@ -7649,7 +8225,7 @@ export declare const toolDefinitions: {
7649
8225
  key_event_id?: string | undefined;
7650
8226
  verb?: "has" | "hasnt" | undefined;
7651
8227
  where?: {
7652
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8228
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7653
8229
  field_path: string;
7654
8230
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7655
8231
  }[] | undefined;
@@ -7657,7 +8233,10 @@ export declare const toolDefinitions: {
7657
8233
  scope?: "account" | "person" | undefined;
7658
8234
  window_days?: number | undefined;
7659
8235
  attribute?: string | undefined;
7660
- op?: "exists" | "is" | "is_not" | undefined;
8236
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8237
+ brought_by_campaign?: string | {
8238
+ campaign_id: string;
8239
+ } | undefined;
7661
8240
  }[];
7662
8241
  }>, "many">;
7663
8242
  }, "strip", import("zod").ZodTypeAny, {
@@ -7670,7 +8249,7 @@ export declare const toolDefinitions: {
7670
8249
  key_event_id?: string | undefined;
7671
8250
  verb?: "has" | "hasnt" | undefined;
7672
8251
  where?: {
7673
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8252
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7674
8253
  field_path: string;
7675
8254
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7676
8255
  }[] | undefined;
@@ -7678,7 +8257,10 @@ export declare const toolDefinitions: {
7678
8257
  scope?: "account" | "person" | undefined;
7679
8258
  window_days?: number | undefined;
7680
8259
  attribute?: string | undefined;
7681
- op?: "exists" | "is" | "is_not" | undefined;
8260
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8261
+ brought_by_campaign?: string | {
8262
+ campaign_id: string;
8263
+ } | undefined;
7682
8264
  }[];
7683
8265
  }[];
7684
8266
  }, {
@@ -7691,7 +8273,7 @@ export declare const toolDefinitions: {
7691
8273
  key_event_id?: string | undefined;
7692
8274
  verb?: "has" | "hasnt" | undefined;
7693
8275
  where?: {
7694
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8276
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7695
8277
  field_path: string;
7696
8278
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7697
8279
  }[] | undefined;
@@ -7699,7 +8281,10 @@ export declare const toolDefinitions: {
7699
8281
  scope?: "account" | "person" | undefined;
7700
8282
  window_days?: number | undefined;
7701
8283
  attribute?: string | undefined;
7702
- op?: "exists" | "is" | "is_not" | undefined;
8284
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8285
+ brought_by_campaign?: string | {
8286
+ campaign_id: string;
8287
+ } | undefined;
7703
8288
  }[];
7704
8289
  }[];
7705
8290
  }>>;
@@ -7717,7 +8302,7 @@ export declare const toolDefinitions: {
7717
8302
  key_event_id?: string | undefined;
7718
8303
  verb?: "has" | "hasnt" | undefined;
7719
8304
  where?: {
7720
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8305
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7721
8306
  field_path: string;
7722
8307
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7723
8308
  }[] | undefined;
@@ -7725,7 +8310,10 @@ export declare const toolDefinitions: {
7725
8310
  scope?: "account" | "person" | undefined;
7726
8311
  window_days?: number | undefined;
7727
8312
  attribute?: string | undefined;
7728
- op?: "exists" | "is" | "is_not" | undefined;
8313
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8314
+ brought_by_campaign?: string | {
8315
+ campaign_id: string;
8316
+ } | undefined;
7729
8317
  }[];
7730
8318
  }[];
7731
8319
  } | undefined;
@@ -7744,7 +8332,7 @@ export declare const toolDefinitions: {
7744
8332
  key_event_id?: string | undefined;
7745
8333
  verb?: "has" | "hasnt" | undefined;
7746
8334
  where?: {
7747
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8335
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7748
8336
  field_path: string;
7749
8337
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7750
8338
  }[] | undefined;
@@ -7752,7 +8340,10 @@ export declare const toolDefinitions: {
7752
8340
  scope?: "account" | "person" | undefined;
7753
8341
  window_days?: number | undefined;
7754
8342
  attribute?: string | undefined;
7755
- op?: "exists" | "is" | "is_not" | undefined;
8343
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8344
+ brought_by_campaign?: string | {
8345
+ campaign_id: string;
8346
+ } | undefined;
7756
8347
  }[];
7757
8348
  }[];
7758
8349
  } | undefined;
@@ -7790,14 +8381,14 @@ export declare const toolDefinitions: {
7790
8381
  event: import("zod").ZodOptional<import("zod").ZodString>;
7791
8382
  where: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
7792
8383
  field_path: import("zod").ZodString;
7793
- operator: import("zod").ZodEnum<["equals", "not_equals", "in", "exists", "not_exists"]>;
8384
+ operator: import("zod").ZodEnum<["equals", "not_equals", "in", "contains", "gt", "gte", "lt", "lte", "exists", "not_exists"]>;
7794
8385
  value: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>, "many">]>>;
7795
8386
  }, "strip", import("zod").ZodTypeAny, {
7796
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8387
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7797
8388
  field_path: string;
7798
8389
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7799
8390
  }, {
7800
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8391
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7801
8392
  field_path: string;
7802
8393
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7803
8394
  }>, "many">>;
@@ -7806,15 +8397,22 @@ export declare const toolDefinitions: {
7806
8397
  scope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
7807
8398
  window_days: import("zod").ZodOptional<import("zod").ZodNumber>;
7808
8399
  attribute: import("zod").ZodOptional<import("zod").ZodString>;
7809
- op: import("zod").ZodOptional<import("zod").ZodEnum<["is", "is_not", "exists"]>>;
8400
+ op: import("zod").ZodOptional<import("zod").ZodEnum<["is", "is_not", "contains", "exists"]>>;
7810
8401
  value: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>>;
8402
+ brought_by_campaign: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodString, import("zod").ZodObject<{
8403
+ campaign_id: import("zod").ZodString;
8404
+ }, "strip", import("zod").ZodTypeAny, {
8405
+ campaign_id: string;
8406
+ }, {
8407
+ campaign_id: string;
8408
+ }>]>>;
7811
8409
  }, "strip", import("zod").ZodTypeAny, {
7812
8410
  event?: string | undefined;
7813
8411
  value?: string | number | boolean | undefined;
7814
8412
  key_event_id?: string | undefined;
7815
8413
  verb?: "has" | "hasnt" | undefined;
7816
8414
  where?: {
7817
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8415
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7818
8416
  field_path: string;
7819
8417
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7820
8418
  }[] | undefined;
@@ -7822,14 +8420,17 @@ export declare const toolDefinitions: {
7822
8420
  scope?: "account" | "person" | undefined;
7823
8421
  window_days?: number | undefined;
7824
8422
  attribute?: string | undefined;
7825
- op?: "exists" | "is" | "is_not" | undefined;
8423
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8424
+ brought_by_campaign?: string | {
8425
+ campaign_id: string;
8426
+ } | undefined;
7826
8427
  }, {
7827
8428
  event?: string | undefined;
7828
8429
  value?: string | number | boolean | undefined;
7829
8430
  key_event_id?: string | undefined;
7830
8431
  verb?: "has" | "hasnt" | undefined;
7831
8432
  where?: {
7832
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8433
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7833
8434
  field_path: string;
7834
8435
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7835
8436
  }[] | undefined;
@@ -7837,7 +8438,10 @@ export declare const toolDefinitions: {
7837
8438
  scope?: "account" | "person" | undefined;
7838
8439
  window_days?: number | undefined;
7839
8440
  attribute?: string | undefined;
7840
- op?: "exists" | "is" | "is_not" | undefined;
8441
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8442
+ brought_by_campaign?: string | {
8443
+ campaign_id: string;
8444
+ } | undefined;
7841
8445
  }>, "many">;
7842
8446
  }, "strip", import("zod").ZodTypeAny, {
7843
8447
  match: "all" | "any";
@@ -7847,7 +8451,7 @@ export declare const toolDefinitions: {
7847
8451
  key_event_id?: string | undefined;
7848
8452
  verb?: "has" | "hasnt" | undefined;
7849
8453
  where?: {
7850
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8454
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7851
8455
  field_path: string;
7852
8456
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7853
8457
  }[] | undefined;
@@ -7855,7 +8459,10 @@ export declare const toolDefinitions: {
7855
8459
  scope?: "account" | "person" | undefined;
7856
8460
  window_days?: number | undefined;
7857
8461
  attribute?: string | undefined;
7858
- op?: "exists" | "is" | "is_not" | undefined;
8462
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8463
+ brought_by_campaign?: string | {
8464
+ campaign_id: string;
8465
+ } | undefined;
7859
8466
  }[];
7860
8467
  }, {
7861
8468
  match: "all" | "any";
@@ -7865,7 +8472,7 @@ export declare const toolDefinitions: {
7865
8472
  key_event_id?: string | undefined;
7866
8473
  verb?: "has" | "hasnt" | undefined;
7867
8474
  where?: {
7868
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8475
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7869
8476
  field_path: string;
7870
8477
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7871
8478
  }[] | undefined;
@@ -7873,7 +8480,10 @@ export declare const toolDefinitions: {
7873
8480
  scope?: "account" | "person" | undefined;
7874
8481
  window_days?: number | undefined;
7875
8482
  attribute?: string | undefined;
7876
- op?: "exists" | "is" | "is_not" | undefined;
8483
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8484
+ brought_by_campaign?: string | {
8485
+ campaign_id: string;
8486
+ } | undefined;
7877
8487
  }[];
7878
8488
  }>, "many">;
7879
8489
  }, "strip", import("zod").ZodTypeAny, {
@@ -7886,7 +8496,7 @@ export declare const toolDefinitions: {
7886
8496
  key_event_id?: string | undefined;
7887
8497
  verb?: "has" | "hasnt" | undefined;
7888
8498
  where?: {
7889
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8499
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7890
8500
  field_path: string;
7891
8501
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7892
8502
  }[] | undefined;
@@ -7894,7 +8504,10 @@ export declare const toolDefinitions: {
7894
8504
  scope?: "account" | "person" | undefined;
7895
8505
  window_days?: number | undefined;
7896
8506
  attribute?: string | undefined;
7897
- op?: "exists" | "is" | "is_not" | undefined;
8507
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8508
+ brought_by_campaign?: string | {
8509
+ campaign_id: string;
8510
+ } | undefined;
7898
8511
  }[];
7899
8512
  }[];
7900
8513
  }, {
@@ -7907,7 +8520,7 @@ export declare const toolDefinitions: {
7907
8520
  key_event_id?: string | undefined;
7908
8521
  verb?: "has" | "hasnt" | undefined;
7909
8522
  where?: {
7910
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8523
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7911
8524
  field_path: string;
7912
8525
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7913
8526
  }[] | undefined;
@@ -7915,7 +8528,10 @@ export declare const toolDefinitions: {
7915
8528
  scope?: "account" | "person" | undefined;
7916
8529
  window_days?: number | undefined;
7917
8530
  attribute?: string | undefined;
7918
- op?: "exists" | "is" | "is_not" | undefined;
8531
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8532
+ brought_by_campaign?: string | {
8533
+ campaign_id: string;
8534
+ } | undefined;
7919
8535
  }[];
7920
8536
  }[];
7921
8537
  }>>;
@@ -7934,7 +8550,7 @@ export declare const toolDefinitions: {
7934
8550
  key_event_id?: string | undefined;
7935
8551
  verb?: "has" | "hasnt" | undefined;
7936
8552
  where?: {
7937
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8553
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7938
8554
  field_path: string;
7939
8555
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7940
8556
  }[] | undefined;
@@ -7942,7 +8558,10 @@ export declare const toolDefinitions: {
7942
8558
  scope?: "account" | "person" | undefined;
7943
8559
  window_days?: number | undefined;
7944
8560
  attribute?: string | undefined;
7945
- op?: "exists" | "is" | "is_not" | undefined;
8561
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8562
+ brought_by_campaign?: string | {
8563
+ campaign_id: string;
8564
+ } | undefined;
7946
8565
  }[];
7947
8566
  }[];
7948
8567
  } | undefined;
@@ -7962,7 +8581,7 @@ export declare const toolDefinitions: {
7962
8581
  key_event_id?: string | undefined;
7963
8582
  verb?: "has" | "hasnt" | undefined;
7964
8583
  where?: {
7965
- operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
8584
+ operator: "equals" | "not_equals" | "exists" | "contains" | "gt" | "lt" | "gte" | "lte" | "in" | "not_exists";
7966
8585
  field_path: string;
7967
8586
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
7968
8587
  }[] | undefined;
@@ -7970,7 +8589,10 @@ export declare const toolDefinitions: {
7970
8589
  scope?: "account" | "person" | undefined;
7971
8590
  window_days?: number | undefined;
7972
8591
  attribute?: string | undefined;
7973
- op?: "exists" | "is" | "is_not" | undefined;
8592
+ op?: "exists" | "contains" | "is" | "is_not" | undefined;
8593
+ brought_by_campaign?: string | {
8594
+ campaign_id: string;
8595
+ } | undefined;
7974
8596
  }[];
7975
8597
  }[];
7976
8598
  } | undefined;
@@ -8642,13 +9264,17 @@ export declare const toolDefinitions: {
8642
9264
  description: string;
8643
9265
  schema: import("zod").ZodObject<{
8644
9266
  query: import("zod").ZodOptional<import("zod").ZodString>;
9267
+ includeArchived: import("zod").ZodOptional<import("zod").ZodBoolean>;
8645
9268
  }, "strip", import("zod").ZodTypeAny, {
8646
9269
  query?: string | undefined;
9270
+ includeArchived?: boolean | undefined;
8647
9271
  }, {
8648
9272
  query?: string | undefined;
9273
+ includeArchived?: boolean | undefined;
8649
9274
  }>;
8650
- handler: ({ query }: {
9275
+ handler: ({ query, includeArchived }: {
8651
9276
  query?: string;
9277
+ includeArchived?: boolean;
8652
9278
  }) => Promise<{
8653
9279
  content: {
8654
9280
  type: "text";
@@ -8658,6 +9284,66 @@ export declare const toolDefinitions: {
8658
9284
  } & {
8659
9285
  group: ToolGroup;
8660
9286
  };
9287
+ update_belief: {
9288
+ description: string;
9289
+ schema: import("zod").ZodObject<{
9290
+ beliefId: import("zod").ZodString;
9291
+ statement: import("zod").ZodString;
9292
+ }, "strip", import("zod").ZodTypeAny, {
9293
+ beliefId: string;
9294
+ statement: string;
9295
+ }, {
9296
+ beliefId: string;
9297
+ statement: string;
9298
+ }>;
9299
+ handler: ({ beliefId, statement }: {
9300
+ beliefId: string;
9301
+ statement: string;
9302
+ }) => Promise<{
9303
+ content: {
9304
+ type: "text";
9305
+ text: string;
9306
+ }[];
9307
+ isError: boolean;
9308
+ } | {
9309
+ content: {
9310
+ type: "text";
9311
+ text: string;
9312
+ }[];
9313
+ }>;
9314
+ } & {
9315
+ group: ToolGroup;
9316
+ };
9317
+ archive_belief: {
9318
+ description: string;
9319
+ schema: import("zod").ZodObject<{
9320
+ beliefId: import("zod").ZodString;
9321
+ archived: import("zod").ZodOptional<import("zod").ZodBoolean>;
9322
+ }, "strip", import("zod").ZodTypeAny, {
9323
+ beliefId: string;
9324
+ archived?: boolean | undefined;
9325
+ }, {
9326
+ beliefId: string;
9327
+ archived?: boolean | undefined;
9328
+ }>;
9329
+ handler: ({ beliefId, archived }: {
9330
+ beliefId: string;
9331
+ archived?: boolean;
9332
+ }) => Promise<{
9333
+ content: {
9334
+ type: "text";
9335
+ text: string;
9336
+ }[];
9337
+ isError: boolean;
9338
+ } | {
9339
+ content: {
9340
+ type: "text";
9341
+ text: string;
9342
+ }[];
9343
+ }>;
9344
+ } & {
9345
+ group: ToolGroup;
9346
+ };
8661
9347
  merge_beliefs: {
8662
9348
  description: string;
8663
9349
  schema: import("zod").ZodObject<{
@@ -8849,6 +9535,7 @@ export declare const toolDefinitions: {
8849
9535
  name: import("zod").ZodOptional<import("zod").ZodString>;
8850
9536
  surface: import("zod").ZodOptional<import("zod").ZodEnum<["web", "mobile", "paid_channel"]>>;
8851
9537
  hypothesis: import("zod").ZodOptional<import("zod").ZodString>;
9538
+ beliefId: import("zod").ZodOptional<import("zod").ZodString>;
8852
9539
  targetUrl: import("zod").ZodOptional<import("zod").ZodString>;
8853
9540
  predictionId: import("zod").ZodOptional<import("zod").ZodString>;
8854
9541
  primaryMetricEvent: import("zod").ZodOptional<import("zod").ZodString>;
@@ -8859,6 +9546,7 @@ export declare const toolDefinitions: {
8859
9546
  hypothesis?: string | undefined;
8860
9547
  surface?: "web" | "mobile" | "paid_channel" | undefined;
8861
9548
  allocation?: "even" | "adaptive" | undefined;
9549
+ beliefId?: string | undefined;
8862
9550
  predictionId?: string | undefined;
8863
9551
  targetUrl?: string | undefined;
8864
9552
  primaryMetricEvent?: string | undefined;
@@ -8875,6 +9563,7 @@ export declare const toolDefinitions: {
8875
9563
  hypothesis?: string | undefined;
8876
9564
  surface?: "web" | "mobile" | "paid_channel" | undefined;
8877
9565
  allocation?: "even" | "adaptive" | undefined;
9566
+ beliefId?: string | undefined;
8878
9567
  predictionId?: string | undefined;
8879
9568
  targetUrl?: string | undefined;
8880
9569
  primaryMetricEvent?: string | undefined;
@@ -8891,6 +9580,7 @@ export declare const toolDefinitions: {
8891
9580
  name?: string;
8892
9581
  surface?: "web" | "mobile" | "paid_channel";
8893
9582
  hypothesis?: string;
9583
+ beliefId?: string;
8894
9584
  targetUrl?: string;
8895
9585
  predictionId?: string;
8896
9586
  primaryMetricEvent?: string;
@@ -9009,6 +9699,7 @@ export declare const toolDefinitions: {
9009
9699
  path: string;
9010
9700
  content: string;
9011
9701
  }>, "many">>;
9702
+ repo_root: import("zod").ZodOptional<import("zod").ZodString>;
9012
9703
  urls: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
9013
9704
  communication_ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
9014
9705
  journey_ids: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
@@ -9019,6 +9710,7 @@ export declare const toolDefinitions: {
9019
9710
  path: string;
9020
9711
  content: string;
9021
9712
  }[] | undefined;
9713
+ repo_root?: string | undefined;
9022
9714
  urls?: string[] | undefined;
9023
9715
  communication_ids?: string[] | undefined;
9024
9716
  journey_ids?: string[] | undefined;
@@ -9029,6 +9721,7 @@ export declare const toolDefinitions: {
9029
9721
  path: string;
9030
9722
  content: string;
9031
9723
  }[] | undefined;
9724
+ repo_root?: string | undefined;
9032
9725
  urls?: string[] | undefined;
9033
9726
  communication_ids?: string[] | undefined;
9034
9727
  journey_ids?: string[] | undefined;
@@ -9040,6 +9733,7 @@ export declare const toolDefinitions: {
9040
9733
  path: string;
9041
9734
  content: string;
9042
9735
  }>;
9736
+ repo_root?: string;
9043
9737
  urls?: string[];
9044
9738
  communication_ids?: string[];
9045
9739
  journey_ids?: string[];