@kl1/contracts 1.1.41-uat → 1.1.42-uat

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 (40) hide show
  1. package/dist/index.js +2963 -2771
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2961 -2772
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/channel/index.d.ts +1692 -73
  6. package/dist/src/channel/index.d.ts.map +1 -1
  7. package/dist/src/channel/schema.d.ts +36 -0
  8. package/dist/src/channel/schema.d.ts.map +1 -1
  9. package/dist/src/channel/validation.d.ts +7 -0
  10. package/dist/src/channel/validation.d.ts.map +1 -1
  11. package/dist/src/chat/index.d.ts +767 -59
  12. package/dist/src/chat/index.d.ts.map +1 -1
  13. package/dist/src/chat/schema.d.ts +136 -20
  14. package/dist/src/chat/schema.d.ts.map +1 -1
  15. package/dist/src/chat/validation.d.ts +153 -61
  16. package/dist/src/chat/validation.d.ts.map +1 -1
  17. package/dist/src/contract.d.ts +3972 -1072
  18. package/dist/src/contract.d.ts.map +1 -1
  19. package/dist/src/cx-log/index.d.ts +75 -0
  20. package/dist/src/cx-log/index.d.ts.map +1 -1
  21. package/dist/src/cx-log/schema.d.ts +61 -0
  22. package/dist/src/cx-log/schema.d.ts.map +1 -1
  23. package/dist/src/index.d.ts +1 -0
  24. package/dist/src/index.d.ts.map +1 -1
  25. package/dist/src/instagram/index.d.ts +145 -53
  26. package/dist/src/instagram/index.d.ts.map +1 -1
  27. package/dist/src/line/index.d.ts +150 -58
  28. package/dist/src/line/index.d.ts.map +1 -1
  29. package/dist/src/line/validation.d.ts +5 -5
  30. package/dist/src/messenger/index.d.ts +180 -54
  31. package/dist/src/messenger/index.d.ts.map +1 -1
  32. package/dist/src/messenger/validation.d.ts +43 -0
  33. package/dist/src/messenger/validation.d.ts.map +1 -1
  34. package/dist/src/viber/index.d.ts +286 -53
  35. package/dist/src/viber/index.d.ts.map +1 -1
  36. package/dist/src/webchat/index.d.ts +192 -53
  37. package/dist/src/webchat/index.d.ts.map +1 -1
  38. package/dist/src/workflow-rule/index.d.ts +132 -0
  39. package/dist/src/workflow-rule/index.d.ts.map +1 -1
  40. package/package.json +1 -1
@@ -2,6 +2,7 @@ import z from 'zod';
2
2
  export declare const platformWebchatContract: {
3
3
  sendMessage: {
4
4
  body: z.ZodObject<{
5
+ isBot: z.ZodDefault<z.ZodNullable<z.ZodBoolean>>;
5
6
  room: z.ZodObject<{
6
7
  id: z.ZodString;
7
8
  lastMessage: z.ZodOptional<z.ZodString>;
@@ -356,7 +357,7 @@ export declare const platformWebchatContract: {
356
357
  message: z.ZodObject<{
357
358
  message: z.ZodOptional<z.ZodString>;
358
359
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
359
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
360
+ 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"]>;
360
361
  readAt: z.ZodOptional<z.ZodDate>;
361
362
  metadata: z.ZodOptional<z.ZodAny>;
362
363
  platformId: z.ZodOptional<z.ZodString>;
@@ -372,18 +373,21 @@ export declare const platformWebchatContract: {
372
373
  fileName: z.ZodString;
373
374
  fileSize: z.ZodNumber;
374
375
  fileKey: z.ZodString;
376
+ originalUrl: z.ZodOptional<z.ZodString>;
375
377
  }, "strip", z.ZodTypeAny, {
376
378
  fileName: string;
377
379
  fileKey: string;
378
380
  bucketName: string;
379
381
  fileSize: number;
382
+ originalUrl?: string | undefined;
380
383
  }, {
381
384
  fileName: string;
382
385
  fileKey: string;
383
386
  bucketName: string;
384
387
  fileSize: number;
388
+ originalUrl?: string | undefined;
385
389
  }>>;
386
- sender: z.ZodObject<{
390
+ sender: z.ZodOptional<z.ZodObject<{
387
391
  id: z.ZodString;
388
392
  name: z.ZodString;
389
393
  email: z.ZodString;
@@ -401,17 +405,10 @@ export declare const platformWebchatContract: {
401
405
  name: string;
402
406
  email: string;
403
407
  phone: string | null;
404
- }>;
408
+ }>>;
405
409
  }, "strip", z.ZodTypeAny, {
406
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
410
+ 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";
407
411
  direction: "incoming" | "outgoing" | "system";
408
- sender: {
409
- id: string;
410
- address: string | null;
411
- name: string;
412
- email: string;
413
- phone: string | null;
414
- };
415
412
  message?: string | undefined;
416
413
  readAt?: Date | undefined;
417
414
  metadata?: any;
@@ -428,17 +425,18 @@ export declare const platformWebchatContract: {
428
425
  fileKey: string;
429
426
  bucketName: string;
430
427
  fileSize: number;
428
+ originalUrl?: string | undefined;
431
429
  } | undefined;
432
- }, {
433
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
434
- direction: "incoming" | "outgoing" | "system";
435
- sender: {
430
+ sender?: {
436
431
  id: string;
437
432
  address: string | null;
438
433
  name: string;
439
434
  email: string;
440
435
  phone: string | null;
441
- };
436
+ } | undefined;
437
+ }, {
438
+ 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";
439
+ direction: "incoming" | "outgoing" | "system";
442
440
  message?: string | undefined;
443
441
  readAt?: Date | undefined;
444
442
  metadata?: any;
@@ -455,19 +453,20 @@ export declare const platformWebchatContract: {
455
453
  fileKey: string;
456
454
  bucketName: string;
457
455
  fileSize: number;
456
+ originalUrl?: string | undefined;
458
457
  } | undefined;
459
- }>;
460
- }, "strip", z.ZodTypeAny, {
461
- message: {
462
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
463
- direction: "incoming" | "outgoing" | "system";
464
- sender: {
458
+ sender?: {
465
459
  id: string;
466
460
  address: string | null;
467
461
  name: string;
468
462
  email: string;
469
463
  phone: string | null;
470
- };
464
+ } | undefined;
465
+ }>;
466
+ }, "strip", z.ZodTypeAny, {
467
+ message: {
468
+ 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";
469
+ direction: "incoming" | "outgoing" | "system";
471
470
  message?: string | undefined;
472
471
  readAt?: Date | undefined;
473
472
  metadata?: any;
@@ -484,6 +483,14 @@ export declare const platformWebchatContract: {
484
483
  fileKey: string;
485
484
  bucketName: string;
486
485
  fileSize: number;
486
+ originalUrl?: string | undefined;
487
+ } | undefined;
488
+ sender?: {
489
+ id: string;
490
+ address: string | null;
491
+ name: string;
492
+ email: string;
493
+ phone: string | null;
487
494
  } | undefined;
488
495
  };
489
496
  room: {
@@ -553,17 +560,11 @@ export declare const platformWebchatContract: {
553
560
  metadata?: any;
554
561
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
555
562
  };
563
+ isBot: boolean | null;
556
564
  }, {
557
565
  message: {
558
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
566
+ 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";
559
567
  direction: "incoming" | "outgoing" | "system";
560
- sender: {
561
- id: string;
562
- address: string | null;
563
- name: string;
564
- email: string;
565
- phone: string | null;
566
- };
567
568
  message?: string | undefined;
568
569
  readAt?: Date | undefined;
569
570
  metadata?: any;
@@ -580,6 +581,14 @@ export declare const platformWebchatContract: {
580
581
  fileKey: string;
581
582
  bucketName: string;
582
583
  fileSize: number;
584
+ originalUrl?: string | undefined;
585
+ } | undefined;
586
+ sender?: {
587
+ id: string;
588
+ address: string | null;
589
+ name: string;
590
+ email: string;
591
+ phone: string | null;
583
592
  } | undefined;
584
593
  };
585
594
  room: {
@@ -649,6 +658,7 @@ export declare const platformWebchatContract: {
649
658
  metadata?: any;
650
659
  messengerTags?: "post_purchase_update" | "account_update" | "confirmed_event_update" | undefined;
651
660
  };
661
+ isBot?: boolean | null | undefined;
652
662
  }>;
653
663
  method: "POST";
654
664
  responses: {
@@ -661,7 +671,7 @@ export declare const platformWebchatContract: {
661
671
  deletedAt: z.ZodNullable<z.ZodDate>;
662
672
  message: z.ZodString;
663
673
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
664
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
674
+ 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"]>;
665
675
  readAt: z.ZodDate;
666
676
  metadata: z.ZodAny;
667
677
  platformId: z.ZodString;
@@ -686,6 +696,7 @@ export declare const platformWebchatContract: {
686
696
  firstResponseAt: z.ZodDate;
687
697
  firstResponseTime: z.ZodNumber;
688
698
  isLatest: z.ZodBoolean;
699
+ isBotRoom: z.ZodBoolean;
689
700
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
690
701
  platformContact: z.ZodObject<{
691
702
  id: z.ZodString;
@@ -2061,6 +2072,25 @@ export declare const platformWebchatContract: {
2061
2072
  isReloginRequired: z.ZodBoolean;
2062
2073
  connectedUserName: z.ZodString;
2063
2074
  connectedUserId: z.ZodString;
2075
+ botpressBot: z.ZodNullable<z.ZodObject<{
2076
+ id: z.ZodString;
2077
+ name: z.ZodString;
2078
+ botId: z.ZodString;
2079
+ integrationId: z.ZodString;
2080
+ accessToken: z.ZodString;
2081
+ }, "strip", z.ZodTypeAny, {
2082
+ id: string;
2083
+ name: string;
2084
+ accessToken: string;
2085
+ botId: string;
2086
+ integrationId: string;
2087
+ }, {
2088
+ id: string;
2089
+ name: string;
2090
+ accessToken: string;
2091
+ botId: string;
2092
+ integrationId: string;
2093
+ }>>;
2064
2094
  actor: z.ZodObject<{
2065
2095
  id: z.ZodString;
2066
2096
  createdAt: z.ZodDate;
@@ -2329,6 +2359,13 @@ export declare const platformWebchatContract: {
2329
2359
  isReloginRequired: boolean;
2330
2360
  connectedUserName: string;
2331
2361
  connectedUserId: string;
2362
+ botpressBot: {
2363
+ id: string;
2364
+ name: string;
2365
+ accessToken: string;
2366
+ botId: string;
2367
+ integrationId: string;
2368
+ } | null;
2332
2369
  }, {
2333
2370
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
2334
2371
  id: string;
@@ -2393,6 +2430,13 @@ export declare const platformWebchatContract: {
2393
2430
  isReloginRequired: boolean;
2394
2431
  connectedUserName: string;
2395
2432
  connectedUserId: string;
2433
+ botpressBot: {
2434
+ id: string;
2435
+ name: string;
2436
+ accessToken: string;
2437
+ botId: string;
2438
+ integrationId: string;
2439
+ } | null;
2396
2440
  }>;
2397
2441
  cxlog: z.ZodObject<{
2398
2442
  id: z.ZodString;
@@ -2904,6 +2948,13 @@ export declare const platformWebchatContract: {
2904
2948
  isReloginRequired: boolean;
2905
2949
  connectedUserName: string;
2906
2950
  connectedUserId: string;
2951
+ botpressBot: {
2952
+ id: string;
2953
+ name: string;
2954
+ accessToken: string;
2955
+ botId: string;
2956
+ integrationId: string;
2957
+ } | null;
2907
2958
  };
2908
2959
  direction: "incoming" | "outgoing" | "system";
2909
2960
  status: number;
@@ -3118,6 +3169,7 @@ export declare const platformWebchatContract: {
3118
3169
  };
3119
3170
  closedAt: Date;
3120
3171
  lastMessageAt: Date | null;
3172
+ isBotRoom: boolean;
3121
3173
  cxlog: {
3122
3174
  id: string;
3123
3175
  channel: string | null;
@@ -3262,6 +3314,13 @@ export declare const platformWebchatContract: {
3262
3314
  isReloginRequired: boolean;
3263
3315
  connectedUserName: string;
3264
3316
  connectedUserId: string;
3317
+ botpressBot: {
3318
+ id: string;
3319
+ name: string;
3320
+ accessToken: string;
3321
+ botId: string;
3322
+ integrationId: string;
3323
+ } | null;
3265
3324
  };
3266
3325
  direction: "incoming" | "outgoing" | "system";
3267
3326
  status: number;
@@ -3476,6 +3535,7 @@ export declare const platformWebchatContract: {
3476
3535
  };
3477
3536
  closedAt: Date;
3478
3537
  lastMessageAt: Date | null;
3538
+ isBotRoom: boolean;
3479
3539
  cxlog: {
3480
3540
  id: string;
3481
3541
  channel: string | null;
@@ -3596,7 +3656,7 @@ export declare const platformWebchatContract: {
3596
3656
  deletedAt: z.ZodNullable<z.ZodDate>;
3597
3657
  message: z.ZodString;
3598
3658
  direction: z.ZodEnum<["incoming", "outgoing", "system"]>;
3599
- type: z.ZodEnum<["text", "image", "video", "audio", "file", "imagemap", "fallback", "location", "sticker", "assign", "solve", "resolved", "reopen", "open", "closed", "handed_over", "updated", "started", "unsupported"]>;
3659
+ 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"]>;
3600
3660
  readAt: z.ZodDate;
3601
3661
  metadata: z.ZodAny;
3602
3662
  platformId: z.ZodString;
@@ -4254,7 +4314,7 @@ export declare const platformWebchatContract: {
4254
4314
  };
4255
4315
  }>;
4256
4316
  }, "strip", z.ZodTypeAny, {
4257
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
4317
+ 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";
4258
4318
  message: string;
4259
4319
  id: string;
4260
4320
  url: string;
@@ -4306,7 +4366,6 @@ export declare const platformWebchatContract: {
4306
4366
  telephonySignature: string | null;
4307
4367
  };
4308
4368
  };
4309
- platformId: string;
4310
4369
  upload: {
4311
4370
  id: string;
4312
4371
  status: string | null;
@@ -4363,6 +4422,7 @@ export declare const platformWebchatContract: {
4363
4422
  telephonySignature: string | null;
4364
4423
  };
4365
4424
  };
4425
+ platformId: string;
4366
4426
  readAt: Date;
4367
4427
  platformMessageId: string;
4368
4428
  replyPlatformMessageId: string;
@@ -4416,7 +4476,7 @@ export declare const platformWebchatContract: {
4416
4476
  metadata?: any;
4417
4477
  template?: any;
4418
4478
  }, {
4419
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
4479
+ 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";
4420
4480
  message: string;
4421
4481
  id: string;
4422
4482
  url: string;
@@ -4468,7 +4528,6 @@ export declare const platformWebchatContract: {
4468
4528
  telephonySignature: string | null;
4469
4529
  };
4470
4530
  };
4471
- platformId: string;
4472
4531
  upload: {
4473
4532
  id: string;
4474
4533
  status: string | null;
@@ -4525,6 +4584,7 @@ export declare const platformWebchatContract: {
4525
4584
  telephonySignature: string | null;
4526
4585
  };
4527
4586
  };
4587
+ platformId: string;
4528
4588
  readAt: Date;
4529
4589
  platformMessageId: string;
4530
4590
  replyPlatformMessageId: string;
@@ -5216,7 +5276,7 @@ export declare const platformWebchatContract: {
5216
5276
  isActive: boolean;
5217
5277
  }>;
5218
5278
  }, "strip", z.ZodTypeAny, {
5219
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
5279
+ 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";
5220
5280
  message: string;
5221
5281
  id: string;
5222
5282
  url: string;
@@ -5268,7 +5328,6 @@ export declare const platformWebchatContract: {
5268
5328
  telephonySignature: string | null;
5269
5329
  };
5270
5330
  };
5271
- platformId: string;
5272
5331
  upload: {
5273
5332
  id: string;
5274
5333
  status: string | null;
@@ -5325,6 +5384,7 @@ export declare const platformWebchatContract: {
5325
5384
  telephonySignature: string | null;
5326
5385
  };
5327
5386
  };
5387
+ platformId: string;
5328
5388
  room: {
5329
5389
  id: string;
5330
5390
  channel: {
@@ -5391,6 +5451,13 @@ export declare const platformWebchatContract: {
5391
5451
  isReloginRequired: boolean;
5392
5452
  connectedUserName: string;
5393
5453
  connectedUserId: string;
5454
+ botpressBot: {
5455
+ id: string;
5456
+ name: string;
5457
+ accessToken: string;
5458
+ botId: string;
5459
+ integrationId: string;
5460
+ } | null;
5394
5461
  };
5395
5462
  direction: "incoming" | "outgoing" | "system";
5396
5463
  status: number;
@@ -5605,6 +5672,7 @@ export declare const platformWebchatContract: {
5605
5672
  };
5606
5673
  closedAt: Date;
5607
5674
  lastMessageAt: Date | null;
5675
+ isBotRoom: boolean;
5608
5676
  cxlog: {
5609
5677
  id: string;
5610
5678
  channel: string | null;
@@ -5700,7 +5768,7 @@ export declare const platformWebchatContract: {
5700
5768
  previewUrl: string;
5701
5769
  imageSetId: string;
5702
5770
  repliedMessage: {
5703
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
5771
+ 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";
5704
5772
  message: string;
5705
5773
  id: string;
5706
5774
  url: string;
@@ -5752,7 +5820,6 @@ export declare const platformWebchatContract: {
5752
5820
  telephonySignature: string | null;
5753
5821
  };
5754
5822
  };
5755
- platformId: string;
5756
5823
  upload: {
5757
5824
  id: string;
5758
5825
  status: string | null;
@@ -5809,6 +5876,7 @@ export declare const platformWebchatContract: {
5809
5876
  telephonySignature: string | null;
5810
5877
  };
5811
5878
  };
5879
+ platformId: string;
5812
5880
  readAt: Date;
5813
5881
  platformMessageId: string;
5814
5882
  replyPlatformMessageId: string;
@@ -5909,7 +5977,7 @@ export declare const platformWebchatContract: {
5909
5977
  metadata?: any;
5910
5978
  template?: any;
5911
5979
  }, {
5912
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
5980
+ 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";
5913
5981
  message: string;
5914
5982
  id: string;
5915
5983
  url: string;
@@ -5961,7 +6029,6 @@ export declare const platformWebchatContract: {
5961
6029
  telephonySignature: string | null;
5962
6030
  };
5963
6031
  };
5964
- platformId: string;
5965
6032
  upload: {
5966
6033
  id: string;
5967
6034
  status: string | null;
@@ -6018,6 +6085,7 @@ export declare const platformWebchatContract: {
6018
6085
  telephonySignature: string | null;
6019
6086
  };
6020
6087
  };
6088
+ platformId: string;
6021
6089
  room: {
6022
6090
  id: string;
6023
6091
  channel: {
@@ -6084,6 +6152,13 @@ export declare const platformWebchatContract: {
6084
6152
  isReloginRequired: boolean;
6085
6153
  connectedUserName: string;
6086
6154
  connectedUserId: string;
6155
+ botpressBot: {
6156
+ id: string;
6157
+ name: string;
6158
+ accessToken: string;
6159
+ botId: string;
6160
+ integrationId: string;
6161
+ } | null;
6087
6162
  };
6088
6163
  direction: "incoming" | "outgoing" | "system";
6089
6164
  status: number;
@@ -6298,6 +6373,7 @@ export declare const platformWebchatContract: {
6298
6373
  };
6299
6374
  closedAt: Date;
6300
6375
  lastMessageAt: Date | null;
6376
+ isBotRoom: boolean;
6301
6377
  cxlog: {
6302
6378
  id: string;
6303
6379
  channel: string | null;
@@ -6393,7 +6469,7 @@ export declare const platformWebchatContract: {
6393
6469
  previewUrl: string;
6394
6470
  imageSetId: string;
6395
6471
  repliedMessage: {
6396
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
6472
+ 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";
6397
6473
  message: string;
6398
6474
  id: string;
6399
6475
  url: string;
@@ -6445,7 +6521,6 @@ export declare const platformWebchatContract: {
6445
6521
  telephonySignature: string | null;
6446
6522
  };
6447
6523
  };
6448
- platformId: string;
6449
6524
  upload: {
6450
6525
  id: string;
6451
6526
  status: string | null;
@@ -6502,6 +6577,7 @@ export declare const platformWebchatContract: {
6502
6577
  telephonySignature: string | null;
6503
6578
  };
6504
6579
  };
6580
+ platformId: string;
6505
6581
  readAt: Date;
6506
6582
  platformMessageId: string;
6507
6583
  replyPlatformMessageId: string;
@@ -6604,7 +6680,7 @@ export declare const platformWebchatContract: {
6604
6680
  }>;
6605
6681
  }, "strip", z.ZodTypeAny, {
6606
6682
  data: {
6607
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
6683
+ 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";
6608
6684
  message: string;
6609
6685
  id: string;
6610
6686
  url: string;
@@ -6656,7 +6732,6 @@ export declare const platformWebchatContract: {
6656
6732
  telephonySignature: string | null;
6657
6733
  };
6658
6734
  };
6659
- platformId: string;
6660
6735
  upload: {
6661
6736
  id: string;
6662
6737
  status: string | null;
@@ -6713,6 +6788,7 @@ export declare const platformWebchatContract: {
6713
6788
  telephonySignature: string | null;
6714
6789
  };
6715
6790
  };
6791
+ platformId: string;
6716
6792
  room: {
6717
6793
  id: string;
6718
6794
  channel: {
@@ -6779,6 +6855,13 @@ export declare const platformWebchatContract: {
6779
6855
  isReloginRequired: boolean;
6780
6856
  connectedUserName: string;
6781
6857
  connectedUserId: string;
6858
+ botpressBot: {
6859
+ id: string;
6860
+ name: string;
6861
+ accessToken: string;
6862
+ botId: string;
6863
+ integrationId: string;
6864
+ } | null;
6782
6865
  };
6783
6866
  direction: "incoming" | "outgoing" | "system";
6784
6867
  status: number;
@@ -6993,6 +7076,7 @@ export declare const platformWebchatContract: {
6993
7076
  };
6994
7077
  closedAt: Date;
6995
7078
  lastMessageAt: Date | null;
7079
+ isBotRoom: boolean;
6996
7080
  cxlog: {
6997
7081
  id: string;
6998
7082
  channel: string | null;
@@ -7088,7 +7172,7 @@ export declare const platformWebchatContract: {
7088
7172
  previewUrl: string;
7089
7173
  imageSetId: string;
7090
7174
  repliedMessage: {
7091
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7175
+ 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";
7092
7176
  message: string;
7093
7177
  id: string;
7094
7178
  url: string;
@@ -7140,7 +7224,6 @@ export declare const platformWebchatContract: {
7140
7224
  telephonySignature: string | null;
7141
7225
  };
7142
7226
  };
7143
- platformId: string;
7144
7227
  upload: {
7145
7228
  id: string;
7146
7229
  status: string | null;
@@ -7197,6 +7280,7 @@ export declare const platformWebchatContract: {
7197
7280
  telephonySignature: string | null;
7198
7281
  };
7199
7282
  };
7283
+ platformId: string;
7200
7284
  readAt: Date;
7201
7285
  platformMessageId: string;
7202
7286
  replyPlatformMessageId: string;
@@ -7300,7 +7384,7 @@ export declare const platformWebchatContract: {
7300
7384
  requestId: string;
7301
7385
  }, {
7302
7386
  data: {
7303
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7387
+ 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";
7304
7388
  message: string;
7305
7389
  id: string;
7306
7390
  url: string;
@@ -7352,7 +7436,6 @@ export declare const platformWebchatContract: {
7352
7436
  telephonySignature: string | null;
7353
7437
  };
7354
7438
  };
7355
- platformId: string;
7356
7439
  upload: {
7357
7440
  id: string;
7358
7441
  status: string | null;
@@ -7409,6 +7492,7 @@ export declare const platformWebchatContract: {
7409
7492
  telephonySignature: string | null;
7410
7493
  };
7411
7494
  };
7495
+ platformId: string;
7412
7496
  room: {
7413
7497
  id: string;
7414
7498
  channel: {
@@ -7475,6 +7559,13 @@ export declare const platformWebchatContract: {
7475
7559
  isReloginRequired: boolean;
7476
7560
  connectedUserName: string;
7477
7561
  connectedUserId: string;
7562
+ botpressBot: {
7563
+ id: string;
7564
+ name: string;
7565
+ accessToken: string;
7566
+ botId: string;
7567
+ integrationId: string;
7568
+ } | null;
7478
7569
  };
7479
7570
  direction: "incoming" | "outgoing" | "system";
7480
7571
  status: number;
@@ -7689,6 +7780,7 @@ export declare const platformWebchatContract: {
7689
7780
  };
7690
7781
  closedAt: Date;
7691
7782
  lastMessageAt: Date | null;
7783
+ isBotRoom: boolean;
7692
7784
  cxlog: {
7693
7785
  id: string;
7694
7786
  channel: string | null;
@@ -7784,7 +7876,7 @@ export declare const platformWebchatContract: {
7784
7876
  previewUrl: string;
7785
7877
  imageSetId: string;
7786
7878
  repliedMessage: {
7787
- type: "fallback" | "location" | "file" | "closed" | "open" | "audio" | "video" | "image" | "text" | "imagemap" | "sticker" | "assign" | "solve" | "resolved" | "reopen" | "handed_over" | "updated" | "started" | "unsupported";
7879
+ 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";
7788
7880
  message: string;
7789
7881
  id: string;
7790
7882
  url: string;
@@ -7836,7 +7928,6 @@ export declare const platformWebchatContract: {
7836
7928
  telephonySignature: string | null;
7837
7929
  };
7838
7930
  };
7839
- platformId: string;
7840
7931
  upload: {
7841
7932
  id: string;
7842
7933
  status: string | null;
@@ -7893,6 +7984,7 @@ export declare const platformWebchatContract: {
7893
7984
  telephonySignature: string | null;
7894
7985
  };
7895
7986
  };
7987
+ platformId: string;
7896
7988
  readAt: Date;
7897
7989
  platformMessageId: string;
7898
7990
  replyPlatformMessageId: string;
@@ -8149,6 +8241,25 @@ export declare const platformWebchatContract: {
8149
8241
  isReloginRequired: z.ZodBoolean;
8150
8242
  connectedUserName: z.ZodString;
8151
8243
  connectedUserId: z.ZodString;
8244
+ botpressBot: z.ZodNullable<z.ZodObject<{
8245
+ id: z.ZodString;
8246
+ name: z.ZodString;
8247
+ botId: z.ZodString;
8248
+ integrationId: z.ZodString;
8249
+ accessToken: z.ZodString;
8250
+ }, "strip", z.ZodTypeAny, {
8251
+ id: string;
8252
+ name: string;
8253
+ accessToken: string;
8254
+ botId: string;
8255
+ integrationId: string;
8256
+ }, {
8257
+ id: string;
8258
+ name: string;
8259
+ accessToken: string;
8260
+ botId: string;
8261
+ integrationId: string;
8262
+ }>>;
8152
8263
  actor: z.ZodObject<{
8153
8264
  id: z.ZodString;
8154
8265
  createdAt: z.ZodDate;
@@ -8417,6 +8528,13 @@ export declare const platformWebchatContract: {
8417
8528
  isReloginRequired: boolean;
8418
8529
  connectedUserName: string;
8419
8530
  connectedUserId: string;
8531
+ botpressBot: {
8532
+ id: string;
8533
+ name: string;
8534
+ accessToken: string;
8535
+ botId: string;
8536
+ integrationId: string;
8537
+ } | null;
8420
8538
  }, {
8421
8539
  type: "line" | "whatsapp" | "messenger" | "telegram" | "instagram" | "viber" | "kakao" | "shopee" | "lazada" | "webchat";
8422
8540
  id: string;
@@ -8481,6 +8599,13 @@ export declare const platformWebchatContract: {
8481
8599
  isReloginRequired: boolean;
8482
8600
  connectedUserName: string;
8483
8601
  connectedUserId: string;
8602
+ botpressBot: {
8603
+ id: string;
8604
+ name: string;
8605
+ accessToken: string;
8606
+ botId: string;
8607
+ integrationId: string;
8608
+ } | null;
8484
8609
  }>;
8485
8610
  }, "strip", z.ZodTypeAny, {
8486
8611
  channel: {
@@ -8547,6 +8672,13 @@ export declare const platformWebchatContract: {
8547
8672
  isReloginRequired: boolean;
8548
8673
  connectedUserName: string;
8549
8674
  connectedUserId: string;
8675
+ botpressBot: {
8676
+ id: string;
8677
+ name: string;
8678
+ accessToken: string;
8679
+ botId: string;
8680
+ integrationId: string;
8681
+ } | null;
8550
8682
  };
8551
8683
  requestId: string;
8552
8684
  }, {
@@ -8614,6 +8746,13 @@ export declare const platformWebchatContract: {
8614
8746
  isReloginRequired: boolean;
8615
8747
  connectedUserName: string;
8616
8748
  connectedUserId: string;
8749
+ botpressBot: {
8750
+ id: string;
8751
+ name: string;
8752
+ accessToken: string;
8753
+ botId: string;
8754
+ integrationId: string;
8755
+ } | null;
8617
8756
  };
8618
8757
  requestId: string;
8619
8758
  }>;