@kl1/contracts 1.1.29-uat → 1.1.29

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 (78) hide show
  1. package/dist/index.js +3368 -3236
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +3365 -3238
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/botpress/index.d.ts +547 -0
  6. package/dist/src/botpress/index.d.ts.map +1 -0
  7. package/dist/src/botpress/schema.d.ts +81 -0
  8. package/dist/src/botpress/schema.d.ts.map +1 -0
  9. package/dist/src/botpress/validation.d.ts +229 -0
  10. package/dist/src/botpress/validation.d.ts.map +1 -0
  11. package/dist/src/business-calendar/index.d.ts +36 -0
  12. package/dist/src/business-calendar/index.d.ts.map +1 -1
  13. package/dist/src/business-calendar/schema.d.ts +11 -0
  14. package/dist/src/business-calendar/schema.d.ts.map +1 -1
  15. package/dist/src/channel/index.d.ts +1687 -0
  16. package/dist/src/channel/index.d.ts.map +1 -1
  17. package/dist/src/channel/schema.d.ts +44 -0
  18. package/dist/src/channel/schema.d.ts.map +1 -1
  19. package/dist/src/channel/validation.d.ts +12 -0
  20. package/dist/src/channel/validation.d.ts.map +1 -1
  21. package/dist/src/chat/index.d.ts +34189 -32567
  22. package/dist/src/chat/index.d.ts.map +1 -1
  23. package/dist/src/chat/schema.d.ts +365 -59
  24. package/dist/src/chat/schema.d.ts.map +1 -1
  25. package/dist/src/chat/validation.d.ts +392 -85
  26. package/dist/src/chat/validation.d.ts.map +1 -1
  27. package/dist/src/contract.d.ts +24887 -72196
  28. package/dist/src/contract.d.ts.map +1 -1
  29. package/dist/src/cx-log/index.d.ts +99 -8
  30. package/dist/src/cx-log/index.d.ts.map +1 -1
  31. package/dist/src/cx-log/schema.d.ts +85 -12
  32. package/dist/src/cx-log/schema.d.ts.map +1 -1
  33. package/dist/src/index.d.ts +2 -0
  34. package/dist/src/index.d.ts.map +1 -1
  35. package/dist/src/instagram/index.d.ts +438 -65
  36. package/dist/src/instagram/index.d.ts.map +1 -1
  37. package/dist/src/instagram/validation.d.ts +7 -0
  38. package/dist/src/instagram/validation.d.ts.map +1 -1
  39. package/dist/src/line/index.d.ts +434 -70
  40. package/dist/src/line/index.d.ts.map +1 -1
  41. package/dist/src/line/validation.d.ts +31 -5
  42. package/dist/src/line/validation.d.ts.map +1 -1
  43. package/dist/src/mail/mail-contract.d.ts +33 -2243
  44. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  45. package/dist/src/mail/message-contract.d.ts +1 -2045
  46. package/dist/src/mail/message-contract.d.ts.map +1 -1
  47. package/dist/src/mail/room-contract.d.ts +32 -200
  48. package/dist/src/mail/room-contract.d.ts.map +1 -1
  49. package/dist/src/mail/schemas/message-validation.schema.d.ts +0 -3
  50. package/dist/src/mail/schemas/message-validation.schema.d.ts.map +1 -1
  51. package/dist/src/mail/schemas/message.schema.d.ts +0 -6
  52. package/dist/src/mail/schemas/message.schema.d.ts.map +1 -1
  53. package/dist/src/mail/schemas/room-validation.schema.d.ts +12 -68
  54. package/dist/src/mail/schemas/room-validation.schema.d.ts.map +1 -1
  55. package/dist/src/mail/schemas/room.schema.d.ts +8 -54
  56. package/dist/src/mail/schemas/room.schema.d.ts.map +1 -1
  57. package/dist/src/messenger/index.d.ts +443 -66
  58. package/dist/src/messenger/index.d.ts.map +1 -1
  59. package/dist/src/messenger/validation.d.ts +48 -0
  60. package/dist/src/messenger/validation.d.ts.map +1 -1
  61. package/dist/src/telephony-cdr/call-report.schema.d.ts +62 -62
  62. package/dist/src/telephony-cdr/call-report.schema.d.ts.map +1 -1
  63. package/dist/src/telephony-cdr/index.d.ts +1 -622
  64. package/dist/src/telephony-cdr/index.d.ts.map +1 -1
  65. package/dist/src/viber/index.d.ts +498 -65
  66. package/dist/src/viber/index.d.ts.map +1 -1
  67. package/dist/src/webchat/index.d.ts +379 -68
  68. package/dist/src/webchat/index.d.ts.map +1 -1
  69. package/dist/src/workflow-rule/index.d.ts +7455 -0
  70. package/dist/src/workflow-rule/index.d.ts.map +1 -0
  71. package/dist/src/workflow-rule/schema.d.ts +27 -0
  72. package/dist/src/workflow-rule/schema.d.ts.map +1 -0
  73. package/dist/src/wrap-up-form/index.d.ts +475 -22
  74. package/dist/src/wrap-up-form/index.d.ts.map +1 -1
  75. package/dist/src/wrap-up-form/schema.d.ts +4 -4
  76. package/dist/src/wrap-up-form/validation.d.ts +6 -0
  77. package/dist/src/wrap-up-form/validation.d.ts.map +1 -1
  78. package/package.json +1 -1
@@ -6,7 +6,7 @@ export declare const MessageDirectionTypeSchema: z.ZodEnum<["incoming", "outgoin
6
6
  /**
7
7
  * Message Type Enum
8
8
  */
9
- export declare const MessageTypeSchema: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
9
+ export declare const MessageTypeSchema: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
10
10
  /**
11
11
  * Message Type Enum
12
12
  */
@@ -449,7 +449,9 @@ export declare const PlatformContactSchema: z.ZodObject<{
449
449
  }>, "many">;
450
450
  contactEmails: z.ZodArray<z.ZodObject<{
451
451
  id: z.ZodString;
452
- createdAt: z.ZodDate;
452
+ createdAt: z.ZodDate; /**
453
+ * Message Type Enum
454
+ */
453
455
  updatedAt: z.ZodDate;
454
456
  deletedAt: z.ZodNullable<z.ZodDate>;
455
457
  email: z.ZodString;
@@ -475,6 +477,9 @@ export declare const PlatformContactSchema: z.ZodObject<{
475
477
  updatedAt: z.ZodDate;
476
478
  deletedAt: z.ZodNullable<z.ZodDate>;
477
479
  phone: z.ZodString;
480
+ /**
481
+ * Directions Enum
482
+ */
478
483
  isPrimary: z.ZodBoolean;
479
484
  }, "strip", z.ZodTypeAny, {
480
485
  id: string;
@@ -984,6 +989,7 @@ export declare const RoomSchema: z.ZodObject<{
984
989
  firstResponseAt: z.ZodDate;
985
990
  firstResponseTime: z.ZodNumber;
986
991
  isLatest: z.ZodBoolean;
992
+ isBotRoom: z.ZodBoolean;
987
993
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
988
994
  platformContact: z.ZodObject<{
989
995
  id: z.ZodString;
@@ -1401,7 +1407,9 @@ export declare const RoomSchema: z.ZodObject<{
1401
1407
  }>, "many">;
1402
1408
  contactEmails: z.ZodArray<z.ZodObject<{
1403
1409
  id: z.ZodString;
1404
- createdAt: z.ZodDate;
1410
+ createdAt: z.ZodDate; /**
1411
+ * Message Type Enum
1412
+ */
1405
1413
  updatedAt: z.ZodDate;
1406
1414
  deletedAt: z.ZodNullable<z.ZodDate>;
1407
1415
  email: z.ZodString;
@@ -1427,6 +1435,9 @@ export declare const RoomSchema: z.ZodObject<{
1427
1435
  updatedAt: z.ZodDate;
1428
1436
  deletedAt: z.ZodNullable<z.ZodDate>;
1429
1437
  phone: z.ZodString;
1438
+ /**
1439
+ * Directions Enum
1440
+ */
1430
1441
  isPrimary: z.ZodBoolean;
1431
1442
  }, "strip", z.ZodTypeAny, {
1432
1443
  id: string;
@@ -2340,18 +2351,21 @@ export declare const RoomSchema: z.ZodObject<{
2340
2351
  accessToken: z.ZodOptional<z.ZodString>;
2341
2352
  channelSecret: z.ZodOptional<z.ZodString>;
2342
2353
  additionalCredentials: z.ZodOptional<z.ZodAny>;
2354
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
2343
2355
  }, "strip", z.ZodTypeAny, {
2344
2356
  id: string;
2345
2357
  name: string;
2346
2358
  accessToken?: string | undefined;
2347
2359
  channelSecret?: string | undefined;
2348
2360
  additionalCredentials?: any;
2361
+ lineRichMenuId?: string | null | undefined;
2349
2362
  }, {
2350
2363
  id: string;
2351
2364
  name: string;
2352
2365
  accessToken?: string | undefined;
2353
2366
  channelSecret?: string | undefined;
2354
2367
  additionalCredentials?: any;
2368
+ lineRichMenuId?: string | null | undefined;
2355
2369
  }>;
2356
2370
  brandName: z.ZodString;
2357
2371
  platformId: z.ZodString;
@@ -2359,6 +2373,25 @@ export declare const RoomSchema: z.ZodObject<{
2359
2373
  isReloginRequired: z.ZodBoolean;
2360
2374
  connectedUserName: z.ZodString;
2361
2375
  connectedUserId: z.ZodString;
2376
+ botpressBot: z.ZodNullable<z.ZodObject<{
2377
+ id: z.ZodString;
2378
+ name: z.ZodString;
2379
+ botId: z.ZodString;
2380
+ integrationId: z.ZodString;
2381
+ accessToken: z.ZodString;
2382
+ }, "strip", z.ZodTypeAny, {
2383
+ id: string;
2384
+ name: string;
2385
+ accessToken: string;
2386
+ botId: string;
2387
+ integrationId: string;
2388
+ }, {
2389
+ id: string;
2390
+ name: string;
2391
+ accessToken: string;
2392
+ botId: string;
2393
+ integrationId: string;
2394
+ }>>;
2362
2395
  actor: z.ZodObject<{
2363
2396
  id: z.ZodString;
2364
2397
  createdAt: z.ZodDate;
@@ -2573,6 +2606,7 @@ export declare const RoomSchema: z.ZodObject<{
2573
2606
  accessToken?: string | undefined;
2574
2607
  channelSecret?: string | undefined;
2575
2608
  additionalCredentials?: any;
2609
+ lineRichMenuId?: string | null | undefined;
2576
2610
  };
2577
2611
  status: boolean;
2578
2612
  createdAt: Date;
@@ -2627,6 +2661,13 @@ export declare const RoomSchema: z.ZodObject<{
2627
2661
  isReloginRequired: boolean;
2628
2662
  connectedUserName: string;
2629
2663
  connectedUserId: string;
2664
+ botpressBot: {
2665
+ id: string;
2666
+ name: string;
2667
+ accessToken: string;
2668
+ botId: string;
2669
+ integrationId: string;
2670
+ } | null;
2630
2671
  }, {
2631
2672
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
2632
2673
  id: string;
@@ -2637,6 +2678,7 @@ export declare const RoomSchema: z.ZodObject<{
2637
2678
  accessToken?: string | undefined;
2638
2679
  channelSecret?: string | undefined;
2639
2680
  additionalCredentials?: any;
2681
+ lineRichMenuId?: string | null | undefined;
2640
2682
  };
2641
2683
  status: boolean;
2642
2684
  createdAt: Date;
@@ -2691,6 +2733,13 @@ export declare const RoomSchema: z.ZodObject<{
2691
2733
  isReloginRequired: boolean;
2692
2734
  connectedUserName: string;
2693
2735
  connectedUserId: string;
2736
+ botpressBot: {
2737
+ id: string;
2738
+ name: string;
2739
+ accessToken: string;
2740
+ botId: string;
2741
+ integrationId: string;
2742
+ } | null;
2694
2743
  }>;
2695
2744
  cxlog: z.ZodObject<{
2696
2745
  id: z.ZodString;
@@ -2749,6 +2798,9 @@ export declare const RoomSchema: z.ZodObject<{
2749
2798
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
2750
2799
  parentId: z.ZodNullable<z.ZodString>;
2751
2800
  childCategoryList: z.ZodArray<z.ZodObject<{
2801
+ /**
2802
+ * Message Type Enum
2803
+ */
2752
2804
  id: z.ZodString;
2753
2805
  value: z.ZodString;
2754
2806
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
@@ -2837,7 +2889,7 @@ export declare const RoomSchema: z.ZodObject<{
2837
2889
  }>, "many">;
2838
2890
  callFrom: z.ZodNullable<z.ZodString>;
2839
2891
  callTo: z.ZodNullable<z.ZodString>;
2840
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
2892
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
2841
2893
  id: z.ZodString;
2842
2894
  createdAt: z.ZodDate;
2843
2895
  updatedAt: z.ZodDate;
@@ -2870,7 +2922,7 @@ export declare const RoomSchema: z.ZodObject<{
2870
2922
  booleanValue: boolean | null;
2871
2923
  numberValue: number | null;
2872
2924
  dateValue: Date | null;
2873
- }>, "many">>;
2925
+ }>, "many">>>;
2874
2926
  }, "strip", z.ZodTypeAny, {
2875
2927
  type: string;
2876
2928
  id: string;
@@ -2921,7 +2973,7 @@ export declare const RoomSchema: z.ZodObject<{
2921
2973
  booleanValue: boolean | null;
2922
2974
  numberValue: number | null;
2923
2975
  dateValue: Date | null;
2924
- }[] | undefined;
2976
+ }[] | null | undefined;
2925
2977
  }, {
2926
2978
  type: string;
2927
2979
  id: string;
@@ -2972,7 +3024,7 @@ export declare const RoomSchema: z.ZodObject<{
2972
3024
  booleanValue: boolean | null;
2973
3025
  numberValue: number | null;
2974
3026
  dateValue: Date | null;
2975
- }[] | undefined;
3027
+ }[] | null | undefined;
2976
3028
  }>>;
2977
3029
  }, "strip", z.ZodTypeAny, {
2978
3030
  id: string;
@@ -3040,7 +3092,7 @@ export declare const RoomSchema: z.ZodObject<{
3040
3092
  booleanValue: boolean | null;
3041
3093
  numberValue: number | null;
3042
3094
  dateValue: Date | null;
3043
- }[] | undefined;
3095
+ }[] | null | undefined;
3044
3096
  } | null;
3045
3097
  }, {
3046
3098
  id: string;
@@ -3108,9 +3160,34 @@ export declare const RoomSchema: z.ZodObject<{
3108
3160
  booleanValue: boolean | null;
3109
3161
  numberValue: number | null;
3110
3162
  dateValue: Date | null;
3111
- }[] | undefined;
3163
+ }[] | null | undefined;
3112
3164
  } | null;
3113
3165
  }>;
3166
+ workflowRule: z.ZodObject<{
3167
+ id: z.ZodString;
3168
+ createdAt: z.ZodDate;
3169
+ updatedAt: z.ZodDate;
3170
+ deletedAt: z.ZodNullable<z.ZodDate>;
3171
+ name: z.ZodString;
3172
+ isActive: z.ZodBoolean;
3173
+ type: z.ZodString;
3174
+ }, "strip", z.ZodTypeAny, {
3175
+ type: string;
3176
+ id: string;
3177
+ name: string;
3178
+ createdAt: Date;
3179
+ updatedAt: Date;
3180
+ deletedAt: Date | null;
3181
+ isActive: boolean;
3182
+ }, {
3183
+ type: string;
3184
+ id: string;
3185
+ name: string;
3186
+ createdAt: Date;
3187
+ updatedAt: Date;
3188
+ deletedAt: Date | null;
3189
+ isActive: boolean;
3190
+ }>;
3114
3191
  }, "strip", z.ZodTypeAny, {
3115
3192
  id: string;
3116
3193
  channel: {
@@ -3123,6 +3200,7 @@ export declare const RoomSchema: z.ZodObject<{
3123
3200
  accessToken?: string | undefined;
3124
3201
  channelSecret?: string | undefined;
3125
3202
  additionalCredentials?: any;
3203
+ lineRichMenuId?: string | null | undefined;
3126
3204
  };
3127
3205
  status: boolean;
3128
3206
  createdAt: Date;
@@ -3177,6 +3255,13 @@ export declare const RoomSchema: z.ZodObject<{
3177
3255
  isReloginRequired: boolean;
3178
3256
  connectedUserName: string;
3179
3257
  connectedUserId: string;
3258
+ botpressBot: {
3259
+ id: string;
3260
+ name: string;
3261
+ accessToken: string;
3262
+ botId: string;
3263
+ integrationId: string;
3264
+ } | null;
3180
3265
  };
3181
3266
  direction: "incoming" | "outgoing" | "system";
3182
3267
  status: number;
@@ -3391,6 +3476,7 @@ export declare const RoomSchema: z.ZodObject<{
3391
3476
  };
3392
3477
  closedAt: Date;
3393
3478
  lastMessageAt: Date | null;
3479
+ isBotRoom: boolean;
3394
3480
  cxlog: {
3395
3481
  id: string;
3396
3482
  channel: string | null;
@@ -3457,9 +3543,18 @@ export declare const RoomSchema: z.ZodObject<{
3457
3543
  booleanValue: boolean | null;
3458
3544
  numberValue: number | null;
3459
3545
  dateValue: Date | null;
3460
- }[] | undefined;
3546
+ }[] | null | undefined;
3461
3547
  } | null;
3462
3548
  };
3549
+ workflowRule: {
3550
+ type: string;
3551
+ id: string;
3552
+ name: string;
3553
+ createdAt: Date;
3554
+ updatedAt: Date;
3555
+ deletedAt: Date | null;
3556
+ isActive: boolean;
3557
+ };
3463
3558
  }, {
3464
3559
  id: string;
3465
3560
  channel: {
@@ -3472,6 +3567,7 @@ export declare const RoomSchema: z.ZodObject<{
3472
3567
  accessToken?: string | undefined;
3473
3568
  channelSecret?: string | undefined;
3474
3569
  additionalCredentials?: any;
3570
+ lineRichMenuId?: string | null | undefined;
3475
3571
  };
3476
3572
  status: boolean;
3477
3573
  createdAt: Date;
@@ -3526,6 +3622,13 @@ export declare const RoomSchema: z.ZodObject<{
3526
3622
  isReloginRequired: boolean;
3527
3623
  connectedUserName: string;
3528
3624
  connectedUserId: string;
3625
+ botpressBot: {
3626
+ id: string;
3627
+ name: string;
3628
+ accessToken: string;
3629
+ botId: string;
3630
+ integrationId: string;
3631
+ } | null;
3529
3632
  };
3530
3633
  direction: "incoming" | "outgoing" | "system";
3531
3634
  status: number;
@@ -3740,6 +3843,7 @@ export declare const RoomSchema: z.ZodObject<{
3740
3843
  };
3741
3844
  closedAt: Date;
3742
3845
  lastMessageAt: Date | null;
3846
+ isBotRoom: boolean;
3743
3847
  cxlog: {
3744
3848
  id: string;
3745
3849
  channel: string | null;
@@ -3806,9 +3910,18 @@ export declare const RoomSchema: z.ZodObject<{
3806
3910
  booleanValue: boolean | null;
3807
3911
  numberValue: number | null;
3808
3912
  dateValue: Date | null;
3809
- }[] | undefined;
3913
+ }[] | null | undefined;
3810
3914
  } | null;
3811
3915
  };
3916
+ workflowRule: {
3917
+ type: string;
3918
+ id: string;
3919
+ name: string;
3920
+ createdAt: Date;
3921
+ updatedAt: Date;
3922
+ deletedAt: Date | null;
3923
+ isActive: boolean;
3924
+ };
3812
3925
  }>;
3813
3926
  /**
3814
3927
  * Message
@@ -3820,7 +3933,7 @@ export declare const MessageSchema: z.ZodObject<{
3820
3933
  deletedAt: z.ZodNullable<z.ZodDate>;
3821
3934
  message: z.ZodString;
3822
3935
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
3823
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
3936
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
3824
3937
  readAt: z.ZodDate;
3825
3938
  metadata: z.ZodAny;
3826
3939
  platformId: z.ZodString;
@@ -3845,6 +3958,7 @@ export declare const MessageSchema: z.ZodObject<{
3845
3958
  firstResponseAt: z.ZodDate;
3846
3959
  firstResponseTime: z.ZodNumber;
3847
3960
  isLatest: z.ZodBoolean;
3961
+ isBotRoom: z.ZodBoolean;
3848
3962
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
3849
3963
  platformContact: z.ZodObject<{
3850
3964
  id: z.ZodString;
@@ -4262,7 +4376,9 @@ export declare const MessageSchema: z.ZodObject<{
4262
4376
  }>, "many">;
4263
4377
  contactEmails: z.ZodArray<z.ZodObject<{
4264
4378
  id: z.ZodString;
4265
- createdAt: z.ZodDate;
4379
+ createdAt: z.ZodDate; /**
4380
+ * Message Type Enum
4381
+ */
4266
4382
  updatedAt: z.ZodDate;
4267
4383
  deletedAt: z.ZodNullable<z.ZodDate>;
4268
4384
  email: z.ZodString;
@@ -4288,6 +4404,9 @@ export declare const MessageSchema: z.ZodObject<{
4288
4404
  updatedAt: z.ZodDate;
4289
4405
  deletedAt: z.ZodNullable<z.ZodDate>;
4290
4406
  phone: z.ZodString;
4407
+ /**
4408
+ * Directions Enum
4409
+ */
4291
4410
  isPrimary: z.ZodBoolean;
4292
4411
  }, "strip", z.ZodTypeAny, {
4293
4412
  id: string;
@@ -5201,18 +5320,21 @@ export declare const MessageSchema: z.ZodObject<{
5201
5320
  accessToken: z.ZodOptional<z.ZodString>;
5202
5321
  channelSecret: z.ZodOptional<z.ZodString>;
5203
5322
  additionalCredentials: z.ZodOptional<z.ZodAny>;
5323
+ lineRichMenuId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5204
5324
  }, "strip", z.ZodTypeAny, {
5205
5325
  id: string;
5206
5326
  name: string;
5207
5327
  accessToken?: string | undefined;
5208
5328
  channelSecret?: string | undefined;
5209
5329
  additionalCredentials?: any;
5330
+ lineRichMenuId?: string | null | undefined;
5210
5331
  }, {
5211
5332
  id: string;
5212
5333
  name: string;
5213
5334
  accessToken?: string | undefined;
5214
5335
  channelSecret?: string | undefined;
5215
5336
  additionalCredentials?: any;
5337
+ lineRichMenuId?: string | null | undefined;
5216
5338
  }>;
5217
5339
  brandName: z.ZodString;
5218
5340
  platformId: z.ZodString;
@@ -5220,6 +5342,25 @@ export declare const MessageSchema: z.ZodObject<{
5220
5342
  isReloginRequired: z.ZodBoolean;
5221
5343
  connectedUserName: z.ZodString;
5222
5344
  connectedUserId: z.ZodString;
5345
+ botpressBot: z.ZodNullable<z.ZodObject<{
5346
+ id: z.ZodString;
5347
+ name: z.ZodString;
5348
+ botId: z.ZodString;
5349
+ integrationId: z.ZodString;
5350
+ accessToken: z.ZodString;
5351
+ }, "strip", z.ZodTypeAny, {
5352
+ id: string;
5353
+ name: string;
5354
+ accessToken: string;
5355
+ botId: string;
5356
+ integrationId: string;
5357
+ }, {
5358
+ id: string;
5359
+ name: string;
5360
+ accessToken: string;
5361
+ botId: string;
5362
+ integrationId: string;
5363
+ }>>;
5223
5364
  actor: z.ZodObject<{
5224
5365
  id: z.ZodString;
5225
5366
  createdAt: z.ZodDate;
@@ -5434,6 +5575,7 @@ export declare const MessageSchema: z.ZodObject<{
5434
5575
  accessToken?: string | undefined;
5435
5576
  channelSecret?: string | undefined;
5436
5577
  additionalCredentials?: any;
5578
+ lineRichMenuId?: string | null | undefined;
5437
5579
  };
5438
5580
  status: boolean;
5439
5581
  createdAt: Date;
@@ -5488,6 +5630,13 @@ export declare const MessageSchema: z.ZodObject<{
5488
5630
  isReloginRequired: boolean;
5489
5631
  connectedUserName: string;
5490
5632
  connectedUserId: string;
5633
+ botpressBot: {
5634
+ id: string;
5635
+ name: string;
5636
+ accessToken: string;
5637
+ botId: string;
5638
+ integrationId: string;
5639
+ } | null;
5491
5640
  }, {
5492
5641
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
5493
5642
  id: string;
@@ -5498,6 +5647,7 @@ export declare const MessageSchema: z.ZodObject<{
5498
5647
  accessToken?: string | undefined;
5499
5648
  channelSecret?: string | undefined;
5500
5649
  additionalCredentials?: any;
5650
+ lineRichMenuId?: string | null | undefined;
5501
5651
  };
5502
5652
  status: boolean;
5503
5653
  createdAt: Date;
@@ -5552,6 +5702,13 @@ export declare const MessageSchema: z.ZodObject<{
5552
5702
  isReloginRequired: boolean;
5553
5703
  connectedUserName: string;
5554
5704
  connectedUserId: string;
5705
+ botpressBot: {
5706
+ id: string;
5707
+ name: string;
5708
+ accessToken: string;
5709
+ botId: string;
5710
+ integrationId: string;
5711
+ } | null;
5555
5712
  }>;
5556
5713
  cxlog: z.ZodObject<{
5557
5714
  id: z.ZodString;
@@ -5610,6 +5767,9 @@ export declare const MessageSchema: z.ZodObject<{
5610
5767
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
5611
5768
  parentId: z.ZodNullable<z.ZodString>;
5612
5769
  childCategoryList: z.ZodArray<z.ZodObject<{
5770
+ /**
5771
+ * Message Type Enum
5772
+ */
5613
5773
  id: z.ZodString;
5614
5774
  value: z.ZodString;
5615
5775
  level: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
@@ -5698,7 +5858,7 @@ export declare const MessageSchema: z.ZodObject<{
5698
5858
  }>, "many">;
5699
5859
  callFrom: z.ZodNullable<z.ZodString>;
5700
5860
  callTo: z.ZodNullable<z.ZodString>;
5701
- customFields: z.ZodOptional<z.ZodArray<z.ZodObject<{
5861
+ customFields: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
5702
5862
  id: z.ZodString;
5703
5863
  createdAt: z.ZodDate;
5704
5864
  updatedAt: z.ZodDate;
@@ -5731,7 +5891,7 @@ export declare const MessageSchema: z.ZodObject<{
5731
5891
  booleanValue: boolean | null;
5732
5892
  numberValue: number | null;
5733
5893
  dateValue: Date | null;
5734
- }>, "many">>;
5894
+ }>, "many">>>;
5735
5895
  }, "strip", z.ZodTypeAny, {
5736
5896
  type: string;
5737
5897
  id: string;
@@ -5782,7 +5942,7 @@ export declare const MessageSchema: z.ZodObject<{
5782
5942
  booleanValue: boolean | null;
5783
5943
  numberValue: number | null;
5784
5944
  dateValue: Date | null;
5785
- }[] | undefined;
5945
+ }[] | null | undefined;
5786
5946
  }, {
5787
5947
  type: string;
5788
5948
  id: string;
@@ -5833,7 +5993,7 @@ export declare const MessageSchema: z.ZodObject<{
5833
5993
  booleanValue: boolean | null;
5834
5994
  numberValue: number | null;
5835
5995
  dateValue: Date | null;
5836
- }[] | undefined;
5996
+ }[] | null | undefined;
5837
5997
  }>>;
5838
5998
  }, "strip", z.ZodTypeAny, {
5839
5999
  id: string;
@@ -5901,7 +6061,7 @@ export declare const MessageSchema: z.ZodObject<{
5901
6061
  booleanValue: boolean | null;
5902
6062
  numberValue: number | null;
5903
6063
  dateValue: Date | null;
5904
- }[] | undefined;
6064
+ }[] | null | undefined;
5905
6065
  } | null;
5906
6066
  }, {
5907
6067
  id: string;
@@ -5969,9 +6129,34 @@ export declare const MessageSchema: z.ZodObject<{
5969
6129
  booleanValue: boolean | null;
5970
6130
  numberValue: number | null;
5971
6131
  dateValue: Date | null;
5972
- }[] | undefined;
6132
+ }[] | null | undefined;
5973
6133
  } | null;
5974
6134
  }>;
6135
+ workflowRule: z.ZodObject<{
6136
+ id: z.ZodString;
6137
+ createdAt: z.ZodDate;
6138
+ updatedAt: z.ZodDate;
6139
+ deletedAt: z.ZodNullable<z.ZodDate>;
6140
+ name: z.ZodString;
6141
+ isActive: z.ZodBoolean;
6142
+ type: z.ZodString;
6143
+ }, "strip", z.ZodTypeAny, {
6144
+ type: string;
6145
+ id: string;
6146
+ name: string;
6147
+ createdAt: Date;
6148
+ updatedAt: Date;
6149
+ deletedAt: Date | null;
6150
+ isActive: boolean;
6151
+ }, {
6152
+ type: string;
6153
+ id: string;
6154
+ name: string;
6155
+ createdAt: Date;
6156
+ updatedAt: Date;
6157
+ deletedAt: Date | null;
6158
+ isActive: boolean;
6159
+ }>;
5975
6160
  }, "strip", z.ZodTypeAny, {
5976
6161
  id: string;
5977
6162
  channel: {
@@ -5984,6 +6169,7 @@ export declare const MessageSchema: z.ZodObject<{
5984
6169
  accessToken?: string | undefined;
5985
6170
  channelSecret?: string | undefined;
5986
6171
  additionalCredentials?: any;
6172
+ lineRichMenuId?: string | null | undefined;
5987
6173
  };
5988
6174
  status: boolean;
5989
6175
  createdAt: Date;
@@ -6038,6 +6224,13 @@ export declare const MessageSchema: z.ZodObject<{
6038
6224
  isReloginRequired: boolean;
6039
6225
  connectedUserName: string;
6040
6226
  connectedUserId: string;
6227
+ botpressBot: {
6228
+ id: string;
6229
+ name: string;
6230
+ accessToken: string;
6231
+ botId: string;
6232
+ integrationId: string;
6233
+ } | null;
6041
6234
  };
6042
6235
  direction: "incoming" | "outgoing" | "system";
6043
6236
  status: number;
@@ -6252,6 +6445,7 @@ export declare const MessageSchema: z.ZodObject<{
6252
6445
  };
6253
6446
  closedAt: Date;
6254
6447
  lastMessageAt: Date | null;
6448
+ isBotRoom: boolean;
6255
6449
  cxlog: {
6256
6450
  id: string;
6257
6451
  channel: string | null;
@@ -6318,9 +6512,18 @@ export declare const MessageSchema: z.ZodObject<{
6318
6512
  booleanValue: boolean | null;
6319
6513
  numberValue: number | null;
6320
6514
  dateValue: Date | null;
6321
- }[] | undefined;
6515
+ }[] | null | undefined;
6322
6516
  } | null;
6323
6517
  };
6518
+ workflowRule: {
6519
+ type: string;
6520
+ id: string;
6521
+ name: string;
6522
+ createdAt: Date;
6523
+ updatedAt: Date;
6524
+ deletedAt: Date | null;
6525
+ isActive: boolean;
6526
+ };
6324
6527
  }, {
6325
6528
  id: string;
6326
6529
  channel: {
@@ -6333,6 +6536,7 @@ export declare const MessageSchema: z.ZodObject<{
6333
6536
  accessToken?: string | undefined;
6334
6537
  channelSecret?: string | undefined;
6335
6538
  additionalCredentials?: any;
6539
+ lineRichMenuId?: string | null | undefined;
6336
6540
  };
6337
6541
  status: boolean;
6338
6542
  createdAt: Date;
@@ -6387,6 +6591,13 @@ export declare const MessageSchema: z.ZodObject<{
6387
6591
  isReloginRequired: boolean;
6388
6592
  connectedUserName: string;
6389
6593
  connectedUserId: string;
6594
+ botpressBot: {
6595
+ id: string;
6596
+ name: string;
6597
+ accessToken: string;
6598
+ botId: string;
6599
+ integrationId: string;
6600
+ } | null;
6390
6601
  };
6391
6602
  direction: "incoming" | "outgoing" | "system";
6392
6603
  status: number;
@@ -6601,6 +6812,7 @@ export declare const MessageSchema: z.ZodObject<{
6601
6812
  };
6602
6813
  closedAt: Date;
6603
6814
  lastMessageAt: Date | null;
6815
+ isBotRoom: boolean;
6604
6816
  cxlog: {
6605
6817
  id: string;
6606
6818
  channel: string | null;
@@ -6667,9 +6879,18 @@ export declare const MessageSchema: z.ZodObject<{
6667
6879
  booleanValue: boolean | null;
6668
6880
  numberValue: number | null;
6669
6881
  dateValue: Date | null;
6670
- }[] | undefined;
6882
+ }[] | null | undefined;
6671
6883
  } | null;
6672
6884
  };
6885
+ workflowRule: {
6886
+ type: string;
6887
+ id: string;
6888
+ name: string;
6889
+ createdAt: Date;
6890
+ updatedAt: Date;
6891
+ deletedAt: Date | null;
6892
+ isActive: boolean;
6893
+ };
6673
6894
  }>;
6674
6895
  upload: z.ZodObject<{
6675
6896
  id: z.ZodString;
@@ -6712,7 +6933,7 @@ export declare const MessageSchema: z.ZodObject<{
6712
6933
  deletedAt: z.ZodNullable<z.ZodDate>;
6713
6934
  message: z.ZodString;
6714
6935
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
6715
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
6936
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
6716
6937
  readAt: z.ZodDate;
6717
6938
  metadata: z.ZodAny;
6718
6939
  platformId: z.ZodString;
@@ -6839,6 +7060,9 @@ export declare const MessageSchema: z.ZodObject<{
6839
7060
  }>, "many">;
6840
7061
  extension: z.ZodObject<{
6841
7062
  id: z.ZodString;
7063
+ /**
7064
+ * Message Type Enum
7065
+ */
6842
7066
  createdAt: z.ZodDate;
6843
7067
  updatedAt: z.ZodDate;
6844
7068
  deletedAt: z.ZodNullable<z.ZodDate>;
@@ -6847,9 +7071,7 @@ export declare const MessageSchema: z.ZodObject<{
6847
7071
  sipUserName: z.ZodString;
6848
7072
  webphoneLoginUser: z.ZodString;
6849
7073
  extensionId: z.ZodNullable<z.ZodString>;
6850
- extensionName: z.ZodString; /**
6851
- * Message Type Enum
6852
- */
7074
+ extensionName: z.ZodString;
6853
7075
  telephonySignature: z.ZodNullable<z.ZodString>;
6854
7076
  }, "strip", z.ZodTypeAny, {
6855
7077
  id: string;
@@ -7045,6 +7267,9 @@ export declare const MessageSchema: z.ZodObject<{
7045
7267
  }>, "many">;
7046
7268
  extension: z.ZodObject<{
7047
7269
  id: z.ZodString;
7270
+ /**
7271
+ * Message Type Enum
7272
+ */
7048
7273
  createdAt: z.ZodDate;
7049
7274
  updatedAt: z.ZodDate;
7050
7275
  deletedAt: z.ZodNullable<z.ZodDate>;
@@ -7053,9 +7278,7 @@ export declare const MessageSchema: z.ZodObject<{
7053
7278
  sipUserName: z.ZodString;
7054
7279
  webphoneLoginUser: z.ZodString;
7055
7280
  extensionId: z.ZodNullable<z.ZodString>;
7056
- extensionName: z.ZodString; /**
7057
- * Message Type Enum
7058
- */
7281
+ extensionName: z.ZodString;
7059
7282
  telephonySignature: z.ZodNullable<z.ZodString>;
7060
7283
  }, "strip", z.ZodTypeAny, {
7061
7284
  id: string;
@@ -7251,6 +7474,9 @@ export declare const MessageSchema: z.ZodObject<{
7251
7474
  }>, "many">;
7252
7475
  extension: z.ZodObject<{
7253
7476
  id: z.ZodString;
7477
+ /**
7478
+ * Message Type Enum
7479
+ */
7254
7480
  createdAt: z.ZodDate;
7255
7481
  updatedAt: z.ZodDate;
7256
7482
  deletedAt: z.ZodNullable<z.ZodDate>;
@@ -7259,9 +7485,7 @@ export declare const MessageSchema: z.ZodObject<{
7259
7485
  sipUserName: z.ZodString;
7260
7486
  webphoneLoginUser: z.ZodString;
7261
7487
  extensionId: z.ZodNullable<z.ZodString>;
7262
- extensionName: z.ZodString; /**
7263
- * Message Type Enum
7264
- */
7488
+ extensionName: z.ZodString;
7265
7489
  telephonySignature: z.ZodNullable<z.ZodString>;
7266
7490
  }, "strip", z.ZodTypeAny, {
7267
7491
  id: string;
@@ -7376,7 +7600,7 @@ export declare const MessageSchema: z.ZodObject<{
7376
7600
  };
7377
7601
  }>;
7378
7602
  }, "strip", z.ZodTypeAny, {
7379
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7603
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7380
7604
  message: string;
7381
7605
  id: string;
7382
7606
  url: string;
@@ -7428,7 +7652,6 @@ export declare const MessageSchema: z.ZodObject<{
7428
7652
  telephonySignature: string | null;
7429
7653
  };
7430
7654
  };
7431
- platformId: string;
7432
7655
  upload: {
7433
7656
  id: string;
7434
7657
  createdAt: Date;
@@ -7485,6 +7708,7 @@ export declare const MessageSchema: z.ZodObject<{
7485
7708
  telephonySignature: string | null;
7486
7709
  };
7487
7710
  };
7711
+ platformId: string;
7488
7712
  readAt: Date;
7489
7713
  platformMessageId: string;
7490
7714
  replyPlatformMessageId: string;
@@ -7538,7 +7762,7 @@ export declare const MessageSchema: z.ZodObject<{
7538
7762
  metadata?: any;
7539
7763
  template?: any;
7540
7764
  }, {
7541
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7765
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7542
7766
  message: string;
7543
7767
  id: string;
7544
7768
  url: string;
@@ -7590,7 +7814,6 @@ export declare const MessageSchema: z.ZodObject<{
7590
7814
  telephonySignature: string | null;
7591
7815
  };
7592
7816
  };
7593
- platformId: string;
7594
7817
  upload: {
7595
7818
  id: string;
7596
7819
  createdAt: Date;
@@ -7647,6 +7870,7 @@ export declare const MessageSchema: z.ZodObject<{
7647
7870
  telephonySignature: string | null;
7648
7871
  };
7649
7872
  };
7873
+ platformId: string;
7650
7874
  readAt: Date;
7651
7875
  platformMessageId: string;
7652
7876
  replyPlatformMessageId: string;
@@ -8312,8 +8536,33 @@ export declare const MessageSchema: z.ZodObject<{
8312
8536
  telephonySignature: string | null;
8313
8537
  };
8314
8538
  }>;
8539
+ workflowRule: z.ZodObject<{
8540
+ id: z.ZodString;
8541
+ createdAt: z.ZodDate;
8542
+ updatedAt: z.ZodDate;
8543
+ deletedAt: z.ZodNullable<z.ZodDate>;
8544
+ name: z.ZodString;
8545
+ isActive: z.ZodBoolean;
8546
+ type: z.ZodString;
8547
+ }, "strip", z.ZodTypeAny, {
8548
+ type: string;
8549
+ id: string;
8550
+ name: string;
8551
+ createdAt: Date;
8552
+ updatedAt: Date;
8553
+ deletedAt: Date | null;
8554
+ isActive: boolean;
8555
+ }, {
8556
+ type: string;
8557
+ id: string;
8558
+ name: string;
8559
+ createdAt: Date;
8560
+ updatedAt: Date;
8561
+ deletedAt: Date | null;
8562
+ isActive: boolean;
8563
+ }>;
8315
8564
  }, "strip", z.ZodTypeAny, {
8316
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
8565
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
8317
8566
  message: string;
8318
8567
  id: string;
8319
8568
  url: string;
@@ -8365,7 +8614,6 @@ export declare const MessageSchema: z.ZodObject<{
8365
8614
  telephonySignature: string | null;
8366
8615
  };
8367
8616
  };
8368
- platformId: string;
8369
8617
  upload: {
8370
8618
  id: string;
8371
8619
  createdAt: Date;
@@ -8422,6 +8670,7 @@ export declare const MessageSchema: z.ZodObject<{
8422
8670
  telephonySignature: string | null;
8423
8671
  };
8424
8672
  };
8673
+ platformId: string;
8425
8674
  room: {
8426
8675
  id: string;
8427
8676
  channel: {
@@ -8434,6 +8683,7 @@ export declare const MessageSchema: z.ZodObject<{
8434
8683
  accessToken?: string | undefined;
8435
8684
  channelSecret?: string | undefined;
8436
8685
  additionalCredentials?: any;
8686
+ lineRichMenuId?: string | null | undefined;
8437
8687
  };
8438
8688
  status: boolean;
8439
8689
  createdAt: Date;
@@ -8488,6 +8738,13 @@ export declare const MessageSchema: z.ZodObject<{
8488
8738
  isReloginRequired: boolean;
8489
8739
  connectedUserName: string;
8490
8740
  connectedUserId: string;
8741
+ botpressBot: {
8742
+ id: string;
8743
+ name: string;
8744
+ accessToken: string;
8745
+ botId: string;
8746
+ integrationId: string;
8747
+ } | null;
8491
8748
  };
8492
8749
  direction: "incoming" | "outgoing" | "system";
8493
8750
  status: number;
@@ -8702,6 +8959,7 @@ export declare const MessageSchema: z.ZodObject<{
8702
8959
  };
8703
8960
  closedAt: Date;
8704
8961
  lastMessageAt: Date | null;
8962
+ isBotRoom: boolean;
8705
8963
  cxlog: {
8706
8964
  id: string;
8707
8965
  channel: string | null;
@@ -8768,9 +9026,27 @@ export declare const MessageSchema: z.ZodObject<{
8768
9026
  booleanValue: boolean | null;
8769
9027
  numberValue: number | null;
8770
9028
  dateValue: Date | null;
8771
- }[] | undefined;
9029
+ }[] | null | undefined;
8772
9030
  } | null;
8773
9031
  };
9032
+ workflowRule: {
9033
+ type: string;
9034
+ id: string;
9035
+ name: string;
9036
+ createdAt: Date;
9037
+ updatedAt: Date;
9038
+ deletedAt: Date | null;
9039
+ isActive: boolean;
9040
+ };
9041
+ };
9042
+ workflowRule: {
9043
+ type: string;
9044
+ id: string;
9045
+ name: string;
9046
+ createdAt: Date;
9047
+ updatedAt: Date;
9048
+ deletedAt: Date | null;
9049
+ isActive: boolean;
8774
9050
  };
8775
9051
  readAt: Date;
8776
9052
  platformMessageId: string;
@@ -8779,7 +9055,7 @@ export declare const MessageSchema: z.ZodObject<{
8779
9055
  previewUrl: string;
8780
9056
  imageSetId: string;
8781
9057
  repliedMessage: {
8782
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
9058
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
8783
9059
  message: string;
8784
9060
  id: string;
8785
9061
  url: string;
@@ -8831,7 +9107,6 @@ export declare const MessageSchema: z.ZodObject<{
8831
9107
  telephonySignature: string | null;
8832
9108
  };
8833
9109
  };
8834
- platformId: string;
8835
9110
  upload: {
8836
9111
  id: string;
8837
9112
  createdAt: Date;
@@ -8888,6 +9163,7 @@ export declare const MessageSchema: z.ZodObject<{
8888
9163
  telephonySignature: string | null;
8889
9164
  };
8890
9165
  };
9166
+ platformId: string;
8891
9167
  readAt: Date;
8892
9168
  platformMessageId: string;
8893
9169
  replyPlatformMessageId: string;
@@ -8988,7 +9264,7 @@ export declare const MessageSchema: z.ZodObject<{
8988
9264
  metadata?: any;
8989
9265
  template?: any;
8990
9266
  }, {
8991
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
9267
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
8992
9268
  message: string;
8993
9269
  id: string;
8994
9270
  url: string;
@@ -9040,7 +9316,6 @@ export declare const MessageSchema: z.ZodObject<{
9040
9316
  telephonySignature: string | null;
9041
9317
  };
9042
9318
  };
9043
- platformId: string;
9044
9319
  upload: {
9045
9320
  id: string;
9046
9321
  createdAt: Date;
@@ -9097,6 +9372,7 @@ export declare const MessageSchema: z.ZodObject<{
9097
9372
  telephonySignature: string | null;
9098
9373
  };
9099
9374
  };
9375
+ platformId: string;
9100
9376
  room: {
9101
9377
  id: string;
9102
9378
  channel: {
@@ -9109,6 +9385,7 @@ export declare const MessageSchema: z.ZodObject<{
9109
9385
  accessToken?: string | undefined;
9110
9386
  channelSecret?: string | undefined;
9111
9387
  additionalCredentials?: any;
9388
+ lineRichMenuId?: string | null | undefined;
9112
9389
  };
9113
9390
  status: boolean;
9114
9391
  createdAt: Date;
@@ -9163,6 +9440,13 @@ export declare const MessageSchema: z.ZodObject<{
9163
9440
  isReloginRequired: boolean;
9164
9441
  connectedUserName: string;
9165
9442
  connectedUserId: string;
9443
+ botpressBot: {
9444
+ id: string;
9445
+ name: string;
9446
+ accessToken: string;
9447
+ botId: string;
9448
+ integrationId: string;
9449
+ } | null;
9166
9450
  };
9167
9451
  direction: "incoming" | "outgoing" | "system";
9168
9452
  status: number;
@@ -9377,6 +9661,7 @@ export declare const MessageSchema: z.ZodObject<{
9377
9661
  };
9378
9662
  closedAt: Date;
9379
9663
  lastMessageAt: Date | null;
9664
+ isBotRoom: boolean;
9380
9665
  cxlog: {
9381
9666
  id: string;
9382
9667
  channel: string | null;
@@ -9443,9 +9728,27 @@ export declare const MessageSchema: z.ZodObject<{
9443
9728
  booleanValue: boolean | null;
9444
9729
  numberValue: number | null;
9445
9730
  dateValue: Date | null;
9446
- }[] | undefined;
9731
+ }[] | null | undefined;
9447
9732
  } | null;
9448
9733
  };
9734
+ workflowRule: {
9735
+ type: string;
9736
+ id: string;
9737
+ name: string;
9738
+ createdAt: Date;
9739
+ updatedAt: Date;
9740
+ deletedAt: Date | null;
9741
+ isActive: boolean;
9742
+ };
9743
+ };
9744
+ workflowRule: {
9745
+ type: string;
9746
+ id: string;
9747
+ name: string;
9748
+ createdAt: Date;
9749
+ updatedAt: Date;
9750
+ deletedAt: Date | null;
9751
+ isActive: boolean;
9449
9752
  };
9450
9753
  readAt: Date;
9451
9754
  platformMessageId: string;
@@ -9454,7 +9757,7 @@ export declare const MessageSchema: z.ZodObject<{
9454
9757
  previewUrl: string;
9455
9758
  imageSetId: string;
9456
9759
  repliedMessage: {
9457
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
9760
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
9458
9761
  message: string;
9459
9762
  id: string;
9460
9763
  url: string;
@@ -9506,7 +9809,6 @@ export declare const MessageSchema: z.ZodObject<{
9506
9809
  telephonySignature: string | null;
9507
9810
  };
9508
9811
  };
9509
- platformId: string;
9510
9812
  upload: {
9511
9813
  id: string;
9512
9814
  createdAt: Date;
@@ -9563,6 +9865,7 @@ export declare const MessageSchema: z.ZodObject<{
9563
9865
  telephonySignature: string | null;
9564
9866
  };
9565
9867
  };
9868
+ platformId: string;
9566
9869
  readAt: Date;
9567
9870
  platformMessageId: string;
9568
9871
  replyPlatformMessageId: string;
@@ -9670,7 +9973,7 @@ export declare const RepliedMessageSchema: z.ZodObject<{
9670
9973
  deletedAt: z.ZodNullable<z.ZodDate>;
9671
9974
  message: z.ZodString;
9672
9975
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
9673
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
9976
+ type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "carousel", "card", "choice", "dropdown", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
9674
9977
  readAt: z.ZodDate;
9675
9978
  metadata: z.ZodAny;
9676
9979
  platformId: z.ZodString;
@@ -9797,6 +10100,9 @@ export declare const RepliedMessageSchema: z.ZodObject<{
9797
10100
  }>, "many">;
9798
10101
  extension: z.ZodObject<{
9799
10102
  id: z.ZodString;
10103
+ /**
10104
+ * Message Type Enum
10105
+ */
9800
10106
  createdAt: z.ZodDate;
9801
10107
  updatedAt: z.ZodDate;
9802
10108
  deletedAt: z.ZodNullable<z.ZodDate>;
@@ -9805,9 +10111,7 @@ export declare const RepliedMessageSchema: z.ZodObject<{
9805
10111
  sipUserName: z.ZodString;
9806
10112
  webphoneLoginUser: z.ZodString;
9807
10113
  extensionId: z.ZodNullable<z.ZodString>;
9808
- extensionName: z.ZodString; /**
9809
- * Message Type Enum
9810
- */
10114
+ extensionName: z.ZodString;
9811
10115
  telephonySignature: z.ZodNullable<z.ZodString>;
9812
10116
  }, "strip", z.ZodTypeAny, {
9813
10117
  id: string;
@@ -10003,6 +10307,9 @@ export declare const RepliedMessageSchema: z.ZodObject<{
10003
10307
  }>, "many">;
10004
10308
  extension: z.ZodObject<{
10005
10309
  id: z.ZodString;
10310
+ /**
10311
+ * Message Type Enum
10312
+ */
10006
10313
  createdAt: z.ZodDate;
10007
10314
  updatedAt: z.ZodDate;
10008
10315
  deletedAt: z.ZodNullable<z.ZodDate>;
@@ -10011,9 +10318,7 @@ export declare const RepliedMessageSchema: z.ZodObject<{
10011
10318
  sipUserName: z.ZodString;
10012
10319
  webphoneLoginUser: z.ZodString;
10013
10320
  extensionId: z.ZodNullable<z.ZodString>;
10014
- extensionName: z.ZodString; /**
10015
- * Message Type Enum
10016
- */
10321
+ extensionName: z.ZodString;
10017
10322
  telephonySignature: z.ZodNullable<z.ZodString>;
10018
10323
  }, "strip", z.ZodTypeAny, {
10019
10324
  id: string;
@@ -10209,6 +10514,9 @@ export declare const RepliedMessageSchema: z.ZodObject<{
10209
10514
  }>, "many">;
10210
10515
  extension: z.ZodObject<{
10211
10516
  id: z.ZodString;
10517
+ /**
10518
+ * Message Type Enum
10519
+ */
10212
10520
  createdAt: z.ZodDate;
10213
10521
  updatedAt: z.ZodDate;
10214
10522
  deletedAt: z.ZodNullable<z.ZodDate>;
@@ -10217,9 +10525,7 @@ export declare const RepliedMessageSchema: z.ZodObject<{
10217
10525
  sipUserName: z.ZodString;
10218
10526
  webphoneLoginUser: z.ZodString;
10219
10527
  extensionId: z.ZodNullable<z.ZodString>;
10220
- extensionName: z.ZodString; /**
10221
- * Message Type Enum
10222
- */
10528
+ extensionName: z.ZodString;
10223
10529
  telephonySignature: z.ZodNullable<z.ZodString>;
10224
10530
  }, "strip", z.ZodTypeAny, {
10225
10531
  id: string;
@@ -10334,7 +10640,7 @@ export declare const RepliedMessageSchema: z.ZodObject<{
10334
10640
  };
10335
10641
  }>;
10336
10642
  }, "strip", z.ZodTypeAny, {
10337
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
10643
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
10338
10644
  message: string;
10339
10645
  id: string;
10340
10646
  url: string;
@@ -10386,7 +10692,6 @@ export declare const RepliedMessageSchema: z.ZodObject<{
10386
10692
  telephonySignature: string | null;
10387
10693
  };
10388
10694
  };
10389
- platformId: string;
10390
10695
  upload: {
10391
10696
  id: string;
10392
10697
  createdAt: Date;
@@ -10443,6 +10748,7 @@ export declare const RepliedMessageSchema: z.ZodObject<{
10443
10748
  telephonySignature: string | null;
10444
10749
  };
10445
10750
  };
10751
+ platformId: string;
10446
10752
  readAt: Date;
10447
10753
  platformMessageId: string;
10448
10754
  replyPlatformMessageId: string;
@@ -10496,7 +10802,7 @@ export declare const RepliedMessageSchema: z.ZodObject<{
10496
10802
  metadata?: any;
10497
10803
  template?: any;
10498
10804
  }, {
10499
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
10805
+ type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "carousel" | "card" | "choice" | "dropdown" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
10500
10806
  message: string;
10501
10807
  id: string;
10502
10808
  url: string;
@@ -10548,7 +10854,6 @@ export declare const RepliedMessageSchema: z.ZodObject<{
10548
10854
  telephonySignature: string | null;
10549
10855
  };
10550
10856
  };
10551
- platformId: string;
10552
10857
  upload: {
10553
10858
  id: string;
10554
10859
  createdAt: Date;
@@ -10605,6 +10910,7 @@ export declare const RepliedMessageSchema: z.ZodObject<{
10605
10910
  telephonySignature: string | null;
10606
10911
  };
10607
10912
  };
10913
+ platformId: string;
10608
10914
  readAt: Date;
10609
10915
  platformMessageId: string;
10610
10916
  replyPlatformMessageId: string;