evo360-types 1.3.705 → 1.3.711

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.
@@ -36,24 +36,29 @@ export declare const zAutomationEventTriggerSchema: z.ZodObject<{
36
36
  event: z.ZodObject<{
37
37
  types: z.ZodArray<z.ZodString, "many">;
38
38
  actor_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "system", "automation"]>, "many">>;
39
+ exclude_origins: z.ZodOptional<z.ZodArray<z.ZodEnum<["app", "sync", "write_through", "hubia", "automation", "webhook", "quick_reply"]>, "many">>;
39
40
  }, "strip", z.ZodTypeAny, {
40
41
  types: string[];
41
42
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
43
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
42
44
  }, {
43
45
  types: string[];
44
46
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
47
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
45
48
  }>;
46
49
  }, "strip", z.ZodTypeAny, {
47
50
  type: "event";
48
51
  event: {
49
52
  types: string[];
50
53
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
54
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
51
55
  };
52
56
  }, {
53
57
  type: "event";
54
58
  event: {
55
59
  types: string[];
56
60
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
61
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
57
62
  };
58
63
  }>;
59
64
  export declare const zAutomationTriggerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
@@ -91,24 +96,29 @@ export declare const zAutomationTriggerSchema: z.ZodDiscriminatedUnion<"type", [
91
96
  event: z.ZodObject<{
92
97
  types: z.ZodArray<z.ZodString, "many">;
93
98
  actor_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "system", "automation"]>, "many">>;
99
+ exclude_origins: z.ZodOptional<z.ZodArray<z.ZodEnum<["app", "sync", "write_through", "hubia", "automation", "webhook", "quick_reply"]>, "many">>;
94
100
  }, "strip", z.ZodTypeAny, {
95
101
  types: string[];
96
102
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
103
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
97
104
  }, {
98
105
  types: string[];
99
106
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
107
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
100
108
  }>;
101
109
  }, "strip", z.ZodTypeAny, {
102
110
  type: "event";
103
111
  event: {
104
112
  types: string[];
105
113
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
114
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
106
115
  };
107
116
  }, {
108
117
  type: "event";
109
118
  event: {
110
119
  types: string[];
111
120
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
121
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
112
122
  };
113
123
  }>]>;
114
124
  export declare const zAutomationDateOffsetModeSchema: z.ZodEnum<["calendar", "business"]>;
@@ -681,7 +691,7 @@ export declare const zAutomationExecuteAtSchema: z.ZodDiscriminatedUnion<"rule",
681
691
  }>]>;
682
692
  export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
683
693
  type: z.ZodLiteral<"auto_task">;
684
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
694
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
685
695
  kind: z.ZodString;
686
696
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
687
697
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -837,16 +847,16 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
837
847
  priority?: "low" | "medium" | "high" | undefined;
838
848
  }>>;
839
849
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
840
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
850
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
841
851
  kind: z.ZodString;
842
852
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
843
853
  }, "strip", z.ZodTypeAny, {
844
854
  kind: string;
845
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
855
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
846
856
  payload: Record<string, unknown>;
847
857
  }, {
848
858
  kind: string;
849
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
859
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
850
860
  payload: Record<string, unknown>;
851
861
  }>, "many">>;
852
862
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -907,16 +917,16 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
907
917
  priority?: "low" | "medium" | "high" | undefined;
908
918
  }>>;
909
919
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
910
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
920
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
911
921
  kind: z.ZodString;
912
922
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
913
923
  }, "strip", z.ZodTypeAny, {
914
924
  kind: string;
915
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
925
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
916
926
  payload: Record<string, unknown>;
917
927
  }, {
918
928
  kind: string;
919
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
929
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
920
930
  payload: Record<string, unknown>;
921
931
  }>, "many">>;
922
932
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -977,16 +987,16 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
977
987
  priority?: "low" | "medium" | "high" | undefined;
978
988
  }>>;
979
989
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
980
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
990
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
981
991
  kind: z.ZodString;
982
992
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
983
993
  }, "strip", z.ZodTypeAny, {
984
994
  kind: string;
985
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
995
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
986
996
  payload: Record<string, unknown>;
987
997
  }, {
988
998
  kind: string;
989
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
999
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
990
1000
  payload: Record<string, unknown>;
991
1001
  }>, "many">>;
992
1002
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1003,7 +1013,7 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1003
1013
  rule: "relative_to_appointment";
1004
1014
  offset_minutes: number;
1005
1015
  };
1006
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1016
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1007
1017
  payload: Record<string, unknown>;
1008
1018
  retry?: z.objectOutputType<{
1009
1019
  max_attempts: z.ZodNumber;
@@ -1086,16 +1096,16 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1086
1096
  priority?: "low" | "medium" | "high" | undefined;
1087
1097
  }>>;
1088
1098
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1089
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
1099
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1090
1100
  kind: z.ZodString;
1091
1101
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1092
1102
  }, "strip", z.ZodTypeAny, {
1093
1103
  kind: string;
1094
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1104
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1095
1105
  payload: Record<string, unknown>;
1096
1106
  }, {
1097
1107
  kind: string;
1098
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1108
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1099
1109
  payload: Record<string, unknown>;
1100
1110
  }>, "many">>;
1101
1111
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1112,7 +1122,7 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1112
1122
  rule: "relative_to_appointment";
1113
1123
  offset_minutes: number;
1114
1124
  };
1115
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1125
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1116
1126
  payload?: Record<string, unknown> | undefined;
1117
1127
  retry?: z.objectInputType<{
1118
1128
  max_attempts: z.ZodNumber;
@@ -1195,16 +1205,16 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1195
1205
  priority?: "low" | "medium" | "high" | undefined;
1196
1206
  }>>;
1197
1207
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1198
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
1208
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1199
1209
  kind: z.ZodString;
1200
1210
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1201
1211
  }, "strip", z.ZodTypeAny, {
1202
1212
  kind: string;
1203
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1213
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1204
1214
  payload: Record<string, unknown>;
1205
1215
  }, {
1206
1216
  kind: string;
1207
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1217
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1208
1218
  payload: Record<string, unknown>;
1209
1219
  }>, "many">>;
1210
1220
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1240,7 +1250,7 @@ export declare const zAutomationActionOutputSchema: z.ZodObject<{
1240
1250
  }>;
1241
1251
  export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1242
1252
  type: z.ZodLiteral<"auto_task">;
1243
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
1253
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1244
1254
  kind: z.ZodString;
1245
1255
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1246
1256
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -1396,16 +1406,16 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1396
1406
  priority?: "low" | "medium" | "high" | undefined;
1397
1407
  }>>;
1398
1408
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1399
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
1409
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1400
1410
  kind: z.ZodString;
1401
1411
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1402
1412
  }, "strip", z.ZodTypeAny, {
1403
1413
  kind: string;
1404
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1414
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1405
1415
  payload: Record<string, unknown>;
1406
1416
  }, {
1407
1417
  kind: string;
1408
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1418
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1409
1419
  payload: Record<string, unknown>;
1410
1420
  }>, "many">>;
1411
1421
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1466,16 +1476,16 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1466
1476
  priority?: "low" | "medium" | "high" | undefined;
1467
1477
  }>>;
1468
1478
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1469
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
1479
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1470
1480
  kind: z.ZodString;
1471
1481
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1472
1482
  }, "strip", z.ZodTypeAny, {
1473
1483
  kind: string;
1474
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1484
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1475
1485
  payload: Record<string, unknown>;
1476
1486
  }, {
1477
1487
  kind: string;
1478
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1488
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1479
1489
  payload: Record<string, unknown>;
1480
1490
  }>, "many">>;
1481
1491
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1536,16 +1546,16 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1536
1546
  priority?: "low" | "medium" | "high" | undefined;
1537
1547
  }>>;
1538
1548
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1539
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
1549
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1540
1550
  kind: z.ZodString;
1541
1551
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1542
1552
  }, "strip", z.ZodTypeAny, {
1543
1553
  kind: string;
1544
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1554
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1545
1555
  payload: Record<string, unknown>;
1546
1556
  }, {
1547
1557
  kind: string;
1548
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1558
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1549
1559
  payload: Record<string, unknown>;
1550
1560
  }>, "many">>;
1551
1561
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1562,7 +1572,7 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1562
1572
  rule: "relative_to_appointment";
1563
1573
  offset_minutes: number;
1564
1574
  };
1565
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1575
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1566
1576
  payload: Record<string, unknown>;
1567
1577
  retry?: z.objectOutputType<{
1568
1578
  max_attempts: z.ZodNumber;
@@ -1645,16 +1655,16 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1645
1655
  priority?: "low" | "medium" | "high" | undefined;
1646
1656
  }>>;
1647
1657
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1648
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
1658
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1649
1659
  kind: z.ZodString;
1650
1660
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1651
1661
  }, "strip", z.ZodTypeAny, {
1652
1662
  kind: string;
1653
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1663
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1654
1664
  payload: Record<string, unknown>;
1655
1665
  }, {
1656
1666
  kind: string;
1657
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1667
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1658
1668
  payload: Record<string, unknown>;
1659
1669
  }>, "many">>;
1660
1670
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1671,7 +1681,7 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1671
1681
  rule: "relative_to_appointment";
1672
1682
  offset_minutes: number;
1673
1683
  };
1674
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1684
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1675
1685
  payload?: Record<string, unknown> | undefined;
1676
1686
  retry?: z.objectInputType<{
1677
1687
  max_attempts: z.ZodNumber;
@@ -1754,16 +1764,16 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1754
1764
  priority?: "low" | "medium" | "high" | undefined;
1755
1765
  }>>;
1756
1766
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1757
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
1767
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1758
1768
  kind: z.ZodString;
1759
1769
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1760
1770
  }, "strip", z.ZodTypeAny, {
1761
1771
  kind: string;
1762
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1772
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1763
1773
  payload: Record<string, unknown>;
1764
1774
  }, {
1765
1775
  kind: string;
1766
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1776
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1767
1777
  payload: Record<string, unknown>;
1768
1778
  }>, "many">>;
1769
1779
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1802,7 +1812,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
1802
1812
  is_fallback: z.ZodOptional<z.ZodBoolean>;
1803
1813
  outputs: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1804
1814
  type: z.ZodLiteral<"auto_task">;
1805
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
1815
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1806
1816
  kind: z.ZodString;
1807
1817
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1808
1818
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -1958,16 +1968,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
1958
1968
  priority?: "low" | "medium" | "high" | undefined;
1959
1969
  }>>;
1960
1970
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1961
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
1971
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1962
1972
  kind: z.ZodString;
1963
1973
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1964
1974
  }, "strip", z.ZodTypeAny, {
1965
1975
  kind: string;
1966
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1976
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1967
1977
  payload: Record<string, unknown>;
1968
1978
  }, {
1969
1979
  kind: string;
1970
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
1980
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1971
1981
  payload: Record<string, unknown>;
1972
1982
  }>, "many">>;
1973
1983
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2028,16 +2038,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2028
2038
  priority?: "low" | "medium" | "high" | undefined;
2029
2039
  }>>;
2030
2040
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2031
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
2041
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2032
2042
  kind: z.ZodString;
2033
2043
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2034
2044
  }, "strip", z.ZodTypeAny, {
2035
2045
  kind: string;
2036
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2046
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2037
2047
  payload: Record<string, unknown>;
2038
2048
  }, {
2039
2049
  kind: string;
2040
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2050
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2041
2051
  payload: Record<string, unknown>;
2042
2052
  }>, "many">>;
2043
2053
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2098,16 +2108,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2098
2108
  priority?: "low" | "medium" | "high" | undefined;
2099
2109
  }>>;
2100
2110
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2101
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
2111
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2102
2112
  kind: z.ZodString;
2103
2113
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2104
2114
  }, "strip", z.ZodTypeAny, {
2105
2115
  kind: string;
2106
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2116
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2107
2117
  payload: Record<string, unknown>;
2108
2118
  }, {
2109
2119
  kind: string;
2110
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2120
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2111
2121
  payload: Record<string, unknown>;
2112
2122
  }>, "many">>;
2113
2123
  }, z.ZodTypeAny, "passthrough">>>;
@@ -2124,7 +2134,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2124
2134
  rule: "relative_to_appointment";
2125
2135
  offset_minutes: number;
2126
2136
  };
2127
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2137
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2128
2138
  payload: Record<string, unknown>;
2129
2139
  retry?: z.objectOutputType<{
2130
2140
  max_attempts: z.ZodNumber;
@@ -2207,16 +2217,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2207
2217
  priority?: "low" | "medium" | "high" | undefined;
2208
2218
  }>>;
2209
2219
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2210
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
2220
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2211
2221
  kind: z.ZodString;
2212
2222
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2213
2223
  }, "strip", z.ZodTypeAny, {
2214
2224
  kind: string;
2215
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2225
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2216
2226
  payload: Record<string, unknown>;
2217
2227
  }, {
2218
2228
  kind: string;
2219
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2229
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2220
2230
  payload: Record<string, unknown>;
2221
2231
  }>, "many">>;
2222
2232
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2233,7 +2243,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2233
2243
  rule: "relative_to_appointment";
2234
2244
  offset_minutes: number;
2235
2245
  };
2236
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2246
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2237
2247
  payload?: Record<string, unknown> | undefined;
2238
2248
  retry?: z.objectInputType<{
2239
2249
  max_attempts: z.ZodNumber;
@@ -2316,16 +2326,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2316
2326
  priority?: "low" | "medium" | "high" | undefined;
2317
2327
  }>>;
2318
2328
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2319
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
2329
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2320
2330
  kind: z.ZodString;
2321
2331
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2322
2332
  }, "strip", z.ZodTypeAny, {
2323
2333
  kind: string;
2324
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2334
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2325
2335
  payload: Record<string, unknown>;
2326
2336
  }, {
2327
2337
  kind: string;
2328
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2338
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2329
2339
  payload: Record<string, unknown>;
2330
2340
  }>, "many">>;
2331
2341
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2373,7 +2383,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2373
2383
  rule: "relative_to_appointment";
2374
2384
  offset_minutes: number;
2375
2385
  };
2376
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2386
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2377
2387
  payload: Record<string, unknown>;
2378
2388
  retry?: z.objectOutputType<{
2379
2389
  max_attempts: z.ZodNumber;
@@ -2456,16 +2466,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2456
2466
  priority?: "low" | "medium" | "high" | undefined;
2457
2467
  }>>;
2458
2468
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2459
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
2469
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2460
2470
  kind: z.ZodString;
2461
2471
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2462
2472
  }, "strip", z.ZodTypeAny, {
2463
2473
  kind: string;
2464
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2474
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2465
2475
  payload: Record<string, unknown>;
2466
2476
  }, {
2467
2477
  kind: string;
2468
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2478
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2469
2479
  payload: Record<string, unknown>;
2470
2480
  }>, "many">>;
2471
2481
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2497,7 +2507,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2497
2507
  rule: "relative_to_appointment";
2498
2508
  offset_minutes: number;
2499
2509
  };
2500
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2510
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2501
2511
  payload?: Record<string, unknown> | undefined;
2502
2512
  retry?: z.objectInputType<{
2503
2513
  max_attempts: z.ZodNumber;
@@ -2580,16 +2590,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2580
2590
  priority?: "low" | "medium" | "high" | undefined;
2581
2591
  }>>;
2582
2592
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2583
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
2593
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2584
2594
  kind: z.ZodString;
2585
2595
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2586
2596
  }, "strip", z.ZodTypeAny, {
2587
2597
  kind: string;
2588
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2598
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2589
2599
  payload: Record<string, unknown>;
2590
2600
  }, {
2591
2601
  kind: string;
2592
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
2602
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2593
2603
  payload: Record<string, unknown>;
2594
2604
  }>, "many">>;
2595
2605
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2648,24 +2658,29 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2648
2658
  event: z.ZodObject<{
2649
2659
  types: z.ZodArray<z.ZodString, "many">;
2650
2660
  actor_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "system", "automation"]>, "many">>;
2661
+ exclude_origins: z.ZodOptional<z.ZodArray<z.ZodEnum<["app", "sync", "write_through", "hubia", "automation", "webhook", "quick_reply"]>, "many">>;
2651
2662
  }, "strip", z.ZodTypeAny, {
2652
2663
  types: string[];
2653
2664
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
2665
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
2654
2666
  }, {
2655
2667
  types: string[];
2656
2668
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
2669
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
2657
2670
  }>;
2658
2671
  }, "strip", z.ZodTypeAny, {
2659
2672
  type: "event";
2660
2673
  event: {
2661
2674
  types: string[];
2662
2675
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
2676
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
2663
2677
  };
2664
2678
  }, {
2665
2679
  type: "event";
2666
2680
  event: {
2667
2681
  types: string[];
2668
2682
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
2683
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
2669
2684
  };
2670
2685
  }>]>;
2671
2686
  selection: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
@@ -2917,7 +2932,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2917
2932
  is_fallback: z.ZodOptional<z.ZodBoolean>;
2918
2933
  outputs: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2919
2934
  type: z.ZodLiteral<"auto_task">;
2920
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
2935
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2921
2936
  kind: z.ZodString;
2922
2937
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2923
2938
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -3073,16 +3088,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3073
3088
  priority?: "low" | "medium" | "high" | undefined;
3074
3089
  }>>;
3075
3090
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3076
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
3091
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3077
3092
  kind: z.ZodString;
3078
3093
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3079
3094
  }, "strip", z.ZodTypeAny, {
3080
3095
  kind: string;
3081
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3096
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3082
3097
  payload: Record<string, unknown>;
3083
3098
  }, {
3084
3099
  kind: string;
3085
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3100
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3086
3101
  payload: Record<string, unknown>;
3087
3102
  }>, "many">>;
3088
3103
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3143,16 +3158,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3143
3158
  priority?: "low" | "medium" | "high" | undefined;
3144
3159
  }>>;
3145
3160
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3146
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
3161
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3147
3162
  kind: z.ZodString;
3148
3163
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3149
3164
  }, "strip", z.ZodTypeAny, {
3150
3165
  kind: string;
3151
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3166
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3152
3167
  payload: Record<string, unknown>;
3153
3168
  }, {
3154
3169
  kind: string;
3155
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3170
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3156
3171
  payload: Record<string, unknown>;
3157
3172
  }>, "many">>;
3158
3173
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3213,16 +3228,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3213
3228
  priority?: "low" | "medium" | "high" | undefined;
3214
3229
  }>>;
3215
3230
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3216
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
3231
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3217
3232
  kind: z.ZodString;
3218
3233
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3219
3234
  }, "strip", z.ZodTypeAny, {
3220
3235
  kind: string;
3221
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3236
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3222
3237
  payload: Record<string, unknown>;
3223
3238
  }, {
3224
3239
  kind: string;
3225
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3240
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3226
3241
  payload: Record<string, unknown>;
3227
3242
  }>, "many">>;
3228
3243
  }, z.ZodTypeAny, "passthrough">>>;
@@ -3239,7 +3254,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3239
3254
  rule: "relative_to_appointment";
3240
3255
  offset_minutes: number;
3241
3256
  };
3242
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3257
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3243
3258
  payload: Record<string, unknown>;
3244
3259
  retry?: z.objectOutputType<{
3245
3260
  max_attempts: z.ZodNumber;
@@ -3322,16 +3337,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3322
3337
  priority?: "low" | "medium" | "high" | undefined;
3323
3338
  }>>;
3324
3339
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3325
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
3340
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3326
3341
  kind: z.ZodString;
3327
3342
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3328
3343
  }, "strip", z.ZodTypeAny, {
3329
3344
  kind: string;
3330
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3345
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3331
3346
  payload: Record<string, unknown>;
3332
3347
  }, {
3333
3348
  kind: string;
3334
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3349
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3335
3350
  payload: Record<string, unknown>;
3336
3351
  }>, "many">>;
3337
3352
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3348,7 +3363,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3348
3363
  rule: "relative_to_appointment";
3349
3364
  offset_minutes: number;
3350
3365
  };
3351
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3366
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3352
3367
  payload?: Record<string, unknown> | undefined;
3353
3368
  retry?: z.objectInputType<{
3354
3369
  max_attempts: z.ZodNumber;
@@ -3431,16 +3446,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3431
3446
  priority?: "low" | "medium" | "high" | undefined;
3432
3447
  }>>;
3433
3448
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3434
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
3449
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3435
3450
  kind: z.ZodString;
3436
3451
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3437
3452
  }, "strip", z.ZodTypeAny, {
3438
3453
  kind: string;
3439
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3454
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3440
3455
  payload: Record<string, unknown>;
3441
3456
  }, {
3442
3457
  kind: string;
3443
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3458
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3444
3459
  payload: Record<string, unknown>;
3445
3460
  }>, "many">>;
3446
3461
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3488,7 +3503,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3488
3503
  rule: "relative_to_appointment";
3489
3504
  offset_minutes: number;
3490
3505
  };
3491
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3506
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3492
3507
  payload: Record<string, unknown>;
3493
3508
  retry?: z.objectOutputType<{
3494
3509
  max_attempts: z.ZodNumber;
@@ -3571,16 +3586,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3571
3586
  priority?: "low" | "medium" | "high" | undefined;
3572
3587
  }>>;
3573
3588
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3574
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
3589
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3575
3590
  kind: z.ZodString;
3576
3591
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3577
3592
  }, "strip", z.ZodTypeAny, {
3578
3593
  kind: string;
3579
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3594
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3580
3595
  payload: Record<string, unknown>;
3581
3596
  }, {
3582
3597
  kind: string;
3583
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3598
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3584
3599
  payload: Record<string, unknown>;
3585
3600
  }>, "many">>;
3586
3601
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3612,7 +3627,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3612
3627
  rule: "relative_to_appointment";
3613
3628
  offset_minutes: number;
3614
3629
  };
3615
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3630
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3616
3631
  payload?: Record<string, unknown> | undefined;
3617
3632
  retry?: z.objectInputType<{
3618
3633
  max_attempts: z.ZodNumber;
@@ -3695,16 +3710,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3695
3710
  priority?: "low" | "medium" | "high" | undefined;
3696
3711
  }>>;
3697
3712
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3698
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
3713
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3699
3714
  kind: z.ZodString;
3700
3715
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3701
3716
  }, "strip", z.ZodTypeAny, {
3702
3717
  kind: string;
3703
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3718
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3704
3719
  payload: Record<string, unknown>;
3705
3720
  }, {
3706
3721
  kind: string;
3707
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3722
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3708
3723
  payload: Record<string, unknown>;
3709
3724
  }>, "many">>;
3710
3725
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3832,6 +3847,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3832
3847
  event: {
3833
3848
  types: string[];
3834
3849
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
3850
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
3835
3851
  };
3836
3852
  };
3837
3853
  branch_mode: "all" | "exclusive";
@@ -3851,7 +3867,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3851
3867
  rule: "relative_to_appointment";
3852
3868
  offset_minutes: number;
3853
3869
  };
3854
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3870
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3855
3871
  payload: Record<string, unknown>;
3856
3872
  retry?: z.objectOutputType<{
3857
3873
  max_attempts: z.ZodNumber;
@@ -3934,16 +3950,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3934
3950
  priority?: "low" | "medium" | "high" | undefined;
3935
3951
  }>>;
3936
3952
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3937
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
3953
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3938
3954
  kind: z.ZodString;
3939
3955
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3940
3956
  }, "strip", z.ZodTypeAny, {
3941
3957
  kind: string;
3942
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3958
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3943
3959
  payload: Record<string, unknown>;
3944
3960
  }, {
3945
3961
  kind: string;
3946
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
3962
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3947
3963
  payload: Record<string, unknown>;
3948
3964
  }>, "many">>;
3949
3965
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -4044,6 +4060,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4044
4060
  event: {
4045
4061
  types: string[];
4046
4062
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
4063
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
4047
4064
  };
4048
4065
  };
4049
4066
  branch_mode: "all" | "exclusive";
@@ -4063,7 +4080,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4063
4080
  rule: "relative_to_appointment";
4064
4081
  offset_minutes: number;
4065
4082
  };
4066
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4083
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4067
4084
  payload?: Record<string, unknown> | undefined;
4068
4085
  retry?: z.objectInputType<{
4069
4086
  max_attempts: z.ZodNumber;
@@ -4146,16 +4163,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4146
4163
  priority?: "low" | "medium" | "high" | undefined;
4147
4164
  }>>;
4148
4165
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4149
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
4166
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
4150
4167
  kind: z.ZodString;
4151
4168
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4152
4169
  }, "strip", z.ZodTypeAny, {
4153
4170
  kind: string;
4154
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4171
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4155
4172
  payload: Record<string, unknown>;
4156
4173
  }, {
4157
4174
  kind: string;
4158
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4175
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4159
4176
  payload: Record<string, unknown>;
4160
4177
  }>, "many">>;
4161
4178
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -4232,24 +4249,29 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4232
4249
  event: z.ZodObject<{
4233
4250
  types: z.ZodArray<z.ZodString, "many">;
4234
4251
  actor_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "system", "automation"]>, "many">>;
4252
+ exclude_origins: z.ZodOptional<z.ZodArray<z.ZodEnum<["app", "sync", "write_through", "hubia", "automation", "webhook", "quick_reply"]>, "many">>;
4235
4253
  }, "strip", z.ZodTypeAny, {
4236
4254
  types: string[];
4237
4255
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
4256
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
4238
4257
  }, {
4239
4258
  types: string[];
4240
4259
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
4260
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
4241
4261
  }>;
4242
4262
  }, "strip", z.ZodTypeAny, {
4243
4263
  type: "event";
4244
4264
  event: {
4245
4265
  types: string[];
4246
4266
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
4267
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
4247
4268
  };
4248
4269
  }, {
4249
4270
  type: "event";
4250
4271
  event: {
4251
4272
  types: string[];
4252
4273
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
4274
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
4253
4275
  };
4254
4276
  }>]>;
4255
4277
  selection: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
@@ -4501,7 +4523,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4501
4523
  is_fallback: z.ZodOptional<z.ZodBoolean>;
4502
4524
  outputs: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4503
4525
  type: z.ZodLiteral<"auto_task">;
4504
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
4526
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
4505
4527
  kind: z.ZodString;
4506
4528
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4507
4529
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -4657,16 +4679,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4657
4679
  priority?: "low" | "medium" | "high" | undefined;
4658
4680
  }>>;
4659
4681
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4660
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
4682
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
4661
4683
  kind: z.ZodString;
4662
4684
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4663
4685
  }, "strip", z.ZodTypeAny, {
4664
4686
  kind: string;
4665
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4687
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4666
4688
  payload: Record<string, unknown>;
4667
4689
  }, {
4668
4690
  kind: string;
4669
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4691
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4670
4692
  payload: Record<string, unknown>;
4671
4693
  }>, "many">>;
4672
4694
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4727,16 +4749,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4727
4749
  priority?: "low" | "medium" | "high" | undefined;
4728
4750
  }>>;
4729
4751
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4730
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
4752
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
4731
4753
  kind: z.ZodString;
4732
4754
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4733
4755
  }, "strip", z.ZodTypeAny, {
4734
4756
  kind: string;
4735
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4757
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4736
4758
  payload: Record<string, unknown>;
4737
4759
  }, {
4738
4760
  kind: string;
4739
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4761
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4740
4762
  payload: Record<string, unknown>;
4741
4763
  }>, "many">>;
4742
4764
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4797,16 +4819,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4797
4819
  priority?: "low" | "medium" | "high" | undefined;
4798
4820
  }>>;
4799
4821
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4800
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
4822
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
4801
4823
  kind: z.ZodString;
4802
4824
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4803
4825
  }, "strip", z.ZodTypeAny, {
4804
4826
  kind: string;
4805
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4827
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4806
4828
  payload: Record<string, unknown>;
4807
4829
  }, {
4808
4830
  kind: string;
4809
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4831
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4810
4832
  payload: Record<string, unknown>;
4811
4833
  }>, "many">>;
4812
4834
  }, z.ZodTypeAny, "passthrough">>>;
@@ -4823,7 +4845,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4823
4845
  rule: "relative_to_appointment";
4824
4846
  offset_minutes: number;
4825
4847
  };
4826
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4848
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4827
4849
  payload: Record<string, unknown>;
4828
4850
  retry?: z.objectOutputType<{
4829
4851
  max_attempts: z.ZodNumber;
@@ -4906,16 +4928,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4906
4928
  priority?: "low" | "medium" | "high" | undefined;
4907
4929
  }>>;
4908
4930
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4909
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
4931
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
4910
4932
  kind: z.ZodString;
4911
4933
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4912
4934
  }, "strip", z.ZodTypeAny, {
4913
4935
  kind: string;
4914
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4936
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4915
4937
  payload: Record<string, unknown>;
4916
4938
  }, {
4917
4939
  kind: string;
4918
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4940
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4919
4941
  payload: Record<string, unknown>;
4920
4942
  }>, "many">>;
4921
4943
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -4932,7 +4954,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4932
4954
  rule: "relative_to_appointment";
4933
4955
  offset_minutes: number;
4934
4956
  };
4935
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
4957
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4936
4958
  payload?: Record<string, unknown> | undefined;
4937
4959
  retry?: z.objectInputType<{
4938
4960
  max_attempts: z.ZodNumber;
@@ -5015,16 +5037,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5015
5037
  priority?: "low" | "medium" | "high" | undefined;
5016
5038
  }>>;
5017
5039
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5018
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
5040
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5019
5041
  kind: z.ZodString;
5020
5042
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5021
5043
  }, "strip", z.ZodTypeAny, {
5022
5044
  kind: string;
5023
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5045
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5024
5046
  payload: Record<string, unknown>;
5025
5047
  }, {
5026
5048
  kind: string;
5027
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5049
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5028
5050
  payload: Record<string, unknown>;
5029
5051
  }>, "many">>;
5030
5052
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5072,7 +5094,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5072
5094
  rule: "relative_to_appointment";
5073
5095
  offset_minutes: number;
5074
5096
  };
5075
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5097
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5076
5098
  payload: Record<string, unknown>;
5077
5099
  retry?: z.objectOutputType<{
5078
5100
  max_attempts: z.ZodNumber;
@@ -5155,16 +5177,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5155
5177
  priority?: "low" | "medium" | "high" | undefined;
5156
5178
  }>>;
5157
5179
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5158
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
5180
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5159
5181
  kind: z.ZodString;
5160
5182
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5161
5183
  }, "strip", z.ZodTypeAny, {
5162
5184
  kind: string;
5163
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5185
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5164
5186
  payload: Record<string, unknown>;
5165
5187
  }, {
5166
5188
  kind: string;
5167
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5189
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5168
5190
  payload: Record<string, unknown>;
5169
5191
  }>, "many">>;
5170
5192
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5196,7 +5218,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5196
5218
  rule: "relative_to_appointment";
5197
5219
  offset_minutes: number;
5198
5220
  };
5199
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5221
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5200
5222
  payload?: Record<string, unknown> | undefined;
5201
5223
  retry?: z.objectInputType<{
5202
5224
  max_attempts: z.ZodNumber;
@@ -5279,16 +5301,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5279
5301
  priority?: "low" | "medium" | "high" | undefined;
5280
5302
  }>>;
5281
5303
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5282
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
5304
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5283
5305
  kind: z.ZodString;
5284
5306
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5285
5307
  }, "strip", z.ZodTypeAny, {
5286
5308
  kind: string;
5287
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5309
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5288
5310
  payload: Record<string, unknown>;
5289
5311
  }, {
5290
5312
  kind: string;
5291
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5313
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5292
5314
  payload: Record<string, unknown>;
5293
5315
  }>, "many">>;
5294
5316
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5378,6 +5400,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5378
5400
  event: {
5379
5401
  types: string[];
5380
5402
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5403
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
5381
5404
  };
5382
5405
  };
5383
5406
  branch_mode: "all" | "exclusive";
@@ -5397,7 +5420,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5397
5420
  rule: "relative_to_appointment";
5398
5421
  offset_minutes: number;
5399
5422
  };
5400
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5423
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5401
5424
  payload: Record<string, unknown>;
5402
5425
  retry?: z.objectOutputType<{
5403
5426
  max_attempts: z.ZodNumber;
@@ -5480,16 +5503,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5480
5503
  priority?: "low" | "medium" | "high" | undefined;
5481
5504
  }>>;
5482
5505
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5483
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
5506
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5484
5507
  kind: z.ZodString;
5485
5508
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5486
5509
  }, "strip", z.ZodTypeAny, {
5487
5510
  kind: string;
5488
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5511
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5489
5512
  payload: Record<string, unknown>;
5490
5513
  }, {
5491
5514
  kind: string;
5492
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5515
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5493
5516
  payload: Record<string, unknown>;
5494
5517
  }>, "many">>;
5495
5518
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5575,6 +5598,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5575
5598
  event: {
5576
5599
  types: string[];
5577
5600
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5601
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
5578
5602
  };
5579
5603
  };
5580
5604
  branch_mode: "all" | "exclusive";
@@ -5594,7 +5618,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5594
5618
  rule: "relative_to_appointment";
5595
5619
  offset_minutes: number;
5596
5620
  };
5597
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5621
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5598
5622
  payload?: Record<string, unknown> | undefined;
5599
5623
  retry?: z.objectInputType<{
5600
5624
  max_attempts: z.ZodNumber;
@@ -5677,16 +5701,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5677
5701
  priority?: "low" | "medium" | "high" | undefined;
5678
5702
  }>>;
5679
5703
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5680
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
5704
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5681
5705
  kind: z.ZodString;
5682
5706
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5683
5707
  }, "strip", z.ZodTypeAny, {
5684
5708
  kind: string;
5685
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5709
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5686
5710
  payload: Record<string, unknown>;
5687
5711
  }, {
5688
5712
  kind: string;
5689
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
5713
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5690
5714
  payload: Record<string, unknown>;
5691
5715
  }>, "many">>;
5692
5716
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5750,24 +5774,29 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5750
5774
  event: z.ZodObject<{
5751
5775
  types: z.ZodArray<z.ZodString, "many">;
5752
5776
  actor_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "system", "automation"]>, "many">>;
5777
+ exclude_origins: z.ZodOptional<z.ZodArray<z.ZodEnum<["app", "sync", "write_through", "hubia", "automation", "webhook", "quick_reply"]>, "many">>;
5753
5778
  }, "strip", z.ZodTypeAny, {
5754
5779
  types: string[];
5755
5780
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5781
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
5756
5782
  }, {
5757
5783
  types: string[];
5758
5784
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5785
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
5759
5786
  }>;
5760
5787
  }, "strip", z.ZodTypeAny, {
5761
5788
  type: "event";
5762
5789
  event: {
5763
5790
  types: string[];
5764
5791
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5792
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
5765
5793
  };
5766
5794
  }, {
5767
5795
  type: "event";
5768
5796
  event: {
5769
5797
  types: string[];
5770
5798
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5799
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
5771
5800
  };
5772
5801
  }>]>;
5773
5802
  selection: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
@@ -6019,7 +6048,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6019
6048
  is_fallback: z.ZodOptional<z.ZodBoolean>;
6020
6049
  outputs: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6021
6050
  type: z.ZodLiteral<"auto_task">;
6022
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
6051
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6023
6052
  kind: z.ZodString;
6024
6053
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6025
6054
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -6175,16 +6204,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6175
6204
  priority?: "low" | "medium" | "high" | undefined;
6176
6205
  }>>;
6177
6206
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6178
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
6207
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6179
6208
  kind: z.ZodString;
6180
6209
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6181
6210
  }, "strip", z.ZodTypeAny, {
6182
6211
  kind: string;
6183
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6212
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6184
6213
  payload: Record<string, unknown>;
6185
6214
  }, {
6186
6215
  kind: string;
6187
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6216
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6188
6217
  payload: Record<string, unknown>;
6189
6218
  }>, "many">>;
6190
6219
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -6245,16 +6274,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6245
6274
  priority?: "low" | "medium" | "high" | undefined;
6246
6275
  }>>;
6247
6276
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6248
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
6277
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6249
6278
  kind: z.ZodString;
6250
6279
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6251
6280
  }, "strip", z.ZodTypeAny, {
6252
6281
  kind: string;
6253
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6282
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6254
6283
  payload: Record<string, unknown>;
6255
6284
  }, {
6256
6285
  kind: string;
6257
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6286
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6258
6287
  payload: Record<string, unknown>;
6259
6288
  }>, "many">>;
6260
6289
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -6315,16 +6344,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6315
6344
  priority?: "low" | "medium" | "high" | undefined;
6316
6345
  }>>;
6317
6346
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6318
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
6347
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6319
6348
  kind: z.ZodString;
6320
6349
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6321
6350
  }, "strip", z.ZodTypeAny, {
6322
6351
  kind: string;
6323
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6352
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6324
6353
  payload: Record<string, unknown>;
6325
6354
  }, {
6326
6355
  kind: string;
6327
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6356
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6328
6357
  payload: Record<string, unknown>;
6329
6358
  }>, "many">>;
6330
6359
  }, z.ZodTypeAny, "passthrough">>>;
@@ -6341,7 +6370,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6341
6370
  rule: "relative_to_appointment";
6342
6371
  offset_minutes: number;
6343
6372
  };
6344
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6373
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6345
6374
  payload: Record<string, unknown>;
6346
6375
  retry?: z.objectOutputType<{
6347
6376
  max_attempts: z.ZodNumber;
@@ -6424,16 +6453,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6424
6453
  priority?: "low" | "medium" | "high" | undefined;
6425
6454
  }>>;
6426
6455
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6427
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
6456
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6428
6457
  kind: z.ZodString;
6429
6458
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6430
6459
  }, "strip", z.ZodTypeAny, {
6431
6460
  kind: string;
6432
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6461
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6433
6462
  payload: Record<string, unknown>;
6434
6463
  }, {
6435
6464
  kind: string;
6436
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6465
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6437
6466
  payload: Record<string, unknown>;
6438
6467
  }>, "many">>;
6439
6468
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6450,7 +6479,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6450
6479
  rule: "relative_to_appointment";
6451
6480
  offset_minutes: number;
6452
6481
  };
6453
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6482
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6454
6483
  payload?: Record<string, unknown> | undefined;
6455
6484
  retry?: z.objectInputType<{
6456
6485
  max_attempts: z.ZodNumber;
@@ -6533,16 +6562,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6533
6562
  priority?: "low" | "medium" | "high" | undefined;
6534
6563
  }>>;
6535
6564
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6536
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
6565
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6537
6566
  kind: z.ZodString;
6538
6567
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6539
6568
  }, "strip", z.ZodTypeAny, {
6540
6569
  kind: string;
6541
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6570
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6542
6571
  payload: Record<string, unknown>;
6543
6572
  }, {
6544
6573
  kind: string;
6545
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6574
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6546
6575
  payload: Record<string, unknown>;
6547
6576
  }>, "many">>;
6548
6577
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6590,7 +6619,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6590
6619
  rule: "relative_to_appointment";
6591
6620
  offset_minutes: number;
6592
6621
  };
6593
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6622
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6594
6623
  payload: Record<string, unknown>;
6595
6624
  retry?: z.objectOutputType<{
6596
6625
  max_attempts: z.ZodNumber;
@@ -6673,16 +6702,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6673
6702
  priority?: "low" | "medium" | "high" | undefined;
6674
6703
  }>>;
6675
6704
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6676
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
6705
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6677
6706
  kind: z.ZodString;
6678
6707
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6679
6708
  }, "strip", z.ZodTypeAny, {
6680
6709
  kind: string;
6681
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6710
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6682
6711
  payload: Record<string, unknown>;
6683
6712
  }, {
6684
6713
  kind: string;
6685
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6714
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6686
6715
  payload: Record<string, unknown>;
6687
6716
  }>, "many">>;
6688
6717
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6714,7 +6743,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6714
6743
  rule: "relative_to_appointment";
6715
6744
  offset_minutes: number;
6716
6745
  };
6717
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6746
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6718
6747
  payload?: Record<string, unknown> | undefined;
6719
6748
  retry?: z.objectInputType<{
6720
6749
  max_attempts: z.ZodNumber;
@@ -6797,16 +6826,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6797
6826
  priority?: "low" | "medium" | "high" | undefined;
6798
6827
  }>>;
6799
6828
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6800
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
6829
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6801
6830
  kind: z.ZodString;
6802
6831
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6803
6832
  }, "strip", z.ZodTypeAny, {
6804
6833
  kind: string;
6805
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6834
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6806
6835
  payload: Record<string, unknown>;
6807
6836
  }, {
6808
6837
  kind: string;
6809
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6838
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6810
6839
  payload: Record<string, unknown>;
6811
6840
  }>, "many">>;
6812
6841
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6896,6 +6925,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6896
6925
  event: {
6897
6926
  types: string[];
6898
6927
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
6928
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
6899
6929
  };
6900
6930
  };
6901
6931
  branch_mode: "all" | "exclusive";
@@ -6915,7 +6945,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6915
6945
  rule: "relative_to_appointment";
6916
6946
  offset_minutes: number;
6917
6947
  };
6918
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
6948
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6919
6949
  payload: Record<string, unknown>;
6920
6950
  retry?: z.objectOutputType<{
6921
6951
  max_attempts: z.ZodNumber;
@@ -6998,16 +7028,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6998
7028
  priority?: "low" | "medium" | "high" | undefined;
6999
7029
  }>>;
7000
7030
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
7001
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
7031
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7002
7032
  kind: z.ZodString;
7003
7033
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7004
7034
  }, "strip", z.ZodTypeAny, {
7005
7035
  kind: string;
7006
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7036
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7007
7037
  payload: Record<string, unknown>;
7008
7038
  }, {
7009
7039
  kind: string;
7010
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7040
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7011
7041
  payload: Record<string, unknown>;
7012
7042
  }>, "many">>;
7013
7043
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7093,6 +7123,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7093
7123
  event: {
7094
7124
  types: string[];
7095
7125
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
7126
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
7096
7127
  };
7097
7128
  };
7098
7129
  branch_mode: "all" | "exclusive";
@@ -7112,7 +7143,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7112
7143
  rule: "relative_to_appointment";
7113
7144
  offset_minutes: number;
7114
7145
  };
7115
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7146
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7116
7147
  payload?: Record<string, unknown> | undefined;
7117
7148
  retry?: z.objectInputType<{
7118
7149
  max_attempts: z.ZodNumber;
@@ -7195,16 +7226,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7195
7226
  priority?: "low" | "medium" | "high" | undefined;
7196
7227
  }>>;
7197
7228
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
7198
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
7229
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7199
7230
  kind: z.ZodString;
7200
7231
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7201
7232
  }, "strip", z.ZodTypeAny, {
7202
7233
  kind: string;
7203
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7234
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7204
7235
  payload: Record<string, unknown>;
7205
7236
  }, {
7206
7237
  kind: string;
7207
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7238
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7208
7239
  payload: Record<string, unknown>;
7209
7240
  }>, "many">>;
7210
7241
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7295,6 +7326,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7295
7326
  event: {
7296
7327
  types: string[];
7297
7328
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
7329
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
7298
7330
  };
7299
7331
  };
7300
7332
  branch_mode: "all" | "exclusive";
@@ -7314,7 +7346,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7314
7346
  rule: "relative_to_appointment";
7315
7347
  offset_minutes: number;
7316
7348
  };
7317
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7349
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7318
7350
  payload: Record<string, unknown>;
7319
7351
  retry?: z.objectOutputType<{
7320
7352
  max_attempts: z.ZodNumber;
@@ -7397,16 +7429,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7397
7429
  priority?: "low" | "medium" | "high" | undefined;
7398
7430
  }>>;
7399
7431
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
7400
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
7432
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7401
7433
  kind: z.ZodString;
7402
7434
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7403
7435
  }, "strip", z.ZodTypeAny, {
7404
7436
  kind: string;
7405
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7437
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7406
7438
  payload: Record<string, unknown>;
7407
7439
  }, {
7408
7440
  kind: string;
7409
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7441
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7410
7442
  payload: Record<string, unknown>;
7411
7443
  }>, "many">>;
7412
7444
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7495,6 +7527,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7495
7527
  event: {
7496
7528
  types: string[];
7497
7529
  actor_kinds?: ("user" | "system" | "automation")[] | undefined;
7530
+ exclude_origins?: ("sync" | "webhook" | "app" | "automation" | "hubia" | "write_through" | "quick_reply")[] | undefined;
7498
7531
  };
7499
7532
  };
7500
7533
  branch_mode: "all" | "exclusive";
@@ -7514,7 +7547,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7514
7547
  rule: "relative_to_appointment";
7515
7548
  offset_minutes: number;
7516
7549
  };
7517
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7550
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7518
7551
  payload?: Record<string, unknown> | undefined;
7519
7552
  retry?: z.objectInputType<{
7520
7553
  max_attempts: z.ZodNumber;
@@ -7597,16 +7630,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7597
7630
  priority?: "low" | "medium" | "high" | undefined;
7598
7631
  }>>;
7599
7632
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
7600
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice"]>;
7633
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7601
7634
  kind: z.ZodString;
7602
7635
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7603
7636
  }, "strip", z.ZodTypeAny, {
7604
7637
  kind: string;
7605
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7638
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7606
7639
  payload: Record<string, unknown>;
7607
7640
  }, {
7608
7641
  kind: string;
7609
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice";
7642
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7610
7643
  payload: Record<string, unknown>;
7611
7644
  }>, "many">>;
7612
7645
  }, z.ZodTypeAny, "passthrough"> | undefined;