evo360-types 1.3.507 → 1.3.512

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.
@@ -173,16 +173,19 @@ export declare const zLeadSchema: z.ZodObject<{
173
173
  id: z.ZodString;
174
174
  label: z.ZodOptional<z.ZodString>;
175
175
  ref: z.ZodOptional<z.ZodAny>;
176
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
176
177
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
177
178
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
178
179
  id: z.ZodString;
179
180
  label: z.ZodOptional<z.ZodString>;
180
181
  ref: z.ZodOptional<z.ZodAny>;
182
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
181
183
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
182
184
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
183
185
  id: z.ZodString;
184
186
  label: z.ZodOptional<z.ZodString>;
185
187
  ref: z.ZodOptional<z.ZodAny>;
188
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
186
189
  }, z.ZodTypeAny, "passthrough">>, "many">>;
187
190
  /** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
188
191
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -344,16 +347,19 @@ export declare const zLeadSchema: z.ZodObject<{
344
347
  id: z.ZodString;
345
348
  label: z.ZodOptional<z.ZodString>;
346
349
  ref: z.ZodOptional<z.ZodAny>;
350
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
347
351
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
348
352
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
349
353
  id: z.ZodString;
350
354
  label: z.ZodOptional<z.ZodString>;
351
355
  ref: z.ZodOptional<z.ZodAny>;
356
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
352
357
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
353
358
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
354
359
  id: z.ZodString;
355
360
  label: z.ZodOptional<z.ZodString>;
356
361
  ref: z.ZodOptional<z.ZodAny>;
362
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
357
363
  }, z.ZodTypeAny, "passthrough">>, "many">>;
358
364
  /** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
359
365
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -515,16 +521,19 @@ export declare const zLeadSchema: z.ZodObject<{
515
521
  id: z.ZodString;
516
522
  label: z.ZodOptional<z.ZodString>;
517
523
  ref: z.ZodOptional<z.ZodAny>;
524
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
518
525
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
519
526
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
520
527
  id: z.ZodString;
521
528
  label: z.ZodOptional<z.ZodString>;
522
529
  ref: z.ZodOptional<z.ZodAny>;
530
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
523
531
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
524
532
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
525
533
  id: z.ZodString;
526
534
  label: z.ZodOptional<z.ZodString>;
527
535
  ref: z.ZodOptional<z.ZodAny>;
536
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
528
537
  }, z.ZodTypeAny, "passthrough">>, "many">>;
529
538
  /** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
530
539
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -10858,16 +10858,19 @@ export declare const zPaymentLinkSchema: z.ZodObject<{
10858
10858
  id: z.ZodString;
10859
10859
  label: z.ZodOptional<z.ZodString>;
10860
10860
  ref: z.ZodOptional<z.ZodAny>;
10861
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
10861
10862
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
10862
10863
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
10863
10864
  id: z.ZodString;
10864
10865
  label: z.ZodOptional<z.ZodString>;
10865
10866
  ref: z.ZodOptional<z.ZodAny>;
10867
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
10866
10868
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
10867
10869
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
10868
10870
  id: z.ZodString;
10869
10871
  label: z.ZodOptional<z.ZodString>;
10870
10872
  ref: z.ZodOptional<z.ZodAny>;
10873
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
10871
10874
  }, z.ZodTypeAny, "passthrough">>, "many">>;
10872
10875
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
10873
10876
  raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -11043,16 +11046,19 @@ export declare const zPaymentLinkSchema: z.ZodObject<{
11043
11046
  id: z.ZodString;
11044
11047
  label: z.ZodOptional<z.ZodString>;
11045
11048
  ref: z.ZodOptional<z.ZodAny>;
11049
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11046
11050
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11047
11051
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
11048
11052
  id: z.ZodString;
11049
11053
  label: z.ZodOptional<z.ZodString>;
11050
11054
  ref: z.ZodOptional<z.ZodAny>;
11055
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11051
11056
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11052
11057
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
11053
11058
  id: z.ZodString;
11054
11059
  label: z.ZodOptional<z.ZodString>;
11055
11060
  ref: z.ZodOptional<z.ZodAny>;
11061
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11056
11062
  }, z.ZodTypeAny, "passthrough">>, "many">>;
11057
11063
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11058
11064
  raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -11228,16 +11234,19 @@ export declare const zPaymentLinkSchema: z.ZodObject<{
11228
11234
  id: z.ZodString;
11229
11235
  label: z.ZodOptional<z.ZodString>;
11230
11236
  ref: z.ZodOptional<z.ZodAny>;
11237
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11231
11238
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11232
11239
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
11233
11240
  id: z.ZodString;
11234
11241
  label: z.ZodOptional<z.ZodString>;
11235
11242
  ref: z.ZodOptional<z.ZodAny>;
11243
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11236
11244
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11237
11245
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
11238
11246
  id: z.ZodString;
11239
11247
  label: z.ZodOptional<z.ZodString>;
11240
11248
  ref: z.ZodOptional<z.ZodAny>;
11249
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11241
11250
  }, z.ZodTypeAny, "passthrough">>, "many">>;
11242
11251
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11243
11252
  raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -11428,16 +11437,19 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
11428
11437
  id: z.ZodString;
11429
11438
  label: z.ZodOptional<z.ZodString>;
11430
11439
  ref: z.ZodOptional<z.ZodAny>;
11440
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11431
11441
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11432
11442
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
11433
11443
  id: z.ZodString;
11434
11444
  label: z.ZodOptional<z.ZodString>;
11435
11445
  ref: z.ZodOptional<z.ZodAny>;
11446
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11436
11447
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11437
11448
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
11438
11449
  id: z.ZodString;
11439
11450
  label: z.ZodOptional<z.ZodString>;
11440
11451
  ref: z.ZodOptional<z.ZodAny>;
11452
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11441
11453
  }, z.ZodTypeAny, "passthrough">>, "many">>;
11442
11454
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11443
11455
  evo_chat: z.ZodOptional<z.ZodObject<{
@@ -11847,16 +11859,19 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
11847
11859
  id: z.ZodString;
11848
11860
  label: z.ZodOptional<z.ZodString>;
11849
11861
  ref: z.ZodOptional<z.ZodAny>;
11862
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11850
11863
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11851
11864
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
11852
11865
  id: z.ZodString;
11853
11866
  label: z.ZodOptional<z.ZodString>;
11854
11867
  ref: z.ZodOptional<z.ZodAny>;
11868
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11855
11869
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11856
11870
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
11857
11871
  id: z.ZodString;
11858
11872
  label: z.ZodOptional<z.ZodString>;
11859
11873
  ref: z.ZodOptional<z.ZodAny>;
11874
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
11860
11875
  }, z.ZodTypeAny, "passthrough">>, "many">>;
11861
11876
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11862
11877
  evo_chat: z.ZodOptional<z.ZodObject<{
@@ -12266,16 +12281,19 @@ export declare const zServiceInvoiceSchema: z.ZodObject<{
12266
12281
  id: z.ZodString;
12267
12282
  label: z.ZodOptional<z.ZodString>;
12268
12283
  ref: z.ZodOptional<z.ZodAny>;
12284
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
12269
12285
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12270
12286
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
12271
12287
  id: z.ZodString;
12272
12288
  label: z.ZodOptional<z.ZodString>;
12273
12289
  ref: z.ZodOptional<z.ZodAny>;
12290
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
12274
12291
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12275
12292
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
12276
12293
  id: z.ZodString;
12277
12294
  label: z.ZodOptional<z.ZodString>;
12278
12295
  ref: z.ZodOptional<z.ZodAny>;
12296
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
12279
12297
  }, z.ZodTypeAny, "passthrough">>, "many">>;
12280
12298
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
12281
12299
  evo_chat: z.ZodOptional<z.ZodObject<{
@@ -609,16 +609,19 @@ export declare const zPatientAttachmentSchema: z.ZodObject<{
609
609
  id: z.ZodString;
610
610
  label: z.ZodOptional<z.ZodString>;
611
611
  ref: z.ZodOptional<z.ZodAny>;
612
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
612
613
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
613
614
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
614
615
  id: z.ZodString;
615
616
  label: z.ZodOptional<z.ZodString>;
616
617
  ref: z.ZodOptional<z.ZodAny>;
618
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
617
619
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
618
620
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
619
621
  id: z.ZodString;
620
622
  label: z.ZodOptional<z.ZodString>;
621
623
  ref: z.ZodOptional<z.ZodAny>;
624
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
622
625
  }, z.ZodTypeAny, "passthrough">>, "many">>;
623
626
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
624
627
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -648,16 +651,19 @@ export declare const zPatientAttachmentSchema: z.ZodObject<{
648
651
  id: z.ZodString;
649
652
  label: z.ZodOptional<z.ZodString>;
650
653
  ref: z.ZodOptional<z.ZodAny>;
654
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
651
655
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
652
656
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
653
657
  id: z.ZodString;
654
658
  label: z.ZodOptional<z.ZodString>;
655
659
  ref: z.ZodOptional<z.ZodAny>;
660
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
656
661
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
657
662
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
658
663
  id: z.ZodString;
659
664
  label: z.ZodOptional<z.ZodString>;
660
665
  ref: z.ZodOptional<z.ZodAny>;
666
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
661
667
  }, z.ZodTypeAny, "passthrough">>, "many">>;
662
668
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
663
669
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -687,16 +693,19 @@ export declare const zPatientAttachmentSchema: z.ZodObject<{
687
693
  id: z.ZodString;
688
694
  label: z.ZodOptional<z.ZodString>;
689
695
  ref: z.ZodOptional<z.ZodAny>;
696
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
690
697
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
691
698
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
692
699
  id: z.ZodString;
693
700
  label: z.ZodOptional<z.ZodString>;
694
701
  ref: z.ZodOptional<z.ZodAny>;
702
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
695
703
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
696
704
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
697
705
  id: z.ZodString;
698
706
  label: z.ZodOptional<z.ZodString>;
699
707
  ref: z.ZodOptional<z.ZodAny>;
708
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
700
709
  }, z.ZodTypeAny, "passthrough">>, "many">>;
701
710
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
702
711
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -811,16 +820,19 @@ export declare const zPatientSchema: z.ZodObject<{
811
820
  id: z.ZodString;
812
821
  label: z.ZodOptional<z.ZodString>;
813
822
  ref: z.ZodOptional<z.ZodAny>;
823
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
814
824
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
815
825
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
816
826
  id: z.ZodString;
817
827
  label: z.ZodOptional<z.ZodString>;
818
828
  ref: z.ZodOptional<z.ZodAny>;
829
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
819
830
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
820
831
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
821
832
  id: z.ZodString;
822
833
  label: z.ZodOptional<z.ZodString>;
823
834
  ref: z.ZodOptional<z.ZodAny>;
835
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
824
836
  }, z.ZodTypeAny, "passthrough">>, "many">>;
825
837
  /** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
826
838
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -926,16 +938,19 @@ export declare const zPatientSchema: z.ZodObject<{
926
938
  id: z.ZodString;
927
939
  label: z.ZodOptional<z.ZodString>;
928
940
  ref: z.ZodOptional<z.ZodAny>;
941
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
929
942
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
930
943
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
931
944
  id: z.ZodString;
932
945
  label: z.ZodOptional<z.ZodString>;
933
946
  ref: z.ZodOptional<z.ZodAny>;
947
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
934
948
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
935
949
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
936
950
  id: z.ZodString;
937
951
  label: z.ZodOptional<z.ZodString>;
938
952
  ref: z.ZodOptional<z.ZodAny>;
953
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
939
954
  }, z.ZodTypeAny, "passthrough">>, "many">>;
940
955
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
941
956
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -965,16 +980,19 @@ export declare const zPatientSchema: z.ZodObject<{
965
980
  id: z.ZodString;
966
981
  label: z.ZodOptional<z.ZodString>;
967
982
  ref: z.ZodOptional<z.ZodAny>;
983
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
968
984
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
969
985
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
970
986
  id: z.ZodString;
971
987
  label: z.ZodOptional<z.ZodString>;
972
988
  ref: z.ZodOptional<z.ZodAny>;
989
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
973
990
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
974
991
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
975
992
  id: z.ZodString;
976
993
  label: z.ZodOptional<z.ZodString>;
977
994
  ref: z.ZodOptional<z.ZodAny>;
995
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
978
996
  }, z.ZodTypeAny, "passthrough">>, "many">>;
979
997
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
980
998
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -1004,16 +1022,19 @@ export declare const zPatientSchema: z.ZodObject<{
1004
1022
  id: z.ZodString;
1005
1023
  label: z.ZodOptional<z.ZodString>;
1006
1024
  ref: z.ZodOptional<z.ZodAny>;
1025
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1007
1026
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1008
1027
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1009
1028
  id: z.ZodString;
1010
1029
  label: z.ZodOptional<z.ZodString>;
1011
1030
  ref: z.ZodOptional<z.ZodAny>;
1031
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1012
1032
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1013
1033
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1014
1034
  id: z.ZodString;
1015
1035
  label: z.ZodOptional<z.ZodString>;
1016
1036
  ref: z.ZodOptional<z.ZodAny>;
1037
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1017
1038
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1018
1039
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1019
1040
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -1149,16 +1170,19 @@ export declare const zPatientSchema: z.ZodObject<{
1149
1170
  id: z.ZodString;
1150
1171
  label: z.ZodOptional<z.ZodString>;
1151
1172
  ref: z.ZodOptional<z.ZodAny>;
1173
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1152
1174
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1153
1175
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1154
1176
  id: z.ZodString;
1155
1177
  label: z.ZodOptional<z.ZodString>;
1156
1178
  ref: z.ZodOptional<z.ZodAny>;
1179
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1157
1180
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1158
1181
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1159
1182
  id: z.ZodString;
1160
1183
  label: z.ZodOptional<z.ZodString>;
1161
1184
  ref: z.ZodOptional<z.ZodAny>;
1185
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1162
1186
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1163
1187
  /** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
1164
1188
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1264,16 +1288,19 @@ export declare const zPatientSchema: z.ZodObject<{
1264
1288
  id: z.ZodString;
1265
1289
  label: z.ZodOptional<z.ZodString>;
1266
1290
  ref: z.ZodOptional<z.ZodAny>;
1291
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1267
1292
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1268
1293
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1269
1294
  id: z.ZodString;
1270
1295
  label: z.ZodOptional<z.ZodString>;
1271
1296
  ref: z.ZodOptional<z.ZodAny>;
1297
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1272
1298
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1273
1299
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1274
1300
  id: z.ZodString;
1275
1301
  label: z.ZodOptional<z.ZodString>;
1276
1302
  ref: z.ZodOptional<z.ZodAny>;
1303
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1277
1304
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1278
1305
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1279
1306
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -1303,16 +1330,19 @@ export declare const zPatientSchema: z.ZodObject<{
1303
1330
  id: z.ZodString;
1304
1331
  label: z.ZodOptional<z.ZodString>;
1305
1332
  ref: z.ZodOptional<z.ZodAny>;
1333
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1306
1334
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1307
1335
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1308
1336
  id: z.ZodString;
1309
1337
  label: z.ZodOptional<z.ZodString>;
1310
1338
  ref: z.ZodOptional<z.ZodAny>;
1339
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1311
1340
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1312
1341
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1313
1342
  id: z.ZodString;
1314
1343
  label: z.ZodOptional<z.ZodString>;
1315
1344
  ref: z.ZodOptional<z.ZodAny>;
1345
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1316
1346
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1317
1347
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1318
1348
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -1342,16 +1372,19 @@ export declare const zPatientSchema: z.ZodObject<{
1342
1372
  id: z.ZodString;
1343
1373
  label: z.ZodOptional<z.ZodString>;
1344
1374
  ref: z.ZodOptional<z.ZodAny>;
1375
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1345
1376
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1346
1377
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1347
1378
  id: z.ZodString;
1348
1379
  label: z.ZodOptional<z.ZodString>;
1349
1380
  ref: z.ZodOptional<z.ZodAny>;
1381
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1350
1382
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1351
1383
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1352
1384
  id: z.ZodString;
1353
1385
  label: z.ZodOptional<z.ZodString>;
1354
1386
  ref: z.ZodOptional<z.ZodAny>;
1387
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1355
1388
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1356
1389
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1357
1390
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -1487,16 +1520,19 @@ export declare const zPatientSchema: z.ZodObject<{
1487
1520
  id: z.ZodString;
1488
1521
  label: z.ZodOptional<z.ZodString>;
1489
1522
  ref: z.ZodOptional<z.ZodAny>;
1523
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1490
1524
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1491
1525
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1492
1526
  id: z.ZodString;
1493
1527
  label: z.ZodOptional<z.ZodString>;
1494
1528
  ref: z.ZodOptional<z.ZodAny>;
1529
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1495
1530
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1496
1531
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1497
1532
  id: z.ZodString;
1498
1533
  label: z.ZodOptional<z.ZodString>;
1499
1534
  ref: z.ZodOptional<z.ZodAny>;
1535
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1500
1536
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1501
1537
  /** Derivado de `externalLinks` (`"type:id"`) pelo model — habilita `array-contains`. */
1502
1538
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1602,16 +1638,19 @@ export declare const zPatientSchema: z.ZodObject<{
1602
1638
  id: z.ZodString;
1603
1639
  label: z.ZodOptional<z.ZodString>;
1604
1640
  ref: z.ZodOptional<z.ZodAny>;
1641
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1605
1642
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1606
1643
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1607
1644
  id: z.ZodString;
1608
1645
  label: z.ZodOptional<z.ZodString>;
1609
1646
  ref: z.ZodOptional<z.ZodAny>;
1647
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1610
1648
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1611
1649
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1612
1650
  id: z.ZodString;
1613
1651
  label: z.ZodOptional<z.ZodString>;
1614
1652
  ref: z.ZodOptional<z.ZodAny>;
1653
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1615
1654
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1616
1655
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1617
1656
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -1641,16 +1680,19 @@ export declare const zPatientSchema: z.ZodObject<{
1641
1680
  id: z.ZodString;
1642
1681
  label: z.ZodOptional<z.ZodString>;
1643
1682
  ref: z.ZodOptional<z.ZodAny>;
1683
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1644
1684
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1645
1685
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1646
1686
  id: z.ZodString;
1647
1687
  label: z.ZodOptional<z.ZodString>;
1648
1688
  ref: z.ZodOptional<z.ZodAny>;
1689
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1649
1690
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1650
1691
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1651
1692
  id: z.ZodString;
1652
1693
  label: z.ZodOptional<z.ZodString>;
1653
1694
  ref: z.ZodOptional<z.ZodAny>;
1695
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1654
1696
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1655
1697
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1656
1698
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -1680,16 +1722,19 @@ export declare const zPatientSchema: z.ZodObject<{
1680
1722
  id: z.ZodString;
1681
1723
  label: z.ZodOptional<z.ZodString>;
1682
1724
  ref: z.ZodOptional<z.ZodAny>;
1725
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1683
1726
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1684
1727
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1685
1728
  id: z.ZodString;
1686
1729
  label: z.ZodOptional<z.ZodString>;
1687
1730
  ref: z.ZodOptional<z.ZodAny>;
1731
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1688
1732
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1689
1733
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1690
1734
  id: z.ZodString;
1691
1735
  label: z.ZodOptional<z.ZodString>;
1692
1736
  ref: z.ZodOptional<z.ZodAny>;
1737
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1693
1738
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1694
1739
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1695
1740
  uploadedBy: z.ZodOptional<z.ZodObject<{
@@ -183,16 +183,19 @@ export declare const zNotificationMessageSchema: z.ZodObject<{
183
183
  id: z.ZodString;
184
184
  label: z.ZodOptional<z.ZodString>;
185
185
  ref: z.ZodOptional<z.ZodAny>;
186
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
186
187
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
187
188
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
188
189
  id: z.ZodString;
189
190
  label: z.ZodOptional<z.ZodString>;
190
191
  ref: z.ZodOptional<z.ZodAny>;
192
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
191
193
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
192
194
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
193
195
  id: z.ZodString;
194
196
  label: z.ZodOptional<z.ZodString>;
195
197
  ref: z.ZodOptional<z.ZodAny>;
198
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
196
199
  }, z.ZodTypeAny, "passthrough">>, "many">>;
197
200
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
198
201
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
@@ -300,16 +303,19 @@ export declare const zNotificationMessageSchema: z.ZodObject<{
300
303
  id: z.ZodString;
301
304
  label: z.ZodOptional<z.ZodString>;
302
305
  ref: z.ZodOptional<z.ZodAny>;
306
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
303
307
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
304
308
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
305
309
  id: z.ZodString;
306
310
  label: z.ZodOptional<z.ZodString>;
307
311
  ref: z.ZodOptional<z.ZodAny>;
312
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
308
313
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
309
314
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
310
315
  id: z.ZodString;
311
316
  label: z.ZodOptional<z.ZodString>;
312
317
  ref: z.ZodOptional<z.ZodAny>;
318
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
313
319
  }, z.ZodTypeAny, "passthrough">>, "many">>;
314
320
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
315
321
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
@@ -417,16 +423,19 @@ export declare const zNotificationMessageSchema: z.ZodObject<{
417
423
  id: z.ZodString;
418
424
  label: z.ZodOptional<z.ZodString>;
419
425
  ref: z.ZodOptional<z.ZodAny>;
426
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
420
427
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
421
428
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
422
429
  id: z.ZodString;
423
430
  label: z.ZodOptional<z.ZodString>;
424
431
  ref: z.ZodOptional<z.ZodAny>;
432
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
425
433
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
426
434
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
427
435
  id: z.ZodString;
428
436
  label: z.ZodOptional<z.ZodString>;
429
437
  ref: z.ZodOptional<z.ZodAny>;
438
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
430
439
  }, z.ZodTypeAny, "passthrough">>, "many">>;
431
440
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
432
441
  }, z.ZodTypeAny, "passthrough">>;
@@ -687,16 +696,19 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
687
696
  id: z.ZodString;
688
697
  label: z.ZodOptional<z.ZodString>;
689
698
  ref: z.ZodOptional<z.ZodAny>;
699
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
690
700
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
691
701
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
692
702
  id: z.ZodString;
693
703
  label: z.ZodOptional<z.ZodString>;
694
704
  ref: z.ZodOptional<z.ZodAny>;
705
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
695
706
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
696
707
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
697
708
  id: z.ZodString;
698
709
  label: z.ZodOptional<z.ZodString>;
699
710
  ref: z.ZodOptional<z.ZodAny>;
711
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
700
712
  }, z.ZodTypeAny, "passthrough">>, "many">>;
701
713
  quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
702
714
  action_type: z.ZodString;
@@ -789,16 +801,19 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
789
801
  id: z.ZodString;
790
802
  label: z.ZodOptional<z.ZodString>;
791
803
  ref: z.ZodOptional<z.ZodAny>;
804
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
792
805
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
793
806
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
794
807
  id: z.ZodString;
795
808
  label: z.ZodOptional<z.ZodString>;
796
809
  ref: z.ZodOptional<z.ZodAny>;
810
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
797
811
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
798
812
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
799
813
  id: z.ZodString;
800
814
  label: z.ZodOptional<z.ZodString>;
801
815
  ref: z.ZodOptional<z.ZodAny>;
816
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
802
817
  }, z.ZodTypeAny, "passthrough">>, "many">>;
803
818
  quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
804
819
  action_type: z.ZodString;
@@ -891,16 +906,19 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
891
906
  id: z.ZodString;
892
907
  label: z.ZodOptional<z.ZodString>;
893
908
  ref: z.ZodOptional<z.ZodAny>;
909
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
894
910
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
895
911
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
896
912
  id: z.ZodString;
897
913
  label: z.ZodOptional<z.ZodString>;
898
914
  ref: z.ZodOptional<z.ZodAny>;
915
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
899
916
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
900
917
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
901
918
  id: z.ZodString;
902
919
  label: z.ZodOptional<z.ZodString>;
903
920
  ref: z.ZodOptional<z.ZodAny>;
921
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
904
922
  }, z.ZodTypeAny, "passthrough">>, "many">>;
905
923
  quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
906
924
  action_type: z.ZodString;
@@ -993,16 +1011,19 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
993
1011
  id: z.ZodString;
994
1012
  label: z.ZodOptional<z.ZodString>;
995
1013
  ref: z.ZodOptional<z.ZodAny>;
1014
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
996
1015
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
997
1016
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
998
1017
  id: z.ZodString;
999
1018
  label: z.ZodOptional<z.ZodString>;
1000
1019
  ref: z.ZodOptional<z.ZodAny>;
1020
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1001
1021
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1002
1022
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1003
1023
  id: z.ZodString;
1004
1024
  label: z.ZodOptional<z.ZodString>;
1005
1025
  ref: z.ZodOptional<z.ZodAny>;
1026
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1006
1027
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1007
1028
  quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1008
1029
  action_type: z.ZodString;
@@ -1095,16 +1116,19 @@ export declare const zDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1095
1116
  id: z.ZodString;
1096
1117
  label: z.ZodOptional<z.ZodString>;
1097
1118
  ref: z.ZodOptional<z.ZodAny>;
1119
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1098
1120
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1099
1121
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1100
1122
  id: z.ZodString;
1101
1123
  label: z.ZodOptional<z.ZodString>;
1102
1124
  ref: z.ZodOptional<z.ZodAny>;
1125
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1103
1126
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1104
1127
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1105
1128
  id: z.ZodString;
1106
1129
  label: z.ZodOptional<z.ZodString>;
1107
1130
  ref: z.ZodOptional<z.ZodAny>;
1131
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1108
1132
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1109
1133
  quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1110
1134
  action_type: z.ZodString;
@@ -1196,16 +1220,19 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1196
1220
  id: z.ZodString;
1197
1221
  label: z.ZodOptional<z.ZodString>;
1198
1222
  ref: z.ZodOptional<z.ZodAny>;
1223
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1199
1224
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1200
1225
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1201
1226
  id: z.ZodString;
1202
1227
  label: z.ZodOptional<z.ZodString>;
1203
1228
  ref: z.ZodOptional<z.ZodAny>;
1229
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1204
1230
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1205
1231
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1206
1232
  id: z.ZodString;
1207
1233
  label: z.ZodOptional<z.ZodString>;
1208
1234
  ref: z.ZodOptional<z.ZodAny>;
1235
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1209
1236
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1210
1237
  quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1211
1238
  action_type: z.ZodString;
@@ -1296,16 +1323,19 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1296
1323
  id: z.ZodString;
1297
1324
  label: z.ZodOptional<z.ZodString>;
1298
1325
  ref: z.ZodOptional<z.ZodAny>;
1326
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1299
1327
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1300
1328
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1301
1329
  id: z.ZodString;
1302
1330
  label: z.ZodOptional<z.ZodString>;
1303
1331
  ref: z.ZodOptional<z.ZodAny>;
1332
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1304
1333
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1305
1334
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1306
1335
  id: z.ZodString;
1307
1336
  label: z.ZodOptional<z.ZodString>;
1308
1337
  ref: z.ZodOptional<z.ZodAny>;
1338
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1309
1339
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1310
1340
  quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1311
1341
  action_type: z.ZodString;
@@ -1396,16 +1426,19 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1396
1426
  id: z.ZodString;
1397
1427
  label: z.ZodOptional<z.ZodString>;
1398
1428
  ref: z.ZodOptional<z.ZodAny>;
1429
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1399
1430
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1400
1431
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1401
1432
  id: z.ZodString;
1402
1433
  label: z.ZodOptional<z.ZodString>;
1403
1434
  ref: z.ZodOptional<z.ZodAny>;
1435
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1404
1436
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1405
1437
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1406
1438
  id: z.ZodString;
1407
1439
  label: z.ZodOptional<z.ZodString>;
1408
1440
  ref: z.ZodOptional<z.ZodAny>;
1441
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1409
1442
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1410
1443
  quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1411
1444
  action_type: z.ZodString;
@@ -1496,16 +1529,19 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1496
1529
  id: z.ZodString;
1497
1530
  label: z.ZodOptional<z.ZodString>;
1498
1531
  ref: z.ZodOptional<z.ZodAny>;
1532
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1499
1533
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1500
1534
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1501
1535
  id: z.ZodString;
1502
1536
  label: z.ZodOptional<z.ZodString>;
1503
1537
  ref: z.ZodOptional<z.ZodAny>;
1538
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1504
1539
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1505
1540
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1506
1541
  id: z.ZodString;
1507
1542
  label: z.ZodOptional<z.ZodString>;
1508
1543
  ref: z.ZodOptional<z.ZodAny>;
1544
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1509
1545
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1510
1546
  quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1511
1547
  action_type: z.ZodString;
@@ -1596,16 +1632,19 @@ export declare const zNexusDirectSendPayloadSchema: z.ZodEffects<z.ZodObject<{
1596
1632
  id: z.ZodString;
1597
1633
  label: z.ZodOptional<z.ZodString>;
1598
1634
  ref: z.ZodOptional<z.ZodAny>;
1635
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1599
1636
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1600
1637
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1601
1638
  id: z.ZodString;
1602
1639
  label: z.ZodOptional<z.ZodString>;
1603
1640
  ref: z.ZodOptional<z.ZodAny>;
1641
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1604
1642
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1605
1643
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1606
1644
  id: z.ZodString;
1607
1645
  label: z.ZodOptional<z.ZodString>;
1608
1646
  ref: z.ZodOptional<z.ZodAny>;
1647
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1609
1648
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1610
1649
  quick_reply_actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1611
1650
  action_type: z.ZodString;
@@ -11,37 +11,44 @@ export declare const zTaskDedupWindowSchema: z.ZodEnum<["same_day", "n_hours", "
11
11
  export declare const zExternalObjectTypeSchema: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
12
12
  export declare const zTaskExternalObjectTypeSchema: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
13
13
  export declare const zTaskExecutionStatusSchema: z.ZodEnum<["success", "error", "retry"]>;
14
+ export declare const zExternalOwnerSystemSchema: z.ZodEnum<["nexus"]>;
14
15
  export declare const zExternalLinkSchema: z.ZodObject<{
15
16
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
16
17
  id: z.ZodString;
17
18
  label: z.ZodOptional<z.ZodString>;
18
19
  ref: z.ZodOptional<z.ZodAny>;
20
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
19
21
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
20
22
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
21
23
  id: z.ZodString;
22
24
  label: z.ZodOptional<z.ZodString>;
23
25
  ref: z.ZodOptional<z.ZodAny>;
26
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
24
27
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
25
28
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
26
29
  id: z.ZodString;
27
30
  label: z.ZodOptional<z.ZodString>;
28
31
  ref: z.ZodOptional<z.ZodAny>;
32
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
29
33
  }, z.ZodTypeAny, "passthrough">>;
30
34
  export declare const zTaskExternalLinkSchema: z.ZodObject<{
31
35
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
32
36
  id: z.ZodString;
33
37
  label: z.ZodOptional<z.ZodString>;
34
38
  ref: z.ZodOptional<z.ZodAny>;
39
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
35
40
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
36
41
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
37
42
  id: z.ZodString;
38
43
  label: z.ZodOptional<z.ZodString>;
39
44
  ref: z.ZodOptional<z.ZodAny>;
45
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
40
46
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
41
47
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
42
48
  id: z.ZodString;
43
49
  label: z.ZodOptional<z.ZodString>;
44
50
  ref: z.ZodOptional<z.ZodAny>;
51
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
45
52
  }, z.ZodTypeAny, "passthrough">>;
46
53
  export declare const zTaskScheduleSchema: z.ZodObject<{
47
54
  execute_at: z.ZodOptional<z.ZodDate>;
@@ -489,16 +496,19 @@ export declare const zTaskSchema: z.ZodObject<{
489
496
  id: z.ZodString;
490
497
  label: z.ZodOptional<z.ZodString>;
491
498
  ref: z.ZodOptional<z.ZodAny>;
499
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
492
500
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
493
501
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
494
502
  id: z.ZodString;
495
503
  label: z.ZodOptional<z.ZodString>;
496
504
  ref: z.ZodOptional<z.ZodAny>;
505
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
497
506
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
498
507
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
499
508
  id: z.ZodString;
500
509
  label: z.ZodOptional<z.ZodString>;
501
510
  ref: z.ZodOptional<z.ZodAny>;
511
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
502
512
  }, z.ZodTypeAny, "passthrough">>, "many">>;
503
513
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
504
514
  idempotency_key: z.ZodOptional<z.ZodString>;
@@ -927,16 +937,19 @@ export declare const zTaskSchema: z.ZodObject<{
927
937
  id: z.ZodString;
928
938
  label: z.ZodOptional<z.ZodString>;
929
939
  ref: z.ZodOptional<z.ZodAny>;
940
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
930
941
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
931
942
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
932
943
  id: z.ZodString;
933
944
  label: z.ZodOptional<z.ZodString>;
934
945
  ref: z.ZodOptional<z.ZodAny>;
946
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
935
947
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
936
948
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
937
949
  id: z.ZodString;
938
950
  label: z.ZodOptional<z.ZodString>;
939
951
  ref: z.ZodOptional<z.ZodAny>;
952
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
940
953
  }, z.ZodTypeAny, "passthrough">>, "many">>;
941
954
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
942
955
  idempotency_key: z.ZodOptional<z.ZodString>;
@@ -1365,16 +1378,19 @@ export declare const zTaskSchema: z.ZodObject<{
1365
1378
  id: z.ZodString;
1366
1379
  label: z.ZodOptional<z.ZodString>;
1367
1380
  ref: z.ZodOptional<z.ZodAny>;
1381
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1368
1382
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
1369
1383
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1370
1384
  id: z.ZodString;
1371
1385
  label: z.ZodOptional<z.ZodString>;
1372
1386
  ref: z.ZodOptional<z.ZodAny>;
1387
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1373
1388
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
1374
1389
  type: z.ZodEnum<["crm_lead", "med_patient", "med_professional", "med_appointment", "chat_contact", "evo_task", "campaign", "nex_billing", "nex_contract", "nex_customer"]>;
1375
1390
  id: z.ZodString;
1376
1391
  label: z.ZodOptional<z.ZodString>;
1377
1392
  ref: z.ZodOptional<z.ZodAny>;
1393
+ owner: z.ZodOptional<z.ZodEnum<["nexus"]>>;
1378
1394
  }, z.ZodTypeAny, "passthrough">>, "many">>;
1379
1395
  externalLinkKeys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1380
1396
  idempotency_key: z.ZodOptional<z.ZodString>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zTaskLogSchema = exports.zTaskExecutionSchema = exports.zTaskExecutionProviderSchema = exports.zTaskExecutionErrorSchema = exports.zTaskCommentSchema = exports.zTaskCommentAuthorSchema = exports.zTaskSchema = exports.zTaskCreatorSchema = exports.zTaskOnFailureSchema = exports.zTaskAutoSpecSchema = exports.zTaskDedupSchema = exports.zTaskRetryPolicySchema = exports.zTaskRunnerStateSchema = exports.zTaskLockSchema = exports.zTaskUserAssigneeSchema = exports.zTaskScheduleSchema = exports.zTaskExternalLinkSchema = exports.zExternalLinkSchema = exports.zTaskExecutionStatusSchema = exports.zTaskExternalObjectTypeSchema = exports.zExternalObjectTypeSchema = exports.zTaskDedupWindowSchema = exports.zTaskDedupScopeSchema = exports.zTaskRetryStrategySchema = exports.zTaskAutoHandlerSchema = exports.zTaskModeSchema = exports.zTaskSourceSchema = exports.zTaskPrioritySchema = exports.zTaskStatusSchema = exports.zTaskActionSchema = void 0;
3
+ exports.zTaskLogSchema = exports.zTaskExecutionSchema = exports.zTaskExecutionProviderSchema = exports.zTaskExecutionErrorSchema = exports.zTaskCommentSchema = exports.zTaskCommentAuthorSchema = exports.zTaskSchema = exports.zTaskCreatorSchema = exports.zTaskOnFailureSchema = exports.zTaskAutoSpecSchema = exports.zTaskDedupSchema = exports.zTaskRetryPolicySchema = exports.zTaskRunnerStateSchema = exports.zTaskLockSchema = exports.zTaskUserAssigneeSchema = exports.zTaskScheduleSchema = exports.zTaskExternalLinkSchema = exports.zExternalLinkSchema = exports.zExternalOwnerSystemSchema = exports.zTaskExecutionStatusSchema = exports.zTaskExternalObjectTypeSchema = exports.zExternalObjectTypeSchema = exports.zTaskDedupWindowSchema = exports.zTaskDedupScopeSchema = exports.zTaskRetryStrategySchema = exports.zTaskAutoHandlerSchema = exports.zTaskModeSchema = exports.zTaskSourceSchema = exports.zTaskPrioritySchema = exports.zTaskStatusSchema = exports.zTaskActionSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../shared/zod-schemas");
6
6
  exports.zTaskActionSchema = zod_1.z.enum([
@@ -95,12 +95,18 @@ exports.zExternalObjectTypeSchema = zod_1.z.enum([
95
95
  exports.zTaskExternalObjectTypeSchema = exports.zExternalObjectTypeSchema;
96
96
  exports.zTaskExecutionStatusSchema = zod_1.z.enum(["success", "error", "retry"]);
97
97
  // Schema para IExternalLink (promoted to shared, renamed from Task-specific)
98
+ exports.zExternalOwnerSystemSchema = zod_1.z.enum(["nexus"]);
98
99
  exports.zExternalLinkSchema = zod_1.z
99
100
  .object({
100
101
  type: exports.zExternalObjectTypeSchema,
101
102
  id: zod_1.z.string(),
102
103
  label: zod_1.z.string().optional(),
103
104
  ref: zod_1.z.any().optional(), // FirestoreDocumentReference
105
+ // feat-125: `owner` vai EXPLÍCITO no schema, apesar do `.passthrough()` abaixo
106
+ // já deixar passar chave desconhecida. Sem isto, um typo (`onwer`) entraria
107
+ // calado e o link ficaria sem dono sem ninguém perceber — é exatamente o
108
+ // buraco que o passthrough esconde.
109
+ owner: exports.zExternalOwnerSystemSchema.optional(),
104
110
  })
105
111
  .passthrough();
106
112
  // Backward compatibility alias
@@ -105,12 +105,19 @@ export const zTaskExternalObjectTypeSchema = zExternalObjectTypeSchema;
105
105
  export const zTaskExecutionStatusSchema = z.enum(["success", "error", "retry"]);
106
106
 
107
107
  // Schema para IExternalLink (promoted to shared, renamed from Task-specific)
108
+ export const zExternalOwnerSystemSchema = z.enum(["nexus"]);
109
+
108
110
  export const zExternalLinkSchema = z
109
111
  .object({
110
112
  type: zExternalObjectTypeSchema,
111
113
  id: z.string(),
112
114
  label: z.string().optional(),
113
115
  ref: z.any().optional(), // FirestoreDocumentReference
116
+ // feat-125: `owner` vai EXPLÍCITO no schema, apesar do `.passthrough()` abaixo
117
+ // já deixar passar chave desconhecida. Sem isto, um typo (`onwer`) entraria
118
+ // calado e o link ficaria sem dono sem ninguém perceber — é exatamente o
119
+ // buraco que o passthrough esconde.
120
+ owner: zExternalOwnerSystemSchema.optional(),
114
121
  })
115
122
  .passthrough();
116
123
 
@@ -1,10 +1,36 @@
1
1
  import type { IFireGlobalDoc } from '../shared';
2
2
  export type NexCustomerDocumentType = 'cpf' | 'cnpj';
3
3
  export type NexCustomerStatus = 'active' | 'inactive';
4
+ /**
5
+ * feat-125 — papel de um lead do tenant `hub-medica` em relação a um cliente do
6
+ * Nexus. Enum tipado (e não dicionário) por decisão do time: papel novo é
7
+ * raríssimo, e a tipagem forte vale mais que evitar um release.
8
+ */
9
+ export declare const NexCustomerLeadRoleEnum: {
10
+ readonly Financial: "financial";
11
+ readonly Administrative: "administrative";
12
+ readonly Doctor: "doctor";
13
+ };
14
+ export type NexCustomerLeadRole = (typeof NexCustomerLeadRoleEnum)[keyof typeof NexCustomerLeadRoleEnum];
4
15
  export interface INexCustomerTenantRef {
5
16
  tenant: string;
6
17
  display_name?: string | null;
7
18
  }
19
+ /**
20
+ * feat-125 — vínculo com um lead do CRM do `hub-medica`, com o papel que aquele
21
+ * lead cumpre para este cliente.
22
+ *
23
+ * NÃO confundir com `tenant_refs`, que é outro eixo: lá é "o tenant que este
24
+ * cliente OPERA" (a instância dele na plataforma); aqui é "quem fala com este
25
+ * cliente pela Hub Médica".
26
+ *
27
+ * A chave de unicidade é o PAR (lead_id, role): o mesmo lead pode ser contato
28
+ * financeiro e administrativo do mesmo cliente.
29
+ */
30
+ export interface INexCustomerLeadRef {
31
+ lead_id: string;
32
+ role: NexCustomerLeadRole;
33
+ }
8
34
  export interface INexCustomerAddress {
9
35
  zip?: string | null;
10
36
  street?: string | null;
@@ -31,5 +57,16 @@ export interface INexCustomer extends IFireGlobalDoc {
31
57
  payer_aliases?: string[];
32
58
  address?: INexCustomerAddress | null;
33
59
  fiscal_data?: INexCustomerFiscalData | null;
60
+ /**
61
+ * feat-125 — leads do `hub-medica` que representam este cliente, por papel.
62
+ * Lado AUTORITATIVO do vínculo: é o que o envio de notificação consulta para
63
+ * anexar o `crm_lead` e cair na thread do hub-omni.
64
+ *
65
+ * NUNCA consultar com `array-contains`: o operador exige igualdade do objeto
66
+ * inteiro, então a query quebra em silêncio assim que a entrada ganhar um campo
67
+ * — foi o que travou reusar `tenant_refs` para isto. A busca reversa se faz pelo
68
+ * lado do lead, via `externalLinkKeys array-contains 'nex_customer:{id}'`.
69
+ */
70
+ hm_leads?: INexCustomerLeadRef[];
34
71
  notes?: string | null;
35
72
  }
@@ -1,2 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NexCustomerLeadRoleEnum = void 0;
4
+ /**
5
+ * feat-125 — papel de um lead do tenant `hub-medica` em relação a um cliente do
6
+ * Nexus. Enum tipado (e não dicionário) por decisão do time: papel novo é
7
+ * raríssimo, e a tipagem forte vale mais que evitar um release.
8
+ */
9
+ exports.NexCustomerLeadRoleEnum = {
10
+ Financial: 'financial',
11
+ Administrative: 'administrative',
12
+ Doctor: 'doctor',
13
+ };
@@ -5,6 +5,20 @@ import type { IFireGlobalDoc } from '../shared';
5
5
  export type NexCustomerDocumentType = 'cpf' | 'cnpj';
6
6
  export type NexCustomerStatus = 'active' | 'inactive';
7
7
 
8
+ /**
9
+ * feat-125 — papel de um lead do tenant `hub-medica` em relação a um cliente do
10
+ * Nexus. Enum tipado (e não dicionário) por decisão do time: papel novo é
11
+ * raríssimo, e a tipagem forte vale mais que evitar um release.
12
+ */
13
+ export const NexCustomerLeadRoleEnum = {
14
+ Financial: 'financial',
15
+ Administrative: 'administrative',
16
+ Doctor: 'doctor',
17
+ } as const;
18
+
19
+ export type NexCustomerLeadRole =
20
+ (typeof NexCustomerLeadRoleEnum)[keyof typeof NexCustomerLeadRoleEnum];
21
+
8
22
  // ── Sub-interfaces ──
9
23
 
10
24
  export interface INexCustomerTenantRef {
@@ -12,6 +26,22 @@ export interface INexCustomerTenantRef {
12
26
  display_name?: string | null;
13
27
  }
14
28
 
29
+ /**
30
+ * feat-125 — vínculo com um lead do CRM do `hub-medica`, com o papel que aquele
31
+ * lead cumpre para este cliente.
32
+ *
33
+ * NÃO confundir com `tenant_refs`, que é outro eixo: lá é "o tenant que este
34
+ * cliente OPERA" (a instância dele na plataforma); aqui é "quem fala com este
35
+ * cliente pela Hub Médica".
36
+ *
37
+ * A chave de unicidade é o PAR (lead_id, role): o mesmo lead pode ser contato
38
+ * financeiro e administrativo do mesmo cliente.
39
+ */
40
+ export interface INexCustomerLeadRef {
41
+ lead_id: string;
42
+ role: NexCustomerLeadRole;
43
+ }
44
+
15
45
  export interface INexCustomerAddress {
16
46
  zip?: string | null;
17
47
  street?: string | null;
@@ -58,6 +88,18 @@ export interface INexCustomer extends IFireGlobalDoc {
58
88
  // Fiscal data (PJ)
59
89
  fiscal_data?: INexCustomerFiscalData | null;
60
90
 
91
+ /**
92
+ * feat-125 — leads do `hub-medica` que representam este cliente, por papel.
93
+ * Lado AUTORITATIVO do vínculo: é o que o envio de notificação consulta para
94
+ * anexar o `crm_lead` e cair na thread do hub-omni.
95
+ *
96
+ * NUNCA consultar com `array-contains`: o operador exige igualdade do objeto
97
+ * inteiro, então a query quebra em silêncio assim que a entrada ganhar um campo
98
+ * — foi o que travou reusar `tenant_refs` para isto. A busca reversa se faz pelo
99
+ * lado do lead, via `externalLinkKeys array-contains 'nex_customer:{id}'`.
100
+ */
101
+ hm_leads?: INexCustomerLeadRef[];
102
+
61
103
  // Notes
62
104
  notes?: string | null;
63
105
  }
@@ -19,10 +19,35 @@ export declare const ExternalObjectTypeEnum: {
19
19
  readonly NexCustomer: "nex_customer";
20
20
  };
21
21
  export type ExternalObjectType = (typeof ExternalObjectTypeEnum)[keyof typeof ExternalObjectTypeEnum];
22
+ /**
23
+ * feat-125 — sistema DONO do objeto vinculado, quando ele não vive no tenant.
24
+ *
25
+ * Existe porque o vínculo passou a atravessar a fronteira da plataforma: o lead do
26
+ * `hub-medica` aponta para um cliente do Nexus, que é doc de `core/nexus` e não do
27
+ * tenant. Sem essa marca, quem lê um `externalLink` não tem como saber que não
28
+ * adianta procurar o objeto no próprio tenant.
29
+ */
30
+ export declare const ExternalOwnerSystemEnum: {
31
+ readonly Nexus: "nexus";
32
+ };
33
+ export type ExternalOwnerSystem = (typeof ExternalOwnerSystemEnum)[keyof typeof ExternalOwnerSystemEnum];
22
34
  export interface IExternalLink {
23
35
  type: ExternalObjectType;
24
36
  id: string;
25
37
  label?: string;
26
38
  ref?: FirestoreDocumentReference;
39
+ /**
40
+ * feat-125 — sistema dono do objeto quando ele NÃO vive no tenant.
41
+ *
42
+ * **Ausente = objeto do próprio tenant**, que é o caso de todo vínculo existente
43
+ * até aqui (lead↔paciente, task, invoice, payment-link). Por isso o campo é
44
+ * opcional e nada precisa ser migrado.
45
+ *
46
+ * Consumidores de UI tratam tipo desconhecido por allowlist com fallback (chip
47
+ * não-navegável), então um link externo já degrada bem sem ler este campo — ele
48
+ * serve para quem quiser distinguir "não conheço este tipo" de "este objeto é de
49
+ * outro sistema".
50
+ */
51
+ owner?: ExternalOwnerSystem;
27
52
  [key: string]: unknown;
28
53
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExternalObjectTypeEnum = void 0;
3
+ exports.ExternalOwnerSystemEnum = exports.ExternalObjectTypeEnum = void 0;
4
4
  // ----- External object links (for unified UI views across modules)
5
5
  // Promoted from evo-task to shared for reuse in invoices, tasks, and other modules
6
6
  exports.ExternalObjectTypeEnum = {
@@ -22,3 +22,14 @@ exports.ExternalObjectTypeEnum = {
22
22
  NexContract: "nex_contract",
23
23
  NexCustomer: "nex_customer",
24
24
  };
25
+ /**
26
+ * feat-125 — sistema DONO do objeto vinculado, quando ele não vive no tenant.
27
+ *
28
+ * Existe porque o vínculo passou a atravessar a fronteira da plataforma: o lead do
29
+ * `hub-medica` aponta para um cliente do Nexus, que é doc de `core/nexus` e não do
30
+ * tenant. Sem essa marca, quem lê um `externalLink` não tem como saber que não
31
+ * adianta procurar o objeto no próprio tenant.
32
+ */
33
+ exports.ExternalOwnerSystemEnum = {
34
+ Nexus: "nexus",
35
+ };
@@ -26,10 +26,38 @@ export const ExternalObjectTypeEnum = {
26
26
  export type ExternalObjectType =
27
27
  (typeof ExternalObjectTypeEnum)[keyof typeof ExternalObjectTypeEnum];
28
28
 
29
+ /**
30
+ * feat-125 — sistema DONO do objeto vinculado, quando ele não vive no tenant.
31
+ *
32
+ * Existe porque o vínculo passou a atravessar a fronteira da plataforma: o lead do
33
+ * `hub-medica` aponta para um cliente do Nexus, que é doc de `core/nexus` e não do
34
+ * tenant. Sem essa marca, quem lê um `externalLink` não tem como saber que não
35
+ * adianta procurar o objeto no próprio tenant.
36
+ */
37
+ export const ExternalOwnerSystemEnum = {
38
+ Nexus: "nexus",
39
+ } as const;
40
+
41
+ export type ExternalOwnerSystem =
42
+ (typeof ExternalOwnerSystemEnum)[keyof typeof ExternalOwnerSystemEnum];
43
+
29
44
  export interface IExternalLink {
30
45
  type: ExternalObjectType;
31
46
  id: string;
32
47
  label?: string;
33
48
  ref?: FirestoreDocumentReference;
49
+ /**
50
+ * feat-125 — sistema dono do objeto quando ele NÃO vive no tenant.
51
+ *
52
+ * **Ausente = objeto do próprio tenant**, que é o caso de todo vínculo existente
53
+ * até aqui (lead↔paciente, task, invoice, payment-link). Por isso o campo é
54
+ * opcional e nada precisa ser migrado.
55
+ *
56
+ * Consumidores de UI tratam tipo desconhecido por allowlist com fallback (chip
57
+ * não-navegável), então um link externo já degrada bem sem ler este campo — ele
58
+ * serve para quem quiser distinguir "não conheço este tipo" de "este objeto é de
59
+ * outro sistema".
60
+ */
61
+ owner?: ExternalOwnerSystem;
34
62
  [key: string]: unknown;
35
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.507",
3
+ "version": "1.3.512",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",