evo360-types 1.3.759 → 1.3.764

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.
@@ -150,6 +150,29 @@ export declare const zAutomationTimeOfDayRangeSchema: z.ZodEffects<z.ZodObject<{
150
150
  end: string;
151
151
  }>;
152
152
  export declare const zAutomationAppointmentModeSchema: z.ZodEnum<["telemedicine", "in_person"]>;
153
+ export declare const zAutomationPatientSexSchema: z.ZodEnum<["female", "male", "other"]>;
154
+ export declare const zAutomationAgeRangeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
155
+ min: z.ZodOptional<z.ZodNumber>;
156
+ max: z.ZodOptional<z.ZodNumber>;
157
+ }, "strip", z.ZodTypeAny, {
158
+ min?: number | undefined;
159
+ max?: number | undefined;
160
+ }, {
161
+ min?: number | undefined;
162
+ max?: number | undefined;
163
+ }>, {
164
+ min?: number | undefined;
165
+ max?: number | undefined;
166
+ }, {
167
+ min?: number | undefined;
168
+ max?: number | undefined;
169
+ }>, {
170
+ min?: number | undefined;
171
+ max?: number | undefined;
172
+ }, {
173
+ min?: number | undefined;
174
+ max?: number | undefined;
175
+ }>;
153
176
  export declare const zAutomationAppointmentSelectionSchema: z.ZodObject<{
154
177
  target: z.ZodLiteral<"appointment">;
155
178
  appointment: z.ZodObject<{
@@ -200,6 +223,30 @@ export declare const zAutomationAppointmentSelectionSchema: z.ZodObject<{
200
223
  start: string;
201
224
  end: string;
202
225
  }>>;
226
+ patient_sex_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
227
+ patient_sex_not_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
228
+ patient_age: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
229
+ min: z.ZodOptional<z.ZodNumber>;
230
+ max: z.ZodOptional<z.ZodNumber>;
231
+ }, "strip", z.ZodTypeAny, {
232
+ min?: number | undefined;
233
+ max?: number | undefined;
234
+ }, {
235
+ min?: number | undefined;
236
+ max?: number | undefined;
237
+ }>, {
238
+ min?: number | undefined;
239
+ max?: number | undefined;
240
+ }, {
241
+ min?: number | undefined;
242
+ max?: number | undefined;
243
+ }>, {
244
+ min?: number | undefined;
245
+ max?: number | undefined;
246
+ }, {
247
+ min?: number | undefined;
248
+ max?: number | undefined;
249
+ }>>;
203
250
  }, "strip", z.ZodTypeAny, {
204
251
  date_window: {
205
252
  offset_days: number;
@@ -230,6 +277,12 @@ export declare const zAutomationAppointmentSelectionSchema: z.ZodObject<{
230
277
  start: string;
231
278
  end: string;
232
279
  } | undefined;
280
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
281
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
282
+ patient_age?: {
283
+ min?: number | undefined;
284
+ max?: number | undefined;
285
+ } | undefined;
233
286
  }, {
234
287
  date_window: {
235
288
  offset_days: number;
@@ -260,6 +313,12 @@ export declare const zAutomationAppointmentSelectionSchema: z.ZodObject<{
260
313
  start: string;
261
314
  end: string;
262
315
  } | undefined;
316
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
317
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
318
+ patient_age?: {
319
+ min?: number | undefined;
320
+ max?: number | undefined;
321
+ } | undefined;
263
322
  }>;
264
323
  }, "strip", z.ZodTypeAny, {
265
324
  appointment: {
@@ -292,6 +351,12 @@ export declare const zAutomationAppointmentSelectionSchema: z.ZodObject<{
292
351
  start: string;
293
352
  end: string;
294
353
  } | undefined;
354
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
355
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
356
+ patient_age?: {
357
+ min?: number | undefined;
358
+ max?: number | undefined;
359
+ } | undefined;
295
360
  };
296
361
  target: "appointment";
297
362
  }, {
@@ -325,6 +390,12 @@ export declare const zAutomationAppointmentSelectionSchema: z.ZodObject<{
325
390
  start: string;
326
391
  end: string;
327
392
  } | undefined;
393
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
394
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
395
+ patient_age?: {
396
+ min?: number | undefined;
397
+ max?: number | undefined;
398
+ } | undefined;
328
399
  };
329
400
  target: "appointment";
330
401
  }>;
@@ -369,27 +440,94 @@ export declare const zAutomationPatientSelectionSchema: z.ZodObject<{
369
440
  status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
370
441
  source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
371
442
  tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
443
+ birthday: z.ZodOptional<z.ZodObject<{
444
+ offset_days: z.ZodNumber;
445
+ }, "strip", z.ZodTypeAny, {
446
+ offset_days: number;
447
+ }, {
448
+ offset_days: number;
449
+ }>>;
450
+ patient_sex_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
451
+ patient_sex_not_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
452
+ patient_age: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
453
+ min: z.ZodOptional<z.ZodNumber>;
454
+ max: z.ZodOptional<z.ZodNumber>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ min?: number | undefined;
457
+ max?: number | undefined;
458
+ }, {
459
+ min?: number | undefined;
460
+ max?: number | undefined;
461
+ }>, {
462
+ min?: number | undefined;
463
+ max?: number | undefined;
464
+ }, {
465
+ min?: number | undefined;
466
+ max?: number | undefined;
467
+ }>, {
468
+ min?: number | undefined;
469
+ max?: number | undefined;
470
+ }, {
471
+ min?: number | undefined;
472
+ max?: number | undefined;
473
+ }>>;
372
474
  }, "strip", z.ZodTypeAny, {
373
475
  status_in?: string[] | undefined;
476
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
477
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
478
+ patient_age?: {
479
+ min?: number | undefined;
480
+ max?: number | undefined;
481
+ } | undefined;
374
482
  tag_names?: string[] | undefined;
375
483
  source_codes?: string[] | undefined;
484
+ birthday?: {
485
+ offset_days: number;
486
+ } | undefined;
376
487
  }, {
377
488
  status_in?: string[] | undefined;
489
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
490
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
491
+ patient_age?: {
492
+ min?: number | undefined;
493
+ max?: number | undefined;
494
+ } | undefined;
378
495
  tag_names?: string[] | undefined;
379
496
  source_codes?: string[] | undefined;
497
+ birthday?: {
498
+ offset_days: number;
499
+ } | undefined;
380
500
  }>;
381
501
  }, "strip", z.ZodTypeAny, {
382
502
  patient: {
383
503
  status_in?: string[] | undefined;
504
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
505
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
506
+ patient_age?: {
507
+ min?: number | undefined;
508
+ max?: number | undefined;
509
+ } | undefined;
384
510
  tag_names?: string[] | undefined;
385
511
  source_codes?: string[] | undefined;
512
+ birthday?: {
513
+ offset_days: number;
514
+ } | undefined;
386
515
  };
387
516
  target: "patient";
388
517
  }, {
389
518
  patient: {
390
519
  status_in?: string[] | undefined;
520
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
521
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
522
+ patient_age?: {
523
+ min?: number | undefined;
524
+ max?: number | undefined;
525
+ } | undefined;
391
526
  tag_names?: string[] | undefined;
392
527
  source_codes?: string[] | undefined;
528
+ birthday?: {
529
+ offset_days: number;
530
+ } | undefined;
393
531
  };
394
532
  target: "patient";
395
533
  }>;
@@ -443,6 +581,30 @@ export declare const zAutomationSelectionSchema: z.ZodDiscriminatedUnion<"target
443
581
  start: string;
444
582
  end: string;
445
583
  }>>;
584
+ patient_sex_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
585
+ patient_sex_not_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
586
+ patient_age: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
587
+ min: z.ZodOptional<z.ZodNumber>;
588
+ max: z.ZodOptional<z.ZodNumber>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ min?: number | undefined;
591
+ max?: number | undefined;
592
+ }, {
593
+ min?: number | undefined;
594
+ max?: number | undefined;
595
+ }>, {
596
+ min?: number | undefined;
597
+ max?: number | undefined;
598
+ }, {
599
+ min?: number | undefined;
600
+ max?: number | undefined;
601
+ }>, {
602
+ min?: number | undefined;
603
+ max?: number | undefined;
604
+ }, {
605
+ min?: number | undefined;
606
+ max?: number | undefined;
607
+ }>>;
446
608
  }, "strip", z.ZodTypeAny, {
447
609
  date_window: {
448
610
  offset_days: number;
@@ -473,6 +635,12 @@ export declare const zAutomationSelectionSchema: z.ZodDiscriminatedUnion<"target
473
635
  start: string;
474
636
  end: string;
475
637
  } | undefined;
638
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
639
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
640
+ patient_age?: {
641
+ min?: number | undefined;
642
+ max?: number | undefined;
643
+ } | undefined;
476
644
  }, {
477
645
  date_window: {
478
646
  offset_days: number;
@@ -503,6 +671,12 @@ export declare const zAutomationSelectionSchema: z.ZodDiscriminatedUnion<"target
503
671
  start: string;
504
672
  end: string;
505
673
  } | undefined;
674
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
675
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
676
+ patient_age?: {
677
+ min?: number | undefined;
678
+ max?: number | undefined;
679
+ } | undefined;
506
680
  }>;
507
681
  }, "strip", z.ZodTypeAny, {
508
682
  appointment: {
@@ -535,6 +709,12 @@ export declare const zAutomationSelectionSchema: z.ZodDiscriminatedUnion<"target
535
709
  start: string;
536
710
  end: string;
537
711
  } | undefined;
712
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
713
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
714
+ patient_age?: {
715
+ min?: number | undefined;
716
+ max?: number | undefined;
717
+ } | undefined;
538
718
  };
539
719
  target: "appointment";
540
720
  }, {
@@ -568,6 +748,12 @@ export declare const zAutomationSelectionSchema: z.ZodDiscriminatedUnion<"target
568
748
  start: string;
569
749
  end: string;
570
750
  } | undefined;
751
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
752
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
753
+ patient_age?: {
754
+ min?: number | undefined;
755
+ max?: number | undefined;
756
+ } | undefined;
571
757
  };
572
758
  target: "appointment";
573
759
  }>, z.ZodObject<{
@@ -610,27 +796,94 @@ export declare const zAutomationSelectionSchema: z.ZodDiscriminatedUnion<"target
610
796
  status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
611
797
  source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
612
798
  tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
799
+ birthday: z.ZodOptional<z.ZodObject<{
800
+ offset_days: z.ZodNumber;
801
+ }, "strip", z.ZodTypeAny, {
802
+ offset_days: number;
803
+ }, {
804
+ offset_days: number;
805
+ }>>;
806
+ patient_sex_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
807
+ patient_sex_not_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
808
+ patient_age: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
809
+ min: z.ZodOptional<z.ZodNumber>;
810
+ max: z.ZodOptional<z.ZodNumber>;
811
+ }, "strip", z.ZodTypeAny, {
812
+ min?: number | undefined;
813
+ max?: number | undefined;
814
+ }, {
815
+ min?: number | undefined;
816
+ max?: number | undefined;
817
+ }>, {
818
+ min?: number | undefined;
819
+ max?: number | undefined;
820
+ }, {
821
+ min?: number | undefined;
822
+ max?: number | undefined;
823
+ }>, {
824
+ min?: number | undefined;
825
+ max?: number | undefined;
826
+ }, {
827
+ min?: number | undefined;
828
+ max?: number | undefined;
829
+ }>>;
613
830
  }, "strip", z.ZodTypeAny, {
614
831
  status_in?: string[] | undefined;
832
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
833
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
834
+ patient_age?: {
835
+ min?: number | undefined;
836
+ max?: number | undefined;
837
+ } | undefined;
615
838
  tag_names?: string[] | undefined;
616
839
  source_codes?: string[] | undefined;
840
+ birthday?: {
841
+ offset_days: number;
842
+ } | undefined;
617
843
  }, {
618
844
  status_in?: string[] | undefined;
845
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
846
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
847
+ patient_age?: {
848
+ min?: number | undefined;
849
+ max?: number | undefined;
850
+ } | undefined;
619
851
  tag_names?: string[] | undefined;
620
852
  source_codes?: string[] | undefined;
853
+ birthday?: {
854
+ offset_days: number;
855
+ } | undefined;
621
856
  }>;
622
857
  }, "strip", z.ZodTypeAny, {
623
858
  patient: {
624
859
  status_in?: string[] | undefined;
860
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
861
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
862
+ patient_age?: {
863
+ min?: number | undefined;
864
+ max?: number | undefined;
865
+ } | undefined;
625
866
  tag_names?: string[] | undefined;
626
867
  source_codes?: string[] | undefined;
868
+ birthday?: {
869
+ offset_days: number;
870
+ } | undefined;
627
871
  };
628
872
  target: "patient";
629
873
  }, {
630
874
  patient: {
631
875
  status_in?: string[] | undefined;
876
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
877
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
878
+ patient_age?: {
879
+ min?: number | undefined;
880
+ max?: number | undefined;
881
+ } | undefined;
632
882
  tag_names?: string[] | undefined;
633
883
  source_codes?: string[] | undefined;
884
+ birthday?: {
885
+ offset_days: number;
886
+ } | undefined;
634
887
  };
635
888
  target: "patient";
636
889
  }>]>;
@@ -691,7 +944,7 @@ export declare const zAutomationExecuteAtSchema: z.ZodDiscriminatedUnion<"rule",
691
944
  }>]>;
692
945
  export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
693
946
  type: z.ZodLiteral<"auto_task">;
694
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
947
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
695
948
  kind: z.ZodString;
696
949
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
697
950
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -847,16 +1100,16 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
847
1100
  priority?: "low" | "medium" | "high" | undefined;
848
1101
  }>>;
849
1102
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
850
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1103
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
851
1104
  kind: z.ZodString;
852
1105
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
853
1106
  }, "strip", z.ZodTypeAny, {
854
1107
  kind: string;
855
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1108
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
856
1109
  payload: Record<string, unknown>;
857
1110
  }, {
858
1111
  kind: string;
859
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1112
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
860
1113
  payload: Record<string, unknown>;
861
1114
  }>, "many">>;
862
1115
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -917,16 +1170,16 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
917
1170
  priority?: "low" | "medium" | "high" | undefined;
918
1171
  }>>;
919
1172
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
920
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1173
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
921
1174
  kind: z.ZodString;
922
1175
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
923
1176
  }, "strip", z.ZodTypeAny, {
924
1177
  kind: string;
925
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1178
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
926
1179
  payload: Record<string, unknown>;
927
1180
  }, {
928
1181
  kind: string;
929
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1182
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
930
1183
  payload: Record<string, unknown>;
931
1184
  }>, "many">>;
932
1185
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -987,16 +1240,16 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
987
1240
  priority?: "low" | "medium" | "high" | undefined;
988
1241
  }>>;
989
1242
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
990
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1243
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
991
1244
  kind: z.ZodString;
992
1245
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
993
1246
  }, "strip", z.ZodTypeAny, {
994
1247
  kind: string;
995
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1248
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
996
1249
  payload: Record<string, unknown>;
997
1250
  }, {
998
1251
  kind: string;
999
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1252
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1000
1253
  payload: Record<string, unknown>;
1001
1254
  }>, "many">>;
1002
1255
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1013,7 +1266,7 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1013
1266
  rule: "relative_to_appointment";
1014
1267
  offset_minutes: number;
1015
1268
  };
1016
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1269
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1017
1270
  payload: Record<string, unknown>;
1018
1271
  retry?: z.objectOutputType<{
1019
1272
  max_attempts: z.ZodNumber;
@@ -1096,16 +1349,16 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1096
1349
  priority?: "low" | "medium" | "high" | undefined;
1097
1350
  }>>;
1098
1351
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1099
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1352
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
1100
1353
  kind: z.ZodString;
1101
1354
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1102
1355
  }, "strip", z.ZodTypeAny, {
1103
1356
  kind: string;
1104
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1357
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1105
1358
  payload: Record<string, unknown>;
1106
1359
  }, {
1107
1360
  kind: string;
1108
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1361
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1109
1362
  payload: Record<string, unknown>;
1110
1363
  }>, "many">>;
1111
1364
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1122,7 +1375,7 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1122
1375
  rule: "relative_to_appointment";
1123
1376
  offset_minutes: number;
1124
1377
  };
1125
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1378
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1126
1379
  payload?: Record<string, unknown> | undefined;
1127
1380
  retry?: z.objectInputType<{
1128
1381
  max_attempts: z.ZodNumber;
@@ -1205,16 +1458,16 @@ export declare const zAutomationAutoTaskOutputSchema: z.ZodObject<{
1205
1458
  priority?: "low" | "medium" | "high" | undefined;
1206
1459
  }>>;
1207
1460
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1208
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1461
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
1209
1462
  kind: z.ZodString;
1210
1463
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1211
1464
  }, "strip", z.ZodTypeAny, {
1212
1465
  kind: string;
1213
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1466
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1214
1467
  payload: Record<string, unknown>;
1215
1468
  }, {
1216
1469
  kind: string;
1217
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1470
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1218
1471
  payload: Record<string, unknown>;
1219
1472
  }>, "many">>;
1220
1473
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1250,7 +1503,7 @@ export declare const zAutomationActionOutputSchema: z.ZodObject<{
1250
1503
  }>;
1251
1504
  export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1252
1505
  type: z.ZodLiteral<"auto_task">;
1253
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1506
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
1254
1507
  kind: z.ZodString;
1255
1508
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1256
1509
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -1406,16 +1659,16 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1406
1659
  priority?: "low" | "medium" | "high" | undefined;
1407
1660
  }>>;
1408
1661
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1409
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1662
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
1410
1663
  kind: z.ZodString;
1411
1664
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1412
1665
  }, "strip", z.ZodTypeAny, {
1413
1666
  kind: string;
1414
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1667
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1415
1668
  payload: Record<string, unknown>;
1416
1669
  }, {
1417
1670
  kind: string;
1418
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1671
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1419
1672
  payload: Record<string, unknown>;
1420
1673
  }>, "many">>;
1421
1674
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -1476,16 +1729,16 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1476
1729
  priority?: "low" | "medium" | "high" | undefined;
1477
1730
  }>>;
1478
1731
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1479
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1732
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
1480
1733
  kind: z.ZodString;
1481
1734
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1482
1735
  }, "strip", z.ZodTypeAny, {
1483
1736
  kind: string;
1484
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1737
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1485
1738
  payload: Record<string, unknown>;
1486
1739
  }, {
1487
1740
  kind: string;
1488
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1741
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1489
1742
  payload: Record<string, unknown>;
1490
1743
  }>, "many">>;
1491
1744
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -1546,16 +1799,16 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1546
1799
  priority?: "low" | "medium" | "high" | undefined;
1547
1800
  }>>;
1548
1801
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1549
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1802
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
1550
1803
  kind: z.ZodString;
1551
1804
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1552
1805
  }, "strip", z.ZodTypeAny, {
1553
1806
  kind: string;
1554
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1807
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1555
1808
  payload: Record<string, unknown>;
1556
1809
  }, {
1557
1810
  kind: string;
1558
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1811
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1559
1812
  payload: Record<string, unknown>;
1560
1813
  }>, "many">>;
1561
1814
  }, z.ZodTypeAny, "passthrough">>>;
@@ -1572,7 +1825,7 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1572
1825
  rule: "relative_to_appointment";
1573
1826
  offset_minutes: number;
1574
1827
  };
1575
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1828
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1576
1829
  payload: Record<string, unknown>;
1577
1830
  retry?: z.objectOutputType<{
1578
1831
  max_attempts: z.ZodNumber;
@@ -1655,16 +1908,16 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1655
1908
  priority?: "low" | "medium" | "high" | undefined;
1656
1909
  }>>;
1657
1910
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1658
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
1911
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
1659
1912
  kind: z.ZodString;
1660
1913
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1661
1914
  }, "strip", z.ZodTypeAny, {
1662
1915
  kind: string;
1663
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1916
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1664
1917
  payload: Record<string, unknown>;
1665
1918
  }, {
1666
1919
  kind: string;
1667
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1920
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1668
1921
  payload: Record<string, unknown>;
1669
1922
  }>, "many">>;
1670
1923
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1681,7 +1934,7 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1681
1934
  rule: "relative_to_appointment";
1682
1935
  offset_minutes: number;
1683
1936
  };
1684
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
1937
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1685
1938
  payload?: Record<string, unknown> | undefined;
1686
1939
  retry?: z.objectInputType<{
1687
1940
  max_attempts: z.ZodNumber;
@@ -1764,16 +2017,16 @@ export declare const zAutomationOutputSchema: z.ZodDiscriminatedUnion<"type", [z
1764
2017
  priority?: "low" | "medium" | "high" | undefined;
1765
2018
  }>>;
1766
2019
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1767
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2020
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
1768
2021
  kind: z.ZodString;
1769
2022
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1770
2023
  }, "strip", z.ZodTypeAny, {
1771
2024
  kind: string;
1772
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2025
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1773
2026
  payload: Record<string, unknown>;
1774
2027
  }, {
1775
2028
  kind: string;
1776
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2029
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1777
2030
  payload: Record<string, unknown>;
1778
2031
  }>, "many">>;
1779
2032
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -1812,7 +2065,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
1812
2065
  is_fallback: z.ZodOptional<z.ZodBoolean>;
1813
2066
  outputs: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1814
2067
  type: z.ZodLiteral<"auto_task">;
1815
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2068
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
1816
2069
  kind: z.ZodString;
1817
2070
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1818
2071
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -1968,16 +2221,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
1968
2221
  priority?: "low" | "medium" | "high" | undefined;
1969
2222
  }>>;
1970
2223
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1971
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2224
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
1972
2225
  kind: z.ZodString;
1973
2226
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1974
2227
  }, "strip", z.ZodTypeAny, {
1975
2228
  kind: string;
1976
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2229
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1977
2230
  payload: Record<string, unknown>;
1978
2231
  }, {
1979
2232
  kind: string;
1980
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2233
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
1981
2234
  payload: Record<string, unknown>;
1982
2235
  }>, "many">>;
1983
2236
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -2038,16 +2291,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2038
2291
  priority?: "low" | "medium" | "high" | undefined;
2039
2292
  }>>;
2040
2293
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2041
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2294
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
2042
2295
  kind: z.ZodString;
2043
2296
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2044
2297
  }, "strip", z.ZodTypeAny, {
2045
2298
  kind: string;
2046
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2299
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2047
2300
  payload: Record<string, unknown>;
2048
2301
  }, {
2049
2302
  kind: string;
2050
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2303
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2051
2304
  payload: Record<string, unknown>;
2052
2305
  }>, "many">>;
2053
2306
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -2108,16 +2361,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2108
2361
  priority?: "low" | "medium" | "high" | undefined;
2109
2362
  }>>;
2110
2363
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2111
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2364
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
2112
2365
  kind: z.ZodString;
2113
2366
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2114
2367
  }, "strip", z.ZodTypeAny, {
2115
2368
  kind: string;
2116
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2369
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2117
2370
  payload: Record<string, unknown>;
2118
2371
  }, {
2119
2372
  kind: string;
2120
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2373
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2121
2374
  payload: Record<string, unknown>;
2122
2375
  }>, "many">>;
2123
2376
  }, z.ZodTypeAny, "passthrough">>>;
@@ -2134,7 +2387,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2134
2387
  rule: "relative_to_appointment";
2135
2388
  offset_minutes: number;
2136
2389
  };
2137
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2390
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2138
2391
  payload: Record<string, unknown>;
2139
2392
  retry?: z.objectOutputType<{
2140
2393
  max_attempts: z.ZodNumber;
@@ -2217,16 +2470,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2217
2470
  priority?: "low" | "medium" | "high" | undefined;
2218
2471
  }>>;
2219
2472
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2220
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2473
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
2221
2474
  kind: z.ZodString;
2222
2475
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2223
2476
  }, "strip", z.ZodTypeAny, {
2224
2477
  kind: string;
2225
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2478
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2226
2479
  payload: Record<string, unknown>;
2227
2480
  }, {
2228
2481
  kind: string;
2229
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2482
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2230
2483
  payload: Record<string, unknown>;
2231
2484
  }>, "many">>;
2232
2485
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2243,7 +2496,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2243
2496
  rule: "relative_to_appointment";
2244
2497
  offset_minutes: number;
2245
2498
  };
2246
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2499
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2247
2500
  payload?: Record<string, unknown> | undefined;
2248
2501
  retry?: z.objectInputType<{
2249
2502
  max_attempts: z.ZodNumber;
@@ -2326,16 +2579,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2326
2579
  priority?: "low" | "medium" | "high" | undefined;
2327
2580
  }>>;
2328
2581
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2329
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2582
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
2330
2583
  kind: z.ZodString;
2331
2584
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2332
2585
  }, "strip", z.ZodTypeAny, {
2333
2586
  kind: string;
2334
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2587
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2335
2588
  payload: Record<string, unknown>;
2336
2589
  }, {
2337
2590
  kind: string;
2338
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2591
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2339
2592
  payload: Record<string, unknown>;
2340
2593
  }>, "many">>;
2341
2594
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2383,7 +2636,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2383
2636
  rule: "relative_to_appointment";
2384
2637
  offset_minutes: number;
2385
2638
  };
2386
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2639
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2387
2640
  payload: Record<string, unknown>;
2388
2641
  retry?: z.objectOutputType<{
2389
2642
  max_attempts: z.ZodNumber;
@@ -2466,16 +2719,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2466
2719
  priority?: "low" | "medium" | "high" | undefined;
2467
2720
  }>>;
2468
2721
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2469
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2722
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
2470
2723
  kind: z.ZodString;
2471
2724
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2472
2725
  }, "strip", z.ZodTypeAny, {
2473
2726
  kind: string;
2474
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2727
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2475
2728
  payload: Record<string, unknown>;
2476
2729
  }, {
2477
2730
  kind: string;
2478
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2731
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2479
2732
  payload: Record<string, unknown>;
2480
2733
  }>, "many">>;
2481
2734
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2507,7 +2760,7 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2507
2760
  rule: "relative_to_appointment";
2508
2761
  offset_minutes: number;
2509
2762
  };
2510
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2763
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2511
2764
  payload?: Record<string, unknown> | undefined;
2512
2765
  retry?: z.objectInputType<{
2513
2766
  max_attempts: z.ZodNumber;
@@ -2590,16 +2843,16 @@ export declare const zAutomationBranchSchema: z.ZodObject<{
2590
2843
  priority?: "low" | "medium" | "high" | undefined;
2591
2844
  }>>;
2592
2845
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2593
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
2846
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
2594
2847
  kind: z.ZodString;
2595
2848
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2596
2849
  }, "strip", z.ZodTypeAny, {
2597
2850
  kind: string;
2598
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2851
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2599
2852
  payload: Record<string, unknown>;
2600
2853
  }, {
2601
2854
  kind: string;
2602
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
2855
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
2603
2856
  payload: Record<string, unknown>;
2604
2857
  }>, "many">>;
2605
2858
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -2733,6 +2986,30 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2733
2986
  start: string;
2734
2987
  end: string;
2735
2988
  }>>;
2989
+ patient_sex_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
2990
+ patient_sex_not_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
2991
+ patient_age: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
2992
+ min: z.ZodOptional<z.ZodNumber>;
2993
+ max: z.ZodOptional<z.ZodNumber>;
2994
+ }, "strip", z.ZodTypeAny, {
2995
+ min?: number | undefined;
2996
+ max?: number | undefined;
2997
+ }, {
2998
+ min?: number | undefined;
2999
+ max?: number | undefined;
3000
+ }>, {
3001
+ min?: number | undefined;
3002
+ max?: number | undefined;
3003
+ }, {
3004
+ min?: number | undefined;
3005
+ max?: number | undefined;
3006
+ }>, {
3007
+ min?: number | undefined;
3008
+ max?: number | undefined;
3009
+ }, {
3010
+ min?: number | undefined;
3011
+ max?: number | undefined;
3012
+ }>>;
2736
3013
  }, "strip", z.ZodTypeAny, {
2737
3014
  date_window: {
2738
3015
  offset_days: number;
@@ -2763,6 +3040,12 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2763
3040
  start: string;
2764
3041
  end: string;
2765
3042
  } | undefined;
3043
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
3044
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
3045
+ patient_age?: {
3046
+ min?: number | undefined;
3047
+ max?: number | undefined;
3048
+ } | undefined;
2766
3049
  }, {
2767
3050
  date_window: {
2768
3051
  offset_days: number;
@@ -2793,6 +3076,12 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2793
3076
  start: string;
2794
3077
  end: string;
2795
3078
  } | undefined;
3079
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
3080
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
3081
+ patient_age?: {
3082
+ min?: number | undefined;
3083
+ max?: number | undefined;
3084
+ } | undefined;
2796
3085
  }>;
2797
3086
  }, "strip", z.ZodTypeAny, {
2798
3087
  appointment: {
@@ -2825,6 +3114,12 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2825
3114
  start: string;
2826
3115
  end: string;
2827
3116
  } | undefined;
3117
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
3118
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
3119
+ patient_age?: {
3120
+ min?: number | undefined;
3121
+ max?: number | undefined;
3122
+ } | undefined;
2828
3123
  };
2829
3124
  target: "appointment";
2830
3125
  }, {
@@ -2858,6 +3153,12 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2858
3153
  start: string;
2859
3154
  end: string;
2860
3155
  } | undefined;
3156
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
3157
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
3158
+ patient_age?: {
3159
+ min?: number | undefined;
3160
+ max?: number | undefined;
3161
+ } | undefined;
2861
3162
  };
2862
3163
  target: "appointment";
2863
3164
  }>, z.ZodObject<{
@@ -2900,27 +3201,94 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2900
3201
  status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2901
3202
  source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2902
3203
  tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3204
+ birthday: z.ZodOptional<z.ZodObject<{
3205
+ offset_days: z.ZodNumber;
3206
+ }, "strip", z.ZodTypeAny, {
3207
+ offset_days: number;
3208
+ }, {
3209
+ offset_days: number;
3210
+ }>>;
3211
+ patient_sex_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
3212
+ patient_sex_not_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
3213
+ patient_age: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
3214
+ min: z.ZodOptional<z.ZodNumber>;
3215
+ max: z.ZodOptional<z.ZodNumber>;
3216
+ }, "strip", z.ZodTypeAny, {
3217
+ min?: number | undefined;
3218
+ max?: number | undefined;
3219
+ }, {
3220
+ min?: number | undefined;
3221
+ max?: number | undefined;
3222
+ }>, {
3223
+ min?: number | undefined;
3224
+ max?: number | undefined;
3225
+ }, {
3226
+ min?: number | undefined;
3227
+ max?: number | undefined;
3228
+ }>, {
3229
+ min?: number | undefined;
3230
+ max?: number | undefined;
3231
+ }, {
3232
+ min?: number | undefined;
3233
+ max?: number | undefined;
3234
+ }>>;
2903
3235
  }, "strip", z.ZodTypeAny, {
2904
3236
  status_in?: string[] | undefined;
3237
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
3238
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
3239
+ patient_age?: {
3240
+ min?: number | undefined;
3241
+ max?: number | undefined;
3242
+ } | undefined;
2905
3243
  tag_names?: string[] | undefined;
2906
3244
  source_codes?: string[] | undefined;
3245
+ birthday?: {
3246
+ offset_days: number;
3247
+ } | undefined;
2907
3248
  }, {
2908
3249
  status_in?: string[] | undefined;
3250
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
3251
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
3252
+ patient_age?: {
3253
+ min?: number | undefined;
3254
+ max?: number | undefined;
3255
+ } | undefined;
2909
3256
  tag_names?: string[] | undefined;
2910
3257
  source_codes?: string[] | undefined;
3258
+ birthday?: {
3259
+ offset_days: number;
3260
+ } | undefined;
2911
3261
  }>;
2912
3262
  }, "strip", z.ZodTypeAny, {
2913
3263
  patient: {
2914
3264
  status_in?: string[] | undefined;
3265
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
3266
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
3267
+ patient_age?: {
3268
+ min?: number | undefined;
3269
+ max?: number | undefined;
3270
+ } | undefined;
2915
3271
  tag_names?: string[] | undefined;
2916
3272
  source_codes?: string[] | undefined;
3273
+ birthday?: {
3274
+ offset_days: number;
3275
+ } | undefined;
2917
3276
  };
2918
3277
  target: "patient";
2919
3278
  }, {
2920
3279
  patient: {
2921
3280
  status_in?: string[] | undefined;
3281
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
3282
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
3283
+ patient_age?: {
3284
+ min?: number | undefined;
3285
+ max?: number | undefined;
3286
+ } | undefined;
2922
3287
  tag_names?: string[] | undefined;
2923
3288
  source_codes?: string[] | undefined;
3289
+ birthday?: {
3290
+ offset_days: number;
3291
+ } | undefined;
2924
3292
  };
2925
3293
  target: "patient";
2926
3294
  }>]>;
@@ -2932,7 +3300,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2932
3300
  is_fallback: z.ZodOptional<z.ZodBoolean>;
2933
3301
  outputs: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2934
3302
  type: z.ZodLiteral<"auto_task">;
2935
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3303
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
2936
3304
  kind: z.ZodString;
2937
3305
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2938
3306
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -3088,16 +3456,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3088
3456
  priority?: "low" | "medium" | "high" | undefined;
3089
3457
  }>>;
3090
3458
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3091
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3459
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
3092
3460
  kind: z.ZodString;
3093
3461
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3094
3462
  }, "strip", z.ZodTypeAny, {
3095
3463
  kind: string;
3096
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3464
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3097
3465
  payload: Record<string, unknown>;
3098
3466
  }, {
3099
3467
  kind: string;
3100
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3468
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3101
3469
  payload: Record<string, unknown>;
3102
3470
  }>, "many">>;
3103
3471
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -3158,16 +3526,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3158
3526
  priority?: "low" | "medium" | "high" | undefined;
3159
3527
  }>>;
3160
3528
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3161
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3529
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
3162
3530
  kind: z.ZodString;
3163
3531
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3164
3532
  }, "strip", z.ZodTypeAny, {
3165
3533
  kind: string;
3166
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3534
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3167
3535
  payload: Record<string, unknown>;
3168
3536
  }, {
3169
3537
  kind: string;
3170
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3538
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3171
3539
  payload: Record<string, unknown>;
3172
3540
  }>, "many">>;
3173
3541
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -3228,16 +3596,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3228
3596
  priority?: "low" | "medium" | "high" | undefined;
3229
3597
  }>>;
3230
3598
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3231
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3599
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
3232
3600
  kind: z.ZodString;
3233
3601
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3234
3602
  }, "strip", z.ZodTypeAny, {
3235
3603
  kind: string;
3236
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3604
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3237
3605
  payload: Record<string, unknown>;
3238
3606
  }, {
3239
3607
  kind: string;
3240
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3608
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3241
3609
  payload: Record<string, unknown>;
3242
3610
  }>, "many">>;
3243
3611
  }, z.ZodTypeAny, "passthrough">>>;
@@ -3254,7 +3622,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3254
3622
  rule: "relative_to_appointment";
3255
3623
  offset_minutes: number;
3256
3624
  };
3257
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3625
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3258
3626
  payload: Record<string, unknown>;
3259
3627
  retry?: z.objectOutputType<{
3260
3628
  max_attempts: z.ZodNumber;
@@ -3337,16 +3705,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3337
3705
  priority?: "low" | "medium" | "high" | undefined;
3338
3706
  }>>;
3339
3707
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3340
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3708
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
3341
3709
  kind: z.ZodString;
3342
3710
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3343
3711
  }, "strip", z.ZodTypeAny, {
3344
3712
  kind: string;
3345
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3713
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3346
3714
  payload: Record<string, unknown>;
3347
3715
  }, {
3348
3716
  kind: string;
3349
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3717
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3350
3718
  payload: Record<string, unknown>;
3351
3719
  }>, "many">>;
3352
3720
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3363,7 +3731,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3363
3731
  rule: "relative_to_appointment";
3364
3732
  offset_minutes: number;
3365
3733
  };
3366
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3734
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3367
3735
  payload?: Record<string, unknown> | undefined;
3368
3736
  retry?: z.objectInputType<{
3369
3737
  max_attempts: z.ZodNumber;
@@ -3446,16 +3814,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3446
3814
  priority?: "low" | "medium" | "high" | undefined;
3447
3815
  }>>;
3448
3816
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3449
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3817
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
3450
3818
  kind: z.ZodString;
3451
3819
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3452
3820
  }, "strip", z.ZodTypeAny, {
3453
3821
  kind: string;
3454
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
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" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3455
3823
  payload: Record<string, unknown>;
3456
3824
  }, {
3457
3825
  kind: string;
3458
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3826
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3459
3827
  payload: Record<string, unknown>;
3460
3828
  }>, "many">>;
3461
3829
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3503,7 +3871,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3503
3871
  rule: "relative_to_appointment";
3504
3872
  offset_minutes: number;
3505
3873
  };
3506
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3874
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3507
3875
  payload: Record<string, unknown>;
3508
3876
  retry?: z.objectOutputType<{
3509
3877
  max_attempts: z.ZodNumber;
@@ -3586,16 +3954,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3586
3954
  priority?: "low" | "medium" | "high" | undefined;
3587
3955
  }>>;
3588
3956
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3589
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
3957
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
3590
3958
  kind: z.ZodString;
3591
3959
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3592
3960
  }, "strip", z.ZodTypeAny, {
3593
3961
  kind: string;
3594
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3962
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3595
3963
  payload: Record<string, unknown>;
3596
3964
  }, {
3597
3965
  kind: string;
3598
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3966
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3599
3967
  payload: Record<string, unknown>;
3600
3968
  }>, "many">>;
3601
3969
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3627,7 +3995,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3627
3995
  rule: "relative_to_appointment";
3628
3996
  offset_minutes: number;
3629
3997
  };
3630
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
3998
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3631
3999
  payload?: Record<string, unknown> | undefined;
3632
4000
  retry?: z.objectInputType<{
3633
4001
  max_attempts: z.ZodNumber;
@@ -3710,16 +4078,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3710
4078
  priority?: "low" | "medium" | "high" | undefined;
3711
4079
  }>>;
3712
4080
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3713
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
4081
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
3714
4082
  kind: z.ZodString;
3715
4083
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3716
4084
  }, "strip", z.ZodTypeAny, {
3717
4085
  kind: string;
3718
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4086
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3719
4087
  payload: Record<string, unknown>;
3720
4088
  }, {
3721
4089
  kind: string;
3722
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4090
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3723
4091
  payload: Record<string, unknown>;
3724
4092
  }>, "many">>;
3725
4093
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -3815,6 +4183,12 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3815
4183
  start: string;
3816
4184
  end: string;
3817
4185
  } | undefined;
4186
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
4187
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
4188
+ patient_age?: {
4189
+ min?: number | undefined;
4190
+ max?: number | undefined;
4191
+ } | undefined;
3818
4192
  };
3819
4193
  target: "appointment";
3820
4194
  } | {
@@ -3828,8 +4202,17 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3828
4202
  } | {
3829
4203
  patient: {
3830
4204
  status_in?: string[] | undefined;
4205
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
4206
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
4207
+ patient_age?: {
4208
+ min?: number | undefined;
4209
+ max?: number | undefined;
4210
+ } | undefined;
3831
4211
  tag_names?: string[] | undefined;
3832
4212
  source_codes?: string[] | undefined;
4213
+ birthday?: {
4214
+ offset_days: number;
4215
+ } | undefined;
3833
4216
  };
3834
4217
  target: "patient";
3835
4218
  };
@@ -3867,7 +4250,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3867
4250
  rule: "relative_to_appointment";
3868
4251
  offset_minutes: number;
3869
4252
  };
3870
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4253
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3871
4254
  payload: Record<string, unknown>;
3872
4255
  retry?: z.objectOutputType<{
3873
4256
  max_attempts: z.ZodNumber;
@@ -3950,16 +4333,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3950
4333
  priority?: "low" | "medium" | "high" | undefined;
3951
4334
  }>>;
3952
4335
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3953
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
4336
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
3954
4337
  kind: z.ZodString;
3955
4338
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3956
4339
  }, "strip", z.ZodTypeAny, {
3957
4340
  kind: string;
3958
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4341
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3959
4342
  payload: Record<string, unknown>;
3960
4343
  }, {
3961
4344
  kind: string;
3962
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4345
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
3963
4346
  payload: Record<string, unknown>;
3964
4347
  }>, "many">>;
3965
4348
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -4029,6 +4412,12 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4029
4412
  start: string;
4030
4413
  end: string;
4031
4414
  } | undefined;
4415
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
4416
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
4417
+ patient_age?: {
4418
+ min?: number | undefined;
4419
+ max?: number | undefined;
4420
+ } | undefined;
4032
4421
  };
4033
4422
  target: "appointment";
4034
4423
  } | {
@@ -4042,8 +4431,17 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4042
4431
  } | {
4043
4432
  patient: {
4044
4433
  status_in?: string[] | undefined;
4434
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
4435
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
4436
+ patient_age?: {
4437
+ min?: number | undefined;
4438
+ max?: number | undefined;
4439
+ } | undefined;
4045
4440
  tag_names?: string[] | undefined;
4046
4441
  source_codes?: string[] | undefined;
4442
+ birthday?: {
4443
+ offset_days: number;
4444
+ } | undefined;
4047
4445
  };
4048
4446
  target: "patient";
4049
4447
  };
@@ -4080,7 +4478,7 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4080
4478
  rule: "relative_to_appointment";
4081
4479
  offset_minutes: number;
4082
4480
  };
4083
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4481
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4084
4482
  payload?: Record<string, unknown> | undefined;
4085
4483
  retry?: z.objectInputType<{
4086
4484
  max_attempts: z.ZodNumber;
@@ -4163,16 +4561,16 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
4163
4561
  priority?: "low" | "medium" | "high" | undefined;
4164
4562
  }>>;
4165
4563
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4166
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
4564
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
4167
4565
  kind: z.ZodString;
4168
4566
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4169
4567
  }, "strip", z.ZodTypeAny, {
4170
4568
  kind: string;
4171
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4569
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4172
4570
  payload: Record<string, unknown>;
4173
4571
  }, {
4174
4572
  kind: string;
4175
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
4573
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4176
4574
  payload: Record<string, unknown>;
4177
4575
  }>, "many">>;
4178
4576
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -4324,6 +4722,30 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4324
4722
  start: string;
4325
4723
  end: string;
4326
4724
  }>>;
4725
+ patient_sex_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
4726
+ patient_sex_not_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
4727
+ patient_age: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
4728
+ min: z.ZodOptional<z.ZodNumber>;
4729
+ max: z.ZodOptional<z.ZodNumber>;
4730
+ }, "strip", z.ZodTypeAny, {
4731
+ min?: number | undefined;
4732
+ max?: number | undefined;
4733
+ }, {
4734
+ min?: number | undefined;
4735
+ max?: number | undefined;
4736
+ }>, {
4737
+ min?: number | undefined;
4738
+ max?: number | undefined;
4739
+ }, {
4740
+ min?: number | undefined;
4741
+ max?: number | undefined;
4742
+ }>, {
4743
+ min?: number | undefined;
4744
+ max?: number | undefined;
4745
+ }, {
4746
+ min?: number | undefined;
4747
+ max?: number | undefined;
4748
+ }>>;
4327
4749
  }, "strip", z.ZodTypeAny, {
4328
4750
  date_window: {
4329
4751
  offset_days: number;
@@ -4354,6 +4776,12 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4354
4776
  start: string;
4355
4777
  end: string;
4356
4778
  } | undefined;
4779
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
4780
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
4781
+ patient_age?: {
4782
+ min?: number | undefined;
4783
+ max?: number | undefined;
4784
+ } | undefined;
4357
4785
  }, {
4358
4786
  date_window: {
4359
4787
  offset_days: number;
@@ -4384,6 +4812,12 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4384
4812
  start: string;
4385
4813
  end: string;
4386
4814
  } | undefined;
4815
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
4816
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
4817
+ patient_age?: {
4818
+ min?: number | undefined;
4819
+ max?: number | undefined;
4820
+ } | undefined;
4387
4821
  }>;
4388
4822
  }, "strip", z.ZodTypeAny, {
4389
4823
  appointment: {
@@ -4416,6 +4850,12 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4416
4850
  start: string;
4417
4851
  end: string;
4418
4852
  } | undefined;
4853
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
4854
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
4855
+ patient_age?: {
4856
+ min?: number | undefined;
4857
+ max?: number | undefined;
4858
+ } | undefined;
4419
4859
  };
4420
4860
  target: "appointment";
4421
4861
  }, {
@@ -4449,6 +4889,12 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4449
4889
  start: string;
4450
4890
  end: string;
4451
4891
  } | undefined;
4892
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
4893
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
4894
+ patient_age?: {
4895
+ min?: number | undefined;
4896
+ max?: number | undefined;
4897
+ } | undefined;
4452
4898
  };
4453
4899
  target: "appointment";
4454
4900
  }>, z.ZodObject<{
@@ -4491,27 +4937,94 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4491
4937
  status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4492
4938
  source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4493
4939
  tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4940
+ birthday: z.ZodOptional<z.ZodObject<{
4941
+ offset_days: z.ZodNumber;
4942
+ }, "strip", z.ZodTypeAny, {
4943
+ offset_days: number;
4944
+ }, {
4945
+ offset_days: number;
4946
+ }>>;
4947
+ patient_sex_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
4948
+ patient_sex_not_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
4949
+ patient_age: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
4950
+ min: z.ZodOptional<z.ZodNumber>;
4951
+ max: z.ZodOptional<z.ZodNumber>;
4952
+ }, "strip", z.ZodTypeAny, {
4953
+ min?: number | undefined;
4954
+ max?: number | undefined;
4955
+ }, {
4956
+ min?: number | undefined;
4957
+ max?: number | undefined;
4958
+ }>, {
4959
+ min?: number | undefined;
4960
+ max?: number | undefined;
4961
+ }, {
4962
+ min?: number | undefined;
4963
+ max?: number | undefined;
4964
+ }>, {
4965
+ min?: number | undefined;
4966
+ max?: number | undefined;
4967
+ }, {
4968
+ min?: number | undefined;
4969
+ max?: number | undefined;
4970
+ }>>;
4494
4971
  }, "strip", z.ZodTypeAny, {
4495
4972
  status_in?: string[] | undefined;
4973
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
4974
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
4975
+ patient_age?: {
4976
+ min?: number | undefined;
4977
+ max?: number | undefined;
4978
+ } | undefined;
4496
4979
  tag_names?: string[] | undefined;
4497
4980
  source_codes?: string[] | undefined;
4981
+ birthday?: {
4982
+ offset_days: number;
4983
+ } | undefined;
4498
4984
  }, {
4499
4985
  status_in?: string[] | undefined;
4986
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
4987
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
4988
+ patient_age?: {
4989
+ min?: number | undefined;
4990
+ max?: number | undefined;
4991
+ } | undefined;
4500
4992
  tag_names?: string[] | undefined;
4501
4993
  source_codes?: string[] | undefined;
4994
+ birthday?: {
4995
+ offset_days: number;
4996
+ } | undefined;
4502
4997
  }>;
4503
4998
  }, "strip", z.ZodTypeAny, {
4504
4999
  patient: {
4505
5000
  status_in?: string[] | undefined;
5001
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
5002
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
5003
+ patient_age?: {
5004
+ min?: number | undefined;
5005
+ max?: number | undefined;
5006
+ } | undefined;
4506
5007
  tag_names?: string[] | undefined;
4507
5008
  source_codes?: string[] | undefined;
5009
+ birthday?: {
5010
+ offset_days: number;
5011
+ } | undefined;
4508
5012
  };
4509
5013
  target: "patient";
4510
5014
  }, {
4511
5015
  patient: {
4512
5016
  status_in?: string[] | undefined;
5017
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
5018
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
5019
+ patient_age?: {
5020
+ min?: number | undefined;
5021
+ max?: number | undefined;
5022
+ } | undefined;
4513
5023
  tag_names?: string[] | undefined;
4514
5024
  source_codes?: string[] | undefined;
5025
+ birthday?: {
5026
+ offset_days: number;
5027
+ } | undefined;
4515
5028
  };
4516
5029
  target: "patient";
4517
5030
  }>]>;
@@ -4523,7 +5036,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4523
5036
  is_fallback: z.ZodOptional<z.ZodBoolean>;
4524
5037
  outputs: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
4525
5038
  type: z.ZodLiteral<"auto_task">;
4526
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5039
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
4527
5040
  kind: z.ZodString;
4528
5041
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4529
5042
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -4679,16 +5192,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4679
5192
  priority?: "low" | "medium" | "high" | undefined;
4680
5193
  }>>;
4681
5194
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4682
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5195
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
4683
5196
  kind: z.ZodString;
4684
5197
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4685
5198
  }, "strip", z.ZodTypeAny, {
4686
5199
  kind: string;
4687
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5200
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4688
5201
  payload: Record<string, unknown>;
4689
5202
  }, {
4690
5203
  kind: string;
4691
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5204
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4692
5205
  payload: Record<string, unknown>;
4693
5206
  }>, "many">>;
4694
5207
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -4749,16 +5262,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4749
5262
  priority?: "low" | "medium" | "high" | undefined;
4750
5263
  }>>;
4751
5264
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4752
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5265
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
4753
5266
  kind: z.ZodString;
4754
5267
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4755
5268
  }, "strip", z.ZodTypeAny, {
4756
5269
  kind: string;
4757
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5270
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4758
5271
  payload: Record<string, unknown>;
4759
5272
  }, {
4760
5273
  kind: string;
4761
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5274
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4762
5275
  payload: Record<string, unknown>;
4763
5276
  }>, "many">>;
4764
5277
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -4819,16 +5332,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4819
5332
  priority?: "low" | "medium" | "high" | undefined;
4820
5333
  }>>;
4821
5334
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4822
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5335
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
4823
5336
  kind: z.ZodString;
4824
5337
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4825
5338
  }, "strip", z.ZodTypeAny, {
4826
5339
  kind: string;
4827
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5340
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4828
5341
  payload: Record<string, unknown>;
4829
5342
  }, {
4830
5343
  kind: string;
4831
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5344
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4832
5345
  payload: Record<string, unknown>;
4833
5346
  }>, "many">>;
4834
5347
  }, z.ZodTypeAny, "passthrough">>>;
@@ -4845,7 +5358,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4845
5358
  rule: "relative_to_appointment";
4846
5359
  offset_minutes: number;
4847
5360
  };
4848
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5361
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4849
5362
  payload: Record<string, unknown>;
4850
5363
  retry?: z.objectOutputType<{
4851
5364
  max_attempts: z.ZodNumber;
@@ -4928,16 +5441,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4928
5441
  priority?: "low" | "medium" | "high" | undefined;
4929
5442
  }>>;
4930
5443
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
4931
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5444
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
4932
5445
  kind: z.ZodString;
4933
5446
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4934
5447
  }, "strip", z.ZodTypeAny, {
4935
5448
  kind: string;
4936
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5449
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4937
5450
  payload: Record<string, unknown>;
4938
5451
  }, {
4939
5452
  kind: string;
4940
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5453
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4941
5454
  payload: Record<string, unknown>;
4942
5455
  }>, "many">>;
4943
5456
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -4954,7 +5467,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4954
5467
  rule: "relative_to_appointment";
4955
5468
  offset_minutes: number;
4956
5469
  };
4957
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5470
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
4958
5471
  payload?: Record<string, unknown> | undefined;
4959
5472
  retry?: z.objectInputType<{
4960
5473
  max_attempts: z.ZodNumber;
@@ -5037,16 +5550,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5037
5550
  priority?: "low" | "medium" | "high" | undefined;
5038
5551
  }>>;
5039
5552
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5040
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5553
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
5041
5554
  kind: z.ZodString;
5042
5555
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5043
5556
  }, "strip", z.ZodTypeAny, {
5044
5557
  kind: string;
5045
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5558
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5046
5559
  payload: Record<string, unknown>;
5047
5560
  }, {
5048
5561
  kind: string;
5049
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5562
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5050
5563
  payload: Record<string, unknown>;
5051
5564
  }>, "many">>;
5052
5565
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5094,7 +5607,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5094
5607
  rule: "relative_to_appointment";
5095
5608
  offset_minutes: number;
5096
5609
  };
5097
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5610
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5098
5611
  payload: Record<string, unknown>;
5099
5612
  retry?: z.objectOutputType<{
5100
5613
  max_attempts: z.ZodNumber;
@@ -5177,16 +5690,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5177
5690
  priority?: "low" | "medium" | "high" | undefined;
5178
5691
  }>>;
5179
5692
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5180
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5693
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
5181
5694
  kind: z.ZodString;
5182
5695
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5183
5696
  }, "strip", z.ZodTypeAny, {
5184
5697
  kind: string;
5185
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5698
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5186
5699
  payload: Record<string, unknown>;
5187
5700
  }, {
5188
5701
  kind: string;
5189
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5702
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5190
5703
  payload: Record<string, unknown>;
5191
5704
  }>, "many">>;
5192
5705
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5218,7 +5731,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5218
5731
  rule: "relative_to_appointment";
5219
5732
  offset_minutes: number;
5220
5733
  };
5221
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5734
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5222
5735
  payload?: Record<string, unknown> | undefined;
5223
5736
  retry?: z.objectInputType<{
5224
5737
  max_attempts: z.ZodNumber;
@@ -5301,16 +5814,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5301
5814
  priority?: "low" | "medium" | "high" | undefined;
5302
5815
  }>>;
5303
5816
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5304
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
5817
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
5305
5818
  kind: z.ZodString;
5306
5819
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5307
5820
  }, "strip", z.ZodTypeAny, {
5308
5821
  kind: string;
5309
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5822
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5310
5823
  payload: Record<string, unknown>;
5311
5824
  }, {
5312
5825
  kind: string;
5313
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5826
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5314
5827
  payload: Record<string, unknown>;
5315
5828
  }>, "many">>;
5316
5829
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5368,6 +5881,12 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5368
5881
  start: string;
5369
5882
  end: string;
5370
5883
  } | undefined;
5884
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
5885
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
5886
+ patient_age?: {
5887
+ min?: number | undefined;
5888
+ max?: number | undefined;
5889
+ } | undefined;
5371
5890
  };
5372
5891
  target: "appointment";
5373
5892
  } | {
@@ -5381,8 +5900,17 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5381
5900
  } | {
5382
5901
  patient: {
5383
5902
  status_in?: string[] | undefined;
5903
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
5904
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
5905
+ patient_age?: {
5906
+ min?: number | undefined;
5907
+ max?: number | undefined;
5908
+ } | undefined;
5384
5909
  tag_names?: string[] | undefined;
5385
5910
  source_codes?: string[] | undefined;
5911
+ birthday?: {
5912
+ offset_days: number;
5913
+ } | undefined;
5386
5914
  };
5387
5915
  target: "patient";
5388
5916
  };
@@ -5420,7 +5948,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5420
5948
  rule: "relative_to_appointment";
5421
5949
  offset_minutes: number;
5422
5950
  };
5423
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
5951
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5424
5952
  payload: Record<string, unknown>;
5425
5953
  retry?: z.objectOutputType<{
5426
5954
  max_attempts: z.ZodNumber;
@@ -5503,16 +6031,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5503
6031
  priority?: "low" | "medium" | "high" | undefined;
5504
6032
  }>>;
5505
6033
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5506
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6034
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
5507
6035
  kind: z.ZodString;
5508
6036
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5509
6037
  }, "strip", z.ZodTypeAny, {
5510
6038
  kind: string;
5511
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6039
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5512
6040
  payload: Record<string, unknown>;
5513
6041
  }, {
5514
6042
  kind: string;
5515
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6043
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5516
6044
  payload: Record<string, unknown>;
5517
6045
  }>, "many">>;
5518
6046
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5567,6 +6095,12 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5567
6095
  start: string;
5568
6096
  end: string;
5569
6097
  } | undefined;
6098
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
6099
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
6100
+ patient_age?: {
6101
+ min?: number | undefined;
6102
+ max?: number | undefined;
6103
+ } | undefined;
5570
6104
  };
5571
6105
  target: "appointment";
5572
6106
  } | {
@@ -5580,8 +6114,17 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5580
6114
  } | {
5581
6115
  patient: {
5582
6116
  status_in?: string[] | undefined;
6117
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
6118
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
6119
+ patient_age?: {
6120
+ min?: number | undefined;
6121
+ max?: number | undefined;
6122
+ } | undefined;
5583
6123
  tag_names?: string[] | undefined;
5584
6124
  source_codes?: string[] | undefined;
6125
+ birthday?: {
6126
+ offset_days: number;
6127
+ } | undefined;
5585
6128
  };
5586
6129
  target: "patient";
5587
6130
  };
@@ -5618,7 +6161,7 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5618
6161
  rule: "relative_to_appointment";
5619
6162
  offset_minutes: number;
5620
6163
  };
5621
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6164
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5622
6165
  payload?: Record<string, unknown> | undefined;
5623
6166
  retry?: z.objectInputType<{
5624
6167
  max_attempts: z.ZodNumber;
@@ -5701,16 +6244,16 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
5701
6244
  priority?: "low" | "medium" | "high" | undefined;
5702
6245
  }>>;
5703
6246
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
5704
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6247
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
5705
6248
  kind: z.ZodString;
5706
6249
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
5707
6250
  }, "strip", z.ZodTypeAny, {
5708
6251
  kind: string;
5709
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6252
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5710
6253
  payload: Record<string, unknown>;
5711
6254
  }, {
5712
6255
  kind: string;
5713
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6256
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
5714
6257
  payload: Record<string, unknown>;
5715
6258
  }>, "many">>;
5716
6259
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -5849,6 +6392,30 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5849
6392
  start: string;
5850
6393
  end: string;
5851
6394
  }>>;
6395
+ patient_sex_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
6396
+ patient_sex_not_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
6397
+ patient_age: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
6398
+ min: z.ZodOptional<z.ZodNumber>;
6399
+ max: z.ZodOptional<z.ZodNumber>;
6400
+ }, "strip", z.ZodTypeAny, {
6401
+ min?: number | undefined;
6402
+ max?: number | undefined;
6403
+ }, {
6404
+ min?: number | undefined;
6405
+ max?: number | undefined;
6406
+ }>, {
6407
+ min?: number | undefined;
6408
+ max?: number | undefined;
6409
+ }, {
6410
+ min?: number | undefined;
6411
+ max?: number | undefined;
6412
+ }>, {
6413
+ min?: number | undefined;
6414
+ max?: number | undefined;
6415
+ }, {
6416
+ min?: number | undefined;
6417
+ max?: number | undefined;
6418
+ }>>;
5852
6419
  }, "strip", z.ZodTypeAny, {
5853
6420
  date_window: {
5854
6421
  offset_days: number;
@@ -5879,6 +6446,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5879
6446
  start: string;
5880
6447
  end: string;
5881
6448
  } | undefined;
6449
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
6450
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
6451
+ patient_age?: {
6452
+ min?: number | undefined;
6453
+ max?: number | undefined;
6454
+ } | undefined;
5882
6455
  }, {
5883
6456
  date_window: {
5884
6457
  offset_days: number;
@@ -5909,6 +6482,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5909
6482
  start: string;
5910
6483
  end: string;
5911
6484
  } | undefined;
6485
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
6486
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
6487
+ patient_age?: {
6488
+ min?: number | undefined;
6489
+ max?: number | undefined;
6490
+ } | undefined;
5912
6491
  }>;
5913
6492
  }, "strip", z.ZodTypeAny, {
5914
6493
  appointment: {
@@ -5941,6 +6520,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5941
6520
  start: string;
5942
6521
  end: string;
5943
6522
  } | undefined;
6523
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
6524
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
6525
+ patient_age?: {
6526
+ min?: number | undefined;
6527
+ max?: number | undefined;
6528
+ } | undefined;
5944
6529
  };
5945
6530
  target: "appointment";
5946
6531
  }, {
@@ -5974,6 +6559,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5974
6559
  start: string;
5975
6560
  end: string;
5976
6561
  } | undefined;
6562
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
6563
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
6564
+ patient_age?: {
6565
+ min?: number | undefined;
6566
+ max?: number | undefined;
6567
+ } | undefined;
5977
6568
  };
5978
6569
  target: "appointment";
5979
6570
  }>, z.ZodObject<{
@@ -6016,27 +6607,94 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6016
6607
  status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6017
6608
  source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6018
6609
  tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6610
+ birthday: z.ZodOptional<z.ZodObject<{
6611
+ offset_days: z.ZodNumber;
6612
+ }, "strip", z.ZodTypeAny, {
6613
+ offset_days: number;
6614
+ }, {
6615
+ offset_days: number;
6616
+ }>>;
6617
+ patient_sex_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
6618
+ patient_sex_not_in: z.ZodOptional<z.ZodArray<z.ZodEnum<["female", "male", "other"]>, "many">>;
6619
+ patient_age: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodObject<{
6620
+ min: z.ZodOptional<z.ZodNumber>;
6621
+ max: z.ZodOptional<z.ZodNumber>;
6622
+ }, "strip", z.ZodTypeAny, {
6623
+ min?: number | undefined;
6624
+ max?: number | undefined;
6625
+ }, {
6626
+ min?: number | undefined;
6627
+ max?: number | undefined;
6628
+ }>, {
6629
+ min?: number | undefined;
6630
+ max?: number | undefined;
6631
+ }, {
6632
+ min?: number | undefined;
6633
+ max?: number | undefined;
6634
+ }>, {
6635
+ min?: number | undefined;
6636
+ max?: number | undefined;
6637
+ }, {
6638
+ min?: number | undefined;
6639
+ max?: number | undefined;
6640
+ }>>;
6019
6641
  }, "strip", z.ZodTypeAny, {
6020
6642
  status_in?: string[] | undefined;
6643
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
6644
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
6645
+ patient_age?: {
6646
+ min?: number | undefined;
6647
+ max?: number | undefined;
6648
+ } | undefined;
6021
6649
  tag_names?: string[] | undefined;
6022
6650
  source_codes?: string[] | undefined;
6651
+ birthday?: {
6652
+ offset_days: number;
6653
+ } | undefined;
6023
6654
  }, {
6024
6655
  status_in?: string[] | undefined;
6656
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
6657
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
6658
+ patient_age?: {
6659
+ min?: number | undefined;
6660
+ max?: number | undefined;
6661
+ } | undefined;
6025
6662
  tag_names?: string[] | undefined;
6026
6663
  source_codes?: string[] | undefined;
6664
+ birthday?: {
6665
+ offset_days: number;
6666
+ } | undefined;
6027
6667
  }>;
6028
6668
  }, "strip", z.ZodTypeAny, {
6029
6669
  patient: {
6030
6670
  status_in?: string[] | undefined;
6671
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
6672
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
6673
+ patient_age?: {
6674
+ min?: number | undefined;
6675
+ max?: number | undefined;
6676
+ } | undefined;
6031
6677
  tag_names?: string[] | undefined;
6032
6678
  source_codes?: string[] | undefined;
6679
+ birthday?: {
6680
+ offset_days: number;
6681
+ } | undefined;
6033
6682
  };
6034
6683
  target: "patient";
6035
6684
  }, {
6036
6685
  patient: {
6037
6686
  status_in?: string[] | undefined;
6687
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
6688
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
6689
+ patient_age?: {
6690
+ min?: number | undefined;
6691
+ max?: number | undefined;
6692
+ } | undefined;
6038
6693
  tag_names?: string[] | undefined;
6039
6694
  source_codes?: string[] | undefined;
6695
+ birthday?: {
6696
+ offset_days: number;
6697
+ } | undefined;
6040
6698
  };
6041
6699
  target: "patient";
6042
6700
  }>]>;
@@ -6048,7 +6706,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6048
6706
  is_fallback: z.ZodOptional<z.ZodBoolean>;
6049
6707
  outputs: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6050
6708
  type: z.ZodLiteral<"auto_task">;
6051
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6709
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
6052
6710
  kind: z.ZodString;
6053
6711
  payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
6054
6712
  execute_at: z.ZodDiscriminatedUnion<"rule", [z.ZodObject<{
@@ -6204,16 +6862,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6204
6862
  priority?: "low" | "medium" | "high" | undefined;
6205
6863
  }>>;
6206
6864
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6207
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6865
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
6208
6866
  kind: z.ZodString;
6209
6867
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6210
6868
  }, "strip", z.ZodTypeAny, {
6211
6869
  kind: string;
6212
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6870
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6213
6871
  payload: Record<string, unknown>;
6214
6872
  }, {
6215
6873
  kind: string;
6216
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6874
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6217
6875
  payload: Record<string, unknown>;
6218
6876
  }>, "many">>;
6219
6877
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -6274,16 +6932,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6274
6932
  priority?: "low" | "medium" | "high" | undefined;
6275
6933
  }>>;
6276
6934
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6277
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
6935
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
6278
6936
  kind: z.ZodString;
6279
6937
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6280
6938
  }, "strip", z.ZodTypeAny, {
6281
6939
  kind: string;
6282
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6940
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6283
6941
  payload: Record<string, unknown>;
6284
6942
  }, {
6285
6943
  kind: string;
6286
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
6944
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6287
6945
  payload: Record<string, unknown>;
6288
6946
  }>, "many">>;
6289
6947
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -6344,16 +7002,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6344
7002
  priority?: "low" | "medium" | "high" | undefined;
6345
7003
  }>>;
6346
7004
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6347
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7005
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
6348
7006
  kind: z.ZodString;
6349
7007
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6350
7008
  }, "strip", z.ZodTypeAny, {
6351
7009
  kind: string;
6352
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7010
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6353
7011
  payload: Record<string, unknown>;
6354
7012
  }, {
6355
7013
  kind: string;
6356
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7014
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6357
7015
  payload: Record<string, unknown>;
6358
7016
  }>, "many">>;
6359
7017
  }, z.ZodTypeAny, "passthrough">>>;
@@ -6370,7 +7028,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6370
7028
  rule: "relative_to_appointment";
6371
7029
  offset_minutes: number;
6372
7030
  };
6373
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7031
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6374
7032
  payload: Record<string, unknown>;
6375
7033
  retry?: z.objectOutputType<{
6376
7034
  max_attempts: z.ZodNumber;
@@ -6453,16 +7111,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6453
7111
  priority?: "low" | "medium" | "high" | undefined;
6454
7112
  }>>;
6455
7113
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6456
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7114
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
6457
7115
  kind: z.ZodString;
6458
7116
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6459
7117
  }, "strip", z.ZodTypeAny, {
6460
7118
  kind: string;
6461
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7119
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6462
7120
  payload: Record<string, unknown>;
6463
7121
  }, {
6464
7122
  kind: string;
6465
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7123
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6466
7124
  payload: Record<string, unknown>;
6467
7125
  }>, "many">>;
6468
7126
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6479,7 +7137,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6479
7137
  rule: "relative_to_appointment";
6480
7138
  offset_minutes: number;
6481
7139
  };
6482
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7140
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6483
7141
  payload?: Record<string, unknown> | undefined;
6484
7142
  retry?: z.objectInputType<{
6485
7143
  max_attempts: z.ZodNumber;
@@ -6562,16 +7220,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6562
7220
  priority?: "low" | "medium" | "high" | undefined;
6563
7221
  }>>;
6564
7222
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6565
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7223
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
6566
7224
  kind: z.ZodString;
6567
7225
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6568
7226
  }, "strip", z.ZodTypeAny, {
6569
7227
  kind: string;
6570
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7228
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6571
7229
  payload: Record<string, unknown>;
6572
7230
  }, {
6573
7231
  kind: string;
6574
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7232
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6575
7233
  payload: Record<string, unknown>;
6576
7234
  }>, "many">>;
6577
7235
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6619,7 +7277,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6619
7277
  rule: "relative_to_appointment";
6620
7278
  offset_minutes: number;
6621
7279
  };
6622
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7280
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6623
7281
  payload: Record<string, unknown>;
6624
7282
  retry?: z.objectOutputType<{
6625
7283
  max_attempts: z.ZodNumber;
@@ -6702,16 +7360,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6702
7360
  priority?: "low" | "medium" | "high" | undefined;
6703
7361
  }>>;
6704
7362
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6705
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7363
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
6706
7364
  kind: z.ZodString;
6707
7365
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6708
7366
  }, "strip", z.ZodTypeAny, {
6709
7367
  kind: string;
6710
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7368
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6711
7369
  payload: Record<string, unknown>;
6712
7370
  }, {
6713
7371
  kind: string;
6714
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7372
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6715
7373
  payload: Record<string, unknown>;
6716
7374
  }>, "many">>;
6717
7375
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6743,7 +7401,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6743
7401
  rule: "relative_to_appointment";
6744
7402
  offset_minutes: number;
6745
7403
  };
6746
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7404
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6747
7405
  payload?: Record<string, unknown> | undefined;
6748
7406
  retry?: z.objectInputType<{
6749
7407
  max_attempts: z.ZodNumber;
@@ -6826,16 +7484,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6826
7484
  priority?: "low" | "medium" | "high" | undefined;
6827
7485
  }>>;
6828
7486
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
6829
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7487
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
6830
7488
  kind: z.ZodString;
6831
7489
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6832
7490
  }, "strip", z.ZodTypeAny, {
6833
7491
  kind: string;
6834
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7492
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6835
7493
  payload: Record<string, unknown>;
6836
7494
  }, {
6837
7495
  kind: string;
6838
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7496
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6839
7497
  payload: Record<string, unknown>;
6840
7498
  }>, "many">>;
6841
7499
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -6893,6 +7551,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6893
7551
  start: string;
6894
7552
  end: string;
6895
7553
  } | undefined;
7554
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
7555
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
7556
+ patient_age?: {
7557
+ min?: number | undefined;
7558
+ max?: number | undefined;
7559
+ } | undefined;
6896
7560
  };
6897
7561
  target: "appointment";
6898
7562
  } | {
@@ -6906,8 +7570,17 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6906
7570
  } | {
6907
7571
  patient: {
6908
7572
  status_in?: string[] | undefined;
7573
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
7574
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
7575
+ patient_age?: {
7576
+ min?: number | undefined;
7577
+ max?: number | undefined;
7578
+ } | undefined;
6909
7579
  tag_names?: string[] | undefined;
6910
7580
  source_codes?: string[] | undefined;
7581
+ birthday?: {
7582
+ offset_days: number;
7583
+ } | undefined;
6911
7584
  };
6912
7585
  target: "patient";
6913
7586
  };
@@ -6945,7 +7618,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6945
7618
  rule: "relative_to_appointment";
6946
7619
  offset_minutes: number;
6947
7620
  };
6948
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7621
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
6949
7622
  payload: Record<string, unknown>;
6950
7623
  retry?: z.objectOutputType<{
6951
7624
  max_attempts: z.ZodNumber;
@@ -7028,16 +7701,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7028
7701
  priority?: "low" | "medium" | "high" | undefined;
7029
7702
  }>>;
7030
7703
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
7031
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7704
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
7032
7705
  kind: z.ZodString;
7033
7706
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7034
7707
  }, "strip", z.ZodTypeAny, {
7035
7708
  kind: string;
7036
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7709
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7037
7710
  payload: Record<string, unknown>;
7038
7711
  }, {
7039
7712
  kind: string;
7040
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7713
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7041
7714
  payload: Record<string, unknown>;
7042
7715
  }>, "many">>;
7043
7716
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7092,6 +7765,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7092
7765
  start: string;
7093
7766
  end: string;
7094
7767
  } | undefined;
7768
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
7769
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
7770
+ patient_age?: {
7771
+ min?: number | undefined;
7772
+ max?: number | undefined;
7773
+ } | undefined;
7095
7774
  };
7096
7775
  target: "appointment";
7097
7776
  } | {
@@ -7105,8 +7784,17 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7105
7784
  } | {
7106
7785
  patient: {
7107
7786
  status_in?: string[] | undefined;
7787
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
7788
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
7789
+ patient_age?: {
7790
+ min?: number | undefined;
7791
+ max?: number | undefined;
7792
+ } | undefined;
7108
7793
  tag_names?: string[] | undefined;
7109
7794
  source_codes?: string[] | undefined;
7795
+ birthday?: {
7796
+ offset_days: number;
7797
+ } | undefined;
7110
7798
  };
7111
7799
  target: "patient";
7112
7800
  };
@@ -7143,7 +7831,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7143
7831
  rule: "relative_to_appointment";
7144
7832
  offset_minutes: number;
7145
7833
  };
7146
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7834
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7147
7835
  payload?: Record<string, unknown> | undefined;
7148
7836
  retry?: z.objectInputType<{
7149
7837
  max_attempts: z.ZodNumber;
@@ -7226,16 +7914,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7226
7914
  priority?: "low" | "medium" | "high" | undefined;
7227
7915
  }>>;
7228
7916
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
7229
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
7917
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
7230
7918
  kind: z.ZodString;
7231
7919
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7232
7920
  }, "strip", z.ZodTypeAny, {
7233
7921
  kind: string;
7234
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7922
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7235
7923
  payload: Record<string, unknown>;
7236
7924
  }, {
7237
7925
  kind: string;
7238
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
7926
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7239
7927
  payload: Record<string, unknown>;
7240
7928
  }>, "many">>;
7241
7929
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7294,6 +7982,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7294
7982
  start: string;
7295
7983
  end: string;
7296
7984
  } | undefined;
7985
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
7986
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
7987
+ patient_age?: {
7988
+ min?: number | undefined;
7989
+ max?: number | undefined;
7990
+ } | undefined;
7297
7991
  };
7298
7992
  target: "appointment";
7299
7993
  } | {
@@ -7307,8 +8001,17 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7307
8001
  } | {
7308
8002
  patient: {
7309
8003
  status_in?: string[] | undefined;
8004
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
8005
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
8006
+ patient_age?: {
8007
+ min?: number | undefined;
8008
+ max?: number | undefined;
8009
+ } | undefined;
7310
8010
  tag_names?: string[] | undefined;
7311
8011
  source_codes?: string[] | undefined;
8012
+ birthday?: {
8013
+ offset_days: number;
8014
+ } | undefined;
7312
8015
  };
7313
8016
  target: "patient";
7314
8017
  };
@@ -7346,7 +8049,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7346
8049
  rule: "relative_to_appointment";
7347
8050
  offset_minutes: number;
7348
8051
  };
7349
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
8052
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7350
8053
  payload: Record<string, unknown>;
7351
8054
  retry?: z.objectOutputType<{
7352
8055
  max_attempts: z.ZodNumber;
@@ -7429,16 +8132,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7429
8132
  priority?: "low" | "medium" | "high" | undefined;
7430
8133
  }>>;
7431
8134
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
7432
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
8135
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
7433
8136
  kind: z.ZodString;
7434
8137
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7435
8138
  }, "strip", z.ZodTypeAny, {
7436
8139
  kind: string;
7437
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
8140
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7438
8141
  payload: Record<string, unknown>;
7439
8142
  }, {
7440
8143
  kind: string;
7441
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
8144
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7442
8145
  payload: Record<string, unknown>;
7443
8146
  }>, "many">>;
7444
8147
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7496,6 +8199,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7496
8199
  start: string;
7497
8200
  end: string;
7498
8201
  } | undefined;
8202
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
8203
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
8204
+ patient_age?: {
8205
+ min?: number | undefined;
8206
+ max?: number | undefined;
8207
+ } | undefined;
7499
8208
  };
7500
8209
  target: "appointment";
7501
8210
  } | {
@@ -7509,8 +8218,17 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7509
8218
  } | {
7510
8219
  patient: {
7511
8220
  status_in?: string[] | undefined;
8221
+ patient_sex_in?: ("other" | "female" | "male")[] | undefined;
8222
+ patient_sex_not_in?: ("other" | "female" | "male")[] | undefined;
8223
+ patient_age?: {
8224
+ min?: number | undefined;
8225
+ max?: number | undefined;
8226
+ } | undefined;
7512
8227
  tag_names?: string[] | undefined;
7513
8228
  source_codes?: string[] | undefined;
8229
+ birthday?: {
8230
+ offset_days: number;
8231
+ } | undefined;
7514
8232
  };
7515
8233
  target: "patient";
7516
8234
  };
@@ -7547,7 +8265,7 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7547
8265
  rule: "relative_to_appointment";
7548
8266
  offset_minutes: number;
7549
8267
  };
7550
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
8268
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7551
8269
  payload?: Record<string, unknown> | undefined;
7552
8270
  retry?: z.objectInputType<{
7553
8271
  max_attempts: z.ZodNumber;
@@ -7630,16 +8348,16 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
7630
8348
  priority?: "low" | "medium" | "high" | undefined;
7631
8349
  }>>;
7632
8350
  auto_fallbacks: z.ZodOptional<z.ZodArray<z.ZodObject<{
7633
- handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done"]>;
8351
+ handler: z.ZodEnum<["notifications", "ai_agent", "invoices", "webhook", "custom", "lead_reactivation", "appointment_action", "appointment_reminder", "appointment_confirmation", "appointment_post_consultation", "evo-integrations.sync-run", "lead_form_capture", "campaign.materialize", "campaign.dispatch_batch", "telemedicine_join_reminder", "appointment_invoice", "appointment_created", "appointment_rescheduled", "appointment_cancelled", "appointment_payment", "appointment_payment_done", "patient_birthday_message"]>;
7634
8352
  kind: z.ZodString;
7635
8353
  payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7636
8354
  }, "strip", z.ZodTypeAny, {
7637
8355
  kind: string;
7638
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
8356
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7639
8357
  payload: Record<string, unknown>;
7640
8358
  }, {
7641
8359
  kind: string;
7642
- handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done";
8360
+ handler: "custom" | "evo-integrations.sync-run" | "notifications" | "ai_agent" | "invoices" | "webhook" | "lead_reactivation" | "appointment_action" | "appointment_reminder" | "appointment_confirmation" | "appointment_post_consultation" | "lead_form_capture" | "campaign.materialize" | "campaign.dispatch_batch" | "telemedicine_join_reminder" | "appointment_invoice" | "appointment_created" | "appointment_rescheduled" | "appointment_cancelled" | "appointment_payment" | "appointment_payment_done" | "patient_birthday_message";
7643
8361
  payload: Record<string, unknown>;
7644
8362
  }>, "many">>;
7645
8363
  }, z.ZodTypeAny, "passthrough"> | undefined;
@@ -7709,4 +8427,55 @@ export declare const zAutomationTriggerRequestSchema: z.ZodObject<{
7709
8427
  run_date?: string | undefined;
7710
8428
  force?: boolean | undefined;
7711
8429
  }>;
8430
+ export declare const zGeneratedMessageChannelSchema: z.ZodEnum<["whatsapp", "email"]>;
8431
+ export declare const zPatientBirthdayMessagePayloadSchema: z.ZodObject<{
8432
+ patient_id: z.ZodString;
8433
+ channels: z.ZodOptional<z.ZodArray<z.ZodEnum<["whatsapp", "email"]>, "many">>;
8434
+ whatsapp_channel_id: z.ZodOptional<z.ZodString>;
8435
+ whatsapp_template_id: z.ZodOptional<z.ZodString>;
8436
+ email_channel_id: z.ZodOptional<z.ZodString>;
8437
+ email_template_id: z.ZodOptional<z.ZodString>;
8438
+ department_id: z.ZodOptional<z.ZodString>;
8439
+ prompt: z.ZodOptional<z.ZodString>;
8440
+ birthday_date: z.ZodOptional<z.ZodString>;
8441
+ force_send: z.ZodOptional<z.ZodBoolean>;
8442
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
8443
+ patient_id: z.ZodString;
8444
+ channels: z.ZodOptional<z.ZodArray<z.ZodEnum<["whatsapp", "email"]>, "many">>;
8445
+ whatsapp_channel_id: z.ZodOptional<z.ZodString>;
8446
+ whatsapp_template_id: z.ZodOptional<z.ZodString>;
8447
+ email_channel_id: z.ZodOptional<z.ZodString>;
8448
+ email_template_id: z.ZodOptional<z.ZodString>;
8449
+ department_id: z.ZodOptional<z.ZodString>;
8450
+ prompt: z.ZodOptional<z.ZodString>;
8451
+ birthday_date: z.ZodOptional<z.ZodString>;
8452
+ force_send: z.ZodOptional<z.ZodBoolean>;
8453
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
8454
+ patient_id: z.ZodString;
8455
+ channels: z.ZodOptional<z.ZodArray<z.ZodEnum<["whatsapp", "email"]>, "many">>;
8456
+ whatsapp_channel_id: z.ZodOptional<z.ZodString>;
8457
+ whatsapp_template_id: z.ZodOptional<z.ZodString>;
8458
+ email_channel_id: z.ZodOptional<z.ZodString>;
8459
+ email_template_id: z.ZodOptional<z.ZodString>;
8460
+ department_id: z.ZodOptional<z.ZodString>;
8461
+ prompt: z.ZodOptional<z.ZodString>;
8462
+ birthday_date: z.ZodOptional<z.ZodString>;
8463
+ force_send: z.ZodOptional<z.ZodBoolean>;
8464
+ }, z.ZodTypeAny, "passthrough">>;
8465
+ export declare const zMessagePreviewRequestSchema: z.ZodObject<{
8466
+ patient_id: z.ZodString;
8467
+ prompt: z.ZodString;
8468
+ channel: z.ZodEnum<["whatsapp", "email"]>;
8469
+ birthday_date: z.ZodOptional<z.ZodString>;
8470
+ }, "strip", z.ZodTypeAny, {
8471
+ channel: "email" | "whatsapp";
8472
+ patient_id: string;
8473
+ prompt: string;
8474
+ birthday_date?: string | undefined;
8475
+ }, {
8476
+ channel: "email" | "whatsapp";
8477
+ patient_id: string;
8478
+ prompt: string;
8479
+ birthday_date?: string | undefined;
8480
+ }>;
7712
8481
  export {};