@kl1/contracts 1.1.22 → 1.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/index.js +579 -211
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +578 -211
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/business-calendar/index.d.ts +799 -0
  6. package/dist/src/business-calendar/index.d.ts.map +1 -0
  7. package/dist/src/business-calendar/schema.d.ts +172 -0
  8. package/dist/src/business-calendar/schema.d.ts.map +1 -0
  9. package/dist/src/business-calendar/validation.d.ts +210 -0
  10. package/dist/src/business-calendar/validation.d.ts.map +1 -0
  11. package/dist/src/channel/index.d.ts +725 -611
  12. package/dist/src/channel/index.d.ts.map +1 -1
  13. package/dist/src/channel/schema.d.ts +12 -12
  14. package/dist/src/channel/schema.d.ts.map +1 -1
  15. package/dist/src/channel/validation.d.ts +71 -8
  16. package/dist/src/channel/validation.d.ts.map +1 -1
  17. package/dist/src/chat/index.d.ts +5144 -299
  18. package/dist/src/chat/index.d.ts.map +1 -1
  19. package/dist/src/chat/schema.d.ts +807 -47
  20. package/dist/src/chat/schema.d.ts.map +1 -1
  21. package/dist/src/chat/validation.d.ts +1093 -118
  22. package/dist/src/chat/validation.d.ts.map +1 -1
  23. package/dist/src/contract.d.ts +26553 -6263
  24. package/dist/src/contract.d.ts.map +1 -1
  25. package/dist/src/cx-log/index.d.ts +376 -31
  26. package/dist/src/cx-log/index.d.ts.map +1 -1
  27. package/dist/src/cx-log/schema.d.ts +577 -27
  28. package/dist/src/cx-log/schema.d.ts.map +1 -1
  29. package/dist/src/index.d.ts +1 -0
  30. package/dist/src/index.d.ts.map +1 -1
  31. package/dist/src/instagram/index.d.ts +628 -138
  32. package/dist/src/instagram/index.d.ts.map +1 -1
  33. package/dist/src/line/index.d.ts +623 -133
  34. package/dist/src/line/index.d.ts.map +1 -1
  35. package/dist/src/line/schema.d.ts.map +1 -1
  36. package/dist/src/line/validation.d.ts +23 -23
  37. package/dist/src/line/validation.d.ts.map +1 -1
  38. package/dist/src/mail/account-contract.d.ts +230 -4
  39. package/dist/src/mail/account-contract.d.ts.map +1 -1
  40. package/dist/src/mail/mail-contract.d.ts +3277 -435
  41. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  42. package/dist/src/mail/message-contract.d.ts +58 -1
  43. package/dist/src/mail/message-contract.d.ts.map +1 -1
  44. package/dist/src/mail/room-contract.d.ts +3009 -450
  45. package/dist/src/mail/room-contract.d.ts.map +1 -1
  46. package/dist/src/mail/schemas/room-validation.schema.d.ts +731 -6
  47. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  48. package/dist/src/mail/schemas/room.schema.d.ts +557 -0
  49. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  50. package/dist/src/messenger/index.d.ts +628 -138
  51. package/dist/src/messenger/index.d.ts.map +1 -1
  52. package/dist/src/messenger/validation.d.ts +13 -13
  53. package/dist/src/snippet/index.d.ts +545 -97
  54. package/dist/src/snippet/index.d.ts.map +1 -1
  55. package/dist/src/snippet/schema.d.ts +220 -19
  56. package/dist/src/snippet/schema.d.ts.map +1 -1
  57. package/dist/src/snippet/validation.d.ts +5 -5
  58. package/dist/src/viber/index.d.ts +592 -102
  59. package/dist/src/viber/index.d.ts.map +1 -1
  60. package/dist/src/webchat/index.d.ts +8506 -0
  61. package/dist/src/webchat/index.d.ts.map +1 -0
  62. package/dist/src/webchat/schema.d.ts +95 -0
  63. package/dist/src/webchat/schema.d.ts.map +1 -0
  64. package/dist/src/webchat/validation.d.ts +36 -0
  65. package/dist/src/webchat/validation.d.ts.map +1 -0
  66. package/dist/src/workflow-rule/index.d.ts +7295 -0
  67. package/dist/src/workflow-rule/index.d.ts.map +1 -0
  68. package/dist/src/workflow-rule/schema.d.ts +27 -0
  69. package/dist/src/workflow-rule/schema.d.ts.map +1 -0
  70. package/dist/src/wrap-up-form/index.d.ts +1000 -6
  71. package/dist/src/wrap-up-form/index.d.ts.map +1 -1
  72. package/dist/src/wrap-up-form/schema.d.ts +207 -2
  73. package/dist/src/wrap-up-form/schema.d.ts.map +1 -1
  74. package/dist/src/wrap-up-form/validation.d.ts +29 -0
  75. package/dist/src/wrap-up-form/validation.d.ts.map +1 -1
  76. package/package.json +1 -1
@@ -57,23 +57,23 @@ export declare const viberContract: {
57
57
  updatedAt: z.ZodDate;
58
58
  deletedAt: z.ZodNullable<z.ZodDate>;
59
59
  name: z.ZodString;
60
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
60
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
61
61
  metadata: z.ZodObject<{
62
62
  id: z.ZodString;
63
63
  name: z.ZodString;
64
- accessToken: z.ZodString;
64
+ accessToken: z.ZodOptional<z.ZodString>;
65
65
  channelSecret: z.ZodOptional<z.ZodString>;
66
66
  additionalCredentials: z.ZodOptional<z.ZodAny>;
67
67
  }, "strip", z.ZodTypeAny, {
68
68
  id: string;
69
69
  name: string;
70
- accessToken: string;
70
+ accessToken?: string | undefined;
71
71
  channelSecret?: string | undefined;
72
72
  additionalCredentials?: any;
73
73
  }, {
74
74
  id: string;
75
75
  name: string;
76
- accessToken: string;
76
+ accessToken?: string | undefined;
77
77
  channelSecret?: string | undefined;
78
78
  additionalCredentials?: any;
79
79
  }>;
@@ -288,13 +288,13 @@ export declare const viberContract: {
288
288
  };
289
289
  }>;
290
290
  }, "strip", z.ZodTypeAny, {
291
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
291
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
292
292
  id: string;
293
293
  name: string;
294
294
  metadata: {
295
295
  id: string;
296
296
  name: string;
297
- accessToken: string;
297
+ accessToken?: string | undefined;
298
298
  channelSecret?: string | undefined;
299
299
  additionalCredentials?: any;
300
300
  };
@@ -352,13 +352,13 @@ export declare const viberContract: {
352
352
  connectedUserName: string;
353
353
  connectedUserId: string;
354
354
  }, {
355
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
355
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
356
356
  id: string;
357
357
  name: string;
358
358
  metadata: {
359
359
  id: string;
360
360
  name: string;
361
- accessToken: string;
361
+ accessToken?: string | undefined;
362
362
  channelSecret?: string | undefined;
363
363
  additionalCredentials?: any;
364
364
  };
@@ -418,13 +418,13 @@ export declare const viberContract: {
418
418
  }>;
419
419
  }, "strip", z.ZodTypeAny, {
420
420
  channel: {
421
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
421
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
422
422
  id: string;
423
423
  name: string;
424
424
  metadata: {
425
425
  id: string;
426
426
  name: string;
427
- accessToken: string;
427
+ accessToken?: string | undefined;
428
428
  channelSecret?: string | undefined;
429
429
  additionalCredentials?: any;
430
430
  };
@@ -485,13 +485,13 @@ export declare const viberContract: {
485
485
  requestId: string;
486
486
  }, {
487
487
  channel: {
488
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
488
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
489
489
  id: string;
490
490
  name: string;
491
491
  metadata: {
492
492
  id: string;
493
493
  name: string;
494
- accessToken: string;
494
+ accessToken?: string | undefined;
495
495
  channelSecret?: string | undefined;
496
496
  additionalCredentials?: any;
497
497
  };
@@ -593,23 +593,23 @@ export declare const viberContract: {
593
593
  updatedAt: z.ZodDate;
594
594
  deletedAt: z.ZodNullable<z.ZodDate>;
595
595
  name: z.ZodString;
596
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
596
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
597
597
  metadata: z.ZodObject<{
598
598
  id: z.ZodString;
599
599
  name: z.ZodString;
600
- accessToken: z.ZodString;
600
+ accessToken: z.ZodOptional<z.ZodString>;
601
601
  channelSecret: z.ZodOptional<z.ZodString>;
602
602
  additionalCredentials: z.ZodOptional<z.ZodAny>;
603
603
  }, "strip", z.ZodTypeAny, {
604
604
  id: string;
605
605
  name: string;
606
- accessToken: string;
606
+ accessToken?: string | undefined;
607
607
  channelSecret?: string | undefined;
608
608
  additionalCredentials?: any;
609
609
  }, {
610
610
  id: string;
611
611
  name: string;
612
- accessToken: string;
612
+ accessToken?: string | undefined;
613
613
  channelSecret?: string | undefined;
614
614
  additionalCredentials?: any;
615
615
  }>;
@@ -824,13 +824,13 @@ export declare const viberContract: {
824
824
  };
825
825
  }>;
826
826
  }, "strip", z.ZodTypeAny, {
827
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
827
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
828
828
  id: string;
829
829
  name: string;
830
830
  metadata: {
831
831
  id: string;
832
832
  name: string;
833
- accessToken: string;
833
+ accessToken?: string | undefined;
834
834
  channelSecret?: string | undefined;
835
835
  additionalCredentials?: any;
836
836
  };
@@ -888,13 +888,13 @@ export declare const viberContract: {
888
888
  connectedUserName: string;
889
889
  connectedUserId: string;
890
890
  }, {
891
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
891
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
892
892
  id: string;
893
893
  name: string;
894
894
  metadata: {
895
895
  id: string;
896
896
  name: string;
897
- accessToken: string;
897
+ accessToken?: string | undefined;
898
898
  channelSecret?: string | undefined;
899
899
  additionalCredentials?: any;
900
900
  };
@@ -954,13 +954,13 @@ export declare const viberContract: {
954
954
  }>;
955
955
  }, "strip", z.ZodTypeAny, {
956
956
  channel: {
957
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
957
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
958
958
  id: string;
959
959
  name: string;
960
960
  metadata: {
961
961
  id: string;
962
962
  name: string;
963
- accessToken: string;
963
+ accessToken?: string | undefined;
964
964
  channelSecret?: string | undefined;
965
965
  additionalCredentials?: any;
966
966
  };
@@ -1021,13 +1021,13 @@ export declare const viberContract: {
1021
1021
  requestId: string;
1022
1022
  }, {
1023
1023
  channel: {
1024
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1024
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1025
1025
  id: string;
1026
1026
  name: string;
1027
1027
  metadata: {
1028
1028
  id: string;
1029
1029
  name: string;
1030
- accessToken: string;
1030
+ accessToken?: string | undefined;
1031
1031
  channelSecret?: string | undefined;
1032
1032
  additionalCredentials?: any;
1033
1033
  };
@@ -1108,13 +1108,14 @@ export declare const viberContract: {
1108
1108
  handleTime: z.ZodOptional<z.ZodNumber>;
1109
1109
  isLatest: z.ZodBoolean;
1110
1110
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
1111
+ metadata: z.ZodOptional<z.ZodAny>;
1111
1112
  createdAt: z.ZodString;
1112
1113
  updatedAt: z.ZodString;
1113
1114
  platformContact: z.ZodObject<{
1114
1115
  id: z.ZodString;
1115
1116
  channelId: z.ZodString;
1116
1117
  socialPlatformId: z.ZodNullable<z.ZodString>;
1117
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
1118
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
1118
1119
  metadata: z.ZodObject<{
1119
1120
  id: z.ZodString;
1120
1121
  name: z.ZodString;
@@ -1154,7 +1155,7 @@ export declare const viberContract: {
1154
1155
  socialProfileUrl: string | null;
1155
1156
  }>;
1156
1157
  }, "strip", z.ZodTypeAny, {
1157
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1158
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1158
1159
  id: string;
1159
1160
  metadata: {
1160
1161
  id: string;
@@ -1173,7 +1174,7 @@ export declare const viberContract: {
1173
1174
  channelId: string;
1174
1175
  socialPlatformId: string | null;
1175
1176
  }, {
1176
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1177
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1177
1178
  id: string;
1178
1179
  metadata: {
1179
1180
  id: string;
@@ -1227,23 +1228,23 @@ export declare const viberContract: {
1227
1228
  channel: z.ZodObject<{
1228
1229
  id: z.ZodString;
1229
1230
  name: z.ZodString;
1230
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
1231
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
1231
1232
  metadata: z.ZodObject<{
1232
1233
  id: z.ZodString;
1233
1234
  name: z.ZodString;
1234
- accessToken: z.ZodString;
1235
+ accessToken: z.ZodOptional<z.ZodString>;
1235
1236
  channelSecret: z.ZodOptional<z.ZodString>;
1236
1237
  additionalCredentials: z.ZodOptional<z.ZodAny>;
1237
1238
  }, "strip", z.ZodTypeAny, {
1238
1239
  id: string;
1239
1240
  name: string;
1240
- accessToken: string;
1241
+ accessToken?: string | undefined;
1241
1242
  channelSecret?: string | undefined;
1242
1243
  additionalCredentials?: any;
1243
1244
  }, {
1244
1245
  id: string;
1245
1246
  name: string;
1246
- accessToken: string;
1247
+ accessToken?: string | undefined;
1247
1248
  channelSecret?: string | undefined;
1248
1249
  additionalCredentials?: any;
1249
1250
  }>;
@@ -1272,13 +1273,13 @@ export declare const viberContract: {
1272
1273
  phone: string | null;
1273
1274
  }>>;
1274
1275
  }, "strip", z.ZodTypeAny, {
1275
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1276
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1276
1277
  id: string;
1277
1278
  name: string;
1278
1279
  metadata: {
1279
1280
  id: string;
1280
1281
  name: string;
1281
- accessToken: string;
1282
+ accessToken?: string | undefined;
1282
1283
  channelSecret?: string | undefined;
1283
1284
  additionalCredentials?: any;
1284
1285
  };
@@ -1295,13 +1296,13 @@ export declare const viberContract: {
1295
1296
  phone: string | null;
1296
1297
  } | undefined;
1297
1298
  }, {
1298
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1299
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1299
1300
  id: string;
1300
1301
  name: string;
1301
1302
  metadata: {
1302
1303
  id: string;
1303
1304
  name: string;
1304
- accessToken: string;
1305
+ accessToken?: string | undefined;
1305
1306
  channelSecret?: string | undefined;
1306
1307
  additionalCredentials?: any;
1307
1308
  };
@@ -1322,13 +1323,13 @@ export declare const viberContract: {
1322
1323
  }, "strip", z.ZodTypeAny, {
1323
1324
  id: string;
1324
1325
  channel: {
1325
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1326
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1326
1327
  id: string;
1327
1328
  name: string;
1328
1329
  metadata: {
1329
1330
  id: string;
1330
1331
  name: string;
1331
- accessToken: string;
1332
+ accessToken?: string | undefined;
1332
1333
  channelSecret?: string | undefined;
1333
1334
  additionalCredentials?: any;
1334
1335
  };
@@ -1357,7 +1358,7 @@ export declare const viberContract: {
1357
1358
  } | null;
1358
1359
  isLatest: boolean;
1359
1360
  platformContact: {
1360
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1361
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1361
1362
  id: string;
1362
1363
  metadata: {
1363
1364
  id: string;
@@ -1383,17 +1384,18 @@ export declare const viberContract: {
1383
1384
  } | null;
1384
1385
  lastMessage?: string | undefined;
1385
1386
  handleTime?: number | undefined;
1387
+ metadata?: any;
1386
1388
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1387
1389
  }, {
1388
1390
  id: string;
1389
1391
  channel: {
1390
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1392
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1391
1393
  id: string;
1392
1394
  name: string;
1393
1395
  metadata: {
1394
1396
  id: string;
1395
1397
  name: string;
1396
- accessToken: string;
1398
+ accessToken?: string | undefined;
1397
1399
  channelSecret?: string | undefined;
1398
1400
  additionalCredentials?: any;
1399
1401
  };
@@ -1422,7 +1424,7 @@ export declare const viberContract: {
1422
1424
  } | null;
1423
1425
  isLatest: boolean;
1424
1426
  platformContact: {
1425
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1427
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1426
1428
  id: string;
1427
1429
  metadata: {
1428
1430
  id: string;
@@ -1448,6 +1450,7 @@ export declare const viberContract: {
1448
1450
  } | null;
1449
1451
  lastMessage?: string | undefined;
1450
1452
  handleTime?: number | undefined;
1453
+ metadata?: any;
1451
1454
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1452
1455
  }>;
1453
1456
  message: z.ZodObject<{
@@ -1586,13 +1589,13 @@ export declare const viberContract: {
1586
1589
  room: {
1587
1590
  id: string;
1588
1591
  channel: {
1589
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1592
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1590
1593
  id: string;
1591
1594
  name: string;
1592
1595
  metadata: {
1593
1596
  id: string;
1594
1597
  name: string;
1595
- accessToken: string;
1598
+ accessToken?: string | undefined;
1596
1599
  channelSecret?: string | undefined;
1597
1600
  additionalCredentials?: any;
1598
1601
  };
@@ -1621,7 +1624,7 @@ export declare const viberContract: {
1621
1624
  } | null;
1622
1625
  isLatest: boolean;
1623
1626
  platformContact: {
1624
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1627
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1625
1628
  id: string;
1626
1629
  metadata: {
1627
1630
  id: string;
@@ -1647,6 +1650,7 @@ export declare const viberContract: {
1647
1650
  } | null;
1648
1651
  lastMessage?: string | undefined;
1649
1652
  handleTime?: number | undefined;
1653
+ metadata?: any;
1650
1654
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1651
1655
  };
1652
1656
  }, {
@@ -1681,13 +1685,13 @@ export declare const viberContract: {
1681
1685
  room: {
1682
1686
  id: string;
1683
1687
  channel: {
1684
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1688
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1685
1689
  id: string;
1686
1690
  name: string;
1687
1691
  metadata: {
1688
1692
  id: string;
1689
1693
  name: string;
1690
- accessToken: string;
1694
+ accessToken?: string | undefined;
1691
1695
  channelSecret?: string | undefined;
1692
1696
  additionalCredentials?: any;
1693
1697
  };
@@ -1716,7 +1720,7 @@ export declare const viberContract: {
1716
1720
  } | null;
1717
1721
  isLatest: boolean;
1718
1722
  platformContact: {
1719
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
1723
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
1720
1724
  id: string;
1721
1725
  metadata: {
1722
1726
  id: string;
@@ -1742,6 +1746,7 @@ export declare const viberContract: {
1742
1746
  } | null;
1743
1747
  lastMessage?: string | undefined;
1744
1748
  handleTime?: number | undefined;
1749
+ metadata?: any;
1745
1750
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
1746
1751
  };
1747
1752
  }>;
@@ -1789,7 +1794,7 @@ export declare const viberContract: {
1789
1794
  deletedAt: z.ZodNullable<z.ZodDate>;
1790
1795
  channelId: z.ZodString;
1791
1796
  socialPlatformId: z.ZodString;
1792
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
1797
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
1793
1798
  metadata: z.ZodObject<{
1794
1799
  id: z.ZodString;
1795
1800
  name: z.ZodString;
@@ -2494,7 +2499,7 @@ export declare const viberContract: {
2494
2499
  }[] | undefined;
2495
2500
  }>;
2496
2501
  }, "strip", z.ZodTypeAny, {
2497
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
2502
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
2498
2503
  id: string;
2499
2504
  metadata: {
2500
2505
  id: string;
@@ -2605,7 +2610,7 @@ export declare const viberContract: {
2605
2610
  channelId: string;
2606
2611
  socialPlatformId: string;
2607
2612
  }, {
2608
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
2613
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
2609
2614
  id: string;
2610
2615
  metadata: {
2611
2616
  id: string;
@@ -3130,23 +3135,23 @@ export declare const viberContract: {
3130
3135
  updatedAt: z.ZodDate;
3131
3136
  deletedAt: z.ZodNullable<z.ZodDate>;
3132
3137
  name: z.ZodString;
3133
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
3138
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
3134
3139
  metadata: z.ZodObject<{
3135
3140
  id: z.ZodString;
3136
3141
  name: z.ZodString;
3137
- accessToken: z.ZodString;
3142
+ accessToken: z.ZodOptional<z.ZodString>;
3138
3143
  channelSecret: z.ZodOptional<z.ZodString>;
3139
3144
  additionalCredentials: z.ZodOptional<z.ZodAny>;
3140
3145
  }, "strip", z.ZodTypeAny, {
3141
3146
  id: string;
3142
3147
  name: string;
3143
- accessToken: string;
3148
+ accessToken?: string | undefined;
3144
3149
  channelSecret?: string | undefined;
3145
3150
  additionalCredentials?: any;
3146
3151
  }, {
3147
3152
  id: string;
3148
3153
  name: string;
3149
- accessToken: string;
3154
+ accessToken?: string | undefined;
3150
3155
  channelSecret?: string | undefined;
3151
3156
  additionalCredentials?: any;
3152
3157
  }>;
@@ -3361,13 +3366,13 @@ export declare const viberContract: {
3361
3366
  };
3362
3367
  }>;
3363
3368
  }, "strip", z.ZodTypeAny, {
3364
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
3369
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3365
3370
  id: string;
3366
3371
  name: string;
3367
3372
  metadata: {
3368
3373
  id: string;
3369
3374
  name: string;
3370
- accessToken: string;
3375
+ accessToken?: string | undefined;
3371
3376
  channelSecret?: string | undefined;
3372
3377
  additionalCredentials?: any;
3373
3378
  };
@@ -3425,13 +3430,13 @@ export declare const viberContract: {
3425
3430
  connectedUserName: string;
3426
3431
  connectedUserId: string;
3427
3432
  }, {
3428
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
3433
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3429
3434
  id: string;
3430
3435
  name: string;
3431
3436
  metadata: {
3432
3437
  id: string;
3433
3438
  name: string;
3434
- accessToken: string;
3439
+ accessToken?: string | undefined;
3435
3440
  channelSecret?: string | undefined;
3436
3441
  additionalCredentials?: any;
3437
3442
  };
@@ -3512,8 +3517,7 @@ export declare const viberContract: {
3512
3517
  deletedAt: z.ZodNullable<z.ZodDate>;
3513
3518
  note: z.ZodNullable<z.ZodString>;
3514
3519
  disposition: z.ZodNullable<z.ZodString>;
3515
- callFrom: z.ZodNullable<z.ZodString>;
3516
- callTo: z.ZodNullable<z.ZodString>;
3520
+ type: z.ZodString;
3517
3521
  tags: z.ZodArray<z.ZodObject<{
3518
3522
  id: z.ZodString;
3519
3523
  createdAt: z.ZodDate;
@@ -3533,12 +3537,171 @@ export declare const viberContract: {
3533
3537
  updatedAt: Date;
3534
3538
  deletedAt: Date | null;
3535
3539
  }>, "many">;
3540
+ categories: z.ZodArray<z.ZodObject<{
3541
+ id: z.ZodString;
3542
+ createdAt: z.ZodDate;
3543
+ updatedAt: z.ZodDate;
3544
+ deletedAt: z.ZodNullable<z.ZodDate>;
3545
+ value: z.ZodString;
3546
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
3547
+ parentId: z.ZodNullable<z.ZodString>;
3548
+ childCategoryList: z.ZodArray<z.ZodObject<{
3549
+ id: z.ZodString;
3550
+ value: z.ZodString;
3551
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
3552
+ parentId: z.ZodNullable<z.ZodString>;
3553
+ childCategoryList: z.ZodArray<z.ZodObject<{
3554
+ id: z.ZodString;
3555
+ value: z.ZodString;
3556
+ level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
3557
+ parentId: z.ZodNullable<z.ZodString>;
3558
+ childCategoryList: z.ZodArray<z.ZodAny, "many">;
3559
+ }, "strip", z.ZodTypeAny, {
3560
+ id: string;
3561
+ value: string;
3562
+ level: 2 | 1 | 3;
3563
+ parentId: string | null;
3564
+ childCategoryList: any[];
3565
+ }, {
3566
+ id: string;
3567
+ value: string;
3568
+ level: 2 | 1 | 3;
3569
+ parentId: string | null;
3570
+ childCategoryList: any[];
3571
+ }>, "many">;
3572
+ }, "strip", z.ZodTypeAny, {
3573
+ id: string;
3574
+ value: string;
3575
+ level: 2 | 1 | 3;
3576
+ parentId: string | null;
3577
+ childCategoryList: {
3578
+ id: string;
3579
+ value: string;
3580
+ level: 2 | 1 | 3;
3581
+ parentId: string | null;
3582
+ childCategoryList: any[];
3583
+ }[];
3584
+ }, {
3585
+ id: string;
3586
+ value: string;
3587
+ level: 2 | 1 | 3;
3588
+ parentId: string | null;
3589
+ childCategoryList: {
3590
+ id: string;
3591
+ value: string;
3592
+ level: 2 | 1 | 3;
3593
+ parentId: string | null;
3594
+ childCategoryList: any[];
3595
+ }[];
3596
+ }>, "many">;
3597
+ }, "strip", z.ZodTypeAny, {
3598
+ id: string;
3599
+ value: string;
3600
+ createdAt: Date;
3601
+ updatedAt: Date;
3602
+ deletedAt: Date | null;
3603
+ level: 2 | 1 | 3;
3604
+ parentId: string | null;
3605
+ childCategoryList: {
3606
+ id: string;
3607
+ value: string;
3608
+ level: 2 | 1 | 3;
3609
+ parentId: string | null;
3610
+ childCategoryList: {
3611
+ id: string;
3612
+ value: string;
3613
+ level: 2 | 1 | 3;
3614
+ parentId: string | null;
3615
+ childCategoryList: any[];
3616
+ }[];
3617
+ }[];
3618
+ }, {
3619
+ id: string;
3620
+ value: string;
3621
+ createdAt: Date;
3622
+ updatedAt: Date;
3623
+ deletedAt: Date | null;
3624
+ level: 2 | 1 | 3;
3625
+ parentId: string | null;
3626
+ childCategoryList: {
3627
+ id: string;
3628
+ value: string;
3629
+ level: 2 | 1 | 3;
3630
+ parentId: string | null;
3631
+ childCategoryList: {
3632
+ id: string;
3633
+ value: string;
3634
+ level: 2 | 1 | 3;
3635
+ parentId: string | null;
3636
+ childCategoryList: any[];
3637
+ }[];
3638
+ }[];
3639
+ }>, "many">;
3640
+ callFrom: z.ZodNullable<z.ZodString>;
3641
+ callTo: z.ZodNullable<z.ZodString>;
3642
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
3643
+ id: z.ZodString;
3644
+ createdAt: z.ZodDate;
3645
+ updatedAt: z.ZodDate;
3646
+ deletedAt: z.ZodNullable<z.ZodDate>;
3647
+ textValue: z.ZodNullable<z.ZodString>;
3648
+ booleanValue: z.ZodNullable<z.ZodBoolean>;
3649
+ numberValue: z.ZodNullable<z.ZodNumber>;
3650
+ dateValue: z.ZodNullable<z.ZodDate>;
3651
+ entityId: z.ZodString;
3652
+ attributeId: z.ZodString;
3653
+ }, "strip", z.ZodTypeAny, {
3654
+ id: string;
3655
+ createdAt: Date;
3656
+ updatedAt: Date;
3657
+ deletedAt: Date | null;
3658
+ entityId: string;
3659
+ attributeId: string;
3660
+ textValue: string | null;
3661
+ booleanValue: boolean | null;
3662
+ numberValue: number | null;
3663
+ dateValue: Date | null;
3664
+ }, {
3665
+ id: string;
3666
+ createdAt: Date;
3667
+ updatedAt: Date;
3668
+ deletedAt: Date | null;
3669
+ entityId: string;
3670
+ attributeId: string;
3671
+ textValue: string | null;
3672
+ booleanValue: boolean | null;
3673
+ numberValue: number | null;
3674
+ dateValue: Date | null;
3675
+ }>, "many">>>;
3536
3676
  }, "strip", z.ZodTypeAny, {
3677
+ type: string;
3537
3678
  id: string;
3538
3679
  disposition: string | null;
3539
3680
  createdAt: Date;
3540
3681
  updatedAt: Date;
3541
3682
  deletedAt: Date | null;
3683
+ categories: {
3684
+ id: string;
3685
+ value: string;
3686
+ createdAt: Date;
3687
+ updatedAt: Date;
3688
+ deletedAt: Date | null;
3689
+ level: 2 | 1 | 3;
3690
+ parentId: string | null;
3691
+ childCategoryList: {
3692
+ id: string;
3693
+ value: string;
3694
+ level: 2 | 1 | 3;
3695
+ parentId: string | null;
3696
+ childCategoryList: {
3697
+ id: string;
3698
+ value: string;
3699
+ level: 2 | 1 | 3;
3700
+ parentId: string | null;
3701
+ childCategoryList: any[];
3702
+ }[];
3703
+ }[];
3704
+ }[];
3542
3705
  tags: {
3543
3706
  id: string;
3544
3707
  name: string;
@@ -3549,12 +3712,47 @@ export declare const viberContract: {
3549
3712
  callFrom: string | null;
3550
3713
  callTo: string | null;
3551
3714
  note: string | null;
3715
+ customFields?: {
3716
+ id: string;
3717
+ createdAt: Date;
3718
+ updatedAt: Date;
3719
+ deletedAt: Date | null;
3720
+ entityId: string;
3721
+ attributeId: string;
3722
+ textValue: string | null;
3723
+ booleanValue: boolean | null;
3724
+ numberValue: number | null;
3725
+ dateValue: Date | null;
3726
+ }[] | null | undefined;
3552
3727
  }, {
3728
+ type: string;
3553
3729
  id: string;
3554
3730
  disposition: string | null;
3555
3731
  createdAt: Date;
3556
3732
  updatedAt: Date;
3557
3733
  deletedAt: Date | null;
3734
+ categories: {
3735
+ id: string;
3736
+ value: string;
3737
+ createdAt: Date;
3738
+ updatedAt: Date;
3739
+ deletedAt: Date | null;
3740
+ level: 2 | 1 | 3;
3741
+ parentId: string | null;
3742
+ childCategoryList: {
3743
+ id: string;
3744
+ value: string;
3745
+ level: 2 | 1 | 3;
3746
+ parentId: string | null;
3747
+ childCategoryList: {
3748
+ id: string;
3749
+ value: string;
3750
+ level: 2 | 1 | 3;
3751
+ parentId: string | null;
3752
+ childCategoryList: any[];
3753
+ }[];
3754
+ }[];
3755
+ }[];
3558
3756
  tags: {
3559
3757
  id: string;
3560
3758
  name: string;
@@ -3565,6 +3763,18 @@ export declare const viberContract: {
3565
3763
  callFrom: string | null;
3566
3764
  callTo: string | null;
3567
3765
  note: string | null;
3766
+ customFields?: {
3767
+ id: string;
3768
+ createdAt: Date;
3769
+ updatedAt: Date;
3770
+ deletedAt: Date | null;
3771
+ entityId: string;
3772
+ attributeId: string;
3773
+ textValue: string | null;
3774
+ booleanValue: boolean | null;
3775
+ numberValue: number | null;
3776
+ dateValue: Date | null;
3777
+ }[] | null | undefined;
3568
3778
  }>>;
3569
3779
  }, "strip", z.ZodTypeAny, {
3570
3780
  id: string;
@@ -3583,11 +3793,34 @@ export declare const viberContract: {
3583
3793
  handledTime: number | null;
3584
3794
  firstResponseTime: number | null;
3585
3795
  wrapUpForm: {
3796
+ type: string;
3586
3797
  id: string;
3587
3798
  disposition: string | null;
3588
3799
  createdAt: Date;
3589
3800
  updatedAt: Date;
3590
3801
  deletedAt: Date | null;
3802
+ categories: {
3803
+ id: string;
3804
+ value: string;
3805
+ createdAt: Date;
3806
+ updatedAt: Date;
3807
+ deletedAt: Date | null;
3808
+ level: 2 | 1 | 3;
3809
+ parentId: string | null;
3810
+ childCategoryList: {
3811
+ id: string;
3812
+ value: string;
3813
+ level: 2 | 1 | 3;
3814
+ parentId: string | null;
3815
+ childCategoryList: {
3816
+ id: string;
3817
+ value: string;
3818
+ level: 2 | 1 | 3;
3819
+ parentId: string | null;
3820
+ childCategoryList: any[];
3821
+ }[];
3822
+ }[];
3823
+ }[];
3591
3824
  tags: {
3592
3825
  id: string;
3593
3826
  name: string;
@@ -3598,6 +3831,18 @@ export declare const viberContract: {
3598
3831
  callFrom: string | null;
3599
3832
  callTo: string | null;
3600
3833
  note: string | null;
3834
+ customFields?: {
3835
+ id: string;
3836
+ createdAt: Date;
3837
+ updatedAt: Date;
3838
+ deletedAt: Date | null;
3839
+ entityId: string;
3840
+ attributeId: string;
3841
+ textValue: string | null;
3842
+ booleanValue: boolean | null;
3843
+ numberValue: number | null;
3844
+ dateValue: Date | null;
3845
+ }[] | null | undefined;
3601
3846
  } | null;
3602
3847
  }, {
3603
3848
  id: string;
@@ -3616,11 +3861,34 @@ export declare const viberContract: {
3616
3861
  handledTime: number | null;
3617
3862
  firstResponseTime: number | null;
3618
3863
  wrapUpForm: {
3864
+ type: string;
3619
3865
  id: string;
3620
3866
  disposition: string | null;
3621
3867
  createdAt: Date;
3622
3868
  updatedAt: Date;
3623
3869
  deletedAt: Date | null;
3870
+ categories: {
3871
+ id: string;
3872
+ value: string;
3873
+ createdAt: Date;
3874
+ updatedAt: Date;
3875
+ deletedAt: Date | null;
3876
+ level: 2 | 1 | 3;
3877
+ parentId: string | null;
3878
+ childCategoryList: {
3879
+ id: string;
3880
+ value: string;
3881
+ level: 2 | 1 | 3;
3882
+ parentId: string | null;
3883
+ childCategoryList: {
3884
+ id: string;
3885
+ value: string;
3886
+ level: 2 | 1 | 3;
3887
+ parentId: string | null;
3888
+ childCategoryList: any[];
3889
+ }[];
3890
+ }[];
3891
+ }[];
3624
3892
  tags: {
3625
3893
  id: string;
3626
3894
  name: string;
@@ -3631,18 +3899,30 @@ export declare const viberContract: {
3631
3899
  callFrom: string | null;
3632
3900
  callTo: string | null;
3633
3901
  note: string | null;
3902
+ customFields?: {
3903
+ id: string;
3904
+ createdAt: Date;
3905
+ updatedAt: Date;
3906
+ deletedAt: Date | null;
3907
+ entityId: string;
3908
+ attributeId: string;
3909
+ textValue: string | null;
3910
+ booleanValue: boolean | null;
3911
+ numberValue: number | null;
3912
+ dateValue: Date | null;
3913
+ }[] | null | undefined;
3634
3914
  } | null;
3635
3915
  }>;
3636
3916
  }, "strip", z.ZodTypeAny, {
3637
3917
  id: string;
3638
3918
  channel: {
3639
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
3919
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3640
3920
  id: string;
3641
3921
  name: string;
3642
3922
  metadata: {
3643
3923
  id: string;
3644
3924
  name: string;
3645
- accessToken: string;
3925
+ accessToken?: string | undefined;
3646
3926
  channelSecret?: string | undefined;
3647
3927
  additionalCredentials?: any;
3648
3928
  };
@@ -3756,7 +4036,7 @@ export declare const viberContract: {
3756
4036
  firstResponseAt: Date;
3757
4037
  isLatest: boolean;
3758
4038
  platformContact: {
3759
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
4039
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3760
4040
  id: string;
3761
4041
  metadata: {
3762
4042
  id: string;
@@ -3930,11 +4210,34 @@ export declare const viberContract: {
3930
4210
  handledTime: number | null;
3931
4211
  firstResponseTime: number | null;
3932
4212
  wrapUpForm: {
4213
+ type: string;
3933
4214
  id: string;
3934
4215
  disposition: string | null;
3935
4216
  createdAt: Date;
3936
4217
  updatedAt: Date;
3937
4218
  deletedAt: Date | null;
4219
+ categories: {
4220
+ id: string;
4221
+ value: string;
4222
+ createdAt: Date;
4223
+ updatedAt: Date;
4224
+ deletedAt: Date | null;
4225
+ level: 2 | 1 | 3;
4226
+ parentId: string | null;
4227
+ childCategoryList: {
4228
+ id: string;
4229
+ value: string;
4230
+ level: 2 | 1 | 3;
4231
+ parentId: string | null;
4232
+ childCategoryList: {
4233
+ id: string;
4234
+ value: string;
4235
+ level: 2 | 1 | 3;
4236
+ parentId: string | null;
4237
+ childCategoryList: any[];
4238
+ }[];
4239
+ }[];
4240
+ }[];
3938
4241
  tags: {
3939
4242
  id: string;
3940
4243
  name: string;
@@ -3945,18 +4248,30 @@ export declare const viberContract: {
3945
4248
  callFrom: string | null;
3946
4249
  callTo: string | null;
3947
4250
  note: string | null;
4251
+ customFields?: {
4252
+ id: string;
4253
+ createdAt: Date;
4254
+ updatedAt: Date;
4255
+ deletedAt: Date | null;
4256
+ entityId: string;
4257
+ attributeId: string;
4258
+ textValue: string | null;
4259
+ booleanValue: boolean | null;
4260
+ numberValue: number | null;
4261
+ dateValue: Date | null;
4262
+ }[] | null | undefined;
3948
4263
  } | null;
3949
4264
  };
3950
4265
  }, {
3951
4266
  id: string;
3952
4267
  channel: {
3953
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
4268
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
3954
4269
  id: string;
3955
4270
  name: string;
3956
4271
  metadata: {
3957
4272
  id: string;
3958
4273
  name: string;
3959
- accessToken: string;
4274
+ accessToken?: string | undefined;
3960
4275
  channelSecret?: string | undefined;
3961
4276
  additionalCredentials?: any;
3962
4277
  };
@@ -4070,7 +4385,7 @@ export declare const viberContract: {
4070
4385
  firstResponseAt: Date;
4071
4386
  isLatest: boolean;
4072
4387
  platformContact: {
4073
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
4388
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
4074
4389
  id: string;
4075
4390
  metadata: {
4076
4391
  id: string;
@@ -4244,11 +4559,34 @@ export declare const viberContract: {
4244
4559
  handledTime: number | null;
4245
4560
  firstResponseTime: number | null;
4246
4561
  wrapUpForm: {
4562
+ type: string;
4247
4563
  id: string;
4248
4564
  disposition: string | null;
4249
4565
  createdAt: Date;
4250
4566
  updatedAt: Date;
4251
4567
  deletedAt: Date | null;
4568
+ categories: {
4569
+ id: string;
4570
+ value: string;
4571
+ createdAt: Date;
4572
+ updatedAt: Date;
4573
+ deletedAt: Date | null;
4574
+ level: 2 | 1 | 3;
4575
+ parentId: string | null;
4576
+ childCategoryList: {
4577
+ id: string;
4578
+ value: string;
4579
+ level: 2 | 1 | 3;
4580
+ parentId: string | null;
4581
+ childCategoryList: {
4582
+ id: string;
4583
+ value: string;
4584
+ level: 2 | 1 | 3;
4585
+ parentId: string | null;
4586
+ childCategoryList: any[];
4587
+ }[];
4588
+ }[];
4589
+ }[];
4252
4590
  tags: {
4253
4591
  id: string;
4254
4592
  name: string;
@@ -4259,6 +4597,18 @@ export declare const viberContract: {
4259
4597
  callFrom: string | null;
4260
4598
  callTo: string | null;
4261
4599
  note: string | null;
4600
+ customFields?: {
4601
+ id: string;
4602
+ createdAt: Date;
4603
+ updatedAt: Date;
4604
+ deletedAt: Date | null;
4605
+ entityId: string;
4606
+ attributeId: string;
4607
+ textValue: string | null;
4608
+ booleanValue: boolean | null;
4609
+ numberValue: number | null;
4610
+ dateValue: Date | null;
4611
+ }[] | null | undefined;
4262
4612
  } | null;
4263
4613
  };
4264
4614
  }>;
@@ -6010,13 +6360,13 @@ export declare const viberContract: {
6010
6360
  room: {
6011
6361
  id: string;
6012
6362
  channel: {
6013
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
6363
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
6014
6364
  id: string;
6015
6365
  name: string;
6016
6366
  metadata: {
6017
6367
  id: string;
6018
6368
  name: string;
6019
- accessToken: string;
6369
+ accessToken?: string | undefined;
6020
6370
  channelSecret?: string | undefined;
6021
6371
  additionalCredentials?: any;
6022
6372
  };
@@ -6130,7 +6480,7 @@ export declare const viberContract: {
6130
6480
  firstResponseAt: Date;
6131
6481
  isLatest: boolean;
6132
6482
  platformContact: {
6133
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
6483
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
6134
6484
  id: string;
6135
6485
  metadata: {
6136
6486
  id: string;
@@ -6304,11 +6654,34 @@ export declare const viberContract: {
6304
6654
  handledTime: number | null;
6305
6655
  firstResponseTime: number | null;
6306
6656
  wrapUpForm: {
6657
+ type: string;
6307
6658
  id: string;
6308
6659
  disposition: string | null;
6309
6660
  createdAt: Date;
6310
6661
  updatedAt: Date;
6311
6662
  deletedAt: Date | null;
6663
+ categories: {
6664
+ id: string;
6665
+ value: string;
6666
+ createdAt: Date;
6667
+ updatedAt: Date;
6668
+ deletedAt: Date | null;
6669
+ level: 2 | 1 | 3;
6670
+ parentId: string | null;
6671
+ childCategoryList: {
6672
+ id: string;
6673
+ value: string;
6674
+ level: 2 | 1 | 3;
6675
+ parentId: string | null;
6676
+ childCategoryList: {
6677
+ id: string;
6678
+ value: string;
6679
+ level: 2 | 1 | 3;
6680
+ parentId: string | null;
6681
+ childCategoryList: any[];
6682
+ }[];
6683
+ }[];
6684
+ }[];
6312
6685
  tags: {
6313
6686
  id: string;
6314
6687
  name: string;
@@ -6319,6 +6692,18 @@ export declare const viberContract: {
6319
6692
  callFrom: string | null;
6320
6693
  callTo: string | null;
6321
6694
  note: string | null;
6695
+ customFields?: {
6696
+ id: string;
6697
+ createdAt: Date;
6698
+ updatedAt: Date;
6699
+ deletedAt: Date | null;
6700
+ entityId: string;
6701
+ attributeId: string;
6702
+ textValue: string | null;
6703
+ booleanValue: boolean | null;
6704
+ numberValue: number | null;
6705
+ dateValue: Date | null;
6706
+ }[] | null | undefined;
6322
6707
  } | null;
6323
6708
  };
6324
6709
  };
@@ -6650,13 +7035,13 @@ export declare const viberContract: {
6650
7035
  room: {
6651
7036
  id: string;
6652
7037
  channel: {
6653
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
7038
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
6654
7039
  id: string;
6655
7040
  name: string;
6656
7041
  metadata: {
6657
7042
  id: string;
6658
7043
  name: string;
6659
- accessToken: string;
7044
+ accessToken?: string | undefined;
6660
7045
  channelSecret?: string | undefined;
6661
7046
  additionalCredentials?: any;
6662
7047
  };
@@ -6770,7 +7155,7 @@ export declare const viberContract: {
6770
7155
  firstResponseAt: Date;
6771
7156
  isLatest: boolean;
6772
7157
  platformContact: {
6773
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
7158
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
6774
7159
  id: string;
6775
7160
  metadata: {
6776
7161
  id: string;
@@ -6944,11 +7329,34 @@ export declare const viberContract: {
6944
7329
  handledTime: number | null;
6945
7330
  firstResponseTime: number | null;
6946
7331
  wrapUpForm: {
7332
+ type: string;
6947
7333
  id: string;
6948
7334
  disposition: string | null;
6949
7335
  createdAt: Date;
6950
7336
  updatedAt: Date;
6951
7337
  deletedAt: Date | null;
7338
+ categories: {
7339
+ id: string;
7340
+ value: string;
7341
+ createdAt: Date;
7342
+ updatedAt: Date;
7343
+ deletedAt: Date | null;
7344
+ level: 2 | 1 | 3;
7345
+ parentId: string | null;
7346
+ childCategoryList: {
7347
+ id: string;
7348
+ value: string;
7349
+ level: 2 | 1 | 3;
7350
+ parentId: string | null;
7351
+ childCategoryList: {
7352
+ id: string;
7353
+ value: string;
7354
+ level: 2 | 1 | 3;
7355
+ parentId: string | null;
7356
+ childCategoryList: any[];
7357
+ }[];
7358
+ }[];
7359
+ }[];
6952
7360
  tags: {
6953
7361
  id: string;
6954
7362
  name: string;
@@ -6959,6 +7367,18 @@ export declare const viberContract: {
6959
7367
  callFrom: string | null;
6960
7368
  callTo: string | null;
6961
7369
  note: string | null;
7370
+ customFields?: {
7371
+ id: string;
7372
+ createdAt: Date;
7373
+ updatedAt: Date;
7374
+ deletedAt: Date | null;
7375
+ entityId: string;
7376
+ attributeId: string;
7377
+ textValue: string | null;
7378
+ booleanValue: boolean | null;
7379
+ numberValue: number | null;
7380
+ dateValue: Date | null;
7381
+ }[] | null | undefined;
6962
7382
  } | null;
6963
7383
  };
6964
7384
  };
@@ -7292,13 +7712,13 @@ export declare const viberContract: {
7292
7712
  room: {
7293
7713
  id: string;
7294
7714
  channel: {
7295
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
7715
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
7296
7716
  id: string;
7297
7717
  name: string;
7298
7718
  metadata: {
7299
7719
  id: string;
7300
7720
  name: string;
7301
- accessToken: string;
7721
+ accessToken?: string | undefined;
7302
7722
  channelSecret?: string | undefined;
7303
7723
  additionalCredentials?: any;
7304
7724
  };
@@ -7412,7 +7832,7 @@ export declare const viberContract: {
7412
7832
  firstResponseAt: Date;
7413
7833
  isLatest: boolean;
7414
7834
  platformContact: {
7415
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
7835
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
7416
7836
  id: string;
7417
7837
  metadata: {
7418
7838
  id: string;
@@ -7586,11 +8006,34 @@ export declare const viberContract: {
7586
8006
  handledTime: number | null;
7587
8007
  firstResponseTime: number | null;
7588
8008
  wrapUpForm: {
8009
+ type: string;
7589
8010
  id: string;
7590
8011
  disposition: string | null;
7591
8012
  createdAt: Date;
7592
8013
  updatedAt: Date;
7593
8014
  deletedAt: Date | null;
8015
+ categories: {
8016
+ id: string;
8017
+ value: string;
8018
+ createdAt: Date;
8019
+ updatedAt: Date;
8020
+ deletedAt: Date | null;
8021
+ level: 2 | 1 | 3;
8022
+ parentId: string | null;
8023
+ childCategoryList: {
8024
+ id: string;
8025
+ value: string;
8026
+ level: 2 | 1 | 3;
8027
+ parentId: string | null;
8028
+ childCategoryList: {
8029
+ id: string;
8030
+ value: string;
8031
+ level: 2 | 1 | 3;
8032
+ parentId: string | null;
8033
+ childCategoryList: any[];
8034
+ }[];
8035
+ }[];
8036
+ }[];
7594
8037
  tags: {
7595
8038
  id: string;
7596
8039
  name: string;
@@ -7601,6 +8044,18 @@ export declare const viberContract: {
7601
8044
  callFrom: string | null;
7602
8045
  callTo: string | null;
7603
8046
  note: string | null;
8047
+ customFields?: {
8048
+ id: string;
8049
+ createdAt: Date;
8050
+ updatedAt: Date;
8051
+ deletedAt: Date | null;
8052
+ entityId: string;
8053
+ attributeId: string;
8054
+ textValue: string | null;
8055
+ booleanValue: boolean | null;
8056
+ numberValue: number | null;
8057
+ dateValue: Date | null;
8058
+ }[] | null | undefined;
7604
8059
  } | null;
7605
8060
  };
7606
8061
  };
@@ -7935,13 +8390,13 @@ export declare const viberContract: {
7935
8390
  room: {
7936
8391
  id: string;
7937
8392
  channel: {
7938
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
8393
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
7939
8394
  id: string;
7940
8395
  name: string;
7941
8396
  metadata: {
7942
8397
  id: string;
7943
8398
  name: string;
7944
- accessToken: string;
8399
+ accessToken?: string | undefined;
7945
8400
  channelSecret?: string | undefined;
7946
8401
  additionalCredentials?: any;
7947
8402
  };
@@ -8055,7 +8510,7 @@ export declare const viberContract: {
8055
8510
  firstResponseAt: Date;
8056
8511
  isLatest: boolean;
8057
8512
  platformContact: {
8058
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
8513
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
8059
8514
  id: string;
8060
8515
  metadata: {
8061
8516
  id: string;
@@ -8229,11 +8684,34 @@ export declare const viberContract: {
8229
8684
  handledTime: number | null;
8230
8685
  firstResponseTime: number | null;
8231
8686
  wrapUpForm: {
8687
+ type: string;
8232
8688
  id: string;
8233
8689
  disposition: string | null;
8234
8690
  createdAt: Date;
8235
8691
  updatedAt: Date;
8236
8692
  deletedAt: Date | null;
8693
+ categories: {
8694
+ id: string;
8695
+ value: string;
8696
+ createdAt: Date;
8697
+ updatedAt: Date;
8698
+ deletedAt: Date | null;
8699
+ level: 2 | 1 | 3;
8700
+ parentId: string | null;
8701
+ childCategoryList: {
8702
+ id: string;
8703
+ value: string;
8704
+ level: 2 | 1 | 3;
8705
+ parentId: string | null;
8706
+ childCategoryList: {
8707
+ id: string;
8708
+ value: string;
8709
+ level: 2 | 1 | 3;
8710
+ parentId: string | null;
8711
+ childCategoryList: any[];
8712
+ }[];
8713
+ }[];
8714
+ }[];
8237
8715
  tags: {
8238
8716
  id: string;
8239
8717
  name: string;
@@ -8244,6 +8722,18 @@ export declare const viberContract: {
8244
8722
  callFrom: string | null;
8245
8723
  callTo: string | null;
8246
8724
  note: string | null;
8725
+ customFields?: {
8726
+ id: string;
8727
+ createdAt: Date;
8728
+ updatedAt: Date;
8729
+ deletedAt: Date | null;
8730
+ entityId: string;
8731
+ attributeId: string;
8732
+ textValue: string | null;
8733
+ booleanValue: boolean | null;
8734
+ numberValue: number | null;
8735
+ dateValue: Date | null;
8736
+ }[] | null | undefined;
8247
8737
  } | null;
8248
8738
  };
8249
8739
  };
@@ -8498,23 +8988,23 @@ export declare const viberContract: {
8498
8988
  updatedAt: z.ZodDate;
8499
8989
  deletedAt: z.ZodNullable<z.ZodDate>;
8500
8990
  name: z.ZodString;
8501
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
8991
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
8502
8992
  metadata: z.ZodObject<{
8503
8993
  id: z.ZodString;
8504
8994
  name: z.ZodString;
8505
- accessToken: z.ZodString;
8995
+ accessToken: z.ZodOptional<z.ZodString>;
8506
8996
  channelSecret: z.ZodOptional<z.ZodString>;
8507
8997
  additionalCredentials: z.ZodOptional<z.ZodAny>;
8508
8998
  }, "strip", z.ZodTypeAny, {
8509
8999
  id: string;
8510
9000
  name: string;
8511
- accessToken: string;
9001
+ accessToken?: string | undefined;
8512
9002
  channelSecret?: string | undefined;
8513
9003
  additionalCredentials?: any;
8514
9004
  }, {
8515
9005
  id: string;
8516
9006
  name: string;
8517
- accessToken: string;
9007
+ accessToken?: string | undefined;
8518
9008
  channelSecret?: string | undefined;
8519
9009
  additionalCredentials?: any;
8520
9010
  }>;
@@ -8729,13 +9219,13 @@ export declare const viberContract: {
8729
9219
  };
8730
9220
  }>;
8731
9221
  }, "strip", z.ZodTypeAny, {
8732
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
9222
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
8733
9223
  id: string;
8734
9224
  name: string;
8735
9225
  metadata: {
8736
9226
  id: string;
8737
9227
  name: string;
8738
- accessToken: string;
9228
+ accessToken?: string | undefined;
8739
9229
  channelSecret?: string | undefined;
8740
9230
  additionalCredentials?: any;
8741
9231
  };
@@ -8793,13 +9283,13 @@ export declare const viberContract: {
8793
9283
  connectedUserName: string;
8794
9284
  connectedUserId: string;
8795
9285
  }, {
8796
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
9286
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
8797
9287
  id: string;
8798
9288
  name: string;
8799
9289
  metadata: {
8800
9290
  id: string;
8801
9291
  name: string;
8802
- accessToken: string;
9292
+ accessToken?: string | undefined;
8803
9293
  channelSecret?: string | undefined;
8804
9294
  additionalCredentials?: any;
8805
9295
  };
@@ -8859,13 +9349,13 @@ export declare const viberContract: {
8859
9349
  }>;
8860
9350
  }, "strip", z.ZodTypeAny, {
8861
9351
  channel: {
8862
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
9352
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
8863
9353
  id: string;
8864
9354
  name: string;
8865
9355
  metadata: {
8866
9356
  id: string;
8867
9357
  name: string;
8868
- accessToken: string;
9358
+ accessToken?: string | undefined;
8869
9359
  channelSecret?: string | undefined;
8870
9360
  additionalCredentials?: any;
8871
9361
  };
@@ -8926,13 +9416,13 @@ export declare const viberContract: {
8926
9416
  requestId: string;
8927
9417
  }, {
8928
9418
  channel: {
8929
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
9419
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
8930
9420
  id: string;
8931
9421
  name: string;
8932
9422
  metadata: {
8933
9423
  id: string;
8934
9424
  name: string;
8935
- accessToken: string;
9425
+ accessToken?: string | undefined;
8936
9426
  channelSecret?: string | undefined;
8937
9427
  additionalCredentials?: any;
8938
9428
  };
@@ -9031,23 +9521,23 @@ export declare const viberContract: {
9031
9521
  data: z.ZodObject<{
9032
9522
  id: z.ZodString;
9033
9523
  name: z.ZodString;
9034
- type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada"]>;
9524
+ type: z.ZodEnum<["whatsapp", "messenger", "telegram", "instagram", "line", "viber", "kakao", "shopee", "lazada", "webchat"]>;
9035
9525
  metadata: z.ZodObject<{
9036
9526
  id: z.ZodString;
9037
9527
  name: z.ZodString;
9038
- accessToken: z.ZodString;
9528
+ accessToken: z.ZodOptional<z.ZodString>;
9039
9529
  channelSecret: z.ZodOptional<z.ZodString>;
9040
9530
  additionalCredentials: z.ZodOptional<z.ZodAny>;
9041
9531
  }, "strip", z.ZodTypeAny, {
9042
9532
  id: string;
9043
9533
  name: string;
9044
- accessToken: string;
9534
+ accessToken?: string | undefined;
9045
9535
  channelSecret?: string | undefined;
9046
9536
  additionalCredentials?: any;
9047
9537
  }, {
9048
9538
  id: string;
9049
9539
  name: string;
9050
- accessToken: string;
9540
+ accessToken?: string | undefined;
9051
9541
  channelSecret?: string | undefined;
9052
9542
  additionalCredentials?: any;
9053
9543
  }>;
@@ -9076,13 +9566,13 @@ export declare const viberContract: {
9076
9566
  phone: string | null;
9077
9567
  }>>;
9078
9568
  }, "strip", z.ZodTypeAny, {
9079
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
9569
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
9080
9570
  id: string;
9081
9571
  name: string;
9082
9572
  metadata: {
9083
9573
  id: string;
9084
9574
  name: string;
9085
- accessToken: string;
9575
+ accessToken?: string | undefined;
9086
9576
  channelSecret?: string | undefined;
9087
9577
  additionalCredentials?: any;
9088
9578
  };
@@ -9099,13 +9589,13 @@ export declare const viberContract: {
9099
9589
  phone: string | null;
9100
9590
  } | undefined;
9101
9591
  }, {
9102
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
9592
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
9103
9593
  id: string;
9104
9594
  name: string;
9105
9595
  metadata: {
9106
9596
  id: string;
9107
9597
  name: string;
9108
- accessToken: string;
9598
+ accessToken?: string | undefined;
9109
9599
  channelSecret?: string | undefined;
9110
9600
  additionalCredentials?: any;
9111
9601
  };
@@ -9124,13 +9614,13 @@ export declare const viberContract: {
9124
9614
  }>;
9125
9615
  }, "strip", z.ZodTypeAny, {
9126
9616
  data: {
9127
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
9617
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
9128
9618
  id: string;
9129
9619
  name: string;
9130
9620
  metadata: {
9131
9621
  id: string;
9132
9622
  name: string;
9133
- accessToken: string;
9623
+ accessToken?: string | undefined;
9134
9624
  channelSecret?: string | undefined;
9135
9625
  additionalCredentials?: any;
9136
9626
  };
@@ -9150,13 +9640,13 @@ export declare const viberContract: {
9150
9640
  requestId: string;
9151
9641
  }, {
9152
9642
  data: {
9153
- type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada";
9643
+ type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
9154
9644
  id: string;
9155
9645
  name: string;
9156
9646
  metadata: {
9157
9647
  id: string;
9158
9648
  name: string;
9159
- accessToken: string;
9649
+ accessToken?: string | undefined;
9160
9650
  channelSecret?: string | undefined;
9161
9651
  additionalCredentials?: any;
9162
9652
  };