@apex-inc/mcp-server 0.60.1 → 0.61.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/tools.d.ts CHANGED
@@ -2483,11 +2483,11 @@ export declare const toolDefinitions: {
2483
2483
  audience_id: import("zod").ZodString;
2484
2484
  confirm: import("zod").ZodLiteral<true>;
2485
2485
  }, "strip", import("zod").ZodTypeAny, {
2486
- audience_id: string;
2487
2486
  confirm: true;
2488
- }, {
2489
2487
  audience_id: string;
2488
+ }, {
2490
2489
  confirm: true;
2490
+ audience_id: string;
2491
2491
  }>;
2492
2492
  handler: (args: {
2493
2493
  audience_id: string;
@@ -2596,14 +2596,14 @@ export declare const toolDefinitions: {
2596
2596
  meaning: import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "signup", "subscription", "begin_checkout", "add_to_cart", "book_appointment", "request_quote", "contact", "something_else"]>;
2597
2597
  }, "strip", import("zod").ZodTypeAny, {
2598
2598
  event_name: string;
2599
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "begin_checkout" | "add_to_cart" | "book_appointment" | "request_quote" | "contact" | "something_else";
2599
+ meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2600
2600
  }, {
2601
2601
  event_name: string;
2602
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "begin_checkout" | "add_to_cart" | "book_appointment" | "request_quote" | "contact" | "something_else";
2602
+ meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2603
2603
  }>;
2604
2604
  handler: (args: {
2605
2605
  event_name: string;
2606
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "begin_checkout" | "add_to_cart" | "book_appointment" | "request_quote" | "contact" | "something_else";
2606
+ meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2607
2607
  }) => Promise<{
2608
2608
  content: {
2609
2609
  type: "text";
@@ -2636,19 +2636,19 @@ export declare const toolDefinitions: {
2636
2636
  }, "strip", import("zod").ZodTypeAny, {
2637
2637
  event_name: string;
2638
2638
  confirm: true;
2639
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "begin_checkout" | "add_to_cart" | "book_appointment" | "request_quote" | "contact" | "something_else";
2639
+ meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2640
2640
  name?: string | undefined;
2641
2641
  send_value?: boolean | undefined;
2642
2642
  }, {
2643
2643
  event_name: string;
2644
2644
  confirm: true;
2645
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "begin_checkout" | "add_to_cart" | "book_appointment" | "request_quote" | "contact" | "something_else";
2645
+ meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2646
2646
  name?: string | undefined;
2647
2647
  send_value?: boolean | undefined;
2648
2648
  }>;
2649
2649
  handler: (args: {
2650
2650
  event_name: string;
2651
- meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "begin_checkout" | "add_to_cart" | "book_appointment" | "request_quote" | "contact" | "something_else";
2651
+ meaning: "purchase" | "subscription" | "lead" | "qualified_lead" | "signup" | "add_to_cart" | "begin_checkout" | "book_appointment" | "request_quote" | "contact" | "something_else";
2652
2652
  send_value?: boolean;
2653
2653
  name?: string;
2654
2654
  confirm: true;
@@ -2893,6 +2893,311 @@ export declare const toolDefinitions: {
2893
2893
  } & {
2894
2894
  group: ToolGroup;
2895
2895
  };
2896
+ get_key_event: {
2897
+ description: string;
2898
+ schema: import("zod").ZodObject<{
2899
+ keyEventId: import("zod").ZodString;
2900
+ }, "strip", import("zod").ZodTypeAny, {
2901
+ keyEventId: string;
2902
+ }, {
2903
+ keyEventId: string;
2904
+ }>;
2905
+ handler: ({ keyEventId }: {
2906
+ keyEventId: string;
2907
+ }) => Promise<{
2908
+ isError?: boolean | undefined;
2909
+ content: {
2910
+ type: "text";
2911
+ text: string;
2912
+ }[];
2913
+ }>;
2914
+ } & {
2915
+ group: ToolGroup;
2916
+ };
2917
+ create_key_event: {
2918
+ description: string;
2919
+ schema: import("zod").ZodObject<{
2920
+ name: import("zod").ZodString;
2921
+ sources: import("zod").ZodArray<import("zod").ZodObject<{
2922
+ type: import("zod").ZodEnum<["custom_event", "form_submit"]>;
2923
+ event_name: import("zod").ZodOptional<import("zod").ZodString>;
2924
+ selector: import("zod").ZodOptional<import("zod").ZodString>;
2925
+ target_url: import("zod").ZodOptional<import("zod").ZodString>;
2926
+ where: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
2927
+ field_path: import("zod").ZodString;
2928
+ operator: import("zod").ZodEnum<["equals", "not_equals", "in", "exists", "not_exists"]>;
2929
+ 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">]>>;
2930
+ }, "strip", import("zod").ZodTypeAny, {
2931
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2932
+ field_path: string;
2933
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
2934
+ }, {
2935
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2936
+ field_path: string;
2937
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
2938
+ }>, "many">>;
2939
+ }, "strip", import("zod").ZodTypeAny, {
2940
+ type: "form_submit" | "custom_event";
2941
+ event_name?: string | undefined;
2942
+ selector?: string | undefined;
2943
+ target_url?: string | undefined;
2944
+ where?: {
2945
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2946
+ field_path: string;
2947
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
2948
+ }[] | undefined;
2949
+ }, {
2950
+ type: "form_submit" | "custom_event";
2951
+ event_name?: string | undefined;
2952
+ selector?: string | undefined;
2953
+ target_url?: string | undefined;
2954
+ where?: {
2955
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2956
+ field_path: string;
2957
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
2958
+ }[] | undefined;
2959
+ }>, "many">;
2960
+ category: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "engagement", "other"]>>;
2961
+ entityScope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
2962
+ description: import("zod").ZodOptional<import("zod").ZodString>;
2963
+ template: import("zod").ZodOptional<import("zod").ZodString>;
2964
+ }, "strip", import("zod").ZodTypeAny, {
2965
+ name: string;
2966
+ sources: {
2967
+ type: "form_submit" | "custom_event";
2968
+ event_name?: string | undefined;
2969
+ selector?: string | undefined;
2970
+ target_url?: string | undefined;
2971
+ where?: {
2972
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2973
+ field_path: string;
2974
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
2975
+ }[] | undefined;
2976
+ }[];
2977
+ description?: string | undefined;
2978
+ category?: "other" | "engagement" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | undefined;
2979
+ entityScope?: "account" | "person" | undefined;
2980
+ template?: string | undefined;
2981
+ }, {
2982
+ name: string;
2983
+ sources: {
2984
+ type: "form_submit" | "custom_event";
2985
+ event_name?: string | undefined;
2986
+ selector?: string | undefined;
2987
+ target_url?: string | undefined;
2988
+ where?: {
2989
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
2990
+ field_path: string;
2991
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
2992
+ }[] | undefined;
2993
+ }[];
2994
+ description?: string | undefined;
2995
+ category?: "other" | "engagement" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | undefined;
2996
+ entityScope?: "account" | "person" | undefined;
2997
+ template?: string | undefined;
2998
+ }>;
2999
+ handler: (args: {
3000
+ name: string;
3001
+ sources: {
3002
+ type: "form_submit" | "custom_event";
3003
+ event_name?: string | undefined;
3004
+ selector?: string | undefined;
3005
+ target_url?: string | undefined;
3006
+ where?: {
3007
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3008
+ field_path: string;
3009
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
3010
+ }[] | undefined;
3011
+ }[];
3012
+ category?: string;
3013
+ entityScope?: string;
3014
+ description?: string;
3015
+ template?: string;
3016
+ }) => Promise<{
3017
+ isError?: boolean | undefined;
3018
+ content: {
3019
+ type: "text";
3020
+ text: string;
3021
+ }[];
3022
+ }>;
3023
+ } & {
3024
+ group: ToolGroup;
3025
+ };
3026
+ update_key_event: {
3027
+ description: string;
3028
+ schema: import("zod").ZodObject<{
3029
+ keyEventId: import("zod").ZodString;
3030
+ name: import("zod").ZodOptional<import("zod").ZodString>;
3031
+ sources: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
3032
+ type: import("zod").ZodEnum<["custom_event", "form_submit"]>;
3033
+ event_name: import("zod").ZodOptional<import("zod").ZodString>;
3034
+ selector: import("zod").ZodOptional<import("zod").ZodString>;
3035
+ target_url: import("zod").ZodOptional<import("zod").ZodString>;
3036
+ where: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
3037
+ field_path: import("zod").ZodString;
3038
+ operator: import("zod").ZodEnum<["equals", "not_equals", "in", "exists", "not_exists"]>;
3039
+ 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">]>>;
3040
+ }, "strip", import("zod").ZodTypeAny, {
3041
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3042
+ field_path: string;
3043
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
3044
+ }, {
3045
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3046
+ field_path: string;
3047
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
3048
+ }>, "many">>;
3049
+ }, "strip", import("zod").ZodTypeAny, {
3050
+ type: "form_submit" | "custom_event";
3051
+ event_name?: string | undefined;
3052
+ selector?: string | undefined;
3053
+ target_url?: string | undefined;
3054
+ where?: {
3055
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3056
+ field_path: string;
3057
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
3058
+ }[] | undefined;
3059
+ }, {
3060
+ type: "form_submit" | "custom_event";
3061
+ event_name?: string | undefined;
3062
+ selector?: string | undefined;
3063
+ target_url?: string | undefined;
3064
+ where?: {
3065
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3066
+ field_path: string;
3067
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
3068
+ }[] | undefined;
3069
+ }>, "many">>;
3070
+ category: import("zod").ZodOptional<import("zod").ZodEnum<["purchase", "lead", "qualified_lead", "activation", "signup", "subscribe", "add_to_cart", "engagement", "other"]>>;
3071
+ entityScope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
3072
+ description: import("zod").ZodOptional<import("zod").ZodString>;
3073
+ isCurrentGoal: import("zod").ZodOptional<import("zod").ZodLiteral<true>>;
3074
+ }, "strip", import("zod").ZodTypeAny, {
3075
+ keyEventId: string;
3076
+ name?: string | undefined;
3077
+ description?: string | undefined;
3078
+ sources?: {
3079
+ type: "form_submit" | "custom_event";
3080
+ event_name?: string | undefined;
3081
+ selector?: string | undefined;
3082
+ target_url?: string | undefined;
3083
+ where?: {
3084
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3085
+ field_path: string;
3086
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
3087
+ }[] | undefined;
3088
+ }[] | undefined;
3089
+ category?: "other" | "engagement" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | undefined;
3090
+ entityScope?: "account" | "person" | undefined;
3091
+ isCurrentGoal?: true | undefined;
3092
+ }, {
3093
+ keyEventId: string;
3094
+ name?: string | undefined;
3095
+ description?: string | undefined;
3096
+ sources?: {
3097
+ type: "form_submit" | "custom_event";
3098
+ event_name?: string | undefined;
3099
+ selector?: string | undefined;
3100
+ target_url?: string | undefined;
3101
+ where?: {
3102
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3103
+ field_path: string;
3104
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
3105
+ }[] | undefined;
3106
+ }[] | undefined;
3107
+ category?: "other" | "engagement" | "purchase" | "lead" | "qualified_lead" | "activation" | "signup" | "subscribe" | "add_to_cart" | undefined;
3108
+ entityScope?: "account" | "person" | undefined;
3109
+ isCurrentGoal?: true | undefined;
3110
+ }>;
3111
+ handler: (args: {
3112
+ keyEventId: string;
3113
+ name?: string;
3114
+ sources?: {
3115
+ type: "form_submit" | "custom_event";
3116
+ event_name?: string | undefined;
3117
+ selector?: string | undefined;
3118
+ target_url?: string | undefined;
3119
+ where?: {
3120
+ operator: "equals" | "not_equals" | "exists" | "in" | "not_exists";
3121
+ field_path: string;
3122
+ value?: string | number | boolean | (string | number | boolean)[] | undefined;
3123
+ }[] | undefined;
3124
+ }[];
3125
+ category?: string;
3126
+ entityScope?: string;
3127
+ description?: string;
3128
+ isCurrentGoal?: true;
3129
+ }) => Promise<{
3130
+ isError?: boolean | undefined;
3131
+ content: {
3132
+ type: "text";
3133
+ text: string;
3134
+ }[];
3135
+ }>;
3136
+ } & {
3137
+ group: ToolGroup;
3138
+ };
3139
+ delete_key_event: {
3140
+ description: string;
3141
+ schema: import("zod").ZodObject<{
3142
+ keyEventId: import("zod").ZodString;
3143
+ }, "strip", import("zod").ZodTypeAny, {
3144
+ keyEventId: string;
3145
+ }, {
3146
+ keyEventId: string;
3147
+ }>;
3148
+ handler: ({ keyEventId }: {
3149
+ keyEventId: string;
3150
+ }) => Promise<{
3151
+ isError?: boolean | undefined;
3152
+ content: {
3153
+ type: "text";
3154
+ text: string;
3155
+ }[];
3156
+ }>;
3157
+ } & {
3158
+ group: ToolGroup;
3159
+ };
3160
+ get_key_event_reached: {
3161
+ description: string;
3162
+ schema: import("zod").ZodObject<{
3163
+ keyEventId: import("zod").ZodString;
3164
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
3165
+ start: import("zod").ZodOptional<import("zod").ZodString>;
3166
+ end: import("zod").ZodOptional<import("zod").ZodString>;
3167
+ version: import("zod").ZodOptional<import("zod").ZodNumber>;
3168
+ limit: import("zod").ZodOptional<import("zod").ZodNumber>;
3169
+ }, "strip", import("zod").ZodTypeAny, {
3170
+ keyEventId: string;
3171
+ start?: string | undefined;
3172
+ end?: string | undefined;
3173
+ version?: number | undefined;
3174
+ scope?: "account" | "person" | undefined;
3175
+ limit?: number | undefined;
3176
+ }, {
3177
+ keyEventId: string;
3178
+ start?: string | undefined;
3179
+ end?: string | undefined;
3180
+ version?: number | undefined;
3181
+ scope?: "account" | "person" | undefined;
3182
+ limit?: number | undefined;
3183
+ }>;
3184
+ handler: (args: {
3185
+ keyEventId: string;
3186
+ scope?: string;
3187
+ start?: string;
3188
+ end?: string;
3189
+ version?: number;
3190
+ limit?: number;
3191
+ }) => Promise<{
3192
+ isError?: boolean | undefined;
3193
+ content: {
3194
+ type: "text";
3195
+ text: string;
3196
+ }[];
3197
+ }>;
3198
+ } & {
3199
+ group: ToolGroup;
3200
+ };
2896
3201
  list_next_moves: {
2897
3202
  description: string;
2898
3203
  schema: import("zod").ZodObject<{
@@ -3764,14 +4069,14 @@ export declare const toolDefinitions: {
3764
4069
  targetUrl: import("zod").ZodOptional<import("zod").ZodString>;
3765
4070
  isPrimary: import("zod").ZodOptional<import("zod").ZodBoolean>;
3766
4071
  }, "strip", import("zod").ZodTypeAny, {
3767
- type: "click" | "form_submit" | "pageview" | "custom_event" | "file_download" | "engaged_time";
4072
+ type: "click" | "form_submit" | "custom_event" | "pageview" | "file_download" | "engaged_time";
3768
4073
  name: string;
3769
4074
  eventName?: string | undefined;
3770
4075
  targetUrl?: string | undefined;
3771
4076
  selector?: string | undefined;
3772
4077
  isPrimary?: boolean | undefined;
3773
4078
  }, {
3774
- type: "click" | "form_submit" | "pageview" | "custom_event" | "file_download" | "engaged_time";
4079
+ type: "click" | "form_submit" | "custom_event" | "pageview" | "file_download" | "engaged_time";
3775
4080
  name: string;
3776
4081
  eventName?: string | undefined;
3777
4082
  targetUrl?: string | undefined;
@@ -5586,19 +5891,23 @@ export declare const toolDefinitions: {
5586
5891
  schema: import("zod").ZodObject<{
5587
5892
  journeyId: import("zod").ZodString;
5588
5893
  eventName: import("zod").ZodOptional<import("zod").ZodString>;
5894
+ keyEventId: import("zod").ZodOptional<import("zod").ZodString>;
5589
5895
  triggerContractId: import("zod").ZodOptional<import("zod").ZodString>;
5590
5896
  }, "strip", import("zod").ZodTypeAny, {
5591
5897
  journeyId: string;
5592
5898
  eventName?: string | undefined;
5899
+ keyEventId?: string | undefined;
5593
5900
  triggerContractId?: string | undefined;
5594
5901
  }, {
5595
5902
  journeyId: string;
5596
5903
  eventName?: string | undefined;
5904
+ keyEventId?: string | undefined;
5597
5905
  triggerContractId?: string | undefined;
5598
5906
  }>;
5599
- handler: ({ journeyId, eventName, triggerContractId, }: {
5907
+ handler: ({ journeyId, eventName, keyEventId, triggerContractId, }: {
5600
5908
  journeyId: string;
5601
5909
  eventName?: string;
5910
+ keyEventId?: string;
5602
5911
  triggerContractId?: string;
5603
5912
  }) => Promise<{
5604
5913
  content: {
@@ -5721,7 +6030,9 @@ export declare const toolDefinitions: {
5721
6030
  journeyId: import("zod").ZodString;
5722
6031
  afterStepId: import("zod").ZodOptional<import("zod").ZodString>;
5723
6032
  condition: import("zod").ZodObject<{
5724
- kind: import("zod").ZodEnum<["attribute", "event_fired", "event_not_fired", "letter_opened", "letter_clicked"]>;
6033
+ kind: import("zod").ZodEnum<["attribute", "event_fired", "event_not_fired", "key_event_reached", "key_event_not_reached", "letter_opened", "letter_clicked"]>;
6034
+ key_event_id: import("zod").ZodOptional<import("zod").ZodString>;
6035
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
5725
6036
  field_path: import("zod").ZodOptional<import("zod").ZodString>;
5726
6037
  operator: import("zod").ZodOptional<import("zod").ZodEnum<["equals", "not_equals", "greater_than", "less_than", "in", "exists", "not_exists"]>>;
5727
6038
  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">]>>;
@@ -5729,18 +6040,22 @@ export declare const toolDefinitions: {
5729
6040
  window_days: import("zod").ZodOptional<import("zod").ZodNumber>;
5730
6041
  wait_days: import("zod").ZodOptional<import("zod").ZodNumber>;
5731
6042
  }, "strip", import("zod").ZodTypeAny, {
5732
- kind: "event_not_fired" | "attribute" | "event_fired" | "letter_opened" | "letter_clicked";
6043
+ kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
5733
6044
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
5734
6045
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
5735
6046
  event_name?: string | undefined;
6047
+ key_event_id?: string | undefined;
6048
+ scope?: "account" | "person" | undefined;
5736
6049
  field_path?: string | undefined;
5737
6050
  window_days?: number | undefined;
5738
6051
  wait_days?: number | undefined;
5739
6052
  }, {
5740
- kind: "event_not_fired" | "attribute" | "event_fired" | "letter_opened" | "letter_clicked";
6053
+ kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
5741
6054
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
5742
6055
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
5743
6056
  event_name?: string | undefined;
6057
+ key_event_id?: string | undefined;
6058
+ scope?: "account" | "person" | undefined;
5744
6059
  field_path?: string | undefined;
5745
6060
  window_days?: number | undefined;
5746
6061
  wait_days?: number | undefined;
@@ -5750,10 +6065,12 @@ export declare const toolDefinitions: {
5750
6065
  channels: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<["email", "in_app_push", "mobile_push", "web_push"]>, "many">>;
5751
6066
  }, "strip", import("zod").ZodTypeAny, {
5752
6067
  condition: {
5753
- kind: "event_not_fired" | "attribute" | "event_fired" | "letter_opened" | "letter_clicked";
6068
+ kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
5754
6069
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
5755
6070
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
5756
6071
  event_name?: string | undefined;
6072
+ key_event_id?: string | undefined;
6073
+ scope?: "account" | "person" | undefined;
5757
6074
  field_path?: string | undefined;
5758
6075
  window_days?: number | undefined;
5759
6076
  wait_days?: number | undefined;
@@ -5765,10 +6082,12 @@ export declare const toolDefinitions: {
5765
6082
  whenFalseCommId?: string | undefined;
5766
6083
  }, {
5767
6084
  condition: {
5768
- kind: "event_not_fired" | "attribute" | "event_fired" | "letter_opened" | "letter_clicked";
6085
+ kind: "event_not_fired" | "attribute" | "event_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
5769
6086
  value?: string | number | boolean | (string | number | boolean)[] | undefined;
5770
6087
  operator?: "equals" | "not_equals" | "exists" | "greater_than" | "less_than" | "in" | "not_exists" | undefined;
5771
6088
  event_name?: string | undefined;
6089
+ key_event_id?: string | undefined;
6090
+ scope?: "account" | "person" | undefined;
5772
6091
  field_path?: string | undefined;
5773
6092
  window_days?: number | undefined;
5774
6093
  wait_days?: number | undefined;
@@ -5783,7 +6102,9 @@ export declare const toolDefinitions: {
5783
6102
  journeyId: string;
5784
6103
  afterStepId?: string;
5785
6104
  condition: {
5786
- kind: "attribute" | "event_fired" | "event_not_fired" | "letter_opened" | "letter_clicked";
6105
+ kind: "attribute" | "event_fired" | "event_not_fired" | "key_event_reached" | "key_event_not_reached" | "letter_opened" | "letter_clicked";
6106
+ key_event_id?: string;
6107
+ scope?: "person" | "account";
5787
6108
  field_path?: string;
5788
6109
  operator?: string;
5789
6110
  value?: string | number | boolean | Array<string | number | boolean>;
@@ -5815,19 +6136,23 @@ export declare const toolDefinitions: {
5815
6136
  journeyId: import("zod").ZodString;
5816
6137
  confirmLive: import("zod").ZodOptional<import("zod").ZodBoolean>;
5817
6138
  confirmTreatmentChange: import("zod").ZodOptional<import("zod").ZodBoolean>;
6139
+ whoStarts: import("zod").ZodOptional<import("zod").ZodEnum<["from_now_on", "everyone_already_in"]>>;
5818
6140
  }, "strip", import("zod").ZodTypeAny, {
5819
6141
  journeyId: string;
5820
6142
  confirmLive?: boolean | undefined;
5821
6143
  confirmTreatmentChange?: boolean | undefined;
6144
+ whoStarts?: "from_now_on" | "everyone_already_in" | undefined;
5822
6145
  }, {
5823
6146
  journeyId: string;
5824
6147
  confirmLive?: boolean | undefined;
5825
6148
  confirmTreatmentChange?: boolean | undefined;
6149
+ whoStarts?: "from_now_on" | "everyone_already_in" | undefined;
5826
6150
  }>;
5827
- handler: ({ journeyId, confirmLive, confirmTreatmentChange, }: {
6151
+ handler: ({ journeyId, confirmLive, confirmTreatmentChange, whoStarts, }: {
5828
6152
  journeyId: string;
5829
6153
  confirmLive?: boolean;
5830
6154
  confirmTreatmentChange?: boolean;
6155
+ whoStarts?: "from_now_on" | "everyone_already_in";
5831
6156
  }) => Promise<{
5832
6157
  content: {
5833
6158
  type: "text";
@@ -5843,6 +6168,41 @@ export declare const toolDefinitions: {
5843
6168
  } & {
5844
6169
  group: ToolGroup;
5845
6170
  };
6171
+ start_people_already_in_segment: {
6172
+ description: string;
6173
+ schema: import("zod").ZodObject<{
6174
+ journeyId: import("zod").ZodString;
6175
+ confirm: import("zod").ZodOptional<import("zod").ZodBoolean>;
6176
+ who: import("zod").ZodOptional<import("zod").ZodEnum<["everyone", "joined_quietly"]>>;
6177
+ }, "strip", import("zod").ZodTypeAny, {
6178
+ journeyId: string;
6179
+ confirm?: boolean | undefined;
6180
+ who?: "everyone" | "joined_quietly" | undefined;
6181
+ }, {
6182
+ journeyId: string;
6183
+ confirm?: boolean | undefined;
6184
+ who?: "everyone" | "joined_quietly" | undefined;
6185
+ }>;
6186
+ handler: ({ journeyId, confirm, who }: {
6187
+ journeyId: string;
6188
+ confirm?: boolean;
6189
+ who?: "everyone" | "joined_quietly";
6190
+ }) => Promise<{
6191
+ content: {
6192
+ type: "text";
6193
+ text: string;
6194
+ }[];
6195
+ isError?: undefined;
6196
+ } | {
6197
+ content: {
6198
+ type: "text";
6199
+ text: string;
6200
+ }[];
6201
+ isError: boolean;
6202
+ }>;
6203
+ } & {
6204
+ group: ToolGroup;
6205
+ };
5846
6206
  archive_journey: {
5847
6207
  description: string;
5848
6208
  schema: import("zod").ZodObject<{
@@ -5984,6 +6344,48 @@ export declare const toolDefinitions: {
5984
6344
  } & {
5985
6345
  group: ToolGroup;
5986
6346
  };
6347
+ set_journey_goal: {
6348
+ description: string;
6349
+ schema: import("zod").ZodObject<{
6350
+ journeyId: import("zod").ZodString;
6351
+ keyEventId: import("zod").ZodOptional<import("zod").ZodString>;
6352
+ eventName: import("zod").ZodOptional<import("zod").ZodString>;
6353
+ windowDays: import("zod").ZodOptional<import("zod").ZodNumber>;
6354
+ clear: import("zod").ZodOptional<import("zod").ZodBoolean>;
6355
+ }, "strip", import("zod").ZodTypeAny, {
6356
+ journeyId: string;
6357
+ eventName?: string | undefined;
6358
+ keyEventId?: string | undefined;
6359
+ windowDays?: number | undefined;
6360
+ clear?: boolean | undefined;
6361
+ }, {
6362
+ journeyId: string;
6363
+ eventName?: string | undefined;
6364
+ keyEventId?: string | undefined;
6365
+ windowDays?: number | undefined;
6366
+ clear?: boolean | undefined;
6367
+ }>;
6368
+ handler: (args: {
6369
+ journeyId: string;
6370
+ keyEventId?: string;
6371
+ eventName?: string;
6372
+ windowDays?: number;
6373
+ clear?: boolean;
6374
+ }) => Promise<{
6375
+ content: {
6376
+ type: "text";
6377
+ text: string;
6378
+ }[];
6379
+ isError: boolean;
6380
+ } | {
6381
+ content: {
6382
+ type: "text";
6383
+ text: string;
6384
+ }[];
6385
+ }>;
6386
+ } & {
6387
+ group: ToolGroup;
6388
+ };
5987
6389
  list_journey_exits: {
5988
6390
  description: string;
5989
6391
  schema: import("zod").ZodObject<{
@@ -6008,23 +6410,27 @@ export declare const toolDefinitions: {
6008
6410
  description: string;
6009
6411
  schema: import("zod").ZodObject<{
6010
6412
  journeyId: import("zod").ZodString;
6011
- triggerContractId: import("zod").ZodString;
6413
+ triggerContractId: import("zod").ZodOptional<import("zod").ZodString>;
6414
+ keyEventId: import("zod").ZodOptional<import("zod").ZodString>;
6012
6415
  label: import("zod").ZodOptional<import("zod").ZodString>;
6013
6416
  enabled: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodBoolean>>;
6014
6417
  }, "strip", import("zod").ZodTypeAny, {
6015
6418
  enabled: boolean;
6016
6419
  journeyId: string;
6017
- triggerContractId: string;
6018
6420
  label?: string | undefined;
6421
+ keyEventId?: string | undefined;
6422
+ triggerContractId?: string | undefined;
6019
6423
  }, {
6020
6424
  journeyId: string;
6021
- triggerContractId: string;
6022
6425
  label?: string | undefined;
6023
6426
  enabled?: boolean | undefined;
6427
+ keyEventId?: string | undefined;
6428
+ triggerContractId?: string | undefined;
6024
6429
  }>;
6025
- handler: ({ journeyId, triggerContractId, label, enabled, }: {
6430
+ handler: ({ journeyId, triggerContractId, keyEventId, label, enabled, }: {
6026
6431
  journeyId: string;
6027
- triggerContractId: string;
6432
+ triggerContractId?: string;
6433
+ keyEventId?: string;
6028
6434
  label?: string;
6029
6435
  enabled?: boolean;
6030
6436
  }) => Promise<{
@@ -6032,6 +6438,13 @@ export declare const toolDefinitions: {
6032
6438
  type: "text";
6033
6439
  text: string;
6034
6440
  }[];
6441
+ isError: boolean;
6442
+ } | {
6443
+ content: {
6444
+ type: "text";
6445
+ text: string;
6446
+ }[];
6447
+ isError?: undefined;
6035
6448
  }>;
6036
6449
  } & {
6037
6450
  group: ToolGroup;
@@ -6149,6 +6562,8 @@ export declare const toolDefinitions: {
6149
6562
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
6150
6563
  verb: import("zod").ZodOptional<import("zod").ZodEnum<["has", "hasnt"]>>;
6151
6564
  event: import("zod").ZodOptional<import("zod").ZodString>;
6565
+ key_event_id: import("zod").ZodOptional<import("zod").ZodString>;
6566
+ scope: import("zod").ZodOptional<import("zod").ZodEnum<["person", "account"]>>;
6152
6567
  window_days: import("zod").ZodOptional<import("zod").ZodNumber>;
6153
6568
  attribute: import("zod").ZodOptional<import("zod").ZodString>;
6154
6569
  op: import("zod").ZodOptional<import("zod").ZodEnum<["is", "is_not", "exists"]>>;
@@ -6157,6 +6572,8 @@ export declare const toolDefinitions: {
6157
6572
  event?: string | undefined;
6158
6573
  value?: string | number | boolean | undefined;
6159
6574
  attribute?: string | undefined;
6575
+ key_event_id?: string | undefined;
6576
+ scope?: "account" | "person" | undefined;
6160
6577
  window_days?: number | undefined;
6161
6578
  verb?: "has" | "hasnt" | undefined;
6162
6579
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6164,6 +6581,8 @@ export declare const toolDefinitions: {
6164
6581
  event?: string | undefined;
6165
6582
  value?: string | number | boolean | undefined;
6166
6583
  attribute?: string | undefined;
6584
+ key_event_id?: string | undefined;
6585
+ scope?: "account" | "person" | undefined;
6167
6586
  window_days?: number | undefined;
6168
6587
  verb?: "has" | "hasnt" | undefined;
6169
6588
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6174,6 +6593,8 @@ export declare const toolDefinitions: {
6174
6593
  event?: string | undefined;
6175
6594
  value?: string | number | boolean | undefined;
6176
6595
  attribute?: string | undefined;
6596
+ key_event_id?: string | undefined;
6597
+ scope?: "account" | "person" | undefined;
6177
6598
  window_days?: number | undefined;
6178
6599
  verb?: "has" | "hasnt" | undefined;
6179
6600
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6184,6 +6605,8 @@ export declare const toolDefinitions: {
6184
6605
  event?: string | undefined;
6185
6606
  value?: string | number | boolean | undefined;
6186
6607
  attribute?: string | undefined;
6608
+ key_event_id?: string | undefined;
6609
+ scope?: "account" | "person" | undefined;
6187
6610
  window_days?: number | undefined;
6188
6611
  verb?: "has" | "hasnt" | undefined;
6189
6612
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6197,6 +6620,8 @@ export declare const toolDefinitions: {
6197
6620
  event?: string | undefined;
6198
6621
  value?: string | number | boolean | undefined;
6199
6622
  attribute?: string | undefined;
6623
+ key_event_id?: string | undefined;
6624
+ scope?: "account" | "person" | undefined;
6200
6625
  window_days?: number | undefined;
6201
6626
  verb?: "has" | "hasnt" | undefined;
6202
6627
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6210,6 +6635,8 @@ export declare const toolDefinitions: {
6210
6635
  event?: string | undefined;
6211
6636
  value?: string | number | boolean | undefined;
6212
6637
  attribute?: string | undefined;
6638
+ key_event_id?: string | undefined;
6639
+ scope?: "account" | "person" | undefined;
6213
6640
  window_days?: number | undefined;
6214
6641
  verb?: "has" | "hasnt" | undefined;
6215
6642
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6229,6 +6656,8 @@ export declare const toolDefinitions: {
6229
6656
  event?: string | undefined;
6230
6657
  value?: string | number | boolean | undefined;
6231
6658
  attribute?: string | undefined;
6659
+ key_event_id?: string | undefined;
6660
+ scope?: "account" | "person" | undefined;
6232
6661
  window_days?: number | undefined;
6233
6662
  verb?: "has" | "hasnt" | undefined;
6234
6663
  op?: "exists" | "is" | "is_not" | undefined;
@@ -6248,6 +6677,8 @@ export declare const toolDefinitions: {
6248
6677
  event?: string | undefined;
6249
6678
  value?: string | number | boolean | undefined;
6250
6679
  attribute?: string | undefined;
6680
+ key_event_id?: string | undefined;
6681
+ scope?: "account" | "person" | undefined;
6251
6682
  window_days?: number | undefined;
6252
6683
  verb?: "has" | "hasnt" | undefined;
6253
6684
  op?: "exists" | "is" | "is_not" | undefined;