evo360-types 1.3.417 → 1.3.423

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.
@@ -31,6 +31,31 @@ export declare const zAutomationWebhookTriggerSchema: z.ZodObject<{
31
31
  }, {
32
32
  type: "webhook";
33
33
  }>;
34
+ export declare const zAutomationEventTriggerSchema: z.ZodObject<{
35
+ type: z.ZodLiteral<"event">;
36
+ event: z.ZodObject<{
37
+ types: z.ZodArray<z.ZodString, "many">;
38
+ actor_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "system", "automation"]>, "many">>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ types: string[];
41
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
42
+ }, {
43
+ types: string[];
44
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
45
+ }>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: "event";
48
+ event: {
49
+ types: string[];
50
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
51
+ };
52
+ }, {
53
+ type: "event";
54
+ event: {
55
+ types: string[];
56
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
57
+ };
58
+ }>;
34
59
  export declare const zAutomationTriggerSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
35
60
  type: z.ZodLiteral<"cron">;
36
61
  cron: z.ZodObject<{
@@ -61,6 +86,30 @@ export declare const zAutomationTriggerSchema: z.ZodDiscriminatedUnion<"type", [
61
86
  type: "webhook";
62
87
  }, {
63
88
  type: "webhook";
89
+ }>, z.ZodObject<{
90
+ type: z.ZodLiteral<"event">;
91
+ event: z.ZodObject<{
92
+ types: z.ZodArray<z.ZodString, "many">;
93
+ actor_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "system", "automation"]>, "many">>;
94
+ }, "strip", z.ZodTypeAny, {
95
+ types: string[];
96
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
97
+ }, {
98
+ types: string[];
99
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
100
+ }>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ type: "event";
103
+ event: {
104
+ types: string[];
105
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
106
+ };
107
+ }, {
108
+ type: "event";
109
+ event: {
110
+ types: string[];
111
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
112
+ };
64
113
  }>]>;
65
114
  export declare const zAutomationDateOffsetModeSchema: z.ZodEnum<["calendar", "business"]>;
66
115
  export declare const zAutomationDateWindowSchema: z.ZodObject<{
@@ -159,7 +208,72 @@ export declare const zAutomationAppointmentSelectionSchema: z.ZodObject<{
159
208
  };
160
209
  target: "appointment";
161
210
  }>;
162
- export declare const zAutomationSelectionSchema: z.ZodObject<{
211
+ export declare const zAutomationLeadSelectionSchema: z.ZodObject<{
212
+ target: z.ZodLiteral<"lead">;
213
+ lead: z.ZodObject<{
214
+ status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
215
+ qualification_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
216
+ dist_channel_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
217
+ tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ status_in?: string[] | undefined;
220
+ qualification_codes?: string[] | undefined;
221
+ dist_channel_codes?: string[] | undefined;
222
+ tag_names?: string[] | undefined;
223
+ }, {
224
+ status_in?: string[] | undefined;
225
+ qualification_codes?: string[] | undefined;
226
+ dist_channel_codes?: string[] | undefined;
227
+ tag_names?: string[] | undefined;
228
+ }>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ target: "lead";
231
+ lead: {
232
+ status_in?: string[] | undefined;
233
+ qualification_codes?: string[] | undefined;
234
+ dist_channel_codes?: string[] | undefined;
235
+ tag_names?: string[] | undefined;
236
+ };
237
+ }, {
238
+ target: "lead";
239
+ lead: {
240
+ status_in?: string[] | undefined;
241
+ qualification_codes?: string[] | undefined;
242
+ dist_channel_codes?: string[] | undefined;
243
+ tag_names?: string[] | undefined;
244
+ };
245
+ }>;
246
+ export declare const zAutomationPatientSelectionSchema: z.ZodObject<{
247
+ target: z.ZodLiteral<"patient">;
248
+ patient: z.ZodObject<{
249
+ status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
250
+ source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
251
+ tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ status_in?: string[] | undefined;
254
+ tag_names?: string[] | undefined;
255
+ source_codes?: string[] | undefined;
256
+ }, {
257
+ status_in?: string[] | undefined;
258
+ tag_names?: string[] | undefined;
259
+ source_codes?: string[] | undefined;
260
+ }>;
261
+ }, "strip", z.ZodTypeAny, {
262
+ patient: {
263
+ status_in?: string[] | undefined;
264
+ tag_names?: string[] | undefined;
265
+ source_codes?: string[] | undefined;
266
+ };
267
+ target: "patient";
268
+ }, {
269
+ patient: {
270
+ status_in?: string[] | undefined;
271
+ tag_names?: string[] | undefined;
272
+ source_codes?: string[] | undefined;
273
+ };
274
+ target: "patient";
275
+ }>;
276
+ export declare const zAutomationSelectionSchema: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
163
277
  target: z.ZodLiteral<"appointment">;
164
278
  appointment: z.ZodObject<{
165
279
  calendar_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -244,7 +358,70 @@ export declare const zAutomationSelectionSchema: z.ZodObject<{
244
358
  payment_status_in?: string[] | undefined;
245
359
  };
246
360
  target: "appointment";
247
- }>;
361
+ }>, z.ZodObject<{
362
+ target: z.ZodLiteral<"lead">;
363
+ lead: z.ZodObject<{
364
+ status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
365
+ qualification_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
366
+ dist_channel_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
367
+ tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
368
+ }, "strip", z.ZodTypeAny, {
369
+ status_in?: string[] | undefined;
370
+ qualification_codes?: string[] | undefined;
371
+ dist_channel_codes?: string[] | undefined;
372
+ tag_names?: string[] | undefined;
373
+ }, {
374
+ status_in?: string[] | undefined;
375
+ qualification_codes?: string[] | undefined;
376
+ dist_channel_codes?: string[] | undefined;
377
+ tag_names?: string[] | undefined;
378
+ }>;
379
+ }, "strip", z.ZodTypeAny, {
380
+ target: "lead";
381
+ lead: {
382
+ status_in?: string[] | undefined;
383
+ qualification_codes?: string[] | undefined;
384
+ dist_channel_codes?: string[] | undefined;
385
+ tag_names?: string[] | undefined;
386
+ };
387
+ }, {
388
+ target: "lead";
389
+ lead: {
390
+ status_in?: string[] | undefined;
391
+ qualification_codes?: string[] | undefined;
392
+ dist_channel_codes?: string[] | undefined;
393
+ tag_names?: string[] | undefined;
394
+ };
395
+ }>, z.ZodObject<{
396
+ target: z.ZodLiteral<"patient">;
397
+ patient: z.ZodObject<{
398
+ status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
399
+ source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
400
+ tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ status_in?: string[] | undefined;
403
+ tag_names?: string[] | undefined;
404
+ source_codes?: string[] | undefined;
405
+ }, {
406
+ status_in?: string[] | undefined;
407
+ tag_names?: string[] | undefined;
408
+ source_codes?: string[] | undefined;
409
+ }>;
410
+ }, "strip", z.ZodTypeAny, {
411
+ patient: {
412
+ status_in?: string[] | undefined;
413
+ tag_names?: string[] | undefined;
414
+ source_codes?: string[] | undefined;
415
+ };
416
+ target: "patient";
417
+ }, {
418
+ patient: {
419
+ status_in?: string[] | undefined;
420
+ tag_names?: string[] | undefined;
421
+ source_codes?: string[] | undefined;
422
+ };
423
+ target: "patient";
424
+ }>]>;
248
425
  export declare const zAutomationOperatorSchema: z.ZodEnum<["eq", "neq", "in", "not_in", "exists", "not_exists", "is_true", "is_false"]>;
249
426
  export declare const zAutomationConditionSchema: z.ZodObject<{
250
427
  fact: z.ZodString;
@@ -2256,8 +2433,32 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2256
2433
  type: "webhook";
2257
2434
  }, {
2258
2435
  type: "webhook";
2436
+ }>, z.ZodObject<{
2437
+ type: z.ZodLiteral<"event">;
2438
+ event: z.ZodObject<{
2439
+ types: z.ZodArray<z.ZodString, "many">;
2440
+ actor_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "system", "automation"]>, "many">>;
2441
+ }, "strip", z.ZodTypeAny, {
2442
+ types: string[];
2443
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
2444
+ }, {
2445
+ types: string[];
2446
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
2447
+ }>;
2448
+ }, "strip", z.ZodTypeAny, {
2449
+ type: "event";
2450
+ event: {
2451
+ types: string[];
2452
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
2453
+ };
2454
+ }, {
2455
+ type: "event";
2456
+ event: {
2457
+ types: string[];
2458
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
2459
+ };
2259
2460
  }>]>;
2260
- selection: z.ZodObject<{
2461
+ selection: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
2261
2462
  target: z.ZodLiteral<"appointment">;
2262
2463
  appointment: z.ZodObject<{
2263
2464
  calendar_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -2342,7 +2543,70 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
2342
2543
  payment_status_in?: string[] | undefined;
2343
2544
  };
2344
2545
  target: "appointment";
2345
- }>;
2546
+ }>, z.ZodObject<{
2547
+ target: z.ZodLiteral<"lead">;
2548
+ lead: z.ZodObject<{
2549
+ status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2550
+ qualification_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2551
+ dist_channel_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2552
+ tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2553
+ }, "strip", z.ZodTypeAny, {
2554
+ status_in?: string[] | undefined;
2555
+ qualification_codes?: string[] | undefined;
2556
+ dist_channel_codes?: string[] | undefined;
2557
+ tag_names?: string[] | undefined;
2558
+ }, {
2559
+ status_in?: string[] | undefined;
2560
+ qualification_codes?: string[] | undefined;
2561
+ dist_channel_codes?: string[] | undefined;
2562
+ tag_names?: string[] | undefined;
2563
+ }>;
2564
+ }, "strip", z.ZodTypeAny, {
2565
+ target: "lead";
2566
+ lead: {
2567
+ status_in?: string[] | undefined;
2568
+ qualification_codes?: string[] | undefined;
2569
+ dist_channel_codes?: string[] | undefined;
2570
+ tag_names?: string[] | undefined;
2571
+ };
2572
+ }, {
2573
+ target: "lead";
2574
+ lead: {
2575
+ status_in?: string[] | undefined;
2576
+ qualification_codes?: string[] | undefined;
2577
+ dist_channel_codes?: string[] | undefined;
2578
+ tag_names?: string[] | undefined;
2579
+ };
2580
+ }>, z.ZodObject<{
2581
+ target: z.ZodLiteral<"patient">;
2582
+ patient: z.ZodObject<{
2583
+ status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2584
+ source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2585
+ tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2586
+ }, "strip", z.ZodTypeAny, {
2587
+ status_in?: string[] | undefined;
2588
+ tag_names?: string[] | undefined;
2589
+ source_codes?: string[] | undefined;
2590
+ }, {
2591
+ status_in?: string[] | undefined;
2592
+ tag_names?: string[] | undefined;
2593
+ source_codes?: string[] | undefined;
2594
+ }>;
2595
+ }, "strip", z.ZodTypeAny, {
2596
+ patient: {
2597
+ status_in?: string[] | undefined;
2598
+ tag_names?: string[] | undefined;
2599
+ source_codes?: string[] | undefined;
2600
+ };
2601
+ target: "patient";
2602
+ }, {
2603
+ patient: {
2604
+ status_in?: string[] | undefined;
2605
+ tag_names?: string[] | undefined;
2606
+ source_codes?: string[] | undefined;
2607
+ };
2608
+ target: "patient";
2609
+ }>]>;
2346
2610
  branch_mode: z.ZodEnum<["all", "exclusive"]>;
2347
2611
  branches: z.ZodArray<z.ZodObject<{
2348
2612
  id: z.ZodString;
@@ -3212,6 +3476,12 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3212
3476
  };
3213
3477
  } | {
3214
3478
  type: "webhook";
3479
+ } | {
3480
+ type: "event";
3481
+ event: {
3482
+ types: string[];
3483
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
3484
+ };
3215
3485
  };
3216
3486
  selection: {
3217
3487
  appointment: {
@@ -3230,6 +3500,21 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3230
3500
  payment_status_in?: string[] | undefined;
3231
3501
  };
3232
3502
  target: "appointment";
3503
+ } | {
3504
+ target: "lead";
3505
+ lead: {
3506
+ status_in?: string[] | undefined;
3507
+ qualification_codes?: string[] | undefined;
3508
+ dist_channel_codes?: string[] | undefined;
3509
+ tag_names?: string[] | undefined;
3510
+ };
3511
+ } | {
3512
+ patient: {
3513
+ status_in?: string[] | undefined;
3514
+ tag_names?: string[] | undefined;
3515
+ source_codes?: string[] | undefined;
3516
+ };
3517
+ target: "patient";
3233
3518
  };
3234
3519
  branch_mode: "all" | "exclusive";
3235
3520
  branches: {
@@ -3387,6 +3672,12 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3387
3672
  };
3388
3673
  } | {
3389
3674
  type: "webhook";
3675
+ } | {
3676
+ type: "event";
3677
+ event: {
3678
+ types: string[];
3679
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
3680
+ };
3390
3681
  };
3391
3682
  selection: {
3392
3683
  appointment: {
@@ -3405,6 +3696,21 @@ export declare const zAutomationRoutineSchema: z.ZodObject<{
3405
3696
  payment_status_in?: string[] | undefined;
3406
3697
  };
3407
3698
  target: "appointment";
3699
+ } | {
3700
+ target: "lead";
3701
+ lead: {
3702
+ status_in?: string[] | undefined;
3703
+ qualification_codes?: string[] | undefined;
3704
+ dist_channel_codes?: string[] | undefined;
3705
+ tag_names?: string[] | undefined;
3706
+ };
3707
+ } | {
3708
+ patient: {
3709
+ status_in?: string[] | undefined;
3710
+ tag_names?: string[] | undefined;
3711
+ source_codes?: string[] | undefined;
3712
+ };
3713
+ target: "patient";
3408
3714
  };
3409
3715
  branch_mode: "all" | "exclusive";
3410
3716
  branches: {
@@ -3587,8 +3893,32 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
3587
3893
  type: "webhook";
3588
3894
  }, {
3589
3895
  type: "webhook";
3896
+ }>, z.ZodObject<{
3897
+ type: z.ZodLiteral<"event">;
3898
+ event: z.ZodObject<{
3899
+ types: z.ZodArray<z.ZodString, "many">;
3900
+ actor_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "system", "automation"]>, "many">>;
3901
+ }, "strip", z.ZodTypeAny, {
3902
+ types: string[];
3903
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
3904
+ }, {
3905
+ types: string[];
3906
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
3907
+ }>;
3908
+ }, "strip", z.ZodTypeAny, {
3909
+ type: "event";
3910
+ event: {
3911
+ types: string[];
3912
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
3913
+ };
3914
+ }, {
3915
+ type: "event";
3916
+ event: {
3917
+ types: string[];
3918
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
3919
+ };
3590
3920
  }>]>;
3591
- selection: z.ZodObject<{
3921
+ selection: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
3592
3922
  target: z.ZodLiteral<"appointment">;
3593
3923
  appointment: z.ZodObject<{
3594
3924
  calendar_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3673,7 +4003,70 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
3673
4003
  payment_status_in?: string[] | undefined;
3674
4004
  };
3675
4005
  target: "appointment";
3676
- }>;
4006
+ }>, z.ZodObject<{
4007
+ target: z.ZodLiteral<"lead">;
4008
+ lead: z.ZodObject<{
4009
+ status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4010
+ qualification_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4011
+ dist_channel_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4012
+ tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4013
+ }, "strip", z.ZodTypeAny, {
4014
+ status_in?: string[] | undefined;
4015
+ qualification_codes?: string[] | undefined;
4016
+ dist_channel_codes?: string[] | undefined;
4017
+ tag_names?: string[] | undefined;
4018
+ }, {
4019
+ status_in?: string[] | undefined;
4020
+ qualification_codes?: string[] | undefined;
4021
+ dist_channel_codes?: string[] | undefined;
4022
+ tag_names?: string[] | undefined;
4023
+ }>;
4024
+ }, "strip", z.ZodTypeAny, {
4025
+ target: "lead";
4026
+ lead: {
4027
+ status_in?: string[] | undefined;
4028
+ qualification_codes?: string[] | undefined;
4029
+ dist_channel_codes?: string[] | undefined;
4030
+ tag_names?: string[] | undefined;
4031
+ };
4032
+ }, {
4033
+ target: "lead";
4034
+ lead: {
4035
+ status_in?: string[] | undefined;
4036
+ qualification_codes?: string[] | undefined;
4037
+ dist_channel_codes?: string[] | undefined;
4038
+ tag_names?: string[] | undefined;
4039
+ };
4040
+ }>, z.ZodObject<{
4041
+ target: z.ZodLiteral<"patient">;
4042
+ patient: z.ZodObject<{
4043
+ status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4044
+ source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4045
+ tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
4046
+ }, "strip", z.ZodTypeAny, {
4047
+ status_in?: string[] | undefined;
4048
+ tag_names?: string[] | undefined;
4049
+ source_codes?: string[] | undefined;
4050
+ }, {
4051
+ status_in?: string[] | undefined;
4052
+ tag_names?: string[] | undefined;
4053
+ source_codes?: string[] | undefined;
4054
+ }>;
4055
+ }, "strip", z.ZodTypeAny, {
4056
+ patient: {
4057
+ status_in?: string[] | undefined;
4058
+ tag_names?: string[] | undefined;
4059
+ source_codes?: string[] | undefined;
4060
+ };
4061
+ target: "patient";
4062
+ }, {
4063
+ patient: {
4064
+ status_in?: string[] | undefined;
4065
+ tag_names?: string[] | undefined;
4066
+ source_codes?: string[] | undefined;
4067
+ };
4068
+ target: "patient";
4069
+ }>]>;
3677
4070
  branch_mode: z.ZodEnum<["all", "exclusive"]>;
3678
4071
  branches: z.ZodArray<z.ZodObject<{
3679
4072
  id: z.ZodString;
@@ -4505,6 +4898,12 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4505
4898
  };
4506
4899
  } | {
4507
4900
  type: "webhook";
4901
+ } | {
4902
+ type: "event";
4903
+ event: {
4904
+ types: string[];
4905
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
4906
+ };
4508
4907
  };
4509
4908
  selection: {
4510
4909
  appointment: {
@@ -4523,6 +4922,21 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4523
4922
  payment_status_in?: string[] | undefined;
4524
4923
  };
4525
4924
  target: "appointment";
4925
+ } | {
4926
+ target: "lead";
4927
+ lead: {
4928
+ status_in?: string[] | undefined;
4929
+ qualification_codes?: string[] | undefined;
4930
+ dist_channel_codes?: string[] | undefined;
4931
+ tag_names?: string[] | undefined;
4932
+ };
4933
+ } | {
4934
+ patient: {
4935
+ status_in?: string[] | undefined;
4936
+ tag_names?: string[] | undefined;
4937
+ source_codes?: string[] | undefined;
4938
+ };
4939
+ target: "patient";
4526
4940
  };
4527
4941
  branch_mode: "all" | "exclusive";
4528
4942
  branches: {
@@ -4665,6 +5079,12 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4665
5079
  };
4666
5080
  } | {
4667
5081
  type: "webhook";
5082
+ } | {
5083
+ type: "event";
5084
+ event: {
5085
+ types: string[];
5086
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5087
+ };
4668
5088
  };
4669
5089
  selection: {
4670
5090
  appointment: {
@@ -4683,6 +5103,21 @@ export declare const zAutomationRoutineWriteSchema: z.ZodObject<{
4683
5103
  payment_status_in?: string[] | undefined;
4684
5104
  };
4685
5105
  target: "appointment";
5106
+ } | {
5107
+ target: "lead";
5108
+ lead: {
5109
+ status_in?: string[] | undefined;
5110
+ qualification_codes?: string[] | undefined;
5111
+ dist_channel_codes?: string[] | undefined;
5112
+ tag_names?: string[] | undefined;
5113
+ };
5114
+ } | {
5115
+ patient: {
5116
+ status_in?: string[] | undefined;
5117
+ tag_names?: string[] | undefined;
5118
+ source_codes?: string[] | undefined;
5119
+ };
5120
+ target: "patient";
4686
5121
  };
4687
5122
  branch_mode: "all" | "exclusive";
4688
5123
  branches: {
@@ -4852,8 +5287,32 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
4852
5287
  type: "webhook";
4853
5288
  }, {
4854
5289
  type: "webhook";
5290
+ }>, z.ZodObject<{
5291
+ type: z.ZodLiteral<"event">;
5292
+ event: z.ZodObject<{
5293
+ types: z.ZodArray<z.ZodString, "many">;
5294
+ actor_kinds: z.ZodOptional<z.ZodArray<z.ZodEnum<["user", "system", "automation"]>, "many">>;
5295
+ }, "strip", z.ZodTypeAny, {
5296
+ types: string[];
5297
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5298
+ }, {
5299
+ types: string[];
5300
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5301
+ }>;
5302
+ }, "strip", z.ZodTypeAny, {
5303
+ type: "event";
5304
+ event: {
5305
+ types: string[];
5306
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5307
+ };
5308
+ }, {
5309
+ type: "event";
5310
+ event: {
5311
+ types: string[];
5312
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
5313
+ };
4855
5314
  }>]>;
4856
- selection: z.ZodObject<{
5315
+ selection: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
4857
5316
  target: z.ZodLiteral<"appointment">;
4858
5317
  appointment: z.ZodObject<{
4859
5318
  calendar_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -4938,7 +5397,70 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
4938
5397
  payment_status_in?: string[] | undefined;
4939
5398
  };
4940
5399
  target: "appointment";
4941
- }>;
5400
+ }>, z.ZodObject<{
5401
+ target: z.ZodLiteral<"lead">;
5402
+ lead: z.ZodObject<{
5403
+ status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5404
+ qualification_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5405
+ dist_channel_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5406
+ tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5407
+ }, "strip", z.ZodTypeAny, {
5408
+ status_in?: string[] | undefined;
5409
+ qualification_codes?: string[] | undefined;
5410
+ dist_channel_codes?: string[] | undefined;
5411
+ tag_names?: string[] | undefined;
5412
+ }, {
5413
+ status_in?: string[] | undefined;
5414
+ qualification_codes?: string[] | undefined;
5415
+ dist_channel_codes?: string[] | undefined;
5416
+ tag_names?: string[] | undefined;
5417
+ }>;
5418
+ }, "strip", z.ZodTypeAny, {
5419
+ target: "lead";
5420
+ lead: {
5421
+ status_in?: string[] | undefined;
5422
+ qualification_codes?: string[] | undefined;
5423
+ dist_channel_codes?: string[] | undefined;
5424
+ tag_names?: string[] | undefined;
5425
+ };
5426
+ }, {
5427
+ target: "lead";
5428
+ lead: {
5429
+ status_in?: string[] | undefined;
5430
+ qualification_codes?: string[] | undefined;
5431
+ dist_channel_codes?: string[] | undefined;
5432
+ tag_names?: string[] | undefined;
5433
+ };
5434
+ }>, z.ZodObject<{
5435
+ target: z.ZodLiteral<"patient">;
5436
+ patient: z.ZodObject<{
5437
+ status_in: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5438
+ source_codes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5439
+ tag_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5440
+ }, "strip", z.ZodTypeAny, {
5441
+ status_in?: string[] | undefined;
5442
+ tag_names?: string[] | undefined;
5443
+ source_codes?: string[] | undefined;
5444
+ }, {
5445
+ status_in?: string[] | undefined;
5446
+ tag_names?: string[] | undefined;
5447
+ source_codes?: string[] | undefined;
5448
+ }>;
5449
+ }, "strip", z.ZodTypeAny, {
5450
+ patient: {
5451
+ status_in?: string[] | undefined;
5452
+ tag_names?: string[] | undefined;
5453
+ source_codes?: string[] | undefined;
5454
+ };
5455
+ target: "patient";
5456
+ }, {
5457
+ patient: {
5458
+ status_in?: string[] | undefined;
5459
+ tag_names?: string[] | undefined;
5460
+ source_codes?: string[] | undefined;
5461
+ };
5462
+ target: "patient";
5463
+ }>]>;
4942
5464
  branch_mode: z.ZodEnum<["all", "exclusive"]>;
4943
5465
  branches: z.ZodArray<z.ZodObject<{
4944
5466
  id: z.ZodString;
@@ -5770,6 +6292,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5770
6292
  };
5771
6293
  } | {
5772
6294
  type: "webhook";
6295
+ } | {
6296
+ type: "event";
6297
+ event: {
6298
+ types: string[];
6299
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
6300
+ };
5773
6301
  };
5774
6302
  selection: {
5775
6303
  appointment: {
@@ -5788,6 +6316,21 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5788
6316
  payment_status_in?: string[] | undefined;
5789
6317
  };
5790
6318
  target: "appointment";
6319
+ } | {
6320
+ target: "lead";
6321
+ lead: {
6322
+ status_in?: string[] | undefined;
6323
+ qualification_codes?: string[] | undefined;
6324
+ dist_channel_codes?: string[] | undefined;
6325
+ tag_names?: string[] | undefined;
6326
+ };
6327
+ } | {
6328
+ patient: {
6329
+ status_in?: string[] | undefined;
6330
+ tag_names?: string[] | undefined;
6331
+ source_codes?: string[] | undefined;
6332
+ };
6333
+ target: "patient";
5791
6334
  };
5792
6335
  branch_mode: "all" | "exclusive";
5793
6336
  branches: {
@@ -5930,6 +6473,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5930
6473
  };
5931
6474
  } | {
5932
6475
  type: "webhook";
6476
+ } | {
6477
+ type: "event";
6478
+ event: {
6479
+ types: string[];
6480
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
6481
+ };
5933
6482
  };
5934
6483
  selection: {
5935
6484
  appointment: {
@@ -5948,6 +6497,21 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
5948
6497
  payment_status_in?: string[] | undefined;
5949
6498
  };
5950
6499
  target: "appointment";
6500
+ } | {
6501
+ target: "lead";
6502
+ lead: {
6503
+ status_in?: string[] | undefined;
6504
+ qualification_codes?: string[] | undefined;
6505
+ dist_channel_codes?: string[] | undefined;
6506
+ tag_names?: string[] | undefined;
6507
+ };
6508
+ } | {
6509
+ patient: {
6510
+ status_in?: string[] | undefined;
6511
+ tag_names?: string[] | undefined;
6512
+ source_codes?: string[] | undefined;
6513
+ };
6514
+ target: "patient";
5951
6515
  };
5952
6516
  branch_mode: "all" | "exclusive";
5953
6517
  branches: {
@@ -6095,6 +6659,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6095
6659
  };
6096
6660
  } | {
6097
6661
  type: "webhook";
6662
+ } | {
6663
+ type: "event";
6664
+ event: {
6665
+ types: string[];
6666
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
6667
+ };
6098
6668
  };
6099
6669
  selection: {
6100
6670
  appointment: {
@@ -6113,6 +6683,21 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6113
6683
  payment_status_in?: string[] | undefined;
6114
6684
  };
6115
6685
  target: "appointment";
6686
+ } | {
6687
+ target: "lead";
6688
+ lead: {
6689
+ status_in?: string[] | undefined;
6690
+ qualification_codes?: string[] | undefined;
6691
+ dist_channel_codes?: string[] | undefined;
6692
+ tag_names?: string[] | undefined;
6693
+ };
6694
+ } | {
6695
+ patient: {
6696
+ status_in?: string[] | undefined;
6697
+ tag_names?: string[] | undefined;
6698
+ source_codes?: string[] | undefined;
6699
+ };
6700
+ target: "patient";
6116
6701
  };
6117
6702
  branch_mode: "all" | "exclusive";
6118
6703
  branches: {
@@ -6258,6 +6843,12 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6258
6843
  };
6259
6844
  } | {
6260
6845
  type: "webhook";
6846
+ } | {
6847
+ type: "event";
6848
+ event: {
6849
+ types: string[];
6850
+ actor_kinds?: ("user" | "system" | "automation")[] | undefined;
6851
+ };
6261
6852
  };
6262
6853
  selection: {
6263
6854
  appointment: {
@@ -6276,6 +6867,21 @@ export declare const zAutomationRoutineUpdateRequestSchema: z.ZodObject<{
6276
6867
  payment_status_in?: string[] | undefined;
6277
6868
  };
6278
6869
  target: "appointment";
6870
+ } | {
6871
+ target: "lead";
6872
+ lead: {
6873
+ status_in?: string[] | undefined;
6874
+ qualification_codes?: string[] | undefined;
6875
+ dist_channel_codes?: string[] | undefined;
6876
+ tag_names?: string[] | undefined;
6877
+ };
6878
+ } | {
6879
+ patient: {
6880
+ status_in?: string[] | undefined;
6881
+ tag_names?: string[] | undefined;
6882
+ source_codes?: string[] | undefined;
6883
+ };
6884
+ target: "patient";
6279
6885
  };
6280
6886
  branch_mode: "all" | "exclusive";
6281
6887
  branches: {