@kl1/contracts 1.2.43-uat → 1.2.44-uat

Sign up to get free protection for your applications and to get access to all the features.
@@ -866,6 +866,2879 @@ export declare const smsContract: {
866
866
  };
867
867
  path: "/connect";
868
868
  };
869
+ disconnectSMSChannel: {
870
+ body: z.ZodObject<{
871
+ id: z.ZodOptional<z.ZodString>;
872
+ createdAt: z.ZodOptional<z.ZodDate>;
873
+ updatedAt: z.ZodOptional<z.ZodDate>;
874
+ deletedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
875
+ name: z.ZodOptional<z.ZodString>;
876
+ type: z.ZodOptional<z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>>;
877
+ metadata: z.ZodOptional<z.ZodObject<{
878
+ id: z.ZodString;
879
+ name: z.ZodString;
880
+ accessToken: z.ZodOptional<z.ZodString>;
881
+ channelSecret: z.ZodOptional<z.ZodString>;
882
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
883
+ senderId: z.ZodOptional<z.ZodString>;
884
+ whatsapp: z.ZodOptional<z.ZodObject<{
885
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
886
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
887
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
888
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
889
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
890
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
891
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
892
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
893
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
894
+ apiKey: z.ZodOptional<z.ZodString>;
895
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
896
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
897
+ }, "strip", z.ZodTypeAny, {
898
+ wabaBusinessId?: string | null | undefined;
899
+ wabaExternalId?: string | null | undefined;
900
+ phoneNumberId?: string | null | undefined;
901
+ email?: string | null | undefined;
902
+ clientId?: string | null | undefined;
903
+ channelId?: string | null | undefined;
904
+ waapiInstanceId?: string | null | undefined;
905
+ qr?: string | null | undefined;
906
+ status?: "active" | "pending" | "waapi-qr" | undefined;
907
+ apiKey?: string | undefined;
908
+ tier?: "basic" | "regular" | "premium" | undefined;
909
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
910
+ }, {
911
+ wabaBusinessId?: string | null | undefined;
912
+ wabaExternalId?: string | null | undefined;
913
+ phoneNumberId?: string | null | undefined;
914
+ email?: string | null | undefined;
915
+ clientId?: string | null | undefined;
916
+ channelId?: string | null | undefined;
917
+ waapiInstanceId?: string | null | undefined;
918
+ qr?: string | null | undefined;
919
+ status?: "active" | "pending" | "waapi-qr" | undefined;
920
+ apiKey?: string | undefined;
921
+ tier?: "basic" | "regular" | "premium" | undefined;
922
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
923
+ }>>;
924
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
925
+ mobileNumber: z.ZodString;
926
+ apiKey: z.ZodString;
927
+ apiSecret: z.ZodString;
928
+ }, "strip", z.ZodTypeAny, {
929
+ apiKey: string;
930
+ mobileNumber: string;
931
+ apiSecret: string;
932
+ }, {
933
+ apiKey: string;
934
+ mobileNumber: string;
935
+ apiSecret: string;
936
+ }>>;
937
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
938
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
939
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ name: string;
942
+ id: string;
943
+ accessToken?: string | undefined;
944
+ channelSecret?: string | undefined;
945
+ additionalCredentials?: any;
946
+ senderId?: string | undefined;
947
+ whatsapp?: {
948
+ wabaBusinessId?: string | null | undefined;
949
+ wabaExternalId?: string | null | undefined;
950
+ phoneNumberId?: string | null | undefined;
951
+ email?: string | null | undefined;
952
+ clientId?: string | null | undefined;
953
+ channelId?: string | null | undefined;
954
+ waapiInstanceId?: string | null | undefined;
955
+ qr?: string | null | undefined;
956
+ status?: "active" | "pending" | "waapi-qr" | undefined;
957
+ apiKey?: string | undefined;
958
+ tier?: "basic" | "regular" | "premium" | undefined;
959
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
960
+ } | undefined;
961
+ vonageCredentials?: {
962
+ apiKey: string;
963
+ mobileNumber: string;
964
+ apiSecret: string;
965
+ } | undefined;
966
+ lineRichMenuId?: string | null | undefined;
967
+ messengerIntegrationType?: "own" | "business" | undefined;
968
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
969
+ }, {
970
+ name: string;
971
+ id: string;
972
+ accessToken?: string | undefined;
973
+ channelSecret?: string | undefined;
974
+ additionalCredentials?: any;
975
+ senderId?: string | undefined;
976
+ whatsapp?: {
977
+ wabaBusinessId?: string | null | undefined;
978
+ wabaExternalId?: string | null | undefined;
979
+ phoneNumberId?: string | null | undefined;
980
+ email?: string | null | undefined;
981
+ clientId?: string | null | undefined;
982
+ channelId?: string | null | undefined;
983
+ waapiInstanceId?: string | null | undefined;
984
+ qr?: string | null | undefined;
985
+ status?: "active" | "pending" | "waapi-qr" | undefined;
986
+ apiKey?: string | undefined;
987
+ tier?: "basic" | "regular" | "premium" | undefined;
988
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
989
+ } | undefined;
990
+ vonageCredentials?: {
991
+ apiKey: string;
992
+ mobileNumber: string;
993
+ apiSecret: string;
994
+ } | undefined;
995
+ lineRichMenuId?: string | null | undefined;
996
+ messengerIntegrationType?: "own" | "business" | undefined;
997
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
998
+ }>>;
999
+ brandName: z.ZodOptional<z.ZodString>;
1000
+ platformId: z.ZodOptional<z.ZodString>;
1001
+ status: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>>;
1002
+ isReloginRequired: z.ZodOptional<z.ZodBoolean>;
1003
+ connectedUserName: z.ZodOptional<z.ZodString>;
1004
+ connectedUserId: z.ZodOptional<z.ZodString>;
1005
+ botpressBot: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1006
+ id: z.ZodString;
1007
+ name: z.ZodString;
1008
+ botId: z.ZodString;
1009
+ integrationId: z.ZodString;
1010
+ accessToken: z.ZodString;
1011
+ }, "strip", z.ZodTypeAny, {
1012
+ name: string;
1013
+ id: string;
1014
+ accessToken: string;
1015
+ botId: string;
1016
+ integrationId: string;
1017
+ }, {
1018
+ name: string;
1019
+ id: string;
1020
+ accessToken: string;
1021
+ botId: string;
1022
+ integrationId: string;
1023
+ }>>>;
1024
+ actor: z.ZodOptional<z.ZodObject<{
1025
+ id: z.ZodString;
1026
+ createdAt: z.ZodDate;
1027
+ updatedAt: z.ZodDate;
1028
+ deletedAt: z.ZodNullable<z.ZodDate>;
1029
+ name: z.ZodString;
1030
+ email: z.ZodString;
1031
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1032
+ password: z.ZodString;
1033
+ address: z.ZodNullable<z.ZodString>;
1034
+ phone: z.ZodNullable<z.ZodString>;
1035
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1036
+ roles: z.ZodArray<z.ZodObject<{
1037
+ id: z.ZodString;
1038
+ createdAt: z.ZodDate;
1039
+ updatedAt: z.ZodDate;
1040
+ deletedAt: z.ZodNullable<z.ZodDate>;
1041
+ systemName: z.ZodString;
1042
+ displayName: z.ZodString;
1043
+ description: z.ZodNullable<z.ZodString>;
1044
+ permissions: z.ZodArray<z.ZodObject<{
1045
+ id: z.ZodString;
1046
+ createdAt: z.ZodDate;
1047
+ updatedAt: z.ZodDate;
1048
+ deletedAt: z.ZodNullable<z.ZodDate>;
1049
+ systemName: z.ZodString;
1050
+ displayName: z.ZodString;
1051
+ description: z.ZodNullable<z.ZodString>;
1052
+ }, "strip", z.ZodTypeAny, {
1053
+ id: string;
1054
+ description: string | null;
1055
+ createdAt: Date;
1056
+ updatedAt: Date;
1057
+ deletedAt: Date | null;
1058
+ systemName: string;
1059
+ displayName: string;
1060
+ }, {
1061
+ id: string;
1062
+ description: string | null;
1063
+ createdAt: Date;
1064
+ updatedAt: Date;
1065
+ deletedAt: Date | null;
1066
+ systemName: string;
1067
+ displayName: string;
1068
+ }>, "many">;
1069
+ }, "strip", z.ZodTypeAny, {
1070
+ id: string;
1071
+ description: string | null;
1072
+ createdAt: Date;
1073
+ updatedAt: Date;
1074
+ deletedAt: Date | null;
1075
+ systemName: string;
1076
+ displayName: string;
1077
+ permissions: {
1078
+ id: string;
1079
+ description: string | null;
1080
+ createdAt: Date;
1081
+ updatedAt: Date;
1082
+ deletedAt: Date | null;
1083
+ systemName: string;
1084
+ displayName: string;
1085
+ }[];
1086
+ }, {
1087
+ id: string;
1088
+ description: string | null;
1089
+ createdAt: Date;
1090
+ updatedAt: Date;
1091
+ deletedAt: Date | null;
1092
+ systemName: string;
1093
+ displayName: string;
1094
+ permissions: {
1095
+ id: string;
1096
+ description: string | null;
1097
+ createdAt: Date;
1098
+ updatedAt: Date;
1099
+ deletedAt: Date | null;
1100
+ systemName: string;
1101
+ displayName: string;
1102
+ }[];
1103
+ }>, "many">;
1104
+ extension: z.ZodObject<{
1105
+ id: z.ZodString;
1106
+ createdAt: z.ZodDate;
1107
+ updatedAt: z.ZodDate;
1108
+ deletedAt: z.ZodNullable<z.ZodDate>;
1109
+ userId: z.ZodNullable<z.ZodString>;
1110
+ sipServerUrl: z.ZodString;
1111
+ sipUserName: z.ZodString;
1112
+ webphoneLoginUser: z.ZodString;
1113
+ extensionId: z.ZodNullable<z.ZodString>;
1114
+ extensionName: z.ZodString;
1115
+ telephonySignature: z.ZodNullable<z.ZodString>;
1116
+ }, "strip", z.ZodTypeAny, {
1117
+ id: string;
1118
+ createdAt: Date;
1119
+ updatedAt: Date;
1120
+ deletedAt: Date | null;
1121
+ userId: string | null;
1122
+ sipServerUrl: string;
1123
+ sipUserName: string;
1124
+ webphoneLoginUser: string;
1125
+ extensionId: string | null;
1126
+ extensionName: string;
1127
+ telephonySignature: string | null;
1128
+ }, {
1129
+ id: string;
1130
+ createdAt: Date;
1131
+ updatedAt: Date;
1132
+ deletedAt: Date | null;
1133
+ userId: string | null;
1134
+ sipServerUrl: string;
1135
+ sipUserName: string;
1136
+ webphoneLoginUser: string;
1137
+ extensionId: string | null;
1138
+ extensionName: string;
1139
+ telephonySignature: string | null;
1140
+ }>;
1141
+ }, "strip", z.ZodTypeAny, {
1142
+ name: string;
1143
+ id: string;
1144
+ address: string | null;
1145
+ email: string;
1146
+ createdAt: Date;
1147
+ updatedAt: Date;
1148
+ deletedAt: Date | null;
1149
+ emailVerifiedAt: Date | null;
1150
+ password: string;
1151
+ phone: string | null;
1152
+ notificationCount: number | null;
1153
+ roles: {
1154
+ id: string;
1155
+ description: string | null;
1156
+ createdAt: Date;
1157
+ updatedAt: Date;
1158
+ deletedAt: Date | null;
1159
+ systemName: string;
1160
+ displayName: string;
1161
+ permissions: {
1162
+ id: string;
1163
+ description: string | null;
1164
+ createdAt: Date;
1165
+ updatedAt: Date;
1166
+ deletedAt: Date | null;
1167
+ systemName: string;
1168
+ displayName: string;
1169
+ }[];
1170
+ }[];
1171
+ extension: {
1172
+ id: string;
1173
+ createdAt: Date;
1174
+ updatedAt: Date;
1175
+ deletedAt: Date | null;
1176
+ userId: string | null;
1177
+ sipServerUrl: string;
1178
+ sipUserName: string;
1179
+ webphoneLoginUser: string;
1180
+ extensionId: string | null;
1181
+ extensionName: string;
1182
+ telephonySignature: string | null;
1183
+ };
1184
+ }, {
1185
+ name: string;
1186
+ id: string;
1187
+ address: string | null;
1188
+ email: string;
1189
+ createdAt: Date;
1190
+ updatedAt: Date;
1191
+ deletedAt: Date | null;
1192
+ emailVerifiedAt: Date | null;
1193
+ password: string;
1194
+ phone: string | null;
1195
+ notificationCount: number | null;
1196
+ roles: {
1197
+ id: string;
1198
+ description: string | null;
1199
+ createdAt: Date;
1200
+ updatedAt: Date;
1201
+ deletedAt: Date | null;
1202
+ systemName: string;
1203
+ displayName: string;
1204
+ permissions: {
1205
+ id: string;
1206
+ description: string | null;
1207
+ createdAt: Date;
1208
+ updatedAt: Date;
1209
+ deletedAt: Date | null;
1210
+ systemName: string;
1211
+ displayName: string;
1212
+ }[];
1213
+ }[];
1214
+ extension: {
1215
+ id: string;
1216
+ createdAt: Date;
1217
+ updatedAt: Date;
1218
+ deletedAt: Date | null;
1219
+ userId: string | null;
1220
+ sipServerUrl: string;
1221
+ sipUserName: string;
1222
+ webphoneLoginUser: string;
1223
+ extensionId: string | null;
1224
+ extensionName: string;
1225
+ telephonySignature: string | null;
1226
+ };
1227
+ }>>;
1228
+ }, "strip", z.ZodTypeAny, {
1229
+ id?: string | undefined;
1230
+ createdAt?: Date | undefined;
1231
+ updatedAt?: Date | undefined;
1232
+ deletedAt?: Date | null | undefined;
1233
+ name?: string | undefined;
1234
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | undefined;
1235
+ metadata?: {
1236
+ name: string;
1237
+ id: string;
1238
+ accessToken?: string | undefined;
1239
+ channelSecret?: string | undefined;
1240
+ additionalCredentials?: any;
1241
+ senderId?: string | undefined;
1242
+ whatsapp?: {
1243
+ wabaBusinessId?: string | null | undefined;
1244
+ wabaExternalId?: string | null | undefined;
1245
+ phoneNumberId?: string | null | undefined;
1246
+ email?: string | null | undefined;
1247
+ clientId?: string | null | undefined;
1248
+ channelId?: string | null | undefined;
1249
+ waapiInstanceId?: string | null | undefined;
1250
+ qr?: string | null | undefined;
1251
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1252
+ apiKey?: string | undefined;
1253
+ tier?: "basic" | "regular" | "premium" | undefined;
1254
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1255
+ } | undefined;
1256
+ vonageCredentials?: {
1257
+ apiKey: string;
1258
+ mobileNumber: string;
1259
+ apiSecret: string;
1260
+ } | undefined;
1261
+ lineRichMenuId?: string | null | undefined;
1262
+ messengerIntegrationType?: "own" | "business" | undefined;
1263
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1264
+ } | undefined;
1265
+ brandName?: string | undefined;
1266
+ platformId?: string | undefined;
1267
+ status?: boolean | undefined;
1268
+ isReloginRequired?: boolean | undefined;
1269
+ connectedUserName?: string | undefined;
1270
+ connectedUserId?: string | undefined;
1271
+ botpressBot?: {
1272
+ name: string;
1273
+ id: string;
1274
+ accessToken: string;
1275
+ botId: string;
1276
+ integrationId: string;
1277
+ } | null | undefined;
1278
+ actor?: {
1279
+ name: string;
1280
+ id: string;
1281
+ address: string | null;
1282
+ email: string;
1283
+ createdAt: Date;
1284
+ updatedAt: Date;
1285
+ deletedAt: Date | null;
1286
+ emailVerifiedAt: Date | null;
1287
+ password: string;
1288
+ phone: string | null;
1289
+ notificationCount: number | null;
1290
+ roles: {
1291
+ id: string;
1292
+ description: string | null;
1293
+ createdAt: Date;
1294
+ updatedAt: Date;
1295
+ deletedAt: Date | null;
1296
+ systemName: string;
1297
+ displayName: string;
1298
+ permissions: {
1299
+ id: string;
1300
+ description: string | null;
1301
+ createdAt: Date;
1302
+ updatedAt: Date;
1303
+ deletedAt: Date | null;
1304
+ systemName: string;
1305
+ displayName: string;
1306
+ }[];
1307
+ }[];
1308
+ extension: {
1309
+ id: string;
1310
+ createdAt: Date;
1311
+ updatedAt: Date;
1312
+ deletedAt: Date | null;
1313
+ userId: string | null;
1314
+ sipServerUrl: string;
1315
+ sipUserName: string;
1316
+ webphoneLoginUser: string;
1317
+ extensionId: string | null;
1318
+ extensionName: string;
1319
+ telephonySignature: string | null;
1320
+ };
1321
+ } | undefined;
1322
+ }, {
1323
+ id?: string | undefined;
1324
+ createdAt?: Date | undefined;
1325
+ updatedAt?: Date | undefined;
1326
+ deletedAt?: Date | null | undefined;
1327
+ name?: string | undefined;
1328
+ type?: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage" | undefined;
1329
+ metadata?: {
1330
+ name: string;
1331
+ id: string;
1332
+ accessToken?: string | undefined;
1333
+ channelSecret?: string | undefined;
1334
+ additionalCredentials?: any;
1335
+ senderId?: string | undefined;
1336
+ whatsapp?: {
1337
+ wabaBusinessId?: string | null | undefined;
1338
+ wabaExternalId?: string | null | undefined;
1339
+ phoneNumberId?: string | null | undefined;
1340
+ email?: string | null | undefined;
1341
+ clientId?: string | null | undefined;
1342
+ channelId?: string | null | undefined;
1343
+ waapiInstanceId?: string | null | undefined;
1344
+ qr?: string | null | undefined;
1345
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1346
+ apiKey?: string | undefined;
1347
+ tier?: "basic" | "regular" | "premium" | undefined;
1348
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1349
+ } | undefined;
1350
+ vonageCredentials?: {
1351
+ apiKey: string;
1352
+ mobileNumber: string;
1353
+ apiSecret: string;
1354
+ } | undefined;
1355
+ lineRichMenuId?: string | null | undefined;
1356
+ messengerIntegrationType?: "own" | "business" | undefined;
1357
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1358
+ } | undefined;
1359
+ brandName?: string | undefined;
1360
+ platformId?: string | undefined;
1361
+ status?: boolean | undefined;
1362
+ isReloginRequired?: boolean | undefined;
1363
+ connectedUserName?: string | undefined;
1364
+ connectedUserId?: string | undefined;
1365
+ botpressBot?: {
1366
+ name: string;
1367
+ id: string;
1368
+ accessToken: string;
1369
+ botId: string;
1370
+ integrationId: string;
1371
+ } | null | undefined;
1372
+ actor?: {
1373
+ name: string;
1374
+ id: string;
1375
+ address: string | null;
1376
+ email: string;
1377
+ createdAt: Date;
1378
+ updatedAt: Date;
1379
+ deletedAt: Date | null;
1380
+ emailVerifiedAt: Date | null;
1381
+ password: string;
1382
+ phone: string | null;
1383
+ notificationCount: number | null;
1384
+ roles: {
1385
+ id: string;
1386
+ description: string | null;
1387
+ createdAt: Date;
1388
+ updatedAt: Date;
1389
+ deletedAt: Date | null;
1390
+ systemName: string;
1391
+ displayName: string;
1392
+ permissions: {
1393
+ id: string;
1394
+ description: string | null;
1395
+ createdAt: Date;
1396
+ updatedAt: Date;
1397
+ deletedAt: Date | null;
1398
+ systemName: string;
1399
+ displayName: string;
1400
+ }[];
1401
+ }[];
1402
+ extension: {
1403
+ id: string;
1404
+ createdAt: Date;
1405
+ updatedAt: Date;
1406
+ deletedAt: Date | null;
1407
+ userId: string | null;
1408
+ sipServerUrl: string;
1409
+ sipUserName: string;
1410
+ webphoneLoginUser: string;
1411
+ extensionId: string | null;
1412
+ extensionName: string;
1413
+ telephonySignature: string | null;
1414
+ };
1415
+ } | undefined;
1416
+ }>;
1417
+ method: "POST";
1418
+ responses: {
1419
+ 200: z.ZodObject<{
1420
+ requestId: z.ZodString;
1421
+ channel: z.ZodObject<{
1422
+ id: z.ZodString;
1423
+ createdAt: z.ZodDate;
1424
+ updatedAt: z.ZodDate;
1425
+ deletedAt: z.ZodNullable<z.ZodDate>;
1426
+ name: z.ZodString;
1427
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
1428
+ metadata: z.ZodObject<{
1429
+ id: z.ZodString;
1430
+ name: z.ZodString;
1431
+ accessToken: z.ZodOptional<z.ZodString>;
1432
+ channelSecret: z.ZodOptional<z.ZodString>;
1433
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
1434
+ senderId: z.ZodOptional<z.ZodString>;
1435
+ whatsapp: z.ZodOptional<z.ZodObject<{
1436
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1437
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1438
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1439
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1440
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1441
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1442
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1443
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1444
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
1445
+ apiKey: z.ZodOptional<z.ZodString>;
1446
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
1447
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
1448
+ }, "strip", z.ZodTypeAny, {
1449
+ wabaBusinessId?: string | null | undefined;
1450
+ wabaExternalId?: string | null | undefined;
1451
+ phoneNumberId?: string | null | undefined;
1452
+ email?: string | null | undefined;
1453
+ clientId?: string | null | undefined;
1454
+ channelId?: string | null | undefined;
1455
+ waapiInstanceId?: string | null | undefined;
1456
+ qr?: string | null | undefined;
1457
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1458
+ apiKey?: string | undefined;
1459
+ tier?: "basic" | "regular" | "premium" | undefined;
1460
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1461
+ }, {
1462
+ wabaBusinessId?: string | null | undefined;
1463
+ wabaExternalId?: string | null | undefined;
1464
+ phoneNumberId?: string | null | undefined;
1465
+ email?: string | null | undefined;
1466
+ clientId?: string | null | undefined;
1467
+ channelId?: string | null | undefined;
1468
+ waapiInstanceId?: string | null | undefined;
1469
+ qr?: string | null | undefined;
1470
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1471
+ apiKey?: string | undefined;
1472
+ tier?: "basic" | "regular" | "premium" | undefined;
1473
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1474
+ }>>;
1475
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
1476
+ mobileNumber: z.ZodString;
1477
+ apiKey: z.ZodString;
1478
+ apiSecret: z.ZodString;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ apiKey: string;
1481
+ mobileNumber: string;
1482
+ apiSecret: string;
1483
+ }, {
1484
+ apiKey: string;
1485
+ mobileNumber: string;
1486
+ apiSecret: string;
1487
+ }>>;
1488
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1489
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
1490
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ name: string;
1493
+ id: string;
1494
+ accessToken?: string | undefined;
1495
+ channelSecret?: string | undefined;
1496
+ additionalCredentials?: any;
1497
+ senderId?: string | undefined;
1498
+ whatsapp?: {
1499
+ wabaBusinessId?: string | null | undefined;
1500
+ wabaExternalId?: string | null | undefined;
1501
+ phoneNumberId?: string | null | undefined;
1502
+ email?: string | null | undefined;
1503
+ clientId?: string | null | undefined;
1504
+ channelId?: string | null | undefined;
1505
+ waapiInstanceId?: string | null | undefined;
1506
+ qr?: string | null | undefined;
1507
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1508
+ apiKey?: string | undefined;
1509
+ tier?: "basic" | "regular" | "premium" | undefined;
1510
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1511
+ } | undefined;
1512
+ vonageCredentials?: {
1513
+ apiKey: string;
1514
+ mobileNumber: string;
1515
+ apiSecret: string;
1516
+ } | undefined;
1517
+ lineRichMenuId?: string | null | undefined;
1518
+ messengerIntegrationType?: "own" | "business" | undefined;
1519
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1520
+ }, {
1521
+ name: string;
1522
+ id: string;
1523
+ accessToken?: string | undefined;
1524
+ channelSecret?: string | undefined;
1525
+ additionalCredentials?: any;
1526
+ senderId?: string | undefined;
1527
+ whatsapp?: {
1528
+ wabaBusinessId?: string | null | undefined;
1529
+ wabaExternalId?: string | null | undefined;
1530
+ phoneNumberId?: string | null | undefined;
1531
+ email?: string | null | undefined;
1532
+ clientId?: string | null | undefined;
1533
+ channelId?: string | null | undefined;
1534
+ waapiInstanceId?: string | null | undefined;
1535
+ qr?: string | null | undefined;
1536
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1537
+ apiKey?: string | undefined;
1538
+ tier?: "basic" | "regular" | "premium" | undefined;
1539
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1540
+ } | undefined;
1541
+ vonageCredentials?: {
1542
+ apiKey: string;
1543
+ mobileNumber: string;
1544
+ apiSecret: string;
1545
+ } | undefined;
1546
+ lineRichMenuId?: string | null | undefined;
1547
+ messengerIntegrationType?: "own" | "business" | undefined;
1548
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1549
+ }>;
1550
+ brandName: z.ZodString;
1551
+ platformId: z.ZodString;
1552
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
1553
+ isReloginRequired: z.ZodBoolean;
1554
+ connectedUserName: z.ZodString;
1555
+ connectedUserId: z.ZodString;
1556
+ botpressBot: z.ZodNullable<z.ZodObject<{
1557
+ id: z.ZodString;
1558
+ name: z.ZodString;
1559
+ botId: z.ZodString;
1560
+ integrationId: z.ZodString;
1561
+ accessToken: z.ZodString;
1562
+ }, "strip", z.ZodTypeAny, {
1563
+ name: string;
1564
+ id: string;
1565
+ accessToken: string;
1566
+ botId: string;
1567
+ integrationId: string;
1568
+ }, {
1569
+ name: string;
1570
+ id: string;
1571
+ accessToken: string;
1572
+ botId: string;
1573
+ integrationId: string;
1574
+ }>>;
1575
+ actor: z.ZodObject<{
1576
+ id: z.ZodString;
1577
+ createdAt: z.ZodDate;
1578
+ updatedAt: z.ZodDate;
1579
+ deletedAt: z.ZodNullable<z.ZodDate>;
1580
+ name: z.ZodString;
1581
+ email: z.ZodString;
1582
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
1583
+ password: z.ZodString;
1584
+ address: z.ZodNullable<z.ZodString>;
1585
+ phone: z.ZodNullable<z.ZodString>;
1586
+ notificationCount: z.ZodNullable<z.ZodNumber>;
1587
+ roles: z.ZodArray<z.ZodObject<{
1588
+ id: z.ZodString;
1589
+ createdAt: z.ZodDate;
1590
+ updatedAt: z.ZodDate;
1591
+ deletedAt: z.ZodNullable<z.ZodDate>;
1592
+ systemName: z.ZodString;
1593
+ displayName: z.ZodString;
1594
+ description: z.ZodNullable<z.ZodString>;
1595
+ permissions: z.ZodArray<z.ZodObject<{
1596
+ id: z.ZodString;
1597
+ createdAt: z.ZodDate;
1598
+ updatedAt: z.ZodDate;
1599
+ deletedAt: z.ZodNullable<z.ZodDate>;
1600
+ systemName: z.ZodString;
1601
+ displayName: z.ZodString;
1602
+ description: z.ZodNullable<z.ZodString>;
1603
+ }, "strip", z.ZodTypeAny, {
1604
+ id: string;
1605
+ description: string | null;
1606
+ createdAt: Date;
1607
+ updatedAt: Date;
1608
+ deletedAt: Date | null;
1609
+ systemName: string;
1610
+ displayName: string;
1611
+ }, {
1612
+ id: string;
1613
+ description: string | null;
1614
+ createdAt: Date;
1615
+ updatedAt: Date;
1616
+ deletedAt: Date | null;
1617
+ systemName: string;
1618
+ displayName: string;
1619
+ }>, "many">;
1620
+ }, "strip", z.ZodTypeAny, {
1621
+ id: string;
1622
+ description: string | null;
1623
+ createdAt: Date;
1624
+ updatedAt: Date;
1625
+ deletedAt: Date | null;
1626
+ systemName: string;
1627
+ displayName: string;
1628
+ permissions: {
1629
+ id: string;
1630
+ description: string | null;
1631
+ createdAt: Date;
1632
+ updatedAt: Date;
1633
+ deletedAt: Date | null;
1634
+ systemName: string;
1635
+ displayName: string;
1636
+ }[];
1637
+ }, {
1638
+ id: string;
1639
+ description: string | null;
1640
+ createdAt: Date;
1641
+ updatedAt: Date;
1642
+ deletedAt: Date | null;
1643
+ systemName: string;
1644
+ displayName: string;
1645
+ permissions: {
1646
+ id: string;
1647
+ description: string | null;
1648
+ createdAt: Date;
1649
+ updatedAt: Date;
1650
+ deletedAt: Date | null;
1651
+ systemName: string;
1652
+ displayName: string;
1653
+ }[];
1654
+ }>, "many">;
1655
+ extension: z.ZodObject<{
1656
+ id: z.ZodString;
1657
+ createdAt: z.ZodDate;
1658
+ updatedAt: z.ZodDate;
1659
+ deletedAt: z.ZodNullable<z.ZodDate>;
1660
+ userId: z.ZodNullable<z.ZodString>;
1661
+ sipServerUrl: z.ZodString;
1662
+ sipUserName: z.ZodString;
1663
+ webphoneLoginUser: z.ZodString;
1664
+ extensionId: z.ZodNullable<z.ZodString>;
1665
+ extensionName: z.ZodString;
1666
+ telephonySignature: z.ZodNullable<z.ZodString>;
1667
+ }, "strip", z.ZodTypeAny, {
1668
+ id: string;
1669
+ createdAt: Date;
1670
+ updatedAt: Date;
1671
+ deletedAt: Date | null;
1672
+ userId: string | null;
1673
+ sipServerUrl: string;
1674
+ sipUserName: string;
1675
+ webphoneLoginUser: string;
1676
+ extensionId: string | null;
1677
+ extensionName: string;
1678
+ telephonySignature: string | null;
1679
+ }, {
1680
+ id: string;
1681
+ createdAt: Date;
1682
+ updatedAt: Date;
1683
+ deletedAt: Date | null;
1684
+ userId: string | null;
1685
+ sipServerUrl: string;
1686
+ sipUserName: string;
1687
+ webphoneLoginUser: string;
1688
+ extensionId: string | null;
1689
+ extensionName: string;
1690
+ telephonySignature: string | null;
1691
+ }>;
1692
+ }, "strip", z.ZodTypeAny, {
1693
+ name: string;
1694
+ id: string;
1695
+ address: string | null;
1696
+ email: string;
1697
+ createdAt: Date;
1698
+ updatedAt: Date;
1699
+ deletedAt: Date | null;
1700
+ emailVerifiedAt: Date | null;
1701
+ password: string;
1702
+ phone: string | null;
1703
+ notificationCount: number | null;
1704
+ roles: {
1705
+ id: string;
1706
+ description: string | null;
1707
+ createdAt: Date;
1708
+ updatedAt: Date;
1709
+ deletedAt: Date | null;
1710
+ systemName: string;
1711
+ displayName: string;
1712
+ permissions: {
1713
+ id: string;
1714
+ description: string | null;
1715
+ createdAt: Date;
1716
+ updatedAt: Date;
1717
+ deletedAt: Date | null;
1718
+ systemName: string;
1719
+ displayName: string;
1720
+ }[];
1721
+ }[];
1722
+ extension: {
1723
+ id: string;
1724
+ createdAt: Date;
1725
+ updatedAt: Date;
1726
+ deletedAt: Date | null;
1727
+ userId: string | null;
1728
+ sipServerUrl: string;
1729
+ sipUserName: string;
1730
+ webphoneLoginUser: string;
1731
+ extensionId: string | null;
1732
+ extensionName: string;
1733
+ telephonySignature: string | null;
1734
+ };
1735
+ }, {
1736
+ name: string;
1737
+ id: string;
1738
+ address: string | null;
1739
+ email: string;
1740
+ createdAt: Date;
1741
+ updatedAt: Date;
1742
+ deletedAt: Date | null;
1743
+ emailVerifiedAt: Date | null;
1744
+ password: string;
1745
+ phone: string | null;
1746
+ notificationCount: number | null;
1747
+ roles: {
1748
+ id: string;
1749
+ description: string | null;
1750
+ createdAt: Date;
1751
+ updatedAt: Date;
1752
+ deletedAt: Date | null;
1753
+ systemName: string;
1754
+ displayName: string;
1755
+ permissions: {
1756
+ id: string;
1757
+ description: string | null;
1758
+ createdAt: Date;
1759
+ updatedAt: Date;
1760
+ deletedAt: Date | null;
1761
+ systemName: string;
1762
+ displayName: string;
1763
+ }[];
1764
+ }[];
1765
+ extension: {
1766
+ id: string;
1767
+ createdAt: Date;
1768
+ updatedAt: Date;
1769
+ deletedAt: Date | null;
1770
+ userId: string | null;
1771
+ sipServerUrl: string;
1772
+ sipUserName: string;
1773
+ webphoneLoginUser: string;
1774
+ extensionId: string | null;
1775
+ extensionName: string;
1776
+ telephonySignature: string | null;
1777
+ };
1778
+ }>;
1779
+ }, "strip", z.ZodTypeAny, {
1780
+ name: string;
1781
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1782
+ id: string;
1783
+ metadata: {
1784
+ name: string;
1785
+ id: string;
1786
+ accessToken?: string | undefined;
1787
+ channelSecret?: string | undefined;
1788
+ additionalCredentials?: any;
1789
+ senderId?: string | undefined;
1790
+ whatsapp?: {
1791
+ wabaBusinessId?: string | null | undefined;
1792
+ wabaExternalId?: string | null | undefined;
1793
+ phoneNumberId?: string | null | undefined;
1794
+ email?: string | null | undefined;
1795
+ clientId?: string | null | undefined;
1796
+ channelId?: string | null | undefined;
1797
+ waapiInstanceId?: string | null | undefined;
1798
+ qr?: string | null | undefined;
1799
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1800
+ apiKey?: string | undefined;
1801
+ tier?: "basic" | "regular" | "premium" | undefined;
1802
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1803
+ } | undefined;
1804
+ vonageCredentials?: {
1805
+ apiKey: string;
1806
+ mobileNumber: string;
1807
+ apiSecret: string;
1808
+ } | undefined;
1809
+ lineRichMenuId?: string | null | undefined;
1810
+ messengerIntegrationType?: "own" | "business" | undefined;
1811
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1812
+ };
1813
+ status: boolean;
1814
+ createdAt: Date;
1815
+ updatedAt: Date;
1816
+ deletedAt: Date | null;
1817
+ actor: {
1818
+ name: string;
1819
+ id: string;
1820
+ address: string | null;
1821
+ email: string;
1822
+ createdAt: Date;
1823
+ updatedAt: Date;
1824
+ deletedAt: Date | null;
1825
+ emailVerifiedAt: Date | null;
1826
+ password: string;
1827
+ phone: string | null;
1828
+ notificationCount: number | null;
1829
+ roles: {
1830
+ id: string;
1831
+ description: string | null;
1832
+ createdAt: Date;
1833
+ updatedAt: Date;
1834
+ deletedAt: Date | null;
1835
+ systemName: string;
1836
+ displayName: string;
1837
+ permissions: {
1838
+ id: string;
1839
+ description: string | null;
1840
+ createdAt: Date;
1841
+ updatedAt: Date;
1842
+ deletedAt: Date | null;
1843
+ systemName: string;
1844
+ displayName: string;
1845
+ }[];
1846
+ }[];
1847
+ extension: {
1848
+ id: string;
1849
+ createdAt: Date;
1850
+ updatedAt: Date;
1851
+ deletedAt: Date | null;
1852
+ userId: string | null;
1853
+ sipServerUrl: string;
1854
+ sipUserName: string;
1855
+ webphoneLoginUser: string;
1856
+ extensionId: string | null;
1857
+ extensionName: string;
1858
+ telephonySignature: string | null;
1859
+ };
1860
+ };
1861
+ brandName: string;
1862
+ platformId: string;
1863
+ isReloginRequired: boolean;
1864
+ connectedUserName: string;
1865
+ connectedUserId: string;
1866
+ botpressBot: {
1867
+ name: string;
1868
+ id: string;
1869
+ accessToken: string;
1870
+ botId: string;
1871
+ integrationId: string;
1872
+ } | null;
1873
+ }, {
1874
+ name: string;
1875
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1876
+ id: string;
1877
+ metadata: {
1878
+ name: string;
1879
+ id: string;
1880
+ accessToken?: string | undefined;
1881
+ channelSecret?: string | undefined;
1882
+ additionalCredentials?: any;
1883
+ senderId?: string | undefined;
1884
+ whatsapp?: {
1885
+ wabaBusinessId?: string | null | undefined;
1886
+ wabaExternalId?: string | null | undefined;
1887
+ phoneNumberId?: string | null | undefined;
1888
+ email?: string | null | undefined;
1889
+ clientId?: string | null | undefined;
1890
+ channelId?: string | null | undefined;
1891
+ waapiInstanceId?: string | null | undefined;
1892
+ qr?: string | null | undefined;
1893
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1894
+ apiKey?: string | undefined;
1895
+ tier?: "basic" | "regular" | "premium" | undefined;
1896
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1897
+ } | undefined;
1898
+ vonageCredentials?: {
1899
+ apiKey: string;
1900
+ mobileNumber: string;
1901
+ apiSecret: string;
1902
+ } | undefined;
1903
+ lineRichMenuId?: string | null | undefined;
1904
+ messengerIntegrationType?: "own" | "business" | undefined;
1905
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
1906
+ };
1907
+ status: boolean;
1908
+ createdAt: Date;
1909
+ updatedAt: Date;
1910
+ deletedAt: Date | null;
1911
+ actor: {
1912
+ name: string;
1913
+ id: string;
1914
+ address: string | null;
1915
+ email: string;
1916
+ createdAt: Date;
1917
+ updatedAt: Date;
1918
+ deletedAt: Date | null;
1919
+ emailVerifiedAt: Date | null;
1920
+ password: string;
1921
+ phone: string | null;
1922
+ notificationCount: number | null;
1923
+ roles: {
1924
+ id: string;
1925
+ description: string | null;
1926
+ createdAt: Date;
1927
+ updatedAt: Date;
1928
+ deletedAt: Date | null;
1929
+ systemName: string;
1930
+ displayName: string;
1931
+ permissions: {
1932
+ id: string;
1933
+ description: string | null;
1934
+ createdAt: Date;
1935
+ updatedAt: Date;
1936
+ deletedAt: Date | null;
1937
+ systemName: string;
1938
+ displayName: string;
1939
+ }[];
1940
+ }[];
1941
+ extension: {
1942
+ id: string;
1943
+ createdAt: Date;
1944
+ updatedAt: Date;
1945
+ deletedAt: Date | null;
1946
+ userId: string | null;
1947
+ sipServerUrl: string;
1948
+ sipUserName: string;
1949
+ webphoneLoginUser: string;
1950
+ extensionId: string | null;
1951
+ extensionName: string;
1952
+ telephonySignature: string | null;
1953
+ };
1954
+ };
1955
+ brandName: string;
1956
+ platformId: string;
1957
+ isReloginRequired: boolean;
1958
+ connectedUserName: string;
1959
+ connectedUserId: string;
1960
+ botpressBot: {
1961
+ name: string;
1962
+ id: string;
1963
+ accessToken: string;
1964
+ botId: string;
1965
+ integrationId: string;
1966
+ } | null;
1967
+ }>;
1968
+ }, "strip", z.ZodTypeAny, {
1969
+ channel: {
1970
+ name: string;
1971
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
1972
+ id: string;
1973
+ metadata: {
1974
+ name: string;
1975
+ id: string;
1976
+ accessToken?: string | undefined;
1977
+ channelSecret?: string | undefined;
1978
+ additionalCredentials?: any;
1979
+ senderId?: string | undefined;
1980
+ whatsapp?: {
1981
+ wabaBusinessId?: string | null | undefined;
1982
+ wabaExternalId?: string | null | undefined;
1983
+ phoneNumberId?: string | null | undefined;
1984
+ email?: string | null | undefined;
1985
+ clientId?: string | null | undefined;
1986
+ channelId?: string | null | undefined;
1987
+ waapiInstanceId?: string | null | undefined;
1988
+ qr?: string | null | undefined;
1989
+ status?: "active" | "pending" | "waapi-qr" | undefined;
1990
+ apiKey?: string | undefined;
1991
+ tier?: "basic" | "regular" | "premium" | undefined;
1992
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
1993
+ } | undefined;
1994
+ vonageCredentials?: {
1995
+ apiKey: string;
1996
+ mobileNumber: string;
1997
+ apiSecret: string;
1998
+ } | undefined;
1999
+ lineRichMenuId?: string | null | undefined;
2000
+ messengerIntegrationType?: "own" | "business" | undefined;
2001
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2002
+ };
2003
+ status: boolean;
2004
+ createdAt: Date;
2005
+ updatedAt: Date;
2006
+ deletedAt: Date | null;
2007
+ actor: {
2008
+ name: string;
2009
+ id: string;
2010
+ address: string | null;
2011
+ email: string;
2012
+ createdAt: Date;
2013
+ updatedAt: Date;
2014
+ deletedAt: Date | null;
2015
+ emailVerifiedAt: Date | null;
2016
+ password: string;
2017
+ phone: string | null;
2018
+ notificationCount: number | null;
2019
+ roles: {
2020
+ id: string;
2021
+ description: string | null;
2022
+ createdAt: Date;
2023
+ updatedAt: Date;
2024
+ deletedAt: Date | null;
2025
+ systemName: string;
2026
+ displayName: string;
2027
+ permissions: {
2028
+ id: string;
2029
+ description: string | null;
2030
+ createdAt: Date;
2031
+ updatedAt: Date;
2032
+ deletedAt: Date | null;
2033
+ systemName: string;
2034
+ displayName: string;
2035
+ }[];
2036
+ }[];
2037
+ extension: {
2038
+ id: string;
2039
+ createdAt: Date;
2040
+ updatedAt: Date;
2041
+ deletedAt: Date | null;
2042
+ userId: string | null;
2043
+ sipServerUrl: string;
2044
+ sipUserName: string;
2045
+ webphoneLoginUser: string;
2046
+ extensionId: string | null;
2047
+ extensionName: string;
2048
+ telephonySignature: string | null;
2049
+ };
2050
+ };
2051
+ brandName: string;
2052
+ platformId: string;
2053
+ isReloginRequired: boolean;
2054
+ connectedUserName: string;
2055
+ connectedUserId: string;
2056
+ botpressBot: {
2057
+ name: string;
2058
+ id: string;
2059
+ accessToken: string;
2060
+ botId: string;
2061
+ integrationId: string;
2062
+ } | null;
2063
+ };
2064
+ requestId: string;
2065
+ }, {
2066
+ channel: {
2067
+ name: string;
2068
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2069
+ id: string;
2070
+ metadata: {
2071
+ name: string;
2072
+ id: string;
2073
+ accessToken?: string | undefined;
2074
+ channelSecret?: string | undefined;
2075
+ additionalCredentials?: any;
2076
+ senderId?: string | undefined;
2077
+ whatsapp?: {
2078
+ wabaBusinessId?: string | null | undefined;
2079
+ wabaExternalId?: string | null | undefined;
2080
+ phoneNumberId?: string | null | undefined;
2081
+ email?: string | null | undefined;
2082
+ clientId?: string | null | undefined;
2083
+ channelId?: string | null | undefined;
2084
+ waapiInstanceId?: string | null | undefined;
2085
+ qr?: string | null | undefined;
2086
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2087
+ apiKey?: string | undefined;
2088
+ tier?: "basic" | "regular" | "premium" | undefined;
2089
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2090
+ } | undefined;
2091
+ vonageCredentials?: {
2092
+ apiKey: string;
2093
+ mobileNumber: string;
2094
+ apiSecret: string;
2095
+ } | undefined;
2096
+ lineRichMenuId?: string | null | undefined;
2097
+ messengerIntegrationType?: "own" | "business" | undefined;
2098
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2099
+ };
2100
+ status: boolean;
2101
+ createdAt: Date;
2102
+ updatedAt: Date;
2103
+ deletedAt: Date | null;
2104
+ actor: {
2105
+ name: string;
2106
+ id: string;
2107
+ address: string | null;
2108
+ email: string;
2109
+ createdAt: Date;
2110
+ updatedAt: Date;
2111
+ deletedAt: Date | null;
2112
+ emailVerifiedAt: Date | null;
2113
+ password: string;
2114
+ phone: string | null;
2115
+ notificationCount: number | null;
2116
+ roles: {
2117
+ id: string;
2118
+ description: string | null;
2119
+ createdAt: Date;
2120
+ updatedAt: Date;
2121
+ deletedAt: Date | null;
2122
+ systemName: string;
2123
+ displayName: string;
2124
+ permissions: {
2125
+ id: string;
2126
+ description: string | null;
2127
+ createdAt: Date;
2128
+ updatedAt: Date;
2129
+ deletedAt: Date | null;
2130
+ systemName: string;
2131
+ displayName: string;
2132
+ }[];
2133
+ }[];
2134
+ extension: {
2135
+ id: string;
2136
+ createdAt: Date;
2137
+ updatedAt: Date;
2138
+ deletedAt: Date | null;
2139
+ userId: string | null;
2140
+ sipServerUrl: string;
2141
+ sipUserName: string;
2142
+ webphoneLoginUser: string;
2143
+ extensionId: string | null;
2144
+ extensionName: string;
2145
+ telephonySignature: string | null;
2146
+ };
2147
+ };
2148
+ brandName: string;
2149
+ platformId: string;
2150
+ isReloginRequired: boolean;
2151
+ connectedUserName: string;
2152
+ connectedUserId: string;
2153
+ botpressBot: {
2154
+ name: string;
2155
+ id: string;
2156
+ accessToken: string;
2157
+ botId: string;
2158
+ integrationId: string;
2159
+ } | null;
2160
+ };
2161
+ requestId: string;
2162
+ }>;
2163
+ 400: z.ZodObject<{
2164
+ message: z.ZodString;
2165
+ error: z.ZodAny;
2166
+ }, "strip", z.ZodTypeAny, {
2167
+ message: string;
2168
+ error?: any;
2169
+ }, {
2170
+ message: string;
2171
+ error?: any;
2172
+ }>;
2173
+ 500: z.ZodObject<{
2174
+ message: z.ZodString;
2175
+ error: z.ZodAny;
2176
+ }, "strip", z.ZodTypeAny, {
2177
+ message: string;
2178
+ error?: any;
2179
+ }, {
2180
+ message: string;
2181
+ error?: any;
2182
+ }>;
2183
+ };
2184
+ path: "/disconnect";
2185
+ };
2186
+ reconnectSMSChannel: {
2187
+ body: null;
2188
+ method: "POST";
2189
+ pathParams: z.ZodObject<{
2190
+ channelId: z.ZodString;
2191
+ }, "strip", z.ZodTypeAny, {
2192
+ channelId: string;
2193
+ }, {
2194
+ channelId: string;
2195
+ }>;
2196
+ responses: {
2197
+ 200: z.ZodObject<{
2198
+ requestId: z.ZodString;
2199
+ channel: z.ZodObject<{
2200
+ id: z.ZodString;
2201
+ createdAt: z.ZodDate;
2202
+ updatedAt: z.ZodDate;
2203
+ deletedAt: z.ZodNullable<z.ZodDate>;
2204
+ name: z.ZodString;
2205
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
2206
+ metadata: z.ZodObject<{
2207
+ id: z.ZodString;
2208
+ name: z.ZodString;
2209
+ accessToken: z.ZodOptional<z.ZodString>;
2210
+ channelSecret: z.ZodOptional<z.ZodString>;
2211
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
2212
+ senderId: z.ZodOptional<z.ZodString>;
2213
+ whatsapp: z.ZodOptional<z.ZodObject<{
2214
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2215
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2216
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2217
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2218
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2219
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2220
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2221
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2222
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
2223
+ apiKey: z.ZodOptional<z.ZodString>;
2224
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
2225
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
2226
+ }, "strip", z.ZodTypeAny, {
2227
+ wabaBusinessId?: string | null | undefined;
2228
+ wabaExternalId?: string | null | undefined;
2229
+ phoneNumberId?: string | null | undefined;
2230
+ email?: string | null | undefined;
2231
+ clientId?: string | null | undefined;
2232
+ channelId?: string | null | undefined;
2233
+ waapiInstanceId?: string | null | undefined;
2234
+ qr?: string | null | undefined;
2235
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2236
+ apiKey?: string | undefined;
2237
+ tier?: "basic" | "regular" | "premium" | undefined;
2238
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2239
+ }, {
2240
+ wabaBusinessId?: string | null | undefined;
2241
+ wabaExternalId?: string | null | undefined;
2242
+ phoneNumberId?: string | null | undefined;
2243
+ email?: string | null | undefined;
2244
+ clientId?: string | null | undefined;
2245
+ channelId?: string | null | undefined;
2246
+ waapiInstanceId?: string | null | undefined;
2247
+ qr?: string | null | undefined;
2248
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2249
+ apiKey?: string | undefined;
2250
+ tier?: "basic" | "regular" | "premium" | undefined;
2251
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2252
+ }>>;
2253
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
2254
+ mobileNumber: z.ZodString;
2255
+ apiKey: z.ZodString;
2256
+ apiSecret: z.ZodString;
2257
+ }, "strip", z.ZodTypeAny, {
2258
+ apiKey: string;
2259
+ mobileNumber: string;
2260
+ apiSecret: string;
2261
+ }, {
2262
+ apiKey: string;
2263
+ mobileNumber: string;
2264
+ apiSecret: string;
2265
+ }>>;
2266
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2267
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
2268
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
2269
+ }, "strip", z.ZodTypeAny, {
2270
+ name: string;
2271
+ id: string;
2272
+ accessToken?: string | undefined;
2273
+ channelSecret?: string | undefined;
2274
+ additionalCredentials?: any;
2275
+ senderId?: string | undefined;
2276
+ whatsapp?: {
2277
+ wabaBusinessId?: string | null | undefined;
2278
+ wabaExternalId?: string | null | undefined;
2279
+ phoneNumberId?: string | null | undefined;
2280
+ email?: string | null | undefined;
2281
+ clientId?: string | null | undefined;
2282
+ channelId?: string | null | undefined;
2283
+ waapiInstanceId?: string | null | undefined;
2284
+ qr?: string | null | undefined;
2285
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2286
+ apiKey?: string | undefined;
2287
+ tier?: "basic" | "regular" | "premium" | undefined;
2288
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2289
+ } | undefined;
2290
+ vonageCredentials?: {
2291
+ apiKey: string;
2292
+ mobileNumber: string;
2293
+ apiSecret: string;
2294
+ } | undefined;
2295
+ lineRichMenuId?: string | null | undefined;
2296
+ messengerIntegrationType?: "own" | "business" | undefined;
2297
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2298
+ }, {
2299
+ name: string;
2300
+ id: string;
2301
+ accessToken?: string | undefined;
2302
+ channelSecret?: string | undefined;
2303
+ additionalCredentials?: any;
2304
+ senderId?: string | undefined;
2305
+ whatsapp?: {
2306
+ wabaBusinessId?: string | null | undefined;
2307
+ wabaExternalId?: string | null | undefined;
2308
+ phoneNumberId?: string | null | undefined;
2309
+ email?: string | null | undefined;
2310
+ clientId?: string | null | undefined;
2311
+ channelId?: string | null | undefined;
2312
+ waapiInstanceId?: string | null | undefined;
2313
+ qr?: string | null | undefined;
2314
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2315
+ apiKey?: string | undefined;
2316
+ tier?: "basic" | "regular" | "premium" | undefined;
2317
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2318
+ } | undefined;
2319
+ vonageCredentials?: {
2320
+ apiKey: string;
2321
+ mobileNumber: string;
2322
+ apiSecret: string;
2323
+ } | undefined;
2324
+ lineRichMenuId?: string | null | undefined;
2325
+ messengerIntegrationType?: "own" | "business" | undefined;
2326
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2327
+ }>;
2328
+ brandName: z.ZodString;
2329
+ platformId: z.ZodString;
2330
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
2331
+ isReloginRequired: z.ZodBoolean;
2332
+ connectedUserName: z.ZodString;
2333
+ connectedUserId: z.ZodString;
2334
+ botpressBot: z.ZodNullable<z.ZodObject<{
2335
+ id: z.ZodString;
2336
+ name: z.ZodString;
2337
+ botId: z.ZodString;
2338
+ integrationId: z.ZodString;
2339
+ accessToken: z.ZodString;
2340
+ }, "strip", z.ZodTypeAny, {
2341
+ name: string;
2342
+ id: string;
2343
+ accessToken: string;
2344
+ botId: string;
2345
+ integrationId: string;
2346
+ }, {
2347
+ name: string;
2348
+ id: string;
2349
+ accessToken: string;
2350
+ botId: string;
2351
+ integrationId: string;
2352
+ }>>;
2353
+ actor: z.ZodObject<{
2354
+ id: z.ZodString;
2355
+ createdAt: z.ZodDate;
2356
+ updatedAt: z.ZodDate;
2357
+ deletedAt: z.ZodNullable<z.ZodDate>;
2358
+ name: z.ZodString;
2359
+ email: z.ZodString;
2360
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
2361
+ password: z.ZodString;
2362
+ address: z.ZodNullable<z.ZodString>;
2363
+ phone: z.ZodNullable<z.ZodString>;
2364
+ notificationCount: z.ZodNullable<z.ZodNumber>;
2365
+ roles: z.ZodArray<z.ZodObject<{
2366
+ id: z.ZodString;
2367
+ createdAt: z.ZodDate;
2368
+ updatedAt: z.ZodDate;
2369
+ deletedAt: z.ZodNullable<z.ZodDate>;
2370
+ systemName: z.ZodString;
2371
+ displayName: z.ZodString;
2372
+ description: z.ZodNullable<z.ZodString>;
2373
+ permissions: z.ZodArray<z.ZodObject<{
2374
+ id: z.ZodString;
2375
+ createdAt: z.ZodDate;
2376
+ updatedAt: z.ZodDate;
2377
+ deletedAt: z.ZodNullable<z.ZodDate>;
2378
+ systemName: z.ZodString;
2379
+ displayName: z.ZodString;
2380
+ description: z.ZodNullable<z.ZodString>;
2381
+ }, "strip", z.ZodTypeAny, {
2382
+ id: string;
2383
+ description: string | null;
2384
+ createdAt: Date;
2385
+ updatedAt: Date;
2386
+ deletedAt: Date | null;
2387
+ systemName: string;
2388
+ displayName: string;
2389
+ }, {
2390
+ id: string;
2391
+ description: string | null;
2392
+ createdAt: Date;
2393
+ updatedAt: Date;
2394
+ deletedAt: Date | null;
2395
+ systemName: string;
2396
+ displayName: string;
2397
+ }>, "many">;
2398
+ }, "strip", z.ZodTypeAny, {
2399
+ id: string;
2400
+ description: string | null;
2401
+ createdAt: Date;
2402
+ updatedAt: Date;
2403
+ deletedAt: Date | null;
2404
+ systemName: string;
2405
+ displayName: string;
2406
+ permissions: {
2407
+ id: string;
2408
+ description: string | null;
2409
+ createdAt: Date;
2410
+ updatedAt: Date;
2411
+ deletedAt: Date | null;
2412
+ systemName: string;
2413
+ displayName: string;
2414
+ }[];
2415
+ }, {
2416
+ id: string;
2417
+ description: string | null;
2418
+ createdAt: Date;
2419
+ updatedAt: Date;
2420
+ deletedAt: Date | null;
2421
+ systemName: string;
2422
+ displayName: string;
2423
+ permissions: {
2424
+ id: string;
2425
+ description: string | null;
2426
+ createdAt: Date;
2427
+ updatedAt: Date;
2428
+ deletedAt: Date | null;
2429
+ systemName: string;
2430
+ displayName: string;
2431
+ }[];
2432
+ }>, "many">;
2433
+ extension: z.ZodObject<{
2434
+ id: z.ZodString;
2435
+ createdAt: z.ZodDate;
2436
+ updatedAt: z.ZodDate;
2437
+ deletedAt: z.ZodNullable<z.ZodDate>;
2438
+ userId: z.ZodNullable<z.ZodString>;
2439
+ sipServerUrl: z.ZodString;
2440
+ sipUserName: z.ZodString;
2441
+ webphoneLoginUser: z.ZodString;
2442
+ extensionId: z.ZodNullable<z.ZodString>;
2443
+ extensionName: z.ZodString;
2444
+ telephonySignature: z.ZodNullable<z.ZodString>;
2445
+ }, "strip", z.ZodTypeAny, {
2446
+ id: string;
2447
+ createdAt: Date;
2448
+ updatedAt: Date;
2449
+ deletedAt: Date | null;
2450
+ userId: string | null;
2451
+ sipServerUrl: string;
2452
+ sipUserName: string;
2453
+ webphoneLoginUser: string;
2454
+ extensionId: string | null;
2455
+ extensionName: string;
2456
+ telephonySignature: string | null;
2457
+ }, {
2458
+ id: string;
2459
+ createdAt: Date;
2460
+ updatedAt: Date;
2461
+ deletedAt: Date | null;
2462
+ userId: string | null;
2463
+ sipServerUrl: string;
2464
+ sipUserName: string;
2465
+ webphoneLoginUser: string;
2466
+ extensionId: string | null;
2467
+ extensionName: string;
2468
+ telephonySignature: string | null;
2469
+ }>;
2470
+ }, "strip", z.ZodTypeAny, {
2471
+ name: string;
2472
+ id: string;
2473
+ address: string | null;
2474
+ email: string;
2475
+ createdAt: Date;
2476
+ updatedAt: Date;
2477
+ deletedAt: Date | null;
2478
+ emailVerifiedAt: Date | null;
2479
+ password: string;
2480
+ phone: string | null;
2481
+ notificationCount: number | null;
2482
+ roles: {
2483
+ id: string;
2484
+ description: string | null;
2485
+ createdAt: Date;
2486
+ updatedAt: Date;
2487
+ deletedAt: Date | null;
2488
+ systemName: string;
2489
+ displayName: string;
2490
+ permissions: {
2491
+ id: string;
2492
+ description: string | null;
2493
+ createdAt: Date;
2494
+ updatedAt: Date;
2495
+ deletedAt: Date | null;
2496
+ systemName: string;
2497
+ displayName: string;
2498
+ }[];
2499
+ }[];
2500
+ extension: {
2501
+ id: string;
2502
+ createdAt: Date;
2503
+ updatedAt: Date;
2504
+ deletedAt: Date | null;
2505
+ userId: string | null;
2506
+ sipServerUrl: string;
2507
+ sipUserName: string;
2508
+ webphoneLoginUser: string;
2509
+ extensionId: string | null;
2510
+ extensionName: string;
2511
+ telephonySignature: string | null;
2512
+ };
2513
+ }, {
2514
+ name: string;
2515
+ id: string;
2516
+ address: string | null;
2517
+ email: string;
2518
+ createdAt: Date;
2519
+ updatedAt: Date;
2520
+ deletedAt: Date | null;
2521
+ emailVerifiedAt: Date | null;
2522
+ password: string;
2523
+ phone: string | null;
2524
+ notificationCount: number | null;
2525
+ roles: {
2526
+ id: string;
2527
+ description: string | null;
2528
+ createdAt: Date;
2529
+ updatedAt: Date;
2530
+ deletedAt: Date | null;
2531
+ systemName: string;
2532
+ displayName: string;
2533
+ permissions: {
2534
+ id: string;
2535
+ description: string | null;
2536
+ createdAt: Date;
2537
+ updatedAt: Date;
2538
+ deletedAt: Date | null;
2539
+ systemName: string;
2540
+ displayName: string;
2541
+ }[];
2542
+ }[];
2543
+ extension: {
2544
+ id: string;
2545
+ createdAt: Date;
2546
+ updatedAt: Date;
2547
+ deletedAt: Date | null;
2548
+ userId: string | null;
2549
+ sipServerUrl: string;
2550
+ sipUserName: string;
2551
+ webphoneLoginUser: string;
2552
+ extensionId: string | null;
2553
+ extensionName: string;
2554
+ telephonySignature: string | null;
2555
+ };
2556
+ }>;
2557
+ }, "strip", z.ZodTypeAny, {
2558
+ name: string;
2559
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2560
+ id: string;
2561
+ metadata: {
2562
+ name: string;
2563
+ id: string;
2564
+ accessToken?: string | undefined;
2565
+ channelSecret?: string | undefined;
2566
+ additionalCredentials?: any;
2567
+ senderId?: string | undefined;
2568
+ whatsapp?: {
2569
+ wabaBusinessId?: string | null | undefined;
2570
+ wabaExternalId?: string | null | undefined;
2571
+ phoneNumberId?: string | null | undefined;
2572
+ email?: string | null | undefined;
2573
+ clientId?: string | null | undefined;
2574
+ channelId?: string | null | undefined;
2575
+ waapiInstanceId?: string | null | undefined;
2576
+ qr?: string | null | undefined;
2577
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2578
+ apiKey?: string | undefined;
2579
+ tier?: "basic" | "regular" | "premium" | undefined;
2580
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2581
+ } | undefined;
2582
+ vonageCredentials?: {
2583
+ apiKey: string;
2584
+ mobileNumber: string;
2585
+ apiSecret: string;
2586
+ } | undefined;
2587
+ lineRichMenuId?: string | null | undefined;
2588
+ messengerIntegrationType?: "own" | "business" | undefined;
2589
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2590
+ };
2591
+ status: boolean;
2592
+ createdAt: Date;
2593
+ updatedAt: Date;
2594
+ deletedAt: Date | null;
2595
+ actor: {
2596
+ name: string;
2597
+ id: string;
2598
+ address: string | null;
2599
+ email: string;
2600
+ createdAt: Date;
2601
+ updatedAt: Date;
2602
+ deletedAt: Date | null;
2603
+ emailVerifiedAt: Date | null;
2604
+ password: string;
2605
+ phone: string | null;
2606
+ notificationCount: number | null;
2607
+ roles: {
2608
+ id: string;
2609
+ description: string | null;
2610
+ createdAt: Date;
2611
+ updatedAt: Date;
2612
+ deletedAt: Date | null;
2613
+ systemName: string;
2614
+ displayName: string;
2615
+ permissions: {
2616
+ id: string;
2617
+ description: string | null;
2618
+ createdAt: Date;
2619
+ updatedAt: Date;
2620
+ deletedAt: Date | null;
2621
+ systemName: string;
2622
+ displayName: string;
2623
+ }[];
2624
+ }[];
2625
+ extension: {
2626
+ id: string;
2627
+ createdAt: Date;
2628
+ updatedAt: Date;
2629
+ deletedAt: Date | null;
2630
+ userId: string | null;
2631
+ sipServerUrl: string;
2632
+ sipUserName: string;
2633
+ webphoneLoginUser: string;
2634
+ extensionId: string | null;
2635
+ extensionName: string;
2636
+ telephonySignature: string | null;
2637
+ };
2638
+ };
2639
+ brandName: string;
2640
+ platformId: string;
2641
+ isReloginRequired: boolean;
2642
+ connectedUserName: string;
2643
+ connectedUserId: string;
2644
+ botpressBot: {
2645
+ name: string;
2646
+ id: string;
2647
+ accessToken: string;
2648
+ botId: string;
2649
+ integrationId: string;
2650
+ } | null;
2651
+ }, {
2652
+ name: string;
2653
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2654
+ id: string;
2655
+ metadata: {
2656
+ name: string;
2657
+ id: string;
2658
+ accessToken?: string | undefined;
2659
+ channelSecret?: string | undefined;
2660
+ additionalCredentials?: any;
2661
+ senderId?: string | undefined;
2662
+ whatsapp?: {
2663
+ wabaBusinessId?: string | null | undefined;
2664
+ wabaExternalId?: string | null | undefined;
2665
+ phoneNumberId?: string | null | undefined;
2666
+ email?: string | null | undefined;
2667
+ clientId?: string | null | undefined;
2668
+ channelId?: string | null | undefined;
2669
+ waapiInstanceId?: string | null | undefined;
2670
+ qr?: string | null | undefined;
2671
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2672
+ apiKey?: string | undefined;
2673
+ tier?: "basic" | "regular" | "premium" | undefined;
2674
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2675
+ } | undefined;
2676
+ vonageCredentials?: {
2677
+ apiKey: string;
2678
+ mobileNumber: string;
2679
+ apiSecret: string;
2680
+ } | undefined;
2681
+ lineRichMenuId?: string | null | undefined;
2682
+ messengerIntegrationType?: "own" | "business" | undefined;
2683
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2684
+ };
2685
+ status: boolean;
2686
+ createdAt: Date;
2687
+ updatedAt: Date;
2688
+ deletedAt: Date | null;
2689
+ actor: {
2690
+ name: string;
2691
+ id: string;
2692
+ address: string | null;
2693
+ email: string;
2694
+ createdAt: Date;
2695
+ updatedAt: Date;
2696
+ deletedAt: Date | null;
2697
+ emailVerifiedAt: Date | null;
2698
+ password: string;
2699
+ phone: string | null;
2700
+ notificationCount: number | null;
2701
+ roles: {
2702
+ id: string;
2703
+ description: string | null;
2704
+ createdAt: Date;
2705
+ updatedAt: Date;
2706
+ deletedAt: Date | null;
2707
+ systemName: string;
2708
+ displayName: string;
2709
+ permissions: {
2710
+ id: string;
2711
+ description: string | null;
2712
+ createdAt: Date;
2713
+ updatedAt: Date;
2714
+ deletedAt: Date | null;
2715
+ systemName: string;
2716
+ displayName: string;
2717
+ }[];
2718
+ }[];
2719
+ extension: {
2720
+ id: string;
2721
+ createdAt: Date;
2722
+ updatedAt: Date;
2723
+ deletedAt: Date | null;
2724
+ userId: string | null;
2725
+ sipServerUrl: string;
2726
+ sipUserName: string;
2727
+ webphoneLoginUser: string;
2728
+ extensionId: string | null;
2729
+ extensionName: string;
2730
+ telephonySignature: string | null;
2731
+ };
2732
+ };
2733
+ brandName: string;
2734
+ platformId: string;
2735
+ isReloginRequired: boolean;
2736
+ connectedUserName: string;
2737
+ connectedUserId: string;
2738
+ botpressBot: {
2739
+ name: string;
2740
+ id: string;
2741
+ accessToken: string;
2742
+ botId: string;
2743
+ integrationId: string;
2744
+ } | null;
2745
+ }>;
2746
+ }, "strip", z.ZodTypeAny, {
2747
+ channel: {
2748
+ name: string;
2749
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2750
+ id: string;
2751
+ metadata: {
2752
+ name: string;
2753
+ id: string;
2754
+ accessToken?: string | undefined;
2755
+ channelSecret?: string | undefined;
2756
+ additionalCredentials?: any;
2757
+ senderId?: string | undefined;
2758
+ whatsapp?: {
2759
+ wabaBusinessId?: string | null | undefined;
2760
+ wabaExternalId?: string | null | undefined;
2761
+ phoneNumberId?: string | null | undefined;
2762
+ email?: string | null | undefined;
2763
+ clientId?: string | null | undefined;
2764
+ channelId?: string | null | undefined;
2765
+ waapiInstanceId?: string | null | undefined;
2766
+ qr?: string | null | undefined;
2767
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2768
+ apiKey?: string | undefined;
2769
+ tier?: "basic" | "regular" | "premium" | undefined;
2770
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2771
+ } | undefined;
2772
+ vonageCredentials?: {
2773
+ apiKey: string;
2774
+ mobileNumber: string;
2775
+ apiSecret: string;
2776
+ } | undefined;
2777
+ lineRichMenuId?: string | null | undefined;
2778
+ messengerIntegrationType?: "own" | "business" | undefined;
2779
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2780
+ };
2781
+ status: boolean;
2782
+ createdAt: Date;
2783
+ updatedAt: Date;
2784
+ deletedAt: Date | null;
2785
+ actor: {
2786
+ name: string;
2787
+ id: string;
2788
+ address: string | null;
2789
+ email: string;
2790
+ createdAt: Date;
2791
+ updatedAt: Date;
2792
+ deletedAt: Date | null;
2793
+ emailVerifiedAt: Date | null;
2794
+ password: string;
2795
+ phone: string | null;
2796
+ notificationCount: number | null;
2797
+ roles: {
2798
+ id: string;
2799
+ description: string | null;
2800
+ createdAt: Date;
2801
+ updatedAt: Date;
2802
+ deletedAt: Date | null;
2803
+ systemName: string;
2804
+ displayName: string;
2805
+ permissions: {
2806
+ id: string;
2807
+ description: string | null;
2808
+ createdAt: Date;
2809
+ updatedAt: Date;
2810
+ deletedAt: Date | null;
2811
+ systemName: string;
2812
+ displayName: string;
2813
+ }[];
2814
+ }[];
2815
+ extension: {
2816
+ id: string;
2817
+ createdAt: Date;
2818
+ updatedAt: Date;
2819
+ deletedAt: Date | null;
2820
+ userId: string | null;
2821
+ sipServerUrl: string;
2822
+ sipUserName: string;
2823
+ webphoneLoginUser: string;
2824
+ extensionId: string | null;
2825
+ extensionName: string;
2826
+ telephonySignature: string | null;
2827
+ };
2828
+ };
2829
+ brandName: string;
2830
+ platformId: string;
2831
+ isReloginRequired: boolean;
2832
+ connectedUserName: string;
2833
+ connectedUserId: string;
2834
+ botpressBot: {
2835
+ name: string;
2836
+ id: string;
2837
+ accessToken: string;
2838
+ botId: string;
2839
+ integrationId: string;
2840
+ } | null;
2841
+ };
2842
+ requestId: string;
2843
+ }, {
2844
+ channel: {
2845
+ name: string;
2846
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
2847
+ id: string;
2848
+ metadata: {
2849
+ name: string;
2850
+ id: string;
2851
+ accessToken?: string | undefined;
2852
+ channelSecret?: string | undefined;
2853
+ additionalCredentials?: any;
2854
+ senderId?: string | undefined;
2855
+ whatsapp?: {
2856
+ wabaBusinessId?: string | null | undefined;
2857
+ wabaExternalId?: string | null | undefined;
2858
+ phoneNumberId?: string | null | undefined;
2859
+ email?: string | null | undefined;
2860
+ clientId?: string | null | undefined;
2861
+ channelId?: string | null | undefined;
2862
+ waapiInstanceId?: string | null | undefined;
2863
+ qr?: string | null | undefined;
2864
+ status?: "active" | "pending" | "waapi-qr" | undefined;
2865
+ apiKey?: string | undefined;
2866
+ tier?: "basic" | "regular" | "premium" | undefined;
2867
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
2868
+ } | undefined;
2869
+ vonageCredentials?: {
2870
+ apiKey: string;
2871
+ mobileNumber: string;
2872
+ apiSecret: string;
2873
+ } | undefined;
2874
+ lineRichMenuId?: string | null | undefined;
2875
+ messengerIntegrationType?: "own" | "business" | undefined;
2876
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
2877
+ };
2878
+ status: boolean;
2879
+ createdAt: Date;
2880
+ updatedAt: Date;
2881
+ deletedAt: Date | null;
2882
+ actor: {
2883
+ name: string;
2884
+ id: string;
2885
+ address: string | null;
2886
+ email: string;
2887
+ createdAt: Date;
2888
+ updatedAt: Date;
2889
+ deletedAt: Date | null;
2890
+ emailVerifiedAt: Date | null;
2891
+ password: string;
2892
+ phone: string | null;
2893
+ notificationCount: number | null;
2894
+ roles: {
2895
+ id: string;
2896
+ description: string | null;
2897
+ createdAt: Date;
2898
+ updatedAt: Date;
2899
+ deletedAt: Date | null;
2900
+ systemName: string;
2901
+ displayName: string;
2902
+ permissions: {
2903
+ id: string;
2904
+ description: string | null;
2905
+ createdAt: Date;
2906
+ updatedAt: Date;
2907
+ deletedAt: Date | null;
2908
+ systemName: string;
2909
+ displayName: string;
2910
+ }[];
2911
+ }[];
2912
+ extension: {
2913
+ id: string;
2914
+ createdAt: Date;
2915
+ updatedAt: Date;
2916
+ deletedAt: Date | null;
2917
+ userId: string | null;
2918
+ sipServerUrl: string;
2919
+ sipUserName: string;
2920
+ webphoneLoginUser: string;
2921
+ extensionId: string | null;
2922
+ extensionName: string;
2923
+ telephonySignature: string | null;
2924
+ };
2925
+ };
2926
+ brandName: string;
2927
+ platformId: string;
2928
+ isReloginRequired: boolean;
2929
+ connectedUserName: string;
2930
+ connectedUserId: string;
2931
+ botpressBot: {
2932
+ name: string;
2933
+ id: string;
2934
+ accessToken: string;
2935
+ botId: string;
2936
+ integrationId: string;
2937
+ } | null;
2938
+ };
2939
+ requestId: string;
2940
+ }>;
2941
+ 400: z.ZodObject<{
2942
+ message: z.ZodString;
2943
+ error: z.ZodAny;
2944
+ }, "strip", z.ZodTypeAny, {
2945
+ message: string;
2946
+ error?: any;
2947
+ }, {
2948
+ message: string;
2949
+ error?: any;
2950
+ }>;
2951
+ 500: z.ZodObject<{
2952
+ message: z.ZodString;
2953
+ error: z.ZodAny;
2954
+ }, "strip", z.ZodTypeAny, {
2955
+ message: string;
2956
+ error?: any;
2957
+ }, {
2958
+ message: string;
2959
+ error?: any;
2960
+ }>;
2961
+ };
2962
+ path: "/reconnect/:channelId";
2963
+ };
2964
+ deleteSMSChannel: {
2965
+ body: null;
2966
+ method: "DELETE";
2967
+ pathParams: z.ZodObject<{
2968
+ channelId: z.ZodString;
2969
+ }, "strip", z.ZodTypeAny, {
2970
+ channelId: string;
2971
+ }, {
2972
+ channelId: string;
2973
+ }>;
2974
+ responses: {
2975
+ 200: z.ZodObject<{
2976
+ requestId: z.ZodString;
2977
+ channel: z.ZodObject<{
2978
+ id: z.ZodString;
2979
+ createdAt: z.ZodDate;
2980
+ updatedAt: z.ZodDate;
2981
+ deletedAt: z.ZodNullable<z.ZodDate>;
2982
+ name: z.ZodString;
2983
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat", "facebook_feed", "sms_vonage"]>;
2984
+ metadata: z.ZodObject<{
2985
+ id: z.ZodString;
2986
+ name: z.ZodString;
2987
+ accessToken: z.ZodOptional<z.ZodString>;
2988
+ channelSecret: z.ZodOptional<z.ZodString>;
2989
+ additionalCredentials: z.ZodOptional<z.ZodAny>;
2990
+ senderId: z.ZodOptional<z.ZodString>;
2991
+ whatsapp: z.ZodOptional<z.ZodObject<{
2992
+ wabaBusinessId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2993
+ wabaExternalId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2994
+ phoneNumberId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2995
+ email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2996
+ clientId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2997
+ channelId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2998
+ waapiInstanceId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2999
+ qr: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3000
+ status: z.ZodOptional<z.ZodEnum<["waapi-qr", "pending", "active"]>>;
3001
+ apiKey: z.ZodOptional<z.ZodString>;
3002
+ tier: z.ZodOptional<z.ZodEnum<["basic", "regular", "premium"]>>;
3003
+ integrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"meta">, z.ZodLiteral<"360dialog">, z.ZodLiteral<"waapi">]>>;
3004
+ }, "strip", z.ZodTypeAny, {
3005
+ wabaBusinessId?: string | null | undefined;
3006
+ wabaExternalId?: string | null | undefined;
3007
+ phoneNumberId?: string | null | undefined;
3008
+ email?: string | null | undefined;
3009
+ clientId?: string | null | undefined;
3010
+ channelId?: string | null | undefined;
3011
+ waapiInstanceId?: string | null | undefined;
3012
+ qr?: string | null | undefined;
3013
+ status?: "active" | "pending" | "waapi-qr" | undefined;
3014
+ apiKey?: string | undefined;
3015
+ tier?: "basic" | "regular" | "premium" | undefined;
3016
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3017
+ }, {
3018
+ wabaBusinessId?: string | null | undefined;
3019
+ wabaExternalId?: string | null | undefined;
3020
+ phoneNumberId?: string | null | undefined;
3021
+ email?: string | null | undefined;
3022
+ clientId?: string | null | undefined;
3023
+ channelId?: string | null | undefined;
3024
+ waapiInstanceId?: string | null | undefined;
3025
+ qr?: string | null | undefined;
3026
+ status?: "active" | "pending" | "waapi-qr" | undefined;
3027
+ apiKey?: string | undefined;
3028
+ tier?: "basic" | "regular" | "premium" | undefined;
3029
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3030
+ }>>;
3031
+ vonageCredentials: z.ZodOptional<z.ZodObject<{
3032
+ mobileNumber: z.ZodString;
3033
+ apiKey: z.ZodString;
3034
+ apiSecret: z.ZodString;
3035
+ }, "strip", z.ZodTypeAny, {
3036
+ apiKey: string;
3037
+ mobileNumber: string;
3038
+ apiSecret: string;
3039
+ }, {
3040
+ apiKey: string;
3041
+ mobileNumber: string;
3042
+ apiSecret: string;
3043
+ }>>;
3044
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3045
+ messengerIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
3046
+ facebookFeedIntegrationType: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"own">, z.ZodLiteral<"business">]>>;
3047
+ }, "strip", z.ZodTypeAny, {
3048
+ name: string;
3049
+ id: string;
3050
+ accessToken?: string | undefined;
3051
+ channelSecret?: string | undefined;
3052
+ additionalCredentials?: any;
3053
+ senderId?: string | undefined;
3054
+ whatsapp?: {
3055
+ wabaBusinessId?: string | null | undefined;
3056
+ wabaExternalId?: string | null | undefined;
3057
+ phoneNumberId?: string | null | undefined;
3058
+ email?: string | null | undefined;
3059
+ clientId?: string | null | undefined;
3060
+ channelId?: string | null | undefined;
3061
+ waapiInstanceId?: string | null | undefined;
3062
+ qr?: string | null | undefined;
3063
+ status?: "active" | "pending" | "waapi-qr" | undefined;
3064
+ apiKey?: string | undefined;
3065
+ tier?: "basic" | "regular" | "premium" | undefined;
3066
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3067
+ } | undefined;
3068
+ vonageCredentials?: {
3069
+ apiKey: string;
3070
+ mobileNumber: string;
3071
+ apiSecret: string;
3072
+ } | undefined;
3073
+ lineRichMenuId?: string | null | undefined;
3074
+ messengerIntegrationType?: "own" | "business" | undefined;
3075
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
3076
+ }, {
3077
+ name: string;
3078
+ id: string;
3079
+ accessToken?: string | undefined;
3080
+ channelSecret?: string | undefined;
3081
+ additionalCredentials?: any;
3082
+ senderId?: string | undefined;
3083
+ whatsapp?: {
3084
+ wabaBusinessId?: string | null | undefined;
3085
+ wabaExternalId?: string | null | undefined;
3086
+ phoneNumberId?: string | null | undefined;
3087
+ email?: string | null | undefined;
3088
+ clientId?: string | null | undefined;
3089
+ channelId?: string | null | undefined;
3090
+ waapiInstanceId?: string | null | undefined;
3091
+ qr?: string | null | undefined;
3092
+ status?: "active" | "pending" | "waapi-qr" | undefined;
3093
+ apiKey?: string | undefined;
3094
+ tier?: "basic" | "regular" | "premium" | undefined;
3095
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3096
+ } | undefined;
3097
+ vonageCredentials?: {
3098
+ apiKey: string;
3099
+ mobileNumber: string;
3100
+ apiSecret: string;
3101
+ } | undefined;
3102
+ lineRichMenuId?: string | null | undefined;
3103
+ messengerIntegrationType?: "own" | "business" | undefined;
3104
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
3105
+ }>;
3106
+ brandName: z.ZodString;
3107
+ platformId: z.ZodString;
3108
+ status: z.ZodUnion<[z.ZodLiteral<true>, z.ZodLiteral<false>]>;
3109
+ isReloginRequired: z.ZodBoolean;
3110
+ connectedUserName: z.ZodString;
3111
+ connectedUserId: z.ZodString;
3112
+ botpressBot: z.ZodNullable<z.ZodObject<{
3113
+ id: z.ZodString;
3114
+ name: z.ZodString;
3115
+ botId: z.ZodString;
3116
+ integrationId: z.ZodString;
3117
+ accessToken: z.ZodString;
3118
+ }, "strip", z.ZodTypeAny, {
3119
+ name: string;
3120
+ id: string;
3121
+ accessToken: string;
3122
+ botId: string;
3123
+ integrationId: string;
3124
+ }, {
3125
+ name: string;
3126
+ id: string;
3127
+ accessToken: string;
3128
+ botId: string;
3129
+ integrationId: string;
3130
+ }>>;
3131
+ actor: z.ZodObject<{
3132
+ id: z.ZodString;
3133
+ createdAt: z.ZodDate;
3134
+ updatedAt: z.ZodDate;
3135
+ deletedAt: z.ZodNullable<z.ZodDate>;
3136
+ name: z.ZodString;
3137
+ email: z.ZodString;
3138
+ emailVerifiedAt: z.ZodNullable<z.ZodDate>;
3139
+ password: z.ZodString;
3140
+ address: z.ZodNullable<z.ZodString>;
3141
+ phone: z.ZodNullable<z.ZodString>;
3142
+ notificationCount: z.ZodNullable<z.ZodNumber>;
3143
+ roles: z.ZodArray<z.ZodObject<{
3144
+ id: z.ZodString;
3145
+ createdAt: z.ZodDate;
3146
+ updatedAt: z.ZodDate;
3147
+ deletedAt: z.ZodNullable<z.ZodDate>;
3148
+ systemName: z.ZodString;
3149
+ displayName: z.ZodString;
3150
+ description: z.ZodNullable<z.ZodString>;
3151
+ permissions: z.ZodArray<z.ZodObject<{
3152
+ id: z.ZodString;
3153
+ createdAt: z.ZodDate;
3154
+ updatedAt: z.ZodDate;
3155
+ deletedAt: z.ZodNullable<z.ZodDate>;
3156
+ systemName: z.ZodString;
3157
+ displayName: z.ZodString;
3158
+ description: z.ZodNullable<z.ZodString>;
3159
+ }, "strip", z.ZodTypeAny, {
3160
+ id: string;
3161
+ description: string | null;
3162
+ createdAt: Date;
3163
+ updatedAt: Date;
3164
+ deletedAt: Date | null;
3165
+ systemName: string;
3166
+ displayName: string;
3167
+ }, {
3168
+ id: string;
3169
+ description: string | null;
3170
+ createdAt: Date;
3171
+ updatedAt: Date;
3172
+ deletedAt: Date | null;
3173
+ systemName: string;
3174
+ displayName: string;
3175
+ }>, "many">;
3176
+ }, "strip", z.ZodTypeAny, {
3177
+ id: string;
3178
+ description: string | null;
3179
+ createdAt: Date;
3180
+ updatedAt: Date;
3181
+ deletedAt: Date | null;
3182
+ systemName: string;
3183
+ displayName: string;
3184
+ permissions: {
3185
+ id: string;
3186
+ description: string | null;
3187
+ createdAt: Date;
3188
+ updatedAt: Date;
3189
+ deletedAt: Date | null;
3190
+ systemName: string;
3191
+ displayName: string;
3192
+ }[];
3193
+ }, {
3194
+ id: string;
3195
+ description: string | null;
3196
+ createdAt: Date;
3197
+ updatedAt: Date;
3198
+ deletedAt: Date | null;
3199
+ systemName: string;
3200
+ displayName: string;
3201
+ permissions: {
3202
+ id: string;
3203
+ description: string | null;
3204
+ createdAt: Date;
3205
+ updatedAt: Date;
3206
+ deletedAt: Date | null;
3207
+ systemName: string;
3208
+ displayName: string;
3209
+ }[];
3210
+ }>, "many">;
3211
+ extension: z.ZodObject<{
3212
+ id: z.ZodString;
3213
+ createdAt: z.ZodDate;
3214
+ updatedAt: z.ZodDate;
3215
+ deletedAt: z.ZodNullable<z.ZodDate>;
3216
+ userId: z.ZodNullable<z.ZodString>;
3217
+ sipServerUrl: z.ZodString;
3218
+ sipUserName: z.ZodString;
3219
+ webphoneLoginUser: z.ZodString;
3220
+ extensionId: z.ZodNullable<z.ZodString>;
3221
+ extensionName: z.ZodString;
3222
+ telephonySignature: z.ZodNullable<z.ZodString>;
3223
+ }, "strip", z.ZodTypeAny, {
3224
+ id: string;
3225
+ createdAt: Date;
3226
+ updatedAt: Date;
3227
+ deletedAt: Date | null;
3228
+ userId: string | null;
3229
+ sipServerUrl: string;
3230
+ sipUserName: string;
3231
+ webphoneLoginUser: string;
3232
+ extensionId: string | null;
3233
+ extensionName: string;
3234
+ telephonySignature: string | null;
3235
+ }, {
3236
+ id: string;
3237
+ createdAt: Date;
3238
+ updatedAt: Date;
3239
+ deletedAt: Date | null;
3240
+ userId: string | null;
3241
+ sipServerUrl: string;
3242
+ sipUserName: string;
3243
+ webphoneLoginUser: string;
3244
+ extensionId: string | null;
3245
+ extensionName: string;
3246
+ telephonySignature: string | null;
3247
+ }>;
3248
+ }, "strip", z.ZodTypeAny, {
3249
+ name: string;
3250
+ id: string;
3251
+ address: string | null;
3252
+ email: string;
3253
+ createdAt: Date;
3254
+ updatedAt: Date;
3255
+ deletedAt: Date | null;
3256
+ emailVerifiedAt: Date | null;
3257
+ password: string;
3258
+ phone: string | null;
3259
+ notificationCount: number | null;
3260
+ roles: {
3261
+ id: string;
3262
+ description: string | null;
3263
+ createdAt: Date;
3264
+ updatedAt: Date;
3265
+ deletedAt: Date | null;
3266
+ systemName: string;
3267
+ displayName: string;
3268
+ permissions: {
3269
+ id: string;
3270
+ description: string | null;
3271
+ createdAt: Date;
3272
+ updatedAt: Date;
3273
+ deletedAt: Date | null;
3274
+ systemName: string;
3275
+ displayName: string;
3276
+ }[];
3277
+ }[];
3278
+ extension: {
3279
+ id: string;
3280
+ createdAt: Date;
3281
+ updatedAt: Date;
3282
+ deletedAt: Date | null;
3283
+ userId: string | null;
3284
+ sipServerUrl: string;
3285
+ sipUserName: string;
3286
+ webphoneLoginUser: string;
3287
+ extensionId: string | null;
3288
+ extensionName: string;
3289
+ telephonySignature: string | null;
3290
+ };
3291
+ }, {
3292
+ name: string;
3293
+ id: string;
3294
+ address: string | null;
3295
+ email: string;
3296
+ createdAt: Date;
3297
+ updatedAt: Date;
3298
+ deletedAt: Date | null;
3299
+ emailVerifiedAt: Date | null;
3300
+ password: string;
3301
+ phone: string | null;
3302
+ notificationCount: number | null;
3303
+ roles: {
3304
+ id: string;
3305
+ description: string | null;
3306
+ createdAt: Date;
3307
+ updatedAt: Date;
3308
+ deletedAt: Date | null;
3309
+ systemName: string;
3310
+ displayName: string;
3311
+ permissions: {
3312
+ id: string;
3313
+ description: string | null;
3314
+ createdAt: Date;
3315
+ updatedAt: Date;
3316
+ deletedAt: Date | null;
3317
+ systemName: string;
3318
+ displayName: string;
3319
+ }[];
3320
+ }[];
3321
+ extension: {
3322
+ id: string;
3323
+ createdAt: Date;
3324
+ updatedAt: Date;
3325
+ deletedAt: Date | null;
3326
+ userId: string | null;
3327
+ sipServerUrl: string;
3328
+ sipUserName: string;
3329
+ webphoneLoginUser: string;
3330
+ extensionId: string | null;
3331
+ extensionName: string;
3332
+ telephonySignature: string | null;
3333
+ };
3334
+ }>;
3335
+ }, "strip", z.ZodTypeAny, {
3336
+ name: string;
3337
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3338
+ id: string;
3339
+ metadata: {
3340
+ name: string;
3341
+ id: string;
3342
+ accessToken?: string | undefined;
3343
+ channelSecret?: string | undefined;
3344
+ additionalCredentials?: any;
3345
+ senderId?: string | undefined;
3346
+ whatsapp?: {
3347
+ wabaBusinessId?: string | null | undefined;
3348
+ wabaExternalId?: string | null | undefined;
3349
+ phoneNumberId?: string | null | undefined;
3350
+ email?: string | null | undefined;
3351
+ clientId?: string | null | undefined;
3352
+ channelId?: string | null | undefined;
3353
+ waapiInstanceId?: string | null | undefined;
3354
+ qr?: string | null | undefined;
3355
+ status?: "active" | "pending" | "waapi-qr" | undefined;
3356
+ apiKey?: string | undefined;
3357
+ tier?: "basic" | "regular" | "premium" | undefined;
3358
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3359
+ } | undefined;
3360
+ vonageCredentials?: {
3361
+ apiKey: string;
3362
+ mobileNumber: string;
3363
+ apiSecret: string;
3364
+ } | undefined;
3365
+ lineRichMenuId?: string | null | undefined;
3366
+ messengerIntegrationType?: "own" | "business" | undefined;
3367
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
3368
+ };
3369
+ status: boolean;
3370
+ createdAt: Date;
3371
+ updatedAt: Date;
3372
+ deletedAt: Date | null;
3373
+ actor: {
3374
+ name: string;
3375
+ id: string;
3376
+ address: string | null;
3377
+ email: string;
3378
+ createdAt: Date;
3379
+ updatedAt: Date;
3380
+ deletedAt: Date | null;
3381
+ emailVerifiedAt: Date | null;
3382
+ password: string;
3383
+ phone: string | null;
3384
+ notificationCount: number | null;
3385
+ roles: {
3386
+ id: string;
3387
+ description: string | null;
3388
+ createdAt: Date;
3389
+ updatedAt: Date;
3390
+ deletedAt: Date | null;
3391
+ systemName: string;
3392
+ displayName: string;
3393
+ permissions: {
3394
+ id: string;
3395
+ description: string | null;
3396
+ createdAt: Date;
3397
+ updatedAt: Date;
3398
+ deletedAt: Date | null;
3399
+ systemName: string;
3400
+ displayName: string;
3401
+ }[];
3402
+ }[];
3403
+ extension: {
3404
+ id: string;
3405
+ createdAt: Date;
3406
+ updatedAt: Date;
3407
+ deletedAt: Date | null;
3408
+ userId: string | null;
3409
+ sipServerUrl: string;
3410
+ sipUserName: string;
3411
+ webphoneLoginUser: string;
3412
+ extensionId: string | null;
3413
+ extensionName: string;
3414
+ telephonySignature: string | null;
3415
+ };
3416
+ };
3417
+ brandName: string;
3418
+ platformId: string;
3419
+ isReloginRequired: boolean;
3420
+ connectedUserName: string;
3421
+ connectedUserId: string;
3422
+ botpressBot: {
3423
+ name: string;
3424
+ id: string;
3425
+ accessToken: string;
3426
+ botId: string;
3427
+ integrationId: string;
3428
+ } | null;
3429
+ }, {
3430
+ name: string;
3431
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3432
+ id: string;
3433
+ metadata: {
3434
+ name: string;
3435
+ id: string;
3436
+ accessToken?: string | undefined;
3437
+ channelSecret?: string | undefined;
3438
+ additionalCredentials?: any;
3439
+ senderId?: string | undefined;
3440
+ whatsapp?: {
3441
+ wabaBusinessId?: string | null | undefined;
3442
+ wabaExternalId?: string | null | undefined;
3443
+ phoneNumberId?: string | null | undefined;
3444
+ email?: string | null | undefined;
3445
+ clientId?: string | null | undefined;
3446
+ channelId?: string | null | undefined;
3447
+ waapiInstanceId?: string | null | undefined;
3448
+ qr?: string | null | undefined;
3449
+ status?: "active" | "pending" | "waapi-qr" | undefined;
3450
+ apiKey?: string | undefined;
3451
+ tier?: "basic" | "regular" | "premium" | undefined;
3452
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3453
+ } | undefined;
3454
+ vonageCredentials?: {
3455
+ apiKey: string;
3456
+ mobileNumber: string;
3457
+ apiSecret: string;
3458
+ } | undefined;
3459
+ lineRichMenuId?: string | null | undefined;
3460
+ messengerIntegrationType?: "own" | "business" | undefined;
3461
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
3462
+ };
3463
+ status: boolean;
3464
+ createdAt: Date;
3465
+ updatedAt: Date;
3466
+ deletedAt: Date | null;
3467
+ actor: {
3468
+ name: string;
3469
+ id: string;
3470
+ address: string | null;
3471
+ email: string;
3472
+ createdAt: Date;
3473
+ updatedAt: Date;
3474
+ deletedAt: Date | null;
3475
+ emailVerifiedAt: Date | null;
3476
+ password: string;
3477
+ phone: string | null;
3478
+ notificationCount: number | null;
3479
+ roles: {
3480
+ id: string;
3481
+ description: string | null;
3482
+ createdAt: Date;
3483
+ updatedAt: Date;
3484
+ deletedAt: Date | null;
3485
+ systemName: string;
3486
+ displayName: string;
3487
+ permissions: {
3488
+ id: string;
3489
+ description: string | null;
3490
+ createdAt: Date;
3491
+ updatedAt: Date;
3492
+ deletedAt: Date | null;
3493
+ systemName: string;
3494
+ displayName: string;
3495
+ }[];
3496
+ }[];
3497
+ extension: {
3498
+ id: string;
3499
+ createdAt: Date;
3500
+ updatedAt: Date;
3501
+ deletedAt: Date | null;
3502
+ userId: string | null;
3503
+ sipServerUrl: string;
3504
+ sipUserName: string;
3505
+ webphoneLoginUser: string;
3506
+ extensionId: string | null;
3507
+ extensionName: string;
3508
+ telephonySignature: string | null;
3509
+ };
3510
+ };
3511
+ brandName: string;
3512
+ platformId: string;
3513
+ isReloginRequired: boolean;
3514
+ connectedUserName: string;
3515
+ connectedUserId: string;
3516
+ botpressBot: {
3517
+ name: string;
3518
+ id: string;
3519
+ accessToken: string;
3520
+ botId: string;
3521
+ integrationId: string;
3522
+ } | null;
3523
+ }>;
3524
+ }, "strip", z.ZodTypeAny, {
3525
+ channel: {
3526
+ name: string;
3527
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3528
+ id: string;
3529
+ metadata: {
3530
+ name: string;
3531
+ id: string;
3532
+ accessToken?: string | undefined;
3533
+ channelSecret?: string | undefined;
3534
+ additionalCredentials?: any;
3535
+ senderId?: string | undefined;
3536
+ whatsapp?: {
3537
+ wabaBusinessId?: string | null | undefined;
3538
+ wabaExternalId?: string | null | undefined;
3539
+ phoneNumberId?: string | null | undefined;
3540
+ email?: string | null | undefined;
3541
+ clientId?: string | null | undefined;
3542
+ channelId?: string | null | undefined;
3543
+ waapiInstanceId?: string | null | undefined;
3544
+ qr?: string | null | undefined;
3545
+ status?: "active" | "pending" | "waapi-qr" | undefined;
3546
+ apiKey?: string | undefined;
3547
+ tier?: "basic" | "regular" | "premium" | undefined;
3548
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3549
+ } | undefined;
3550
+ vonageCredentials?: {
3551
+ apiKey: string;
3552
+ mobileNumber: string;
3553
+ apiSecret: string;
3554
+ } | undefined;
3555
+ lineRichMenuId?: string | null | undefined;
3556
+ messengerIntegrationType?: "own" | "business" | undefined;
3557
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
3558
+ };
3559
+ status: boolean;
3560
+ createdAt: Date;
3561
+ updatedAt: Date;
3562
+ deletedAt: Date | null;
3563
+ actor: {
3564
+ name: string;
3565
+ id: string;
3566
+ address: string | null;
3567
+ email: string;
3568
+ createdAt: Date;
3569
+ updatedAt: Date;
3570
+ deletedAt: Date | null;
3571
+ emailVerifiedAt: Date | null;
3572
+ password: string;
3573
+ phone: string | null;
3574
+ notificationCount: number | null;
3575
+ roles: {
3576
+ id: string;
3577
+ description: string | null;
3578
+ createdAt: Date;
3579
+ updatedAt: Date;
3580
+ deletedAt: Date | null;
3581
+ systemName: string;
3582
+ displayName: string;
3583
+ permissions: {
3584
+ id: string;
3585
+ description: string | null;
3586
+ createdAt: Date;
3587
+ updatedAt: Date;
3588
+ deletedAt: Date | null;
3589
+ systemName: string;
3590
+ displayName: string;
3591
+ }[];
3592
+ }[];
3593
+ extension: {
3594
+ id: string;
3595
+ createdAt: Date;
3596
+ updatedAt: Date;
3597
+ deletedAt: Date | null;
3598
+ userId: string | null;
3599
+ sipServerUrl: string;
3600
+ sipUserName: string;
3601
+ webphoneLoginUser: string;
3602
+ extensionId: string | null;
3603
+ extensionName: string;
3604
+ telephonySignature: string | null;
3605
+ };
3606
+ };
3607
+ brandName: string;
3608
+ platformId: string;
3609
+ isReloginRequired: boolean;
3610
+ connectedUserName: string;
3611
+ connectedUserId: string;
3612
+ botpressBot: {
3613
+ name: string;
3614
+ id: string;
3615
+ accessToken: string;
3616
+ botId: string;
3617
+ integrationId: string;
3618
+ } | null;
3619
+ };
3620
+ requestId: string;
3621
+ }, {
3622
+ channel: {
3623
+ name: string;
3624
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat" | "facebook_feed" | "sms_vonage";
3625
+ id: string;
3626
+ metadata: {
3627
+ name: string;
3628
+ id: string;
3629
+ accessToken?: string | undefined;
3630
+ channelSecret?: string | undefined;
3631
+ additionalCredentials?: any;
3632
+ senderId?: string | undefined;
3633
+ whatsapp?: {
3634
+ wabaBusinessId?: string | null | undefined;
3635
+ wabaExternalId?: string | null | undefined;
3636
+ phoneNumberId?: string | null | undefined;
3637
+ email?: string | null | undefined;
3638
+ clientId?: string | null | undefined;
3639
+ channelId?: string | null | undefined;
3640
+ waapiInstanceId?: string | null | undefined;
3641
+ qr?: string | null | undefined;
3642
+ status?: "active" | "pending" | "waapi-qr" | undefined;
3643
+ apiKey?: string | undefined;
3644
+ tier?: "basic" | "regular" | "premium" | undefined;
3645
+ integrationType?: "meta" | "360dialog" | "waapi" | undefined;
3646
+ } | undefined;
3647
+ vonageCredentials?: {
3648
+ apiKey: string;
3649
+ mobileNumber: string;
3650
+ apiSecret: string;
3651
+ } | undefined;
3652
+ lineRichMenuId?: string | null | undefined;
3653
+ messengerIntegrationType?: "own" | "business" | undefined;
3654
+ facebookFeedIntegrationType?: "own" | "business" | undefined;
3655
+ };
3656
+ status: boolean;
3657
+ createdAt: Date;
3658
+ updatedAt: Date;
3659
+ deletedAt: Date | null;
3660
+ actor: {
3661
+ name: string;
3662
+ id: string;
3663
+ address: string | null;
3664
+ email: string;
3665
+ createdAt: Date;
3666
+ updatedAt: Date;
3667
+ deletedAt: Date | null;
3668
+ emailVerifiedAt: Date | null;
3669
+ password: string;
3670
+ phone: string | null;
3671
+ notificationCount: number | null;
3672
+ roles: {
3673
+ id: string;
3674
+ description: string | null;
3675
+ createdAt: Date;
3676
+ updatedAt: Date;
3677
+ deletedAt: Date | null;
3678
+ systemName: string;
3679
+ displayName: string;
3680
+ permissions: {
3681
+ id: string;
3682
+ description: string | null;
3683
+ createdAt: Date;
3684
+ updatedAt: Date;
3685
+ deletedAt: Date | null;
3686
+ systemName: string;
3687
+ displayName: string;
3688
+ }[];
3689
+ }[];
3690
+ extension: {
3691
+ id: string;
3692
+ createdAt: Date;
3693
+ updatedAt: Date;
3694
+ deletedAt: Date | null;
3695
+ userId: string | null;
3696
+ sipServerUrl: string;
3697
+ sipUserName: string;
3698
+ webphoneLoginUser: string;
3699
+ extensionId: string | null;
3700
+ extensionName: string;
3701
+ telephonySignature: string | null;
3702
+ };
3703
+ };
3704
+ brandName: string;
3705
+ platformId: string;
3706
+ isReloginRequired: boolean;
3707
+ connectedUserName: string;
3708
+ connectedUserId: string;
3709
+ botpressBot: {
3710
+ name: string;
3711
+ id: string;
3712
+ accessToken: string;
3713
+ botId: string;
3714
+ integrationId: string;
3715
+ } | null;
3716
+ };
3717
+ requestId: string;
3718
+ }>;
3719
+ 400: z.ZodObject<{
3720
+ message: z.ZodString;
3721
+ error: z.ZodAny;
3722
+ }, "strip", z.ZodTypeAny, {
3723
+ message: string;
3724
+ error?: any;
3725
+ }, {
3726
+ message: string;
3727
+ error?: any;
3728
+ }>;
3729
+ 500: z.ZodObject<{
3730
+ message: z.ZodString;
3731
+ error: z.ZodAny;
3732
+ }, "strip", z.ZodTypeAny, {
3733
+ message: string;
3734
+ error?: any;
3735
+ }, {
3736
+ message: string;
3737
+ error?: any;
3738
+ }>;
3739
+ };
3740
+ path: "/delete/:channelId";
3741
+ };
869
3742
  sendMessage: {
870
3743
  body: z.ZodObject<{
871
3744
  isBot: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;