@kl1/contracts 1.4.58 → 1.4.60

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.
@@ -13737,6 +13737,846 @@ export declare const channelContract: {
13737
13737
  }>>>;
13738
13738
  };
13739
13739
  };
13740
+ klinkchat: {
13741
+ connect: {
13742
+ body: z.ZodObject<{
13743
+ name: z.ZodString;
13744
+ metadata: z.ZodOptional<z.ZodAny>;
13745
+ }, "strip", z.ZodTypeAny, {
13746
+ name: string;
13747
+ metadata?: any;
13748
+ }, {
13749
+ name: string;
13750
+ metadata?: any;
13751
+ }>;
13752
+ summary: "Connect to klink chat";
13753
+ method: "POST";
13754
+ responses: {
13755
+ 200: z.ZodObject<{
13756
+ requestId: z.ZodString;
13757
+ channel: z.ZodObject<{
13758
+ id: z.ZodString;
13759
+ createdAt: z.ZodDate;
13760
+ updatedAt: z.ZodDate;
13761
+ deletedAt: z.ZodNullable<z.ZodDate>;
13762
+ name: z.ZodString;
13763
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage", "klink_chat"]>;
13764
+ metadata: z.ZodObject<{
13765
+ id: z.ZodString;
13766
+ name: z.ZodString;
13767
+ accessToken: z.ZodOptional<z.ZodString>;
13768
+ channelSecret: z.ZodOptional<z.ZodString>;
13769
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
13770
+ senderId: z.ZodOptional<z.ZodString>;
13771
+ whatsapp: z.ZodOptional<z.ZodObject<{
13772
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13773
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13774
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13775
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13776
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13777
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13778
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13779
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13780
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
13781
+ apiKey: z.ZodOptional<z.ZodString>;
13782
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
13783
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
13784
+ }, "strip", z.ZodTypeAny, {
13785
+ wabaBusinessId?: string | null | undefined;
13786
+ wabaExternalId?: string | null | undefined;
13787
+ phoneNumberId?: string | null | undefined;
13788
+ email?: string | null | undefined;
13789
+ clientId?: string | null | undefined;
13790
+ channelId?: string | null | undefined;
13791
+ waapiInstanceId?: string | null | undefined;
13792
+ qr?: string | null | undefined;
13793
+ status?: "active" | "pending" | "waapi-qr" | undefined;
13794
+ apiKey?: string | undefined;
13795
+ tier?: "basic" | "regular" | "premium" | undefined;
13796
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
13797
+ }, {
13798
+ wabaBusinessId?: string | null | undefined;
13799
+ wabaExternalId?: string | null | undefined;
13800
+ phoneNumberId?: string | null | undefined;
13801
+ email?: string | null | undefined;
13802
+ clientId?: string | null | undefined;
13803
+ channelId?: string | null | undefined;
13804
+ waapiInstanceId?: string | null | undefined;
13805
+ qr?: string | null | undefined;
13806
+ status?: "active" | "pending" | "waapi-qr" | undefined;
13807
+ apiKey?: string | undefined;
13808
+ tier?: "basic" | "regular" | "premium" | undefined;
13809
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
13810
+ }>>;
13811
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
13812
+ mobileNumber: z.ZodString;
13813
+ apiKey: z.ZodString;
13814
+ apiSecret: z.ZodString;
13815
+ }, "strip", z.ZodTypeAny, {
13816
+ apiKey: string;
13817
+ mobileNumber: string;
13818
+ apiSecret: string;
13819
+ }, {
13820
+ apiKey: string;
13821
+ mobileNumber: string;
13822
+ apiSecret: string;
13823
+ }>>;
13824
+ line: z.ZodOptional<z.ZodObject<{
13825
+ channelId: z.ZodString;
13826
+ channelSecret: z.ZodString;
13827
+ }, "strip", z.ZodTypeAny, {
13828
+ channelId: string;
13829
+ channelSecret: string;
13830
+ }, {
13831
+ channelId: string;
13832
+ channelSecret: string;
13833
+ }>>;
13834
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
13835
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
13836
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
13837
+ isCSATEnabled: z.ZodOptional<z.ZodBoolean>;
13838
+ }, "strip", z.ZodTypeAny, {
13839
+ name: string;
13840
+ id: string;
13841
+ accessToken?: string | undefined;
13842
+ channelSecret?: string | undefined;
13843
+ additionalCredentials?: any;
13844
+ senderId?: string | undefined;
13845
+ whatsapp?: {
13846
+ wabaBusinessId?: string | null | undefined;
13847
+ wabaExternalId?: string | null | undefined;
13848
+ phoneNumberId?: string | null | undefined;
13849
+ email?: string | null | undefined;
13850
+ clientId?: string | null | undefined;
13851
+ channelId?: string | null | undefined;
13852
+ waapiInstanceId?: string | null | undefined;
13853
+ qr?: string | null | undefined;
13854
+ status?: "active" | "pending" | "waapi-qr" | undefined;
13855
+ apiKey?: string | undefined;
13856
+ tier?: "basic" | "regular" | "premium" | undefined;
13857
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
13858
+ } | undefined;
13859
+ vonageCredentials?: {
13860
+ apiKey: string;
13861
+ mobileNumber: string;
13862
+ apiSecret: string;
13863
+ } | undefined;
13864
+ line?: {
13865
+ channelId: string;
13866
+ channelSecret: string;
13867
+ } | undefined;
13868
+ lineRichMenuId?: string | null | undefined;
13869
+ messengerIntegrationType?: "own" | "business" | undefined;
13870
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
13871
+ isCSATEnabled?: boolean | undefined;
13872
+ }, {
13873
+ name: string;
13874
+ id: string;
13875
+ accessToken?: string | undefined;
13876
+ channelSecret?: string | undefined;
13877
+ additionalCredentials?: any;
13878
+ senderId?: string | undefined;
13879
+ whatsapp?: {
13880
+ wabaBusinessId?: string | null | undefined;
13881
+ wabaExternalId?: string | null | undefined;
13882
+ phoneNumberId?: string | null | undefined;
13883
+ email?: string | null | undefined;
13884
+ clientId?: string | null | undefined;
13885
+ channelId?: string | null | undefined;
13886
+ waapiInstanceId?: string | null | undefined;
13887
+ qr?: string | null | undefined;
13888
+ status?: "active" | "pending" | "waapi-qr" | undefined;
13889
+ apiKey?: string | undefined;
13890
+ tier?: "basic" | "regular" | "premium" | undefined;
13891
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
13892
+ } | undefined;
13893
+ vonageCredentials?: {
13894
+ apiKey: string;
13895
+ mobileNumber: string;
13896
+ apiSecret: string;
13897
+ } | undefined;
13898
+ line?: {
13899
+ channelId: string;
13900
+ channelSecret: string;
13901
+ } | undefined;
13902
+ lineRichMenuId?: string | null | undefined;
13903
+ messengerIntegrationType?: "own" | "business" | undefined;
13904
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
13905
+ isCSATEnabled?: boolean | undefined;
13906
+ }>;
13907
+ brandName: z.ZodString;
13908
+ platformId: z.ZodString;
13909
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
13910
+ isReloginRequired: z.ZodBoolean;
13911
+ connectedUserName: z.ZodString;
13912
+ connectedUserId: z.ZodString;
13913
+ botpressBot: z.ZodNullable<z.ZodObject<{
13914
+ id: z.ZodString;
13915
+ name: z.ZodString;
13916
+ botId: z.ZodString;
13917
+ integrationId: z.ZodString;
13918
+ accessToken: z.ZodString;
13919
+ }, "strip", z.ZodTypeAny, {
13920
+ name: string;
13921
+ id: string;
13922
+ accessToken: string;
13923
+ botId: string;
13924
+ integrationId: string;
13925
+ }, {
13926
+ name: string;
13927
+ id: string;
13928
+ accessToken: string;
13929
+ botId: string;
13930
+ integrationId: string;
13931
+ }>>;
13932
+ actor: z.ZodObject<{
13933
+ id: z.ZodString;
13934
+ createdAt: z.ZodDate;
13935
+ updatedAt: z.ZodDate;
13936
+ deletedAt: z.ZodNullable<z.ZodDate>;
13937
+ name: z.ZodString;
13938
+ email: z.ZodString;
13939
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
13940
+ password: z.ZodString;
13941
+ address: z.ZodNullable<z.ZodString>;
13942
+ phone: z.ZodNullable<z.ZodString>;
13943
+ notificationCount: z.ZodNullable<z.ZodNumber>;
13944
+ roles: z.ZodArray<z.ZodObject<{
13945
+ id: z.ZodString;
13946
+ createdAt: z.ZodDate;
13947
+ updatedAt: z.ZodDate;
13948
+ deletedAt: z.ZodNullable<z.ZodDate>;
13949
+ systemName: z.ZodString;
13950
+ displayName: z.ZodString;
13951
+ description: z.ZodNullable<z.ZodString>;
13952
+ permissions: z.ZodArray<z.ZodObject<{
13953
+ id: z.ZodString;
13954
+ createdAt: z.ZodDate;
13955
+ updatedAt: z.ZodDate;
13956
+ deletedAt: z.ZodNullable<z.ZodDate>;
13957
+ systemName: z.ZodString;
13958
+ displayName: z.ZodString;
13959
+ description: z.ZodNullable<z.ZodString>;
13960
+ }, "strip", z.ZodTypeAny, {
13961
+ id: string;
13962
+ description: string | null;
13963
+ createdAt: Date;
13964
+ updatedAt: Date;
13965
+ deletedAt: Date | null;
13966
+ systemName: string;
13967
+ displayName: string;
13968
+ }, {
13969
+ id: string;
13970
+ description: string | null;
13971
+ createdAt: Date;
13972
+ updatedAt: Date;
13973
+ deletedAt: Date | null;
13974
+ systemName: string;
13975
+ displayName: string;
13976
+ }>, "many">;
13977
+ }, "strip", z.ZodTypeAny, {
13978
+ id: string;
13979
+ description: string | null;
13980
+ createdAt: Date;
13981
+ updatedAt: Date;
13982
+ deletedAt: Date | null;
13983
+ systemName: string;
13984
+ displayName: string;
13985
+ permissions: {
13986
+ id: string;
13987
+ description: string | null;
13988
+ createdAt: Date;
13989
+ updatedAt: Date;
13990
+ deletedAt: Date | null;
13991
+ systemName: string;
13992
+ displayName: string;
13993
+ }[];
13994
+ }, {
13995
+ id: string;
13996
+ description: string | null;
13997
+ createdAt: Date;
13998
+ updatedAt: Date;
13999
+ deletedAt: Date | null;
14000
+ systemName: string;
14001
+ displayName: string;
14002
+ permissions: {
14003
+ id: string;
14004
+ description: string | null;
14005
+ createdAt: Date;
14006
+ updatedAt: Date;
14007
+ deletedAt: Date | null;
14008
+ systemName: string;
14009
+ displayName: string;
14010
+ }[];
14011
+ }>, "many">;
14012
+ extension: z.ZodObject<{
14013
+ id: z.ZodString;
14014
+ createdAt: z.ZodDate;
14015
+ updatedAt: z.ZodDate;
14016
+ deletedAt: z.ZodNullable<z.ZodDate>;
14017
+ userId: z.ZodNullable<z.ZodString>;
14018
+ sipServerUrl: z.ZodString;
14019
+ sipUserName: z.ZodString;
14020
+ webphoneLoginUser: z.ZodString;
14021
+ extensionId: z.ZodNullable<z.ZodString>;
14022
+ extensionName: z.ZodString;
14023
+ telephonySignature: z.ZodNullable<z.ZodString>;
14024
+ }, "strip", z.ZodTypeAny, {
14025
+ id: string;
14026
+ createdAt: Date;
14027
+ updatedAt: Date;
14028
+ deletedAt: Date | null;
14029
+ userId: string | null;
14030
+ sipServerUrl: string;
14031
+ sipUserName: string;
14032
+ webphoneLoginUser: string;
14033
+ extensionId: string | null;
14034
+ extensionName: string;
14035
+ telephonySignature: string | null;
14036
+ }, {
14037
+ id: string;
14038
+ createdAt: Date;
14039
+ updatedAt: Date;
14040
+ deletedAt: Date | null;
14041
+ userId: string | null;
14042
+ sipServerUrl: string;
14043
+ sipUserName: string;
14044
+ webphoneLoginUser: string;
14045
+ extensionId: string | null;
14046
+ extensionName: string;
14047
+ telephonySignature: string | null;
14048
+ }>;
14049
+ }, "strip", z.ZodTypeAny, {
14050
+ name: string;
14051
+ id: string;
14052
+ address: string | null;
14053
+ email: string;
14054
+ createdAt: Date;
14055
+ updatedAt: Date;
14056
+ deletedAt: Date | null;
14057
+ emailVerifiedAt: Date | null;
14058
+ password: string;
14059
+ phone: string | null;
14060
+ notificationCount: number | null;
14061
+ roles: {
14062
+ id: string;
14063
+ description: string | null;
14064
+ createdAt: Date;
14065
+ updatedAt: Date;
14066
+ deletedAt: Date | null;
14067
+ systemName: string;
14068
+ displayName: string;
14069
+ permissions: {
14070
+ id: string;
14071
+ description: string | null;
14072
+ createdAt: Date;
14073
+ updatedAt: Date;
14074
+ deletedAt: Date | null;
14075
+ systemName: string;
14076
+ displayName: string;
14077
+ }[];
14078
+ }[];
14079
+ extension: {
14080
+ id: string;
14081
+ createdAt: Date;
14082
+ updatedAt: Date;
14083
+ deletedAt: Date | null;
14084
+ userId: string | null;
14085
+ sipServerUrl: string;
14086
+ sipUserName: string;
14087
+ webphoneLoginUser: string;
14088
+ extensionId: string | null;
14089
+ extensionName: string;
14090
+ telephonySignature: string | null;
14091
+ };
14092
+ }, {
14093
+ name: string;
14094
+ id: string;
14095
+ address: string | null;
14096
+ email: string;
14097
+ createdAt: Date;
14098
+ updatedAt: Date;
14099
+ deletedAt: Date | null;
14100
+ emailVerifiedAt: Date | null;
14101
+ password: string;
14102
+ phone: string | null;
14103
+ notificationCount: number | null;
14104
+ roles: {
14105
+ id: string;
14106
+ description: string | null;
14107
+ createdAt: Date;
14108
+ updatedAt: Date;
14109
+ deletedAt: Date | null;
14110
+ systemName: string;
14111
+ displayName: string;
14112
+ permissions: {
14113
+ id: string;
14114
+ description: string | null;
14115
+ createdAt: Date;
14116
+ updatedAt: Date;
14117
+ deletedAt: Date | null;
14118
+ systemName: string;
14119
+ displayName: string;
14120
+ }[];
14121
+ }[];
14122
+ extension: {
14123
+ id: string;
14124
+ createdAt: Date;
14125
+ updatedAt: Date;
14126
+ deletedAt: Date | null;
14127
+ userId: string | null;
14128
+ sipServerUrl: string;
14129
+ sipUserName: string;
14130
+ webphoneLoginUser: string;
14131
+ extensionId: string | null;
14132
+ extensionName: string;
14133
+ telephonySignature: string | null;
14134
+ };
14135
+ }>;
14136
+ }, "strip", z.ZodTypeAny, {
14137
+ name: string;
14138
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
14139
+ id: string;
14140
+ metadata: {
14141
+ name: string;
14142
+ id: string;
14143
+ accessToken?: string | undefined;
14144
+ channelSecret?: string | undefined;
14145
+ additionalCredentials?: any;
14146
+ senderId?: string | undefined;
14147
+ whatsapp?: {
14148
+ wabaBusinessId?: string | null | undefined;
14149
+ wabaExternalId?: string | null | undefined;
14150
+ phoneNumberId?: string | null | undefined;
14151
+ email?: string | null | undefined;
14152
+ clientId?: string | null | undefined;
14153
+ channelId?: string | null | undefined;
14154
+ waapiInstanceId?: string | null | undefined;
14155
+ qr?: string | null | undefined;
14156
+ status?: "active" | "pending" | "waapi-qr" | undefined;
14157
+ apiKey?: string | undefined;
14158
+ tier?: "basic" | "regular" | "premium" | undefined;
14159
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
14160
+ } | undefined;
14161
+ vonageCredentials?: {
14162
+ apiKey: string;
14163
+ mobileNumber: string;
14164
+ apiSecret: string;
14165
+ } | undefined;
14166
+ line?: {
14167
+ channelId: string;
14168
+ channelSecret: string;
14169
+ } | undefined;
14170
+ lineRichMenuId?: string | null | undefined;
14171
+ messengerIntegrationType?: "own" | "business" | undefined;
14172
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
14173
+ isCSATEnabled?: boolean | undefined;
14174
+ };
14175
+ status: boolean;
14176
+ createdAt: Date;
14177
+ updatedAt: Date;
14178
+ deletedAt: Date | null;
14179
+ actor: {
14180
+ name: string;
14181
+ id: string;
14182
+ address: string | null;
14183
+ email: string;
14184
+ createdAt: Date;
14185
+ updatedAt: Date;
14186
+ deletedAt: Date | null;
14187
+ emailVerifiedAt: Date | null;
14188
+ password: string;
14189
+ phone: string | null;
14190
+ notificationCount: number | null;
14191
+ roles: {
14192
+ id: string;
14193
+ description: string | null;
14194
+ createdAt: Date;
14195
+ updatedAt: Date;
14196
+ deletedAt: Date | null;
14197
+ systemName: string;
14198
+ displayName: string;
14199
+ permissions: {
14200
+ id: string;
14201
+ description: string | null;
14202
+ createdAt: Date;
14203
+ updatedAt: Date;
14204
+ deletedAt: Date | null;
14205
+ systemName: string;
14206
+ displayName: string;
14207
+ }[];
14208
+ }[];
14209
+ extension: {
14210
+ id: string;
14211
+ createdAt: Date;
14212
+ updatedAt: Date;
14213
+ deletedAt: Date | null;
14214
+ userId: string | null;
14215
+ sipServerUrl: string;
14216
+ sipUserName: string;
14217
+ webphoneLoginUser: string;
14218
+ extensionId: string | null;
14219
+ extensionName: string;
14220
+ telephonySignature: string | null;
14221
+ };
14222
+ };
14223
+ brandName: string;
14224
+ platformId: string;
14225
+ isReloginRequired: boolean;
14226
+ connectedUserName: string;
14227
+ connectedUserId: string;
14228
+ botpressBot: {
14229
+ name: string;
14230
+ id: string;
14231
+ accessToken: string;
14232
+ botId: string;
14233
+ integrationId: string;
14234
+ } | null;
14235
+ }, {
14236
+ name: string;
14237
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
14238
+ id: string;
14239
+ metadata: {
14240
+ name: string;
14241
+ id: string;
14242
+ accessToken?: string | undefined;
14243
+ channelSecret?: string | undefined;
14244
+ additionalCredentials?: any;
14245
+ senderId?: string | undefined;
14246
+ whatsapp?: {
14247
+ wabaBusinessId?: string | null | undefined;
14248
+ wabaExternalId?: string | null | undefined;
14249
+ phoneNumberId?: string | null | undefined;
14250
+ email?: string | null | undefined;
14251
+ clientId?: string | null | undefined;
14252
+ channelId?: string | null | undefined;
14253
+ waapiInstanceId?: string | null | undefined;
14254
+ qr?: string | null | undefined;
14255
+ status?: "active" | "pending" | "waapi-qr" | undefined;
14256
+ apiKey?: string | undefined;
14257
+ tier?: "basic" | "regular" | "premium" | undefined;
14258
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
14259
+ } | undefined;
14260
+ vonageCredentials?: {
14261
+ apiKey: string;
14262
+ mobileNumber: string;
14263
+ apiSecret: string;
14264
+ } | undefined;
14265
+ line?: {
14266
+ channelId: string;
14267
+ channelSecret: string;
14268
+ } | undefined;
14269
+ lineRichMenuId?: string | null | undefined;
14270
+ messengerIntegrationType?: "own" | "business" | undefined;
14271
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
14272
+ isCSATEnabled?: boolean | undefined;
14273
+ };
14274
+ status: boolean;
14275
+ createdAt: Date;
14276
+ updatedAt: Date;
14277
+ deletedAt: Date | null;
14278
+ actor: {
14279
+ name: string;
14280
+ id: string;
14281
+ address: string | null;
14282
+ email: string;
14283
+ createdAt: Date;
14284
+ updatedAt: Date;
14285
+ deletedAt: Date | null;
14286
+ emailVerifiedAt: Date | null;
14287
+ password: string;
14288
+ phone: string | null;
14289
+ notificationCount: number | null;
14290
+ roles: {
14291
+ id: string;
14292
+ description: string | null;
14293
+ createdAt: Date;
14294
+ updatedAt: Date;
14295
+ deletedAt: Date | null;
14296
+ systemName: string;
14297
+ displayName: string;
14298
+ permissions: {
14299
+ id: string;
14300
+ description: string | null;
14301
+ createdAt: Date;
14302
+ updatedAt: Date;
14303
+ deletedAt: Date | null;
14304
+ systemName: string;
14305
+ displayName: string;
14306
+ }[];
14307
+ }[];
14308
+ extension: {
14309
+ id: string;
14310
+ createdAt: Date;
14311
+ updatedAt: Date;
14312
+ deletedAt: Date | null;
14313
+ userId: string | null;
14314
+ sipServerUrl: string;
14315
+ sipUserName: string;
14316
+ webphoneLoginUser: string;
14317
+ extensionId: string | null;
14318
+ extensionName: string;
14319
+ telephonySignature: string | null;
14320
+ };
14321
+ };
14322
+ brandName: string;
14323
+ platformId: string;
14324
+ isReloginRequired: boolean;
14325
+ connectedUserName: string;
14326
+ connectedUserId: string;
14327
+ botpressBot: {
14328
+ name: string;
14329
+ id: string;
14330
+ accessToken: string;
14331
+ botId: string;
14332
+ integrationId: string;
14333
+ } | null;
14334
+ }>;
14335
+ }, "strip", z.ZodTypeAny, {
14336
+ channel: {
14337
+ name: string;
14338
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
14339
+ id: string;
14340
+ metadata: {
14341
+ name: string;
14342
+ id: string;
14343
+ accessToken?: string | undefined;
14344
+ channelSecret?: string | undefined;
14345
+ additionalCredentials?: any;
14346
+ senderId?: string | undefined;
14347
+ whatsapp?: {
14348
+ wabaBusinessId?: string | null | undefined;
14349
+ wabaExternalId?: string | null | undefined;
14350
+ phoneNumberId?: string | null | undefined;
14351
+ email?: string | null | undefined;
14352
+ clientId?: string | null | undefined;
14353
+ channelId?: string | null | undefined;
14354
+ waapiInstanceId?: string | null | undefined;
14355
+ qr?: string | null | undefined;
14356
+ status?: "active" | "pending" | "waapi-qr" | undefined;
14357
+ apiKey?: string | undefined;
14358
+ tier?: "basic" | "regular" | "premium" | undefined;
14359
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
14360
+ } | undefined;
14361
+ vonageCredentials?: {
14362
+ apiKey: string;
14363
+ mobileNumber: string;
14364
+ apiSecret: string;
14365
+ } | undefined;
14366
+ line?: {
14367
+ channelId: string;
14368
+ channelSecret: string;
14369
+ } | undefined;
14370
+ lineRichMenuId?: string | null | undefined;
14371
+ messengerIntegrationType?: "own" | "business" | undefined;
14372
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
14373
+ isCSATEnabled?: boolean | undefined;
14374
+ };
14375
+ status: boolean;
14376
+ createdAt: Date;
14377
+ updatedAt: Date;
14378
+ deletedAt: Date | null;
14379
+ actor: {
14380
+ name: string;
14381
+ id: string;
14382
+ address: string | null;
14383
+ email: string;
14384
+ createdAt: Date;
14385
+ updatedAt: Date;
14386
+ deletedAt: Date | null;
14387
+ emailVerifiedAt: Date | null;
14388
+ password: string;
14389
+ phone: string | null;
14390
+ notificationCount: number | null;
14391
+ roles: {
14392
+ id: string;
14393
+ description: string | null;
14394
+ createdAt: Date;
14395
+ updatedAt: Date;
14396
+ deletedAt: Date | null;
14397
+ systemName: string;
14398
+ displayName: string;
14399
+ permissions: {
14400
+ id: string;
14401
+ description: string | null;
14402
+ createdAt: Date;
14403
+ updatedAt: Date;
14404
+ deletedAt: Date | null;
14405
+ systemName: string;
14406
+ displayName: string;
14407
+ }[];
14408
+ }[];
14409
+ extension: {
14410
+ id: string;
14411
+ createdAt: Date;
14412
+ updatedAt: Date;
14413
+ deletedAt: Date | null;
14414
+ userId: string | null;
14415
+ sipServerUrl: string;
14416
+ sipUserName: string;
14417
+ webphoneLoginUser: string;
14418
+ extensionId: string | null;
14419
+ extensionName: string;
14420
+ telephonySignature: string | null;
14421
+ };
14422
+ };
14423
+ brandName: string;
14424
+ platformId: string;
14425
+ isReloginRequired: boolean;
14426
+ connectedUserName: string;
14427
+ connectedUserId: string;
14428
+ botpressBot: {
14429
+ name: string;
14430
+ id: string;
14431
+ accessToken: string;
14432
+ botId: string;
14433
+ integrationId: string;
14434
+ } | null;
14435
+ };
14436
+ requestId: string;
14437
+ }, {
14438
+ channel: {
14439
+ name: string;
14440
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | "klink_chat";
14441
+ id: string;
14442
+ metadata: {
14443
+ name: string;
14444
+ id: string;
14445
+ accessToken?: string | undefined;
14446
+ channelSecret?: string | undefined;
14447
+ additionalCredentials?: any;
14448
+ senderId?: string | undefined;
14449
+ whatsapp?: {
14450
+ wabaBusinessId?: string | null | undefined;
14451
+ wabaExternalId?: string | null | undefined;
14452
+ phoneNumberId?: string | null | undefined;
14453
+ email?: string | null | undefined;
14454
+ clientId?: string | null | undefined;
14455
+ channelId?: string | null | undefined;
14456
+ waapiInstanceId?: string | null | undefined;
14457
+ qr?: string | null | undefined;
14458
+ status?: "active" | "pending" | "waapi-qr" | undefined;
14459
+ apiKey?: string | undefined;
14460
+ tier?: "basic" | "regular" | "premium" | undefined;
14461
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
14462
+ } | undefined;
14463
+ vonageCredentials?: {
14464
+ apiKey: string;
14465
+ mobileNumber: string;
14466
+ apiSecret: string;
14467
+ } | undefined;
14468
+ line?: {
14469
+ channelId: string;
14470
+ channelSecret: string;
14471
+ } | undefined;
14472
+ lineRichMenuId?: string | null | undefined;
14473
+ messengerIntegrationType?: "own" | "business" | undefined;
14474
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
14475
+ isCSATEnabled?: boolean | undefined;
14476
+ };
14477
+ status: boolean;
14478
+ createdAt: Date;
14479
+ updatedAt: Date;
14480
+ deletedAt: Date | null;
14481
+ actor: {
14482
+ name: string;
14483
+ id: string;
14484
+ address: string | null;
14485
+ email: string;
14486
+ createdAt: Date;
14487
+ updatedAt: Date;
14488
+ deletedAt: Date | null;
14489
+ emailVerifiedAt: Date | null;
14490
+ password: string;
14491
+ phone: string | null;
14492
+ notificationCount: number | null;
14493
+ roles: {
14494
+ id: string;
14495
+ description: string | null;
14496
+ createdAt: Date;
14497
+ updatedAt: Date;
14498
+ deletedAt: Date | null;
14499
+ systemName: string;
14500
+ displayName: string;
14501
+ permissions: {
14502
+ id: string;
14503
+ description: string | null;
14504
+ createdAt: Date;
14505
+ updatedAt: Date;
14506
+ deletedAt: Date | null;
14507
+ systemName: string;
14508
+ displayName: string;
14509
+ }[];
14510
+ }[];
14511
+ extension: {
14512
+ id: string;
14513
+ createdAt: Date;
14514
+ updatedAt: Date;
14515
+ deletedAt: Date | null;
14516
+ userId: string | null;
14517
+ sipServerUrl: string;
14518
+ sipUserName: string;
14519
+ webphoneLoginUser: string;
14520
+ extensionId: string | null;
14521
+ extensionName: string;
14522
+ telephonySignature: string | null;
14523
+ };
14524
+ };
14525
+ brandName: string;
14526
+ platformId: string;
14527
+ isReloginRequired: boolean;
14528
+ connectedUserName: string;
14529
+ connectedUserId: string;
14530
+ botpressBot: {
14531
+ name: string;
14532
+ id: string;
14533
+ accessToken: string;
14534
+ botId: string;
14535
+ integrationId: string;
14536
+ } | null;
14537
+ };
14538
+ requestId: string;
14539
+ }>;
14540
+ 400: z.ZodObject<{
14541
+ message: z.ZodString;
14542
+ error: z.ZodAny;
14543
+ }, "strip", z.ZodTypeAny, {
14544
+ message: string;
14545
+ error?: any;
14546
+ }, {
14547
+ message: string;
14548
+ error?: any;
14549
+ }>;
14550
+ 500: z.ZodObject<{
14551
+ message: z.ZodString;
14552
+ error: z.ZodAny;
14553
+ }, "strip", z.ZodTypeAny, {
14554
+ message: string;
14555
+ error?: any;
14556
+ }, {
14557
+ message: string;
14558
+ error?: any;
14559
+ }>;
14560
+ };
14561
+ path: "klinkchat/connect";
14562
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
14563
+ 'x-tenant': z.ZodString;
14564
+ 'x-service-token': z.ZodString;
14565
+ 'x-code': z.ZodOptional<z.ZodString>;
14566
+ 'x-client-timezone': z.ZodDefault<z.ZodString>;
14567
+ }, "strip", z.ZodTypeAny, {
14568
+ 'x-tenant': string;
14569
+ 'x-service-token': string;
14570
+ 'x-client-timezone': string;
14571
+ 'x-code'?: string | undefined;
14572
+ }, {
14573
+ 'x-tenant': string;
14574
+ 'x-service-token': string;
14575
+ 'x-code'?: string | undefined;
14576
+ 'x-client-timezone'?: string | undefined;
14577
+ }>>>;
14578
+ };
14579
+ };
13740
14580
  };
13741
14581
  export declare const channelFacebookFeedContract: {
13742
14582
  getPages: {