@kl1/contracts 1.1.55-uat → 1.1.57-uat

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.
@@ -50046,13 +50046,13 @@ export declare const mainChatContract: {
50046
50046
  platformMessageId: z.ZodOptional<z.ZodString>;
50047
50047
  id: z.ZodOptional<z.ZodString>;
50048
50048
  params: z.ZodOptional<z.ZodObject<{
50049
- actionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["create", "edit", "like", "private_reply"]>>>;
50049
+ actionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["create", "edit", "like", "unlike", "private_reply"]>>>;
50050
50050
  mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
50051
50051
  }, "strip", z.ZodTypeAny, {
50052
- actionType?: "create" | "edit" | "like" | "private_reply" | undefined;
50052
+ actionType?: "create" | "edit" | "like" | "unlike" | "private_reply" | undefined;
50053
50053
  mentions?: string[] | undefined;
50054
50054
  }, {
50055
- actionType?: "create" | "edit" | "like" | "private_reply" | undefined;
50055
+ actionType?: "create" | "edit" | "like" | "unlike" | "private_reply" | undefined;
50056
50056
  mentions?: string[] | undefined;
50057
50057
  }>>;
50058
50058
  }, "strip", z.ZodTypeAny, {
@@ -50124,7 +50124,7 @@ export declare const mainChatContract: {
50124
50124
  platformMessageId?: string | undefined;
50125
50125
  id?: string | undefined;
50126
50126
  params?: {
50127
- actionType?: "create" | "edit" | "like" | "private_reply" | undefined;
50127
+ actionType?: "create" | "edit" | "like" | "unlike" | "private_reply" | undefined;
50128
50128
  mentions?: string[] | undefined;
50129
50129
  } | undefined;
50130
50130
  }, {
@@ -50196,7 +50196,7 @@ export declare const mainChatContract: {
50196
50196
  platformMessageId?: string | undefined;
50197
50197
  id?: string | undefined;
50198
50198
  params?: {
50199
- actionType?: "create" | "edit" | "like" | "private_reply" | undefined;
50199
+ actionType?: "create" | "edit" | "like" | "unlike" | "private_reply" | undefined;
50200
50200
  mentions?: string[] | undefined;
50201
50201
  } | undefined;
50202
50202
  }>;
@@ -66602,23 +66602,459 @@ export declare const mainChatContract: {
66602
66602
  page: z.ZodNumber;
66603
66603
  pageSize: z.ZodNumber;
66604
66604
  data: z.ZodArray<z.ZodObject<{
66605
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
66606
+ message: z.ZodString;
66605
66607
  id: z.ZodString;
66608
+ url: z.ZodString;
66609
+ direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
66610
+ template: z.ZodAny;
66611
+ metadata: z.ZodAny;
66606
66612
  createdAt: z.ZodDate;
66607
66613
  updatedAt: z.ZodDate;
66608
66614
  deletedAt: z.ZodNullable<z.ZodDate>;
66609
- message: z.ZodString;
66610
- direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
66611
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
66612
- readAt: z.ZodDate;
66613
- metadata: z.ZodAny;
66615
+ actor: z.ZodObject<{
66616
+ id: z.ZodString;
66617
+ createdAt: z.ZodDate;
66618
+ updatedAt: z.ZodDate;
66619
+ deletedAt: z.ZodNullable<z.ZodDate>;
66620
+ name: z.ZodString;
66621
+ email: z.ZodString;
66622
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
66623
+ password: z.ZodString;
66624
+ address: z.ZodNullable<z.ZodString>;
66625
+ phone: z.ZodNullable<z.ZodString>;
66626
+ notificationCount: z.ZodNullable<z.ZodNumber>;
66627
+ roles: z.ZodArray<z.ZodObject<{
66628
+ id: z.ZodString;
66629
+ createdAt: z.ZodDate;
66630
+ updatedAt: z.ZodDate;
66631
+ deletedAt: z.ZodNullable<z.ZodDate>;
66632
+ systemName: z.ZodString;
66633
+ displayName: z.ZodString;
66634
+ description: z.ZodNullable<z.ZodString>;
66635
+ permissions: z.ZodArray<z.ZodObject<{
66636
+ id: z.ZodString;
66637
+ createdAt: z.ZodDate;
66638
+ updatedAt: z.ZodDate;
66639
+ deletedAt: z.ZodNullable<z.ZodDate>;
66640
+ systemName: z.ZodString;
66641
+ displayName: z.ZodString;
66642
+ description: z.ZodNullable<z.ZodString>;
66643
+ }, "strip", z.ZodTypeAny, {
66644
+ id: string;
66645
+ description: string | null;
66646
+ createdAt: Date;
66647
+ updatedAt: Date;
66648
+ deletedAt: Date | null;
66649
+ systemName: string;
66650
+ displayName: string;
66651
+ }, {
66652
+ id: string;
66653
+ description: string | null;
66654
+ createdAt: Date;
66655
+ updatedAt: Date;
66656
+ deletedAt: Date | null;
66657
+ systemName: string;
66658
+ displayName: string;
66659
+ }>, "many">;
66660
+ }, "strip", z.ZodTypeAny, {
66661
+ id: string;
66662
+ description: string | null;
66663
+ createdAt: Date;
66664
+ updatedAt: Date;
66665
+ deletedAt: Date | null;
66666
+ systemName: string;
66667
+ displayName: string;
66668
+ permissions: {
66669
+ id: string;
66670
+ description: string | null;
66671
+ createdAt: Date;
66672
+ updatedAt: Date;
66673
+ deletedAt: Date | null;
66674
+ systemName: string;
66675
+ displayName: string;
66676
+ }[];
66677
+ }, {
66678
+ id: string;
66679
+ description: string | null;
66680
+ createdAt: Date;
66681
+ updatedAt: Date;
66682
+ deletedAt: Date | null;
66683
+ systemName: string;
66684
+ displayName: string;
66685
+ permissions: {
66686
+ id: string;
66687
+ description: string | null;
66688
+ createdAt: Date;
66689
+ updatedAt: Date;
66690
+ deletedAt: Date | null;
66691
+ systemName: string;
66692
+ displayName: string;
66693
+ }[];
66694
+ }>, "many">;
66695
+ extension: z.ZodObject<{
66696
+ id: z.ZodString;
66697
+ createdAt: z.ZodDate;
66698
+ updatedAt: z.ZodDate;
66699
+ deletedAt: z.ZodNullable<z.ZodDate>;
66700
+ userId: z.ZodNullable<z.ZodString>;
66701
+ sipServerUrl: z.ZodString;
66702
+ sipUserName: z.ZodString;
66703
+ webphoneLoginUser: z.ZodString;
66704
+ extensionId: z.ZodNullable<z.ZodString>;
66705
+ extensionName: z.ZodString;
66706
+ telephonySignature: z.ZodNullable<z.ZodString>;
66707
+ }, "strip", z.ZodTypeAny, {
66708
+ id: string;
66709
+ createdAt: Date;
66710
+ updatedAt: Date;
66711
+ deletedAt: Date | null;
66712
+ userId: string | null;
66713
+ sipServerUrl: string;
66714
+ sipUserName: string;
66715
+ webphoneLoginUser: string;
66716
+ extensionId: string | null;
66717
+ extensionName: string;
66718
+ telephonySignature: string | null;
66719
+ }, {
66720
+ id: string;
66721
+ createdAt: Date;
66722
+ updatedAt: Date;
66723
+ deletedAt: Date | null;
66724
+ userId: string | null;
66725
+ sipServerUrl: string;
66726
+ sipUserName: string;
66727
+ webphoneLoginUser: string;
66728
+ extensionId: string | null;
66729
+ extensionName: string;
66730
+ telephonySignature: string | null;
66731
+ }>;
66732
+ }, "strip", z.ZodTypeAny, {
66733
+ id: string;
66734
+ address: string | null;
66735
+ name: string;
66736
+ email: string;
66737
+ createdAt: Date;
66738
+ updatedAt: Date;
66739
+ deletedAt: Date | null;
66740
+ emailVerifiedAt: Date | null;
66741
+ password: string;
66742
+ phone: string | null;
66743
+ notificationCount: number | null;
66744
+ roles: {
66745
+ id: string;
66746
+ description: string | null;
66747
+ createdAt: Date;
66748
+ updatedAt: Date;
66749
+ deletedAt: Date | null;
66750
+ systemName: string;
66751
+ displayName: string;
66752
+ permissions: {
66753
+ id: string;
66754
+ description: string | null;
66755
+ createdAt: Date;
66756
+ updatedAt: Date;
66757
+ deletedAt: Date | null;
66758
+ systemName: string;
66759
+ displayName: string;
66760
+ }[];
66761
+ }[];
66762
+ extension: {
66763
+ id: string;
66764
+ createdAt: Date;
66765
+ updatedAt: Date;
66766
+ deletedAt: Date | null;
66767
+ userId: string | null;
66768
+ sipServerUrl: string;
66769
+ sipUserName: string;
66770
+ webphoneLoginUser: string;
66771
+ extensionId: string | null;
66772
+ extensionName: string;
66773
+ telephonySignature: string | null;
66774
+ };
66775
+ }, {
66776
+ id: string;
66777
+ address: string | null;
66778
+ name: string;
66779
+ email: string;
66780
+ createdAt: Date;
66781
+ updatedAt: Date;
66782
+ deletedAt: Date | null;
66783
+ emailVerifiedAt: Date | null;
66784
+ password: string;
66785
+ phone: string | null;
66786
+ notificationCount: number | null;
66787
+ roles: {
66788
+ id: string;
66789
+ description: string | null;
66790
+ createdAt: Date;
66791
+ updatedAt: Date;
66792
+ deletedAt: Date | null;
66793
+ systemName: string;
66794
+ displayName: string;
66795
+ permissions: {
66796
+ id: string;
66797
+ description: string | null;
66798
+ createdAt: Date;
66799
+ updatedAt: Date;
66800
+ deletedAt: Date | null;
66801
+ systemName: string;
66802
+ displayName: string;
66803
+ }[];
66804
+ }[];
66805
+ extension: {
66806
+ id: string;
66807
+ createdAt: Date;
66808
+ updatedAt: Date;
66809
+ deletedAt: Date | null;
66810
+ userId: string | null;
66811
+ sipServerUrl: string;
66812
+ sipUserName: string;
66813
+ webphoneLoginUser: string;
66814
+ extensionId: string | null;
66815
+ extensionName: string;
66816
+ telephonySignature: string | null;
66817
+ };
66818
+ }>;
66819
+ upload: z.ZodObject<{
66820
+ id: z.ZodString;
66821
+ createdAt: z.ZodDate;
66822
+ updatedAt: z.ZodDate;
66823
+ deletedAt: z.ZodNullable<z.ZodDate>;
66824
+ bucketName: z.ZodString;
66825
+ fileName: z.ZodString;
66826
+ fileSize: z.ZodNumber;
66827
+ fileKey: z.ZodString;
66828
+ fileUrl: z.ZodNullable<z.ZodString>;
66829
+ status: z.ZodNullable<z.ZodString>;
66830
+ }, "strip", z.ZodTypeAny, {
66831
+ id: string;
66832
+ status: string | null;
66833
+ createdAt: Date;
66834
+ updatedAt: Date;
66835
+ deletedAt: Date | null;
66836
+ fileName: string;
66837
+ fileKey: string;
66838
+ bucketName: string;
66839
+ fileSize: number;
66840
+ fileUrl: string | null;
66841
+ }, {
66842
+ id: string;
66843
+ status: string | null;
66844
+ createdAt: Date;
66845
+ updatedAt: Date;
66846
+ deletedAt: Date | null;
66847
+ fileName: string;
66848
+ fileKey: string;
66849
+ bucketName: string;
66850
+ fileSize: number;
66851
+ fileUrl: string | null;
66852
+ }>;
66853
+ assignee: z.ZodObject<{
66854
+ id: z.ZodString;
66855
+ createdAt: z.ZodDate;
66856
+ updatedAt: z.ZodDate;
66857
+ deletedAt: z.ZodNullable<z.ZodDate>;
66858
+ name: z.ZodString;
66859
+ email: z.ZodString;
66860
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
66861
+ password: z.ZodString;
66862
+ address: z.ZodNullable<z.ZodString>;
66863
+ phone: z.ZodNullable<z.ZodString>;
66864
+ notificationCount: z.ZodNullable<z.ZodNumber>;
66865
+ roles: z.ZodArray<z.ZodObject<{
66866
+ id: z.ZodString;
66867
+ createdAt: z.ZodDate;
66868
+ updatedAt: z.ZodDate;
66869
+ deletedAt: z.ZodNullable<z.ZodDate>;
66870
+ systemName: z.ZodString;
66871
+ displayName: z.ZodString;
66872
+ description: z.ZodNullable<z.ZodString>;
66873
+ permissions: z.ZodArray<z.ZodObject<{
66874
+ id: z.ZodString;
66875
+ createdAt: z.ZodDate;
66876
+ updatedAt: z.ZodDate;
66877
+ deletedAt: z.ZodNullable<z.ZodDate>;
66878
+ systemName: z.ZodString;
66879
+ displayName: z.ZodString;
66880
+ description: z.ZodNullable<z.ZodString>;
66881
+ }, "strip", z.ZodTypeAny, {
66882
+ id: string;
66883
+ description: string | null;
66884
+ createdAt: Date;
66885
+ updatedAt: Date;
66886
+ deletedAt: Date | null;
66887
+ systemName: string;
66888
+ displayName: string;
66889
+ }, {
66890
+ id: string;
66891
+ description: string | null;
66892
+ createdAt: Date;
66893
+ updatedAt: Date;
66894
+ deletedAt: Date | null;
66895
+ systemName: string;
66896
+ displayName: string;
66897
+ }>, "many">;
66898
+ }, "strip", z.ZodTypeAny, {
66899
+ id: string;
66900
+ description: string | null;
66901
+ createdAt: Date;
66902
+ updatedAt: Date;
66903
+ deletedAt: Date | null;
66904
+ systemName: string;
66905
+ displayName: string;
66906
+ permissions: {
66907
+ id: string;
66908
+ description: string | null;
66909
+ createdAt: Date;
66910
+ updatedAt: Date;
66911
+ deletedAt: Date | null;
66912
+ systemName: string;
66913
+ displayName: string;
66914
+ }[];
66915
+ }, {
66916
+ id: string;
66917
+ description: string | null;
66918
+ createdAt: Date;
66919
+ updatedAt: Date;
66920
+ deletedAt: Date | null;
66921
+ systemName: string;
66922
+ displayName: string;
66923
+ permissions: {
66924
+ id: string;
66925
+ description: string | null;
66926
+ createdAt: Date;
66927
+ updatedAt: Date;
66928
+ deletedAt: Date | null;
66929
+ systemName: string;
66930
+ displayName: string;
66931
+ }[];
66932
+ }>, "many">;
66933
+ extension: z.ZodObject<{
66934
+ id: z.ZodString;
66935
+ createdAt: z.ZodDate;
66936
+ updatedAt: z.ZodDate;
66937
+ deletedAt: z.ZodNullable<z.ZodDate>;
66938
+ userId: z.ZodNullable<z.ZodString>;
66939
+ sipServerUrl: z.ZodString;
66940
+ sipUserName: z.ZodString;
66941
+ webphoneLoginUser: z.ZodString;
66942
+ extensionId: z.ZodNullable<z.ZodString>;
66943
+ extensionName: z.ZodString;
66944
+ telephonySignature: z.ZodNullable<z.ZodString>;
66945
+ }, "strip", z.ZodTypeAny, {
66946
+ id: string;
66947
+ createdAt: Date;
66948
+ updatedAt: Date;
66949
+ deletedAt: Date | null;
66950
+ userId: string | null;
66951
+ sipServerUrl: string;
66952
+ sipUserName: string;
66953
+ webphoneLoginUser: string;
66954
+ extensionId: string | null;
66955
+ extensionName: string;
66956
+ telephonySignature: string | null;
66957
+ }, {
66958
+ id: string;
66959
+ createdAt: Date;
66960
+ updatedAt: Date;
66961
+ deletedAt: Date | null;
66962
+ userId: string | null;
66963
+ sipServerUrl: string;
66964
+ sipUserName: string;
66965
+ webphoneLoginUser: string;
66966
+ extensionId: string | null;
66967
+ extensionName: string;
66968
+ telephonySignature: string | null;
66969
+ }>;
66970
+ }, "strip", z.ZodTypeAny, {
66971
+ id: string;
66972
+ address: string | null;
66973
+ name: string;
66974
+ email: string;
66975
+ createdAt: Date;
66976
+ updatedAt: Date;
66977
+ deletedAt: Date | null;
66978
+ emailVerifiedAt: Date | null;
66979
+ password: string;
66980
+ phone: string | null;
66981
+ notificationCount: number | null;
66982
+ roles: {
66983
+ id: string;
66984
+ description: string | null;
66985
+ createdAt: Date;
66986
+ updatedAt: Date;
66987
+ deletedAt: Date | null;
66988
+ systemName: string;
66989
+ displayName: string;
66990
+ permissions: {
66991
+ id: string;
66992
+ description: string | null;
66993
+ createdAt: Date;
66994
+ updatedAt: Date;
66995
+ deletedAt: Date | null;
66996
+ systemName: string;
66997
+ displayName: string;
66998
+ }[];
66999
+ }[];
67000
+ extension: {
67001
+ id: string;
67002
+ createdAt: Date;
67003
+ updatedAt: Date;
67004
+ deletedAt: Date | null;
67005
+ userId: string | null;
67006
+ sipServerUrl: string;
67007
+ sipUserName: string;
67008
+ webphoneLoginUser: string;
67009
+ extensionId: string | null;
67010
+ extensionName: string;
67011
+ telephonySignature: string | null;
67012
+ };
67013
+ }, {
67014
+ id: string;
67015
+ address: string | null;
67016
+ name: string;
67017
+ email: string;
67018
+ createdAt: Date;
67019
+ updatedAt: Date;
67020
+ deletedAt: Date | null;
67021
+ emailVerifiedAt: Date | null;
67022
+ password: string;
67023
+ phone: string | null;
67024
+ notificationCount: number | null;
67025
+ roles: {
67026
+ id: string;
67027
+ description: string | null;
67028
+ createdAt: Date;
67029
+ updatedAt: Date;
67030
+ deletedAt: Date | null;
67031
+ systemName: string;
67032
+ displayName: string;
67033
+ permissions: {
67034
+ id: string;
67035
+ description: string | null;
67036
+ createdAt: Date;
67037
+ updatedAt: Date;
67038
+ deletedAt: Date | null;
67039
+ systemName: string;
67040
+ displayName: string;
67041
+ }[];
67042
+ }[];
67043
+ extension: {
67044
+ id: string;
67045
+ createdAt: Date;
67046
+ updatedAt: Date;
67047
+ deletedAt: Date | null;
67048
+ userId: string | null;
67049
+ sipServerUrl: string;
67050
+ sipUserName: string;
67051
+ webphoneLoginUser: string;
67052
+ extensionId: string | null;
67053
+ extensionName: string;
67054
+ telephonySignature: string | null;
67055
+ };
67056
+ }>;
66614
67057
  platformId: z.ZodString;
66615
- platformMessageId: z.ZodString;
66616
- replyPlatformMessageId: z.ZodString;
66617
- template: z.ZodAny;
66618
- locale: z.ZodEnum<["mm", "en", "th", ""]>;
66619
- url: z.ZodString;
66620
- previewUrl: z.ZodString;
66621
- imageSetId: z.ZodString;
66622
67058
  room: z.ZodObject<{
66623
67059
  id: z.ZodString;
66624
67060
  createdAt: z.ZodDate;
@@ -69559,40 +69995,37 @@ export declare const mainChatContract: {
69559
69995
  isActive: boolean;
69560
69996
  };
69561
69997
  }>;
69562
- upload: z.ZodObject<{
69998
+ platformMessageId: z.ZodString;
69999
+ workflowRule: z.ZodObject<{
69563
70000
  id: z.ZodString;
69564
70001
  createdAt: z.ZodDate;
69565
70002
  updatedAt: z.ZodDate;
69566
70003
  deletedAt: z.ZodNullable<z.ZodDate>;
69567
- bucketName: z.ZodString;
69568
- fileName: z.ZodString;
69569
- fileSize: z.ZodNumber;
69570
- fileKey: z.ZodString;
69571
- fileUrl: z.ZodNullable<z.ZodString>;
69572
- status: z.ZodNullable<z.ZodString>;
70004
+ name: z.ZodString;
70005
+ isActive: z.ZodBoolean;
70006
+ type: z.ZodString;
69573
70007
  }, "strip", z.ZodTypeAny, {
70008
+ type: string;
69574
70009
  id: string;
69575
- status: string | null;
70010
+ name: string;
69576
70011
  createdAt: Date;
69577
70012
  updatedAt: Date;
69578
70013
  deletedAt: Date | null;
69579
- fileName: string;
69580
- fileKey: string;
69581
- bucketName: string;
69582
- fileSize: number;
69583
- fileUrl: string | null;
70014
+ isActive: boolean;
69584
70015
  }, {
70016
+ type: string;
69585
70017
  id: string;
69586
- status: string | null;
70018
+ name: string;
69587
70019
  createdAt: Date;
69588
70020
  updatedAt: Date;
69589
70021
  deletedAt: Date | null;
69590
- fileName: string;
69591
- fileKey: string;
69592
- bucketName: string;
69593
- fileSize: number;
69594
- fileUrl: string | null;
70022
+ isActive: boolean;
69595
70023
  }>;
70024
+ readAt: z.ZodDate;
70025
+ replyPlatformMessageId: z.ZodString;
70026
+ locale: z.ZodEnum<["mm", "en", "th", ""]>;
70027
+ previewUrl: z.ZodString;
70028
+ imageSetId: z.ZodString;
69596
70029
  repliedMessage: z.ZodLazy<z.ZodObject<{
69597
70030
  id: z.ZodString;
69598
70031
  createdAt: z.ZodDate;
@@ -70582,414 +71015,6 @@ export declare const mainChatContract: {
70582
71015
  metadata?: any;
70583
71016
  template?: any;
70584
71017
  }>>;
70585
- actor: z.ZodObject<{
70586
- id: z.ZodString;
70587
- createdAt: z.ZodDate;
70588
- updatedAt: z.ZodDate;
70589
- deletedAt: z.ZodNullable<z.ZodDate>;
70590
- name: z.ZodString;
70591
- email: z.ZodString;
70592
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
70593
- password: z.ZodString;
70594
- address: z.ZodNullable<z.ZodString>;
70595
- phone: z.ZodNullable<z.ZodString>;
70596
- notificationCount: z.ZodNullable<z.ZodNumber>;
70597
- roles: z.ZodArray<z.ZodObject<{
70598
- id: z.ZodString;
70599
- createdAt: z.ZodDate;
70600
- updatedAt: z.ZodDate;
70601
- deletedAt: z.ZodNullable<z.ZodDate>;
70602
- systemName: z.ZodString;
70603
- displayName: z.ZodString;
70604
- description: z.ZodNullable<z.ZodString>;
70605
- permissions: z.ZodArray<z.ZodObject<{
70606
- id: z.ZodString;
70607
- createdAt: z.ZodDate;
70608
- updatedAt: z.ZodDate;
70609
- deletedAt: z.ZodNullable<z.ZodDate>;
70610
- systemName: z.ZodString;
70611
- displayName: z.ZodString;
70612
- description: z.ZodNullable<z.ZodString>;
70613
- }, "strip", z.ZodTypeAny, {
70614
- id: string;
70615
- description: string | null;
70616
- createdAt: Date;
70617
- updatedAt: Date;
70618
- deletedAt: Date | null;
70619
- systemName: string;
70620
- displayName: string;
70621
- }, {
70622
- id: string;
70623
- description: string | null;
70624
- createdAt: Date;
70625
- updatedAt: Date;
70626
- deletedAt: Date | null;
70627
- systemName: string;
70628
- displayName: string;
70629
- }>, "many">;
70630
- }, "strip", z.ZodTypeAny, {
70631
- id: string;
70632
- description: string | null;
70633
- createdAt: Date;
70634
- updatedAt: Date;
70635
- deletedAt: Date | null;
70636
- systemName: string;
70637
- displayName: string;
70638
- permissions: {
70639
- id: string;
70640
- description: string | null;
70641
- createdAt: Date;
70642
- updatedAt: Date;
70643
- deletedAt: Date | null;
70644
- systemName: string;
70645
- displayName: string;
70646
- }[];
70647
- }, {
70648
- id: string;
70649
- description: string | null;
70650
- createdAt: Date;
70651
- updatedAt: Date;
70652
- deletedAt: Date | null;
70653
- systemName: string;
70654
- displayName: string;
70655
- permissions: {
70656
- id: string;
70657
- description: string | null;
70658
- createdAt: Date;
70659
- updatedAt: Date;
70660
- deletedAt: Date | null;
70661
- systemName: string;
70662
- displayName: string;
70663
- }[];
70664
- }>, "many">;
70665
- extension: z.ZodObject<{
70666
- id: z.ZodString;
70667
- createdAt: z.ZodDate;
70668
- updatedAt: z.ZodDate;
70669
- deletedAt: z.ZodNullable<z.ZodDate>;
70670
- userId: z.ZodNullable<z.ZodString>;
70671
- sipServerUrl: z.ZodString;
70672
- sipUserName: z.ZodString;
70673
- webphoneLoginUser: z.ZodString;
70674
- extensionId: z.ZodNullable<z.ZodString>;
70675
- extensionName: z.ZodString;
70676
- telephonySignature: z.ZodNullable<z.ZodString>;
70677
- }, "strip", z.ZodTypeAny, {
70678
- id: string;
70679
- createdAt: Date;
70680
- updatedAt: Date;
70681
- deletedAt: Date | null;
70682
- userId: string | null;
70683
- sipServerUrl: string;
70684
- sipUserName: string;
70685
- webphoneLoginUser: string;
70686
- extensionId: string | null;
70687
- extensionName: string;
70688
- telephonySignature: string | null;
70689
- }, {
70690
- id: string;
70691
- createdAt: Date;
70692
- updatedAt: Date;
70693
- deletedAt: Date | null;
70694
- userId: string | null;
70695
- sipServerUrl: string;
70696
- sipUserName: string;
70697
- webphoneLoginUser: string;
70698
- extensionId: string | null;
70699
- extensionName: string;
70700
- telephonySignature: string | null;
70701
- }>;
70702
- }, "strip", z.ZodTypeAny, {
70703
- id: string;
70704
- address: string | null;
70705
- name: string;
70706
- email: string;
70707
- createdAt: Date;
70708
- updatedAt: Date;
70709
- deletedAt: Date | null;
70710
- emailVerifiedAt: Date | null;
70711
- password: string;
70712
- phone: string | null;
70713
- notificationCount: number | null;
70714
- roles: {
70715
- id: string;
70716
- description: string | null;
70717
- createdAt: Date;
70718
- updatedAt: Date;
70719
- deletedAt: Date | null;
70720
- systemName: string;
70721
- displayName: string;
70722
- permissions: {
70723
- id: string;
70724
- description: string | null;
70725
- createdAt: Date;
70726
- updatedAt: Date;
70727
- deletedAt: Date | null;
70728
- systemName: string;
70729
- displayName: string;
70730
- }[];
70731
- }[];
70732
- extension: {
70733
- id: string;
70734
- createdAt: Date;
70735
- updatedAt: Date;
70736
- deletedAt: Date | null;
70737
- userId: string | null;
70738
- sipServerUrl: string;
70739
- sipUserName: string;
70740
- webphoneLoginUser: string;
70741
- extensionId: string | null;
70742
- extensionName: string;
70743
- telephonySignature: string | null;
70744
- };
70745
- }, {
70746
- id: string;
70747
- address: string | null;
70748
- name: string;
70749
- email: string;
70750
- createdAt: Date;
70751
- updatedAt: Date;
70752
- deletedAt: Date | null;
70753
- emailVerifiedAt: Date | null;
70754
- password: string;
70755
- phone: string | null;
70756
- notificationCount: number | null;
70757
- roles: {
70758
- id: string;
70759
- description: string | null;
70760
- createdAt: Date;
70761
- updatedAt: Date;
70762
- deletedAt: Date | null;
70763
- systemName: string;
70764
- displayName: string;
70765
- permissions: {
70766
- id: string;
70767
- description: string | null;
70768
- createdAt: Date;
70769
- updatedAt: Date;
70770
- deletedAt: Date | null;
70771
- systemName: string;
70772
- displayName: string;
70773
- }[];
70774
- }[];
70775
- extension: {
70776
- id: string;
70777
- createdAt: Date;
70778
- updatedAt: Date;
70779
- deletedAt: Date | null;
70780
- userId: string | null;
70781
- sipServerUrl: string;
70782
- sipUserName: string;
70783
- webphoneLoginUser: string;
70784
- extensionId: string | null;
70785
- extensionName: string;
70786
- telephonySignature: string | null;
70787
- };
70788
- }>;
70789
- assignee: z.ZodObject<{
70790
- id: z.ZodString;
70791
- createdAt: z.ZodDate;
70792
- updatedAt: z.ZodDate;
70793
- deletedAt: z.ZodNullable<z.ZodDate>;
70794
- name: z.ZodString;
70795
- email: z.ZodString;
70796
- emailVerifiedAt: z.ZodNullable<z.ZodDate>;
70797
- password: z.ZodString;
70798
- address: z.ZodNullable<z.ZodString>;
70799
- phone: z.ZodNullable<z.ZodString>;
70800
- notificationCount: z.ZodNullable<z.ZodNumber>;
70801
- roles: z.ZodArray<z.ZodObject<{
70802
- id: z.ZodString;
70803
- createdAt: z.ZodDate;
70804
- updatedAt: z.ZodDate;
70805
- deletedAt: z.ZodNullable<z.ZodDate>;
70806
- systemName: z.ZodString;
70807
- displayName: z.ZodString;
70808
- description: z.ZodNullable<z.ZodString>;
70809
- permissions: z.ZodArray<z.ZodObject<{
70810
- id: z.ZodString;
70811
- createdAt: z.ZodDate;
70812
- updatedAt: z.ZodDate;
70813
- deletedAt: z.ZodNullable<z.ZodDate>;
70814
- systemName: z.ZodString;
70815
- displayName: z.ZodString;
70816
- description: z.ZodNullable<z.ZodString>;
70817
- }, "strip", z.ZodTypeAny, {
70818
- id: string;
70819
- description: string | null;
70820
- createdAt: Date;
70821
- updatedAt: Date;
70822
- deletedAt: Date | null;
70823
- systemName: string;
70824
- displayName: string;
70825
- }, {
70826
- id: string;
70827
- description: string | null;
70828
- createdAt: Date;
70829
- updatedAt: Date;
70830
- deletedAt: Date | null;
70831
- systemName: string;
70832
- displayName: string;
70833
- }>, "many">;
70834
- }, "strip", z.ZodTypeAny, {
70835
- id: string;
70836
- description: string | null;
70837
- createdAt: Date;
70838
- updatedAt: Date;
70839
- deletedAt: Date | null;
70840
- systemName: string;
70841
- displayName: string;
70842
- permissions: {
70843
- id: string;
70844
- description: string | null;
70845
- createdAt: Date;
70846
- updatedAt: Date;
70847
- deletedAt: Date | null;
70848
- systemName: string;
70849
- displayName: string;
70850
- }[];
70851
- }, {
70852
- id: string;
70853
- description: string | null;
70854
- createdAt: Date;
70855
- updatedAt: Date;
70856
- deletedAt: Date | null;
70857
- systemName: string;
70858
- displayName: string;
70859
- permissions: {
70860
- id: string;
70861
- description: string | null;
70862
- createdAt: Date;
70863
- updatedAt: Date;
70864
- deletedAt: Date | null;
70865
- systemName: string;
70866
- displayName: string;
70867
- }[];
70868
- }>, "many">;
70869
- extension: z.ZodObject<{
70870
- id: z.ZodString;
70871
- createdAt: z.ZodDate;
70872
- updatedAt: z.ZodDate;
70873
- deletedAt: z.ZodNullable<z.ZodDate>;
70874
- userId: z.ZodNullable<z.ZodString>;
70875
- sipServerUrl: z.ZodString;
70876
- sipUserName: z.ZodString;
70877
- webphoneLoginUser: z.ZodString;
70878
- extensionId: z.ZodNullable<z.ZodString>;
70879
- extensionName: z.ZodString;
70880
- telephonySignature: z.ZodNullable<z.ZodString>;
70881
- }, "strip", z.ZodTypeAny, {
70882
- id: string;
70883
- createdAt: Date;
70884
- updatedAt: Date;
70885
- deletedAt: Date | null;
70886
- userId: string | null;
70887
- sipServerUrl: string;
70888
- sipUserName: string;
70889
- webphoneLoginUser: string;
70890
- extensionId: string | null;
70891
- extensionName: string;
70892
- telephonySignature: string | null;
70893
- }, {
70894
- id: string;
70895
- createdAt: Date;
70896
- updatedAt: Date;
70897
- deletedAt: Date | null;
70898
- userId: string | null;
70899
- sipServerUrl: string;
70900
- sipUserName: string;
70901
- webphoneLoginUser: string;
70902
- extensionId: string | null;
70903
- extensionName: string;
70904
- telephonySignature: string | null;
70905
- }>;
70906
- }, "strip", z.ZodTypeAny, {
70907
- id: string;
70908
- address: string | null;
70909
- name: string;
70910
- email: string;
70911
- createdAt: Date;
70912
- updatedAt: Date;
70913
- deletedAt: Date | null;
70914
- emailVerifiedAt: Date | null;
70915
- password: string;
70916
- phone: string | null;
70917
- notificationCount: number | null;
70918
- roles: {
70919
- id: string;
70920
- description: string | null;
70921
- createdAt: Date;
70922
- updatedAt: Date;
70923
- deletedAt: Date | null;
70924
- systemName: string;
70925
- displayName: string;
70926
- permissions: {
70927
- id: string;
70928
- description: string | null;
70929
- createdAt: Date;
70930
- updatedAt: Date;
70931
- deletedAt: Date | null;
70932
- systemName: string;
70933
- displayName: string;
70934
- }[];
70935
- }[];
70936
- extension: {
70937
- id: string;
70938
- createdAt: Date;
70939
- updatedAt: Date;
70940
- deletedAt: Date | null;
70941
- userId: string | null;
70942
- sipServerUrl: string;
70943
- sipUserName: string;
70944
- webphoneLoginUser: string;
70945
- extensionId: string | null;
70946
- extensionName: string;
70947
- telephonySignature: string | null;
70948
- };
70949
- }, {
70950
- id: string;
70951
- address: string | null;
70952
- name: string;
70953
- email: string;
70954
- createdAt: Date;
70955
- updatedAt: Date;
70956
- deletedAt: Date | null;
70957
- emailVerifiedAt: Date | null;
70958
- password: string;
70959
- phone: string | null;
70960
- notificationCount: number | null;
70961
- roles: {
70962
- id: string;
70963
- description: string | null;
70964
- createdAt: Date;
70965
- updatedAt: Date;
70966
- deletedAt: Date | null;
70967
- systemName: string;
70968
- displayName: string;
70969
- permissions: {
70970
- id: string;
70971
- description: string | null;
70972
- createdAt: Date;
70973
- updatedAt: Date;
70974
- deletedAt: Date | null;
70975
- systemName: string;
70976
- displayName: string;
70977
- }[];
70978
- }[];
70979
- extension: {
70980
- id: string;
70981
- createdAt: Date;
70982
- updatedAt: Date;
70983
- deletedAt: Date | null;
70984
- userId: string | null;
70985
- sipServerUrl: string;
70986
- sipUserName: string;
70987
- webphoneLoginUser: string;
70988
- extensionId: string | null;
70989
- extensionName: string;
70990
- telephonySignature: string | null;
70991
- };
70992
- }>;
70993
71018
  sender: z.ZodObject<{
70994
71019
  id: z.ZodString;
70995
71020
  createdAt: z.ZodDate;
@@ -71194,31 +71219,2054 @@ export declare const mainChatContract: {
71194
71219
  telephonySignature: string | null;
71195
71220
  };
71196
71221
  }>;
71197
- workflowRule: z.ZodObject<{
71222
+ parentMessageId: z.ZodNullable<z.ZodString>;
71223
+ feedPostId: z.ZodNullable<z.ZodString>;
71224
+ feedPost: z.ZodNullable<z.ZodObject<{
71198
71225
  id: z.ZodString;
71199
71226
  createdAt: z.ZodDate;
71200
71227
  updatedAt: z.ZodDate;
71201
71228
  deletedAt: z.ZodNullable<z.ZodDate>;
71202
- name: z.ZodString;
71203
- isActive: z.ZodBoolean;
71204
- type: z.ZodString;
71229
+ message: z.ZodNullable<z.ZodString>;
71230
+ type: z.ZodUnion<[z.ZodEnum<["text", "added_photos", "shared_story", "mobile_status_update"]>, z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "text_with_image", "carousel", "card", "choice", "dropdown", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>]>;
71231
+ metadata: z.ZodAny;
71232
+ platformId: z.ZodString;
71233
+ platformMessageId: z.ZodString;
71234
+ postCreatedAt: z.ZodDate;
71235
+ postUpdatedAt: z.ZodDate;
71236
+ socialPlatformId: z.ZodString;
71237
+ channel: z.ZodObject<{
71238
+ id: z.ZodString;
71239
+ createdAt: z.ZodDate;
71240
+ updatedAt: z.ZodDate;
71241
+ deletedAt: z.ZodNullable<z.ZodDate>;
71242
+ name: z.ZodString;
71243
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed"]>;
71244
+ metadata: z.ZodObject<{
71245
+ id: z.ZodString;
71246
+ name: z.ZodString;
71247
+ accessToken: z.ZodOptional<z.ZodString>;
71248
+ channelSecret: z.ZodOptional<z.ZodString>;
71249
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
71250
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
71251
+ }, "strip", z.ZodTypeAny, {
71252
+ id: string;
71253
+ name: string;
71254
+ accessToken?: string | undefined;
71255
+ channelSecret?: string | undefined;
71256
+ additionalCredentials?: any;
71257
+ lineRichMenuId?: string | null | undefined;
71258
+ }, {
71259
+ id: string;
71260
+ name: string;
71261
+ accessToken?: string | undefined;
71262
+ channelSecret?: string | undefined;
71263
+ additionalCredentials?: any;
71264
+ lineRichMenuId?: string | null | undefined;
71265
+ }>;
71266
+ brandName: z.ZodString;
71267
+ platformId: z.ZodString;
71268
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
71269
+ isReloginRequired: z.ZodBoolean;
71270
+ connectedUserName: z.ZodString;
71271
+ connectedUserId: z.ZodString;
71272
+ botpressBot: z.ZodNullable<z.ZodObject<{
71273
+ id: z.ZodString;
71274
+ name: z.ZodString;
71275
+ botId: z.ZodString;
71276
+ integrationId: z.ZodString;
71277
+ accessToken: z.ZodString;
71278
+ }, "strip", z.ZodTypeAny, {
71279
+ id: string;
71280
+ name: string;
71281
+ accessToken: string;
71282
+ botId: string;
71283
+ integrationId: string;
71284
+ }, {
71285
+ id: string;
71286
+ name: string;
71287
+ accessToken: string;
71288
+ botId: string;
71289
+ integrationId: string;
71290
+ }>>;
71291
+ actor: z.ZodObject<{
71292
+ id: z.ZodString;
71293
+ createdAt: z.ZodDate;
71294
+ updatedAt: z.ZodDate;
71295
+ deletedAt: z.ZodNullable<z.ZodDate>;
71296
+ name: z.ZodString;
71297
+ email: z.ZodString;
71298
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
71299
+ password: z.ZodString;
71300
+ address: z.ZodNullable<z.ZodString>;
71301
+ phone: z.ZodNullable<z.ZodString>;
71302
+ notificationCount: z.ZodNullable<z.ZodNumber>;
71303
+ roles: z.ZodArray<z.ZodObject<{
71304
+ id: z.ZodString;
71305
+ createdAt: z.ZodDate;
71306
+ updatedAt: z.ZodDate;
71307
+ deletedAt: z.ZodNullable<z.ZodDate>;
71308
+ systemName: z.ZodString;
71309
+ displayName: z.ZodString;
71310
+ description: z.ZodNullable<z.ZodString>;
71311
+ permissions: z.ZodArray<z.ZodObject<{
71312
+ id: z.ZodString;
71313
+ createdAt: z.ZodDate;
71314
+ updatedAt: z.ZodDate;
71315
+ deletedAt: z.ZodNullable<z.ZodDate>;
71316
+ systemName: z.ZodString;
71317
+ displayName: z.ZodString;
71318
+ description: z.ZodNullable<z.ZodString>;
71319
+ }, "strip", z.ZodTypeAny, {
71320
+ id: string;
71321
+ description: string | null;
71322
+ createdAt: Date;
71323
+ updatedAt: Date;
71324
+ deletedAt: Date | null;
71325
+ systemName: string;
71326
+ displayName: string;
71327
+ }, {
71328
+ id: string;
71329
+ description: string | null;
71330
+ createdAt: Date;
71331
+ updatedAt: Date;
71332
+ deletedAt: Date | null;
71333
+ systemName: string;
71334
+ displayName: string;
71335
+ }>, "many">;
71336
+ }, "strip", z.ZodTypeAny, {
71337
+ id: string;
71338
+ description: string | null;
71339
+ createdAt: Date;
71340
+ updatedAt: Date;
71341
+ deletedAt: Date | null;
71342
+ systemName: string;
71343
+ displayName: string;
71344
+ permissions: {
71345
+ id: string;
71346
+ description: string | null;
71347
+ createdAt: Date;
71348
+ updatedAt: Date;
71349
+ deletedAt: Date | null;
71350
+ systemName: string;
71351
+ displayName: string;
71352
+ }[];
71353
+ }, {
71354
+ id: string;
71355
+ description: string | null;
71356
+ createdAt: Date;
71357
+ updatedAt: Date;
71358
+ deletedAt: Date | null;
71359
+ systemName: string;
71360
+ displayName: string;
71361
+ permissions: {
71362
+ id: string;
71363
+ description: string | null;
71364
+ createdAt: Date;
71365
+ updatedAt: Date;
71366
+ deletedAt: Date | null;
71367
+ systemName: string;
71368
+ displayName: string;
71369
+ }[];
71370
+ }>, "many">;
71371
+ extension: z.ZodObject<{
71372
+ id: z.ZodString;
71373
+ createdAt: z.ZodDate;
71374
+ updatedAt: z.ZodDate;
71375
+ deletedAt: z.ZodNullable<z.ZodDate>;
71376
+ userId: z.ZodNullable<z.ZodString>;
71377
+ sipServerUrl: z.ZodString;
71378
+ sipUserName: z.ZodString;
71379
+ webphoneLoginUser: z.ZodString;
71380
+ extensionId: z.ZodNullable<z.ZodString>;
71381
+ extensionName: z.ZodString;
71382
+ telephonySignature: z.ZodNullable<z.ZodString>;
71383
+ }, "strip", z.ZodTypeAny, {
71384
+ id: string;
71385
+ createdAt: Date;
71386
+ updatedAt: Date;
71387
+ deletedAt: Date | null;
71388
+ userId: string | null;
71389
+ sipServerUrl: string;
71390
+ sipUserName: string;
71391
+ webphoneLoginUser: string;
71392
+ extensionId: string | null;
71393
+ extensionName: string;
71394
+ telephonySignature: string | null;
71395
+ }, {
71396
+ id: string;
71397
+ createdAt: Date;
71398
+ updatedAt: Date;
71399
+ deletedAt: Date | null;
71400
+ userId: string | null;
71401
+ sipServerUrl: string;
71402
+ sipUserName: string;
71403
+ webphoneLoginUser: string;
71404
+ extensionId: string | null;
71405
+ extensionName: string;
71406
+ telephonySignature: string | null;
71407
+ }>;
71408
+ }, "strip", z.ZodTypeAny, {
71409
+ id: string;
71410
+ address: string | null;
71411
+ name: string;
71412
+ email: string;
71413
+ createdAt: Date;
71414
+ updatedAt: Date;
71415
+ deletedAt: Date | null;
71416
+ emailVerifiedAt: Date | null;
71417
+ password: string;
71418
+ phone: string | null;
71419
+ notificationCount: number | null;
71420
+ roles: {
71421
+ id: string;
71422
+ description: string | null;
71423
+ createdAt: Date;
71424
+ updatedAt: Date;
71425
+ deletedAt: Date | null;
71426
+ systemName: string;
71427
+ displayName: string;
71428
+ permissions: {
71429
+ id: string;
71430
+ description: string | null;
71431
+ createdAt: Date;
71432
+ updatedAt: Date;
71433
+ deletedAt: Date | null;
71434
+ systemName: string;
71435
+ displayName: string;
71436
+ }[];
71437
+ }[];
71438
+ extension: {
71439
+ id: string;
71440
+ createdAt: Date;
71441
+ updatedAt: Date;
71442
+ deletedAt: Date | null;
71443
+ userId: string | null;
71444
+ sipServerUrl: string;
71445
+ sipUserName: string;
71446
+ webphoneLoginUser: string;
71447
+ extensionId: string | null;
71448
+ extensionName: string;
71449
+ telephonySignature: string | null;
71450
+ };
71451
+ }, {
71452
+ id: string;
71453
+ address: string | null;
71454
+ name: string;
71455
+ email: string;
71456
+ createdAt: Date;
71457
+ updatedAt: Date;
71458
+ deletedAt: Date | null;
71459
+ emailVerifiedAt: Date | null;
71460
+ password: string;
71461
+ phone: string | null;
71462
+ notificationCount: number | null;
71463
+ roles: {
71464
+ id: string;
71465
+ description: string | null;
71466
+ createdAt: Date;
71467
+ updatedAt: Date;
71468
+ deletedAt: Date | null;
71469
+ systemName: string;
71470
+ displayName: string;
71471
+ permissions: {
71472
+ id: string;
71473
+ description: string | null;
71474
+ createdAt: Date;
71475
+ updatedAt: Date;
71476
+ deletedAt: Date | null;
71477
+ systemName: string;
71478
+ displayName: string;
71479
+ }[];
71480
+ }[];
71481
+ extension: {
71482
+ id: string;
71483
+ createdAt: Date;
71484
+ updatedAt: Date;
71485
+ deletedAt: Date | null;
71486
+ userId: string | null;
71487
+ sipServerUrl: string;
71488
+ sipUserName: string;
71489
+ webphoneLoginUser: string;
71490
+ extensionId: string | null;
71491
+ extensionName: string;
71492
+ telephonySignature: string | null;
71493
+ };
71494
+ }>;
71495
+ }, "strip", z.ZodTypeAny, {
71496
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
71497
+ id: string;
71498
+ name: string;
71499
+ metadata: {
71500
+ id: string;
71501
+ name: string;
71502
+ accessToken?: string | undefined;
71503
+ channelSecret?: string | undefined;
71504
+ additionalCredentials?: any;
71505
+ lineRichMenuId?: string | null | undefined;
71506
+ };
71507
+ status: boolean;
71508
+ createdAt: Date;
71509
+ updatedAt: Date;
71510
+ deletedAt: Date | null;
71511
+ actor: {
71512
+ id: string;
71513
+ address: string | null;
71514
+ name: string;
71515
+ email: string;
71516
+ createdAt: Date;
71517
+ updatedAt: Date;
71518
+ deletedAt: Date | null;
71519
+ emailVerifiedAt: Date | null;
71520
+ password: string;
71521
+ phone: string | null;
71522
+ notificationCount: number | null;
71523
+ roles: {
71524
+ id: string;
71525
+ description: string | null;
71526
+ createdAt: Date;
71527
+ updatedAt: Date;
71528
+ deletedAt: Date | null;
71529
+ systemName: string;
71530
+ displayName: string;
71531
+ permissions: {
71532
+ id: string;
71533
+ description: string | null;
71534
+ createdAt: Date;
71535
+ updatedAt: Date;
71536
+ deletedAt: Date | null;
71537
+ systemName: string;
71538
+ displayName: string;
71539
+ }[];
71540
+ }[];
71541
+ extension: {
71542
+ id: string;
71543
+ createdAt: Date;
71544
+ updatedAt: Date;
71545
+ deletedAt: Date | null;
71546
+ userId: string | null;
71547
+ sipServerUrl: string;
71548
+ sipUserName: string;
71549
+ webphoneLoginUser: string;
71550
+ extensionId: string | null;
71551
+ extensionName: string;
71552
+ telephonySignature: string | null;
71553
+ };
71554
+ };
71555
+ brandName: string;
71556
+ platformId: string;
71557
+ isReloginRequired: boolean;
71558
+ connectedUserName: string;
71559
+ connectedUserId: string;
71560
+ botpressBot: {
71561
+ id: string;
71562
+ name: string;
71563
+ accessToken: string;
71564
+ botId: string;
71565
+ integrationId: string;
71566
+ } | null;
71567
+ }, {
71568
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
71569
+ id: string;
71570
+ name: string;
71571
+ metadata: {
71572
+ id: string;
71573
+ name: string;
71574
+ accessToken?: string | undefined;
71575
+ channelSecret?: string | undefined;
71576
+ additionalCredentials?: any;
71577
+ lineRichMenuId?: string | null | undefined;
71578
+ };
71579
+ status: boolean;
71580
+ createdAt: Date;
71581
+ updatedAt: Date;
71582
+ deletedAt: Date | null;
71583
+ actor: {
71584
+ id: string;
71585
+ address: string | null;
71586
+ name: string;
71587
+ email: string;
71588
+ createdAt: Date;
71589
+ updatedAt: Date;
71590
+ deletedAt: Date | null;
71591
+ emailVerifiedAt: Date | null;
71592
+ password: string;
71593
+ phone: string | null;
71594
+ notificationCount: number | null;
71595
+ roles: {
71596
+ id: string;
71597
+ description: string | null;
71598
+ createdAt: Date;
71599
+ updatedAt: Date;
71600
+ deletedAt: Date | null;
71601
+ systemName: string;
71602
+ displayName: string;
71603
+ permissions: {
71604
+ id: string;
71605
+ description: string | null;
71606
+ createdAt: Date;
71607
+ updatedAt: Date;
71608
+ deletedAt: Date | null;
71609
+ systemName: string;
71610
+ displayName: string;
71611
+ }[];
71612
+ }[];
71613
+ extension: {
71614
+ id: string;
71615
+ createdAt: Date;
71616
+ updatedAt: Date;
71617
+ deletedAt: Date | null;
71618
+ userId: string | null;
71619
+ sipServerUrl: string;
71620
+ sipUserName: string;
71621
+ webphoneLoginUser: string;
71622
+ extensionId: string | null;
71623
+ extensionName: string;
71624
+ telephonySignature: string | null;
71625
+ };
71626
+ };
71627
+ brandName: string;
71628
+ platformId: string;
71629
+ isReloginRequired: boolean;
71630
+ connectedUserName: string;
71631
+ connectedUserId: string;
71632
+ botpressBot: {
71633
+ id: string;
71634
+ name: string;
71635
+ accessToken: string;
71636
+ botId: string;
71637
+ integrationId: string;
71638
+ } | null;
71639
+ }>;
71640
+ platformContact: z.ZodObject<{
71641
+ id: z.ZodString;
71642
+ createdAt: z.ZodDate;
71643
+ updatedAt: z.ZodDate;
71644
+ deletedAt: z.ZodNullable<z.ZodDate>;
71645
+ channelId: z.ZodString;
71646
+ socialPlatformId: z.ZodString;
71647
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed"]>;
71648
+ metadata: z.ZodObject<{
71649
+ id: z.ZodString;
71650
+ name: z.ZodString;
71651
+ picture: z.ZodOptional<z.ZodString>;
71652
+ additionalCredentials: z.ZodAny;
71653
+ }, "strip", z.ZodTypeAny, {
71654
+ id: string;
71655
+ name: string;
71656
+ picture?: string | undefined;
71657
+ additionalCredentials?: any;
71658
+ }, {
71659
+ id: string;
71660
+ name: string;
71661
+ picture?: string | undefined;
71662
+ additionalCredentials?: any;
71663
+ }>;
71664
+ contact: z.ZodObject<{
71665
+ id: z.ZodString;
71666
+ createdAt: z.ZodDate;
71667
+ updatedAt: z.ZodDate;
71668
+ deletedAt: z.ZodNullable<z.ZodDate>;
71669
+ name: z.ZodString;
71670
+ address: z.ZodNullable<z.ZodString>;
71671
+ channel: z.ZodNullable<z.ZodString>;
71672
+ notes: z.ZodNullable<z.ZodString>;
71673
+ contactProfile: z.ZodNullable<z.ZodString>;
71674
+ socialProfileUrl: z.ZodNullable<z.ZodString>;
71675
+ tags: z.ZodArray<z.ZodObject<{
71676
+ id: z.ZodString;
71677
+ createdAt: z.ZodDate;
71678
+ updatedAt: z.ZodDate;
71679
+ deletedAt: z.ZodNullable<z.ZodDate>;
71680
+ name: z.ZodString;
71681
+ }, "strip", z.ZodTypeAny, {
71682
+ id: string;
71683
+ name: string;
71684
+ createdAt: Date;
71685
+ updatedAt: Date;
71686
+ deletedAt: Date | null;
71687
+ }, {
71688
+ id: string;
71689
+ name: string;
71690
+ createdAt: Date;
71691
+ updatedAt: Date;
71692
+ deletedAt: Date | null;
71693
+ }>, "many">;
71694
+ company: z.ZodNullable<z.ZodObject<Omit<{
71695
+ id: z.ZodString;
71696
+ createdAt: z.ZodDate;
71697
+ updatedAt: z.ZodDate;
71698
+ deletedAt: z.ZodNullable<z.ZodDate>;
71699
+ name: z.ZodOptional<z.ZodString>;
71700
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71701
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71702
+ industry: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71703
+ customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
71704
+ id: z.ZodString;
71705
+ createdAt: z.ZodDate;
71706
+ updatedAt: z.ZodDate;
71707
+ deletedAt: z.ZodNullable<z.ZodDate>;
71708
+ textValue: z.ZodNullable<z.ZodString>;
71709
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
71710
+ numberValue: z.ZodNullable<z.ZodNumber>;
71711
+ dateValue: z.ZodNullable<z.ZodDate>;
71712
+ attribute: z.ZodObject<Omit<{
71713
+ id: z.ZodString;
71714
+ createdAt: z.ZodDate;
71715
+ updatedAt: z.ZodDate;
71716
+ deletedAt: z.ZodNullable<z.ZodDate>;
71717
+ systemName: z.ZodString;
71718
+ displayName: z.ZodString;
71719
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
71720
+ position: z.ZodNumber;
71721
+ isDefault: z.ZodBoolean;
71722
+ isArchived: z.ZodBoolean;
71723
+ isRequired: z.ZodBoolean;
71724
+ isUnique: z.ZodBoolean;
71725
+ options: z.ZodArray<z.ZodObject<{
71726
+ position: z.ZodNumber;
71727
+ value: z.ZodString;
71728
+ label: z.ZodString;
71729
+ isDefault: z.ZodBoolean;
71730
+ id: z.ZodString;
71731
+ }, "strip", z.ZodTypeAny, {
71732
+ id: string;
71733
+ position: number;
71734
+ value: string;
71735
+ label: string;
71736
+ isDefault: boolean;
71737
+ }, {
71738
+ id: string;
71739
+ position: number;
71740
+ value: string;
71741
+ label: string;
71742
+ isDefault: boolean;
71743
+ }>, "many">;
71744
+ group: z.ZodObject<{
71745
+ id: z.ZodString;
71746
+ createdAt: z.ZodDate;
71747
+ updatedAt: z.ZodDate;
71748
+ deletedAt: z.ZodNullable<z.ZodDate>;
71749
+ systemName: z.ZodString;
71750
+ displayName: z.ZodString;
71751
+ }, "strip", z.ZodTypeAny, {
71752
+ id: string;
71753
+ createdAt: Date;
71754
+ updatedAt: Date;
71755
+ deletedAt: Date | null;
71756
+ systemName: string;
71757
+ displayName: string;
71758
+ }, {
71759
+ id: string;
71760
+ createdAt: Date;
71761
+ updatedAt: Date;
71762
+ deletedAt: Date | null;
71763
+ systemName: string;
71764
+ displayName: string;
71765
+ }>;
71766
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
71767
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
71768
+ id: string;
71769
+ position: number;
71770
+ createdAt: Date;
71771
+ updatedAt: Date;
71772
+ deletedAt: Date | null;
71773
+ systemName: string;
71774
+ displayName: string;
71775
+ isDefault: boolean;
71776
+ isArchived: boolean;
71777
+ isRequired: boolean;
71778
+ isUnique: boolean;
71779
+ }, {
71780
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
71781
+ id: string;
71782
+ position: number;
71783
+ createdAt: Date;
71784
+ updatedAt: Date;
71785
+ deletedAt: Date | null;
71786
+ systemName: string;
71787
+ displayName: string;
71788
+ isDefault: boolean;
71789
+ isArchived: boolean;
71790
+ isRequired: boolean;
71791
+ isUnique: boolean;
71792
+ }>;
71793
+ }, "strip", z.ZodTypeAny, {
71794
+ id: string;
71795
+ createdAt: Date;
71796
+ updatedAt: Date;
71797
+ deletedAt: Date | null;
71798
+ attribute: {
71799
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
71800
+ id: string;
71801
+ position: number;
71802
+ createdAt: Date;
71803
+ updatedAt: Date;
71804
+ deletedAt: Date | null;
71805
+ systemName: string;
71806
+ displayName: string;
71807
+ isDefault: boolean;
71808
+ isArchived: boolean;
71809
+ isRequired: boolean;
71810
+ isUnique: boolean;
71811
+ };
71812
+ textValue: string | null;
71813
+ booleanValue: boolean | null;
71814
+ numberValue: number | null;
71815
+ dateValue: Date | null;
71816
+ }, {
71817
+ id: string;
71818
+ createdAt: Date;
71819
+ updatedAt: Date;
71820
+ deletedAt: Date | null;
71821
+ attribute: {
71822
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
71823
+ id: string;
71824
+ position: number;
71825
+ createdAt: Date;
71826
+ updatedAt: Date;
71827
+ deletedAt: Date | null;
71828
+ systemName: string;
71829
+ displayName: string;
71830
+ isDefault: boolean;
71831
+ isArchived: boolean;
71832
+ isRequired: boolean;
71833
+ isUnique: boolean;
71834
+ };
71835
+ textValue: string | null;
71836
+ booleanValue: boolean | null;
71837
+ numberValue: number | null;
71838
+ dateValue: Date | null;
71839
+ }>, "many">>;
71840
+ }, "customFields">, "strip", z.ZodTypeAny, {
71841
+ id: string;
71842
+ createdAt: Date;
71843
+ updatedAt: Date;
71844
+ deletedAt: Date | null;
71845
+ address?: string | null | undefined;
71846
+ name?: string | undefined;
71847
+ phone?: string | null | undefined;
71848
+ industry?: string | null | undefined;
71849
+ }, {
71850
+ id: string;
71851
+ createdAt: Date;
71852
+ updatedAt: Date;
71853
+ deletedAt: Date | null;
71854
+ address?: string | null | undefined;
71855
+ name?: string | undefined;
71856
+ phone?: string | null | undefined;
71857
+ industry?: string | null | undefined;
71858
+ }>>;
71859
+ customFields: z.ZodArray<z.ZodObject<{
71860
+ id: z.ZodString;
71861
+ createdAt: z.ZodDate;
71862
+ updatedAt: z.ZodDate;
71863
+ deletedAt: z.ZodNullable<z.ZodDate>;
71864
+ textValue: z.ZodNullable<z.ZodString>;
71865
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
71866
+ numberValue: z.ZodNullable<z.ZodNumber>;
71867
+ dateValue: z.ZodNullable<z.ZodDate>;
71868
+ attribute: z.ZodObject<Omit<{
71869
+ id: z.ZodString;
71870
+ createdAt: z.ZodDate;
71871
+ updatedAt: z.ZodDate;
71872
+ deletedAt: z.ZodNullable<z.ZodDate>;
71873
+ systemName: z.ZodString;
71874
+ displayName: z.ZodString;
71875
+ type: z.ZodUnion<[z.ZodLiteral<"text">, z.ZodLiteral<"textarea">, z.ZodLiteral<"date">, z.ZodLiteral<"select">, z.ZodLiteral<"link">, z.ZodLiteral<"attachment">]>;
71876
+ position: z.ZodNumber;
71877
+ isDefault: z.ZodBoolean;
71878
+ isArchived: z.ZodBoolean;
71879
+ isRequired: z.ZodBoolean;
71880
+ isUnique: z.ZodBoolean;
71881
+ options: z.ZodArray<z.ZodObject<{
71882
+ position: z.ZodNumber;
71883
+ value: z.ZodString;
71884
+ label: z.ZodString;
71885
+ isDefault: z.ZodBoolean;
71886
+ id: z.ZodString;
71887
+ }, "strip", z.ZodTypeAny, {
71888
+ id: string;
71889
+ position: number;
71890
+ value: string;
71891
+ label: string;
71892
+ isDefault: boolean;
71893
+ }, {
71894
+ id: string;
71895
+ position: number;
71896
+ value: string;
71897
+ label: string;
71898
+ isDefault: boolean;
71899
+ }>, "many">;
71900
+ group: z.ZodObject<{
71901
+ id: z.ZodString;
71902
+ createdAt: z.ZodDate;
71903
+ updatedAt: z.ZodDate;
71904
+ deletedAt: z.ZodNullable<z.ZodDate>;
71905
+ systemName: z.ZodString;
71906
+ displayName: z.ZodString;
71907
+ }, "strip", z.ZodTypeAny, {
71908
+ id: string;
71909
+ createdAt: Date;
71910
+ updatedAt: Date;
71911
+ deletedAt: Date | null;
71912
+ systemName: string;
71913
+ displayName: string;
71914
+ }, {
71915
+ id: string;
71916
+ createdAt: Date;
71917
+ updatedAt: Date;
71918
+ deletedAt: Date | null;
71919
+ systemName: string;
71920
+ displayName: string;
71921
+ }>;
71922
+ }, "options" | "group">, "strip", z.ZodTypeAny, {
71923
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
71924
+ id: string;
71925
+ position: number;
71926
+ createdAt: Date;
71927
+ updatedAt: Date;
71928
+ deletedAt: Date | null;
71929
+ systemName: string;
71930
+ displayName: string;
71931
+ isDefault: boolean;
71932
+ isArchived: boolean;
71933
+ isRequired: boolean;
71934
+ isUnique: boolean;
71935
+ }, {
71936
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
71937
+ id: string;
71938
+ position: number;
71939
+ createdAt: Date;
71940
+ updatedAt: Date;
71941
+ deletedAt: Date | null;
71942
+ systemName: string;
71943
+ displayName: string;
71944
+ isDefault: boolean;
71945
+ isArchived: boolean;
71946
+ isRequired: boolean;
71947
+ isUnique: boolean;
71948
+ }>;
71949
+ uploads: z.ZodArray<z.ZodObject<{
71950
+ id: z.ZodString;
71951
+ createdAt: z.ZodDate;
71952
+ updatedAt: z.ZodDate;
71953
+ deletedAt: z.ZodNullable<z.ZodDate>;
71954
+ bucketName: z.ZodString;
71955
+ fileName: z.ZodString;
71956
+ fileSize: z.ZodNumber;
71957
+ fileKey: z.ZodString;
71958
+ fileUrl: z.ZodNullable<z.ZodString>;
71959
+ status: z.ZodNullable<z.ZodString>;
71960
+ }, "strip", z.ZodTypeAny, {
71961
+ id: string;
71962
+ status: string | null;
71963
+ createdAt: Date;
71964
+ updatedAt: Date;
71965
+ deletedAt: Date | null;
71966
+ fileName: string;
71967
+ fileKey: string;
71968
+ bucketName: string;
71969
+ fileSize: number;
71970
+ fileUrl: string | null;
71971
+ }, {
71972
+ id: string;
71973
+ status: string | null;
71974
+ createdAt: Date;
71975
+ updatedAt: Date;
71976
+ deletedAt: Date | null;
71977
+ fileName: string;
71978
+ fileKey: string;
71979
+ bucketName: string;
71980
+ fileSize: number;
71981
+ fileUrl: string | null;
71982
+ }>, "many">;
71983
+ }, "strip", z.ZodTypeAny, {
71984
+ id: string;
71985
+ createdAt: Date;
71986
+ updatedAt: Date;
71987
+ deletedAt: Date | null;
71988
+ attribute: {
71989
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
71990
+ id: string;
71991
+ position: number;
71992
+ createdAt: Date;
71993
+ updatedAt: Date;
71994
+ deletedAt: Date | null;
71995
+ systemName: string;
71996
+ displayName: string;
71997
+ isDefault: boolean;
71998
+ isArchived: boolean;
71999
+ isRequired: boolean;
72000
+ isUnique: boolean;
72001
+ };
72002
+ textValue: string | null;
72003
+ booleanValue: boolean | null;
72004
+ numberValue: number | null;
72005
+ dateValue: Date | null;
72006
+ uploads: {
72007
+ id: string;
72008
+ status: string | null;
72009
+ createdAt: Date;
72010
+ updatedAt: Date;
72011
+ deletedAt: Date | null;
72012
+ fileName: string;
72013
+ fileKey: string;
72014
+ bucketName: string;
72015
+ fileSize: number;
72016
+ fileUrl: string | null;
72017
+ }[];
72018
+ }, {
72019
+ id: string;
72020
+ createdAt: Date;
72021
+ updatedAt: Date;
72022
+ deletedAt: Date | null;
72023
+ attribute: {
72024
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
72025
+ id: string;
72026
+ position: number;
72027
+ createdAt: Date;
72028
+ updatedAt: Date;
72029
+ deletedAt: Date | null;
72030
+ systemName: string;
72031
+ displayName: string;
72032
+ isDefault: boolean;
72033
+ isArchived: boolean;
72034
+ isRequired: boolean;
72035
+ isUnique: boolean;
72036
+ };
72037
+ textValue: string | null;
72038
+ booleanValue: boolean | null;
72039
+ numberValue: number | null;
72040
+ dateValue: Date | null;
72041
+ uploads: {
72042
+ id: string;
72043
+ status: string | null;
72044
+ createdAt: Date;
72045
+ updatedAt: Date;
72046
+ deletedAt: Date | null;
72047
+ fileName: string;
72048
+ fileKey: string;
72049
+ bucketName: string;
72050
+ fileSize: number;
72051
+ fileUrl: string | null;
72052
+ }[];
72053
+ }>, "many">;
72054
+ contactEmails: z.ZodArray<z.ZodObject<{
72055
+ id: z.ZodString;
72056
+ createdAt: z.ZodDate;
72057
+ updatedAt: z.ZodDate;
72058
+ deletedAt: z.ZodNullable<z.ZodDate>;
72059
+ email: z.ZodString;
72060
+ isPrimary: z.ZodBoolean;
72061
+ }, "strip", z.ZodTypeAny, {
72062
+ id: string;
72063
+ isPrimary: boolean;
72064
+ email: string;
72065
+ createdAt: Date;
72066
+ updatedAt: Date;
72067
+ deletedAt: Date | null;
72068
+ }, {
72069
+ id: string;
72070
+ isPrimary: boolean;
72071
+ email: string;
72072
+ createdAt: Date;
72073
+ updatedAt: Date;
72074
+ deletedAt: Date | null;
72075
+ }>, "many">;
72076
+ contactPhones: z.ZodArray<z.ZodObject<{
72077
+ id: z.ZodString;
72078
+ createdAt: z.ZodDate;
72079
+ updatedAt: z.ZodDate;
72080
+ deletedAt: z.ZodNullable<z.ZodDate>;
72081
+ phone: z.ZodString;
72082
+ isPrimary: z.ZodBoolean;
72083
+ }, "strip", z.ZodTypeAny, {
72084
+ id: string;
72085
+ isPrimary: boolean;
72086
+ createdAt: Date;
72087
+ updatedAt: Date;
72088
+ deletedAt: Date | null;
72089
+ phone: string;
72090
+ }, {
72091
+ id: string;
72092
+ isPrimary: boolean;
72093
+ createdAt: Date;
72094
+ updatedAt: Date;
72095
+ deletedAt: Date | null;
72096
+ phone: string;
72097
+ }>, "many">;
72098
+ activityLogs: z.ZodOptional<z.ZodArray<z.ZodObject<{
72099
+ id: z.ZodString;
72100
+ createdAt: z.ZodDate;
72101
+ updatedAt: z.ZodDate;
72102
+ deletedAt: z.ZodNullable<z.ZodDate>;
72103
+ entityId: z.ZodString;
72104
+ description: z.ZodString;
72105
+ entityType: z.ZodObject<{
72106
+ id: z.ZodString;
72107
+ createdAt: z.ZodDate;
72108
+ updatedAt: z.ZodDate;
72109
+ deletedAt: z.ZodNullable<z.ZodDate>;
72110
+ entity: z.ZodString;
72111
+ description: z.ZodNullable<z.ZodString>;
72112
+ }, "strip", z.ZodTypeAny, {
72113
+ id: string;
72114
+ description: string | null;
72115
+ createdAt: Date;
72116
+ updatedAt: Date;
72117
+ deletedAt: Date | null;
72118
+ entity: string;
72119
+ }, {
72120
+ id: string;
72121
+ description: string | null;
72122
+ createdAt: Date;
72123
+ updatedAt: Date;
72124
+ deletedAt: Date | null;
72125
+ entity: string;
72126
+ }>;
72127
+ }, "strip", z.ZodTypeAny, {
72128
+ id: string;
72129
+ description: string;
72130
+ createdAt: Date;
72131
+ updatedAt: Date;
72132
+ deletedAt: Date | null;
72133
+ entityId: string;
72134
+ entityType: {
72135
+ id: string;
72136
+ description: string | null;
72137
+ createdAt: Date;
72138
+ updatedAt: Date;
72139
+ deletedAt: Date | null;
72140
+ entity: string;
72141
+ };
72142
+ }, {
72143
+ id: string;
72144
+ description: string;
72145
+ createdAt: Date;
72146
+ updatedAt: Date;
72147
+ deletedAt: Date | null;
72148
+ entityId: string;
72149
+ entityType: {
72150
+ id: string;
72151
+ description: string | null;
72152
+ createdAt: Date;
72153
+ updatedAt: Date;
72154
+ deletedAt: Date | null;
72155
+ entity: string;
72156
+ };
72157
+ }>, "many">>;
72158
+ }, "strip", z.ZodTypeAny, {
72159
+ id: string;
72160
+ channel: string | null;
72161
+ address: string | null;
72162
+ name: string;
72163
+ createdAt: Date;
72164
+ updatedAt: Date;
72165
+ deletedAt: Date | null;
72166
+ customFields: {
72167
+ id: string;
72168
+ createdAt: Date;
72169
+ updatedAt: Date;
72170
+ deletedAt: Date | null;
72171
+ attribute: {
72172
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
72173
+ id: string;
72174
+ position: number;
72175
+ createdAt: Date;
72176
+ updatedAt: Date;
72177
+ deletedAt: Date | null;
72178
+ systemName: string;
72179
+ displayName: string;
72180
+ isDefault: boolean;
72181
+ isArchived: boolean;
72182
+ isRequired: boolean;
72183
+ isUnique: boolean;
72184
+ };
72185
+ textValue: string | null;
72186
+ booleanValue: boolean | null;
72187
+ numberValue: number | null;
72188
+ dateValue: Date | null;
72189
+ uploads: {
72190
+ id: string;
72191
+ status: string | null;
72192
+ createdAt: Date;
72193
+ updatedAt: Date;
72194
+ deletedAt: Date | null;
72195
+ fileName: string;
72196
+ fileKey: string;
72197
+ bucketName: string;
72198
+ fileSize: number;
72199
+ fileUrl: string | null;
72200
+ }[];
72201
+ }[];
72202
+ company: {
72203
+ id: string;
72204
+ createdAt: Date;
72205
+ updatedAt: Date;
72206
+ deletedAt: Date | null;
72207
+ address?: string | null | undefined;
72208
+ name?: string | undefined;
72209
+ phone?: string | null | undefined;
72210
+ industry?: string | null | undefined;
72211
+ } | null;
72212
+ notes: string | null;
72213
+ contactProfile: string | null;
72214
+ socialProfileUrl: string | null;
72215
+ tags: {
72216
+ id: string;
72217
+ name: string;
72218
+ createdAt: Date;
72219
+ updatedAt: Date;
72220
+ deletedAt: Date | null;
72221
+ }[];
72222
+ contactEmails: {
72223
+ id: string;
72224
+ isPrimary: boolean;
72225
+ email: string;
72226
+ createdAt: Date;
72227
+ updatedAt: Date;
72228
+ deletedAt: Date | null;
72229
+ }[];
72230
+ contactPhones: {
72231
+ id: string;
72232
+ isPrimary: boolean;
72233
+ createdAt: Date;
72234
+ updatedAt: Date;
72235
+ deletedAt: Date | null;
72236
+ phone: string;
72237
+ }[];
72238
+ activityLogs?: {
72239
+ id: string;
72240
+ description: string;
72241
+ createdAt: Date;
72242
+ updatedAt: Date;
72243
+ deletedAt: Date | null;
72244
+ entityId: string;
72245
+ entityType: {
72246
+ id: string;
72247
+ description: string | null;
72248
+ createdAt: Date;
72249
+ updatedAt: Date;
72250
+ deletedAt: Date | null;
72251
+ entity: string;
72252
+ };
72253
+ }[] | undefined;
72254
+ }, {
72255
+ id: string;
72256
+ channel: string | null;
72257
+ address: string | null;
72258
+ name: string;
72259
+ createdAt: Date;
72260
+ updatedAt: Date;
72261
+ deletedAt: Date | null;
72262
+ customFields: {
72263
+ id: string;
72264
+ createdAt: Date;
72265
+ updatedAt: Date;
72266
+ deletedAt: Date | null;
72267
+ attribute: {
72268
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
72269
+ id: string;
72270
+ position: number;
72271
+ createdAt: Date;
72272
+ updatedAt: Date;
72273
+ deletedAt: Date | null;
72274
+ systemName: string;
72275
+ displayName: string;
72276
+ isDefault: boolean;
72277
+ isArchived: boolean;
72278
+ isRequired: boolean;
72279
+ isUnique: boolean;
72280
+ };
72281
+ textValue: string | null;
72282
+ booleanValue: boolean | null;
72283
+ numberValue: number | null;
72284
+ dateValue: Date | null;
72285
+ uploads: {
72286
+ id: string;
72287
+ status: string | null;
72288
+ createdAt: Date;
72289
+ updatedAt: Date;
72290
+ deletedAt: Date | null;
72291
+ fileName: string;
72292
+ fileKey: string;
72293
+ bucketName: string;
72294
+ fileSize: number;
72295
+ fileUrl: string | null;
72296
+ }[];
72297
+ }[];
72298
+ company: {
72299
+ id: string;
72300
+ createdAt: Date;
72301
+ updatedAt: Date;
72302
+ deletedAt: Date | null;
72303
+ address?: string | null | undefined;
72304
+ name?: string | undefined;
72305
+ phone?: string | null | undefined;
72306
+ industry?: string | null | undefined;
72307
+ } | null;
72308
+ notes: string | null;
72309
+ contactProfile: string | null;
72310
+ socialProfileUrl: string | null;
72311
+ tags: {
72312
+ id: string;
72313
+ name: string;
72314
+ createdAt: Date;
72315
+ updatedAt: Date;
72316
+ deletedAt: Date | null;
72317
+ }[];
72318
+ contactEmails: {
72319
+ id: string;
72320
+ isPrimary: boolean;
72321
+ email: string;
72322
+ createdAt: Date;
72323
+ updatedAt: Date;
72324
+ deletedAt: Date | null;
72325
+ }[];
72326
+ contactPhones: {
72327
+ id: string;
72328
+ isPrimary: boolean;
72329
+ createdAt: Date;
72330
+ updatedAt: Date;
72331
+ deletedAt: Date | null;
72332
+ phone: string;
72333
+ }[];
72334
+ activityLogs?: {
72335
+ id: string;
72336
+ description: string;
72337
+ createdAt: Date;
72338
+ updatedAt: Date;
72339
+ deletedAt: Date | null;
72340
+ entityId: string;
72341
+ entityType: {
72342
+ id: string;
72343
+ description: string | null;
72344
+ createdAt: Date;
72345
+ updatedAt: Date;
72346
+ deletedAt: Date | null;
72347
+ entity: string;
72348
+ };
72349
+ }[] | undefined;
72350
+ }>;
72351
+ }, "strip", z.ZodTypeAny, {
72352
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
72353
+ id: string;
72354
+ metadata: {
72355
+ id: string;
72356
+ name: string;
72357
+ picture?: string | undefined;
72358
+ additionalCredentials?: any;
72359
+ };
72360
+ createdAt: Date;
72361
+ updatedAt: Date;
72362
+ deletedAt: Date | null;
72363
+ contact: {
72364
+ id: string;
72365
+ channel: string | null;
72366
+ address: string | null;
72367
+ name: string;
72368
+ createdAt: Date;
72369
+ updatedAt: Date;
72370
+ deletedAt: Date | null;
72371
+ customFields: {
72372
+ id: string;
72373
+ createdAt: Date;
72374
+ updatedAt: Date;
72375
+ deletedAt: Date | null;
72376
+ attribute: {
72377
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
72378
+ id: string;
72379
+ position: number;
72380
+ createdAt: Date;
72381
+ updatedAt: Date;
72382
+ deletedAt: Date | null;
72383
+ systemName: string;
72384
+ displayName: string;
72385
+ isDefault: boolean;
72386
+ isArchived: boolean;
72387
+ isRequired: boolean;
72388
+ isUnique: boolean;
72389
+ };
72390
+ textValue: string | null;
72391
+ booleanValue: boolean | null;
72392
+ numberValue: number | null;
72393
+ dateValue: Date | null;
72394
+ uploads: {
72395
+ id: string;
72396
+ status: string | null;
72397
+ createdAt: Date;
72398
+ updatedAt: Date;
72399
+ deletedAt: Date | null;
72400
+ fileName: string;
72401
+ fileKey: string;
72402
+ bucketName: string;
72403
+ fileSize: number;
72404
+ fileUrl: string | null;
72405
+ }[];
72406
+ }[];
72407
+ company: {
72408
+ id: string;
72409
+ createdAt: Date;
72410
+ updatedAt: Date;
72411
+ deletedAt: Date | null;
72412
+ address?: string | null | undefined;
72413
+ name?: string | undefined;
72414
+ phone?: string | null | undefined;
72415
+ industry?: string | null | undefined;
72416
+ } | null;
72417
+ notes: string | null;
72418
+ contactProfile: string | null;
72419
+ socialProfileUrl: string | null;
72420
+ tags: {
72421
+ id: string;
72422
+ name: string;
72423
+ createdAt: Date;
72424
+ updatedAt: Date;
72425
+ deletedAt: Date | null;
72426
+ }[];
72427
+ contactEmails: {
72428
+ id: string;
72429
+ isPrimary: boolean;
72430
+ email: string;
72431
+ createdAt: Date;
72432
+ updatedAt: Date;
72433
+ deletedAt: Date | null;
72434
+ }[];
72435
+ contactPhones: {
72436
+ id: string;
72437
+ isPrimary: boolean;
72438
+ createdAt: Date;
72439
+ updatedAt: Date;
72440
+ deletedAt: Date | null;
72441
+ phone: string;
72442
+ }[];
72443
+ activityLogs?: {
72444
+ id: string;
72445
+ description: string;
72446
+ createdAt: Date;
72447
+ updatedAt: Date;
72448
+ deletedAt: Date | null;
72449
+ entityId: string;
72450
+ entityType: {
72451
+ id: string;
72452
+ description: string | null;
72453
+ createdAt: Date;
72454
+ updatedAt: Date;
72455
+ deletedAt: Date | null;
72456
+ entity: string;
72457
+ };
72458
+ }[] | undefined;
72459
+ };
72460
+ channelId: string;
72461
+ socialPlatformId: string;
72462
+ }, {
72463
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
72464
+ id: string;
72465
+ metadata: {
72466
+ id: string;
72467
+ name: string;
72468
+ picture?: string | undefined;
72469
+ additionalCredentials?: any;
72470
+ };
72471
+ createdAt: Date;
72472
+ updatedAt: Date;
72473
+ deletedAt: Date | null;
72474
+ contact: {
72475
+ id: string;
72476
+ channel: string | null;
72477
+ address: string | null;
72478
+ name: string;
72479
+ createdAt: Date;
72480
+ updatedAt: Date;
72481
+ deletedAt: Date | null;
72482
+ customFields: {
72483
+ id: string;
72484
+ createdAt: Date;
72485
+ updatedAt: Date;
72486
+ deletedAt: Date | null;
72487
+ attribute: {
72488
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
72489
+ id: string;
72490
+ position: number;
72491
+ createdAt: Date;
72492
+ updatedAt: Date;
72493
+ deletedAt: Date | null;
72494
+ systemName: string;
72495
+ displayName: string;
72496
+ isDefault: boolean;
72497
+ isArchived: boolean;
72498
+ isRequired: boolean;
72499
+ isUnique: boolean;
72500
+ };
72501
+ textValue: string | null;
72502
+ booleanValue: boolean | null;
72503
+ numberValue: number | null;
72504
+ dateValue: Date | null;
72505
+ uploads: {
72506
+ id: string;
72507
+ status: string | null;
72508
+ createdAt: Date;
72509
+ updatedAt: Date;
72510
+ deletedAt: Date | null;
72511
+ fileName: string;
72512
+ fileKey: string;
72513
+ bucketName: string;
72514
+ fileSize: number;
72515
+ fileUrl: string | null;
72516
+ }[];
72517
+ }[];
72518
+ company: {
72519
+ id: string;
72520
+ createdAt: Date;
72521
+ updatedAt: Date;
72522
+ deletedAt: Date | null;
72523
+ address?: string | null | undefined;
72524
+ name?: string | undefined;
72525
+ phone?: string | null | undefined;
72526
+ industry?: string | null | undefined;
72527
+ } | null;
72528
+ notes: string | null;
72529
+ contactProfile: string | null;
72530
+ socialProfileUrl: string | null;
72531
+ tags: {
72532
+ id: string;
72533
+ name: string;
72534
+ createdAt: Date;
72535
+ updatedAt: Date;
72536
+ deletedAt: Date | null;
72537
+ }[];
72538
+ contactEmails: {
72539
+ id: string;
72540
+ isPrimary: boolean;
72541
+ email: string;
72542
+ createdAt: Date;
72543
+ updatedAt: Date;
72544
+ deletedAt: Date | null;
72545
+ }[];
72546
+ contactPhones: {
72547
+ id: string;
72548
+ isPrimary: boolean;
72549
+ createdAt: Date;
72550
+ updatedAt: Date;
72551
+ deletedAt: Date | null;
72552
+ phone: string;
72553
+ }[];
72554
+ activityLogs?: {
72555
+ id: string;
72556
+ description: string;
72557
+ createdAt: Date;
72558
+ updatedAt: Date;
72559
+ deletedAt: Date | null;
72560
+ entityId: string;
72561
+ entityType: {
72562
+ id: string;
72563
+ description: string | null;
72564
+ createdAt: Date;
72565
+ updatedAt: Date;
72566
+ deletedAt: Date | null;
72567
+ entity: string;
72568
+ };
72569
+ }[] | undefined;
72570
+ };
72571
+ channelId: string;
72572
+ socialPlatformId: string;
72573
+ }>;
72574
+ actor: z.ZodObject<{
72575
+ id: z.ZodString;
72576
+ createdAt: z.ZodDate;
72577
+ updatedAt: z.ZodDate;
72578
+ deletedAt: z.ZodNullable<z.ZodDate>;
72579
+ name: z.ZodString;
72580
+ email: z.ZodString;
72581
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
72582
+ password: z.ZodString;
72583
+ address: z.ZodNullable<z.ZodString>;
72584
+ phone: z.ZodNullable<z.ZodString>;
72585
+ notificationCount: z.ZodNullable<z.ZodNumber>;
72586
+ roles: z.ZodArray<z.ZodObject<{
72587
+ id: z.ZodString;
72588
+ createdAt: z.ZodDate;
72589
+ updatedAt: z.ZodDate;
72590
+ deletedAt: z.ZodNullable<z.ZodDate>;
72591
+ systemName: z.ZodString;
72592
+ displayName: z.ZodString;
72593
+ description: z.ZodNullable<z.ZodString>;
72594
+ permissions: z.ZodArray<z.ZodObject<{
72595
+ id: z.ZodString;
72596
+ createdAt: z.ZodDate;
72597
+ updatedAt: z.ZodDate;
72598
+ deletedAt: z.ZodNullable<z.ZodDate>;
72599
+ systemName: z.ZodString;
72600
+ displayName: z.ZodString;
72601
+ description: z.ZodNullable<z.ZodString>;
72602
+ }, "strip", z.ZodTypeAny, {
72603
+ id: string;
72604
+ description: string | null;
72605
+ createdAt: Date;
72606
+ updatedAt: Date;
72607
+ deletedAt: Date | null;
72608
+ systemName: string;
72609
+ displayName: string;
72610
+ }, {
72611
+ id: string;
72612
+ description: string | null;
72613
+ createdAt: Date;
72614
+ updatedAt: Date;
72615
+ deletedAt: Date | null;
72616
+ systemName: string;
72617
+ displayName: string;
72618
+ }>, "many">;
72619
+ }, "strip", z.ZodTypeAny, {
72620
+ id: string;
72621
+ description: string | null;
72622
+ createdAt: Date;
72623
+ updatedAt: Date;
72624
+ deletedAt: Date | null;
72625
+ systemName: string;
72626
+ displayName: string;
72627
+ permissions: {
72628
+ id: string;
72629
+ description: string | null;
72630
+ createdAt: Date;
72631
+ updatedAt: Date;
72632
+ deletedAt: Date | null;
72633
+ systemName: string;
72634
+ displayName: string;
72635
+ }[];
72636
+ }, {
72637
+ id: string;
72638
+ description: string | null;
72639
+ createdAt: Date;
72640
+ updatedAt: Date;
72641
+ deletedAt: Date | null;
72642
+ systemName: string;
72643
+ displayName: string;
72644
+ permissions: {
72645
+ id: string;
72646
+ description: string | null;
72647
+ createdAt: Date;
72648
+ updatedAt: Date;
72649
+ deletedAt: Date | null;
72650
+ systemName: string;
72651
+ displayName: string;
72652
+ }[];
72653
+ }>, "many">;
72654
+ extension: z.ZodObject<{
72655
+ id: z.ZodString;
72656
+ createdAt: z.ZodDate;
72657
+ updatedAt: z.ZodDate;
72658
+ deletedAt: z.ZodNullable<z.ZodDate>;
72659
+ userId: z.ZodNullable<z.ZodString>;
72660
+ sipServerUrl: z.ZodString;
72661
+ sipUserName: z.ZodString;
72662
+ webphoneLoginUser: z.ZodString;
72663
+ extensionId: z.ZodNullable<z.ZodString>;
72664
+ extensionName: z.ZodString;
72665
+ telephonySignature: z.ZodNullable<z.ZodString>;
72666
+ }, "strip", z.ZodTypeAny, {
72667
+ id: string;
72668
+ createdAt: Date;
72669
+ updatedAt: Date;
72670
+ deletedAt: Date | null;
72671
+ userId: string | null;
72672
+ sipServerUrl: string;
72673
+ sipUserName: string;
72674
+ webphoneLoginUser: string;
72675
+ extensionId: string | null;
72676
+ extensionName: string;
72677
+ telephonySignature: string | null;
72678
+ }, {
72679
+ id: string;
72680
+ createdAt: Date;
72681
+ updatedAt: Date;
72682
+ deletedAt: Date | null;
72683
+ userId: string | null;
72684
+ sipServerUrl: string;
72685
+ sipUserName: string;
72686
+ webphoneLoginUser: string;
72687
+ extensionId: string | null;
72688
+ extensionName: string;
72689
+ telephonySignature: string | null;
72690
+ }>;
72691
+ }, "strip", z.ZodTypeAny, {
72692
+ id: string;
72693
+ address: string | null;
72694
+ name: string;
72695
+ email: string;
72696
+ createdAt: Date;
72697
+ updatedAt: Date;
72698
+ deletedAt: Date | null;
72699
+ emailVerifiedAt: Date | null;
72700
+ password: string;
72701
+ phone: string | null;
72702
+ notificationCount: number | null;
72703
+ roles: {
72704
+ id: string;
72705
+ description: string | null;
72706
+ createdAt: Date;
72707
+ updatedAt: Date;
72708
+ deletedAt: Date | null;
72709
+ systemName: string;
72710
+ displayName: string;
72711
+ permissions: {
72712
+ id: string;
72713
+ description: string | null;
72714
+ createdAt: Date;
72715
+ updatedAt: Date;
72716
+ deletedAt: Date | null;
72717
+ systemName: string;
72718
+ displayName: string;
72719
+ }[];
72720
+ }[];
72721
+ extension: {
72722
+ id: string;
72723
+ createdAt: Date;
72724
+ updatedAt: Date;
72725
+ deletedAt: Date | null;
72726
+ userId: string | null;
72727
+ sipServerUrl: string;
72728
+ sipUserName: string;
72729
+ webphoneLoginUser: string;
72730
+ extensionId: string | null;
72731
+ extensionName: string;
72732
+ telephonySignature: string | null;
72733
+ };
72734
+ }, {
72735
+ id: string;
72736
+ address: string | null;
72737
+ name: string;
72738
+ email: string;
72739
+ createdAt: Date;
72740
+ updatedAt: Date;
72741
+ deletedAt: Date | null;
72742
+ emailVerifiedAt: Date | null;
72743
+ password: string;
72744
+ phone: string | null;
72745
+ notificationCount: number | null;
72746
+ roles: {
72747
+ id: string;
72748
+ description: string | null;
72749
+ createdAt: Date;
72750
+ updatedAt: Date;
72751
+ deletedAt: Date | null;
72752
+ systemName: string;
72753
+ displayName: string;
72754
+ permissions: {
72755
+ id: string;
72756
+ description: string | null;
72757
+ createdAt: Date;
72758
+ updatedAt: Date;
72759
+ deletedAt: Date | null;
72760
+ systemName: string;
72761
+ displayName: string;
72762
+ }[];
72763
+ }[];
72764
+ extension: {
72765
+ id: string;
72766
+ createdAt: Date;
72767
+ updatedAt: Date;
72768
+ deletedAt: Date | null;
72769
+ userId: string | null;
72770
+ sipServerUrl: string;
72771
+ sipUserName: string;
72772
+ webphoneLoginUser: string;
72773
+ extensionId: string | null;
72774
+ extensionName: string;
72775
+ telephonySignature: string | null;
72776
+ };
72777
+ }>;
72778
+ imageURL: z.ZodString;
72779
+ permalinkURL: z.ZodString;
71205
72780
  }, "strip", z.ZodTypeAny, {
71206
- type: string;
72781
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "added_photos" | "shared_story" | "mobile_status_update" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
72782
+ message: string | null;
71207
72783
  id: string;
71208
- name: string;
72784
+ channel: {
72785
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
72786
+ id: string;
72787
+ name: string;
72788
+ metadata: {
72789
+ id: string;
72790
+ name: string;
72791
+ accessToken?: string | undefined;
72792
+ channelSecret?: string | undefined;
72793
+ additionalCredentials?: any;
72794
+ lineRichMenuId?: string | null | undefined;
72795
+ };
72796
+ status: boolean;
72797
+ createdAt: Date;
72798
+ updatedAt: Date;
72799
+ deletedAt: Date | null;
72800
+ actor: {
72801
+ id: string;
72802
+ address: string | null;
72803
+ name: string;
72804
+ email: string;
72805
+ createdAt: Date;
72806
+ updatedAt: Date;
72807
+ deletedAt: Date | null;
72808
+ emailVerifiedAt: Date | null;
72809
+ password: string;
72810
+ phone: string | null;
72811
+ notificationCount: number | null;
72812
+ roles: {
72813
+ id: string;
72814
+ description: string | null;
72815
+ createdAt: Date;
72816
+ updatedAt: Date;
72817
+ deletedAt: Date | null;
72818
+ systemName: string;
72819
+ displayName: string;
72820
+ permissions: {
72821
+ id: string;
72822
+ description: string | null;
72823
+ createdAt: Date;
72824
+ updatedAt: Date;
72825
+ deletedAt: Date | null;
72826
+ systemName: string;
72827
+ displayName: string;
72828
+ }[];
72829
+ }[];
72830
+ extension: {
72831
+ id: string;
72832
+ createdAt: Date;
72833
+ updatedAt: Date;
72834
+ deletedAt: Date | null;
72835
+ userId: string | null;
72836
+ sipServerUrl: string;
72837
+ sipUserName: string;
72838
+ webphoneLoginUser: string;
72839
+ extensionId: string | null;
72840
+ extensionName: string;
72841
+ telephonySignature: string | null;
72842
+ };
72843
+ };
72844
+ brandName: string;
72845
+ platformId: string;
72846
+ isReloginRequired: boolean;
72847
+ connectedUserName: string;
72848
+ connectedUserId: string;
72849
+ botpressBot: {
72850
+ id: string;
72851
+ name: string;
72852
+ accessToken: string;
72853
+ botId: string;
72854
+ integrationId: string;
72855
+ } | null;
72856
+ };
71209
72857
  createdAt: Date;
71210
72858
  updatedAt: Date;
71211
72859
  deletedAt: Date | null;
71212
- isActive: boolean;
72860
+ actor: {
72861
+ id: string;
72862
+ address: string | null;
72863
+ name: string;
72864
+ email: string;
72865
+ createdAt: Date;
72866
+ updatedAt: Date;
72867
+ deletedAt: Date | null;
72868
+ emailVerifiedAt: Date | null;
72869
+ password: string;
72870
+ phone: string | null;
72871
+ notificationCount: number | null;
72872
+ roles: {
72873
+ id: string;
72874
+ description: string | null;
72875
+ createdAt: Date;
72876
+ updatedAt: Date;
72877
+ deletedAt: Date | null;
72878
+ systemName: string;
72879
+ displayName: string;
72880
+ permissions: {
72881
+ id: string;
72882
+ description: string | null;
72883
+ createdAt: Date;
72884
+ updatedAt: Date;
72885
+ deletedAt: Date | null;
72886
+ systemName: string;
72887
+ displayName: string;
72888
+ }[];
72889
+ }[];
72890
+ extension: {
72891
+ id: string;
72892
+ createdAt: Date;
72893
+ updatedAt: Date;
72894
+ deletedAt: Date | null;
72895
+ userId: string | null;
72896
+ sipServerUrl: string;
72897
+ sipUserName: string;
72898
+ webphoneLoginUser: string;
72899
+ extensionId: string | null;
72900
+ extensionName: string;
72901
+ telephonySignature: string | null;
72902
+ };
72903
+ };
72904
+ socialPlatformId: string;
72905
+ platformContact: {
72906
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
72907
+ id: string;
72908
+ metadata: {
72909
+ id: string;
72910
+ name: string;
72911
+ picture?: string | undefined;
72912
+ additionalCredentials?: any;
72913
+ };
72914
+ createdAt: Date;
72915
+ updatedAt: Date;
72916
+ deletedAt: Date | null;
72917
+ contact: {
72918
+ id: string;
72919
+ channel: string | null;
72920
+ address: string | null;
72921
+ name: string;
72922
+ createdAt: Date;
72923
+ updatedAt: Date;
72924
+ deletedAt: Date | null;
72925
+ customFields: {
72926
+ id: string;
72927
+ createdAt: Date;
72928
+ updatedAt: Date;
72929
+ deletedAt: Date | null;
72930
+ attribute: {
72931
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
72932
+ id: string;
72933
+ position: number;
72934
+ createdAt: Date;
72935
+ updatedAt: Date;
72936
+ deletedAt: Date | null;
72937
+ systemName: string;
72938
+ displayName: string;
72939
+ isDefault: boolean;
72940
+ isArchived: boolean;
72941
+ isRequired: boolean;
72942
+ isUnique: boolean;
72943
+ };
72944
+ textValue: string | null;
72945
+ booleanValue: boolean | null;
72946
+ numberValue: number | null;
72947
+ dateValue: Date | null;
72948
+ uploads: {
72949
+ id: string;
72950
+ status: string | null;
72951
+ createdAt: Date;
72952
+ updatedAt: Date;
72953
+ deletedAt: Date | null;
72954
+ fileName: string;
72955
+ fileKey: string;
72956
+ bucketName: string;
72957
+ fileSize: number;
72958
+ fileUrl: string | null;
72959
+ }[];
72960
+ }[];
72961
+ company: {
72962
+ id: string;
72963
+ createdAt: Date;
72964
+ updatedAt: Date;
72965
+ deletedAt: Date | null;
72966
+ address?: string | null | undefined;
72967
+ name?: string | undefined;
72968
+ phone?: string | null | undefined;
72969
+ industry?: string | null | undefined;
72970
+ } | null;
72971
+ notes: string | null;
72972
+ contactProfile: string | null;
72973
+ socialProfileUrl: string | null;
72974
+ tags: {
72975
+ id: string;
72976
+ name: string;
72977
+ createdAt: Date;
72978
+ updatedAt: Date;
72979
+ deletedAt: Date | null;
72980
+ }[];
72981
+ contactEmails: {
72982
+ id: string;
72983
+ isPrimary: boolean;
72984
+ email: string;
72985
+ createdAt: Date;
72986
+ updatedAt: Date;
72987
+ deletedAt: Date | null;
72988
+ }[];
72989
+ contactPhones: {
72990
+ id: string;
72991
+ isPrimary: boolean;
72992
+ createdAt: Date;
72993
+ updatedAt: Date;
72994
+ deletedAt: Date | null;
72995
+ phone: string;
72996
+ }[];
72997
+ activityLogs?: {
72998
+ id: string;
72999
+ description: string;
73000
+ createdAt: Date;
73001
+ updatedAt: Date;
73002
+ deletedAt: Date | null;
73003
+ entityId: string;
73004
+ entityType: {
73005
+ id: string;
73006
+ description: string | null;
73007
+ createdAt: Date;
73008
+ updatedAt: Date;
73009
+ deletedAt: Date | null;
73010
+ entity: string;
73011
+ };
73012
+ }[] | undefined;
73013
+ };
73014
+ channelId: string;
73015
+ socialPlatformId: string;
73016
+ };
73017
+ platformId: string;
73018
+ platformMessageId: string;
73019
+ postCreatedAt: Date;
73020
+ postUpdatedAt: Date;
73021
+ imageURL: string;
73022
+ permalinkURL: string;
73023
+ metadata?: any;
71213
73024
  }, {
71214
- type: string;
73025
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "added_photos" | "shared_story" | "mobile_status_update" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
73026
+ message: string | null;
71215
73027
  id: string;
71216
- name: string;
73028
+ channel: {
73029
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
73030
+ id: string;
73031
+ name: string;
73032
+ metadata: {
73033
+ id: string;
73034
+ name: string;
73035
+ accessToken?: string | undefined;
73036
+ channelSecret?: string | undefined;
73037
+ additionalCredentials?: any;
73038
+ lineRichMenuId?: string | null | undefined;
73039
+ };
73040
+ status: boolean;
73041
+ createdAt: Date;
73042
+ updatedAt: Date;
73043
+ deletedAt: Date | null;
73044
+ actor: {
73045
+ id: string;
73046
+ address: string | null;
73047
+ name: string;
73048
+ email: string;
73049
+ createdAt: Date;
73050
+ updatedAt: Date;
73051
+ deletedAt: Date | null;
73052
+ emailVerifiedAt: Date | null;
73053
+ password: string;
73054
+ phone: string | null;
73055
+ notificationCount: number | null;
73056
+ roles: {
73057
+ id: string;
73058
+ description: string | null;
73059
+ createdAt: Date;
73060
+ updatedAt: Date;
73061
+ deletedAt: Date | null;
73062
+ systemName: string;
73063
+ displayName: string;
73064
+ permissions: {
73065
+ id: string;
73066
+ description: string | null;
73067
+ createdAt: Date;
73068
+ updatedAt: Date;
73069
+ deletedAt: Date | null;
73070
+ systemName: string;
73071
+ displayName: string;
73072
+ }[];
73073
+ }[];
73074
+ extension: {
73075
+ id: string;
73076
+ createdAt: Date;
73077
+ updatedAt: Date;
73078
+ deletedAt: Date | null;
73079
+ userId: string | null;
73080
+ sipServerUrl: string;
73081
+ sipUserName: string;
73082
+ webphoneLoginUser: string;
73083
+ extensionId: string | null;
73084
+ extensionName: string;
73085
+ telephonySignature: string | null;
73086
+ };
73087
+ };
73088
+ brandName: string;
73089
+ platformId: string;
73090
+ isReloginRequired: boolean;
73091
+ connectedUserName: string;
73092
+ connectedUserId: string;
73093
+ botpressBot: {
73094
+ id: string;
73095
+ name: string;
73096
+ accessToken: string;
73097
+ botId: string;
73098
+ integrationId: string;
73099
+ } | null;
73100
+ };
71217
73101
  createdAt: Date;
71218
73102
  updatedAt: Date;
71219
73103
  deletedAt: Date | null;
71220
- isActive: boolean;
71221
- }>;
73104
+ actor: {
73105
+ id: string;
73106
+ address: string | null;
73107
+ name: string;
73108
+ email: string;
73109
+ createdAt: Date;
73110
+ updatedAt: Date;
73111
+ deletedAt: Date | null;
73112
+ emailVerifiedAt: Date | null;
73113
+ password: string;
73114
+ phone: string | null;
73115
+ notificationCount: number | null;
73116
+ roles: {
73117
+ id: string;
73118
+ description: string | null;
73119
+ createdAt: Date;
73120
+ updatedAt: Date;
73121
+ deletedAt: Date | null;
73122
+ systemName: string;
73123
+ displayName: string;
73124
+ permissions: {
73125
+ id: string;
73126
+ description: string | null;
73127
+ createdAt: Date;
73128
+ updatedAt: Date;
73129
+ deletedAt: Date | null;
73130
+ systemName: string;
73131
+ displayName: string;
73132
+ }[];
73133
+ }[];
73134
+ extension: {
73135
+ id: string;
73136
+ createdAt: Date;
73137
+ updatedAt: Date;
73138
+ deletedAt: Date | null;
73139
+ userId: string | null;
73140
+ sipServerUrl: string;
73141
+ sipUserName: string;
73142
+ webphoneLoginUser: string;
73143
+ extensionId: string | null;
73144
+ extensionName: string;
73145
+ telephonySignature: string | null;
73146
+ };
73147
+ };
73148
+ socialPlatformId: string;
73149
+ platformContact: {
73150
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
73151
+ id: string;
73152
+ metadata: {
73153
+ id: string;
73154
+ name: string;
73155
+ picture?: string | undefined;
73156
+ additionalCredentials?: any;
73157
+ };
73158
+ createdAt: Date;
73159
+ updatedAt: Date;
73160
+ deletedAt: Date | null;
73161
+ contact: {
73162
+ id: string;
73163
+ channel: string | null;
73164
+ address: string | null;
73165
+ name: string;
73166
+ createdAt: Date;
73167
+ updatedAt: Date;
73168
+ deletedAt: Date | null;
73169
+ customFields: {
73170
+ id: string;
73171
+ createdAt: Date;
73172
+ updatedAt: Date;
73173
+ deletedAt: Date | null;
73174
+ attribute: {
73175
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
73176
+ id: string;
73177
+ position: number;
73178
+ createdAt: Date;
73179
+ updatedAt: Date;
73180
+ deletedAt: Date | null;
73181
+ systemName: string;
73182
+ displayName: string;
73183
+ isDefault: boolean;
73184
+ isArchived: boolean;
73185
+ isRequired: boolean;
73186
+ isUnique: boolean;
73187
+ };
73188
+ textValue: string | null;
73189
+ booleanValue: boolean | null;
73190
+ numberValue: number | null;
73191
+ dateValue: Date | null;
73192
+ uploads: {
73193
+ id: string;
73194
+ status: string | null;
73195
+ createdAt: Date;
73196
+ updatedAt: Date;
73197
+ deletedAt: Date | null;
73198
+ fileName: string;
73199
+ fileKey: string;
73200
+ bucketName: string;
73201
+ fileSize: number;
73202
+ fileUrl: string | null;
73203
+ }[];
73204
+ }[];
73205
+ company: {
73206
+ id: string;
73207
+ createdAt: Date;
73208
+ updatedAt: Date;
73209
+ deletedAt: Date | null;
73210
+ address?: string | null | undefined;
73211
+ name?: string | undefined;
73212
+ phone?: string | null | undefined;
73213
+ industry?: string | null | undefined;
73214
+ } | null;
73215
+ notes: string | null;
73216
+ contactProfile: string | null;
73217
+ socialProfileUrl: string | null;
73218
+ tags: {
73219
+ id: string;
73220
+ name: string;
73221
+ createdAt: Date;
73222
+ updatedAt: Date;
73223
+ deletedAt: Date | null;
73224
+ }[];
73225
+ contactEmails: {
73226
+ id: string;
73227
+ isPrimary: boolean;
73228
+ email: string;
73229
+ createdAt: Date;
73230
+ updatedAt: Date;
73231
+ deletedAt: Date | null;
73232
+ }[];
73233
+ contactPhones: {
73234
+ id: string;
73235
+ isPrimary: boolean;
73236
+ createdAt: Date;
73237
+ updatedAt: Date;
73238
+ deletedAt: Date | null;
73239
+ phone: string;
73240
+ }[];
73241
+ activityLogs?: {
73242
+ id: string;
73243
+ description: string;
73244
+ createdAt: Date;
73245
+ updatedAt: Date;
73246
+ deletedAt: Date | null;
73247
+ entityId: string;
73248
+ entityType: {
73249
+ id: string;
73250
+ description: string | null;
73251
+ createdAt: Date;
73252
+ updatedAt: Date;
73253
+ deletedAt: Date | null;
73254
+ entity: string;
73255
+ };
73256
+ }[] | undefined;
73257
+ };
73258
+ channelId: string;
73259
+ socialPlatformId: string;
73260
+ };
73261
+ platformId: string;
73262
+ platformMessageId: string;
73263
+ postCreatedAt: Date;
73264
+ postUpdatedAt: Date;
73265
+ imageURL: string;
73266
+ permalinkURL: string;
73267
+ metadata?: any;
73268
+ }>>;
73269
+ replyReaction: z.ZodNullable<z.ZodString>;
71222
73270
  }, "strip", z.ZodTypeAny, {
71223
73271
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
71224
73272
  message: string;
@@ -71872,55 +73920,303 @@ export declare const mainChatContract: {
71872
73920
  telephonySignature: string | null;
71873
73921
  };
71874
73922
  };
71875
- metadata?: any;
71876
- template?: any;
71877
- };
71878
- sender: {
71879
- id: string;
71880
- address: string | null;
71881
- name: string;
71882
- email: string;
71883
- createdAt: Date;
71884
- updatedAt: Date;
71885
- deletedAt: Date | null;
71886
- emailVerifiedAt: Date | null;
71887
- password: string;
71888
- phone: string | null;
71889
- notificationCount: number | null;
71890
- roles: {
73923
+ metadata?: any;
73924
+ template?: any;
73925
+ };
73926
+ sender: {
73927
+ id: string;
73928
+ address: string | null;
73929
+ name: string;
73930
+ email: string;
73931
+ createdAt: Date;
73932
+ updatedAt: Date;
73933
+ deletedAt: Date | null;
73934
+ emailVerifiedAt: Date | null;
73935
+ password: string;
73936
+ phone: string | null;
73937
+ notificationCount: number | null;
73938
+ roles: {
73939
+ id: string;
73940
+ description: string | null;
73941
+ createdAt: Date;
73942
+ updatedAt: Date;
73943
+ deletedAt: Date | null;
73944
+ systemName: string;
73945
+ displayName: string;
73946
+ permissions: {
73947
+ id: string;
73948
+ description: string | null;
73949
+ createdAt: Date;
73950
+ updatedAt: Date;
73951
+ deletedAt: Date | null;
73952
+ systemName: string;
73953
+ displayName: string;
73954
+ }[];
73955
+ }[];
73956
+ extension: {
73957
+ id: string;
73958
+ createdAt: Date;
73959
+ updatedAt: Date;
73960
+ deletedAt: Date | null;
73961
+ userId: string | null;
73962
+ sipServerUrl: string;
73963
+ sipUserName: string;
73964
+ webphoneLoginUser: string;
73965
+ extensionId: string | null;
73966
+ extensionName: string;
73967
+ telephonySignature: string | null;
73968
+ };
73969
+ };
73970
+ parentMessageId: string | null;
73971
+ feedPostId: string | null;
73972
+ feedPost: {
73973
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "added_photos" | "shared_story" | "mobile_status_update" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
73974
+ message: string | null;
73975
+ id: string;
73976
+ channel: {
73977
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
73978
+ id: string;
73979
+ name: string;
73980
+ metadata: {
73981
+ id: string;
73982
+ name: string;
73983
+ accessToken?: string | undefined;
73984
+ channelSecret?: string | undefined;
73985
+ additionalCredentials?: any;
73986
+ lineRichMenuId?: string | null | undefined;
73987
+ };
73988
+ status: boolean;
73989
+ createdAt: Date;
73990
+ updatedAt: Date;
73991
+ deletedAt: Date | null;
73992
+ actor: {
73993
+ id: string;
73994
+ address: string | null;
73995
+ name: string;
73996
+ email: string;
73997
+ createdAt: Date;
73998
+ updatedAt: Date;
73999
+ deletedAt: Date | null;
74000
+ emailVerifiedAt: Date | null;
74001
+ password: string;
74002
+ phone: string | null;
74003
+ notificationCount: number | null;
74004
+ roles: {
74005
+ id: string;
74006
+ description: string | null;
74007
+ createdAt: Date;
74008
+ updatedAt: Date;
74009
+ deletedAt: Date | null;
74010
+ systemName: string;
74011
+ displayName: string;
74012
+ permissions: {
74013
+ id: string;
74014
+ description: string | null;
74015
+ createdAt: Date;
74016
+ updatedAt: Date;
74017
+ deletedAt: Date | null;
74018
+ systemName: string;
74019
+ displayName: string;
74020
+ }[];
74021
+ }[];
74022
+ extension: {
74023
+ id: string;
74024
+ createdAt: Date;
74025
+ updatedAt: Date;
74026
+ deletedAt: Date | null;
74027
+ userId: string | null;
74028
+ sipServerUrl: string;
74029
+ sipUserName: string;
74030
+ webphoneLoginUser: string;
74031
+ extensionId: string | null;
74032
+ extensionName: string;
74033
+ telephonySignature: string | null;
74034
+ };
74035
+ };
74036
+ brandName: string;
74037
+ platformId: string;
74038
+ isReloginRequired: boolean;
74039
+ connectedUserName: string;
74040
+ connectedUserId: string;
74041
+ botpressBot: {
74042
+ id: string;
74043
+ name: string;
74044
+ accessToken: string;
74045
+ botId: string;
74046
+ integrationId: string;
74047
+ } | null;
74048
+ };
74049
+ createdAt: Date;
74050
+ updatedAt: Date;
74051
+ deletedAt: Date | null;
74052
+ actor: {
74053
+ id: string;
74054
+ address: string | null;
74055
+ name: string;
74056
+ email: string;
74057
+ createdAt: Date;
74058
+ updatedAt: Date;
74059
+ deletedAt: Date | null;
74060
+ emailVerifiedAt: Date | null;
74061
+ password: string;
74062
+ phone: string | null;
74063
+ notificationCount: number | null;
74064
+ roles: {
74065
+ id: string;
74066
+ description: string | null;
74067
+ createdAt: Date;
74068
+ updatedAt: Date;
74069
+ deletedAt: Date | null;
74070
+ systemName: string;
74071
+ displayName: string;
74072
+ permissions: {
74073
+ id: string;
74074
+ description: string | null;
74075
+ createdAt: Date;
74076
+ updatedAt: Date;
74077
+ deletedAt: Date | null;
74078
+ systemName: string;
74079
+ displayName: string;
74080
+ }[];
74081
+ }[];
74082
+ extension: {
74083
+ id: string;
74084
+ createdAt: Date;
74085
+ updatedAt: Date;
74086
+ deletedAt: Date | null;
74087
+ userId: string | null;
74088
+ sipServerUrl: string;
74089
+ sipUserName: string;
74090
+ webphoneLoginUser: string;
74091
+ extensionId: string | null;
74092
+ extensionName: string;
74093
+ telephonySignature: string | null;
74094
+ };
74095
+ };
74096
+ socialPlatformId: string;
74097
+ platformContact: {
74098
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
71891
74099
  id: string;
71892
- description: string | null;
74100
+ metadata: {
74101
+ id: string;
74102
+ name: string;
74103
+ picture?: string | undefined;
74104
+ additionalCredentials?: any;
74105
+ };
71893
74106
  createdAt: Date;
71894
74107
  updatedAt: Date;
71895
74108
  deletedAt: Date | null;
71896
- systemName: string;
71897
- displayName: string;
71898
- permissions: {
74109
+ contact: {
71899
74110
  id: string;
71900
- description: string | null;
74111
+ channel: string | null;
74112
+ address: string | null;
74113
+ name: string;
71901
74114
  createdAt: Date;
71902
74115
  updatedAt: Date;
71903
74116
  deletedAt: Date | null;
71904
- systemName: string;
71905
- displayName: string;
71906
- }[];
71907
- }[];
71908
- extension: {
71909
- id: string;
71910
- createdAt: Date;
71911
- updatedAt: Date;
71912
- deletedAt: Date | null;
71913
- userId: string | null;
71914
- sipServerUrl: string;
71915
- sipUserName: string;
71916
- webphoneLoginUser: string;
71917
- extensionId: string | null;
71918
- extensionName: string;
71919
- telephonySignature: string | null;
74117
+ customFields: {
74118
+ id: string;
74119
+ createdAt: Date;
74120
+ updatedAt: Date;
74121
+ deletedAt: Date | null;
74122
+ attribute: {
74123
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
74124
+ id: string;
74125
+ position: number;
74126
+ createdAt: Date;
74127
+ updatedAt: Date;
74128
+ deletedAt: Date | null;
74129
+ systemName: string;
74130
+ displayName: string;
74131
+ isDefault: boolean;
74132
+ isArchived: boolean;
74133
+ isRequired: boolean;
74134
+ isUnique: boolean;
74135
+ };
74136
+ textValue: string | null;
74137
+ booleanValue: boolean | null;
74138
+ numberValue: number | null;
74139
+ dateValue: Date | null;
74140
+ uploads: {
74141
+ id: string;
74142
+ status: string | null;
74143
+ createdAt: Date;
74144
+ updatedAt: Date;
74145
+ deletedAt: Date | null;
74146
+ fileName: string;
74147
+ fileKey: string;
74148
+ bucketName: string;
74149
+ fileSize: number;
74150
+ fileUrl: string | null;
74151
+ }[];
74152
+ }[];
74153
+ company: {
74154
+ id: string;
74155
+ createdAt: Date;
74156
+ updatedAt: Date;
74157
+ deletedAt: Date | null;
74158
+ address?: string | null | undefined;
74159
+ name?: string | undefined;
74160
+ phone?: string | null | undefined;
74161
+ industry?: string | null | undefined;
74162
+ } | null;
74163
+ notes: string | null;
74164
+ contactProfile: string | null;
74165
+ socialProfileUrl: string | null;
74166
+ tags: {
74167
+ id: string;
74168
+ name: string;
74169
+ createdAt: Date;
74170
+ updatedAt: Date;
74171
+ deletedAt: Date | null;
74172
+ }[];
74173
+ contactEmails: {
74174
+ id: string;
74175
+ isPrimary: boolean;
74176
+ email: string;
74177
+ createdAt: Date;
74178
+ updatedAt: Date;
74179
+ deletedAt: Date | null;
74180
+ }[];
74181
+ contactPhones: {
74182
+ id: string;
74183
+ isPrimary: boolean;
74184
+ createdAt: Date;
74185
+ updatedAt: Date;
74186
+ deletedAt: Date | null;
74187
+ phone: string;
74188
+ }[];
74189
+ activityLogs?: {
74190
+ id: string;
74191
+ description: string;
74192
+ createdAt: Date;
74193
+ updatedAt: Date;
74194
+ deletedAt: Date | null;
74195
+ entityId: string;
74196
+ entityType: {
74197
+ id: string;
74198
+ description: string | null;
74199
+ createdAt: Date;
74200
+ updatedAt: Date;
74201
+ deletedAt: Date | null;
74202
+ entity: string;
74203
+ };
74204
+ }[] | undefined;
74205
+ };
74206
+ channelId: string;
74207
+ socialPlatformId: string;
71920
74208
  };
71921
- };
71922
- metadata?: any;
74209
+ platformId: string;
74210
+ platformMessageId: string;
74211
+ postCreatedAt: Date;
74212
+ postUpdatedAt: Date;
74213
+ imageURL: string;
74214
+ permalinkURL: string;
74215
+ metadata?: any;
74216
+ } | null;
74217
+ replyReaction: string | null;
71923
74218
  template?: any;
74219
+ metadata?: any;
71924
74220
  }, {
71925
74221
  type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
71926
74222
  message: string;
@@ -72574,55 +74870,303 @@ export declare const mainChatContract: {
72574
74870
  telephonySignature: string | null;
72575
74871
  };
72576
74872
  };
72577
- metadata?: any;
72578
- template?: any;
72579
- };
72580
- sender: {
72581
- id: string;
72582
- address: string | null;
72583
- name: string;
72584
- email: string;
72585
- createdAt: Date;
72586
- updatedAt: Date;
72587
- deletedAt: Date | null;
72588
- emailVerifiedAt: Date | null;
72589
- password: string;
72590
- phone: string | null;
72591
- notificationCount: number | null;
72592
- roles: {
74873
+ metadata?: any;
74874
+ template?: any;
74875
+ };
74876
+ sender: {
74877
+ id: string;
74878
+ address: string | null;
74879
+ name: string;
74880
+ email: string;
74881
+ createdAt: Date;
74882
+ updatedAt: Date;
74883
+ deletedAt: Date | null;
74884
+ emailVerifiedAt: Date | null;
74885
+ password: string;
74886
+ phone: string | null;
74887
+ notificationCount: number | null;
74888
+ roles: {
74889
+ id: string;
74890
+ description: string | null;
74891
+ createdAt: Date;
74892
+ updatedAt: Date;
74893
+ deletedAt: Date | null;
74894
+ systemName: string;
74895
+ displayName: string;
74896
+ permissions: {
74897
+ id: string;
74898
+ description: string | null;
74899
+ createdAt: Date;
74900
+ updatedAt: Date;
74901
+ deletedAt: Date | null;
74902
+ systemName: string;
74903
+ displayName: string;
74904
+ }[];
74905
+ }[];
74906
+ extension: {
74907
+ id: string;
74908
+ createdAt: Date;
74909
+ updatedAt: Date;
74910
+ deletedAt: Date | null;
74911
+ userId: string | null;
74912
+ sipServerUrl: string;
74913
+ sipUserName: string;
74914
+ webphoneLoginUser: string;
74915
+ extensionId: string | null;
74916
+ extensionName: string;
74917
+ telephonySignature: string | null;
74918
+ };
74919
+ };
74920
+ parentMessageId: string | null;
74921
+ feedPostId: string | null;
74922
+ feedPost: {
74923
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "added_photos" | "shared_story" | "mobile_status_update" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
74924
+ message: string | null;
74925
+ id: string;
74926
+ channel: {
74927
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
74928
+ id: string;
74929
+ name: string;
74930
+ metadata: {
74931
+ id: string;
74932
+ name: string;
74933
+ accessToken?: string | undefined;
74934
+ channelSecret?: string | undefined;
74935
+ additionalCredentials?: any;
74936
+ lineRichMenuId?: string | null | undefined;
74937
+ };
74938
+ status: boolean;
74939
+ createdAt: Date;
74940
+ updatedAt: Date;
74941
+ deletedAt: Date | null;
74942
+ actor: {
74943
+ id: string;
74944
+ address: string | null;
74945
+ name: string;
74946
+ email: string;
74947
+ createdAt: Date;
74948
+ updatedAt: Date;
74949
+ deletedAt: Date | null;
74950
+ emailVerifiedAt: Date | null;
74951
+ password: string;
74952
+ phone: string | null;
74953
+ notificationCount: number | null;
74954
+ roles: {
74955
+ id: string;
74956
+ description: string | null;
74957
+ createdAt: Date;
74958
+ updatedAt: Date;
74959
+ deletedAt: Date | null;
74960
+ systemName: string;
74961
+ displayName: string;
74962
+ permissions: {
74963
+ id: string;
74964
+ description: string | null;
74965
+ createdAt: Date;
74966
+ updatedAt: Date;
74967
+ deletedAt: Date | null;
74968
+ systemName: string;
74969
+ displayName: string;
74970
+ }[];
74971
+ }[];
74972
+ extension: {
74973
+ id: string;
74974
+ createdAt: Date;
74975
+ updatedAt: Date;
74976
+ deletedAt: Date | null;
74977
+ userId: string | null;
74978
+ sipServerUrl: string;
74979
+ sipUserName: string;
74980
+ webphoneLoginUser: string;
74981
+ extensionId: string | null;
74982
+ extensionName: string;
74983
+ telephonySignature: string | null;
74984
+ };
74985
+ };
74986
+ brandName: string;
74987
+ platformId: string;
74988
+ isReloginRequired: boolean;
74989
+ connectedUserName: string;
74990
+ connectedUserId: string;
74991
+ botpressBot: {
74992
+ id: string;
74993
+ name: string;
74994
+ accessToken: string;
74995
+ botId: string;
74996
+ integrationId: string;
74997
+ } | null;
74998
+ };
74999
+ createdAt: Date;
75000
+ updatedAt: Date;
75001
+ deletedAt: Date | null;
75002
+ actor: {
75003
+ id: string;
75004
+ address: string | null;
75005
+ name: string;
75006
+ email: string;
75007
+ createdAt: Date;
75008
+ updatedAt: Date;
75009
+ deletedAt: Date | null;
75010
+ emailVerifiedAt: Date | null;
75011
+ password: string;
75012
+ phone: string | null;
75013
+ notificationCount: number | null;
75014
+ roles: {
75015
+ id: string;
75016
+ description: string | null;
75017
+ createdAt: Date;
75018
+ updatedAt: Date;
75019
+ deletedAt: Date | null;
75020
+ systemName: string;
75021
+ displayName: string;
75022
+ permissions: {
75023
+ id: string;
75024
+ description: string | null;
75025
+ createdAt: Date;
75026
+ updatedAt: Date;
75027
+ deletedAt: Date | null;
75028
+ systemName: string;
75029
+ displayName: string;
75030
+ }[];
75031
+ }[];
75032
+ extension: {
75033
+ id: string;
75034
+ createdAt: Date;
75035
+ updatedAt: Date;
75036
+ deletedAt: Date | null;
75037
+ userId: string | null;
75038
+ sipServerUrl: string;
75039
+ sipUserName: string;
75040
+ webphoneLoginUser: string;
75041
+ extensionId: string | null;
75042
+ extensionName: string;
75043
+ telephonySignature: string | null;
75044
+ };
75045
+ };
75046
+ socialPlatformId: string;
75047
+ platformContact: {
75048
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
72593
75049
  id: string;
72594
- description: string | null;
75050
+ metadata: {
75051
+ id: string;
75052
+ name: string;
75053
+ picture?: string | undefined;
75054
+ additionalCredentials?: any;
75055
+ };
72595
75056
  createdAt: Date;
72596
75057
  updatedAt: Date;
72597
75058
  deletedAt: Date | null;
72598
- systemName: string;
72599
- displayName: string;
72600
- permissions: {
75059
+ contact: {
72601
75060
  id: string;
72602
- description: string | null;
75061
+ channel: string | null;
75062
+ address: string | null;
75063
+ name: string;
72603
75064
  createdAt: Date;
72604
75065
  updatedAt: Date;
72605
75066
  deletedAt: Date | null;
72606
- systemName: string;
72607
- displayName: string;
72608
- }[];
72609
- }[];
72610
- extension: {
72611
- id: string;
72612
- createdAt: Date;
72613
- updatedAt: Date;
72614
- deletedAt: Date | null;
72615
- userId: string | null;
72616
- sipServerUrl: string;
72617
- sipUserName: string;
72618
- webphoneLoginUser: string;
72619
- extensionId: string | null;
72620
- extensionName: string;
72621
- telephonySignature: string | null;
75067
+ customFields: {
75068
+ id: string;
75069
+ createdAt: Date;
75070
+ updatedAt: Date;
75071
+ deletedAt: Date | null;
75072
+ attribute: {
75073
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
75074
+ id: string;
75075
+ position: number;
75076
+ createdAt: Date;
75077
+ updatedAt: Date;
75078
+ deletedAt: Date | null;
75079
+ systemName: string;
75080
+ displayName: string;
75081
+ isDefault: boolean;
75082
+ isArchived: boolean;
75083
+ isRequired: boolean;
75084
+ isUnique: boolean;
75085
+ };
75086
+ textValue: string | null;
75087
+ booleanValue: boolean | null;
75088
+ numberValue: number | null;
75089
+ dateValue: Date | null;
75090
+ uploads: {
75091
+ id: string;
75092
+ status: string | null;
75093
+ createdAt: Date;
75094
+ updatedAt: Date;
75095
+ deletedAt: Date | null;
75096
+ fileName: string;
75097
+ fileKey: string;
75098
+ bucketName: string;
75099
+ fileSize: number;
75100
+ fileUrl: string | null;
75101
+ }[];
75102
+ }[];
75103
+ company: {
75104
+ id: string;
75105
+ createdAt: Date;
75106
+ updatedAt: Date;
75107
+ deletedAt: Date | null;
75108
+ address?: string | null | undefined;
75109
+ name?: string | undefined;
75110
+ phone?: string | null | undefined;
75111
+ industry?: string | null | undefined;
75112
+ } | null;
75113
+ notes: string | null;
75114
+ contactProfile: string | null;
75115
+ socialProfileUrl: string | null;
75116
+ tags: {
75117
+ id: string;
75118
+ name: string;
75119
+ createdAt: Date;
75120
+ updatedAt: Date;
75121
+ deletedAt: Date | null;
75122
+ }[];
75123
+ contactEmails: {
75124
+ id: string;
75125
+ isPrimary: boolean;
75126
+ email: string;
75127
+ createdAt: Date;
75128
+ updatedAt: Date;
75129
+ deletedAt: Date | null;
75130
+ }[];
75131
+ contactPhones: {
75132
+ id: string;
75133
+ isPrimary: boolean;
75134
+ createdAt: Date;
75135
+ updatedAt: Date;
75136
+ deletedAt: Date | null;
75137
+ phone: string;
75138
+ }[];
75139
+ activityLogs?: {
75140
+ id: string;
75141
+ description: string;
75142
+ createdAt: Date;
75143
+ updatedAt: Date;
75144
+ deletedAt: Date | null;
75145
+ entityId: string;
75146
+ entityType: {
75147
+ id: string;
75148
+ description: string | null;
75149
+ createdAt: Date;
75150
+ updatedAt: Date;
75151
+ deletedAt: Date | null;
75152
+ entity: string;
75153
+ };
75154
+ }[] | undefined;
75155
+ };
75156
+ channelId: string;
75157
+ socialPlatformId: string;
72622
75158
  };
72623
- };
72624
- metadata?: any;
75159
+ platformId: string;
75160
+ platformMessageId: string;
75161
+ postCreatedAt: Date;
75162
+ postUpdatedAt: Date;
75163
+ imageURL: string;
75164
+ permalinkURL: string;
75165
+ metadata?: any;
75166
+ } | null;
75167
+ replyReaction: string | null;
72625
75168
  template?: any;
75169
+ metadata?: any;
72626
75170
  }>, "many">;
72627
75171
  }, "strip", z.ZodTypeAny, {
72628
75172
  data: {
@@ -73278,55 +75822,303 @@ export declare const mainChatContract: {
73278
75822
  telephonySignature: string | null;
73279
75823
  };
73280
75824
  };
73281
- metadata?: any;
73282
- template?: any;
73283
- };
73284
- sender: {
73285
- id: string;
73286
- address: string | null;
73287
- name: string;
73288
- email: string;
73289
- createdAt: Date;
73290
- updatedAt: Date;
73291
- deletedAt: Date | null;
73292
- emailVerifiedAt: Date | null;
73293
- password: string;
73294
- phone: string | null;
73295
- notificationCount: number | null;
73296
- roles: {
75825
+ metadata?: any;
75826
+ template?: any;
75827
+ };
75828
+ sender: {
75829
+ id: string;
75830
+ address: string | null;
75831
+ name: string;
75832
+ email: string;
75833
+ createdAt: Date;
75834
+ updatedAt: Date;
75835
+ deletedAt: Date | null;
75836
+ emailVerifiedAt: Date | null;
75837
+ password: string;
75838
+ phone: string | null;
75839
+ notificationCount: number | null;
75840
+ roles: {
75841
+ id: string;
75842
+ description: string | null;
75843
+ createdAt: Date;
75844
+ updatedAt: Date;
75845
+ deletedAt: Date | null;
75846
+ systemName: string;
75847
+ displayName: string;
75848
+ permissions: {
75849
+ id: string;
75850
+ description: string | null;
75851
+ createdAt: Date;
75852
+ updatedAt: Date;
75853
+ deletedAt: Date | null;
75854
+ systemName: string;
75855
+ displayName: string;
75856
+ }[];
75857
+ }[];
75858
+ extension: {
75859
+ id: string;
75860
+ createdAt: Date;
75861
+ updatedAt: Date;
75862
+ deletedAt: Date | null;
75863
+ userId: string | null;
75864
+ sipServerUrl: string;
75865
+ sipUserName: string;
75866
+ webphoneLoginUser: string;
75867
+ extensionId: string | null;
75868
+ extensionName: string;
75869
+ telephonySignature: string | null;
75870
+ };
75871
+ };
75872
+ parentMessageId: string | null;
75873
+ feedPostId: string | null;
75874
+ feedPost: {
75875
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "added_photos" | "shared_story" | "mobile_status_update" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
75876
+ message: string | null;
75877
+ id: string;
75878
+ channel: {
75879
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
75880
+ id: string;
75881
+ name: string;
75882
+ metadata: {
75883
+ id: string;
75884
+ name: string;
75885
+ accessToken?: string | undefined;
75886
+ channelSecret?: string | undefined;
75887
+ additionalCredentials?: any;
75888
+ lineRichMenuId?: string | null | undefined;
75889
+ };
75890
+ status: boolean;
75891
+ createdAt: Date;
75892
+ updatedAt: Date;
75893
+ deletedAt: Date | null;
75894
+ actor: {
75895
+ id: string;
75896
+ address: string | null;
75897
+ name: string;
75898
+ email: string;
75899
+ createdAt: Date;
75900
+ updatedAt: Date;
75901
+ deletedAt: Date | null;
75902
+ emailVerifiedAt: Date | null;
75903
+ password: string;
75904
+ phone: string | null;
75905
+ notificationCount: number | null;
75906
+ roles: {
75907
+ id: string;
75908
+ description: string | null;
75909
+ createdAt: Date;
75910
+ updatedAt: Date;
75911
+ deletedAt: Date | null;
75912
+ systemName: string;
75913
+ displayName: string;
75914
+ permissions: {
75915
+ id: string;
75916
+ description: string | null;
75917
+ createdAt: Date;
75918
+ updatedAt: Date;
75919
+ deletedAt: Date | null;
75920
+ systemName: string;
75921
+ displayName: string;
75922
+ }[];
75923
+ }[];
75924
+ extension: {
75925
+ id: string;
75926
+ createdAt: Date;
75927
+ updatedAt: Date;
75928
+ deletedAt: Date | null;
75929
+ userId: string | null;
75930
+ sipServerUrl: string;
75931
+ sipUserName: string;
75932
+ webphoneLoginUser: string;
75933
+ extensionId: string | null;
75934
+ extensionName: string;
75935
+ telephonySignature: string | null;
75936
+ };
75937
+ };
75938
+ brandName: string;
75939
+ platformId: string;
75940
+ isReloginRequired: boolean;
75941
+ connectedUserName: string;
75942
+ connectedUserId: string;
75943
+ botpressBot: {
75944
+ id: string;
75945
+ name: string;
75946
+ accessToken: string;
75947
+ botId: string;
75948
+ integrationId: string;
75949
+ } | null;
75950
+ };
75951
+ createdAt: Date;
75952
+ updatedAt: Date;
75953
+ deletedAt: Date | null;
75954
+ actor: {
75955
+ id: string;
75956
+ address: string | null;
75957
+ name: string;
75958
+ email: string;
75959
+ createdAt: Date;
75960
+ updatedAt: Date;
75961
+ deletedAt: Date | null;
75962
+ emailVerifiedAt: Date | null;
75963
+ password: string;
75964
+ phone: string | null;
75965
+ notificationCount: number | null;
75966
+ roles: {
75967
+ id: string;
75968
+ description: string | null;
75969
+ createdAt: Date;
75970
+ updatedAt: Date;
75971
+ deletedAt: Date | null;
75972
+ systemName: string;
75973
+ displayName: string;
75974
+ permissions: {
75975
+ id: string;
75976
+ description: string | null;
75977
+ createdAt: Date;
75978
+ updatedAt: Date;
75979
+ deletedAt: Date | null;
75980
+ systemName: string;
75981
+ displayName: string;
75982
+ }[];
75983
+ }[];
75984
+ extension: {
75985
+ id: string;
75986
+ createdAt: Date;
75987
+ updatedAt: Date;
75988
+ deletedAt: Date | null;
75989
+ userId: string | null;
75990
+ sipServerUrl: string;
75991
+ sipUserName: string;
75992
+ webphoneLoginUser: string;
75993
+ extensionId: string | null;
75994
+ extensionName: string;
75995
+ telephonySignature: string | null;
75996
+ };
75997
+ };
75998
+ socialPlatformId: string;
75999
+ platformContact: {
76000
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
73297
76001
  id: string;
73298
- description: string | null;
76002
+ metadata: {
76003
+ id: string;
76004
+ name: string;
76005
+ picture?: string | undefined;
76006
+ additionalCredentials?: any;
76007
+ };
73299
76008
  createdAt: Date;
73300
76009
  updatedAt: Date;
73301
76010
  deletedAt: Date | null;
73302
- systemName: string;
73303
- displayName: string;
73304
- permissions: {
76011
+ contact: {
73305
76012
  id: string;
73306
- description: string | null;
76013
+ channel: string | null;
76014
+ address: string | null;
76015
+ name: string;
73307
76016
  createdAt: Date;
73308
76017
  updatedAt: Date;
73309
76018
  deletedAt: Date | null;
73310
- systemName: string;
73311
- displayName: string;
73312
- }[];
73313
- }[];
73314
- extension: {
73315
- id: string;
73316
- createdAt: Date;
73317
- updatedAt: Date;
73318
- deletedAt: Date | null;
73319
- userId: string | null;
73320
- sipServerUrl: string;
73321
- sipUserName: string;
73322
- webphoneLoginUser: string;
73323
- extensionId: string | null;
73324
- extensionName: string;
73325
- telephonySignature: string | null;
76019
+ customFields: {
76020
+ id: string;
76021
+ createdAt: Date;
76022
+ updatedAt: Date;
76023
+ deletedAt: Date | null;
76024
+ attribute: {
76025
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
76026
+ id: string;
76027
+ position: number;
76028
+ createdAt: Date;
76029
+ updatedAt: Date;
76030
+ deletedAt: Date | null;
76031
+ systemName: string;
76032
+ displayName: string;
76033
+ isDefault: boolean;
76034
+ isArchived: boolean;
76035
+ isRequired: boolean;
76036
+ isUnique: boolean;
76037
+ };
76038
+ textValue: string | null;
76039
+ booleanValue: boolean | null;
76040
+ numberValue: number | null;
76041
+ dateValue: Date | null;
76042
+ uploads: {
76043
+ id: string;
76044
+ status: string | null;
76045
+ createdAt: Date;
76046
+ updatedAt: Date;
76047
+ deletedAt: Date | null;
76048
+ fileName: string;
76049
+ fileKey: string;
76050
+ bucketName: string;
76051
+ fileSize: number;
76052
+ fileUrl: string | null;
76053
+ }[];
76054
+ }[];
76055
+ company: {
76056
+ id: string;
76057
+ createdAt: Date;
76058
+ updatedAt: Date;
76059
+ deletedAt: Date | null;
76060
+ address?: string | null | undefined;
76061
+ name?: string | undefined;
76062
+ phone?: string | null | undefined;
76063
+ industry?: string | null | undefined;
76064
+ } | null;
76065
+ notes: string | null;
76066
+ contactProfile: string | null;
76067
+ socialProfileUrl: string | null;
76068
+ tags: {
76069
+ id: string;
76070
+ name: string;
76071
+ createdAt: Date;
76072
+ updatedAt: Date;
76073
+ deletedAt: Date | null;
76074
+ }[];
76075
+ contactEmails: {
76076
+ id: string;
76077
+ isPrimary: boolean;
76078
+ email: string;
76079
+ createdAt: Date;
76080
+ updatedAt: Date;
76081
+ deletedAt: Date | null;
76082
+ }[];
76083
+ contactPhones: {
76084
+ id: string;
76085
+ isPrimary: boolean;
76086
+ createdAt: Date;
76087
+ updatedAt: Date;
76088
+ deletedAt: Date | null;
76089
+ phone: string;
76090
+ }[];
76091
+ activityLogs?: {
76092
+ id: string;
76093
+ description: string;
76094
+ createdAt: Date;
76095
+ updatedAt: Date;
76096
+ deletedAt: Date | null;
76097
+ entityId: string;
76098
+ entityType: {
76099
+ id: string;
76100
+ description: string | null;
76101
+ createdAt: Date;
76102
+ updatedAt: Date;
76103
+ deletedAt: Date | null;
76104
+ entity: string;
76105
+ };
76106
+ }[] | undefined;
76107
+ };
76108
+ channelId: string;
76109
+ socialPlatformId: string;
73326
76110
  };
73327
- };
73328
- metadata?: any;
76111
+ platformId: string;
76112
+ platformMessageId: string;
76113
+ postCreatedAt: Date;
76114
+ postUpdatedAt: Date;
76115
+ imageURL: string;
76116
+ permalinkURL: string;
76117
+ metadata?: any;
76118
+ } | null;
76119
+ replyReaction: string | null;
73329
76120
  template?: any;
76121
+ metadata?: any;
73330
76122
  }[];
73331
76123
  total: number;
73332
76124
  page: number;
@@ -74033,8 +76825,256 @@ export declare const mainChatContract: {
74033
76825
  telephonySignature: string | null;
74034
76826
  };
74035
76827
  };
74036
- metadata?: any;
76828
+ parentMessageId: string | null;
76829
+ feedPostId: string | null;
76830
+ feedPost: {
76831
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "added_photos" | "shared_story" | "mobile_status_update" | "imagemap" | "sticker" | "text_with_image" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
76832
+ message: string | null;
76833
+ id: string;
76834
+ channel: {
76835
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
76836
+ id: string;
76837
+ name: string;
76838
+ metadata: {
76839
+ id: string;
76840
+ name: string;
76841
+ accessToken?: string | undefined;
76842
+ channelSecret?: string | undefined;
76843
+ additionalCredentials?: any;
76844
+ lineRichMenuId?: string | null | undefined;
76845
+ };
76846
+ status: boolean;
76847
+ createdAt: Date;
76848
+ updatedAt: Date;
76849
+ deletedAt: Date | null;
76850
+ actor: {
76851
+ id: string;
76852
+ address: string | null;
76853
+ name: string;
76854
+ email: string;
76855
+ createdAt: Date;
76856
+ updatedAt: Date;
76857
+ deletedAt: Date | null;
76858
+ emailVerifiedAt: Date | null;
76859
+ password: string;
76860
+ phone: string | null;
76861
+ notificationCount: number | null;
76862
+ roles: {
76863
+ id: string;
76864
+ description: string | null;
76865
+ createdAt: Date;
76866
+ updatedAt: Date;
76867
+ deletedAt: Date | null;
76868
+ systemName: string;
76869
+ displayName: string;
76870
+ permissions: {
76871
+ id: string;
76872
+ description: string | null;
76873
+ createdAt: Date;
76874
+ updatedAt: Date;
76875
+ deletedAt: Date | null;
76876
+ systemName: string;
76877
+ displayName: string;
76878
+ }[];
76879
+ }[];
76880
+ extension: {
76881
+ id: string;
76882
+ createdAt: Date;
76883
+ updatedAt: Date;
76884
+ deletedAt: Date | null;
76885
+ userId: string | null;
76886
+ sipServerUrl: string;
76887
+ sipUserName: string;
76888
+ webphoneLoginUser: string;
76889
+ extensionId: string | null;
76890
+ extensionName: string;
76891
+ telephonySignature: string | null;
76892
+ };
76893
+ };
76894
+ brandName: string;
76895
+ platformId: string;
76896
+ isReloginRequired: boolean;
76897
+ connectedUserName: string;
76898
+ connectedUserId: string;
76899
+ botpressBot: {
76900
+ id: string;
76901
+ name: string;
76902
+ accessToken: string;
76903
+ botId: string;
76904
+ integrationId: string;
76905
+ } | null;
76906
+ };
76907
+ createdAt: Date;
76908
+ updatedAt: Date;
76909
+ deletedAt: Date | null;
76910
+ actor: {
76911
+ id: string;
76912
+ address: string | null;
76913
+ name: string;
76914
+ email: string;
76915
+ createdAt: Date;
76916
+ updatedAt: Date;
76917
+ deletedAt: Date | null;
76918
+ emailVerifiedAt: Date | null;
76919
+ password: string;
76920
+ phone: string | null;
76921
+ notificationCount: number | null;
76922
+ roles: {
76923
+ id: string;
76924
+ description: string | null;
76925
+ createdAt: Date;
76926
+ updatedAt: Date;
76927
+ deletedAt: Date | null;
76928
+ systemName: string;
76929
+ displayName: string;
76930
+ permissions: {
76931
+ id: string;
76932
+ description: string | null;
76933
+ createdAt: Date;
76934
+ updatedAt: Date;
76935
+ deletedAt: Date | null;
76936
+ systemName: string;
76937
+ displayName: string;
76938
+ }[];
76939
+ }[];
76940
+ extension: {
76941
+ id: string;
76942
+ createdAt: Date;
76943
+ updatedAt: Date;
76944
+ deletedAt: Date | null;
76945
+ userId: string | null;
76946
+ sipServerUrl: string;
76947
+ sipUserName: string;
76948
+ webphoneLoginUser: string;
76949
+ extensionId: string | null;
76950
+ extensionName: string;
76951
+ telephonySignature: string | null;
76952
+ };
76953
+ };
76954
+ socialPlatformId: string;
76955
+ platformContact: {
76956
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed";
76957
+ id: string;
76958
+ metadata: {
76959
+ id: string;
76960
+ name: string;
76961
+ picture?: string | undefined;
76962
+ additionalCredentials?: any;
76963
+ };
76964
+ createdAt: Date;
76965
+ updatedAt: Date;
76966
+ deletedAt: Date | null;
76967
+ contact: {
76968
+ id: string;
76969
+ channel: string | null;
76970
+ address: string | null;
76971
+ name: string;
76972
+ createdAt: Date;
76973
+ updatedAt: Date;
76974
+ deletedAt: Date | null;
76975
+ customFields: {
76976
+ id: string;
76977
+ createdAt: Date;
76978
+ updatedAt: Date;
76979
+ deletedAt: Date | null;
76980
+ attribute: {
76981
+ type: "link" | "attachment" | "select" | "textarea" | "text" | "date";
76982
+ id: string;
76983
+ position: number;
76984
+ createdAt: Date;
76985
+ updatedAt: Date;
76986
+ deletedAt: Date | null;
76987
+ systemName: string;
76988
+ displayName: string;
76989
+ isDefault: boolean;
76990
+ isArchived: boolean;
76991
+ isRequired: boolean;
76992
+ isUnique: boolean;
76993
+ };
76994
+ textValue: string | null;
76995
+ booleanValue: boolean | null;
76996
+ numberValue: number | null;
76997
+ dateValue: Date | null;
76998
+ uploads: {
76999
+ id: string;
77000
+ status: string | null;
77001
+ createdAt: Date;
77002
+ updatedAt: Date;
77003
+ deletedAt: Date | null;
77004
+ fileName: string;
77005
+ fileKey: string;
77006
+ bucketName: string;
77007
+ fileSize: number;
77008
+ fileUrl: string | null;
77009
+ }[];
77010
+ }[];
77011
+ company: {
77012
+ id: string;
77013
+ createdAt: Date;
77014
+ updatedAt: Date;
77015
+ deletedAt: Date | null;
77016
+ address?: string | null | undefined;
77017
+ name?: string | undefined;
77018
+ phone?: string | null | undefined;
77019
+ industry?: string | null | undefined;
77020
+ } | null;
77021
+ notes: string | null;
77022
+ contactProfile: string | null;
77023
+ socialProfileUrl: string | null;
77024
+ tags: {
77025
+ id: string;
77026
+ name: string;
77027
+ createdAt: Date;
77028
+ updatedAt: Date;
77029
+ deletedAt: Date | null;
77030
+ }[];
77031
+ contactEmails: {
77032
+ id: string;
77033
+ isPrimary: boolean;
77034
+ email: string;
77035
+ createdAt: Date;
77036
+ updatedAt: Date;
77037
+ deletedAt: Date | null;
77038
+ }[];
77039
+ contactPhones: {
77040
+ id: string;
77041
+ isPrimary: boolean;
77042
+ createdAt: Date;
77043
+ updatedAt: Date;
77044
+ deletedAt: Date | null;
77045
+ phone: string;
77046
+ }[];
77047
+ activityLogs?: {
77048
+ id: string;
77049
+ description: string;
77050
+ createdAt: Date;
77051
+ updatedAt: Date;
77052
+ deletedAt: Date | null;
77053
+ entityId: string;
77054
+ entityType: {
77055
+ id: string;
77056
+ description: string | null;
77057
+ createdAt: Date;
77058
+ updatedAt: Date;
77059
+ deletedAt: Date | null;
77060
+ entity: string;
77061
+ };
77062
+ }[] | undefined;
77063
+ };
77064
+ channelId: string;
77065
+ socialPlatformId: string;
77066
+ };
77067
+ platformId: string;
77068
+ platformMessageId: string;
77069
+ postCreatedAt: Date;
77070
+ postUpdatedAt: Date;
77071
+ imageURL: string;
77072
+ permalinkURL: string;
77073
+ metadata?: any;
77074
+ } | null;
77075
+ replyReaction: string | null;
74037
77076
  template?: any;
77077
+ metadata?: any;
74038
77078
  }[];
74039
77079
  total: number;
74040
77080
  page: number;
@@ -82710,13 +85750,13 @@ export declare const mainChatMessageContract: {
82710
85750
  platformMessageId: z.ZodOptional<z.ZodString>;
82711
85751
  id: z.ZodOptional<z.ZodString>;
82712
85752
  params: z.ZodOptional<z.ZodObject<{
82713
- actionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["create", "edit", "like", "private_reply"]>>>;
85753
+ actionType: z.ZodOptional<z.ZodDefault<z.ZodEnum<["create", "edit", "like", "unlike", "private_reply"]>>>;
82714
85754
  mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
82715
85755
  }, "strip", z.ZodTypeAny, {
82716
- actionType?: "create" | "edit" | "like" | "private_reply" | undefined;
85756
+ actionType?: "create" | "edit" | "like" | "unlike" | "private_reply" | undefined;
82717
85757
  mentions?: string[] | undefined;
82718
85758
  }, {
82719
- actionType?: "create" | "edit" | "like" | "private_reply" | undefined;
85759
+ actionType?: "create" | "edit" | "like" | "unlike" | "private_reply" | undefined;
82720
85760
  mentions?: string[] | undefined;
82721
85761
  }>>;
82722
85762
  }, "strip", z.ZodTypeAny, {
@@ -82788,7 +85828,7 @@ export declare const mainChatMessageContract: {
82788
85828
  platformMessageId?: string | undefined;
82789
85829
  id?: string | undefined;
82790
85830
  params?: {
82791
- actionType?: "create" | "edit" | "like" | "private_reply" | undefined;
85831
+ actionType?: "create" | "edit" | "like" | "unlike" | "private_reply" | undefined;
82792
85832
  mentions?: string[] | undefined;
82793
85833
  } | undefined;
82794
85834
  }, {
@@ -82860,7 +85900,7 @@ export declare const mainChatMessageContract: {
82860
85900
  platformMessageId?: string | undefined;
82861
85901
  id?: string | undefined;
82862
85902
  params?: {
82863
- actionType?: "create" | "edit" | "like" | "private_reply" | undefined;
85903
+ actionType?: "create" | "edit" | "like" | "unlike" | "private_reply" | undefined;
82864
85904
  mentions?: string[] | undefined;
82865
85905
  } | undefined;
82866
85906
  }>;