@kl1/contracts 1.2.59-uat → 1.2.60-uat

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/api-contracts/src/channel/index.d.ts +791 -0
  2. package/dist/api-contracts/src/channel/index.d.ts.map +1 -1
  3. package/dist/api-contracts/src/chat/index.d.ts +285 -169
  4. package/dist/api-contracts/src/chat/index.d.ts.map +1 -1
  5. package/dist/api-contracts/src/chat/schema.d.ts +70 -45
  6. package/dist/api-contracts/src/chat/schema.d.ts.map +1 -1
  7. package/dist/api-contracts/src/chat/validation.d.ts +72 -56
  8. package/dist/api-contracts/src/chat/validation.d.ts.map +1 -1
  9. package/dist/api-contracts/src/contract.d.ts +2366 -639
  10. package/dist/api-contracts/src/contract.d.ts.map +1 -1
  11. package/dist/api-contracts/src/facebook-feed/index.d.ts +59 -43
  12. package/dist/api-contracts/src/facebook-feed/index.d.ts.map +1 -1
  13. package/dist/api-contracts/src/facebook-feed/schema.d.ts +3 -3
  14. package/dist/api-contracts/src/instagram/index.d.ts +49 -33
  15. package/dist/api-contracts/src/instagram/index.d.ts.map +1 -1
  16. package/dist/api-contracts/src/line/index.d.ts +54 -38
  17. package/dist/api-contracts/src/line/index.d.ts.map +1 -1
  18. package/dist/api-contracts/src/line/validation.d.ts +5 -5
  19. package/dist/api-contracts/src/messenger/index.d.ts +49 -33
  20. package/dist/api-contracts/src/messenger/index.d.ts.map +1 -1
  21. package/dist/api-contracts/src/sms/index.d.ts +5 -5
  22. package/dist/api-contracts/src/telegram/index.d.ts +49 -33
  23. package/dist/api-contracts/src/telegram/index.d.ts.map +1 -1
  24. package/dist/api-contracts/src/viber/index.d.ts +49 -33
  25. package/dist/api-contracts/src/viber/index.d.ts.map +1 -1
  26. package/dist/api-contracts/src/webchat/index.d.ts +49 -33
  27. package/dist/api-contracts/src/webchat/index.d.ts.map +1 -1
  28. package/dist/api-contracts/src/whatsapp/index.d.ts +49 -33
  29. package/dist/api-contracts/src/whatsapp/index.d.ts.map +1 -1
  30. package/dist/api-contracts/src/workflow-rule/index.d.ts +29 -12
  31. package/dist/api-contracts/src/workflow-rule/index.d.ts.map +1 -1
  32. package/dist/entities/src/enums/chat.d.ts +12 -0
  33. package/dist/entities/src/enums/chat.d.ts.map +1 -1
  34. package/dist/index.js +19 -0
  35. package/dist/index.js.map +1 -1
  36. package/dist/index.mjs +19 -0
  37. package/dist/index.mjs.map +1 -1
  38. package/package.json +1 -1
@@ -4645,6 +4645,797 @@ export declare const channelContract: {
4645
4645
  'x-client-timezone'?: string | undefined;
4646
4646
  }>>>;
4647
4647
  };
4648
+ updateChannelCsatPreference: {
4649
+ body: z.ZodObject<{
4650
+ isCSATEnabled: z.ZodBoolean;
4651
+ }, "strip", z.ZodTypeAny, {
4652
+ isCSATEnabled: boolean;
4653
+ }, {
4654
+ isCSATEnabled: boolean;
4655
+ }>;
4656
+ summary: "Enable or Disable CSAT for channel";
4657
+ method: "POST";
4658
+ pathParams: z.ZodObject<{
4659
+ channelId: z.ZodString;
4660
+ }, "strip", z.ZodTypeAny, {
4661
+ channelId: string;
4662
+ }, {
4663
+ channelId: string;
4664
+ }>;
4665
+ responses: {
4666
+ 200: z.ZodObject<{
4667
+ requestId: z.ZodString;
4668
+ channel: z.ZodObject<{
4669
+ id: z.ZodString;
4670
+ createdAt: z.ZodDate;
4671
+ updatedAt: z.ZodDate;
4672
+ deletedAt: z.ZodNullable<z.ZodDate>;
4673
+ name: z.ZodString;
4674
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
4675
+ metadata: z.ZodObject<{
4676
+ id: z.ZodString;
4677
+ name: z.ZodString;
4678
+ accessToken: z.ZodOptional<z.ZodString>;
4679
+ channelSecret: z.ZodOptional<z.ZodString>;
4680
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
4681
+ senderId: z.ZodOptional<z.ZodString>;
4682
+ whatsapp: z.ZodOptional<z.ZodObject<{
4683
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4684
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4685
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4686
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4687
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4688
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4689
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4690
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4691
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
4692
+ apiKey: z.ZodOptional<z.ZodString>;
4693
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
4694
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
4695
+ }, "strip", z.ZodTypeAny, {
4696
+ wabaBusinessId?: string | null | undefined;
4697
+ wabaExternalId?: string | null | undefined;
4698
+ phoneNumberId?: string | null | undefined;
4699
+ email?: string | null | undefined;
4700
+ clientId?: string | null | undefined;
4701
+ channelId?: string | null | undefined;
4702
+ waapiInstanceId?: string | null | undefined;
4703
+ qr?: string | null | undefined;
4704
+ status?: "active" | "pending" | "waapi-qr" | undefined;
4705
+ apiKey?: string | undefined;
4706
+ tier?: "basic" | "regular" | "premium" | undefined;
4707
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
4708
+ }, {
4709
+ wabaBusinessId?: string | null | undefined;
4710
+ wabaExternalId?: string | null | undefined;
4711
+ phoneNumberId?: string | null | undefined;
4712
+ email?: string | null | undefined;
4713
+ clientId?: string | null | undefined;
4714
+ channelId?: string | null | undefined;
4715
+ waapiInstanceId?: string | null | undefined;
4716
+ qr?: string | null | undefined;
4717
+ status?: "active" | "pending" | "waapi-qr" | undefined;
4718
+ apiKey?: string | undefined;
4719
+ tier?: "basic" | "regular" | "premium" | undefined;
4720
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
4721
+ }>>;
4722
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
4723
+ mobileNumber: z.ZodString;
4724
+ apiKey: z.ZodString;
4725
+ apiSecret: z.ZodString;
4726
+ }, "strip", z.ZodTypeAny, {
4727
+ apiKey: string;
4728
+ mobileNumber: string;
4729
+ apiSecret: string;
4730
+ }, {
4731
+ apiKey: string;
4732
+ mobileNumber: string;
4733
+ apiSecret: string;
4734
+ }>>;
4735
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4736
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
4737
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
4738
+ }, "strip", z.ZodTypeAny, {
4739
+ name: string;
4740
+ id: string;
4741
+ accessToken?: string | undefined;
4742
+ channelSecret?: string | undefined;
4743
+ additionalCredentials?: any;
4744
+ senderId?: string | undefined;
4745
+ whatsapp?: {
4746
+ wabaBusinessId?: string | null | undefined;
4747
+ wabaExternalId?: string | null | undefined;
4748
+ phoneNumberId?: string | null | undefined;
4749
+ email?: string | null | undefined;
4750
+ clientId?: string | null | undefined;
4751
+ channelId?: string | null | undefined;
4752
+ waapiInstanceId?: string | null | undefined;
4753
+ qr?: string | null | undefined;
4754
+ status?: "active" | "pending" | "waapi-qr" | undefined;
4755
+ apiKey?: string | undefined;
4756
+ tier?: "basic" | "regular" | "premium" | undefined;
4757
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
4758
+ } | undefined;
4759
+ vonageCredentials?: {
4760
+ apiKey: string;
4761
+ mobileNumber: string;
4762
+ apiSecret: string;
4763
+ } | undefined;
4764
+ lineRichMenuId?: string | null | undefined;
4765
+ messengerIntegrationType?: "own" | "business" | undefined;
4766
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
4767
+ }, {
4768
+ name: string;
4769
+ id: string;
4770
+ accessToken?: string | undefined;
4771
+ channelSecret?: string | undefined;
4772
+ additionalCredentials?: any;
4773
+ senderId?: string | undefined;
4774
+ whatsapp?: {
4775
+ wabaBusinessId?: string | null | undefined;
4776
+ wabaExternalId?: string | null | undefined;
4777
+ phoneNumberId?: string | null | undefined;
4778
+ email?: string | null | undefined;
4779
+ clientId?: string | null | undefined;
4780
+ channelId?: string | null | undefined;
4781
+ waapiInstanceId?: string | null | undefined;
4782
+ qr?: string | null | undefined;
4783
+ status?: "active" | "pending" | "waapi-qr" | undefined;
4784
+ apiKey?: string | undefined;
4785
+ tier?: "basic" | "regular" | "premium" | undefined;
4786
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
4787
+ } | undefined;
4788
+ vonageCredentials?: {
4789
+ apiKey: string;
4790
+ mobileNumber: string;
4791
+ apiSecret: string;
4792
+ } | undefined;
4793
+ lineRichMenuId?: string | null | undefined;
4794
+ messengerIntegrationType?: "own" | "business" | undefined;
4795
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
4796
+ }>;
4797
+ brandName: z.ZodString;
4798
+ platformId: z.ZodString;
4799
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
4800
+ isReloginRequired: z.ZodBoolean;
4801
+ connectedUserName: z.ZodString;
4802
+ connectedUserId: z.ZodString;
4803
+ botpressBot: z.ZodNullable<z.ZodObject<{
4804
+ id: z.ZodString;
4805
+ name: z.ZodString;
4806
+ botId: z.ZodString;
4807
+ integrationId: z.ZodString;
4808
+ accessToken: z.ZodString;
4809
+ }, "strip", z.ZodTypeAny, {
4810
+ name: string;
4811
+ id: string;
4812
+ accessToken: string;
4813
+ botId: string;
4814
+ integrationId: string;
4815
+ }, {
4816
+ name: string;
4817
+ id: string;
4818
+ accessToken: string;
4819
+ botId: string;
4820
+ integrationId: string;
4821
+ }>>;
4822
+ actor: z.ZodObject<{
4823
+ id: z.ZodString;
4824
+ createdAt: z.ZodDate;
4825
+ updatedAt: z.ZodDate;
4826
+ deletedAt: z.ZodNullable<z.ZodDate>;
4827
+ name: z.ZodString;
4828
+ email: z.ZodString;
4829
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
4830
+ password: z.ZodString;
4831
+ address: z.ZodNullable<z.ZodString>;
4832
+ phone: z.ZodNullable<z.ZodString>;
4833
+ notificationCount: z.ZodNullable<z.ZodNumber>;
4834
+ roles: z.ZodArray<z.ZodObject<{
4835
+ id: z.ZodString;
4836
+ createdAt: z.ZodDate;
4837
+ updatedAt: z.ZodDate;
4838
+ deletedAt: z.ZodNullable<z.ZodDate>;
4839
+ systemName: z.ZodString;
4840
+ displayName: z.ZodString;
4841
+ description: z.ZodNullable<z.ZodString>;
4842
+ permissions: z.ZodArray<z.ZodObject<{
4843
+ id: z.ZodString;
4844
+ createdAt: z.ZodDate;
4845
+ updatedAt: z.ZodDate;
4846
+ deletedAt: z.ZodNullable<z.ZodDate>;
4847
+ systemName: z.ZodString;
4848
+ displayName: z.ZodString;
4849
+ description: z.ZodNullable<z.ZodString>;
4850
+ }, "strip", z.ZodTypeAny, {
4851
+ id: string;
4852
+ description: string | null;
4853
+ createdAt: Date;
4854
+ updatedAt: Date;
4855
+ deletedAt: Date | null;
4856
+ systemName: string;
4857
+ displayName: string;
4858
+ }, {
4859
+ id: string;
4860
+ description: string | null;
4861
+ createdAt: Date;
4862
+ updatedAt: Date;
4863
+ deletedAt: Date | null;
4864
+ systemName: string;
4865
+ displayName: string;
4866
+ }>, "many">;
4867
+ }, "strip", z.ZodTypeAny, {
4868
+ id: string;
4869
+ description: string | null;
4870
+ createdAt: Date;
4871
+ updatedAt: Date;
4872
+ deletedAt: Date | null;
4873
+ systemName: string;
4874
+ displayName: string;
4875
+ permissions: {
4876
+ id: string;
4877
+ description: string | null;
4878
+ createdAt: Date;
4879
+ updatedAt: Date;
4880
+ deletedAt: Date | null;
4881
+ systemName: string;
4882
+ displayName: string;
4883
+ }[];
4884
+ }, {
4885
+ id: string;
4886
+ description: string | null;
4887
+ createdAt: Date;
4888
+ updatedAt: Date;
4889
+ deletedAt: Date | null;
4890
+ systemName: string;
4891
+ displayName: string;
4892
+ permissions: {
4893
+ id: string;
4894
+ description: string | null;
4895
+ createdAt: Date;
4896
+ updatedAt: Date;
4897
+ deletedAt: Date | null;
4898
+ systemName: string;
4899
+ displayName: string;
4900
+ }[];
4901
+ }>, "many">;
4902
+ extension: z.ZodObject<{
4903
+ id: z.ZodString;
4904
+ createdAt: z.ZodDate;
4905
+ updatedAt: z.ZodDate;
4906
+ deletedAt: z.ZodNullable<z.ZodDate>;
4907
+ userId: z.ZodNullable<z.ZodString>;
4908
+ sipServerUrl: z.ZodString;
4909
+ sipUserName: z.ZodString;
4910
+ webphoneLoginUser: z.ZodString;
4911
+ extensionId: z.ZodNullable<z.ZodString>;
4912
+ extensionName: z.ZodString;
4913
+ telephonySignature: z.ZodNullable<z.ZodString>;
4914
+ }, "strip", z.ZodTypeAny, {
4915
+ id: string;
4916
+ createdAt: Date;
4917
+ updatedAt: Date;
4918
+ deletedAt: Date | null;
4919
+ userId: string | null;
4920
+ sipServerUrl: string;
4921
+ sipUserName: string;
4922
+ webphoneLoginUser: string;
4923
+ extensionId: string | null;
4924
+ extensionName: string;
4925
+ telephonySignature: string | null;
4926
+ }, {
4927
+ id: string;
4928
+ createdAt: Date;
4929
+ updatedAt: Date;
4930
+ deletedAt: Date | null;
4931
+ userId: string | null;
4932
+ sipServerUrl: string;
4933
+ sipUserName: string;
4934
+ webphoneLoginUser: string;
4935
+ extensionId: string | null;
4936
+ extensionName: string;
4937
+ telephonySignature: string | null;
4938
+ }>;
4939
+ }, "strip", z.ZodTypeAny, {
4940
+ name: string;
4941
+ id: string;
4942
+ address: string | null;
4943
+ email: string;
4944
+ createdAt: Date;
4945
+ updatedAt: Date;
4946
+ deletedAt: Date | null;
4947
+ emailVerifiedAt: Date | null;
4948
+ password: string;
4949
+ phone: string | null;
4950
+ notificationCount: number | null;
4951
+ roles: {
4952
+ id: string;
4953
+ description: string | null;
4954
+ createdAt: Date;
4955
+ updatedAt: Date;
4956
+ deletedAt: Date | null;
4957
+ systemName: string;
4958
+ displayName: string;
4959
+ permissions: {
4960
+ id: string;
4961
+ description: string | null;
4962
+ createdAt: Date;
4963
+ updatedAt: Date;
4964
+ deletedAt: Date | null;
4965
+ systemName: string;
4966
+ displayName: string;
4967
+ }[];
4968
+ }[];
4969
+ extension: {
4970
+ id: string;
4971
+ createdAt: Date;
4972
+ updatedAt: Date;
4973
+ deletedAt: Date | null;
4974
+ userId: string | null;
4975
+ sipServerUrl: string;
4976
+ sipUserName: string;
4977
+ webphoneLoginUser: string;
4978
+ extensionId: string | null;
4979
+ extensionName: string;
4980
+ telephonySignature: string | null;
4981
+ };
4982
+ }, {
4983
+ name: string;
4984
+ id: string;
4985
+ address: string | null;
4986
+ email: string;
4987
+ createdAt: Date;
4988
+ updatedAt: Date;
4989
+ deletedAt: Date | null;
4990
+ emailVerifiedAt: Date | null;
4991
+ password: string;
4992
+ phone: string | null;
4993
+ notificationCount: number | null;
4994
+ roles: {
4995
+ id: string;
4996
+ description: string | null;
4997
+ createdAt: Date;
4998
+ updatedAt: Date;
4999
+ deletedAt: Date | null;
5000
+ systemName: string;
5001
+ displayName: string;
5002
+ permissions: {
5003
+ id: string;
5004
+ description: string | null;
5005
+ createdAt: Date;
5006
+ updatedAt: Date;
5007
+ deletedAt: Date | null;
5008
+ systemName: string;
5009
+ displayName: string;
5010
+ }[];
5011
+ }[];
5012
+ extension: {
5013
+ id: string;
5014
+ createdAt: Date;
5015
+ updatedAt: Date;
5016
+ deletedAt: Date | null;
5017
+ userId: string | null;
5018
+ sipServerUrl: string;
5019
+ sipUserName: string;
5020
+ webphoneLoginUser: string;
5021
+ extensionId: string | null;
5022
+ extensionName: string;
5023
+ telephonySignature: string | null;
5024
+ };
5025
+ }>;
5026
+ }, "strip", z.ZodTypeAny, {
5027
+ name: string;
5028
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5029
+ id: string;
5030
+ metadata: {
5031
+ name: string;
5032
+ id: string;
5033
+ accessToken?: string | undefined;
5034
+ channelSecret?: string | undefined;
5035
+ additionalCredentials?: any;
5036
+ senderId?: string | undefined;
5037
+ whatsapp?: {
5038
+ wabaBusinessId?: string | null | undefined;
5039
+ wabaExternalId?: string | null | undefined;
5040
+ phoneNumberId?: string | null | undefined;
5041
+ email?: string | null | undefined;
5042
+ clientId?: string | null | undefined;
5043
+ channelId?: string | null | undefined;
5044
+ waapiInstanceId?: string | null | undefined;
5045
+ qr?: string | null | undefined;
5046
+ status?: "active" | "pending" | "waapi-qr" | undefined;
5047
+ apiKey?: string | undefined;
5048
+ tier?: "basic" | "regular" | "premium" | undefined;
5049
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
5050
+ } | undefined;
5051
+ vonageCredentials?: {
5052
+ apiKey: string;
5053
+ mobileNumber: string;
5054
+ apiSecret: string;
5055
+ } | undefined;
5056
+ lineRichMenuId?: string | null | undefined;
5057
+ messengerIntegrationType?: "own" | "business" | undefined;
5058
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
5059
+ };
5060
+ status: boolean;
5061
+ createdAt: Date;
5062
+ updatedAt: Date;
5063
+ deletedAt: Date | null;
5064
+ actor: {
5065
+ name: string;
5066
+ id: string;
5067
+ address: string | null;
5068
+ email: string;
5069
+ createdAt: Date;
5070
+ updatedAt: Date;
5071
+ deletedAt: Date | null;
5072
+ emailVerifiedAt: Date | null;
5073
+ password: string;
5074
+ phone: string | null;
5075
+ notificationCount: number | null;
5076
+ roles: {
5077
+ id: string;
5078
+ description: string | null;
5079
+ createdAt: Date;
5080
+ updatedAt: Date;
5081
+ deletedAt: Date | null;
5082
+ systemName: string;
5083
+ displayName: string;
5084
+ permissions: {
5085
+ id: string;
5086
+ description: string | null;
5087
+ createdAt: Date;
5088
+ updatedAt: Date;
5089
+ deletedAt: Date | null;
5090
+ systemName: string;
5091
+ displayName: string;
5092
+ }[];
5093
+ }[];
5094
+ extension: {
5095
+ id: string;
5096
+ createdAt: Date;
5097
+ updatedAt: Date;
5098
+ deletedAt: Date | null;
5099
+ userId: string | null;
5100
+ sipServerUrl: string;
5101
+ sipUserName: string;
5102
+ webphoneLoginUser: string;
5103
+ extensionId: string | null;
5104
+ extensionName: string;
5105
+ telephonySignature: string | null;
5106
+ };
5107
+ };
5108
+ brandName: string;
5109
+ platformId: string;
5110
+ isReloginRequired: boolean;
5111
+ connectedUserName: string;
5112
+ connectedUserId: string;
5113
+ botpressBot: {
5114
+ name: string;
5115
+ id: string;
5116
+ accessToken: string;
5117
+ botId: string;
5118
+ integrationId: string;
5119
+ } | null;
5120
+ }, {
5121
+ name: string;
5122
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5123
+ id: string;
5124
+ metadata: {
5125
+ name: string;
5126
+ id: string;
5127
+ accessToken?: string | undefined;
5128
+ channelSecret?: string | undefined;
5129
+ additionalCredentials?: any;
5130
+ senderId?: string | undefined;
5131
+ whatsapp?: {
5132
+ wabaBusinessId?: string | null | undefined;
5133
+ wabaExternalId?: string | null | undefined;
5134
+ phoneNumberId?: string | null | undefined;
5135
+ email?: string | null | undefined;
5136
+ clientId?: string | null | undefined;
5137
+ channelId?: string | null | undefined;
5138
+ waapiInstanceId?: string | null | undefined;
5139
+ qr?: string | null | undefined;
5140
+ status?: "active" | "pending" | "waapi-qr" | undefined;
5141
+ apiKey?: string | undefined;
5142
+ tier?: "basic" | "regular" | "premium" | undefined;
5143
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
5144
+ } | undefined;
5145
+ vonageCredentials?: {
5146
+ apiKey: string;
5147
+ mobileNumber: string;
5148
+ apiSecret: string;
5149
+ } | undefined;
5150
+ lineRichMenuId?: string | null | undefined;
5151
+ messengerIntegrationType?: "own" | "business" | undefined;
5152
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
5153
+ };
5154
+ status: boolean;
5155
+ createdAt: Date;
5156
+ updatedAt: Date;
5157
+ deletedAt: Date | null;
5158
+ actor: {
5159
+ name: string;
5160
+ id: string;
5161
+ address: string | null;
5162
+ email: string;
5163
+ createdAt: Date;
5164
+ updatedAt: Date;
5165
+ deletedAt: Date | null;
5166
+ emailVerifiedAt: Date | null;
5167
+ password: string;
5168
+ phone: string | null;
5169
+ notificationCount: number | null;
5170
+ roles: {
5171
+ id: string;
5172
+ description: string | null;
5173
+ createdAt: Date;
5174
+ updatedAt: Date;
5175
+ deletedAt: Date | null;
5176
+ systemName: string;
5177
+ displayName: string;
5178
+ permissions: {
5179
+ id: string;
5180
+ description: string | null;
5181
+ createdAt: Date;
5182
+ updatedAt: Date;
5183
+ deletedAt: Date | null;
5184
+ systemName: string;
5185
+ displayName: string;
5186
+ }[];
5187
+ }[];
5188
+ extension: {
5189
+ id: string;
5190
+ createdAt: Date;
5191
+ updatedAt: Date;
5192
+ deletedAt: Date | null;
5193
+ userId: string | null;
5194
+ sipServerUrl: string;
5195
+ sipUserName: string;
5196
+ webphoneLoginUser: string;
5197
+ extensionId: string | null;
5198
+ extensionName: string;
5199
+ telephonySignature: string | null;
5200
+ };
5201
+ };
5202
+ brandName: string;
5203
+ platformId: string;
5204
+ isReloginRequired: boolean;
5205
+ connectedUserName: string;
5206
+ connectedUserId: string;
5207
+ botpressBot: {
5208
+ name: string;
5209
+ id: string;
5210
+ accessToken: string;
5211
+ botId: string;
5212
+ integrationId: string;
5213
+ } | null;
5214
+ }>;
5215
+ }, "strip", z.ZodTypeAny, {
5216
+ channel: {
5217
+ name: string;
5218
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5219
+ id: string;
5220
+ metadata: {
5221
+ name: string;
5222
+ id: string;
5223
+ accessToken?: string | undefined;
5224
+ channelSecret?: string | undefined;
5225
+ additionalCredentials?: any;
5226
+ senderId?: string | undefined;
5227
+ whatsapp?: {
5228
+ wabaBusinessId?: string | null | undefined;
5229
+ wabaExternalId?: string | null | undefined;
5230
+ phoneNumberId?: string | null | undefined;
5231
+ email?: string | null | undefined;
5232
+ clientId?: string | null | undefined;
5233
+ channelId?: string | null | undefined;
5234
+ waapiInstanceId?: string | null | undefined;
5235
+ qr?: string | null | undefined;
5236
+ status?: "active" | "pending" | "waapi-qr" | undefined;
5237
+ apiKey?: string | undefined;
5238
+ tier?: "basic" | "regular" | "premium" | undefined;
5239
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
5240
+ } | undefined;
5241
+ vonageCredentials?: {
5242
+ apiKey: string;
5243
+ mobileNumber: string;
5244
+ apiSecret: string;
5245
+ } | undefined;
5246
+ lineRichMenuId?: string | null | undefined;
5247
+ messengerIntegrationType?: "own" | "business" | undefined;
5248
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
5249
+ };
5250
+ status: boolean;
5251
+ createdAt: Date;
5252
+ updatedAt: Date;
5253
+ deletedAt: Date | null;
5254
+ actor: {
5255
+ name: string;
5256
+ id: string;
5257
+ address: string | null;
5258
+ email: string;
5259
+ createdAt: Date;
5260
+ updatedAt: Date;
5261
+ deletedAt: Date | null;
5262
+ emailVerifiedAt: Date | null;
5263
+ password: string;
5264
+ phone: string | null;
5265
+ notificationCount: number | null;
5266
+ roles: {
5267
+ id: string;
5268
+ description: string | null;
5269
+ createdAt: Date;
5270
+ updatedAt: Date;
5271
+ deletedAt: Date | null;
5272
+ systemName: string;
5273
+ displayName: string;
5274
+ permissions: {
5275
+ id: string;
5276
+ description: string | null;
5277
+ createdAt: Date;
5278
+ updatedAt: Date;
5279
+ deletedAt: Date | null;
5280
+ systemName: string;
5281
+ displayName: string;
5282
+ }[];
5283
+ }[];
5284
+ extension: {
5285
+ id: string;
5286
+ createdAt: Date;
5287
+ updatedAt: Date;
5288
+ deletedAt: Date | null;
5289
+ userId: string | null;
5290
+ sipServerUrl: string;
5291
+ sipUserName: string;
5292
+ webphoneLoginUser: string;
5293
+ extensionId: string | null;
5294
+ extensionName: string;
5295
+ telephonySignature: string | null;
5296
+ };
5297
+ };
5298
+ brandName: string;
5299
+ platformId: string;
5300
+ isReloginRequired: boolean;
5301
+ connectedUserName: string;
5302
+ connectedUserId: string;
5303
+ botpressBot: {
5304
+ name: string;
5305
+ id: string;
5306
+ accessToken: string;
5307
+ botId: string;
5308
+ integrationId: string;
5309
+ } | null;
5310
+ };
5311
+ requestId: string;
5312
+ }, {
5313
+ channel: {
5314
+ name: string;
5315
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
5316
+ id: string;
5317
+ metadata: {
5318
+ name: string;
5319
+ id: string;
5320
+ accessToken?: string | undefined;
5321
+ channelSecret?: string | undefined;
5322
+ additionalCredentials?: any;
5323
+ senderId?: string | undefined;
5324
+ whatsapp?: {
5325
+ wabaBusinessId?: string | null | undefined;
5326
+ wabaExternalId?: string | null | undefined;
5327
+ phoneNumberId?: string | null | undefined;
5328
+ email?: string | null | undefined;
5329
+ clientId?: string | null | undefined;
5330
+ channelId?: string | null | undefined;
5331
+ waapiInstanceId?: string | null | undefined;
5332
+ qr?: string | null | undefined;
5333
+ status?: "active" | "pending" | "waapi-qr" | undefined;
5334
+ apiKey?: string | undefined;
5335
+ tier?: "basic" | "regular" | "premium" | undefined;
5336
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
5337
+ } | undefined;
5338
+ vonageCredentials?: {
5339
+ apiKey: string;
5340
+ mobileNumber: string;
5341
+ apiSecret: string;
5342
+ } | undefined;
5343
+ lineRichMenuId?: string | null | undefined;
5344
+ messengerIntegrationType?: "own" | "business" | undefined;
5345
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
5346
+ };
5347
+ status: boolean;
5348
+ createdAt: Date;
5349
+ updatedAt: Date;
5350
+ deletedAt: Date | null;
5351
+ actor: {
5352
+ name: string;
5353
+ id: string;
5354
+ address: string | null;
5355
+ email: string;
5356
+ createdAt: Date;
5357
+ updatedAt: Date;
5358
+ deletedAt: Date | null;
5359
+ emailVerifiedAt: Date | null;
5360
+ password: string;
5361
+ phone: string | null;
5362
+ notificationCount: number | null;
5363
+ roles: {
5364
+ id: string;
5365
+ description: string | null;
5366
+ createdAt: Date;
5367
+ updatedAt: Date;
5368
+ deletedAt: Date | null;
5369
+ systemName: string;
5370
+ displayName: string;
5371
+ permissions: {
5372
+ id: string;
5373
+ description: string | null;
5374
+ createdAt: Date;
5375
+ updatedAt: Date;
5376
+ deletedAt: Date | null;
5377
+ systemName: string;
5378
+ displayName: string;
5379
+ }[];
5380
+ }[];
5381
+ extension: {
5382
+ id: string;
5383
+ createdAt: Date;
5384
+ updatedAt: Date;
5385
+ deletedAt: Date | null;
5386
+ userId: string | null;
5387
+ sipServerUrl: string;
5388
+ sipUserName: string;
5389
+ webphoneLoginUser: string;
5390
+ extensionId: string | null;
5391
+ extensionName: string;
5392
+ telephonySignature: string | null;
5393
+ };
5394
+ };
5395
+ brandName: string;
5396
+ platformId: string;
5397
+ isReloginRequired: boolean;
5398
+ connectedUserName: string;
5399
+ connectedUserId: string;
5400
+ botpressBot: {
5401
+ name: string;
5402
+ id: string;
5403
+ accessToken: string;
5404
+ botId: string;
5405
+ integrationId: string;
5406
+ } | null;
5407
+ };
5408
+ requestId: string;
5409
+ }>;
5410
+ 408: z.ZodObject<{
5411
+ message: z.ZodString;
5412
+ error: z.ZodAny;
5413
+ }, "strip", z.ZodTypeAny, {
5414
+ message: string;
5415
+ error?: any;
5416
+ }, {
5417
+ message: string;
5418
+ error?: any;
5419
+ }>;
5420
+ };
5421
+ path: "channel/csat/:channelId";
5422
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
5423
+ 'x-tenant': z.ZodString;
5424
+ 'x-service-token': z.ZodString;
5425
+ 'x-code': z.ZodOptional<z.ZodString>;
5426
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
5427
+ }, "strip", z.ZodTypeAny, {
5428
+ 'x-tenant': string;
5429
+ 'x-service-token': string;
5430
+ 'x-client-timezone': string;
5431
+ 'x-code'?: string | undefined;
5432
+ }, {
5433
+ 'x-tenant': string;
5434
+ 'x-service-token': string;
5435
+ 'x-code'?: string | undefined;
5436
+ 'x-client-timezone'?: string | undefined;
5437
+ }>>>;
5438
+ };
4648
5439
  messenger: {
4649
5440
  getPages: {
4650
5441
  method: "GET";