@kl1/contracts 1.0.15 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/index.js +1551 -851
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1551 -851
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/app/index.d.ts +17 -0
  6. package/dist/src/app/index.d.ts.map +1 -0
  7. package/dist/src/call-log/schema.d.ts +2 -2
  8. package/dist/src/chat/index.d.ts +1437 -3140
  9. package/dist/src/chat/index.d.ts.map +1 -1
  10. package/dist/src/chat/schema.d.ts +256 -47
  11. package/dist/src/chat/schema.d.ts.map +1 -1
  12. package/dist/src/chat/validation.d.ts +5327 -92
  13. package/dist/src/chat/validation.d.ts.map +1 -1
  14. package/dist/src/contact/index.d.ts +4079 -581
  15. package/dist/src/contact/index.d.ts.map +1 -1
  16. package/dist/src/contact/validation.d.ts +3148 -0
  17. package/dist/src/contact/validation.d.ts.map +1 -1
  18. package/dist/src/contract.d.ts +25332 -13715
  19. package/dist/src/contract.d.ts.map +1 -1
  20. package/dist/src/cx-log/index.d.ts +8 -8
  21. package/dist/src/cx-log/schema.d.ts +4 -4
  22. package/dist/src/mail/mail-contract.d.ts +1316 -1316
  23. package/dist/src/mail/mail-server.d.ts +216 -0
  24. package/dist/src/mail/mail-server.d.ts.map +1 -0
  25. package/dist/src/mail/message-contract.d.ts +56 -56
  26. package/dist/src/mail/room-contract.d.ts +1254 -1254
  27. package/dist/src/mail/schemas/message.schema.d.ts +33 -33
  28. package/dist/src/mail/schemas/room-validation.schema.d.ts +408 -408
  29. package/dist/src/mail/schemas/room.schema.d.ts +270 -270
  30. package/dist/src/messenger/index.d.ts +5232 -54
  31. package/dist/src/messenger/index.d.ts.map +1 -1
  32. package/dist/src/platform-contact/schema.d.ts +2 -2
  33. package/dist/src/ticket/index.d.ts +4662 -0
  34. package/dist/src/ticket/index.d.ts.map +1 -0
  35. package/dist/src/ticket/schema.d.ts +677 -5
  36. package/dist/src/ticket/schema.d.ts.map +1 -1
  37. package/dist/src/ticket/validation.d.ts +637 -0
  38. package/dist/src/ticket/validation.d.ts.map +1 -0
  39. package/package.json +1 -1
@@ -6,7 +6,13 @@ export type CreateContactResponse = z.infer<typeof ContactContractValidationSche
6
6
  export type CreateContactByPhoneRequest = z.infer<typeof ContactContractValidationSchema.createContactByPhone.request>;
7
7
  export type CreateContactByPhoneResponse = z.infer<typeof ContactContractValidationSchema.createContactByPhone.response>;
8
8
  export type GetAllContactRequest = z.infer<typeof ContactContractValidationSchema.getAll.request>;
9
+ export type FilterContactsRequest = z.infer<typeof ContactContractValidationSchema.filterContacts.request>;
10
+ export type AddAttachmentsToContactRequest = z.infer<typeof ContactContractValidationSchema.addAttachments.request>;
9
11
  export type UpdateContactRequest = Partial<CreateContactRequest>;
12
+ export type UpdateContactFromOngoingCallRequest = Partial<z.infer<typeof ContactContractValidationSchema.updateFromOngoingCall.request>>;
13
+ export type MergeContactsRequest = z.infer<typeof ContactContractValidationSchema.merge.request>;
14
+ export type CheckContactPhoneRequest = z.infer<typeof ContactContractValidationSchema.checkContactPhone.request>;
15
+ export type CheckContactEmailRequest = z.infer<typeof ContactContractValidationSchema.checkContactEmail.request>;
10
16
  export type UpdateContactResponse = CreateContactResponse;
11
17
  export type Contact = z.infer<typeof ContactSchema>;
12
18
  export declare const contactContract: {
@@ -1449,6 +1455,7 @@ export declare const contactContract: {
1449
1455
  page: z.ZodNumber;
1450
1456
  pageSize: z.ZodNumber;
1451
1457
  total: z.ZodNumber;
1458
+ lastPage: z.ZodNumber;
1452
1459
  data: z.ZodArray<z.ZodObject<{
1453
1460
  id: z.ZodString;
1454
1461
  createdAt: z.ZodDate;
@@ -2295,6 +2302,7 @@ export declare const contactContract: {
2295
2302
  total: number;
2296
2303
  page: number;
2297
2304
  pageSize: number;
2305
+ lastPage: number;
2298
2306
  requestId: string;
2299
2307
  }, {
2300
2308
  data: {
@@ -2402,6 +2410,7 @@ export declare const contactContract: {
2402
2410
  total: number;
2403
2411
  page: number;
2404
2412
  pageSize: number;
2413
+ lastPage: number;
2405
2414
  requestId: string;
2406
2415
  }>;
2407
2416
  400: z.ZodObject<{
@@ -2468,6 +2477,1050 @@ export declare const contactContract: {
2468
2477
  authorization: string;
2469
2478
  }>>>;
2470
2479
  };
2480
+ filterContacts: {
2481
+ summary: "Get all contacts by filtering with only keyword";
2482
+ method: "GET";
2483
+ query: z.ZodObject<{
2484
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2485
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
2486
+ keyword: z.ZodOptional<z.ZodString>;
2487
+ }, "strip", z.ZodTypeAny, {
2488
+ page?: number | undefined;
2489
+ pageSize?: number | undefined;
2490
+ keyword?: string | undefined;
2491
+ }, {
2492
+ page?: number | undefined;
2493
+ pageSize?: number | undefined;
2494
+ keyword?: string | undefined;
2495
+ }>;
2496
+ responses: {
2497
+ 200: z.ZodObject<{
2498
+ requestId: z.ZodString;
2499
+ page: z.ZodNumber;
2500
+ pageSize: z.ZodNumber;
2501
+ total: z.ZodNumber;
2502
+ lastPage: z.ZodNumber;
2503
+ data: z.ZodArray<z.ZodObject<{
2504
+ id: z.ZodString;
2505
+ createdAt: z.ZodDate;
2506
+ updatedAt: z.ZodDate;
2507
+ deletedAt: z.ZodNullable<z.ZodDate>;
2508
+ name: z.ZodString;
2509
+ address: z.ZodNullable<z.ZodString>;
2510
+ channel: z.ZodNullable<z.ZodString>;
2511
+ notes: z.ZodNullable<z.ZodString>;
2512
+ contactProfile: z.ZodNullable<z.ZodString>;
2513
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
2514
+ tags: z.ZodArray<z.ZodObject<{
2515
+ id: z.ZodString;
2516
+ createdAt: z.ZodDate;
2517
+ updatedAt: z.ZodDate;
2518
+ deletedAt: z.ZodNullable<z.ZodDate>;
2519
+ name: z.ZodString;
2520
+ }, "strip", z.ZodTypeAny, {
2521
+ id: string;
2522
+ name: string;
2523
+ createdAt: Date;
2524
+ updatedAt: Date;
2525
+ deletedAt: Date | null;
2526
+ }, {
2527
+ id: string;
2528
+ name: string;
2529
+ createdAt: Date;
2530
+ updatedAt: Date;
2531
+ deletedAt: Date | null;
2532
+ }>, "many">;
2533
+ company: z.ZodNullable<z.ZodObject<Omit<{
2534
+ id: z.ZodString;
2535
+ createdAt: z.ZodDate;
2536
+ updatedAt: z.ZodDate;
2537
+ deletedAt: z.ZodNullable<z.ZodDate>;
2538
+ name: z.ZodOptional<z.ZodString>;
2539
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2540
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2541
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2542
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2543
+ id: z.ZodString;
2544
+ createdAt: z.ZodDate;
2545
+ updatedAt: z.ZodDate;
2546
+ deletedAt: z.ZodNullable<z.ZodDate>;
2547
+ textValue: z.ZodNullable<z.ZodString>;
2548
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2549
+ numberValue: z.ZodNullable<z.ZodNumber>;
2550
+ dateValue: z.ZodNullable<z.ZodString>;
2551
+ attribute: z.ZodObject<Omit<{
2552
+ id: z.ZodString;
2553
+ createdAt: z.ZodDate;
2554
+ updatedAt: z.ZodDate;
2555
+ deletedAt: z.ZodNullable<z.ZodDate>;
2556
+ systemName: z.ZodString;
2557
+ displayName: z.ZodString;
2558
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2559
+ position: z.ZodNumber;
2560
+ isDefault: z.ZodBoolean;
2561
+ isArchived: z.ZodBoolean;
2562
+ isRequired: z.ZodBoolean;
2563
+ isUnique: z.ZodBoolean;
2564
+ options: z.ZodArray<z.ZodObject<{
2565
+ position: z.ZodNumber;
2566
+ value: z.ZodString;
2567
+ label: z.ZodString;
2568
+ isDefault: z.ZodBoolean;
2569
+ id: z.ZodString;
2570
+ }, "strip", z.ZodTypeAny, {
2571
+ id: string;
2572
+ position: number;
2573
+ value: string;
2574
+ label: string;
2575
+ isDefault: boolean;
2576
+ }, {
2577
+ id: string;
2578
+ position: number;
2579
+ value: string;
2580
+ label: string;
2581
+ isDefault: boolean;
2582
+ }>, "many">;
2583
+ group: z.ZodObject<{
2584
+ id: z.ZodString;
2585
+ createdAt: z.ZodDate;
2586
+ updatedAt: z.ZodDate;
2587
+ deletedAt: z.ZodNullable<z.ZodDate>;
2588
+ systemName: z.ZodString;
2589
+ displayName: z.ZodString;
2590
+ }, "strip", z.ZodTypeAny, {
2591
+ id: string;
2592
+ createdAt: Date;
2593
+ updatedAt: Date;
2594
+ deletedAt: Date | null;
2595
+ systemName: string;
2596
+ displayName: string;
2597
+ }, {
2598
+ id: string;
2599
+ createdAt: Date;
2600
+ updatedAt: Date;
2601
+ deletedAt: Date | null;
2602
+ systemName: string;
2603
+ displayName: string;
2604
+ }>;
2605
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2606
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2607
+ id: string;
2608
+ position: number;
2609
+ createdAt: Date;
2610
+ updatedAt: Date;
2611
+ deletedAt: Date | null;
2612
+ isDefault: boolean;
2613
+ systemName: string;
2614
+ displayName: string;
2615
+ isArchived: boolean;
2616
+ isRequired: boolean;
2617
+ isUnique: boolean;
2618
+ }, {
2619
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2620
+ id: string;
2621
+ position: number;
2622
+ createdAt: Date;
2623
+ updatedAt: Date;
2624
+ deletedAt: Date | null;
2625
+ isDefault: boolean;
2626
+ systemName: string;
2627
+ displayName: string;
2628
+ isArchived: boolean;
2629
+ isRequired: boolean;
2630
+ isUnique: boolean;
2631
+ }>;
2632
+ }, "strip", z.ZodTypeAny, {
2633
+ id: string;
2634
+ createdAt: Date;
2635
+ updatedAt: Date;
2636
+ deletedAt: Date | null;
2637
+ attribute: {
2638
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2639
+ id: string;
2640
+ position: number;
2641
+ createdAt: Date;
2642
+ updatedAt: Date;
2643
+ deletedAt: Date | null;
2644
+ isDefault: boolean;
2645
+ systemName: string;
2646
+ displayName: string;
2647
+ isArchived: boolean;
2648
+ isRequired: boolean;
2649
+ isUnique: boolean;
2650
+ };
2651
+ textValue: string | null;
2652
+ booleanValue: boolean | null;
2653
+ numberValue: number | null;
2654
+ dateValue: string | null;
2655
+ }, {
2656
+ id: string;
2657
+ createdAt: Date;
2658
+ updatedAt: Date;
2659
+ deletedAt: Date | null;
2660
+ attribute: {
2661
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2662
+ id: string;
2663
+ position: number;
2664
+ createdAt: Date;
2665
+ updatedAt: Date;
2666
+ deletedAt: Date | null;
2667
+ isDefault: boolean;
2668
+ systemName: string;
2669
+ displayName: string;
2670
+ isArchived: boolean;
2671
+ isRequired: boolean;
2672
+ isUnique: boolean;
2673
+ };
2674
+ textValue: string | null;
2675
+ booleanValue: boolean | null;
2676
+ numberValue: number | null;
2677
+ dateValue: string | null;
2678
+ }>, "many">>;
2679
+ }, "customFields">, "strip", z.ZodTypeAny, {
2680
+ id: string;
2681
+ createdAt: Date;
2682
+ updatedAt: Date;
2683
+ deletedAt: Date | null;
2684
+ address?: string | null | undefined;
2685
+ name?: string | undefined;
2686
+ phone?: string | null | undefined;
2687
+ industry?: string | null | undefined;
2688
+ }, {
2689
+ id: string;
2690
+ createdAt: Date;
2691
+ updatedAt: Date;
2692
+ deletedAt: Date | null;
2693
+ address?: string | null | undefined;
2694
+ name?: string | undefined;
2695
+ phone?: string | null | undefined;
2696
+ industry?: string | null | undefined;
2697
+ }>>;
2698
+ customFields: z.ZodArray<z.ZodObject<{
2699
+ id: z.ZodString;
2700
+ createdAt: z.ZodDate;
2701
+ updatedAt: z.ZodDate;
2702
+ deletedAt: z.ZodNullable<z.ZodDate>;
2703
+ textValue: z.ZodNullable<z.ZodString>;
2704
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
2705
+ numberValue: z.ZodNullable<z.ZodNumber>;
2706
+ dateValue: z.ZodNullable<z.ZodDate>;
2707
+ attribute: z.ZodObject<Omit<{
2708
+ id: z.ZodString;
2709
+ createdAt: z.ZodDate;
2710
+ updatedAt: z.ZodDate;
2711
+ deletedAt: z.ZodNullable<z.ZodDate>;
2712
+ systemName: z.ZodString;
2713
+ displayName: z.ZodString;
2714
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
2715
+ position: z.ZodNumber;
2716
+ isDefault: z.ZodBoolean;
2717
+ isArchived: z.ZodBoolean;
2718
+ isRequired: z.ZodBoolean;
2719
+ isUnique: z.ZodBoolean;
2720
+ options: z.ZodArray<z.ZodObject<{
2721
+ position: z.ZodNumber;
2722
+ value: z.ZodString;
2723
+ label: z.ZodString;
2724
+ isDefault: z.ZodBoolean;
2725
+ id: z.ZodString;
2726
+ }, "strip", z.ZodTypeAny, {
2727
+ id: string;
2728
+ position: number;
2729
+ value: string;
2730
+ label: string;
2731
+ isDefault: boolean;
2732
+ }, {
2733
+ id: string;
2734
+ position: number;
2735
+ value: string;
2736
+ label: string;
2737
+ isDefault: boolean;
2738
+ }>, "many">;
2739
+ group: z.ZodObject<{
2740
+ id: z.ZodString;
2741
+ createdAt: z.ZodDate;
2742
+ updatedAt: z.ZodDate;
2743
+ deletedAt: z.ZodNullable<z.ZodDate>;
2744
+ systemName: z.ZodString;
2745
+ displayName: z.ZodString;
2746
+ }, "strip", z.ZodTypeAny, {
2747
+ id: string;
2748
+ createdAt: Date;
2749
+ updatedAt: Date;
2750
+ deletedAt: Date | null;
2751
+ systemName: string;
2752
+ displayName: string;
2753
+ }, {
2754
+ id: string;
2755
+ createdAt: Date;
2756
+ updatedAt: Date;
2757
+ deletedAt: Date | null;
2758
+ systemName: string;
2759
+ displayName: string;
2760
+ }>;
2761
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
2762
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2763
+ id: string;
2764
+ position: number;
2765
+ createdAt: Date;
2766
+ updatedAt: Date;
2767
+ deletedAt: Date | null;
2768
+ isDefault: boolean;
2769
+ systemName: string;
2770
+ displayName: string;
2771
+ isArchived: boolean;
2772
+ isRequired: boolean;
2773
+ isUnique: boolean;
2774
+ }, {
2775
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2776
+ id: string;
2777
+ position: number;
2778
+ createdAt: Date;
2779
+ updatedAt: Date;
2780
+ deletedAt: Date | null;
2781
+ isDefault: boolean;
2782
+ systemName: string;
2783
+ displayName: string;
2784
+ isArchived: boolean;
2785
+ isRequired: boolean;
2786
+ isUnique: boolean;
2787
+ }>;
2788
+ uploads: z.ZodArray<z.ZodObject<{
2789
+ id: z.ZodString;
2790
+ createdAt: z.ZodDate;
2791
+ updatedAt: z.ZodDate;
2792
+ deletedAt: z.ZodNullable<z.ZodDate>;
2793
+ customFieldId: z.ZodString;
2794
+ upload: z.ZodObject<{
2795
+ id: z.ZodString;
2796
+ createdAt: z.ZodDate;
2797
+ updatedAt: z.ZodDate;
2798
+ deletedAt: z.ZodNullable<z.ZodDate>;
2799
+ bucketName: z.ZodString;
2800
+ fileName: z.ZodString;
2801
+ fileSize: z.ZodNumber;
2802
+ fileKey: z.ZodString;
2803
+ }, "strip", z.ZodTypeAny, {
2804
+ id: string;
2805
+ createdAt: Date;
2806
+ updatedAt: Date;
2807
+ deletedAt: Date | null;
2808
+ fileName: string;
2809
+ fileKey: string;
2810
+ bucketName: string;
2811
+ fileSize: number;
2812
+ }, {
2813
+ id: string;
2814
+ createdAt: Date;
2815
+ updatedAt: Date;
2816
+ deletedAt: Date | null;
2817
+ fileName: string;
2818
+ fileKey: string;
2819
+ bucketName: string;
2820
+ fileSize: number;
2821
+ }>;
2822
+ }, "strip", z.ZodTypeAny, {
2823
+ id: string;
2824
+ createdAt: Date;
2825
+ updatedAt: Date;
2826
+ deletedAt: Date | null;
2827
+ customFieldId: string;
2828
+ upload: {
2829
+ id: string;
2830
+ createdAt: Date;
2831
+ updatedAt: Date;
2832
+ deletedAt: Date | null;
2833
+ fileName: string;
2834
+ fileKey: string;
2835
+ bucketName: string;
2836
+ fileSize: number;
2837
+ };
2838
+ }, {
2839
+ id: string;
2840
+ createdAt: Date;
2841
+ updatedAt: Date;
2842
+ deletedAt: Date | null;
2843
+ customFieldId: string;
2844
+ upload: {
2845
+ id: string;
2846
+ createdAt: Date;
2847
+ updatedAt: Date;
2848
+ deletedAt: Date | null;
2849
+ fileName: string;
2850
+ fileKey: string;
2851
+ bucketName: string;
2852
+ fileSize: number;
2853
+ };
2854
+ }>, "many">;
2855
+ }, "strip", z.ZodTypeAny, {
2856
+ id: string;
2857
+ createdAt: Date;
2858
+ updatedAt: Date;
2859
+ deletedAt: Date | null;
2860
+ attribute: {
2861
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2862
+ id: string;
2863
+ position: number;
2864
+ createdAt: Date;
2865
+ updatedAt: Date;
2866
+ deletedAt: Date | null;
2867
+ isDefault: boolean;
2868
+ systemName: string;
2869
+ displayName: string;
2870
+ isArchived: boolean;
2871
+ isRequired: boolean;
2872
+ isUnique: boolean;
2873
+ };
2874
+ textValue: string | null;
2875
+ booleanValue: boolean | null;
2876
+ numberValue: number | null;
2877
+ dateValue: Date | null;
2878
+ uploads: {
2879
+ id: string;
2880
+ createdAt: Date;
2881
+ updatedAt: Date;
2882
+ deletedAt: Date | null;
2883
+ customFieldId: string;
2884
+ upload: {
2885
+ id: string;
2886
+ createdAt: Date;
2887
+ updatedAt: Date;
2888
+ deletedAt: Date | null;
2889
+ fileName: string;
2890
+ fileKey: string;
2891
+ bucketName: string;
2892
+ fileSize: number;
2893
+ };
2894
+ }[];
2895
+ }, {
2896
+ id: string;
2897
+ createdAt: Date;
2898
+ updatedAt: Date;
2899
+ deletedAt: Date | null;
2900
+ attribute: {
2901
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
2902
+ id: string;
2903
+ position: number;
2904
+ createdAt: Date;
2905
+ updatedAt: Date;
2906
+ deletedAt: Date | null;
2907
+ isDefault: boolean;
2908
+ systemName: string;
2909
+ displayName: string;
2910
+ isArchived: boolean;
2911
+ isRequired: boolean;
2912
+ isUnique: boolean;
2913
+ };
2914
+ textValue: string | null;
2915
+ booleanValue: boolean | null;
2916
+ numberValue: number | null;
2917
+ dateValue: Date | null;
2918
+ uploads: {
2919
+ id: string;
2920
+ createdAt: Date;
2921
+ updatedAt: Date;
2922
+ deletedAt: Date | null;
2923
+ customFieldId: string;
2924
+ upload: {
2925
+ id: string;
2926
+ createdAt: Date;
2927
+ updatedAt: Date;
2928
+ deletedAt: Date | null;
2929
+ fileName: string;
2930
+ fileKey: string;
2931
+ bucketName: string;
2932
+ fileSize: number;
2933
+ };
2934
+ }[];
2935
+ }>, "many">;
2936
+ contactEmails: z.ZodArray<z.ZodObject<{
2937
+ id: z.ZodString;
2938
+ createdAt: z.ZodDate;
2939
+ updatedAt: z.ZodDate;
2940
+ deletedAt: z.ZodNullable<z.ZodDate>;
2941
+ email: z.ZodString;
2942
+ isPrimary: z.ZodBoolean;
2943
+ }, "strip", z.ZodTypeAny, {
2944
+ id: string;
2945
+ isPrimary: boolean;
2946
+ email: string;
2947
+ createdAt: Date;
2948
+ updatedAt: Date;
2949
+ deletedAt: Date | null;
2950
+ }, {
2951
+ id: string;
2952
+ isPrimary: boolean;
2953
+ email: string;
2954
+ createdAt: Date;
2955
+ updatedAt: Date;
2956
+ deletedAt: Date | null;
2957
+ }>, "many">;
2958
+ contactPhones: z.ZodArray<z.ZodObject<{
2959
+ id: z.ZodString;
2960
+ createdAt: z.ZodDate;
2961
+ updatedAt: z.ZodDate;
2962
+ deletedAt: z.ZodNullable<z.ZodDate>;
2963
+ phone: z.ZodString;
2964
+ isPrimary: z.ZodBoolean;
2965
+ }, "strip", z.ZodTypeAny, {
2966
+ id: string;
2967
+ isPrimary: boolean;
2968
+ createdAt: Date;
2969
+ updatedAt: Date;
2970
+ deletedAt: Date | null;
2971
+ phone: string;
2972
+ }, {
2973
+ id: string;
2974
+ isPrimary: boolean;
2975
+ createdAt: Date;
2976
+ updatedAt: Date;
2977
+ deletedAt: Date | null;
2978
+ phone: string;
2979
+ }>, "many">;
2980
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
2981
+ id: z.ZodString;
2982
+ createdAt: z.ZodDate;
2983
+ updatedAt: z.ZodDate;
2984
+ deletedAt: z.ZodNullable<z.ZodDate>;
2985
+ entityId: z.ZodString;
2986
+ description: z.ZodString;
2987
+ entityType: z.ZodObject<{
2988
+ id: z.ZodString;
2989
+ createdAt: z.ZodDate;
2990
+ updatedAt: z.ZodDate;
2991
+ deletedAt: z.ZodNullable<z.ZodDate>;
2992
+ entity: z.ZodString;
2993
+ description: z.ZodNullable<z.ZodString>;
2994
+ }, "strip", z.ZodTypeAny, {
2995
+ id: string;
2996
+ description: string | null;
2997
+ createdAt: Date;
2998
+ updatedAt: Date;
2999
+ deletedAt: Date | null;
3000
+ entity: string;
3001
+ }, {
3002
+ id: string;
3003
+ description: string | null;
3004
+ createdAt: Date;
3005
+ updatedAt: Date;
3006
+ deletedAt: Date | null;
3007
+ entity: string;
3008
+ }>;
3009
+ }, "strip", z.ZodTypeAny, {
3010
+ id: string;
3011
+ description: string;
3012
+ createdAt: Date;
3013
+ updatedAt: Date;
3014
+ deletedAt: Date | null;
3015
+ entityId: string;
3016
+ entityType: {
3017
+ id: string;
3018
+ description: string | null;
3019
+ createdAt: Date;
3020
+ updatedAt: Date;
3021
+ deletedAt: Date | null;
3022
+ entity: string;
3023
+ };
3024
+ }, {
3025
+ id: string;
3026
+ description: string;
3027
+ createdAt: Date;
3028
+ updatedAt: Date;
3029
+ deletedAt: Date | null;
3030
+ entityId: string;
3031
+ entityType: {
3032
+ id: string;
3033
+ description: string | null;
3034
+ createdAt: Date;
3035
+ updatedAt: Date;
3036
+ deletedAt: Date | null;
3037
+ entity: string;
3038
+ };
3039
+ }>, "many">>;
3040
+ }, "strip", z.ZodTypeAny, {
3041
+ id: string;
3042
+ channel: string | null;
3043
+ address: string | null;
3044
+ name: string;
3045
+ createdAt: Date;
3046
+ updatedAt: Date;
3047
+ deletedAt: Date | null;
3048
+ customFields: {
3049
+ id: string;
3050
+ createdAt: Date;
3051
+ updatedAt: Date;
3052
+ deletedAt: Date | null;
3053
+ attribute: {
3054
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3055
+ id: string;
3056
+ position: number;
3057
+ createdAt: Date;
3058
+ updatedAt: Date;
3059
+ deletedAt: Date | null;
3060
+ isDefault: boolean;
3061
+ systemName: string;
3062
+ displayName: string;
3063
+ isArchived: boolean;
3064
+ isRequired: boolean;
3065
+ isUnique: boolean;
3066
+ };
3067
+ textValue: string | null;
3068
+ booleanValue: boolean | null;
3069
+ numberValue: number | null;
3070
+ dateValue: Date | null;
3071
+ uploads: {
3072
+ id: string;
3073
+ createdAt: Date;
3074
+ updatedAt: Date;
3075
+ deletedAt: Date | null;
3076
+ customFieldId: string;
3077
+ upload: {
3078
+ id: string;
3079
+ createdAt: Date;
3080
+ updatedAt: Date;
3081
+ deletedAt: Date | null;
3082
+ fileName: string;
3083
+ fileKey: string;
3084
+ bucketName: string;
3085
+ fileSize: number;
3086
+ };
3087
+ }[];
3088
+ }[];
3089
+ notes: string | null;
3090
+ contactProfile: string | null;
3091
+ socialProfileUrl: string | null;
3092
+ tags: {
3093
+ id: string;
3094
+ name: string;
3095
+ createdAt: Date;
3096
+ updatedAt: Date;
3097
+ deletedAt: Date | null;
3098
+ }[];
3099
+ company: {
3100
+ id: string;
3101
+ createdAt: Date;
3102
+ updatedAt: Date;
3103
+ deletedAt: Date | null;
3104
+ address?: string | null | undefined;
3105
+ name?: string | undefined;
3106
+ phone?: string | null | undefined;
3107
+ industry?: string | null | undefined;
3108
+ } | null;
3109
+ contactEmails: {
3110
+ id: string;
3111
+ isPrimary: boolean;
3112
+ email: string;
3113
+ createdAt: Date;
3114
+ updatedAt: Date;
3115
+ deletedAt: Date | null;
3116
+ }[];
3117
+ contactPhones: {
3118
+ id: string;
3119
+ isPrimary: boolean;
3120
+ createdAt: Date;
3121
+ updatedAt: Date;
3122
+ deletedAt: Date | null;
3123
+ phone: string;
3124
+ }[];
3125
+ activityLogs?: {
3126
+ id: string;
3127
+ description: string;
3128
+ createdAt: Date;
3129
+ updatedAt: Date;
3130
+ deletedAt: Date | null;
3131
+ entityId: string;
3132
+ entityType: {
3133
+ id: string;
3134
+ description: string | null;
3135
+ createdAt: Date;
3136
+ updatedAt: Date;
3137
+ deletedAt: Date | null;
3138
+ entity: string;
3139
+ };
3140
+ }[] | undefined;
3141
+ }, {
3142
+ id: string;
3143
+ channel: string | null;
3144
+ address: string | null;
3145
+ name: string;
3146
+ createdAt: Date;
3147
+ updatedAt: Date;
3148
+ deletedAt: Date | null;
3149
+ customFields: {
3150
+ id: string;
3151
+ createdAt: Date;
3152
+ updatedAt: Date;
3153
+ deletedAt: Date | null;
3154
+ attribute: {
3155
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3156
+ id: string;
3157
+ position: number;
3158
+ createdAt: Date;
3159
+ updatedAt: Date;
3160
+ deletedAt: Date | null;
3161
+ isDefault: boolean;
3162
+ systemName: string;
3163
+ displayName: string;
3164
+ isArchived: boolean;
3165
+ isRequired: boolean;
3166
+ isUnique: boolean;
3167
+ };
3168
+ textValue: string | null;
3169
+ booleanValue: boolean | null;
3170
+ numberValue: number | null;
3171
+ dateValue: Date | null;
3172
+ uploads: {
3173
+ id: string;
3174
+ createdAt: Date;
3175
+ updatedAt: Date;
3176
+ deletedAt: Date | null;
3177
+ customFieldId: string;
3178
+ upload: {
3179
+ id: string;
3180
+ createdAt: Date;
3181
+ updatedAt: Date;
3182
+ deletedAt: Date | null;
3183
+ fileName: string;
3184
+ fileKey: string;
3185
+ bucketName: string;
3186
+ fileSize: number;
3187
+ };
3188
+ }[];
3189
+ }[];
3190
+ notes: string | null;
3191
+ contactProfile: string | null;
3192
+ socialProfileUrl: string | null;
3193
+ tags: {
3194
+ id: string;
3195
+ name: string;
3196
+ createdAt: Date;
3197
+ updatedAt: Date;
3198
+ deletedAt: Date | null;
3199
+ }[];
3200
+ company: {
3201
+ id: string;
3202
+ createdAt: Date;
3203
+ updatedAt: Date;
3204
+ deletedAt: Date | null;
3205
+ address?: string | null | undefined;
3206
+ name?: string | undefined;
3207
+ phone?: string | null | undefined;
3208
+ industry?: string | null | undefined;
3209
+ } | null;
3210
+ contactEmails: {
3211
+ id: string;
3212
+ isPrimary: boolean;
3213
+ email: string;
3214
+ createdAt: Date;
3215
+ updatedAt: Date;
3216
+ deletedAt: Date | null;
3217
+ }[];
3218
+ contactPhones: {
3219
+ id: string;
3220
+ isPrimary: boolean;
3221
+ createdAt: Date;
3222
+ updatedAt: Date;
3223
+ deletedAt: Date | null;
3224
+ phone: string;
3225
+ }[];
3226
+ activityLogs?: {
3227
+ id: string;
3228
+ description: string;
3229
+ createdAt: Date;
3230
+ updatedAt: Date;
3231
+ deletedAt: Date | null;
3232
+ entityId: string;
3233
+ entityType: {
3234
+ id: string;
3235
+ description: string | null;
3236
+ createdAt: Date;
3237
+ updatedAt: Date;
3238
+ deletedAt: Date | null;
3239
+ entity: string;
3240
+ };
3241
+ }[] | undefined;
3242
+ }>, "many">;
3243
+ }, "strip", z.ZodTypeAny, {
3244
+ data: {
3245
+ id: string;
3246
+ channel: string | null;
3247
+ address: string | null;
3248
+ name: string;
3249
+ createdAt: Date;
3250
+ updatedAt: Date;
3251
+ deletedAt: Date | null;
3252
+ customFields: {
3253
+ id: string;
3254
+ createdAt: Date;
3255
+ updatedAt: Date;
3256
+ deletedAt: Date | null;
3257
+ attribute: {
3258
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3259
+ id: string;
3260
+ position: number;
3261
+ createdAt: Date;
3262
+ updatedAt: Date;
3263
+ deletedAt: Date | null;
3264
+ isDefault: boolean;
3265
+ systemName: string;
3266
+ displayName: string;
3267
+ isArchived: boolean;
3268
+ isRequired: boolean;
3269
+ isUnique: boolean;
3270
+ };
3271
+ textValue: string | null;
3272
+ booleanValue: boolean | null;
3273
+ numberValue: number | null;
3274
+ dateValue: Date | null;
3275
+ uploads: {
3276
+ id: string;
3277
+ createdAt: Date;
3278
+ updatedAt: Date;
3279
+ deletedAt: Date | null;
3280
+ customFieldId: string;
3281
+ upload: {
3282
+ id: string;
3283
+ createdAt: Date;
3284
+ updatedAt: Date;
3285
+ deletedAt: Date | null;
3286
+ fileName: string;
3287
+ fileKey: string;
3288
+ bucketName: string;
3289
+ fileSize: number;
3290
+ };
3291
+ }[];
3292
+ }[];
3293
+ notes: string | null;
3294
+ contactProfile: string | null;
3295
+ socialProfileUrl: string | null;
3296
+ tags: {
3297
+ id: string;
3298
+ name: string;
3299
+ createdAt: Date;
3300
+ updatedAt: Date;
3301
+ deletedAt: Date | null;
3302
+ }[];
3303
+ company: {
3304
+ id: string;
3305
+ createdAt: Date;
3306
+ updatedAt: Date;
3307
+ deletedAt: Date | null;
3308
+ address?: string | null | undefined;
3309
+ name?: string | undefined;
3310
+ phone?: string | null | undefined;
3311
+ industry?: string | null | undefined;
3312
+ } | null;
3313
+ contactEmails: {
3314
+ id: string;
3315
+ isPrimary: boolean;
3316
+ email: string;
3317
+ createdAt: Date;
3318
+ updatedAt: Date;
3319
+ deletedAt: Date | null;
3320
+ }[];
3321
+ contactPhones: {
3322
+ id: string;
3323
+ isPrimary: boolean;
3324
+ createdAt: Date;
3325
+ updatedAt: Date;
3326
+ deletedAt: Date | null;
3327
+ phone: string;
3328
+ }[];
3329
+ activityLogs?: {
3330
+ id: string;
3331
+ description: string;
3332
+ createdAt: Date;
3333
+ updatedAt: Date;
3334
+ deletedAt: Date | null;
3335
+ entityId: string;
3336
+ entityType: {
3337
+ id: string;
3338
+ description: string | null;
3339
+ createdAt: Date;
3340
+ updatedAt: Date;
3341
+ deletedAt: Date | null;
3342
+ entity: string;
3343
+ };
3344
+ }[] | undefined;
3345
+ }[];
3346
+ total: number;
3347
+ page: number;
3348
+ pageSize: number;
3349
+ lastPage: number;
3350
+ requestId: string;
3351
+ }, {
3352
+ data: {
3353
+ id: string;
3354
+ channel: string | null;
3355
+ address: string | null;
3356
+ name: string;
3357
+ createdAt: Date;
3358
+ updatedAt: Date;
3359
+ deletedAt: Date | null;
3360
+ customFields: {
3361
+ id: string;
3362
+ createdAt: Date;
3363
+ updatedAt: Date;
3364
+ deletedAt: Date | null;
3365
+ attribute: {
3366
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3367
+ id: string;
3368
+ position: number;
3369
+ createdAt: Date;
3370
+ updatedAt: Date;
3371
+ deletedAt: Date | null;
3372
+ isDefault: boolean;
3373
+ systemName: string;
3374
+ displayName: string;
3375
+ isArchived: boolean;
3376
+ isRequired: boolean;
3377
+ isUnique: boolean;
3378
+ };
3379
+ textValue: string | null;
3380
+ booleanValue: boolean | null;
3381
+ numberValue: number | null;
3382
+ dateValue: Date | null;
3383
+ uploads: {
3384
+ id: string;
3385
+ createdAt: Date;
3386
+ updatedAt: Date;
3387
+ deletedAt: Date | null;
3388
+ customFieldId: string;
3389
+ upload: {
3390
+ id: string;
3391
+ createdAt: Date;
3392
+ updatedAt: Date;
3393
+ deletedAt: Date | null;
3394
+ fileName: string;
3395
+ fileKey: string;
3396
+ bucketName: string;
3397
+ fileSize: number;
3398
+ };
3399
+ }[];
3400
+ }[];
3401
+ notes: string | null;
3402
+ contactProfile: string | null;
3403
+ socialProfileUrl: string | null;
3404
+ tags: {
3405
+ id: string;
3406
+ name: string;
3407
+ createdAt: Date;
3408
+ updatedAt: Date;
3409
+ deletedAt: Date | null;
3410
+ }[];
3411
+ company: {
3412
+ id: string;
3413
+ createdAt: Date;
3414
+ updatedAt: Date;
3415
+ deletedAt: Date | null;
3416
+ address?: string | null | undefined;
3417
+ name?: string | undefined;
3418
+ phone?: string | null | undefined;
3419
+ industry?: string | null | undefined;
3420
+ } | null;
3421
+ contactEmails: {
3422
+ id: string;
3423
+ isPrimary: boolean;
3424
+ email: string;
3425
+ createdAt: Date;
3426
+ updatedAt: Date;
3427
+ deletedAt: Date | null;
3428
+ }[];
3429
+ contactPhones: {
3430
+ id: string;
3431
+ isPrimary: boolean;
3432
+ createdAt: Date;
3433
+ updatedAt: Date;
3434
+ deletedAt: Date | null;
3435
+ phone: string;
3436
+ }[];
3437
+ activityLogs?: {
3438
+ id: string;
3439
+ description: string;
3440
+ createdAt: Date;
3441
+ updatedAt: Date;
3442
+ deletedAt: Date | null;
3443
+ entityId: string;
3444
+ entityType: {
3445
+ id: string;
3446
+ description: string | null;
3447
+ createdAt: Date;
3448
+ updatedAt: Date;
3449
+ deletedAt: Date | null;
3450
+ entity: string;
3451
+ };
3452
+ }[] | undefined;
3453
+ }[];
3454
+ total: number;
3455
+ page: number;
3456
+ pageSize: number;
3457
+ lastPage: number;
3458
+ requestId: string;
3459
+ }>;
3460
+ 400: z.ZodObject<{
3461
+ message: z.ZodString;
3462
+ }, "strip", z.ZodTypeAny, {
3463
+ message: string;
3464
+ }, {
3465
+ message: string;
3466
+ }>;
3467
+ 409: z.ZodObject<{
3468
+ message: z.ZodString;
3469
+ }, "strip", z.ZodTypeAny, {
3470
+ message: string;
3471
+ }, {
3472
+ message: string;
3473
+ }>;
3474
+ 500: z.ZodObject<{
3475
+ message: z.ZodString;
3476
+ }, "strip", z.ZodTypeAny, {
3477
+ message: string;
3478
+ }, {
3479
+ message: string;
3480
+ }>;
3481
+ 401: z.ZodObject<{
3482
+ message: z.ZodString;
3483
+ error: z.ZodAny;
3484
+ }, "strip", z.ZodTypeAny, {
3485
+ message: string;
3486
+ error?: any;
3487
+ }, {
3488
+ message: string;
3489
+ error?: any;
3490
+ }>;
3491
+ 404: z.ZodObject<{
3492
+ message: z.ZodString;
3493
+ error: z.ZodAny;
3494
+ }, "strip", z.ZodTypeAny, {
3495
+ message: string;
3496
+ error?: any;
3497
+ }, {
3498
+ message: string;
3499
+ error?: any;
3500
+ }>;
3501
+ 422: z.ZodObject<{
3502
+ message: z.ZodString;
3503
+ error: z.ZodAny;
3504
+ }, "strip", z.ZodTypeAny, {
3505
+ message: string;
3506
+ error?: any;
3507
+ }, {
3508
+ message: string;
3509
+ error?: any;
3510
+ }>;
3511
+ };
3512
+ path: "contact/filter";
3513
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3514
+ 'x-tenant': z.ZodString;
3515
+ authorization: z.ZodString;
3516
+ }, "strip", z.ZodTypeAny, {
3517
+ 'x-tenant': string;
3518
+ authorization: string;
3519
+ }, {
3520
+ 'x-tenant': string;
3521
+ authorization: string;
3522
+ }>>>;
3523
+ };
2471
3524
  update: {
2472
3525
  body: z.ZodObject<{
2473
3526
  name: z.ZodOptional<z.ZodObject<{
@@ -2475,274 +3528,2415 @@ export declare const contactContract: {
2475
3528
  attributeId: z.ZodString;
2476
3529
  value: z.ZodString;
2477
3530
  }, "strip", z.ZodTypeAny, {
2478
- value: string;
2479
- isRequired: boolean;
2480
- attributeId: string;
3531
+ value: string;
3532
+ isRequired: boolean;
3533
+ attributeId: string;
3534
+ }, {
3535
+ value: string;
3536
+ isRequired: boolean;
3537
+ attributeId: string;
3538
+ }>>;
3539
+ email: z.ZodOptional<z.ZodObject<{
3540
+ isRequired: z.ZodBoolean;
3541
+ attributeId: z.ZodString;
3542
+ value: z.ZodArray<z.ZodObject<{
3543
+ email: z.ZodString;
3544
+ isPrimary: z.ZodBoolean;
3545
+ }, "strip", z.ZodTypeAny, {
3546
+ isPrimary: boolean;
3547
+ email: string;
3548
+ }, {
3549
+ isPrimary: boolean;
3550
+ email: string;
3551
+ }>, "many">;
3552
+ }, "strip", z.ZodTypeAny, {
3553
+ value: {
3554
+ isPrimary: boolean;
3555
+ email: string;
3556
+ }[];
3557
+ isRequired: boolean;
3558
+ attributeId: string;
3559
+ }, {
3560
+ value: {
3561
+ isPrimary: boolean;
3562
+ email: string;
3563
+ }[];
3564
+ isRequired: boolean;
3565
+ attributeId: string;
3566
+ }>>;
3567
+ channel: z.ZodOptional<z.ZodObject<{
3568
+ isRequired: z.ZodBoolean;
3569
+ attributeId: z.ZodString;
3570
+ value: z.ZodString;
3571
+ }, "strip", z.ZodTypeAny, {
3572
+ value: string;
3573
+ isRequired: boolean;
3574
+ attributeId: string;
3575
+ }, {
3576
+ value: string;
3577
+ isRequired: boolean;
3578
+ attributeId: string;
3579
+ }>>;
3580
+ address: z.ZodOptional<z.ZodObject<{
3581
+ isRequired: z.ZodBoolean;
3582
+ attributeId: z.ZodString;
3583
+ value: z.ZodString;
3584
+ }, "strip", z.ZodTypeAny, {
3585
+ value: string;
3586
+ isRequired: boolean;
3587
+ attributeId: string;
3588
+ }, {
3589
+ value: string;
3590
+ isRequired: boolean;
3591
+ attributeId: string;
3592
+ }>>;
3593
+ phone: z.ZodOptional<z.ZodOptional<z.ZodObject<{
3594
+ isRequired: z.ZodBoolean;
3595
+ attributeId: z.ZodString;
3596
+ value: z.ZodArray<z.ZodObject<{
3597
+ phone: z.ZodString;
3598
+ isPrimary: z.ZodBoolean;
3599
+ }, "strip", z.ZodTypeAny, {
3600
+ isPrimary: boolean;
3601
+ phone: string;
3602
+ }, {
3603
+ isPrimary: boolean;
3604
+ phone: string;
3605
+ }>, "many">;
3606
+ }, "strip", z.ZodTypeAny, {
3607
+ value: {
3608
+ isPrimary: boolean;
3609
+ phone: string;
3610
+ }[];
3611
+ isRequired: boolean;
3612
+ attributeId: string;
3613
+ }, {
3614
+ value: {
3615
+ isPrimary: boolean;
3616
+ phone: string;
3617
+ }[];
3618
+ isRequired: boolean;
3619
+ attributeId: string;
3620
+ }>>>;
3621
+ notes: z.ZodOptional<z.ZodObject<{
3622
+ isRequired: z.ZodBoolean;
3623
+ attributeId: z.ZodString;
3624
+ value: z.ZodString;
3625
+ }, "strip", z.ZodTypeAny, {
3626
+ value: string;
3627
+ isRequired: boolean;
3628
+ attributeId: string;
3629
+ }, {
3630
+ value: string;
3631
+ isRequired: boolean;
3632
+ attributeId: string;
3633
+ }>>;
3634
+ tags: z.ZodOptional<z.ZodObject<{
3635
+ isRequired: z.ZodBoolean;
3636
+ attributeId: z.ZodString;
3637
+ value: z.ZodArray<z.ZodString, "many">;
3638
+ }, "strip", z.ZodTypeAny, {
3639
+ value: string[];
3640
+ isRequired: boolean;
3641
+ attributeId: string;
3642
+ }, {
3643
+ value: string[];
3644
+ isRequired: boolean;
3645
+ attributeId: string;
3646
+ }>>;
3647
+ company: z.ZodOptional<z.ZodObject<{
3648
+ isRequired: z.ZodBoolean;
3649
+ attributeId: z.ZodString;
3650
+ value: z.ZodString;
3651
+ }, "strip", z.ZodTypeAny, {
3652
+ value: string;
3653
+ isRequired: boolean;
3654
+ attributeId: string;
3655
+ }, {
3656
+ value: string;
3657
+ isRequired: boolean;
3658
+ attributeId: string;
3659
+ }>>;
3660
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3661
+ isRequired: z.ZodBoolean;
3662
+ attributeId: z.ZodString;
3663
+ value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
3664
+ type: z.ZodString;
3665
+ isDefaultAttribute: z.ZodBoolean;
3666
+ }, "strip", z.ZodTypeAny, {
3667
+ type: string;
3668
+ value: (string | string[]) & (string | string[] | undefined);
3669
+ isRequired: boolean;
3670
+ attributeId: string;
3671
+ isDefaultAttribute: boolean;
3672
+ }, {
3673
+ type: string;
3674
+ value: (string | string[]) & (string | string[] | undefined);
3675
+ isRequired: boolean;
3676
+ attributeId: string;
3677
+ isDefaultAttribute: boolean;
3678
+ }>, "many">>;
3679
+ }, "strip", z.ZodTypeAny, {
3680
+ name?: {
3681
+ value: string;
3682
+ isRequired: boolean;
3683
+ attributeId: string;
3684
+ } | undefined;
3685
+ email?: {
3686
+ value: {
3687
+ isPrimary: boolean;
3688
+ email: string;
3689
+ }[];
3690
+ isRequired: boolean;
3691
+ attributeId: string;
3692
+ } | undefined;
3693
+ channel?: {
3694
+ value: string;
3695
+ isRequired: boolean;
3696
+ attributeId: string;
3697
+ } | undefined;
3698
+ address?: {
3699
+ value: string;
3700
+ isRequired: boolean;
3701
+ attributeId: string;
3702
+ } | undefined;
3703
+ phone?: {
3704
+ value: {
3705
+ isPrimary: boolean;
3706
+ phone: string;
3707
+ }[];
3708
+ isRequired: boolean;
3709
+ attributeId: string;
3710
+ } | undefined;
3711
+ notes?: {
3712
+ value: string;
3713
+ isRequired: boolean;
3714
+ attributeId: string;
3715
+ } | undefined;
3716
+ tags?: {
3717
+ value: string[];
3718
+ isRequired: boolean;
3719
+ attributeId: string;
3720
+ } | undefined;
3721
+ company?: {
3722
+ value: string;
3723
+ isRequired: boolean;
3724
+ attributeId: string;
3725
+ } | undefined;
3726
+ customFields?: {
3727
+ type: string;
3728
+ value: (string | string[]) & (string | string[] | undefined);
3729
+ isRequired: boolean;
3730
+ attributeId: string;
3731
+ isDefaultAttribute: boolean;
3732
+ }[] | undefined;
3733
+ }, {
3734
+ name?: {
3735
+ value: string;
3736
+ isRequired: boolean;
3737
+ attributeId: string;
3738
+ } | undefined;
3739
+ email?: {
3740
+ value: {
3741
+ isPrimary: boolean;
3742
+ email: string;
3743
+ }[];
3744
+ isRequired: boolean;
3745
+ attributeId: string;
3746
+ } | undefined;
3747
+ channel?: {
3748
+ value: string;
3749
+ isRequired: boolean;
3750
+ attributeId: string;
3751
+ } | undefined;
3752
+ address?: {
3753
+ value: string;
3754
+ isRequired: boolean;
3755
+ attributeId: string;
3756
+ } | undefined;
3757
+ phone?: {
3758
+ value: {
3759
+ isPrimary: boolean;
3760
+ phone: string;
3761
+ }[];
3762
+ isRequired: boolean;
3763
+ attributeId: string;
3764
+ } | undefined;
3765
+ notes?: {
3766
+ value: string;
3767
+ isRequired: boolean;
3768
+ attributeId: string;
3769
+ } | undefined;
3770
+ tags?: {
3771
+ value: string[];
3772
+ isRequired: boolean;
3773
+ attributeId: string;
3774
+ } | undefined;
3775
+ company?: {
3776
+ value: string;
3777
+ isRequired: boolean;
3778
+ attributeId: string;
3779
+ } | undefined;
3780
+ customFields?: {
3781
+ type: string;
3782
+ value: (string | string[]) & (string | string[] | undefined);
3783
+ isRequired: boolean;
3784
+ attributeId: string;
3785
+ isDefaultAttribute: boolean;
3786
+ }[] | undefined;
3787
+ }>;
3788
+ summary: "Update a contact";
3789
+ method: "PATCH";
3790
+ pathParams: z.ZodObject<{
3791
+ id: z.ZodString;
3792
+ }, "strip", z.ZodTypeAny, {
3793
+ id: string;
3794
+ }, {
3795
+ id: string;
3796
+ }>;
3797
+ responses: {
3798
+ 200: z.ZodObject<{
3799
+ requestId: z.ZodString;
3800
+ data: z.ZodObject<{
3801
+ id: z.ZodString;
3802
+ createdAt: z.ZodDate;
3803
+ updatedAt: z.ZodDate;
3804
+ deletedAt: z.ZodNullable<z.ZodDate>;
3805
+ name: z.ZodString;
3806
+ address: z.ZodNullable<z.ZodString>;
3807
+ channel: z.ZodNullable<z.ZodString>;
3808
+ notes: z.ZodNullable<z.ZodString>;
3809
+ contactProfile: z.ZodNullable<z.ZodString>;
3810
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
3811
+ tags: z.ZodArray<z.ZodObject<{
3812
+ id: z.ZodString;
3813
+ createdAt: z.ZodDate;
3814
+ updatedAt: z.ZodDate;
3815
+ deletedAt: z.ZodNullable<z.ZodDate>;
3816
+ name: z.ZodString;
3817
+ }, "strip", z.ZodTypeAny, {
3818
+ id: string;
3819
+ name: string;
3820
+ createdAt: Date;
3821
+ updatedAt: Date;
3822
+ deletedAt: Date | null;
3823
+ }, {
3824
+ id: string;
3825
+ name: string;
3826
+ createdAt: Date;
3827
+ updatedAt: Date;
3828
+ deletedAt: Date | null;
3829
+ }>, "many">;
3830
+ company: z.ZodNullable<z.ZodObject<Omit<{
3831
+ id: z.ZodString;
3832
+ createdAt: z.ZodDate;
3833
+ updatedAt: z.ZodDate;
3834
+ deletedAt: z.ZodNullable<z.ZodDate>;
3835
+ name: z.ZodOptional<z.ZodString>;
3836
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3837
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3838
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3839
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3840
+ id: z.ZodString;
3841
+ createdAt: z.ZodDate;
3842
+ updatedAt: z.ZodDate;
3843
+ deletedAt: z.ZodNullable<z.ZodDate>;
3844
+ textValue: z.ZodNullable<z.ZodString>;
3845
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
3846
+ numberValue: z.ZodNullable<z.ZodNumber>;
3847
+ dateValue: z.ZodNullable<z.ZodString>;
3848
+ attribute: z.ZodObject<Omit<{
3849
+ id: z.ZodString;
3850
+ createdAt: z.ZodDate;
3851
+ updatedAt: z.ZodDate;
3852
+ deletedAt: z.ZodNullable<z.ZodDate>;
3853
+ systemName: z.ZodString;
3854
+ displayName: z.ZodString;
3855
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
3856
+ position: z.ZodNumber;
3857
+ isDefault: z.ZodBoolean;
3858
+ isArchived: z.ZodBoolean;
3859
+ isRequired: z.ZodBoolean;
3860
+ isUnique: z.ZodBoolean;
3861
+ options: z.ZodArray<z.ZodObject<{
3862
+ position: z.ZodNumber;
3863
+ value: z.ZodString;
3864
+ label: z.ZodString;
3865
+ isDefault: z.ZodBoolean;
3866
+ id: z.ZodString;
3867
+ }, "strip", z.ZodTypeAny, {
3868
+ id: string;
3869
+ position: number;
3870
+ value: string;
3871
+ label: string;
3872
+ isDefault: boolean;
3873
+ }, {
3874
+ id: string;
3875
+ position: number;
3876
+ value: string;
3877
+ label: string;
3878
+ isDefault: boolean;
3879
+ }>, "many">;
3880
+ group: z.ZodObject<{
3881
+ id: z.ZodString;
3882
+ createdAt: z.ZodDate;
3883
+ updatedAt: z.ZodDate;
3884
+ deletedAt: z.ZodNullable<z.ZodDate>;
3885
+ systemName: z.ZodString;
3886
+ displayName: z.ZodString;
3887
+ }, "strip", z.ZodTypeAny, {
3888
+ id: string;
3889
+ createdAt: Date;
3890
+ updatedAt: Date;
3891
+ deletedAt: Date | null;
3892
+ systemName: string;
3893
+ displayName: string;
3894
+ }, {
3895
+ id: string;
3896
+ createdAt: Date;
3897
+ updatedAt: Date;
3898
+ deletedAt: Date | null;
3899
+ systemName: string;
3900
+ displayName: string;
3901
+ }>;
3902
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
3903
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3904
+ id: string;
3905
+ position: number;
3906
+ createdAt: Date;
3907
+ updatedAt: Date;
3908
+ deletedAt: Date | null;
3909
+ isDefault: boolean;
3910
+ systemName: string;
3911
+ displayName: string;
3912
+ isArchived: boolean;
3913
+ isRequired: boolean;
3914
+ isUnique: boolean;
3915
+ }, {
3916
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3917
+ id: string;
3918
+ position: number;
3919
+ createdAt: Date;
3920
+ updatedAt: Date;
3921
+ deletedAt: Date | null;
3922
+ isDefault: boolean;
3923
+ systemName: string;
3924
+ displayName: string;
3925
+ isArchived: boolean;
3926
+ isRequired: boolean;
3927
+ isUnique: boolean;
3928
+ }>;
3929
+ }, "strip", z.ZodTypeAny, {
3930
+ id: string;
3931
+ createdAt: Date;
3932
+ updatedAt: Date;
3933
+ deletedAt: Date | null;
3934
+ attribute: {
3935
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3936
+ id: string;
3937
+ position: number;
3938
+ createdAt: Date;
3939
+ updatedAt: Date;
3940
+ deletedAt: Date | null;
3941
+ isDefault: boolean;
3942
+ systemName: string;
3943
+ displayName: string;
3944
+ isArchived: boolean;
3945
+ isRequired: boolean;
3946
+ isUnique: boolean;
3947
+ };
3948
+ textValue: string | null;
3949
+ booleanValue: boolean | null;
3950
+ numberValue: number | null;
3951
+ dateValue: string | null;
3952
+ }, {
3953
+ id: string;
3954
+ createdAt: Date;
3955
+ updatedAt: Date;
3956
+ deletedAt: Date | null;
3957
+ attribute: {
3958
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
3959
+ id: string;
3960
+ position: number;
3961
+ createdAt: Date;
3962
+ updatedAt: Date;
3963
+ deletedAt: Date | null;
3964
+ isDefault: boolean;
3965
+ systemName: string;
3966
+ displayName: string;
3967
+ isArchived: boolean;
3968
+ isRequired: boolean;
3969
+ isUnique: boolean;
3970
+ };
3971
+ textValue: string | null;
3972
+ booleanValue: boolean | null;
3973
+ numberValue: number | null;
3974
+ dateValue: string | null;
3975
+ }>, "many">>;
3976
+ }, "customFields">, "strip", z.ZodTypeAny, {
3977
+ id: string;
3978
+ createdAt: Date;
3979
+ updatedAt: Date;
3980
+ deletedAt: Date | null;
3981
+ address?: string | null | undefined;
3982
+ name?: string | undefined;
3983
+ phone?: string | null | undefined;
3984
+ industry?: string | null | undefined;
3985
+ }, {
3986
+ id: string;
3987
+ createdAt: Date;
3988
+ updatedAt: Date;
3989
+ deletedAt: Date | null;
3990
+ address?: string | null | undefined;
3991
+ name?: string | undefined;
3992
+ phone?: string | null | undefined;
3993
+ industry?: string | null | undefined;
3994
+ }>>;
3995
+ customFields: z.ZodArray<z.ZodObject<{
3996
+ id: z.ZodString;
3997
+ createdAt: z.ZodDate;
3998
+ updatedAt: z.ZodDate;
3999
+ deletedAt: z.ZodNullable<z.ZodDate>;
4000
+ textValue: z.ZodNullable<z.ZodString>;
4001
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4002
+ numberValue: z.ZodNullable<z.ZodNumber>;
4003
+ dateValue: z.ZodNullable<z.ZodDate>;
4004
+ attribute: z.ZodObject<Omit<{
4005
+ id: z.ZodString;
4006
+ createdAt: z.ZodDate;
4007
+ updatedAt: z.ZodDate;
4008
+ deletedAt: z.ZodNullable<z.ZodDate>;
4009
+ systemName: z.ZodString;
4010
+ displayName: z.ZodString;
4011
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4012
+ position: z.ZodNumber;
4013
+ isDefault: z.ZodBoolean;
4014
+ isArchived: z.ZodBoolean;
4015
+ isRequired: z.ZodBoolean;
4016
+ isUnique: z.ZodBoolean;
4017
+ options: z.ZodArray<z.ZodObject<{
4018
+ position: z.ZodNumber;
4019
+ value: z.ZodString;
4020
+ label: z.ZodString;
4021
+ isDefault: z.ZodBoolean;
4022
+ id: z.ZodString;
4023
+ }, "strip", z.ZodTypeAny, {
4024
+ id: string;
4025
+ position: number;
4026
+ value: string;
4027
+ label: string;
4028
+ isDefault: boolean;
4029
+ }, {
4030
+ id: string;
4031
+ position: number;
4032
+ value: string;
4033
+ label: string;
4034
+ isDefault: boolean;
4035
+ }>, "many">;
4036
+ group: z.ZodObject<{
4037
+ id: z.ZodString;
4038
+ createdAt: z.ZodDate;
4039
+ updatedAt: z.ZodDate;
4040
+ deletedAt: z.ZodNullable<z.ZodDate>;
4041
+ systemName: z.ZodString;
4042
+ displayName: z.ZodString;
4043
+ }, "strip", z.ZodTypeAny, {
4044
+ id: string;
4045
+ createdAt: Date;
4046
+ updatedAt: Date;
4047
+ deletedAt: Date | null;
4048
+ systemName: string;
4049
+ displayName: string;
4050
+ }, {
4051
+ id: string;
4052
+ createdAt: Date;
4053
+ updatedAt: Date;
4054
+ deletedAt: Date | null;
4055
+ systemName: string;
4056
+ displayName: string;
4057
+ }>;
4058
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
4059
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4060
+ id: string;
4061
+ position: number;
4062
+ createdAt: Date;
4063
+ updatedAt: Date;
4064
+ deletedAt: Date | null;
4065
+ isDefault: boolean;
4066
+ systemName: string;
4067
+ displayName: string;
4068
+ isArchived: boolean;
4069
+ isRequired: boolean;
4070
+ isUnique: boolean;
4071
+ }, {
4072
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4073
+ id: string;
4074
+ position: number;
4075
+ createdAt: Date;
4076
+ updatedAt: Date;
4077
+ deletedAt: Date | null;
4078
+ isDefault: boolean;
4079
+ systemName: string;
4080
+ displayName: string;
4081
+ isArchived: boolean;
4082
+ isRequired: boolean;
4083
+ isUnique: boolean;
4084
+ }>;
4085
+ uploads: z.ZodArray<z.ZodObject<{
4086
+ id: z.ZodString;
4087
+ createdAt: z.ZodDate;
4088
+ updatedAt: z.ZodDate;
4089
+ deletedAt: z.ZodNullable<z.ZodDate>;
4090
+ customFieldId: z.ZodString;
4091
+ upload: z.ZodObject<{
4092
+ id: z.ZodString;
4093
+ createdAt: z.ZodDate;
4094
+ updatedAt: z.ZodDate;
4095
+ deletedAt: z.ZodNullable<z.ZodDate>;
4096
+ bucketName: z.ZodString;
4097
+ fileName: z.ZodString;
4098
+ fileSize: z.ZodNumber;
4099
+ fileKey: z.ZodString;
4100
+ }, "strip", z.ZodTypeAny, {
4101
+ id: string;
4102
+ createdAt: Date;
4103
+ updatedAt: Date;
4104
+ deletedAt: Date | null;
4105
+ fileName: string;
4106
+ fileKey: string;
4107
+ bucketName: string;
4108
+ fileSize: number;
4109
+ }, {
4110
+ id: string;
4111
+ createdAt: Date;
4112
+ updatedAt: Date;
4113
+ deletedAt: Date | null;
4114
+ fileName: string;
4115
+ fileKey: string;
4116
+ bucketName: string;
4117
+ fileSize: number;
4118
+ }>;
4119
+ }, "strip", z.ZodTypeAny, {
4120
+ id: string;
4121
+ createdAt: Date;
4122
+ updatedAt: Date;
4123
+ deletedAt: Date | null;
4124
+ customFieldId: string;
4125
+ upload: {
4126
+ id: string;
4127
+ createdAt: Date;
4128
+ updatedAt: Date;
4129
+ deletedAt: Date | null;
4130
+ fileName: string;
4131
+ fileKey: string;
4132
+ bucketName: string;
4133
+ fileSize: number;
4134
+ };
4135
+ }, {
4136
+ id: string;
4137
+ createdAt: Date;
4138
+ updatedAt: Date;
4139
+ deletedAt: Date | null;
4140
+ customFieldId: string;
4141
+ upload: {
4142
+ id: string;
4143
+ createdAt: Date;
4144
+ updatedAt: Date;
4145
+ deletedAt: Date | null;
4146
+ fileName: string;
4147
+ fileKey: string;
4148
+ bucketName: string;
4149
+ fileSize: number;
4150
+ };
4151
+ }>, "many">;
4152
+ }, "strip", z.ZodTypeAny, {
4153
+ id: string;
4154
+ createdAt: Date;
4155
+ updatedAt: Date;
4156
+ deletedAt: Date | null;
4157
+ attribute: {
4158
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4159
+ id: string;
4160
+ position: number;
4161
+ createdAt: Date;
4162
+ updatedAt: Date;
4163
+ deletedAt: Date | null;
4164
+ isDefault: boolean;
4165
+ systemName: string;
4166
+ displayName: string;
4167
+ isArchived: boolean;
4168
+ isRequired: boolean;
4169
+ isUnique: boolean;
4170
+ };
4171
+ textValue: string | null;
4172
+ booleanValue: boolean | null;
4173
+ numberValue: number | null;
4174
+ dateValue: Date | null;
4175
+ uploads: {
4176
+ id: string;
4177
+ createdAt: Date;
4178
+ updatedAt: Date;
4179
+ deletedAt: Date | null;
4180
+ customFieldId: string;
4181
+ upload: {
4182
+ id: string;
4183
+ createdAt: Date;
4184
+ updatedAt: Date;
4185
+ deletedAt: Date | null;
4186
+ fileName: string;
4187
+ fileKey: string;
4188
+ bucketName: string;
4189
+ fileSize: number;
4190
+ };
4191
+ }[];
4192
+ }, {
4193
+ id: string;
4194
+ createdAt: Date;
4195
+ updatedAt: Date;
4196
+ deletedAt: Date | null;
4197
+ attribute: {
4198
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4199
+ id: string;
4200
+ position: number;
4201
+ createdAt: Date;
4202
+ updatedAt: Date;
4203
+ deletedAt: Date | null;
4204
+ isDefault: boolean;
4205
+ systemName: string;
4206
+ displayName: string;
4207
+ isArchived: boolean;
4208
+ isRequired: boolean;
4209
+ isUnique: boolean;
4210
+ };
4211
+ textValue: string | null;
4212
+ booleanValue: boolean | null;
4213
+ numberValue: number | null;
4214
+ dateValue: Date | null;
4215
+ uploads: {
4216
+ id: string;
4217
+ createdAt: Date;
4218
+ updatedAt: Date;
4219
+ deletedAt: Date | null;
4220
+ customFieldId: string;
4221
+ upload: {
4222
+ id: string;
4223
+ createdAt: Date;
4224
+ updatedAt: Date;
4225
+ deletedAt: Date | null;
4226
+ fileName: string;
4227
+ fileKey: string;
4228
+ bucketName: string;
4229
+ fileSize: number;
4230
+ };
4231
+ }[];
4232
+ }>, "many">;
4233
+ contactEmails: z.ZodArray<z.ZodObject<{
4234
+ id: z.ZodString;
4235
+ createdAt: z.ZodDate;
4236
+ updatedAt: z.ZodDate;
4237
+ deletedAt: z.ZodNullable<z.ZodDate>;
4238
+ email: z.ZodString;
4239
+ isPrimary: z.ZodBoolean;
4240
+ }, "strip", z.ZodTypeAny, {
4241
+ id: string;
4242
+ isPrimary: boolean;
4243
+ email: string;
4244
+ createdAt: Date;
4245
+ updatedAt: Date;
4246
+ deletedAt: Date | null;
4247
+ }, {
4248
+ id: string;
4249
+ isPrimary: boolean;
4250
+ email: string;
4251
+ createdAt: Date;
4252
+ updatedAt: Date;
4253
+ deletedAt: Date | null;
4254
+ }>, "many">;
4255
+ contactPhones: z.ZodArray<z.ZodObject<{
4256
+ id: z.ZodString;
4257
+ createdAt: z.ZodDate;
4258
+ updatedAt: z.ZodDate;
4259
+ deletedAt: z.ZodNullable<z.ZodDate>;
4260
+ phone: z.ZodString;
4261
+ isPrimary: z.ZodBoolean;
4262
+ }, "strip", z.ZodTypeAny, {
4263
+ id: string;
4264
+ isPrimary: boolean;
4265
+ createdAt: Date;
4266
+ updatedAt: Date;
4267
+ deletedAt: Date | null;
4268
+ phone: string;
4269
+ }, {
4270
+ id: string;
4271
+ isPrimary: boolean;
4272
+ createdAt: Date;
4273
+ updatedAt: Date;
4274
+ deletedAt: Date | null;
4275
+ phone: string;
4276
+ }>, "many">;
4277
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4278
+ id: z.ZodString;
4279
+ createdAt: z.ZodDate;
4280
+ updatedAt: z.ZodDate;
4281
+ deletedAt: z.ZodNullable<z.ZodDate>;
4282
+ entityId: z.ZodString;
4283
+ description: z.ZodString;
4284
+ entityType: z.ZodObject<{
4285
+ id: z.ZodString;
4286
+ createdAt: z.ZodDate;
4287
+ updatedAt: z.ZodDate;
4288
+ deletedAt: z.ZodNullable<z.ZodDate>;
4289
+ entity: z.ZodString;
4290
+ description: z.ZodNullable<z.ZodString>;
4291
+ }, "strip", z.ZodTypeAny, {
4292
+ id: string;
4293
+ description: string | null;
4294
+ createdAt: Date;
4295
+ updatedAt: Date;
4296
+ deletedAt: Date | null;
4297
+ entity: string;
4298
+ }, {
4299
+ id: string;
4300
+ description: string | null;
4301
+ createdAt: Date;
4302
+ updatedAt: Date;
4303
+ deletedAt: Date | null;
4304
+ entity: string;
4305
+ }>;
4306
+ }, "strip", z.ZodTypeAny, {
4307
+ id: string;
4308
+ description: string;
4309
+ createdAt: Date;
4310
+ updatedAt: Date;
4311
+ deletedAt: Date | null;
4312
+ entityId: string;
4313
+ entityType: {
4314
+ id: string;
4315
+ description: string | null;
4316
+ createdAt: Date;
4317
+ updatedAt: Date;
4318
+ deletedAt: Date | null;
4319
+ entity: string;
4320
+ };
4321
+ }, {
4322
+ id: string;
4323
+ description: string;
4324
+ createdAt: Date;
4325
+ updatedAt: Date;
4326
+ deletedAt: Date | null;
4327
+ entityId: string;
4328
+ entityType: {
4329
+ id: string;
4330
+ description: string | null;
4331
+ createdAt: Date;
4332
+ updatedAt: Date;
4333
+ deletedAt: Date | null;
4334
+ entity: string;
4335
+ };
4336
+ }>, "many">>;
4337
+ }, "strip", z.ZodTypeAny, {
4338
+ id: string;
4339
+ channel: string | null;
4340
+ address: string | null;
4341
+ name: string;
4342
+ createdAt: Date;
4343
+ updatedAt: Date;
4344
+ deletedAt: Date | null;
4345
+ customFields: {
4346
+ id: string;
4347
+ createdAt: Date;
4348
+ updatedAt: Date;
4349
+ deletedAt: Date | null;
4350
+ attribute: {
4351
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4352
+ id: string;
4353
+ position: number;
4354
+ createdAt: Date;
4355
+ updatedAt: Date;
4356
+ deletedAt: Date | null;
4357
+ isDefault: boolean;
4358
+ systemName: string;
4359
+ displayName: string;
4360
+ isArchived: boolean;
4361
+ isRequired: boolean;
4362
+ isUnique: boolean;
4363
+ };
4364
+ textValue: string | null;
4365
+ booleanValue: boolean | null;
4366
+ numberValue: number | null;
4367
+ dateValue: Date | null;
4368
+ uploads: {
4369
+ id: string;
4370
+ createdAt: Date;
4371
+ updatedAt: Date;
4372
+ deletedAt: Date | null;
4373
+ customFieldId: string;
4374
+ upload: {
4375
+ id: string;
4376
+ createdAt: Date;
4377
+ updatedAt: Date;
4378
+ deletedAt: Date | null;
4379
+ fileName: string;
4380
+ fileKey: string;
4381
+ bucketName: string;
4382
+ fileSize: number;
4383
+ };
4384
+ }[];
4385
+ }[];
4386
+ notes: string | null;
4387
+ contactProfile: string | null;
4388
+ socialProfileUrl: string | null;
4389
+ tags: {
4390
+ id: string;
4391
+ name: string;
4392
+ createdAt: Date;
4393
+ updatedAt: Date;
4394
+ deletedAt: Date | null;
4395
+ }[];
4396
+ company: {
4397
+ id: string;
4398
+ createdAt: Date;
4399
+ updatedAt: Date;
4400
+ deletedAt: Date | null;
4401
+ address?: string | null | undefined;
4402
+ name?: string | undefined;
4403
+ phone?: string | null | undefined;
4404
+ industry?: string | null | undefined;
4405
+ } | null;
4406
+ contactEmails: {
4407
+ id: string;
4408
+ isPrimary: boolean;
4409
+ email: string;
4410
+ createdAt: Date;
4411
+ updatedAt: Date;
4412
+ deletedAt: Date | null;
4413
+ }[];
4414
+ contactPhones: {
4415
+ id: string;
4416
+ isPrimary: boolean;
4417
+ createdAt: Date;
4418
+ updatedAt: Date;
4419
+ deletedAt: Date | null;
4420
+ phone: string;
4421
+ }[];
4422
+ activityLogs?: {
4423
+ id: string;
4424
+ description: string;
4425
+ createdAt: Date;
4426
+ updatedAt: Date;
4427
+ deletedAt: Date | null;
4428
+ entityId: string;
4429
+ entityType: {
4430
+ id: string;
4431
+ description: string | null;
4432
+ createdAt: Date;
4433
+ updatedAt: Date;
4434
+ deletedAt: Date | null;
4435
+ entity: string;
4436
+ };
4437
+ }[] | undefined;
4438
+ }, {
4439
+ id: string;
4440
+ channel: string | null;
4441
+ address: string | null;
4442
+ name: string;
4443
+ createdAt: Date;
4444
+ updatedAt: Date;
4445
+ deletedAt: Date | null;
4446
+ customFields: {
4447
+ id: string;
4448
+ createdAt: Date;
4449
+ updatedAt: Date;
4450
+ deletedAt: Date | null;
4451
+ attribute: {
4452
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4453
+ id: string;
4454
+ position: number;
4455
+ createdAt: Date;
4456
+ updatedAt: Date;
4457
+ deletedAt: Date | null;
4458
+ isDefault: boolean;
4459
+ systemName: string;
4460
+ displayName: string;
4461
+ isArchived: boolean;
4462
+ isRequired: boolean;
4463
+ isUnique: boolean;
4464
+ };
4465
+ textValue: string | null;
4466
+ booleanValue: boolean | null;
4467
+ numberValue: number | null;
4468
+ dateValue: Date | null;
4469
+ uploads: {
4470
+ id: string;
4471
+ createdAt: Date;
4472
+ updatedAt: Date;
4473
+ deletedAt: Date | null;
4474
+ customFieldId: string;
4475
+ upload: {
4476
+ id: string;
4477
+ createdAt: Date;
4478
+ updatedAt: Date;
4479
+ deletedAt: Date | null;
4480
+ fileName: string;
4481
+ fileKey: string;
4482
+ bucketName: string;
4483
+ fileSize: number;
4484
+ };
4485
+ }[];
4486
+ }[];
4487
+ notes: string | null;
4488
+ contactProfile: string | null;
4489
+ socialProfileUrl: string | null;
4490
+ tags: {
4491
+ id: string;
4492
+ name: string;
4493
+ createdAt: Date;
4494
+ updatedAt: Date;
4495
+ deletedAt: Date | null;
4496
+ }[];
4497
+ company: {
4498
+ id: string;
4499
+ createdAt: Date;
4500
+ updatedAt: Date;
4501
+ deletedAt: Date | null;
4502
+ address?: string | null | undefined;
4503
+ name?: string | undefined;
4504
+ phone?: string | null | undefined;
4505
+ industry?: string | null | undefined;
4506
+ } | null;
4507
+ contactEmails: {
4508
+ id: string;
4509
+ isPrimary: boolean;
4510
+ email: string;
4511
+ createdAt: Date;
4512
+ updatedAt: Date;
4513
+ deletedAt: Date | null;
4514
+ }[];
4515
+ contactPhones: {
4516
+ id: string;
4517
+ isPrimary: boolean;
4518
+ createdAt: Date;
4519
+ updatedAt: Date;
4520
+ deletedAt: Date | null;
4521
+ phone: string;
4522
+ }[];
4523
+ activityLogs?: {
4524
+ id: string;
4525
+ description: string;
4526
+ createdAt: Date;
4527
+ updatedAt: Date;
4528
+ deletedAt: Date | null;
4529
+ entityId: string;
4530
+ entityType: {
4531
+ id: string;
4532
+ description: string | null;
4533
+ createdAt: Date;
4534
+ updatedAt: Date;
4535
+ deletedAt: Date | null;
4536
+ entity: string;
4537
+ };
4538
+ }[] | undefined;
4539
+ }>;
4540
+ }, "strip", z.ZodTypeAny, {
4541
+ data: {
4542
+ id: string;
4543
+ channel: string | null;
4544
+ address: string | null;
4545
+ name: string;
4546
+ createdAt: Date;
4547
+ updatedAt: Date;
4548
+ deletedAt: Date | null;
4549
+ customFields: {
4550
+ id: string;
4551
+ createdAt: Date;
4552
+ updatedAt: Date;
4553
+ deletedAt: Date | null;
4554
+ attribute: {
4555
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4556
+ id: string;
4557
+ position: number;
4558
+ createdAt: Date;
4559
+ updatedAt: Date;
4560
+ deletedAt: Date | null;
4561
+ isDefault: boolean;
4562
+ systemName: string;
4563
+ displayName: string;
4564
+ isArchived: boolean;
4565
+ isRequired: boolean;
4566
+ isUnique: boolean;
4567
+ };
4568
+ textValue: string | null;
4569
+ booleanValue: boolean | null;
4570
+ numberValue: number | null;
4571
+ dateValue: Date | null;
4572
+ uploads: {
4573
+ id: string;
4574
+ createdAt: Date;
4575
+ updatedAt: Date;
4576
+ deletedAt: Date | null;
4577
+ customFieldId: string;
4578
+ upload: {
4579
+ id: string;
4580
+ createdAt: Date;
4581
+ updatedAt: Date;
4582
+ deletedAt: Date | null;
4583
+ fileName: string;
4584
+ fileKey: string;
4585
+ bucketName: string;
4586
+ fileSize: number;
4587
+ };
4588
+ }[];
4589
+ }[];
4590
+ notes: string | null;
4591
+ contactProfile: string | null;
4592
+ socialProfileUrl: string | null;
4593
+ tags: {
4594
+ id: string;
4595
+ name: string;
4596
+ createdAt: Date;
4597
+ updatedAt: Date;
4598
+ deletedAt: Date | null;
4599
+ }[];
4600
+ company: {
4601
+ id: string;
4602
+ createdAt: Date;
4603
+ updatedAt: Date;
4604
+ deletedAt: Date | null;
4605
+ address?: string | null | undefined;
4606
+ name?: string | undefined;
4607
+ phone?: string | null | undefined;
4608
+ industry?: string | null | undefined;
4609
+ } | null;
4610
+ contactEmails: {
4611
+ id: string;
4612
+ isPrimary: boolean;
4613
+ email: string;
4614
+ createdAt: Date;
4615
+ updatedAt: Date;
4616
+ deletedAt: Date | null;
4617
+ }[];
4618
+ contactPhones: {
4619
+ id: string;
4620
+ isPrimary: boolean;
4621
+ createdAt: Date;
4622
+ updatedAt: Date;
4623
+ deletedAt: Date | null;
4624
+ phone: string;
4625
+ }[];
4626
+ activityLogs?: {
4627
+ id: string;
4628
+ description: string;
4629
+ createdAt: Date;
4630
+ updatedAt: Date;
4631
+ deletedAt: Date | null;
4632
+ entityId: string;
4633
+ entityType: {
4634
+ id: string;
4635
+ description: string | null;
4636
+ createdAt: Date;
4637
+ updatedAt: Date;
4638
+ deletedAt: Date | null;
4639
+ entity: string;
4640
+ };
4641
+ }[] | undefined;
4642
+ };
4643
+ requestId: string;
4644
+ }, {
4645
+ data: {
4646
+ id: string;
4647
+ channel: string | null;
4648
+ address: string | null;
4649
+ name: string;
4650
+ createdAt: Date;
4651
+ updatedAt: Date;
4652
+ deletedAt: Date | null;
4653
+ customFields: {
4654
+ id: string;
4655
+ createdAt: Date;
4656
+ updatedAt: Date;
4657
+ deletedAt: Date | null;
4658
+ attribute: {
4659
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4660
+ id: string;
4661
+ position: number;
4662
+ createdAt: Date;
4663
+ updatedAt: Date;
4664
+ deletedAt: Date | null;
4665
+ isDefault: boolean;
4666
+ systemName: string;
4667
+ displayName: string;
4668
+ isArchived: boolean;
4669
+ isRequired: boolean;
4670
+ isUnique: boolean;
4671
+ };
4672
+ textValue: string | null;
4673
+ booleanValue: boolean | null;
4674
+ numberValue: number | null;
4675
+ dateValue: Date | null;
4676
+ uploads: {
4677
+ id: string;
4678
+ createdAt: Date;
4679
+ updatedAt: Date;
4680
+ deletedAt: Date | null;
4681
+ customFieldId: string;
4682
+ upload: {
4683
+ id: string;
4684
+ createdAt: Date;
4685
+ updatedAt: Date;
4686
+ deletedAt: Date | null;
4687
+ fileName: string;
4688
+ fileKey: string;
4689
+ bucketName: string;
4690
+ fileSize: number;
4691
+ };
4692
+ }[];
4693
+ }[];
4694
+ notes: string | null;
4695
+ contactProfile: string | null;
4696
+ socialProfileUrl: string | null;
4697
+ tags: {
4698
+ id: string;
4699
+ name: string;
4700
+ createdAt: Date;
4701
+ updatedAt: Date;
4702
+ deletedAt: Date | null;
4703
+ }[];
4704
+ company: {
4705
+ id: string;
4706
+ createdAt: Date;
4707
+ updatedAt: Date;
4708
+ deletedAt: Date | null;
4709
+ address?: string | null | undefined;
4710
+ name?: string | undefined;
4711
+ phone?: string | null | undefined;
4712
+ industry?: string | null | undefined;
4713
+ } | null;
4714
+ contactEmails: {
4715
+ id: string;
4716
+ isPrimary: boolean;
4717
+ email: string;
4718
+ createdAt: Date;
4719
+ updatedAt: Date;
4720
+ deletedAt: Date | null;
4721
+ }[];
4722
+ contactPhones: {
4723
+ id: string;
4724
+ isPrimary: boolean;
4725
+ createdAt: Date;
4726
+ updatedAt: Date;
4727
+ deletedAt: Date | null;
4728
+ phone: string;
4729
+ }[];
4730
+ activityLogs?: {
4731
+ id: string;
4732
+ description: string;
4733
+ createdAt: Date;
4734
+ updatedAt: Date;
4735
+ deletedAt: Date | null;
4736
+ entityId: string;
4737
+ entityType: {
4738
+ id: string;
4739
+ description: string | null;
4740
+ createdAt: Date;
4741
+ updatedAt: Date;
4742
+ deletedAt: Date | null;
4743
+ entity: string;
4744
+ };
4745
+ }[] | undefined;
4746
+ };
4747
+ requestId: string;
4748
+ }>;
4749
+ 400: z.ZodObject<{
4750
+ message: z.ZodString;
4751
+ }, "strip", z.ZodTypeAny, {
4752
+ message: string;
2481
4753
  }, {
2482
- value: string;
2483
- isRequired: boolean;
2484
- attributeId: string;
2485
- }>>;
2486
- email: z.ZodOptional<z.ZodObject<{
2487
- isRequired: z.ZodBoolean;
2488
- attributeId: z.ZodString;
2489
- value: z.ZodArray<z.ZodObject<{
2490
- email: z.ZodString;
2491
- isPrimary: z.ZodBoolean;
4754
+ message: string;
4755
+ }>;
4756
+ 409: z.ZodObject<{
4757
+ message: z.ZodString;
4758
+ }, "strip", z.ZodTypeAny, {
4759
+ message: string;
4760
+ }, {
4761
+ message: string;
4762
+ }>;
4763
+ 500: z.ZodObject<{
4764
+ message: z.ZodString;
4765
+ }, "strip", z.ZodTypeAny, {
4766
+ message: string;
4767
+ }, {
4768
+ message: string;
4769
+ }>;
4770
+ 401: z.ZodObject<{
4771
+ message: z.ZodString;
4772
+ error: z.ZodAny;
4773
+ }, "strip", z.ZodTypeAny, {
4774
+ message: string;
4775
+ error?: any;
4776
+ }, {
4777
+ message: string;
4778
+ error?: any;
4779
+ }>;
4780
+ 404: z.ZodObject<{
4781
+ message: z.ZodString;
4782
+ error: z.ZodAny;
4783
+ }, "strip", z.ZodTypeAny, {
4784
+ message: string;
4785
+ error?: any;
4786
+ }, {
4787
+ message: string;
4788
+ error?: any;
4789
+ }>;
4790
+ 422: z.ZodObject<{
4791
+ message: z.ZodString;
4792
+ error: z.ZodAny;
4793
+ }, "strip", z.ZodTypeAny, {
4794
+ message: string;
4795
+ error?: any;
4796
+ }, {
4797
+ message: string;
4798
+ error?: any;
4799
+ }>;
4800
+ };
4801
+ path: "contact/:id";
4802
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4803
+ 'x-tenant': z.ZodString;
4804
+ authorization: z.ZodString;
4805
+ }, "strip", z.ZodTypeAny, {
4806
+ 'x-tenant': string;
4807
+ authorization: string;
4808
+ }, {
4809
+ 'x-tenant': string;
4810
+ authorization: string;
4811
+ }>>>;
4812
+ };
4813
+ delete: {
4814
+ body: null;
4815
+ summary: "Delete a contact";
4816
+ method: "DELETE";
4817
+ pathParams: z.ZodObject<{
4818
+ id: z.ZodString;
4819
+ }, "strip", z.ZodTypeAny, {
4820
+ id: string;
4821
+ }, {
4822
+ id: string;
4823
+ }>;
4824
+ responses: {
4825
+ 200: z.ZodObject<{
4826
+ requestId: z.ZodString;
4827
+ message: z.ZodString;
4828
+ }, "strip", z.ZodTypeAny, {
4829
+ message: string;
4830
+ requestId: string;
4831
+ }, {
4832
+ message: string;
4833
+ requestId: string;
4834
+ }>;
4835
+ 400: z.ZodObject<{
4836
+ message: z.ZodString;
4837
+ }, "strip", z.ZodTypeAny, {
4838
+ message: string;
4839
+ }, {
4840
+ message: string;
4841
+ }>;
4842
+ 409: z.ZodObject<{
4843
+ message: z.ZodString;
4844
+ }, "strip", z.ZodTypeAny, {
4845
+ message: string;
4846
+ }, {
4847
+ message: string;
4848
+ }>;
4849
+ 500: z.ZodObject<{
4850
+ message: z.ZodString;
4851
+ }, "strip", z.ZodTypeAny, {
4852
+ message: string;
4853
+ }, {
4854
+ message: string;
4855
+ }>;
4856
+ 401: z.ZodObject<{
4857
+ message: z.ZodString;
4858
+ error: z.ZodAny;
4859
+ }, "strip", z.ZodTypeAny, {
4860
+ message: string;
4861
+ error?: any;
4862
+ }, {
4863
+ message: string;
4864
+ error?: any;
4865
+ }>;
4866
+ 404: z.ZodObject<{
4867
+ message: z.ZodString;
4868
+ error: z.ZodAny;
4869
+ }, "strip", z.ZodTypeAny, {
4870
+ message: string;
4871
+ error?: any;
4872
+ }, {
4873
+ message: string;
4874
+ error?: any;
4875
+ }>;
4876
+ 422: z.ZodObject<{
4877
+ message: z.ZodString;
4878
+ error: z.ZodAny;
4879
+ }, "strip", z.ZodTypeAny, {
4880
+ message: string;
4881
+ error?: any;
4882
+ }, {
4883
+ message: string;
4884
+ error?: any;
4885
+ }>;
4886
+ };
4887
+ path: "contact/:id";
4888
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4889
+ 'x-tenant': z.ZodString;
4890
+ authorization: z.ZodString;
4891
+ }, "strip", z.ZodTypeAny, {
4892
+ 'x-tenant': string;
4893
+ authorization: string;
4894
+ }, {
4895
+ 'x-tenant': string;
4896
+ authorization: string;
4897
+ }>>>;
4898
+ };
4899
+ createContactByPhone: {
4900
+ body: z.ZodObject<{
4901
+ phoneNumber: z.ZodEffects<z.ZodString, string, string>;
4902
+ }, "strip", z.ZodTypeAny, {
4903
+ phoneNumber: string;
4904
+ }, {
4905
+ phoneNumber: string;
4906
+ }>;
4907
+ summary: "Create a new contact using phone number";
4908
+ method: "POST";
4909
+ responses: {
4910
+ 201: z.ZodObject<{
4911
+ requestId: z.ZodString;
4912
+ data: z.ZodObject<{
4913
+ id: z.ZodString;
4914
+ createdAt: z.ZodDate;
4915
+ updatedAt: z.ZodDate;
4916
+ deletedAt: z.ZodNullable<z.ZodDate>;
4917
+ name: z.ZodString;
4918
+ address: z.ZodNullable<z.ZodString>;
4919
+ channel: z.ZodNullable<z.ZodString>;
4920
+ notes: z.ZodNullable<z.ZodString>;
4921
+ contactProfile: z.ZodNullable<z.ZodString>;
4922
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
4923
+ tags: z.ZodArray<z.ZodObject<{
4924
+ id: z.ZodString;
4925
+ createdAt: z.ZodDate;
4926
+ updatedAt: z.ZodDate;
4927
+ deletedAt: z.ZodNullable<z.ZodDate>;
4928
+ name: z.ZodString;
4929
+ }, "strip", z.ZodTypeAny, {
4930
+ id: string;
4931
+ name: string;
4932
+ createdAt: Date;
4933
+ updatedAt: Date;
4934
+ deletedAt: Date | null;
4935
+ }, {
4936
+ id: string;
4937
+ name: string;
4938
+ createdAt: Date;
4939
+ updatedAt: Date;
4940
+ deletedAt: Date | null;
4941
+ }>, "many">;
4942
+ company: z.ZodNullable<z.ZodObject<Omit<{
4943
+ id: z.ZodString;
4944
+ createdAt: z.ZodDate;
4945
+ updatedAt: z.ZodDate;
4946
+ deletedAt: z.ZodNullable<z.ZodDate>;
4947
+ name: z.ZodOptional<z.ZodString>;
4948
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4949
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4950
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4951
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
4952
+ id: z.ZodString;
4953
+ createdAt: z.ZodDate;
4954
+ updatedAt: z.ZodDate;
4955
+ deletedAt: z.ZodNullable<z.ZodDate>;
4956
+ textValue: z.ZodNullable<z.ZodString>;
4957
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
4958
+ numberValue: z.ZodNullable<z.ZodNumber>;
4959
+ dateValue: z.ZodNullable<z.ZodString>;
4960
+ attribute: z.ZodObject<Omit<{
4961
+ id: z.ZodString;
4962
+ createdAt: z.ZodDate;
4963
+ updatedAt: z.ZodDate;
4964
+ deletedAt: z.ZodNullable<z.ZodDate>;
4965
+ systemName: z.ZodString;
4966
+ displayName: z.ZodString;
4967
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
4968
+ position: z.ZodNumber;
4969
+ isDefault: z.ZodBoolean;
4970
+ isArchived: z.ZodBoolean;
4971
+ isRequired: z.ZodBoolean;
4972
+ isUnique: z.ZodBoolean;
4973
+ options: z.ZodArray<z.ZodObject<{
4974
+ position: z.ZodNumber;
4975
+ value: z.ZodString;
4976
+ label: z.ZodString;
4977
+ isDefault: z.ZodBoolean;
4978
+ id: z.ZodString;
4979
+ }, "strip", z.ZodTypeAny, {
4980
+ id: string;
4981
+ position: number;
4982
+ value: string;
4983
+ label: string;
4984
+ isDefault: boolean;
4985
+ }, {
4986
+ id: string;
4987
+ position: number;
4988
+ value: string;
4989
+ label: string;
4990
+ isDefault: boolean;
4991
+ }>, "many">;
4992
+ group: z.ZodObject<{
4993
+ id: z.ZodString;
4994
+ createdAt: z.ZodDate;
4995
+ updatedAt: z.ZodDate;
4996
+ deletedAt: z.ZodNullable<z.ZodDate>;
4997
+ systemName: z.ZodString;
4998
+ displayName: z.ZodString;
4999
+ }, "strip", z.ZodTypeAny, {
5000
+ id: string;
5001
+ createdAt: Date;
5002
+ updatedAt: Date;
5003
+ deletedAt: Date | null;
5004
+ systemName: string;
5005
+ displayName: string;
5006
+ }, {
5007
+ id: string;
5008
+ createdAt: Date;
5009
+ updatedAt: Date;
5010
+ deletedAt: Date | null;
5011
+ systemName: string;
5012
+ displayName: string;
5013
+ }>;
5014
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
5015
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5016
+ id: string;
5017
+ position: number;
5018
+ createdAt: Date;
5019
+ updatedAt: Date;
5020
+ deletedAt: Date | null;
5021
+ isDefault: boolean;
5022
+ systemName: string;
5023
+ displayName: string;
5024
+ isArchived: boolean;
5025
+ isRequired: boolean;
5026
+ isUnique: boolean;
5027
+ }, {
5028
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5029
+ id: string;
5030
+ position: number;
5031
+ createdAt: Date;
5032
+ updatedAt: Date;
5033
+ deletedAt: Date | null;
5034
+ isDefault: boolean;
5035
+ systemName: string;
5036
+ displayName: string;
5037
+ isArchived: boolean;
5038
+ isRequired: boolean;
5039
+ isUnique: boolean;
5040
+ }>;
5041
+ }, "strip", z.ZodTypeAny, {
5042
+ id: string;
5043
+ createdAt: Date;
5044
+ updatedAt: Date;
5045
+ deletedAt: Date | null;
5046
+ attribute: {
5047
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5048
+ id: string;
5049
+ position: number;
5050
+ createdAt: Date;
5051
+ updatedAt: Date;
5052
+ deletedAt: Date | null;
5053
+ isDefault: boolean;
5054
+ systemName: string;
5055
+ displayName: string;
5056
+ isArchived: boolean;
5057
+ isRequired: boolean;
5058
+ isUnique: boolean;
5059
+ };
5060
+ textValue: string | null;
5061
+ booleanValue: boolean | null;
5062
+ numberValue: number | null;
5063
+ dateValue: string | null;
5064
+ }, {
5065
+ id: string;
5066
+ createdAt: Date;
5067
+ updatedAt: Date;
5068
+ deletedAt: Date | null;
5069
+ attribute: {
5070
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5071
+ id: string;
5072
+ position: number;
5073
+ createdAt: Date;
5074
+ updatedAt: Date;
5075
+ deletedAt: Date | null;
5076
+ isDefault: boolean;
5077
+ systemName: string;
5078
+ displayName: string;
5079
+ isArchived: boolean;
5080
+ isRequired: boolean;
5081
+ isUnique: boolean;
5082
+ };
5083
+ textValue: string | null;
5084
+ booleanValue: boolean | null;
5085
+ numberValue: number | null;
5086
+ dateValue: string | null;
5087
+ }>, "many">>;
5088
+ }, "customFields">, "strip", z.ZodTypeAny, {
5089
+ id: string;
5090
+ createdAt: Date;
5091
+ updatedAt: Date;
5092
+ deletedAt: Date | null;
5093
+ address?: string | null | undefined;
5094
+ name?: string | undefined;
5095
+ phone?: string | null | undefined;
5096
+ industry?: string | null | undefined;
5097
+ }, {
5098
+ id: string;
5099
+ createdAt: Date;
5100
+ updatedAt: Date;
5101
+ deletedAt: Date | null;
5102
+ address?: string | null | undefined;
5103
+ name?: string | undefined;
5104
+ phone?: string | null | undefined;
5105
+ industry?: string | null | undefined;
5106
+ }>>;
5107
+ customFields: z.ZodArray<z.ZodObject<{
5108
+ id: z.ZodString;
5109
+ createdAt: z.ZodDate;
5110
+ updatedAt: z.ZodDate;
5111
+ deletedAt: z.ZodNullable<z.ZodDate>;
5112
+ textValue: z.ZodNullable<z.ZodString>;
5113
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
5114
+ numberValue: z.ZodNullable<z.ZodNumber>;
5115
+ dateValue: z.ZodNullable<z.ZodDate>;
5116
+ attribute: z.ZodObject<Omit<{
5117
+ id: z.ZodString;
5118
+ createdAt: z.ZodDate;
5119
+ updatedAt: z.ZodDate;
5120
+ deletedAt: z.ZodNullable<z.ZodDate>;
5121
+ systemName: z.ZodString;
5122
+ displayName: z.ZodString;
5123
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
5124
+ position: z.ZodNumber;
5125
+ isDefault: z.ZodBoolean;
5126
+ isArchived: z.ZodBoolean;
5127
+ isRequired: z.ZodBoolean;
5128
+ isUnique: z.ZodBoolean;
5129
+ options: z.ZodArray<z.ZodObject<{
5130
+ position: z.ZodNumber;
5131
+ value: z.ZodString;
5132
+ label: z.ZodString;
5133
+ isDefault: z.ZodBoolean;
5134
+ id: z.ZodString;
5135
+ }, "strip", z.ZodTypeAny, {
5136
+ id: string;
5137
+ position: number;
5138
+ value: string;
5139
+ label: string;
5140
+ isDefault: boolean;
5141
+ }, {
5142
+ id: string;
5143
+ position: number;
5144
+ value: string;
5145
+ label: string;
5146
+ isDefault: boolean;
5147
+ }>, "many">;
5148
+ group: z.ZodObject<{
5149
+ id: z.ZodString;
5150
+ createdAt: z.ZodDate;
5151
+ updatedAt: z.ZodDate;
5152
+ deletedAt: z.ZodNullable<z.ZodDate>;
5153
+ systemName: z.ZodString;
5154
+ displayName: z.ZodString;
5155
+ }, "strip", z.ZodTypeAny, {
5156
+ id: string;
5157
+ createdAt: Date;
5158
+ updatedAt: Date;
5159
+ deletedAt: Date | null;
5160
+ systemName: string;
5161
+ displayName: string;
5162
+ }, {
5163
+ id: string;
5164
+ createdAt: Date;
5165
+ updatedAt: Date;
5166
+ deletedAt: Date | null;
5167
+ systemName: string;
5168
+ displayName: string;
5169
+ }>;
5170
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
5171
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5172
+ id: string;
5173
+ position: number;
5174
+ createdAt: Date;
5175
+ updatedAt: Date;
5176
+ deletedAt: Date | null;
5177
+ isDefault: boolean;
5178
+ systemName: string;
5179
+ displayName: string;
5180
+ isArchived: boolean;
5181
+ isRequired: boolean;
5182
+ isUnique: boolean;
5183
+ }, {
5184
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5185
+ id: string;
5186
+ position: number;
5187
+ createdAt: Date;
5188
+ updatedAt: Date;
5189
+ deletedAt: Date | null;
5190
+ isDefault: boolean;
5191
+ systemName: string;
5192
+ displayName: string;
5193
+ isArchived: boolean;
5194
+ isRequired: boolean;
5195
+ isUnique: boolean;
5196
+ }>;
5197
+ uploads: z.ZodArray<z.ZodObject<{
5198
+ id: z.ZodString;
5199
+ createdAt: z.ZodDate;
5200
+ updatedAt: z.ZodDate;
5201
+ deletedAt: z.ZodNullable<z.ZodDate>;
5202
+ customFieldId: z.ZodString;
5203
+ upload: z.ZodObject<{
5204
+ id: z.ZodString;
5205
+ createdAt: z.ZodDate;
5206
+ updatedAt: z.ZodDate;
5207
+ deletedAt: z.ZodNullable<z.ZodDate>;
5208
+ bucketName: z.ZodString;
5209
+ fileName: z.ZodString;
5210
+ fileSize: z.ZodNumber;
5211
+ fileKey: z.ZodString;
5212
+ }, "strip", z.ZodTypeAny, {
5213
+ id: string;
5214
+ createdAt: Date;
5215
+ updatedAt: Date;
5216
+ deletedAt: Date | null;
5217
+ fileName: string;
5218
+ fileKey: string;
5219
+ bucketName: string;
5220
+ fileSize: number;
5221
+ }, {
5222
+ id: string;
5223
+ createdAt: Date;
5224
+ updatedAt: Date;
5225
+ deletedAt: Date | null;
5226
+ fileName: string;
5227
+ fileKey: string;
5228
+ bucketName: string;
5229
+ fileSize: number;
5230
+ }>;
5231
+ }, "strip", z.ZodTypeAny, {
5232
+ id: string;
5233
+ createdAt: Date;
5234
+ updatedAt: Date;
5235
+ deletedAt: Date | null;
5236
+ customFieldId: string;
5237
+ upload: {
5238
+ id: string;
5239
+ createdAt: Date;
5240
+ updatedAt: Date;
5241
+ deletedAt: Date | null;
5242
+ fileName: string;
5243
+ fileKey: string;
5244
+ bucketName: string;
5245
+ fileSize: number;
5246
+ };
5247
+ }, {
5248
+ id: string;
5249
+ createdAt: Date;
5250
+ updatedAt: Date;
5251
+ deletedAt: Date | null;
5252
+ customFieldId: string;
5253
+ upload: {
5254
+ id: string;
5255
+ createdAt: Date;
5256
+ updatedAt: Date;
5257
+ deletedAt: Date | null;
5258
+ fileName: string;
5259
+ fileKey: string;
5260
+ bucketName: string;
5261
+ fileSize: number;
5262
+ };
5263
+ }>, "many">;
5264
+ }, "strip", z.ZodTypeAny, {
5265
+ id: string;
5266
+ createdAt: Date;
5267
+ updatedAt: Date;
5268
+ deletedAt: Date | null;
5269
+ attribute: {
5270
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5271
+ id: string;
5272
+ position: number;
5273
+ createdAt: Date;
5274
+ updatedAt: Date;
5275
+ deletedAt: Date | null;
5276
+ isDefault: boolean;
5277
+ systemName: string;
5278
+ displayName: string;
5279
+ isArchived: boolean;
5280
+ isRequired: boolean;
5281
+ isUnique: boolean;
5282
+ };
5283
+ textValue: string | null;
5284
+ booleanValue: boolean | null;
5285
+ numberValue: number | null;
5286
+ dateValue: Date | null;
5287
+ uploads: {
5288
+ id: string;
5289
+ createdAt: Date;
5290
+ updatedAt: Date;
5291
+ deletedAt: Date | null;
5292
+ customFieldId: string;
5293
+ upload: {
5294
+ id: string;
5295
+ createdAt: Date;
5296
+ updatedAt: Date;
5297
+ deletedAt: Date | null;
5298
+ fileName: string;
5299
+ fileKey: string;
5300
+ bucketName: string;
5301
+ fileSize: number;
5302
+ };
5303
+ }[];
5304
+ }, {
5305
+ id: string;
5306
+ createdAt: Date;
5307
+ updatedAt: Date;
5308
+ deletedAt: Date | null;
5309
+ attribute: {
5310
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5311
+ id: string;
5312
+ position: number;
5313
+ createdAt: Date;
5314
+ updatedAt: Date;
5315
+ deletedAt: Date | null;
5316
+ isDefault: boolean;
5317
+ systemName: string;
5318
+ displayName: string;
5319
+ isArchived: boolean;
5320
+ isRequired: boolean;
5321
+ isUnique: boolean;
5322
+ };
5323
+ textValue: string | null;
5324
+ booleanValue: boolean | null;
5325
+ numberValue: number | null;
5326
+ dateValue: Date | null;
5327
+ uploads: {
5328
+ id: string;
5329
+ createdAt: Date;
5330
+ updatedAt: Date;
5331
+ deletedAt: Date | null;
5332
+ customFieldId: string;
5333
+ upload: {
5334
+ id: string;
5335
+ createdAt: Date;
5336
+ updatedAt: Date;
5337
+ deletedAt: Date | null;
5338
+ fileName: string;
5339
+ fileKey: string;
5340
+ bucketName: string;
5341
+ fileSize: number;
5342
+ };
5343
+ }[];
5344
+ }>, "many">;
5345
+ contactEmails: z.ZodArray<z.ZodObject<{
5346
+ id: z.ZodString;
5347
+ createdAt: z.ZodDate;
5348
+ updatedAt: z.ZodDate;
5349
+ deletedAt: z.ZodNullable<z.ZodDate>;
5350
+ email: z.ZodString;
5351
+ isPrimary: z.ZodBoolean;
5352
+ }, "strip", z.ZodTypeAny, {
5353
+ id: string;
5354
+ isPrimary: boolean;
5355
+ email: string;
5356
+ createdAt: Date;
5357
+ updatedAt: Date;
5358
+ deletedAt: Date | null;
5359
+ }, {
5360
+ id: string;
5361
+ isPrimary: boolean;
5362
+ email: string;
5363
+ createdAt: Date;
5364
+ updatedAt: Date;
5365
+ deletedAt: Date | null;
5366
+ }>, "many">;
5367
+ contactPhones: z.ZodArray<z.ZodObject<{
5368
+ id: z.ZodString;
5369
+ createdAt: z.ZodDate;
5370
+ updatedAt: z.ZodDate;
5371
+ deletedAt: z.ZodNullable<z.ZodDate>;
5372
+ phone: z.ZodString;
5373
+ isPrimary: z.ZodBoolean;
5374
+ }, "strip", z.ZodTypeAny, {
5375
+ id: string;
5376
+ isPrimary: boolean;
5377
+ createdAt: Date;
5378
+ updatedAt: Date;
5379
+ deletedAt: Date | null;
5380
+ phone: string;
5381
+ }, {
5382
+ id: string;
5383
+ isPrimary: boolean;
5384
+ createdAt: Date;
5385
+ updatedAt: Date;
5386
+ deletedAt: Date | null;
5387
+ phone: string;
5388
+ }>, "many">;
5389
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
5390
+ id: z.ZodString;
5391
+ createdAt: z.ZodDate;
5392
+ updatedAt: z.ZodDate;
5393
+ deletedAt: z.ZodNullable<z.ZodDate>;
5394
+ entityId: z.ZodString;
5395
+ description: z.ZodString;
5396
+ entityType: z.ZodObject<{
5397
+ id: z.ZodString;
5398
+ createdAt: z.ZodDate;
5399
+ updatedAt: z.ZodDate;
5400
+ deletedAt: z.ZodNullable<z.ZodDate>;
5401
+ entity: z.ZodString;
5402
+ description: z.ZodNullable<z.ZodString>;
5403
+ }, "strip", z.ZodTypeAny, {
5404
+ id: string;
5405
+ description: string | null;
5406
+ createdAt: Date;
5407
+ updatedAt: Date;
5408
+ deletedAt: Date | null;
5409
+ entity: string;
5410
+ }, {
5411
+ id: string;
5412
+ description: string | null;
5413
+ createdAt: Date;
5414
+ updatedAt: Date;
5415
+ deletedAt: Date | null;
5416
+ entity: string;
5417
+ }>;
5418
+ }, "strip", z.ZodTypeAny, {
5419
+ id: string;
5420
+ description: string;
5421
+ createdAt: Date;
5422
+ updatedAt: Date;
5423
+ deletedAt: Date | null;
5424
+ entityId: string;
5425
+ entityType: {
5426
+ id: string;
5427
+ description: string | null;
5428
+ createdAt: Date;
5429
+ updatedAt: Date;
5430
+ deletedAt: Date | null;
5431
+ entity: string;
5432
+ };
5433
+ }, {
5434
+ id: string;
5435
+ description: string;
5436
+ createdAt: Date;
5437
+ updatedAt: Date;
5438
+ deletedAt: Date | null;
5439
+ entityId: string;
5440
+ entityType: {
5441
+ id: string;
5442
+ description: string | null;
5443
+ createdAt: Date;
5444
+ updatedAt: Date;
5445
+ deletedAt: Date | null;
5446
+ entity: string;
5447
+ };
5448
+ }>, "many">>;
2492
5449
  }, "strip", z.ZodTypeAny, {
2493
- isPrimary: boolean;
2494
- email: string;
5450
+ id: string;
5451
+ channel: string | null;
5452
+ address: string | null;
5453
+ name: string;
5454
+ createdAt: Date;
5455
+ updatedAt: Date;
5456
+ deletedAt: Date | null;
5457
+ customFields: {
5458
+ id: string;
5459
+ createdAt: Date;
5460
+ updatedAt: Date;
5461
+ deletedAt: Date | null;
5462
+ attribute: {
5463
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5464
+ id: string;
5465
+ position: number;
5466
+ createdAt: Date;
5467
+ updatedAt: Date;
5468
+ deletedAt: Date | null;
5469
+ isDefault: boolean;
5470
+ systemName: string;
5471
+ displayName: string;
5472
+ isArchived: boolean;
5473
+ isRequired: boolean;
5474
+ isUnique: boolean;
5475
+ };
5476
+ textValue: string | null;
5477
+ booleanValue: boolean | null;
5478
+ numberValue: number | null;
5479
+ dateValue: Date | null;
5480
+ uploads: {
5481
+ id: string;
5482
+ createdAt: Date;
5483
+ updatedAt: Date;
5484
+ deletedAt: Date | null;
5485
+ customFieldId: string;
5486
+ upload: {
5487
+ id: string;
5488
+ createdAt: Date;
5489
+ updatedAt: Date;
5490
+ deletedAt: Date | null;
5491
+ fileName: string;
5492
+ fileKey: string;
5493
+ bucketName: string;
5494
+ fileSize: number;
5495
+ };
5496
+ }[];
5497
+ }[];
5498
+ notes: string | null;
5499
+ contactProfile: string | null;
5500
+ socialProfileUrl: string | null;
5501
+ tags: {
5502
+ id: string;
5503
+ name: string;
5504
+ createdAt: Date;
5505
+ updatedAt: Date;
5506
+ deletedAt: Date | null;
5507
+ }[];
5508
+ company: {
5509
+ id: string;
5510
+ createdAt: Date;
5511
+ updatedAt: Date;
5512
+ deletedAt: Date | null;
5513
+ address?: string | null | undefined;
5514
+ name?: string | undefined;
5515
+ phone?: string | null | undefined;
5516
+ industry?: string | null | undefined;
5517
+ } | null;
5518
+ contactEmails: {
5519
+ id: string;
5520
+ isPrimary: boolean;
5521
+ email: string;
5522
+ createdAt: Date;
5523
+ updatedAt: Date;
5524
+ deletedAt: Date | null;
5525
+ }[];
5526
+ contactPhones: {
5527
+ id: string;
5528
+ isPrimary: boolean;
5529
+ createdAt: Date;
5530
+ updatedAt: Date;
5531
+ deletedAt: Date | null;
5532
+ phone: string;
5533
+ }[];
5534
+ activityLogs?: {
5535
+ id: string;
5536
+ description: string;
5537
+ createdAt: Date;
5538
+ updatedAt: Date;
5539
+ deletedAt: Date | null;
5540
+ entityId: string;
5541
+ entityType: {
5542
+ id: string;
5543
+ description: string | null;
5544
+ createdAt: Date;
5545
+ updatedAt: Date;
5546
+ deletedAt: Date | null;
5547
+ entity: string;
5548
+ };
5549
+ }[] | undefined;
2495
5550
  }, {
2496
- isPrimary: boolean;
2497
- email: string;
2498
- }>, "many">;
2499
- }, "strip", z.ZodTypeAny, {
2500
- value: {
2501
- isPrimary: boolean;
2502
- email: string;
2503
- }[];
2504
- isRequired: boolean;
2505
- attributeId: string;
2506
- }, {
2507
- value: {
2508
- isPrimary: boolean;
2509
- email: string;
2510
- }[];
2511
- isRequired: boolean;
2512
- attributeId: string;
2513
- }>>;
2514
- channel: z.ZodOptional<z.ZodObject<{
2515
- isRequired: z.ZodBoolean;
2516
- attributeId: z.ZodString;
2517
- value: z.ZodString;
5551
+ id: string;
5552
+ channel: string | null;
5553
+ address: string | null;
5554
+ name: string;
5555
+ createdAt: Date;
5556
+ updatedAt: Date;
5557
+ deletedAt: Date | null;
5558
+ customFields: {
5559
+ id: string;
5560
+ createdAt: Date;
5561
+ updatedAt: Date;
5562
+ deletedAt: Date | null;
5563
+ attribute: {
5564
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5565
+ id: string;
5566
+ position: number;
5567
+ createdAt: Date;
5568
+ updatedAt: Date;
5569
+ deletedAt: Date | null;
5570
+ isDefault: boolean;
5571
+ systemName: string;
5572
+ displayName: string;
5573
+ isArchived: boolean;
5574
+ isRequired: boolean;
5575
+ isUnique: boolean;
5576
+ };
5577
+ textValue: string | null;
5578
+ booleanValue: boolean | null;
5579
+ numberValue: number | null;
5580
+ dateValue: Date | null;
5581
+ uploads: {
5582
+ id: string;
5583
+ createdAt: Date;
5584
+ updatedAt: Date;
5585
+ deletedAt: Date | null;
5586
+ customFieldId: string;
5587
+ upload: {
5588
+ id: string;
5589
+ createdAt: Date;
5590
+ updatedAt: Date;
5591
+ deletedAt: Date | null;
5592
+ fileName: string;
5593
+ fileKey: string;
5594
+ bucketName: string;
5595
+ fileSize: number;
5596
+ };
5597
+ }[];
5598
+ }[];
5599
+ notes: string | null;
5600
+ contactProfile: string | null;
5601
+ socialProfileUrl: string | null;
5602
+ tags: {
5603
+ id: string;
5604
+ name: string;
5605
+ createdAt: Date;
5606
+ updatedAt: Date;
5607
+ deletedAt: Date | null;
5608
+ }[];
5609
+ company: {
5610
+ id: string;
5611
+ createdAt: Date;
5612
+ updatedAt: Date;
5613
+ deletedAt: Date | null;
5614
+ address?: string | null | undefined;
5615
+ name?: string | undefined;
5616
+ phone?: string | null | undefined;
5617
+ industry?: string | null | undefined;
5618
+ } | null;
5619
+ contactEmails: {
5620
+ id: string;
5621
+ isPrimary: boolean;
5622
+ email: string;
5623
+ createdAt: Date;
5624
+ updatedAt: Date;
5625
+ deletedAt: Date | null;
5626
+ }[];
5627
+ contactPhones: {
5628
+ id: string;
5629
+ isPrimary: boolean;
5630
+ createdAt: Date;
5631
+ updatedAt: Date;
5632
+ deletedAt: Date | null;
5633
+ phone: string;
5634
+ }[];
5635
+ activityLogs?: {
5636
+ id: string;
5637
+ description: string;
5638
+ createdAt: Date;
5639
+ updatedAt: Date;
5640
+ deletedAt: Date | null;
5641
+ entityId: string;
5642
+ entityType: {
5643
+ id: string;
5644
+ description: string | null;
5645
+ createdAt: Date;
5646
+ updatedAt: Date;
5647
+ deletedAt: Date | null;
5648
+ entity: string;
5649
+ };
5650
+ }[] | undefined;
5651
+ }>;
2518
5652
  }, "strip", z.ZodTypeAny, {
2519
- value: string;
2520
- isRequired: boolean;
2521
- attributeId: string;
5653
+ data: {
5654
+ id: string;
5655
+ channel: string | null;
5656
+ address: string | null;
5657
+ name: string;
5658
+ createdAt: Date;
5659
+ updatedAt: Date;
5660
+ deletedAt: Date | null;
5661
+ customFields: {
5662
+ id: string;
5663
+ createdAt: Date;
5664
+ updatedAt: Date;
5665
+ deletedAt: Date | null;
5666
+ attribute: {
5667
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5668
+ id: string;
5669
+ position: number;
5670
+ createdAt: Date;
5671
+ updatedAt: Date;
5672
+ deletedAt: Date | null;
5673
+ isDefault: boolean;
5674
+ systemName: string;
5675
+ displayName: string;
5676
+ isArchived: boolean;
5677
+ isRequired: boolean;
5678
+ isUnique: boolean;
5679
+ };
5680
+ textValue: string | null;
5681
+ booleanValue: boolean | null;
5682
+ numberValue: number | null;
5683
+ dateValue: Date | null;
5684
+ uploads: {
5685
+ id: string;
5686
+ createdAt: Date;
5687
+ updatedAt: Date;
5688
+ deletedAt: Date | null;
5689
+ customFieldId: string;
5690
+ upload: {
5691
+ id: string;
5692
+ createdAt: Date;
5693
+ updatedAt: Date;
5694
+ deletedAt: Date | null;
5695
+ fileName: string;
5696
+ fileKey: string;
5697
+ bucketName: string;
5698
+ fileSize: number;
5699
+ };
5700
+ }[];
5701
+ }[];
5702
+ notes: string | null;
5703
+ contactProfile: string | null;
5704
+ socialProfileUrl: string | null;
5705
+ tags: {
5706
+ id: string;
5707
+ name: string;
5708
+ createdAt: Date;
5709
+ updatedAt: Date;
5710
+ deletedAt: Date | null;
5711
+ }[];
5712
+ company: {
5713
+ id: string;
5714
+ createdAt: Date;
5715
+ updatedAt: Date;
5716
+ deletedAt: Date | null;
5717
+ address?: string | null | undefined;
5718
+ name?: string | undefined;
5719
+ phone?: string | null | undefined;
5720
+ industry?: string | null | undefined;
5721
+ } | null;
5722
+ contactEmails: {
5723
+ id: string;
5724
+ isPrimary: boolean;
5725
+ email: string;
5726
+ createdAt: Date;
5727
+ updatedAt: Date;
5728
+ deletedAt: Date | null;
5729
+ }[];
5730
+ contactPhones: {
5731
+ id: string;
5732
+ isPrimary: boolean;
5733
+ createdAt: Date;
5734
+ updatedAt: Date;
5735
+ deletedAt: Date | null;
5736
+ phone: string;
5737
+ }[];
5738
+ activityLogs?: {
5739
+ id: string;
5740
+ description: string;
5741
+ createdAt: Date;
5742
+ updatedAt: Date;
5743
+ deletedAt: Date | null;
5744
+ entityId: string;
5745
+ entityType: {
5746
+ id: string;
5747
+ description: string | null;
5748
+ createdAt: Date;
5749
+ updatedAt: Date;
5750
+ deletedAt: Date | null;
5751
+ entity: string;
5752
+ };
5753
+ }[] | undefined;
5754
+ };
5755
+ requestId: string;
2522
5756
  }, {
2523
- value: string;
2524
- isRequired: boolean;
2525
- attributeId: string;
2526
- }>>;
2527
- address: z.ZodOptional<z.ZodObject<{
2528
- isRequired: z.ZodBoolean;
2529
- attributeId: z.ZodString;
2530
- value: z.ZodString;
5757
+ data: {
5758
+ id: string;
5759
+ channel: string | null;
5760
+ address: string | null;
5761
+ name: string;
5762
+ createdAt: Date;
5763
+ updatedAt: Date;
5764
+ deletedAt: Date | null;
5765
+ customFields: {
5766
+ id: string;
5767
+ createdAt: Date;
5768
+ updatedAt: Date;
5769
+ deletedAt: Date | null;
5770
+ attribute: {
5771
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
5772
+ id: string;
5773
+ position: number;
5774
+ createdAt: Date;
5775
+ updatedAt: Date;
5776
+ deletedAt: Date | null;
5777
+ isDefault: boolean;
5778
+ systemName: string;
5779
+ displayName: string;
5780
+ isArchived: boolean;
5781
+ isRequired: boolean;
5782
+ isUnique: boolean;
5783
+ };
5784
+ textValue: string | null;
5785
+ booleanValue: boolean | null;
5786
+ numberValue: number | null;
5787
+ dateValue: Date | null;
5788
+ uploads: {
5789
+ id: string;
5790
+ createdAt: Date;
5791
+ updatedAt: Date;
5792
+ deletedAt: Date | null;
5793
+ customFieldId: string;
5794
+ upload: {
5795
+ id: string;
5796
+ createdAt: Date;
5797
+ updatedAt: Date;
5798
+ deletedAt: Date | null;
5799
+ fileName: string;
5800
+ fileKey: string;
5801
+ bucketName: string;
5802
+ fileSize: number;
5803
+ };
5804
+ }[];
5805
+ }[];
5806
+ notes: string | null;
5807
+ contactProfile: string | null;
5808
+ socialProfileUrl: string | null;
5809
+ tags: {
5810
+ id: string;
5811
+ name: string;
5812
+ createdAt: Date;
5813
+ updatedAt: Date;
5814
+ deletedAt: Date | null;
5815
+ }[];
5816
+ company: {
5817
+ id: string;
5818
+ createdAt: Date;
5819
+ updatedAt: Date;
5820
+ deletedAt: Date | null;
5821
+ address?: string | null | undefined;
5822
+ name?: string | undefined;
5823
+ phone?: string | null | undefined;
5824
+ industry?: string | null | undefined;
5825
+ } | null;
5826
+ contactEmails: {
5827
+ id: string;
5828
+ isPrimary: boolean;
5829
+ email: string;
5830
+ createdAt: Date;
5831
+ updatedAt: Date;
5832
+ deletedAt: Date | null;
5833
+ }[];
5834
+ contactPhones: {
5835
+ id: string;
5836
+ isPrimary: boolean;
5837
+ createdAt: Date;
5838
+ updatedAt: Date;
5839
+ deletedAt: Date | null;
5840
+ phone: string;
5841
+ }[];
5842
+ activityLogs?: {
5843
+ id: string;
5844
+ description: string;
5845
+ createdAt: Date;
5846
+ updatedAt: Date;
5847
+ deletedAt: Date | null;
5848
+ entityId: string;
5849
+ entityType: {
5850
+ id: string;
5851
+ description: string | null;
5852
+ createdAt: Date;
5853
+ updatedAt: Date;
5854
+ deletedAt: Date | null;
5855
+ entity: string;
5856
+ };
5857
+ }[] | undefined;
5858
+ };
5859
+ requestId: string;
5860
+ }>;
5861
+ 400: z.ZodObject<{
5862
+ message: z.ZodString;
2531
5863
  }, "strip", z.ZodTypeAny, {
2532
- value: string;
2533
- isRequired: boolean;
2534
- attributeId: string;
5864
+ message: string;
2535
5865
  }, {
2536
- value: string;
2537
- isRequired: boolean;
2538
- attributeId: string;
2539
- }>>;
2540
- phone: z.ZodOptional<z.ZodOptional<z.ZodObject<{
2541
- isRequired: z.ZodBoolean;
2542
- attributeId: z.ZodString;
2543
- value: z.ZodArray<z.ZodObject<{
2544
- phone: z.ZodString;
2545
- isPrimary: z.ZodBoolean;
2546
- }, "strip", z.ZodTypeAny, {
2547
- isPrimary: boolean;
2548
- phone: string;
2549
- }, {
2550
- isPrimary: boolean;
2551
- phone: string;
2552
- }>, "many">;
5866
+ message: string;
5867
+ }>;
5868
+ 409: z.ZodObject<{
5869
+ message: z.ZodString;
2553
5870
  }, "strip", z.ZodTypeAny, {
2554
- value: {
2555
- isPrimary: boolean;
2556
- phone: string;
2557
- }[];
2558
- isRequired: boolean;
2559
- attributeId: string;
5871
+ message: string;
2560
5872
  }, {
2561
- value: {
2562
- isPrimary: boolean;
2563
- phone: string;
2564
- }[];
2565
- isRequired: boolean;
2566
- attributeId: string;
2567
- }>>>;
2568
- notes: z.ZodOptional<z.ZodObject<{
2569
- isRequired: z.ZodBoolean;
2570
- attributeId: z.ZodString;
2571
- value: z.ZodString;
5873
+ message: string;
5874
+ }>;
5875
+ 500: z.ZodObject<{
5876
+ message: z.ZodString;
2572
5877
  }, "strip", z.ZodTypeAny, {
2573
- value: string;
2574
- isRequired: boolean;
2575
- attributeId: string;
5878
+ message: string;
2576
5879
  }, {
2577
- value: string;
2578
- isRequired: boolean;
2579
- attributeId: string;
2580
- }>>;
2581
- tags: z.ZodOptional<z.ZodObject<{
2582
- isRequired: z.ZodBoolean;
2583
- attributeId: z.ZodString;
2584
- value: z.ZodArray<z.ZodString, "many">;
5880
+ message: string;
5881
+ }>;
5882
+ 401: z.ZodObject<{
5883
+ message: z.ZodString;
5884
+ error: z.ZodAny;
2585
5885
  }, "strip", z.ZodTypeAny, {
2586
- value: string[];
2587
- isRequired: boolean;
2588
- attributeId: string;
5886
+ message: string;
5887
+ error?: any;
2589
5888
  }, {
2590
- value: string[];
2591
- isRequired: boolean;
2592
- attributeId: string;
2593
- }>>;
2594
- company: z.ZodOptional<z.ZodObject<{
2595
- isRequired: z.ZodBoolean;
2596
- attributeId: z.ZodString;
2597
- value: z.ZodString;
5889
+ message: string;
5890
+ error?: any;
5891
+ }>;
5892
+ 404: z.ZodObject<{
5893
+ message: z.ZodString;
5894
+ error: z.ZodAny;
2598
5895
  }, "strip", z.ZodTypeAny, {
2599
- value: string;
2600
- isRequired: boolean;
2601
- attributeId: string;
5896
+ message: string;
5897
+ error?: any;
2602
5898
  }, {
2603
- value: string;
2604
- isRequired: boolean;
2605
- attributeId: string;
2606
- }>>;
2607
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2608
- isRequired: z.ZodBoolean;
2609
- attributeId: z.ZodString;
2610
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
2611
- type: z.ZodString;
2612
- isDefaultAttribute: z.ZodBoolean;
5899
+ message: string;
5900
+ error?: any;
5901
+ }>;
5902
+ 422: z.ZodObject<{
5903
+ message: z.ZodString;
5904
+ error: z.ZodAny;
2613
5905
  }, "strip", z.ZodTypeAny, {
2614
- type: string;
2615
- value: (string | string[]) & (string | string[] | undefined);
2616
- isRequired: boolean;
2617
- attributeId: string;
2618
- isDefaultAttribute: boolean;
5906
+ message: string;
5907
+ error?: any;
2619
5908
  }, {
2620
- type: string;
2621
- value: (string | string[]) & (string | string[] | undefined);
2622
- isRequired: boolean;
2623
- attributeId: string;
2624
- isDefaultAttribute: boolean;
2625
- }>, "many">>;
5909
+ message: string;
5910
+ error?: any;
5911
+ }>;
5912
+ };
5913
+ path: "contact/phone";
5914
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5915
+ 'x-tenant': z.ZodString;
5916
+ authorization: z.ZodString;
2626
5917
  }, "strip", z.ZodTypeAny, {
2627
- name?: {
2628
- value: string;
2629
- isRequired: boolean;
2630
- attributeId: string;
2631
- } | undefined;
2632
- email?: {
2633
- value: {
2634
- isPrimary: boolean;
2635
- email: string;
2636
- }[];
2637
- isRequired: boolean;
2638
- attributeId: string;
2639
- } | undefined;
2640
- channel?: {
2641
- value: string;
2642
- isRequired: boolean;
2643
- attributeId: string;
2644
- } | undefined;
2645
- address?: {
2646
- value: string;
2647
- isRequired: boolean;
2648
- attributeId: string;
2649
- } | undefined;
2650
- phone?: {
2651
- value: {
2652
- isPrimary: boolean;
2653
- phone: string;
2654
- }[];
2655
- isRequired: boolean;
2656
- attributeId: string;
2657
- } | undefined;
2658
- notes?: {
2659
- value: string;
2660
- isRequired: boolean;
2661
- attributeId: string;
2662
- } | undefined;
2663
- tags?: {
2664
- value: string[];
2665
- isRequired: boolean;
2666
- attributeId: string;
2667
- } | undefined;
2668
- company?: {
2669
- value: string;
2670
- isRequired: boolean;
2671
- attributeId: string;
2672
- } | undefined;
2673
- customFields?: {
2674
- type: string;
2675
- value: (string | string[]) & (string | string[] | undefined);
2676
- isRequired: boolean;
2677
- attributeId: string;
2678
- isDefaultAttribute: boolean;
2679
- }[] | undefined;
5918
+ 'x-tenant': string;
5919
+ authorization: string;
2680
5920
  }, {
2681
- name?: {
2682
- value: string;
2683
- isRequired: boolean;
2684
- attributeId: string;
2685
- } | undefined;
2686
- email?: {
2687
- value: {
2688
- isPrimary: boolean;
2689
- email: string;
2690
- }[];
2691
- isRequired: boolean;
2692
- attributeId: string;
2693
- } | undefined;
2694
- channel?: {
2695
- value: string;
2696
- isRequired: boolean;
2697
- attributeId: string;
2698
- } | undefined;
2699
- address?: {
2700
- value: string;
2701
- isRequired: boolean;
2702
- attributeId: string;
2703
- } | undefined;
2704
- phone?: {
2705
- value: {
2706
- isPrimary: boolean;
2707
- phone: string;
2708
- }[];
2709
- isRequired: boolean;
2710
- attributeId: string;
2711
- } | undefined;
2712
- notes?: {
2713
- value: string;
2714
- isRequired: boolean;
2715
- attributeId: string;
2716
- } | undefined;
2717
- tags?: {
2718
- value: string[];
2719
- isRequired: boolean;
2720
- attributeId: string;
2721
- } | undefined;
2722
- company?: {
2723
- value: string;
2724
- isRequired: boolean;
2725
- attributeId: string;
2726
- } | undefined;
2727
- customFields?: {
2728
- type: string;
2729
- value: (string | string[]) & (string | string[] | undefined);
2730
- isRequired: boolean;
2731
- attributeId: string;
2732
- isDefaultAttribute: boolean;
2733
- }[] | undefined;
2734
- }>;
2735
- summary: "Update a contact";
2736
- method: "PATCH";
2737
- pathParams: z.ZodObject<{
2738
- id: z.ZodString;
5921
+ 'x-tenant': string;
5922
+ authorization: string;
5923
+ }>>>;
5924
+ };
5925
+ updateFromOngoingCall: {
5926
+ body: z.ZodObject<{
5927
+ name: z.ZodOptional<z.ZodString>;
5928
+ companyId: z.ZodOptional<z.ZodString>;
2739
5929
  }, "strip", z.ZodTypeAny, {
2740
- id: string;
5930
+ name?: string | undefined;
5931
+ companyId?: string | undefined;
2741
5932
  }, {
2742
- id: string;
5933
+ name?: string | undefined;
5934
+ companyId?: string | undefined;
2743
5935
  }>;
5936
+ summary: "Update a contact with name and company while making ongoing call";
5937
+ method: "PATCH";
2744
5938
  responses: {
2745
- 200: z.ZodObject<{
5939
+ 201: z.ZodObject<{
2746
5940
  requestId: z.ZodString;
2747
5941
  data: z.ZodObject<{
2748
5942
  id: z.ZodString;
@@ -3689,94 +6883,8 @@ export declare const contactContract: {
3689
6883
  deletedAt: Date | null;
3690
6884
  entity: string;
3691
6885
  };
3692
- }[] | undefined;
3693
- };
3694
- requestId: string;
3695
- }>;
3696
- 400: z.ZodObject<{
3697
- message: z.ZodString;
3698
- }, "strip", z.ZodTypeAny, {
3699
- message: string;
3700
- }, {
3701
- message: string;
3702
- }>;
3703
- 409: z.ZodObject<{
3704
- message: z.ZodString;
3705
- }, "strip", z.ZodTypeAny, {
3706
- message: string;
3707
- }, {
3708
- message: string;
3709
- }>;
3710
- 500: z.ZodObject<{
3711
- message: z.ZodString;
3712
- }, "strip", z.ZodTypeAny, {
3713
- message: string;
3714
- }, {
3715
- message: string;
3716
- }>;
3717
- 401: z.ZodObject<{
3718
- message: z.ZodString;
3719
- error: z.ZodAny;
3720
- }, "strip", z.ZodTypeAny, {
3721
- message: string;
3722
- error?: any;
3723
- }, {
3724
- message: string;
3725
- error?: any;
3726
- }>;
3727
- 404: z.ZodObject<{
3728
- message: z.ZodString;
3729
- error: z.ZodAny;
3730
- }, "strip", z.ZodTypeAny, {
3731
- message: string;
3732
- error?: any;
3733
- }, {
3734
- message: string;
3735
- error?: any;
3736
- }>;
3737
- 422: z.ZodObject<{
3738
- message: z.ZodString;
3739
- error: z.ZodAny;
3740
- }, "strip", z.ZodTypeAny, {
3741
- message: string;
3742
- error?: any;
3743
- }, {
3744
- message: string;
3745
- error?: any;
3746
- }>;
3747
- };
3748
- path: "contact/:id";
3749
- headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3750
- 'x-tenant': z.ZodString;
3751
- authorization: z.ZodString;
3752
- }, "strip", z.ZodTypeAny, {
3753
- 'x-tenant': string;
3754
- authorization: string;
3755
- }, {
3756
- 'x-tenant': string;
3757
- authorization: string;
3758
- }>>>;
3759
- };
3760
- delete: {
3761
- body: null;
3762
- summary: "Delete a contact";
3763
- method: "DELETE";
3764
- pathParams: z.ZodObject<{
3765
- id: z.ZodString;
3766
- }, "strip", z.ZodTypeAny, {
3767
- id: string;
3768
- }, {
3769
- id: string;
3770
- }>;
3771
- responses: {
3772
- 200: z.ZodObject<{
3773
- requestId: z.ZodString;
3774
- message: z.ZodString;
3775
- }, "strip", z.ZodTypeAny, {
3776
- message: string;
3777
- requestId: string;
3778
- }, {
3779
- message: string;
6886
+ }[] | undefined;
6887
+ };
3780
6888
  requestId: string;
3781
6889
  }>;
3782
6890
  400: z.ZodObject<{
@@ -3831,7 +6939,7 @@ export declare const contactContract: {
3831
6939
  error?: any;
3832
6940
  }>;
3833
6941
  };
3834
- path: "contact/:id";
6942
+ path: "contact/:id/ongoing";
3835
6943
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
3836
6944
  'x-tenant': z.ZodString;
3837
6945
  authorization: z.ZodString;
@@ -3843,18 +6951,57 @@ export declare const contactContract: {
3843
6951
  authorization: string;
3844
6952
  }>>>;
3845
6953
  };
3846
- createContactByPhone: {
6954
+ merge: {
3847
6955
  body: z.ZodObject<{
3848
- phoneNumber: z.ZodEffects<z.ZodString, string, string>;
6956
+ primaryContactId: z.ZodString;
6957
+ emails: z.ZodArray<z.ZodObject<{
6958
+ email: z.ZodString;
6959
+ isPrimary: z.ZodBoolean;
6960
+ }, "strip", z.ZodTypeAny, {
6961
+ isPrimary: boolean;
6962
+ email: string;
6963
+ }, {
6964
+ isPrimary: boolean;
6965
+ email: string;
6966
+ }>, "many">;
6967
+ phones: z.ZodArray<z.ZodObject<{
6968
+ phone: z.ZodString;
6969
+ isPrimary: z.ZodBoolean;
6970
+ }, "strip", z.ZodTypeAny, {
6971
+ isPrimary: boolean;
6972
+ phone: string;
6973
+ }, {
6974
+ isPrimary: boolean;
6975
+ phone: string;
6976
+ }>, "many">;
6977
+ otherContacts: z.ZodArray<z.ZodString, "many">;
3849
6978
  }, "strip", z.ZodTypeAny, {
3850
- phoneNumber: string;
6979
+ primaryContactId: string;
6980
+ emails: {
6981
+ isPrimary: boolean;
6982
+ email: string;
6983
+ }[];
6984
+ phones: {
6985
+ isPrimary: boolean;
6986
+ phone: string;
6987
+ }[];
6988
+ otherContacts: string[];
3851
6989
  }, {
3852
- phoneNumber: string;
6990
+ primaryContactId: string;
6991
+ emails: {
6992
+ isPrimary: boolean;
6993
+ email: string;
6994
+ }[];
6995
+ phones: {
6996
+ isPrimary: boolean;
6997
+ phone: string;
6998
+ }[];
6999
+ otherContacts: string[];
3853
7000
  }>;
3854
- summary: "Create a new contact using phone number";
7001
+ summary: "Merge contacts into a single contact.";
3855
7002
  method: "POST";
3856
7003
  responses: {
3857
- 201: z.ZodObject<{
7004
+ 200: z.ZodObject<{
3858
7005
  requestId: z.ZodString;
3859
7006
  data: z.ZodObject<{
3860
7007
  id: z.ZodString;
@@ -4331,53 +7478,255 @@ export declare const contactContract: {
4331
7478
  createdAt: Date;
4332
7479
  updatedAt: Date;
4333
7480
  deletedAt: Date | null;
4334
- phone: string;
4335
- }>, "many">;
4336
- activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
4337
- id: z.ZodString;
4338
- createdAt: z.ZodDate;
4339
- updatedAt: z.ZodDate;
4340
- deletedAt: z.ZodNullable<z.ZodDate>;
4341
- entityId: z.ZodString;
4342
- description: z.ZodString;
4343
- entityType: z.ZodObject<{
4344
- id: z.ZodString;
4345
- createdAt: z.ZodDate;
4346
- updatedAt: z.ZodDate;
4347
- deletedAt: z.ZodNullable<z.ZodDate>;
4348
- entity: z.ZodString;
4349
- description: z.ZodNullable<z.ZodString>;
4350
- }, "strip", z.ZodTypeAny, {
4351
- id: string;
4352
- description: string | null;
4353
- createdAt: Date;
4354
- updatedAt: Date;
4355
- deletedAt: Date | null;
4356
- entity: string;
4357
- }, {
4358
- id: string;
4359
- description: string | null;
4360
- createdAt: Date;
4361
- updatedAt: Date;
4362
- deletedAt: Date | null;
4363
- entity: string;
4364
- }>;
4365
- }, "strip", z.ZodTypeAny, {
7481
+ phone: string;
7482
+ }>, "many">;
7483
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
7484
+ id: z.ZodString;
7485
+ createdAt: z.ZodDate;
7486
+ updatedAt: z.ZodDate;
7487
+ deletedAt: z.ZodNullable<z.ZodDate>;
7488
+ entityId: z.ZodString;
7489
+ description: z.ZodString;
7490
+ entityType: z.ZodObject<{
7491
+ id: z.ZodString;
7492
+ createdAt: z.ZodDate;
7493
+ updatedAt: z.ZodDate;
7494
+ deletedAt: z.ZodNullable<z.ZodDate>;
7495
+ entity: z.ZodString;
7496
+ description: z.ZodNullable<z.ZodString>;
7497
+ }, "strip", z.ZodTypeAny, {
7498
+ id: string;
7499
+ description: string | null;
7500
+ createdAt: Date;
7501
+ updatedAt: Date;
7502
+ deletedAt: Date | null;
7503
+ entity: string;
7504
+ }, {
7505
+ id: string;
7506
+ description: string | null;
7507
+ createdAt: Date;
7508
+ updatedAt: Date;
7509
+ deletedAt: Date | null;
7510
+ entity: string;
7511
+ }>;
7512
+ }, "strip", z.ZodTypeAny, {
7513
+ id: string;
7514
+ description: string;
7515
+ createdAt: Date;
7516
+ updatedAt: Date;
7517
+ deletedAt: Date | null;
7518
+ entityId: string;
7519
+ entityType: {
7520
+ id: string;
7521
+ description: string | null;
7522
+ createdAt: Date;
7523
+ updatedAt: Date;
7524
+ deletedAt: Date | null;
7525
+ entity: string;
7526
+ };
7527
+ }, {
7528
+ id: string;
7529
+ description: string;
7530
+ createdAt: Date;
7531
+ updatedAt: Date;
7532
+ deletedAt: Date | null;
7533
+ entityId: string;
7534
+ entityType: {
7535
+ id: string;
7536
+ description: string | null;
7537
+ createdAt: Date;
7538
+ updatedAt: Date;
7539
+ deletedAt: Date | null;
7540
+ entity: string;
7541
+ };
7542
+ }>, "many">>;
7543
+ }, "strip", z.ZodTypeAny, {
7544
+ id: string;
7545
+ channel: string | null;
7546
+ address: string | null;
7547
+ name: string;
7548
+ createdAt: Date;
7549
+ updatedAt: Date;
7550
+ deletedAt: Date | null;
7551
+ customFields: {
7552
+ id: string;
7553
+ createdAt: Date;
7554
+ updatedAt: Date;
7555
+ deletedAt: Date | null;
7556
+ attribute: {
7557
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7558
+ id: string;
7559
+ position: number;
7560
+ createdAt: Date;
7561
+ updatedAt: Date;
7562
+ deletedAt: Date | null;
7563
+ isDefault: boolean;
7564
+ systemName: string;
7565
+ displayName: string;
7566
+ isArchived: boolean;
7567
+ isRequired: boolean;
7568
+ isUnique: boolean;
7569
+ };
7570
+ textValue: string | null;
7571
+ booleanValue: boolean | null;
7572
+ numberValue: number | null;
7573
+ dateValue: Date | null;
7574
+ uploads: {
7575
+ id: string;
7576
+ createdAt: Date;
7577
+ updatedAt: Date;
7578
+ deletedAt: Date | null;
7579
+ customFieldId: string;
7580
+ upload: {
7581
+ id: string;
7582
+ createdAt: Date;
7583
+ updatedAt: Date;
7584
+ deletedAt: Date | null;
7585
+ fileName: string;
7586
+ fileKey: string;
7587
+ bucketName: string;
7588
+ fileSize: number;
7589
+ };
7590
+ }[];
7591
+ }[];
7592
+ notes: string | null;
7593
+ contactProfile: string | null;
7594
+ socialProfileUrl: string | null;
7595
+ tags: {
7596
+ id: string;
7597
+ name: string;
7598
+ createdAt: Date;
7599
+ updatedAt: Date;
7600
+ deletedAt: Date | null;
7601
+ }[];
7602
+ company: {
7603
+ id: string;
7604
+ createdAt: Date;
7605
+ updatedAt: Date;
7606
+ deletedAt: Date | null;
7607
+ address?: string | null | undefined;
7608
+ name?: string | undefined;
7609
+ phone?: string | null | undefined;
7610
+ industry?: string | null | undefined;
7611
+ } | null;
7612
+ contactEmails: {
7613
+ id: string;
7614
+ isPrimary: boolean;
7615
+ email: string;
7616
+ createdAt: Date;
7617
+ updatedAt: Date;
7618
+ deletedAt: Date | null;
7619
+ }[];
7620
+ contactPhones: {
7621
+ id: string;
7622
+ isPrimary: boolean;
7623
+ createdAt: Date;
7624
+ updatedAt: Date;
7625
+ deletedAt: Date | null;
7626
+ phone: string;
7627
+ }[];
7628
+ activityLogs?: {
7629
+ id: string;
7630
+ description: string;
7631
+ createdAt: Date;
7632
+ updatedAt: Date;
7633
+ deletedAt: Date | null;
7634
+ entityId: string;
7635
+ entityType: {
7636
+ id: string;
7637
+ description: string | null;
7638
+ createdAt: Date;
7639
+ updatedAt: Date;
7640
+ deletedAt: Date | null;
7641
+ entity: string;
7642
+ };
7643
+ }[] | undefined;
7644
+ }, {
7645
+ id: string;
7646
+ channel: string | null;
7647
+ address: string | null;
7648
+ name: string;
7649
+ createdAt: Date;
7650
+ updatedAt: Date;
7651
+ deletedAt: Date | null;
7652
+ customFields: {
7653
+ id: string;
7654
+ createdAt: Date;
7655
+ updatedAt: Date;
7656
+ deletedAt: Date | null;
7657
+ attribute: {
7658
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
7659
+ id: string;
7660
+ position: number;
7661
+ createdAt: Date;
7662
+ updatedAt: Date;
7663
+ deletedAt: Date | null;
7664
+ isDefault: boolean;
7665
+ systemName: string;
7666
+ displayName: string;
7667
+ isArchived: boolean;
7668
+ isRequired: boolean;
7669
+ isUnique: boolean;
7670
+ };
7671
+ textValue: string | null;
7672
+ booleanValue: boolean | null;
7673
+ numberValue: number | null;
7674
+ dateValue: Date | null;
7675
+ uploads: {
7676
+ id: string;
7677
+ createdAt: Date;
7678
+ updatedAt: Date;
7679
+ deletedAt: Date | null;
7680
+ customFieldId: string;
7681
+ upload: {
7682
+ id: string;
7683
+ createdAt: Date;
7684
+ updatedAt: Date;
7685
+ deletedAt: Date | null;
7686
+ fileName: string;
7687
+ fileKey: string;
7688
+ bucketName: string;
7689
+ fileSize: number;
7690
+ };
7691
+ }[];
7692
+ }[];
7693
+ notes: string | null;
7694
+ contactProfile: string | null;
7695
+ socialProfileUrl: string | null;
7696
+ tags: {
7697
+ id: string;
7698
+ name: string;
7699
+ createdAt: Date;
7700
+ updatedAt: Date;
7701
+ deletedAt: Date | null;
7702
+ }[];
7703
+ company: {
7704
+ id: string;
7705
+ createdAt: Date;
7706
+ updatedAt: Date;
7707
+ deletedAt: Date | null;
7708
+ address?: string | null | undefined;
7709
+ name?: string | undefined;
7710
+ phone?: string | null | undefined;
7711
+ industry?: string | null | undefined;
7712
+ } | null;
7713
+ contactEmails: {
7714
+ id: string;
7715
+ isPrimary: boolean;
7716
+ email: string;
7717
+ createdAt: Date;
7718
+ updatedAt: Date;
7719
+ deletedAt: Date | null;
7720
+ }[];
7721
+ contactPhones: {
4366
7722
  id: string;
4367
- description: string;
7723
+ isPrimary: boolean;
4368
7724
  createdAt: Date;
4369
7725
  updatedAt: Date;
4370
7726
  deletedAt: Date | null;
4371
- entityId: string;
4372
- entityType: {
4373
- id: string;
4374
- description: string | null;
4375
- createdAt: Date;
4376
- updatedAt: Date;
4377
- deletedAt: Date | null;
4378
- entity: string;
4379
- };
4380
- }, {
7727
+ phone: string;
7728
+ }[];
7729
+ activityLogs?: {
4381
7730
  id: string;
4382
7731
  description: string;
4383
7732
  createdAt: Date;
@@ -4392,8 +7741,10 @@ export declare const contactContract: {
4392
7741
  deletedAt: Date | null;
4393
7742
  entity: string;
4394
7743
  };
4395
- }>, "many">>;
4396
- }, "strip", z.ZodTypeAny, {
7744
+ }[] | undefined;
7745
+ }>;
7746
+ }, "strip", z.ZodTypeAny, {
7747
+ data: {
4397
7748
  id: string;
4398
7749
  channel: string | null;
4399
7750
  address: string | null;
@@ -4494,7 +7845,10 @@ export declare const contactContract: {
4494
7845
  entity: string;
4495
7846
  };
4496
7847
  }[] | undefined;
4497
- }, {
7848
+ };
7849
+ requestId: string;
7850
+ }, {
7851
+ data: {
4498
7852
  id: string;
4499
7853
  channel: string | null;
4500
7854
  address: string | null;
@@ -4595,213 +7949,357 @@ export declare const contactContract: {
4595
7949
  entity: string;
4596
7950
  };
4597
7951
  }[] | undefined;
7952
+ };
7953
+ requestId: string;
7954
+ }>;
7955
+ 400: z.ZodObject<{
7956
+ message: z.ZodString;
7957
+ }, "strip", z.ZodTypeAny, {
7958
+ message: string;
7959
+ }, {
7960
+ message: string;
7961
+ }>;
7962
+ 409: z.ZodObject<{
7963
+ message: z.ZodString;
7964
+ }, "strip", z.ZodTypeAny, {
7965
+ message: string;
7966
+ }, {
7967
+ message: string;
7968
+ }>;
7969
+ 500: z.ZodObject<{
7970
+ message: z.ZodString;
7971
+ }, "strip", z.ZodTypeAny, {
7972
+ message: string;
7973
+ }, {
7974
+ message: string;
7975
+ }>;
7976
+ 401: z.ZodObject<{
7977
+ message: z.ZodString;
7978
+ error: z.ZodAny;
7979
+ }, "strip", z.ZodTypeAny, {
7980
+ message: string;
7981
+ error?: any;
7982
+ }, {
7983
+ message: string;
7984
+ error?: any;
7985
+ }>;
7986
+ 404: z.ZodObject<{
7987
+ message: z.ZodString;
7988
+ error: z.ZodAny;
7989
+ }, "strip", z.ZodTypeAny, {
7990
+ message: string;
7991
+ error?: any;
7992
+ }, {
7993
+ message: string;
7994
+ error?: any;
7995
+ }>;
7996
+ 422: z.ZodObject<{
7997
+ message: z.ZodString;
7998
+ error: z.ZodAny;
7999
+ }, "strip", z.ZodTypeAny, {
8000
+ message: string;
8001
+ error?: any;
8002
+ }, {
8003
+ message: string;
8004
+ error?: any;
8005
+ }>;
8006
+ };
8007
+ path: "contact/merge";
8008
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8009
+ 'x-tenant': z.ZodString;
8010
+ authorization: z.ZodString;
8011
+ }, "strip", z.ZodTypeAny, {
8012
+ 'x-tenant': string;
8013
+ authorization: string;
8014
+ }, {
8015
+ 'x-tenant': string;
8016
+ authorization: string;
8017
+ }>>>;
8018
+ };
8019
+ checkContactPhone: {
8020
+ body: z.ZodObject<{
8021
+ contactId: z.ZodOptional<z.ZodString>;
8022
+ phoneNumber: z.ZodString;
8023
+ }, "strip", z.ZodTypeAny, {
8024
+ phoneNumber: string;
8025
+ contactId?: string | undefined;
8026
+ }, {
8027
+ phoneNumber: string;
8028
+ contactId?: string | undefined;
8029
+ }>;
8030
+ summary: "Check whether a contact owns a phone number";
8031
+ method: "POST";
8032
+ responses: {
8033
+ 200: z.ZodObject<{
8034
+ requestId: z.ZodString;
8035
+ existed: z.ZodBoolean;
8036
+ }, "strip", z.ZodTypeAny, {
8037
+ requestId: string;
8038
+ existed: boolean;
8039
+ }, {
8040
+ requestId: string;
8041
+ existed: boolean;
8042
+ }>;
8043
+ 400: z.ZodObject<{
8044
+ message: z.ZodString;
8045
+ }, "strip", z.ZodTypeAny, {
8046
+ message: string;
8047
+ }, {
8048
+ message: string;
8049
+ }>;
8050
+ 409: z.ZodObject<{
8051
+ message: z.ZodString;
8052
+ }, "strip", z.ZodTypeAny, {
8053
+ message: string;
8054
+ }, {
8055
+ message: string;
8056
+ }>;
8057
+ 500: z.ZodObject<{
8058
+ message: z.ZodString;
8059
+ }, "strip", z.ZodTypeAny, {
8060
+ message: string;
8061
+ }, {
8062
+ message: string;
8063
+ }>;
8064
+ 401: z.ZodObject<{
8065
+ message: z.ZodString;
8066
+ error: z.ZodAny;
8067
+ }, "strip", z.ZodTypeAny, {
8068
+ message: string;
8069
+ error?: any;
8070
+ }, {
8071
+ message: string;
8072
+ error?: any;
8073
+ }>;
8074
+ 404: z.ZodObject<{
8075
+ message: z.ZodString;
8076
+ error: z.ZodAny;
8077
+ }, "strip", z.ZodTypeAny, {
8078
+ message: string;
8079
+ error?: any;
8080
+ }, {
8081
+ message: string;
8082
+ error?: any;
8083
+ }>;
8084
+ 422: z.ZodObject<{
8085
+ message: z.ZodString;
8086
+ error: z.ZodAny;
8087
+ }, "strip", z.ZodTypeAny, {
8088
+ message: string;
8089
+ error?: any;
8090
+ }, {
8091
+ message: string;
8092
+ error?: any;
8093
+ }>;
8094
+ };
8095
+ path: "contact/check/phone";
8096
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8097
+ 'x-tenant': z.ZodString;
8098
+ authorization: z.ZodString;
8099
+ }, "strip", z.ZodTypeAny, {
8100
+ 'x-tenant': string;
8101
+ authorization: string;
8102
+ }, {
8103
+ 'x-tenant': string;
8104
+ authorization: string;
8105
+ }>>>;
8106
+ };
8107
+ checkContactEmail: {
8108
+ body: z.ZodObject<{
8109
+ contactId: z.ZodOptional<z.ZodString>;
8110
+ email: z.ZodString;
8111
+ }, "strip", z.ZodTypeAny, {
8112
+ email: string;
8113
+ contactId?: string | undefined;
8114
+ }, {
8115
+ email: string;
8116
+ contactId?: string | undefined;
8117
+ }>;
8118
+ summary: "Check whether a contact owns a email";
8119
+ method: "POST";
8120
+ responses: {
8121
+ 200: z.ZodObject<{
8122
+ requestId: z.ZodString;
8123
+ existed: z.ZodBoolean;
8124
+ }, "strip", z.ZodTypeAny, {
8125
+ requestId: string;
8126
+ existed: boolean;
8127
+ }, {
8128
+ requestId: string;
8129
+ existed: boolean;
8130
+ }>;
8131
+ 400: z.ZodObject<{
8132
+ message: z.ZodString;
8133
+ }, "strip", z.ZodTypeAny, {
8134
+ message: string;
8135
+ }, {
8136
+ message: string;
8137
+ }>;
8138
+ 409: z.ZodObject<{
8139
+ message: z.ZodString;
8140
+ }, "strip", z.ZodTypeAny, {
8141
+ message: string;
8142
+ }, {
8143
+ message: string;
8144
+ }>;
8145
+ 500: z.ZodObject<{
8146
+ message: z.ZodString;
8147
+ }, "strip", z.ZodTypeAny, {
8148
+ message: string;
8149
+ }, {
8150
+ message: string;
8151
+ }>;
8152
+ 401: z.ZodObject<{
8153
+ message: z.ZodString;
8154
+ error: z.ZodAny;
8155
+ }, "strip", z.ZodTypeAny, {
8156
+ message: string;
8157
+ error?: any;
8158
+ }, {
8159
+ message: string;
8160
+ error?: any;
8161
+ }>;
8162
+ 404: z.ZodObject<{
8163
+ message: z.ZodString;
8164
+ error: z.ZodAny;
8165
+ }, "strip", z.ZodTypeAny, {
8166
+ message: string;
8167
+ error?: any;
8168
+ }, {
8169
+ message: string;
8170
+ error?: any;
8171
+ }>;
8172
+ 422: z.ZodObject<{
8173
+ message: z.ZodString;
8174
+ error: z.ZodAny;
8175
+ }, "strip", z.ZodTypeAny, {
8176
+ message: string;
8177
+ error?: any;
8178
+ }, {
8179
+ message: string;
8180
+ error?: any;
8181
+ }>;
8182
+ };
8183
+ path: "contact/check/email";
8184
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
8185
+ 'x-tenant': z.ZodString;
8186
+ authorization: z.ZodString;
8187
+ }, "strip", z.ZodTypeAny, {
8188
+ 'x-tenant': string;
8189
+ authorization: string;
8190
+ }, {
8191
+ 'x-tenant': string;
8192
+ authorization: string;
8193
+ }>>>;
8194
+ };
8195
+ addAttachments: {
8196
+ body: z.ZodObject<{
8197
+ attributeId: z.ZodString;
8198
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
8199
+ bucketName: z.ZodString;
8200
+ fileKey: z.ZodString;
8201
+ fileName: z.ZodString;
8202
+ fileSize: z.ZodNumber;
8203
+ }, "strip", z.ZodTypeAny, {
8204
+ fileName: string;
8205
+ fileKey: string;
8206
+ bucketName: string;
8207
+ fileSize: number;
8208
+ }, {
8209
+ fileName: string;
8210
+ fileKey: string;
8211
+ bucketName: string;
8212
+ fileSize: number;
8213
+ }>, "many">>;
8214
+ }, "strip", z.ZodTypeAny, {
8215
+ attributeId: string;
8216
+ attachments?: {
8217
+ fileName: string;
8218
+ fileKey: string;
8219
+ bucketName: string;
8220
+ fileSize: number;
8221
+ }[] | undefined;
8222
+ }, {
8223
+ attributeId: string;
8224
+ attachments?: {
8225
+ fileName: string;
8226
+ fileKey: string;
8227
+ bucketName: string;
8228
+ fileSize: number;
8229
+ }[] | undefined;
8230
+ }>;
8231
+ summary: " attachment information from pre-uploaded files in AWS S3 to contacts.";
8232
+ method: "POST";
8233
+ pathParams: z.ZodObject<{
8234
+ id: z.ZodString;
8235
+ }, "strip", z.ZodTypeAny, {
8236
+ id: string;
8237
+ }, {
8238
+ id: string;
8239
+ }>;
8240
+ responses: {
8241
+ 201: z.ZodObject<{
8242
+ requestId: z.ZodString;
8243
+ message: z.ZodObject<{
8244
+ id: z.ZodString;
8245
+ createdAt: z.ZodDate;
8246
+ updatedAt: z.ZodDate;
8247
+ deletedAt: z.ZodNullable<z.ZodDate>;
8248
+ textValue: z.ZodNullable<z.ZodString>;
8249
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
8250
+ numberValue: z.ZodNullable<z.ZodNumber>;
8251
+ dateValue: z.ZodNullable<z.ZodDate>;
8252
+ entityId: z.ZodString;
8253
+ attributeId: z.ZodString;
8254
+ }, "strip", z.ZodTypeAny, {
8255
+ id: string;
8256
+ createdAt: Date;
8257
+ updatedAt: Date;
8258
+ deletedAt: Date | null;
8259
+ attributeId: string;
8260
+ textValue: string | null;
8261
+ booleanValue: boolean | null;
8262
+ numberValue: number | null;
8263
+ dateValue: Date | null;
8264
+ entityId: string;
8265
+ }, {
8266
+ id: string;
8267
+ createdAt: Date;
8268
+ updatedAt: Date;
8269
+ deletedAt: Date | null;
8270
+ attributeId: string;
8271
+ textValue: string | null;
8272
+ booleanValue: boolean | null;
8273
+ numberValue: number | null;
8274
+ dateValue: Date | null;
8275
+ entityId: string;
4598
8276
  }>;
4599
8277
  }, "strip", z.ZodTypeAny, {
4600
- data: {
8278
+ message: {
4601
8279
  id: string;
4602
- channel: string | null;
4603
- address: string | null;
4604
- name: string;
4605
8280
  createdAt: Date;
4606
8281
  updatedAt: Date;
4607
8282
  deletedAt: Date | null;
4608
- customFields: {
4609
- id: string;
4610
- createdAt: Date;
4611
- updatedAt: Date;
4612
- deletedAt: Date | null;
4613
- attribute: {
4614
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4615
- id: string;
4616
- position: number;
4617
- createdAt: Date;
4618
- updatedAt: Date;
4619
- deletedAt: Date | null;
4620
- isDefault: boolean;
4621
- systemName: string;
4622
- displayName: string;
4623
- isArchived: boolean;
4624
- isRequired: boolean;
4625
- isUnique: boolean;
4626
- };
4627
- textValue: string | null;
4628
- booleanValue: boolean | null;
4629
- numberValue: number | null;
4630
- dateValue: Date | null;
4631
- uploads: {
4632
- id: string;
4633
- createdAt: Date;
4634
- updatedAt: Date;
4635
- deletedAt: Date | null;
4636
- customFieldId: string;
4637
- upload: {
4638
- id: string;
4639
- createdAt: Date;
4640
- updatedAt: Date;
4641
- deletedAt: Date | null;
4642
- fileName: string;
4643
- fileKey: string;
4644
- bucketName: string;
4645
- fileSize: number;
4646
- };
4647
- }[];
4648
- }[];
4649
- notes: string | null;
4650
- contactProfile: string | null;
4651
- socialProfileUrl: string | null;
4652
- tags: {
4653
- id: string;
4654
- name: string;
4655
- createdAt: Date;
4656
- updatedAt: Date;
4657
- deletedAt: Date | null;
4658
- }[];
4659
- company: {
4660
- id: string;
4661
- createdAt: Date;
4662
- updatedAt: Date;
4663
- deletedAt: Date | null;
4664
- address?: string | null | undefined;
4665
- name?: string | undefined;
4666
- phone?: string | null | undefined;
4667
- industry?: string | null | undefined;
4668
- } | null;
4669
- contactEmails: {
4670
- id: string;
4671
- isPrimary: boolean;
4672
- email: string;
4673
- createdAt: Date;
4674
- updatedAt: Date;
4675
- deletedAt: Date | null;
4676
- }[];
4677
- contactPhones: {
4678
- id: string;
4679
- isPrimary: boolean;
4680
- createdAt: Date;
4681
- updatedAt: Date;
4682
- deletedAt: Date | null;
4683
- phone: string;
4684
- }[];
4685
- activityLogs?: {
4686
- id: string;
4687
- description: string;
4688
- createdAt: Date;
4689
- updatedAt: Date;
4690
- deletedAt: Date | null;
4691
- entityId: string;
4692
- entityType: {
4693
- id: string;
4694
- description: string | null;
4695
- createdAt: Date;
4696
- updatedAt: Date;
4697
- deletedAt: Date | null;
4698
- entity: string;
4699
- };
4700
- }[] | undefined;
8283
+ attributeId: string;
8284
+ textValue: string | null;
8285
+ booleanValue: boolean | null;
8286
+ numberValue: number | null;
8287
+ dateValue: Date | null;
8288
+ entityId: string;
4701
8289
  };
4702
8290
  requestId: string;
4703
8291
  }, {
4704
- data: {
8292
+ message: {
4705
8293
  id: string;
4706
- channel: string | null;
4707
- address: string | null;
4708
- name: string;
4709
8294
  createdAt: Date;
4710
8295
  updatedAt: Date;
4711
8296
  deletedAt: Date | null;
4712
- customFields: {
4713
- id: string;
4714
- createdAt: Date;
4715
- updatedAt: Date;
4716
- deletedAt: Date | null;
4717
- attribute: {
4718
- type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
4719
- id: string;
4720
- position: number;
4721
- createdAt: Date;
4722
- updatedAt: Date;
4723
- deletedAt: Date | null;
4724
- isDefault: boolean;
4725
- systemName: string;
4726
- displayName: string;
4727
- isArchived: boolean;
4728
- isRequired: boolean;
4729
- isUnique: boolean;
4730
- };
4731
- textValue: string | null;
4732
- booleanValue: boolean | null;
4733
- numberValue: number | null;
4734
- dateValue: Date | null;
4735
- uploads: {
4736
- id: string;
4737
- createdAt: Date;
4738
- updatedAt: Date;
4739
- deletedAt: Date | null;
4740
- customFieldId: string;
4741
- upload: {
4742
- id: string;
4743
- createdAt: Date;
4744
- updatedAt: Date;
4745
- deletedAt: Date | null;
4746
- fileName: string;
4747
- fileKey: string;
4748
- bucketName: string;
4749
- fileSize: number;
4750
- };
4751
- }[];
4752
- }[];
4753
- notes: string | null;
4754
- contactProfile: string | null;
4755
- socialProfileUrl: string | null;
4756
- tags: {
4757
- id: string;
4758
- name: string;
4759
- createdAt: Date;
4760
- updatedAt: Date;
4761
- deletedAt: Date | null;
4762
- }[];
4763
- company: {
4764
- id: string;
4765
- createdAt: Date;
4766
- updatedAt: Date;
4767
- deletedAt: Date | null;
4768
- address?: string | null | undefined;
4769
- name?: string | undefined;
4770
- phone?: string | null | undefined;
4771
- industry?: string | null | undefined;
4772
- } | null;
4773
- contactEmails: {
4774
- id: string;
4775
- isPrimary: boolean;
4776
- email: string;
4777
- createdAt: Date;
4778
- updatedAt: Date;
4779
- deletedAt: Date | null;
4780
- }[];
4781
- contactPhones: {
4782
- id: string;
4783
- isPrimary: boolean;
4784
- createdAt: Date;
4785
- updatedAt: Date;
4786
- deletedAt: Date | null;
4787
- phone: string;
4788
- }[];
4789
- activityLogs?: {
4790
- id: string;
4791
- description: string;
4792
- createdAt: Date;
4793
- updatedAt: Date;
4794
- deletedAt: Date | null;
4795
- entityId: string;
4796
- entityType: {
4797
- id: string;
4798
- description: string | null;
4799
- createdAt: Date;
4800
- updatedAt: Date;
4801
- deletedAt: Date | null;
4802
- entity: string;
4803
- };
4804
- }[] | undefined;
8297
+ attributeId: string;
8298
+ textValue: string | null;
8299
+ booleanValue: boolean | null;
8300
+ numberValue: number | null;
8301
+ dateValue: Date | null;
8302
+ entityId: string;
4805
8303
  };
4806
8304
  requestId: string;
4807
8305
  }>;
@@ -4857,7 +8355,7 @@ export declare const contactContract: {
4857
8355
  error?: any;
4858
8356
  }>;
4859
8357
  };
4860
- path: "contact/phone";
8358
+ path: "contact/:id/attachments";
4861
8359
  headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4862
8360
  'x-tenant': z.ZodString;
4863
8361
  authorization: z.ZodString;