evo360-types 1.3.634 → 1.3.637

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/apps/evo-activity/zod-schemas.d.ts +6 -6
  2. package/dist/apps/evo-chat/chatbee/zod-schemas.d.ts +6 -6
  3. package/dist/apps/evo-chat/contact/zod-schemas.d.ts +6 -6
  4. package/dist/apps/evo-chat/dic/ticket-close/zod-schemas.d.ts +12 -12
  5. package/dist/apps/evo-chat/message/zod-schemas.d.ts +6 -6
  6. package/dist/apps/evo-crm/dic/zod-schemas.d.ts +70 -18
  7. package/dist/apps/evo-crm/dic/zod-schemas.js +17 -1
  8. package/dist/apps/evo-crm/dic/zod-schemas.ts +20 -0
  9. package/dist/apps/evo-crm/lead/zod-schemas.d.ts +240 -6
  10. package/dist/apps/evo-crm/lead/zod-schemas.js +6 -0
  11. package/dist/apps/evo-crm/lead/zod-schemas.ts +6 -0
  12. package/dist/apps/evo-csq/zod-schemas.d.ts +52 -52
  13. package/dist/apps/evo-finops/zod-schemas.d.ts +439 -7
  14. package/dist/apps/evo-hub-ia/channel/zod-schemas.d.ts +2 -2
  15. package/dist/apps/evo-hub-ia/v1/zod-schemas.d.ts +28 -28
  16. package/dist/apps/evo-integrations/zod-schemas.d.ts +24 -16
  17. package/dist/apps/evo-integrations/zod-schemas.js +8 -1
  18. package/dist/apps/evo-integrations/zod-schemas.ts +9 -0
  19. package/dist/apps/evo-med/appointment/zod-schemas.d.ts +83 -6
  20. package/dist/apps/evo-med/appointment/zod-schemas.js +19 -1
  21. package/dist/apps/evo-med/appointment/zod-schemas.ts +21 -0
  22. package/dist/apps/evo-med/calendar/zod-schemas.d.ts +6 -6
  23. package/dist/apps/evo-med/dic/zod-schemas.d.ts +14 -14
  24. package/dist/apps/evo-med/insurance/zod-schemas.d.ts +6 -6
  25. package/dist/apps/evo-med/people/zod-schemas.d.ts +1118 -20
  26. package/dist/apps/evo-med/people/zod-schemas.js +6 -0
  27. package/dist/apps/evo-med/people/zod-schemas.ts +6 -0
  28. package/dist/apps/evo-med/procedure/zod-schemas.d.ts +12 -12
  29. package/dist/apps/evo-notif-user/zod-schemas.d.ts +18 -18
  30. package/dist/apps/evo-notifications/zod-schemas.d.ts +936 -0
  31. package/dist/apps/evo-people/zod-schemas.d.ts +24 -24
  32. package/dist/apps/evo-survey/zod-schemas.d.ts +79 -79
  33. package/dist/apps/evo-task/zod-schemas.d.ts +453 -78
  34. package/dist/apps/evo-task/zod-schemas.js +66 -1
  35. package/dist/apps/evo-task/zod-schemas.ts +71 -0
  36. package/dist/apps/evo-tenant/zod-schemas.d.ts +18 -5
  37. package/dist/apps/evo-tenant/zod-schemas.js +3 -0
  38. package/dist/apps/evo-tenant/zod-schemas.ts +3 -0
  39. package/dist/apps/hub-automation/zod-schemas.d.ts +327 -327
  40. package/dist/apps/shared/zod-schemas.d.ts +3 -3
  41. package/dist/types/evo-crm/dic/index.d.ts +16 -1
  42. package/dist/types/evo-crm/dic/index.ts +23 -1
  43. package/dist/types/evo-crm/fb_collections.d.ts +1 -0
  44. package/dist/types/evo-crm/fb_collections.js +5 -1
  45. package/dist/types/evo-crm/fb_collections.ts +4 -0
  46. package/dist/types/evo-crm/lead/index.d.ts +6 -0
  47. package/dist/types/evo-crm/lead/index.ts +6 -0
  48. package/dist/types/evo-integrations/index.d.ts +16 -0
  49. package/dist/types/evo-integrations/index.js +18 -1
  50. package/dist/types/evo-integrations/index.ts +26 -0
  51. package/dist/types/evo-med/appointment/index.d.ts +22 -0
  52. package/dist/types/evo-med/appointment/index.js +7 -1
  53. package/dist/types/evo-med/appointment/index.ts +30 -0
  54. package/dist/types/evo-med/people/index.d.ts +6 -0
  55. package/dist/types/evo-med/people/index.ts +6 -0
  56. package/dist/types/evo-tenant/index.d.ts +7 -0
  57. package/dist/types/evo-tenant/index.ts +7 -0
  58. package/dist/types/shared/external-links.d.ts +98 -0
  59. package/dist/types/shared/external-links.js +64 -1
  60. package/dist/types/shared/external-links.ts +118 -0
  61. package/package.json +1 -1
@@ -327,21 +327,21 @@ export declare const zAutomationLeadSelectionSchema: z.ZodObject<{
327
327
  tag_names?: string[] | undefined;
328
328
  }>;
329
329
  }, "strip", z.ZodTypeAny, {
330
+ target: "lead";
330
331
  lead: {
331
332
  status_in?: string[] | undefined;
332
333
  qualification_codes?: string[] | undefined;
333
334
  dist_channel_codes?: string[] | undefined;
334
335
  tag_names?: string[] | undefined;
335
336
  };
336
- target: "lead";
337
337
  }, {
338
+ target: "lead";
338
339
  lead: {
339
340
  status_in?: string[] | undefined;
340
341
  qualification_codes?: string[] | undefined;
341
342
  dist_channel_codes?: string[] | undefined;
342
343
  tag_names?: string[] | undefined;
343
344
  };
344
- target: "lead";
345
345
  }>;
346
346
  export declare const zAutomationPatientSelectionSchema: z.ZodObject<{
347
347
  target: z.ZodLiteral<"patient">;
@@ -559,21 +559,21 @@ export declare const zAutomationSelectionSchema: z.ZodDiscriminatedUnion<"target
559
559
  tag_names?: string[] | undefined;
560
560
  }>;
561
561
  }, "strip", z.ZodTypeAny, {
562
+ target: "lead";
562
563
  lead: {
563
564
  status_in?: string[] | undefined;
564
565
  qualification_codes?: string[] | undefined;
565
566
  dist_channel_codes?: string[] | undefined;
566
567
  tag_names?: string[] | undefined;
567
568
  };
568
- target: "lead";
569
569
  }, {
570
+ target: "lead";
570
571
  lead: {
571
572
  status_in?: string[] | undefined;
572
573
  qualification_codes?: string[] | undefined;
573
574
  dist_channel_codes?: string[] | undefined;
574
575
  tag_names?: string[] | undefined;
575
576
  };
576
- target: "lead";
577
577
  }>, z.ZodObject<{
578
578
  target: z.ZodLiteral<"patient">;
579
579
  patient: z.ZodObject<{
@@ -784,14 +784,14 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
784
784
  name: string;
785
785
  hidden: boolean;
786
786
  base?: boolean | undefined;
787
- color?: string | undefined;
788
787
  category?: string | null | undefined;
788
+ color?: string | undefined;
789
789
  }, {
790
790
  name: string;
791
791
  hidden: boolean;
792
792
  base?: boolean | undefined;
793
- color?: string | undefined;
794
793
  category?: string | null | undefined;
794
+ color?: string | undefined;
795
795
  }>, "many">>>;
796
796
  }, "strip", z.ZodTypeAny, {
797
797
  description?: string | undefined;
@@ -799,8 +799,8 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
799
799
  name: string;
800
800
  hidden: boolean;
801
801
  base?: boolean | undefined;
802
- color?: string | undefined;
803
802
  category?: string | null | undefined;
803
+ color?: string | undefined;
804
804
  }[] | null | undefined;
805
805
  title?: string | undefined;
806
806
  priority?: "low" | "medium" | "high" | undefined;
@@ -810,8 +810,8 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
810
810
  name: string;
811
811
  hidden: boolean;
812
812
  base?: boolean | undefined;
813
- color?: string | undefined;
814
813
  category?: string | null | undefined;
814
+ color?: string | undefined;
815
815
  }[] | null | undefined;
816
816
  title?: string | undefined;
817
817
  priority?: "low" | "medium" | "high" | undefined;
@@ -822,11 +822,11 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
822
822
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
823
823
  }, "strip", z.ZodTypeAny, {
824
824
  kind: string;
825
- handler: "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";
825
+ 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";
826
826
  payload: Record<string, unknown>;
827
827
  }, {
828
828
  kind: string;
829
- handler: "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";
829
+ 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";
830
830
  payload: Record<string, unknown>;
831
831
  }>, "many">>;
832
832
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -854,14 +854,14 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
854
854
  name: string;
855
855
  hidden: boolean;
856
856
  base?: boolean | undefined;
857
- color?: string | undefined;
858
857
  category?: string | null | undefined;
858
+ color?: string | undefined;
859
859
  }, {
860
860
  name: string;
861
861
  hidden: boolean;
862
862
  base?: boolean | undefined;
863
- color?: string | undefined;
864
863
  category?: string | null | undefined;
864
+ color?: string | undefined;
865
865
  }>, "many">>>;
866
866
  }, "strip", z.ZodTypeAny, {
867
867
  description?: string | undefined;
@@ -869,8 +869,8 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
869
869
  name: string;
870
870
  hidden: boolean;
871
871
  base?: boolean | undefined;
872
- color?: string | undefined;
873
872
  category?: string | null | undefined;
873
+ color?: string | undefined;
874
874
  }[] | null | undefined;
875
875
  title?: string | undefined;
876
876
  priority?: "low" | "medium" | "high" | undefined;
@@ -880,8 +880,8 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
880
880
  name: string;
881
881
  hidden: boolean;
882
882
  base?: boolean | undefined;
883
- color?: string | undefined;
884
883
  category?: string | null | undefined;
884
+ color?: string | undefined;
885
885
  }[] | null | undefined;
886
886
  title?: string | undefined;
887
887
  priority?: "low" | "medium" | "high" | undefined;
@@ -892,11 +892,11 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
892
892
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
893
893
  }, "strip", z.ZodTypeAny, {
894
894
  kind: string;
895
- handler: "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";
895
+ 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";
896
896
  payload: Record<string, unknown>;
897
897
  }, {
898
898
  kind: string;
899
- handler: "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";
899
+ 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";
900
900
  payload: Record<string, unknown>;
901
901
  }>, "many">>;
902
902
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -924,14 +924,14 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
924
924
  name: string;
925
925
  hidden: boolean;
926
926
  base?: boolean | undefined;
927
- color?: string | undefined;
928
927
  category?: string | null | undefined;
928
+ color?: string | undefined;
929
929
  }, {
930
930
  name: string;
931
931
  hidden: boolean;
932
932
  base?: boolean | undefined;
933
- color?: string | undefined;
934
933
  category?: string | null | undefined;
934
+ color?: string | undefined;
935
935
  }>, "many">>>;
936
936
  }, "strip", z.ZodTypeAny, {
937
937
  description?: string | undefined;
@@ -939,8 +939,8 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
939
939
  name: string;
940
940
  hidden: boolean;
941
941
  base?: boolean | undefined;
942
- color?: string | undefined;
943
942
  category?: string | null | undefined;
943
+ color?: string | undefined;
944
944
  }[] | null | undefined;
945
945
  title?: string | undefined;
946
946
  priority?: "low" | "medium" | "high" | undefined;
@@ -950,8 +950,8 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
950
950
  name: string;
951
951
  hidden: boolean;
952
952
  base?: boolean | undefined;
953
- color?: string | undefined;
954
953
  category?: string | null | undefined;
954
+ color?: string | undefined;
955
955
  }[] | null | undefined;
956
956
  title?: string | undefined;
957
957
  priority?: "low" | "medium" | "high" | undefined;
@@ -962,11 +962,11 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
962
962
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
963
963
  }, "strip", z.ZodTypeAny, {
964
964
  kind: string;
965
- handler: "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";
965
+ 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";
966
966
  payload: Record<string, unknown>;
967
967
  }, {
968
968
  kind: string;
969
- handler: "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";
969
+ 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";
970
970
  payload: Record<string, unknown>;
971
971
  }>, "many">>;
972
972
  }, z.ZodTypeAny, "passthrough">>>;
@@ -983,7 +983,7 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
983
983
  rule: "relative_to_appointment";
984
984
  offset_minutes: number;
985
985
  };
986
- handler: "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";
986
+ 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";
987
987
  payload: Record<string, unknown>;
988
988
  retry?: z.objectOutputType<{
989
989
  max_attempts: z.ZodNumber;
@@ -1033,14 +1033,14 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1033
1033
  name: string;
1034
1034
  hidden: boolean;
1035
1035
  base?: boolean | undefined;
1036
- color?: string | undefined;
1037
1036
  category?: string | null | undefined;
1037
+ color?: string | undefined;
1038
1038
  }, {
1039
1039
  name: string;
1040
1040
  hidden: boolean;
1041
1041
  base?: boolean | undefined;
1042
- color?: string | undefined;
1043
1042
  category?: string | null | undefined;
1043
+ color?: string | undefined;
1044
1044
  }>, "many">>>;
1045
1045
  }, "strip", z.ZodTypeAny, {
1046
1046
  description?: string | undefined;
@@ -1048,8 +1048,8 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1048
1048
  name: string;
1049
1049
  hidden: boolean;
1050
1050
  base?: boolean | undefined;
1051
- color?: string | undefined;
1052
1051
  category?: string | null | undefined;
1052
+ color?: string | undefined;
1053
1053
  }[] | null | undefined;
1054
1054
  title?: string | undefined;
1055
1055
  priority?: "low" | "medium" | "high" | undefined;
@@ -1059,8 +1059,8 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1059
1059
  name: string;
1060
1060
  hidden: boolean;
1061
1061
  base?: boolean | undefined;
1062
- color?: string | undefined;
1063
1062
  category?: string | null | undefined;
1063
+ color?: string | undefined;
1064
1064
  }[] | null | undefined;
1065
1065
  title?: string | undefined;
1066
1066
  priority?: "low" | "medium" | "high" | undefined;
@@ -1071,11 +1071,11 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1071
1071
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1072
1072
  }, "strip", z.ZodTypeAny, {
1073
1073
  kind: string;
1074
- handler: "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";
1074
+ 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";
1075
1075
  payload: Record<string, unknown>;
1076
1076
  }, {
1077
1077
  kind: string;
1078
- handler: "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";
1078
+ 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";
1079
1079
  payload: Record<string, unknown>;
1080
1080
  }>, "many">>;
1081
1081
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1092,7 +1092,7 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1092
1092
  rule: "relative_to_appointment";
1093
1093
  offset_minutes: number;
1094
1094
  };
1095
- handler: "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";
1095
+ 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";
1096
1096
  payload?: Record<string, unknown> | undefined;
1097
1097
  retry?: z.objectInputType<{
1098
1098
  max_attempts: z.ZodNumber;
@@ -1142,14 +1142,14 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1142
1142
  name: string;
1143
1143
  hidden: boolean;
1144
1144
  base?: boolean | undefined;
1145
- color?: string | undefined;
1146
1145
  category?: string | null | undefined;
1146
+ color?: string | undefined;
1147
1147
  }, {
1148
1148
  name: string;
1149
1149
  hidden: boolean;
1150
1150
  base?: boolean | undefined;
1151
- color?: string | undefined;
1152
1151
  category?: string | null | undefined;
1152
+ color?: string | undefined;
1153
1153
  }>, "many">>>;
1154
1154
  }, "strip", z.ZodTypeAny, {
1155
1155
  description?: string | undefined;
@@ -1157,8 +1157,8 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1157
1157
  name: string;
1158
1158
  hidden: boolean;
1159
1159
  base?: boolean | undefined;
1160
- color?: string | undefined;
1161
1160
  category?: string | null | undefined;
1161
+ color?: string | undefined;
1162
1162
  }[] | null | undefined;
1163
1163
  title?: string | undefined;
1164
1164
  priority?: "low" | "medium" | "high" | undefined;
@@ -1168,8 +1168,8 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1168
1168
  name: string;
1169
1169
  hidden: boolean;
1170
1170
  base?: boolean | undefined;
1171
- color?: string | undefined;
1172
1171
  category?: string | null | undefined;
1172
+ color?: string | undefined;
1173
1173
  }[] | null | undefined;
1174
1174
  title?: string | undefined;
1175
1175
  priority?: "low" | "medium" | "high" | undefined;
@@ -1180,11 +1180,11 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1180
1180
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1181
1181
  }, "strip", z.ZodTypeAny, {
1182
1182
  kind: string;
1183
- handler: "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";
1183
+ 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";
1184
1184
  payload: Record<string, unknown>;
1185
1185
  }, {
1186
1186
  kind: string;
1187
- handler: "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";
1187
+ 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";
1188
1188
  payload: Record<string, unknown>;
1189
1189
  }>, "many">>;
1190
1190
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1343,14 +1343,14 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1343
1343
  name: string;
1344
1344
  hidden: boolean;
1345
1345
  base?: boolean | undefined;
1346
- color?: string | undefined;
1347
1346
  category?: string | null | undefined;
1347
+ color?: string | undefined;
1348
1348
  }, {
1349
1349
  name: string;
1350
1350
  hidden: boolean;
1351
1351
  base?: boolean | undefined;
1352
- color?: string | undefined;
1353
1352
  category?: string | null | undefined;
1353
+ color?: string | undefined;
1354
1354
  }>, "many">>>;
1355
1355
  }, "strip", z.ZodTypeAny, {
1356
1356
  description?: string | undefined;
@@ -1358,8 +1358,8 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1358
1358
  name: string;
1359
1359
  hidden: boolean;
1360
1360
  base?: boolean | undefined;
1361
- color?: string | undefined;
1362
1361
  category?: string | null | undefined;
1362
+ color?: string | undefined;
1363
1363
  }[] | null | undefined;
1364
1364
  title?: string | undefined;
1365
1365
  priority?: "low" | "medium" | "high" | undefined;
@@ -1369,8 +1369,8 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1369
1369
  name: string;
1370
1370
  hidden: boolean;
1371
1371
  base?: boolean | undefined;
1372
- color?: string | undefined;
1373
1372
  category?: string | null | undefined;
1373
+ color?: string | undefined;
1374
1374
  }[] | null | undefined;
1375
1375
  title?: string | undefined;
1376
1376
  priority?: "low" | "medium" | "high" | undefined;
@@ -1381,11 +1381,11 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1381
1381
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1382
1382
  }, "strip", z.ZodTypeAny, {
1383
1383
  kind: string;
1384
- handler: "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";
1384
+ 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";
1385
1385
  payload: Record<string, unknown>;
1386
1386
  }, {
1387
1387
  kind: string;
1388
- handler: "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";
1388
+ 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";
1389
1389
  payload: Record<string, unknown>;
1390
1390
  }>, "many">>;
1391
1391
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1413,14 +1413,14 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1413
1413
  name: string;
1414
1414
  hidden: boolean;
1415
1415
  base?: boolean | undefined;
1416
- color?: string | undefined;
1417
1416
  category?: string | null | undefined;
1417
+ color?: string | undefined;
1418
1418
  }, {
1419
1419
  name: string;
1420
1420
  hidden: boolean;
1421
1421
  base?: boolean | undefined;
1422
- color?: string | undefined;
1423
1422
  category?: string | null | undefined;
1423
+ color?: string | undefined;
1424
1424
  }>, "many">>>;
1425
1425
  }, "strip", z.ZodTypeAny, {
1426
1426
  description?: string | undefined;
@@ -1428,8 +1428,8 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1428
1428
  name: string;
1429
1429
  hidden: boolean;
1430
1430
  base?: boolean | undefined;
1431
- color?: string | undefined;
1432
1431
  category?: string | null | undefined;
1432
+ color?: string | undefined;
1433
1433
  }[] | null | undefined;
1434
1434
  title?: string | undefined;
1435
1435
  priority?: "low" | "medium" | "high" | undefined;
@@ -1439,8 +1439,8 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1439
1439
  name: string;
1440
1440
  hidden: boolean;
1441
1441
  base?: boolean | undefined;
1442
- color?: string | undefined;
1443
1442
  category?: string | null | undefined;
1443
+ color?: string | undefined;
1444
1444
  }[] | null | undefined;
1445
1445
  title?: string | undefined;
1446
1446
  priority?: "low" | "medium" | "high" | undefined;
@@ -1451,11 +1451,11 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1451
1451
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1452
1452
  }, "strip", z.ZodTypeAny, {
1453
1453
  kind: string;
1454
- handler: "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";
1454
+ 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";
1455
1455
  payload: Record<string, unknown>;
1456
1456
  }, {
1457
1457
  kind: string;
1458
- handler: "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";
1458
+ 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";
1459
1459
  payload: Record<string, unknown>;
1460
1460
  }>, "many">>;
1461
1461
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1483,14 +1483,14 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1483
1483
  name: string;
1484
1484
  hidden: boolean;
1485
1485
  base?: boolean | undefined;
1486
- color?: string | undefined;
1487
1486
  category?: string | null | undefined;
1487
+ color?: string | undefined;
1488
1488
  }, {
1489
1489
  name: string;
1490
1490
  hidden: boolean;
1491
1491
  base?: boolean | undefined;
1492
- color?: string | undefined;
1493
1492
  category?: string | null | undefined;
1493
+ color?: string | undefined;
1494
1494
  }>, "many">>>;
1495
1495
  }, "strip", z.ZodTypeAny, {
1496
1496
  description?: string | undefined;
@@ -1498,8 +1498,8 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1498
1498
  name: string;
1499
1499
  hidden: boolean;
1500
1500
  base?: boolean | undefined;
1501
- color?: string | undefined;
1502
1501
  category?: string | null | undefined;
1502
+ color?: string | undefined;
1503
1503
  }[] | null | undefined;
1504
1504
  title?: string | undefined;
1505
1505
  priority?: "low" | "medium" | "high" | undefined;
@@ -1509,8 +1509,8 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1509
1509
  name: string;
1510
1510
  hidden: boolean;
1511
1511
  base?: boolean | undefined;
1512
- color?: string | undefined;
1513
1512
  category?: string | null | undefined;
1513
+ color?: string | undefined;
1514
1514
  }[] | null | undefined;
1515
1515
  title?: string | undefined;
1516
1516
  priority?: "low" | "medium" | "high" | undefined;
@@ -1521,11 +1521,11 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1521
1521
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1522
1522
  }, "strip", z.ZodTypeAny, {
1523
1523
  kind: string;
1524
- handler: "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";
1524
+ 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";
1525
1525
  payload: Record<string, unknown>;
1526
1526
  }, {
1527
1527
  kind: string;
1528
- handler: "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";
1528
+ 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";
1529
1529
  payload: Record<string, unknown>;
1530
1530
  }>, "many">>;
1531
1531
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1542,7 +1542,7 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1542
1542
  rule: "relative_to_appointment";
1543
1543
  offset_minutes: number;
1544
1544
  };
1545
- handler: "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";
1545
+ 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";
1546
1546
  payload: Record<string, unknown>;
1547
1547
  retry?: z.objectOutputType<{
1548
1548
  max_attempts: z.ZodNumber;
@@ -1592,14 +1592,14 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1592
1592
  name: string;
1593
1593
  hidden: boolean;
1594
1594
  base?: boolean | undefined;
1595
- color?: string | undefined;
1596
1595
  category?: string | null | undefined;
1596
+ color?: string | undefined;
1597
1597
  }, {
1598
1598
  name: string;
1599
1599
  hidden: boolean;
1600
1600
  base?: boolean | undefined;
1601
- color?: string | undefined;
1602
1601
  category?: string | null | undefined;
1602
+ color?: string | undefined;
1603
1603
  }>, "many">>>;
1604
1604
  }, "strip", z.ZodTypeAny, {
1605
1605
  description?: string | undefined;
@@ -1607,8 +1607,8 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1607
1607
  name: string;
1608
1608
  hidden: boolean;
1609
1609
  base?: boolean | undefined;
1610
- color?: string | undefined;
1611
1610
  category?: string | null | undefined;
1611
+ color?: string | undefined;
1612
1612
  }[] | null | undefined;
1613
1613
  title?: string | undefined;
1614
1614
  priority?: "low" | "medium" | "high" | undefined;
@@ -1618,8 +1618,8 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1618
1618
  name: string;
1619
1619
  hidden: boolean;
1620
1620
  base?: boolean | undefined;
1621
- color?: string | undefined;
1622
1621
  category?: string | null | undefined;
1622
+ color?: string | undefined;
1623
1623
  }[] | null | undefined;
1624
1624
  title?: string | undefined;
1625
1625
  priority?: "low" | "medium" | "high" | undefined;
@@ -1630,11 +1630,11 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1630
1630
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1631
1631
  }, "strip", z.ZodTypeAny, {
1632
1632
  kind: string;
1633
- handler: "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";
1633
+ 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";
1634
1634
  payload: Record<string, unknown>;
1635
1635
  }, {
1636
1636
  kind: string;
1637
- handler: "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";
1637
+ 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";
1638
1638
  payload: Record<string, unknown>;
1639
1639
  }>, "many">>;
1640
1640
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1651,7 +1651,7 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1651
1651
  rule: "relative_to_appointment";
1652
1652
  offset_minutes: number;
1653
1653
  };
1654
- handler: "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";
1654
+ 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";
1655
1655
  payload?: Record<string, unknown> | undefined;
1656
1656
  retry?: z.objectInputType<{
1657
1657
  max_attempts: z.ZodNumber;
@@ -1701,14 +1701,14 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1701
1701
  name: string;
1702
1702
  hidden: boolean;
1703
1703
  base?: boolean | undefined;
1704
- color?: string | undefined;
1705
1704
  category?: string | null | undefined;
1705
+ color?: string | undefined;
1706
1706
  }, {
1707
1707
  name: string;
1708
1708
  hidden: boolean;
1709
1709
  base?: boolean | undefined;
1710
- color?: string | undefined;
1711
1710
  category?: string | null | undefined;
1711
+ color?: string | undefined;
1712
1712
  }>, "many">>>;
1713
1713
  }, "strip", z.ZodTypeAny, {
1714
1714
  description?: string | undefined;
@@ -1716,8 +1716,8 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1716
1716
  name: string;
1717
1717
  hidden: boolean;
1718
1718
  base?: boolean | undefined;
1719
- color?: string | undefined;
1720
1719
  category?: string | null | undefined;
1720
+ color?: string | undefined;
1721
1721
  }[] | null | undefined;
1722
1722
  title?: string | undefined;
1723
1723
  priority?: "low" | "medium" | "high" | undefined;
@@ -1727,8 +1727,8 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1727
1727
  name: string;
1728
1728
  hidden: boolean;
1729
1729
  base?: boolean | undefined;
1730
- color?: string | undefined;
1731
1730
  category?: string | null | undefined;
1731
+ color?: string | undefined;
1732
1732
  }[] | null | undefined;
1733
1733
  title?: string | undefined;
1734
1734
  priority?: "low" | "medium" | "high" | undefined;
@@ -1739,11 +1739,11 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1739
1739
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1740
1740
  }, "strip", z.ZodTypeAny, {
1741
1741
  kind: string;
1742
- handler: "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";
1742
+ 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";
1743
1743
  payload: Record<string, unknown>;
1744
1744
  }, {
1745
1745
  kind: string;
1746
- handler: "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";
1746
+ 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";
1747
1747
  payload: Record<string, unknown>;
1748
1748
  }>, "many">>;
1749
1749
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1905,14 +1905,14 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
1905
1905
  name: string;
1906
1906
  hidden: boolean;
1907
1907
  base?: boolean | undefined;
1908
- color?: string | undefined;
1909
1908
  category?: string | null | undefined;
1909
+ color?: string | undefined;
1910
1910
  }, {
1911
1911
  name: string;
1912
1912
  hidden: boolean;
1913
1913
  base?: boolean | undefined;
1914
- color?: string | undefined;
1915
1914
  category?: string | null | undefined;
1915
+ color?: string | undefined;
1916
1916
  }>, "many">>>;
1917
1917
  }, "strip", z.ZodTypeAny, {
1918
1918
  description?: string | undefined;
@@ -1920,8 +1920,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
1920
1920
  name: string;
1921
1921
  hidden: boolean;
1922
1922
  base?: boolean | undefined;
1923
- color?: string | undefined;
1924
1923
  category?: string | null | undefined;
1924
+ color?: string | undefined;
1925
1925
  }[] | null | undefined;
1926
1926
  title?: string | undefined;
1927
1927
  priority?: "low" | "medium" | "high" | undefined;
@@ -1931,8 +1931,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
1931
1931
  name: string;
1932
1932
  hidden: boolean;
1933
1933
  base?: boolean | undefined;
1934
- color?: string | undefined;
1935
1934
  category?: string | null | undefined;
1935
+ color?: string | undefined;
1936
1936
  }[] | null | undefined;
1937
1937
  title?: string | undefined;
1938
1938
  priority?: "low" | "medium" | "high" | undefined;
@@ -1943,11 +1943,11 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
1943
1943
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1944
1944
  }, "strip", z.ZodTypeAny, {
1945
1945
  kind: string;
1946
- handler: "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";
1946
+ 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";
1947
1947
  payload: Record<string, unknown>;
1948
1948
  }, {
1949
1949
  kind: string;
1950
- handler: "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";
1950
+ 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";
1951
1951
  payload: Record<string, unknown>;
1952
1952
  }>, "many">>;
1953
1953
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1975,14 +1975,14 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
1975
1975
  name: string;
1976
1976
  hidden: boolean;
1977
1977
  base?: boolean | undefined;
1978
- color?: string | undefined;
1979
1978
  category?: string | null | undefined;
1979
+ color?: string | undefined;
1980
1980
  }, {
1981
1981
  name: string;
1982
1982
  hidden: boolean;
1983
1983
  base?: boolean | undefined;
1984
- color?: string | undefined;
1985
1984
  category?: string | null | undefined;
1985
+ color?: string | undefined;
1986
1986
  }>, "many">>>;
1987
1987
  }, "strip", z.ZodTypeAny, {
1988
1988
  description?: string | undefined;
@@ -1990,8 +1990,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
1990
1990
  name: string;
1991
1991
  hidden: boolean;
1992
1992
  base?: boolean | undefined;
1993
- color?: string | undefined;
1994
1993
  category?: string | null | undefined;
1994
+ color?: string | undefined;
1995
1995
  }[] | null | undefined;
1996
1996
  title?: string | undefined;
1997
1997
  priority?: "low" | "medium" | "high" | undefined;
@@ -2001,8 +2001,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2001
2001
  name: string;
2002
2002
  hidden: boolean;
2003
2003
  base?: boolean | undefined;
2004
- color?: string | undefined;
2005
2004
  category?: string | null | undefined;
2005
+ color?: string | undefined;
2006
2006
  }[] | null | undefined;
2007
2007
  title?: string | undefined;
2008
2008
  priority?: "low" | "medium" | "high" | undefined;
@@ -2013,11 +2013,11 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2013
2013
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2014
2014
  }, "strip", z.ZodTypeAny, {
2015
2015
  kind: string;
2016
- handler: "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";
2016
+ 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";
2017
2017
  payload: Record<string, unknown>;
2018
2018
  }, {
2019
2019
  kind: string;
2020
- handler: "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";
2020
+ 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";
2021
2021
  payload: Record<string, unknown>;
2022
2022
  }>, "many">>;
2023
2023
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2045,14 +2045,14 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2045
2045
  name: string;
2046
2046
  hidden: boolean;
2047
2047
  base?: boolean | undefined;
2048
- color?: string | undefined;
2049
2048
  category?: string | null | undefined;
2049
+ color?: string | undefined;
2050
2050
  }, {
2051
2051
  name: string;
2052
2052
  hidden: boolean;
2053
2053
  base?: boolean | undefined;
2054
- color?: string | undefined;
2055
2054
  category?: string | null | undefined;
2055
+ color?: string | undefined;
2056
2056
  }>, "many">>>;
2057
2057
  }, "strip", z.ZodTypeAny, {
2058
2058
  description?: string | undefined;
@@ -2060,8 +2060,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2060
2060
  name: string;
2061
2061
  hidden: boolean;
2062
2062
  base?: boolean | undefined;
2063
- color?: string | undefined;
2064
2063
  category?: string | null | undefined;
2064
+ color?: string | undefined;
2065
2065
  }[] | null | undefined;
2066
2066
  title?: string | undefined;
2067
2067
  priority?: "low" | "medium" | "high" | undefined;
@@ -2071,8 +2071,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2071
2071
  name: string;
2072
2072
  hidden: boolean;
2073
2073
  base?: boolean | undefined;
2074
- color?: string | undefined;
2075
2074
  category?: string | null | undefined;
2075
+ color?: string | undefined;
2076
2076
  }[] | null | undefined;
2077
2077
  title?: string | undefined;
2078
2078
  priority?: "low" | "medium" | "high" | undefined;
@@ -2083,11 +2083,11 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2083
2083
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2084
2084
  }, "strip", z.ZodTypeAny, {
2085
2085
  kind: string;
2086
- handler: "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";
2086
+ 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";
2087
2087
  payload: Record<string, unknown>;
2088
2088
  }, {
2089
2089
  kind: string;
2090
- handler: "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";
2090
+ 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";
2091
2091
  payload: Record<string, unknown>;
2092
2092
  }>, "many">>;
2093
2093
  }, z.ZodTypeAny, "passthrough">>>;
@@ -2104,7 +2104,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2104
2104
  rule: "relative_to_appointment";
2105
2105
  offset_minutes: number;
2106
2106
  };
2107
- handler: "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";
2107
+ 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";
2108
2108
  payload: Record<string, unknown>;
2109
2109
  retry?: z.objectOutputType<{
2110
2110
  max_attempts: z.ZodNumber;
@@ -2154,14 +2154,14 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2154
2154
  name: string;
2155
2155
  hidden: boolean;
2156
2156
  base?: boolean | undefined;
2157
- color?: string | undefined;
2158
2157
  category?: string | null | undefined;
2158
+ color?: string | undefined;
2159
2159
  }, {
2160
2160
  name: string;
2161
2161
  hidden: boolean;
2162
2162
  base?: boolean | undefined;
2163
- color?: string | undefined;
2164
2163
  category?: string | null | undefined;
2164
+ color?: string | undefined;
2165
2165
  }>, "many">>>;
2166
2166
  }, "strip", z.ZodTypeAny, {
2167
2167
  description?: string | undefined;
@@ -2169,8 +2169,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2169
2169
  name: string;
2170
2170
  hidden: boolean;
2171
2171
  base?: boolean | undefined;
2172
- color?: string | undefined;
2173
2172
  category?: string | null | undefined;
2173
+ color?: string | undefined;
2174
2174
  }[] | null | undefined;
2175
2175
  title?: string | undefined;
2176
2176
  priority?: "low" | "medium" | "high" | undefined;
@@ -2180,8 +2180,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2180
2180
  name: string;
2181
2181
  hidden: boolean;
2182
2182
  base?: boolean | undefined;
2183
- color?: string | undefined;
2184
2183
  category?: string | null | undefined;
2184
+ color?: string | undefined;
2185
2185
  }[] | null | undefined;
2186
2186
  title?: string | undefined;
2187
2187
  priority?: "low" | "medium" | "high" | undefined;
@@ -2192,11 +2192,11 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2192
2192
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2193
2193
  }, "strip", z.ZodTypeAny, {
2194
2194
  kind: string;
2195
- handler: "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";
2195
+ 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";
2196
2196
  payload: Record<string, unknown>;
2197
2197
  }, {
2198
2198
  kind: string;
2199
- handler: "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";
2199
+ 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";
2200
2200
  payload: Record<string, unknown>;
2201
2201
  }>, "many">>;
2202
2202
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2213,7 +2213,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2213
2213
  rule: "relative_to_appointment";
2214
2214
  offset_minutes: number;
2215
2215
  };
2216
- handler: "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";
2216
+ 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";
2217
2217
  payload?: Record<string, unknown> | undefined;
2218
2218
  retry?: z.objectInputType<{
2219
2219
  max_attempts: z.ZodNumber;
@@ -2263,14 +2263,14 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2263
2263
  name: string;
2264
2264
  hidden: boolean;
2265
2265
  base?: boolean | undefined;
2266
- color?: string | undefined;
2267
2266
  category?: string | null | undefined;
2267
+ color?: string | undefined;
2268
2268
  }, {
2269
2269
  name: string;
2270
2270
  hidden: boolean;
2271
2271
  base?: boolean | undefined;
2272
- color?: string | undefined;
2273
2272
  category?: string | null | undefined;
2273
+ color?: string | undefined;
2274
2274
  }>, "many">>>;
2275
2275
  }, "strip", z.ZodTypeAny, {
2276
2276
  description?: string | undefined;
@@ -2278,8 +2278,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2278
2278
  name: string;
2279
2279
  hidden: boolean;
2280
2280
  base?: boolean | undefined;
2281
- color?: string | undefined;
2282
2281
  category?: string | null | undefined;
2282
+ color?: string | undefined;
2283
2283
  }[] | null | undefined;
2284
2284
  title?: string | undefined;
2285
2285
  priority?: "low" | "medium" | "high" | undefined;
@@ -2289,8 +2289,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2289
2289
  name: string;
2290
2290
  hidden: boolean;
2291
2291
  base?: boolean | undefined;
2292
- color?: string | undefined;
2293
2292
  category?: string | null | undefined;
2293
+ color?: string | undefined;
2294
2294
  }[] | null | undefined;
2295
2295
  title?: string | undefined;
2296
2296
  priority?: "low" | "medium" | "high" | undefined;
@@ -2301,11 +2301,11 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2301
2301
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2302
2302
  }, "strip", z.ZodTypeAny, {
2303
2303
  kind: string;
2304
- handler: "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";
2304
+ 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";
2305
2305
  payload: Record<string, unknown>;
2306
2306
  }, {
2307
2307
  kind: string;
2308
- handler: "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";
2308
+ 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";
2309
2309
  payload: Record<string, unknown>;
2310
2310
  }>, "many">>;
2311
2311
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2353,7 +2353,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2353
2353
  rule: "relative_to_appointment";
2354
2354
  offset_minutes: number;
2355
2355
  };
2356
- handler: "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";
2356
+ 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";
2357
2357
  payload: Record<string, unknown>;
2358
2358
  retry?: z.objectOutputType<{
2359
2359
  max_attempts: z.ZodNumber;
@@ -2403,14 +2403,14 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2403
2403
  name: string;
2404
2404
  hidden: boolean;
2405
2405
  base?: boolean | undefined;
2406
- color?: string | undefined;
2407
2406
  category?: string | null | undefined;
2407
+ color?: string | undefined;
2408
2408
  }, {
2409
2409
  name: string;
2410
2410
  hidden: boolean;
2411
2411
  base?: boolean | undefined;
2412
- color?: string | undefined;
2413
2412
  category?: string | null | undefined;
2413
+ color?: string | undefined;
2414
2414
  }>, "many">>>;
2415
2415
  }, "strip", z.ZodTypeAny, {
2416
2416
  description?: string | undefined;
@@ -2418,8 +2418,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2418
2418
  name: string;
2419
2419
  hidden: boolean;
2420
2420
  base?: boolean | undefined;
2421
- color?: string | undefined;
2422
2421
  category?: string | null | undefined;
2422
+ color?: string | undefined;
2423
2423
  }[] | null | undefined;
2424
2424
  title?: string | undefined;
2425
2425
  priority?: "low" | "medium" | "high" | undefined;
@@ -2429,8 +2429,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2429
2429
  name: string;
2430
2430
  hidden: boolean;
2431
2431
  base?: boolean | undefined;
2432
- color?: string | undefined;
2433
2432
  category?: string | null | undefined;
2433
+ color?: string | undefined;
2434
2434
  }[] | null | undefined;
2435
2435
  title?: string | undefined;
2436
2436
  priority?: "low" | "medium" | "high" | undefined;
@@ -2441,11 +2441,11 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2441
2441
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2442
2442
  }, "strip", z.ZodTypeAny, {
2443
2443
  kind: string;
2444
- handler: "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";
2444
+ 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";
2445
2445
  payload: Record<string, unknown>;
2446
2446
  }, {
2447
2447
  kind: string;
2448
- handler: "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";
2448
+ 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";
2449
2449
  payload: Record<string, unknown>;
2450
2450
  }>, "many">>;
2451
2451
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2477,7 +2477,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2477
2477
  rule: "relative_to_appointment";
2478
2478
  offset_minutes: number;
2479
2479
  };
2480
- handler: "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";
2480
+ 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";
2481
2481
  payload?: Record<string, unknown> | undefined;
2482
2482
  retry?: z.objectInputType<{
2483
2483
  max_attempts: z.ZodNumber;
@@ -2527,14 +2527,14 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2527
2527
  name: string;
2528
2528
  hidden: boolean;
2529
2529
  base?: boolean | undefined;
2530
- color?: string | undefined;
2531
2530
  category?: string | null | undefined;
2531
+ color?: string | undefined;
2532
2532
  }, {
2533
2533
  name: string;
2534
2534
  hidden: boolean;
2535
2535
  base?: boolean | undefined;
2536
- color?: string | undefined;
2537
2536
  category?: string | null | undefined;
2537
+ color?: string | undefined;
2538
2538
  }>, "many">>>;
2539
2539
  }, "strip", z.ZodTypeAny, {
2540
2540
  description?: string | undefined;
@@ -2542,8 +2542,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2542
2542
  name: string;
2543
2543
  hidden: boolean;
2544
2544
  base?: boolean | undefined;
2545
- color?: string | undefined;
2546
2545
  category?: string | null | undefined;
2546
+ color?: string | undefined;
2547
2547
  }[] | null | undefined;
2548
2548
  title?: string | undefined;
2549
2549
  priority?: "low" | "medium" | "high" | undefined;
@@ -2553,8 +2553,8 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2553
2553
  name: string;
2554
2554
  hidden: boolean;
2555
2555
  base?: boolean | undefined;
2556
- color?: string | undefined;
2557
2556
  category?: string | null | undefined;
2557
+ color?: string | undefined;
2558
2558
  }[] | null | undefined;
2559
2559
  title?: string | undefined;
2560
2560
  priority?: "low" | "medium" | "high" | undefined;
@@ -2565,11 +2565,11 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2565
2565
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2566
2566
  }, "strip", z.ZodTypeAny, {
2567
2567
  kind: string;
2568
- handler: "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";
2568
+ 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";
2569
2569
  payload: Record<string, unknown>;
2570
2570
  }, {
2571
2571
  kind: string;
2572
- handler: "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";
2572
+ 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";
2573
2573
  payload: Record<string, unknown>;
2574
2574
  }>, "many">>;
2575
2575
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2834,21 +2834,21 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2834
2834
  tag_names?: string[] | undefined;
2835
2835
  }>;
2836
2836
  }, "strip", z.ZodTypeAny, {
2837
+ target: "lead";
2837
2838
  lead: {
2838
2839
  status_in?: string[] | undefined;
2839
2840
  qualification_codes?: string[] | undefined;
2840
2841
  dist_channel_codes?: string[] | undefined;
2841
2842
  tag_names?: string[] | undefined;
2842
2843
  };
2843
- target: "lead";
2844
2844
  }, {
2845
+ target: "lead";
2845
2846
  lead: {
2846
2847
  status_in?: string[] | undefined;
2847
2848
  qualification_codes?: string[] | undefined;
2848
2849
  dist_channel_codes?: string[] | undefined;
2849
2850
  tag_names?: string[] | undefined;
2850
2851
  };
2851
- target: "lead";
2852
2852
  }>, z.ZodObject<{
2853
2853
  target: z.ZodLiteral<"patient">;
2854
2854
  patient: z.ZodObject<{
@@ -3010,14 +3010,14 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3010
3010
  name: string;
3011
3011
  hidden: boolean;
3012
3012
  base?: boolean | undefined;
3013
- color?: string | undefined;
3014
3013
  category?: string | null | undefined;
3014
+ color?: string | undefined;
3015
3015
  }, {
3016
3016
  name: string;
3017
3017
  hidden: boolean;
3018
3018
  base?: boolean | undefined;
3019
- color?: string | undefined;
3020
3019
  category?: string | null | undefined;
3020
+ color?: string | undefined;
3021
3021
  }>, "many">>>;
3022
3022
  }, "strip", z.ZodTypeAny, {
3023
3023
  description?: string | undefined;
@@ -3025,8 +3025,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3025
3025
  name: string;
3026
3026
  hidden: boolean;
3027
3027
  base?: boolean | undefined;
3028
- color?: string | undefined;
3029
3028
  category?: string | null | undefined;
3029
+ color?: string | undefined;
3030
3030
  }[] | null | undefined;
3031
3031
  title?: string | undefined;
3032
3032
  priority?: "low" | "medium" | "high" | undefined;
@@ -3036,8 +3036,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3036
3036
  name: string;
3037
3037
  hidden: boolean;
3038
3038
  base?: boolean | undefined;
3039
- color?: string | undefined;
3040
3039
  category?: string | null | undefined;
3040
+ color?: string | undefined;
3041
3041
  }[] | null | undefined;
3042
3042
  title?: string | undefined;
3043
3043
  priority?: "low" | "medium" | "high" | undefined;
@@ -3048,11 +3048,11 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3048
3048
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3049
3049
  }, "strip", z.ZodTypeAny, {
3050
3050
  kind: string;
3051
- handler: "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";
3051
+ 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";
3052
3052
  payload: Record<string, unknown>;
3053
3053
  }, {
3054
3054
  kind: string;
3055
- handler: "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";
3055
+ 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";
3056
3056
  payload: Record<string, unknown>;
3057
3057
  }>, "many">>;
3058
3058
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3080,14 +3080,14 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3080
3080
  name: string;
3081
3081
  hidden: boolean;
3082
3082
  base?: boolean | undefined;
3083
- color?: string | undefined;
3084
3083
  category?: string | null | undefined;
3084
+ color?: string | undefined;
3085
3085
  }, {
3086
3086
  name: string;
3087
3087
  hidden: boolean;
3088
3088
  base?: boolean | undefined;
3089
- color?: string | undefined;
3090
3089
  category?: string | null | undefined;
3090
+ color?: string | undefined;
3091
3091
  }>, "many">>>;
3092
3092
  }, "strip", z.ZodTypeAny, {
3093
3093
  description?: string | undefined;
@@ -3095,8 +3095,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3095
3095
  name: string;
3096
3096
  hidden: boolean;
3097
3097
  base?: boolean | undefined;
3098
- color?: string | undefined;
3099
3098
  category?: string | null | undefined;
3099
+ color?: string | undefined;
3100
3100
  }[] | null | undefined;
3101
3101
  title?: string | undefined;
3102
3102
  priority?: "low" | "medium" | "high" | undefined;
@@ -3106,8 +3106,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3106
3106
  name: string;
3107
3107
  hidden: boolean;
3108
3108
  base?: boolean | undefined;
3109
- color?: string | undefined;
3110
3109
  category?: string | null | undefined;
3110
+ color?: string | undefined;
3111
3111
  }[] | null | undefined;
3112
3112
  title?: string | undefined;
3113
3113
  priority?: "low" | "medium" | "high" | undefined;
@@ -3118,11 +3118,11 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3118
3118
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3119
3119
  }, "strip", z.ZodTypeAny, {
3120
3120
  kind: string;
3121
- handler: "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";
3121
+ 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";
3122
3122
  payload: Record<string, unknown>;
3123
3123
  }, {
3124
3124
  kind: string;
3125
- handler: "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";
3125
+ 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";
3126
3126
  payload: Record<string, unknown>;
3127
3127
  }>, "many">>;
3128
3128
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3150,14 +3150,14 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3150
3150
  name: string;
3151
3151
  hidden: boolean;
3152
3152
  base?: boolean | undefined;
3153
- color?: string | undefined;
3154
3153
  category?: string | null | undefined;
3154
+ color?: string | undefined;
3155
3155
  }, {
3156
3156
  name: string;
3157
3157
  hidden: boolean;
3158
3158
  base?: boolean | undefined;
3159
- color?: string | undefined;
3160
3159
  category?: string | null | undefined;
3160
+ color?: string | undefined;
3161
3161
  }>, "many">>>;
3162
3162
  }, "strip", z.ZodTypeAny, {
3163
3163
  description?: string | undefined;
@@ -3165,8 +3165,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3165
3165
  name: string;
3166
3166
  hidden: boolean;
3167
3167
  base?: boolean | undefined;
3168
- color?: string | undefined;
3169
3168
  category?: string | null | undefined;
3169
+ color?: string | undefined;
3170
3170
  }[] | null | undefined;
3171
3171
  title?: string | undefined;
3172
3172
  priority?: "low" | "medium" | "high" | undefined;
@@ -3176,8 +3176,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3176
3176
  name: string;
3177
3177
  hidden: boolean;
3178
3178
  base?: boolean | undefined;
3179
- color?: string | undefined;
3180
3179
  category?: string | null | undefined;
3180
+ color?: string | undefined;
3181
3181
  }[] | null | undefined;
3182
3182
  title?: string | undefined;
3183
3183
  priority?: "low" | "medium" | "high" | undefined;
@@ -3188,11 +3188,11 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3188
3188
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3189
3189
  }, "strip", z.ZodTypeAny, {
3190
3190
  kind: string;
3191
- handler: "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";
3191
+ 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";
3192
3192
  payload: Record<string, unknown>;
3193
3193
  }, {
3194
3194
  kind: string;
3195
- handler: "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";
3195
+ 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";
3196
3196
  payload: Record<string, unknown>;
3197
3197
  }>, "many">>;
3198
3198
  }, z.ZodTypeAny, "passthrough">>>;
@@ -3209,7 +3209,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3209
3209
  rule: "relative_to_appointment";
3210
3210
  offset_minutes: number;
3211
3211
  };
3212
- handler: "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";
3212
+ 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";
3213
3213
  payload: Record<string, unknown>;
3214
3214
  retry?: z.objectOutputType<{
3215
3215
  max_attempts: z.ZodNumber;
@@ -3259,14 +3259,14 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3259
3259
  name: string;
3260
3260
  hidden: boolean;
3261
3261
  base?: boolean | undefined;
3262
- color?: string | undefined;
3263
3262
  category?: string | null | undefined;
3263
+ color?: string | undefined;
3264
3264
  }, {
3265
3265
  name: string;
3266
3266
  hidden: boolean;
3267
3267
  base?: boolean | undefined;
3268
- color?: string | undefined;
3269
3268
  category?: string | null | undefined;
3269
+ color?: string | undefined;
3270
3270
  }>, "many">>>;
3271
3271
  }, "strip", z.ZodTypeAny, {
3272
3272
  description?: string | undefined;
@@ -3274,8 +3274,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3274
3274
  name: string;
3275
3275
  hidden: boolean;
3276
3276
  base?: boolean | undefined;
3277
- color?: string | undefined;
3278
3277
  category?: string | null | undefined;
3278
+ color?: string | undefined;
3279
3279
  }[] | null | undefined;
3280
3280
  title?: string | undefined;
3281
3281
  priority?: "low" | "medium" | "high" | undefined;
@@ -3285,8 +3285,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3285
3285
  name: string;
3286
3286
  hidden: boolean;
3287
3287
  base?: boolean | undefined;
3288
- color?: string | undefined;
3289
3288
  category?: string | null | undefined;
3289
+ color?: string | undefined;
3290
3290
  }[] | null | undefined;
3291
3291
  title?: string | undefined;
3292
3292
  priority?: "low" | "medium" | "high" | undefined;
@@ -3297,11 +3297,11 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3297
3297
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3298
3298
  }, "strip", z.ZodTypeAny, {
3299
3299
  kind: string;
3300
- handler: "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";
3300
+ 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";
3301
3301
  payload: Record<string, unknown>;
3302
3302
  }, {
3303
3303
  kind: string;
3304
- handler: "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";
3304
+ 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";
3305
3305
  payload: Record<string, unknown>;
3306
3306
  }>, "many">>;
3307
3307
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3318,7 +3318,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3318
3318
  rule: "relative_to_appointment";
3319
3319
  offset_minutes: number;
3320
3320
  };
3321
- handler: "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";
3321
+ 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";
3322
3322
  payload?: Record<string, unknown> | undefined;
3323
3323
  retry?: z.objectInputType<{
3324
3324
  max_attempts: z.ZodNumber;
@@ -3368,14 +3368,14 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3368
3368
  name: string;
3369
3369
  hidden: boolean;
3370
3370
  base?: boolean | undefined;
3371
- color?: string | undefined;
3372
3371
  category?: string | null | undefined;
3372
+ color?: string | undefined;
3373
3373
  }, {
3374
3374
  name: string;
3375
3375
  hidden: boolean;
3376
3376
  base?: boolean | undefined;
3377
- color?: string | undefined;
3378
3377
  category?: string | null | undefined;
3378
+ color?: string | undefined;
3379
3379
  }>, "many">>>;
3380
3380
  }, "strip", z.ZodTypeAny, {
3381
3381
  description?: string | undefined;
@@ -3383,8 +3383,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3383
3383
  name: string;
3384
3384
  hidden: boolean;
3385
3385
  base?: boolean | undefined;
3386
- color?: string | undefined;
3387
3386
  category?: string | null | undefined;
3387
+ color?: string | undefined;
3388
3388
  }[] | null | undefined;
3389
3389
  title?: string | undefined;
3390
3390
  priority?: "low" | "medium" | "high" | undefined;
@@ -3394,8 +3394,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3394
3394
  name: string;
3395
3395
  hidden: boolean;
3396
3396
  base?: boolean | undefined;
3397
- color?: string | undefined;
3398
3397
  category?: string | null | undefined;
3398
+ color?: string | undefined;
3399
3399
  }[] | null | undefined;
3400
3400
  title?: string | undefined;
3401
3401
  priority?: "low" | "medium" | "high" | undefined;
@@ -3406,11 +3406,11 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3406
3406
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3407
3407
  }, "strip", z.ZodTypeAny, {
3408
3408
  kind: string;
3409
- handler: "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";
3409
+ 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";
3410
3410
  payload: Record<string, unknown>;
3411
3411
  }, {
3412
3412
  kind: string;
3413
- handler: "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";
3413
+ 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";
3414
3414
  payload: Record<string, unknown>;
3415
3415
  }>, "many">>;
3416
3416
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3458,7 +3458,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3458
3458
  rule: "relative_to_appointment";
3459
3459
  offset_minutes: number;
3460
3460
  };
3461
- handler: "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";
3461
+ 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";
3462
3462
  payload: Record<string, unknown>;
3463
3463
  retry?: z.objectOutputType<{
3464
3464
  max_attempts: z.ZodNumber;
@@ -3508,14 +3508,14 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3508
3508
  name: string;
3509
3509
  hidden: boolean;
3510
3510
  base?: boolean | undefined;
3511
- color?: string | undefined;
3512
3511
  category?: string | null | undefined;
3512
+ color?: string | undefined;
3513
3513
  }, {
3514
3514
  name: string;
3515
3515
  hidden: boolean;
3516
3516
  base?: boolean | undefined;
3517
- color?: string | undefined;
3518
3517
  category?: string | null | undefined;
3518
+ color?: string | undefined;
3519
3519
  }>, "many">>>;
3520
3520
  }, "strip", z.ZodTypeAny, {
3521
3521
  description?: string | undefined;
@@ -3523,8 +3523,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3523
3523
  name: string;
3524
3524
  hidden: boolean;
3525
3525
  base?: boolean | undefined;
3526
- color?: string | undefined;
3527
3526
  category?: string | null | undefined;
3527
+ color?: string | undefined;
3528
3528
  }[] | null | undefined;
3529
3529
  title?: string | undefined;
3530
3530
  priority?: "low" | "medium" | "high" | undefined;
@@ -3534,8 +3534,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3534
3534
  name: string;
3535
3535
  hidden: boolean;
3536
3536
  base?: boolean | undefined;
3537
- color?: string | undefined;
3538
3537
  category?: string | null | undefined;
3538
+ color?: string | undefined;
3539
3539
  }[] | null | undefined;
3540
3540
  title?: string | undefined;
3541
3541
  priority?: "low" | "medium" | "high" | undefined;
@@ -3546,11 +3546,11 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3546
3546
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3547
3547
  }, "strip", z.ZodTypeAny, {
3548
3548
  kind: string;
3549
- handler: "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";
3549
+ 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";
3550
3550
  payload: Record<string, unknown>;
3551
3551
  }, {
3552
3552
  kind: string;
3553
- handler: "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";
3553
+ 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";
3554
3554
  payload: Record<string, unknown>;
3555
3555
  }>, "many">>;
3556
3556
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3582,7 +3582,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3582
3582
  rule: "relative_to_appointment";
3583
3583
  offset_minutes: number;
3584
3584
  };
3585
- handler: "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";
3585
+ 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";
3586
3586
  payload?: Record<string, unknown> | undefined;
3587
3587
  retry?: z.objectInputType<{
3588
3588
  max_attempts: z.ZodNumber;
@@ -3632,14 +3632,14 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3632
3632
  name: string;
3633
3633
  hidden: boolean;
3634
3634
  base?: boolean | undefined;
3635
- color?: string | undefined;
3636
3635
  category?: string | null | undefined;
3636
+ color?: string | undefined;
3637
3637
  }, {
3638
3638
  name: string;
3639
3639
  hidden: boolean;
3640
3640
  base?: boolean | undefined;
3641
- color?: string | undefined;
3642
3641
  category?: string | null | undefined;
3642
+ color?: string | undefined;
3643
3643
  }>, "many">>>;
3644
3644
  }, "strip", z.ZodTypeAny, {
3645
3645
  description?: string | undefined;
@@ -3647,8 +3647,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3647
3647
  name: string;
3648
3648
  hidden: boolean;
3649
3649
  base?: boolean | undefined;
3650
- color?: string | undefined;
3651
3650
  category?: string | null | undefined;
3651
+ color?: string | undefined;
3652
3652
  }[] | null | undefined;
3653
3653
  title?: string | undefined;
3654
3654
  priority?: "low" | "medium" | "high" | undefined;
@@ -3658,8 +3658,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3658
3658
  name: string;
3659
3659
  hidden: boolean;
3660
3660
  base?: boolean | undefined;
3661
- color?: string | undefined;
3662
3661
  category?: string | null | undefined;
3662
+ color?: string | undefined;
3663
3663
  }[] | null | undefined;
3664
3664
  title?: string | undefined;
3665
3665
  priority?: "low" | "medium" | "high" | undefined;
@@ -3670,11 +3670,11 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3670
3670
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3671
3671
  }, "strip", z.ZodTypeAny, {
3672
3672
  kind: string;
3673
- handler: "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";
3673
+ 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";
3674
3674
  payload: Record<string, unknown>;
3675
3675
  }, {
3676
3676
  kind: string;
3677
- handler: "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";
3677
+ 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";
3678
3678
  payload: Record<string, unknown>;
3679
3679
  }>, "many">>;
3680
3680
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3736,10 +3736,9 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3736
3736
  }, "strip", z.ZodTypeAny, {
3737
3737
  name: string;
3738
3738
  id: string;
3739
- version: number;
3740
3739
  created_at: Date;
3740
+ version: number;
3741
3741
  updated_at: Date;
3742
- active: boolean;
3743
3742
  selection: {
3744
3743
  appointment: {
3745
3744
  date_window: {
@@ -3772,13 +3771,13 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3772
3771
  };
3773
3772
  target: "appointment";
3774
3773
  } | {
3774
+ target: "lead";
3775
3775
  lead: {
3776
3776
  status_in?: string[] | undefined;
3777
3777
  qualification_codes?: string[] | undefined;
3778
3778
  dist_channel_codes?: string[] | undefined;
3779
3779
  tag_names?: string[] | undefined;
3780
3780
  };
3781
- target: "lead";
3782
3781
  } | {
3783
3782
  patient: {
3784
3783
  status_in?: string[] | undefined;
@@ -3787,6 +3786,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3787
3786
  };
3788
3787
  target: "patient";
3789
3788
  };
3789
+ active: boolean;
3790
3790
  trigger: {
3791
3791
  type: "cron";
3792
3792
  cron: {
@@ -3819,7 +3819,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3819
3819
  rule: "relative_to_appointment";
3820
3820
  offset_minutes: number;
3821
3821
  };
3822
- handler: "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";
3822
+ 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";
3823
3823
  payload: Record<string, unknown>;
3824
3824
  retry?: z.objectOutputType<{
3825
3825
  max_attempts: z.ZodNumber;
@@ -3869,14 +3869,14 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3869
3869
  name: string;
3870
3870
  hidden: boolean;
3871
3871
  base?: boolean | undefined;
3872
- color?: string | undefined;
3873
3872
  category?: string | null | undefined;
3873
+ color?: string | undefined;
3874
3874
  }, {
3875
3875
  name: string;
3876
3876
  hidden: boolean;
3877
3877
  base?: boolean | undefined;
3878
- color?: string | undefined;
3879
3878
  category?: string | null | undefined;
3879
+ color?: string | undefined;
3880
3880
  }>, "many">>>;
3881
3881
  }, "strip", z.ZodTypeAny, {
3882
3882
  description?: string | undefined;
@@ -3884,8 +3884,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3884
3884
  name: string;
3885
3885
  hidden: boolean;
3886
3886
  base?: boolean | undefined;
3887
- color?: string | undefined;
3888
3887
  category?: string | null | undefined;
3888
+ color?: string | undefined;
3889
3889
  }[] | null | undefined;
3890
3890
  title?: string | undefined;
3891
3891
  priority?: "low" | "medium" | "high" | undefined;
@@ -3895,8 +3895,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3895
3895
  name: string;
3896
3896
  hidden: boolean;
3897
3897
  base?: boolean | undefined;
3898
- color?: string | undefined;
3899
3898
  category?: string | null | undefined;
3899
+ color?: string | undefined;
3900
3900
  }[] | null | undefined;
3901
3901
  title?: string | undefined;
3902
3902
  priority?: "low" | "medium" | "high" | undefined;
@@ -3907,11 +3907,11 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3907
3907
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3908
3908
  }, "strip", z.ZodTypeAny, {
3909
3909
  kind: string;
3910
- handler: "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";
3910
+ 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";
3911
3911
  payload: Record<string, unknown>;
3912
3912
  }, {
3913
3913
  kind: string;
3914
- handler: "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";
3914
+ 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";
3915
3915
  payload: Record<string, unknown>;
3916
3916
  }>, "many">>;
3917
3917
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3982,13 +3982,13 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3982
3982
  };
3983
3983
  target: "appointment";
3984
3984
  } | {
3985
+ target: "lead";
3985
3986
  lead: {
3986
3987
  status_in?: string[] | undefined;
3987
3988
  qualification_codes?: string[] | undefined;
3988
3989
  dist_channel_codes?: string[] | undefined;
3989
3990
  tag_names?: string[] | undefined;
3990
3991
  };
3991
- target: "lead";
3992
3992
  } | {
3993
3993
  patient: {
3994
3994
  status_in?: string[] | undefined;
@@ -4029,7 +4029,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4029
4029
  rule: "relative_to_appointment";
4030
4030
  offset_minutes: number;
4031
4031
  };
4032
- handler: "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";
4032
+ 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";
4033
4033
  payload?: Record<string, unknown> | undefined;
4034
4034
  retry?: z.objectInputType<{
4035
4035
  max_attempts: z.ZodNumber;
@@ -4079,14 +4079,14 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4079
4079
  name: string;
4080
4080
  hidden: boolean;
4081
4081
  base?: boolean | undefined;
4082
- color?: string | undefined;
4083
4082
  category?: string | null | undefined;
4083
+ color?: string | undefined;
4084
4084
  }, {
4085
4085
  name: string;
4086
4086
  hidden: boolean;
4087
4087
  base?: boolean | undefined;
4088
- color?: string | undefined;
4089
4088
  category?: string | null | undefined;
4089
+ color?: string | undefined;
4090
4090
  }>, "many">>>;
4091
4091
  }, "strip", z.ZodTypeAny, {
4092
4092
  description?: string | undefined;
@@ -4094,8 +4094,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4094
4094
  name: string;
4095
4095
  hidden: boolean;
4096
4096
  base?: boolean | undefined;
4097
- color?: string | undefined;
4098
4097
  category?: string | null | undefined;
4098
+ color?: string | undefined;
4099
4099
  }[] | null | undefined;
4100
4100
  title?: string | undefined;
4101
4101
  priority?: "low" | "medium" | "high" | undefined;
@@ -4105,8 +4105,8 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4105
4105
  name: string;
4106
4106
  hidden: boolean;
4107
4107
  base?: boolean | undefined;
4108
- color?: string | undefined;
4109
4108
  category?: string | null | undefined;
4109
+ color?: string | undefined;
4110
4110
  }[] | null | undefined;
4111
4111
  title?: string | undefined;
4112
4112
  priority?: "low" | "medium" | "high" | undefined;
@@ -4117,11 +4117,11 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4117
4117
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4118
4118
  }, "strip", z.ZodTypeAny, {
4119
4119
  kind: string;
4120
- handler: "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";
4120
+ 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";
4121
4121
  payload: Record<string, unknown>;
4122
4122
  }, {
4123
4123
  kind: string;
4124
- handler: "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";
4124
+ 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";
4125
4125
  payload: Record<string, unknown>;
4126
4126
  }>, "many">>;
4127
4127
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -4404,21 +4404,21 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4404
4404
  tag_names?: string[] | undefined;
4405
4405
  }>;
4406
4406
  }, "strip", z.ZodTypeAny, {
4407
+ target: "lead";
4407
4408
  lead: {
4408
4409
  status_in?: string[] | undefined;
4409
4410
  qualification_codes?: string[] | undefined;
4410
4411
  dist_channel_codes?: string[] | undefined;
4411
4412
  tag_names?: string[] | undefined;
4412
4413
  };
4413
- target: "lead";
4414
4414
  }, {
4415
+ target: "lead";
4415
4416
  lead: {
4416
4417
  status_in?: string[] | undefined;
4417
4418
  qualification_codes?: string[] | undefined;
4418
4419
  dist_channel_codes?: string[] | undefined;
4419
4420
  tag_names?: string[] | undefined;
4420
4421
  };
4421
- target: "lead";
4422
4422
  }>, z.ZodObject<{
4423
4423
  target: z.ZodLiteral<"patient">;
4424
4424
  patient: z.ZodObject<{
@@ -4580,14 +4580,14 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4580
4580
  name: string;
4581
4581
  hidden: boolean;
4582
4582
  base?: boolean | undefined;
4583
- color?: string | undefined;
4584
4583
  category?: string | null | undefined;
4584
+ color?: string | undefined;
4585
4585
  }, {
4586
4586
  name: string;
4587
4587
  hidden: boolean;
4588
4588
  base?: boolean | undefined;
4589
- color?: string | undefined;
4590
4589
  category?: string | null | undefined;
4590
+ color?: string | undefined;
4591
4591
  }>, "many">>>;
4592
4592
  }, "strip", z.ZodTypeAny, {
4593
4593
  description?: string | undefined;
@@ -4595,8 +4595,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4595
4595
  name: string;
4596
4596
  hidden: boolean;
4597
4597
  base?: boolean | undefined;
4598
- color?: string | undefined;
4599
4598
  category?: string | null | undefined;
4599
+ color?: string | undefined;
4600
4600
  }[] | null | undefined;
4601
4601
  title?: string | undefined;
4602
4602
  priority?: "low" | "medium" | "high" | undefined;
@@ -4606,8 +4606,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4606
4606
  name: string;
4607
4607
  hidden: boolean;
4608
4608
  base?: boolean | undefined;
4609
- color?: string | undefined;
4610
4609
  category?: string | null | undefined;
4610
+ color?: string | undefined;
4611
4611
  }[] | null | undefined;
4612
4612
  title?: string | undefined;
4613
4613
  priority?: "low" | "medium" | "high" | undefined;
@@ -4618,11 +4618,11 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4618
4618
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4619
4619
  }, "strip", z.ZodTypeAny, {
4620
4620
  kind: string;
4621
- handler: "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";
4621
+ 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";
4622
4622
  payload: Record<string, unknown>;
4623
4623
  }, {
4624
4624
  kind: string;
4625
- handler: "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";
4625
+ 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";
4626
4626
  payload: Record<string, unknown>;
4627
4627
  }>, "many">>;
4628
4628
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4650,14 +4650,14 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4650
4650
  name: string;
4651
4651
  hidden: boolean;
4652
4652
  base?: boolean | undefined;
4653
- color?: string | undefined;
4654
4653
  category?: string | null | undefined;
4654
+ color?: string | undefined;
4655
4655
  }, {
4656
4656
  name: string;
4657
4657
  hidden: boolean;
4658
4658
  base?: boolean | undefined;
4659
- color?: string | undefined;
4660
4659
  category?: string | null | undefined;
4660
+ color?: string | undefined;
4661
4661
  }>, "many">>>;
4662
4662
  }, "strip", z.ZodTypeAny, {
4663
4663
  description?: string | undefined;
@@ -4665,8 +4665,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4665
4665
  name: string;
4666
4666
  hidden: boolean;
4667
4667
  base?: boolean | undefined;
4668
- color?: string | undefined;
4669
4668
  category?: string | null | undefined;
4669
+ color?: string | undefined;
4670
4670
  }[] | null | undefined;
4671
4671
  title?: string | undefined;
4672
4672
  priority?: "low" | "medium" | "high" | undefined;
@@ -4676,8 +4676,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4676
4676
  name: string;
4677
4677
  hidden: boolean;
4678
4678
  base?: boolean | undefined;
4679
- color?: string | undefined;
4680
4679
  category?: string | null | undefined;
4680
+ color?: string | undefined;
4681
4681
  }[] | null | undefined;
4682
4682
  title?: string | undefined;
4683
4683
  priority?: "low" | "medium" | "high" | undefined;
@@ -4688,11 +4688,11 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4688
4688
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4689
4689
  }, "strip", z.ZodTypeAny, {
4690
4690
  kind: string;
4691
- handler: "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";
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";
4692
4692
  payload: Record<string, unknown>;
4693
4693
  }, {
4694
4694
  kind: string;
4695
- handler: "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";
4695
+ 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";
4696
4696
  payload: Record<string, unknown>;
4697
4697
  }>, "many">>;
4698
4698
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4720,14 +4720,14 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4720
4720
  name: string;
4721
4721
  hidden: boolean;
4722
4722
  base?: boolean | undefined;
4723
- color?: string | undefined;
4724
4723
  category?: string | null | undefined;
4724
+ color?: string | undefined;
4725
4725
  }, {
4726
4726
  name: string;
4727
4727
  hidden: boolean;
4728
4728
  base?: boolean | undefined;
4729
- color?: string | undefined;
4730
4729
  category?: string | null | undefined;
4730
+ color?: string | undefined;
4731
4731
  }>, "many">>>;
4732
4732
  }, "strip", z.ZodTypeAny, {
4733
4733
  description?: string | undefined;
@@ -4735,8 +4735,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4735
4735
  name: string;
4736
4736
  hidden: boolean;
4737
4737
  base?: boolean | undefined;
4738
- color?: string | undefined;
4739
4738
  category?: string | null | undefined;
4739
+ color?: string | undefined;
4740
4740
  }[] | null | undefined;
4741
4741
  title?: string | undefined;
4742
4742
  priority?: "low" | "medium" | "high" | undefined;
@@ -4746,8 +4746,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4746
4746
  name: string;
4747
4747
  hidden: boolean;
4748
4748
  base?: boolean | undefined;
4749
- color?: string | undefined;
4750
4749
  category?: string | null | undefined;
4750
+ color?: string | undefined;
4751
4751
  }[] | null | undefined;
4752
4752
  title?: string | undefined;
4753
4753
  priority?: "low" | "medium" | "high" | undefined;
@@ -4758,11 +4758,11 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4758
4758
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4759
4759
  }, "strip", z.ZodTypeAny, {
4760
4760
  kind: string;
4761
- handler: "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";
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";
4762
4762
  payload: Record<string, unknown>;
4763
4763
  }, {
4764
4764
  kind: string;
4765
- handler: "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";
4765
+ 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";
4766
4766
  payload: Record<string, unknown>;
4767
4767
  }>, "many">>;
4768
4768
  }, z.ZodTypeAny, "passthrough">>>;
@@ -4779,7 +4779,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4779
4779
  rule: "relative_to_appointment";
4780
4780
  offset_minutes: number;
4781
4781
  };
4782
- handler: "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";
4782
+ 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";
4783
4783
  payload: Record<string, unknown>;
4784
4784
  retry?: z.objectOutputType<{
4785
4785
  max_attempts: z.ZodNumber;
@@ -4829,14 +4829,14 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4829
4829
  name: string;
4830
4830
  hidden: boolean;
4831
4831
  base?: boolean | undefined;
4832
- color?: string | undefined;
4833
4832
  category?: string | null | undefined;
4833
+ color?: string | undefined;
4834
4834
  }, {
4835
4835
  name: string;
4836
4836
  hidden: boolean;
4837
4837
  base?: boolean | undefined;
4838
- color?: string | undefined;
4839
4838
  category?: string | null | undefined;
4839
+ color?: string | undefined;
4840
4840
  }>, "many">>>;
4841
4841
  }, "strip", z.ZodTypeAny, {
4842
4842
  description?: string | undefined;
@@ -4844,8 +4844,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4844
4844
  name: string;
4845
4845
  hidden: boolean;
4846
4846
  base?: boolean | undefined;
4847
- color?: string | undefined;
4848
4847
  category?: string | null | undefined;
4848
+ color?: string | undefined;
4849
4849
  }[] | null | undefined;
4850
4850
  title?: string | undefined;
4851
4851
  priority?: "low" | "medium" | "high" | undefined;
@@ -4855,8 +4855,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4855
4855
  name: string;
4856
4856
  hidden: boolean;
4857
4857
  base?: boolean | undefined;
4858
- color?: string | undefined;
4859
4858
  category?: string | null | undefined;
4859
+ color?: string | undefined;
4860
4860
  }[] | null | undefined;
4861
4861
  title?: string | undefined;
4862
4862
  priority?: "low" | "medium" | "high" | undefined;
@@ -4867,11 +4867,11 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4867
4867
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4868
4868
  }, "strip", z.ZodTypeAny, {
4869
4869
  kind: string;
4870
- handler: "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";
4870
+ 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";
4871
4871
  payload: Record<string, unknown>;
4872
4872
  }, {
4873
4873
  kind: string;
4874
- handler: "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";
4874
+ 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";
4875
4875
  payload: Record<string, unknown>;
4876
4876
  }>, "many">>;
4877
4877
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -4888,7 +4888,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4888
4888
  rule: "relative_to_appointment";
4889
4889
  offset_minutes: number;
4890
4890
  };
4891
- handler: "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";
4891
+ 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";
4892
4892
  payload?: Record<string, unknown> | undefined;
4893
4893
  retry?: z.objectInputType<{
4894
4894
  max_attempts: z.ZodNumber;
@@ -4938,14 +4938,14 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4938
4938
  name: string;
4939
4939
  hidden: boolean;
4940
4940
  base?: boolean | undefined;
4941
- color?: string | undefined;
4942
4941
  category?: string | null | undefined;
4942
+ color?: string | undefined;
4943
4943
  }, {
4944
4944
  name: string;
4945
4945
  hidden: boolean;
4946
4946
  base?: boolean | undefined;
4947
- color?: string | undefined;
4948
4947
  category?: string | null | undefined;
4948
+ color?: string | undefined;
4949
4949
  }>, "many">>>;
4950
4950
  }, "strip", z.ZodTypeAny, {
4951
4951
  description?: string | undefined;
@@ -4953,8 +4953,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4953
4953
  name: string;
4954
4954
  hidden: boolean;
4955
4955
  base?: boolean | undefined;
4956
- color?: string | undefined;
4957
4956
  category?: string | null | undefined;
4957
+ color?: string | undefined;
4958
4958
  }[] | null | undefined;
4959
4959
  title?: string | undefined;
4960
4960
  priority?: "low" | "medium" | "high" | undefined;
@@ -4964,8 +4964,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4964
4964
  name: string;
4965
4965
  hidden: boolean;
4966
4966
  base?: boolean | undefined;
4967
- color?: string | undefined;
4968
4967
  category?: string | null | undefined;
4968
+ color?: string | undefined;
4969
4969
  }[] | null | undefined;
4970
4970
  title?: string | undefined;
4971
4971
  priority?: "low" | "medium" | "high" | undefined;
@@ -4976,11 +4976,11 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4976
4976
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4977
4977
  }, "strip", z.ZodTypeAny, {
4978
4978
  kind: string;
4979
- handler: "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";
4979
+ 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";
4980
4980
  payload: Record<string, unknown>;
4981
4981
  }, {
4982
4982
  kind: string;
4983
- handler: "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";
4983
+ 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";
4984
4984
  payload: Record<string, unknown>;
4985
4985
  }>, "many">>;
4986
4986
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5028,7 +5028,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5028
5028
  rule: "relative_to_appointment";
5029
5029
  offset_minutes: number;
5030
5030
  };
5031
- handler: "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";
5031
+ 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";
5032
5032
  payload: Record<string, unknown>;
5033
5033
  retry?: z.objectOutputType<{
5034
5034
  max_attempts: z.ZodNumber;
@@ -5078,14 +5078,14 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5078
5078
  name: string;
5079
5079
  hidden: boolean;
5080
5080
  base?: boolean | undefined;
5081
- color?: string | undefined;
5082
5081
  category?: string | null | undefined;
5082
+ color?: string | undefined;
5083
5083
  }, {
5084
5084
  name: string;
5085
5085
  hidden: boolean;
5086
5086
  base?: boolean | undefined;
5087
- color?: string | undefined;
5088
5087
  category?: string | null | undefined;
5088
+ color?: string | undefined;
5089
5089
  }>, "many">>>;
5090
5090
  }, "strip", z.ZodTypeAny, {
5091
5091
  description?: string | undefined;
@@ -5093,8 +5093,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5093
5093
  name: string;
5094
5094
  hidden: boolean;
5095
5095
  base?: boolean | undefined;
5096
- color?: string | undefined;
5097
5096
  category?: string | null | undefined;
5097
+ color?: string | undefined;
5098
5098
  }[] | null | undefined;
5099
5099
  title?: string | undefined;
5100
5100
  priority?: "low" | "medium" | "high" | undefined;
@@ -5104,8 +5104,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5104
5104
  name: string;
5105
5105
  hidden: boolean;
5106
5106
  base?: boolean | undefined;
5107
- color?: string | undefined;
5108
5107
  category?: string | null | undefined;
5108
+ color?: string | undefined;
5109
5109
  }[] | null | undefined;
5110
5110
  title?: string | undefined;
5111
5111
  priority?: "low" | "medium" | "high" | undefined;
@@ -5116,11 +5116,11 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5116
5116
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5117
5117
  }, "strip", z.ZodTypeAny, {
5118
5118
  kind: string;
5119
- handler: "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";
5119
+ 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";
5120
5120
  payload: Record<string, unknown>;
5121
5121
  }, {
5122
5122
  kind: string;
5123
- handler: "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";
5123
+ 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";
5124
5124
  payload: Record<string, unknown>;
5125
5125
  }>, "many">>;
5126
5126
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5152,7 +5152,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5152
5152
  rule: "relative_to_appointment";
5153
5153
  offset_minutes: number;
5154
5154
  };
5155
- handler: "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";
5155
+ 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";
5156
5156
  payload?: Record<string, unknown> | undefined;
5157
5157
  retry?: z.objectInputType<{
5158
5158
  max_attempts: z.ZodNumber;
@@ -5202,14 +5202,14 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5202
5202
  name: string;
5203
5203
  hidden: boolean;
5204
5204
  base?: boolean | undefined;
5205
- color?: string | undefined;
5206
5205
  category?: string | null | undefined;
5206
+ color?: string | undefined;
5207
5207
  }, {
5208
5208
  name: string;
5209
5209
  hidden: boolean;
5210
5210
  base?: boolean | undefined;
5211
- color?: string | undefined;
5212
5211
  category?: string | null | undefined;
5212
+ color?: string | undefined;
5213
5213
  }>, "many">>>;
5214
5214
  }, "strip", z.ZodTypeAny, {
5215
5215
  description?: string | undefined;
@@ -5217,8 +5217,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5217
5217
  name: string;
5218
5218
  hidden: boolean;
5219
5219
  base?: boolean | undefined;
5220
- color?: string | undefined;
5221
5220
  category?: string | null | undefined;
5221
+ color?: string | undefined;
5222
5222
  }[] | null | undefined;
5223
5223
  title?: string | undefined;
5224
5224
  priority?: "low" | "medium" | "high" | undefined;
@@ -5228,8 +5228,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5228
5228
  name: string;
5229
5229
  hidden: boolean;
5230
5230
  base?: boolean | undefined;
5231
- color?: string | undefined;
5232
5231
  category?: string | null | undefined;
5232
+ color?: string | undefined;
5233
5233
  }[] | null | undefined;
5234
5234
  title?: string | undefined;
5235
5235
  priority?: "low" | "medium" | "high" | undefined;
@@ -5240,11 +5240,11 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5240
5240
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5241
5241
  }, "strip", z.ZodTypeAny, {
5242
5242
  kind: string;
5243
- handler: "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";
5243
+ 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";
5244
5244
  payload: Record<string, unknown>;
5245
5245
  }, {
5246
5246
  kind: string;
5247
- handler: "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";
5247
+ 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";
5248
5248
  payload: Record<string, unknown>;
5249
5249
  }>, "many">>;
5250
5250
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5271,7 +5271,6 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5271
5271
  }, "strip", z.ZodTypeAny, {
5272
5272
  name: string;
5273
5273
  id: string;
5274
- active: boolean;
5275
5274
  selection: {
5276
5275
  appointment: {
5277
5276
  date_window: {
@@ -5304,13 +5303,13 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5304
5303
  };
5305
5304
  target: "appointment";
5306
5305
  } | {
5306
+ target: "lead";
5307
5307
  lead: {
5308
5308
  status_in?: string[] | undefined;
5309
5309
  qualification_codes?: string[] | undefined;
5310
5310
  dist_channel_codes?: string[] | undefined;
5311
5311
  tag_names?: string[] | undefined;
5312
5312
  };
5313
- target: "lead";
5314
5313
  } | {
5315
5314
  patient: {
5316
5315
  status_in?: string[] | undefined;
@@ -5319,6 +5318,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5319
5318
  };
5320
5319
  target: "patient";
5321
5320
  };
5321
+ active: boolean;
5322
5322
  trigger: {
5323
5323
  type: "cron";
5324
5324
  cron: {
@@ -5351,7 +5351,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5351
5351
  rule: "relative_to_appointment";
5352
5352
  offset_minutes: number;
5353
5353
  };
5354
- handler: "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";
5354
+ 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";
5355
5355
  payload: Record<string, unknown>;
5356
5356
  retry?: z.objectOutputType<{
5357
5357
  max_attempts: z.ZodNumber;
@@ -5401,14 +5401,14 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5401
5401
  name: string;
5402
5402
  hidden: boolean;
5403
5403
  base?: boolean | undefined;
5404
- color?: string | undefined;
5405
5404
  category?: string | null | undefined;
5405
+ color?: string | undefined;
5406
5406
  }, {
5407
5407
  name: string;
5408
5408
  hidden: boolean;
5409
5409
  base?: boolean | undefined;
5410
- color?: string | undefined;
5411
5410
  category?: string | null | undefined;
5411
+ color?: string | undefined;
5412
5412
  }>, "many">>>;
5413
5413
  }, "strip", z.ZodTypeAny, {
5414
5414
  description?: string | undefined;
@@ -5416,8 +5416,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5416
5416
  name: string;
5417
5417
  hidden: boolean;
5418
5418
  base?: boolean | undefined;
5419
- color?: string | undefined;
5420
5419
  category?: string | null | undefined;
5420
+ color?: string | undefined;
5421
5421
  }[] | null | undefined;
5422
5422
  title?: string | undefined;
5423
5423
  priority?: "low" | "medium" | "high" | undefined;
@@ -5427,8 +5427,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5427
5427
  name: string;
5428
5428
  hidden: boolean;
5429
5429
  base?: boolean | undefined;
5430
- color?: string | undefined;
5431
5430
  category?: string | null | undefined;
5431
+ color?: string | undefined;
5432
5432
  }[] | null | undefined;
5433
5433
  title?: string | undefined;
5434
5434
  priority?: "low" | "medium" | "high" | undefined;
@@ -5439,11 +5439,11 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5439
5439
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5440
5440
  }, "strip", z.ZodTypeAny, {
5441
5441
  kind: string;
5442
- handler: "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";
5442
+ 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";
5443
5443
  payload: Record<string, unknown>;
5444
5444
  }, {
5445
5445
  kind: string;
5446
- handler: "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";
5446
+ 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";
5447
5447
  payload: Record<string, unknown>;
5448
5448
  }>, "many">>;
5449
5449
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5499,13 +5499,13 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5499
5499
  };
5500
5500
  target: "appointment";
5501
5501
  } | {
5502
+ target: "lead";
5502
5503
  lead: {
5503
5504
  status_in?: string[] | undefined;
5504
5505
  qualification_codes?: string[] | undefined;
5505
5506
  dist_channel_codes?: string[] | undefined;
5506
5507
  tag_names?: string[] | undefined;
5507
5508
  };
5508
- target: "lead";
5509
5509
  } | {
5510
5510
  patient: {
5511
5511
  status_in?: string[] | undefined;
@@ -5546,7 +5546,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5546
5546
  rule: "relative_to_appointment";
5547
5547
  offset_minutes: number;
5548
5548
  };
5549
- handler: "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";
5549
+ 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";
5550
5550
  payload?: Record<string, unknown> | undefined;
5551
5551
  retry?: z.objectInputType<{
5552
5552
  max_attempts: z.ZodNumber;
@@ -5596,14 +5596,14 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5596
5596
  name: string;
5597
5597
  hidden: boolean;
5598
5598
  base?: boolean | undefined;
5599
- color?: string | undefined;
5600
5599
  category?: string | null | undefined;
5600
+ color?: string | undefined;
5601
5601
  }, {
5602
5602
  name: string;
5603
5603
  hidden: boolean;
5604
5604
  base?: boolean | undefined;
5605
- color?: string | undefined;
5606
5605
  category?: string | null | undefined;
5606
+ color?: string | undefined;
5607
5607
  }>, "many">>>;
5608
5608
  }, "strip", z.ZodTypeAny, {
5609
5609
  description?: string | undefined;
@@ -5611,8 +5611,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5611
5611
  name: string;
5612
5612
  hidden: boolean;
5613
5613
  base?: boolean | undefined;
5614
- color?: string | undefined;
5615
5614
  category?: string | null | undefined;
5615
+ color?: string | undefined;
5616
5616
  }[] | null | undefined;
5617
5617
  title?: string | undefined;
5618
5618
  priority?: "low" | "medium" | "high" | undefined;
@@ -5622,8 +5622,8 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5622
5622
  name: string;
5623
5623
  hidden: boolean;
5624
5624
  base?: boolean | undefined;
5625
- color?: string | undefined;
5626
5625
  category?: string | null | undefined;
5626
+ color?: string | undefined;
5627
5627
  }[] | null | undefined;
5628
5628
  title?: string | undefined;
5629
5629
  priority?: "low" | "medium" | "high" | undefined;
@@ -5634,11 +5634,11 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5634
5634
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5635
5635
  }, "strip", z.ZodTypeAny, {
5636
5636
  kind: string;
5637
- handler: "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";
5637
+ 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";
5638
5638
  payload: Record<string, unknown>;
5639
5639
  }, {
5640
5640
  kind: string;
5641
- handler: "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";
5641
+ 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";
5642
5642
  payload: Record<string, unknown>;
5643
5643
  }>, "many">>;
5644
5644
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5908,21 +5908,21 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5908
5908
  tag_names?: string[] | undefined;
5909
5909
  }>;
5910
5910
  }, "strip", z.ZodTypeAny, {
5911
+ target: "lead";
5911
5912
  lead: {
5912
5913
  status_in?: string[] | undefined;
5913
5914
  qualification_codes?: string[] | undefined;
5914
5915
  dist_channel_codes?: string[] | undefined;
5915
5916
  tag_names?: string[] | undefined;
5916
5917
  };
5917
- target: "lead";
5918
5918
  }, {
5919
+ target: "lead";
5919
5920
  lead: {
5920
5921
  status_in?: string[] | undefined;
5921
5922
  qualification_codes?: string[] | undefined;
5922
5923
  dist_channel_codes?: string[] | undefined;
5923
5924
  tag_names?: string[] | undefined;
5924
5925
  };
5925
- target: "lead";
5926
5926
  }>, z.ZodObject<{
5927
5927
  target: z.ZodLiteral<"patient">;
5928
5928
  patient: z.ZodObject<{
@@ -6084,14 +6084,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6084
6084
  name: string;
6085
6085
  hidden: boolean;
6086
6086
  base?: boolean | undefined;
6087
- color?: string | undefined;
6088
6087
  category?: string | null | undefined;
6088
+ color?: string | undefined;
6089
6089
  }, {
6090
6090
  name: string;
6091
6091
  hidden: boolean;
6092
6092
  base?: boolean | undefined;
6093
- color?: string | undefined;
6094
6093
  category?: string | null | undefined;
6094
+ color?: string | undefined;
6095
6095
  }>, "many">>>;
6096
6096
  }, "strip", z.ZodTypeAny, {
6097
6097
  description?: string | undefined;
@@ -6099,8 +6099,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6099
6099
  name: string;
6100
6100
  hidden: boolean;
6101
6101
  base?: boolean | undefined;
6102
- color?: string | undefined;
6103
6102
  category?: string | null | undefined;
6103
+ color?: string | undefined;
6104
6104
  }[] | null | undefined;
6105
6105
  title?: string | undefined;
6106
6106
  priority?: "low" | "medium" | "high" | undefined;
@@ -6110,8 +6110,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6110
6110
  name: string;
6111
6111
  hidden: boolean;
6112
6112
  base?: boolean | undefined;
6113
- color?: string | undefined;
6114
6113
  category?: string | null | undefined;
6114
+ color?: string | undefined;
6115
6115
  }[] | null | undefined;
6116
6116
  title?: string | undefined;
6117
6117
  priority?: "low" | "medium" | "high" | undefined;
@@ -6122,11 +6122,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6122
6122
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6123
6123
  }, "strip", z.ZodTypeAny, {
6124
6124
  kind: string;
6125
- handler: "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";
6125
+ 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";
6126
6126
  payload: Record<string, unknown>;
6127
6127
  }, {
6128
6128
  kind: string;
6129
- handler: "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";
6129
+ 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";
6130
6130
  payload: Record<string, unknown>;
6131
6131
  }>, "many">>;
6132
6132
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -6154,14 +6154,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6154
6154
  name: string;
6155
6155
  hidden: boolean;
6156
6156
  base?: boolean | undefined;
6157
- color?: string | undefined;
6158
6157
  category?: string | null | undefined;
6158
+ color?: string | undefined;
6159
6159
  }, {
6160
6160
  name: string;
6161
6161
  hidden: boolean;
6162
6162
  base?: boolean | undefined;
6163
- color?: string | undefined;
6164
6163
  category?: string | null | undefined;
6164
+ color?: string | undefined;
6165
6165
  }>, "many">>>;
6166
6166
  }, "strip", z.ZodTypeAny, {
6167
6167
  description?: string | undefined;
@@ -6169,8 +6169,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6169
6169
  name: string;
6170
6170
  hidden: boolean;
6171
6171
  base?: boolean | undefined;
6172
- color?: string | undefined;
6173
6172
  category?: string | null | undefined;
6173
+ color?: string | undefined;
6174
6174
  }[] | null | undefined;
6175
6175
  title?: string | undefined;
6176
6176
  priority?: "low" | "medium" | "high" | undefined;
@@ -6180,8 +6180,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6180
6180
  name: string;
6181
6181
  hidden: boolean;
6182
6182
  base?: boolean | undefined;
6183
- color?: string | undefined;
6184
6183
  category?: string | null | undefined;
6184
+ color?: string | undefined;
6185
6185
  }[] | null | undefined;
6186
6186
  title?: string | undefined;
6187
6187
  priority?: "low" | "medium" | "high" | undefined;
@@ -6192,11 +6192,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6192
6192
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6193
6193
  }, "strip", z.ZodTypeAny, {
6194
6194
  kind: string;
6195
- handler: "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";
6195
+ 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";
6196
6196
  payload: Record<string, unknown>;
6197
6197
  }, {
6198
6198
  kind: string;
6199
- handler: "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";
6199
+ 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";
6200
6200
  payload: Record<string, unknown>;
6201
6201
  }>, "many">>;
6202
6202
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -6224,14 +6224,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6224
6224
  name: string;
6225
6225
  hidden: boolean;
6226
6226
  base?: boolean | undefined;
6227
- color?: string | undefined;
6228
6227
  category?: string | null | undefined;
6228
+ color?: string | undefined;
6229
6229
  }, {
6230
6230
  name: string;
6231
6231
  hidden: boolean;
6232
6232
  base?: boolean | undefined;
6233
- color?: string | undefined;
6234
6233
  category?: string | null | undefined;
6234
+ color?: string | undefined;
6235
6235
  }>, "many">>>;
6236
6236
  }, "strip", z.ZodTypeAny, {
6237
6237
  description?: string | undefined;
@@ -6239,8 +6239,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6239
6239
  name: string;
6240
6240
  hidden: boolean;
6241
6241
  base?: boolean | undefined;
6242
- color?: string | undefined;
6243
6242
  category?: string | null | undefined;
6243
+ color?: string | undefined;
6244
6244
  }[] | null | undefined;
6245
6245
  title?: string | undefined;
6246
6246
  priority?: "low" | "medium" | "high" | undefined;
@@ -6250,8 +6250,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6250
6250
  name: string;
6251
6251
  hidden: boolean;
6252
6252
  base?: boolean | undefined;
6253
- color?: string | undefined;
6254
6253
  category?: string | null | undefined;
6254
+ color?: string | undefined;
6255
6255
  }[] | null | undefined;
6256
6256
  title?: string | undefined;
6257
6257
  priority?: "low" | "medium" | "high" | undefined;
@@ -6262,11 +6262,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6262
6262
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6263
6263
  }, "strip", z.ZodTypeAny, {
6264
6264
  kind: string;
6265
- handler: "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";
6265
+ 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";
6266
6266
  payload: Record<string, unknown>;
6267
6267
  }, {
6268
6268
  kind: string;
6269
- handler: "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";
6269
+ 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";
6270
6270
  payload: Record<string, unknown>;
6271
6271
  }>, "many">>;
6272
6272
  }, z.ZodTypeAny, "passthrough">>>;
@@ -6283,7 +6283,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6283
6283
  rule: "relative_to_appointment";
6284
6284
  offset_minutes: number;
6285
6285
  };
6286
- handler: "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";
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";
6287
6287
  payload: Record<string, unknown>;
6288
6288
  retry?: z.objectOutputType<{
6289
6289
  max_attempts: z.ZodNumber;
@@ -6333,14 +6333,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6333
6333
  name: string;
6334
6334
  hidden: boolean;
6335
6335
  base?: boolean | undefined;
6336
- color?: string | undefined;
6337
6336
  category?: string | null | undefined;
6337
+ color?: string | undefined;
6338
6338
  }, {
6339
6339
  name: string;
6340
6340
  hidden: boolean;
6341
6341
  base?: boolean | undefined;
6342
- color?: string | undefined;
6343
6342
  category?: string | null | undefined;
6343
+ color?: string | undefined;
6344
6344
  }>, "many">>>;
6345
6345
  }, "strip", z.ZodTypeAny, {
6346
6346
  description?: string | undefined;
@@ -6348,8 +6348,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6348
6348
  name: string;
6349
6349
  hidden: boolean;
6350
6350
  base?: boolean | undefined;
6351
- color?: string | undefined;
6352
6351
  category?: string | null | undefined;
6352
+ color?: string | undefined;
6353
6353
  }[] | null | undefined;
6354
6354
  title?: string | undefined;
6355
6355
  priority?: "low" | "medium" | "high" | undefined;
@@ -6359,8 +6359,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6359
6359
  name: string;
6360
6360
  hidden: boolean;
6361
6361
  base?: boolean | undefined;
6362
- color?: string | undefined;
6363
6362
  category?: string | null | undefined;
6363
+ color?: string | undefined;
6364
6364
  }[] | null | undefined;
6365
6365
  title?: string | undefined;
6366
6366
  priority?: "low" | "medium" | "high" | undefined;
@@ -6371,11 +6371,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6371
6371
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6372
6372
  }, "strip", z.ZodTypeAny, {
6373
6373
  kind: string;
6374
- handler: "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";
6374
+ 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";
6375
6375
  payload: Record<string, unknown>;
6376
6376
  }, {
6377
6377
  kind: string;
6378
- handler: "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";
6378
+ 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";
6379
6379
  payload: Record<string, unknown>;
6380
6380
  }>, "many">>;
6381
6381
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6392,7 +6392,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6392
6392
  rule: "relative_to_appointment";
6393
6393
  offset_minutes: number;
6394
6394
  };
6395
- handler: "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";
6395
+ 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";
6396
6396
  payload?: Record<string, unknown> | undefined;
6397
6397
  retry?: z.objectInputType<{
6398
6398
  max_attempts: z.ZodNumber;
@@ -6442,14 +6442,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6442
6442
  name: string;
6443
6443
  hidden: boolean;
6444
6444
  base?: boolean | undefined;
6445
- color?: string | undefined;
6446
6445
  category?: string | null | undefined;
6446
+ color?: string | undefined;
6447
6447
  }, {
6448
6448
  name: string;
6449
6449
  hidden: boolean;
6450
6450
  base?: boolean | undefined;
6451
- color?: string | undefined;
6452
6451
  category?: string | null | undefined;
6452
+ color?: string | undefined;
6453
6453
  }>, "many">>>;
6454
6454
  }, "strip", z.ZodTypeAny, {
6455
6455
  description?: string | undefined;
@@ -6457,8 +6457,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6457
6457
  name: string;
6458
6458
  hidden: boolean;
6459
6459
  base?: boolean | undefined;
6460
- color?: string | undefined;
6461
6460
  category?: string | null | undefined;
6461
+ color?: string | undefined;
6462
6462
  }[] | null | undefined;
6463
6463
  title?: string | undefined;
6464
6464
  priority?: "low" | "medium" | "high" | undefined;
@@ -6468,8 +6468,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6468
6468
  name: string;
6469
6469
  hidden: boolean;
6470
6470
  base?: boolean | undefined;
6471
- color?: string | undefined;
6472
6471
  category?: string | null | undefined;
6472
+ color?: string | undefined;
6473
6473
  }[] | null | undefined;
6474
6474
  title?: string | undefined;
6475
6475
  priority?: "low" | "medium" | "high" | undefined;
@@ -6480,11 +6480,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6480
6480
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6481
6481
  }, "strip", z.ZodTypeAny, {
6482
6482
  kind: string;
6483
- handler: "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";
6483
+ 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";
6484
6484
  payload: Record<string, unknown>;
6485
6485
  }, {
6486
6486
  kind: string;
6487
- handler: "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";
6487
+ 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";
6488
6488
  payload: Record<string, unknown>;
6489
6489
  }>, "many">>;
6490
6490
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6532,7 +6532,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6532
6532
  rule: "relative_to_appointment";
6533
6533
  offset_minutes: number;
6534
6534
  };
6535
- handler: "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";
6535
+ 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";
6536
6536
  payload: Record<string, unknown>;
6537
6537
  retry?: z.objectOutputType<{
6538
6538
  max_attempts: z.ZodNumber;
@@ -6582,14 +6582,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6582
6582
  name: string;
6583
6583
  hidden: boolean;
6584
6584
  base?: boolean | undefined;
6585
- color?: string | undefined;
6586
6585
  category?: string | null | undefined;
6586
+ color?: string | undefined;
6587
6587
  }, {
6588
6588
  name: string;
6589
6589
  hidden: boolean;
6590
6590
  base?: boolean | undefined;
6591
- color?: string | undefined;
6592
6591
  category?: string | null | undefined;
6592
+ color?: string | undefined;
6593
6593
  }>, "many">>>;
6594
6594
  }, "strip", z.ZodTypeAny, {
6595
6595
  description?: string | undefined;
@@ -6597,8 +6597,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6597
6597
  name: string;
6598
6598
  hidden: boolean;
6599
6599
  base?: boolean | undefined;
6600
- color?: string | undefined;
6601
6600
  category?: string | null | undefined;
6601
+ color?: string | undefined;
6602
6602
  }[] | null | undefined;
6603
6603
  title?: string | undefined;
6604
6604
  priority?: "low" | "medium" | "high" | undefined;
@@ -6608,8 +6608,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6608
6608
  name: string;
6609
6609
  hidden: boolean;
6610
6610
  base?: boolean | undefined;
6611
- color?: string | undefined;
6612
6611
  category?: string | null | undefined;
6612
+ color?: string | undefined;
6613
6613
  }[] | null | undefined;
6614
6614
  title?: string | undefined;
6615
6615
  priority?: "low" | "medium" | "high" | undefined;
@@ -6620,11 +6620,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6620
6620
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6621
6621
  }, "strip", z.ZodTypeAny, {
6622
6622
  kind: string;
6623
- handler: "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";
6623
+ 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";
6624
6624
  payload: Record<string, unknown>;
6625
6625
  }, {
6626
6626
  kind: string;
6627
- handler: "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";
6627
+ 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";
6628
6628
  payload: Record<string, unknown>;
6629
6629
  }>, "many">>;
6630
6630
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6656,7 +6656,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6656
6656
  rule: "relative_to_appointment";
6657
6657
  offset_minutes: number;
6658
6658
  };
6659
- handler: "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";
6659
+ 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";
6660
6660
  payload?: Record<string, unknown> | undefined;
6661
6661
  retry?: z.objectInputType<{
6662
6662
  max_attempts: z.ZodNumber;
@@ -6706,14 +6706,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6706
6706
  name: string;
6707
6707
  hidden: boolean;
6708
6708
  base?: boolean | undefined;
6709
- color?: string | undefined;
6710
6709
  category?: string | null | undefined;
6710
+ color?: string | undefined;
6711
6711
  }, {
6712
6712
  name: string;
6713
6713
  hidden: boolean;
6714
6714
  base?: boolean | undefined;
6715
- color?: string | undefined;
6716
6715
  category?: string | null | undefined;
6716
+ color?: string | undefined;
6717
6717
  }>, "many">>>;
6718
6718
  }, "strip", z.ZodTypeAny, {
6719
6719
  description?: string | undefined;
@@ -6721,8 +6721,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6721
6721
  name: string;
6722
6722
  hidden: boolean;
6723
6723
  base?: boolean | undefined;
6724
- color?: string | undefined;
6725
6724
  category?: string | null | undefined;
6725
+ color?: string | undefined;
6726
6726
  }[] | null | undefined;
6727
6727
  title?: string | undefined;
6728
6728
  priority?: "low" | "medium" | "high" | undefined;
@@ -6732,8 +6732,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6732
6732
  name: string;
6733
6733
  hidden: boolean;
6734
6734
  base?: boolean | undefined;
6735
- color?: string | undefined;
6736
6735
  category?: string | null | undefined;
6736
+ color?: string | undefined;
6737
6737
  }[] | null | undefined;
6738
6738
  title?: string | undefined;
6739
6739
  priority?: "low" | "medium" | "high" | undefined;
@@ -6744,11 +6744,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6744
6744
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6745
6745
  }, "strip", z.ZodTypeAny, {
6746
6746
  kind: string;
6747
- handler: "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";
6747
+ 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";
6748
6748
  payload: Record<string, unknown>;
6749
6749
  }, {
6750
6750
  kind: string;
6751
- handler: "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";
6751
+ 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";
6752
6752
  payload: Record<string, unknown>;
6753
6753
  }>, "many">>;
6754
6754
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6775,7 +6775,6 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6775
6775
  }, "strip", z.ZodTypeAny, {
6776
6776
  name: string;
6777
6777
  id: string;
6778
- active: boolean;
6779
6778
  selection: {
6780
6779
  appointment: {
6781
6780
  date_window: {
@@ -6808,13 +6807,13 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6808
6807
  };
6809
6808
  target: "appointment";
6810
6809
  } | {
6810
+ target: "lead";
6811
6811
  lead: {
6812
6812
  status_in?: string[] | undefined;
6813
6813
  qualification_codes?: string[] | undefined;
6814
6814
  dist_channel_codes?: string[] | undefined;
6815
6815
  tag_names?: string[] | undefined;
6816
6816
  };
6817
- target: "lead";
6818
6817
  } | {
6819
6818
  patient: {
6820
6819
  status_in?: string[] | undefined;
@@ -6823,6 +6822,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6823
6822
  };
6824
6823
  target: "patient";
6825
6824
  };
6825
+ active: boolean;
6826
6826
  trigger: {
6827
6827
  type: "cron";
6828
6828
  cron: {
@@ -6855,7 +6855,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6855
6855
  rule: "relative_to_appointment";
6856
6856
  offset_minutes: number;
6857
6857
  };
6858
- handler: "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";
6858
+ 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";
6859
6859
  payload: Record<string, unknown>;
6860
6860
  retry?: z.objectOutputType<{
6861
6861
  max_attempts: z.ZodNumber;
@@ -6905,14 +6905,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6905
6905
  name: string;
6906
6906
  hidden: boolean;
6907
6907
  base?: boolean | undefined;
6908
- color?: string | undefined;
6909
6908
  category?: string | null | undefined;
6909
+ color?: string | undefined;
6910
6910
  }, {
6911
6911
  name: string;
6912
6912
  hidden: boolean;
6913
6913
  base?: boolean | undefined;
6914
- color?: string | undefined;
6915
6914
  category?: string | null | undefined;
6915
+ color?: string | undefined;
6916
6916
  }>, "many">>>;
6917
6917
  }, "strip", z.ZodTypeAny, {
6918
6918
  description?: string | undefined;
@@ -6920,8 +6920,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6920
6920
  name: string;
6921
6921
  hidden: boolean;
6922
6922
  base?: boolean | undefined;
6923
- color?: string | undefined;
6924
6923
  category?: string | null | undefined;
6924
+ color?: string | undefined;
6925
6925
  }[] | null | undefined;
6926
6926
  title?: string | undefined;
6927
6927
  priority?: "low" | "medium" | "high" | undefined;
@@ -6931,8 +6931,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6931
6931
  name: string;
6932
6932
  hidden: boolean;
6933
6933
  base?: boolean | undefined;
6934
- color?: string | undefined;
6935
6934
  category?: string | null | undefined;
6935
+ color?: string | undefined;
6936
6936
  }[] | null | undefined;
6937
6937
  title?: string | undefined;
6938
6938
  priority?: "low" | "medium" | "high" | undefined;
@@ -6943,11 +6943,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6943
6943
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6944
6944
  }, "strip", z.ZodTypeAny, {
6945
6945
  kind: string;
6946
- handler: "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";
6946
+ 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";
6947
6947
  payload: Record<string, unknown>;
6948
6948
  }, {
6949
6949
  kind: string;
6950
- handler: "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";
6950
+ 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";
6951
6951
  payload: Record<string, unknown>;
6952
6952
  }>, "many">>;
6953
6953
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7003,13 +7003,13 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7003
7003
  };
7004
7004
  target: "appointment";
7005
7005
  } | {
7006
+ target: "lead";
7006
7007
  lead: {
7007
7008
  status_in?: string[] | undefined;
7008
7009
  qualification_codes?: string[] | undefined;
7009
7010
  dist_channel_codes?: string[] | undefined;
7010
7011
  tag_names?: string[] | undefined;
7011
7012
  };
7012
- target: "lead";
7013
7013
  } | {
7014
7014
  patient: {
7015
7015
  status_in?: string[] | undefined;
@@ -7050,7 +7050,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7050
7050
  rule: "relative_to_appointment";
7051
7051
  offset_minutes: number;
7052
7052
  };
7053
- handler: "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";
7053
+ 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";
7054
7054
  payload?: Record<string, unknown> | undefined;
7055
7055
  retry?: z.objectInputType<{
7056
7056
  max_attempts: z.ZodNumber;
@@ -7100,14 +7100,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7100
7100
  name: string;
7101
7101
  hidden: boolean;
7102
7102
  base?: boolean | undefined;
7103
- color?: string | undefined;
7104
7103
  category?: string | null | undefined;
7104
+ color?: string | undefined;
7105
7105
  }, {
7106
7106
  name: string;
7107
7107
  hidden: boolean;
7108
7108
  base?: boolean | undefined;
7109
- color?: string | undefined;
7110
7109
  category?: string | null | undefined;
7110
+ color?: string | undefined;
7111
7111
  }>, "many">>>;
7112
7112
  }, "strip", z.ZodTypeAny, {
7113
7113
  description?: string | undefined;
@@ -7115,8 +7115,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7115
7115
  name: string;
7116
7116
  hidden: boolean;
7117
7117
  base?: boolean | undefined;
7118
- color?: string | undefined;
7119
7118
  category?: string | null | undefined;
7119
+ color?: string | undefined;
7120
7120
  }[] | null | undefined;
7121
7121
  title?: string | undefined;
7122
7122
  priority?: "low" | "medium" | "high" | undefined;
@@ -7126,8 +7126,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7126
7126
  name: string;
7127
7127
  hidden: boolean;
7128
7128
  base?: boolean | undefined;
7129
- color?: string | undefined;
7130
7129
  category?: string | null | undefined;
7130
+ color?: string | undefined;
7131
7131
  }[] | null | undefined;
7132
7132
  title?: string | undefined;
7133
7133
  priority?: "low" | "medium" | "high" | undefined;
@@ -7138,11 +7138,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7138
7138
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7139
7139
  }, "strip", z.ZodTypeAny, {
7140
7140
  kind: string;
7141
- handler: "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";
7141
+ 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";
7142
7142
  payload: Record<string, unknown>;
7143
7143
  }, {
7144
7144
  kind: string;
7145
- handler: "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";
7145
+ 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
7146
  payload: Record<string, unknown>;
7147
7147
  }>, "many">>;
7148
7148
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7170,7 +7170,6 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7170
7170
  routine: {
7171
7171
  name: string;
7172
7172
  id: string;
7173
- active: boolean;
7174
7173
  selection: {
7175
7174
  appointment: {
7176
7175
  date_window: {
@@ -7203,13 +7202,13 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7203
7202
  };
7204
7203
  target: "appointment";
7205
7204
  } | {
7205
+ target: "lead";
7206
7206
  lead: {
7207
7207
  status_in?: string[] | undefined;
7208
7208
  qualification_codes?: string[] | undefined;
7209
7209
  dist_channel_codes?: string[] | undefined;
7210
7210
  tag_names?: string[] | undefined;
7211
7211
  };
7212
- target: "lead";
7213
7212
  } | {
7214
7213
  patient: {
7215
7214
  status_in?: string[] | undefined;
@@ -7218,6 +7217,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7218
7217
  };
7219
7218
  target: "patient";
7220
7219
  };
7220
+ active: boolean;
7221
7221
  trigger: {
7222
7222
  type: "cron";
7223
7223
  cron: {
@@ -7250,7 +7250,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7250
7250
  rule: "relative_to_appointment";
7251
7251
  offset_minutes: number;
7252
7252
  };
7253
- handler: "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";
7253
+ 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";
7254
7254
  payload: Record<string, unknown>;
7255
7255
  retry?: z.objectOutputType<{
7256
7256
  max_attempts: z.ZodNumber;
@@ -7300,14 +7300,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7300
7300
  name: string;
7301
7301
  hidden: boolean;
7302
7302
  base?: boolean | undefined;
7303
- color?: string | undefined;
7304
7303
  category?: string | null | undefined;
7304
+ color?: string | undefined;
7305
7305
  }, {
7306
7306
  name: string;
7307
7307
  hidden: boolean;
7308
7308
  base?: boolean | undefined;
7309
- color?: string | undefined;
7310
7309
  category?: string | null | undefined;
7310
+ color?: string | undefined;
7311
7311
  }>, "many">>>;
7312
7312
  }, "strip", z.ZodTypeAny, {
7313
7313
  description?: string | undefined;
@@ -7315,8 +7315,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7315
7315
  name: string;
7316
7316
  hidden: boolean;
7317
7317
  base?: boolean | undefined;
7318
- color?: string | undefined;
7319
7318
  category?: string | null | undefined;
7319
+ color?: string | undefined;
7320
7320
  }[] | null | undefined;
7321
7321
  title?: string | undefined;
7322
7322
  priority?: "low" | "medium" | "high" | undefined;
@@ -7326,8 +7326,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7326
7326
  name: string;
7327
7327
  hidden: boolean;
7328
7328
  base?: boolean | undefined;
7329
- color?: string | undefined;
7330
7329
  category?: string | null | undefined;
7330
+ color?: string | undefined;
7331
7331
  }[] | null | undefined;
7332
7332
  title?: string | undefined;
7333
7333
  priority?: "low" | "medium" | "high" | undefined;
@@ -7338,11 +7338,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7338
7338
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7339
7339
  }, "strip", z.ZodTypeAny, {
7340
7340
  kind: string;
7341
- handler: "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";
7341
+ 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";
7342
7342
  payload: Record<string, unknown>;
7343
7343
  }, {
7344
7344
  kind: string;
7345
- handler: "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";
7345
+ 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";
7346
7346
  payload: Record<string, unknown>;
7347
7347
  }>, "many">>;
7348
7348
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7401,13 +7401,13 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7401
7401
  };
7402
7402
  target: "appointment";
7403
7403
  } | {
7404
+ target: "lead";
7404
7405
  lead: {
7405
7406
  status_in?: string[] | undefined;
7406
7407
  qualification_codes?: string[] | undefined;
7407
7408
  dist_channel_codes?: string[] | undefined;
7408
7409
  tag_names?: string[] | undefined;
7409
7410
  };
7410
- target: "lead";
7411
7411
  } | {
7412
7412
  patient: {
7413
7413
  status_in?: string[] | undefined;
@@ -7448,7 +7448,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7448
7448
  rule: "relative_to_appointment";
7449
7449
  offset_minutes: number;
7450
7450
  };
7451
- handler: "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";
7451
+ 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";
7452
7452
  payload?: Record<string, unknown> | undefined;
7453
7453
  retry?: z.objectInputType<{
7454
7454
  max_attempts: z.ZodNumber;
@@ -7498,14 +7498,14 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7498
7498
  name: string;
7499
7499
  hidden: boolean;
7500
7500
  base?: boolean | undefined;
7501
- color?: string | undefined;
7502
7501
  category?: string | null | undefined;
7502
+ color?: string | undefined;
7503
7503
  }, {
7504
7504
  name: string;
7505
7505
  hidden: boolean;
7506
7506
  base?: boolean | undefined;
7507
- color?: string | undefined;
7508
7507
  category?: string | null | undefined;
7508
+ color?: string | undefined;
7509
7509
  }>, "many">>>;
7510
7510
  }, "strip", z.ZodTypeAny, {
7511
7511
  description?: string | undefined;
@@ -7513,8 +7513,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7513
7513
  name: string;
7514
7514
  hidden: boolean;
7515
7515
  base?: boolean | undefined;
7516
- color?: string | undefined;
7517
7516
  category?: string | null | undefined;
7517
+ color?: string | undefined;
7518
7518
  }[] | null | undefined;
7519
7519
  title?: string | undefined;
7520
7520
  priority?: "low" | "medium" | "high" | undefined;
@@ -7524,8 +7524,8 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7524
7524
  name: string;
7525
7525
  hidden: boolean;
7526
7526
  base?: boolean | undefined;
7527
- color?: string | undefined;
7528
7527
  category?: string | null | undefined;
7528
+ color?: string | undefined;
7529
7529
  }[] | null | undefined;
7530
7530
  title?: string | undefined;
7531
7531
  priority?: "low" | "medium" | "high" | undefined;
@@ -7536,11 +7536,11 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7536
7536
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7537
7537
  }, "strip", z.ZodTypeAny, {
7538
7538
  kind: string;
7539
- handler: "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";
7539
+ 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";
7540
7540
  payload: Record<string, unknown>;
7541
7541
  }, {
7542
7542
  kind: string;
7543
- handler: "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";
7543
+ 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";
7544
7544
  payload: Record<string, unknown>;
7545
7545
  }>, "many">>;
7546
7546
  }, z.ZodTypeAny, "passthrough"> | undefined;